Skip to content

Commit

Permalink
chore: update deps [skip_publish]
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed Oct 7, 2024
1 parent 2ad8e8f commit a9c3fbe
Show file tree
Hide file tree
Showing 6 changed files with 1,340 additions and 1,160 deletions.
52 changes: 26 additions & 26 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,34 @@
"@faker-js/faker": "^9.0.3",
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-accessible-icon": "^1.1.0",
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-alert-dialog": "^1.1.1",
"@radix-ui/react-accordion": "^1.2.1",
"@radix-ui/react-alert-dialog": "^1.1.2",
"@radix-ui/react-aspect-ratio": "^1.1.0",
"@radix-ui/react-avatar": "^1.1.0",
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-collapsible": "^1.1.0",
"@radix-ui/react-context-menu": "^2.2.1",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-hover-card": "^1.1.1",
"@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-collapsible": "^1.1.1",
"@radix-ui/react-context-menu": "^2.2.2",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-hover-card": "^1.1.2",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-menubar": "^1.1.1",
"@radix-ui/react-navigation-menu": "^1.2.0",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-menubar": "^1.1.2",
"@radix-ui/react-navigation-menu": "^1.2.1",
"@radix-ui/react-popover": "^1.1.2",
"@radix-ui/react-progress": "^1.1.0",
"@radix-ui/react-radio-group": "^1.2.0",
"@radix-ui/react-scroll-area": "^1.1.0",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-radio-group": "^1.2.1",
"@radix-ui/react-scroll-area": "^1.2.0",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slider": "^1.2.0",
"@radix-ui/react-slider": "^1.2.1",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-switch": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-toast": "^1.2.1",
"@radix-ui/react-switch": "^1.1.1",
"@radix-ui/react-tabs": "^1.1.1",
"@radix-ui/react-toast": "^1.2.2",
"@radix-ui/react-toggle": "^1.1.0",
"@radix-ui/react-toggle-group": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@radix-ui/react-tooltip": "^1.1.3",
"@sikka/hawa": "workspace:^",
"@tanstack/react-table": "^8.20.5",
"class-variance-authority": "^0.7.0",
Expand All @@ -62,9 +62,9 @@
"geist": "^1.3.1",
"jotai": "^2.10.0",
"lodash.template": "^4.5.0",
"lucide-react": "0.446.0",
"lucide-react": "0.447.0",
"markdown-wasm": "^1.2.0",
"next": "14.2.13",
"next": "14.2.14",
"next-contentlayer2": "^0.5.1",
"next-themes": "^0.3.0",
"nextjs-progressloader": "^1.2.0",
Expand All @@ -77,18 +77,18 @@
"recharts": "^2.12.7",
"sharp": "^0.33.5",
"sonner": "^1.5.0",
"tailwind-merge": "^2.5.2",
"tailwind-merge": "^2.5.3",
"vaul": "^1.0.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/lodash.template": "^4.5.3",
"@types/node": "^22.7.4",
"@types/react": "^18.3.10",
"@types/react": "^18.3.11",
"@types/react-color": "^3.0.12",
"@types/react-dom": "^18.3.0",
"esbuild": "^0.24.0",
"eslint": "^9.11.1",
"eslint": "^9.12.0",
"mdast-util-toc": "^7.1.0",
"postcss": "^8.4.47",
"rehype": "^13.0.2",
Expand All @@ -99,7 +99,7 @@
"remark-code-import": "^1.2.0",
"remark-gfm": "^4.0.0",
"rimraf": "^6.0.1",
"shiki": "^1.21.0",
"shiki": "^1.22.0",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2",
"unist-builder": "4.0.0",
Expand Down
13 changes: 8 additions & 5 deletions packages/components/elements/fileDropzone/FileDropzone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ export const FileDropzone: React.FunctionComponent<FileDropzoneTypes> = ({
}) => {
const [cmp, setCmp] = useState(0);
const [max, setMax] = useState<any>(0);
const [filesAccepted, setFilesAccepted] = useState<any>([]);

const { getRootProps, getInputProps, fileRejections, acceptedFiles, isDragActive } = useDropzone({
multiple: true,
accept: accept,
maxSize: maxSize,
maxFiles: maxFiles,
onDrop: (acceptedFiles: any) => {
useFsAccessApi: true,
onDrop: (acceptedFiles) => {
setFiles(
acceptedFiles.map((file: any, index: any) =>
Object.assign(file, {
Expand All @@ -86,14 +88,15 @@ export const FileDropzone: React.FunctionComponent<FileDropzoneTypes> = ({
useEffect(() => {
setFiles(acceptedFiles);
}, [acceptedFiles, cmp, setFiles]);

onClearFiles = () => {
acceptedFiles.length = 0;
acceptedFiles.splice(0, acceptedFiles.length);
setFilesAccepted([]);
setFilesAccepted(filesAccepted.splice(0, filesAccepted.length));
setFiles([]);
};

const clearAllFiles = () => {
acceptedFiles.length = 0;
setFilesAccepted([]);
setFiles([]);
};

Expand Down Expand Up @@ -126,7 +129,7 @@ export const FileDropzone: React.FunctionComponent<FileDropzoneTypes> = ({
<button
onClick={(e) => {
e.stopPropagation();
acceptedFiles.splice(acceptedFiles.indexOf(file), 1);
setFilesAccepted(filesAccepted.splice(filesAccepted.indexOf(file), 1));
setCmp(Math.random);
onDeleteFile(file);
}}
Expand Down
42 changes: 21 additions & 21 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@
"react-dom": "18.3.1"
},
"dependencies": {
"@headlessui/react": "^2.1.8",
"@headlessui/react": "^2.1.9",
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-collapsible": "^1.1.0",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-menubar": "^1.1.1",
"@radix-ui/react-navigation-menu": "^1.2.0",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-accordion": "^1.2.1",
"@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-collapsible": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-menubar": "^1.1.2",
"@radix-ui/react-navigation-menu": "^1.2.1",
"@radix-ui/react-popover": "^1.1.2",
"@radix-ui/react-progress": "^1.1.0",
"@radix-ui/react-scroll-area": "^1.1.0",
"@radix-ui/react-slider": "^1.2.0",
"@radix-ui/react-switch": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.0",
"@radix-ui/react-toast": "^1.2.1",
"@radix-ui/react-tooltip": "^1.1.2",
"@radix-ui/react-scroll-area": "^1.2.0",
"@radix-ui/react-slider": "^1.2.1",
"@radix-ui/react-switch": "^1.1.1",
"@radix-ui/react-tabs": "^1.1.1",
"@radix-ui/react-toast": "^1.2.2",
"@radix-ui/react-tooltip": "^1.1.3",
"@tanstack/react-table": "^8.20.5",
"@tanstack/table-core": "^8.20.5",
"class-variance-authority": "^0.7.0",
Expand All @@ -84,35 +84,35 @@
"embla-carousel-auto-height": "^8.3.0",
"embla-carousel-react": "^8.3.0",
"input-otp": "^1.2.4",
"libphonenumber-js": "^1.11.9",
"libphonenumber-js": "^1.11.11",
"prism-react-renderer": "^2.4.0",
"prismjs": "^1.29.0",
"react-day-picker": "^9.1.3",
"react-dropzone": "^14.2.3",
"react-dropzone": "^14.2.9",
"react-headless-pagination": "^1.1.6",
"react-hook-form": "^7.53.0",
"react-select": "^5.8.1",
"signature_pad": "^5.0.3",
"sonner": "^1.5.0",
"tailwind-merge": "^2.5.2",
"tailwind-merge": "^2.5.3",
"tailwind-variants": "^0.2.1",
"trim-canvas": "^0.1.2",
"zod": "^3.23.8"
},
"devDependencies": {
"@babel/preset-react": "^7.24.7",
"@babel/preset-react": "^7.25.7",
"@sikka/alam": "^0.0.4",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@types/jest": "^29.5.13",
"@types/react": "^18.3.10",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
"boxen": "^8.0.1",
"chalk": "^5.3.0",
"embla-carousel": "8.3.0",
"jest": "^29.7.0",
"lucide-react": "^0.446.0",
"lucide-react": "^0.447.0",
"postcss": "^8.4.47",
"postcss-cli": "^11.0.0",
"postcss-import": "^16.1.0",
Expand Down
34 changes: 17 additions & 17 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,49 +21,49 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.0",
"eslint": "^9.11.1",
"eslint-config-next": "^14.2.13",
"next": "^14.2.13",
"eslint": "^9.12.0",
"eslint-config-next": "^14.2.14",
"next": "^14.2.14",
"next-themes": "^0.3.0",
"prism-react-renderer": "^2.4.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@babel/preset-react": "^7.24.7",
"@babel/preset-react": "^7.25.7",
"@sikka/alam": "^0.0.4",
"@storybook/addon-essentials": "^8.3.4",
"@storybook/addon-interactions": "^8.3.4",
"@storybook/addon-links": "^8.3.4",
"@storybook/addon-mdx-gfm": "^8.3.4",
"@storybook/addon-themes": "^8.3.4",
"@storybook/blocks": "^8.3.4",
"@storybook/manager-api": "^8.3.4",
"@storybook/nextjs": "^8.3.4",
"@storybook/react": "^8.3.4",
"@storybook/addon-essentials": "^8.3.5",
"@storybook/addon-interactions": "^8.3.5",
"@storybook/addon-links": "^8.3.5",
"@storybook/addon-mdx-gfm": "^8.3.5",
"@storybook/addon-themes": "^8.3.5",
"@storybook/blocks": "^8.3.5",
"@storybook/manager-api": "^8.3.5",
"@storybook/nextjs": "^8.3.5",
"@storybook/react": "^8.3.5",
"@storybook/testing-library": "^0.2.2",
"@storybook/theming": "^8.3.4",
"@storybook/theming": "^8.3.5",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/jest": "^29.5.13",
"@types/react": "^18.3.10",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
"css-loader": "^7.1.2",
"date-fns": "^4.1.0",
"eslint-plugin-storybook": "^0.9.0",
"jest": "^29.7.0",
"lucide-react": "^0.446.0",
"lucide-react": "^0.447.0",
"postcss": "^8.4.47",
"postcss-cli": "^11.0.0",
"postcss-import": "^16.1.0",
"postcss-loader": "^8.1.1",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"recharts": "^2.12.7",
"storybook": "^8.3.4",
"storybook": "^8.3.5",
"storybook-dark-mode": "^4.0.2",
"style-loader": "^4.0.0",
"tailwindcss": "^3.4.13",
Expand Down
8 changes: 4 additions & 4 deletions packages/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"test": "jest"
},
"dependencies": {
"eslint": "^9.11.1",
"eslint-config-next": "^14.2.13",
"eslint": "^9.12.0",
"eslint-config-next": "^14.2.14",
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"@types/react": "^18.3.10",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@babel/preset-react": "^7.24.7",
"@babel/preset-react": "^7.25.7",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@types/jest": "^29.5.13",
Expand Down
Loading

0 comments on commit a9c3fbe

Please sign in to comment.