@midas-ds/components 13.0.1 → 14.1.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/AccordionItem-CAi-XFOc.js +343 -0
- package/AccordionItem-tWS22wDv.cjs +1 -0
- package/BadgeContainer-BZl6mSeb.cjs +1 -0
- package/{BadgeContainer-iNNgJKD9.js → BadgeContainer-DilMiV6u.js} +9 -9
- package/{Breadcrumbs-BQLxFZVm.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
- package/{Breadcrumbs-C6B4fyk3.js → Breadcrumbs-BenPNv8Z.js} +15 -15
- package/Button-1sEX8jKn.cjs +1 -0
- package/{Button-D_tRdPW9.cjs → Button-BEWKXjlP.cjs} +1 -1
- package/{Button-CUMHt7MG.js → Button-CF97piBl.js} +10 -4
- package/{Button-DD5_S-tD.js → Button-CGe3Nyos.js} +122 -116
- package/Button.module-COONZqNU.cjs +1 -0
- package/Button.module-Cm0H98vy.js +14 -0
- package/{ButtonGroup-zx-9mxbJ.cjs → ButtonGroup-BpvDDECt.cjs} +1 -1
- package/{ButtonGroup-DC8925jD.js → ButtonGroup-Swh2E6Es.js} +1 -1
- package/CHANGELOG.md +59 -0
- package/Card-DJ8E5Rzd.js +131 -0
- package/Card-Db9xdzJ0.cjs +1 -0
- package/{CharacterCounter-CnRv-iUP.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
- package/{CharacterCounter-DT7A0wWP.js → CharacterCounter-gbDGfize.js} +8 -8
- package/Checkbox-BgrLxY6P.cjs +1 -0
- package/{Checkbox-DTuryJdM.js → Checkbox-CdN1D5pD.js} +91 -87
- package/{CheckboxGroup-BmFdy-K6.js → CheckboxGroup-B1b-6bKq.js} +12 -12
- package/{CheckboxGroup-LrqCwPET.cjs → CheckboxGroup-BfZyy5yU.cjs} +1 -1
- package/{Collection-B0_WAieZ.js → Collection-BkxwF21i.js} +205 -213
- package/Collection-vGO6v3_U.cjs +1 -0
- package/{ColorSchemeSwitch-D5juAHPc.cjs → ColorSchemeSwitch-BOooU0iy.cjs} +3 -3
- package/{ColorSchemeSwitch-CgZfgCG4.js → ColorSchemeSwitch-KjnsdbDr.js} +10 -10
- package/{ComboBox-B2btGwWe.js → ComboBox-D1ZSZ6m-.js} +286 -278
- package/ComboBox-Dztk_jtC.cjs +1 -0
- package/DateField-BogEOseq.cjs +1 -0
- package/DateField-lsr_1fw4.js +47 -0
- package/{DateInputDivider-LxS0Kw1H.js → DateInputDivider-CRv3YuXd.js} +199 -196
- package/DateInputDivider-CYqm6PZP.cjs +1 -0
- package/{DateRangePicker-BmPPDZIF.js → DateRangePicker-5k1swaEt.js} +123 -119
- package/DateRangePicker-CgNXWOT6.cjs +6 -0
- package/Dialog-B1N4Ndyx.js +256 -0
- package/{Dialog-COeUapMW.js → Dialog-BUAp30Wc.js} +710 -692
- package/Dialog-BgSxz1JW.cjs +1 -0
- package/Dialog-PrnV8KTh.cjs +6 -0
- package/{DragAndDrop-Dw8JZmrn.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
- package/{DragAndDrop-PrUJv--B.js → DragAndDrop-DF0VoPJw.js} +2 -2
- package/{Dropdown-C_W6Sizy.cjs → Dropdown-DBFLb8Tl.cjs} +2 -2
- package/{Dropdown-CGQbf7OT.js → Dropdown-DaARa89l.js} +8 -8
- package/FieldError-Cimgm8qD.cjs +1 -0
- package/FieldError-l3xULRa0.js +48 -0
- package/{FileUpload-D2gnQKdn.js → FileUpload-CN0HNJ_Y.js} +14 -14
- package/{FileUpload-D3RaARDV.cjs → FileUpload-DHmsupSe.cjs} +1 -1
- package/{Grid-BmX6arAO.js → Grid-0XOQPryP.js} +2 -2
- package/{Grid-Bn1bCTH8.cjs → Grid-B6G4PWn5.cjs} +1 -1
- package/{GridItem-luVsL9lu.cjs → GridItem-BZ8eOXMB.cjs} +1 -1
- package/{GridItem-BtO9kCX9.js → GridItem-YtIpL5V2.js} +1 -1
- package/Group-B0Wj9pI8.cjs +1 -0
- package/Group-BAd7alBM.js +46 -0
- package/Heading-CCoGfKQ8.js +48 -0
- package/Heading-x7y3xadc.cjs +1 -0
- package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
- package/InfoBanner-BW3vy9mc.js +72 -0
- package/InfoBanner-_M_rGQiu.cjs +1 -0
- package/{Input-CzMx2mfl.cjs → Input-Bda0PCu5.cjs} +1 -1
- package/{Input-BLVRv0FK.js → Input-CQzv-D9g.js} +9 -9
- package/{Label-1N6ddn5w.js → Label-BGMXsSFb.js} +15 -15
- package/Label-CNTODOFg.cjs +1 -0
- package/Layout-BrEuHajQ.cjs +16 -0
- package/{Layout-B-A-s7B0.js → Layout-JL9l-y7w.js} +144 -145
- package/{Link-lO-Ke97K.js → Link-BudFjYrw.js} +22 -22
- package/Link-BvUSTIip.cjs +6 -0
- package/{Link-wM7cVPlS.cjs → Link-DRU6Qzia.cjs} +1 -1
- package/{Link-CbFSuEI1.js → Link-l-nMP-Zd.js} +10 -10
- package/LinkButton-DGdnbTgR.cjs +6 -0
- package/LinkButton-DP9W-E32.js +69 -0
- package/ListBox-TGCxrXIJ.cjs +1 -0
- package/ListBox-mOCZvKD4.js +534 -0
- package/{ListBoxLoadMoreItem-C4jnDcYH.js → ListBoxLoadMoreItem-CLdTe6-z.js} +5 -5
- package/{ListBoxLoadMoreItem-3jGpi90m.cjs → ListBoxLoadMoreItem-UX0jFQN4.cjs} +1 -1
- package/ListBoxSection-BNBHosou.cjs +1 -0
- package/{ListBoxSection-D7BcbjUt.js → ListBoxSection-D_kTkvgG.js} +139 -140
- package/{ListKeyboardDelegate-CVxkAn5D.js → ListKeyboardDelegate-BHnZMUhW.js} +36 -40
- package/ListKeyboardDelegate-CLRlDto7.cjs +1 -0
- package/{Logo-CFjZc5u2.cjs → Logo-4tRnV4Su.cjs} +1 -1
- package/{Logo-DkagDdKQ.js → Logo-DLlt576_.js} +17 -17
- package/{OverlayArrow-CvNuu3e3.js → OverlayArrow-CjGslX2c.js} +4 -4
- package/{OverlayArrow-ByH6lM-H.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
- package/{Popover-Bf5YH53o.js → Popover-CZFi2YGz.js} +13 -13
- package/Popover-uYTWBGHa.cjs +1 -0
- package/{PressResponder-CxVtArtP.js → PressResponder-BMj6Zvbn.js} +9 -9
- package/PressResponder-ChvCuOue.cjs +1 -0
- package/ProgressBar-BGemuJIq.cjs +1 -0
- package/ProgressBar-DhRmckYM.js +53 -0
- package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
- package/RSPContexts-XUvspq3j.cjs +1 -0
- package/Radio-Bp_31Z59.js +340 -0
- package/Radio-D3RGVrEd.cjs +1 -0
- package/{RangeCalendar-Bi9jc61A.js → RangeCalendar-9C96gMvy.js} +146 -145
- package/RangeCalendar-ChfmP_ql.cjs +6 -0
- package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
- package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
- package/{SearchField-BevjTbcW.js → SearchField-DrEdzWAy.js} +44 -44
- package/SearchField-JaDXLq5W.cjs +6 -0
- package/Select-BCUH-Z7q.cjs +1 -0
- package/{Select-CEwJo1BT.js → Select-CpPE78Ke.js} +210 -188
- package/SelectionIndicator-BiSN1toV.cjs +1 -0
- package/{FocusScope-Bj40Ir-g.js → SelectionIndicator-ant6jeC1.js} +256 -165
- package/SelectionManager-C469yQeD.js +1063 -0
- package/SelectionManager-uFYC4wpu.cjs +1 -0
- package/{Separator-Bj24aGrT.js → Separator-B6l5qSpR.js} +28 -28
- package/{Separator-CM0KPvsX.js → Separator-BWAnBMVN.js} +5 -5
- package/Separator-DbhmtwDa.cjs +1 -0
- package/{Separator-Dgin8BNW.cjs → Separator-J0pLW4BN.cjs} +1 -1
- package/Skeleton-8onymGEG.cjs +1 -0
- package/Skeleton-BjTEGRpe.js +35 -0
- package/Spinner-D6Fcu_Dp.js +54 -0
- package/Spinner-DIapnvIz.cjs +6 -0
- package/TabList-C0tRVI6Q.cjs +1 -0
- package/TabList-DmkxO7MM.js +394 -0
- package/Table-BLqjyYKk.cjs +16 -0
- package/{Table-BzJktg2G.js → Table-CyWZO9uf.js} +710 -706
- package/Tag-DJqYiBLR.js +774 -0
- package/Tag-FDHGu_WP.cjs +1 -0
- package/{Text-BtPiT2P1.cjs → Text-0wXj3J8E.cjs} +1 -1
- package/Text-BBFWBNAH.js +32 -0
- package/{Text-BAFsaON-.cjs → Text-D5OSv6Uv.cjs} +1 -1
- package/{Text-Be7WIOwv.js → Text-bqP9NeVg.js} +3 -3
- package/TextArea-CZxwvBcS.cjs +1 -0
- package/TextArea-CrY7P18c.js +125 -0
- package/{TextField-_UY8CXtW.js → TextField-BWea-IT-.js} +26 -26
- package/TextField-DsN-kBfh.cjs +1 -0
- package/TextField.module-C03d0VY9.js +13 -0
- package/TextField.module-DmRrFHra.cjs +1 -0
- package/{Toast-Cs0CEbRr.cjs → Toast-DUZ5jfG1.cjs} +1 -1
- package/{Toast-B74PMVL9.js → Toast-Di3h8A14.js} +101 -101
- package/{ToggleButtonGroup-CwHPu7w5.js → ToggleButtonGroup-Bh4hP6Lk.js} +83 -79
- package/ToggleButtonGroup-D7r34GCt.cjs +1 -0
- package/{Tooltip-BHAtsp9k.js → Tooltip-CUdmOznK.js} +13 -13
- package/{Tooltip-CZa9n5sT.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
- package/{VisuallyHidden-EjrqodVh.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
- package/{VisuallyHidden-CGEtjAP7.js → VisuallyHidden-DuW70K-5.js} +8 -8
- package/accordion/Accordion.d.ts +0 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +2 -3
- package/assets/AccordionItem.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Dropdown.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Logo.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/default.css +1 -1
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/clsx-DKOfLqne.cjs +1 -0
- package/clsx-jbLnTBqA.js +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
- package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
- package/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/Heading.d.ts +6 -0
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BLPblar-.js → index-DEx4upZl.js} +19 -19
- package/{index-DSFSh2sC.cjs → index-hURPlN0u.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.js +126 -127
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/{mergeProps-BSsN7Bgk.js → mergeProps-Ct8m5-xW.js} +1 -1
- package/{mergeProps-JhcJ7uJL.cjs → mergeProps-Du5A8xi8.cjs} +1 -1
- package/modal/Dialog.d.ts +16 -3
- package/modal/index.cjs +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +2 -2
- package/package.json +4 -4
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-BVI21Y4-.js +65 -0
- package/scrollIntoView-BueMOyGp.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/select/types.d.ts +1 -1
- package/select/useMultiSelect.d.ts +2 -2
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/Spinner.d.ts +5 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tabs.d.ts +2 -9
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +0 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/TextArea.d.ts +3 -2
- package/textfield/TextField.d.ts +3 -2
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-R8-i3HLC.cjs → useButton-C0r5nrqs.cjs} +1 -1
- package/{useButton-D6iUB8cN.js → useButton-CRgN6aZf.js} +3 -3
- package/useDateFormatter-BrrFo4nY.cjs +1 -0
- package/{useDateFormatter-BJ1ZyaH1.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
- package/{useDescription-BMuiAqI5.cjs → useDescription-6BYtQxe6.cjs} +1 -1
- package/{useDescription-BLmIkYCq.js → useDescription-BFwQx7Rp.js} +1 -1
- package/useEvent-C125NAue.cjs +1 -0
- package/{useEvent-DpBHTuHJ.js → useEvent-smuTnX4G.js} +1 -1
- package/{useField-BMegM8fA.js → useField-BhJ9dM2g.js} +2 -2
- package/{useField-DyeD7MLj.cjs → useField-DvszkIMx.cjs} +1 -1
- package/{useFilter-BFnSe_Eq.js → useFilter-BdUU-HQZ.js} +1 -1
- package/{useFilter-aoggM85n.cjs → useFilter-R2IPvbS8.cjs} +1 -1
- package/{useFocusRing-BcbYske2.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
- package/{useFocusRing-DMo8ctYV.js → useFocusRing-CcxI7nbg.js} +2 -2
- package/{useFocusWithin-ClMkhYcq.js → useFocusWithin-DhXBuB2O.js} +1 -1
- package/{useFocusWithin-DTnk0e8a.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
- package/{useFocusable-DXlMChFC.js → useFocusable-BJj-Bkig.js} +14 -14
- package/{useFocusable-CsG-IPuC.cjs → useFocusable-M4se1KJt.cjs} +1 -1
- package/{useFormValidation-L0UHvOsP.js → useFormValidation-By7G-T7y.js} +2 -2
- package/{useFormValidation-BQIRxgbU.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
- package/useHasTabbableChild-CIZGg_iG.cjs +1 -0
- package/{useHasTabbableChild-BDaxMsGu.js → useHasTabbableChild-CnpSoDuJ.js} +2 -2
- package/{useHighlightSelectionDescription-CQaG611l.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
- package/{useHighlightSelectionDescription-BkEv9Jye.js → useHighlightSelectionDescription-DPiqOr_Z.js} +5 -5
- package/{useHover-DGAmG7jt.cjs → useHover-DULSfLuK.cjs} +1 -1
- package/{useHover-D6bNIkU0.js → useHover-DkC5FyNd.js} +5 -5
- package/{useLabels-CvUk-yS3.cjs → useLabels-B5pmat1S.cjs} +1 -1
- package/{useLabels-Kmq5JCp_.js → useLabels-D24on06F.js} +1 -1
- package/{useListState-D2IEg6_e.cjs → useListState-DBawAMhF.cjs} +1 -1
- package/{useListState-pixYqSLl.js → useListState-PZF3ahpk.js} +1 -1
- package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
- package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
- package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
- package/{usePress-DMUpU0GU.js → usePress-BqQIhkNY.js} +54 -54
- package/usePress-DmU79HEg.cjs +7 -0
- package/{useSingleSelectListState-BlvpP8y-.js → useSingleSelectListState-BLRBEJC7.js} +1 -1
- package/{useSingleSelectListState-CwWK_Dx2.cjs → useSingleSelectListState-CNETmoj5.cjs} +1 -1
- package/{useTextField-BC5X_AO_.js → useTextField-B8pM0p6X.js} +7 -7
- package/{useTextField-Cxpfu0U3.cjs → useTextField-CiWV3eeD.cjs} +1 -1
- package/useToggleState-DaxmInOW.cjs +1 -0
- package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
- package/utils/clsx.d.ts +8 -0
- package/utils/types.d.ts +5 -0
- package/utils-CtICjCYt.cjs +1 -0
- package/{utils-Cpcjg55U.js → utils-D2iKpxcZ.js} +47 -43
- package/utils-DRIRjPUS.cjs +1 -0
- package/{utils-DFIwp4PB.js → utils-Dxh86KaB.js} +20 -18
- package/AccordionItem-Bq8nUKg4.cjs +0 -1
- package/AccordionItem-D2Y0gJZB.js +0 -335
- package/BadgeContainer-su0iCJKy.cjs +0 -1
- package/Button-CMIbSc4-.cjs +0 -1
- package/Button.module-BT9wZenr.cjs +0 -1
- package/Button.module-CGIVvzVm.js +0 -14
- package/Card-D2UbrhDW.js +0 -131
- package/Card-UolcSL5O.cjs +0 -1
- package/Checkbox-dtZfsSfx.cjs +0 -1
- package/Collection-BvWp2xBd.cjs +0 -1
- package/ComboBox-uMsVrOYu.cjs +0 -1
- package/DateField-B5dlDwdH.cjs +0 -1
- package/DateField-CEpRn4wR.js +0 -47
- package/DateInputDivider-BnSo_Aox.cjs +0 -1
- package/DateRangePicker-It4M98bT.cjs +0 -6
- package/Dialog-B1HuzqOX.js +0 -240
- package/Dialog-DR6nEqMT.cjs +0 -1
- package/Dialog-doGnVsJJ.cjs +0 -1
- package/FieldError-Cornph2A.cjs +0 -1
- package/FieldError-DdvFyIf4.js +0 -48
- package/FocusScope-Uy3DiY0-.cjs +0 -1
- package/Group-BKYGeOBr.cjs +0 -1
- package/Group-C73mD_-i.js +0 -45
- package/Heading-BQlmb5Tm.js +0 -46
- package/Heading-D3FR_KXb.cjs +0 -1
- package/InfoBanner-C82hcpzj.cjs +0 -1
- package/InfoBanner-Dz_0wVSa.js +0 -83
- package/Label-06gf6yKQ.cjs +0 -1
- package/Layout-DlE30BHE.cjs +0 -16
- package/Link-ePZ3nrAW.cjs +0 -6
- package/LinkButton-CJyZh3BS.js +0 -69
- package/LinkButton-Cw73pOM2.cjs +0 -6
- package/ListBox-ICZKGluC.cjs +0 -1
- package/ListBox-LncMQt6I.js +0 -523
- package/ListBoxSection-BeDwnVZx.cjs +0 -1
- package/ListKeyboardDelegate-C_X1wLkh.cjs +0 -1
- package/Popover-DIq3kp6B.cjs +0 -1
- package/PressResponder-DbnYqwGB.cjs +0 -1
- package/ProgressBar-DRhXkSE6.js +0 -53
- package/ProgressBar-i7almbvK.cjs +0 -1
- package/RSPContexts-D8hmBfGm.cjs +0 -1
- package/Radio-BpQoJB8e.cjs +0 -1
- package/Radio-D4wUZfW9.js +0 -333
- package/RangeCalendar-KcJooXYf.cjs +0 -6
- package/SearchField-BA-X9dzb.cjs +0 -6
- package/Select-1QuVY4f5.cjs +0 -1
- package/SelectionManager-Bq-Gw1UT.js +0 -1043
- package/SelectionManager-BtbHoHpA.cjs +0 -1
- package/Separator-Cfv2pbWf.cjs +0 -1
- package/Skeleton-Iovq135_.js +0 -35
- package/Skeleton-MaBUPqhT.cjs +0 -1
- package/Spinner-BZ7i01Kt.js +0 -47
- package/Spinner-DxWDMW6e.cjs +0 -6
- package/TabList-3fErCDyP.cjs +0 -1
- package/TabList-CXaxruLg.js +0 -397
- package/Table-Dyqa6_rE.cjs +0 -16
- package/Tag-BYUPXbhG.js +0 -765
- package/Tag-BweDKw1v.cjs +0 -1
- package/Text-CmlsaWMA.js +0 -32
- package/TextArea-B4BZUoJp.cjs +0 -1
- package/TextArea-Df1fR5R4.js +0 -124
- package/TextField-Bm5916AD.cjs +0 -1
- package/TextField.module-CH39P8ZE.js +0 -13
- package/TextField.module-gJ-ruFra.cjs +0 -1
- package/ToggleButtonGroup-DY9S3USc.cjs +0 -1
- package/inertValue-B3AFhVG4.cjs +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/useDateFormatter-2B0vgHc-.cjs +0 -1
- package/useEvent-3ZO5TPSH.cjs +0 -1
- package/useHasTabbableChild-CJcLnolh.cjs +0 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
- package/useObserveElement-BdI4zgd7.js +0 -27
- package/useObserveElement-MhzEsCkX.cjs +0 -1
- package/usePress-CicXV7UO.cjs +0 -7
- package/useToggleState-SqDyNfRi.cjs +0 -1
- package/utils/storybook.d.ts +0 -5
- package/utils/test.d.ts +0 -11
- package/utils-CMHKYKlz.cjs +0 -1
- package/utils-__vrf9VZ.cjs +0 -1
- package/variables-B3KEYyhW.cjs +0 -1
- package/variables-DzXcMW2k.js +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("react"),z=require("./utils-__vrf9VZ.cjs"),T=require("./mergeProps-JhcJ7uJL.cjs"),j=require("./usePress-CicXV7UO.cjs"),Z=require("./useEvent-3ZO5TPSH.cjs"),se=require("./scrollIntoView-DRSoJp89.cjs"),De=require("./FocusScope-Uy3DiY0-.cjs"),Q=require("./useHover-DGAmG7jt.cjs"),ue=require("./useFocusable-CsG-IPuC.cjs"),Ee=require("react-dom"),Te=require("./context-Df3XbgBG.cjs"),ke=require("./useDescription-BMuiAqI5.cjs"),Ae=require("./useControlledState-D0L6S_5r.cjs");function he(n,e){const t=a.useRef(!0),l=a.useRef(null);T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(t.current=!0,()=>{t.current=!1}),[]),T.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{t.current?t.current=!1:(!l.current||e.some((i,c)=>!Object.is(i,l[c])))&&n(),l.current=e},e)}const Ie="react-aria-clear-focus",Me="react-aria-focus";function H(n){return Q.$c87311424ea30a05$export$9ac100e40613ea10()?n.metaKey:n.ctrlKey}const Ce=500;function Ke(n){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:l,onLongPress:i,threshold:c=Ce,accessibilityDescription:s}=n;const p=a.useRef(void 0);let{addGlobalListener:f,removeGlobalListener:S}=z.$03deb23ff14920c4$export$4eaf04e54aa8eed6(),{pressProps:k}=j.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(t&&t({...v,type:"longpressstart"}),p.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),z.$431fbd86ca7dc216$export$b204af158042fbac(v.target).activeElement!==v.target&&z.$7215afc6de606d6b$export$de79e2c695e052f3(v.target),i&&i({...v,type:"longpress"}),p.current=void 0},c),v.pointerType==="touch")){let K=b=>{b.preventDefault()};f(v.target,"contextmenu",K,{once:!0}),f(window,"pointerup",()=>{setTimeout(()=>{S(v.target,"contextmenu",K)},30)},{once:!0})}},onPressEnd(v){p.current&&clearTimeout(p.current),l&&(v.pointerType==="mouse"||v.pointerType==="touch")&&l({...v,type:"longpressend"})}}),g=ke.$ef06256079686ba0$export$f8aeda7b10753fa1(i&&!e?s:void 0);return{longPressProps:T.$3ef42575df84b30b$export$9d1611c77c2fe928(k,g)}}function me(n){let e=Be(z.$431fbd86ca7dc216$export$b204af158042fbac(n));e!==n&&(e&&Re(e,n),n&&fe(n,e))}function Re(n,e){n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function fe(n,e){n.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Be(n){let e=z.$d4ee10de306f2510$export$cd4e5573fbe2b576(n),t=e==null?void 0:e.getAttribute("aria-activedescendant");return t&&n.getElementById(t)||e}function ae(n){return Q.$c87311424ea30a05$export$e1865c3bedcd822b()?n.altKey:n.ctrlKey}function J(n,e){var t,l;let i=`[data-key="${CSS.escape(String(e))}"]`,c=(t=n.current)===null||t===void 0?void 0:t.dataset.collection;return c&&(i=`[data-collection="${CSS.escape(c)}"]${i}`),(l=n.current)===null||l===void 0?void 0:l.querySelector(i)}const Se=new WeakMap;function Le(n){let e=T.$bdb11010cef70236$export$f680877a34711e37();return Se.set(n,e),e}function Oe(n){return Se.get(n)}const qe=1e3;function xe(n){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:l}=n,i=a.useRef({search:"",timeout:void 0}).current,c=s=>{let p=ze(s.key);if(!(!p||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||i.search.length===0&&p===" ")){if(p===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=p,e.getKeyForSearch!=null){let f=e.getKeyForSearch(i.search,t.focusedKey);f==null&&(f=e.getKeyForSearch(i.search)),f!=null&&(t.setFocusedKey(f),l&&l(f))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},qe)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?c:void 0}}}function ze(n){return n.length===1||!/^[A-Z]/i.test(n)?n:""}function Ue(n){let{selectionManager:e,keyboardDelegate:t,ref:l,autoFocus:i=!1,shouldFocusWrap:c=!1,disallowEmptySelection:s=!1,disallowSelectAll:p=!1,escapeKeyBehavior:f="clearSelection",selectOnFocus:S=e.selectionBehavior==="replace",disallowTypeAhead:k=!1,shouldUseVirtualFocus:g,allowsTabNavigation:v=!1,isVirtualized:K,scrollRef:b=l,linkBehavior:A="action"}=n,{direction:y}=Te.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=j.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),x=o=>{var d;if(o.altKey&&o.key==="Tab"&&o.preventDefault(),!(!((d=l.current)===null||d===void 0)&&d.contains(o.target)))return;const r=(u,U)=>{if(u!=null){if(e.isLink(u)&&A==="selection"&&S&&!ae(o)){Ee.flushSync(()=>{e.setFocusedKey(u,U)});let V=J(l,u),pe=e.getItemProps(u);V&&h.open(V,o,pe.href,pe.routerOptions);return}if(e.setFocusedKey(u,U),e.isLink(u)&&A==="override")return;o.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):S&&!ae(o)&&e.replaceSelection(u)}};switch(o.key){case"ArrowDown":if(t.getKeyBelow){var m,E,D;let u=e.focusedKey!=null?(m=t.getKeyBelow)===null||m===void 0?void 0:m.call(t,e.focusedKey):(E=t.getFirstKey)===null||E===void 0?void 0:E.call(t);u==null&&c&&(u=(D=t.getFirstKey)===null||D===void 0?void 0:D.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),r(u))}break;case"ArrowUp":if(t.getKeyAbove){var L,q,_;let u=e.focusedKey!=null?(L=t.getKeyAbove)===null||L===void 0?void 0:L.call(t,e.focusedKey):(q=t.getLastKey)===null||q===void 0?void 0:q.call(t);u==null&&c&&(u=(_=t.getLastKey)===null||_===void 0?void 0:_.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),r(u))}break;case"ArrowLeft":if(t.getKeyLeftOf){var ee,te,le;let u=e.focusedKey!=null?(ee=t.getKeyLeftOf)===null||ee===void 0?void 0:ee.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(te=t.getFirstKey)===null||te===void 0?void 0:te.call(t,e.focusedKey):(le=t.getLastKey)===null||le===void 0?void 0:le.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),r(u,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(t.getKeyRightOf){var ie,ne,re;let u=e.focusedKey!=null?(ie=t.getKeyRightOf)===null||ie===void 0?void 0:ie.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(ne=t.getLastKey)===null||ne===void 0?void 0:ne.call(t,e.focusedKey):(re=t.getFirstKey)===null||re===void 0?void 0:re.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),r(u,y==="rtl"?"last":"first"))}break;case"Home":if(t.getFirstKey){if(e.focusedKey===null&&o.shiftKey)return;o.preventDefault();let u=t.getFirstKey(e.focusedKey,H(o));e.setFocusedKey(u),u!=null&&(H(o)&&o.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):S&&e.replaceSelection(u))}break;case"End":if(t.getLastKey){if(e.focusedKey===null&&o.shiftKey)return;o.preventDefault();let u=t.getLastKey(e.focusedKey,H(o));e.setFocusedKey(u),u!=null&&(H(o)&&o.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):S&&e.replaceSelection(u))}break;case"PageDown":if(t.getKeyPageBelow&&e.focusedKey!=null){let u=t.getKeyPageBelow(e.focusedKey);u!=null&&(o.preventDefault(),r(u))}break;case"PageUp":if(t.getKeyPageAbove&&e.focusedKey!=null){let u=t.getKeyPageAbove(e.focusedKey);u!=null&&(o.preventDefault(),r(u))}break;case"a":H(o)&&e.selectionMode==="multiple"&&p!==!0&&(o.preventDefault(),e.selectAll());break;case"Escape":f==="clearSelection"&&!s&&e.selectedKeys.size!==0&&(o.stopPropagation(),o.preventDefault(),e.clearSelection());break;case"Tab":if(!v){if(o.shiftKey)l.current.focus();else{let u=De.$9bf71ea28793e738$export$2d6ec8fc375ceafa(l.current,{tabbable:!0}),U,V;do V=u.lastChild(),V&&(U=V);while(V);U&&!U.contains(document.activeElement)&&z.$7215afc6de606d6b$export$de79e2c695e052f3(U)}break}}},$=a.useRef({top:0,left:0});Z.$e9faafb641e167db$export$90fc3a17d93f704c(b,"scroll",K?void 0:()=>{var o,d,r,m;$.current={top:(r=(o=b.current)===null||o===void 0?void 0:o.scrollTop)!==null&&r!==void 0?r:0,left:(m=(d=b.current)===null||d===void 0?void 0:d.scrollLeft)!==null&&m!==void 0?m:0}});let F=o=>{if(e.isFocused){o.currentTarget.contains(o.target)||e.setFocused(!1);return}if(o.currentTarget.contains(o.target)){if(e.setFocused(!0),e.focusedKey==null){var d,r;let D=q=>{q!=null&&(e.setFocusedKey(q),S&&!e.isSelected(q)&&e.replaceSelection(q))},L=o.relatedTarget;var m,E;L&&o.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?D((m=e.lastSelectedKey)!==null&&m!==void 0?m:(d=t.getLastKey)===null||d===void 0?void 0:d.call(t)):D((E=e.firstSelectedKey)!==null&&E!==void 0?E:(r=t.getFirstKey)===null||r===void 0?void 0:r.call(t))}else!K&&b.current&&(b.current.scrollTop=$.current.top,b.current.scrollLeft=$.current.left);if(e.focusedKey!=null&&b.current){let D=J(l,e.focusedKey);D instanceof HTMLElement&&(!D.contains(document.activeElement)&&!g&&z.$7215afc6de606d6b$export$de79e2c695e052f3(D),Q.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="keyboard"&&se.$2f04cbc44ee30ce0$export$c826860796309d1b(D,{containingElement:l.current}))}}},I=o=>{o.currentTarget.contains(o.relatedTarget)||e.setFocused(!1)},M=a.useRef(!1);Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,Me,g?o=>{let{detail:d}=o;o.stopPropagation(),e.setFocused(!0),(d==null?void 0:d.focusStrategy)==="first"&&(M.current=!0)}:void 0);let R=T.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{var o,d;let r=(d=(o=t.getFirstKey)===null||o===void 0?void 0:o.call(t))!==null&&d!==void 0?d:null;if(r==null){let m=z.$d4ee10de306f2510$export$cd4e5573fbe2b576();me(l.current),fe(m,null),e.collection.size>0&&(M.current=!1)}else e.setFocusedKey(r),M.current=!1});he(()=>{M.current&&R()},[e.collection,R]);let P=T.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{e.collection.size>0&&(M.current=!1)});he(()=>{P()},[e.focusedKey,P]),Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,Ie,g?o=>{var d;o.stopPropagation(),e.setFocused(!1),!((d=o.detail)===null||d===void 0)&&d.clearFocusKey&&e.setFocusedKey(null)}:void 0);const W=a.useRef(i),B=a.useRef(!1);a.useEffect(()=>{if(W.current){var o,d;let E=null;var r;i==="first"&&(E=(r=(o=t.getFirstKey)===null||o===void 0?void 0:o.call(t))!==null&&r!==void 0?r:null);var m;i==="last"&&(E=(m=(d=t.getLastKey)===null||d===void 0?void 0:d.call(t))!==null&&m!==void 0?m:null);let D=e.selectedKeys;if(D.size){for(let L of D)if(e.canSelectItem(L)){E=L;break}}e.setFocused(!0),e.setFocusedKey(E),E==null&&!g&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),e.collection.size>0&&(W.current=!1,B.current=!0)}});let O=a.useRef(e.focusedKey),w=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==O.current||B.current)&&b.current&&l.current){let o=Q.$507fabe10e71c6fb$export$630ff653c5ada6a9(),d=J(l,e.focusedKey);if(!(d instanceof HTMLElement))return;(o==="keyboard"||B.current)&&(w.current&&cancelAnimationFrame(w.current),w.current=requestAnimationFrame(()=>{b.current&&(se.$2f04cbc44ee30ce0$export$53a0910f038337bd(b.current,d),o!=="virtual"&&se.$2f04cbc44ee30ce0$export$c826860796309d1b(d,{containingElement:l.current}))}))}!g&&e.isFocused&&e.focusedKey==null&&O.current!=null&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),O.current=e.focusedKey,B.current=!1}),a.useEffect(()=>()=>{w.current&&cancelAnimationFrame(w.current)},[]),Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,"react-aria-focus-scope-restore",o=>{o.preventDefault(),e.setFocused(!0)});let G={onKeyDown:x,onFocus:F,onBlur:I,onMouseDown(o){b.current===o.target&&o.preventDefault()}},{typeSelectProps:X}=xe({keyboardDelegate:t,selectionManager:e});k||(G=T.$3ef42575df84b30b$export$9d1611c77c2fe928(X,G));let Y;g||(Y=e.focusedKey==null?0:-1);let N=Le(e.collection);return{collectionProps:T.$3ef42575df84b30b$export$9d1611c77c2fe928(G,{tabIndex:Y,"data-collection":N})}}function Ve(n){let{id:e,selectionManager:t,key:l,ref:i,shouldSelectOnPressUp:c,shouldUseVirtualFocus:s,focus:p,isDisabled:f,onAction:S,allowsDifferentPressOrigin:k,linkBehavior:g="action"}=n,v=j.$ea8dcbcb9ea1b556$export$9a302a45f65d0572();e=T.$bdb11010cef70236$export$f680877a34711e37(e);let K=r=>{if(r.pointerType==="keyboard"&&ae(r))t.toggleSelection(l);else{if(t.selectionMode==="none")return;if(t.isLink(l)){if(g==="selection"&&i.current){let m=t.getItemProps(l);v.open(i.current,r,m.href,m.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(g==="override"||g==="none")return}t.selectionMode==="single"?t.isSelected(l)&&!t.disallowEmptySelection?t.toggleSelection(l):t.replaceSelection(l):r&&r.shiftKey?t.extendSelection(l):t.selectionBehavior==="toggle"||r&&(H(r)||r.pointerType==="touch"||r.pointerType==="virtual")?t.toggleSelection(l):t.replaceSelection(l)}};a.useEffect(()=>{l===t.focusedKey&&t.isFocused&&(s?me(i.current):p?p():document.activeElement!==i.current&&i.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(i.current))},[i,l,t.focusedKey,t.childFocusStrategy,t.isFocused,s]),f=f||t.isDisabled(l);let b={};!s&&!f?b={tabIndex:l===t.focusedKey?0:-1,onFocus(r){r.target===i.current&&t.setFocusedKey(l)}}:f&&(b.onMouseDown=r=>{r.preventDefault()});let A=t.isLink(l)&&g==="override",y=t.isLink(l)&&g!=="selection"&&g!=="none",h=!f&&t.canSelectItem(l)&&!A,x=(S||y)&&!f,$=x&&(t.selectionBehavior==="replace"?!h:!h||t.isEmpty),F=x&&h&&t.selectionBehavior==="replace",I=$||F,M=a.useRef(null),R=I&&h,P=a.useRef(!1),W=a.useRef(!1),B=t.getItemProps(l),O=r=>{S&&S(),y&&i.current&&v.open(i.current,r,B.href,B.routerOptions)},w={ref:i};if(c?(w.onPressStart=r=>{M.current=r.pointerType,P.current=R,r.pointerType==="keyboard"&&(!I||$e())&&K(r)},k?(w.onPressUp=$?void 0:r=>{r.pointerType==="mouse"&&h&&K(r)},w.onPress=$?O:r=>{r.pointerType!=="keyboard"&&r.pointerType!=="mouse"&&h&&K(r)}):w.onPress=r=>{if($||F&&r.pointerType!=="mouse"){if(r.pointerType==="keyboard"&&!ye())return;O(r)}else r.pointerType!=="keyboard"&&h&&K(r)}):(w.onPressStart=r=>{M.current=r.pointerType,P.current=R,W.current=$,h&&(r.pointerType==="mouse"&&!$||r.pointerType==="keyboard"&&(!x||$e()))&&K(r)},w.onPress=r=>{(r.pointerType==="touch"||r.pointerType==="pen"||r.pointerType==="virtual"||r.pointerType==="keyboard"&&I&&ye()||r.pointerType==="mouse"&&W.current)&&(I?O(r):h&&K(r))}),b["data-collection"]=Oe(t.collection),b["data-key"]=l,w.preventFocusOnPress=s,s&&(w=T.$3ef42575df84b30b$export$9d1611c77c2fe928(w,{onPressStart(r){r.pointerType!=="touch"&&(t.setFocused(!0),t.setFocusedKey(l))},onPress(r){r.pointerType==="touch"&&(t.setFocused(!0),t.setFocusedKey(l))}})),B)for(let r of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])B[r]&&(w[r]=T.$ff5963eb1fccf552$export$e08e3b67e392101e(w[r],B[r]));let{pressProps:G,isPressed:X}=j.$f6c31cce2adf654f$export$45712eceda6fad21(w),Y=F?r=>{M.current==="mouse"&&(r.stopPropagation(),r.preventDefault(),O(r))}:void 0,{longPressProps:N}=Ke({isDisabled:!R,onLongPress(r){r.pointerType==="touch"&&(K(r),t.setSelectionBehavior("toggle"))}}),o=r=>{M.current==="touch"&&P.current&&r.preventDefault()},d=g!=="none"&&t.isLink(l)?r=>{j.$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening||r.preventDefault()}:void 0;return{itemProps:T.$3ef42575df84b30b$export$9d1611c77c2fe928(b,h||$||s&&!f?G:{},R?N:{},{onDoubleClick:Y,onDragStartCapture:o,onClick:d,id:e},s?{onMouseDown:r=>r.preventDefault()}:void 0),isPressed:X,isSelected:t.isSelected(l),isFocused:t.isFocused&&t.focusedKey===l,isDisabled:f,allowsSelection:h,hasAction:I}}function ye(){let n=window.event;return(n==null?void 0:n.key)==="Enter"}function $e(){let n=window.event;return(n==null?void 0:n.key)===" "||(n==null?void 0:n.code)==="Space"}class He{build(e,t){return this.context=t,ve(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(a.isValidElement(t)&&t.type===a.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if(typeof t=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");let i=0;for(let c of l)yield*this.getFullNode({value:c,index:i},{renderer:t}),i++}else{let i=[];a.Children.forEach(t,s=>{s&&i.push(s)});let c=0;for(let s of i){let p=this.getFullNode({element:s,index:c},{});for(let f of p)c++,yield f}}}getKey(e,t,l,i){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${i}${t.key}`;let c=t.value;if(c!=null){var s;let p=(s=c.key)!==null&&s!==void 0?s:c.id;if(p==null)throw new Error("No key found for item");return p}return i?`${i}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,i){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let y=[];a.Children.forEach(e.element.props.children,x=>{y.push(x)});var c;let h=(c=e.index)!==null&&c!==void 0?c:0;for(const x of y)yield*this.getFullNode({element:x,index:h++},t,l,i);return}let s=e.element;if(!s&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=i?i.key:null,yield y;return}s=t.renderer(e.value)}if(a.isValidElement(s)){let y=s.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let F=s.type;throw new Error(`Unknown element <${F}> in collection.`)}let h=y.getCollectionNode(s.props,this.context);var p;let x=(p=e.index)!==null&&p!==void 0?p:0,$=h.next();for(;!$.done&&$.value;){let F=$.value;e.index=x;var f;let I=(f=F.key)!==null&&f!==void 0?f:null;I==null&&(I=F.element?null:this.getKey(s,e,t,l));let R=[...this.getFullNode({...F,key:I,index:x,wrapper:We(e.wrapper,F.wrapper)},this.getChildState(t,F),l?`${l}${s.key}`:s.key,i)];for(let P of R){var S,k;P.value=(k=(S=F.value)!==null&&S!==void 0?S:e.value)!==null&&k!==void 0?k:null,P.value&&this.cache.set(P.value,P);var g;if(e.type&&P.type!==e.type)throw new Error(`Unsupported type <${oe(P.type)}> in <${oe((g=i==null?void 0:i.type)!==null&&g!==void 0?g:"unknown parent type")}>. Only <${oe(e.type)}> is supported.`);x++,yield P}$=h.next(R)}return}if(e.key==null||e.type==null)return;let v=this;var K,b;let A={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(K=e.value)!==null&&K!==void 0?K:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:ve(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let h of e.childNodes()){h.key!=null&&(h.key=`${A.key}${h.key}`);let x=v.getFullNode({...h,index:y},v.getChildState(t,h),A.key,A);for(let $ of x)y++,yield $}})};yield A}constructor(){this.cache=new WeakMap}}function ve(n){let e=[],t=null;return{*[Symbol.iterator](){for(let l of e)yield l;t||(t=n());for(let l of t)e.push(l),yield l}}}function We(n,e){if(n&&e)return t=>n(e(t));if(n)return n;if(e)return e}function oe(n){return n[0].toUpperCase()+n.slice(1)}function Ge(n,e,t){let l=a.useMemo(()=>new He,[]),{children:i,items:c,collection:s}=n;return a.useMemo(()=>{if(s)return s;let f=l.build({children:i,items:c},t);return e(f)},[l,i,c,s,t,e])}function we(n,e){return typeof e.getChildren=="function"?e.getChildren(n.key):n.childNodes}function Fe(n){return Pe(n,0)}function Pe(n,e){if(e<0)return;let t=0;for(let l of n){if(t===e)return l;t++}}function je(n){let e;for(let t of n)e=t;return e}function ce(n,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let l=[...be(n,e),e],i=[...be(n,t),t],c=l.slice(0,i.length).findIndex((s,p)=>s!==i[p]);return c!==-1?(e=l[c],t=i[c],e.index-t.index):l.findIndex(s=>s===t)>=0?1:(i.findIndex(s=>s===e)>=0,-1)}function be(n,e){let t=[],l=e;for(;(l==null?void 0:l.parentKey)!=null;)l=n.getItem(l.parentKey),l&&t.unshift(l);return t}class C extends Set{constructor(e,t,l){super(e),e instanceof C?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null)}}function Ye(n,e){if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}function Ze(n){let{selectionMode:e="none",disallowEmptySelection:t=!1,allowDuplicateSelectionEvents:l,selectionBehavior:i="toggle",disabledBehavior:c="all"}=n,s=a.useRef(!1),[,p]=a.useState(!1),f=a.useRef(null),S=a.useRef(null),[,k]=a.useState(null),g=a.useMemo(()=>ge(n.selectedKeys),[n.selectedKeys]),v=a.useMemo(()=>ge(n.defaultSelectedKeys,new C),[n.defaultSelectedKeys]),[K,b]=Ae.$458b0a5536c1a7cf$export$40bfa8c7b0832715(g,v,n.onSelectionChange),A=a.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[y,h]=a.useState(i);i==="replace"&&y==="toggle"&&typeof K=="object"&&K.size===0&&h("replace");let x=a.useRef(i);return a.useEffect(()=>{i!==x.current&&(h(i),x.current=i)},[i]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:y,setSelectionBehavior:h,get isFocused(){return s.current},setFocused($){s.current=$,p($)},get focusedKey(){return f.current},get childFocusStrategy(){return S.current},setFocusedKey($,F="first"){f.current=$,S.current=F,k($)},selectedKeys:K,setSelectedKeys($){(l||!Ye($,K))&&b($)},disabledKeys:A,disabledBehavior:c}}function ge(n,e){return n?n==="all"?"all":new C(n):e}class de{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(l=>t.has(l)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let i=this.collection.getItem(l);(!e||i&&ce(this.collection,i,e)<0)&&(e=i)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get lastSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let i=this.collection.getItem(l);(!e||i&&ce(this.collection,i,e)>0)&&(e=i)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l;if(this.state.selectedKeys==="all")l=new C([t],t,t);else{let s=this.state.selectedKeys;var i;let p=(i=s.anchorKey)!==null&&i!==void 0?i:t;l=new C(s,p,t);var c;for(let f of this.getKeyRange(p,(c=s.currentKey)!==null&&c!==void 0?c:t))l.delete(f);for(let f of this.getKeyRange(t,p))this.canSelectItem(f)&&l.add(f)}this.state.setSelectedKeys(l)}getKeyRange(e,t){let l=this.collection.getItem(e),i=this.collection.getItem(t);return l&&i?ce(this.collection,l,i)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var l;if(!((l=this.layoutDelegate)===null||l===void 0)&&l.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let i=[],c=e;for(;c!=null;){let s=this.collection.getItem(c);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&i.push(c),c===t)return i;c=this.collection.getKeyAfter(c)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type==="cell"&&this.allowsCellSelection)return e;for(;t&&t.type!=="item"&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!=="item"?null:t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l=new C(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),!(this.disallowEmptySelection&&l.size===0)&&this.state.setSelectedKeys(l)}replaceSelection(e){if(this.selectionMode==="none")return;let t=this.getKey(e);if(t==null)return;let l=this.canSelectItem(t)?new C([t],t,t):new C;this.state.setSelectedKeys(l)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new C;for(let l of e){let i=this.getKey(l);if(i!=null&&(t.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=l=>{for(;l!=null;){if(this.canSelectItem(l)){var i;let s=this.collection.getItem(l);(s==null?void 0:s.type)==="item"&&e.push(l);var c;s!=null&&s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&t((c=(i=Fe(we(s,this.collection)))===null||i===void 0?void 0:i.key)!==null&&c!==void 0?c:null)}l=this.collection.getKeyAfter(l)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new C)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!(!l||!(l==null||(t=l.props)===null||t===void 0)&&t.isDisabled||l.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var t,l;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.isDisabled))}isLink(e){var t,l;return!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.href)}getItemProps(e){var t;return(t=this.collection.getItem(e))===null||t===void 0?void 0:t.props}withCollection(e){return new de(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,l){this.collection=e,this.state=t;var i;this.allowsCellSelection=(i=l==null?void 0:l.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(l==null?void 0:l.layoutDelegate)||null}}exports.$55f9b1ae81f22853$export$2b35b76d2e30e129=fe;exports.$7613b1592d41b092$export$6cd28814d92fa9c9=Ge;exports.$7af3f5b51489e0b5$export$253fe78d46329472=Ze;exports.$880e95eb8b93ba9a$export$ecf600387e221c37=Ve;exports.$8a26561d2877236e$export$c24ed0104d07eab9=Ke;exports.$ae20dd8cbca75726$export$d6daf82dcd84e87c=Ue;exports.$c5a24bc478652b5f$export$1005530eda016c13=we;exports.$c5a24bc478652b5f$export$5f3398f8733f90e2=Pe;exports.$c5a24bc478652b5f$export$7475b2c64539e4cf=je;exports.$c5a24bc478652b5f$export$fbdeaa6a76694f71=Fe;exports.$d496c0a20b6e58ec$export$6c8a5aaad13c9852=de;exports.$fb3050f43d946246$export$e32c88dfddc6e1d8=xe;exports.$feb5ffebff200149$export$c3d8340acf92597f=J;
|
package/Separator-Cfv2pbWf.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/Separator.css');const n=require("react/jsx-runtime"),a=require("./Dialog-DR6nEqMT.cjs"),o=require("./clsx-C11secjj.cjs"),i=require("./check-B0aKTFe5.cjs"),d=require("./chevron-right-0-sUFBiR.cjs"),l=require("./Separator-Dgin8BNW.cjs"),_="_menu_dzqjp_1",x="_menuSection_dzqjp_13",j="_medium_dzqjp_25",h="_menuItem_dzqjp_31",p="_mainContent_dzqjp_88",b="_checkMark_dzqjp_99",$="_separator_dzqjp_109",f="_menuPopover_dzqjp_132",t={menu:_,menuSection:x,medium:j,menuItem:h,mainContent:p,checkMark:b,separator:$,menuPopover:f},q=({className:e,size:c="large",...s})=>n.jsx(a.$3674c52c6b3c5bce$export$d9b273488cd8ce6f,{className:o.clsx(e,t.menu,c==="medium"&&t.medium),...s}),M=e=>n.jsx(a.$3674c52c6b3c5bce$export$2ce376c2cc3355c8,{...e,textValue:e.textValue||(typeof e.children=="string"?e.children:void 0),className:o.clsx(t.menuItem,e.className),children:c=>{const{children:s}=e,{selectionMode:m,isSelected:r,hasSubmenu:u}=c;return n.jsxs(n.Fragment,{children:[m!=="none"&&n.jsx(i.Check,{size:16,className:t.checkMark,"data-selected":r||void 0}),n.jsx("div",{className:t.mainContent,children:typeof s=="function"?s(c):s}),u&&n.jsx(d.ChevronRight,{size:20})]})}}),v=({className:e,...c})=>n.jsx(a.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:o.clsx(e,t.menuPopover),offset:4,...c}),S=({className:e,...c})=>n.jsx(a.$3674c52c6b3c5bce$export$4b1545b4f2016d26,{className:o.clsx(e,t.menuSection),...c}),k=({className:e,...c})=>n.jsx(l.$431f98aba6844401$export$1ff3c3f08ae963c0,{className:o.clsx(e,t.separator),...c});exports.Menu=q;exports.MenuItem=M;exports.MenuPopover=v;exports.MenuSection=S;exports.Separator=k;
|
package/Skeleton-Iovq135_.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { c as _ } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import './assets/Skeleton.css';const w = "_skeleton_toauz_11", u = "_circle_toauz_21", y = "_wave_toauz_26", k = "_onLayer01_toauz_50", e = {
|
|
4
|
-
skeleton: w,
|
|
5
|
-
circle: u,
|
|
6
|
-
wave: y,
|
|
7
|
-
onLayer01: k
|
|
8
|
-
}, z = ({
|
|
9
|
-
variant: o = "rectangle",
|
|
10
|
-
width: s,
|
|
11
|
-
height: t,
|
|
12
|
-
isAnimated: c = !0,
|
|
13
|
-
className: n,
|
|
14
|
-
style: l,
|
|
15
|
-
isOnLayer01: r,
|
|
16
|
-
...a
|
|
17
|
-
}) => (o === "circle" && t !== void 0 && console.warn(
|
|
18
|
-
"Height is not allowed when using circle, control size with width"
|
|
19
|
-
), /* @__PURE__ */ i(
|
|
20
|
-
"div",
|
|
21
|
-
{
|
|
22
|
-
className: _(
|
|
23
|
-
e.skeleton,
|
|
24
|
-
e[o],
|
|
25
|
-
c && e.wave,
|
|
26
|
-
r && e.onLayer01,
|
|
27
|
-
n
|
|
28
|
-
),
|
|
29
|
-
style: { width: s, height: t, ...l },
|
|
30
|
-
...a
|
|
31
|
-
}
|
|
32
|
-
));
|
|
33
|
-
export {
|
|
34
|
-
z as S
|
|
35
|
-
};
|
package/Skeleton-MaBUPqhT.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/Skeleton.css');const a=require("react/jsx-runtime"),_=require("./clsx-C11secjj.cjs"),u="_skeleton_toauz_11",w="_circle_toauz_21",k="_wave_toauz_26",y="_onLayer01_toauz_50",e={skeleton:u,circle:w,wave:k,onLayer01:y},v=({variant:o="rectangle",width:s,height:t,isAnimated:n=!0,className:c,style:l,isOnLayer01:r,...i})=>(o==="circle"&&t!==void 0&&console.warn("Height is not allowed when using circle, control size with width"),a.jsx("div",{className:_.clsx(e.skeleton,e[o],n&&e.wave,r&&e.onLayer01,c),style:{width:s,height:t,...l},...i}));exports.Skeleton=v;
|
package/Spinner-BZ7i01Kt.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as s } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import { c } from "./createLucideIcon-XRdN60yz.js";
|
|
4
|
-
import { $ as d } from "./VisuallyHidden-CGEtjAP7.js";
|
|
5
|
-
import { u as l } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
6
|
-
import './assets/Spinner.css';/**
|
|
7
|
-
* @license lucide-react v0.525.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
const m = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], p = c("loader-circle", m), _ = "_container_10tzz_1", z = "_spinner_10tzz_5", f = "_dark_10tzz_15", e = {
|
|
13
|
-
container: _,
|
|
14
|
-
spinner: z,
|
|
15
|
-
dark: f
|
|
16
|
-
}, g = { loadingPleaseWait: "Loading, please wait..." }, k = { loadingPleaseWait: "Laddar, vänligen vänta..." }, u = {
|
|
17
|
-
en: g,
|
|
18
|
-
sv: k
|
|
19
|
-
}, S = ({
|
|
20
|
-
small: t,
|
|
21
|
-
isOnColor: n = !1,
|
|
22
|
-
className: r
|
|
23
|
-
}) => {
|
|
24
|
-
const o = l(u);
|
|
25
|
-
return /* @__PURE__ */ i(
|
|
26
|
-
"div",
|
|
27
|
-
{
|
|
28
|
-
className: s(e.container, r),
|
|
29
|
-
role: "status",
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ a(
|
|
32
|
-
p,
|
|
33
|
-
{
|
|
34
|
-
className: s(e.spinner, n && e.dark),
|
|
35
|
-
size: t ? 16 : 32,
|
|
36
|
-
strokeWidth: t ? 2 : 3,
|
|
37
|
-
absoluteStrokeWidth: !0
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
/* @__PURE__ */ a(d, { children: o.format("loadingPleaseWait") })
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
S
|
|
47
|
-
};
|
package/Spinner-DxWDMW6e.cjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/Spinner.css');const e=require("react/jsx-runtime"),t=require("./clsx-C11secjj.cjs"),c=require("./createLucideIcon-CTVXwe6i.cjs"),o=require("./VisuallyHidden-EjrqodVh.cjs"),d=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");/**
|
|
2
|
-
* @license lucide-react v0.525.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const l=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],u=c.createLucideIcon("loader-circle",l),_="_container_10tzz_1",z="_spinner_10tzz_5",g="_dark_10tzz_15",n={container:_,spinner:z,dark:g},p={loadingPleaseWait:"Loading, please wait..."},x={loadingPleaseWait:"Laddar, vänligen vänta..."},k={en:p,sv:x},L=({small:s,isOnColor:r=!1,className:a})=>{const i=d.useLocalizedStringFormatter(k);return e.jsxs("div",{className:t.clsx(n.container,a),role:"status",children:[e.jsx(u,{className:t.clsx(n.spinner,r&&n.dark),size:s?16:32,strokeWidth:s?2:3,absoluteStrokeWidth:!0}),e.jsx(o.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:i.format("loadingPleaseWait")})]})};exports.Spinner=L;
|
package/TabList-3fErCDyP.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/TabList.css');const D=require("react/jsx-runtime"),S=require("./clsx-C11secjj.cjs"),k=require("./useObserveElement-MhzEsCkX.cjs"),O=require("./variables-B3KEYyhW.cjs"),v=require("./Collection-BvWp2xBd.cjs"),b=require("./utils-CMHKYKlz.cjs"),H=require("./Hidden-BxRZGdEW.cjs"),p=require("./mergeProps-JhcJ7uJL.cjs"),K=require("./filterDOMProps-RRlKPKX0.cjs"),T=require("./inertValue-B3AFhVG4.cjs"),l=require("react"),V=require("./usePress-CicXV7UO.cjs"),z=require("./useFocusable-CsG-IPuC.cjs"),M=require("./SelectionManager-BtbHoHpA.cjs"),w=require("./useLabels-CvUk-yS3.cjs"),A=require("./useHasTabbableChild-CJcLnolh.cjs"),_=require("./context-Df3XbgBG.cjs"),E=require("./useFocusRing-BcbYske2.cjs"),j=require("./useHover-DGAmG7jt.cjs"),B=require("./useSingleSelectListState-CwWK_Dx2.cjs"),I=new WeakMap;function m(i,e,t){if(!i)return"";typeof e=="string"&&(e=e.replace(/\s+/g,""));let a=I.get(i);return process.env.NODE_ENV!=="production"&&!a&&console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."),`${a}-${t}-${e}`}function W(i,e,t){let{key:a,isDisabled:d,shouldSelectOnPressUp:o}=i,{selectionManager:n,selectedKey:c}=e,s=a===c,r=d||e.isDisabled||e.selectionManager.isDisabled(a),{itemProps:u,isPressed:f}=M.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:n,key:a,ref:t,isDisabled:r,shouldSelectOnPressUp:o,linkBehavior:"selection"}),$=m(e,a,"tab"),h=m(e,a,"tabpanel"),{tabIndex:y}=u,x=e.collection.getItem(a),P=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(x==null?void 0:x.props,{labelable:!0});delete P.id;let N=V.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(x==null?void 0:x.props),{focusableProps:R}=z.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:r},t);return{tabProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(P,R,N,u,{id:$,"aria-selected":s,"aria-disabled":r||void 0,"aria-controls":s?h:void 0,tabIndex:r?void 0:y,role:"tab"}),isSelected:s,isDisabled:r,isPressed:f}}function U(i,e,t){let a=A.$83013635b024ae3d$export$eac1895992b9f3d6(t)?void 0:0;var d;const o=m(e,(d=i.id)!==null&&d!==void 0?d:e==null?void 0:e.selectedKey,"tabpanel"),n=w.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:o,"aria-labelledby":m(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(n,{tabIndex:a,role:"tabpanel","aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]})}}class G{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,a;return this.disabledKeys.has(e)||!!(!((a=this.collection.getItem(e))===null||a===void 0||(t=a.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,a,d=new Set){this.collection=e,this.flipDirection=t==="rtl"&&a==="horizontal",this.disabledKeys=d,this.tabDirection=a==="horizontal"}}function J(i,e,t){let{orientation:a="horizontal",keyboardActivation:d="automatic"}=i,{collection:o,selectionManager:n,disabledKeys:c}=e,{direction:s}=_.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=l.useMemo(()=>new G(o,s,a,c),[o,c,a,s]),{collectionProps:u}=M.$ae20dd8cbca75726$export$d6daf82dcd84e87c({ref:t,selectionManager:n,keyboardDelegate:r,selectOnFocus:d==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),f=p.$bdb11010cef70236$export$f680877a34711e37();I.set(e,f);let $=w.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:f});return{tabListProps:{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(u,$),role:"tablist","aria-orientation":a,tabIndex:void 0}}}function Q(i){var e,t;let a=B.$a0d645289fe9b86b$export$e7f05e985daf4b5f({...i,onSelectionChange:i.onSelectionChange?s=>{var r;s!=null&&((r=i.onSelectionChange)===null||r===void 0||r.call(i,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=i.defaultSelectedKey)!==null&&e!==void 0?e:q(i.collection,i.disabledKeys?new Set(i.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:d,collection:o,selectedKey:n}=a,c=l.useRef(n);return l.useEffect(()=>{let s=n;i.selectedKey==null&&(d.isEmpty||s==null||!o.getItem(s))&&(s=q(o,a.disabledKeys),s!=null&&d.setSelectedKeys([s])),(s!=null&&d.focusedKey==null||!d.isFocused&&s!==c.current)&&d.setFocusedKey(s),c.current=s}),{...a,isDisabled:i.isDisabled||!1}}function q(i,e){let t=null;if(i){var a,d,o,n;for(t=i.getFirstKey();t!=null&&(e.has(t)||!((d=i.getItem(t))===null||d===void 0||(a=d.props)===null||a===void 0)&&a.isDisabled)&&t!==i.getLastKey();)t=i.getKeyAfter(t);t!=null&&(e.has(t)||!((n=i.getItem(t))===null||n===void 0||(o=n.props)===null||o===void 0)&&o.isDisabled)&&t===i.getLastKey()&&(t=i.getFirstKey())}return t}const F=l.createContext(null),g=l.createContext(null),X=l.forwardRef(function(e,t){[e,t]=b.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,F);let{children:a,orientation:d="horizontal"}=e;return a=l.useMemo(()=>typeof a=="function"?a({orientation:d,defaultChildren:null}):a,[a,d]),l.createElement(v.$e1995378a142960e$export$bf788dd355e3a401,{content:a},o=>l.createElement(Y,{props:e,collection:o,tabsRef:t}))});function Y({props:i,tabsRef:e,collection:t}){let{orientation:a="horizontal"}=i,d=Q({...i,collection:t,children:void 0}),{focusProps:o,isFocused:n,isFocusVisible:c}=E.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),s=l.useMemo(()=>({orientation:a,isFocusWithin:n,isFocusVisible:c}),[a,n,c]),r=b.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-Tabs",values:s}),u=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return l.createElement("div",{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(u,r,o),ref:e,slot:i.slot||void 0,"data-focused":n||void 0,"data-orientation":a,"data-focus-visible":c||void 0,"data-disabled":d.isDisabled||void 0},l.createElement(b.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[F,i],[g,d]]},r.children))}const Z=l.forwardRef(function(e,t){return l.useContext(g)?l.createElement(ee,{props:e,forwardedRef:t}):l.createElement(v.$e1995378a142960e$export$fb8073518f34e6ec,e)});function ee({props:i,forwardedRef:e}){let t=l.useContext(g),{CollectionRoot:a}=l.useContext(v.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:d="horizontal",keyboardActivation:o="automatic"}=b.$64fa3d84918910a7$export$fabf2dc03a41866e(F),n=b.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=J({...i,orientation:d,keyboardActivation:o},t,n),s=b.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,children:null,defaultClassName:"react-aria-TabList",values:{orientation:d,state:t}}),r=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete r.id,l.createElement("div",{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(r,s,c),ref:n,"data-orientation":d||void 0},l.createElement(a,{collection:t.collection,persistedKeys:v.$7135fc7d473fd974$export$90e00781bc59d8f9(t.selectionManager.focusedKey)}))}class L extends v.$23b9f4fcf0fe224b$export$d68d59712b04d9d1{}L.type="item";const te=v.$e1995378a142960e$export$18af5c7a9e9b3664(L,(i,e,t)=>{let a=l.useContext(g),d=b.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:o,isSelected:n,isDisabled:c,isPressed:s}=W({key:t.key,...i},a,d),{focusProps:r,isFocused:u,isFocusVisible:f}=E.$f7dceffc5ad7768b$export$4e328f61c538687f(),{hoverProps:$,isHovered:h}=j.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c,onHoverStart:i.onHoverStart,onHoverEnd:i.onHoverEnd,onHoverChange:i.onHoverChange}),y=b.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,id:void 0,children:t.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:n,isDisabled:c,isFocused:u,isFocusVisible:f,isPressed:s,isHovered:h}}),x=t.props.href?"a":"div",P=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i,{global:!0});return delete P.id,delete P.onClick,l.createElement(x,{...p.$3ef42575df84b30b$export$9d1611c77c2fe928(P,y,o,r,$),ref:d,"data-selected":n||void 0,"data-disabled":c||void 0,"data-focused":u||void 0,"data-focus-visible":f||void 0,"data-pressed":s||void 0,"data-hovered":h||void 0},y.children)}),ie=H.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){const a=l.useContext(g);let d=b.$df56164dff5785e2$export$4338b53315abf666(t),{id:o,...n}=e,{tabPanelProps:c}=U(e,a,d),{focusProps:s,isFocused:r,isFocusVisible:u}=E.$f7dceffc5ad7768b$export$4e328f61c538687f(),f=a.selectedKey===e.id,$=b.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:r,isFocusVisible:u,isInert:T.$cdc5a6778b766db2$export$a9d04c5684123369(!f),state:a}});if(!f&&!e.shouldForceMount)return null;let h=K.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(n,{global:!0});delete h.id;let y=f?p.$3ef42575df84b30b$export$9d1611c77c2fe928(h,c,s,$):$;return l.createElement("div",{...y,ref:d,"data-focused":r||void 0,"data-focus-visible":u||void 0,inert:T.$cdc5a6778b766db2$export$a9d04c5684123369(!f||e.inert),"data-inert":f?void 0:"true"},l.createElement(b.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[F,null],[g,null]]},l.createElement(v.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:v.$7135fc7d473fd974$export$a164736487e3f0ae},$.children)))}),ae="_container_ovstx_1",de="_list_ovstx_5",se="_listItem_ovstx_10",le="_panel_ovstx_52",C={container:ae,list:de,listItem:se,panel:le},ne=({children:i,className:e,...t})=>{const{width:a}=k.useObserveElement(typeof document>"u"?null:document.body,{includePadding:!0}),d=t.orientation||a>=parseInt(O.windowSizesSm)?"horizontal":"vertical";return D.jsx(X,{...t,orientation:d,className:S.clsx(C.container,e),children:i})},oe=({className:i,...e})=>D.jsx(te,{...e,className:S.clsx(C.listItem,i)}),re=({className:i,...e})=>D.jsx(ie,{className:S.clsx(C.panel,i),...e}),ce=({className:i,...e})=>D.jsx(Z,{className:S.clsx(C.list,i),...e});exports.Tab=oe;exports.TabList=ce;exports.TabPanel=re;exports.Tabs=ne;
|
package/TabList-CXaxruLg.js
DELETED
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
import { jsx as K } from "react/jsx-runtime";
|
|
2
|
-
import { c as D } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import { u as A } from "./useObserveElement-BdI4zgd7.js";
|
|
4
|
-
import { w as B } from "./variables-DzXcMW2k.js";
|
|
5
|
-
import { $ as W, b as j, g as k, k as U, c as q, j as G, l as J } from "./Collection-B0_WAieZ.js";
|
|
6
|
-
import { $ as Q, b as w, a as S, f as L, c as X } from "./utils-Cpcjg55U.js";
|
|
7
|
-
import { $ as Y } from "./Hidden-C9KWUR7b.js";
|
|
8
|
-
import { a as v, c as Z } from "./mergeProps-BSsN7Bgk.js";
|
|
9
|
-
import { $ as P } from "./filterDOMProps-wsa9OcNI.js";
|
|
10
|
-
import { $ as C } from "./inertValue-B7loUihk.js";
|
|
11
|
-
import u, { useMemo as I, useRef as ee, useEffect as te, forwardRef as M, createContext as O, useContext as x } from "react";
|
|
12
|
-
import { d as ie } from "./usePress-DMUpU0GU.js";
|
|
13
|
-
import { a as ae } from "./useFocusable-DXlMChFC.js";
|
|
14
|
-
import { d as se, e as le } from "./SelectionManager-Bq-Gw1UT.js";
|
|
15
|
-
import { $ as R } from "./useLabels-Kmq5JCp_.js";
|
|
16
|
-
import { $ as oe } from "./useHasTabbableChild-BDaxMsGu.js";
|
|
17
|
-
import { $ as ne } from "./context-CGNJ3grH.js";
|
|
18
|
-
import { $ as T } from "./useFocusRing-DMo8ctYV.js";
|
|
19
|
-
import { $ as de } from "./useHover-D6bNIkU0.js";
|
|
20
|
-
import { $ as re } from "./useSingleSelectListState-BlvpP8y-.js";
|
|
21
|
-
import './assets/TabList.css';const V = /* @__PURE__ */ new WeakMap();
|
|
22
|
-
function g(i, e, t) {
|
|
23
|
-
if (!i)
|
|
24
|
-
return "";
|
|
25
|
-
typeof e == "string" && (e = e.replace(/\s+/g, ""));
|
|
26
|
-
let a = V.get(i);
|
|
27
|
-
return process.env.NODE_ENV !== "production" && !a && console.error("There is no tab id, please check if you have rendered the tab panel before the tab list."), `${a}-${t}-${e}`;
|
|
28
|
-
}
|
|
29
|
-
function ce(i, e, t) {
|
|
30
|
-
let { key: a, isDisabled: s, shouldSelectOnPressUp: n } = i, { selectionManager: o, selectedKey: r } = e, l = a === r, d = s || e.isDisabled || e.selectionManager.isDisabled(a), { itemProps: f, isPressed: c } = se({
|
|
31
|
-
selectionManager: o,
|
|
32
|
-
key: a,
|
|
33
|
-
ref: t,
|
|
34
|
-
isDisabled: d,
|
|
35
|
-
shouldSelectOnPressUp: n,
|
|
36
|
-
linkBehavior: "selection"
|
|
37
|
-
}), b = g(e, a, "tab"), p = g(e, a, "tabpanel"), { tabIndex: m } = f, $ = e.collection.getItem(a), h = P($ == null ? void 0 : $.props, {
|
|
38
|
-
labelable: !0
|
|
39
|
-
});
|
|
40
|
-
delete h.id;
|
|
41
|
-
let _ = ie($ == null ? void 0 : $.props), { focusableProps: z } = ae({
|
|
42
|
-
isDisabled: d
|
|
43
|
-
}, t);
|
|
44
|
-
return {
|
|
45
|
-
tabProps: v(h, z, _, f, {
|
|
46
|
-
id: b,
|
|
47
|
-
"aria-selected": l,
|
|
48
|
-
"aria-disabled": d || void 0,
|
|
49
|
-
"aria-controls": l ? p : void 0,
|
|
50
|
-
tabIndex: d ? void 0 : m,
|
|
51
|
-
role: "tab"
|
|
52
|
-
}),
|
|
53
|
-
isSelected: l,
|
|
54
|
-
isDisabled: d,
|
|
55
|
-
isPressed: c
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function fe(i, e, t) {
|
|
59
|
-
let a = oe(t) ? void 0 : 0;
|
|
60
|
-
var s;
|
|
61
|
-
const n = g(e, (s = i.id) !== null && s !== void 0 ? s : e == null ? void 0 : e.selectedKey, "tabpanel"), o = R({
|
|
62
|
-
...i,
|
|
63
|
-
id: n,
|
|
64
|
-
"aria-labelledby": g(e, e == null ? void 0 : e.selectedKey, "tab")
|
|
65
|
-
});
|
|
66
|
-
return {
|
|
67
|
-
tabPanelProps: v(o, {
|
|
68
|
-
tabIndex: a,
|
|
69
|
-
role: "tabpanel",
|
|
70
|
-
"aria-describedby": i["aria-describedby"],
|
|
71
|
-
"aria-details": i["aria-details"]
|
|
72
|
-
})
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
class ue {
|
|
76
|
-
getKeyLeftOf(e) {
|
|
77
|
-
return this.flipDirection ? this.getNextKey(e) : this.getPreviousKey(e);
|
|
78
|
-
}
|
|
79
|
-
getKeyRightOf(e) {
|
|
80
|
-
return this.flipDirection ? this.getPreviousKey(e) : this.getNextKey(e);
|
|
81
|
-
}
|
|
82
|
-
isDisabled(e) {
|
|
83
|
-
var t, a;
|
|
84
|
-
return this.disabledKeys.has(e) || !!(!((a = this.collection.getItem(e)) === null || a === void 0 || (t = a.props) === null || t === void 0) && t.isDisabled);
|
|
85
|
-
}
|
|
86
|
-
getFirstKey() {
|
|
87
|
-
let e = this.collection.getFirstKey();
|
|
88
|
-
return e != null && this.isDisabled(e) && (e = this.getNextKey(e)), e;
|
|
89
|
-
}
|
|
90
|
-
getLastKey() {
|
|
91
|
-
let e = this.collection.getLastKey();
|
|
92
|
-
return e != null && this.isDisabled(e) && (e = this.getPreviousKey(e)), e;
|
|
93
|
-
}
|
|
94
|
-
getKeyAbove(e) {
|
|
95
|
-
return this.tabDirection ? null : this.getPreviousKey(e);
|
|
96
|
-
}
|
|
97
|
-
getKeyBelow(e) {
|
|
98
|
-
return this.tabDirection ? null : this.getNextKey(e);
|
|
99
|
-
}
|
|
100
|
-
getNextKey(e) {
|
|
101
|
-
let t = e;
|
|
102
|
-
do
|
|
103
|
-
t = this.collection.getKeyAfter(t), t == null && (t = this.collection.getFirstKey());
|
|
104
|
-
while (t != null && this.isDisabled(t));
|
|
105
|
-
return t;
|
|
106
|
-
}
|
|
107
|
-
getPreviousKey(e) {
|
|
108
|
-
let t = e;
|
|
109
|
-
do
|
|
110
|
-
t = this.collection.getKeyBefore(t), t == null && (t = this.collection.getLastKey());
|
|
111
|
-
while (t != null && this.isDisabled(t));
|
|
112
|
-
return t;
|
|
113
|
-
}
|
|
114
|
-
constructor(e, t, a, s = /* @__PURE__ */ new Set()) {
|
|
115
|
-
this.collection = e, this.flipDirection = t === "rtl" && a === "horizontal", this.disabledKeys = s, this.tabDirection = a === "horizontal";
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
function be(i, e, t) {
|
|
119
|
-
let { orientation: a = "horizontal", keyboardActivation: s = "automatic" } = i, { collection: n, selectionManager: o, disabledKeys: r } = e, { direction: l } = ne(), d = I(() => new ue(n, l, a, r), [
|
|
120
|
-
n,
|
|
121
|
-
r,
|
|
122
|
-
a,
|
|
123
|
-
l
|
|
124
|
-
]), { collectionProps: f } = le({
|
|
125
|
-
ref: t,
|
|
126
|
-
selectionManager: o,
|
|
127
|
-
keyboardDelegate: d,
|
|
128
|
-
selectOnFocus: s === "automatic",
|
|
129
|
-
disallowEmptySelection: !0,
|
|
130
|
-
scrollRef: t,
|
|
131
|
-
linkBehavior: "selection"
|
|
132
|
-
}), c = Z();
|
|
133
|
-
V.set(e, c);
|
|
134
|
-
let b = R({
|
|
135
|
-
...i,
|
|
136
|
-
id: c
|
|
137
|
-
});
|
|
138
|
-
return {
|
|
139
|
-
tabListProps: {
|
|
140
|
-
...v(f, b),
|
|
141
|
-
role: "tablist",
|
|
142
|
-
"aria-orientation": a,
|
|
143
|
-
tabIndex: void 0
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
function $e(i) {
|
|
148
|
-
var e, t;
|
|
149
|
-
let a = re({
|
|
150
|
-
...i,
|
|
151
|
-
onSelectionChange: i.onSelectionChange ? (l) => {
|
|
152
|
-
var d;
|
|
153
|
-
l != null && ((d = i.onSelectionChange) === null || d === void 0 || d.call(i, l));
|
|
154
|
-
} : void 0,
|
|
155
|
-
suppressTextValueWarning: !0,
|
|
156
|
-
defaultSelectedKey: (t = (e = i.defaultSelectedKey) !== null && e !== void 0 ? e : N(i.collection, i.disabledKeys ? new Set(i.disabledKeys) : /* @__PURE__ */ new Set())) !== null && t !== void 0 ? t : void 0
|
|
157
|
-
}), { selectionManager: s, collection: n, selectedKey: o } = a, r = ee(o);
|
|
158
|
-
return te(() => {
|
|
159
|
-
let l = o;
|
|
160
|
-
i.selectedKey == null && (s.isEmpty || l == null || !n.getItem(l)) && (l = N(n, a.disabledKeys), l != null && s.setSelectedKeys([
|
|
161
|
-
l
|
|
162
|
-
])), (l != null && s.focusedKey == null || !s.isFocused && l !== r.current) && s.setFocusedKey(l), r.current = l;
|
|
163
|
-
}), {
|
|
164
|
-
...a,
|
|
165
|
-
isDisabled: i.isDisabled || !1
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
function N(i, e) {
|
|
169
|
-
let t = null;
|
|
170
|
-
if (i) {
|
|
171
|
-
var a, s, n, o;
|
|
172
|
-
for (t = i.getFirstKey(); t != null && (e.has(t) || !((s = i.getItem(t)) === null || s === void 0 || (a = s.props) === null || a === void 0) && a.isDisabled) && t !== i.getLastKey(); ) t = i.getKeyAfter(t);
|
|
173
|
-
t != null && (e.has(t) || !((o = i.getItem(t)) === null || o === void 0 || (n = o.props) === null || n === void 0) && n.isDisabled) && t === i.getLastKey() && (t = i.getFirstKey());
|
|
174
|
-
}
|
|
175
|
-
return t;
|
|
176
|
-
}
|
|
177
|
-
const F = /* @__PURE__ */ O(null), y = /* @__PURE__ */ O(null), pe = /* @__PURE__ */ M(function(e, t) {
|
|
178
|
-
[e, t] = Q(e, t, F);
|
|
179
|
-
let { children: a, orientation: s = "horizontal" } = e;
|
|
180
|
-
return a = I(() => typeof a == "function" ? a({
|
|
181
|
-
orientation: s,
|
|
182
|
-
defaultChildren: null
|
|
183
|
-
}) : a, [
|
|
184
|
-
a,
|
|
185
|
-
s
|
|
186
|
-
]), /* @__PURE__ */ u.createElement(j, {
|
|
187
|
-
content: a
|
|
188
|
-
}, (n) => /* @__PURE__ */ u.createElement(ve, {
|
|
189
|
-
props: e,
|
|
190
|
-
collection: n,
|
|
191
|
-
tabsRef: t
|
|
192
|
-
}));
|
|
193
|
-
});
|
|
194
|
-
function ve({ props: i, tabsRef: e, collection: t }) {
|
|
195
|
-
let { orientation: a = "horizontal" } = i, s = $e({
|
|
196
|
-
...i,
|
|
197
|
-
collection: t,
|
|
198
|
-
children: void 0
|
|
199
|
-
}), { focusProps: n, isFocused: o, isFocusVisible: r } = T({
|
|
200
|
-
within: !0
|
|
201
|
-
}), l = I(() => ({
|
|
202
|
-
orientation: a,
|
|
203
|
-
isFocusWithin: o,
|
|
204
|
-
isFocusVisible: r
|
|
205
|
-
}), [
|
|
206
|
-
a,
|
|
207
|
-
o,
|
|
208
|
-
r
|
|
209
|
-
]), d = S({
|
|
210
|
-
...i,
|
|
211
|
-
defaultClassName: "react-aria-Tabs",
|
|
212
|
-
values: l
|
|
213
|
-
}), f = P(i, {
|
|
214
|
-
global: !0
|
|
215
|
-
});
|
|
216
|
-
return /* @__PURE__ */ u.createElement("div", {
|
|
217
|
-
...v(f, d, n),
|
|
218
|
-
ref: e,
|
|
219
|
-
slot: i.slot || void 0,
|
|
220
|
-
"data-focused": o || void 0,
|
|
221
|
-
"data-orientation": a,
|
|
222
|
-
"data-focus-visible": r || void 0,
|
|
223
|
-
"data-disabled": s.isDisabled || void 0
|
|
224
|
-
}, /* @__PURE__ */ u.createElement(L, {
|
|
225
|
-
values: [
|
|
226
|
-
[
|
|
227
|
-
F,
|
|
228
|
-
i
|
|
229
|
-
],
|
|
230
|
-
[
|
|
231
|
-
y,
|
|
232
|
-
s
|
|
233
|
-
]
|
|
234
|
-
]
|
|
235
|
-
}, d.children));
|
|
236
|
-
}
|
|
237
|
-
const me = /* @__PURE__ */ M(function(e, t) {
|
|
238
|
-
return x(y) ? /* @__PURE__ */ u.createElement(he, {
|
|
239
|
-
props: e,
|
|
240
|
-
forwardedRef: t
|
|
241
|
-
}) : /* @__PURE__ */ u.createElement(q, e);
|
|
242
|
-
});
|
|
243
|
-
function he({ props: i, forwardedRef: e }) {
|
|
244
|
-
let t = x(y), { CollectionRoot: a } = x(k), { orientation: s = "horizontal", keyboardActivation: n = "automatic" } = X(F), o = w(e), { tabListProps: r } = be({
|
|
245
|
-
...i,
|
|
246
|
-
orientation: s,
|
|
247
|
-
keyboardActivation: n
|
|
248
|
-
}, t, o), l = S({
|
|
249
|
-
...i,
|
|
250
|
-
children: null,
|
|
251
|
-
defaultClassName: "react-aria-TabList",
|
|
252
|
-
values: {
|
|
253
|
-
orientation: s,
|
|
254
|
-
state: t
|
|
255
|
-
}
|
|
256
|
-
}), d = P(i, {
|
|
257
|
-
global: !0
|
|
258
|
-
});
|
|
259
|
-
return delete d.id, /* @__PURE__ */ u.createElement("div", {
|
|
260
|
-
...v(d, l, r),
|
|
261
|
-
ref: o,
|
|
262
|
-
"data-orientation": s || void 0
|
|
263
|
-
}, /* @__PURE__ */ u.createElement(a, {
|
|
264
|
-
collection: t.collection,
|
|
265
|
-
persistedKeys: J(t.selectionManager.focusedKey)
|
|
266
|
-
}));
|
|
267
|
-
}
|
|
268
|
-
class H extends G {
|
|
269
|
-
}
|
|
270
|
-
H.type = "item";
|
|
271
|
-
const ye = /* @__PURE__ */ W(H, (i, e, t) => {
|
|
272
|
-
let a = x(y), s = w(e), { tabProps: n, isSelected: o, isDisabled: r, isPressed: l } = ce({
|
|
273
|
-
key: t.key,
|
|
274
|
-
...i
|
|
275
|
-
}, a, s), { focusProps: d, isFocused: f, isFocusVisible: c } = T(), { hoverProps: b, isHovered: p } = de({
|
|
276
|
-
isDisabled: r,
|
|
277
|
-
onHoverStart: i.onHoverStart,
|
|
278
|
-
onHoverEnd: i.onHoverEnd,
|
|
279
|
-
onHoverChange: i.onHoverChange
|
|
280
|
-
}), m = S({
|
|
281
|
-
...i,
|
|
282
|
-
id: void 0,
|
|
283
|
-
children: t.rendered,
|
|
284
|
-
defaultClassName: "react-aria-Tab",
|
|
285
|
-
values: {
|
|
286
|
-
isSelected: o,
|
|
287
|
-
isDisabled: r,
|
|
288
|
-
isFocused: f,
|
|
289
|
-
isFocusVisible: c,
|
|
290
|
-
isPressed: l,
|
|
291
|
-
isHovered: p
|
|
292
|
-
}
|
|
293
|
-
}), $ = t.props.href ? "a" : "div", h = P(i, {
|
|
294
|
-
global: !0
|
|
295
|
-
});
|
|
296
|
-
return delete h.id, delete h.onClick, /* @__PURE__ */ u.createElement($, {
|
|
297
|
-
...v(h, m, n, d, b),
|
|
298
|
-
ref: s,
|
|
299
|
-
"data-selected": o || void 0,
|
|
300
|
-
"data-disabled": r || void 0,
|
|
301
|
-
"data-focused": f || void 0,
|
|
302
|
-
"data-focus-visible": c || void 0,
|
|
303
|
-
"data-pressed": l || void 0,
|
|
304
|
-
"data-hovered": p || void 0
|
|
305
|
-
}, m.children);
|
|
306
|
-
}), xe = /* @__PURE__ */ Y(function(e, t) {
|
|
307
|
-
const a = x(y);
|
|
308
|
-
let s = w(t), { id: n, ...o } = e, { tabPanelProps: r } = fe(e, a, s), { focusProps: l, isFocused: d, isFocusVisible: f } = T(), c = a.selectedKey === e.id, b = S({
|
|
309
|
-
...e,
|
|
310
|
-
defaultClassName: "react-aria-TabPanel",
|
|
311
|
-
values: {
|
|
312
|
-
isFocused: d,
|
|
313
|
-
isFocusVisible: f,
|
|
314
|
-
// @ts-ignore - compatibility with React < 19
|
|
315
|
-
isInert: C(!c),
|
|
316
|
-
state: a
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
if (!c && !e.shouldForceMount) return null;
|
|
320
|
-
let p = P(o, {
|
|
321
|
-
global: !0
|
|
322
|
-
});
|
|
323
|
-
delete p.id;
|
|
324
|
-
let m = c ? v(p, r, l, b) : b;
|
|
325
|
-
return /* @__PURE__ */ u.createElement("div", {
|
|
326
|
-
...m,
|
|
327
|
-
ref: s,
|
|
328
|
-
"data-focused": d || void 0,
|
|
329
|
-
"data-focus-visible": f || void 0,
|
|
330
|
-
// @ts-ignore
|
|
331
|
-
inert: C(!c || e.inert),
|
|
332
|
-
"data-inert": c ? void 0 : "true"
|
|
333
|
-
}, /* @__PURE__ */ u.createElement(L, {
|
|
334
|
-
values: [
|
|
335
|
-
[
|
|
336
|
-
F,
|
|
337
|
-
null
|
|
338
|
-
],
|
|
339
|
-
[
|
|
340
|
-
y,
|
|
341
|
-
null
|
|
342
|
-
]
|
|
343
|
-
]
|
|
344
|
-
}, /* @__PURE__ */ u.createElement(k.Provider, {
|
|
345
|
-
value: U
|
|
346
|
-
}, b.children)));
|
|
347
|
-
}), Pe = "_container_ovstx_1", ge = "_list_ovstx_5", Ke = "_listItem_ovstx_10", De = "_panel_ovstx_52", E = {
|
|
348
|
-
container: Pe,
|
|
349
|
-
list: ge,
|
|
350
|
-
listItem: Ke,
|
|
351
|
-
panel: De
|
|
352
|
-
}, je = ({
|
|
353
|
-
children: i,
|
|
354
|
-
className: e,
|
|
355
|
-
...t
|
|
356
|
-
}) => {
|
|
357
|
-
const { width: a } = A(
|
|
358
|
-
typeof document > "u" ? null : document.body,
|
|
359
|
-
{ includePadding: !0 }
|
|
360
|
-
), s = t.orientation || a >= parseInt(B) ? "horizontal" : "vertical";
|
|
361
|
-
return /* @__PURE__ */ K(
|
|
362
|
-
pe,
|
|
363
|
-
{
|
|
364
|
-
...t,
|
|
365
|
-
orientation: s,
|
|
366
|
-
className: D(E.container, e),
|
|
367
|
-
children: i
|
|
368
|
-
}
|
|
369
|
-
);
|
|
370
|
-
}, Ue = ({ className: i, ...e }) => /* @__PURE__ */ K(
|
|
371
|
-
ye,
|
|
372
|
-
{
|
|
373
|
-
...e,
|
|
374
|
-
className: D(E.listItem, i)
|
|
375
|
-
}
|
|
376
|
-
), qe = ({ className: i, ...e }) => /* @__PURE__ */ K(
|
|
377
|
-
xe,
|
|
378
|
-
{
|
|
379
|
-
className: D(E.panel, i),
|
|
380
|
-
...e
|
|
381
|
-
}
|
|
382
|
-
), Ge = ({
|
|
383
|
-
className: i,
|
|
384
|
-
...e
|
|
385
|
-
}) => /* @__PURE__ */ K(
|
|
386
|
-
me,
|
|
387
|
-
{
|
|
388
|
-
className: D(E.list, i),
|
|
389
|
-
...e
|
|
390
|
-
}
|
|
391
|
-
);
|
|
392
|
-
export {
|
|
393
|
-
je as T,
|
|
394
|
-
Ue as a,
|
|
395
|
-
qe as b,
|
|
396
|
-
Ge as c
|
|
397
|
-
};
|