@zyncat/ui 0.20.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 (506) hide show
  1. package/dist/alert.js +11 -10
  2. package/dist/alert.js.map +1 -1
  3. package/dist/avatar.css +1 -1
  4. package/dist/badge.css +20 -11
  5. package/dist/badge.js +4 -1
  6. package/dist/{bloom-HV23M4AW.js → bloom-5MZXLNKG.js} +23 -5
  7. package/dist/bloom-5MZXLNKG.js.map +1 -0
  8. package/dist/button.css +24 -27
  9. package/dist/button.js +3 -3
  10. package/dist/checkbox.css +0 -1
  11. package/dist/chunk-2EPNCOLN.js +177 -0
  12. package/dist/chunk-2EPNCOLN.js.map +1 -0
  13. package/dist/{chunk-LNAV5E7S.js → chunk-2GYZ3HP3.js} +8 -4
  14. package/dist/chunk-2GYZ3HP3.js.map +1 -0
  15. package/dist/chunk-4M5FMCFJ.js +16 -0
  16. package/dist/chunk-4M5FMCFJ.js.map +1 -0
  17. package/dist/{chunk-ODRO3KS6.js → chunk-7GTACTZD.js} +8 -6
  18. package/dist/chunk-7GTACTZD.js.map +1 -0
  19. package/dist/{chunk-V6QAAOA5.js → chunk-AK2AXGEC.js} +38 -8
  20. package/dist/chunk-AK2AXGEC.js.map +1 -0
  21. package/dist/{chunk-5VC3TUZ2.js → chunk-BA4ALXQW.js} +2 -2
  22. package/dist/{chunk-5VC3TUZ2.js.map → chunk-BA4ALXQW.js.map} +1 -1
  23. package/dist/{chunk-N43NDSME.js → chunk-CF6ZFXRV.js} +19 -11
  24. package/dist/chunk-CF6ZFXRV.js.map +1 -0
  25. package/dist/{chunk-BRKGYLEQ.js → chunk-DOAR4PJ3.js} +9 -4
  26. package/dist/chunk-DOAR4PJ3.js.map +1 -0
  27. package/dist/{tide-DJZMDAFT.js → chunk-DVLKB3CZ.js} +15 -12
  28. package/dist/chunk-DVLKB3CZ.js.map +1 -0
  29. package/dist/chunk-EUAXI6OF.js +16 -0
  30. package/dist/chunk-EUAXI6OF.js.map +1 -0
  31. package/dist/{chunk-RLNCRDAL.js → chunk-G2TOUG2A.js} +7 -6
  32. package/dist/chunk-G2TOUG2A.js.map +1 -0
  33. package/dist/{chunk-VQFILXQN.js → chunk-HRP4UFWN.js} +70 -8
  34. package/dist/chunk-HRP4UFWN.js.map +1 -0
  35. package/dist/chunk-INK2GJTA.js +102 -0
  36. package/dist/chunk-INK2GJTA.js.map +1 -0
  37. package/dist/chunk-ITW5UCVU.js +24 -0
  38. package/dist/chunk-ITW5UCVU.js.map +1 -0
  39. package/dist/{chunk-F64Z42PJ.js → chunk-JJHEVW4M.js} +5 -6
  40. package/dist/chunk-JJHEVW4M.js.map +1 -0
  41. package/dist/{chunk-7NHY2CRA.js → chunk-JUC35N3C.js} +2 -2
  42. package/dist/chunk-JUC35N3C.js.map +1 -0
  43. package/dist/{chunk-PXQBJMPJ.js → chunk-LFJ4C7ZP.js} +7 -7
  44. package/dist/chunk-LFJ4C7ZP.js.map +1 -0
  45. package/dist/{chunk-TDHLZY6I.js → chunk-MCOIR3CK.js} +77 -18
  46. package/dist/chunk-MCOIR3CK.js.map +1 -0
  47. package/dist/chunk-NATK4DDW.js +108 -0
  48. package/dist/chunk-NATK4DDW.js.map +1 -0
  49. package/dist/{chunk-BIDVNLJO.js → chunk-O3RMSMBP.js} +8 -3
  50. package/dist/{chunk-BIDVNLJO.js.map → chunk-O3RMSMBP.js.map} +1 -1
  51. package/dist/{chunk-UKPX3RIP.js → chunk-ODO2TCTS.js} +27 -13
  52. package/dist/chunk-ODO2TCTS.js.map +1 -0
  53. package/dist/{chunk-M2KGLH2G.js → chunk-P3QSWNED.js} +11 -11
  54. package/dist/{chunk-M2KGLH2G.js.map → chunk-P3QSWNED.js.map} +1 -1
  55. package/dist/{chunk-QDAN43B6.js → chunk-Q4K337QY.js} +6 -6
  56. package/dist/chunk-Q4K337QY.js.map +1 -0
  57. package/dist/{chunk-2YGHPQ66.js → chunk-Q5N24VII.js} +2 -2
  58. package/dist/{chunk-2YGHPQ66.js.map → chunk-Q5N24VII.js.map} +1 -1
  59. package/dist/{chunk-VJXP256V.js → chunk-RLRZJAF7.js} +20 -8
  60. package/dist/chunk-RLRZJAF7.js.map +1 -0
  61. package/dist/{chunk-VZXML7EH.js → chunk-SY5UA6WS.js} +39 -10
  62. package/dist/chunk-SY5UA6WS.js.map +1 -0
  63. package/dist/{chunk-XKDR22VE.js → chunk-TFC5SCAB.js} +37 -14
  64. package/dist/chunk-TFC5SCAB.js.map +1 -0
  65. package/dist/{chunk-HBWRKEW4.js → chunk-VBALIMST.js} +3 -3
  66. package/dist/{chunk-HBWRKEW4.js.map → chunk-VBALIMST.js.map} +1 -1
  67. package/dist/{chunk-JINATP4N.js → chunk-VXQ7A6ZI.js} +8 -9
  68. package/dist/chunk-VXQ7A6ZI.js.map +1 -0
  69. package/dist/{chunk-TBLPZQSI.js → chunk-W7CHDHRV.js} +114 -42
  70. package/dist/chunk-W7CHDHRV.js.map +1 -0
  71. package/dist/{chunk-AIAPXRCI.js → chunk-WBWVOOKM.js} +201 -123
  72. package/dist/chunk-WBWVOOKM.js.map +1 -0
  73. package/dist/{chunk-6H3IJ752.js → chunk-WJEZWKEY.js} +20 -10
  74. package/dist/chunk-WJEZWKEY.js.map +1 -0
  75. package/dist/{chunk-TRPAKUIB.js → chunk-WMTOAYGP.js} +9 -9
  76. package/dist/{chunk-TRPAKUIB.js.map → chunk-WMTOAYGP.js.map} +1 -1
  77. package/dist/{chunk-C3D32LE3.js → chunk-WTHIUPVJ.js} +3 -3
  78. package/dist/{chunk-C3D32LE3.js.map → chunk-WTHIUPVJ.js.map} +1 -1
  79. package/dist/{chunk-F2TB3TT6.js → chunk-XCTMTOGT.js} +5 -5
  80. package/dist/{chunk-F2TB3TT6.js.map → chunk-XCTMTOGT.js.map} +1 -1
  81. package/dist/chunk-XMJ343KF.js +18 -0
  82. package/dist/chunk-XMJ343KF.js.map +1 -0
  83. package/dist/collapse.js +1 -1
  84. package/dist/combobox.css +7 -0
  85. package/dist/combobox.js +183 -0
  86. package/dist/combobox.js.map +1 -0
  87. package/dist/confetti.js +2 -2
  88. package/dist/crossfade-UHUQBUVG.js +133 -0
  89. package/dist/crossfade-UHUQBUVG.js.map +1 -0
  90. package/dist/date-field.js +27 -22
  91. package/dist/date-field.js.map +1 -1
  92. package/dist/date-picker.css +25 -41
  93. package/dist/date-range-field.js +463 -279
  94. package/dist/date-range-field.js.map +1 -1
  95. package/dist/datetime-field.js +28 -23
  96. package/dist/datetime-field.js.map +1 -1
  97. package/dist/dialog-sheet.css +31 -0
  98. package/dist/dialog.css +3 -0
  99. package/dist/dialog.js +44 -42
  100. package/dist/dialog.js.map +1 -1
  101. package/dist/dropdown.css +14 -11
  102. package/dist/dropdown.js +79 -37
  103. package/dist/dropdown.js.map +1 -1
  104. package/dist/emoji-picker.js +22 -21
  105. package/dist/emoji-picker.js.map +1 -1
  106. package/dist/flow-field.js +2 -2
  107. package/dist/glide.js +3 -3
  108. package/dist/input.css +54 -34
  109. package/dist/instagram-feed.js +3 -3
  110. package/dist/lens.js +184 -160
  111. package/dist/lens.js.map +1 -1
  112. package/dist/mcp.js +29 -22
  113. package/dist/menu-surface.css +81 -7
  114. package/dist/modal.js +11 -10
  115. package/dist/modal.js.map +1 -1
  116. package/dist/morphing-text.js +2 -2
  117. package/dist/motion-devtools.css +6 -5
  118. package/dist/motion-devtools.js +6 -6
  119. package/dist/motion-tokens.js +1 -1
  120. package/dist/motion.js +10 -0
  121. package/dist/motion.js.map +1 -0
  122. package/dist/multi-select.js +63 -24
  123. package/dist/multi-select.js.map +1 -1
  124. package/dist/number-field.js +122 -75
  125. package/dist/number-field.js.map +1 -1
  126. package/dist/odometer.css +27 -16
  127. package/dist/odometer.js +225 -73
  128. package/dist/odometer.js.map +1 -1
  129. package/dist/otp-field.js +49 -12
  130. package/dist/otp-field.js.map +1 -1
  131. package/dist/overlay.css +1 -0
  132. package/dist/pagination.css +1 -1
  133. package/dist/pagination.js +6 -6
  134. package/dist/{paint-CJQCM6ZO.js → paint-NLTI6TEF.js} +5 -3
  135. package/dist/paint-NLTI6TEF.js.map +1 -0
  136. package/dist/popover.js +12 -11
  137. package/dist/radio-group.css +9 -6
  138. package/dist/radio-group.js +9 -8
  139. package/dist/radio-group.js.map +1 -1
  140. package/dist/range-sheet-days.css +35 -0
  141. package/dist/range-sheet.css +80 -0
  142. package/dist/range-summary.css +67 -0
  143. package/dist/scroll-area.css +150 -0
  144. package/dist/scroll-area.js +85 -0
  145. package/dist/scroll-area.js.map +1 -0
  146. package/dist/select.css +55 -7
  147. package/dist/select.js +29 -15
  148. package/dist/select.js.map +1 -1
  149. package/dist/sheet.js +12 -11
  150. package/dist/support-rail.css +2 -2
  151. package/dist/support-rail.js +17 -15
  152. package/dist/support-rail.js.map +1 -1
  153. package/dist/table-detail.css +27 -0
  154. package/dist/table.css +41 -14
  155. package/dist/table.js +341 -172
  156. package/dist/table.js.map +1 -1
  157. package/dist/tabs.css +32 -13
  158. package/dist/tabs.js +69 -55
  159. package/dist/tabs.js.map +1 -1
  160. package/dist/tag.css +2 -4
  161. package/dist/tag.js +8 -7
  162. package/dist/tag.js.map +1 -1
  163. package/dist/text-field.js +4 -4
  164. package/dist/textarea.css +26 -41
  165. package/dist/textarea.js +43 -32
  166. package/dist/textarea.js.map +1 -1
  167. package/dist/theme-grid.js +8 -7
  168. package/dist/theme-switcher.js +19 -18
  169. package/dist/theme-switcher.js.map +1 -1
  170. package/dist/{theme-transition-VGLPZDJI.js → theme-transition-F3CBENM5.js} +29 -9
  171. package/dist/theme-transition-F3CBENM5.js.map +1 -0
  172. package/dist/theme-transition.css +49 -0
  173. package/dist/theme.js +5 -4
  174. package/dist/theme.js.map +1 -1
  175. package/dist/tide-AGGMQEJV.js +4 -0
  176. package/dist/tide-AGGMQEJV.js.map +1 -0
  177. package/dist/tiktok.js +3 -3
  178. package/dist/time-field.js +15 -8
  179. package/dist/time-field.js.map +1 -1
  180. package/dist/toast.css +1 -1
  181. package/dist/toast.js +11 -10
  182. package/dist/toast.js.map +1 -1
  183. package/dist/toggle-tag.js +2 -2
  184. package/dist/toggle-tag.js.map +1 -1
  185. package/dist/toggle.css +0 -1
  186. package/dist/toggle.js +4 -15
  187. package/dist/toggle.js.map +1 -1
  188. package/dist/tooltip.css +1 -1
  189. package/dist/tooltip.js +22 -17
  190. package/dist/tooltip.js.map +1 -1
  191. package/dist/trigger.css +0 -1
  192. package/dist/types/components/composites/combobox/Combobox.d.ts +51 -0
  193. package/dist/types/components/composites/combobox/caret.d.ts +8 -0
  194. package/dist/types/components/composites/combobox/use-combobox.d.ts +52 -0
  195. package/dist/types/components/composites/date-picker/DateField.d.ts +1 -1
  196. package/dist/types/components/composites/date-picker/DateRangeField.d.ts +6 -3
  197. package/dist/types/components/composites/date-picker/DateTimeField.d.ts +1 -1
  198. package/dist/types/components/composites/date-picker/TimeField.d.ts +1 -1
  199. package/dist/types/components/composites/date-picker/date-utils.d.ts +2 -0
  200. package/dist/types/components/composites/date-picker/field-shell.d.ts +8 -1
  201. package/dist/types/components/composites/date-picker/month-swipe.d.ts +3 -0
  202. package/dist/types/components/composites/date-picker/range-day.d.ts +11 -0
  203. package/dist/types/components/composites/date-picker/range-month.d.ts +14 -0
  204. package/dist/types/components/composites/date-picker/range-panel.d.ts +4 -18
  205. package/dist/types/components/composites/date-picker/range-presets.d.ts +24 -0
  206. package/dist/types/components/composites/date-picker/range-sheet.d.ts +12 -0
  207. package/dist/types/components/composites/date-picker/range-summary.d.ts +9 -0
  208. package/dist/types/components/composites/date-picker/typed-key.d.ts +3 -0
  209. package/dist/types/components/composites/date-picker/use-month-view.d.ts +14 -0
  210. package/dist/types/components/composites/date-picker/use-range-panel.d.ts +44 -0
  211. package/dist/types/components/composites/dialog/Dialog.d.ts +3 -2
  212. package/dist/types/components/composites/dialog/surface.d.ts +17 -0
  213. package/dist/types/components/composites/dropdown/Dropdown.d.ts +21 -4
  214. package/dist/types/components/composites/dropdown/types.d.ts +9 -3
  215. package/dist/types/components/composites/scroll-area/ScrollArea.d.ts +29 -0
  216. package/dist/types/components/composites/select/MultiSelect.d.ts +31 -5
  217. package/dist/types/components/composites/select/Select.d.ts +20 -4
  218. package/dist/types/components/composites/select/core/index.d.ts +2 -1
  219. package/dist/types/components/composites/select/core/menu.d.ts +10 -5
  220. package/dist/types/components/composites/select/core/panel.d.ts +7 -4
  221. package/dist/types/components/composites/select/core/trigger.d.ts +7 -2
  222. package/dist/types/components/composites/select/core/types.d.ts +9 -0
  223. package/dist/types/components/composites/select/core/use-listbox.d.ts +8 -6
  224. package/dist/types/components/composites/select/presets.d.ts +17 -0
  225. package/dist/types/components/composites/table/Table.d.ts +3 -74
  226. package/dist/types/components/composites/table/body.d.ts +15 -0
  227. package/dist/types/components/composites/table/detail.d.ts +24 -0
  228. package/dist/types/components/composites/table/head.d.ts +16 -0
  229. package/dist/types/components/composites/table/types.d.ts +86 -0
  230. package/dist/types/components/composites/table/use-scroller.d.ts +12 -0
  231. package/dist/types/components/composites/table/use-table-state.d.ts +16 -0
  232. package/dist/types/components/composites/tabs/Tabs.d.ts +4 -69
  233. package/dist/types/components/composites/tabs/tab-panel.d.ts +26 -0
  234. package/dist/types/components/composites/tabs/types.d.ts +48 -0
  235. package/dist/types/components/composites/tabs/use-ink.d.ts +5 -0
  236. package/dist/types/components/composites/tooltip/Tooltip.d.ts +1 -1
  237. package/dist/types/components/compound/support-rail/SupportRail.d.ts +1 -1
  238. package/dist/types/components/expressive/lens/Lens.d.ts +1 -1
  239. package/dist/types/components/expressive/lens/input.d.ts +2 -0
  240. package/dist/types/components/expressive/lens/optics.d.ts +37 -0
  241. package/dist/types/components/expressive/lens/paint.d.ts +2 -0
  242. package/dist/types/components/expressive/lens/use-lens.d.ts +10 -0
  243. package/dist/types/components/expressive/odometer/Odometer.d.ts +1 -1
  244. package/dist/types/components/expressive/odometer/roll.d.ts +18 -0
  245. package/dist/types/components/expressive/odometer/spring.d.ts +11 -0
  246. package/dist/types/components/expressive/theme-transition/scene.d.ts +3 -0
  247. package/dist/types/components/internal/hooks/use-hold-repeat.d.ts +8 -0
  248. package/dist/types/components/internal/icon/Icon.d.ts +2 -0
  249. package/dist/types/components/internal/menu/highlight.d.ts +9 -1
  250. package/dist/types/components/internal/menu/menu-row.d.ts +4 -0
  251. package/dist/types/components/internal/menu/use-anchor-width.d.ts +2 -0
  252. package/dist/types/components/internal/overlay/layer.d.ts +5 -8
  253. package/dist/types/components/internal/overlay/track-anchor.d.ts +5 -0
  254. package/dist/types/components/internal/support/types.d.ts +1 -1
  255. package/dist/types/components/internal/utils/activation.d.ts +1 -0
  256. package/dist/types/components/primitives/badge/Badge.d.ts +17 -8
  257. package/dist/types/components/primitives/badge/morph-label.d.ts +3 -0
  258. package/dist/types/components/primitives/badge/use-glint-on-change.d.ts +2 -0
  259. package/dist/types/components/primitives/button/Button.d.ts +4 -8
  260. package/dist/types/components/primitives/button/button-style.d.ts +8 -4
  261. package/dist/types/components/primitives/collapse/Collapse.d.ts +3 -2
  262. package/dist/types/components/primitives/input/NumberField.d.ts +1 -1
  263. package/dist/types/components/primitives/input/OtpField.d.ts +7 -3
  264. package/dist/types/components/primitives/input/TextField.d.ts +1 -1
  265. package/dist/types/components/primitives/input/field-chrome.d.ts +2 -1
  266. package/dist/types/components/primitives/input/use-number-value.d.ts +16 -0
  267. package/dist/types/components/primitives/tag/Tag.d.ts +1 -1
  268. package/dist/types/components/primitives/tag/ToggleTag.d.ts +2 -2
  269. package/dist/types/components/primitives/textarea/Textarea.d.ts +5 -3
  270. package/dist/types/components/primitives/textarea/char-meter.d.ts +6 -0
  271. package/dist/types/components/primitives/toggle/switch-glyph.d.ts +6 -0
  272. package/dist/types/engine/flip.d.ts +3 -1
  273. package/dist/types/engine/index.d.ts +2 -2
  274. package/dist/types/engine/loop.d.ts +5 -2
  275. package/dist/types/motion/before-paint.d.ts +4 -0
  276. package/dist/types/motion/crossfade.d.ts +4 -0
  277. package/dist/types/motion/element.d.ts +16 -4
  278. package/dist/types/motion/flip.d.ts +12 -3
  279. package/dist/types/motion/holders.d.ts +4 -0
  280. package/dist/types/motion/motion.d.ts +7 -0
  281. package/dist/types/motion/use-motion.d.ts +3 -1
  282. package/dist/types/theme-scope.d.ts +5 -0
  283. package/dist/types/tokens/component-styles.generated.d.ts +0 -2
  284. package/dist/types/tokens/motion-defaults.generated.d.ts +2 -0
  285. package/dist/types/tokens/motion-scale.d.ts +18 -15
  286. package/dist/types/tokens/motion-tokens.d.ts +1 -1
  287. package/dist/types/tokens/theme-store.d.ts +4 -4
  288. package/dist/types/tokens/theme-tokens.generated.d.ts +77 -59
  289. package/dist/types/tokens/theme.d.ts +1 -1
  290. package/dist/typing-lines.js +2 -2
  291. package/dist/youtube.js +3 -3
  292. package/package.json +16 -11
  293. package/skills/zyncat-ui/SKILL.md +8 -8
  294. package/skills/zyncat-ui/references/components.md +6 -5
  295. package/skills/zyncat-ui/references/recipes.md +1 -1
  296. package/skills/zyncat-ui/references/theming.md +3 -3
  297. package/src/components/composites/combobox/Combobox.tsx +100 -0
  298. package/src/components/composites/combobox/Combobox.usage.md +32 -0
  299. package/src/components/composites/combobox/caret.ts +41 -0
  300. package/src/components/composites/combobox/combobox.css +7 -0
  301. package/src/components/composites/combobox/use-combobox.ts +112 -0
  302. package/src/components/composites/date-picker/DateField.tsx +4 -0
  303. package/src/components/composites/date-picker/DateRangeField.tsx +15 -18
  304. package/src/components/composites/date-picker/DateTimeField.tsx +4 -0
  305. package/src/components/composites/date-picker/TimeField.tsx +12 -4
  306. package/src/components/composites/date-picker/date-picker.css +25 -41
  307. package/src/components/composites/date-picker/date-utils.ts +4 -0
  308. package/src/components/composites/date-picker/field-shell.tsx +45 -8
  309. package/src/components/composites/date-picker/month-swipe.ts +41 -0
  310. package/src/components/composites/date-picker/range-day.tsx +112 -0
  311. package/src/components/composites/date-picker/range-month.tsx +79 -0
  312. package/src/components/composites/date-picker/range-panel.tsx +30 -356
  313. package/src/components/composites/date-picker/range-presets.tsx +104 -0
  314. package/src/components/composites/date-picker/range-sheet-days.css +35 -0
  315. package/src/components/composites/date-picker/range-sheet.css +80 -0
  316. package/src/components/composites/date-picker/range-sheet.tsx +72 -0
  317. package/src/components/composites/date-picker/range-summary.css +67 -0
  318. package/src/components/composites/date-picker/range-summary.tsx +69 -0
  319. package/src/components/composites/date-picker/time-core.tsx +23 -17
  320. package/src/components/composites/date-picker/typed-key.ts +9 -0
  321. package/src/components/composites/date-picker/use-month-view.ts +32 -0
  322. package/src/components/composites/date-picker/use-range-panel.ts +145 -0
  323. package/src/components/composites/dialog/Dialog.tsx +28 -110
  324. package/src/components/composites/dialog/dialog-sheet.css +31 -0
  325. package/src/components/composites/dialog/dialog.css +3 -0
  326. package/src/components/composites/dialog/surface.tsx +93 -0
  327. package/src/components/composites/dropdown/Dropdown.tsx +49 -7
  328. package/src/components/composites/dropdown/Dropdown.usage.md +2 -0
  329. package/src/components/composites/dropdown/dropdown.css +14 -11
  330. package/src/components/composites/dropdown/menu-panel.tsx +49 -26
  331. package/src/components/composites/dropdown/types.ts +9 -3
  332. package/src/components/composites/pagination/pagination.css +1 -1
  333. package/src/components/composites/scroll-area/ScrollArea.tsx +114 -0
  334. package/src/components/composites/scroll-area/ScrollArea.usage.md +28 -0
  335. package/src/components/composites/scroll-area/scroll-area.css +150 -0
  336. package/src/components/composites/select/MultiSelect.tsx +71 -12
  337. package/src/components/composites/select/MultiSelect.usage.md +10 -0
  338. package/src/components/composites/select/Select.tsx +32 -2
  339. package/src/components/composites/select/Select.usage.md +13 -1
  340. package/src/components/composites/select/core/index.ts +2 -1
  341. package/src/components/composites/select/core/menu.tsx +34 -17
  342. package/src/components/composites/select/core/panel.tsx +62 -55
  343. package/src/components/composites/select/core/trigger.tsx +44 -13
  344. package/src/components/composites/select/core/types.ts +10 -0
  345. package/src/components/composites/select/core/use-listbox.ts +91 -38
  346. package/src/components/composites/select/presets.tsx +47 -0
  347. package/src/components/composites/select/select.css +55 -7
  348. package/src/components/composites/sheet/use-sheet-drag.ts +13 -0
  349. package/src/components/composites/table/Table.tsx +65 -305
  350. package/src/components/composites/table/Table.usage.md +19 -2
  351. package/src/components/composites/table/body.tsx +147 -0
  352. package/src/components/composites/table/detail.tsx +76 -0
  353. package/src/components/composites/table/head.tsx +90 -0
  354. package/src/components/composites/table/table-detail.css +27 -0
  355. package/src/components/composites/table/table.css +41 -14
  356. package/src/components/composites/table/types.ts +97 -0
  357. package/src/components/composites/table/use-scroller.ts +53 -0
  358. package/src/components/composites/table/use-table-state.ts +98 -0
  359. package/src/components/composites/tabs/Tabs.tsx +23 -188
  360. package/src/components/composites/tabs/tab-panel.tsx +63 -0
  361. package/src/components/composites/tabs/tabs.css +32 -13
  362. package/src/components/composites/tabs/types.ts +51 -0
  363. package/src/components/composites/tabs/use-ink.ts +87 -0
  364. package/src/components/composites/toast/toast.css +1 -1
  365. package/src/components/composites/tooltip/Tooltip.tsx +6 -5
  366. package/src/components/composites/tooltip/tooltip-host.tsx +10 -6
  367. package/src/components/composites/tooltip/tooltip.css +1 -1
  368. package/src/components/compound/support-rail/SupportRail.tsx +3 -2
  369. package/src/components/compound/support-rail/support-rail.css +2 -2
  370. package/src/components/dev/motion-devtools.css +6 -5
  371. package/src/components/expressive/lens/Lens.tsx +11 -368
  372. package/src/components/expressive/lens/input.ts +91 -0
  373. package/src/components/expressive/lens/optics.ts +119 -0
  374. package/src/components/expressive/lens/paint.ts +60 -0
  375. package/src/components/expressive/lens/use-lens.ts +121 -0
  376. package/src/components/expressive/odometer/Odometer.tsx +78 -99
  377. package/src/components/expressive/odometer/Odometer.usage.md +2 -2
  378. package/src/components/expressive/odometer/odometer.css +27 -16
  379. package/src/components/expressive/odometer/roll.ts +139 -0
  380. package/src/components/expressive/odometer/spring.ts +86 -0
  381. package/src/components/expressive/theme-transition/bloom.ts +22 -2
  382. package/src/components/expressive/theme-transition/paint.ts +2 -0
  383. package/src/components/expressive/theme-transition/scene.ts +3 -0
  384. package/src/components/expressive/theme-transition/theme-transition.css +49 -0
  385. package/src/components/expressive/theme-transition/theme-transition.ts +21 -1
  386. package/src/components/expressive/theme-transition/tide.ts +15 -10
  387. package/src/components/internal/hooks/use-hold-repeat.ts +43 -0
  388. package/src/components/internal/hooks/use-scroll-edges.ts +6 -1
  389. package/src/components/internal/icon/Icon.tsx +4 -0
  390. package/src/components/internal/menu/highlight.ts +20 -2
  391. package/src/components/internal/menu/menu-row.tsx +36 -8
  392. package/src/components/internal/menu/menu-surface.css +81 -7
  393. package/src/components/internal/menu/use-anchor-width.ts +26 -0
  394. package/src/components/internal/overlay/layer.tsx +11 -23
  395. package/src/components/internal/overlay/overlay.css +1 -0
  396. package/src/components/internal/overlay/position.ts +17 -6
  397. package/src/components/internal/overlay/track-anchor.ts +69 -0
  398. package/src/components/internal/overlay/trigger.css +0 -1
  399. package/src/components/internal/support/types.ts +1 -1
  400. package/src/components/internal/utils/activation.ts +7 -2
  401. package/src/components/primitives/avatar/avatar.css +1 -1
  402. package/src/components/primitives/badge/Badge.tsx +38 -15
  403. package/src/components/primitives/badge/Badge.usage.md +12 -5
  404. package/src/components/primitives/badge/badge.css +20 -11
  405. package/src/components/primitives/badge/morph-label.tsx +71 -0
  406. package/src/components/primitives/badge/use-glint-on-change.ts +16 -0
  407. package/src/components/primitives/button/Button.tsx +5 -8
  408. package/src/components/primitives/button/Button.usage.md +5 -4
  409. package/src/components/primitives/button/button-style.ts +11 -5
  410. package/src/components/primitives/button/button.css +24 -27
  411. package/src/components/primitives/checkbox/checkbox.css +0 -1
  412. package/src/components/primitives/collapse/Collapse.tsx +3 -2
  413. package/src/components/primitives/input/NumberField.tsx +38 -46
  414. package/src/components/primitives/input/OtpField.tsx +52 -11
  415. package/src/components/primitives/input/OtpField.usage.md +2 -1
  416. package/src/components/primitives/input/TextField.tsx +5 -3
  417. package/src/components/primitives/input/field-chrome.tsx +3 -2
  418. package/src/components/primitives/input/input.css +54 -34
  419. package/src/components/primitives/input/use-number-value.ts +38 -0
  420. package/src/components/primitives/radio-group/radio-group.css +9 -6
  421. package/src/components/primitives/tag/Tag.tsx +1 -1
  422. package/src/components/primitives/tag/ToggleTag.tsx +2 -2
  423. package/src/components/primitives/tag/tag.css +2 -4
  424. package/src/components/primitives/textarea/Textarea.tsx +44 -30
  425. package/src/components/primitives/textarea/char-meter.tsx +19 -0
  426. package/src/components/primitives/textarea/textarea.css +26 -41
  427. package/src/components/primitives/toggle/Toggle.tsx +3 -12
  428. package/src/components/primitives/toggle/switch-glyph.tsx +25 -0
  429. package/src/components/primitives/toggle/toggle.css +0 -1
  430. package/src/engine/animate.ts +5 -3
  431. package/src/engine/flip.ts +28 -4
  432. package/src/engine/index.ts +2 -2
  433. package/src/engine/loop.ts +17 -6
  434. package/src/mcp/server.ts +30 -20
  435. package/src/motion/before-paint.ts +15 -0
  436. package/src/motion/crossfade.ts +143 -0
  437. package/src/motion/element.tsx +29 -8
  438. package/src/motion/flip.ts +102 -31
  439. package/src/motion/glide.tsx +5 -0
  440. package/src/motion/holders.ts +10 -0
  441. package/src/motion/motion.ts +7 -0
  442. package/src/motion/motion.usage.md +34 -0
  443. package/src/motion/presence.tsx +22 -9
  444. package/src/motion/use-motion.ts +45 -6
  445. package/src/theme-scope.ts +19 -0
  446. package/src/tokens/base.css +7 -5
  447. package/src/tokens/color.css +17 -15
  448. package/src/tokens/component-styles.generated.ts +0 -2
  449. package/src/tokens/dark.css +8 -5
  450. package/src/tokens/decisions.css +5 -3
  451. package/src/tokens/motion-defaults.generated.ts +15 -8
  452. package/src/tokens/motion-scale.ts +18 -15
  453. package/src/tokens/motion-tokens.ts +4 -4
  454. package/src/tokens/motion.css +19 -11
  455. package/src/tokens/reset.css +1 -0
  456. package/src/tokens/semantic.css +20 -14
  457. package/src/tokens/spacing.css +5 -3
  458. package/src/tokens/theme-store.ts +4 -4
  459. package/src/tokens/theme-sync.tsx +4 -2
  460. package/src/tokens/theme-tokens.generated.ts +78 -59
  461. package/src/tokens/theme.tsx +1 -1
  462. package/tailwind.css +6 -0
  463. package/dist/bloom-HV23M4AW.js.map +0 -1
  464. package/dist/chunk-2DNKZ57E.js +0 -72
  465. package/dist/chunk-2DNKZ57E.js.map +0 -1
  466. package/dist/chunk-6H3IJ752.js.map +0 -1
  467. package/dist/chunk-7NHY2CRA.js.map +0 -1
  468. package/dist/chunk-AIAPXRCI.js.map +0 -1
  469. package/dist/chunk-BRKGYLEQ.js.map +0 -1
  470. package/dist/chunk-F64Z42PJ.js.map +0 -1
  471. package/dist/chunk-JINATP4N.js.map +0 -1
  472. package/dist/chunk-KSAJ6DED.js +0 -16
  473. package/dist/chunk-KSAJ6DED.js.map +0 -1
  474. package/dist/chunk-LNAV5E7S.js.map +0 -1
  475. package/dist/chunk-N43NDSME.js.map +0 -1
  476. package/dist/chunk-ODRO3KS6.js.map +0 -1
  477. package/dist/chunk-PXQBJMPJ.js.map +0 -1
  478. package/dist/chunk-QDAN43B6.js.map +0 -1
  479. package/dist/chunk-RJENXXTI.js +0 -93
  480. package/dist/chunk-RJENXXTI.js.map +0 -1
  481. package/dist/chunk-RLNCRDAL.js.map +0 -1
  482. package/dist/chunk-RW2A4M2Q.js +0 -57
  483. package/dist/chunk-RW2A4M2Q.js.map +0 -1
  484. package/dist/chunk-TBLPZQSI.js.map +0 -1
  485. package/dist/chunk-TDHLZY6I.js.map +0 -1
  486. package/dist/chunk-UKPX3RIP.js.map +0 -1
  487. package/dist/chunk-V6QAAOA5.js.map +0 -1
  488. package/dist/chunk-VDOBLABP.js +0 -38
  489. package/dist/chunk-VDOBLABP.js.map +0 -1
  490. package/dist/chunk-VJXP256V.js.map +0 -1
  491. package/dist/chunk-VQFILXQN.js.map +0 -1
  492. package/dist/chunk-VZXML7EH.js.map +0 -1
  493. package/dist/chunk-XKDR22VE.js.map +0 -1
  494. package/dist/count-badge.js +0 -13
  495. package/dist/count-badge.js.map +0 -1
  496. package/dist/paint-CJQCM6ZO.js.map +0 -1
  497. package/dist/status-badge.js +0 -72
  498. package/dist/status-badge.js.map +0 -1
  499. package/dist/theme-transition-VGLPZDJI.js.map +0 -1
  500. package/dist/tide-DJZMDAFT.js.map +0 -1
  501. package/dist/types/components/primitives/badge/CountBadge.d.ts +0 -8
  502. package/dist/types/components/primitives/badge/StatusBadge.d.ts +0 -15
  503. package/src/components/primitives/badge/CountBadge.tsx +0 -20
  504. package/src/components/primitives/badge/CountBadge.usage.md +0 -13
  505. package/src/components/primitives/badge/StatusBadge.tsx +0 -113
  506. package/src/components/primitives/badge/StatusBadge.usage.md +0 -14
@@ -0,0 +1,11 @@
1
+ export interface Spring {
2
+ at: number;
3
+ rate: number;
4
+ to: number;
5
+ omega: number;
6
+ zeta: number;
7
+ }
8
+ export declare function sample(s: Spring, t: number): [at: number, rate: number];
9
+ export declare function settleSeconds(s: Spring, rest: number): number;
10
+ export declare function clampedCurve(s: Spring, seconds: number): string;
11
+ export declare function wrappedCurve(s: Spring, seconds: number, run: number): string;
@@ -14,6 +14,9 @@ export interface Scene {
14
14
  export interface Effect {
15
15
  duration: number;
16
16
  clips: readonly string[];
17
+ wash?: readonly (readonly [front: number, exit: number])[];
18
+ washOrigin?: readonly [x: number, y: number];
19
+ washSpread?: number;
17
20
  }
18
21
  export type EffectFactory = (scene: Scene) => Effect;
19
22
  export declare const TAU: number;
@@ -0,0 +1,8 @@
1
+ import type { PointerEvent } from 'react';
2
+ export declare function useHoldRepeat(onStep: (direction: 1 | -1) => boolean): (direction: 1 | -1) => {
3
+ onPointerDown: (e: PointerEvent) => void;
4
+ onPointerUp: () => void;
5
+ onPointerLeave: () => void;
6
+ onPointerCancel: () => void;
7
+ onClick: () => void;
8
+ };
@@ -11,6 +11,8 @@ declare const REGISTRY: {
11
11
  'caret-left': import("@phosphor-icons/react").Icon;
12
12
  'caret-right': import("@phosphor-icons/react").Icon;
13
13
  'magnifying-glass': import("@phosphor-icons/react").Icon;
14
+ minus: import("@phosphor-icons/react").Icon;
15
+ plus: import("@phosphor-icons/react").Icon;
14
16
  calendar: import("@phosphor-icons/react").Icon;
15
17
  'calendar-dot': import("@phosphor-icons/react").Icon;
16
18
  clock: import("@phosphor-icons/react").Icon;
@@ -1,7 +1,15 @@
1
1
  import type { DataAttributes } from '../../../dom-props';
2
2
  export type MenuHighlight = 'neutral' | 'accent';
3
+ export type MenuSize = 'sm' | 'md' | 'lg';
4
+ export type MenuWeight = 'regular' | 'medium' | 'semibold';
5
+ export type MenuWidth = 'auto' | 'trigger' | 'sm' | 'md' | 'lg';
3
6
  export interface MenuHighlightProps {
4
7
  highlight?: MenuHighlight;
5
8
  rail?: boolean;
6
9
  }
7
- export declare function menuHighlightAttrs({ highlight, rail }: MenuHighlightProps): DataAttributes;
10
+ export interface MenuSurfaceProps extends MenuHighlightProps {
11
+ size?: MenuSize;
12
+ weight?: MenuWeight;
13
+ width?: MenuWidth;
14
+ }
15
+ export declare function menuSurfaceAttrs({ highlight, rail, size, weight, width }: MenuSurfaceProps): DataAttributes;
@@ -1,6 +1,10 @@
1
1
  import './menu-surface.css';
2
2
  import type { HTMLAttributes, ReactNode, Ref } from 'react';
3
3
  import type { DataAttributes } from '../../../dom-props';
4
+ export declare function MenuGroupLabel({ className, children }: {
5
+ className?: string;
6
+ children: ReactNode;
7
+ }): import("react").JSX.Element;
4
8
  export interface MenuRowProps extends HTMLAttributes<HTMLDivElement>, DataAttributes {
5
9
  ref?: Ref<HTMLDivElement>;
6
10
  icon?: ReactNode;
@@ -0,0 +1,2 @@
1
+ import { type RefObject } from 'react';
2
+ export declare function useAnchorWidth(triggerRef: RefObject<HTMLElement | null>, panelRef: RefObject<HTMLElement | null>, enabled: boolean): void;
@@ -1,5 +1,5 @@
1
1
  import './trigger.css';
2
- import { type ReactElement, type KeyboardEvent as ReactKeyboardEvent, type ReactNode, type RefObject } from 'react';
2
+ import { type ReactElement, type KeyboardEvent as ReactKeyboardEvent, type MouseEvent as ReactMouseEvent, type ReactNode, type PointerEvent as ReactPointerEvent, type RefObject } from 'react';
3
3
  import { type ActivateOn } from '../utils/activation';
4
4
  interface OverlayEntry {
5
5
  contains: (t: EventTarget | null) => boolean;
@@ -21,20 +21,17 @@ declare function useOutsidePress({ entry, refs, enabled, onPress, }: {
21
21
  enabled: boolean;
22
22
  onPress: () => void;
23
23
  }): void;
24
- declare function ovCloneTrigger(trigger: ReactElement | null, { open, onPress, onKeyDown, panelId, haspopup, triggerRef, activateOn, }: {
24
+ declare function ovCloneTrigger(trigger: ReactElement | null, { open, onPress, onKeyDown, panelId, haspopup, triggerRef, activateOn, holdFocus, attrs, }: {
25
25
  open: boolean;
26
- onPress: () => void;
26
+ onPress: (e: ReactPointerEvent<HTMLElement> | ReactMouseEvent<HTMLElement>) => void;
27
27
  onKeyDown?: (e: ReactKeyboardEvent<HTMLElement>) => void;
28
28
  panelId: string;
29
29
  haspopup: string;
30
30
  triggerRef: RefObject<HTMLElement>;
31
31
  activateOn?: ActivateOn;
32
+ holdFocus?: boolean;
33
+ attrs?: Record<string, unknown>;
32
34
  }): ReactElement | null;
33
- export interface InheritedThemeAttrs {
34
- 'data-theme'?: string;
35
- 'data-polarity'?: string;
36
- }
37
- export declare function inheritedThemeAttrs(scope: Element | null | undefined): InheritedThemeAttrs;
38
35
  declare function OverlayPortal({ container, scope, children, }: {
39
36
  container?: HTMLElement | null;
40
37
  scope?: Element | null;
@@ -0,0 +1,5 @@
1
+ export interface AnchorMoveTracker {
2
+ resync: () => void;
3
+ stop: () => void;
4
+ }
5
+ export declare function trackAnchorMove(el: Element, onMove: () => void): AnchorMoveTracker;
@@ -6,7 +6,7 @@ export interface SupportAction {
6
6
  label: string;
7
7
  /** Leading glyph. Any node; the widget sizes the box it sits in. */
8
8
  icon?: ReactNode;
9
- /** Trailing metadata - a wait time, a slot, a ticket number. Set in mono. */
9
+ /** Trailing metadata - a wait time, a slot, a ticket number. Set in tabular figures. */
10
10
  meta?: string;
11
11
  /** Second line under the label. The rail shows it; the fan puts it in the caption. */
12
12
  description?: string;
@@ -5,6 +5,7 @@ type AnyPointerEvent = ReactPointerEvent<Element> | PointerEvent;
5
5
  type AnyMouseEvent = ReactMouseEvent<Element> | MouseEvent;
6
6
  export declare function pointerDownActivates(e: AnyPointerEvent, holdFocus?: boolean): boolean;
7
7
  export declare function declinePointerDown(): void;
8
+ export declare function pressedByKeyboard(e: AnyPointerEvent | AnyMouseEvent): boolean;
8
9
  export declare function clickActivates(e: AnyMouseEvent): boolean;
9
10
  export interface ActivationOptions<E extends Element> {
10
11
  on?: ActivateOn;
@@ -1,14 +1,25 @@
1
1
  import './badge.css';
2
- import type { CSSProperties, HTMLAttributes, ReactNode } from 'react';
2
+ import { type CSSProperties, type HTMLAttributes, type ReactNode } from 'react';
3
3
  import type { DataAttributes } from '../../../dom-props';
4
4
  export type BadgeTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
5
+ export type BadgeAnimation = 'auto' | 'roll' | 'morph' | 'none';
5
6
  interface BadgeOwnProps {
7
+ /** The chip's content. Changing it animates in place. */
8
+ value: string | number;
9
+ /**
10
+ * How a `value` change animates: `roll` spins each digit, `morph` re-letters the word.
11
+ * `auto` rolls numbers and morphs text - name one to override a formatted figure like "1,024".
12
+ * @default 'auto'
13
+ */
14
+ animate?: BadgeAnimation;
6
15
  /** Status hue. @default 'neutral' */
7
16
  tone?: BadgeTone;
8
- /** Surface. @default 'glass' */
9
- variant?: 'glass' | 'outline';
10
- /** Chip density - `sm` tightens the vertical padding for inline use. @default 'md' */
17
+ /** Surface: a flat toned fill, the frosted chip, or a hairline outline. @default 'soft' */
18
+ variant?: 'soft' | 'glass' | 'outline';
19
+ /** Chip density - `sm` is 20px for table rows and inline use. @default 'md' */
11
20
  size?: 'sm' | 'md';
21
+ /** Sweep a sheen across the chip when `value` changes - for a state that has landed. */
22
+ glint?: boolean;
12
23
  /** Leading status dot. */
13
24
  dot?: boolean;
14
25
  /** Dot pulses (implies dot) - for in-progress status. */
@@ -21,12 +32,10 @@ interface BadgeOwnProps {
21
32
  className?: string;
22
33
  /** Inline styles merged onto the chip. */
23
34
  style?: CSSProperties;
24
- /** Chip label. */
25
- children?: ReactNode;
26
35
  }
27
36
  export interface BadgeProps extends BadgeOwnProps {
28
37
  /** Standard <span> attributes (aria-*, data-*, title, ...) forwarded to the chip. */
29
- htmlProps?: Omit<HTMLAttributes<HTMLSpanElement>, keyof BadgeOwnProps> & DataAttributes;
38
+ htmlProps?: Omit<HTMLAttributes<HTMLSpanElement>, keyof BadgeOwnProps | 'children'> & DataAttributes;
30
39
  }
31
- export declare function Badge({ tone, variant, size, dot, live, pill, icon, className, style, children, htmlProps, }: BadgeProps): import("react").JSX.Element;
40
+ export declare function Badge({ value, animate, tone, variant, size, glint, dot, live, pill, icon, className, style, htmlProps, }: BadgeProps): import("react").JSX.Element;
32
41
  export {};
@@ -0,0 +1,3 @@
1
+ export declare function MorphLabel({ label }: {
2
+ label: string;
3
+ }): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { type RefObject } from 'react';
2
+ export declare function useGlintOnChange(ref: RefObject<HTMLElement | null>, value: string, enabled: boolean): void;
@@ -1,15 +1,13 @@
1
1
  import type { ButtonHTMLAttributes, CSSProperties, ReactNode, Ref } from 'react';
2
2
  import type { DataAttributes } from '../../../dom-props';
3
- import { type ButtonSize, type ButtonVariant } from './button-style';
3
+ import { type ButtonStyleProps, type ButtonVariant } from './button-style';
4
4
  export { buttonClass } from './button-style';
5
5
  export type { ButtonSize, ButtonStyleProps, ButtonVariant } from './button-style';
6
- interface ButtonOwnProps {
6
+ interface ButtonOwnProps extends Pick<ButtonStyleProps, 'size' | 'iconOnly' | 'fullWidth'> {
7
7
  /** Visual weight / intent. @default 'primary' */
8
8
  variant?: ButtonVariant;
9
9
  /** Forwarded to the underlying <button> (React 19 ref-as-prop). */
10
10
  ref?: Ref<HTMLButtonElement>;
11
- /** Control height. sm 28px - md 32px (default) - lg 37px. @default 'md' */
12
- size?: ButtonSize;
13
11
  /** `submit` / `reset` / `button`. @default 'button' */
14
12
  type?: 'button' | 'submit' | 'reset';
15
13
  /** Disable the control (also implied by `loading`). */
@@ -17,13 +15,11 @@ interface ButtonOwnProps {
17
15
  /** Loading - swaps the label for a spinner and makes the button inert. The label stays
18
16
  * mounted but invisible, so the button holds its width. */
19
17
  loading?: boolean;
20
- /** Stretch to fill the container width. */
21
- fullWidth?: boolean;
22
18
  /** Extra class(es) merged onto the button. */
23
19
  className?: string;
24
20
  /** Inline styles merged onto the button. */
25
21
  style?: CSSProperties;
26
- /** Button label. */
22
+ /** Button label. An svg child takes the size's glyph; a class or style of your own on it wins. */
27
23
  children?: ReactNode;
28
24
  }
29
25
  type ButtonRestProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonOwnProps> & DataAttributes;
@@ -32,4 +28,4 @@ export interface ButtonProps extends ButtonOwnProps, ButtonRestProps {
32
28
  * Bare `<button>` attributes also pass through directly; `htmlProps` wins on conflict. */
33
29
  htmlProps?: ButtonRestProps;
34
30
  }
35
- export declare function Button({ variant, size, type, disabled, loading, fullWidth, className, style, children, ref, htmlProps, ...rest }: ButtonProps): import("react").JSX.Element;
31
+ export declare function Button({ variant, size, iconOnly, type, disabled, loading, fullWidth, className, style, children, ref, htmlProps, ...rest }: ButtonProps): import("react").JSX.Element;
@@ -1,15 +1,19 @@
1
1
  import './button.css';
2
2
  export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger' | 'link';
3
- export type ButtonSize = 'sm' | 'md' | 'lg' | 'icon';
3
+ export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
4
  export interface ButtonStyleProps {
5
5
  /** Visual weight / intent. Omit for base chrome only - sizing, focus ring, layout -
6
6
  * with no skin, for a local re-skin through `className`. */
7
7
  variant?: ButtonVariant;
8
- /** Control height. sm 28px - md 32px (default) - lg 37px. @default 'md' */
9
- size?: ButtonSize;
8
+ /** Control height: the `--control-height-*` step, so it lines up with a field of the same size.
9
+ * Type, padding and glyph step with it. `'icon'` is deprecated: it is `size="sm" iconOnly`.
10
+ * @default 'md' */
11
+ size?: ButtonSize | 'icon';
12
+ /** A square of the control height for one glyph. Name it with `aria-label`. @default false */
13
+ iconOnly?: boolean;
10
14
  /** Stretch to fill the container width. */
11
15
  fullWidth?: boolean;
12
16
  /** Extra class(es) merged onto the result. */
13
17
  className?: string;
14
18
  }
15
- export declare function buttonClass({ variant, size, fullWidth, className }?: ButtonStyleProps): string;
19
+ export declare function buttonClass({ variant, size, iconOnly, fullWidth, className }?: ButtonStyleProps): string;
@@ -20,8 +20,9 @@ interface CollapseOwnProps extends TimingProps {
20
20
  axis?: 'height' | 'width';
21
21
  /** Also cross-fade contents while resizing; follows `duration` / `ease`. */
22
22
  fade?: boolean;
23
- /** Class applied to the inner measured wrapper - the clipping element (overflow: hidden).
24
- * Content whose focus ring sits flush to its edge needs padding there, or the ring clips. */
23
+ /** Class applied to the inner wrapper - the clipping element (`overflow: clip` on the animated
24
+ * axis). Its padding stays while closed, so content whose focus ring sits flush to the clipped
25
+ * edge gets its room as `var(--ring-gutter)` of padding on a child. */
25
26
  innerClassName?: string;
26
27
  /** Size (and fade) transition timing - motion tokens only, each field one token or
27
28
  * `{ open, close }`, e.g. `{ duration: { close: 'fast' }, ease: { close: 'exit' } }`.
@@ -9,7 +9,7 @@ interface NumberFieldOwnProps extends FieldIdProps, FieldCoreMessagingProps {
9
9
  min?: number;
10
10
  /** Maximum value - steps and committed typing clamp down to this; the increase stepper disables here. @default Infinity */
11
11
  max?: number;
12
- /** Amount added/removed per ArrowUp/ArrowDown press and per caret stepper click. Decimals work. @default 1 */
12
+ /** Amount added/removed per ArrowUp/ArrowDown press and per minus/plus click; holding a button repeats it. Decimals work. @default 1 */
13
13
  step?: number;
14
14
  /** Controlled numeric value. Omit for uncontrolled (use `defaultValue`). */
15
15
  value?: number | string;
@@ -12,10 +12,14 @@ interface OtpFieldOwnProps {
12
12
  group?: number;
13
13
  /** Error state (red slots + ring). */
14
14
  error?: boolean;
15
+ /** Accepted state: the slots take the accent, and a ripple runs across them as it turns on. */
16
+ success?: boolean;
17
+ /** Keep the digits on show but refuse edits - while the code is being checked. */
18
+ readOnly?: boolean;
15
19
  /** Disable every slot. */
16
20
  disabled?: boolean;
17
- /** Compact slot sizing. Only `sm`; omit for default. */
18
- size?: 'sm';
21
+ /** Slot width, height and digit type. @default 'md' */
22
+ size?: 'sm' | 'md';
19
23
  /** Extra class(es) appended to the root wrapper. */
20
24
  className?: string;
21
25
  /** Inline styles merged onto the root wrapper. */
@@ -25,5 +29,5 @@ export interface OtpFieldProps extends OtpFieldOwnProps {
25
29
  /** Standard <div> attributes (aria-*, data-*, ...) forwarded to the root wrapper. */
26
30
  htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, keyof OtpFieldOwnProps> & DataAttributes;
27
31
  }
28
- export declare function OtpField({ length, value, onChange, group, error, disabled, size, className, style, htmlProps, }: OtpFieldProps): import("react").JSX.Element;
32
+ export declare function OtpField({ length, value, onChange, group, error, success, readOnly, disabled, size, className, style, htmlProps, }: OtpFieldProps): import("react").JSX.Element;
29
33
  export {};
@@ -8,7 +8,7 @@ interface TextFieldOwnProps extends FieldMessagingProps, TextFieldNative {
8
8
  leadingIcon?: ReactNode;
9
9
  /** Show a clear button when there's a value. */
10
10
  clearable?: boolean;
11
- /** Control height: sm 28px - md 32px (default) - lg 37px. */
11
+ /** Control height: the `--control-height-*` step of the same name, md by default. */
12
12
  size?: 'sm' | 'md' | 'lg';
13
13
  /** Extra class(es) merged onto the field root. */
14
14
  className?: string;
@@ -28,8 +28,9 @@ export interface FieldMessagingProps extends FieldIdProps, FieldRequirementProps
28
28
  export interface FieldLabelProps extends FieldIdProps, FieldRequirementProps {
29
29
  /** Label text (sentence case). */
30
30
  label?: ReactNode;
31
+ labelId?: string;
31
32
  }
32
- export declare function FieldLabel({ id, label, required, optional }: FieldLabelProps): import("react").JSX.Element;
33
+ export declare function FieldLabel({ id, labelId, label, required, optional }: FieldLabelProps): import("react").JSX.Element;
33
34
  export interface FieldMessageProps {
34
35
  id?: string;
35
36
  message?: ReactNode;
@@ -0,0 +1,16 @@
1
+ interface NumberValueOptions {
2
+ value?: number | string;
3
+ defaultValue: number;
4
+ onChange?: (value: number) => void;
5
+ min: number;
6
+ max: number;
7
+ step: number;
8
+ }
9
+ export declare function useNumberValue({ value, defaultValue, onChange, min, max, step }: NumberValueOptions): {
10
+ v: number;
11
+ text: string;
12
+ commit: (n: number) => void;
13
+ stepBy: (direction: 1 | -1) => boolean;
14
+ type: (raw: string) => void;
15
+ };
16
+ export {};
@@ -11,7 +11,7 @@ interface TagOwnProps {
11
11
  onRemove?: (() => void) | null;
12
12
  /** Accessible label for the remove button. Defaults to "Remove {label}" for string labels. */
13
13
  removeLabel?: string;
14
- /** 'md' = 28px (default) - 'sm' = 24px for dense rows. */
14
+ /** 'md' sits on `--control-height-sm`; 'sm' is 24px, for dense rows. @default 'md' */
15
15
  size?: 'md' | 'sm';
16
16
  /** Set `data-disabled` on the tag and disable its remove button. @default false */
17
17
  disabled?: boolean;
@@ -13,9 +13,9 @@ interface ToggleTagOwnProps {
13
13
  onChange?: (selected: boolean) => void;
14
14
  /** Your own icon node; replaces the tick. Selected state reads from the wash. */
15
15
  icon?: ReactNode | null;
16
- /** Optional result count - rendered mono/tabular. */
16
+ /** Optional result count - rendered with tabular figures. */
17
17
  count?: ReactNode;
18
- /** 'md' = 28px (default) - 'sm' = 24px for dense rows. */
18
+ /** 'md' sits on `--control-height-sm`; 'sm' is 24px, for dense rows. @default 'md' */
19
19
  size?: 'md' | 'sm';
20
20
  /** Disable the button, blocking toggles. @default false */
21
21
  disabled?: boolean;
@@ -12,6 +12,8 @@ interface TextareaOwnProps extends FieldMessagingProps, TextareaNative {
12
12
  onSubmit?: (value: string) => void;
13
13
  /** Soft char limit: shows the meter + over-limit highlight. Does NOT truncate (use native maxLength for a hard stop). */
14
14
  max?: number;
15
+ /** How much one character (a code point) counts toward `max`, e.g. its UTF-8 byte length. @default its UTF-16 length */
16
+ charWeight?: (char: string) => number;
15
17
  /** Rows shown before auto-grow kicks in. @default 3 */
16
18
  minRows?: number;
17
19
  /** Row cap - grows up to this, then the box scrolls. @default 10 */
@@ -20,8 +22,8 @@ interface TextareaOwnProps extends FieldMessagingProps, TextareaNative {
20
22
  warnAt?: number;
21
23
  /** Footer hint, left of the meter - e.g. a ⌘↵ affordance. */
22
24
  hint?: ReactNode;
23
- /** md (default) - lg (prominent composer). */
24
- size?: 'md' | 'lg';
25
+ /** Field type and padding: `sm` for a dense form row, `lg` for a prominent composer. @default 'md' */
26
+ size?: 'sm' | 'md' | 'lg';
25
27
  /** Extra class(es) merged onto the field root. */
26
28
  className?: string;
27
29
  /** Inline styles merged onto the field root. */
@@ -31,5 +33,5 @@ export interface TextareaProps extends TextareaOwnProps {
31
33
  /** Standard <textarea> attributes (name, maxLength, aria-*, onKeyDown, ...) forwarded to the textarea. */
32
34
  htmlProps?: Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, keyof TextareaOwnProps | 'rows'> & DataAttributes;
33
35
  }
34
- export declare function Textarea({ id, label, required, optional, placeholder, helper, error, warning, success, value, onChange, onKeyDown, onSubmit, max, minRows, maxRows, warnAt, hint, size, disabled, readOnly, className, style, htmlProps, }: TextareaProps): import("react").JSX.Element;
36
+ export declare function Textarea({ id, label, required, optional, placeholder, helper, error, warning, success, value, onChange, onKeyDown, onSubmit, max, charWeight, minRows, maxRows, warnAt, hint, size, disabled, readOnly, className, style, htmlProps, }: TextareaProps): import("react").JSX.Element;
35
37
  export {};
@@ -0,0 +1,6 @@
1
+ export interface CharMeterProps {
2
+ count: number;
3
+ max: number;
4
+ warnAt: number;
5
+ }
6
+ export declare function CharMeter({ count, max, warnAt }: CharMeterProps): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import './toggle.css';
2
+ import { type InputHTMLAttributes } from 'react';
3
+ export interface SwitchGlyphProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
4
+ pressed?: boolean;
5
+ }
6
+ export declare function SwitchGlyph({ pressed, ...inputProps }: SwitchGlyphProps): import("react").JSX.Element;
@@ -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 {};
@@ -0,0 +1,4 @@
1
+ import { type Box, type FlipOptions, type Playback } from '../engine';
2
+ import type { Timing } from '../engine/ease';
3
+ export declare function keep(id: string, el: HTMLElement, box: Box, timing?: Timing, margin?: number): void;
4
+ export declare function play(id: string, el: HTMLElement, from: Box, { timing }: FlipOptions): Playback | undefined;
@@ -1,12 +1,12 @@
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 {
5
5
  /** Tag for the element this renders. @default 'div' */
6
6
  as?: string;
7
- /** FLIP this element from its previous box on every render. Implied by `layoutId`. */
7
+ /** FLIP this element from its previous box whenever a render moves it. */
8
8
  layout?: boolean;
9
- /** FLIP from whatever element last held this id, so the box travels between nodes. */
9
+ /** FLIP from whatever element last held this id, so the box travels between nodes. Add `layout` to FLIP its own moves too. */
10
10
  layoutId?: string;
11
11
  /** Tunes whichever layout animation is active; ignored without `layout` or `layoutId`. */
12
12
  layoutTransition?: FlipTuning;
@@ -14,4 +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").DOMElement<import("react").DOMAttributes<HTMLElement>, HTMLElement>;
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,4 +1,13 @@
1
- import { type RefObject } from 'react';
1
+ import { type EffectCallback, type RefObject } from 'react';
2
2
  import { type FlipOptions } from '../engine';
3
- export type FlipTuning = FlipOptions;
4
- export declare function useFlip<T extends HTMLElement>(sharedId: string | null, tuning?: FlipTuning, enabled?: boolean): RefObject<T | null>;
3
+ export interface FlipTuning extends FlipOptions {
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
+ crossfade?: boolean;
6
+ }
7
+ export declare function useFlip<T extends HTMLElement>(sharedId: string | null, tuning: FlipTuning & {
8
+ offscreenMargin?: number;
9
+ }, inPlace: boolean): {
10
+ ref: RefObject<T | null>;
11
+ play: EffectCallback;
12
+ snapshot: () => void;
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;
@@ -0,0 +1,7 @@
1
+ export type { Layer, Playback } from '../engine';
2
+ export { Motion, type MotionProps } from './element';
3
+ export type { FlipTuning } from './flip';
4
+ export { usePresence, type PresenceState } from './presence-context';
5
+ export { Presence, type PresenceProps } from './presence';
6
+ export { popIn, popOut, slideIn } from './presets';
7
+ export { useMotion, type MotionSpec, type MotionSpecs, type Plays } from './use-motion';
@@ -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;
@@ -0,0 +1,5 @@
1
+ export interface InheritedThemeAttrs {
2
+ 'data-theme'?: string;
3
+ 'data-polarity'?: string;
4
+ }
5
+ export declare function inheritedThemeAttrs(scope: Element | null | undefined): InheritedThemeAttrs;
@@ -104,8 +104,6 @@ export interface OdometerStyle extends CSSProperties {
104
104
  '--odometer-gap'?: string | number;
105
105
  /** `--odometer-ink` - Digit ink. Default: `var(--text-strong)`. */
106
106
  '--odometer-ink'?: string | number;
107
- /** `--odometer-accent` - The tint digits take while they roll fast. Default: `var(--accent)`. */
108
- '--odometer-accent'?: string | number;
109
107
  /** `--odometer-separator-ink` - The thousands separator. Default: `var(--text-muted)`. */
110
108
  '--odometer-separator-ink'?: string | number;
111
109
  /** `--odometer-size` - Digit size. Default: `var(--size-display)`. */
@@ -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;