@zyncat/ui 0.13.1 → 0.15.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 +72 -13
- package/dist/alert.css +26 -33
- package/dist/alert.js +18 -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 +51 -50
- package/dist/avatar.js +29 -7
- package/dist/avatar.js.map +1 -1
- package/dist/badge.css +30 -36
- package/dist/badge.js +1 -1
- package/dist/button.css +80 -96
- package/dist/button.js +1 -1
- package/dist/checkbox.css +27 -32
- package/dist/checkbox.js +2 -2
- package/dist/{chunk-RJFGWJ4W.js → chunk-3XRVPCIM.js} +6 -6
- package/dist/chunk-3XRVPCIM.js.map +1 -0
- package/dist/{chunk-M43IOM5C.js → chunk-5GBV45YD.js} +3 -3
- package/dist/{chunk-M43IOM5C.js.map → chunk-5GBV45YD.js.map} +1 -1
- 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-AADAJL7D.js → chunk-5X3MJRIM.js} +8 -9
- package/dist/chunk-5X3MJRIM.js.map +1 -0
- package/dist/{chunk-TCUCYFT7.js → chunk-6SUHSSOK.js} +3 -3
- package/dist/{chunk-TCUCYFT7.js.map → chunk-6SUHSSOK.js.map} +1 -1
- package/dist/{chunk-DDRSMHN4.js → chunk-6X3G4GIM.js} +3 -3
- package/dist/{chunk-DDRSMHN4.js.map → chunk-6X3G4GIM.js.map} +1 -1
- package/dist/{chunk-TYHR4VNM.js → chunk-AREEMG47.js} +10 -8
- package/dist/chunk-AREEMG47.js.map +1 -0
- package/dist/{chunk-EF6RPXU7.js → chunk-BH4JFWXQ.js} +36 -31
- package/dist/chunk-BH4JFWXQ.js.map +1 -0
- package/dist/{chunk-TVYH4AN7.js → chunk-BTF6DAE3.js} +13 -13
- package/dist/chunk-BTF6DAE3.js.map +1 -0
- package/dist/{chunk-CF4QHO4N.js → chunk-CAXQJSIE.js} +10 -10
- package/dist/{chunk-CF4QHO4N.js.map → chunk-CAXQJSIE.js.map} +1 -1
- package/dist/{chunk-4C5RZXBT.js → chunk-CFRGQJ23.js} +8 -8
- package/dist/chunk-CFRGQJ23.js.map +1 -0
- package/dist/{chunk-IJS7TPGV.js → chunk-FEXUS4SV.js} +6 -5
- package/dist/chunk-FEXUS4SV.js.map +1 -0
- package/dist/{chunk-227ZW4V7.js → chunk-FLQVOSFC.js} +11 -11
- package/dist/chunk-FLQVOSFC.js.map +1 -0
- package/dist/{chunk-FONOS5RN.js → chunk-FVPNICF4.js} +11 -10
- package/dist/chunk-FVPNICF4.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-4BSHB7R3.js → chunk-GJTHWB6O.js} +9 -9
- package/dist/chunk-GJTHWB6O.js.map +1 -0
- package/dist/{chunk-EAI4POPB.js → chunk-GOLSYGRA.js} +45 -75
- package/dist/chunk-GOLSYGRA.js.map +1 -0
- package/dist/chunk-H3X2263Y.js +17 -0
- package/dist/chunk-H3X2263Y.js.map +1 -0
- package/dist/chunk-K45CWVHS.js +53 -0
- package/dist/chunk-K45CWVHS.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-TUTXXC3W.js → chunk-MDSRZ4QR.js} +3 -3
- package/dist/{chunk-TUTXXC3W.js.map → chunk-MDSRZ4QR.js.map} +1 -1
- package/dist/chunk-N2GJEO5Z.js +101 -0
- package/dist/chunk-N2GJEO5Z.js.map +1 -0
- package/dist/chunk-PU3QWBEL.js +39 -0
- package/dist/chunk-PU3QWBEL.js.map +1 -0
- package/dist/{chunk-43M6GQ4Q.js → chunk-PWQVSVXR.js} +51 -32
- package/dist/chunk-PWQVSVXR.js.map +1 -0
- package/dist/chunk-QGVFFT2B.js +14 -0
- package/dist/chunk-QGVFFT2B.js.map +1 -0
- package/dist/{chunk-5PZ43DCG.js → chunk-RBSHRRNO.js} +12 -13
- package/dist/chunk-RBSHRRNO.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-HY5MPISE.js → chunk-UYSXJ7MH.js} +9 -9
- package/dist/chunk-UYSXJ7MH.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-3MPF7FZV.js → chunk-WCWV5IX6.js} +3 -3
- package/dist/{chunk-3MPF7FZV.js.map → chunk-WCWV5IX6.js.map} +1 -1
- package/dist/{chunk-VAXCXZ53.js → chunk-WZUTBJC4.js} +5 -4
- package/dist/chunk-WZUTBJC4.js.map +1 -0
- package/dist/cli.js +135 -23
- package/dist/collapse.css +15 -30
- package/dist/collapse.js +1 -1
- package/dist/confetti.css +19 -12
- 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 +20 -19
- package/dist/date-field.js.map +1 -1
- package/dist/date-picker.css +131 -154
- package/dist/date-range-field.js +55 -54
- package/dist/date-range-field.js.map +1 -1
- package/dist/datetime-field.js +24 -23
- package/dist/datetime-field.js.map +1 -1
- package/dist/dialog.css +31 -41
- package/dist/dialog.js +23 -22
- package/dist/dialog.js.map +1 -1
- package/dist/digit-strip.css +16 -16
- package/dist/dropdown.css +36 -27
- 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 +145 -148
- package/dist/facebook-feed.js +106 -102
- package/dist/facebook-feed.js.map +1 -1
- package/dist/flow-field.css +8 -4
- package/dist/flow-field.js +7 -6
- package/dist/flow-field.js.map +1 -1
- package/dist/glide.js +4 -3
- package/dist/icon.css +7 -10
- package/dist/input.css +76 -84
- package/dist/instagram-feed.css +65 -66
- package/dist/instagram-feed.js +61 -44
- package/dist/instagram-feed.js.map +1 -1
- package/dist/lens.css +42 -38
- package/dist/lens.js +17 -16
- package/dist/lens.js.map +1 -1
- package/dist/mcp.js +3 -2
- package/dist/menu-surface.css +54 -34
- package/dist/modal.css +2 -4
- package/dist/modal.js +12 -11
- package/dist/modal.js.map +1 -1
- package/dist/morphing-text.css +26 -16
- package/dist/morphing-text.js +14 -13
- package/dist/morphing-text.js.map +1 -1
- package/dist/motion-devtools.css +42 -68
- package/dist/motion-devtools.js +47 -39
- 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 +14 -14
- package/dist/number-field.js.map +1 -1
- package/dist/odometer.css +22 -16
- 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 +4 -9
- package/dist/pagination.css +10 -15
- package/dist/pagination.js +11 -10
- package/dist/pagination.js.map +1 -1
- package/dist/popover.css +13 -15
- package/dist/popover.js +10 -9
- package/dist/radio-group.css +60 -73
- package/dist/radio-group.js +30 -29
- package/dist/radio-group.js.map +1 -1
- package/dist/select.css +66 -75
- package/dist/select.js +19 -14
- package/dist/select.js.map +1 -1
- package/dist/sheet.css +12 -14
- package/dist/sheet.js +11 -10
- package/dist/status-badge.js +9 -9
- package/dist/status-badge.js.map +1 -1
- package/dist/styles.css +34 -34
- package/dist/support-rail.css +116 -100
- package/dist/support-rail.js +41 -40
- package/dist/support-rail.js.map +1 -1
- package/dist/table.css +76 -84
- package/dist/table.js +42 -41
- package/dist/table.js.map +1 -1
- package/dist/tabs.css +82 -90
- package/dist/tabs.js +23 -20
- package/dist/tabs.js.map +1 -1
- package/dist/tag.css +48 -53
- package/dist/tag.js +13 -12
- package/dist/tag.js.map +1 -1
- package/dist/text-field.js +5 -5
- package/dist/textarea.css +46 -49
- package/dist/textarea.js +16 -16
- package/dist/textarea.js.map +1 -1
- package/dist/theme.js +31 -15
- package/dist/theme.js.map +1 -1
- package/dist/tiktok.css +113 -117
- 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 +49 -65
- package/dist/toast.js +32 -26
- package/dist/toast.js.map +1 -1
- package/dist/toggle-tag.js +22 -13
- package/dist/toggle-tag.js.map +1 -1
- package/dist/toggle.css +26 -31
- package/dist/toggle.js +7 -7
- package/dist/toggle.js.map +1 -1
- package/dist/tooltip.css +16 -23
- package/dist/tooltip.js +117 -95
- package/dist/tooltip.js.map +1 -1
- package/dist/trigger.css +3 -3
- 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/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/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/dev/MotionDevtools.d.ts +3 -1
- package/dist/types/components/internal/hooks/use-host-election.d.ts +8 -0
- package/dist/types/components/internal/icon/Icon.d.ts +1 -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 +1 -1
- package/dist/types/components/primitives/input/TextField.d.ts +1 -2
- package/dist/types/components/primitives/textarea/Textarea.d.ts +0 -1
- package/dist/types/shared-slot.d.ts +1 -0
- package/dist/types/tokens/component-styles.generated.d.ts +79 -151
- 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-sync.d.ts +3 -0
- package/dist/types/tokens/theme-tokens.generated.d.ts +669 -1105
- package/dist/typing-lines.css +17 -10
- package/dist/typing-lines.js +9 -8
- package/dist/typing-lines.js.map +1 -1
- package/dist/weight-field.css +31 -17
- package/dist/weight-field.js +4 -4
- package/dist/weight-field.js.map +1 -1
- package/dist/youtube.css +90 -96
- package/dist/youtube.js +87 -86
- package/dist/youtube.js.map +1 -1
- package/package.json +3 -1
- package/skills/zyncat-ui/SKILL.md +5 -3
- package/skills/zyncat-ui/references/components.md +4 -4
- package/skills/zyncat-ui/references/theming.md +105 -34
- package/src/components/composites/alert/Alert.tsx +9 -10
- package/src/components/composites/alert/alert.css +26 -33
- 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 +25 -20
- package/src/components/composites/date-picker/date-picker.css +131 -154
- package/src/components/composites/date-picker/field-shell.tsx +7 -7
- package/src/components/composites/date-picker/range-panel.tsx +34 -34
- 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 +31 -41
- 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 +36 -27
- 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 +34 -34
- 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 +2 -4
- package/src/components/composites/pagination/Pagination.tsx +7 -7
- package/src/components/composites/pagination/pagination.css +10 -15
- package/src/components/composites/popover/Popover.tsx +2 -2
- package/src/components/composites/popover/popover.css +13 -15
- 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 +66 -75
- package/src/components/composites/sheet/Sheet.tsx +2 -2
- package/src/components/composites/sheet/sheet.css +12 -14
- 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 +76 -84
- 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 +82 -90
- package/src/components/composites/toast/Toast.tsx +23 -18
- package/src/components/composites/toast/toast-store.ts +8 -6
- package/src/components/composites/toast/toast.css +49 -65
- 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 +16 -23
- package/src/components/compound/support-rail/SupportRail.tsx +33 -33
- package/src/components/compound/support-rail/support-rail.css +116 -100
- package/src/components/dev/MotionDevtools.tsx +28 -17
- package/src/components/dev/MotionDevtools.usage.md +2 -2
- package/src/components/dev/motion-devtools.css +42 -68
- 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 +19 -12
- package/src/components/expressive/facebook-feed/chrome.tsx +2 -2
- package/src/components/expressive/facebook-feed/facebook-feed.css +145 -148
- 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 +4 -4
- package/src/components/expressive/flow-field/flow-field.css +8 -4
- package/src/components/expressive/instagram-feed/InstagramFeed.tsx +52 -44
- package/src/components/expressive/instagram-feed/instagram-feed.css +65 -66
- package/src/components/expressive/lens/Lens.tsx +14 -14
- package/src/components/expressive/lens/lens.css +42 -38
- package/src/components/expressive/morphing-text/MorphingText.tsx +12 -13
- package/src/components/expressive/morphing-text/morphing-text.css +26 -16
- package/src/components/expressive/odometer/Odometer.tsx +9 -9
- package/src/components/expressive/odometer/odometer.css +22 -16
- package/src/components/expressive/tiktok/TikTok.tsx +54 -54
- package/src/components/expressive/tiktok/tiktok.css +113 -117
- package/src/components/expressive/typing-lines/TypingLines.tsx +0 -0
- package/src/components/expressive/typing-lines/typing-lines.css +17 -10
- package/src/components/expressive/weight-field/WeightField.tsx +4 -4
- package/src/components/expressive/weight-field/weight-field.css +31 -17
- 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 +90 -96
- package/src/components/internal/glass/glass.css +19 -22
- 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 +1 -5
- package/src/components/internal/icon/IconSlot.tsx +1 -1
- package/src/components/internal/icon/icon.css +7 -10
- 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 +54 -34
- 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 +4 -9
- package/src/components/internal/overlay/trigger.css +3 -3
- 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 +51 -50
- 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 +30 -36
- package/src/components/primitives/badge/digit-strip.css +16 -16
- package/src/components/primitives/badge/digit-strip.tsx +4 -4
- package/src/components/primitives/button/Button.tsx +8 -8
- package/src/components/primitives/button/button.css +80 -96
- 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 +27 -32
- package/src/components/primitives/collapse/Collapse.tsx +2 -2
- package/src/components/primitives/collapse/collapse.css +15 -30
- 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 +76 -84
- package/src/components/primitives/radio-group/RadioGroup.tsx +23 -23
- package/src/components/primitives/radio-group/radio-group.css +60 -73
- 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 +48 -53
- package/src/components/primitives/textarea/Textarea.tsx +13 -14
- package/src/components/primitives/textarea/textarea.css +46 -49
- package/src/components/primitives/toggle/Toggle.tsx +7 -7
- package/src/components/primitives/toggle/toggle.css +26 -31
- package/src/engine/animate.ts +2 -1
- package/src/engine/flip.ts +2 -1
- package/src/mcp/server.ts +3 -1
- 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 +7 -15
- package/src/tokens/base.css +15 -0
- package/src/tokens/color.css +19 -59
- package/src/tokens/component-styles.generated.ts +79 -151
- package/src/tokens/dark.css +63 -0
- package/src/tokens/decisions.css +26 -0
- package/src/tokens/elevation.css +71 -21
- package/src/tokens/fonts.css +0 -2
- package/src/tokens/glass.css +15 -9
- 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 +12 -22
- package/src/tokens/radius.css +10 -9
- package/src/tokens/semantic.css +57 -37
- package/src/tokens/spacing.css +5 -6
- package/src/tokens/theme-sync.tsx +15 -0
- package/src/tokens/theme-tokens.generated.ts +682 -1109
- package/src/tokens/theme.tsx +22 -16
- package/src/tokens/theme.usage.md +19 -13
- package/src/tokens/typography.css +16 -19
- package/tailwind.css +193 -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.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-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,14 +1,14 @@
|
|
|
1
1
|
@layer zyncat.tokens, zyncat.components;
|
|
2
2
|
|
|
3
3
|
@layer zyncat.components {
|
|
4
|
-
.on-emoji,
|
|
5
|
-
.on-emoji *,
|
|
6
|
-
.on-emoji-body,
|
|
7
|
-
.on-emoji-body * {
|
|
4
|
+
.zc-on-emoji,
|
|
5
|
+
.zc-on-emoji *,
|
|
6
|
+
.zc-on-emoji-body,
|
|
7
|
+
.zc-on-emoji-body * {
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.on-emoji {
|
|
11
|
+
.zc-on-emoji {
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
width: var(--emoji-picker-width, 23.5rem);
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
border-radius: var(--radius-lg);
|
|
19
19
|
box-shadow: var(--shadow-lg);
|
|
20
20
|
color: var(--text-body);
|
|
21
|
-
font-family: var(--font-
|
|
21
|
+
font-family: var(--font-body);
|
|
22
22
|
font-size: var(--size-body);
|
|
23
23
|
}
|
|
24
|
-
.on-emoji-body {
|
|
24
|
+
.zc-on-emoji-body {
|
|
25
25
|
display: flex;
|
|
26
26
|
flex: 1;
|
|
27
27
|
flex-direction: column;
|
|
28
28
|
min-height: 0;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.on-emoji-search {
|
|
31
|
+
.zc-on-emoji-search {
|
|
32
32
|
flex: none;
|
|
33
33
|
padding: var(--space-2) var(--space-2) var(--space-1);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.on-emoji-bar {
|
|
36
|
+
.zc-on-emoji-bar {
|
|
37
37
|
position: relative;
|
|
38
38
|
display: flex;
|
|
39
39
|
flex: none;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
padding: var(--space-1) var(--space-2);
|
|
42
42
|
border-bottom: var(--border-hairline) solid var(--border-default);
|
|
43
43
|
}
|
|
44
|
-
.on-emoji-cat {
|
|
44
|
+
.zc-on-emoji-cat {
|
|
45
45
|
position: relative;
|
|
46
46
|
z-index: 1;
|
|
47
47
|
display: inline-flex;
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
cursor: pointer;
|
|
57
57
|
transition: var(--transition-colors);
|
|
58
58
|
}
|
|
59
|
-
.on-emoji-cat:hover {
|
|
59
|
+
.zc-on-emoji-cat:hover {
|
|
60
60
|
color: var(--text-body);
|
|
61
61
|
}
|
|
62
|
-
.on-emoji-cat--active {
|
|
62
|
+
.zc-on-emoji-cat--active {
|
|
63
63
|
color: var(--text-accent);
|
|
64
64
|
}
|
|
65
|
-
.on-emoji-cat > svg {
|
|
65
|
+
.zc-on-emoji-cat > svg {
|
|
66
66
|
width: var(--icon-sm);
|
|
67
67
|
height: var(--icon-sm);
|
|
68
68
|
}
|
|
69
|
-
.on-emoji-cat-rail {
|
|
69
|
+
.zc-on-emoji-cat-rail {
|
|
70
70
|
position: absolute;
|
|
71
71
|
inset-inline: 0;
|
|
72
72
|
bottom: calc(2px - var(--space-1));
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
background: var(--accent);
|
|
78
78
|
pointer-events: none;
|
|
79
79
|
}
|
|
80
|
-
.on-emoji-bar-marker,
|
|
81
|
-
.on-emoji-marker {
|
|
80
|
+
.zc-on-emoji-bar-marker,
|
|
81
|
+
.zc-on-emoji-marker {
|
|
82
82
|
position: absolute;
|
|
83
83
|
top: 0;
|
|
84
84
|
left: 0;
|
|
@@ -86,23 +86,23 @@
|
|
|
86
86
|
opacity: 0;
|
|
87
87
|
pointer-events: none;
|
|
88
88
|
}
|
|
89
|
-
.on-emoji-bar-marker {
|
|
89
|
+
.zc-on-emoji-bar-marker {
|
|
90
90
|
border-radius: var(--radius-sm);
|
|
91
91
|
background: var(--neutral-wash);
|
|
92
92
|
will-change: transform, opacity;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.on-emoji-scroll {
|
|
95
|
+
.zc-on-emoji-scroll {
|
|
96
96
|
position: relative;
|
|
97
97
|
flex: 1;
|
|
98
98
|
min-height: 0;
|
|
99
99
|
overflow-y: auto;
|
|
100
100
|
scrollbar-width: none;
|
|
101
101
|
}
|
|
102
|
-
.on-emoji-scroll::-webkit-scrollbar {
|
|
102
|
+
.zc-on-emoji-scroll::-webkit-scrollbar {
|
|
103
103
|
display: none;
|
|
104
104
|
}
|
|
105
|
-
.on-emoji-marker {
|
|
105
|
+
.zc-on-emoji-marker {
|
|
106
106
|
width: 0;
|
|
107
107
|
height: 0;
|
|
108
108
|
border-radius: var(--radius-md);
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
will-change: transform, width, height, opacity;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
.on-emoji-header {
|
|
113
|
+
.zc-on-emoji-header {
|
|
114
114
|
position: sticky;
|
|
115
115
|
top: 0;
|
|
116
116
|
z-index: 10;
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
text-transform: uppercase;
|
|
122
122
|
color: var(--text-subtle);
|
|
123
123
|
}
|
|
124
|
-
.on-emoji-grid {
|
|
124
|
+
.zc-on-emoji-grid {
|
|
125
125
|
display: grid;
|
|
126
126
|
grid-template-columns: repeat(var(--cols, 8), 1fr);
|
|
127
127
|
gap: var(--space-1);
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
content-visibility: auto;
|
|
130
130
|
contain-intrinsic-height: auto calc(var(--rows, 1) * (var(--control-height-lg) + var(--space-1)) - var(--space-1));
|
|
131
131
|
}
|
|
132
|
-
.on-emoji-btn {
|
|
132
|
+
.zc-on-emoji-btn {
|
|
133
133
|
position: relative;
|
|
134
134
|
z-index: 1;
|
|
135
135
|
display: flex;
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
scroll-margin-top: var(--control-height);
|
|
147
147
|
scroll-margin-bottom: var(--space-2);
|
|
148
148
|
}
|
|
149
|
-
.on-emoji-btn-img {
|
|
149
|
+
.zc-on-emoji-btn-img {
|
|
150
150
|
display: block;
|
|
151
151
|
width: var(--icon-lg);
|
|
152
152
|
height: var(--icon-lg);
|
|
@@ -159,20 +159,20 @@
|
|
|
159
159
|
transform: translateY(var(--distance-sm)) scale(var(--scale-chip));
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
.on-emoji-scroll .on-emoji-btn {
|
|
162
|
+
.zc-on-emoji-scroll .zc-on-emoji-btn {
|
|
163
163
|
--emoji-picker-stagger-step: 10ms;
|
|
164
164
|
animation: on-emoji-tile-in var(--duration-base) var(--ease-entrance) both;
|
|
165
165
|
animation-delay: min(calc(var(--i, 0) * var(--emoji-picker-stagger-step)), var(--duration-slower));
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
.on-emoji-empty {
|
|
168
|
+
.zc-on-emoji-empty {
|
|
169
169
|
padding: var(--space-6) var(--space-4);
|
|
170
170
|
color: var(--text-muted);
|
|
171
171
|
font: var(--type-caption);
|
|
172
172
|
text-align: center;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
.on-emoji-caption {
|
|
175
|
+
.zc-on-emoji-caption {
|
|
176
176
|
display: flex;
|
|
177
177
|
flex: none;
|
|
178
178
|
align-items: center;
|
|
@@ -181,13 +181,13 @@
|
|
|
181
181
|
padding: 0 var(--space-3);
|
|
182
182
|
border-top: var(--border-hairline) solid var(--border-default);
|
|
183
183
|
}
|
|
184
|
-
.on-emoji-caption-img {
|
|
184
|
+
.zc-on-emoji-caption-img {
|
|
185
185
|
flex: none;
|
|
186
186
|
width: var(--icon-md);
|
|
187
187
|
height: var(--icon-md);
|
|
188
188
|
user-select: none;
|
|
189
189
|
}
|
|
190
|
-
.on-emoji-caption-name {
|
|
190
|
+
.zc-on-emoji-caption-name {
|
|
191
191
|
overflow: hidden;
|
|
192
192
|
color: var(--text-body);
|
|
193
193
|
font: var(--type-caption);
|
|
@@ -195,21 +195,21 @@
|
|
|
195
195
|
white-space: nowrap;
|
|
196
196
|
text-overflow: ellipsis;
|
|
197
197
|
}
|
|
198
|
-
.on-emoji-caption-name::first-letter {
|
|
198
|
+
.zc-on-emoji-caption-name::first-letter {
|
|
199
199
|
text-transform: uppercase;
|
|
200
200
|
}
|
|
201
|
-
.on-emoji-caption-code {
|
|
201
|
+
.zc-on-emoji-caption-code {
|
|
202
202
|
flex: none;
|
|
203
203
|
margin-left: auto;
|
|
204
204
|
color: var(--text-muted);
|
|
205
|
-
font: var(--type-
|
|
205
|
+
font: var(--type-code);
|
|
206
206
|
}
|
|
207
|
-
.on-emoji-caption.is-idle .on-emoji-caption-name {
|
|
207
|
+
.zc-on-emoji-caption.zc-is-idle .zc-on-emoji-caption-name {
|
|
208
208
|
color: var(--text-subtle);
|
|
209
209
|
font-weight: var(--weight-regular);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
.on-emoji--sheet {
|
|
212
|
+
.zc-on-emoji--sheet {
|
|
213
213
|
width: 100%;
|
|
214
214
|
height: min(var(--emoji-picker-height, 26.5rem), 70svh);
|
|
215
215
|
border-right: 0;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Where
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* - `"inline"` — inline within editor text (small)
|
|
7
|
-
* - `"picker-grid"` — main grid in the picker panel (medium)
|
|
8
|
-
* - `"category-bar"` — category tab icons (small, often animated)
|
|
9
|
-
* - `"callout-icon"` — callout block leading icon (medium)
|
|
2
|
+
* Where an emoji is rendered, so a `GetEmojiUrl` can vary provider, size or format per context: `inline` in
|
|
3
|
+
* editor text, `picker-grid` in the panel, `category-bar` for the tab icons, `callout-icon` for a callout's
|
|
4
|
+
* leading icon.
|
|
10
5
|
*/
|
|
11
6
|
export type EmojiUrlSource = 'inline' | 'picker-grid' | 'category-bar' | 'callout-icon';
|
|
12
7
|
|
|
@@ -87,8 +87,8 @@ export function Modal({
|
|
|
87
87
|
timings={timings}
|
|
88
88
|
animate={popIn(UIMotion.scale.panel, timings.open)}
|
|
89
89
|
exit={popOut(UIMotion.scale.panel, timings.close)}
|
|
90
|
-
layerClass="overlay-layer--modal"
|
|
91
|
-
panelClass="overlay-panel--modal"
|
|
90
|
+
layerClass="zc-overlay-layer--modal"
|
|
91
|
+
panelClass="zc-overlay-panel--modal"
|
|
92
92
|
panelId={panelId}
|
|
93
93
|
dismissible={dismissible}
|
|
94
94
|
container={container}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
@layer zyncat.tokens, zyncat.components;
|
|
2
2
|
|
|
3
3
|
@layer zyncat.components {
|
|
4
|
-
|
|
5
|
-
constrains it to the layer box. Everything else is the consumer's paint. */
|
|
6
|
-
.overlay-layer--modal {
|
|
4
|
+
.zc-overlay-layer--modal {
|
|
7
5
|
place-items: center;
|
|
8
6
|
}
|
|
9
|
-
.overlay-panel--modal {
|
|
7
|
+
.zc-overlay-panel--modal {
|
|
10
8
|
max-width: 100%;
|
|
11
9
|
max-height: 100%;
|
|
12
10
|
}
|
|
@@ -80,21 +80,21 @@ export function Pagination({
|
|
|
80
80
|
const nextBusy = loading && lastDirRef.current === 1;
|
|
81
81
|
|
|
82
82
|
return (
|
|
83
|
-
<nav className={cx('pgn', className)} aria-label={ariaLabel} aria-busy={loading || undefined} {...htmlProps}>
|
|
84
|
-
<span className="pgn__readout" aria-live="polite">
|
|
85
|
-
<span className="pgn__range" ref={rangeRef}>
|
|
83
|
+
<nav className={cx('zc-pgn', className)} aria-label={ariaLabel} aria-busy={loading || undefined} {...htmlProps}>
|
|
84
|
+
<span className="zc-pgn__readout" aria-live="polite">
|
|
85
|
+
<span className="zc-pgn__range" ref={rangeRef}>
|
|
86
86
|
<b>
|
|
87
87
|
{pgnFormat(from)}-{pgnFormat(to)}
|
|
88
88
|
</b>
|
|
89
|
-
{total != null ? <span className="pgn__total"> of {pgnFormat(total)}</span> : null}
|
|
89
|
+
{total != null ? <span className="zc-pgn__total"> of {pgnFormat(total)}</span> : null}
|
|
90
90
|
</span>
|
|
91
91
|
</span>
|
|
92
|
-
<div className="pgn__nav">
|
|
92
|
+
<div className="zc-pgn__nav">
|
|
93
93
|
<Button
|
|
94
94
|
variant="ghost"
|
|
95
95
|
size="sm"
|
|
96
96
|
ref={prevBtnRef}
|
|
97
|
-
className="pgn__btn pgn__btn--prev"
|
|
97
|
+
className="zc-pgn__btn zc-pgn__btn--prev"
|
|
98
98
|
loading={prevBusy}
|
|
99
99
|
disabled={!hasPrev || loading}
|
|
100
100
|
htmlProps={{ 'aria-label': 'Previous page' }}
|
|
@@ -109,7 +109,7 @@ export function Pagination({
|
|
|
109
109
|
variant="ghost"
|
|
110
110
|
size="sm"
|
|
111
111
|
ref={nextBtnRef}
|
|
112
|
-
className="pgn__btn pgn__btn--next"
|
|
112
|
+
className="zc-pgn__btn zc-pgn__btn--next"
|
|
113
113
|
loading={nextBusy}
|
|
114
114
|
disabled={!hasNext || loading}
|
|
115
115
|
htmlProps={{ 'aria-label': 'Next page' }}
|
|
@@ -1,47 +1,42 @@
|
|
|
1
1
|
@layer zyncat.tokens, zyncat.components;
|
|
2
2
|
|
|
3
3
|
@layer zyncat.components {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.pgn {
|
|
4
|
+
.zc-pgn {
|
|
7
5
|
display: inline-flex;
|
|
8
6
|
align-items: center;
|
|
9
7
|
gap: var(--space-3);
|
|
10
8
|
}
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
font: var(--type-mono);
|
|
10
|
+
.zc-pgn__readout {
|
|
11
|
+
font: var(--type-code);
|
|
15
12
|
font-variant-numeric: tabular-nums;
|
|
16
13
|
color: var(--text-subtle);
|
|
17
14
|
white-space: nowrap;
|
|
18
15
|
}
|
|
19
|
-
.pgn__range {
|
|
16
|
+
.zc-pgn__range {
|
|
20
17
|
display: inline-block;
|
|
21
18
|
}
|
|
22
|
-
.pgn__range b {
|
|
19
|
+
.zc-pgn__range b {
|
|
23
20
|
font-weight: var(--weight-medium);
|
|
24
21
|
color: var(--text-body);
|
|
25
22
|
}
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
.pgn__nav {
|
|
24
|
+
.zc-pgn__nav {
|
|
29
25
|
display: flex;
|
|
30
26
|
gap: var(--space-1);
|
|
31
27
|
}
|
|
32
|
-
.pgn__btn {
|
|
28
|
+
.zc-pgn__btn {
|
|
33
29
|
width: var(--control-height-sm);
|
|
34
30
|
padding: 0;
|
|
35
31
|
}
|
|
36
32
|
|
|
37
|
-
|
|
38
|
-
.pgn__btn .icon {
|
|
33
|
+
.zc-pgn__btn .zc-icon {
|
|
39
34
|
transition: transform var(--duration-fast) var(--ease-standard);
|
|
40
35
|
}
|
|
41
|
-
.pgn__btn--prev:hover:not(:disabled) .icon {
|
|
36
|
+
.zc-pgn__btn--prev:hover:not(:disabled) .zc-icon {
|
|
42
37
|
transform: translateX(calc(var(--space-px) * -1));
|
|
43
38
|
}
|
|
44
|
-
.pgn__btn--next:hover:not(:disabled) .icon {
|
|
39
|
+
.zc-pgn__btn--next:hover:not(:disabled) .zc-icon {
|
|
45
40
|
transform: translateX(var(--space-px));
|
|
46
41
|
}
|
|
47
42
|
}
|
|
@@ -97,9 +97,9 @@ function PopoverPanel({
|
|
|
97
97
|
{...htmlProps}
|
|
98
98
|
id={panelId}
|
|
99
99
|
ref={panelRef as RefObject<HTMLDivElement>}
|
|
100
|
-
className={cx('overlay-popover', htmlProps?.className)}
|
|
100
|
+
className={cx('zc-overlay-popover', htmlProps?.className)}
|
|
101
101
|
>
|
|
102
|
-
{arrow && <span className="overlay-popover__arrow" aria-hidden="true"></span>}
|
|
102
|
+
{arrow && <span className="zc-overlay-popover__arrow" aria-hidden="true"></span>}
|
|
103
103
|
{children}
|
|
104
104
|
</div>
|
|
105
105
|
);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
@layer 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>
|