@midas-ds/components 10.3.0 → 10.4.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-BcsoC78F.cjs +1 -0
- package/{AccordionItem-ChHpW8EW.js → AccordionItem-BqsgiVWV.js} +38 -36
- package/Breadcrumbs-CfW5IuyE.cjs +1 -0
- package/{Breadcrumbs-CwDUNIqF.js → Breadcrumbs-D7eoibWk.js} +77 -65
- package/{Button-BoJl6JGM.cjs → Button-BXY5ZhqI.cjs} +1 -1
- package/{Button-Csih3v23.js → Button-BZUo7vsZ.js} +1 -1
- package/{Button-DjBChs7s.js → Button-CFYdzG0H.js} +24 -23
- package/Button-DExMoP5f.cjs +1 -0
- package/CHANGELOG.md +28 -0
- package/{Card-yrtGzt70.js → Card-BaWSgtSF.js} +3 -3
- package/{Card-0G0mj9q5.cjs → Card-Cc1TNPcQ.cjs} +1 -1
- package/{CharacterCounter-CHcTDHO-.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
- package/{CharacterCounter-BL_nZHya.js → CharacterCounter-cLhqPZlk.js} +4 -4
- package/Checkbox-Co3h0hur.cjs +1 -0
- package/{Checkbox-5HINZdGu.js → Checkbox-LuUwTZ3W.js} +69 -68
- package/CheckboxGroup-CUA8_xSx.js +160 -0
- package/CheckboxGroup-DmUOM0xl.cjs +1 -0
- package/{Collection-Brgjpkne.js → Collection--62xKPm9.js} +17 -16
- package/Collection-BtBX5IMY.cjs +1 -0
- package/{ColorSchemeSwitch-BpzQ7g0b.js → ColorSchemeSwitch-Cwono7Ap.js} +51 -35
- package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
- package/ComboBox-BBC7jhnm.cjs +1 -0
- package/{ComboBox-CVDyp2a-.js → ComboBox-HLIAbb2q.js} +309 -298
- package/{DateField-DeDhiYnW.cjs → DateField-B3VjOSde.cjs} +1 -1
- package/{DateField-DhU3q-rG.js → DateField-CnLEi7uX.js} +4 -4
- package/DateInputDivider-3BvwXXa9.cjs +1 -0
- package/{DateInputDivider-CF4xWsMT.js → DateInputDivider-Bi5N-C0c.js} +90 -86
- package/DateRangePicker-BPlZ12r8.cjs +6 -0
- package/{DateRangePicker-ziD1_k1W.js → DateRangePicker-CFOoGvut.js} +86 -83
- package/Dialog-CSnN6baf.cjs +1 -0
- package/{Dialog-D14MbJ7o.js → Dialog-CtVrVuMr.js} +101 -98
- package/Dialog-SqciohRY.js +221 -0
- package/Dialog-pSSy1zwf.cjs +1 -0
- package/DragAndDrop-BoEd260f.cjs +1 -0
- package/{DragAndDrop-o3ruz_SR.js → DragAndDrop-DkSTL28C.js} +2 -2
- package/{Dropdown-Df58j43I.js → Dropdown-CkBp70BH.js} +2 -2
- package/{Dropdown-CJ6My6EI.cjs → Dropdown-DAsVShlt.cjs} +1 -1
- package/FieldError-B3YFj-an.js +23 -0
- package/FieldError-BbR-29BM.js +28 -0
- package/FieldError-MVsU-Mgw.cjs +1 -0
- package/FieldError-bRTpchvr.cjs +1 -0
- package/{FileUpload-D6qoEAjn.js → FileUpload-B4rv-wke.js} +496 -475
- package/{FileUpload-CxCOtyB9.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
- package/{FocusScope-CxkURfoc.js → FocusScope-D_hwN_TJ.js} +25 -24
- package/FocusScope-vcXLOQiu.cjs +1 -0
- package/Group-CpkUzEAs.js +45 -0
- package/Group-DOpbdoAi.cjs +1 -0
- package/{Heading-mHhCbGjY.cjs → Heading-CKTR4sOz.cjs} +1 -1
- package/{Heading-BFtiin0g.js → Heading-NxtGri2i.js} +1 -1
- package/{InfoBanner-BLM-TJJ6.js → InfoBanner-CBUoad7A.js} +47 -39
- package/InfoBanner-CVry6Y8i.cjs +1 -0
- package/{Input-BTzwcf72.js → Input-LnjmFI1x.js} +13 -12
- package/Input-MJji5hhq.cjs +1 -0
- package/Label-CNmTN1YY.cjs +1 -0
- package/Label-TVxwGZ-O.js +78 -0
- package/Layout-Dw-oCqxd.cjs +16 -0
- package/Layout-amz9BESl.js +498 -0
- package/{Link-yNO2-sqx.js → Link-Bn8V3ZI0.js} +8 -7
- package/Link-CidjjqHb.cjs +1 -0
- package/{Link-B88l_oaE.cjs → Link-D92ftFi2.cjs} +1 -1
- package/{Link-DX5BbBnn.js → Link-DegonJfl.js} +1 -1
- package/{LinkButton-o6uS1XsR.js → LinkButton-CckYzfJ8.js} +1 -1
- package/{LinkButton-CBpGLETx.cjs → LinkButton-DKZ4z6zu.cjs} +1 -1
- package/ListBox-BCz5-23H.cjs +1 -0
- package/{ListBox-GnVK_Pdq.js → ListBox-C-isJIHL.js} +101 -99
- package/{ListBoxButton-D_J3jlP0.js → ListBoxButton-C_krklY0.js} +1 -1
- package/{ListBoxButton-DPBrtXyv.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
- package/{ListBoxSection-C0BGnpB4.js → ListBoxSection-BVR2xtOH.js} +9 -9
- package/ListBoxSection-CfQZoURJ.cjs +1 -0
- package/{ListKeyboardDelegate-DTg9h4v6.cjs → ListKeyboardDelegate-CPsZ7D83.cjs} +1 -1
- package/{ListKeyboardDelegate-DNI8GQtX.js → ListKeyboardDelegate-CY6t6y1t.js} +3 -3
- package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
- package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
- package/Logo-BpH0HC91.cjs +1 -0
- package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
- package/{OverlayArrow-CDLXPTew.js → OverlayArrow-CfhSYL46.js} +57 -56
- package/OverlayArrow-DpZ1FqOd.cjs +1 -0
- package/{Popover-BGGXeD54.js → Popover-C8VY1YKi.js} +2 -2
- package/{Popover-CqNWzPf-.cjs → Popover-CnAsw3wI.cjs} +1 -1
- package/{ProgressBar-DMSg-Prr.js → ProgressBar-BNCjpcv8.js} +2 -2
- package/{ProgressBar-Jbg28j2a.cjs → ProgressBar-CcbxcWdT.cjs} +1 -1
- package/Radio-B2zfEFdq.cjs +1 -0
- package/{Radio-Cz29wPXd.js → Radio-CZYibh9r.js} +50 -47
- package/{RangeCalendar-RAlAHlNL.js → RangeCalendar-B16b6tJD.js} +304 -293
- package/RangeCalendar-C1LFeOVk.cjs +11 -0
- package/SSRProvider-40TXmsUG.js +50 -0
- package/SSRProvider-Bc-sMhsT.cjs +1 -0
- package/SearchField-CML0kjtn.cjs +6 -0
- package/{SearchField-IlvZ3Kh6.js → SearchField-giwECmXS.js} +175 -166
- package/Select-DKey6CeS.cjs +1 -0
- package/Select-mwaAv20X.js +665 -0
- package/SelectionManager-D0jYUYcy.cjs +1 -0
- package/{SelectionManager-B4ORduja.js → SelectionManager-zsWy3vsd.js} +91 -90
- package/{Separator-DECIYLtZ.cjs → Separator-CxF-3jhR.cjs} +1 -1
- package/{Separator-Cu9fYKUM.js → Separator-Dn5LYN5I.js} +4 -4
- package/Spinner-CbJ6YAz-.js +53 -0
- package/Spinner-yHcy8YHC.cjs +6 -0
- package/TabList-7VtCiXxX.cjs +1 -0
- package/TabList-CthsM5h6.js +435 -0
- package/{Table-F4oYBtUM.js → Table-BcQPvJT3.js} +46 -44
- package/Table-DkvNp6xm.cjs +16 -0
- package/{Tag-Du7GvSv2.js → Tag-Bs8T2Ei7.js} +131 -129
- package/Tag-CFWZ2LQW.cjs +1 -0
- package/Text-92cPh38G.js +15 -0
- package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
- package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
- package/{Text-jWWg0B20.js → Text-DlKqpvSa.js} +1 -1
- package/TextArea-DBNAVWqL.js +119 -0
- package/TextArea-XJDfeXRs.cjs +1 -0
- package/TextField-BdK9KEQ5.cjs +1 -0
- package/{TextField-C-hTPukq.js → TextField-ByDJkig9.js} +23 -22
- package/{Toast-Btg21Xge.js → Toast-DPPvPhrF.js} +75 -68
- package/Toast-l1bKo2oA.cjs +1 -0
- package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
- package/{ToggleButtonGroup-B5yz1tm2.js → ToggleButtonGroup-HOWNWtQZ.js} +46 -45
- package/{Tooltip-CMLs7WMw.js → Tooltip-5mLWn_wO.js} +29 -27
- package/Tooltip-pN5W3IK6.cjs +1 -0
- package/{VisuallyHidden-ZCYf65q4.js → VisuallyHidden-CYfmTSCD.js} +2 -2
- package/VisuallyHidden-Doyzl0F7.cjs +1 -0
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -0
- package/breadcrumbs/Breadcrumbs.d.ts +11 -7
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.d.ts +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/CalendarGrid.d.ts +1 -0
- 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/Checkbox.d.ts +3 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/checkbox/intl/translations.json.d.ts +2 -30
- package/checkbox/types.d.ts +3 -1
- package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/color-scheme-switch/intl/translations.json.d.ts +15 -0
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +11 -0
- package/{context-C81gPYvC.js → context-CGNJ3grH.js} +1 -1
- package/context-Df3XbgBG.cjs +1 -0
- 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/FileUpload.d.ts +1 -0
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/file-upload/intl/translations.json.d.ts +17 -0
- package/{getScrollParent-BhFcYrwL.js → getScrollParent-CT_L9LUr.js} +1 -1
- package/{getScrollParent-DDJu9WHU.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +100 -97
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/info-banner/intl/translations.json.d.ts +11 -0
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/label/intl/translations.json.d.ts +11 -0
- package/layout/Layout.d.ts +1 -0
- package/layout/context/LayoutContext.d.ts +1 -0
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/layout/intl/translations.json.d.ts +23 -0
- 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/logo/intl/translations.json.d.ts +11 -0
- package/mergeProps-B5KXZAI3.cjs +1 -0
- package/mergeProps-C1U1OIeJ.js +115 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/modal/intl/translations.json.d.ts +11 -0
- package/package.json +1 -1
- 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/Radio.d.ts +1 -4
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/{scrollIntoView-Hwb_aaNf.js → scrollIntoView-BLnsPvFA.js} +1 -1
- package/scrollIntoView-joIyo-Jt.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/search-field/intl/translations.json.d.ts +11 -0
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +17 -0
- package/spinner/Spinner.d.ts +1 -0
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/spinner/intl/translations.json.d.ts +11 -0
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tab.d.ts +4 -0
- package/tabs/TabList.d.ts +3 -0
- package/tabs/TabPanel.d.ts +4 -0
- package/tabs/Tabs.d.ts +11 -5
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +3 -0
- package/tabs/index.js +5 -2
- 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/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/textfield/intl/translations.json.d.ts +0 -72
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +5 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +5 -0
- package/toast/Toast.d.ts +5 -2
- 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/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
- package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-B8dB9sot.js → useButton-1-Jf-oHj.js} +3 -3
- package/useButton-D60q0SQw.cjs +1 -0
- package/{useDateFormatter-CnxoJ4jF.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
- package/{useDateFormatter-EHm4auIg.js → useDateFormatter-BVCkxVdw.js} +2 -2
- package/{useEvent-IsD2Awnh.js → useEvent-CigwyJOw.js} +3 -3
- package/useEvent-DPxMu-X9.cjs +1 -0
- package/{useField-DvpGZkw_.js → useField-BEBXv5Mh.js} +4 -4
- package/useField-D1UkzeaI.cjs +1 -0
- package/{useFilter-CUq74PQ2.js → useFilter-CousKe2K.js} +1 -1
- package/{useFilter-BTgDWHVx.cjs → useFilter-e2oIVF_O.cjs} +1 -1
- package/useFocusRing-B-A1OLhU.cjs +1 -0
- package/useFocusRing-DOfBqnUN.js +33 -0
- package/useFocusWithin-CG8mAt2D.cjs +1 -0
- package/useFocusWithin-T1ifEM_s.js +54 -0
- package/{useFocusable-C8uh8K4g.js → useFocusable-ChPA2Jc7.js} +20 -18
- package/useFocusable-D7I1ujkW.cjs +1 -0
- package/useFormValidation-BlFGdPZB.cjs +1 -0
- package/{useFormValidation-BIGzfO9h.js → useFormValidation-BzzruZKm.js} +2 -2
- package/{useHasTabbableChild-C-1mZUQe.js → useHasTabbableChild-BE81d_ab.js} +2 -2
- package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
- package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
- package/{useHighlightSelectionDescription-CnBDT86u.js → useHighlightSelectionDescription-D73hrkmn.js} +5 -5
- package/useHover-BE_XKZKe.cjs +1 -0
- package/useHover-DQvJ3Y-W.js +262 -0
- package/useLabels-CSU0kbtJ.cjs +1 -0
- package/{useLabels-BDwkBYbE.js → useLabels-LrKQiY11.js} +1 -1
- package/{useListState-CrZFZffI.js → useListState-CebsX_1d.js} +1 -1
- package/{useListState-Bx8u4IFG.cjs → useListState-DymkJGDF.cjs} +1 -1
- package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/useLocalizedStringFormatter-CL9MUZ8A.js +22 -0
- package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
- package/usePress-BooY_CAy.cjs +7 -0
- package/{usePress-CNjmDzap.js → usePress-DuR4pVsE.js} +129 -128
- package/{useSingleSelectListState-0AGHxvy3.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
- package/{useSingleSelectListState-Cl3KV5E1.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
- package/{useTextField-Cw-33OP_.js → useTextField-C-sUypsx.js} +8 -8
- package/useTextField-DnRrCg5o.cjs +1 -0
- package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
- package/utils-CoCR_Fce.js +234 -0
- package/utils-DHNZrQmj.cjs +1 -0
- package/utils-DJhAJHk_.js +152 -0
- package/utils-Dvdohqm9.cjs +1 -0
- package/AccordionItem-BGWiWjxA.cjs +0 -1
- package/Breadcrumbs-DtjJ1UmU.cjs +0 -1
- package/Button-htW9qIsS.cjs +0 -1
- package/Checkbox-DqcPg5hz.cjs +0 -1
- package/CheckboxGroup-BBrSMuDY.cjs +0 -1
- package/CheckboxGroup-CLgixk2p.js +0 -243
- package/Collection-BIDsXNhi.cjs +0 -1
- package/ColorSchemeSwitch-C-qWuqkU.cjs +0 -16
- package/ComboBox-CWJUg9Xx.cjs +0 -1
- package/DateInputDivider-ADvOavHw.cjs +0 -1
- package/DateRangePicker-BsAHhy99.cjs +0 -6
- package/Dialog-B8GTYbvu.cjs +0 -1
- package/Dialog-BOrYdX50.cjs +0 -1
- package/Dialog-CXNu48AC.js +0 -208
- package/DragAndDrop-DNth776R.cjs +0 -1
- package/FieldError-CAcjosk_.js +0 -46
- package/FieldError-CKBb2-mp.cjs +0 -1
- package/FocusScope-5c9SVBcR.cjs +0 -1
- package/Group-B6EslsHZ.js +0 -44
- package/Group-CgiqQHH1.cjs +0 -1
- package/InfoBanner-C2kTIsrB.cjs +0 -1
- package/Input-DKSAYvsw.cjs +0 -1
- package/Label-7Ybb99CE.cjs +0 -1
- package/Label-BwJrdqEE.js +0 -70
- package/Layout-1g6bMH62.cjs +0 -16
- package/Layout-Ey8flY7E.js +0 -468
- package/Link-BQhauBuw.cjs +0 -1
- package/ListBox-DP9M4H6R.cjs +0 -1
- package/ListBoxSection-BGaigBnG.cjs +0 -1
- package/Logo-DT2_2O43.cjs +0 -1
- package/OverlayArrow-D75k-EMl.cjs +0 -1
- package/Radio-BwqrdhQE.cjs +0 -1
- package/RangeCalendar-BehUaydF.cjs +0 -11
- package/SearchField-CxMwDeUM.cjs +0 -6
- package/Select-2q1iSzAX.cjs +0 -1
- package/Select-BVQZtoi9.js +0 -646
- package/SelectionManager-CwYux2h3.cjs +0 -1
- package/Spinner-D31SXm-U.js +0 -41
- package/Spinner-P35rvvsl.cjs +0 -6
- package/Table-B40CGLT-.cjs +0 -16
- package/Tabs-B4oZJkZG.js +0 -404
- package/Tabs-DA2qXhzb.cjs +0 -1
- package/Tag-DPAGmcMK.cjs +0 -1
- package/Text-BoXuUVVH.js +0 -15
- package/TextArea-C7JZ_pQd.cjs +0 -1
- package/TextArea-XeBCSyzl.js +0 -191
- package/TextField-BgNdhZi_.cjs +0 -1
- package/Toast-AbDA1BOs.cjs +0 -1
- package/ToggleButtonGroup-BFDoj0P6.cjs +0 -1
- package/Tooltip-DeBuBKhS.cjs +0 -1
- package/VisuallyHidden-CLWHbz2n.cjs +0 -1
- package/assets/Tabs.css +0 -1
- package/context-DjwhtgxQ.cjs +0 -1
- package/scrollIntoView-C8doLzDd.cjs +0 -1
- package/useButton-cpNi-fY4.cjs +0 -1
- package/useEvent-DxBxMX2V.cjs +0 -1
- package/useField-CXKYU74k.cjs +0 -1
- package/useFocusRing-CbImDrwF.cjs +0 -1
- package/useFocusRing-XnR3cZjO.js +0 -82
- package/useFocusable-NUVSFcRC.cjs +0 -1
- package/useFormValidation-ClximP89.cjs +0 -1
- package/useHasTabbableChild-DCBTulUQ.cjs +0 -1
- package/useHighlightSelectionDescription-CzYucm61.cjs +0 -1
- package/useHover-DjIHtjGN.js +0 -490
- package/useHover-_mv5J4_q.cjs +0 -1
- package/useLabels-BLOfc6Y-.cjs +0 -1
- package/useLocalizedStringFormatter-BKoxGZf1.js +0 -96
- package/useLocalizedStringFormatter-BsxLt89S.cjs +0 -1
- package/useLocalizedStringFormatter-D3JQyjb4.js +0 -21
- package/useLocalizedStringFormatter-ioacM-Yt.cjs +0 -1
- package/usePress-0AjDbW9R.cjs +0 -7
- package/useTextField--czJtyNd.cjs +0 -1
- package/utils-BNtZbAib.cjs +0 -1
- package/utils-DIMfEPAt.js +0 -308
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("react"),C=require("./mergeProps-B5KXZAI3.cjs"),V=require("./utils-Dvdohqm9.cjs"),j=require("./usePress-BooY_CAy.cjs"),Z=require("./useEvent-DPxMu-X9.cjs"),J=require("./scrollIntoView-joIyo-Jt.cjs"),De=require("react-dom"),X=require("./useHover-BE_XKZKe.cjs"),ue=require("./useFocusable-D7I1ujkW.cjs"),Te=require("./FocusScope-vcXLOQiu.cjs"),Ee=require("./context-Df3XbgBG.cjs"),ke=require("./useControlledState-D0L6S_5r.cjs");function pe(n,e){const t=a.useRef(!0),l=a.useRef(null);C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(t.current=!0,()=>{t.current=!1}),[]),C.$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 Ae="react-aria-clear-focus",Ie="react-aria-focus";function H(n){return X.$c87311424ea30a05$export$9ac100e40613ea10()?n.metaKey:n.ctrlKey}const Me=500;function ge(n){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:l,onLongPress:i,threshold:c=Me,accessibilityDescription:s}=n;const d=a.useRef(void 0);let{addGlobalListener:f,removeGlobalListener:m}=V.$03deb23ff14920c4$export$4eaf04e54aa8eed6(),{pressProps:E}=j.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(t&&t({...v,type:"longpressstart"}),d.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),V.$431fbd86ca7dc216$export$b204af158042fbac(v.target).activeElement!==v.target&&V.$7215afc6de606d6b$export$de79e2c695e052f3(v.target),i&&i({...v,type:"longpress"}),d.current=void 0},c),v.pointerType==="touch")){let g=b=>{b.preventDefault()};f(v.target,"contextmenu",g,{once:!0}),f(window,"pointerup",()=>{setTimeout(()=>{m(v.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(v){d.current&&clearTimeout(d.current),l&&(v.pointerType==="mouse"||v.pointerType==="touch")&&l({...v,type:"longpressend"})}}),K=J.$ef06256079686ba0$export$f8aeda7b10753fa1(i&&!e?s:void 0);return{longPressProps:C.$3ef42575df84b30b$export$9d1611c77c2fe928(E,K)}}function Ke(n){let e=Re(V.$431fbd86ca7dc216$export$b204af158042fbac(n));e!==n&&(e&&Ce(e,n),n&&me(n,e))}function Ce(n,e){n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function me(n,e){n.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Re(n){let e=V.$d4ee10de306f2510$export$cd4e5573fbe2b576(n),t=e==null?void 0:e.getAttribute("aria-activedescendant");return t&&n.getElementById(t)||e}function ae(n){return X.$c87311424ea30a05$export$e1865c3bedcd822b()?n.altKey:n.ctrlKey}function Q(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 Be(n){let e=C.$bdb11010cef70236$export$f680877a34711e37();return Se.set(n,e),e}function Le(n){return Se.get(n)}const Oe=1e3;function xe(n){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:l}=n,i=a.useRef({search:"",timeout:void 0}).current,c=s=>{let d=qe(s.key);if(!(!d||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))){if(d===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=d,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=""},Oe)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?c:void 0}}}function qe(n){return n.length===1||!/^[A-Z]/i.test(n)?n:""}function ze(n){let{selectionManager:e,keyboardDelegate:t,ref:l,autoFocus:i=!1,shouldFocusWrap:c=!1,disallowEmptySelection:s=!1,disallowSelectAll:d=!1,escapeKeyBehavior:f="clearSelection",selectOnFocus:m=e.selectionBehavior==="replace",disallowTypeAhead:E=!1,shouldUseVirtualFocus:K,allowsTabNavigation:v=!1,isVirtualized:g,scrollRef:b=l,linkBehavior:k="action"}=n,{direction:y}=Ee.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),p=j.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),S=o=>{var r;if(o.altKey&&o.key==="Tab"&&o.preventDefault(),!(!((r=l.current)===null||r===void 0)&&r.contains(o.target)))return;const $=(u,z)=>{if(u!=null){if(e.isLink(u)&&k==="selection"&&m&&!ae(o)){De.flushSync(()=>{e.setFocusedKey(u,z)});let U=Q(l,u),de=e.getItemProps(u);U&&p.open(U,o,de.href,de.routerOptions);return}if(e.setFocusedKey(u,z),e.isLink(u)&&k==="override")return;o.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):m&&!ae(o)&&e.replaceSelection(u)}};switch(o.key){case"ArrowDown":if(t.getKeyBelow){var w,T,D;let u=e.focusedKey!=null?(w=t.getKeyBelow)===null||w===void 0?void 0:w.call(t,e.focusedKey):(T=t.getFirstKey)===null||T===void 0?void 0:T.call(t);u==null&&c&&(u=(D=t.getFirstKey)===null||D===void 0?void 0:D.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),$(u))}break;case"ArrowUp":if(t.getKeyAbove){var B,O,ee;let u=e.focusedKey!=null?(B=t.getKeyAbove)===null||B===void 0?void 0:B.call(t,e.focusedKey):(O=t.getLastKey)===null||O===void 0?void 0:O.call(t);u==null&&c&&(u=(ee=t.getLastKey)===null||ee===void 0?void 0:ee.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),$(u))}break;case"ArrowLeft":if(t.getKeyLeftOf){var te,le,ie;let u=e.focusedKey!=null?(te=t.getKeyLeftOf)===null||te===void 0?void 0:te.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(le=t.getFirstKey)===null||le===void 0?void 0:le.call(t,e.focusedKey):(ie=t.getLastKey)===null||ie===void 0?void 0:ie.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),$(u,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(t.getKeyRightOf){var ne,re,se;let u=e.focusedKey!=null?(ne=t.getKeyRightOf)===null||ne===void 0?void 0:ne.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(re=t.getLastKey)===null||re===void 0?void 0:re.call(t,e.focusedKey):(se=t.getFirstKey)===null||se===void 0?void 0:se.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),$(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):m&&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):m&&e.replaceSelection(u))}break;case"PageDown":if(t.getKeyPageBelow&&e.focusedKey!=null){let u=t.getKeyPageBelow(e.focusedKey);u!=null&&(o.preventDefault(),$(u))}break;case"PageUp":if(t.getKeyPageAbove&&e.focusedKey!=null){let u=t.getKeyPageAbove(e.focusedKey);u!=null&&(o.preventDefault(),$(u))}break;case"a":H(o)&&e.selectionMode==="multiple"&&d!==!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=Te.$9bf71ea28793e738$export$2d6ec8fc375ceafa(l.current,{tabbable:!0}),z,U;do U=u.lastChild(),U&&(z=U);while(U);z&&!z.contains(document.activeElement)&&V.$7215afc6de606d6b$export$de79e2c695e052f3(z)}break}}},h=a.useRef({top:0,left:0});Z.$e9faafb641e167db$export$90fc3a17d93f704c(b,"scroll",g?void 0:()=>{var o,r,$,w;h.current={top:($=(o=b.current)===null||o===void 0?void 0:o.scrollTop)!==null&&$!==void 0?$:0,left:(w=(r=b.current)===null||r===void 0?void 0:r.scrollLeft)!==null&&w!==void 0?w:0}});let x=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 r,$;let D=O=>{O!=null&&(e.setFocusedKey(O),m&&!e.isSelected(O)&&e.replaceSelection(O))},B=o.relatedTarget;var w,T;B&&o.currentTarget.compareDocumentPosition(B)&Node.DOCUMENT_POSITION_FOLLOWING?D((w=e.lastSelectedKey)!==null&&w!==void 0?w:(r=t.getLastKey)===null||r===void 0?void 0:r.call(t)):D((T=e.firstSelectedKey)!==null&&T!==void 0?T:($=t.getFirstKey)===null||$===void 0?void 0:$.call(t))}else!g&&b.current&&(b.current.scrollTop=h.current.top,b.current.scrollLeft=h.current.left);if(e.focusedKey!=null&&b.current){let D=Q(l,e.focusedKey);D instanceof HTMLElement&&(!D.contains(document.activeElement)&&!K&&V.$7215afc6de606d6b$export$de79e2c695e052f3(D),X.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="keyboard"&&J.$2f04cbc44ee30ce0$export$c826860796309d1b(D,{containingElement:l.current}))}}},A=o=>{o.currentTarget.contains(o.relatedTarget)||e.setFocused(!1)},I=a.useRef(!1);Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,Ie,K?o=>{let{detail:r}=o;o.stopPropagation(),e.setFocused(!0),(r==null?void 0:r.focusStrategy)==="first"&&(I.current=!0)}:void 0);let R=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{var o,r;let $=(r=(o=t.getFirstKey)===null||o===void 0?void 0:o.call(t))!==null&&r!==void 0?r:null;$==null?(Ke(l.current),e.collection.size>0&&(I.current=!1)):(e.setFocusedKey($),I.current=!1)});pe(()=>{I.current&&R()},[e.collection,R]);let F=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{e.collection.size>0&&(I.current=!1)});pe(()=>{F()},[e.focusedKey,F]),Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,Ae,K?o=>{var r;o.stopPropagation(),e.setFocused(!1),!((r=o.detail)===null||r===void 0)&&r.clearFocusKey&&e.setFocusedKey(null)}:void 0);const W=a.useRef(i),L=a.useRef(!1);a.useEffect(()=>{if(W.current){var o,r;let T=null;var $;i==="first"&&(T=($=(o=t.getFirstKey)===null||o===void 0?void 0:o.call(t))!==null&&$!==void 0?$:null);var w;i==="last"&&(T=(w=(r=t.getLastKey)===null||r===void 0?void 0:r.call(t))!==null&&w!==void 0?w:null);let D=e.selectedKeys;if(D.size){for(let B of D)if(e.canSelectItem(B)){T=B;break}}e.setFocused(!0),e.setFocusedKey(T),T==null&&!K&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),e.collection.size>0&&(W.current=!1,L.current=!0)}});let P=a.useRef(e.focusedKey),q=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==P.current||L.current)&&b.current&&l.current){let o=X.$507fabe10e71c6fb$export$630ff653c5ada6a9(),r=Q(l,e.focusedKey);if(!(r instanceof HTMLElement))return;(o==="keyboard"||L.current)&&(q.current&&cancelAnimationFrame(q.current),q.current=requestAnimationFrame(()=>{b.current&&(J.$2f04cbc44ee30ce0$export$53a0910f038337bd(b.current,r),o!=="virtual"&&J.$2f04cbc44ee30ce0$export$c826860796309d1b(r,{containingElement:l.current}))}))}!K&&e.isFocused&&e.focusedKey==null&&P.current!=null&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),P.current=e.focusedKey,L.current=!1}),a.useEffect(()=>()=>{q.current&&cancelAnimationFrame(q.current)},[]),Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,"react-aria-focus-scope-restore",o=>{o.preventDefault(),e.setFocused(!0)});let G={onKeyDown:S,onFocus:x,onBlur:A,onMouseDown(o){b.current===o.target&&o.preventDefault()}},{typeSelectProps:N}=xe({keyboardDelegate:t,selectionManager:e});E||(G=C.$3ef42575df84b30b$export$9d1611c77c2fe928(N,G));let Y;K||(Y=e.focusedKey==null?0:-1);let _=Be(e.collection);return{collectionProps:C.$3ef42575df84b30b$export$9d1611c77c2fe928(G,{tabIndex:Y,"data-collection":_})}}function Ue(n){let{id:e,selectionManager:t,key:l,ref:i,shouldSelectOnPressUp:c,shouldUseVirtualFocus:s,focus:d,isDisabled:f,onAction:m,allowsDifferentPressOrigin:E,linkBehavior:K="action"}=n,v=j.$ea8dcbcb9ea1b556$export$9a302a45f65d0572();e=C.$bdb11010cef70236$export$f680877a34711e37(e);let g=r=>{if(r.pointerType==="keyboard"&&ae(r))t.toggleSelection(l);else{if(t.selectionMode==="none")return;if(t.isLink(l)){if(K==="selection"&&i.current){let $=t.getItemProps(l);v.open(i.current,r,$.href,$.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(K==="override"||K==="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?Ke(i.current):d?d():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 k=t.isLink(l)&&K==="override",y=t.isLink(l)&&K!=="selection"&&K!=="none",p=!f&&t.canSelectItem(l)&&!k,S=(m||y)&&!f,h=S&&(t.selectionBehavior==="replace"?!p:!p||t.isEmpty),x=S&&p&&t.selectionBehavior==="replace",A=h||x,I=a.useRef(null),R=A&&p,F=a.useRef(!1),W=a.useRef(!1),L=r=>{if(m&&m(),y&&i.current){let $=t.getItemProps(l);v.open(i.current,r,$.href,$.routerOptions)}},P={ref:i};c?(P.onPressStart=r=>{I.current=r.pointerType,F.current=R,r.pointerType==="keyboard"&&(!A||he())&&g(r)},E?(P.onPressUp=h?void 0:r=>{r.pointerType==="mouse"&&p&&g(r)},P.onPress=h?L:r=>{r.pointerType!=="keyboard"&&r.pointerType!=="mouse"&&p&&g(r)}):P.onPress=r=>{if(h||x&&r.pointerType!=="mouse"){if(r.pointerType==="keyboard"&&!ye())return;L(r)}else r.pointerType!=="keyboard"&&p&&g(r)}):(P.onPressStart=r=>{I.current=r.pointerType,F.current=R,W.current=h,p&&(r.pointerType==="mouse"&&!h||r.pointerType==="keyboard"&&(!S||he()))&&g(r)},P.onPress=r=>{(r.pointerType==="touch"||r.pointerType==="pen"||r.pointerType==="virtual"||r.pointerType==="keyboard"&&A&&ye()||r.pointerType==="mouse"&&W.current)&&(A?L(r):p&&g(r))}),b["data-collection"]=Le(t.collection),b["data-key"]=l,P.preventFocusOnPress=s,s&&(P=C.$3ef42575df84b30b$export$9d1611c77c2fe928(P,{onPressStart(r){r.pointerType!=="touch"&&(t.setFocused(!0),t.setFocusedKey(l))},onPress(r){r.pointerType==="touch"&&(t.setFocused(!0),t.setFocusedKey(l))}}));let{pressProps:q,isPressed:G}=j.$f6c31cce2adf654f$export$45712eceda6fad21(P),N=x?r=>{I.current==="mouse"&&(r.stopPropagation(),r.preventDefault(),L(r))}:void 0,{longPressProps:Y}=ge({isDisabled:!R,onLongPress(r){r.pointerType==="touch"&&(g(r),t.setSelectionBehavior("toggle"))}}),_=r=>{I.current==="touch"&&F.current&&r.preventDefault()},o=t.isLink(l)?r=>{j.$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening||r.preventDefault()}:void 0;return{itemProps:C.$3ef42575df84b30b$export$9d1611c77c2fe928(b,p||h||s&&!f?q:{},R?Y:{},{onDoubleClick:N,onDragStartCapture:_,onClick:o,id:e},s?{onMouseDown:r=>r.preventDefault()}:void 0),isPressed:G,isSelected:t.isSelected(l),isFocused:t.isFocused&&t.focusedKey===l,isDisabled:f,allowsSelection:p,hasAction:A}}function ye(){let n=window.event;return(n==null?void 0:n.key)==="Enter"}function he(){let n=window.event;return(n==null?void 0:n.key)===" "||(n==null?void 0:n.code)==="Space"}class Ve{build(e,t){return this.context=t,$e(()=>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 d=this.getFullNode({element:s,index:c},{});for(let f of d)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 d=(s=c.key)!==null&&s!==void 0?s:c.id;if(d==null)throw new Error("No key found for item");return d}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,S=>{y.push(S)});var c;let p=(c=e.index)!==null&&c!==void 0?c:0;for(const S of y)yield*this.getFullNode({element:S,index:p++},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 x=s.type;throw new Error(`Unknown element <${x}> in collection.`)}let p=y.getCollectionNode(s.props,this.context);var d;let S=(d=e.index)!==null&&d!==void 0?d:0,h=p.next();for(;!h.done&&h.value;){let x=h.value;e.index=S;var f;let A=(f=x.key)!==null&&f!==void 0?f:null;A==null&&(A=x.element?null:this.getKey(s,e,t,l));let R=[...this.getFullNode({...x,key:A,index:S,wrapper:He(e.wrapper,x.wrapper)},this.getChildState(t,x),l?`${l}${s.key}`:s.key,i)];for(let F of R){var m,E;F.value=(E=(m=x.value)!==null&&m!==void 0?m:e.value)!==null&&E!==void 0?E:null,F.value&&this.cache.set(F.value,F);var K;if(e.type&&F.type!==e.type)throw new Error(`Unsupported type <${oe(F.type)}> in <${oe((K=i==null?void 0:i.type)!==null&&K!==void 0?K:"unknown parent type")}>. Only <${oe(e.type)}> is supported.`);S++,yield F}h=p.next(R)}return}if(e.key==null||e.type==null)return;let v=this;var g,b;let k={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g: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:$e(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let p of e.childNodes()){p.key!=null&&(p.key=`${k.key}${p.key}`);let S=v.getFullNode({...p,index:y},v.getChildState(t,p),k.key,k);for(let h of S)y++,yield h}})};yield k}constructor(){this.cache=new WeakMap}}function $e(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 He(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 We(n,e,t){let l=a.useMemo(()=>new Ve,[]),{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 Ge(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=[...ve(n,e),e],i=[...ve(n,t),t],c=l.slice(0,i.length).findIndex((s,d)=>s!==i[d]);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 ve(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 M extends Set{constructor(e,t,l){super(e),e instanceof M?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null)}}function je(n,e){if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}function Ye(n){let{selectionMode:e="none",disallowEmptySelection:t=!1,allowDuplicateSelectionEvents:l,selectionBehavior:i="toggle",disabledBehavior:c="all"}=n,s=a.useRef(!1),[,d]=a.useState(!1),f=a.useRef(null),m=a.useRef(null),[,E]=a.useState(null),K=a.useMemo(()=>be(n.selectedKeys),[n.selectedKeys]),v=a.useMemo(()=>be(n.defaultSelectedKeys,new M),[n.defaultSelectedKeys]),[g,b]=ke.$458b0a5536c1a7cf$export$40bfa8c7b0832715(K,v,n.onSelectionChange),k=a.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[y,p]=a.useState(i);i==="replace"&&y==="toggle"&&typeof g=="object"&&g.size===0&&p("replace");let S=a.useRef(i);return a.useEffect(()=>{i!==S.current&&(p(i),S.current=i)},[i]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:y,setSelectionBehavior:p,get isFocused(){return s.current},setFocused(h){s.current=h,d(h)},get focusedKey(){return f.current},get childFocusStrategy(){return m.current},setFocusedKey(h,x="first"){f.current=h,m.current=x,E(h)},selectedKeys:g,setSelectedKeys(h){(l||!je(h,g))&&b(h)},disabledKeys:k,disabledBehavior:c}}function be(n,e){return n?n==="all"?"all":new M(n):e}class fe{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 M([t],t,t);else{let s=this.state.selectedKeys;var i;let d=(i=s.anchorKey)!==null&&i!==void 0?i:t;l=new M(s,d,t);var c;for(let f of this.getKeyRange(d,(c=s.currentKey)!==null&&c!==void 0?c:t))l.delete(f);for(let f of this.getKeyRange(t,d))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 M(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 M([t],t,t):new M;this.state.setSelectedKeys(l)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new M;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 M)}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 fe(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=me;exports.$7613b1592d41b092$export$6cd28814d92fa9c9=We;exports.$7af3f5b51489e0b5$export$253fe78d46329472=Ye;exports.$880e95eb8b93ba9a$export$ecf600387e221c37=Ue;exports.$8a26561d2877236e$export$c24ed0104d07eab9=ge;exports.$ae20dd8cbca75726$export$d6daf82dcd84e87c=ze;exports.$c5a24bc478652b5f$export$1005530eda016c13=we;exports.$c5a24bc478652b5f$export$5f3398f8733f90e2=Pe;exports.$c5a24bc478652b5f$export$7475b2c64539e4cf=Ge;exports.$c5a24bc478652b5f$export$fbdeaa6a76694f71=Fe;exports.$d496c0a20b6e58ec$export$6c8a5aaad13c9852=fe;exports.$fb3050f43d946246$export$e32c88dfddc6e1d8=xe;exports.$feb5ffebff200149$export$c3d8340acf92597f=Q;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import V, { useRef as S, useEffect as q, useMemo as j, useState as se } from "react";
|
|
2
|
-
import { $ as
|
|
3
|
-
import {
|
|
4
|
-
import { a as Fe, b as Pe, e as
|
|
5
|
-
import { $ as J } from "./useEvent-
|
|
6
|
-
import { a as
|
|
7
|
-
import { flushSync as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { $ as
|
|
2
|
+
import { $ as he, a as Y, c as we, d as ye } from "./mergeProps-C1U1OIeJ.js";
|
|
3
|
+
import { $ as ke, b as xe, m as ue, c as Ae } from "./utils-CoCR_Fce.js";
|
|
4
|
+
import { a as Fe, b as Pe, e as Ie } from "./usePress-DuR4pVsE.js";
|
|
5
|
+
import { $ as J } from "./useEvent-CigwyJOw.js";
|
|
6
|
+
import { a as Me, b as Ce, c as pe } from "./scrollIntoView-BLnsPvFA.js";
|
|
7
|
+
import { flushSync as Be } from "react-dom";
|
|
8
|
+
import { h as Re, o as Le, f as ve } from "./useHover-DQvJ3Y-W.js";
|
|
9
|
+
import { a as ae } from "./useFocusable-ChPA2Jc7.js";
|
|
10
|
+
import { $ as Oe } from "./FocusScope-D_hwN_TJ.js";
|
|
11
|
+
import { $ as ze } from "./context-CGNJ3grH.js";
|
|
11
12
|
import { $ as Ue } from "./useControlledState-u436Wbp1.js";
|
|
12
13
|
function be(n, e) {
|
|
13
14
|
const t = S(!0), l = S(null);
|
|
14
|
-
|
|
15
|
+
he(() => (t.current = !0, () => {
|
|
15
16
|
t.current = !1;
|
|
16
|
-
}), []),
|
|
17
|
+
}), []), he(() => {
|
|
17
18
|
t.current ? t.current = !1 : (!l.current || e.some((i, c) => !Object.is(i, l[c]))) && n(), l.current = e;
|
|
18
19
|
}, e);
|
|
19
20
|
}
|
|
20
21
|
const Ve = "react-aria-clear-focus", He = "react-aria-focus";
|
|
21
22
|
function H(n) {
|
|
22
|
-
return
|
|
23
|
+
return Re() ? n.metaKey : n.ctrlKey;
|
|
23
24
|
}
|
|
24
25
|
const We = 500;
|
|
25
26
|
function Ge(n) {
|
|
26
27
|
let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: c = We, accessibilityDescription: r } = n;
|
|
27
28
|
const f = S(void 0);
|
|
28
|
-
let { addGlobalListener: a, removeGlobalListener: g } =
|
|
29
|
+
let { addGlobalListener: a, removeGlobalListener: g } = ke(), { pressProps: E } = Fe({
|
|
29
30
|
isDisabled: e,
|
|
30
31
|
onPressStart(v) {
|
|
31
32
|
if (v.continuePropagation(), (v.pointerType === "mouse" || v.pointerType === "touch") && (t && t({
|
|
@@ -59,7 +60,7 @@ function Ge(n) {
|
|
|
59
60
|
type: "longpressend"
|
|
60
61
|
});
|
|
61
62
|
}
|
|
62
|
-
}), m =
|
|
63
|
+
}), m = Me(i && !e ? r : void 0);
|
|
63
64
|
return {
|
|
64
65
|
longPressProps: Y(E, m)
|
|
65
66
|
};
|
|
@@ -85,11 +86,11 @@ function je(n, e) {
|
|
|
85
86
|
}));
|
|
86
87
|
}
|
|
87
88
|
function Ye(n) {
|
|
88
|
-
let e =
|
|
89
|
+
let e = Ae(n), t = e == null ? void 0 : e.getAttribute("aria-activedescendant");
|
|
89
90
|
return t && n.getElementById(t) || e;
|
|
90
91
|
}
|
|
91
92
|
function fe(n) {
|
|
92
|
-
return
|
|
93
|
+
return Le() ? n.altKey : n.ctrlKey;
|
|
93
94
|
}
|
|
94
95
|
function re(n, e) {
|
|
95
96
|
var t, l;
|
|
@@ -132,14 +133,14 @@ function Xe(n) {
|
|
|
132
133
|
function Ne(n) {
|
|
133
134
|
return n.length === 1 || !/^[A-Z]/i.test(n) ? n : "";
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
-
let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: c = !1, disallowEmptySelection: r = !1, disallowSelectAll: f = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: g = e.selectionBehavior === "replace", disallowTypeAhead: E = !1, shouldUseVirtualFocus: m, allowsTabNavigation: v = !1, isVirtualized: $, scrollRef: b = l, linkBehavior: k = "action" } = n, { direction:
|
|
136
|
+
function bt(n) {
|
|
137
|
+
let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: c = !1, disallowEmptySelection: r = !1, disallowSelectAll: f = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: g = e.selectionBehavior === "replace", disallowTypeAhead: E = !1, shouldUseVirtualFocus: m, allowsTabNavigation: v = !1, isVirtualized: $, scrollRef: b = l, linkBehavior: k = "action" } = n, { direction: h } = ze(), d = Pe(), K = (o) => {
|
|
137
138
|
var s;
|
|
138
139
|
if (o.altKey && o.key === "Tab" && o.preventDefault(), !(!((s = l.current) === null || s === void 0) && s.contains(o.target))) return;
|
|
139
140
|
const p = (u, z) => {
|
|
140
141
|
if (u != null) {
|
|
141
142
|
if (e.isLink(u) && k === "selection" && g && !fe(o)) {
|
|
142
|
-
|
|
143
|
+
Be(() => {
|
|
143
144
|
e.setFocusedKey(u, z);
|
|
144
145
|
});
|
|
145
146
|
let U = re(l, u), de = e.getItemProps(u);
|
|
@@ -169,14 +170,14 @@ function vt(n) {
|
|
|
169
170
|
if (t.getKeyLeftOf) {
|
|
170
171
|
var _, ee, te;
|
|
171
172
|
let u = e.focusedKey != null ? (_ = t.getKeyLeftOf) === null || _ === void 0 ? void 0 : _.call(t, e.focusedKey) : null;
|
|
172
|
-
u == null && c && (u =
|
|
173
|
+
u == null && c && (u = h === "rtl" ? (ee = t.getFirstKey) === null || ee === void 0 ? void 0 : ee.call(t, e.focusedKey) : (te = t.getLastKey) === null || te === void 0 ? void 0 : te.call(t, e.focusedKey)), u != null && (o.preventDefault(), p(u, h === "rtl" ? "first" : "last"));
|
|
173
174
|
}
|
|
174
175
|
break;
|
|
175
176
|
case "ArrowRight":
|
|
176
177
|
if (t.getKeyRightOf) {
|
|
177
178
|
var le, ie, ne;
|
|
178
179
|
let u = e.focusedKey != null ? (le = t.getKeyRightOf) === null || le === void 0 ? void 0 : le.call(t, e.focusedKey) : null;
|
|
179
|
-
u == null && c && (u =
|
|
180
|
+
u == null && c && (u = h === "rtl" ? (ie = t.getLastKey) === null || ie === void 0 ? void 0 : ie.call(t, e.focusedKey) : (ne = t.getFirstKey) === null || ne === void 0 ? void 0 : ne.call(t, e.focusedKey)), u != null && (o.preventDefault(), p(u, h === "rtl" ? "last" : "first"));
|
|
180
181
|
}
|
|
181
182
|
break;
|
|
182
183
|
case "Home":
|
|
@@ -228,13 +229,13 @@ function vt(n) {
|
|
|
228
229
|
break;
|
|
229
230
|
}
|
|
230
231
|
}
|
|
231
|
-
},
|
|
232
|
+
}, y = S({
|
|
232
233
|
top: 0,
|
|
233
234
|
left: 0
|
|
234
235
|
});
|
|
235
236
|
J(b, "scroll", $ ? void 0 : () => {
|
|
236
237
|
var o, s, p, x;
|
|
237
|
-
|
|
238
|
+
y.current = {
|
|
238
239
|
top: (p = (o = b.current) === null || o === void 0 ? void 0 : o.scrollTop) !== null && p !== void 0 ? p : 0,
|
|
239
240
|
left: (x = (s = b.current) === null || s === void 0 ? void 0 : s.scrollLeft) !== null && x !== void 0 ? x : 0
|
|
240
241
|
};
|
|
@@ -252,10 +253,10 @@ function vt(n) {
|
|
|
252
253
|
}, B = o.relatedTarget;
|
|
253
254
|
var x, T;
|
|
254
255
|
B && o.currentTarget.compareDocumentPosition(B) & Node.DOCUMENT_POSITION_FOLLOWING ? D((x = e.lastSelectedKey) !== null && x !== void 0 ? x : (s = t.getLastKey) === null || s === void 0 ? void 0 : s.call(t)) : D((T = e.firstSelectedKey) !== null && T !== void 0 ? T : (p = t.getFirstKey) === null || p === void 0 ? void 0 : p.call(t));
|
|
255
|
-
} else !$ && b.current && (b.current.scrollTop =
|
|
256
|
+
} else !$ && b.current && (b.current.scrollTop = y.current.top, b.current.scrollLeft = y.current.left);
|
|
256
257
|
if (e.focusedKey != null && b.current) {
|
|
257
258
|
let D = re(l, e.focusedKey);
|
|
258
|
-
D instanceof HTMLElement && (!D.contains(document.activeElement) && !m && ue(D),
|
|
259
|
+
D instanceof HTMLElement && (!D.contains(document.activeElement) && !m && ue(D), ve() === "keyboard" && pe(D, {
|
|
259
260
|
containingElement: l.current
|
|
260
261
|
}));
|
|
261
262
|
}
|
|
@@ -267,18 +268,18 @@ function vt(n) {
|
|
|
267
268
|
let { detail: s } = o;
|
|
268
269
|
o.stopPropagation(), e.setFocused(!0), (s == null ? void 0 : s.focusStrategy) === "first" && (I.current = !0);
|
|
269
270
|
} : void 0);
|
|
270
|
-
let
|
|
271
|
+
let C = ye(() => {
|
|
271
272
|
var o, s;
|
|
272
273
|
let p = (s = (o = t.getFirstKey) === null || o === void 0 ? void 0 : o.call(t)) !== null && s !== void 0 ? s : null;
|
|
273
274
|
p == null ? (De(l.current), e.collection.size > 0 && (I.current = !1)) : (e.setFocusedKey(p), I.current = !1);
|
|
274
275
|
});
|
|
275
276
|
be(() => {
|
|
276
|
-
I.current &&
|
|
277
|
+
I.current && C();
|
|
277
278
|
}, [
|
|
278
279
|
e.collection,
|
|
279
|
-
|
|
280
|
+
C
|
|
280
281
|
]);
|
|
281
|
-
let F =
|
|
282
|
+
let F = ye(() => {
|
|
282
283
|
e.collection.size > 0 && (I.current = !1);
|
|
283
284
|
});
|
|
284
285
|
be(() => {
|
|
@@ -312,11 +313,11 @@ function vt(n) {
|
|
|
312
313
|
let P = S(e.focusedKey), O = S(null);
|
|
313
314
|
q(() => {
|
|
314
315
|
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== P.current || R.current) && b.current && l.current) {
|
|
315
|
-
let o =
|
|
316
|
+
let o = ve(), s = re(l, e.focusedKey);
|
|
316
317
|
if (!(s instanceof HTMLElement))
|
|
317
318
|
return;
|
|
318
319
|
(o === "keyboard" || R.current) && (O.current && cancelAnimationFrame(O.current), O.current = requestAnimationFrame(() => {
|
|
319
|
-
b.current && (
|
|
320
|
+
b.current && (Ce(b.current, s), o !== "virtual" && pe(s, {
|
|
320
321
|
containingElement: l.current
|
|
321
322
|
}));
|
|
322
323
|
}));
|
|
@@ -349,7 +350,7 @@ function vt(n) {
|
|
|
349
350
|
})
|
|
350
351
|
};
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
+
function $t(n) {
|
|
353
354
|
let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: c, shouldUseVirtualFocus: r, focus: f, isDisabled: a, onAction: g, allowsDifferentPressOrigin: E, linkBehavior: m = "action" } = n, v = Pe();
|
|
354
355
|
e = we(e);
|
|
355
356
|
let $ = (s) => {
|
|
@@ -385,8 +386,8 @@ function bt(n) {
|
|
|
385
386
|
} : a && (b.onMouseDown = (s) => {
|
|
386
387
|
s.preventDefault();
|
|
387
388
|
});
|
|
388
|
-
let k = t.isLink(l) && m === "override",
|
|
389
|
-
if (g && g(),
|
|
389
|
+
let k = t.isLink(l) && m === "override", h = t.isLink(l) && m !== "selection" && m !== "none", d = !a && t.canSelectItem(l) && !k, K = (g || h) && !a, y = K && (t.selectionBehavior === "replace" ? !d : !d || t.isEmpty), w = K && d && t.selectionBehavior === "replace", A = y || w, I = S(null), C = A && d, F = S(!1), W = S(!1), R = (s) => {
|
|
390
|
+
if (g && g(), h && i.current) {
|
|
390
391
|
let p = t.getItemProps(l);
|
|
391
392
|
v.open(i.current, s, p.href, p.routerOptions);
|
|
392
393
|
}
|
|
@@ -394,18 +395,18 @@ function bt(n) {
|
|
|
394
395
|
ref: i
|
|
395
396
|
};
|
|
396
397
|
c ? (P.onPressStart = (s) => {
|
|
397
|
-
I.current = s.pointerType, F.current =
|
|
398
|
-
}, E ? (P.onPressUp =
|
|
398
|
+
I.current = s.pointerType, F.current = C, s.pointerType === "keyboard" && (!A || me()) && $(s);
|
|
399
|
+
}, E ? (P.onPressUp = y ? void 0 : (s) => {
|
|
399
400
|
s.pointerType === "mouse" && d && $(s);
|
|
400
|
-
}, P.onPress =
|
|
401
|
+
}, P.onPress = y ? R : (s) => {
|
|
401
402
|
s.pointerType !== "keyboard" && s.pointerType !== "mouse" && d && $(s);
|
|
402
403
|
}) : P.onPress = (s) => {
|
|
403
|
-
if (
|
|
404
|
+
if (y || w && s.pointerType !== "mouse") {
|
|
404
405
|
if (s.pointerType === "keyboard" && !$e()) return;
|
|
405
406
|
R(s);
|
|
406
407
|
} else s.pointerType !== "keyboard" && d && $(s);
|
|
407
408
|
}) : (P.onPressStart = (s) => {
|
|
408
|
-
I.current = s.pointerType, F.current =
|
|
409
|
+
I.current = s.pointerType, F.current = C, W.current = y, d && (s.pointerType === "mouse" && !y || s.pointerType === "keyboard" && (!K || me())) && $(s);
|
|
409
410
|
}, P.onPress = (s) => {
|
|
410
411
|
(s.pointerType === "touch" || s.pointerType === "pen" || s.pointerType === "virtual" || s.pointerType === "keyboard" && A && $e() || s.pointerType === "mouse" && W.current) && (A ? R(s) : d && $(s));
|
|
411
412
|
}), b["data-collection"] = Je(t.collection), b["data-key"] = l, P.preventFocusOnPress = r, r && (P = Y(P, {
|
|
@@ -419,20 +420,20 @@ function bt(n) {
|
|
|
419
420
|
let { pressProps: O, isPressed: G } = Fe(P), Q = w ? (s) => {
|
|
420
421
|
I.current === "mouse" && (s.stopPropagation(), s.preventDefault(), R(s));
|
|
421
422
|
} : void 0, { longPressProps: Z } = Ge({
|
|
422
|
-
isDisabled: !
|
|
423
|
+
isDisabled: !C,
|
|
423
424
|
onLongPress(s) {
|
|
424
425
|
s.pointerType === "touch" && ($(s), t.setSelectionBehavior("toggle"));
|
|
425
426
|
}
|
|
426
427
|
}), X = (s) => {
|
|
427
428
|
I.current === "touch" && F.current && s.preventDefault();
|
|
428
429
|
}, o = t.isLink(l) ? (s) => {
|
|
429
|
-
|
|
430
|
+
Ie.isOpening || s.preventDefault();
|
|
430
431
|
} : void 0;
|
|
431
432
|
return {
|
|
432
433
|
itemProps: Y(
|
|
433
434
|
b,
|
|
434
|
-
d ||
|
|
435
|
-
|
|
435
|
+
d || y || r && !a ? O : {},
|
|
436
|
+
C ? Z : {},
|
|
436
437
|
{
|
|
437
438
|
onDoubleClick: Q,
|
|
438
439
|
onDragStartCapture: X,
|
|
@@ -515,13 +516,13 @@ class _e {
|
|
|
515
516
|
}
|
|
516
517
|
*getFullNode(e, t, l, i) {
|
|
517
518
|
if (V.isValidElement(e.element) && e.element.type === V.Fragment) {
|
|
518
|
-
let
|
|
519
|
+
let h = [];
|
|
519
520
|
V.Children.forEach(e.element.props.children, (K) => {
|
|
520
|
-
|
|
521
|
+
h.push(K);
|
|
521
522
|
});
|
|
522
523
|
var c;
|
|
523
524
|
let d = (c = e.index) !== null && c !== void 0 ? c : 0;
|
|
524
|
-
for (const K of
|
|
525
|
+
for (const K of h) yield* this.getFullNode({
|
|
525
526
|
element: K,
|
|
526
527
|
index: d++
|
|
527
528
|
}, t, l, i);
|
|
@@ -529,29 +530,29 @@ class _e {
|
|
|
529
530
|
}
|
|
530
531
|
let r = e.element;
|
|
531
532
|
if (!r && e.value && t && t.renderer) {
|
|
532
|
-
let
|
|
533
|
-
if (
|
|
534
|
-
|
|
533
|
+
let h = this.cache.get(e.value);
|
|
534
|
+
if (h && (!h.shouldInvalidate || !h.shouldInvalidate(this.context))) {
|
|
535
|
+
h.index = e.index, h.parentKey = i ? i.key : null, yield h;
|
|
535
536
|
return;
|
|
536
537
|
}
|
|
537
538
|
r = t.renderer(e.value);
|
|
538
539
|
}
|
|
539
540
|
if (V.isValidElement(r)) {
|
|
540
|
-
let
|
|
541
|
-
if (typeof
|
|
541
|
+
let h = r.type;
|
|
542
|
+
if (typeof h != "function" && typeof h.getCollectionNode != "function") {
|
|
542
543
|
let w = r.type;
|
|
543
544
|
throw new Error(`Unknown element <${w}> in collection.`);
|
|
544
545
|
}
|
|
545
|
-
let d =
|
|
546
|
+
let d = h.getCollectionNode(r.props, this.context);
|
|
546
547
|
var f;
|
|
547
|
-
let K = (f = e.index) !== null && f !== void 0 ? f : 0,
|
|
548
|
-
for (; !
|
|
549
|
-
let w =
|
|
548
|
+
let K = (f = e.index) !== null && f !== void 0 ? f : 0, y = d.next();
|
|
549
|
+
for (; !y.done && y.value; ) {
|
|
550
|
+
let w = y.value;
|
|
550
551
|
e.index = K;
|
|
551
552
|
var a;
|
|
552
553
|
let A = (a = w.key) !== null && a !== void 0 ? a : null;
|
|
553
554
|
A == null && (A = w.element ? null : this.getKey(r, e, t, l));
|
|
554
|
-
let
|
|
555
|
+
let C = [
|
|
555
556
|
...this.getFullNode({
|
|
556
557
|
...w,
|
|
557
558
|
key: A,
|
|
@@ -559,14 +560,14 @@ class _e {
|
|
|
559
560
|
wrapper: et(e.wrapper, w.wrapper)
|
|
560
561
|
}, this.getChildState(t, w), l ? `${l}${r.key}` : r.key, i)
|
|
561
562
|
];
|
|
562
|
-
for (let F of
|
|
563
|
+
for (let F of C) {
|
|
563
564
|
var g, E;
|
|
564
565
|
F.value = (E = (g = w.value) !== null && g !== void 0 ? g : e.value) !== null && E !== void 0 ? E : null, F.value && this.cache.set(F.value, F);
|
|
565
566
|
var m;
|
|
566
567
|
if (e.type && F.type !== e.type) throw new Error(`Unsupported type <${oe(F.type)}> in <${oe((m = i == null ? void 0 : i.type) !== null && m !== void 0 ? m : "unknown parent type")}>. Only <${oe(e.type)}> is supported.`);
|
|
567
568
|
K++, yield F;
|
|
568
569
|
}
|
|
569
|
-
|
|
570
|
+
y = d.next(C);
|
|
570
571
|
}
|
|
571
572
|
return;
|
|
572
573
|
}
|
|
@@ -589,15 +590,15 @@ class _e {
|
|
|
589
590
|
hasChildNodes: e.hasChildNodes || !1,
|
|
590
591
|
childNodes: ge(function* () {
|
|
591
592
|
if (!e.hasChildNodes || !e.childNodes) return;
|
|
592
|
-
let
|
|
593
|
+
let h = 0;
|
|
593
594
|
for (let d of e.childNodes()) {
|
|
594
595
|
d.key != null && (d.key = `${k.key}${d.key}`);
|
|
595
596
|
let K = v.getFullNode({
|
|
596
597
|
...d,
|
|
597
|
-
index:
|
|
598
|
+
index: h
|
|
598
599
|
}, v.getChildState(t, d), k.key, k);
|
|
599
|
-
for (let
|
|
600
|
-
|
|
600
|
+
for (let y of K)
|
|
601
|
+
h++, yield y;
|
|
601
602
|
}
|
|
602
603
|
})
|
|
603
604
|
};
|
|
@@ -626,7 +627,7 @@ function et(n, e) {
|
|
|
626
627
|
function oe(n) {
|
|
627
628
|
return n[0].toUpperCase() + n.slice(1);
|
|
628
629
|
}
|
|
629
|
-
function
|
|
630
|
+
function mt(n, e, t) {
|
|
630
631
|
let l = j(() => new _e(), []), { children: i, items: c, collection: r } = n;
|
|
631
632
|
return j(() => {
|
|
632
633
|
if (r) return r;
|
|
@@ -658,7 +659,7 @@ function it(n, e) {
|
|
|
658
659
|
t++;
|
|
659
660
|
}
|
|
660
661
|
}
|
|
661
|
-
function
|
|
662
|
+
function gt(n) {
|
|
662
663
|
let e;
|
|
663
664
|
for (let t of n) e = t;
|
|
664
665
|
return e;
|
|
@@ -680,9 +681,9 @@ function Ke(n, e) {
|
|
|
680
681
|
l = n.getItem(l.parentKey), l && t.unshift(l);
|
|
681
682
|
return t;
|
|
682
683
|
}
|
|
683
|
-
class
|
|
684
|
+
class M extends Set {
|
|
684
685
|
constructor(e, t, l) {
|
|
685
|
-
super(e), e instanceof
|
|
686
|
+
super(e), e instanceof M ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
|
|
686
687
|
}
|
|
687
688
|
}
|
|
688
689
|
function nt(n, e) {
|
|
@@ -691,15 +692,15 @@ function nt(n, e) {
|
|
|
691
692
|
if (!e.has(t)) return !1;
|
|
692
693
|
return !0;
|
|
693
694
|
}
|
|
694
|
-
function
|
|
695
|
+
function Kt(n) {
|
|
695
696
|
let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: c = "all" } = n, r = S(!1), [, f] = se(!1), a = S(null), g = S(null), [, E] = se(null), m = j(() => Se(n.selectedKeys), [
|
|
696
697
|
n.selectedKeys
|
|
697
|
-
]), v = j(() => Se(n.defaultSelectedKeys, new
|
|
698
|
+
]), v = j(() => Se(n.defaultSelectedKeys, new M()), [
|
|
698
699
|
n.defaultSelectedKeys
|
|
699
700
|
]), [$, b] = Ue(m, v, n.onSelectionChange), k = j(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
700
701
|
n.disabledKeys
|
|
701
|
-
]), [
|
|
702
|
-
i === "replace" &&
|
|
702
|
+
]), [h, d] = se(i);
|
|
703
|
+
i === "replace" && h === "toggle" && typeof $ == "object" && $.size === 0 && d("replace");
|
|
703
704
|
let K = S(i);
|
|
704
705
|
return q(() => {
|
|
705
706
|
i !== K.current && (d(i), K.current = i);
|
|
@@ -708,13 +709,13 @@ function gt(n) {
|
|
|
708
709
|
]), {
|
|
709
710
|
selectionMode: e,
|
|
710
711
|
disallowEmptySelection: t,
|
|
711
|
-
selectionBehavior:
|
|
712
|
+
selectionBehavior: h,
|
|
712
713
|
setSelectionBehavior: d,
|
|
713
714
|
get isFocused() {
|
|
714
715
|
return r.current;
|
|
715
716
|
},
|
|
716
|
-
setFocused(
|
|
717
|
-
r.current =
|
|
717
|
+
setFocused(y) {
|
|
718
|
+
r.current = y, f(y);
|
|
718
719
|
},
|
|
719
720
|
get focusedKey() {
|
|
720
721
|
return a.current;
|
|
@@ -722,19 +723,19 @@ function gt(n) {
|
|
|
722
723
|
get childFocusStrategy() {
|
|
723
724
|
return g.current;
|
|
724
725
|
},
|
|
725
|
-
setFocusedKey(
|
|
726
|
-
a.current =
|
|
726
|
+
setFocusedKey(y, w = "first") {
|
|
727
|
+
a.current = y, g.current = w, E(y);
|
|
727
728
|
},
|
|
728
729
|
selectedKeys: $,
|
|
729
|
-
setSelectedKeys(
|
|
730
|
-
(l || !nt(
|
|
730
|
+
setSelectedKeys(y) {
|
|
731
|
+
(l || !nt(y, $)) && b(y);
|
|
731
732
|
},
|
|
732
733
|
disabledKeys: k,
|
|
733
734
|
disabledBehavior: c
|
|
734
735
|
};
|
|
735
736
|
}
|
|
736
737
|
function Se(n, e) {
|
|
737
|
-
return n ? n === "all" ? "all" : new
|
|
738
|
+
return n ? n === "all" ? "all" : new M(n) : e;
|
|
738
739
|
}
|
|
739
740
|
class Ee {
|
|
740
741
|
/**
|
|
@@ -862,14 +863,14 @@ class Ee {
|
|
|
862
863
|
let t = this.getKey(e);
|
|
863
864
|
if (t == null) return;
|
|
864
865
|
let l;
|
|
865
|
-
if (this.state.selectedKeys === "all") l = new
|
|
866
|
+
if (this.state.selectedKeys === "all") l = new M([
|
|
866
867
|
t
|
|
867
868
|
], t, t);
|
|
868
869
|
else {
|
|
869
870
|
let r = this.state.selectedKeys;
|
|
870
871
|
var i;
|
|
871
872
|
let f = (i = r.anchorKey) !== null && i !== void 0 ? i : t;
|
|
872
|
-
l = new
|
|
873
|
+
l = new M(r, f, t);
|
|
873
874
|
var c;
|
|
874
875
|
for (let a of this.getKeyRange(f, (c = r.currentKey) !== null && c !== void 0 ? c : t)) l.delete(a);
|
|
875
876
|
for (let a of this.getKeyRange(t, f)) this.canSelectItem(a) && l.add(a);
|
|
@@ -908,7 +909,7 @@ class Ee {
|
|
|
908
909
|
}
|
|
909
910
|
let t = this.getKey(e);
|
|
910
911
|
if (t == null) return;
|
|
911
|
-
let l = new
|
|
912
|
+
let l = new M(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
|
|
912
913
|
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);
|
|
913
914
|
}
|
|
914
915
|
/**
|
|
@@ -918,9 +919,9 @@ class Ee {
|
|
|
918
919
|
if (this.selectionMode === "none") return;
|
|
919
920
|
let t = this.getKey(e);
|
|
920
921
|
if (t == null) return;
|
|
921
|
-
let l = this.canSelectItem(t) ? new
|
|
922
|
+
let l = this.canSelectItem(t) ? new M([
|
|
922
923
|
t
|
|
923
|
-
], t, t) : new
|
|
924
|
+
], t, t) : new M();
|
|
924
925
|
this.state.setSelectedKeys(l);
|
|
925
926
|
}
|
|
926
927
|
/**
|
|
@@ -928,7 +929,7 @@ class Ee {
|
|
|
928
929
|
*/
|
|
929
930
|
setSelectedKeys(e) {
|
|
930
931
|
if (this.selectionMode === "none") return;
|
|
931
|
-
let t = new
|
|
932
|
+
let t = new M();
|
|
932
933
|
for (let l of e) {
|
|
933
934
|
let i = this.getKey(l);
|
|
934
935
|
if (i != null && (t.add(i), this.selectionMode === "single"))
|
|
@@ -961,7 +962,7 @@ class Ee {
|
|
|
961
962
|
* Removes all keys from the selection.
|
|
962
963
|
*/
|
|
963
964
|
clearSelection() {
|
|
964
|
-
!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new
|
|
965
|
+
!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new M());
|
|
965
966
|
}
|
|
966
967
|
/**
|
|
967
968
|
* Toggles between select all and an empty selection.
|
|
@@ -1016,16 +1017,16 @@ class Ee {
|
|
|
1016
1017
|
}
|
|
1017
1018
|
}
|
|
1018
1019
|
export {
|
|
1019
|
-
|
|
1020
|
-
|
|
1020
|
+
Kt as $,
|
|
1021
|
+
mt as a,
|
|
1021
1022
|
Ee as b,
|
|
1022
1023
|
re as c,
|
|
1023
|
-
|
|
1024
|
-
|
|
1024
|
+
$t as d,
|
|
1025
|
+
bt as e,
|
|
1025
1026
|
tt as f,
|
|
1026
1027
|
Xe as g,
|
|
1027
1028
|
je as h,
|
|
1028
|
-
|
|
1029
|
+
gt as i,
|
|
1029
1030
|
lt as j,
|
|
1030
1031
|
it as k,
|
|
1031
1032
|
Ge as l
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./SelectionManager-
|
|
1
|
+
"use strict";const i=require("./SelectionManager-D0jYUYcy.cjs"),b=require("./ListKeyboardDelegate-CPsZ7D83.cjs"),d=require("react"),p=require("./utils-DHNZrQmj.cjs"),g=require("./Collection-BtBX5IMY.cjs");function y(t){let{selectionManager:e,collection:a,disabledKeys:r,ref:o,keyboardDelegate:c,layoutDelegate:$}=t,l=b.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),n=e.disabledBehavior,u=d.useMemo(()=>c||new b.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:a,disabledKeys:r,disabledBehavior:n,ref:o,collator:l,layoutDelegate:$}),[c,$,a,r,o,l,n]),{collectionProps:x}=i.$ae20dd8cbca75726$export$d6daf82dcd84e87c({...t,ref:o,selectionManager:e,keyboardDelegate:u});return{listProps:x}}const f=new WeakMap;function h(t){let e=f.get(t);if(e!=null)return e;let a=0,r=o=>{for(let c of o)c.type==="section"?r(i.$c5a24bc478652b5f$export$1005530eda016c13(c,t)):c.type==="item"&&a++};return r(t),f.set(t,a),a}const D=d.createContext(null),s=d.createContext({}),m=g.$e1995378a142960e$export$18af5c7a9e9b3664("header",function(e,a){return[e,a]=p.$64fa3d84918910a7$export$29f1550f4b0d4415(e,a,s),d.createElement("header",{className:"react-aria-Header",...e,ref:a},e.children)}),M=d.createContext({});exports.$431f98aba6844401$export$6615d83f6de245ce=M;exports.$453cc9f0df89c0a5$export$77d5aafae4e095b2=h;exports.$72a5793c14baf454$export$8b251419efc915eb=m;exports.$72a5793c14baf454$export$e0e4026c12a8bdbb=s;exports.$982254629710d113$export$b95089534ab7c1fd=y;exports.$d2f53cda644affe3$export$65d2a03b8800d6e3=D;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as b, f as u } from "./SelectionManager-
|
|
2
|
-
import { $ as m, a as p } from "./ListKeyboardDelegate-
|
|
1
|
+
import { e as b, f as u } from "./SelectionManager-zsWy3vsd.js";
|
|
2
|
+
import { $ as m, a as p } from "./ListKeyboardDelegate-CY6t6y1t.js";
|
|
3
3
|
import x, { useMemo as g, createContext as d } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { $ as h } from "./Collection
|
|
4
|
+
import { $ as y } from "./utils-DJhAJHk_.js";
|
|
5
|
+
import { $ as h } from "./Collection--62xKPm9.js";
|
|
6
6
|
function P(t) {
|
|
7
7
|
let { selectionManager: e, collection: a, disabledKeys: r, ref: c, keyboardDelegate: o, layoutDelegate: l } = t, $ = m({
|
|
8
8
|
usage: "search",
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import { c } from "./createLucideIcon-DeWljiyi.js";
|
|
4
|
+
import { $ as d } from "./VisuallyHidden-CYfmTSCD.js";
|
|
5
|
+
import { u as l } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
6
|
+
import './assets/Spinner.css';/**
|
|
7
|
+
* @license lucide-react v0.453.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 = c("LoaderCircle", [
|
|
13
|
+
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
14
|
+
]), p = "_container_3nw95_4", _ = "_spinner_3nw95_8", f = "_dark_3nw95_18", e = {
|
|
15
|
+
container: p,
|
|
16
|
+
spinner: _,
|
|
17
|
+
dark: f
|
|
18
|
+
}, g = {
|
|
19
|
+
loadingPleaseWait: "Loading, please wait..."
|
|
20
|
+
}, k = {
|
|
21
|
+
loadingPleaseWait: "Laddar, vänligen vänta..."
|
|
22
|
+
}, u = {
|
|
23
|
+
en: g,
|
|
24
|
+
sv: k
|
|
25
|
+
}, w = ({
|
|
26
|
+
small: a,
|
|
27
|
+
isOnColor: r = !1,
|
|
28
|
+
className: t
|
|
29
|
+
}) => {
|
|
30
|
+
const o = l(u);
|
|
31
|
+
return /* @__PURE__ */ i(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
className: s(e.container, t),
|
|
35
|
+
role: "status",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ n(
|
|
38
|
+
m,
|
|
39
|
+
{
|
|
40
|
+
className: s(e.spinner, r && e.dark),
|
|
41
|
+
size: a ? 16 : 32,
|
|
42
|
+
strokeWidth: a ? 2 : 3,
|
|
43
|
+
absoluteStrokeWidth: !0
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ n(d, { children: o.format("loadingPleaseWait") })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
w as S
|
|
53
|
+
};
|