Create polished demo videos without editing skills. Mac/Windows/Linux
Migrate Recordly UI to HeroUI with docked editor styling
webadderall160a2cba5dd1
diff --git a/.gitignore b/.gitignoreindex 3784c0cf..de89bad2 100644--- a/.gitignore+++ b/.gitignore@@ -45,3 +45,7 @@ electron/native/bin/*/whisper-runtime.jsontmp-*.ps1.tmp-*.ps1gpu-export-probe.mp4++# Browser test output+test-results/+playwright-report/diff --git a/components.json b/components.jsondeleted file mode 100644index f6dc1d59..00000000--- a/components.json+++ /dev/null@@ -1,22 +0,0 @@-{- "$schema": "https://ui.shadcn.com/schema.json",- "style": "new-york",- "rsc": false,- "tsx": true,- "tailwind": {- "config": "tailwind.config.cjs",- "css": "src/index.css",- "baseColor": "stone",- "cssVariables": true,- "prefix": ""- },- "iconLibrary": "lucide",- "aliases": {- "components": "@/components",- "utils": "@/lib/utils",- "ui": "@/components/ui",- "lib": "@/lib",- "hooks": "@/hooks"- },- "registries": {}-}diff --git a/docs/HEROUI_MIGRATION.md b/docs/HEROUI_MIGRATION.mdnew file mode 100644index 00000000..fab0c125--- /dev/null+++ b/docs/HEROUI_MIGRATION.md@@ -0,0 +1,69 @@+# HeroUI UI branch++This migration is isolated on `codex/heroui-ui`, based on `9693ad7` from+`codex/clip-controls`. It lives in the sibling `recordly-heroui` Git worktree.+The original `recordly` checkout and its uncommitted files were left intact.+Nothing has been merged or pushed.++## Try it++From the original checkout:++```sh+cd ../recordly-heroui+npm run dev+```++A fresh checkout needs `npm install` first, including Recordly's normal native+helper installation. The dependency lockfile belongs to this branch.++To go back, close the development app and run `npm run dev` from the original+`recordly` directory. No reset, stash, or file restoration is needed. You can+keep both checkouts while comparing them. If this commit is merged later,+`git revert <migration-commit>` reverses the migration without rewriting history.++## UI approach++The controls use HeroUI React 3.2.6 and its default light/dark theme, following+[the official component demos](https://heroui.com/en/docs/react/components).+This includes buttons, fields, switches, sliders, tabs, toggle groups, radios,+selects, modals, popovers, menus, tooltips, color pickers, progress indicators,+skeletons, and toasts. React 19 and Tailwind 4 satisfy HeroUI v3 requirements.+The former Radix, Sonner, and third-party color picker dependencies are removed.++The editor uses docked surfaces, a fixed-width inspector, aligned toolbars,+consistent spacing, and restrained selection colors. Floating layers keep one+surface instead of nesting cards and shadows. Timeline colors follow the theme+and retain the distinction between clip types. The recorder keeps its compact+desktop layout.++The adapters in `src/components/ui` translate existing Recordly state/callback+props to HeroUI APIs. The timeline geometry, crop handles, video canvas, caption+canvas editor, waveform, and native file inputs remain application-specific;+HeroUI does not replace those editing engines. Recording/export/project logic+is retained, with nullable ref types updated for React 19.++## Verification++```sh+npm run typecheck+npm test+npx vite build+npx playwright install chromium+npm run test:ui+```++The production build includes both the renderer and Electron main/preload+bundles. It is not an installer packaging run.++Browser tests use an explicit mocked Electron bridge and a generated six-second+video fixture; they never start a real screen recording. They cover control+callbacks and keyboard behavior, modal focus, export settings, presets, cropping,+annotation formatting/undo, project menus, recorder popovers, countdown and update+windows, theme switching, and a smaller desktop layout. Screenshots and failure+traces go to the ignored `test-results/` directory.++`npm run dev:ui` starts only Vite for browser inspection; the component fixture+is at `/tests/ui/controls.html`. The real editor requires Electron or the test+bridge. Native recording, device permissions, and end-to-end media export still+need a desktop smoke test on the target platform.diff --git a/package-lock.json b/package-lock.jsonindex 5ef92798..517ae301 100644--- a/package-lock.json+++ b/package-lock.json@@ -20,26 +20,15 @@"@biomejs/biome": "2.3.13","@electron/rebuild": "^4.2.0","@fix-webm-duration/fix": "^1.0.1",- "@radix-ui/react-accordion": "^1.2.12",- "@radix-ui/react-dialog": "^1.1.15",- "@radix-ui/react-dropdown-menu": "^2.1.16",- "@radix-ui/react-popover": "^1.1.15",- "@radix-ui/react-select": "^2.2.6",- "@radix-ui/react-slider": "^1.3.6",- "@radix-ui/react-slot": "^1.2.3",- "@radix-ui/react-switch": "^1.2.6",- "@radix-ui/react-tabs": "^1.1.13",- "@radix-ui/react-toggle": "^1.1.10",- "@radix-ui/react-toggle-group": "^1.1.11",+ "@heroui/react": "^3.2.6",+ "@heroui/styles": "^3.2.6",+ "@playwright/test": "^1.63.0",+ "@tailwindcss/postcss": "^4.3.3","@types/gif.js": "^0.2.5","@types/node": "^25.0.3",- "@types/react": "^18.2.64",- "@types/react-dom": "^18.2.21",- "@uiw/color-convert": "^2.9.2",- "@uiw/react-color-block": "^2.9.2",+ "@types/react": "^19.3.0",+ "@types/react-dom": "^19.3.0","@vitejs/plugin-react": "^4.2.1",- "autoprefixer": "^10.4.21",- "class-variance-authority": "^0.7.1","clsx": "^2.1.1","dnd-timeline": "^2.2.0","electron": "^43.1.0",@@ -53,14 +42,13 @@"pixi-filters": "^6.1.5","pixi.js": "^8.14.0","postcss": "^8.5.6",- "react": "^18.2.0",- "react-dom": "^18.2.0",+ "react": "^19.3.0",+ "react-dom": "^19.3.0","react-icons": "^5.5.0","react-resizable-panels": "^3.0.6","react-rnd": "^10.5.2",- "sonner": "^2.0.7","tailwind-merge": "^3.3.1",- "tailwindcss": "^3.4.18",+ "tailwindcss": "^4.3.3","tailwindcss-animate": "^1.0.7","terser": "^5.44.1","typescript": "^5.2.2",@@ -71,10 +59,57 @@"web-demuxer": "^4.0.0"}},+ "node_modules/@adobe/react-spectrum": {+ "version": "3.47.5",+ "resolved": "https://registry.npmjs.org/@adobe/react-spectrum/-/react-spectrum-3.47.5.tgz",+ "integrity": "sha512-iTbAwwMijVnQjwjwbvkWn82AyRAbFNSJzt/VawWp1vXRIxVIO9COZ1pPG5Fj88xXgqlG8maVcv58p74vqqy5HA==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@internationalized/date": "^3.12.4",+ "@react-types/shared": "^3.36.1",+ "@spectrum-icons/ui": "^3.7.2",+ "@spectrum-icons/workflow": "^4.3.2",+ "@swc/helpers": "^0.5.0",+ "client-only": "^0.0.1",+ "clsx": "^2.0.0",+ "react-aria": "3.52.1",+ "react-aria-components": "1.21.1",+ "react-stately": "3.50.0",+ "react-transition-group": "^4.4.5",+ "use-sync-external-store": "^1.6.0"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"+ }+ },+ "node_modules/@adobe/react-spectrum-ui": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@adobe/react-spectrum-ui/-/react-spectrum-ui-1.2.1.tgz",+ "integrity": "sha512-wcrbEE2O/9WnEn6avBnaVRRx88S5PLFsPLr4wffzlbMfXeQsy+RMQwaJd3cbzrn18/j04Isit7f7Emfn0dhrJA==",+ "dev": true,+ "license": "Apache-2.0",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/@adobe/react-spectrum-workflow": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@adobe/react-spectrum-workflow/-/react-spectrum-workflow-2.3.5.tgz",+ "integrity": "sha512-b53VIPwPWKb/T5gzE3qs+QlGP5gVrw/LnWV3xMksDU+CRl3rzOKUwxIGiZO8ICyYh1WiyqY4myGlPU/nAynBUg==",+ "dev": true,+ "license": "Apache-2.0",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"+ }+ },"node_modules/@alloc/quick-lru": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",- "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz",+ "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==","dev": true,"license": "MIT","engines": {@@ -344,7 +379,6 @@"integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=6.9.0"}@@ -1483,149 +1517,74 @@"tslib": "^2.3.0"}},- "node_modules/@floating-ui/core": {- "version": "1.7.3",- "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.3.tgz",- "integrity": "sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@floating-ui/utils": "^0.2.10"- }- },- "node_modules/@floating-ui/dom": {- "version": "1.7.4",- "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.4.tgz",- "integrity": "sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@floating-ui/core": "^1.7.3",- "@floating-ui/utils": "^0.2.10"- }- },- "node_modules/@floating-ui/react-dom": {- "version": "2.1.6",- "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.6.tgz",- "integrity": "sha512-4JX6rEatQEvlmgU80wZyq9RT96HZJa88q8hp0pBd+LrczeDI4o6uA2M+uvxngVHo4Ihr8uibXxH6+70zhAFrVw==",+ "node_modules/@heroui/react": {+ "version": "3.2.6",+ "resolved": "https://registry.npmjs.org/@heroui/react/-/react-3.2.6.tgz",+ "integrity": "sha512-KBhUUUdX4571SSjwpuBPEFZTYAw/tmGezTIsTnjIOlXDZkjWACfhFe6ibtReO+xTkUcfxCV1r3cF00/3OPlhhw==","dev": true,"license": "MIT","dependencies": {- "@floating-ui/dom": "^1.7.4"+ "@heroui/styles": "3.2.6",+ "@radix-ui/react-avatar": "1.2.6",+ "@react-stately/utils": "3.12.1",+ "@react-types/color": "3.2.0",+ "@react-types/shared": "3.36.1",+ "input-otp": "1.5.0",+ "tailwind-variants": "3.3.1"},"peerDependencies": {- "react": ">=16.8.0",- "react-dom": ">=16.8.0"- }- },- "node_modules/@floating-ui/utils": {- "version": "0.2.10",- "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.10.tgz",- "integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@isaacs/cliui": {- "version": "8.0.2",- "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",- "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",- "dev": true,- "license": "ISC",- "dependencies": {- "string-width": "^5.1.2",- "string-width-cjs": "npm:string-width@^4.2.0",- "strip-ansi": "^7.0.1",- "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",- "wrap-ansi": "^8.1.0",- "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/@isaacs/cliui/node_modules/ansi-regex": {- "version": "6.2.2",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",- "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ "@internationalized/date": "^3.12.4",+ "@react-aria/ssr": "^3.10.1",+ "@react-aria/utils": "^3.34.1",+ "react": ">=19.0.0",+ "react-aria": "^3.52.1",+ "react-aria-components": "^1.21.1",+ "react-dom": ">=19.0.0",+ "tailwindcss": ">=4.0.0"}},- "node_modules/@isaacs/cliui/node_modules/ansi-styles": {- "version": "6.2.3",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",- "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",+ "node_modules/@heroui/styles": {+ "version": "3.2.6",+ "resolved": "https://registry.npmjs.org/@heroui/styles/-/styles-3.2.6.tgz",+ "integrity": "sha512-feKZUphVe5+QCXnUe8kpqT5T+pPeMI3LaQcSztx08PGVTkhz0dU0C6crKvA1G4HHIPFXXon68VeL8lPjvGHsWg==","dev": true,"license": "MIT",- "engines": {- "node": ">=12"+ "dependencies": {+ "tailwind-variants": "3.3.1",+ "tw-animate-css": "1.4.0"},- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "peerDependencies": {+ "tailwindcss": ">=4.0.0"}},- "node_modules/@isaacs/cliui/node_modules/emoji-regex": {- "version": "9.2.2",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",- "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",- "dev": true,- "license": "MIT"- },- "node_modules/@isaacs/cliui/node_modules/string-width": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",- "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",+ "node_modules/@internationalized/date": {+ "version": "3.12.4",+ "resolved": "https://registry.npmjs.org/@internationalized/date/-/date-3.12.4.tgz",+ "integrity": "sha512-M1dEn4c1U1HsSlaVR8upZtSqvXrTkHDfv18H01uCSJyjVLDxnBR38v/fMxecmlwXKR4i9HeZcmgQAPE6A+aGJQ==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","dependencies": {- "eastasianwidth": "^0.2.0",- "emoji-regex": "^9.2.2",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "@swc/helpers": "^0.5.0"}},- "node_modules/@isaacs/cliui/node_modules/strip-ansi": {- "version": "7.1.2",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",- "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",+ "node_modules/@internationalized/number": {+ "version": "3.6.8",+ "resolved": "https://registry.npmjs.org/@internationalized/number/-/number-3.6.8.tgz",+ "integrity": "sha512-8UmMFia46DUt+k97zKd9fKWXcWHR+k8ae3eYzILETuT2KbIvLyOfac7zesw+sJdRAAZ7Q9pM1Mk22aXp2LD0Ig==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","dependencies": {- "ansi-regex": "^6.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ "@swc/helpers": "^0.5.0"}},- "node_modules/@isaacs/cliui/node_modules/wrap-ansi": {- "version": "8.1.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",- "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",+ "node_modules/@internationalized/string": {+ "version": "3.2.10",+ "resolved": "https://registry.npmjs.org/@internationalized/string/-/string-3.2.10.tgz",+ "integrity": "sha512-PDx6//vHSpRnHfxqMqto11zQvhsaU74O3mKv2F/0eicGZcl9NLjQmGlbHz/LsJh5tLKp4A4L7ZVTzN1/MmMTvA==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","dependencies": {- "ansi-styles": "^6.1.0",- "string-width": "^5.0.1",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ "@swc/helpers": "^0.5.0"}},"node_modules/@isaacs/fs-minipass": {@@ -1780,44 +1739,6 @@"node": ">= 10.0.0"}},- "node_modules/@nodelib/fs.scandir": {- "version": "2.1.5",- "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",- "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.stat": "2.0.5",- "run-parallel": "^1.1.9"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/@nodelib/fs.stat": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",- "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 8"- }- },- "node_modules/@nodelib/fs.walk": {- "version": "1.2.8",- "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",- "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.scandir": "2.1.5",- "fastq": "^1.6.0"- },- "engines": {- "node": ">= 8"- }- },"node_modules/@phosphor-icons/react": {"version": "2.1.10","resolved": "https://registry.npmjs.org/@phosphor-icons/react/-/react-2.1.10.tgz",@@ -1838,47 +1759,35 @@"dev": true,"license": "MIT"},- "node_modules/@pkgjs/parseargs": {- "version": "0.11.0",- "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",- "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",+ "node_modules/@playwright/test": {+ "version": "1.63.0",+ "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.63.0.tgz",+ "integrity": "sha512-oxMK4vllB9RK5NQ2l1pq1IfOf2AvnEuj/vYGDj0H2nMtmtZpKtCwt/l00GEO6xjGfpBNAvjovvYdCm50dRQkpQ==","dev": true,- "license": "MIT",- "optional": true,+ "license": "Apache-2.0",+ "dependencies": {+ "playwright": "1.63.0"+ },+ "bin": {+ "playwright": "cli.js"+ },"engines": {- "node": ">=14"+ "node": ">=20"}},- "node_modules/@radix-ui/number": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.1.tgz",- "integrity": "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==",- "dev": true,- "license": "MIT"- },- "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==",- "dev": true,- "license": "MIT"- },- "node_modules/@radix-ui/react-accordion": {- "version": "1.2.12",- "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.12.tgz",- "integrity": "sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==",+ "node_modules/@radix-ui/react-avatar": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.2.6.tgz",+ "integrity": "sha512-4ULOTJ/mqy2hT9GlWa/MFHxHSvH3nJzHnZM1waNsc5Bonv7i70aNenghXmD97S6OJ81ekXONGGt4nT1r0PfEdA==","dev": true,"license": "MIT","dependencies": {- "@radix-ui/primitive": "1.1.3",- "@radix-ui/react-collapsible": "1.1.12",- "@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-controllable-state": "1.2.2"+ "@radix-ui/primitive": "1.1.7",+ "@radix-ui/react-context": "1.2.2",+ "@radix-ui/react-primitive": "2.1.10",+ "@radix-ui/react-use-callback-ref": "1.1.4",+ "@radix-ui/react-use-is-hydrated": "0.1.3",+ "@radix-ui/react-use-layout-effect": "1.1.4"},"peerDependencies": {"@types/react": "*",@@ -1895,72 +1804,53 @@}}},- "node_modules/@radix-ui/react-arrow": {+ "node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/primitive": {"version": "1.1.7",- "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.7.tgz",- "integrity": "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.7.tgz",+ "integrity": "sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.5.tgz",+ "integrity": "sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==","dev": true,"license": "MIT",- "dependencies": {- "@radix-ui/react-primitive": "2.1.3"- },"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"+ "react": "^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-collapsible": {- "version": "1.1.12",- "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.12.tgz",- "integrity": "sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA==",+ "node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.2.2.tgz",+ "integrity": "sha512-RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==","dev": true,"license": "MIT",- "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-id": "1.1.1",- "@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-layout-effect": "1.1.1"- },"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"+ "react": "^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-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==",+ "node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive": {+ "version": "2.1.10",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.10.tgz",+ "integrity": "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==","dev": true,"license": "MIT","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-slot": "1.3.3"},"peerDependencies": {"@types/react": "*",@@ -1977,12 +1867,15 @@}}},- "node_modules/@radix-ui/react-compose-refs": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",- "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",+ "node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.3.tgz",+ "integrity": "sha512-qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==","dev": true,"license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.5"+ },"peerDependencies": {"@types/react": "*","react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"@@ -1993,10 +1886,10 @@}}},- "node_modules/@radix-ui/react-context": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",- "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",+ "node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.4.tgz",+ "integrity": "sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==","dev": true,"license": "MIT","peerDependencies": {@@ -2009,47 +1902,26 @@}}},- "node_modules/@radix-ui/react-dialog": {- "version": "1.1.15",- "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.15.tgz",- "integrity": "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==",+ "node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.4.tgz",+ "integrity": "sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==","dev": true,"license": "MIT",- "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-dismissable-layer": "1.1.11",- "@radix-ui/react-focus-guards": "1.1.3",- "@radix-ui/react-focus-scope": "1.1.7",- "@radix-ui/react-id": "1.1.1",- "@radix-ui/react-portal": "1.1.9",- "@radix-ui/react-presence": "1.1.5",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-slot": "1.2.3",- "@radix-ui/react-use-controllable-state": "1.2.2",- "aria-hidden": "^1.2.4",- "react-remove-scroll": "^2.6.3"- },"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"+ "react": "^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-direction": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",- "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==",+ "node_modules/@radix-ui/react-use-is-hydrated": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-is-hydrated/-/react-use-is-hydrated-0.1.3.tgz",+ "integrity": "sha512-umO/aJ+82CpOnhDZUTbILCQf7kU/g0iv+oGs/Q8jw7IkhWBzaEP4sA268PhFAJTFetbwp3ICc6ktpI4TqtxcIw==","dev": true,"license": "MIT","peerDependencies": {@@ -2062,731 +1934,145 @@}}},- "node_modules/@radix-ui/react-dismissable-layer": {- "version": "1.1.11",- "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.11.tgz",- "integrity": "sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==",+ "node_modules/@react-aria/color": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/@react-aria/color/-/color-3.2.1.tgz",+ "integrity": "sha512-v/pZh1yBNeayQ5Kio0xRIX0gBf6uu+KjCRW4QSydTyRpmhvk6sMzHT9i9/vIMdaDHaYHBXlXF+Tp/mvS9CG4Zw==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","dependencies": {- "@radix-ui/primitive": "1.1.3",- "@radix-ui/react-compose-refs": "1.1.2",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-use-callback-ref": "1.1.1",- "@radix-ui/react-use-escape-keydown": "1.1.1"+ "@swc/helpers": "^0.5.0",+ "react-aria": "^3.48.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- }+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},- "node_modules/@radix-ui/react-dropdown-menu": {- "version": "2.1.16",- "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.16.tgz",- "integrity": "sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==",+ "node_modules/@react-aria/ssr": {+ "version": "3.10.1",+ "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.10.1.tgz",+ "integrity": "sha512-jn038/ZYmu6DpfXJ6r2U9zFFppjbc9wnApPJSCxao2RZVEqep4YyoniHSy8qv6V21/xyS4IV7W9a+X2jOjSuag==","dev": true,- "license": "MIT",+ "license": "Apache-2.0",+ "peer": true,"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-id": "1.1.1",- "@radix-ui/react-menu": "2.1.16",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-use-controllable-state": "1.2.2"+ "@swc/helpers": "^0.5.0",+ "react-aria": "^3.48.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"+ "engines": {+ "node": ">= 12"},- "peerDependenciesMeta": {- "@types/react": {- "optional": true- },- "@types/react-dom": {- "optional": true- }+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},- "node_modules/@radix-ui/react-focus-guards": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.3.tgz",- "integrity": "sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==",+ "node_modules/@react-aria/utils": {+ "version": "3.34.1",+ "resolved": "https://registry.npmjs.org/@react-aria/utils/-/utils-3.34.1.tgz",+ "integrity": "sha512-H6+rGZL+0f58bBNaUMfctEnT+NogqwAk+nHiB8sR3K+YlQ37GTuCijy2U/pPvQtFMS5mURrjZeBH5JNNXsx14A==","dev": true,- "license": "MIT",- "peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@swc/helpers": "^0.5.0",+ "react-aria": "^3.48.0",+ "react-stately": "^3.46.0"},- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},- "node_modules/@radix-ui/react-focus-scope": {- "version": "1.1.7",- "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.7.tgz",- "integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==",+ "node_modules/@react-spectrum/color": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/@react-spectrum/color/-/color-3.2.1.tgz",+ "integrity": "sha512-FbB+GaVufsN+obNJmUAe8XGZTeJjEWvEf/k/7nxDxoDCBdg/o6eEPONAZyID5Dj1f8BZKNym8VURxDZx7IIyuQ==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","dependencies": {- "@radix-ui/react-compose-refs": "1.1.2",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-use-callback-ref": "1.1.1"+ "@adobe/react-spectrum": "^3.47.0",+ "@swc/helpers": "^0.5.0",+ "react-stately": "^3.46.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- }+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},- "node_modules/@radix-ui/react-id": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",- "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==",+ "node_modules/@react-spectrum/provider": {+ "version": "3.11.1",+ "resolved": "https://registry.npmjs.org/@react-spectrum/provider/-/provider-3.11.1.tgz",+ "integrity": "sha512-TsoNdVdmlQ7L+75ILq5Yb3+wp/I1AtIeat0o+Y+ZBxP+TtWpwT1ZtCB5l3cplFVzHzOpZlzO0VaDrDP9ElGYDw==","dev": true,- "license": "MIT",+ "license": "Apache-2.0",+ "peer": true,"dependencies": {- "@radix-ui/react-use-layout-effect": "1.1.1"+ "@adobe/react-spectrum": "^3.47.0",+ "@swc/helpers": "^0.5.0"},"peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"+ }+ },+ "node_modules/@react-stately/color": {+ "version": "3.10.1",+ "resolved": "https://registry.npmjs.org/@react-stately/color/-/color-3.10.1.tgz",+ "integrity": "sha512-v4YlLa/oRQpPa/M9Yq1e0Bl8Z7xzGZdNDAIbfIMZuiJtacaOKriPW+AOgjjT/Ab0fNX2YDbwIYvkiMOJBnTi5A==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@swc/helpers": "^0.5.0",+ "react-stately": "^3.46.0"},- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},- "node_modules/@radix-ui/react-menu": {- "version": "2.1.16",- "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.16.tgz",- "integrity": "sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==",- "dev": true,- "license": "MIT",- "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-dismissable-layer": "1.1.11",- "@radix-ui/react-focus-guards": "1.1.3",- "@radix-ui/react-focus-scope": "1.1.7",- "@radix-ui/react-id": "1.1.1",- "@radix-ui/react-popper": "1.2.8",- "@radix-ui/react-portal": "1.1.9",- "@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-slot": "1.2.3",- "@radix-ui/react-use-callback-ref": "1.1.1",- "aria-hidden": "^1.2.4",- "react-remove-scroll": "^2.6.3"+ "node_modules/@react-stately/utils": {+ "version": "3.12.1",+ "resolved": "https://registry.npmjs.org/@react-stately/utils/-/utils-3.12.1.tgz",+ "integrity": "sha512-NqKfzrknpfwiewx7R2vk1P+CneClInPDsIhw15+jOcUYSEfej0nta4cJywuKQJ2gsPwqX/ojDNixedCve9FWGw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@swc/helpers": "^0.5.0",+ "react-stately": "^3.46.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-popover": {- "version": "1.1.15",- "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.1.15.tgz",- "integrity": "sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==",- "dev": true,- "license": "MIT",- "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-dismissable-layer": "1.1.11",- "@radix-ui/react-focus-guards": "1.1.3",- "@radix-ui/react-focus-scope": "1.1.7",- "@radix-ui/react-id": "1.1.1",- "@radix-ui/react-popper": "1.2.8",- "@radix-ui/react-portal": "1.1.9",- "@radix-ui/react-presence": "1.1.5",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-slot": "1.2.3",- "@radix-ui/react-use-controllable-state": "1.2.2",- "aria-hidden": "^1.2.4",- "react-remove-scroll": "^2.6.3"- },- "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-popper": {- "version": "1.2.8",- "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.2.8.tgz",- "integrity": "sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@floating-ui/react-dom": "^2.0.0",- "@radix-ui/react-arrow": "1.1.7",- "@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-use-callback-ref": "1.1.1",- "@radix-ui/react-use-layout-effect": "1.1.1",- "@radix-ui/react-use-rect": "1.1.1",- "@radix-ui/react-use-size": "1.1.1",- "@radix-ui/rect": "1.1.1"- },- "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-portal": {- "version": "1.1.9",- "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.9.tgz",- "integrity": "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-use-layout-effect": "1.1.1"- },- "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-presence": {- "version": "1.1.5",- "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.5.tgz",- "integrity": "sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/react-compose-refs": "1.1.2",- "@radix-ui/react-use-layout-effect": "1.1.1"- },- "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-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==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/react-slot": "1.2.3"- },- "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-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==",- "dev": true,- "license": "MIT",- "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"- },- "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-select": {- "version": "2.2.6",- "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.2.6.tgz",- "integrity": "sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/number": "1.1.1",- "@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-dismissable-layer": "1.1.11",- "@radix-ui/react-focus-guards": "1.1.3",- "@radix-ui/react-focus-scope": "1.1.7",- "@radix-ui/react-id": "1.1.1",- "@radix-ui/react-popper": "1.2.8",- "@radix-ui/react-portal": "1.1.9",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-slot": "1.2.3",- "@radix-ui/react-use-callback-ref": "1.1.1",- "@radix-ui/react-use-controllable-state": "1.2.2",- "@radix-ui/react-use-layout-effect": "1.1.1",- "@radix-ui/react-use-previous": "1.1.1",- "@radix-ui/react-visually-hidden": "1.2.3",- "aria-hidden": "^1.2.4",- "react-remove-scroll": "^2.6.3"- },- "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-slider": {- "version": "1.3.6",- "resolved": "https://registry.npmjs.org/@radix-ui/react-slider/-/react-slider-1.3.6.tgz",- "integrity": "sha512-JPYb1GuM1bxfjMRlNLE+BcmBC8onfCi60Blk7OBqi2MLTFdS+8401U4uFjnwkOr49BLmXxLC6JHkvAsx5OJvHw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/number": "1.1.1",- "@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-primitive": "2.1.3",- "@radix-ui/react-use-controllable-state": "1.2.2",- "@radix-ui/react-use-layout-effect": "1.1.1",- "@radix-ui/react-use-previous": "1.1.1",- "@radix-ui/react-use-size": "1.1.1"- },- "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-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==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/react-compose-refs": "1.1.2"- },- "peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@radix-ui/react-switch": {- "version": "1.2.6",- "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.2.6.tgz",- "integrity": "sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==",- "dev": true,- "license": "MIT",- "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-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"- },- "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-tabs": {- "version": "1.1.13",- "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.13.tgz",- "integrity": "sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/primitive": "1.1.3",- "@radix-ui/react-context": "1.1.2",- "@radix-ui/react-direction": "1.1.1",- "@radix-ui/react-id": "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"- },- "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-toggle": {- "version": "1.1.10",- "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle/-/react-toggle-1.1.10.tgz",- "integrity": "sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/primitive": "1.1.3",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-use-controllable-state": "1.2.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-toggle-group": {- "version": "1.1.11",- "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle-group/-/react-toggle-group-1.1.11.tgz",- "integrity": "sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/primitive": "1.1.3",- "@radix-ui/react-context": "1.1.2",- "@radix-ui/react-direction": "1.1.1",- "@radix-ui/react-primitive": "2.1.3",- "@radix-ui/react-roving-focus": "1.1.11",- "@radix-ui/react-toggle": "1.1.10",- "@radix-ui/react-use-controllable-state": "1.2.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-use-callback-ref": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz",- "integrity": "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@radix-ui/react-use-controllable-state": {- "version": "1.2.2",- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",- "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/react-use-effect-event": "0.0.2",- "@radix-ui/react-use-layout-effect": "1.1.1"- },- "peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@radix-ui/react-use-effect-event": {- "version": "0.0.2",- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz",- "integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/react-use-layout-effect": "1.1.1"- },- "peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@radix-ui/react-use-escape-keydown": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.1.tgz",- "integrity": "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/react-use-callback-ref": "1.1.1"- },- "peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@radix-ui/react-use-layout-effect": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",- "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@radix-ui/react-use-previous": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz",- "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@radix-ui/react-use-rect": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.1.tgz",- "integrity": "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/rect": "1.1.1"- },- "peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@radix-ui/react-use-size": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz",- "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/react-use-layout-effect": "1.1.1"- },- "peerDependencies": {- "@types/react": "*",- "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},- "node_modules/@radix-ui/react-visually-hidden": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.3.tgz",- "integrity": "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==",- "dev": true,- "license": "MIT",- "dependencies": {- "@radix-ui/react-primitive": "2.1.3"- },- "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/@react-types/color": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/@react-types/color/-/color-3.2.0.tgz",+ "integrity": "sha512-beV3vz80nzZ1EuYUM7296Kyi3AHcMrbQw0qub/9yzHWVTKKc5sy/e4dCMKcWL/ArkeAyc7jDOiui190RQ4l0Fw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@react-aria/color": "^3.2.0",+ "@react-spectrum/color": "^3.2.0",+ "@react-stately/color": "^3.10.0"+ },+ "peerDependencies": {+ "@react-spectrum/provider": "^3.0.0",+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"}},- "node_modules/@radix-ui/rect": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.1.tgz",- "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==",+ "node_modules/@react-types/shared": {+ "version": "3.36.1",+ "resolved": "https://registry.npmjs.org/@react-types/shared/-/shared-3.36.1.tgz",+ "integrity": "sha512-AzsuD9OfxTOZMMvTRhlN3oHBwOmFN7tDh27LzqmHt4+uOgPhJT7ZM7/kVs/8/o0WxayMUIk3hBmCFRHv1FUoag==","dev": true,- "license": "MIT"+ "license": "Apache-2.0",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"+ }},"node_modules/@rolldown/pluginutils": {"version": "1.0.0-beta.27",@@ -2932,125 +2218,485 @@"license": "MIT","optional": true,"os": [- "linux"- ]+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.4.tgz",+ "integrity": "sha512-0G2c2lpYtbTuXo8KEJkDkClE/+/2AFPdPAbmaHoE870foRFs4pBrDehilMcrSScrN/fB/1HTaWO4bqw+ewBzMQ==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.4.tgz",+ "integrity": "sha512-teSACug1GyZHmPDv14VNbvZFX779UqWTsd7KtTM9JIZRDI5NUwYSIS30kzI8m06gOPB//jtpqlhmraQ68b5X2g==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.4.tgz",+ "integrity": "sha512-/MOEW3aHjjs1p4Pw1Xk4+3egRevx8Ji9N6HUIA1Ifh8Q+cg9dremvFCUbOX2Zebz80BwJIgCBUemjqhU5XI5Eg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.4.tgz",+ "integrity": "sha512-1HHmsRyh845QDpEWzOFtMCph5Ts+9+yllCrREuBR/vg2RogAQGGBRC8lDPrPOMnrdOJ+mt1WLMOC2Kao/UwcvA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.4.tgz",+ "integrity": "sha512-seoeZp4L/6D1MUyjWkOMRU6/iLmCU2EjbMTyAG4oIOs1/I82Y5lTeaxW0KBfkUdHAWN7j25bpkt0rjnOgAcQcA==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.4.tgz",+ "integrity": "sha512-Wi6AXf0k0L7E2gteNsNHUs7UMwCIhsCTs6+tqQ5GPwVRWMaflqGec4Sd8n6+FNFDw9vGcReqk2KzBDhCa1DLYg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.4.tgz",+ "integrity": "sha512-dtBZYjDmCQ9hW+WgEkaffvRRCKm767wWhxsFW3Lw86VXz/uJRuD438/XvbZT//B96Vs8oTA8Q4A0AfHbrxP9zw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.4.tgz",+ "integrity": "sha512-1ox+GqgRWqaB1RnyZXL8PD6E5f7YyRUJYnCqKpNzxzP0TkaUh112NDrR9Tt+C8rJ4x5G9Mk8PQR3o7Ku2RKqKA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.4.tgz",+ "integrity": "sha512-8GKr640PdFNXwzIE0IrkMWUNUomILLkfeHjXBi/nUvFlpZP+FA8BKGKpacjW6OUUHaNI6sUURxR2U2g78FOHWQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.4.tgz",+ "integrity": "sha512-AIy/jdJ7WtJ/F6EcfOb2GjR9UweO0n43jNObQMb6oGxkYTfLcnN7vYYpG+CN3lLxrQkzWnMOoNSHTW54pgbVxw==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.4.tgz",+ "integrity": "sha512-UF9KfsH9yEam0UjTwAgdK0anlQ7c8/pWPU2yVjyWcF1I1thABt6WXE47cI71pGiZ8wGvxohBoLnxM04L/wj8mQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.52.4",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.4.tgz",+ "integrity": "sha512-bf9PtUa0u8IXDVxzRToFQKsNCRz9qLYfR/MpECxl4mRoWYjAeFjgxj1XdZr2M/GNVpT05p+LgQOHopYDlUu6/w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@sindresorhus/is": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz",+ "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/is?sponsor=1"+ }+ },+ "node_modules/@spectrum-icons/ui": {+ "version": "3.7.2",+ "resolved": "https://registry.npmjs.org/@spectrum-icons/ui/-/ui-3.7.2.tgz",+ "integrity": "sha512-7IuSHO+Ck8gJUIGIXqDcDIU4R8RHRUZhlfz8AwN1rSdCEvdgp6DWYN0LDTMrWh7TN/H5hrJ7oDO/gUpR3TnBjw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@adobe/react-spectrum-ui": "1.2.1",+ "@babel/runtime": "^7.24.4",+ "@swc/helpers": "^0.5.0"+ },+ "peerDependencies": {+ "@adobe/react-spectrum": "^3.47.0",+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"+ }+ },+ "node_modules/@spectrum-icons/workflow": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/@spectrum-icons/workflow/-/workflow-4.3.2.tgz",+ "integrity": "sha512-UkVg8Kp9rInjfqtG27in9p7RWfN9JFSvZr7ZOpN2n9jkrQ1y88hZpK8dKce8lgVb7jALXtsi2p0rjyaWzO0QsA==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@adobe/react-spectrum-workflow": "2.3.5",+ "@swc/helpers": "^0.5.0"+ },+ "peerDependencies": {+ "@adobe/react-spectrum": "^3.47.0",+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"+ }+ },+ "node_modules/@swc/helpers": {+ "version": "0.5.23",+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz",+ "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.8.0"+ }+ },+ "node_modules/@szmarczak/http-timer": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",+ "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "defer-to-connect": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@tailwindcss/node": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz",+ "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/remapping": "^2.3.5",+ "enhanced-resolve": "^5.24.1",+ "jiti": "^2.7.0",+ "lightningcss": "1.32.0",+ "magic-string": "^0.30.21",+ "source-map-js": "^1.2.1",+ "tailwindcss": "4.3.3"+ }+ },+ "node_modules/@tailwindcss/oxide": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz",+ "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 20"+ },+ "optionalDependencies": {+ "@tailwindcss/oxide-android-arm64": "4.3.3",+ "@tailwindcss/oxide-darwin-arm64": "4.3.3",+ "@tailwindcss/oxide-darwin-x64": "4.3.3",+ "@tailwindcss/oxide-freebsd-x64": "4.3.3",+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3",+ "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3",+ "@tailwindcss/oxide-linux-arm64-musl": "4.3.3",+ "@tailwindcss/oxide-linux-x64-gnu": "4.3.3",+ "@tailwindcss/oxide-linux-x64-musl": "4.3.3",+ "@tailwindcss/oxide-wasm32-wasi": "4.3.3",+ "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3",+ "@tailwindcss/oxide-win32-x64-msvc": "4.3.3"+ }+ },+ "node_modules/@tailwindcss/oxide-android-arm64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz",+ "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-arm64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz",+ "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 20"+ }},- "node_modules/@rollup/rollup-linux-loong64-gnu": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.4.tgz",- "integrity": "sha512-0G2c2lpYtbTuXo8KEJkDkClE/+/2AFPdPAbmaHoE870foRFs4pBrDehilMcrSScrN/fB/1HTaWO4bqw+ewBzMQ==",+ "node_modules/@tailwindcss/oxide-darwin-x64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz",+ "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==","cpu": [- "loong64"+ "x64"],"dev": true,"license": "MIT","optional": true,"os": [- "linux"- ]+ "darwin"+ ],+ "engines": {+ "node": ">= 20"+ }},- "node_modules/@rollup/rollup-linux-ppc64-gnu": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.4.tgz",- "integrity": "sha512-teSACug1GyZHmPDv14VNbvZFX779UqWTsd7KtTM9JIZRDI5NUwYSIS30kzI8m06gOPB//jtpqlhmraQ68b5X2g==",+ "node_modules/@tailwindcss/oxide-freebsd-x64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz",+ "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==","cpu": [- "ppc64"+ "x64"],"dev": true,"license": "MIT","optional": true,"os": [- "linux"- ]+ "freebsd"+ ],+ "engines": {+ "node": ">= 20"+ }},- "node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.4.tgz",- "integrity": "sha512-/MOEW3aHjjs1p4Pw1Xk4+3egRevx8Ji9N6HUIA1Ifh8Q+cg9dremvFCUbOX2Zebz80BwJIgCBUemjqhU5XI5Eg==",+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz",+ "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==","cpu": [- "riscv64"+ "arm"],"dev": true,"license": "MIT","optional": true,"os": ["linux"- ]+ ],+ "engines": {+ "node": ">= 20"+ }},- "node_modules/@rollup/rollup-linux-riscv64-musl": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.4.tgz",- "integrity": "sha512-1HHmsRyh845QDpEWzOFtMCph5Ts+9+yllCrREuBR/vg2RogAQGGBRC8lDPrPOMnrdOJ+mt1WLMOC2Kao/UwcvA==",+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz",+ "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==","cpu": [- "riscv64"+ "arm64"],"dev": true,+ "libc": [+ "glibc"+ ],"license": "MIT","optional": true,"os": ["linux"- ]+ ],+ "engines": {+ "node": ">= 20"+ }},- "node_modules/@rollup/rollup-linux-s390x-gnu": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.4.tgz",- "integrity": "sha512-seoeZp4L/6D1MUyjWkOMRU6/iLmCU2EjbMTyAG4oIOs1/I82Y5lTeaxW0KBfkUdHAWN7j25bpkt0rjnOgAcQcA==",+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz",+ "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==","cpu": [- "s390x"+ "arm64"],"dev": true,+ "libc": [+ "musl"+ ],"license": "MIT","optional": true,"os": ["linux"- ]+ ],+ "engines": {+ "node": ">= 20"+ }},- "node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.4.tgz",- "integrity": "sha512-Wi6AXf0k0L7E2gteNsNHUs7UMwCIhsCTs6+tqQ5GPwVRWMaflqGec4Sd8n6+FNFDw9vGcReqk2KzBDhCa1DLYg==",+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz",+ "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==","cpu": ["x64"],"dev": true,+ "libc": [+ "glibc"+ ],"license": "MIT","optional": true,"os": ["linux"- ]+ ],+ "engines": {+ "node": ">= 20"+ }},- "node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.4.tgz",- "integrity": "sha512-dtBZYjDmCQ9hW+WgEkaffvRRCKm767wWhxsFW3Lw86VXz/uJRuD438/XvbZT//B96Vs8oTA8Q4A0AfHbrxP9zw==",+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz",+ "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==","cpu": ["x64"],"dev": true,+ "libc": [+ "musl"+ ],"license": "MIT","optional": true,"os": ["linux"- ]+ ],+ "engines": {+ "node": ">= 20"+ }},- "node_modules/@rollup/rollup-openharmony-arm64": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.4.tgz",- "integrity": "sha512-1ox+GqgRWqaB1RnyZXL8PD6E5f7YyRUJYnCqKpNzxzP0TkaUh112NDrR9Tt+C8rJ4x5G9Mk8PQR3o7Ku2RKqKA==",+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz",+ "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==",+ "bundleDependencies": [+ "@napi-rs/wasm-runtime",+ "@emnapi/core",+ "@emnapi/runtime",+ "@tybys/wasm-util",+ "@emnapi/wasi-threads",+ "tslib"+ ],"cpu": [- "arm64"+ "wasm32"],"dev": true,"license": "MIT","optional": true,- "os": [- "openharmony"- ]+ "dependencies": {+ "@emnapi/core": "^1.11.1",+ "@emnapi/runtime": "^1.11.1",+ "@emnapi/wasi-threads": "^1.2.2",+ "@napi-rs/wasm-runtime": "^1.1.4",+ "@tybys/wasm-util": "^0.10.2",+ "tslib": "^2.8.1"+ },+ "engines": {+ "node": ">=14.0.0"+ }},- "node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.4.tgz",- "integrity": "sha512-8GKr640PdFNXwzIE0IrkMWUNUomILLkfeHjXBi/nUvFlpZP+FA8BKGKpacjW6OUUHaNI6sUURxR2U2g78FOHWQ==",+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz",+ "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==","cpu": ["arm64"],@@ -3059,26 +2705,15 @@"optional": true,"os": ["win32"- ]- },- "node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.4.tgz",- "integrity": "sha512-AIy/jdJ7WtJ/F6EcfOb2GjR9UweO0n43jNObQMb6oGxkYTfLcnN7vYYpG+CN3lLxrQkzWnMOoNSHTW54pgbVxw==",- "cpu": [- "ia32"],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]+ "engines": {+ "node": ">= 20"+ }},- "node_modules/@rollup/rollup-win32-x64-gnu": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.4.tgz",- "integrity": "sha512-UF9KfsH9yEam0UjTwAgdK0anlQ7c8/pWPU2yVjyWcF1I1thABt6WXE47cI71pGiZ8wGvxohBoLnxM04L/wj8mQ==",+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz",+ "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==","cpu": ["x64"],@@ -3087,46 +2722,23 @@"optional": true,"os": ["win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.52.4",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.4.tgz",- "integrity": "sha512-bf9PtUa0u8IXDVxzRToFQKsNCRz9qLYfR/MpECxl4mRoWYjAeFjgxj1XdZr2M/GNVpT05p+LgQOHopYDlUu6/w==",- "cpu": [- "x64"],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@sindresorhus/is": {- "version": "4.6.0",- "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz",- "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==",- "dev": true,- "license": "MIT","engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sindresorhus/is?sponsor=1"+ "node": ">= 20"}},- "node_modules/@szmarczak/http-timer": {- "version": "4.0.6",- "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",- "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==",+ "node_modules/@tailwindcss/postcss": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.3.3.tgz",+ "integrity": "sha512-JTSZZGQi1AyKirbLN3azmjVzef92tcX7h+iSqPdaeStyFpGpDlKvvpxeOE8njhbUanbRwr3z8DyzhICWnMtQeg==","dev": true,"license": "MIT","dependencies": {- "defer-to-connect": "^2.0.0"- },- "engines": {- "node": ">=10"+ "@alloc/quick-lru": "^5.2.0",+ "@tailwindcss/node": "4.3.3",+ "@tailwindcss/oxide": "4.3.3",+ "postcss": "^8.5.16",+ "tailwindcss": "4.3.3"}},"node_modules/@types/babel__core": {@@ -3333,32 +2945,24 @@"xmlbuilder": ">=11.0.1"}},- "node_modules/@types/prop-types": {- "version": "15.7.15",- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",- "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",- "dev": true,- "license": "MIT"- },"node_modules/@types/react": {- "version": "18.3.26",- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.26.tgz",- "integrity": "sha512-RFA/bURkcKzx/X9oumPG9Vp3D3JUgus/d0b67KB0t5S/raciymilkOa66olh78MUI92QLbEJevO7rvqU/kjwKA==",+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz",+ "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==","dev": true,"license": "MIT","dependencies": {- "@types/prop-types": "*",- "csstype": "^3.0.2"+ "csstype": "^3.2.2"}},"node_modules/@types/react-dom": {- "version": "18.3.7",- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",- "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz",+ "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==","dev": true,"license": "MIT","peerDependencies": {- "@types/react": "^18.0.0"+ "@types/react": "^19.3.0"}},"node_modules/@types/responselike": {@@ -3379,72 +2983,6 @@"license": "MIT","optional": true},- "node_modules/@uiw/color-convert": {- "version": "2.9.2",- "resolved": "https://registry.npmjs.org/@uiw/color-convert/-/color-convert-2.9.2.tgz",- "integrity": "sha512-ibw9OS29S7GlL+vDwU3p5XG3vhR7XdzUecydpZbakUeg2Td6nfsnrCAX9sbLwQ73p0abO42v+V4qRaWq+7/BjQ==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://jaywcjlove.github.io/#/sponsor"- },- "peerDependencies": {- "@babel/runtime": ">=7.19.0"- }- },- "node_modules/@uiw/react-color-block": {- "version": "2.9.2",- "resolved": "https://registry.npmjs.org/@uiw/react-color-block/-/react-color-block-2.9.2.tgz",- "integrity": "sha512-0EIZTELA5pnxyMlBOFo3hrpy73db+Qeq6E+QptNfD/8izor8OvY1Uquj2VqD6gDz+iVHMELIoKxpaQ8sZR7NOg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@uiw/color-convert": "2.9.2",- "@uiw/react-color-editable-input": "2.9.2",- "@uiw/react-color-swatch": "2.9.2"- },- "funding": {- "url": "https://jaywcjlove.github.io/#/sponsor"- },- "peerDependencies": {- "@babel/runtime": ">=7.19.0",- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/@uiw/react-color-editable-input": {- "version": "2.9.2",- "resolved": "https://registry.npmjs.org/@uiw/react-color-editable-input/-/react-color-editable-input-2.9.2.tgz",- "integrity": "sha512-DY7pu12+LDRn6cxDMvsy1/quaPTxicAPz/kfODV7KBf8+Hq4rFWeJ4KS6m22IKIbQxrBQgmQG0WFJLaPeY7cPw==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://jaywcjlove.github.io/#/sponsor"- },- "peerDependencies": {- "@babel/runtime": ">=7.19.0",- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/@uiw/react-color-swatch": {- "version": "2.9.2",- "resolved": "https://registry.npmjs.org/@uiw/react-color-swatch/-/react-color-swatch-2.9.2.tgz",- "integrity": "sha512-6zBy+E9NzZR672M2wPsbbNRqKy9Wi9jOuuxxyzov1CEZp+pPX7UwMlCX6RUhKdO0PzTSPCVQmbz5bplu5vsW0w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@uiw/color-convert": "2.9.2"- },- "funding": {- "url": "https://jaywcjlove.github.io/#/sponsor"- },- "peerDependencies": {- "@babel/runtime": ">=7.19.0",- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },"node_modules/@vitejs/plugin-react": {"version": "4.7.0","resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",@@ -3693,27 +3231,6 @@"url": "https://github.com/chalk/ansi-styles?sponsor=1"}},- "node_modules/any-promise": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",- "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",- "dev": true,- "license": "MIT"- },- "node_modules/anymatch": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",- "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",- "dev": true,- "license": "ISC",- "dependencies": {- "normalize-path": "^3.0.0",- "picomatch": "^2.0.4"- },- "engines": {- "node": ">= 8"- }- },"node_modules/app-builder-bin": {"version": "5.0.0-alpha.12","resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-5.0.0-alpha.12.tgz",@@ -3936,16 +3453,6 @@"url": "https://github.com/sponsors/isaacs"}},- "node_modules/app-builder-lib/node_modules/jiti": {- "version": "2.6.1",- "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz",- "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",- "dev": true,- "license": "MIT",- "bin": {- "jiti": "lib/jiti-cli.mjs"- }- },"node_modules/app-builder-lib/node_modules/minimatch": {"version": "10.2.0","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.0.tgz",@@ -3978,13 +3485,6 @@"node": "^18.17.0 || >=20.5.0"}},- "node_modules/arg": {- "version": "5.0.2",- "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",- "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",- "dev": true,- "license": "MIT"- },"node_modules/argparse": {"version": "2.0.1","resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",@@ -4070,44 +3570,6 @@"node": ">= 4.0.0"}},- "node_modules/autoprefixer": {- "version": "10.4.21",- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.21.tgz",- "integrity": "sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/autoprefixer"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "browserslist": "^4.24.4",- "caniuse-lite": "^1.0.30001702",- "fraction.js": "^4.3.7",- "normalize-range": "^0.1.2",- "picocolors": "^1.1.1",- "postcss-value-parser": "^4.2.0"- },- "bin": {- "autoprefixer": "bin/autoprefixer"- },- "engines": {- "node": "^10 || ^12 || >=14"- },- "peerDependencies": {- "postcss": "^8.1.0"- }- },"node_modules/balanced-match": {"version": "1.0.2","resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",@@ -4146,19 +3608,6 @@"baseline-browser-mapping": "dist/cli.js"}},- "node_modules/binary-extensions": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",- "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/boolean": {"version": "3.2.0","resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz",@@ -4171,24 +3620,11 @@"node_modules/brace-expansion": {"version": "2.0.2","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",- "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0"- }- },- "node_modules/braces": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",- "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==","dev": true,"license": "MIT","dependencies": {- "fill-range": "^7.1.1"- },- "engines": {- "node": ">=8"+ "balanced-match": "^1.0.0"}},"node_modules/browserslist": {@@ -4424,16 +3860,6 @@"node": ">= 0.4"}},- "node_modules/camelcase-css": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",- "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },"node_modules/caniuse-lite": {"version": "1.0.30001749","resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001749.tgz",@@ -4517,44 +3943,6 @@"node": ">= 16"}},- "node_modules/chokidar": {- "version": "3.6.0",- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",- "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",- "dev": true,- "license": "MIT",- "dependencies": {- "anymatch": "~3.1.2",- "braces": "~3.0.2",- "glob-parent": "~5.1.2",- "is-binary-path": "~2.1.0",- "is-glob": "~4.0.1",- "normalize-path": "~3.0.0",- "readdirp": "~3.6.0"- },- "engines": {- "node": ">= 8.10.0"- },- "funding": {- "url": "https://paulmillr.com/funding/"- },- "optionalDependencies": {- "fsevents": "~2.3.2"- }- },- "node_modules/chokidar/node_modules/glob-parent": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.1"- },- "engines": {- "node": ">= 6"- }- },"node_modules/chownr": {"version": "3.0.0","resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz",@@ -4588,19 +3976,6 @@"node": ">=8"}},- "node_modules/class-variance-authority": {- "version": "0.7.1",- "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",- "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "clsx": "^2.1.1"- },- "funding": {- "url": "https://polar.sh/cva"- }- },"node_modules/cli-truncate": {"version": "2.1.0","resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz",@@ -4619,6 +3994,13 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/client-only": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",+ "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==",+ "dev": true,+ "license": "MIT"+ },"node_modules/cliui": {"version": "8.0.1","resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",@@ -4766,23 +4148,10 @@"node": ">= 8"}},- "node_modules/cssesc": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",- "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",- "dev": true,- "license": "MIT",- "bin": {- "cssesc": "bin/cssesc"- },- "engines": {- "node": ">=4"- }- },"node_modules/csstype": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",- "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==","dev": true,"license": "MIT"},@@ -4906,8 +4275,6 @@"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==","dev": true,"license": "Apache-2.0",- "optional": true,- "peer": true,"engines": {"node": ">=8"}@@ -4920,20 +4287,6 @@"license": "MIT","optional": true},- "node_modules/detect-node-es": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",- "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==",- "dev": true,- "license": "MIT"- },- "node_modules/didyoumean": {- "version": "1.2.2",- "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",- "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",- "dev": true,- "license": "Apache-2.0"- },"node_modules/dir-compare": {"version": "4.2.0","resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-4.2.0.tgz",@@ -4969,13 +4322,6 @@"node": "*"}},- "node_modules/dlv": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",- "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",- "dev": true,- "license": "MIT"- },"node_modules/dmg-builder": {"version": "26.7.0","resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-26.7.0.tgz",@@ -5070,6 +4416,17 @@"resize-observer-polyfill": "^1.5.1"}},+ "node_modules/dom-helpers": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz",+ "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.8.7",+ "csstype": "^3.0.2"+ }+ },"node_modules/dotenv": {"version": "16.6.1","resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",@@ -5121,13 +4478,6 @@"dev": true,"license": "ISC"},- "node_modules/eastasianwidth": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",- "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",- "dev": true,- "license": "MIT"- },"node_modules/ejs": {"version": "3.1.10","resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",@@ -5441,6 +4791,20 @@"once": "^1.4.0"}},+ "node_modules/enhanced-resolve": {+ "version": "5.25.1",+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.25.1.tgz",+ "integrity": "sha512-nGXts5znJzmWPu+mIE9izCOzdg63oJca2mDzGWWTth7sr4aCToKcoyFVBQwN75Ij5Pf6p510EwkTqViTRzDV+w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.3.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },"node_modules/env-paths": {"version": "2.2.1","resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",@@ -5712,36 +5076,6 @@"dev": true,"license": "MIT"},- "node_modules/fast-glob": {- "version": "3.3.3",- "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",- "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.stat": "^2.0.2",- "@nodelib/fs.walk": "^1.2.3",- "glob-parent": "^5.1.2",- "merge2": "^1.3.0",- "micromatch": "^4.0.8"- },- "engines": {- "node": ">=8.6.0"- }- },- "node_modules/fast-glob/node_modules/glob-parent": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.1"- },- "engines": {- "node": ">= 6"- }- },"node_modules/fast-json-stable-stringify": {"version": "2.1.0","resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",@@ -5749,16 +5083,6 @@"dev": true,"license": "MIT"},- "node_modules/fastq": {- "version": "1.19.1",- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",- "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",- "dev": true,- "license": "ISC",- "dependencies": {- "reusify": "^1.0.4"- }- },"node_modules/ffmpeg-static": {"version": "5.3.0","resolved": "https://registry.npmjs.org/ffmpeg-static/-/ffmpeg-static-5.3.0.tgz",@@ -5804,19 +5128,6 @@"node": ">=10"}},- "node_modules/fill-range": {- "version": "7.1.1",- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",- "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",- "dev": true,- "license": "MIT",- "dependencies": {- "to-regex-range": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/flairup": {"version": "1.0.0","resolved": "https://registry.npmjs.org/flairup/-/flairup-1.0.0.tgz",@@ -5824,23 +5135,6 @@"dev": true,"license": "MIT"},- "node_modules/foreground-child": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",- "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",- "dev": true,- "license": "ISC",- "dependencies": {- "cross-spawn": "^7.0.6",- "signal-exit": "^4.0.1"- },- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },"node_modules/form-data": {"version": "4.0.5","resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",@@ -5858,29 +5152,15 @@"node": ">= 6"}},- "node_modules/fraction.js": {- "version": "4.3.7",- "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",- "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==",- "dev": true,- "license": "MIT",- "engines": {- "node": "*"- },- "funding": {- "type": "patreon",- "url": "https://github.com/sponsors/rawify"- }- },"node_modules/framer-motion": {- "version": "12.23.24",- "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.23.24.tgz",- "integrity": "sha512-HMi5HRoRCTou+3fb3h9oTLyJGBxHfW+HnNE25tAXOvVx/IvwMHK0cx7IR4a2ZU6sh3IX1Z+4ts32PcYBOqka8w==",+ "version": "12.43.0",+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.43.0.tgz",+ "integrity": "sha512-1eaL3RvR/kAlbG7UYcpMptEyzPoENO0c6w7ZnB3/hh2vSAz/6uGAFn6fdoqTBguNstf3MsFhJHsD/0DHiclG+g==","dev": true,"license": "MIT","dependencies": {- "motion-dom": "^12.23.23",- "motion-utils": "^12.23.6",+ "motion-dom": "^12.43.0",+ "motion-utils": "^12.39.0","tslib": "^2.4.0"},"peerDependencies": {@@ -5977,16 +5257,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/get-nonce": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",- "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },"node_modules/get-proto": {"version": "1.0.1","resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",@@ -6056,19 +5326,6 @@"url": "https://github.com/sponsors/isaacs"}},- "node_modules/glob-parent": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.3"- },- "engines": {- "node": ">=10.13.0"- }- },"node_modules/glob/node_modules/brace-expansion": {"version": "1.1.12","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",@@ -6403,43 +5660,15 @@"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==","license": "ISC"},- "node_modules/is-binary-path": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",- "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",- "dev": true,- "license": "MIT",- "dependencies": {- "binary-extensions": "^2.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/is-core-module": {- "version": "2.16.1",- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",- "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",- "dev": true,- "license": "MIT",- "dependencies": {- "hasown": "^2.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/is-extglob": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "node_modules/input-otp": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/input-otp/-/input-otp-1.5.0.tgz",+ "integrity": "sha512-3AcfdW1sNG0FmSA5hHMBXG7jNW5CdcdKs8ln8JOmn6S2SRkoXoJx+2UwC+ZvjflfnOdHJx0SfQ9/YjlxVYLtGQ==","dev": true,"license": "MIT",- "engines": {- "node": ">=0.10.0"+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc"}},"node_modules/is-fullwidth-code-point": {@@ -6452,29 +5681,6 @@"node": ">=8"}},- "node_modules/is-glob": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-extglob": "^2.1.1"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/is-number": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.12.0"- }- },"node_modules/isbinaryfile": {"version": "5.0.7","resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.7.tgz",@@ -6501,22 +5707,6 @@"dev": true,"license": "MIT"},- "node_modules/jackspeak": {- "version": "3.4.3",- "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",- "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",- "dev": true,- "license": "BlueOak-1.0.0",- "dependencies": {- "@isaacs/cliui": "^8.0.2"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- },- "optionalDependencies": {- "@pkgjs/parseargs": "^0.11.0"- }- },"node_modules/jake": {"version": "10.9.4","resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz",@@ -6536,13 +5726,13 @@}},"node_modules/jiti": {- "version": "1.21.7",- "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",- "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==","dev": true,"license": "MIT","bin": {- "jiti": "bin/jiti.js"+ "jiti": "lib/jiti-cli.mjs"}},"node_modules/js-binary-schema-parser": {@@ -6556,6 +5746,7 @@"version": "4.0.0","resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz","integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "dev": true,"license": "MIT"},"node_modules/js-yaml": {@@ -6650,8 +5841,6 @@"integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==","dev": true,"license": "MPL-2.0",- "optional": true,- "peer": true,"dependencies": {"detect-libc": "^2.0.3"},@@ -6689,7 +5878,6 @@"os": ["android"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6711,7 +5899,6 @@"os": ["darwin"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6733,7 +5920,6 @@"os": ["darwin"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6755,7 +5941,6 @@"os": ["freebsd"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6777,7 +5962,6 @@"os": ["linux"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6799,7 +5983,6 @@"os": ["linux"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6821,7 +6004,6 @@"os": ["linux"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6843,7 +6025,6 @@"os": ["linux"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6865,7 +6046,6 @@"os": ["linux"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6887,7 +6067,6 @@"os": ["win32"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6909,7 +6088,6 @@"os": ["win32"],- "peer": true,"engines": {"node": ">= 12.0.0"},@@ -6918,26 +6096,6 @@"url": "https://opencollective.com/parcel"}},- "node_modules/lilconfig": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",- "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/antonk52"- }- },- "node_modules/lines-and-columns": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",- "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",- "dev": true,- "license": "MIT"- },"node_modules/lodash": {"version": "4.17.23","resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz",@@ -6962,6 +6120,7 @@"version": "1.4.0","resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz","integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "dev": true,"license": "MIT","dependencies": {"js-tokens": "^3.0.0 || ^4.0.0"@@ -7062,30 +6221,6 @@"integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==","license": "MIT"},- "node_modules/merge2": {- "version": "1.4.1",- "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",- "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 8"- }- },- "node_modules/micromatch": {- "version": "4.0.8",- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",- "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",- "dev": true,- "license": "MIT",- "dependencies": {- "braces": "^3.0.3",- "picomatch": "^2.3.1"- },- "engines": {- "node": ">=8.6"- }- },"node_modules/mime": {"version": "2.6.0","resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",@@ -7218,19 +6353,19 @@}},"node_modules/motion-dom": {- "version": "12.23.23",- "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.23.23.tgz",- "integrity": "sha512-n5yolOs0TQQBRUFImrRfs/+6X4p3Q4n1dUEqt/H58Vx7OW6RF+foWEgmTVDhIWJIMXOuNNL0apKH2S16en9eiA==",+ "version": "12.43.0",+ "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.43.0.tgz",+ "integrity": "sha512-azKON4d9S65PEoFUiQTMTgPheEmzf2QngdRc50AKfJp9Q9mmcBVw22c8eMq9k8kxOFHdL7+WZY7N/5F/lwiDag==","dev": true,"license": "MIT","dependencies": {- "motion-utils": "^12.23.6"+ "motion-utils": "^12.39.0"}},"node_modules/motion-utils": {- "version": "12.23.6",- "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.23.6.tgz",- "integrity": "sha512-eAWoPgr4eFEOFfg2WjIsMoqJTW6Z8MTUCgn/GZ3VRpClWBdnbjryiA3ZSNLyxCTmCQx4RmYX6jX1iWHbenUPNQ==",+ "version": "12.39.0",+ "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.39.0.tgz",+ "integrity": "sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==","dev": true,"license": "MIT"},@@ -7247,20 +6382,8 @@"node_modules/ms": {"version": "2.1.3","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "license": "MIT"- },- "node_modules/mz": {- "version": "2.7.0",- "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",- "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "any-promise": "^1.0.0",- "object-assign": "^4.0.1",- "thenify-all": "^1.0.0"- }+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "license": "MIT"},"node_modules/nanoid": {"version": "3.3.15",@@ -7397,26 +6520,6 @@"node": "^20.17.0 || >=22.9.0"}},- "node_modules/normalize-path": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/normalize-range": {- "version": "0.1.2",- "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",- "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },"node_modules/normalize-url": {"version": "6.1.0","resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz",@@ -7452,16 +6555,6 @@"node": ">=0.10.0"}},- "node_modules/object-hash": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",- "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },"node_modules/object-keys": {"version": "1.1.1","resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",@@ -7524,13 +6617,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/package-json-from-dist": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",- "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",- "dev": true,- "license": "BlueOak-1.0.0"- },"node_modules/parse-cache-control": {"version": "1.0.1","resolved": "https://registry.npmjs.org/parse-cache-control/-/parse-cache-control-1.0.1.tgz",@@ -7562,37 +6648,6 @@"node": ">=8"}},- "node_modules/path-parse": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",- "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",- "dev": true,- "license": "MIT"- },- "node_modules/path-scurry": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",- "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",- "dev": true,- "license": "BlueOak-1.0.0",- "dependencies": {- "lru-cache": "^10.2.0",- "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"- },- "engines": {- "node": ">=16 || 14 >=14.18"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/path-scurry/node_modules/lru-cache": {- "version": "10.4.3",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",- "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",- "dev": true,- "license": "ISC"- },"node_modules/pathe": {"version": "2.0.3","resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",@@ -7632,39 +6687,6 @@"dev": true,"license": "ISC"},- "node_modules/picomatch": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8.6"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/pify": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",- "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/pirates": {- "version": "4.0.7",- "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",- "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },"node_modules/pixi-filters": {"version": "6.1.5","resolved": "https://registry.npmjs.org/pixi-filters/-/pixi-filters-6.1.5.tgz",@@ -7702,6 +6724,35 @@"url": "https://opencollective.com/pixijs"}},+ "node_modules/playwright": {+ "version": "1.63.0",+ "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.63.0.tgz",+ "integrity": "sha512-+7ziBLidS4NaNCdt57SUDT+wYmmd5fmiQejUic/kb+YsYSCPyOOE9sebzMjNmQrsnNpDJqd4WHvV/8lfKfUDUg==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "playwright-core": "1.63.0"+ },+ "bin": {+ "playwright": "cli.js"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/playwright-core": {+ "version": "1.63.0",+ "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.63.0.tgz",+ "integrity": "sha512-rYCsBF/M5HjUch52bbtVONEFjv6Xu8sm8h72dNlR5bzIE1fvC/bxgspzkjSfU+MweEMmPM8KJebG6nnyxo5mCg==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "playwright-core": "cli.js"+ },+ "engines": {+ "node": ">=20"+ }+ },"node_modules/plist": {"version": "3.1.0","resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz",@@ -7746,140 +6797,6 @@"node": "^10 || ^12 || >=14"}},- "node_modules/postcss-import": {- "version": "15.1.0",- "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",- "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",- "dev": true,- "license": "MIT",- "dependencies": {- "postcss-value-parser": "^4.0.0",- "read-cache": "^1.0.0",- "resolve": "^1.1.7"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "postcss": "^8.0.0"- }- },- "node_modules/postcss-js": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",- "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "camelcase-css": "^2.0.1"- },- "engines": {- "node": "^12 || ^14 || >= 16"- },- "peerDependencies": {- "postcss": "^8.4.21"- }- },- "node_modules/postcss-load-config": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",- "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "lilconfig": "^3.1.1"- },- "engines": {- "node": ">= 18"- },- "peerDependencies": {- "jiti": ">=1.21.0",- "postcss": ">=8.0.9",- "tsx": "^4.8.1",- "yaml": "^2.4.2"- },- "peerDependenciesMeta": {- "jiti": {- "optional": true- },- "postcss": {- "optional": true- },- "tsx": {- "optional": true- },- "yaml": {- "optional": true- }- }- },- "node_modules/postcss-nested": {- "version": "6.2.0",- "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",- "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "postcss-selector-parser": "^6.1.1"- },- "engines": {- "node": ">=12.0"- },- "peerDependencies": {- "postcss": "^8.2.14"- }- },- "node_modules/postcss-selector-parser": {- "version": "6.1.2",- "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",- "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",- "dev": true,- "license": "MIT",- "dependencies": {- "cssesc": "^3.0.0",- "util-deprecate": "^1.0.2"- },- "engines": {- "node": ">=4"- }- },- "node_modules/postcss-value-parser": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",- "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",- "dev": true,- "license": "MIT"- },"node_modules/postject": {"version": "1.0.0-alpha.6","resolved": "https://registry.npmjs.org/postject/-/postject-1.0.0-alpha.6.tgz",@@ -8012,27 +6929,6 @@],"license": "MIT"},- "node_modules/queue-microtask": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",- "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT"- },"node_modules/quick-lru": {"version": "5.1.1","resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",@@ -8058,28 +6954,66 @@}},"node_modules/react": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",- "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz",+ "integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==","license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0"- },"engines": {"node": ">=0.10.0"}},+ "node_modules/react-aria": {+ "version": "3.52.1",+ "resolved": "https://registry.npmjs.org/react-aria/-/react-aria-3.52.1.tgz",+ "integrity": "sha512-fdZZruC9/x/joCg0mhKGs5aHpwrXLCSZ4GOJmhhYyiE0ffyEsk9MLFt9LCOCF9tn8ErTD+UDQP4oDUSlZkmpCg==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@internationalized/date": "^3.12.4",+ "@internationalized/number": "^3.6.8",+ "@internationalized/string": "^3.2.10",+ "@react-types/shared": "^3.36.1",+ "@swc/helpers": "^0.5.0",+ "aria-hidden": "^1.2.3",+ "clsx": "^2.0.0",+ "react-stately": "3.50.0",+ "use-sync-external-store": "^1.6.0"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"+ }+ },+ "node_modules/react-aria-components": {+ "version": "1.21.1",+ "resolved": "https://registry.npmjs.org/react-aria-components/-/react-aria-components-1.21.1.tgz",+ "integrity": "sha512-J88WflYY0z+EhLX0ce+GjFlQ3ag3ubIgfUTjpKSrBQBu92Xtl4Ub9o118HItUddtbk1Ido0jzyPy94/klZy1hg==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@internationalized/date": "^3.12.4",+ "@internationalized/string": "^3.2.10",+ "@react-types/shared": "^3.36.1",+ "@swc/helpers": "^0.5.0",+ "client-only": "^0.0.1",+ "react-aria": "3.52.1",+ "react-stately": "3.50.0"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"+ }+ },"node_modules/react-dom": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",- "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz",+ "integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==","license": "MIT","dependencies": {- "loose-envify": "^1.1.0",- "scheduler": "^0.23.2"+ "scheduler": "^0.28.0"},"peerDependencies": {- "react": "^18.3.1"+ "react": "^19.3.0"}},"node_modules/react-draggable": {@@ -8134,55 +7068,6 @@"node": ">=0.10.0"}},- "node_modules/react-remove-scroll": {- "version": "2.7.1",- "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.1.tgz",- "integrity": "sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==",- "dev": true,- "license": "MIT",- "dependencies": {- "react-remove-scroll-bar": "^2.3.7",- "react-style-singleton": "^2.2.3",- "tslib": "^2.1.0",- "use-callback-ref": "^1.3.3",- "use-sidecar": "^1.1.3"- },- "engines": {- "node": ">=10"- },- "peerDependencies": {- "@types/react": "*",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/react-remove-scroll-bar": {- "version": "2.3.8",- "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz",- "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "react-style-singleton": "^2.2.2",- "tslib": "^2.0.0"- },- "engines": {- "node": ">=10"- },- "peerDependencies": {- "@types/react": "*",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },"node_modules/react-resizable-panels": {"version": "3.0.6","resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-3.0.6.tgz",@@ -8217,27 +7102,39 @@"dev": true,"license": "0BSD"},- "node_modules/react-style-singleton": {- "version": "2.2.3",- "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz",- "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==",+ "node_modules/react-stately": {+ "version": "3.50.0",+ "resolved": "https://registry.npmjs.org/react-stately/-/react-stately-3.50.0.tgz",+ "integrity": "sha512-TnckvpDQGU0672wEaLZqdzvhuSeXWjgW6vijMWxiKOxc8CosQUfPGISdcZyfHqjX3XMjEtRxj4w9HumvX4h4mw==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","dependencies": {- "get-nonce": "^1.0.0",- "tslib": "^2.0.0"+ "@internationalized/date": "^3.12.4",+ "@internationalized/number": "^3.6.8",+ "@internationalized/string": "^3.2.10",+ "@react-types/shared": "^3.36.1",+ "@swc/helpers": "^0.5.0",+ "use-sync-external-store": "^1.6.0"},- "engines": {- "node": ">=10"+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"+ }+ },+ "node_modules/react-transition-group": {+ "version": "4.4.5",+ "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",+ "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "@babel/runtime": "^7.5.5",+ "dom-helpers": "^5.0.1",+ "loose-envify": "^1.4.0",+ "prop-types": "^15.6.2"},"peerDependencies": {- "@types/react": "*",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }+ "react": ">=16.6.0",+ "react-dom": ">=16.6.0"}},"node_modules/read-binary-file-arch": {@@ -8253,16 +7150,6 @@"read-binary-file-arch": "cli.js"}},- "node_modules/read-cache": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",- "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",- "dev": true,- "license": "MIT",- "dependencies": {- "pify": "^2.3.0"- }- },"node_modules/readable-stream": {"version": "3.6.2","resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",@@ -8277,19 +7164,6 @@"node": ">= 6"}},- "node_modules/readdirp": {- "version": "3.6.0",- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",- "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",- "dev": true,- "license": "MIT",- "dependencies": {- "picomatch": "^2.2.1"- },- "engines": {- "node": ">=8.10.0"- }- },"node_modules/require-directory": {"version": "2.1.1","resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",@@ -8325,27 +7199,6 @@"dev": true,"license": "MIT"},- "node_modules/resolve": {- "version": "1.22.10",- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",- "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-core-module": "^2.16.0",- "path-parse": "^1.0.7",- "supports-preserve-symlinks-flag": "^1.0.0"- },- "bin": {- "resolve": "bin/resolve"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },"node_modules/resolve-alpn": {"version": "1.2.1","resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz",@@ -8376,17 +7229,6 @@"node": ">= 4"}},- "node_modules/reusify": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",- "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",- "dev": true,- "license": "MIT",- "engines": {- "iojs": ">=1.0.0",- "node": ">=0.10.0"- }- },"node_modules/roarr": {"version": "2.15.4","resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",@@ -8448,30 +7290,6 @@"fsevents": "~2.3.2"}},- "node_modules/run-parallel": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",- "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT",- "dependencies": {- "queue-microtask": "^1.2.2"- }- },"node_modules/safe-buffer": {"version": "5.2.1","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",@@ -8516,13 +7334,10 @@"license": "ISC"},"node_modules/scheduler": {- "version": "0.23.2",- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",- "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0"- }+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",+ "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",+ "license": "MIT"},"node_modules/semver": {"version": "7.7.3",@@ -8603,19 +7418,6 @@"dev": true,"license": "ISC"},- "node_modules/signal-exit": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },"node_modules/simple-update-notifier": {"version": "2.0.0","resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",@@ -8657,17 +7459,6 @@"npm": ">= 3.0.0"}},- "node_modules/sonner": {- "version": "2.0.7",- "resolved": "https://registry.npmjs.org/sonner/-/sonner-2.0.7.tgz",- "integrity": "sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc",- "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc"- }- },"node_modules/source-map": {"version": "0.6.1","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",@@ -8755,22 +7546,6 @@"node": ">=8"}},- "node_modules/string-width-cjs": {- "name": "string-width",- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/strip-ansi": {"version": "6.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",@@ -8784,20 +7559,6 @@"node": ">=8"}},- "node_modules/strip-ansi-cjs": {- "name": "strip-ansi",- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/strip-final-newline": {"version": "2.0.0","resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",@@ -8827,60 +7588,6 @@"dev": true,"license": "MIT"},- "node_modules/sucrase": {- "version": "3.35.0",- "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz",- "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/gen-mapping": "^0.3.2",- "commander": "^4.0.0",- "glob": "^10.3.10",- "lines-and-columns": "^1.1.6",- "mz": "^2.7.0",- "pirates": "^4.0.1",- "ts-interface-checker": "^0.1.9"- },- "bin": {- "sucrase": "bin/sucrase",- "sucrase-node": "bin/sucrase-node"- },- "engines": {- "node": ">=16 || 14 >=14.17"- }- },- "node_modules/sucrase/node_modules/commander": {- "version": "4.1.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",- "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },- "node_modules/sucrase/node_modules/glob": {- "version": "10.5.0",- "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",- "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",- "dev": true,- "license": "ISC",- "dependencies": {- "foreground-child": "^3.1.0",- "jackspeak": "^3.1.2",- "minimatch": "^9.0.4",- "minipass": "^7.1.2",- "package-json-from-dist": "^1.0.0",- "path-scurry": "^1.11.1"- },- "bin": {- "glob": "dist/esm/bin.mjs"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },"node_modules/sumchecker": {"version": "3.0.1","resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",@@ -8907,19 +7614,6 @@"node": ">=8"}},- "node_modules/supports-preserve-symlinks-flag": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",- "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },"node_modules/tailwind-merge": {"version": "3.3.1","resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.3.1.tgz",@@ -8931,44 +7625,36 @@"url": "https://github.com/sponsors/dcastil"}},- "node_modules/tailwindcss": {- "version": "3.4.18",- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.18.tgz",- "integrity": "sha512-6A2rnmW5xZMdw11LYjhcI5846rt9pbLSabY5XPxo+XWdxwZaFEn47Go4NzFiHu9sNNmr/kXivP1vStfvMaK1GQ==",+ "node_modules/tailwind-variants": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/tailwind-variants/-/tailwind-variants-3.3.1.tgz",+ "integrity": "sha512-4pAvwUtM4HKBiRZftncAbpn6V9Hhwoa5Fl7O2u5zbp7Z5Cvu+/o/6+176WY3WCEES209543quG8zFIcXCsc5Jw==","dev": true,"license": "MIT",- "dependencies": {- "@alloc/quick-lru": "^5.2.0",- "arg": "^5.0.2",- "chokidar": "^3.6.0",- "didyoumean": "^1.2.2",- "dlv": "^1.1.3",- "fast-glob": "^3.3.2",- "glob-parent": "^6.0.2",- "is-glob": "^4.0.3",- "jiti": "^1.21.7",- "lilconfig": "^3.1.3",- "micromatch": "^4.0.8",- "normalize-path": "^3.0.0",- "object-hash": "^3.0.0",- "picocolors": "^1.1.1",- "postcss": "^8.4.47",- "postcss-import": "^15.1.0",- "postcss-js": "^4.0.1",- "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",- "postcss-nested": "^6.2.0",- "postcss-selector-parser": "^6.1.2",- "resolve": "^1.22.8",- "sucrase": "^3.35.0"+ "engines": {+ "node": ">=16.9.x",+ "pnpm": ">=7.x"},- "bin": {- "tailwind": "lib/cli.js",- "tailwindcss": "lib/cli.js"+ "peerDependencies": {+ "tailwind-merge": ">=3.0.0",+ "tailwindcss": "*"},- "engines": {- "node": ">=14.0.0"+ "peerDependenciesMeta": {+ "tailwind-merge": {+ "optional": true+ },+ "tailwindcss": {+ "optional": true+ }}},+ "node_modules/tailwindcss": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz",+ "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==",+ "dev": true,+ "license": "MIT"+ },"node_modules/tailwindcss-animate": {"version": "1.0.7","resolved": "https://registry.npmjs.org/tailwindcss-animate/-/tailwindcss-animate-1.0.7.tgz",@@ -8979,6 +7665,20 @@"tailwindcss": ">=3.0.0 || insiders"}},+ "node_modules/tapable": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ }+ },"node_modules/tar": {"version": "7.5.19","resolved": "https://registry.npmjs.org/tar/-/tar-7.5.19.tgz",@@ -9125,29 +7825,6 @@"dev": true,"license": "MIT"},- "node_modules/thenify": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",- "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",- "dev": true,- "license": "MIT",- "dependencies": {- "any-promise": "^1.0.0"- }- },- "node_modules/thenify-all": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",- "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",- "dev": true,- "license": "MIT",- "dependencies": {- "thenify": ">= 3.1.0 < 4"- },- "engines": {- "node": ">=0.8"- }- },"node_modules/tiny-async-pool": {"version": "1.3.0","resolved": "https://registry.npmjs.org/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz",@@ -9296,19 +7973,6 @@"tmp": "^0.2.0"}},- "node_modules/to-regex-range": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",- "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-number": "^7.0.0"- },- "engines": {- "node": ">=8.0"- }- },"node_modules/truncate-utf8-bytes": {"version": "1.0.2","resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",@@ -9319,13 +7983,6 @@"utf8-byte-length": "^1.0.1"}},- "node_modules/ts-interface-checker": {- "version": "0.1.13",- "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",- "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",- "dev": true,- "license": "Apache-2.0"- },"node_modules/tslib": {"version": "2.8.1","resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",@@ -9333,6 +7990,16 @@"dev": true,"license": "0BSD"},+ "node_modules/tw-animate-css": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.4.0.tgz",+ "integrity": "sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/Wombosvideo"+ }+ },"node_modules/typedarray": {"version": "0.0.6","resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",@@ -9435,49 +8102,14 @@"punycode": "^2.1.0"}},- "node_modules/use-callback-ref": {- "version": "1.3.3",- "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz",- "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==",- "dev": true,- "license": "MIT",- "dependencies": {- "tslib": "^2.0.0"- },- "engines": {- "node": ">=10"- },- "peerDependencies": {- "@types/react": "*",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/use-sidecar": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",- "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==",+ "node_modules/use-sync-external-store": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.7.0.tgz",+ "integrity": "sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A==","dev": true,"license": "MIT",- "dependencies": {- "detect-node-es": "^1.1.0",- "tslib": "^2.0.0"- },- "engines": {- "node": ">=10"- },"peerDependencies": {- "@types/react": "*",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},"node_modules/utf8-byte-length": {@@ -9760,25 +8392,6 @@"url": "https://github.com/chalk/wrap-ansi?sponsor=1"}},- "node_modules/wrap-ansi-cjs": {- "name": "wrap-ansi",- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },"node_modules/wrappy": {"version": "1.0.2","resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",diff --git a/package.json b/package.jsonindex 6ef75b01..794dc129 100644--- a/package.json+++ b/package.json@@ -43,7 +43,10 @@"checksums:release": "node scripts/write-release-checksums.mjs","release:create": "node scripts/create-release.mjs","test": "vitest --run",- "test:watch": "vitest"+ "test:watch": "vitest",+ "typecheck": "tsc --noEmit",+ "test:ui": "playwright test",+ "dev:ui": "vite --mode ui --host 127.0.0.1"},"dependencies": {"@phosphor-icons/react": "^2.1.10",@@ -57,26 +60,15 @@"@biomejs/biome": "2.3.13","@electron/rebuild": "^4.2.0","@fix-webm-duration/fix": "^1.0.1",- "@radix-ui/react-accordion": "^1.2.12",- "@radix-ui/react-dialog": "^1.1.15",- "@radix-ui/react-dropdown-menu": "^2.1.16",- "@radix-ui/react-popover": "^1.1.15",- "@radix-ui/react-select": "^2.2.6",- "@radix-ui/react-slider": "^1.3.6",- "@radix-ui/react-slot": "^1.2.3",- "@radix-ui/react-switch": "^1.2.6",- "@radix-ui/react-tabs": "^1.1.13",- "@radix-ui/react-toggle": "^1.1.10",- "@radix-ui/react-toggle-group": "^1.1.11",+ "@heroui/react": "^3.2.6",+ "@heroui/styles": "^3.2.6",+ "@playwright/test": "^1.63.0",+ "@tailwindcss/postcss": "^4.3.3","@types/gif.js": "^0.2.5","@types/node": "^25.0.3",- "@types/react": "^18.2.64",- "@types/react-dom": "^18.2.21",- "@uiw/color-convert": "^2.9.2",- "@uiw/react-color-block": "^2.9.2",+ "@types/react": "^19.3.0",+ "@types/react-dom": "^19.3.0","@vitejs/plugin-react": "^4.2.1",- "autoprefixer": "^10.4.21",- "class-variance-authority": "^0.7.1","clsx": "^2.1.1","dnd-timeline": "^2.2.0","electron": "^43.1.0",@@ -90,14 +82,13 @@"pixi-filters": "^6.1.5","pixi.js": "^8.14.0","postcss": "^8.5.6",- "react": "^18.2.0",- "react-dom": "^18.2.0",+ "react": "^19.3.0",+ "react-dom": "^19.3.0","react-icons": "^5.5.0","react-resizable-panels": "^3.0.6","react-rnd": "^10.5.2",- "sonner": "^2.0.7","tailwind-merge": "^3.3.1",- "tailwindcss": "^3.4.18",+ "tailwindcss": "^4.3.3","tailwindcss-animate": "^1.0.7","terser": "^5.44.1","typescript": "^5.2.2",diff --git a/playwright.config.ts b/playwright.config.tsnew file mode 100644index 00000000..a264222e--- /dev/null+++ b/playwright.config.ts@@ -0,0 +1,16 @@+import { defineConfig } from "@playwright/test";+export default defineConfig({+ testDir: "./tests/ui",+ timeout: 30000,+ use: {+ baseURL: "http://127.0.0.1:5178",+ viewport: { width: 1440, height: 1000 },+ trace: "retain-on-failure",+ },+ webServer: {+ env: { RECORDLY_RENDERER_ONLY: "1" },+ command: "npx vite --host 127.0.0.1 --port 5178 --strictPort",+ url: "http://127.0.0.1:5178",+ reuseExistingServer: !process.env.CI,+ },+});diff --git a/postcss.config.cjs b/postcss.config.cjsindex e873f1a4..2769da7a 100644--- a/postcss.config.cjs+++ b/postcss.config.cjs@@ -1,6 +1 @@-module.exports = {- plugins: {- tailwindcss: {},- autoprefixer: {},- },-};+module.exports = { plugins: { "@tailwindcss/postcss": {} } };diff --git a/src/App.tsx b/src/App.tsxindex 25401793..86d7a6bf 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -1,3 +1,4 @@+import { Card } from "@heroui/react";import { lazy, Suspense, useEffect, useState } from "react";import { useI18n } from "./contexts/I18nContext";@@ -79,7 +80,7 @@ export default function App() {default:content = (<div className="flex h-full w-full items-center justify-center bg-editor-bg text-foreground">- <div className="flex items-center gap-4 rounded-2xl border border-foreground/10 bg-foreground/5 px-6 py-5 shadow-2xl shadow-black/30 backdrop-blur-xl">+ <Card className="flex-row items-center gap-4 px-6 py-5"><imgsrc={appIconSrc}alt={t("app.name", "Recordly")}@@ -93,7 +94,7 @@ export default function App() {{t("app.subtitle", "Screen recording and editing")}</p></div>- </div>+ </Card></div>);}diff --git a/src/components/announcements/AnnouncementDialog.tsx b/src/components/announcements/AnnouncementDialog.tsxindex a9bc0fcf..b42e1864 100644--- a/src/components/announcements/AnnouncementDialog.tsx+++ b/src/components/announcements/AnnouncementDialog.tsx@@ -1,6 +1,6 @@import { ArrowLeft, ArrowRight, ArrowSquareOut, Megaphone } from "@phosphor-icons/react";import { useEffect, useRef, useState } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { BUNDLED_ANNOUNCEMENT_FEED } from "@/content/announcements";import { useI18n } from "@/contexts/I18nContext";import { runAnnouncementAction } from "@/lib/announcementActions";@@ -275,9 +275,7 @@ export function AnnouncementDialog({ audience }: { audience: AnnouncementAudienctype="button"variant="ghost"size="icon"- className={- usesCoverMedia ? "text-white hover:bg-white/15" : undefined- }+ className={usesCoverMedia ? "" : undefined}onClick={() =>setCurrentIndex((index) =>@@ -296,14 +294,14 @@ export function AnnouncementDialog({ audience }: { audience: AnnouncementAudienc{controls.indicators && (<div className="flex gap-1.5">{announcements.map((announcement, index) => (- <button+ <Buttontype="button"key={announcement.id}- className={`h-1.5 rounded-full transition-all ${+ className={`h-1.5 ${index === currentIndex? `w-6 ${usesCoverMedia ? "bg-white" : "bg-primary"}`: `w-1.5 ${usesCoverMedia ? "bg-white/40" : "bg-foreground/25"}`- }`}+ } `}onClick={() => setCurrentIndex(index)}aria-label={`${t("announcements.show", "Show announcement")} ${index + 1}`}/>@@ -315,9 +313,7 @@ export function AnnouncementDialog({ audience }: { audience: AnnouncementAudienctype="button"variant="ghost"size="icon"- className={- usesCoverMedia ? "text-white hover:bg-white/15" : undefined- }+ className={usesCoverMedia ? "" : undefined}onClick={() =>setCurrentIndex((index) => (index + 1) % announcements.length,@@ -336,9 +332,7 @@ export function AnnouncementDialog({ audience }: { audience: AnnouncementAudienc<Buttontype="button"variant="ghost"- className={- usesCoverMedia ? "text-white hover:bg-white/15" : undefined- }+ className={usesCoverMedia ? "" : undefined}onClick={dismissCurrent}>{t("announcements.dismiss", "Dismiss")}diff --git a/src/components/announcements/EditorAnnouncementBanner.tsx b/src/components/announcements/EditorAnnouncementBanner.tsxindex 6180c17b..40693e77 100644--- a/src/components/announcements/EditorAnnouncementBanner.tsx+++ b/src/components/announcements/EditorAnnouncementBanner.tsx@@ -1,6 +1,6 @@import { ArrowRight, ArrowSquareOut, X } from "@phosphor-icons/react";import { useEffect, useRef, useState } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { Button } from "@/components/ui/button";import { BUNDLED_ANNOUNCEMENT_FEED } from "@/content/announcements";import { useI18n } from "@/contexts/I18nContext";@@ -118,7 +118,7 @@ export function EditorAnnouncementBanner() {variant="link"size="sm"onClick={() => void openAction()}- className="h-auto shrink-0 gap-1 px-1 py-0 text-xs text-white underline decoration-white/50 underline-offset-2 hover:text-white dark:text-black dark:decoration-black/50 dark:hover:text-black"+ className="h-auto shrink-0 gap-1 px-1 py-0 text-xs underline decoration-white/50 underline-offset-2 dark:decoration-black/50">{current.action?.label}{current.action?.url ? (@@ -129,14 +129,15 @@ export function EditorAnnouncementBanner() {</Button>) : null}{showClose ? (- <button+ <Button+ variant="ghost"type="button"onClick={dismissCurrent}- className="absolute right-4 inline-flex h-6 w-6 items-center justify-center rounded-md text-white/70 transition-colors hover:bg-white/15 hover:text-white dark:text-black/70 dark:hover:bg-black/10 dark:hover:text-black"+ className="absolute right-4 inline-flex h-6 w-6 items-center justify-center"aria-label={t("announcements.dismiss", "Dismiss")}><X className="h-3.5 w-3.5" />- </button>+ </Button>) : null}</div>);diff --git a/src/components/announcements/LiveAnnouncementNotifications.tsx b/src/components/announcements/LiveAnnouncementNotifications.tsxindex 3d6bce30..cd859fea 100644--- a/src/components/announcements/LiveAnnouncementNotifications.tsx+++ b/src/components/announcements/LiveAnnouncementNotifications.tsx@@ -1,5 +1,5 @@import { useEffect, useRef } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { BUNDLED_ANNOUNCEMENT_FEED } from "@/content/announcements";import { useI18n } from "@/contexts/I18nContext";import { runAnnouncementAction } from "@/lib/announcementActions";diff --git a/src/components/countdown/CountdownOverlay.tsx b/src/components/countdown/CountdownOverlay.tsxindex 53e652f3..bb977062 100644--- a/src/components/countdown/CountdownOverlay.tsx+++ b/src/components/countdown/CountdownOverlay.tsx@@ -1,6 +1,11 @@+import { Card } from "@heroui/react";+import { Button } from "@/components/ui/button";import { useCallback, useEffect, useState } from "react";+import { useI18n } from "@/contexts/I18nContext";+export function CountdownOverlay() {+ const { t } = useI18n();const [countdown, setCountdown] = useState<number | null>(null);useEffect(() => {@@ -40,31 +45,20 @@ export function CountdownOverlay() {}return (- <div- className="fixed inset-0 flex items-center justify-center select-none cursor-pointer"- onClick={handleCancel}- onKeyDown={(e) => e.key === "Escape" && handleCancel()}- >- <div- className="flex items-center justify-center rounded-3xl"- style={{- width: 180,- height: 180,- background: "rgba(0, 0, 0, 0.85)",- backdropFilter: "blur(20px)",- }}- >- <span- className="text-white font-bold tabular-nums"- style={{- fontSize: "100px",- lineHeight: 1,- textShadow: "0 0 30px rgba(255,255,255,0.2)",+ <div className="fixed inset-0 flex items-center justify-center" onClick={handleCancel}>+ <Card className="size-44 items-center justify-center gap-1" aria-live="assertive">+ <span className="text-7xl tabular-nums">{countdown}</span>+ <Button+ variant="ghost"+ size="sm"+ onClick={(event) => {+ event.stopPropagation();+ handleCancel();}}>- {countdown}- </span>- </div>+ {t("common.actions.cancel", "Cancel")}+ </Button>+ </Card></div>);}diff --git a/src/components/launch/HudWindow.tsx b/src/components/launch/HudWindow.tsxindex a62dc3ad..3a21b132 100644--- a/src/components/launch/HudWindow.tsx+++ b/src/components/launch/HudWindow.tsx@@ -1,4 +1,4 @@-import { Toaster } from "../ui/sonner";+import { Toaster } from "../ui/toast";import { LaunchWindow } from "./LaunchWindow";export default function HudWindow() {diff --git a/src/components/launch/LaunchWindow.module.css b/src/components/launch/LaunchWindow.module.cssindex 196f86ec..96a5f6fd 100644--- a/src/components/launch/LaunchWindow.module.css+++ b/src/components/launch/LaunchWindow.module.css@@ -14,8 +14,8 @@max-width: 1200px;background: var(--launch-bar-bg);border: 1px solid var(--launch-bar-border);- border-radius: 20px;- padding: 11px 20px 11px 18px;+ border-radius: var(--radius-xl);+ padding: 8px 12px;box-shadow: var(--launch-bar-shadow);overflow: visible;position: relative;@@ -50,68 +50,11 @@flex-shrink: 0;}-.ib {- position: relative;- width: 40px;- height: 40px;- border-radius: 11px;- border: none;- background: transparent;- color: var(--launch-text-muted);- cursor: pointer;- display: inline-flex;- align-items: center;- justify-content: center;- transition: all 0.15s ease;- flex-shrink: 0;-}--.ib:hover {- background: var(--launch-hover);- color: var(--launch-text);-}--.ibActive {- color: #3d8bff;-}--.ibActive:hover {- color: #62a4ff;-}--.ibRed {- color: #f43f5e;-}--.ibRed:hover {- color: #ff5a75;-}--.ibGreen {- color: #34d399;-}--.ibGreen:hover {- color: #4eeeb0;-}-.menuCard {width: 300px;max-height: 400px;overflow-y: auto;- background: var(--launch-surface);- border: 1px solid var(--launch-border);- border-radius: 16px;- backdrop-filter: blur(var(--launch-popover-blur, 24px))- saturate(var(--launch-popover-saturate, 145%));- -webkit-backdrop-filter: blur(var(--launch-popover-blur, 24px))- saturate(var(--launch-popover-saturate, 145%));- padding: 8px;- margin-top: auto;- margin-bottom: 8px;- box-shadow: var(--launch-bar-shadow);pointer-events: auto;- animation: menuCardIn 0.18s ease;}@keyframes menuCardIn {@@ -147,42 +90,16 @@padding: 6px 10px 4px;}-.ddItem {- display: flex;- align-items: center;- gap: 10px;- width: 100%;- padding: 8px 10px;- border-radius: 8px;- border: none;- background: transparent;- font-size: 12px;- color: var(--launch-text-muted);- cursor: pointer;- transition: all 0.12s ease;- text-align: left;-}--.ddItem:hover {- background: var(--launch-hover);- color: var(--launch-text);-}--.ddItemSelected {- background: var(--launch-selected);- color: var(--launch-accent);-}-.finalizingState {display: inline-flex;align-items: center;gap: 11px;min-width: 238px;- color: #eeeef2;+ color: var(--foreground);}.finalizingSpin {- color: #3d8bff;+ color: var(--accent);animation: finalizingSpin 0.9s linear infinite;}@@ -196,7 +113,7 @@}.finalizingCopy small {- color: #8a8a96;+ color: var(--muted);font-size: 10px;font-weight: 600;}@@ -210,38 +127,6 @@}}-.recBtn {- position: relative;- width: 46px;- height: 46px;- border-radius: 50%;- border: none;- background: #f43f5e;- color: #fff;- cursor: pointer;- display: inline-flex;- align-items: center;- justify-content: center;- transition: all 0.2s ease;- flex-shrink: 0;- box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.3);-}--.recBtn:hover {- background: #ff5a75;- box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.15);-}--.recBtn:disabled {- opacity: 0.4;- cursor: not-allowed;-}--.recBtn:disabled:hover {- background: #f43f5e;- box-shadow: none;-}-.recDot {width: 14px;height: 14px;@@ -309,5 +194,5 @@.micSelect option {background-color: #1a1a22;- color: #eeeef2;+ color: var(--foreground);}diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsxindex 66cbe608..f78408f9 100644--- a/src/components/launch/LaunchWindow.tsx+++ b/src/components/launch/LaunchWindow.tsx@@ -233,7 +233,7 @@ function LaunchWindowContent() {<Buttonvariant="outline"size="lg"- className={`${styles.electronNoDrag} group gap-2 px-3 min-w-0 max-w-[180px] rounded-[11px] font-medium text-[12px] shrink-0 border-[var(--launch-border)] bg-[var(--launch-surface)] text-[var(--launch-text)] hover:border-[var(--launch-border-strong)] hover:bg-[var(--launch-hover)] transition-all ${openId === "sources" ? "border-[var(--launch-border-strong)] bg-[var(--launch-hover)]" : ""}`}+ className={` ${styles.electronNoDrag} group gap-2 px-3 min-w-0 max-w-[180px] shrink-0 ${openId === "sources" ? "border-[var(--launch-border-strong)] bg-[var(--launch-hover)]" : ""} `}title={selectedSource}><MonitorIcon size={16} className="shrink-0" />@@ -278,7 +278,7 @@ function LaunchWindowContent() {? t("recording.disableMicrophone"): t("recording.enableMicrophone")}- className={microphoneEnabled ? styles.ibActive : ""}+ className={microphoneEnabled ? "text-accent" : ""}>{microphoneEnabled ? (<MicrophoneIcon size={18} />@@ -318,7 +318,7 @@ function LaunchWindowContent() {? t("recording.disableWebcam"): t("recording.enableWebcam")}- className={webcamEnabled ? styles.ibActive : ""}+ className={webcamEnabled ? "text-accent" : ""}>{webcamEnabled ? (<VideoCameraIcon size={18} />@@ -338,16 +338,18 @@ function LaunchWindowContent() {size="icon"iconSize="lg"title={t("recording.countdownDelay")}- className={countdownDelay > 0 ? styles.ibActive : ""}+ className={countdownDelay > 0 ? "text-accent" : ""}><TimerIcon size={18} /></Button>}/>- <button+ <Buttontype="button"- className={`${styles.recBtn} ${styles.electronNoDrag}`}+ variant="destructive"+ size="icon"+ className={styles.electronNoDrag}onClick={hasSelectedSource || platform === "linux"? toggleRecording@@ -360,7 +362,7 @@ function LaunchWindowContent() {title={t("recording.record")}><div className={styles.recDot} />- </button>+ </Button><Separator orientation="vertical" className="mx-[5px] h-6" />@@ -368,7 +370,14 @@ function LaunchWindowContent() {<ProjectPopoverentries={projectLibraryEntries}onOpenProject={openProjectFromLibrary}- trigger={<div className="absolute inset-0 pointer-events-none opacity-0" />}+ trigger={+ <Button+ aria-label={t("recording.openProject")}+ tabIndex={-1}+ variant="ghost"+ className="absolute size-px min-w-0 p-0 pointer-events-none opacity-0"+ />+ }/></div>diff --git a/src/components/launch/RecordingControls.tsx b/src/components/launch/RecordingControls.tsxindex d7ed41a7..440cb2e9 100644--- a/src/components/launch/RecordingControls.tsx+++ b/src/components/launch/RecordingControls.tsx@@ -70,7 +70,7 @@ export const RecordingControls = ({variant="ghost"size="icon"iconSize="lg"- className={microphoneEnabled ? styles.ibActive : ""}+ className={microphoneEnabled ? "text-accent" : ""}aria-label={t("recording.micToggleDisabledTip")}disabledonClick={onToggleMicrophone}@@ -92,7 +92,7 @@ export const RecordingControls = ({onClick={onPauseResume}title={paused ? t("recording.resume") : t("recording.pause")}aria-label={paused ? t("recording.resume") : t("recording.pause")}- className={paused ? styles.ibGreen : ""}+ className={paused ? "text-success" : ""}>{paused ? (<PlayIcon size={18} fill="currentColor" strokeWidth={0} />@@ -101,15 +101,17 @@ export const RecordingControls = ({)}</Button>- <button+ <Buttontype="button"onClick={onStopRecording}title={t("recording.stop")}aria-label={t("recording.stop")}- className={`${styles.recBtn} ${styles.electronNoDrag}`}+ variant="destructive"+ size="icon"+ className={styles.electronNoDrag}><span className={styles.stopSquare} />- </button>+ </Button><Buttonvariant="ghost"diff --git a/src/components/launch/SourceSelector.css b/src/components/launch/SourceSelector.cssindex 56fbc2a0..001ce5ac 100644--- a/src/components/launch/SourceSelector.css+++ b/src/components/launch/SourceSelector.css@@ -1,28 +1,3 @@-.source-selector-popover {- background: var(--launch-surface);- border: 1px solid var(--launch-border);- border-radius: 16px;- backdrop-filter: blur(var(--launch-popover-blur, 24px))- saturate(var(--launch-popover-saturate, 145%));- -webkit-backdrop-filter: blur(var(--launch-popover-blur, 24px))- saturate(var(--launch-popover-saturate, 145%));- box-shadow: var(--launch-bar-shadow);-}--.source-selector-item {- color: var(--launch-text-muted);-}--.source-selector-item:hover {- background: var(--launch-hover);- color: var(--launch-text);-}--.source-selector-item-selected {- background: var(--launch-selected);- color: var(--launch-accent);-}-.source-selector-thumb-fallback {background: var(--launch-panel);}diff --git a/src/components/launch/SourceSelector.module.css b/src/components/launch/SourceSelector.module.cssdeleted file mode 100644index 79cf7853..00000000--- a/src/components/launch/SourceSelector.module.css+++ /dev/null@@ -1,74 +0,0 @@-.glassContainer {- background: linear-gradient(135deg, rgba(28, 28, 34, 0.92) 0%, rgba(18, 18, 22, 0.88) 100%);- backdrop-filter: blur(20px) saturate(160%);- -webkit-backdrop-filter: blur(20px) saturate(160%);- border-radius: 14px;- box-shadow:- 0 4px 16px 0 rgba(0, 0, 0, 0.32),- 0 1px 3px 0 rgba(0, 0, 0, 0.18) inset;- border: 1px solid rgba(60, 60, 80, 0.18);-}--.sourceCard {- border-radius: 10px;- background: linear-gradient(120deg, rgba(38, 38, 48, 0.98) 0%, rgba(24, 24, 32, 0.96) 100%);- border: 1px solid rgba(60, 60, 80, 0.22);- box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.18);- transition:- box-shadow 0.2s,- border 0.2s,- background 0.2s;-}--.selected {- border: 2px solid #2563eb;- background: linear-gradient(120deg, rgba(91, 33, 182, 0.18) 0%, rgba(38, 38, 48, 0.98) 100%);- box-shadow: 0 0 0 2px #2563eb33;-}--.icon {- width: 13px;- height: 13px;- color: #c7d2fe;-}--.name {- font-size: 0.85rem;- color: #f3f4f6;- font-weight: 500;- letter-spacing: 0.01em;-}--.cardText {- color: #a1a1aa;- font-size: 0.75rem;-}--/* scrollbar */-.sourceGridScroll {- scrollbar-width: thin;- scrollbar-color: rgba(37, 99, 235, 0.5) rgba(40, 40, 50, 0.6);-}--.sourceGridScroll::-webkit-scrollbar {- width: 8px;-}--.sourceGridScroll::-webkit-scrollbar-track {- background: rgba(30, 30, 38, 0.5);- border-radius: 4px;- margin: 4px 0;-}--.sourceGridScroll::-webkit-scrollbar-thumb {- background: rgba(80, 80, 100, 0.6);- border-radius: 4px;-}--.sourceGridScroll::-webkit-scrollbar-thumb:hover {- background: rgba(37, 99, 235, 0.6);-}--.sourceGridScroll::-webkit-scrollbar-thumb:active {- background: rgba(37, 99, 235, 0.8);-}diff --git a/src/components/launch/SourceSelector.tsx b/src/components/launch/SourceSelector.tsxindex d05f855e..0d2dfca6 100644--- a/src/components/launch/SourceSelector.tsx+++ b/src/components/launch/SourceSelector.tsx@@ -1,3 +1,4 @@+import { ToggleButton } from "@heroui/react";import { AppWindowIcon, CaretUpIcon, MonitorIcon } from "@phosphor-icons/react";import * as React from "react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";@@ -54,11 +55,11 @@ export const SourceSelectorContent = ({const renderSourceItem = (source: DesktopSource, index: number) => {const isSelected = selectedSource === source.name;return (- <button+ <ToggleButton+ isSelected={isSelected}key={`${source.id}-${index}`}- type="button"className={cn(- "source-selector-item group min-h-[46px] w-full rounded-[11px] px-3 py-2.5 text-left font-medium flex items-center justify-start gap-3",+ "source-selector-item group min-h-[46px] w-full px-3 py-2.5 text-left flex items-center justify-start gap-3",isSelected && "source-selector-item-selected",)}onClick={() => onSourceSelect(source)}@@ -94,7 +95,7 @@ export const SourceSelectorContent = ({: t("recording.window")}</div></div>- </button>+ </ToggleButton>);};@@ -297,9 +298,7 @@ export const SourceSelector = React.memo(function SourceSelector({onPointerEnter={prefetchSources}onFocusCapture={prefetchSources}className={cn(- "group gap-2 px-3 min-w-0 max-w-[180px] rounded-[11px] font-medium text-[12px] [ -webkit-app-region:no-drag ] shrink-0",- "border-[#2a2a34] bg-[#1a1a22] text-[#eeeef2] hover:border-[#3e3e4c] hover:bg-[#20202a] transition-all",- "data-[state=open]:border-[#3e3e4c] data-[state=open]:bg-[#20202a]",+ "group gap-2 px-3 min-w-0 max-w-[180px] [ -webkit-app-region:no-drag ] shrink-0",)}title={selectedSource}>diff --git a/src/components/launch/UpdateToastWindow.module.css b/src/components/launch/UpdateToastWindow.module.cssindex 5b0c76dd..e043ee67 100644--- a/src/components/launch/UpdateToastWindow.module.css+++ b/src/components/launch/UpdateToastWindow.module.css@@ -9,19 +9,6 @@background: transparent;}-.card {- display: flex;- align-items: flex-start;- gap: 12px;- width: 100%;- padding: 14px;- border: 1px solid hsl(var(--border));- border-radius: 8px;- background: hsl(var(--background));- box-shadow: none;- color: hsl(var(--foreground));-}-.icon {display: flex;align-items: center;@@ -30,13 +17,13 @@width: 32px;height: 32px;border-radius: 7px;- background: hsl(var(--muted));- color: hsl(var(--muted-foreground));+ background: var(--default);+ color: var(--muted-foreground);}.iconError {- background: hsl(var(--destructive) / 0.14);- color: hsl(var(--destructive));+ background: color-mix(in oklab, var(--destructive) 14%, transparent);+ color: var(--destructive);}.content {@@ -61,29 +48,11 @@.content > p {margin: 4px 0 0;- color: hsl(var(--muted-foreground));+ color: var(--muted-foreground);font-size: 12px;line-height: 1.45;}-.version,-.preview {- padding: 2px 6px;- border-radius: 999px;- background: hsl(var(--muted));- color: hsl(var(--muted-foreground));- font-size: 10px;- font-weight: 600;- line-height: 1;-}--.preview {- background: hsl(var(--primary) / 0.12);- color: hsl(var(--primary));- text-transform: uppercase;- letter-spacing: 0.04em;-}-.actions {display: flex;justify-content: flex-end;@@ -91,75 +60,21 @@margin-top: 12px;}-.primaryButton,-.secondaryButton {- height: 30px;- padding: 0 12px;- border-radius: 6px;- font-size: 12px;- font-weight: 600;- cursor: pointer;- transition:- background 140ms ease,- border-color 140ms ease,- transform 140ms ease;-}--.primaryButton:active,-.secondaryButton:active {- transform: translateY(1px);-}--.primaryButton {- border: 1px solid hsl(var(--primary));- background: hsl(var(--primary));- color: hsl(var(--primary-foreground));-}--.primaryButton:hover {- background: hsl(var(--primary) / 0.9);-}--.secondaryButton {- border: 1px solid hsl(var(--input));- background: hsl(var(--background));- color: hsl(var(--muted-foreground));-}--.secondaryButton:hover {- background: hsl(var(--accent));- color: hsl(var(--accent-foreground));-}-.progressBlock {margin-top: 12px;}-.progressTrack {- height: 5px;- overflow: hidden;- border-radius: 999px;- background: hsl(var(--muted));-}--.progressFill {- height: 100%;- border-radius: inherit;- background: hsl(var(--primary));- transition: width 220ms ease;-}-.progressMeta {display: flex;justify-content: space-between;gap: 12px;margin-top: 6px;- color: hsl(var(--muted-foreground));+ color: var(--muted-foreground);font-size: 10px;}.progressMeta strong {- color: hsl(var(--foreground));+ color: var(--foreground);font-weight: 600;}diff --git a/src/components/launch/UpdateToastWindow.tsx b/src/components/launch/UpdateToastWindow.tsxindex 9716ed30..27c87d1f 100644--- a/src/components/launch/UpdateToastWindow.tsx+++ b/src/components/launch/UpdateToastWindow.tsx@@ -1,3 +1,5 @@+import { Card, Chip, ProgressBar } from "@heroui/react";+import { Button } from "@/components/ui/button";import {ArrowClockwiseIcon,CheckCircleIcon,@@ -150,7 +152,7 @@ export function UpdateToastWindow() {return (<div className={`${styles.window} launch-theme`}>- <section className={styles.card} aria-live="polite" aria-label="Recordly update">+ <Card className="w-full flex-row gap-3" aria-live="polite" aria-label="Recordly update"><divclassName={`${styles.icon} ${payload.phase === "error" ? styles.iconError : ""}`}>@@ -160,28 +162,27 @@ export function UpdateToastWindow() {<div className={styles.content}><div className={styles.headingRow}><h1>{getTitle(payload, t)}</h1>- <span className={styles.version}>v{payload.version.replace(/^v/, "")}</span>+ <Chip size="sm">v{payload.version.replace(/^v/, "")}</Chip>{payload.isExperimental ? (- <span className={styles.preview}>+ <Chip size="sm" color="accent">{t("launch.updateToast.experimentalBadge", "Experimental")}- </span>+ </Chip>) : null}{payload.isPreview ? (- <span className={styles.preview}>+ <Chip size="sm" color="accent">{t("launch.updateToast.previewBadge", "Preview")}- </span>+ </Chip>) : null}</div><p>{getDetail(payload, t)}</p>{payload.phase === "downloading" ? (<div className={styles.progressBlock}>- <div className={styles.progressTrack}>- <div- className={styles.progressFill}- style={{ width: `${progress}%` }}- />- </div>+ <ProgressBar aria-label="Downloading update" value={progress}>+ <ProgressBar.Track>+ <ProgressBar.Fill />+ </ProgressBar.Track>+ </ProgressBar><div className={styles.progressMeta}><strong>{progress}%</strong>{progressDetail ? <span>{progressDetail}</span> : null}@@ -189,24 +190,21 @@ export function UpdateToastWindow() {</div>) : (<div className={styles.actions}>- <button+ <Buttontype="button"- className={styles.secondaryButton}+ variant="secondary"+ size="sm"onClick={handleNotNow}>{t("launch.updateToast.notNow", "Not now")}- </button>- <button- type="button"- className={styles.primaryButton}- onClick={handlePrimaryAction}- >+ </Button>+ <Button type="button" size="sm" onClick={handlePrimaryAction}>{getPrimaryLabel(payload, t)}- </button>+ </Button></div>)}</div>- </section>+ </Card></div>);}diff --git a/src/components/launch/hooks/useHudBarDrag.ts b/src/components/launch/hooks/useHudBarDrag.tsindex 9c93aa7f..eae107bd 100644--- a/src/components/launch/hooks/useHudBarDrag.ts+++ b/src/components/launch/hooks/useHudBarDrag.ts@@ -12,9 +12,9 @@ export function useHudBarDrag({hudBarRef,recordingWebcamPreviewContainerRef,}: {- hudContentRef: RefObject<HTMLDivElement>;- hudBarRef: RefObject<HTMLDivElement>;- recordingWebcamPreviewContainerRef: RefObject<HTMLDivElement>;+ hudContentRef: RefObject<HTMLDivElement | null>;+ hudBarRef: RefObject<HTMLDivElement | null>;+ recordingWebcamPreviewContainerRef: RefObject<HTMLDivElement | null>;}) {const [recordingHudOffset, setRecordingHudOffset] = useState(DEFAULT_RECORDING_HUD_OFFSET);const [isHudDragging, setIsHudDragging] = useState(false);diff --git a/src/components/launch/hooks/useLaunchHudInteractionState.ts b/src/components/launch/hooks/useLaunchHudInteractionState.tsindex 7e5bb905..7c4b090d 100644--- a/src/components/launch/hooks/useLaunchHudInteractionState.ts+++ b/src/components/launch/hooks/useLaunchHudInteractionState.ts@@ -32,9 +32,7 @@ export function useLaunchHudInteractionState({const handleMouseOver = (e: globalThis.MouseEvent) => {const target = e.target as HTMLElement | null;if (!target) return;- const isInteractive = !!target.closest(- ".pointer-events-auto, [data-hud-interactive], [data-radix-popper-content-wrapper]",- );+ const isInteractive = !!target.closest(".pointer-events-auto, [data-hud-interactive]");if (isInteractive) {isMouseOverHudRef.current = true;diff --git a/src/components/launch/launchTheme.css b/src/components/launch/launchTheme.cssindex 4adca96d..0b1ad8ae 100644--- a/src/components/launch/launchTheme.css+++ b/src/components/launch/launchTheme.css@@ -1,40 +1,17 @@.launch-theme {- /* Ultra-Refined Light Mode (Premium OS style) */- --launch-surface: #ffffff;- --launch-panel: #f8fafc;- --launch-border: rgba(0, 0, 0, 0.08);- --launch-border-strong: rgba(0, 0, 0, 0.16);- --launch-text: #020617; /* Deepest Navy/Black */- --launch-text-muted: #475569; /* Slate 600 */- --launch-label: #64748b; /* Slate 500 - increased contrast */- --launch-hover: rgba(0, 0, 0, 0.045);- --launch-selected: rgba(37, 99, 235, 0.12); /* Blue 600 at 12% */- --launch-accent: #2563eb; /* Blue 600 */- --launch-accent-soft: #f1f5f9; /* Slate 100 */- --launch-popover-blur: 40px;- --launch-popover-saturate: 200%;- --launch-bar-bg: rgba(255, 255, 255, 0.98);- --launch-bar-border: rgba(0, 0, 0, 0.08);- --launch-bar-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);-- color: var(--launch-text);-}--.dark .launch-theme,-.launch-theme.dark {- /* Dark Mode values */- --launch-surface: rgba(18, 18, 24, 0.97);- --launch-panel: rgba(18, 18, 24, 0.82);- --launch-border: rgba(255, 255, 255, 0.07);- --launch-border-strong: rgba(255, 255, 255, 0.12);- --launch-text: #f3f6ff;- --launch-text-muted: #aab3c7;- --launch-label: #8f99b1;- --launch-hover: rgba(255, 255, 255, 0.1);- --launch-selected: rgba(92, 153, 255, 0.22);- --launch-accent: #3d8bff;- --launch-accent-soft: #dbeafe;- --launch-bar-bg: rgba(18, 18, 24, 0.97);- --launch-bar-border: rgba(255, 255, 255, 0.07);- --launch-bar-shadow: 0 10px 30px rgba(0, 0, 0, 0.24), 0 2px 10px rgba(0, 0, 0, 0.12);+ --launch-surface: var(--overlay);+ --launch-panel: var(--surface);+ --launch-border: var(--border);+ --launch-border-strong: var(--separator);+ --launch-text: var(--foreground);+ --launch-text-muted: var(--muted);+ --launch-label: var(--muted);+ --launch-hover: var(--default-hover);+ --launch-selected: var(--accent-soft);+ --launch-accent: var(--accent);+ --launch-accent-soft: var(--accent-soft);+ --launch-bar-bg: var(--surface);+ --launch-bar-border: var(--border);+ --launch-bar-shadow: var(--surface-shadow);+ color: var(--foreground);}diff --git a/src/components/launch/popovers/PopoverScaffold.tsx b/src/components/launch/popovers/PopoverScaffold.tsxindex 3be3dfcc..538b667a 100644--- a/src/components/launch/popovers/PopoverScaffold.tsx+++ b/src/components/launch/popovers/PopoverScaffold.tsx@@ -1,3 +1,5 @@+import { ToggleButton } from "@heroui/react";+import { Button } from "@/components/ui/button";import { MicrophoneIcon, MicrophoneSlashIcon } from "@phosphor-icons/react";import type { ReactElement, ReactNode } from "react";import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";@@ -21,16 +23,26 @@ export function DropdownItem({children: ReactNode;trailing?: ReactNode;}) {- return (- <button- type="button"- className={`${styles.ddItem} ${selected ? styles.ddItemSelected : ""}`}- onClick={onClick}- >+ const content = (+ <><span className="shrink-0">{icon}</span><span className="truncate">{children}</span>{trailing}- </button>+ </>+ );+ return selected === undefined ? (+ <Button variant="ghost" className="w-full justify-start gap-3" onClick={onClick}>+ {content}+ </Button>+ ) : (+ <ToggleButton+ variant="ghost"+ isSelected={selected}+ className="w-full justify-start gap-3"+ onClick={onClick}+ >+ {content}+ </ToggleButton>);}@@ -49,9 +61,9 @@ export function MicDeviceRow({});return (- <button- type="button"- className={`${styles.ddItem} ${selected ? styles.ddItemSelected : ""}`}+ <ToggleButton+ isSelected={selected}+ className="w-full justify-start gap-3"onClick={onSelect}><span className="shrink-0">@@ -59,7 +71,7 @@ export function MicDeviceRow({</span><span className="truncate flex-1">{device.label}</span><AudioLevelMeter level={level} className="w-16 shrink-0" />- </button>+ </ToggleButton>);}diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsxindex a9ee8293..3052dae5 100644--- a/src/components/ui/accordion.tsx+++ b/src/components/ui/accordion.tsx@@ -1,55 +1,29 @@-import * as AccordionPrimitive from "@radix-ui/react-accordion";-import { CaretDown as ChevronDown } from "@phosphor-icons/react";-import * as React from "react";--import { cn } from "@/lib/utils";--const Accordion = AccordionPrimitive.Root;--const AccordionItem = React.forwardRef<- React.ElementRef<typeof AccordionPrimitive.Item>,- React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>->(({ className, ...props }, ref) => (- <AccordionPrimitive.Item- ref={ref}- className={cn("border-b border-foreground/5", className)}- {...props}- />-));-AccordionItem.displayName = "AccordionItem";--const AccordionTrigger = React.forwardRef<- React.ElementRef<typeof AccordionPrimitive.Trigger>,- React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>->(({ className, children, ...props }, ref) => (- <AccordionPrimitive.Header className="flex">- <AccordionPrimitive.Trigger- ref={ref}- className={cn(- "flex flex-1 items-center justify-between py-3 text-sm font-medium text-foreground transition-all hover:text-foreground [&[data-state=open]>svg]:rotate-180",- className,- )}- {...props}- >- {children}- <ChevronDown className="h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" />- </AccordionPrimitive.Trigger>- </AccordionPrimitive.Header>-));-AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;--const AccordionContent = React.forwardRef<- React.ElementRef<typeof AccordionPrimitive.Content>,- React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>->(({ className, children, ...props }, ref) => (- <AccordionPrimitive.Content- ref={ref}- className="overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"- {...props}- >- <div className={cn("pb-4 pt-0", className)}>{children}</div>- </AccordionPrimitive.Content>-));-AccordionContent.displayName = AccordionPrimitive.Content.displayName;--export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };+import { Accordion as HeroAccordion } from "@heroui/react";+import type { ComponentProps } from "react";+export const Accordion = HeroAccordion;+export const AccordionItem = HeroAccordion.Item;+export function AccordionTrigger({+ children,+ ...props+}: Omit<ComponentProps<typeof HeroAccordion.Trigger>, "children"> & {+ children?: import("react").ReactNode;+}) {+ return (+ <HeroAccordion.Heading>+ <HeroAccordion.Trigger {...props}>+ {children}+ <HeroAccordion.Indicator />+ </HeroAccordion.Trigger>+ </HeroAccordion.Heading>+ );+}+export function AccordionContent({+ children,+ ...props+}: ComponentProps<typeof HeroAccordion.Panel>) {+ return (+ <HeroAccordion.Panel {...props}>+ <HeroAccordion.Body>{children}</HeroAccordion.Body>+ </HeroAccordion.Panel>+ );+}diff --git a/src/components/ui/audio-level-meter.tsx b/src/components/ui/audio-level-meter.tsxindex 55e4bd1e..2df5c10a 100644--- a/src/components/ui/audio-level-meter.tsx+++ b/src/components/ui/audio-level-meter.tsx@@ -1,37 +1,18 @@-interface AudioLevelMeterProps {- level: number;- className?: string;-}--const bars = [- { threshold: 10, height: "30%" },- { threshold: 25, height: "45%" },- { threshold: 45, height: "60%" },- { threshold: 65, height: "75%" },- { threshold: 85, height: "90%" },-];--function getBarColor(level: number, threshold: number) {- if (!level || level < threshold) return "bg-slate-700";- if (threshold > 80) return "bg-red-500";- if (threshold > 60) return "bg-yellow-500";- if (threshold > 40) return "bg-blue-500";- return "bg-blue-400";-}--export function AudioLevelMeter({ level, className = "" }: AudioLevelMeterProps) {+import { Meter } from "@heroui/react";+export function AudioLevelMeter({ level, className }: { level: number; className?: string }) {return (- <div className={`flex items-end justify-between gap-1.5 h-6 ${className}`}>- {bars.map((bar, index) => (- <div- key={index}- className={`flex-1 rounded-sm transition-all duration-100 ease-out ${getBarColor(level, bar.threshold)}`}- style={{- height: level >= bar.threshold ? bar.height : "15%",- opacity: level >= bar.threshold ? 1 : 0.4,- }}- />- ))}- </div>+ <Meter+ aria-label="Microphone level"+ value={Math.min(100, Math.max(0, level))}+ minValue={0}+ maxValue={100}+ size="sm"+ color={level > 85 ? "danger" : level > 65 ? "warning" : "accent"}+ className={className}+ >+ <Meter.Track>+ <Meter.Fill />+ </Meter.Track>+ </Meter>);}diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsxindex 4ad99478..1e46f023 100644--- a/src/components/ui/button.tsx+++ b/src/components/ui/button.tsx@@ -1,66 +1,78 @@-import { Slot } from "@radix-ui/react-slot";-import { cva, type VariantProps } from "class-variance-authority";-import * as React from "react";-+import { Button as HeroButton, type ButtonProps as HeroButtonProps } from "@heroui/react";+import { forwardRef, type ButtonHTMLAttributes } from "react";import { cn } from "@/lib/utils";-const buttonVariants = cva(- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",- {- variants: {- variant: {- default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",- destructive:- "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",- outline:- "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",- secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",- ghost: "hover:bg-accent hover:text-accent-foreground",- link: "text-primary underline-offset-4 hover:underline",- },- size: {- default: "h-9 px-4 py-2",- sm: "h-8 rounded-md px-3 text-xs",- lg: "h-10 rounded-md px-8",- icon: "h-9 w-9",- },- // Special variant for icon buttons with consistent sizing- iconSize: {- default: "[&_svg]:size-4",- sm: "[&_svg]:size-3.5",- lg: "[&_svg]:size-5",- xl: "[&_svg]:size-6",- },- },- defaultVariants: {- variant: "default",- size: "default",- iconSize: "default",- },- },-);-+type Variant =+ | "default"+ | "destructive"+ | "destructive-soft"+ | "outline"+ | "secondary"+ | "ghost"+ | "link";export interface ButtonProps- extends React.ButtonHTMLAttributes<HTMLButtonElement>,- VariantProps<typeof buttonVariants> {- /** Whether to render the button as a child component (useful for composition) */- asChild?: boolean;- /** Size of the icon inside the button */+ extends Omit<+ HeroButtonProps,+ "variant" | "size" | "className" | "children" | "render" | "style"+ >,+ Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof HeroButtonProps | "onChange"> {+ style?: import("react").CSSProperties;+ className?: string;+ children?: import("react").ReactNode;+ disabled?: boolean;+ variant?: Variant;+ size?: "default" | "sm" | "lg" | "icon";iconSize?: "default" | "sm" | "lg" | "xl";+ onPress?: HeroButtonProps["onPress"];}--const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(- ({ className, variant, size, iconSize, asChild = false, ...props }, ref) => {- const Comp = asChild ? Slot : "button";- return (- <Comp- className={cn(buttonVariants({ variant, size, iconSize, className }))}- ref={ref}- {...props}- />- );+const variants = {+ default: "primary",+ destructive: "danger",+ "destructive-soft": "danger-soft",+ outline: "outline",+ secondary: "secondary",+ ghost: "ghost",+ link: "ghost",+} as const;+export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(+ {+ variant = "default",+ size = "default",+ iconSize = "default",+ disabled,+ isDisabled,+ className,+ title,+ ...props},-);-Button.displayName = "Button";--export { Button, buttonVariants };+ ref,+) {+ const shared = {+ ...props,+ ref,+ title,+ "aria-label": props["aria-label"] ?? title,+ isDisabled: disabled ?? isDisabled,+ size: size === "default" || size === "icon" ? ("md" as const) : size,+ isIconOnly: size === "icon",+ className: cn(+ {+ "[&_svg]:size-4": iconSize === "default",+ "[&_svg]:size-3.5": iconSize === "sm",+ "[&_svg]:size-5": iconSize === "lg",+ "[&_svg]:size-6": iconSize === "xl",+ },+ className,+ ),+ };+ return (+ <HeroButton+ {...shared}+ variant={+ props["aria-pressed"] === true && variant === "ghost"+ ? "secondary"+ : variants[variant]+ }+ />+ );+});diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsxindex 2935ed46..f87133aa 100644--- a/src/components/ui/card.tsx+++ b/src/components/ui/card.tsx@@ -1,55 +1,7 @@-import * as React from "react";--import { cn } from "@/lib/utils";--const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(- ({ className, ...props }, ref) => (- <div- ref={ref}- className={cn("rounded-xl border bg-card text-card-foreground shadow", className)}- {...props}- />- ),-);-Card.displayName = "Card";--const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(- ({ className, ...props }, ref) => (- <div ref={ref} className={cn("flex flex-col space-y-1.5 p-6", className)} {...props} />- ),-);-CardHeader.displayName = "CardHeader";--const CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(- ({ className, ...props }, ref) => (- <div- ref={ref}- className={cn("font-semibold leading-none tracking-tight", className)}- {...props}- />- ),-);-CardTitle.displayName = "CardTitle";--const CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(- ({ className, ...props }, ref) => (- <div ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />- ),-);-CardDescription.displayName = "CardDescription";--const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(- ({ className, ...props }, ref) => (- <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />- ),-);-CardContent.displayName = "CardContent";--const CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(- ({ className, ...props }, ref) => (- <div ref={ref} className={cn("flex items-center p-6 pt-0", className)} {...props} />- ),-);-CardFooter.displayName = "CardFooter";--export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };+import { Card as HeroCard } from "@heroui/react";+export const Card = HeroCard;+export const CardHeader = HeroCard.Header;+export const CardTitle = HeroCard.Title;+export const CardDescription = HeroCard.Description;+export const CardContent = HeroCard.Content;+export const CardFooter = HeroCard.Footer;diff --git a/src/components/ui/color-picker.tsx b/src/components/ui/color-picker.tsxnew file mode 100644index 00000000..49357596--- /dev/null+++ b/src/components/ui/color-picker.tsx@@ -0,0 +1,78 @@+import {+ ColorArea,+ ColorField,+ ColorPicker,+ ColorSlider,+ ColorSwatch,+ ColorSwatchPicker,+ Input,+ Label,+ Popover,+} from "@heroui/react";+import { Button } from "./button";++type PaletteProps = {+ color?: string;+ colors: readonly string[];+ onChange: (color: { hex: string }) => void;+ style?: React.CSSProperties;+};+export function ColorPalette({ color = "#000000", colors, onChange }: PaletteProps) {+ return (+ <div className="flex flex-col gap-3">+ <ColorSwatchPicker+ aria-label="Colors"+ value={color}+ onChange={(value) => onChange({ hex: value.toString("hex") })}+ >+ {colors.map((color) => (+ <ColorSwatchPicker.Item key={color} color={color}>+ <ColorSwatchPicker.Swatch className="ring-1 ring-inset ring-foreground/10" />+ <ColorSwatchPicker.Indicator />+ </ColorSwatchPicker.Item>+ ))}+ </ColorSwatchPicker>+ <ColorField+ aria-label="Hex color"+ value={color}+ onChange={(value) => value && onChange({ hex: value.toString("hex") })}+ >+ <Input />+ </ColorField>+ </div>+ );+}+export function ColorControl({+ value,+ onChange,+ label,+}: {+ value: string;+ onChange: (value: string) => void;+ label: string;+}) {+ return (+ <ColorPicker value={value} onChange={(color) => onChange(color.toString("hex"))}>+ <Button variant="secondary" aria-label={label}>+ <ColorSwatch size="sm" />+ {label}+ </Button>+ <ColorPicker.Popover>+ <Popover.Dialog aria-label={label} className="flex w-64 flex-col gap-3">+ <ColorArea colorSpace="hsb" xChannel="saturation" yChannel="brightness">+ <ColorArea.Thumb />+ </ColorArea>+ <ColorSlider colorSpace="hsb" channel="hue">+ <ColorSlider.Track>+ <ColorSlider.Thumb />+ </ColorSlider.Track>+ </ColorSlider>+ <ColorField>+ <Label>{label}</Label>+ <Input />+ </ColorField>+ </Popover.Dialog>+ </ColorPicker.Popover>+ </ColorPicker>+ );+}diff --git a/src/components/ui/content-clamp.tsx b/src/components/ui/content-clamp.tsxindex cb20ae41..f0a8736f 100644--- a/src/components/ui/content-clamp.tsx+++ b/src/components/ui/content-clamp.tsx@@ -1,112 +1,30 @@-"use client";--import * as React from "react";-+import { Tooltip } from "@heroui/react";+import type { HTMLAttributes } from "react";import { cn } from "@/lib/utils";-import { Popover, PopoverArrow, PopoverContent, PopoverTrigger } from "./popover";--interface ContentClampProps extends React.HTMLAttributes<HTMLDivElement> {- children: React.ReactNode;+interface ContentClampProps extends HTMLAttributes<HTMLDivElement> {truncateLength?: number;}--function ContentClamp({ children, className, truncateLength = 50, ...props }: ContentClampProps) {+export function ContentClamp({+ children,+ className,+ truncateLength = 50,+ ...props+}: ContentClampProps) {const text = typeof children === "string" ? children : String(children ?? "");- const isTruncated = text.length > truncateLength;-- const [open, setOpen] = React.useState(false);- const timeoutRef = React.useRef<ReturnType<typeof setTimeout> | null>(null);-- const clearScheduledClose = () => {- if (timeoutRef.current) {- clearTimeout(timeoutRef.current);- timeoutRef.current = null;- }- };-- const openPopover = () => {- clearScheduledClose();- setOpen(true);- };-- const scheduleClose = () => {- clearScheduledClose();- timeoutRef.current = setTimeout(() => {- setOpen(false);- timeoutRef.current = null;- }, 100);- };-- const togglePopover = () => {- clearScheduledClose();- setOpen((currentOpen) => !currentOpen);- };-- const handleKeyDown = (event: React.KeyboardEvent<HTMLSpanElement>) => {- if (event.key !== "Enter" && event.key !== " ") {- return;- }-- event.preventDefault();- togglePopover();- };-- React.useEffect(() => {- return () => {- if (timeoutRef.current) {- clearTimeout(timeoutRef.current);- timeoutRef.current = null;- }- };- }, []);-- if (!isTruncated) {+ if (text.length <= truncateLength)return (<div className={cn("inline", className)} {...props}>{children}</div>);- }-- const truncatedText = text.slice(0, truncateLength) + "...";-return (- <Popover open={open} onOpenChange={setOpen}>- <PopoverTrigger asChild>- <span- className={cn("cursor-help", className)}- onMouseEnter={openPopover}- onMouseLeave={scheduleClose}- onFocus={openPopover}- onBlur={scheduleClose}- onClick={(event) => {- event.preventDefault();- togglePopover();- }}- onKeyDown={handleKeyDown}- role="button"- tabIndex={0}- aria-haspopup="dialog"- aria-expanded={open}- {...props}- >- {truncatedText}+ <Tooltip delay={300}>+ <Tooltip.Trigger>+ <span tabIndex={0} className={cn("cursor-help", className)} {...props}>+ {text.slice(0, truncateLength)}…</span>- </PopoverTrigger>- <PopoverContent- className="w-auto max-w-sm rounded-lg border border-white bg-popover p-3 text-sm text-popover-foreground"- sideOffset={8}- animated={false}- onMouseEnter={openPopover}- onMouseLeave={scheduleClose}- onPointerDownOutside={(e) => e.preventDefault()}- onClick={(e) => e.stopPropagation()}- >- <PopoverArrow className="fill-white" />- {children}- </PopoverContent>- </Popover>+ </Tooltip.Trigger>+ <Tooltip.Content>{text}</Tooltip.Content>+ </Tooltip>);}--export { ContentClamp };diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsxindex fa1ff0c6..5f44a180 100644--- a/src/components/ui/dialog.tsx+++ b/src/components/ui/dialog.tsx@@ -1,105 +1,38 @@-import * as DialogPrimitive from "@radix-ui/react-dialog";-import { X } from "@phosphor-icons/react";-import * as React from "react";-+import { Modal, Description } from "@heroui/react";+import { type ComponentProps, type ReactNode } from "react";+import { useI18n } from "@/contexts/I18nContext";import { cn } from "@/lib/utils";--const Dialog = DialogPrimitive.Root;--const DialogTrigger = DialogPrimitive.Trigger;--const DialogPortal = DialogPrimitive.Portal;--const DialogClose = DialogPrimitive.Close;--const DialogOverlay = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Overlay>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>->(({ className, ...props }, ref) => (- <DialogPrimitive.Overlay- ref={ref}- className={cn(- "fixed inset-0 z-[9999] 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}- />-));-DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;--const DialogContent = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Content>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>->(({ className, children, ...props }, ref) => (- <DialogPortal>- <DialogOverlay />- <DialogPrimitive.Content- ref={ref}- className={cn(- "fixed left-[50%] top-[50%] z-[10000] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",- className,- )}- {...props}- >- {children}- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">- <X className="h-4 w-4" />- <span className="sr-only">Close</span>- </DialogPrimitive.Close>- </DialogPrimitive.Content>- </DialogPortal>-));-DialogContent.displayName = DialogPrimitive.Content.displayName;--const DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (- <div- className={cn("flex flex-col space-y-1.5 text-center sm:text-left", className)}- {...props}- />-);-DialogHeader.displayName = "DialogHeader";--const DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (- <div- className={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)}- {...props}- />-);-DialogFooter.displayName = "DialogFooter";--const DialogTitle = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Title>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>->(({ className, ...props }, ref) => (- <DialogPrimitive.Title- ref={ref}- className={cn("text-lg font-semibold leading-none tracking-tight", className)}- {...props}- />-));-DialogTitle.displayName = DialogPrimitive.Title.displayName;--const DialogDescription = React.forwardRef<- React.ElementRef<typeof DialogPrimitive.Description>,- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>->(({ className, ...props }, ref) => (- <DialogPrimitive.Description- ref={ref}- className={cn("text-sm text-muted-foreground", className)}- {...props}- />-));-DialogDescription.displayName = DialogPrimitive.Description.displayName;--export {- Dialog,- DialogPortal,- DialogOverlay,- DialogTrigger,- DialogClose,- DialogContent,- DialogHeader,- DialogFooter,- DialogTitle,- DialogDescription,-};+export function Dialog({+ open,+ defaultOpen,+ ...props+}: Omit<ComponentProps<typeof Modal>, "isOpen"> & { open?: boolean; defaultOpen?: boolean }) {+ return <Modal {...props} isOpen={open} defaultOpen={defaultOpen} />;+}+export function DialogTrigger({ children }: { asChild?: boolean; children: ReactNode }) {+ return <>{children}</>;+}+export function DialogContent({+ children,+ className,+ ...props+}: Omit<ComponentProps<typeof Modal.Dialog>, "children"> & {+ children?: import("react").ReactNode;+}) {+ const { t } = useI18n();+ return (+ <Modal.Backdrop>+ <Modal.Container size="lg" placement="center">+ <Modal.Dialog {...props} className={cn("w-full gap-4", className)}>+ <Modal.CloseTrigger aria-label={t("common.actions.close", "Close")} />+ {children}+ </Modal.Dialog>+ </Modal.Container>+ </Modal.Backdrop>+ );+}+export const DialogHeader = Modal.Header;+export const DialogFooter = Modal.Footer;+export const DialogTitle = Modal.Heading;+export const DialogDescription = Description;+export const DialogClose = Modal.CloseTrigger;diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsxindex 079b5251..c303ad0e 100644--- a/src/components/ui/dropdown-menu.tsx+++ b/src/components/ui/dropdown-menu.tsx@@ -1,186 +1,58 @@-import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";-import { CaretRight as ChevronRight, Check, Circle } from "@phosphor-icons/react";-import * as React from "react";--import { cn } from "@/lib/utils";--const DropdownMenu = DropdownMenuPrimitive.Root;--const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;--const DropdownMenuGroup = DropdownMenuPrimitive.Group;--const DropdownMenuPortal = DropdownMenuPrimitive.Portal;--const DropdownMenuSub = DropdownMenuPrimitive.Sub;--const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;--const DropdownMenuSubTrigger = React.forwardRef<- React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {- inset?: boolean;- }->(({ className, inset, children, ...props }, ref) => (- <DropdownMenuPrimitive.SubTrigger- ref={ref}- className={cn(- "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",- inset && "pl-8",- className,- )}- {...props}- >- {children}- <ChevronRight className="ml-auto" />- </DropdownMenuPrimitive.SubTrigger>-));-DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;--const DropdownMenuSubContent = React.forwardRef<- React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>->(({ className, ...props }, ref) => (- <DropdownMenuPrimitive.SubContent- ref={ref}- className={cn(- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground 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]",- className,- )}- {...props}- />-));-DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;--const DropdownMenuContent = React.forwardRef<- React.ElementRef<typeof DropdownMenuPrimitive.Content>,- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>->(({ className, sideOffset = 4, ...props }, ref) => (- <DropdownMenuPrimitive.Portal>- <DropdownMenuPrimitive.Content- ref={ref}- sideOffset={sideOffset}- className={cn(- "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground 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-dropdown-menu-content-transform-origin]",- className,- )}+import { Dropdown, Label, Separator, Kbd } from "@heroui/react";+import { type ComponentProps, type ReactNode } from "react";+export function DropdownMenu({+ open,+ modal: _modal,+ ...props+}: Omit<ComponentProps<typeof Dropdown>, "isOpen"> & { open?: boolean; modal?: boolean }) {+ return <Dropdown {...props} isOpen={open} />;+}+export function DropdownMenuTrigger({ children }: { asChild?: boolean; children: ReactNode }) {+ return <>{children}</>;+}+export function DropdownMenuContent({+ children,+ align = "start",+ sideOffset = 8,+ ...props+}: ComponentProps<typeof Dropdown.Popover> & {+ align?: "start" | "end" | "center";+ sideOffset?: number;+}) {+ return (+ <Dropdown.Popover{...props}- />- </DropdownMenuPrimitive.Portal>-));-DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;--const DropdownMenuItem = React.forwardRef<- React.ElementRef<typeof DropdownMenuPrimitive.Item>,- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {- inset?: boolean;- }->(({ className, inset, ...props }, ref) => (- <DropdownMenuPrimitive.Item- ref={ref}- className={cn(- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",- inset && "pl-8",- className,- )}- {...props}- />-));-DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;--const DropdownMenuCheckboxItem = React.forwardRef<- React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>->(({ className, children, checked, ...props }, ref) => (- <DropdownMenuPrimitive.CheckboxItem- ref={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-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",- className,- )}- checked={checked}- {...props}- >- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">- <DropdownMenuPrimitive.ItemIndicator>- <Check className="h-4 w-4" />- </DropdownMenuPrimitive.ItemIndicator>- </span>- {children}- </DropdownMenuPrimitive.CheckboxItem>-));-DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;--const DropdownMenuRadioItem = React.forwardRef<- React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>->(({ className, children, ...props }, ref) => (- <DropdownMenuPrimitive.RadioItem- ref={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-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",- className,- )}- {...props}- >- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">- <DropdownMenuPrimitive.ItemIndicator>- <Circle className="h-2 w-2 fill-current" />- </DropdownMenuPrimitive.ItemIndicator>- </span>- {children}- </DropdownMenuPrimitive.RadioItem>-));-DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;--const DropdownMenuLabel = React.forwardRef<- React.ElementRef<typeof DropdownMenuPrimitive.Label>,- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {- inset?: boolean;- }->(({ className, inset, ...props }, ref) => (- <DropdownMenuPrimitive.Label- ref={ref}- className={cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className)}- {...props}- />-));-DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;--const DropdownMenuSeparator = React.forwardRef<- React.ElementRef<typeof DropdownMenuPrimitive.Separator>,- React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>->(({ className, ...props }, ref) => (- <DropdownMenuPrimitive.Separator- ref={ref}- className={cn("-mx-1 my-1 h-px bg-muted", className)}- {...props}- />-));-DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;--const DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {+ placement={align === "center" ? "bottom" : `bottom ${align}`}+ offset={sideOffset}+ >+ <Dropdown.Menu aria-label="Actions">{children}</Dropdown.Menu>+ </Dropdown.Popover>+ );+}+export function DropdownMenuItem({+ onSelect,+ disabled,+ children,+ ...props+}: Omit<ComponentProps<typeof Dropdown.Item>, "onSelect"> & {+ onSelect?: (event: Event) => void;+ disabled?: boolean;+}) {return (- <span className={cn("ml-auto text-xs tracking-widest opacity-60", className)} {...props} />+ <Dropdown.Item+ {...props}+ isDisabled={disabled}+ textValue={+ props.textValue ??+ (typeof children === "string" ? children : String(props.id ?? "Action"))+ }+ onAction={() => onSelect?.(new Event("select"))}+ >+ {children}+ </Dropdown.Item>);-};-DropdownMenuShortcut.displayName = "DropdownMenuShortcut";--export {- DropdownMenu,- DropdownMenuTrigger,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuCheckboxItem,- DropdownMenuRadioItem,- DropdownMenuLabel,- DropdownMenuSeparator,- DropdownMenuShortcut,- DropdownMenuGroup,- DropdownMenuPortal,- DropdownMenuSub,- DropdownMenuSubContent,- DropdownMenuSubTrigger,- DropdownMenuRadioGroup,-};+}+export const DropdownMenuGroup = Dropdown.Section;+export const DropdownMenuLabel = Label;+export const DropdownMenuSeparator = Separator;+export const DropdownMenuShortcut = Kbd;diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsxindex 68ac869e..d28bcaef 100644--- a/src/components/ui/input.tsx+++ b/src/components/ui/input.tsx@@ -1,23 +1,2 @@-import * as React from "react";-import { cn } from "@/lib/utils";--export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}--const Input = React.forwardRef<HTMLInputElement, InputProps>(- ({ className, type, ...props }, ref) => {- return (- <input- type={type}- className={cn(- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",- className,- )}- ref={ref}- {...props}- />- );- },-);-Input.displayName = "Input";--export { Input };+export { Input, TextArea } from "@heroui/react";+export type { InputProps } from "@heroui/react";diff --git a/src/components/ui/item-content.tsx b/src/components/ui/item-content.tsxindex 8e2aef02..f0d1e3d3 100644--- a/src/components/ui/item-content.tsx+++ b/src/components/ui/item-content.tsx@@ -1,4 +1,5 @@import type { PropsWithChildren } from "react";+import { Card } from "@/components/ui/card";interface ItemContentProps extends PropsWithChildren {classes: string;@@ -6,12 +7,12 @@ interface ItemContentProps extends PropsWithChildren {function ItemContent({ children, classes }: ItemContentProps) {return (- <div- className={`bg-foreground/5 border border-foreground/10 rounded-md shadow-sm w-full flex flex-row items-center px-3 py-1 gap-2 transition-all duration-150 hover:bg-[#2563EB]/10 hover:shadow-lg ${classes}`}+ <Card+ className={`w-full flex flex-row items-center px-3 py-1 gap-2 ${classes}`}style={{ minHeight: 40 }}>{children}- </div>+ </Card>);}diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsxindex fd6cbcc8..482f1728 100644--- a/src/components/ui/label.tsx+++ b/src/components/ui/label.tsx@@ -1,20 +1 @@-import * as React from "react";-import { cn } from "@/lib/utils";--export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {}--const Label = React.forwardRef<HTMLLabelElement, LabelProps>(({ className, ...props }, ref) => {- return (- <label- ref={ref}- className={cn(- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",- className,- )}- {...props}- />- );-});-Label.displayName = "Label";--export { Label };+export { Label } from "@heroui/react";diff --git a/src/components/ui/popover.tsx b/src/components/ui/popover.tsxindex cd6bb4ae..c34e20ea 100644--- a/src/components/ui/popover.tsx+++ b/src/components/ui/popover.tsx@@ -1,70 +1,72 @@-"use client";--import * as PopoverPrimitive from "@radix-ui/react-popover";-import * as React from "react";-+import { Popover as HeroPopover } from "@heroui/react";+import { createContext, useContext, type ComponentProps, type ReactNode } from "react";import { cn } from "@/lib/utils";--function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {- return <PopoverPrimitive.Root data-slot="popover" {...props} />;-}--function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {- return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;-}--function PopoverContent({- className,- align = "center",- sideOffset = 4,- animated = true,- usePortal = true,- unstyled = false,+const ModalContext = createContext(true);+export function Popover({+ open,+ modal = true,+ children,...props-}: React.ComponentProps<typeof PopoverPrimitive.Content> & {- animated?: boolean;- usePortal?: boolean;- unstyled?: boolean;-}) {- const content = (- <PopoverPrimitive.Content- data-slot="popover-content"- align={align}- sideOffset={sideOffset}- className={cn(- !unstyled &&- "bg-popover text-popover-foreground z-50 w-72 rounded-md border p-4 shadow-md outline-hidden",- unstyled && "z-50 outline-hidden",- animated &&- "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)",- className,- )}- {...props}- />+}: Omit<ComponentProps<typeof HeroPopover>, "isOpen"> & { open?: boolean; modal?: boolean }) {+ return (+ <ModalContext.Provider value={modal}>+ <HeroPopover {...props} isOpen={open}>+ {children}+ </HeroPopover>+ </ModalContext.Provider>);-- if (usePortal === false) {- return content;- }-- return <PopoverPrimitive.Portal>{content}</PopoverPrimitive.Portal>;}--function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {- return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />;+export function PopoverTrigger({ children }: { asChild?: boolean; children: ReactNode }) {+ return <>{children}</>;}--function PopoverArrow({+type ContentProps = Omit<ComponentProps<typeof HeroPopover.Content>, "children"> & {+ children: ReactNode;+ align?: "start" | "center" | "end";+ side?: "top" | "bottom" | "left" | "right";+ alignOffset?: number;+ sideOffset?: number;+ avoidCollisions?: boolean;+ collisionPadding?: number;+ usePortal?: boolean;+ unstyled?: boolean;+ animated?: boolean;+};+export function PopoverContent({+ children,className,+ side = "bottom",+ align = "center",+ sideOffset = 8,+ alignOffset = 0,+ avoidCollisions = true,+ collisionPadding = 12,+ usePortal = true,+ unstyled: _unstyled,+ animated: _animated,...props-}: React.ComponentProps<typeof PopoverPrimitive.Arrow>) {+}: ContentProps) {+ const modal = useContext(ModalContext);+ const placement = (align === "center" ? side : `${side} ${align}`) as ComponentProps<+ typeof HeroPopover.Content+ >["placement"];return (- <PopoverPrimitive.Arrow- data-slot="popover-arrow"- className={cn("fill-popover", className)}+ <HeroPopover.Content{...props}- />+ placement={placement}+ offset={sideOffset}+ crossOffset={alignOffset}+ shouldFlip={avoidCollisions}+ containerPadding={collisionPadding}+ isNonModal={!modal}+ UNSTABLE_portalContainer={+ usePortal ? undefined : (document.getElementById("root") ?? undefined)+ }+ className={cn("max-w-[calc(100vw-24px)]", className)}+ >+ <HeroPopover.Dialog aria-label={props["aria-label"] ?? "Options"}>+ {children}+ </HeroPopover.Dialog>+ </HeroPopover.Content>);}--export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverArrow };+export const PopoverArrow = HeroPopover.Arrow;diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsxindex 55597aeb..1ba4eeca 100644--- a/src/components/ui/select.tsx+++ b/src/components/ui/select.tsx@@ -1,153 +1,90 @@-"use client";--import * as SelectPrimitive from "@radix-ui/react-select";-import { CaretDown as ChevronDown, CaretUp as ChevronUp, Check } from "@phosphor-icons/react";-import * as React from "react";-+import { Select as HeroSelect, ListBox, Label, Separator } from "@heroui/react";+import { type ComponentProps, type ReactNode } from "react";import { cn } from "@/lib/utils";--const Select = SelectPrimitive.Root;--const SelectGroup = SelectPrimitive.Group;--const SelectValue = SelectPrimitive.Value;--const SelectTrigger = React.forwardRef<- React.ElementRef<typeof SelectPrimitive.Trigger>,- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>->(({ className, children, ...props }, ref) => (- <SelectPrimitive.Trigger- ref={ref}- className={cn(- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",- className,- )}- {...props}- >- {children}- <SelectPrimitive.Icon asChild>- <ChevronDown className="h-4 w-4 opacity-50" />- </SelectPrimitive.Icon>- </SelectPrimitive.Trigger>-));-SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;--const SelectScrollUpButton = React.forwardRef<- React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,- React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>->(({ className, ...props }, ref) => (- <SelectPrimitive.ScrollUpButton- ref={ref}- className={cn("flex cursor-default items-center justify-center py-1", className)}- {...props}- >- <ChevronUp className="h-4 w-4" />- </SelectPrimitive.ScrollUpButton>-));-SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;--const SelectScrollDownButton = React.forwardRef<- React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,- React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>->(({ className, ...props }, ref) => (- <SelectPrimitive.ScrollDownButton- ref={ref}- className={cn("flex cursor-default items-center justify-center py-1", className)}- {...props}- >- <ChevronDown className="h-4 w-4" />- </SelectPrimitive.ScrollDownButton>-));-SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;--const SelectContent = React.forwardRef<- React.ElementRef<typeof SelectPrimitive.Content>,- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>->(({ className, children, position = "popper", ...props }, ref) => (- <SelectPrimitive.Portal>- <SelectPrimitive.Content- ref={ref}- className={cn(- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground 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",- position === "popper" &&- "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",- className,- )}- position={position}+export function Select({+ value,+ defaultValue,+ onValueChange,+ disabled,+ children,+ ...props+}: Omit<ComponentProps<typeof HeroSelect>, "value" | "defaultValue" | "onChange" | "children"> & {+ value?: string;+ defaultValue?: string;+ onValueChange?: (value: string) => void;+ disabled?: boolean;+ children: ReactNode;+}) {+ return (+ <HeroSelect{...props}+ aria-label={props["aria-label"] ?? "Select option"}+ value={value || null}+ defaultValue={defaultValue}+ onChange={(key) => onValueChange?.(String(key ?? ""))}+ isDisabled={disabled}>- <SelectScrollUpButton />- <SelectPrimitive.Viewport- className={cn(- "p-1",- position === "popper" &&- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",- )}- >- {children}- </SelectPrimitive.Viewport>- <SelectScrollDownButton />- </SelectPrimitive.Content>- </SelectPrimitive.Portal>-));-SelectContent.displayName = SelectPrimitive.Content.displayName;--const SelectLabel = React.forwardRef<- React.ElementRef<typeof SelectPrimitive.Label>,- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>->(({ className, ...props }, ref) => (- <SelectPrimitive.Label- ref={ref}- className={cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)}- {...props}- />-));-SelectLabel.displayName = SelectPrimitive.Label.displayName;--const SelectItem = React.forwardRef<- React.ElementRef<typeof SelectPrimitive.Item>,- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>->(({ className, children, ...props }, ref) => (- <SelectPrimitive.Item- ref={ref}- className={cn(- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",- className,- )}- {...props}- >- <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">- <SelectPrimitive.ItemIndicator>- <Check className="h-4 w-4" />- </SelectPrimitive.ItemIndicator>- </span>-- <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>- </SelectPrimitive.Item>-));-SelectItem.displayName = SelectPrimitive.Item.displayName;--const SelectSeparator = React.forwardRef<- React.ElementRef<typeof SelectPrimitive.Separator>,- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>->(({ className, ...props }, ref) => (- <SelectPrimitive.Separator- ref={ref}- className={cn("-mx-1 my-1 h-px bg-muted", className)}- {...props}- />-));-SelectSeparator.displayName = SelectPrimitive.Separator.displayName;--export {- Select,- SelectGroup,- SelectValue,- SelectTrigger,- SelectContent,- SelectLabel,- SelectItem,- SelectSeparator,- SelectScrollUpButton,- SelectScrollDownButton,-};+ {children}+ </HeroSelect>+ );+}+export function SelectTrigger({+ children,+ ...props+}: Omit<ComponentProps<typeof HeroSelect.Trigger>, "children"> & {+ children?: import("react").ReactNode;+}) {+ return (+ <HeroSelect.Trigger {...props}>+ {children}+ <HeroSelect.Indicator />+ </HeroSelect.Trigger>+ );+}+export function SelectValue({+ placeholder,+ ...props+}: ComponentProps<typeof HeroSelect.Value> & { placeholder?: string }) {+ return (+ <HeroSelect.Value {...props}>+ {({ selectedText }) => selectedText || placeholder || "Select"}+ </HeroSelect.Value>+ );+}+export function SelectContent({+ children,+ className,+ ...props+}: ComponentProps<typeof HeroSelect.Popover>) {+ return (+ <HeroSelect.Popover {...props} className={cn("max-h-80", className)}>+ <ListBox>{children}</ListBox>+ </HeroSelect.Popover>+ );+}+export function SelectItem({+ value,+ disabled,+ children,+ ...props+}: Omit<+ Omit<ComponentProps<typeof ListBox.Item>, "children"> & {+ children?: import("react").ReactNode;+ },+ "id"+> & { value: string; disabled?: boolean }) {+ return (+ <ListBox.Item+ {...props}+ id={value}+ textValue={props.textValue ?? (typeof children === "string" ? children : value)}+ isDisabled={disabled}+ >+ {children}+ <ListBox.ItemIndicator />+ </ListBox.Item>+ );+}+export const SelectGroup = ListBox.Section;+export const SelectLabel = Label;+export const SelectSeparator = Separator;diff --git a/src/components/ui/separator.tsx b/src/components/ui/separator.tsxindex 918798b3..ec973fc1 100644--- a/src/components/ui/separator.tsx+++ b/src/components/ui/separator.tsx@@ -1,26 +1 @@-import { cn } from "@/lib/utils";--interface SeparatorProps {- /** Orientation of the separator */- orientation?: "horizontal" | "vertical";- /** Additional CSS classes */- className?: string;-}--/**- * A reusable separator component that can be used as a horizontal or vertical divider.- * Replaces the inline div separators used throughout the application.- */-export function Separator({ orientation = "horizontal", className }: SeparatorProps) {- return (- <div- role="separator"- aria-orientation={orientation}- className={cn(- "bg-separator",- orientation === "horizontal" ? "h-px w-full" : "w-px h-full",- className,- )}- />- );-}+export { Separator } from "@heroui/react";diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsxindex 93a64749..9a08e259 100644--- a/src/components/ui/skeleton.tsx+++ b/src/components/ui/skeleton.tsx@@ -1,82 +1 @@-import * as React from "react";-import { cva, type VariantProps } from "class-variance-authority";-import { cn } from "@/lib/utils";--const skeletonVariants = cva(- "relative overflow-hidden rounded-md transition-shadow flex items-center justify-center",- {- variants: {- variant: {- default: "bg-muted/40",- glass: "bg-white/5 backdrop-blur-sm border border-white/10",- dark: "bg-black/20",- subtle: "bg-foreground/[0.03]",- clip: "bg-primary/5 border border-primary/10 shadow-inner",- },- animation: {- none: "",- pulse: "animate-pulse",- shimmer:- "before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:bg-gradient-to-r before:from-transparent before:via-foreground/[0.05] before:to-transparent",- "shimmer-glass":- "before:absolute before:inset-0 before:-translate-x-full before:animate-shimmer before:bg-gradient-to-r before:from-transparent before:via-white/[0.08] before:to-transparent",- "shimmer-premium":- "before:absolute before:inset-0 before:-translate-x-full before:animate-[shimmer_1.5s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/[0.1] before:to-transparent",- },- },- defaultVariants: {- variant: "default",- animation: "shimmer",- },- },-);--export interface SkeletonProps- extends React.HTMLAttributes<HTMLDivElement>,- VariantProps<typeof skeletonVariants> {- label?: string;-}--/**- * A magnificent Skeleton component designed with Apple-inspired aesthetics.- * Supports shimmer animations, pulse effects, and labels.- */-const Skeleton = React.forwardRef<HTMLDivElement, SkeletonProps>(- ({ className, variant, animation, label, children, ...props }, ref) => {- return (- <div- ref={ref}- className={cn(skeletonVariants({ variant, animation, className }))}- {...props}- >- {(label || children) && (- <div className="relative z-10 flex flex-col items-center gap-2 px-4 py-2">- {label && (- <div className="flex items-center">- {label.split("").map((char, i) => (- <span- key={i}- className={cn(- "text-[11px] font-medium tracking-tight bg-gradient-to-r from-foreground/30 via-foreground/70 to-foreground/30 bg-clip-text text-transparent animate-text-shimmer whitespace-pre",- )}- style={{- animationDelay: `${i * 0.05}s`,- animationDuration: "2.5s",- }}- >- {char}- </span>- ))}- </div>- )}- {children}- </div>- )}- </div>- );- },-);--Skeleton.displayName = "Skeleton";--export { Skeleton, skeletonVariants };+export { Skeleton } from "@heroui/react";diff --git a/src/components/ui/slider.tsx b/src/components/ui/slider.tsxindex ecf72005..93279f6b 100644--- a/src/components/ui/slider.tsx+++ b/src/components/ui/slider.tsx@@ -1,23 +1,39 @@-import * as SliderPrimitive from "@radix-ui/react-slider";-import * as React from "react";+import { Slider as HeroSlider } from "@heroui/react";+import { forwardRef, type ComponentProps } from "react";-import { cn } from "@/lib/utils";--const Slider = React.forwardRef<- React.ElementRef<typeof SliderPrimitive.Root>,- React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>->(({ className, ...props }, ref) => (- <SliderPrimitive.Root- ref={ref}- className={cn("relative flex w-full touch-none select-none items-center", className)}- {...props}- >- <SliderPrimitive.Track className="relative h-2.5 w-full grow overflow-hidden rounded-full bg-foreground/10">- <SliderPrimitive.Range className="absolute h-full bg-[#2563EB]" />- </SliderPrimitive.Track>- <SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-[#2563EB] bg-[#2563EB] shadow transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#2563EB]/50 disabled:pointer-events-none disabled:opacity-50" />- </SliderPrimitive.Root>-));-Slider.displayName = SliderPrimitive.Root.displayName;--export { Slider };+type SliderProps = Omit<+ Omit<ComponentProps<typeof HeroSlider>, "children"> & { children?: import("react").ReactNode },+ "onChange" | "onChangeEnd" | "value" | "defaultValue"+> & {+ value?: number[];+ defaultValue?: number[];+ min?: number;+ max?: number;+ disabled?: boolean;+ onValueChange?: (value: number[]) => void;+ onValueCommit?: (value: number[]) => void;+};+export const Slider = forwardRef<HTMLDivElement, SliderProps>(function Slider(+ { min, max, disabled, onValueChange, onValueCommit, children, ...props },+ ref,+) {+ return (+ <HeroSlider+ {...props}+ ref={ref}+ minValue={min}+ maxValue={max}+ isDisabled={disabled}+ onChange={(value) => onValueChange?.(Array.isArray(value) ? value : [value])}+ onChangeEnd={(value) => onValueCommit?.(Array.isArray(value) ? value : [value])}+ >+ {children}+ <HeroSlider.Track>+ <HeroSlider.Fill />+ {(props.value ?? props.defaultValue ?? [0]).map((_, index) => (+ <HeroSlider.Thumb key={index} index={index} />+ ))}+ </HeroSlider.Track>+ </HeroSlider>+ );+});diff --git a/src/components/ui/sonner.tsx b/src/components/ui/sonner.tsxdeleted file mode 100644index 42ee8ac4..00000000--- a/src/components/ui/sonner.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { Toaster as Sonner } from "sonner";-import { cn } from "@/lib/utils";--type ToasterProps = React.ComponentProps<typeof Sonner>;--const Toaster = ({ className, ...props }: ToasterProps) => {- return (- <Sonner- className={cn("toaster group", className)}- duration={3000}- toastOptions={{- classNames: {- toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",- description: "group-[.toast]:text-muted-foreground",- actionButton:- "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",- cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",- },- }}- {...props}- />- );-};--export { Toaster };diff --git a/src/components/ui/switch.tsx b/src/components/ui/switch.tsxindex 4e9b838d..a39a014e 100644--- a/src/components/ui/switch.tsx+++ b/src/components/ui/switch.tsx@@ -1,30 +1,36 @@-import * as SwitchPrimitives from "@radix-ui/react-switch";-import * as React from "react";--import { cn } from "@/lib/utils";--const Switch = React.forwardRef<- React.ElementRef<typeof SwitchPrimitives.Root>,- React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>->(({ className, ...props }, ref) => (- <SwitchPrimitives.Root- className={cn(- "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",- "data-[state=checked]:bg-[#2563EB] data-[state=unchecked]:bg-muted",- className,- )}- {...props}- ref={ref}- >- <SwitchPrimitives.Thumb- className={cn(- "pointer-events-none block h-4 w-4 rounded-full shadow-lg ring-0 transition-transform",- "bg-background",- "data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",- )}- />- </SwitchPrimitives.Root>-));-Switch.displayName = SwitchPrimitives.Root.displayName;--export { Switch };+import { Switch as HeroSwitch } from "@heroui/react";+import { type ComponentProps } from "react";+type SwitchProps = Omit<+ Omit<ComponentProps<typeof HeroSwitch>, "children"> & { children?: import("react").ReactNode },+ "onChange"+> & {+ checked?: boolean;+ defaultChecked?: boolean;+ onCheckedChange?: (checked: boolean) => void;+ disabled?: boolean;+};+export function Switch({+ checked,+ defaultChecked,+ onCheckedChange,+ disabled,+ children,+ ...props+}: SwitchProps) {+ return (+ <HeroSwitch+ {...props}+ isSelected={checked}+ defaultSelected={defaultChecked}+ onChange={onCheckedChange}+ isDisabled={disabled}+ >+ <HeroSwitch.Content>+ <HeroSwitch.Control>+ <HeroSwitch.Thumb />+ </HeroSwitch.Control>+ {children}+ </HeroSwitch.Content>+ </HeroSwitch>+ );+}diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsxindex dbee684c..7e73aa32 100644--- a/src/components/ui/tabs.tsx+++ b/src/components/ui/tabs.tsx@@ -1,53 +1,48 @@-import * as TabsPrimitive from "@radix-ui/react-tabs";-import * as React from "react";--import { cn } from "@/lib/utils";--const Tabs = TabsPrimitive.Root;--const TabsList = React.forwardRef<- React.ElementRef<typeof TabsPrimitive.List>,- React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>->(({ className, ...props }, ref) => (- <TabsPrimitive.List- ref={ref}- className={cn(- "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",- className,- )}- {...props}- />-));-TabsList.displayName = TabsPrimitive.List.displayName;--const TabsTrigger = React.forwardRef<- React.ElementRef<typeof TabsPrimitive.Trigger>,- React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>->(({ className, ...props }, ref) => (- <TabsPrimitive.Trigger- ref={ref}- className={cn(- "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",- className,- )}- {...props}- />-));-TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;--const TabsContent = React.forwardRef<- React.ElementRef<typeof TabsPrimitive.Content>,- React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>->(({ className, ...props }, ref) => (- <TabsPrimitive.Content- ref={ref}- className={cn(- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",- className,- )}- {...props}- />-));-TabsContent.displayName = TabsPrimitive.Content.displayName;--export { Tabs, TabsList, TabsTrigger, TabsContent };+import { Tabs as HeroTabs } from "@heroui/react";+import { type ComponentProps } from "react";+type TabsProps = Omit<ComponentProps<typeof HeroTabs>, "onSelectionChange"> & {+ value?: string;+ defaultValue?: string;+ onValueChange?: (value: string) => void;+};+export function Tabs({ value, defaultValue, onValueChange, ...props }: TabsProps) {+ return (+ <HeroTabs+ {...props}+ selectedKey={value}+ defaultSelectedKey={defaultValue}+ onSelectionChange={(key) => onValueChange?.(String(key))}+ />+ );+}+export function TabsList(props: ComponentProps<typeof HeroTabs.List>) {+ return (+ <HeroTabs.ListContainer>+ <HeroTabs.List {...props} />+ </HeroTabs.ListContainer>+ );+}+export function TabsTrigger({+ value,+ disabled,+ children,+ ...props+}: Omit<+ Omit<ComponentProps<typeof HeroTabs.Tab>, "children"> & {+ children?: import("react").ReactNode;+ },+ "id"+> & { value: string; disabled?: boolean }) {+ return (+ <HeroTabs.Tab {...props} id={value} isDisabled={disabled}>+ {children}+ <HeroTabs.Indicator />+ </HeroTabs.Tab>+ );+}+export function TabsContent({+ value,+ ...props+}: Omit<ComponentProps<typeof HeroTabs.Panel>, "id"> & { value: string }) {+ return <HeroTabs.Panel {...props} id={value} />;+}diff --git a/src/components/ui/toast.tsx b/src/components/ui/toast.tsxnew file mode 100644index 00000000..a38340dd--- /dev/null+++ b/src/components/ui/toast.tsx@@ -0,0 +1,85 @@+import { Toast, ToastQueue } from "@heroui/react";+import type { ReactNode } from "react";++type ToastContent = {+ title: ReactNode;+ description?: ReactNode;+ variant: "default" | "accent" | "success" | "warning" | "danger";+ action?: { label: ReactNode; onClick: () => void };+ closeButton?: boolean;+};+type Options = {+ id?: string | number;+ description?: ReactNode;+ duration?: number;+ closeButton?: boolean;+ action?: { label: ReactNode; onClick: () => void };+ onDismiss?: () => void;+};+const queue = new ToastQueue<ToastContent>();+const ids = new Map<string | number, string>();+function notify(+ title: ReactNode,+ options: Options = {},+ variant: ToastContent["variant"] = "default",+) {+ const content = {+ title,+ description: options.description,+ variant,+ action: options.action,+ closeButton: options.closeButton,+ };+ const timeout = options.duration === Infinity ? 0 : (options.duration ?? 4000);+ const onClose = () => {+ if (options.id !== undefined) ids.delete(options.id);+ options.onDismiss?.();+ };+ const previous = options.id === undefined ? undefined : ids.get(options.id);+ if (previous && queue.update(previous, content, { timeout, onClose })) return previous;+ const key = queue.add(content, { timeout, onClose });+ if (options.id !== undefined) ids.set(options.id, key);+ return key;+}+export const toast = Object.assign(notify, {+ success: (message: ReactNode, options?: Options) => notify(message, options, "success"),+ error: (message: ReactNode, options?: Options) => notify(message, options, "danger"),+ info: (message: ReactNode, options?: Options) => notify(message, options, "accent"),+ warning: (message: ReactNode, options?: Options) => notify(message, options, "warning"),+ dismiss: (id?: string | number) => {+ if (id === undefined) {+ queue.clear();+ ids.clear();+ } else queue.close(ids.get(id) ?? String(id));+ },+});+export function Toaster({ className }: { className?: string }) {+ return (+ <Toast.Provider queue={queue} placement="bottom end" className={className}>+ {({ toast: item }) => (+ <Toast toast={item} variant={item.content.variant}>+ <Toast.Content>+ <Toast.Indicator />+ <div className="min-w-0 flex-1">+ <Toast.Title>{item.content.title}</Toast.Title>+ {item.content.description && (+ <Toast.Description>{item.content.description}</Toast.Description>+ )}+ </div>+ {item.content.action && (+ <Toast.ActionButton+ onPress={() => {+ item.content.action?.onClick();+ queue.close(item.key);+ }}+ >+ {item.content.action.label}+ </Toast.ActionButton>+ )}+ {item.content.closeButton !== false && <Toast.CloseButton />}+ </Toast.Content>+ </Toast>+ )}+ </Toast.Provider>+ );+}diff --git a/src/components/ui/toggle-group.tsx b/src/components/ui/toggle-group.tsxindex 9077e473..595e8d4b 100644--- a/src/components/ui/toggle-group.tsx+++ b/src/components/ui/toggle-group.tsx@@ -1,58 +1,52 @@-"use client";--import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";-import { type VariantProps } from "class-variance-authority";-import * as React from "react";-import { toggleVariants } from "@/components/ui/toggle";-import { cn } from "@/lib/utils";--const ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({- size: "default",- variant: "default",-});--const ToggleGroup = React.forwardRef<- React.ElementRef<typeof ToggleGroupPrimitive.Root>,- React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &- VariantProps<typeof toggleVariants>->(({ className, variant, size, children, ...props }, ref) => (- <ToggleGroupPrimitive.Root- ref={ref}- className={cn("flex items-center justify-center gap-1", className)}- {...props}- >- <ToggleGroupContext.Provider value={{ variant, size }}>- {children}- </ToggleGroupContext.Provider>- </ToggleGroupPrimitive.Root>-));--ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;--const ToggleGroupItem = React.forwardRef<- React.ElementRef<typeof ToggleGroupPrimitive.Item>,- React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &- VariantProps<typeof toggleVariants>->(({ className, children, variant, size, ...props }, ref) => {- const context = React.useContext(ToggleGroupContext);-+import { ToggleButtonGroup, ToggleButton } from "@heroui/react";+import { type ComponentProps } from "react";+type Props = Omit<ComponentProps<typeof ToggleButtonGroup>, "onSelectionChange" | "size"> & {+ value?: string | string[];+ defaultValue?: string | string[];+ disabled?: boolean;+ size?: "default" | "sm" | "lg";+ variant?: "default" | "outline";+} & (+ | { type: "single"; onValueChange?: (value: string) => void }+ | { type: "multiple"; onValueChange?: (value: string[]) => void }+ );+const keys = (value?: string | string[]) =>+ value === undefined ? undefined : Array.isArray(value) ? value : value ? [value] : [];+export function ToggleGroup({+ type,+ value,+ defaultValue,+ onValueChange,+ disabled,+ size,+ variant: _variant,+ ...props+}: Props) {return (- <ToggleGroupPrimitive.Item- ref={ref}- className={cn(- toggleVariants({- variant: context.variant || variant,- size: context.size || size,- }),- className,- )}+ <ToggleButtonGroup{...props}- >- {children}- </ToggleGroupPrimitive.Item>+ selectionMode={type}+ selectedKeys={keys(value)}+ defaultSelectedKeys={keys(defaultValue)}+ isDisabled={disabled}+ size={size === "default" ? "md" : size}+ onSelectionChange={(selection) => {+ const values = Array.from(selection, String);+ if (type === "single")+ (onValueChange as ((v: string) => void) | undefined)?.(values[0] ?? "");+ else (onValueChange as ((v: string[]) => void) | undefined)?.(values);+ }}+ />);-});--ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;--export { ToggleGroup, ToggleGroupItem };+}+export function ToggleGroupItem({+ value,+ disabled,+ ...props+}: Omit<ComponentProps<typeof ToggleButton>, "id"> & {+ value: string;+ disabled?: boolean;+ title?: string;+}) {+ return <ToggleButton {...props} id={value} isDisabled={disabled} />;+}diff --git a/src/components/ui/toggle.tsx b/src/components/ui/toggle.tsxindex 4a2cc68c..23d787d8 100644--- a/src/components/ui/toggle.tsx+++ b/src/components/ui/toggle.tsx@@ -1,45 +1,21 @@-"use client";--import * as TogglePrimitive from "@radix-ui/react-toggle";-import { cva, type VariantProps } from "class-variance-authority";-import * as React from "react";--import { cn } from "@/lib/utils";--const toggleVariants = cva(- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",- {- variants: {- variant: {- default: "bg-transparent",- outline:- "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",- },- size: {- default: "h-10 px-3",- sm: "h-9 px-2.5",- lg: "h-11 px-5",- },- },- defaultVariants: {- variant: "default",- size: "default",- },- },-);--const Toggle = React.forwardRef<- React.ElementRef<typeof TogglePrimitive.Root>,- React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &- VariantProps<typeof toggleVariants>->(({ className, variant, size, ...props }, ref) => (- <TogglePrimitive.Root- ref={ref}- className={cn(toggleVariants({ variant, size, className }))}- {...props}- />-));--Toggle.displayName = TogglePrimitive.Root.displayName;--export { Toggle, toggleVariants };+import { ToggleButton } from "@heroui/react";+import type { ComponentProps } from "react";+type Props = Omit<ComponentProps<typeof ToggleButton>, "size" | "variant"> & {+ pressed?: boolean;+ onPressedChange?: (value: boolean) => void;+ disabled?: boolean;+ size?: "default" | "sm" | "lg";+ variant?: "default" | "outline";+};+export function Toggle({ pressed, onPressedChange, disabled, size, variant, ...props }: Props) {+ return (+ <ToggleButton+ {...props}+ isSelected={pressed}+ onChange={onPressedChange}+ isDisabled={disabled}+ size={size === "default" ? "md" : size}+ variant={variant === "outline" ? "default" : "ghost"}+ />+ );+}diff --git a/src/components/video-editor/AddCustomFontDialog.tsx b/src/components/video-editor/AddCustomFontDialog.tsxindex 2fe3aac6..ae57094b 100644--- a/src/components/video-editor/AddCustomFontDialog.tsx+++ b/src/components/video-editor/AddCustomFontDialog.tsx@@ -1,6 +1,6 @@import { Plus } from "@phosphor-icons/react";import { useState } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { Button } from "@/components/ui/button";import {Dialog,@@ -131,16 +131,12 @@ export function AddCustomFontDialog({ onFontAdded }: AddCustomFontDialogProps) {return (<Dialog open={open} onOpenChange={handleOpenChange}><DialogTrigger asChild>- <Button- variant="outline"- size="sm"- className="w-full bg-foreground/5 border-foreground/10 text-foreground hover:bg-foreground/10 h-9 text-xs"- >+ <Button variant="outline" size="sm" className="w-full h-9 text-xs"><Plus className="w-3 h-3 mr-1" />{t("addFont.title")}</Button></DialogTrigger>- <DialogContent className="bg-editor-surface-alt border-foreground/10 text-foreground">+ <DialogContent><DialogHeader><DialogTitle>{t("addFont.heading")}</DialogTitle><DialogDescription className="text-muted-foreground">@@ -158,7 +154,6 @@ export function AddCustomFontDialog({ onFontAdded }: AddCustomFontDialogProps) {placeholder={t("addFont.urlPlaceholder")}value={importUrl}onChange={(e) => handleImportUrlChange(e.target.value)}- className="bg-foreground/5 border-foreground/10 text-foreground"/><p className="text-xs text-muted-foreground">{t("addFont.urlHelp")}</p></div>@@ -172,24 +167,15 @@ export function AddCustomFontDialog({ onFontAdded }: AddCustomFontDialogProps) {placeholder={t("addFont.namePlaceholder")}value={fontName}onChange={(e) => setFontName(e.target.value)}- className="bg-foreground/5 border-foreground/10 text-foreground"/><p className="text-xs text-muted-foreground">{t("addFont.nameHelp")}</p></div><div className="flex justify-end gap-2 mt-6">- <Button- variant="outline"- onClick={() => handleOpenChange(false)}- className="bg-foreground/5 border-foreground/10 text-foreground hover:bg-foreground/10"- >+ <Button variant="outline" onClick={() => handleOpenChange(false)}>{t("addFont.cancel")}</Button>- <Button- onClick={handleAdd}- disabled={loading}- className="bg-blue-600 hover:bg-blue-700 text-white"- >+ <Button onClick={handleAdd} disabled={loading}>{loading ? t("addFont.adding") : t("addFont.addFont")}</Button></div>diff --git a/src/components/video-editor/AnnotationSettingsPanel.tsx b/src/components/video-editor/AnnotationSettingsPanel.tsxindex af532632..9d50c04b 100644--- a/src/components/video-editor/AnnotationSettingsPanel.tsx+++ b/src/components/video-editor/AnnotationSettingsPanel.tsx@@ -1,3 +1,6 @@+import { ToggleButton } from "@heroui/react";+import { Card } from "@heroui/react";+import { TextArea } from "@/components/ui/input";import {AlignCenterHorizontal as AlignCenter,AlignLeft,@@ -13,9 +16,9 @@ import {TextUnderline as Underline,UploadSimple as Upload,} from "@phosphor-icons/react";-import Block from "@uiw/react-color-block";+import { ColorControl, ColorPalette } from "@/components/ui/color-picker";import { useEffect, useMemo, useRef, useState } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { Button } from "@/components/ui/button";import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";import {@@ -139,43 +142,25 @@ export function AnnotationSettingsPanel({};return (- <div className="flex-[2] min-w-0 bg-editor-panel border border-foreground/10 rounded-2xl flex flex-col shadow-xl h-full overflow-hidden">+ <Card className="flex min-h-0 flex-1 flex-col gap-0 overflow-hidden rounded-none bg-transparent p-0 shadow-none"><div className="flex-1 min-h-0 p-4 overflow-y-auto custom-scrollbar"><div className="mb-6">- <div className="flex items-center justify-between mb-4">- <span className="text-sm font-medium text-foreground">- {t("annotations.settings")}- </span>- <span className="text-[10px] uppercase tracking-wider font-medium text-[#2563EB] bg-[#2563EB]/10 px-2 py-1 rounded-full">- {t("annotations.active")}- </span>- </div>-{/* Type Selector */}<Tabsvalue={annotation.type}onValueChange={(value) => onTypeChange(value as AnnotationType)}className="mb-6">- <TabsList className="mb-4 bg-foreground/5 border border-foreground/5 p-1 w-full grid grid-cols-4 h-auto rounded-xl">- <TabsTrigger- value="text"- className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-muted-foreground py-2 rounded-lg transition-all gap-2"- >+ <TabsList className="w-full grid grid-cols-4">+ <TabsTrigger value="text" className="gap-1 text-xs"><Type className="w-4 h-4" />{t("annotations.text")}</TabsTrigger>- <TabsTrigger- value="image"- className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-muted-foreground py-2 rounded-lg transition-all gap-2"- >+ <TabsTrigger value="image" className="gap-1 text-xs"><ImageIcon className="w-4 h-4" />{t("annotations.image")}</TabsTrigger>- <TabsTrigger- value="figure"- className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-muted-foreground py-2 rounded-lg transition-all gap-2"- >+ <TabsTrigger value="figure" className="gap-1 text-xs"><svgclassName="w-4 h-4"viewBox="0 0 24 24"@@ -191,10 +176,7 @@ export function AnnotationSettingsPanel({</svg>{t("annotations.arrow")}</TabsTrigger>- <TabsTrigger- value="blur"- className="data-[state=active]:bg-[#2563EB] data-[state=active]:text-white text-muted-foreground py-2 rounded-lg transition-all gap-2"- >+ <TabsTrigger value="blur" className="gap-1 text-xs"><SquareDashed className="w-4 h-4" />{t("annotations.blur")}</TabsTrigger>@@ -206,12 +188,12 @@ export function AnnotationSettingsPanel({<label className="text-xs font-medium text-foreground mb-2 block">{t("annotations.textContent")}</label>- <textarea+ <TextAreavalue={annotation.textContent || annotation.content}onChange={(e) => onContentChange(e.target.value)}placeholder={t("annotations.textPlaceholder")}rows={5}- className="w-full px-3 py-2 bg-foreground/5 border border-foreground/10 rounded-lg text-foreground text-sm placeholder:text-muted-foreground/70 focus:outline-none focus:ring-2 focus:ring-[#2563EB] focus:border-transparent resize-none"+ className="w-full px-3 py-2 text-sm resize-none"/></div>@@ -229,12 +211,12 @@ export function AnnotationSettingsPanel({onStyleChange({ fontFamily: value })}>- <SelectTrigger className="w-full bg-foreground/5 border-foreground/10 text-foreground h-9 text-xs">+ <SelectTrigger className="w-full h-9 text-xs"><SelectValueplaceholder={t("annotations.selectStyle")}/></SelectTrigger>- <SelectContent className="bg-editor-surface-alt border-foreground/10 text-foreground max-h-[300px]">+ <SelectContent className="max-h-[300px]">{fontFamilies.map((font) => (<SelectItemkey={font.value}@@ -275,10 +257,10 @@ export function AnnotationSettingsPanel({onStyleChange({ fontSize: parseInt(value) })}>- <SelectTrigger className="w-full bg-foreground/5 border-foreground/10 text-foreground h-9 text-xs">+ <SelectTrigger className="w-full h-9 text-xs"><SelectValue placeholder={t("annotations.size")} /></SelectTrigger>- <SelectContent className="bg-editor-surface-alt border-foreground/10 text-foreground max-h-[200px]">+ <SelectContent className="max-h-[200px]">{FONT_SIZES.map((size) => (<SelectItem key={size} value={size.toString()}>{size}px@@ -303,16 +285,23 @@ export function AnnotationSettingsPanel({<div className="flex items-center justify-between gap-2"><ToggleGrouptype="multiple"- className="justify-start bg-foreground/5 p-1 rounded-lg border border-foreground/5"+ value={[+ ...(annotation.style.fontWeight === "bold"+ ? ["bold"]+ : []),+ ...(annotation.style.fontStyle === "italic"+ ? ["italic"]+ : []),+ ...(annotation.style.textDecoration === "underline"+ ? ["underline"]+ : []),+ ]}+ size="sm"+ className="justify-start"><ToggleGroupItemvalue="bold"aria-label={t("annotations.toggleBold")}- data-state={- annotation.style.fontWeight === "bold"- ? "on"- : "off"- }onClick={() =>onStyleChange({fontWeight:@@ -321,18 +310,13 @@ export function AnnotationSettingsPanel({: "bold",})}- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"+ className="h-8 w-8"><Bold className="h-4 w-4" /></ToggleGroupItem><ToggleGroupItemvalue="italic"aria-label={t("annotations.toggleItalic")}- data-state={- annotation.style.fontStyle === "italic"- ? "on"- : "off"- }onClick={() =>onStyleChange({fontStyle:@@ -341,18 +325,13 @@ export function AnnotationSettingsPanel({: "italic",})}- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"+ className="h-8 w-8"><Italic className="h-4 w-4" /></ToggleGroupItem><ToggleGroupItemvalue="underline"aria-label={t("annotations.toggleUnderline")}- data-state={- annotation.style.textDecoration === "underline"- ? "on"- : "off"- }onClick={() =>onStyleChange({textDecoration:@@ -362,7 +341,7 @@ export function AnnotationSettingsPanel({: "underline",})}- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"+ className="h-8 w-8"><Underline className="h-4 w-4" /></ToggleGroupItem>@@ -371,13 +350,14 @@ export function AnnotationSettingsPanel({<ToggleGrouptype="single"value={annotation.style.textAlign}- className="justify-start bg-foreground/5 p-1 rounded-lg border border-foreground/5"+ size="sm"+ className="justify-start"><ToggleGroupItemvalue="left"aria-label={t("annotations.alignLeft")}onClick={() => onStyleChange({ textAlign: "left" })}- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"+ className="h-8 w-8"><AlignLeft className="h-4 w-4" /></ToggleGroupItem>@@ -385,7 +365,7 @@ export function AnnotationSettingsPanel({value="center"aria-label={t("annotations.alignCenter")}onClick={() => onStyleChange({ textAlign: "center" })}- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"+ className="h-8 w-8"><AlignCenter className="h-4 w-4" /></ToggleGroupItem>@@ -393,7 +373,7 @@ export function AnnotationSettingsPanel({value="right"aria-label={t("annotations.alignRight")}onClick={() => onStyleChange({ textAlign: "right" })}- className="h-8 w-8 data-[state=on]:bg-[#2563EB] data-[state=on]:text-white text-muted-foreground hover:bg-foreground/5 hover:text-foreground"+ className="h-8 w-8"><AlignRight className="h-4 w-4" /></ToggleGroupItem>@@ -410,7 +390,7 @@ export function AnnotationSettingsPanel({<PopoverTrigger asChild><Buttonvariant="outline"- className="w-full h-9 justify-start gap-2 bg-foreground/5 border-foreground/10 hover:bg-foreground/10 px-2"+ className="w-full h-9 justify-start gap-2 px-2"><divclassName="w-4 h-4 rounded-full border border-foreground/20"@@ -424,8 +404,8 @@ export function AnnotationSettingsPanel({<ChevronDown className="h-3 w-3 opacity-50" /></Button></PopoverTrigger>- <PopoverContent className="w-[260px] p-3 bg-editor-surface-alt border border-foreground/10 rounded-xl shadow-xl">- <Block+ <PopoverContent className="w-[260px] p-3">+ <ColorPalettecolor={annotation.style.color}colors={colorPalette}onChange={(color) => {@@ -446,7 +426,7 @@ export function AnnotationSettingsPanel({<PopoverTrigger asChild><Buttonvariant="outline"- className="w-full h-9 justify-start gap-2 bg-foreground/5 border-foreground/10 hover:bg-foreground/10 px-2"+ className="w-full h-9 justify-start gap-2 px-2"><div className="w-4 h-4 rounded-full border border-foreground/20 relative overflow-hidden"><div className="absolute inset-0 checkerboard-bg opacity-50" />@@ -468,8 +448,8 @@ export function AnnotationSettingsPanel({<ChevronDown className="h-3 w-3 opacity-50" /></Button></PopoverTrigger>- <PopoverContent className="w-[260px] p-3 bg-editor-surface-alt border border-foreground/10 rounded-xl shadow-xl">- <Block+ <PopoverContent className="w-[260px] p-3">+ <ColorPalettecolor={annotation.style.backgroundColor ==="transparent"@@ -489,7 +469,7 @@ export function AnnotationSettingsPanel({<Buttonvariant="ghost"size="sm"- className="w-full mt-2 text-xs h-7 hover:bg-foreground/5 text-muted-foreground"+ className="w-full mt-2 text-xs h-7"onClick={() => {onStyleChange({backgroundColor: "transparent",@@ -517,7 +497,7 @@ export function AnnotationSettingsPanel({<ButtononClick={() => fileInputRef.current?.click()}variant="outline"- className="w-full gap-2 bg-foreground/5 text-foreground border-foreground/10 hover:bg-[#2563EB] hover:text-white hover:border-[#2563EB] transition-all py-8"+ className="w-full gap-2 py-8"><Upload className="w-5 h-5" />{t("annotations.uploadImage")}@@ -558,7 +538,11 @@ export function AnnotationSettingsPanel({).map((direction) => {const ArrowComponent = getArrowComponent(direction);return (- <button+ <ToggleButton+ isSelected={+ annotation.figureData?.arrowDirection ===+ direction+ }key={direction}onClick={() => {const newFigureData: FigureData = {@@ -573,11 +557,7 @@ export function AnnotationSettingsPanel({{ direction: direction.replace(/-/g, " ") },)}className={cn(- "h-16 rounded-lg border flex items-center justify-center transition-all p-2",- annotation.figureData?.arrowDirection ===- direction- ? "bg-[#2563EB] border-[#2563EB]"- : "bg-foreground/5 border-foreground/10 hover:bg-foreground/10 hover:border-foreground/20",+ "h-16 flex items-center justify-center p-2",)}><ArrowComponent@@ -589,7 +569,7 @@ export function AnnotationSettingsPanel({}strokeWidth={3}/>- </button>+ </ToggleButton>);})}</div>@@ -602,6 +582,9 @@ export function AnnotationSettingsPanel({})}</label><Slider+ aria-label={t("annotations.strokeWidth", undefined, {+ width: annotation.figureData?.strokeWidth || 4,+ })}value={[annotation.figureData?.strokeWidth || 4]}onValueChange={([value]) => {const newFigureData: FigureData = {@@ -625,7 +608,7 @@ export function AnnotationSettingsPanel({<PopoverTrigger asChild><Buttonvariant="outline"- className="w-full h-10 justify-start gap-2 bg-foreground/5 border-foreground/10 hover:bg-foreground/10"+ className="w-full h-10 justify-start gap-2"><divclassName="w-5 h-5 rounded-full border border-foreground/20"@@ -640,8 +623,8 @@ export function AnnotationSettingsPanel({<ChevronDown className="h-3 w-3 opacity-50" /></Button></PopoverTrigger>- <PopoverContent className="w-[260px] p-3 bg-editor-surface-alt border border-foreground/10 rounded-xl shadow-xl">- <Block+ <PopoverContent className="w-[260px] p-3">+ <ColorPalettecolor={annotation.figureData?.color || "#2563EB"}colors={colorPalette}onChange={(color) => {@@ -671,6 +654,9 @@ export function AnnotationSettingsPanel({</span></div><Slider+ aria-label={t("annotations.blurStrength", undefined, {+ strength: annotation.blurIntensity ?? 20,+ })}value={[annotation.blurIntensity ?? 20]}onValueChange={([value]) => onBlurIntensityChange?.(value)}min={1}@@ -689,98 +675,27 @@ export function AnnotationSettingsPanel({)}</span></div>- <div className="flex flex-wrap gap-2">- <button- onClick={() => onBlurColorChange?.("")}- className={cn(- "w-8 h-8 rounded-full border-2 flex items-center justify-center transition-all",+ <div className="flex flex-col gap-3">+ <Button+ variant="secondary"+ aria-pressed={!annotation.blurColor ||- annotation.blurColor === "transparent"- ? "border-[#2563EB] scale-110"- : "border-transparent hover:border-foreground/20",- )}- title={t("annotations.none", "None")}+ annotation.blurColor === "transparent"+ }+ onClick={() => onBlurColorChange?.("")}>- <div className="w-5 h-5 rounded-full bg-editor-bg flex items-center justify-center overflow-hidden relative">- <div className="absolute w-full h-0.5 bg-red-500 rotate-45" />- </div>- </button>- <button- onClick={() => onBlurColorChange?.("#000000")}- className={cn(- "w-8 h-8 rounded-full border-2 transition-all bg-black",- annotation.blurColor === "#000000"- ? "border-[#2563EB] scale-110"- : "border-transparent hover:border-foreground/20",- )}- title="Black"+ {t("annotations.none", "None")}+ </Button>+ <ColorPalette+ color={annotation.blurColor || "transparent"}+ colors={colorPalette}+ onChange={({ hex }) => onBlurColorChange?.(hex)}/>- <button- onClick={() => onBlurColorChange?.("#FFFFFF")}- className={cn(- "w-8 h-8 rounded-full border-2 transition-all bg-white",- annotation.blurColor === "#FFFFFF"- ? "border-[#2563EB] scale-110"- : "border-transparent hover:border-foreground/20",- )}- title="White"+ <ColorControl+ label={t("annotations.customColor", "Custom color")}+ value={annotation.blurColor || "#000000"}+ onChange={(color) => onBlurColorChange?.(color)}/>-- <Popover>- <PopoverTrigger asChild>- <button- className={cn(- "w-8 h-8 rounded-full border-2 transition-all flex items-center justify-center overflow-hidden relative",- annotation.blurColor &&- ![- "#000000",- "#FFFFFF",- "transparent",- "",- ].includes(annotation.blurColor)- ? "border-[#2563EB] scale-110"- : "border-transparent hover:border-foreground/20",- )}- style={{- backgroundColor:- annotation.blurColor &&- ![- "#000000",- "#FFFFFF",- "transparent",- "",- ].includes(annotation.blurColor)- ? annotation.blurColor- : "transparent",- }}- title="Custom Color"- >- {(!annotation.blurColor ||- [- "#000000",- "#FFFFFF",- "transparent",- "",- ].includes(annotation.blurColor)) && (- <div className="w-full h-full flex items-center justify-center bg-foreground/5">- <div className="w-full h-full bg-gradient-to-tr from-red-500 via-green-500 to-blue-500 opacity-50" />- </div>- )}- </button>- </PopoverTrigger>- <PopoverContent className="w-[260px] p-3 bg-editor-surface-alt border border-foreground/10 rounded-xl shadow-xl">- <Block- color={annotation.blurColor || "#2563EB"}- colors={colorPalette}- onChange={(color) => {- onBlurColorChange?.(color.hex);- }}- style={{- borderRadius: "8px",- }}- />- </PopoverContent>- </Popover></div></div></div>@@ -805,14 +720,14 @@ export function AnnotationSettingsPanel({<div className="flex-shrink-0 border-t border-foreground/10 bg-editor-panel p-4 pt-3"><ButtononClick={onDelete}- variant="destructive"+ variant="destructive-soft"size="sm"- className="w-full gap-2 bg-red-500/10 text-red-400 border border-red-500/20 hover:bg-red-500/20 hover:border-red-500/30 transition-all"+ className="w-full gap-2"><Trash2 className="w-4 h-4" />{t("annotations.deleteAnnotation")}</Button></div>- </div>+ </Card>);}diff --git a/src/components/video-editor/CaptionListPanel.tsx b/src/components/video-editor/CaptionListPanel.tsxindex ef04e5e7..58e38eb9 100644--- a/src/components/video-editor/CaptionListPanel.tsx+++ b/src/components/video-editor/CaptionListPanel.tsx@@ -1,3 +1,4 @@+import { TextArea, Input } from "@/components/ui/input";import { ArrowsMerge, Scissors, Trash } from "@phosphor-icons/react";import { useCallback, useEffect, useRef, useState } from "react";import { Button } from "@/components/ui/button";@@ -111,7 +112,7 @@ function CaptionEditor({<span className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground">{t("captions.editor.text", "Text")}</span>- <textarea+ <TextAreavalue={draftText}rows={3}// Freshly-added captions start empty — focus the field so the@@ -131,7 +132,7 @@ function CaptionEditor({event.currentTarget.blur();}}}- className="min-h-[4.5rem] w-full resize-none rounded-md border border-foreground/10 bg-background/60 px-2 py-1.5 text-sm text-foreground outline-none focus-visible:border-[#2563EB] focus-visible:ring-1 focus-visible:ring-[#2563EB]"+ className="min-h-[4.5rem] w-full resize-none px-2 py-1.5 text-sm"/></label>@@ -140,7 +141,7 @@ function CaptionEditor({<span className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground">{t("captions.editor.start", "Start")}</span>- <input+ <Inputvalue={startValue}onChange={(event) => setStartValue(event.target.value)}onBlur={commitTiming}@@ -149,14 +150,14 @@ function CaptionEditor({event.currentTarget.blur();}}}- className="w-full rounded-md border border-foreground/10 bg-background/60 px-2 py-1 font-mono text-xs tabular-nums text-foreground outline-none focus-visible:border-[#2563EB] focus-visible:ring-1 focus-visible:ring-[#2563EB]"+ className="w-full px-2 py-1 text-xs tabular-nums"/></label><label className="flex flex-1 flex-col gap-1"><span className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground">{t("captions.editor.end", "End")}</span>- <input+ <Inputvalue={endValue}onChange={(event) => setEndValue(event.target.value)}onBlur={commitTiming}@@ -165,37 +166,39 @@ function CaptionEditor({event.currentTarget.blur();}}}- className="w-full rounded-md border border-foreground/10 bg-background/60 px-2 py-1 font-mono text-xs tabular-nums text-foreground outline-none focus-visible:border-[#2563EB] focus-visible:ring-1 focus-visible:ring-[#2563EB]"+ className="w-full px-2 py-1 text-xs tabular-nums"/></label></div><div className="grid grid-cols-3 gap-2">- <button+ <Button+ variant="ghost"type="button"onClick={() =>onSplit(cue.id, clampNumber(currentTimeMs, cue.startMs, cue.endMs))}- className="flex h-9 items-center justify-center gap-1.5 rounded-lg border border-foreground/10 bg-foreground/5 text-xs font-medium text-foreground transition-colors hover:bg-foreground/10"+ className="flex h-9 items-center justify-center gap-1.5 text-xs"><Scissors className="h-4 w-4" />{t("captions.editor.split", "Split")}- </button>- <button+ </Button>+ <Button+ variant="ghost"type="button"disabled={!canMerge}onClick={() => onMerge(cue.id)}- className="flex h-9 items-center justify-center gap-1.5 rounded-lg border border-foreground/10 bg-foreground/5 text-xs font-medium text-foreground transition-colors hover:bg-foreground/10 disabled:opacity-40"+ className="flex h-9 items-center justify-center gap-1.5 text-xs"><ArrowsMerge className="h-4 w-4" />{t("captions.editor.merge", "Merge")}- </button>+ </Button><Buttontype="button"variant="destructive"size="sm"onClick={() => onDelete(cue.id)}- className="h-9 gap-1.5 rounded-lg border border-red-500/20 bg-red-500/10 text-xs text-red-400 transition-all hover:border-red-500/30 hover:bg-red-500/20"+ className="h-9 gap-1.5 text-xs"><Trash className="h-3 w-3" />{t("captions.editor.delete", "Delete")}diff --git a/src/components/video-editor/ExportSettingsMenu.tsx b/src/components/video-editor/ExportSettingsMenu.tsxindex c2c469fe..45ecf526 100644--- a/src/components/video-editor/ExportSettingsMenu.tsx+++ b/src/components/video-editor/ExportSettingsMenu.tsx@@ -1,5 +1,6 @@import { DownloadSimple as Download, FilmSlate as Film, Image } from "@phosphor-icons/react";-import { LayoutGroup, motion } from "motion/react";+import { Card, Label, Description, ToggleButtonGroup, ToggleButton } from "@heroui/react";+import type { ReactNode } from "react";import { Button } from "@/components/ui/button";import { Switch } from "@/components/ui/switch";import { useScopedT } from "@/contexts/I18nContext";@@ -13,7 +14,6 @@ import type {GifSizePreset,} from "@/lib/exporter";import { GIF_FRAME_RATES, GIF_SIZE_PRESETS, MP4_FRAME_RATES } from "@/lib/exporter";-import { cn } from "@/lib/utils";interface ExportSettingsMenuProps {exportFormat: ExportFormat;@@ -43,6 +43,48 @@ interface ExportSettingsMenuProps {className?: string;}+function Choices<T extends string | number>({+ label,+ value,+ options,+ onChange,+}: {+ label: string;+ value: T;+ options: { value: T; label: ReactNode; description?: string }[];+ onChange?: (value: T) => void;+}) {+ return (+ <div className="flex flex-col gap-2">+ <Label>{label}</Label>+ <ToggleButtonGroup+ aria-label={label}+ selectionMode="single"+ disallowEmptySelection+ selectedKeys={[String(value)]}+ onSelectionChange={(keys) => {+ const selected = options.find((option) => keys.has(String(option.value)));+ if (selected) onChange?.(selected.value);+ }}+ fullWidth+ size="sm"+ >+ {options.map((option) => (+ <ToggleButton+ key={option.value}+ id={String(option.value)}+ className="h-auto min-h-9 flex-1 flex-col gap-0.5 py-2"+ >+ {option.label}+ {option.description && (+ <span className="text-[10px] opacity-70">{option.description}</span>+ )}+ </ToggleButton>+ ))}+ </ToggleButtonGroup>+ </div>+ );+}export function ExportSettingsMenu({exportFormat,onExportFormatChange,@@ -74,392 +116,139 @@ export function ExportSettingsMenu({const isLegacyModel = exportPipelineModel === "legacy";return (- <div- className={cn(- "w-full rounded-2xl border border-foreground/10 bg-editor-surface p-3 text-foreground",- className,- )}- >- <div className="mb-2 flex items-center justify-between">- <span className="text-[11px] font-semibold uppercase tracking-[0.18em] text-muted-foreground">- {tSettings("export.title", "Export")}- </span>- </div>-- <div className="mb-3 flex items-center gap-2">- <LayoutGroup id="header-export-format-toggle">- {(- [- { value: "mp4", label: tSettings("export.mp4"), icon: Film },- { value: "gif", label: tSettings("export.gif"), icon: Image },- ] as const- ).map((option) => {- const Icon = option.icon;- const isActive = exportFormat === option.value;- return (- <button- key={option.value}- type="button"- onClick={() => onExportFormatChange?.(option.value)}- aria-pressed={isActive}- className={cn(- "relative flex-1 overflow-hidden rounded-xl border py-2 text-xs font-medium transition-colors",- isActive- ? "border-[#2563EB]/50 text-[#2563EB] dark:text-white"- : "border-foreground/10 bg-foreground/5 text-muted-foreground hover:bg-foreground/10 hover:text-foreground",- )}- >- {isActive ? (- <motion.span- layoutId="header-export-format-pill"- className="absolute inset-0 rounded-xl bg-[#2563EB]/10"- transition={{ type: "spring", stiffness: 380, damping: 32 }}- />- ) : null}- <span className="relative z-10 flex items-center justify-center gap-1.5">- <Icon className="h-3.5 w-3.5" />- {option.label}+ <Card className={className}>+ <Card.Header>+ <Card.Title>{tSettings("export.title", "Export")}</Card.Title>+ </Card.Header>+ <Card.Content className="gap-4">+ <Choices+ label={tSettings("export.format", "Format")}+ value={exportFormat}+ onChange={onExportFormatChange}+ options={[+ {+ value: "mp4",+ label: (+ <span className="flex items-center gap-2">+ <Film />+ {tSettings("export.mp4")}</span>- </button>- );- })}- </LayoutGroup>- </div>-- {exportFormat === "mp4" ? (- <LayoutGroup id="header-export-quality-toggle">- <div className="mb-3 grid min-h-12 w-full grid-cols-4 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">- {(- [- { value: "medium", label: tSettings("export.quality.low") },- { value: "good", label: tSettings("export.quality.medium") },- { value: "high", label: tSettings("export.quality.high") },- { value: "source", label: tSettings("export.quality.original") },- ] as const- ).map((option) => {- const isActive = exportQuality === option.value;- return (- <button- key={option.value}- type="button"- onClick={() => onExportQualityChange?.(option.value)}- aria-pressed={isActive}- className="relative rounded-lg px-1 py-1 text-[11px] font-medium transition-colors"- >- {isActive ? (- <motion.span- layoutId="header-export-quality-pill"- className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"- transition={{- type: "spring",- stiffness: 420,- damping: 34,- }}- />- ) : null}- <span className="relative z-10 flex h-full flex-col items-center justify-center leading-tight">- <span- className={cn(- isActive- ? "text-white dark:text-black"- : "text-muted-foreground hover:text-foreground",- )}- >- {option.label}- </span>- {mp4OutputDimensions ? (- <span- className={cn(- "mt-0.5 text-[9px]",- isActive- ? "text-white/75 dark:text-black/75"- : "text-muted-foreground/70",- )}- >- {mp4OutputDimensions[option.value].width} x{" "}- {mp4OutputDimensions[option.value].height}- </span>- ) : null}- </span>- </button>- );- })}- </div>- <div className="mb-1 flex items-center justify-between px-1">- <span className="text-[10px] font-medium uppercase tracking-[0.14em] text-muted-foreground/70">- {tSettings("export.encodingTitle", "Encoding")}- </span>- </div>- <div className="mb-3 grid min-h-10 w-full grid-cols-3 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">- {(- [- { value: "fast", label: tSettings("export.encoding.fast", "Fast") },- {- value: "balanced",- label: tSettings("export.encoding.balanced", "Balanced"),- },- {- value: "quality",- label: tSettings("export.encoding.quality", "Quality"),- },- ] as const- ).map((option) => {- const isActive = exportEncodingMode === option.value;- return (- <button- key={option.value}- type="button"- onClick={() => onExportEncodingModeChange?.(option.value)}- aria-pressed={isActive}- className="relative rounded-lg px-1 py-1 text-[11px] font-medium transition-colors"- >- {isActive ? (- <motion.span- layoutId="header-export-encoding-pill"- className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"- transition={{- type: "spring",- stiffness: 420,- damping: 34,- }}- />- ) : null}- <span- className={cn(- "relative z-10",- isActive- ? "text-white dark:text-black"- : "text-muted-foreground hover:text-foreground",- )}- >- {option.label}- </span>- </button>- );- })}- </div>- <div className="mb-1 flex items-center justify-between px-1">- <span className="text-[10px] font-medium uppercase tracking-[0.14em] text-muted-foreground/70">- {tSettings("export.fpsTitle", "FPS")}- </span>- </div>- <div className="mb-3 grid min-h-10 w-full grid-cols-3 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">- {MP4_FRAME_RATES.map((rate) => {- const isActive = mp4FrameRate === rate;- return (- <button- key={rate}- type="button"- onClick={() => onMp4FrameRateChange?.(rate)}- aria-pressed={isActive}- className="relative rounded-lg px-1 py-1 text-[11px] font-medium transition-colors"- >- {isActive ? (- <motion.span- layoutId="header-export-fps-pill"- className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"- transition={{- type: "spring",- stiffness: 420,- damping: 34,- }}- />- ) : null}- <span- className={cn(- "relative z-10",- isActive- ? "text-white dark:text-black"- : "text-muted-foreground hover:text-foreground",- )}- >- {rate}- </span>- </button>- );- })}- </div>- {!isLegacyModel && nvidiaCudaExportAvailable ? (- <div className="mb-3 flex min-h-12 items-center justify-between gap-3 rounded-lg border border-[#2563EB]/20 bg-[#2563EB]/5 px-3 py-2">- <div className="min-w-0">- <div className="flex items-center gap-1.5">- <span className="text-[11px] font-semibold text-foreground">- {tSettings("export.nvidiaCuda.title", "NVIDIA CUDA")}- </span>- <span className="rounded bg-[#2563EB]/10 px-1.5 py-0.5 text-[9px] font-semibold uppercase text-[#2563EB]">- {tSettings("export.nvidiaCuda.badge", "Experimental")}- </span>- </div>- <p className="mt-0.5 truncate text-[10px] text-muted-foreground/75">- {tSettings(- "export.nvidiaCuda.hint",- "Try GPU export on this Windows device.",- )}- </p>- </div>+ ),+ },+ {+ value: "gif",+ label: (+ <span className="flex items-center gap-2">+ <Image />+ {tSettings("export.gif")}+ </span>+ ),+ },+ ]}+ />+ {exportFormat === "mp4" ? (+ <>+ <Choices+ label={tSettings("export.qualityTitle", "Quality")}+ value={exportQuality}+ onChange={onExportQualityChange}+ options={(["medium", "good", "high", "source"] as const).map(+ (value, index) => ({+ value,+ label: tSettings(+ `export.quality.${["low", "medium", "high", "original"][index]}`,+ ),+ description: mp4OutputDimensions+ ? `${mp4OutputDimensions[value].width} × ${mp4OutputDimensions[value].height}`+ : undefined,+ }),+ )}+ />+ <Choices+ label={tSettings("export.encodingTitle", "Encoding")}+ value={exportEncodingMode}+ onChange={onExportEncodingModeChange}+ options={(["fast", "balanced", "quality"] as const).map((value) => ({+ value,+ label: tSettings(`export.encoding.${value}`),+ }))}+ />+ <Choices+ label={tSettings("export.fpsTitle", "FPS")}+ value={mp4FrameRate}+ onChange={onMp4FrameRateChange}+ options={MP4_FRAME_RATES.map((value) => ({+ value,+ label: String(value),+ }))}+ />+ {!isLegacyModel && nvidiaCudaExportAvailable && (<Switchchecked={experimentalNvidiaCudaExport}onCheckedChange={onExperimentalNvidiaCudaExportChange}- aria-label={tSettings(- "export.nvidiaCuda.toggle",- "Enable experimental NVIDIA CUDA export",- )}- className="shrink-0 scale-75 data-[state=checked]:bg-[#2563EB]"- />- </div>- ) : null}- {showCaptionSidecarOption ? (- <div className="mb-3 flex min-h-12 items-center justify-between gap-3 rounded-lg border border-foreground/10 bg-foreground/5 px-3 py-2">- <div className="min-w-0">- <p className="text-[11px] font-semibold text-foreground">- {tSettings(- "export.captionSidecar.title",- "Export captions file",- )}- </p>- <p className="mt-0.5 truncate text-[10px] text-muted-foreground/75">+ >+ <Label>{tSettings("export.nvidiaCuda.title", "NVIDIA CUDA")}</Label>+ </Switch>+ )}+ {showCaptionSidecarOption && (+ <div>+ <Switch+ checked={includeCaptionSidecar}+ onCheckedChange={onIncludeCaptionSidecarChange}+ >+ <Label>+ {tSettings(+ "export.captionSidecar.title",+ "Export captions file",+ )}+ </Label>+ </Switch>+ <Description>{tSettings("export.captionSidecar.hint","Save .srt and .vtt files next to your exported video.",)}- </p>+ </Description></div>- <Switch- checked={includeCaptionSidecar}- onCheckedChange={onIncludeCaptionSidecarChange}- aria-label={tSettings(- "export.captionSidecar.toggle",- "Export captions sidecar files",- )}- className="shrink-0 scale-75 data-[state=checked]:bg-[#2563EB]"- />- </div>- ) : null}- </LayoutGroup>- ) : (- <div className="mb-3 space-y-2">- <div className="flex items-center gap-2">- <LayoutGroup id="header-gif-frame-rate-toggle">- <div className="grid h-8 flex-1 grid-cols-4 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">- {GIF_FRAME_RATES.map((rate) => {- const isActive = gifFrameRate === rate.value;- return (- <button- key={rate.value}- type="button"- onClick={() => onGifFrameRateChange?.(rate.value)}- aria-pressed={isActive}- className="relative rounded-lg text-[11px] font-medium transition-colors"- >- {isActive ? (- <motion.span- layoutId="header-gif-frame-rate-pill"- className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"- transition={{- type: "spring",- stiffness: 420,- damping: 34,- }}- />- ) : null}- <span- className={cn(- "relative z-10",- isActive- ? "text-white dark:text-black"- : "text-muted-foreground hover:text-foreground",- )}- >- {rate.value}- </span>- </button>- );- })}- </div>- </LayoutGroup>- <LayoutGroup id="header-gif-size-toggle">- <div className="grid h-8 flex-1 grid-cols-3 rounded-xl border border-foreground/5 bg-foreground/5 p-0.5">- {Object.entries(GIF_SIZE_PRESETS).map(([key]) => {- const isActive = gifSizePreset === key;- return (- <button- key={key}- type="button"- onClick={() =>- onGifSizePresetChange?.(key as GifSizePreset)- }- aria-pressed={isActive}- className="relative rounded-lg text-[11px] font-medium transition-colors"- >- {isActive ? (- <motion.span- layoutId="header-gif-size-pill"- className="absolute inset-0 rounded-lg bg-neutral-800 dark:bg-white"- transition={{- type: "spring",- stiffness: 420,- damping: 34,- }}- />- ) : null}- <span- className={cn(- "relative z-10",- isActive- ? "text-white dark:text-black"- : "text-muted-foreground hover:text-foreground",- )}- >- {key === "original"- ? tSettings(- "export.sizePresetOriginalShort",- "Orig",- )- : key === "medium"- ? tSettings(- "export.sizePresetMediumShort",- "Med",- )- : tSettings(- "export.sizePresetLargeShort",- "Lar",- )}- </span>- </button>- );- })}- </div>- </LayoutGroup>- </div>- <div className="flex items-center justify-between px-1">- <span className="text-[10px] text-muted-foreground/70">+ )}+ </>+ ) : (+ <>+ <Choices+ label={tSettings("export.fpsTitle", "FPS")}+ value={gifFrameRate}+ onChange={onGifFrameRateChange}+ options={GIF_FRAME_RATES.map((rate) => ({+ value: rate.value,+ label: String(rate.value),+ }))}+ />+ <Choices+ label={tSettings("export.size", "Size")}+ value={gifSizePreset}+ onChange={onGifSizePresetChange}+ options={Object.entries(GIF_SIZE_PRESETS).map(([key, preset]) => ({+ value: key as GifSizePreset,+ label: preset.label,+ }))}+ />+ <Description>{gifOutputDimensions.width} × {gifOutputDimensions.height}px- </span>- <div className="flex items-center gap-2">- <span className="text-[10px] text-muted-foreground">- {tSettings("export.loop")}- </span>- <Switch- checked={gifLoop}- onCheckedChange={onGifLoopChange}- className="scale-75 data-[state=checked]:bg-[#2563EB]"- />- </div>- </div>- </div>- )}-- <Button- type="button"- size="lg"- onClick={onExport}- className="h-11 w-full gap-2 rounded-lg bg-[#2563EB] text-sm font-semibold text-white transition-colors duration-200 hover:bg-[#2563EB]/90"- >- <Download className="h-4 w-4" />- {tSettings("export.exportVideo", undefined, {- format: exportFormat === "gif" ? "GIF" : "Video",- })}- </Button>- </div>+ </Description>+ <Switch checked={gifLoop} onCheckedChange={onGifLoopChange}>+ <Label>{tSettings("export.loop")}</Label>+ </Switch>+ </>+ )}+ </Card.Content>+ <Card.Footer>+ <Button size="lg" onClick={onExport} className="w-full">+ <Download />+ {tSettings("export.exportVideo", undefined, {+ format: exportFormat === "gif" ? "GIF" : "Video",+ })}+ </Button>+ </Card.Footer>+ </Card>);}diff --git a/src/components/video-editor/ExtensionManager.tsx b/src/components/video-editor/ExtensionManager.tsxindex 99fdc3eb..ac6b9e39 100644--- a/src/components/video-editor/ExtensionManager.tsx+++ b/src/components/video-editor/ExtensionManager.tsx@@ -1,12 +1,9 @@+import { Card } from "@heroui/react";import { PuzzlePiece } from "@phosphor-icons/react";export default function ExtensionManager() {return (- <div className="flex h-full w-[332px] min-w-[280px] max-w-[332px] flex-[2] flex-col overflow-hidden rounded-2xl border border-foreground/10 bg-editor-panel shadow-xl">- <div className="flex h-12 shrink-0 items-center border-b border-foreground/10 px-4">- <h2 className="text-sm font-semibold text-foreground">Extensions</h2>- </div>-+ <Card className="flex min-h-0 flex-1 flex-col gap-0 overflow-hidden rounded-none bg-transparent p-0 shadow-none"><div className="flex flex-1 items-center justify-center p-6"><div className="flex max-w-[240px] flex-col items-center text-center"><div className="mb-4 flex h-12 w-12 items-center justify-center rounded-2xl border border-foreground/10 bg-foreground/[0.04]">@@ -21,6 +18,6 @@ export default function ExtensionManager() {</p></div></div>- </div>+ </Card>);}diff --git a/src/components/video-editor/FormatSelector.tsx b/src/components/video-editor/FormatSelector.tsxindex c999eeb3..e3288b4e 100644--- a/src/components/video-editor/FormatSelector.tsx+++ b/src/components/video-editor/FormatSelector.tsx@@ -1,7 +1,7 @@+import { ToggleButtonGroup, ToggleButton } from "@heroui/react";import { FilmSlate as Film, Image } from "@phosphor-icons/react";import { useScopedT } from "@/contexts/I18nContext";import type { ExportFormat } from "@/lib/exporter/types";-import { cn } from "@/lib/utils";interface FormatSelectorProps {selectedFormat: ExportFormat;@@ -39,44 +39,29 @@ export function FormatSelector({];return (- <div className="grid grid-cols-2 gap-3">- {formatOptions.map((option) => {- const isSelected = selectedFormat === option.value;- return (- <button- key={option.value}- type="button"- disabled={disabled}- onClick={() => onFormatChange(option.value)}- className={cn(- "relative flex flex-col items-center gap-2 p-4 rounded-xl border transition-all duration-200",- "focus:outline-none focus:ring-2 focus:ring-[#2563EB]/50 focus:ring-offset-2 focus:ring-offset-editor-dialog",- isSelected- ? "bg-[#2563EB]/10 border-[#2563EB]/50 text-[#2563EB] dark:text-white"- : "bg-foreground/5 border-foreground/10 text-muted-foreground hover:bg-foreground/10 hover:border-foreground/20 hover:text-foreground",- disabled && "opacity-50 cursor-not-allowed",- )}- >- <div- className={cn(- "w-10 h-10 rounded-full flex items-center justify-center transition-colors",- isSelected ? "bg-[#2563EB]/20 text-[#2563EB]" : "bg-foreground/5",- )}- >- {option.icon}- </div>- <div className="text-center">- <div className="font-medium text-sm">{option.label}</div>- <div className="text-xs text-muted-foreground/70 mt-0.5">- {option.description}- </div>- </div>- {isSelected && (- <div className="absolute top-2 right-2 w-2 h-2 rounded-full bg-[#2563EB]" />- )}- </button>- );- })}- </div>+ <ToggleButtonGroup+ aria-label={t("format.title", "Export format")}+ selectionMode="single"+ disallowEmptySelection+ selectedKeys={[selectedFormat]}+ onSelectionChange={(keys) => {+ const value = Array.from(keys)[0];+ if (value) onFormatChange(value as ExportFormat);+ }}+ isDisabled={disabled}+ fullWidth+ >+ {formatOptions.map((option) => (+ <ToggleButton+ key={option.value}+ id={option.value}+ className="h-auto flex-1 flex-col gap-2 p-4"+ >+ {option.icon}+ <span>{option.label}</span>+ <span className="text-xs opacity-70">{option.description}</span>+ </ToggleButton>+ ))}+ </ToggleButtonGroup>);}diff --git a/src/components/video-editor/GifOptionsPanel.tsx b/src/components/video-editor/GifOptionsPanel.tsxindex 560683c2..00c17f92 100644--- a/src/components/video-editor/GifOptionsPanel.tsx+++ b/src/components/video-editor/GifOptionsPanel.tsx@@ -53,10 +53,10 @@ export function GifOptionsPanel({onValueChange={(value) => onFrameRateChange(Number(value) as GifFrameRate)}disabled={disabled}>- <SelectTrigger className="w-full bg-foreground/5 border-foreground/10 text-foreground hover:bg-foreground/10">+ <SelectTrigger className="w-full"><SelectValue /></SelectTrigger>- <SelectContent className="bg-editor-surface-alt border-foreground/10 z-[100]">+ <SelectContent className="z-[100]">{GIF_FRAME_RATES.map((rate) => (<SelectItemkey={rate.value}@@ -80,10 +80,10 @@ export function GifOptionsPanel({onValueChange={(value) => onSizePresetChange(value as GifSizePreset)}disabled={disabled}>- <SelectTrigger className="w-full bg-foreground/5 border-foreground/10 text-foreground hover:bg-foreground/10">+ <SelectTrigger className="w-full"><SelectValue /></SelectTrigger>- <SelectContent className="bg-editor-surface-alt border-foreground/10 z-[100]">+ <SelectContent className="z-[100]">{sizePresetOptions.map((option) => (<SelectItemkey={option.value}@@ -113,7 +113,12 @@ export function GifOptionsPanel({{t("gifOptions.loopDescription")}</p></div>- <Switch checked={loop} onCheckedChange={onLoopChange} disabled={disabled} />+ <Switch+ aria-label={t("gifOptions.loopAnimation")}+ checked={loop}+ onCheckedChange={onLoopChange}+ disabled={disabled}+ /></div></div>);diff --git a/src/components/video-editor/KeyboardShortcutsHelp.tsx b/src/components/video-editor/KeyboardShortcutsHelp.tsxindex f9c24c63..3a36b2c8 100644--- a/src/components/video-editor/KeyboardShortcutsHelp.tsx+++ b/src/components/video-editor/KeyboardShortcutsHelp.tsx@@ -1,3 +1,6 @@+import { Kbd } from "@heroui/react";+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";+import { Button } from "@/components/ui/button";import { Gear as Settings2, Question as HelpCircle } from "@phosphor-icons/react";import { useEffect, useState } from "react";import { useScopedT } from "@/contexts/I18nContext";@@ -21,32 +24,35 @@ export function KeyboardShortcutsHelp() {}, []);return (- <div className="relative group">- <HelpCircle className="w-4 h-4 text-muted-foreground/70 hover:text-[#2563EB] transition-colors cursor-help" />+ <Popover>+ <PopoverTrigger>+ <Button variant="ghost" size="icon" aria-label={t("keyboardShortcuts.title")}>+ <HelpCircle />+ </Button>+ </PopoverTrigger>- <div className="absolute right-0 top-full mt-2 w-64 bg-editor-dialog border border-foreground/10 rounded-lg p-3 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 shadow-xl z-50">+ <PopoverContent align="end" className="w-80" aria-label={t("keyboardShortcuts.title")}><div className="flex items-center justify-between mb-2"><span className="text-xs font-semibold text-foreground">{t("keyboardShortcuts.title")}</span>- <button+ <Button+ variant="ghost"type="button"onClick={openConfig}title={t("keyboardShortcuts.customizeTooltip")}- className="flex items-center gap-1 text-[10px] text-muted-foreground/70 hover:text-[#2563EB] transition-colors"+ className="flex items-center gap-1"><Settings2 className="w-3 h-3" />{t("keyboardShortcuts.customize")}- </button>+ </Button></div><div className="space-y-1.5 text-[10px]">{SHORTCUT_ACTIONS.map((action) => (<div key={action} className="flex items-center justify-between"><span className="text-muted-foreground">{SHORTCUT_LABELS[action]}</span>- <kbd className="px-1 py-0.5 bg-foreground/5 border border-foreground/10 rounded text-[#2563EB] font-mono">- {formatBinding(shortcuts[action], isMac)}- </kbd>+ <Kbd>{formatBinding(shortcuts[action], isMac)}</Kbd></div>))}@@ -55,29 +61,23 @@ export function KeyboardShortcutsHelp() {<span className="text-muted-foreground">{t("keyboardShortcuts.panTimeline")}</span>- <kbd className="px-1 py-0.5 bg-foreground/5 border border-foreground/10 rounded text-[#2563EB] font-mono">- {scrollLabels.pan}- </kbd>+ <Kbd>{scrollLabels.pan}</Kbd></div><div className="flex items-center justify-between mt-1.5"><span className="text-muted-foreground">{t("keyboardShortcuts.zoomTimeline")}</span>- <kbd className="px-1 py-0.5 bg-foreground/5 border border-foreground/10 rounded text-[#2563EB] font-mono">- {scrollLabels.zoom}- </kbd>+ <Kbd>{scrollLabels.zoom}</Kbd></div><div className="flex items-center justify-between mt-1.5"><span className="text-muted-foreground">{t("keyboardShortcuts.cycleAnnotations")}</span>- <kbd className="px-1 py-0.5 bg-foreground/5 border border-foreground/10 rounded text-[#2563EB] font-mono">- {t("keyboardShortcuts.tab")}- </kbd>+ <Kbd>{t("keyboardShortcuts.tab")}</Kbd></div></div></div>- </div>- </div>+ </PopoverContent>+ </Popover>);}diff --git a/src/components/video-editor/PlaybackControls.tsx b/src/components/video-editor/PlaybackControls.tsxindex 82558a7a..1a914a80 100644--- a/src/components/video-editor/PlaybackControls.tsx+++ b/src/components/video-editor/PlaybackControls.tsx@@ -1,6 +1,7 @@import { Pause, Play, SpeakerHigh as Volume2, SpeakerX as VolumeX } from "@phosphor-icons/react";import { useScopedT } from "@/contexts/I18nContext";-import { cn } from "@/lib/utils";+import { Surface } from "@heroui/react";+import { Slider } from "@/components/ui/slider";import { Button } from "../ui/button";interface PlaybackControlsProps {@@ -30,102 +31,37 @@ export default function PlaybackControls({return `${mins}:${secs.toString().padStart(2, "0")}`;}- function handleSeekChange(e: React.ChangeEvent<HTMLInputElement>) {- onSeek(parseFloat(e.target.value));- }-- function handleVolumeChange(e: React.ChangeEvent<HTMLInputElement>) {- onVolumeChange(Number(e.target.value));- }-- const progress = duration > 0 ? (currentTime / duration) * 100 : 0;-return (- <div className="flex items-center gap-2 px-1.5 pr-3 py-0.5 rounded-full bg-black/75 backdrop-blur-md border border-white/10 transition-colors duration-300 hover:bg-black/80 hover:border-white/20">+ <Surface className="flex items-center gap-3 p-2"><ButtononClick={onTogglePlayPause}size="icon"- className={cn(- "w-8 h-8 rounded-full transition-all duration-200 border border-foreground/10",- isPlaying- ? "bg-foreground/10 text-foreground hover:bg-foreground/20"- : "bg-foreground text-background hover:bg-foreground/90",- )}+ variant="ghost"aria-label={isPlaying ? t("playback.pause") : t("playback.play")}>- {isPlaying ? (- <Pause className="w-3.5 h-3.5" weight="fill" />- ) : (- <Play className="w-3.5 h-3.5" weight="fill" />- )}+ {isPlaying ? <Pause weight="fill" /> : <Play weight="fill" />}</Button>-- <span className="text-[9px] font-medium text-muted-foreground tabular-nums w-[30px] text-right">- {formatTime(currentTime)}- </span>-- <div className="flex-1 relative h-6 flex items-center group">- {/* Custom Track Background */}- <div className="absolute left-0 right-0 h-0.5 bg-foreground/10 rounded-full overflow-hidden">- <div- className="h-full bg-[#2563EB] rounded-full"- style={{ width: `${progress}%` }}- />- </div>-- {/* Interactive Input */}- <input- type="range"- min="0"- max={duration || 100}- value={currentTime}- onChange={handleSeekChange}- step="0.01"- className="absolute inset-0 w-full h-full opacity-0 cursor-pointer z-10"- />-- {/* Custom Thumb (visual only, follows progress) */}- <div- className="absolute w-2.5 h-2.5 bg-foreground rounded-full pointer-events-none group-hover:scale-125 transition-transform duration-100"- style={{- left: `${progress}%`,- transform: "translateX(-50%)",- }}- />- </div>-- <span className="text-[9px] font-medium text-muted-foreground tabular-nums w-[30px]">- {formatTime(duration)}- </span>-- <div className="flex items-center gap-1.5 pl-1">- {volume <= 0.001 ? (- <VolumeX className="h-3.5 w-3.5 text-muted-foreground" />- ) : (- <Volume2 className="h-3.5 w-3.5 text-muted-foreground" />- )}- <div className="group relative flex h-6 w-20 items-center">- <div className="absolute left-0 right-0 h-0.5 rounded-full bg-foreground/10 overflow-hidden">- <div- className="h-full rounded-full bg-foreground/70"- style={{ width: `${volume * 100}%` }}- />- </div>- <input- type="range"- min="0"- max="1"- step="0.01"- value={volume}- onChange={handleVolumeChange}- className="absolute inset-0 h-full w-full cursor-pointer opacity-0"- />- <div- className="pointer-events-none absolute h-2.5 w-2.5 rounded-full bg-foreground transition-transform duration-100 group-hover:scale-125"- style={{ left: `${volume * 100}%`, transform: "translateX(-50%)" }}- />- </div>- </div>- </div>+ <span className="text-xs tabular-nums text-muted">{formatTime(currentTime)}</span>+ <Slider+ aria-label={t("playback.seek", "Playback position")}+ min={0}+ max={duration || 100}+ step={0.01}+ value={[currentTime]}+ onValueChange={([time]) => onSeek(time)}+ className="flex-1"+ />+ <span className="text-xs tabular-nums text-muted">{formatTime(duration)}</span>+ {volume <= 0.001 ? <VolumeX className="size-4" /> : <Volume2 className="size-4" />}+ <Slider+ aria-label={t("playback.volume", "Volume")}+ min={0}+ max={1}+ step={0.01}+ value={[volume]}+ onValueChange={([volume]) => onVolumeChange(volume)}+ className="w-20"+ />+ </Surface>);}diff --git a/src/components/video-editor/ProjectBrowserDialog.tsx b/src/components/video-editor/ProjectBrowserDialog.tsxindex ab71fd6b..c2867d79 100644--- a/src/components/video-editor/ProjectBrowserDialog.tsx+++ b/src/components/video-editor/ProjectBrowserDialog.tsx@@ -1,4 +1,6 @@-import { useCallback, useEffect, useMemo, useRef, useState } from "react";+import { Card, Chip, Popover } from "@heroui/react";+import { useEffect, useMemo, useRef } from "react";+import { Button } from "@/components/ui/button";import { toFileUrl } from "./projectPersistence";export type ProjectLibraryEntry = {@@ -9,12 +11,11 @@ export type ProjectLibraryEntry = {isCurrent: boolean;isInProjectsDirectory: boolean;};-type ProjectBrowserDialogProps = {open: boolean;onOpenChange: (open: boolean) => void;entries: ProjectLibraryEntry[];- onOpenProject: (projectPath: string) => void;+ onOpenProject: (path: string) => void;onImportFile?: () => void;anchorRef?: React.RefObject<HTMLElement | null>;preferredDirection?: "up" | "down" | "auto";@@ -32,299 +33,96 @@ export default function ProjectBrowserDialog({onPanelHeightChange,renderMode = "floating",}: ProjectBrowserDialogProps) {- const panelRef = useRef<HTMLDivElement | null>(null);- const [position, setPosition] = useState({ top: 72, left: 16, maxHeight: 360 });+ const panelRef = useRef<HTMLDivElement>(null);const visibleEntries = useMemo(() => entries.slice(0, 24), [entries]);-- const updatePosition = useCallback(() => {- if (typeof window === "undefined") {- return;- }-- const viewportWidth = window.innerWidth;- const viewportHeight = window.innerHeight;- const margin = 12;- const gap = 8;- const fallbackMaxHeight = Math.min(360, viewportHeight - margin * 2);- const panelWidth = Math.min(280, Math.max(248, viewportWidth - margin * 2));- const panelHeight = panelRef.current?.offsetHeight ?? fallbackMaxHeight;- const anchorRect = anchorRef?.current?.getBoundingClientRect();- const availableAbove = anchorRect- ? Math.max(120, anchorRect.top - margin - gap)- : fallbackMaxHeight;- const availableBelow = anchorRect- ? Math.max(120, viewportHeight - anchorRect.bottom - margin - gap)- : fallbackMaxHeight;- const direction =- preferredDirection === "auto"- ? availableAbove > availableBelow- ? "up"- : "down"- : preferredDirection;- const maxHeight = Math.min(- fallbackMaxHeight,- direction === "up" ? availableAbove : availableBelow,- );-- const nextTop = anchorRect- ? direction === "up"- ? Math.max(margin, anchorRect.top - Math.min(panelHeight, maxHeight) - gap)- : Math.min(- anchorRect.bottom + gap,- Math.max(- margin,- viewportHeight - Math.min(panelHeight, maxHeight) - margin,- ),- )- : Math.min(- 56,- Math.max(margin, viewportHeight - Math.min(panelHeight, maxHeight) - margin),- );- const alignedLeft = anchorRect- ? anchorRect.right - panelWidth- : viewportWidth - panelWidth - 16;-- setPosition({- top: Math.max(margin, nextTop),- left: Math.max(margin, Math.min(alignedLeft, viewportWidth - panelWidth - margin)),- maxHeight,- });- }, [anchorRef, preferredDirection]);-- useEffect(() => {- if (!open) {- return;- }-- updatePosition();-- const handleViewportChange = () => updatePosition();- window.addEventListener("resize", handleViewportChange);- window.addEventListener("scroll", handleViewportChange, true);-- return () => {- window.removeEventListener("resize", handleViewportChange);- window.removeEventListener("scroll", handleViewportChange, true);- };- }, [open, updatePosition]);-- useEffect(() => {- if (!open) {- return;- }-- const handlePointerDown = (event: PointerEvent) => {- const target = event.target;- if (!(target instanceof Node)) {- return;- }-- if (panelRef.current?.contains(target) || anchorRef?.current?.contains(target)) {- return;- }-- onOpenChange(false);- };-- const handleKeyDown = (event: KeyboardEvent) => {- if (event.key === "Escape") {- onOpenChange(false);- }- };-- document.addEventListener("pointerdown", handlePointerDown);- window.addEventListener("keydown", handleKeyDown);-- return () => {- document.removeEventListener("pointerdown", handlePointerDown);- window.removeEventListener("keydown", handleKeyDown);- };- }, [anchorRef, onOpenChange, open]);-useEffect(() => {if (!open) {onPanelHeightChange?.(0);return;}-- onPanelHeightChange?.(panelRef.current?.offsetHeight ?? 0);-- if (!panelRef.current || !onPanelHeightChange || typeof ResizeObserver === "undefined") {- return;- }-- const observer = new ResizeObserver(() => {- onPanelHeightChange(panelRef.current?.offsetHeight ?? 0);- });- observer.observe(panelRef.current);-+ const panel = panelRef.current;+ if (!panel || !onPanelHeightChange) return;+ const measure = () => onPanelHeightChange(panel.getBoundingClientRect().height);+ measure();+ const observer = new ResizeObserver(measure);+ observer.observe(panel);return () => {observer.disconnect();onPanelHeightChange(0);};- }, [onPanelHeightChange, open]);-- if (!open) {- return null;- }-- if (renderMode === "inline") {- return (- <div- ref={panelRef}- role="dialog"- aria-label="Projects"- className="pointer-events-auto mb-1.5 w-[300px] max-h-[400px] overflow-hidden rounded-[14px] border border-foreground/[0.07] bg-editor-panel/[0.96] text-foreground shadow-[0_12px_32px_rgba(0,0,0,0.22),0_2px_10px_rgba(0,0,0,0.1)] animate-in fade-in-0 duration-150"- >- <div className="flex items-center justify-between gap-2 border-b border-foreground/10 px-3 py-2.5">- <div className="text-sm font-medium tracking-tight text-foreground">- Projects+ }, [open, onPanelHeightChange]);+ if (!open) return null;+ const content = (+ <Card+ ref={panelRef}+ className="w-[300px] max-w-[calc(100vw-24px)] rounded-none bg-transparent p-1 shadow-none"+ >+ <Card.Header className="flex-row items-center justify-between">+ <Card.Title>Projects</Card.Title>+ {onImportFile && (+ <Button size="sm" variant="secondary" onClick={onImportFile}>+ Import+ </Button>+ )}+ </Card.Header>+ <Card.Content className="max-h-80 overflow-auto">+ {visibleEntries.length ? (+ <div className="grid grid-cols-2 gap-3">+ {visibleEntries.map((entry) => (+ <Button+ key={entry.path}+ variant="ghost"+ onClick={() => onOpenProject(entry.path)}+ aria-label={entry.name}+ aria-current={entry.isCurrent ? "true" : undefined}+ className="h-auto min-w-0 flex-col items-stretch gap-2 p-2"+ >+ <div className="relative aspect-video overflow-hidden rounded-lg bg-default">+ {entry.thumbnailPath ? (+ <img+ src={toFileUrl(entry.thumbnailPath)}+ alt=""+ draggable={false}+ className="h-full w-full object-cover"+ />+ ) : (+ <span className="flex h-full items-center justify-center text-xs text-muted">+ No preview yet+ </span>+ )}+ {entry.isCurrent && (+ <Chip+ size="sm"+ color="accent"+ className="absolute right-1 top-1"+ >+ Current+ </Chip>+ )}+ </div>+ <span className="truncate text-left text-xs">{entry.name}</span>+ </Button>+ ))}</div>- {onImportFile ? (- <button- type="button"- onClick={onImportFile}- className="rounded-md px-2 py-1 text-xs font-medium text-foreground/70 transition hover:bg-foreground/10 hover:text-foreground"- >- Import- </button>- ) : null}- </div>- <div className="max-h-[360px] overflow-y-auto px-2.5 py-2.5">- {visibleEntries.length > 0 ? (- <div className="grid grid-cols-2 gap-2">- {visibleEntries.map((entry) => {- const thumbnailSrc = entry.thumbnailPath- ? toFileUrl(entry.thumbnailPath)- : null;- return (- <button- key={entry.path}- type="button"- onClick={() => onOpenProject(entry.path)}- className="group flex flex-col gap-1 rounded-lg bg-transparent p-0.5 text-left outline-none transition focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0"- >- <div className="relative aspect-[16/10] w-full overflow-hidden rounded-[5px] bg-editor-dialog-alt shadow-[0_10px_18px_rgba(0,0,0,0.28)] transition duration-200 group-hover:-translate-y-0.5 group-hover:shadow-[0_16px_30px_rgba(0,0,0,0.38)]">- {thumbnailSrc ? (- <img- src={thumbnailSrc}- alt=""- className="h-full w-full object-cover transition duration-200 group-hover:scale-[1.02]"- draggable={false}- />- ) : (- <div className="flex h-full w-full items-center justify-center bg-[linear-gradient(180deg,_rgba(37,99,235,0.22),_rgba(13,17,23,0.92))] text-[10px] font-medium text-white/60">- No preview yet- </div>- )}- {entry.isCurrent ? (- <div className="absolute right-1.5 top-1.5">- <span className="rounded-[5px] bg-[#2563EB] px-1.5 py-0.5 text-[8px] font-semibold uppercase tracking-[0.14em] text-white shadow-[0_8px_20px_rgba(37,99,235,0.28)]">- Current- </span>- </div>- ) : null}- </div>- <div className="flex flex-1 flex-col px-0.5 py-0.5">- <div className="truncate text-[11px] font-semibold tracking-tight text-foreground">- {entry.name}- </div>- </div>- </button>- );- })}- </div>- ) : (- <div className="flex min-h-[140px] flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-foreground/10 bg-editor-bg px-4 text-center shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]">- <div className="text-sm font-semibold text-foreground">- No saved projects yet- </div>- </div>- )}- </div>- </div>- );- }-+ ) : (+ <p className="py-8 text-center text-sm text-muted">No saved projects yet</p>+ )}+ </Card.Content>+ </Card>+ );+ // Inline mode lives inside the recorder's existing HeroUI popover.+ if (renderMode === "inline") return content;return (- <div className="pointer-events-none fixed inset-0 z-[90]">- <div- ref={panelRef}- role="dialog"- aria-label="Projects"- style={{ top: `${position.top}px`, left: `${position.left}px` }}- className="pointer-events-auto fixed w-[min(280px,calc(100vw-24px))] overflow-hidden rounded-2xl border border-foreground/10 bg-editor-surface text-foreground shadow-2xl animate-in fade-in-0 duration-150"+ <Popover isOpen={open} onOpenChange={onOpenChange}>+ <Popover.Content+ triggerRef={anchorRef}+ placement={preferredDirection === "up" ? "top end" : "bottom end"}+ isNonModal>- <div className="flex items-center justify-between gap-2 border-b border-foreground/10 px-3 py-2.5">- <div className="text-sm font-medium tracking-tight text-foreground">- Projects- </div>- {onImportFile ? (- <button- type="button"- onClick={onImportFile}- className="rounded-md px-2 py-1 text-xs font-medium text-foreground/70 transition hover:bg-foreground/10 hover:text-foreground"- >- Import- </button>- ) : null}- </div>- <div- className="overflow-y-auto px-2.5 py-2.5"- style={{ maxHeight: `${position.maxHeight}px` }}- >- {visibleEntries.length > 0 ? (- <div className="grid grid-cols-2 gap-2">- {visibleEntries.map((entry) => {- const thumbnailSrc = entry.thumbnailPath- ? toFileUrl(entry.thumbnailPath)- : null;- return (- <button- key={entry.path}- type="button"- onClick={() => onOpenProject(entry.path)}- className="group flex flex-col gap-1 rounded-lg bg-transparent p-0.5 text-left outline-none transition focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0"- >- <div className="relative aspect-[16/10] w-full overflow-hidden rounded-[5px] bg-editor-dialog-alt shadow-[0_10px_18px_rgba(0,0,0,0.28)] transition duration-200 group-hover:-translate-y-0.5 group-hover:shadow-[0_16px_30px_rgba(0,0,0,0.38)]">- {thumbnailSrc ? (- <img- src={thumbnailSrc}- alt=""- className="h-full w-full object-cover transition duration-200 group-hover:scale-[1.02]"- draggable={false}- />- ) : (- <div className="flex h-full w-full items-center justify-center bg-[linear-gradient(180deg,_rgba(37,99,235,0.22),_rgba(13,17,23,0.92))] text-[10px] font-medium text-white/60">- No preview yet- </div>- )}- {entry.isCurrent ? (- <div className="absolute right-1.5 top-1.5">- <span className="rounded-[5px] bg-[#2563EB] px-1.5 py-0.5 text-[8px] font-semibold uppercase tracking-[0.14em] text-white shadow-[0_8px_20px_rgba(37,99,235,0.28)]">- Current- </span>- </div>- ) : null}- </div>- <div className="flex flex-1 flex-col px-0.5 py-0.5">- <div className="truncate text-[11px] font-semibold tracking-tight text-foreground">- {entry.name}- </div>- </div>- </button>- );- })}- </div>- ) : (- <div className="flex min-h-[140px] flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-foreground/10 bg-editor-bg px-4 text-center shadow-[inset_0_1px_0_rgba(255,255,255,0.04)]">- <div className="text-sm font-semibold text-foreground">- No saved projects yet- </div>- </div>- )}- </div>- </div>- </div>+ <Popover.Dialog aria-label="Projects" className="p-0">+ {content}+ </Popover.Dialog>+ </Popover.Content>+ </Popover>);}diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsxindex 5e1372d2..c9f412a9 100644--- a/src/components/video-editor/SettingsPanel.tsx+++ b/src/components/video-editor/SettingsPanel.tsx@@ -1,14 +1,11 @@-import {- CursorClick,- Palette,- PresentationChart,- Trash as Trash2,- UploadSimple as Upload,- X,-} from "@phosphor-icons/react";-import { AnimatePresence, LayoutGroup, motion } from "motion/react";+import { ToggleButton } from "@heroui/react";+import { Card, RadioGroup, Radio, Label, Description } from "@heroui/react";+import { ProgressBar } from "@heroui/react";+import { ColorControl, ColorPalette } from "@/components/ui/color-picker";+import { Palette, Trash as Trash2, UploadSimple as Upload, X } from "@phosphor-icons/react";+import { AnimatePresence, motion } from "motion/react";import { useEffect, useMemo, useRef, useState } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import minimalCursorUrl from "@/assets/cursors/custom/minimal-cursor.svg";import { Button } from "@/components/ui/button";import {@@ -188,11 +185,7 @@ function getBackgroundTabForWallpaper(value: string): BackgroundTab {}function SectionLabel({ children }: { children: React.ReactNode }) {- return (- <p className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground">- {children}- </p>- );+ return <p className="text-xs font-medium text-foreground">{children}</p>;}function WallpaperVideoPreview({ src }: { src: string }) {@@ -278,49 +271,25 @@ function MotionPresetCards({tSettings: (key: string, fallback?: string) => string;}) {return (- <div className="flex flex-col gap-2">- <div className="text-[10px] text-muted-foreground">{title}</div>- <div className="grid grid-cols-2 gap-2">- {MOTION_PRESET_ORDER.map((presetId) => {- const Icon = presetId === "focused" ? CursorClick : PresentationChart;- const isActive = activePresetId === presetId;-- return (- <button- key={presetId}- type="button"- onClick={() => onApply(presetId)}- className={cn(- "rounded-xl border px-3 py-3 text-left transition-all",- "border-foreground/10 bg-foreground/[0.03] hover:border-foreground/20 hover:bg-foreground/[0.06]",- isActive &&- "border-[#2563EB]/70 bg-[#2563EB]/12 shadow-[inset_0_0_0_1px_rgba(37,99,235,0.15)]",- )}- >- <div className="flex items-start gap-3">- <div- className={cn(- "mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border border-foreground/10 bg-black/10 text-muted-foreground",- isActive &&- "border-[#2563EB]/30 bg-[#2563EB]/10 text-[#75A6FF]",- )}- >- <Icon className="h-4 w-4" />- </div>- <div className="min-w-0 flex-1">- <div className="text-[12px] font-medium text-foreground">- {tSettings(`effects.motionPresets.${presetId}.label`)}- </div>- </div>- </div>- <div className="mt-2 text-[10px] leading-4 text-muted-foreground">- {tSettings(`effects.motionPresets.${presetId}.description`)}- </div>- </button>- );- })}- </div>- </div>+ <RadioGroup+ value={activePresetId ?? undefined}+ onChange={(value) => onApply(value as CursorMotionPresetId)}+ >+ <Label className="text-xs font-medium">{title}</Label>+ {MOTION_PRESET_ORDER.map((presetId) => (+ <Radio key={presetId} value={presetId}>+ <Radio.Content>+ <Radio.Control>+ <Radio.Indicator />+ </Radio.Control>+ <Label>{tSettings(`effects.motionPresets.${presetId}.label`)}</Label>+ </Radio.Content>+ <Description>+ {tSettings(`effects.motionPresets.${presetId}.description`)}+ </Description>+ </Radio>+ ))}+ </RadioGroup>);}@@ -440,13 +409,11 @@ function CursorClickEffectCards({return (<div className="flex flex-col gap-2"><div className="flex items-center justify-between">- <div className="text-[10px] text-muted-foreground">{title}</div>- <button- type="button"+ <div className="text-xs text-muted-foreground">{title}</div>+ <ToggleButtononClick={onToggleAdvanced}- aria-pressed={showAdvanced}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80"- title={+ isSelected={showAdvanced}+ aria-label={showAdvanced? tSettings("effects.cursorClickEffects.advancedHide",@@ -459,7 +426,7 @@ function CursorClickEffectCards({}>{tSettings("effects.cursorClickEffects.advanced", "Advanced")}- </button>+ </ToggleButton></div><ToggleGrouptype="single"@@ -488,10 +455,7 @@ function CursorClickEffectCards({value={effect.id}aria-label={label}title={`${label} - ${description}`}- className={cn(- "group aspect-square h-auto min-w-0 rounded-[10px] border border-foreground/10 bg-foreground/[0.03] p-3 text-left text-foreground shadow-none transition-all hover:border-foreground/20 hover:bg-foreground/[0.06]",- "data-[state=on]:border-[#2563EB]/70 data-[state=on]:bg-[#2563EB]/12 data-[state=on]:text-foreground",- )}+ className={cn("group aspect-square h-auto min-w-0 p-3 text-left")}><div className="flex h-full flex-col items-center justify-between gap-3"><div className="flex min-h-0 flex-1 items-center justify-center overflow-hidden rounded-[8px] px-2 py-1.5">@@ -1233,8 +1197,7 @@ export function SettingsPanel({const [backgroundTab, setBackgroundTab] = useState<BackgroundTab>(() =>getBackgroundTabForWallpaper(selected),);- const customColorInputRef = useRef<HTMLInputElement | null>(null);- const cursorClickEffectColorInputRef = useRef<HTMLInputElement | null>(null);+const defaultWebcam = initialEditorPreferences.webcam;const [builtInCursorPreviewUrls, setBuiltInCursorPreviewUrls] = useState<Partial<Record<string, string>>@@ -1438,10 +1401,8 @@ export function SettingsPanel({const wallpaperTileClass = (isSelected: boolean) =>cn(- "group relative aspect-square w-full overflow-hidden rounded-[10px] border bg-editor-bg transition-colors duration-150",- isSelected- ? "border-[#2563EB] bg-foreground/[0.08]"- : "border-foreground/10 bg-foreground/[0.045] hover:border-foreground/20 hover:bg-foreground/[0.07]",+ "group relative aspect-[4/3] h-auto w-full min-w-0 overflow-hidden rounded-md p-1",+ isSelected && "ring-2 ring-accent",);const renderWallpaperImageTile = (@@ -1455,15 +1416,14 @@ export function SettingsPanel({children?: React.ReactNode;},) => (- <div+ <ToggleButton+ isSelected={isSelected}key={props?.key}className={wallpaperTileClass(isSelected)}aria-label={props?.ariaLabel}- title={props?.title}onClick={props?.onClick}- role="button">- <div className="absolute inset-[1px] overflow-hidden rounded-[8px] bg-editor-dialog">+ <div className="absolute inset-px overflow-hidden rounded-[5px]">{isVideoWallpaperSource(wallpaperUrl) ? (<WallpaperVideoPreview src={wallpaperUrl} />) : (@@ -1480,7 +1440,7 @@ export function SettingsPanel({)}</div>{props?.children}- </div>+ </ToggleButton>);const crop = cropRegion ?? {@@ -1728,17 +1688,19 @@ export function SettingsPanel({: null;const backgroundSettingsContent = (- <div className="space-y-4">+ <div className="space-y-5"><section className="flex flex-col gap-2"><div className="flex items-center justify-between gap-3"><SectionLabel>{tSettings("background.title")}</SectionLabel>- <button+ <Button+ variant="ghost"+ size="sm"+ className="text-xs text-muted"type="button"onClick={resetBackgroundSection}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80">{t("common.actions.reset", "Reset")}- </button>+ </Button></div><SliderControllabel={tSettings("effects.backgroundBlur")}@@ -1754,50 +1716,33 @@ export function SettingsPanel({</section><div className="w-full">- <LayoutGroup id="background-picker-switcher">- <div className="grid h-8 w-full grid-cols-4 rounded-xl border border-foreground/10 bg-foreground/[0.04] p-1">- {(- [- { value: "image", label: tSettings("background.image") },- { value: "video", label: tSettings("background.video", "Video") },- { value: "color", label: tSettings("background.color") },- { value: "gradient", label: tSettings("background.gradient") },- ] as const- ).map((option) => {- const isActive = backgroundTab === option.value;- return (- <button- key={option.value}- type="button"- onClick={() => setBackgroundTab(option.value)}- className="relative rounded-lg text-[10px] font-semibold tracking-wide transition-colors"- >- {isActive ? (- <motion.span- layoutId="background-picker-pill"- className="absolute inset-0 rounded-lg bg-[#2563EB]"- transition={{- type: "spring",- stiffness: 420,- damping: 34,- }}- />- ) : null}- <span- className={cn(- "relative z-10",- isActive- ? "text-white"- : "text-muted-foreground hover:text-foreground",- )}- >- {option.label}- </span>- </button>- );- })}- </div>- </LayoutGroup>+ <ToggleGroup+ type="single"+ value={backgroundTab}+ onValueChange={(value) => {+ if (value) setBackgroundTab(value as typeof backgroundTab);+ }}+ aria-label={tSettings("background.title", "Background type")}+ className="w-full"+ size="sm"+ >+ {(+ [+ { value: "image", label: tSettings("background.image") },+ { value: "video", label: tSettings("background.video", "Video") },+ { value: "color", label: tSettings("background.color") },+ { value: "gradient", label: tSettings("background.gradient") },+ ] as const+ ).map((option) => (+ <ToggleGroupItem+ key={option.value}+ value={option.value}+ className="flex-1 min-w-0 px-2"+ >+ {option.label}+ </ToggleGroupItem>+ ))}+ </ToggleGroup><div className="pt-2"><AnimatePresence mode="wait" initial={false}>@@ -1820,13 +1765,13 @@ export function SettingsPanel({<ButtononClick={() => fileInputRef.current?.click()}variant="outline"- className="w-full gap-2 bg-foreground/5 text-foreground border-foreground/10 hover:bg-[#2563EB] hover:text-white hover:border-[#2563EB] transition-all h-7 text-[10px]"+ className="w-full gap-2 h-7"><Upload className="w-3 h-3" />{tSettings("background.uploadCustom")}</Button>- <div className="grid grid-cols-8 gap-1.5">+ <div className="grid grid-cols-6 gap-2">{customImages.map((imageUrl, idx) => {const isSelected = getWallpaperTileState(imageUrl);return renderWallpaperImageTile(imageUrl, isSelected, {@@ -1843,14 +1788,15 @@ export function SettingsPanel({: undefined,onClick: () => onWallpaperChange(imageUrl),children: (- <button+ <Button+ variant="destructive-soft"onClick={(e) =>handleRemoveCustomImage(imageUrl, e)}- className="absolute top-0.5 right-0.5 w-3 h-3 bg-red-500/90 hover:bg-red-500 rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity z-10"+ className="absolute top-0.5 right-0.5 w-3 h-3 flex items-center justify-center z-10"><X className="w-2 h-2 text-white" />- </button>+ </Button>),});})}@@ -1878,13 +1824,13 @@ export function SettingsPanel({<ButtononClick={handleVideoUpload}variant="outline"- className="w-full gap-2 bg-foreground/5 text-foreground border-foreground/10 hover:bg-[#2563EB] hover:text-white hover:border-[#2563EB] transition-all h-7 text-[10px]"+ className="w-full gap-2 h-7"><Upload className="w-3 h-3" />{tSettings("background.uploadCustomVideo", "Upload Video")}</Button>- <div className="grid grid-cols-8 gap-1.5">+ <div className="grid grid-cols-6 gap-2">{customImages.filter(isVideoWallpaperSource).map((videoUrl, idx) => {@@ -1900,17 +1846,18 @@ export function SettingsPanel({title: videoUrl.split(/[\\/]/).pop(),onClick: () => onWallpaperChange(videoUrl),children: (- <button+ <Button+ variant="destructive-soft"onClick={(e) =>handleRemoveCustomImage(videoUrl,e,)}- className="absolute top-0.5 right-0.5 w-3 h-3 bg-red-500/90 hover:bg-red-500 rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity z-10"+ className="absolute top-0.5 right-0.5 w-3 h-3 flex items-center justify-center z-10"><X className="w-2 h-2 text-white" />- </button>+ </Button>),},);@@ -1937,60 +1884,30 @@ export function SettingsPanel({</div>) : backgroundTab === "color" ? (<div className="mt-0 space-y-2">- <input- ref={customColorInputRef}- type="color"- value={selectedColor}- onChange={(event) => {- setSelectedColor(event.target.value);- onWallpaperChange(event.target.value);- }}- className="sr-only"- />- <div className="grid grid-cols-8 gap-1.5">- {visibleColorPalette.map((color) => {- const isSelected =- selected.toLowerCase() === color.toLowerCase();- return (- <button- key={color}- type="button"- onClick={() => {- setSelectedColor(color);- onWallpaperChange(color);- }}- className={wallpaperTileClass(isSelected)}- style={{ background: color }}- aria-label={`Color ${color}`}- />- );- })}- <button- type="button"- onClick={() => customColorInputRef.current?.click()}- className={wallpaperTileClass(- isHexWallpaper(selected) &&- !visibleColorPalette.some(- (color) =>- color.toLowerCase() ===- selected.toLowerCase(),- ),- )}- style={{- background: `linear-gradient(135deg, ${selectedColor} 0%, ${selectedColor} 58%, rgba(255,255,255,0.92) 58%, rgba(255,255,255,0.92) 100%)`,+ <div className="flex flex-col gap-3">+ <ColorPalette+ color={selectedColor}+ colors={visibleColorPalette}+ onChange={({ hex }) => {+ setSelectedColor(hex);+ onWallpaperChange(hex);}}- aria-label="Custom color picker"- >- <div className="absolute inset-0 flex items-center justify-center text-[9px] font-semibold uppercase tracking-[0.18em] text-foreground/90">- Pick- </div>- </button>+ />+ <ColorControl+ label="Custom color"+ value={selectedColor}+ onChange={(color) => {+ setSelectedColor(color);+ onWallpaperChange(color);+ }}+ /></div></div>) : (- <div className="mt-0 grid grid-cols-8 gap-1.5">+ <div className="mt-0 grid grid-cols-6 gap-2">{GRADIENTS.map((g, idx) => (- <div+ <Button+ variant="ghost"key={g}className={wallpaperTileClass(gradient === g)}aria-label={`Gradient ${idx + 1}`}@@ -2004,7 +1921,7 @@ export function SettingsPanel({className="absolute inset-[1px] overflow-hidden rounded-[8px]"style={{ background: g }}/>- </div>+ </Button>))}</div>)}@@ -2056,9 +1973,9 @@ export function SettingsPanel({if (isBackgroundPanel) {return (- <div className="flex-[2] w-[332px] min-w-[280px] max-w-[332px] bg-editor-panel rounded-2xl flex flex-col shadow-xl h-full overflow-hidden">+ <Card className="flex min-h-0 flex-1 flex-col gap-0 overflow-hidden rounded-none bg-transparent p-0 shadow-none"><div- className="flex-1 min-h-0 overflow-y-auto custom-scrollbar p-4 pb-0"+ className="flex-1 min-h-0 overflow-y-auto custom-scrollbar p-4"style={{ scrollbarGutter: "stable" }}><div className="mb-4 flex items-center gap-2">@@ -2069,7 +1986,7 @@ export function SettingsPanel({</div>{backgroundSettingsContent}</div>- </div>+ </Card>);}@@ -2077,13 +1994,15 @@ export function SettingsPanel({<section className="flex flex-col gap-2"><div className="flex items-center justify-between gap-3"><SectionLabel>{tSettings("sections.frame", "Frame")}</SectionLabel>- <button+ <Button+ variant="ghost"+ size="sm"+ className="text-xs text-muted"type="button"onClick={resetFrameSection}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80">{t("common.actions.reset", "Reset")}- </button>+ </Button></div><div className="flex flex-col gap-1.5"><SliderControl@@ -2111,12 +2030,10 @@ export function SettingsPanel({<div className="flex flex-col gap-1.5 pt-0.5"><div className="flex items-center justify-between"><SectionLabel>{tSettings("effects.padding")}</SectionLabel>- <button- type="button"+ <ToggleButtononClick={togglePaddingLink}- aria-pressed={padding.linked === false}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80"- title={+ isSelected={padding.linked === false}+ aria-label={padding.linked === false? tSettings("effects.paddingAdvancedHide",@@ -2129,12 +2046,13 @@ export function SettingsPanel({}>{tSettings("effects.paddingAdvanced", "Advanced")}- </button>+ </ToggleButton></div>{padding.linked !== false ? (<SliderControllabel=""+ ariaLabel={tSettings("effects.padding")}value={padding.top}defaultValue={DEFAULT_PADDING.top}min={0}@@ -2193,14 +2111,14 @@ export function SettingsPanel({</div>)}</div>- <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">- <span className="text-[10px] text-muted-foreground">+ <div className="flex items-center justify-between py-2">+ <span className="text-xs text-muted-foreground">{tSettings("effects.removeBackground")}</span><Switch+ aria-label={tSettings("effects.removeBackground")}checked={removeBackgroundEnabled}onCheckedChange={handleRemoveBackgroundToggle}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div></div>@@ -2212,13 +2130,15 @@ export function SettingsPanel({<div className="flex items-center justify-between gap-3"><SectionLabel>{tSettings("sections.crop", "Crop")}</SectionLabel>{isCropped ? (- <button+ <Button+ variant="ghost"+ size="sm"+ className="text-xs text-muted"type="button"onClick={resetCropSection}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80">{t("common.actions.reset", "Reset")}- </button>+ </Button>) : null}</div><div className="flex flex-col gap-1.5">@@ -2275,31 +2195,31 @@ export function SettingsPanel({<div className="flex items-center justify-between gap-3"><div className="flex items-center gap-3"><SectionLabel>{tSettings("sections.captions", "Captions")}</SectionLabel>- <button+ <Button+ variant="ghost"type="button"onClick={() => onAutoCaptionSettingsChange?.(DEFAULT_AUTO_CAPTION_SETTINGS)}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80">{t("common.actions.reset", "Reset")}- </button>+ </Button></div>- <div className="flex items-center gap-2 text-[10px] text-muted-foreground">+ <div className="flex items-center gap-2 text-xs text-muted-foreground"><span>{tSettings("captions.enabled", "Show")}</span><Switch+ aria-label={tSettings("captions.enabled", "Show")}checked={autoCaptionSettings.enabled}onCheckedChange={(enabled) => updateAutoCaptionSettings({ enabled })}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div></div>- <div className="rounded-lg bg-foreground/[0.03] px-2.5 py-2 space-y-3">+ <div className="py-2 space-y-3"><div><Buttontype="button"variant="outline"onClick={onPickWhisperModel}- className="h-10 w-full rounded-xl border-foreground/10 bg-foreground/5 px-4 text-sm text-foreground hover:bg-foreground/10 hover:text-foreground"+ className="h-10 w-full px-4 text-sm">{tSettings("captions.selectModel", "Select Model")}</Button>@@ -2312,10 +2232,10 @@ export function SettingsPanel({value={autoCaptionSettings.language || "auto"}onValueChange={(value) => updateAutoCaptionSettings({ language: value })}>- <SelectTrigger className="h-10 w-[180px] rounded-xl border-foreground/10 bg-foreground/5 text-sm text-foreground hover:bg-foreground/10">+ <SelectTrigger className="h-10 w-[180px] text-sm"><SelectValue /></SelectTrigger>- <SelectContent className="border-foreground/10 bg-editor-surface-alt text-foreground">+ <SelectContent>{CAPTION_LANGUAGE_OPTIONS.map((option) => (<SelectItem key={option.value} value={option.value}>{option.label}@@ -2327,11 +2247,7 @@ export function SettingsPanel({<div className="flex flex-wrap items-center gap-2"><div className="grid w-full grid-cols-2 gap-2">{whisperModelDownloadStatus === "downloading" ? (- <Button- type="button"- disabled- className="h-10 w-full rounded-xl bg-foreground/10 px-4 text-sm font-medium text-foreground hover:bg-foreground/10"- >+ <Button type="button" disabled className="h-10 w-full px-4 text-sm">{tSettings("captions.downloading", "Downloading...")}{" "}{Math.round(whisperModelDownloadProgress)}%</Button>@@ -2340,7 +2256,7 @@ export function SettingsPanel({type="button"variant="outline"onClick={onDeleteWhisperSmallModel}- className="h-10 w-full rounded-xl border-foreground/10 bg-foreground/5 px-4 text-sm text-foreground hover:bg-foreground/10 hover:text-foreground"+ className="h-10 w-full px-4 text-sm">{tSettings("captions.deleteModel", "Delete Model")}</Button>@@ -2348,7 +2264,7 @@ export function SettingsPanel({<Buttontype="button"onClick={onDownloadWhisperSmallModel}- className="h-10 w-full rounded-xl bg-[#2563EB] px-4 text-sm font-medium text-white hover:bg-[#2563EB]/90"+ className="h-10 w-full px-4 text-sm">{tSettings("captions.downloadModel", "Download Model")}</Button>@@ -2358,7 +2274,7 @@ export function SettingsPanel({variant="outline"onClick={onClearAutoCaptions}disabled={captionCueCount === 0}- className="h-10 w-full rounded-xl border-foreground/10 bg-foreground/5 px-4 text-sm text-foreground hover:bg-foreground/10 hover:text-foreground disabled:opacity-50"+ className="h-10 w-full px-4 text-sm">{tSettings("captions.clearFull", "Clear Captions")}</Button>@@ -2369,7 +2285,7 @@ export function SettingsPanel({type="button"onClick={onGenerateAutoCaptions}disabled={isGeneratingCaptions || !whisperModelPath}- className="h-10 w-full rounded-xl bg-[#2563EB] px-4 text-sm font-medium text-white hover:bg-[#2563EB]/90 disabled:opacity-60"+ className="h-10 w-full px-4 text-sm">{isGeneratingCaptions? tSettings("captions.generating", "Generating...")@@ -2385,7 +2301,11 @@ export function SettingsPanel({"Generating captions. This can take a moment.",)}</div>- <div className="indeterminate-progress h-2 rounded-full bg-foreground/5" />+ <ProgressBar aria-label="Downloading caption model" isIndeterminate>+ <ProgressBar.Track>+ <ProgressBar.Fill />+ </ProgressBar.Track>+ </ProgressBar></div>) : null}</div>@@ -2400,8 +2320,8 @@ export function SettingsPanel({</div><div className="flex flex-col gap-1.5">- <div className="flex items-center justify-between gap-3 rounded-lg bg-foreground/[0.03] px-2.5 py-2">- <div className="text-[10px] text-muted-foreground">+ <div className="flex items-center justify-between gap-3 py-2">+ <div className="text-xs text-muted-foreground">{tSettings("captions.animation", "Animation")}</div><Select@@ -2412,10 +2332,10 @@ export function SettingsPanel({})}>- <SelectTrigger className="h-9 w-[160px] rounded-xl border-foreground/10 bg-foreground/5 text-sm text-foreground hover:bg-foreground/10">+ <SelectTrigger className="h-9 w-[160px] text-sm"><SelectValue /></SelectTrigger>- <SelectContent className="border-foreground/10 bg-editor-surface-alt text-foreground">+ <SelectContent>{CAPTION_ANIMATION_OPTIONS.map((option) => (<SelectItem key={option.value} value={option.value}>{option.label}@@ -2424,8 +2344,8 @@ export function SettingsPanel({</SelectContent></Select></div>- <div className="flex items-center justify-between gap-3 rounded-lg bg-foreground/[0.03] px-2.5 py-2">- <div className="text-[10px] text-muted-foreground">+ <div className="flex items-center justify-between gap-3 py-2">+ <div className="text-xs text-muted-foreground">{tSettings("captions.timelineQuickAdd", "Hover to add on timeline")}</div><Switch@@ -2437,20 +2357,16 @@ export function SettingsPanel({"captions.timelineQuickAdd","Hover to add on timeline",)}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div>- <label className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-2">- <span className="text-[10px] text-muted-foreground">+ <label className="flex items-center justify-between py-2">+ <span className="text-xs text-muted-foreground">{tSettings("captions.textColor", "Text color")}</span>- <input- type="color"+ <ColorControl+ label={tSettings("captions.textColor", "Text color")}value={autoCaptionSettings.textColor}- onChange={(event) =>- updateAutoCaptionSettings({ textColor: event.target.value })- }- className="h-7 w-10 rounded border border-foreground/10 bg-transparent"+ onChange={(color) => updateAutoCaptionSettings({ textColor: color })}/></label><div className="mb-1 text-sm font-medium text-foreground">@@ -2530,41 +2446,39 @@ export function SettingsPanel({const effectSectionContent = (() => {const settingsSectionContent = (- <div className="space-y-4">+ <div className="space-y-5"><section className="flex flex-col gap-2"><SectionLabel>{t("editor.theme.appearance", "Appearance")}</SectionLabel>- <div className="flex rounded-lg border border-foreground/10 bg-foreground/5 p-0.5">- {(- [- { value: "light", label: t("editor.theme.light", "Light") },- { value: "dark", label: t("editor.theme.dark", "Dark") },- { value: "system", label: t("editor.theme.system", "System") },- ] as const- ).map((option) => (- <button- key={option.value}- type="button"- onClick={() => setThemePreference(option.value)}- className={cn(- "flex-1 rounded-md px-3 py-1.5 text-xs font-medium transition-all",- themePreference === option.value- ? "bg-neutral-800 text-white shadow-sm dark:bg-white dark:text-black"- : "text-muted-foreground hover:text-foreground",- )}- >- {option.label}- </button>- ))}- </div>+ <ToggleGroup+ type="single"+ aria-label={t("editor.theme.appearance", "Appearance")}+ value={themePreference}+ onValueChange={(value) => {+ if (value === "light" || value === "dark" || value === "system")+ setThemePreference(value);+ }}+ fullWidth+ size="sm"+ >+ <ToggleGroupItem value="light" className="flex-1">+ {t("editor.theme.light", "Light")}+ </ToggleGroupItem>+ <ToggleGroupItem value="dark" className="flex-1">+ {t("editor.theme.dark", "Dark")}+ </ToggleGroupItem>+ <ToggleGroupItem value="system" className="flex-1">+ {t("editor.theme.system", "System")}+ </ToggleGroupItem>+ </ToggleGroup></section><section className="flex flex-col gap-2"><SectionLabel>{t("common.app.language", "Language")}</SectionLabel><Select value={locale} onValueChange={(value) => setLocale(value as AppLocale)}>- <SelectTrigger className="h-10 w-full rounded-xl border-foreground/10 bg-foreground/5 text-sm text-foreground hover:bg-foreground/10">+ <SelectTrigger className="h-10 w-full text-sm"><SelectValue /></SelectTrigger>- <SelectContent className="border-foreground/10 bg-editor-surface-alt text-foreground">+ <SelectContent>{SUPPORTED_LOCALES.map((candidateLocale) => (<SelectItem key={candidateLocale} value={candidateLocale}>{APP_LANGUAGE_LABELS[candidateLocale]}@@ -2576,12 +2490,12 @@ export function SettingsPanel({<section className="flex flex-col gap-2"><SectionLabel>{tSettings("updates.title", "Updates")}</SectionLabel>- <div className="flex items-center justify-between gap-3 rounded-lg bg-foreground/[0.03] px-2.5 py-2">+ <div className="flex items-center justify-between gap-3 py-2"><div>- <div className="text-[11px] font-medium text-foreground">+ <div className="text-xs font-medium text-foreground">{tSettings("updates.experimental", "Experimental updates")}</div>- <div className="mt-0.5 text-[10px] text-muted-foreground/70">+ <div className="mt-0.5 text-xs text-muted-foreground/70">{tSettings("updates.experimentalDescription","This is the front line of user testing - highly experimental so expect bugs",@@ -2595,21 +2509,20 @@ export function SettingsPanel({void updateExperimentalUpdatesPreference(enabled)}aria-label={tSettings("updates.experimental", "Experimental updates")}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div></section><section className="flex flex-col gap-1.5">- <div className="flex items-center justify-between gap-3 rounded-lg bg-foreground/[0.03] px-2.5 py-2">+ <div className="flex items-center justify-between gap-3 py-2"><div>- <div className="text-[11px] font-medium text-foreground">+ <div className="text-xs font-medium text-foreground">{tSettings("effects.autoApplyFreshRecordingZooms","Auto-apply fresh recording zooms",)}</div>- <div className="mt-0.5 text-[10px] text-muted-foreground/70">+ <div className="mt-0.5 text-xs text-muted-foreground/70">{tSettings("effects.autoApplyFreshRecordingZoomsDescription","Suggest cursor-follow zooms automatically when you open a new recording.",@@ -2617,17 +2530,20 @@ export function SettingsPanel({</div></div><Switch+ aria-label={tSettings(+ "effects.autoApplyFreshRecordingZooms",+ "Auto-apply fresh recording zooms",+ )}checked={autoApplyFreshRecordingAutoZooms}onCheckedChange={onAutoApplyFreshRecordingAutoZoomsChange}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div>- <div className="flex items-center justify-between gap-3 rounded-lg bg-foreground/[0.03] px-2.5 py-2">+ <div className="flex items-center justify-between gap-3 py-2"><div>- <div className="text-[11px] font-medium text-foreground">+ <div className="text-xs font-medium text-foreground">{tSettings("effects.connectZooms", "Connect neighboring zooms")}</div>- <div className="mt-0.5 text-[10px] text-muted-foreground/70">+ <div className="mt-0.5 text-xs text-muted-foreground/70">{tSettings("effects.connectZoomsDescription","Smooth consecutive zoom regions into a continuous camera move.",@@ -2635,9 +2551,12 @@ export function SettingsPanel({</div></div><Switch+ aria-label={tSettings(+ "effects.connectZooms",+ "Connect neighboring zooms",+ )}checked={connectZooms}onCheckedChange={onConnectZoomsChange}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div></section>@@ -2666,14 +2585,14 @@ export function SettingsPanel({<SectionLabel>{tSettings("effects.devSection", "Dev")}</SectionLabel>- <div className="mt-0.5 text-[10px] text-muted-foreground">+ <div className="mt-0.5 text-xs text-muted-foreground">{tSettings("effects.devSectionHint","Temporary testing controls for native capture and motion tuning.",)}</div></div>- <span className="rounded-full bg-[#2563EB]/10 px-2 py-0.5 text-[10px] font-medium uppercase tracking-wider text-[#2563EB]">+ <span className="rounded-full bg-[#2563EB]/10 px-2 py-0.5 text-xs font-medium uppercase tracking-wider text-[#2563EB]">DEV</span></div>@@ -2681,13 +2600,13 @@ export function SettingsPanel({<div className="rounded-lg border border-foreground/10 bg-background/60 px-3 py-3"><div className="flex items-start justify-between gap-3"><div>- <div className="text-[11px] font-medium text-foreground">+ <div className="text-xs font-medium text-foreground">{tSettings("effects.nativeCaptureWarningTester","Native capture warning",)}</div>- <div className="mt-0.5 text-[10px] text-muted-foreground">+ <div className="mt-0.5 text-xs text-muted-foreground">{nativeCaptureUnavailableSession? tSettings("effects.nativeCaptureWarningTesterUnavailable",@@ -2704,7 +2623,7 @@ export function SettingsPanel({variant="outline"size="sm"onClick={() => onOpenNativeCaptureUnavailableModal?.()}- className="h-8 shrink-0 border-[#2563EB]/20 bg-[#2563EB]/10 text-[#2563EB] hover:bg-[#2563EB]/15"+ className="h-8 shrink-0">{tSettings("effects.openNativeCaptureWarning", "Open warning")}</Button>@@ -2713,10 +2632,10 @@ export function SettingsPanel({<div className="space-y-1.5 rounded-lg border border-foreground/10 bg-background/60 px-3 py-3"><div>- <div className="text-[11px] font-medium text-foreground">+ <div className="text-xs font-medium text-foreground">{tSettings("effects.cameraDebugTuning", "Camera Debug Tuning")}</div>- <div className="mt-0.5 text-[10px] text-muted-foreground">+ <div className="mt-0.5 text-xs text-muted-foreground">{tSettings("effects.cameraDebugTuningHint","Development-only spring tuning controls for camera motion.",@@ -2775,10 +2694,10 @@ export function SettingsPanel({<div className="space-y-1.5 rounded-lg border border-foreground/10 bg-background/60 px-3 py-3"><div>- <div className="text-[11px] font-medium text-foreground">+ <div className="text-xs font-medium text-foreground">{tSettings("effects.cursorDebugTuning", "Cursor Debug Tuning")}</div>- <div className="mt-0.5 text-[10px] text-muted-foreground">+ <div className="mt-0.5 text-xs text-muted-foreground">{tSettings("effects.cursorDebugTuningHint","Development-only spring tuning controls.",@@ -2840,7 +2759,7 @@ export function SettingsPanel({);const sceneSectionContent = (- <div className="space-y-4">+ <div className="space-y-5">{backgroundSettingsContent}{frameSectionContent}{cropSectionContent}@@ -2854,7 +2773,7 @@ export function SettingsPanel({<div className="flex items-center justify-between gap-3"><SectionLabel>{tSettings("sections.zoom", "Zoom")}</SectionLabel>{selectedZoomDepth && (- <span className="rounded-full bg-[#2563EB]/10 px-2 py-0.5 text-[10px] font-medium uppercase tracking-wider text-[#2563EB]">+ <span className="rounded-full bg-[#2563EB]/10 px-2 py-0.5 text-xs font-medium uppercase tracking-wider text-[#2563EB]">{ZOOM_DEPTH_OPTIONS.find((o) => o.depth === selectedZoomDepth,@@ -2864,33 +2783,23 @@ export function SettingsPanel({)}</div><div className="mb-1">- <div className="flex rounded-lg border border-foreground/10 bg-foreground/5 p-0.5">- <button- type="button"+ <div className="flex gap-1">+ <ToggleButton+ isSelected={selectedZoomMode === "auto"}onClick={() => onZoomModeChange?.("auto")}- className={cn(- "flex-1 rounded-md px-3 py-1.5 text-xs font-medium transition-all",- selectedZoomMode === "auto"- ? "bg-[#2563EB] text-white shadow-sm"- : "text-muted-foreground hover:text-foreground",- )}+ className={cn("flex-1 px-3 py-1.5 text-xs")}>{tSettings("zoom.modeAuto", "Auto")}- </button>- <button- type="button"+ </ToggleButton>+ <ToggleButton+ isSelected={selectedZoomMode === "manual"}onClick={() => onZoomModeChange?.("manual")}- className={cn(- "flex-1 rounded-md px-3 py-1.5 text-xs font-medium transition-all",- selectedZoomMode === "manual"- ? "bg-[#2563EB] text-white shadow-sm"- : "text-muted-foreground hover:text-foreground",- )}+ className={cn("flex-1 px-3 py-1.5 text-xs")}>{tSettings("zoom.modeManual", "Manual")}- </button>+ </ToggleButton></div>- <p className="mt-1.5 text-[10px] text-muted-foreground/70">+ <p className="mt-1.5 text-xs text-muted-foreground/70">{selectedZoomMode === "manual"? tSettings("zoom.modeManualDescription",@@ -2906,21 +2815,18 @@ export function SettingsPanel({{ZOOM_DEPTH_OPTIONS.map((option) => {const isActive = selectedZoomDepth === option.depth;return (- <Button+ <ToggleButton+ isSelected={isActive}key={option.depth}- type="button"onClick={() => onZoomDepthChange?.(option.depth)}className={cn(- "h-auto w-full rounded-lg border px-1 py-2 text-center shadow-sm transition-all duration-200 ease-out cursor-pointer",- isActive- ? "border-[#2563EB] bg-[#2563EB] text-white"- : "border-foreground/5 bg-foreground/5 text-muted-foreground hover:bg-foreground/10 hover:border-foreground/10 hover:text-foreground",+ "h-auto w-full px-1 py-2 text-center ease-out cursor-pointer",)}><span className="text-xs font-semibold">{option.label}</span>- </Button>+ </ToggleButton>);})}</div>@@ -2929,26 +2835,28 @@ export function SettingsPanel({)}<div className="flex items-center justify-between gap-3"><SectionLabel>{tSettings("zoom.globalSettings", "Animation")}</SectionLabel>- <button+ <Button+ variant="ghost"+ size="sm"+ className="text-xs text-muted"type="button"onClick={resetZoomSection}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80">{t("common.actions.reset", "Reset")}- </button>+ </Button></div>- <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">- <span className="text-[10px] text-muted-foreground">+ <div className="flex items-center justify-between py-2">+ <span className="text-xs text-muted-foreground">{tSettings("effects.classicZoom", "Classic Animation")}</span><Switch+ aria-label={tSettings("effects.classicZoom", "Classic Animation")}checked={zoomClassicMode}onCheckedChange={(v) => onZoomClassicModeChange?.(v)}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div>{!zoomClassicMode && (- <div className="text-[10px] text-muted-foreground">+ <div className="text-xs text-muted-foreground">{tSettings("effects.motionPresetsZoomHint","Zoom motion presets are available in Settings.",@@ -2960,9 +2868,9 @@ export function SettingsPanel({onClick={() => {if (selectedZoomId && onZoomDelete) onZoomDelete(selectedZoomId);}}- variant="destructive"+ variant="destructive-soft"size="sm"- className="mt-1 h-8 w-full gap-2 border border-red-500/20 bg-red-500/10 text-xs text-red-400 transition-all hover:border-red-500/30 hover:bg-red-500/20"+ className="mt-1 h-8 w-full gap-2 text-xs"><Trash2 className="h-3 w-3" />{tSettings("zoom.deleteZoom")}@@ -2975,16 +2883,16 @@ export function SettingsPanel({<section className="flex flex-col gap-3"><div className="flex items-center justify-between gap-3"><SectionLabel>{tSettings("audio.volumeTitle", "Audio")}</SectionLabel>- <button+ <Button+ variant="ghost"type="button"onClick={() => {onAudioVolumeChange?.(1);onAudioNormalizeChange?.(false);}}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80">{t("common.actions.reset", "Reset")}- </button>+ </Button></div><SliderControllabel={tSettings("audio.volume", "Volume")}@@ -2997,14 +2905,14 @@ export function SettingsPanel({formatValue={(v) => `${Math.round(v * 100)}%`}parseInput={(text) => parseFloat(text.replace(/%$/, "")) / 100}/>- <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">- <span className="text-[10px] text-muted-foreground">+ <div className="flex items-center justify-between py-2">+ <span className="text-xs text-muted-foreground">{tSettings("audio.normalize", "Normalize")}</span><Switch+ aria-label={tSettings("audio.normalize", "Normalize")}checked={Boolean(selectedAudioNormalize)}onCheckedChange={(v) => onAudioNormalizeChange?.(v)}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div></section>@@ -3015,7 +2923,10 @@ export function SettingsPanel({<SectionLabel>{tSettings("clip.title", "Clip")}</SectionLabel><SliderControllabel={tSettings("speed.label", "Speed")}- value={Math.min(clipSpeedRange.max, Math.max(clipSpeedRange.min, selectedClipSpeed ?? 1))}+ value={Math.min(+ clipSpeedRange.max,+ Math.max(clipSpeedRange.min, selectedClipSpeed ?? 1),+ )}defaultValue={1}min={clipSpeedRange.min}max={clipSpeedRange.max}@@ -3025,20 +2936,24 @@ export function SettingsPanel({parseInput={(text) => Number.parseFloat(text)}/>{selectedClipSpeed != null &&- (selectedClipSpeed < clipSpeedRange.min || selectedClipSpeed > clipSpeedRange.max) && (- <p className="text-[11px] text-muted-foreground" role="status">- {selectedClipSpeed}× — {tSettings("speed.unsupported", "Not supported for preview on this device")}+ (selectedClipSpeed < clipSpeedRange.min ||+ selectedClipSpeed > clipSpeedRange.max) && (+ <p className="text-xs text-muted-foreground" role="status">+ {selectedClipSpeed}× —{" "}+ {tSettings(+ "speed.unsupported",+ "Not supported for preview on this device",+ )}</p>)}- <label className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-2">- <span className="text-[11px] text-muted-foreground">+ <label className="flex items-center justify-between py-2">+ <span className="text-xs text-muted-foreground">{tSettings("clip.mute", "Mute clip")}</span><Switchchecked={selectedClipMuted ?? false}onCheckedChange={(muted) => onClipMutedChange?.(muted)}aria-label={tSettings("clip.mute", "Mute clip")}- className="data-[state=checked]:bg-[#06b6d4] scale-75"/></label>{hasClipAudioOverrides && onResetClipAudio && (@@ -3066,7 +2981,7 @@ export function SettingsPanel({/>) : (<div className="rounded-lg bg-foreground/[0.03] px-2.5 py-6 text-center">- <p className="text-[11px] text-muted-foreground">+ <p className="text-xs text-muted-foreground">{tSettings("captions.selectOnTimeline","Select a caption on the timeline to edit it.",@@ -3104,29 +3019,31 @@ export function SettingsPanel({<SectionLabel>{tSettings("sections.cursor", "Cursor")}</SectionLabel>- <button+ <Button+ variant="ghost"+ size="sm"+ className="text-xs text-muted"type="button"onClick={resetCursorSection}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80">{t("common.actions.reset", "Reset")}- </button>+ </Button></div><div className="flex items-center gap-3">- <label className="flex items-center gap-1.5 text-[10px] text-muted-foreground">+ <label className="flex items-center gap-1.5 text-xs text-muted-foreground"><span>{tSettings("effects.showCursor")}</span><Switch+ aria-label={tSettings("effects.showCursor")}checked={showCursor}onCheckedChange={onShowCursorChange}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></label>- <label className="flex items-center gap-1.5 text-[10px] text-muted-foreground">+ <label className="flex items-center gap-1.5 text-xs text-muted-foreground"><span>{tSettings("effects.loopCursor")}</span><Switch+ aria-label={tSettings("effects.loopCursor")}checked={loopCursor}onCheckedChange={onLoopCursorChange}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></label></div>@@ -3151,8 +3068,7 @@ export function SettingsPanel({title={option.label}aria-label={option.label}className={cn(- "group aspect-square h-auto min-w-0 rounded-[10px] border border-foreground/10 bg-foreground/[0.03] p-3 text-left text-foreground shadow-none transition-all hover:border-foreground/20 hover:bg-foreground/[0.06]",- "data-[state=on]:border-[#2563EB]/70 data-[state=on]:bg-[#2563EB]/12 data-[state=on]:text-foreground",+ "group aspect-square h-auto min-w-0 p-3 text-left",)}><div className="flex h-full flex-col items-center justify-between gap-3">@@ -3194,60 +3110,28 @@ export function SettingsPanel({/>{showCursorClickEffectAdvanced ? (<div className="grid gap-1.5">- <input- ref={cursorClickEffectColorInputRef}- type="color"- value={cursorClickEffectColor}- onChange={(event) =>- onCursorClickEffectColorChange?.(event.target.value)- }- className="sr-only"- /><div className="grid gap-1">- <div className="text-[10px] text-muted-foreground">+ <div className="text-xs text-muted-foreground">{tSettings("effects.cursorClickEffects.color","Effect Color",)}</div>- <div className="flex flex-wrap gap-1.5">- {CLICK_EFFECT_COLOR_OPTIONS.map((color) => {- const isSelected =- cursorClickEffectColor.toLowerCase() ===- color.toLowerCase();- return (- <button- key={color}- type="button"- onClick={() =>- onCursorClickEffectColorChange?.(color)- }- className={cn(- "h-6 w-6 rounded-[8px] border transition-transform hover:scale-[1.04]",- isSelected- ? "border-foreground/80 ring-1 ring-[#2563EB]/50"- : "border-foreground/10",- )}- style={{ backgroundColor: color }}- aria-label={`Effect color ${color}`}- />- );- })}- <button- type="button"- onClick={() =>- cursorClickEffectColorInputRef.current?.click()+ <div className="flex flex-col gap-3">+ <ColorPalette+ color={cursorClickEffectColor}+ colors={CLICK_EFFECT_COLOR_OPTIONS}+ onChange={({ hex }) =>+ onCursorClickEffectColorChange?.(hex)}- className="relative h-6 w-10 overflow-hidden rounded-[8px] border border-foreground/10 text-[8px] font-semibold uppercase tracking-[0.18em] text-foreground"- style={{- background: `linear-gradient(135deg, ${cursorClickEffectColor} 0%, ${cursorClickEffectColor} 58%, rgba(255,255,255,0.92) 58%, rgba(255,255,255,0.92) 100%)`,- }}- aria-label="Custom effect color picker"- >- <div className="absolute inset-0 flex items-center justify-center">- Pick- </div>- </button>+ />+ <ColorControl+ label="Custom effect color"+ value={cursorClickEffectColor}+ onChange={(color) =>+ onCursorClickEffectColorChange?.(color)+ }+ /></div></div><SliderControl@@ -3342,7 +3226,7 @@ export function SettingsPanel({/>{showDevMotionControls ? (<div className="rounded-lg border border-foreground/10 bg-foreground/[0.03] px-3 py-2">- <div className="text-[10px] text-muted-foreground">+ <div className="text-xs text-muted-foreground">{tSettings("effects.cursorDebugMovedToDev","Cursor spring tuning is available in Settings > Dev.",@@ -3358,43 +3242,45 @@ export function SettingsPanel({<section className="flex flex-col gap-2"><div className="flex items-center justify-between gap-3"><SectionLabel>{tSettings("sections.webcam", "Webcam")}</SectionLabel>- <button+ <Button+ variant="ghost"+ size="sm"+ className="text-xs text-muted"type="button"onClick={resetWebcamSection}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80">{t("common.actions.reset", "Reset")}- </button>+ </Button></div><div className="flex flex-col gap-1.5">- <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">- <span className="text-[10px] text-muted-foreground">+ <div className="flex items-center justify-between py-2">+ <span className="text-xs text-muted-foreground">{tSettings("effects.show", "Show")}</span><Switch+ aria-label={tSettings("effects.show", "Show")}checked={webcam?.enabled ?? false}onCheckedChange={(enabled) => updateWebcam({ enabled })}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div>- <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">- <span className="text-[10px] text-muted-foreground">+ <div className="flex items-center justify-between py-2">+ <span className="text-xs text-muted-foreground">{tSettings("effects.webcamReactToZoom")}</span><Switch+ aria-label={tSettings("effects.webcamReactToZoom")}checked={webcam?.reactToZoom ?? DEFAULT_WEBCAM_REACT_TO_ZOOM}onCheckedChange={(reactToZoom) => updateWebcam({ reactToZoom })}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div>- <div className="flex items-center justify-between rounded-lg bg-foreground/[0.03] px-2.5 py-1.5">- <span className="text-[10px] text-muted-foreground">+ <div className="flex items-center justify-between py-2">+ <span className="text-xs text-muted-foreground">{tSettings("effects.webcamMirror", "Mirror webcam")}</span><Switch+ aria-label={tSettings("effects.webcamMirror", "Mirror webcam")}checked={webcam?.mirror ?? true}onCheckedChange={(mirror) => updateWebcam({ mirror })}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div><SliderControl@@ -3419,20 +3305,20 @@ export function SettingsPanel({formatValue={(v) => `${Math.round(v)}%`}parseInput={(text) => parseFloat(text.replace(/%$/, ""))}/>- <div className="rounded-lg bg-foreground/[0.03] px-2.5 py-2">+ <div className="py-2"><div className="mb-2 flex items-center justify-between gap-2">- <div className="text-[10px] text-muted-foreground">+ <div className="text-xs text-muted-foreground">{tSettings("effects.webcamCrop", "Crop")}</div>- <button+ <Button+ variant="ghost"type="button"onClick={() =>updateWebcam({ cropRegion: DEFAULT_CROP_REGION })}- className="text-[10px] text-[#2563EB] transition-opacity hover:opacity-80">{t("common.actions.reset", "Reset")}- </button>+ </Button></div><WebcamCropControlcropRegion={webcamCrop}@@ -3457,47 +3343,45 @@ export function SettingsPanel({}/></div>- <div className="rounded-lg bg-foreground/[0.03] px-2.5 py-2">- <div className="mb-2 text-[10px] text-muted-foreground">+ <div className="py-2">+ <div className="mb-2 text-xs text-muted-foreground">{tSettings("effects.webcamPosition", "Position")}</div><div className="grid grid-cols-3 gap-1.5">{WEBCAM_POSITION_PRESETS.map((option) => {const isActive = webcamPositionPreset === option.preset;return (- <Button+ <ToggleButton+ isSelected={isActive}key={option.preset}- type="button"onClick={() =>applyWebcamPositionPreset(option.preset)}- className={cn(- "h-8 rounded-lg border px-0 text-sm font-semibold transition-all",- isActive- ? "border-[#2563EB] bg-[#2563EB] text-white"- : "border-foreground/10 bg-foreground/5 text-muted-foreground hover:border-foreground/20 hover:bg-foreground/10",- )}+ className={cn("h-8 px-0 text-sm")}>{option.label}- </Button>+ </ToggleButton>);})}</div><div className="mt-2 flex items-center justify-between rounded-lg bg-black/10 px-2.5 py-1.5">- <span className="text-[10px] text-muted-foreground">+ <span className="text-xs text-muted-foreground">{tSettings("effects.webcamCustomPosition","Custom position",)}</span><Switch+ aria-label={tSettings(+ "effects.webcamCustomPosition",+ "Custom position",+ )}checked={webcamPositionPreset === "custom"}onCheckedChange={(checked) =>applyWebcamPositionPreset(checked ? "custom" : DEFAULT_WEBCAM_POSITION_PRESET,)}- className="data-[state=checked]:bg-[#2563EB] scale-75"/></div></div>@@ -3570,13 +3454,13 @@ export function SettingsPanel({formatValue={(v) => `${Math.round(v * 100)}%`}parseInput={(text) => parseFloat(text.replace(/%$/, "")) / 100}/>- <div className="rounded-lg bg-foreground/[0.03] px-2.5 py-2">+ <div className="py-2"><div className="flex flex-col gap-2"><div className="min-w-0">- <div className="text-[10px] text-muted-foreground">+ <div className="text-xs text-muted-foreground">{tSettings("effects.webcamFootage")}</div>- <div className="mt-0.5 break-all text-[10px] leading-4 text-muted-foreground/70">+ <div className="mt-0.5 break-all text-xs leading-4 text-muted-foreground/70">{webcamFileName ??tSettings("effects.webcamFootageDescription")}</div>@@ -3586,7 +3470,7 @@ export function SettingsPanel({type="button"variant="outline"onClick={onUploadWebcam}- className="h-7 min-w-0 gap-1.5 border-foreground/10 bg-foreground/5 px-2 text-[10px] text-foreground hover:bg-foreground/10 hover:text-foreground"+ className="h-7 min-w-0 gap-1.5 px-2"><Upload className="h-3 w-3" /><span className="min-w-0 truncate">@@ -3600,7 +3484,7 @@ export function SettingsPanel({type="button"variant="outline"onClick={onClearWebcam}- className="h-7 min-w-0 gap-1.5 border-foreground/10 bg-foreground/5 px-2 text-[10px] text-foreground hover:bg-foreground/10 hover:text-foreground"+ className="h-7 min-w-0 gap-1.5 px-2"><Trash2 className="h-3 w-3" /><span className="min-w-0 truncate">@@ -3621,17 +3505,17 @@ export function SettingsPanel({})();return (- <div className="flex-[2] w-[332px] min-w-[280px] max-w-[332px] bg-editor-panel rounded-2xl flex flex-col shadow-xl h-full overflow-hidden">+ <Card className="flex min-h-0 flex-1 flex-col gap-0 overflow-hidden rounded-none bg-transparent p-0 shadow-none"><div- className="flex-1 min-h-0 overflow-y-auto custom-scrollbar p-4 pb-0"+ className="flex-1 min-h-0 overflow-y-auto custom-scrollbar p-4"style={{ scrollbarGutter: "stable" }}><AnimatePresence mode="wait" initial={false}><motion.divkey={activeEffectSection}- initial={{ opacity: 0, y: 8 }}- animate={{ opacity: 1, y: 0 }}- exit={{ opacity: 0, y: -8 }}+ initial={{ opacity: 0 }}+ animate={{ opacity: 1 }}+ exit={{ opacity: 0 }}transition={{ duration: 0.18, ease: "easeOut" }}>{effectSectionContent}@@ -3656,9 +3540,9 @@ export function SettingsPanel({onClick={() => {if (selectedClipId && onClipDelete) onClipDelete(selectedClipId);}}- variant="destructive"+ variant="destructive-soft"size="sm"- className="h-8 w-full gap-2 border border-red-500/20 bg-red-500/10 text-xs text-red-400 transition-all hover:border-red-500/30 hover:bg-red-500/20"+ className="h-8 w-full gap-2 text-xs"><Trash2 className="h-3 w-3" />{tSettings("clip.delete", "Delete Clip")}@@ -3669,9 +3553,9 @@ export function SettingsPanel({onClick={() => {if (selectedZoomId && onZoomDelete) onZoomDelete(selectedZoomId);}}- variant="destructive"+ variant="destructive-soft"size="sm"- className="h-8 w-full gap-2 border border-red-500/20 bg-red-500/10 text-xs text-red-400 transition-all hover:border-red-500/30 hover:bg-red-500/20"+ className="h-8 w-full gap-2 text-xs"><Trash2 className="h-3 w-3" />{tSettings("zoom.deleteZoom", "Delete Zoom")}@@ -3682,9 +3566,9 @@ export function SettingsPanel({onClick={() => {if (selectedAudioId && onAudioDelete) onAudioDelete(selectedAudioId);}}- variant="destructive"+ variant="destructive-soft"size="sm"- className="h-8 w-full gap-2 border border-red-500/20 bg-red-500/10 text-xs text-red-400 transition-all hover:border-red-500/30 hover:bg-red-500/20"+ className="h-8 w-full gap-2 text-xs"><Trash2 className="h-3 w-3" />{tSettings("audio.deleteRegion", "Delete Audio")}@@ -3696,15 +3580,15 @@ export function SettingsPanel({if (selectedAnnotationId && onAnnotationDelete)onAnnotationDelete(selectedAnnotationId);}}- variant="destructive"+ variant="destructive-soft"size="sm"- className="h-8 w-full gap-2 border border-red-500/20 bg-red-500/10 text-xs text-red-400 transition-all hover:border-red-500/30 hover:bg-red-500/20"+ className="h-8 w-full gap-2 text-xs"><Trash2 className="h-3 w-3" />{tSettings("annotation.delete", "Delete Annotation")}</Button>)}</div>- </div>+ </Card>);}diff --git a/src/components/video-editor/ShortcutsConfigDialog.tsx b/src/components/video-editor/ShortcutsConfigDialog.tsxindex c359c1f1..b09292be 100644--- a/src/components/video-editor/ShortcutsConfigDialog.tsx+++ b/src/components/video-editor/ShortcutsConfigDialog.tsx@@ -1,6 +1,6 @@import { Keyboard, ArrowCounterClockwise as RotateCcw } from "@phosphor-icons/react";import { useCallback, useEffect, useState } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { Button } from "@/components/ui/button";import {Dialog,@@ -126,7 +126,7 @@ export function ShortcutsConfigDialog() {if (!open) handleClose();}}>- <DialogContent className="bg-editor-dialog border-foreground/10 text-foreground max-w-[460px]">+ <DialogContent className="max-w-[460px]"><DialogHeader><DialogTitle className="flex items-center gap-2 text-sm"><Keyboard className="w-4 h-4 text-[#2563EB]" />@@ -147,7 +147,7 @@ export function ShortcutsConfigDialog() {<span className="text-sm text-muted-foreground">{SHORTCUT_LABELS[action]}</span>- <button+ <Buttontype="button"onClick={() => {setConflict(null);@@ -159,18 +159,18 @@ export function ShortcutsConfigDialog() {: t("shortcutsConfig.clickToChange")}className={[- "px-2 py-1 rounded text-xs font-mono border transition-all min-w-[90px] text-center select-none",+ "px-2 py-1 text-xs min-w-[90px] text-center select-none",isCapturing- ? "bg-[#2563EB]/20 border-[#2563EB] text-[#2563EB] animate-pulse"+ ? "animate-pulse": hasConflict- ? "bg-amber-500/10 border-amber-500/50 text-amber-400"- : "bg-foreground/5 border-foreground/10 text-foreground hover:border-[#2563EB]/50 hover:text-[#2563EB] cursor-pointer",+ ? "text-amber-400"+ : "cursor-pointer",].join(" ")}>{isCapturing? t("shortcutsConfig.pressAKey"): formatBinding(draft[action], isMac)}- </button>+ </Button></div>{hasConflict && conflict?.conflictWith.type === "configurable" && (<div className="flex items-center justify-between px-1 py-1.5 mb-0.5 bg-amber-500/10 border border-amber-500/20 rounded text-xs">@@ -182,20 +182,22 @@ export function ShortcutsConfigDialog() {})}</span><div className="flex gap-1.5">- <button+ <Button+ variant="ghost"type="button"onClick={handleSwap}- className="px-2 py-0.5 bg-amber-500/20 hover:bg-amber-500/30 border border-amber-500/40 rounded text-amber-300 font-medium transition-colors"+ className="px-2 py-0.5 text-amber-300">{t("shortcutsConfig.swap")}- </button>- <button+ </Button>+ <Button+ variant="ghost"type="button"onClick={handleCancelConflict}- className="px-2 py-0.5 bg-foreground/5 hover:bg-foreground/10 border border-foreground/10 rounded text-muted-foreground transition-colors"+ className="px-2 py-0.5">{t("shortcutsConfig.cancel")}- </button>+ </Button></div></div>)}@@ -230,7 +232,7 @@ export function ShortcutsConfigDialog() {title={t("shortcutsConfig.resetToDefaults")}variant="ghost"size="sm"- className="text-muted-foreground hover:text-foreground hover:bg-foreground/10 gap-1.5 max-w-[200px]"+ className="gap-1.5 max-w-[200px]"onClick={handleReset}><RotateCcw className="w-3 h-3" />@@ -240,11 +242,7 @@ export function ShortcutsConfigDialog() {<Button variant="ghost" size="sm" onClick={handleClose}>{t("shortcutsConfig.cancel")}</Button>- <Button- size="sm"- className="bg-[#2563EB] hover:bg-[#1d4ed8] text-white"- onClick={handleSave}- >+ <Button size="sm" onClick={handleSave}>{t("shortcutsConfig.save")}</Button></div>diff --git a/src/components/video-editor/SliderControl.tsx b/src/components/video-editor/SliderControl.tsxindex e16f8747..531e9a95 100644--- a/src/components/video-editor/SliderControl.tsx+++ b/src/components/video-editor/SliderControl.tsx@@ -1,9 +1,8 @@-import type { PointerEvent as ReactPointerEvent } from "react";-import { useCallback, useRef, memo } from "react";-import { cn } from "@/lib/utils";-+import { Label, Slider } from "@heroui/react";+import { memo } from "react";interface SliderControlProps {label: string;+ ariaLabel?: string;value: number;defaultValue: number;min: number;@@ -14,163 +13,32 @@ interface SliderControlProps {parseInput: (text: string) => number | null;accentColor?: "purple" | "blue";}--function clamp(value: number, min: number, max: number) {- return Math.min(max, Math.max(min, value));-}--function quantizeToStep(value: number, min: number, step: number) {- if (!(step > 0)) {- return value;- }-- return min + Math.round((value - min) / step) * step;-}-export const SliderControl = memo(function SliderControl({label,+ ariaLabel,value,- defaultValue: _defaultValue,min,max,step,onChange,formatValue,- parseInput: _parseInput,- accentColor = "blue",}: SliderControlProps) {- const boundsRef = useRef<DOMRect | null>(null);- const requestRef = useRef<number | null>(null);-- const pct = Math.min(100, Math.max(0, ((value - min) / (max - min || 1)) * 100));-- const dividerClass =- accentColor === "purple"- ? "bg-foreground/95 shadow-[0_0_10px_rgba(139,92,246,0.28)]"- : "bg-foreground/95 shadow-[0_0_10px_rgba(37,99,235,0.28)]";-- const updateValue = useCallback(- (clientX: number) => {- const bounds = boundsRef.current;- if (!bounds || bounds.width <= 6) {- return;- }-- const normalized = clamp((clientX - (bounds.left + 3)) / (bounds.width - 6), 0, 1);- const rawValue = min + normalized * (max - min);- const nextValue = clamp(quantizeToStep(rawValue, min, step), min, max);- const finalValue = Number(nextValue.toFixed(6));- // Notify parent- onChange(finalValue);- },- [max, min, onChange, step],- );-- const handlePointerDown = useCallback(- (event: ReactPointerEvent<HTMLDivElement>) => {- event.preventDefault();- const pointerId = event.pointerId;- const target = event.currentTarget;-- // Cache bounds to avoid layout thrashing during move- boundsRef.current = target.getBoundingClientRect();-- target.setPointerCapture(pointerId);- updateValue(event.clientX);-- const handlePointerMove = (moveEvent: PointerEvent) => {- if (moveEvent.pointerId !== pointerId) {- return;- }-- if (requestRef.current) {- cancelAnimationFrame(requestRef.current);- }-- requestRef.current = requestAnimationFrame(() => {- updateValue(moveEvent.clientX);- });- };-- const finishPointer = (finishEvent: PointerEvent) => {- if (finishEvent.pointerId !== pointerId) {- return;- }-- if (requestRef.current) {- cancelAnimationFrame(requestRef.current);- requestRef.current = null;- }-- if (finishEvent.type === "pointerup") {- updateValue(finishEvent.clientX);- }-- target.releasePointerCapture(pointerId);- target.removeEventListener("pointermove", handlePointerMove);- target.removeEventListener("pointerup", finishPointer);- target.removeEventListener("pointercancel", finishPointer);- boundsRef.current = null;- };-- target.addEventListener("pointermove", handlePointerMove);- target.addEventListener("pointerup", finishPointer);- target.addEventListener("pointercancel", finishPointer);- },- [updateValue],- );-return (- <div- role="slider"- tabIndex={0}- aria-label={label}- aria-valuemin={min}- aria-valuemax={max}- aria-valuenow={value}- aria-valuetext={formatValue(value)}- onPointerDown={handlePointerDown}- onKeyDown={(event) => {- if (event.key === "ArrowLeft" || event.key === "ArrowDown") {- event.preventDefault();- onChange(clamp(quantizeToStep(value - step, min, step), min, max));- }-- if (event.key === "ArrowRight" || event.key === "ArrowUp") {- event.preventDefault();- onChange(clamp(quantizeToStep(value + step, min, step), min, max));- }- }}- className="relative flex h-10 w-full select-none items-center overflow-hidden rounded-xl bg-editor-bg/80 px-1.5 outline-none focus-visible:ring-1 focus-visible:ring-[#2563EB]/40"- style={- {- "--slider-pct": String(pct / 100),- } as React.CSSProperties- }+ <Slider+ aria-label={ariaLabel ?? label}+ value={value}+ minValue={min}+ maxValue={max}+ step={step}+ onChange={(value) => onChange(Number(value))}+ className="w-full">- <div- className="pointer-events-none absolute inset-y-[3px] left-[3px] right-auto rounded-[10px] bg-foreground/[0.08] shadow-[0_4px_10px_0_rgba(0,0,0,0.18)] transition-none"- style={{- width: "calc(var(--slider-pct) * (100% - 6px))",- }}- />- <div- className={cn(- "pointer-events-none absolute bottom-[18%] top-[18%] z-10 w-[2px] rounded-full transition-none",- dividerClass,- )}- style={{- left: "calc(var(--slider-pct) * (100% - 6px) - 6px)",- }}- />- <span className="pointer-events-none relative z-10 flex-1 pl-3 text-[12px] font-medium text-muted-foreground">- {label}- </span>- <span- className="pointer-events-none relative z-10 pr-3 text-[12px] font-medium tabular-nums text-foreground"- >- {formatValue(value)}- </span>- </div>+ <Label>{label}</Label>+ <Slider.Output>{() => formatValue(value)}</Slider.Output>+ <Slider.Track>+ <Slider.Fill />+ <Slider.Thumb />+ </Slider.Track>+ </Slider>);});diff --git a/src/components/video-editor/TutorialHelp.tsx b/src/components/video-editor/TutorialHelp.tsxindex b38b6f3e..bd7d7d7b 100644--- a/src/components/video-editor/TutorialHelp.tsx+++ b/src/components/video-editor/TutorialHelp.tsx@@ -22,7 +22,7 @@ import { useScopedT } from "@/contexts/I18nContext";import { useShortcuts } from "@/contexts/ShortcutsContext";import { formatBinding, SHORTCUT_ACTIONS, SHORTCUT_LABELS } from "@/lib/shortcuts";import { formatShortcut } from "@/utils/platformUtils";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";export const RECORDLY_ISSUES_URL = "https://github.com/webadderallorg/Recordly/issues";const RECORDLY_DISCORD_URL = "https://discord.gg/sdv2FBVNgE";@@ -96,7 +96,7 @@ export function FeedbackDialog() {<MessageSquareMore className="h-3.5 w-3.5" /></Button></DialogTrigger>- <DialogContent className="max-w-lg bg-editor-dialog border-foreground/10 [&>button]:text-muted-foreground [&>button:hover]:text-foreground">+ <DialogContent className="max-w-lg"><DialogHeader><DialogTitle className="text-xl font-semibold text-foreground flex items-center gap-2"><MessageSquareMore className="h-5 w-5 text-[#2563EB]" />{" "}@@ -129,7 +129,6 @@ export function FeedbackDialog() {t("feedback.openFailed", "Failed to open link."),)}- className="border-foreground/10 bg-foreground/5 text-foreground hover:bg-foreground/10 hover:text-foreground"><ExternalLink className="h-3.5 w-3.5" /></Button>@@ -152,7 +151,6 @@ export function FeedbackDialog() {t("feedback.openFailed", "Failed to open link."),)}- className="border-foreground/10 bg-foreground/5 text-foreground hover:bg-foreground/10 hover:text-foreground"><Twitter className="h-3.5 w-3.5" /></Button>@@ -167,7 +165,7 @@ export function FeedbackDialog() {t("feedback.openFailed", "Failed to open link."),)}- className="h-10 w-full justify-between border-foreground/10 bg-foreground/5 px-4 text-foreground hover:bg-foreground/10 hover:text-foreground"+ className="h-10 w-full justify-between px-4"><span className="flex items-center gap-2 text-sm font-medium"><MessageSquareMore className="h-4 w-4" />@@ -212,7 +210,7 @@ export function KeyboardShortcutsDialog({{triggerLabel ? <span className="font-medium">{triggerLabel}</span> : null}</Button></DialogTrigger>- <DialogContent className="max-w-lg bg-editor-dialog border-foreground/10 [&>button]:text-muted-foreground [&>button:hover]:text-foreground">+ <DialogContent className="max-w-lg"><DialogHeader><DialogTitle className="text-xl font-semibold text-foreground flex items-center gap-2"><Keyboard className="h-5 w-5 text-[#2563EB]" />{" "}@@ -268,12 +266,7 @@ export function KeyboardShortcutsDialog({</div></div><div className="flex justify-end">- <Button- type="button"- variant="outline"- onClick={openConfig}- className="border-foreground/10 bg-foreground/5 text-foreground hover:bg-foreground/10 hover:text-foreground"- >+ <Button type="button" variant="outline" onClick={openConfig}><Settings2 className="h-4 w-4" />{t("keyboardShortcuts.customize")}</Button>@@ -295,7 +288,7 @@ export function TutorialHelp() {<span className="font-medium">{t("tutorial.howTrimmingWorks")}</span></Button></DialogTrigger>- <DialogContent className="max-w-2xl bg-editor-dialog border-foreground/10 [&>button]:text-muted-foreground [&>button:hover]:text-foreground">+ <DialogContent className="max-w-2xl"><DialogHeader><DialogTitle className="text-xl font-semibold text-foreground flex items-center gap-2"><Scissors className="w-5 h-5 text-[#ef4444]" /> {t("tutorial.title")}diff --git a/src/components/video-editor/VideoPlayback.tsx b/src/components/video-editor/VideoPlayback.tsxindex 7f4f5d77..b8a997ee 100644--- a/src/components/video-editor/VideoPlayback.tsx+++ b/src/components/video-editor/VideoPlayback.tsx@@ -294,7 +294,7 @@ export interface VideoPlaybackRef {app: Application | null;videoSprite: Sprite | null;videoContainer: Container | null;- containerRef: React.RefObject<HTMLDivElement>;+ containerRef: React.RefObject<HTMLDivElement | null>;play: () => Promise<void>;pause: () => void;refreshFrame: () => Promise<void>;@@ -530,9 +530,7 @@ const VideoPlayback = forwardRef<VideoPlaybackRef, VideoPlaybackProps>(}, []);const initializePixiRenderer = useCallback(- async (- container: HTMLDivElement,- ): Promise<Application> => {+ async (container: HTMLDivElement): Promise<Application> => {const backendOrder: PixiPreviewBackend[] = ["webgl", "webgpu"];const attempts: PixiRendererAttempt[] = [];diff --git a/src/components/video-editor/audio/useSourceAudioFallback.ts b/src/components/video-editor/audio/useSourceAudioFallback.tsindex f081d2ce..ce836d3c 100644--- a/src/components/video-editor/audio/useSourceAudioFallback.ts+++ b/src/components/video-editor/audio/useSourceAudioFallback.ts@@ -1,5 +1,5 @@import { useEffect, useRef, useState } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { SOURCE_AUDIO_FALLBACK_TOAST_ID } from "@/components/video-editor/audio/audioTypes";interface UseSourceAudioFallbackParams {diff --git a/src/components/video-editor/captions/useAutoCaptionController.ts b/src/components/video-editor/captions/useAutoCaptionController.tsindex 8ac1c11c..c638da41 100644--- a/src/components/video-editor/captions/useAutoCaptionController.ts+++ b/src/components/video-editor/captions/useAutoCaptionController.ts@@ -1,5 +1,5 @@import { type Dispatch, type SetStateAction, useCallback, useEffect, useRef } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { resolveAutoCaptionSourcePath } from "../autoCaptionSource";import { type CaptionEditTarget, updateCaptionCuesForEditedTarget } from "../captionEditing";import { resolveVideoUrl } from "../projectPersistence";diff --git a/src/components/video-editor/export/exportRunnerSupport.ts b/src/components/video-editor/export/exportRunnerSupport.tsindex 11c8cf8e..53ee76c2 100644--- a/src/components/video-editor/export/exportRunnerSupport.ts+++ b/src/components/video-editor/export/exportRunnerSupport.ts@@ -1,6 +1,6 @@import type { RefObject } from "react";import { useCallback } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import type { SupportedMp4Dimensions } from "@/lib/exporter";import type { useVideoEditorAudio } from "../audio/useVideoEditorAudio";import type { getSmokeExportConfig } from "../smokeExportConfig";diff --git a/src/components/video-editor/export/useEditorExportController.ts b/src/components/video-editor/export/useEditorExportController.tsindex ec6aa3f7..a8c279db 100644--- a/src/components/video-editor/export/useEditorExportController.ts+++ b/src/components/video-editor/export/useEditorExportController.ts@@ -19,7 +19,7 @@ type Input = {t: ReturnType<typeof useI18n>["t"];videoPath: string | null;videoSourcePath: string | null;- videoPlaybackRef: RefObject<VideoPlaybackRef>;+ videoPlaybackRef: RefObject<VideoPlaybackRef | null>;isPlaying: boolean;duration: number;error: string | null;diff --git a/src/components/video-editor/export/useExportDialogActions.ts b/src/components/video-editor/export/useExportDialogActions.tsindex 0c7bc87f..74bdc052 100644--- a/src/components/video-editor/export/useExportDialogActions.ts+++ b/src/components/video-editor/export/useExportDialogActions.ts@@ -1,5 +1,5 @@import { type RefObject, useCallback } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import type { ExportSettings } from "@/lib/exporter";import { resolveExportStartSettings } from "../exportStartSettings";import type { VideoPlaybackRef } from "../VideoPlayback";diff --git a/src/components/video-editor/export/useExportRunner.ts b/src/components/video-editor/export/useExportRunner.tsindex 37edbdba..0b613428 100644--- a/src/components/video-editor/export/useExportRunner.ts+++ b/src/components/video-editor/export/useExportRunner.ts@@ -1,5 +1,5 @@import { useCallback, useRef } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { getMp4ExportBitrate } from "@/lib/exporter/exportBitrate";import { DEFAULT_MP4_CODEC } from "@/lib/exporter/mp4Support";import type { ExportSettings } from "@/lib/exporter/types";diff --git a/src/components/video-editor/hooks/useCaptionCommands.ts b/src/components/video-editor/hooks/useCaptionCommands.tsindex 5326070d..8bd6509b 100644--- a/src/components/video-editor/hooks/useCaptionCommands.ts+++ b/src/components/video-editor/hooks/useCaptionCommands.ts@@ -36,7 +36,7 @@ interface UseCaptionCommandsParams {setSelectedAnnotationId: Dispatch<SetStateAction<string | null>>;setSelectedAudioId: Dispatch<SetStateAction<string | null>>;setActiveEffectSection: Dispatch<SetStateAction<EditorEffectSection>>;- videoPlaybackRef: RefObject<VideoPlaybackRef>;+ videoPlaybackRef: RefObject<VideoPlaybackRef | null>;mapSourceTimeToTimelineTime: (timeMs: number) => number;handleSeek: (time: number, options?: { pause?: boolean }) => void;}diff --git a/src/components/video-editor/hooks/useClipRegionCommands.ts b/src/components/video-editor/hooks/useClipRegionCommands.tsindex f605789e..4774edfd 100644--- a/src/components/video-editor/hooks/useClipRegionCommands.ts+++ b/src/components/video-editor/hooks/useClipRegionCommands.ts@@ -1,6 +1,6 @@import type { Span } from "dnd-timeline";import { type Dispatch, type MutableRefObject, type SetStateAction, useCallback } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { changeClipSpan } from "../clipSpanChange";import { planClipSpeedChange } from "../clipSpeedChange";import { planClipSplit } from "../clipSplit";diff --git a/src/components/video-editor/hooks/useEditorPlaybackControls.ts b/src/components/video-editor/hooks/useEditorPlaybackControls.tsindex dfd28c20..31b4f878 100644--- a/src/components/video-editor/hooks/useEditorPlaybackControls.ts+++ b/src/components/video-editor/hooks/useEditorPlaybackControls.ts@@ -3,8 +3,8 @@ import type { TimelineEditorHandle } from "../timeline/TimelineEditor";import type { VideoPlaybackRef } from "../VideoPlayback";interface UseEditorPlaybackControlsParams {- videoPlaybackRef: RefObject<VideoPlaybackRef>;- timelineRef: RefObject<TimelineEditorHandle>;+ videoPlaybackRef: RefObject<VideoPlaybackRef | null>;+ timelineRef: RefObject<TimelineEditorHandle | null>;playSourceAudioPreview: () => void;timelinePlayheadTime: number;timelineDuration: number;diff --git a/src/components/video-editor/hooks/useFreshRecordingAutoZoom.ts b/src/components/video-editor/hooks/useFreshRecordingAutoZoom.tsindex e774f5b7..65147577 100644--- a/src/components/video-editor/hooks/useFreshRecordingAutoZoom.ts+++ b/src/components/video-editor/hooks/useFreshRecordingAutoZoom.ts@@ -21,7 +21,7 @@ interface UseFreshRecordingAutoZoomParams {zoomRegions: ZoomRegion[];setZoomRegions: Dispatch<SetStateAction<ZoomRegion[]>>;setAutoSuggestZoomsTrigger: Dispatch<SetStateAction<number>>;- videoPlaybackRef: RefObject<VideoPlaybackRef>;+ videoPlaybackRef: RefObject<VideoPlaybackRef | null>;autoSuggestedVideoPathRef: MutableRefObject<string | null>;pendingFreshRecordingAutoZoomPathRef: MutableRefObject<string | null>;pendingFreshRecordingAutoSuggestTimeoutRef: MutableRefObject<number | null>;diff --git a/src/components/video-editor/hooks/useTimelineEditingController.ts b/src/components/video-editor/hooks/useTimelineEditingController.tsindex 083340f9..8b470473 100644--- a/src/components/video-editor/hooks/useTimelineEditingController.ts+++ b/src/components/video-editor/hooks/useTimelineEditingController.ts@@ -1,6 +1,6 @@import type { Dispatch, MutableRefObject, RefObject, SetStateAction } from "react";import { useCallback } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import type { useI18n } from "@/contexts/I18nContext";import type { useShortcuts } from "@/contexts/ShortcutsContext";import { useVideoEditorAudio } from "../audio/useVideoEditorAudio";@@ -39,8 +39,8 @@ type Input = {isPreviewReady: boolean;setActiveEffectSection: Dispatch<SetStateAction<EditorEffectSection>>;setAutoSuggestZoomsTrigger: Dispatch<SetStateAction<number>>;- videoPlaybackRef: RefObject<VideoPlaybackRef>;- timelineRef: RefObject<TimelineEditorHandle>;+ videoPlaybackRef: RefObject<VideoPlaybackRef | null>;+ timelineRef: RefObject<TimelineEditorHandle | null>;nextZoomIdRef: MutableRefObject<number>;nextClipIdRef: MutableRefObject<number>;nextAudioIdRef: MutableRefObject<number>;diff --git a/src/components/video-editor/layout/CropEditorDialog.tsx b/src/components/video-editor/layout/CropEditorDialog.tsxindex 420a3b98..de62bfef 100644--- a/src/components/video-editor/layout/CropEditorDialog.tsx+++ b/src/components/video-editor/layout/CropEditorDialog.tsx@@ -29,7 +29,7 @@ export function CropEditorDialog({}: Props) {return (<Dialog open={open} onOpenChange={(nextOpen) => !nextOpen && onCancel()}>- <DialogContent className="max-h-[90vh] w-[90vw] max-w-5xl overflow-auto rounded-2xl border-foreground/10 bg-editor-dialog p-8 shadow-2xl">+ <DialogContent className="max-h-[90vh] w-[90vw] max-w-5xl overflow-auto p-8"><div className="mb-6 flex items-center justify-between"><div><DialogTitle className="text-xl font-bold text-foreground">@@ -47,11 +47,7 @@ export function CropEditorDialog({aspectRatio={aspectRatio}/><div className="mt-6 flex justify-end">- <Button- onClick={onDone}- size="lg"- className="bg-[#2563EB] text-white hover:bg-[#2563EB]/90"- >+ <Button onClick={onDone} size="lg">{t("common.actions.done")}</Button></div>diff --git a/src/components/video-editor/layout/EditorDialogs.tsx b/src/components/video-editor/layout/EditorDialogs.tsxindex 3b22a63c..0a011138 100644--- a/src/components/video-editor/layout/EditorDialogs.tsx+++ b/src/components/video-editor/layout/EditorDialogs.tsx@@ -1,3 +1,4 @@+import { Card } from "@heroui/react";import type { Dispatch, FormEvent, RefObject, SetStateAction } from "react";import { Button } from "@/components/ui/button";import {@@ -25,7 +26,7 @@ interface EditorDialogsProps {setProjectSaveDialogOpen: Dispatch<SetStateAction<boolean>>;projectSaveDialogDraft: string;setProjectSaveDialogDraft: Dispatch<SetStateAction<string>>;- projectSaveDialogInputRef: RefObject<HTMLInputElement>;+ projectSaveDialogInputRef: RefObject<HTMLInputElement | null>;isSavingProjectDialog: boolean;resolveProjectSaveDialog: (saved: boolean) => void;handleProjectSaveDialogSubmit: (event?: FormEvent<HTMLFormElement>) => Promise<void>;@@ -36,7 +37,7 @@ interface EditorDialogsProps {projectBrowserOpen: boolean;setProjectBrowserOpen: Dispatch<SetStateAction<boolean>>;projectLibraryEntries: ProjectLibraryEntry[];- projectBrowserAnchorRef: RefObject<HTMLButtonElement>;+ projectBrowserAnchorRef: RefObject<HTMLButtonElement | null>;handleImportMediaOrProject: () => Promise<void>;handleOpenProjectFromLibrary: (projectPath: string) => Promise<void>;nativeCaptureUnavailableModalOpen: boolean;@@ -75,7 +76,7 @@ export function EditorDialogs({else if (!isSavingProjectDialog) resolveProjectSaveDialog(false);}}>- <DialogContent className="max-w-sm border-foreground/10 bg-editor-dialog text-foreground">+ <DialogContent className="max-w-sm"><form onSubmit={(event) => void handleProjectSaveDialogSubmit(event)}><DialogHeader><DialogTitle>@@ -92,7 +93,7 @@ export function EditorDialogs({<label className="mb-2 block text-xs font-medium text-muted-foreground">{t("editor.project.saveNameLabel", "Project name")}</label>- <div className="flex items-center overflow-hidden rounded-md border border-foreground/10 bg-editor-panel">+ <Card className="flex-row items-center overflow-hidden"><Inputref={projectSaveDialogInputRef}value={projectSaveDialogDraft}@@ -100,13 +101,13 @@ export function EditorDialogs({setProjectSaveDialogDraft(event.target.value)}disabled={isSavingProjectDialog}- className="h-10 flex-1 border-0 bg-transparent focus-visible:ring-0 focus-visible:ring-offset-0"+ className="h-10 flex-1"aria-label={t("editor.project.saveNameLabel", "Project name")}/><span className="shrink-0 px-3 text-xs font-medium text-muted-foreground/70">.recordly</span>- </div>+ </Card></div><DialogFooter><Button@@ -134,7 +135,7 @@ export function EditorDialogs({else resolveUnsavedChangesDialog("cancel");}}>- <DialogContent className="max-w-sm border-foreground/10 bg-editor-dialog text-foreground">+ <DialogContent className="max-w-sm"><DialogHeader><DialogTitle>{t("editor.project.unsavedChangesTitle", "Unsaved changes")}@@ -182,7 +183,7 @@ export function EditorDialogs({open={nativeCaptureUnavailableModalOpen}onOpenChange={setNativeCaptureUnavailableModalOpen}>- <DialogContent className="max-w-md bg-editor-dialog border-foreground/10 text-foreground">+ <DialogContent className="max-w-md"><DialogHeader><DialogTitle>{t(diff --git a/src/components/video-editor/layout/EditorExportMenu.tsx b/src/components/video-editor/layout/EditorExportMenu.tsxindex 7f557a70..ec109619 100644--- a/src/components/video-editor/layout/EditorExportMenu.tsx+++ b/src/components/video-editor/layout/EditorExportMenu.tsx@@ -1,11 +1,9 @@+import { Card } from "@heroui/react";+import { ProgressBar } from "@heroui/react";import { DownloadSimple as Download } from "@phosphor-icons/react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { Button } from "@/components/ui/button";-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuTrigger,-} from "@/components/ui/dropdown-menu";+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";import type { useI18n } from "@/contexts/I18nContext";import { ExportSettingsMenu } from "../ExportSettingsMenu";import type { useExportDimensions } from "../export/useExportDimensions";@@ -95,26 +93,28 @@ export function EditorExportMenu(props: Props) {} = exportStatus;return (- <DropdownMenu open={showExportDropdown} onOpenChange={setShowExportDropdown} modal={false}>- <DropdownMenuTrigger asChild>+ <Popover+ open={showExportDropdown}+ onOpenChange={(open) => {+ if (open) handleOpenExportDropdown();+ else setShowExportDropdown(false);+ }}+ modal={false}+ >+ <PopoverTrigger asChild><Buttontype="button"- onClick={handleOpenExportDropdown}- className="inline-flex h-8 min-w-[112px] items-center justify-center gap-2 rounded-[5px] bg-[#2563EB] px-4.5 text-white transition-colors hover:bg-[#2563EB]/92"+ className="inline-flex h-8 min-w-[112px] items-center justify-center gap-2 px-4.5"><Download className="h-4 w-4" /><span className="text-sm font-semibold tracking-tight">{t("common.actions.export", "Export")}</span></Button>- </DropdownMenuTrigger>- <DropdownMenuContent- align="end"- sideOffset={10}- className="w-[360px] border-none bg-transparent p-0 shadow-none"- >+ </PopoverTrigger>+ <PopoverContent align="end" sideOffset={10} className="w-[360px] p-0">{isExporting ? (- <div className="rounded-2xl border border-foreground/10 bg-editor-surface p-4 text-foreground shadow-2xl">+ <Card className="rounded-none bg-transparent p-1 text-foreground shadow-none"><div className="mb-3 flex items-center justify-between gap-3"><div><p className="text-sm font-semibold text-foreground">@@ -138,25 +138,29 @@ export function EditorExportMenu(props: Props) {type="button"variant="outline"onClick={handleCancelExport}- className="h-8 border-red-500/20 bg-red-500/10 px-3 text-xs text-red-400 hover:bg-red-500/20"+ className="h-8 px-3 text-xs">{t("common.actions.cancel")}</Button></div>- <div className="h-2 overflow-hidden rounded-full border border-foreground/5 bg-foreground/5">- {isExportPreparing ||- isExportSaving ||- isExportFinalSaveIndeterminate ? (- <div className="indeterminate-progress h-full rounded-full bg-transparent" />- ) : (- <div- className="h-full bg-[#2563EB] transition-all duration-300 ease-out"- style={{- width: `${Math.min(isRenderingAudio ? (exportProgress?.audioProgress ?? 0) * 100 : (exportFinalizingProgress ?? exportProgress?.percentage ?? 8), 100)}%`,- }}- />+ <ProgressBar+ aria-label={t("editor.exportStatus.exporting", "Exporting")}+ isIndeterminate={+ isExportPreparing ||+ isExportSaving ||+ isExportFinalSaveIndeterminate+ }+ value={Math.min(+ isRenderingAudio+ ? (exportProgress?.audioProgress ?? 0) * 100+ : (exportFinalizingProgress ?? exportProgress?.percentage ?? 8),+ 100,)}- </div>+ >+ <ProgressBar.Track>+ <ProgressBar.Fill />+ </ProgressBar.Track>+ </ProgressBar><p className="mt-2 text-xs text-muted-foreground">{exportPercentLabel}</p>{isRenderingAudio ? (<p className="mt-1 text-[11px] text-muted-foreground/70">@@ -180,9 +184,9 @@ export function EditorExportMenu(props: Props) {{exportNativeSkipLabel}</p>) : null}- </div>+ </Card>) : exportError ? (- <div className="rounded-2xl border border-foreground/10 bg-editor-surface p-4 text-foreground shadow-2xl">+ <Card className="rounded-none bg-transparent p-1 text-foreground shadow-none"><p className="text-sm font-semibold text-foreground">{t("editor.exportStatus.issue", "Export issue")}</p>@@ -221,7 +225,7 @@ export function EditorExportMenu(props: Props) {<Buttontype="button"onClick={handleRetrySaveExport}- className="h-8 flex-1 rounded-[5px] bg-[#2563EB] text-xs font-semibold text-white hover:bg-[#2563EB]/92"+ className="h-8 flex-1 text-xs">{t("editor.actions.saveAgain", "Save Again")}</Button>@@ -230,14 +234,14 @@ export function EditorExportMenu(props: Props) {type="button"variant="outline"onClick={handleExportDropdownClose}- className="h-8 flex-1 border-foreground/10 bg-foreground/5 text-xs text-muted-foreground hover:bg-foreground/10"+ className="h-8 flex-1 text-xs">{t("common.actions.close", "Close")}</Button></div>- </div>+ </Card>) : exportedFilePath ? (- <div className="rounded-2xl border border-foreground/10 bg-editor-surface p-4 text-foreground shadow-2xl">+ <Card className="rounded-none bg-transparent p-1 text-foreground shadow-none"><p className="text-sm font-semibold text-foreground">{t("editor.exportStatus.complete", "Export complete")}</p>@@ -259,7 +263,7 @@ export function EditorExportMenu(props: Props) {<Buttontype="button"onClick={revealExportedFile}- className="h-8 flex-1 rounded-[5px] bg-[#2563EB] text-xs font-semibold text-white hover:bg-[#2563EB]/92"+ className="h-8 flex-1 text-xs">{t("editor.actions.showInFolder", "Show In Folder")}</Button>@@ -267,12 +271,12 @@ export function EditorExportMenu(props: Props) {type="button"variant="outline"onClick={handleExportDropdownClose}- className="h-8 flex-1 border-foreground/10 bg-foreground/5 text-xs text-muted-foreground hover:bg-foreground/10"+ className="h-8 flex-1 text-xs">Done</Button></div>- </div>+ </Card>) : (<ExportSettingsMenuexportFormat={exportFormat}@@ -301,10 +305,10 @@ export function EditorExportMenu(props: Props) {mp4OutputDimensions={mp4OutputDimensions}gifOutputDimensions={gifOutputDimensions}onExport={handleStartExportFromDropdown}- className="shadow-2xl"+ className="rounded-none bg-transparent p-1 shadow-none"/>)}- </DropdownMenuContent>- </DropdownMenu>+ </PopoverContent>+ </Popover>);}diff --git a/src/components/video-editor/layout/EditorHeader.tsx b/src/components/video-editor/layout/EditorHeader.tsxindex 927830d8..f64155c4 100644--- a/src/components/video-editor/layout/EditorHeader.tsx+++ b/src/components/video-editor/layout/EditorHeader.tsx@@ -1,3 +1,4 @@+import { Input } from "@/components/ui/input";import {FolderOpen,ArrowClockwise as Redo2,@@ -20,8 +21,8 @@ type Props = {t: ReturnType<typeof useI18n>["t"];headerLeftControlsPaddingClass: string;project: ReturnType<typeof useProjectState>;- projectBrowserTriggerRef: RefObject<HTMLButtonElement>;- projectNameInputRef: RefObject<HTMLInputElement>;+ projectBrowserTriggerRef: RefObject<HTMLButtonElement | null>;+ projectNameInputRef: RefObject<HTMLInputElement | null>;projectDisplayName: string;hasUnsavedChanges: boolean;canUndo: boolean;@@ -92,7 +93,7 @@ export function EditorHeader(props: Props) {return (<div- className="relative z-50 flex h-11 flex-shrink-0 items-center justify-between border-b border-foreground/10 bg-editor-header/88 px-5 backdrop-blur-md"+ className="relative z-50 flex h-11 flex-shrink-0 items-center justify-between border-b border-separator bg-surface px-4"style={{ WebkitAppRegion: "drag" } as CSSProperties}><div@@ -119,7 +120,7 @@ export function EditorHeader(props: Props) {variant="ghost"onClick={handleUndo}disabled={!canUndo}- className="inline-flex h-8 w-8 items-center justify-center rounded-[5px] border border-foreground/10 bg-foreground/5 p-0 text-foreground transition-colors hover:bg-foreground/10 hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40"+ className="inline-flex h-8 w-8 items-center justify-center p-0 disabled:cursor-not-allowed"title={t("common.actions.undo", "Undo")}aria-label={t("common.actions.undo", "Undo")}>@@ -130,7 +131,7 @@ export function EditorHeader(props: Props) {variant="ghost"onClick={handleRedo}disabled={!canRedo}- className="inline-flex h-8 w-8 items-center justify-center rounded-[5px] border border-foreground/10 bg-foreground/5 p-0 text-foreground transition-colors hover:bg-foreground/10 hover:text-foreground disabled:cursor-not-allowed disabled:opacity-40"+ className="inline-flex h-8 w-8 items-center justify-center p-0 disabled:cursor-not-allowed"title={t("common.actions.redo", "Redo")}aria-label={t("common.actions.redo", "Redo")}>@@ -150,7 +151,7 @@ export function EditorHeader(props: Props) {{hasUnsavedChanges ? (<span className="mt-[1px] size-2 shrink-0 rounded-full bg-[#2563EB]" />) : null}- <input+ <Inputref={projectNameInputRef}type="text"value={projectNameDraft}@@ -165,7 +166,7 @@ export function EditorHeader(props: Props) {}}}disabled={isSavingProjectName}- className="min-w-[10ch] max-w-[min(40vw,360px)] bg-transparent text-sm font-semibold tracking-tight text-foreground/95 outline-none placeholder:text-muted-foreground/60 disabled:cursor-wait"+ className="min-w-[10ch] max-w-[min(40vw,360px)] text-sm disabled:cursor-wait"style={{ width: `${Math.max(projectNameDraft.length, 10)}ch` }}aria-label={t("editor.project.renameInput", "Project name")}/>@@ -174,10 +175,11 @@ export function EditorHeader(props: Props) {</span></form>) : (- <button+ <Button+ variant="ghost"type="button"onClick={() => setIsEditingProjectName(true)}- className="inline-flex max-w-[min(52vw,460px)] items-baseline gap-1 rounded-[7px] px-2.5 py-1 transition-colors hover:bg-foreground/5"+ className="inline-flex max-w-[min(52vw,460px)] items-baseline gap-1 px-2.5 py-1"title={t("editor.project.renameTitle", "Rename project")}aria-label={t("editor.project.renameTitle", "Rename project")}>@@ -190,7 +192,7 @@ export function EditorHeader(props: Props) {<span className="shrink-0 text-xs font-medium tracking-tight text-muted-foreground/70">.recordly</span>- </button>+ </Button>)}</div>diff --git a/src/components/video-editor/layout/EditorPresetMenu.tsx b/src/components/video-editor/layout/EditorPresetMenu.tsxindex 1c360a55..eb439e51 100644--- a/src/components/video-editor/layout/EditorPresetMenu.tsx+++ b/src/components/video-editor/layout/EditorPresetMenu.tsx@@ -27,11 +27,12 @@ export function EditorPresetMenu({ t, presets }: Props) {return (<Popover open={presetPopoverOpen} onOpenChange={setPresetPopoverOpen}><PopoverTrigger asChild>- <button+ <Button+ variant="ghost"type="button"title={t("editor.presets.open", "Open presets")}aria-label={t("editor.presets.open", "Open presets")}- className="inline-flex items-center gap-1.5 bg-transparent p-0 text-sm font-medium tracking-tight text-foreground outline-none transition-opacity hover:opacity-80"+ className="inline-flex items-center gap-1.5 p-0 text-sm"><span className="flex items-center gap-1.5"><BookmarkSimple weight="fill" className="h-4 w-4" />@@ -40,13 +41,9 @@ export function EditorPresetMenu({ t, presets }: Props) {</span></span><CaretDown className="h-3.5 w-3.5 text-foreground" />- </button>+ </Button></PopoverTrigger>- <PopoverContent- align="end"- sideOffset={10}- className="w-[300px] rounded-2xl border border-foreground/10 bg-editor-surface-alt p-3 shadow-xl"- >+ <PopoverContent align="end" sideOffset={10} className="w-[300px] p-3"><div className="space-y-3"><formonSubmit={(event) => {@@ -62,15 +59,11 @@ export function EditorPresetMenu({ t, presets }: Props) {<Inputvalue={presetNameDraft}onChange={(event) => setPresetNameDraft(event.target.value)}- className="h-9 rounded-xl border-foreground/10 bg-background/70 text-sm"+ className="h-9 text-sm"placeholder={t("editor.presets.namePlaceholder", "Preset name")}aria-label={t("editor.presets.namePlaceholder", "Preset name")}/>- <Button- type="submit"- size="sm"- className="h-9 rounded-xl bg-[#2563EB] px-3 text-white hover:bg-[#1d4ed8]"- >+ <Button type="submit" size="sm" className="h-9 px-3">{t("common.actions.save", "Save")}</Button></div>@@ -97,7 +90,8 @@ export function EditorPresetMenu({ t, presets }: Props) {: "border-foreground/8 bg-foreground/[0.03] text-muted-foreground hover:bg-foreground/[0.06] hover:text-foreground",)}>- <button+ <Button+ variant="ghost"type="button"onClick={() => handleApplyEditorPreset(preset.id)}className="flex min-w-0 flex-1 items-center justify-between text-left"@@ -106,11 +100,12 @@ export function EditorPresetMenu({ t, presets }: Props) {{isActive ? (<Check className="h-3.5 w-3.5 shrink-0 text-[#2563EB]" />) : null}- </button>- <button+ </Button>+ <Button+ variant="ghost"type="button"onClick={() => handleDeleteEditorPreset(preset.id)}- className="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-foreground/8 hover:text-foreground"+ className="inline-flex h-7 w-7 shrink-0 items-center justify-center"aria-label={t("editor.presets.deleteAriaLabel","Delete preset {{name}}",@@ -123,7 +118,7 @@ export function EditorPresetMenu({ t, presets }: Props) {)}><X className="h-3.5 w-3.5" />- </button>+ </Button></div>);})diff --git a/src/components/video-editor/layout/EditorPreviewPanel.tsx b/src/components/video-editor/layout/EditorPreviewPanel.tsxindex 1c7ca486..5e4bba92 100644--- a/src/components/video-editor/layout/EditorPreviewPanel.tsx+++ b/src/components/video-editor/layout/EditorPreviewPanel.tsx@@ -1,3 +1,4 @@+import { Slider } from "@/components/ui/slider";import {CaretDown,Check,@@ -43,8 +44,8 @@ type Props = {aspectRatio: AspectRatio;setAspectRatio: Dispatch<SetStateAction<AspectRatio>>;previewAspectRatioValue: number;- videoPlaybackRef: RefObject<VideoPlaybackRef>;- timelineRef: RefObject<TimelineEditorHandle>;+ videoPlaybackRef: RefObject<VideoPlaybackRef | null>;+ timelineRef: RefObject<TimelineEditorHandle | null>;currentTime: number;isPlaying: boolean;previewVolume: number;@@ -113,16 +114,16 @@ export function EditorPreviewPanel(props: Props) {} = props;return (- <div className="flex min-h-0 flex-1 flex-col gap-3">+ <div className="flex min-h-0 min-w-0 flex-1 flex-col"><div className="flex min-h-0 flex-1 flex-col"><div className="relative flex min-h-0 flex-1 flex-col overflow-hidden">- <div className="flex flex-shrink-0 items-center justify-center gap-2 py-1.5">+ <div className="flex h-11 flex-shrink-0 items-center justify-center gap-2 border-b border-separator bg-surface"><DropdownMenu><DropdownMenuTrigger asChild><Buttonvariant="ghost"size="sm"- className="h-7 gap-1 px-2 text-xs text-muted-foreground transition-all hover:bg-foreground/10 hover:text-foreground"+ className="h-7 gap-1 px-2 text-xs"><span className="font-medium">{getAspectRatioLabel(aspectRatio)}@@ -130,10 +131,7 @@ export function EditorPreviewPanel(props: Props) {<CaretDown className="h-3 w-3" /></Button></DropdownMenuTrigger>- <DropdownMenuContent- align="center"- className="border-foreground/10 bg-editor-surface-alt"- >+ <DropdownMenuContent align="center">{ASPECT_RATIOS.map((ratio) => (<DropdownMenuItemkey={ratio}@@ -153,7 +151,7 @@ export function EditorPreviewPanel(props: Props) {variant="ghost"size="sm"onClick={handleOpenCropEditor}- className="h-7 gap-1.5 px-2 text-xs text-muted-foreground transition-all hover:bg-foreground/10 hover:text-foreground"+ className="h-7 gap-1.5 px-2 text-xs"><Crop className="h-3.5 w-3.5" /><span className="font-medium">{t("settings.crop.title")}</span>@@ -163,8 +161,8 @@ export function EditorPreviewPanel(props: Props) {</Button></div><div- className="flex min-h-0 w-full flex-1 items-stretch"- style={{ flex: "1 1 auto", margin: "6px 0 0" }}+ className="flex min-h-0 w-full flex-1 items-stretch px-6 py-5"+ style={{ flex: "1 1 auto", margin: 0 }}><div className="flex min-w-0 flex-1 items-center justify-center px-1"><div@@ -215,24 +213,17 @@ export function EditorPreviewPanel(props: Props) {</div></div>- <div className="relative flex flex-shrink-0 items-center px-1 py-1">+ <div className="relative flex h-12 flex-shrink-0 items-center border-t border-separator bg-surface px-4"><div className="z-10 flex min-w-0 flex-1 items-center gap-1.5"><DropdownMenu><DropdownMenuTrigger asChild>- <Button- variant="ghost"- size="sm"- className="h-7 gap-1 rounded-full border border-foreground/[0.08] bg-foreground/[0.04] px-2.5 text-[11px] text-foreground/65 shadow-[inset_0_1px_0_hsl(var(--foreground)/0.06)] transition-all hover:bg-foreground/[0.08] hover:text-foreground"- >+ <Button variant="ghost" size="sm" className="h-7 gap-1 px-2.5"><Plus className="h-3.5 w-3.5" /><span className="font-medium">{t("editor.toolbar.addLayer")}</span><CaretDown className="h-3 w-3" /></Button></DropdownMenuTrigger>- <DropdownMenuContent- align="start"- className="border-foreground/10 bg-editor-surface-alt"- >+ <DropdownMenuContent align="start"><DropdownMenuItemonClick={() => {const nextTrack =@@ -272,7 +263,7 @@ export function EditorPreviewPanel(props: Props) {onClick={() => timelineRef.current?.addZoom()}variant="ghost"size="icon"- className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-[#2563EB]/10 hover:text-[#2563EB]"+ className="h-7 w-7"title={t("timeline.zoom.addZoom")}><MagnifyingGlassPlus className="h-4 w-4" />@@ -281,7 +272,7 @@ export function EditorPreviewPanel(props: Props) {onClick={() => timelineRef.current?.suggestZooms()}variant="ghost"size="icon"- className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-[#2563EB]/10 hover:text-[#2563EB]"+ className="h-7 w-7"title={t("timeline.zoom.suggestZooms")}><MagicWand className="h-4 w-4" />@@ -290,7 +281,7 @@ export function EditorPreviewPanel(props: Props) {onClick={() => timelineRef.current?.splitClip()}variant="ghost"size="icon"- className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-foreground/10 hover:text-foreground"+ className="h-7 w-7"title={t("editor.toolbar.splitClip")}><Scissors className="h-4 w-4" />@@ -305,7 +296,7 @@ export function EditorPreviewPanel(props: Props) {<Buttonvariant="ghost"size="icon"- className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-foreground/10 hover:text-foreground"+ className="h-7 w-7"title={t("editor.playback.skipBack")}onClick={playback.handlePreviewSkipBack}>@@ -314,7 +305,7 @@ export function EditorPreviewPanel(props: Props) {<Buttonvariant="ghost"size="icon"- className={`h-7 w-7 rounded-full border border-foreground/10 shadow-[0_8px_18px_rgba(0,0,0,0.18)] transition-all ${isPlaying ? "bg-foreground/10 text-foreground hover:bg-foreground/20" : "bg-neutral-800 text-white hover:bg-neutral-700 dark:bg-white dark:text-black dark:hover:bg-white/90"}`}+ className={`h-7 w-7 ${isPlaying ? "bg-foreground/10 text-foreground hover:bg-foreground/20" : "bg-neutral-800 text-white hover:bg-neutral-700 dark:bg-white dark:text-black dark:hover:bg-white/90"} `}onClick={playback.togglePlayPause}title={isPlaying ? "Pause" : "Play"}>@@ -327,7 +318,7 @@ export function EditorPreviewPanel(props: Props) {<Buttonvariant="ghost"size="icon"- className="h-7 w-7 rounded-full text-muted-foreground transition-all hover:bg-foreground/10 hover:text-foreground"+ className="h-7 w-7"title={t("editor.playback.skipForward")}onClick={playback.handlePreviewSkipForward}>@@ -341,9 +332,9 @@ export function EditorPreviewPanel(props: Props) {<div className="z-10 ml-auto flex items-center gap-2"><div className="flex items-center gap-1.5">- <button+ <Button+ variant="ghost"type="button"- className="text-muted-foreground transition-colors hover:text-foreground"title={t("editor.playback.muteUnmute")}onClick={() => setPreviewVolume(previewVolume <= 0.001 ? 1 : 0)}>@@ -354,35 +345,16 @@ export function EditorPreviewPanel(props: Props) {) : (<SpeakerHigh className="h-3.5 w-3.5" />)}- </button>- <div className="relative flex h-7 w-24 select-none items-center overflow-hidden rounded-full border border-foreground/[0.06] bg-editor-bg/80 shadow-[inset_0_1px_0_hsl(var(--foreground)/0.06)]">- <div- className="absolute inset-y-[3px] left-[3px] right-auto rounded-[10px] bg-foreground/[0.08]"- style={{- width:- previewVolume > 0- ? `max(calc(${previewVolume * 100}% - 6px), 1.2rem)`- : 0,- }}- />- <div- className="pointer-events-none absolute bottom-[18%] top-[18%] z-10 w-0.5 rounded-full bg-foreground/95 shadow-[0_0_10px_rgba(37,99,235,0.28)]"- style={{ left: `calc(${previewVolume * 100}% - 8px)` }}- />- <span className="pointer-events-none relative z-10 pl-2 text-[10px] font-medium text-muted-foreground">- {Math.round(previewVolume * 100)}%- </span>- <input- type="range"- aria-label={t("editor.playback.volume", "Preview volume")}- min="0"- max="1"- step="0.01"- value={previewVolume}- onChange={(event) => setPreviewVolume(Number(event.target.value))}- className="absolute inset-0 h-full w-full cursor-ew-resize opacity-0"- />- </div>+ </Button>+ <Slider+ aria-label={t("editor.playback.volume", "Preview volume")}+ min={0}+ max={1}+ step={0.01}+ value={[previewVolume]}+ onValueChange={([value]) => setPreviewVolume(value)}+ className="w-24"+ /></div></div></div>diff --git a/src/components/video-editor/layout/EditorShell.tsx b/src/components/video-editor/layout/EditorShell.tsxindex e8592828..e9e9501d 100644--- a/src/components/video-editor/layout/EditorShell.tsx+++ b/src/components/video-editor/layout/EditorShell.tsx@@ -1,6 +1,7 @@+import { Button } from "@/components/ui/button";import type { ComponentProps } from "react";import { EditorAnnouncementBanner } from "@/components/announcements/EditorAnnouncementBanner";-import { Toaster } from "@/components/ui/sonner";+import { Toaster } from "@/components/ui/toast";import type { useI18n } from "@/contexts/I18nContext";import type { useEditorExportController } from "../export/useEditorExportController";import type { useExportDimensions } from "../export/useExportDimensions";@@ -130,14 +131,15 @@ export function EditorShell(props: Props) {<div className="flex h-screen items-center justify-center bg-background"><div className="flex flex-col items-center gap-3"><div className="text-destructive">{project.error}</div>- <button+ <Button+ variant="ghost"ref={ui.projectBrowserFallbackTriggerRef}type="button"onClick={openActions.handleOpenProjectBrowser}- className="rounded-[5px] bg-neutral-800 px-3 py-1.5 text-sm font-semibold text-white shadow-[0_14px_32px_rgba(0,0,0,0.18)] transition-colors hover:bg-neutral-700 dark:bg-white dark:text-black dark:hover:bg-white/90"+ className="px-3 py-1.5 text-sm">Open Projects- </button>+ </Button></div>{editorDialogs}<Toaster className="pointer-events-auto" />@@ -145,7 +147,7 @@ export function EditorShell(props: Props) {);return (- <div className="flex h-screen flex-col overflow-hidden bg-editor-bg text-foreground selection:bg-[#2563EB]/30">+ <div className="flex h-screen flex-col overflow-hidden bg-editor-bg text-foreground selection:bg-accent/20"><EditorHeadert={t}headerLeftControlsPaddingClass={headerLeftControlsPaddingClass}@@ -179,8 +181,8 @@ export function EditorShell(props: Props) {exportMessage={exportMessage}/><EditorAnnouncementBanner />- <div className="relative flex min-h-0 flex-1 flex-col gap-3 p-4">- <div className="relative z-10 flex min-h-0 flex-1 gap-3">+ <div className="relative flex min-h-0 flex-1 flex-col">+ <div className="relative z-10 flex min-h-0 flex-1"><EditorSidebart={t}activeSection={ui.activeEffectSection}diff --git a/src/components/video-editor/layout/EditorSidebar.tsx b/src/components/video-editor/layout/EditorSidebar.tsxindex d73720b6..b51687b9 100644--- a/src/components/video-editor/layout/EditorSidebar.tsx+++ b/src/components/video-editor/layout/EditorSidebar.tsx@@ -4,13 +4,14 @@ import {Cursor,Gear,PuzzlePiece,- Sparkle,+ FrameCorners,UserCircle,} from "@phosphor-icons/react";-import { motion } from "motion/react";+import { ToggleButtonGroup, ToggleButton, Tooltip } from "@heroui/react";+import { Button } from "@/components/ui/button";import type { ComponentProps, Dispatch, SetStateAction } from "react";import { useMemo } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import type { useI18n } from "@/contexts/I18nContext";import ExtensionManager from "../ExtensionManager";import { SettingsPanel } from "../SettingsPanel";@@ -26,7 +27,11 @@ type Props = {export function EditorSidebar({ t, activeSection, setActiveSection, settingsPanelProps }: Props) {const sections = useMemo(() => [- { id: "scene" as const, label: t("settings.sections.scene", "Scene"), icon: Sparkle },+ {+ id: "scene" as const,+ label: t("settings.sections.scene", "Scene"),+ icon: FrameCorners,+ },{ id: "cursor" as const, label: t("settings.sections.cursor", "Cursor"), icon: Cursor },{ id: "webcam" as const, label: t("settings.sections.webcam", "Webcam"), icon: Camera },{@@ -48,76 +53,67 @@ export function EditorSidebar({ t, activeSection, setActiveSection, settingsPane[t],);return (- <div className="flex flex-shrink-0 gap-1.5">- <div className="flex flex-shrink-0 flex-col items-center gap-0.5 px-2 py-2">- {sections.map((section) => {- const isActive = activeSection === section.id;- return (- <div key={section.id} className="flex items-center">- <motion.button- type="button"- onClick={() => setActiveSection(section.id)}- title={section.label}- className="group relative flex h-9 w-9 items-center justify-center rounded-lg outline-none focus:outline-none focus-visible:outline-none"- animate={{ opacity: isActive ? 1 : 0.55 }}- transition={{ duration: 0.14 }}+ <div className="flex min-h-0 flex-shrink-0 border-r border-separator bg-surface">+ <nav+ aria-label={t("settings.sections.title", "Editor tools")}+ className="flex w-14 flex-col items-center gap-3 border-r border-separator py-3"+ >+ <ToggleButtonGroup+ orientation="vertical"+ isDetached+ className="gap-2"+ selectionMode="single"+ disallowEmptySelection+ selectedKeys={[activeSection]}+ onSelectionChange={(keys) => {+ const key = Array.from(keys)[0];+ if (key) setActiveSection(key as EditorEffectSection);+ }}+ >+ {sections.map((section) => (+ <Tooltip key={section.id}>+ <ToggleButton+ id={section.id}+ variant="ghost"+ isIconOnly+ aria-label={section.label}>- {isActive ? (- <motion.span- layoutId="rail-active-bg"- className="absolute inset-0 rounded-lg bg-foreground/[0.08]"- transition={{ type: "spring", stiffness: 450, damping: 35 }}- />- ) : null}- <motion.span- className="relative z-10"- animate={{- color: isActive ? "#2563EB" : "hsl(var(--foreground))",- }}- transition={{ duration: 0.14 }}- >- <section.icon- className="h-[27px] w-[27px]"- weight={isActive ? "fill" : "regular"}- />- </motion.span>- </motion.button>- <div className="ml-1.5 h-1.5 w-1.5 flex-shrink-0">- {isActive ? (- <motion.span- layoutId="rail-active-dot"- className="block h-1.5 w-1.5 rounded-full bg-[#2563EB]"- initial={{ opacity: 0, scale: 0.5 }}- animate={{ opacity: 1, scale: 1 }}- exit={{ opacity: 0, scale: 0.5 }}- transition={{ type: "spring", stiffness: 500, damping: 32 }}- />- ) : null}- </div>- </div>- );- })}- <div className="mt-auto flex flex-col items-center gap-0.5 pt-3">- <motion.button- type="button"- onClick={() =>- toast.info(t("editor.account.comingSoon", "Account coming soon"))- }- title={t("editor.account.title", "Account")}- className="group relative flex h-9 w-9 items-center justify-center rounded-lg text-foreground/55 outline-none transition hover:text-foreground focus:outline-none focus-visible:outline-none"- whileHover={{ opacity: 1 }}- initial={{ opacity: 0.55 }}- >- <motion.span className="absolute inset-0 rounded-lg bg-foreground/[0.04] opacity-0 transition group-hover:opacity-100" />- <UserCircle className="relative z-10 h-[22px] w-[22px]" />- </motion.button>- </div>- </div>- {activeSection === "extensions" ? (- <ExtensionManager />- ) : (- <SettingsPanel {...settingsPanelProps} />- )}+ <section.icon className="size-5" />+ </ToggleButton>+ <Tooltip.Content placement="right">{section.label}</Tooltip.Content>+ </Tooltip>+ ))}+ </ToggleButtonGroup>+ <Button+ variant="ghost"+ size="icon"+ className="mt-auto"+ aria-label={t("editor.account.title", "Account")}+ onClick={() =>+ toast.info(t("editor.account.comingSoon", "Account coming soon"))+ }+ >+ <UserCircle />+ </Button>+ </nav>+ <aside className="flex w-[320px] min-h-0 flex-col">+ <header className="flex h-11 shrink-0 items-center border-b border-separator px-4">+ <h2 className="text-sm font-medium">+ {settingsPanelProps.selectedAnnotationId+ ? t("timeline.annotation.label", "Annotation")+ : (sections.find((section) => section.id === activeSection)?.label ??+ t(+ `settings.sections.${activeSection}`,+ activeSection.charAt(0).toUpperCase() + activeSection.slice(1),+ ))}+ </h2>+ </header>+ {activeSection === "extensions" ? (+ <ExtensionManager />+ ) : (+ <SettingsPanel {...settingsPanelProps} />+ )}+ </aside></div>);}diff --git a/src/components/video-editor/layout/EditorTimelinePanel.tsx b/src/components/video-editor/layout/EditorTimelinePanel.tsxindex 2d1ba28d..7a341a43 100644--- a/src/components/video-editor/layout/EditorTimelinePanel.tsx+++ b/src/components/video-editor/layout/EditorTimelinePanel.tsx@@ -12,7 +12,7 @@ import type { useTimelineState } from "../state/useTimelineState";import TimelineEditor, { type TimelineEditorHandle } from "../timeline/TimelineEditor";type Props = {- timelineRef: RefObject<TimelineEditorHandle>;+ timelineRef: RefObject<TimelineEditorHandle | null>;timeline: ReturnType<typeof useTimelineState>;projection: ReturnType<typeof useTimelineProjection>;playback: ReturnType<typeof useEditorPlaybackControls>;@@ -57,7 +57,10 @@ export function EditorTimelinePanel(props: Props) {} = props;return (- <div className="flex flex-shrink-0 flex-col" style={{ height: "15%", minHeight: 160 }}>+ <div+ className="flex flex-shrink-0 flex-col border-t border-separator bg-surface px-3 pb-3 pt-1"+ style={{ height: "22%", minHeight: 180, maxHeight: 280 }}+ ><TimelineEditorref={timelineRef}videoDuration={projection.timelineDuration}diff --git a/src/components/video-editor/layout/EditorVideoPreview.tsx b/src/components/video-editor/layout/EditorVideoPreview.tsxindex ae0fe3e9..1f92a134 100644--- a/src/components/video-editor/layout/EditorVideoPreview.tsx+++ b/src/components/video-editor/layout/EditorVideoPreview.tsx@@ -21,7 +21,7 @@ type Props = {videoPath: string | null;previewVersion: number;aspectRatio: AspectRatio;- playbackRef: RefObject<VideoPlaybackRef>;+ playbackRef: RefObject<VideoPlaybackRef | null>;currentTime: number;isPlaying: boolean;previewVolume: number;diff --git a/src/components/video-editor/presets/useEditorPresets.ts b/src/components/video-editor/presets/useEditorPresets.tsindex d092dbe9..e98e9797 100644--- a/src/components/video-editor/presets/useEditorPresets.ts+++ b/src/components/video-editor/presets/useEditorPresets.ts@@ -1,5 +1,5 @@import { type Dispatch, type SetStateAction, useCallback, useEffect, useMemo } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import {type EditorPreset,type EditorPresetSnapshot,diff --git a/src/components/video-editor/project/useEditorProjectController.ts b/src/components/video-editor/project/useEditorProjectController.tsindex a2bba320..a57610f4 100644--- a/src/components/video-editor/project/useEditorProjectController.ts+++ b/src/components/video-editor/project/useEditorProjectController.ts@@ -52,9 +52,9 @@ type Input = {setWhisperModelDownloadProgress: Dispatch<SetStateAction<number>>;isGeneratingCaptions: boolean;setIsGeneratingCaptions: Dispatch<SetStateAction<boolean>>;- videoPlaybackRef: RefObject<VideoPlaybackRef>;- projectNameInputRef: RefObject<HTMLInputElement>;- projectSaveDialogInputRef: RefObject<HTMLInputElement>;+ videoPlaybackRef: RefObject<VideoPlaybackRef | null>;+ projectNameInputRef: RefObject<HTMLInputElement | null>;+ projectSaveDialogInputRef: RefObject<HTMLInputElement | null>;nextZoomIdRef: MutableRefObject<number>;nextClipIdRef: MutableRefObject<number>;nextAudioIdRef: MutableRefObject<number>;diff --git a/src/components/video-editor/project/useProjectLifecycle.ts b/src/components/video-editor/project/useProjectLifecycle.tsindex 1f0a0f32..1653f6bc 100644--- a/src/components/video-editor/project/useProjectLifecycle.ts+++ b/src/components/video-editor/project/useProjectLifecycle.ts@@ -8,7 +8,7 @@ import {useMemo,useRef,} from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import type { AspectRatio } from "@/utils/aspectRatioUtils";import type { useExportSettings } from "../export/useExportSettings";import type { UnsavedChangesDecision } from "../layout/EditorDialogs";diff --git a/src/components/video-editor/project/useProjectOpenActions.ts b/src/components/video-editor/project/useProjectOpenActions.tsindex 127e5ec5..02803977 100644--- a/src/components/video-editor/project/useProjectOpenActions.ts+++ b/src/components/video-editor/project/useProjectOpenActions.ts@@ -6,7 +6,7 @@ import {useCallback,useEffect,} from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { fromFileUrl, resolveVideoUrl } from "../projectPersistence";import type { useAppearanceState } from "../state/useAppearanceState";import type { useProjectState } from "../state/useProjectState";diff --git a/src/components/video-editor/project/useProjectSaveActions.ts b/src/components/video-editor/project/useProjectSaveActions.tsindex bf1c51b2..e2d002d8 100644--- a/src/components/video-editor/project/useProjectSaveActions.ts+++ b/src/components/video-editor/project/useProjectSaveActions.ts@@ -1,5 +1,5 @@import { type RefObject, useCallback, useEffect, useRef } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { createProjectData, type EditorProjectData } from "../projectPersistence";import type { useProjectState } from "../state/useProjectState";import { cloneStructured, getErrorMessage } from "../videoEditorUtils";diff --git a/src/components/video-editor/timeline/Item.tsx b/src/components/video-editor/timeline/Item.tsxindex 7dff788b..bfb64ecd 100644--- a/src/components/video-editor/timeline/Item.tsx+++ b/src/components/video-editor/timeline/Item.tsx@@ -110,9 +110,8 @@ export default function Item({onClickCapture={(event) => event.stopPropagation()}><Skeleton- variant="clip"- animation="shimmer-premium"- label={loadingLabel || "Loading..."}+ animationType="shimmer"+ aria-label={loadingLabel || "Loading..."}className="w-full"style={{ height: "85%", minHeight: 22 }}/>diff --git a/src/components/video-editor/timeline/ItemGlass.module.css b/src/components/video-editor/timeline/ItemGlass.module.cssindex 1ad9fdd0..ed56276a 100644--- a/src/components/video-editor/timeline/ItemGlass.module.css+++ b/src/components/video-editor/timeline/ItemGlass.module.css@@ -1,179 +1,68 @@-.glassGreen {+/* Custom timeline geometry, using the same palette as the HeroUI controls. */+.glassGreen,+.glassRed,+.glassYellow,+.glassAmber,+.glassPurple,+.glassCyan,+.glassDarkGreen,+.glassCaption {position: relative;- border-radius: 8px;- background: #183065;- border: 1px solid #1b3a7f;+ border-radius: 6px;+ background: color-mix(in oklab, var(--region-accent) 14%, var(--surface));+ border: 1px solid color-mix(in oklab, var(--region-accent) 25%, var(--separator));transition:- background 0.15s ease,- border-color 0.15s ease;-}--.glassGreen:hover {- background: #1a387a;- border-color: #1e469f;+ background-color 150ms ease,+ border-color 150ms ease;}--.glassGreen.selected {- background: #1c3e89;- border-color: #2563eb;- box-shadow: inset 0 0 0 1.5px #2563eb;- z-index: 10;+.glassGreen {+ --region-accent: var(--accent);}-.glassRed {- position: relative;- border-radius: 8px;- background: #652425;- border: 1px solid #802a2b;- transition:- background 0.15s ease,- border-color 0.15s ease;+ --region-accent: var(--danger);}--.glassRed:hover {- background: #7b292a;- border-color: #a13232;-}--.glassRed.selected {- background: #8b2d2d;- border-color: #ef4444;- box-shadow: inset 0 0 0 1.5px #ef4444;- z-index: 10;-}-.glassYellow {- position: relative;- border-radius: 8px;- background: #4e4726;- border: 1px solid #62582c;- transition:- background 0.15s ease,- border-color 0.15s ease;-}--.glassYellow:hover {- background: #5f552b;- border-color: #7a6d34;-}--.glassYellow.selected {- background: #6a5f2f;- border-color: #b4a046;- box-shadow: inset 0 0 0 1.5px #b4a046;- z-index: 10;+ --region-accent: var(--warning);}-.glassAmber {- position: relative;- border-radius: 8px;- background: #67460f;- border: 1px solid #83570f;- transition:- background 0.15s ease,- border-color 0.15s ease;-}--.glassAmber:hover {- background: #7e540f;- border-color: #a56c0d;+ --region-accent: var(--warning);}--.glassAmber.selected {- background: #8e5e0e;- border-color: #f59e0b;- box-shadow: inset 0 0 0 1.5px #f59e0b;- z-index: 10;-}-.glassPurple {- position: relative;- border-radius: 8px;- background: #4a2a69;- border: 1px solid #5c3385;- transition:- background 0.15s ease,- border-color 0.15s ease;-}--.glassPurple:hover {- background: #593180;- border-color: #733da7;+ --region-accent: var(--color-purple-500);}--.glassPurple.selected {- background: #643690;- border-color: #a855f7;- box-shadow: inset 0 0 0 1.5px #a855f7;- z-index: 10;-}-.glassCyan {- position: relative;- border-radius: 8px;- background: #183065;- border: 1px solid #1b3a7f;- transition:- background 0.15s ease,- border-color 0.15s ease;-}--.glassCyan:hover {- background: #1a387a;- border-color: #1e469f;+ --region-accent: var(--accent);}--.glassCyan.selected {- background: #1c3e89;- border-color: #2563eb;- box-shadow: inset 0 0 0 1.5px #2563eb;- z-index: 10;-}-.glassDarkGreen {- position: relative;- border-radius: 8px;- background: #164f2d;- border: 1px solid #196b38;- transition:- background 0.15s ease,- border-color 0.15s ease;+ --region-accent: var(--success);}--.glassDarkGreen:hover {- background: #186234;- border-color: #1c8643;-}--.glassDarkGreen.selected {- background: #196e3a;- border-color: #22c55e;- box-shadow: inset 0 0 0 1.5px #22c55e;- z-index: 10;-}-.glassCaption {- position: relative;- border-radius: 8px;- background: #5b2746;- border: 1px solid #7a3157;- transition:- background 0.15s ease,- border-color 0.15s ease;-}-+ --region-accent: var(--color-pink-500);+}+.glassGreen:hover,+.glassRed:hover,+.glassYellow:hover,+.glassAmber:hover,+.glassPurple:hover,+.glassCyan:hover,+.glassDarkGreen:hover,.glassCaption:hover {- background: #6d2f54;- border-color: #933a68;-}-+ background: color-mix(in oklab, var(--region-accent) 20%, var(--surface));+ border-color: var(--region-accent);+}+.glassGreen.selected,+.glassRed.selected,+.glassYellow.selected,+.glassAmber.selected,+.glassPurple.selected,+.glassCyan.selected,+.glassDarkGreen.selected,.glassCaption.selected {- background: #7a3157;- border-color: #f472b6;- box-shadow: inset 0 0 0 1.5px #f472b6;+ background: color-mix(in oklab, var(--region-accent) 22%, var(--surface));+ border-color: var(--region-accent);+ box-shadow: inset 0 0 0 1px var(--region-accent);z-index: 10;}-/* Pill resize handle — visible on hover */.zoomEndCap {position: absolute;@@ -189,136 +78,12 @@justify-content: center;transform: translateY(-50%);border-radius: 2px;- background: rgba(255, 255, 255, 0.88);+ background: color-mix(in oklab, var(--foreground) 70%, transparent);transition:opacity 0.15s ease,background 0.15s ease;}-/* --- Light-mode overrides --- */-:global(:root:not(.dark)) .glassGreen {- background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);- border-color: #60a5fa;-}-:global(:root:not(.dark)) .glassGreen:hover {- background: linear-gradient(180deg, #bfdbfe 0%, #60a5fa 100%);- border-color: #3b82f6;-}-:global(:root:not(.dark)) .glassGreen.selected {- background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);- border-color: #2563eb;- box-shadow: inset 0 0 0 1.5px #2563eb;-}--:global(:root:not(.dark)) .glassRed {- background: linear-gradient(180deg, #fee2e2 0%, #fca5a5 100%);- border-color: #f87171;-}-:global(:root:not(.dark)) .glassRed:hover {- background: linear-gradient(180deg, #fecaca 0%, #f87171 100%);- border-color: #ef4444;-}-:global(:root:not(.dark)) .glassRed.selected {- background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%);- border-color: #ef4444;- box-shadow: inset 0 0 0 1.5px #ef4444;-}--:global(:root:not(.dark)) .glassYellow {- background: linear-gradient(180deg, #fef9c3 0%, #fde047 100%);- border-color: #facc15;-}-:global(:root:not(.dark)) .glassYellow:hover {- background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);- border-color: #eab308;-}-:global(:root:not(.dark)) .glassYellow.selected {- background: linear-gradient(180deg, #fde047 0%, #eab308 100%);- border-color: #b4a046;- box-shadow: inset 0 0 0 1.5px #b4a046;-}--:global(:root:not(.dark)) .glassAmber {- background: linear-gradient(180deg, #fef3c7 0%, #fcd34d 100%);- border-color: #fbbf24;-}-:global(:root:not(.dark)) .glassAmber:hover {- background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);- border-color: #f59e0b;-}-:global(:root:not(.dark)) .glassAmber.selected {- background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%);- border-color: #f59e0b;- box-shadow: inset 0 0 0 1.5px #f59e0b;-}--:global(:root:not(.dark)) .glassPurple {- background: linear-gradient(180deg, #f3e8ff 0%, #d8b4fe 100%);- border-color: #c084fc;-}-:global(:root:not(.dark)) .glassPurple:hover {- background: linear-gradient(180deg, #e9d5ff 0%, #c084fc 100%);- border-color: #a855f7;-}-:global(:root:not(.dark)) .glassPurple.selected {- background: linear-gradient(180deg, #d8b4fe 0%, #a855f7 100%);- border-color: #a855f7;- box-shadow: inset 0 0 0 1.5px #a855f7;-}--:global(:root:not(.dark)) .glassCyan {- background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);- border-color: #60a5fa;-}-:global(:root:not(.dark)) .glassCyan:hover {- background: linear-gradient(180deg, #bfdbfe 0%, #60a5fa 100%);- border-color: #3b82f6;-}-:global(:root:not(.dark)) .glassCyan.selected {- background: linear-gradient(180deg, #93c5fd 0%, #3b82f6 100%);- border-color: #2563eb;- box-shadow: inset 0 0 0 1.5px #2563eb;-}--:global(:root:not(.dark)) .glassDarkGreen {- background: linear-gradient(180deg, #dcfce7 0%, #86efac 100%);- border-color: #4ade80;-}-:global(:root:not(.dark)) .glassDarkGreen:hover {- background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 100%);- border-color: #22c55e;-}-:global(:root:not(.dark)) .glassDarkGreen.selected {- background: linear-gradient(180deg, #86efac 0%, #22c55e 100%);- border-color: #22c55e;- box-shadow: inset 0 0 0 1.5px #22c55e;-}--:global(:root:not(.dark)) .glassCaption {- background: linear-gradient(180deg, #fce7f3 0%, #f9a8d4 100%);- border-color: #f472b6;-}-:global(:root:not(.dark)) .glassCaption:hover {- background: linear-gradient(180deg, #fbcfe8 0%, #f472b6 100%);- border-color: #ec4899;-}-:global(:root:not(.dark)) .glassCaption.selected {- background: linear-gradient(180deg, #f9a8d4 0%, #ec4899 100%);- border-color: #ec4899;- box-shadow: inset 0 0 0 1.5px #ec4899;-}--:global(:root:not(.dark)) .zoomEndCap {- background: rgba(0, 0, 0, 0.5);-}-:global(:root:not(.dark)) .zoomEndCap:hover {- background: rgba(0, 0, 0, 0.7);-}--.zoomEndCap:hover {- background: rgba(255, 255, 255, 1);-}-.glassGreen:hover .zoomEndCap,.glassRed:hover .zoomEndCap,.glassYellow:hover .zoomEndCap,diff --git a/src/components/video-editor/timeline/components/markers/KeyframeMarkers.tsx b/src/components/video-editor/timeline/components/markers/KeyframeMarkers.tsxindex e35ff512..275f4ecc 100644--- a/src/components/video-editor/timeline/components/markers/KeyframeMarkers.tsx+++ b/src/components/video-editor/timeline/components/markers/KeyframeMarkers.tsx@@ -12,7 +12,7 @@ interface KeyframeMarkersProps {setSelectedKeyframeId: (id: string | null) => void;onKeyframeMove: (id: string, newTime: number) => void;videoDurationMs: number;- timelineRef: React.RefObject<HTMLDivElement>;+ timelineRef: React.RefObject<HTMLDivElement | null>;}const KeyframeMarkers: React.FC<KeyframeMarkersProps> = ({diff --git a/src/components/video-editor/timeline/components/playhead/PlaybackCursor.tsx b/src/components/video-editor/timeline/components/playhead/PlaybackCursor.tsxindex 80f729e0..3b1d94aa 100644--- a/src/components/video-editor/timeline/components/playhead/PlaybackCursor.tsx+++ b/src/components/video-editor/timeline/components/playhead/PlaybackCursor.tsx@@ -7,7 +7,7 @@ interface PlaybackCursorProps {currentTimeMs: number;videoDurationMs: number;onSeek?: (time: number) => void;- timelineRef: RefObject<HTMLDivElement>;+ timelineRef: RefObject<HTMLDivElement | null>;keyframes?: { id: string; time: number }[];isLoading?: boolean;}@@ -87,7 +87,7 @@ export default function PlaybackCursor({}}><div- className="absolute top-0 bottom-0 w-[2px] bg-[#2563EB] shadow-[0_0_10px_rgba(37,99,235,0.5)] cursor-ew-resize pointer-events-auto hover:shadow-[0_0_15px_rgba(37,99,235,0.7)] transition-shadow"+ className="absolute top-0 bottom-0 w-[2px] bg-accent cursor-ew-resize pointer-events-auto"style={{ [sideProperty]: `${offset}px` }}onMouseDown={(e) => {e.stopPropagation();@@ -98,7 +98,7 @@ export default function PlaybackCursor({className="absolute -top-1 left-1/2 -translate-x-1/2 hover:scale-125 transition-transform"style={{ width: "16px", height: "16px" }}>- <div className="w-3 h-3 mx-auto mt-[2px] bg-[#2563EB] rotate-45 rounded-sm shadow-lg border border-foreground/20" />+ <div className="w-3 h-3 mx-auto mt-[2px] bg-accent rotate-45 rounded-sm" /></div><divclassName={cn(diff --git a/src/components/video-editor/timeline/components/toolbar/TimelineToolbar.tsx b/src/components/video-editor/timeline/components/toolbar/TimelineToolbar.tsxindex cec20aca..05fd7900 100644--- a/src/components/video-editor/timeline/components/toolbar/TimelineToolbar.tsx+++ b/src/components/video-editor/timeline/components/toolbar/TimelineToolbar.tsx@@ -1,3 +1,4 @@+import { Input } from "@/components/ui/input";import {Check,CaretDown as ChevronDown,@@ -10,12 +11,7 @@ import {} from "@phosphor-icons/react";import type { KeyboardEvent as ReactKeyboardEvent } from "react";import { Button } from "@/components/ui/button";-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuItem,- DropdownMenuTrigger,-} from "@/components/ui/dropdown-menu";+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";import {ASPECT_RATIOS,type AspectRatio,@@ -79,7 +75,7 @@ export default function TimelineToolbar({onClick={onAddZoom}variant="ghost"size="icon"- className="h-7 w-7 text-muted-foreground hover:text-[#2563EB] hover:bg-[#2563EB]/10 transition-all"+ className="h-7 w-7"title={addZoomLabel}aria-label={addZoomLabel}>@@ -89,7 +85,7 @@ export default function TimelineToolbar({onClick={onSuggestZooms}variant="ghost"size="icon"- className="h-7 w-7 text-muted-foreground hover:text-[#2563EB] hover:bg-[#2563EB]/10 transition-all"+ className="h-7 w-7"title={suggestZoomsLabel}aria-label={suggestZoomsLabel}>@@ -99,7 +95,7 @@ export default function TimelineToolbar({onClick={onAddAnnotation}variant="ghost"size="icon"- className="h-7 w-7 text-muted-foreground hover:text-[#B4A046] hover:bg-[#B4A046]/10 transition-all"+ className="h-7 w-7"title={addAnnotationLabel}aria-label={addAnnotationLabel}>@@ -109,7 +105,7 @@ export default function TimelineToolbar({onClick={onAddAudio}variant="ghost"size="icon"- className="h-7 w-7 text-muted-foreground hover:text-[#a855f7] hover:bg-[#a855f7]/10 transition-all"+ className="h-7 w-7"title={addAudioLabel}aria-label={addAudioLabel}>@@ -119,7 +115,7 @@ export default function TimelineToolbar({onClick={onSplitClip}variant="ghost"size="icon"- className="h-7 w-7 text-muted-foreground hover:text-foreground hover:bg-foreground/10 transition-all"+ className="h-7 w-7"title={splitClipLabel}aria-label={splitClipLabel}>@@ -127,23 +123,17 @@ export default function TimelineToolbar({</Button></div><div className="flex items-center gap-2">- <DropdownMenu>- <DropdownMenuTrigger asChild>- <Button- variant="ghost"- size="sm"- className="h-7 px-2 text-xs text-muted-foreground hover:text-foreground hover:bg-foreground/10 transition-all gap-1"- >+ <Popover>+ <PopoverTrigger asChild>+ <Button variant="ghost" size="sm" className="h-7 px-2 text-xs gap-1"><span className="font-medium">{getAspectRatioLabel(aspectRatio)}</span><ChevronDown className="w-3 h-3" /></Button>- </DropdownMenuTrigger>- <DropdownMenuContent- align="end"- className="bg-editor-surface-alt border-foreground/10"- >+ </PopoverTrigger>+ <PopoverContent align="end">{ASPECT_RATIOS.map((ratio) => (- <DropdownMenuItem+ <Button+ variant="ghost"key={ratio}onClick={() => onAspectRatioChange?.(ratio)}className="text-muted-foreground hover:text-foreground hover:bg-foreground/10 cursor-pointer flex items-center justify-between gap-3"@@ -152,12 +142,12 @@ export default function TimelineToolbar({{aspectRatio === ratio && (<Check className="w-3 h-3 text-[#2563EB]" />)}- </DropdownMenuItem>+ </Button>))}<div className="mx-1 my-1 h-px bg-foreground/10" /><div className="px-2 py-1.5 flex items-center gap-2 text-muted-foreground"><span className="text-sm">Custom</span>- <input+ <Inputtype="text"inputMode="numeric"value={customAspectWidth}@@ -165,11 +155,11 @@ export default function TimelineToolbar({onCustomAspectWidthChange(event.target.value.replace(/\D/g, ""))}onKeyDown={onCustomAspectRatioKeyDown}- className="w-12 h-7 rounded border border-foreground/10 bg-foreground/5 px-1.5 text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-[#2563EB]"+ className="w-12 h-7 px-1.5 text-sm"aria-label="Custom aspect width"/><span className="text-muted-foreground/70">:</span>- <input+ <Inputtype="text"inputMode="numeric"value={customAspectHeight}@@ -179,14 +169,14 @@ export default function TimelineToolbar({)}onKeyDown={onCustomAspectRatioKeyDown}- className="w-12 h-7 rounded border border-foreground/10 bg-foreground/5 px-1.5 text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-[#2563EB]"+ className="w-12 h-7 px-1.5 text-sm"aria-label="Custom aspect height"/><Buttonvariant="ghost"size="sm"onClick={onApplyCustomAspectRatio}- className="h-7 px-2 text-xs text-muted-foreground hover:text-foreground hover:bg-foreground/10"+ className="h-7 px-2 text-xs">Set</Button>@@ -194,15 +184,15 @@ export default function TimelineToolbar({<Check className="w-3 h-3 text-[#2563EB] ml-auto" />)}</div>- </DropdownMenuContent>- </DropdownMenu>+ </PopoverContent>+ </Popover><div className="w-[1px] h-4 bg-foreground/10" /><Buttonvariant="ghost"size="sm"onClick={onOpenCropEditor}disabled={!onOpenCropEditor}- className="h-7 px-2 text-xs text-muted-foreground hover:text-foreground hover:bg-foreground/10 transition-all gap-1.5"+ className="h-7 px-2 text-xs gap-1.5"><Crop className="w-3.5 h-3.5" /><span className="font-medium">{cropLabel}</span>diff --git a/src/components/video-editor/timeline/components/waveform/AudioWaveform.tsx b/src/components/video-editor/timeline/components/waveform/AudioWaveform.tsxindex 2a5300f1..d366ac20 100644--- a/src/components/video-editor/timeline/components/waveform/AudioWaveform.tsx+++ b/src/components/video-editor/timeline/components/waveform/AudioWaveform.tsx@@ -1,3 +1,4 @@+import { useTheme } from "@/contexts/ThemeContext";import { useTimelineContext } from "dnd-timeline";import { memo, useCallback, useEffect, useRef, useState } from "react";import type { AudioPeaksData } from "../../core/timelineTypes";@@ -25,6 +26,7 @@ function AudioWaveformComponent({className,}: AudioWaveformProps) {const canvasRef = useRef<HTMLCanvasElement>(null);+ const { theme } = useTheme();const { range } = useTimelineContext();const [resizeKey, setResizeKey] = useState(0);const lastDrawAtRef = useRef(0);@@ -108,13 +110,23 @@ function AudioWaveformComponent({ctx.lineTo(px, midY + barHeight);}- ctx.strokeStyle = "rgba(255, 255, 255, 0.55)";+ ctx.strokeStyle = theme === "dark" ? "rgba(255, 255, 255, 0.65)" : "rgba(0, 0, 0, 0.6)";ctx.lineWidth = dpr;ctx.stroke();};rafId = requestAnimationFrame(draw);return () => cancelAnimationFrame(rafId);- }, [gain, normalize, peaks, range.start, range.end, resizeKey, segmentStartMs, segmentEndMs]);+ }, [+ gain,+ normalize,+ peaks,+ range.start,+ range.end,+ resizeKey,+ segmentStartMs,+ segmentEndMs,+ theme,+ ]);return (<canvasdiff --git a/src/components/video-editor/timeline/hooks/useTimelineEditorRuntime.ts b/src/components/video-editor/timeline/hooks/useTimelineEditorRuntime.tsindex 9f7092db..9bcdbce6 100644--- a/src/components/video-editor/timeline/hooks/useTimelineEditorRuntime.ts+++ b/src/components/video-editor/timeline/hooks/useTimelineEditorRuntime.ts@@ -69,7 +69,7 @@ interface UseTimelineEditorRuntimeParams {onSelectCaption?: (id: string | null) => void;isMac: boolean;keyShortcuts: TimelineShortcutBindings;- isTimelineFocusedRef: RefObject<boolean>;+ isTimelineFocusedRef: RefObject<boolean | null>;}export function useTimelineEditorRuntime({diff --git a/src/components/video-editor/timeline/hooks/useTimelineKeyboardShortcuts.ts b/src/components/video-editor/timeline/hooks/useTimelineKeyboardShortcuts.tsindex 4669d6b5..b6786dba 100644--- a/src/components/video-editor/timeline/hooks/useTimelineKeyboardShortcuts.ts+++ b/src/components/video-editor/timeline/hooks/useTimelineKeyboardShortcuts.ts@@ -6,7 +6,7 @@ import { resolveDeleteSelectionTarget } from "./utils/timelineSelectionUtils";interface UseTimelineKeyboardShortcutsParams {isMac: boolean;keyShortcuts: TimelineShortcutBindings;- isTimelineFocusedRef: RefObject<boolean>;+ isTimelineFocusedRef: RefObject<boolean | null>;hasAnyZoomBlocks: boolean;activateSelectAllZooms: () => void;annotationCount: number;diff --git a/src/components/video-editor/timeline/hooks/useTimelineRange.ts b/src/components/video-editor/timeline/hooks/useTimelineRange.tsindex c72b2fd9..0cc507b5 100644--- a/src/components/video-editor/timeline/hooks/useTimelineRange.ts+++ b/src/components/video-editor/timeline/hooks/useTimelineRange.ts@@ -4,7 +4,7 @@ import { createInitialRange, normalizeWheelDeltaToPixels } from "../core/time";interface UseTimelineRangeParams {totalMs: number;- timelineContainerRef: RefObject<HTMLDivElement>;+ timelineContainerRef: RefObject<HTMLDivElement | null>;}export interface TimelineWheelPanDeltaInput {diff --git a/src/components/video-editor/timeline/hooks/utils/timelineNotifications.ts b/src/components/video-editor/timeline/hooks/utils/timelineNotifications.tsindex 7843b1d5..51dad521 100644--- a/src/components/video-editor/timeline/hooks/utils/timelineNotifications.ts+++ b/src/components/video-editor/timeline/hooks/utils/timelineNotifications.ts@@ -1,4 +1,4 @@-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";export interface TimelineNotifications {error: (title: string, description?: string) => void;diff --git a/src/hooks/useScreenRecorder.ts b/src/hooks/useScreenRecorder.tsindex 45965241..0281cee7 100644--- a/src/hooks/useScreenRecorder.ts+++ b/src/hooks/useScreenRecorder.ts@@ -1,6 +1,6 @@import { fixWebmDuration } from "@fix-webm-duration/fix";import { useCallback, useEffect, useRef, useState } from "react";-import { toast } from "sonner";+import { toast } from "@/components/ui/toast";import { getEffectiveRecordingDurationMs } from "@/lib/mediaTiming";import {getVideoExtensionForMimeType,diff --git a/src/index.css b/src/index.cssindex afbb98aa..74155a8b 100644--- a/src/index.css+++ b/src/index.css@@ -1,19 +1,48 @@-@tailwind base;-@tailwind components;-@tailwind utilities;+@import "tailwindcss";+@import "@heroui/styles";+@plugin "tailwindcss-animate";+@custom-variant dark (&:where(.dark, .dark *));+@source "../index.html";++/* Layout aliases only. All component colors and styling come from HeroUI's default theme. */+@theme inline {+ --color-primary: var(--accent);+ --color-primary-foreground: var(--accent-foreground);+ --color-secondary: var(--default);+ --color-secondary-foreground: var(--default-foreground);+ --color-muted-foreground: var(--muted);+ --color-card: var(--surface);+ --color-card-foreground: var(--surface-foreground);+ --color-popover: var(--overlay);+ --color-popover-foreground: var(--overlay-foreground);+ --color-destructive: var(--danger);+ --color-destructive-foreground: var(--danger-foreground);+ --color-input: var(--field-border);+ --color-ring: var(--focus);+ --color-editor-bg: var(--background);+ --color-editor-header: var(--surface);+ --color-editor-panel: var(--surface);+ --color-editor-surface: var(--surface);+ --color-editor-surface-alt: var(--surface-secondary);+ --color-editor-dialog: var(--overlay);+ --color-editor-dialog-alt: var(--surface-secondary);+ --color-editor-timeline: var(--background);+ --color-editor-row: var(--surface);+ --color-editor-subrow: var(--surface-secondary);+}@layer base {- /* Disable Electron/Chromium focus highlight (yellow/orange ring) */- *:focus:not(:focus-visible) {- outline: none !important;- }-- *:focus-visible {- outline: 2px solid rgb(var(--brand-accent-rgb));- outline-offset: 2px;- -webkit-tap-highlight-color: transparent;+ :root {+ --app-font-sans:+ ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;+ --brand-accent: var(--accent);+ --brand-accent-rgb: 0, 111, 238;+ --primary: var(--accent);+ --primary-foreground: var(--accent-foreground);+ --muted-foreground: var(--muted);+ --destructive: var(--danger);+ --input: var(--field-border);}-html,body,#root {@@ -21,133 +50,32 @@height: 100%;margin: 0;}-+ body {+ background: var(--background);+ color: var(--foreground);+ font-family: var(--app-font-sans);+ user-select: none;+ }html.hud-overlay-window,body.hud-overlay-window,#root.hud-overlay-window {overflow: hidden;}-- :root {- --app-font-sans: "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;- --brand-accent: #2563eb;- --brand-accent-rgb: 37, 99, 235;- --background: 0 0% 100%;- --foreground: 20 14.3% 4.1%;- --card: 0 0% 100%;- --card-foreground: 20 14.3% 4.1%;- --popover: 0 0% 100%;- --popover-foreground: 20 14.3% 4.1%;- --primary: 221 83% 53%;- --primary-foreground: 210 40% 98%;- --secondary: 60 4.8% 95.9%;- --secondary-foreground: 24 9.8% 10%;- --muted: 60 4.8% 95.9%;- --muted-foreground: 25 5.3% 44.7%;- --accent: 214 100% 97%;- --accent-foreground: 221 83% 40%;- --destructive: 0 84.2% 60.2%;- --destructive-foreground: 60 9.1% 97.8%;- --border: 20 5.9% 90%;- --input: 20 5.9% 90%;- --ring: 221 83% 53%;- --chart-1: 12 76% 61%;- --chart-2: 173 58% 39%;- --chart-3: 197 37% 24%;- --chart-4: 43 74% 66%;- --chart-5: 27 87% 67%;- --radius: 0.5rem;-- /* Editor surface colors — light mode */- --editor-bg: 0 0% 100%;- --editor-header: 0 0% 97%;- --editor-panel: 0 0% 98%;- --editor-surface: 0 0% 97%;- --editor-surface-alt: 0 0% 95%;- --editor-dialog: 0 0% 100%;- --editor-dialog-alt: 0 0% 98%;- --editor-timeline: 220 13% 91%;- --editor-row: 220 13% 88%;- --editor-subrow: 220 13% 85%;-- /* Slider track colors — light mode */- --slider-track: 0 0% 0% / 0.12;- --slider-thumb: 0 0% 10%;- --slider-thumb-shadow: 0 0% 0% / 0.22;- --slider-glow: 0 0% 0% / 0.35;- }- .dark {- --background: 20 14.3% 4.1%;- --foreground: 60 9.1% 97.8%;- --card: 20 14.3% 4.1%;- --card-foreground: 60 9.1% 97.8%;- --popover: 20 14.3% 4.1%;- --popover-foreground: 60 9.1% 97.8%;- --primary: 221 83% 53%;- --primary-foreground: 210 40% 98%;- --secondary: 12 6.5% 15.1%;- --secondary-foreground: 60 9.1% 97.8%;- --muted: 12 6.5% 15.1%;- --muted-foreground: 24 5.4% 63.9%;- --accent: 217 33% 17%;- --accent-foreground: 210 40% 98%;- --destructive: 0 62.8% 30.6%;- --destructive-foreground: 60 9.1% 97.8%;- --border: 12 6.5% 15.1%;- --input: 12 6.5% 15.1%;- --ring: 221 83% 53%;- --chart-1: 220 70% 50%;- --chart-2: 160 60% 45%;- --chart-3: 30 80% 55%;- --chart-4: 280 65% 60%;- --chart-5: 340 75% 55%;-- /* Editor surface colors — dark mode */- --editor-bg: 240 6% 7%;- --editor-header: 240 5% 8.5%;- --editor-panel: 240 5% 9%;- --editor-surface: 240 4% 10%;- --editor-surface-alt: 240 5% 11%;- --editor-dialog: 240 10% 3%;- --editor-dialog-alt: 237 9% 5%;- --editor-timeline: 240 6% 7%;- --editor-row: 240 4% 10%;- --editor-subrow: 240 7% 15%;-- /* Slider track colors — dark mode */- --slider-track: 0 0% 100% / 0.12;- --slider-thumb: 0 0% 100%;- --slider-thumb-shadow: 0 0% 100% / 0.32;- --slider-glow: 0 0% 100% / 0.5;- }-}--@layer base {- * {- @apply border-border;- }- body {- @apply bg-background text-foreground;-- -webkit-user-select: none;- user-select: none;- font-family: var(--app-font-sans);+ input,+ textarea {+ user-select: text;}-button,input,textarea,- select {- font: inherit;- }-- body .font-mono,- body kbd {- font-family: var(--app-font-sans);+ select,+ [role="button"],+ [role="slider"],+ [role="switch"] {+ -webkit-app-region: no-drag;}}-/* Smooth timeline cursor animations */@layer utilities {.timeline-cursor-smooth {will-change: transform;@@ -155,116 +83,8 @@left 33ms linear,right 33ms linear;}-- .indeterminate-progress {- position: relative;- overflow: hidden;- isolation: isolate;- }-- .indeterminate-progress::before {- content: "";- position: absolute;- inset: 0;- width: 38%;- min-width: 3.5rem;- border-radius: inherit;- background: linear-gradient(- 90deg,- rgba(37, 99, 235, 0) 0%,- rgba(37, 99, 235, 0.35) 18%,- rgba(96, 165, 250, 0.92) 52%,- rgba(37, 99, 235, 0.3) 82%,- rgba(37, 99, 235, 0) 100%- );- animation: indeterminate-progress 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;- }-- /* Hidden scrollbar - still scrollable but invisible */.custom-scrollbar {- scrollbar-width: none; /* Firefox */- -ms-overflow-style: none; /* IE/Edge */- }-- .custom-scrollbar::-webkit-scrollbar {- display: none; /* Chrome, Safari, Opera */- }-- /* Smooth playback scrubber */- input[type="range"] {- -webkit-appearance: none;- appearance: none;- }-- input[type="range"]::-webkit-slider-runnable-track {- border-radius: 100px;- height: 4px;- background: hsl(var(--slider-track));- }-- input[type="range"]::-moz-range-track {- border-radius: 100px;- height: 4px;- background: hsl(var(--slider-track));- }-- input[type="range"]::-webkit-slider-thumb {- -webkit-appearance: none;- appearance: none;- width: 16px;- height: 16px;- border-radius: 50%;- background: hsl(var(--slider-thumb));- cursor: pointer;- box-shadow: 0 2px 8px hsl(var(--slider-thumb-shadow));- border: 2px solid hsl(var(--slider-thumb));- transition: all 0.08s ease-out;- }-- input[type="range"]::-webkit-slider-thumb:hover {- background: hsl(var(--slider-thumb));- transform: scale(1.15);- box-shadow: 0 3px 10px hsl(var(--slider-glow));- border-color: var(--brand-accent);- }-- input[type="range"]::-webkit-slider-thumb:active {- transform: scale(1.25);- }-- input[type="range"]::-moz-range-thumb {- width: 16px;- height: 16px;- border-radius: 50%;- background: hsl(var(--slider-thumb));- cursor: pointer;- border: 2px solid hsl(var(--slider-thumb));- box-shadow: 0 2px 8px hsl(var(--slider-thumb-shadow));- transition: all 0.08s ease-out;- }-- input[type="range"]::-moz-range-thumb:hover {- background: hsl(var(--slider-thumb));- transform: scale(1.15);- box-shadow: 0 3px 10px hsl(var(--slider-glow));- border-color: var(--brand-accent);- }-- input[type="range"]::-moz-range-thumb:active {- transform: scale(1.25);- }-}--@keyframes indeterminate-progress {- 0% {- transform: translateX(-150%);- }-- 60% {- transform: translateX(270%);- }-- 100% {- transform: translateX(270%);+ scrollbar-width: thin;+ scrollbar-color: var(--scrollbar-thumb) transparent;}}diff --git a/tailwind.config.cjs b/tailwind.config.cjsdeleted file mode 100644index 1a6e3280..00000000--- a/tailwind.config.cjs+++ /dev/null@@ -1,98 +0,0 @@-/** @type {import('tailwindcss').Config} */-module.exports = {- darkMode: ["class"],- content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],- theme: {- extend: {- keyframes: {- "accordion-down": {- from: { height: "0" },- to: { height: "var(--radix-accordion-content-height)" },- },- "accordion-up": {- from: { height: "var(--radix-accordion-content-height)" },- to: { height: "0" },- },- shimmer: {- "100%": {- transform: "translateX(100%)",- },- },- "text-shimmer": {- "0%, 100%": {- "background-size": "200% 200%",- "background-position": "left center",- },- "50%": {- "background-size": "200% 200%",- "background-position": "right center",- },- },- },- animation: {- "accordion-down": "accordion-down 0.2s ease-out",- "accordion-up": "accordion-up 0.2s ease-out",- shimmer: "shimmer 2s infinite",- "text-shimmer": "text-shimmer 2.5s ease-out infinite",- },- borderRadius: {- lg: "var(--radius)",- md: "calc(var(--radius) - 2px)",- sm: "calc(var(--radius) - 4px)",- },- colors: {- background: "hsl(var(--background))",- foreground: "hsl(var(--foreground))",- card: {- DEFAULT: "hsl(var(--card))",- foreground: "hsl(var(--card-foreground))",- },- popover: {- DEFAULT: "hsl(var(--popover))",- foreground: "hsl(var(--popover-foreground))",- },- primary: {- DEFAULT: "hsl(var(--primary))",- foreground: "hsl(var(--primary-foreground))",- },- secondary: {- DEFAULT: "hsl(var(--secondary))",- foreground: "hsl(var(--secondary-foreground))",- },- muted: {- DEFAULT: "hsl(var(--muted))",- foreground: "hsl(var(--muted-foreground))",- },- accent: {- DEFAULT: "hsl(var(--accent))",- foreground: "hsl(var(--accent-foreground))",- },- destructive: {- DEFAULT: "hsl(var(--destructive))",- foreground: "hsl(var(--destructive-foreground))",- },- border: "hsl(var(--border))",- input: "hsl(var(--input))",- ring: "hsl(var(--ring))",- chart: {- 1: "hsl(var(--chart-1))",- 2: "hsl(var(--chart-2))",- 3: "hsl(var(--chart-3))",- 4: "hsl(var(--chart-4))",- 5: "hsl(var(--chart-5))",- },- "editor-bg": "hsl(var(--editor-bg))",- "editor-header": "hsl(var(--editor-header))",- "editor-panel": "hsl(var(--editor-panel))",- "editor-surface": "hsl(var(--editor-surface))",- "editor-surface-alt": "hsl(var(--editor-surface-alt))",- "editor-dialog": "hsl(var(--editor-dialog))",- "editor-dialog-alt": "hsl(var(--editor-dialog-alt))",- "editor-timeline": "hsl(var(--editor-timeline))",- "editor-row": "hsl(var(--editor-row))",- "editor-subrow": "hsl(var(--editor-subrow))",- },- },- },- plugins: [require("tailwindcss-animate")],-};diff --git a/tests/ui/bridge.ts b/tests/ui/bridge.tsnew file mode 100644index 00000000..7d7bab4d--- /dev/null+++ b/tests/ui/bridge.ts@@ -0,0 +1,95 @@+import type { Page } from "@playwright/test";+export async function installDesktopBridge(page: Page) {+ await page.addInitScript(() => {+ const success = async () => ({ success: true });+ const subscribe = () => () => undefined;+ const source = {+ id: "screen:1:0",+ name: "Built-in Display",+ thumbnail: "",+ display_id: "1",+ };+ Object.assign(window, {+ electronAPI: {+ getAppSetting: () => null,+ setAppSetting: () => true,+ getExperimentalUpdatesEnabled: async () => false,+ getScreenRecordingPermissionStatus: async () => ({+ success: true,+ status: "granted",+ }),+ getAccessibilityPermissionStatus: async () => ({ success: true, trusted: true }),+ getPlatform: async () => "darwin",+ getAppVersion: async () => "1.4.0",+ getAnnouncements: async () => ({ success: true, announcements: [] }),+ loadCurrentProjectFile: async () => ({ success: false }),+ getCurrentRecordingSession: async () => ({ success: true, session: null }),+ getCurrentVideoPath: async () => ({+ success: true,+ path: `${location.origin}/tests/ui/fixtures/preview.mp4`,+ }),+ getCursorTelemetry: async () => ({ success: true, samples: [] }),+ getVideoAudioFallbackPaths: async () => ({ success: true, paths: [] }),+ getWhisperSmallModelStatus: async () => ({ success: true, exists: false }),+ listProjectFiles: async () => ({ success: true, projects: [], entries: [] }),+ setCurrentVideoPath: success,+ setCurrentRecordingSession: success,+ setHasUnsavedChanges: success,+ onMenuSaveProject: subscribe,+ onMenuSaveProjectAs: subscribe,+ onMenuLoadProject: subscribe,+ onRequestSaveBeforeClose: subscribe,+ onRecordingSessionChanged: subscribe,+ onWhisperSmallModelDownloadProgress: subscribe,+ getSelectedSource: async () => source,+ getSources: async () => [source],+ selectSource: success,+ onSelectedSourceChanged: subscribe,+ getRecordingsDirectory: async () => ({ success: true, path: "/recordings" }),+ getHudOverlayMousePassthroughSupported: async () => ({+ success: true,+ supported: true,+ }),+ getHudOverlayCaptureProtection: async () => ({+ success: true,+ enabled: false,+ supported: true,+ }),+ getRecordingAudioLabConfig: async () => ({ success: true, enabled: false }),+ getCountdownDelay: async () => ({ success: true, delay: 3 }),+ setCountdownDelay: success,+ getRecordingPreferences: async () => ({+ success: true,+ microphoneEnabled: false,+ webcamEnabled: false,+ systemAudioEnabled: true,+ }),+ setRecordingPreferences: success,+ onStopRecordingFromTray: subscribe,+ onRecordingStateChanged: subscribe,+ onRecordingInterrupted: subscribe,+ hudOverlayRendererReady: success,+ hudOverlaySetIgnoreMouse: success,+ hudOverlaySetWebcamPreviewVisible: success,+ getActiveCountdown: async () => ({ success: true, seconds: 3 }),+ onCountdownTick: subscribe,+ cancelCountdown: async () => {+ document.documentElement.dataset.countdownCancelled = "true";+ return { success: true };+ },+ getCurrentUpdateToastPayload: async () => ({+ version: "1.4.1",+ detail: "A new version of Recordly is available.",+ phase: "available",+ delayMs: 60000,+ isPreview: true,+ }),+ onUpdateToastStateChanged: subscribe,+ dismissUpdateToast: async () => {+ document.documentElement.dataset.updateDismissed = "true";+ return { success: true };+ },+ },+ });+ });+}diff --git a/tests/ui/controls.html b/tests/ui/controls.htmlnew file mode 100644index 00000000..cfca56a5--- /dev/null+++ b/tests/ui/controls.html@@ -0,0 +1 @@+<!doctype html><html><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Recordly UI integration</title></head><body><div id="root"></div><script type="module" src="./controls.tsx"></script></body></html>diff --git a/tests/ui/controls.spec.ts b/tests/ui/controls.spec.tsnew file mode 100644index 00000000..d9d0c25f--- /dev/null+++ b/tests/ui/controls.spec.ts@@ -0,0 +1,42 @@+import { expect, test } from "@playwright/test";+test("HeroUI controls preserve editing, focus, keyboard and overlay behavior", async ({ page }) => {+ const errors: string[] = [];+ page.on("pageerror", (error) => errors.push(error.message));+ await page.goto("/tests/ui/controls.html");+ await page.getByText("Capture audio", { exact: true }).click();+ await expect(page.getByRole("switch", { name: "Capture audio" })).toBeChecked();+ await page.getByRole("button", { name: "Export format" }).click();+ await page.getByRole("option", { name: "GIF" }).click();+ await expect(page.getByTestId("state")).toContainText('"selection":"gif"');+ await page.getByRole("slider", { name: "Padding" }).focus();+ await page.keyboard.press("ArrowRight");+ await expect(page.getByTestId("state")).toContainText('"value":21');+ await page.getByRole("radio", { name: "Square" }).click();+ await expect(page.getByTestId("state")).toContainText('"format":"square"');+ await page.getByRole("tab", { name: "Cursor", exact: true }).click();+ await expect(page.getByRole("tabpanel")).toHaveText("Cursor settings");+ await page.getByRole("button", { name: "Save project", exact: true }).click();+ await expect(page.getByRole("dialog", { name: "Project name" })).toBeVisible();+ await page.getByRole("textbox", { name: "Project name" }).fill("Demo");+ await page.keyboard.press("Escape");+ await expect(page.getByRole("button", { name: "Save project", exact: true })).toBeFocused();+ await page.getByRole("button", { name: "Export options", exact: true }).click();+ await page.getByRole("textbox", { name: "Filename" }).fill("demo.mp4");+ await page.getByRole("switch", { name: "Loop" }).focus();+ await page.keyboard.press("Space");+ await page.getByRole("button", { name: "Export video" }).click();+ await expect(page.getByTestId("state")).toContainText('"action":"export"');+ await page.keyboard.press("Escape");+ await page.getByRole("button", { name: "Actions", exact: true }).click();+ await page.getByRole("menuitem", { name: "Duplicate" }).click();+ await expect(page.getByTestId("state")).toContainText('"action":"duplicate"');+ await page.getByRole("button", { name: "Caption color" }).click();+ await expect(page.getByRole("dialog", { name: "Caption color" })).toBeVisible();+ await page.keyboard.press("Escape");+ await page.getByRole("button", { name: "Notify", exact: true }).click();+ await page.getByRole("button", { name: "Show file" }).click();+ await expect(page.getByTestId("state")).toContainText('"action":"reveal"');+ await page.getByRole("button", { name: "Toggle theme" }).click();+ await page.screenshot({ path: "test-results/controls.png", fullPage: true });+ expect(errors).toEqual([]);+});diff --git a/tests/ui/controls.tsx b/tests/ui/controls.tsxnew file mode 100644index 00000000..a7ee0383--- /dev/null+++ b/tests/ui/controls.tsx@@ -0,0 +1,168 @@+import React, { useState } from "react";+import { createRoot } from "react-dom/client";+import { Card, Label } from "@heroui/react";+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+} from "@/components/ui/dialog";+import {+ Select,+ SelectTrigger,+ SelectValue,+ SelectContent,+ SelectItem,+} from "@/components/ui/select";+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";+import {+ DropdownMenu,+ DropdownMenuTrigger,+ DropdownMenuContent,+ DropdownMenuItem,+} from "@/components/ui/dropdown-menu";+import { Switch } from "@/components/ui/switch";+import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";+import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";+import { SliderControl } from "@/components/video-editor/SliderControl";+import { ColorControl } from "@/components/ui/color-picker";+import { Toaster, toast } from "@/components/ui/toast";+import { I18nProvider } from "@/contexts/I18nContext";+import { ThemeProvider, useTheme } from "@/contexts/ThemeContext";+import "@/index.css";+function Controls() {+ const [enabled, setEnabled] = useState(false),+ [selection, setSelection] = useState("mp4"),+ [value, setValue] = useState(20),+ [format, setFormat] = useState("wide"),+ [action, setAction] = useState(""),+ [color, setColor] = useState("#2563eb");+ const { toggleTheme } = useTheme();+ return (+ <main className="mx-auto max-w-3xl p-8">+ <Card>+ <Card.Header>+ <Card.Title>Recordly controls</Card.Title>+ </Card.Header>+ <Card.Content className="gap-5">+ <Button onClick={toggleTheme}>Toggle theme</Button>+ <Switch+ aria-label="Capture audio"+ checked={enabled}+ onCheckedChange={setEnabled}+ >+ <Label>Capture audio</Label>+ </Switch>+ <Select+ aria-label="Export format"+ value={selection}+ onValueChange={setSelection}+ >+ <SelectTrigger>+ <SelectValue />+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="mp4">MP4</SelectItem>+ <SelectItem value="gif">GIF</SelectItem>+ </SelectContent>+ </Select>+ <SliderControl+ label="Padding"+ value={value}+ defaultValue={20}+ min={0}+ max={100}+ step={1}+ onChange={setValue}+ formatValue={(v) => `${v}px`}+ parseInput={Number}+ />+ <ToggleGroup+ type="single"+ value={format}+ onValueChange={setFormat}+ aria-label="Aspect ratio"+ >+ <ToggleGroupItem value="wide">Wide</ToggleGroupItem>+ <ToggleGroupItem value="square">Square</ToggleGroupItem>+ </ToggleGroup>+ <Tabs defaultValue="scene">+ <TabsList aria-label="Settings sections">+ <TabsTrigger value="scene">Scene</TabsTrigger>+ <TabsTrigger value="cursor">Cursor</TabsTrigger>+ </TabsList>+ <TabsContent value="scene">Scene settings</TabsContent>+ <TabsContent value="cursor">Cursor settings</TabsContent>+ </Tabs>+ <Dialog>+ <DialogTrigger asChild>+ <Button>Save project</Button>+ </DialogTrigger>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>Project name</DialogTitle>+ </DialogHeader>+ <Input aria-label="Project name" />+ <Button onClick={() => toast.success("Saved")}>Save</Button>+ </DialogContent>+ </Dialog>+ <Popover>+ <PopoverTrigger asChild>+ <Button>Export options</Button>+ </PopoverTrigger>+ <PopoverContent aria-label="Export options">+ <Input aria-label="Filename" />+ <Switch aria-label="Loop" />+ <Button onClick={() => setAction("export")}>Export video</Button>+ </PopoverContent>+ </Popover>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button>Actions</Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent>+ <DropdownMenuItem+ textValue="Duplicate"+ onSelect={() => setAction("duplicate")}+ >+ Duplicate+ </DropdownMenuItem>+ <DropdownMenuItem+ textValue="Delete"+ onSelect={() => setAction("delete")}+ >+ Delete+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ <ColorControl label="Caption color" value={color} onChange={setColor} />+ <Button+ onClick={() =>+ toast.success("Project saved", {+ action: { label: "Show file", onClick: () => setAction("reveal") },+ })+ }+ >+ Notify+ </Button>+ <output data-testid="state">+ {JSON.stringify({ enabled, selection, value, format, action, color })}+ </output>+ </Card.Content>+ </Card>+ <Toaster />+ </main>+ );+}+createRoot(document.getElementById("root")!).render(+ <React.StrictMode>+ <ThemeProvider>+ <I18nProvider>+ <Controls />+ </I18nProvider>+ </ThemeProvider>+ </React.StrictMode>,+);diff --git a/tests/ui/desktop-windows.spec.ts b/tests/ui/desktop-windows.spec.tsnew file mode 100644index 00000000..bc00dee8--- /dev/null+++ b/tests/ui/desktop-windows.spec.ts@@ -0,0 +1,42 @@+import { expect, test } from "@playwright/test";+import { installDesktopBridge } from "./bridge";++test("countdown can be cancelled from its HeroUI button", async ({ page }) => {+ await installDesktopBridge(page);+ await page.goto("/?windowType=countdown");+ await expect(page.getByText("3", { exact: true })).toBeVisible();+ await page.getByRole("button", { name: "Cancel", exact: true }).click();+ await expect(page.locator("html")).toHaveAttribute("data-countdown-cancelled", "true");+});++test("update window fits the desktop toast and can be dismissed", async ({ page }) => {+ await page.setViewportSize({ width: 480, height: 220 });+ await installDesktopBridge(page);+ await page.goto("/?windowType=update-toast");+ await expect(+ page.getByRole("heading", { name: "Update available", exact: true }),+ ).toBeVisible();+ await expect(page.getByRole("button", { name: "Update now", exact: true })).toBeInViewport();+ await page.screenshot({ path: "test-results/update-light.png", animations: "disabled" });+ await page.getByRole("button", { name: "Not now", exact: true }).click();+ await expect(page.locator("html")).toHaveAttribute("data-update-dismissed", "true");+});++test("editor inspector and playback controls fit a smaller desktop", async ({ page }) => {+ await page.setViewportSize({ width: 1280, height: 800 });+ await installDesktopBridge(page);+ await page.goto("/?windowType=editor");+ await expect(page.getByRole("slider", { name: "Blur", exact: true })).toBeVisible();+ await expect(page.getByRole("button", { name: "Export", exact: true })).toBeInViewport();+ await expect(page.getByRole("button", { name: "Play", exact: true })).toBeInViewport();+ await page.getByRole("radio", { name: "Settings", exact: true }).click();+ await expect(+ page.getByRole("radiogroup", { name: "Motion Presets", exact: true }),+ ).toBeVisible();+ await page.getByText("Smooth", { exact: true }).click();+ await expect(page.getByRole("radio", { name: "Smooth", exact: true })).toBeChecked();+ await expect+ .poll(() => page.evaluate(() => document.documentElement.scrollWidth <= window.innerWidth))+ .toBe(true);+ await page.screenshot({ path: "test-results/editor-compact.png", animations: "disabled" });+});diff --git a/tests/ui/editor.spec.ts b/tests/ui/editor.spec.tsnew file mode 100644index 00000000..031e654a--- /dev/null+++ b/tests/ui/editor.spec.ts@@ -0,0 +1,135 @@+import { expect, test } from "@playwright/test";+import { installDesktopBridge } from "./bridge";+test("editor loads video, switches tools and edits export options", async ({ page }) => {+ const errors: string[] = [];+ page.on("pageerror", (e) => {+ errors.push(e.message);+ });+ await installDesktopBridge(page);+ await page.goto("/?windowType=editor");+ await expect(page.getByRole("navigation", { name: "Editor tools" })).toBeVisible();+ await expect(page.getByRole("slider", { name: "Blur", exact: true })).toBeVisible();+ await expect+ .poll(() =>+ page+ .locator("video")+ .evaluateAll((videos) =>+ videos.some((video) => (video as HTMLVideoElement).readyState >= 2),+ ),+ )+ .toBe(true);+ await page.screenshot({+ path: "test-results/editor-scene-light.png",+ fullPage: true,+ animations: "disabled",+ });+ const inspectorWidth = (await page.locator("aside").boundingBox())?.width;+ await page.getByRole("radio", { name: "Color", exact: true }).click();+ await expect(page.getByRole("button", { name: "Custom color", exact: true })).toBeVisible();+ await page.getByRole("button", { name: "Custom color", exact: true }).click();+ await expect(page.getByRole("dialog", { name: "Custom color", exact: true })).toBeVisible();+ await page.keyboard.press("Escape");+ await page.getByRole("radio", { name: "Cursor", exact: true }).click();+ await page.getByRole("radio", { name: "Webcam", exact: true }).click();+ await page.getByRole("radio", { name: "Captions", exact: true }).click();+ await page.getByRole("radio", { name: "Settings", exact: true }).click();+ await expect(page.getByText("Appearance", { exact: true })).toBeVisible();+ await page.getByRole("radio", { name: "Dark", exact: true }).click();+ await expect(page.locator("html")).toHaveClass(/dark/);+ await page.screenshot({+ path: "test-results/editor-dark.png",+ fullPage: true,+ animations: "disabled",+ });+ await page.getByRole("radio", { name: "Light", exact: true }).click();+ await expect(page.locator("html")).not.toHaveClass(/dark/);+ await page.getByRole("radio", { name: "Scene", exact: true }).click();+ await page.getByRole("button", { name: "Export", exact: true }).click();+ await expect(page.getByRole("radiogroup", { name: "Format", exact: true })).toBeVisible();+ await page.getByRole("radio", { name: "GIF", exact: true }).click();+ await expect(page.getByRole("switch", { name: "Loop", exact: false })).toBeVisible();+ await page.screenshot({+ path: "test-results/editor-export-light.png",+ fullPage: true,+ animations: "disabled",+ });+ await page.keyboard.press("Escape");+ await page.screenshot({+ path: "test-results/editor-light.png",+ fullPage: true,+ animations: "disabled",+ });+ await page.getByRole("button", { name: "Open projects", exact: true }).click();+ await expect(page.getByRole("dialog", { name: "Projects", exact: true })).toBeVisible();+ await page.keyboard.press("Escape");+ await page.getByRole("button", { name: "Crop Video", exact: true }).click();+ await expect(page.getByRole("dialog", { name: "Crop Video", exact: true })).toBeVisible();+ await page.getByRole("button", { name: "Done", exact: true }).click();+ await page.getByRole("button", { name: "16:9", exact: true }).click();+ await page.getByRole("menuitem", { name: "1:1", exact: true }).click();+ await expect(page.getByRole("button", { name: "1:1", exact: true })).toBeVisible();+ await page.getByRole("button", { name: "Open presets", exact: true }).click();+ await page+ .getByRole("textbox", { name: "Preset name", exact: true })+ .fill("HeroUI test preset");+ await page.getByRole("button", { name: "Save", exact: true }).click();+ await expect(+ page.getByRole("button", { name: "Delete preset HeroUI test preset", exact: true }),+ ).toBeVisible();+ await page.keyboard.press("Escape");+ await page.getByRole("button", { name: "Add Layer", exact: true }).click();+ await page.getByRole("menuitem", { name: "Annotation", exact: true }).click();+ await expect+ .poll(async () => (await page.locator("aside").boundingBox())?.width)+ .toBe(inspectorWidth);+ const bold = page.getByRole("button", { name: "Toggle bold", exact: false });+ await expect(bold).toHaveAttribute("aria-pressed", "true");+ await bold.click();+ await expect(bold).toHaveAttribute("aria-pressed", "false");+ await page.getByRole("button", { name: "Undo", exact: true }).click();+ await expect(bold).toHaveAttribute("aria-pressed", "true");+ await page.screenshot({+ path: "test-results/editor-annotation.png",+ fullPage: true,+ animations: "disabled",+ });+ expect(errors).toEqual([]);+});+test("recorder opens device and source popovers", async ({ page }) => {+ const errors: string[] = [];+ page.on("pageerror", (e) => {+ errors.push(e.message);+ });+ await installDesktopBridge(page);+ await page.goto("/?windowType=hud-overlay");+ await expect(page.getByRole("button", { name: "Record", exact: true })).toBeVisible();+ await page.getByRole("button", { name: "Countdown delay", exact: false }).click();+ await page.getByRole("button", { name: "5s", exact: true }).click();+ await expect(page.getByRole("dialog")).toHaveCount(0);+ await page.getByRole("button", { name: "Built-in Display", exact: true }).click();+ await expect(page.getByRole("dialog")).toBeVisible();+ await page.keyboard.press("Escape");+ await page.getByRole("button", { name: "More", exact: true }).click();+ await page.getByRole("button", { name: "Dark", exact: true }).click();+ await expect(page.locator("html")).toHaveClass(/dark/);+ await page.screenshot({+ path: "test-results/hud-dark.png",+ fullPage: true,+ animations: "disabled",+ });+ await page.getByRole("button", { name: "More", exact: true }).click();+ await page.getByRole("button", { name: "Light", exact: true }).click();+ await page.getByRole("button", { name: "More", exact: true }).click();+ await page+ .getByRole("dialog")+ .getByRole("button", { name: "Open project", exact: false })+ .click();+ await expect(page.getByText("No saved projects yet", { exact: true })).toBeVisible();+ await page.keyboard.press("Escape");+ await page.screenshot({+ path: "test-results/hud-light.png",+ fullPage: true,+ animations: "disabled",+ });+ expect(errors).toEqual([]);+});diff --git a/tests/ui/fixtures/preview.mp4 b/tests/ui/fixtures/preview.mp4new file mode 100644index 00000000..0a0a1558Binary files /dev/null and b/tests/ui/fixtures/preview.mp4 differdiff --git a/vite.config.ts b/vite.config.tsindex b9b67604..18e57e80 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -55,47 +55,54 @@ function electronMainCjsGuardPlugin(): Plugin {}// https://vitejs.dev/config/-export default defineConfig({+export default defineConfig(({ mode }) => ({plugins: [react(),- electron({- main: {- // Shortcut of `build.lib.entry`.- entry: "electron/main.ts",- vite: {- build: {- lib: {+ ...(mode === "ui" || process.env.RECORDLY_RENDERER_ONLY === "1"+ ? []+ : [+ electron({+ main: {+ // Shortcut of `build.lib.entry`.entry: "electron/main.ts",- formats: ["cjs"],- fileName: (_format, entryName) => `${entryName}.cjs`,- },- rollupOptions: {- external: ["ffmpeg-static", "uiohook-napi"],- output: {- format: "cjs",- inlineDynamicImports: true,- entryFileNames: "[name].cjs",- chunkFileNames: "[name]-[hash].cjs",+ vite: {+ build: {+ lib: {+ entry: "electron/main.ts",+ formats: ["cjs"],+ fileName: (_format, entryName) => `${entryName}.cjs`,+ },+ rollupOptions: {+ external: ["ffmpeg-static", "uiohook-napi"],+ output: {+ format: "cjs",+ inlineDynamicImports: true,+ entryFileNames: "[name].cjs",+ chunkFileNames: "[name]-[hash].cjs",+ },+ },+ },+ plugins: [+ electronMainCjsOutputPlugin(),+ electronMainCjsGuardPlugin(),+ ],},},- },- plugins: [electronMainCjsOutputPlugin(), electronMainCjsGuardPlugin()],- },- },- preload: {- // Shortcut of `build.rollupOptions.input`.- // Preload scripts may contain Web assets, so use the `build.rollupOptions.input` instead `build.lib.entry`.- input: path.join(__dirname, "electron/preload.ts"),- },- // Polyfill the Electron and Node.js API for the renderer process.- // If you want to use Node.js in the renderer process, enable `nodeIntegration` in the main process.- // See https://github.com/electron-vite/vite-plugin-electron-renderer- renderer:- process.env.NODE_ENV === "test"- ? // https://github.com/electron-vite/vite-plugin-electron-renderer/issues/78#issuecomment-2053600808- undefined- : {},- }),+ preload: {+ // Shortcut of `build.rollupOptions.input`.+ // Preload scripts may contain Web assets, so use the `build.rollupOptions.input` instead `build.lib.entry`.+ input: path.join(__dirname, "electron/preload.ts"),+ },+ // Polyfill the Electron and Node.js API for the renderer process.+ // If you want to use Node.js in the renderer process, enable `nodeIntegration` in the main process.+ // See https://github.com/electron-vite/vite-plugin-electron-renderer+ renderer:+ process.env.NODE_ENV === "test"+ ? // https://github.com/electron-vite/vite-plugin-electron-renderer/issues/78#issuecomment-2053600808+ undefined+ : {},+ }),+ ]),],resolve: {alias: {@@ -133,4 +140,4 @@ export default defineConfig({},chunkSizeWarningLimit: 1000,},-});+}));