@zyncat/ui 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/dist/alert.js +10 -9
  2. package/dist/alert.js.map +1 -1
  3. package/dist/avatar.css +1 -1
  4. package/dist/badge.css +1 -1
  5. package/dist/badge.js +5 -100
  6. package/dist/badge.js.map +1 -1
  7. package/dist/button.css +24 -27
  8. package/dist/button.js +3 -3
  9. package/dist/checkbox.css +0 -1
  10. package/dist/chunk-2EPNCOLN.js +177 -0
  11. package/dist/chunk-2EPNCOLN.js.map +1 -0
  12. package/dist/{chunk-3HE7N3UK.js → chunk-2GYZ3HP3.js} +3 -3
  13. package/dist/chunk-2GYZ3HP3.js.map +1 -0
  14. package/dist/{chunk-ODRO3KS6.js → chunk-7GTACTZD.js} +8 -6
  15. package/dist/chunk-7GTACTZD.js.map +1 -0
  16. package/dist/{chunk-BWGK3OD6.js → chunk-AK2AXGEC.js} +33 -6
  17. package/dist/chunk-AK2AXGEC.js.map +1 -0
  18. package/dist/{chunk-5VC3TUZ2.js → chunk-BA4ALXQW.js} +2 -2
  19. package/dist/{chunk-5VC3TUZ2.js.map → chunk-BA4ALXQW.js.map} +1 -1
  20. package/dist/{chunk-AXZBD7LY.js → chunk-CF6ZFXRV.js} +16 -11
  21. package/dist/chunk-CF6ZFXRV.js.map +1 -0
  22. package/dist/{chunk-AQMR7ZYO.js → chunk-DOAR4PJ3.js} +4 -4
  23. package/dist/{chunk-AQMR7ZYO.js.map → chunk-DOAR4PJ3.js.map} +1 -1
  24. package/dist/chunk-EUAXI6OF.js +16 -0
  25. package/dist/chunk-EUAXI6OF.js.map +1 -0
  26. package/dist/{chunk-AOEO2LCZ.js → chunk-G2TOUG2A.js} +6 -5
  27. package/dist/chunk-G2TOUG2A.js.map +1 -0
  28. package/dist/{chunk-CYZKPUCG.js → chunk-HRP4UFWN.js} +3 -3
  29. package/dist/chunk-HRP4UFWN.js.map +1 -0
  30. package/dist/chunk-INK2GJTA.js +102 -0
  31. package/dist/chunk-INK2GJTA.js.map +1 -0
  32. package/dist/{chunk-GM7IPTTT.js → chunk-JJHEVW4M.js} +5 -5
  33. package/dist/{chunk-GM7IPTTT.js.map → chunk-JJHEVW4M.js.map} +1 -1
  34. package/dist/{chunk-7NHY2CRA.js → chunk-JUC35N3C.js} +2 -2
  35. package/dist/chunk-JUC35N3C.js.map +1 -0
  36. package/dist/{chunk-LC6NQQER.js → chunk-LFJ4C7ZP.js} +7 -7
  37. package/dist/chunk-LFJ4C7ZP.js.map +1 -0
  38. package/dist/{chunk-JQZ3FTHP.js → chunk-MCOIR3CK.js} +3 -3
  39. package/dist/{chunk-JQZ3FTHP.js.map → chunk-MCOIR3CK.js.map} +1 -1
  40. package/dist/{chunk-TXJQUN7C.js → chunk-NATK4DDW.js} +15 -15
  41. package/dist/{chunk-TXJQUN7C.js.map → chunk-NATK4DDW.js.map} +1 -1
  42. package/dist/{chunk-BIDVNLJO.js → chunk-O3RMSMBP.js} +8 -3
  43. package/dist/{chunk-BIDVNLJO.js.map → chunk-O3RMSMBP.js.map} +1 -1
  44. package/dist/{chunk-47OMFFIB.js → chunk-ODO2TCTS.js} +27 -13
  45. package/dist/chunk-ODO2TCTS.js.map +1 -0
  46. package/dist/{chunk-LV442ZOR.js → chunk-P3QSWNED.js} +11 -11
  47. package/dist/{chunk-LV442ZOR.js.map → chunk-P3QSWNED.js.map} +1 -1
  48. package/dist/{chunk-QDAN43B6.js → chunk-Q4K337QY.js} +6 -6
  49. package/dist/chunk-Q4K337QY.js.map +1 -0
  50. package/dist/{chunk-ZSP4ZTII.js → chunk-RLRZJAF7.js} +20 -8
  51. package/dist/chunk-RLRZJAF7.js.map +1 -0
  52. package/dist/{chunk-V4ZN5RD4.js → chunk-SY5UA6WS.js} +29 -9
  53. package/dist/chunk-SY5UA6WS.js.map +1 -0
  54. package/dist/{chunk-SPFHWHJ6.js → chunk-TFC5SCAB.js} +32 -13
  55. package/dist/chunk-TFC5SCAB.js.map +1 -0
  56. package/dist/{chunk-HBWRKEW4.js → chunk-VBALIMST.js} +3 -3
  57. package/dist/{chunk-HBWRKEW4.js.map → chunk-VBALIMST.js.map} +1 -1
  58. package/dist/{chunk-2W7FOMWE.js → chunk-VXQ7A6ZI.js} +8 -8
  59. package/dist/{chunk-2W7FOMWE.js.map → chunk-VXQ7A6ZI.js.map} +1 -1
  60. package/dist/{chunk-TBLPZQSI.js → chunk-W7CHDHRV.js} +114 -42
  61. package/dist/chunk-W7CHDHRV.js.map +1 -0
  62. package/dist/{chunk-DEZIQTBW.js → chunk-WBWVOOKM.js} +58 -53
  63. package/dist/chunk-WBWVOOKM.js.map +1 -0
  64. package/dist/{chunk-6H3IJ752.js → chunk-WJEZWKEY.js} +20 -10
  65. package/dist/chunk-WJEZWKEY.js.map +1 -0
  66. package/dist/{chunk-TBIY5YR5.js → chunk-WMTOAYGP.js} +9 -9
  67. package/dist/{chunk-TBIY5YR5.js.map → chunk-WMTOAYGP.js.map} +1 -1
  68. package/dist/{chunk-C3D32LE3.js → chunk-WTHIUPVJ.js} +3 -3
  69. package/dist/{chunk-C3D32LE3.js.map → chunk-WTHIUPVJ.js.map} +1 -1
  70. package/dist/{chunk-PNFFK5HY.js → chunk-XCTMTOGT.js} +5 -5
  71. package/dist/{chunk-PNFFK5HY.js.map → chunk-XCTMTOGT.js.map} +1 -1
  72. package/dist/chunk-XMJ343KF.js +18 -0
  73. package/dist/chunk-XMJ343KF.js.map +1 -0
  74. package/dist/collapse.js +1 -1
  75. package/dist/combobox.css +7 -0
  76. package/dist/combobox.js +183 -0
  77. package/dist/combobox.js.map +1 -0
  78. package/dist/confetti.js +2 -2
  79. package/dist/{crossfade-XFZLFLT7.js → crossfade-UHUQBUVG.js} +53 -11
  80. package/dist/crossfade-UHUQBUVG.js.map +1 -0
  81. package/dist/date-field.js +23 -20
  82. package/dist/date-field.js.map +1 -1
  83. package/dist/date-picker.css +25 -40
  84. package/dist/date-range-field.js +458 -276
  85. package/dist/date-range-field.js.map +1 -1
  86. package/dist/datetime-field.js +24 -21
  87. package/dist/datetime-field.js.map +1 -1
  88. package/dist/dialog-sheet.css +31 -0
  89. package/dist/dialog.css +3 -0
  90. package/dist/dialog.js +42 -40
  91. package/dist/dialog.js.map +1 -1
  92. package/dist/dropdown.css +2 -2
  93. package/dist/dropdown.js +56 -31
  94. package/dist/dropdown.js.map +1 -1
  95. package/dist/emoji-picker.js +20 -19
  96. package/dist/emoji-picker.js.map +1 -1
  97. package/dist/flow-field.js +2 -2
  98. package/dist/glide.js +3 -3
  99. package/dist/input.css +54 -34
  100. package/dist/instagram-feed.js +3 -3
  101. package/dist/lens.js +184 -160
  102. package/dist/lens.js.map +1 -1
  103. package/dist/mcp.js +29 -22
  104. package/dist/modal.js +10 -9
  105. package/dist/modal.js.map +1 -1
  106. package/dist/morphing-text.js +2 -2
  107. package/dist/motion-devtools.css +6 -5
  108. package/dist/motion-devtools.js +6 -6
  109. package/dist/motion-tokens.js +1 -1
  110. package/dist/motion.js +6 -5
  111. package/dist/multi-select.js +41 -20
  112. package/dist/multi-select.js.map +1 -1
  113. package/dist/number-field.js +121 -74
  114. package/dist/number-field.js.map +1 -1
  115. package/dist/odometer.css +12 -7
  116. package/dist/odometer.js +158 -39
  117. package/dist/odometer.js.map +1 -1
  118. package/dist/otp-field.js +32 -3
  119. package/dist/otp-field.js.map +1 -1
  120. package/dist/overlay.css +1 -0
  121. package/dist/pagination.css +1 -1
  122. package/dist/pagination.js +6 -6
  123. package/dist/popover.js +11 -10
  124. package/dist/radio-group.css +1 -2
  125. package/dist/radio-group.js +9 -8
  126. package/dist/radio-group.js.map +1 -1
  127. package/dist/range-sheet-days.css +35 -0
  128. package/dist/range-sheet.css +80 -0
  129. package/dist/range-summary.css +67 -0
  130. package/dist/scroll-area.css +150 -0
  131. package/dist/scroll-area.js +85 -0
  132. package/dist/scroll-area.js.map +1 -0
  133. package/dist/select.css +22 -1
  134. package/dist/select.js +15 -14
  135. package/dist/select.js.map +1 -1
  136. package/dist/sheet.js +11 -10
  137. package/dist/support-rail.css +2 -2
  138. package/dist/support-rail.js +15 -13
  139. package/dist/support-rail.js.map +1 -1
  140. package/dist/table-detail.css +27 -0
  141. package/dist/table.css +35 -13
  142. package/dist/table.js +341 -172
  143. package/dist/table.js.map +1 -1
  144. package/dist/tabs.css +16 -11
  145. package/dist/tabs.js +68 -56
  146. package/dist/tabs.js.map +1 -1
  147. package/dist/tag.css +2 -4
  148. package/dist/tag.js +8 -7
  149. package/dist/tag.js.map +1 -1
  150. package/dist/text-field.js +4 -4
  151. package/dist/textarea.css +15 -42
  152. package/dist/textarea.js +24 -26
  153. package/dist/textarea.js.map +1 -1
  154. package/dist/theme-grid.js +8 -7
  155. package/dist/theme-switcher.js +17 -16
  156. package/dist/theme-switcher.js.map +1 -1
  157. package/dist/{theme-transition-FDF2REFD.js → theme-transition-F3CBENM5.js} +5 -5
  158. package/dist/{theme-transition-FDF2REFD.js.map → theme-transition-F3CBENM5.js.map} +1 -1
  159. package/dist/theme.js +5 -4
  160. package/dist/theme.js.map +1 -1
  161. package/dist/tiktok.js +3 -3
  162. package/dist/time-field.js +13 -8
  163. package/dist/time-field.js.map +1 -1
  164. package/dist/toast.css +1 -1
  165. package/dist/toast.js +11 -10
  166. package/dist/toast.js.map +1 -1
  167. package/dist/toggle-tag.js.map +1 -1
  168. package/dist/toggle.css +0 -1
  169. package/dist/tooltip.css +1 -1
  170. package/dist/tooltip.js +21 -15
  171. package/dist/tooltip.js.map +1 -1
  172. package/dist/types/components/composites/combobox/Combobox.d.ts +51 -0
  173. package/dist/types/components/composites/combobox/caret.d.ts +8 -0
  174. package/dist/types/components/composites/combobox/use-combobox.d.ts +52 -0
  175. package/dist/types/components/composites/date-picker/DateField.d.ts +1 -1
  176. package/dist/types/components/composites/date-picker/DateRangeField.d.ts +6 -3
  177. package/dist/types/components/composites/date-picker/DateTimeField.d.ts +1 -1
  178. package/dist/types/components/composites/date-picker/TimeField.d.ts +1 -1
  179. package/dist/types/components/composites/date-picker/date-utils.d.ts +2 -0
  180. package/dist/types/components/composites/date-picker/field-shell.d.ts +4 -1
  181. package/dist/types/components/composites/date-picker/month-swipe.d.ts +3 -0
  182. package/dist/types/components/composites/date-picker/range-day.d.ts +11 -0
  183. package/dist/types/components/composites/date-picker/range-month.d.ts +14 -0
  184. package/dist/types/components/composites/date-picker/range-panel.d.ts +4 -18
  185. package/dist/types/components/composites/date-picker/range-presets.d.ts +24 -0
  186. package/dist/types/components/composites/date-picker/range-sheet.d.ts +12 -0
  187. package/dist/types/components/composites/date-picker/range-summary.d.ts +9 -0
  188. package/dist/types/components/composites/date-picker/typed-key.d.ts +3 -0
  189. package/dist/types/components/composites/date-picker/use-month-view.d.ts +14 -0
  190. package/dist/types/components/composites/date-picker/use-range-panel.d.ts +44 -0
  191. package/dist/types/components/composites/dialog/Dialog.d.ts +3 -2
  192. package/dist/types/components/composites/dialog/surface.d.ts +17 -0
  193. package/dist/types/components/composites/dropdown/Dropdown.d.ts +9 -3
  194. package/dist/types/components/composites/dropdown/types.d.ts +4 -1
  195. package/dist/types/components/composites/scroll-area/ScrollArea.d.ts +29 -0
  196. package/dist/types/components/composites/select/MultiSelect.d.ts +9 -3
  197. package/dist/types/components/composites/select/core/menu.d.ts +3 -1
  198. package/dist/types/components/composites/select/core/panel.d.ts +4 -3
  199. package/dist/types/components/composites/select/core/use-listbox.d.ts +5 -5
  200. package/dist/types/components/composites/select/presets.d.ts +17 -0
  201. package/dist/types/components/composites/table/Table.d.ts +3 -74
  202. package/dist/types/components/composites/table/body.d.ts +15 -0
  203. package/dist/types/components/composites/table/detail.d.ts +24 -0
  204. package/dist/types/components/composites/table/head.d.ts +16 -0
  205. package/dist/types/components/composites/table/types.d.ts +86 -0
  206. package/dist/types/components/composites/table/use-scroller.d.ts +12 -0
  207. package/dist/types/components/composites/table/use-table-state.d.ts +16 -0
  208. package/dist/types/components/composites/tabs/Tabs.d.ts +3 -71
  209. package/dist/types/components/composites/tabs/tab-panel.d.ts +26 -0
  210. package/dist/types/components/composites/tabs/types.d.ts +48 -0
  211. package/dist/types/components/composites/tabs/use-ink.d.ts +5 -0
  212. package/dist/types/components/composites/tooltip/Tooltip.d.ts +1 -1
  213. package/dist/types/components/compound/support-rail/SupportRail.d.ts +1 -1
  214. package/dist/types/components/expressive/lens/Lens.d.ts +1 -1
  215. package/dist/types/components/expressive/lens/input.d.ts +2 -0
  216. package/dist/types/components/expressive/lens/optics.d.ts +37 -0
  217. package/dist/types/components/expressive/lens/paint.d.ts +2 -0
  218. package/dist/types/components/expressive/lens/use-lens.d.ts +10 -0
  219. package/dist/types/components/expressive/odometer/roll.d.ts +9 -11
  220. package/dist/types/components/expressive/odometer/spring.d.ts +11 -0
  221. package/dist/types/components/internal/hooks/use-hold-repeat.d.ts +8 -0
  222. package/dist/types/components/internal/icon/Icon.d.ts +2 -0
  223. package/dist/types/components/internal/support/types.d.ts +1 -1
  224. package/dist/types/components/primitives/button/Button.d.ts +4 -8
  225. package/dist/types/components/primitives/button/button-style.d.ts +8 -4
  226. package/dist/types/components/primitives/collapse/Collapse.d.ts +3 -2
  227. package/dist/types/components/primitives/input/NumberField.d.ts +1 -1
  228. package/dist/types/components/primitives/input/OtpField.d.ts +5 -1
  229. package/dist/types/components/primitives/input/TextField.d.ts +1 -1
  230. package/dist/types/components/primitives/input/field-chrome.d.ts +2 -1
  231. package/dist/types/components/primitives/input/use-number-value.d.ts +16 -0
  232. package/dist/types/components/primitives/tag/Tag.d.ts +1 -1
  233. package/dist/types/components/primitives/tag/ToggleTag.d.ts +2 -2
  234. package/dist/types/components/primitives/textarea/Textarea.d.ts +3 -1
  235. package/dist/types/engine/flip.d.ts +3 -1
  236. package/dist/types/engine/index.d.ts +2 -2
  237. package/dist/types/engine/loop.d.ts +5 -2
  238. package/dist/types/motion/before-paint.d.ts +4 -0
  239. package/dist/types/motion/crossfade.d.ts +2 -1
  240. package/dist/types/motion/element.d.ts +14 -5
  241. package/dist/types/motion/flip.d.ts +6 -3
  242. package/dist/types/motion/holders.d.ts +4 -0
  243. package/dist/types/motion/use-motion.d.ts +3 -1
  244. package/dist/types/tokens/motion-defaults.generated.d.ts +2 -0
  245. package/dist/types/tokens/motion-scale.d.ts +18 -15
  246. package/dist/types/tokens/motion-tokens.d.ts +1 -1
  247. package/dist/types/tokens/theme-store.d.ts +4 -4
  248. package/dist/types/tokens/theme-tokens.generated.d.ts +43 -31
  249. package/dist/types/tokens/theme.d.ts +1 -1
  250. package/dist/typing-lines.js +2 -2
  251. package/dist/youtube.js +3 -3
  252. package/package.json +11 -1
  253. package/skills/zyncat-ui/SKILL.md +6 -6
  254. package/skills/zyncat-ui/references/components.md +4 -2
  255. package/skills/zyncat-ui/references/recipes.md +1 -1
  256. package/src/components/composites/combobox/Combobox.tsx +100 -0
  257. package/src/components/composites/combobox/Combobox.usage.md +32 -0
  258. package/src/components/composites/combobox/caret.ts +41 -0
  259. package/src/components/composites/combobox/combobox.css +7 -0
  260. package/src/components/composites/combobox/use-combobox.ts +112 -0
  261. package/src/components/composites/date-picker/DateField.tsx +2 -0
  262. package/src/components/composites/date-picker/DateRangeField.tsx +13 -18
  263. package/src/components/composites/date-picker/DateTimeField.tsx +2 -0
  264. package/src/components/composites/date-picker/TimeField.tsx +10 -4
  265. package/src/components/composites/date-picker/date-picker.css +25 -40
  266. package/src/components/composites/date-picker/date-utils.ts +4 -0
  267. package/src/components/composites/date-picker/field-shell.tsx +31 -7
  268. package/src/components/composites/date-picker/month-swipe.ts +41 -0
  269. package/src/components/composites/date-picker/range-day.tsx +112 -0
  270. package/src/components/composites/date-picker/range-month.tsx +79 -0
  271. package/src/components/composites/date-picker/range-panel.tsx +30 -356
  272. package/src/components/composites/date-picker/range-presets.tsx +104 -0
  273. package/src/components/composites/date-picker/range-sheet-days.css +35 -0
  274. package/src/components/composites/date-picker/range-sheet.css +80 -0
  275. package/src/components/composites/date-picker/range-sheet.tsx +72 -0
  276. package/src/components/composites/date-picker/range-summary.css +67 -0
  277. package/src/components/composites/date-picker/range-summary.tsx +69 -0
  278. package/src/components/composites/date-picker/time-core.tsx +23 -17
  279. package/src/components/composites/date-picker/typed-key.ts +9 -0
  280. package/src/components/composites/date-picker/use-month-view.ts +32 -0
  281. package/src/components/composites/date-picker/use-range-panel.ts +145 -0
  282. package/src/components/composites/dialog/Dialog.tsx +28 -110
  283. package/src/components/composites/dialog/dialog-sheet.css +31 -0
  284. package/src/components/composites/dialog/dialog.css +3 -0
  285. package/src/components/composites/dialog/surface.tsx +93 -0
  286. package/src/components/composites/dropdown/Dropdown.tsx +31 -6
  287. package/src/components/composites/dropdown/dropdown.css +2 -2
  288. package/src/components/composites/dropdown/menu-panel.tsx +22 -14
  289. package/src/components/composites/dropdown/types.ts +4 -1
  290. package/src/components/composites/pagination/pagination.css +1 -1
  291. package/src/components/composites/scroll-area/ScrollArea.tsx +114 -0
  292. package/src/components/composites/scroll-area/ScrollArea.usage.md +28 -0
  293. package/src/components/composites/scroll-area/scroll-area.css +150 -0
  294. package/src/components/composites/select/MultiSelect.tsx +15 -7
  295. package/src/components/composites/select/core/menu.tsx +6 -2
  296. package/src/components/composites/select/core/panel.tsx +9 -7
  297. package/src/components/composites/select/core/trigger.tsx +1 -3
  298. package/src/components/composites/select/core/use-listbox.ts +35 -28
  299. package/src/components/composites/select/presets.tsx +47 -0
  300. package/src/components/composites/select/select.css +22 -1
  301. package/src/components/composites/sheet/use-sheet-drag.ts +13 -0
  302. package/src/components/composites/table/Table.tsx +65 -305
  303. package/src/components/composites/table/Table.usage.md +19 -2
  304. package/src/components/composites/table/body.tsx +147 -0
  305. package/src/components/composites/table/detail.tsx +76 -0
  306. package/src/components/composites/table/head.tsx +90 -0
  307. package/src/components/composites/table/table-detail.css +27 -0
  308. package/src/components/composites/table/table.css +35 -13
  309. package/src/components/composites/table/types.ts +97 -0
  310. package/src/components/composites/table/use-scroller.ts +53 -0
  311. package/src/components/composites/table/use-table-state.ts +98 -0
  312. package/src/components/composites/tabs/Tabs.tsx +21 -191
  313. package/src/components/composites/tabs/tab-panel.tsx +63 -0
  314. package/src/components/composites/tabs/tabs.css +16 -11
  315. package/src/components/composites/tabs/types.ts +51 -0
  316. package/src/components/composites/tabs/use-ink.ts +87 -0
  317. package/src/components/composites/toast/toast.css +1 -1
  318. package/src/components/composites/tooltip/Tooltip.tsx +6 -5
  319. package/src/components/composites/tooltip/tooltip-host.tsx +9 -5
  320. package/src/components/composites/tooltip/tooltip.css +1 -1
  321. package/src/components/compound/support-rail/SupportRail.tsx +3 -2
  322. package/src/components/compound/support-rail/support-rail.css +2 -2
  323. package/src/components/dev/motion-devtools.css +6 -5
  324. package/src/components/expressive/lens/Lens.tsx +11 -368
  325. package/src/components/expressive/lens/input.ts +91 -0
  326. package/src/components/expressive/lens/optics.ts +119 -0
  327. package/src/components/expressive/lens/paint.ts +60 -0
  328. package/src/components/expressive/lens/use-lens.ts +121 -0
  329. package/src/components/expressive/odometer/Odometer.tsx +38 -12
  330. package/src/components/expressive/odometer/odometer.css +12 -7
  331. package/src/components/expressive/odometer/roll.ts +85 -40
  332. package/src/components/expressive/odometer/spring.ts +86 -0
  333. package/src/components/internal/hooks/use-hold-repeat.ts +43 -0
  334. package/src/components/internal/hooks/use-scroll-edges.ts +6 -1
  335. package/src/components/internal/icon/Icon.tsx +4 -0
  336. package/src/components/internal/overlay/overlay.css +1 -0
  337. package/src/components/internal/overlay/track-anchor.ts +1 -1
  338. package/src/components/internal/support/types.ts +1 -1
  339. package/src/components/internal/utils/activation.ts +2 -2
  340. package/src/components/primitives/avatar/avatar.css +1 -1
  341. package/src/components/primitives/badge/badge.css +1 -1
  342. package/src/components/primitives/button/Button.tsx +5 -8
  343. package/src/components/primitives/button/Button.usage.md +5 -4
  344. package/src/components/primitives/button/button-style.ts +11 -5
  345. package/src/components/primitives/button/button.css +24 -27
  346. package/src/components/primitives/checkbox/checkbox.css +0 -1
  347. package/src/components/primitives/collapse/Collapse.tsx +3 -2
  348. package/src/components/primitives/input/NumberField.tsx +38 -46
  349. package/src/components/primitives/input/OtpField.tsx +35 -2
  350. package/src/components/primitives/input/OtpField.usage.md +2 -1
  351. package/src/components/primitives/input/TextField.tsx +5 -3
  352. package/src/components/primitives/input/field-chrome.tsx +3 -2
  353. package/src/components/primitives/input/input.css +54 -34
  354. package/src/components/primitives/input/use-number-value.ts +38 -0
  355. package/src/components/primitives/radio-group/radio-group.css +1 -2
  356. package/src/components/primitives/tag/Tag.tsx +1 -1
  357. package/src/components/primitives/tag/ToggleTag.tsx +2 -2
  358. package/src/components/primitives/tag/tag.css +2 -4
  359. package/src/components/primitives/textarea/Textarea.tsx +24 -6
  360. package/src/components/primitives/textarea/char-meter.tsx +1 -16
  361. package/src/components/primitives/textarea/textarea.css +15 -42
  362. package/src/components/primitives/toggle/toggle.css +0 -1
  363. package/src/engine/animate.ts +5 -3
  364. package/src/engine/flip.ts +23 -3
  365. package/src/engine/index.ts +2 -2
  366. package/src/engine/loop.ts +17 -6
  367. package/src/mcp/server.ts +30 -20
  368. package/src/motion/before-paint.ts +15 -0
  369. package/src/motion/crossfade.ts +54 -8
  370. package/src/motion/element.tsx +22 -4
  371. package/src/motion/flip.ts +69 -37
  372. package/src/motion/holders.ts +10 -0
  373. package/src/motion/presence.tsx +18 -9
  374. package/src/motion/use-motion.ts +38 -4
  375. package/src/tokens/base.css +0 -5
  376. package/src/tokens/dark.css +5 -5
  377. package/src/tokens/motion-defaults.generated.ts +15 -8
  378. package/src/tokens/motion-scale.ts +18 -15
  379. package/src/tokens/motion-tokens.ts +4 -4
  380. package/src/tokens/motion.css +19 -11
  381. package/src/tokens/reset.css +1 -0
  382. package/src/tokens/semantic.css +8 -8
  383. package/src/tokens/spacing.css +5 -3
  384. package/src/tokens/theme-store.ts +4 -4
  385. package/src/tokens/theme-sync.tsx +4 -2
  386. package/src/tokens/theme-tokens.generated.ts +44 -31
  387. package/src/tokens/theme.tsx +1 -1
  388. package/tailwind.css +4 -0
  389. package/dist/chunk-3HE7N3UK.js.map +0 -1
  390. package/dist/chunk-47OMFFIB.js.map +0 -1
  391. package/dist/chunk-6BY5G7BI.js +0 -122
  392. package/dist/chunk-6BY5G7BI.js.map +0 -1
  393. package/dist/chunk-6H3IJ752.js.map +0 -1
  394. package/dist/chunk-7NHY2CRA.js.map +0 -1
  395. package/dist/chunk-AOEO2LCZ.js.map +0 -1
  396. package/dist/chunk-AXZBD7LY.js.map +0 -1
  397. package/dist/chunk-BWGK3OD6.js.map +0 -1
  398. package/dist/chunk-CYZKPUCG.js.map +0 -1
  399. package/dist/chunk-DEZIQTBW.js.map +0 -1
  400. package/dist/chunk-KSAJ6DED.js +0 -16
  401. package/dist/chunk-KSAJ6DED.js.map +0 -1
  402. package/dist/chunk-LC6NQQER.js.map +0 -1
  403. package/dist/chunk-ODRO3KS6.js.map +0 -1
  404. package/dist/chunk-QDAN43B6.js.map +0 -1
  405. package/dist/chunk-SPFHWHJ6.js.map +0 -1
  406. package/dist/chunk-TBLPZQSI.js.map +0 -1
  407. package/dist/chunk-V4ZN5RD4.js.map +0 -1
  408. package/dist/chunk-ZSP4ZTII.js.map +0 -1
  409. package/dist/crossfade-XFZLFLT7.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { type Playback } from './animate';
1
+ import { type Layer, type Playback } from './animate';
2
2
  import type { Timing } from './ease';
3
3
  export interface Box {
4
4
  left: number;
@@ -7,6 +7,7 @@ export interface Box {
7
7
  height: number;
8
8
  }
9
9
  export declare function measure(el: HTMLElement): Box;
10
+ export declare function offscreen(margin: number, a: Box, b?: Box): boolean;
10
11
  export declare function keepShared(key: string, box: Box): void;
11
12
  export declare function readShared(key: string): Box | null;
12
13
  export declare function dropShared(key: string): void;
@@ -16,3 +17,4 @@ export interface FlipOptions {
16
17
  timing?: Timing;
17
18
  }
18
19
  export declare function flip(el: HTMLElement, from: Box, options?: FlipOptions): Playback | null;
20
+ export declare function flipLayers(el: HTMLElement, from: Box, to: Box, options?: FlipOptions): Layer[] | null;
@@ -1,4 +1,4 @@
1
1
  export { animate, set, clock, type Layer, type Placement, type Playback } from './animate';
2
- export { loop, type LoopOptions, type SimulationFrame } from './loop';
3
- export { flip, measure, keepShared, readShared, dropShared, type Box, type FlipOptions } from './flip';
2
+ export { loop, type LoopOptions, type LoopPlayback, type SimulationFrame } from './loop';
3
+ export { flip, measure, offscreen, keepShared, readShared, dropShared, type Box, type FlipOptions } from './flip';
4
4
  export { startDrag, type PanInfo } from './drag';
@@ -1,9 +1,12 @@
1
1
  import { type Playback } from './animate';
2
- export type SimulationFrame = (k: number, dt: number, now: number) => void;
2
+ export type SimulationFrame = (k: number, dt: number, now: number) => boolean | void;
3
3
  export interface LoopOptions {
4
4
  el?: HTMLElement;
5
5
  claims?: string[];
6
6
  speed?: () => number;
7
7
  snap?: () => void;
8
8
  }
9
- export declare function loop(frame: SimulationFrame, options?: LoopOptions): Playback;
9
+ export interface LoopPlayback extends Playback {
10
+ wake(): void;
11
+ }
12
+ export declare function loop(frame: SimulationFrame, options?: LoopOptions): LoopPlayback;
@@ -0,0 +1,4 @@
1
+ type Read = () => (() => void) | undefined;
2
+ export declare function beforePaint(read: Read, stop?: () => void): void;
3
+ export declare function flushBeforePaint(): void;
4
+ export {};
@@ -1,3 +1,4 @@
1
1
  import { type Box, type FlipOptions, type Playback } from '../engine';
2
- export declare function keep(id: string, el: HTMLElement, box: Box, { timing }: FlipOptions): void;
2
+ import type { Timing } from '../engine/ease';
3
+ export declare function keep(id: string, el: HTMLElement, box: Box, timing?: Timing, margin?: number): void;
3
4
  export declare function play(id: string, el: HTMLElement, from: Box, { timing }: FlipOptions): Playback | undefined;
@@ -1,4 +1,4 @@
1
- import { type ReactNode, type Ref } from 'react';
1
+ import { Component, type ReactNode, type Ref } from 'react';
2
2
  import { type FlipTuning } from './flip';
3
3
  import { type MotionSpecs } from './use-motion';
4
4
  export interface MotionProps extends MotionSpecs {
@@ -14,7 +14,16 @@ export interface MotionProps extends MotionSpecs {
14
14
  children?: ReactNode;
15
15
  [prop: string]: unknown;
16
16
  }
17
- export declare function Motion({ as, animate, exit, initial, deps, layout, layoutId, layoutTransition, ref, children, ...rest }: MotionProps): import("react").ReactElement<{
18
- 'data-exiting': string;
19
- ref: (el: HTMLElement | null) => void;
20
- }, string | import("react").JSXElementConstructor<any>>;
17
+ declare class BeforeCommit extends Component<{
18
+ read: () => void;
19
+ children?: ReactNode;
20
+ }> {
21
+ getSnapshotBeforeUpdate(): null;
22
+ componentDidUpdate(): void;
23
+ render(): ReactNode;
24
+ }
25
+ export declare function Motion({ as, animate, exit, initial, deps, offscreenMargin, layout, layoutId, layoutTransition, ref, children, ...rest }: MotionProps): import("react").CElement<{
26
+ read: () => void;
27
+ children?: ReactNode;
28
+ }, BeforeCommit>;
29
+ export {};
@@ -1,10 +1,13 @@
1
- import { type RefObject } from 'react';
1
+ import { type EffectCallback, type RefObject } from 'react';
2
2
  import { type FlipOptions } from '../engine';
3
3
  export interface FlipTuning extends FlipOptions {
4
4
  /** Keep the element that last held the `layoutId` on screen through the handoff: a copy of it takes the same path and fades out while this one fades in. */
5
5
  crossfade?: boolean;
6
6
  }
7
- export declare function useFlip<T extends HTMLElement>(sharedId: string | null, tuning: FlipTuning, inPlace: boolean): {
7
+ export declare function useFlip<T extends HTMLElement>(sharedId: string | null, tuning: FlipTuning & {
8
+ offscreenMargin?: number;
9
+ }, inPlace: boolean): {
8
10
  ref: RefObject<T | null>;
9
- play: () => void;
11
+ play: EffectCallback;
12
+ snapshot: () => void;
10
13
  };
@@ -0,0 +1,4 @@
1
+ import { type Box } from '../engine';
2
+ export declare const sharedOwner: Map<string, HTMLElement>;
3
+ export declare const leaving: Map<HTMLElement, Box>;
4
+ export declare function measureHolders(): void;
@@ -12,6 +12,8 @@ export interface MotionSpecs {
12
12
  initial?: boolean;
13
13
  /** Replay `animate` when these change. Must keep a stable length. @default [] */
14
14
  deps?: unknown[];
15
+ /** How far outside the viewport, in px, this element still animates; further out, `animate` and layout moves land on their end state at once. `Infinity` always animates. @default 100 */
16
+ offscreenMargin?: number;
15
17
  }
16
18
  /** Drives `<Motion>`; use it directly on elements you hold a ref to but do not render. */
17
- export declare function useMotion(ref: RefObject<HTMLElement | null>, { animate, exit, initial, deps }: MotionSpecs): void;
19
+ export declare function useMotion(ref: RefObject<HTMLElement | null>, { animate, exit, initial, deps, offscreenMargin }: MotionSpecs): void;
@@ -8,6 +8,7 @@ export declare const motionDefaults: {
8
8
  duration: {
9
9
  fast: number;
10
10
  base: number;
11
+ moderate: number;
11
12
  slow: number;
12
13
  slower: number;
13
14
  slowest: number;
@@ -20,6 +21,7 @@ export declare const motionDefaults: {
20
21
  exit: [number, number, number, number];
21
22
  spring: [number, number, number, number];
22
23
  glide: [number, number, number, number];
24
+ move: [number, number, number, number];
23
25
  };
24
26
  distance: {
25
27
  sm: number;
@@ -1,18 +1,21 @@
1
- /** Names of the UI-transition duration scale (`--duration-*`):
2
- * - `fast` 140ms - micro feedback: hover washes, presses, control tint/border/shadow.
3
- * - `base` 200ms - standard element transitions: fades, toggles, badge morphs.
4
- * - `slow` 300ms - layout-scale movement: Collapse, panel resizes, reordering.
5
- * - `slower` 450ms - large-surface movement: dialogs, sheets, page-scale reveals.
6
- * - `slowest` 900ms - hero-scale movement: card expansion, container transforms. The scale's
7
- * ceiling: anything longer is choreography and belongs to Motion, not a transition token. */
8
- export type DurationToken = 'fast' | 'base' | 'slow' | 'slower' | 'slowest';
1
+ /** Names of the UI-transition duration scale (`--duration-*`), the studio's motion:
2
+ * - `fast` 140ms - micro feedback: hover washes, presses, control tint/border/shadow, an exit.
3
+ * - `base` 240ms - standard element transitions: fades, toggles, a pill gliding between rows.
4
+ * - `moderate` 320ms - small layout movement: a fold opening, a reorder, a FLIP to a new place.
5
+ * - `slow` 420ms - layout-scale movement: Collapse, panel resizes, a larger block arriving.
6
+ * - `slower` 600ms - large-surface movement: dialogs, sheets, an element flying across the page.
7
+ * - `slowest` 800ms - hero-scale movement: container morphs, slow cross-fades of a whole view. The
8
+ * scale's ceiling: anything longer is choreography and belongs to Motion, not a transition token. */
9
+ export type DurationToken = 'fast' | 'base' | 'moderate' | 'slow' | 'slower' | 'slowest';
9
10
  /** Names of the brand easing curves (`--ease-*`):
10
- * - `standard` cubic-bezier(0.2, 0, 0, 1) - brisk start, soft landing; the default for state changes.
11
- * - `entrance` cubic-bezier(0.16, 1, 0.3, 1) - hard deceleration; content arriving on screen.
12
- * - `exit` cubic-bezier(0.4, 0, 1, 1) - accelerates away; content leaving (pair with a faster duration).
13
- * - `spring` cubic-bezier(0.34, 1.4, 0.5, 1) - overshoots then settles; playful confirmations.
14
- * - `glide` cubic-bezier(0.32, 0.55, 0, 1) - fast out, soft landing; a persistent element moving to a
15
- * new target, never enter/exit. */
16
- export type EaseToken = 'standard' | 'entrance' | 'exit' | 'spring' | 'glide';
11
+ * - `standard` cubic-bezier(0.2, 0, 0, 1) - brisk start, soft landing; state changes and the press.
12
+ * - `entrance` cubic-bezier(0.22, 1, 0.36, 1) - hard deceleration; content arriving on screen.
13
+ * - `exit` cubic-bezier(0.3, 0, 0.3, 1) - soft at both ends; content leaving (pair with a faster duration).
14
+ * - `spring` cubic-bezier(0.3, 1.5, 0.5, 1) - overshoots then settles; pop-ins and confirmations.
15
+ * - `glide` cubic-bezier(0.22, 1, 0.36, 1) - fast out, soft landing; a persistent element moving to a
16
+ * new target, never enter/exit.
17
+ * - `move` cubic-bezier(0.55, 0, 0.15, 1) - gathers, then lands; travel across space: a fold, a FLIP,
18
+ * a flight. */
19
+ export type EaseToken = 'standard' | 'entrance' | 'exit' | 'spring' | 'glide' | 'move';
17
20
  export type DistanceToken = 'sm' | 'md' | 'lg';
18
21
  export type ScaleToken = 'panel' | 'floating' | 'chip';
@@ -10,7 +10,7 @@ export interface MotionTransition {
10
10
  export type Bezier = [number, number, number, number];
11
11
  export type { DistanceToken, DurationToken, EaseToken, ScaleToken } from './motion-scale';
12
12
  export interface MotionTokens {
13
- /** seconds - fast 0.14 - base 0.2 - slow 0.3 - slower 0.45 - slowest 0.9 */
13
+ /** seconds - fast 0.14 - base 0.24 - moderate 0.32 - slow 0.42 - slower 0.6 - slowest 0.8 */
14
14
  dur: Record<DurationToken, number>;
15
15
  ease: Record<EaseToken, Bezier>;
16
16
  dist: Record<DistanceToken, number>;
@@ -13,10 +13,10 @@ export interface ThemeState {
13
13
  themeNames: Readonly<Record<string, string>>;
14
14
  }
15
15
  export interface ThemeControls extends ThemeState {
16
- /** Switch the palette; the side stays. */
17
- setTheme(theme: string): void;
18
- /** Pick a side, or `system` to follow the OS setting. */
19
- setPolarity(polarity: PolarityPreference): void;
16
+ /** Switch the palette; the side stays. `options.origin` is where the transition spreads from. */
17
+ setTheme(theme: string, options?: ThemePreferenceOptions): void;
18
+ /** Pick a side, or `system` to follow the OS setting. `options.origin` is where the transition spreads from. */
19
+ setPolarity(polarity: PolarityPreference, options?: ThemePreferenceOptions): void;
20
20
  }
21
21
  export type ThemeBootConfig = {
22
22
  key: string;
@@ -93,15 +93,17 @@ export interface ShapeTokens {
93
93
  }
94
94
  /** The time bands. */
95
95
  export interface MotionDurationTokens {
96
- /** `--duration-fast` - micro feedback - hover washes, presses, control tint. Default: `140ms`. Collapses to `1ms` under reduced motion. */
96
+ /** `--duration-fast` - micro feedback - hover washes, presses, control tint, an exit. Default: `140ms`. Collapses to `1ms` under reduced motion. */
97
97
  fast?: string | number;
98
- /** `--duration-base` - standard element transitions - fades, toggles, badge morphs. Default: `200ms`. Collapses to `1ms` under reduced motion. */
98
+ /** `--duration-base` - standard element transitions - fades, toggles, a pill gliding between rows. Default: `240ms`. Collapses to `1ms` under reduced motion. */
99
99
  base?: string | number;
100
- /** `--duration-slow` - layout-scale movement - Collapse, panel resizes, reordering. Default: `300ms`. Collapses to `1ms` under reduced motion. */
100
+ /** `--duration-moderate` - small layout movement - a fold opening, a reorder, a FLIP to a new place. Default: `320ms`. Collapses to `1ms` under reduced motion. */
101
+ moderate?: string | number;
102
+ /** `--duration-slow` - layout-scale movement - Collapse, panel resizes, a larger block arriving. Default: `420ms`. Collapses to `1ms` under reduced motion. */
101
103
  slow?: string | number;
102
- /** `--duration-slower` - large-surface movement - dialog, sheet, page-scale reveals. Default: `450ms`. Collapses to `1ms` under reduced motion. */
104
+ /** `--duration-slower` - large-surface movement - dialog, sheet, an element flying across the page. Default: `600ms`. Collapses to `1ms` under reduced motion. */
103
105
  slower?: string | number;
104
- /** `--duration-slowest` - hero-scale movement - card expansion, container transforms. Default: `900ms`. Collapses to `1ms` under reduced motion. */
106
+ /** `--duration-slowest` - hero-scale movement - container morphs, slow cross-fades of a whole view. Default: `800ms`. Collapses to `1ms` under reduced motion. */
105
107
  slowest?: string | number;
106
108
  /** `--duration-spin` - continuous loaders only, outside the UI-transition scale. Default: `1000ms`. Collapses to `2000ms` under reduced motion. */
107
109
  spin?: string | number;
@@ -110,16 +112,18 @@ export interface MotionDurationTokens {
110
112
  }
111
113
  /** The brand curves. */
112
114
  export interface MotionEaseTokens {
113
- /** `--ease-standard`. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
115
+ /** `--ease-standard` - brisk start, soft landing - state changes and the press. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
114
116
  standard?: string | number;
115
- /** `--ease-entrance`. Default: `cubic-bezier(0.25, 1, 0.4, 1)`. */
117
+ /** `--ease-entrance` - hard deceleration - content arriving, a figure rolling. Default: `cubic-bezier(0.22, 1, 0.36, 1)`. */
116
118
  entrance?: string | number;
117
- /** `--ease-exit`. Default: `cubic-bezier(0.4, 0, 1, 1)`. */
119
+ /** `--ease-exit` - soft both ends - content leaving, a fade away. Default: `cubic-bezier(0.3, 0, 0.3, 1)`. */
118
120
  exit?: string | number;
119
- /** `--ease-spring`. Default: `cubic-bezier(0.34, 1.4, 0.5, 1)`. */
121
+ /** `--ease-spring` - overshoots then settles - a pop-in, a confirmation. Default: `cubic-bezier(0.3, 1.5, 0.5, 1)`. */
120
122
  spring?: string | number;
121
- /** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.32, 0.55, 0, 1 )`. */
123
+ /** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.22, 1, 0.36, 1 )`. */
122
124
  glide?: string | number;
125
+ /** `--ease-move` - gathers then lands - travel across space: a fold, a FLIP, a flight. Default: `cubic-bezier( 0.55, 0, 0.15, 1 )`. */
126
+ move?: string | number;
123
127
  }
124
128
  /** How far a surface travels on the way in or out. */
125
129
  export interface MotionDistanceTokens {
@@ -525,12 +529,16 @@ export interface TokenProperties {
525
529
  '--space-10'?: string | number;
526
530
  /** `--measure-prose`. Default: `38rem`. */
527
531
  '--measure-prose'?: string | number;
528
- /** `--control-height-sm`. Default: `1.85rem`. */
532
+ /** `--control-height-xs` - 28px - the dense step for toolbars; a control opts in to it. Default: `1.75rem`. */
533
+ '--control-height-xs'?: string | number;
534
+ /** `--control-height-sm` - 32px. Default: `2rem`. */
529
535
  '--control-height-sm'?: string | number;
530
- /** `--control-height`. Default: `2.25rem`. */
536
+ /** `--control-height` - 36px. Default: `2.25rem`. */
531
537
  '--control-height'?: string | number;
532
- /** `--control-height-lg`. Default: `2.5rem`. */
538
+ /** `--control-height-lg` - 40px. Default: `2.5rem`. */
533
539
  '--control-height-lg'?: string | number;
540
+ /** `--control-height-xl` - 44px - the touch-target step; a control opts in to it. Default: `2.75rem`. */
541
+ '--control-height-xl'?: string | number;
534
542
  /** `--control-box`. Default: `1.125rem`. */
535
543
  '--control-box'?: string | number;
536
544
  /** `--control-switch` - the switch track - the one control size off the scale. Default: `1.25rem`. */
@@ -609,30 +617,34 @@ export interface TokenProperties {
609
617
  '--glow-accent'?: string | number;
610
618
  /** `--glow-danger`. Default: `0 4px 16px oklch(from var(--danger) 0.602 0.196 h / calc(0.4 * var(--glow-strength)))`. Re-derived on every theme root. */
611
619
  '--glow-danger'?: string | number;
612
- /** `--duration-fast` - micro feedback - hover washes, presses, control tint. Default: `140ms`. Collapses to `1ms` under reduced motion. */
620
+ /** `--duration-fast` - micro feedback - hover washes, presses, control tint, an exit. Default: `140ms`. Collapses to `1ms` under reduced motion. */
613
621
  '--duration-fast'?: string | number;
614
- /** `--duration-base` - standard element transitions - fades, toggles, badge morphs. Default: `200ms`. Collapses to `1ms` under reduced motion. */
622
+ /** `--duration-base` - standard element transitions - fades, toggles, a pill gliding between rows. Default: `240ms`. Collapses to `1ms` under reduced motion. */
615
623
  '--duration-base'?: string | number;
616
- /** `--duration-slow` - layout-scale movement - Collapse, panel resizes, reordering. Default: `300ms`. Collapses to `1ms` under reduced motion. */
624
+ /** `--duration-moderate` - small layout movement - a fold opening, a reorder, a FLIP to a new place. Default: `320ms`. Collapses to `1ms` under reduced motion. */
625
+ '--duration-moderate'?: string | number;
626
+ /** `--duration-slow` - layout-scale movement - Collapse, panel resizes, a larger block arriving. Default: `420ms`. Collapses to `1ms` under reduced motion. */
617
627
  '--duration-slow'?: string | number;
618
- /** `--duration-slower` - large-surface movement - dialog, sheet, page-scale reveals. Default: `450ms`. Collapses to `1ms` under reduced motion. */
628
+ /** `--duration-slower` - large-surface movement - dialog, sheet, an element flying across the page. Default: `600ms`. Collapses to `1ms` under reduced motion. */
619
629
  '--duration-slower'?: string | number;
620
- /** `--duration-slowest` - hero-scale movement - card expansion, container transforms. Default: `900ms`. Collapses to `1ms` under reduced motion. */
630
+ /** `--duration-slowest` - hero-scale movement - container morphs, slow cross-fades of a whole view. Default: `800ms`. Collapses to `1ms` under reduced motion. */
621
631
  '--duration-slowest'?: string | number;
622
632
  /** `--duration-spin` - continuous loaders only, outside the UI-transition scale. Default: `1000ms`. Collapses to `2000ms` under reduced motion. */
623
633
  '--duration-spin'?: string | number;
624
634
  /** `--duration-pulse` - ambient breathing, not collapsed under reduced motion. Default: `1600ms`. */
625
635
  '--duration-pulse'?: string | number;
626
- /** `--ease-standard`. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
636
+ /** `--ease-standard` - brisk start, soft landing - state changes and the press. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
627
637
  '--ease-standard'?: string | number;
628
- /** `--ease-entrance`. Default: `cubic-bezier(0.25, 1, 0.4, 1)`. */
638
+ /** `--ease-entrance` - hard deceleration - content arriving, a figure rolling. Default: `cubic-bezier(0.22, 1, 0.36, 1)`. */
629
639
  '--ease-entrance'?: string | number;
630
- /** `--ease-exit`. Default: `cubic-bezier(0.4, 0, 1, 1)`. */
640
+ /** `--ease-exit` - soft both ends - content leaving, a fade away. Default: `cubic-bezier(0.3, 0, 0.3, 1)`. */
631
641
  '--ease-exit'?: string | number;
632
- /** `--ease-spring`. Default: `cubic-bezier(0.34, 1.4, 0.5, 1)`. */
642
+ /** `--ease-spring` - overshoots then settles - a pop-in, a confirmation. Default: `cubic-bezier(0.3, 1.5, 0.5, 1)`. */
633
643
  '--ease-spring'?: string | number;
634
- /** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.32, 0.55, 0, 1 )`. */
644
+ /** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.22, 1, 0.36, 1 )`. */
635
645
  '--ease-glide'?: string | number;
646
+ /** `--ease-move` - gathers then lands - travel across space: a fold, a FLIP, a flight. Default: `cubic-bezier( 0.55, 0, 0.15, 1 )`. */
647
+ '--ease-move'?: string | number;
636
648
  /** `--distance-sm` - 8px - settling into place. Default: `0.5rem`. */
637
649
  '--distance-sm'?: string | number;
638
650
  /** `--distance-md` - 16px - arriving from an adjacent position - page turns, tab panels, paged ranges. Default: `1rem`. */
@@ -715,15 +727,15 @@ export interface TokenProperties {
715
727
  '--accent-hover'?: string | number;
716
728
  /** `--accent-active`. Default: `oklch(from var(--accent) calc(l - 0.152) calc(c - 0.018) h)`. Re-derived on every theme root. */
717
729
  '--accent-active'?: string | number;
718
- /** `--accent-subtle`. Default: `oklch(from var(--accent) 0.972 0.02 h)`. Dark: `oklch(from var(--accent) 0.27 0.045 h)`. Re-derived on every theme root. */
730
+ /** `--accent-subtle`. Default: `oklch(from var(--accent) 0.972 min(c, 0.02) h)`. Dark: `oklch(from var(--accent) 0.27 min(c, 0.045) h)`. Re-derived on every theme root. */
719
731
  '--accent-subtle'?: string | number;
720
- /** `--accent-border`. Default: `oklch(from var(--accent) 0.88 0.066 h)`. Dark: `oklch(from var(--accent) 0.45 0.09 h)`. Re-derived on every theme root. */
732
+ /** `--accent-border`. Default: `oklch(from var(--accent) 0.88 min(c, 0.066) h)`. Dark: `oklch(from var(--accent) 0.45 min(c, 0.09) h)`. Re-derived on every theme root. */
721
733
  '--accent-border'?: string | number;
722
- /** `--accent-disabled`. Default: `oklch(from var(--accent) 0.795 0.092 h)`. Dark: `oklch(from var(--accent) 0.42 0.06 h)`. Re-derived on every theme root. */
734
+ /** `--accent-disabled`. Default: `oklch(from var(--accent) 0.795 min(c, 0.092) h)`. Dark: `oklch(from var(--accent) 0.42 min(c, 0.06) h)`. Re-derived on every theme root. */
723
735
  '--accent-disabled'?: string | number;
724
736
  /** `--accent-wash`. Default: `oklch(from var(--accent) l c h / 0.08)`. Dark: `oklch(from var(--accent) l c h / 0.14)`. Re-derived on every theme root. */
725
737
  '--accent-wash'?: string | number;
726
- /** `--text-accent`. Default: `var(--accent-active)`. Dark: `oklch(from var(--accent) calc(l + 0.14) calc(c - 0.012) h)`. Re-derived on every theme root. */
738
+ /** `--text-accent`. Default: `oklch(from var(--accent) calc(l - 0.17) calc(c - 0.018) h)`. Dark: `oklch(from var(--accent) calc(l + 0.14) calc(c - 0.012) h)`. Re-derived on every theme root. */
727
739
  '--text-accent'?: string | number;
728
740
  /** `--text-on-accent` - The ink on a hue fill - the ramp's lightest rung in either polarity. Default: `var(--gray-0)`. Re-derived on every theme root. */
729
741
  '--text-on-accent'?: string | number;
@@ -733,11 +745,11 @@ export interface TokenProperties {
733
745
  '--neutral-wash-press'?: string | number;
734
746
  /** `--info` - The accent's hue one step down - repoint it for a hue of its own. Default: `var(--accent-hover)`. Re-derived on every theme root. */
735
747
  '--info'?: string | number;
736
- /** `--info-subtle`. Default: `oklch(from var(--info) 0.972 0.02 h)`. Dark: `oklch(from var(--info) 0.265 0.045 h)`. Re-derived on every theme root. */
748
+ /** `--info-subtle`. Default: `oklch(from var(--info) 0.972 min(c, 0.02) h)`. Dark: `oklch(from var(--info) 0.265 min(c, 0.045) h)`. Re-derived on every theme root. */
737
749
  '--info-subtle'?: string | number;
738
- /** `--info-text`. Default: `oklch(from var(--info) calc(l - 0.082) calc(c - 0.014) h)`. Dark: `oklch(from var(--info) calc(l + 0.22) calc(c - 0.014) h)`. Re-derived on every theme root. */
750
+ /** `--info-text`. Default: `oklch(from var(--info) calc(l - 0.1) calc(c - 0.014) h)`. Dark: `oklch(from var(--info) calc(l + 0.22) calc(c - 0.014) h)`. Re-derived on every theme root. */
739
751
  '--info-text'?: string | number;
740
- /** `--info-wash`. Default: `oklch(from var(--info) 0.63 0.118 h / 0.08)`. Dark: `oklch(from var(--info) 0.63 0.118 h / 0.14)`. Re-derived on every theme root. */
752
+ /** `--info-wash`. Default: `oklch(from var(--info) 0.63 min(c, 0.118) h / 0.08)`. Dark: `oklch(from var(--info) 0.63 min(c, 0.118) h / 0.14)`. Re-derived on every theme root. */
741
753
  '--info-wash'?: string | number;
742
754
  /** `--success-subtle`. Default: `oklch(from var(--success) 0.965 0.028 h)`. Dark: `oklch(from var(--success) 0.265 0.05 h)`. Re-derived on every theme root. */
743
755
  '--success-subtle'?: string | number;
@@ -747,7 +759,7 @@ export interface TokenProperties {
747
759
  '--success-wash'?: string | number;
748
760
  /** `--warning-subtle`. Default: `oklch(from var(--warning) 0.972 0.034 h)`. Dark: `oklch(from var(--warning) 0.27 0.05 h)`. Re-derived on every theme root. */
749
761
  '--warning-subtle'?: string | number;
750
- /** `--warning-text`. Default: `oklch(from var(--warning) calc(l - 0.14) calc(c - 0.024) h)`. Dark: `oklch(from var(--warning) calc(l + 0.13) calc(c - 0.02) h)`. Re-derived on every theme root. */
762
+ /** `--warning-text`. Default: `oklch(from var(--warning) calc(l - 0.16) calc(c - 0.024) h)`. Dark: `oklch(from var(--warning) calc(l + 0.13) calc(c - 0.02) h)`. Re-derived on every theme root. */
751
763
  '--warning-text'?: string | number;
752
764
  /** `--warning-wash`. Default: `oklch(from var(--warning) 0.76 0.14 h / 0.12)`. Dark: `oklch(from var(--warning) 0.76 0.14 h / 0.18)`. Re-derived on every theme root. */
753
765
  '--warning-wash'?: string | number;
@@ -3,7 +3,7 @@ import { type PolarityPreference } from './theme-store';
3
3
  import { type ThemeSet, type ThemeTokens } from './theme-tokens.generated';
4
4
  export type * from './theme-tokens.generated';
5
5
  export type { ThemeTransitionEffect, ThemeTransitionOptions, ThemeTransitionSetting, } from '../components/expressive/theme-transition/theme-transition';
6
- export type { Polarity, PolarityPreference, ThemeControls, ThemeState } from './theme-store';
6
+ export type { Polarity, PolarityPreference, ThemeControls, ThemePreferenceOptions, ThemeState } from './theme-store';
7
7
  export { useTheme } from './theme-sync';
8
8
  export interface ZyncatThemeProps {
9
9
  /**
@@ -1,6 +1,6 @@
1
- 'use client';import { loop } from './chunk-SPFHWHJ6.js';
1
+ 'use client';import { loop } from './chunk-TFC5SCAB.js';
2
2
  import './chunk-VNVVG47J.js';
3
- import './chunk-6H3IJ752.js';
3
+ import './chunk-WJEZWKEY.js';
4
4
  import { cx } from './chunk-QGNC7LH5.js';
5
5
  import './typing-lines.css';
6
6
  import { useRef, useEffect } from 'react';
package/dist/youtube.js CHANGED
@@ -1,7 +1,7 @@
1
- 'use client';import { startDrag } from './chunk-SPFHWHJ6.js';
1
+ 'use client';import { useControllable } from './chunk-MMRIQNEN.js';
2
+ import { startDrag } from './chunk-TFC5SCAB.js';
2
3
  import './chunk-VNVVG47J.js';
3
- import './chunk-6H3IJ752.js';
4
- import { useControllable } from './chunk-MMRIQNEN.js';
4
+ import './chunk-WJEZWKEY.js';
5
5
  import { cx } from './chunk-QGNC7LH5.js';
6
6
  import './youtube.css';
7
7
  import { useRef, useEffect } from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyncat/ui",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "A React 19 design system: accessible, animated UI components built on a small, closed CSS design-token vocabulary. No Tailwind, no CSS-in-JS.",
5
5
  "keywords": [
6
6
  "react",
@@ -307,6 +307,16 @@
307
307
  "types": "./dist/types/motion/motion.d.ts",
308
308
  "import": "./dist/motion.js"
309
309
  },
310
+ "./scroll-area": {
311
+ "source": "./src/components/composites/scroll-area/ScrollArea.tsx",
312
+ "types": "./dist/types/components/composites/scroll-area/ScrollArea.d.ts",
313
+ "import": "./dist/scroll-area.js"
314
+ },
315
+ "./combobox": {
316
+ "source": "./src/components/composites/combobox/Combobox.tsx",
317
+ "types": "./dist/types/components/composites/combobox/Combobox.d.ts",
318
+ "import": "./dist/combobox.js"
319
+ },
310
320
  "./styles.css": "./src/styles.css",
311
321
  "./tailwind.css": "./tailwind.css",
312
322
  "./next": {
@@ -12,11 +12,11 @@ No Tailwind, no CSS-in-JS, no animation library - a built-in WAAPI motion engine
12
12
 
13
13
  1. **Never write a component's props from memory or from this skill.** Before writing any JSX that
14
14
  renders a Zyncat UI component, call the `get_component` MCP tool with EVERY component the change
15
- touches, in one call: `get_component(["select", "text-field", "dialog"])`. It returns the
16
- maintainers' usage notes, the live docs URL and the complete prop types for the version actually
17
- installed. An unknown name returns the full catalog, so a wrong guess self-corrects.
18
- 2. Unsure which component owns a behavior? `search_api("drag dismiss")` - ranked, and a miss
19
- returns the catalog.
15
+ touches, in one call: `get_component({ components: ["select", "text-field", "dialog"] })`. It
16
+ returns the maintainers' usage notes, the live docs URL and the complete prop types for the version
17
+ actually installed. An unknown name returns the nearest components, so a wrong guess self-corrects.
18
+ 2. Unsure which component owns a behavior? `search_api("drag dismiss")` - ranked; `search_api("*")`
19
+ lists the whole catalog.
20
20
  3. Styling or theming? Read [references/theming.md](references/theming.md) first, then `get_tokens`
21
21
  for the real values.
22
22
  4. Full component inventory: [references/components.md](references/components.md) - generated, and
@@ -71,7 +71,7 @@ overlays & feedback, expressive, compound, replicas, dev tools. The full index i
71
71
 
72
72
  - Sentence case everywhere; no emoji or exclamation marks in UI copy.
73
73
  - Exactly one primary `<Button>` per view.
74
- - Numbers, times, IDs and status read mono + tabular.
74
+ - Numbers, times, IDs and status read in the body face with tabular figures; the code face is for code only.
75
75
  - Status hues (info/success/warning/danger) only for genuine status; hierarchy comes from the
76
76
  neutral ramp.
77
77
 
@@ -1,6 +1,6 @@
1
1
  # @zyncat/ui component index
2
2
 
3
- Generated from @zyncat/ui v0.21.0 by `pnpm sync skill` - do not edit by hand.
3
+ Generated from @zyncat/ui v0.22.0 by `pnpm sync skill` - do not edit by hand.
4
4
  If node_modules/@zyncat/ui/package.json shows a DIFFERENT version, this index is stale:
5
5
  trust the get_component MCP tool and re-run `npx zyncat-ui init` to refresh the skill.
6
6
 
@@ -26,6 +26,7 @@ Toggle - @zyncat/ui/toggle - Actuates a setting on the spot - pick Checkbox when
26
26
  RadioGroup - @zyncat/ui/radio-group - Pick exactly one from options that stay visible - rows or cards; pick Select for long lists.
27
27
  Select - @zyncat/ui/select - Single-select listbox in a popover, searchable; holds value: string | null.
28
28
  MultiSelect - @zyncat/ui/multi-select - Many-of listbox; stays open while toggling, trigger summarises as first +N.
29
+ Combobox - @zyncat/ui/combobox - Autocomplete for a text field you own - @mentions, slash commands, or the whole value. A pick only writes text: unlike Select, the value is whatever the field holds.
29
30
 
30
31
  == Data display ==
31
32
  Avatar - @zyncat/ui/avatar - Identity mark: image, initials, or silhouette.
@@ -34,6 +35,7 @@ Tag / TagGroup - @zyncat/ui/tag - User-owned label (a control, not a status).
34
35
  ToggleTag - @zyncat/ui/toggle-tag - Many-of-many filter chip.
35
36
  Table - @zyncat/ui/table - Declare columns + rows; owns sort, selection, stickiness, overflow.
36
37
  Pagination - @zyncat/ui/pagination - Cursor strip: mono range readout + prev/next pair.
38
+ ScrollArea - @zyncat/ui/scroll-area - One-axis scroller with no scrollbar: an edge fades only while content hides past it, and an x rail pages from its edges - keep overflow: auto for a visible bar or two axes.
37
39
 
38
40
  == Date, time & tabs ==
39
41
  The date and time fields share: value is a string, onChange(value | null), timezone, min/max, disabled.
@@ -84,4 +86,4 @@ MotionDevtools - @zyncat/ui/motion-devtools - Dev-only floating panel that slows
84
86
  Theme - @zyncat/ui/theme - Typed theming and the theme state: defineTheme shapes a theme, ZyncatTheme emits the CSS and the pre-paint boot script, useTheme reads and sets the choice.
85
87
 
86
88
  == Types-only modules (documented by their .d.ts alone) ==
87
- @zyncat/ui/next - get_component("next")
89
+ @zyncat/ui/next - get_component({ components: "next" })
@@ -157,7 +157,7 @@ import { Dropdown } from '@zyncat/ui/dropdown';
157
157
  <Dropdown
158
158
  ariaLabel="Row actions"
159
159
  trigger={
160
- <Button size="icon" variant="ghost" aria-label="Actions">
160
+ <Button size="sm" iconOnly variant="ghost" aria-label="Actions">
161
161
  …
162
162
  </Button>
163
163
  }
@@ -0,0 +1,100 @@
1
+ 'use client';
2
+
3
+ import '../select/select.css';
4
+ import './combobox.css';
5
+
6
+ import type { ReactNode } from 'react';
7
+
8
+ import type { DisableableAnimation } from '../../../motion/timing';
9
+ import type { MenuSize, MenuWeight, MenuWidth } from '../../internal/menu/highlight';
10
+ import type { ActivateOn } from '../../internal/utils/activation';
11
+ import { ListboxPanel, type SelectGroup, type SelectMenuHtmlProps, type SelectOption } from '../select/core';
12
+ import { optionText } from '../select/core/types';
13
+ import { useCombobox } from './use-combobox';
14
+
15
+ export type { SelectOption, SelectGroup } from '../select/core';
16
+
17
+ export interface ComboboxProps {
18
+ /** The field the list completes: one `input` or `textarea`, or a component rendering one, such as `TextField`
19
+ * or `Textarea`. Focus stays in it - the arrow keys walk the list and Enter picks. */
20
+ children: ReactNode;
21
+ /** The suggestions - a flat `SelectOption[]`, or `SelectGroup[]` for labeled sections - filtered by the query. */
22
+ options: SelectOption[] | SelectGroup[];
23
+ /** Characters that start a query mid-text, such as `@` for mentions. The list opens when they are typed at the
24
+ * start of a word, filters on the text up to the caret, and a pick replaces that text. Without a trigger the
25
+ * whole value is the query. */
26
+ trigger?: string;
27
+ /** The text a pick writes over the query, trigger included. The edit goes through the browser, so undo
28
+ * restores the query and the field's own `onChange` fires. @default the trigger, the option's text and a
29
+ * space; the option's text alone without a `trigger` */
30
+ insert?: (option: SelectOption) => string;
31
+ /** Fires after a pick has written its text into the field - gets the option's `value` and the full option. */
32
+ onSelect?: (value: string, option: SelectOption) => void;
33
+ /** Where the list hangs: `caret` from the start of the query, `field` under the whole field.
34
+ * @default 'caret' with a `trigger`, else 'field' */
35
+ anchor?: 'caret' | 'field';
36
+ /** List width. `trigger` is never narrower than the field, `auto` fits the options, and `sm` | `md` | `lg` are
37
+ * fixed steps with long labels ellipsizing. @default 'trigger' under the field, 'auto' at the caret */
38
+ width?: MenuWidth;
39
+ /** List density - row type and padding. A row carrying a description sits one step taller. @default 'md' */
40
+ size?: MenuSize;
41
+ /** Weight of every option label. @default 'medium' */
42
+ weight?: MenuWeight;
43
+ /** Hue of the highlight that travels between options: the neutral wash, or the accent wash with accent ink on
44
+ * the active option. @default 'neutral' */
45
+ highlight?: 'neutral' | 'accent';
46
+ /** Short accent bar on the leading edge of the highlight, marking the active option. @default false */
47
+ rail?: boolean;
48
+ /** Base id for the list and option ids; auto-generated if omitted. */
49
+ id?: string;
50
+ /** Accessible name for the list. */
51
+ ariaLabel?: string;
52
+ /** Standard attributes (className, style, data-*, ...) forwarded to the list panel, which portals to <body>. */
53
+ menuProps?: SelectMenuHtmlProps;
54
+ /** Whether an option picks on `pointerdown` (snappier) or waits for `click`. @default 'pointerdown' */
55
+ activateOn?: ActivateOn;
56
+ /** List open/close timing - motion tokens only, or `null` to disable. @default duration 'base' + ease 'entrance'/'exit' */
57
+ animation?: DisableableAnimation;
58
+ }
59
+
60
+ export function Combobox({
61
+ children,
62
+ options = [],
63
+ trigger,
64
+ insert = (option) => (trigger ? trigger + optionText(option) + ' ' : optionText(option)),
65
+ onSelect,
66
+ anchor = trigger ? 'caret' : 'field',
67
+ width = anchor === 'field' ? 'trigger' : 'auto',
68
+ size = 'md',
69
+ weight = 'medium',
70
+ highlight = 'neutral',
71
+ rail = false,
72
+ id,
73
+ ariaLabel,
74
+ menuProps,
75
+ activateOn = 'pointerdown',
76
+ animation,
77
+ }: ComboboxProps) {
78
+ const { lb, caretAnchor, wrapProps } = useCombobox({ options, trigger, insert, onSelect, id });
79
+
80
+ return (
81
+ <div {...wrapProps} className="zc-combobox">
82
+ {children}
83
+ <ListboxPanel
84
+ lb={lb}
85
+ anchor={anchor === 'caret' ? caretAnchor : null}
86
+ loading={false}
87
+ searchable={false}
88
+ ariaLabel={ariaLabel}
89
+ highlight={highlight}
90
+ rail={rail}
91
+ size={size}
92
+ weight={weight}
93
+ width={width}
94
+ activateOn={activateOn}
95
+ animation={animation}
96
+ menuProps={menuProps}
97
+ />
98
+ </div>
99
+ );
100
+ }