@zyncat/ui 0.11.0 → 0.13.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 +135 -40
- package/dist/alert.css +126 -121
- package/dist/alert.js +12 -14
- package/dist/alert.js.map +1 -1
- package/dist/avatar-group.js.map +1 -1
- package/dist/avatar.css +179 -174
- package/dist/avatar.js.map +1 -1
- package/dist/badge.css +166 -160
- package/dist/badge.js +1 -1
- package/dist/button.css +272 -246
- package/dist/button.js +1 -1
- package/dist/checkbox.css +158 -153
- package/dist/checkbox.js +2 -2
- package/dist/{chunk-AMFGY56I.js → chunk-227ZW4V7.js} +40 -32
- package/dist/chunk-227ZW4V7.js.map +1 -0
- package/dist/{chunk-2ERBBFZS.js → chunk-3MPF7FZV.js} +2 -2
- package/dist/chunk-3MPF7FZV.js.map +1 -0
- package/dist/{chunk-AIQXS2XY.js → chunk-43M6GQ4Q.js} +86 -79
- package/dist/chunk-43M6GQ4Q.js.map +1 -0
- package/dist/{chunk-7SZCJ7WI.js → chunk-45R4Z5XN.js} +3 -3
- package/dist/chunk-45R4Z5XN.js.map +1 -0
- package/dist/{chunk-I4XQ4PV2.js → chunk-4BSHB7R3.js} +9 -7
- package/dist/chunk-4BSHB7R3.js.map +1 -0
- package/dist/{chunk-YGGCQNNU.js → chunk-4C5RZXBT.js} +33 -34
- package/dist/chunk-4C5RZXBT.js.map +1 -0
- package/dist/{chunk-2QWJ6FAX.js → chunk-5PZ43DCG.js} +31 -15
- package/dist/chunk-5PZ43DCG.js.map +1 -0
- package/dist/{chunk-S5ZTZANS.js → chunk-7IZJERGA.js} +35 -12
- package/dist/chunk-7IZJERGA.js.map +1 -0
- package/dist/{chunk-DKVUPFQR.js → chunk-A5WTZACK.js} +22 -12
- package/dist/chunk-A5WTZACK.js.map +1 -0
- package/dist/{chunk-64UU4LGU.js → chunk-AADAJL7D.js} +3 -3
- package/dist/{chunk-64UU4LGU.js.map → chunk-AADAJL7D.js.map} +1 -1
- package/dist/{chunk-XJQQQJAO.js → chunk-CF4QHO4N.js} +21 -11
- package/dist/chunk-CF4QHO4N.js.map +1 -0
- package/dist/{chunk-WM5J5TDI.js → chunk-CNWTIMIP.js} +13 -17
- package/dist/chunk-CNWTIMIP.js.map +1 -0
- package/dist/{chunk-NGTA34V2.js → chunk-DDRSMHN4.js} +16 -10
- package/dist/chunk-DDRSMHN4.js.map +1 -0
- package/dist/{chunk-VTJTGVZZ.js → chunk-DMX2F6B4.js} +2 -2
- package/dist/chunk-DMX2F6B4.js.map +1 -0
- package/dist/{chunk-3SBCBYB7.js → chunk-EAI4POPB.js} +2 -2
- package/dist/{chunk-3SBCBYB7.js.map → chunk-EAI4POPB.js.map} +1 -1
- package/dist/{chunk-Y7AJQVWJ.js → chunk-EF6RPXU7.js} +17 -15
- package/dist/chunk-EF6RPXU7.js.map +1 -0
- package/dist/{chunk-WFHRAKN3.js → chunk-FONOS5RN.js} +14 -15
- package/dist/chunk-FONOS5RN.js.map +1 -0
- package/dist/{chunk-PMECHR3A.js → chunk-FQEHSKEI.js} +2 -2
- package/dist/chunk-FQEHSKEI.js.map +1 -0
- package/dist/chunk-HDSFWZ7L.js +12 -0
- package/dist/chunk-HDSFWZ7L.js.map +1 -0
- package/dist/{chunk-2F5PITAO.js → chunk-HY5MPISE.js} +2 -2
- package/dist/chunk-HY5MPISE.js.map +1 -0
- package/dist/{chunk-QDK66S4G.js → chunk-I45AU6KH.js} +3 -3
- package/dist/chunk-I45AU6KH.js.map +1 -0
- package/dist/{chunk-YGCVWGUG.js → chunk-IJS7TPGV.js} +153 -46
- package/dist/chunk-IJS7TPGV.js.map +1 -0
- package/dist/{chunk-62P3KD57.js → chunk-IUQAUBVM.js} +18 -11
- package/dist/chunk-IUQAUBVM.js.map +1 -0
- package/dist/chunk-JY6A2ZJZ.js +44 -0
- package/dist/chunk-JY6A2ZJZ.js.map +1 -0
- package/dist/{chunk-XWUWYSCT.js → chunk-M43IOM5C.js} +20 -10
- package/dist/chunk-M43IOM5C.js.map +1 -0
- package/dist/{chunk-S7B34VGN.js → chunk-OWNMRMPN.js} +3 -3
- package/dist/{chunk-S7B34VGN.js.map → chunk-OWNMRMPN.js.map} +1 -1
- package/dist/chunk-RFRE4WKX.js +22 -0
- package/dist/chunk-RFRE4WKX.js.map +1 -0
- package/dist/{chunk-NNXJCLTV.js → chunk-RJFGWJ4W.js} +2 -2
- package/dist/chunk-RJFGWJ4W.js.map +1 -0
- package/dist/{chunk-NEF5XAHG.js → chunk-TUTXXC3W.js} +4 -4
- package/dist/chunk-TUTXXC3W.js.map +1 -0
- package/dist/chunk-TVYH4AN7.js +70 -0
- package/dist/chunk-TVYH4AN7.js.map +1 -0
- package/dist/{chunk-U4MHX3KH.js → chunk-VAXCXZ53.js} +33 -12
- package/dist/chunk-VAXCXZ53.js.map +1 -0
- package/dist/chunk-XNIYSAMJ.js +52 -0
- package/dist/chunk-XNIYSAMJ.js.map +1 -0
- package/dist/{chunk-CONSWNIV.js → chunk-Y2YA7QRF.js} +6 -6
- package/dist/chunk-Y2YA7QRF.js.map +1 -0
- package/dist/cli.js +1828 -0
- package/dist/collapse.css +70 -61
- package/dist/collapse.js +2 -2
- package/dist/confetti.css +45 -0
- package/dist/confetti.js +540 -0
- package/dist/confetti.js.map +1 -0
- package/dist/count-badge.js +3 -3
- package/dist/count-badge.js.map +1 -1
- package/dist/date-field.js +24 -19
- package/dist/date-field.js.map +1 -1
- package/dist/date-picker.css +563 -559
- package/dist/date-range-field.js +58 -41
- package/dist/date-range-field.js.map +1 -1
- package/dist/datetime-field.js +24 -19
- package/dist/datetime-field.js.map +1 -1
- package/dist/dialog.css +176 -172
- package/dist/dialog.js +30 -19
- package/dist/dialog.js.map +1 -1
- package/dist/digit-strip.css +65 -0
- package/dist/dropdown.css +65 -0
- package/dist/dropdown.js +350 -0
- package/dist/dropdown.js.map +1 -0
- package/dist/emoji-picker.js +713 -0
- package/dist/emoji-picker.js.map +1 -0
- package/dist/facebook-feed.css +880 -0
- package/dist/facebook-feed.js +697 -0
- package/dist/facebook-feed.js.map +1 -0
- package/dist/flow-field.css +49 -0
- package/dist/flow-field.js +269 -0
- package/dist/flow-field.js.map +1 -0
- package/dist/glide.js +3 -3
- package/dist/icon.css +34 -30
- package/dist/input.css +296 -318
- package/dist/instagram-feed.css +378 -0
- package/dist/instagram-feed.js +272 -0
- package/dist/instagram-feed.js.map +1 -0
- package/dist/lens.css +119 -0
- package/dist/lens.js +307 -0
- package/dist/lens.js.map +1 -0
- package/dist/mcp.js +379 -181
- package/dist/menu-surface.css +127 -0
- package/dist/modal.css +11 -7
- package/dist/modal.js +24 -17
- package/dist/modal.js.map +1 -1
- package/dist/morphing-text.css +84 -0
- package/dist/morphing-text.js +256 -0
- package/dist/morphing-text.js.map +1 -0
- package/dist/motion-devtools.css +237 -233
- package/dist/motion-devtools.js +7 -6
- package/dist/motion-devtools.js.map +1 -1
- package/dist/motion-tokens.js +1 -1
- package/dist/multi-select.js +20 -17
- package/dist/multi-select.js.map +1 -1
- package/dist/number-field.js +11 -7
- package/dist/number-field.js.map +1 -1
- package/dist/odometer.css +58 -59
- package/dist/odometer.js +109 -0
- package/dist/odometer.js.map +1 -0
- package/dist/otp-field.js.map +1 -1
- package/dist/overlay.css +24 -20
- package/dist/pagination.css +42 -38
- package/dist/pagination.js +6 -12
- package/dist/pagination.js.map +1 -1
- package/dist/popover.css +69 -65
- package/dist/popover.js +12 -10
- package/dist/radio-group.css +275 -276
- package/dist/radio-group.js +70 -95
- package/dist/radio-group.js.map +1 -1
- package/dist/select.css +291 -386
- package/dist/select.js +18 -15
- package/dist/select.js.map +1 -1
- package/dist/sheet.css +47 -23
- package/dist/sheet.js +11 -10
- package/dist/status-badge.js +3 -3
- package/dist/status-badge.js.map +1 -1
- package/dist/styles.css +221 -0
- package/dist/support-rail.css +421 -0
- package/dist/support-rail.js +243 -0
- package/dist/support-rail.js.map +1 -0
- package/dist/table.css +333 -323
- package/dist/table.js +32 -21
- package/dist/table.js.map +1 -1
- package/dist/tabs.css +163 -156
- package/dist/tabs.js +26 -20
- package/dist/tabs.js.map +1 -1
- package/dist/tag.css +209 -231
- package/dist/tag.js +11 -10
- package/dist/tag.js.map +1 -1
- package/dist/text-field.js +7 -67
- package/dist/text-field.js.map +1 -1
- package/dist/textarea.css +205 -211
- package/dist/textarea.js +12 -12
- package/dist/textarea.js.map +1 -1
- package/dist/theme.js +69 -0
- package/dist/theme.js.map +1 -0
- package/dist/tiktok.css +662 -0
- package/dist/tiktok.js +494 -0
- package/dist/tiktok.js.map +1 -0
- package/dist/time-field.js +6 -6
- package/dist/time-field.js.map +1 -1
- package/dist/toast.css +237 -233
- package/dist/toast.js +43 -47
- package/dist/toast.js.map +1 -1
- package/dist/toggle-tag.js +1 -1
- package/dist/toggle-tag.js.map +1 -1
- package/dist/toggle.css +139 -135
- package/dist/toggle.js.map +1 -1
- package/dist/tooltip.css +79 -78
- package/dist/tooltip.js +50 -60
- package/dist/tooltip.js.map +1 -1
- package/dist/trigger.css +13 -0
- package/dist/{alert.d.ts → types/components/composites/alert/Alert.d.ts} +13 -15
- package/dist/{date-field.d.ts → types/components/composites/date-picker/DateField.d.ts} +4 -10
- package/dist/types/components/composites/date-picker/DateRangeField.d.ts +21 -0
- package/dist/{datetime-field.d.ts → types/components/composites/date-picker/DateTimeField.d.ts} +4 -10
- package/dist/{time-field.d.ts → types/components/composites/date-picker/TimeField.d.ts} +5 -11
- package/dist/types/components/composites/date-picker/calendar-panel.d.ts +16 -0
- package/dist/types/components/composites/date-picker/date-utils.d.ts +12 -0
- package/dist/types/components/composites/date-picker/field-shell.d.ts +46 -0
- package/dist/types/components/composites/date-picker/range-panel.d.ts +24 -0
- package/dist/types/components/composites/date-picker/time-core.d.ts +14 -0
- package/dist/types/components/composites/date-picker/use-day-focus.d.ts +2 -0
- package/dist/{dialog.d.ts → types/components/composites/dialog/Dialog.d.ts} +10 -11
- package/dist/types/components/composites/dropdown/Dropdown.d.ts +37 -0
- package/dist/types/components/composites/dropdown/menu-panel.d.ts +7 -0
- package/dist/types/components/composites/dropdown/types.d.ts +71 -0
- package/dist/types/components/composites/emoji-picker/EmojiPickerPanel.d.ts +45 -0
- package/dist/types/components/composites/emoji-picker/category-icons.d.ts +9 -0
- package/dist/types/components/composites/emoji-picker/data.d.ts +33 -0
- package/dist/types/components/composites/emoji-picker/dom.d.ts +19 -0
- package/dist/types/components/composites/emoji-picker/getEmojiUrl.d.ts +2 -0
- package/dist/types/components/composites/emoji-picker/navigation.d.ts +7 -0
- package/dist/types/components/composites/emoji-picker/picker.d.ts +20 -0
- package/dist/types/components/composites/emoji-picker/react/category-bar.d.ts +6 -0
- package/dist/types/components/composites/emoji-picker/react/useEmojiPicker.d.ts +50 -0
- package/dist/types/components/composites/emoji-picker/scaffold.d.ts +8 -0
- package/dist/types/components/composites/emoji-picker/search.d.ts +1 -0
- package/dist/types/components/composites/emoji-picker/types.d.ts +13 -0
- package/dist/{modal.d.ts → types/components/composites/modal/Modal.d.ts} +10 -11
- package/dist/{pagination.d.ts → types/components/composites/pagination/Pagination.d.ts} +5 -8
- package/dist/{popover.d.ts → types/components/composites/popover/Popover.d.ts} +11 -14
- package/dist/{multi-select.d.ts → types/components/composites/select/MultiSelect.d.ts} +12 -11
- package/dist/{select.d.ts → types/components/composites/select/Select.d.ts} +16 -14
- package/dist/types/components/composites/select/core/index.d.ts +4 -0
- package/dist/types/components/composites/select/core/menu.d.ts +13 -0
- package/dist/types/components/composites/select/core/panel.d.ts +18 -0
- package/dist/types/components/composites/select/core/trigger.d.ts +16 -0
- package/dist/{types-SGMShK7R.d.ts → types/components/composites/select/core/types.d.ts} +13 -6
- package/dist/types/components/composites/select/core/use-listbox.d.ts +42 -0
- package/dist/{sheet.d.ts → types/components/composites/sheet/Sheet.d.ts} +10 -11
- package/dist/types/components/composites/sheet/use-sheet-drag.d.ts +13 -0
- package/dist/{table.d.ts → types/components/composites/table/Table.d.ts} +12 -12
- package/dist/{tabs.d.ts → types/components/composites/tabs/Tabs.d.ts} +13 -13
- package/dist/types/components/composites/toast/Toast.d.ts +10 -0
- package/dist/{toast-store.d.ts → types/components/composites/toast/toast-store.d.ts} +12 -14
- package/dist/{tooltip.d.ts → types/components/composites/tooltip/Tooltip.d.ts} +6 -10
- package/dist/types/components/composites/tooltip/tooltip-host.d.ts +1 -0
- package/dist/types/components/composites/tooltip/tooltip-store.d.ts +29 -0
- package/dist/types/components/compound/support-rail/SupportRail.d.ts +41 -0
- package/dist/types/components/dev/MotionDevtools.d.ts +24 -0
- package/dist/types/components/dev/slowmo-engine.d.ts +27 -0
- package/dist/types/components/expressive/confetti/Confetti.d.ts +43 -0
- package/dist/types/components/expressive/facebook-feed/FacebookFeed.d.ts +73 -0
- package/dist/types/components/expressive/facebook-feed/chrome.d.ts +30 -0
- package/dist/types/components/expressive/facebook-feed/icons.d.ts +21 -0
- package/dist/types/components/expressive/facebook-feed/post.d.ts +25 -0
- package/dist/types/components/expressive/facebook-feed/reel.d.ts +26 -0
- package/dist/types/components/expressive/facebook-feed/story.d.ts +20 -0
- package/dist/types/components/expressive/flow-field/FlowField.d.ts +23 -0
- package/dist/types/components/expressive/instagram-feed/InstagramFeed.d.ts +59 -0
- package/dist/types/components/expressive/lens/Lens.d.ts +23 -0
- package/dist/types/components/expressive/morphing-text/MorphingText.d.ts +21 -0
- package/dist/types/components/expressive/odometer/Odometer.d.ts +21 -0
- package/dist/types/components/expressive/tiktok/TikTok.d.ts +85 -0
- package/dist/types/components/expressive/tiktok/glyphs.d.ts +40 -0
- package/dist/types/components/expressive/typing-lines/TypingLines.d.ts +25 -0
- package/dist/types/components/expressive/weight-field/WeightField.d.ts +19 -0
- package/dist/types/components/expressive/youtube/YouTube.d.ts +73 -0
- package/dist/types/components/expressive/youtube/format.d.ts +2 -0
- package/dist/types/components/expressive/youtube/glyphs.d.ts +16 -0
- package/dist/types/components/expressive/youtube/media.d.ts +8 -0
- package/dist/types/components/expressive/youtube/post.d.ts +19 -0
- package/dist/types/components/expressive/youtube/short.d.ts +18 -0
- package/dist/types/components/expressive/youtube/video.d.ts +14 -0
- package/dist/types/components/internal/collection/collection.d.ts +19 -0
- package/dist/types/components/internal/glass/glint.d.ts +1 -0
- package/dist/types/components/internal/hooks/use-controllable.d.ts +1 -0
- package/dist/types/components/internal/hooks/use-media-query.d.ts +1 -0
- package/dist/types/components/internal/hooks/use-scroll-edges.d.ts +10 -0
- package/dist/types/components/internal/hooks/use-typeahead.d.ts +5 -0
- package/dist/types/components/internal/icon/Icon.d.ts +33 -0
- package/dist/types/components/internal/icon/IconSlot.d.ts +7 -0
- package/dist/types/components/internal/menu/menu-row.d.ts +11 -0
- package/dist/types/components/internal/overlay/focus.d.ts +8 -0
- package/dist/types/components/internal/overlay/layer.d.ts +38 -0
- package/dist/types/components/internal/overlay/modal.d.ts +18 -0
- package/dist/types/components/internal/overlay/position.d.ts +14 -0
- package/dist/types/components/internal/support/types.d.ts +15 -0
- package/dist/types/components/internal/utils/activation.d.ts +23 -0
- package/dist/types/components/internal/utils/cx.d.ts +1 -0
- package/dist/types/components/internal/utils/token-px.d.ts +1 -0
- package/dist/{avatar.d.ts → types/components/primitives/avatar/Avatar.d.ts} +10 -12
- package/dist/{avatar-group.d.ts → types/components/primitives/avatar/AvatarGroup.d.ts} +7 -9
- package/dist/{badge.d.ts → types/components/primitives/badge/Badge.d.ts} +8 -10
- package/dist/types/components/primitives/badge/CountBadge.d.ts +8 -0
- package/dist/types/components/primitives/badge/StatusBadge.d.ts +15 -0
- package/dist/types/components/primitives/badge/digit-strip.d.ts +5 -0
- package/dist/{button.d.ts → types/components/primitives/button/Button.d.ts} +6 -8
- package/dist/{checkbox.d.ts → types/components/primitives/checkbox/Checkbox.d.ts} +6 -8
- package/dist/types/components/primitives/checkbox/check-glyph.d.ts +6 -0
- package/dist/{collapse.d.ts → types/components/primitives/collapse/Collapse.d.ts} +12 -13
- package/dist/types/components/primitives/collapse/collapse.typecheck.d.ts +2 -0
- package/dist/{number-field.d.ts → types/components/primitives/input/NumberField.d.ts} +7 -9
- package/dist/{otp-field.d.ts → types/components/primitives/input/OtpField.d.ts} +6 -8
- package/dist/{text-field.d.ts → types/components/primitives/input/TextField.d.ts} +7 -9
- package/dist/types/components/primitives/input/field-chrome.d.ts +45 -0
- package/dist/{radio-group.d.ts → types/components/primitives/radio-group/RadioGroup.d.ts} +8 -10
- package/dist/{tag.d.ts → types/components/primitives/tag/Tag.d.ts} +9 -12
- package/dist/{toggle-tag.d.ts → types/components/primitives/tag/ToggleTag.d.ts} +7 -8
- package/dist/{textarea.d.ts → types/components/primitives/textarea/Textarea.d.ts} +7 -9
- package/dist/{toggle.d.ts → types/components/primitives/toggle/Toggle.d.ts} +6 -8
- package/dist/{dom-props-C0jrllBw.d.ts → types/dom-props.d.ts} +1 -3
- package/dist/types/engine/animate.d.ts +30 -0
- package/dist/types/engine/drag.d.ts +17 -0
- package/dist/types/engine/ease.d.ts +15 -0
- package/dist/types/engine/flip.d.ts +18 -0
- package/dist/types/engine/index.d.ts +4 -0
- package/dist/types/engine/loop.d.ts +9 -0
- package/dist/types/motion/element.d.ts +17 -0
- package/dist/types/motion/flip.d.ts +4 -0
- package/dist/types/motion/glide.d.ts +11 -0
- package/dist/types/motion/motion-timing.d.ts +16 -0
- package/dist/types/motion/presence-context.d.ts +11 -0
- package/dist/types/motion/presence.d.ts +12 -0
- package/dist/types/motion/presets.d.ts +6 -0
- package/dist/{timing-7JA_zQHP.d.ts → types/motion/timing.d.ts} +9 -9
- package/dist/types/motion/use-motion.d.ts +17 -0
- package/dist/types/tokens/component-styles.generated.d.ts +262 -0
- package/dist/{motion-scale-Canq4stZ.d.ts → types/tokens/motion-scale.d.ts} +4 -4
- package/dist/{motion-tokens.d.ts → types/tokens/motion-tokens.d.ts} +9 -9
- package/dist/types/tokens/theme-tokens.generated.d.ts +1249 -0
- package/dist/types/tokens/theme.d.ts +12 -0
- package/dist/typing-lines.css +92 -0
- package/dist/typing-lines.js +139 -0
- package/dist/typing-lines.js.map +1 -0
- package/dist/weight-field.css +84 -0
- package/dist/weight-field.js +17 -0
- package/dist/weight-field.js.map +1 -0
- package/dist/youtube.css +611 -0
- package/dist/youtube.js +814 -0
- package/dist/youtube.js.map +1 -0
- package/package.json +155 -49
- package/skills/zyncat-ui/SKILL.md +95 -0
- package/skills/zyncat-ui/references/components.md +85 -0
- package/skills/zyncat-ui/references/recipes.md +171 -0
- package/skills/zyncat-ui/references/theming.md +83 -0
- package/src/components/composites/alert/Alert.tsx +13 -11
- package/src/components/composites/alert/Alert.usage.md +15 -0
- package/src/components/composites/alert/alert.css +126 -121
- package/src/components/composites/date-picker/DateField.tsx +7 -2
- package/src/components/composites/date-picker/DateField.usage.md +10 -0
- package/src/components/composites/date-picker/DateRangeField.tsx +18 -16
- package/src/components/composites/date-picker/DateRangeField.usage.md +10 -0
- package/src/components/composites/date-picker/DateTimeField.tsx +10 -5
- package/src/components/composites/date-picker/DateTimeField.usage.md +12 -0
- package/src/components/composites/date-picker/TimeField.tsx +3 -1
- package/src/components/composites/date-picker/TimeField.usage.md +12 -0
- package/src/components/composites/date-picker/calendar-panel.tsx +15 -10
- package/src/components/composites/date-picker/date-picker.css +563 -559
- package/src/components/composites/date-picker/field-shell.tsx +9 -3
- package/src/components/composites/date-picker/range-panel.tsx +23 -8
- package/src/components/composites/date-picker/time-core.tsx +2 -0
- package/src/components/composites/dialog/Dialog.tsx +30 -15
- package/src/components/composites/dialog/Dialog.usage.md +17 -0
- package/src/components/composites/dialog/dialog.css +176 -172
- package/src/components/composites/dropdown/Dropdown.tsx +184 -0
- package/src/components/composites/dropdown/Dropdown.usage.md +19 -0
- package/src/components/composites/dropdown/dropdown.css +65 -0
- package/src/components/composites/dropdown/menu-panel.tsx +255 -0
- package/src/components/composites/dropdown/types.ts +95 -0
- package/src/components/composites/emoji-picker/EmojiPickerPanel.tsx +153 -0
- package/src/components/composites/emoji-picker/EmojiPickerPanel.usage.md +26 -0
- package/src/components/composites/emoji-picker/category-icons.ts +29 -0
- package/src/components/composites/emoji-picker/data.ts +83 -0
- package/src/components/composites/emoji-picker/dom.ts +79 -0
- package/src/components/composites/emoji-picker/getEmojiUrl.ts +17 -0
- package/src/components/composites/emoji-picker/navigation.ts +86 -0
- package/src/components/composites/emoji-picker/picker.ts +169 -0
- package/src/components/composites/emoji-picker/react/category-bar.tsx +77 -0
- package/src/components/composites/emoji-picker/react/useEmojiPicker.ts +139 -0
- package/src/components/composites/emoji-picker/scaffold.ts +74 -0
- package/src/components/composites/emoji-picker/search.ts +79 -0
- package/src/components/composites/emoji-picker/styles.css +221 -0
- package/src/components/composites/emoji-picker/types.ts +14 -0
- package/src/components/composites/modal/Modal.tsx +24 -13
- package/src/components/composites/modal/Modal.usage.md +24 -0
- package/src/components/composites/modal/modal.css +11 -7
- package/src/components/composites/pagination/Pagination.tsx +6 -11
- package/src/components/composites/pagination/Pagination.usage.md +12 -0
- package/src/components/composites/pagination/pagination.css +42 -38
- package/src/components/composites/popover/Popover.tsx +22 -7
- package/src/components/composites/popover/Popover.usage.md +15 -0
- package/src/components/composites/popover/popover.css +69 -65
- package/src/components/composites/select/MultiSelect.tsx +13 -5
- package/src/components/composites/select/MultiSelect.usage.md +12 -0
- package/src/components/composites/select/Select.tsx +23 -7
- package/src/components/composites/select/Select.usage.md +20 -0
- package/src/components/composites/select/core/index.ts +1 -1
- package/src/components/composites/select/core/menu.tsx +8 -6
- package/src/components/composites/select/core/panel.tsx +25 -26
- package/src/components/composites/select/core/trigger.tsx +36 -24
- package/src/components/composites/select/core/types.ts +17 -15
- package/src/components/composites/select/core/use-listbox.ts +22 -21
- package/src/components/composites/select/select.css +291 -386
- package/src/components/composites/sheet/Sheet.tsx +28 -18
- package/src/components/composites/sheet/Sheet.usage.md +15 -0
- package/src/components/composites/sheet/sheet.css +47 -23
- package/src/components/composites/sheet/use-sheet-drag.ts +19 -15
- package/src/components/composites/table/Table.tsx +17 -6
- package/src/components/composites/table/Table.usage.md +19 -0
- package/src/components/composites/table/table.css +333 -323
- package/src/components/composites/tabs/Tabs.tsx +31 -23
- package/src/components/composites/tabs/Tabs.usage.md +13 -0
- package/src/components/composites/tabs/tabs.css +163 -156
- package/src/components/composites/toast/Toast.tsx +48 -51
- package/src/components/composites/toast/Toast.usage.md +23 -0
- package/src/components/composites/toast/toast-store.usage.md +16 -0
- package/src/components/composites/toast/toast.css +237 -233
- package/src/components/composites/tooltip/Tooltip.tsx +13 -8
- package/src/components/composites/tooltip/Tooltip.usage.md +14 -0
- package/src/components/composites/tooltip/tooltip-host.tsx +29 -61
- package/src/components/composites/tooltip/tooltip-store.ts +10 -0
- package/src/components/composites/tooltip/tooltip.css +79 -78
- package/src/components/compound/support-rail/SupportRail.tsx +343 -0
- package/src/components/compound/support-rail/SupportRail.usage.md +18 -0
- package/src/components/compound/support-rail/support-rail.css +421 -0
- package/src/components/dev/MotionDevtools.tsx +3 -1
- package/src/components/dev/MotionDevtools.usage.md +16 -0
- package/src/components/dev/motion-devtools.css +237 -233
- package/src/components/expressive/confetti/Confetti.tsx +727 -0
- package/src/components/expressive/confetti/Confetti.usage.md +18 -0
- package/src/components/expressive/confetti/confetti.css +45 -0
- package/src/components/expressive/facebook-feed/FacebookFeed.tsx +200 -0
- package/src/components/expressive/facebook-feed/FacebookFeed.usage.md +18 -0
- package/src/components/expressive/facebook-feed/chrome.tsx +120 -0
- package/src/components/expressive/facebook-feed/facebook-feed.css +880 -0
- package/src/components/expressive/facebook-feed/icons.tsx +145 -0
- package/src/components/expressive/facebook-feed/post.tsx +213 -0
- package/src/components/expressive/facebook-feed/reel.tsx +199 -0
- package/src/components/expressive/facebook-feed/story.tsx +132 -0
- package/src/components/expressive/flow-field/FlowField.tsx +348 -0
- package/src/components/expressive/flow-field/FlowField.usage.md +19 -0
- package/src/components/expressive/flow-field/flow-field.css +49 -0
- package/src/components/expressive/instagram-feed/InstagramFeed.tsx +374 -0
- package/src/components/expressive/instagram-feed/InstagramFeed.usage.md +18 -0
- package/src/components/expressive/instagram-feed/instagram-feed.css +378 -0
- package/src/components/expressive/lens/Lens.tsx +415 -0
- package/src/components/expressive/lens/Lens.usage.md +20 -0
- package/src/components/expressive/lens/lens.css +119 -0
- package/src/components/expressive/morphing-text/MorphingText.tsx +328 -0
- package/src/components/expressive/morphing-text/MorphingText.usage.md +19 -0
- package/src/components/expressive/morphing-text/morphing-text.css +84 -0
- package/src/components/expressive/odometer/Odometer.tsx +158 -0
- package/src/components/expressive/odometer/Odometer.usage.md +17 -0
- package/src/components/expressive/odometer/odometer.css +61 -0
- package/src/components/expressive/tiktok/TikTok.tsx +542 -0
- package/src/components/expressive/tiktok/TikTok.usage.md +17 -0
- package/src/components/expressive/tiktok/glyphs.tsx +163 -0
- package/src/components/expressive/tiktok/tiktok.css +662 -0
- package/src/components/expressive/typing-lines/TypingLines.tsx +0 -0
- package/src/components/expressive/typing-lines/TypingLines.usage.md +17 -0
- package/src/components/expressive/typing-lines/typing-lines.css +92 -0
- package/src/components/expressive/weight-field/WeightField.tsx +41 -0
- package/src/components/expressive/weight-field/WeightField.usage.md +20 -0
- package/src/components/expressive/weight-field/weight-field.css +84 -0
- package/src/components/expressive/youtube/YouTube.tsx +192 -0
- package/src/components/expressive/youtube/YouTube.usage.md +18 -0
- package/src/components/expressive/youtube/format.ts +22 -0
- package/src/components/expressive/youtube/glyphs.tsx +235 -0
- package/src/components/expressive/youtube/media.tsx +18 -0
- package/src/components/expressive/youtube/post.tsx +282 -0
- package/src/components/expressive/youtube/short.tsx +212 -0
- package/src/components/expressive/youtube/video.tsx +75 -0
- package/src/components/expressive/youtube/youtube.css +611 -0
- package/src/components/internal/collection/collection.ts +44 -0
- package/src/components/internal/glass/glass.css +88 -84
- package/src/components/internal/hooks/use-media-query.ts +20 -0
- package/src/components/internal/hooks/use-typeahead.ts +28 -0
- package/src/components/internal/icon/Icon.tsx +2 -0
- package/src/components/internal/icon/IconSlot.tsx +2 -0
- package/src/components/internal/icon/icon.css +34 -30
- package/src/components/internal/menu/menu-row.tsx +34 -0
- package/src/components/internal/menu/menu-surface.css +127 -0
- package/src/components/internal/overlay/focus.ts +26 -10
- package/src/components/internal/overlay/layer.tsx +50 -9
- package/src/components/internal/overlay/modal.tsx +14 -12
- package/src/components/internal/overlay/overlay.css +24 -20
- package/src/components/internal/overlay/position.ts +19 -9
- package/src/components/internal/overlay/trigger.css +13 -0
- package/src/components/internal/support/types.ts +16 -0
- package/src/components/internal/utils/activation.ts +78 -0
- package/src/components/primitives/avatar/Avatar.tsx +2 -0
- package/src/components/primitives/avatar/Avatar.usage.md +12 -0
- package/src/components/primitives/avatar/AvatarGroup.tsx +3 -1
- package/src/components/primitives/avatar/AvatarGroup.usage.md +15 -0
- package/src/components/primitives/avatar/avatar.css +179 -174
- package/src/components/primitives/badge/Badge.tsx +3 -1
- package/src/components/primitives/badge/Badge.usage.md +14 -0
- package/src/components/primitives/badge/CountBadge.tsx +2 -2
- package/src/components/primitives/badge/CountBadge.usage.md +13 -0
- package/src/components/primitives/badge/StatusBadge.tsx +3 -1
- package/src/components/primitives/badge/StatusBadge.usage.md +14 -0
- package/src/components/primitives/badge/badge.css +166 -160
- package/src/components/primitives/badge/digit-strip.css +65 -0
- package/src/components/primitives/badge/{odometer.tsx → digit-strip.tsx} +3 -3
- package/src/components/primitives/button/Button.tsx +2 -0
- package/src/components/primitives/button/Button.usage.md +14 -0
- package/src/components/primitives/button/button.css +272 -246
- package/src/components/primitives/checkbox/Checkbox.tsx +3 -1
- package/src/components/primitives/checkbox/Checkbox.usage.md +12 -0
- package/src/components/primitives/checkbox/check-glyph.tsx +1 -0
- package/src/components/primitives/checkbox/checkbox.css +158 -153
- package/src/components/primitives/collapse/Collapse.tsx +3 -1
- package/src/components/primitives/collapse/Collapse.usage.md +17 -0
- package/src/components/primitives/collapse/collapse.css +70 -61
- package/src/components/primitives/collapse/collapse.typecheck.tsx +2 -0
- package/src/components/primitives/input/NumberField.tsx +18 -5
- package/src/components/primitives/input/NumberField.usage.md +12 -0
- package/src/components/primitives/input/OtpField.tsx +2 -0
- package/src/components/primitives/input/OtpField.usage.md +12 -0
- package/src/components/primitives/input/TextField.tsx +16 -4
- package/src/components/primitives/input/TextField.usage.md +13 -0
- package/src/components/primitives/input/field-chrome.tsx +11 -2
- package/src/components/primitives/input/input.css +296 -318
- package/src/components/primitives/radio-group/RadioGroup.tsx +20 -44
- package/src/components/primitives/radio-group/RadioGroup.usage.md +13 -0
- package/src/components/primitives/radio-group/radio-group.css +275 -276
- package/src/components/primitives/tag/Tag.tsx +10 -6
- package/src/components/primitives/tag/Tag.usage.md +14 -0
- package/src/components/primitives/tag/ToggleTag.tsx +4 -2
- package/src/components/primitives/tag/ToggleTag.usage.md +14 -0
- package/src/components/primitives/tag/tag.css +209 -231
- package/src/components/primitives/textarea/Textarea.tsx +17 -7
- package/src/components/primitives/textarea/Textarea.usage.md +12 -0
- package/src/components/primitives/textarea/textarea.css +205 -211
- package/src/components/primitives/toggle/Toggle.tsx +3 -1
- package/src/components/primitives/toggle/Toggle.usage.md +12 -0
- package/src/components/primitives/toggle/toggle.css +139 -135
- package/src/engine/animate.ts +40 -13
- package/src/engine/ease.ts +1 -0
- package/src/engine/flip.ts +32 -15
- package/src/engine/index.ts +2 -1
- package/src/engine/loop.ts +97 -0
- package/src/mcp/server.ts +315 -218
- package/src/motion/element.tsx +1 -0
- package/src/motion/flip.ts +29 -10
- package/src/motion/glide.tsx +11 -14
- package/src/motion/glide.usage.md +15 -0
- package/src/motion/motion-timing.ts +3 -3
- package/src/motion/presence.tsx +12 -5
- package/src/motion/presets.ts +13 -0
- package/src/motion/timing.ts +1 -0
- package/src/motion/use-motion.ts +16 -3
- package/src/styles.css +5 -0
- package/src/tokens/avatar.css +20 -16
- package/src/tokens/color.css +67 -56
- package/src/tokens/component-styles.generated.ts +270 -0
- package/src/tokens/elevation.css +28 -17
- package/src/tokens/fonts.css +1 -1
- package/src/tokens/glass.css +19 -15
- package/src/tokens/icons.css +8 -4
- package/src/tokens/layers.css +9 -4
- package/src/tokens/motion-scale.ts +4 -0
- package/src/tokens/motion-tokens.ts +42 -12
- package/src/tokens/motion-tokens.usage.md +16 -0
- package/src/tokens/motion.css +63 -45
- package/src/tokens/radius.css +12 -8
- package/src/tokens/semantic.css +62 -54
- package/src/tokens/spacing.css +25 -21
- package/src/tokens/theme-tokens.generated.ts +1278 -0
- package/src/tokens/theme.tsx +83 -0
- package/src/tokens/theme.usage.md +36 -0
- package/src/tokens/typography.css +53 -49
- package/dist/chunk-2ERBBFZS.js.map +0 -1
- package/dist/chunk-2F5PITAO.js.map +0 -1
- package/dist/chunk-2QWJ6FAX.js.map +0 -1
- package/dist/chunk-62P3KD57.js.map +0 -1
- package/dist/chunk-7SZCJ7WI.js.map +0 -1
- package/dist/chunk-AIQXS2XY.js.map +0 -1
- package/dist/chunk-AMFGY56I.js.map +0 -1
- package/dist/chunk-CONSWNIV.js.map +0 -1
- package/dist/chunk-DKVUPFQR.js.map +0 -1
- package/dist/chunk-I4XQ4PV2.js.map +0 -1
- package/dist/chunk-NEF5XAHG.js.map +0 -1
- package/dist/chunk-NGTA34V2.js.map +0 -1
- package/dist/chunk-NNXJCLTV.js.map +0 -1
- package/dist/chunk-PMECHR3A.js.map +0 -1
- package/dist/chunk-QDK66S4G.js.map +0 -1
- package/dist/chunk-S5ZTZANS.js.map +0 -1
- package/dist/chunk-U4MHX3KH.js.map +0 -1
- package/dist/chunk-VTJTGVZZ.js.map +0 -1
- package/dist/chunk-WFHRAKN3.js.map +0 -1
- package/dist/chunk-WM5J5TDI.js.map +0 -1
- package/dist/chunk-XJQQQJAO.js.map +0 -1
- package/dist/chunk-XWUWYSCT.js.map +0 -1
- package/dist/chunk-Y7AJQVWJ.js.map +0 -1
- package/dist/chunk-YGCVWGUG.js.map +0 -1
- package/dist/chunk-YGGCQNNU.js.map +0 -1
- package/dist/count-badge.d.ts +0 -13
- package/dist/date-range-field.d.ts +0 -33
- package/dist/field-chrome-CMPOQSLs.d.ts +0 -28
- package/dist/field-shell-Cuda-feL.d.ts +0 -24
- package/dist/glide.d.ts +0 -15
- package/dist/motion-devtools.d.ts +0 -51
- package/dist/status-badge.d.ts +0 -19
- package/dist/toast.d.ts +0 -12
- package/llms.txt +0 -220
- package/src/components/primitives/badge/odometer.css +0 -62
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
@layer zyncat.tokens, zyncat.components;
|
|
2
|
+
|
|
3
|
+
@layer zyncat.components {
|
|
4
|
+
.instagram-feed,
|
|
5
|
+
.instagram-feed *,
|
|
6
|
+
.instagram-feed *::before,
|
|
7
|
+
.instagram-feed *::after {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.instagram-feed {
|
|
12
|
+
display: block;
|
|
13
|
+
width: min(390px, 100%);
|
|
14
|
+
border: 1px solid #dbdbdb;
|
|
15
|
+
background: #ffffff;
|
|
16
|
+
color: #262626;
|
|
17
|
+
font-family: var(--font-sans);
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
line-height: 18px;
|
|
20
|
+
text-align: start;
|
|
21
|
+
-webkit-font-smoothing: antialiased;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.instagram-feed[data-width='web'] {
|
|
25
|
+
width: min(470px, 100%);
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.instagram-feed__frame {
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.instagram-feed__header {
|
|
35
|
+
position: relative;
|
|
36
|
+
z-index: 3;
|
|
37
|
+
display: flex;
|
|
38
|
+
gap: 11px;
|
|
39
|
+
align-items: center;
|
|
40
|
+
padding: 10px 12px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.instagram-feed[data-width='web'] .instagram-feed__header {
|
|
44
|
+
padding: 12px 14px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.instagram-feed[data-type='video'] .instagram-feed__header {
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
color: #ffffff;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.instagram-feed__ring {
|
|
56
|
+
display: block;
|
|
57
|
+
flex: 0 0 auto;
|
|
58
|
+
width: 38px;
|
|
59
|
+
height: 38px;
|
|
60
|
+
padding: 2px;
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
background: linear-gradient(45deg, #f5a04b, #d64a6e, #8b5cf6);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.instagram-feed__avatar {
|
|
66
|
+
display: block;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
border: 2px solid #ffffff;
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
background: #efefef;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.instagram-feed__avatar > * {
|
|
76
|
+
display: block;
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 100%;
|
|
79
|
+
object-fit: cover;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.instagram-feed__identity {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex: 1;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
gap: 1px;
|
|
87
|
+
min-width: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.instagram-feed__line {
|
|
91
|
+
display: flex;
|
|
92
|
+
gap: 5px;
|
|
93
|
+
align-items: center;
|
|
94
|
+
min-width: 0;
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
line-height: 18px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.instagram-feed__handle {
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
text-overflow: ellipsis;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.instagram-feed__sep,
|
|
107
|
+
.instagram-feed__stamp {
|
|
108
|
+
flex: 0 0 auto;
|
|
109
|
+
opacity: 0.72;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.instagram-feed__audio {
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
font-size: 12px;
|
|
115
|
+
line-height: 15px;
|
|
116
|
+
white-space: nowrap;
|
|
117
|
+
text-overflow: ellipsis;
|
|
118
|
+
opacity: 0.72;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.instagram-feed__follow,
|
|
122
|
+
.instagram-feed__menu,
|
|
123
|
+
.instagram-feed__glyph-button,
|
|
124
|
+
.instagram-feed__mute {
|
|
125
|
+
appearance: none;
|
|
126
|
+
margin: 0;
|
|
127
|
+
padding: 0;
|
|
128
|
+
border: 0;
|
|
129
|
+
background: none;
|
|
130
|
+
color: inherit;
|
|
131
|
+
font: inherit;
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
transition:
|
|
134
|
+
opacity var(--duration-fast) var(--ease-standard),
|
|
135
|
+
background-color var(--duration-fast) var(--ease-standard);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.instagram-feed__follow {
|
|
139
|
+
flex: 0 0 auto;
|
|
140
|
+
padding: 7px 15px;
|
|
141
|
+
border-radius: 8px;
|
|
142
|
+
background: #efefef;
|
|
143
|
+
font-size: 14px;
|
|
144
|
+
font-weight: 600;
|
|
145
|
+
line-height: 18px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.instagram-feed[data-type='video'] .instagram-feed__follow {
|
|
149
|
+
padding: 0;
|
|
150
|
+
background: transparent;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.instagram-feed__follow:hover {
|
|
154
|
+
background: #dbdbdb;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.instagram-feed[data-type='video'] .instagram-feed__follow:hover {
|
|
158
|
+
background: transparent;
|
|
159
|
+
opacity: 0.7;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.instagram-feed__menu {
|
|
163
|
+
position: relative;
|
|
164
|
+
display: flex;
|
|
165
|
+
flex: 0 0 auto;
|
|
166
|
+
gap: 3px;
|
|
167
|
+
align-items: center;
|
|
168
|
+
padding: 2px 4px;
|
|
169
|
+
border-radius: 4px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.instagram-feed__menu::before {
|
|
173
|
+
content: '';
|
|
174
|
+
position: absolute;
|
|
175
|
+
inset: -9px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.instagram-feed__pip {
|
|
179
|
+
display: block;
|
|
180
|
+
width: 3.5px;
|
|
181
|
+
height: 3.5px;
|
|
182
|
+
border-radius: 50%;
|
|
183
|
+
background: currentColor;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.instagram-feed__media {
|
|
187
|
+
position: relative;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
width: 100%;
|
|
190
|
+
aspect-ratio: 4 / 5;
|
|
191
|
+
background: #efefef;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.instagram-feed[data-ratio='1:1'] .instagram-feed__media {
|
|
195
|
+
aspect-ratio: 1 / 1;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.instagram-feed[data-type='video'] .instagram-feed__media {
|
|
199
|
+
background: #000000;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.instagram-feed__slot {
|
|
203
|
+
position: absolute;
|
|
204
|
+
inset: 0;
|
|
205
|
+
display: block;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.instagram-feed__slot > * {
|
|
209
|
+
position: absolute;
|
|
210
|
+
inset: 0;
|
|
211
|
+
display: block;
|
|
212
|
+
width: 100%;
|
|
213
|
+
height: 100%;
|
|
214
|
+
object-fit: cover;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.instagram-feed[data-type='video'] .instagram-feed__slot > * {
|
|
218
|
+
object-fit: contain;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.instagram-feed__mute {
|
|
222
|
+
position: absolute;
|
|
223
|
+
right: 10px;
|
|
224
|
+
bottom: 10px;
|
|
225
|
+
z-index: 2;
|
|
226
|
+
display: grid;
|
|
227
|
+
place-items: center;
|
|
228
|
+
width: 26px;
|
|
229
|
+
height: 26px;
|
|
230
|
+
border-radius: 50%;
|
|
231
|
+
background: rgba(0, 0, 0, 0.5);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.instagram-feed[data-width='web'] .instagram-feed__mute {
|
|
235
|
+
right: 12px;
|
|
236
|
+
bottom: 12px;
|
|
237
|
+
width: 28px;
|
|
238
|
+
height: 28px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.instagram-feed__mute-glyph {
|
|
242
|
+
display: block;
|
|
243
|
+
width: 15px;
|
|
244
|
+
height: 15px;
|
|
245
|
+
fill: none;
|
|
246
|
+
stroke: #ffffff;
|
|
247
|
+
stroke-linecap: round;
|
|
248
|
+
stroke-linejoin: round;
|
|
249
|
+
stroke-width: 1.9;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.instagram-feed[data-width='web'] .instagram-feed__mute-glyph {
|
|
253
|
+
width: 16px;
|
|
254
|
+
height: 16px;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.instagram-feed__burst {
|
|
258
|
+
position: absolute;
|
|
259
|
+
inset: 0;
|
|
260
|
+
z-index: 1;
|
|
261
|
+
display: block;
|
|
262
|
+
width: 88px;
|
|
263
|
+
height: 88px;
|
|
264
|
+
margin: auto;
|
|
265
|
+
opacity: 0;
|
|
266
|
+
pointer-events: none;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.instagram-feed__burst-glyph {
|
|
270
|
+
display: block;
|
|
271
|
+
width: 100%;
|
|
272
|
+
height: 100%;
|
|
273
|
+
fill: #ffffff;
|
|
274
|
+
stroke: none;
|
|
275
|
+
filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.instagram-feed__actions {
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
padding: 9px 12px 5px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.instagram-feed[data-width='web'] .instagram-feed__actions {
|
|
285
|
+
padding: 10px 14px 6px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.instagram-feed__group {
|
|
289
|
+
display: flex;
|
|
290
|
+
flex: 1;
|
|
291
|
+
gap: 15px;
|
|
292
|
+
align-items: center;
|
|
293
|
+
min-width: 0;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.instagram-feed[data-width='web'] .instagram-feed__group {
|
|
297
|
+
gap: 16px;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.instagram-feed__action {
|
|
301
|
+
display: flex;
|
|
302
|
+
gap: 6px;
|
|
303
|
+
align-items: center;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.instagram-feed__count {
|
|
307
|
+
font-size: 14px;
|
|
308
|
+
font-weight: 600;
|
|
309
|
+
line-height: 18px;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.instagram-feed__glyph-button {
|
|
313
|
+
display: grid;
|
|
314
|
+
flex: 0 0 auto;
|
|
315
|
+
place-items: center;
|
|
316
|
+
border-radius: 4px;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.instagram-feed__glyph-button:hover,
|
|
320
|
+
.instagram-feed__menu:hover {
|
|
321
|
+
opacity: 0.6;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.instagram-feed__glyph {
|
|
325
|
+
display: block;
|
|
326
|
+
width: 24px;
|
|
327
|
+
height: 24px;
|
|
328
|
+
fill: none;
|
|
329
|
+
stroke: currentColor;
|
|
330
|
+
stroke-linecap: round;
|
|
331
|
+
stroke-linejoin: round;
|
|
332
|
+
stroke-width: 1.7;
|
|
333
|
+
transition:
|
|
334
|
+
fill var(--duration-fast) var(--ease-standard),
|
|
335
|
+
stroke var(--duration-fast) var(--ease-standard);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.instagram-feed__glyph-button[aria-pressed='true'] .instagram-feed__glyph--like {
|
|
339
|
+
fill: #ff3040;
|
|
340
|
+
stroke: #ff3040;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.instagram-feed__glyph-button[aria-pressed='true'] .instagram-feed__glyph--save {
|
|
344
|
+
fill: currentColor;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.instagram-feed__caption {
|
|
348
|
+
margin: 0;
|
|
349
|
+
padding: 0 12px 14px;
|
|
350
|
+
font-size: 14px;
|
|
351
|
+
line-height: 18px;
|
|
352
|
+
text-wrap: pretty;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.instagram-feed[data-width='web'] .instagram-feed__caption {
|
|
356
|
+
padding: 0 14px 16px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.instagram-feed__author {
|
|
360
|
+
font-weight: 600;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.instagram-feed__link {
|
|
364
|
+
color: #00376b;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.instagram-feed__more {
|
|
368
|
+
color: #8e8e8e;
|
|
369
|
+
}
|
|
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: none;
|
|
376
|
+
box-shadow: var(--focus-ring);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
'use client';import { animate } from './chunk-IJS7TPGV.js';
|
|
2
|
+
import { useControllable } from './chunk-MMRIQNEN.js';
|
|
3
|
+
import { UIMotion } from './chunk-7IZJERGA.js';
|
|
4
|
+
import { cx } from './chunk-QGNC7LH5.js';
|
|
5
|
+
import './instagram-feed.css';
|
|
6
|
+
import { useId, useRef } from 'react';
|
|
7
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
var CAPTION_LIMIT = 125;
|
|
10
|
+
var CAPTION_BREAK_RATIO = 0.65;
|
|
11
|
+
var THOUSAND = 1e3;
|
|
12
|
+
var MILLION = 1e6;
|
|
13
|
+
var COMPACT_DIGITS = 1;
|
|
14
|
+
var LIKE_POP_FROM = 0.8;
|
|
15
|
+
var SAVE_POP_FROM = 0.86;
|
|
16
|
+
var BURST_ENTER_FROM = 0.4;
|
|
17
|
+
var BURST_BOUNCE = 0.42;
|
|
18
|
+
var BURST_EXIT_SCALE = 1.25;
|
|
19
|
+
var DEFAULT_AUDIO = "Original audio";
|
|
20
|
+
var SEPARATOR = "\u2022";
|
|
21
|
+
var ELLIPSIS_MORE = "... more";
|
|
22
|
+
var CAPTION_SEGMENTS = /([#@][^\s#@]+)/g;
|
|
23
|
+
var TRAILING_PUNCTUATION = /[\s,.;:—-]+$/;
|
|
24
|
+
var TRAILING_ZERO = /\.0$/;
|
|
25
|
+
var HEART = [
|
|
26
|
+
"M20.8 4.9a5.4 5.4 0 0 0-7.7 0L12 6l-1.1-1.1a5.4 5.4 0 0 0-7.7 7.7l8.8 8.8 8.8-8.8a5.4 5.4 0 0 0 0-7.7z"
|
|
27
|
+
];
|
|
28
|
+
var SPEECH = [
|
|
29
|
+
"M21 11.6a8.4 8.4 0 0 1-8.5 8.4 8.6 8.6 0 0 1-4-1L3 20.9l1.9-4.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 8.5-8.4 8.4 8.4 0 0 1 8.5 8.4z"
|
|
30
|
+
];
|
|
31
|
+
var REPOST = [
|
|
32
|
+
"M7.5 4.5 4 8l3.5 3.5",
|
|
33
|
+
"M4 8h12a4 4 0 0 1 4 4v1",
|
|
34
|
+
"M16.5 19.5 20 16l-3.5-3.5",
|
|
35
|
+
"M20 16H8a4 4 0 0 1-4-4v-1"
|
|
36
|
+
];
|
|
37
|
+
var PAPER_PLANE = ["M22 3 2 10.5l8 3.2 3.2 8L22 3z", "M10 13.7 22 3"];
|
|
38
|
+
var BOOKMARK = ["M6 3h12a.9.9 0 0 1 .9.9V21L12 16.2 5.1 21V3.9A.9.9 0 0 1 6 3z"];
|
|
39
|
+
var SPEAKER_BODY = "M11 5 6.5 9H3v6h3.5L11 19z";
|
|
40
|
+
var SPEAKER_MUTED = [SPEAKER_BODY, "M16 9.5 21 15", "M21 9.5 16 15"];
|
|
41
|
+
var SPEAKER_LOUD = [SPEAKER_BODY, "M16 9.6a4 4 0 0 1 0 4.8", "M18.6 7.2a7.6 7.6 0 0 1 0 9.6"];
|
|
42
|
+
function paths(list) {
|
|
43
|
+
return list.map((d) => /* @__PURE__ */ jsx("path", { d }, d));
|
|
44
|
+
}
|
|
45
|
+
function compact(value) {
|
|
46
|
+
const rounded = Math.max(0, Math.round(Number(value) || 0));
|
|
47
|
+
if (rounded >= MILLION) return `${(rounded / MILLION).toFixed(COMPACT_DIGITS).replace(TRAILING_ZERO, "")}M`;
|
|
48
|
+
if (rounded >= THOUSAND) return `${(rounded / THOUSAND).toFixed(COMPACT_DIGITS).replace(TRAILING_ZERO, "")}K`;
|
|
49
|
+
return String(rounded);
|
|
50
|
+
}
|
|
51
|
+
function clipCaption(text) {
|
|
52
|
+
if (text.length <= CAPTION_LIMIT) return { head: text, clipped: false };
|
|
53
|
+
let breakAt = text.lastIndexOf(" ", CAPTION_LIMIT);
|
|
54
|
+
if (breakAt < CAPTION_LIMIT * CAPTION_BREAK_RATIO) breakAt = CAPTION_LIMIT;
|
|
55
|
+
return { head: text.slice(0, breakAt).replace(TRAILING_PUNCTUATION, ""), clipped: true };
|
|
56
|
+
}
|
|
57
|
+
function captionSegments(text) {
|
|
58
|
+
return text.split(CAPTION_SEGMENTS).filter(Boolean).map((segment, index) => ({ key: `${index}-${segment}`, text: segment, link: /^[#@]/.test(segment) }));
|
|
59
|
+
}
|
|
60
|
+
function slotted(source) {
|
|
61
|
+
if (typeof source !== "string") return source;
|
|
62
|
+
return source ? /* @__PURE__ */ jsx("img", { src: source, alt: "" }) : null;
|
|
63
|
+
}
|
|
64
|
+
function pop(el, from) {
|
|
65
|
+
if (el) animate(el, { scale: [from, 1], timing: UIMotion.t.settle });
|
|
66
|
+
}
|
|
67
|
+
function InstagramFeed({
|
|
68
|
+
type = "image",
|
|
69
|
+
width = "web",
|
|
70
|
+
handle,
|
|
71
|
+
caption = "",
|
|
72
|
+
ratio = "4:5",
|
|
73
|
+
media,
|
|
74
|
+
avatar,
|
|
75
|
+
audio = DEFAULT_AUDIO,
|
|
76
|
+
stamp,
|
|
77
|
+
likes = 0,
|
|
78
|
+
comments = 0,
|
|
79
|
+
reposts = 0,
|
|
80
|
+
liked,
|
|
81
|
+
defaultLiked = false,
|
|
82
|
+
onLikedChange,
|
|
83
|
+
saved,
|
|
84
|
+
defaultSaved = false,
|
|
85
|
+
onSavedChange,
|
|
86
|
+
muted,
|
|
87
|
+
defaultMuted = true,
|
|
88
|
+
onMutedChange,
|
|
89
|
+
onAction,
|
|
90
|
+
className = "",
|
|
91
|
+
style,
|
|
92
|
+
htmlProps
|
|
93
|
+
}) {
|
|
94
|
+
const handleId = useId();
|
|
95
|
+
const likeRef = useRef(null);
|
|
96
|
+
const saveRef = useRef(null);
|
|
97
|
+
const burstRef = useRef(null);
|
|
98
|
+
const burstToken = useRef(0);
|
|
99
|
+
const [isLiked, setLiked] = useControllable(liked, defaultLiked, onLikedChange);
|
|
100
|
+
const [isSaved, setSaved] = useControllable(saved, defaultSaved, onSavedChange);
|
|
101
|
+
const [isMuted, setMuted] = useControllable(muted, defaultMuted, onMutedChange);
|
|
102
|
+
const isVideo = type === "video";
|
|
103
|
+
const clipped = clipCaption(caption);
|
|
104
|
+
const segments = captionSegments(clipped.head);
|
|
105
|
+
const toggleLike = () => {
|
|
106
|
+
setLiked(!isLiked);
|
|
107
|
+
pop(likeRef.current, LIKE_POP_FROM);
|
|
108
|
+
};
|
|
109
|
+
const toggleSave = () => {
|
|
110
|
+
setSaved(!isSaved);
|
|
111
|
+
pop(saveRef.current, SAVE_POP_FROM);
|
|
112
|
+
};
|
|
113
|
+
const burstLike = () => {
|
|
114
|
+
if (!isLiked) {
|
|
115
|
+
setLiked(true);
|
|
116
|
+
pop(likeRef.current, LIKE_POP_FROM);
|
|
117
|
+
}
|
|
118
|
+
const el = burstRef.current;
|
|
119
|
+
if (!el || UIMotion.reduced) return;
|
|
120
|
+
const token = ++burstToken.current;
|
|
121
|
+
void animate(el, {
|
|
122
|
+
scale: [BURST_ENTER_FROM, 1],
|
|
123
|
+
opacity: [0, 1],
|
|
124
|
+
timing: { type: "spring", visualDuration: UIMotion.dur.base, bounce: BURST_BOUNCE }
|
|
125
|
+
}).finished.then(() => {
|
|
126
|
+
if (token !== burstToken.current) return;
|
|
127
|
+
animate(el, {
|
|
128
|
+
scale: [BURST_EXIT_SCALE],
|
|
129
|
+
opacity: [0],
|
|
130
|
+
timing: { duration: UIMotion.dur.slow, ease: UIMotion.ease.exit, delay: UIMotion.dur.fast }
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
return /* @__PURE__ */ jsxs(
|
|
135
|
+
"article",
|
|
136
|
+
{
|
|
137
|
+
...htmlProps,
|
|
138
|
+
className: cx("instagram-feed", className),
|
|
139
|
+
style,
|
|
140
|
+
"aria-labelledby": handleId,
|
|
141
|
+
"data-type": type,
|
|
142
|
+
"data-width": width,
|
|
143
|
+
"data-ratio": ratio,
|
|
144
|
+
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 }),
|
|
151
|
+
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 })
|
|
154
|
+
] }) : null
|
|
155
|
+
] }),
|
|
156
|
+
isVideo ? /* @__PURE__ */ jsx("div", { className: "instagram-feed__audio", children: audio }) : null
|
|
157
|
+
] }),
|
|
158
|
+
width === "web" ? /* @__PURE__ */ jsx("button", { type: "button", className: "instagram-feed__follow", onClick: () => onAction?.("follow"), children: "Follow" }) : null,
|
|
159
|
+
/* @__PURE__ */ jsxs(
|
|
160
|
+
"button",
|
|
161
|
+
{
|
|
162
|
+
type: "button",
|
|
163
|
+
className: "instagram-feed__menu",
|
|
164
|
+
"aria-label": "More options",
|
|
165
|
+
onClick: () => onAction?.("menu"),
|
|
166
|
+
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" })
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
] }),
|
|
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) }) }),
|
|
177
|
+
isVideo ? /* @__PURE__ */ jsx(
|
|
178
|
+
"button",
|
|
179
|
+
{
|
|
180
|
+
type: "button",
|
|
181
|
+
className: "instagram-feed__mute",
|
|
182
|
+
"aria-pressed": isMuted,
|
|
183
|
+
"aria-label": "Mute",
|
|
184
|
+
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
|
+
}
|
|
187
|
+
) : null
|
|
188
|
+
] })
|
|
189
|
+
] }),
|
|
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: [
|
|
193
|
+
/* @__PURE__ */ jsx(
|
|
194
|
+
"button",
|
|
195
|
+
{
|
|
196
|
+
ref: likeRef,
|
|
197
|
+
type: "button",
|
|
198
|
+
className: "instagram-feed__glyph-button",
|
|
199
|
+
"aria-pressed": isLiked,
|
|
200
|
+
"aria-label": "Like",
|
|
201
|
+
onClick: toggleLike,
|
|
202
|
+
children: /* @__PURE__ */ jsx("svg", { className: "instagram-feed__glyph instagram-feed__glyph--like", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(HEART) })
|
|
203
|
+
}
|
|
204
|
+
),
|
|
205
|
+
/* @__PURE__ */ jsx("span", { className: "instagram-feed__count", children: compact(likes + (isLiked ? 1 : 0)) })
|
|
206
|
+
] }),
|
|
207
|
+
/* @__PURE__ */ jsxs("span", { className: "instagram-feed__action", children: [
|
|
208
|
+
/* @__PURE__ */ jsx(
|
|
209
|
+
"button",
|
|
210
|
+
{
|
|
211
|
+
type: "button",
|
|
212
|
+
className: "instagram-feed__glyph-button",
|
|
213
|
+
"aria-label": "Comment",
|
|
214
|
+
onClick: () => onAction?.("comment"),
|
|
215
|
+
children: /* @__PURE__ */ jsx("svg", { className: "instagram-feed__glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(SPEECH) })
|
|
216
|
+
}
|
|
217
|
+
),
|
|
218
|
+
/* @__PURE__ */ jsx("span", { className: "instagram-feed__count", children: compact(comments) })
|
|
219
|
+
] }),
|
|
220
|
+
/* @__PURE__ */ jsxs("span", { className: "instagram-feed__action", children: [
|
|
221
|
+
/* @__PURE__ */ jsx(
|
|
222
|
+
"button",
|
|
223
|
+
{
|
|
224
|
+
type: "button",
|
|
225
|
+
className: "instagram-feed__glyph-button",
|
|
226
|
+
"aria-label": "Repost",
|
|
227
|
+
onClick: () => onAction?.("repost"),
|
|
228
|
+
children: /* @__PURE__ */ jsx("svg", { className: "instagram-feed__glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(REPOST) })
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
/* @__PURE__ */ jsx("span", { className: "instagram-feed__count", children: compact(reposts) })
|
|
232
|
+
] }),
|
|
233
|
+
/* @__PURE__ */ jsx(
|
|
234
|
+
"button",
|
|
235
|
+
{
|
|
236
|
+
type: "button",
|
|
237
|
+
className: "instagram-feed__glyph-button",
|
|
238
|
+
"aria-label": "Share",
|
|
239
|
+
onClick: () => onAction?.("send"),
|
|
240
|
+
children: /* @__PURE__ */ jsx("svg", { className: "instagram-feed__glyph", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(PAPER_PLANE) })
|
|
241
|
+
}
|
|
242
|
+
)
|
|
243
|
+
] }),
|
|
244
|
+
/* @__PURE__ */ jsx(
|
|
245
|
+
"button",
|
|
246
|
+
{
|
|
247
|
+
ref: saveRef,
|
|
248
|
+
type: "button",
|
|
249
|
+
className: "instagram-feed__glyph-button",
|
|
250
|
+
"aria-pressed": isSaved,
|
|
251
|
+
"aria-label": "Save",
|
|
252
|
+
onClick: toggleSave,
|
|
253
|
+
children: /* @__PURE__ */ jsx("svg", { className: "instagram-feed__glyph instagram-feed__glyph--save", viewBox: "0 0 24 24", "aria-hidden": "true", children: paths(BOOKMARK) })
|
|
254
|
+
}
|
|
255
|
+
)
|
|
256
|
+
] }),
|
|
257
|
+
caption ? /* @__PURE__ */ jsxs("p", { className: "instagram-feed__caption", children: [
|
|
258
|
+
/* @__PURE__ */ jsx("span", { className: "instagram-feed__author", children: handle }),
|
|
259
|
+
" ",
|
|
260
|
+
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)
|
|
262
|
+
),
|
|
263
|
+
clipped.clipped ? /* @__PURE__ */ jsx("span", { className: "instagram-feed__more", children: ELLIPSIS_MORE }) : null
|
|
264
|
+
] }) : null
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export { InstagramFeed };
|
|
271
|
+
//# sourceMappingURL=instagram-feed.js.map
|
|
272
|
+
//# sourceMappingURL=instagram-feed.js.map
|