@zyncat/ui 0.15.0 → 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 (290) hide show
  1. package/README.md +32 -202
  2. package/dist/alert.css +1 -1
  3. package/dist/alert.js +18 -10
  4. package/dist/alert.js.map +1 -1
  5. package/dist/avatar.css +3 -2
  6. package/dist/badge.css +1 -1
  7. package/dist/bloom-HV23M4AW.js +81 -0
  8. package/dist/bloom-HV23M4AW.js.map +1 -0
  9. package/dist/button.css +21 -24
  10. package/dist/button.js +3 -1
  11. package/dist/checkbox.css +1 -1
  12. package/dist/chunk-2YGHPQ66.js +16 -0
  13. package/dist/chunk-2YGHPQ66.js.map +1 -0
  14. package/dist/{chunk-K45CWVHS.js → chunk-3MLUH2QL.js} +4 -4
  15. package/dist/{chunk-K45CWVHS.js.map → chunk-3MLUH2QL.js.map} +1 -1
  16. package/dist/{chunk-FVPNICF4.js → chunk-4PQDVK23.js} +4 -4
  17. package/dist/{chunk-FVPNICF4.js.map → chunk-4PQDVK23.js.map} +1 -1
  18. package/dist/{chunk-FLQVOSFC.js → chunk-6IXLW7QA.js} +7 -7
  19. package/dist/{chunk-FLQVOSFC.js.map → chunk-6IXLW7QA.js.map} +1 -1
  20. package/dist/chunk-7NHY2CRA.js +132 -0
  21. package/dist/chunk-7NHY2CRA.js.map +1 -0
  22. package/dist/{chunk-BH4JFWXQ.js → chunk-7VTWJL72.js} +19 -16
  23. package/dist/chunk-7VTWJL72.js.map +1 -0
  24. package/dist/chunk-7ZSIUUC3.js +50 -0
  25. package/dist/chunk-7ZSIUUC3.js.map +1 -0
  26. package/dist/{chunk-6X3G4GIM.js → chunk-DH7DT6EO.js} +3 -3
  27. package/dist/{chunk-6X3G4GIM.js.map → chunk-DH7DT6EO.js.map} +1 -1
  28. package/dist/{chunk-QGVFFT2B.js → chunk-EOWWVFBF.js} +3 -3
  29. package/dist/{chunk-QGVFFT2B.js.map → chunk-EOWWVFBF.js.map} +1 -1
  30. package/dist/{chunk-RBSHRRNO.js → chunk-FLDIRXFU.js} +5 -5
  31. package/dist/{chunk-RBSHRRNO.js.map → chunk-FLDIRXFU.js.map} +1 -1
  32. package/dist/{chunk-5GBV45YD.js → chunk-GWCBTD63.js} +3 -3
  33. package/dist/{chunk-5GBV45YD.js.map → chunk-GWCBTD63.js.map} +1 -1
  34. package/dist/chunk-GZ6UMHCK.js +103 -0
  35. package/dist/chunk-GZ6UMHCK.js.map +1 -0
  36. package/dist/{chunk-FEXUS4SV.js → chunk-HWDIVGME.js} +11 -5
  37. package/dist/chunk-HWDIVGME.js.map +1 -0
  38. package/dist/chunk-KSAJ6DED.js +16 -0
  39. package/dist/chunk-KSAJ6DED.js.map +1 -0
  40. package/dist/{chunk-UYSXJ7MH.js → chunk-LH2UIEKN.js} +7 -17
  41. package/dist/chunk-LH2UIEKN.js.map +1 -0
  42. package/dist/{chunk-CAXQJSIE.js → chunk-M2A6PZ7J.js} +6 -6
  43. package/dist/{chunk-CAXQJSIE.js.map → chunk-M2A6PZ7J.js.map} +1 -1
  44. package/dist/chunk-NYQQH4R5.js +40 -0
  45. package/dist/chunk-NYQQH4R5.js.map +1 -0
  46. package/dist/{chunk-BTF6DAE3.js → chunk-ODRO3KS6.js} +4 -4
  47. package/dist/{chunk-BTF6DAE3.js.map → chunk-ODRO3KS6.js.map} +1 -1
  48. package/dist/{chunk-GJTHWB6O.js → chunk-QDAN43B6.js} +3 -3
  49. package/dist/{chunk-GJTHWB6O.js.map → chunk-QDAN43B6.js.map} +1 -1
  50. package/dist/{chunk-MDSRZ4QR.js → chunk-RY35IU3G.js} +3 -3
  51. package/dist/{chunk-MDSRZ4QR.js.map → chunk-RY35IU3G.js.map} +1 -1
  52. package/dist/{chunk-GOLSYGRA.js → chunk-TBLPZQSI.js} +84 -48
  53. package/dist/chunk-TBLPZQSI.js.map +1 -0
  54. package/dist/{chunk-5X3MJRIM.js → chunk-UKPX3RIP.js} +3 -3
  55. package/dist/{chunk-5X3MJRIM.js.map → chunk-UKPX3RIP.js.map} +1 -1
  56. package/dist/{chunk-CFRGQJ23.js → chunk-VZXML7EH.js} +4 -4
  57. package/dist/{chunk-CFRGQJ23.js.map → chunk-VZXML7EH.js.map} +1 -1
  58. package/dist/{chunk-PWQVSVXR.js → chunk-WC45VSST.js} +8 -8
  59. package/dist/{chunk-PWQVSVXR.js.map → chunk-WC45VSST.js.map} +1 -1
  60. package/dist/chunk-WQKWPI6V.js +196 -0
  61. package/dist/chunk-WQKWPI6V.js.map +1 -0
  62. package/dist/{chunk-N2GJEO5Z.js → chunk-ZHMOH62S.js} +4 -4
  63. package/dist/chunk-ZHMOH62S.js.map +1 -0
  64. package/dist/cli.js +259 -43
  65. package/dist/collapse.css +8 -5
  66. package/dist/confetti.css +3 -3
  67. package/dist/confetti.js +2 -2
  68. package/dist/date-field.js +16 -14
  69. package/dist/date-field.js.map +1 -1
  70. package/dist/date-picker.css +168 -43
  71. package/dist/date-range-field.js +38 -23
  72. package/dist/date-range-field.js.map +1 -1
  73. package/dist/datetime-field.js +17 -15
  74. package/dist/datetime-field.js.map +1 -1
  75. package/dist/dialog.css +4 -3
  76. package/dist/dialog.js +8 -8
  77. package/dist/digit-strip.css +1 -1
  78. package/dist/dropdown.css +1 -1
  79. package/dist/dropdown.js +8 -8
  80. package/dist/emoji-picker.js +14 -14
  81. package/dist/facebook-feed.css +1 -1
  82. package/dist/flow-field.css +4 -4
  83. package/dist/flow-field.js +3 -3
  84. package/dist/flow-field.js.map +1 -1
  85. package/dist/glide.js +3 -3
  86. package/dist/icon.css +1 -1
  87. package/dist/input.css +7 -4
  88. package/dist/instagram-feed.css +1 -1
  89. package/dist/instagram-feed.js +2 -2
  90. package/dist/lens.css +1 -2
  91. package/dist/lens.js +2 -2
  92. package/dist/mcp.js +1 -1
  93. package/dist/menu-surface.css +1 -1
  94. package/dist/modal.css +1 -1
  95. package/dist/modal.js +6 -6
  96. package/dist/morphing-text.css +2 -2
  97. package/dist/morphing-text.js +2 -2
  98. package/dist/motion-devtools.css +77 -2
  99. package/dist/motion-devtools.js +194 -37
  100. package/dist/motion-devtools.js.map +1 -1
  101. package/dist/motion-tokens.js +1 -1
  102. package/dist/multi-select.js +9 -9
  103. package/dist/number-field.js +3 -3
  104. package/dist/odometer.css +1 -1
  105. package/dist/odometer.js +2 -2
  106. package/dist/overlay.css +1 -1
  107. package/dist/pagination.css +1 -1
  108. package/dist/pagination.js +6 -4
  109. package/dist/pagination.js.map +1 -1
  110. package/dist/paint-CJQCM6ZO.js +260 -0
  111. package/dist/paint-CJQCM6ZO.js.map +1 -0
  112. package/dist/popover.css +1 -1
  113. package/dist/popover.js +6 -6
  114. package/dist/radio-group.css +6 -4
  115. package/dist/radio-group.js +6 -6
  116. package/dist/select.css +1 -1
  117. package/dist/select.js +9 -9
  118. package/dist/sheet.css +1 -1
  119. package/dist/sheet.js +7 -7
  120. package/dist/spinner.css +115 -0
  121. package/dist/spinner.js +4 -0
  122. package/dist/spinner.js.map +1 -0
  123. package/dist/status-badge.js +2 -2
  124. package/dist/styles.css +1 -1
  125. package/dist/support-rail.css +76 -238
  126. package/dist/support-rail.js +97 -105
  127. package/dist/support-rail.js.map +1 -1
  128. package/dist/table.css +2 -2
  129. package/dist/table.js +8 -6
  130. package/dist/table.js.map +1 -1
  131. package/dist/tabs.css +10 -14
  132. package/dist/tabs.js +6 -6
  133. package/dist/tag.css +1 -1
  134. package/dist/tag.js +6 -6
  135. package/dist/text-field.js +3 -3
  136. package/dist/textarea.css +1 -1
  137. package/dist/textarea.js +2 -2
  138. package/dist/theme-grid.js +11 -0
  139. package/dist/theme-grid.js.map +1 -0
  140. package/dist/theme-switcher.css +107 -0
  141. package/dist/theme-switcher.js +70 -0
  142. package/dist/theme-switcher.js.map +1 -0
  143. package/dist/theme-transition-LLC644ZR.js +346 -0
  144. package/dist/theme-transition-LLC644ZR.js.map +1 -0
  145. package/dist/theme-transition.css +48 -0
  146. package/dist/theme.js +57 -26
  147. package/dist/theme.js.map +1 -1
  148. package/dist/tide-DJZMDAFT.js +57 -0
  149. package/dist/tide-DJZMDAFT.js.map +1 -0
  150. package/dist/tiktok.css +2 -3
  151. package/dist/tiktok.js +2 -2
  152. package/dist/time-field.js +4 -4
  153. package/dist/toast.css +2 -14
  154. package/dist/toast.js +11 -9
  155. package/dist/toast.js.map +1 -1
  156. package/dist/toggle-tag.js +2 -2
  157. package/dist/toggle.css +1 -1
  158. package/dist/tooltip.css +1 -1
  159. package/dist/tooltip.js +5 -5
  160. package/dist/trigger.css +1 -1
  161. package/dist/types/components/composites/date-picker/month-jump.d.ts +11 -0
  162. package/dist/types/components/composites/theme-switcher/ThemeGrid.d.ts +20 -0
  163. package/dist/types/components/composites/theme-switcher/ThemeSwitcher.d.ts +24 -0
  164. package/dist/types/components/compound/support-rail/SupportRail.d.ts +10 -8
  165. package/dist/types/components/dev/MotionDevtools.d.ts +10 -5
  166. package/dist/types/components/expressive/theme-transition/bloom.d.ts +2 -0
  167. package/dist/types/components/expressive/theme-transition/paint.d.ts +2 -0
  168. package/dist/types/components/expressive/theme-transition/scene.d.ts +24 -0
  169. package/dist/types/components/expressive/theme-transition/theme-transition.d.ts +19 -0
  170. package/dist/types/components/expressive/theme-transition/tide.d.ts +2 -0
  171. package/dist/types/components/internal/icon/Icon.d.ts +1 -0
  172. package/dist/types/components/primitives/button/Button.d.ts +9 -12
  173. package/dist/types/components/primitives/button/button-style.d.ts +15 -0
  174. package/dist/types/components/primitives/spinner/Spinner.d.ts +27 -0
  175. package/dist/types/engine/animate.d.ts +1 -0
  176. package/dist/types/tokens/component-styles.generated.d.ts +35 -38
  177. package/dist/types/tokens/motion-tokens.d.ts +2 -2
  178. package/dist/types/tokens/theme-store.d.ts +47 -0
  179. package/dist/types/tokens/theme-sync.d.ts +7 -1
  180. package/dist/types/tokens/theme-tokens.generated.d.ts +121 -109
  181. package/dist/types/tokens/theme.d.ts +28 -5
  182. package/dist/typing-lines.css +1 -1
  183. package/dist/typing-lines.js +2 -2
  184. package/dist/weight-field.css +2 -2
  185. package/dist/youtube.css +1 -1
  186. package/dist/youtube.js +2 -2
  187. package/package.json +25 -31
  188. package/skills/zyncat-ui/references/components.md +5 -2
  189. package/src/components/composites/alert/Alert.tsx +7 -3
  190. package/src/components/composites/alert/alert.css +1 -1
  191. package/src/components/composites/date-picker/calendar-panel.tsx +10 -4
  192. package/src/components/composites/date-picker/date-picker.css +168 -43
  193. package/src/components/composites/date-picker/month-jump.tsx +192 -0
  194. package/src/components/composites/date-picker/range-panel.tsx +20 -5
  195. package/src/components/composites/dialog/dialog.css +4 -3
  196. package/src/components/composites/dropdown/dropdown.css +1 -1
  197. package/src/components/composites/emoji-picker/styles.css +1 -1
  198. package/src/components/composites/modal/modal.css +1 -1
  199. package/src/components/composites/pagination/pagination.css +1 -1
  200. package/src/components/composites/popover/popover.css +1 -1
  201. package/src/components/composites/select/select.css +1 -1
  202. package/src/components/composites/sheet/sheet.css +1 -1
  203. package/src/components/composites/table/table.css +2 -2
  204. package/src/components/composites/tabs/tabs.css +10 -14
  205. package/src/components/composites/theme-switcher/ThemeGrid.tsx +133 -0
  206. package/src/components/composites/theme-switcher/ThemeGrid.usage.md +20 -0
  207. package/src/components/composites/theme-switcher/ThemeSwitcher.tsx +75 -0
  208. package/src/components/composites/theme-switcher/ThemeSwitcher.usage.md +21 -0
  209. package/src/components/composites/theme-switcher/theme-switcher.css +107 -0
  210. package/src/components/composites/toast/Toast.tsx +2 -1
  211. package/src/components/composites/toast/toast.css +2 -14
  212. package/src/components/composites/tooltip/tooltip.css +1 -1
  213. package/src/components/compound/support-rail/SupportRail.tsx +116 -128
  214. package/src/components/compound/support-rail/SupportRail.usage.md +7 -6
  215. package/src/components/compound/support-rail/support-rail.css +76 -238
  216. package/src/components/dev/MotionDevtools.tsx +252 -42
  217. package/src/components/dev/MotionDevtools.usage.md +12 -4
  218. package/src/components/dev/motion-devtools.css +77 -2
  219. package/src/components/dev/slowmo-engine.ts +1 -1
  220. package/src/components/expressive/confetti/confetti.css +3 -3
  221. package/src/components/expressive/facebook-feed/facebook-feed.css +1 -1
  222. package/src/components/expressive/flow-field/FlowField.tsx +1 -1
  223. package/src/components/expressive/flow-field/flow-field.css +4 -4
  224. package/src/components/expressive/instagram-feed/instagram-feed.css +1 -1
  225. package/src/components/expressive/lens/lens.css +1 -2
  226. package/src/components/expressive/morphing-text/morphing-text.css +2 -2
  227. package/src/components/expressive/odometer/odometer.css +1 -1
  228. package/src/components/expressive/theme-transition/bloom.ts +88 -0
  229. package/src/components/expressive/theme-transition/paint.ts +296 -0
  230. package/src/components/expressive/theme-transition/scene.ts +38 -0
  231. package/src/components/expressive/theme-transition/theme-transition.css +48 -0
  232. package/src/components/expressive/theme-transition/theme-transition.ts +423 -0
  233. package/src/components/expressive/theme-transition/tide.ts +65 -0
  234. package/src/components/expressive/tiktok/tiktok.css +2 -3
  235. package/src/components/expressive/typing-lines/typing-lines.css +1 -1
  236. package/src/components/expressive/weight-field/weight-field.css +2 -2
  237. package/src/components/expressive/youtube/youtube.css +1 -1
  238. package/src/components/internal/glass/glass.css +1 -1
  239. package/src/components/internal/icon/Icon.tsx +2 -0
  240. package/src/components/internal/icon/icon.css +1 -1
  241. package/src/components/internal/menu/menu-surface.css +1 -1
  242. package/src/components/internal/overlay/overlay.css +1 -1
  243. package/src/components/internal/overlay/trigger.css +1 -1
  244. package/src/components/primitives/avatar/avatar.css +3 -2
  245. package/src/components/primitives/badge/badge.css +1 -1
  246. package/src/components/primitives/badge/digit-strip.css +1 -1
  247. package/src/components/primitives/button/Button.tsx +12 -26
  248. package/src/components/primitives/button/button-style.ts +28 -0
  249. package/src/components/primitives/button/button.css +21 -24
  250. package/src/components/primitives/checkbox/checkbox.css +1 -1
  251. package/src/components/primitives/collapse/collapse.css +8 -5
  252. package/src/components/primitives/input/input.css +7 -4
  253. package/src/components/primitives/radio-group/radio-group.css +6 -4
  254. package/src/components/primitives/spinner/Spinner.tsx +70 -0
  255. package/src/components/primitives/spinner/Spinner.usage.md +19 -0
  256. package/src/components/primitives/spinner/spinner.css +115 -0
  257. package/src/components/primitives/tag/tag.css +1 -1
  258. package/src/components/primitives/textarea/textarea.css +1 -1
  259. package/src/components/primitives/toggle/toggle.css +1 -1
  260. package/src/engine/animate.ts +10 -2
  261. package/src/mcp/server.ts +2 -1
  262. package/src/styles.css +3 -3
  263. package/src/tokens/base.css +5 -5
  264. package/src/tokens/color.css +8 -9
  265. package/src/tokens/component-styles.generated.ts +36 -38
  266. package/src/tokens/dark.css +8 -13
  267. package/src/tokens/decisions.css +5 -8
  268. package/src/tokens/elevation.css +18 -26
  269. package/src/tokens/glass.css +3 -2
  270. package/src/tokens/motion-defaults.generated.ts +1 -1
  271. package/src/tokens/motion-tokens.ts +3 -3
  272. package/src/tokens/motion.css +9 -9
  273. package/src/tokens/radius.css +3 -2
  274. package/src/tokens/reset.css +36 -0
  275. package/src/tokens/semantic.css +10 -18
  276. package/src/tokens/spacing.css +1 -1
  277. package/src/tokens/theme-store.ts +187 -0
  278. package/src/tokens/theme-sync.tsx +49 -2
  279. package/src/tokens/theme-tokens.generated.ts +124 -110
  280. package/src/tokens/theme.tsx +96 -24
  281. package/src/tokens/theme.usage.md +25 -24
  282. package/src/tokens/typography.css +4 -3
  283. package/tailwind.css +7 -13
  284. package/dist/chunk-6SUHSSOK.js +0 -25
  285. package/dist/chunk-6SUHSSOK.js.map +0 -1
  286. package/dist/chunk-BH4JFWXQ.js.map +0 -1
  287. package/dist/chunk-FEXUS4SV.js.map +0 -1
  288. package/dist/chunk-GOLSYGRA.js.map +0 -1
  289. package/dist/chunk-N2GJEO5Z.js.map +0 -1
  290. package/dist/chunk-UYSXJ7MH.js.map +0 -1
package/dist/youtube.js CHANGED
@@ -1,7 +1,7 @@
1
- 'use client';import { startDrag } from './chunk-FEXUS4SV.js';
1
+ 'use client';import { startDrag } from './chunk-HWDIVGME.js';
2
2
  import './chunk-VNVVG47J.js';
3
3
  import { useControllable } from './chunk-MMRIQNEN.js';
4
- import './chunk-N2GJEO5Z.js';
4
+ import './chunk-ZHMOH62S.js';
5
5
  import { cx } from './chunk-QGNC7LH5.js';
6
6
  import './youtube.css';
7
7
  import { useRef, useEffect } from 'react';
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@zyncat/ui",
3
- "version": "0.15.0",
4
- "packageManager": "pnpm@11.13.0",
3
+ "version": "0.17.0",
5
4
  "description": "A React 19 design system: accessible, animated UI components built on a small, closed CSS design-token vocabulary. No Tailwind, no CSS-in-JS.",
6
5
  "keywords": [
7
6
  "react",
@@ -298,6 +297,21 @@
298
297
  "types": "./dist/types/tokens/theme.d.ts",
299
298
  "import": "./dist/theme.js"
300
299
  },
300
+ "./theme-switcher": {
301
+ "source": "./src/components/composites/theme-switcher/ThemeSwitcher.tsx",
302
+ "types": "./dist/types/components/composites/theme-switcher/ThemeSwitcher.d.ts",
303
+ "import": "./dist/theme-switcher.js"
304
+ },
305
+ "./theme-grid": {
306
+ "source": "./src/components/composites/theme-switcher/ThemeGrid.tsx",
307
+ "types": "./dist/types/components/composites/theme-switcher/ThemeGrid.d.ts",
308
+ "import": "./dist/theme-grid.js"
309
+ },
310
+ "./spinner": {
311
+ "source": "./src/components/primitives/spinner/Spinner.tsx",
312
+ "types": "./dist/types/components/primitives/spinner/Spinner.d.ts",
313
+ "import": "./dist/spinner.js"
314
+ },
301
315
  "./styles.css": "./src/styles.css",
302
316
  "./tailwind.css": "./tailwind.css",
303
317
  "./next": {
@@ -314,34 +328,6 @@
314
328
  "next.mjs",
315
329
  "next.d.mts"
316
330
  ],
317
- "scripts": {
318
- "build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly && pnpm --filter zyncat-ui build",
319
- "build:docs": "turbo run build --filter=zyncat-ui-docs",
320
- "dev": "turbo run dev --filter=zyncat-ui-docs",
321
- "dev:lib": "tsup --watch",
322
- "typecheck": "tsc -p tsconfig.build.json --noEmit --declaration false && tsc -p tsconfig.node.json && pnpm --filter zyncat-ui typecheck",
323
- "check:css": "node scripts/check-css-graph.mjs",
324
- "check:contracts": "node scripts/check-contracts.mjs",
325
- "check:usage": "node scripts/check-usage.mjs",
326
- "check:skill": "node scripts/gen-skill.mjs --check",
327
- "check:authoring": "node scripts/check-authoring.mjs",
328
- "check:exports": "node scripts/sync-exports.mjs",
329
- "check:props": "node scripts/gen-props.mjs --check",
330
- "check:tsconfig": "node scripts/sync-tsconfig.mjs --check",
331
- "check:theme": "node scripts/gen-theme.mjs --check",
332
- "check:shim": "node scripts/gen-shim.mjs --check",
333
- "docs:props": "node scripts/gen-props.mjs",
334
- "sync:exports": "node scripts/sync-exports.mjs --write",
335
- "sync:tsconfig": "node scripts/sync-tsconfig.mjs",
336
- "sync:skill": "node scripts/gen-skill.mjs",
337
- "sync:theme": "node scripts/gen-theme.mjs",
338
- "sync:shim": "node scripts/gen-shim.mjs",
339
- "sync": "node scripts/sync.mjs",
340
- "verify": "node scripts/verify.mjs",
341
- "format": "prettier --write --cache .",
342
- "format:check": "prettier --check --cache .",
343
- "prepublishOnly": "pnpm build"
344
- },
345
331
  "commitlint": {
346
332
  "extends": [
347
333
  "@commitlint/config-conventional"
@@ -367,5 +353,13 @@
367
353
  "tsup": "^8.5.0",
368
354
  "turbo": "^2.5.8",
369
355
  "typescript": "~6.0.3"
356
+ },
357
+ "scripts": {
358
+ "build": "node scripts/build.mjs",
359
+ "check": "node scripts/check.mjs",
360
+ "sync": "node scripts/sync.mjs",
361
+ "verify": "node scripts/verify.mjs",
362
+ "dev": "turbo run dev --filter=zyncat-ui-docs",
363
+ "format": "prettier --write --cache ."
370
364
  }
371
- }
365
+ }
@@ -1,6 +1,6 @@
1
1
  # @zyncat/ui component index
2
2
 
3
- Generated from @zyncat/ui v0.15.0 by `pnpm sync:skill` - do not edit by hand.
3
+ Generated from @zyncat/ui v0.17.0 by `pnpm sync skill` - do not edit by hand.
4
4
  If node_modules/@zyncat/ui/package.json shows a DIFFERENT version, this index is stale:
5
5
  trust the get_component MCP tool and re-run `npx zyncat-ui init` to refresh the skill.
6
6
 
@@ -14,6 +14,7 @@ Badge - @zyncat/ui/badge - Glass or outline chip for ambient status - toned, dot
14
14
  StatusBadge - @zyncat/ui/status-badge - Canonical post status - tone + one-word label.
15
15
  CountBadge - @zyncat/ui/count-badge - Mono tabular count; `roll` animates digits like an odometer.
16
16
  Glide / GlidePill - @zyncat/ui/glide - A persistent background pill that glides smoothly between hovered/active elements.
17
+ Spinner - @zyncat/ui/spinner - Indeterminate loader; three looks, no JavaScript, no layout of its own.
17
18
 
18
19
  == Forms ==
19
20
  Every form field takes label, helper/error/warning/success, size sm|md|lg, disabled.
@@ -54,6 +55,8 @@ Alert - @zyncat/ui/alert - Persistent, in-flow status.
54
55
  Toast - @zyncat/ui/toast - Imperative transient notifications: mount <Toaster /> once at the app root, then call toast() from anywhere.
55
56
  toast-store - @zyncat/ui/toast-store - The headless store behind Toast: subscribe to the toast queue and drive it without rendering <Toaster />.
56
57
  EmojiPickerPanel - @zyncat/ui/emoji-picker - Searchable emoji panel - grid, scrollspy category rail, recents in localStorage - living in a Popover, becoming a bottom Sheet on narrow viewports.
58
+ ThemeSwitcher - @zyncat/ui/theme-switcher - The theme control: a chip painted in the live palette opens a grid of miniatures, one card per palette and side plus a split System card, each drawn from that theme's real tokens.
59
+ ThemeGrid - @zyncat/ui/theme-grid - The theme picker without a surface: a radio grid of miniatures, one card per palette and side plus a split System card, each drawn from that theme's real tokens.
57
60
 
58
61
  == Expressive ==
59
62
  Creative motion components. Each publishes scoped --<component>-* custom properties as its theming surface.
@@ -79,7 +82,7 @@ YouTube - @zyncat/ui/youtube - Replica of three YouTube surfaces, picked with su
79
82
  == Dev tools ==
80
83
  motion-tokens - @zyncat/ui/motion-tokens - TypeScript readers for the motion token vocabulary - duration/ease/distance/scale token names resolved to the live CSS values.
81
84
  MotionDevtools - @zyncat/ui/motion-devtools - Dev-only floating panel that slows or freezes EVERY animation at once (CSS and WAAPI) for motion debugging.
82
- Theme - @zyncat/ui/theme - Typed theming - defineTheme is the shape of a theme, not a list of every token; ZyncatTheme renders the set as unlayered CSS with no build step.
85
+ Theme - @zyncat/ui/theme - Typed theming and the theme state: defineTheme shapes a theme, ZyncatTheme emits the CSS and the pre-paint boot script, useTheme reads and sets the choice.
83
86
 
84
87
  == Types-only modules (documented by their .d.ts alone) ==
85
88
  @zyncat/ui/next - get_component("next")
@@ -15,7 +15,7 @@ import { useControllable } from '../../internal/hooks/use-controllable';
15
15
  import { Icon, type IconName } from '../../internal/icon/Icon';
16
16
  import { IconSlot } from '../../internal/icon/IconSlot';
17
17
  import { cx } from '../../internal/utils/cx';
18
- import { Button } from '../../primitives/button/Button';
18
+ import { buttonClass } from '../../primitives/button/button-style';
19
19
 
20
20
  export type AlertTone = 'info' | 'success' | 'warning' | 'danger';
21
21
 
@@ -125,9 +125,13 @@ export function Alert({
125
125
  {children != null && <p className="zc-alert__desc">{children}</p>}
126
126
  </div>
127
127
  {action && (
128
- <Button variant="unstyled" size="sm" className="zc-alert__action" onClick={action.onClick}>
128
+ <button
129
+ type="button"
130
+ className={buttonClass({ size: 'sm', className: 'zc-alert__action' })}
131
+ onClick={action.onClick}
132
+ >
129
133
  {action.label}
130
- </Button>
134
+ </button>
131
135
  )}
132
136
  {dismissible && (
133
137
  <button type="button" className="zc-alert__close" aria-label="Dismiss" onClick={dismiss}>
@@ -1,4 +1,4 @@
1
- @layer zyncat.tokens, zyncat.components;
1
+ @layer zyncat.reset, zyncat.tokens, zyncat.components;
2
2
 
3
3
  @layer zyncat.components {
4
4
  .zc-alert-shell {
@@ -14,6 +14,7 @@ import { activationProps, type ActivateOn } from '../../internal/utils/activatio
14
14
  import { cx } from '../../internal/utils/cx';
15
15
  import { Button } from '../../primitives/button/Button';
16
16
  import { col, DOW, grid, MONTHS, parse, today, toKey, tzLabel, within } from './date-utils';
17
+ import { MonthJump } from './month-jump';
17
18
  import { useDayFocus } from './use-day-focus';
18
19
 
19
20
  const PILL_FLIP = { timing: UIMotion.t.settle };
@@ -56,6 +57,11 @@ export function DtpPanel({ val, commit, min, max, timezone, label, close, slot,
56
57
  function goToMonth(y: number, m: number) {
57
58
  setView((v) => (v.y === y && v.m === m ? v : { y: y, m: m }));
58
59
  }
60
+ const jumpedRef = useRef(false);
61
+ function jumpToMonth(y: number, m: number) {
62
+ jumpedRef.current = true;
63
+ goToMonth(y, m);
64
+ }
59
65
  function nav(dir: number) {
60
66
  const d = new Date(view.y, view.m + dir, 1);
61
67
  goToMonth(d.getFullYear(), d.getMonth());
@@ -75,7 +81,9 @@ export function DtpPanel({ val, commit, min, max, timezone, label, close, slot,
75
81
  const prev = prevViewRef.current;
76
82
  prevViewRef.current = viewIdx;
77
83
  const el = daysRef.current;
78
- if (prev == null || prev === viewIdx || !el) return;
84
+ const jumped = jumpedRef.current;
85
+ jumpedRef.current = false;
86
+ if (prev == null || prev === viewIdx || !el || jumped) return;
79
87
  const dir = viewIdx > prev ? 1 : -1;
80
88
  animate(el, slideIn(dir * UIMotion.dist.md, UIMotion.t.enter));
81
89
  }, [viewIdx]);
@@ -129,9 +137,7 @@ export function DtpPanel({ val, commit, min, max, timezone, label, close, slot,
129
137
  <div className="zc-dtp" role="dialog" aria-label={label || 'Pick a date'}>
130
138
  <div className="zc-dtp__cal">
131
139
  <div className="zc-dtp__head">
132
- <span className="zc-dtp__month" aria-live="polite">
133
- {MONTHS[view.m]} <span className="zc-dtp__year">{view.y}</span>
134
- </span>
140
+ <MonthJump y={view.y} m={view.m} min={min} max={max} activateOn={activateOn} onPick={jumpToMonth} />
135
141
  <div className="zc-dtp__navs">
136
142
  <button
137
143
  type="button"
@@ -1,4 +1,4 @@
1
- @layer zyncat.tokens, zyncat.components;
1
+ @layer zyncat.reset, zyncat.tokens, zyncat.components;
2
2
 
3
3
  @layer zyncat.components {
4
4
  .zc-dtf__trigger {
@@ -30,8 +30,15 @@
30
30
  outline: var(--ring-accent);
31
31
  }
32
32
 
33
+ .zc-dtp,
34
+ .zc-drp,
35
+ .zc-dtp__jumpPanel {
36
+ --dtp-range: color-mix(in oklab, var(--accent-subtle) 70%, var(--bg-surface-raised));
37
+ }
38
+
33
39
  .zc-dtp {
34
40
  --dtp-cell: var(--control-height);
41
+ --dtp-gap: var(--space-1);
35
42
  background: var(--bg-surface-raised);
36
43
  border: var(--border-hairline) solid var(--border-default);
37
44
  border-radius: var(--radius-lg);
@@ -40,7 +47,7 @@
40
47
  }
41
48
 
42
49
  .zc-dtp__cal {
43
- padding: var(--space-3) var(--space-3) var(--space-2);
50
+ padding: var(--space-3) var(--space-4) var(--space-3);
44
51
  }
45
52
 
46
53
  .zc-dtp__head {
@@ -48,32 +55,131 @@
48
55
  align-items: center;
49
56
  justify-content: space-between;
50
57
  gap: var(--space-2);
51
- margin-inline: calc(-1 * var(--space-3));
52
- padding-inline: var(--space-3);
58
+ margin-inline: calc(-1 * var(--space-4));
59
+ padding-inline: var(--space-4);
53
60
  padding-bottom: var(--space-2);
54
61
  border-bottom: var(--border-hairline) solid var(--border-subtle);
55
62
  margin-bottom: var(--space-3);
56
63
  }
57
- .zc-dtp__month {
58
- padding-inline-start: var(--space-2);
64
+ .zc-dtp__jump {
59
65
  display: inline-flex;
60
66
  align-items: center;
61
- gap: var(--space-2);
67
+ gap: var(--space-1);
68
+ appearance: none;
69
+ border: 0;
70
+ background: transparent;
71
+ padding: var(--space-1) var(--space-2);
72
+ border-radius: var(--radius-sm);
73
+ color: var(--text-muted);
74
+ cursor: pointer;
75
+ transition: var(--transition-colors);
76
+ }
77
+ .zc-dtp__jump:hover,
78
+ .zc-dtp__jump[aria-expanded='true'] {
79
+ background: var(--neutral-wash);
80
+ }
81
+ .zc-dtp__jump:focus-visible {
82
+ outline: var(--focus-ring);
83
+ }
84
+ .zc-dtp__jumpCaret {
85
+ transition: transform var(--duration-fast) var(--ease-standard);
86
+ }
87
+ .zc-dtp__jump[aria-expanded='true'] .zc-dtp__jumpCaret {
88
+ transform: rotate(180deg);
89
+ }
90
+ .zc-dtp__month {
62
91
  font: var(--type-caption);
63
92
  font-weight: var(--weight-semibold);
64
93
  color: var(--text-strong);
65
94
  }
66
95
  .zc-dtp__year {
67
- font-family: var(--font-code);
68
- font-size: var(--size-micro);
69
- line-height: 1;
70
96
  font-weight: var(--weight-regular);
71
97
  font-variant-numeric: tabular-nums;
72
- color: var(--text-subtle);
73
- background: var(--bg-muted);
74
- padding: var(--space-1);
75
- border-radius: var(--radius-sm);
98
+ color: var(--text-muted);
99
+ }
100
+
101
+ .zc-dtp__jumpPanel {
102
+ display: flex;
103
+ flex-direction: column;
104
+ gap: var(--space-2);
105
+ padding: var(--space-2);
106
+ block-size: 100%;
107
+ background: var(--bg-surface-raised);
108
+ border: var(--border-hairline) solid var(--border-default);
109
+ border-radius: var(--radius-lg);
110
+ box-shadow: var(--shadow-lg);
111
+ }
112
+ .zc-dtp__jumpYears {
113
+ display: flex;
114
+ align-items: center;
115
+ gap: var(--space-1);
116
+ }
117
+ .zc-dtp__jumpStrip {
118
+ position: relative;
119
+ isolation: isolate;
120
+ flex: 1 1 auto;
121
+ display: grid;
122
+ grid-auto-flow: column;
123
+ grid-auto-columns: minmax(0, 1fr);
124
+ gap: var(--space-1);
125
+ }
126
+ .zc-dtp__jumpMonths {
127
+ position: relative;
128
+ isolation: isolate;
129
+ display: grid;
130
+ grid-template-columns: repeat(3, 1fr);
131
+ gap: var(--space-1);
132
+ }
133
+ .zc-dtp__jumpOpt {
134
+ position: relative;
135
+ appearance: none;
136
+ border: 0;
137
+ background: transparent;
138
+ color: var(--text-body);
139
+ font: var(--type-caption);
140
+ min-height: var(--control-height);
141
+ padding-inline: var(--space-2);
142
+ border-radius: var(--radius-md);
143
+ cursor: pointer;
144
+ transition: var(--transition-colors);
145
+ }
146
+ .zc-dtp__jumpYear {
147
+ font-family: var(--font-code);
148
+ font-variant-numeric: tabular-nums;
149
+ }
150
+ .zc-dtp__jumpOpt:hover:not(:disabled):not(.zc-is-active) {
151
+ color: var(--text-strong);
152
+ }
153
+ .zc-dtp__jumpOpt:focus-visible {
154
+ outline: var(--focus-ring);
155
+ }
156
+ .zc-dtp__jumpOpt:disabled {
157
+ color: var(--text-disabled);
158
+ cursor: default;
159
+ }
160
+ .zc-dtp__jumpOpt.zc-is-active {
161
+ color: var(--text-accent);
162
+ font-weight: var(--weight-semibold);
163
+ }
164
+ .zc-dtp__jumpOpt.zc-is-active::before {
165
+ content: '';
166
+ position: absolute;
167
+ inset: 0;
168
+ z-index: -1;
169
+ border-radius: inherit;
170
+ background: var(--dtp-range);
76
171
  }
172
+ .zc-dtp__jumpGlide {
173
+ opacity: 0;
174
+ position: absolute;
175
+ top: 0;
176
+ left: 0;
177
+ z-index: -1;
178
+ border-radius: var(--radius-md);
179
+ background: var(--neutral-wash);
180
+ will-change: transform, opacity;
181
+ }
182
+
77
183
  .zc-dtp__navs {
78
184
  display: flex;
79
185
  gap: var(--space-1);
@@ -108,7 +214,7 @@
108
214
  .zc-dtp__dow {
109
215
  display: grid;
110
216
  grid-template-columns: repeat(7, var(--dtp-cell));
111
- gap: var(--space-1);
217
+ gap: var(--dtp-gap);
112
218
  padding-bottom: var(--space-3);
113
219
  }
114
220
  .zc-dtp__dow span {
@@ -121,9 +227,12 @@
121
227
  position: relative;
122
228
  display: grid;
123
229
  grid-template-columns: repeat(7, var(--dtp-cell));
124
- gap: var(--space-1);
230
+ gap: var(--dtp-gap);
125
231
  isolation: isolate;
126
232
  }
233
+ .zc-drp .zc-dtp__days {
234
+ isolation: auto;
235
+ }
127
236
  .zc-dtp__row {
128
237
  display: contents;
129
238
  }
@@ -164,7 +273,7 @@
164
273
  position: absolute;
165
274
  top: 0;
166
275
  left: 0;
167
- z-index: -1;
276
+ z-index: 0;
168
277
  border-radius: var(--radius-md);
169
278
  background: var(--neutral-wash);
170
279
  will-change: transform, opacity;
@@ -256,7 +365,6 @@
256
365
  align-items: center;
257
366
  gap: var(--space-3);
258
367
  padding: var(--space-2) var(--space-3);
259
- background: var(--bg-subtle);
260
368
  border-top: var(--border-hairline) solid var(--border-subtle);
261
369
  }
262
370
  .zc-dtp__tz {
@@ -274,6 +382,7 @@
274
382
 
275
383
  .zc-drp {
276
384
  --dtp-cell: var(--control-height);
385
+ --dtp-gap: var(--space-1);
277
386
  background: var(--bg-surface-raised);
278
387
  border: var(--border-hairline) solid var(--border-default);
279
388
  border-radius: var(--radius-lg);
@@ -286,14 +395,14 @@
286
395
  }
287
396
 
288
397
  .zc-drp__presets {
398
+ position: relative;
289
399
  flex: none;
290
400
  width: max-content;
291
401
  display: flex;
292
402
  flex-direction: column;
293
- gap: var(--space-px);
403
+ gap: var(--space-1);
294
404
  padding: var(--space-3) var(--space-2);
295
405
  border-right: var(--border-hairline) solid var(--border-subtle);
296
- background: var(--bg-subtle);
297
406
  isolation: isolate;
298
407
  }
299
408
  .zc-drp__preset {
@@ -304,7 +413,10 @@
304
413
  background: transparent;
305
414
  color: var(--text-body);
306
415
  font: var(--type-caption);
307
- padding: var(--space-2);
416
+ display: flex;
417
+ align-items: center;
418
+ min-height: var(--control-height-sm);
419
+ padding: var(--space-1) var(--space-2);
308
420
  border-radius: var(--radius-md);
309
421
  cursor: pointer;
310
422
  transition: var(--transition-colors);
@@ -317,11 +429,12 @@
317
429
  outline: var(--ring-accent);
318
430
  }
319
431
  .zc-drp__preset.zc-is-active {
320
- background: var(--accent-subtle);
432
+ background: var(--dtp-range);
321
433
  color: var(--text-accent);
322
434
  font-weight: var(--weight-medium);
323
435
  }
324
436
  .zc-drp__presetGlide {
437
+ opacity: 0;
325
438
  position: absolute;
326
439
  top: 0;
327
440
  left: 0;
@@ -337,7 +450,7 @@
337
450
  display: flex;
338
451
  }
339
452
  .zc-drp__months .zc-dtp__cal {
340
- padding: var(--space-3);
453
+ padding: var(--space-3) var(--space-4);
341
454
  }
342
455
  .zc-drp__months .zc-dtp__cal + .zc-dtp__cal {
343
456
  border-left: var(--border-hairline) solid var(--border-subtle);
@@ -375,37 +488,41 @@
375
488
  }
376
489
 
377
490
  .zc-drp__mhead {
378
- display: flex;
491
+ display: grid;
492
+ grid-template-columns: 1fr auto 1fr;
379
493
  align-items: center;
380
494
  gap: var(--space-2);
381
495
  padding-bottom: var(--space-3);
382
496
  margin-bottom: var(--space-3);
383
497
  border-bottom: var(--border-hairline) solid var(--border-subtle);
384
- margin-inline: calc(-1 * var(--space-3));
385
- padding-inline: var(--space-3);
498
+ margin-inline: calc(-1 * var(--space-4));
499
+ padding-inline: var(--space-4);
386
500
  }
387
- .zc-drp__mhead .zc-dtp__month {
388
- flex: 1 1 auto;
389
- text-align: center;
390
- padding-inline-start: 0;
501
+ .zc-drp__mhead .zc-dtp__jump {
502
+ grid-column: 2;
503
+ justify-self: center;
391
504
  }
392
- .zc-drp__mhead--right {
393
- justify-content: space-between;
505
+ .zc-drp__mhead .zc-dtp__nav {
506
+ grid-column: 1;
507
+ justify-self: start;
508
+ }
509
+ .zc-drp__mhead .zc-dtp__jump ~ .zc-dtp__nav {
510
+ grid-column: 3;
511
+ justify-self: end;
394
512
  }
395
513
 
396
514
  .zc-drp__band {
397
515
  position: absolute;
398
516
  inset: 0;
399
517
  z-index: 0;
400
- background: var(--accent-subtle);
518
+ background: var(--dtp-range);
401
519
  }
402
- /* Overshoots the gap by 1px so neighbouring bands overlap instead of leaving a subpixel seam; the fill is
403
- opaque so the overlap does not darken. */
520
+ /* Overshoots the gap by 1px so neighbouring bands overlap instead of leaving a subpixel seam. */
404
521
  .zc-drp__band--extL {
405
- left: calc(-1 * var(--space-1) - 1px);
522
+ left: calc(-1 * var(--dtp-gap) - 1px);
406
523
  }
407
524
  .zc-drp__band--extR {
408
- right: calc(-1 * var(--space-1) - 1px);
525
+ right: calc(-1 * var(--dtp-gap) - 1px);
409
526
  }
410
527
  .zc-drp__band--roundL {
411
528
  border-top-left-radius: var(--radius-md);
@@ -421,7 +538,7 @@
421
538
  inset: 0;
422
539
  z-index: 1;
423
540
  border-radius: var(--radius-md);
424
- background: var(--accent-border);
541
+ background: var(--accent);
425
542
  }
426
543
  .zc-drp__cap--ghost {
427
544
  background: transparent;
@@ -436,11 +553,18 @@
436
553
  }
437
554
  .zc-drp .zc-dtp__day.zc-is-cap .zc-dtp__num,
438
555
  .zc-drp .zc-dtp__day.zc-is-cap-ghost .zc-dtp__num {
439
- color: var(--text-accent);
440
556
  font-weight: var(--weight-semibold);
441
557
  }
558
+ .zc-drp .zc-dtp__day.zc-is-cap .zc-dtp__num {
559
+ color: var(--text-on-accent);
560
+ }
561
+ .zc-drp .zc-dtp__day.zc-is-cap-ghost .zc-dtp__num {
562
+ color: var(--text-accent);
563
+ }
442
564
 
443
- .zc-drp .zc-dtp__day.zc-is-cap .zc-dtp__dot,
565
+ .zc-drp .zc-dtp__day.zc-is-cap .zc-dtp__dot {
566
+ background: var(--text-on-accent);
567
+ }
444
568
  .zc-drp .zc-dtp__day.zc-is-cap-ghost .zc-dtp__dot {
445
569
  background: var(--accent);
446
570
  }
@@ -450,7 +574,6 @@
450
574
  align-items: center;
451
575
  gap: var(--space-3);
452
576
  padding: var(--space-2) var(--space-3);
453
- background: var(--bg-subtle);
454
577
  border-top: var(--border-hairline) solid var(--border-subtle);
455
578
  }
456
579
  .zc-drp__readout {
@@ -492,6 +615,7 @@
492
615
  width: auto;
493
616
  flex-direction: row;
494
617
  overflow-x: auto;
618
+ scroll-padding-inline: var(--ring-gutter);
495
619
  gap: var(--space-1);
496
620
  border-right: 0;
497
621
  border-bottom: var(--border-hairline) solid var(--border-subtle);
@@ -502,6 +626,7 @@
502
626
  }
503
627
  .zc-drp--sheet .zc-drp__preset {
504
628
  flex: none;
629
+ padding-block: var(--space-2);
505
630
  }
506
631
  .zc-drp--sheet .zc-drp__months {
507
632
  justify-content: center;
@@ -548,8 +673,8 @@
548
673
  cursor: not-allowed;
549
674
  }
550
675
 
551
- /* The box is a div in .zc-fld__input chrome, so the input focus rules never reach it; these restate them, scoped
552
- under .zc-tfd to outrank .zc-fld__input. */
676
+ /* The box is a div in .zc-fld__input chrome, so the input focus rules never reach it; these
677
+ restate them, scoped under .zc-tfd to outrank .zc-fld__input. */
553
678
  .zc-tfd__box {
554
679
  display: inline-flex;
555
680
  align-items: center;