@jfrader/ui 0.5.1 → 0.7.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 +28 -7
- package/dist/{accordion-DLul6vIl.js → accordion-D6myONB9.js} +36 -35
- package/dist/accordion.js +1 -1
- package/dist/activity-rings-Uszvwqdl.js +528 -0
- package/dist/activity-rings.js +2 -0
- package/dist/{alert-DS_einpy.js → alert-Bhj-qSMs.js} +15 -14
- package/dist/alert.js +1 -1
- package/dist/{announcement-bar-Dlbq5-9D.js → announcement-bar-B5J33QUh.js} +132 -131
- package/dist/announcement-bar.js +1 -1
- package/dist/{avatar-group-M1opAQEG.js → avatar-group-BlMLNw4J.js} +10 -9
- package/dist/avatar-group.js +1 -1
- package/dist/avatar-sPxDqFiZ.js +133 -0
- package/dist/avatar.js +1 -1
- package/dist/{badge-CjM5Agqk.js → badge-CfhTcA-Z.js} +10 -9
- package/dist/badge.js +1 -1
- package/dist/billing-toggle-CgC7yxxo.js +349 -0
- package/dist/billing-toggle.js +2 -0
- package/dist/{bottom-sheet-DjZOPq4k.js → bottom-sheet-BFQKO0Wo.js} +282 -264
- package/dist/bottom-sheet.js +1 -1
- package/dist/{breadcrumbs-BDK_LiwH.js → breadcrumbs-CG3akw-b.js} +19 -18
- package/dist/breadcrumbs.js +1 -1
- package/dist/{button-NLY0h6EJ.js → button-C6OV0C7J.js} +14 -13
- package/dist/button-group-B9wP2ddS.js +611 -0
- package/dist/button-group.js +2 -0
- package/dist/button.js +1 -1
- package/dist/calendar-Bg6D2sul.js +377 -0
- package/dist/calendar.js +1 -1
- package/dist/calendar.utils-azmB4Ej7.js +79 -0
- package/dist/card-C008OQCp.js +164 -0
- package/dist/card.js +1 -1
- package/dist/{carousel-B7OrvD6J.js → carousel-lTH4Foke.js} +13 -12
- package/dist/carousel.js +1 -1
- package/dist/chat-thread-DkB-WMWJ.js +864 -0
- package/dist/chat-thread.js +2 -0
- package/dist/{checkbox-DKSzExj2.js → checkbox-CClE61GV.js} +9 -8
- package/dist/checkbox.js +1 -1
- package/dist/{chip-group-DjQ0_6Y9.js → chip-group-BZUX9KPF.js} +17 -16
- package/dist/chip-group.js +1 -1
- package/dist/{choice-control-5kJkLXgv.js → choice-control-BsWOZPc9.js} +1 -1
- package/dist/{code-block-B5we2lZa.js → code-block-CYP89_6h.js} +35 -34
- package/dist/code-block.js +1 -1
- package/dist/{combobox-DFFqOBCi.js → combobox-D2Oc-co7.js} +21 -20
- package/dist/combobox.js +1 -1
- package/dist/command-palette-BrT1n9bb.js +394 -0
- package/dist/command-palette.js +1 -1
- package/dist/comment-thread-DXfqgRNI.js +772 -0
- package/dist/comment-thread.js +1 -1
- package/dist/{container-BOaSptJa.js → container-BxtwJSSD.js} +3 -2
- package/dist/container.js +1 -1
- package/dist/{context-menu-__1c2Dk9.js → context-menu-I4i0LRpm.js} +52 -51
- package/dist/context-menu.js +1 -1
- package/dist/{copy-button-DCSLcYS-.js → copy-button-C0p_qrgf.js} +4 -4
- package/dist/copy-button.js +1 -1
- package/dist/{countdown-Dp_TD1VP.js → countdown-EcpV6rXy.js} +18 -17
- package/dist/countdown.js +1 -1
- package/dist/css-BYJhdGh-.js +2 -0
- package/dist/{date-picker-BiPN7yeK.js → date-picker-D-bn-iHs.js} +14 -13
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-rXcZsI1Y.js +589 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/dialog-CR1xdkrC.js +222 -0
- package/dist/dialog.js +1 -1
- package/dist/{divider-Cp7aNbhM.js → divider-zOJzkcHh.js} +7 -6
- package/dist/divider.js +1 -1
- package/dist/drawer-CceaEhCr.js +590 -0
- package/dist/drawer.js +1 -1
- package/dist/emblem-DnXmpZCh.js +166 -0
- package/dist/emblem.js +2 -0
- package/dist/{empty-state-CDgrjPPf.js → empty-state-DO0ApylK.js} +2 -1
- package/dist/empty-state.js +1 -1
- package/dist/{expandable-card-rUATve0o.js → expandable-card-W97vjix9.js} +52 -51
- package/dist/expandable-card.js +1 -1
- package/dist/{expanding-search-BxOwtdwt.js → expanding-search-Bb2_YfNx.js} +16 -15
- package/dist/expanding-search.js +1 -1
- package/dist/{field-anatomy-COVdNpf5.js → field-anatomy-BDIP42MI.js} +2 -1
- package/dist/{file-dropzone-BuXm3Tea.js → file-dropzone-Bi5ikRIz.js} +14 -13
- package/dist/file-dropzone.js +1 -1
- package/dist/{filter-toolbar-Cy5Hqur-.js → filter-toolbar-QRnC4S_H.js} +33 -32
- package/dist/filter-toolbar.js +1 -1
- package/dist/{flex-Dh-_J5-U.js → flex-CS7eMRcK.js} +2 -2
- package/dist/flex.js +1 -1
- package/dist/game-card-Oeu74giK.js +194 -0
- package/dist/game-card.js +2 -0
- package/dist/{hold-to-confirm-DjB2EVjM.js → hold-to-confirm-CVBA0wNT.js} +18 -17
- package/dist/hold-to-confirm.js +1 -1
- package/dist/{hover-card-CoMJKg1g.js → hover-card-Dgu2CwMD.js} +20 -19
- package/dist/hover-card.js +1 -1
- package/dist/{icon-wrapper-stN8sD7R.js → icon-wrapper-C-zMD0uL.js} +1 -1
- package/dist/{image-compare-BxY8Ykzt.js → image-compare-Ln2UUqTU.js} +20 -19
- package/dist/image-compare.js +1 -1
- package/dist/in-view-title-BUZCMqge.js +225 -0
- package/dist/in-view-title.js +2 -0
- package/dist/index.js +102 -83
- package/dist/initials-DEdwNe9_.js +18 -0
- package/dist/{inline-edit-C0eeml65.js → inline-edit-D-pR2RPC.js} +22 -21
- package/dist/inline-edit.js +1 -1
- package/dist/{input-control-DmMuAuPS.js → input-control-B6HVBgwl.js} +1 -1
- package/dist/{json-viewer-DgWqyU75.js → json-viewer-Dro3WrjS.js} +31 -30
- package/dist/json-viewer.js +1 -1
- package/dist/{kbd-C3ACoMoE.js → kbd-BI_9qzYr.js} +2 -1
- package/dist/kbd.js +1 -1
- package/dist/keycap-keyboard-Cdx-OAS1.js +311 -0
- package/dist/keycap-keyboard.js +2 -0
- package/dist/{layout-style-Cbd1Vilw.js → layout-style-BE0gSqrH.js} +1 -1
- package/dist/lightbox-gallery-D0YaSTut.js +777 -0
- package/dist/lightbox-gallery.js +2 -0
- package/dist/link-unfurl-CReyIjyy.js +695 -0
- package/dist/link-unfurl.js +2 -0
- package/dist/{listbox-style-WX-RASp1.js → listbox-style-DNOxAulu.js} +1 -1
- package/dist/{loading-ring-B8-30Dl1.js → loading-ring-D0lGrK8z.js} +1 -1
- package/dist/locale-switcher-DTkySKsM.js +375 -0
- package/dist/locale-switcher.js +2 -0
- package/dist/{mention-input-sq61si9L.js → mention-input-BjjAbJCf.js} +6 -6
- package/dist/mention-input.js +1 -1
- package/dist/{menu-DDKgmK2F.js → menu-CVzpsyXn.js} +113 -96
- package/dist/menu.js +1 -1
- package/dist/{metric-card--lVTz5Wn.js → metric-card-BnFssTXj.js} +12 -11
- package/dist/metric-card.js +1 -1
- package/dist/{multi-select-DG1BCFX7.js → multi-select-B3puEVo0.js} +67 -66
- package/dist/multi-select.js +1 -1
- package/dist/{navigation-CC26JDr-.js → navigation-C_JD43gA.js} +41 -40
- package/dist/navigation.js +1 -1
- package/dist/next.js +65 -0
- package/dist/now-playing-DjVm1Phm.js +439 -0
- package/dist/now-playing.js +2 -0
- package/dist/overlay-motion-Cr77ihn2.js +90 -0
- package/dist/{overlay-portal-C4JZFq2M.js → overlay-portal-C9igMHnC.js} +1 -1
- package/dist/{pagination-BfkeWbmP.js → pagination-Dkh4bJQh.js} +10 -9
- package/dist/pagination.js +1 -1
- package/dist/{password-field-03pWRkuY.js → password-field-Da58GP1g.js} +4 -4
- package/dist/password-field.js +1 -1
- package/dist/photo-grid-Dtl17D74.js +830 -0
- package/dist/photo-grid.js +2 -0
- package/dist/{pill-BaS-uIbn.js → pill-Dd7pog19.js} +10 -9
- package/dist/pill.js +1 -1
- package/dist/{popover-CErIw2q3.js → popover-CUMOcMtj.js} +5 -4
- package/dist/popover.js +1 -1
- package/dist/presence-spring-4zwtUDQN.js +12 -0
- package/dist/{progress-DAQkfhPd.js → progress-Bcuz3Ob4.js} +11 -10
- package/dist/progress.js +1 -1
- package/dist/{radio-cards-Cu9cBssN.js → radio-cards-FkAhESb5.js} +35 -34
- package/dist/radio-cards.js +1 -1
- package/dist/{radio-group-TIK0-iPX.js → radio-group-DItMf2YM.js} +18 -17
- package/dist/radio-group.js +1 -1
- package/dist/{resizable-panels-DUpQEpwG.js → resizable-panels-61h9hA3B.js} +13 -12
- package/dist/resizable-panels.js +1 -1
- package/dist/{scroll-area-CcZyiSOQ.js → scroll-area-B8KkCPOM.js} +16 -15
- package/dist/scroll-area.js +1 -1
- package/dist/{search-field-DMvho0KQ.js → search-field-CbsajaZb.js} +93 -92
- package/dist/search-field.js +1 -1
- package/dist/{segmented-control-8ZUGnsZm.js → segmented-control-DCh-4ca-.js} +26 -25
- package/dist/segmented-control.js +1 -1
- package/dist/{select-D5rhJ8gi.js → select-SrcQqZjo.js} +27 -26
- package/dist/select.js +1 -1
- package/dist/sheet-stack-DYX1SGSB.js +820 -0
- package/dist/sheet-stack.js +2 -0
- package/dist/shortcut-recorder-VgTQdjjn.js +688 -0
- package/dist/shortcut-recorder.js +2 -0
- package/dist/{signature-pad-_bTeguN9.js → signature-pad-khL2yhQI.js} +15 -14
- package/dist/signature-pad.js +1 -1
- package/dist/{skeleton-XQQDkCHd.js → skeleton-LJsQsveI.js} +9 -8
- package/dist/skeleton.js +1 -1
- package/dist/slider-DjAnGmlC.js +535 -0
- package/dist/slider.js +1 -1
- package/dist/{sortable-data-table-CYKT_Ng7.js → sortable-data-table-Bpitup_d.js} +29 -28
- package/dist/sortable-data-table.js +1 -1
- package/dist/{spinner-DtxvDPdM.js → spinner-CvzajSg9.js} +11 -10
- package/dist/spinner.js +1 -1
- package/dist/{split-button-BCw4zZom.js → split-button-Bu41f2AY.js} +20 -19
- package/dist/split-button.js +1 -1
- package/dist/{stack-DC3IbtWk.js → stack-Bac4sJeI.js} +2 -2
- package/dist/stack.js +1 -1
- package/dist/{stepper-CruHbXxX.js → stepper-C8Ncavbr.js} +22 -21
- package/dist/stepper.js +1 -1
- package/dist/stretch-refresh-OrnTEj7P.js +349 -0
- package/dist/stretch-refresh.js +2 -0
- package/dist/{surface-DZ4d-2aL.js → surface-C69kwSuk.js} +13 -3
- package/dist/{swipe-actions-CBuJREU1.js → swipe-actions-1H5UOZKE.js} +26 -25
- package/dist/swipe-actions.js +1 -1
- package/dist/{switch-C1WrKrf-.js → switch-79-hkQqg.js} +15 -14
- package/dist/switch.js +1 -1
- package/dist/sx-BJXJ2xJK.js +23 -0
- package/dist/{tabs-XluwRjgg.js → tabs-Bb5-noYE.js} +43 -42
- package/dist/tabs.js +1 -1
- package/dist/{tag-input-DSRCyrX2.js → tag-input-BQaueKEb.js} +5 -5
- package/dist/tag-input.js +1 -1
- package/dist/{text-field-hU72iSVS.js → text-field-D0VP7b4P.js} +3 -3
- package/dist/text-field.js +1 -1
- package/dist/{textarea-3k4Y0QQ3.js → textarea-D1YwEPmn.js} +3 -3
- package/dist/textarea.js +1 -1
- package/dist/theme-provider-BvcY-iJu.js +20 -0
- package/dist/theme-root-BrYVcTzt.js +163 -0
- package/dist/theme-root.js +1 -1
- package/dist/theme-scope-DGWy4H0C.js +62 -0
- package/dist/{theme-switch-C505TtU8.js → theme-switch-CP42mVDb.js} +12 -11
- package/dist/theme-switch.js +1 -1
- package/dist/thread-parts-Cpktor6D.js +683 -0
- package/dist/{time-picker-CPlhW0tr.js → time-picker-Tnd-JBLC.js} +16 -15
- package/dist/time-picker.js +1 -1
- package/dist/{timeline-B0uAAVfT.js → timeline-BcF46lG9.js} +22 -21
- package/dist/timeline.js +1 -1
- package/dist/{toast-B7wo3sX1.js → toast-CSAbl5yK.js} +12 -11
- package/dist/{toast-stack-B40VpS4M.js → toast-stack-BCR4Cu7V.js} +10 -9
- package/dist/toast-stack.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-B2fpFZwV.js → toggle-group-C7ye1v4s.js} +23 -22
- package/dist/toggle-group.js +1 -1
- package/dist/{tooltip-BvgVTCTN.js → tooltip-IajLwdUb.js} +48 -39
- package/dist/tooltip.js +1 -1
- package/dist/{tree-view-j8qLqkb_.js → tree-view-CoW4oJIZ.js} +15 -14
- package/dist/tree-view.js +1 -1
- package/dist/{trigger-style-B1KVC8O1.js → trigger-style-CtOrdPk4.js} +1 -1
- package/dist/types/components/activity-rings/activity-rings.d.ts +113 -0
- package/dist/types/components/activity-rings/index.d.ts +2 -0
- package/dist/types/components/avatar-group/avatar-group.d.ts +3 -3
- package/dist/types/components/billing-toggle/billing-toggle.d.ts +57 -0
- package/dist/types/components/billing-toggle/index.d.ts +2 -0
- package/dist/types/components/button/button.d.ts +7 -7
- package/dist/types/components/button-group/button-group.d.ts +72 -0
- package/dist/types/components/button-group/index.d.ts +2 -0
- package/dist/types/components/card/card.d.ts +7 -1
- package/dist/types/components/chat-thread/chat-thread.d.ts +130 -0
- package/dist/types/components/chat-thread/index.d.ts +2 -0
- package/dist/types/components/chip-group/chip-group.d.ts +2 -2
- package/dist/types/components/combobox/combobox.d.ts +2 -2
- package/dist/types/components/command-palette/command-palette.d.ts +1 -1
- package/dist/types/components/comment-thread/comment-thread.d.ts +7 -7
- package/dist/types/components/copy-button/copy-button.d.ts +6 -6
- package/dist/types/components/countdown/countdown.d.ts +2 -2
- package/dist/types/components/dialog/dialog.d.ts +18 -20
- package/dist/types/components/drawer/drawer.d.ts +7 -1
- package/dist/types/components/emblem/emblem.d.ts +59 -0
- package/dist/types/components/emblem/index.d.ts +2 -0
- package/dist/types/components/empty-state/empty-state.d.ts +2 -2
- package/dist/types/components/file-dropzone/file-dropzone.d.ts +3 -4
- package/dist/types/components/filter-toolbar/filter-toolbar.d.ts +2 -2
- package/dist/types/components/game-card/card-frame.d.ts +16 -0
- package/dist/types/components/game-card/decks.d.ts +27 -0
- package/dist/types/components/game-card/game-card.d.ts +37 -0
- package/dist/types/components/game-card/index.d.ts +4 -0
- package/dist/types/components/hold-to-confirm/hold-to-confirm.d.ts +1 -1
- package/dist/types/components/hover-card/hover-card.d.ts +5 -5
- package/dist/types/components/in-view-title/in-view-title.d.ts +23 -0
- package/dist/types/components/in-view-title/index.d.ts +1 -0
- package/dist/types/components/inline-edit/inline-edit.d.ts +6 -6
- package/dist/types/components/json-viewer/json-viewer.d.ts +7 -9
- package/dist/types/components/keycap-keyboard/index.d.ts +2 -0
- package/dist/types/components/keycap-keyboard/keycap-keyboard.d.ts +32 -0
- package/dist/types/components/lightbox-gallery/index.d.ts +2 -0
- package/dist/types/components/lightbox-gallery/lightbox-gallery.d.ts +74 -0
- package/dist/types/components/link-unfurl/index.d.ts +2 -0
- package/dist/types/components/link-unfurl/link-unfurl.d.ts +104 -0
- package/dist/types/components/locale-switcher/index.d.ts +2 -0
- package/dist/types/components/locale-switcher/locale-switcher.d.ts +64 -0
- package/dist/types/components/mention-input/mention-input.d.ts +7 -7
- package/dist/types/components/menu/menu.d.ts +29 -5
- package/dist/types/components/metric-card/metric-card.d.ts +2 -2
- package/dist/types/components/navigation/navigation.d.ts +1 -1
- package/dist/types/components/next/emotion-registry.d.ts +14 -0
- package/dist/types/components/next/index.d.ts +2 -0
- package/dist/types/components/next/registry.d.ts +21 -0
- package/dist/types/components/now-playing/index.d.ts +1 -0
- package/dist/types/components/now-playing/now-playing.d.ts +88 -0
- package/dist/types/components/password-field/password-field.d.ts +1 -1
- package/dist/types/components/photo-grid/index.d.ts +2 -0
- package/dist/types/components/photo-grid/photo-grid.d.ts +82 -0
- package/dist/types/components/progress/progress.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +1 -1
- package/dist/types/components/sheet-stack/index.d.ts +2 -0
- package/dist/types/components/sheet-stack/sheet-stack.d.ts +81 -0
- package/dist/types/components/shortcut-recorder/index.d.ts +2 -0
- package/dist/types/components/shortcut-recorder/shortcut-recorder.d.ts +117 -0
- package/dist/types/components/signature-pad/signature-pad.d.ts +2 -2
- package/dist/types/components/split-button/split-button.d.ts +3 -4
- package/dist/types/components/stretch-refresh/index.d.ts +1 -0
- package/dist/types/components/stretch-refresh/stretch-refresh.d.ts +49 -0
- package/dist/types/components/swipe-actions/swipe-actions.d.ts +1 -2
- package/dist/types/components/tag-input/tag-input.d.ts +2 -3
- package/dist/types/components/theme-root/index.d.ts +1 -0
- package/dist/types/components/theme-root/theme-root.d.ts +10 -3
- package/dist/types/components/theme-switch/theme-switch.d.ts +3 -3
- package/dist/types/components/{comment-thread → thread}/thread-parts.d.ts +7 -2
- package/dist/types/components/time-picker/time-picker.d.ts +2 -2
- package/dist/types/components/timeline/timeline.d.ts +4 -4
- package/dist/types/components/toast/toast.d.ts +3 -3
- package/dist/types/components/tooltip/tooltip.d.ts +8 -1
- package/dist/types/components/tree-view/tree-view.d.ts +4 -3
- package/dist/types/components/typewriter-terminal/index.d.ts +2 -0
- package/dist/types/components/typewriter-terminal/typewriter-terminal.d.ts +87 -0
- package/dist/types/components/usage-meter/usage-meter.d.ts +6 -16
- package/dist/types/components/usage-meter/usage-model.d.ts +30 -0
- package/dist/types/components/user-menu/index.d.ts +2 -0
- package/dist/types/components/user-menu/user-menu.d.ts +118 -0
- package/dist/types/index.d.ts +18 -1
- package/dist/types/overlay/exit-motion.d.ts +24 -0
- package/dist/types/overlay/presence-spring.d.ts +12 -0
- package/dist/types/overlay/use-native-dialog.d.ts +10 -1
- package/dist/types/styling/create-theme.d.ts +24 -0
- package/dist/types/styling/css.d.ts +1 -1
- package/dist/types/styling/motion-timings.d.ts +5 -0
- package/dist/types/styling/overlay-motion.d.ts +95 -0
- package/dist/types/styling/surface.d.ts +7 -0
- package/dist/types/styling/sx.d.ts +1 -1
- package/dist/types/styling/theme-scope.d.ts +29 -3
- package/dist/types/styling/theme.d.ts +15 -0
- package/dist/types/utils/initials.d.ts +2 -0
- package/dist/typewriter-terminal-BUEsMzo3.js +588 -0
- package/dist/typewriter-terminal.js +2 -0
- package/dist/{usage-meter-qyQ3rYVv.js → usage-meter-CYvlB6l3.js} +165 -175
- package/dist/usage-meter.js +1 -1
- package/dist/usage-model-C0fS47w4.js +32 -0
- package/dist/use-native-dialog-FB0p7lkg.js +93 -0
- package/dist/use-scroll-lock-40gXwwAy.js +23 -0
- package/dist/user-menu-MctRu_Lh.js +757 -0
- package/dist/user-menu.js +2 -0
- package/dist/{visually-hidden-BJdvqqvn.js → visually-hidden-DgVO3NaB.js} +1 -1
- package/package.json +87 -5
- package/dist/avatar-CaGJHy1N.js +0 -145
- package/dist/calendar-BzJdv_SZ.js +0 -449
- package/dist/card-Ca4KQKYQ.js +0 -154
- package/dist/command-palette-BmQu2w4H.js +0 -391
- package/dist/comment-thread-ASaXDcGo.js +0 -1410
- package/dist/date-range-picker-DQpUeKqV.js +0 -570
- package/dist/dialog-BX1zYMs-.js +0 -219
- package/dist/drawer-DsASTiP-.js +0 -553
- package/dist/elastic-slider-BG6K019r.js +0 -395
- package/dist/elastic-slider.js +0 -2
- package/dist/slider-DVG6-Awh.js +0 -308
- package/dist/sx-Dx9JUKp5.js +0 -23
- package/dist/theme-root-Bs1U3uPA.js +0 -46
- package/dist/theme-scope-t7nAKc2c.js +0 -27
- package/dist/types/components/elastic-slider/elastic-slider.d.ts +0 -53
- package/dist/types/components/elastic-slider/index.d.ts +0 -1
- package/dist/use-native-dialog-DWpIUVO1.js +0 -84
- package/dist/use-slider-interaction-ChL-208h.js +0 -234
- /package/dist/types/components/{comment-thread → thread}/thread-core.d.ts +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
import { n } from "./focus-ring-BK5W5_NY.js";
|
|
4
|
-
import { n
|
|
2
|
+
import { i as e } from "./css-BYJhdGh-.js";
|
|
3
|
+
import { n as t } from "./focus-ring-BK5W5_NY.js";
|
|
4
|
+
import { n, r } from "./media-8yrN85VT.js";
|
|
5
|
+
import { t as i } from "./sx-BJXJ2xJK.js";
|
|
5
6
|
import { t as a } from "./use-controlled-state-DpeVQZNR.js";
|
|
6
|
-
import { t as o } from "./button-
|
|
7
|
+
import { t as o } from "./button-C6OV0C7J.js";
|
|
7
8
|
import { useEffect as s, useId as ee, useMemo as te, useRef as c, useState as l } from "react";
|
|
8
9
|
import { vars as u } from "@jfrader/tokens/vars";
|
|
9
10
|
import { jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
|
|
@@ -32,7 +33,7 @@ var m = 0, h = 100, g = 50, ne = 1, re = 10, ie = ["Before", "After"], ae = "Ima
|
|
|
32
33
|
background: u.color.surfaceInset,
|
|
33
34
|
userSelect: "none",
|
|
34
35
|
"&[data-disabled]": { cursor: "default" },
|
|
35
|
-
[
|
|
36
|
+
[n]: { borderColor: "CanvasText" }
|
|
36
37
|
}), me = {
|
|
37
38
|
horizontal: e({
|
|
38
39
|
touchAction: "pan-y",
|
|
@@ -71,7 +72,7 @@ var m = 0, h = 100, g = 50, ne = 1, re = 10, ie = ["Before", "After"], ae = "Ima
|
|
|
71
72
|
fontSize: u.textSize.xs,
|
|
72
73
|
fontWeight: u.fontWeight.medium,
|
|
73
74
|
pointerEvents: "none",
|
|
74
|
-
[
|
|
75
|
+
[n]: { borderColor: "CanvasText" }
|
|
75
76
|
}), ge = e({
|
|
76
77
|
insetBlockStart: u.space[3],
|
|
77
78
|
insetInlineStart: u.space[3]
|
|
@@ -89,7 +90,7 @@ var m = 0, h = 100, g = 50, ne = 1, re = 10, ie = ["Before", "After"], ae = "Ima
|
|
|
89
90
|
boxSizing: "border-box",
|
|
90
91
|
background: u.color.text,
|
|
91
92
|
pointerEvents: "none",
|
|
92
|
-
[
|
|
93
|
+
[n]: {
|
|
93
94
|
forcedColorAdjust: "none",
|
|
94
95
|
background: "CanvasText",
|
|
95
96
|
borderColor: "Canvas"
|
|
@@ -132,9 +133,9 @@ var m = 0, h = 100, g = 50, ne = 1, re = 10, ie = ["Before", "After"], ae = "Ima
|
|
|
132
133
|
cursor: "default",
|
|
133
134
|
color: u.color.textMuted
|
|
134
135
|
},
|
|
135
|
-
"&:focus-visible":
|
|
136
|
-
[
|
|
137
|
-
[
|
|
136
|
+
"&:focus-visible": t,
|
|
137
|
+
[r]: { transitionDuration: "0s" },
|
|
138
|
+
[n]: {
|
|
138
139
|
forcedColorAdjust: "none",
|
|
139
140
|
background: "Canvas",
|
|
140
141
|
borderColor: "CanvasText",
|
|
@@ -184,11 +185,11 @@ function D(e, t) {
|
|
|
184
185
|
function O(e) {
|
|
185
186
|
return e !== void 0 && Number.isFinite(e) ? E(e) : g;
|
|
186
187
|
}
|
|
187
|
-
function k({ ref: e, before:
|
|
188
|
-
let N = ee(), P = D(x, ne), F = D(S, re), [Pe] = l(() => O(u)), [Fe, Ie] = a(
|
|
188
|
+
function k({ ref: e, before: t, after: n, value: r, defaultValue: u, onValueChange: le, onValueCommit: y, orientation: b = "horizontal", step: x, largeStep: S, labels: C = ie, label: k = ae, valueText: Ee = de, locale: A, aspectRatio: De = se, disabled: j = !1, showReset: Oe = !0, resetLabel: ke = oe, slotProps: M, className: Ae, sx: je, onKeyDown: Me, ...Ne }) {
|
|
189
|
+
let N = ee(), P = D(x, ne), F = D(S, re), [Pe] = l(() => O(u)), [Fe, Ie] = a(r, Pe, le), I = O(Fe), Le = te(() => new Intl.NumberFormat(A, ce), [A]), L = c(null), R = c(null), Re = p([L, M?.frame?.ref]), ze = p([R, M?.handle?.ref]), z = c(null), [Be, B] = l(!1), V = b === "horizontal";
|
|
189
190
|
s(() => {
|
|
190
|
-
if (process.env.NODE_ENV !== "production") for (let [e, t] of [["value",
|
|
191
|
-
}, [
|
|
191
|
+
if (process.env.NODE_ENV !== "production") for (let [e, t] of [["value", r], ["defaultValue", u]]) t !== void 0 && !Number.isFinite(t) && console.warn(`ImageCompare: ${e} ${t} is not finite; showing ${g}%.`);
|
|
192
|
+
}, [r, u]);
|
|
192
193
|
let H = (e) => e !== I && (Ie(e), !0), U = (e) => {
|
|
193
194
|
H(e) && y?.(e);
|
|
194
195
|
}, W = (e) => {
|
|
@@ -267,14 +268,14 @@ function k({ ref: e, before: n, after: r, value: i, defaultValue: u, onValueChan
|
|
|
267
268
|
aspectRatio: De,
|
|
268
269
|
[_]: `${I}%`
|
|
269
270
|
}, Ye = Le.format(I / h);
|
|
270
|
-
return /* @__PURE__ */ d(
|
|
271
|
+
return /* @__PURE__ */ d(i, {
|
|
271
272
|
className: Ae,
|
|
272
273
|
styles: fe,
|
|
273
274
|
sx: je,
|
|
274
|
-
children: (
|
|
275
|
+
children: (r) => /* @__PURE__ */ f("div", {
|
|
275
276
|
...Ne,
|
|
276
277
|
ref: e,
|
|
277
|
-
className:
|
|
278
|
+
className: r,
|
|
278
279
|
"data-ui": "image-compare",
|
|
279
280
|
"data-orientation": b,
|
|
280
281
|
"data-disabled": j || void 0,
|
|
@@ -315,7 +316,7 @@ function k({ ref: e, before: n, after: r, value: i, defaultValue: u, onValueChan
|
|
|
315
316
|
...M?.after,
|
|
316
317
|
"data-ui": "image-compare-after",
|
|
317
318
|
css: [w, M?.after?.css],
|
|
318
|
-
children: [
|
|
319
|
+
children: [n, X && /* @__PURE__ */ d("span", {
|
|
319
320
|
...M?.afterLabel,
|
|
320
321
|
id: X,
|
|
321
322
|
"aria-hidden": "true",
|
|
@@ -336,7 +337,7 @@ function k({ ref: e, before: n, after: r, value: i, defaultValue: u, onValueChan
|
|
|
336
337
|
he[b],
|
|
337
338
|
M?.before?.css
|
|
338
339
|
],
|
|
339
|
-
children: [
|
|
340
|
+
children: [t, Y && /* @__PURE__ */ d("span", {
|
|
340
341
|
...M?.beforeLabel,
|
|
341
342
|
id: Y,
|
|
342
343
|
"aria-hidden": "true",
|
package/dist/image-compare.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as ImageCompare } from "./image-compare-
|
|
2
|
+
export { t as ImageCompare } from "./image-compare-Ln2UUqTU.js";
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { a as e, i as t } from "./css-BYJhdGh-.js";
|
|
3
|
+
import { n, r } from "./media-8yrN85VT.js";
|
|
4
|
+
import { t as i } from "./sx-BJXJ2xJK.js";
|
|
5
|
+
import { t as a } from "./visually-hidden-DgVO3NaB.js";
|
|
6
|
+
import { useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
|
|
7
|
+
import { vars as u } from "@jfrader/tokens/vars";
|
|
8
|
+
import { jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
|
|
9
|
+
//#region src/components/in-view-title/in-view-title.tsx
|
|
10
|
+
var p = {
|
|
11
|
+
1: "h1",
|
|
12
|
+
2: "h2",
|
|
13
|
+
3: "h3",
|
|
14
|
+
4: "h4",
|
|
15
|
+
5: "h5",
|
|
16
|
+
6: "h6"
|
|
17
|
+
}, m = .45, h = "0.15em", g = e({
|
|
18
|
+
from: { transform: "translateY(0.6em)" },
|
|
19
|
+
to: { transform: "none" }
|
|
20
|
+
}), _ = e({
|
|
21
|
+
from: { opacity: 0 },
|
|
22
|
+
to: { opacity: 1 }
|
|
23
|
+
}), v = e({
|
|
24
|
+
from: { filter: "blur(0.12em)" },
|
|
25
|
+
to: { filter: "none" }
|
|
26
|
+
}), y = e({
|
|
27
|
+
from: { letterSpacing: "-0.04em" },
|
|
28
|
+
to: { letterSpacing: "inherit" }
|
|
29
|
+
}), b = e({
|
|
30
|
+
from: {
|
|
31
|
+
maskImage: `linear-gradient(to right, ${u.color.text} 50%, transparent 50%)`,
|
|
32
|
+
maskSize: "200% 100%",
|
|
33
|
+
maskPosition: "100% 0"
|
|
34
|
+
},
|
|
35
|
+
to: {
|
|
36
|
+
maskImage: `linear-gradient(to right, ${u.color.text} 50%, transparent 50%)`,
|
|
37
|
+
maskSize: "200% 100%",
|
|
38
|
+
maskPosition: "0% 0"
|
|
39
|
+
}
|
|
40
|
+
}), x = e({
|
|
41
|
+
from: {
|
|
42
|
+
maskImage: `linear-gradient(to left, ${u.color.text} 50%, transparent 50%)`,
|
|
43
|
+
maskSize: "200% 100%",
|
|
44
|
+
maskPosition: "0% 0"
|
|
45
|
+
},
|
|
46
|
+
to: {
|
|
47
|
+
maskImage: `linear-gradient(to left, ${u.color.text} 50%, transparent 50%)`,
|
|
48
|
+
maskSize: "200% 100%",
|
|
49
|
+
maskPosition: "100% 0"
|
|
50
|
+
}
|
|
51
|
+
}), S = (e, t) => `${e} ${t} ${u.motion.easeStandard} var(--in-view-delay, 0ms) backwards`, C = {
|
|
52
|
+
word: t({ animation: `${S(g, u.motion.duration.slow)}, ${S(_, u.motion.duration.fast)}` }),
|
|
53
|
+
line: t({ animation: `${S(g, u.motion.duration.slow)}, ${S(_, u.motion.duration.fast)}` }),
|
|
54
|
+
blur: t({ animation: `${S(g, u.motion.duration.base)}, ${S(v, u.motion.duration.base)}, ${S(_, u.motion.duration.fast)}` }),
|
|
55
|
+
tracking: t({ animation: `${S(y, u.motion.duration.base)}, ${S(_, u.motion.duration.fast)}` }),
|
|
56
|
+
wipe: t({
|
|
57
|
+
animation: S(b, u.motion.duration.slow),
|
|
58
|
+
"&:dir(rtl)": { animation: S(x, u.motion.duration.slow) }
|
|
59
|
+
})
|
|
60
|
+
}, w = t({
|
|
61
|
+
position: "relative",
|
|
62
|
+
margin: 0,
|
|
63
|
+
minInlineSize: 0,
|
|
64
|
+
maxInlineSize: "100%",
|
|
65
|
+
color: u.color.text,
|
|
66
|
+
font: "inherit",
|
|
67
|
+
"& [data-in-view-plain]": { display: "none" },
|
|
68
|
+
"&:not([data-state=\"revealing\"]) [data-in-view-segment]": { animation: "none" },
|
|
69
|
+
[r]: {
|
|
70
|
+
"& [data-in-view-parts]": { display: "none" },
|
|
71
|
+
"& [data-in-view-plain]": {
|
|
72
|
+
display: "inline",
|
|
73
|
+
whiteSpace: "pre-wrap"
|
|
74
|
+
},
|
|
75
|
+
"& [data-in-view-segment]": {
|
|
76
|
+
animation: "none",
|
|
77
|
+
transform: "none",
|
|
78
|
+
filter: "none",
|
|
79
|
+
maskImage: "none",
|
|
80
|
+
opacity: 1
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
[n]: {
|
|
84
|
+
color: "CanvasText",
|
|
85
|
+
"& [data-in-view-parts]": { display: "none" },
|
|
86
|
+
"& [data-in-view-plain]": {
|
|
87
|
+
display: "inline",
|
|
88
|
+
whiteSpace: "pre-wrap"
|
|
89
|
+
},
|
|
90
|
+
"& [data-in-view-segment]": {
|
|
91
|
+
animation: "none",
|
|
92
|
+
transform: "none",
|
|
93
|
+
filter: "none",
|
|
94
|
+
maskImage: "none",
|
|
95
|
+
opacity: 1
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}), T = t({
|
|
99
|
+
whiteSpace: "pre-wrap",
|
|
100
|
+
overflowWrap: "anywhere"
|
|
101
|
+
}), E = t({
|
|
102
|
+
display: "block",
|
|
103
|
+
minInlineSize: 0,
|
|
104
|
+
maxInlineSize: "100%"
|
|
105
|
+
}), D = {
|
|
106
|
+
word: !0,
|
|
107
|
+
line: !0,
|
|
108
|
+
blur: !0,
|
|
109
|
+
tracking: !1,
|
|
110
|
+
wipe: !1
|
|
111
|
+
}, O = t({
|
|
112
|
+
display: "inline-block",
|
|
113
|
+
verticalAlign: "bottom",
|
|
114
|
+
maxInlineSize: "100%",
|
|
115
|
+
overflowX: "visible",
|
|
116
|
+
overflowY: "clip",
|
|
117
|
+
paddingBlock: h,
|
|
118
|
+
marginBlock: `-${h}`
|
|
119
|
+
}), k = t({
|
|
120
|
+
display: "inline-block",
|
|
121
|
+
maxInlineSize: "100%",
|
|
122
|
+
verticalAlign: "bottom"
|
|
123
|
+
});
|
|
124
|
+
function A({ text: e, level: t = 2, variant: n = "blur", once: r = !0, locale: h, slotProps: g, ref: v, className: y, sx: b, ...x }) {
|
|
125
|
+
let [S, A] = l(null), j = o((e) => {
|
|
126
|
+
A(e);
|
|
127
|
+
let t = typeof v == "function" ? v(e) : void 0;
|
|
128
|
+
return v && typeof v != "function" && (v.current = e), () => {
|
|
129
|
+
A(null), typeof t == "function" ? t() : typeof v == "function" ? v(null) : v && (v.current = null);
|
|
130
|
+
};
|
|
131
|
+
}, [v]);
|
|
132
|
+
s(() => {
|
|
133
|
+
if (!S) return;
|
|
134
|
+
let t = S.ownerDocument.defaultView;
|
|
135
|
+
if (S.dataset.state = "settled", !t) return;
|
|
136
|
+
let n = !0, i = !1, a, o = !1, s = S.getBoundingClientRect().top > t.innerHeight, c = !s, l, u, d = () => {
|
|
137
|
+
n && (S.dataset.state = "settled");
|
|
138
|
+
}, f = () => {
|
|
139
|
+
d(), a?.disconnect(), s = !1, i = !0;
|
|
140
|
+
}, p = (e) => {
|
|
141
|
+
let n = e.target;
|
|
142
|
+
n instanceof t.HTMLElement && n.hasAttribute("data-in-view-last") && S.dataset.state === "revealing" && e.animationName !== _.name && (d(), r && a?.disconnect());
|
|
143
|
+
}, h = () => {
|
|
144
|
+
(l?.matches || u?.matches) && f();
|
|
145
|
+
}, g = () => {
|
|
146
|
+
S.id && t.location.hash.slice(1) === S.id && f();
|
|
147
|
+
}, v = () => {
|
|
148
|
+
let e = S.ownerDocument.getSelection();
|
|
149
|
+
e?.anchorNode && S.contains(e.anchorNode) && f();
|
|
150
|
+
};
|
|
151
|
+
try {
|
|
152
|
+
if (l = t.matchMedia("(prefers-reduced-motion: reduce)"), u = t.matchMedia("(forced-colors: active)"), !e.trim() || !t.IntersectionObserver || !t.CSS?.supports("animation-name", "none") || l.matches || u.matches || (g(), i || !s && r)) return;
|
|
153
|
+
a = new t.IntersectionObserver((e) => {
|
|
154
|
+
if (n && !i) for (let t of e) t.target === S && (!t.isIntersecting || t.intersectionRatio === 0 ? (c && (d(), r ? o && a?.disconnect() : s = !0), o = !1) : (c = !0, t.intersectionRatio >= m && !o && (o = !0, s &&= (S.dataset.state = "revealing", !1))));
|
|
155
|
+
}, { threshold: [0, m] }), s && (S.dataset.state = "idle"), a.observe(S), S.addEventListener("animationend", p), S.addEventListener("focusin", f), S.ownerDocument.addEventListener("selectionchange", v), t.addEventListener("hashchange", g), l.addEventListener("change", h), u.addEventListener("change", h);
|
|
156
|
+
} catch {
|
|
157
|
+
f();
|
|
158
|
+
}
|
|
159
|
+
return () => {
|
|
160
|
+
n = !1, a?.disconnect(), S.removeEventListener("animationend", p), S.removeEventListener("focusin", f), S.ownerDocument.removeEventListener("selectionchange", v), t.removeEventListener("hashchange", g), l?.removeEventListener("change", h), u?.removeEventListener("change", h);
|
|
161
|
+
};
|
|
162
|
+
}, [
|
|
163
|
+
S,
|
|
164
|
+
e,
|
|
165
|
+
n,
|
|
166
|
+
r,
|
|
167
|
+
h
|
|
168
|
+
]);
|
|
169
|
+
let M = p[t], N = n === "tracking" || n === "wipe", P = c(() => typeof Intl.Segmenter == "function" ? new Intl.Segmenter(h, { granularity: "word" }) : void 0, [h]), F = (N ? [e] : e.split("\n")).map((e) => n === "line" || N || !P ? [e] : Array.from(P.segment(e), ({ segment: e }) => e)), I = F.flat().filter((e) => e.trim()).length;
|
|
170
|
+
return /* @__PURE__ */ d(i, {
|
|
171
|
+
className: y,
|
|
172
|
+
styles: w,
|
|
173
|
+
sx: b,
|
|
174
|
+
children: (t) => {
|
|
175
|
+
let r = 0;
|
|
176
|
+
return /* @__PURE__ */ f(M, {
|
|
177
|
+
...x,
|
|
178
|
+
ref: j,
|
|
179
|
+
"data-ui": "in-view-title",
|
|
180
|
+
"data-state": "settled",
|
|
181
|
+
className: t,
|
|
182
|
+
children: [/* @__PURE__ */ d("span", {
|
|
183
|
+
css: a,
|
|
184
|
+
children: e.replace(/\s+/gu, " ").trim()
|
|
185
|
+
}), /* @__PURE__ */ f("span", {
|
|
186
|
+
"data-ui": "in-view-title-visual",
|
|
187
|
+
"aria-hidden": "true",
|
|
188
|
+
className: g?.visual?.className,
|
|
189
|
+
css: [T, g?.visual?.css],
|
|
190
|
+
children: [/* @__PURE__ */ d("span", {
|
|
191
|
+
"data-in-view-plain": "",
|
|
192
|
+
children: e
|
|
193
|
+
}), /* @__PURE__ */ d("span", {
|
|
194
|
+
"data-in-view-parts": "",
|
|
195
|
+
children: F.map((e, t) => /* @__PURE__ */ d("span", {
|
|
196
|
+
css: !N && E,
|
|
197
|
+
children: e.map((e, t) => {
|
|
198
|
+
if (!e.trim()) return /* @__PURE__ */ d("span", { children: e || "" }, t);
|
|
199
|
+
let i = r++;
|
|
200
|
+
return /* @__PURE__ */ d("span", {
|
|
201
|
+
css: D[n] && O,
|
|
202
|
+
children: /* @__PURE__ */ d("span", {
|
|
203
|
+
"data-in-view-segment": "",
|
|
204
|
+
"data-in-view-last": i === I - 1 ? "" : void 0,
|
|
205
|
+
className: g?.segment?.className,
|
|
206
|
+
style: { "--in-view-delay": `calc(${u.motion.duration.slow} * ${I > 1 ? i / (I - 1) : 0})` },
|
|
207
|
+
css: [
|
|
208
|
+
k,
|
|
209
|
+
C[n],
|
|
210
|
+
g?.segment?.css
|
|
211
|
+
],
|
|
212
|
+
children: e
|
|
213
|
+
})
|
|
214
|
+
}, t);
|
|
215
|
+
})
|
|
216
|
+
}, t))
|
|
217
|
+
})]
|
|
218
|
+
})]
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
A.displayName = "InViewTitle";
|
|
224
|
+
//#endregion
|
|
225
|
+
export { A as t };
|
package/dist/index.js
CHANGED
|
@@ -1,85 +1,104 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./accordion-
|
|
3
|
-
import { t } from "./
|
|
4
|
-
import { t as n } from "./
|
|
5
|
-
import { t as r } from "./
|
|
6
|
-
import { t as i } from "./
|
|
7
|
-
import { t as a } from "./
|
|
8
|
-
import { t as o } from "./avatar-
|
|
9
|
-
import { t as s } from "./
|
|
10
|
-
import { t as c } from "./
|
|
11
|
-
import { t as l } from "./
|
|
12
|
-
import { t as u } from "./
|
|
13
|
-
import { t as d } from "./
|
|
14
|
-
import { t as f } from "./
|
|
15
|
-
import { t as p } from "./
|
|
16
|
-
import { t as m } from "./
|
|
17
|
-
import { t as h } from "./
|
|
18
|
-
import { t as g } from "./
|
|
19
|
-
import { t as _ } from "./
|
|
20
|
-
import { t as v } from "./
|
|
21
|
-
import { t as y } from "./
|
|
22
|
-
import { t as b } from "./
|
|
23
|
-
import { t as x } from "./
|
|
24
|
-
import { t as S } from "./
|
|
25
|
-
import { t as C } from "./
|
|
26
|
-
import { t as w } from "./
|
|
27
|
-
import { t as T } from "./
|
|
28
|
-
import { t as E } from "./
|
|
29
|
-
import { t as D } from "./
|
|
30
|
-
import { t as O } from "./
|
|
31
|
-
import { t as k } from "./
|
|
32
|
-
import { t as A } from "./
|
|
33
|
-
import { t as j } from "./
|
|
34
|
-
import { t as M } from "./
|
|
35
|
-
import { t as N } from "./
|
|
36
|
-
import { t as P } from "./
|
|
37
|
-
import { t as F } from "./
|
|
38
|
-
import { t as I } from "./
|
|
39
|
-
import { t as L } from "./
|
|
40
|
-
import { t as R } from "./
|
|
41
|
-
import { t as z } from "./
|
|
42
|
-
import { t as B } from "./
|
|
43
|
-
import { t as V } from "./
|
|
44
|
-
import { t as H } from "./
|
|
45
|
-
import { t as U } from "./
|
|
46
|
-
import { t as W } from "./
|
|
47
|
-
import {
|
|
48
|
-
import { t as
|
|
49
|
-
import { t as
|
|
50
|
-
import { t as
|
|
51
|
-
import { t as
|
|
52
|
-
import { t as
|
|
53
|
-
import { t as
|
|
54
|
-
import { t as
|
|
55
|
-
import { t as
|
|
56
|
-
import { t as
|
|
57
|
-
import { t as
|
|
58
|
-
import { t as
|
|
59
|
-
import { t as
|
|
60
|
-
import { t as
|
|
61
|
-
import {
|
|
62
|
-
import { t as de } from "./
|
|
63
|
-
import { t as fe } from "./
|
|
64
|
-
import { t as pe } from "./
|
|
65
|
-
import {
|
|
66
|
-
import { t as
|
|
67
|
-
import { t as
|
|
68
|
-
import { t as
|
|
69
|
-
import { t as
|
|
70
|
-
import { t as
|
|
71
|
-
import { t as
|
|
72
|
-
import { t as
|
|
73
|
-
import {
|
|
74
|
-
import { t as
|
|
75
|
-
import { t as
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
2
|
+
import { t as e } from "./accordion-D6myONB9.js";
|
|
3
|
+
import { t } from "./activity-rings-Uszvwqdl.js";
|
|
4
|
+
import { t as n } from "./alert-Bhj-qSMs.js";
|
|
5
|
+
import { t as r } from "./button-C6OV0C7J.js";
|
|
6
|
+
import { t as i } from "./countdown-EcpV6rXy.js";
|
|
7
|
+
import { t as a } from "./announcement-bar-B5J33QUh.js";
|
|
8
|
+
import { t as o } from "./avatar-sPxDqFiZ.js";
|
|
9
|
+
import { t as s } from "./avatar-group-BlMLNw4J.js";
|
|
10
|
+
import { t as c } from "./badge-CfhTcA-Z.js";
|
|
11
|
+
import { t as l } from "./segmented-control-DCh-4ca-.js";
|
|
12
|
+
import { t as u } from "./billing-toggle-CgC7yxxo.js";
|
|
13
|
+
import { t as d } from "./bottom-sheet-BFQKO0Wo.js";
|
|
14
|
+
import { t as f } from "./breadcrumbs-CG3akw-b.js";
|
|
15
|
+
import { t as p } from "./menu-CVzpsyXn.js";
|
|
16
|
+
import { t as m } from "./tooltip-IajLwdUb.js";
|
|
17
|
+
import { t as h } from "./button-group-B9wP2ddS.js";
|
|
18
|
+
import { t as g } from "./calendar-Bg6D2sul.js";
|
|
19
|
+
import { t as _ } from "./card-C008OQCp.js";
|
|
20
|
+
import { t as v } from "./carousel-lTH4Foke.js";
|
|
21
|
+
import { t as y } from "./textarea-D1YwEPmn.js";
|
|
22
|
+
import { t as b } from "./chat-thread-DkB-WMWJ.js";
|
|
23
|
+
import { t as x } from "./checkbox-CClE61GV.js";
|
|
24
|
+
import { t as S } from "./chip-group-BZUX9KPF.js";
|
|
25
|
+
import { t as C } from "./copy-button-C0p_qrgf.js";
|
|
26
|
+
import { t as w } from "./code-block-CYP89_6h.js";
|
|
27
|
+
import { t as T } from "./command-palette-BrT1n9bb.js";
|
|
28
|
+
import { t as E } from "./text-field-D0VP7b4P.js";
|
|
29
|
+
import { t as D } from "./combobox-D2Oc-co7.js";
|
|
30
|
+
import { t as O } from "./comment-thread-DXfqgRNI.js";
|
|
31
|
+
import { t as k } from "./container-BxtwJSSD.js";
|
|
32
|
+
import { t as A } from "./context-menu-I4i0LRpm.js";
|
|
33
|
+
import { t as j } from "./date-picker-D-bn-iHs.js";
|
|
34
|
+
import { t as M } from "./date-range-picker-rXcZsI1Y.js";
|
|
35
|
+
import { t as N } from "./dialog-CR1xdkrC.js";
|
|
36
|
+
import { t as P } from "./divider-zOJzkcHh.js";
|
|
37
|
+
import { t as F } from "./drawer-CceaEhCr.js";
|
|
38
|
+
import { t as I } from "./emblem-DnXmpZCh.js";
|
|
39
|
+
import { t as L } from "./empty-state-DO0ApylK.js";
|
|
40
|
+
import { t as R } from "./expandable-card-W97vjix9.js";
|
|
41
|
+
import { t as z } from "./search-field-CbsajaZb.js";
|
|
42
|
+
import { t as B } from "./expanding-search-Bb2_YfNx.js";
|
|
43
|
+
import { t as V } from "./progress-Bcuz3Ob4.js";
|
|
44
|
+
import { t as H } from "./file-dropzone-Bi5ikRIz.js";
|
|
45
|
+
import { t as U } from "./filter-toolbar-QRnC4S_H.js";
|
|
46
|
+
import { t as W } from "./flex-CS7eMRcK.js";
|
|
47
|
+
import { i as G, n as K, r as q, t as J } from "./game-card-Oeu74giK.js";
|
|
48
|
+
import { t as Y } from "./hold-to-confirm-CVBA0wNT.js";
|
|
49
|
+
import { t as X } from "./image-compare-Ln2UUqTU.js";
|
|
50
|
+
import { t as Z } from "./in-view-title-BUZCMqge.js";
|
|
51
|
+
import { t as Q } from "./inline-edit-D-pR2RPC.js";
|
|
52
|
+
import { t as $ } from "./hover-card-Dgu2CwMD.js";
|
|
53
|
+
import { t as ee } from "./json-viewer-Dro3WrjS.js";
|
|
54
|
+
import { t as te } from "./kbd-BI_9qzYr.js";
|
|
55
|
+
import { t as ne } from "./keycap-keyboard-Cdx-OAS1.js";
|
|
56
|
+
import { t as re } from "./lightbox-gallery-D0YaSTut.js";
|
|
57
|
+
import { t as ie } from "./link-unfurl-CReyIjyy.js";
|
|
58
|
+
import { t as ae } from "./locale-switcher-DTkySKsM.js";
|
|
59
|
+
import { n as oe, r as se, t as ce } from "./mention-input-BjjAbJCf.js";
|
|
60
|
+
import { t as le } from "./pill-Dd7pog19.js";
|
|
61
|
+
import { t as ue } from "./metric-card-BnFssTXj.js";
|
|
62
|
+
import { t as de } from "./multi-select-B3puEVo0.js";
|
|
63
|
+
import { t as fe } from "./navigation-C_JD43gA.js";
|
|
64
|
+
import { t as pe } from "./slider-DjAnGmlC.js";
|
|
65
|
+
import { n as me, t as he } from "./now-playing-DjVm1Phm.js";
|
|
66
|
+
import { t as ge } from "./pagination-Dkh4bJQh.js";
|
|
67
|
+
import { t as _e } from "./password-field-Da58GP1g.js";
|
|
68
|
+
import { t as ve } from "./photo-grid-Dtl17D74.js";
|
|
69
|
+
import { t as ye } from "./popover-CUMOcMtj.js";
|
|
70
|
+
import { t as be } from "./radio-cards-FkAhESb5.js";
|
|
71
|
+
import { t as xe } from "./radio-group-DItMf2YM.js";
|
|
72
|
+
import { t as Se } from "./resizable-panels-61h9hA3B.js";
|
|
73
|
+
import { t as Ce } from "./scroll-area-B8KkCPOM.js";
|
|
74
|
+
import { t as we } from "./select-SrcQqZjo.js";
|
|
75
|
+
import { n as Te, t as Ee } from "./sheet-stack-DYX1SGSB.js";
|
|
76
|
+
import { a as De, i as Oe, n as ke, o as Ae, r as je, s as Me, t as Ne } from "./shortcut-recorder-VgTQdjjn.js";
|
|
77
|
+
import { i as Pe, n as Fe, r as Ie, t as Le } from "./signature-pad-khL2yhQI.js";
|
|
78
|
+
import { t as Re } from "./skeleton-LJsQsveI.js";
|
|
79
|
+
import { t as ze } from "./sortable-data-table-Bpitup_d.js";
|
|
80
|
+
import { t as Be } from "./spinner-CvzajSg9.js";
|
|
81
|
+
import { t as Ve } from "./split-button-Bu41f2AY.js";
|
|
82
|
+
import { t as He } from "./stack-Bac4sJeI.js";
|
|
83
|
+
import { t as Ue } from "./stepper-C8Ncavbr.js";
|
|
84
|
+
import { t as We } from "./stretch-refresh-OrnTEj7P.js";
|
|
85
|
+
import { t as Ge } from "./swipe-actions-1H5UOZKE.js";
|
|
86
|
+
import { t as Ke } from "./switch-79-hkQqg.js";
|
|
87
|
+
import { t as qe } from "./tabs-Bb5-noYE.js";
|
|
88
|
+
import { t as Je } from "./tag-input-BQaueKEb.js";
|
|
89
|
+
import { n as Ye, r as Xe, t as Ze } from "./theme-provider-BvcY-iJu.js";
|
|
90
|
+
import { n as Qe, r as $e, t as et } from "./theme-root-BrYVcTzt.js";
|
|
91
|
+
import { t as tt } from "./theme-switch-CP42mVDb.js";
|
|
92
|
+
import { t as nt } from "./time-picker-Tnd-JBLC.js";
|
|
93
|
+
import { t as rt } from "./timeline-BcF46lG9.js";
|
|
94
|
+
import { a as it, n as at } from "./toast-CSAbl5yK.js";
|
|
78
95
|
import "./toast.js";
|
|
79
|
-
import { t as
|
|
80
|
-
import { t as
|
|
81
|
-
import
|
|
82
|
-
import { t as
|
|
83
|
-
import { t as
|
|
84
|
-
import
|
|
85
|
-
|
|
96
|
+
import { t as ot } from "./toast-stack-BCR4Cu7V.js";
|
|
97
|
+
import { t as st } from "./toggle-group-C7ye1v4s.js";
|
|
98
|
+
import "./tooltip.js";
|
|
99
|
+
import { t as ct } from "./tree-view-CoW4oJIZ.js";
|
|
100
|
+
import { t as lt } from "./typewriter-terminal-BUEsMzo3.js";
|
|
101
|
+
import { t as ut } from "./usage-meter-CYvlB6l3.js";
|
|
102
|
+
import { t as dt } from "./user-menu-MctRu_Lh.js";
|
|
103
|
+
import ft from "@emotion/styled";
|
|
104
|
+
export { e as Accordion, t as ActivityRings, n as Alert, a as AnnouncementBar, o as Avatar, s as AvatarGroup, c as Badge, u as BillingToggle, d as BottomSheet, f as Breadcrumbs, r as Button, h as ButtonGroup, g as Calendar, _ as Card, v as Carousel, b as ChatThread, x as Checkbox, S as ChipGroup, w as CodeBlock, D as Combobox, T as CommandPalette, O as CommentThread, k as Container, A as ContextMenu, C as CopyButton, i as Countdown, j as DatePicker, M as DateRangePicker, N as Dialog, P as Divider, F as Drawer, I as Emblem, L as EmptyState, R as ExpandableCard, B as ExpandingSearch, H as FileDropzone, U as FilterToolbar, W as Flex, J as GameCard, Y as HoldToConfirm, $ as HoverCard, X as ImageCompare, Z as InViewTitle, Q as InlineEdit, ee as JsonViewer, te as Kbd, ne as KeycapKeyboard, re as LightboxGallery, ie as LinkUnfurl, ae as LocaleSwitcher, ce as MentionInput, p as Menu, ue as MetricCard, de as MultiSelect, fe as Navigation, he as NowPlaying, me as NowPlayingLevels, ge as Pagination, _e as PasswordField, ve as PhotoGrid, le as Pill, ye as Popover, V as Progress, K as RANK_MARKS, be as RadioCards, xe as RadioGroup, Se as ResizablePanels, q as SUIT_GLYPHS, G as SUIT_INK, Ce as ScrollArea, z as SearchField, l as SegmentedControl, we as Select, Ee as SheetStack, Ne as ShortcutRecorder, Le as SignatureExportError, Fe as SignaturePad, Re as Skeleton, pe as Slider, ze as SortableDataTable, Be as Spinner, Ve as SplitButton, He as Stack, Ue as Stepper, We as StretchRefresh, Ge as SwipeActions, Ke as Switch, qe as Tabs, Je as TagInput, E as TextField, y as Textarea, Ze as ThemeProvider, et as ThemeRoot, tt as ThemeSwitch, nt as TimePicker, rt as Timeline, at as Toast, ot as ToastStack, st as ToggleGroup, m as Tooltip, ct as TreeView, lt as TypewriterTerminal, ut as UsageMeter, dt as UserMenu, Qe as createTheme, ke as defaultShortcutMessages, je as formatShortcut, Oe as matchesShortcut, oe as mentionText, De as normalizeShortcut, se as serializeMentions, Ie as signatureToPng, Pe as signatureToSvg, ft as styled, Xe as theme, $e as themeTokenStyle, Ae as usePressedShortcutKeys, Te as useSheetStack, Me as useShortcutPlatform, Ye as useTheme, it as useToast };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
//#region src/utils/initials.ts
|
|
3
|
+
var e = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
4
|
+
function t(t) {
|
|
5
|
+
let n = Array.from(e.segment(t), ({ segment: e }) => e), r = n[0] ?? "";
|
|
6
|
+
if (!/\p{Extended_Pictographic}/u.test(r)) return r;
|
|
7
|
+
let i = "";
|
|
8
|
+
for (let e of n) {
|
|
9
|
+
if (!/\p{Extended_Pictographic}/u.test(e)) break;
|
|
10
|
+
i += e;
|
|
11
|
+
}
|
|
12
|
+
return i;
|
|
13
|
+
}
|
|
14
|
+
function n(e, n) {
|
|
15
|
+
return e.trim().split(/\s+/).filter(Boolean).slice(0, n).map(t).join("").toLocaleUpperCase();
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { n as t };
|