@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,20 +1,23 @@
1
- /** Names of the UI-transition duration scale (`--duration-*`):
2
- * - `fast` 140ms - micro feedback: hover washes, presses, control tint/border/shadow.
3
- * - `base` 200ms - standard element transitions: fades, toggles, badge morphs.
4
- * - `slow` 300ms - layout-scale movement: Collapse, panel resizes, reordering.
5
- * - `slower` 450ms - large-surface movement: dialogs, sheets, page-scale reveals.
6
- * - `slowest` 900ms - hero-scale movement: card expansion, container transforms. The scale's
7
- * ceiling: anything longer is choreography and belongs to Motion, not a transition token. */
8
- export type DurationToken = 'fast' | 'base' | 'slow' | 'slower' | 'slowest';
1
+ /** Names of the UI-transition duration scale (`--duration-*`), the studio's motion:
2
+ * - `fast` 140ms - micro feedback: hover washes, presses, control tint/border/shadow, an exit.
3
+ * - `base` 240ms - standard element transitions: fades, toggles, a pill gliding between rows.
4
+ * - `moderate` 320ms - small layout movement: a fold opening, a reorder, a FLIP to a new place.
5
+ * - `slow` 420ms - layout-scale movement: Collapse, panel resizes, a larger block arriving.
6
+ * - `slower` 600ms - large-surface movement: dialogs, sheets, an element flying across the page.
7
+ * - `slowest` 800ms - hero-scale movement: container morphs, slow cross-fades of a whole view. The
8
+ * scale's ceiling: anything longer is choreography and belongs to Motion, not a transition token. */
9
+ export type DurationToken = 'fast' | 'base' | 'moderate' | 'slow' | 'slower' | 'slowest';
9
10
 
10
11
  /** Names of the brand easing curves (`--ease-*`):
11
- * - `standard` cubic-bezier(0.2, 0, 0, 1) - brisk start, soft landing; the default for state changes.
12
- * - `entrance` cubic-bezier(0.16, 1, 0.3, 1) - hard deceleration; content arriving on screen.
13
- * - `exit` cubic-bezier(0.4, 0, 1, 1) - accelerates away; content leaving (pair with a faster duration).
14
- * - `spring` cubic-bezier(0.34, 1.4, 0.5, 1) - overshoots then settles; playful confirmations.
15
- * - `glide` cubic-bezier(0.32, 0.55, 0, 1) - fast out, soft landing; a persistent element moving to a
16
- * new target, never enter/exit. */
17
- export type EaseToken = 'standard' | 'entrance' | 'exit' | 'spring' | 'glide';
12
+ * - `standard` cubic-bezier(0.2, 0, 0, 1) - brisk start, soft landing; state changes and the press.
13
+ * - `entrance` cubic-bezier(0.22, 1, 0.36, 1) - hard deceleration; content arriving on screen.
14
+ * - `exit` cubic-bezier(0.3, 0, 0.3, 1) - soft at both ends; content leaving (pair with a faster duration).
15
+ * - `spring` cubic-bezier(0.3, 1.5, 0.5, 1) - overshoots then settles; pop-ins and confirmations.
16
+ * - `glide` cubic-bezier(0.22, 1, 0.36, 1) - fast out, soft landing; a persistent element moving to a
17
+ * new target, never enter/exit.
18
+ * - `move` cubic-bezier(0.55, 0, 0.15, 1) - gathers, then lands; travel across space: a fold, a FLIP,
19
+ * a flight. */
20
+ export type EaseToken = 'standard' | 'entrance' | 'exit' | 'spring' | 'glide' | 'move';
18
21
 
19
22
  export type DistanceToken = 'sm' | 'md' | 'lg';
20
23
 
@@ -27,7 +27,7 @@ export type Bezier = [number, number, number, number];
27
27
  export type { DistanceToken, DurationToken, EaseToken, ScaleToken } from './motion-scale';
28
28
 
29
29
  export interface MotionTokens {
30
- /** seconds - fast 0.14 - base 0.2 - slow 0.3 - slower 0.45 - slowest 0.9 */
30
+ /** seconds - fast 0.14 - base 0.24 - moderate 0.32 - slow 0.42 - slower 0.6 - slowest 0.8 */
31
31
  dur: Record<DurationToken, number>;
32
32
  ease: Record<EaseToken, Bezier>;
33
33
  dist: Record<DistanceToken, number>;
@@ -45,8 +45,8 @@ export interface MotionTokens {
45
45
 
46
46
  type MotionScales = Pick<MotionTokens, 'dur' | 'ease' | 'dist' | 'scale'>;
47
47
 
48
- const DURATION_TOKENS: DurationToken[] = ['fast', 'base', 'slow', 'slower', 'slowest'];
49
- const EASE_TOKENS: EaseToken[] = ['standard', 'entrance', 'exit', 'spring', 'glide'];
48
+ const DURATION_TOKENS: DurationToken[] = ['fast', 'base', 'moderate', 'slow', 'slower', 'slowest'];
49
+ const EASE_TOKENS: EaseToken[] = ['standard', 'entrance', 'exit', 'spring', 'glide', 'move'];
50
50
  const DISTANCE_TOKENS: DistanceToken[] = ['sm', 'md', 'lg'];
51
51
  const SCALE_TOKENS: ScaleToken[] = ['panel', 'floating', 'chip'];
52
52
 
@@ -69,7 +69,7 @@ function build(scales: MotionScales): MotionTokens {
69
69
  t: {
70
70
  enter: { duration: dur.base, ease: ease.entrance },
71
71
  exit: { duration: dur.fast, ease: ease.exit },
72
- layout: { duration: dur.slow, ease: ease.entrance },
72
+ layout: { duration: dur.base, ease: ease.entrance },
73
73
  settle: reduced ? { duration: 0 } : { type: 'spring', visualDuration: dur.fast, bounce: 0.25 },
74
74
  glide: { duration: dur.base, ease: ease.glide },
75
75
  },
@@ -2,24 +2,31 @@
2
2
 
3
3
  @layer zyncat.tokens {
4
4
  :root {
5
- --duration-fast: 140ms; /* micro feedback - hover washes, presses, control tint */
6
- --duration-base: 200ms; /* standard element transitions - fades, toggles, badge morphs */
7
- --duration-slow: 300ms; /* layout-scale movement - Collapse, panel resizes, reordering */
8
- --duration-slower: 450ms; /* large-surface movement - dialog, sheet, page-scale reveals */
9
- --duration-slowest: 900ms; /* hero-scale movement - card expansion, container transforms */
5
+ --duration-fast: 140ms; /* micro feedback - hover washes, presses, control tint, an exit */
6
+ --duration-base: 240ms; /* standard element transitions - fades, toggles, a pill gliding between rows */
7
+ --duration-moderate: 320ms; /* small layout movement - a fold opening, a reorder, a FLIP to a new place */
8
+ --duration-slow: 420ms; /* layout-scale movement - Collapse, panel resizes, a larger block arriving */
9
+ --duration-slower: 600ms; /* large-surface movement - dialog, sheet, an element flying across the page */
10
+ --duration-slowest: 800ms; /* hero-scale movement - container morphs, slow cross-fades of a whole view */
10
11
  --duration-spin: 1000ms; /* continuous loaders only, outside the UI-transition scale */
11
12
  --duration-pulse: 1600ms; /* ambient breathing, not collapsed under reduced motion */
12
13
 
13
- --ease-standard: cubic-bezier(0.2, 0, 0, 1);
14
- --ease-entrance: cubic-bezier(0.25, 1, 0.4, 1);
15
- --ease-exit: cubic-bezier(0.4, 0, 1, 1);
16
- --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
14
+ --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* brisk start, soft landing - state changes and the press */
15
+ --ease-entrance: cubic-bezier(0.22, 1, 0.36, 1); /* hard deceleration - content arriving, a figure rolling */
16
+ --ease-exit: cubic-bezier(0.3, 0, 0.3, 1); /* soft both ends - content leaving, a fade away */
17
+ --ease-spring: cubic-bezier(0.3, 1.5, 0.5, 1); /* overshoots then settles - a pop-in, a confirmation */
17
18
  --ease-glide: cubic-bezier(
18
- 0.32,
19
+ 0.22,
20
+ 1,
21
+ 0.36,
22
+ 1
23
+ ); /* fast out, soft landing - a persistent element moving to a new target, never enter/exit */
24
+ --ease-move: cubic-bezier(
19
25
  0.55,
20
26
  0,
27
+ 0.15,
21
28
  1
22
- ); /* fast out, soft landing - a persistent element moving to a new target, never enter/exit */
29
+ ); /* gathers then lands - travel across space: a fold, a FLIP, a flight */
23
30
 
24
31
  --distance-sm: 0.5rem; /* 8px - settling into place */
25
32
  --distance-md: 1rem; /* 16px - arriving from an adjacent position - page turns, tab panels, paged ranges */
@@ -48,6 +55,7 @@
48
55
  :root {
49
56
  --duration-fast: 1ms;
50
57
  --duration-base: 1ms;
58
+ --duration-moderate: 1ms;
51
59
  --duration-slow: 1ms;
52
60
  --duration-slower: 1ms;
53
61
  --duration-slowest: 1ms;
@@ -6,6 +6,7 @@
6
6
  -webkit-text-size-adjust: 100%;
7
7
  text-size-adjust: 100%;
8
8
  tab-size: 4;
9
+ -webkit-tap-highlight-color: transparent;
9
10
  }
10
11
 
11
12
  *,
@@ -23,9 +23,16 @@
23
23
  /* The ink on a strong-ink fill - the canvas colour in either polarity. */
24
24
  --text-inverse: var(--gray-0);
25
25
 
26
- --border-subtle: var(--gray-150);
27
- --border-default: var(--gray-200);
28
- --border-strong: var(--gray-300);
26
+ /* One rung lighter than the ink roles: Stripe hangs its hairline on gray-150, not gray-200. */
27
+ --border-subtle: var(--gray-100);
28
+ --border-default: var(--gray-150);
29
+ --border-strong: var(--gray-200);
30
+
31
+ /* Stripe's slate rung at the alpha that lands its hover face exactly on the canvas: translucent,
32
+ so a tinted surface still shows through instead of being covered. Held at the ramp's distance
33
+ from --neutral, so a retint carries the hover with it. */
34
+ --bg-hover: oklch(from var(--neutral) 0.896 0.0186 calc(h - 9.7) / 0.246);
35
+ --bg-press: oklch(from var(--neutral) 0.896 0.0186 calc(h - 9.7) / 0.291);
29
36
  }
30
37
 
31
38
  :root,
@@ -36,31 +43,30 @@
36
43
  --accent-lift: oklch(from var(--accent) calc(l + 0.075) calc(c - 0.006) h);
37
44
  --accent-hover: oklch(from var(--accent) calc(l - 0.07) calc(c - 0.004) h);
38
45
  --accent-active: oklch(from var(--accent) calc(l - 0.152) calc(c - 0.018) h);
39
- --accent-subtle: oklch(from var(--accent) 0.972 0.02 h);
40
- --accent-border: oklch(from var(--accent) 0.88 0.066 h);
41
- --accent-disabled: oklch(from var(--accent) 0.795 0.092 h);
46
+ --accent-subtle: oklch(from var(--accent) 0.972 min(c, 0.02) h);
47
+ --accent-border: oklch(from var(--accent) 0.88 min(c, 0.066) h);
48
+ --accent-disabled: oklch(from var(--accent) 0.795 min(c, 0.092) h);
42
49
  --accent-wash: oklch(from var(--accent) l c h / 0.08);
43
- --text-accent: var(--accent-active);
50
+ --text-accent: oklch(from var(--accent) calc(l - 0.17) calc(c - 0.018) h);
44
51
 
45
52
  /* The ink on a hue fill - the ramp's lightest rung in either polarity. */
46
53
  --text-on-accent: var(--gray-0);
47
54
 
48
- /* Translucent washes of the ink, never opaque near-whites. */
49
- --neutral-wash: color-mix(in oklab, var(--text-secondary) 6%, transparent);
50
- --neutral-wash-press: color-mix(in oklab, var(--text-secondary) 10%, transparent);
55
+ --neutral-wash: var(--bg-hover);
56
+ --neutral-wash-press: var(--bg-press);
51
57
 
52
58
  /* The accent's hue one step down - repoint it for a hue of its own. */
53
59
  --info: var(--accent-hover);
54
- --info-subtle: oklch(from var(--info) 0.972 0.02 h);
55
- --info-text: oklch(from var(--info) calc(l - 0.082) calc(c - 0.014) h);
56
- --info-wash: oklch(from var(--info) 0.63 0.118 h / 0.08);
60
+ --info-subtle: oklch(from var(--info) 0.972 min(c, 0.02) h);
61
+ --info-text: oklch(from var(--info) calc(l - 0.1) calc(c - 0.014) h);
62
+ --info-wash: oklch(from var(--info) 0.63 min(c, 0.118) h / 0.08);
57
63
 
58
64
  --success-subtle: oklch(from var(--success) 0.965 0.028 h);
59
65
  --success-text: oklch(from var(--success) calc(l - 0.086) calc(c - 0.022) h);
60
66
  --success-wash: oklch(from var(--success) 0.62 0.13 h / 0.1);
61
67
 
62
68
  --warning-subtle: oklch(from var(--warning) 0.972 0.034 h);
63
- --warning-text: oklch(from var(--warning) calc(l - 0.14) calc(c - 0.024) h);
69
+ --warning-text: oklch(from var(--warning) calc(l - 0.16) calc(c - 0.024) h);
64
70
  --warning-wash: oklch(from var(--warning) 0.76 0.14 h / 0.12);
65
71
 
66
72
  /* The destructive button's hover face, above --danger-fill. */
@@ -16,9 +16,11 @@
16
16
 
17
17
  --measure-prose: 38rem;
18
18
 
19
- --control-height-sm: 1.75rem;
20
- --control-height: 2rem;
21
- --control-height-lg: 2.3rem;
19
+ --control-height-xs: 1.75rem; /* 28px - the dense step for toolbars; a control opts in to it */
20
+ --control-height-sm: 2rem; /* 32px */
21
+ --control-height: 2.25rem; /* 36px */
22
+ --control-height-lg: 2.5rem; /* 40px */
23
+ --control-height-xl: 2.75rem; /* 44px - the touch-target step; a control opts in to it */
22
24
  --control-box: 1.125rem;
23
25
  --control-switch: 1.25rem; /* the switch track - the one control size off the scale */
24
26
 
@@ -17,10 +17,10 @@ export interface ThemeState {
17
17
  }
18
18
 
19
19
  export interface ThemeControls extends ThemeState {
20
- /** Switch the palette; the side stays. */
21
- setTheme(theme: string): void;
22
- /** Pick a side, or `system` to follow the OS setting. */
23
- setPolarity(polarity: PolarityPreference): void;
20
+ /** Switch the palette; the side stays. `options.origin` is where the transition spreads from. */
21
+ setTheme(theme: string, options?: ThemePreferenceOptions): void;
22
+ /** Pick a side, or `system` to follow the OS setting. `options.origin` is where the transition spreads from. */
23
+ setPolarity(polarity: PolarityPreference, options?: ThemePreferenceOptions): void;
24
24
  }
25
25
 
26
26
  export type ThemeBootConfig = { key: string; declared: ThemeState };
@@ -8,8 +8,10 @@ import * as store from './theme-store';
8
8
 
9
9
  const loadThemeTransition = () => import('../components/expressive/theme-transition/theme-transition');
10
10
 
11
- const setTheme = (theme: string) => store.setThemePreference({ theme });
12
- const setPolarity = (polarity: store.PolarityPreference) => store.setThemePreference({ polarity });
11
+ const setTheme = (theme: string, options?: store.ThemePreferenceOptions) =>
12
+ store.setThemePreference({ theme }, options);
13
+ const setPolarity = (polarity: store.PolarityPreference, options?: store.ThemePreferenceOptions) =>
14
+ store.setThemePreference({ polarity }, options);
13
15
 
14
16
  export function useTheme(): store.ThemeControls {
15
17
  const state = useSyncExternalStore(store.subscribeTheme, store.getThemeSnapshot, store.getServerThemeSnapshot);
@@ -24,6 +24,10 @@ export interface ColorBgTokens {
24
24
  inset?: string | number;
25
25
  /** `--bg-overlay`. Default: `color-mix(in oklab, var(--gray-900) 44%, transparent)`. Dark: `oklch(from var(--neutral) 0.06 0.004 h / 0.64)`. */
26
26
  overlay?: string | number;
27
+ /** `--bg-hover` - Stripe's slate rung at the alpha that lands its hover face exactly on the canvas: translucent, so a tinted surface still shows through instead of being covered. Held at the ramp's distance from --neutral, so a retint carries the hover with it. Default: `oklch(from var(--neutral) 0.896 0.0186 calc(h - 9.7) / 0.246)`. Dark: `color-mix(in oklab, var(--text-secondary) 6%, transparent)`. */
28
+ hover?: string | number;
29
+ /** `--bg-press`. Default: `oklch(from var(--neutral) 0.896 0.0186 calc(h - 9.7) / 0.291)`. Dark: `color-mix(in oklab, var(--text-secondary) 10%, transparent)`. */
30
+ press?: string | number;
27
31
  }
28
32
 
29
33
  /** Ink, from strong to disabled, and the faces on a fill. */
@@ -46,19 +50,19 @@ export interface ColorTextTokens {
46
50
 
47
51
  /** Hairlines, from subtle to strong. */
48
52
  export interface ColorBorderTokens {
49
- /** `--border-subtle`. Default: `var(--gray-150)`. Dark: `oklch(from var(--neutral) 0.265 0.008 h)`. */
53
+ /** `--border-subtle` - One rung lighter than the ink roles: Stripe hangs its hairline on gray-150, not gray-200. Default: `var(--gray-100)`. Dark: `oklch(from var(--neutral) 0.265 0.008 h)`. */
50
54
  subtle?: string | number;
51
- /** `--border-default`. Default: `var(--gray-200)`. Dark: `oklch(from var(--neutral) 0.315 0.009 h)`. */
55
+ /** `--border-default`. Default: `var(--gray-150)`. Dark: `oklch(from var(--neutral) 0.315 0.009 h)`. */
52
56
  default?: string | number;
53
- /** `--border-strong`. Default: `var(--gray-300)`. Dark: `oklch(from var(--neutral) 0.4 0.011 h)`. */
57
+ /** `--border-strong`. Default: `var(--gray-200)`. Dark: `oklch(from var(--neutral) 0.4 0.011 h)`. */
54
58
  strong?: string | number;
55
59
  }
56
60
 
57
61
  /** The hues, and the neutral roles a light or dark theme sets directly. */
58
62
  export interface ColorTokens {
59
- /** `--accent` - The brand hue - hover, active, lift, subtle, border, wash, the focus ring and info follow. Default: `oklch(0.63 0.118 198)`. */
63
+ /** `--accent` - The brand hue - hover, active, lift, subtle, border, wash, the focus ring and info follow. Default: `oklch(0.7 0.118 198)`. */
60
64
  accent?: string | number;
61
- /** `--neutral` - The gray ramp's hue - the accent by default, so chrome shares its temperature. Default: `var(--accent)`. */
65
+ /** `--neutral` - The middle of the gray ramp - every rung holds its hue distance from this one, so moving it retints the whole ramp. Stripe's gray-500 lightness and chroma over the accent's hue, so the grays carry the brand temperature; give it a literal hue for a ramp that does not follow. Default: `oklch(from var(--accent) 0.553 0.031 h)`. */
62
66
  neutral?: string | number;
63
67
  /** `--success` - Positive status - its subtle, text and wash follow. Default: `oklch(0.548 0.122 152)`. */
64
68
  success?: string | number;
@@ -96,15 +100,17 @@ export interface ShapeTokens {
96
100
 
97
101
  /** The time bands. */
98
102
  export interface MotionDurationTokens {
99
- /** `--duration-fast` - micro feedback - hover washes, presses, control tint. Default: `140ms`. Collapses to `1ms` under reduced motion. */
103
+ /** `--duration-fast` - micro feedback - hover washes, presses, control tint, an exit. Default: `140ms`. Collapses to `1ms` under reduced motion. */
100
104
  fast?: string | number;
101
- /** `--duration-base` - standard element transitions - fades, toggles, badge morphs. Default: `200ms`. Collapses to `1ms` under reduced motion. */
105
+ /** `--duration-base` - standard element transitions - fades, toggles, a pill gliding between rows. Default: `240ms`. Collapses to `1ms` under reduced motion. */
102
106
  base?: string | number;
103
- /** `--duration-slow` - layout-scale movement - Collapse, panel resizes, reordering. Default: `300ms`. Collapses to `1ms` under reduced motion. */
107
+ /** `--duration-moderate` - small layout movement - a fold opening, a reorder, a FLIP to a new place. Default: `320ms`. Collapses to `1ms` under reduced motion. */
108
+ moderate?: string | number;
109
+ /** `--duration-slow` - layout-scale movement - Collapse, panel resizes, a larger block arriving. Default: `420ms`. Collapses to `1ms` under reduced motion. */
104
110
  slow?: string | number;
105
- /** `--duration-slower` - large-surface movement - dialog, sheet, page-scale reveals. Default: `450ms`. Collapses to `1ms` under reduced motion. */
111
+ /** `--duration-slower` - large-surface movement - dialog, sheet, an element flying across the page. Default: `600ms`. Collapses to `1ms` under reduced motion. */
106
112
  slower?: string | number;
107
- /** `--duration-slowest` - hero-scale movement - card expansion, container transforms. Default: `900ms`. Collapses to `1ms` under reduced motion. */
113
+ /** `--duration-slowest` - hero-scale movement - container morphs, slow cross-fades of a whole view. Default: `800ms`. Collapses to `1ms` under reduced motion. */
108
114
  slowest?: string | number;
109
115
  /** `--duration-spin` - continuous loaders only, outside the UI-transition scale. Default: `1000ms`. Collapses to `2000ms` under reduced motion. */
110
116
  spin?: string | number;
@@ -114,16 +120,18 @@ export interface MotionDurationTokens {
114
120
 
115
121
  /** The brand curves. */
116
122
  export interface MotionEaseTokens {
117
- /** `--ease-standard`. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
123
+ /** `--ease-standard` - brisk start, soft landing - state changes and the press. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
118
124
  standard?: string | number;
119
- /** `--ease-entrance`. Default: `cubic-bezier(0.25, 1, 0.4, 1)`. */
125
+ /** `--ease-entrance` - hard deceleration - content arriving, a figure rolling. Default: `cubic-bezier(0.22, 1, 0.36, 1)`. */
120
126
  entrance?: string | number;
121
- /** `--ease-exit`. Default: `cubic-bezier(0.4, 0, 1, 1)`. */
127
+ /** `--ease-exit` - soft both ends - content leaving, a fade away. Default: `cubic-bezier(0.3, 0, 0.3, 1)`. */
122
128
  exit?: string | number;
123
- /** `--ease-spring`. Default: `cubic-bezier(0.34, 1.4, 0.5, 1)`. */
129
+ /** `--ease-spring` - overshoots then settles - a pop-in, a confirmation. Default: `cubic-bezier(0.3, 1.5, 0.5, 1)`. */
124
130
  spring?: string | number;
125
- /** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.32, 0.55, 0, 1 )`. */
131
+ /** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.22, 1, 0.36, 1 )`. */
126
132
  glide?: string | number;
133
+ /** `--ease-move` - gathers then lands - travel across space: a fold, a FLIP, a flight. Default: `cubic-bezier( 0.55, 0, 0.15, 1 )`. */
134
+ move?: string | number;
127
135
  }
128
136
 
129
137
  /** How far a surface travels on the way in or out. */
@@ -284,8 +292,6 @@ export interface OdometerTokens {
284
292
  gap?: string | number;
285
293
  /** `--odometer-ink` - Digit ink. Default: `var(--text-strong)`. */
286
294
  ink?: string | number;
287
- /** `--odometer-accent` - The tint digits take while they roll fast. Default: `var(--accent)`. */
288
- accent?: string | number;
289
295
  /** `--odometer-separator-ink` - The thousands separator. Default: `var(--text-muted)`. */
290
296
  separatorInk?: string | number;
291
297
  /** `--odometer-size` - Digit size. Default: `var(--size-display)`. */
@@ -409,7 +415,7 @@ export interface ComponentTokens {
409
415
  * `custom` in a theme and behind the `style` prop of every component.
410
416
  */
411
417
  export interface TokenProperties {
412
- /** `--accent` - The brand hue - hover, active, lift, subtle, border, wash, the focus ring and info follow. Default: `oklch(0.63 0.118 198)`. */
418
+ /** `--accent` - The brand hue - hover, active, lift, subtle, border, wash, the focus ring and info follow. Default: `oklch(0.7 0.118 198)`. */
413
419
  '--accent'?: string | number;
414
420
  /** `--success` - Positive status - its subtle, text and wash follow. Default: `oklch(0.548 0.122 152)`. */
415
421
  '--success'?: string | number;
@@ -417,7 +423,7 @@ export interface TokenProperties {
417
423
  '--warning'?: string | number;
418
424
  /** `--danger` - Destructive actions and errors - the danger button ladder, ring, subtle, text and wash follow. Default: `oklch(0.545 0.196 27)`. */
419
425
  '--danger'?: string | number;
420
- /** `--neutral` - The gray ramp's hue - the accent by default, so chrome shares its temperature. Default: `var(--accent)`. */
426
+ /** `--neutral` - The middle of the gray ramp - every rung holds its hue distance from this one, so moving it retints the whole ramp. Stripe's gray-500 lightness and chroma over the accent's hue, so the grays carry the brand temperature; give it a literal hue for a ramp that does not follow. Default: `oklch(from var(--accent) 0.553 0.031 h)`. */
421
427
  '--neutral'?: string | number;
422
428
  /** `--radius` - Roundness - every --radius-<step> is a fixed ratio of it, 0 squaring every corner. Default: `0.5rem`. */
423
429
  '--radius'?: string | number;
@@ -425,33 +431,33 @@ export interface TokenProperties {
425
431
  '--font-body'?: string | number;
426
432
  /** `--font-code` - The code face - --type-code follows. The package loads no webfont; point this at yours. Default: `ui-monospace, 'SF Mono', 'Menlo', monospace`. */
427
433
  '--font-code'?: string | number;
428
- /** `--gray-0` - The top of the ramp, not pure white: it carries --neutral like every rung below it. Default: `oklch(from var(--neutral) 0.995 0.002 h)`. Re-derived on every theme root. */
434
+ /** `--gray-0` - Stripe's neutral ramp, rung for rung: --neutral is its midpoint, and every step holds that hue's distance from it, so a new --neutral carries the whole ramp with it. The top rung is pure white - the only rung Stripe leaves untinted. Default: `oklch(from var(--neutral) 1 0 h)`. Re-derived on every theme root. */
429
435
  '--gray-0'?: string | number;
430
- /** `--gray-50`. Default: `oklch(from var(--neutral) 0.984 0.003 h)`. Re-derived on every theme root. */
436
+ /** `--gray-50`. Default: `oklch(from var(--neutral) 0.978 0.0034 calc(h - 12.4))`. Re-derived on every theme root. */
431
437
  '--gray-50'?: string | number;
432
- /** `--gray-100`. Default: `oklch(from var(--neutral) 0.97 0.004 h)`. Re-derived on every theme root. */
438
+ /** `--gray-100`. Default: `oklch(from var(--neutral) 0.948 0.0052 calc(h - 12.4))`. Re-derived on every theme root. */
433
439
  '--gray-100'?: string | number;
434
- /** `--gray-150`. Default: `oklch(from var(--neutral) 0.954 0.005 h)`. Re-derived on every theme root. */
440
+ /** `--gray-150`. Default: `oklch(from var(--neutral) 0.889 0.0105 calc(h - 12.3))`. Re-derived on every theme root. */
435
441
  '--gray-150'?: string | number;
436
- /** `--gray-200`. Default: `oklch(from var(--neutral) 0.924 0.006 h)`. Re-derived on every theme root. */
442
+ /** `--gray-200`. Default: `oklch(from var(--neutral) 0.83 0.0165 calc(h - 6.4))`. Re-derived on every theme root. */
437
443
  '--gray-200'?: string | number;
438
- /** `--gray-300`. Default: `oklch(from var(--neutral) 0.874 0.007 h)`. Re-derived on every theme root. */
444
+ /** `--gray-300`. Default: `oklch(from var(--neutral) 0.742 0.0226 calc(h - 1.1))`. Re-derived on every theme root. */
439
445
  '--gray-300'?: string | number;
440
- /** `--gray-400`. Default: `oklch(from var(--neutral) 0.765 0.009 h)`. Re-derived on every theme root. */
446
+ /** `--gray-400`. Default: `oklch(from var(--neutral) 0.651 0.0247 calc(h + 0.4))`. Re-derived on every theme root. */
441
447
  '--gray-400'?: string | number;
442
- /** `--gray-500`. Default: `oklch(from var(--neutral) 0.642 0.011 h)`. Re-derived on every theme root. */
448
+ /** `--gray-500`. Default: `oklch(from var(--neutral) 0.553 0.031 h)`. Re-derived on every theme root. */
443
449
  '--gray-500'?: string | number;
444
- /** `--gray-600`. Default: `oklch(from var(--neutral) 0.532 0.012 h)`. Re-derived on every theme root. */
450
+ /** `--gray-600`. Default: `oklch(from var(--neutral) 0.466 0.0267 calc(h + 11.4))`. Re-derived on every theme root. */
445
451
  '--gray-600'?: string | number;
446
- /** `--gray-700`. Default: `oklch(from var(--neutral) 0.422 0.012 h)`. Re-derived on every theme root. */
452
+ /** `--gray-700`. Default: `oklch(from var(--neutral) 0.392 0.0226 calc(h + 11.6))`. Re-derived on every theme root. */
447
453
  '--gray-700'?: string | number;
448
- /** `--gray-800`. Default: `oklch(from var(--neutral) 0.305 0.01 h)`. Re-derived on every theme root. */
454
+ /** `--gray-800`. Default: `oklch(from var(--neutral) 0.317 0.0214 calc(h + 21.1))`. Re-derived on every theme root. */
449
455
  '--gray-800'?: string | number;
450
- /** `--gray-900`. Default: `oklch(from var(--neutral) 0.225 0.008 h)`. Re-derived on every theme root. */
456
+ /** `--gray-900`. Default: `oklch(from var(--neutral) 0.226 0.0194 calc(h + 20))`. Re-derived on every theme root. */
451
457
  '--gray-900'?: string | number;
452
- /** `--gray-950`. Default: `oklch(from var(--neutral) 0.165 0.007 h)`. Re-derived on every theme root. */
458
+ /** `--gray-950`. Default: `oklch(from var(--neutral) 0.181 0.0185 calc(h + 19.2))`. Re-derived on every theme root. */
453
459
  '--gray-950'?: string | number;
454
- /** `--shadow-rgb` - Cool near-black on the white canvas. Default: `15 22 25`. Dark: `0 0 0`. */
460
+ /** `--shadow-rgb` - Cool near-black on the white canvas. Default: `16 17 26`. Dark: `0 0 0`. */
455
461
  '--shadow-rgb'?: string | number;
456
462
  /** `--weight-regular`. Default: `400`. */
457
463
  '--weight-regular'?: string | number;
@@ -551,12 +557,16 @@ export interface TokenProperties {
551
557
  '--space-10'?: string | number;
552
558
  /** `--measure-prose`. Default: `38rem`. */
553
559
  '--measure-prose'?: string | number;
554
- /** `--control-height-sm`. Default: `1.75rem`. */
560
+ /** `--control-height-xs` - 28px - the dense step for toolbars; a control opts in to it. Default: `1.75rem`. */
561
+ '--control-height-xs'?: string | number;
562
+ /** `--control-height-sm` - 32px. Default: `2rem`. */
555
563
  '--control-height-sm'?: string | number;
556
- /** `--control-height`. Default: `2rem`. */
564
+ /** `--control-height` - 36px. Default: `2.25rem`. */
557
565
  '--control-height'?: string | number;
558
- /** `--control-height-lg`. Default: `2.3rem`. */
566
+ /** `--control-height-lg` - 40px. Default: `2.5rem`. */
559
567
  '--control-height-lg'?: string | number;
568
+ /** `--control-height-xl` - 44px - the touch-target step; a control opts in to it. Default: `2.75rem`. */
569
+ '--control-height-xl'?: string | number;
560
570
  /** `--control-box`. Default: `1.125rem`. */
561
571
  '--control-box'?: string | number;
562
572
  /** `--control-switch` - the switch track - the one control size off the scale. Default: `1.25rem`. */
@@ -635,30 +645,34 @@ export interface TokenProperties {
635
645
  '--glow-accent'?: string | number;
636
646
  /** `--glow-danger`. Default: `0 4px 16px oklch(from var(--danger) 0.602 0.196 h / calc(0.4 * var(--glow-strength)))`. Re-derived on every theme root. */
637
647
  '--glow-danger'?: string | number;
638
- /** `--duration-fast` - micro feedback - hover washes, presses, control tint. Default: `140ms`. Collapses to `1ms` under reduced motion. */
648
+ /** `--duration-fast` - micro feedback - hover washes, presses, control tint, an exit. Default: `140ms`. Collapses to `1ms` under reduced motion. */
639
649
  '--duration-fast'?: string | number;
640
- /** `--duration-base` - standard element transitions - fades, toggles, badge morphs. Default: `200ms`. Collapses to `1ms` under reduced motion. */
650
+ /** `--duration-base` - standard element transitions - fades, toggles, a pill gliding between rows. Default: `240ms`. Collapses to `1ms` under reduced motion. */
641
651
  '--duration-base'?: string | number;
642
- /** `--duration-slow` - layout-scale movement - Collapse, panel resizes, reordering. Default: `300ms`. Collapses to `1ms` under reduced motion. */
652
+ /** `--duration-moderate` - small layout movement - a fold opening, a reorder, a FLIP to a new place. Default: `320ms`. Collapses to `1ms` under reduced motion. */
653
+ '--duration-moderate'?: string | number;
654
+ /** `--duration-slow` - layout-scale movement - Collapse, panel resizes, a larger block arriving. Default: `420ms`. Collapses to `1ms` under reduced motion. */
643
655
  '--duration-slow'?: string | number;
644
- /** `--duration-slower` - large-surface movement - dialog, sheet, page-scale reveals. Default: `450ms`. Collapses to `1ms` under reduced motion. */
656
+ /** `--duration-slower` - large-surface movement - dialog, sheet, an element flying across the page. Default: `600ms`. Collapses to `1ms` under reduced motion. */
645
657
  '--duration-slower'?: string | number;
646
- /** `--duration-slowest` - hero-scale movement - card expansion, container transforms. Default: `900ms`. Collapses to `1ms` under reduced motion. */
658
+ /** `--duration-slowest` - hero-scale movement - container morphs, slow cross-fades of a whole view. Default: `800ms`. Collapses to `1ms` under reduced motion. */
647
659
  '--duration-slowest'?: string | number;
648
660
  /** `--duration-spin` - continuous loaders only, outside the UI-transition scale. Default: `1000ms`. Collapses to `2000ms` under reduced motion. */
649
661
  '--duration-spin'?: string | number;
650
662
  /** `--duration-pulse` - ambient breathing, not collapsed under reduced motion. Default: `1600ms`. */
651
663
  '--duration-pulse'?: string | number;
652
- /** `--ease-standard`. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
664
+ /** `--ease-standard` - brisk start, soft landing - state changes and the press. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
653
665
  '--ease-standard'?: string | number;
654
- /** `--ease-entrance`. Default: `cubic-bezier(0.25, 1, 0.4, 1)`. */
666
+ /** `--ease-entrance` - hard deceleration - content arriving, a figure rolling. Default: `cubic-bezier(0.22, 1, 0.36, 1)`. */
655
667
  '--ease-entrance'?: string | number;
656
- /** `--ease-exit`. Default: `cubic-bezier(0.4, 0, 1, 1)`. */
668
+ /** `--ease-exit` - soft both ends - content leaving, a fade away. Default: `cubic-bezier(0.3, 0, 0.3, 1)`. */
657
669
  '--ease-exit'?: string | number;
658
- /** `--ease-spring`. Default: `cubic-bezier(0.34, 1.4, 0.5, 1)`. */
670
+ /** `--ease-spring` - overshoots then settles - a pop-in, a confirmation. Default: `cubic-bezier(0.3, 1.5, 0.5, 1)`. */
659
671
  '--ease-spring'?: string | number;
660
- /** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.32, 0.55, 0, 1 )`. */
672
+ /** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.22, 1, 0.36, 1 )`. */
661
673
  '--ease-glide'?: string | number;
674
+ /** `--ease-move` - gathers then lands - travel across space: a fold, a FLIP, a flight. Default: `cubic-bezier( 0.55, 0, 0.15, 1 )`. */
675
+ '--ease-move'?: string | number;
662
676
  /** `--distance-sm` - 8px - settling into place. Default: `0.5rem`. */
663
677
  '--distance-sm'?: string | number;
664
678
  /** `--distance-md` - 16px - arriving from an adjacent position - page turns, tab panels, paged ranges. Default: `1rem`. */
@@ -723,12 +737,16 @@ export interface TokenProperties {
723
737
  '--text-disabled'?: string | number;
724
738
  /** `--text-inverse` - The ink on a strong-ink fill - the canvas colour in either polarity. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.165 0.006 h)`. */
725
739
  '--text-inverse'?: string | number;
726
- /** `--border-subtle`. Default: `var(--gray-150)`. Dark: `oklch(from var(--neutral) 0.265 0.008 h)`. */
740
+ /** `--border-subtle` - One rung lighter than the ink roles: Stripe hangs its hairline on gray-150, not gray-200. Default: `var(--gray-100)`. Dark: `oklch(from var(--neutral) 0.265 0.008 h)`. */
727
741
  '--border-subtle'?: string | number;
728
- /** `--border-default`. Default: `var(--gray-200)`. Dark: `oklch(from var(--neutral) 0.315 0.009 h)`. */
742
+ /** `--border-default`. Default: `var(--gray-150)`. Dark: `oklch(from var(--neutral) 0.315 0.009 h)`. */
729
743
  '--border-default'?: string | number;
730
- /** `--border-strong`. Default: `var(--gray-300)`. Dark: `oklch(from var(--neutral) 0.4 0.011 h)`. */
744
+ /** `--border-strong`. Default: `var(--gray-200)`. Dark: `oklch(from var(--neutral) 0.4 0.011 h)`. */
731
745
  '--border-strong'?: string | number;
746
+ /** `--bg-hover` - Stripe's slate rung at the alpha that lands its hover face exactly on the canvas: translucent, so a tinted surface still shows through instead of being covered. Held at the ramp's distance from --neutral, so a retint carries the hover with it. Default: `oklch(from var(--neutral) 0.896 0.0186 calc(h - 9.7) / 0.246)`. Dark: `color-mix(in oklab, var(--text-secondary) 6%, transparent)`. */
747
+ '--bg-hover'?: string | number;
748
+ /** `--bg-press`. Default: `oklch(from var(--neutral) 0.896 0.0186 calc(h - 9.7) / 0.291)`. Dark: `color-mix(in oklab, var(--text-secondary) 10%, transparent)`. */
749
+ '--bg-press'?: string | number;
732
750
  /** `--accent-fill` - The resting face of a filled control. Default: `var(--accent)`. Dark: `oklch(from var(--accent) calc(l - 0.06) calc(c - 0.01) h)`. Re-derived on every theme root. */
733
751
  '--accent-fill'?: string | number;
734
752
  /** `--accent-lift`. Default: `oklch(from var(--accent) calc(l + 0.075) calc(c - 0.006) h)`. Re-derived on every theme root. */
@@ -737,29 +755,29 @@ export interface TokenProperties {
737
755
  '--accent-hover'?: string | number;
738
756
  /** `--accent-active`. Default: `oklch(from var(--accent) calc(l - 0.152) calc(c - 0.018) h)`. Re-derived on every theme root. */
739
757
  '--accent-active'?: string | number;
740
- /** `--accent-subtle`. Default: `oklch(from var(--accent) 0.972 0.02 h)`. Dark: `oklch(from var(--accent) 0.27 0.045 h)`. Re-derived on every theme root. */
758
+ /** `--accent-subtle`. Default: `oklch(from var(--accent) 0.972 min(c, 0.02) h)`. Dark: `oklch(from var(--accent) 0.27 min(c, 0.045) h)`. Re-derived on every theme root. */
741
759
  '--accent-subtle'?: string | number;
742
- /** `--accent-border`. Default: `oklch(from var(--accent) 0.88 0.066 h)`. Dark: `oklch(from var(--accent) 0.45 0.09 h)`. Re-derived on every theme root. */
760
+ /** `--accent-border`. Default: `oklch(from var(--accent) 0.88 min(c, 0.066) h)`. Dark: `oklch(from var(--accent) 0.45 min(c, 0.09) h)`. Re-derived on every theme root. */
743
761
  '--accent-border'?: string | number;
744
- /** `--accent-disabled`. Default: `oklch(from var(--accent) 0.795 0.092 h)`. Dark: `oklch(from var(--accent) 0.42 0.06 h)`. Re-derived on every theme root. */
762
+ /** `--accent-disabled`. Default: `oklch(from var(--accent) 0.795 min(c, 0.092) h)`. Dark: `oklch(from var(--accent) 0.42 min(c, 0.06) h)`. Re-derived on every theme root. */
745
763
  '--accent-disabled'?: string | number;
746
764
  /** `--accent-wash`. Default: `oklch(from var(--accent) l c h / 0.08)`. Dark: `oklch(from var(--accent) l c h / 0.14)`. Re-derived on every theme root. */
747
765
  '--accent-wash'?: string | number;
748
- /** `--text-accent`. Default: `var(--accent-active)`. Dark: `oklch(from var(--accent) calc(l + 0.14) calc(c - 0.012) h)`. Re-derived on every theme root. */
766
+ /** `--text-accent`. Default: `oklch(from var(--accent) calc(l - 0.17) calc(c - 0.018) h)`. Dark: `oklch(from var(--accent) calc(l + 0.14) calc(c - 0.012) h)`. Re-derived on every theme root. */
749
767
  '--text-accent'?: string | number;
750
768
  /** `--text-on-accent` - The ink on a hue fill - the ramp's lightest rung in either polarity. Default: `var(--gray-0)`. Re-derived on every theme root. */
751
769
  '--text-on-accent'?: string | number;
752
- /** `--neutral-wash` - Translucent washes of the ink, never opaque near-whites. Default: `color-mix(in oklab, var(--text-secondary) 6%, transparent)`. Re-derived on every theme root. */
770
+ /** `--neutral-wash`. Default: `var(--bg-hover)`. Re-derived on every theme root. */
753
771
  '--neutral-wash'?: string | number;
754
- /** `--neutral-wash-press`. Default: `color-mix(in oklab, var(--text-secondary) 10%, transparent)`. Re-derived on every theme root. */
772
+ /** `--neutral-wash-press`. Default: `var(--bg-press)`. Re-derived on every theme root. */
755
773
  '--neutral-wash-press'?: string | number;
756
774
  /** `--info` - The accent's hue one step down - repoint it for a hue of its own. Default: `var(--accent-hover)`. Re-derived on every theme root. */
757
775
  '--info'?: string | number;
758
- /** `--info-subtle`. Default: `oklch(from var(--info) 0.972 0.02 h)`. Dark: `oklch(from var(--info) 0.265 0.045 h)`. Re-derived on every theme root. */
776
+ /** `--info-subtle`. Default: `oklch(from var(--info) 0.972 min(c, 0.02) h)`. Dark: `oklch(from var(--info) 0.265 min(c, 0.045) h)`. Re-derived on every theme root. */
759
777
  '--info-subtle'?: string | number;
760
- /** `--info-text`. Default: `oklch(from var(--info) calc(l - 0.082) calc(c - 0.014) h)`. Dark: `oklch(from var(--info) calc(l + 0.22) calc(c - 0.014) h)`. Re-derived on every theme root. */
778
+ /** `--info-text`. Default: `oklch(from var(--info) calc(l - 0.1) calc(c - 0.014) h)`. Dark: `oklch(from var(--info) calc(l + 0.22) calc(c - 0.014) h)`. Re-derived on every theme root. */
761
779
  '--info-text'?: string | number;
762
- /** `--info-wash`. Default: `oklch(from var(--info) 0.63 0.118 h / 0.08)`. Dark: `oklch(from var(--info) 0.63 0.118 h / 0.14)`. Re-derived on every theme root. */
780
+ /** `--info-wash`. Default: `oklch(from var(--info) 0.63 min(c, 0.118) h / 0.08)`. Dark: `oklch(from var(--info) 0.63 min(c, 0.118) h / 0.14)`. Re-derived on every theme root. */
763
781
  '--info-wash'?: string | number;
764
782
  /** `--success-subtle`. Default: `oklch(from var(--success) 0.965 0.028 h)`. Dark: `oklch(from var(--success) 0.265 0.05 h)`. Re-derived on every theme root. */
765
783
  '--success-subtle'?: string | number;
@@ -769,7 +787,7 @@ export interface TokenProperties {
769
787
  '--success-wash'?: string | number;
770
788
  /** `--warning-subtle`. Default: `oklch(from var(--warning) 0.972 0.034 h)`. Dark: `oklch(from var(--warning) 0.27 0.05 h)`. Re-derived on every theme root. */
771
789
  '--warning-subtle'?: string | number;
772
- /** `--warning-text`. Default: `oklch(from var(--warning) calc(l - 0.14) calc(c - 0.024) h)`. Dark: `oklch(from var(--warning) calc(l + 0.13) calc(c - 0.02) h)`. Re-derived on every theme root. */
790
+ /** `--warning-text`. Default: `oklch(from var(--warning) calc(l - 0.16) calc(c - 0.024) h)`. Dark: `oklch(from var(--warning) calc(l + 0.13) calc(c - 0.02) h)`. Re-derived on every theme root. */
773
791
  '--warning-text'?: string | number;
774
792
  /** `--warning-wash`. Default: `oklch(from var(--warning) 0.76 0.14 h / 0.12)`. Dark: `oklch(from var(--warning) 0.76 0.14 h / 0.18)`. Re-derived on every theme root. */
775
793
  '--warning-wash'?: string | number;
@@ -852,6 +870,7 @@ export interface ThemeSet {
852
870
  export const reducedMotionTokens: Readonly<Record<string, string>> = {
853
871
  '--duration-fast': '1ms',
854
872
  '--duration-base': '1ms',
873
+ '--duration-moderate': '1ms',
855
874
  '--duration-slow': '1ms',
856
875
  '--duration-slower': '1ms',
857
876
  '--duration-slowest': '1ms',
@@ -9,7 +9,7 @@ export type {
9
9
  ThemeTransitionOptions,
10
10
  ThemeTransitionSetting,
11
11
  } from '../components/expressive/theme-transition/theme-transition';
12
- export type { Polarity, PolarityPreference, ThemeControls, ThemeState } from './theme-store';
12
+ export type { Polarity, PolarityPreference, ThemeControls, ThemePreferenceOptions, ThemeState } from './theme-store';
13
13
  export { useTheme } from './theme-sync';
14
14
 
15
15
  export interface ZyncatThemeProps {
package/tailwind.css CHANGED
@@ -21,6 +21,8 @@
21
21
  --background-color-muted: var(--bg-muted);
22
22
  --background-color-inset: var(--bg-inset);
23
23
  --background-color-overlay: var(--bg-overlay);
24
+ --background-color-hover: var(--bg-hover);
25
+ --background-color-press: var(--bg-press);
24
26
 
25
27
  /* Ink - text-<role>; the body ink is text-default because text-body is the type role */
26
28
  --text-color-strong: var(--text-strong);
@@ -162,6 +164,7 @@
162
164
  --ease-exit: var(--ease-exit);
163
165
  --ease-spring: var(--ease-spring);
164
166
  --ease-glide: var(--ease-glide);
167
+ --ease-move: var(--ease-move);
165
168
  }
166
169
 
167
170
  @utility duration-fast {
@@ -170,6 +173,9 @@
170
173
  @utility duration-base {
171
174
  transition-duration: var(--duration-base);
172
175
  }
176
+ @utility duration-moderate {
177
+ transition-duration: var(--duration-moderate);
178
+ }
173
179
  @utility duration-slow {
174
180
  transition-duration: var(--duration-slow);
175
181
  }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/expressive/theme-transition/bloom.ts"],"names":[],"mappings":"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","file":"bloom-HV23M4AW.js","sourcesContent":["import { clamp, easeInOut, easeOut, sample, SAMPLE_MS, TAU, type BloomShape, type EffectFactory } from './scene';\n\nconst DURATION = { polarity: 1400, palette: 620 };\nconst MAX_RELIEF = 2;\nconst DEEPEST_CUT = 0.7;\nconst COVER_MARGIN = 1.02;\nconst SPIN = 0.35;\nconst HEX_SIDES = 6;\nconst STAR_LOBES = 8;\nconst STAR_CUT = 0.38;\nconst PETAL_LOBES = 5;\nconst PETAL_CUT = 0.26;\nconst CURVE_VERTICES = 120;\nconst BLOB_WAVES: readonly [lobes: number, depth: number, phase: number, drift: number][] = [\n [2, 0.09, 0.6, 1.1],\n [3, 0.07, 2.4, -0.8],\n [5, 0.045, 4.1, 1.7],\n];\n\ninterface Outline {\n vertices: number;\n innermost: number;\n radial(theta: number, progress: number): number;\n turn(progress: number): number;\n}\n\nconst lobed = (lobes: number, cut: number, vertices: number, spin: number): Outline => ({\n vertices,\n innermost: 1 - cut,\n radial: (theta) => 1 - (cut * (1 - Math.cos(lobes * theta))) / 2,\n turn: (progress) => spin * progress,\n});\n\nconst OUTLINES: Record<Exclude<BloomShape, 'circle'>, (relief: number) => Outline> = {\n hexagon: (relief) => ({\n vertices: HEX_SIDES,\n innermost: Math.cos(Math.PI / HEX_SIDES),\n radial: () => 1,\n turn: (progress) => Math.PI / HEX_SIDES + SPIN * relief * progress,\n }),\n star: (relief) => lobed(STAR_LOBES, clamp(STAR_CUT * relief, 0, DEEPEST_CUT), STAR_LOBES * 2, SPIN * relief),\n petal: (relief) => lobed(PETAL_LOBES, clamp(PETAL_CUT * relief, 0, DEEPEST_CUT), CURVE_VERTICES, SPIN * relief),\n blob: (relief) => {\n const swell = Math.min(relief, DEEPEST_CUT / BLOB_WAVES.reduce((sum, [, depth]) => sum + depth, 0));\n return {\n vertices: CURVE_VERTICES,\n innermost: 1 - BLOB_WAVES.reduce((sum, [, depth]) => sum + depth * swell, 0),\n radial: (theta, progress) =>\n BLOB_WAVES.reduce(\n (r, [lobes, depth, phase, drift]) => r + depth * swell * Math.sin(lobes * theta + phase + drift * progress),\n 1,\n ),\n turn: () => 0,\n };\n },\n};\n\nconst polygonAt = (outline: Outline, reach: number, progress: number, ox: number, oy: number) => {\n const turn = outline.turn(progress);\n const points: string[] = [];\n for (let i = 0; i < outline.vertices; i++) {\n const theta = (i / outline.vertices) * TAU;\n const r = reach * outline.radial(theta, progress);\n const a = theta + turn;\n points.push(`${(ox + Math.cos(a) * r).toFixed(1)}px ${(oy + Math.sin(a) * r).toFixed(1)}px`);\n }\n return `polygon(${points.join(', ')})`;\n};\n\nexport const bloom: EffectFactory = (scene) => {\n const { width: W, height: H, originX: ox, originY: oy, kind, shape } = scene;\n const relief = clamp(scene.intensity, 0, MAX_RELIEF);\n const farthest = Math.max(\n Math.hypot(ox, oy),\n Math.hypot(W - ox, oy),\n Math.hypot(ox, H - oy),\n Math.hypot(W - ox, H - oy),\n );\n const ease = kind === 'polarity' ? easeInOut : easeOut;\n const outline = shape === 'circle' ? null : OUTLINES[shape](relief);\n const reach = (farthest * COVER_MARGIN) / (outline?.innermost ?? 1);\n const at = ` at ${ox.toFixed(1)}px ${oy.toFixed(1)}px)`;\n const clipAt = (p: number) => {\n const e = ease(p);\n return outline ? polygonAt(outline, reach * e, e, ox, oy) : `circle(${(reach * e).toFixed(1)}px${at}`;\n };\n return { duration: DURATION[kind], clips: sample(DURATION[kind], SAMPLE_MS, clipAt) };\n};\n"]}