@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
@@ -14,7 +14,7 @@ import { CategoryBar } from './react/category-bar';
14
14
  import { useEmojiPicker, type EmojiPickerStore } from './react/useEmojiPicker';
15
15
  import type { GetEmojiUrl } from './types';
16
16
 
17
- export { loadEmojiData, onEmojiDataLoaded, type EmojiData, type Emoji } from './data';
17
+ export { getEmojiArray, getEmojiData, loadEmojiData, onEmojiDataLoaded, type EmojiData, type Emoji } from './data';
18
18
  export { getEmojiUrl } from './getEmojiUrl';
19
19
  export type { GetEmojiUrl, EmojiUrlSource } from './types';
20
20
 
@@ -94,9 +94,9 @@ export function EmojiPickerPanel({
94
94
  const positioned = useMemo(() => inflate(anchor, offset), [anchor, offset]);
95
95
 
96
96
  const frame = (
97
- <div className={['on-emoji', asSheet && 'on-emoji--sheet', className].filter(Boolean).join(' ')}>
97
+ <div className={['zc-on-emoji', asSheet && 'zc-on-emoji--sheet', className].filter(Boolean).join(' ')}>
98
98
  {asSheet || search ? (
99
- <div className="on-emoji-search" ref={searchRef}>
99
+ <div className="zc-on-emoji-search" ref={searchRef}>
100
100
  <TextField
101
101
  size="sm"
102
102
  type="search"
@@ -143,7 +143,8 @@ export function EmojiPickerPanel({
143
143
  onOpenChange={onOpenChange}
144
144
  trigger={trigger}
145
145
  activateOn={activateOn}
146
- // Its exit because, emojipicker as of now looses frames during entry and entry animation is non existence on the "entrance" curve as a result
146
+ // The exit curve on open: building the grid drops the first frames, and on the entrance curve nothing of
147
+ // the animation survives them.
147
148
  animation={{ ease: { open: 'exit' } }}
148
149
  htmlProps={{ className: 'on-emoji-pop', 'aria-label': 'Emoji picker' }}
149
150
  >
@@ -6,10 +6,10 @@ Docs: https://ui.zyncat.app/emoji-picker
6
6
  Searchable emoji panel - grid, scrollspy category rail, recents in localStorage - living in a Popover, becoming a bottom Sheet on narrow viewports.
7
7
 
8
8
  Matching is word-based, not fuzzy. The dataset is NOT bundled: call loadEmojiData(url | EmojiData)
9
- once before the panel first opens or it throws; onEmojiDataLoaded(cb) fires when it lands.
10
- getEmojiUrl is REQUIRED. Two shapes. search renders the panel's own field, opened from trigger.
11
- query drives the grid from an input YOU own - point popoverProps.anchor at the caret rect and
12
- forward keys through the ref.
9
+ once before the panel first opens or it throws; onEmojiDataLoaded(cb) fires when it lands and
10
+ getEmojiArray() then reads it back. getEmojiUrl is REQUIRED. Two shapes. search renders the panel's
11
+ own field, opened from trigger. query drives the grid from an input YOU own - point
12
+ popoverProps.anchor at the caret rect and forward keys through the ref.
13
13
 
14
14
  ```tsx
15
15
  import { EmojiPickerPanel, getEmojiUrl, loadEmojiData } from '@zyncat/ui/emoji-picker';
@@ -50,10 +50,7 @@ export function onEmojiDataLoaded(cb: () => void): () => void {
50
50
  };
51
51
  }
52
52
 
53
- /**
54
- * Load the emoji dataset. Pass a URL to fetch it, or an already-parsed
55
- * `EmojiData` object to install it directly. Idempotent — the first call wins.
56
- */
53
+ /** Load the emoji dataset from a URL, or install an already-parsed `EmojiData` object. The first call wins. */
57
54
  export async function loadEmojiData(loader: string | EmojiData) {
58
55
  if (!_inflight) {
59
56
  if (typeof loader !== 'string') {
@@ -73,7 +70,7 @@ export async function loadEmojiData(loader: string | EmojiData) {
73
70
  return _inflight;
74
71
  }
75
72
 
76
- /** Synchronous access — only valid after loadEmojiData() has resolved */
73
+ /** The loaded dataset, or null until `loadEmojiData` has resolved. */
77
74
  export function getEmojiData(): EmojiData | null {
78
75
  return _cache;
79
76
  }
@@ -25,26 +25,26 @@ export function createEmojiGrid(scroll: HTMLDivElement, getEmojiUrl: GetEmojiUrl
25
25
 
26
26
  const swapInNativeGlyph = (e: Event) => {
27
27
  const img = e.target as HTMLImageElement;
28
- if (img.matches?.('.on-emoji-btn-img')) img.parentElement!.textContent = img.alt;
28
+ if (img.matches?.('.zc-on-emoji-btn-img')) img.parentElement!.textContent = img.alt;
29
29
  };
30
30
  scroll.addEventListener('error', swapInNativeGlyph, true);
31
31
 
32
32
  const tile = (emoji: Emoji, idx: number, order: number) =>
33
- `<button type="button" role="option" tabindex="-1" class="on-emoji-btn" id="${attr(tileIdPrefix + idx)}" aria-label="${attr(emoji.name)}" data-id="${emoji.id}" data-idx="${idx}" style="--i:${order}">` +
34
- `<img class="on-emoji-btn-img" src="${attr(getEmojiUrl(emoji.id, 'picker-grid'))}" loading="lazy" draggable="false" alt="${attr(emoji.unicode)}"></button>`;
33
+ `<button type="button" role="option" tabindex="-1" class="zc-on-emoji-btn" id="${attr(tileIdPrefix + idx)}" aria-label="${attr(emoji.name)}" data-id="${emoji.id}" data-idx="${idx}" style="--i:${order}">` +
34
+ `<img class="zc-on-emoji-btn-img" src="${attr(getEmojiUrl(emoji.id, 'picker-grid'))}" loading="lazy" draggable="false" alt="${attr(emoji.unicode)}"></button>`;
35
35
 
36
36
  const addCategory = (title: string, key: string, ids: string[]) => {
37
37
  const data = getEmojiData();
38
38
  if (!data) return;
39
39
 
40
- const header = el('div', 'on-emoji-header');
40
+ const header = el('div', 'zc-on-emoji-header');
41
41
  header.textContent = title;
42
42
  header.setAttribute('aria-hidden', 'true');
43
43
  scroll.appendChild(header);
44
44
 
45
45
  const start = buttons.length;
46
46
  const emojis = ids.map((id) => data.emojis[id]).filter(Boolean);
47
- const grid = el('div', 'on-emoji-grid');
47
+ const grid = el('div', 'zc-on-emoji-grid');
48
48
  grid.setAttribute('role', 'group');
49
49
  grid.setAttribute('aria-label', title);
50
50
  grid.style.setProperty('--cols', String(COLUMN_COUNT));
@@ -59,7 +59,7 @@ export function createEmojiGrid(scroll: HTMLDivElement, getEmojiUrl: GetEmojiUrl
59
59
  const indexOfKey = (key: string) => sections.findIndex((s) => s.key === key);
60
60
 
61
61
  const showEmpty = (message: string) => {
62
- scroll.insertAdjacentHTML('beforeend', `<div class="on-emoji-empty">${attr(message)}</div>`);
62
+ scroll.insertAdjacentHTML('beforeend', `<div class="zc-on-emoji-empty">${attr(message)}</div>`);
63
63
  };
64
64
 
65
65
  const clear = () => {
@@ -9,7 +9,7 @@ import { activationProps, type ActivateOn } from '../../../internal/utils/activa
9
9
  import { CATEGORY_ICON_ATTRS, CATEGORY_ICONS } from '../category-icons';
10
10
  import { useCategories, useIsActiveCategory, type EmojiPickerStore } from './useEmojiPicker';
11
11
 
12
- const RAIL_GLIDE = { timing: { duration: SM.dur.base, ease: SM.ease.standard } };
12
+ const railGlide = () => ({ timing: { duration: SM.dur.base, ease: SM.ease.standard } });
13
13
 
14
14
  interface CategoryProps {
15
15
  store: EmojiPickerStore;
@@ -25,7 +25,7 @@ function Category({ store, categoryKey, railId, glide, activateOn }: CategoryPro
25
25
  return (
26
26
  <button
27
27
  type="button"
28
- className={isActive ? 'on-emoji-cat on-emoji-cat--active' : 'on-emoji-cat'}
28
+ className={isActive ? 'zc-on-emoji-cat zc-on-emoji-cat--active' : 'zc-on-emoji-cat'}
29
29
  aria-label={categoryKey.replace(/-/g, ' ')}
30
30
  aria-current={isActive ? true : undefined}
31
31
  onPointerEnter={(e) => glide.enter(e.currentTarget)}
@@ -42,8 +42,8 @@ function Category({ store, categoryKey, railId, glide, activateOn }: CategoryPro
42
42
  <Motion
43
43
  as="span"
44
44
  layoutId={railId}
45
- layoutTransition={RAIL_GLIDE}
46
- className="on-emoji-cat-rail"
45
+ layoutTransition={railGlide()}
46
+ className="zc-on-emoji-cat-rail"
47
47
  aria-hidden="true"
48
48
  />
49
49
  )}
@@ -62,13 +62,13 @@ export function CategoryBar({ store, activateOn }: { store: EmojiPickerStore; ac
62
62
  return (
63
63
  <div
64
64
  ref={barRef}
65
- className="on-emoji-bar"
65
+ className="zc-on-emoji-bar"
66
66
  onPointerLeave={glide.leave}
67
67
  onMouseDown={(e) => e.preventDefault()}
68
68
  role="group"
69
69
  aria-label="Emoji categories"
70
70
  >
71
- <GlidePill className="on-emoji-bar-marker" glide={glide} />
71
+ <GlidePill className="zc-on-emoji-bar-marker" glide={glide} />
72
72
  {categories.map((key) => (
73
73
  <Category key={key} store={store} categoryKey={key} railId={railId} glide={glide} activateOn={activateOn} />
74
74
  ))}
@@ -9,9 +9,7 @@ import type { GetEmojiUrl } from '../types';
9
9
  export interface UseEmojiPickerOptions {
10
10
  onSelect: (shortcode: string, hexId: string) => void;
11
11
  getEmojiUrl: GetEmojiUrl;
12
- /** Drive the results from outside — a `:` chip in a document, your own input. */
13
12
  query?: string;
14
- /** Whether picking an emoji fires on `pointerdown` (snappier) or waits for `click`. @default 'click' */
15
13
  activateOn?: ActivateOn;
16
14
  }
17
15
 
@@ -42,15 +40,12 @@ export function createEmojiPickerStore(listboxId: string, handlers: Handlers) {
42
40
  };
43
41
 
44
42
  return {
45
- /** Spread onto the field that drives the picker: combobox roles, already pointing at the grid. */
46
43
  searchProps: {
47
44
  role: 'combobox',
48
45
  'aria-expanded': true,
49
46
  'aria-autocomplete': 'list',
50
47
  'aria-controls': listboxId,
51
48
  } as const,
52
- /** Callback ref for the element the picker takes over. The grid is built the moment the node
53
- * arrives, which for a popover is a commit or two after the hook first ran. */
54
49
  mount: (node: HTMLDivElement | null) => {
55
50
  api?.destroy();
56
51
  drawn = false;
@@ -73,9 +68,6 @@ export function createEmojiPickerStore(listboxId: string, handlers: Handlers) {
73
68
  : null;
74
69
  draw();
75
70
  },
76
- /** Callback ref for the field that keeps focus while the grid is navigated, or anything wrapping it.
77
- * The picker moves `aria-activedescendant` on it directly, so running the marker down 1900 tiles
78
- * never costs a render. */
79
71
  searchRef: (node: HTMLElement | null) => {
80
72
  focusHost = node?.matches(FOCUSABLE) ? node : (node?.querySelector<HTMLElement>(FOCUSABLE) ?? null);
81
73
  },
@@ -129,11 +121,8 @@ export function useEmojiPicker({ onSelect, getEmojiUrl, query, activateOn }: Use
129
121
  return store;
130
122
  }
131
123
 
132
- /** Category keys the grid currently holds; empty while showing search results. */
133
124
  export const useCategories = (store: EmojiPickerStore): string[] =>
134
125
  useSyncExternalStore(store.subscribe, store.getCategories, store.getCategories);
135
126
 
136
- /** Whether the scroll position is inside this category. Subscribing per key means a scrollspy
137
- * tick re-renders the two rows whose state flipped, not the panel. */
138
127
  export const useIsActiveCategory = (store: EmojiPickerStore, key: string): boolean =>
139
128
  useSyncExternalStore(store.subscribe, () => store.isActive(key), notActive);
@@ -8,29 +8,29 @@ const IDLE_CAPTION = 'Pick an emoji…';
8
8
  const MARKER_OPACITY = 0.6;
9
9
 
10
10
  export function createScaffold(root: HTMLElement, emojiData: EmojiData, getEmojiUrl: GetEmojiUrl, listboxId: string) {
11
- const scroll = el('div', 'on-emoji-scroll');
12
- const marker = el('span', 'on-emoji-marker');
13
- const caption = el('div', 'on-emoji-caption');
11
+ const scroll = el('div', 'zc-on-emoji-scroll');
12
+ const marker = el('span', 'zc-on-emoji-marker');
13
+ const caption = el('div', 'zc-on-emoji-caption');
14
14
 
15
15
  scroll.id = listboxId;
16
16
  scroll.setAttribute('role', 'listbox');
17
17
  scroll.setAttribute('aria-label', 'Emoji');
18
18
 
19
19
  caption.innerHTML =
20
- '<img class="on-emoji-caption-img" alt="" draggable="false" hidden>' +
21
- '<span class="on-emoji-caption-name"></span><span class="on-emoji-caption-code"></span>';
20
+ '<img class="zc-on-emoji-caption-img" alt="" draggable="false" hidden>' +
21
+ '<span class="zc-on-emoji-caption-name"></span><span class="zc-on-emoji-caption-code"></span>';
22
22
  const [captionImg, captionName, captionCode] = caption.children as unknown as [
23
23
  HTMLImageElement,
24
24
  HTMLElement,
25
25
  HTMLElement,
26
26
  ];
27
27
 
28
- root.className = 'on-emoji-body';
28
+ root.className = 'zc-on-emoji-body';
29
29
  root.append(scroll, caption);
30
30
 
31
31
  const setCaption = (btn: HTMLButtonElement | null) => {
32
32
  const emoji = btn?.dataset.id ? emojiData.emojis[btn.dataset.id] : null;
33
- caption.classList.toggle('is-idle', !emoji);
33
+ caption.classList.toggle('zc-is-idle', !emoji);
34
34
  captionImg.hidden = !emoji;
35
35
  captionName.textContent = emoji ? emoji.name : IDLE_CAPTION;
36
36
  captionCode.textContent = emoji ? `:${emoji.shortcodes[0] ?? emoji.id}:` : '';
@@ -2,12 +2,6 @@ import { getEmojiData, type EmojiData } from './data';
2
2
 
3
3
  const MAX_RESULTS = 90;
4
4
 
5
- /* Emoji search is word search, not fuzzy search: at ~1800 items a
6
- * subsequence tier drowns the tail in junk ("cat" ⊂ "certification"), so
7
- * matching is strictly word-based — every query token must hit a word
8
- * (exact / prefix / mid-word for longer tokens), and tags count for less
9
- * than names or shortcodes. */
10
-
11
5
  interface IndexedEmoji {
12
6
  id: string;
13
7
  shortcodes: string[];
@@ -73,7 +67,6 @@ export const getRankedEmojiIds = (query: string): string[] => {
73
67
  if (total) scored.push({ id: e.id, score: total, nameLen: e.nameLen });
74
68
  }
75
69
 
76
- // Equal relevance → the shorter name is the more focal emoji.
77
70
  scored.sort((a, b) => b.score - a.score || a.nameLen - b.nameLen);
78
71
  return scored.slice(0, MAX_RESULTS).map((s) => s.id);
79
72
  };
@@ -1,14 +1,14 @@
1
- @layer zyncat.tokens, zyncat.components;
1
+ @layer zyncat.reset, zyncat.tokens, zyncat.components;
2
2
 
3
3
  @layer zyncat.components {
4
- .on-emoji,
5
- .on-emoji *,
6
- .on-emoji-body,
7
- .on-emoji-body * {
4
+ .zc-on-emoji,
5
+ .zc-on-emoji *,
6
+ .zc-on-emoji-body,
7
+ .zc-on-emoji-body * {
8
8
  box-sizing: border-box;
9
9
  }
10
10
 
11
- .on-emoji {
11
+ .zc-on-emoji {
12
12
  display: flex;
13
13
  flex-direction: column;
14
14
  width: var(--emoji-picker-width, 23.5rem);
@@ -18,22 +18,22 @@
18
18
  border-radius: var(--radius-lg);
19
19
  box-shadow: var(--shadow-lg);
20
20
  color: var(--text-body);
21
- font-family: var(--font-sans);
21
+ font-family: var(--font-body);
22
22
  font-size: var(--size-body);
23
23
  }
24
- .on-emoji-body {
24
+ .zc-on-emoji-body {
25
25
  display: flex;
26
26
  flex: 1;
27
27
  flex-direction: column;
28
28
  min-height: 0;
29
29
  }
30
30
 
31
- .on-emoji-search {
31
+ .zc-on-emoji-search {
32
32
  flex: none;
33
33
  padding: var(--space-2) var(--space-2) var(--space-1);
34
34
  }
35
35
 
36
- .on-emoji-bar {
36
+ .zc-on-emoji-bar {
37
37
  position: relative;
38
38
  display: flex;
39
39
  flex: none;
@@ -41,7 +41,7 @@
41
41
  padding: var(--space-1) var(--space-2);
42
42
  border-bottom: var(--border-hairline) solid var(--border-default);
43
43
  }
44
- .on-emoji-cat {
44
+ .zc-on-emoji-cat {
45
45
  position: relative;
46
46
  z-index: 1;
47
47
  display: inline-flex;
@@ -56,17 +56,17 @@
56
56
  cursor: pointer;
57
57
  transition: var(--transition-colors);
58
58
  }
59
- .on-emoji-cat:hover {
59
+ .zc-on-emoji-cat:hover {
60
60
  color: var(--text-body);
61
61
  }
62
- .on-emoji-cat--active {
62
+ .zc-on-emoji-cat--active {
63
63
  color: var(--text-accent);
64
64
  }
65
- .on-emoji-cat > svg {
65
+ .zc-on-emoji-cat > svg {
66
66
  width: var(--icon-sm);
67
67
  height: var(--icon-sm);
68
68
  }
69
- .on-emoji-cat-rail {
69
+ .zc-on-emoji-cat-rail {
70
70
  position: absolute;
71
71
  inset-inline: 0;
72
72
  bottom: calc(2px - var(--space-1));
@@ -77,8 +77,8 @@
77
77
  background: var(--accent);
78
78
  pointer-events: none;
79
79
  }
80
- .on-emoji-bar-marker,
81
- .on-emoji-marker {
80
+ .zc-on-emoji-bar-marker,
81
+ .zc-on-emoji-marker {
82
82
  position: absolute;
83
83
  top: 0;
84
84
  left: 0;
@@ -86,23 +86,23 @@
86
86
  opacity: 0;
87
87
  pointer-events: none;
88
88
  }
89
- .on-emoji-bar-marker {
89
+ .zc-on-emoji-bar-marker {
90
90
  border-radius: var(--radius-sm);
91
91
  background: var(--neutral-wash);
92
92
  will-change: transform, opacity;
93
93
  }
94
94
 
95
- .on-emoji-scroll {
95
+ .zc-on-emoji-scroll {
96
96
  position: relative;
97
97
  flex: 1;
98
98
  min-height: 0;
99
99
  overflow-y: auto;
100
100
  scrollbar-width: none;
101
101
  }
102
- .on-emoji-scroll::-webkit-scrollbar {
102
+ .zc-on-emoji-scroll::-webkit-scrollbar {
103
103
  display: none;
104
104
  }
105
- .on-emoji-marker {
105
+ .zc-on-emoji-marker {
106
106
  width: 0;
107
107
  height: 0;
108
108
  border-radius: var(--radius-md);
@@ -110,7 +110,7 @@
110
110
  will-change: transform, width, height, opacity;
111
111
  }
112
112
 
113
- .on-emoji-header {
113
+ .zc-on-emoji-header {
114
114
  position: sticky;
115
115
  top: 0;
116
116
  z-index: 10;
@@ -121,7 +121,7 @@
121
121
  text-transform: uppercase;
122
122
  color: var(--text-subtle);
123
123
  }
124
- .on-emoji-grid {
124
+ .zc-on-emoji-grid {
125
125
  display: grid;
126
126
  grid-template-columns: repeat(var(--cols, 8), 1fr);
127
127
  gap: var(--space-1);
@@ -129,7 +129,7 @@
129
129
  content-visibility: auto;
130
130
  contain-intrinsic-height: auto calc(var(--rows, 1) * (var(--control-height-lg) + var(--space-1)) - var(--space-1));
131
131
  }
132
- .on-emoji-btn {
132
+ .zc-on-emoji-btn {
133
133
  position: relative;
134
134
  z-index: 1;
135
135
  display: flex;
@@ -146,7 +146,7 @@
146
146
  scroll-margin-top: var(--control-height);
147
147
  scroll-margin-bottom: var(--space-2);
148
148
  }
149
- .on-emoji-btn-img {
149
+ .zc-on-emoji-btn-img {
150
150
  display: block;
151
151
  width: var(--icon-lg);
152
152
  height: var(--icon-lg);
@@ -159,20 +159,20 @@
159
159
  transform: translateY(var(--distance-sm)) scale(var(--scale-chip));
160
160
  }
161
161
  }
162
- .on-emoji-scroll .on-emoji-btn {
162
+ .zc-on-emoji-scroll .zc-on-emoji-btn {
163
163
  --emoji-picker-stagger-step: 10ms;
164
164
  animation: on-emoji-tile-in var(--duration-base) var(--ease-entrance) both;
165
165
  animation-delay: min(calc(var(--i, 0) * var(--emoji-picker-stagger-step)), var(--duration-slower));
166
166
  }
167
167
 
168
- .on-emoji-empty {
168
+ .zc-on-emoji-empty {
169
169
  padding: var(--space-6) var(--space-4);
170
170
  color: var(--text-muted);
171
171
  font: var(--type-caption);
172
172
  text-align: center;
173
173
  }
174
174
 
175
- .on-emoji-caption {
175
+ .zc-on-emoji-caption {
176
176
  display: flex;
177
177
  flex: none;
178
178
  align-items: center;
@@ -181,13 +181,13 @@
181
181
  padding: 0 var(--space-3);
182
182
  border-top: var(--border-hairline) solid var(--border-default);
183
183
  }
184
- .on-emoji-caption-img {
184
+ .zc-on-emoji-caption-img {
185
185
  flex: none;
186
186
  width: var(--icon-md);
187
187
  height: var(--icon-md);
188
188
  user-select: none;
189
189
  }
190
- .on-emoji-caption-name {
190
+ .zc-on-emoji-caption-name {
191
191
  overflow: hidden;
192
192
  color: var(--text-body);
193
193
  font: var(--type-caption);
@@ -195,21 +195,21 @@
195
195
  white-space: nowrap;
196
196
  text-overflow: ellipsis;
197
197
  }
198
- .on-emoji-caption-name::first-letter {
198
+ .zc-on-emoji-caption-name::first-letter {
199
199
  text-transform: uppercase;
200
200
  }
201
- .on-emoji-caption-code {
201
+ .zc-on-emoji-caption-code {
202
202
  flex: none;
203
203
  margin-left: auto;
204
204
  color: var(--text-muted);
205
- font: var(--type-mono);
205
+ font: var(--type-code);
206
206
  }
207
- .on-emoji-caption.is-idle .on-emoji-caption-name {
207
+ .zc-on-emoji-caption.zc-is-idle .zc-on-emoji-caption-name {
208
208
  color: var(--text-subtle);
209
209
  font-weight: var(--weight-regular);
210
210
  }
211
211
 
212
- .on-emoji--sheet {
212
+ .zc-on-emoji--sheet {
213
213
  width: 100%;
214
214
  height: min(var(--emoji-picker-height, 26.5rem), 70svh);
215
215
  border-right: 0;
@@ -1,12 +1,7 @@
1
1
  /**
2
- * Where the emoji is being rendered. It's metadata for
3
- * {@link GetEmojiUrl} — consumers can vary provider, size, or format per
4
- * context, or ignore it entirely.
5
- *
6
- * - `"inline"` — inline within editor text (small)
7
- * - `"picker-grid"` — main grid in the picker panel (medium)
8
- * - `"category-bar"` — category tab icons (small, often animated)
9
- * - `"callout-icon"` — callout block leading icon (medium)
2
+ * Where an emoji is rendered, so a `GetEmojiUrl` can vary provider, size or format per context: `inline` in
3
+ * editor text, `picker-grid` in the panel, `category-bar` for the tab icons, `callout-icon` for a callout's
4
+ * leading icon.
10
5
  */
11
6
  export type EmojiUrlSource = 'inline' | 'picker-grid' | 'category-bar' | 'callout-icon';
12
7
 
@@ -87,8 +87,8 @@ export function Modal({
87
87
  timings={timings}
88
88
  animate={popIn(UIMotion.scale.panel, timings.open)}
89
89
  exit={popOut(UIMotion.scale.panel, timings.close)}
90
- layerClass="overlay-layer--modal"
91
- panelClass="overlay-panel--modal"
90
+ layerClass="zc-overlay-layer--modal"
91
+ panelClass="zc-overlay-panel--modal"
92
92
  panelId={panelId}
93
93
  dismissible={dismissible}
94
94
  container={container}
@@ -1,12 +1,10 @@
1
- @layer zyncat.tokens, zyncat.components;
1
+ @layer zyncat.reset, zyncat.tokens, zyncat.components;
2
2
 
3
3
  @layer zyncat.components {
4
- /* modal.css - the unpainted modal surface: the shell layer centers the panel and
5
- constrains it to the layer box. Everything else is the consumer's paint. */
6
- .overlay-layer--modal {
4
+ .zc-overlay-layer--modal {
7
5
  place-items: center;
8
6
  }
9
- .overlay-panel--modal {
7
+ .zc-overlay-panel--modal {
10
8
  max-width: 100%;
11
9
  max-height: 100%;
12
10
  }
@@ -80,21 +80,21 @@ export function Pagination({
80
80
  const nextBusy = loading && lastDirRef.current === 1;
81
81
 
82
82
  return (
83
- <nav className={cx('pgn', className)} aria-label={ariaLabel} aria-busy={loading || undefined} {...htmlProps}>
84
- <span className="pgn__readout" aria-live="polite">
85
- <span className="pgn__range" ref={rangeRef}>
83
+ <nav className={cx('zc-pgn', className)} aria-label={ariaLabel} aria-busy={loading || undefined} {...htmlProps}>
84
+ <span className="zc-pgn__readout" aria-live="polite">
85
+ <span className="zc-pgn__range" ref={rangeRef}>
86
86
  <b>
87
87
  {pgnFormat(from)}-{pgnFormat(to)}
88
88
  </b>
89
- {total != null ? <span className="pgn__total"> of {pgnFormat(total)}</span> : null}
89
+ {total != null ? <span className="zc-pgn__total"> of {pgnFormat(total)}</span> : null}
90
90
  </span>
91
91
  </span>
92
- <div className="pgn__nav">
92
+ <div className="zc-pgn__nav">
93
93
  <Button
94
94
  variant="ghost"
95
95
  size="sm"
96
96
  ref={prevBtnRef}
97
- className="pgn__btn pgn__btn--prev"
97
+ className="zc-pgn__btn zc-pgn__btn--prev"
98
98
  loading={prevBusy}
99
99
  disabled={!hasPrev || loading}
100
100
  htmlProps={{ 'aria-label': 'Previous page' }}
@@ -109,7 +109,7 @@ export function Pagination({
109
109
  variant="ghost"
110
110
  size="sm"
111
111
  ref={nextBtnRef}
112
- className="pgn__btn pgn__btn--next"
112
+ className="zc-pgn__btn zc-pgn__btn--next"
113
113
  loading={nextBusy}
114
114
  disabled={!hasNext || loading}
115
115
  htmlProps={{ 'aria-label': 'Next page' }}
@@ -1,47 +1,42 @@
1
- @layer zyncat.tokens, zyncat.components;
1
+ @layer zyncat.reset, zyncat.tokens, zyncat.components;
2
2
 
3
3
  @layer zyncat.components {
4
- /* Pagination - cursor strip: layout, mono readout, square arrows + directional caret nudge (on Button vocabulary). */
5
-
6
- .pgn {
4
+ .zc-pgn {
7
5
  display: inline-flex;
8
6
  align-items: center;
9
7
  gap: var(--space-3);
10
8
  }
11
9
 
12
- /* mono tabular readout; .pgn__range is the node Motion slides - keep it transformable (inline-block) */
13
- .pgn__readout {
14
- font: var(--type-mono);
10
+ .zc-pgn__readout {
11
+ font: var(--type-code);
15
12
  font-variant-numeric: tabular-nums;
16
13
  color: var(--text-subtle);
17
14
  white-space: nowrap;
18
15
  }
19
- .pgn__range {
16
+ .zc-pgn__range {
20
17
  display: inline-block;
21
18
  }
22
- .pgn__range b {
19
+ .zc-pgn__range b {
23
20
  font-weight: var(--weight-medium);
24
21
  color: var(--text-body);
25
22
  }
26
23
 
27
- /* arrows kept adjacent (not flanking the readout) so repeated paging needs no mouse travel and a growing readout never shifts them */
28
- .pgn__nav {
24
+ .zc-pgn__nav {
29
25
  display: flex;
30
26
  gap: var(--space-1);
31
27
  }
32
- .pgn__btn {
28
+ .zc-pgn__btn {
33
29
  width: var(--control-height-sm);
34
30
  padding: 0;
35
31
  }
36
32
 
37
- /* Caret nudges toward its direction on hover - a 1px optical cue. */
38
- .pgn__btn .icon {
33
+ .zc-pgn__btn .zc-icon {
39
34
  transition: transform var(--duration-fast) var(--ease-standard);
40
35
  }
41
- .pgn__btn--prev:hover:not(:disabled) .icon {
36
+ .zc-pgn__btn--prev:hover:not(:disabled) .zc-icon {
42
37
  transform: translateX(calc(var(--space-px) * -1));
43
38
  }
44
- .pgn__btn--next:hover:not(:disabled) .icon {
39
+ .zc-pgn__btn--next:hover:not(:disabled) .zc-icon {
45
40
  transform: translateX(var(--space-px));
46
41
  }
47
42
  }
@@ -97,9 +97,9 @@ function PopoverPanel({
97
97
  {...htmlProps}
98
98
  id={panelId}
99
99
  ref={panelRef as RefObject<HTMLDivElement>}
100
- className={cx('overlay-popover', htmlProps?.className)}
100
+ className={cx('zc-overlay-popover', htmlProps?.className)}
101
101
  >
102
- {arrow && <span className="overlay-popover__arrow" aria-hidden="true"></span>}
102
+ {arrow && <span className="zc-overlay-popover__arrow" aria-hidden="true"></span>}
103
103
  {children}
104
104
  </div>
105
105
  );