@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,10 +1,11 @@
|
|
|
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 } from "./media-8yrN85VT.js";
|
|
5
|
+
import { t as r } from "./sx-BJXJ2xJK.js";
|
|
5
6
|
import { t as i } from "./use-controlled-state-DpeVQZNR.js";
|
|
6
7
|
import { t as a } from "./renderable-DzcIj1Lo.js";
|
|
7
|
-
import { t as o } from "./button-
|
|
8
|
+
import { t as o } from "./button-C6OV0C7J.js";
|
|
8
9
|
import { createContext as s, useContext as c, useLayoutEffect as l, useMemo as u, useRef as d } from "react";
|
|
9
10
|
import { vars as f } from "@jfrader/tokens/vars";
|
|
10
11
|
import { jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
@@ -58,8 +59,8 @@ var T = e({
|
|
|
58
59
|
color: f.color.text,
|
|
59
60
|
fontFamily: f.font.sans,
|
|
60
61
|
fontSize: f.textSize.sm,
|
|
61
|
-
"&:focus":
|
|
62
|
-
[
|
|
62
|
+
"&:focus": t,
|
|
63
|
+
[n]: {
|
|
63
64
|
borderColor: "CanvasText",
|
|
64
65
|
backgroundColor: "Canvas",
|
|
65
66
|
color: "CanvasText"
|
|
@@ -79,7 +80,7 @@ var T = e({
|
|
|
79
80
|
borderRadius: f.radius.full,
|
|
80
81
|
backgroundColor: f.color.surfaceHover,
|
|
81
82
|
color: f.color.text,
|
|
82
|
-
[
|
|
83
|
+
[n]: {
|
|
83
84
|
borderColor: "CanvasText",
|
|
84
85
|
backgroundColor: "Canvas",
|
|
85
86
|
color: "CanvasText"
|
|
@@ -97,7 +98,7 @@ var T = e({
|
|
|
97
98
|
padding: 0,
|
|
98
99
|
borderRadius: f.radius.full,
|
|
99
100
|
color: f.color.text,
|
|
100
|
-
[
|
|
101
|
+
[n]: { borderColor: "ButtonText" }
|
|
101
102
|
}), N = e({
|
|
102
103
|
alignSelf: "flex-start",
|
|
103
104
|
maxInlineSize: "100%",
|
|
@@ -107,7 +108,7 @@ var T = e({
|
|
|
107
108
|
whiteSpace: "normal",
|
|
108
109
|
overflowWrap: "anywhere",
|
|
109
110
|
borderColor: f.color.borderControl,
|
|
110
|
-
[
|
|
111
|
+
[n]: { borderColor: "ButtonText" }
|
|
111
112
|
}), P = e({
|
|
112
113
|
margin: 0,
|
|
113
114
|
minInlineSize: 0,
|
|
@@ -116,8 +117,8 @@ var T = e({
|
|
|
116
117
|
fontSize: f.textSize.sm,
|
|
117
118
|
lineHeight: f.lineHeight.base
|
|
118
119
|
});
|
|
119
|
-
function F({ ref: e, value:
|
|
120
|
-
let [O = g, k] = i(
|
|
120
|
+
function F({ ref: e, value: t, defaultValue: n = g, onValueChange: a, disabled: o = !1, label: s = "Filters", messages: c, className: f, sx: m, children: y, "aria-label": b, "aria-labelledby": w, tabIndex: T = -1, ...D }) {
|
|
121
|
+
let [O = g, k] = i(t, n, a), A = u(() => x(O), [O]), j = d(null), M = h([j, e]), N = d(null), P = u(() => ({
|
|
121
122
|
...v,
|
|
122
123
|
...c
|
|
123
124
|
}), [c]), F = u(() => {
|
|
@@ -166,7 +167,7 @@ function F({ ref: e, value: n, defaultValue: r = g, onValueChange: a, disabled:
|
|
|
166
167
|
(a ?? o ?? t).focus();
|
|
167
168
|
}, [A]), /* @__PURE__ */ p(C.Provider, {
|
|
168
169
|
value: F,
|
|
169
|
-
children: /* @__PURE__ */ p(
|
|
170
|
+
children: /* @__PURE__ */ p(r, {
|
|
170
171
|
className: f,
|
|
171
172
|
styles: E,
|
|
172
173
|
sx: m,
|
|
@@ -186,12 +187,12 @@ function F({ ref: e, value: n, defaultValue: r = g, onValueChange: a, disabled:
|
|
|
186
187
|
});
|
|
187
188
|
}
|
|
188
189
|
F.displayName = "FilterToolbar";
|
|
189
|
-
function I({ children: e, className:
|
|
190
|
+
function I({ children: e, className: t, sx: n, ...i }) {
|
|
190
191
|
let { value: a, disabled: o, onValueChange: s } = w("Controls");
|
|
191
|
-
return /* @__PURE__ */ p(
|
|
192
|
-
className:
|
|
192
|
+
return /* @__PURE__ */ p(r, {
|
|
193
|
+
className: t,
|
|
193
194
|
styles: T,
|
|
194
|
-
sx:
|
|
195
|
+
sx: n,
|
|
195
196
|
children: (t) => /* @__PURE__ */ p("div", {
|
|
196
197
|
...i,
|
|
197
198
|
"data-ui": "filter-toolbar-controls",
|
|
@@ -205,29 +206,29 @@ function I({ children: e, className: n, sx: r, ...i }) {
|
|
|
205
206
|
});
|
|
206
207
|
}
|
|
207
208
|
I.displayName = "FilterToolbar.Controls";
|
|
208
|
-
function L({ empty: e, slotProps:
|
|
209
|
+
function L({ empty: e, slotProps: t, className: n, sx: i, ...s }) {
|
|
209
210
|
let { value: c, disabled: l, messages: u, remove: d } = w("ActiveFilters");
|
|
210
|
-
return /* @__PURE__ */ p(
|
|
211
|
-
className:
|
|
211
|
+
return /* @__PURE__ */ p(r, {
|
|
212
|
+
className: n,
|
|
212
213
|
styles: T,
|
|
213
214
|
sx: i,
|
|
214
|
-
children: (
|
|
215
|
+
children: (n) => /* @__PURE__ */ p("div", {
|
|
215
216
|
...s,
|
|
216
217
|
"data-ui": "filter-toolbar-active-filters",
|
|
217
|
-
className:
|
|
218
|
+
className: n,
|
|
218
219
|
children: c.length > 0 ? /* @__PURE__ */ p("ul", {
|
|
219
|
-
className:
|
|
220
|
+
className: t?.list?.className,
|
|
220
221
|
css: [
|
|
221
222
|
T,
|
|
222
223
|
D,
|
|
223
|
-
|
|
224
|
+
t?.list?.css
|
|
224
225
|
],
|
|
225
226
|
children: c.map((e) => /* @__PURE__ */ m("li", {
|
|
226
|
-
className:
|
|
227
|
-
css: [O,
|
|
227
|
+
className: t?.chip?.className,
|
|
228
|
+
css: [O, t?.chip?.css],
|
|
228
229
|
children: [/* @__PURE__ */ m("span", {
|
|
229
|
-
className:
|
|
230
|
-
css: [k,
|
|
230
|
+
className: t?.label?.className,
|
|
231
|
+
css: [k, t?.label?.css],
|
|
231
232
|
children: [/* @__PURE__ */ m("span", {
|
|
232
233
|
css: A,
|
|
233
234
|
children: [e.label, ": "]
|
|
@@ -242,8 +243,8 @@ function L({ empty: e, slotProps: n, className: r, sx: i, ...s }) {
|
|
|
242
243
|
"aria-label": u.remove(e),
|
|
243
244
|
"data-ui": "filter-toolbar-remove",
|
|
244
245
|
"data-filter-id": e.id,
|
|
245
|
-
className:
|
|
246
|
-
css: [M,
|
|
246
|
+
className: t?.remove?.className,
|
|
247
|
+
css: [M, t?.remove?.css],
|
|
247
248
|
onClick: (t) => d(e, t.currentTarget),
|
|
248
249
|
render: (e) => /* @__PURE__ */ p("button", {
|
|
249
250
|
...e,
|
|
@@ -284,10 +285,10 @@ function R({ children: e, onClick: t, disabled: n = !1, css: r, ...i }) {
|
|
|
284
285
|
});
|
|
285
286
|
}
|
|
286
287
|
R.displayName = "FilterToolbar.Clear";
|
|
287
|
-
function z({ count: e, locale:
|
|
288
|
+
function z({ count: e, locale: t, formatCount: n = b, loading: i = !1, loadingLabel: a = "Loading results", unknownLabel: o = "Results unavailable", className: s, sx: c, ...l }) {
|
|
288
289
|
w("ResultCount");
|
|
289
|
-
let u = e !== null && Number.isFinite(e) && Number.isInteger(e) && e >= 0 ?
|
|
290
|
-
return /* @__PURE__ */ p(
|
|
290
|
+
let u = e !== null && Number.isFinite(e) && Number.isInteger(e) && e >= 0 ? n(e, new Intl.NumberFormat(t).format(e)) : o;
|
|
291
|
+
return /* @__PURE__ */ p(r, {
|
|
291
292
|
className: s,
|
|
292
293
|
styles: P,
|
|
293
294
|
sx: c,
|
package/dist/filter-toolbar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as FilterToolbar } from "./filter-toolbar-
|
|
2
|
+
export { t as FilterToolbar } from "./filter-toolbar-QRnC4S_H.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./sx-
|
|
3
|
-
import { t } from "./layout-style-
|
|
2
|
+
import { t as e } from "./sx-BJXJ2xJK.js";
|
|
3
|
+
import { t } from "./layout-style-BE0gSqrH.js";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
5
5
|
//#region src/components/flex/flex.tsx
|
|
6
6
|
function r({ ref: r, direction: i, wrap: a, inline: o, align: s, justify: c, gap: l, className: u, sx: d, ...f }) {
|
package/dist/flex.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as Flex } from "./flex-
|
|
2
|
+
export { t as Flex } from "./flex-CS7eMRcK.js";
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { i as e } from "./css-BYJhdGh-.js";
|
|
3
|
+
import { t } from "./sx-BJXJ2xJK.js";
|
|
4
|
+
import { t as n } from "./renderable-DzcIj1Lo.js";
|
|
5
|
+
import { vars as r } from "@jfrader/tokens/vars";
|
|
6
|
+
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
7
|
+
//#region src/components/game-card/card-frame.ts
|
|
8
|
+
var o = {
|
|
9
|
+
ratio: 1.48,
|
|
10
|
+
cornerDivisor: 13
|
|
11
|
+
}, s = {
|
|
12
|
+
markWidthRatio: .35,
|
|
13
|
+
watermarkInsetPercent: 3,
|
|
14
|
+
watermarkOpacity: .15,
|
|
15
|
+
contentPaddingPercent: 4
|
|
16
|
+
}, c = {
|
|
17
|
+
oros: "💰",
|
|
18
|
+
copas: "🍷",
|
|
19
|
+
espadas: "🗡️",
|
|
20
|
+
bastos: "🌵",
|
|
21
|
+
hearts: "♥︎",
|
|
22
|
+
diamonds: "♦︎",
|
|
23
|
+
clubs: "♣︎",
|
|
24
|
+
spades: "♠︎"
|
|
25
|
+
}, l = {
|
|
26
|
+
hearts: "red",
|
|
27
|
+
diamonds: "red",
|
|
28
|
+
clubs: "ink",
|
|
29
|
+
spades: "ink"
|
|
30
|
+
}, u = {
|
|
31
|
+
1: "1",
|
|
32
|
+
2: "2",
|
|
33
|
+
3: "3",
|
|
34
|
+
4: "4",
|
|
35
|
+
5: "5",
|
|
36
|
+
6: "6",
|
|
37
|
+
7: "7",
|
|
38
|
+
8: "8",
|
|
39
|
+
9: "9",
|
|
40
|
+
10: "10",
|
|
41
|
+
11: "11",
|
|
42
|
+
12: "12",
|
|
43
|
+
A: "A",
|
|
44
|
+
J: "J",
|
|
45
|
+
Q: "Q",
|
|
46
|
+
K: "K"
|
|
47
|
+
}, d = e({
|
|
48
|
+
"--game-card-width": r.size.gameCardMd,
|
|
49
|
+
position: "relative",
|
|
50
|
+
display: "block",
|
|
51
|
+
flexShrink: 0,
|
|
52
|
+
boxSizing: "border-box",
|
|
53
|
+
inlineSize: "var(--game-card-width)",
|
|
54
|
+
blockSize: `calc(var(--game-card-width) * ${o.ratio})`,
|
|
55
|
+
borderRadius: `calc(var(--game-card-width) / ${o.cornerDivisor})`,
|
|
56
|
+
overflow: "hidden",
|
|
57
|
+
containerType: "inline-size",
|
|
58
|
+
userSelect: "none",
|
|
59
|
+
verticalAlign: "middle"
|
|
60
|
+
}), f = e({
|
|
61
|
+
backgroundColor: r.color.cardFace,
|
|
62
|
+
color: r.color.cardInk,
|
|
63
|
+
border: `1px solid ${r.color.cardInk}`
|
|
64
|
+
}), p = e({ opacity: .55 }), m = e({
|
|
65
|
+
position: "absolute",
|
|
66
|
+
inset: 0
|
|
67
|
+
}), h = e({
|
|
68
|
+
display: "grid",
|
|
69
|
+
placeItems: "center",
|
|
70
|
+
paddingInline: `${s.contentPaddingPercent}%`,
|
|
71
|
+
fontSize: `${s.markWidthRatio * 100}cqw`,
|
|
72
|
+
fontWeight: r.fontWeight.semibold,
|
|
73
|
+
lineHeight: 1,
|
|
74
|
+
whiteSpace: "nowrap"
|
|
75
|
+
}), g = e({
|
|
76
|
+
display: "grid",
|
|
77
|
+
placeItems: "center",
|
|
78
|
+
"& > img, & > svg": {
|
|
79
|
+
inlineSize: "100%",
|
|
80
|
+
blockSize: "100%",
|
|
81
|
+
objectFit: "cover"
|
|
82
|
+
}
|
|
83
|
+
}), _ = e({
|
|
84
|
+
display: "grid",
|
|
85
|
+
gridAutoFlow: "column",
|
|
86
|
+
alignItems: "center",
|
|
87
|
+
gap: "0.1em"
|
|
88
|
+
}), v = e({
|
|
89
|
+
position: "absolute",
|
|
90
|
+
fontSize: `${s.markWidthRatio * 100}cqw`,
|
|
91
|
+
lineHeight: 1,
|
|
92
|
+
opacity: s.watermarkOpacity
|
|
93
|
+
}), y = e({
|
|
94
|
+
insetBlockStart: `${s.watermarkInsetPercent}%`,
|
|
95
|
+
insetInlineEnd: 0
|
|
96
|
+
}), b = e({
|
|
97
|
+
insetBlockEnd: `${s.watermarkInsetPercent}%`,
|
|
98
|
+
insetInlineStart: 0
|
|
99
|
+
}), x = {
|
|
100
|
+
red: e({ color: r.color.cardRed }),
|
|
101
|
+
ink: e({ color: r.color.cardInk })
|
|
102
|
+
}, S = e({
|
|
103
|
+
backgroundColor: r.color.surfaceRaised,
|
|
104
|
+
backgroundImage: `repeating-linear-gradient(45deg, ${r.color.surfaceHover} 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, ${r.color.surfaceHover} 0 2px, transparent 2px 6px)`,
|
|
105
|
+
"&::after": {
|
|
106
|
+
content: "\"\"",
|
|
107
|
+
position: "absolute",
|
|
108
|
+
inset: "8%",
|
|
109
|
+
border: `1px solid ${r.color.borderControl}`,
|
|
110
|
+
borderRadius: "inherit"
|
|
111
|
+
}
|
|
112
|
+
}), C = {
|
|
113
|
+
sm: e({ "--game-card-width": r.size.gameCardSm }),
|
|
114
|
+
md: e({ "--game-card-width": r.size.gameCardMd }),
|
|
115
|
+
lg: e({ "--game-card-width": r.size.gameCardLg })
|
|
116
|
+
};
|
|
117
|
+
function w({ ref: e, label: r, value: a, face: o, size: s = "md", rankLabel: c, dimmed: l = !1, children: u, slotProps: h, className: _, sx: v, ...y }) {
|
|
118
|
+
let b = o ?? (a === void 0 ? "back" : "emoji"), x = b === "back" || a === void 0;
|
|
119
|
+
return /* @__PURE__ */ i(t, {
|
|
120
|
+
className: _,
|
|
121
|
+
styles: [
|
|
122
|
+
d,
|
|
123
|
+
f,
|
|
124
|
+
C[s],
|
|
125
|
+
l && p
|
|
126
|
+
],
|
|
127
|
+
sx: v,
|
|
128
|
+
children: (t) => /* @__PURE__ */ i("div", {
|
|
129
|
+
...y,
|
|
130
|
+
ref: e,
|
|
131
|
+
role: "img",
|
|
132
|
+
"aria-label": r,
|
|
133
|
+
"data-ui": "game-card",
|
|
134
|
+
"data-face": b,
|
|
135
|
+
"data-deck": x ? void 0 : a.deck,
|
|
136
|
+
className: t,
|
|
137
|
+
children: x ? /* @__PURE__ */ i("span", {
|
|
138
|
+
"data-ui": "game-card-back",
|
|
139
|
+
"aria-hidden": "true",
|
|
140
|
+
className: h?.back?.className,
|
|
141
|
+
css: [
|
|
142
|
+
m,
|
|
143
|
+
S,
|
|
144
|
+
h?.back?.css
|
|
145
|
+
]
|
|
146
|
+
}) : n(u) ? /* @__PURE__ */ i("span", {
|
|
147
|
+
"data-ui": "game-card-art",
|
|
148
|
+
"aria-hidden": "true",
|
|
149
|
+
className: h?.face?.className,
|
|
150
|
+
css: [
|
|
151
|
+
m,
|
|
152
|
+
g,
|
|
153
|
+
h?.face?.css
|
|
154
|
+
],
|
|
155
|
+
children: u
|
|
156
|
+
}) : /* @__PURE__ */ i(T, {
|
|
157
|
+
value: a,
|
|
158
|
+
rankLabel: c,
|
|
159
|
+
slotProps: h
|
|
160
|
+
})
|
|
161
|
+
})
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
w.displayName = "GameCard";
|
|
165
|
+
function T({ value: e, rankLabel: t, slotProps: n }) {
|
|
166
|
+
let r = c[e.suit], o = t ?? u[e.rank], s = l[e.suit];
|
|
167
|
+
return /* @__PURE__ */ a("span", {
|
|
168
|
+
"data-ui": "game-card-print",
|
|
169
|
+
"aria-hidden": "true",
|
|
170
|
+
className: n?.face?.className,
|
|
171
|
+
css: [
|
|
172
|
+
m,
|
|
173
|
+
h,
|
|
174
|
+
s !== void 0 && x[s],
|
|
175
|
+
n?.face?.css
|
|
176
|
+
],
|
|
177
|
+
children: [
|
|
178
|
+
/* @__PURE__ */ i("span", {
|
|
179
|
+
css: [v, y],
|
|
180
|
+
children: r
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ a("span", {
|
|
183
|
+
css: _,
|
|
184
|
+
children: [/* @__PURE__ */ i("span", { children: o }), /* @__PURE__ */ i("span", { children: r })]
|
|
185
|
+
}),
|
|
186
|
+
/* @__PURE__ */ i("span", {
|
|
187
|
+
css: [v, b],
|
|
188
|
+
children: r
|
|
189
|
+
})
|
|
190
|
+
]
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
export { l as i, u as n, c as r, w as t };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
import { n
|
|
4
|
-
import { n as
|
|
2
|
+
import { a as e, i as t } from "./css-BYJhdGh-.js";
|
|
3
|
+
import { n } from "./focus-ring-BK5W5_NY.js";
|
|
4
|
+
import { n as r, r as i } from "./media-8yrN85VT.js";
|
|
5
|
+
import { t as a } from "./sx-BJXJ2xJK.js";
|
|
5
6
|
import { t as o } from "./use-latest-callback-cj1OOQL6.js";
|
|
6
7
|
import { t as s } from "./use-controlled-state-DpeVQZNR.js";
|
|
7
|
-
import { t as c } from "./visually-hidden-
|
|
8
|
+
import { t as c } from "./visually-hidden-DgVO3NaB.js";
|
|
8
9
|
import { t as l } from "./renderable-DzcIj1Lo.js";
|
|
9
|
-
import { t as u } from "./icon-wrapper-
|
|
10
|
+
import { t as u } from "./icon-wrapper-C-zMD0uL.js";
|
|
10
11
|
import { useEffect as d, useId as f, useRef as p, useState as m } from "react";
|
|
11
12
|
import { vars as h } from "@jfrader/tokens/vars";
|
|
12
13
|
import { Fragment as g, jsx as _, jsxs as v } from "@emotion/react/jsx-runtime";
|
|
@@ -31,7 +32,7 @@ var te = 1200, y = 24, ne = 1e3, b = 2 ** 31 - 1, x = "--hold-progress", re = t(
|
|
|
31
32
|
touchAction: "none",
|
|
32
33
|
userSelect: "none",
|
|
33
34
|
"&:hover:not(:disabled):not([aria-disabled=\"true\"])": { backgroundColor: h.color.surfaceHover },
|
|
34
|
-
"&:focus-visible":
|
|
35
|
+
"&:focus-visible": n,
|
|
35
36
|
"&:disabled": {
|
|
36
37
|
cursor: "not-allowed",
|
|
37
38
|
opacity: .55
|
|
@@ -45,7 +46,7 @@ var te = 1200, y = 24, ne = 1e3, b = 2 ** 31 - 1, x = "--hold-progress", re = t(
|
|
|
45
46
|
visibility: "visible",
|
|
46
47
|
clipPath: "inset(0)"
|
|
47
48
|
},
|
|
48
|
-
[
|
|
49
|
+
[r]: {
|
|
49
50
|
borderColor: "ButtonText",
|
|
50
51
|
"&:focus-visible": { outlineColor: "Highlight" },
|
|
51
52
|
"&[data-state=\"holding\"]": { borderStyle: "double" }
|
|
@@ -93,7 +94,7 @@ var te = 1200, y = 24, ne = 1e3, b = 2 ** 31 - 1, x = "--hold-progress", re = t(
|
|
|
93
94
|
to: { opacity: 1 }
|
|
94
95
|
}), w = t({
|
|
95
96
|
animation: `${C} ${h.motion.duration.fast} ${h.motion.easeStandard}`,
|
|
96
|
-
[
|
|
97
|
+
[i]: { animation: "none" }
|
|
97
98
|
}), oe = t({
|
|
98
99
|
position: "absolute",
|
|
99
100
|
inset: 0,
|
|
@@ -106,13 +107,13 @@ var te = 1200, y = 24, ne = 1e3, b = 2 ** 31 - 1, x = "--hold-progress", re = t(
|
|
|
106
107
|
transitionDuration: h.motion.duration.base,
|
|
107
108
|
transitionTimingFunction: h.motion.easeStandard,
|
|
108
109
|
"&:dir(rtl)": { clipPath: "inset(0 0 0 calc(100% - var(--hold-progress, 0%)))" },
|
|
109
|
-
[
|
|
110
|
-
[
|
|
110
|
+
[i]: { transitionDuration: "0s" },
|
|
111
|
+
[r]: {
|
|
111
112
|
forcedColorAdjust: "none",
|
|
112
113
|
backgroundColor: "Highlight",
|
|
113
114
|
color: "HighlightText"
|
|
114
115
|
}
|
|
115
|
-
}), se = t([c, { [
|
|
116
|
+
}), se = t([c, { [r]: { "&[data-holding=\"true\"]": {
|
|
116
117
|
position: "static",
|
|
117
118
|
inlineSize: "auto",
|
|
118
119
|
blockSize: "auto",
|
|
@@ -122,18 +123,18 @@ var te = 1200, y = 24, ne = 1e3, b = 2 ** 31 - 1, x = "--hold-progress", re = t(
|
|
|
122
123
|
whiteSpace: "normal",
|
|
123
124
|
marginInlineStart: h.space[2]
|
|
124
125
|
} } }]);
|
|
125
|
-
function T({ ref: e, label: t, confirmedLabel:
|
|
126
|
+
function T({ ref: e, label: t, confirmedLabel: n, confirmationAnnouncement: r, getHoldDescription: i, locale: h, duration: C = te, value: T, defaultValue: ce = !1, onValueChange: le, onConfirm: ue, onHoldChange: de, tone: fe = "accent", size: pe = "md", icon: me, confirmedIcon: he = "✓", disabled: E = !1, slotProps: D, className: ge, sx: _e, onPointerDown: ve, onPointerMove: ye, onPointerUp: O, onPointerCancel: k, onLostPointerCapture: A, onKeyDown: j, onKeyUp: M, onBlur: N, onClick: P, onContextMenu: be, "aria-describedby": F, ...I }) {
|
|
126
127
|
if (!Number.isFinite(C) || C <= 0) throw Error("HoldToConfirm: duration must be a finite positive number of milliseconds.");
|
|
127
128
|
let L = `${f()}-hint`, [R, xe] = s(T, ce, le), [z, B] = m(!1), [Se, V] = m(""), H = p(!1), U = p(null), Ce = ee([e]), W = o(de), we = o(ue), G = I["aria-disabled"] === !0 || I["aria-disabled"] === "true", K = (e = !0) => {
|
|
128
129
|
let t = U.current;
|
|
129
130
|
t && (U.current = null, t.stop(), t.button.style.setProperty(x, "0%"), B(!1), !t.completed && e && W(!1), "pointerId" in t.origin && t.button.hasPointerCapture(t.origin.pointerId) && t.button.releasePointerCapture(t.origin.pointerId));
|
|
130
131
|
}, q = o(K);
|
|
131
132
|
d(() => {
|
|
132
|
-
H.current && (H.current = !1, R && V(
|
|
133
|
+
H.current && (H.current = !1, R && V(r)), R || V("");
|
|
133
134
|
}, [
|
|
134
135
|
R,
|
|
135
136
|
z,
|
|
136
|
-
|
|
137
|
+
r
|
|
137
138
|
]), d(() => {
|
|
138
139
|
q();
|
|
139
140
|
}, [
|
|
@@ -181,7 +182,7 @@ function T({ ref: e, label: t, confirmedLabel: r, confirmationAnnouncement: i, g
|
|
|
181
182
|
}, X = (e) => {
|
|
182
183
|
let t = U.current?.origin;
|
|
183
184
|
t && "pointerId" in t && t.pointerId === e && K();
|
|
184
|
-
}, Z = R ?
|
|
185
|
+
}, Z = R ? n : t, Q = R ? he : me, $ = /* @__PURE__ */ v(g, { children: [l(Q) && /* @__PURE__ */ _("span", {
|
|
185
186
|
"aria-hidden": "true",
|
|
186
187
|
className: D?.icon?.className,
|
|
187
188
|
css: [
|
|
@@ -202,7 +203,7 @@ function T({ ref: e, label: t, confirmedLabel: r, confirmationAnnouncement: i, g
|
|
|
202
203
|
...C < 1 ? { maximumSignificantDigits: 3 } : void 0
|
|
203
204
|
}).format(C / ne);
|
|
204
205
|
return /* @__PURE__ */ v(g, { children: [
|
|
205
|
-
/* @__PURE__ */ _(
|
|
206
|
+
/* @__PURE__ */ _(a, {
|
|
206
207
|
className: ge,
|
|
207
208
|
styles: [
|
|
208
209
|
re,
|
|
@@ -277,7 +278,7 @@ function T({ ref: e, label: t, confirmedLabel: r, confirmationAnnouncement: i, g
|
|
|
277
278
|
"data-holding": z || void 0,
|
|
278
279
|
className: D?.hint?.className,
|
|
279
280
|
css: [se, D?.hint?.css],
|
|
280
|
-
children:
|
|
281
|
+
children: i(Te)
|
|
281
282
|
}),
|
|
282
283
|
/* @__PURE__ */ _("span", {
|
|
283
284
|
role: "status",
|
package/dist/hold-to-confirm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as HoldToConfirm } from "./hold-to-confirm-
|
|
2
|
+
export { t as HoldToConfirm } from "./hold-to-confirm-CVBA0wNT.js";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
import { r } from "./media-8yrN85VT.js";
|
|
2
|
+
import { a as e, i as t } from "./css-BYJhdGh-.js";
|
|
3
|
+
import { r as n } from "./media-8yrN85VT.js";
|
|
4
|
+
import { t as r } from "./sx-BJXJ2xJK.js";
|
|
4
5
|
import { t as i } from "./use-controlled-state-DpeVQZNR.js";
|
|
5
6
|
import { t as a } from "./renderable-DzcIj1Lo.js";
|
|
6
|
-
import { t as o } from "./avatar-
|
|
7
|
-
import { n as s } from "./surface-
|
|
8
|
-
import { t as c } from "./trigger-style-
|
|
7
|
+
import { t as o } from "./avatar-sPxDqFiZ.js";
|
|
8
|
+
import { n as s } from "./surface-C69kwSuk.js";
|
|
9
|
+
import { t as c } from "./trigger-style-CtOrdPk4.js";
|
|
9
10
|
import { a as l, i as u } from "./overlay-layer-qEbpEtb8.js";
|
|
10
|
-
import { t as d } from "./overlay-portal-
|
|
11
|
+
import { t as d } from "./overlay-portal-C9igMHnC.js";
|
|
11
12
|
import { t as f } from "./use-overlay-floating-Bx2jBKAA.js";
|
|
12
13
|
import { createContext as p, useCallback as m, useContext as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
|
|
13
14
|
import { vars as b } from "@jfrader/tokens/vars";
|
|
@@ -60,7 +61,7 @@ var z = b.space[1], B = e({
|
|
|
60
61
|
"&[data-side=\"left\"]": { "--hover-card-enter-x": z },
|
|
61
62
|
"&[data-side=\"right\"]": { "--hover-card-enter-x": `calc(-1 * ${z})` },
|
|
62
63
|
"&[data-entry=\"warm\"]": { animation: `${V} ${b.motion.duration.fast} ${b.motion.easeStandard}` },
|
|
63
|
-
[
|
|
64
|
+
[n]: { "&, &[data-entry=\"warm\"]": { animation: "none" } }
|
|
64
65
|
});
|
|
65
66
|
function U({ value: e, defaultValue: t = null, onValueChange: n, skipDelay: r = A, intentDelay: a = j, children: o }) {
|
|
66
67
|
let [s = null, c] = i(e, t, n), l = I(r, A), u = v(/* @__PURE__ */ new Map()), [d, f] = y(() => ({
|
|
@@ -178,14 +179,14 @@ function G(e) {
|
|
|
178
179
|
}) });
|
|
179
180
|
}
|
|
180
181
|
G.displayName = "HoverCard";
|
|
181
|
-
function K({ ref: e = null, render: t, "aria-describedby":
|
|
182
|
-
let { refs: s, getReferenceProps: l } = F("Trigger"), u = E([s.setReference, e]), { "data-ui": d, ...f } = o, p = l(f), m = [
|
|
182
|
+
function K({ ref: e = null, render: t, "aria-describedby": n, className: i, sx: a, ...o }) {
|
|
183
|
+
let { refs: s, getReferenceProps: l } = F("Trigger"), u = E([s.setReference, e]), { "data-ui": d, ...f } = o, p = l(f), m = [n, p["aria-describedby"]].filter(Boolean).join(" ") || void 0, h = {
|
|
183
184
|
...p,
|
|
184
185
|
ref: u,
|
|
185
186
|
"aria-describedby": m,
|
|
186
187
|
"data-ui": t && d !== void 0 ? `${d} hover-card-trigger` : "hover-card-trigger"
|
|
187
188
|
};
|
|
188
|
-
return /* @__PURE__ */ x(
|
|
189
|
+
return /* @__PURE__ */ x(r, {
|
|
189
190
|
className: i,
|
|
190
191
|
styles: t ? void 0 : c,
|
|
191
192
|
sx: a,
|
|
@@ -200,7 +201,7 @@ function K({ ref: e = null, render: t, "aria-describedby": r, className: i, sx:
|
|
|
200
201
|
});
|
|
201
202
|
}
|
|
202
203
|
K.displayName = "HoverCard.Trigger";
|
|
203
|
-
function q({ ref: e, style: t, className:
|
|
204
|
+
function q({ ref: e, style: t, className: n, sx: i, ...a }) {
|
|
204
205
|
let { side: o, refs: s, floatingStyles: c, getFloatingProps: l, warmEntry: u } = F("Content"), [d] = y(() => {
|
|
205
206
|
let e = s.domReference.current;
|
|
206
207
|
return e?.ownerDocument.defaultView?.getComputedStyle(e).direction;
|
|
@@ -209,8 +210,8 @@ function q({ ref: e, style: t, className: r, sx: i, ...a }) {
|
|
|
209
210
|
ref: s.setFloating,
|
|
210
211
|
dir: d,
|
|
211
212
|
style: c,
|
|
212
|
-
children: /* @__PURE__ */ x(
|
|
213
|
-
className:
|
|
213
|
+
children: /* @__PURE__ */ x(r, {
|
|
214
|
+
className: n,
|
|
214
215
|
styles: H,
|
|
215
216
|
sx: i,
|
|
216
217
|
children: (n) => /* @__PURE__ */ x("div", {
|
|
@@ -273,17 +274,17 @@ var Y = t({
|
|
|
273
274
|
fontSize: b.textSize.xs,
|
|
274
275
|
color: b.color.textMuted
|
|
275
276
|
});
|
|
276
|
-
function $({ ref: e, name: t, subtitle:
|
|
277
|
+
function $({ ref: e, name: t, subtitle: n, bio: i, src: s, avatar: c, stats: l = [], meta: u, locale: d, slotProps: f, className: p, sx: m, ...h }) {
|
|
277
278
|
let g = l.some((e) => typeof e.value == "number") ? new Intl.NumberFormat(d) : void 0;
|
|
278
|
-
return /* @__PURE__ */ x(
|
|
279
|
+
return /* @__PURE__ */ x(r, {
|
|
279
280
|
className: p,
|
|
280
281
|
styles: Y,
|
|
281
282
|
sx: m,
|
|
282
|
-
children: (
|
|
283
|
+
children: (r) => /* @__PURE__ */ S("div", {
|
|
283
284
|
...h,
|
|
284
285
|
ref: e,
|
|
285
286
|
"data-ui": "hover-card-profile",
|
|
286
|
-
className:
|
|
287
|
+
className: r,
|
|
287
288
|
children: [
|
|
288
289
|
/* @__PURE__ */ S("div", {
|
|
289
290
|
css: X,
|
|
@@ -302,9 +303,9 @@ function $({ ref: e, name: t, subtitle: r, bio: i, src: s, avatar: c, stats: l =
|
|
|
302
303
|
children: [/* @__PURE__ */ x("div", {
|
|
303
304
|
css: ne,
|
|
304
305
|
children: t
|
|
305
|
-
}), a(
|
|
306
|
+
}), a(n) && /* @__PURE__ */ x("div", {
|
|
306
307
|
css: Q,
|
|
307
|
-
children:
|
|
308
|
+
children: n
|
|
308
309
|
})]
|
|
309
310
|
})]
|
|
310
311
|
}),
|
package/dist/hover-card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as HoverCard } from "./hover-card-
|
|
2
|
+
export { t as HoverCard } from "./hover-card-Dgu2CwMD.js";
|