@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
package/dist/instagram-feed.css
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
@layer zyncat.tokens, zyncat.components;
|
|
2
2
|
|
|
3
3
|
@layer zyncat.components {
|
|
4
|
-
.instagram-feed,
|
|
5
|
-
.instagram-feed *,
|
|
6
|
-
.instagram-feed *::before,
|
|
7
|
-
.instagram-feed *::after {
|
|
4
|
+
.zc-instagram-feed,
|
|
5
|
+
.zc-instagram-feed *,
|
|
6
|
+
.zc-instagram-feed *::before,
|
|
7
|
+
.zc-instagram-feed *::after {
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.instagram-feed {
|
|
11
|
+
.zc-instagram-feed {
|
|
12
12
|
display: block;
|
|
13
13
|
width: min(390px, 100%);
|
|
14
14
|
border: 1px solid #dbdbdb;
|
|
15
15
|
background: #ffffff;
|
|
16
16
|
color: #262626;
|
|
17
|
-
font-family: var(--font-
|
|
17
|
+
font-family: var(--font-body);
|
|
18
18
|
font-size: 14px;
|
|
19
19
|
line-height: 18px;
|
|
20
20
|
text-align: start;
|
|
21
21
|
-webkit-font-smoothing: antialiased;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.instagram-feed[data-width='web'] {
|
|
24
|
+
.zc-instagram-feed[data-width='web'] {
|
|
25
25
|
width: min(470px, 100%);
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
border-radius: 8px;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.instagram-feed__frame {
|
|
30
|
+
.zc-instagram-feed__frame {
|
|
31
31
|
position: relative;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.instagram-feed__header {
|
|
34
|
+
.zc-instagram-feed__header {
|
|
35
35
|
position: relative;
|
|
36
36
|
z-index: 3;
|
|
37
37
|
display: flex;
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
padding: 10px 12px;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.instagram-feed[data-width='web'] .instagram-feed__header {
|
|
43
|
+
.zc-instagram-feed[data-width='web'] .zc-instagram-feed__header {
|
|
44
44
|
padding: 12px 14px;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.instagram-feed[data-type='video'] .instagram-feed__header {
|
|
47
|
+
.zc-instagram-feed[data-type='video'] .zc-instagram-feed__header {
|
|
48
48
|
position: absolute;
|
|
49
49
|
top: 0;
|
|
50
50
|
right: 0;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
color: #ffffff;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.instagram-feed__ring {
|
|
55
|
+
.zc-instagram-feed__ring {
|
|
56
56
|
display: block;
|
|
57
57
|
flex: 0 0 auto;
|
|
58
58
|
width: 38px;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
background: linear-gradient(45deg, #f5a04b, #d64a6e, #8b5cf6);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.instagram-feed__avatar {
|
|
65
|
+
.zc-instagram-feed__avatar {
|
|
66
66
|
display: block;
|
|
67
67
|
overflow: hidden;
|
|
68
68
|
width: 100%;
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
background: #efefef;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.instagram-feed__avatar > * {
|
|
75
|
+
.zc-instagram-feed__avatar > * {
|
|
76
76
|
display: block;
|
|
77
77
|
width: 100%;
|
|
78
78
|
height: 100%;
|
|
79
79
|
object-fit: cover;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.instagram-feed__identity {
|
|
82
|
+
.zc-instagram-feed__identity {
|
|
83
83
|
display: flex;
|
|
84
84
|
flex: 1;
|
|
85
85
|
flex-direction: column;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
min-width: 0;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.instagram-feed__line {
|
|
90
|
+
.zc-instagram-feed__line {
|
|
91
91
|
display: flex;
|
|
92
92
|
gap: 5px;
|
|
93
93
|
align-items: center;
|
|
@@ -96,20 +96,20 @@
|
|
|
96
96
|
line-height: 18px;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.instagram-feed__handle {
|
|
99
|
+
.zc-instagram-feed__handle {
|
|
100
100
|
overflow: hidden;
|
|
101
101
|
font-weight: 600;
|
|
102
102
|
white-space: nowrap;
|
|
103
103
|
text-overflow: ellipsis;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.instagram-feed__sep,
|
|
107
|
-
.instagram-feed__stamp {
|
|
106
|
+
.zc-instagram-feed__sep,
|
|
107
|
+
.zc-instagram-feed__stamp {
|
|
108
108
|
flex: 0 0 auto;
|
|
109
109
|
opacity: 0.72;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
.instagram-feed__audio {
|
|
112
|
+
.zc-instagram-feed__audio {
|
|
113
113
|
overflow: hidden;
|
|
114
114
|
font-size: 12px;
|
|
115
115
|
line-height: 15px;
|
|
@@ -118,10 +118,10 @@
|
|
|
118
118
|
opacity: 0.72;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.instagram-feed__follow,
|
|
122
|
-
.instagram-feed__menu,
|
|
123
|
-
.instagram-feed__glyph-button,
|
|
124
|
-
.instagram-feed__mute {
|
|
121
|
+
.zc-instagram-feed__follow,
|
|
122
|
+
.zc-instagram-feed__menu,
|
|
123
|
+
.zc-instagram-feed__glyph-button,
|
|
124
|
+
.zc-instagram-feed__mute {
|
|
125
125
|
appearance: none;
|
|
126
126
|
margin: 0;
|
|
127
127
|
padding: 0;
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
background-color var(--duration-fast) var(--ease-standard);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
.instagram-feed__follow {
|
|
138
|
+
.zc-instagram-feed__follow {
|
|
139
139
|
flex: 0 0 auto;
|
|
140
140
|
padding: 7px 15px;
|
|
141
141
|
border-radius: 8px;
|
|
@@ -145,21 +145,21 @@
|
|
|
145
145
|
line-height: 18px;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
.instagram-feed[data-type='video'] .instagram-feed__follow {
|
|
148
|
+
.zc-instagram-feed[data-type='video'] .zc-instagram-feed__follow {
|
|
149
149
|
padding: 0;
|
|
150
150
|
background: transparent;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.instagram-feed__follow:hover {
|
|
153
|
+
.zc-instagram-feed__follow:hover {
|
|
154
154
|
background: #dbdbdb;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
.instagram-feed[data-type='video'] .instagram-feed__follow:hover {
|
|
157
|
+
.zc-instagram-feed[data-type='video'] .zc-instagram-feed__follow:hover {
|
|
158
158
|
background: transparent;
|
|
159
159
|
opacity: 0.7;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
.instagram-feed__menu {
|
|
162
|
+
.zc-instagram-feed__menu {
|
|
163
163
|
position: relative;
|
|
164
164
|
display: flex;
|
|
165
165
|
flex: 0 0 auto;
|
|
@@ -169,13 +169,13 @@
|
|
|
169
169
|
border-radius: 4px;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.instagram-feed__menu::before {
|
|
172
|
+
.zc-instagram-feed__menu::before {
|
|
173
173
|
content: '';
|
|
174
174
|
position: absolute;
|
|
175
175
|
inset: -9px;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
.instagram-feed__pip {
|
|
178
|
+
.zc-instagram-feed__pip {
|
|
179
179
|
display: block;
|
|
180
180
|
width: 3.5px;
|
|
181
181
|
height: 3.5px;
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
background: currentColor;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
.instagram-feed__media {
|
|
186
|
+
.zc-instagram-feed__media {
|
|
187
187
|
position: relative;
|
|
188
188
|
overflow: hidden;
|
|
189
189
|
width: 100%;
|
|
@@ -191,21 +191,21 @@
|
|
|
191
191
|
background: #efefef;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
.instagram-feed[data-ratio='1:1'] .instagram-feed__media {
|
|
194
|
+
.zc-instagram-feed[data-ratio='1:1'] .zc-instagram-feed__media {
|
|
195
195
|
aspect-ratio: 1 / 1;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
.instagram-feed[data-type='video'] .instagram-feed__media {
|
|
198
|
+
.zc-instagram-feed[data-type='video'] .zc-instagram-feed__media {
|
|
199
199
|
background: #000000;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
.instagram-feed__slot {
|
|
202
|
+
.zc-instagram-feed__slot {
|
|
203
203
|
position: absolute;
|
|
204
204
|
inset: 0;
|
|
205
205
|
display: block;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
.instagram-feed__slot > * {
|
|
208
|
+
.zc-instagram-feed__slot > * {
|
|
209
209
|
position: absolute;
|
|
210
210
|
inset: 0;
|
|
211
211
|
display: block;
|
|
@@ -214,11 +214,11 @@
|
|
|
214
214
|
object-fit: cover;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
.instagram-feed[data-type='video'] .instagram-feed__slot > * {
|
|
217
|
+
.zc-instagram-feed[data-type='video'] .zc-instagram-feed__slot > * {
|
|
218
218
|
object-fit: contain;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
.instagram-feed__mute {
|
|
221
|
+
.zc-instagram-feed__mute {
|
|
222
222
|
position: absolute;
|
|
223
223
|
right: 10px;
|
|
224
224
|
bottom: 10px;
|
|
@@ -231,14 +231,14 @@
|
|
|
231
231
|
background: rgba(0, 0, 0, 0.5);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
.instagram-feed[data-width='web'] .instagram-feed__mute {
|
|
234
|
+
.zc-instagram-feed[data-width='web'] .zc-instagram-feed__mute {
|
|
235
235
|
right: 12px;
|
|
236
236
|
bottom: 12px;
|
|
237
237
|
width: 28px;
|
|
238
238
|
height: 28px;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
.instagram-feed__mute-glyph {
|
|
241
|
+
.zc-instagram-feed__mute-glyph {
|
|
242
242
|
display: block;
|
|
243
243
|
width: 15px;
|
|
244
244
|
height: 15px;
|
|
@@ -249,12 +249,12 @@
|
|
|
249
249
|
stroke-width: 1.9;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
.instagram-feed[data-width='web'] .instagram-feed__mute-glyph {
|
|
252
|
+
.zc-instagram-feed[data-width='web'] .zc-instagram-feed__mute-glyph {
|
|
253
253
|
width: 16px;
|
|
254
254
|
height: 16px;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
.instagram-feed__burst {
|
|
257
|
+
.zc-instagram-feed__burst {
|
|
258
258
|
position: absolute;
|
|
259
259
|
inset: 0;
|
|
260
260
|
z-index: 1;
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
pointer-events: none;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
.instagram-feed__burst-glyph {
|
|
269
|
+
.zc-instagram-feed__burst-glyph {
|
|
270
270
|
display: block;
|
|
271
271
|
width: 100%;
|
|
272
272
|
height: 100%;
|
|
@@ -275,17 +275,17 @@
|
|
|
275
275
|
filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
.instagram-feed__actions {
|
|
278
|
+
.zc-instagram-feed__actions {
|
|
279
279
|
display: flex;
|
|
280
280
|
align-items: center;
|
|
281
281
|
padding: 9px 12px 5px;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
.instagram-feed[data-width='web'] .instagram-feed__actions {
|
|
284
|
+
.zc-instagram-feed[data-width='web'] .zc-instagram-feed__actions {
|
|
285
285
|
padding: 10px 14px 6px;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
.instagram-feed__group {
|
|
288
|
+
.zc-instagram-feed__group {
|
|
289
289
|
display: flex;
|
|
290
290
|
flex: 1;
|
|
291
291
|
gap: 15px;
|
|
@@ -293,35 +293,35 @@
|
|
|
293
293
|
min-width: 0;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
.instagram-feed[data-width='web'] .instagram-feed__group {
|
|
296
|
+
.zc-instagram-feed[data-width='web'] .zc-instagram-feed__group {
|
|
297
297
|
gap: 16px;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
.instagram-feed__action {
|
|
300
|
+
.zc-instagram-feed__action {
|
|
301
301
|
display: flex;
|
|
302
302
|
gap: 6px;
|
|
303
303
|
align-items: center;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
.instagram-feed__count {
|
|
306
|
+
.zc-instagram-feed__count {
|
|
307
307
|
font-size: 14px;
|
|
308
308
|
font-weight: 600;
|
|
309
309
|
line-height: 18px;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
.instagram-feed__glyph-button {
|
|
312
|
+
.zc-instagram-feed__glyph-button {
|
|
313
313
|
display: grid;
|
|
314
314
|
flex: 0 0 auto;
|
|
315
315
|
place-items: center;
|
|
316
316
|
border-radius: 4px;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
.instagram-feed__glyph-button:hover,
|
|
320
|
-
.instagram-feed__menu:hover {
|
|
319
|
+
.zc-instagram-feed__glyph-button:hover,
|
|
320
|
+
.zc-instagram-feed__menu:hover {
|
|
321
321
|
opacity: 0.6;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
.instagram-feed__glyph {
|
|
324
|
+
.zc-instagram-feed__glyph {
|
|
325
325
|
display: block;
|
|
326
326
|
width: 24px;
|
|
327
327
|
height: 24px;
|
|
@@ -335,16 +335,16 @@
|
|
|
335
335
|
stroke var(--duration-fast) var(--ease-standard);
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
.instagram-feed__glyph-button[aria-pressed='true'] .instagram-feed__glyph--like {
|
|
338
|
+
.zc-instagram-feed__glyph-button[aria-pressed='true'] .zc-instagram-feed__glyph--like {
|
|
339
339
|
fill: #ff3040;
|
|
340
340
|
stroke: #ff3040;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
.instagram-feed__glyph-button[aria-pressed='true'] .instagram-feed__glyph--save {
|
|
343
|
+
.zc-instagram-feed__glyph-button[aria-pressed='true'] .zc-instagram-feed__glyph--save {
|
|
344
344
|
fill: currentColor;
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
-
.instagram-feed__caption {
|
|
347
|
+
.zc-instagram-feed__caption {
|
|
348
348
|
margin: 0;
|
|
349
349
|
padding: 0 12px 14px;
|
|
350
350
|
font-size: 14px;
|
|
@@ -352,27 +352,26 @@
|
|
|
352
352
|
text-wrap: pretty;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
.instagram-feed[data-width='web'] .instagram-feed__caption {
|
|
355
|
+
.zc-instagram-feed[data-width='web'] .zc-instagram-feed__caption {
|
|
356
356
|
padding: 0 14px 16px;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
.instagram-feed__author {
|
|
359
|
+
.zc-instagram-feed__author {
|
|
360
360
|
font-weight: 600;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
.instagram-feed__link {
|
|
363
|
+
.zc-instagram-feed__link {
|
|
364
364
|
color: #00376b;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
.instagram-feed__more {
|
|
367
|
+
.zc-instagram-feed__more {
|
|
368
368
|
color: #8e8e8e;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
.instagram-feed__follow:focus-visible,
|
|
372
|
-
.instagram-feed__menu:focus-visible,
|
|
373
|
-
.instagram-feed__glyph-button:focus-visible,
|
|
374
|
-
.instagram-feed__mute:focus-visible {
|
|
375
|
-
outline:
|
|
376
|
-
box-shadow: var(--focus-ring);
|
|
371
|
+
.zc-instagram-feed__follow:focus-visible,
|
|
372
|
+
.zc-instagram-feed__menu:focus-visible,
|
|
373
|
+
.zc-instagram-feed__glyph-button:focus-visible,
|
|
374
|
+
.zc-instagram-feed__mute:focus-visible {
|
|
375
|
+
outline: var(--focus-ring);
|
|
377
376
|
}
|
|
378
377
|
}
|
package/dist/instagram-feed.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
'use client';import { animate } from './chunk-
|
|
1
|
+
'use client';import { animate } from './chunk-FEXUS4SV.js';
|
|
2
|
+
import './chunk-VNVVG47J.js';
|
|
2
3
|
import { useControllable } from './chunk-MMRIQNEN.js';
|
|
3
|
-
import { UIMotion } from './chunk-
|
|
4
|
+
import { UIMotion } from './chunk-N2GJEO5Z.js';
|
|
4
5
|
import { cx } from './chunk-QGNC7LH5.js';
|
|
5
6
|
import './instagram-feed.css';
|
|
6
7
|
import { useId, useRef } from 'react';
|
|
@@ -135,109 +136,117 @@ function InstagramFeed({
|
|
|
135
136
|
"article",
|
|
136
137
|
{
|
|
137
138
|
...htmlProps,
|
|
138
|
-
className: cx("instagram-feed", className),
|
|
139
|
+
className: cx("zc-instagram-feed", className),
|
|
139
140
|
style,
|
|
140
141
|
"aria-labelledby": handleId,
|
|
141
142
|
"data-type": type,
|
|
142
143
|
"data-width": width,
|
|
143
144
|
"data-ratio": ratio,
|
|
144
145
|
children: [
|
|
145
|
-
/* @__PURE__ */ jsxs("div", { className: "instagram-feed__frame", children: [
|
|
146
|
-
/* @__PURE__ */ jsxs("div", { className: "instagram-feed__header", children: [
|
|
147
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__ring", children: /* @__PURE__ */ jsx("span", { className: "instagram-feed__avatar", children: slotted(avatar) }) }),
|
|
148
|
-
/* @__PURE__ */ jsxs("div", { className: "instagram-feed__identity", children: [
|
|
149
|
-
/* @__PURE__ */ jsxs("div", { className: "instagram-feed__line", children: [
|
|
150
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__handle", id: handleId, children: handle }),
|
|
146
|
+
/* @__PURE__ */ jsxs("div", { className: "zc-instagram-feed__frame", children: [
|
|
147
|
+
/* @__PURE__ */ jsxs("div", { className: "zc-instagram-feed__header", children: [
|
|
148
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__ring", children: /* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__avatar", children: slotted(avatar) }) }),
|
|
149
|
+
/* @__PURE__ */ jsxs("div", { className: "zc-instagram-feed__identity", children: [
|
|
150
|
+
/* @__PURE__ */ jsxs("div", { className: "zc-instagram-feed__line", children: [
|
|
151
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__handle", id: handleId, children: handle }),
|
|
151
152
|
stamp ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
152
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__sep", "aria-hidden": "true", children: SEPARATOR }),
|
|
153
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__stamp", children: stamp })
|
|
153
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__sep", "aria-hidden": "true", children: SEPARATOR }),
|
|
154
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__stamp", children: stamp })
|
|
154
155
|
] }) : null
|
|
155
156
|
] }),
|
|
156
|
-
isVideo ? /* @__PURE__ */ jsx("div", { className: "instagram-feed__audio", children: audio }) : null
|
|
157
|
+
isVideo ? /* @__PURE__ */ jsx("div", { className: "zc-instagram-feed__audio", children: audio }) : null
|
|
157
158
|
] }),
|
|
158
|
-
width === "web" ? /* @__PURE__ */ jsx("button", { type: "button", className: "instagram-feed__follow", onClick: () => onAction?.("follow"), children: "Follow" }) : null,
|
|
159
|
+
width === "web" ? /* @__PURE__ */ jsx("button", { type: "button", className: "zc-instagram-feed__follow", onClick: () => onAction?.("follow"), children: "Follow" }) : null,
|
|
159
160
|
/* @__PURE__ */ jsxs(
|
|
160
161
|
"button",
|
|
161
162
|
{
|
|
162
163
|
type: "button",
|
|
163
|
-
className: "instagram-feed__menu",
|
|
164
|
+
className: "zc-instagram-feed__menu",
|
|
164
165
|
"aria-label": "More options",
|
|
165
166
|
onClick: () => onAction?.("menu"),
|
|
166
167
|
children: [
|
|
167
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__pip" }),
|
|
168
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__pip" }),
|
|
169
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__pip" })
|
|
168
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__pip" }),
|
|
169
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__pip" }),
|
|
170
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__pip" })
|
|
170
171
|
]
|
|
171
172
|
}
|
|
172
173
|
)
|
|
173
174
|
] }),
|
|
174
|
-
/* @__PURE__ */ jsxs("div", { className: "instagram-feed__media", onDoubleClick: burstLike, children: [
|
|
175
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__slot", children: slotted(media) }),
|
|
176
|
-
/* @__PURE__ */ jsx("span", { ref: burstRef, className: "instagram-feed__burst", "aria-hidden": "true", children: /* @__PURE__ */ jsx("svg", { className: "instagram-feed__burst-glyph", viewBox: "0 0 24 24", children: paths(HEART) }) }),
|
|
175
|
+
/* @__PURE__ */ jsxs("div", { className: "zc-instagram-feed__media", onDoubleClick: burstLike, children: [
|
|
176
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__slot", children: slotted(media) }),
|
|
177
|
+
/* @__PURE__ */ jsx("span", { ref: burstRef, className: "zc-instagram-feed__burst", "aria-hidden": "true", children: /* @__PURE__ */ jsx("svg", { className: "zc-instagram-feed__burst-glyph", viewBox: "0 0 24 24", children: paths(HEART) }) }),
|
|
177
178
|
isVideo ? /* @__PURE__ */ jsx(
|
|
178
179
|
"button",
|
|
179
180
|
{
|
|
180
181
|
type: "button",
|
|
181
|
-
className: "instagram-feed__mute",
|
|
182
|
+
className: "zc-instagram-feed__mute",
|
|
182
183
|
"aria-pressed": isMuted,
|
|
183
184
|
"aria-label": "Mute",
|
|
184
185
|
onClick: () => setMuted(!isMuted),
|
|
185
|
-
children: /* @__PURE__ */ jsx("svg", { className: "instagram-feed__mute-glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(isMuted ? SPEAKER_MUTED : SPEAKER_LOUD) })
|
|
186
|
+
children: /* @__PURE__ */ jsx("svg", { className: "zc-instagram-feed__mute-glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(isMuted ? SPEAKER_MUTED : SPEAKER_LOUD) })
|
|
186
187
|
}
|
|
187
188
|
) : null
|
|
188
189
|
] })
|
|
189
190
|
] }),
|
|
190
|
-
/* @__PURE__ */ jsxs("div", { className: "instagram-feed__actions", children: [
|
|
191
|
-
/* @__PURE__ */ jsxs("div", { className: "instagram-feed__group", children: [
|
|
192
|
-
/* @__PURE__ */ jsxs("span", { className: "instagram-feed__action", children: [
|
|
191
|
+
/* @__PURE__ */ jsxs("div", { className: "zc-instagram-feed__actions", children: [
|
|
192
|
+
/* @__PURE__ */ jsxs("div", { className: "zc-instagram-feed__group", children: [
|
|
193
|
+
/* @__PURE__ */ jsxs("span", { className: "zc-instagram-feed__action", children: [
|
|
193
194
|
/* @__PURE__ */ jsx(
|
|
194
195
|
"button",
|
|
195
196
|
{
|
|
196
197
|
ref: likeRef,
|
|
197
198
|
type: "button",
|
|
198
|
-
className: "instagram-feed__glyph-button",
|
|
199
|
+
className: "zc-instagram-feed__glyph-button",
|
|
199
200
|
"aria-pressed": isLiked,
|
|
200
201
|
"aria-label": "Like",
|
|
201
202
|
onClick: toggleLike,
|
|
202
|
-
children: /* @__PURE__ */ jsx(
|
|
203
|
+
children: /* @__PURE__ */ jsx(
|
|
204
|
+
"svg",
|
|
205
|
+
{
|
|
206
|
+
className: "zc-instagram-feed__glyph zc-instagram-feed__glyph--like",
|
|
207
|
+
viewBox: "0 0 24 24",
|
|
208
|
+
"aria-hidden": "true",
|
|
209
|
+
children: paths(HEART)
|
|
210
|
+
}
|
|
211
|
+
)
|
|
203
212
|
}
|
|
204
213
|
),
|
|
205
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__count", children: compact(likes + (isLiked ? 1 : 0)) })
|
|
214
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__count", children: compact(likes + (isLiked ? 1 : 0)) })
|
|
206
215
|
] }),
|
|
207
|
-
/* @__PURE__ */ jsxs("span", { className: "instagram-feed__action", children: [
|
|
216
|
+
/* @__PURE__ */ jsxs("span", { className: "zc-instagram-feed__action", children: [
|
|
208
217
|
/* @__PURE__ */ jsx(
|
|
209
218
|
"button",
|
|
210
219
|
{
|
|
211
220
|
type: "button",
|
|
212
|
-
className: "instagram-feed__glyph-button",
|
|
221
|
+
className: "zc-instagram-feed__glyph-button",
|
|
213
222
|
"aria-label": "Comment",
|
|
214
223
|
onClick: () => onAction?.("comment"),
|
|
215
|
-
children: /* @__PURE__ */ jsx("svg", { className: "instagram-feed__glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(SPEECH) })
|
|
224
|
+
children: /* @__PURE__ */ jsx("svg", { className: "zc-instagram-feed__glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(SPEECH) })
|
|
216
225
|
}
|
|
217
226
|
),
|
|
218
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__count", children: compact(comments) })
|
|
227
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__count", children: compact(comments) })
|
|
219
228
|
] }),
|
|
220
|
-
/* @__PURE__ */ jsxs("span", { className: "instagram-feed__action", children: [
|
|
229
|
+
/* @__PURE__ */ jsxs("span", { className: "zc-instagram-feed__action", children: [
|
|
221
230
|
/* @__PURE__ */ jsx(
|
|
222
231
|
"button",
|
|
223
232
|
{
|
|
224
233
|
type: "button",
|
|
225
|
-
className: "instagram-feed__glyph-button",
|
|
234
|
+
className: "zc-instagram-feed__glyph-button",
|
|
226
235
|
"aria-label": "Repost",
|
|
227
236
|
onClick: () => onAction?.("repost"),
|
|
228
|
-
children: /* @__PURE__ */ jsx("svg", { className: "instagram-feed__glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(REPOST) })
|
|
237
|
+
children: /* @__PURE__ */ jsx("svg", { className: "zc-instagram-feed__glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(REPOST) })
|
|
229
238
|
}
|
|
230
239
|
),
|
|
231
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__count", children: compact(reposts) })
|
|
240
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__count", children: compact(reposts) })
|
|
232
241
|
] }),
|
|
233
242
|
/* @__PURE__ */ jsx(
|
|
234
243
|
"button",
|
|
235
244
|
{
|
|
236
245
|
type: "button",
|
|
237
|
-
className: "instagram-feed__glyph-button",
|
|
246
|
+
className: "zc-instagram-feed__glyph-button",
|
|
238
247
|
"aria-label": "Share",
|
|
239
248
|
onClick: () => onAction?.("send"),
|
|
240
|
-
children: /* @__PURE__ */ jsx("svg", { className: "instagram-feed__glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(PAPER_PLANE) })
|
|
249
|
+
children: /* @__PURE__ */ jsx("svg", { className: "zc-instagram-feed__glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(PAPER_PLANE) })
|
|
241
250
|
}
|
|
242
251
|
)
|
|
243
252
|
] }),
|
|
@@ -246,21 +255,29 @@ function InstagramFeed({
|
|
|
246
255
|
{
|
|
247
256
|
ref: saveRef,
|
|
248
257
|
type: "button",
|
|
249
|
-
className: "instagram-feed__glyph-button",
|
|
258
|
+
className: "zc-instagram-feed__glyph-button",
|
|
250
259
|
"aria-pressed": isSaved,
|
|
251
260
|
"aria-label": "Save",
|
|
252
261
|
onClick: toggleSave,
|
|
253
|
-
children: /* @__PURE__ */ jsx(
|
|
262
|
+
children: /* @__PURE__ */ jsx(
|
|
263
|
+
"svg",
|
|
264
|
+
{
|
|
265
|
+
className: "zc-instagram-feed__glyph zc-instagram-feed__glyph--save",
|
|
266
|
+
viewBox: "0 0 24 24",
|
|
267
|
+
"aria-hidden": "true",
|
|
268
|
+
children: paths(BOOKMARK)
|
|
269
|
+
}
|
|
270
|
+
)
|
|
254
271
|
}
|
|
255
272
|
)
|
|
256
273
|
] }),
|
|
257
|
-
caption ? /* @__PURE__ */ jsxs("p", { className: "instagram-feed__caption", children: [
|
|
258
|
-
/* @__PURE__ */ jsx("span", { className: "instagram-feed__author", children: handle }),
|
|
274
|
+
caption ? /* @__PURE__ */ jsxs("p", { className: "zc-instagram-feed__caption", children: [
|
|
275
|
+
/* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__author", children: handle }),
|
|
259
276
|
" ",
|
|
260
277
|
segments.map(
|
|
261
|
-
(segment) => segment.link ? /* @__PURE__ */ jsx("span", { className: "instagram-feed__link", children: segment.text }, segment.key) : /* @__PURE__ */ jsx("span", { children: segment.text }, segment.key)
|
|
278
|
+
(segment) => segment.link ? /* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__link", children: segment.text }, segment.key) : /* @__PURE__ */ jsx("span", { children: segment.text }, segment.key)
|
|
262
279
|
),
|
|
263
|
-
clipped.clipped ? /* @__PURE__ */ jsx("span", { className: "instagram-feed__more", children: ELLIPSIS_MORE }) : null
|
|
280
|
+
clipped.clipped ? /* @__PURE__ */ jsx("span", { className: "zc-instagram-feed__more", children: ELLIPSIS_MORE }) : null
|
|
264
281
|
] }) : null
|
|
265
282
|
]
|
|
266
283
|
}
|