🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
update radix (#1026)
Goldflage07b4f8fbfd0
diff --git a/client/CLAUDE.md b/client/CLAUDE.mdindex 9314195ad..b68f4c84d 100644--- a/client/CLAUDE.md+++ b/client/CLAUDE.md@@ -136,3 +136,11 @@ Middleware in `proxy.ts` handles redirects and OAuth callbacks (`/auth/callback/- **i18n**: use `useTranslations()` from next-intl; translation files in `messages/`- **Error handling**: try/catch with specific error types; let React Query surface API errors- **Do not** add unnecessary abstractions, extra error handling for impossible cases, or docstrings to unchanged code++## i18n: the `t` translation function++`t` is the value returned by next-intl's `useTranslations()`. `useTranslations()` is a React hook, so it can **only** be called inside a React component or a custom hook — never at module scope, in a plain utility function, or in a regular (non-hook) callback. Calling it elsewhere violates the Rules of Hooks.++To translate inside a non-component/non-hook helper, **call `useTranslations()` in the component/hook and pass `t` down as a parameter** (typically as an optional `t?: TranslationFunction`, the shared type in `lib/events.ts`). Example: `getEventTypeLabel(type, t)` in `app/[site]/events/components/EventLog/eventLogUtils.tsx`.++Also: only pass real message keys to `t(...)`. Passing an arbitrary string (e.g. a display label like `"Input Change"`) throws `MISSING_MESSAGE: Could not resolve …`. If a value isn't a key in `messages/`, return it as-is instead of running it through `t`.diff --git a/client/package-lock.json b/client/package-lock.jsonindex 41cec98f3..0c51b0902 100644--- a/client/package-lock.json+++ b/client/package-lock.json@@ -21,15 +21,15 @@"@nivo/theming": "0.96.0","@number-flow/react": "0.5.9","@radix-ui/react-alert-dialog": "1.1.13",- "@radix-ui/react-checkbox": "^1.3.2",+ "@radix-ui/react-checkbox": "^1.3.5","@radix-ui/react-dialog": "1.1.13","@radix-ui/react-dropdown-menu": "2.1.14","@radix-ui/react-label": "2.1.6","@radix-ui/react-navigation-menu": "1.2.14","@radix-ui/react-popover": "1.1.13",- "@radix-ui/react-progress": "^1.1.8",- "@radix-ui/react-radio-group": "^1.3.8",- "@radix-ui/react-scroll-area": "^1.2.9",+ "@radix-ui/react-progress": "^1.1.10",+ "@radix-ui/react-radio-group": "^1.4.1",+ "@radix-ui/react-scroll-area": "^1.2.12","@radix-ui/react-select": "2.2.4","@radix-ui/react-separator": "1.1.6","@radix-ui/react-slider": "1.3.4",@@ -58,7 +58,7 @@"cmdk": "^1.1.1","country-flag-icons": "1.5.19","d3": "7.9.0",- "date-fns": "^4.1.0",+ "date-fns": "^4.4.0","embla-carousel-react": "^8.6.0","framer-motion": "12.11.0","geojson": "0.5.0",@@ -77,7 +77,7 @@"ol": "^10.6.1","papaparse": "^5.5.3","react": "^19.2.4",- "react-day-picker": "^9.11.3",+ "react-day-picker": "^10.0.1","react-dom": "^19.2.4","react-grid-layout": "^1.5.3","react-hook-form": "7.56.3",@@ -737,7 +737,6 @@"version": "5.0.1","resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-5.0.1.tgz","integrity": "sha512-u/+Jp83luQNx9AdyW2fIPGY6Y7NG68eN2ZW8FOJYL+M0i4s49+refdJdOp/A9n9HFQtQs3HIDHQvX3ZET2o7YA==",- "license": "MIT","dependencies": {"@standard-schema/utils": "^0.3.0"},@@ -2930,7 +2929,6 @@"version": "1.1.13","resolved": "https://registry.npmjs.org/@radix-ui/react-alert-dialog/-/react-alert-dialog-1.1.13.tgz","integrity": "sha512-/uPs78OwxGxslYOG5TKeUsv9fZC0vo376cXSADdKirTmsLJU2au6L3n34c3p6W26rFDDDze/hwy4fYeNd0qdGA==",- "license": "MIT","dependencies": {"@radix-ui/primitive": "1.1.2","@radix-ui/react-compose-refs": "1.1.2",@@ -2978,19 +2976,18 @@}},"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",- "integrity": "sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==",- "license": "MIT",+ "version": "1.3.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.5.tgz",+ "integrity": "sha512-pREzrmNnVwGvYaBoM64huTRK7B3lrTRuwj8A9nwhPiEtMb+yudiWh6zWAqEtP0Dzd5+iBa1Ki7V1pCxV8ExMdA==","dependencies": {- "@radix-ui/primitive": "1.1.3",- "@radix-ui/react-compose-refs": "1.1.2",- "@radix-ui/react-context": "1.1.2",- "@radix-ui/react-presence": "1.1.5",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-use-controllable-state": "1.2.2",- "@radix-ui/react-use-previous": "1.1.1",- "@radix-ui/react-use-size": "1.1.1"+ "@radix-ui/primitive": "1.1.4",+ "@radix-ui/react-compose-refs": "1.1.3",+ "@radix-ui/react-context": "1.1.4",+ "@radix-ui/react-presence": "1.1.6",+ "@radix-ui/react-primitive": "2.1.6",+ "@radix-ui/react-use-controllable-state": "1.2.3",+ "@radix-ui/react-use-previous": "1.1.2",+ "@radix-ui/react-use-size": "1.1.2"},"peerDependencies": {"@types/react": "*",@@ -3008,18 +3005,66 @@}},"node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/primitive": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.4.tgz",+ "integrity": "sha512-7AdCK9PQyiljKoBDbN8OuctCbd/esdwZPQ8RtOE3SsyQtUpiPb+ND75q0jEhC1m1ecBI0MFNeLJvwIh9iKHRcQ=="+ },+ "node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-compose-refs": {"version": "1.1.3",- "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.3.tgz",- "integrity": "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==",- "license": "MIT"+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.3.tgz",+ "integrity": "sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA==",+ "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-checkbox/node_modules/@radix-ui/react-context": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.4.tgz",+ "integrity": "sha512-QwH4PO5urrbO+FaGd5Aglg+YJgWTyyuZ3g/6mKvsqraLkglDdckw9JafgL5McL5VEJ6EPNduPaT3ZE9BttDAqg==",+ "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-checkbox/node_modules/@radix-ui/react-presence": {+ "version": "1.1.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.6.tgz",+ "integrity": "sha512-zdTk4PlUO0E18HnZ3wYbW0KkJJxWCdiNYp6g6X1PtONFhxVkg01vliTJAmwIszU6mHiyBOoW9P0rAugl5/hULQ==",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.2"+ },+ "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/node_modules/@radix-ui/react-primitive": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",- "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",- "license": "MIT",+ "version": "2.1.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.6.tgz",+ "integrity": "sha512-wetd0QI77DbvrPpTAvH1SqOxsYF2wZe5TNxqwOd5Ty4XDpV3dpV0s8K/1MGMJBeY5o7lg8ub5VIt1Ub+yVen6g==","dependencies": {- "@radix-ui/react-slot": "1.2.3"+ "@radix-ui/react-slot": "1.3.0"},"peerDependencies": {"@types/react": "*",@@ -3037,12 +3082,91 @@}},"node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-slot": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.0.tgz",+ "integrity": "sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA==",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.3"+ },+ "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-checkbox/node_modules/@radix-ui/react-use-controllable-state": {"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",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.3.tgz",+ "integrity": "sha512-PLzC90MS+ReootmjC597dvopoelpZ8Q61HJkDXZSExitIq7PL55vHNnesAHwguHK0aPfBnpdNzQtv1uliaqQrA==","dependencies": {- "@radix-ui/react-compose-refs": "1.1.2"+ "@radix-ui/react-use-effect-event": "0.0.3",+ "@radix-ui/react-use-layout-effect": "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-checkbox/node_modules/@radix-ui/react-use-effect-event": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.3.tgz",+ "integrity": "sha512-6c8ZqvPTWILEKnyVkP53EGRCcpnJiKTC21sS/6R1GF5xKyHJJWQEPfkqlcgUkdRQivd6tb23abUwe4ngWmY0JA==",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "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-checkbox/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.2.tgz",+ "integrity": "sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA==",+ "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-checkbox/node_modules/@radix-ui/react-use-previous": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.2.tgz",+ "integrity": "sha512-IGBQPtRFdhN6MQ8dbegVmBq1LVZluya3F1jWY+puIcQC3MHctRwTDSBWCkL/3ZcnMJLTMJ++Z+ktmvg0F89iCw==",+ "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-checkbox/node_modules/@radix-ui/react-use-size": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.2.tgz",+ "integrity": "sha512-giWQp+4mxjBPt4KZ0MmyuykFNWfbDxKt4x+fPkRYmgRFJSbCZFzUglvMb/Kjn38tm10YP4ufiQZDx3zna4LU6w==",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.2"},"peerDependencies": {"@types/react": "*",@@ -3114,7 +3238,6 @@"version": "1.1.13","resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.13.tgz","integrity": "sha512-ARFmqUyhIVS3+riWzwGTe7JLjqwqgnODBUZdqpWar/z1WFs9z76fuOs/2BOWCR+YboRn4/WN9aoaGVwqNRr8VA==",- "license": "MIT","dependencies": {"@radix-ui/primitive": "1.1.2","@radix-ui/react-compose-refs": "1.1.2",@@ -3216,7 +3339,6 @@"version": "2.1.14","resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.14.tgz","integrity": "sha512-lzuyNjoWOoaMFE/VC5FnAAYM16JmQA8ZmucOXtlhm2kKR5TSU95YLAueQ4JYuRmUJmBvSqXaVFGIfuukybwZJQ==",- "license": "MIT","dependencies": {"@radix-ui/primitive": "1.1.2","@radix-ui/react-compose-refs": "1.1.2",@@ -3303,7 +3425,6 @@"version": "2.1.6","resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.6.tgz","integrity": "sha512-S/hv1mTlgcPX2gCTJrWuTjSXf7ER3Zf7zWGtOprxhIIY93Qin3n5VgNA0Ez9AgrK/lEtlYgzLd4f5x6AVar4Yw==",- "license": "MIT","dependencies": {"@radix-ui/react-primitive": "2.1.2"},@@ -3390,7 +3511,6 @@"version": "1.2.14","resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.14.tgz","integrity": "sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==",- "license": "MIT","dependencies": {"@radix-ui/primitive": "1.1.3","@radix-ui/react-collection": "1.1.7",@@ -3549,7 +3669,6 @@"version": "1.1.13","resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.1.13.tgz","integrity": "sha512-84uqQV3omKDR076izYgcha6gdpN8m3z6w/AeJ83MSBJYVG/AbOHdLjAgsPZkeC/kt+k64moXFCnio8BbqXszlw==",- "license": "MIT","dependencies": {"@radix-ui/primitive": "1.1.2","@radix-ui/react-compose-refs": "1.1.2",@@ -3710,13 +3829,12 @@}},"node_modules/@radix-ui/react-progress": {- "version": "1.1.8",- "resolved": "https://registry.npmjs.org/@radix-ui/react-progress/-/react-progress-1.1.8.tgz",- "integrity": "sha512-+gISHcSPUJ7ktBy9RnTqbdKW78bcGke3t6taawyZ71pio1JewwGSJizycs7rLhGTvMJYCQB1DBK4KQsxs7U8dA==",- "license": "MIT",+ "version": "1.1.10",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-progress/-/react-progress-1.1.10.tgz",+ "integrity": "sha512-JYzEg60lk79PwKM27WZyKd7PW8O4OM5jOaFfRPfOyeXmMw7tLJh5kSj+CEjVTehszuwml/AdCzPGMXBTGf4BBw==","dependencies": {- "@radix-ui/react-context": "1.1.3",- "@radix-ui/react-primitive": "2.1.4"+ "@radix-ui/react-context": "1.1.4",+ "@radix-ui/react-primitive": "2.1.6"},"peerDependencies": {"@types/react": "*",@@ -3733,11 +3851,24 @@}}},- "node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context": {+ "node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-compose-refs": {"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",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.3.tgz",+ "integrity": "sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA==",+ "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/node_modules/@radix-ui/react-context": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.4.tgz",+ "integrity": "sha512-QwH4PO5urrbO+FaGd5Aglg+YJgWTyyuZ3g/6mKvsqraLkglDdckw9JafgL5McL5VEJ6EPNduPaT3ZE9BttDAqg==","peerDependencies": {"@types/react": "*","react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"@@ -3749,12 +3880,11 @@}},"node_modules/@radix-ui/react-progress/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",+ "version": "2.1.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.6.tgz",+ "integrity": "sha512-wetd0QI77DbvrPpTAvH1SqOxsYF2wZe5TNxqwOd5Ty4XDpV3dpV0s8K/1MGMJBeY5o7lg8ub5VIt1Ub+yVen6g==","dependencies": {- "@radix-ui/react-slot": "1.2.4"+ "@radix-ui/react-slot": "1.3.0"},"peerDependencies": {"@types/react": "*",@@ -3772,12 +3902,11 @@}},"node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-slot": {- "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",+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.0.tgz",+ "integrity": "sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA==","dependencies": {- "@radix-ui/react-compose-refs": "1.1.2"+ "@radix-ui/react-compose-refs": "1.1.3"},"peerDependencies": {"@types/react": "*",@@ -3790,21 +3919,20 @@}},"node_modules/@radix-ui/react-radio-group": {- "version": "1.3.8",- "resolved": "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.3.8.tgz",- "integrity": "sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ==",- "license": "MIT",+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.4.1.tgz",+ "integrity": "sha512-/SSxZdKEo2Eo29FFRKd06EfFDYp8HryKg0WYg7QLXaydPzl52YfSvCH2a3QDBRdtcuwACroJT8UVjQVgOJ7P9A==","dependencies": {- "@radix-ui/primitive": "1.1.3",- "@radix-ui/react-compose-refs": "1.1.2",- "@radix-ui/react-context": "1.1.2",- "@radix-ui/react-direction": "1.1.1",- "@radix-ui/react-presence": "1.1.5",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-roving-focus": "1.1.11",- "@radix-ui/react-use-controllable-state": "1.2.2",- "@radix-ui/react-use-previous": "1.1.1",- "@radix-ui/react-use-size": "1.1.1"+ "@radix-ui/primitive": "1.1.4",+ "@radix-ui/react-compose-refs": "1.1.3",+ "@radix-ui/react-context": "1.1.4",+ "@radix-ui/react-direction": "1.1.2",+ "@radix-ui/react-presence": "1.1.6",+ "@radix-ui/react-primitive": "2.1.6",+ "@radix-ui/react-roving-focus": "1.1.13",+ "@radix-ui/react-use-controllable-state": "1.2.3",+ "@radix-ui/react-use-previous": "1.1.2",+ "@radix-ui/react-use-size": "1.1.2"},"peerDependencies": {"@types/react": "*",@@ -3822,21 +3950,100 @@}},"node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/primitive": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.3.tgz",- "integrity": "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==",- "license": "MIT"+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.4.tgz",+ "integrity": "sha512-7AdCK9PQyiljKoBDbN8OuctCbd/esdwZPQ8RtOE3SsyQtUpiPb+ND75q0jEhC1m1ecBI0MFNeLJvwIh9iKHRcQ=="},"node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-collection": {- "version": "1.1.7",- "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz",- "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==",- "license": "MIT",+ "version": "1.1.10",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.10.tgz",+ "integrity": "sha512-IVVz4EvBcKjrzKgof714qDnz/SzQAkLA2Emh5edlHbgcE6fNd3Un6CJLlaYcnm8N4JmAtzQgse4dOKxcD2yc9g==","dependencies": {- "@radix-ui/react-compose-refs": "1.1.2",- "@radix-ui/react-context": "1.1.2",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-slot": "1.2.3"+ "@radix-ui/react-compose-refs": "1.1.3",+ "@radix-ui/react-context": "1.1.4",+ "@radix-ui/react-primitive": "2.1.6",+ "@radix-ui/react-slot": "1.3.0"+ },+ "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-radio-group/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.3.tgz",+ "integrity": "sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA==",+ "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-radio-group/node_modules/@radix-ui/react-context": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.4.tgz",+ "integrity": "sha512-QwH4PO5urrbO+FaGd5Aglg+YJgWTyyuZ3g/6mKvsqraLkglDdckw9JafgL5McL5VEJ6EPNduPaT3ZE9BttDAqg==",+ "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-radio-group/node_modules/@radix-ui/react-direction": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.2.tgz",+ "integrity": "sha512-C3vFhbyi4SW3PmbAi6Awpu4OzJtd0MxGurvSsYtr7p7nM8RNB3VAF3CUmnp2j50knpkrRcB7+ycVXzgLgF6yNA==",+ "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-radio-group/node_modules/@radix-ui/react-id": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.2.tgz",+ "integrity": "sha512-orBC88futVpqCmhX1p4cvquNHsELQ+w+vBJnuj3ftETI5bJb0bZn3Tqu3SWN2IOcPycTnMGnhwoermvISt72sA==",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "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-radio-group/node_modules/@radix-ui/react-presence": {+ "version": "1.1.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.6.tgz",+ "integrity": "sha512-zdTk4PlUO0E18HnZ3wYbW0KkJJxWCdiNYp6g6X1PtONFhxVkg01vliTJAmwIszU6mHiyBOoW9P0rAugl5/hULQ==",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.2"},"peerDependencies": {"@types/react": "*",@@ -3854,12 +4061,11 @@}},"node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-primitive": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",- "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",- "license": "MIT",+ "version": "2.1.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.6.tgz",+ "integrity": "sha512-wetd0QI77DbvrPpTAvH1SqOxsYF2wZe5TNxqwOd5Ty4XDpV3dpV0s8K/1MGMJBeY5o7lg8ub5VIt1Ub+yVen6g==","dependencies": {- "@radix-ui/react-slot": "1.2.3"+ "@radix-ui/react-slot": "1.3.0"},"peerDependencies": {"@types/react": "*",@@ -3877,20 +4083,19 @@}},"node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-roving-focus": {- "version": "1.1.11",- "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.11.tgz",- "integrity": "sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==",- "license": "MIT",+ "version": "1.1.13",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.13.tgz",+ "integrity": "sha512-9gkwneI0guf8JDmrFxPjJF6Ozzgioyw+/lonYNCwefS9ZHA05er0BVHiXr+LbWGHxUfczvMY6G1oiZZi1VzjRw==","dependencies": {- "@radix-ui/primitive": "1.1.3",- "@radix-ui/react-collection": "1.1.7",- "@radix-ui/react-compose-refs": "1.1.2",- "@radix-ui/react-context": "1.1.2",- "@radix-ui/react-direction": "1.1.1",- "@radix-ui/react-id": "1.1.1",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-use-callback-ref": "1.1.1",- "@radix-ui/react-use-controllable-state": "1.2.2"+ "@radix-ui/primitive": "1.1.4",+ "@radix-ui/react-collection": "1.1.10",+ "@radix-ui/react-compose-refs": "1.1.3",+ "@radix-ui/react-context": "1.1.4",+ "@radix-ui/react-direction": "1.1.2",+ "@radix-ui/react-id": "1.1.2",+ "@radix-ui/react-primitive": "2.1.6",+ "@radix-ui/react-use-callback-ref": "1.1.2",+ "@radix-ui/react-use-controllable-state": "1.2.3"},"peerDependencies": {"@types/react": "*",@@ -3908,12 +4113,105 @@}},"node_modules/@radix-ui/react-radio-group/node_modules/@radix-ui/react-slot": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.0.tgz",+ "integrity": "sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA==",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.3"+ },+ "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-radio-group/node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.2.tgz",+ "integrity": "sha512-xCso9j1/u8sEgP1RNHjFrXJLApL8LiqOkI1R4ywuN00rxWdYg4oQXuwKLS3i0j5NWLromUD27/4nlxj2UFVvIw==",+ "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-radio-group/node_modules/@radix-ui/react-use-controllable-state": {"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",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.3.tgz",+ "integrity": "sha512-PLzC90MS+ReootmjC597dvopoelpZ8Q61HJkDXZSExitIq7PL55vHNnesAHwguHK0aPfBnpdNzQtv1uliaqQrA==","dependencies": {- "@radix-ui/react-compose-refs": "1.1.2"+ "@radix-ui/react-use-effect-event": "0.0.3",+ "@radix-ui/react-use-layout-effect": "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-radio-group/node_modules/@radix-ui/react-use-effect-event": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.3.tgz",+ "integrity": "sha512-6c8ZqvPTWILEKnyVkP53EGRCcpnJiKTC21sS/6R1GF5xKyHJJWQEPfkqlcgUkdRQivd6tb23abUwe4ngWmY0JA==",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "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-radio-group/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.2.tgz",+ "integrity": "sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA==",+ "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-radio-group/node_modules/@radix-ui/react-use-previous": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.2.tgz",+ "integrity": "sha512-IGBQPtRFdhN6MQ8dbegVmBq1LVZluya3F1jWY+puIcQC3MHctRwTDSBWCkL/3ZcnMJLTMJ++Z+ktmvg0F89iCw==",+ "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-radio-group/node_modules/@radix-ui/react-use-size": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.2.tgz",+ "integrity": "sha512-giWQp+4mxjBPt4KZ0MmyuykFNWfbDxKt4x+fPkRYmgRFJSbCZFzUglvMb/Kjn38tm10YP4ufiQZDx3zna4LU6w==",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.2"},"peerDependencies": {"@types/react": "*",@@ -3957,20 +4255,19 @@}},"node_modules/@radix-ui/react-scroll-area": {- "version": "1.2.10",- "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.2.10.tgz",- "integrity": "sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A==",- "license": "MIT",+ "version": "1.2.12",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.2.12.tgz",+ "integrity": "sha512-xuafVzQiTCLsyEjakowTdG3OgTXsmO7IdCiO77otIa+z44xoLNs9Do5eg7POFumIOCjtG6djfm6RKUKpUa/csA==","dependencies": {- "@radix-ui/number": "1.1.1",- "@radix-ui/primitive": "1.1.3",- "@radix-ui/react-compose-refs": "1.1.2",- "@radix-ui/react-context": "1.1.2",- "@radix-ui/react-direction": "1.1.1",- "@radix-ui/react-presence": "1.1.5",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-use-callback-ref": "1.1.1",- "@radix-ui/react-use-layout-effect": "1.1.1"+ "@radix-ui/number": "1.1.2",+ "@radix-ui/primitive": "1.1.4",+ "@radix-ui/react-compose-refs": "1.1.3",+ "@radix-ui/react-context": "1.1.4",+ "@radix-ui/react-direction": "1.1.2",+ "@radix-ui/react-presence": "1.1.6",+ "@radix-ui/react-primitive": "2.1.6",+ "@radix-ui/react-use-callback-ref": "1.1.2",+ "@radix-ui/react-use-layout-effect": "1.1.2"},"peerDependencies": {"@types/react": "*",@@ -3987,19 +4284,86 @@}}},+ "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/number": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.2.tgz",+ "integrity": "sha512-ceTwaxc4I5IOi97DgCotl3pqiyRGvffcc0oOsE2dQYaJOFIDsDt4VWG6xEbg1QePv9QWausCEIppud/tJ1wNig=="+ },"node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.4.tgz",+ "integrity": "sha512-7AdCK9PQyiljKoBDbN8OuctCbd/esdwZPQ8RtOE3SsyQtUpiPb+ND75q0jEhC1m1ecBI0MFNeLJvwIh9iKHRcQ=="+ },+ "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs": {"version": "1.1.3",- "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.3.tgz",- "integrity": "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==",- "license": "MIT"+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.3.tgz",+ "integrity": "sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA==",+ "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-scroll-area/node_modules/@radix-ui/react-context": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.4.tgz",+ "integrity": "sha512-QwH4PO5urrbO+FaGd5Aglg+YJgWTyyuZ3g/6mKvsqraLkglDdckw9JafgL5McL5VEJ6EPNduPaT3ZE9BttDAqg==",+ "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-scroll-area/node_modules/@radix-ui/react-direction": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.2.tgz",+ "integrity": "sha512-C3vFhbyi4SW3PmbAi6Awpu4OzJtd0MxGurvSsYtr7p7nM8RNB3VAF3CUmnp2j50knpkrRcB7+ycVXzgLgF6yNA==",+ "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-scroll-area/node_modules/@radix-ui/react-presence": {+ "version": "1.1.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.6.tgz",+ "integrity": "sha512-zdTk4PlUO0E18HnZ3wYbW0KkJJxWCdiNYp6g6X1PtONFhxVkg01vliTJAmwIszU6mHiyBOoW9P0rAugl5/hULQ==",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.2"+ },+ "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-scroll-area/node_modules/@radix-ui/react-primitive": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",- "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",- "license": "MIT",+ "version": "2.1.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.6.tgz",+ "integrity": "sha512-wetd0QI77DbvrPpTAvH1SqOxsYF2wZe5TNxqwOd5Ty4XDpV3dpV0s8K/1MGMJBeY5o7lg8ub5VIt1Ub+yVen6g==","dependencies": {- "@radix-ui/react-slot": "1.2.3"+ "@radix-ui/react-slot": "1.3.0"},"peerDependencies": {"@types/react": "*",@@ -4017,12 +4381,11 @@}},"node_modules/@radix-ui/react-scroll-area/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",+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.0.tgz",+ "integrity": "sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA==","dependencies": {- "@radix-ui/react-compose-refs": "1.1.2"+ "@radix-ui/react-compose-refs": "1.1.3"},"peerDependencies": {"@types/react": "*",@@ -4034,11 +4397,38 @@}}},+ "node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.2.tgz",+ "integrity": "sha512-xCso9j1/u8sEgP1RNHjFrXJLApL8LiqOkI1R4ywuN00rxWdYg4oQXuwKLS3i0j5NWLromUD27/4nlxj2UFVvIw==",+ "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-scroll-area/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.2.tgz",+ "integrity": "sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA==",+ "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-select": {"version": "2.2.4","resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.2.4.tgz","integrity": "sha512-/OOm58Gil4Ev5zT8LyVzqfBcij4dTHYdeyuF5lMHZ2bIp0Lk9oETocYiJ5QC0dHekEQnK6L/FNJCceeb4AkZ6Q==",- "license": "MIT","dependencies": {"@radix-ui/number": "1.1.1","@radix-ui/primitive": "1.1.2",@@ -4104,7 +4494,6 @@"version": "1.1.6","resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.6.tgz","integrity": "sha512-Izof3lPpbCfTM7WDta+LRkz31jem890VjEvpVRoWQNKpDUMMVffuyq854XPGP1KYGWWmjmYvHvPFeocWhFCy1w==",- "license": "MIT","dependencies": {"@radix-ui/react-primitive": "2.1.2"},@@ -4127,7 +4516,6 @@"version": "1.3.4","resolved": "https://registry.npmjs.org/@radix-ui/react-slider/-/react-slider-1.3.4.tgz","integrity": "sha512-Cp6hEmQtRJFci285vkdIJ+HCDLTRDk+25VhFwa1fcubywjMUE3PynBgtN5RLudOgSCYMlT4jizCXdmV+8J7Y2w==",- "license": "MIT","dependencies": {"@radix-ui/number": "1.1.1","@radix-ui/primitive": "1.1.2",@@ -4160,7 +4548,6 @@"version": "1.2.2","resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.2.tgz","integrity": "sha512-y7TBO4xN4Y94FvcWIOIh18fM4R1A8S4q1jhoz4PNzOoHsFcN8pogcFmZrTYAm4F9VRUrWP/Mw7xSKybIeRI+CQ==",- "license": "MIT","dependencies": {"@radix-ui/react-compose-refs": "1.1.2"},@@ -4178,7 +4565,6 @@"version": "1.2.4","resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.2.4.tgz","integrity": "sha512-yZCky6XZFnR7pcGonJkr9VyNRu46KcYAbyg1v/gVVCZUr8UJ4x+RpncC27hHtiZ15jC+3WS8Yg/JSgyIHnYYsQ==",- "license": "MIT","dependencies": {"@radix-ui/primitive": "1.1.2","@radix-ui/react-compose-refs": "1.1.2",@@ -4207,7 +4593,6 @@"version": "1.1.11","resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.11.tgz","integrity": "sha512-4FiKSVoXqPP/KfzlB7lwwqoFV6EPwkrrqGp9cUYXjwDYHhvpnqq79P+EPHKcdoTE7Rl8w/+6s9rTlsfXHES9GA==",- "license": "MIT","dependencies": {"@radix-ui/primitive": "1.1.2","@radix-ui/react-context": "1.1.2",@@ -4261,7 +4646,6 @@"version": "1.2.6","resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.6.tgz","integrity": "sha512-zYb+9dc9tkoN2JjBDIIPLQtk3gGyz8FMKoqYTb8EMVQ5a5hBcdHPECrsZVI4NpPAUOixhkoqg7Hj5ry5USowfA==",- "license": "MIT","dependencies": {"@radix-ui/primitive": "1.1.2","@radix-ui/react-compose-refs": "1.1.2",@@ -7032,7 +7416,6 @@"version": "1.1.1","resolved": "https://registry.npmjs.org/cmdk/-/cmdk-1.1.1.tgz","integrity": "sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==",- "license": "MIT","dependencies": {"@radix-ui/react-compose-refs": "^1.1.1","@radix-ui/react-dialog": "^1.1.6",@@ -7644,21 +8027,14 @@}},"node_modules/date-fns": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-4.1.0.tgz",- "integrity": "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==",- "license": "MIT",+ "version": "4.4.0",+ "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-4.4.0.tgz",+ "integrity": "sha512-+1UMbeh68lH1SegH83CGWwpb6OHHbpSgr3+s5Eww5M4CAgswBpoWS0AjTOfEJ33HiYKz1hdj/KTFprzXHmq/6w==","funding": {"type": "github","url": "https://github.com/sponsors/kossnocorp"}},- "node_modules/date-fns-jalali": {- "version": "4.1.0-0",- "resolved": "https://registry.npmjs.org/date-fns-jalali/-/date-fns-jalali-4.1.0-0.tgz",- "integrity": "sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg==",- "license": "MIT"- },"node_modules/debug": {"version": "4.4.3","resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",@@ -7827,7 +8203,6 @@"version": "8.6.0","resolved": "https://registry.npmjs.org/embla-carousel-react/-/embla-carousel-react-8.6.0.tgz","integrity": "sha512-0/PjqU7geVmo6F734pmPqpyHqiM99olvyecY7zdweCw+6tKEXnrE90pBiBbMMU8s5tICemzpQ3hi5EpxzGW+JA==",- "license": "MIT","dependencies": {"embla-carousel": "8.6.0","embla-carousel-reactive-utils": "8.6.0"@@ -10901,7 +11276,6 @@"version": "0.4.6","resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz","integrity": "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==",- "license": "MIT","peerDependencies": {"react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc","react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc"@@ -11560,14 +11934,12 @@}},"node_modules/react-day-picker": {- "version": "9.12.0",- "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-9.12.0.tgz",- "integrity": "sha512-t8OvG/Zrciso5CQJu5b1A7yzEmebvST+S3pOVQJWxwjjVngyG/CA2htN/D15dLI4uTEuLLkbZyS4YYt480FAtA==",- "license": "MIT",+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-10.0.1.tgz",+ "integrity": "sha512-eNh6BlwcYInWaJtRv18mXQ06Ys/H6rdTZAnTaSdOYJuTpwP1JMCHNd1FDRadA+gbeinq+psdULN5Xnowy9mV8w==","dependencies": {"@date-fns/tz": "^1.4.1",- "date-fns": "^4.1.0",- "date-fns-jalali": "^4.1.0-0"+ "date-fns": "^4.1.0"},"engines": {"node": ">=18"@@ -11577,7 +11949,13 @@"url": "https://github.com/sponsors/gpbl"},"peerDependencies": {+ "@types/react": ">=16.8.0","react": ">=16.8.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},"node_modules/react-dom": {@@ -11628,7 +12006,6 @@"version": "7.56.3","resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.56.3.tgz","integrity": "sha512-IK18V6GVbab4TAo1/cz3kqajxbDPGofdF0w7VHdCo0Nt8PrPlOZcuuDq9YYIV1BtjcX78x0XsldbQRQnQXWXmw==",- "license": "MIT","engines": {"node": ">=18.0.0"},@@ -13042,7 +13419,6 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/vaul/-/vaul-1.1.2.tgz","integrity": "sha512-ZFkClGpWyI2WUQjdLJ/BaGuV6AVQiJ3uELGk3OYtP+B6yCO7Cmn9vPFXVJkRaGkOJu3m8bQMgtyzNHixULceQA==",- "license": "MIT","dependencies": {"@radix-ui/react-dialog": "^1.1.1"},@@ -13219,7 +13595,6 @@"version": "3.24.4","resolved": "https://registry.npmjs.org/zod/-/zod-3.24.4.tgz","integrity": "sha512-OdqJE9UDRPwWsrHjLN2F8bPxvwJBK22EHLWtanu0LSYr5YqzsaaW3RMgmjwr8Rypg5k+meEJdSPXJZXE/yqOMg==",- "license": "MIT","funding": {"url": "https://github.com/sponsors/colinhacks"}diff --git a/client/package.json b/client/package.jsonindex 524e0fa3f..4b42dcc19 100644--- a/client/package.json+++ b/client/package.json@@ -26,15 +26,15 @@"@nivo/theming": "0.96.0","@number-flow/react": "0.5.9","@radix-ui/react-alert-dialog": "1.1.13",- "@radix-ui/react-checkbox": "^1.3.2",+ "@radix-ui/react-checkbox": "^1.3.5","@radix-ui/react-dialog": "1.1.13","@radix-ui/react-dropdown-menu": "2.1.14","@radix-ui/react-label": "2.1.6","@radix-ui/react-navigation-menu": "1.2.14","@radix-ui/react-popover": "1.1.13",- "@radix-ui/react-progress": "^1.1.8",- "@radix-ui/react-radio-group": "^1.3.8",- "@radix-ui/react-scroll-area": "^1.2.9",+ "@radix-ui/react-progress": "^1.1.10",+ "@radix-ui/react-radio-group": "^1.4.1",+ "@radix-ui/react-scroll-area": "^1.2.12","@radix-ui/react-select": "2.2.4","@radix-ui/react-separator": "1.1.6","@radix-ui/react-slider": "1.3.4",@@ -63,7 +63,7 @@"cmdk": "^1.1.1","country-flag-icons": "1.5.19","d3": "7.9.0",- "date-fns": "^4.1.0",+ "date-fns": "^4.4.0","embla-carousel-react": "^8.6.0","framer-motion": "12.11.0","geojson": "0.5.0",@@ -82,7 +82,7 @@"ol": "^10.6.1","papaparse": "^5.5.3","react": "^19.2.4",- "react-day-picker": "^9.11.3",+ "react-day-picker": "^10.0.1","react-dom": "^19.2.4","react-grid-layout": "^1.5.3","react-hook-form": "7.56.3",diff --git a/client/src/components/ui/alert-dialog.tsx b/client/src/components/ui/alert-dialog.tsxindex 3728801be..9d64b8bbb 100644--- a/client/src/components/ui/alert-dialog.tsx+++ b/client/src/components/ui/alert-dialog.tsx@@ -4,103 +4,99 @@ import * as React from "react";import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";import { cn } from "@/lib/utils";-import { buttonVariants } from "@/components/ui/button";+import { type ButtonProps, buttonVariants } from "@/components/ui/button";-function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {- return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;-}+const AlertDialog = AlertDialogPrimitive.Root;-function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {- return <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />;-}+const AlertDialogTrigger = AlertDialogPrimitive.Trigger;-function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {- return <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />;-}+const AlertDialogPortal = AlertDialogPrimitive.Portal;-function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {- return (- <AlertDialogPrimitive.Overlay- data-slot="alert-dialog-overlay"+const AlertDialogOverlay = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Overlay>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Overlay+ className={cn(+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",+ className+ )}+ {...props}+ ref={ref}+ />+));+AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;++const AlertDialogContent = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>+>(({ className, ...props }, ref) => (+ <AlertDialogPortal>+ <AlertDialogOverlay />+ <AlertDialogPrimitive.Content+ ref={ref}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",+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-150 bg-white p-6 shadow-lg duration-200 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 sm:rounded-lg dark:border-neutral-850 dark:bg-neutral-950",className)}{...props}/>- );-}+ </AlertDialogPortal>+));+AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;-function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {- return (- <AlertDialogPortal>- <AlertDialogOverlay />- <AlertDialogPrimitive.Content- data-slot="alert-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- )}- {...props}- />- </AlertDialogPortal>- );-}+const AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (+ <div className={cn("flex flex-col space-y-2 text-center sm:text-left", className)} {...props} />+);+AlertDialogHeader.displayName = "AlertDialogHeader";-function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">) {- return (- <div- data-slot="alert-dialog-header"- className={cn("flex flex-col gap-2 text-center sm:text-left", className)}- {...props}- />- );-}--function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">) {- return (- <div- data-slot="alert-dialog-footer"- className={cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)}- {...props}- />- );-}+const AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (+ <div className={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)} {...props} />+);+AlertDialogFooter.displayName = "AlertDialogFooter";-function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {- return (- <AlertDialogPrimitive.Title- data-slot="alert-dialog-title"- className={cn("text-lg font-semibold", className)}- {...props}- />- );-}+const AlertDialogTitle = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Title>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Title ref={ref} className={cn("text-lg font-semibold", className)} {...props} />+));+AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;-function AlertDialogDescription({- className,- ...props-}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {- return (- <AlertDialogPrimitive.Description- data-slot="alert-dialog-description"- className={cn("text-muted-foreground text-sm", className)}- {...props}- />- );-}+const AlertDialogDescription = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Description>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Description+ ref={ref}+ className={cn("text-sm text-neutral-500 dark:text-neutral-400", className)}+ {...props}+ />+));+AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;-function AlertDialogAction({- className,- variant,- ...props-}: React.ComponentProps<typeof AlertDialogPrimitive.Action> & { variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" }) {- return <AlertDialogPrimitive.Action className={cn(buttonVariants({ variant }), className)} {...props} />;-}+const AlertDialogAction = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Action>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> & {+ variant?: ButtonProps["variant"];+ size?: ButtonProps["size"];+ }+>(({ className, variant, size, ...props }, ref) => (+ <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants({ variant, size }), className)} {...props} />+));+AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;-function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {- return <AlertDialogPrimitive.Cancel className={cn(buttonVariants({ variant: "outline" }), className)} {...props} />;-}+const AlertDialogCancel = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Cancel>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Cancel+ ref={ref}+ className={cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className)}+ {...props}+ />+));+AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;export {AlertDialog,diff --git a/client/src/components/ui/alert.tsx b/client/src/components/ui/alert.tsxindex bf07c43ee..f6497dcf3 100644--- a/client/src/components/ui/alert.tsx+++ b/client/src/components/ui/alert.tsx@@ -15,8 +15,7 @@ const alertVariants = cva("border-green-500/50 text-green-600 dark:border-green-500 [&>svg]:text-green-600 dark:bg-green-950/70 dark:border-green-900/50 dark:text-green-400 dark:[&>svg]:text-green-400",warning:"border-yellow-500/50 text-yellow-600 dark:border-yellow-500 [&>svg]:text-yellow-600 dark:bg-yellow-950/70 dark:border-yellow-900/50 dark:text-yellow-400 dark:[&>svg]:text-yellow-400",- info:- "border-blue-500/50 text-blue-600 dark:border-blue-500 [&>svg]:text-blue-600 dark:bg-blue-950/70 dark:border-blue-900/50 dark:text-blue-400 dark:[&>svg]:text-blue-400",+ info: "border-blue-500/50 text-blue-600 dark:border-blue-500 [&>svg]:text-blue-600 dark:bg-blue-950/70 dark:border-blue-900/50 dark:text-blue-400 dark:[&>svg]:text-blue-400",},},defaultVariants: {diff --git a/client/src/components/ui/badge.tsx b/client/src/components/ui/badge.tsxindex f7129b283..992554464 100644--- a/client/src/components/ui/badge.tsx+++ b/client/src/components/ui/badge.tsx@@ -8,14 +8,18 @@ const badgeVariants = cva({variants: {variant: {- default: "border-neutral-100 bg-neutral-100 text-neutral-900 hover:bg-neutral-150 dark:border-neutral-800 dark:bg-neutral-800 dark:text-neutral-100 dark:hover:bg-neutral-700",- secondary: "border-neutral-100 bg-neutral-50 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-300 dark:hover:bg-neutral-800",+ default:+ "border-neutral-100 bg-neutral-100 text-neutral-900 hover:bg-neutral-150 dark:border-neutral-800 dark:bg-neutral-800 dark:text-neutral-100 dark:hover:bg-neutral-700",+ secondary:+ "border-neutral-100 bg-neutral-50 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-300 dark:hover:bg-neutral-800",destructive: "border-transparent bg-red-500/20 text-red-600 hover:bg-red-500/30 dark:text-red-400",warning: "border-transparent bg-yellow-500/20 text-yellow-600 hover:bg-yellow-500/30 dark:text-yellow-400",success: "border-transparent bg-emerald-500/20 text-emerald-600 hover:bg-emerald-500/30 dark:text-emerald-400",info: "border-transparent bg-blue-500/20 text-blue-600 hover:bg-blue-500/30 dark:text-blue-400",- outline: "border-neutral-100 bg-transparent text-neutral-700 hover:bg-neutral-50 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",- ghost: "border-transparent bg-transparent text-neutral-700 hover:bg-neutral-50 dark:text-neutral-300 dark:hover:bg-neutral-800",+ outline:+ "border-neutral-100 bg-transparent text-neutral-700 hover:bg-neutral-50 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",+ ghost:+ "border-transparent bg-transparent text-neutral-700 hover:bg-neutral-50 dark:text-neutral-300 dark:hover:bg-neutral-800",},},defaultVariants: {diff --git a/client/src/components/ui/breadcrumb.tsx b/client/src/components/ui/breadcrumb.tsxindex 0c92844fd..a93dd5733 100644--- a/client/src/components/ui/breadcrumb.tsx+++ b/client/src/components/ui/breadcrumb.tsx@@ -4,82 +4,86 @@ import { ChevronRight, MoreHorizontal } from "lucide-react";import { cn } from "@/lib/utils";-function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {- return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;-}+const Breadcrumb = React.forwardRef<+ HTMLElement,+ React.ComponentPropsWithoutRef<"nav"> & {+ separator?: React.ReactNode;+ }+>(({ ...props }, ref) => <nav ref={ref} aria-label="breadcrumb" {...props} />);+Breadcrumb.displayName = "Breadcrumb";-function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {- return (+const BreadcrumbList = React.forwardRef<HTMLOListElement, React.ComponentPropsWithoutRef<"ol">>(+ ({ className, ...props }, ref) => (<ol- data-slot="breadcrumb-list"+ ref={ref}className={cn(- "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5",+ "flex flex-wrap items-center gap-1.5 break-words text-sm text-neutral-500 sm:gap-2.5 dark:text-neutral-400",className)}{...props}/>- );-}+ )+);+BreadcrumbList.displayName = "BreadcrumbList";-function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {- return <li data-slot="breadcrumb-item" className={cn("inline-flex items-center gap-1.5", className)} {...props} />;-}+const BreadcrumbItem = React.forwardRef<HTMLLIElement, React.ComponentPropsWithoutRef<"li">>(+ ({ className, ...props }, ref) => (+ <li ref={ref} className={cn("inline-flex items-center gap-1.5", className)} {...props} />+ )+);+BreadcrumbItem.displayName = "BreadcrumbItem";-function BreadcrumbLink({- asChild,- className,- ...props-}: React.ComponentProps<"a"> & {- asChild?: boolean;-}) {+const BreadcrumbLink = React.forwardRef<+ HTMLAnchorElement,+ React.ComponentPropsWithoutRef<"a"> & {+ asChild?: boolean;+ }+>(({ asChild, className, ...props }, ref) => {const Comp = asChild ? Slot : "a";return (- <Comp data-slot="breadcrumb-link" className={cn("hover:text-foreground transition-colors", className)} {...props} />+ <Comp+ ref={ref}+ className={cn("transition-colors hover:text-neutral-950 dark:hover:text-neutral-50", className)}+ {...props}+ />);-}+});+BreadcrumbLink.displayName = "BreadcrumbLink";-function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {- return (+const BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWithoutRef<"span">>(+ ({ className, ...props }, ref) => (<span- data-slot="breadcrumb-page"+ ref={ref}role="link"aria-disabled="true"aria-current="page"- className={cn("text-foreground font-normal", className)}+ className={cn("font-normal text-neutral-950 dark:text-neutral-50", className)}{...props}/>- );-}+ )+);+BreadcrumbPage.displayName = "BreadcrumbPage";-function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">) {- return (- <li- data-slot="breadcrumb-separator"- role="presentation"- aria-hidden="true"- className={cn("[&>svg]:size-3.5", className)}- {...props}- >- {children ?? <ChevronRight />}- </li>- );-}+const BreadcrumbSeparator = ({ children, className, ...props }: React.ComponentProps<"li">) => (+ <li role="presentation" aria-hidden="true" className={cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)} {...props}>+ {children ?? <ChevronRight />}+ </li>+);+BreadcrumbSeparator.displayName = "BreadcrumbSeparator";-function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">) {- return (- <span- data-slot="breadcrumb-ellipsis"- role="presentation"- aria-hidden="true"- className={cn("flex size-9 items-center justify-center", className)}- {...props}- >- <MoreHorizontal className="size-4" />- <span className="sr-only">More</span>- </span>- );-}+const BreadcrumbEllipsis = ({ className, ...props }: React.ComponentProps<"span">) => (+ <span+ role="presentation"+ aria-hidden="true"+ className={cn("flex h-9 w-9 items-center justify-center", className)}+ {...props}+ >+ <MoreHorizontal className="h-4 w-4" />+ <span className="sr-only">More</span>+ </span>+);+BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";export {Breadcrumb,diff --git a/client/src/components/ui/button-group.tsx b/client/src/components/ui/button-group.tsxindex 45b2227f5..cb7597d80 100644--- a/client/src/components/ui/button-group.tsx+++ b/client/src/components/ui/button-group.tsx@@ -5,7 +5,7 @@ import { cn } from "@/lib/utils";import { Separator } from "@/components/ui/separator";const buttonGroupVariants = cva(- "flex w-fit items-stretch *:focus-visible:z-10 *:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",+ "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants: {orientation: {@@ -49,7 +49,7 @@ function ButtonGroupText({return (<CompclassName={cn(- "bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",+ "flex items-center gap-2 rounded-md border border-neutral-150 bg-neutral-100 px-4 text-sm font-medium shadow-xs [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none dark:border-neutral-800 dark:bg-neutral-800",className)}{...props}@@ -66,7 +66,10 @@ function ButtonGroupSeparator({<Separatordata-slot="button-group-separator"orientation={orientation}- className={cn("bg-input relative m-0! self-stretch data-[orientation=vertical]:h-auto", className)}+ className={cn(+ "relative !m-0 self-stretch bg-neutral-200 data-[orientation=vertical]:h-auto dark:bg-neutral-800",+ className+ )}{...props}/>);diff --git a/client/src/components/ui/button.tsx b/client/src/components/ui/button.tsxindex b0e2b42a7..180c24653 100644--- a/client/src/components/ui/button.tsx+++ b/client/src/components/ui/button.tsx@@ -44,8 +44,7 @@ const buttonVariants = cva();export interface ButtonProps- extends React.ButtonHTMLAttributes<HTMLButtonElement>,- VariantProps<typeof buttonVariants> {+ extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {asChild?: boolean;}diff --git a/client/src/components/ui/calendar.tsx b/client/src/components/ui/calendar.tsxindex 8e62b32bc..0726c4bd0 100644--- a/client/src/components/ui/calendar.tsx+++ b/client/src/components/ui/calendar.tsx@@ -13,19 +13,22 @@ function Calendar({showOutsideDays = true,captionLayout = "label",buttonVariant = "ghost",+ initialFocus,formatters,components,...props}: React.ComponentProps<typeof DayPicker> & {buttonVariant?: React.ComponentProps<typeof Button>["variant"];+ initialFocus?: boolean;}) {const defaultClassNames = getDefaultClassNames();return (<DayPickershowOutsideDays={showOutsideDays}+ autoFocus={initialFocus ?? props.autoFocus}className={cn(- "bg-white dark:bg-neutral-850 group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",+ "group/calendar bg-white p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent dark:bg-neutral-850",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,className@@ -37,70 +40,67 @@ function Calendar({}}classNames={{root: cn("w-fit", defaultClassNames.root),- months: cn("flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),- month: cn("flex flex-col w-full gap-4", defaultClassNames.month),- nav: cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),+ months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),+ month: cn("flex w-full flex-col gap-4", defaultClassNames.month),+ nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),button_previous: cn(buttonVariants({ variant: buttonVariant }),- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",+ "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",defaultClassNames.button_previous),button_next: cn(buttonVariants({ variant: buttonVariant }),- "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",+ "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",defaultClassNames.button_next),month_caption: cn(- "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",+ "flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",defaultClassNames.month_caption),dropdowns: cn(- "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",+ "flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",defaultClassNames.dropdowns),dropdown_root: cn(- "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",+ "relative rounded-md border border-neutral-150 shadow-xs has-focus:border-neutral-500 has-focus:ring-[3px] has-focus:ring-neutral-500/50 dark:border-neutral-800 dark:has-focus:border-neutral-400 dark:has-focus:ring-neutral-400/50",defaultClassNames.dropdown_root),- dropdown: cn("absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),+ dropdown: cn("absolute inset-0 bg-white opacity-0 dark:bg-neutral-900", defaultClassNames.dropdown),caption_label: cn("select-none font-medium",captionLayout === "label"? "text-sm"- : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-neutral-500 dark:[&>svg]:text-neutral-400 [&>svg]:size-3.5",+ : "flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5 [&>svg]:text-neutral-500 dark:[&>svg]:text-neutral-400",defaultClassNames.caption_label),- table: "w-full border-collapse",+ month_grid: cn("w-full border-collapse", defaultClassNames.month_grid),weekdays: cn("flex", defaultClassNames.weekdays),weekday: cn(- "text-neutral-500 dark:text-neutral-400 rounded-md flex-1 font-normal text-[0.8rem] select-none",+ "flex-1 select-none rounded-md text-[0.8rem] font-normal text-neutral-500 dark:text-neutral-400",defaultClassNames.weekday),- week: cn("flex w-full mt-2", defaultClassNames.week),- week_number_header: cn("select-none w-(--cell-size)", defaultClassNames.week_number_header),+ week: cn("mt-2 flex w-full", defaultClassNames.week),+ week_number_header: cn("w-[--cell-size] select-none", defaultClassNames.week_number_header),week_number: cn(- "text-[0.8rem] select-none text-neutral-500 dark:text-neutral-400",+ "select-none text-[0.8rem] text-neutral-500 dark:text-neutral-400",defaultClassNames.week_number),day: cn(- "relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",- props.showWeekNumber- ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md"- : "[&:first-child[data-selected=true]_button]:rounded-l-md",+ "group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",defaultClassNames.day),range_start: cn("rounded-l-md bg-neutral-50 dark:bg-neutral-700", defaultClassNames.range_start),range_middle: cn("rounded-none", defaultClassNames.range_middle),range_end: cn("rounded-r-md bg-neutral-50 dark:bg-neutral-700", defaultClassNames.range_end),today: cn(- "bg-neutral-50 dark:bg-neutral-700 text-neutral-900 dark:text-neutral-50 rounded-md data-[selected=true]:rounded-none",+ "rounded-md bg-neutral-50 text-neutral-900 data-[selected=true]:rounded-none dark:bg-neutral-700 dark:text-neutral-50",defaultClassNames.today),outside: cn(- "text-neutral-500 dark:text-neutral-400 aria-selected:text-neutral-500 dark:aria-selected:text-neutral-400",+ "text-neutral-500 aria-selected:text-neutral-500 dark:text-neutral-400 dark:aria-selected:text-neutral-400",defaultClassNames.outside),- disabled: cn("text-neutral-500 dark:text-neutral-400 opacity-50", defaultClassNames.disabled),+ disabled: cn("text-neutral-500 opacity-50 dark:text-neutral-400", defaultClassNames.disabled),hidden: cn("invisible", defaultClassNames.hidden),...classNames,}}@@ -123,7 +123,7 @@ function Calendar({WeekNumber: ({ children, ...props }) => {return (<td {...props}>- <div className="flex size-(--cell-size) items-center justify-center text-center">{children}</div>+ <div className="flex size-[--cell-size] items-center justify-center text-center">{children}</div></td>);},@@ -135,29 +135,19 @@ function Calendar({}const dayButtonBaseClasses = cn(- // Selection states"data-[selected-single=true]:bg-neutral-700 data-[selected-single=true]:text-neutral-50","dark:data-[selected-single=true]:bg-neutral-200 dark:data-[selected-single=true]:text-neutral-900",- // Range middle"data-[range-middle=true]:bg-neutral-50 data-[range-middle=true]:text-neutral-900","dark:data-[range-middle=true]:bg-neutral-700 dark:data-[range-middle=true]:text-neutral-50",- // Range start"data-[range-start=true]:bg-neutral-700 data-[range-start=true]:text-neutral-50","dark:data-[range-start=true]:bg-neutral-200 dark:data-[range-start=true]:text-neutral-900",- // Range end"data-[range-end=true]:bg-neutral-700 data-[range-end=true]:text-neutral-50","dark:data-[range-end=true]:bg-neutral-200 dark:data-[range-end=true]:text-neutral-900",- // Focus states"group-data-[focused=true]/day:border-neutral-700 group-data-[focused=true]/day:ring-neutral-700/50","dark:group-data-[focused=true]/day:border-neutral-400 dark:group-data-[focused=true]/day:ring-neutral-400/50",- // Layout and styling- "dark:hover:text-neutral-50 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal",+ "flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none","group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px]",- // Range rounding- "data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md",- "data-[range-middle=true]:rounded-none",- "data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md",- // Children styling+ "data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md","[&>span]:text-xs [&>span]:opacity-70");diff --git a/client/src/components/ui/card.tsx b/client/src/components/ui/card.tsxindex 41119548a..d9c552770 100644--- a/client/src/components/ui/card.tsx+++ b/client/src/components/ui/card.tsx@@ -6,12 +6,11 @@ import "ldrs/react/Zoomies.css";import { useTheme } from "next-themes";import * as React from "react";-// Default values shownconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (<divref={ref}className={cn(- "relative rounded-lg border border-neutral-100 bg-white text-neutral-950 dark:border-neutral-850 dark:bg-neutral-900 dark:text-neutral-50 overflow-hidden transition-all duration-300 ",+ "relative rounded-lg border border-neutral-100 bg-white text-neutral-950 dark:border-neutral-850 dark:bg-neutral-900 dark:text-neutral-50 overflow-hidden transition-all duration-300",className)}{...props}@@ -25,7 +24,7 @@ const CardLoader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivconst loaderColor = theme === "dark" ? "hsl(var(--neutral-400))" : "hsl(var(--neutral-200))";return (- <div className="mt-[-15px] absolute top-0 left-0 w-full">+ <div ref={ref} className={cn("mt-[-15px] absolute top-0 left-0 w-full", className)} {...props}><Zoomies size={1400} stroke="3" bg-opacity="0.1" speed="1.4" color={loaderColor} /></div>);@@ -56,7 +55,7 @@ CardDescription.displayName = "CardDescription";const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (- <div ref={ref} className={cn("relative p-4 pt-0 transition-all duration-300 ", className)} {...props} />+ <div ref={ref} className={cn("relative p-4 pt-0 transition-all duration-300", className)} {...props} />));CardContent.displayName = "CardContent";@@ -66,4 +65,4 @@ const CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDiv);CardFooter.displayName = "CardFooter";-export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardLoader, CardTitle };+export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, CardLoader };diff --git a/client/src/components/ui/carousel.tsx b/client/src/components/ui/carousel.tsxindex 1e336b882..0c7fb562a 100644--- a/client/src/components/ui/carousel.tsx+++ b/client/src/components/ui/carousel.tsx@@ -1,242 +1,226 @@-"use client"+"use client";-import * as React from "react"-import useEmblaCarousel, {- type UseEmblaCarouselType,-} from "embla-carousel-react"+import * as React from "react";+import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";+import { ArrowLeft, ArrowRight } from "lucide-react";-import { cn } from "@/lib/utils"-import { Button } from "@/components/ui/button"-import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"+import { cn } from "@/lib/utils";+import { Button } from "@/components/ui/button";-type CarouselApi = UseEmblaCarouselType[1]-type UseCarouselParameters = Parameters<typeof useEmblaCarousel>-type CarouselOptions = UseCarouselParameters[0]-type CarouselPlugin = UseCarouselParameters[1]+type CarouselApi = UseEmblaCarouselType[1];+type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;+type CarouselOptions = UseCarouselParameters[0];+type CarouselPlugin = UseCarouselParameters[1];type CarouselProps = {- opts?: CarouselOptions- plugins?: CarouselPlugin- orientation?: "horizontal" | "vertical"- setApi?: (api: CarouselApi) => void-}+ opts?: CarouselOptions;+ plugins?: CarouselPlugin;+ orientation?: "horizontal" | "vertical";+ setApi?: (api: CarouselApi) => void;+};type CarouselContextProps = {- carouselRef: ReturnType<typeof useEmblaCarousel>[0]- api: ReturnType<typeof useEmblaCarousel>[1]- scrollPrev: () => void- scrollNext: () => void- canScrollPrev: boolean- canScrollNext: boolean-} & CarouselProps+ carouselRef: ReturnType<typeof useEmblaCarousel>[0];+ api: ReturnType<typeof useEmblaCarousel>[1];+ scrollPrev: () => void;+ scrollNext: () => void;+ canScrollPrev: boolean;+ canScrollNext: boolean;+} & CarouselProps;-const CarouselContext = React.createContext<CarouselContextProps | null>(null)+const CarouselContext = React.createContext<CarouselContextProps | null>(null);function useCarousel() {- const context = React.useContext(CarouselContext)+ const context = React.useContext(CarouselContext);- if (!context) {- throw new Error("useCarousel must be used within a <Carousel />")- }+ if (!context) {+ throw new Error("useCarousel must be used within a <Carousel />");+ }- return context+ return context;}-function Carousel({- orientation = "horizontal",- opts,- setApi,- plugins,- className,- children,- ...props-}: React.ComponentProps<"div"> & CarouselProps) {+const Carousel = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & CarouselProps>(+ ({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }, ref) => {const [carouselRef, api] = useEmblaCarousel(- {- ...opts,- axis: orientation === "horizontal" ? "x" : "y",- },- plugins- )- const [canScrollPrev, setCanScrollPrev] = React.useState(false)- const [canScrollNext, setCanScrollNext] = React.useState(false)+ {+ ...opts,+ axis: orientation === "horizontal" ? "x" : "y",+ },+ plugins+ );+ const [canScrollPrev, setCanScrollPrev] = React.useState(false);+ const [canScrollNext, setCanScrollNext] = React.useState(false);const onSelect = React.useCallback((api: CarouselApi) => {- if (!api) return- setCanScrollPrev(api.canScrollPrev())- setCanScrollNext(api.canScrollNext())- }, [])+ if (!api) {+ return;+ }++ setCanScrollPrev(api.canScrollPrev());+ setCanScrollNext(api.canScrollNext());+ }, []);const scrollPrev = React.useCallback(() => {- api?.scrollPrev()- }, [api])+ api?.scrollPrev();+ }, [api]);const scrollNext = React.useCallback(() => {- api?.scrollNext()- }, [api])+ api?.scrollNext();+ }, [api]);const handleKeyDown = React.useCallback(- (event: React.KeyboardEvent<HTMLDivElement>) => {- if (event.key === "ArrowLeft") {- event.preventDefault()- scrollPrev()- } else if (event.key === "ArrowRight") {- event.preventDefault()- scrollNext()- }- },- [scrollPrev, scrollNext]- )+ (event: React.KeyboardEvent<HTMLDivElement>) => {+ if (event.key === "ArrowLeft") {+ event.preventDefault();+ scrollPrev();+ } else if (event.key === "ArrowRight") {+ event.preventDefault();+ scrollNext();+ }+ },+ [scrollPrev, scrollNext]+ );React.useEffect(() => {- if (!api || !setApi) return- setApi(api)- }, [api, setApi])+ if (!api || !setApi) {+ return;+ }- React.useEffect(() => {- if (!api) return- onSelect(api)- api.on("reInit", onSelect)- api.on("select", onSelect)+ setApi(api);+ }, [api, setApi]);- return () => {- api?.off("select", onSelect)- }- }, [api, onSelect])+ React.useEffect(() => {+ if (!api) {+ return;+ }- return (- <CarouselContext.Provider- value={{- carouselRef,- api: api,- opts,- orientation:- orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),- scrollPrev,- scrollNext,- canScrollPrev,- canScrollNext,- }}- >- <div- onKeyDownCapture={handleKeyDown}- className={cn("relative", className)}- role="region"- aria-roledescription="carousel"- data-slot="carousel"- {...props}- >- {children}- </div>- </CarouselContext.Provider>- )-}+ onSelect(api);+ api.on("reInit", onSelect);+ api.on("select", onSelect);-function CarouselContent({ className, ...props }: React.ComponentProps<"div">) {- const { carouselRef, orientation } = useCarousel()+ return () => {+ api?.off("select", onSelect);+ };+ }, [api, onSelect]);return (+ <CarouselContext.Provider+ value={{+ carouselRef,+ api: api,+ opts,+ orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),+ scrollPrev,+ scrollNext,+ canScrollPrev,+ canScrollNext,+ }}+ ><div- ref={carouselRef}- className="overflow-hidden"- data-slot="carousel-content"+ ref={ref}+ onKeyDownCapture={handleKeyDown}+ className={cn("relative", className)}+ role="region"+ aria-roledescription="carousel"+ {...props}>- <div- className={cn(- "flex",- orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",- className- )}- {...props}- />+ {children}</div>- )-}+ </CarouselContext.Provider>+ );+ }+);+Carousel.displayName = "Carousel";-function CarouselItem({ className, ...props }: React.ComponentProps<"div">) {- const { orientation } = useCarousel()+const CarouselContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(+ ({ className, ...props }, ref) => {+ const { carouselRef, orientation } = useCarousel();return (+ <div ref={carouselRef} className="overflow-hidden"><div- role="group"- aria-roledescription="slide"- data-slot="carousel-item"- className={cn(- "min-w-0 shrink-0 grow-0 basis-full",- orientation === "horizontal" ? "pl-4" : "pt-4",- className- )}- {...props}+ ref={ref}+ className={cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className)}+ {...props}/>- )-}+ </div>+ );+ }+);+CarouselContent.displayName = "CarouselContent";-function CarouselPrevious({- className,- variant = "outline",- size = "smIcon",- ...props-}: React.ComponentProps<typeof Button>) {- const { orientation, scrollPrev, canScrollPrev } = useCarousel()+const CarouselItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(+ ({ className, ...props }, ref) => {+ const { orientation } = useCarousel();return (- <Button- data-slot="carousel-previous"- variant={variant}- size={size}- className={cn(- "rounded-full absolute touch-manipulation",- orientation === "horizontal"- ? "top-1/2 -left-12 -translate-y-1/2"- : "-top-12 left-1/2 -translate-x-1/2 rotate-90",- className- )}- disabled={!canScrollPrev}- onClick={scrollPrev}- {...props}- >- <ChevronLeftIcon className="cn-rtl-flip" />- <span className="sr-only">Previous slide</span>- </Button>- )-}--function CarouselNext({- className,- variant = "outline",- size = "smIcon",- ...props-}: React.ComponentProps<typeof Button>) {- const { orientation, scrollNext, canScrollNext } = useCarousel()+ <div+ ref={ref}+ role="group"+ aria-roledescription="slide"+ className={cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className)}+ {...props}+ />+ );+ }+);+CarouselItem.displayName = "CarouselItem";++const CarouselPrevious = React.forwardRef<HTMLButtonElement, React.ComponentProps<typeof Button>>(+ ({ className, variant = "outline", size = "icon", ...props }, ref) => {+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();return (- <Button- data-slot="carousel-next"- variant={variant}- size={size}- className={cn(- "rounded-full absolute touch-manipulation",- orientation === "horizontal"- ? "top-1/2 -right-12 -translate-y-1/2"- : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",- className- )}- disabled={!canScrollNext}- onClick={scrollNext}- {...props}- >- <ChevronRightIcon className="cn-rtl-flip" />- <span className="sr-only">Next slide</span>- </Button>- )-}+ <Button+ ref={ref}+ variant={variant}+ size={size}+ className={cn(+ "absolute h-8 w-8 rounded-full",+ orientation === "horizontal"+ ? "-left-12 top-1/2 -translate-y-1/2"+ : "-top-12 left-1/2 -translate-x-1/2 rotate-90",+ className+ )}+ disabled={!canScrollPrev}+ onClick={scrollPrev}+ {...props}+ >+ <ArrowLeft className="h-4 w-4" />+ <span className="sr-only">Previous slide</span>+ </Button>+ );+ }+);+CarouselPrevious.displayName = "CarouselPrevious";++const CarouselNext = React.forwardRef<HTMLButtonElement, React.ComponentProps<typeof Button>>(+ ({ className, variant = "outline", size = "icon", ...props }, ref) => {+ const { orientation, scrollNext, canScrollNext } = useCarousel();-export {- type CarouselApi,- Carousel,- CarouselContent,- CarouselItem,- CarouselPrevious,- CarouselNext,- useCarousel,-}+ return (+ <Button+ ref={ref}+ variant={variant}+ size={size}+ className={cn(+ "absolute h-8 w-8 rounded-full",+ orientation === "horizontal"+ ? "-right-12 top-1/2 -translate-y-1/2"+ : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",+ className+ )}+ disabled={!canScrollNext}+ onClick={scrollNext}+ {...props}+ >+ <ArrowRight className="h-4 w-4" />+ <span className="sr-only">Next slide</span>+ </Button>+ );+ }+);+CarouselNext.displayName = "CarouselNext";++export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext };diff --git a/client/src/components/ui/checkbox.tsx b/client/src/components/ui/checkbox.tsxindex fe3cdb740..7d34c22af 100644--- a/client/src/components/ui/checkbox.tsx+++ b/client/src/components/ui/checkbox.tsx@@ -2,28 +2,27 @@import * as React from "react";import * as CheckboxPrimitive from "@radix-ui/react-checkbox";-import { CheckIcon } from "lucide-react";+import { Check } from "lucide-react";import { cn } from "@/lib/utils";-function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {- return (- <CheckboxPrimitive.Root- data-slot="checkbox"- className={cn(- "peer border-input dark:bg-input/30 data-[state=checked]:bg-emerald-600 data-[state=checked]:text-white dark:data-[state=checked]:bg-emerald-500 data-[state=checked]:border-emerald-600 dark:data-[state=checked]:border-emerald-500 focus-visible:border-emerald-500 focus-visible:ring-emerald-500/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- )}- {...props}- >- <CheckboxPrimitive.Indicator- data-slot="checkbox-indicator"- className="flex items-center justify-center text-current transition-none"- >- <CheckIcon className="size-3.5" />- </CheckboxPrimitive.Indicator>- </CheckboxPrimitive.Root>- );-}+const Checkbox = React.forwardRef<+ React.ElementRef<typeof CheckboxPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>+>(({ className, ...props }, ref) => (+ <CheckboxPrimitive.Root+ ref={ref}+ className={cn(+ "grid h-4 w-4 shrink-0 place-content-center rounded-sm border border-neutral-300 shadow transition-shadow outline-none focus-visible:border-accent-500 focus-visible:ring-[3px] focus-visible:ring-accent-500/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-accent-500 data-[state=checked]:bg-accent-500 data-[state=checked]:text-white dark:border-neutral-700 dark:bg-neutral-900/30 dark:data-[state=checked]:border-accent-500 dark:data-[state=checked]:bg-accent-500",+ className+ )}+ {...props}+ >+ <CheckboxPrimitive.Indicator className={cn("grid place-content-center text-current")}>+ <Check className="h-4 w-4" />+ </CheckboxPrimitive.Indicator>+ </CheckboxPrimitive.Root>+));+Checkbox.displayName = CheckboxPrimitive.Root.displayName;export { Checkbox };diff --git a/client/src/components/ui/command.tsx b/client/src/components/ui/command.tsxindex e6f6c8af1..27c537747 100644--- a/client/src/components/ui/command.tsx+++ b/client/src/components/ui/command.tsx@@ -7,20 +7,23 @@ import { SearchIcon } from "lucide-react";import { cn } from "@/lib/utils";import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@/components/ui/dialog";-function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>) {- return (- <CommandPrimitive- data-slot="command"- className={cn(- "flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-900 dark:text-neutral-50",- className- )}- {...props}- />- );-}+const Command = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive>+>(({ className, ...props }, ref) => (+ <CommandPrimitive+ ref={ref}+ data-slot="command"+ className={cn(+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-white text-neutral-950 dark:bg-neutral-900 dark:text-neutral-50",+ className+ )}+ {...props}+ />+));+Command.displayName = CommandPrimitive.displayName;-function CommandDialog({+const CommandDialog = ({title = "Command Palette",description = "Search for a command to run...",children,@@ -32,7 +35,7 @@ function CommandDialog({description?: string;className?: string;showCloseButton?: boolean;-}) {+}) => {return (<Dialog {...props}><DialogHeader className="sr-only">@@ -40,91 +43,113 @@ function CommandDialog({<DialogDescription>{description}</DialogDescription></DialogHeader><DialogContent className={cn("overflow-hidden p-0", className)}>- {/* <DialogContent className={cn("overflow-hidden p-0", className)} showCloseButton={showCloseButton}> */}<Command className="[&_[cmdk-group-heading]]:text-muted-foreground [&_[data-slot=command-input-wrapper]]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">{children}</Command></DialogContent></Dialog>);-}--function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>) {- return (- <div- data-slot="command-input-wrapper"- className="flex h-9 items-center gap-2 border-b border-neutral-200 px-3 dark:border-neutral-800"- >- <SearchIcon className="h-4 w-4 shrink-0 opacity-50" />- <CommandPrimitive.Input- data-slot="command-input"- className={cn(- "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",- className- )}- {...props}- />- </div>- );-}--function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>) {- return (- <CommandPrimitive.List- data-slot="command-list"- className={cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto p-1", className)}- {...props}- />- );-}--function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>) {- return (- <CommandPrimitive.Empty- data-slot="command-empty"- className="py-6 text-center text-sm text-neutral-500 dark:text-neutral-400"- {...props}- />- );-}+};-function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>) {- return (- <CommandPrimitive.Group- data-slot="command-group"+const CommandInput = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Input>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>+>(({ className, ...props }, ref) => (+ <div+ data-slot="command-input-wrapper"+ className="flex h-9 items-center gap-2 border-b border-neutral-200 px-3 dark:border-neutral-800"+ >+ <SearchIcon className="h-4 w-4 shrink-0 opacity-50" />+ <CommandPrimitive.Input+ ref={ref}+ data-slot="command-input"className={cn(- "overflow-hidden text-neutral-950 dark:text-neutral-50 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:[&_[cmdk-group-heading]]:text-neutral-400",+ "flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-neutral-500 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-neutral-400",className)}{...props}/>- );-}+ </div>+));-function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>) {- return (- <CommandPrimitive.Separator- data-slot="command-separator"- className={cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800", className)}- {...props}- />- );-}+CommandInput.displayName = CommandPrimitive.Input.displayName;-function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) {- return (- <CommandPrimitive.Item- data-slot="command-item"- className={cn(- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[selected=true]:bg-neutral-100 data-[selected=true]:text-neutral-900 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 dark:data-[selected=true]:bg-neutral-800 dark:data-[selected=true]:text-neutral-50",- className- )}- {...props}- />- );-}+const CommandList = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.List>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.List+ ref={ref}+ data-slot="command-list"+ className={cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto p-1", className)}+ {...props}+ />+));++CommandList.displayName = CommandPrimitive.List.displayName;++const CommandEmpty = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Empty>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>+>((props, ref) => (+ <CommandPrimitive.Empty+ ref={ref}+ data-slot="command-empty"+ className="py-6 text-center text-sm text-neutral-500 dark:text-neutral-400"+ {...props}+ />+));++CommandEmpty.displayName = CommandPrimitive.Empty.displayName;++const CommandGroup = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Group>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.Group+ ref={ref}+ data-slot="command-group"+ className={cn(+ "overflow-hidden text-neutral-950 dark:text-neutral-50 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-neutral-500 dark:[&_[cmdk-group-heading]]:text-neutral-400",+ className+ )}+ {...props}+ />+));-function CommandShortcut({ className, ...props }: React.ComponentProps<"span">) {+CommandGroup.displayName = CommandPrimitive.Group.displayName;++const CommandSeparator = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Separator>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.Separator+ ref={ref}+ data-slot="command-separator"+ className={cn("-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800", className)}+ {...props}+ />+));+CommandSeparator.displayName = CommandPrimitive.Separator.displayName;++const CommandItem = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.Item+ ref={ref}+ data-slot="command-item"+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-neutral-100 data-[selected=true]:text-neutral-900 data-[disabled=true]:opacity-50 dark:data-[selected=true]:bg-neutral-800 dark:data-[selected=true]:text-neutral-50",+ className+ )}+ {...props}+ />+));++CommandItem.displayName = CommandPrimitive.Item.displayName;++const CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {return (<spandata-slot="command-shortcut"@@ -132,7 +157,8 @@ function CommandShortcut({ className, ...props }: React.ComponentProps<"span">){...props}/>);-}+};+CommandShortcut.displayName = "CommandShortcut";export {Command,diff --git a/client/src/components/ui/dialog.tsx b/client/src/components/ui/dialog.tsxindex 2264a4db3..92ee4f108 100644--- a/client/src/components/ui/dialog.tsx+++ b/client/src/components/ui/dialog.tsx@@ -21,7 +21,7 @@ const DialogOverlay = React.forwardRef<<DialogPrimitive.Overlayref={ref}className={cn(- "fixed inset-0 z-50 bg-black/80 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/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",className)}{...props}@@ -31,14 +31,16 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;const DialogContent = React.forwardRef<React.ElementRef<typeof DialogPrimitive.Content>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & { hideClose?: boolean }+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {+ hideClose?: boolean;+ }>(({ className, children, hideClose, ...props }, ref) => (<DialogPortal><DialogOverlay /><DialogPrimitive.Contentref={ref}className={cn(- "fixed left-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 border border-neutral-150 bg-white p-6 shadow-lg duration-200 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 rounded-lg dark:border-neutral-850 dark:bg-neutral-950",+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-150 bg-white p-6 shadow-lg duration-200 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 sm:rounded-lg dark:border-neutral-850 dark:bg-neutral-950",className)}{...props}@@ -71,7 +73,7 @@ const DialogTitle = React.forwardRef<>(({ className, ...props }, ref) => (<DialogPrimitive.Titleref={ref}- className={cn("text-lg font-semibold leading-none tracking-tight mb-2", className)}+ className={cn("text-lg font-semibold leading-none tracking-tight", className)}{...props}/>));diff --git a/client/src/components/ui/drawer.tsx b/client/src/components/ui/drawer.tsxindex 88bf00365..6953350f0 100644--- a/client/src/components/ui/drawer.tsx+++ b/client/src/components/ui/drawer.tsx@@ -26,7 +26,7 @@ function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof Draw<DrawerPrimitive.Overlaydata-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",+ "fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",className)}{...props}@@ -41,7 +41,7 @@ function DrawerContent({ className, children, ...props }: React.ComponentProps<t<DrawerPrimitive.Contentdata-slot="drawer-content"className={cn(- "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",+ "group/drawer-content fixed z-50 flex h-auto flex-col bg-background","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","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-[95vh] 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",@@ -50,7 +50,7 @@ function DrawerContent({ className, children, ...props }: React.ComponentProps<t)}{...props}>- <div className="bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />+ <div className="mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />{children}</DrawerPrimitive.Content></DrawerPortal>@@ -78,7 +78,7 @@ function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawerreturn (<DrawerPrimitive.Titledata-slot="drawer-title"- className={cn("text-foreground font-semibold", className)}+ className={cn("font-semibold text-foreground", className)}{...props}/>);@@ -88,7 +88,7 @@ function DrawerDescription({ className, ...props }: React.ComponentProps<typeofreturn (<DrawerPrimitive.Descriptiondata-slot="drawer-description"- className={cn("text-muted-foreground text-sm", className)}+ className={cn("text-sm text-muted-foreground", className)}{...props}/>);diff --git a/client/src/components/ui/dropdown-menu.tsx b/client/src/components/ui/dropdown-menu.tsxindex eeb0e34df..10f6d8e4a 100644--- a/client/src/components/ui/dropdown-menu.tsx+++ b/client/src/components/ui/dropdown-menu.tsx@@ -11,11 +11,13 @@ const DropdownMenu = DropdownMenuPrimitive.Root;const DropdownMenuTrigger = React.forwardRef<React.ElementRef<typeof DropdownMenuPrimitive.Trigger>,- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger> & ButtonProps & { unstyled?: boolean }+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger> &+ ButtonProps & {+ unstyled?: boolean;+ }>(({ className, variant, size, unstyled, ...props }, ref) => (<DropdownMenuPrimitive.Triggerref={ref}- // className={cn(className)}className={unstyled ? className : cn(buttonVariants({ variant, size, className }))}{...props}/>@@ -39,7 +41,7 @@ const DropdownMenuSubTrigger = React.forwardRef<<DropdownMenuPrimitive.SubTriggerref={ref}className={cn(- "flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800",+ "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800",inset && "pl-8",className)}@@ -58,7 +60,7 @@ const DropdownMenuSubContent = React.forwardRef<<DropdownMenuPrimitive.SubContentref={ref}className={cn(- "z-50 min-w-32 overflow-hidden rounded-md border border-neutral-150 bg-white p-1 text-neutral-950 shadow-lg 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 dark:border-neutral-800 dark:bg-neutral-850 dark:text-neutral-50",+ "z-50 min-w-32 overflow-hidden rounded-md border border-neutral-150 bg-white p-1 text-neutral-950 shadow-lg 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 origin-[--radix-dropdown-menu-content-transform-origin] dark:border-neutral-800 dark:bg-neutral-850 dark:text-neutral-50",className)}{...props}@@ -75,8 +77,8 @@ const DropdownMenuContent = React.forwardRef<ref={ref}sideOffset={sideOffset}className={cn(- "z-50 min-w-32 rounded-lg border border-neutral-150 bg-white p-1 text-neutral-950 shadow-2xl dark:border-neutral-750 dark:bg-neutral-850 dark:text-neutral-50",- "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-[var(--radix-dropdown-menu-content-available-height)] min-w-32 overflow-y-auto overflow-x-hidden rounded-lg border border-neutral-150 bg-white p-1 text-neutral-950 shadow-2xl dark:border-neutral-750 dark:bg-neutral-850 dark:text-neutral-50",+ "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 origin-[--radix-dropdown-menu-content-transform-origin]",className)}{...props}@@ -94,7 +96,7 @@ const DropdownMenuItem = React.forwardRef<<DropdownMenuPrimitive.Itemref={ref}className={cn(- "relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",+ "relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",inset && "pl-8",className)}@@ -110,7 +112,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<<DropdownMenuPrimitive.CheckboxItemref={ref}className={cn(- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-disabled:pointer-events-none data-disabled:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",className)}checked={checked}@@ -133,7 +135,7 @@ const DropdownMenuRadioItem = React.forwardRef<<DropdownMenuPrimitive.RadioItemref={ref}className={cn(- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-disabled:pointer-events-none data-disabled:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",className)}{...props}diff --git a/client/src/components/ui/form.tsx b/client/src/components/ui/form.tsxindex b85f7ddf3..72b175df1 100644--- a/client/src/components/ui/form.tsx+++ b/client/src/components/ui/form.tsx@@ -24,7 +24,7 @@ type FormFieldContextValue<name: TName;};-const FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue);+const FormFieldContext = React.createContext<FormFieldContextValue | null>(null);const FormField = <TFieldValues extends FieldValues = FieldValues,@@ -44,12 +44,16 @@ const useFormField = () => {const itemContext = React.useContext(FormItemContext);const { getFieldState, formState } = useFormContext();- const fieldState = getFieldState(fieldContext.name, formState);-if (!fieldContext) {throw new Error("useFormField should be used within <FormField>");}+ if (!itemContext) {+ throw new Error("useFormField should be used within <FormItem>");+ }++ const fieldState = getFieldState(fieldContext.name, formState);+const { id } = itemContext;return {@@ -66,7 +70,7 @@ type FormItemContextValue = {id: string;};-const FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);+const FormItemContext = React.createContext<FormItemContextValue | null>(null);const FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => {@@ -74,7 +78,7 @@ const FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElreturn (<FormItemContext.Provider value={{ id }}>- <div ref={ref} className={cn("space-y-1", className)} {...props} />+ <div ref={ref} className={cn("space-y-2", className)} {...props} /></FormItemContext.Provider>);}@@ -90,7 +94,7 @@ const FormLabel = React.forwardRef<return (<Labelref={ref}- className={cn(className)}+ className={cn(error && "text-red-600 dark:text-red-400", className)}htmlFor={formItemId}{...props}/>@@ -144,7 +148,7 @@ const FormMessage = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<<pref={ref}id={formMessageId}- className={cn("text-[0.8rem] font-medium text-red-500 dark:text-red-400", className)}+ className={cn("text-[0.8rem] font-medium text-red-600 dark:text-red-400", className)}{...props}>{body}diff --git a/client/src/components/ui/input.tsx b/client/src/components/ui/input.tsxindex effd892c1..887b900e5 100644--- a/client/src/components/ui/input.tsx+++ b/client/src/components/ui/input.tsx@@ -20,8 +20,7 @@ const inputVariants = cva();export interface InputProps- extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">,- VariantProps<typeof inputVariants> {+ extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {isSearch?: boolean;}@@ -30,7 +29,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(if (isSearch) {return (<div className="relative">- <Search className="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-neutral-400" />+ <Search className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-neutral-400" /><input type={type} className={cn(inputVariants({ inputSize }), "pl-9", className)} ref={ref} {...props} /></div>);diff --git a/client/src/components/ui/label.tsx b/client/src/components/ui/label.tsxindex 767c9a9da..865e504b6 100644--- a/client/src/components/ui/label.tsx+++ b/client/src/components/ui/label.tsx@@ -6,9 +6,7 @@ import { cva, type VariantProps } from "class-variance-authority";import { cn } from "@/lib/utils";-const labelVariants = cva(- "text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-neutral-800 dark:text-neutral-200"-);+const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");const Label = React.forwardRef<React.ElementRef<typeof LabelPrimitive.Root>,diff --git a/client/src/components/ui/navigation-menu.tsx b/client/src/components/ui/navigation-menu.tsxindex e1af44dca..0119f91c4 100644--- a/client/src/components/ui/navigation-menu.tsx+++ b/client/src/components/ui/navigation-menu.tsx@@ -35,7 +35,7 @@ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;const NavigationMenuItem = NavigationMenuPrimitive.Item;const navigationMenuTriggerStyle = cva(- "group inline-flex h-9 w-max items-center justify-center rounded-md bg-white px-4 py-2 text-sm font-medium transition-colors hover:bg-neutral-100 hover:text-neutral-900 focus:bg-neutral-100 focus:text-neutral-900 focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-neutral-100/50 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:text-neutral-200 dark:hover:text-neutral-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[state=open]:bg-neutral-800/50"+ "group inline-flex h-9 w-max items-center justify-center rounded-md bg-white px-4 py-2 text-sm font-medium transition-colors hover:bg-neutral-100 hover:text-neutral-900 focus:bg-neutral-100 focus:text-neutral-900 focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-neutral-100/50 data-[state=open]:text-neutral-900 data-[state=open]:hover:bg-neutral-100 data-[state=open]:focus:bg-neutral-100 dark:bg-neutral-950 dark:text-neutral-200 dark:hover:bg-neutral-800 dark:hover:text-neutral-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50 dark:data-[state=open]:bg-neutral-800/50 dark:data-[state=open]:text-neutral-50 dark:data-[state=open]:hover:bg-neutral-800 dark:data-[state=open]:focus:bg-neutral-800");const NavigationMenuTrigger = React.forwardRef<@@ -50,7 +50,7 @@ const NavigationMenuTrigger = React.forwardRef<{children}{""}<ChevronDown- className="relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180"+ className="relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180"aria-hidden="true"/></NavigationMenuPrimitive.Trigger>@@ -81,7 +81,7 @@ const NavigationMenuViewport = React.forwardRef<<div className={cn("absolute left-0 top-full flex justify-center")}><NavigationMenuPrimitive.ViewportclassName={cn(- "origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border border-neutral-150 bg-white text-neutral-950 shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width) dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",+ "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border border-neutral-150 bg-white text-neutral-950 shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)] dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",className)}ref={ref}@@ -98,7 +98,7 @@ const NavigationMenuIndicator = React.forwardRef<<NavigationMenuPrimitive.Indicatorref={ref}className={cn(- "top-full z-1 flex h-1.5 items-end justify-center overflow-hidden 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 data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",className)}{...props}diff --git a/client/src/components/ui/popover.tsx b/client/src/components/ui/popover.tsxindex 91b0e242d..9faf53ddc 100644--- a/client/src/components/ui/popover.tsx+++ b/client/src/components/ui/popover.tsx@@ -21,7 +21,7 @@ const PopoverContent = React.forwardRef<align={align}sideOffset={sideOffset}className={cn(- "z-50 w-72 rounded-lg border border-neutral-150 bg-white p-4 text-neutral-950 shadow-xl outline-none 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 dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-50",+ "z-50 w-72 rounded-md border border-neutral-150 bg-white p-4 text-neutral-950 shadow-md outline-none 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 origin-[--radix-popover-content-transform-origin] dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-50",className)}{...props}diff --git a/client/src/components/ui/progress.tsx b/client/src/components/ui/progress.tsxindex b529ad706..efd7f1780 100644--- a/client/src/components/ui/progress.tsx+++ b/client/src/components/ui/progress.tsx@@ -15,7 +15,7 @@ const Progress = React.forwardRef<{...props}><ProgressPrimitive.Indicator- className="h-full w-full flex-1 bg-neutral-900 transition-all dark:bg-neutral-50"+ className="h-full w-full flex-1 bg-accent-500 transition-all"style={{ transform: `translateX(-${100 - (value || 0)}%)` }}/></ProgressPrimitive.Root>diff --git a/client/src/components/ui/radio-group.tsx b/client/src/components/ui/radio-group.tsxindex 6a17cc389..d18f2aeda 100644--- a/client/src/components/ui/radio-group.tsx+++ b/client/src/components/ui/radio-group.tsx@@ -2,32 +2,37 @@import * as React from "react";import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";-import { CircleIcon } from "lucide-react";+import { Circle } from "lucide-react";import { cn } from "@/lib/utils";-function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {- return <RadioGroupPrimitive.Root data-slot="radio-group" className={cn("grid gap-3", className)} {...props} />;-}+const RadioGroup = React.forwardRef<+ React.ElementRef<typeof RadioGroupPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>+>(({ className, ...props }, ref) => {+ return <RadioGroupPrimitive.Root className={cn("grid gap-2", className)} {...props} ref={ref} />;+});+RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;-function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {+const RadioGroupItem = React.forwardRef<+ React.ElementRef<typeof RadioGroupPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>+>(({ className, ...props }, ref) => {return (<RadioGroupPrimitive.Item- data-slot="radio-group-item"+ ref={ref}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 bg-white border-neutral-300 dark:bg-neutral-800 dark:border-neutral-700 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",+ "aspect-square h-4 w-4 rounded-full border border-neutral-200 text-neutral-950 shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:text-neutral-50 dark:focus-visible:ring-neutral-300",className)}{...props}>- <RadioGroupPrimitive.Indicator- data-slot="radio-group-indicator"- className="relative flex items-center justify-center"- >- <CircleIcon className="fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" />+ <RadioGroupPrimitive.Indicator className="flex items-center justify-center">+ <Circle className="h-3.5 w-3.5 fill-primary" /></RadioGroupPrimitive.Indicator></RadioGroupPrimitive.Item>);-}+});+RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;export { RadioGroup, RadioGroupItem };diff --git a/client/src/components/ui/scroll-area.tsx b/client/src/components/ui/scroll-area.tsxindex a41e673fe..28d668f4f 100644--- a/client/src/components/ui/scroll-area.tsx+++ b/client/src/components/ui/scroll-area.tsx@@ -1,13 +1,13 @@"use client";import * as React from "react";-import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";import { cn } from "@/lib/utils";import { useTouchPrimary } from "./hooks/useTouchPrimary";const ScrollAreaContext = React.createContext<boolean>(false);+type Mask = {top: boolean;bottom: boolean;@@ -19,11 +19,6 @@ const ScrollArea = React.forwardRef<React.ComponentRef<typeof ScrollAreaPrimitive.Root>,React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & {viewportClassName?: string;- /**- * `maskHeight` is the height of the mask in pixels.- * pass `0` to disable the mask- * @default 30- */maskHeight?: number;maskClassName?: string;}@@ -42,6 +37,7 @@ const ScrollArea = React.forwardRef<if (!element) return;const { scrollTop, scrollLeft, scrollWidth, clientWidth, scrollHeight, clientHeight } = element;+setShowMask(prev => ({...prev,top: scrollTop > 0,@@ -62,8 +58,6 @@ const ScrollArea = React.forwardRef<element.addEventListener("scroll", checkScrollability);window.addEventListener("resize", checkScrollability);-- // Run an initial check whenever dependencies change (including pointer mode)checkScrollability();return () => {diff --git a/client/src/components/ui/select.tsx b/client/src/components/ui/select.tsxindex eefec6ace..6b4d0dee7 100644--- a/client/src/components/ui/select.tsx+++ b/client/src/components/ui/select.tsx@@ -21,7 +21,7 @@ const SelectTrigger = React.forwardRef<<SelectPrimitive.Triggerref={ref}className={cn(- "flex w-full items-center justify-between whitespace-nowrap rounded-lg border border-neutral-150 bg-white px-3 text-sm ring-offset-white placeholder:text-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-950 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 dark:border-neutral-800 dark:bg-neutral-900/70 dark:ring-offset-neutral-950 dark:placeholder:text-neutral-400 dark:focus:ring-neutral-300",+ "flex w-full items-center justify-between whitespace-nowrap rounded-lg border border-neutral-150 bg-white px-3 text-sm ring-offset-white data-[placeholder]:text-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-950 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 dark:border-neutral-800 dark:bg-neutral-900/70 dark:ring-offset-neutral-950 dark:data-[placeholder]:text-neutral-400 dark:focus:ring-neutral-300",size === "default" && "h-9 py-2",size === "sm" && "h-7 py-1 px-2 text-xs",className@@ -74,7 +74,7 @@ const SelectContent = React.forwardRef<<SelectPrimitive.Contentref={ref}className={cn(- "relative z-50 max-h-96 overflow-hidden rounded-md border border-neutral-150 bg-white text-neutral-950 shadow-md 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 dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-50",+ "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-neutral-150 bg-white text-neutral-950 shadow-md 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 origin-[--radix-select-content-transform-origin] dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-50",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",size === "sm" && "text-xs",@@ -110,7 +110,7 @@ const SelectLabel = React.forwardRef<className={cn("px-2 py-1.5 font-semibold",size === "default" && "text-sm",- size === "sm" && "text-xs py-1",+ size === "sm" && "py-1 text-xs",className)}{...props}@@ -127,7 +127,7 @@ const SelectItem = React.forwardRef<<SelectPrimitive.Itemref={ref}className={cn(- "relative flex w-full cursor-default select-none items-center rounded-sm pl-2 pr-8 outline-none focus:bg-neutral-100 focus:text-neutral-900 data-disabled:pointer-events-none data-disabled:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",+ "relative flex w-full cursor-default select-none items-center rounded-sm pl-2 pr-8 outline-none focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50",size === "default" && "py-1.5 text-sm",size === "sm" && "py-1 text-xs",classNamediff --git a/client/src/components/ui/separator.tsx b/client/src/components/ui/separator.tsxindex 79814581b..a5eb8ecc9 100644--- a/client/src/components/ui/separator.tsx+++ b/client/src/components/ui/separator.tsx@@ -15,7 +15,7 @@ const Separator = React.forwardRef<orientation={orientation}className={cn("shrink-0 bg-neutral-200 dark:bg-neutral-800",- orientation === "horizontal" ? "h-px w-full" : "h-full w-px",+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",className)}{...props}diff --git a/client/src/components/ui/sheet.tsx b/client/src/components/ui/sheet.tsxindex 90d9b9ba6..2c066fb87 100644--- a/client/src/components/ui/sheet.tsx+++ b/client/src/components/ui/sheet.tsx@@ -31,14 +31,14 @@ const SheetOverlay = React.forwardRef<SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;const sheetVariants = cva(- "fixed z-50 gap-4 bg-white p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out dark:bg-neutral-950",+ "fixed z-50 gap-4 bg-white p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out dark:bg-neutral-950",{variants: {side: {top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",- left: "inset-y-0 left-0 h-full w-3/4 border-r border-neutral-800 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",},@@ -50,26 +50,26 @@ const sheetVariants = cva();interface SheetContentProps- extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,- VariantProps<typeof sheetVariants> { }+ extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {+ showClose?: boolean;+}-const SheetContent = React.forwardRef<- React.ElementRef<typeof SheetPrimitive.Content>,- SheetContentProps & { showClose?: boolean }->(({ side = "right", className, children, showClose = true, ...props }, ref) => (- <SheetPortal>- <SheetOverlay />- <SheetPrimitive.Content ref={ref} className={cn(sheetVariants({ side }), className)} {...props}>- {showClose && (- <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800">- <X className="h-4 w-4" />- <span className="sr-only">Close</span>- </SheetPrimitive.Close>- )}- {children}- </SheetPrimitive.Content>- </SheetPortal>-));+const SheetContent = React.forwardRef<React.ElementRef<typeof SheetPrimitive.Content>, SheetContentProps>(+ ({ side = "right", className, children, showClose = true, ...props }, ref) => (+ <SheetPortal>+ <SheetOverlay />+ <SheetPrimitive.Content ref={ref} className={cn(sheetVariants({ side }), className)} {...props}>+ {showClose && (+ <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800">+ <X className="h-4 w-4" />+ <span className="sr-only">Close</span>+ </SheetPrimitive.Close>+ )}+ {children}+ </SheetPrimitive.Content>+ </SheetPortal>+ )+);SheetContent.displayName = SheetPrimitive.Content.displayName;const SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (diff --git a/client/src/components/ui/slider.tsx b/client/src/components/ui/slider.tsxindex f9ccbfa13..8346a4cfd 100644--- a/client/src/components/ui/slider.tsx+++ b/client/src/components/ui/slider.tsx@@ -14,10 +14,10 @@ const Slider = React.forwardRef<className={cn("relative flex w-full touch-none select-none items-center", className)}{...props}>- <SliderPrimitive.Track className="relative h-1.5 w-full grow overflow-hidden rounded-full bg-neutral-900/20 dark:bg-neutral-50/20">- <SliderPrimitive.Range className="absolute h-full bg-neutral-900 dark:bg-neutral-50" />+ <SliderPrimitive.Track className="relative h-1.5 w-full grow overflow-hidden rounded-full bg-neutral-200 dark:bg-neutral-800">+ <SliderPrimitive.Range className="absolute h-full bg-accent-500" /></SliderPrimitive.Track>- <SliderPrimitive.Thumb className="block h-4 w-4 rounded-full border border-neutral-200 border-neutral-900/50 bg-white shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:pointer-events-none disabled:opacity-50 dark:border-neutral-500 dark:bg-neutral-500 dark:focus-visible:ring-neutral-300" />+ <SliderPrimitive.Thumb className="block h-4 w-4 rounded-full border border-neutral-200 bg-white shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:pointer-events-none disabled:opacity-50 dark:border-neutral-800 dark:bg-neutral-950 dark:focus-visible:ring-neutral-300" /></SliderPrimitive.Root>));Slider.displayName = SliderPrimitive.Root.displayName;diff --git a/client/src/components/ui/sonner.tsx b/client/src/components/ui/sonner.tsxindex c17baed0a..3791699a9 100644--- a/client/src/components/ui/sonner.tsx+++ b/client/src/components/ui/sonner.tsx@@ -31,18 +31,15 @@ const Toaster = () => {);};-const toast = Object.assign(- (message: string) => hotToast(message),- {- success: (message: string) => hotToast.success(message),- error: (message: string) => hotToast.error(message),- info: (message: string) =>- hotToast(message, {- icon: "ℹ️",- }),- dismiss: (id?: string) => hotToast.dismiss(id),- custom: hotToast.custom,- }-);+const toast = Object.assign((message: string) => hotToast(message), {+ success: (message: string) => hotToast.success(message),+ error: (message: string) => hotToast.error(message),+ info: (message: string) =>+ hotToast(message, {+ icon: "i",+ }),+ dismiss: (id?: string) => hotToast.dismiss(id),+ custom: hotToast.custom,+});export { Toaster, toast };diff --git a/client/src/components/ui/table.tsx b/client/src/components/ui/table.tsxindex 6ac396f24..d3313dbc9 100644--- a/client/src/components/ui/table.tsx+++ b/client/src/components/ui/table.tsx@@ -84,9 +84,7 @@ const TableCaption = React.forwardRef<HTMLTableCaptionElement, React.HTMLAttribuTableCaption.displayName = "TableCaption";interface TableSortIndicatorProps {- /** The current sort direction: 'asc', 'desc', or false/undefined for unsorted */sortDirection?: false | "asc" | "desc";- /** Whether sorting is enabled for this column */canSort?: boolean;className?: string;}diff --git a/client/src/components/ui/tabs.tsx b/client/src/components/ui/tabs.tsxindex 45c278a19..f64a8e039 100644--- a/client/src/components/ui/tabs.tsx+++ b/client/src/components/ui/tabs.tsx@@ -29,7 +29,7 @@ const TabsTrigger = React.forwardRef<<TabsPrimitive.Triggerref={ref}className={cn(- "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-neutral-950 data-[state=active]:shadow dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300 dark:data-[state=active]:bg-neutral-900 dark:data-[state=active]:text-neutral-50",+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-neutral-950 data-[state=active]:shadow dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300 dark:data-[state=active]:bg-neutral-950 dark:data-[state=active]:text-neutral-50",className)}{...props}diff --git a/client/src/components/ui/tooltip.tsx b/client/src/components/ui/tooltip.tsxindex 851755f64..4a4bcd045 100644--- a/client/src/components/ui/tooltip.tsx+++ b/client/src/components/ui/tooltip.tsx@@ -22,7 +22,7 @@ const TooltipContent = React.forwardRef<ref={ref}sideOffset={sideOffset}className={cn(- "z-50 overflow-hidden shadow-lg rounded-md bg-white border border-neutral-100 px-2 py-2 text-xs text-neutral-900 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 dark:bg-neutral-800 dark:border-neutral-750 dark:text-neutral-50",+ "z-50 overflow-hidden rounded-md border border-neutral-100 bg-white px-2 py-2 text-xs text-neutral-900 shadow-lg 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 origin-[--radix-tooltip-content-transform-origin] dark:border-neutral-750 dark:bg-neutral-800 dark:text-neutral-50",className)}{...props}diff --git a/server/src/lib/cors.test.ts b/server/src/lib/cors.test.tsindex 75a6186f0..bb4ab21e2 100644--- a/server/src/lib/cors.test.ts+++ b/server/src/lib/cors.test.ts@@ -166,6 +166,29 @@ describe("CORS policy", () => {await app.close();}});++ it("allows credentialed session-list requests from the dashboard origin", async () => {+ const app = await buildCorsTestApp({+ NODE_ENV: "production",+ BASE_URL: "https://demo.rybbit.com",+ });++ try {+ const res = await app.inject({+ method: "GET",+ url: "/api/sites/81/sessions?past_minutes_start=240&past_minutes_end=0&filters=[]&page=1&limit=100",+ headers: {+ origin: "https://demo.rybbit.com",+ },+ });++ expect(res.statusCode).toBe(200);+ expect(res.headers["access-control-allow-origin"]).toBe("https://demo.rybbit.com");+ expect(res.headers["access-control-allow-credentials"]).toBe("true");+ } finally {+ await app.close();+ }+ });});describe("trusted CORS origins", () => {diff --git a/server/src/lib/cors.ts b/server/src/lib/cors.tsindex 4c6e3d51d..39b7e29bc 100644--- a/server/src/lib/cors.ts+++ b/server/src/lib/cors.ts@@ -106,10 +106,15 @@ export function getCorsOptionsForRequest(}if (isPublicCorsPath(getRequestPath(request))) {+ // These paths are reachable from any origin (e.g. embedded widgets), but they+ // are also hit by the authenticated dashboard, which sends cookies. Reflect any+ // origin, but only allow credentials for trusted origins so the dashboard's+ // credentialed requests get `Access-Control-Allow-Credentials: true` while+ // arbitrary embed origins stay credential-less.return {...commonCorsOptions,origin: true,- credentials: false,+ credentials: getTrustedCorsOrigins(env).includes(requestOrigin),};}