@zyncat/ui 0.13.0 → 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 +137 -25
- 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,21 +1,7 @@
|
|
|
1
1
|
@layer zyncat.tokens, zyncat.components;
|
|
2
2
|
|
|
3
3
|
@layer zyncat.components {
|
|
4
|
-
|
|
5
|
-
surface tokens so the <Button>/<Checkbox>/<Collapse> it dogfoods render natively.
|
|
6
|
-
|
|
7
|
-
Collapsed it's a small pill (gauge + current factor); opening morphs it into the full panel.
|
|
8
|
-
The width eases (CSS transition) in step with the <Collapse>-driven body height, so it grows
|
|
9
|
-
as one piece and never teleports. Everything that would change size on open lives INSIDE the
|
|
10
|
-
Collapse, so nothing clips while the pill is still narrow.
|
|
11
|
-
|
|
12
|
-
The one non-negotiable trick: it RESETS --duration-* to their canonical values on its own
|
|
13
|
-
root. The engine scales those tokens globally to slow the app; without this local reset the
|
|
14
|
-
panel's own controls - and this very expand/collapse - would slow down with everything else.
|
|
15
|
-
A motion debugger must stay crisp while the app runs in slow-mo. Token fallbacks keep it
|
|
16
|
-
legible if dropped in without the base layer. */
|
|
17
|
-
|
|
18
|
-
.mdt {
|
|
4
|
+
.zc-mdt {
|
|
19
5
|
/* immune to the global slow-mo the engine applies to --duration-* */
|
|
20
6
|
--duration-fast: 140ms;
|
|
21
7
|
--duration-base: 200ms;
|
|
@@ -29,36 +15,32 @@
|
|
|
29
15
|
--mdt-surface: color-mix(in oklab, var(--bg-surface, #fff) 88%, transparent);
|
|
30
16
|
|
|
31
17
|
position: fixed;
|
|
32
|
-
z-index: 2147483000;
|
|
18
|
+
z-index: 2147483000;
|
|
33
19
|
display: flex;
|
|
34
20
|
color: var(--text-body, oklch(0.35 0.01 264));
|
|
35
|
-
font-family: var(--font-
|
|
21
|
+
font-family: var(--font-body, ui-sans-serif, system-ui, sans-serif);
|
|
36
22
|
-webkit-font-smoothing: antialiased;
|
|
37
23
|
}
|
|
38
24
|
|
|
39
|
-
.mdt--top-left {
|
|
25
|
+
.zc-mdt--top-left {
|
|
40
26
|
top: var(--mdt-offset);
|
|
41
27
|
left: var(--mdt-offset);
|
|
42
28
|
}
|
|
43
|
-
.mdt--top-right {
|
|
29
|
+
.zc-mdt--top-right {
|
|
44
30
|
top: var(--mdt-offset);
|
|
45
31
|
right: var(--mdt-offset);
|
|
46
32
|
}
|
|
47
|
-
.mdt--bottom-left {
|
|
33
|
+
.zc-mdt--bottom-left {
|
|
48
34
|
bottom: var(--mdt-offset);
|
|
49
35
|
left: var(--mdt-offset);
|
|
50
36
|
}
|
|
51
|
-
.mdt--bottom-right {
|
|
37
|
+
.zc-mdt--bottom-right {
|
|
52
38
|
bottom: var(--mdt-offset);
|
|
53
39
|
right: var(--mdt-offset);
|
|
54
40
|
}
|
|
55
41
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.mdt__panel {
|
|
42
|
+
.zc-mdt__panel {
|
|
59
43
|
box-sizing: border-box;
|
|
60
|
-
/* Compact pill when collapsed; eases to the full panel width in step with the <Collapse>
|
|
61
|
-
body height below, so the whole thing morphs open and never teleports. */
|
|
62
44
|
width: 128px;
|
|
63
45
|
padding: 5px;
|
|
64
46
|
border: 1px solid var(--border-subtle, oklch(0.92 0.004 264));
|
|
@@ -72,7 +54,7 @@
|
|
|
72
54
|
width var(--duration-slow) var(--ease-entrance, ease),
|
|
73
55
|
box-shadow var(--duration-slow) var(--ease-entrance, ease);
|
|
74
56
|
}
|
|
75
|
-
.mdt__panel.is-open {
|
|
57
|
+
.zc-mdt__panel.zc-is-open {
|
|
76
58
|
width: 232px;
|
|
77
59
|
box-shadow: var(--shadow-xl, 0 24px 48px oklch(0 0 0 / 0.16));
|
|
78
60
|
}
|
|
@@ -84,9 +66,7 @@
|
|
|
84
66
|
}
|
|
85
67
|
}
|
|
86
68
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
.mdt__head {
|
|
69
|
+
.zc-mdt__head {
|
|
90
70
|
appearance: none;
|
|
91
71
|
width: 100%;
|
|
92
72
|
display: flex;
|
|
@@ -102,29 +82,28 @@
|
|
|
102
82
|
cursor: pointer;
|
|
103
83
|
transition: background var(--duration-fast) var(--ease-standard, ease);
|
|
104
84
|
}
|
|
105
|
-
.mdt__head:hover {
|
|
85
|
+
.zc-mdt__head:hover {
|
|
106
86
|
background: var(--neutral-wash, oklch(0.5 0.01 264 / 0.07));
|
|
107
87
|
}
|
|
108
|
-
.mdt__head:focus-visible {
|
|
109
|
-
outline:
|
|
110
|
-
box-shadow: var(--ring-accent, 0 0 0 3px oklch(0.7 0.12 185 / 0.35));
|
|
88
|
+
.zc-mdt__head:focus-visible {
|
|
89
|
+
outline: var(--ring-accent, 3px solid oklch(0.7 0.12 185 / 0.35));
|
|
111
90
|
}
|
|
112
91
|
|
|
113
|
-
.mdt__glyph {
|
|
92
|
+
.zc-mdt__glyph {
|
|
114
93
|
color: var(--text-subtle, oklch(0.6 0.01 264));
|
|
115
94
|
flex: none;
|
|
116
95
|
display: block;
|
|
117
96
|
}
|
|
118
|
-
.mdt--active .mdt__glyph {
|
|
97
|
+
.zc-mdt--active .zc-mdt__glyph {
|
|
119
98
|
color: var(--accent, oklch(0.62 0.12 185));
|
|
120
99
|
}
|
|
121
|
-
.mdt--paused .mdt__glyph {
|
|
100
|
+
.zc-mdt--paused .zc-mdt__glyph {
|
|
122
101
|
color: var(--warning, oklch(0.72 0.13 75));
|
|
123
102
|
}
|
|
124
|
-
.mdt__spacer {
|
|
103
|
+
.zc-mdt__spacer {
|
|
125
104
|
flex: 1;
|
|
126
105
|
}
|
|
127
|
-
.mdt__badge {
|
|
106
|
+
.zc-mdt__badge {
|
|
128
107
|
font-size: 0.75rem;
|
|
129
108
|
font-weight: 650;
|
|
130
109
|
font-variant-numeric: tabular-nums;
|
|
@@ -135,64 +114,60 @@
|
|
|
135
114
|
background: var(--neutral-wash, oklch(0.5 0.01 264 / 0.08));
|
|
136
115
|
white-space: nowrap;
|
|
137
116
|
}
|
|
138
|
-
.mdt--active .mdt__badge {
|
|
117
|
+
.zc-mdt--active .zc-mdt__badge {
|
|
139
118
|
color: var(--text-on-accent, #fff);
|
|
140
119
|
background: var(--accent, oklch(0.62 0.12 185));
|
|
141
120
|
}
|
|
142
|
-
.mdt--paused .mdt__badge {
|
|
121
|
+
.zc-mdt--paused .zc-mdt__badge {
|
|
143
122
|
color: var(--text-on-accent, #fff);
|
|
144
123
|
background: var(--warning, oklch(0.72 0.13 75));
|
|
145
124
|
}
|
|
146
|
-
.mdt__chevron {
|
|
125
|
+
.zc-mdt__chevron {
|
|
147
126
|
color: var(--text-subtle, oklch(0.6 0.01 264));
|
|
148
127
|
flex: none;
|
|
149
128
|
transition: transform var(--duration-base) var(--ease-standard, ease);
|
|
150
129
|
}
|
|
151
|
-
.mdt__chevron--open {
|
|
130
|
+
.zc-mdt__chevron--open {
|
|
152
131
|
transform: rotate(180deg);
|
|
153
132
|
}
|
|
154
133
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
.mdt__body {
|
|
134
|
+
.zc-mdt__body {
|
|
158
135
|
box-sizing: border-box;
|
|
159
|
-
/* Hold a stable layout width so controls don't reflow as the card animates open; the
|
|
160
|
-
collapsed pill is narrower, so this overflows and is clipped by <Collapse>'s overflow. */
|
|
161
136
|
width: 100%;
|
|
162
|
-
min-width: 208px;
|
|
137
|
+
min-width: 208px; /* wider than the collapsed pill on purpose: the controls never reflow while it opens */
|
|
163
138
|
display: flex;
|
|
164
139
|
flex-direction: column;
|
|
165
140
|
gap: 0.8125rem;
|
|
166
141
|
padding: 0.625rem 0.375rem 0.375rem;
|
|
167
142
|
}
|
|
168
143
|
|
|
169
|
-
.mdt__title {
|
|
144
|
+
.zc-mdt__title {
|
|
170
145
|
font-size: 0.6875rem;
|
|
171
146
|
font-weight: 650;
|
|
172
147
|
letter-spacing: 0.06em;
|
|
173
148
|
text-transform: uppercase;
|
|
174
149
|
color: var(--text-subtle, oklch(0.6 0.01 264));
|
|
175
150
|
}
|
|
176
|
-
.mdt__readout {
|
|
151
|
+
.zc-mdt__readout {
|
|
177
152
|
display: flex;
|
|
178
153
|
align-items: baseline;
|
|
179
154
|
gap: 0.375rem;
|
|
180
155
|
margin-top: -0.375rem;
|
|
181
156
|
}
|
|
182
|
-
.mdt__value {
|
|
157
|
+
.zc-mdt__value {
|
|
183
158
|
font-size: 1.5rem;
|
|
184
159
|
font-weight: 700;
|
|
185
160
|
font-variant-numeric: tabular-nums;
|
|
186
161
|
line-height: 1;
|
|
187
162
|
color: var(--text-strong, oklch(0.25 0.01 264));
|
|
188
163
|
}
|
|
189
|
-
.mdt__unit {
|
|
164
|
+
.zc-mdt__unit {
|
|
190
165
|
font-size: 0.75rem;
|
|
191
166
|
color: var(--text-muted, oklch(0.55 0.01 264));
|
|
192
167
|
font-weight: 500;
|
|
193
168
|
}
|
|
194
169
|
|
|
195
|
-
.mdt__slider {
|
|
170
|
+
.zc-mdt__slider {
|
|
196
171
|
-webkit-appearance: none;
|
|
197
172
|
appearance: none;
|
|
198
173
|
width: 100%;
|
|
@@ -207,7 +182,7 @@
|
|
|
207
182
|
cursor: pointer;
|
|
208
183
|
margin: 0;
|
|
209
184
|
}
|
|
210
|
-
.mdt__slider::-webkit-slider-thumb {
|
|
185
|
+
.zc-mdt__slider::-webkit-slider-thumb {
|
|
211
186
|
-webkit-appearance: none;
|
|
212
187
|
appearance: none;
|
|
213
188
|
width: 16px;
|
|
@@ -217,7 +192,7 @@
|
|
|
217
192
|
border: 2px solid var(--accent, oklch(0.62 0.12 185));
|
|
218
193
|
box-shadow: var(--shadow-sm, 0 1px 2px oklch(0 0 0 / 0.15));
|
|
219
194
|
}
|
|
220
|
-
.mdt__slider::-moz-range-thumb {
|
|
195
|
+
.zc-mdt__slider::-moz-range-thumb {
|
|
221
196
|
width: 16px;
|
|
222
197
|
height: 16px;
|
|
223
198
|
border-radius: 50%;
|
|
@@ -225,42 +200,41 @@
|
|
|
225
200
|
border: 2px solid var(--accent, oklch(0.62 0.12 185));
|
|
226
201
|
box-shadow: var(--shadow-sm, 0 1px 2px oklch(0 0 0 / 0.15));
|
|
227
202
|
}
|
|
228
|
-
.mdt__slider:focus-visible {
|
|
203
|
+
.zc-mdt__slider:focus-visible {
|
|
229
204
|
outline: none;
|
|
230
205
|
}
|
|
231
|
-
.mdt__slider:focus-visible::-webkit-slider-thumb {
|
|
232
|
-
|
|
206
|
+
.zc-mdt__slider:focus-visible::-webkit-slider-thumb {
|
|
207
|
+
outline: var(--ring-accent, 3px solid oklch(0.7 0.12 185 / 0.35));
|
|
233
208
|
}
|
|
234
|
-
.mdt__slider:focus-visible::-moz-range-thumb {
|
|
235
|
-
|
|
209
|
+
.zc-mdt__slider:focus-visible::-moz-range-thumb {
|
|
210
|
+
outline: var(--ring-accent, 3px solid oklch(0.7 0.12 185 / 0.35));
|
|
236
211
|
}
|
|
237
212
|
|
|
238
|
-
|
|
239
|
-
.mdt__chips {
|
|
213
|
+
.zc-mdt__chips {
|
|
240
214
|
display: grid;
|
|
241
215
|
grid-template-columns: repeat(5, 1fr);
|
|
242
216
|
gap: 0.25rem;
|
|
243
217
|
}
|
|
244
|
-
.mdt__chips .btn {
|
|
218
|
+
.zc-mdt__chips .zc-btn {
|
|
245
219
|
padding-inline: 0;
|
|
246
220
|
min-width: 0;
|
|
247
221
|
}
|
|
248
|
-
.mdt__row {
|
|
222
|
+
.zc-mdt__row {
|
|
249
223
|
display: flex;
|
|
250
224
|
gap: 0.375rem;
|
|
251
225
|
}
|
|
252
|
-
.mdt__row .btn {
|
|
226
|
+
.zc-mdt__row .zc-btn {
|
|
253
227
|
flex: 1;
|
|
254
228
|
}
|
|
255
229
|
|
|
256
|
-
.mdt__opt {
|
|
230
|
+
.zc-mdt__opt {
|
|
257
231
|
border-top: 1px solid var(--border-subtle, oklch(0.92 0.004 264));
|
|
258
232
|
padding-top: 0.75rem;
|
|
259
233
|
display: flex;
|
|
260
234
|
flex-direction: column;
|
|
261
235
|
gap: 0.5rem;
|
|
262
236
|
}
|
|
263
|
-
.mdt__hint {
|
|
237
|
+
.zc-mdt__hint {
|
|
264
238
|
font-size: 0.6875rem;
|
|
265
239
|
line-height: 1.45;
|
|
266
240
|
color: var(--text-subtle, oklch(0.6 0.01 264));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { clock } from '../../engine';
|
|
2
|
+
import { motionDefaults } from '../../tokens/motion-defaults.generated';
|
|
2
3
|
|
|
3
4
|
export interface SlowmoState {
|
|
4
5
|
/** 1 = real time. >1 = that many times slower (4 = quarter speed). */
|
|
@@ -13,15 +14,9 @@ export interface SlowmoOptions {
|
|
|
13
14
|
scaleTimers: boolean;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
const CANONICAL: Record<string, number> =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'--duration-slow': 300,
|
|
20
|
-
'--duration-slower': 450,
|
|
21
|
-
'--duration-slowest': 900,
|
|
22
|
-
'--duration-spin': 600,
|
|
23
|
-
'--duration-pulse': 1600,
|
|
24
|
-
};
|
|
17
|
+
const CANONICAL: Record<string, number> = Object.fromEntries(
|
|
18
|
+
Object.entries(motionDefaults.duration).map(([step, ms]) => [`--duration-${step}`, ms]),
|
|
19
|
+
);
|
|
25
20
|
const DURATION_TOKENS = Object.keys(CANONICAL);
|
|
26
21
|
const COLLAPSED_MS = 4;
|
|
27
22
|
const FROZEN_MS = 600_000;
|
|
@@ -36,6 +31,7 @@ const listeners = new Set<(s: SlowmoState) => void>();
|
|
|
36
31
|
|
|
37
32
|
let active = false;
|
|
38
33
|
let baseMs: Record<string, number> = {};
|
|
34
|
+
let overrideSheet: HTMLStyleElement | null = null;
|
|
39
35
|
|
|
40
36
|
type SetTimer = (handler: TimerHandler, timeout?: number, ...args: unknown[]) => number;
|
|
41
37
|
let origSetTimeout: SetTimer | null = null;
|
|
@@ -53,16 +49,21 @@ function readBaseMs(token: string): number {
|
|
|
53
49
|
}
|
|
54
50
|
|
|
55
51
|
function applyCssTokens() {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
if (!overrideSheet) {
|
|
53
|
+
overrideSheet = document.createElement('style');
|
|
54
|
+
overrideSheet.dataset.zyncatSlowmo = '';
|
|
55
|
+
document.head.append(overrideSheet);
|
|
60
56
|
}
|
|
57
|
+
const declarations = DURATION_TOKENS.map((token) => {
|
|
58
|
+
const ms = state.paused ? FROZEN_MS : baseMs[token] * state.factor;
|
|
59
|
+
return `${token}: ${ms}ms !important;`;
|
|
60
|
+
});
|
|
61
|
+
overrideSheet.textContent = `:root, [data-theme] { ${declarations.join(' ')} }`;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
function clearCssTokens() {
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
overrideSheet?.remove();
|
|
66
|
+
overrideSheet = null;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
function scaleDelay(delay?: number): number | undefined {
|
|
@@ -25,8 +25,8 @@ const PIXEL_RATIO_CAP = 2;
|
|
|
25
25
|
const PAPER_SLOTS = 5;
|
|
26
26
|
const DEFAULT_WEIGHT = 1;
|
|
27
27
|
const PAPER_KEYS = Array.from({ length: PAPER_SLOTS }, (_, i) => `--confetti-paper-${i + 1}`);
|
|
28
|
-
const REVERSE_KEYS = Array.from({ length: PAPER_SLOTS }, (_, i) => `--
|
|
29
|
-
const SHEEN_KEYS = Array.from({ length: PAPER_SLOTS }, (_, i) => `--
|
|
28
|
+
const REVERSE_KEYS = Array.from({ length: PAPER_SLOTS }, (_, i) => `--_confetti-reverse-${i + 1}`);
|
|
29
|
+
const SHEEN_KEYS = Array.from({ length: PAPER_SLOTS }, (_, i) => `--_confetti-sheen-${i + 1}`);
|
|
30
30
|
const WEIGHTS_KEY = '--confetti-weights';
|
|
31
31
|
|
|
32
32
|
const SCALE_REFERENCE = 700;
|
|
@@ -142,7 +142,7 @@ const CORNER_JITTER = 14;
|
|
|
142
142
|
const CORNER_LAUNCH = 14;
|
|
143
143
|
const CORNER_LAUNCH_JITTER = 12;
|
|
144
144
|
|
|
145
|
-
const VIEWPORT_CLASS = 'confetti--viewport';
|
|
145
|
+
const VIEWPORT_CLASS = 'zc-confetti--viewport';
|
|
146
146
|
|
|
147
147
|
export type ConfettiEmitter = 'sides' | 'top' | 'corners';
|
|
148
148
|
export type ConfettiField = 'container' | 'viewport';
|
|
@@ -714,7 +714,7 @@ export function Confetti({
|
|
|
714
714
|
const canvas = (
|
|
715
715
|
<canvas
|
|
716
716
|
ref={canvasRef}
|
|
717
|
-
className={cx('confetti', field === 'viewport' && VIEWPORT_CLASS, className)}
|
|
717
|
+
className={cx('zc-confetti', field === 'viewport' && VIEWPORT_CLASS, className)}
|
|
718
718
|
style={style}
|
|
719
719
|
aria-hidden="true"
|
|
720
720
|
{...htmlProps}
|
|
@@ -1,31 +1,38 @@
|
|
|
1
1
|
@layer zyncat.tokens, zyncat.components;
|
|
2
2
|
|
|
3
3
|
@layer zyncat.components {
|
|
4
|
-
.confetti {
|
|
4
|
+
.zc-confetti {
|
|
5
|
+
/* The five papers a burst draws from; a slot set to a role follows the theme. */
|
|
5
6
|
--confetti-paper-1: oklch(0.53 0.2 288);
|
|
6
7
|
--confetti-paper-2: var(--accent);
|
|
7
8
|
--confetti-paper-3: oklch(0.78 0.115 62);
|
|
8
9
|
--confetti-paper-4: oklch(0.67 0.18 12);
|
|
9
10
|
--confetti-paper-5: var(--text-strong);
|
|
11
|
+
/* How often each paper appears - five weights, in slot order. */
|
|
10
12
|
--confetti-weights: 1 1 1 1 0.45;
|
|
11
13
|
|
|
14
|
+
/* What the reverse side of a piece darkens toward. */
|
|
12
15
|
--confetti-ink: var(--text-strong);
|
|
16
|
+
/* What the glossy face of a piece brightens toward. */
|
|
13
17
|
--confetti-light: var(--bg-surface);
|
|
18
|
+
/* How far the reverse side leans toward the ink. */
|
|
14
19
|
--confetti-shade: 42%;
|
|
20
|
+
/* How far the glossy face leans toward the light. */
|
|
15
21
|
--confetti-gloss: 66%;
|
|
22
|
+
/* The z-index of a viewport-field burst. */
|
|
16
23
|
--confetti-layer: var(--layer-toast);
|
|
17
24
|
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
25
|
+
--_confetti-reverse-1: color-mix(in oklab, var(--confetti-ink) var(--confetti-shade), var(--confetti-paper-1));
|
|
26
|
+
--_confetti-reverse-2: color-mix(in oklab, var(--confetti-ink) var(--confetti-shade), var(--confetti-paper-2));
|
|
27
|
+
--_confetti-reverse-3: color-mix(in oklab, var(--confetti-ink) var(--confetti-shade), var(--confetti-paper-3));
|
|
28
|
+
--_confetti-reverse-4: color-mix(in oklab, var(--confetti-ink) var(--confetti-shade), var(--confetti-paper-4));
|
|
29
|
+
--_confetti-reverse-5: color-mix(in oklab, var(--confetti-ink) var(--confetti-shade), var(--confetti-paper-5));
|
|
23
30
|
|
|
24
|
-
--
|
|
25
|
-
--
|
|
26
|
-
--
|
|
27
|
-
--
|
|
28
|
-
--
|
|
31
|
+
--_confetti-sheen-1: color-mix(in oklab, var(--confetti-light) var(--confetti-gloss), var(--confetti-paper-1));
|
|
32
|
+
--_confetti-sheen-2: color-mix(in oklab, var(--confetti-light) var(--confetti-gloss), var(--confetti-paper-2));
|
|
33
|
+
--_confetti-sheen-3: color-mix(in oklab, var(--confetti-light) var(--confetti-gloss), var(--confetti-paper-3));
|
|
34
|
+
--_confetti-sheen-4: color-mix(in oklab, var(--confetti-light) var(--confetti-gloss), var(--confetti-paper-4));
|
|
35
|
+
--_confetti-sheen-5: color-mix(in oklab, var(--confetti-light) var(--confetti-gloss), var(--confetti-paper-5));
|
|
29
36
|
|
|
30
37
|
position: absolute;
|
|
31
38
|
inset: 0;
|
|
@@ -38,7 +45,7 @@
|
|
|
38
45
|
background: none;
|
|
39
46
|
}
|
|
40
47
|
|
|
41
|
-
.confetti--viewport {
|
|
48
|
+
.zc-confetti--viewport {
|
|
42
49
|
position: fixed;
|
|
43
50
|
z-index: var(--confetti-layer);
|
|
44
51
|
}
|
|
@@ -95,12 +95,12 @@ export function MediaSurface({ media, type, frontClassName, backClassName, front
|
|
|
95
95
|
{backClassName ? (
|
|
96
96
|
<div className={backClassName} style={style} aria-hidden="true">
|
|
97
97
|
{echo}
|
|
98
|
-
{filled ? null : <span className="facebook-feed-media__fill" />}
|
|
98
|
+
{filled ? null : <span className="zc-facebook-feed-media__fill" />}
|
|
99
99
|
</div>
|
|
100
100
|
) : null}
|
|
101
101
|
<div className={frontClassName} style={style} data-ratio={frontRatio}>
|
|
102
102
|
{node}
|
|
103
|
-
{filled ? null : <span className="facebook-feed-media__fill" />}
|
|
103
|
+
{filled ? null : <span className="zc-facebook-feed-media__fill" />}
|
|
104
104
|
</div>
|
|
105
105
|
</>
|
|
106
106
|
);
|