@zyncat/ui 0.13.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -157
- package/dist/alert.css +27 -34
- package/dist/alert.js +26 -17
- package/dist/alert.js.map +1 -1
- package/dist/avatar-group.js +2 -2
- package/dist/avatar-group.js.map +1 -1
- package/dist/avatar.css +53 -51
- package/dist/avatar.js +29 -7
- package/dist/avatar.js.map +1 -1
- package/dist/badge.css +31 -37
- package/dist/badge.js +1 -1
- package/dist/bloom-HV23M4AW.js +81 -0
- package/dist/bloom-HV23M4AW.js.map +1 -0
- package/dist/button.css +99 -118
- package/dist/button.js +3 -1
- package/dist/checkbox.css +28 -33
- package/dist/checkbox.js +2 -2
- package/dist/chunk-2YGHPQ66.js +16 -0
- package/dist/chunk-2YGHPQ66.js.map +1 -0
- package/dist/chunk-3MLUH2QL.js +53 -0
- package/dist/chunk-3MLUH2QL.js.map +1 -0
- package/dist/{chunk-RJFGWJ4W.js → chunk-3XRVPCIM.js} +6 -6
- package/dist/chunk-3XRVPCIM.js.map +1 -0
- package/dist/{chunk-FONOS5RN.js → chunk-4PQDVK23.js} +11 -10
- package/dist/chunk-4PQDVK23.js.map +1 -0
- package/dist/{chunk-45R4Z5XN.js → chunk-5VC3TUZ2.js} +4 -4
- package/dist/{chunk-45R4Z5XN.js.map → chunk-5VC3TUZ2.js.map} +1 -1
- package/dist/{chunk-A5WTZACK.js → chunk-5W5TKANX.js} +3 -3
- package/dist/{chunk-A5WTZACK.js.map → chunk-5W5TKANX.js.map} +1 -1
- package/dist/{chunk-227ZW4V7.js → chunk-6IXLW7QA.js} +11 -11
- package/dist/chunk-6IXLW7QA.js.map +1 -0
- package/dist/chunk-7NHY2CRA.js +132 -0
- package/dist/chunk-7NHY2CRA.js.map +1 -0
- package/dist/{chunk-EF6RPXU7.js → chunk-7VTWJL72.js} +43 -35
- package/dist/chunk-7VTWJL72.js.map +1 -0
- package/dist/chunk-7ZSIUUC3.js +50 -0
- package/dist/chunk-7ZSIUUC3.js.map +1 -0
- package/dist/{chunk-TYHR4VNM.js → chunk-AREEMG47.js} +10 -8
- package/dist/chunk-AREEMG47.js.map +1 -0
- package/dist/{chunk-DDRSMHN4.js → chunk-DH7DT6EO.js} +3 -3
- package/dist/{chunk-DDRSMHN4.js.map → chunk-DH7DT6EO.js.map} +1 -1
- package/dist/chunk-EOWWVFBF.js +14 -0
- package/dist/chunk-EOWWVFBF.js.map +1 -0
- package/dist/{chunk-5PZ43DCG.js → chunk-FLDIRXFU.js} +12 -13
- package/dist/chunk-FLDIRXFU.js.map +1 -0
- package/dist/{chunk-I45AU6KH.js → chunk-GGDAMIBH.js} +13 -7
- package/dist/chunk-GGDAMIBH.js.map +1 -0
- package/dist/{chunk-M43IOM5C.js → chunk-GWCBTD63.js} +3 -3
- package/dist/{chunk-M43IOM5C.js.map → chunk-GWCBTD63.js.map} +1 -1
- package/dist/chunk-GZ6UMHCK.js +103 -0
- package/dist/chunk-GZ6UMHCK.js.map +1 -0
- package/dist/chunk-H3X2263Y.js +17 -0
- package/dist/chunk-H3X2263Y.js.map +1 -0
- package/dist/{chunk-IJS7TPGV.js → chunk-HWDIVGME.js} +14 -7
- package/dist/chunk-HWDIVGME.js.map +1 -0
- package/dist/chunk-KSAJ6DED.js +16 -0
- package/dist/chunk-KSAJ6DED.js.map +1 -0
- package/dist/chunk-LH2UIEKN.js +42 -0
- package/dist/chunk-LH2UIEKN.js.map +1 -0
- package/dist/{chunk-JY6A2ZJZ.js → chunk-LNAV5E7S.js} +2 -2
- package/dist/{chunk-JY6A2ZJZ.js.map → chunk-LNAV5E7S.js.map} +1 -1
- package/dist/{chunk-CF4QHO4N.js → chunk-M2A6PZ7J.js} +10 -10
- package/dist/{chunk-CF4QHO4N.js.map → chunk-M2A6PZ7J.js.map} +1 -1
- package/dist/chunk-NYQQH4R5.js +40 -0
- package/dist/chunk-NYQQH4R5.js.map +1 -0
- package/dist/{chunk-TVYH4AN7.js → chunk-ODRO3KS6.js} +13 -13
- package/dist/chunk-ODRO3KS6.js.map +1 -0
- package/dist/chunk-PU3QWBEL.js +39 -0
- package/dist/chunk-PU3QWBEL.js.map +1 -0
- package/dist/{chunk-4BSHB7R3.js → chunk-QDAN43B6.js} +9 -9
- package/dist/chunk-QDAN43B6.js.map +1 -0
- package/dist/{chunk-XNIYSAMJ.js → chunk-RW2A4M2Q.js} +14 -9
- package/dist/chunk-RW2A4M2Q.js.map +1 -0
- package/dist/{chunk-TUTXXC3W.js → chunk-RY35IU3G.js} +3 -3
- package/dist/{chunk-TUTXXC3W.js.map → chunk-RY35IU3G.js.map} +1 -1
- package/dist/{chunk-EAI4POPB.js → chunk-TBLPZQSI.js} +56 -50
- package/dist/chunk-TBLPZQSI.js.map +1 -0
- package/dist/{chunk-AADAJL7D.js → chunk-UKPX3RIP.js} +8 -9
- package/dist/chunk-UKPX3RIP.js.map +1 -0
- package/dist/chunk-VDOBLABP.js +38 -0
- package/dist/chunk-VDOBLABP.js.map +1 -0
- package/dist/chunk-VNVVG47J.js +12 -0
- package/dist/chunk-VNVVG47J.js.map +1 -0
- package/dist/{chunk-4C5RZXBT.js → chunk-VZXML7EH.js} +8 -8
- package/dist/chunk-VZXML7EH.js.map +1 -0
- package/dist/{chunk-43M6GQ4Q.js → chunk-WC45VSST.js} +51 -32
- package/dist/chunk-WC45VSST.js.map +1 -0
- package/dist/{chunk-3MPF7FZV.js → chunk-WCWV5IX6.js} +3 -3
- package/dist/{chunk-3MPF7FZV.js.map → chunk-WCWV5IX6.js.map} +1 -1
- package/dist/chunk-WQKWPI6V.js +196 -0
- package/dist/chunk-WQKWPI6V.js.map +1 -0
- package/dist/{chunk-VAXCXZ53.js → chunk-WZUTBJC4.js} +5 -4
- package/dist/chunk-WZUTBJC4.js.map +1 -0
- package/dist/chunk-ZHMOH62S.js +101 -0
- package/dist/chunk-ZHMOH62S.js.map +1 -0
- package/dist/cli.js +356 -28
- package/dist/collapse.css +21 -33
- package/dist/collapse.js +1 -1
- package/dist/confetti.css +20 -13
- package/dist/confetti.js +7 -6
- package/dist/confetti.js.map +1 -1
- package/dist/count-badge.js +2 -2
- package/dist/date-field.js +22 -19
- package/dist/date-field.js.map +1 -1
- package/dist/date-picker.css +287 -185
- package/dist/date-range-field.js +75 -59
- package/dist/date-range-field.js.map +1 -1
- package/dist/datetime-field.js +26 -23
- package/dist/datetime-field.js.map +1 -1
- package/dist/dialog.css +35 -44
- package/dist/dialog.js +23 -22
- package/dist/dialog.js.map +1 -1
- package/dist/digit-strip.css +17 -17
- package/dist/dropdown.css +37 -28
- package/dist/dropdown.js +77 -40
- package/dist/dropdown.js.map +1 -1
- package/dist/emoji-picker.js +44 -45
- package/dist/emoji-picker.js.map +1 -1
- package/dist/facebook-feed.css +146 -149
- package/dist/facebook-feed.js +106 -102
- package/dist/facebook-feed.js.map +1 -1
- package/dist/flow-field.css +9 -5
- package/dist/flow-field.js +8 -7
- package/dist/flow-field.js.map +1 -1
- package/dist/glide.js +4 -3
- package/dist/icon.css +8 -11
- package/dist/input.css +81 -86
- package/dist/instagram-feed.css +66 -67
- package/dist/instagram-feed.js +61 -44
- package/dist/instagram-feed.js.map +1 -1
- package/dist/lens.css +42 -39
- package/dist/lens.js +17 -16
- package/dist/lens.js.map +1 -1
- package/dist/mcp.js +4 -3
- package/dist/menu-surface.css +55 -35
- package/dist/modal.css +3 -5
- package/dist/modal.js +12 -11
- package/dist/modal.js.map +1 -1
- package/dist/morphing-text.css +27 -17
- package/dist/morphing-text.js +14 -13
- package/dist/morphing-text.js.map +1 -1
- package/dist/motion-devtools.css +118 -69
- package/dist/motion-devtools.js +230 -65
- package/dist/motion-devtools.js.map +1 -1
- package/dist/motion-tokens.js +1 -1
- package/dist/multi-select.js +21 -16
- package/dist/multi-select.js.map +1 -1
- package/dist/number-field.js +15 -15
- package/dist/number-field.js.map +1 -1
- package/dist/odometer.css +23 -17
- package/dist/odometer.js +12 -11
- package/dist/odometer.js.map +1 -1
- package/dist/otp-field.js +3 -3
- package/dist/otp-field.js.map +1 -1
- package/dist/overlay.css +5 -10
- package/dist/pagination.css +11 -16
- package/dist/pagination.js +13 -10
- package/dist/pagination.js.map +1 -1
- package/dist/paint-CJQCM6ZO.js +260 -0
- package/dist/paint-CJQCM6ZO.js.map +1 -0
- package/dist/popover.css +14 -16
- package/dist/popover.js +10 -9
- package/dist/radio-group.css +65 -76
- package/dist/radio-group.js +30 -29
- package/dist/radio-group.js.map +1 -1
- package/dist/select.css +67 -76
- package/dist/select.js +19 -14
- package/dist/select.js.map +1 -1
- package/dist/sheet.css +13 -15
- package/dist/sheet.js +11 -10
- package/dist/spinner.css +115 -0
- package/dist/spinner.js +4 -0
- package/dist/spinner.js.map +1 -0
- package/dist/status-badge.js +9 -9
- package/dist/status-badge.js.map +1 -1
- package/dist/styles.css +35 -35
- package/dist/support-rail.css +110 -256
- package/dist/support-rail.js +116 -123
- package/dist/support-rail.js.map +1 -1
- package/dist/table.css +77 -85
- package/dist/table.js +44 -41
- package/dist/table.js.map +1 -1
- package/dist/tabs.css +81 -93
- package/dist/tabs.js +23 -20
- package/dist/tabs.js.map +1 -1
- package/dist/tag.css +49 -54
- package/dist/tag.js +13 -12
- package/dist/tag.js.map +1 -1
- package/dist/text-field.js +5 -5
- package/dist/textarea.css +47 -50
- package/dist/textarea.js +16 -16
- package/dist/textarea.js.map +1 -1
- package/dist/theme-grid.js +11 -0
- package/dist/theme-grid.js.map +1 -0
- package/dist/theme-switcher.css +107 -0
- package/dist/theme-switcher.js +70 -0
- package/dist/theme-switcher.js.map +1 -0
- package/dist/theme-transition-LLC644ZR.js +346 -0
- package/dist/theme-transition-LLC644ZR.js.map +1 -0
- package/dist/theme-transition.css +48 -0
- package/dist/theme.js +74 -27
- package/dist/theme.js.map +1 -1
- package/dist/tide-DJZMDAFT.js +57 -0
- package/dist/tide-DJZMDAFT.js.map +1 -0
- package/dist/tiktok.css +114 -119
- package/dist/tiktok.js +53 -52
- package/dist/tiktok.js.map +1 -1
- package/dist/time-field.js +26 -20
- package/dist/time-field.js.map +1 -1
- package/dist/toast-store.js +2 -1
- package/dist/toast.css +51 -79
- package/dist/toast.js +34 -26
- package/dist/toast.js.map +1 -1
- package/dist/toggle-tag.js +23 -14
- package/dist/toggle-tag.js.map +1 -1
- package/dist/toggle.css +27 -32
- package/dist/toggle.js +7 -7
- package/dist/toggle.js.map +1 -1
- package/dist/tooltip.css +17 -24
- package/dist/tooltip.js +117 -95
- package/dist/tooltip.js.map +1 -1
- package/dist/trigger.css +4 -4
- package/dist/types/components/composites/alert/Alert.d.ts +1 -2
- package/dist/types/components/composites/date-picker/TimeField.d.ts +1 -2
- package/dist/types/components/composites/date-picker/field-shell.d.ts +1 -1
- package/dist/types/components/composites/date-picker/month-jump.d.ts +11 -0
- package/dist/types/components/composites/date-picker/time-core.d.ts +1 -2
- package/dist/types/components/composites/dropdown/Dropdown.d.ts +9 -1
- package/dist/types/components/composites/dropdown/types.d.ts +14 -0
- package/dist/types/components/composites/emoji-picker/EmojiPickerPanel.d.ts +1 -1
- package/dist/types/components/composites/emoji-picker/data.d.ts +2 -5
- package/dist/types/components/composites/emoji-picker/react/useEmojiPicker.d.ts +0 -11
- package/dist/types/components/composites/emoji-picker/types.d.ts +3 -8
- package/dist/types/components/composites/select/MultiSelect.d.ts +6 -1
- package/dist/types/components/composites/select/Select.d.ts +6 -1
- package/dist/types/components/composites/select/core/index.d.ts +1 -1
- package/dist/types/components/composites/select/core/menu.d.ts +3 -3
- package/dist/types/components/composites/select/core/panel.d.ts +3 -3
- package/dist/types/components/composites/tabs/Tabs.d.ts +7 -10
- package/dist/types/components/composites/theme-switcher/ThemeGrid.d.ts +20 -0
- package/dist/types/components/composites/theme-switcher/ThemeSwitcher.d.ts +24 -0
- package/dist/types/components/composites/toast/Toast.d.ts +1 -1
- package/dist/types/components/composites/tooltip/Tooltip.d.ts +9 -1
- package/dist/types/components/composites/tooltip/tooltip-store.d.ts +5 -6
- package/dist/types/components/compound/support-rail/SupportRail.d.ts +10 -8
- package/dist/types/components/dev/MotionDevtools.d.ts +12 -5
- package/dist/types/components/expressive/theme-transition/bloom.d.ts +2 -0
- package/dist/types/components/expressive/theme-transition/paint.d.ts +2 -0
- package/dist/types/components/expressive/theme-transition/scene.d.ts +24 -0
- package/dist/types/components/expressive/theme-transition/theme-transition.d.ts +19 -0
- package/dist/types/components/expressive/theme-transition/tide.d.ts +2 -0
- package/dist/types/components/internal/hooks/use-host-election.d.ts +8 -0
- package/dist/types/components/internal/icon/Icon.d.ts +2 -3
- package/dist/types/components/internal/menu/highlight.d.ts +7 -0
- package/dist/types/components/internal/utils/activation.d.ts +0 -4
- package/dist/types/components/primitives/avatar/Avatar.d.ts +1 -1
- package/dist/types/components/primitives/button/Button.d.ts +10 -13
- package/dist/types/components/primitives/button/button-style.d.ts +15 -0
- package/dist/types/components/primitives/input/TextField.d.ts +1 -2
- package/dist/types/components/primitives/spinner/Spinner.d.ts +27 -0
- package/dist/types/components/primitives/textarea/Textarea.d.ts +0 -1
- package/dist/types/engine/animate.d.ts +1 -0
- package/dist/types/shared-slot.d.ts +1 -0
- package/dist/types/tokens/component-styles.generated.d.ts +80 -155
- package/dist/types/tokens/motion-defaults.generated.d.ts +34 -0
- package/dist/types/tokens/motion-scale.d.ts +2 -2
- package/dist/types/tokens/motion-tokens.d.ts +7 -0
- package/dist/types/tokens/theme-store.d.ts +47 -0
- package/dist/types/tokens/theme-sync.d.ts +9 -0
- package/dist/types/tokens/theme-tokens.generated.d.ts +693 -1117
- package/dist/types/tokens/theme.d.ts +28 -5
- package/dist/typing-lines.css +18 -11
- package/dist/typing-lines.js +9 -8
- package/dist/typing-lines.js.map +1 -1
- package/dist/weight-field.css +32 -18
- package/dist/weight-field.js +4 -4
- package/dist/weight-field.js.map +1 -1
- package/dist/youtube.css +91 -97
- package/dist/youtube.js +87 -86
- package/dist/youtube.js.map +1 -1
- package/package.json +27 -31
- package/skills/zyncat-ui/SKILL.md +5 -3
- package/skills/zyncat-ui/references/components.md +7 -4
- package/skills/zyncat-ui/references/theming.md +105 -34
- package/src/components/composites/alert/Alert.tsx +15 -12
- package/src/components/composites/alert/alert.css +27 -34
- package/src/components/composites/date-picker/DateField.tsx +1 -1
- package/src/components/composites/date-picker/DateRangeField.tsx +1 -1
- package/src/components/composites/date-picker/DateTimeField.tsx +4 -4
- package/src/components/composites/date-picker/TimeField.tsx +8 -5
- package/src/components/composites/date-picker/calendar-panel.tsx +33 -22
- package/src/components/composites/date-picker/date-picker.css +287 -185
- package/src/components/composites/date-picker/field-shell.tsx +7 -7
- package/src/components/composites/date-picker/month-jump.tsx +192 -0
- package/src/components/composites/date-picker/range-panel.tsx +51 -36
- package/src/components/composites/date-picker/time-core.tsx +4 -6
- package/src/components/composites/date-picker/use-day-focus.ts +1 -1
- package/src/components/composites/dialog/Dialog.tsx +11 -11
- package/src/components/composites/dialog/dialog.css +35 -44
- package/src/components/composites/dropdown/Dropdown.tsx +15 -2
- package/src/components/composites/dropdown/Dropdown.usage.md +7 -4
- package/src/components/composites/dropdown/dropdown.css +37 -28
- package/src/components/composites/dropdown/menu-panel.tsx +56 -27
- package/src/components/composites/dropdown/types.ts +28 -6
- package/src/components/composites/emoji-picker/EmojiPickerPanel.tsx +5 -4
- package/src/components/composites/emoji-picker/EmojiPickerPanel.usage.md +4 -4
- package/src/components/composites/emoji-picker/data.ts +2 -5
- package/src/components/composites/emoji-picker/dom.ts +6 -6
- package/src/components/composites/emoji-picker/react/category-bar.tsx +6 -6
- package/src/components/composites/emoji-picker/react/useEmojiPicker.ts +0 -11
- package/src/components/composites/emoji-picker/scaffold.ts +7 -7
- package/src/components/composites/emoji-picker/search.ts +0 -7
- package/src/components/composites/emoji-picker/styles.css +35 -35
- package/src/components/composites/emoji-picker/types.ts +3 -8
- package/src/components/composites/modal/Modal.tsx +2 -2
- package/src/components/composites/modal/modal.css +3 -5
- package/src/components/composites/pagination/Pagination.tsx +7 -7
- package/src/components/composites/pagination/pagination.css +11 -16
- package/src/components/composites/popover/Popover.tsx +2 -2
- package/src/components/composites/popover/popover.css +14 -16
- package/src/components/composites/select/MultiSelect.tsx +11 -2
- package/src/components/composites/select/MultiSelect.usage.md +2 -1
- package/src/components/composites/select/Select.tsx +10 -1
- package/src/components/composites/select/Select.usage.md +2 -1
- package/src/components/composites/select/core/index.ts +1 -1
- package/src/components/composites/select/core/menu.tsx +19 -4
- package/src/components/composites/select/core/panel.tsx +19 -15
- package/src/components/composites/select/core/trigger.tsx +5 -5
- package/src/components/composites/select/select.css +67 -76
- package/src/components/composites/sheet/Sheet.tsx +2 -2
- package/src/components/composites/sheet/sheet.css +13 -15
- package/src/components/composites/sheet/use-sheet-drag.ts +1 -1
- package/src/components/composites/table/Table.tsx +35 -35
- package/src/components/composites/table/table.css +77 -85
- package/src/components/composites/tabs/Tabs.tsx +20 -21
- package/src/components/composites/tabs/Tabs.usage.md +3 -2
- package/src/components/composites/tabs/tabs.css +81 -93
- package/src/components/composites/theme-switcher/ThemeGrid.tsx +133 -0
- package/src/components/composites/theme-switcher/ThemeGrid.usage.md +20 -0
- package/src/components/composites/theme-switcher/ThemeSwitcher.tsx +75 -0
- package/src/components/composites/theme-switcher/ThemeSwitcher.usage.md +21 -0
- package/src/components/composites/theme-switcher/theme-switcher.css +107 -0
- package/src/components/composites/toast/Toast.tsx +24 -18
- package/src/components/composites/toast/toast-store.ts +8 -6
- package/src/components/composites/toast/toast.css +51 -79
- package/src/components/composites/tooltip/Tooltip.tsx +40 -19
- package/src/components/composites/tooltip/Tooltip.usage.md +9 -1
- package/src/components/composites/tooltip/tooltip-host.tsx +55 -23
- package/src/components/composites/tooltip/tooltip-store.ts +36 -53
- package/src/components/composites/tooltip/tooltip.css +17 -24
- package/src/components/compound/support-rail/SupportRail.tsx +132 -144
- package/src/components/compound/support-rail/SupportRail.usage.md +7 -6
- package/src/components/compound/support-rail/support-rail.css +110 -256
- package/src/components/dev/MotionDevtools.tsx +272 -51
- package/src/components/dev/MotionDevtools.usage.md +12 -4
- package/src/components/dev/motion-devtools.css +118 -69
- package/src/components/dev/slowmo-engine.ts +16 -15
- package/src/components/expressive/confetti/Confetti.tsx +4 -4
- package/src/components/expressive/confetti/confetti.css +20 -13
- package/src/components/expressive/facebook-feed/chrome.tsx +2 -2
- package/src/components/expressive/facebook-feed/facebook-feed.css +146 -149
- package/src/components/expressive/facebook-feed/post.tsx +39 -39
- package/src/components/expressive/facebook-feed/reel.tsx +41 -37
- package/src/components/expressive/facebook-feed/story.tsx +27 -27
- package/src/components/expressive/flow-field/FlowField.tsx +5 -5
- package/src/components/expressive/flow-field/flow-field.css +9 -5
- package/src/components/expressive/instagram-feed/InstagramFeed.tsx +52 -44
- package/src/components/expressive/instagram-feed/instagram-feed.css +66 -67
- package/src/components/expressive/lens/Lens.tsx +14 -14
- package/src/components/expressive/lens/lens.css +42 -39
- package/src/components/expressive/morphing-text/MorphingText.tsx +12 -13
- package/src/components/expressive/morphing-text/morphing-text.css +27 -17
- package/src/components/expressive/odometer/Odometer.tsx +9 -9
- package/src/components/expressive/odometer/odometer.css +23 -17
- package/src/components/expressive/theme-transition/bloom.ts +88 -0
- package/src/components/expressive/theme-transition/paint.ts +296 -0
- package/src/components/expressive/theme-transition/scene.ts +38 -0
- package/src/components/expressive/theme-transition/theme-transition.css +48 -0
- package/src/components/expressive/theme-transition/theme-transition.ts +423 -0
- package/src/components/expressive/theme-transition/tide.ts +65 -0
- package/src/components/expressive/tiktok/TikTok.tsx +54 -54
- package/src/components/expressive/tiktok/tiktok.css +114 -119
- package/src/components/expressive/typing-lines/TypingLines.tsx +0 -0
- package/src/components/expressive/typing-lines/typing-lines.css +18 -11
- package/src/components/expressive/weight-field/WeightField.tsx +4 -4
- package/src/components/expressive/weight-field/weight-field.css +32 -18
- package/src/components/expressive/youtube/YouTube.tsx +4 -4
- package/src/components/expressive/youtube/glyphs.tsx +16 -16
- package/src/components/expressive/youtube/media.tsx +3 -3
- package/src/components/expressive/youtube/post.tsx +28 -28
- package/src/components/expressive/youtube/short.tsx +25 -25
- package/src/components/expressive/youtube/video.tsx +13 -13
- package/src/components/expressive/youtube/youtube.css +91 -97
- package/src/components/internal/glass/glass.css +20 -23
- package/src/components/internal/glass/glint.ts +3 -3
- package/src/components/internal/hooks/use-host-election.ts +46 -0
- package/src/components/internal/icon/Icon.tsx +3 -5
- package/src/components/internal/icon/IconSlot.tsx +1 -1
- package/src/components/internal/icon/icon.css +8 -11
- package/src/components/internal/menu/highlight.ts +12 -0
- package/src/components/internal/menu/menu-row.tsx +5 -5
- package/src/components/internal/menu/menu-surface.css +55 -35
- package/src/components/internal/overlay/layer.tsx +2 -1
- package/src/components/internal/overlay/modal.tsx +5 -4
- package/src/components/internal/overlay/overlay.css +5 -10
- package/src/components/internal/overlay/trigger.css +4 -4
- package/src/components/internal/utils/activation.ts +0 -4
- package/src/components/primitives/avatar/Avatar.tsx +24 -8
- package/src/components/primitives/avatar/AvatarGroup.tsx +4 -4
- package/src/components/primitives/avatar/avatar.css +53 -51
- package/src/components/primitives/badge/Badge.tsx +9 -9
- package/src/components/primitives/badge/StatusBadge.tsx +7 -7
- package/src/components/primitives/badge/badge.css +31 -37
- package/src/components/primitives/badge/digit-strip.css +17 -17
- package/src/components/primitives/badge/digit-strip.tsx +4 -4
- package/src/components/primitives/button/Button.tsx +14 -28
- package/src/components/primitives/button/button-style.ts +28 -0
- package/src/components/primitives/button/button.css +99 -118
- package/src/components/primitives/checkbox/Checkbox.tsx +10 -4
- package/src/components/primitives/checkbox/check-glyph.tsx +5 -5
- package/src/components/primitives/checkbox/checkbox.css +28 -33
- package/src/components/primitives/collapse/Collapse.tsx +2 -2
- package/src/components/primitives/collapse/collapse.css +21 -33
- package/src/components/primitives/collapse/collapse.typecheck.tsx +1 -1
- package/src/components/primitives/input/NumberField.tsx +11 -11
- package/src/components/primitives/input/OtpField.tsx +3 -3
- package/src/components/primitives/input/TextField.tsx +9 -10
- package/src/components/primitives/input/field-chrome.tsx +6 -6
- package/src/components/primitives/input/input.css +81 -86
- package/src/components/primitives/radio-group/RadioGroup.tsx +23 -23
- package/src/components/primitives/radio-group/radio-group.css +65 -76
- package/src/components/primitives/spinner/Spinner.tsx +70 -0
- package/src/components/primitives/spinner/Spinner.usage.md +19 -0
- package/src/components/primitives/spinner/spinner.css +115 -0
- package/src/components/primitives/tag/Tag.tsx +5 -5
- package/src/components/primitives/tag/ToggleTag.tsx +11 -6
- package/src/components/primitives/tag/tag.css +49 -54
- package/src/components/primitives/textarea/Textarea.tsx +13 -14
- package/src/components/primitives/textarea/textarea.css +47 -50
- package/src/components/primitives/toggle/Toggle.tsx +7 -7
- package/src/components/primitives/toggle/toggle.css +27 -32
- package/src/engine/animate.ts +12 -3
- package/src/engine/flip.ts +2 -1
- package/src/mcp/server.ts +5 -2
- package/src/motion/flip.ts +7 -8
- package/src/motion/glide.tsx +41 -26
- package/src/shared-slot.ts +10 -0
- package/src/styles.css +8 -16
- package/src/tokens/base.css +15 -0
- package/src/tokens/color.css +22 -63
- package/src/tokens/component-styles.generated.ts +81 -155
- package/src/tokens/dark.css +58 -0
- package/src/tokens/decisions.css +23 -0
- package/src/tokens/elevation.css +65 -23
- package/src/tokens/fonts.css +0 -2
- package/src/tokens/glass.css +17 -10
- package/src/tokens/motion-defaults.generated.ts +21 -0
- package/src/tokens/motion-scale.ts +2 -2
- package/src/tokens/motion-tokens.ts +65 -40
- package/src/tokens/motion-tokens.usage.md +5 -2
- package/src/tokens/motion.css +18 -28
- package/src/tokens/radius.css +12 -10
- package/src/tokens/reset.css +36 -0
- package/src/tokens/semantic.css +51 -39
- package/src/tokens/spacing.css +6 -7
- package/src/tokens/theme-store.ts +187 -0
- package/src/tokens/theme-sync.tsx +62 -0
- package/src/tokens/theme-tokens.generated.ts +708 -1121
- package/src/tokens/theme.tsx +116 -38
- package/src/tokens/theme.usage.md +26 -19
- package/src/tokens/typography.css +18 -20
- package/tailwind.css +187 -0
- package/dist/chunk-227ZW4V7.js.map +0 -1
- package/dist/chunk-43M6GQ4Q.js.map +0 -1
- package/dist/chunk-4BSHB7R3.js.map +0 -1
- package/dist/chunk-4C5RZXBT.js.map +0 -1
- package/dist/chunk-5PZ43DCG.js.map +0 -1
- package/dist/chunk-7IZJERGA.js +0 -80
- package/dist/chunk-7IZJERGA.js.map +0 -1
- package/dist/chunk-AADAJL7D.js.map +0 -1
- package/dist/chunk-CNWTIMIP.js +0 -39
- package/dist/chunk-CNWTIMIP.js.map +0 -1
- package/dist/chunk-EAI4POPB.js.map +0 -1
- package/dist/chunk-EF6RPXU7.js.map +0 -1
- package/dist/chunk-FONOS5RN.js.map +0 -1
- package/dist/chunk-FQEHSKEI.js +0 -38
- package/dist/chunk-FQEHSKEI.js.map +0 -1
- package/dist/chunk-HY5MPISE.js +0 -52
- package/dist/chunk-HY5MPISE.js.map +0 -1
- package/dist/chunk-I45AU6KH.js.map +0 -1
- package/dist/chunk-IJS7TPGV.js.map +0 -1
- package/dist/chunk-OWNMRMPN.js +0 -14
- package/dist/chunk-OWNMRMPN.js.map +0 -1
- package/dist/chunk-RJFGWJ4W.js.map +0 -1
- package/dist/chunk-TCUCYFT7.js +0 -25
- package/dist/chunk-TCUCYFT7.js.map +0 -1
- package/dist/chunk-TVYH4AN7.js.map +0 -1
- package/dist/chunk-TYHR4VNM.js.map +0 -1
- package/dist/chunk-VAXCXZ53.js.map +0 -1
- package/dist/chunk-XNIYSAMJ.js.map +0 -1
- package/dist/chunk-Y2YA7QRF.js +0 -17
- package/dist/chunk-Y2YA7QRF.js.map +0 -1
- package/src/tokens/avatar.css +0 -24
- package/src/tokens/icons.css +0 -11
- package/src/tokens/layers.css +0 -11
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
@layer zyncat.tokens, zyncat.components;
|
|
1
|
+
@layer zyncat.reset, zyncat.tokens, zyncat.components;
|
|
2
2
|
|
|
3
3
|
@layer zyncat.components {
|
|
4
|
-
|
|
5
|
-
.overlay-popover {
|
|
4
|
+
.zc-overlay-popover {
|
|
6
5
|
position: fixed;
|
|
7
6
|
top: 0;
|
|
8
7
|
left: 0;
|
|
@@ -10,31 +9,30 @@
|
|
|
10
9
|
outline: none;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
.overlay-popover[data-align='start'] {
|
|
12
|
+
.zc-overlay-popover[data-align='start'] {
|
|
14
13
|
--ov-origin: var(--space-4);
|
|
15
14
|
}
|
|
16
|
-
.overlay-popover[data-align='center'] {
|
|
15
|
+
.zc-overlay-popover[data-align='center'] {
|
|
17
16
|
--ov-origin: 50%;
|
|
18
17
|
}
|
|
19
|
-
.overlay-popover[data-align='end'] {
|
|
18
|
+
.zc-overlay-popover[data-align='end'] {
|
|
20
19
|
--ov-origin: calc(100% - var(--space-4));
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
.overlay-popover[data-side='bottom'] {
|
|
22
|
+
.zc-overlay-popover[data-side='bottom'] {
|
|
24
23
|
transform-origin: var(--overlay-arrow-x, var(--ov-origin)) top;
|
|
25
24
|
}
|
|
26
|
-
.overlay-popover[data-side='top'] {
|
|
25
|
+
.zc-overlay-popover[data-side='top'] {
|
|
27
26
|
transform-origin: var(--overlay-arrow-x, var(--ov-origin)) bottom;
|
|
28
27
|
}
|
|
29
|
-
.overlay-popover[data-side='right'] {
|
|
28
|
+
.zc-overlay-popover[data-side='right'] {
|
|
30
29
|
transform-origin: left var(--overlay-arrow-y, var(--ov-origin));
|
|
31
30
|
}
|
|
32
|
-
.overlay-popover[data-side='left'] {
|
|
31
|
+
.zc-overlay-popover[data-side='left'] {
|
|
33
32
|
transform-origin: right var(--overlay-arrow-y, var(--ov-origin));
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
.overlay-popover__arrow {
|
|
35
|
+
.zc-overlay-popover__arrow {
|
|
38
36
|
position: absolute;
|
|
39
37
|
width: 10px;
|
|
40
38
|
height: 10px;
|
|
@@ -42,28 +40,28 @@
|
|
|
42
40
|
border: var(--border-hairline) solid var(--border-default);
|
|
43
41
|
pointer-events: none;
|
|
44
42
|
}
|
|
45
|
-
.overlay-popover[data-side='bottom'] .overlay-popover__arrow {
|
|
43
|
+
.zc-overlay-popover[data-side='bottom'] .zc-overlay-popover__arrow {
|
|
46
44
|
top: -5px;
|
|
47
45
|
left: var(--overlay-arrow-x, 50%);
|
|
48
46
|
transform: translateX(-50%) rotate(45deg);
|
|
49
47
|
border-right: none;
|
|
50
48
|
border-bottom: none;
|
|
51
49
|
}
|
|
52
|
-
.overlay-popover[data-side='top'] .overlay-popover__arrow {
|
|
50
|
+
.zc-overlay-popover[data-side='top'] .zc-overlay-popover__arrow {
|
|
53
51
|
bottom: -5px;
|
|
54
52
|
left: var(--overlay-arrow-x, 50%);
|
|
55
53
|
transform: translateX(-50%) rotate(45deg);
|
|
56
54
|
border-left: none;
|
|
57
55
|
border-top: none;
|
|
58
56
|
}
|
|
59
|
-
.overlay-popover[data-side='right'] .overlay-popover__arrow {
|
|
57
|
+
.zc-overlay-popover[data-side='right'] .zc-overlay-popover__arrow {
|
|
60
58
|
left: -5px;
|
|
61
59
|
top: var(--overlay-arrow-y, 50%);
|
|
62
60
|
transform: translateY(-50%) rotate(45deg);
|
|
63
61
|
border-right: none;
|
|
64
62
|
border-top: none;
|
|
65
63
|
}
|
|
66
|
-
.overlay-popover[data-side='left'] .overlay-popover__arrow {
|
|
64
|
+
.zc-overlay-popover[data-side='left'] .zc-overlay-popover__arrow {
|
|
67
65
|
right: -5px;
|
|
68
66
|
top: var(--overlay-arrow-y, 50%);
|
|
69
67
|
transform: translateY(-50%) rotate(45deg);
|
|
@@ -37,6 +37,11 @@ export interface MultiSelectProps {
|
|
|
37
37
|
searchable?: boolean;
|
|
38
38
|
/** Placeholder for the `searchable` filter input. @default 'Filter options' */
|
|
39
39
|
searchPlaceholder?: string;
|
|
40
|
+
/** Hue of the highlight that travels between options: the neutral wash, or the accent wash with
|
|
41
|
+
* accent ink on the active option. @default 'neutral' */
|
|
42
|
+
highlight?: 'neutral' | 'accent';
|
|
43
|
+
/** Short accent bar on the leading edge of the highlight, marking the active option. @default false */
|
|
44
|
+
rail?: boolean;
|
|
40
45
|
/** Your own icon node pinned before the trigger label; else the sole selected option's icon. */
|
|
41
46
|
leadingIcon?: ReactNode;
|
|
42
47
|
/** Base id for the trigger/menu/list ids and a11y wiring; auto-generated if omitted. */
|
|
@@ -54,7 +59,7 @@ export interface MultiSelectProps {
|
|
|
54
59
|
|
|
55
60
|
function CheckboxTick({ checked }: { checked: boolean }) {
|
|
56
61
|
return (
|
|
57
|
-
<span className="cbx" aria-hidden="true">
|
|
62
|
+
<span className="zc-cbx" aria-hidden="true">
|
|
58
63
|
<CheckGlyph checked={checked} readOnly tabIndex={-1} />
|
|
59
64
|
</span>
|
|
60
65
|
);
|
|
@@ -72,6 +77,8 @@ export function MultiSelect({
|
|
|
72
77
|
loading = false,
|
|
73
78
|
searchable = false,
|
|
74
79
|
searchPlaceholder = 'Filter options',
|
|
80
|
+
highlight = 'neutral',
|
|
81
|
+
rail = false,
|
|
75
82
|
leadingIcon = null,
|
|
76
83
|
id,
|
|
77
84
|
ariaLabel,
|
|
@@ -106,7 +113,7 @@ export function MultiSelect({
|
|
|
106
113
|
return (
|
|
107
114
|
<div
|
|
108
115
|
{...htmlProps}
|
|
109
|
-
className={cx('select', htmlProps?.className)}
|
|
116
|
+
className={cx('zc-select', htmlProps?.className)}
|
|
110
117
|
data-multiple="true"
|
|
111
118
|
data-size={size}
|
|
112
119
|
data-open={lb.open ? 'true' : undefined}
|
|
@@ -132,6 +139,8 @@ export function MultiSelect({
|
|
|
132
139
|
searchPlaceholder={searchPlaceholder}
|
|
133
140
|
ariaLabel={ariaLabel}
|
|
134
141
|
multiple
|
|
142
|
+
highlight={highlight}
|
|
143
|
+
rail={rail}
|
|
135
144
|
activateOn={activateOn}
|
|
136
145
|
animation={animation}
|
|
137
146
|
check={(sel) => <CheckboxTick checked={sel} />}
|
|
@@ -5,7 +5,8 @@ Docs: https://ui.zyncat.app/multi-select
|
|
|
5
5
|
|
|
6
6
|
Many-of listbox; stays open while toggling, trigger summarises as first +N.
|
|
7
7
|
|
|
8
|
-
value: string[], onChange(string[]); searchable.
|
|
8
|
+
value: string[], onChange(string[]); searchable. highlight neutral|accent picks the hue of the
|
|
9
|
+
highlight travelling between options; rail adds a short accent bar on its leading edge.
|
|
9
10
|
|
|
10
11
|
```tsx
|
|
11
12
|
<MultiSelect options={PEOPLE} value={ids} onChange={setIds} placeholder="Choose members" ariaLabel="Members" />
|
|
@@ -43,6 +43,11 @@ export interface SelectProps {
|
|
|
43
43
|
searchable?: boolean;
|
|
44
44
|
/** Placeholder for the `searchable` filter input. @default 'Filter options' */
|
|
45
45
|
searchPlaceholder?: string;
|
|
46
|
+
/** Hue of the highlight that travels between options: the neutral wash, or the accent wash with
|
|
47
|
+
* accent ink on the active option. @default 'neutral' */
|
|
48
|
+
highlight?: 'neutral' | 'accent';
|
|
49
|
+
/** Short accent bar on the leading edge of the highlight, marking the active option. @default false */
|
|
50
|
+
rail?: boolean;
|
|
46
51
|
/** Your own icon node pinned before the trigger label; else the selected option's icon. */
|
|
47
52
|
leadingIcon?: ReactNode;
|
|
48
53
|
/** Base id for the trigger/menu/list ids and a11y wiring; auto-generated if omitted. */
|
|
@@ -76,6 +81,8 @@ export function Select({
|
|
|
76
81
|
loading = false,
|
|
77
82
|
searchable = false,
|
|
78
83
|
searchPlaceholder = 'Filter options',
|
|
84
|
+
highlight = 'neutral',
|
|
85
|
+
rail = false,
|
|
79
86
|
leadingIcon = null,
|
|
80
87
|
id,
|
|
81
88
|
ariaLabel,
|
|
@@ -105,7 +112,7 @@ export function Select({
|
|
|
105
112
|
return (
|
|
106
113
|
<div
|
|
107
114
|
{...htmlProps}
|
|
108
|
-
className={cx('select', htmlProps?.className)}
|
|
115
|
+
className={cx('zc-select', htmlProps?.className)}
|
|
109
116
|
data-size={size}
|
|
110
117
|
data-open={lb.open ? 'true' : undefined}
|
|
111
118
|
data-disabled={disabled ? 'true' : undefined}
|
|
@@ -129,6 +136,8 @@ export function Select({
|
|
|
129
136
|
searchable={searchable}
|
|
130
137
|
searchPlaceholder={searchPlaceholder}
|
|
131
138
|
ariaLabel={ariaLabel}
|
|
139
|
+
highlight={highlight}
|
|
140
|
+
rail={rail}
|
|
132
141
|
activateOn={activateOn}
|
|
133
142
|
animation={animation}
|
|
134
143
|
{...(!showCheck && { check: () => null })}
|
|
@@ -6,7 +6,8 @@ Docs: https://ui.zyncat.app/select
|
|
|
6
6
|
Single-select listbox in a popover, searchable; holds value: string | null.
|
|
7
7
|
|
|
8
8
|
options: SelectOption[]; value: string|null, onChange(value); searchable, leadingIcon, placeholder,
|
|
9
|
-
invalid, loading, ariaLabel.
|
|
9
|
+
invalid, loading, ariaLabel. highlight neutral|accent picks the hue of the highlight travelling
|
|
10
|
+
between options; rail adds a short accent bar on its leading edge.
|
|
10
11
|
|
|
11
12
|
```tsx
|
|
12
13
|
<Select
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useListbox
|
|
1
|
+
export { useListbox } from './use-listbox';
|
|
2
2
|
export { SelectTrigger, type SelectTriggerHtmlProps } from './trigger';
|
|
3
3
|
export { ListboxPanel } from './panel';
|
|
4
4
|
export type { SelectOption, SelectGroup } from './types';
|
|
@@ -8,6 +8,7 @@ import { Presence } from '../../../../motion/presence';
|
|
|
8
8
|
import type { DisableableAnimation } from '../../../../motion/timing';
|
|
9
9
|
import { useMotion, type MotionSpecs } from '../../../../motion/use-motion';
|
|
10
10
|
import { UIMotion, type MotionTransition } from '../../../../tokens/motion-tokens';
|
|
11
|
+
import { menuHighlightAttrs, type MenuHighlightProps } from '../../../internal/menu/highlight';
|
|
11
12
|
import { OverlayPortal, useOutsidePress, useOverlayEntry } from '../../../internal/overlay/layer';
|
|
12
13
|
import { useAnchorPosition } from '../../../internal/overlay/position';
|
|
13
14
|
|
|
@@ -31,13 +32,12 @@ function selectMenuLayers(animation: DisableableAnimation | undefined, dir: 'ope
|
|
|
31
32
|
];
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
export interface SelectMenuProps {
|
|
35
|
+
export interface SelectMenuProps extends MenuHighlightProps {
|
|
35
36
|
open: boolean;
|
|
36
37
|
menuId: string;
|
|
37
38
|
requestClose: () => void;
|
|
38
39
|
triggerRef: RefObject<HTMLButtonElement | null>;
|
|
39
40
|
multiple?: boolean;
|
|
40
|
-
/** Open/close timing - motion tokens only, or `null` to disable. */
|
|
41
41
|
animation?: DisableableAnimation;
|
|
42
42
|
children?: ReactNode;
|
|
43
43
|
}
|
|
@@ -47,6 +47,8 @@ function MenuSurface({
|
|
|
47
47
|
requestClose,
|
|
48
48
|
triggerRef,
|
|
49
49
|
multiple,
|
|
50
|
+
highlight,
|
|
51
|
+
rail,
|
|
50
52
|
animate,
|
|
51
53
|
exit,
|
|
52
54
|
children,
|
|
@@ -69,17 +71,28 @@ function MenuSurface({
|
|
|
69
71
|
return (
|
|
70
72
|
<div
|
|
71
73
|
ref={menuRef}
|
|
72
|
-
className="menu-surface select__menu"
|
|
74
|
+
className="zc-menu-surface zc-select__menu"
|
|
73
75
|
id={menuId}
|
|
74
76
|
role="presentation"
|
|
75
77
|
data-multiple={multiple ? 'true' : undefined}
|
|
78
|
+
{...menuHighlightAttrs({ highlight, rail })}
|
|
76
79
|
>
|
|
77
80
|
{children}
|
|
78
81
|
</div>
|
|
79
82
|
);
|
|
80
83
|
}
|
|
81
84
|
|
|
82
|
-
export function SelectMenu({
|
|
85
|
+
export function SelectMenu({
|
|
86
|
+
open,
|
|
87
|
+
menuId,
|
|
88
|
+
requestClose,
|
|
89
|
+
triggerRef,
|
|
90
|
+
multiple,
|
|
91
|
+
highlight,
|
|
92
|
+
rail,
|
|
93
|
+
animation,
|
|
94
|
+
children,
|
|
95
|
+
}: SelectMenuProps) {
|
|
83
96
|
return (
|
|
84
97
|
<OverlayPortal>
|
|
85
98
|
<Presence>
|
|
@@ -92,6 +105,8 @@ export function SelectMenu({ open, menuId, requestClose, triggerRef, multiple, a
|
|
|
92
105
|
requestClose={requestClose}
|
|
93
106
|
triggerRef={triggerRef}
|
|
94
107
|
multiple={multiple}
|
|
108
|
+
highlight={highlight}
|
|
109
|
+
rail={rail}
|
|
95
110
|
>
|
|
96
111
|
{children}
|
|
97
112
|
</MenuSurface>
|
|
@@ -7,13 +7,14 @@ import { Fragment, useMemo, type ReactNode } from 'react';
|
|
|
7
7
|
import { GlidePill } from '../../../../motion/glide';
|
|
8
8
|
import type { DisableableAnimation } from '../../../../motion/timing';
|
|
9
9
|
import { Icon } from '../../../internal/icon/Icon';
|
|
10
|
+
import type { MenuHighlightProps } from '../../../internal/menu/highlight';
|
|
10
11
|
import { MenuRow } from '../../../internal/menu/menu-row';
|
|
11
12
|
import { activationProps, type ActivateOn } from '../../../internal/utils/activation';
|
|
12
13
|
import { Collapse } from '../../../primitives/collapse/Collapse';
|
|
13
14
|
import { SelectMenu } from './menu';
|
|
14
15
|
import type { ListboxState } from './use-listbox';
|
|
15
16
|
|
|
16
|
-
export interface ListboxPanelProps {
|
|
17
|
+
export interface ListboxPanelProps extends MenuHighlightProps {
|
|
17
18
|
lb: ListboxState;
|
|
18
19
|
loading: boolean;
|
|
19
20
|
searchable: boolean;
|
|
@@ -21,7 +22,6 @@ export interface ListboxPanelProps {
|
|
|
21
22
|
ariaLabel?: string;
|
|
22
23
|
multiple?: boolean;
|
|
23
24
|
activateOn?: ActivateOn;
|
|
24
|
-
/** Menu open/close timing - motion tokens only, or `null` to disable. */
|
|
25
25
|
animation?: DisableableAnimation;
|
|
26
26
|
check?: (selected: boolean) => ReactNode;
|
|
27
27
|
}
|
|
@@ -30,11 +30,11 @@ const defaultCheck = (selected: boolean) => (selected ? <Icon key="on" name="che
|
|
|
30
30
|
|
|
31
31
|
function LoadingRows() {
|
|
32
32
|
return (
|
|
33
|
-
<div className="select__loading" aria-busy="true" aria-live="polite">
|
|
33
|
+
<div className="zc-select__loading" aria-busy="true" aria-live="polite">
|
|
34
34
|
{[0, 1, 2].map((i) => (
|
|
35
|
-
<div className="select__skeleton" key={i}>
|
|
36
|
-
<span className="select__skeleton-dot" data-pulse></span>
|
|
37
|
-
<span className="select__skeleton-bar" data-pulse></span>
|
|
35
|
+
<div className="zc-select__skeleton" key={i}>
|
|
36
|
+
<span className="zc-select__skeleton-dot" data-pulse></span>
|
|
37
|
+
<span className="zc-select__skeleton-bar" data-pulse></span>
|
|
38
38
|
</div>
|
|
39
39
|
))}
|
|
40
40
|
</div>
|
|
@@ -42,7 +42,7 @@ function LoadingRows() {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
function EmptyRow({ query }: { query: string }) {
|
|
45
|
-
return <div className="select__empty">{query ? 'No matches for "' + query + '"' : 'No options available'}</div>;
|
|
45
|
+
return <div className="zc-select__empty">{query ? 'No matches for "' + query + '"' : 'No options available'}</div>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export function ListboxPanel({
|
|
@@ -52,6 +52,8 @@ export function ListboxPanel({
|
|
|
52
52
|
searchPlaceholder,
|
|
53
53
|
ariaLabel,
|
|
54
54
|
multiple,
|
|
55
|
+
highlight,
|
|
56
|
+
rail,
|
|
55
57
|
activateOn,
|
|
56
58
|
animation,
|
|
57
59
|
check = defaultCheck,
|
|
@@ -64,14 +66,16 @@ export function ListboxPanel({
|
|
|
64
66
|
requestClose={lb.requestClose}
|
|
65
67
|
triggerRef={lb.triggerRef}
|
|
66
68
|
multiple={multiple}
|
|
69
|
+
highlight={highlight}
|
|
70
|
+
rail={rail}
|
|
67
71
|
animation={animation}
|
|
68
72
|
>
|
|
69
73
|
{searchable && !loading && (
|
|
70
|
-
<div className="select__search">
|
|
74
|
+
<div className="zc-select__search">
|
|
71
75
|
<Icon name="magnifying-glass" size="sm" />
|
|
72
76
|
<input
|
|
73
77
|
ref={lb.searchRef}
|
|
74
|
-
className="select__search-input"
|
|
78
|
+
className="zc-select__search-input"
|
|
75
79
|
type="text"
|
|
76
80
|
value={lb.query}
|
|
77
81
|
placeholder={searchPlaceholder}
|
|
@@ -85,7 +89,7 @@ export function ListboxPanel({
|
|
|
85
89
|
)}
|
|
86
90
|
|
|
87
91
|
<div
|
|
88
|
-
className="menu-scroller select__list"
|
|
92
|
+
className="zc-menu-scroller zc-select__list"
|
|
89
93
|
ref={lb.listRef}
|
|
90
94
|
id={lb.listId}
|
|
91
95
|
role="listbox"
|
|
@@ -95,15 +99,15 @@ export function ListboxPanel({
|
|
|
95
99
|
aria-activedescendant={searchable ? undefined : lb.adId}
|
|
96
100
|
onKeyDown={searchable ? undefined : lb.onMenuKeyDown}
|
|
97
101
|
>
|
|
98
|
-
<GlidePill className="menu-glide select__glide" glide={lb.glide} />
|
|
102
|
+
<GlidePill className="zc-menu-glide zc-select__glide" glide={lb.glide} />
|
|
99
103
|
{loading ? (
|
|
100
104
|
<LoadingRows />
|
|
101
105
|
) : (
|
|
102
106
|
<Fragment>
|
|
103
107
|
{lb.groups.map((g, gi) => (
|
|
104
|
-
<div className="select__group" role="group" aria-label={g.label || undefined} key={gi}>
|
|
108
|
+
<div className="zc-select__group" role="group" aria-label={g.label || undefined} key={gi}>
|
|
105
109
|
{g.label && g.items.some((o) => navIndex.has(o.value)) && (
|
|
106
|
-
<div className="menu-group-label select__group-label">{g.label}</div>
|
|
110
|
+
<div className="zc-menu-group-label zc-select__group-label">{g.label}</div>
|
|
107
111
|
)}
|
|
108
112
|
{g.items.map((opt) => {
|
|
109
113
|
const i = navIndex.get(opt.value) ?? -1;
|
|
@@ -114,7 +118,7 @@ export function ListboxPanel({
|
|
|
114
118
|
key={opt.value}
|
|
115
119
|
id={visible ? lb.optId(opt.value) : undefined}
|
|
116
120
|
data-idx={visible ? i : undefined}
|
|
117
|
-
className="select__option"
|
|
121
|
+
className="zc-select__option"
|
|
118
122
|
role="option"
|
|
119
123
|
aria-selected={isSel}
|
|
120
124
|
aria-hidden={!visible || undefined}
|
|
@@ -131,7 +135,7 @@ export function ListboxPanel({
|
|
|
131
135
|
icon={opt.icon}
|
|
132
136
|
label={opt.label}
|
|
133
137
|
description={opt.description}
|
|
134
|
-
trailing={check(isSel) ? <span className="select__option-check">{check(isSel)}</span> : null}
|
|
138
|
+
trailing={check(isSel) ? <span className="zc-select__option-check">{check(isSel)}</span> : null}
|
|
135
139
|
/>
|
|
136
140
|
);
|
|
137
141
|
return searchable ? (
|
|
@@ -43,7 +43,7 @@ export function SelectTrigger({
|
|
|
43
43
|
type="button"
|
|
44
44
|
ref={triggerRef}
|
|
45
45
|
id={baseId + '-trigger'}
|
|
46
|
-
className={cx('select__trigger', className)}
|
|
46
|
+
className={cx('zc-select__trigger', className)}
|
|
47
47
|
role="combobox"
|
|
48
48
|
aria-haspopup="listbox"
|
|
49
49
|
aria-expanded={open}
|
|
@@ -66,15 +66,15 @@ export function SelectTrigger({
|
|
|
66
66
|
{...rest}
|
|
67
67
|
>
|
|
68
68
|
{leading && (
|
|
69
|
-
<span className="select__leading">
|
|
69
|
+
<span className="zc-select__leading">
|
|
70
70
|
<IconSlot size="sm">{leading}</IconSlot>
|
|
71
71
|
</span>
|
|
72
72
|
)}
|
|
73
|
-
<span className="select__value" data-placeholder={isPlaceholder ? 'true' : undefined}>
|
|
73
|
+
<span className="zc-select__value" data-placeholder={isPlaceholder ? 'true' : undefined}>
|
|
74
74
|
{text}
|
|
75
75
|
</span>
|
|
76
|
-
{count != null && count > 0 && <span className="select__count">+{count}</span>}
|
|
77
|
-
<span className="select__caret">
|
|
76
|
+
{count != null && count > 0 && <span className="zc-select__count">+{count}</span>}
|
|
77
|
+
<span className="zc-select__caret">
|
|
78
78
|
<Icon name="caret-down" size="sm" />
|
|
79
79
|
</span>
|
|
80
80
|
</button>
|