@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
@@ -1,8 +1,12 @@
1
- import type { ButtonHTMLAttributes, ReactNode } from 'react';
1
+ import type { ButtonHTMLAttributes, ReactElement, ReactNode } from 'react';
2
2
  import type { DataAttributes } from '../../../../dom-props';
3
3
  import { type ActivateOn } from '../../../internal/utils/activation';
4
4
  import type { ListboxState } from './use-listbox';
5
5
  export type SelectTriggerHtmlProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'> & DataAttributes;
6
+ export type CustomTrigger<Selected> = ReactElement | ((state: {
7
+ open: boolean;
8
+ selected: Selected;
9
+ }) => ReactElement);
6
10
  export interface SelectTriggerProps extends SelectTriggerHtmlProps {
7
11
  lb: ListboxState;
8
12
  invalid?: boolean;
@@ -12,5 +16,6 @@ export interface SelectTriggerProps extends SelectTriggerHtmlProps {
12
16
  isPlaceholder?: boolean;
13
17
  count?: number;
14
18
  activateOn?: ActivateOn;
19
+ node?: ReactElement | null;
15
20
  }
16
- export declare function SelectTrigger({ lb, invalid, ariaLabel, leading, text, isPlaceholder, count, className, activateOn, onClick, onPointerDown, onKeyDown, ...rest }: SelectTriggerProps): import("react").JSX.Element;
21
+ export declare function SelectTrigger({ lb, invalid, ariaLabel, leading, text, isPlaceholder, count, className, activateOn, disabled, node, onClick, onPointerDown, onKeyDown, ...rest }: SelectTriggerProps): import("react").JSX.Element;
@@ -21,6 +21,15 @@ export interface SelectGroup {
21
21
  options: SelectOption[];
22
22
  }
23
23
  export type NormalizedGroup = CollectionGroup<SelectOption>;
24
+ export interface ListRow {
25
+ option: SelectOption;
26
+ index: number;
27
+ }
28
+ export interface ListSection {
29
+ key: string;
30
+ label?: string;
31
+ rows: ListRow[];
32
+ }
24
33
  export declare const normalize: (options: SelectOption[] | SelectGroup[]) => {
25
34
  groups: NormalizedGroup[];
26
35
  flat: SelectOption[];
@@ -1,5 +1,5 @@
1
1
  import { type KeyboardEvent } from 'react';
2
- import { type SelectGroup, type SelectOption } from './types';
2
+ import { type ListSection, type SelectGroup, type SelectOption } from './types';
3
3
  export interface UseListboxArgs {
4
4
  options: SelectOption[] | SelectGroup[];
5
5
  disabled: boolean;
@@ -10,22 +10,24 @@ export interface UseListboxArgs {
10
10
  isSelected: (value: string) => boolean;
11
11
  onCommit: (opt: SelectOption) => void;
12
12
  closeOnCommit: boolean;
13
+ autoHighlight?: boolean;
13
14
  }
14
15
  export type ListboxState = ReturnType<typeof useListbox>;
15
- export declare function useListbox({ options, disabled, loading, searchable, id, idPrefix, isSelected, onCommit, closeOnCommit, }: UseListboxArgs): {
16
+ export declare function useListbox({ options, disabled, loading, searchable, id, idPrefix, isSelected, onCommit, closeOnCommit, autoHighlight, }: UseListboxArgs): {
16
17
  open: boolean;
17
18
  query: string;
18
19
  setQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
19
- triggerRef: import("react").RefObject<HTMLButtonElement>;
20
+ triggerRef: import("react").RefObject<HTMLElement>;
20
21
  listRef: import("react").RefObject<HTMLDivElement>;
22
+ contentRef: import("react").RefObject<HTMLDivElement>;
21
23
  searchRef: import("react").RefObject<HTMLInputElement>;
22
24
  baseId: string;
23
25
  menuId: string;
24
26
  listId: string;
25
27
  optId: (value: string) => string;
26
- adId: string;
27
28
  groups: import("./types").NormalizedGroup[];
28
29
  flat: SelectOption[];
30
+ sections: ListSection[];
29
31
  navItems: SelectOption[];
30
32
  glide: {
31
33
  ref: import("react").RefObject<HTMLSpanElement>;
@@ -36,7 +38,7 @@ export declare function useListbox({ options, disabled, loading, searchable, id,
36
38
  show: () => void;
37
39
  requestClose: () => void;
38
40
  commit: (opt: SelectOption) => void;
39
- activeIdx: number;
40
- setActiveIdx: import("react").Dispatch<import("react").SetStateAction<number>>;
41
+ commitActive: () => void;
42
+ navigate: (i: number) => void;
41
43
  onMenuKeyDown: (e: KeyboardEvent) => void;
42
44
  };
@@ -0,0 +1,17 @@
1
+ import '../../primitives/tag/tag.css';
2
+ import { type KeyboardEvent } from 'react';
3
+ import type { MenuSize } from '../../internal/menu/highlight';
4
+ export interface MultiSelectPreset {
5
+ /** Chip text. */
6
+ label: string;
7
+ /** The selection a press applies, replacing the current one as given. */
8
+ value: string[];
9
+ }
10
+ interface PresetRowProps {
11
+ presets: MultiSelectPreset[];
12
+ size: MenuSize;
13
+ apply: (value: string[]) => void;
14
+ onMenuKeyDown: (e: KeyboardEvent) => void;
15
+ }
16
+ export declare function PresetRow({ presets, size, apply, onMenuKeyDown }: PresetRowProps): import("react").JSX.Element;
17
+ export {};
@@ -1,75 +1,4 @@
1
1
  import './table.css';
2
- import { type HTMLAttributes, type ReactNode } from 'react';
3
- import type { DataAttributes } from '../../../dom-props';
4
- import { type ActivateOn } from '../../internal/utils/activation';
5
- export type TableAlign = 'start' | 'end' | 'center';
6
- export type TableHideBelow = 'sm' | 'md';
7
- export interface TableColumn<Row = any> {
8
- /** Unique column id; also the default data accessor (row[key]). */
9
- key: string;
10
- /** Header cell content; omit for a header-less column (e.g. an actions column). */
11
- label?: ReactNode;
12
- /** Cell + header alignment. Default 'start'. */
13
- align?: TableAlign;
14
- /** Mono + tabular numerals (timestamps, counts, IDs - section E). */
15
- mono?: boolean;
16
- /** Identity emphasis: strong text, medium weight. */
17
- strong?: boolean;
18
- /** The one greedy column - absorbs slack width. Others size to content. */
19
- grow?: boolean;
20
- /** Header becomes a sort control. Sort is local; asc - desc, no third state. */
21
- sortable?: boolean;
22
- /** Sort accessor: a row property name, or a function. Defaults to row[key]. */
23
- sortBy?: string | ((row: Row) => unknown);
24
- /** Collapse this column below a container breakpoint (30rem / 42rem). */
25
- hideBelow?: TableHideBelow;
26
- /** Custom cell renderer. Defaults to row[key]. */
27
- render?: (row: Row) => ReactNode;
28
- }
29
- export interface TableSort {
30
- /** `key` of the column being sorted by. */
31
- key: string;
32
- /** Sort direction - `asc` or `desc`. */
33
- dir: 'asc' | 'desc';
34
- }
35
- export interface TableProps<Row = any> {
36
- /** Column defs, rendered left to right. */
37
- columns: TableColumn<Row>[];
38
- /** The row data; sorted locally per the active sort before render. */
39
- rows: Row[];
40
- /** Row identity property. Default 'id'. Must be unique and stable. */
41
- rowKey?: string;
42
- /** Accessible name for the <table>. */
43
- ariaLabel?: string;
44
- /** Checkbox column + bulk bar. Selection is a Set of row keys, owned here. */
45
- selectable?: boolean;
46
- /** Fires with the selected row keys after every selection change. */
47
- onSelectionChange?: (keys: Array<string | number>) => void;
48
- /** Rendered in the bulk bar between the count and the built-in Clear. */
49
- bulkActions?: (keys: Array<string | number>, clear: () => void) => ReactNode;
50
- /** Per-row checkbox aria-label. Default 'Select row'. */
51
- selectionLabel?: (row: Row) => string;
52
- /** Initial sort; sorting stays local and uncontrolled after that. */
53
- defaultSort?: TableSort | null;
54
- /** Notification only - fires after the local sort updates. */
55
- onSortChange?: (sort: TableSort) => void;
56
- /** Row rhythm. Default 'cozy' (46px rows); 'compact' is 38px. */
57
- density?: 'cozy' | 'compact';
58
- /** Pin checkbox + first column under horizontal overflow. Default true. */
59
- pinFirst?: boolean;
60
- /** Rows recede and go inert (list-fetch convention). */
61
- loading?: boolean;
62
- /** Shown when rows is empty and not loading. Default 'Nothing to show'. */
63
- empty?: ReactNode;
64
- /** Footer strip - pagination, summaries. */
65
- footer?: ReactNode;
66
- /** Makes rows clickable (checkbox cell excluded). */
67
- onRowClick?: (row: Row) => void;
68
- /** Whether a sortable header fires on `pointerdown` (snappier) or waits for `click`. @default 'pointerdown' */
69
- activateOn?: ActivateOn;
70
- /** Size the table here - the internal scroller absorbs the constraint. */
71
- className?: string;
72
- /** Standard <div> attributes (style, data-*, aria-*, ...) forwarded to the table wrapper. */
73
- htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, 'className'> & DataAttributes;
74
- }
75
- export declare function Table<Row = any>({ columns, rows, rowKey, ariaLabel, selectable, onSelectionChange, bulkActions, selectionLabel, defaultSort, onSortChange, density, pinFirst, loading, empty, footer, onRowClick, activateOn, className, htmlProps, }: TableProps<Row>): import("react").JSX.Element;
2
+ import type { TableProps } from './types';
3
+ export type { TableAlign, TableColumn, TableHideBelow, TableProps, TableSort } from './types';
4
+ export declare function Table<Row = any>({ columns, rows, rowKey, ariaLabel, selectable, onSelectionChange, bulkActions, selectionLabel, defaultSort, onSortChange, renderDetail, expanded, onExpandedChange, expandMode, density, pinFirst, loading, empty, footer, onRowClick, activateOn, className, htmlProps, }: TableProps<Row>): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import type { TableColumn, TableProps } from './types';
2
+ import type { Selection } from './use-table-state';
3
+ type TableBodyProps<Row> = Pick<TableProps<Row>, 'columns' | 'selectionLabel' | 'renderDetail' | 'expanded' | 'onExpandedChange' | 'empty' | 'onRowClick'> & Required<Pick<TableProps<Row>, 'selectable' | 'expandMode' | 'loading'>> & {
4
+ rows: Row[];
5
+ keyOf: (row: Row) => string | number;
6
+ mods: (col: TableColumn<Row>, i: number) => string[];
7
+ selection: Selection;
8
+ checkCellCls: string;
9
+ checkSize: 'sm' | 'md';
10
+ toggleSize: 'xs' | 'sm';
11
+ hoverRow: (row: Element | null) => void;
12
+ leaveRows: () => void;
13
+ };
14
+ export declare function TableBody<Row>({ rows, keyOf, columns, mods, selectable, selection, selectionLabel, checkCellCls, checkSize, toggleSize, renderDetail, expanded, onExpandedChange, expandMode, loading, empty, onRowClick, hoverRow, leaveRows, }: TableBodyProps<Row>): import("react").JSX.Element;
15
+ export {};
@@ -0,0 +1,24 @@
1
+ import './table-detail.css';
2
+ import type { PointerEventHandler, ReactNode } from 'react';
3
+ import { type MotionProps } from '../../../motion/element';
4
+ import { type ButtonSize } from '../../primitives/button/Button';
5
+ type RowKey = string | number;
6
+ export declare const rowNameId: (id: string) => string;
7
+ export declare function useExpanded(value: RowKey[] | undefined, onChange: ((keys: RowKey[]) => void) | undefined, mode: 'single' | 'multiple'): readonly [RowKey[], (key: RowKey) => void];
8
+ interface DetailToggleProps {
9
+ id: string;
10
+ open: boolean;
11
+ size: ButtonSize;
12
+ onToggle: () => void;
13
+ }
14
+ export declare function DetailToggle({ id, open, size, onToggle }: DetailToggleProps): import("react").JSX.Element;
15
+ interface DetailRowProps {
16
+ id: string;
17
+ open: boolean;
18
+ span: number;
19
+ motion: Pick<MotionProps, 'layout' | 'layoutTransition' | 'animate' | 'exit'>;
20
+ onPointerEnter: PointerEventHandler<HTMLElement>;
21
+ children: ReactNode;
22
+ }
23
+ export declare function DetailRow({ id, open, span, motion, onPointerEnter, children }: DetailRowProps): import("react").JSX.Element;
24
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type ActivateOn } from '../../internal/utils/activation';
3
+ import type { TableColumn, TableSort } from './types';
4
+ export declare function cellMods(col: TableColumn, i: number, pinFirst: boolean, selectable: boolean): string[];
5
+ interface TableHeadProps<Row> {
6
+ columns: TableColumn<Row>[];
7
+ sort: TableSort | null;
8
+ onSort: (col: TableColumn<Row>) => void;
9
+ activateOn: ActivateOn;
10
+ mods: (col: TableColumn<Row>, i: number) => string[];
11
+ selectAll: ReactNode;
12
+ checkCellCls: string;
13
+ toggleColumn: boolean;
14
+ }
15
+ export declare function TableHead<Row>({ columns, sort, onSort, activateOn, mods, selectAll, checkCellCls, toggleColumn, }: TableHeadProps<Row>): import("react").JSX.Element;
16
+ export {};
@@ -0,0 +1,86 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ import type { DataAttributes } from '../../../dom-props';
3
+ import type { ActivateOn } from '../../internal/utils/activation';
4
+ export type TableAlign = 'start' | 'end' | 'center';
5
+ export type TableHideBelow = 'sm' | 'md';
6
+ export interface TableColumn<Row = any> {
7
+ /** Unique column id; also the default data accessor (row[key]). */
8
+ key: string;
9
+ /** Header cell content; omit for a header-less column (e.g. an actions column). */
10
+ label?: ReactNode;
11
+ /** Cell + header alignment. Default 'start'. */
12
+ align?: TableAlign;
13
+ /** Mono + tabular numerals (timestamps, counts, IDs - section E). */
14
+ mono?: boolean;
15
+ /** Identity emphasis: strong text, medium weight. */
16
+ strong?: boolean;
17
+ /** The one greedy column - absorbs slack width. Others size to content. */
18
+ grow?: boolean;
19
+ /** Share of the table's width this column takes, e.g. '30%'. A grow column takes what the shares leave;
20
+ * when the table is too narrow, the cells' content widths win. */
21
+ width?: `${number}%`;
22
+ /** Header becomes a sort control. Sort is local; asc - desc, no third state. */
23
+ sortable?: boolean;
24
+ /** Sort accessor: a row property name, or a function. Defaults to row[key]. */
25
+ sortBy?: string | ((row: Row) => unknown);
26
+ /** Collapse this column below a container breakpoint (30rem / 42rem). */
27
+ hideBelow?: TableHideBelow;
28
+ /** Custom cell renderer. Defaults to row[key]. */
29
+ render?: (row: Row) => ReactNode;
30
+ }
31
+ export interface TableSort {
32
+ /** `key` of the column being sorted by. */
33
+ key: string;
34
+ /** Sort direction - `asc` or `desc`. */
35
+ dir: 'asc' | 'desc';
36
+ }
37
+ export interface TableProps<Row = any> {
38
+ /** Column defs, rendered left to right. */
39
+ columns: TableColumn<Row>[];
40
+ /** The row data; sorted locally per the active sort before render. */
41
+ rows: Row[];
42
+ /** Row identity property. Default 'id'. Must be unique and stable. */
43
+ rowKey?: string;
44
+ /** Accessible name for the <table>. */
45
+ ariaLabel?: string;
46
+ /** Checkbox column + bulk bar. Selection is a Set of row keys, owned here. */
47
+ selectable?: boolean;
48
+ /** Fires with the selected row keys after every selection change. */
49
+ onSelectionChange?: (keys: Array<string | number>) => void;
50
+ /** Rendered in the bulk bar between the count and the built-in Clear. */
51
+ bulkActions?: (keys: Array<string | number>, clear: () => void) => ReactNode;
52
+ /** Per-row checkbox aria-label. Default 'Select row'. */
53
+ selectionLabel?: (row: Row) => string;
54
+ /** Initial sort; sorting stays local and uncontrolled after that. */
55
+ defaultSort?: TableSort | null;
56
+ /** Notification only - fires after the local sort updates. */
57
+ onSortChange?: (sort: TableSort) => void;
58
+ /** A row's details, unfolding full width under it from its disclosure button or a click on the
59
+ * row. A falsy return leaves that row without details. */
60
+ renderDetail?: (row: Row) => ReactNode;
61
+ /** Keys of the rows whose details are open. Omit to let the table own it. */
62
+ expanded?: Array<string | number>;
63
+ /** Fires with the open row keys after every toggle. */
64
+ onExpandedChange?: (keys: Array<string | number>) => void;
65
+ /** `single` closes the open row as another opens. Default 'multiple'. */
66
+ expandMode?: 'single' | 'multiple';
67
+ /** Row rhythm. Default 'cozy' (46px rows); 'compact' is 38px. */
68
+ density?: 'cozy' | 'compact';
69
+ /** Pin checkbox + first column under horizontal overflow. Default true. */
70
+ pinFirst?: boolean;
71
+ /** Rows recede and go inert (list-fetch convention). */
72
+ loading?: boolean;
73
+ /** Shown when rows is empty and not loading. Default 'Nothing to show'. */
74
+ empty?: ReactNode;
75
+ /** Footer strip - pagination, summaries. */
76
+ footer?: ReactNode;
77
+ /** Makes rows clickable. A click on the checkbox cell, or on a link, button, field or label in a
78
+ * cell, stays with it. */
79
+ onRowClick?: (row: Row) => void;
80
+ /** Whether a sortable header fires on `pointerdown` (snappier) or waits for `click`. @default 'pointerdown' */
81
+ activateOn?: ActivateOn;
82
+ /** Size the table here - the internal scroller absorbs the constraint. */
83
+ className?: string;
84
+ /** Standard <div> attributes (style, data-*, aria-*, ...) forwarded to the table wrapper. */
85
+ htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, 'className'> & DataAttributes;
86
+ }
@@ -0,0 +1,12 @@
1
+ import { type RefObject } from 'react';
2
+ export declare function useRowGlide(scrollRef: RefObject<HTMLDivElement | null>): {
3
+ tableRef: RefObject<HTMLTableElement>;
4
+ glide: {
5
+ ref: RefObject<HTMLSpanElement>;
6
+ enter: (target: HTMLElement | null) => void;
7
+ leave: () => void;
8
+ };
9
+ hoverRow: (row: Element | null) => void;
10
+ leaveRows: () => void;
11
+ };
12
+ export declare function useEdgeAttributes(scrollRef: RefObject<HTMLDivElement | null>, wrapRef: RefObject<HTMLDivElement | null>): void;
@@ -0,0 +1,16 @@
1
+ import type { TableColumn, TableSort } from './types';
2
+ export declare function useSort<Row>(rows: Row[], columns: TableColumn<Row>[], defaultSort: TableSort | null, onSortChange?: (sort: TableSort) => void): {
3
+ sort: TableSort;
4
+ sortedRows: Row[];
5
+ cycleSort: (col: TableColumn<Row>) => void;
6
+ };
7
+ export declare function useSelection<Row>(rows: Row[], keyOf: (row: Row) => string | number, onSelectionChange?: (keys: Array<string | number>) => void): {
8
+ selected: Set<string | number>;
9
+ allSelected: boolean;
10
+ someSelected: boolean;
11
+ shiftRef: import("react").RefObject<boolean>;
12
+ clearSelection: () => void;
13
+ toggleAll: () => void;
14
+ toggleRow: (idx: number) => void;
15
+ };
16
+ export type Selection = ReturnType<typeof useSelection>;
@@ -1,70 +1,5 @@
1
1
  import './tabs.css';
2
- import { type CSSProperties, type HTMLAttributes, type ReactNode } from 'react';
3
- import type { DataAttributes } from '../../../dom-props';
4
- import { type DisableableAnimation } from '../../../motion/timing';
5
- import { type ActivateOn } from '../../internal/utils/activation';
6
- /** One tab in the row. */
7
- export interface TabItem {
8
- /** Stable identity - also used in the tab/panel id pair. */
9
- value: string;
10
- /** Visible tab text. */
11
- label: ReactNode;
12
- /** Leading icon - your own node. */
13
- icon?: ReactNode;
14
- /** Rendered mono + tabular. Pass a number or a preformatted string. */
15
- count?: number | string;
16
- /** Dims the tab, blocks selection, and skips it during arrow-key travel. */
17
- disabled?: boolean;
18
- }
19
- interface TabsOwnProps {
20
- /** The tab row, in order. @default [] */
21
- items: TabItem[];
22
- /** Controlled - the value of the active tab (null/undefined hides the ink). */
23
- value: string | null | undefined;
24
- /** Fires on click and on arrow-key travel. `dir` is the direction of travel (+1 right, -1 left);
25
- * hand it to TabPanel so content enters from that side. */
26
- onChange?: (value: string, dir: 1 | -1) => void;
27
- /** Shared id prefix wiring tab and panel aria. Give Tabs and its TabPanel the same `name`;
28
- * omit it when the tabs have no managed panel. */
29
- name?: string;
30
- /** Accessible name for the tablist (e.g. "Section views"). */
31
- ariaLabel?: string;
32
- /** Whether a tab switches on `pointerdown` (snappier) or waits for `click`. @default 'pointerdown' */
33
- activateOn?: ActivateOn;
34
- /** Skin: an underline that reaches across (default), or a segmented pill riding an inset track. */
35
- variant?: 'underline' | 'pill';
36
- /** Stretch the row to its container and split it evenly between the tabs. */
37
- fill?: boolean;
38
- /** Extra class(es) merged onto the root. */
39
- className?: string;
40
- /** Inline styles merged onto the root. */
41
- style?: CSSProperties;
42
- }
43
- export interface TabsProps extends TabsOwnProps {
44
- /** Standard <div> attributes (data-*, aria-*, ...) forwarded to the root. */
45
- htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, keyof TabsOwnProps> & DataAttributes;
46
- }
47
- export declare function Tabs({ items, value, onChange, name, ariaLabel, activateOn, variant, fill, className, style, htmlProps, }: TabsProps): import("react").JSX.Element;
48
- interface TabPanelOwnProps {
49
- /** The active tab's value - changing it cuts to the new content. */
50
- tab: string;
51
- /** Same `name` as the paired Tabs - wires role/id/aria-labelledby. */
52
- name?: string;
53
- /** Direction of travel from Tabs' onChange; 0 = plain fade. */
54
- dir?: -1 | 0 | 1;
55
- /** Panel content - only this inner node animates in on `tab` change; the root chrome stays static. */
56
- children?: ReactNode;
57
- /** Entrance timing for the inner content - motion tokens only, or `null` to disable.
58
- * @default duration 'base' + ease 'entrance' */
59
- animation?: DisableableAnimation;
60
- /** Extra class(es) merged onto the root. */
61
- className?: string;
62
- /** Inline styles merged onto the root. */
63
- style?: CSSProperties;
64
- }
65
- export interface TabPanelProps extends TabPanelOwnProps {
66
- /** Standard <div> attributes (data-*, aria-*, ...) forwarded to the root. */
67
- htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, keyof TabPanelOwnProps> & DataAttributes;
68
- }
69
- export declare function TabPanel({ tab, name, dir, className, style, children, animation, htmlProps }: TabPanelProps): import("react").JSX.Element;
70
- export {};
2
+ import type { TabsProps } from './types';
3
+ export type { TabItem, TabsProps } from './types';
4
+ export { TabPanel, type TabPanelProps } from './tab-panel';
5
+ export declare function Tabs({ items, value, onChange, name, ariaLabel, activateOn, variant, size, fill, className, style, htmlProps, }: TabsProps): import("react").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { type CSSProperties, type HTMLAttributes, type ReactNode } from 'react';
2
+ import type { DataAttributes } from '../../../dom-props';
3
+ import { type DisableableAnimation } from '../../../motion/timing';
4
+ interface TabPanelOwnProps {
5
+ /** The active tab's value - changing it cuts to the new content. */
6
+ tab: string;
7
+ /** Same `name` as the paired Tabs - wires role/id/aria-labelledby. */
8
+ name?: string;
9
+ /** Direction of travel from Tabs' onChange; 0 = plain fade. */
10
+ dir?: -1 | 0 | 1;
11
+ /** Panel content - only this inner node animates in on `tab` change; the root chrome stays static. */
12
+ children?: ReactNode;
13
+ /** Entrance timing for the inner content - motion tokens only, or `null` to disable.
14
+ * @default duration 'base' + ease 'entrance' */
15
+ animation?: DisableableAnimation;
16
+ /** Extra class(es) merged onto the root. */
17
+ className?: string;
18
+ /** Inline styles merged onto the root. */
19
+ style?: CSSProperties;
20
+ }
21
+ export interface TabPanelProps extends TabPanelOwnProps {
22
+ /** Standard <div> attributes (data-*, aria-*, ...) forwarded to the root. */
23
+ htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, keyof TabPanelOwnProps> & DataAttributes;
24
+ }
25
+ export declare function TabPanel({ tab, name, dir, className, style, children, animation, htmlProps }: TabPanelProps): import("react").JSX.Element;
26
+ export {};
@@ -0,0 +1,48 @@
1
+ import type { CSSProperties, HTMLAttributes, ReactNode } from 'react';
2
+ import type { DataAttributes } from '../../../dom-props';
3
+ import type { ActivateOn } from '../../internal/utils/activation';
4
+ /** One tab in the row. */
5
+ export interface TabItem {
6
+ /** Stable identity - also used in the tab/panel id pair. */
7
+ value: string;
8
+ /** Visible tab text. */
9
+ label: ReactNode;
10
+ /** Leading icon - your own node. */
11
+ icon?: ReactNode;
12
+ /** Rendered with tabular figures. Pass a number or a preformatted string. */
13
+ count?: number | string;
14
+ /** Dims the tab, blocks selection, and skips it during arrow-key travel. */
15
+ disabled?: boolean;
16
+ }
17
+ interface TabsOwnProps {
18
+ /** The tab row, in order. @default [] */
19
+ items: TabItem[];
20
+ /** Controlled - the value of the active tab (null/undefined hides the ink). */
21
+ value: string | null | undefined;
22
+ /** Fires on click and on arrow-key travel. `dir` is the direction of travel (+1 right, -1 left);
23
+ * hand it to TabPanel so content enters from that side. */
24
+ onChange?: (value: string, dir: 1 | -1) => void;
25
+ /** Shared id prefix wiring tab and panel aria. Give Tabs and its TabPanel the same `name`;
26
+ * omit it when the tabs have no managed panel. */
27
+ name?: string;
28
+ /** Accessible name for the tablist (e.g. "Section views"). */
29
+ ariaLabel?: string;
30
+ /** Whether a tab switches on `pointerdown` (snappier) or waits for `click`. @default 'pointerdown' */
31
+ activateOn?: ActivateOn;
32
+ /** Skin: an underline that reaches across (default), or a segmented pill riding an inset track. */
33
+ variant?: 'underline' | 'pill';
34
+ /** Tab height, type and padding. `'md'` and `'lg'` match `Button`'s steps; the default row sits
35
+ * just under them. @default 'sm' */
36
+ size?: 'sm' | 'md' | 'lg';
37
+ /** Stretch the row to its container and split it evenly between the tabs. */
38
+ fill?: boolean;
39
+ /** Extra class(es) merged onto the root. */
40
+ className?: string;
41
+ /** Inline styles merged onto the root. */
42
+ style?: CSSProperties;
43
+ }
44
+ export interface TabsProps extends TabsOwnProps {
45
+ /** Standard <div> attributes (data-*, aria-*, ...) forwarded to the root. */
46
+ htmlProps?: Omit<HTMLAttributes<HTMLDivElement>, keyof TabsOwnProps> & DataAttributes;
47
+ }
48
+ export {};
@@ -0,0 +1,5 @@
1
+ import { type RefObject } from 'react';
2
+ export declare function useInk(listRef: RefObject<HTMLDivElement | null>, value: string | null | undefined, count: number): {
3
+ inkRef: RefObject<HTMLSpanElement>;
4
+ tabRefs: RefObject<Record<string, HTMLButtonElement>>;
5
+ };
@@ -5,7 +5,7 @@ import { type Placement } from './tooltip-store';
5
5
  export interface TooltipProps {
6
6
  /** The hint - a string or small node; never interactive content. */
7
7
  content: ReactNode;
8
- /** Optional keyboard hint, rendered as mono metadata ("⌘↩", "S"). */
8
+ /** Optional keyboard hint, rendered as small metadata ("⌘↩", "S"). */
9
9
  shortcut?: string | null;
10
10
  /** Preferred side; flips automatically when out of viewport room. */
11
11
  placement?: Placement;
@@ -10,7 +10,7 @@ export interface SupportRailOwnProps {
10
10
  actions: SupportAction[];
11
11
  /** Panel heading, and the panel's accessible name. @default 'Talk to us' */
12
12
  title?: string;
13
- /** Small mono line under the heading - opening hours, queue depth, a shift note. */
13
+ /** Small line under the heading - opening hours, queue depth, a shift note. */
14
14
  status?: string;
15
15
  /** Container edge the rail pins to. Flips the tab, the morph origin and the panel's border. @default 'right' */
16
16
  side?: 'right' | 'left';
@@ -1,5 +1,5 @@
1
1
  import './lens.css';
2
- import { type HTMLAttributes, type ReactNode } from 'react';
2
+ import type { HTMLAttributes, ReactNode } from 'react';
3
3
  import type { DataAttributes } from '../../../dom-props';
4
4
  import type { LensStyle } from '../../../tokens/component-styles.generated';
5
5
  export interface LensOwnProps {
@@ -0,0 +1,2 @@
1
+ import { type Optics, type Parts } from './optics';
2
+ export declare function bindInput(parts: Parts, optics: Optics, wake: () => void, signal: AbortSignal): void;
@@ -0,0 +1,37 @@
1
+ export declare const clamp: (v: number, min: number, max: number) => number;
2
+ export interface Optics {
3
+ pointerX: number;
4
+ pointerY: number;
5
+ centreX: number;
6
+ centreY: number;
7
+ magnification: number;
8
+ opacity: number;
9
+ engaged: number;
10
+ pressed: number;
11
+ press: number;
12
+ speed: number;
13
+ angle: number;
14
+ width: number;
15
+ height: number;
16
+ offsetX: number;
17
+ offsetY: number;
18
+ acquired: boolean;
19
+ dirty: boolean;
20
+ sinceClone: number;
21
+ }
22
+ export interface Parts {
23
+ stage: HTMLElement;
24
+ content: HTMLElement;
25
+ glass: HTMLElement;
26
+ core: HTMLElement;
27
+ rim: HTMLElement;
28
+ fringe: HTMLElement;
29
+ specular: HTMLElement;
30
+ ring: HTMLElement;
31
+ }
32
+ export declare const createOptics: () => Optics;
33
+ export declare function cloneInto(host: HTMLElement, content: HTMLElement, width: number, height: number): void;
34
+ export declare function measure(parts: Parts, optics: Optics): void;
35
+ export declare function advance(optics: Optics, k: number, magnification: number): void;
36
+ export declare const atRest: (optics: Optics) => boolean;
37
+ export declare function settle(optics: Optics, magnification: number): void;
@@ -0,0 +1,2 @@
1
+ import type { Optics, Parts } from './optics';
2
+ export declare function paint(parts: Parts, optics: Optics, radius: number, chromatic: boolean): void;
@@ -0,0 +1,10 @@
1
+ export declare function useLens(magnification: number, radius: number, chromatic: boolean): {
2
+ stageRef: import("react").RefObject<HTMLDivElement>;
3
+ contentRef: import("react").RefObject<HTMLDivElement>;
4
+ glassRef: import("react").RefObject<HTMLDivElement>;
5
+ coreRef: import("react").RefObject<HTMLDivElement>;
6
+ rimRef: import("react").RefObject<HTMLDivElement>;
7
+ fringeRef: import("react").RefObject<HTMLDivElement>;
8
+ specularRef: import("react").RefObject<HTMLDivElement>;
9
+ ringRef: import("react").RefObject<HTMLDivElement>;
10
+ };
@@ -3,7 +3,7 @@ import { type HTMLAttributes } from 'react';
3
3
  import type { DataAttributes } from '../../../dom-props';
4
4
  import type { OdometerStyle } from '../../../tokens/component-styles.generated';
5
5
  export interface OdometerOwnProps {
6
- /** The number to roll to. Every digit column carries its own spring, so digits arrive out of sync. */
6
+ /** The number to roll to. Digits roll up when it rises and down when it falls, and the odometer counts from zero the first time it is scrolled into view. */
7
7
  value: number;
8
8
  /** Renders the value into the displayed string; digits become rolling columns, everything else becomes a static separator. @default String(Math.trunc(value)) */
9
9
  format?: (value: number) => string;
@@ -0,0 +1,18 @@
1
+ import { type Spring } from './spring';
2
+ export declare const MIN_ROLL = 0.08;
3
+ export declare const DIGIT: RegExp;
4
+ export declare const RUN_TEXT: string;
5
+ export type Slot = (HTMLElement | null)[];
6
+ export interface Place extends Spring {
7
+ digit: number;
8
+ roll: Animation | null;
9
+ gate: Spring;
10
+ reveal: Animation | null;
11
+ }
12
+ export declare const charAt: (core: string, i: number) => string;
13
+ export declare function parts(text: string): [string, string, string];
14
+ export declare const motions: (places: Place[]) => Animation[];
15
+ export declare function aim(places: Place[], grid: string, core: string, zero: number, seconds: number, dir: number): void;
16
+ export declare function launch(places: Place[], strips: Slot, cols: Slot, rate: number, paused: boolean): void;
17
+ export declare function hold(places: Place[], paused: boolean): void;
18
+ export declare function snap(places: Place[], cols: Slot, strips: Slot): void;