@zyncat/ui 0.13.1 → 0.17.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 (505) hide show
  1. package/README.md +46 -157
  2. package/dist/alert.css +27 -34
  3. package/dist/alert.js +26 -17
  4. package/dist/alert.js.map +1 -1
  5. package/dist/avatar-group.js +2 -2
  6. package/dist/avatar-group.js.map +1 -1
  7. package/dist/avatar.css +53 -51
  8. package/dist/avatar.js +29 -7
  9. package/dist/avatar.js.map +1 -1
  10. package/dist/badge.css +31 -37
  11. package/dist/badge.js +1 -1
  12. package/dist/bloom-HV23M4AW.js +81 -0
  13. package/dist/bloom-HV23M4AW.js.map +1 -0
  14. package/dist/button.css +99 -118
  15. package/dist/button.js +3 -1
  16. package/dist/checkbox.css +28 -33
  17. package/dist/checkbox.js +2 -2
  18. package/dist/chunk-2YGHPQ66.js +16 -0
  19. package/dist/chunk-2YGHPQ66.js.map +1 -0
  20. package/dist/chunk-3MLUH2QL.js +53 -0
  21. package/dist/chunk-3MLUH2QL.js.map +1 -0
  22. package/dist/{chunk-RJFGWJ4W.js → chunk-3XRVPCIM.js} +6 -6
  23. package/dist/chunk-3XRVPCIM.js.map +1 -0
  24. package/dist/{chunk-FONOS5RN.js → chunk-4PQDVK23.js} +11 -10
  25. package/dist/chunk-4PQDVK23.js.map +1 -0
  26. package/dist/{chunk-45R4Z5XN.js → chunk-5VC3TUZ2.js} +4 -4
  27. package/dist/{chunk-45R4Z5XN.js.map → chunk-5VC3TUZ2.js.map} +1 -1
  28. package/dist/{chunk-A5WTZACK.js → chunk-5W5TKANX.js} +3 -3
  29. package/dist/{chunk-A5WTZACK.js.map → chunk-5W5TKANX.js.map} +1 -1
  30. package/dist/{chunk-227ZW4V7.js → chunk-6IXLW7QA.js} +11 -11
  31. package/dist/chunk-6IXLW7QA.js.map +1 -0
  32. package/dist/chunk-7NHY2CRA.js +132 -0
  33. package/dist/chunk-7NHY2CRA.js.map +1 -0
  34. package/dist/{chunk-EF6RPXU7.js → chunk-7VTWJL72.js} +43 -35
  35. package/dist/chunk-7VTWJL72.js.map +1 -0
  36. package/dist/chunk-7ZSIUUC3.js +50 -0
  37. package/dist/chunk-7ZSIUUC3.js.map +1 -0
  38. package/dist/{chunk-TYHR4VNM.js → chunk-AREEMG47.js} +10 -8
  39. package/dist/chunk-AREEMG47.js.map +1 -0
  40. package/dist/{chunk-DDRSMHN4.js → chunk-DH7DT6EO.js} +3 -3
  41. package/dist/{chunk-DDRSMHN4.js.map → chunk-DH7DT6EO.js.map} +1 -1
  42. package/dist/chunk-EOWWVFBF.js +14 -0
  43. package/dist/chunk-EOWWVFBF.js.map +1 -0
  44. package/dist/{chunk-5PZ43DCG.js → chunk-FLDIRXFU.js} +12 -13
  45. package/dist/chunk-FLDIRXFU.js.map +1 -0
  46. package/dist/{chunk-I45AU6KH.js → chunk-GGDAMIBH.js} +13 -7
  47. package/dist/chunk-GGDAMIBH.js.map +1 -0
  48. package/dist/{chunk-M43IOM5C.js → chunk-GWCBTD63.js} +3 -3
  49. package/dist/{chunk-M43IOM5C.js.map → chunk-GWCBTD63.js.map} +1 -1
  50. package/dist/chunk-GZ6UMHCK.js +103 -0
  51. package/dist/chunk-GZ6UMHCK.js.map +1 -0
  52. package/dist/chunk-H3X2263Y.js +17 -0
  53. package/dist/chunk-H3X2263Y.js.map +1 -0
  54. package/dist/{chunk-IJS7TPGV.js → chunk-HWDIVGME.js} +14 -7
  55. package/dist/chunk-HWDIVGME.js.map +1 -0
  56. package/dist/chunk-KSAJ6DED.js +16 -0
  57. package/dist/chunk-KSAJ6DED.js.map +1 -0
  58. package/dist/chunk-LH2UIEKN.js +42 -0
  59. package/dist/chunk-LH2UIEKN.js.map +1 -0
  60. package/dist/{chunk-JY6A2ZJZ.js → chunk-LNAV5E7S.js} +2 -2
  61. package/dist/{chunk-JY6A2ZJZ.js.map → chunk-LNAV5E7S.js.map} +1 -1
  62. package/dist/{chunk-CF4QHO4N.js → chunk-M2A6PZ7J.js} +10 -10
  63. package/dist/{chunk-CF4QHO4N.js.map → chunk-M2A6PZ7J.js.map} +1 -1
  64. package/dist/chunk-NYQQH4R5.js +40 -0
  65. package/dist/chunk-NYQQH4R5.js.map +1 -0
  66. package/dist/{chunk-TVYH4AN7.js → chunk-ODRO3KS6.js} +13 -13
  67. package/dist/chunk-ODRO3KS6.js.map +1 -0
  68. package/dist/chunk-PU3QWBEL.js +39 -0
  69. package/dist/chunk-PU3QWBEL.js.map +1 -0
  70. package/dist/{chunk-4BSHB7R3.js → chunk-QDAN43B6.js} +9 -9
  71. package/dist/chunk-QDAN43B6.js.map +1 -0
  72. package/dist/{chunk-XNIYSAMJ.js → chunk-RW2A4M2Q.js} +14 -9
  73. package/dist/chunk-RW2A4M2Q.js.map +1 -0
  74. package/dist/{chunk-TUTXXC3W.js → chunk-RY35IU3G.js} +3 -3
  75. package/dist/{chunk-TUTXXC3W.js.map → chunk-RY35IU3G.js.map} +1 -1
  76. package/dist/{chunk-EAI4POPB.js → chunk-TBLPZQSI.js} +56 -50
  77. package/dist/chunk-TBLPZQSI.js.map +1 -0
  78. package/dist/{chunk-AADAJL7D.js → chunk-UKPX3RIP.js} +8 -9
  79. package/dist/chunk-UKPX3RIP.js.map +1 -0
  80. package/dist/chunk-VDOBLABP.js +38 -0
  81. package/dist/chunk-VDOBLABP.js.map +1 -0
  82. package/dist/chunk-VNVVG47J.js +12 -0
  83. package/dist/chunk-VNVVG47J.js.map +1 -0
  84. package/dist/{chunk-4C5RZXBT.js → chunk-VZXML7EH.js} +8 -8
  85. package/dist/chunk-VZXML7EH.js.map +1 -0
  86. package/dist/{chunk-43M6GQ4Q.js → chunk-WC45VSST.js} +51 -32
  87. package/dist/chunk-WC45VSST.js.map +1 -0
  88. package/dist/{chunk-3MPF7FZV.js → chunk-WCWV5IX6.js} +3 -3
  89. package/dist/{chunk-3MPF7FZV.js.map → chunk-WCWV5IX6.js.map} +1 -1
  90. package/dist/chunk-WQKWPI6V.js +196 -0
  91. package/dist/chunk-WQKWPI6V.js.map +1 -0
  92. package/dist/{chunk-VAXCXZ53.js → chunk-WZUTBJC4.js} +5 -4
  93. package/dist/chunk-WZUTBJC4.js.map +1 -0
  94. package/dist/chunk-ZHMOH62S.js +101 -0
  95. package/dist/chunk-ZHMOH62S.js.map +1 -0
  96. package/dist/cli.js +356 -28
  97. package/dist/collapse.css +21 -33
  98. package/dist/collapse.js +1 -1
  99. package/dist/confetti.css +20 -13
  100. package/dist/confetti.js +7 -6
  101. package/dist/confetti.js.map +1 -1
  102. package/dist/count-badge.js +2 -2
  103. package/dist/date-field.js +22 -19
  104. package/dist/date-field.js.map +1 -1
  105. package/dist/date-picker.css +287 -185
  106. package/dist/date-range-field.js +75 -59
  107. package/dist/date-range-field.js.map +1 -1
  108. package/dist/datetime-field.js +26 -23
  109. package/dist/datetime-field.js.map +1 -1
  110. package/dist/dialog.css +35 -44
  111. package/dist/dialog.js +23 -22
  112. package/dist/dialog.js.map +1 -1
  113. package/dist/digit-strip.css +17 -17
  114. package/dist/dropdown.css +37 -28
  115. package/dist/dropdown.js +77 -40
  116. package/dist/dropdown.js.map +1 -1
  117. package/dist/emoji-picker.js +44 -45
  118. package/dist/emoji-picker.js.map +1 -1
  119. package/dist/facebook-feed.css +146 -149
  120. package/dist/facebook-feed.js +106 -102
  121. package/dist/facebook-feed.js.map +1 -1
  122. package/dist/flow-field.css +9 -5
  123. package/dist/flow-field.js +8 -7
  124. package/dist/flow-field.js.map +1 -1
  125. package/dist/glide.js +4 -3
  126. package/dist/icon.css +8 -11
  127. package/dist/input.css +81 -86
  128. package/dist/instagram-feed.css +66 -67
  129. package/dist/instagram-feed.js +61 -44
  130. package/dist/instagram-feed.js.map +1 -1
  131. package/dist/lens.css +42 -39
  132. package/dist/lens.js +17 -16
  133. package/dist/lens.js.map +1 -1
  134. package/dist/mcp.js +4 -3
  135. package/dist/menu-surface.css +55 -35
  136. package/dist/modal.css +3 -5
  137. package/dist/modal.js +12 -11
  138. package/dist/modal.js.map +1 -1
  139. package/dist/morphing-text.css +27 -17
  140. package/dist/morphing-text.js +14 -13
  141. package/dist/morphing-text.js.map +1 -1
  142. package/dist/motion-devtools.css +118 -69
  143. package/dist/motion-devtools.js +230 -65
  144. package/dist/motion-devtools.js.map +1 -1
  145. package/dist/motion-tokens.js +1 -1
  146. package/dist/multi-select.js +21 -16
  147. package/dist/multi-select.js.map +1 -1
  148. package/dist/number-field.js +15 -15
  149. package/dist/number-field.js.map +1 -1
  150. package/dist/odometer.css +23 -17
  151. package/dist/odometer.js +12 -11
  152. package/dist/odometer.js.map +1 -1
  153. package/dist/otp-field.js +3 -3
  154. package/dist/otp-field.js.map +1 -1
  155. package/dist/overlay.css +5 -10
  156. package/dist/pagination.css +11 -16
  157. package/dist/pagination.js +13 -10
  158. package/dist/pagination.js.map +1 -1
  159. package/dist/paint-CJQCM6ZO.js +260 -0
  160. package/dist/paint-CJQCM6ZO.js.map +1 -0
  161. package/dist/popover.css +14 -16
  162. package/dist/popover.js +10 -9
  163. package/dist/radio-group.css +65 -76
  164. package/dist/radio-group.js +30 -29
  165. package/dist/radio-group.js.map +1 -1
  166. package/dist/select.css +67 -76
  167. package/dist/select.js +19 -14
  168. package/dist/select.js.map +1 -1
  169. package/dist/sheet.css +13 -15
  170. package/dist/sheet.js +11 -10
  171. package/dist/spinner.css +115 -0
  172. package/dist/spinner.js +4 -0
  173. package/dist/spinner.js.map +1 -0
  174. package/dist/status-badge.js +9 -9
  175. package/dist/status-badge.js.map +1 -1
  176. package/dist/styles.css +35 -35
  177. package/dist/support-rail.css +110 -256
  178. package/dist/support-rail.js +116 -123
  179. package/dist/support-rail.js.map +1 -1
  180. package/dist/table.css +77 -85
  181. package/dist/table.js +44 -41
  182. package/dist/table.js.map +1 -1
  183. package/dist/tabs.css +81 -93
  184. package/dist/tabs.js +23 -20
  185. package/dist/tabs.js.map +1 -1
  186. package/dist/tag.css +49 -54
  187. package/dist/tag.js +13 -12
  188. package/dist/tag.js.map +1 -1
  189. package/dist/text-field.js +5 -5
  190. package/dist/textarea.css +47 -50
  191. package/dist/textarea.js +16 -16
  192. package/dist/textarea.js.map +1 -1
  193. package/dist/theme-grid.js +11 -0
  194. package/dist/theme-grid.js.map +1 -0
  195. package/dist/theme-switcher.css +107 -0
  196. package/dist/theme-switcher.js +70 -0
  197. package/dist/theme-switcher.js.map +1 -0
  198. package/dist/theme-transition-LLC644ZR.js +346 -0
  199. package/dist/theme-transition-LLC644ZR.js.map +1 -0
  200. package/dist/theme-transition.css +48 -0
  201. package/dist/theme.js +74 -27
  202. package/dist/theme.js.map +1 -1
  203. package/dist/tide-DJZMDAFT.js +57 -0
  204. package/dist/tide-DJZMDAFT.js.map +1 -0
  205. package/dist/tiktok.css +114 -119
  206. package/dist/tiktok.js +53 -52
  207. package/dist/tiktok.js.map +1 -1
  208. package/dist/time-field.js +26 -20
  209. package/dist/time-field.js.map +1 -1
  210. package/dist/toast-store.js +2 -1
  211. package/dist/toast.css +51 -79
  212. package/dist/toast.js +34 -26
  213. package/dist/toast.js.map +1 -1
  214. package/dist/toggle-tag.js +23 -14
  215. package/dist/toggle-tag.js.map +1 -1
  216. package/dist/toggle.css +27 -32
  217. package/dist/toggle.js +7 -7
  218. package/dist/toggle.js.map +1 -1
  219. package/dist/tooltip.css +17 -24
  220. package/dist/tooltip.js +117 -95
  221. package/dist/tooltip.js.map +1 -1
  222. package/dist/trigger.css +4 -4
  223. package/dist/types/components/composites/alert/Alert.d.ts +1 -2
  224. package/dist/types/components/composites/date-picker/TimeField.d.ts +1 -2
  225. package/dist/types/components/composites/date-picker/field-shell.d.ts +1 -1
  226. package/dist/types/components/composites/date-picker/month-jump.d.ts +11 -0
  227. package/dist/types/components/composites/date-picker/time-core.d.ts +1 -2
  228. package/dist/types/components/composites/dropdown/Dropdown.d.ts +9 -1
  229. package/dist/types/components/composites/dropdown/types.d.ts +14 -0
  230. package/dist/types/components/composites/emoji-picker/EmojiPickerPanel.d.ts +1 -1
  231. package/dist/types/components/composites/emoji-picker/data.d.ts +2 -5
  232. package/dist/types/components/composites/emoji-picker/react/useEmojiPicker.d.ts +0 -11
  233. package/dist/types/components/composites/emoji-picker/types.d.ts +3 -8
  234. package/dist/types/components/composites/select/MultiSelect.d.ts +6 -1
  235. package/dist/types/components/composites/select/Select.d.ts +6 -1
  236. package/dist/types/components/composites/select/core/index.d.ts +1 -1
  237. package/dist/types/components/composites/select/core/menu.d.ts +3 -3
  238. package/dist/types/components/composites/select/core/panel.d.ts +3 -3
  239. package/dist/types/components/composites/tabs/Tabs.d.ts +7 -10
  240. package/dist/types/components/composites/theme-switcher/ThemeGrid.d.ts +20 -0
  241. package/dist/types/components/composites/theme-switcher/ThemeSwitcher.d.ts +24 -0
  242. package/dist/types/components/composites/toast/Toast.d.ts +1 -1
  243. package/dist/types/components/composites/tooltip/Tooltip.d.ts +9 -1
  244. package/dist/types/components/composites/tooltip/tooltip-store.d.ts +5 -6
  245. package/dist/types/components/compound/support-rail/SupportRail.d.ts +10 -8
  246. package/dist/types/components/dev/MotionDevtools.d.ts +12 -5
  247. package/dist/types/components/expressive/theme-transition/bloom.d.ts +2 -0
  248. package/dist/types/components/expressive/theme-transition/paint.d.ts +2 -0
  249. package/dist/types/components/expressive/theme-transition/scene.d.ts +24 -0
  250. package/dist/types/components/expressive/theme-transition/theme-transition.d.ts +19 -0
  251. package/dist/types/components/expressive/theme-transition/tide.d.ts +2 -0
  252. package/dist/types/components/internal/hooks/use-host-election.d.ts +8 -0
  253. package/dist/types/components/internal/icon/Icon.d.ts +2 -3
  254. package/dist/types/components/internal/menu/highlight.d.ts +7 -0
  255. package/dist/types/components/internal/utils/activation.d.ts +0 -4
  256. package/dist/types/components/primitives/avatar/Avatar.d.ts +1 -1
  257. package/dist/types/components/primitives/button/Button.d.ts +10 -13
  258. package/dist/types/components/primitives/button/button-style.d.ts +15 -0
  259. package/dist/types/components/primitives/input/TextField.d.ts +1 -2
  260. package/dist/types/components/primitives/spinner/Spinner.d.ts +27 -0
  261. package/dist/types/components/primitives/textarea/Textarea.d.ts +0 -1
  262. package/dist/types/engine/animate.d.ts +1 -0
  263. package/dist/types/shared-slot.d.ts +1 -0
  264. package/dist/types/tokens/component-styles.generated.d.ts +80 -155
  265. package/dist/types/tokens/motion-defaults.generated.d.ts +34 -0
  266. package/dist/types/tokens/motion-scale.d.ts +2 -2
  267. package/dist/types/tokens/motion-tokens.d.ts +7 -0
  268. package/dist/types/tokens/theme-store.d.ts +47 -0
  269. package/dist/types/tokens/theme-sync.d.ts +9 -0
  270. package/dist/types/tokens/theme-tokens.generated.d.ts +693 -1117
  271. package/dist/types/tokens/theme.d.ts +28 -5
  272. package/dist/typing-lines.css +18 -11
  273. package/dist/typing-lines.js +9 -8
  274. package/dist/typing-lines.js.map +1 -1
  275. package/dist/weight-field.css +32 -18
  276. package/dist/weight-field.js +4 -4
  277. package/dist/weight-field.js.map +1 -1
  278. package/dist/youtube.css +91 -97
  279. package/dist/youtube.js +87 -86
  280. package/dist/youtube.js.map +1 -1
  281. package/package.json +27 -31
  282. package/skills/zyncat-ui/SKILL.md +5 -3
  283. package/skills/zyncat-ui/references/components.md +7 -4
  284. package/skills/zyncat-ui/references/theming.md +105 -34
  285. package/src/components/composites/alert/Alert.tsx +15 -12
  286. package/src/components/composites/alert/alert.css +27 -34
  287. package/src/components/composites/date-picker/DateField.tsx +1 -1
  288. package/src/components/composites/date-picker/DateRangeField.tsx +1 -1
  289. package/src/components/composites/date-picker/DateTimeField.tsx +4 -4
  290. package/src/components/composites/date-picker/TimeField.tsx +8 -5
  291. package/src/components/composites/date-picker/calendar-panel.tsx +33 -22
  292. package/src/components/composites/date-picker/date-picker.css +287 -185
  293. package/src/components/composites/date-picker/field-shell.tsx +7 -7
  294. package/src/components/composites/date-picker/month-jump.tsx +192 -0
  295. package/src/components/composites/date-picker/range-panel.tsx +51 -36
  296. package/src/components/composites/date-picker/time-core.tsx +4 -6
  297. package/src/components/composites/date-picker/use-day-focus.ts +1 -1
  298. package/src/components/composites/dialog/Dialog.tsx +11 -11
  299. package/src/components/composites/dialog/dialog.css +35 -44
  300. package/src/components/composites/dropdown/Dropdown.tsx +15 -2
  301. package/src/components/composites/dropdown/Dropdown.usage.md +7 -4
  302. package/src/components/composites/dropdown/dropdown.css +37 -28
  303. package/src/components/composites/dropdown/menu-panel.tsx +56 -27
  304. package/src/components/composites/dropdown/types.ts +28 -6
  305. package/src/components/composites/emoji-picker/EmojiPickerPanel.tsx +5 -4
  306. package/src/components/composites/emoji-picker/EmojiPickerPanel.usage.md +4 -4
  307. package/src/components/composites/emoji-picker/data.ts +2 -5
  308. package/src/components/composites/emoji-picker/dom.ts +6 -6
  309. package/src/components/composites/emoji-picker/react/category-bar.tsx +6 -6
  310. package/src/components/composites/emoji-picker/react/useEmojiPicker.ts +0 -11
  311. package/src/components/composites/emoji-picker/scaffold.ts +7 -7
  312. package/src/components/composites/emoji-picker/search.ts +0 -7
  313. package/src/components/composites/emoji-picker/styles.css +35 -35
  314. package/src/components/composites/emoji-picker/types.ts +3 -8
  315. package/src/components/composites/modal/Modal.tsx +2 -2
  316. package/src/components/composites/modal/modal.css +3 -5
  317. package/src/components/composites/pagination/Pagination.tsx +7 -7
  318. package/src/components/composites/pagination/pagination.css +11 -16
  319. package/src/components/composites/popover/Popover.tsx +2 -2
  320. package/src/components/composites/popover/popover.css +14 -16
  321. package/src/components/composites/select/MultiSelect.tsx +11 -2
  322. package/src/components/composites/select/MultiSelect.usage.md +2 -1
  323. package/src/components/composites/select/Select.tsx +10 -1
  324. package/src/components/composites/select/Select.usage.md +2 -1
  325. package/src/components/composites/select/core/index.ts +1 -1
  326. package/src/components/composites/select/core/menu.tsx +19 -4
  327. package/src/components/composites/select/core/panel.tsx +19 -15
  328. package/src/components/composites/select/core/trigger.tsx +5 -5
  329. package/src/components/composites/select/select.css +67 -76
  330. package/src/components/composites/sheet/Sheet.tsx +2 -2
  331. package/src/components/composites/sheet/sheet.css +13 -15
  332. package/src/components/composites/sheet/use-sheet-drag.ts +1 -1
  333. package/src/components/composites/table/Table.tsx +35 -35
  334. package/src/components/composites/table/table.css +77 -85
  335. package/src/components/composites/tabs/Tabs.tsx +20 -21
  336. package/src/components/composites/tabs/Tabs.usage.md +3 -2
  337. package/src/components/composites/tabs/tabs.css +81 -93
  338. package/src/components/composites/theme-switcher/ThemeGrid.tsx +133 -0
  339. package/src/components/composites/theme-switcher/ThemeGrid.usage.md +20 -0
  340. package/src/components/composites/theme-switcher/ThemeSwitcher.tsx +75 -0
  341. package/src/components/composites/theme-switcher/ThemeSwitcher.usage.md +21 -0
  342. package/src/components/composites/theme-switcher/theme-switcher.css +107 -0
  343. package/src/components/composites/toast/Toast.tsx +24 -18
  344. package/src/components/composites/toast/toast-store.ts +8 -6
  345. package/src/components/composites/toast/toast.css +51 -79
  346. package/src/components/composites/tooltip/Tooltip.tsx +40 -19
  347. package/src/components/composites/tooltip/Tooltip.usage.md +9 -1
  348. package/src/components/composites/tooltip/tooltip-host.tsx +55 -23
  349. package/src/components/composites/tooltip/tooltip-store.ts +36 -53
  350. package/src/components/composites/tooltip/tooltip.css +17 -24
  351. package/src/components/compound/support-rail/SupportRail.tsx +132 -144
  352. package/src/components/compound/support-rail/SupportRail.usage.md +7 -6
  353. package/src/components/compound/support-rail/support-rail.css +110 -256
  354. package/src/components/dev/MotionDevtools.tsx +272 -51
  355. package/src/components/dev/MotionDevtools.usage.md +12 -4
  356. package/src/components/dev/motion-devtools.css +118 -69
  357. package/src/components/dev/slowmo-engine.ts +16 -15
  358. package/src/components/expressive/confetti/Confetti.tsx +4 -4
  359. package/src/components/expressive/confetti/confetti.css +20 -13
  360. package/src/components/expressive/facebook-feed/chrome.tsx +2 -2
  361. package/src/components/expressive/facebook-feed/facebook-feed.css +146 -149
  362. package/src/components/expressive/facebook-feed/post.tsx +39 -39
  363. package/src/components/expressive/facebook-feed/reel.tsx +41 -37
  364. package/src/components/expressive/facebook-feed/story.tsx +27 -27
  365. package/src/components/expressive/flow-field/FlowField.tsx +5 -5
  366. package/src/components/expressive/flow-field/flow-field.css +9 -5
  367. package/src/components/expressive/instagram-feed/InstagramFeed.tsx +52 -44
  368. package/src/components/expressive/instagram-feed/instagram-feed.css +66 -67
  369. package/src/components/expressive/lens/Lens.tsx +14 -14
  370. package/src/components/expressive/lens/lens.css +42 -39
  371. package/src/components/expressive/morphing-text/MorphingText.tsx +12 -13
  372. package/src/components/expressive/morphing-text/morphing-text.css +27 -17
  373. package/src/components/expressive/odometer/Odometer.tsx +9 -9
  374. package/src/components/expressive/odometer/odometer.css +23 -17
  375. package/src/components/expressive/theme-transition/bloom.ts +88 -0
  376. package/src/components/expressive/theme-transition/paint.ts +296 -0
  377. package/src/components/expressive/theme-transition/scene.ts +38 -0
  378. package/src/components/expressive/theme-transition/theme-transition.css +48 -0
  379. package/src/components/expressive/theme-transition/theme-transition.ts +423 -0
  380. package/src/components/expressive/theme-transition/tide.ts +65 -0
  381. package/src/components/expressive/tiktok/TikTok.tsx +54 -54
  382. package/src/components/expressive/tiktok/tiktok.css +114 -119
  383. package/src/components/expressive/typing-lines/TypingLines.tsx +0 -0
  384. package/src/components/expressive/typing-lines/typing-lines.css +18 -11
  385. package/src/components/expressive/weight-field/WeightField.tsx +4 -4
  386. package/src/components/expressive/weight-field/weight-field.css +32 -18
  387. package/src/components/expressive/youtube/YouTube.tsx +4 -4
  388. package/src/components/expressive/youtube/glyphs.tsx +16 -16
  389. package/src/components/expressive/youtube/media.tsx +3 -3
  390. package/src/components/expressive/youtube/post.tsx +28 -28
  391. package/src/components/expressive/youtube/short.tsx +25 -25
  392. package/src/components/expressive/youtube/video.tsx +13 -13
  393. package/src/components/expressive/youtube/youtube.css +91 -97
  394. package/src/components/internal/glass/glass.css +20 -23
  395. package/src/components/internal/glass/glint.ts +3 -3
  396. package/src/components/internal/hooks/use-host-election.ts +46 -0
  397. package/src/components/internal/icon/Icon.tsx +3 -5
  398. package/src/components/internal/icon/IconSlot.tsx +1 -1
  399. package/src/components/internal/icon/icon.css +8 -11
  400. package/src/components/internal/menu/highlight.ts +12 -0
  401. package/src/components/internal/menu/menu-row.tsx +5 -5
  402. package/src/components/internal/menu/menu-surface.css +55 -35
  403. package/src/components/internal/overlay/layer.tsx +2 -1
  404. package/src/components/internal/overlay/modal.tsx +5 -4
  405. package/src/components/internal/overlay/overlay.css +5 -10
  406. package/src/components/internal/overlay/trigger.css +4 -4
  407. package/src/components/internal/utils/activation.ts +0 -4
  408. package/src/components/primitives/avatar/Avatar.tsx +24 -8
  409. package/src/components/primitives/avatar/AvatarGroup.tsx +4 -4
  410. package/src/components/primitives/avatar/avatar.css +53 -51
  411. package/src/components/primitives/badge/Badge.tsx +9 -9
  412. package/src/components/primitives/badge/StatusBadge.tsx +7 -7
  413. package/src/components/primitives/badge/badge.css +31 -37
  414. package/src/components/primitives/badge/digit-strip.css +17 -17
  415. package/src/components/primitives/badge/digit-strip.tsx +4 -4
  416. package/src/components/primitives/button/Button.tsx +14 -28
  417. package/src/components/primitives/button/button-style.ts +28 -0
  418. package/src/components/primitives/button/button.css +99 -118
  419. package/src/components/primitives/checkbox/Checkbox.tsx +10 -4
  420. package/src/components/primitives/checkbox/check-glyph.tsx +5 -5
  421. package/src/components/primitives/checkbox/checkbox.css +28 -33
  422. package/src/components/primitives/collapse/Collapse.tsx +2 -2
  423. package/src/components/primitives/collapse/collapse.css +21 -33
  424. package/src/components/primitives/collapse/collapse.typecheck.tsx +1 -1
  425. package/src/components/primitives/input/NumberField.tsx +11 -11
  426. package/src/components/primitives/input/OtpField.tsx +3 -3
  427. package/src/components/primitives/input/TextField.tsx +9 -10
  428. package/src/components/primitives/input/field-chrome.tsx +6 -6
  429. package/src/components/primitives/input/input.css +81 -86
  430. package/src/components/primitives/radio-group/RadioGroup.tsx +23 -23
  431. package/src/components/primitives/radio-group/radio-group.css +65 -76
  432. package/src/components/primitives/spinner/Spinner.tsx +70 -0
  433. package/src/components/primitives/spinner/Spinner.usage.md +19 -0
  434. package/src/components/primitives/spinner/spinner.css +115 -0
  435. package/src/components/primitives/tag/Tag.tsx +5 -5
  436. package/src/components/primitives/tag/ToggleTag.tsx +11 -6
  437. package/src/components/primitives/tag/tag.css +49 -54
  438. package/src/components/primitives/textarea/Textarea.tsx +13 -14
  439. package/src/components/primitives/textarea/textarea.css +47 -50
  440. package/src/components/primitives/toggle/Toggle.tsx +7 -7
  441. package/src/components/primitives/toggle/toggle.css +27 -32
  442. package/src/engine/animate.ts +12 -3
  443. package/src/engine/flip.ts +2 -1
  444. package/src/mcp/server.ts +5 -2
  445. package/src/motion/flip.ts +7 -8
  446. package/src/motion/glide.tsx +41 -26
  447. package/src/shared-slot.ts +10 -0
  448. package/src/styles.css +8 -16
  449. package/src/tokens/base.css +15 -0
  450. package/src/tokens/color.css +22 -63
  451. package/src/tokens/component-styles.generated.ts +81 -155
  452. package/src/tokens/dark.css +58 -0
  453. package/src/tokens/decisions.css +23 -0
  454. package/src/tokens/elevation.css +65 -23
  455. package/src/tokens/fonts.css +0 -2
  456. package/src/tokens/glass.css +17 -10
  457. package/src/tokens/motion-defaults.generated.ts +21 -0
  458. package/src/tokens/motion-scale.ts +2 -2
  459. package/src/tokens/motion-tokens.ts +65 -40
  460. package/src/tokens/motion-tokens.usage.md +5 -2
  461. package/src/tokens/motion.css +18 -28
  462. package/src/tokens/radius.css +12 -10
  463. package/src/tokens/reset.css +36 -0
  464. package/src/tokens/semantic.css +51 -39
  465. package/src/tokens/spacing.css +6 -7
  466. package/src/tokens/theme-store.ts +187 -0
  467. package/src/tokens/theme-sync.tsx +62 -0
  468. package/src/tokens/theme-tokens.generated.ts +708 -1121
  469. package/src/tokens/theme.tsx +116 -38
  470. package/src/tokens/theme.usage.md +26 -19
  471. package/src/tokens/typography.css +18 -20
  472. package/tailwind.css +187 -0
  473. package/dist/chunk-227ZW4V7.js.map +0 -1
  474. package/dist/chunk-43M6GQ4Q.js.map +0 -1
  475. package/dist/chunk-4BSHB7R3.js.map +0 -1
  476. package/dist/chunk-4C5RZXBT.js.map +0 -1
  477. package/dist/chunk-5PZ43DCG.js.map +0 -1
  478. package/dist/chunk-7IZJERGA.js +0 -80
  479. package/dist/chunk-7IZJERGA.js.map +0 -1
  480. package/dist/chunk-AADAJL7D.js.map +0 -1
  481. package/dist/chunk-CNWTIMIP.js +0 -39
  482. package/dist/chunk-CNWTIMIP.js.map +0 -1
  483. package/dist/chunk-EAI4POPB.js.map +0 -1
  484. package/dist/chunk-EF6RPXU7.js.map +0 -1
  485. package/dist/chunk-FONOS5RN.js.map +0 -1
  486. package/dist/chunk-FQEHSKEI.js +0 -38
  487. package/dist/chunk-FQEHSKEI.js.map +0 -1
  488. package/dist/chunk-HY5MPISE.js +0 -52
  489. package/dist/chunk-HY5MPISE.js.map +0 -1
  490. package/dist/chunk-I45AU6KH.js.map +0 -1
  491. package/dist/chunk-IJS7TPGV.js.map +0 -1
  492. package/dist/chunk-OWNMRMPN.js +0 -14
  493. package/dist/chunk-OWNMRMPN.js.map +0 -1
  494. package/dist/chunk-RJFGWJ4W.js.map +0 -1
  495. package/dist/chunk-TCUCYFT7.js +0 -25
  496. package/dist/chunk-TCUCYFT7.js.map +0 -1
  497. package/dist/chunk-TVYH4AN7.js.map +0 -1
  498. package/dist/chunk-TYHR4VNM.js.map +0 -1
  499. package/dist/chunk-VAXCXZ53.js.map +0 -1
  500. package/dist/chunk-XNIYSAMJ.js.map +0 -1
  501. package/dist/chunk-Y2YA7QRF.js +0 -17
  502. package/dist/chunk-Y2YA7QRF.js.map +0 -1
  503. package/src/tokens/avatar.css +0 -24
  504. package/src/tokens/icons.css +0 -11
  505. package/src/tokens/layers.css +0 -11
package/dist/table.css CHANGED
@@ -1,18 +1,15 @@
1
- @layer zyncat.tokens, zyncat.components;
1
+ @layer zyncat.reset, zyncat.tokens, zyncat.components;
2
2
 
3
3
  @layer zyncat.components {
4
- /* Table - geometry + paint: sticky header, sortable columns, row selection + bulk bar, pinned identity column. */
5
-
6
- .tbl,
7
- .tbl * {
4
+ .zc-tbl,
5
+ .zc-tbl * {
8
6
  box-sizing: border-box;
9
7
  }
10
8
 
11
- .tbl {
9
+ .zc-tbl {
12
10
  --tbl-pad-y: var(--space-3);
13
11
  --tbl-head-py: var(--space-3);
14
12
  --tbl-head-h: calc(var(--leading-caption) + 2 * var(--tbl-head-py));
15
- /* checkbox column: pad 8 + (8 + 18 + 8 hit area) + pad 8 - all tokens */
16
13
  --tbl-check-w: calc(var(--control-box) + 4 * var(--space-2));
17
14
 
18
15
  position: relative;
@@ -27,35 +24,36 @@
27
24
  overflow: hidden;
28
25
  }
29
26
 
30
- .tbl--compact {
27
+ .zc-tbl--compact {
31
28
  --tbl-pad-y: var(--space-2);
32
29
  --tbl-head-py: var(--space-2);
33
30
  }
34
31
 
35
- .tbl__viewport {
32
+ .zc-tbl__viewport {
36
33
  position: relative;
37
- display: flex; /* flex sizing, not % height - % inside a max-height parent resolves to auto, scroller would grow to content */
34
+ display: flex; /* not height: 100% - a percentage inside a max-height parent resolves to auto */
38
35
  flex-direction: column;
39
36
  flex: 1 1 auto;
40
37
  min-height: 0;
41
38
  }
42
- .tbl__scroll {
39
+ .zc-tbl__scroll {
43
40
  flex: 1 1 auto;
44
41
  min-height: 0;
45
42
  overflow: auto;
46
43
  overscroll-behavior-x: contain;
44
+ scroll-padding: var(--ring-gutter);
47
45
  }
48
- .tbl[data-y-scroll] .tbl__scroll {
46
+ .zc-tbl[data-y-scroll] .zc-tbl__scroll {
49
47
  overscroll-behavior-y: contain;
50
48
  }
51
49
 
52
- .tbl__table {
50
+ .zc-tbl__table {
53
51
  width: 100%;
54
52
  border-collapse: separate; /* collapse breaks sticky borders */
55
53
  border-spacing: 0;
56
54
  }
57
55
 
58
- .tbl__table thead th {
56
+ .zc-tbl__table thead th {
59
57
  position: sticky;
60
58
  top: 0;
61
59
  z-index: 2;
@@ -71,74 +69,71 @@
71
69
  white-space: nowrap;
72
70
  transition: box-shadow var(--duration-base) var(--ease-standard);
73
71
  }
74
- .tbl[data-scrolled] .tbl__table thead th {
72
+ .zc-tbl[data-scrolled] .zc-tbl__table thead th {
75
73
  box-shadow: var(--shadow-sm);
76
74
  }
77
75
 
78
- .tbl__table td {
76
+ .zc-tbl__table td {
79
77
  padding: var(--tbl-pad-y) var(--space-3);
80
78
  border-bottom: var(--border-hairline) solid var(--border-subtle);
81
79
  background: var(--row-bg, var(--bg-surface));
82
80
  font: var(--type-body);
83
81
  color: var(--text-body);
84
82
  vertical-align: middle;
85
- white-space: nowrap; /* data tables don't wrap - grow column absorbs slack; overflow scrolls + pins */
83
+ white-space: nowrap;
86
84
  transition: background-color var(--duration-fast) var(--ease-standard);
87
85
  }
88
- .tbl__table tbody tr:last-child td {
86
+ .zc-tbl__table tbody tr:last-child td {
89
87
  border-bottom: 0;
90
88
  }
91
89
 
92
- /* outermost cells breathe a step more (16) - sortables do it via the button */
93
- .tbl__table th:first-child:not(.tbl__cell--check):not(.tbl__cell--sortable),
94
- .tbl__table td:first-child:not(.tbl__cell--check) {
90
+ .zc-tbl__table th:first-child:not(.zc-tbl__cell--check):not(.zc-tbl__cell--sortable),
91
+ .zc-tbl__table td:first-child:not(.zc-tbl__cell--check) {
95
92
  padding-inline-start: var(--space-4);
96
93
  }
97
- .tbl__table th:last-child:not(.tbl__cell--sortable),
98
- .tbl__table td:last-child {
94
+ .zc-tbl__table th:last-child:not(.zc-tbl__cell--sortable),
95
+ .zc-tbl__table td:last-child {
99
96
  padding-inline-end: var(--space-4);
100
97
  }
101
98
 
102
- /* one opaque --row-bg per row, read by every cell - stays opaque so sticky cells cover scrolled content */
103
- .tbl__row {
99
+ .zc-tbl__row {
104
100
  --row-bg: var(--bg-surface);
105
101
  }
106
- .tbl__row:hover {
102
+ .zc-tbl__row:hover {
107
103
  --row-bg: var(--bg-subtle);
108
104
  }
109
- .tbl__row[data-selected] {
105
+ .zc-tbl__row[data-selected] {
110
106
  --row-bg: color-mix(in oklab, var(--accent) 5%, var(--bg-surface));
111
107
  }
112
- .tbl__row[data-selected]:hover {
108
+ .zc-tbl__row[data-selected]:hover {
113
109
  --row-bg: color-mix(in oklab, var(--accent) 5%, var(--bg-subtle));
114
110
  }
115
- .tbl--clickable tbody .tbl__row {
111
+ .zc-tbl--clickable tbody .zc-tbl__row {
116
112
  cursor: pointer;
117
113
  }
118
114
 
119
- .tbl__table td.tbl__cell--mono {
120
- font: var(--type-mono);
115
+ .zc-tbl__table td.zc-tbl__cell--mono {
116
+ font: var(--type-code);
121
117
  font-variant-numeric: tabular-nums;
122
118
  }
123
- .tbl__table td.tbl__cell--strong {
119
+ .zc-tbl__table td.zc-tbl__cell--strong {
124
120
  color: var(--text-strong);
125
121
  font-weight: var(--weight-medium);
126
122
  }
127
- .tbl__cell--end {
123
+ .zc-tbl__cell--end {
128
124
  text-align: right;
129
125
  }
130
- .tbl__cell--center {
126
+ .zc-tbl__cell--center {
131
127
  text-align: center;
132
128
  }
133
- .tbl__cell--grow {
129
+ .zc-tbl__cell--grow {
134
130
  width: 100%;
135
- } /* greedy column; auto table layout sizes the others to content */
131
+ }
136
132
 
137
- /* sort: full-cell button, inset by a margin so its focus ring isn't clipped */
138
- .tbl__table th.tbl__cell--sortable {
133
+ .zc-tbl__table th.zc-tbl__cell--sortable {
139
134
  padding: 0;
140
135
  }
141
- .tbl__sort {
136
+ .zc-tbl__sort {
142
137
  appearance: none;
143
138
  border: 0;
144
139
  background: transparent;
@@ -157,31 +152,30 @@
157
152
  white-space: nowrap;
158
153
  transition: var(--transition-colors);
159
154
  }
160
- .tbl__table th.tbl__cell--sortable:first-child .tbl__sort {
155
+ .zc-tbl__table th.zc-tbl__cell--sortable:first-child .zc-tbl__sort {
161
156
  padding-inline-start: var(--space-3);
162
157
  }
163
- .tbl__table th.tbl__cell--sortable:last-child .tbl__sort {
158
+ .zc-tbl__table th.zc-tbl__cell--sortable:last-child .zc-tbl__sort {
164
159
  padding-inline-end: var(--space-3);
165
160
  }
166
- .tbl__cell--end .tbl__sort {
161
+ .zc-tbl__cell--end .zc-tbl__sort {
167
162
  justify-content: flex-end;
168
163
  }
169
- .tbl__cell--center .tbl__sort {
164
+ .zc-tbl__cell--center .zc-tbl__sort {
170
165
  justify-content: center;
171
166
  }
172
- .tbl__sort:hover {
167
+ .zc-tbl__sort:hover {
173
168
  color: var(--text-strong);
174
169
  background: var(--neutral-wash);
175
170
  }
176
- .tbl__sort:focus-visible {
177
- outline: none;
178
- box-shadow: var(--focus-ring);
171
+ .zc-tbl__sort:focus-visible {
172
+ outline: var(--focus-ring);
179
173
  }
180
- .tbl__table th[aria-sort] .tbl__sort {
174
+ .zc-tbl__table th[aria-sort] .zc-tbl__sort {
181
175
  color: var(--text-strong);
182
176
  }
183
177
 
184
- .tbl__sortIcon {
178
+ .zc-tbl__sortIcon {
185
179
  display: inline-flex;
186
180
  flex: none;
187
181
  opacity: 0;
@@ -189,30 +183,29 @@
189
183
  opacity var(--duration-fast) var(--ease-standard),
190
184
  transform var(--duration-base) var(--ease-glide);
191
185
  }
192
- .tbl__sort:hover .tbl__sortIcon,
193
- .tbl__sort:focus-visible .tbl__sortIcon {
186
+ .zc-tbl__sort:hover .zc-tbl__sortIcon,
187
+ .zc-tbl__sort:focus-visible .zc-tbl__sortIcon {
194
188
  opacity: 0.5;
195
189
  }
196
- .tbl__sortIcon.is-on {
190
+ .zc-tbl__sortIcon.zc-is-on {
197
191
  opacity: 1;
198
192
  }
199
- .tbl__sortIcon.is-desc {
193
+ .zc-tbl__sortIcon.zc-is-desc {
200
194
  transform: rotate(180deg);
201
195
  }
202
196
 
203
- .tbl__table .tbl__cell--check {
197
+ .zc-tbl__table .zc-tbl__cell--check {
204
198
  width: var(--tbl-check-w);
205
199
  padding: 0 var(--space-2);
206
200
  }
207
- .tbl__cbx {
201
+ .zc-tbl__cbx {
208
202
  display: inline-flex;
209
203
  }
210
- .tbl__cbx .cbx__box {
204
+ .zc-tbl__cbx .zc-cbx__box {
211
205
  margin-top: 0;
212
- } /* no label - no baseline offset */
206
+ }
213
207
 
214
- /* bulk bar: absolute overlay that morphs from the header; the delayed visibility flip removes it from paint + tab order only after the exit fade, while pointer-events dies on close */
215
- .tbl__bulk {
208
+ .zc-tbl__bulk {
216
209
  position: absolute;
217
210
  top: 0;
218
211
  left: 0;
@@ -234,7 +227,7 @@
234
227
  transform var(--duration-fast) var(--ease-exit),
235
228
  visibility 0s linear var(--duration-fast);
236
229
  }
237
- .tbl__bulk[data-open] {
230
+ .zc-tbl__bulk[data-open] {
238
231
  opacity: 1;
239
232
  transform: none;
240
233
  visibility: visible;
@@ -244,13 +237,13 @@
244
237
  transform var(--duration-base) var(--ease-entrance),
245
238
  visibility 0s;
246
239
  }
247
- .tbl__bulk .cbx:not(.cbx--disabled):hover {
240
+ .zc-tbl__bulk .zc-cbx:not(.zc-cbx--disabled):hover {
248
241
  background: var(--accent-wash);
249
242
  }
250
- .tbl__bulkCount {
243
+ .zc-tbl__bulkCount {
251
244
  display: inline-flex;
252
245
  align-items: baseline;
253
- font-family: var(--font-mono);
246
+ font-family: var(--font-code);
254
247
  font-size: var(--size-caption);
255
248
  line-height: var(--leading-caption);
256
249
  font-weight: var(--weight-medium);
@@ -258,43 +251,42 @@
258
251
  color: var(--text-accent);
259
252
  white-space: pre; /* keep the space before "selected" */
260
253
  }
261
- .tbl__bulkSpacer {
254
+ .zc-tbl__bulkSpacer {
262
255
  flex: 1 1 auto;
263
256
  }
264
257
 
265
- .tbl--pin .tbl__cell--pin {
258
+ .zc-tbl--pin .zc-tbl__cell--pin {
266
259
  position: sticky;
267
260
  left: 0;
268
261
  z-index: 1;
269
262
  }
270
- .tbl--pin thead .tbl__cell--pin {
263
+ .zc-tbl--pin thead .zc-tbl__cell--pin {
271
264
  z-index: 3;
272
265
  }
273
- .tbl--pin .tbl__cell--pinOff {
266
+ .zc-tbl--pin .zc-tbl__cell--pinOff {
274
267
  left: var(--tbl-check-w);
275
268
  }
276
269
 
277
- /* soft cast off the pinned edge once content scrolls behind it (gradient exception, section B3) */
278
- .tbl--pin .tbl__cell--pinEdge::after {
270
+ .zc-tbl--pin .zc-tbl__cell--pinEdge::after {
279
271
  content: '';
280
272
  position: absolute;
281
273
  top: 0;
282
274
  bottom: calc(-1 * var(--border-hairline));
283
275
  left: 100%;
284
276
  width: var(--space-3);
285
- background: linear-gradient(to right, var(--gray-wash), transparent);
277
+ background: linear-gradient(to right, var(--neutral-wash), transparent);
286
278
  opacity: 0;
287
279
  transition: var(--transition-opacity);
288
280
  pointer-events: none;
289
281
  }
290
- .tbl--pin tbody tr:last-child .tbl__cell--pinEdge::after {
282
+ .zc-tbl--pin tbody tr:last-child .zc-tbl__cell--pinEdge::after {
291
283
  bottom: 0;
292
284
  }
293
- .tbl[data-x-back] .tbl__cell--pinEdge::after {
285
+ .zc-tbl[data-x-back] .zc-tbl__cell--pinEdge::after {
294
286
  opacity: 1;
295
287
  }
296
288
 
297
- .tbl__edge {
289
+ .zc-tbl__edge {
298
290
  position: absolute;
299
291
  top: 0;
300
292
  bottom: 0;
@@ -304,37 +296,37 @@
304
296
  transition: var(--transition-opacity);
305
297
  pointer-events: none;
306
298
  }
307
- .tbl__edge--l {
299
+ .zc-tbl__edge--l {
308
300
  left: 0;
309
301
  background: linear-gradient(to right, var(--bg-surface), transparent);
310
302
  }
311
- .tbl__edge--r {
303
+ .zc-tbl__edge--r {
312
304
  right: 0;
313
305
  background: linear-gradient(to left, var(--bg-surface), transparent);
314
306
  }
315
- .tbl[data-x-more] .tbl__edge--r {
307
+ .zc-tbl[data-x-more] .zc-tbl__edge--r {
316
308
  opacity: 1;
317
309
  }
318
- .tbl[data-x-back]:not(.tbl--pin) .tbl__edge--l {
310
+ .zc-tbl[data-x-back]:not(.zc-tbl--pin) .zc-tbl__edge--l {
319
311
  opacity: 1;
320
- } /* when pinned, the pinned column itself is the left-edge signal */
312
+ }
321
313
 
322
- .tbl__emptyCell {
314
+ .zc-tbl__emptyCell {
323
315
  padding: var(--space-7) var(--space-4);
324
316
  text-align: center;
325
317
  font: var(--type-body);
326
318
  color: var(--text-muted);
327
319
  }
328
320
 
329
- .tbl__table tbody {
321
+ .zc-tbl__table tbody {
330
322
  transition: var(--transition-opacity);
331
323
  }
332
- .tbl--loading .tbl__table tbody {
324
+ .zc-tbl--loading .zc-tbl__table tbody {
333
325
  opacity: 0.45;
334
326
  pointer-events: none;
335
327
  }
336
328
 
337
- .tbl__foot {
329
+ .zc-tbl__foot {
338
330
  display: flex;
339
331
  align-items: center;
340
332
  justify-content: flex-end;
@@ -344,14 +336,14 @@
344
336
  border-top: var(--border-hairline) solid var(--border-subtle);
345
337
  }
346
338
 
347
- /* column collapse at container breakpoints - 30rem / 42rem are intentional constants (no breakpoint tokens yet) */
339
+ /* 30rem and 42rem are constants: there is no breakpoint token */
348
340
  @container (max-width: 42rem) {
349
- .tbl__cell--hide-md {
341
+ .zc-tbl__cell--hide-md {
350
342
  display: none;
351
343
  }
352
344
  }
353
345
  @container (max-width: 30rem) {
354
- .tbl__cell--hide-sm {
346
+ .zc-tbl__cell--hide-sm {
355
347
  display: none;
356
348
  }
357
349
  }
package/dist/table.js CHANGED
@@ -1,14 +1,17 @@
1
1
  'use client';import { useScrollEdges } from './chunk-BIDVNLJO.js';
2
- import { activationProps } from './chunk-JY6A2ZJZ.js';
3
- import { Motion } from './chunk-5PZ43DCG.js';
4
- import './chunk-M43IOM5C.js';
5
- import './chunk-IJS7TPGV.js';
6
- import { Icon } from './chunk-EAI4POPB.js';
7
- import { DigitStrip } from './chunk-Y2YA7QRF.js';
8
- import { UIMotion } from './chunk-7IZJERGA.js';
9
- import { Button } from './chunk-HY5MPISE.js';
10
- import { Checkbox } from './chunk-I45AU6KH.js';
11
- import './chunk-RJFGWJ4W.js';
2
+ import { activationProps } from './chunk-LNAV5E7S.js';
3
+ import { Motion } from './chunk-FLDIRXFU.js';
4
+ import './chunk-GWCBTD63.js';
5
+ import './chunk-HWDIVGME.js';
6
+ import './chunk-VNVVG47J.js';
7
+ import { Icon } from './chunk-TBLPZQSI.js';
8
+ import { DigitStrip } from './chunk-H3X2263Y.js';
9
+ import { UIMotion } from './chunk-ZHMOH62S.js';
10
+ import { Button } from './chunk-LH2UIEKN.js';
11
+ import './chunk-KSAJ6DED.js';
12
+ import './chunk-NYQQH4R5.js';
13
+ import { Checkbox } from './chunk-GGDAMIBH.js';
14
+ import './chunk-3XRVPCIM.js';
12
15
  import { cx } from './chunk-QGNC7LH5.js';
13
16
  import './table.css';
14
17
  import { useState, useRef, useMemo } from 'react';
@@ -117,35 +120,35 @@ function Table({
117
120
  );
118
121
  function cellMods(col, i) {
119
122
  const a = [];
120
- if (col.align === "end") a.push("tbl__cell--end");
121
- if (col.align === "center") a.push("tbl__cell--center");
122
- if (col.grow) a.push("tbl__cell--grow");
123
- if (col.hideBelow) a.push("tbl__cell--hide-" + col.hideBelow);
123
+ if (col.align === "end") a.push("zc-tbl__cell--end");
124
+ if (col.align === "center") a.push("zc-tbl__cell--center");
125
+ if (col.grow) a.push("zc-tbl__cell--grow");
126
+ if (col.hideBelow) a.push("zc-tbl__cell--hide-" + col.hideBelow);
124
127
  if (pinFirst && i === 0) {
125
- a.push("tbl__cell--pin", "tbl__cell--pinEdge");
126
- if (selectable) a.push("tbl__cell--pinOff");
128
+ a.push("zc-tbl__cell--pin", "zc-tbl__cell--pinEdge");
129
+ if (selectable) a.push("zc-tbl__cell--pinOff");
127
130
  }
128
131
  return a;
129
132
  }
130
133
  const colCount = columns.length + (selectable ? 1 : 0);
131
134
  const showEmpty = !loading && sortedRows.length === 0;
132
- const checkCellCls = "tbl__cell--check" + (pinFirst ? " tbl__cell--pin" : "");
135
+ const checkCellCls = "zc-tbl__cell--check" + (pinFirst ? " zc-tbl__cell--pin" : "");
133
136
  const checkSize = density === "compact" ? "sm" : "md";
134
137
  const bulkOpen = selectable && selected.size > 0;
135
138
  if (selected.size > 0) lastCountRef.current = selected.size;
136
139
  const rootCls = cx(
137
- "tbl",
138
- density === "compact" && "tbl--compact",
139
- pinFirst && "tbl--pin",
140
- loading && "tbl--loading",
141
- onRowClick && "tbl--clickable",
140
+ "zc-tbl",
141
+ density === "compact" && "zc-tbl--compact",
142
+ pinFirst && "zc-tbl--pin",
143
+ loading && "zc-tbl--loading",
144
+ onRowClick && "zc-tbl--clickable",
142
145
  className
143
146
  );
144
147
  return /* @__PURE__ */ jsxs("div", { ref: wrapRef, className: rootCls, ...htmlProps, children: [
145
148
  selectable ? /* @__PURE__ */ jsxs(
146
149
  "div",
147
150
  {
148
- className: "tbl__bulk",
151
+ className: "zc-tbl__bulk",
149
152
  "data-open": bulkOpen ? "" : void 0,
150
153
  "aria-hidden": bulkOpen ? void 0 : true,
151
154
  role: "toolbar",
@@ -154,7 +157,7 @@ function Table({
154
157
  /* @__PURE__ */ jsx(
155
158
  Checkbox,
156
159
  {
157
- className: "tbl__cbx",
160
+ className: "zc-tbl__cbx",
158
161
  size: checkSize,
159
162
  checked: allSelected,
160
163
  indeterminate: someSelected,
@@ -162,23 +165,23 @@ function Table({
162
165
  onChange: toggleAll
163
166
  }
164
167
  ),
165
- /* @__PURE__ */ jsxs("span", { className: "tbl__bulkCount", "aria-live": "polite", "aria-atomic": "true", children: [
168
+ /* @__PURE__ */ jsxs("span", { className: "zc-tbl__bulkCount", "aria-live": "polite", "aria-atomic": "true", children: [
166
169
  /* @__PURE__ */ jsx(DigitStrip, { value: bulkOpen ? selected.size : lastCountRef.current }),
167
170
  /* @__PURE__ */ jsx("span", { children: " selected" })
168
171
  ] }),
169
- /* @__PURE__ */ jsx("span", { className: "tbl__bulkSpacer" }),
172
+ /* @__PURE__ */ jsx("span", { className: "zc-tbl__bulkSpacer" }),
170
173
  bulkActions ? bulkActions(Array.from(selected), clearSelection) : null,
171
174
  /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", onClick: clearSelection, children: "Clear" })
172
175
  ]
173
176
  }
174
177
  ) : null,
175
- /* @__PURE__ */ jsxs("div", { className: "tbl__viewport", children: [
176
- /* @__PURE__ */ jsx("div", { className: "tbl__scroll", ref: scrollRef, children: /* @__PURE__ */ jsxs("table", { className: "tbl__table", "aria-label": ariaLabel, "aria-busy": loading || void 0, children: [
178
+ /* @__PURE__ */ jsxs("div", { className: "zc-tbl__viewport", children: [
179
+ /* @__PURE__ */ jsx("div", { className: "zc-tbl__scroll", ref: scrollRef, children: /* @__PURE__ */ jsxs("table", { className: "zc-tbl__table", "aria-label": ariaLabel, "aria-busy": loading || void 0, children: [
177
180
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
178
181
  selectable ? /* @__PURE__ */ jsx("th", { scope: "col", className: checkCellCls, children: /* @__PURE__ */ jsx(
179
182
  Checkbox,
180
183
  {
181
- className: "tbl__cbx",
184
+ className: "zc-tbl__cbx",
182
185
  size: checkSize,
183
186
  checked: allSelected,
184
187
  indeterminate: someSelected,
@@ -188,7 +191,7 @@ function Table({
188
191
  ) }) : null,
189
192
  columns.map((c, i) => {
190
193
  const active = sort && sort.key === c.key;
191
- const cls = (c.sortable ? ["tbl__cell--sortable"] : []).concat(cellMods(c, i));
194
+ const cls = (c.sortable ? ["zc-tbl__cell--sortable"] : []).concat(cellMods(c, i));
192
195
  return /* @__PURE__ */ jsx(
193
196
  "th",
194
197
  {
@@ -199,27 +202,27 @@ function Table({
199
202
  "button",
200
203
  {
201
204
  type: "button",
202
- className: "tbl__sort",
205
+ className: "zc-tbl__sort",
203
206
  ...activationProps(() => cycleSort(c), { on: activateOn }),
204
207
  children: [
205
- /* @__PURE__ */ jsx("span", { className: "tbl__sortLbl", children: c.label }),
208
+ /* @__PURE__ */ jsx("span", { className: "zc-tbl__sortLbl", children: c.label }),
206
209
  /* @__PURE__ */ jsx(
207
210
  "span",
208
211
  {
209
- className: "tbl__sortIcon" + (active ? " is-on" : "") + (active && sort.dir === "desc" ? " is-desc" : ""),
212
+ className: "zc-tbl__sortIcon" + (active ? " zc-is-on" : "") + (active && sort.dir === "desc" ? " zc-is-desc" : ""),
210
213
  "aria-hidden": "true",
211
214
  children: /* @__PURE__ */ jsx(Icon, { name: "arrow-up", size: "sm" })
212
215
  }
213
216
  )
214
217
  ]
215
218
  }
216
- ) : c.label != null ? /* @__PURE__ */ jsx("span", { className: "tbl__hLbl", children: c.label }) : null
219
+ ) : c.label != null ? /* @__PURE__ */ jsx("span", { className: "zc-tbl__hLbl", children: c.label }) : null
217
220
  },
218
221
  c.key
219
222
  );
220
223
  })
221
224
  ] }) }),
222
- /* @__PURE__ */ jsx("tbody", { children: showEmpty ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: colCount, className: "tbl__emptyCell", children: empty != null ? empty : "Nothing to show" }) }) : sortedRows.map((row, idx) => {
225
+ /* @__PURE__ */ jsx("tbody", { children: showEmpty ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: colCount, className: "zc-tbl__emptyCell", children: empty != null ? empty : "Nothing to show" }) }) : sortedRows.map((row, idx) => {
223
226
  const k = keyOf(row);
224
227
  const isSel = selected.has(k);
225
228
  return /* @__PURE__ */ jsxs(
@@ -228,14 +231,14 @@ function Table({
228
231
  as: "tr",
229
232
  layout: true,
230
233
  layoutTransition: ROW_FLIP,
231
- className: "tbl__row",
234
+ className: "zc-tbl__row",
232
235
  "data-selected": isSel ? "" : void 0,
233
236
  onClick: onRowClick ? () => onRowClick(row) : void 0,
234
237
  children: [
235
238
  selectable ? /* @__PURE__ */ jsx("td", { className: checkCellCls, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx(
236
239
  Checkbox,
237
240
  {
238
- className: "tbl__cbx",
241
+ className: "zc-tbl__cbx",
239
242
  size: checkSize,
240
243
  checked: isSel,
241
244
  htmlProps: {
@@ -250,7 +253,7 @@ function Table({
250
253
  columns.map((c, i) => /* @__PURE__ */ jsx(
251
254
  "td",
252
255
  {
253
- className: cellMods(c, i).concat(c.mono ? ["tbl__cell--mono"] : []).concat(c.strong ? ["tbl__cell--strong"] : []).join(" "),
256
+ className: cellMods(c, i).concat(c.mono ? ["zc-tbl__cell--mono"] : []).concat(c.strong ? ["zc-tbl__cell--strong"] : []).join(" "),
254
257
  children: c.render ? c.render(row) : row[c.key]
255
258
  },
256
259
  c.key
@@ -261,10 +264,10 @@ function Table({
261
264
  );
262
265
  }) })
263
266
  ] }) }),
264
- /* @__PURE__ */ jsx("div", { className: "tbl__edge tbl__edge--l", "aria-hidden": "true" }),
265
- /* @__PURE__ */ jsx("div", { className: "tbl__edge tbl__edge--r", "aria-hidden": "true" })
267
+ /* @__PURE__ */ jsx("div", { className: "zc-tbl__edge zc-tbl__edge--l", "aria-hidden": "true" }),
268
+ /* @__PURE__ */ jsx("div", { className: "zc-tbl__edge zc-tbl__edge--r", "aria-hidden": "true" })
266
269
  ] }),
267
- footer ? /* @__PURE__ */ jsx("div", { className: "tbl__foot", children: footer }) : null
270
+ footer ? /* @__PURE__ */ jsx("div", { className: "zc-tbl__foot", children: footer }) : null
268
271
  ] });
269
272
  }
270
273