@zyncat/ui 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alert.js +11 -10
- package/dist/alert.js.map +1 -1
- package/dist/avatar.css +1 -1
- package/dist/badge.css +20 -11
- package/dist/badge.js +4 -1
- package/dist/{bloom-HV23M4AW.js → bloom-5MZXLNKG.js} +23 -5
- package/dist/bloom-5MZXLNKG.js.map +1 -0
- package/dist/button.css +24 -27
- package/dist/button.js +3 -3
- package/dist/checkbox.css +0 -1
- package/dist/chunk-2EPNCOLN.js +177 -0
- package/dist/chunk-2EPNCOLN.js.map +1 -0
- package/dist/{chunk-LNAV5E7S.js → chunk-2GYZ3HP3.js} +8 -4
- package/dist/chunk-2GYZ3HP3.js.map +1 -0
- package/dist/chunk-4M5FMCFJ.js +16 -0
- package/dist/chunk-4M5FMCFJ.js.map +1 -0
- package/dist/{chunk-ODRO3KS6.js → chunk-7GTACTZD.js} +8 -6
- package/dist/chunk-7GTACTZD.js.map +1 -0
- package/dist/{chunk-V6QAAOA5.js → chunk-AK2AXGEC.js} +38 -8
- package/dist/chunk-AK2AXGEC.js.map +1 -0
- package/dist/{chunk-5VC3TUZ2.js → chunk-BA4ALXQW.js} +2 -2
- package/dist/{chunk-5VC3TUZ2.js.map → chunk-BA4ALXQW.js.map} +1 -1
- package/dist/{chunk-N43NDSME.js → chunk-CF6ZFXRV.js} +19 -11
- package/dist/chunk-CF6ZFXRV.js.map +1 -0
- package/dist/{chunk-BRKGYLEQ.js → chunk-DOAR4PJ3.js} +9 -4
- package/dist/chunk-DOAR4PJ3.js.map +1 -0
- package/dist/{tide-DJZMDAFT.js → chunk-DVLKB3CZ.js} +15 -12
- package/dist/chunk-DVLKB3CZ.js.map +1 -0
- package/dist/chunk-EUAXI6OF.js +16 -0
- package/dist/chunk-EUAXI6OF.js.map +1 -0
- package/dist/{chunk-RLNCRDAL.js → chunk-G2TOUG2A.js} +7 -6
- package/dist/chunk-G2TOUG2A.js.map +1 -0
- package/dist/{chunk-VQFILXQN.js → chunk-HRP4UFWN.js} +70 -8
- package/dist/chunk-HRP4UFWN.js.map +1 -0
- package/dist/chunk-INK2GJTA.js +102 -0
- package/dist/chunk-INK2GJTA.js.map +1 -0
- package/dist/chunk-ITW5UCVU.js +24 -0
- package/dist/chunk-ITW5UCVU.js.map +1 -0
- package/dist/{chunk-F64Z42PJ.js → chunk-JJHEVW4M.js} +5 -6
- package/dist/chunk-JJHEVW4M.js.map +1 -0
- package/dist/{chunk-7NHY2CRA.js → chunk-JUC35N3C.js} +2 -2
- package/dist/chunk-JUC35N3C.js.map +1 -0
- package/dist/{chunk-PXQBJMPJ.js → chunk-LFJ4C7ZP.js} +7 -7
- package/dist/chunk-LFJ4C7ZP.js.map +1 -0
- package/dist/{chunk-TDHLZY6I.js → chunk-MCOIR3CK.js} +77 -18
- package/dist/chunk-MCOIR3CK.js.map +1 -0
- package/dist/chunk-NATK4DDW.js +108 -0
- package/dist/chunk-NATK4DDW.js.map +1 -0
- package/dist/{chunk-BIDVNLJO.js → chunk-O3RMSMBP.js} +8 -3
- package/dist/{chunk-BIDVNLJO.js.map → chunk-O3RMSMBP.js.map} +1 -1
- package/dist/{chunk-UKPX3RIP.js → chunk-ODO2TCTS.js} +27 -13
- package/dist/chunk-ODO2TCTS.js.map +1 -0
- package/dist/{chunk-M2KGLH2G.js → chunk-P3QSWNED.js} +11 -11
- package/dist/{chunk-M2KGLH2G.js.map → chunk-P3QSWNED.js.map} +1 -1
- package/dist/{chunk-QDAN43B6.js → chunk-Q4K337QY.js} +6 -6
- package/dist/chunk-Q4K337QY.js.map +1 -0
- package/dist/{chunk-2YGHPQ66.js → chunk-Q5N24VII.js} +2 -2
- package/dist/{chunk-2YGHPQ66.js.map → chunk-Q5N24VII.js.map} +1 -1
- package/dist/{chunk-VJXP256V.js → chunk-RLRZJAF7.js} +20 -8
- package/dist/chunk-RLRZJAF7.js.map +1 -0
- package/dist/{chunk-VZXML7EH.js → chunk-SY5UA6WS.js} +39 -10
- package/dist/chunk-SY5UA6WS.js.map +1 -0
- package/dist/{chunk-XKDR22VE.js → chunk-TFC5SCAB.js} +37 -14
- package/dist/chunk-TFC5SCAB.js.map +1 -0
- package/dist/{chunk-HBWRKEW4.js → chunk-VBALIMST.js} +3 -3
- package/dist/{chunk-HBWRKEW4.js.map → chunk-VBALIMST.js.map} +1 -1
- package/dist/{chunk-JINATP4N.js → chunk-VXQ7A6ZI.js} +8 -9
- package/dist/chunk-VXQ7A6ZI.js.map +1 -0
- package/dist/{chunk-TBLPZQSI.js → chunk-W7CHDHRV.js} +114 -42
- package/dist/chunk-W7CHDHRV.js.map +1 -0
- package/dist/{chunk-AIAPXRCI.js → chunk-WBWVOOKM.js} +201 -123
- package/dist/chunk-WBWVOOKM.js.map +1 -0
- package/dist/{chunk-6H3IJ752.js → chunk-WJEZWKEY.js} +20 -10
- package/dist/chunk-WJEZWKEY.js.map +1 -0
- package/dist/{chunk-TRPAKUIB.js → chunk-WMTOAYGP.js} +9 -9
- package/dist/{chunk-TRPAKUIB.js.map → chunk-WMTOAYGP.js.map} +1 -1
- package/dist/{chunk-C3D32LE3.js → chunk-WTHIUPVJ.js} +3 -3
- package/dist/{chunk-C3D32LE3.js.map → chunk-WTHIUPVJ.js.map} +1 -1
- package/dist/{chunk-F2TB3TT6.js → chunk-XCTMTOGT.js} +5 -5
- package/dist/{chunk-F2TB3TT6.js.map → chunk-XCTMTOGT.js.map} +1 -1
- package/dist/chunk-XMJ343KF.js +18 -0
- package/dist/chunk-XMJ343KF.js.map +1 -0
- package/dist/collapse.js +1 -1
- package/dist/combobox.css +7 -0
- package/dist/combobox.js +183 -0
- package/dist/combobox.js.map +1 -0
- package/dist/confetti.js +2 -2
- package/dist/crossfade-UHUQBUVG.js +133 -0
- package/dist/crossfade-UHUQBUVG.js.map +1 -0
- package/dist/date-field.js +27 -22
- package/dist/date-field.js.map +1 -1
- package/dist/date-picker.css +25 -41
- package/dist/date-range-field.js +463 -279
- package/dist/date-range-field.js.map +1 -1
- package/dist/datetime-field.js +28 -23
- package/dist/datetime-field.js.map +1 -1
- package/dist/dialog-sheet.css +31 -0
- package/dist/dialog.css +3 -0
- package/dist/dialog.js +44 -42
- package/dist/dialog.js.map +1 -1
- package/dist/dropdown.css +14 -11
- package/dist/dropdown.js +79 -37
- package/dist/dropdown.js.map +1 -1
- package/dist/emoji-picker.js +22 -21
- package/dist/emoji-picker.js.map +1 -1
- package/dist/flow-field.js +2 -2
- package/dist/glide.js +3 -3
- package/dist/input.css +54 -34
- package/dist/instagram-feed.js +3 -3
- package/dist/lens.js +184 -160
- package/dist/lens.js.map +1 -1
- package/dist/mcp.js +29 -22
- package/dist/menu-surface.css +81 -7
- package/dist/modal.js +11 -10
- package/dist/modal.js.map +1 -1
- package/dist/morphing-text.js +2 -2
- package/dist/motion-devtools.css +6 -5
- package/dist/motion-devtools.js +6 -6
- package/dist/motion-tokens.js +1 -1
- package/dist/motion.js +10 -0
- package/dist/motion.js.map +1 -0
- package/dist/multi-select.js +63 -24
- package/dist/multi-select.js.map +1 -1
- package/dist/number-field.js +122 -75
- package/dist/number-field.js.map +1 -1
- package/dist/odometer.css +27 -16
- package/dist/odometer.js +225 -73
- package/dist/odometer.js.map +1 -1
- package/dist/otp-field.js +49 -12
- package/dist/otp-field.js.map +1 -1
- package/dist/overlay.css +1 -0
- package/dist/pagination.css +1 -1
- package/dist/pagination.js +6 -6
- package/dist/{paint-CJQCM6ZO.js → paint-NLTI6TEF.js} +5 -3
- package/dist/paint-NLTI6TEF.js.map +1 -0
- package/dist/popover.js +12 -11
- package/dist/radio-group.css +9 -6
- package/dist/radio-group.js +9 -8
- package/dist/radio-group.js.map +1 -1
- package/dist/range-sheet-days.css +35 -0
- package/dist/range-sheet.css +80 -0
- package/dist/range-summary.css +67 -0
- package/dist/scroll-area.css +150 -0
- package/dist/scroll-area.js +85 -0
- package/dist/scroll-area.js.map +1 -0
- package/dist/select.css +55 -7
- package/dist/select.js +29 -15
- package/dist/select.js.map +1 -1
- package/dist/sheet.js +12 -11
- package/dist/support-rail.css +2 -2
- package/dist/support-rail.js +17 -15
- package/dist/support-rail.js.map +1 -1
- package/dist/table-detail.css +27 -0
- package/dist/table.css +41 -14
- package/dist/table.js +341 -172
- package/dist/table.js.map +1 -1
- package/dist/tabs.css +32 -13
- package/dist/tabs.js +69 -55
- package/dist/tabs.js.map +1 -1
- package/dist/tag.css +2 -4
- package/dist/tag.js +8 -7
- package/dist/tag.js.map +1 -1
- package/dist/text-field.js +4 -4
- package/dist/textarea.css +26 -41
- package/dist/textarea.js +43 -32
- package/dist/textarea.js.map +1 -1
- package/dist/theme-grid.js +8 -7
- package/dist/theme-switcher.js +19 -18
- package/dist/theme-switcher.js.map +1 -1
- package/dist/{theme-transition-VGLPZDJI.js → theme-transition-F3CBENM5.js} +29 -9
- package/dist/theme-transition-F3CBENM5.js.map +1 -0
- package/dist/theme-transition.css +49 -0
- package/dist/theme.js +5 -4
- package/dist/theme.js.map +1 -1
- package/dist/tide-AGGMQEJV.js +4 -0
- package/dist/tide-AGGMQEJV.js.map +1 -0
- package/dist/tiktok.js +3 -3
- package/dist/time-field.js +15 -8
- package/dist/time-field.js.map +1 -1
- package/dist/toast.css +1 -1
- package/dist/toast.js +11 -10
- package/dist/toast.js.map +1 -1
- package/dist/toggle-tag.js +2 -2
- package/dist/toggle-tag.js.map +1 -1
- package/dist/toggle.css +0 -1
- package/dist/toggle.js +4 -15
- package/dist/toggle.js.map +1 -1
- package/dist/tooltip.css +1 -1
- package/dist/tooltip.js +22 -17
- package/dist/tooltip.js.map +1 -1
- package/dist/trigger.css +0 -1
- package/dist/types/components/composites/combobox/Combobox.d.ts +51 -0
- package/dist/types/components/composites/combobox/caret.d.ts +8 -0
- package/dist/types/components/composites/combobox/use-combobox.d.ts +52 -0
- package/dist/types/components/composites/date-picker/DateField.d.ts +1 -1
- package/dist/types/components/composites/date-picker/DateRangeField.d.ts +6 -3
- package/dist/types/components/composites/date-picker/DateTimeField.d.ts +1 -1
- package/dist/types/components/composites/date-picker/TimeField.d.ts +1 -1
- package/dist/types/components/composites/date-picker/date-utils.d.ts +2 -0
- package/dist/types/components/composites/date-picker/field-shell.d.ts +8 -1
- package/dist/types/components/composites/date-picker/month-swipe.d.ts +3 -0
- package/dist/types/components/composites/date-picker/range-day.d.ts +11 -0
- package/dist/types/components/composites/date-picker/range-month.d.ts +14 -0
- package/dist/types/components/composites/date-picker/range-panel.d.ts +4 -18
- package/dist/types/components/composites/date-picker/range-presets.d.ts +24 -0
- package/dist/types/components/composites/date-picker/range-sheet.d.ts +12 -0
- package/dist/types/components/composites/date-picker/range-summary.d.ts +9 -0
- package/dist/types/components/composites/date-picker/typed-key.d.ts +3 -0
- package/dist/types/components/composites/date-picker/use-month-view.d.ts +14 -0
- package/dist/types/components/composites/date-picker/use-range-panel.d.ts +44 -0
- package/dist/types/components/composites/dialog/Dialog.d.ts +3 -2
- package/dist/types/components/composites/dialog/surface.d.ts +17 -0
- package/dist/types/components/composites/dropdown/Dropdown.d.ts +21 -4
- package/dist/types/components/composites/dropdown/types.d.ts +9 -3
- package/dist/types/components/composites/scroll-area/ScrollArea.d.ts +29 -0
- package/dist/types/components/composites/select/MultiSelect.d.ts +31 -5
- package/dist/types/components/composites/select/Select.d.ts +20 -4
- package/dist/types/components/composites/select/core/index.d.ts +2 -1
- package/dist/types/components/composites/select/core/menu.d.ts +10 -5
- package/dist/types/components/composites/select/core/panel.d.ts +7 -4
- package/dist/types/components/composites/select/core/trigger.d.ts +7 -2
- package/dist/types/components/composites/select/core/types.d.ts +9 -0
- package/dist/types/components/composites/select/core/use-listbox.d.ts +8 -6
- package/dist/types/components/composites/select/presets.d.ts +17 -0
- package/dist/types/components/composites/table/Table.d.ts +3 -74
- package/dist/types/components/composites/table/body.d.ts +15 -0
- package/dist/types/components/composites/table/detail.d.ts +24 -0
- package/dist/types/components/composites/table/head.d.ts +16 -0
- package/dist/types/components/composites/table/types.d.ts +86 -0
- package/dist/types/components/composites/table/use-scroller.d.ts +12 -0
- package/dist/types/components/composites/table/use-table-state.d.ts +16 -0
- package/dist/types/components/composites/tabs/Tabs.d.ts +4 -69
- package/dist/types/components/composites/tabs/tab-panel.d.ts +26 -0
- package/dist/types/components/composites/tabs/types.d.ts +48 -0
- package/dist/types/components/composites/tabs/use-ink.d.ts +5 -0
- package/dist/types/components/composites/tooltip/Tooltip.d.ts +1 -1
- package/dist/types/components/compound/support-rail/SupportRail.d.ts +1 -1
- package/dist/types/components/expressive/lens/Lens.d.ts +1 -1
- package/dist/types/components/expressive/lens/input.d.ts +2 -0
- package/dist/types/components/expressive/lens/optics.d.ts +37 -0
- package/dist/types/components/expressive/lens/paint.d.ts +2 -0
- package/dist/types/components/expressive/lens/use-lens.d.ts +10 -0
- package/dist/types/components/expressive/odometer/Odometer.d.ts +1 -1
- package/dist/types/components/expressive/odometer/roll.d.ts +18 -0
- package/dist/types/components/expressive/odometer/spring.d.ts +11 -0
- package/dist/types/components/expressive/theme-transition/scene.d.ts +3 -0
- package/dist/types/components/internal/hooks/use-hold-repeat.d.ts +8 -0
- package/dist/types/components/internal/icon/Icon.d.ts +2 -0
- package/dist/types/components/internal/menu/highlight.d.ts +9 -1
- package/dist/types/components/internal/menu/menu-row.d.ts +4 -0
- package/dist/types/components/internal/menu/use-anchor-width.d.ts +2 -0
- package/dist/types/components/internal/overlay/layer.d.ts +5 -8
- package/dist/types/components/internal/overlay/track-anchor.d.ts +5 -0
- package/dist/types/components/internal/support/types.d.ts +1 -1
- package/dist/types/components/internal/utils/activation.d.ts +1 -0
- package/dist/types/components/primitives/badge/Badge.d.ts +17 -8
- package/dist/types/components/primitives/badge/morph-label.d.ts +3 -0
- package/dist/types/components/primitives/badge/use-glint-on-change.d.ts +2 -0
- package/dist/types/components/primitives/button/Button.d.ts +4 -8
- package/dist/types/components/primitives/button/button-style.d.ts +8 -4
- package/dist/types/components/primitives/collapse/Collapse.d.ts +3 -2
- package/dist/types/components/primitives/input/NumberField.d.ts +1 -1
- package/dist/types/components/primitives/input/OtpField.d.ts +7 -3
- package/dist/types/components/primitives/input/TextField.d.ts +1 -1
- package/dist/types/components/primitives/input/field-chrome.d.ts +2 -1
- package/dist/types/components/primitives/input/use-number-value.d.ts +16 -0
- package/dist/types/components/primitives/tag/Tag.d.ts +1 -1
- package/dist/types/components/primitives/tag/ToggleTag.d.ts +2 -2
- package/dist/types/components/primitives/textarea/Textarea.d.ts +5 -3
- package/dist/types/components/primitives/textarea/char-meter.d.ts +6 -0
- package/dist/types/components/primitives/toggle/switch-glyph.d.ts +6 -0
- package/dist/types/engine/flip.d.ts +3 -1
- package/dist/types/engine/index.d.ts +2 -2
- package/dist/types/engine/loop.d.ts +5 -2
- package/dist/types/motion/before-paint.d.ts +4 -0
- package/dist/types/motion/crossfade.d.ts +4 -0
- package/dist/types/motion/element.d.ts +16 -4
- package/dist/types/motion/flip.d.ts +12 -3
- package/dist/types/motion/holders.d.ts +4 -0
- package/dist/types/motion/motion.d.ts +7 -0
- package/dist/types/motion/use-motion.d.ts +3 -1
- package/dist/types/theme-scope.d.ts +5 -0
- package/dist/types/tokens/component-styles.generated.d.ts +0 -2
- package/dist/types/tokens/motion-defaults.generated.d.ts +2 -0
- package/dist/types/tokens/motion-scale.d.ts +18 -15
- package/dist/types/tokens/motion-tokens.d.ts +1 -1
- package/dist/types/tokens/theme-store.d.ts +4 -4
- package/dist/types/tokens/theme-tokens.generated.d.ts +77 -59
- package/dist/types/tokens/theme.d.ts +1 -1
- package/dist/typing-lines.js +2 -2
- package/dist/youtube.js +3 -3
- package/package.json +16 -11
- package/skills/zyncat-ui/SKILL.md +8 -8
- package/skills/zyncat-ui/references/components.md +6 -5
- package/skills/zyncat-ui/references/recipes.md +1 -1
- package/skills/zyncat-ui/references/theming.md +3 -3
- package/src/components/composites/combobox/Combobox.tsx +100 -0
- package/src/components/composites/combobox/Combobox.usage.md +32 -0
- package/src/components/composites/combobox/caret.ts +41 -0
- package/src/components/composites/combobox/combobox.css +7 -0
- package/src/components/composites/combobox/use-combobox.ts +112 -0
- package/src/components/composites/date-picker/DateField.tsx +4 -0
- package/src/components/composites/date-picker/DateRangeField.tsx +15 -18
- package/src/components/composites/date-picker/DateTimeField.tsx +4 -0
- package/src/components/composites/date-picker/TimeField.tsx +12 -4
- package/src/components/composites/date-picker/date-picker.css +25 -41
- package/src/components/composites/date-picker/date-utils.ts +4 -0
- package/src/components/composites/date-picker/field-shell.tsx +45 -8
- package/src/components/composites/date-picker/month-swipe.ts +41 -0
- package/src/components/composites/date-picker/range-day.tsx +112 -0
- package/src/components/composites/date-picker/range-month.tsx +79 -0
- package/src/components/composites/date-picker/range-panel.tsx +30 -356
- package/src/components/composites/date-picker/range-presets.tsx +104 -0
- package/src/components/composites/date-picker/range-sheet-days.css +35 -0
- package/src/components/composites/date-picker/range-sheet.css +80 -0
- package/src/components/composites/date-picker/range-sheet.tsx +72 -0
- package/src/components/composites/date-picker/range-summary.css +67 -0
- package/src/components/composites/date-picker/range-summary.tsx +69 -0
- package/src/components/composites/date-picker/time-core.tsx +23 -17
- package/src/components/composites/date-picker/typed-key.ts +9 -0
- package/src/components/composites/date-picker/use-month-view.ts +32 -0
- package/src/components/composites/date-picker/use-range-panel.ts +145 -0
- package/src/components/composites/dialog/Dialog.tsx +28 -110
- package/src/components/composites/dialog/dialog-sheet.css +31 -0
- package/src/components/composites/dialog/dialog.css +3 -0
- package/src/components/composites/dialog/surface.tsx +93 -0
- package/src/components/composites/dropdown/Dropdown.tsx +49 -7
- package/src/components/composites/dropdown/Dropdown.usage.md +2 -0
- package/src/components/composites/dropdown/dropdown.css +14 -11
- package/src/components/composites/dropdown/menu-panel.tsx +49 -26
- package/src/components/composites/dropdown/types.ts +9 -3
- package/src/components/composites/pagination/pagination.css +1 -1
- package/src/components/composites/scroll-area/ScrollArea.tsx +114 -0
- package/src/components/composites/scroll-area/ScrollArea.usage.md +28 -0
- package/src/components/composites/scroll-area/scroll-area.css +150 -0
- package/src/components/composites/select/MultiSelect.tsx +71 -12
- package/src/components/composites/select/MultiSelect.usage.md +10 -0
- package/src/components/composites/select/Select.tsx +32 -2
- package/src/components/composites/select/Select.usage.md +13 -1
- package/src/components/composites/select/core/index.ts +2 -1
- package/src/components/composites/select/core/menu.tsx +34 -17
- package/src/components/composites/select/core/panel.tsx +62 -55
- package/src/components/composites/select/core/trigger.tsx +44 -13
- package/src/components/composites/select/core/types.ts +10 -0
- package/src/components/composites/select/core/use-listbox.ts +91 -38
- package/src/components/composites/select/presets.tsx +47 -0
- package/src/components/composites/select/select.css +55 -7
- package/src/components/composites/sheet/use-sheet-drag.ts +13 -0
- package/src/components/composites/table/Table.tsx +65 -305
- package/src/components/composites/table/Table.usage.md +19 -2
- package/src/components/composites/table/body.tsx +147 -0
- package/src/components/composites/table/detail.tsx +76 -0
- package/src/components/composites/table/head.tsx +90 -0
- package/src/components/composites/table/table-detail.css +27 -0
- package/src/components/composites/table/table.css +41 -14
- package/src/components/composites/table/types.ts +97 -0
- package/src/components/composites/table/use-scroller.ts +53 -0
- package/src/components/composites/table/use-table-state.ts +98 -0
- package/src/components/composites/tabs/Tabs.tsx +23 -188
- package/src/components/composites/tabs/tab-panel.tsx +63 -0
- package/src/components/composites/tabs/tabs.css +32 -13
- package/src/components/composites/tabs/types.ts +51 -0
- package/src/components/composites/tabs/use-ink.ts +87 -0
- package/src/components/composites/toast/toast.css +1 -1
- package/src/components/composites/tooltip/Tooltip.tsx +6 -5
- package/src/components/composites/tooltip/tooltip-host.tsx +10 -6
- package/src/components/composites/tooltip/tooltip.css +1 -1
- package/src/components/compound/support-rail/SupportRail.tsx +3 -2
- package/src/components/compound/support-rail/support-rail.css +2 -2
- package/src/components/dev/motion-devtools.css +6 -5
- package/src/components/expressive/lens/Lens.tsx +11 -368
- package/src/components/expressive/lens/input.ts +91 -0
- package/src/components/expressive/lens/optics.ts +119 -0
- package/src/components/expressive/lens/paint.ts +60 -0
- package/src/components/expressive/lens/use-lens.ts +121 -0
- package/src/components/expressive/odometer/Odometer.tsx +78 -99
- package/src/components/expressive/odometer/Odometer.usage.md +2 -2
- package/src/components/expressive/odometer/odometer.css +27 -16
- package/src/components/expressive/odometer/roll.ts +139 -0
- package/src/components/expressive/odometer/spring.ts +86 -0
- package/src/components/expressive/theme-transition/bloom.ts +22 -2
- package/src/components/expressive/theme-transition/paint.ts +2 -0
- package/src/components/expressive/theme-transition/scene.ts +3 -0
- package/src/components/expressive/theme-transition/theme-transition.css +49 -0
- package/src/components/expressive/theme-transition/theme-transition.ts +21 -1
- package/src/components/expressive/theme-transition/tide.ts +15 -10
- package/src/components/internal/hooks/use-hold-repeat.ts +43 -0
- package/src/components/internal/hooks/use-scroll-edges.ts +6 -1
- package/src/components/internal/icon/Icon.tsx +4 -0
- package/src/components/internal/menu/highlight.ts +20 -2
- package/src/components/internal/menu/menu-row.tsx +36 -8
- package/src/components/internal/menu/menu-surface.css +81 -7
- package/src/components/internal/menu/use-anchor-width.ts +26 -0
- package/src/components/internal/overlay/layer.tsx +11 -23
- package/src/components/internal/overlay/overlay.css +1 -0
- package/src/components/internal/overlay/position.ts +17 -6
- package/src/components/internal/overlay/track-anchor.ts +69 -0
- package/src/components/internal/overlay/trigger.css +0 -1
- package/src/components/internal/support/types.ts +1 -1
- package/src/components/internal/utils/activation.ts +7 -2
- package/src/components/primitives/avatar/avatar.css +1 -1
- package/src/components/primitives/badge/Badge.tsx +38 -15
- package/src/components/primitives/badge/Badge.usage.md +12 -5
- package/src/components/primitives/badge/badge.css +20 -11
- package/src/components/primitives/badge/morph-label.tsx +71 -0
- package/src/components/primitives/badge/use-glint-on-change.ts +16 -0
- package/src/components/primitives/button/Button.tsx +5 -8
- package/src/components/primitives/button/Button.usage.md +5 -4
- package/src/components/primitives/button/button-style.ts +11 -5
- package/src/components/primitives/button/button.css +24 -27
- package/src/components/primitives/checkbox/checkbox.css +0 -1
- package/src/components/primitives/collapse/Collapse.tsx +3 -2
- package/src/components/primitives/input/NumberField.tsx +38 -46
- package/src/components/primitives/input/OtpField.tsx +52 -11
- package/src/components/primitives/input/OtpField.usage.md +2 -1
- package/src/components/primitives/input/TextField.tsx +5 -3
- package/src/components/primitives/input/field-chrome.tsx +3 -2
- package/src/components/primitives/input/input.css +54 -34
- package/src/components/primitives/input/use-number-value.ts +38 -0
- package/src/components/primitives/radio-group/radio-group.css +9 -6
- package/src/components/primitives/tag/Tag.tsx +1 -1
- package/src/components/primitives/tag/ToggleTag.tsx +2 -2
- package/src/components/primitives/tag/tag.css +2 -4
- package/src/components/primitives/textarea/Textarea.tsx +44 -30
- package/src/components/primitives/textarea/char-meter.tsx +19 -0
- package/src/components/primitives/textarea/textarea.css +26 -41
- package/src/components/primitives/toggle/Toggle.tsx +3 -12
- package/src/components/primitives/toggle/switch-glyph.tsx +25 -0
- package/src/components/primitives/toggle/toggle.css +0 -1
- package/src/engine/animate.ts +5 -3
- package/src/engine/flip.ts +28 -4
- package/src/engine/index.ts +2 -2
- package/src/engine/loop.ts +17 -6
- package/src/mcp/server.ts +30 -20
- package/src/motion/before-paint.ts +15 -0
- package/src/motion/crossfade.ts +143 -0
- package/src/motion/element.tsx +29 -8
- package/src/motion/flip.ts +102 -31
- package/src/motion/glide.tsx +5 -0
- package/src/motion/holders.ts +10 -0
- package/src/motion/motion.ts +7 -0
- package/src/motion/motion.usage.md +34 -0
- package/src/motion/presence.tsx +22 -9
- package/src/motion/use-motion.ts +45 -6
- package/src/theme-scope.ts +19 -0
- package/src/tokens/base.css +7 -5
- package/src/tokens/color.css +17 -15
- package/src/tokens/component-styles.generated.ts +0 -2
- package/src/tokens/dark.css +8 -5
- package/src/tokens/decisions.css +5 -3
- package/src/tokens/motion-defaults.generated.ts +15 -8
- package/src/tokens/motion-scale.ts +18 -15
- package/src/tokens/motion-tokens.ts +4 -4
- package/src/tokens/motion.css +19 -11
- package/src/tokens/reset.css +1 -0
- package/src/tokens/semantic.css +20 -14
- package/src/tokens/spacing.css +5 -3
- package/src/tokens/theme-store.ts +4 -4
- package/src/tokens/theme-sync.tsx +4 -2
- package/src/tokens/theme-tokens.generated.ts +78 -59
- package/src/tokens/theme.tsx +1 -1
- package/tailwind.css +6 -0
- package/dist/bloom-HV23M4AW.js.map +0 -1
- package/dist/chunk-2DNKZ57E.js +0 -72
- package/dist/chunk-2DNKZ57E.js.map +0 -1
- package/dist/chunk-6H3IJ752.js.map +0 -1
- package/dist/chunk-7NHY2CRA.js.map +0 -1
- package/dist/chunk-AIAPXRCI.js.map +0 -1
- package/dist/chunk-BRKGYLEQ.js.map +0 -1
- package/dist/chunk-F64Z42PJ.js.map +0 -1
- package/dist/chunk-JINATP4N.js.map +0 -1
- package/dist/chunk-KSAJ6DED.js +0 -16
- package/dist/chunk-KSAJ6DED.js.map +0 -1
- package/dist/chunk-LNAV5E7S.js.map +0 -1
- package/dist/chunk-N43NDSME.js.map +0 -1
- package/dist/chunk-ODRO3KS6.js.map +0 -1
- package/dist/chunk-PXQBJMPJ.js.map +0 -1
- package/dist/chunk-QDAN43B6.js.map +0 -1
- package/dist/chunk-RJENXXTI.js +0 -93
- package/dist/chunk-RJENXXTI.js.map +0 -1
- package/dist/chunk-RLNCRDAL.js.map +0 -1
- package/dist/chunk-RW2A4M2Q.js +0 -57
- package/dist/chunk-RW2A4M2Q.js.map +0 -1
- package/dist/chunk-TBLPZQSI.js.map +0 -1
- package/dist/chunk-TDHLZY6I.js.map +0 -1
- package/dist/chunk-UKPX3RIP.js.map +0 -1
- package/dist/chunk-V6QAAOA5.js.map +0 -1
- package/dist/chunk-VDOBLABP.js +0 -38
- package/dist/chunk-VDOBLABP.js.map +0 -1
- package/dist/chunk-VJXP256V.js.map +0 -1
- package/dist/chunk-VQFILXQN.js.map +0 -1
- package/dist/chunk-VZXML7EH.js.map +0 -1
- package/dist/chunk-XKDR22VE.js.map +0 -1
- package/dist/count-badge.js +0 -13
- package/dist/count-badge.js.map +0 -1
- package/dist/paint-CJQCM6ZO.js.map +0 -1
- package/dist/status-badge.js +0 -72
- package/dist/status-badge.js.map +0 -1
- package/dist/theme-transition-VGLPZDJI.js.map +0 -1
- package/dist/tide-DJZMDAFT.js.map +0 -1
- package/dist/types/components/primitives/badge/CountBadge.d.ts +0 -8
- package/dist/types/components/primitives/badge/StatusBadge.d.ts +0 -15
- package/src/components/primitives/badge/CountBadge.tsx +0 -20
- package/src/components/primitives/badge/CountBadge.usage.md +0 -13
- package/src/components/primitives/badge/StatusBadge.tsx +0 -113
- package/src/components/primitives/badge/StatusBadge.usage.md +0 -14
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
/** Names of the UI-transition duration scale (`--duration-*`):
|
|
2
|
-
* - `fast` 140ms - micro feedback: hover washes, presses, control tint/border/shadow.
|
|
3
|
-
* - `base`
|
|
4
|
-
* - `
|
|
5
|
-
* - `
|
|
6
|
-
* - `
|
|
7
|
-
*
|
|
8
|
-
|
|
1
|
+
/** Names of the UI-transition duration scale (`--duration-*`), the studio's motion:
|
|
2
|
+
* - `fast` 140ms - micro feedback: hover washes, presses, control tint/border/shadow, an exit.
|
|
3
|
+
* - `base` 240ms - standard element transitions: fades, toggles, a pill gliding between rows.
|
|
4
|
+
* - `moderate` 320ms - small layout movement: a fold opening, a reorder, a FLIP to a new place.
|
|
5
|
+
* - `slow` 420ms - layout-scale movement: Collapse, panel resizes, a larger block arriving.
|
|
6
|
+
* - `slower` 600ms - large-surface movement: dialogs, sheets, an element flying across the page.
|
|
7
|
+
* - `slowest` 800ms - hero-scale movement: container morphs, slow cross-fades of a whole view. The
|
|
8
|
+
* scale's ceiling: anything longer is choreography and belongs to Motion, not a transition token. */
|
|
9
|
+
export type DurationToken = 'fast' | 'base' | 'moderate' | 'slow' | 'slower' | 'slowest';
|
|
9
10
|
/** Names of the brand easing curves (`--ease-*`):
|
|
10
|
-
* - `standard` cubic-bezier(0.2, 0, 0, 1) - brisk start, soft landing;
|
|
11
|
-
* - `entrance` cubic-bezier(0.
|
|
12
|
-
* - `exit` cubic-bezier(0.
|
|
13
|
-
* - `spring` cubic-bezier(0.
|
|
14
|
-
* - `glide` cubic-bezier(0.
|
|
15
|
-
* new target, never enter/exit.
|
|
16
|
-
|
|
11
|
+
* - `standard` cubic-bezier(0.2, 0, 0, 1) - brisk start, soft landing; state changes and the press.
|
|
12
|
+
* - `entrance` cubic-bezier(0.22, 1, 0.36, 1) - hard deceleration; content arriving on screen.
|
|
13
|
+
* - `exit` cubic-bezier(0.3, 0, 0.3, 1) - soft at both ends; content leaving (pair with a faster duration).
|
|
14
|
+
* - `spring` cubic-bezier(0.3, 1.5, 0.5, 1) - overshoots then settles; pop-ins and confirmations.
|
|
15
|
+
* - `glide` cubic-bezier(0.22, 1, 0.36, 1) - fast out, soft landing; a persistent element moving to a
|
|
16
|
+
* new target, never enter/exit.
|
|
17
|
+
* - `move` cubic-bezier(0.55, 0, 0.15, 1) - gathers, then lands; travel across space: a fold, a FLIP,
|
|
18
|
+
* a flight. */
|
|
19
|
+
export type EaseToken = 'standard' | 'entrance' | 'exit' | 'spring' | 'glide' | 'move';
|
|
17
20
|
export type DistanceToken = 'sm' | 'md' | 'lg';
|
|
18
21
|
export type ScaleToken = 'panel' | 'floating' | 'chip';
|
|
@@ -10,7 +10,7 @@ export interface MotionTransition {
|
|
|
10
10
|
export type Bezier = [number, number, number, number];
|
|
11
11
|
export type { DistanceToken, DurationToken, EaseToken, ScaleToken } from './motion-scale';
|
|
12
12
|
export interface MotionTokens {
|
|
13
|
-
/** seconds - fast 0.14 - base 0.
|
|
13
|
+
/** seconds - fast 0.14 - base 0.24 - moderate 0.32 - slow 0.42 - slower 0.6 - slowest 0.8 */
|
|
14
14
|
dur: Record<DurationToken, number>;
|
|
15
15
|
ease: Record<EaseToken, Bezier>;
|
|
16
16
|
dist: Record<DistanceToken, number>;
|
|
@@ -13,10 +13,10 @@ export interface ThemeState {
|
|
|
13
13
|
themeNames: Readonly<Record<string, string>>;
|
|
14
14
|
}
|
|
15
15
|
export interface ThemeControls extends ThemeState {
|
|
16
|
-
/** Switch the palette; the side stays. */
|
|
17
|
-
setTheme(theme: string): void;
|
|
18
|
-
/** Pick a side, or `system` to follow the OS setting. */
|
|
19
|
-
setPolarity(polarity: PolarityPreference): void;
|
|
16
|
+
/** Switch the palette; the side stays. `options.origin` is where the transition spreads from. */
|
|
17
|
+
setTheme(theme: string, options?: ThemePreferenceOptions): void;
|
|
18
|
+
/** Pick a side, or `system` to follow the OS setting. `options.origin` is where the transition spreads from. */
|
|
19
|
+
setPolarity(polarity: PolarityPreference, options?: ThemePreferenceOptions): void;
|
|
20
20
|
}
|
|
21
21
|
export type ThemeBootConfig = {
|
|
22
22
|
key: string;
|
|
@@ -24,6 +24,10 @@ export interface ColorBgTokens {
|
|
|
24
24
|
inset?: string | number;
|
|
25
25
|
/** `--bg-overlay`. Default: `color-mix(in oklab, var(--gray-900) 44%, transparent)`. Dark: `oklch(from var(--neutral) 0.06 0.004 h / 0.64)`. */
|
|
26
26
|
overlay?: string | number;
|
|
27
|
+
/** `--bg-hover` - Stripe's slate rung at the alpha that lands its hover face exactly on the canvas: translucent, so a tinted surface still shows through instead of being covered. Held at the ramp's distance from --neutral, so a retint carries the hover with it. Default: `oklch(from var(--neutral) 0.896 0.0186 calc(h - 9.7) / 0.246)`. Dark: `color-mix(in oklab, var(--text-secondary) 6%, transparent)`. */
|
|
28
|
+
hover?: string | number;
|
|
29
|
+
/** `--bg-press`. Default: `oklch(from var(--neutral) 0.896 0.0186 calc(h - 9.7) / 0.291)`. Dark: `color-mix(in oklab, var(--text-secondary) 10%, transparent)`. */
|
|
30
|
+
press?: string | number;
|
|
27
31
|
}
|
|
28
32
|
/** Ink, from strong to disabled, and the faces on a fill. */
|
|
29
33
|
export interface ColorTextTokens {
|
|
@@ -44,18 +48,18 @@ export interface ColorTextTokens {
|
|
|
44
48
|
}
|
|
45
49
|
/** Hairlines, from subtle to strong. */
|
|
46
50
|
export interface ColorBorderTokens {
|
|
47
|
-
/** `--border-subtle
|
|
51
|
+
/** `--border-subtle` - One rung lighter than the ink roles: Stripe hangs its hairline on gray-150, not gray-200. Default: `var(--gray-100)`. Dark: `oklch(from var(--neutral) 0.265 0.008 h)`. */
|
|
48
52
|
subtle?: string | number;
|
|
49
|
-
/** `--border-default`. Default: `var(--gray-
|
|
53
|
+
/** `--border-default`. Default: `var(--gray-150)`. Dark: `oklch(from var(--neutral) 0.315 0.009 h)`. */
|
|
50
54
|
default?: string | number;
|
|
51
|
-
/** `--border-strong`. Default: `var(--gray-
|
|
55
|
+
/** `--border-strong`. Default: `var(--gray-200)`. Dark: `oklch(from var(--neutral) 0.4 0.011 h)`. */
|
|
52
56
|
strong?: string | number;
|
|
53
57
|
}
|
|
54
58
|
/** The hues, and the neutral roles a light or dark theme sets directly. */
|
|
55
59
|
export interface ColorTokens {
|
|
56
|
-
/** `--accent` - The brand hue - hover, active, lift, subtle, border, wash, the focus ring and info follow. Default: `oklch(0.
|
|
60
|
+
/** `--accent` - The brand hue - hover, active, lift, subtle, border, wash, the focus ring and info follow. Default: `oklch(0.7 0.118 198)`. */
|
|
57
61
|
accent?: string | number;
|
|
58
|
-
/** `--neutral` - The gray ramp's
|
|
62
|
+
/** `--neutral` - The middle of the gray ramp - every rung holds its hue distance from this one, so moving it retints the whole ramp. Stripe's gray-500 lightness and chroma over the accent's hue, so the grays carry the brand temperature; give it a literal hue for a ramp that does not follow. Default: `oklch(from var(--accent) 0.553 0.031 h)`. */
|
|
59
63
|
neutral?: string | number;
|
|
60
64
|
/** `--success` - Positive status - its subtle, text and wash follow. Default: `oklch(0.548 0.122 152)`. */
|
|
61
65
|
success?: string | number;
|
|
@@ -89,15 +93,17 @@ export interface ShapeTokens {
|
|
|
89
93
|
}
|
|
90
94
|
/** The time bands. */
|
|
91
95
|
export interface MotionDurationTokens {
|
|
92
|
-
/** `--duration-fast` - micro feedback - hover washes, presses, control tint. Default: `140ms`. Collapses to `1ms` under reduced motion. */
|
|
96
|
+
/** `--duration-fast` - micro feedback - hover washes, presses, control tint, an exit. Default: `140ms`. Collapses to `1ms` under reduced motion. */
|
|
93
97
|
fast?: string | number;
|
|
94
|
-
/** `--duration-base` - standard element transitions - fades, toggles,
|
|
98
|
+
/** `--duration-base` - standard element transitions - fades, toggles, a pill gliding between rows. Default: `240ms`. Collapses to `1ms` under reduced motion. */
|
|
95
99
|
base?: string | number;
|
|
96
|
-
/** `--duration-
|
|
100
|
+
/** `--duration-moderate` - small layout movement - a fold opening, a reorder, a FLIP to a new place. Default: `320ms`. Collapses to `1ms` under reduced motion. */
|
|
101
|
+
moderate?: string | number;
|
|
102
|
+
/** `--duration-slow` - layout-scale movement - Collapse, panel resizes, a larger block arriving. Default: `420ms`. Collapses to `1ms` under reduced motion. */
|
|
97
103
|
slow?: string | number;
|
|
98
|
-
/** `--duration-slower` - large-surface movement - dialog, sheet, page
|
|
104
|
+
/** `--duration-slower` - large-surface movement - dialog, sheet, an element flying across the page. Default: `600ms`. Collapses to `1ms` under reduced motion. */
|
|
99
105
|
slower?: string | number;
|
|
100
|
-
/** `--duration-slowest` - hero-scale movement -
|
|
106
|
+
/** `--duration-slowest` - hero-scale movement - container morphs, slow cross-fades of a whole view. Default: `800ms`. Collapses to `1ms` under reduced motion. */
|
|
101
107
|
slowest?: string | number;
|
|
102
108
|
/** `--duration-spin` - continuous loaders only, outside the UI-transition scale. Default: `1000ms`. Collapses to `2000ms` under reduced motion. */
|
|
103
109
|
spin?: string | number;
|
|
@@ -106,16 +112,18 @@ export interface MotionDurationTokens {
|
|
|
106
112
|
}
|
|
107
113
|
/** The brand curves. */
|
|
108
114
|
export interface MotionEaseTokens {
|
|
109
|
-
/** `--ease-standard
|
|
115
|
+
/** `--ease-standard` - brisk start, soft landing - state changes and the press. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
|
|
110
116
|
standard?: string | number;
|
|
111
|
-
/** `--ease-entrance
|
|
117
|
+
/** `--ease-entrance` - hard deceleration - content arriving, a figure rolling. Default: `cubic-bezier(0.22, 1, 0.36, 1)`. */
|
|
112
118
|
entrance?: string | number;
|
|
113
|
-
/** `--ease-exit
|
|
119
|
+
/** `--ease-exit` - soft both ends - content leaving, a fade away. Default: `cubic-bezier(0.3, 0, 0.3, 1)`. */
|
|
114
120
|
exit?: string | number;
|
|
115
|
-
/** `--ease-spring
|
|
121
|
+
/** `--ease-spring` - overshoots then settles - a pop-in, a confirmation. Default: `cubic-bezier(0.3, 1.5, 0.5, 1)`. */
|
|
116
122
|
spring?: string | number;
|
|
117
|
-
/** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.
|
|
123
|
+
/** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.22, 1, 0.36, 1 )`. */
|
|
118
124
|
glide?: string | number;
|
|
125
|
+
/** `--ease-move` - gathers then lands - travel across space: a fold, a FLIP, a flight. Default: `cubic-bezier( 0.55, 0, 0.15, 1 )`. */
|
|
126
|
+
move?: string | number;
|
|
119
127
|
}
|
|
120
128
|
/** How far a surface travels on the way in or out. */
|
|
121
129
|
export interface MotionDistanceTokens {
|
|
@@ -264,8 +272,6 @@ export interface OdometerTokens {
|
|
|
264
272
|
gap?: string | number;
|
|
265
273
|
/** `--odometer-ink` - Digit ink. Default: `var(--text-strong)`. */
|
|
266
274
|
ink?: string | number;
|
|
267
|
-
/** `--odometer-accent` - The tint digits take while they roll fast. Default: `var(--accent)`. */
|
|
268
|
-
accent?: string | number;
|
|
269
275
|
/** `--odometer-separator-ink` - The thousands separator. Default: `var(--text-muted)`. */
|
|
270
276
|
separatorInk?: string | number;
|
|
271
277
|
/** `--odometer-size` - Digit size. Default: `var(--size-display)`. */
|
|
@@ -381,7 +387,7 @@ export interface ComponentTokens {
|
|
|
381
387
|
* `custom` in a theme and behind the `style` prop of every component.
|
|
382
388
|
*/
|
|
383
389
|
export interface TokenProperties {
|
|
384
|
-
/** `--accent` - The brand hue - hover, active, lift, subtle, border, wash, the focus ring and info follow. Default: `oklch(0.
|
|
390
|
+
/** `--accent` - The brand hue - hover, active, lift, subtle, border, wash, the focus ring and info follow. Default: `oklch(0.7 0.118 198)`. */
|
|
385
391
|
'--accent'?: string | number;
|
|
386
392
|
/** `--success` - Positive status - its subtle, text and wash follow. Default: `oklch(0.548 0.122 152)`. */
|
|
387
393
|
'--success'?: string | number;
|
|
@@ -389,7 +395,7 @@ export interface TokenProperties {
|
|
|
389
395
|
'--warning'?: string | number;
|
|
390
396
|
/** `--danger` - Destructive actions and errors - the danger button ladder, ring, subtle, text and wash follow. Default: `oklch(0.545 0.196 27)`. */
|
|
391
397
|
'--danger'?: string | number;
|
|
392
|
-
/** `--neutral` - The gray ramp's
|
|
398
|
+
/** `--neutral` - The middle of the gray ramp - every rung holds its hue distance from this one, so moving it retints the whole ramp. Stripe's gray-500 lightness and chroma over the accent's hue, so the grays carry the brand temperature; give it a literal hue for a ramp that does not follow. Default: `oklch(from var(--accent) 0.553 0.031 h)`. */
|
|
393
399
|
'--neutral'?: string | number;
|
|
394
400
|
/** `--radius` - Roundness - every --radius-<step> is a fixed ratio of it, 0 squaring every corner. Default: `0.5rem`. */
|
|
395
401
|
'--radius'?: string | number;
|
|
@@ -397,33 +403,33 @@ export interface TokenProperties {
|
|
|
397
403
|
'--font-body'?: string | number;
|
|
398
404
|
/** `--font-code` - The code face - --type-code follows. The package loads no webfont; point this at yours. Default: `ui-monospace, 'SF Mono', 'Menlo', monospace`. */
|
|
399
405
|
'--font-code'?: string | number;
|
|
400
|
-
/** `--gray-0` -
|
|
406
|
+
/** `--gray-0` - Stripe's neutral ramp, rung for rung: --neutral is its midpoint, and every step holds that hue's distance from it, so a new --neutral carries the whole ramp with it. The top rung is pure white - the only rung Stripe leaves untinted. Default: `oklch(from var(--neutral) 1 0 h)`. Re-derived on every theme root. */
|
|
401
407
|
'--gray-0'?: string | number;
|
|
402
|
-
/** `--gray-50`. Default: `oklch(from var(--neutral) 0.
|
|
408
|
+
/** `--gray-50`. Default: `oklch(from var(--neutral) 0.978 0.0034 calc(h - 12.4))`. Re-derived on every theme root. */
|
|
403
409
|
'--gray-50'?: string | number;
|
|
404
|
-
/** `--gray-100`. Default: `oklch(from var(--neutral) 0.
|
|
410
|
+
/** `--gray-100`. Default: `oklch(from var(--neutral) 0.948 0.0052 calc(h - 12.4))`. Re-derived on every theme root. */
|
|
405
411
|
'--gray-100'?: string | number;
|
|
406
|
-
/** `--gray-150`. Default: `oklch(from var(--neutral) 0.
|
|
412
|
+
/** `--gray-150`. Default: `oklch(from var(--neutral) 0.889 0.0105 calc(h - 12.3))`. Re-derived on every theme root. */
|
|
407
413
|
'--gray-150'?: string | number;
|
|
408
|
-
/** `--gray-200`. Default: `oklch(from var(--neutral) 0.
|
|
414
|
+
/** `--gray-200`. Default: `oklch(from var(--neutral) 0.83 0.0165 calc(h - 6.4))`. Re-derived on every theme root. */
|
|
409
415
|
'--gray-200'?: string | number;
|
|
410
|
-
/** `--gray-300`. Default: `oklch(from var(--neutral) 0.
|
|
416
|
+
/** `--gray-300`. Default: `oklch(from var(--neutral) 0.742 0.0226 calc(h - 1.1))`. Re-derived on every theme root. */
|
|
411
417
|
'--gray-300'?: string | number;
|
|
412
|
-
/** `--gray-400`. Default: `oklch(from var(--neutral) 0.
|
|
418
|
+
/** `--gray-400`. Default: `oklch(from var(--neutral) 0.651 0.0247 calc(h + 0.4))`. Re-derived on every theme root. */
|
|
413
419
|
'--gray-400'?: string | number;
|
|
414
|
-
/** `--gray-500`. Default: `oklch(from var(--neutral) 0.
|
|
420
|
+
/** `--gray-500`. Default: `oklch(from var(--neutral) 0.553 0.031 h)`. Re-derived on every theme root. */
|
|
415
421
|
'--gray-500'?: string | number;
|
|
416
|
-
/** `--gray-600`. Default: `oklch(from var(--neutral) 0.
|
|
422
|
+
/** `--gray-600`. Default: `oklch(from var(--neutral) 0.466 0.0267 calc(h + 11.4))`. Re-derived on every theme root. */
|
|
417
423
|
'--gray-600'?: string | number;
|
|
418
|
-
/** `--gray-700`. Default: `oklch(from var(--neutral) 0.
|
|
424
|
+
/** `--gray-700`. Default: `oklch(from var(--neutral) 0.392 0.0226 calc(h + 11.6))`. Re-derived on every theme root. */
|
|
419
425
|
'--gray-700'?: string | number;
|
|
420
|
-
/** `--gray-800`. Default: `oklch(from var(--neutral) 0.
|
|
426
|
+
/** `--gray-800`. Default: `oklch(from var(--neutral) 0.317 0.0214 calc(h + 21.1))`. Re-derived on every theme root. */
|
|
421
427
|
'--gray-800'?: string | number;
|
|
422
|
-
/** `--gray-900`. Default: `oklch(from var(--neutral) 0.
|
|
428
|
+
/** `--gray-900`. Default: `oklch(from var(--neutral) 0.226 0.0194 calc(h + 20))`. Re-derived on every theme root. */
|
|
423
429
|
'--gray-900'?: string | number;
|
|
424
|
-
/** `--gray-950`. Default: `oklch(from var(--neutral) 0.
|
|
430
|
+
/** `--gray-950`. Default: `oklch(from var(--neutral) 0.181 0.0185 calc(h + 19.2))`. Re-derived on every theme root. */
|
|
425
431
|
'--gray-950'?: string | number;
|
|
426
|
-
/** `--shadow-rgb` - Cool near-black on the white canvas. Default: `
|
|
432
|
+
/** `--shadow-rgb` - Cool near-black on the white canvas. Default: `16 17 26`. Dark: `0 0 0`. */
|
|
427
433
|
'--shadow-rgb'?: string | number;
|
|
428
434
|
/** `--weight-regular`. Default: `400`. */
|
|
429
435
|
'--weight-regular'?: string | number;
|
|
@@ -523,12 +529,16 @@ export interface TokenProperties {
|
|
|
523
529
|
'--space-10'?: string | number;
|
|
524
530
|
/** `--measure-prose`. Default: `38rem`. */
|
|
525
531
|
'--measure-prose'?: string | number;
|
|
526
|
-
/** `--control-height-
|
|
532
|
+
/** `--control-height-xs` - 28px - the dense step for toolbars; a control opts in to it. Default: `1.75rem`. */
|
|
533
|
+
'--control-height-xs'?: string | number;
|
|
534
|
+
/** `--control-height-sm` - 32px. Default: `2rem`. */
|
|
527
535
|
'--control-height-sm'?: string | number;
|
|
528
|
-
/** `--control-height
|
|
536
|
+
/** `--control-height` - 36px. Default: `2.25rem`. */
|
|
529
537
|
'--control-height'?: string | number;
|
|
530
|
-
/** `--control-height-lg
|
|
538
|
+
/** `--control-height-lg` - 40px. Default: `2.5rem`. */
|
|
531
539
|
'--control-height-lg'?: string | number;
|
|
540
|
+
/** `--control-height-xl` - 44px - the touch-target step; a control opts in to it. Default: `2.75rem`. */
|
|
541
|
+
'--control-height-xl'?: string | number;
|
|
532
542
|
/** `--control-box`. Default: `1.125rem`. */
|
|
533
543
|
'--control-box'?: string | number;
|
|
534
544
|
/** `--control-switch` - the switch track - the one control size off the scale. Default: `1.25rem`. */
|
|
@@ -607,30 +617,34 @@ export interface TokenProperties {
|
|
|
607
617
|
'--glow-accent'?: string | number;
|
|
608
618
|
/** `--glow-danger`. Default: `0 4px 16px oklch(from var(--danger) 0.602 0.196 h / calc(0.4 * var(--glow-strength)))`. Re-derived on every theme root. */
|
|
609
619
|
'--glow-danger'?: string | number;
|
|
610
|
-
/** `--duration-fast` - micro feedback - hover washes, presses, control tint. Default: `140ms`. Collapses to `1ms` under reduced motion. */
|
|
620
|
+
/** `--duration-fast` - micro feedback - hover washes, presses, control tint, an exit. Default: `140ms`. Collapses to `1ms` under reduced motion. */
|
|
611
621
|
'--duration-fast'?: string | number;
|
|
612
|
-
/** `--duration-base` - standard element transitions - fades, toggles,
|
|
622
|
+
/** `--duration-base` - standard element transitions - fades, toggles, a pill gliding between rows. Default: `240ms`. Collapses to `1ms` under reduced motion. */
|
|
613
623
|
'--duration-base'?: string | number;
|
|
614
|
-
/** `--duration-
|
|
624
|
+
/** `--duration-moderate` - small layout movement - a fold opening, a reorder, a FLIP to a new place. Default: `320ms`. Collapses to `1ms` under reduced motion. */
|
|
625
|
+
'--duration-moderate'?: string | number;
|
|
626
|
+
/** `--duration-slow` - layout-scale movement - Collapse, panel resizes, a larger block arriving. Default: `420ms`. Collapses to `1ms` under reduced motion. */
|
|
615
627
|
'--duration-slow'?: string | number;
|
|
616
|
-
/** `--duration-slower` - large-surface movement - dialog, sheet, page
|
|
628
|
+
/** `--duration-slower` - large-surface movement - dialog, sheet, an element flying across the page. Default: `600ms`. Collapses to `1ms` under reduced motion. */
|
|
617
629
|
'--duration-slower'?: string | number;
|
|
618
|
-
/** `--duration-slowest` - hero-scale movement -
|
|
630
|
+
/** `--duration-slowest` - hero-scale movement - container morphs, slow cross-fades of a whole view. Default: `800ms`. Collapses to `1ms` under reduced motion. */
|
|
619
631
|
'--duration-slowest'?: string | number;
|
|
620
632
|
/** `--duration-spin` - continuous loaders only, outside the UI-transition scale. Default: `1000ms`. Collapses to `2000ms` under reduced motion. */
|
|
621
633
|
'--duration-spin'?: string | number;
|
|
622
634
|
/** `--duration-pulse` - ambient breathing, not collapsed under reduced motion. Default: `1600ms`. */
|
|
623
635
|
'--duration-pulse'?: string | number;
|
|
624
|
-
/** `--ease-standard
|
|
636
|
+
/** `--ease-standard` - brisk start, soft landing - state changes and the press. Default: `cubic-bezier(0.2, 0, 0, 1)`. */
|
|
625
637
|
'--ease-standard'?: string | number;
|
|
626
|
-
/** `--ease-entrance
|
|
638
|
+
/** `--ease-entrance` - hard deceleration - content arriving, a figure rolling. Default: `cubic-bezier(0.22, 1, 0.36, 1)`. */
|
|
627
639
|
'--ease-entrance'?: string | number;
|
|
628
|
-
/** `--ease-exit
|
|
640
|
+
/** `--ease-exit` - soft both ends - content leaving, a fade away. Default: `cubic-bezier(0.3, 0, 0.3, 1)`. */
|
|
629
641
|
'--ease-exit'?: string | number;
|
|
630
|
-
/** `--ease-spring
|
|
642
|
+
/** `--ease-spring` - overshoots then settles - a pop-in, a confirmation. Default: `cubic-bezier(0.3, 1.5, 0.5, 1)`. */
|
|
631
643
|
'--ease-spring'?: string | number;
|
|
632
|
-
/** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.
|
|
644
|
+
/** `--ease-glide` - fast out, soft landing - a persistent element moving to a new target, never enter/exit. Default: `cubic-bezier( 0.22, 1, 0.36, 1 )`. */
|
|
633
645
|
'--ease-glide'?: string | number;
|
|
646
|
+
/** `--ease-move` - gathers then lands - travel across space: a fold, a FLIP, a flight. Default: `cubic-bezier( 0.55, 0, 0.15, 1 )`. */
|
|
647
|
+
'--ease-move'?: string | number;
|
|
634
648
|
/** `--distance-sm` - 8px - settling into place. Default: `0.5rem`. */
|
|
635
649
|
'--distance-sm'?: string | number;
|
|
636
650
|
/** `--distance-md` - 16px - arriving from an adjacent position - page turns, tab panels, paged ranges. Default: `1rem`. */
|
|
@@ -695,12 +709,16 @@ export interface TokenProperties {
|
|
|
695
709
|
'--text-disabled'?: string | number;
|
|
696
710
|
/** `--text-inverse` - The ink on a strong-ink fill - the canvas colour in either polarity. Default: `var(--gray-0)`. Dark: `oklch(from var(--neutral) 0.165 0.006 h)`. */
|
|
697
711
|
'--text-inverse'?: string | number;
|
|
698
|
-
/** `--border-subtle
|
|
712
|
+
/** `--border-subtle` - One rung lighter than the ink roles: Stripe hangs its hairline on gray-150, not gray-200. Default: `var(--gray-100)`. Dark: `oklch(from var(--neutral) 0.265 0.008 h)`. */
|
|
699
713
|
'--border-subtle'?: string | number;
|
|
700
|
-
/** `--border-default`. Default: `var(--gray-
|
|
714
|
+
/** `--border-default`. Default: `var(--gray-150)`. Dark: `oklch(from var(--neutral) 0.315 0.009 h)`. */
|
|
701
715
|
'--border-default'?: string | number;
|
|
702
|
-
/** `--border-strong`. Default: `var(--gray-
|
|
716
|
+
/** `--border-strong`. Default: `var(--gray-200)`. Dark: `oklch(from var(--neutral) 0.4 0.011 h)`. */
|
|
703
717
|
'--border-strong'?: string | number;
|
|
718
|
+
/** `--bg-hover` - Stripe's slate rung at the alpha that lands its hover face exactly on the canvas: translucent, so a tinted surface still shows through instead of being covered. Held at the ramp's distance from --neutral, so a retint carries the hover with it. Default: `oklch(from var(--neutral) 0.896 0.0186 calc(h - 9.7) / 0.246)`. Dark: `color-mix(in oklab, var(--text-secondary) 6%, transparent)`. */
|
|
719
|
+
'--bg-hover'?: string | number;
|
|
720
|
+
/** `--bg-press`. Default: `oklch(from var(--neutral) 0.896 0.0186 calc(h - 9.7) / 0.291)`. Dark: `color-mix(in oklab, var(--text-secondary) 10%, transparent)`. */
|
|
721
|
+
'--bg-press'?: string | number;
|
|
704
722
|
/** `--accent-fill` - The resting face of a filled control. Default: `var(--accent)`. Dark: `oklch(from var(--accent) calc(l - 0.06) calc(c - 0.01) h)`. Re-derived on every theme root. */
|
|
705
723
|
'--accent-fill'?: string | number;
|
|
706
724
|
/** `--accent-lift`. Default: `oklch(from var(--accent) calc(l + 0.075) calc(c - 0.006) h)`. Re-derived on every theme root. */
|
|
@@ -709,29 +727,29 @@ export interface TokenProperties {
|
|
|
709
727
|
'--accent-hover'?: string | number;
|
|
710
728
|
/** `--accent-active`. Default: `oklch(from var(--accent) calc(l - 0.152) calc(c - 0.018) h)`. Re-derived on every theme root. */
|
|
711
729
|
'--accent-active'?: string | number;
|
|
712
|
-
/** `--accent-subtle`. Default: `oklch(from var(--accent) 0.972 0.02 h)`. Dark: `oklch(from var(--accent) 0.27 0.045 h)`. Re-derived on every theme root. */
|
|
730
|
+
/** `--accent-subtle`. Default: `oklch(from var(--accent) 0.972 min(c, 0.02) h)`. Dark: `oklch(from var(--accent) 0.27 min(c, 0.045) h)`. Re-derived on every theme root. */
|
|
713
731
|
'--accent-subtle'?: string | number;
|
|
714
|
-
/** `--accent-border`. Default: `oklch(from var(--accent) 0.88 0.066 h)`. Dark: `oklch(from var(--accent) 0.45 0.09 h)`. Re-derived on every theme root. */
|
|
732
|
+
/** `--accent-border`. Default: `oklch(from var(--accent) 0.88 min(c, 0.066) h)`. Dark: `oklch(from var(--accent) 0.45 min(c, 0.09) h)`. Re-derived on every theme root. */
|
|
715
733
|
'--accent-border'?: string | number;
|
|
716
|
-
/** `--accent-disabled`. Default: `oklch(from var(--accent) 0.795 0.092 h)`. Dark: `oklch(from var(--accent) 0.42 0.06 h)`. Re-derived on every theme root. */
|
|
734
|
+
/** `--accent-disabled`. Default: `oklch(from var(--accent) 0.795 min(c, 0.092) h)`. Dark: `oklch(from var(--accent) 0.42 min(c, 0.06) h)`. Re-derived on every theme root. */
|
|
717
735
|
'--accent-disabled'?: string | number;
|
|
718
736
|
/** `--accent-wash`. Default: `oklch(from var(--accent) l c h / 0.08)`. Dark: `oklch(from var(--accent) l c h / 0.14)`. Re-derived on every theme root. */
|
|
719
737
|
'--accent-wash'?: string | number;
|
|
720
|
-
/** `--text-accent`. Default: `var(--accent-
|
|
738
|
+
/** `--text-accent`. Default: `oklch(from var(--accent) calc(l - 0.17) calc(c - 0.018) h)`. Dark: `oklch(from var(--accent) calc(l + 0.14) calc(c - 0.012) h)`. Re-derived on every theme root. */
|
|
721
739
|
'--text-accent'?: string | number;
|
|
722
740
|
/** `--text-on-accent` - The ink on a hue fill - the ramp's lightest rung in either polarity. Default: `var(--gray-0)`. Re-derived on every theme root. */
|
|
723
741
|
'--text-on-accent'?: string | number;
|
|
724
|
-
/** `--neutral-wash
|
|
742
|
+
/** `--neutral-wash`. Default: `var(--bg-hover)`. Re-derived on every theme root. */
|
|
725
743
|
'--neutral-wash'?: string | number;
|
|
726
|
-
/** `--neutral-wash-press`. Default: `
|
|
744
|
+
/** `--neutral-wash-press`. Default: `var(--bg-press)`. Re-derived on every theme root. */
|
|
727
745
|
'--neutral-wash-press'?: string | number;
|
|
728
746
|
/** `--info` - The accent's hue one step down - repoint it for a hue of its own. Default: `var(--accent-hover)`. Re-derived on every theme root. */
|
|
729
747
|
'--info'?: string | number;
|
|
730
|
-
/** `--info-subtle`. Default: `oklch(from var(--info) 0.972 0.02 h)`. Dark: `oklch(from var(--info) 0.265 0.045 h)`. Re-derived on every theme root. */
|
|
748
|
+
/** `--info-subtle`. Default: `oklch(from var(--info) 0.972 min(c, 0.02) h)`. Dark: `oklch(from var(--info) 0.265 min(c, 0.045) h)`. Re-derived on every theme root. */
|
|
731
749
|
'--info-subtle'?: string | number;
|
|
732
|
-
/** `--info-text`. Default: `oklch(from var(--info) calc(l - 0.
|
|
750
|
+
/** `--info-text`. Default: `oklch(from var(--info) calc(l - 0.1) calc(c - 0.014) h)`. Dark: `oklch(from var(--info) calc(l + 0.22) calc(c - 0.014) h)`. Re-derived on every theme root. */
|
|
733
751
|
'--info-text'?: string | number;
|
|
734
|
-
/** `--info-wash`. Default: `oklch(from var(--info) 0.63 0.118 h / 0.08)`. Dark: `oklch(from var(--info) 0.63 0.118 h / 0.14)`. Re-derived on every theme root. */
|
|
752
|
+
/** `--info-wash`. Default: `oklch(from var(--info) 0.63 min(c, 0.118) h / 0.08)`. Dark: `oklch(from var(--info) 0.63 min(c, 0.118) h / 0.14)`. Re-derived on every theme root. */
|
|
735
753
|
'--info-wash'?: string | number;
|
|
736
754
|
/** `--success-subtle`. Default: `oklch(from var(--success) 0.965 0.028 h)`. Dark: `oklch(from var(--success) 0.265 0.05 h)`. Re-derived on every theme root. */
|
|
737
755
|
'--success-subtle'?: string | number;
|
|
@@ -741,7 +759,7 @@ export interface TokenProperties {
|
|
|
741
759
|
'--success-wash'?: string | number;
|
|
742
760
|
/** `--warning-subtle`. Default: `oklch(from var(--warning) 0.972 0.034 h)`. Dark: `oklch(from var(--warning) 0.27 0.05 h)`. Re-derived on every theme root. */
|
|
743
761
|
'--warning-subtle'?: string | number;
|
|
744
|
-
/** `--warning-text`. Default: `oklch(from var(--warning) calc(l - 0.
|
|
762
|
+
/** `--warning-text`. Default: `oklch(from var(--warning) calc(l - 0.16) calc(c - 0.024) h)`. Dark: `oklch(from var(--warning) calc(l + 0.13) calc(c - 0.02) h)`. Re-derived on every theme root. */
|
|
745
763
|
'--warning-text'?: string | number;
|
|
746
764
|
/** `--warning-wash`. Default: `oklch(from var(--warning) 0.76 0.14 h / 0.12)`. Dark: `oklch(from var(--warning) 0.76 0.14 h / 0.18)`. Re-derived on every theme root. */
|
|
747
765
|
'--warning-wash'?: string | number;
|
|
@@ -3,7 +3,7 @@ import { type PolarityPreference } from './theme-store';
|
|
|
3
3
|
import { type ThemeSet, type ThemeTokens } from './theme-tokens.generated';
|
|
4
4
|
export type * from './theme-tokens.generated';
|
|
5
5
|
export type { ThemeTransitionEffect, ThemeTransitionOptions, ThemeTransitionSetting, } from '../components/expressive/theme-transition/theme-transition';
|
|
6
|
-
export type { Polarity, PolarityPreference, ThemeControls, ThemeState } from './theme-store';
|
|
6
|
+
export type { Polarity, PolarityPreference, ThemeControls, ThemePreferenceOptions, ThemeState } from './theme-store';
|
|
7
7
|
export { useTheme } from './theme-sync';
|
|
8
8
|
export interface ZyncatThemeProps {
|
|
9
9
|
/**
|
package/dist/typing-lines.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
'use client';import { loop } from './chunk-
|
|
1
|
+
'use client';import { loop } from './chunk-TFC5SCAB.js';
|
|
2
2
|
import './chunk-VNVVG47J.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-WJEZWKEY.js';
|
|
4
4
|
import { cx } from './chunk-QGNC7LH5.js';
|
|
5
5
|
import './typing-lines.css';
|
|
6
6
|
import { useRef, useEffect } from 'react';
|
package/dist/youtube.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use client';import {
|
|
1
|
+
'use client';import { useControllable } from './chunk-MMRIQNEN.js';
|
|
2
|
+
import { startDrag } from './chunk-TFC5SCAB.js';
|
|
2
3
|
import './chunk-VNVVG47J.js';
|
|
3
|
-
import
|
|
4
|
-
import './chunk-6H3IJ752.js';
|
|
4
|
+
import './chunk-WJEZWKEY.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zyncat/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
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.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -57,16 +57,6 @@
|
|
|
57
57
|
"types": "./dist/types/components/primitives/badge/Badge.d.ts",
|
|
58
58
|
"import": "./dist/badge.js"
|
|
59
59
|
},
|
|
60
|
-
"./status-badge": {
|
|
61
|
-
"source": "./src/components/primitives/badge/StatusBadge.tsx",
|
|
62
|
-
"types": "./dist/types/components/primitives/badge/StatusBadge.d.ts",
|
|
63
|
-
"import": "./dist/status-badge.js"
|
|
64
|
-
},
|
|
65
|
-
"./count-badge": {
|
|
66
|
-
"source": "./src/components/primitives/badge/CountBadge.tsx",
|
|
67
|
-
"types": "./dist/types/components/primitives/badge/CountBadge.d.ts",
|
|
68
|
-
"import": "./dist/count-badge.js"
|
|
69
|
-
},
|
|
70
60
|
"./avatar": {
|
|
71
61
|
"source": "./src/components/primitives/avatar/Avatar.tsx",
|
|
72
62
|
"types": "./dist/types/components/primitives/avatar/Avatar.d.ts",
|
|
@@ -312,6 +302,21 @@
|
|
|
312
302
|
"types": "./dist/types/components/primitives/spinner/Spinner.d.ts",
|
|
313
303
|
"import": "./dist/spinner.js"
|
|
314
304
|
},
|
|
305
|
+
"./motion": {
|
|
306
|
+
"source": "./src/motion/motion.ts",
|
|
307
|
+
"types": "./dist/types/motion/motion.d.ts",
|
|
308
|
+
"import": "./dist/motion.js"
|
|
309
|
+
},
|
|
310
|
+
"./scroll-area": {
|
|
311
|
+
"source": "./src/components/composites/scroll-area/ScrollArea.tsx",
|
|
312
|
+
"types": "./dist/types/components/composites/scroll-area/ScrollArea.d.ts",
|
|
313
|
+
"import": "./dist/scroll-area.js"
|
|
314
|
+
},
|
|
315
|
+
"./combobox": {
|
|
316
|
+
"source": "./src/components/composites/combobox/Combobox.tsx",
|
|
317
|
+
"types": "./dist/types/components/composites/combobox/Combobox.d.ts",
|
|
318
|
+
"import": "./dist/combobox.js"
|
|
319
|
+
},
|
|
315
320
|
"./styles.css": "./src/styles.css",
|
|
316
321
|
"./tailwind.css": "./tailwind.css",
|
|
317
322
|
"./next": {
|
|
@@ -12,11 +12,11 @@ No Tailwind, no CSS-in-JS, no animation library - a built-in WAAPI motion engine
|
|
|
12
12
|
|
|
13
13
|
1. **Never write a component's props from memory or from this skill.** Before writing any JSX that
|
|
14
14
|
renders a Zyncat UI component, call the `get_component` MCP tool with EVERY component the change
|
|
15
|
-
touches, in one call: `get_component(["select", "text-field", "dialog"])`. It
|
|
16
|
-
maintainers' usage notes, the live docs URL and the complete prop types for the version
|
|
17
|
-
installed. An unknown name returns the
|
|
18
|
-
2. Unsure which component owns a behavior? `search_api("drag dismiss")` - ranked
|
|
19
|
-
|
|
15
|
+
touches, in one call: `get_component({ components: ["select", "text-field", "dialog"] })`. It
|
|
16
|
+
returns the maintainers' usage notes, the live docs URL and the complete prop types for the version
|
|
17
|
+
actually installed. An unknown name returns the nearest components, so a wrong guess self-corrects.
|
|
18
|
+
2. Unsure which component owns a behavior? `search_api("drag dismiss")` - ranked; `search_api("*")`
|
|
19
|
+
lists the whole catalog.
|
|
20
20
|
3. Styling or theming? Read [references/theming.md](references/theming.md) first, then `get_tokens`
|
|
21
21
|
for the real values.
|
|
22
22
|
4. Full component inventory: [references/components.md](references/components.md) - generated, and
|
|
@@ -61,9 +61,9 @@ overlays & feedback, expressive, compound, replicas, dev tools. The full index i
|
|
|
61
61
|
| Transient hint on hover/focus | **Tooltip** |
|
|
62
62
|
| Persistent in-flow status | **Alert** |
|
|
63
63
|
| Transient notification | **toast()** - needs `<Toaster />` mounted once |
|
|
64
|
-
| Ambient status chip | **Badge**
|
|
64
|
+
| Ambient status chip | **Badge** - one `value`, animated whenever it changes |
|
|
65
65
|
| User-owned removable label | **Tag** |
|
|
66
|
-
| Rolling number | **
|
|
66
|
+
| Rolling number | **Badge** with a numeric `value` (inline) / **Odometer** (display size) |
|
|
67
67
|
| Persistent support entry point | **SupportRail** (edge tab) |
|
|
68
68
|
| Social post mock | **InstagramFeed / FacebookFeed / TikTok / YouTube** - pixel-pinned replicas, unthemeable by design |
|
|
69
69
|
|
|
@@ -71,7 +71,7 @@ overlays & feedback, expressive, compound, replicas, dev tools. The full index i
|
|
|
71
71
|
|
|
72
72
|
- Sentence case everywhere; no emoji or exclamation marks in UI copy.
|
|
73
73
|
- Exactly one primary `<Button>` per view.
|
|
74
|
-
- Numbers, times, IDs and status read
|
|
74
|
+
- Numbers, times, IDs and status read in the body face with tabular figures; the code face is for code only.
|
|
75
75
|
- Status hues (info/success/warning/danger) only for genuine status; hierarchy comes from the
|
|
76
76
|
neutral ramp.
|
|
77
77
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @zyncat/ui component index
|
|
2
2
|
|
|
3
|
-
Generated from @zyncat/ui v0.
|
|
3
|
+
Generated from @zyncat/ui v0.22.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
|
|
|
@@ -10,11 +10,10 @@ Call get_component (it accepts a list) before writing any JSX.
|
|
|
10
10
|
== Primitives ==
|
|
11
11
|
Button - @zyncat/ui/button - One control for every click; exactly one primary per view.
|
|
12
12
|
Collapse - @zyncat/ui/collapse - Layout-transition primitive; eases height open/closed, never teleports.
|
|
13
|
-
Badge - @zyncat/ui/badge -
|
|
14
|
-
StatusBadge - @zyncat/ui/status-badge - Canonical post status - tone + one-word label.
|
|
15
|
-
CountBadge - @zyncat/ui/count-badge - Mono tabular count; `roll` animates digits like an odometer.
|
|
13
|
+
Badge - @zyncat/ui/badge - Soft, glass or outline chip for ambient status - a label, a status or a count.
|
|
16
14
|
Glide / GlidePill - @zyncat/ui/glide - A persistent background pill that glides smoothly between hovered/active elements.
|
|
17
15
|
Spinner - @zyncat/ui/spinner - Indeterminate loader; three looks, no JavaScript, no layout of its own.
|
|
16
|
+
Motion / Presence - @zyncat/ui/motion - The React layer over the engine: animate an element you render, and hold a leaving one mounted until its exit finishes.
|
|
18
17
|
|
|
19
18
|
== Forms ==
|
|
20
19
|
Every form field takes label, helper/error/warning/success, size sm|md|lg, disabled.
|
|
@@ -27,6 +26,7 @@ Toggle - @zyncat/ui/toggle - Actuates a setting on the spot - pick Checkbox when
|
|
|
27
26
|
RadioGroup - @zyncat/ui/radio-group - Pick exactly one from options that stay visible - rows or cards; pick Select for long lists.
|
|
28
27
|
Select - @zyncat/ui/select - Single-select listbox in a popover, searchable; holds value: string | null.
|
|
29
28
|
MultiSelect - @zyncat/ui/multi-select - Many-of listbox; stays open while toggling, trigger summarises as first +N.
|
|
29
|
+
Combobox - @zyncat/ui/combobox - Autocomplete for a text field you own - @mentions, slash commands, or the whole value. A pick only writes text: unlike Select, the value is whatever the field holds.
|
|
30
30
|
|
|
31
31
|
== Data display ==
|
|
32
32
|
Avatar - @zyncat/ui/avatar - Identity mark: image, initials, or silhouette.
|
|
@@ -35,6 +35,7 @@ Tag / TagGroup - @zyncat/ui/tag - User-owned label (a control, not a status).
|
|
|
35
35
|
ToggleTag - @zyncat/ui/toggle-tag - Many-of-many filter chip.
|
|
36
36
|
Table - @zyncat/ui/table - Declare columns + rows; owns sort, selection, stickiness, overflow.
|
|
37
37
|
Pagination - @zyncat/ui/pagination - Cursor strip: mono range readout + prev/next pair.
|
|
38
|
+
ScrollArea - @zyncat/ui/scroll-area - One-axis scroller with no scrollbar: an edge fades only while content hides past it, and an x rail pages from its edges - keep overflow: auto for a visible bar or two axes.
|
|
38
39
|
|
|
39
40
|
== Date, time & tabs ==
|
|
40
41
|
The date and time fields share: value is a string, onChange(value | null), timezone, min/max, disabled.
|
|
@@ -85,4 +86,4 @@ MotionDevtools - @zyncat/ui/motion-devtools - Dev-only floating panel that slows
|
|
|
85
86
|
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.
|
|
86
87
|
|
|
87
88
|
== Types-only modules (documented by their .d.ts alone) ==
|
|
88
|
-
@zyncat/ui/next - get_component("next")
|
|
89
|
+
@zyncat/ui/next - get_component({ components: "next" })
|
|
@@ -157,7 +157,7 @@ import { Dropdown } from '@zyncat/ui/dropdown';
|
|
|
157
157
|
<Dropdown
|
|
158
158
|
ariaLabel="Row actions"
|
|
159
159
|
trigger={
|
|
160
|
-
<Button size="
|
|
160
|
+
<Button size="sm" iconOnly variant="ghost" aria-label="Actions">
|
|
161
161
|
…
|
|
162
162
|
</Button>
|
|
163
163
|
}
|
|
@@ -72,7 +72,7 @@ import { defineTheme, ZyncatTheme } from '@zyncat/ui/theme';
|
|
|
72
72
|
const light = defineTheme({
|
|
73
73
|
color: { accent: 'oklch(0.58 0.19 292)' },
|
|
74
74
|
shape: { radius: '0.75rem' },
|
|
75
|
-
components: { odometer: {
|
|
75
|
+
components: { odometer: { ink: 'var(--warning)' } },
|
|
76
76
|
});
|
|
77
77
|
const dark = defineTheme({ color: { accent: 'oklch(0.72 0.14 292)' }, custom: { '--shadow-strength': 2.5 } });
|
|
78
78
|
|
|
@@ -102,14 +102,14 @@ your own scrollers `scroll-padding: var(--ring-width)` and anything flush with a
|
|
|
102
102
|
## Level 2 - retune one component
|
|
103
103
|
|
|
104
104
|
Expressive and compound components publish scoped `--<component>-<name>` properties as their public
|
|
105
|
-
contract, each with a doc line: `--odometer-size/-
|
|
105
|
+
contract, each with a doc line: `--odometer-size/-ink/-gap`, `--typing-lines-caret-ink/-blink`,
|
|
106
106
|
`--lens-surface/-fringe-warm`, `--morphing-text-size/-smear`, `--weight-field-peak-weight/-hover-padding`,
|
|
107
107
|
`--flow-field-ramp-0..11`, `--confetti-paper-1..5`, `--support-rail-width/-accent/-row-pad-block`. Set
|
|
108
108
|
them on any ancestor or inline via `style`. The canvas simulations sample theirs at their next measure -
|
|
109
109
|
FlowField on resize and on a theme attribute change, Confetti on the next `fire()`.
|
|
110
110
|
|
|
111
111
|
Both reaches are typed. In a theme they are `components`, grouped like the theme:
|
|
112
|
-
`components.odometer.
|
|
112
|
+
`components.odometer.ink` is `--odometer-ink`, `components.typingLines.caret.ink` is
|
|
113
113
|
`--typing-lines-caret-ink`, `components.confetti.paper[3]` is `--confetti-paper-3`. On one instance
|
|
114
114
|
they are the component's own `style` prop, which accepts the design tokens plus that component's knobs
|
|
115
115
|
and nothing from another component - `<Odometer style={{ '--odometer-size': '3rem' }} />`.
|