A full-featured CRM built with React, shadcn/ui, and Supabase.
Update dependencies
fzaninotto12626db642fb
diff --git a/package-lock.json b/package-lock.jsonindex 2de4d72e..3a0542c2 100644--- a/package-lock.json+++ b/package-lock.json@@ -11,23 +11,23 @@"@hello-pangea/dnd": "^18.0.1","@nivo/bar": "^0.99.0","@radix-ui/react-accordion": "^1.2.12",- "@radix-ui/react-avatar": "^1.1.10",+ "@radix-ui/react-avatar": "^1.1.11","@radix-ui/react-checkbox": "^1.3.3","@radix-ui/react-dialog": "^1.1.15","@radix-ui/react-dropdown-menu": "^2.1.16",- "@radix-ui/react-label": "^2.1.7",+ "@radix-ui/react-label": "^2.1.8","@radix-ui/react-navigation-menu": "^1.2.14","@radix-ui/react-popover": "^1.1.15","@radix-ui/react-progress": "^1.1.7","@radix-ui/react-radio-group": "^1.3.8","@radix-ui/react-select": "^2.2.6",- "@radix-ui/react-separator": "^1.1.7",- "@radix-ui/react-slot": "^1.2.3",+ "@radix-ui/react-separator": "^1.1.8",+ "@radix-ui/react-slot": "^1.2.4","@radix-ui/react-switch": "^1.2.6","@radix-ui/react-tabs": "^1.1.12","@radix-ui/react-tooltip": "^1.2.8","@tailwindcss/vite": "^4.1.11",- "@tanstack/react-query": "^5.85.9",+ "@tanstack/react-query": "^5.90.8","class-variance-authority": "^0.7.1","clsx": "^2.1.1","cmdk": "^1.1.1",@@ -39,27 +39,27 @@"lucide-react": "^0.542.0","next-themes": "^0.4.6","papaparse": "^5.5.3",- "query-string": "^9.2.2",- "ra-core": "^5.11.0",+ "query-string": "^9.3.1",+ "ra-core": "^5.13.0","ra-data-fakerest": "^5.10.0",- "ra-i18n-polyglot": "^5.11.0",- "ra-language-english": "^5.11.0",- "ra-supabase-core": "^3.5.1",+ "ra-i18n-polyglot": "^5.13.0",+ "ra-language-english": "^5.13.0",+ "ra-supabase-core": "^3.5.2","ra-supabase-language-english": "^3.5.0","react": "^19.1.0","react-cropper": "^2.3.3","react-dom": "^19.1.0","react-dropzone": "^14.3.8","react-error-boundary": "^6.0.0",- "react-hook-form": "^7.62.0",- "react-router": "^7.8.2",+ "react-hook-form": "^7.66.0",+ "react-router": "^7.9.6","rollup-plugin-visualizer": "^6.0.3","sonner": "^2.0.7",- "tailwind-merge": "^3.3.1",+ "tailwind-merge": "^3.4.0","tailwindcss": "^4.1.11",- "tw-animate-css": "^1.3.8",+ "tw-animate-css": "^1.4.0","vaul": "^1.1.2",- "zod": "^4.0.5"+ "zod": "^4.1.12"},"devDependencies": {"@eslint/js": "^9.22.0",@@ -2246,13 +2246,13 @@}},"node_modules/@radix-ui/react-avatar": {- "version": "1.1.10",- "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.1.10.tgz",- "integrity": "sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==",+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.1.11.tgz",+ "integrity": "sha512-0Qk603AHGV28BOBO34p7IgD5m+V5Sg/YovfayABkoDDBM5d3NCx0Mp4gGrjzLGes1jV5eNOE1r3itqOR33VC6Q==","license": "MIT","dependencies": {- "@radix-ui/react-context": "1.1.2",- "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-context": "1.1.3",+ "@radix-ui/react-primitive": "2.1.4","@radix-ui/react-use-callback-ref": "1.1.1","@radix-ui/react-use-is-hydrated": "0.1.0","@radix-ui/react-use-layout-effect": "1.1.1"@@ -2272,6 +2272,44 @@}}},+ "node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.3.tgz",+ "integrity": "sha512-ieIFACdMpYfMEjF0rEf5KLvfVyIkOz6PDGyNnP+u+4xQ6jny3VCgA4OgXOwNx2aUkxn8zx9fiVcM8CfFYv9Lxw==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.4.tgz",+ "integrity": "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "1.2.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-checkbox": {"version": "1.3.3","resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.3.tgz",@@ -2358,6 +2396,24 @@}}},+ "node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-compose-refs": {"version": "1.1.2","resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",@@ -2424,6 +2480,24 @@}}},+ "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-direction": {"version": "1.1.1","resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",@@ -2554,12 +2628,35 @@}},"node_modules/@radix-ui/react-label": {- "version": "2.1.7",- "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.7.tgz",- "integrity": "sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==",+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.8.tgz",+ "integrity": "sha512-FmXs37I6hSBVDlO4y764TNz1rLgKwjJMQ0EGte6F3Cb3f4bIuHB/iLa/8I9VKkmOy+gNHq8rql3j686ACVV21A==","license": "MIT","dependencies": {- "@radix-ui/react-primitive": "2.1.3"+ "@radix-ui/react-primitive": "2.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.4.tgz",+ "integrity": "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "1.2.4"},"peerDependencies": {"@types/react": "*",@@ -2616,6 +2713,24 @@}}},+ "node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-navigation-menu": {"version": "1.2.14","resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.14.tgz",@@ -2689,6 +2804,24 @@}}},+ "node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-popper": {"version": "1.2.8","resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.2.8.tgz",@@ -2792,6 +2925,24 @@}}},+ "node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-progress": {"version": "1.1.7","resolved": "https://registry.npmjs.org/@radix-ui/react-progress/-/react-progress-1.1.7.tgz",@@ -2922,13 +3073,54 @@}}},+ "node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-separator": {- "version": "1.1.7",- "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.7.tgz",- "integrity": "sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==",+ "version": "1.1.8",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.8.tgz",+ "integrity": "sha512-sDvqVY4itsKwwSMEe0jtKgfTh+72Sy3gPmQpjqcQneqQ4PFmr/1I0YA+2/puilhggCe2gJcx5EBAYFkWkdpa5g==","license": "MIT","dependencies": {- "@radix-ui/react-primitive": "2.1.3"+ "@radix-ui/react-primitive": "2.1.4"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.4.tgz",+ "integrity": "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "1.2.4"},"peerDependencies": {"@types/react": "*",@@ -2946,9 +3138,9 @@}},"node_modules/@radix-ui/react-slot": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",- "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.4.tgz",+ "integrity": "sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA==","license": "MIT","dependencies": {"@radix-ui/react-compose-refs": "1.1.2"@@ -3056,6 +3248,24 @@}}},+ "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@radix-ui/react-use-callback-ref": {"version": "1.1.1","resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz",@@ -4171,9 +4381,9 @@}},"node_modules/@tanstack/query-core": {- "version": "5.85.9",- "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.85.9.tgz",- "integrity": "sha512-5fxb9vwyftYE6KFLhhhDyLr8NO75+Wpu7pmTo+TkwKmMX2oxZDoLwcqGP8ItKSpUMwk3urWgQDZfyWr5Jm9LsQ==",+ "version": "5.90.8",+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.90.8.tgz",+ "integrity": "sha512-4E0RP/0GJCxSNiRF2kAqE/LQkTJVlL/QNU7gIJSptaseV9HP6kOuA+N11y4bZKZxa3QopK3ZuewwutHx6DqDXQ==","license": "MIT","funding": {"type": "github",@@ -4181,12 +4391,12 @@}},"node_modules/@tanstack/react-query": {- "version": "5.85.9",- "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.85.9.tgz",- "integrity": "sha512-2T5zgSpcOZXGkH/UObIbIkGmUPQqZqn7esVQFXLOze622h4spgWf5jmvrqAo9dnI13/hyMcNsF1jsoDcb59nJQ==",+ "version": "5.90.8",+ "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.90.8.tgz",+ "integrity": "sha512-/3b9QGzkf4rE5/miL6tyhldQRlLXzMHcySOm/2Tm2OLEFE9P1ImkH0+OviDBSvyAvtAOJocar5xhd7vxdLi3aQ==","license": "MIT","dependencies": {- "@tanstack/query-core": "5.85.9"+ "@tanstack/query-core": "5.90.8"},"funding": {"type": "github",@@ -9230,9 +9440,9 @@}},"node_modules/query-string": {- "version": "9.2.2",- "resolved": "https://registry.npmjs.org/query-string/-/query-string-9.2.2.tgz",- "integrity": "sha512-pDSIZJ9sFuOp6VnD+5IkakSVf+rICAuuU88Hcsr6AKL0QtxSIfVuKiVP2oahFI7tk3CRSexwV+Ya6MOoTxzg9g==",+ "version": "9.3.1",+ "resolved": "https://registry.npmjs.org/query-string/-/query-string-9.3.1.tgz",+ "integrity": "sha512-5fBfMOcDi5SA9qj5jZhWAcTtDfKF5WFdd2uD9nVNlbxVv1baq65aALy6qofpNEGELHvisjjasxQp7BlM9gvMzw==","license": "MIT","dependencies": {"decode-uri-component": "^0.4.1",@@ -9268,9 +9478,9 @@"license": "MIT"},"node_modules/ra-core": {- "version": "5.11.0",- "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.11.0.tgz",- "integrity": "sha512-R1eMWyCkk7JUzJPklf0pvf4NAYcDl0h8oQvUdl/vbNmpm5hf4tcqOnFU5/DaTSzv9+O/nHh1QykKskg1PFbR7w==",+ "version": "5.13.0",+ "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.13.0.tgz",+ "integrity": "sha512-OE++pYk2hRkS9EOTxQIjoK+wSKTd7b57qdpy0S2Od1rThf65s7FaCTAiu1FuL7vpOQBUvHnvlAvg7U4rVZWoJw==","license": "MIT","dependencies": {"@tanstack/react-query": "^5.83.0",@@ -9286,7 +9496,7 @@"peerDependencies": {"react": "^18.0.0 || ^19.0.0","react-dom": "^18.0.0 || ^19.0.0",- "react-hook-form": "^7.53.0",+ "react-hook-form": "^7.65.0","react-router": "^6.28.1 || ^7.1.1","react-router-dom": "^6.28.1 || ^7.1.1"}@@ -9361,28 +9571,28 @@}},"node_modules/ra-i18n-polyglot": {- "version": "5.11.0",- "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.11.0.tgz",- "integrity": "sha512-kdrdfz4YMlCkQwc6St2NhKsbdtle7DaOlq4q9XZcbv4P2yBCCRaPjjmanllm9QbyIxdswLq6VlfZKmLtTEos3Q==",+ "version": "5.13.0",+ "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.13.0.tgz",+ "integrity": "sha512-koKxyp2p8NeP9ofGwoKBnX02G65//X8FHyiOvyFI5MQjbFIaGyLgtBK3F60yQQ6gmRElDPkZPrBE1HtPcYRzWw==","license": "MIT","dependencies": {"node-polyglot": "^2.2.2",- "ra-core": "^5.11.0"+ "ra-core": "^5.13.0"}},"node_modules/ra-language-english": {- "version": "5.11.0",- "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.11.0.tgz",- "integrity": "sha512-QDVzLe0U2oGDT20rycOYf0S/xVXw6szzGSMCr5GAYA9/ruU9p/78Db9eLnghlkoIGINqKl+9fEt3ccOygFs8ww==",+ "version": "5.13.0",+ "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.13.0.tgz",+ "integrity": "sha512-XjDTVeiOd2UmsdWp6lZRarEozBxQKHxwUDTT2tJ6VeOUgI9dbIjd4t/IurBwCp3s5H2kjIj1+vstd3G5G8wBhQ==","license": "MIT","dependencies": {- "ra-core": "^5.11.0"+ "ra-core": "^5.13.0"}},"node_modules/ra-supabase-core": {- "version": "3.5.1",- "resolved": "https://registry.npmjs.org/ra-supabase-core/-/ra-supabase-core-3.5.1.tgz",- "integrity": "sha512-YfcoiK6BZmF/tC36NehNWybxQXYLZ7s3lJ5I63VnPQiX3bVDunZt/aTJ52UeOMukl2Byha0qC93TFYJWE4+8wQ==",+ "version": "3.5.2",+ "resolved": "https://registry.npmjs.org/ra-supabase-core/-/ra-supabase-core-3.5.2.tgz",+ "integrity": "sha512-jF5qnmS6ttuNbClR9oCgJFnb6bnZdUwAaEKvYUeQRSvfsNlKabMibQyt/VQaL5tW5Lv6QChfnGV5KZ/dEJt20g==","license": "MIT","dependencies": {"@raphiniert/ra-data-postgrest": "^2.4.1",@@ -9511,9 +9721,9 @@}},"node_modules/react-hook-form": {- "version": "7.62.0",- "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.62.0.tgz",- "integrity": "sha512-7KWFejc98xqG/F4bAxpL41NB3o1nnvQO1RWZT3TqRZYL8RryQETGfEdVnJN2fy1crCiBLLjkRBVK05j24FxJGA==",+ "version": "7.66.0",+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.66.0.tgz",+ "integrity": "sha512-xXBqsWGKrY46ZqaHDo+ZUYiMUgi8suYu5kdrS20EG8KiL7VRQitEbNjm+UcrDYrNi1YLyfpmAeGjCZYXLT9YBw==","license": "MIT","engines": {"node": ">=18.0.0"@@ -9613,9 +9823,9 @@}},"node_modules/react-router": {- "version": "7.8.2",- "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.8.2.tgz",- "integrity": "sha512-7M2fR1JbIZ/jFWqelpvSZx+7vd7UlBTfdZqf6OSdF9g6+sfdqJDAWcak6ervbHph200ePlu+7G8LdoiC3ReyAQ==",+ "version": "7.9.6",+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.9.6.tgz",+ "integrity": "sha512-Y1tUp8clYRXpfPITyuifmSoE2vncSME18uVLgaqyxh9H35JWpIfzHo+9y3Fzh5odk/jxPW29IgLgzcdwxGqyNA==","license": "MIT","dependencies": {"cookie": "^1.0.1",@@ -9635,13 +9845,13 @@}},"node_modules/react-router-dom": {- "version": "7.8.2",- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.8.2.tgz",- "integrity": "sha512-Z4VM5mKDipal2jQ385H6UBhiiEDlnJPx6jyWsTYoZQdl5TrjxEV2a9yl3Fi60NBJxYzOTGTTHXPi0pdizvTwow==",+ "version": "7.9.6",+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.9.6.tgz",+ "integrity": "sha512-2MkC2XSXq6HjGcihnx1s0DBWQETI4mlis4Ux7YTLvP67xnGxCvq+BcCQSO81qQHVUTM1V53tl4iVVaY5sReCOA==","license": "MIT","peer": true,"dependencies": {- "react-router": "7.8.2"+ "react-router": "7.9.6"},"engines": {"node": ">=20.0.0"@@ -10561,9 +10771,9 @@}},"node_modules/tailwind-merge": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.3.1.tgz",- "integrity": "sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g==",+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.4.0.tgz",+ "integrity": "sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==","license": "MIT","funding": {"type": "github",@@ -10868,9 +11078,9 @@"license": "0BSD"},"node_modules/tw-animate-css": {- "version": "1.3.8",- "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.3.8.tgz",- "integrity": "sha512-Qrk3PZ7l7wUcGYhwZloqfkWCmaXZAoqjkdbIDvzfGshwGtexa/DAs9koXxIkrpEasyevandomzCBAV1Yyop5rw==",+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.4.0.tgz",+ "integrity": "sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==","license": "MIT","funding": {"url": "https://github.com/sponsors/Wombosvideo"@@ -11585,9 +11795,9 @@}},"node_modules/zod": {- "version": "4.1.5",- "resolved": "https://registry.npmjs.org/zod/-/zod-4.1.5.tgz",- "integrity": "sha512-rcUUZqlLJgBC33IT3PNMgsCq6TzLQEG/Ei/KTCU0PedSWRMAXoOUN+4t/0H+Q8bdnLPdqUYnvboJT0bn/229qg==",+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.1.12.tgz",+ "integrity": "sha512-JInaHOamG8pt5+Ey8kGmdcAcg3OL9reK8ltczgHTAwNhMys/6ThXHityHxVV2p3fkw/c+MAvBHFVYHFZDmjMCQ==","license": "MIT","funding": {"url": "https://github.com/sponsors/colinhacks"diff --git a/package.json b/package.jsonindex 16e7c94d..c972433b 100644--- a/package.json+++ b/package.json@@ -23,23 +23,23 @@"@hello-pangea/dnd": "^18.0.1","@nivo/bar": "^0.99.0","@radix-ui/react-accordion": "^1.2.12",- "@radix-ui/react-avatar": "^1.1.10",+ "@radix-ui/react-avatar": "^1.1.11","@radix-ui/react-checkbox": "^1.3.3","@radix-ui/react-dialog": "^1.1.15","@radix-ui/react-dropdown-menu": "^2.1.16",- "@radix-ui/react-label": "^2.1.7",+ "@radix-ui/react-label": "^2.1.8","@radix-ui/react-navigation-menu": "^1.2.14","@radix-ui/react-popover": "^1.1.15","@radix-ui/react-progress": "^1.1.7","@radix-ui/react-radio-group": "^1.3.8","@radix-ui/react-select": "^2.2.6",- "@radix-ui/react-separator": "^1.1.7",- "@radix-ui/react-slot": "^1.2.3",+ "@radix-ui/react-separator": "^1.1.8",+ "@radix-ui/react-slot": "^1.2.4","@radix-ui/react-switch": "^1.2.6","@radix-ui/react-tabs": "^1.1.12","@radix-ui/react-tooltip": "^1.2.8","@tailwindcss/vite": "^4.1.11",- "@tanstack/react-query": "^5.85.9",+ "@tanstack/react-query": "^5.90.8","class-variance-authority": "^0.7.1","clsx": "^2.1.1","cmdk": "^1.1.1",@@ -51,27 +51,27 @@"lucide-react": "^0.542.0","next-themes": "^0.4.6","papaparse": "^5.5.3",- "query-string": "^9.2.2",- "ra-core": "^5.11.0",+ "query-string": "^9.3.1",+ "ra-core": "^5.13.0","ra-data-fakerest": "^5.10.0",- "ra-i18n-polyglot": "^5.11.0",- "ra-language-english": "^5.11.0",- "ra-supabase-core": "^3.5.1",+ "ra-i18n-polyglot": "^5.13.0",+ "ra-language-english": "^5.13.0",+ "ra-supabase-core": "^3.5.2","ra-supabase-language-english": "^3.5.0","react": "^19.1.0","react-cropper": "^2.3.3","react-dom": "^19.1.0","react-dropzone": "^14.3.8","react-error-boundary": "^6.0.0",- "react-hook-form": "^7.62.0",- "react-router": "^7.8.2",+ "react-hook-form": "^7.66.0",+ "react-router": "^7.9.6","rollup-plugin-visualizer": "^6.0.3","sonner": "^2.0.7",- "tailwind-merge": "^3.3.1",+ "tailwind-merge": "^3.4.0","tailwindcss": "^4.1.11",- "tw-animate-css": "^1.3.8",+ "tw-animate-css": "^1.4.0","vaul": "^1.1.2",- "zod": "^4.0.5"+ "zod": "^4.1.12"},"devDependencies": {"@eslint/js": "^9.22.0",diff --git a/src/components/admin/array-field.tsx b/src/components/admin/array-field.tsxindex 5372bb3e..1550dc41 100644--- a/src/components/admin/array-field.tsx+++ b/src/components/admin/array-field.tsx@@ -21,4 +21,5 @@ export type ArrayFieldProps<children?: ReactNode;};+// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst emptyArray: any[] = [];diff --git a/src/components/admin/array-input.tsx b/src/components/admin/array-input.tsxindex 7f55024b..f64f2cdd 100644--- a/src/components/admin/array-input.tsx+++ b/src/components/admin/array-input.tsx@@ -1,9 +1,7 @@-import type { InputProps } from "ra-core";import {FieldTitle,OptionalResourceContextProvider,SourceContextProvider,- type SourceContextValue,composeSyncValidators,isRequired,useApplyInputDefaultValues,@@ -11,7 +9,10 @@ import {useFormGroups,useGetValidationErrorMessage,useSourceContext,+ sanitizeInputRestProps,+ ArrayInputContext,} from "ra-core";+import type { InputProps, SourceContextValue } from "ra-core";import * as React from "react";import { useEffect } from "react";import { useFieldArray, useFormContext } from "react-hook-form";@@ -19,8 +20,6 @@ import { useFieldArray, useFormContext } from "react-hook-form";import { Label } from "@/components/ui/label";import { cn } from "@/lib/utils";import { Skeleton } from "../ui/skeleton";-import { sanitizeInputRestProps } from "@/lib/sanitizeInputRestProps";-import { ArrayInputContext } from "@/hooks/array-input-context";import { InputHelperText } from "@/components/admin/input-helper-text";import { FormError, FormField } from "@/components/admin/form";diff --git a/src/components/admin/autocomplete-input.tsx b/src/components/admin/autocomplete-input.tsxindex 0629243a..b069f777 100644--- a/src/components/admin/autocomplete-input.tsx+++ b/src/components/admin/autocomplete-input.tsx@@ -9,6 +9,7 @@ import {CommandGroup,CommandInput,CommandItem,+ CommandList,} from "@/components/ui/command";import {FormControl,@@ -32,8 +33,10 @@ import {useEvent,} from "ra-core";import { InputHelperText } from "./input-helper-text";-import type { SupportCreateSuggestionOptions } from "@/hooks/useSupportCreateSuggestion";-import { useSupportCreateSuggestion } from "@/hooks/useSupportCreateSuggestion";+import {+ SupportCreateSuggestionOptions,+ useSupportCreateSuggestion,+} from "@/hooks/useSupportCreateSuggestion";export const AutocompleteInput = (props: Omit<InputProps, "source"> &@@ -208,40 +211,42 @@ export const AutocompleteInput = (}}}/>- <CommandEmpty>No matching item found.</CommandEmpty>- <CommandGroup>- {finalChoices.map((choice) => {- const isCreateItem =- !!createItem && choice?.id === createItem.id;- const disabled = getOptionDisabled(choice);+ <CommandList>+ <CommandEmpty>No matching item found.</CommandEmpty>+ <CommandGroup>+ {finalChoices.map((choice) => {+ const isCreateItem =+ !!createItem && choice?.id === createItem.id;+ const disabled = getOptionDisabled(choice);- return (- <CommandItem- key={getChoiceValue(choice)}- value={- isCreateItem- ? // if it's the create option, include the filter value so it is shown in the command input- // characters before and after the filter value are required- // to show the option when the filter value starts or ends with a space- `?${filterValue}?`- : getChoiceValue(choice)- }- onSelect={() => handleChangeWithCreateSupport(choice)}- disabled={disabled}- >- <Check- className={cn(- "mr-2 h-4 w-4",- field.value === getChoiceValue(choice)- ? "opacity-100"- : "opacity-0",- )}- />- {getChoiceText(isCreateItem ? createItem : choice)}- </CommandItem>- );- })}- </CommandGroup>+ return (+ <CommandItem+ key={getChoiceValue(choice)}+ value={+ isCreateItem+ ? // if it's the create option, include the filter value so it is shown in the command input+ // characters before and after the filter value are required+ // to show the option when the filter value starts or ends with a space+ `?${filterValue}?`+ : getChoiceValue(choice)+ }+ onSelect={() => handleChangeWithCreateSupport(choice)}+ disabled={disabled}+ >+ <Check+ className={cn(+ "mr-2 h-4 w-4",+ field.value === getChoiceValue(choice)+ ? "opacity-100"+ : "opacity-0",+ )}+ />+ {getChoiceText(isCreateItem ? createItem : choice)}+ </CommandItem>+ );+ })}+ </CommandGroup>+ </CommandList></Command></PopoverContent></Popover>diff --git a/src/components/admin/boolean-input.tsx b/src/components/admin/boolean-input.tsxindex 22f21fd3..1828992c 100644--- a/src/components/admin/boolean-input.tsx+++ b/src/components/admin/boolean-input.tsx@@ -75,7 +75,7 @@ export interface BooleanInputProps {defaultValue?: boolean;format?: (value: any) => any;helperText?: React.ReactNode;- label?: string;+ label?: React.ReactNode;onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;onChange?: (value: any) => void;onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;diff --git a/src/components/admin/breadcrumb.tsx b/src/components/admin/breadcrumb.tsxindex 0bc5e505..84b2741c 100644--- a/src/components/admin/breadcrumb.tsx+++ b/src/components/admin/breadcrumb.tsx@@ -76,14 +76,18 @@ export const Breadcrumb = ({ children, ref }: BreadcrumbProps) => {{React.Children.toArray(children).slice(-1)}</React.Fragment>) : (- React.Children.map(children, (child, index) => (- <React.Fragment key={index}>- {child}- {index < React.Children.count(children) - 1 ? (- <BreadcrumbSeparator />- ) : null}- </React.Fragment>- ))+ React.Children.map(+ children,+ (child, index) =>+ child && (+ <React.Fragment key={index}>+ {child}+ {index < React.Children.count(children) - 1 ? (+ <BreadcrumbSeparator />+ ) : null}+ </React.Fragment>+ ),+ ))}</BreadcrumbList></BaseBreadcrumb>@@ -91,6 +95,8 @@ export const Breadcrumb = ({ children, ref }: BreadcrumbProps) => {breadcrumbPortal,);};+Breadcrumb.Item = BreadcrumbItem;+Breadcrumb.PageItem = BreadcrumbPage;export { BreadcrumbItem, BreadcrumbPage };diff --git a/src/components/admin/bulk-delete-button.tsx b/src/components/admin/bulk-delete-button.tsxindex 32891bec..888ae4fc 100644--- a/src/components/admin/bulk-delete-button.tsx+++ b/src/components/admin/bulk-delete-button.tsx@@ -1,95 +1,26 @@import { Button } from "@/components/ui/button";import { Trash } from "lucide-react";-import {- Translate,- useDeleteMany,- useListContext,- useNotify,- useRefresh,- useResourceContext,- useTranslate,- type MutationMode,- type RaRecord,- type UseDeleteManyOptions,-} from "ra-core";+import type { RaRecord, UseBulkDeleteControllerParams } from "ra-core";+import { Translate, useBulkDeleteController } from "ra-core";import { cn } from "@/lib/utils";import type { ReactNode } from "react";-export interface BulkDeleteButtonProps<- RecordType extends RaRecord = any,- MutationOptionsError = unknown,-> extends React.HTMLAttributes<HTMLButtonElement> {- mutationMode?: MutationMode;- label?: string;- resource?: string;- className?: string;- icon?: ReactNode;- mutationOptions?: UseDeleteManyOptions<RecordType, MutationOptionsError> & {- meta?: any;- };-}-export const BulkDeleteButton = <RecordType extends RaRecord = any,MutationOptionsError = unknown,->(- props: BulkDeleteButtonProps<RecordType, MutationOptionsError>,-) => {- const {- mutationMode = "undoable",- icon = defaultIcon,- label,- className,- mutationOptions = {},- } = props;- const { meta: mutationMeta, ...otherMutationOptions } = mutationOptions;- const resource = useResourceContext(props);- const [deleteMany, { isPending }] = useDeleteMany<- RecordType,- MutationOptionsError- >();- const { selectedIds, onUnselectItems } = useListContext();- const notify = useNotify();- const refresh = useRefresh();- const translate = useTranslate();- const handleClick = (e: React.MouseEvent) => {- stopPropagation(e);- deleteMany(- resource,- { ids: selectedIds, meta: mutationMeta },- {- mutationMode,- onSuccess: () => {- onUnselectItems();- notify(`resources.${resource}.notifications.deleted`, {- messageArgs: {- smart_count: selectedIds.length,- _: translate("ra.notification.deleted", {- smart_count: selectedIds.length,- _: `${selectedIds.length} elements deleted`,- }),- },- undoable: mutationMode === "undoable",- });- },- onError: (error: MutationOptionsError) => {- const errorMessage =- typeof error === "string" ? error : (error as any)?.message;- notify(errorMessage || "ra.notification.http_error", {- type: "error",- messageArgs: { _: errorMessage },- });- refresh();- },- ...otherMutationOptions,- },- );- };+>({+ icon = defaultIcon,+ label,+ className,+ ...props+}: BulkDeleteButtonProps<RecordType, MutationOptionsError>) => {+ const { handleDelete, isPending } = useBulkDeleteController(props);+return (<Buttonvariant="destructive"type="button"- onClick={handleClick}+ onClick={handleDelete}disabled={isPending}className={cn("h-9", className)}>@@ -101,7 +32,13 @@ export const BulkDeleteButton = <);};-const defaultIcon = <Trash />;+export type BulkDeleteButtonProps<+ RecordType extends RaRecord = any,+ MutationOptionsError = unknown,+> = {+ label?: string;+ icon?: ReactNode;+} & React.ComponentPropsWithoutRef<"button"> &+ UseBulkDeleteControllerParams<RecordType, MutationOptionsError>;-// useful to prevent click bubbling in a datagrid with rowClick-const stopPropagation = (e: React.MouseEvent) => e.stopPropagation();+const defaultIcon = <Trash />;diff --git a/src/components/admin/bulk-export-button.tsx b/src/components/admin/bulk-export-button.tsxindex bcd2c5dc..798d7328 100644--- a/src/components/admin/bulk-export-button.tsx+++ b/src/components/admin/bulk-export-button.tsx@@ -1,12 +1,8 @@import { Download } from "lucide-react";-import { Translate } from "ra-core";+import type { RaRecord } from "ra-core";+import { Translate, useBulkExport, UseBulkExportOptions } from "ra-core";import { Button } from "../ui/button";-import type {- ResourceInformation,- UseBulkExportProps,-} from "@/hooks/useBulkExport";-import { useBulkExport } from "@/hooks/useBulkExport";/*** Export the selected rows@@ -31,13 +27,13 @@ import { useBulkExport } from "@/hooks/useBulkExport";* </List>* );*/-export const BulkExportButton = <T extends ResourceInformation>({+export const BulkExportButton = <T extends RaRecord>({icon = defaultIcon,label = "ra.action.export",onClick,...props}: BulkExportButtonProps<T>) => {- const { bulkExport } = useBulkExport(props);+ const bulkExport = useBulkExport(props);const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {bulkExport();@@ -61,13 +57,13 @@ export const BulkExportButton = <T extends ResourceInformation>({const defaultIcon = <Download className="h-4 w-4" />;-export type BulkExportButtonProps<T extends ResourceInformation> =- UseBulkExportProps<T> & {+export type BulkExportButtonProps<T extends RaRecord> =+ UseBulkExportOptions<T> & {icon?: React.ReactNode;label?: string;} & React.ComponentProps<typeof Button>;-const sanitizeRestProps = <T extends ResourceInformation>({+const sanitizeRestProps = <T extends RaRecord>({resource: _resource,exporter: _exporter,onClick: _onClick,diff --git a/src/components/admin/confirm.tsx b/src/components/admin/confirm.tsxindex 094c5350..1f3bdb59 100644--- a/src/components/admin/confirm.tsx+++ b/src/components/admin/confirm.tsx@@ -99,7 +99,7 @@ export interface ConfirmProps {confirmColor?: "primary" | "warning";ConfirmIcon?: ComponentType;CancelIcon?: ComponentType;- content: React.ReactNode;+ content?: React.ReactNode;isOpen?: boolean;loading?: boolean;onClose: () => void;diff --git a/src/components/admin/count.tsx b/src/components/admin/count.tsxindex a2165116..757997c6 100644--- a/src/components/admin/count.tsx+++ b/src/components/admin/count.tsx@@ -82,6 +82,7 @@ export const Count = (props: CountProps) => {};export interface CountProps {+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyfilter?: any;sort?: SortPayload;link?: boolean;diff --git a/src/components/admin/create.tsx b/src/components/admin/create.tsxindex 8c8c9954..a44a3626 100644--- a/src/components/admin/create.tsx+++ b/src/components/admin/create.tsx@@ -3,9 +3,9 @@ import {BreadcrumbItem,BreadcrumbPage,} from "@/components/admin/breadcrumb";+import type { CreateBaseProps } from "ra-core";import {CreateBase,- type CreateBaseProps,Translate,useCreateContext,useCreatePath,@@ -20,14 +20,20 @@ import { cn } from "@/lib/utils";export type CreateProps = CreateViewProps & CreateBaseProps;export const Create = ({- title,- children,actions,+ children,className,+ disableBreadcrumb,+ title,...rest}: CreateProps) => (<CreateBase {...rest}>- <CreateView title={title} actions={actions} className={className}>+ <CreateView+ actions={actions}+ className={className}+ disableBreadcrumb={disableBreadcrumb}+ title={title}+ >{children}</CreateView></CreateBase>@@ -35,6 +41,7 @@ export const Create = ({export type CreateViewProps = {actions?: ReactNode;+ disableBreadcrumb?: boolean;children: ReactNode;className?: string;title?: ReactNode | string | false;@@ -42,6 +49,7 @@ export type CreateViewProps = {export const CreateView = ({actions,+ disableBreadcrumb,title,children,className,@@ -65,21 +73,23 @@ export const CreateView = ({return (<>- <Breadcrumb>- {hasDashboard && (+ {!disableBreadcrumb && (+ <Breadcrumb>+ {hasDashboard && (+ <BreadcrumbItem>+ <Link to="/">+ <Translate i18nKey="ra.page.dashboard">Home</Translate>+ </Link>+ </BreadcrumbItem>+ )}<BreadcrumbItem>- <Link to="/">- <Translate i18nKey="ra.page.dashboard">Home</Translate>- </Link>+ <Link to={listLink}>{listLabel}</Link></BreadcrumbItem>- )}- <BreadcrumbItem>- <Link to={listLink}>{listLabel}</Link>- </BreadcrumbItem>- <BreadcrumbPage>- <Translate i18nKey="ra.action.create">Create</Translate>- </BreadcrumbPage>- </Breadcrumb>+ <BreadcrumbPage>+ <Translate i18nKey="ra.action.create">Create</Translate>+ </BreadcrumbPage>+ </Breadcrumb>+ )}<divclassName={cn("flex justify-between items-start flex-wrap gap-2 my-2",diff --git a/src/components/admin/data-table.tsx b/src/components/admin/data-table.tsxindex 0b6e3db2..859d04ca 100644--- a/src/components/admin/data-table.tsx+++ b/src/components/admin/data-table.tsx@@ -1,10 +1,5 @@-import {- Children,- createElement,- isValidElement,- useCallback,- type ReactNode,-} from "react";+import type { ReactNode } from "react";+import { Children, createElement, isValidElement, useCallback } from "react";import type {DataTableBaseProps,ExtractRecordPaths,@@ -259,6 +254,7 @@ const DataTableRow = ({);};+// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst isPromise = (value: any): value is Promise<any> =>value && typeof value.then === "function";diff --git a/src/components/admin/date-field.tsx b/src/components/admin/date-field.tsxindex 5ebecb0e..c04deec1 100644--- a/src/components/admin/date-field.tsx+++ b/src/components/admin/date-field.tsx@@ -29,6 +29,7 @@ import type { FieldProps } from "@/lib/field.type";* <span>mercredi 7 novembre 2012</span>*/const DateFieldImpl = <+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,>(inProps: DateFieldProps<RecordType>,@@ -100,6 +101,7 @@ DateFieldImpl.displayName = "DateFieldImpl";export const DateField = genericMemo(DateFieldImpl);export interface DateFieldProps<+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,> extends FieldProps<RecordType>,HTMLAttributes<HTMLSpanElement> {diff --git a/src/components/admin/date-input.tsx b/src/components/admin/date-input.tsxnew file mode 100644index 00000000..67b75088--- /dev/null+++ b/src/components/admin/date-input.tsx@@ -0,0 +1,305 @@+import * as React from "react";+import type { InputProps } from "ra-core";+import { useInput, FieldTitle, useEvent, useResourceContext } from "ra-core";+import {+ FormControl,+ FormError,+ FormField,+ FormLabel,+} from "@/components/admin/form";+import { Input } from "@/components/ui/input";+import { InputHelperText } from "@/components/admin/input-helper-text";+import { cn } from "@/lib/utils";++/**+ * Form input to edit a Date string value in the "YYYY-MM-DD" format (e.g. '2021-06-23').+ *+ * Renders a date picker (the exact UI depends on the browser).+ *+ * @example+ * import { Edit, SimpleForm, DateInput } from 'react-admin';+ *+ * const PostEdit = () => (+ * <Edit>+ * <SimpleForm>+ * <DateInput source="published_at" />+ * </SimpleForm>+ * </Edit>+ * );+ *+ * @example+ * // If the initial value string contains more than a date (e.g. an hour, a timezone),+ * // these details are ignored.+ * <DateInput source="published_at" defaultValue="2021-09-11T20:46:20.000-04:00" />+ * // The input will display '2021-09-11' regardless of the browser timezone.+ *+ * @example+ * // If the initial value is a Date object, DateInput converts it to a string+ * // and ignores the timezone.+ * <DateInput source="published_at" defaultValue={new Date("2021-09-11T20:46:20.000-04:00")} />+ * // The input will display '2021-09-11' regardless of the browser timezone.+ *+ * @example+ * // If you want to manipulate the value from the field to adjust its timezone, use the format prop+ * <DateInput source="published_at" format={value => new Date(value).toISOString().split("T")[0]} />+ * // The input will display the UTC day regardless of the browser timezone.+ *+ * @example+ * // If you want the returned value to be a Date, you must pass a custom parse method+ * // to convert the form value (which is always a date string) back to a Date object.+ * <DateInput source="published_at" parse={val => new Date(val)} />+ */+export const DateInput = (props: DateInputProps) => {+ const {+ className,+ inputClassName,+ defaultValue,+ format = defaultFormat,+ label,+ source,+ helperText,+ onChange,+ onFocus,+ validate,+ disabled,+ readOnly,+ ...rest+ } = props;++ const resource = useResourceContext(props);++ const {+ field,+ fieldState: _fieldState,+ id,+ isRequired,+ } = useInput({+ defaultValue,+ source,+ validate,+ disabled,+ readOnly,+ format,+ ...rest,+ });+ const localInputRef = React.useRef<HTMLInputElement>(null);+ // DateInput is not a really controlled input to ensure users can start entering a date, go to another input and come back to complete it.+ // This ref stores the value that is passed to the input defaultValue prop to solve this issue.+ const initialDefaultValueRef = React.useRef(field.value);+ // As the defaultValue prop won't trigger a remount of the HTML input, we will force it by changing the key.+ const [inputKey, setInputKey] = React.useState(1);+ // This ref let us track that the last change of the form state value was made by the input itself+ const wasLastChangedByInput = React.useRef(false);++ // This effect ensures we stays in sync with the react-hook-form state when the value changes from outside the input+ // for instance by using react-hook-form reset or setValue methods.+ React.useEffect(() => {+ // Ignore react-hook-form state changes if it came from the input itself+ if (wasLastChangedByInput.current) {+ // Resets the flag to ensure futures changes are handled+ wasLastChangedByInput.current = false;+ return;+ }++ const hasNewValueFromForm =+ localInputRef.current?.value !== field.value &&+ !(localInputRef.current?.value === "" && field.value == null);++ if (hasNewValueFromForm) {+ // The value has changed from outside the input, we update the input value+ initialDefaultValueRef.current = field.value;+ // Trigger a remount of the HTML input+ setInputKey((r) => r + 1);+ // Resets the flag to ensure futures changes are handled+ wasLastChangedByInput.current = false;+ }+ }, [setInputKey, field.value]);++ const { onBlur: onBlurFromField } = field;+ const hasFocus = React.useRef(false);++ // Update the input text when the user types in the input.+ // Also, update the react-hook-form value if the input value is a valid date string.+ const handleChange = useEvent(+ (event: React.ChangeEvent<HTMLInputElement>) => {+ if (onChange) {+ onChange(event);+ }+ if (+ typeof event.target === "undefined" ||+ typeof event.target.value === "undefined"+ ) {+ return;+ }+ const target = event.target;+ const newValue = target.value;+ const isNewValueValid =+ newValue === "" ||+ (target.valueAsDate != null &&+ !isNaN(new Date(target.valueAsDate).getTime()));++ // Some browsers will return null for an invalid date+ // so we only change react-hook-form value if it's not null.+ // The input reset is handled in the onBlur event handler+ if (newValue !== "" && newValue != null && isNewValueValid) {+ field.onChange(newValue);+ // Track the fact that the next react-hook-form state change was triggered by the input itself+ wasLastChangedByInput.current = true;+ }+ },+ );++ const handleFocus = useEvent((event: React.FocusEvent<HTMLInputElement>) => {+ if (onFocus) {+ onFocus(event);+ }+ hasFocus.current = true;+ });++ const handleBlur = useEvent(() => {+ hasFocus.current = false;++ if (!localInputRef.current) {+ return;+ }++ const newValue = localInputRef.current.value;+ // To ensure users can clear the input, we check its value on blur+ // and submit it to react-hook-form+ const isNewValueValid =+ newValue === "" ||+ (localInputRef.current.valueAsDate != null &&+ !isNaN(new Date(localInputRef.current.valueAsDate).getTime()));++ if (isNewValueValid && field.value !== newValue) {+ field.onChange(newValue ?? "");+ }++ if (onBlurFromField) {+ onBlurFromField();+ }+ });++ const { ref, name } = field;+ const inputRef = React.useCallback(+ (node: HTMLInputElement | null) => {+ if (typeof ref === "function") {+ ref(node);+ } else if (ref && node) {+ (ref as React.MutableRefObject<HTMLInputElement | null>).current = node;+ }+ localInputRef.current = node;+ },+ [ref],+ );++ return (+ <FormField id={id} className={className} name={name}>+ {label !== false && (+ <FormLabel>+ <FieldTitle+ label={label}+ source={source}+ resource={resource}+ isRequired={isRequired}+ />+ </FormLabel>+ )}+ <FormControl>+ <Input+ ref={inputRef}+ defaultValue={format(initialDefaultValueRef.current) ?? ""}+ key={inputKey}+ type="date"+ onChange={handleChange}+ onFocus={handleFocus}+ onBlur={handleBlur}+ className={cn(+ "ra-input",+ `ra-input-${source}`,+ "[color-scheme:light] dark:[color-scheme:dark] relative [&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:absolute [&::-webkit-calendar-picker-indicator]:right-3 [&::-webkit-calendar-picker-indicator]:opacity-100 pr-10",+ inputClassName,+ )}+ disabled={disabled || readOnly}+ readOnly={readOnly}+ {...rest}+ />+ </FormControl>+ <InputHelperText helperText={helperText} />+ <FormError />+ </FormField>+ );+};++export type DateInputProps = InputProps & {+ inputClassName?: string;+} & Omit<React.ComponentProps<"input">, "label" | "defaultValue">;++/**+ * Convert Date object to String, using the local timezone+ *+ * @param {Date} value value to convert+ * @returns {String} A standardized date (yyyy-MM-dd), to be passed to an <input type="date" />+ */+const convertDateToString = (value: Date) => {+ if (!(value instanceof Date) || isNaN(value.getDate())) return "";+ const localDate = new Date(value.getTime());+ const pad = "00";+ const yyyy = localDate.getFullYear().toString();+ const MM = (localDate.getMonth() + 1).toString();+ const dd = localDate.getDate().toString();+ return `${yyyy}-${(pad + MM).slice(-2)}-${(pad + dd).slice(-2)}`;+};++const dateRegex = /^\d{4}-\d{2}-\d{2}$/;++/**+ * Convert a form state value to a date string for the `<input type="date">` value.+ *+ * Form state values can be anything from:+ * - a string in the "YYYY-MM-DD" format+ * - A valid date string+ * - an ISO date string+ * - a Date object+ * - a Linux timestamp+ * - an empty string+ *+ * When it's not a bare date string (YYYY-MM-DD), the value is converted to+ * this format using the JS Date object.+ * THIS MAY CHANGE THE DATE VALUE depending on the browser locale.+ * For example, the string "09/11/2021" may be converted to "2021-09-10"+ * in Honolulu. This is expected behavior.+ * If this is not what you want, you should provide your own parse method.+ *+ * The output is always a string in the "YYYY-MM-DD" format.+ *+ * @example+ * defaultFormat('2021-09-11'); // '2021-09-11'+ * defaultFormat('09/11/2021'); // '2021-09-11' (may change depending on the browser locale)+ * defaultFormat('2021-09-11T20:46:20.000Z'); // '2021-09-11' (may change depending on the browser locale)+ * defaultFormat(new Date('2021-09-11T20:46:20.000Z')); // '2021-09-11' (may change depending on the browser locale)+ * defaultFormat(1631385980000); // '2021-09-11' (may change depending on the browser locale)+ * defaultFormat(''); // null+ */+const defaultFormat = (value: string | Date | number) => {+ // null, undefined and empty string values should not go through dateFormatter+ // otherwise, it returns undefined and will make the input an uncontrolled one.+ if (value == null || value === "") {+ return null;+ }++ // Date objects should be converted to strings+ if (value instanceof Date) {+ return convertDateToString(value);+ }++ // Valid date strings (YYYY-MM-DD) should be considered as is+ if (typeof value === "string") {+ if (dateRegex.test(value)) {+ return value;+ }+ }++ // other values (e.g., localized date strings, timestamps) need to be converted to Dates first+ return convertDateToString(new Date(value));+};diff --git a/src/components/admin/delete-button.tsx b/src/components/admin/delete-button.tsxindex 6d0de834..f6f3c233 100644--- a/src/components/admin/delete-button.tsx+++ b/src/components/admin/delete-button.tsx@@ -2,6 +2,7 @@ import * as React from "react";import { Trash } from "lucide-react";import { Button } from "@/components/ui/button";import { humanize, singularize } from "inflection";+import type { UseDeleteOptions, RedirectionSideEffect } from "ra-core";import {useDeleteWithUndoController,useGetRecordRepresentation,@@ -9,8 +10,6 @@ import {useRecordContext,useResourceContext,useTranslate,- type UseDeleteOptions,- type RedirectionSideEffect,} from "ra-core";export type DeleteButtonProps = {diff --git a/src/components/admin/edit-button.tsx b/src/components/admin/edit-button.tsxindex 5233ab73..69dbeef8 100644--- a/src/components/admin/edit-button.tsx+++ b/src/components/admin/edit-button.tsx@@ -1,12 +1,12 @@import React from "react";import { buttonVariants } from "@/components/ui/button";import { Pencil } from "lucide-react";+import type { RaRecord } from "ra-core";import {useCreatePath,useRecordContext,useResourceContext,Translate,- type RaRecord,} from "ra-core";import { Link } from "react-router";diff --git a/src/components/admin/edit-guesser.tsx b/src/components/admin/edit-guesser.tsxindex 29817e2a..9e52e747 100644--- a/src/components/admin/edit-guesser.tsx+++ b/src/components/admin/edit-guesser.tsx@@ -66,6 +66,7 @@ const EditViewGuesser = (props: { enableLog?: boolean }) => {).sort();+ // eslint-disable-next-line no-consoleconsole.log(`Guessed Edit:diff --git a/src/components/admin/edit.tsx b/src/components/admin/edit.tsxindex 8ec7ac08..8b196499 100644--- a/src/components/admin/edit.tsx+++ b/src/components/admin/edit.tsx@@ -24,20 +24,27 @@ import { DeleteButton } from "./delete-button";export interface EditProps extends EditViewProps, EditBaseProps {}export const Edit = ({- title,- children,actions,+ children,className,+ disableBreadcrumb,+ title,...rest}: EditProps) => (<EditBase {...rest}>- <EditView title={title} actions={actions} className={className}>+ <EditView+ actions={actions}+ className={className}+ disableBreadcrumb={disableBreadcrumb}+ title={title}+ >{children}</EditView></EditBase>);export interface EditViewProps {+ disableBreadcrumb?: boolean;title?: ReactNode | string | false;actions?: ReactNode;children?: ReactNode;@@ -45,6 +52,7 @@ export interface EditViewProps {}export const EditView = ({+ disableBreadcrumb,title,actions,className,@@ -78,19 +86,21 @@ export const EditView = ({return (<>- <Breadcrumb>- {hasDashboard && (+ {!disableBreadcrumb && (+ <Breadcrumb>+ {hasDashboard && (+ <BreadcrumbItem>+ <Link to="/">+ <Translate i18nKey="ra.page.dashboard">Home</Translate>+ </Link>+ </BreadcrumbItem>+ )}<BreadcrumbItem>- <Link to="/">- <Translate i18nKey="ra.page.dashboard">Home</Translate>- </Link>+ <Link to={listLink}>{listLabel}</Link></BreadcrumbItem>- )}- <BreadcrumbItem>- <Link to={listLink}>{listLabel}</Link>- </BreadcrumbItem>- <BreadcrumbPage>{recordRepresentation}</BreadcrumbPage>- </Breadcrumb>+ <BreadcrumbPage>{recordRepresentation}</BreadcrumbPage>+ </Breadcrumb>+ )}<divclassName={cn("flex justify-between items-start flex-wrap gap-2 my-2",diff --git a/src/components/admin/export-button.tsx b/src/components/admin/export-button.tsxindex d9f207d3..7143426b 100644--- a/src/components/admin/export-button.tsx+++ b/src/components/admin/export-button.tsx@@ -96,6 +96,6 @@ export interface ExportButtonProps {maxResults?: number;onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;resource?: string;-+ // eslint-disable-next-line @typescript-eslint/no-explicit-anymeta?: any;}diff --git a/src/components/admin/field-toggle.tsx b/src/components/admin/field-toggle.tsxindex eb7d7549..216791cd 100644--- a/src/components/admin/field-toggle.tsx+++ b/src/components/admin/field-toggle.tsx@@ -22,7 +22,7 @@ export const FieldToggle = (props: FieldToggleProps) => {const handleDragStart = () => {document.addEventListener("dragover",- handleDocumentDragOver as EventListener,+ handleDocumentDragOver as EventListener);};@@ -36,7 +36,7 @@ export const FieldToggle = (props: FieldToggleProps) => {}const elementAtDragCoordinates = document.elementFromPoint(x.current,- y.current,+ y.current);let dropItem =elementAtDragCoordinates === null@@ -104,7 +104,7 @@ export const FieldToggle = (props: FieldToggleProps) => {selectedItem.dataset.dragActive = "false";document.removeEventListener("dragover",- handleDocumentDragOver as EventListener,+ handleDocumentDragOver as EventListener);};@@ -125,7 +125,7 @@ export const FieldToggle = (props: FieldToggleProps) => {data-index={index}className={cn("flex justify-between items-center py-1",- "data-[drag-active=true]:bg-transparent data-[drag-active=true]:text-transparent data-[drag-active=true]:outline data-[drag-active=true]:outline-1 data-[drag-active=true]:outline-border",+ "data-[drag-active=true]:bg-transparent data-[drag-active=true]:text-transparent data-[drag-active=true]:outline data-[drag-active=true]:outline-1 data-[drag-active=true]:outline-border")}><label@@ -155,7 +155,7 @@ export interface FieldToggleProps {onToggle?: (event: boolean) => void;onMove?: (dragIndex: string | number,- dropIndex: string | number | null,+ dropIndex: string | number | null) => void;source: string;index: number | string;diff --git a/src/components/admin/file-input.tsx b/src/components/admin/file-input.tsxindex ba8e9ef6..57b838d6 100644--- a/src/components/admin/file-input.tsx+++ b/src/components/admin/file-input.tsx@@ -1,13 +1,11 @@import * as React from "react";-import type { HTMLAttributes } from "react";-import {- Children,- isValidElement,- type ComponentType,- type ReactElement,- type ReactNode,- useEffect,+import type {+ ComponentType,+ ReactElement,+ ReactNode,+ HTMLAttributes,} from "react";+import { Children, isValidElement, useEffect } from "react";import type { InputProps } from "ra-core";import {FieldTitle,@@ -16,12 +14,13 @@ import {useInput,useTranslate,} from "ra-core";-import type {+import type { DropzoneOptions } from "react-dropzone";+import {+ useDropzone,FileRejection,DropEvent,DropzoneInputProps,} from "react-dropzone";-import { useDropzone, type DropzoneOptions } from "react-dropzone";import { XCircle } from "lucide-react";import { cn } from "@/lib/utils";@@ -119,6 +118,7 @@ export const FileInput = (props: FileInputProps) => {const files = value ? (Array.isArray(value) ? value : [value]) : [];const onDrop = (+ // eslint-disable-next-line @typescript-eslint/no-explicit-anynewFiles: any[],rejectedFiles: FileRejection[],event: DropEvent,@@ -138,6 +138,7 @@ export const FileInput = (props: FileInputProps) => {}};+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyconst onRemove = (file: any) => async () => {if (validateFileRemoval) {try {@@ -230,18 +231,21 @@ export const FileInput = (props: FileInputProps) => {{children && (<div className="previews flex flex-col gap-1">- {files.map((file: any, index: number) => (- <FileInputPreview- key={index}- file={file}- onRemove={onRemove(file)}- removeIcon={removeIcon}- >- <RecordContextProvider value={file}>- {childrenElement}- </RecordContextProvider>- </FileInputPreview>- ))}+ {+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ files.map((file: any, index: number) => (+ <FileInputPreview+ key={index}+ file={file}+ onRemove={onRemove(file)}+ removeIcon={removeIcon}+ >+ <RecordContextProvider value={file}>+ {childrenElement}+ </RecordContextProvider>+ </FileInputPreview>+ ))+ }</div>)}</FormField>@@ -258,12 +262,12 @@ export type FileInputProps = Omit<InputProps, "type"> & {minSize?: DropzoneOptions["minSize"];multiple?: DropzoneOptions["multiple"];options?: DropzoneOptions;-+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyonRemove?: (file: any) => void;placeholder?: ReactNode;removeIcon?: ComponentType<{ className?: string }>;inputProps?: DropzoneInputProps & React.ComponentProps<"input">;-+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyvalidateFileRemoval?(file: any): boolean | Promise<boolean>;};@@ -315,6 +319,7 @@ export const FileInputPreview = (props: FileInputPreviewProps) => {};export interface FileInputPreviewProps extends HTMLAttributes<HTMLDivElement> {+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyfile: any;onRemove: () => void;removeIcon?: React.ComponentType<{ className?: string }>;diff --git a/src/components/admin/filter-form.tsx b/src/components/admin/filter-form.tsxindex ac12ce68..afaa8c06 100644--- a/src/components/admin/filter-form.tsx+++ b/src/components/admin/filter-form.tsx@@ -1,10 +1,6 @@import * as React from "react";-import {- type HtmlHTMLAttributes,- useCallback,- useEffect,- useState,-} from "react";+import type { HtmlHTMLAttributes } from "react";+import { useCallback, useEffect, useState } from "react";import get from "lodash/get";import isEqual from "lodash/isEqual";import queryString from "query-string";@@ -26,11 +22,10 @@ import {X,} from "lucide-react";import { cn } from "@/lib/utils";-import type { FilterElementProps } from "@/hooks/filter-context";-import { useFilterContext } from "@/hooks/filter-context";-import type { SavedQuery } from "@/hooks/saved-queries";+import { FilterElementProps, useFilterContext } from "@/hooks/filter-context";import {extractValidSavedQueries,+ SavedQuery,useSavedQueries,} from "@/hooks/saved-queries";import { Button } from "@/components/ui/button";@@ -140,6 +135,7 @@ const StyledForm = (props: React.FormHTMLAttributes<HTMLFormElement>) => {);};+// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst isEmptyValue = (filterValue: any): boolean => {if (filterValue === "" || filterValue == null) return true;@@ -174,7 +170,6 @@ export const FilterFormInput = (inProps: FilterFormInputProps) => {helperText: false,// ignore defaultValue in Field because it was already set in Form (via mergedInitialValuesWithDefaultValues)defaultValue: undefined,- label: false,})}{!filterElement.props.alwaysOn && (<Button@@ -254,6 +249,7 @@ export const FilterButton = (props: FilterButtonProps) => {);const handleShow = useCallback(+ // eslint-disable-next-line @typescript-eslint/no-explicit-any({ source, defaultValue }: { source: string; defaultValue: any }) => {showFilter(source, defaultValue === "" ? undefined : defaultValue);// We have to fallback to imperative code because the new FilterFormInput@@ -487,7 +483,7 @@ export const FilterButtonMenuItem = React.forwardRef<export interface FilterButtonMenuItemProps {filter: React.ReactElement<FilterElementProps>;displayed: boolean;-+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyonShow: (params: { source: string; defaultValue: any }) => void;onHide: (params: { source: string }) => void;resource?: string;diff --git a/src/components/admin/form.tsx b/src/components/admin/form.tsxindex 1863829a..f44e6ffa 100644--- a/src/components/admin/form.tsx+++ b/src/components/admin/form.tsx@@ -1,17 +1,14 @@import * as React from "react";+import type { MouseEventHandler } from "react";+import { createContext, useCallback, useContext, useMemo } from "react";+import type {+ CreateParams,+ RaRecord,+ TransformData,+ UpdateParams,+} from "ra-core";import {- createContext,- type MouseEventHandler,- useCallback,- useContext,- useMemo,-} from "react";-import {- type CreateParams,- type RaRecord,setSubmissionErrors,- type TransformData,- type UpdateParams,useRecordFromLocation,useSaveContext,useTranslate,@@ -19,7 +16,7 @@ import {warning,} from "ra-core";import { Loader2, Save } from "lucide-react";-import type * as LabelPrimitive from "@radix-ui/react-label";+import * as LabelPrimitive from "@radix-ui/react-label";import { Slot } from "@radix-ui/react-slot";import { FormProvider, useFormContext, useFormState } from "react-hook-form";import type { UseMutationOptions } from "@tanstack/react-query";@@ -194,6 +191,7 @@ const SaveButton = <RecordType extends RaRecord = RaRecord>();const handleSubmit = useCallback(+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyasync (values: any) => {let errors;if (saveContext?.save) {@@ -278,6 +276,7 @@ export type SaveButtonProps<RecordType extends RaRecord = RaRecord> =alwaysEnable?: boolean;};+// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst valueOrDefault = (value: any, defaultValue: any) =>typeof value === "undefined" ? defaultValue : value;diff --git a/src/components/admin/index.ts b/src/components/admin/index.tsindex 38a4ec79..a112dbec 100644--- a/src/components/admin/index.ts+++ b/src/components/admin/index.ts@@ -2,6 +2,7 @@ export * from "./admin";export * from "./app-sidebar";export * from "./array-field";export * from "./array-input";+export * from "./authentication";export * from "./autocomplete-input";export * from "./autocomplete-array-input";export * from "./badge-field";@@ -17,6 +18,7 @@ export * from "./create-button";export * from "./create";export * from "./data-table";export * from "./date-field";+export * from "./date-input";export * from "./delete-button";export * from "./edit-button";export * from "./edit-guesser";diff --git a/src/components/admin/layout.tsx b/src/components/admin/layout.tsxindex b8e7e5fb..be1c3c91 100644--- a/src/components/admin/layout.tsx+++ b/src/components/admin/layout.tsx@@ -1,5 +1,8 @@+import type { ErrorInfo } from "react";+import { Suspense, useState } from "react";import { cn } from "@/lib/utils";import type { CoreLayoutProps } from "ra-core";+import { ErrorBoundary } from "react-error-boundary";import { SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar";import { UserMenu } from "@/components/admin/user-menu";import { ThemeModeToggle } from "@/components/admin/theme-mode-toggle";@@ -7,8 +10,14 @@ import { Notification } from "@/components/admin/notification";import { AppSidebar } from "@/components/admin/app-sidebar";import { RefreshButton } from "@/components/admin/refresh-button";import { LocalesMenuButton } from "@/components/admin/locales-menu-button";+import { Error } from "@/components/admin/error";+import { Loading } from "@/components/admin/loading";export const Layout = (props: CoreLayoutProps) => {+ const [errorInfo, setErrorInfo] = useState<ErrorInfo | undefined>(undefined);+ const handleError = (_: Error, info: ErrorInfo) => {+ setErrorInfo(info);+ };return (<SidebarProvider><AppSidebar />@@ -31,7 +40,20 @@ export const Layout = (props: CoreLayoutProps) => {<RefreshButton /><UserMenu /></header>- <div className="flex flex-1 flex-col px-4 ">{props.children}</div>+ <ErrorBoundary+ onError={handleError}+ fallbackRender={({ error, resetErrorBoundary }) => (+ <Error+ error={error}+ errorInfo={errorInfo}+ resetErrorBoundary={resetErrorBoundary}+ />+ )}+ >+ <Suspense fallback={<Loading />}>+ <div className="flex flex-1 flex-col px-4 ">{props.children}</div>+ </Suspense>+ </ErrorBoundary></main><Notification /></SidebarProvider>diff --git a/src/components/admin/list-guesser.tsx b/src/components/admin/list-guesser.tsxindex 2def4095..f7aa671d 100644--- a/src/components/admin/list-guesser.tsx+++ b/src/components/admin/list-guesser.tsx@@ -110,6 +110,7 @@ const ListViewGuesser = (.sort();if (enableLog) {+ // eslint-disable-next-line no-consoleconsole.log(`Guessed List:diff --git a/src/components/admin/list-pagination.tsx b/src/components/admin/list-pagination.tsxindex d2a537ef..da1794b6 100644--- a/src/components/admin/list-pagination.tsx+++ b/src/components/admin/list-pagination.tsx@@ -49,7 +49,7 @@ export const ListPagination = ({const startPages = range(1, Math.min(boundaryCount, count));const endPages = range(Math.max(count - boundaryCount + 1, boundaryCount + 1),- count,+ count);const siblingsStart = Math.max(@@ -57,10 +57,10 @@ export const ListPagination = ({// Natural startpage - siblingCount,// Lower boundary when page is high- count - boundaryCount - siblingCount * 2 - 1,+ count - boundaryCount - siblingCount * 2 - 1),// Greater than startPages- boundaryCount + 2,+ boundaryCount + 2);const siblingsEnd = Math.min(@@ -68,10 +68,10 @@ export const ListPagination = ({// Natural endpage + siblingCount,// Upper boundary when page is low- boundaryCount + siblingCount * 2 + 2,+ boundaryCount + siblingCount * 2 + 2),// Less than endPages- count - boundaryCount - 1,+ count - boundaryCount - 1);const siblingPages = range(siblingsStart, siblingsEnd);@@ -133,7 +133,7 @@ export const ListPagination = ({onClick={pageChangeHandler(page - 1)}className={cn("gap-1 px-2.5 sm:pr-2.5",- !hasPreviousPage ? "opacity-50 cursor-not-allowed" : "",+ !hasPreviousPage ? "opacity-50 cursor-not-allowed" : "")}aria-label={translate("ra.navigation.previous", {_: "Previous",@@ -212,7 +212,7 @@ export const ListPagination = ({size="default"className={cn("gap-1 px-2.5 sm:pr-2.5",- !hasNextPage ? "opacity-50 cursor-not-allowed" : "",+ !hasNextPage ? "opacity-50 cursor-not-allowed" : "")}aria-label={translate("ra.navigation.next", { _: "Next" })}>diff --git a/src/components/admin/loading.tsx b/src/components/admin/loading.tsxindex 5b625010..b94dcf14 100644--- a/src/components/admin/loading.tsx+++ b/src/components/admin/loading.tsx@@ -10,11 +10,8 @@ export const Loading = (props: LoadingProps) => {} = props;const oneSecondHasPassed = useTimeout(delay);return oneSecondHasPassed ? (- <div- className={"flex flex-col justify-center items-center h-full"}- {...rest}- >- <div className={"text-center font-sans color-muted pt-1 pb-1"}>+ <div className="flex flex-col justify-center items-center h-full" {...rest}>+ <div className="text-center font-sans color-muted pt-1 pb-1"><Spinner size="large" className="width-9 height-9" /><h5 className="mt-3 text-2xl text-secondary-foreground"><Translate i18nKey={loadingPrimary}>{loadingPrimary}</Translate>diff --git a/src/components/admin/notification.tsx b/src/components/admin/notification.tsxindex 17f66459..46c58beb 100644--- a/src/components/admin/notification.tsx+++ b/src/components/admin/notification.tsx@@ -1,6 +1,7 @@import * as React from "react";import { useCallback, useEffect } from "react";-import { Toaster, type ToasterProps, toast } from "sonner";+import type { ToasterProps } from "sonner";+import { Toaster, toast } from "sonner";import { useTheme } from "@/components/admin/theme-provider";import {CloseNotificationContext,diff --git a/src/components/admin/number-input.tsx b/src/components/admin/number-input.tsxindex a7b2c37b..72597662 100644--- a/src/components/admin/number-input.tsx+++ b/src/components/admin/number-input.tsx@@ -1,11 +1,7 @@import * as React from "react";import { useEffect, useState } from "react";-import {- FieldTitle,- type InputProps,- useInput,- useResourceContext,-} from "ra-core";+import type { InputProps } from "ra-core";+import { FieldTitle, useInput, useResourceContext } from "ra-core";import { FormControl, FormField, FormLabel } from "@/components/admin/form";import { Input } from "@/components/ui/input";import { FormError } from "@/components/admin/form";diff --git a/src/components/admin/radio-button-group-input.tsx b/src/components/admin/radio-button-group-input.tsxindex 123e7a07..4613b0d7 100644--- a/src/components/admin/radio-button-group-input.tsx+++ b/src/components/admin/radio-button-group-input.tsx@@ -1,12 +1,6 @@import * as React from "react";-import {- type ChoicesProps,- type InputProps,- FieldTitle,- useChoices,- useChoicesContext,- useInput,-} from "ra-core";+import type { ChoicesProps, InputProps } from "ra-core";+import { FieldTitle, useChoices, useChoicesContext, useInput } from "ra-core";import { cn } from "@/lib/utils";import {FormField,diff --git a/src/components/admin/ready.tsx b/src/components/admin/ready.tsxindex 20e80130..e670b31f 100644--- a/src/components/admin/ready.tsx+++ b/src/components/admin/ready.tsx@@ -8,7 +8,7 @@ import {export const Ready = () => (<div className="flex flex-col h-screen"><div- className="flex-1 flex flex-col color-white text-center justify-center items-center"+ className="flex-1 flex flex-col text-white text-center justify-center items-center"style={{background:"linear-gradient(135deg, #00023b 0%, #00023b 50%, #313264 100%)",diff --git a/src/components/admin/record-field.tsx b/src/components/admin/record-field.tsxindex 158b1a64..7d42a9f8 100644--- a/src/components/admin/record-field.tsx+++ b/src/components/admin/record-field.tsx@@ -1,12 +1,11 @@-import type { HTMLAttributes } from "react";-import { createElement, type ReactNode, type ElementType } from "react";+import type { ReactNode, ElementType, HTMLAttributes } from "react";+import { createElement } from "react";+import type { ExtractRecordPaths, HintedString } from "ra-core";import {FieldTitle,useRecordContext,useResourceContext,useTranslate,- type ExtractRecordPaths,- type HintedString,} from "ra-core";import { cn } from "@/lib/utils";diff --git a/src/components/admin/reference-array-field.tsx b/src/components/admin/reference-array-field.tsxindex 6c75c9dc..e814cc8b 100644--- a/src/components/admin/reference-array-field.tsx+++ b/src/components/admin/reference-array-field.tsx@@ -1,12 +1,16 @@-import { memo, type ReactElement, type ReactNode } from "react";-import type { ExtractRecordPaths, HintedString } from "ra-core";+import type { ReactElement, ReactNode } from "react";+import { memo } from "react";+import type {+ FilterPayload,+ ListControllerResult,+ RaRecord,+ SortPayload,+} from "ra-core";import {+ ExtractRecordPaths,+ HintedString,ReferenceArrayFieldBase,useListContext,- type FilterPayload,- type ListControllerResult,- type RaRecord,- type SortPayload,} from "ra-core";import type { UseQueryOptions } from "@tanstack/react-query";import { SingleFieldList } from "@/components/admin/single-field-list";diff --git a/src/components/admin/reference-array-input.tsx b/src/components/admin/reference-array-input.tsxindex e2a21daa..8ce7e972 100644--- a/src/components/admin/reference-array-input.tsx+++ b/src/components/admin/reference-array-input.tsx@@ -102,5 +102,4 @@ export interface ReferenceArrayInputPropsextends InputProps,UseReferenceArrayInputParams {children?: ReactElement;- label?: string;}diff --git a/src/components/admin/reference-field.tsx b/src/components/admin/reference-field.tsxindex b22172f4..ce3e60a6 100644--- a/src/components/admin/reference-field.tsx+++ b/src/components/admin/reference-field.tsx@@ -1,7 +1,11 @@-import type { LinkToType, RaRecord, ExtractRecordPaths } from "ra-core";+import type {+ ExtractRecordPaths,+ LinkToType,+ RaRecord,+ UseReferenceFieldControllerResult,+} from "ra-core";import {ReferenceFieldBase,- type UseReferenceFieldControllerResult,useFieldValue,useGetRecordRepresentation,useReferenceFieldContext,@@ -45,6 +49,7 @@ export interface ReferenceFieldProps<> extends Partial<ReferenceFieldViewProps<ReferenceRecordType>> {children?: ReactNode;queryOptions?: UseQueryOptions<RaRecord[], Error> & {+ // eslint-disable-next-line @typescript-eslint/no-explicit-anymeta?: any;};record?: RecordType;diff --git a/src/components/admin/reference-many-count.tsx b/src/components/admin/reference-many-count.tsxindex 8951b130..f6e0efb1 100644--- a/src/components/admin/reference-many-count.tsx+++ b/src/components/admin/reference-many-count.tsx@@ -63,7 +63,7 @@ export interface ReferenceManyCountProps<target: string;source?: string;sort?: SortPayload;-+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyfilter?: any;link?: boolean;timeout?: number;diff --git a/src/components/admin/search-input.tsx b/src/components/admin/search-input.tsxindex b4ed8ed9..3e75d165 100644--- a/src/components/admin/search-input.tsx+++ b/src/components/admin/search-input.tsx@@ -1,6 +1,7 @@import { useTranslate } from "ra-core";import { Search } from "lucide-react";-import { TextInput, type TextInputProps } from "@/components/admin/text-input";+import type { TextInputProps } from "@/components/admin/text-input";+import { TextInput } from "@/components/admin/text-input";import { cn } from "@/lib/utils";export const SearchInput = (inProps: SearchInputProps) => {diff --git a/src/components/admin/select-field.tsx b/src/components/admin/select-field.tsxindex 8b8f1ce7..1d269120 100644--- a/src/components/admin/select-field.tsx+++ b/src/components/admin/select-field.tsx@@ -68,6 +68,7 @@ import { genericMemo } from "@/lib/genericMemo";* **Tip**: <ReferenceField> sets `translateChoice` to false by default.*/const SelectFieldImpl = <+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,>(props: SelectFieldProps<RecordType>,@@ -94,7 +95,8 @@ const SelectFieldImpl = <const translate = useTranslate();const choice = choices- ? choices.find((choice: any) => getChoiceValue(choice) === value)+ ? // eslint-disable-next-line @typescript-eslint/no-explicit-any+ choices.find((choice: any) => getChoiceValue(choice) === value): null;if (!choice) {@@ -123,6 +125,7 @@ SelectFieldImpl.displayName = "SelectFieldImpl";export const SelectField = genericMemo(SelectFieldImpl);export interface SelectFieldProps<+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,> extends Omit<ChoicesProps,diff --git a/src/components/admin/select-input.tsx b/src/components/admin/select-input.tsxindex c5155307..238fecc9 100644--- a/src/components/admin/select-input.tsx+++ b/src/components/admin/select-input.tsx@@ -1,6 +1,5 @@-import type { ComponentProps } from "react";-import { useCallback, useEffect, type ReactElement } from "react";-import type { InputProps } from "ra-core";+import { X } from "lucide-react";+import type { ChoicesProps, InputProps } from "ra-core";import {FieldTitle,useChoices,@@ -8,10 +7,12 @@ import {useGetRecordRepresentation,useInput,useTranslate,- type ChoicesProps,} from "ra-core";-import { X } from "lucide-react";+import type { ComponentProps, ReactElement } from "react";+import { useCallback, useEffect } from "react";+import { FormError, FormField, FormLabel } from "@/components/admin/form";+import { InputHelperText } from "@/components/admin/input-helper-text";import {Select,SelectContent,@@ -20,11 +21,11 @@ import {SelectValue,} from "@/components/ui/select";import { Skeleton } from "@/components/ui/skeleton";+import {+ SupportCreateSuggestionOptions,+ useSupportCreateSuggestion,+} from "@/hooks/useSupportCreateSuggestion";import { cn } from "@/lib/utils";-import type { SupportCreateSuggestionOptions } from "@/hooks/useSupportCreateSuggestion";-import { useSupportCreateSuggestion } from "@/hooks/useSupportCreateSuggestion";-import { FormField, FormLabel, FormError } from "@/components/admin/form";-import { InputHelperText } from "@/components/admin/input-helper-text";export const SelectInput = (props: SelectInputProps) => {const {@@ -139,6 +140,7 @@ export const SelectInput = (props: SelectInputProps) => {}, [emptyText, translate]);const renderMenuItemOption = useCallback(+ // eslint-disable-next-line @typescript-eslint/no-explicit-any(choice: any) => getChoiceText(choice),[getChoiceText],);@@ -240,6 +242,7 @@ export const SelectInput = (props: SelectInputProps) => {><SelectTriggerclassName={cn("w-full transition-all hover:bg-accent")}+ disabled={field.disabled}><SelectValue placeholder={renderEmptyItemOption()} />@@ -288,7 +291,7 @@ export type SelectInputProps = ChoicesProps &Partial<InputProps> &Omit<SupportCreateSuggestionOptions, "handleChange"> & {emptyText?: string | ReactElement;-+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyemptyValue?: any;onChange?: (value: string) => void;} & Omit<ComponentProps<typeof FormField>, "id" | "name" | "children">;diff --git a/src/components/admin/show-guesser.tsx b/src/components/admin/show-guesser.tsxindex ff408f1f..6b56dd98 100644--- a/src/components/admin/show-guesser.tsx+++ b/src/components/admin/show-guesser.tsx@@ -67,6 +67,7 @@ const ShowViewGuesser = (props: { enableLog?: boolean }) => {).sort();+ // eslint-disable-next-line no-consoleconsole.log(`Guessed Show:diff --git a/src/components/admin/show.tsx b/src/components/admin/show.tsxindex 83075841..4fa23abe 100644--- a/src/components/admin/show.tsx+++ b/src/components/admin/show.tsx@@ -3,6 +3,7 @@ import {BreadcrumbItem,BreadcrumbPage,} from "@/components/admin/breadcrumb";+import type { ShowBaseProps } from "ra-core";import {ShowBase,Translate,@@ -13,7 +14,6 @@ import {useGetResourceLabel,useResourceContext,useResourceDefinition,- type ShowBaseProps,} from "ra-core";import type { ReactNode } from "react";import { Link } from "react-router";@@ -25,16 +25,17 @@ export interface ShowPropsOmit<ShowBaseProps, "children"> {}export const Show = ({+ actions,+ children,+ className,disableAuthentication,+ disableBreadcrumb,id,+ loading,queryOptions,+ render,resource,- actions,title,- children,- className,- render,- loading,}: ShowProps) => (<ShowBaseid={id}@@ -44,7 +45,12 @@ export const Show = ({render={render}loading={loading}>- <ShowView title={title} actions={actions} className={className}>+ <ShowView+ title={title}+ actions={actions}+ className={className}+ disableBreadcrumb={disableBreadcrumb}+ >{children}</ShowView></ShowBase>@@ -52,18 +58,20 @@ export const Show = ({export interface ShowViewProps {actions?: ReactNode;- title?: ReactNode | string | false;+ disableBreadcrumb?: boolean;children: ReactNode;className?: string;emptyWhileLoading?: boolean;+ title?: ReactNode | string | false;}export const ShowView = ({actions,- title,children,className,+ disableBreadcrumb,emptyWhileLoading,+ title,}: ShowViewProps) => {const context = useShowContext();@@ -96,19 +104,21 @@ export const ShowView = ({return (<>- <Breadcrumb>- {hasDashboard && (+ {!disableBreadcrumb && (+ <Breadcrumb>+ {hasDashboard && (+ <BreadcrumbItem>+ <Link to="/">+ <Translate i18nKey="ra.page.dashboard">Home</Translate>+ </Link>+ </BreadcrumbItem>+ )}<BreadcrumbItem>- <Link to="/">- <Translate i18nKey="ra.page.dashboard">Home</Translate>- </Link>+ <Link to={listLink}>{listLabel}</Link></BreadcrumbItem>- )}- <BreadcrumbItem>- <Link to={listLink}>{listLabel}</Link>- </BreadcrumbItem>- <BreadcrumbPage>{recordRepresentation}</BreadcrumbPage>- </Breadcrumb>+ <BreadcrumbPage>{recordRepresentation}</BreadcrumbPage>+ </Breadcrumb>+ )}<divclassName={cn("flex justify-between items-start flex-wrap gap-2 my-2",diff --git a/src/components/admin/simple-form-iterator.tsx b/src/components/admin/simple-form-iterator.tsxindex 6e15a349..a078a963 100644--- a/src/components/admin/simple-form-iterator.tsx+++ b/src/components/admin/simple-form-iterator.tsx@@ -1,26 +1,29 @@import get from "lodash/get";+import * as React from "react";+import type { ReactElement, ReactNode } from "react";+import { Children, useCallback, useMemo, useRef, useState } from "react";+import type {+ ArrayInputContextValue,+ RaRecord,+ SimpleFormIteratorItemContextValue,+} from "ra-core";import {FormDataConsumer,- type RaRecord,RecordContextProvider,+ SimpleFormIteratorContext,+ SimpleFormIteratorItemContext,SourceContextProvider,+ useArrayInput,useRecordContext,useResourceContext,+ useSimpleFormIterator,+ useSimpleFormIteratorItem,useSourceContext,useTranslate,useWrappedSource,} from "ra-core";-import * as React from "react";-import type { ReactNode } from "react";-import {- Children,- type ReactElement,- useCallback,- useMemo,- useRef,- useState,-} from "react";-import { type UseFieldArrayReturn, useFormContext } from "react-hook-form";+import type { UseFieldArrayReturn } from "react-hook-form";+import { useFormContext } from "react-hook-form";import {ArrowDownCircle,ArrowUpCircle,@@ -36,15 +39,6 @@ import {TooltipProvider,TooltipTrigger,} from "@/components/ui/tooltip";-import type { ArrayInputContextValue } from "@/hooks/array-input-context";-import { useArrayInput } from "@/hooks/array-input-context";-import type { SimpleFormIteratorItemContextValue } from "@/hooks/simple-form-iterator-context";-import {- SimpleFormIteratorContext,- useSimpleFormIterator,- SimpleFormIteratorItemContext,- useSimpleFormIteratorItem,-} from "@/hooks/simple-form-iterator-context";import { Confirm } from "@/components/admin/confirm";import { IconButtonWithTooltip } from "@/components/admin/icon-button-with-tooltip";@@ -331,7 +325,7 @@ export const SimpleFormIteratorItem = React.forwardRef(<liref={ref}className={cn(- "flex flex-row items-start justify-between gap-3 pb-2 border-b border-border last:border-b-0",+ "flex flex-row items-start justify-between gap-2 pb-2 border-b border-border last:border-b-0",// Align the buttons with the input"[&:has(label)>.simple-form-iterator-item-actions]:pt-10",)}diff --git a/src/components/admin/simple-form.tsx b/src/components/admin/simple-form.tsxindex 9986e888..df86394d 100644--- a/src/components/admin/simple-form.tsx+++ b/src/components/admin/simple-form.tsx@@ -1,7 +1,8 @@import * as React from "react";import type { ReactNode } from "react";import { Children } from "react";-import { Form, type FormProps } from "ra-core";+import type { FormProps } from "ra-core";+import { Form } from "ra-core";import { cn } from "@/lib/utils";import { CancelButton } from "@/components/admin/cancel-button";import { SaveButton } from "@/components/admin/form";@@ -11,11 +12,7 @@ export const SimpleForm = ({className,toolbar = defaultFormToolbar,...rest-}: {- children: ReactNode;- className?: string;- toolbar?: ReactNode;-} & FormProps) => (+}: SimpleFormProps) => (<FormclassName={cn(`flex flex-col gap-4 w-full max-w-lg`, className)}{...rest}@@ -49,6 +46,12 @@ export const FormToolbar = ({</div>);+export type SimpleFormProps = {+ children: ReactNode;+ className?: string;+ toolbar?: ReactNode;+} & FormProps;+export interface FormToolbarProps extends React.HTMLAttributes<HTMLDivElement> {children?: ReactNode;className?: string;diff --git a/src/components/admin/single-field-list.tsx b/src/components/admin/single-field-list.tsxindex ef7bf91e..89941297 100644--- a/src/components/admin/single-field-list.tsx+++ b/src/components/admin/single-field-list.tsx@@ -5,6 +5,7 @@ import {} from "ra-core";import { Badge } from "@/components/ui/badge";+// eslint-disable-next-line @typescript-eslint/no-explicit-anyexport const SingleFieldList = <RecordType = any,>({children,render,diff --git a/src/components/admin/sort-button.tsx b/src/components/admin/sort-button.tsxindex ba1628a1..a09f41e3 100644--- a/src/components/admin/sort-button.tsx+++ b/src/components/admin/sort-button.tsx@@ -115,6 +115,7 @@ const defaultIcon = <ArrowUpDown className="h-4 w-4" />;const inverseOrder = (sort: string) => (sort === "ASC" ? "DESC" : "ASC");+// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst arePropsEqual = (prevProps: any, nextProps: any) =>shallowEqual(prevProps.fields, nextProps.fields);diff --git a/src/components/admin/url-field.tsx b/src/components/admin/url-field.tsxindex 69735345..fbe9ccf1 100644--- a/src/components/admin/url-field.tsx+++ b/src/components/admin/url-field.tsx@@ -1,12 +1,13 @@import { useFieldValue, useTranslate } from "ra-core";import type { AnchorHTMLAttributes } from "react";-import React from "react";+import * as React from "react";import { cn } from "@/lib/utils";import { genericMemo } from "@/lib/genericMemo";-import type { FieldProps } from "@/lib/field.type";+import { FieldProps } from "@/lib/field.type";const UrlFieldImpl = <+ //eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,>(inProps: UrlFieldProps<RecordType>,@@ -51,6 +52,7 @@ UrlFieldImpl.displayName = "UrlFieldImpl";export const UrlField = genericMemo(UrlFieldImpl);export interface UrlFieldProps<+ //eslint-disable-next-line @typescript-eslint/no-explicit-anyRecordType extends Record<string, any> = Record<string, any>,> extends FieldProps<RecordType>,AnchorHTMLAttributes<HTMLAnchorElement> {}diff --git a/src/components/admin/user-menu.tsx b/src/components/admin/user-menu.tsxindex 95c819ae..0bc7c411 100644--- a/src/components/admin/user-menu.tsx+++ b/src/components/admin/user-menu.tsx@@ -1,5 +1,11 @@import { Children, useCallback, useState } from "react";-import { Translate, useAuthProvider, useGetIdentity, useLogout } from "ra-core";+import {+ Translate,+ useAuthProvider,+ useGetIdentity,+ useLogout,+ UserMenuContext,+} from "ra-core";import { LogOut } from "lucide-react";import {DropdownMenu,@@ -11,7 +17,6 @@ import {} from "@/components/ui/dropdown-menu";import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";import { Button } from "@/components/ui/button";-import { UserMenuContext } from "@/hooks/user-menu-context";export type UserMenuProps = {children?: React.ReactNode;diff --git a/src/components/atomic-crm/layout/TopToolbar.tsx b/src/components/atomic-crm/layout/TopToolbar.tsxindex f3b5e4f6..f21e3126 100644--- a/src/components/atomic-crm/layout/TopToolbar.tsx+++ b/src/components/atomic-crm/layout/TopToolbar.tsx@@ -1,4 +1,4 @@-import { cn } from "@/lib/utils.ts";+import { cn } from "@/lib/utils";import type { HTMLAttributes, ReactNode } from "react";export interface TopToolbarProps extends HTMLAttributes<HTMLDivElement> {diff --git a/src/components/atomic-crm/misc/Status.tsx b/src/components/atomic-crm/misc/Status.tsxindex 8d83e92a..75f129e7 100644--- a/src/components/atomic-crm/misc/Status.tsx+++ b/src/components/atomic-crm/misc/Status.tsx@@ -1,4 +1,4 @@-import { cn } from "@/lib/utils.ts";+import { cn } from "@/lib/utils";import { useConfigurationContext } from "../root/ConfigurationContext";diff --git a/src/components/atomic-crm/notes/NoteInputs.tsx b/src/components/atomic-crm/notes/NoteInputs.tsxindex 531bbbf4..a2955b7b 100644--- a/src/components/atomic-crm/notes/NoteInputs.tsx+++ b/src/components/atomic-crm/notes/NoteInputs.tsx@@ -5,7 +5,7 @@ import { FileInput } from "@/components/admin/file-input";import { FileField } from "@/components/admin/file-field";import { SelectInput } from "@/components/admin/select-input";import { Button } from "@/components/ui/button";-import { cn } from "@/lib/utils.ts";+import { cn } from "@/lib/utils";import { Status } from "../misc/Status";import { useConfigurationContext } from "../root/ConfigurationContext";diff --git a/src/components/atomic-crm/providers/commons/getCompanyAvatar.spec.ts b/src/components/atomic-crm/providers/commons/getCompanyAvatar.spec.tsindex e03110d9..52cb97e3 100644--- a/src/components/atomic-crm/providers/commons/getCompanyAvatar.spec.ts+++ b/src/components/atomic-crm/providers/commons/getCompanyAvatar.spec.ts@@ -1,7 +1,3 @@-/**- * @jest-environment node- */-import type { Company } from "../../types";import { getCompanyAvatar } from "./getCompanyAvatar";diff --git a/src/components/atomic-crm/providers/commons/getContactAvatar.spec.ts b/src/components/atomic-crm/providers/commons/getContactAvatar.spec.tsindex 7747f1a1..e814a2f2 100644--- a/src/components/atomic-crm/providers/commons/getContactAvatar.spec.ts+++ b/src/components/atomic-crm/providers/commons/getContactAvatar.spec.ts@@ -1,10 +1,3 @@-/**- * @jest-environment node- */--// This test file uses the node environment because the getContactAvatar uses the TextEncoder API. This API is not available in the version of JSDOM used by Jest in CI.-// As CI uses Node18 and not the latest LTS, the crypto module is not available in the global scope.-import { webcrypto } from "node:crypto";import type { Contact, EmailAndType } from "../../types";diff --git a/src/components/atomic-crm/providers/fakerest/internal/transformContainsFilter.spec.ts b/src/components/atomic-crm/providers/fakerest/internal/transformContainsFilter.spec.tsindex 3b763d04..e3c17e3c 100644--- a/src/components/atomic-crm/providers/fakerest/internal/transformContainsFilter.spec.ts+++ b/src/components/atomic-crm/providers/fakerest/internal/transformContainsFilter.spec.ts@@ -1,4 +1,3 @@-// sum.test.jsimport {CONTAINS_FILTER_REGEX,transformContainsFilter,diff --git a/src/components/atomic-crm/providers/fakerest/internal/transformInFilter.spec.ts b/src/components/atomic-crm/providers/fakerest/internal/transformInFilter.spec.tsindex 9fe4bde2..c564197a 100644--- a/src/components/atomic-crm/providers/fakerest/internal/transformInFilter.spec.ts+++ b/src/components/atomic-crm/providers/fakerest/internal/transformInFilter.spec.ts@@ -1,4 +1,3 @@-// sum.test.jsimport { IN_FILTER_REGEX, transformInFilter } from "./transformInFilter";it("should throw an error if the filter is not a string", () => {diff --git a/src/components/atomic-crm/providers/fakerest/internal/transformOrFilter.spec.ts b/src/components/atomic-crm/providers/fakerest/internal/transformOrFilter.spec.tsindex bc5196b3..7fbceaed 100644--- a/src/components/atomic-crm/providers/fakerest/internal/transformOrFilter.spec.ts+++ b/src/components/atomic-crm/providers/fakerest/internal/transformOrFilter.spec.ts@@ -1,4 +1,3 @@-// sum.test.jsimport { transformOrFilter } from "./transformOrFilter";it("should throw an error if the value is not an object", () => {diff --git a/src/components/atomic-crm/root/ConfigurationContext.tsx b/src/components/atomic-crm/root/ConfigurationContext.tsxindex d9d201e2..2ad53e09 100644--- a/src/components/atomic-crm/root/ConfigurationContext.tsx+++ b/src/components/atomic-crm/root/ConfigurationContext.tsx@@ -1,4 +1,3 @@-/* eslint-disable react-refresh/only-export-components */import { createContext, useContext, type ReactNode } from "react";import type { ContactGender, DealStage, NoteStatus } from "../types";diff --git a/src/components/atomic-crm/simple-list/ListNoResults.tsx b/src/components/atomic-crm/simple-list/ListNoResults.tsxindex c3cdef78..dfbf84c9 100644--- a/src/components/atomic-crm/simple-list/ListNoResults.tsx+++ b/src/components/atomic-crm/simple-list/ListNoResults.tsx@@ -4,7 +4,7 @@ import {useResourceContext,useTranslate,} from "ra-core";-import { Button } from "@/components/ui/button.tsx";+import { Button } from "@/components/ui/button";export const ListNoResults = (props: ListNoResultsProps) => {const translate = useTranslate();diff --git a/src/components/atomic-crm/simple-list/ListPlaceholder.tsx b/src/components/atomic-crm/simple-list/ListPlaceholder.tsxindex c96c5f95..d758f41d 100644--- a/src/components/atomic-crm/simple-list/ListPlaceholder.tsx+++ b/src/components/atomic-crm/simple-list/ListPlaceholder.tsx@@ -1,4 +1,4 @@-import { cn } from "@/lib/utils.ts";+import { cn } from "@/lib/utils";interface ListPlaceholderProps {className?: string;diff --git a/src/components/supabase/forgot-password-page.tsx b/src/components/supabase/forgot-password-page.tsxindex c933ef44..d3f6ecca 100644--- a/src/components/supabase/forgot-password-page.tsx+++ b/src/components/supabase/forgot-password-page.tsx@@ -1,10 +1,10 @@import { useState } from "react";import { useResetPassword } from "ra-supabase-core";import { Form, required, useNotify, useTranslate } from "ra-core";-import { Layout } from "@/components/supabase/layout.tsx";+import { Layout } from "@/components/supabase/layout";import type { FieldValues, SubmitHandler } from "react-hook-form";import { TextInput } from "@/components/admin/text-input";-import { Button } from "@/components/ui/button.tsx";+import { Button } from "@/components/ui/button";interface FormData {email: string;diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsxindex 720bff51..d21b65f7 100644--- a/src/components/ui/accordion.tsx+++ b/src/components/ui/accordion.tsx@@ -1,13 +1,13 @@-import * as React from "react";-import * as AccordionPrimitive from "@radix-ui/react-accordion";-import { ChevronDownIcon } from "lucide-react";+import * as React from "react"+import * as AccordionPrimitive from "@radix-ui/react-accordion"+import { ChevronDownIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Accordion({...props}: React.ComponentProps<typeof AccordionPrimitive.Root>) {- return <AccordionPrimitive.Root data-slot="accordion" {...props} />;+ return <AccordionPrimitive.Root data-slot="accordion" {...props} />}function AccordionItem({@@ -20,7 +20,7 @@ function AccordionItem({className={cn("border-b last:border-b-0", className)}{...props}/>- );+ )}function AccordionTrigger({@@ -34,7 +34,7 @@ function AccordionTrigger({data-slot="accordion-trigger"className={cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",- className,+ className)}{...props}>@@ -42,7 +42,7 @@ function AccordionTrigger({<ChevronDownIcon className="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" /></AccordionPrimitive.Trigger></AccordionPrimitive.Header>- );+ )}function AccordionContent({@@ -58,7 +58,7 @@ function AccordionContent({><div className={cn("pt-0 pb-4", className)}>{children}</div></AccordionPrimitive.Content>- );+ )}-export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };+export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsxindex aa7de24d..14213546 100644--- a/src/components/ui/alert.tsx+++ b/src/components/ui/alert.tsx@@ -1,7 +1,7 @@-import * as React from "react";-import { cva, type VariantProps } from "class-variance-authority";+import * as React from "react"+import { cva, type VariantProps } from "class-variance-authority"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",@@ -16,8 +16,8 @@ const alertVariants = cva(defaultVariants: {variant: "default",},- },-);+ }+)function Alert({className,@@ -31,7 +31,7 @@ function Alert({className={cn(alertVariants({ variant }), className)}{...props}/>- );+ )}function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {@@ -40,11 +40,11 @@ function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {data-slot="alert-title"className={cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",- className,+ className)}{...props}/>- );+ )}function AlertDescription({@@ -56,11 +56,11 @@ function AlertDescription({data-slot="alert-description"className={cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",- className,+ className)}{...props}/>- );+ )}-export { Alert, AlertTitle, AlertDescription };+export { Alert, AlertTitle, AlertDescription }diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsxindex 46f988c2..83750ed1 100644--- a/src/components/ui/badge.tsx+++ b/src/components/ui/badge.tsx@@ -22,7 +22,7 @@ const badgeVariants = cva(defaultVariants: {variant: "default",},- },+ });function Badge({diff --git a/src/components/ui/breadcrumb.tsx b/src/components/ui/breadcrumb.tsxindex f63ae19a..eb88f321 100644--- a/src/components/ui/breadcrumb.tsx+++ b/src/components/ui/breadcrumb.tsx@@ -1,11 +1,11 @@-import * as React from "react";-import { Slot } from "@radix-ui/react-slot";-import { ChevronRight, MoreHorizontal } from "lucide-react";+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { ChevronRight, MoreHorizontal } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {- return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;+ return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />}function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {@@ -14,11 +14,11 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {data-slot="breadcrumb-list"className={cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",- className,+ className)}{...props}/>- );+ )}function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {@@ -28,7 +28,7 @@ function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {className={cn("inline-flex items-center gap-1.5", className)}{...props}/>- );+ )}function BreadcrumbLink({@@ -36,9 +36,9 @@ function BreadcrumbLink({className,...props}: React.ComponentProps<"a"> & {- asChild?: boolean;+ asChild?: boolean}) {- const Comp = asChild ? Slot : "a";+ const Comp = asChild ? Slot : "a"return (<Comp@@ -46,7 +46,7 @@ function BreadcrumbLink({className={cn("hover:text-foreground transition-colors", className)}{...props}/>- );+ )}function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {@@ -59,7 +59,7 @@ function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {className={cn("text-foreground font-normal", className)}{...props}/>- );+ )}function BreadcrumbSeparator({@@ -77,7 +77,7 @@ function BreadcrumbSeparator({>{children ?? <ChevronRight />}</li>- );+ )}function BreadcrumbEllipsis({@@ -95,7 +95,7 @@ function BreadcrumbEllipsis({<MoreHorizontal className="size-4" /><span className="sr-only">More</span></span>- );+ )}export {@@ -106,4 +106,4 @@ export {BreadcrumbPage,BreadcrumbSeparator,BreadcrumbEllipsis,-};+}diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsxindex 2adaf00d..66ab90e5 100644--- a/src/components/ui/button.tsx+++ b/src/components/ui/button.tsx@@ -32,7 +32,7 @@ const buttonVariants = cva(variant: "default",size: "default",},- },+ });function Button({diff --git a/src/components/ui/checkbox.tsx b/src/components/ui/checkbox.tsxindex 29c5f2ed..defeb01f 100644--- a/src/components/ui/checkbox.tsx+++ b/src/components/ui/checkbox.tsx@@ -1,8 +1,8 @@-import * as React from "react";-import * as CheckboxPrimitive from "@radix-ui/react-checkbox";-import { CheckIcon } from "lucide-react";+import * as React from "react"+import * as CheckboxPrimitive from "@radix-ui/react-checkbox"+import { CheckIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Checkbox({className,@@ -13,7 +13,7 @@ function Checkbox({data-slot="checkbox"className={cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",- className,+ className)}{...props}>@@ -24,7 +24,7 @@ function Checkbox({<CheckIcon className="size-3.5" /></CheckboxPrimitive.Indicator></CheckboxPrimitive.Root>- );+ )}-export { Checkbox };+export { Checkbox }diff --git a/src/components/ui/command.tsx b/src/components/ui/command.tsxindex 8afbb0cc..5360f6db 100644--- a/src/components/ui/command.tsx+++ b/src/components/ui/command.tsx@@ -1,15 +1,15 @@-import * as React from "react";-import { Command as CommandPrimitive } from "cmdk";-import { SearchIcon } from "lucide-react";+import * as React from "react"+import { Command as CommandPrimitive } from "cmdk"+import { SearchIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"import {Dialog,DialogContent,DialogDescription,DialogHeader,DialogTitle,-} from "@/components/ui/dialog";+} from "@/components/ui/dialog"function Command({className,@@ -20,11 +20,11 @@ function Command({data-slot="command"className={cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",- className,+ className)}{...props}/>- );+ )}function CommandDialog({@@ -33,8 +33,8 @@ function CommandDialog({children,...props}: React.ComponentProps<typeof Dialog> & {- title?: string;- description?: string;+ title?: string+ description?: string}) {return (<Dialog {...props}>@@ -48,7 +48,7 @@ function CommandDialog({</Command></DialogContent></Dialog>- );+ )}function CommandInput({@@ -65,12 +65,12 @@ function CommandInput({data-slot="command-input"className={cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",- className,+ className)}{...props}/></div>- );+ )}function CommandList({@@ -82,11 +82,11 @@ function CommandList({data-slot="command-list"className={cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",- className,+ className)}{...props}/>- );+ )}function CommandEmpty({@@ -98,7 +98,7 @@ function CommandEmpty({className="py-6 text-center text-sm"{...props}/>- );+ )}function CommandGroup({@@ -110,11 +110,11 @@ function CommandGroup({data-slot="command-group"className={cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",- className,+ className)}{...props}/>- );+ )}function CommandSeparator({@@ -127,7 +127,7 @@ function CommandSeparator({className={cn("bg-border -mx-1 h-px", className)}{...props}/>- );+ )}function CommandItem({@@ -139,11 +139,11 @@ function CommandItem({data-slot="command-item"className={cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}{...props}/>- );+ )}function CommandShortcut({@@ -155,11 +155,11 @@ function CommandShortcut({data-slot="command-shortcut"className={cn("text-muted-foreground ml-auto text-xs tracking-widest",- className,+ className)}{...props}/>- );+ )}export {@@ -172,4 +172,4 @@ export {CommandItem,CommandShortcut,CommandSeparator,-};+}diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsxindex 3b37abd1..981e999f 100644--- a/src/components/ui/dialog.tsx+++ b/src/components/ui/dialog.tsx@@ -1,31 +1,31 @@-import * as React from "react";-import * as DialogPrimitive from "@radix-ui/react-dialog";-import { XIcon } from "lucide-react";+import * as React from "react"+import * as DialogPrimitive from "@radix-ui/react-dialog"+import { XIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Dialog({...props}: React.ComponentProps<typeof DialogPrimitive.Root>) {- return <DialogPrimitive.Root data-slot="dialog" {...props} />;+ return <DialogPrimitive.Root data-slot="dialog" {...props} />}function DialogTrigger({...props}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {- return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />;+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />}function DialogPortal({...props}: React.ComponentProps<typeof DialogPrimitive.Portal>) {- return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />;+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />}function DialogClose({...props}: React.ComponentProps<typeof DialogPrimitive.Close>) {- return <DialogPrimitive.Close data-slot="dialog-close" {...props} />;+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />}function DialogOverlay({@@ -37,11 +37,11 @@ function DialogOverlay({data-slot="dialog-overlay"className={cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",- className,+ className)}{...props}/>- );+ )}function DialogContent({@@ -56,7 +56,7 @@ function DialogContent({data-slot="dialog-content"className={cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",- className,+ className)}{...props}>@@ -67,7 +67,7 @@ function DialogContent({</DialogPrimitive.Close></DialogPrimitive.Content></DialogPortal>- );+ )}function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {@@ -77,7 +77,7 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {className={cn("flex flex-col gap-2 text-center sm:text-left", className)}{...props}/>- );+ )}function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {@@ -86,11 +86,11 @@ function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {data-slot="dialog-footer"className={cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",- className,+ className)}{...props}/>- );+ )}function DialogTitle({@@ -103,7 +103,7 @@ function DialogTitle({className={cn("text-lg leading-none font-semibold", className)}{...props}/>- );+ )}function DialogDescription({@@ -116,7 +116,7 @@ function DialogDescription({className={cn("text-muted-foreground text-sm", className)}{...props}/>- );+ )}export {@@ -130,4 +130,4 @@ export {DialogPortal,DialogTitle,DialogTrigger,-};+}diff --git a/src/components/ui/drawer.tsx b/src/components/ui/drawer.tsxindex d0c72ec5..869955fc 100644--- a/src/components/ui/drawer.tsx+++ b/src/components/ui/drawer.tsx@@ -1,30 +1,30 @@-import * as React from "react";-import { Drawer as DrawerPrimitive } from "vaul";+import * as React from "react"+import { Drawer as DrawerPrimitive } from "vaul"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Drawer({...props}: React.ComponentProps<typeof DrawerPrimitive.Root>) {- return <DrawerPrimitive.Root data-slot="drawer" {...props} />;+ return <DrawerPrimitive.Root data-slot="drawer" {...props} />}function DrawerTrigger({...props}: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {- return <DrawerPrimitive.Trigger data-slot="drawer-trigger" {...props} />;+ return <DrawerPrimitive.Trigger data-slot="drawer-trigger" {...props} />}function DrawerPortal({...props}: React.ComponentProps<typeof DrawerPrimitive.Portal>) {- return <DrawerPrimitive.Portal data-slot="drawer-portal" {...props} />;+ return <DrawerPrimitive.Portal data-slot="drawer-portal" {...props} />}function DrawerClose({...props}: React.ComponentProps<typeof DrawerPrimitive.Close>) {- return <DrawerPrimitive.Close data-slot="drawer-close" {...props} />;+ return <DrawerPrimitive.Close data-slot="drawer-close" {...props} />}function DrawerOverlay({@@ -36,11 +36,11 @@ function DrawerOverlay({data-slot="drawer-overlay"className={cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",- className,+ className)}{...props}/>- );+ )}function DrawerContent({@@ -59,7 +59,7 @@ function DrawerContent({"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",- className,+ className)}{...props}>@@ -67,7 +67,7 @@ function DrawerContent({{children}</DrawerPrimitive.Content></DrawerPortal>- );+ )}function DrawerHeader({ className, ...props }: React.ComponentProps<"div">) {@@ -76,11 +76,11 @@ function DrawerHeader({ className, ...props }: React.ComponentProps<"div">) {data-slot="drawer-header"className={cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",- className,+ className)}{...props}/>- );+ )}function DrawerFooter({ className, ...props }: React.ComponentProps<"div">) {@@ -90,7 +90,7 @@ function DrawerFooter({ className, ...props }: React.ComponentProps<"div">) {className={cn("mt-auto flex flex-col gap-2 p-4", className)}{...props}/>- );+ )}function DrawerTitle({@@ -103,7 +103,7 @@ function DrawerTitle({className={cn("text-foreground font-semibold", className)}{...props}/>- );+ )}function DrawerDescription({@@ -116,7 +116,7 @@ function DrawerDescription({className={cn("text-muted-foreground text-sm", className)}{...props}/>- );+ )}export {@@ -130,4 +130,4 @@ export {DrawerFooter,DrawerTitle,DrawerDescription,-};+}diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsxindex fe5ed99e..0d6741b4 100644--- a/src/components/ui/dropdown-menu.tsx+++ b/src/components/ui/dropdown-menu.tsx@@ -1,13 +1,13 @@-import * as React from "react";-import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";-import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";+import * as React from "react"+import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"+import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function DropdownMenu({...props}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {- return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />;+ return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />}function DropdownMenuPortal({@@ -15,7 +15,7 @@ function DropdownMenuPortal({}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {return (<DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />- );+ )}function DropdownMenuTrigger({@@ -26,7 +26,7 @@ function DropdownMenuTrigger({data-slot="dropdown-menu-trigger"{...props}/>- );+ )}function DropdownMenuContent({@@ -41,12 +41,12 @@ function DropdownMenuContent({sideOffset={sideOffset}className={cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",- className,+ className)}{...props}/></DropdownMenuPrimitive.Portal>- );+ )}function DropdownMenuGroup({@@ -54,7 +54,7 @@ function DropdownMenuGroup({}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {return (<DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />- );+ )}function DropdownMenuItem({@@ -63,8 +63,8 @@ function DropdownMenuItem({variant = "default",...props}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {- inset?: boolean;- variant?: "default" | "destructive";+ inset?: boolean+ variant?: "default" | "destructive"}) {return (<DropdownMenuPrimitive.Item@@ -73,11 +73,11 @@ function DropdownMenuItem({data-variant={variant}className={cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}{...props}/>- );+ )}function DropdownMenuCheckboxItem({@@ -91,7 +91,7 @@ function DropdownMenuCheckboxItem({data-slot="dropdown-menu-checkbox-item"className={cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}checked={checked}{...props}@@ -103,7 +103,7 @@ function DropdownMenuCheckboxItem({</span>{children}</DropdownMenuPrimitive.CheckboxItem>- );+ )}function DropdownMenuRadioGroup({@@ -114,7 +114,7 @@ function DropdownMenuRadioGroup({data-slot="dropdown-menu-radio-group"{...props}/>- );+ )}function DropdownMenuRadioItem({@@ -127,7 +127,7 @@ function DropdownMenuRadioItem({data-slot="dropdown-menu-radio-item"className={cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}{...props}>@@ -138,7 +138,7 @@ function DropdownMenuRadioItem({</span>{children}</DropdownMenuPrimitive.RadioItem>- );+ )}function DropdownMenuLabel({@@ -146,7 +146,7 @@ function DropdownMenuLabel({inset,...props}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {- inset?: boolean;+ inset?: boolean}) {return (<DropdownMenuPrimitive.Label@@ -154,11 +154,11 @@ function DropdownMenuLabel({data-inset={inset}className={cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",- className,+ className)}{...props}/>- );+ )}function DropdownMenuSeparator({@@ -171,7 +171,7 @@ function DropdownMenuSeparator({className={cn("bg-border -mx-1 my-1 h-px", className)}{...props}/>- );+ )}function DropdownMenuShortcut({@@ -183,17 +183,17 @@ function DropdownMenuShortcut({data-slot="dropdown-menu-shortcut"className={cn("text-muted-foreground ml-auto text-xs tracking-widest",- className,+ className)}{...props}/>- );+ )}function DropdownMenuSub({...props}: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {- return <DropdownMenuPrimitive.Sub data-slot="dropdown-menu-sub" {...props} />;+ return <DropdownMenuPrimitive.Sub data-slot="dropdown-menu-sub" {...props} />}function DropdownMenuSubTrigger({@@ -202,7 +202,7 @@ function DropdownMenuSubTrigger({children,...props}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {- inset?: boolean;+ inset?: boolean}) {return (<DropdownMenuPrimitive.SubTrigger@@ -210,14 +210,14 @@ function DropdownMenuSubTrigger({data-inset={inset}className={cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",- className,+ className)}{...props}>{children}<ChevronRightIcon className="ml-auto size-4" /></DropdownMenuPrimitive.SubTrigger>- );+ )}function DropdownMenuSubContent({@@ -229,11 +229,11 @@ function DropdownMenuSubContent({data-slot="dropdown-menu-sub-content"className={cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",- className,+ className)}{...props}/>- );+ )}export {@@ -252,4 +252,4 @@ export {DropdownMenuSub,DropdownMenuSubTrigger,DropdownMenuSubContent,-};+}diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsxindex b1a060f5..03295ca6 100644--- a/src/components/ui/input.tsx+++ b/src/components/ui/input.tsx@@ -1,6 +1,6 @@-import * as React from "react";+import * as React from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Input({ className, type, ...props }: React.ComponentProps<"input">) {return (@@ -11,11 +11,11 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",- className,+ className)}{...props}/>- );+ )}-export { Input };+export { Input }diff --git a/src/components/ui/navigation-menu.tsx b/src/components/ui/navigation-menu.tsxindex 0bcc7843..1199945c 100644--- a/src/components/ui/navigation-menu.tsx+++ b/src/components/ui/navigation-menu.tsx@@ -1,9 +1,9 @@-import * as React from "react";-import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";-import { cva } from "class-variance-authority";-import { ChevronDownIcon } from "lucide-react";+import * as React from "react"+import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"+import { cva } from "class-variance-authority"+import { ChevronDownIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function NavigationMenu({className,@@ -11,7 +11,7 @@ function NavigationMenu({viewport = true,...props}: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {- viewport?: boolean;+ viewport?: boolean}) {return (<NavigationMenuPrimitive.Root@@ -19,14 +19,14 @@ function NavigationMenu({data-viewport={viewport}className={cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",- className,+ className)}{...props}>{children}{viewport && <NavigationMenuViewport />}</NavigationMenuPrimitive.Root>- );+ )}function NavigationMenuList({@@ -38,11 +38,11 @@ function NavigationMenuList({data-slot="navigation-menu-list"className={cn("group flex flex-1 list-none items-center justify-center gap-1",- className,+ className)}{...props}/>- );+ )}function NavigationMenuItem({@@ -55,12 +55,12 @@ function NavigationMenuItem({className={cn("relative", className)}{...props}/>- );+ )}const navigationMenuTriggerStyle = cva(- "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1",-);+ "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"+)function NavigationMenuTrigger({className,@@ -79,7 +79,7 @@ function NavigationMenuTrigger({aria-hidden="true"/></NavigationMenuPrimitive.Trigger>- );+ )}function NavigationMenuContent({@@ -92,11 +92,11 @@ function NavigationMenuContent({className={cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",- className,+ className)}{...props}/>- );+ )}function NavigationMenuViewport({@@ -106,19 +106,19 @@ function NavigationMenuViewport({return (<divclassName={cn(- "absolute top-full left-0 isolate z-50 flex justify-center",+ "absolute top-full left-0 isolate z-50 flex justify-center")}><NavigationMenuPrimitive.Viewportdata-slot="navigation-menu-viewport"className={cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",- className,+ className)}{...props}/></div>- );+ )}function NavigationMenuLink({@@ -130,11 +130,11 @@ function NavigationMenuLink({data-slot="navigation-menu-link"className={cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}{...props}/>- );+ )}function NavigationMenuIndicator({@@ -146,13 +146,13 @@ function NavigationMenuIndicator({data-slot="navigation-menu-indicator"className={cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",- className,+ className)}{...props}><div className="bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" /></NavigationMenuPrimitive.Indicator>- );+ )}export {@@ -165,4 +165,4 @@ export {NavigationMenuIndicator,NavigationMenuViewport,navigationMenuTriggerStyle,-};+}diff --git a/src/components/ui/pagination.tsx b/src/components/ui/pagination.tsxindex 3671d5dc..0d185410 100644--- a/src/components/ui/pagination.tsx+++ b/src/components/ui/pagination.tsx@@ -1,13 +1,12 @@-import * as React from "react";+import * as React from "react"import {ChevronLeftIcon,ChevronRightIcon,MoreHorizontalIcon,-} from "lucide-react";+} from "lucide-react"-import { cn } from "@/lib/utils";-import type { Button } from "@/components/ui/button";-import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils"+import { Button, buttonVariants } from "@/components/ui/button"function Pagination({ className, ...props }: React.ComponentProps<"nav">) {return (@@ -18,7 +17,7 @@ function Pagination({ className, ...props }: React.ComponentProps<"nav">) {className={cn("mx-auto flex w-full justify-center", className)}{...props}/>- );+ )}function PaginationContent({@@ -31,17 +30,17 @@ function PaginationContent({className={cn("flex flex-row items-center gap-1", className)}{...props}/>- );+ )}function PaginationItem({ ...props }: React.ComponentProps<"li">) {- return <li data-slot="pagination-item" {...props} />;+ return <li data-slot="pagination-item" {...props} />}type PaginationLinkProps = {- isActive?: boolean;+ isActive?: boolean} & Pick<React.ComponentProps<typeof Button>, "size"> &- React.ComponentProps<"a">;+ React.ComponentProps<"a">function PaginationLink({className,@@ -59,11 +58,11 @@ function PaginationLink({variant: isActive ? "outline" : "ghost",size,}),- className,+ className)}{...props}/>- );+ )}function PaginationPrevious({@@ -80,7 +79,7 @@ function PaginationPrevious({<ChevronLeftIcon /><span className="hidden sm:block">Previous</span></PaginationLink>- );+ )}function PaginationNext({@@ -97,7 +96,7 @@ function PaginationNext({<span className="hidden sm:block">Next</span><ChevronRightIcon /></PaginationLink>- );+ )}function PaginationEllipsis({@@ -114,7 +113,7 @@ function PaginationEllipsis({<MoreHorizontalIcon className="size-4" /><span className="sr-only">More pages</span></span>- );+ )}export {@@ -125,4 +124,4 @@ export {PaginationPrevious,PaginationNext,PaginationEllipsis,-};+}diff --git a/src/components/ui/popover.tsx b/src/components/ui/popover.tsxindex ef5bfd04..6d51b6ce 100644--- a/src/components/ui/popover.tsx+++ b/src/components/ui/popover.tsx@@ -1,18 +1,18 @@-import * as React from "react";-import * as PopoverPrimitive from "@radix-ui/react-popover";+import * as React from "react"+import * as PopoverPrimitive from "@radix-ui/react-popover"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Popover({...props}: React.ComponentProps<typeof PopoverPrimitive.Root>) {- return <PopoverPrimitive.Root data-slot="popover" {...props} />;+ return <PopoverPrimitive.Root data-slot="popover" {...props} />}function PopoverTrigger({...props}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {- return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;+ return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />}function PopoverContent({@@ -29,18 +29,18 @@ function PopoverContent({sideOffset={sideOffset}className={cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",- className,+ className)}{...props}/></PopoverPrimitive.Portal>- );+ )}function PopoverAnchor({...props}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {- return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />;+ return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />}-export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };+export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }diff --git a/src/components/ui/radio-group.tsx b/src/components/ui/radio-group.tsxindex f2899c81..dc682eb9 100644--- a/src/components/ui/radio-group.tsx+++ b/src/components/ui/radio-group.tsx@@ -1,8 +1,8 @@-import * as React from "react";-import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";-import { CircleIcon } from "lucide-react";+import * as React from "react"+import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"+import { CircleIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function RadioGroup({className,@@ -14,7 +14,7 @@ function RadioGroup({className={cn("grid gap-3", className)}{...props}/>- );+ )}function RadioGroupItem({@@ -26,7 +26,7 @@ function RadioGroupItem({data-slot="radio-group-item"className={cn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",- className,+ className)}{...props}>@@ -37,7 +37,7 @@ function RadioGroupItem({<CircleIcon className="fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" /></RadioGroupPrimitive.Indicator></RadioGroupPrimitive.Item>- );+ )}-export { RadioGroup, RadioGroupItem };+export { RadioGroup, RadioGroupItem }diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsxindex 0c883e37..51f466ec 100644--- a/src/components/ui/select.tsx+++ b/src/components/ui/select.tsx@@ -1,25 +1,25 @@-import * as React from "react";-import * as SelectPrimitive from "@radix-ui/react-select";-import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";+import * as React from "react"+import * as SelectPrimitive from "@radix-ui/react-select"+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Select({...props}: React.ComponentProps<typeof SelectPrimitive.Root>) {- return <SelectPrimitive.Root data-slot="select" {...props} />;+ return <SelectPrimitive.Root data-slot="select" {...props} />}function SelectGroup({...props}: React.ComponentProps<typeof SelectPrimitive.Group>) {- return <SelectPrimitive.Group data-slot="select-group" {...props} />;+ return <SelectPrimitive.Group data-slot="select-group" {...props} />}function SelectValue({...props}: React.ComponentProps<typeof SelectPrimitive.Value>) {- return <SelectPrimitive.Value data-slot="select-value" {...props} />;+ return <SelectPrimitive.Value data-slot="select-value" {...props} />}function SelectTrigger({@@ -28,7 +28,7 @@ function SelectTrigger({children,...props}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {- size?: "sm" | "default";+ size?: "sm" | "default"}) {return (<SelectPrimitive.Trigger@@ -36,7 +36,7 @@ function SelectTrigger({data-size={size}className={cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",- className,+ className)}{...props}>@@ -45,7 +45,7 @@ function SelectTrigger({<ChevronDownIcon className="size-4 opacity-50" /></SelectPrimitive.Icon></SelectPrimitive.Trigger>- );+ )}function SelectContent({@@ -62,7 +62,7 @@ function SelectContent({"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",position === "popper" &&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",- className,+ className)}position={position}{...props}@@ -72,7 +72,7 @@ function SelectContent({className={cn("p-1",position === "popper" &&- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1",+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1")}>{children}@@ -80,7 +80,7 @@ function SelectContent({<SelectScrollDownButton /></SelectPrimitive.Content></SelectPrimitive.Portal>- );+ )}function SelectLabel({@@ -93,7 +93,7 @@ function SelectLabel({className={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}{...props}/>- );+ )}function SelectItem({@@ -106,7 +106,7 @@ function SelectItem({data-slot="select-item"className={cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",- className,+ className)}{...props}>@@ -117,7 +117,7 @@ function SelectItem({</span><SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText></SelectPrimitive.Item>- );+ )}function SelectSeparator({@@ -130,7 +130,7 @@ function SelectSeparator({className={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}{...props}/>- );+ )}function SelectScrollUpButton({@@ -142,13 +142,13 @@ function SelectScrollUpButton({data-slot="select-scroll-up-button"className={cn("flex cursor-default items-center justify-center py-1",- className,+ className)}{...props}><ChevronUpIcon className="size-4" /></SelectPrimitive.ScrollUpButton>- );+ )}function SelectScrollDownButton({@@ -160,13 +160,13 @@ function SelectScrollDownButton({data-slot="select-scroll-down-button"className={cn("flex cursor-default items-center justify-center py-1",- className,+ className)}{...props}><ChevronDownIcon className="size-4" /></SelectPrimitive.ScrollDownButton>- );+ )}export {@@ -180,4 +180,4 @@ export {SelectSeparator,SelectTrigger,SelectValue,-};+}diff --git a/src/components/ui/separator.tsx b/src/components/ui/separator.tsxindex ccb63c04..3cf4f89b 100644--- a/src/components/ui/separator.tsx+++ b/src/components/ui/separator.tsx@@ -1,7 +1,7 @@-import * as React from "react";-import * as SeparatorPrimitive from "@radix-ui/react-separator";+import * as React from "react"+import * as SeparatorPrimitive from "@radix-ui/react-separator"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Separator({className,@@ -16,11 +16,11 @@ function Separator({orientation={orientation}className={cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",- className,+ className)}{...props}/>- );+ )}-export { Separator };+export { Separator }diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsxindex 609cff0e..6906f5b2 100644--- a/src/components/ui/sheet.tsx+++ b/src/components/ui/sheet.tsx@@ -1,29 +1,29 @@-import * as React from "react";-import * as SheetPrimitive from "@radix-ui/react-dialog";-import { XIcon } from "lucide-react";+import * as React from "react"+import * as SheetPrimitive from "@radix-ui/react-dialog"+import { XIcon } from "lucide-react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {- return <SheetPrimitive.Root data-slot="sheet" {...props} />;+ return <SheetPrimitive.Root data-slot="sheet" {...props} />}function SheetTrigger({...props}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {- return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />;+ return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />}function SheetClose({...props}: React.ComponentProps<typeof SheetPrimitive.Close>) {- return <SheetPrimitive.Close data-slot="sheet-close" {...props} />;+ return <SheetPrimitive.Close data-slot="sheet-close" {...props} />}function SheetPortal({...props}: React.ComponentProps<typeof SheetPrimitive.Portal>) {- return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />;+ return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />}function SheetOverlay({@@ -35,11 +35,11 @@ function SheetOverlay({data-slot="sheet-overlay"className={cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",- className,+ className)}{...props}/>- );+ )}function SheetContent({@@ -48,7 +48,7 @@ function SheetContent({side = "right",...props}: React.ComponentProps<typeof SheetPrimitive.Content> & {- side?: "top" | "right" | "bottom" | "left";+ side?: "top" | "right" | "bottom" | "left"}) {return (<SheetPortal>@@ -65,7 +65,7 @@ function SheetContent({"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",side === "bottom" &&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",- className,+ className)}{...props}>@@ -76,7 +76,7 @@ function SheetContent({</SheetPrimitive.Close></SheetPrimitive.Content></SheetPortal>- );+ )}function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {@@ -86,7 +86,7 @@ function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {className={cn("flex flex-col gap-1.5 p-4", className)}{...props}/>- );+ )}function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {@@ -96,7 +96,7 @@ function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {className={cn("mt-auto flex flex-col gap-2 p-4", className)}{...props}/>- );+ )}function SheetTitle({@@ -109,7 +109,7 @@ function SheetTitle({className={cn("text-foreground font-semibold", className)}{...props}/>- );+ )}function SheetDescription({@@ -122,7 +122,7 @@ function SheetDescription({className={cn("text-muted-foreground text-sm", className)}{...props}/>- );+ )}export {@@ -134,4 +134,4 @@ export {SheetFooter,SheetTitle,SheetDescription,-};+}diff --git a/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsxindex 59deb467..4fd907c0 100644--- a/src/components/ui/sidebar.tsx+++ b/src/components/ui/sidebar.tsx@@ -1,7 +1,6 @@import * as React from "react";import { Slot } from "@radix-ui/react-slot";-import type { VariantProps } from "class-variance-authority";-import { cva } from "class-variance-authority";+import { VariantProps, cva } from "class-variance-authority";import { PanelLeftIcon } from "lucide-react";import { useIsMobile } from "@/hooks/use-mobile";@@ -84,7 +83,7 @@ function SidebarProvider({// This sets the cookie to keep the sidebar state.document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;},- [setOpenProp, open],+ [setOpenProp, open]);// Helper to toggle the sidebar.@@ -122,7 +121,7 @@ function SidebarProvider({setOpenMobile,toggleSidebar,}),- [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar],+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);return (@@ -139,7 +138,7 @@ function SidebarProvider({}className={cn("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",- className,+ className)}{...props}>@@ -170,7 +169,7 @@ function Sidebar({data-slot="sidebar"className={cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",- className,+ className)}{...props}>@@ -222,7 +221,7 @@ function Sidebar({"group-data-[side=right]:rotate-180",variant === "floating" || variant === "inset"? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]"- : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)",+ : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}/><div@@ -236,7 +235,7 @@ function Sidebar({variant === "floating" || variant === "inset"? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]": "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",- className,+ className)}{...props}>@@ -296,7 +295,7 @@ function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {"hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",- className,+ className)}{...props}/>@@ -310,7 +309,7 @@ function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {className={cn("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",- className,+ className)}{...props}/>@@ -374,7 +373,7 @@ function SidebarContent({ className, ...props }: React.ComponentProps<"div">) {data-sidebar="content"className={cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",- className,+ className)}{...props}/>@@ -406,7 +405,7 @@ function SidebarGroupLabel({className={cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",- className,+ className)}{...props}/>@@ -429,7 +428,7 @@ function SidebarGroupAction({// Increases the hit area of the button on mobile."after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",- className,+ className)}{...props}/>@@ -491,7 +490,7 @@ const sidebarMenuButtonVariants = cva(variant: "default",size: "default",},- },+ });function SidebarMenuButton({@@ -569,7 +568,7 @@ function SidebarMenuAction({"group-data-[collapsible=icon]:hidden",showOnHover &&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",- className,+ className)}{...props}/>@@ -591,7 +590,7 @@ function SidebarMenuBadge({"peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",- className,+ className)}{...props}/>@@ -644,7 +643,7 @@ function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">) {className={cn("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",- className,+ className)}{...props}/>@@ -690,7 +689,7 @@ function SidebarMenuSubButton({size === "sm" && "text-xs",size === "md" && "text-sm","group-data-[collapsible=icon]:hidden",- className,+ className)}{...props}/>diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsxindex 01689981..32ea0ef7 100644--- a/src/components/ui/skeleton.tsx+++ b/src/components/ui/skeleton.tsx@@ -1,4 +1,4 @@-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Skeleton({ className, ...props }: React.ComponentProps<"div">) {return (@@ -7,7 +7,7 @@ function Skeleton({ className, ...props }: React.ComponentProps<"div">) {className={cn("bg-accent animate-pulse rounded-md", className)}{...props}/>- );+ )}-export { Skeleton };+export { Skeleton }diff --git a/src/components/ui/switch.tsx b/src/components/ui/switch.tsxindex a026a47c..b0363e3f 100644--- a/src/components/ui/switch.tsx+++ b/src/components/ui/switch.tsx@@ -1,7 +1,7 @@-import * as React from "react";-import * as SwitchPrimitive from "@radix-ui/react-switch";+import * as React from "react"+import * as SwitchPrimitive from "@radix-ui/react-switch"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Switch({className,@@ -12,18 +12,18 @@ function Switch({data-slot="switch"className={cn("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",- className,+ className)}{...props}><SwitchPrimitive.Thumbdata-slot="switch-thumb"className={cn(- "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0",+ "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}/></SwitchPrimitive.Root>- );+ )}-export { Switch };+export { Switch }diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsxindex 2ad27ce8..5513a5cd 100644--- a/src/components/ui/table.tsx+++ b/src/components/ui/table.tsx@@ -1,6 +1,6 @@-import * as React from "react";+import * as React from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Table({ className, ...props }: React.ComponentProps<"table">) {return (@@ -14,7 +14,7 @@ function Table({ className, ...props }: React.ComponentProps<"table">) {{...props}/></div>- );+ )}function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {@@ -24,7 +24,7 @@ function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {className={cn("[&_tr]:border-b", className)}{...props}/>- );+ )}function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {@@ -34,7 +34,7 @@ function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {className={cn("[&_tr:last-child]:border-0", className)}{...props}/>- );+ )}function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {@@ -43,11 +43,11 @@ function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {data-slot="table-footer"className={cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",- className,+ className)}{...props}/>- );+ )}function TableRow({ className, ...props }: React.ComponentProps<"tr">) {@@ -56,11 +56,11 @@ function TableRow({ className, ...props }: React.ComponentProps<"tr">) {data-slot="table-row"className={cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",- className,+ className)}{...props}/>- );+ )}function TableHead({ className, ...props }: React.ComponentProps<"th">) {@@ -69,11 +69,11 @@ function TableHead({ className, ...props }: React.ComponentProps<"th">) {data-slot="table-head"className={cn("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",- className,+ className)}{...props}/>- );+ )}function TableCell({ className, ...props }: React.ComponentProps<"td">) {@@ -82,11 +82,11 @@ function TableCell({ className, ...props }: React.ComponentProps<"td">) {data-slot="table-cell"className={cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",- className,+ className)}{...props}/>- );+ )}function TableCaption({@@ -99,7 +99,7 @@ function TableCaption({className={cn("text-muted-foreground mt-4 text-sm", className)}{...props}/>- );+ )}export {@@ -111,4 +111,4 @@ export {TableRow,TableCell,TableCaption,-};+}diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsxindex 0735a8ca..7f21b5e7 100644--- a/src/components/ui/textarea.tsx+++ b/src/components/ui/textarea.tsx@@ -1,6 +1,6 @@-import * as React from "react";+import * as React from "react"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {return (@@ -8,11 +8,11 @@ function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {data-slot="textarea"className={cn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",- className,+ className)}{...props}/>- );+ )}-export { Textarea };+export { Textarea }diff --git a/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsxindex bf4a342a..4ee26b38 100644--- a/src/components/ui/tooltip.tsx+++ b/src/components/ui/tooltip.tsx@@ -1,9 +1,9 @@-"use client";+"use client"-import * as React from "react";-import * as TooltipPrimitive from "@radix-ui/react-tooltip";+import * as React from "react"+import * as TooltipPrimitive from "@radix-ui/react-tooltip"-import { cn } from "@/lib/utils";+import { cn } from "@/lib/utils"function TooltipProvider({delayDuration = 0,@@ -15,7 +15,7 @@ function TooltipProvider({delayDuration={delayDuration}{...props}/>- );+ )}function Tooltip({@@ -25,13 +25,13 @@ function Tooltip({<TooltipProvider><TooltipPrimitive.Root data-slot="tooltip" {...props} /></TooltipProvider>- );+ )}function TooltipTrigger({...props}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {- return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />;+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />}function TooltipContent({@@ -47,7 +47,7 @@ function TooltipContent({sideOffset={sideOffset}className={cn("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",- className,+ className)}{...props}>@@ -55,7 +55,7 @@ function TooltipContent({<TooltipPrimitive.Arrow className="bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" /></TooltipPrimitive.Content></TooltipPrimitive.Portal>- );+ )}-export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };+export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }diff --git a/src/hooks/use-mobile.ts b/src/hooks/use-mobile.tsindex a93d5839..48fab93c 100644--- a/src/hooks/use-mobile.ts+++ b/src/hooks/use-mobile.ts@@ -4,7 +4,7 @@ const MOBILE_BREAKPOINT = 768;export function useIsMobile() {const [isMobile, setIsMobile] = React.useState<boolean | undefined>(- undefined,+ undefined);React.useEffect(() => {