Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: update shadcn, build registry

dev_wandry8d08bc46f17f
diff --git a/bun.lock b/bun.lock
index 3bdfbfd1..b6212f89 100644
--- a/bun.lock
+++ b/bun.lock
@@ -39,7 +39,7 @@
"recharts": "3.8.0",
"remotion": "4.0.473",
"server-only": "^0.0.1",
- "shadcn": "^4.1.2",
+ "shadcn": "^4.11.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
"three": "^0.167.1",
@@ -276,16 +276,6 @@
"@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw=="],
- "@inquirer/ansi": ["@inquirer/[email protected]", "", {}, "sha512-S8qNSZiYzFd0wAcyG5AXCvUHC5Sr7xpZ9wZ2py9XR88jUz8wooStVx5M6dRzczbBWjic9NP7+rY0Xi7qqK/aMQ=="],
-
- "@inquirer/confirm": ["@inquirer/[email protected]", "", { "dependencies": { "@inquirer/core": "^10.3.2", "@inquirer/type": "^3.0.10" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-KR8edRkIsUayMXV+o3Gv+q4jlhENF9nMYUZs9PA2HzrXeHI8M5uDag70U7RJn9yyiMZSbtF5/UexBtAVtZGSbQ=="],
-
- "@inquirer/core": ["@inquirer/[email protected]", "", { "dependencies": { "@inquirer/ansi": "^1.0.2", "@inquirer/figures": "^1.0.15", "@inquirer/type": "^3.0.10", "cli-width": "^4.1.0", "mute-stream": "^2.0.0", "signal-exit": "^4.1.0", "wrap-ansi": "^6.2.0", "yoctocolors-cjs": "^2.1.3" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-43RTuEbfP8MbKzedNqBrlhhNKVwoK//vUFNW3Q3vZ88BLcrs4kYpGg+B2mm5p2K/HfygoCxuKwJJiv8PbGmE0A=="],
-
- "@inquirer/figures": ["@inquirer/[email protected]", "", {}, "sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g=="],
-
- "@inquirer/type": ["@inquirer/[email protected]", "", { "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-BvziSRxfz5Ov8ch0z/n3oijRSEcEsHnhggm4xFZe93DHcUCTlutlq9Ox4SVENAfcRD22UQq7T/atg9Wr3k09eA=="],
-
"@jridgewell/gen-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
"@jridgewell/remapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="],
@@ -320,8 +310,6 @@
"@module-federation/webpack-bundler-runtime": ["@module-federation/[email protected]", "", { "dependencies": { "@module-federation/runtime": "0.22.0", "@module-federation/sdk": "0.22.0" } }, "sha512-aM8gCqXu+/4wBmJtVeMeeMN5guw3chf+2i6HajKtQv7SJfxV/f4IyNQJUeUQu9HfiAZHjqtMV5Lvq/Lvh8LdyA=="],
- "@mswjs/interceptors": ["@mswjs/[email protected]", "", { "dependencies": { "@open-draft/deferred-promise": "^2.2.0", "@open-draft/logger": "^0.3.0", "@open-draft/until": "^2.0.0", "is-node-process": "^1.2.0", "outvariant": "^1.4.3", "strict-event-emitter": "^0.5.1" } }, "sha512-cXu86tF4VQVfwz8W1SPbhoRyHJkti6mjH/XJIxp40jhO4j2k1m4KYrEykxqWPkFF3vrK4rgQppBh//AwyGSXPA=="],
-
"@napi-rs/wasm-runtime": ["@napi-rs/[email protected]", "", { "dependencies": { "@emnapi/core": "^1.5.0", "@emnapi/runtime": "^1.5.0", "@tybys/wasm-util": "^0.10.1" } }, "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw=="],
"@next/env": ["@next/[email protected]", "", {}, "sha512-LqSGz5+xGk9EL/iBDr2yo/CgNQV6cFsNhRR2xhSXYh7B/hb4nePCxlmDvGEKG30NMHDFf0raqSyOZiQrO7BkHQ=="],
@@ -354,12 +342,6 @@
"@nodelib/fs.walk": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg=="],
- "@open-draft/deferred-promise": ["@open-draft/[email protected]", "", {}, "sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA=="],
-
- "@open-draft/logger": ["@open-draft/[email protected]", "", { "dependencies": { "is-node-process": "^1.2.0", "outvariant": "^1.4.0" } }, "sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ=="],
-
- "@open-draft/until": ["@open-draft/[email protected]", "", {}, "sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg=="],
-
"@openpanel/nextjs": ["@openpanel/[email protected]", "", { "dependencies": { "@openpanel/web": "1.4.1" }, "peerDependencies": { "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-60vhKw29weFWmwntx/cSIYU1TcwNzRykeg8P70onr3jzeyMGsEd78d/wgF5Mp/NIxQDN0IT4LneS6hIDIyrTpw=="],
"@openpanel/sdk": ["@openpanel/[email protected]", "", {}, "sha512-mQ5xaBUGXnyRg3qYxwnbVaUYyW7w8u+munrWk/ClnqxEeR2j+FYPiA6noHbHMCFC2aZutYD5OoRzEvw3FBNFxw=="],
@@ -638,8 +620,6 @@
"@types/stats.js": ["@types/[email protected]", "", {}, "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA=="],
- "@types/statuses": ["@types/[email protected]", "", {}, "sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA=="],
-
"@types/three": ["@types/[email protected]", "", { "dependencies": { "@dimforge/rapier3d-compat": "~0.12.0", "@tweenjs/tween.js": "~23.1.3", "@types/stats.js": "*", "@types/webxr": ">=0.5.17", "@webgpu/types": "*", "fflate": "~0.8.2", "meshoptimizer": "~1.0.1" } }, "sha512-f2Pu5Hrepfgavttdye3PsH5RWyY/AvdZQwIVhrc4uNtvF7nOWJacQKcoVJn0S4f0yYbmAE6AR+ve7xDcuYtMGw=="],
"@types/unist": ["@types/[email protected]", "", {}, "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="],
@@ -708,8 +688,6 @@
"ansi-regex": ["[email protected]", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="],
- "ansi-styles": ["[email protected]", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
-
"argparse": ["[email protected]", "", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="],
"aria-hidden": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" } }, "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA=="],
@@ -774,12 +752,8 @@
"cli-spinners": ["[email protected]", "", {}, "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg=="],
- "cli-width": ["[email protected]", "", {}, "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ=="],
-
"client-only": ["[email protected]", "", {}, "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="],
- "cliui": ["[email protected]", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ=="],
-
"clsx": ["[email protected]", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="],
"cmdk": ["[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "^1.1.1", "@radix-ui/react-dialog": "^1.1.6", "@radix-ui/react-id": "^1.1.0", "@radix-ui/react-primitive": "^2.0.2" }, "peerDependencies": { "react": "^18 || ^19 || ^19.0.0-rc", "react-dom": "^18 || ^19 || ^19.0.0-rc" } }, "sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg=="],
@@ -788,10 +762,6 @@
"collapse-white-space": ["[email protected]", "", {}, "sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw=="],
- "color-convert": ["[email protected]", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],
-
- "color-name": ["[email protected]", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],
-
"comma-separated-tokens": ["[email protected]", "", {}, "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg=="],
"commander": ["[email protected]", "", {}, "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw=="],
@@ -804,7 +774,7 @@
"convert-source-map": ["[email protected]", "", {}, "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="],
- "cookie": ["[email protected]", "", {}, "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ=="],
+ "cookie": ["[email protected]", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
"cookie-signature": ["[email protected]", "", {}, "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg=="],
@@ -1016,8 +986,6 @@
"gensync": ["[email protected]", "", {}, "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg=="],
- "get-caller-file": ["[email protected]", "", {}, "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="],
-
"get-east-asian-width": ["[email protected]", "", {}, "sha512-CQ+bEO+Tva/qlmw24dCejulK5pMzVnUOFOijVogd3KQs07HnRIgp8TGipvCCRT06xeYEbpbgwaCxglFyiuIcmA=="],
"get-intrinsic": ["[email protected]", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
@@ -1040,8 +1008,6 @@
"graceful-fs": ["[email protected]", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="],
- "graphql": ["[email protected]", "", {}, "sha512-5bJ+nf/UCpAjHM8i06fl7eLyVC9iuNAjm9qzkiu2ZGhM0VscSvS6WDPfAwkdkBuoXGM9FJSbKl6wylMwP9Ktig=="],
-
"has-flag": ["[email protected]", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="],
"has-symbols": ["[email protected]", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],
@@ -1068,8 +1034,6 @@
"hastscript": ["[email protected]", "", { "dependencies": { "@types/hast": "^3.0.0", "comma-separated-tokens": "^2.0.0", "hast-util-parse-selector": "^4.0.0", "property-information": "^7.0.0", "space-separated-tokens": "^2.0.0" } }, "sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w=="],
- "headers-polyfill": ["[email protected]", "", {}, "sha512-IScLbePpkvO846sIwOtOTDjutRMWdXdJmXdMvk6gCBHxFO8d+QKOQedyZSxFTTFYRSmlgSTDtXqqq4pcenBXLQ=="],
-
"hono": ["[email protected]", "", {}, "sha512-p1JfQMKaceuCbpJKAPKVqyqviZdS0eUxH9v82oWo1kb9xjQ5wA6iP3FNVAPDFlz5/p7d45lO+BpSk1tuSZMF4Q=="],
"html-entities": ["[email protected]", "", {}, "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ=="],
@@ -1120,8 +1084,6 @@
"is-extglob": ["[email protected]", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="],
- "is-fullwidth-code-point": ["[email protected]", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="],
-
"is-glob": ["[email protected]", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="],
"is-hexadecimal": ["[email protected]", "", {}, "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg=="],
@@ -1132,8 +1094,6 @@
"is-interactive": ["[email protected]", "", {}, "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ=="],
- "is-node-process": ["[email protected]", "", {}, "sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw=="],
-
"is-number": ["[email protected]", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="],
"is-obj": ["[email protected]", "", {}, "sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ=="],
@@ -1368,10 +1328,6 @@
"ms": ["[email protected]", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
- "msw": ["[email protected]", "", { "dependencies": { "@inquirer/confirm": "^5.0.0", "@mswjs/interceptors": "^0.41.2", "@open-draft/deferred-promise": "^2.2.0", "@types/statuses": "^2.0.6", "cookie": "^1.0.2", "graphql": "^16.12.0", "headers-polyfill": "^4.0.2", "is-node-process": "^1.2.0", "outvariant": "^1.4.3", "path-to-regexp": "^6.3.0", "picocolors": "^1.1.1", "rettime": "^0.10.1", "statuses": "^2.0.2", "strict-event-emitter": "^0.5.1", "tough-cookie": "^6.0.0", "type-fest": "^5.2.0", "until-async": "^3.0.2", "yargs": "^17.7.2" }, "peerDependencies": { "typescript": ">= 4.8.x" }, "optionalPeers": ["typescript"], "bin": { "msw": "cli/index.js" } }, "sha512-5PPWf7I7DBHb4ZUZ0NUI+/VBDk/eiNYDNJZGt/jZ7+rbCSIK5hRcNTGqWMnn0vT6NrHiQlb0nfpenVGz1vrqpg=="],
-
- "mute-stream": ["[email protected]", "", {}, "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA=="],
-
"n8ao": ["[email protected]", "", { "peerDependencies": { "postprocessing": ">=6.30.0", "three": ">=0.137" } }, "sha512-hhI1pC+BfOZBV1KMwynBrVlIm8wqLxj/abAWhF2nZ0qQKyzTSQa1QtLVS2veRiuoBQXojxobcnp0oe+PUoxf/w=="],
"nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],
@@ -1418,8 +1374,6 @@
"ora": ["[email protected]", "", { "dependencies": { "chalk": "^5.3.0", "cli-cursor": "^5.0.0", "cli-spinners": "^2.9.2", "is-interactive": "^2.0.0", "is-unicode-supported": "^2.0.0", "log-symbols": "^6.0.0", "stdin-discarder": "^0.2.2", "string-width": "^7.2.0", "strip-ansi": "^7.1.0" } }, "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw=="],
- "outvariant": ["[email protected]", "", {}, "sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA=="],
-
"p-limit": ["[email protected]", "", { "dependencies": { "yocto-queue": "^1.1.1" } }, "sha512-kuUqqHNUqoIWp/c467RI4X6mmyuojY5jGutNU0wVTmEOOfcuwLqyMVoAi9MKi2Ak+5i9+nhmrK4ufZE8069kHA=="],
"parent-module": ["[email protected]", "", { "dependencies": { "callsites": "^3.0.0" } }, "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g=="],
@@ -1548,8 +1502,6 @@
"remotion": ["[email protected]", "", { "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-Li2u4cVxlbxWgxQPn5oBpUlmNKYFpLUmpE9OHMP7QurvOMfvVK1tcC7utxVEwYFZf18tXwqIPBwmuFvdzMu+YA=="],
- "require-directory": ["[email protected]", "", {}, "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="],
-
"require-from-string": ["[email protected]", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="],
"reselect": ["[email protected]", "", {}, "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w=="],
@@ -1558,8 +1510,6 @@
"restore-cursor": ["[email protected]", "", { "dependencies": { "onetime": "^7.0.0", "signal-exit": "^4.1.0" } }, "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA=="],
- "rettime": ["[email protected]", "", {}, "sha512-uyDrIlUEH37cinabq0AX4QbgV4HbFZ/gqoiunWQ1UqBtRvTTytwhNYjE++pO/MjPTZL5KQCf2bEoJ/BJNVQ5Kw=="],
-
"reusify": ["[email protected]", "", {}, "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw=="],
"router": ["[email protected]", "", { "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", "is-promise": "^4.0.0", "parseurl": "^1.3.3", "path-to-regexp": "^8.0.0" } }, "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ=="],
@@ -1592,7 +1542,7 @@
"setprototypeof": ["[email protected]", "", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="],
- "shadcn": ["[email protected]", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/parser": "^7.28.0", "@babel/plugin-transform-typescript": "^7.28.0", "@babel/preset-typescript": "^7.27.1", "@dotenvx/dotenvx": "^1.48.4", "@modelcontextprotocol/sdk": "^1.26.0", "@types/validate-npm-package-name": "^4.0.2", "browserslist": "^4.26.2", "commander": "^14.0.0", "cosmiconfig": "^9.0.0", "dedent": "^1.6.0", "deepmerge": "^4.3.1", "diff": "^8.0.2", "execa": "^9.6.0", "fast-glob": "^3.3.3", "fs-extra": "^11.3.1", "fuzzysort": "^3.1.0", "https-proxy-agent": "^7.0.6", "kleur": "^4.1.5", "msw": "^2.10.4", "node-fetch": "^3.3.2", "open": "^11.0.0", "ora": "^8.2.0", "postcss": "^8.5.6", "postcss-selector-parser": "^7.1.0", "prompts": "^2.4.2", "recast": "^0.23.11", "stringify-object": "^5.0.0", "tailwind-merge": "^3.0.1", "ts-morph": "^26.0.0", "tsconfig-paths": "^4.2.0", "validate-npm-package-name": "^7.0.1", "zod": "^3.24.1", "zod-to-json-schema": "^3.24.6" }, "bin": { "shadcn": "dist/index.js" } }, "sha512-qNQcCavkbYsgBj+X09tF2bTcwRd8abR880bsFkDU2kMqceMCLAm5c+cLg7kWDhfh1H9g08knpQ5ZEf6y/co16g=="],
+ "shadcn": ["[email protected]", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/parser": "^7.28.0", "@babel/plugin-transform-typescript": "^7.28.0", "@babel/preset-typescript": "^7.27.1", "@dotenvx/dotenvx": "^1.48.4", "@modelcontextprotocol/sdk": "^1.26.0", "@types/validate-npm-package-name": "^4.0.2", "browserslist": "^4.26.2", "commander": "^14.0.0", "cosmiconfig": "^9.0.0", "dedent": "^1.6.0", "deepmerge": "^4.3.1", "diff": "^8.0.2", "execa": "^9.6.0", "fast-glob": "^3.3.3", "fs-extra": "^11.3.1", "fuzzysort": "^3.1.0", "https-proxy-agent": "^7.0.6", "kleur": "^4.1.5", "node-fetch": "^3.3.2", "open": "^11.0.0", "ora": "^8.2.0", "postcss": "^8.5.6", "postcss-selector-parser": "^7.1.0", "prompts": "^2.4.2", "recast": "^0.23.11", "stringify-object": "^5.0.0", "tailwind-merge": "^3.0.1", "ts-morph": "^26.0.0", "tsconfig-paths": "^4.2.0", "validate-npm-package-name": "^7.0.1", "zod": "^3.24.1", "zod-to-json-schema": "^3.24.6" }, "bin": { "shadcn": "dist/index.js" } }, "sha512-UV0cchFea9hO7poV1CuEP0wvmYjpAqcxCKdy23bndl2Du2ARtDs8A4xdzfhUjDBeOW1nNpJ6lXmsEpsply2SfQ=="],
"sharp": ["[email protected]", "", { "dependencies": { "@img/colour": "^1.0.0", "detect-libc": "^2.1.2", "semver": "^7.7.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.34.5", "@img/sharp-darwin-x64": "0.34.5", "@img/sharp-libvips-darwin-arm64": "1.2.4", "@img/sharp-libvips-darwin-x64": "1.2.4", "@img/sharp-libvips-linux-arm": "1.2.4", "@img/sharp-libvips-linux-arm64": "1.2.4", "@img/sharp-libvips-linux-ppc64": "1.2.4", "@img/sharp-libvips-linux-riscv64": "1.2.4", "@img/sharp-libvips-linux-s390x": "1.2.4", "@img/sharp-libvips-linux-x64": "1.2.4", "@img/sharp-libvips-linuxmusl-arm64": "1.2.4", "@img/sharp-libvips-linuxmusl-x64": "1.2.4", "@img/sharp-linux-arm": "0.34.5", "@img/sharp-linux-arm64": "0.34.5", "@img/sharp-linux-ppc64": "0.34.5", "@img/sharp-linux-riscv64": "0.34.5", "@img/sharp-linux-s390x": "0.34.5", "@img/sharp-linux-x64": "0.34.5", "@img/sharp-linuxmusl-arm64": "0.34.5", "@img/sharp-linuxmusl-x64": "0.34.5", "@img/sharp-wasm32": "0.34.5", "@img/sharp-win32-arm64": "0.34.5", "@img/sharp-win32-ia32": "0.34.5", "@img/sharp-win32-x64": "0.34.5" } }, "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg=="],
@@ -1630,8 +1580,6 @@
"stdin-discarder": ["[email protected]", "", {}, "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ=="],
- "strict-event-emitter": ["[email protected]", "", {}, "sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ=="],
-
"string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="],
"stringify-entities": ["[email protected]", "", { "dependencies": { "character-entities-html4": "^2.0.0", "character-entities-legacy": "^3.0.0" } }, "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg=="],
@@ -1658,8 +1606,6 @@
"tabbable": ["[email protected]", "", {}, "sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg=="],
- "tagged-tag": ["[email protected]", "", {}, "sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng=="],
-
"tailwind-merge": ["[email protected]", "", {}, "sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A=="],
"tailwindcss": ["[email protected]", "", {}, "sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q=="],
@@ -1678,16 +1624,10 @@
"tinyglobby": ["[email protected]", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="],
- "tldts": ["[email protected]", "", { "dependencies": { "tldts-core": "^7.0.28" }, "bin": { "tldts": "bin/cli.js" } }, "sha512-+Zg3vWhRUv8B1maGSTFdev9mjoo8Etn2Ayfs4cnjlD3CsGkxXX4QyW3j2WJ0wdjYcYmy7Lx2RDsZMhgCWafKIw=="],
-
- "tldts-core": ["[email protected]", "", {}, "sha512-7W5Efjhsc3chVdFhqtaU0KtK32J37Zcr9RKtID54nG+tIpcY79CQK/veYPODxtD/LJ4Lue66jvrQzIX2Z2/pUQ=="],
-
"to-regex-range": ["[email protected]", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="],
"toidentifier": ["[email protected]", "", {}, "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="],
- "tough-cookie": ["[email protected]", "", { "dependencies": { "tldts": "^7.0.5" } }, "sha512-LktZQb3IeoUWB9lqR5EWTHgW/VTITCXg4D21M+lvybRVdylLrRMnqaIONLVb5mav8vM19m44HIcGq4qASeu2Qw=="],
-
"tr46": ["[email protected]", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA=="],
"trim-lines": ["[email protected]", "", {}, "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg=="],
@@ -1702,8 +1642,6 @@
"tw-animate-css": ["[email protected]", "", {}, "sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ=="],
- "type-fest": ["[email protected]", "", { "dependencies": { "tagged-tag": "^1.0.0" } }, "sha512-PlBfpQwiUvGViBNX84Yxwjsdhd1TUlXr6zjX7eoirtCPIr08NAmxwa+fcYBTeRQxHo9YC9wwF3m9i700sHma8g=="],
-
"type-is": ["[email protected]", "", { "dependencies": { "content-type": "^1.0.5", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw=="],
"typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
@@ -1732,8 +1670,6 @@
"unpipe": ["[email protected]", "", {}, "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ=="],
- "until-async": ["[email protected]", "", {}, "sha512-IiSk4HlzAMqTUseHHe3VhIGyuFmN90zMTpD3Z3y8jeQbzLIq500MVM7Jq2vUAnTKAFPJrqwkzr6PoTcPhGcOiw=="],
-
"update-browserslist-db": ["[email protected]", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w=="],
"use-callback-ref": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg=="],
@@ -1774,30 +1710,20 @@
"which": ["[email protected]", "", { "dependencies": { "isexe": "^3.1.1" }, "bin": { "node-which": "bin/which.js" } }, "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg=="],
- "wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA=="],
-
"wrappy": ["[email protected]", "", {}, "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="],
"ws": ["[email protected]", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-It4dO0K5v//JtTXuPkfEOaI3uUN87iYPnqo/ZzqCoG3g8uhA66QUMs/SrM0YK7/NAu+r4LMh/9dq2A7k+rHs+w=="],
"wsl-utils": ["[email protected]", "", { "dependencies": { "is-wsl": "^3.1.0", "powershell-utils": "^0.1.0" } }, "sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg=="],
- "y18n": ["[email protected]", "", {}, "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="],
-
"yallist": ["[email protected]", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
- "yargs": ["[email protected]", "", { "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" } }, "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w=="],
-
- "yargs-parser": ["[email protected]", "", {}, "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw=="],
-
"yocto-queue": ["[email protected]", "", {}, "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ=="],
"yocto-spinner": ["[email protected]", "", { "dependencies": { "yoctocolors": "^2.1.1" } }, "sha512-/BY0AUXnS7IKO354uLLA2eRcWiqDifEbd6unXCsOxkFDAkhgUL3PH9X2bFoaU0YchnDXsF+iKleeTLJGckbXfA=="],
"yoctocolors": ["[email protected]", "", {}, "sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug=="],
- "yoctocolors-cjs": ["[email protected]", "", {}, "sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw=="],
-
"zod": ["[email protected]", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="],
"zod-to-json-schema": ["[email protected]", "", { "peerDependencies": { "zod": "^3.25.28 || ^4" } }, "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA=="],
@@ -1816,8 +1742,6 @@
"@dotenvx/dotenvx/commander": ["[email protected]", "", {}, "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ=="],
- "@inquirer/core/signal-exit": ["[email protected]", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
-
"@mdx-js/mdx/source-map": ["[email protected]", "", {}, "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ=="],
"@modelcontextprotocol/sdk/zod": ["[email protected]", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
@@ -1848,12 +1772,6 @@
"accepts/mime-types": ["[email protected]", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
- "cliui/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
-
- "cliui/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
-
- "cliui/wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],
-
"cross-spawn/which": ["[email protected]", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],
"css-loader/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],
@@ -1862,8 +1780,6 @@
"estree-util-to-js/source-map": ["[email protected]", "", {}, "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ=="],
- "express/cookie": ["[email protected]", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
-
"express/mime-types": ["[email protected]", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
"fumadocs-mdx/esbuild": ["[email protected]", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.27.7", "@esbuild/android-arm": "0.27.7", "@esbuild/android-arm64": "0.27.7", "@esbuild/android-x64": "0.27.7", "@esbuild/darwin-arm64": "0.27.7", "@esbuild/darwin-x64": "0.27.7", "@esbuild/freebsd-arm64": "0.27.7", "@esbuild/freebsd-x64": "0.27.7", "@esbuild/linux-arm": "0.27.7", "@esbuild/linux-arm64": "0.27.7", "@esbuild/linux-ia32": "0.27.7", "@esbuild/linux-loong64": "0.27.7", "@esbuild/linux-mips64el": "0.27.7", "@esbuild/linux-ppc64": "0.27.7", "@esbuild/linux-riscv64": "0.27.7", "@esbuild/linux-s390x": "0.27.7", "@esbuild/linux-x64": "0.27.7", "@esbuild/netbsd-arm64": "0.27.7", "@esbuild/netbsd-x64": "0.27.7", "@esbuild/openbsd-arm64": "0.27.7", "@esbuild/openbsd-x64": "0.27.7", "@esbuild/openharmony-arm64": "0.27.7", "@esbuild/sunos-x64": "0.27.7", "@esbuild/win32-arm64": "0.27.7", "@esbuild/win32-ia32": "0.27.7", "@esbuild/win32-x64": "0.27.7" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w=="],
@@ -1876,8 +1792,6 @@
"micromatch/picomatch": ["[email protected]", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="],
- "msw/path-to-regexp": ["[email protected]", "", {}, "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ=="],
-
"next/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="],
"nuqs/@standard-schema/spec": ["@standard-schema/[email protected]", "", {}, "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA=="],
@@ -1908,24 +1822,14 @@
"type-is/mime-types": ["[email protected]", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
- "wrap-ansi/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
-
- "wrap-ansi/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
-
"wsl-utils/is-wsl": ["[email protected]", "", { "dependencies": { "is-inside-container": "^1.0.0" } }, "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw=="],
- "yargs/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
-
"@babel/helper-compilation-targets/lru-cache/yallist": ["[email protected]", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="],
"@remotion/studio/open/define-lazy-prop": ["[email protected]", "", {}, "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og=="],
"accepts/mime-types/mime-db": ["[email protected]", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
- "cliui/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
-
- "cliui/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
-
"cross-spawn/which/isexe": ["[email protected]", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],
"express/mime-types/mime-db": ["[email protected]", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
@@ -2000,20 +1904,10 @@
"type-is/mime-types/mime-db": ["[email protected]", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
- "wrap-ansi/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
-
- "wrap-ansi/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
-
- "yargs/string-width/emoji-regex": ["[email protected]", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
-
- "yargs/string-width/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
-
"fumadocs-ui/motion/framer-motion/motion-dom": ["[email protected]", "", { "dependencies": { "motion-utils": "^12.36.0" } }, "sha512-pdkHLD8QYRp8VfiNLb8xIBJis1byQ9gPT3Jnh2jqfFtAsWUA3dEepDlsWe/xMpO8McV+VdpKVcp+E+TGJEtOoA=="],
"fumadocs-ui/motion/framer-motion/motion-utils": ["[email protected]", "", {}, "sha512-eHWisygbiwVvf6PZ1vhaHCLamvkSbPIeAYxWUuL3a2PD/TROgE7FvfHWTIH4vMl798QLfMw15nRqIaRDXTlYRg=="],
"shadcn/execa/npm-run-path/path-key": ["[email protected]", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="],
-
- "yargs/string-width/strip-ansi/ansi-regex": ["[email protected]", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
}
}
diff --git a/package.json b/package.json
index 0b6f4c80..fed6b4c7 100644
--- a/package.json
+++ b/package.json
@@ -49,7 +49,7 @@
"recharts": "3.8.0",
"remotion": "4.0.473",
"server-only": "^0.0.1",
- "shadcn": "^4.1.2",
+ "shadcn": "^4.11.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
"three": "^0.167.1",
diff --git a/public/r/accordion.json b/public/r/accordion.json
new file mode 100644
index 00000000..c0775d6e
--- /dev/null
+++ b/public/r/accordion.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "accordion",
+ "title": "UI Accordion",
+ "description": "A disclosure whose opened/closed state is a pure function of the timeline; the panel reveal, chevron, and background are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/accordion/index.tsx",
+ "content": "\"use client\";\n\nimport { mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type AccordionState = \"opened\" | \"closed\";\n\ntype AccordionVariant = \"default\" | \"ghost\";\n\nexport interface AccordionProps {\n state?: AccordionState;\n style?: AccordionStyle;\n title?: string;\n content?: string;\n contentHeight?: number;\n variant?: AccordionVariant;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst CARD_WIDTH = 440;\n\ninterface VariantTokens {\n bordered: boolean;\n closedBg: string;\n openBg: string;\n}\n\nfunction variantTokens(\n variant: AccordionVariant,\n theme: RemocnTheme,\n): VariantTokens {\n const variants = {\n ghost: {\n bordered: false,\n closedBg: theme.background,\n openBg: mixOklch(theme.background, theme.muted, 0.25),\n },\n default: {\n bordered: true,\n closedBg: theme.background,\n openBg: mixOklch(theme.background, theme.muted, 0.5),\n },\n };\n\n return variants[variant] ?? variants.default;\n}\n\nexport interface AccordionStyle {\n panelHeight: number;\n panelOpacity: number;\n chevronRotation: number;\n background: string;\n}\n\nexport interface AccordionStyleContext {\n bordered: boolean;\n closedBg: string;\n openBg: string;\n border: string;\n foreground: string;\n mutedForeground: string;\n}\n\nexport function accordionStyleContext(\n variant: AccordionVariant,\n theme: RemocnTheme,\n): AccordionStyleContext {\n const tokens = variantTokens(variant, theme);\n return {\n bordered: tokens.bordered,\n closedBg: tokens.closedBg,\n openBg: tokens.openBg,\n border: theme.border,\n foreground: theme.foreground,\n mutedForeground: theme.mutedForeground,\n };\n}\n\nexport function accordionStyle(\n state: AccordionState,\n ctx: AccordionStyleContext,\n): AccordionStyle {\n switch (state) {\n case \"opened\":\n return {\n panelHeight: 1,\n panelOpacity: 1,\n chevronRotation: 180,\n background: ctx.openBg,\n };\n default:\n return {\n panelHeight: 0,\n panelOpacity: 0,\n chevronRotation: 0,\n background: ctx.closedBg,\n };\n }\n}\n\nexport function Accordion({\n state = \"closed\",\n style,\n title = \"Is it accessible?\",\n content = \"Yes. It adheres to the WAI-ARIA design pattern.\",\n contentHeight = 64,\n variant = \"default\",\n theme: themeOverride,\n mode,\n className,\n}: AccordionProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n\n const ctx = accordionStyleContext(variant, theme);\n const v = style ?? accordionStyle(state, ctx);\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n className={className}\n style={{\n width: CARD_WIDTH,\n background: v.background,\n border: ctx.bordered\n ? `1px solid ${ctx.border}`\n : \"1px solid transparent\",\n borderRadius: theme.radius,\n overflow: \"hidden\",\n }}\n >\n {}\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n gap: 24,\n padding: 16,\n fontSize: 15,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: ctx.foreground,\n }}\n >\n <span>{title}</span>\n <svg\n width={16}\n height={16}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{\n flexShrink: 0,\n transform: `rotate(${v.chevronRotation}deg)`,\n }}\n >\n <path\n d=\"M6 9l6 6 6-6\"\n stroke={ctx.mutedForeground}\n strokeWidth=\"2.2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n {}\n <div\n style={{\n height: contentHeight * v.panelHeight,\n opacity: v.panelOpacity,\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n padding: \"0 16px 16px\",\n fontSize: 14,\n lineHeight: 1.5,\n color: ctx.mutedForeground,\n }}\n >\n {content}\n </div>\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/accordion.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/accordion/use-accordion-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n mixOklch,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n accordionStyle,\n accordionStyleContext,\n type AccordionState,\n type AccordionStyle,\n} from \"@/components/remocn/accordion\";\n\nexport const DEFAULT_DURATION = 14;\n\nexport function tweenAccordionStyle(\n a: AccordionStyle,\n b: AccordionStyle,\n t: number,\n): AccordionStyle {\n return {\n panelHeight: a.panelHeight + (b.panelHeight - a.panelHeight) * t,\n panelOpacity: a.panelOpacity + (b.panelOpacity - a.panelOpacity) * t,\n chevronRotation:\n a.chevronRotation + (b.chevronRotation - a.chevronRotation) * t,\n background: mixOklch(a.background, b.background, t),\n };\n}\n\nexport interface AccordionTransitionOptions {\n variant?: \"default\" | \"ghost\";\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useAccordionTransition(\n steps: Step<AccordionState>[],\n opts: AccordionTransitionOptions = {},\n): AccordionStyle {\n const {\n variant = \"default\",\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = accordionStyleContext(variant, theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenAccordionStyle(\n accordionStyle(from, ctx),\n accordionStyle(to, ctx),\n t,\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-accordion-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/ai-prompt-flow.json b/public/r/ai-prompt-flow.json
new file mode 100644
index 00000000..3b607916
--- /dev/null
+++ b/public/r/ai-prompt-flow.json
@@ -0,0 +1,26 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "ai-prompt-flow",
+ "title": "UI AI Prompt Flow",
+ "description": "An AI prompt composition: a prompt types into the field, the Generate button runs hover → press → loading, a skeleton shimmer reveals, then crossfades into the generated answer, and a ready toast slides in. A pure orchestrator — the shimmer is owned by the skeleton-block motion atom; every other channel comes from a composed primitive's hook.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "input",
+ "button",
+ "skeleton",
+ "skeleton-block",
+ "toast"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/ai-prompt-flow/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport { Input } from \"@/components/remocn/input\";\nimport { useInputTransition } from \"@/components/remocn/use-input-transition\";\nimport { Button } from \"@/components/remocn/button\";\nimport { useButtonTransition } from \"@/components/remocn/use-button-transition\";\nimport { Skeleton } from \"@/components/remocn/skeleton\";\nimport { SkeletonBlock } from \"@/components/remocn/skeleton-block\";\nimport { useSkeletonTransition } from \"@/components/remocn/use-skeleton-transition\";\nimport { Toast } from \"@/components/remocn/toast\";\nimport { useToastTransition } from \"@/components/remocn/use-toast-transition\";\n\nexport interface AiPromptFlowProps {\n prompt?: string;\n buttonLabel?: string;\n answerLines?: string[];\n toastTitle?: string;\n mode?: \"light\" | \"dark\";\n theme?: Partial<RemocnTheme>;\n}\n\nconst STAGE_W = 1280;\nconst PROMPT_W = 520;\nconst PROMPT_LEFT = (STAGE_W - PROMPT_W) / 2;\nconst PROMPT_TOP = 168;\nconst PROMPT_H = 92;\n\nconst BTN_W = 200;\nconst BTN_LEFT = (STAGE_W - BTN_W) / 2;\nconst BTN_TOP = 278;\nconst BTN_H = 64;\n\nconst ANSWER_W = 560;\nconst ANSWER_LEFT = (STAGE_W - ANSWER_W) / 2;\nconst ANSWER_TOP = 380;\n\nconst DEFAULT_ANSWER = [\n \"The thread debates the Q3 roadmap: ship the editor first,\",\n \"defer billing to Q4, and pull the migration forward so\",\n \"infra is unblocked before the team scales next quarter.\",\n];\n\nexport function AiPromptFlow({\n prompt = \"Summarize this thread\",\n buttonLabel = \"Generate\",\n answerLines = DEFAULT_ANSWER,\n toastTitle = \"Response ready\",\n mode = \"light\",\n theme,\n}: AiPromptFlowProps) {\n const resolved = useRemocnTheme(theme, mode);\n const opts = { mode, theme };\n\n const inputStyle = useInputTransition(\n [\n { at: 0, state: \"active\", duration: 1 },\n { at: 0, state: \"typing\", duration: 50 },\n ],\n opts,\n );\n\n const buttonStyle = useButtonTransition(\n [\n { at: 52, state: \"hover\", duration: 6 },\n { at: 58, state: \"press\", duration: 4 },\n { at: 62, state: \"loading\", duration: 4 },\n ],\n opts,\n );\n\n const skeletonStyle = useSkeletonTransition(\n [\n { at: 64, state: \"loading\", duration: 1 },\n { at: 150, state: \"loaded\", duration: 16 },\n ],\n { mode },\n );\n\n const panelOpacity = buttonStyle.spinnerOpacity;\n\n const toastStyle = useToastTransition(\n [\n { at: 160, state: \"visible\", duration: 14 },\n { at: 220, state: \"hidden\", duration: 14 },\n ],\n { mode },\n );\n\n return (\n <div\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n background: resolved.background,\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n left: PROMPT_LEFT,\n top: PROMPT_TOP,\n width: PROMPT_W,\n height: PROMPT_H,\n }}\n >\n <Input\n placeholder=\"Ask anything…\"\n value={prompt}\n style={inputStyle}\n mode={mode}\n theme={theme}\n />\n </div>\n\n {}\n <div\n style={{\n position: \"absolute\",\n left: BTN_LEFT,\n top: BTN_TOP,\n width: BTN_W,\n height: BTN_H,\n }}\n >\n <Button\n label={buttonLabel}\n style={buttonStyle}\n mode={mode}\n theme={theme}\n />\n </div>\n\n {}\n <div\n style={{\n position: \"absolute\",\n left: ANSWER_LEFT,\n top: ANSWER_TOP,\n width: ANSWER_W,\n display: \"flex\",\n justifyContent: \"center\",\n opacity: panelOpacity,\n }}\n >\n <Skeleton\n style={skeletonStyle}\n mode={mode}\n theme={theme}\n placeholder={\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 14,\n width: ANSWER_W,\n }}\n >\n {answerLines.map((_, i) => (\n <SkeletonBlock\n key={i}\n width={i === answerLines.length - 1 ? \"70%\" : \"100%\"}\n height={18}\n baseColor={resolved.muted}\n />\n ))}\n </div>\n }\n >\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 8,\n width: ANSWER_W,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n fontSize: 18,\n lineHeight: 1.45,\n letterSpacing: \"-0.01em\",\n color: resolved.foreground,\n }}\n >\n {answerLines.map((line, i) => (\n <span key={i}>{line}</span>\n ))}\n </div>\n </Skeleton>\n </div>\n\n {}\n <div style={{ position: \"absolute\", right: 32, bottom: 32 }}>\n <Toast\n title={toastTitle}\n variant=\"success\"\n style={toastStyle}\n mode={mode}\n theme={theme}\n />\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/ai-prompt-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/alert-dialog.json b/public/r/alert-dialog.json
new file mode 100644
index 00000000..ea83362d
--- /dev/null
+++ b/public/r/alert-dialog.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "alert-dialog",
+ "title": "UI Alert Dialog",
+ "description": "A modal alert dialog whose opened/closed state is a pure function of the timeline; the backdrop dim and popup zoom are keyframed presets. Self-contained — pair it with the Button as a trigger (see the example).",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/alert-dialog/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type AlertDialogState = \"closed\" | \"opened\";\n\nexport interface AlertDialogProps {\n state?: AlertDialogState;\n style?: AlertDialogStyle;\n title?: string;\n description?: string;\n actionLabel?: string;\n cancelLabel?: string;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst POPUP_WIDTH = 400;\nconst MAX_OVERLAY_ALPHA = 0.5;\n\nexport interface AlertDialogStyle {\n overlayOpacity: number;\n popupOpacity: number;\n popupScale: number;\n popupTranslateY: number;\n}\n\nexport interface AlertDialogStyleContext {\n popoverBg: string;\n popoverFg: string;\n mutedFg: string;\n border: string;\n radius: number;\n actionBg: string;\n actionFg: string;\n cancelFg: string;\n}\n\nexport function alertDialogStyleContext(\n theme: RemocnTheme,\n): AlertDialogStyleContext {\n return {\n popoverBg: theme.popover,\n popoverFg: theme.popoverForeground,\n mutedFg: theme.mutedForeground,\n border: theme.border,\n radius: theme.radius,\n actionBg: theme.destructive,\n actionFg: theme.destructiveForeground,\n cancelFg: theme.foreground,\n };\n}\n\nexport function alertDialogStyle(\n state: AlertDialogState,\n _ctx: AlertDialogStyleContext,\n): AlertDialogStyle {\n switch (state) {\n case \"opened\":\n return {\n overlayOpacity: 1,\n popupOpacity: 1,\n popupScale: 1,\n popupTranslateY: 0,\n };\n default:\n return {\n overlayOpacity: 0,\n popupOpacity: 0,\n popupScale: 0.95,\n popupTranslateY: 8,\n };\n }\n}\n\nexport function AlertDialog({\n state = \"closed\",\n style,\n title = \"Delete account?\",\n description = \"This action cannot be undone. This will permanently remove your data from our servers.\",\n actionLabel = \"Delete\",\n cancelLabel = \"Cancel\",\n theme: themeOverride,\n mode,\n className,\n}: AlertDialogProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n\n const ctx = alertDialogStyleContext(theme);\n const v = style ?? alertDialogStyle(state, ctx);\n\n const buttonBase: React.CSSProperties = {\n height: 40,\n padding: \"0 20px\",\n fontSize: 15,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n borderRadius: ctx.radius,\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n cursor: \"pointer\",\n };\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `rgba(0, 0, 0, ${MAX_OVERLAY_ALPHA * v.overlayOpacity})`,\n }}\n />\n <div\n className={className}\n style={{\n position: \"relative\",\n width: POPUP_WIDTH,\n transform: `translateY(${v.popupTranslateY}px) scale(${v.popupScale})`,\n opacity: v.popupOpacity,\n background: ctx.popoverBg,\n color: ctx.popoverFg,\n border: `1px solid ${ctx.border}`,\n borderRadius: ctx.radius + 6,\n padding: 24,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 8,\n boxShadow: \"0 24px 48px -12px rgba(0,0,0,0.25)\",\n }}\n >\n <div\n style={{ fontSize: 18, fontWeight: 500, letterSpacing: \"-0.01em\" }}\n >\n {title}\n </div>\n <div style={{ fontSize: 14, lineHeight: 1.5, color: ctx.mutedFg }}>\n {description}\n </div>\n <div\n style={{\n display: \"flex\",\n justifyContent: \"flex-end\",\n gap: 8,\n marginTop: 16,\n }}\n >\n {}\n <button\n type=\"button\"\n style={{\n ...buttonBase,\n background: \"transparent\",\n color: ctx.cancelFg,\n border: `1px solid ${ctx.border}`,\n }}\n >\n {cancelLabel}\n </button>\n {}\n <button\n type=\"button\"\n style={{\n ...buttonBase,\n background: ctx.actionBg,\n color: ctx.actionFg,\n border: \"1px solid transparent\",\n }}\n >\n {actionLabel}\n </button>\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/alert-dialog.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/alert-dialog/use-alert-dialog-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n alertDialogStyle,\n alertDialogStyleContext,\n type AlertDialogState,\n type AlertDialogStyle,\n} from \"@/components/remocn/alert-dialog\";\n\nexport const DEFAULT_DURATION = 12;\n\nexport function tweenAlertDialogStyle(\n a: AlertDialogStyle,\n b: AlertDialogStyle,\n t: number,\n): AlertDialogStyle {\n return {\n overlayOpacity: a.overlayOpacity + (b.overlayOpacity - a.overlayOpacity) * t,\n popupOpacity: a.popupOpacity + (b.popupOpacity - a.popupOpacity) * t,\n popupScale: a.popupScale + (b.popupScale - a.popupScale) * t,\n popupTranslateY:\n a.popupTranslateY + (b.popupTranslateY - a.popupTranslateY) * t,\n };\n}\n\nexport interface AlertDialogTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useAlertDialogTransition(\n steps: Step<AlertDialogState>[],\n opts: AlertDialogTransitionOptions = {},\n): AlertDialogStyle {\n const {\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = alertDialogStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenAlertDialogStyle(\n alertDialogStyle(from, ctx),\n alertDialogStyle(to, ctx),\n t,\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-alert-dialog-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/blur-in.json b/public/r/blur-in.json
new file mode 100644
index 00000000..4fcae09a
--- /dev/null
+++ b/public/r/blur-in.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "blur-in",
+ "title": "UI Blur In",
+ "description": "A wrapper that reveals a single child with blur + opacity + a directional offset; a pure state atom, theme-independent — its context is a motion config (blur/distance/axis), not a theme.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/blur-in/index.tsx",
+ "content": "\"use client\";\n\nimport type { CSSProperties, ReactNode } from \"react\";\n\nexport type BlurInState = \"hidden\" | \"revealed\";\nexport type BlurInDirection = \"up\" | \"down\" | \"left\" | \"right\";\n\nexport interface BlurInStyle {\n blur: number;\n opacity: number;\n translateX: number;\n translateY: number;\n}\n\nexport interface BlurInStyleContext {\n blur: number;\n distance: number;\n axis: \"x\" | \"y\";\n sign: 1 | -1;\n}\n\nexport function blurInStyleContext(\n blur: number,\n direction: BlurInDirection,\n distance: number,\n): BlurInStyleContext {\n const axis: \"x\" | \"y\" =\n direction === \"left\" || direction === \"right\" ? \"x\" : \"y\";\n const sign: 1 | -1 = direction === \"up\" || direction === \"left\" ? 1 : -1;\n return { blur, distance, axis, sign };\n}\n\nexport function blurInStyle(\n state: BlurInState,\n ctx: BlurInStyleContext,\n): BlurInStyle {\n if (state === \"revealed\")\n return { blur: 0, opacity: 1, translateX: 0, translateY: 0 };\n return {\n blur: ctx.blur,\n opacity: 0,\n translateX: ctx.axis === \"x\" ? ctx.sign * ctx.distance : 0,\n translateY: ctx.axis === \"y\" ? ctx.sign * ctx.distance : 0,\n };\n}\n\nexport interface BlurInProps {\n state?: BlurInState;\n style?: BlurInStyle;\n children: ReactNode;\n blur?: number;\n direction?: BlurInDirection;\n distance?: number;\n display?: CSSProperties[\"display\"];\n className?: string;\n}\n\nexport function BlurIn({\n state = \"hidden\",\n style,\n children,\n blur = 8,\n direction = \"up\",\n distance = 12,\n display = \"inline-block\",\n className,\n}: BlurInProps) {\n const v = style ?? blurInStyle(state, blurInStyleContext(blur, direction, distance));\n return (\n <div\n className={className}\n style={{\n display,\n opacity: v.opacity,\n filter: v.blur > 0 ? `blur(${v.blur}px)` : \"none\",\n transform: `translate(${v.translateX}px, ${v.translateY}px)`,\n }}\n >\n {children}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/blur-in.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/blur-in/use-blur-in-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type Step,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n blurInStyle,\n blurInStyleContext,\n type BlurInDirection,\n type BlurInState,\n type BlurInStyle,\n} from \"@/components/remocn/blur-in\";\n\nexport const DEFAULT_DURATION = 18;\n\nexport function tweenBlurInStyle(\n a: BlurInStyle,\n b: BlurInStyle,\n t: number,\n): BlurInStyle {\n return {\n blur: a.blur + (b.blur - a.blur) * t,\n opacity: a.opacity + (b.opacity - a.opacity) * t,\n translateX: a.translateX + (b.translateX - a.translateX) * t,\n translateY: a.translateY + (b.translateY - a.translateY) * t,\n };\n}\n\nexport interface BlurInTransitionOptions {\n blur?: number;\n direction?: BlurInDirection;\n distance?: number;\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useBlurInTransition(\n steps: Step<BlurInState>[],\n opts: BlurInTransitionOptions = {},\n): BlurInStyle {\n const {\n blur = 8,\n direction = \"up\",\n distance = 12,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const ctx = blurInStyleContext(blur, direction, distance);\n const { from, to, progress } = useStateTransition(\n steps,\n \"hidden\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenBlurInStyle(blurInStyle(from, ctx), blurInStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-blur-in-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/button.json b/public/r/button.json
new file mode 100644
index 00000000..c68c181c
--- /dev/null
+++ b/public/r/button.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "button",
+ "title": "UI Button",
+ "description": "A button whose idle/hover/press/loading/success state is a pure function of the timeline; the loading state composes the Spinner motion atom.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "spinner"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/button/index.tsx",
+ "content": "\"use client\";\n\nimport { Spinner } from \"@/components/remocn/spinner\";\nimport { mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type ButtonState = \"idle\" | \"hover\" | \"press\" | \"loading\" | \"success\";\n\ntype ButtonVariant =\n | \"default\"\n | \"secondary\"\n | \"destructive\"\n | \"outline\"\n | \"ghost\";\n\ntype ButtonSize = \"sm\" | \"default\" | \"lg\";\n\nexport interface ButtonProps {\n state?: ButtonState;\n style?: ButtonStyle;\n label?: string;\n variant?: ButtonVariant;\n size?: ButtonSize;\n theme?: Partial<RemocnTheme>;\n primary?: string;\n mode?: \"light\" | \"dark\";\n speed?: number;\n align?: \"start\" | \"center\" | \"end\";\n className?: string;\n}\n\nfunction justify(align: \"start\" | \"center\" | \"end\"): string {\n return align === \"start\"\n ? \"flex-start\"\n : align === \"end\"\n ? \"flex-end\"\n : \"center\";\n}\n\nconst CHECK_PATH_LENGTH = 14;\n\nconst SIZE_STYLES: Record<\n ButtonSize,\n { height: number; padding: string; fontSize: number; gap: number }\n> = {\n sm: { height: 32, padding: \"0 12px\", fontSize: 13, gap: 6 },\n default: { height: 40, padding: \"0 20px\", fontSize: 15, gap: 8 },\n lg: { height: 48, padding: \"0 28px\", fontSize: 17, gap: 10 },\n};\n\ninterface VariantTokens {\n bg: string;\n fg: string;\n hoverBg: string;\n border: string;\n}\n\nfunction variantTokens(\n variant: ButtonVariant,\n theme: RemocnTheme,\n): VariantTokens {\n const variants = {\n secondary: {\n bg: theme.secondary,\n fg: theme.secondaryForeground,\n hoverBg: mixOklch(theme.secondary, theme.muted, 1),\n border: \"transparent\",\n },\n destructive: {\n bg: theme.destructive,\n fg: theme.destructiveForeground,\n hoverBg: mixOklch(theme.destructive, theme.foreground, 0.12),\n border: \"transparent\",\n },\n outline: {\n bg: \"transparent\",\n fg: theme.foreground,\n hoverBg: theme.accent,\n border: theme.border,\n },\n ghost: {\n bg: \"transparent\",\n fg: theme.foreground,\n hoverBg: theme.accent,\n border: \"transparent\",\n },\n default: {\n bg: theme.primary,\n fg: theme.primaryForeground,\n hoverBg: mixOklch(theme.primary, theme.foreground, 0.1),\n border: \"transparent\",\n },\n };\n\n return variants[variant] ?? variants.default;\n}\n\nexport interface ButtonStyle {\n translateY: number;\n scale: number;\n background: string;\n labelOpacity: number;\n spinnerOpacity: number;\n checkOpacity: number;\n}\n\nexport interface ButtonStyleContext {\n restBg: string;\n hoverBg: string;\n pressBg: string;\n primary: string;\n}\n\nexport function buttonStyleContext(\n variant: ButtonVariant,\n theme: RemocnTheme,\n): ButtonStyleContext {\n const tokens = variantTokens(variant, theme);\n const restBg = tokens.bg === \"transparent\" ? theme.background : tokens.bg;\n return {\n restBg,\n hoverBg: tokens.hoverBg,\n pressBg:\n tokens.bg === \"transparent\"\n ? tokens.hoverBg\n : mixOklch(tokens.hoverBg, theme.foreground, 0.08),\n primary: theme.primary,\n };\n}\n\nexport function buttonStyle(\n state: ButtonState,\n ctx: ButtonStyleContext,\n): ButtonStyle {\n switch (state) {\n case \"hover\":\n return {\n translateY: -1,\n scale: 1,\n background: ctx.hoverBg,\n labelOpacity: 1,\n spinnerOpacity: 0,\n checkOpacity: 0,\n };\n case \"press\":\n return {\n translateY: -1,\n scale: 0.97,\n background: ctx.pressBg,\n labelOpacity: 1,\n spinnerOpacity: 0,\n checkOpacity: 0,\n };\n case \"loading\":\n return {\n translateY: -1,\n scale: 1,\n background: ctx.hoverBg,\n labelOpacity: 0,\n spinnerOpacity: 1,\n checkOpacity: 0,\n };\n case \"success\":\n return {\n translateY: -1,\n scale: 1,\n background: ctx.primary,\n labelOpacity: 0,\n spinnerOpacity: 0,\n checkOpacity: 1,\n };\n default:\n return {\n translateY: 0,\n scale: 1,\n background: ctx.restBg,\n labelOpacity: 1,\n spinnerOpacity: 0,\n checkOpacity: 0,\n };\n }\n}\n\nexport function Button({\n state = \"idle\",\n style,\n label = \"Continue\",\n variant = \"default\",\n size = \"default\",\n theme: themeOverride,\n primary,\n mode,\n speed = 1,\n align = \"center\",\n className,\n}: ButtonProps) {\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n\n const sizeStyle = SIZE_STYLES[size];\n const tokens = variantTokens(variant, theme);\n\n const ctx = buttonStyleContext(variant, theme);\n const v = style ?? buttonStyle(state, ctx);\n const iconSize = Math.round(sizeStyle.fontSize * 1.1);\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: justify(align),\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <button\n type=\"button\"\n className={className}\n style={{\n position: \"relative\",\n transform: `translateY(${v.translateY}px) scale(${v.scale})`,\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: sizeStyle.gap,\n height: sizeStyle.height,\n padding: sizeStyle.padding,\n fontSize: sizeStyle.fontSize,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: tokens.fg,\n background: v.background,\n border:\n variant === \"outline\"\n ? `1px solid ${tokens.border}`\n : \"1px solid transparent\",\n borderRadius: theme.radius,\n cursor: \"pointer\",\n }}\n >\n {}\n <span style={{ position: \"relative\", display: \"inline-flex\" }}>\n <span style={{ opacity: v.labelOpacity }}>{label}</span>\n <span\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n opacity: v.spinnerOpacity,\n }}\n >\n <Spinner color={tokens.fg} speed={speed} size={iconSize} />\n </span>\n <span\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n opacity: v.checkOpacity,\n }}\n >\n <svg\n width={iconSize}\n height={iconSize}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n >\n <path\n d=\"M5 12.5l4.5 4.5L19 7\"\n stroke={tokens.fg}\n strokeWidth=\"2.6\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeDasharray={CHECK_PATH_LENGTH}\n strokeDashoffset={0}\n pathLength={CHECK_PATH_LENGTH}\n />\n </svg>\n </span>\n </span>\n </button>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/button.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/button/use-button-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n mixOklch,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n buttonStyle,\n buttonStyleContext,\n type ButtonState,\n type ButtonStyle,\n} from \"@/components/remocn/button\";\n\nexport const DEFAULT_DURATION = 8;\n\nexport function tweenButtonStyle(\n a: ButtonStyle,\n b: ButtonStyle,\n t: number,\n): ButtonStyle {\n return {\n translateY: a.translateY + (b.translateY - a.translateY) * t,\n scale: a.scale + (b.scale - a.scale) * t,\n labelOpacity: a.labelOpacity + (b.labelOpacity - a.labelOpacity) * t,\n spinnerOpacity:\n a.spinnerOpacity + (b.spinnerOpacity - a.spinnerOpacity) * t,\n checkOpacity: a.checkOpacity + (b.checkOpacity - a.checkOpacity) * t,\n background: mixOklch(a.background, b.background, t),\n };\n}\n\nexport interface ButtonTransitionOptions {\n variant?: \"default\" | \"secondary\" | \"destructive\" | \"outline\" | \"ghost\";\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n primary?: string;\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useButtonTransition(\n steps: Step<ButtonState>[],\n opts: ButtonTransitionOptions = {},\n): ButtonStyle {\n const {\n variant = \"default\",\n theme: themeOverride,\n mode,\n primary,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n const ctx = buttonStyleContext(variant, theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"idle\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenButtonStyle(buttonStyle(from, ctx), buttonStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-button-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/checkbox.json b/public/r/checkbox.json
new file mode 100644
index 00000000..520f18fa
--- /dev/null
+++ b/public/r/checkbox.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "checkbox",
+ "title": "UI Checkbox",
+ "description": "A checkbox whose checked/unchecked state is a pure function of the timeline; the box fill, border, and checkmark draw are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/checkbox/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type CheckboxState = \"unchecked\" | \"checked\";\n\ntype CheckboxSize = \"sm\" | \"default\" | \"lg\";\n\nexport interface CheckboxProps {\n state?: CheckboxState;\n style?: CheckboxStyle;\n label?: string;\n size?: CheckboxSize;\n theme?: Partial<RemocnTheme>;\n primary?: string;\n mode?: \"light\" | \"dark\";\n align?: \"start\" | \"center\" | \"end\";\n className?: string;\n}\n\nfunction justify(align: \"start\" | \"center\" | \"end\"): string {\n return align === \"start\"\n ? \"flex-start\"\n : align === \"end\"\n ? \"flex-end\"\n : \"center\";\n}\n\nconst CHECK_PATH_LENGTH = 14;\n\nconst SIZE_STYLES: Record<\n CheckboxSize,\n { box: number; fontSize: number; gap: number }\n> = {\n sm: { box: 16, fontSize: 13, gap: 8 },\n default: { box: 20, fontSize: 15, gap: 10 },\n lg: { box: 24, fontSize: 17, gap: 12 },\n};\n\nexport interface CheckboxStyle {\n boxBackground: string;\n boxBorderColor: string;\n checkOpacity: number;\n checkScale: number;\n checkDraw: number;\n}\n\nexport interface CheckboxStyleContext {\n uncheckedBg: string;\n checkedBg: string;\n uncheckedBorder: string;\n checkedBorder: string;\n checkColor: string;\n}\n\nexport function checkboxStyleContext(theme: RemocnTheme): CheckboxStyleContext {\n return {\n uncheckedBg: theme.background,\n checkedBg: theme.primary,\n uncheckedBorder: theme.border,\n checkedBorder: theme.primary,\n checkColor: theme.primaryForeground,\n };\n}\n\nexport function checkboxStyle(\n state: CheckboxState,\n ctx: CheckboxStyleContext,\n): CheckboxStyle {\n switch (state) {\n case \"checked\":\n return {\n boxBackground: ctx.checkedBg,\n boxBorderColor: ctx.checkedBorder,\n checkOpacity: 1,\n checkScale: 1,\n checkDraw: 1,\n };\n default:\n return {\n boxBackground: ctx.uncheckedBg,\n boxBorderColor: ctx.uncheckedBorder,\n checkOpacity: 0,\n checkScale: 0.6,\n checkDraw: 0,\n };\n }\n}\n\nexport function Checkbox({\n state = \"unchecked\",\n style,\n label,\n size = \"default\",\n theme: themeOverride,\n primary,\n mode,\n align = \"center\",\n className,\n}: CheckboxProps) {\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n\n const sizeStyle = SIZE_STYLES[size];\n const ctx = checkboxStyleContext(theme);\n const v = style ?? checkboxStyle(state, ctx);\n const boxSize = sizeStyle.box;\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: justify(align),\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <span\n className={className}\n style={{\n display: \"inline-flex\",\n alignItems: \"center\",\n gap: sizeStyle.gap,\n }}\n >\n {}\n <span\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n width: boxSize,\n height: boxSize,\n borderRadius: Math.round(boxSize * 0.28),\n border: `1px solid ${v.boxBorderColor}`,\n background: v.boxBackground,\n }}\n >\n <svg\n width={boxSize}\n height={boxSize}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{\n opacity: v.checkOpacity,\n transform: `scale(${v.checkScale})`,\n }}\n >\n <path\n d=\"M5 12.5l4.5 4.5L19 7\"\n stroke={ctx.checkColor}\n strokeWidth=\"2.6\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n pathLength={CHECK_PATH_LENGTH}\n strokeDasharray={CHECK_PATH_LENGTH}\n strokeDashoffset={CHECK_PATH_LENGTH * (1 - v.checkDraw)}\n />\n </svg>\n </span>\n {label !== undefined && (\n <span\n style={{\n fontSize: sizeStyle.fontSize,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: theme.foreground,\n }}\n >\n {label}\n </span>\n )}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/checkbox.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/checkbox/use-checkbox-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n mixOklch,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n checkboxStyle,\n checkboxStyleContext,\n type CheckboxState,\n type CheckboxStyle,\n} from \"@/components/remocn/checkbox\";\n\nexport const DEFAULT_DURATION = 10;\n\nexport function tweenCheckboxStyle(\n a: CheckboxStyle,\n b: CheckboxStyle,\n t: number,\n): CheckboxStyle {\n return {\n boxBackground: mixOklch(a.boxBackground, b.boxBackground, t),\n boxBorderColor: mixOklch(a.boxBorderColor, b.boxBorderColor, t),\n checkOpacity: a.checkOpacity + (b.checkOpacity - a.checkOpacity) * t,\n checkScale: a.checkScale + (b.checkScale - a.checkScale) * t,\n checkDraw: a.checkDraw + (b.checkDraw - a.checkDraw) * t,\n };\n}\n\nexport interface CheckboxTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n primary?: string;\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useCheckboxTransition(\n steps: Step<CheckboxState>[],\n opts: CheckboxTransitionOptions = {},\n): CheckboxStyle {\n const {\n theme: themeOverride,\n mode,\n primary,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n const ctx = checkboxStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"unchecked\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenCheckboxStyle(checkboxStyle(from, ctx), checkboxStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-checkbox-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/checkout-flow.json b/public/r/checkout-flow.json
new file mode 100644
index 00000000..fb3ba44b
--- /dev/null
+++ b/public/r/checkout-flow.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "checkout-flow",
+ "title": "UI Checkout Flow",
+ "description": "A cursor-driven checkout card: the card and its fields blur-in, then the pointer flips a billing-cycle toggle, types a card number, ticks the terms checkbox, and presses Pay through to success, ending in a toast. A pure orchestrator — every channel comes from a composed primitive's transition hook.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "toggle-group",
+ "input",
+ "checkbox",
+ "button",
+ "field",
+ "blur-in",
+ "cursor",
+ "toast"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/checkout-flow/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport { Cursor } from \"@/components/remocn/cursor\";\nimport { useCursorPath } from \"@/components/remocn/use-cursor-path\";\nimport { Input } from \"@/components/remocn/input\";\nimport { useInputTransition } from \"@/components/remocn/use-input-transition\";\nimport { Button } from \"@/components/remocn/button\";\nimport { useButtonTransition } from \"@/components/remocn/use-button-transition\";\nimport { Checkbox } from \"@/components/remocn/checkbox\";\nimport { useCheckboxTransition } from \"@/components/remocn/use-checkbox-transition\";\nimport {\n ToggleGroup,\n type ToggleGroupItem,\n} from \"@/components/remocn/toggle-group\";\nimport { useToggleGroupTransition } from \"@/components/remocn/use-toggle-group-transition\";\nimport { Toast } from \"@/components/remocn/toast\";\nimport { useToastTransition } from \"@/components/remocn/use-toast-transition\";\nimport { BlurIn } from \"@/components/remocn/blur-in\";\nimport { useBlurInTransition } from \"@/components/remocn/use-blur-in-transition\";\nimport {\n Field,\n FieldControl,\n FieldGroup,\n FieldLabel,\n} from \"@/components/remocn/field\";\n\nconst DEFAULT_PLANS: ToggleGroupItem[] = [\n { value: \"monthly\", label: \"Monthly\" },\n { value: \"yearly\", label: \"Yearly\" },\n];\n\nconst STAGE_W = 1280;\nconst CARD_W = 420;\nconst CARD_PAD = 28;\nconst CARD_TOP = 96;\nconst CARD_LEFT = (STAGE_W - CARD_W) / 2;\nconst CENTER_X = STAGE_W / 2;\nconst CONTENT_LEFT = CARD_LEFT + CARD_PAD;\nconst CONTENT_RIGHT = CARD_LEFT + CARD_W - CARD_PAD;\n\nconst TOGGLE_Y = 222;\nconst YEARLY_X = CONTENT_LEFT + 4 + 88 + 44;\nconst CARD_X = CENTER_X;\nconst CARD_Y = 312;\nconst TERMS_X = CONTENT_LEFT + 12;\nconst TERMS_Y = 376;\nconst PAY_X = CONTENT_RIGHT - 48;\nconst PAY_Y = 442;\n\nexport interface CheckoutFlowProps {\n title?: string;\n description?: string;\n plans?: ToggleGroupItem[];\n cardLabel?: string;\n cardPlaceholder?: string;\n termsLabel?: string;\n payLabel?: string;\n toastTitle?: string;\n mode?: \"light\" | \"dark\";\n theme?: Partial<RemocnTheme>;\n}\n\nexport function CheckoutFlow({\n title = \"Upgrade your plan\",\n description = \"Complete your purchase to unlock every feature.\",\n plans = DEFAULT_PLANS,\n cardLabel = \"Card number\",\n cardPlaceholder = \"4242 4242 4242 4242\",\n termsLabel = \"I accept the terms and conditions\",\n payLabel = \"Pay $49\",\n toastTitle = \"Payment successful\",\n mode = \"light\",\n theme,\n}: CheckoutFlowProps) {\n const resolved = useRemocnTheme(theme, mode);\n const opts = { mode, theme };\n\n const cardEnter = useBlurInTransition(\n [{ at: 0, state: \"revealed\", duration: 18 }],\n { distance: 0 },\n );\n const enterHeader = useBlurInTransition([\n { at: 18, state: \"revealed\", duration: 16 },\n ]);\n const enterToggle = useBlurInTransition([\n { at: 24, state: \"revealed\", duration: 16 },\n ]);\n const enterCard = useBlurInTransition([\n { at: 30, state: \"revealed\", duration: 16 },\n ]);\n const enterTerms = useBlurInTransition([\n { at: 36, state: \"revealed\", duration: 16 },\n ]);\n const enterButton = useBlurInTransition([\n { at: 42, state: \"revealed\", duration: 16 },\n ]);\n\n const cursorStyle = useCursorPath([\n { at: 0, x: 140, y: 90 },\n { at: 64, x: YEARLY_X, y: TOGGLE_Y, duration: 22, click: true },\n { at: 96, x: CARD_X, y: CARD_Y, duration: 24, click: true },\n { at: 150, x: TERMS_X, y: TERMS_Y, duration: 30, click: true },\n { at: 180, x: PAY_X, y: PAY_Y, duration: 26, click: true },\n ]);\n\n const toggleStyle = useToggleGroupTransition(\n [{ at: 64, state: plans[1]?.value ?? \"yearly\", duration: 16 }],\n { items: plans, ...opts },\n );\n\n const cardStyle = useInputTransition(\n [\n { at: 96, state: \"active\", duration: 6 },\n { at: 100, state: \"typing\", duration: 40 },\n { at: 150, state: \"blur\", duration: 8 },\n ],\n opts,\n );\n\n const checkboxStyle = useCheckboxTransition(\n [{ at: 150, state: \"checked\", duration: 14 }],\n opts,\n );\n\n const payStyle = useButtonTransition(\n [\n { at: 172, state: \"hover\", duration: 8 },\n { at: 180, state: \"press\", duration: 6 },\n { at: 186, state: \"loading\", duration: 6 },\n { at: 224, state: \"success\", duration: 16 },\n ],\n opts,\n );\n\n const toastStyle = useToastTransition(\n [\n { at: 224, state: \"visible\", duration: 14 },\n { at: 286, state: \"hidden\", duration: 14 },\n ],\n { mode },\n );\n\n return (\n <div\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n background: resolved.muted,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: CARD_LEFT,\n top: CARD_TOP,\n width: CARD_W,\n height: 420,\n boxSizing: \"border-box\",\n padding: 28,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 24,\n background: resolved.background,\n border: `1px solid ${resolved.border}`,\n borderRadius: 14,\n boxShadow:\n \"0 10px 30px -12px rgba(0,0,0,0.22), 0 2px 8px -3px rgba(0,0,0,0.10)\",\n opacity: cardEnter.opacity,\n filter: cardEnter.blur > 0 ? `blur(${cardEnter.blur}px)` : \"none\",\n }}\n >\n <BlurIn display=\"block\" style={enterHeader}>\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: 4 }}>\n <div\n style={{\n fontSize: 22,\n lineHeight: \"28px\",\n fontWeight: 600,\n letterSpacing: \"-0.02em\",\n color: resolved.cardForeground,\n }}\n >\n {title}\n </div>\n <div\n style={{\n fontSize: 14,\n lineHeight: \"20px\",\n color: resolved.mutedForeground,\n }}\n >\n {description}\n </div>\n </div>\n </BlurIn>\n\n <BlurIn display=\"block\" style={enterToggle}>\n <FieldControl height={44}>\n <ToggleGroup\n style={toggleStyle}\n items={plans}\n align=\"start\"\n mode={mode}\n theme={theme}\n />\n </FieldControl>\n </BlurIn>\n\n <FieldGroup gap={24}>\n <BlurIn display=\"block\" style={enterCard}>\n <Field>\n <FieldLabel mode={mode} theme={theme}>\n {cardLabel}\n </FieldLabel>\n <FieldControl>\n <Input\n placeholder={cardPlaceholder}\n value={cardPlaceholder}\n style={cardStyle}\n fullWidth\n mode={mode}\n theme={theme}\n />\n </FieldControl>\n </Field>\n </BlurIn>\n\n <BlurIn display=\"block\" style={enterTerms}>\n <FieldControl>\n <Checkbox\n label={termsLabel}\n style={checkboxStyle}\n align=\"start\"\n mode={mode}\n theme={theme}\n />\n </FieldControl>\n </BlurIn>\n </FieldGroup>\n\n <BlurIn display=\"block\" style={enterButton}>\n <Field gap={10}>\n <FieldControl height={44}>\n <Button\n label={payLabel}\n style={payStyle}\n align=\"end\"\n mode={mode}\n theme={theme}\n />\n </FieldControl>\n </Field>\n </BlurIn>\n </div>\n\n <div style={{ position: \"absolute\", right: 32, bottom: 32 }}>\n <Toast\n title={toastTitle}\n variant=\"success\"\n style={toastStyle}\n mode={mode}\n theme={theme}\n />\n </div>\n\n <Cursor style={cursorStyle} variant=\"pointer\" mode={mode} theme={theme} />\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/checkout-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/combobox.json b/public/r/combobox.json
new file mode 100644
index 00000000..6339bd5c
--- /dev/null
+++ b/public/r/combobox.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "combobox",
+ "title": "UI Combobox",
+ "description": "A combobox whose opened/closed state is a pure function of the timeline; the panel fade/scale/lift are keyframed presets like select. The trigger reuses the Input presets (typed query + caret reveal via an injected inputStyle), the list is filtered by a pure case-insensitive substring on the visible query prefix, and rows reuse the SelectItem row.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "input",
+ "select-item"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/combobox/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport {\n inputStyle,\n inputStyleContext,\n type InputStyle,\n type InputStyleContext,\n} from \"@/components/remocn/input\";\nimport {\n SelectItemRow,\n selectItemStyle,\n selectItemStyleContext,\n type SelectItemState,\n type SelectItemStyle,\n type SelectItemStyleContext,\n} from \"@/components/remocn/select-item\";\n\nexport type ComboboxState = \"opened\" | \"closed\";\n\nexport interface ComboboxProps {\n state?: ComboboxState;\n style?: ComboboxStyle;\n query?: string;\n revealCount?: number;\n placeholder?: string;\n items?: string[];\n selectedIndex?: number;\n highlightedIndex?: number;\n pressedIndex?: number;\n itemStyles?: (SelectItemStyle | undefined)[];\n inputStyle?: InputStyle;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst WIDTH = 280;\n\nexport function filterComboboxItems(\n items: string[],\n query: string,\n revealCount?: number,\n): string[] {\n const visible = (\n revealCount === undefined ? query : query.slice(0, revealCount)\n )\n .trim()\n .toLowerCase();\n if (visible === \"\") return items;\n return items.filter((item) => item.toLowerCase().includes(visible));\n}\n\nexport interface ComboboxStyle {\n panelOpacity: number;\n panelScale: number;\n panelTranslateY: number;\n}\n\nexport interface ComboboxStyleContext {\n triggerCtx: InputStyleContext;\n panelBg: string;\n panelBorder: string;\n mutedFg: string;\n radius: number;\n itemCtx: SelectItemStyleContext;\n}\n\nexport function comboboxStyleContext(theme: RemocnTheme): ComboboxStyleContext {\n return {\n triggerCtx: inputStyleContext(theme),\n panelBg: theme.popover,\n panelBorder: theme.border,\n mutedFg: theme.mutedForeground,\n radius: theme.radius,\n itemCtx: selectItemStyleContext(theme),\n };\n}\n\nexport function comboboxStyle(\n state: ComboboxState,\n _ctx: ComboboxStyleContext,\n): ComboboxStyle {\n switch (state) {\n case \"opened\":\n return { panelOpacity: 1, panelScale: 1, panelTranslateY: 0 };\n default:\n return { panelOpacity: 0, panelScale: 0.96, panelTranslateY: -4 };\n }\n}\n\nfunction rowState(\n i: number,\n selectedIndex: number,\n highlightedIndex: number,\n pressedIndex: number,\n): SelectItemState {\n if (i === pressedIndex) return \"press\";\n if (i === selectedIndex) return \"selected\";\n if (i === highlightedIndex) return \"hover\";\n return \"idle\";\n}\n\nexport function Combobox({\n state = \"closed\",\n style,\n query = \"\",\n revealCount,\n placeholder = \"Select a fruit…\",\n items = [\"Apple\", \"Banana\", \"Orange\", \"Grape\"],\n selectedIndex = -1,\n highlightedIndex = -1,\n pressedIndex = -1,\n itemStyles,\n inputStyle: inputStyleOverride,\n theme: themeOverride,\n mode,\n className,\n}: ComboboxProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = comboboxStyleContext(theme);\n const v = style ?? comboboxStyle(state, ctx);\n\n const visibleQuery =\n revealCount === undefined ? query : query.slice(0, revealCount);\n const filtered = filterComboboxItems(items, query, revealCount);\n\n const trigger: InputStyle =\n inputStyleOverride ??\n inputStyle(visibleQuery ? \"typing\" : \"idle\", ctx.triggerCtx);\n\n const valueWidth = visibleQuery.length * 8;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div style={{ position: \"relative\", width: WIDTH }}>\n {}\n <div\n style={{\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n width: WIDTH,\n boxSizing: \"border-box\",\n height: 40,\n padding: \"0 14px\",\n fontSize: 15,\n letterSpacing: \"-0.01em\",\n background: trigger.background,\n border: `1px solid ${trigger.borderColor}`,\n borderRadius: theme.radius,\n boxShadow: `0 0 0 ${trigger.ringWidth}px ${trigger.ringColor}`,\n }}\n >\n {}\n <span\n style={{\n position: \"absolute\",\n left: 14,\n color: ctx.triggerCtx.mutedForeground,\n opacity: trigger.valueReveal > 0 ? 0 : trigger.placeholderOpacity,\n pointerEvents: \"none\",\n whiteSpace: \"nowrap\",\n }}\n >\n {placeholder}\n </span>\n {}\n <div style={{ display: \"flex\", alignItems: \"center\", minWidth: 0 }}>\n <span\n style={{\n display: \"inline-block\",\n width: valueWidth * trigger.valueReveal,\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n color: ctx.triggerCtx.foreground,\n }}\n >\n {visibleQuery}\n </span>\n <span\n style={{\n flexShrink: 0,\n width: 2,\n height: 17,\n borderRadius: 1,\n background: ctx.triggerCtx.foreground,\n opacity: trigger.caretOpacity,\n }}\n />\n </div>\n </div>\n {}\n <div\n style={{\n position: \"absolute\",\n top: \"calc(100% + 6px)\",\n left: 0,\n width: WIDTH,\n boxSizing: \"border-box\",\n transformOrigin: \"top\",\n transform: `translateY(${v.panelTranslateY}px) scale(${v.panelScale})`,\n opacity: v.panelOpacity,\n background: ctx.panelBg,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius,\n padding: 4,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 2,\n boxShadow: \"0 16px 32px -12px rgba(0,0,0,0.25)\",\n }}\n >\n {filtered.length === 0 ? (\n <div\n style={{\n padding: \"12px\",\n textAlign: \"center\",\n fontSize: 14,\n color: ctx.mutedFg,\n }}\n >\n No results found.\n </div>\n ) : (\n filtered.map((item, i) => {\n const override = itemStyles?.[i];\n return (\n <SelectItemRow\n key={item}\n style={\n override ??\n selectItemStyle(\n rowState(i, selectedIndex, highlightedIndex, pressedIndex),\n ctx.itemCtx,\n )\n }\n ctx={ctx.itemCtx}\n label={item}\n width={WIDTH - 8}\n radius={theme.radius}\n check={ctx.itemCtx.check}\n />\n );\n })\n )}\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/combobox.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/combobox/use-combobox-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n comboboxStyle,\n comboboxStyleContext,\n type ComboboxState,\n type ComboboxStyle,\n} from \"@/components/remocn/combobox\";\n\nexport const DEFAULT_DURATION = 12;\n\nexport function tweenComboboxStyle(\n a: ComboboxStyle,\n b: ComboboxStyle,\n t: number,\n): ComboboxStyle {\n return {\n panelOpacity: a.panelOpacity + (b.panelOpacity - a.panelOpacity) * t,\n panelScale: a.panelScale + (b.panelScale - a.panelScale) * t,\n panelTranslateY:\n a.panelTranslateY + (b.panelTranslateY - a.panelTranslateY) * t,\n };\n}\n\nexport interface ComboboxTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useComboboxTransition(\n steps: Step<ComboboxState>[],\n opts: ComboboxTransitionOptions = {},\n): ComboboxStyle {\n const {\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = comboboxStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenComboboxStyle(\n comboboxStyle(from, ctx),\n comboboxStyle(to, ctx),\n t,\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-combobox-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/command-menu-item.json b/public/r/command-menu-item.json
new file mode 100644
index 00000000..91f8279e
--- /dev/null
+++ b/public/r/command-menu-item.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "command-menu-item",
+ "title": "UI Command Menu Item",
+ "description": "A command-palette row whose idle/hover/press/selected state is a pure function of the timeline. Leading icon + label + trailing shortcut kbd. Exports an inline CommandMenuItemRow (reused by CommandMenu) and a standalone CommandMenuItem atom; the row background, label color, and icon color are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/command-menu-item/index.tsx",
+ "content": "\"use client\";\n\nimport { mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type CommandMenuItemState = \"idle\" | \"hover\" | \"press\" | \"selected\";\n\nexport interface CommandMenuItemProps {\n state?: CommandMenuItemState;\n style?: CommandMenuItemStyle;\n label?: string;\n icon?: CommandMenuIcon;\n shortcut?: string;\n width?: number;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nexport type CommandMenuIcon = \"search\" | \"settings\" | \"user\" | \"file\";\n\nconst ROW_WIDTH = 360;\n\nexport interface CommandMenuItemStyle {\n background: string;\n labelColor: string;\n iconColor: string;\n scale: number;\n}\n\nexport interface CommandMenuItemStyleContext {\n idleBg: string;\n hoverBg: string;\n pressBg: string;\n selectedBg: string;\n idleFg: string;\n selectedFg: string;\n idleIcon: string;\n selectedIcon: string;\n kbdBg: string;\n kbdFg: string;\n kbdBorder: string;\n}\n\nexport function commandMenuItemStyleContext(\n theme: RemocnTheme,\n): CommandMenuItemStyleContext {\n return {\n idleBg: theme.popover,\n hoverBg: theme.accent,\n pressBg: mixOklch(theme.accent, theme.foreground, 0.08),\n selectedBg: theme.accent,\n idleFg: theme.popoverForeground,\n selectedFg: theme.accentForeground,\n idleIcon: theme.mutedForeground,\n selectedIcon: theme.foreground,\n kbdBg: theme.muted,\n kbdFg: theme.mutedForeground,\n kbdBorder: theme.border,\n };\n}\n\nexport function commandMenuItemStyle(\n state: CommandMenuItemState,\n ctx: CommandMenuItemStyleContext,\n): CommandMenuItemStyle {\n switch (state) {\n case \"hover\":\n return {\n background: ctx.hoverBg,\n labelColor: ctx.idleFg,\n iconColor: ctx.selectedIcon,\n scale: 1,\n };\n case \"press\":\n return {\n background: ctx.pressBg,\n labelColor: ctx.idleFg,\n iconColor: ctx.selectedIcon,\n scale: 0.98,\n };\n case \"selected\":\n return {\n background: ctx.selectedBg,\n labelColor: ctx.selectedFg,\n iconColor: ctx.selectedIcon,\n scale: 1,\n };\n default:\n return {\n background: ctx.idleBg,\n labelColor: ctx.idleFg,\n iconColor: ctx.idleIcon,\n scale: 1,\n };\n }\n}\n\nconst ICON_PATHS: Record<CommandMenuIcon, string> = {\n search: \"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM20 20l-3.5-3.5\",\n settings:\n \"M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM12 2v3 M12 19v3 M4.2 4.2l2.1 2.1 M17.7 17.7l2.1 2.1 M2 12h3 M19 12h3 M4.2 19.8l2.1-2.1 M17.7 6.3l2.1-2.1\",\n user: \"M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM5 20a7 7 0 0 1 14 0\",\n file: \"M7 3h7l4 4v14H7ZM14 3v4h4\",\n};\n\nfunction CommandMenuItemIcon({\n icon,\n color,\n}: {\n icon: CommandMenuIcon;\n color: string;\n}) {\n return (\n <svg width={16} height={16} viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d={ICON_PATHS[icon]}\n stroke={color}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n\nexport interface CommandMenuItemRowProps {\n style?: CommandMenuItemStyle;\n state?: CommandMenuItemState;\n ctx: CommandMenuItemStyleContext;\n label: string;\n icon?: CommandMenuIcon;\n shortcut?: string;\n width: number;\n radius: number;\n}\n\nexport function CommandMenuItemRow({\n style,\n state = \"idle\",\n ctx,\n label,\n icon,\n shortcut,\n width,\n radius,\n}: CommandMenuItemRowProps) {\n const v = style ?? commandMenuItemStyle(state, ctx);\n return (\n <div\n style={{\n width,\n boxSizing: \"border-box\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n gap: 12,\n padding: \"8px 12px\",\n borderRadius: radius,\n transform: `scale(${v.scale})`,\n background: v.background,\n color: v.labelColor,\n fontSize: 14,\n letterSpacing: \"-0.01em\",\n }}\n >\n <span\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 10,\n minWidth: 0,\n }}\n >\n {icon !== undefined && (\n <span style={{ display: \"flex\", flexShrink: 0 }}>\n <CommandMenuItemIcon icon={icon} color={v.iconColor} />\n </span>\n )}\n <span\n style={{\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n }}\n >\n {label}\n </span>\n </span>\n {shortcut !== undefined && (\n <kbd\n style={{\n flexShrink: 0,\n display: \"inline-flex\",\n alignItems: \"center\",\n gap: 2,\n height: 20,\n padding: \"0 6px\",\n fontSize: 12,\n fontFamily: \"inherit\",\n letterSpacing: \"0.05em\",\n color: ctx.kbdFg,\n background: ctx.kbdBg,\n border: `1px solid ${ctx.kbdBorder}`,\n borderRadius: Math.max(4, radius - 4),\n }}\n >\n {shortcut}\n </kbd>\n )}\n </div>\n );\n}\n\nexport function CommandMenuItem({\n state = \"idle\",\n style,\n label = \"Settings\",\n icon = \"settings\",\n shortcut,\n width = ROW_WIDTH,\n theme: themeOverride,\n mode,\n className,\n}: CommandMenuItemProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = commandMenuItemStyleContext(theme);\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <CommandMenuItemRow\n style={style}\n state={state}\n ctx={ctx}\n label={label}\n icon={icon}\n shortcut={shortcut}\n width={width}\n radius={theme.radius}\n />\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/command-menu-item.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/command-menu-item/use-command-menu-item-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n mixOklch,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n commandMenuItemStyle,\n commandMenuItemStyleContext,\n type CommandMenuItemState,\n type CommandMenuItemStyle,\n} from \"@/components/remocn/command-menu-item\";\n\nexport const DEFAULT_DURATION = 8;\n\nexport function tweenCommandMenuItemStyle(\n a: CommandMenuItemStyle,\n b: CommandMenuItemStyle,\n t: number,\n): CommandMenuItemStyle {\n return {\n background: mixOklch(a.background, b.background, t),\n labelColor: mixOklch(a.labelColor, b.labelColor, t),\n iconColor: mixOklch(a.iconColor, b.iconColor, t),\n scale: a.scale + (b.scale - a.scale) * t,\n };\n}\n\nexport interface CommandMenuItemTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useCommandMenuItemTransition(\n steps: Step<CommandMenuItemState>[],\n opts: CommandMenuItemTransitionOptions = {},\n): CommandMenuItemStyle {\n const {\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = commandMenuItemStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"idle\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenCommandMenuItemStyle(\n commandMenuItemStyle(from, ctx),\n commandMenuItemStyle(to, ctx),\n t,\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-command-menu-item-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/command-menu.json b/public/r/command-menu.json
new file mode 100644
index 00000000..879b9909
--- /dev/null
+++ b/public/r/command-menu.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "command-menu",
+ "title": "UI Command Menu",
+ "description": "A ⌘K command palette whose opened/closed state is a pure function of the timeline; the panel zoom + backdrop dim are dialog-like keyframed presets. The search row reveals the typed query, the list is filtered by a pure case-insensitive substring on the visible query prefix, and rows reuse the CommandMenuItem row.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "command-menu-item"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/command-menu/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport {\n CommandMenuItemRow,\n commandMenuItemStyle,\n commandMenuItemStyleContext,\n type CommandMenuIcon,\n type CommandMenuItemState,\n type CommandMenuItemStyle,\n type CommandMenuItemStyleContext,\n} from \"@/components/remocn/command-menu-item\";\n\nexport type CommandMenuState = \"opened\" | \"closed\";\n\nexport interface CommandMenuEntry {\n icon?: CommandMenuIcon;\n label: string;\n shortcut?: string;\n}\n\nexport interface CommandMenuProps {\n state?: CommandMenuState;\n style?: CommandMenuStyle;\n query?: string;\n revealCount?: number;\n items?: CommandMenuEntry[];\n selectedIndex?: number;\n highlightedIndex?: number;\n pressedIndex?: number;\n itemStyles?: (CommandMenuItemStyle | undefined)[];\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst PANEL_WIDTH = 440;\nconst CONTENT_WIDTH = PANEL_WIDTH - 16;\nconst MAX_OVERLAY_ALPHA = 0.5;\n\nexport function filterCommandItems(\n items: CommandMenuEntry[],\n query: string,\n revealCount?: number,\n): CommandMenuEntry[] {\n const visible = (\n revealCount === undefined ? query : query.slice(0, revealCount)\n )\n .trim()\n .toLowerCase();\n if (visible === \"\") return items;\n return items.filter((item) => item.label.toLowerCase().includes(visible));\n}\n\nexport interface CommandMenuStyle {\n backdropOpacity: number;\n panelOpacity: number;\n panelScale: number;\n panelTranslateY: number;\n}\n\nexport interface CommandMenuStyleContext {\n panelBg: string;\n panelBorder: string;\n inputFg: string;\n placeholderFg: string;\n mutedFg: string;\n divider: string;\n caret: string;\n radius: number;\n itemCtx: CommandMenuItemStyleContext;\n}\n\nexport function commandMenuStyleContext(\n theme: RemocnTheme,\n): CommandMenuStyleContext {\n return {\n panelBg: theme.popover,\n panelBorder: theme.border,\n inputFg: theme.popoverForeground,\n placeholderFg: theme.mutedForeground,\n mutedFg: theme.mutedForeground,\n divider: theme.border,\n caret: theme.foreground,\n radius: theme.radius,\n itemCtx: commandMenuItemStyleContext(theme),\n };\n}\n\nexport function commandMenuStyle(\n state: CommandMenuState,\n _ctx: CommandMenuStyleContext,\n): CommandMenuStyle {\n switch (state) {\n case \"opened\":\n return {\n backdropOpacity: 1,\n panelOpacity: 1,\n panelScale: 1,\n panelTranslateY: 0,\n };\n default:\n return {\n backdropOpacity: 0,\n panelOpacity: 0,\n panelScale: 0.96,\n panelTranslateY: 8,\n };\n }\n}\n\nfunction rowState(\n i: number,\n selectedIndex: number,\n highlightedIndex: number,\n pressedIndex: number,\n): CommandMenuItemState {\n if (i === pressedIndex) return \"press\";\n if (i === selectedIndex) return \"selected\";\n if (i === highlightedIndex) return \"hover\";\n return \"idle\";\n}\n\nexport function CommandMenu({\n state = \"closed\",\n style,\n query = \"\",\n revealCount,\n items = [\n { icon: \"user\", label: \"Profile\", shortcut: \"⌘ P\" },\n { icon: \"settings\", label: \"Settings\", shortcut: \"⌘ S\" },\n { icon: \"file\", label: \"New File\", shortcut: \"⌘ N\" },\n { icon: \"search\", label: \"Search docs\" },\n ],\n selectedIndex = -1,\n highlightedIndex = -1,\n pressedIndex = -1,\n itemStyles,\n theme: themeOverride,\n mode,\n className,\n}: CommandMenuProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = commandMenuStyleContext(theme);\n const v = style ?? commandMenuStyle(state, ctx);\n\n const visibleQuery =\n revealCount === undefined ? query : query.slice(0, revealCount);\n const filtered = filterCommandItems(items, query, revealCount);\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n paddingTop: \"18%\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `rgba(0, 0, 0, ${MAX_OVERLAY_ALPHA * v.backdropOpacity})`,\n }}\n />\n <div\n className={className}\n style={{\n position: \"relative\",\n width: PANEL_WIDTH,\n boxSizing: \"border-box\",\n transformOrigin: \"top\",\n transform: `translateY(${v.panelTranslateY}px) scale(${v.panelScale})`,\n opacity: v.panelOpacity,\n background: ctx.panelBg,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius + 6,\n padding: 8,\n display: \"flex\",\n flexDirection: \"column\",\n boxShadow: \"0 24px 48px -12px rgba(0,0,0,0.25)\",\n }}\n >\n {}\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n gap: 10,\n padding: \"8px 10px\",\n }}\n >\n <svg width={18} height={18} viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14ZM20 20l-3.5-3.5\"\n stroke={ctx.mutedFg}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n <span\n style={{\n display: \"flex\",\n alignItems: \"center\",\n fontSize: 15,\n letterSpacing: \"-0.01em\",\n color: visibleQuery ? ctx.inputFg : ctx.placeholderFg,\n }}\n >\n {visibleQuery || \"Type a command or search…\"}\n {}\n <span\n style={{\n display: \"inline-block\",\n width: 1.5,\n height: 18,\n marginLeft: 1,\n background: ctx.caret,\n }}\n />\n </span>\n </div>\n {}\n <div\n style={{\n height: 1,\n background: ctx.divider,\n margin: \"4px 0\",\n }}\n />\n {}\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 2,\n padding: \"4px 0\",\n }}\n >\n {filtered.length === 0 ? (\n <div\n style={{\n padding: \"20px 12px\",\n textAlign: \"center\",\n fontSize: 14,\n color: ctx.mutedFg,\n }}\n >\n No results found.\n </div>\n ) : (\n filtered.map((item, i) => {\n const override = itemStyles?.[i];\n return (\n <CommandMenuItemRow\n key={item.label}\n style={\n override ??\n commandMenuItemStyle(\n rowState(\n i,\n selectedIndex,\n highlightedIndex,\n pressedIndex,\n ),\n ctx.itemCtx,\n )\n }\n ctx={ctx.itemCtx}\n label={item.label}\n icon={item.icon}\n shortcut={item.shortcut}\n width={CONTENT_WIDTH}\n radius={theme.radius}\n />\n );\n })\n )}\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/command-menu.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/command-menu/use-command-menu-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n commandMenuStyle,\n commandMenuStyleContext,\n type CommandMenuState,\n type CommandMenuStyle,\n} from \"@/components/remocn/command-menu\";\n\nexport const DEFAULT_DURATION = 12;\n\nexport function tweenCommandMenuStyle(\n a: CommandMenuStyle,\n b: CommandMenuStyle,\n t: number,\n): CommandMenuStyle {\n return {\n backdropOpacity:\n a.backdropOpacity + (b.backdropOpacity - a.backdropOpacity) * t,\n panelOpacity: a.panelOpacity + (b.panelOpacity - a.panelOpacity) * t,\n panelScale: a.panelScale + (b.panelScale - a.panelScale) * t,\n panelTranslateY:\n a.panelTranslateY + (b.panelTranslateY - a.panelTranslateY) * t,\n };\n}\n\nexport interface CommandMenuTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useCommandMenuTransition(\n steps: Step<CommandMenuState>[],\n opts: CommandMenuTransitionOptions = {},\n): CommandMenuStyle {\n const {\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = commandMenuStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenCommandMenuStyle(\n commandMenuStyle(from, ctx),\n commandMenuStyle(to, ctx),\n t,\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-command-menu-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/context-menu.json b/public/r/context-menu.json
new file mode 100644
index 00000000..5fef7623
--- /dev/null
+++ b/public/r/context-menu.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "context-menu",
+ "title": "UI Context Menu",
+ "description": "A right-click context menu whose opened/closed state is a pure function of the timeline; the panel scales from its top-left corner (the click point) with a fade + lift. No trigger — the caller positions it. Rows reuse the DropdownMenuItem row; items are plain string labels.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "dropdown-menu-item"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/context-menu/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport {\n DropdownMenuItemRow,\n dropdownMenuItemStyle,\n dropdownMenuItemStyleContext,\n type DropdownMenuItemState,\n type DropdownMenuItemStyle,\n type DropdownMenuItemStyleContext,\n} from \"@/components/remocn/dropdown-menu-item\";\n\nexport type ContextMenuState = \"opened\" | \"closed\";\n\nexport interface ContextMenuProps {\n state?: ContextMenuState;\n style?: ContextMenuStyle;\n items?: string[];\n highlightedIndex?: number;\n pressedIndex?: number;\n itemStyles?: (DropdownMenuItemStyle | undefined)[];\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst WIDTH = 200;\n\nexport interface ContextMenuStyle {\n opacity: number;\n scale: number;\n translateY: number;\n}\n\nexport interface ContextMenuStyleContext {\n panelBg: string;\n panelBorder: string;\n radius: number;\n itemCtx: DropdownMenuItemStyleContext;\n}\n\nexport function contextMenuStyleContext(\n theme: RemocnTheme,\n): ContextMenuStyleContext {\n return {\n panelBg: theme.popover,\n panelBorder: theme.border,\n radius: theme.radius,\n itemCtx: dropdownMenuItemStyleContext(theme),\n };\n}\n\nexport function contextMenuStyle(\n state: ContextMenuState,\n _ctx: ContextMenuStyleContext,\n): ContextMenuStyle {\n switch (state) {\n case \"opened\":\n return { opacity: 1, scale: 1, translateY: 0 };\n default:\n return { opacity: 0, scale: 0.95, translateY: -4 };\n }\n}\n\nfunction rowState(\n i: number,\n highlightedIndex: number,\n pressedIndex: number,\n): DropdownMenuItemState {\n if (i === pressedIndex) return \"press\";\n if (i === highlightedIndex) return \"hover\";\n return \"idle\";\n}\n\nexport function ContextMenu({\n state = \"closed\",\n style,\n items = [\"Back\", \"Reload\", \"Save As…\", \"Inspect\"],\n highlightedIndex = -1,\n pressedIndex = -1,\n itemStyles,\n theme: themeOverride,\n mode,\n className,\n}: ContextMenuProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = contextMenuStyleContext(theme);\n const v = style ?? contextMenuStyle(state, ctx);\n\n return (\n <div\n className={className}\n style={{\n width: WIDTH,\n opacity: v.opacity,\n transformOrigin: \"top left\",\n transform: `translateY(${v.translateY}px) scale(${v.scale})`,\n background: ctx.panelBg,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius + 2,\n padding: 4,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 2,\n boxShadow: \"0 12px 32px -8px rgba(0,0,0,0.18)\",\n boxSizing: \"border-box\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {items.map((item, i) => {\n const override = itemStyles?.[i];\n const rowStyle =\n override ??\n dropdownMenuItemStyle(\n rowState(i, highlightedIndex, pressedIndex),\n ctx.itemCtx,\n );\n return (\n <DropdownMenuItemRow\n key={item}\n style={rowStyle}\n label={item}\n width={WIDTH - 8}\n theme={themeOverride}\n mode={mode}\n />\n );\n })}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/context-menu.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/context-menu/use-context-menu-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n contextMenuStyle,\n contextMenuStyleContext,\n type ContextMenuState,\n type ContextMenuStyle,\n} from \"@/components/remocn/context-menu\";\n\nexport const DEFAULT_DURATION = 10;\n\nexport function tweenContextMenuStyle(\n a: ContextMenuStyle,\n b: ContextMenuStyle,\n t: number,\n): ContextMenuStyle {\n return {\n opacity: a.opacity + (b.opacity - a.opacity) * t,\n scale: a.scale + (b.scale - a.scale) * t,\n translateY: a.translateY + (b.translateY - a.translateY) * t,\n };\n}\n\nexport interface ContextMenuTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useContextMenuTransition(\n steps: Step<ContextMenuState>[],\n opts: ContextMenuTransitionOptions = {},\n): ContextMenuStyle {\n const {\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = contextMenuStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenContextMenuStyle(\n contextMenuStyle(from, ctx),\n contextMenuStyle(to, ctx),\n t,\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-context-menu-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/cursor.json b/public/r/cursor.json
new file mode 100644
index 00000000..90f576b6
--- /dev/null
+++ b/public/r/cursor.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "cursor",
+ "title": "UI Cursor",
+ "description": "An animated cursor that moves between waypoints, clicks (ripple), and drags. The Cursor renderer is a pure function of a numeric CursorStyle channel; useCursorPath reads the frame and eases the path, ripple, and press phases.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/cursor/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type CursorVariant = \"arrow\" | \"pointer\";\n\nexport interface CursorStyle {\n x: number;\n y: number;\n scale: number;\n rippleOpacity: number;\n rippleScale: number;\n pressScale?: number;\n}\n\nexport interface CursorProps {\n style?: CursorStyle;\n variant?: CursorVariant;\n size?: number;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n rippleColor?: string;\n className?: string;\n}\n\nconst REST: CursorStyle = {\n x: 0,\n y: 0,\n scale: 1,\n rippleOpacity: 0,\n rippleScale: 0,\n};\n\nconst ARROW_PATH =\n \"M1 1 L1 18.5 L5.6 14.4 L8.7 21.6 L11.6 20.4 L8.5 13.2 L14.5 13.2 Z\";\nconst POINTER_PATH =\n \"M8 2.2 C8 1.3 8.7 0.7 9.5 0.7 C10.3 0.7 11 1.3 11 2.2 L11 9 \" +\n \"C11 9 11.3 8.4 12.2 8.4 C13 8.4 13.4 9 13.4 9.6 \" +\n \"C13.4 9.6 13.9 9.1 14.7 9.1 C15.5 9.1 15.9 9.7 15.9 10.3 \" +\n \"C15.9 10.3 16.4 9.9 17.1 9.9 C17.9 9.9 18.3 10.5 18.3 11.2 \" +\n \"L18.3 16.8 C18.3 19.8 16.3 22.3 12.8 22.3 L11.4 22.3 \" +\n \"C9 22.3 7.9 21.2 6.6 19.2 L4 15.2 C3.5 14.4 3.7 13.4 4.5 12.9 \" +\n \"C5.1 12.5 5.9 12.6 6.4 13.2 L8 15 Z\";\n\nexport function Cursor({\n style,\n variant = \"arrow\",\n size = 28,\n theme: themeOverride,\n mode,\n rippleColor,\n className,\n}: CursorProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const v = style ?? REST;\n\n const press = v.pressScale ?? 1;\n const pressedScale = v.scale * (0.9 + 0.1 * press);\n\n const ring = rippleColor ?? theme.primary;\n const fill = theme.foreground;\n const stroke = theme.background;\n const rippleSize = size * 1.8;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n transform: `translate(${v.x}px, ${v.y}px)`,\n pointerEvents: \"none\",\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n left: -rippleSize / 2,\n top: -rippleSize / 2,\n width: rippleSize,\n height: rippleSize,\n borderRadius: \"50%\",\n border: `2px solid ${ring}`,\n opacity: v.rippleOpacity,\n transform: `scale(${v.rippleScale})`,\n transformOrigin: \"center\",\n }}\n />\n {}\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n transform: `scale(${pressedScale})`,\n transformOrigin: \"0 0\",\n filter: \"drop-shadow(0 1px 2px rgba(0,0,0,0.3))\",\n overflow: \"visible\",\n }}\n >\n <path\n d={variant === \"pointer\" ? POINTER_PATH : ARROW_PATH}\n fill={fill}\n stroke={stroke}\n strokeWidth={1.4}\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/cursor.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/cursor/use-cursor-path.ts",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\nimport {\n clamp01,\n type EasingName,\n easings,\n} from \"@/lib/remocn-ui\";\nimport type { CursorStyle } from \"@/components/remocn/cursor\";\n\nexport interface CursorWaypoint {\n at: number;\n x: number;\n y: number;\n duration?: number;\n click?: boolean;\n press?: boolean;\n easing?: EasingName;\n}\n\nexport const DEFAULT_DURATION = 24;\n\nexport const CLICK_FRAMES = 16;\n\nexport const PRESS_FRAMES = 8;\n\nexport interface CursorPathOptions {\n speed?: number;\n defaultDuration?: number;\n}\n\nfunction lerp(a: number, b: number, t: number): number {\n return a + (b - a) * t;\n}\n\nexport function ripplePhase(framesSinceClick: number): {\n rippleOpacity: number;\n rippleScale: number;\n} {\n if (framesSinceClick < 0 || framesSinceClick >= CLICK_FRAMES) {\n return { rippleOpacity: 0, rippleScale: 0 };\n }\n const p = clamp01(framesSinceClick / CLICK_FRAMES);\n return {\n rippleOpacity: 0.5 * (1 - p),\n rippleScale: 2.5 * easings.out(p),\n };\n}\n\nexport function clickPress(framesSinceClick: number): number {\n if (framesSinceClick < 0 || framesSinceClick >= PRESS_FRAMES) return 1;\n const half = PRESS_FRAMES / 2;\n const p =\n framesSinceClick < half\n ? framesSinceClick / half\n : 1 - (framesSinceClick - half) / half;\n return 1 - clamp01(p);\n}\n\nexport function useCursorPath(\n waypoints: CursorWaypoint[],\n opts: CursorPathOptions = {},\n): CursorStyle {\n const { speed = 1 } = opts;\n const raw = useCurrentFrame() * speed;\n return cursorPathAt(waypoints, raw, opts);\n}\n\nexport function cursorPathAt(\n waypoints: CursorWaypoint[],\n raw: number,\n opts: CursorPathOptions = {},\n): CursorStyle {\n const { defaultDuration = DEFAULT_DURATION } = opts;\n\n if (waypoints.length === 0) {\n return { x: 0, y: 0, scale: 1, rippleOpacity: 0, rippleScale: 0 };\n }\n\n const first = waypoints[0];\n\n if (raw <= first.at) {\n return {\n x: first.x,\n y: first.y,\n scale: 1,\n rippleOpacity: 0,\n rippleScale: 0,\n pressScale: 1,\n };\n }\n\n let toIndex = waypoints.length - 1;\n for (let i = 1; i < waypoints.length; i++) {\n if (waypoints[i].at > raw) {\n toIndex = i;\n break;\n }\n }\n const pastLast = raw >= waypoints[waypoints.length - 1].at;\n const to = pastLast ? waypoints[waypoints.length - 1] : waypoints[toIndex];\n const from = pastLast\n ? waypoints[waypoints.length - 1]\n : waypoints[toIndex - 1];\n\n const dur = to.duration ?? defaultDuration;\n const ease = easings[to.easing ?? \"inOut\"];\n const start = to.at - dur;\n const t = pastLast || dur <= 0 ? 1 : ease(clamp01((raw - start) / dur));\n const x = lerp(from.x, to.x, t);\n const y = lerp(from.y, to.y, t);\n\n let lastClickAt = -Infinity;\n for (const wp of waypoints) {\n if (wp.click && wp.at <= raw && wp.at > lastClickAt) lastClickAt = wp.at;\n }\n const sinceClick = lastClickAt === -Infinity ? -1 : raw - lastClickAt;\n const ripple = ripplePhase(sinceClick);\n const clickDip = clickPress(sinceClick);\n\n const holdWp = pastLast ? waypoints[waypoints.length - 1] : from;\n const heldPress = holdWp.press ? 0 : 1;\n\n const pressScale = Math.min(clickDip, heldPress);\n\n return {\n x,\n y,\n scale: 1,\n rippleOpacity: ripple.rippleOpacity,\n rippleScale: ripple.rippleScale,\n pressScale,\n };\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-cursor-path.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/dialog.json b/public/r/dialog.json
new file mode 100644
index 00000000..1f0b682c
--- /dev/null
+++ b/public/r/dialog.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "dialog",
+ "title": "UI Dialog",
+ "description": "A modal dialog whose opened/closed state is a pure function of the timeline; the backdrop dim and popup zoom are keyframed presets, with a close button and a primary action. Self-contained — pair it with the Button as a trigger (see the example).",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/dialog/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type DialogState = \"opened\" | \"closed\";\n\nexport interface DialogProps {\n state?: DialogState;\n style?: DialogStyle;\n title?: string;\n description?: string;\n actionLabel?: string;\n cancelLabel?: string;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst POPUP_WIDTH = 440;\nconst MAX_OVERLAY_ALPHA = 0.5;\n\nexport interface DialogStyle {\n overlayOpacity: number;\n popupOpacity: number;\n popupScale: number;\n popupTranslateY: number;\n}\n\nexport interface DialogStyleContext {\n popoverBg: string;\n popoverFg: string;\n mutedFg: string;\n border: string;\n radius: number;\n actionBg: string;\n actionFg: string;\n cancelFg: string;\n}\n\nexport function dialogStyleContext(theme: RemocnTheme): DialogStyleContext {\n return {\n popoverBg: theme.popover,\n popoverFg: theme.popoverForeground,\n mutedFg: theme.mutedForeground,\n border: theme.border,\n radius: theme.radius,\n actionBg: theme.primary,\n actionFg: theme.primaryForeground,\n cancelFg: theme.foreground,\n };\n}\n\nexport function dialogStyle(\n state: DialogState,\n _ctx: DialogStyleContext,\n): DialogStyle {\n switch (state) {\n case \"opened\":\n return {\n overlayOpacity: 1,\n popupOpacity: 1,\n popupScale: 1,\n popupTranslateY: 0,\n };\n default:\n return {\n overlayOpacity: 0,\n popupOpacity: 0,\n popupScale: 0.95,\n popupTranslateY: 8,\n };\n }\n}\n\nexport function Dialog({\n state = \"closed\",\n style,\n title = \"Edit profile\",\n description = \"Make changes to your profile here. Click save when you're done.\",\n actionLabel = \"Save changes\",\n cancelLabel = \"Cancel\",\n theme: themeOverride,\n mode,\n className,\n}: DialogProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n\n const ctx = dialogStyleContext(theme);\n const v = style ?? dialogStyle(state, ctx);\n\n const buttonBase: React.CSSProperties = {\n height: 40,\n padding: \"0 20px\",\n fontSize: 15,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n borderRadius: ctx.radius,\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n cursor: \"pointer\",\n };\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `rgba(0, 0, 0, ${MAX_OVERLAY_ALPHA * v.overlayOpacity})`,\n }}\n />\n <div\n className={className}\n style={{\n position: \"relative\",\n width: POPUP_WIDTH,\n transform: `translateY(${v.popupTranslateY}px) scale(${v.popupScale})`,\n opacity: v.popupOpacity,\n background: ctx.popoverBg,\n color: ctx.popoverFg,\n border: `1px solid ${ctx.border}`,\n borderRadius: ctx.radius + 6,\n padding: 24,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 8,\n boxShadow: \"0 24px 48px -12px rgba(0,0,0,0.25)\",\n }}\n >\n {}\n <button\n type=\"button\"\n style={{\n position: \"absolute\",\n top: 16,\n right: 16,\n width: 28,\n height: 28,\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"transparent\",\n border: \"none\",\n borderRadius: ctx.radius,\n color: ctx.mutedFg,\n cursor: \"pointer\",\n }}\n >\n <svg width={16} height={16} viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M18 6 6 18 M6 6 18 18\"\n stroke={ctx.mutedFg}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </button>\n <div\n style={{\n fontSize: 18,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n paddingRight: 28,\n }}\n >\n {title}\n </div>\n <div style={{ fontSize: 14, lineHeight: 1.5, color: ctx.mutedFg }}>\n {description}\n </div>\n <div\n style={{\n display: \"flex\",\n justifyContent: \"flex-end\",\n gap: 8,\n marginTop: 16,\n }}\n >\n {}\n <button\n type=\"button\"\n style={{\n ...buttonBase,\n background: \"transparent\",\n color: ctx.cancelFg,\n border: `1px solid ${ctx.border}`,\n }}\n >\n {cancelLabel}\n </button>\n {}\n <button\n type=\"button\"\n style={{\n ...buttonBase,\n background: ctx.actionBg,\n color: ctx.actionFg,\n border: \"1px solid transparent\",\n }}\n >\n {actionLabel}\n </button>\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/dialog.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/dialog/use-dialog-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n dialogStyle,\n dialogStyleContext,\n type DialogState,\n type DialogStyle,\n} from \"@/components/remocn/dialog\";\n\nexport const DEFAULT_DURATION = 12;\n\nexport function tweenDialogStyle(\n a: DialogStyle,\n b: DialogStyle,\n t: number,\n): DialogStyle {\n return {\n overlayOpacity: a.overlayOpacity + (b.overlayOpacity - a.overlayOpacity) * t,\n popupOpacity: a.popupOpacity + (b.popupOpacity - a.popupOpacity) * t,\n popupScale: a.popupScale + (b.popupScale - a.popupScale) * t,\n popupTranslateY:\n a.popupTranslateY + (b.popupTranslateY - a.popupTranslateY) * t,\n };\n}\n\nexport interface DialogTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useDialogTransition(\n steps: Step<DialogState>[],\n opts: DialogTransitionOptions = {},\n): DialogStyle {\n const {\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = dialogStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenDialogStyle(dialogStyle(from, ctx), dialogStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-dialog-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/drawer.json b/public/r/drawer.json
new file mode 100644
index 00000000..00840813
--- /dev/null
+++ b/public/r/drawer.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "drawer",
+ "title": "UI Drawer",
+ "description": "A bottom panel whose opened/closed state is a pure function of the timeline; the backdrop dim and bottom-edge slide-up are keyframed presets, with a drag handle and a primary action. Self-contained — pair it with the Button as a trigger (see the example).",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/drawer/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type DrawerState = \"opened\" | \"closed\";\n\nexport interface DrawerProps {\n state?: DrawerState;\n style?: DrawerStyle;\n title?: string;\n description?: string;\n actionLabel?: string;\n cancelLabel?: string;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst DRAWER_HEIGHT = 320;\nconst MAX_OVERLAY_ALPHA = 0.5;\n\nexport interface DrawerStyle {\n overlayOpacity: number;\n panelOpacity: number;\n panelTranslateY: number;\n}\n\nexport interface DrawerStyleContext {\n popoverBg: string;\n popoverFg: string;\n mutedFg: string;\n border: string;\n radius: number;\n actionBg: string;\n actionFg: string;\n cancelFg: string;\n}\n\nexport function drawerStyleContext(theme: RemocnTheme): DrawerStyleContext {\n return {\n popoverBg: theme.popover,\n popoverFg: theme.popoverForeground,\n mutedFg: theme.mutedForeground,\n border: theme.border,\n radius: theme.radius,\n actionBg: theme.primary,\n actionFg: theme.primaryForeground,\n cancelFg: theme.foreground,\n };\n}\n\nexport function drawerStyle(\n state: DrawerState,\n _ctx: DrawerStyleContext,\n): DrawerStyle {\n switch (state) {\n case \"opened\":\n return {\n overlayOpacity: 1,\n panelOpacity: 1,\n panelTranslateY: 0,\n };\n default:\n return {\n overlayOpacity: 0,\n panelOpacity: 0,\n panelTranslateY: DRAWER_HEIGHT,\n };\n }\n}\n\nexport function Drawer({\n state = \"closed\",\n style,\n title = \"Edit profile\",\n description = \"Make changes to your profile here. Click save when you're done.\",\n actionLabel = \"Save changes\",\n cancelLabel = \"Cancel\",\n theme: themeOverride,\n mode,\n className,\n}: DrawerProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n\n const ctx = drawerStyleContext(theme);\n const v = style ?? drawerStyle(state, ctx);\n\n const buttonBase: React.CSSProperties = {\n height: 40,\n padding: \"0 20px\",\n fontSize: 15,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n borderRadius: ctx.radius,\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n cursor: \"pointer\",\n };\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `rgba(0, 0, 0, ${MAX_OVERLAY_ALPHA * v.overlayOpacity})`,\n }}\n />\n {}\n <div\n className={className}\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n bottom: 0,\n height: DRAWER_HEIGHT,\n transform: `translateY(${v.panelTranslateY}px)`,\n opacity: v.panelOpacity,\n background: ctx.popoverBg,\n color: ctx.popoverFg,\n borderTop: `1px solid ${ctx.border}`,\n borderTopLeftRadius: ctx.radius + 6,\n borderTopRightRadius: ctx.radius + 6,\n padding: 24,\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n gap: 8,\n boxShadow: \"0 -24px 48px -12px rgba(0,0,0,0.25)\",\n }}\n >\n {}\n <div\n style={{\n width: 40,\n height: 5,\n borderRadius: 999,\n background: ctx.border,\n marginBottom: 8,\n }}\n />\n {}\n <div\n style={{\n width: \"100%\",\n maxWidth: 440,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 8,\n }}\n >\n <div\n style={{\n fontSize: 18,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n }}\n >\n {title}\n </div>\n <div style={{ fontSize: 14, lineHeight: 1.5, color: ctx.mutedFg }}>\n {description}\n </div>\n <div\n style={{\n display: \"flex\",\n justifyContent: \"flex-end\",\n gap: 8,\n marginTop: 16,\n }}\n >\n {}\n <button\n type=\"button\"\n style={{\n ...buttonBase,\n background: \"transparent\",\n color: ctx.cancelFg,\n border: `1px solid ${ctx.border}`,\n }}\n >\n {cancelLabel}\n </button>\n {}\n <button\n type=\"button\"\n style={{\n ...buttonBase,\n background: ctx.actionBg,\n color: ctx.actionFg,\n border: \"1px solid transparent\",\n }}\n >\n {actionLabel}\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/drawer.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/drawer/use-drawer-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n drawerStyle,\n drawerStyleContext,\n type DrawerState,\n type DrawerStyle,\n} from \"@/components/remocn/drawer\";\n\nexport const DEFAULT_DURATION = 12;\n\nexport function tweenDrawerStyle(\n a: DrawerStyle,\n b: DrawerStyle,\n t: number,\n): DrawerStyle {\n return {\n overlayOpacity: a.overlayOpacity + (b.overlayOpacity - a.overlayOpacity) * t,\n panelOpacity: a.panelOpacity + (b.panelOpacity - a.panelOpacity) * t,\n panelTranslateY:\n a.panelTranslateY + (b.panelTranslateY - a.panelTranslateY) * t,\n };\n}\n\nexport interface DrawerTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useDrawerTransition(\n steps: Step<DrawerState>[],\n opts: DrawerTransitionOptions = {},\n): DrawerStyle {\n const {\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = drawerStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenDrawerStyle(drawerStyle(from, ctx), drawerStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-drawer-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/dropdown-menu-item.json b/public/r/dropdown-menu-item.json
new file mode 100644
index 00000000..05b11c4e
--- /dev/null
+++ b/public/r/dropdown-menu-item.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "dropdown-menu-item",
+ "title": "UI Dropdown Menu Item",
+ "description": "A dropdown menu action row whose idle/hover/press state is a pure function of the timeline; the row background and label color are keyframed presets. Composed inside the DropdownMenu panel.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/dropdown-menu-item/index.tsx",
+ "content": "\"use client\";\n\nimport { mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type DropdownMenuItemState = \"idle\" | \"hover\" | \"press\";\n\nexport interface DropdownMenuItemStyle {\n background: string;\n labelColor: string;\n scale: number;\n}\n\nexport interface DropdownMenuItemStyleContext {\n idleBg: string;\n hoverBg: string;\n pressBg: string;\n idleFg: string;\n}\n\nexport function dropdownMenuItemStyleContext(\n theme: RemocnTheme,\n): DropdownMenuItemStyleContext {\n return {\n idleBg: theme.popover,\n hoverBg: theme.accent,\n pressBg: mixOklch(theme.accent, theme.foreground, 0.08),\n idleFg: theme.popoverForeground,\n };\n}\n\nexport function dropdownMenuItemStyle(\n state: DropdownMenuItemState,\n ctx: DropdownMenuItemStyleContext,\n): DropdownMenuItemStyle {\n switch (state) {\n case \"hover\":\n return { background: ctx.hoverBg, labelColor: ctx.idleFg, scale: 1 };\n case \"press\":\n return { background: ctx.pressBg, labelColor: ctx.idleFg, scale: 0.98 };\n default:\n return { background: ctx.idleBg, labelColor: ctx.idleFg, scale: 1 };\n }\n}\n\nconst ROW_WIDTH = 240;\n\nexport interface DropdownMenuItemRowProps {\n style?: DropdownMenuItemStyle;\n state?: DropdownMenuItemState;\n label?: string;\n width?: number;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n}\n\nexport function DropdownMenuItemRow({\n style,\n state = \"idle\",\n label = \"Profile\",\n width = ROW_WIDTH,\n theme: themeOverride,\n mode,\n}: DropdownMenuItemRowProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = dropdownMenuItemStyleContext(theme);\n const v = style ?? dropdownMenuItemStyle(state, ctx);\n\n return (\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n width,\n padding: \"8px 12px\",\n borderRadius: theme.radius,\n background: v.background,\n color: v.labelColor,\n transform: `scale(${v.scale})`,\n fontSize: 14,\n letterSpacing: \"-0.01em\",\n boxSizing: \"border-box\",\n }}\n >\n <span>{label}</span>\n </div>\n );\n}\n\nexport interface DropdownMenuItemProps extends DropdownMenuItemRowProps {\n className?: string;\n}\n\nexport function DropdownMenuItem({\n style,\n state = \"idle\",\n label = \"Profile\",\n width = ROW_WIDTH,\n theme: themeOverride,\n mode,\n className,\n}: DropdownMenuItemProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <DropdownMenuItemRow\n style={style}\n state={state}\n label={label}\n width={width}\n theme={themeOverride}\n mode={mode}\n />\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/dropdown-menu-item.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/dropdown-menu-item/use-dropdown-menu-item-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n mixOklch,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n dropdownMenuItemStyle,\n dropdownMenuItemStyleContext,\n type DropdownMenuItemState,\n type DropdownMenuItemStyle,\n} from \"@/components/remocn/dropdown-menu-item\";\n\nexport const DEFAULT_DURATION = 8;\n\nexport function tweenDropdownMenuItemStyle(\n a: DropdownMenuItemStyle,\n b: DropdownMenuItemStyle,\n t: number,\n): DropdownMenuItemStyle {\n return {\n scale: a.scale + (b.scale - a.scale) * t,\n background: mixOklch(a.background, b.background, t),\n labelColor: mixOklch(a.labelColor, b.labelColor, t),\n };\n}\n\nexport interface DropdownMenuItemTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n primary?: string;\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useDropdownMenuItemTransition(\n steps: Step<DropdownMenuItemState>[],\n opts: DropdownMenuItemTransitionOptions = {},\n): DropdownMenuItemStyle {\n const {\n theme: themeOverride,\n mode,\n primary,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n const ctx = dropdownMenuItemStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"idle\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenDropdownMenuItemStyle(\n dropdownMenuItemStyle(from, ctx),\n dropdownMenuItemStyle(to, ctx),\n t,\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-dropdown-menu-item-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/dropdown-menu.json b/public/r/dropdown-menu.json
new file mode 100644
index 00000000..f0bee104
--- /dev/null
+++ b/public/r/dropdown-menu.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "dropdown-menu",
+ "title": "UI Dropdown Menu",
+ "description": "A dropdown menu whose opened/closed state is a pure function of the timeline; the trigger reuses the Button primitive and the reveal panel composes DropdownMenuItem rows. The panel fade, scale, lift, and chevron are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "button",
+ "dropdown-menu-item"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/dropdown-menu/index.tsx",
+ "content": "\"use client\";\n\nimport {\n buttonStyle,\n buttonStyleContext,\n type ButtonStyle,\n type ButtonStyleContext,\n} from \"@/components/remocn/button\";\nimport {\n DropdownMenuItemRow,\n dropdownMenuItemStyle,\n dropdownMenuItemStyleContext,\n type DropdownMenuItemStyle,\n type DropdownMenuItemStyleContext,\n} from \"@/components/remocn/dropdown-menu-item\";\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type DropdownMenuState = \"opened\" | \"closed\";\n\nexport interface DropdownMenuStyle {\n panelOpacity: number;\n panelScale: number;\n panelTranslateY: number;\n chevronRotation: number;\n}\n\nexport interface DropdownMenuStyleContext {\n triggerCtx: ButtonStyleContext;\n panelBg: string;\n panelBorder: string;\n triggerFg: string;\n mutedFg: string;\n radius: number;\n itemCtx: DropdownMenuItemStyleContext;\n}\n\nexport function dropdownMenuStyleContext(\n theme: RemocnTheme,\n): DropdownMenuStyleContext {\n return {\n triggerCtx: buttonStyleContext(\"outline\", theme),\n panelBg: theme.popover,\n panelBorder: theme.border,\n triggerFg: theme.foreground,\n mutedFg: theme.mutedForeground,\n radius: theme.radius,\n itemCtx: dropdownMenuItemStyleContext(theme),\n };\n}\n\nexport function dropdownMenuStyle(\n state: DropdownMenuState,\n _ctx: DropdownMenuStyleContext,\n): DropdownMenuStyle {\n switch (state) {\n case \"opened\":\n return {\n panelOpacity: 1,\n panelScale: 1,\n panelTranslateY: 0,\n chevronRotation: 180,\n };\n default:\n return {\n panelOpacity: 0,\n panelScale: 0.96,\n panelTranslateY: -4,\n chevronRotation: 0,\n };\n }\n}\n\nconst WIDTH = 240;\n\nexport interface DropdownMenuProps {\n state?: DropdownMenuState;\n style?: DropdownMenuStyle;\n label?: string;\n items?: string[];\n highlightedIndex?: number;\n pressedIndex?: number;\n itemStyles?: (DropdownMenuItemStyle | undefined)[];\n triggerStyle?: ButtonStyle;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nexport function DropdownMenu({\n state = \"closed\",\n style,\n label = \"Options\",\n items = [\"Profile\", \"Billing\", \"Settings\", \"Log out\"],\n highlightedIndex = -1,\n pressedIndex = -1,\n itemStyles,\n triggerStyle,\n theme: themeOverride,\n mode,\n className,\n}: DropdownMenuProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n\n const ctx = dropdownMenuStyleContext(theme);\n const v = style ?? dropdownMenuStyle(state, ctx);\n\n const trigger = triggerStyle ?? buttonStyle(\"idle\", ctx.triggerCtx);\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n paddingTop: 220,\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div style={{ position: \"relative\", width: WIDTH }}>\n {}\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n gap: 12,\n width: WIDTH,\n height: 40,\n padding: \"0 16px\",\n fontSize: 15,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: ctx.triggerFg,\n background: trigger.background,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius,\n transform: `translateY(${trigger.translateY}px) scale(${trigger.scale})`,\n boxSizing: \"border-box\",\n }}\n >\n <span>{label}</span>\n <svg\n width={16}\n height={16}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{\n flexShrink: 0,\n transform: `rotate(${v.chevronRotation}deg)`,\n }}\n >\n <path\n d=\"M6 9l6 6 6-6\"\n stroke={ctx.mutedFg}\n strokeWidth=\"2.2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n {}\n <div\n style={{\n position: \"absolute\",\n top: 48,\n left: 0,\n width: WIDTH,\n opacity: v.panelOpacity,\n transform: `translateY(${v.panelTranslateY}px) scale(${v.panelScale})`,\n transformOrigin: \"top\",\n background: ctx.panelBg,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius + 2,\n padding: 4,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 2,\n boxShadow: \"0 12px 32px -8px rgba(0,0,0,0.18)\",\n boxSizing: \"border-box\",\n }}\n >\n {items.map((item, i) => {\n const override = itemStyles?.[i];\n const rowState =\n i === pressedIndex\n ? \"press\"\n : i === highlightedIndex\n ? \"hover\"\n : \"idle\";\n const rowStyle =\n override ?? dropdownMenuItemStyle(rowState, ctx.itemCtx);\n return (\n <DropdownMenuItemRow\n key={item}\n style={rowStyle}\n label={item}\n width={WIDTH - 8}\n theme={themeOverride}\n mode={mode}\n />\n );\n })}\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/dropdown-menu.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/dropdown-menu/use-dropdown-menu-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n dropdownMenuStyle,\n dropdownMenuStyleContext,\n type DropdownMenuState,\n type DropdownMenuStyle,\n} from \"@/components/remocn/dropdown-menu\";\n\nexport const DEFAULT_DURATION = 12;\n\nexport function tweenDropdownMenuStyle(\n a: DropdownMenuStyle,\n b: DropdownMenuStyle,\n t: number,\n): DropdownMenuStyle {\n return {\n panelOpacity: a.panelOpacity + (b.panelOpacity - a.panelOpacity) * t,\n panelScale: a.panelScale + (b.panelScale - a.panelScale) * t,\n panelTranslateY:\n a.panelTranslateY + (b.panelTranslateY - a.panelTranslateY) * t,\n chevronRotation:\n a.chevronRotation + (b.chevronRotation - a.chevronRotation) * t,\n };\n}\n\nexport interface DropdownMenuTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n primary?: string;\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useDropdownMenuTransition(\n steps: Step<DropdownMenuState>[],\n opts: DropdownMenuTransitionOptions = {},\n): DropdownMenuStyle {\n const {\n theme: themeOverride,\n mode,\n primary,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n const ctx = dropdownMenuStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenDropdownMenuStyle(\n dropdownMenuStyle(from, ctx),\n dropdownMenuStyle(to, ctx),\n t,\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-dropdown-menu-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/field.json b/public/r/field.json
new file mode 100644
index 00000000..95393675
--- /dev/null
+++ b/public/r/field.json
@@ -0,0 +1,21 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "field",
+ "title": "UI Field",
+ "description": "A static layout family for composing labeled form controls, modeled on shadcn's Field: FieldGroup ▸ Field ▸ FieldLabel / FieldControl / FieldDescription. Reads no frame and holds no state — colors come from the resolved theme. FieldControl is a relative fixed-height slot for the absolute remocn-ui controls (Input, Button).",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/field/index.tsx",
+ "content": "\"use client\";\n\nimport type { CSSProperties, ReactNode } from \"react\";\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport interface FieldGroupProps {\n children: ReactNode;\n gap?: number;\n style?: CSSProperties;\n}\n\nexport function FieldGroup({ children, gap = 16, style }: FieldGroupProps) {\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap, ...style }}>\n {children}\n </div>\n );\n}\n\nexport interface FieldProps {\n children: ReactNode;\n gap?: number;\n style?: CSSProperties;\n}\n\nexport function Field({ children, gap = 6, style }: FieldProps) {\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap, ...style }}>\n {children}\n </div>\n );\n}\n\nexport interface FieldLabelProps {\n children: ReactNode;\n mode?: \"light\" | \"dark\";\n theme?: Partial<RemocnTheme>;\n style?: CSSProperties;\n}\n\nexport function FieldLabel({ children, mode, theme, style }: FieldLabelProps) {\n const t = useRemocnTheme(theme, mode);\n return (\n <div\n style={{\n fontSize: 13,\n lineHeight: \"18px\",\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: t.foreground,\n ...style,\n }}\n >\n {children}\n </div>\n );\n}\n\nexport interface FieldDescriptionProps {\n children: ReactNode;\n align?: \"start\" | \"center\";\n mode?: \"light\" | \"dark\";\n theme?: Partial<RemocnTheme>;\n style?: CSSProperties;\n}\n\nexport function FieldDescription({\n children,\n align = \"start\",\n mode,\n theme,\n style,\n}: FieldDescriptionProps) {\n const t = useRemocnTheme(theme, mode);\n return (\n <div\n style={{\n fontSize: 12,\n lineHeight: \"16px\",\n color: t.mutedForeground,\n textAlign: align === \"center\" ? \"center\" : \"left\",\n ...style,\n }}\n >\n {children}\n </div>\n );\n}\n\nexport interface FieldControlProps {\n children: ReactNode;\n height?: number;\n style?: CSSProperties;\n}\n\nexport function FieldControl({ children, height = 40, style }: FieldControlProps) {\n return (\n <div style={{ position: \"relative\", height, ...style }}>{children}</div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/field.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/input.json b/public/r/input.json
new file mode 100644
index 00000000..6b429104
--- /dev/null
+++ b/public/r/input.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "input",
+ "title": "UI Input",
+ "description": "A text input whose idle/hover/active/typing/invalid state is a pure function of the timeline; the focus ring, border, caret, and value reveal are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/input/index.tsx",
+ "content": "\"use client\";\n\nimport { mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type InputState =\n | \"idle\"\n | \"hover\"\n | \"active\"\n | \"typing\"\n | \"blur\"\n | \"invalid\";\n\ntype InputSize = \"sm\" | \"default\" | \"lg\";\n\nexport interface InputProps {\n state?: InputState;\n style?: InputStyle;\n placeholder?: string;\n value?: string;\n size?: InputSize;\n theme?: Partial<RemocnTheme>;\n primary?: string;\n mode?: \"light\" | \"dark\";\n fullWidth?: boolean;\n className?: string;\n}\n\nconst FIELD_WIDTH = 320;\n\nconst SIZE_STYLES: Record<\n InputSize,\n { height: number; padding: number; fontSize: number }\n> = {\n sm: { height: 36, padding: 12, fontSize: 13 },\n default: { height: 40, padding: 14, fontSize: 15 },\n lg: { height: 48, padding: 16, fontSize: 17 },\n};\n\nexport interface InputStyle {\n borderColor: string;\n ringColor: string;\n ringWidth: number;\n background: string;\n caretOpacity: number;\n valueReveal: number;\n placeholderOpacity: number;\n}\n\nexport interface InputStyleContext {\n idleBorder: string;\n hoverBorder: string;\n activeBorder: string;\n invalidBorder: string;\n ring: string;\n invalidRing: string;\n background: string;\n hoverBackground: string;\n foreground: string;\n mutedForeground: string;\n}\n\nexport function inputStyleContext(theme: RemocnTheme): InputStyleContext {\n return {\n idleBorder: theme.input,\n hoverBorder: mixOklch(theme.input, theme.foreground, 0.18),\n activeBorder: theme.ring,\n invalidBorder: theme.destructive,\n ring: mixOklch(theme.background, theme.ring, 0.5),\n invalidRing: mixOklch(theme.background, theme.destructive, 0.4),\n background: theme.background,\n hoverBackground: mixOklch(theme.background, theme.muted, 0.4),\n foreground: theme.foreground,\n mutedForeground: theme.mutedForeground,\n };\n}\n\nexport function inputStyle(\n state: InputState,\n ctx: InputStyleContext,\n): InputStyle {\n switch (state) {\n case \"hover\":\n return {\n borderColor: ctx.hoverBorder,\n ringColor: ctx.ring,\n ringWidth: 0,\n background: ctx.hoverBackground,\n caretOpacity: 0,\n valueReveal: 0,\n placeholderOpacity: 1,\n };\n case \"active\":\n return {\n borderColor: ctx.activeBorder,\n ringColor: ctx.ring,\n ringWidth: 3,\n background: ctx.background,\n caretOpacity: 1,\n valueReveal: 0,\n placeholderOpacity: 1,\n };\n case \"typing\":\n return {\n borderColor: ctx.activeBorder,\n ringColor: ctx.ring,\n ringWidth: 3,\n background: ctx.background,\n caretOpacity: 1,\n valueReveal: 1,\n placeholderOpacity: 0,\n };\n case \"blur\":\n return {\n borderColor: ctx.idleBorder,\n ringColor: ctx.ring,\n ringWidth: 0,\n background: ctx.background,\n caretOpacity: 0,\n valueReveal: 1,\n placeholderOpacity: 0,\n };\n case \"invalid\":\n return {\n borderColor: ctx.invalidBorder,\n ringColor: ctx.invalidRing,\n ringWidth: 3,\n background: ctx.background,\n caretOpacity: 0,\n valueReveal: 1,\n placeholderOpacity: 0,\n };\n default:\n return {\n borderColor: ctx.idleBorder,\n ringColor: ctx.ring,\n ringWidth: 0,\n background: ctx.background,\n caretOpacity: 0,\n valueReveal: 0,\n placeholderOpacity: 1,\n };\n }\n}\n\nexport function Input({\n state = \"idle\",\n style,\n placeholder = \"[email protected]\",\n value = \"[email protected]\",\n size = \"default\",\n theme: themeOverride,\n primary,\n mode,\n fullWidth = false,\n className,\n}: InputProps) {\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n\n const sizeStyle = SIZE_STYLES[size];\n const ctx = inputStyleContext(theme);\n const v = style ?? inputStyle(state, ctx);\n const revealed = value.slice(0, Math.round(value.length * v.valueReveal));\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n className={className}\n style={{\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n width: fullWidth ? \"100%\" : FIELD_WIDTH,\n height: sizeStyle.height,\n padding: `0 ${sizeStyle.padding}px`,\n fontSize: sizeStyle.fontSize,\n letterSpacing: \"-0.01em\",\n background: v.background,\n border: `1px solid ${v.borderColor}`,\n borderRadius: theme.radius,\n boxShadow: `0 0 0 ${v.ringWidth}px ${v.ringColor}`,\n }}\n >\n {}\n <span\n style={{\n position: \"absolute\",\n left: sizeStyle.padding,\n color: ctx.mutedForeground,\n opacity: v.valueReveal > 0 ? 0 : v.placeholderOpacity,\n pointerEvents: \"none\",\n whiteSpace: \"nowrap\",\n }}\n >\n {placeholder}\n </span>\n {}\n <div style={{ display: \"flex\", alignItems: \"center\", minWidth: 0 }}>\n <span style={{ whiteSpace: \"nowrap\", color: ctx.foreground }}>\n {revealed}\n </span>\n <span\n style={{\n flexShrink: 0,\n width: 2,\n height: Math.round(sizeStyle.fontSize * 1.1),\n borderRadius: 1,\n background: ctx.foreground,\n opacity: v.caretOpacity,\n marginLeft: revealed.length > 0 ? 4 : 0,\n }}\n />\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/input.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/input/use-input-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n mixOklch,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n inputStyle,\n inputStyleContext,\n type InputState,\n type InputStyle,\n} from \"@/components/remocn/input\";\n\nexport const DEFAULT_DURATION = 8;\n\nexport function tweenInputStyle(\n a: InputStyle,\n b: InputStyle,\n t: number,\n): InputStyle {\n return {\n ringWidth: a.ringWidth + (b.ringWidth - a.ringWidth) * t,\n caretOpacity: a.caretOpacity + (b.caretOpacity - a.caretOpacity) * t,\n valueReveal: a.valueReveal + (b.valueReveal - a.valueReveal) * t,\n placeholderOpacity:\n a.placeholderOpacity + (b.placeholderOpacity - a.placeholderOpacity) * t,\n borderColor: mixOklch(a.borderColor, b.borderColor, t),\n ringColor: mixOklch(a.ringColor, b.ringColor, t),\n background: mixOklch(a.background, b.background, t),\n };\n}\n\nexport interface InputTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n primary?: string;\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useInputTransition(\n steps: Step<InputState>[],\n opts: InputTransitionOptions = {},\n): InputStyle {\n const {\n theme: themeOverride,\n mode,\n primary,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n const ctx = inputStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"idle\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenInputStyle(inputStyle(from, ctx), inputStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-input-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/onboarding-stepper-flow.json b/public/r/onboarding-stepper-flow.json
new file mode 100644
index 00000000..2be760c3
--- /dev/null
+++ b/public/r/onboarding-stepper-flow.json
@@ -0,0 +1,26 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "onboarding-stepper-flow",
+ "title": "UI Onboarding Stepper Flow",
+ "description": "A multi-step onboarding composition: a horizontal stepper advances through panels of input, radio, and switch fields, finishing on a Finish button that runs to success. Panel crossfade derives linearly from the stepper's exposed position channel; every other channel comes from a composed primitive's hook.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "stepper",
+ "input",
+ "radio",
+ "switch",
+ "button"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/onboarding-stepper-flow/index.tsx",
+ "content": "\"use client\";\n\nimport { Button } from \"@/components/remocn/button\";\nimport { useButtonTransition } from \"@/components/remocn/use-button-transition\";\nimport { Input } from \"@/components/remocn/input\";\nimport { useInputTransition } from \"@/components/remocn/use-input-transition\";\nimport { Radio } from \"@/components/remocn/radio\";\nimport { useRadioTransition } from \"@/components/remocn/use-radio-transition\";\nimport { Stepper } from \"@/components/remocn/stepper\";\nimport { useStepperTransition } from \"@/components/remocn/use-stepper-transition\";\nimport { Switch } from \"@/components/remocn/switch\";\nimport { useSwitchTransition } from \"@/components/remocn/use-switch-transition\";\nimport { clamp01, type RemocnTheme } from \"@/lib/remocn-ui\";\n\nconst DEFAULT_STEPS = [\"Account\", \"Plan\", \"Settings\"];\nconst DEFAULT_PLANS = [\"Free\", \"Pro\", \"Team\"];\n\nconst CONTENT_TOP = 300;\nconst CONTENT_HEIGHT = 220;\nconst NAV_TOP = 540;\n\nexport interface OnboardingStepperFlowProps {\n steps?: string[];\n name?: string;\n plans?: string[];\n nextLabel?: string;\n finishLabel?: string;\n mode?: \"light\" | \"dark\";\n theme?: Partial<RemocnTheme>;\n}\n\nexport function OnboardingStepperFlow({\n steps = DEFAULT_STEPS,\n name = \"[email protected]\",\n plans = DEFAULT_PLANS,\n nextLabel = \"Next\",\n finishLabel = \"Finish\",\n mode = \"light\",\n theme,\n}: OnboardingStepperFlowProps) {\n const opts = { mode, theme };\n\n const stepperStyle = useStepperTransition([\n { at: 0, index: 0 },\n { at: 64, index: 1, duration: 20 },\n { at: 104, index: 2, duration: 20 },\n ]);\n\n const nameStyle = useInputTransition(\n [\n { at: 2, state: \"active\", duration: 8 },\n { at: 10, state: \"typing\", duration: 45 },\n ],\n opts,\n );\n\n const planStyle = useRadioTransition(\n [{ at: 90, state: \"checked\", duration: 14 }],\n opts,\n );\n\n const settingsStyle = useSwitchTransition(\n [{ at: 130, state: \"checked\", duration: 14 }],\n opts,\n );\n\n const navStyle = useButtonTransition(\n [\n { at: 60, state: \"press\", duration: 6 },\n { at: 64, state: \"idle\", duration: 6 },\n { at: 100, state: \"press\", duration: 6 },\n { at: 104, state: \"idle\", duration: 6 },\n { at: 150, state: \"press\", duration: 6 },\n { at: 156, state: \"success\", duration: 14 },\n ],\n opts,\n );\n\n const position = stepperStyle.position;\n const panelOpacity = (i: number) => clamp01(1 - Math.abs(position - i));\n\n const navLabel = position >= steps.length - 1 ? finishLabel : nextLabel;\n\n return (\n <div style={{ position: \"relative\", width: \"100%\", height: \"100%\" }}>\n {}\n <div\n style={{ position: \"absolute\", left: 0, right: 0, top: 96, height: 100 }}\n >\n <Stepper style={stepperStyle} steps={steps} mode={mode} theme={theme} />\n </div>\n\n {}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n right: 0,\n top: CONTENT_TOP,\n height: CONTENT_HEIGHT,\n }}\n >\n {}\n <div style={{ position: \"absolute\", inset: 0, opacity: panelOpacity(0) }}>\n <Input\n style={nameStyle}\n placeholder={name}\n value={name}\n mode={mode}\n theme={theme}\n />\n </div>\n\n {}\n <div style={{ position: \"absolute\", inset: 0, opacity: panelOpacity(1) }}>\n <Radio\n style={planStyle}\n label={plans[1] ?? \"Pro\"}\n mode={mode}\n theme={theme}\n />\n </div>\n\n {}\n <div style={{ position: \"absolute\", inset: 0, opacity: panelOpacity(2) }}>\n <Switch\n style={settingsStyle}\n label=\"Email notifications\"\n mode={mode}\n theme={theme}\n />\n </div>\n </div>\n\n {}\n <div\n style={{ position: \"absolute\", left: 0, right: 0, top: NAV_TOP, height: 64 }}\n >\n <Button label={navLabel} style={navStyle} mode={mode} theme={theme} />\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/onboarding-stepper-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/popover.json b/public/r/popover.json
new file mode 100644
index 00000000..b91c9324
--- /dev/null
+++ b/public/r/popover.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "popover",
+ "title": "UI Popover",
+ "description": "A popover/hover-card whose opened/closed state is a pure function of the timeline. The Popover renderer is a pure function of a PopoverStyle (opacity, scale, translate); usePopoverTransition eases both the open and the close. The static `side` prop sets the enter translate axis; renders title + description and/or arbitrary children in a popover card.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/popover/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type PopoverState = \"opened\" | \"closed\";\n\nexport type PopoverSide = \"top\" | \"bottom\" | \"left\" | \"right\";\n\nexport interface PopoverProps {\n state?: PopoverState;\n style?: PopoverStyle;\n title?: string;\n description?: string;\n children?: ReactNode;\n side?: PopoverSide;\n width?: number;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nexport interface PopoverStyle {\n opacity: number;\n scale: number;\n translate: number;\n}\n\nexport function popoverStyle(state: PopoverState): PopoverStyle {\n switch (state) {\n case \"opened\":\n return { opacity: 1, scale: 1, translate: 0 };\n default:\n return { opacity: 0, scale: 0.97, translate: 6 };\n }\n}\n\nfunction offsetFor(side: PopoverSide, translate: number): { x: number; y: number } {\n switch (side) {\n case \"bottom\":\n return { x: 0, y: -translate };\n case \"left\":\n return { x: translate, y: 0 };\n case \"right\":\n return { x: -translate, y: 0 };\n default:\n return { x: 0, y: translate };\n }\n}\n\nexport function Popover({\n state = \"closed\",\n style,\n title,\n description,\n children,\n side = \"bottom\",\n width = 288,\n theme: themeOverride,\n mode,\n className,\n}: PopoverProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const v = style ?? popoverStyle(state);\n const { x, y } = offsetFor(side, v.translate);\n\n const hasHeader = title !== undefined || description !== undefined;\n\n return (\n <div\n className={className}\n style={{\n display: \"inline-flex\",\n opacity: v.opacity,\n transform: `translate(${x}px, ${y}px) scale(${v.scale})`,\n transformOrigin: \"center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n width,\n boxSizing: \"border-box\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: 8,\n padding: 16,\n background: theme.popover,\n color: theme.popoverForeground,\n border: `1px solid ${theme.border}`,\n borderRadius: theme.radius,\n boxShadow: \"0 8px 24px -8px rgba(0,0,0,0.2)\",\n textAlign: \"left\",\n }}\n >\n {title !== undefined && (\n <div\n style={{\n fontSize: 15,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n lineHeight: 1.3,\n }}\n >\n {title}\n </div>\n )}\n {description !== undefined && (\n <div\n style={{\n fontSize: 13,\n lineHeight: 1.5,\n color: theme.mutedForeground,\n }}\n >\n {description}\n </div>\n )}\n {}\n {children !== undefined && (\n <div style={{ marginTop: hasHeader ? 4 : 0 }}>{children}</div>\n )}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/popover.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/popover/use-popover-transition.ts",
+ "content": "\"use client\";\n\nimport { easings, type Step, useStateTransition } from \"@/lib/remocn-ui\";\nimport {\n popoverStyle,\n type PopoverState,\n type PopoverStyle,\n} from \"@/components/remocn/popover\";\n\nexport const DEFAULT_DURATION = 10;\n\nexport function tweenPopoverStyle(\n a: PopoverStyle,\n b: PopoverStyle,\n t: number,\n): PopoverStyle {\n return {\n opacity: a.opacity + (b.opacity - a.opacity) * t,\n scale: a.scale + (b.scale - a.scale) * t,\n translate: a.translate + (b.translate - a.translate) * t,\n };\n}\n\nexport interface PopoverTransitionOptions {\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function usePopoverTransition(\n steps: Step<PopoverState>[],\n opts: PopoverTransitionOptions = {},\n): PopoverStyle {\n const { speed = 1, defaultDuration = DEFAULT_DURATION } = opts;\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenPopoverStyle(popoverStyle(from), popoverStyle(to), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-popover-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/progress.json b/public/r/progress.json
new file mode 100644
index 00000000..c2198c6b
--- /dev/null
+++ b/public/r/progress.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "progress",
+ "title": "UI Progress",
+ "description": "A progress bar whose fill is a pure function of a numeric value channel (value-channel deviation). The Progress renderer takes a clamped 0–100 value; useProgressTransition reads the frame and eases the fill between value steps. Muted track + primary indicator, optional floored percentage label.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/progress/index.tsx",
+ "content": "\"use client\";\n\nimport { clamp01, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport interface ProgressStyle {\n value: number;\n}\n\nexport interface ProgressProps {\n value?: number;\n style?: ProgressStyle;\n width?: number;\n showLabel?: boolean;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst TRACK_HEIGHT = 12;\n\nfunction clampValue(value: number): number {\n return clamp01(value / 100) * 100;\n}\n\nexport function Progress({\n value = 0,\n style,\n width = 320,\n showLabel = false,\n theme: themeOverride,\n mode,\n className,\n}: ProgressProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const v = clampValue(style ? style.value : value);\n\n const track = theme.muted;\n const indicator = theme.primary;\n\n return (\n <div\n className={className}\n style={{\n display: \"inline-flex\",\n alignItems: \"center\",\n gap: 12,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div\n style={{\n position: \"relative\",\n width,\n height: TRACK_HEIGHT,\n borderRadius: TRACK_HEIGHT / 2,\n background: track,\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n bottom: 0,\n width: `${v}%`,\n borderRadius: TRACK_HEIGHT / 2,\n background: indicator,\n }}\n />\n </div>\n {showLabel && (\n <span\n style={{\n fontSize: 14,\n fontWeight: 500,\n fontVariantNumeric: \"tabular-nums\",\n color: theme.mutedForeground,\n minWidth: \"3ch\",\n textAlign: \"right\",\n }}\n >\n {Math.floor(v)}%\n </span>\n )}\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/progress.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/progress/use-progress-transition.ts",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\nimport { clamp01, type EasingName, easings } from \"@/lib/remocn-ui\";\nimport type { ProgressStyle } from \"@/components/remocn/progress\";\n\nexport interface ProgressStep {\n at: number;\n value: number;\n duration?: number;\n easing?: EasingName;\n}\n\nexport const DEFAULT_DURATION = 24;\n\nexport interface ProgressTransitionOptions {\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function tweenProgressStyle(\n a: ProgressStyle,\n b: ProgressStyle,\n t: number,\n): ProgressStyle {\n return { value: a.value + (b.value - a.value) * t };\n}\n\nexport function useProgressTransition(\n steps: ProgressStep[],\n opts: ProgressTransitionOptions = {},\n): ProgressStyle {\n const { speed = 1 } = opts;\n const raw = useCurrentFrame() * speed;\n return progressValueAt(steps, raw, opts);\n}\n\nexport function progressValueAt(\n steps: ProgressStep[],\n raw: number,\n opts: ProgressTransitionOptions = {},\n): ProgressStyle {\n const { defaultDuration = DEFAULT_DURATION } = opts;\n\n if (steps.length === 0) return { value: 0 };\n\n const first = steps[0];\n\n if (raw <= first.at) return { value: first.value };\n\n let toIndex = steps.length - 1;\n for (let i = 1; i < steps.length; i++) {\n if (steps[i].at > raw) {\n toIndex = i;\n break;\n }\n }\n const pastLast = raw >= steps[steps.length - 1].at;\n const to = pastLast ? steps[steps.length - 1] : steps[toIndex];\n const from = pastLast ? steps[steps.length - 1] : steps[toIndex - 1];\n\n const dur = to.duration ?? defaultDuration;\n const ease = easings[to.easing ?? \"out\"];\n const start = to.at - dur;\n const t = pastLast || dur <= 0 ? 1 : ease(clamp01((raw - start) / dur));\n const value = from.value + (to.value - from.value) * t;\n\n return { value };\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-progress-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/radio.json b/public/r/radio.json
new file mode 100644
index 00000000..f44e5336
--- /dev/null
+++ b/public/r/radio.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "radio",
+ "title": "UI Radio",
+ "description": "A radio whose checked/unchecked state is a pure function of the timeline; the ring border and inner dot pop are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/radio/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type RadioState = \"unchecked\" | \"checked\";\n\ntype RadioSize = \"sm\" | \"default\" | \"lg\";\n\nexport interface RadioProps {\n state?: RadioState;\n style?: RadioStyle;\n label?: string;\n size?: RadioSize;\n theme?: Partial<RemocnTheme>;\n primary?: string;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst SIZE_STYLES: Record<\n RadioSize,\n { box: number; fontSize: number; gap: number }\n> = {\n sm: { box: 16, fontSize: 13, gap: 8 },\n default: { box: 20, fontSize: 15, gap: 10 },\n lg: { box: 24, fontSize: 17, gap: 12 },\n};\n\nexport interface RadioStyle {\n ringBorderColor: string;\n dotOpacity: number;\n dotScale: number;\n}\n\nexport interface RadioStyleContext {\n uncheckedBorder: string;\n checkedBorder: string;\n dotColor: string;\n}\n\nexport function radioStyleContext(theme: RemocnTheme): RadioStyleContext {\n return {\n uncheckedBorder: theme.border,\n checkedBorder: theme.primary,\n dotColor: theme.primary,\n };\n}\n\nexport function radioStyle(\n state: RadioState,\n ctx: RadioStyleContext,\n): RadioStyle {\n switch (state) {\n case \"checked\":\n return {\n ringBorderColor: ctx.checkedBorder,\n dotOpacity: 1,\n dotScale: 1,\n };\n default:\n return {\n ringBorderColor: ctx.uncheckedBorder,\n dotOpacity: 0,\n dotScale: 0.4,\n };\n }\n}\n\nexport function Radio({\n state = \"unchecked\",\n style,\n label,\n size = \"default\",\n theme: themeOverride,\n primary,\n mode,\n className,\n}: RadioProps) {\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n\n const sizeStyle = SIZE_STYLES[size];\n const ctx = radioStyleContext(theme);\n const v = style ?? radioStyle(state, ctx);\n const boxSize = sizeStyle.box;\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <span\n className={className}\n style={{\n display: \"inline-flex\",\n alignItems: \"center\",\n gap: sizeStyle.gap,\n }}\n >\n {}\n <span\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n width: boxSize,\n height: boxSize,\n borderRadius: \"50%\",\n border: `1px solid ${v.ringBorderColor}`,\n background: theme.background,\n }}\n >\n {}\n <span\n style={{\n width: Math.round(boxSize * 0.45),\n height: Math.round(boxSize * 0.45),\n borderRadius: \"50%\",\n background: ctx.dotColor,\n opacity: v.dotOpacity,\n transform: `scale(${v.dotScale})`,\n }}\n />\n </span>\n {label !== undefined && (\n <span\n style={{\n fontSize: sizeStyle.fontSize,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: theme.foreground,\n }}\n >\n {label}\n </span>\n )}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/radio.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/radio/use-radio-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n mixOklch,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n radioStyle,\n radioStyleContext,\n type RadioState,\n type RadioStyle,\n} from \"@/components/remocn/radio\";\n\nexport const DEFAULT_DURATION = 10;\n\nexport function tweenRadioStyle(\n a: RadioStyle,\n b: RadioStyle,\n t: number,\n): RadioStyle {\n return {\n ringBorderColor: mixOklch(a.ringBorderColor, b.ringBorderColor, t),\n dotOpacity: a.dotOpacity + (b.dotOpacity - a.dotOpacity) * t,\n dotScale: a.dotScale + (b.dotScale - a.dotScale) * t,\n };\n}\n\nexport interface RadioTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n primary?: string;\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useRadioTransition(\n steps: Step<RadioState>[],\n opts: RadioTransitionOptions = {},\n): RadioStyle {\n const {\n theme: themeOverride,\n mode,\n primary,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n const ctx = radioStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"unchecked\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenRadioStyle(radioStyle(from, ctx), radioStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-radio-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/registry.json b/public/r/registry.json
index 6b0c78b0..1333374b 100644
--- a/public/r/registry.json
+++ b/public/r/registry.json
@@ -2,9 +2,1807 @@
"$schema": "https://ui.shadcn.com/schema/registry.json",
"name": "remocn",
"homepage": "https://remocn.dev",
- "include": [
- "registry/remocn/registry.json",
- "registry/remocn-ui/registry.json"
- ],
- "items": []
-}
+ "items": [
+ {
+ "name": "blur-reveal",
+ "title": "Blur Reveal",
+ "description": "Text fades in from a heavy blur into sharp focus.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/blur-reveal/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/blur-reveal.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "typewriter",
+ "title": "Typewriter",
+ "description": "Character-by-character text reveal with a deterministic blinking cursor.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/typewriter/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/typewriter.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "inline-highlight",
+ "title": "Inline Highlight",
+ "description": "Animates one word inside a sentence from a base color to a brand color.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/inline-highlight/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/inline-highlight.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "strikethrough-replace",
+ "title": "Strikethrough Replace",
+ "description": "Draws a strike line across old text then reveals new text in its place.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/strikethrough-replace/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/strikethrough-replace.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "staggered-fade-up",
+ "title": "Staggered Fade Up",
+ "description": "Words fade in and slide up one after another with a configurable delay.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/staggered-fade-up/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/staggered-fade-up.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "masked-slide-reveal",
+ "title": "Masked Slide Reveal",
+ "description": "Words slide up out of an invisible horizontal mask, one after another.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/masked-slide-reveal/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/masked-slide-reveal.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "tracking-in",
+ "title": "Tracking In",
+ "description": "Letter-spacing collapses and blur clears with a springy motion.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/tracking-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/tracking-in.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "shimmer-sweep",
+ "title": "Shimmer Sweep",
+ "description": "Light shine sweeps across muted text via background-clip:text.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/shimmer-sweep/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/shimmer-sweep.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "marker-highlight",
+ "title": "Marker Highlight",
+ "description": "Colored marker block draws behind a phrase as the text color shifts.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/marker-highlight/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/marker-highlight.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "slot-machine-roll",
+ "title": "Slot Machine Roll",
+ "description": "Vertical reel scrolls characters from one value to another.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/slot-machine-roll/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/slot-machine-roll.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "matrix-decode",
+ "title": "Matrix Decode",
+ "description": "Random scramble resolves left-to-right into the target text.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/matrix-decode/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/matrix-decode.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "rgb-glitch-text",
+ "title": "RGB Glitch Text",
+ "description": "Three RGB-offset text copies jitter for a brief glitch window.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/rgb-glitch-text/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/rgb-glitch-text.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "infinite-marquee",
+ "title": "Infinite Marquee",
+ "description": "Seamlessly looping horizontal text strip with optional stroke style.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/infinite-marquee/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/infinite-marquee.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "mesh-gradient-bg",
+ "title": "Mesh Gradient Background",
+ "description": "Living gradient with amorphous color blobs slowly drifting across the frame.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/mesh-gradient-bg/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/mesh-gradient-bg.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "dynamic-grid",
+ "title": "Dynamic Grid",
+ "description": "Subtle moving grid background with configurable cell size and direction.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/dynamic-grid/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/dynamic-grid.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "spring-pop-in",
+ "title": "Spring Pop In",
+ "description": "Elastic spring-driven scale-in wrapper for any child element.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/spring-pop-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spring-pop-in.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "simulated-cursor",
+ "title": "Simulated Cursor",
+ "description": "Animated mouse cursor moving between waypoints with click ripple feedback.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/simulated-cursor/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/simulated-cursor.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "directional-wipe",
+ "title": "Directional Wipe",
+ "description": "Slide one scene in while pushing the other out.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/directional-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/directional-wipe.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "device-mockup-zoom",
+ "title": "Device Mockup Zoom",
+ "description": "Pull back from a UI to reveal it inside a device frame.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/device-mockup-zoom/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/device-mockup-zoom.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "zoom-through-transition",
+ "title": "Zoom Through Transition",
+ "description": "Aggressively scale into the center of an element.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/zoom-through-transition/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/zoom-through-transition.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "chat-to-preview-layout",
+ "title": "Chat to Preview Layout",
+ "description": "Two-column layout where chat shrinks and preview expands.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/chat-to-preview-layout/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/chat-to-preview-layout.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "bounding-box-selector",
+ "title": "Bounding Box Selector",
+ "description": "Figma-style selection rectangle appears around any element.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/bounding-box-selector/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/bounding-box-selector.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "animated-line-chart",
+ "title": "Animated Line Chart",
+ "description": "Line chart whose SVG path draws on from left to right with a leading dot.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/animated-line-chart/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/animated-line-chart.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "animated-bar-chart",
+ "title": "Animated Bar Chart",
+ "description": "Bars spring up from the baseline in a staggered cascade.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/animated-bar-chart/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/animated-bar-chart.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "terminal-simulator",
+ "title": "Terminal Simulator",
+ "description": "Terminal window that types out commands and rolls old lines off the top.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/terminal-simulator/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/terminal-simulator.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "code-diff-wipe",
+ "title": "Code Diff Wipe",
+ "description": "Before/after code reveal via clip-path wipe with a handle marker.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/code-diff-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/code-diff-wipe.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "toast-notification",
+ "title": "Toast Notification",
+ "description": "System-style toast pops in, holds, then slides out.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/toast-notification/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/toast-notification.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "drag-and-drop-flow",
+ "title": "Drag and Drop Flow",
+ "description": "Simulated file drag into a dropzone followed by upload progress.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/drag-and-drop-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/drag-and-drop-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "progress-steps",
+ "title": "Progress Steps",
+ "description": "Multi-step pipeline with sequentially activating nodes and filling lines.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/progress-steps/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/progress-steps.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "data-flow-pipes",
+ "title": "Data Flow Pipes",
+ "description": "Glowing data packets travel along SVG bezier pipes between system nodes, leaving fading trails.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/data-flow-pipes/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/data-flow-pipes.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "code-accordion",
+ "title": "Code Accordion",
+ "description": "A code window that springs a range of lines closed and replaces them with a \"N lines collapsed\" placeholder.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/code-accordion/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/code-accordion.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "glass-code-block",
+ "title": "Glass Code Block",
+ "description": "A premium frosted-glass code editor window with a regex tokenizer and line-by-line stagger reveal.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/glass-code-block/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/glass-code-block.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "spotlight-card",
+ "title": "Spotlight Card",
+ "description": "A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/spotlight-card/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spotlight-card.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "perspective-marquee",
+ "title": "Perspective Marquee",
+ "description": "A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/perspective-marquee/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/perspective-marquee.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "success-confetti",
+ "title": "Success Confetti",
+ "description": "Deterministic seeded confetti burst with optional headline.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/success-confetti/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/success-confetti.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "frosted-glass-wipe",
+ "title": "Frosted Glass Wipe",
+ "description": "Elegant scene transition through a sliding pane of frosted glass.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/frosted-glass-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/frosted-glass-wipe.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "kinetic-type-mask",
+ "title": "Kinetic Type Mask",
+ "description": "Use giant typography as a window into the next scene.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/kinetic-type-mask/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/kinetic-type-mask.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "spatial-push",
+ "title": "Spatial Push",
+ "description": "A new scene physically presses the old one back into the frame.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/spatial-push/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spatial-push.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "grid-pixelate-wipe",
+ "title": "Grid Pixelate Wipe",
+ "description": "Dissolve from one scene to the next through a deterministic grid of mask cells.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/grid-pixelate-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/grid-pixelate-wipe.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "chromatic-aberration-wipe",
+ "title": "Chromatic Aberration Wipe",
+ "description": "An ultra-fast slide transition with an RGB glitch on the peak frames.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/chromatic-aberration-wipe/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/chromatic-aberration-wipe.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "hero-device-assemble",
+ "title": "Hero Device Assemble",
+ "description": "Floating device layers spring together into a laptop or phone mockup, then the screen wakes with a shimmer.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/hero-device-assemble/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/hero-device-assemble.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "ecosystem-constellation",
+ "title": "Ecosystem Constellation",
+ "description": "A central logo orbited by integration satellites with pulsing data lines.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/ecosystem-constellation/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/ecosystem-constellation.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "ai-generation-canvas",
+ "title": "AI Generation Canvas",
+ "description": "A prompt input transforms into a header, then a skeleton dashboard flips into populated cards.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/ai-generation-canvas/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/ai-generation-canvas.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "live-code-compilation",
+ "title": "Live Code Compilation",
+ "description": "Split-screen where typed code on the left snaps a live UI preview on the right, HMR-style.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/live-code-compilation/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/live-code-compilation.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "landing-code-showcase",
+ "title": "Landing Code Showcase",
+ "description": "Magical split-screen: code types itself on the left while the preview reactively re-renders on the right with sparks and tactile bounce.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/landing-code-showcase/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/landing-code-showcase.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "dashboard-populate",
+ "title": "Dashboard Populate",
+ "description": "An empty dashboard cascades to life with KPI count-ups, bar bounces, line traces, and a donut fill.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/dashboard-populate/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/dashboard-populate.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "terminal-to-browser-deploy",
+ "title": "Terminal to Browser Deploy",
+ "description": "A CLI deploy completes, the terminal blurs back, and a browser window springs from the deploy URL.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/terminal-to-browser-deploy/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/terminal-to-browser-deploy.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "browser-flow",
+ "title": "Browser Flow",
+ "description": "Full Safari/Chrome simulation: typed URL, progress bar, page render, scroll, and a virtual cursor click.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/browser-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/browser-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "pricing-tier-focus",
+ "title": "Pricing Tier Focus",
+ "description": "Three pricing cards where the focused tier rises and brightens while siblings dim and blur.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/pricing-tier-focus/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/pricing-tier-focus.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "infinite-bento-pan",
+ "title": "Infinite Bento Pan",
+ "description": "A camera diagonally drifts across an oversized bento grid behind a soft vignette.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/infinite-bento-pan/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/infinite-bento-pan.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "tool-menu-slide-in",
+ "title": "Tool Menu Slide In",
+ "description": "A glass tool palette whips up from below the editor canvas while its icons pop in with a stagger.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/tool-menu-slide-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/tool-menu-slide-in.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "image-expand-to-fullscreen",
+ "title": "Image Expand To Fullscreen",
+ "description": "An image lifts out of a feed post and morphs into a fullscreen editor with toolbars sliding in.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/image-expand-to-fullscreen/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/image-expand-to-fullscreen.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "github-stars",
+ "title": "GitHub Stars",
+ "description": "Inertial fly-through of a repo's stargazers with a synced count-up odometer that locks on the total. Horizontal 16:9 or vertical 9:16.",
+ "dependencies": [
+ "remotion",
+ "date-fns",
+ "@remotion/google-fonts"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/github-stars/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/github-stars.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "remocn-ui",
+ "title": "remocn UI Core",
+ "description": "Shared timeline-fold hook, theme context, and color math for remocn UI primitives.",
+ "dependencies": [
+ "remotion",
+ "culori"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/core/timeline.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/timeline.ts"
+ },
+ {
+ "path": "registry/remocn-ui/core/theme.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/theme.ts"
+ },
+ {
+ "path": "registry/remocn-ui/core/color.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/color.ts"
+ },
+ {
+ "path": "registry/remocn-ui/core/motion.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/motion.ts"
+ },
+ {
+ "path": "registry/remocn-ui/core/types.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/types.ts"
+ },
+ {
+ "path": "registry/remocn-ui/core/index.ts",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/index.ts"
+ }
+ ],
+ "type": "registry:lib"
+ },
+ {
+ "name": "spinner",
+ "title": "UI Spinner",
+ "description": "A deterministic spinning arc that loops on the Remotion frame — a pure motion atom with no state.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [],
+ "files": [
+ {
+ "path": "registry/remocn-ui/spinner/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/spinner.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "button",
+ "title": "UI Button",
+ "description": "A button whose idle/hover/press/loading/success state is a pure function of the timeline; the loading state composes the Spinner motion atom.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "spinner"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/button/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/button.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/button/use-button-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-button-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "accordion",
+ "title": "UI Accordion",
+ "description": "A disclosure whose opened/closed state is a pure function of the timeline; the panel reveal, chevron, and background are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/accordion/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/accordion.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/accordion/use-accordion-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-accordion-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "alert-dialog",
+ "title": "UI Alert Dialog",
+ "description": "A modal alert dialog whose opened/closed state is a pure function of the timeline; the backdrop dim and popup zoom are keyframed presets. Self-contained — pair it with the Button as a trigger (see the example).",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/alert-dialog/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/alert-dialog.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/alert-dialog/use-alert-dialog-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-alert-dialog-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "dialog",
+ "title": "UI Dialog",
+ "description": "A modal dialog whose opened/closed state is a pure function of the timeline; the backdrop dim and popup zoom are keyframed presets, with a close button and a primary action. Self-contained — pair it with the Button as a trigger (see the example).",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/dialog/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/dialog.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/dialog/use-dialog-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-dialog-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "sheet",
+ "title": "UI Sheet",
+ "description": "A side panel whose opened/closed state is a pure function of the timeline; the backdrop dim and right-edge slide-in are keyframed presets, with a close button and a primary action. Self-contained — pair it with the Button as a trigger (see the example).",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/sheet/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/sheet.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/sheet/use-sheet-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-sheet-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "drawer",
+ "title": "UI Drawer",
+ "description": "A bottom panel whose opened/closed state is a pure function of the timeline; the backdrop dim and bottom-edge slide-up are keyframed presets, with a drag handle and a primary action. Self-contained — pair it with the Button as a trigger (see the example).",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/drawer/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/drawer.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/drawer/use-drawer-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-drawer-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "checkbox",
+ "title": "UI Checkbox",
+ "description": "A checkbox whose checked/unchecked state is a pure function of the timeline; the box fill, border, and checkmark draw are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/checkbox/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/checkbox.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/checkbox/use-checkbox-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-checkbox-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "radio",
+ "title": "UI Radio",
+ "description": "A radio whose checked/unchecked state is a pure function of the timeline; the ring border and inner dot pop are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/radio/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/radio.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/radio/use-radio-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-radio-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "switch",
+ "title": "UI Switch",
+ "description": "A switch whose checked/unchecked state is a pure function of the timeline; the track fill and sliding thumb are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/switch/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/switch.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/switch/use-switch-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-switch-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "input",
+ "title": "UI Input",
+ "description": "A text input whose idle/hover/active/typing/invalid state is a pure function of the timeline; the focus ring, border, caret, and value reveal are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/input/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/input.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/input/use-input-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-input-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "blur-in",
+ "title": "UI Blur In",
+ "description": "A wrapper that reveals a single child with blur + opacity + a directional offset; a pure state atom, theme-independent — its context is a motion config (blur/distance/axis), not a theme.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/blur-in/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/blur-in.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/blur-in/use-blur-in-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-blur-in-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "field",
+ "title": "UI Field",
+ "description": "A static layout family for composing labeled form controls, modeled on shadcn's Field: FieldGroup ▸ Field ▸ FieldLabel / FieldControl / FieldDescription. Reads no frame and holds no state — colors come from the resolved theme. FieldControl is a relative fixed-height slot for the absolute remocn-ui controls (Input, Button).",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/field/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/field.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "select-item",
+ "title": "UI Select Item",
+ "description": "A select option row whose idle/hover/press/selected state is a pure function of the timeline; the row background, label color, and check icon are keyframed presets. Composed inside the Select panel.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/select-item/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/select-item.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/select-item/use-select-item-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-select-item-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "select",
+ "title": "UI Select",
+ "description": "A select whose opened/closed state is a pure function of the timeline; the trigger reuses the Button primitive and the reveal panel composes SelectItem rows. The panel fade, scale, lift, and chevron are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "button",
+ "select-item"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/select/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/select.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/select/use-select-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-select-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "dropdown-menu-item",
+ "title": "UI Dropdown Menu Item",
+ "description": "A dropdown menu action row whose idle/hover/press state is a pure function of the timeline; the row background and label color are keyframed presets. Composed inside the DropdownMenu panel.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/dropdown-menu-item/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/dropdown-menu-item.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/dropdown-menu-item/use-dropdown-menu-item-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-dropdown-menu-item-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "tabs",
+ "title": "UI Tabs",
+ "description": "A tabs widget whose active-tab state is a pure function of the timeline; the sliding indicator, label colors, and panel crossfade are keyframed/derived presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/tabs/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/tabs.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/tabs/use-tabs-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-tabs-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "dropdown-menu",
+ "title": "UI Dropdown Menu",
+ "description": "A dropdown menu whose opened/closed state is a pure function of the timeline; the trigger reuses the Button primitive and the reveal panel composes DropdownMenuItem rows. The panel fade, scale, lift, and chevron are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "button",
+ "dropdown-menu-item"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/dropdown-menu/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/dropdown-menu.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/dropdown-menu/use-dropdown-menu-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-dropdown-menu-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "cursor",
+ "title": "UI Cursor",
+ "description": "An animated cursor that moves between waypoints, clicks (ripple), and drags. The Cursor renderer is a pure function of a numeric CursorStyle channel; useCursorPath reads the frame and eases the path, ripple, and press phases.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/cursor/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/cursor.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/cursor/use-cursor-path.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-cursor-path.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "toast",
+ "title": "UI Toast",
+ "description": "A toast notification whose hidden/visible state is a pure function of the timeline. The Toast renderer is a pure function of a ToastStyle (opacity, translateY, scale); useToastTransition eases both the slide-in enter and the auto-dismiss exit. Variants default/success/error change the leading icon and its color.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/toast/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/toast.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/toast/use-toast-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-toast-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "command-menu-item",
+ "title": "UI Command Menu Item",
+ "description": "A command-palette row whose idle/hover/press/selected state is a pure function of the timeline. Leading icon + label + trailing shortcut kbd. Exports an inline CommandMenuItemRow (reused by CommandMenu) and a standalone CommandMenuItem atom; the row background, label color, and icon color are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/command-menu-item/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/command-menu-item.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/command-menu-item/use-command-menu-item-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-command-menu-item-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "command-menu",
+ "title": "UI Command Menu",
+ "description": "A ⌘K command palette whose opened/closed state is a pure function of the timeline; the panel zoom + backdrop dim are dialog-like keyframed presets. The search row reveals the typed query, the list is filtered by a pure case-insensitive substring on the visible query prefix, and rows reuse the CommandMenuItem row.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "command-menu-item"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/command-menu/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/command-menu.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/command-menu/use-command-menu-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-command-menu-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "tooltip",
+ "title": "UI Tooltip",
+ "description": "A tooltip whose hidden/visible state is a pure function of the timeline. The Tooltip renderer is a pure function of a TooltipStyle (opacity, scale, translate); useTooltipTransition eases both the show and the hide. The static `side` prop sets the enter translate axis and the arrow placement.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/tooltip/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/tooltip.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/tooltip/use-tooltip-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-tooltip-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "progress",
+ "title": "UI Progress",
+ "description": "A progress bar whose fill is a pure function of a numeric value channel (value-channel deviation). The Progress renderer takes a clamped 0–100 value; useProgressTransition reads the frame and eases the fill between value steps. Muted track + primary indicator, optional floored percentage label.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/progress/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/progress.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/progress/use-progress-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-progress-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "skeleton-block",
+ "title": "UI Skeleton Block",
+ "description": "A shimmer placeholder block — a motion atom (spinner pattern). A directional highlight gradient sweeps across deterministically from useCurrentFrame() and loops seamlessly. Configurable width/height/radius/speed and base/highlight colors.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [],
+ "files": [
+ {
+ "path": "registry/remocn-ui/skeleton-block/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/skeleton-block.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "skeleton",
+ "title": "UI Skeleton",
+ "description": "A skeleton→content crossfade whose loading/loaded state is a pure function of the timeline. The Skeleton renderer is pure (reads no frame); only the composed SkeletonBlock shimmer reads it. SkeletonStyle opacities sum to 1 so the box never dims; real children sit in normal flow and the placeholder (a lines/card layout or a custom node) is an absolute overlay.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "skeleton-block"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/skeleton/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/skeleton.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/skeleton/use-skeleton-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-skeleton-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "slider",
+ "title": "UI Slider",
+ "description": "A slider whose fill is a numeric value channel plus a thumb idle/hover/press channel (dual-channel value-channel deviation). The Slider renderer is pure (clamped 0–100 value, thumb scale, grab-ring opacity); useSliderTransition reads the frame and eases both channels — value as a numeric lerp, the thumb visual from its state presets. Muted track + primary range + bordered thumb with a derived grab ring.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/slider/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/slider.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/slider/use-slider-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-slider-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "combobox",
+ "title": "UI Combobox",
+ "description": "A combobox whose opened/closed state is a pure function of the timeline; the panel fade/scale/lift are keyframed presets like select. The trigger reuses the Input presets (typed query + caret reveal via an injected inputStyle), the list is filtered by a pure case-insensitive substring on the visible query prefix, and rows reuse the SelectItem row.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "input",
+ "select-item"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/combobox/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/combobox.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/combobox/use-combobox-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-combobox-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "popover",
+ "title": "UI Popover",
+ "description": "A popover/hover-card whose opened/closed state is a pure function of the timeline. The Popover renderer is a pure function of a PopoverStyle (opacity, scale, translate); usePopoverTransition eases both the open and the close. The static `side` prop sets the enter translate axis; renders title + description and/or arbitrary children in a popover card.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/popover/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/popover.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/popover/use-popover-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-popover-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "context-menu",
+ "title": "UI Context Menu",
+ "description": "A right-click context menu whose opened/closed state is a pure function of the timeline; the panel scales from its top-left corner (the click point) with a fade + lift. No trigger — the caller positions it. Rows reuse the DropdownMenuItem row; items are plain string labels.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "dropdown-menu-item"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/context-menu/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/context-menu.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/context-menu/use-context-menu-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-context-menu-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "toggle-group",
+ "title": "UI Toggle Group",
+ "description": "A segmented control whose active value is a pure function of the timeline; a raised thumb SLIDES between segments (position + width derived from a float indicator offset, no jumps) and the labels crossfade color via mixOklch. The tabs precedent without content panels.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/toggle-group/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/toggle-group.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/toggle-group/use-toggle-group-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-toggle-group-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "stepper",
+ "title": "UI Stepper",
+ "description": "A horizontal onboarding stepper whose progress is a pure function of a continuous step index (value-channel deviation). Every circle (fill, number, stroke-dash check) and connector (primary fill fraction) derives purely from the float position; useStepperTransition reads the frame and eases position between step indices.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/stepper/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/stepper.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/stepper/use-stepper-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-stepper-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "resizable",
+ "title": "UI Resizable",
+ "description": "Two panels split by a draggable handle, where the split ratio is a numeric channel plus a handle idle/hover/press channel (dual-channel value-channel deviation). The Resizable renderer is pure (clamped 0–1 ratio, handle scale, grab-ring opacity); useResizableTransition reads the frame and eases both channels — ratio as a numeric lerp, the handle visual from its state presets. Horizontal and vertical splits; 1px divider + centered grip pill with a derived grab ring.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/resizable/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/resizable.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/resizable/use-resizable-transition.ts",
+ "type": "registry:component",
+ "target": "components/remocn/use-resizable-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "signup-flow",
+ "title": "UI Signup Flow",
+ "description": "A signup card composition: a real shadcn-style card (header, labeled Full Name / Email / Password / Confirm fields, primary + Google-outline buttons, sign-in footer) whose cursor fills each field top-to-bottom, then clicks Create account (hover → press → loading → success) as a success toast slides in. A pure orchestrator — every channel comes from a composed primitive's transition hook.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "cursor",
+ "input",
+ "button",
+ "toast",
+ "field",
+ "blur-in"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/signup-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/signup-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "ai-prompt-flow",
+ "title": "UI AI Prompt Flow",
+ "description": "An AI prompt composition: a prompt types into the field, the Generate button runs hover → press → loading, a skeleton shimmer reveals, then crossfades into the generated answer, and a ready toast slides in. A pure orchestrator — the shimmer is owned by the skeleton-block motion atom; every other channel comes from a composed primitive's hook.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "input",
+ "button",
+ "skeleton",
+ "skeleton-block",
+ "toast"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/ai-prompt-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/ai-prompt-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "checkout-flow",
+ "title": "UI Checkout Flow",
+ "description": "A cursor-driven checkout card: the card and its fields blur-in, then the pointer flips a billing-cycle toggle, types a card number, ticks the terms checkbox, and presses Pay through to success, ending in a toast. A pure orchestrator — every channel comes from a composed primitive's transition hook.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "toggle-group",
+ "input",
+ "checkbox",
+ "button",
+ "field",
+ "blur-in",
+ "cursor",
+ "toast"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/checkout-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/checkout-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "onboarding-stepper-flow",
+ "title": "UI Onboarding Stepper Flow",
+ "description": "A multi-step onboarding composition: a horizontal stepper advances through panels of input, radio, and switch fields, finishing on a Finish button that runs to success. Panel crossfade derives linearly from the stepper's exposed position channel; every other channel comes from a composed primitive's hook.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "stepper",
+ "input",
+ "radio",
+ "switch",
+ "button"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/onboarding-stepper-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/onboarding-stepper-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+ },
+ {
+ "name": "settings-toggle-flow",
+ "title": "UI Settings Toggle Flow",
+ "description": "A two-column settings card: the card and its controls blur-in, then the cursor flips a switch, opens a select, drags a labeled slider, and clicks Save, ending in a saved toast. A pure orchestrator — every channel comes from a composed primitive's transition hook.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "switch",
+ "select",
+ "slider",
+ "button",
+ "blur-in",
+ "cursor",
+ "toast"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/settings-toggle-flow/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/settings-toggle-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/public/r/remocn-ui.json b/public/r/remocn-ui.json
new file mode 100644
index 00000000..efa42165
--- /dev/null
+++ b/public/r/remocn-ui.json
@@ -0,0 +1,49 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "remocn-ui",
+ "title": "remocn UI Core",
+ "description": "Shared timeline-fold hook, theme context, and color math for remocn UI primitives.",
+ "dependencies": [
+ "remotion",
+ "culori"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/core/timeline.ts",
+ "content": "import { useCurrentFrame } from \"remotion\";\nimport type { Step } from \"./types\";\n\nexport function framesFor(d: number | { seconds: number }, fps: number): number {\n return typeof d === \"number\" ? d : Math.round(d.seconds * fps);\n}\n\nexport function revealCount(\n localFrame: number,\n fps: number,\n len: number,\n cps: number,\n): number {\n const over = (len / cps) * fps;\n if (over <= 0) return len;\n return Math.max(0, Math.min(len, Math.floor((localFrame / over) * len)));\n}\n\nexport function clamp01(t: number): number {\n return Math.max(0, Math.min(1, t));\n}\n\nexport function useCurrentState<S extends string>(\n steps: Step<S>[],\n defaultState: S,\n speed = 1,\n): S {\n const effectiveFrame = useCurrentFrame() * speed;\n let current = defaultState;\n let bestAt = -Infinity;\n steps.forEach((step) => {\n if (step.at <= effectiveFrame && step.at >= bestAt) {\n bestAt = step.at;\n current = step.state;\n }\n });\n return current;\n}\n\nexport function useStateTransition<S extends string>(\n steps: Step<S>[],\n defaultState: S,\n speed = 1,\n defaultDuration = 8,\n): { from: S; to: S; progress: number } {\n const effectiveFrame = useCurrentFrame() * speed;\n const started = steps\n .map((step, index) => ({ step, index }))\n .sort((a, b) => a.step.at - b.step.at || a.index - b.index)\n .filter((e) => e.step.at <= effectiveFrame);\n if (started.length === 0)\n return { from: defaultState, to: defaultState, progress: 1 };\n const to = started[started.length - 1].step;\n const from = started.length >= 2 ? started[started.length - 2].step : null;\n const dur = to.duration ?? defaultDuration;\n const progress = dur > 0 ? clamp01((effectiveFrame - to.at) / dur) : 1;\n return { from: from ? from.state : defaultState, to: to.state, progress };\n}\n",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/timeline.ts"
+ },
+ {
+ "path": "registry/remocn-ui/core/theme.ts",
+ "content": "\"use client\";\n\nimport { createContext, createElement, useContext } from \"react\";\nimport type { ReactNode } from \"react\";\n\nexport interface RemocnTheme {\n background: string;\n foreground: string;\n card: string;\n cardForeground: string;\n popover: string;\n popoverForeground: string;\n primary: string;\n primaryForeground: string;\n secondary: string;\n secondaryForeground: string;\n muted: string;\n mutedForeground: string;\n accent: string;\n accentForeground: string;\n destructive: string;\n destructiveForeground: string;\n border: string;\n input: string;\n ring: string;\n radius: number;\n}\n\nexport const defaultLightTheme: RemocnTheme = {\n background: \"oklch(1 0 0)\",\n foreground: \"oklch(0.145 0 0)\",\n card: \"oklch(1 0 0)\",\n cardForeground: \"oklch(0.145 0 0)\",\n popover: \"oklch(1 0 0)\",\n popoverForeground: \"oklch(0.145 0 0)\",\n primary: \"oklch(0.205 0 0)\",\n primaryForeground: \"oklch(0.985 0 0)\",\n secondary: \"oklch(0.97 0 0)\",\n secondaryForeground: \"oklch(0.205 0 0)\",\n muted: \"oklch(0.97 0 0)\",\n mutedForeground: \"oklch(0.556 0 0)\",\n accent: \"oklch(0.97 0 0)\",\n accentForeground: \"oklch(0.205 0 0)\",\n destructive: \"oklch(0.577 0.245 27.325)\",\n destructiveForeground: \"oklch(0.985 0 0)\",\n border: \"oklch(0.922 0 0)\",\n input: \"oklch(0.922 0 0)\",\n ring: \"oklch(0.708 0 0)\",\n radius: 10,\n}\n\nexport const defaultDarkTheme: RemocnTheme = {\n background: \"oklch(0.145 0 0)\",\n foreground: \"oklch(0.985 0 0)\",\n card: \"oklch(0.205 0 0)\",\n cardForeground: \"oklch(0.985 0 0)\",\n popover: \"oklch(0.205 0 0)\",\n popoverForeground: \"oklch(0.985 0 0)\",\n primary: \"oklch(0.922 0 0)\",\n primaryForeground: \"oklch(0.205 0 0)\",\n secondary: \"oklch(0.269 0 0)\",\n secondaryForeground: \"oklch(0.985 0 0)\",\n muted: \"oklch(0.269 0 0)\",\n mutedForeground: \"oklch(0.708 0 0)\",\n accent: \"oklch(0.269 0 0)\",\n accentForeground: \"oklch(0.985 0 0)\",\n destructive: \"oklch(0.704 0.191 22.216)\",\n destructiveForeground: \"oklch(0.985 0 0)\",\n border: \"oklch(1 0 0 / 10%)\",\n input: \"oklch(1 0 0 / 15%)\",\n ring: \"oklch(0.556 0 0)\",\n radius: 10,\n};\n\ninterface RemocnThemeContextValue {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n}\n\nconst RemocnThemeContext = createContext<RemocnThemeContextValue>({});\n\nexport interface RemocnUIProviderProps {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n children: ReactNode;\n}\n\nexport function RemocnUIProvider({\n theme,\n mode,\n children,\n}: RemocnUIProviderProps) {\n return createElement(\n RemocnThemeContext.Provider,\n { value: { theme, mode } },\n children,\n );\n}\n\nexport function useRemocnTheme(\n override?: Partial<RemocnTheme>,\n modeOverride?: \"light\" | \"dark\",\n): RemocnTheme {\n const ctx = useContext(RemocnThemeContext);\n const mode = modeOverride ?? ctx.mode ?? \"light\";\n const base = mode === \"dark\" ? defaultDarkTheme : defaultLightTheme;\n return { ...base, ...ctx.theme, ...override };\n}\n",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/theme.ts"
+ },
+ {
+ "path": "registry/remocn-ui/core/color.ts",
+ "content": "\nimport {\n clampChroma,\n converter,\n formatRgb,\n interpolate,\n parse,\n type Oklch,\n type Rgb,\n} from \"culori\";\n\nconst toRgb = converter(\"rgb\");\nconst toOklch = converter(\"oklch\");\n\nconst BLACK: Rgb = { mode: \"rgb\", r: 0, g: 0, b: 0, alpha: 1 };\n\nexport function parseColor(c: string): Rgb {\n const s = c.trim();\n\n if (s.startsWith(\"var(\")) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(\n `[remocn-ui] parseColor cannot resolve CSS variable \"${s}\" under Remotion's per-frame render. ` +\n \"Animated colors must be concrete oklch/hex/rgb values supplied via the theme. \" +\n \"Falling back to the JS default.\",\n );\n }\n return { ...BLACK };\n }\n\n const rgb = toRgb(parse(s));\n if (!rgb) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(`[remocn-ui] parseColor could not parse \"${s}\"; using black.`);\n }\n return { ...BLACK };\n }\n\n return { mode: \"rgb\", r: rgb.r, g: rgb.g, b: rgb.b, alpha: rgb.alpha ?? 1 };\n}\n\nexport function oklchToRgb(l: number, c: number, h: number): Rgb {\n const mapped = clampChroma({ mode: \"oklch\", l, c, h }, \"oklch\", \"rgb\");\n return toRgb(mapped);\n}\n\nexport function rgbToOklch(rgb: Rgb): Oklch {\n const { l, c, h } = toOklch(rgb);\n return { mode: \"oklch\", l, c, h: Number.isFinite(h) ? h : 0 };\n}\n\nfunction resolveColorString(s: string): string {\n const trimmed = s.trim();\n if (trimmed.startsWith(\"var(\")) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(\n `[remocn-ui] mixOklch cannot resolve CSS variable \"${trimmed}\" under Remotion's per-frame render. ` +\n \"Animated colors must be concrete oklch/hex/rgb values supplied via the theme. \" +\n \"Falling back to the JS default.\",\n );\n }\n return \"#000\";\n }\n if (!parse(trimmed)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(`[remocn-ui] mixOklch could not parse \"${trimmed}\"; using black.`);\n }\n return \"#000\";\n }\n return trimmed;\n}\n\nexport function mixOklch(a: string, b: string, t: number): string {\n const mixed = clampChroma(\n interpolate([resolveColorString(a), resolveColorString(b)], \"oklch\")(t),\n \"oklch\",\n \"rgb\",\n );\n return toCss(toRgb(mixed));\n}\n\nexport function toCss(color: Rgb): string {\n return formatRgb(color);\n}\n",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/color.ts"
+ },
+ {
+ "path": "registry/remocn-ui/core/motion.ts",
+ "content": "\nexport const easings = {\n linear: (t: number): number => t,\n out: (t: number): number => 1 - (1 - t) ** 3,\n in: (t: number): number => t * t * t,\n inOut: (t: number): number =>\n t < 0.5 ? 4 * t * t * t : 1 - (-2 * t + 2) ** 3 / 2,\n} as const;\n\nexport type EasingName = keyof typeof easings;\n\nexport const springs = {\n snappy: { damping: 18, stiffness: 220, mass: 0.7 },\n soft: { damping: 14, stiffness: 120, mass: 0.9 },\n bouncy: { damping: 10, stiffness: 180, mass: 0.8 },\n} as const;\n\nexport type SpringName = keyof typeof springs;\n",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/motion.ts"
+ },
+ {
+ "path": "registry/remocn-ui/core/types.ts",
+ "content": "export interface Step<S extends string = string> {\n at: number;\n state: S;\n duration?: number;\n}\n",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/types.ts"
+ },
+ {
+ "path": "registry/remocn-ui/core/index.ts",
+ "content": "export type { Step } from \"./types\";\nexport {\n clamp01,\n framesFor,\n revealCount,\n useCurrentState,\n useStateTransition,\n} from \"./timeline\";\nexport {\n mixOklch,\n oklchToRgb,\n parseColor,\n rgbToOklch,\n toCss,\n} from \"./color\";\nexport {\n defaultDarkTheme,\n defaultLightTheme,\n RemocnUIProvider,\n useRemocnTheme,\n} from \"./theme\";\nexport type { RemocnTheme, RemocnUIProviderProps } from \"./theme\";\nexport { easings, springs } from \"./motion\";\nexport type { EasingName, SpringName } from \"./motion\";\n",
+ "type": "registry:lib",
+ "target": "lib/remocn-ui/index.ts"
+ }
+ ],
+ "type": "registry:lib"
+}
\ No newline at end of file
diff --git a/public/r/resizable.json b/public/r/resizable.json
new file mode 100644
index 00000000..bf15cbef
--- /dev/null
+++ b/public/r/resizable.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "resizable",
+ "title": "UI Resizable",
+ "description": "Two panels split by a draggable handle, where the split ratio is a numeric channel plus a handle idle/hover/press channel (dual-channel value-channel deviation). The Resizable renderer is pure (clamped 0–1 ratio, handle scale, grab-ring opacity); useResizableTransition reads the frame and eases both channels — ratio as a numeric lerp, the handle visual from its state presets. Horizontal and vertical splits; 1px divider + centered grip pill with a derived grab ring.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/resizable/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { clamp01, mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type ResizableHandleState = \"idle\" | \"hover\" | \"press\";\n\nexport type ResizableDirection = \"horizontal\" | \"vertical\";\n\nexport interface ResizableStyle {\n ratio: number;\n handleScale: number;\n handleRingOpacity: number;\n}\n\nexport interface ResizableProps {\n first?: ReactNode;\n second?: ReactNode;\n direction?: ResizableDirection;\n ratio?: number;\n handleState?: ResizableHandleState;\n style?: ResizableStyle;\n minRatio?: number;\n maxRatio?: number;\n width?: number;\n height?: number;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst DIVIDER = 1;\nconst GRIP_LONG = 24;\nconst GRIP_SHORT = 4;\nconst RING_WIDTH = 4;\n\nfunction clampRatio(ratio: number, minRatio: number, maxRatio: number): number {\n return Math.min(maxRatio, Math.max(minRatio, ratio));\n}\n\nexport function resizableHandleStyle(handleState: ResizableHandleState): {\n handleScale: number;\n handleRingOpacity: number;\n} {\n switch (handleState) {\n case \"hover\":\n return { handleScale: 1.15, handleRingOpacity: 1 };\n case \"press\":\n return { handleScale: 1.25, handleRingOpacity: 1 };\n default:\n return { handleScale: 1, handleRingOpacity: 0 };\n }\n}\n\nexport interface ResizableStyleContext {\n containerBg: string;\n border: string;\n panelBg: string;\n grip: string;\n ring: string;\n placeholderFg: string;\n radius: number;\n}\n\nexport function resizableStyleContext(theme: RemocnTheme): ResizableStyleContext {\n return {\n containerBg: theme.background,\n border: theme.border,\n panelBg: theme.muted,\n grip: theme.border,\n ring: mixOklch(theme.ring, theme.background, 0.6),\n placeholderFg: theme.mutedForeground,\n radius: theme.radius,\n };\n}\n\nexport function resizableStyle(\n ratio: number,\n handleState: ResizableHandleState,\n): ResizableStyle {\n const handle = resizableHandleStyle(handleState);\n return {\n ratio,\n handleScale: handle.handleScale,\n handleRingOpacity: handle.handleRingOpacity,\n };\n}\n\nfunction Placeholder({ label, color }: { label: string; color: string }) {\n return (\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: 13,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color,\n }}\n >\n {label}\n </div>\n );\n}\n\nexport function Resizable({\n first,\n second,\n direction = \"horizontal\",\n ratio = 0.5,\n handleState = \"idle\",\n style,\n minRatio = 0.15,\n maxRatio = 0.85,\n width = 440,\n height = 240,\n theme: themeOverride,\n mode,\n className,\n}: ResizableProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = resizableStyleContext(theme);\n\n const v = style ?? resizableStyle(ratio, handleState);\n const pct = clampRatio(v.ratio, minRatio, maxRatio) * 100;\n const isHorizontal = direction === \"horizontal\";\n\n const gripW = isHorizontal ? GRIP_SHORT : GRIP_LONG;\n const gripH = isHorizontal ? GRIP_LONG : GRIP_SHORT;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n width,\n height,\n display: \"flex\",\n flexDirection: isHorizontal ? \"row\" : \"column\",\n background: ctx.containerBg,\n border: `1px solid ${ctx.border}`,\n borderRadius: ctx.radius,\n overflow: \"hidden\",\n boxSizing: \"border-box\",\n }}\n >\n {}\n <div\n style={{\n flex: \"none\",\n [isHorizontal ? \"width\" : \"height\"]: `${pct}%`,\n background: ctx.panelBg,\n overflow: \"hidden\",\n }}\n >\n {first ?? <Placeholder label=\"Panel one\" color={ctx.placeholderFg} />}\n </div>\n {}\n <div\n style={{\n position: \"relative\",\n flex: \"none\",\n [isHorizontal ? \"width\" : \"height\"]: DIVIDER,\n background: ctx.border,\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: gripW + RING_WIDTH * 2,\n height: gripH + RING_WIDTH * 2,\n transform: `translate(-50%, -50%) scale(${v.handleScale})`,\n borderRadius: 999,\n background: ctx.ring,\n opacity: v.handleRingOpacity,\n }}\n />\n {}\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: gripW,\n height: gripH,\n transform: `translate(-50%, -50%) scale(${v.handleScale})`,\n borderRadius: 999,\n background: ctx.grip,\n }}\n />\n </div>\n {}\n <div\n style={{\n flex: \"1 1 0\",\n background: ctx.panelBg,\n overflow: \"hidden\",\n }}\n >\n {second ?? <Placeholder label=\"Panel two\" color={ctx.placeholderFg} />}\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/resizable.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/resizable/use-resizable-transition.ts",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\nimport { clamp01, type EasingName, easings } from \"@/lib/remocn-ui\";\nimport {\n resizableHandleStyle,\n type ResizableHandleState,\n type ResizableStyle,\n} from \"@/components/remocn/resizable\";\n\nexport interface ResizableStep {\n at: number;\n ratio?: number;\n handleState?: ResizableHandleState;\n duration?: number;\n easing?: EasingName;\n}\n\nexport const DEFAULT_DURATION = 18;\n\nexport interface ResizableTransitionOptions {\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function tweenResizableStyle(\n a: ResizableStyle,\n b: ResizableStyle,\n t: number,\n): ResizableStyle {\n return {\n ratio: a.ratio + (b.ratio - a.ratio) * t,\n handleScale: a.handleScale + (b.handleScale - a.handleScale) * t,\n handleRingOpacity:\n a.handleRingOpacity + (b.handleRingOpacity - a.handleRingOpacity) * t,\n };\n}\n\nexport function useResizableTransition(\n steps: ResizableStep[],\n opts: ResizableTransitionOptions = {},\n): ResizableStyle {\n const { speed = 1 } = opts;\n const raw = useCurrentFrame() * speed;\n return resizableStyleAt(steps, raw, opts);\n}\n\nfunction ratioAt(\n steps: ResizableStep[],\n raw: number,\n defaultDuration: number,\n): number {\n const ratioSteps = steps.filter(\n (s): s is ResizableStep & { ratio: number } => s.ratio !== undefined,\n );\n if (ratioSteps.length === 0) return 0.5;\n const first = ratioSteps[0];\n if (raw <= first.at) return first.ratio;\n\n let toIndex = ratioSteps.length - 1;\n for (let i = 1; i < ratioSteps.length; i++) {\n if (ratioSteps[i].at > raw) {\n toIndex = i;\n break;\n }\n }\n const pastLast = raw >= ratioSteps[ratioSteps.length - 1].at;\n const to = pastLast ? ratioSteps[ratioSteps.length - 1] : ratioSteps[toIndex];\n const from = pastLast\n ? ratioSteps[ratioSteps.length - 1]\n : ratioSteps[toIndex - 1];\n\n const dur = to.duration ?? defaultDuration;\n const ease = easings[to.easing ?? \"out\"];\n const start = to.at - dur;\n const t = pastLast || dur <= 0 ? 1 : ease(clamp01((raw - start) / dur));\n return from.ratio + (to.ratio - from.ratio) * t;\n}\n\nfunction handleAt(\n steps: ResizableStep[],\n raw: number,\n defaultDuration: number,\n): { handleScale: number; handleRingOpacity: number } {\n const handleSteps = steps.filter(\n (s): s is ResizableStep & { handleState: ResizableHandleState } =>\n s.handleState !== undefined,\n );\n if (handleSteps.length === 0) return resizableHandleStyle(\"idle\");\n const first = handleSteps[0];\n if (raw <= first.at) return resizableHandleStyle(first.handleState);\n\n let toIndex = handleSteps.length - 1;\n for (let i = 1; i < handleSteps.length; i++) {\n if (handleSteps[i].at > raw) {\n toIndex = i;\n break;\n }\n }\n const pastLast = raw >= handleSteps[handleSteps.length - 1].at;\n const to = pastLast\n ? handleSteps[handleSteps.length - 1]\n : handleSteps[toIndex];\n const from = pastLast\n ? handleSteps[handleSteps.length - 1]\n : handleSteps[toIndex - 1];\n\n const dur = to.duration ?? defaultDuration;\n const ease = easings[to.easing ?? \"out\"];\n const start = to.at - dur;\n const t = pastLast || dur <= 0 ? 1 : ease(clamp01((raw - start) / dur));\n\n const a = resizableHandleStyle(from.handleState);\n const b = resizableHandleStyle(to.handleState);\n return {\n handleScale: a.handleScale + (b.handleScale - a.handleScale) * t,\n handleRingOpacity:\n a.handleRingOpacity + (b.handleRingOpacity - a.handleRingOpacity) * t,\n };\n}\n\nexport function resizableStyleAt(\n steps: ResizableStep[],\n raw: number,\n opts: ResizableTransitionOptions = {},\n): ResizableStyle {\n const { defaultDuration = DEFAULT_DURATION } = opts;\n const ratio = ratioAt(steps, raw, defaultDuration);\n const handle = handleAt(steps, raw, defaultDuration);\n return {\n ratio,\n handleScale: handle.handleScale,\n handleRingOpacity: handle.handleRingOpacity,\n };\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-resizable-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/select-item.json b/public/r/select-item.json
new file mode 100644
index 00000000..a907a620
--- /dev/null
+++ b/public/r/select-item.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "select-item",
+ "title": "UI Select Item",
+ "description": "A select option row whose idle/hover/press/selected state is a pure function of the timeline; the row background, label color, and check icon are keyframed presets. Composed inside the Select panel.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/select-item/index.tsx",
+ "content": "\"use client\";\n\nimport { mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type SelectItemState = \"idle\" | \"hover\" | \"press\" | \"selected\";\n\nexport interface SelectItemProps {\n state?: SelectItemState;\n style?: SelectItemStyle;\n label?: string;\n width?: number;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst ROW_WIDTH = 260;\n\nexport interface SelectItemStyle {\n background: string;\n labelColor: string;\n checkOpacity: number;\n scale: number;\n}\n\nexport interface SelectItemStyleContext {\n idleBg: string;\n hoverBg: string;\n pressBg: string;\n selectedBg: string;\n idleFg: string;\n selectedFg: string;\n check: string;\n}\n\nexport function selectItemStyleContext(\n theme: RemocnTheme,\n): SelectItemStyleContext {\n return {\n idleBg: theme.popover,\n hoverBg: theme.accent,\n pressBg: mixOklch(theme.accent, theme.foreground, 0.08),\n selectedBg: theme.accent,\n idleFg: theme.popoverForeground,\n selectedFg: theme.accentForeground,\n check: theme.primary,\n };\n}\n\nexport function selectItemStyle(\n state: SelectItemState,\n ctx: SelectItemStyleContext,\n): SelectItemStyle {\n switch (state) {\n case \"hover\":\n return {\n background: ctx.hoverBg,\n labelColor: ctx.idleFg,\n checkOpacity: 0,\n scale: 1,\n };\n case \"press\":\n return {\n background: ctx.pressBg,\n labelColor: ctx.idleFg,\n checkOpacity: 0,\n scale: 0.98,\n };\n case \"selected\":\n return {\n background: ctx.selectedBg,\n labelColor: ctx.selectedFg,\n checkOpacity: 1,\n scale: 1,\n };\n default:\n return {\n background: ctx.idleBg,\n labelColor: ctx.idleFg,\n checkOpacity: 0,\n scale: 1,\n };\n }\n}\n\nexport interface SelectItemRowProps {\n style?: SelectItemStyle;\n state?: SelectItemState;\n ctx: SelectItemStyleContext;\n label: string;\n width: number;\n radius: number;\n check: string;\n}\n\nexport function SelectItemRow({\n style,\n state = \"idle\",\n ctx,\n label,\n width,\n radius,\n check,\n}: SelectItemRowProps) {\n const v = style ?? selectItemStyle(state, ctx);\n return (\n <div\n className={undefined}\n style={{\n width,\n boxSizing: \"border-box\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n gap: 12,\n padding: \"8px 12px\",\n borderRadius: radius,\n transform: `scale(${v.scale})`,\n background: v.background,\n color: v.labelColor,\n fontSize: 14,\n letterSpacing: \"-0.01em\",\n }}\n >\n <span>{label}</span>\n <svg\n width={16}\n height={16}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{ flexShrink: 0, opacity: v.checkOpacity }}\n >\n <path\n d=\"M5 12.5l4.5 4.5L19 7\"\n stroke={check}\n strokeWidth=\"2.4\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n );\n}\n\nexport function SelectItem({\n state = \"idle\",\n style,\n label = \"Banana\",\n width = ROW_WIDTH,\n theme: themeOverride,\n mode,\n className,\n}: SelectItemProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = selectItemStyleContext(theme);\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <SelectItemRow\n style={style}\n state={state}\n ctx={ctx}\n label={label}\n width={width}\n radius={theme.radius}\n check={ctx.check}\n />\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/select-item.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/select-item/use-select-item-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n mixOklch,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n selectItemStyle,\n selectItemStyleContext,\n type SelectItemState,\n type SelectItemStyle,\n} from \"@/components/remocn/select-item\";\n\nexport const DEFAULT_DURATION = 8;\n\nexport function tweenSelectItemStyle(\n a: SelectItemStyle,\n b: SelectItemStyle,\n t: number,\n): SelectItemStyle {\n return {\n background: mixOklch(a.background, b.background, t),\n labelColor: mixOklch(a.labelColor, b.labelColor, t),\n checkOpacity: a.checkOpacity + (b.checkOpacity - a.checkOpacity) * t,\n scale: a.scale + (b.scale - a.scale) * t,\n };\n}\n\nexport interface SelectItemTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useSelectItemTransition(\n steps: Step<SelectItemState>[],\n opts: SelectItemTransitionOptions = {},\n): SelectItemStyle {\n const { theme: themeOverride, mode, speed = 1, defaultDuration = DEFAULT_DURATION } =\n opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = selectItemStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"idle\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenSelectItemStyle(\n selectItemStyle(from, ctx),\n selectItemStyle(to, ctx),\n t,\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-select-item-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/select.json b/public/r/select.json
new file mode 100644
index 00000000..53a260c0
--- /dev/null
+++ b/public/r/select.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "select",
+ "title": "UI Select",
+ "description": "A select whose opened/closed state is a pure function of the timeline; the trigger reuses the Button primitive and the reveal panel composes SelectItem rows. The panel fade, scale, lift, and chevron are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "button",
+ "select-item"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/select/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport {\n buttonStyle,\n buttonStyleContext,\n type ButtonStyle,\n type ButtonStyleContext,\n} from \"@/components/remocn/button\";\nimport {\n SelectItemRow,\n selectItemStyle,\n selectItemStyleContext,\n type SelectItemState,\n type SelectItemStyle,\n type SelectItemStyleContext,\n} from \"@/components/remocn/select-item\";\n\nexport type SelectState = \"opened\" | \"closed\";\n\nexport interface SelectProps {\n state?: SelectState;\n style?: SelectStyle;\n label?: string;\n triggerStyle?: ButtonStyle;\n items?: string[];\n selectedIndex?: number;\n highlightedIndex?: number;\n pressedIndex?: number;\n itemStyles?: (SelectItemStyle | undefined)[];\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst WIDTH = 260;\n\nexport interface SelectStyle {\n panelOpacity: number;\n panelScale: number;\n panelTranslateY: number;\n chevronRotation: number;\n}\n\nexport interface SelectStyleContext {\n triggerCtx: ButtonStyleContext;\n panelBg: string;\n panelBorder: string;\n triggerFg: string;\n mutedFg: string;\n radius: number;\n itemCtx: SelectItemStyleContext;\n}\n\nexport function selectStyleContext(theme: RemocnTheme): SelectStyleContext {\n return {\n triggerCtx: buttonStyleContext(\"outline\", theme),\n panelBg: theme.popover,\n panelBorder: theme.border,\n triggerFg: theme.foreground,\n mutedFg: theme.mutedForeground,\n radius: theme.radius,\n itemCtx: selectItemStyleContext(theme),\n };\n}\n\nexport function selectStyle(\n state: SelectState,\n _ctx: SelectStyleContext,\n): SelectStyle {\n switch (state) {\n case \"opened\":\n return {\n panelOpacity: 1,\n panelScale: 1,\n panelTranslateY: 0,\n chevronRotation: 180,\n };\n default:\n return {\n panelOpacity: 0,\n panelScale: 0.96,\n panelTranslateY: -4,\n chevronRotation: 0,\n };\n }\n}\n\nfunction rowState(\n i: number,\n selectedIndex: number,\n highlightedIndex: number,\n pressedIndex: number,\n): SelectItemState {\n if (i === pressedIndex) return \"press\";\n if (i === selectedIndex) return \"selected\";\n if (i === highlightedIndex) return \"hover\";\n return \"idle\";\n}\n\nexport function Select({\n state = \"closed\",\n style,\n label = \"Select a fruit\",\n triggerStyle,\n items = [\"Apple\", \"Banana\", \"Orange\", \"Grape\"],\n selectedIndex = -1,\n highlightedIndex = -1,\n pressedIndex = -1,\n itemStyles,\n theme: themeOverride,\n mode,\n className,\n}: SelectProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = selectStyleContext(theme);\n const v = style ?? selectStyle(state, ctx);\n\n const trigger: ButtonStyle =\n triggerStyle ?? buttonStyle(\"idle\", ctx.triggerCtx);\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div style={{ position: \"relative\", width: WIDTH }}>\n {}\n <div\n style={{\n width: WIDTH,\n boxSizing: \"border-box\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n gap: 8,\n height: 40,\n padding: \"0 16px\",\n fontSize: 15,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: ctx.triggerFg,\n transform: `translateY(${trigger.translateY}px) scale(${trigger.scale})`,\n background: trigger.background,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius,\n }}\n >\n <span>{label}</span>\n <svg\n width={16}\n height={16}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{\n flexShrink: 0,\n transform: `rotate(${v.chevronRotation}deg)`,\n }}\n >\n <path\n d=\"M6 9l6 6 6-6\"\n stroke={ctx.mutedFg}\n strokeWidth=\"2.2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </div>\n {}\n <div\n style={{\n position: \"absolute\",\n top: \"calc(100% + 6px)\",\n left: 0,\n width: WIDTH,\n boxSizing: \"border-box\",\n transformOrigin: \"top\",\n transform: `translateY(${v.panelTranslateY}px) scale(${v.panelScale})`,\n opacity: v.panelOpacity,\n background: ctx.panelBg,\n border: `1px solid ${ctx.panelBorder}`,\n borderRadius: ctx.radius,\n padding: 4,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 2,\n boxShadow: \"0 16px 32px -12px rgba(0,0,0,0.25)\",\n }}\n >\n {items.map((item, i) => {\n const override = itemStyles?.[i];\n return (\n <SelectItemRow\n key={item}\n style={\n override ??\n selectItemStyle(\n rowState(i, selectedIndex, highlightedIndex, pressedIndex),\n ctx.itemCtx,\n )\n }\n ctx={ctx.itemCtx}\n label={item}\n width={WIDTH - 8}\n radius={theme.radius}\n check={ctx.itemCtx.check}\n />\n );\n })}\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/select.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/select/use-select-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n selectStyle,\n selectStyleContext,\n type SelectState,\n type SelectStyle,\n} from \"@/components/remocn/select\";\n\nexport const DEFAULT_DURATION = 12;\n\nexport function tweenSelectStyle(\n a: SelectStyle,\n b: SelectStyle,\n t: number,\n): SelectStyle {\n return {\n panelOpacity: a.panelOpacity + (b.panelOpacity - a.panelOpacity) * t,\n panelScale: a.panelScale + (b.panelScale - a.panelScale) * t,\n panelTranslateY:\n a.panelTranslateY + (b.panelTranslateY - a.panelTranslateY) * t,\n chevronRotation:\n a.chevronRotation + (b.chevronRotation - a.chevronRotation) * t,\n };\n}\n\nexport interface SelectTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useSelectTransition(\n steps: Step<SelectState>[],\n opts: SelectTransitionOptions = {},\n): SelectStyle {\n const { theme: themeOverride, mode, speed = 1, defaultDuration = DEFAULT_DURATION } =\n opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = selectStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenSelectStyle(selectStyle(from, ctx), selectStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-select-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/settings-toggle-flow.json b/public/r/settings-toggle-flow.json
new file mode 100644
index 00000000..ac6822d8
--- /dev/null
+++ b/public/r/settings-toggle-flow.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "settings-toggle-flow",
+ "title": "UI Settings Toggle Flow",
+ "description": "A two-column settings card: the card and its controls blur-in, then the cursor flips a switch, opens a select, drags a labeled slider, and clicks Save, ending in a saved toast. A pure orchestrator — every channel comes from a composed primitive's transition hook.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "switch",
+ "select",
+ "slider",
+ "button",
+ "blur-in",
+ "cursor",
+ "toast"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/settings-toggle-flow/index.tsx",
+ "content": "\"use client\";\n\nimport { Button } from \"@/components/remocn/button\";\nimport { useButtonTransition } from \"@/components/remocn/use-button-transition\";\nimport { Cursor } from \"@/components/remocn/cursor\";\nimport { useCursorPath } from \"@/components/remocn/use-cursor-path\";\nimport { Select } from \"@/components/remocn/select\";\nimport { useSelectTransition } from \"@/components/remocn/use-select-transition\";\nimport { useSelectItemTransition } from \"@/components/remocn/use-select-item-transition\";\nimport { Slider } from \"@/components/remocn/slider\";\nimport { useSliderTransition } from \"@/components/remocn/use-slider-transition\";\nimport { Switch } from \"@/components/remocn/switch\";\nimport { useSwitchTransition } from \"@/components/remocn/use-switch-transition\";\nimport { Toast } from \"@/components/remocn/toast\";\nimport { useToastTransition } from \"@/components/remocn/use-toast-transition\";\nimport { useBlurInTransition } from \"@/components/remocn/use-blur-in-transition\";\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nconst DEFAULT_ROWS = [\n { label: \"Notifications\" },\n { label: \"Theme\" },\n { label: \"Volume\" },\n];\nconst DEFAULT_SELECT_ITEMS = [\"System\", \"Light\", \"Dark\"];\n\nconst LEFT_X = 320;\nconst RIGHT_X = 700;\nconst COL_W = 300;\n\nconst NOTIF_LABEL_Y = 196;\nconst SWITCH_TOP = 222;\nconst SWITCH_W = 44;\nconst SWITCH_H = 28;\nconst SWITCH_CX = RIGHT_X + SWITCH_W / 2;\nconst SWITCH_CY = SWITCH_TOP + SWITCH_H / 2;\n\nconst THEME_LABEL_Y = 280;\nconst SELECT_W = 260;\nconst TRIGGER_TOP = 320;\nconst TRIGGER_H = 40;\nconst TRIGGER_CX = RIGHT_X + SELECT_W / 2;\nconst TRIGGER_CY = TRIGGER_TOP + TRIGGER_H / 2;\nconst ITEM_CX = TRIGGER_CX;\nconst PANEL_TOP = TRIGGER_TOP + TRIGGER_H + 6;\nconst PANEL_PAD = 4;\nconst ITEM_H = 33;\nconst ITEM_GAP = 2;\n\nconst VOL_LABEL_Y = 380;\nconst SLIDER_TOP = 400;\nconst SLIDER_W = 260;\nconst SLIDER_H = 16;\nconst SLIDER_CY = SLIDER_TOP + SLIDER_H / 2;\nconst SLIDER_X0 = RIGHT_X;\nconst THUMB_X_AT_20 = SLIDER_X0 + 0.2 * SLIDER_W;\nconst THUMB_X_AT_80 = SLIDER_X0 + 0.8 * SLIDER_W;\n\nconst SAVE_W = 160;\nconst SAVE_LEFT = RIGHT_X + SELECT_W - SAVE_W;\nconst SAVE_TOP = 544;\nconst SAVE_H = 40;\nconst SAVE_CX = SAVE_LEFT + SAVE_W / 2;\nconst SAVE_CY = SAVE_TOP + SAVE_H / 2;\n\nconst CARD_PAD = 44;\nconst CARD_LEFT = LEFT_X - CARD_PAD;\nconst CARD_TOP = NOTIF_LABEL_Y - CARD_PAD;\nconst CARD_W = RIGHT_X + SELECT_W + CARD_PAD - CARD_LEFT;\nconst CARD_H = SAVE_TOP + SAVE_H + CARD_PAD - CARD_TOP;\n\nconst DEMO = 44;\n\nexport interface SettingsToggleFlowProps {\n title?: string;\n description?: string;\n rows?: { label: string }[];\n selectItems?: string[];\n saveLabel?: string;\n toastTitle?: string;\n mode?: \"light\" | \"dark\";\n theme?: Partial<RemocnTheme>;\n}\n\nexport function SettingsToggleFlow({\n title = \"Notification settings\",\n description = \"Manage how you receive alerts, set your theme, and tune the volume.\",\n rows = DEFAULT_ROWS,\n selectItems = DEFAULT_SELECT_ITEMS,\n saveLabel = \"Save settings\",\n toastTitle = \"Settings saved\",\n mode = \"light\",\n theme,\n}: SettingsToggleFlowProps) {\n const resolved = useRemocnTheme(theme, mode);\n const opts = { mode, theme };\n\n const lastItem = selectItems.length - 1;\n const ITEM_CY =\n PANEL_TOP + PANEL_PAD + lastItem * (ITEM_H + ITEM_GAP) + ITEM_H / 2;\n\n const cardEnter = useBlurInTransition(\n [{ at: 0, state: \"revealed\", duration: 18 }],\n { distance: 0 },\n );\n const enterHeader = useBlurInTransition([\n { at: 18, state: \"revealed\", duration: 16 },\n ]);\n const enterSwitch = useBlurInTransition([\n { at: 24, state: \"revealed\", duration: 16 },\n ]);\n const enterTheme = useBlurInTransition([\n { at: 30, state: \"revealed\", duration: 16 },\n ]);\n const enterVolume = useBlurInTransition([\n { at: 36, state: \"revealed\", duration: 16 },\n ]);\n const enterSave = useBlurInTransition([\n { at: 42, state: \"revealed\", duration: 16 },\n ]);\n\n const reveal = (e: { opacity: number; blur: number; translateX: number; translateY: number }) => ({\n opacity: e.opacity,\n filter: e.blur > 0 ? `blur(${e.blur}px)` : \"none\",\n transform: `translate(${e.translateX}px, ${e.translateY}px)`,\n });\n\n const cursorStyle = useCursorPath([\n { at: 0, x: 220, y: 130 },\n { at: 24 + DEMO, x: SWITCH_CX, y: SWITCH_CY, duration: 20 },\n { at: 24 + DEMO, x: SWITCH_CX, y: SWITCH_CY, click: true, duration: 0 },\n { at: 55 + DEMO, x: TRIGGER_CX, y: TRIGGER_CY, duration: 22 },\n { at: 55 + DEMO, x: TRIGGER_CX, y: TRIGGER_CY, click: true, duration: 0 },\n { at: 80 + DEMO, x: ITEM_CX, y: ITEM_CY, duration: 18 },\n { at: 80 + DEMO, x: ITEM_CX, y: ITEM_CY, click: true, duration: 0 },\n { at: 105 + DEMO, x: THUMB_X_AT_20, y: SLIDER_CY, duration: 18 },\n { at: 105 + DEMO, x: THUMB_X_AT_20, y: SLIDER_CY, press: true, duration: 0 },\n { at: 150 + DEMO, x: THUMB_X_AT_80, y: SLIDER_CY, press: true, duration: 45 },\n { at: 158 + DEMO, x: THUMB_X_AT_80, y: SLIDER_CY, duration: 0 },\n { at: 180 + DEMO, x: SAVE_CX, y: SAVE_CY, duration: 18 },\n { at: 180 + DEMO, x: SAVE_CX, y: SAVE_CY, click: true, duration: 0 },\n ]);\n\n const switchStyle = useSwitchTransition(\n [{ at: 24 + DEMO, state: \"checked\", duration: 12 }],\n opts,\n );\n\n const panelStyle = useSelectTransition(\n [\n { at: 55 + DEMO, state: \"opened\", duration: 14 },\n { at: 90 + DEMO, state: \"closed\", duration: 12 },\n ],\n opts,\n );\n\n const triggerStyle = useButtonTransition(\n [\n { at: 45 + DEMO, state: \"hover\", duration: 8 },\n { at: 55 + DEMO, state: \"press\", duration: 8 },\n ],\n { variant: \"outline\", ...opts },\n );\n\n const itemStyle = useSelectItemTransition(\n [\n { at: 68 + DEMO, state: \"hover\", duration: 8 },\n { at: 78 + DEMO, state: \"press\", duration: 6 },\n { at: 80 + DEMO, state: \"selected\", duration: 10 },\n ],\n opts,\n );\n\n const sliderStyle = useSliderTransition([\n { at: 0, value: 20, thumbState: \"idle\" },\n { at: 105 + DEMO, thumbState: \"press\", duration: 6 },\n { at: 105 + DEMO, value: 20 },\n { at: 150 + DEMO, value: 80, duration: 45, easing: \"inOut\" },\n { at: 158 + DEMO, thumbState: \"idle\", duration: 8 },\n ]);\n\n const saveStyle = useButtonTransition(\n [\n { at: 172 + DEMO, state: \"hover\", duration: 8 },\n { at: 180 + DEMO, state: \"press\", duration: 6 },\n { at: 188 + DEMO, state: \"success\", duration: 14 },\n ],\n opts,\n );\n\n const toastStyle = useToastTransition(\n [\n { at: 196 + DEMO, state: \"visible\", duration: 12 },\n { at: 256 + DEMO, state: \"hidden\", duration: 12 },\n ],\n { mode },\n );\n\n const rowLabelStyle = {\n fontSize: 14,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: resolved.foreground,\n } as const;\n\n return (\n <div\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n background: resolved.muted,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n left: CARD_LEFT,\n top: CARD_TOP,\n width: CARD_W,\n height: CARD_H,\n boxSizing: \"border-box\",\n background: resolved.background,\n border: `1px solid ${resolved.border}`,\n borderRadius: 16,\n boxShadow:\n \"0 10px 30px -12px rgba(0,0,0,0.22), 0 2px 8px -3px rgba(0,0,0,0.10)\",\n opacity: cardEnter.opacity,\n filter: cardEnter.blur > 0 ? `blur(${cardEnter.blur}px)` : \"none\",\n }}\n />\n\n {}\n <div\n style={{\n position: \"absolute\",\n left: LEFT_X,\n top: NOTIF_LABEL_Y,\n width: COL_W,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 10,\n ...reveal(enterHeader),\n }}\n >\n <div\n style={{\n fontSize: 22,\n lineHeight: \"28px\",\n fontWeight: 600,\n letterSpacing: \"-0.02em\",\n color: resolved.foreground,\n }}\n >\n {title}\n </div>\n <div\n style={{\n fontSize: 14,\n lineHeight: \"22px\",\n color: resolved.mutedForeground,\n }}\n >\n {description}\n </div>\n </div>\n\n {}\n <div\n style={{\n position: \"absolute\",\n left: RIGHT_X,\n top: NOTIF_LABEL_Y,\n ...rowLabelStyle,\n ...reveal(enterSwitch),\n }}\n >\n {rows[0]?.label ?? \"Notifications\"}\n </div>\n <div\n style={{\n position: \"absolute\",\n left: RIGHT_X,\n top: SWITCH_TOP,\n width: SWITCH_W,\n height: SWITCH_H,\n ...reveal(enterSwitch),\n }}\n >\n <Switch style={switchStyle} mode={mode} theme={theme} />\n </div>\n\n {}\n <div\n style={{\n position: \"absolute\",\n left: RIGHT_X,\n top: VOL_LABEL_Y,\n ...rowLabelStyle,\n ...reveal(enterVolume),\n }}\n >\n {rows[2]?.label ?? \"Volume\"}\n </div>\n <div\n style={{\n position: \"absolute\",\n left: SLIDER_X0,\n top: SLIDER_TOP,\n ...reveal(enterVolume),\n }}\n >\n <Slider style={sliderStyle} width={SLIDER_W} mode={mode} theme={theme} />\n </div>\n\n {}\n <div\n style={{\n position: \"absolute\",\n left: RIGHT_X,\n top: THEME_LABEL_Y,\n ...rowLabelStyle,\n ...reveal(enterTheme),\n }}\n >\n {rows[1]?.label ?? \"Theme\"}\n </div>\n <div\n style={{\n position: \"absolute\",\n left: RIGHT_X,\n top: TRIGGER_TOP,\n width: SELECT_W,\n height: TRIGGER_H,\n ...reveal(enterTheme),\n }}\n >\n <Select\n style={panelStyle}\n label={selectItems[0] ?? \"System\"}\n items={selectItems}\n triggerStyle={triggerStyle}\n itemStyles={selectItems.map((_, i) =>\n i === selectItems.length - 1 ? itemStyle : undefined,\n )}\n mode={mode}\n theme={theme}\n />\n </div>\n\n {}\n <div\n style={{\n position: \"absolute\",\n left: SAVE_LEFT,\n top: SAVE_TOP,\n width: SAVE_W,\n height: SAVE_H,\n ...reveal(enterSave),\n }}\n >\n <Button label={saveLabel} style={saveStyle} mode={mode} theme={theme} />\n </div>\n\n {}\n <div style={{ position: \"absolute\", right: 24, bottom: 24 }}>\n <Toast\n style={toastStyle}\n title={toastTitle}\n variant=\"success\"\n mode={mode}\n theme={theme}\n />\n </div>\n\n <Cursor style={cursorStyle} variant=\"pointer\" mode={mode} theme={theme} />\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/settings-toggle-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/sheet.json b/public/r/sheet.json
new file mode 100644
index 00000000..a29faf9c
--- /dev/null
+++ b/public/r/sheet.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "sheet",
+ "title": "UI Sheet",
+ "description": "A side panel whose opened/closed state is a pure function of the timeline; the backdrop dim and right-edge slide-in are keyframed presets, with a close button and a primary action. Self-contained — pair it with the Button as a trigger (see the example).",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/sheet/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type SheetState = \"opened\" | \"closed\";\n\nexport interface SheetProps {\n state?: SheetState;\n style?: SheetStyle;\n title?: string;\n description?: string;\n actionLabel?: string;\n cancelLabel?: string;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst SHEET_WIDTH = 400;\nconst MAX_OVERLAY_ALPHA = 0.5;\n\nexport interface SheetStyle {\n overlayOpacity: number;\n panelOpacity: number;\n panelTranslateX: number;\n}\n\nexport interface SheetStyleContext {\n popoverBg: string;\n popoverFg: string;\n mutedFg: string;\n border: string;\n radius: number;\n actionBg: string;\n actionFg: string;\n cancelFg: string;\n}\n\nexport function sheetStyleContext(theme: RemocnTheme): SheetStyleContext {\n return {\n popoverBg: theme.popover,\n popoverFg: theme.popoverForeground,\n mutedFg: theme.mutedForeground,\n border: theme.border,\n radius: theme.radius,\n actionBg: theme.primary,\n actionFg: theme.primaryForeground,\n cancelFg: theme.foreground,\n };\n}\n\nexport function sheetStyle(\n state: SheetState,\n _ctx: SheetStyleContext,\n): SheetStyle {\n switch (state) {\n case \"opened\":\n return {\n overlayOpacity: 1,\n panelOpacity: 1,\n panelTranslateX: 0,\n };\n default:\n return {\n overlayOpacity: 0,\n panelOpacity: 0,\n panelTranslateX: SHEET_WIDTH,\n };\n }\n}\n\nexport function Sheet({\n state = \"closed\",\n style,\n title = \"Edit profile\",\n description = \"Make changes to your profile here. Click save when you're done.\",\n actionLabel = \"Save changes\",\n cancelLabel = \"Cancel\",\n theme: themeOverride,\n mode,\n className,\n}: SheetProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n\n const ctx = sheetStyleContext(theme);\n const v = style ?? sheetStyle(state, ctx);\n\n const buttonBase: React.CSSProperties = {\n height: 40,\n padding: \"0 20px\",\n fontSize: 15,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n borderRadius: ctx.radius,\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n cursor: \"pointer\",\n };\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: `rgba(0, 0, 0, ${MAX_OVERLAY_ALPHA * v.overlayOpacity})`,\n }}\n />\n <div\n className={className}\n style={{\n position: \"absolute\",\n top: 0,\n right: 0,\n height: \"100%\",\n width: SHEET_WIDTH,\n transform: `translateX(${v.panelTranslateX}px)`,\n opacity: v.panelOpacity,\n background: ctx.popoverBg,\n color: ctx.popoverFg,\n borderLeft: `1px solid ${ctx.border}`,\n padding: 24,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 8,\n boxShadow: \"-24px 0 48px -12px rgba(0,0,0,0.25)\",\n }}\n >\n {}\n <button\n type=\"button\"\n style={{\n position: \"absolute\",\n top: 16,\n right: 16,\n width: 28,\n height: 28,\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"transparent\",\n border: \"none\",\n borderRadius: ctx.radius,\n color: ctx.mutedFg,\n cursor: \"pointer\",\n }}\n >\n <svg width={16} height={16} viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M18 6 6 18 M6 6 18 18\"\n stroke={ctx.mutedFg}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </button>\n <div\n style={{\n fontSize: 18,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n paddingRight: 28,\n }}\n >\n {title}\n </div>\n <div style={{ fontSize: 14, lineHeight: 1.5, color: ctx.mutedFg }}>\n {description}\n </div>\n <div\n style={{\n display: \"flex\",\n justifyContent: \"flex-end\",\n gap: 8,\n marginTop: \"auto\",\n }}\n >\n {}\n <button\n type=\"button\"\n style={{\n ...buttonBase,\n background: \"transparent\",\n color: ctx.cancelFg,\n border: `1px solid ${ctx.border}`,\n }}\n >\n {cancelLabel}\n </button>\n {}\n <button\n type=\"button\"\n style={{\n ...buttonBase,\n background: ctx.actionBg,\n color: ctx.actionFg,\n border: \"1px solid transparent\",\n }}\n >\n {actionLabel}\n </button>\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/sheet.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/sheet/use-sheet-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n sheetStyle,\n sheetStyleContext,\n type SheetState,\n type SheetStyle,\n} from \"@/components/remocn/sheet\";\n\nexport const DEFAULT_DURATION = 12;\n\nexport function tweenSheetStyle(\n a: SheetStyle,\n b: SheetStyle,\n t: number,\n): SheetStyle {\n return {\n overlayOpacity: a.overlayOpacity + (b.overlayOpacity - a.overlayOpacity) * t,\n panelOpacity: a.panelOpacity + (b.panelOpacity - a.panelOpacity) * t,\n panelTranslateX:\n a.panelTranslateX + (b.panelTranslateX - a.panelTranslateX) * t,\n };\n}\n\nexport interface SheetTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useSheetTransition(\n steps: Step<SheetState>[],\n opts: SheetTransitionOptions = {},\n): SheetStyle {\n const {\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = sheetStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"closed\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenSheetStyle(sheetStyle(from, ctx), sheetStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-sheet-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/signup-flow.json b/public/r/signup-flow.json
new file mode 100644
index 00000000..14a686ff
--- /dev/null
+++ b/public/r/signup-flow.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "signup-flow",
+ "title": "UI Signup Flow",
+ "description": "A signup card composition: a real shadcn-style card (header, labeled Full Name / Email / Password / Confirm fields, primary + Google-outline buttons, sign-in footer) whose cursor fills each field top-to-bottom, then clicks Create account (hover → press → loading → success) as a success toast slides in. A pure orchestrator — every channel comes from a composed primitive's transition hook.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "cursor",
+ "input",
+ "button",
+ "toast",
+ "field",
+ "blur-in"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/signup-flow/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport { Cursor } from \"@/components/remocn/cursor\";\nimport { useCursorPath } from \"@/components/remocn/use-cursor-path\";\nimport { Input } from \"@/components/remocn/input\";\nimport { useInputTransition } from \"@/components/remocn/use-input-transition\";\nimport { Button } from \"@/components/remocn/button\";\nimport { useButtonTransition } from \"@/components/remocn/use-button-transition\";\nimport { Toast } from \"@/components/remocn/toast\";\nimport { useToastTransition } from \"@/components/remocn/use-toast-transition\";\nimport { BlurIn } from \"@/components/remocn/blur-in\";\nimport { useBlurInTransition } from \"@/components/remocn/use-blur-in-transition\";\nimport {\n Field,\n FieldControl,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/components/remocn/field\";\n\nexport interface SignupFlowProps {\n title?: string;\n description?: string;\n fullName?: string;\n email?: string;\n password?: string;\n createLabel?: string;\n googleLabel?: string;\n signinText?: string;\n toastTitle?: string;\n mode?: \"light\" | \"dark\";\n theme?: Partial<RemocnTheme>;\n}\n\nconst STAGE_W = 1280;\nconst CARD_W = 376;\nconst CARD_TOP = 48;\nconst CARD_LEFT = (STAGE_W - CARD_W) / 2;\nconst CENTER_X = STAGE_W / 2;\n\nconst NAME_Y = 216;\nconst EMAIL_Y = 296;\nconst PASS_Y = 398;\nconst CONFIRM_Y = 500;\nconst CREATE_Y = 564;\n\nexport function SignupFlow({\n title = \"Create an account\",\n description = \"Enter your information below to create your account\",\n fullName = \"John Doe\",\n email = \"[email protected]\",\n password = \"••••••••\",\n createLabel = \"Create account\",\n toastTitle = \"Account created\",\n mode = \"light\",\n theme,\n}: SignupFlowProps) {\n const resolved = useRemocnTheme(theme, mode);\n const opts = { mode, theme };\n\n const cardEnter = useBlurInTransition(\n [{ at: 0, state: \"revealed\", duration: 18 }],\n { distance: 0 },\n );\n const enterHeader = useBlurInTransition([\n { at: 18, state: \"revealed\", duration: 16 },\n ]);\n const enterName = useBlurInTransition([\n { at: 24, state: \"revealed\", duration: 16 },\n ]);\n const enterEmail = useBlurInTransition([\n { at: 30, state: \"revealed\", duration: 16 },\n ]);\n const enterPass = useBlurInTransition([\n { at: 36, state: \"revealed\", duration: 16 },\n ]);\n const enterConfirm = useBlurInTransition([\n { at: 42, state: \"revealed\", duration: 16 },\n ]);\n const enterButton = useBlurInTransition([\n { at: 48, state: \"revealed\", duration: 16 },\n ]);\n\n const DEMO = 48;\n\n const cursorStyle = useCursorPath([\n { at: 0, x: 160, y: 120 },\n { at: 18 + DEMO, x: CENTER_X, y: NAME_Y, duration: 18, click: true },\n { at: 52 + DEMO, x: CENTER_X, y: EMAIL_Y, duration: 30, click: true },\n { at: 96 + DEMO, x: CENTER_X, y: PASS_Y, duration: 40, click: true },\n { at: 134 + DEMO, x: CENTER_X, y: CONFIRM_Y, duration: 32, click: true },\n { at: 176 + DEMO, x: CENTER_X, y: CREATE_Y, duration: 38, click: true },\n ]);\n\n const nameStyle = useInputTransition(\n [\n { at: 18 + DEMO, state: \"active\", duration: 6 },\n { at: 20 + DEMO, state: \"typing\", duration: 20 },\n { at: 52 + DEMO, state: \"blur\", duration: 8 },\n ],\n opts,\n );\n const emailStyle = useInputTransition(\n [\n { at: 52 + DEMO, state: \"active\", duration: 6 },\n { at: 54 + DEMO, state: \"typing\", duration: 28 },\n { at: 96 + DEMO, state: \"blur\", duration: 8 },\n ],\n opts,\n );\n const passStyle = useInputTransition(\n [\n { at: 96 + DEMO, state: \"active\", duration: 6 },\n { at: 98 + DEMO, state: \"typing\", duration: 22 },\n { at: 134 + DEMO, state: \"blur\", duration: 8 },\n ],\n opts,\n );\n const confirmStyle = useInputTransition(\n [\n { at: 134 + DEMO, state: \"active\", duration: 6 },\n { at: 136 + DEMO, state: \"typing\", duration: 22 },\n { at: 176 + DEMO, state: \"blur\", duration: 8 },\n ],\n opts,\n );\n\n const buttonStyle = useButtonTransition(\n [\n { at: 176 + DEMO, state: \"hover\", duration: 8 },\n { at: 186 + DEMO, state: \"press\", duration: 6 },\n { at: 192 + DEMO, state: \"loading\", duration: 6 },\n { at: 234 + DEMO, state: \"success\", duration: 16 },\n ],\n opts,\n );\n\n const toastStyle = useToastTransition(\n [\n { at: 234 + DEMO, state: \"visible\", duration: 14 },\n { at: 300 + DEMO, state: \"hidden\", duration: 14 },\n ],\n { mode },\n );\n\n return (\n <div\n style={{\n position: \"relative\",\n width: \"100%\",\n height: \"100%\",\n background: resolved.muted,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: CARD_LEFT,\n top: CARD_TOP,\n width: CARD_W,\n height: 580,\n boxSizing: \"border-box\",\n padding: 28,\n display: \"flex\",\n flexDirection: \"column\",\n gap: 24,\n background: resolved.background,\n border: `1px solid ${resolved.border}`,\n borderRadius: 14,\n boxShadow:\n \"0 10px 30px -12px rgba(0,0,0,0.22), 0 2px 8px -3px rgba(0,0,0,0.10)\",\n opacity: cardEnter.opacity,\n filter: cardEnter.blur > 0 ? `blur(${cardEnter.blur}px)` : \"none\",\n }}\n >\n <BlurIn display=\"block\" style={enterHeader}>\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: 4 }}>\n <div\n style={{\n fontSize: 22,\n lineHeight: \"28px\",\n fontWeight: 600,\n letterSpacing: \"-0.02em\",\n color: resolved.cardForeground,\n }}\n >\n {title}\n </div>\n <div\n style={{\n fontSize: 14,\n lineHeight: \"20px\",\n color: resolved.mutedForeground,\n }}\n >\n {description}\n </div>\n </div>\n </BlurIn>\n\n <FieldGroup gap={16}>\n <BlurIn display=\"block\" style={enterName}>\n <Field>\n <FieldLabel mode={mode} theme={theme}>\n Full Name\n </FieldLabel>\n <FieldControl>\n <Input\n placeholder={fullName}\n value={fullName}\n style={nameStyle}\n mode={mode}\n theme={theme}\n />\n </FieldControl>\n </Field>\n </BlurIn>\n\n <BlurIn display=\"block\" style={enterEmail}>\n <Field>\n <FieldLabel mode={mode} theme={theme}>\n Email\n </FieldLabel>\n <FieldControl>\n <Input\n placeholder={email}\n value={email}\n style={emailStyle}\n mode={mode}\n theme={theme}\n />\n </FieldControl>\n <FieldDescription mode={mode} theme={theme}>\n We'll use this to contact you.\n </FieldDescription>\n </Field>\n </BlurIn>\n\n <BlurIn display=\"block\" style={enterPass}>\n <Field>\n <FieldLabel mode={mode} theme={theme}>\n Password\n </FieldLabel>\n <FieldControl>\n <Input\n placeholder={password}\n value={password}\n style={passStyle}\n mode={mode}\n theme={theme}\n />\n </FieldControl>\n <FieldDescription mode={mode} theme={theme}>\n Must be at least 8 characters long.\n </FieldDescription>\n </Field>\n </BlurIn>\n\n <BlurIn display=\"block\" style={enterConfirm}>\n <Field>\n <FieldLabel mode={mode} theme={theme}>\n Confirm Password\n </FieldLabel>\n <FieldControl>\n <Input\n placeholder={password}\n value={password}\n style={confirmStyle}\n mode={mode}\n theme={theme}\n />\n </FieldControl>\n </Field>\n </BlurIn>\n </FieldGroup>\n\n <BlurIn display=\"block\" style={enterButton}>\n <Field gap={10}>\n <FieldControl>\n <Button\n label={createLabel}\n style={buttonStyle}\n mode={mode}\n theme={theme}\n />\n </FieldControl>\n </Field>\n </BlurIn>\n </div>\n\n <div style={{ position: \"absolute\", right: 32, bottom: 32 }}>\n <Toast\n title={toastTitle}\n variant=\"success\"\n style={toastStyle}\n mode={mode}\n theme={theme}\n />\n </div>\n\n <Cursor style={cursorStyle} variant=\"pointer\" mode={mode} theme={theme} />\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/signup-flow.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/skeleton-block.json b/public/r/skeleton-block.json
new file mode 100644
index 00000000..7885fb07
--- /dev/null
+++ b/public/r/skeleton-block.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "skeleton-block",
+ "title": "UI Skeleton Block",
+ "description": "A shimmer placeholder block — a motion atom (spinner pattern). A directional highlight gradient sweeps across deterministically from useCurrentFrame() and loops seamlessly. Configurable width/height/radius/speed and base/highlight colors.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [],
+ "files": [
+ {
+ "path": "registry/remocn-ui/skeleton-block/index.tsx",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\nimport { mixOklch, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport interface SkeletonBlockProps {\n width?: number | string;\n height?: number;\n radius?: number;\n speed?: number;\n baseColor?: string;\n highlightColor?: string;\n flexShrink?: number;\n className?: string;\n}\n\nconst SWEEP_FRAMES = 60;\n\nexport function SkeletonBlock({\n width = 120,\n height = 16,\n radius = 6,\n speed = 1,\n baseColor,\n highlightColor,\n flexShrink,\n className,\n}: SkeletonBlockProps) {\n const theme = useRemocnTheme();\n const base = baseColor ?? theme.muted;\n const highlight = highlightColor ?? mixOklch(base, theme.foreground, 0.13);\n\n const frame = useCurrentFrame() * speed;\n const progress = (frame % SWEEP_FRAMES) / SWEEP_FRAMES;\n const positionX = 100 - progress * 200;\n\n return (\n <div\n className={className}\n style={{\n width,\n height,\n flexShrink,\n borderRadius: radius,\n background: `linear-gradient(90deg, ${base} 20%, ${highlight} 50%, ${base} 80%)`,\n backgroundSize: \"200% 100%\",\n backgroundPosition: `${positionX}% 0`,\n }}\n />\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/skeleton-block.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/skeleton.json b/public/r/skeleton.json
new file mode 100644
index 00000000..3839bdae
--- /dev/null
+++ b/public/r/skeleton.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "skeleton",
+ "title": "UI Skeleton",
+ "description": "A skeleton→content crossfade whose loading/loaded state is a pure function of the timeline. The Skeleton renderer is pure (reads no frame); only the composed SkeletonBlock shimmer reads it. SkeletonStyle opacities sum to 1 so the box never dims; real children sit in normal flow and the placeholder (a lines/card layout or a custom node) is an absolute overlay.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui",
+ "skeleton-block"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/skeleton/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\nimport { SkeletonBlock } from \"@/components/remocn/skeleton-block\";\n\nexport type SkeletonState = \"loading\" | \"loaded\";\n\nexport type SkeletonLayout = \"lines\" | \"card\";\n\nexport interface SkeletonProps {\n state?: SkeletonState;\n style?: SkeletonStyle;\n children?: ReactNode;\n placeholder?: ReactNode;\n layout?: SkeletonLayout;\n speed?: number;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nexport interface SkeletonStyle {\n skeletonOpacity: number;\n contentOpacity: number;\n}\n\nexport function skeletonStyle(state: SkeletonState): SkeletonStyle {\n switch (state) {\n case \"loaded\":\n return { skeletonOpacity: 0, contentOpacity: 1 };\n default:\n return { skeletonOpacity: 1, contentOpacity: 0 };\n }\n}\n\nfunction LayoutPlaceholder({\n layout,\n speed,\n baseColor,\n}: {\n layout: SkeletonLayout;\n speed?: number;\n baseColor: string;\n}) {\n const shimmer = { speed, baseColor };\n if (layout === \"card\") {\n return (\n <div style={{ display: \"flex\", gap: 14, alignItems: \"center\" }}>\n {}\n <SkeletonBlock\n width={48}\n height={48}\n radius={24}\n flexShrink={0}\n {...shimmer}\n />\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: 10 }}>\n <SkeletonBlock width={180} height={14} {...shimmer} />\n <SkeletonBlock width={120} height={14} {...shimmer} />\n </div>\n </div>\n );\n }\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: 10 }}>\n <SkeletonBlock width={260} height={14} {...shimmer} />\n <SkeletonBlock width={240} height={14} {...shimmer} />\n <SkeletonBlock width={160} height={14} {...shimmer} />\n </div>\n );\n}\n\nexport function Skeleton({\n state = \"loading\",\n style,\n children,\n placeholder,\n layout = \"lines\",\n speed,\n theme: themeOverride,\n mode,\n className,\n}: SkeletonProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const v = style ?? skeletonStyle(state);\n\n const placeholderLayer = placeholder ?? (\n <LayoutPlaceholder layout={layout} speed={speed} baseColor={theme.muted} />\n );\n\n return (\n <div\n className={className}\n style={{\n position: \"relative\",\n display: \"inline-block\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div style={{ opacity: v.contentOpacity }}>{children}</div>\n {}\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n opacity: v.skeletonOpacity,\n pointerEvents: \"none\",\n }}\n >\n {placeholderLayer}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/skeleton.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/skeleton/use-skeleton-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type Step,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n skeletonStyle,\n type SkeletonState,\n type SkeletonStyle,\n} from \"@/components/remocn/skeleton\";\n\nexport const DEFAULT_DURATION = 12;\n\nexport function tweenSkeletonStyle(\n a: SkeletonStyle,\n b: SkeletonStyle,\n t: number,\n): SkeletonStyle {\n return {\n skeletonOpacity:\n a.skeletonOpacity + (b.skeletonOpacity - a.skeletonOpacity) * t,\n contentOpacity:\n a.contentOpacity + (b.contentOpacity - a.contentOpacity) * t,\n };\n}\n\nexport interface SkeletonTransitionOptions {\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useSkeletonTransition(\n steps: Step<SkeletonState>[],\n opts: SkeletonTransitionOptions = {},\n): SkeletonStyle {\n const { speed = 1, defaultDuration = DEFAULT_DURATION } = opts;\n const { from, to, progress } = useStateTransition(\n steps,\n \"loading\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenSkeletonStyle(skeletonStyle(from), skeletonStyle(to), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-skeleton-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/slider.json b/public/r/slider.json
new file mode 100644
index 00000000..918e3347
--- /dev/null
+++ b/public/r/slider.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "slider",
+ "title": "UI Slider",
+ "description": "A slider whose fill is a numeric value channel plus a thumb idle/hover/press channel (dual-channel value-channel deviation). The Slider renderer is pure (clamped 0–100 value, thumb scale, grab-ring opacity); useSliderTransition reads the frame and eases both channels — value as a numeric lerp, the thumb visual from its state presets. Muted track + primary range + bordered thumb with a derived grab ring.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/slider/index.tsx",
+ "content": "\"use client\";\n\nimport { clamp01, mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type SliderThumbState = \"idle\" | \"hover\" | \"press\";\n\nexport interface SliderStyle {\n value: number;\n thumbScale: number;\n ringOpacity: number;\n}\n\nexport interface SliderProps {\n value?: number;\n thumbState?: SliderThumbState;\n style?: SliderStyle;\n width?: number;\n showValue?: boolean;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst TRACK_HEIGHT = 8;\nconst THUMB_HEIGHT = 16;\nconst THUMB_WIDTH = 24;\nconst THUMB_RADIUS = THUMB_HEIGHT / 2;\nconst RING_WIDTH = 4;\n\nfunction clampValue(value: number): number {\n return clamp01(value / 100) * 100;\n}\n\nexport function sliderThumbStyle(thumbState: SliderThumbState): {\n thumbScale: number;\n ringOpacity: number;\n} {\n switch (thumbState) {\n case \"hover\":\n return { thumbScale: 1.1, ringOpacity: 1 };\n case \"press\":\n return { thumbScale: 1.15, ringOpacity: 1 };\n default:\n return { thumbScale: 1, ringOpacity: 0 };\n }\n}\n\nexport interface SliderStyleContext {\n track: string;\n range: string;\n thumbBg: string;\n thumbRing: string;\n ring: string;\n valueText: string;\n}\n\nexport function sliderStyleContext(theme: RemocnTheme): SliderStyleContext {\n return {\n track: mixOklch(theme.input, theme.background, 0.1),\n range: theme.primary,\n thumbBg: \"oklch(1 0 0)\",\n thumbRing: \"rgba(0, 0, 0, 0.1)\",\n ring: mixOklch(theme.ring, theme.background, 0.7),\n valueText: theme.foreground,\n };\n}\n\nexport function Slider({\n value = 0,\n thumbState = \"idle\",\n style,\n width = 320,\n showValue = false,\n theme: themeOverride,\n mode,\n className,\n}: SliderProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = sliderStyleContext(theme);\n\n const thumb = sliderThumbStyle(thumbState);\n const v: SliderStyle = style ?? {\n value,\n thumbScale: thumb.thumbScale,\n ringOpacity: thumb.ringOpacity,\n };\n const pct = clampValue(v.value);\n\n return (\n <div\n className={className}\n style={{\n position: \"relative\",\n display: \"inline-flex\",\n alignItems: \"center\",\n width,\n height: THUMB_HEIGHT,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {}\n <div\n style={{\n position: \"relative\",\n width: \"100%\",\n height: TRACK_HEIGHT,\n borderRadius: TRACK_HEIGHT / 2,\n background: ctx.track,\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n bottom: 0,\n width: `${pct}%`,\n borderRadius: TRACK_HEIGHT / 2,\n background: ctx.range,\n }}\n />\n </div>\n {}\n <div\n style={{\n position: \"absolute\",\n left: `${pct}%`,\n top: \"50%\",\n transform: `translate(-50%, -50%) scale(${v.thumbScale})`,\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n left: \"50%\",\n top: \"50%\",\n width: THUMB_WIDTH + RING_WIDTH * 2,\n height: THUMB_HEIGHT + RING_WIDTH * 2,\n transform: \"translate(-50%, -50%)\",\n borderRadius: THUMB_RADIUS + RING_WIDTH,\n background: ctx.ring,\n opacity: v.ringOpacity,\n }}\n />\n {}\n <div\n style={{\n position: \"relative\",\n width: THUMB_WIDTH,\n height: THUMB_HEIGHT,\n borderRadius: THUMB_RADIUS,\n background: ctx.thumbBg,\n boxShadow: `0 0 0 1px ${ctx.thumbRing}, 0 2px 4px rgba(0,0,0,0.18)`,\n }}\n />\n {showValue && (\n <span\n style={{\n position: \"absolute\",\n left: \"50%\",\n bottom: \"100%\",\n marginBottom: 8,\n transform: \"translateX(-50%)\",\n fontSize: 12,\n fontWeight: 500,\n fontVariantNumeric: \"tabular-nums\",\n color: ctx.valueText,\n }}\n >\n {Math.round(pct)}\n </span>\n )}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/slider.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/slider/use-slider-transition.ts",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\nimport { clamp01, type EasingName, easings } from \"@/lib/remocn-ui\";\nimport {\n sliderThumbStyle,\n type SliderStyle,\n type SliderThumbState,\n} from \"@/components/remocn/slider\";\n\nexport interface SliderStep {\n at: number;\n value?: number;\n thumbState?: SliderThumbState;\n duration?: number;\n easing?: EasingName;\n}\n\nexport const DEFAULT_DURATION = 18;\n\nexport interface SliderTransitionOptions {\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function tweenSliderStyle(\n a: SliderStyle,\n b: SliderStyle,\n t: number,\n): SliderStyle {\n return {\n value: a.value + (b.value - a.value) * t,\n thumbScale: a.thumbScale + (b.thumbScale - a.thumbScale) * t,\n ringOpacity: a.ringOpacity + (b.ringOpacity - a.ringOpacity) * t,\n };\n}\n\nexport function useSliderTransition(\n steps: SliderStep[],\n opts: SliderTransitionOptions = {},\n): SliderStyle {\n const { speed = 1 } = opts;\n const raw = useCurrentFrame() * speed;\n return sliderStyleAt(steps, raw, opts);\n}\n\nfunction valueAt(\n steps: SliderStep[],\n raw: number,\n defaultDuration: number,\n): number {\n const valueSteps = steps.filter(\n (s): s is SliderStep & { value: number } => s.value !== undefined,\n );\n if (valueSteps.length === 0) return 0;\n const first = valueSteps[0];\n if (raw <= first.at) return first.value;\n\n let toIndex = valueSteps.length - 1;\n for (let i = 1; i < valueSteps.length; i++) {\n if (valueSteps[i].at > raw) {\n toIndex = i;\n break;\n }\n }\n const pastLast = raw >= valueSteps[valueSteps.length - 1].at;\n const to = pastLast ? valueSteps[valueSteps.length - 1] : valueSteps[toIndex];\n const from = pastLast\n ? valueSteps[valueSteps.length - 1]\n : valueSteps[toIndex - 1];\n\n const dur = to.duration ?? defaultDuration;\n const ease = easings[to.easing ?? \"out\"];\n const start = to.at - dur;\n const t = pastLast || dur <= 0 ? 1 : ease(clamp01((raw - start) / dur));\n return from.value + (to.value - from.value) * t;\n}\n\nfunction thumbAt(\n steps: SliderStep[],\n raw: number,\n defaultDuration: number,\n): { thumbScale: number; ringOpacity: number } {\n const thumbSteps = steps.filter(\n (s): s is SliderStep & { thumbState: SliderThumbState } =>\n s.thumbState !== undefined,\n );\n if (thumbSteps.length === 0) return sliderThumbStyle(\"idle\");\n const first = thumbSteps[0];\n if (raw <= first.at) return sliderThumbStyle(first.thumbState);\n\n let toIndex = thumbSteps.length - 1;\n for (let i = 1; i < thumbSteps.length; i++) {\n if (thumbSteps[i].at > raw) {\n toIndex = i;\n break;\n }\n }\n const pastLast = raw >= thumbSteps[thumbSteps.length - 1].at;\n const to = pastLast ? thumbSteps[thumbSteps.length - 1] : thumbSteps[toIndex];\n const from = pastLast\n ? thumbSteps[thumbSteps.length - 1]\n : thumbSteps[toIndex - 1];\n\n const dur = to.duration ?? defaultDuration;\n const ease = easings[to.easing ?? \"out\"];\n const start = to.at - dur;\n const t = pastLast || dur <= 0 ? 1 : ease(clamp01((raw - start) / dur));\n\n const a = sliderThumbStyle(from.thumbState);\n const b = sliderThumbStyle(to.thumbState);\n return {\n thumbScale: a.thumbScale + (b.thumbScale - a.thumbScale) * t,\n ringOpacity: a.ringOpacity + (b.ringOpacity - a.ringOpacity) * t,\n };\n}\n\nexport function sliderStyleAt(\n steps: SliderStep[],\n raw: number,\n opts: SliderTransitionOptions = {},\n): SliderStyle {\n const { defaultDuration = DEFAULT_DURATION } = opts;\n const value = valueAt(steps, raw, defaultDuration);\n const thumb = thumbAt(steps, raw, defaultDuration);\n return {\n value,\n thumbScale: thumb.thumbScale,\n ringOpacity: thumb.ringOpacity,\n };\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-slider-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/spinner.json b/public/r/spinner.json
new file mode 100644
index 00000000..6bdf4a5d
--- /dev/null
+++ b/public/r/spinner.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "spinner",
+ "title": "UI Spinner",
+ "description": "A deterministic spinning arc that loops on the Remotion frame — a pure motion atom with no state.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [],
+ "files": [
+ {
+ "path": "registry/remocn-ui/spinner/index.tsx",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\n\nexport interface SpinnerProps {\n size?: number;\n color?: string;\n speed?: number;\n strokeWidth?: number;\n className?: string;\n}\n\nexport function Spinner({\n size = 20,\n color = \"currentColor\",\n speed = 1,\n strokeWidth = 2.5,\n className,\n}: SpinnerProps) {\n const rotation = useCurrentFrame() * speed * 6;\n\n return (\n <svg\n className={className}\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{ transform: `rotate(${rotation}deg)` }}\n >\n <circle\n cx=\"12\"\n cy=\"12\"\n r=\"9\"\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"round\"\n strokeDasharray=\"44\"\n strokeDashoffset=\"33\"\n />\n </svg>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/spinner.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/stepper.json b/public/r/stepper.json
new file mode 100644
index 00000000..1125b266
--- /dev/null
+++ b/public/r/stepper.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "stepper",
+ "title": "UI Stepper",
+ "description": "A horizontal onboarding stepper whose progress is a pure function of a continuous step index (value-channel deviation). Every circle (fill, number, stroke-dash check) and connector (primary fill fraction) derives purely from the float position; useStepperTransition reads the frame and eases position between step indices.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/stepper/index.tsx",
+ "content": "\"use client\";\n\nimport { clamp01, mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport interface StepperStyle {\n position: number;\n}\n\nexport type StepperOrientation = \"horizontal\" | \"vertical\";\n\nexport interface StepperProps {\n steps?: string[];\n activeIndex?: number;\n style?: StepperStyle;\n orientation?: StepperOrientation;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst DEFAULT_STEPS = [\"Account\", \"Plan\", \"Done\"];\n\nconst CIRCLE = 36;\nconst CHECK_PATH_LENGTH = 14;\n\nexport interface StepperStyleContext {\n primary: string;\n primaryFg: string;\n mutedBg: string;\n border: string;\n mutedFg: string;\n foreground: string;\n}\n\nexport function stepperStyleContext(theme: RemocnTheme): StepperStyleContext {\n return {\n primary: theme.primary,\n primaryFg: theme.primaryForeground,\n mutedBg: theme.muted,\n border: theme.border,\n mutedFg: theme.mutedForeground,\n foreground: theme.foreground,\n };\n}\n\nexport function stepperStyle(activeIndex: number): StepperStyle {\n return { position: activeIndex };\n}\n\nexport function stepCircleAt(i: number, position: number): {\n fill: number;\n checkDraw: number;\n active: boolean;\n} {\n const fill = clamp01(position - i);\n const checkDraw = fill;\n const active = Math.floor(position) === i && fill < 1;\n return { fill, checkDraw, active };\n}\n\nexport function connectorFillAt(i: number, position: number): number {\n return clamp01(position - i);\n}\n\nexport function Stepper({\n steps = DEFAULT_STEPS,\n activeIndex = 0,\n style,\n orientation: _orientation = \"horizontal\",\n theme: themeOverride,\n mode,\n className,\n}: StepperProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = stepperStyleContext(theme);\n const v = style ?? stepperStyle(activeIndex);\n const position = v.position;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div style={{ display: \"flex\", alignItems: \"flex-start\" }}>\n {steps.map((label, i) => {\n const { fill, checkDraw, active } = stepCircleAt(i, position);\n const completed = fill >= 1;\n const circleBg = mixOklch(ctx.mutedBg, ctx.primary, fill);\n const circleBorder = mixOklch(ctx.border, ctx.primary, fill);\n const numberOpacity = 1 - checkDraw;\n const numberColor = active || completed ? ctx.foreground : ctx.mutedFg;\n const isLast = i === steps.length - 1;\n return (\n <div\n key={label}\n style={{ display: \"flex\", alignItems: \"flex-start\" }}\n >\n {}\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n gap: 8,\n width: CIRCLE + 24,\n }}\n >\n <div\n style={{\n position: \"relative\",\n width: CIRCLE,\n height: CIRCLE,\n borderRadius: \"50%\",\n background: circleBg,\n border: `2px solid ${active ? ctx.primary : circleBorder}`,\n boxSizing: \"border-box\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {}\n <span\n style={{\n position: \"absolute\",\n fontSize: 14,\n fontWeight: 600,\n color: numberColor,\n opacity: numberOpacity,\n }}\n >\n {i + 1}\n </span>\n {}\n <svg width={CIRCLE} height={CIRCLE} viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d=\"M5 12.5l4.5 4.5L19 7\"\n stroke={ctx.primaryFg}\n strokeWidth=\"2.6\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n pathLength={CHECK_PATH_LENGTH}\n strokeDasharray={CHECK_PATH_LENGTH}\n strokeDashoffset={CHECK_PATH_LENGTH * (1 - checkDraw)}\n />\n </svg>\n </div>\n <span\n style={{\n fontSize: 13,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: active || completed ? ctx.foreground : ctx.mutedFg,\n whiteSpace: \"nowrap\",\n }}\n >\n {label}\n </span>\n </div>\n {}\n {!isLast && (\n <div\n style={{\n position: \"relative\",\n width: 64,\n height: 2,\n marginTop: CIRCLE / 2 - 1,\n background: ctx.border,\n overflow: \"hidden\",\n }}\n >\n <div\n style={{\n position: \"absolute\",\n left: 0,\n top: 0,\n bottom: 0,\n width: `${connectorFillAt(i, position) * 100}%`,\n background: ctx.primary,\n }}\n />\n </div>\n )}\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/stepper.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/stepper/use-stepper-transition.ts",
+ "content": "\"use client\";\n\nimport { useCurrentFrame } from \"remotion\";\nimport { clamp01, type EasingName, easings } from \"@/lib/remocn-ui\";\nimport type { StepperStyle } from \"@/components/remocn/stepper\";\n\nexport interface StepperStep {\n at: number;\n index: number;\n duration?: number;\n easing?: EasingName;\n}\n\nexport const DEFAULT_DURATION = 24;\n\nexport interface StepperTransitionOptions {\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function tweenStepperStyle(\n a: StepperStyle,\n b: StepperStyle,\n t: number,\n): StepperStyle {\n return { position: a.position + (b.position - a.position) * t };\n}\n\nexport function useStepperTransition(\n steps: StepperStep[],\n opts: StepperTransitionOptions = {},\n): StepperStyle {\n const { speed = 1 } = opts;\n const raw = useCurrentFrame() * speed;\n return stepperStyleAt(steps, raw, opts);\n}\n\nexport function stepperStyleAt(\n steps: StepperStep[],\n raw: number,\n opts: StepperTransitionOptions = {},\n): StepperStyle {\n const { defaultDuration = DEFAULT_DURATION } = opts;\n\n if (steps.length === 0) return { position: 0 };\n\n const first = steps[0];\n\n if (raw <= first.at) return { position: first.index };\n\n let toIndex = steps.length - 1;\n for (let i = 1; i < steps.length; i++) {\n if (steps[i].at > raw) {\n toIndex = i;\n break;\n }\n }\n const pastLast = raw >= steps[steps.length - 1].at;\n const to = pastLast ? steps[steps.length - 1] : steps[toIndex];\n const from = pastLast ? steps[steps.length - 1] : steps[toIndex - 1];\n\n const dur = to.duration ?? defaultDuration;\n const ease = easings[to.easing ?? \"out\"];\n const start = to.at - dur;\n const t = pastLast || dur <= 0 ? 1 : ease(clamp01((raw - start) / dur));\n const position = from.index + (to.index - from.index) * t;\n\n return { position };\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-stepper-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/switch.json b/public/r/switch.json
new file mode 100644
index 00000000..ec39fd3e
--- /dev/null
+++ b/public/r/switch.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "switch",
+ "title": "UI Switch",
+ "description": "A switch whose checked/unchecked state is a pure function of the timeline; the track fill and sliding thumb are keyframed presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/switch/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type SwitchState = \"unchecked\" | \"checked\";\n\ntype SwitchSize = \"sm\" | \"default\" | \"lg\";\n\nexport interface SwitchProps {\n state?: SwitchState;\n style?: SwitchStyle;\n label?: string;\n size?: SwitchSize;\n theme?: Partial<RemocnTheme>;\n primary?: string;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst SIZE_STYLES: Record<\n SwitchSize,\n { trackW: number; trackH: number; thumb: number; pad: number; fontSize: number; gap: number }\n> = {\n sm: { trackW: 36, trackH: 20, thumb: 16, pad: 2, fontSize: 13, gap: 8 },\n default: { trackW: 44, trackH: 24, thumb: 20, pad: 2, fontSize: 15, gap: 10 },\n lg: { trackW: 52, trackH: 28, thumb: 24, pad: 2, fontSize: 17, gap: 12 },\n};\n\nexport interface SwitchStyle {\n trackBackground: string;\n thumbOffset: number;\n}\n\nexport interface SwitchStyleContext {\n uncheckedTrack: string;\n checkedTrack: string;\n thumbColor: string;\n}\n\nexport function switchStyleContext(theme: RemocnTheme): SwitchStyleContext {\n return {\n uncheckedTrack: theme.input,\n checkedTrack: theme.primary,\n thumbColor: theme.background,\n };\n}\n\nexport function switchStyle(\n state: SwitchState,\n ctx: SwitchStyleContext,\n): SwitchStyle {\n switch (state) {\n case \"checked\":\n return {\n trackBackground: ctx.checkedTrack,\n thumbOffset: 1,\n };\n default:\n return {\n trackBackground: ctx.uncheckedTrack,\n thumbOffset: 0,\n };\n }\n}\n\nexport function Switch({\n state = \"unchecked\",\n style,\n label,\n size = \"default\",\n theme: themeOverride,\n primary,\n mode,\n className,\n}: SwitchProps) {\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n\n const sizeStyle = SIZE_STYLES[size];\n const ctx = switchStyleContext(theme);\n const v = style ?? switchStyle(state, ctx);\n\n const travel = sizeStyle.trackW - sizeStyle.thumb - sizeStyle.pad * 2;\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <span\n className={className}\n style={{\n display: \"inline-flex\",\n alignItems: \"center\",\n gap: sizeStyle.gap,\n }}\n >\n {}\n <span\n style={{\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n width: sizeStyle.trackW,\n height: sizeStyle.trackH,\n borderRadius: sizeStyle.trackH / 2,\n background: v.trackBackground,\n }}\n >\n {}\n <span\n style={{\n position: \"absolute\",\n left: sizeStyle.pad,\n width: sizeStyle.thumb,\n height: sizeStyle.thumb,\n borderRadius: \"50%\",\n background: ctx.thumbColor,\n boxShadow: \"0 1px 2px rgba(0,0,0,0.15)\",\n transform: `translateX(${v.thumbOffset * travel}px)`,\n }}\n />\n </span>\n {label !== undefined && (\n <span\n style={{\n fontSize: sizeStyle.fontSize,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: theme.foreground,\n }}\n >\n {label}\n </span>\n )}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/switch.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/switch/use-switch-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n mixOklch,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n switchStyle,\n switchStyleContext,\n type SwitchState,\n type SwitchStyle,\n} from \"@/components/remocn/switch\";\n\nexport const DEFAULT_DURATION = 10;\n\nexport function tweenSwitchStyle(\n a: SwitchStyle,\n b: SwitchStyle,\n t: number,\n): SwitchStyle {\n return {\n trackBackground: mixOklch(a.trackBackground, b.trackBackground, t),\n thumbOffset: a.thumbOffset + (b.thumbOffset - a.thumbOffset) * t,\n };\n}\n\nexport interface SwitchTransitionOptions {\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n primary?: string;\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useSwitchTransition(\n steps: Step<SwitchState>[],\n opts: SwitchTransitionOptions = {},\n): SwitchStyle {\n const {\n theme: themeOverride,\n mode,\n primary,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(\n { ...themeOverride, ...(primary ? { primary } : {}) },\n mode,\n );\n const ctx = switchStyleContext(theme);\n const { from, to, progress } = useStateTransition(\n steps,\n \"unchecked\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenSwitchStyle(switchStyle(from, ctx), switchStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-switch-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/tabs.json b/public/r/tabs.json
new file mode 100644
index 00000000..f296a2f2
--- /dev/null
+++ b/public/r/tabs.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "tabs",
+ "title": "UI Tabs",
+ "description": "A tabs widget whose active-tab state is a pure function of the timeline; the sliding indicator, label colors, and panel crossfade are keyframed/derived presets.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/tabs/index.tsx",
+ "content": "\"use client\";\n\nimport { mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type TabsState = string;\n\ntype TabsVariant = \"pill\" | \"underline\";\n\nexport interface TabsProps {\n state?: TabsState;\n style?: TabsStyle;\n items?: string[];\n contents?: string[];\n contentHeight?: number;\n variant?: TabsVariant;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst WIDTH = 440;\n\nconst DEFAULT_ITEMS = [\"Account\", \"Password\", \"Settings\"];\n\nconst DEFAULT_CONTENTS = [\n \"Make changes to your account here.\",\n \"Change your password here.\",\n \"Manage your notification settings.\",\n];\n\nexport interface TabsStyle {\n indicatorOffset: number;\n}\n\nexport interface TabsStyleContext {\n items: string[];\n variant: TabsVariant;\n trackBg: string;\n activeFg: string;\n inactiveFg: string;\n indicatorBg: string;\n border: string;\n radius: number;\n panelFg: string;\n}\n\nexport function tabsStyleContext(\n items: string[],\n variant: TabsVariant,\n theme: RemocnTheme,\n): TabsStyleContext {\n return {\n items,\n variant,\n trackBg: theme.muted,\n activeFg: theme.foreground,\n inactiveFg: theme.mutedForeground,\n indicatorBg: variant === \"underline\" ? theme.primary : theme.background,\n border: theme.border,\n radius: theme.radius,\n panelFg: theme.mutedForeground,\n };\n}\n\nexport function tabsStyle(state: TabsState, ctx: TabsStyleContext): TabsStyle {\n const i = ctx.items.indexOf(state);\n return { indicatorOffset: i < 0 ? 0 : i };\n}\n\nexport function Tabs({\n state = DEFAULT_ITEMS[0],\n style,\n items = DEFAULT_ITEMS,\n contents = DEFAULT_CONTENTS,\n contentHeight = 72,\n variant = \"pill\",\n theme: themeOverride,\n mode,\n className,\n}: TabsProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n\n const ctx = tabsStyleContext(items, variant, theme);\n const v = style ?? tabsStyle(state, ctx);\n\n const isPill = ctx.variant === \"pill\";\n const trackPad = isPill ? 4 : 0;\n const innerWidth = WIDTH - trackPad * 2;\n const segmentWidth = innerWidth / items.length;\n const rowHeight = 40;\n const indicatorX = trackPad + v.indicatorOffset * segmentWidth;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div style={{ width: WIDTH }}>\n {}\n <div\n style={{\n position: \"relative\",\n height: rowHeight,\n padding: trackPad,\n boxSizing: \"border-box\",\n display: \"flex\",\n background: isPill ? ctx.trackBg : \"transparent\",\n borderRadius: isPill ? ctx.radius : 0,\n borderBottom: isPill ? undefined : `1px solid ${ctx.border}`,\n }}\n >\n {}\n <div\n style={\n isPill\n ? {\n position: \"absolute\",\n top: trackPad,\n left: indicatorX,\n width: segmentWidth,\n height: rowHeight - trackPad * 2,\n background: ctx.indicatorBg,\n borderRadius: ctx.radius - 3,\n boxShadow: \"0 1px 2px rgba(0,0,0,0.1)\",\n }\n : {\n position: \"absolute\",\n bottom: 0,\n left: indicatorX,\n width: segmentWidth,\n height: 2,\n background: ctx.indicatorBg,\n }\n }\n />\n {}\n {items.map((item, i) => {\n const proximity = Math.max(0, 1 - Math.abs(i - v.indicatorOffset));\n return (\n <span\n key={item}\n style={{\n position: \"relative\",\n width: segmentWidth,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: 14,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: mixOklch(ctx.inactiveFg, ctx.activeFg, proximity),\n }}\n >\n {item}\n </span>\n );\n })}\n </div>\n {}\n <div\n style={{\n position: \"relative\",\n height: contentHeight,\n marginTop: 16,\n }}\n >\n {items.map((item, i) => {\n const proximity = Math.max(0, 1 - Math.abs(i - v.indicatorOffset));\n return (\n <div\n key={item}\n style={{\n position: \"absolute\",\n inset: 0,\n opacity: proximity,\n fontSize: 14,\n lineHeight: 1.5,\n color: ctx.panelFg,\n }}\n >\n {contents[i]}\n </div>\n );\n })}\n </div>\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/tabs.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/tabs/use-tabs-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n tabsStyle,\n tabsStyleContext,\n type TabsState,\n type TabsStyle,\n} from \"@/components/remocn/tabs\";\n\nconst DEFAULT_ITEMS = [\"Account\", \"Password\", \"Settings\"];\n\nexport const DEFAULT_DURATION = 14;\n\nexport function tweenTabsStyle(\n a: TabsStyle,\n b: TabsStyle,\n t: number,\n): TabsStyle {\n return {\n indicatorOffset:\n a.indicatorOffset + (b.indicatorOffset - a.indicatorOffset) * t,\n };\n}\n\nexport interface TabsTransitionOptions {\n items?: string[];\n variant?: \"pill\" | \"underline\";\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useTabsTransition(\n steps: Step<TabsState>[],\n opts: TabsTransitionOptions = {},\n): TabsStyle {\n const {\n items = DEFAULT_ITEMS,\n variant = \"pill\",\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = tabsStyleContext(items, variant, theme);\n const { from, to, progress } = useStateTransition(\n steps,\n items[0],\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenTabsStyle(tabsStyle(from, ctx), tabsStyle(to, ctx), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-tabs-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/toast.json b/public/r/toast.json
new file mode 100644
index 00000000..d24cf232
--- /dev/null
+++ b/public/r/toast.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "toast",
+ "title": "UI Toast",
+ "description": "A toast notification whose hidden/visible state is a pure function of the timeline. The Toast renderer is a pure function of a ToastStyle (opacity, translateY, scale); useToastTransition eases both the slide-in enter and the auto-dismiss exit. Variants default/success/error change the leading icon and its color.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/toast/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type ToastState = \"hidden\" | \"visible\";\n\nexport type ToastVariant = \"default\" | \"success\" | \"error\";\n\nexport interface ToastProps {\n state?: ToastState;\n style?: ToastStyle;\n title: string;\n description?: string;\n variant?: ToastVariant;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst TOAST_WIDTH = 356;\n\nexport interface ToastStyle {\n opacity: number;\n translateY: number;\n scale: number;\n}\n\nexport interface ToastStyleContext {\n iconColor: string;\n}\n\nexport function toastStyleContext(\n variant: ToastVariant,\n theme: RemocnTheme,\n): ToastStyleContext {\n if (variant === \"success\") return { iconColor: \"oklch(0.6 0.17 150)\" };\n if (variant === \"error\") return { iconColor: theme.destructive };\n return { iconColor: theme.mutedForeground };\n}\n\nexport function toastStyle(state: ToastState): ToastStyle {\n switch (state) {\n case \"visible\":\n return { opacity: 1, translateY: 0, scale: 1 };\n default:\n return { opacity: 0, translateY: 16, scale: 0.97 };\n }\n}\n\nfunction ToastIcon({\n variant,\n color,\n}: {\n variant: ToastVariant;\n color: string;\n}) {\n if (variant === \"success\") {\n return (\n <svg width={18} height={18} viewBox=\"0 0 24 24\" fill=\"none\">\n <circle cx=\"12\" cy=\"12\" r=\"9\" stroke={color} strokeWidth=\"2\" />\n <path\n d=\"M8 12.5l2.6 2.6L16 9\"\n stroke={color}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n }\n if (variant === \"error\") {\n return (\n <svg width={18} height={18} viewBox=\"0 0 24 24\" fill=\"none\">\n <circle cx=\"12\" cy=\"12\" r=\"9\" stroke={color} strokeWidth=\"2\" />\n <path\n d=\"M12 7.5v5\"\n stroke={color}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n />\n <circle cx=\"12\" cy=\"16\" r=\"1.1\" fill={color} />\n </svg>\n );\n }\n return (\n <svg width={18} height={18} viewBox=\"0 0 24 24\" fill=\"none\">\n <circle cx=\"12\" cy=\"12\" r=\"9\" stroke={color} strokeWidth=\"2\" />\n <path d=\"M12 11v5\" stroke={color} strokeWidth=\"2\" strokeLinecap=\"round\" />\n <circle cx=\"12\" cy=\"8\" r=\"1.1\" fill={color} />\n </svg>\n );\n}\n\nexport function Toast({\n state = \"hidden\",\n style,\n title,\n description,\n variant = \"default\",\n theme: themeOverride,\n mode,\n className,\n}: ToastProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = toastStyleContext(variant, theme);\n const v = style ?? toastStyle(state);\n\n return (\n <div\n className={className}\n style={{\n display: \"flex\",\n\n alignItems: description ? \"flex-start\" : \"center\",\n gap: 12,\n width: TOAST_WIDTH,\n padding: \"16px\",\n background: theme.popover,\n color: theme.popoverForeground,\n border: `1px solid ${theme.border}`,\n borderRadius: theme.radius,\n boxShadow:\n \"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)\",\n opacity: v.opacity,\n transform: `translateY(${v.translateY}px) scale(${v.scale})`,\n transformOrigin: \"bottom center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <span\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n marginTop: description ? 1 : 0,\n }}\n >\n <ToastIcon variant={variant} color={ctx.iconColor} />\n </span>\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n gap: 4,\n minWidth: 0,\n }}\n >\n <span\n style={{\n fontSize: 14,\n fontWeight: 500,\n lineHeight: 1.3,\n letterSpacing: \"-0.01em\",\n }}\n >\n {title}\n </span>\n {description !== undefined && (\n <span\n style={{\n fontSize: 13,\n lineHeight: 1.4,\n color: theme.mutedForeground,\n }}\n >\n {description}\n </span>\n )}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/toast.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/toast/use-toast-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type Step,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n toastStyle,\n type ToastState,\n type ToastStyle,\n} from \"@/components/remocn/toast\";\n\nexport const DEFAULT_DURATION = 12;\n\nexport function tweenToastStyle(\n a: ToastStyle,\n b: ToastStyle,\n t: number,\n): ToastStyle {\n return {\n opacity: a.opacity + (b.opacity - a.opacity) * t,\n translateY: a.translateY + (b.translateY - a.translateY) * t,\n scale: a.scale + (b.scale - a.scale) * t,\n };\n}\n\nexport interface ToastTransitionOptions {\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useToastTransition(\n steps: Step<ToastState>[],\n opts: ToastTransitionOptions = {},\n): ToastStyle {\n const { speed = 1, defaultDuration = DEFAULT_DURATION } = opts;\n const { from, to, progress } = useStateTransition(\n steps,\n \"hidden\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenToastStyle(toastStyle(from), toastStyle(to), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-toast-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/toggle-group.json b/public/r/toggle-group.json
new file mode 100644
index 00000000..0dbd6445
--- /dev/null
+++ b/public/r/toggle-group.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "toggle-group",
+ "title": "UI Toggle Group",
+ "description": "A segmented control whose active value is a pure function of the timeline; a raised thumb SLIDES between segments (position + width derived from a float indicator offset, no jumps) and the labels crossfade color via mixOklch. The tabs precedent without content panels.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/toggle-group/index.tsx",
+ "content": "\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { mixOklch, type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type ToggleGroupState = string;\n\nexport type ToggleGroupSize = \"default\" | \"sm\";\n\nexport interface ToggleGroupItem {\n value: string;\n label: string;\n icon?: ReactNode;\n}\n\nexport interface ToggleGroupProps {\n state?: ToggleGroupState;\n style?: ToggleGroupStyle;\n items?: ToggleGroupItem[];\n size?: ToggleGroupSize;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n align?: \"start\" | \"center\" | \"end\";\n className?: string;\n}\n\nfunction justify(align: \"start\" | \"center\" | \"end\"): string {\n return align === \"start\"\n ? \"flex-start\"\n : align === \"end\"\n ? \"flex-end\"\n : \"center\";\n}\n\nconst DEFAULT_ITEMS: ToggleGroupItem[] = [\n { value: \"Monthly\", label: \"Monthly\" },\n { value: \"Yearly\", label: \"Yearly\" },\n];\n\nconst SIZE_STYLES: Record<\n ToggleGroupSize,\n { height: number; segMinWidth: number; fontSize: number; pad: number; gap: number }\n> = {\n sm: { height: 32, segMinWidth: 72, fontSize: 13, pad: 3, gap: 6 },\n default: { height: 36, segMinWidth: 88, fontSize: 14, pad: 4, gap: 8 },\n};\n\nexport interface ToggleGroupStyle {\n indicatorOffset: number;\n}\n\nexport interface ToggleGroupStyleContext {\n items: ToggleGroupItem[];\n trackBg: string;\n thumbBg: string;\n activeFg: string;\n inactiveFg: string;\n radius: number;\n}\n\nexport function toggleGroupStyleContext(\n items: ToggleGroupItem[],\n theme: RemocnTheme,\n): ToggleGroupStyleContext {\n return {\n items,\n trackBg: theme.muted,\n thumbBg: theme.background,\n activeFg: theme.foreground,\n inactiveFg: theme.mutedForeground,\n radius: theme.radius,\n };\n}\n\nexport function toggleGroupStyle(\n state: ToggleGroupState,\n ctx: ToggleGroupStyleContext,\n): ToggleGroupStyle {\n const i = ctx.items.findIndex((it) => it.value === state);\n return { indicatorOffset: i < 0 ? 0 : i };\n}\n\nexport function ToggleGroup({\n state = DEFAULT_ITEMS[0].value,\n style,\n items = DEFAULT_ITEMS,\n size = \"default\",\n theme: themeOverride,\n mode,\n align = \"center\",\n className,\n}: ToggleGroupProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = toggleGroupStyleContext(items, theme);\n const v = style ?? toggleGroupStyle(state, ctx);\n\n const sizeStyle = SIZE_STYLES[size];\n const { pad } = sizeStyle;\n const segmentWidth = sizeStyle.segMinWidth;\n const thumbX = pad + v.indicatorOffset * segmentWidth;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: justify(align),\n background: theme.background,\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n display: \"flex\",\n height: sizeStyle.height,\n padding: pad,\n boxSizing: \"border-box\",\n background: ctx.trackBg,\n borderRadius: ctx.radius,\n }}\n >\n {}\n <div\n style={{\n position: \"absolute\",\n top: pad,\n left: thumbX,\n width: segmentWidth,\n height: sizeStyle.height - pad * 2,\n background: ctx.thumbBg,\n borderRadius: Math.max(2, ctx.radius - 3),\n boxShadow: \"0 1px 2px rgba(0,0,0,0.1)\",\n }}\n />\n {}\n {items.map((item, i) => {\n const proximity = Math.max(0, 1 - Math.abs(i - v.indicatorOffset));\n return (\n <span\n key={item.value}\n style={{\n position: \"relative\",\n width: segmentWidth,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: sizeStyle.gap,\n fontSize: sizeStyle.fontSize,\n fontWeight: 500,\n letterSpacing: \"-0.01em\",\n color: mixOklch(ctx.inactiveFg, ctx.activeFg, proximity),\n }}\n >\n {item.icon}\n {item.label}\n </span>\n );\n })}\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/toggle-group.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/toggle-group/use-toggle-group-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type RemocnTheme,\n type Step,\n useRemocnTheme,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n toggleGroupStyle,\n toggleGroupStyleContext,\n type ToggleGroupItem,\n type ToggleGroupState,\n type ToggleGroupStyle,\n} from \"@/components/remocn/toggle-group\";\n\nconst DEFAULT_ITEMS: ToggleGroupItem[] = [\n { value: \"Monthly\", label: \"Monthly\" },\n { value: \"Yearly\", label: \"Yearly\" },\n];\n\nexport const DEFAULT_DURATION = 14;\n\nexport function tweenToggleGroupStyle(\n a: ToggleGroupStyle,\n b: ToggleGroupStyle,\n t: number,\n): ToggleGroupStyle {\n return {\n indicatorOffset:\n a.indicatorOffset + (b.indicatorOffset - a.indicatorOffset) * t,\n };\n}\n\nexport interface ToggleGroupTransitionOptions {\n items?: ToggleGroupItem[];\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useToggleGroupTransition(\n steps: Step<ToggleGroupState>[],\n opts: ToggleGroupTransitionOptions = {},\n): ToggleGroupStyle {\n const {\n items = DEFAULT_ITEMS,\n theme: themeOverride,\n mode,\n speed = 1,\n defaultDuration = DEFAULT_DURATION,\n } = opts;\n const theme = useRemocnTheme(themeOverride, mode);\n const ctx = toggleGroupStyleContext(items, theme);\n const { from, to, progress } = useStateTransition(\n steps,\n items[0].value,\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenToggleGroupStyle(\n toggleGroupStyle(from, ctx),\n toggleGroupStyle(to, ctx),\n t,\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-toggle-group-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file
diff --git a/public/r/tooltip.json b/public/r/tooltip.json
new file mode 100644
index 00000000..e9fb9e78
--- /dev/null
+++ b/public/r/tooltip.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "tooltip",
+ "title": "UI Tooltip",
+ "description": "A tooltip whose hidden/visible state is a pure function of the timeline. The Tooltip renderer is a pure function of a TooltipStyle (opacity, scale, translate); useTooltipTransition eases both the show and the hide. The static `side` prop sets the enter translate axis and the arrow placement.",
+ "dependencies": [
+ "remotion"
+ ],
+ "registryDependencies": [
+ "remocn-ui"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn-ui/tooltip/index.tsx",
+ "content": "\"use client\";\n\nimport { type RemocnTheme, useRemocnTheme } from \"@/lib/remocn-ui\";\n\nexport type TooltipState = \"hidden\" | \"visible\";\n\nexport type TooltipSide = \"top\" | \"bottom\" | \"left\" | \"right\";\n\nexport interface TooltipProps {\n state?: TooltipState;\n style?: TooltipStyle;\n label: string;\n side?: TooltipSide;\n theme?: Partial<RemocnTheme>;\n mode?: \"light\" | \"dark\";\n className?: string;\n}\n\nconst ARROW = 10;\n\nexport interface TooltipStyle {\n opacity: number;\n scale: number;\n translate: number;\n}\n\nexport function tooltipStyle(state: TooltipState): TooltipStyle {\n switch (state) {\n case \"visible\":\n return { opacity: 1, scale: 1, translate: 0 };\n default:\n return { opacity: 0, scale: 0.96, translate: 4 };\n }\n}\n\nfunction offsetFor(\n side: TooltipSide,\n translate: number,\n): {\n x: number;\n y: number;\n} {\n switch (side) {\n case \"bottom\":\n return { x: 0, y: -translate };\n case \"left\":\n return { x: translate, y: 0 };\n case \"right\":\n return { x: -translate, y: 0 };\n default:\n return { x: 0, y: translate };\n }\n}\n\nexport function Tooltip({\n state = \"hidden\",\n style,\n label,\n side = \"top\",\n theme: themeOverride,\n mode,\n className,\n}: TooltipProps) {\n const theme = useRemocnTheme(themeOverride, mode);\n const v = style ?? tooltipStyle(state);\n\n const bg = theme.foreground;\n const fg = theme.background;\n const { x, y } = offsetFor(side, v.translate);\n\n const arrowStyle: React.CSSProperties = {\n position: \"absolute\",\n width: ARROW,\n height: ARROW,\n background: bg,\n borderRadius: 2,\n transform: \"rotate(45deg)\",\n ...(side === \"top\" && {\n bottom: -ARROW / 2,\n left: \"50%\",\n marginLeft: -ARROW / 2,\n }),\n ...(side === \"bottom\" && {\n top: -ARROW / 2,\n left: \"50%\",\n marginLeft: -ARROW / 2,\n }),\n ...(side === \"left\" && {\n right: -ARROW / 2,\n top: \"50%\",\n marginTop: -ARROW / 2,\n }),\n ...(side === \"right\" && {\n left: -ARROW / 2,\n top: \"50%\",\n marginTop: -ARROW / 2,\n }),\n };\n\n return (\n <div\n className={className}\n style={{\n position: \"relative\",\n display: \"inline-flex\",\n alignItems: \"center\",\n opacity: v.opacity,\n transform: `translate(${x}px, ${y}px) scale(${v.scale})`,\n transformOrigin: \"center\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n <div\n style={{\n position: \"relative\",\n padding: \"6px 12px\",\n background: bg,\n color: fg,\n fontSize: 12,\n fontWeight: 500,\n lineHeight: 1.3,\n letterSpacing: \"-0.005em\",\n borderRadius: theme.radius + 4,\n whiteSpace: \"nowrap\",\n boxShadow: \"0 4px 12px -4px rgba(0,0,0,0.25)\",\n }}\n >\n {label}\n {}\n <span style={arrowStyle} />\n </div>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/tooltip.tsx"
+ },
+ {
+ "path": "registry/remocn-ui/tooltip/use-tooltip-transition.ts",
+ "content": "\"use client\";\n\nimport {\n easings,\n type Step,\n useStateTransition,\n} from \"@/lib/remocn-ui\";\nimport {\n tooltipStyle,\n type TooltipState,\n type TooltipStyle,\n} from \"@/components/remocn/tooltip\";\n\nexport const DEFAULT_DURATION = 8;\n\nexport function tweenTooltipStyle(\n a: TooltipStyle,\n b: TooltipStyle,\n t: number,\n): TooltipStyle {\n return {\n opacity: a.opacity + (b.opacity - a.opacity) * t,\n scale: a.scale + (b.scale - a.scale) * t,\n translate: a.translate + (b.translate - a.translate) * t,\n };\n}\n\nexport interface TooltipTransitionOptions {\n mode?: \"light\" | \"dark\";\n speed?: number;\n defaultDuration?: number;\n}\n\nexport function useTooltipTransition(\n steps: Step<TooltipState>[],\n opts: TooltipTransitionOptions = {},\n): TooltipStyle {\n const { speed = 1, defaultDuration = DEFAULT_DURATION } = opts;\n const { from, to, progress } = useStateTransition(\n steps,\n \"hidden\",\n speed,\n defaultDuration,\n );\n const t = easings.out(progress);\n return tweenTooltipStyle(tooltipStyle(from), tooltipStyle(to), t);\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/use-tooltip-transition.ts"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file