@midas-ds/components 10.3.0 → 10.4.1
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-D2QYNgZS.cjs +1 -0
- package/{AccordionItem-ChHpW8EW.js → AccordionItem-oeN1Cc09.js} +41 -39
- package/{Breadcrumbs-CwDUNIqF.js → Breadcrumbs-D8ad6xvL.js} +77 -65
- package/Breadcrumbs-DkJIkGG5.cjs +1 -0
- package/{Button-DjBChs7s.js → Button-CFYdzG0H.js} +24 -23
- package/Button-DExMoP5f.cjs +1 -0
- package/{Button-BoJl6JGM.cjs → Button-Dq6ugqxT.cjs} +1 -1
- package/{Button-Csih3v23.js → Button-DtSrCAf6.js} +2 -2
- package/Button.module-D-mPLRxe.js +14 -0
- package/Button.module-goCEz5qs.cjs +1 -0
- package/CHANGELOG.md +41 -0
- package/{Card-yrtGzt70.js → Card-BzJ_OEe6.js} +4 -4
- package/{Card-0G0mj9q5.cjs → Card-cdL5669N.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-CcTfzurp.js +160 -0
- package/CheckboxGroup-DWxQTABg.cjs +1 -0
- package/{Collection-Brgjpkne.js → Collection--62xKPm9.js} +17 -16
- package/Collection-BtBX5IMY.cjs +1 -0
- package/ColorSchemeSwitch-owUryjYz.cjs +16 -0
- package/{ColorSchemeSwitch-BpzQ7g0b.js → ColorSchemeSwitch-y8qKczjQ.js} +53 -36
- package/{ComboBox-CVDyp2a-.js → ComboBox-CZyP8Dfh.js} +310 -299
- package/ComboBox-Dg2xhkLC.cjs +1 -0
- package/{DateField-DeDhiYnW.cjs → DateField-1w5J_iyF.cjs} +1 -1
- package/{DateField-DhU3q-rG.js → DateField-BTROlenJ.js} +4 -4
- package/DateInputDivider-3BvwXXa9.cjs +1 -0
- package/{DateInputDivider-CF4xWsMT.js → DateInputDivider-Bi5N-C0c.js} +90 -86
- package/DateRangePicker-CX3830ZF.cjs +6 -0
- package/{DateRangePicker-ziD1_k1W.js → DateRangePicker-DmZP9laM.js} +120 -117
- package/Dialog-0ZBhhPyd.js +221 -0
- package/Dialog-CSnN6baf.cjs +1 -0
- package/{Dialog-D14MbJ7o.js → Dialog-CtVrVuMr.js} +101 -98
- package/Dialog-DnMwnqiC.cjs +1 -0
- package/DragAndDrop-BoEd260f.cjs +1 -0
- package/{DragAndDrop-o3ruz_SR.js → DragAndDrop-DkSTL28C.js} +2 -2
- package/{Dropdown-Df58j43I.js → Dropdown-BEAMfAxj.js} +19 -19
- package/Dropdown-By91MEV2.cjs +6 -0
- 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-DvQdIZ6k.js} +496 -475
- package/{FileUpload-CxCOtyB9.cjs → FileUpload-vf0oJd0K.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-CzwbOdRG.cjs +1 -0
- package/{InfoBanner-BLM-TJJ6.js → InfoBanner-yj90XVEP.js} +47 -39
- package/{Input-BTzwcf72.js → Input-LnjmFI1x.js} +13 -12
- package/Input-MJji5hhq.cjs +1 -0
- package/Label-D2GmP8_2.js +78 -0
- package/Label-E3LhQfNv.cjs +1 -0
- package/Layout-BMNgqjXv.js +498 -0
- package/Layout-Ri7XQHFp.cjs +16 -0
- package/Link-BCVI5W_i.js +59 -0
- package/{Link-yNO2-sqx.js → Link-Bn8V3ZI0.js} +8 -7
- package/Link-CVvnCOGP.cjs +6 -0
- package/Link-CidjjqHb.cjs +1 -0
- package/LinkButton-B6AWNiRn.cjs +6 -0
- package/LinkButton-Cui-gvAk.js +69 -0
- 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-Bpq-hyZa.js} +2 -2
- package/{ProgressBar-Jbg28j2a.cjs → ProgressBar-D4lOEhAh.cjs} +1 -1
- package/{Radio-Cz29wPXd.js → Radio-BPcq9kW5.js} +50 -47
- package/Radio-CwNbUGah.cjs +1 -0
- package/{RangeCalendar-RAlAHlNL.js → RangeCalendar-6miAJVoO.js} +349 -342
- package/RangeCalendar-CAI1PRDo.cjs +11 -0
- package/SSRProvider-40TXmsUG.js +50 -0
- package/SSRProvider-Bc-sMhsT.cjs +1 -0
- package/SearchField-CDyD5iWr.js +371 -0
- package/SearchField-DEoGi9xv.cjs +6 -0
- package/Select-B2wYDnAU.js +665 -0
- package/Select-nRN944QZ.cjs +1 -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-VSyPhiJ9.js +51 -0
- package/Spinner-vof0Y9Hh.cjs +6 -0
- package/TabList-CheXtBJm.cjs +1 -0
- package/TabList-D0qzIjSx.js +435 -0
- package/Table-DAhnYYIA.cjs +16 -0
- package/{Table-F4oYBtUM.js → Table-zKvjzd9t.js} +66 -64
- package/{Tag-Du7GvSv2.js → Tag-BoqT5nbh.js} +142 -140
- package/Tag-t-aJVo3W.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-B5und61h.cjs +1 -0
- package/TextArea-Pxr-eLXe.js +119 -0
- package/TextField-BdK9KEQ5.cjs +1 -0
- package/{TextField-C-hTPukq.js → TextField-ByDJkig9.js} +23 -22
- package/Toast-DdmSvNaO.cjs +1 -0
- package/{Toast-Btg21Xge.js → Toast-DfKiA5hp.js} +79 -72
- package/ToggleButtonGroup-DZ_wo0qx.cjs +1 -0
- package/{ToggleButtonGroup-B5yz1tm2.js → ToggleButtonGroup-DhlfvYGg.js} +47 -46
- 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/arrow-right-BGd86zzR.cjs +6 -0
- package/{arrow-right-Dg8sttFO.js → arrow-right-uemUGIg8.js} +5 -5
- package/assets/Button.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/LinkButton.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/assets/Tag.css +1 -1
- 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/Card.d.ts +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/check-B0aKTFe5.cjs +6 -0
- package/check-B5h1DvDs.js +11 -0
- 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/chevron-down-5hFlg_lR.cjs +6 -0
- package/chevron-down-DmZMdOiC.js +11 -0
- package/{circle-check-B9HYcH7Z.js → circle-check-BErh6TKu.js} +9 -9
- package/circle-check-OVUGxwp9.cjs +11 -0
- 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/createLucideIcon-CTVXwe6i.cjs +21 -0
- package/createLucideIcon-XRdN60yz.js +94 -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-BZwphdye.js → info-CPK1vbOJ.js} +5 -5
- package/info-Dj6SyPex.cjs +6 -0
- 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/Link.d.ts +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/LinkButton.d.ts +1 -1
- 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/{square-arrow-out-up-right-BkyqV2PN.js → square-arrow-out-up-right-ok0A3Ovo.js} +4 -4
- package/square-arrow-out-up-right-xCFdJTzY.cjs +6 -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/{triangle-alert-wxyxspAl.js → triangle-alert-B_qAPmWC.js} +5 -5
- package/triangle-alert-BviJNFjf.cjs +6 -0
- 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/{x-JK7i-TQC.js → x-C2xUHAEl.js} +5 -5
- package/x-rV-nu490.cjs +6 -0
- package/AccordionItem-BGWiWjxA.cjs +0 -1
- package/Breadcrumbs-DtjJ1UmU.cjs +0 -1
- package/Button-htW9qIsS.cjs +0 -1
- package/Button.module-DEQtBYe5.cjs +0 -1
- package/Button.module-tti8HGxs.js +0 -14
- 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/Dropdown-CJ6My6EI.cjs +0 -6
- 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-B88l_oaE.cjs +0 -6
- package/Link-BQhauBuw.cjs +0 -1
- package/Link-DX5BbBnn.js +0 -59
- package/LinkButton-CBpGLETx.cjs +0 -6
- package/LinkButton-o6uS1XsR.js +0 -69
- 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/SearchField-IlvZ3Kh6.js +0 -362
- 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/arrow-right-QJ2gXPKQ.cjs +0 -6
- package/assets/Tabs.css +0 -1
- package/check-CLF6Yxza.js +0 -11
- package/check-D_KoootC.cjs +0 -6
- package/chevron-down-Cd1bkzXT.js +0 -13
- package/chevron-down-jl83cllc.cjs +0 -6
- package/circle-check-BGo8gML8.cjs +0 -11
- package/context-DjwhtgxQ.cjs +0 -1
- package/createLucideIcon-Cg_wkoIA.cjs +0 -21
- package/createLucideIcon-DeWljiyi.js +0 -79
- package/info-CIEIENo6.cjs +0 -6
- package/scrollIntoView-C8doLzDd.cjs +0 -1
- package/square-arrow-out-up-right-V4Gd08uI.cjs +0 -6
- package/triangle-alert-DJW8U7jL.cjs +0 -6
- 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
- package/x-H8Zrx8-x.cjs +0 -6
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { $ as u } from "./Link-Bn8V3ZI0.js";
|
|
3
|
+
import { c as k } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
import { S as y } from "./square-arrow-out-up-right-ok0A3Ovo.js";
|
|
5
|
+
import { c as z } from "./createLucideIcon-XRdN60yz.js";
|
|
6
|
+
import { A as g } from "./arrow-right-uemUGIg8.js";
|
|
7
|
+
import './assets/LinkButton.css';/**
|
|
8
|
+
* @license lucide-react v0.525.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const h = [
|
|
14
|
+
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
15
|
+
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
16
|
+
], B = z("arrow-left", h), w = "_linkButton_1klzp_4", L = "_secondary_1klzp_55", x = "_icon_1klzp_60", A = "_tertiary_1klzp_85", $ = "_danger_1klzp_102", N = "_iconBtn_1klzp_119", j = "_medium_1klzp_141", R = "_iconLeft_1klzp_146", S = "_fullwidth_1klzp_150", t = {
|
|
17
|
+
linkButton: w,
|
|
18
|
+
secondary: L,
|
|
19
|
+
icon: x,
|
|
20
|
+
tertiary: A,
|
|
21
|
+
danger: $,
|
|
22
|
+
iconBtn: N,
|
|
23
|
+
medium: j,
|
|
24
|
+
iconLeft: R,
|
|
25
|
+
fullwidth: S
|
|
26
|
+
}, U = ({
|
|
27
|
+
children: e,
|
|
28
|
+
variant: o,
|
|
29
|
+
fullwidth: s,
|
|
30
|
+
icon: c,
|
|
31
|
+
iconPlacement: i,
|
|
32
|
+
className: l,
|
|
33
|
+
as: _,
|
|
34
|
+
size: a = "large",
|
|
35
|
+
...d
|
|
36
|
+
}) => {
|
|
37
|
+
const m = _ || u, f = ({ ...n }) => c ? /* @__PURE__ */ r(c, { ...n }) : n.target === "_blank" ? /* @__PURE__ */ r(y, { ...n }) : i === "left" ? /* @__PURE__ */ r(B, { ...n }) : /* @__PURE__ */ r(g, { ...n });
|
|
38
|
+
return /* @__PURE__ */ p(
|
|
39
|
+
m,
|
|
40
|
+
{
|
|
41
|
+
className: k(
|
|
42
|
+
t.linkButton,
|
|
43
|
+
o === "primary" && t.primary,
|
|
44
|
+
o === "secondary" && t.secondary,
|
|
45
|
+
o === "tertiary" && t.tertiary,
|
|
46
|
+
o === "danger" && t.danger,
|
|
47
|
+
o === "icon" && t.iconBtn,
|
|
48
|
+
a === "medium" && t.medium,
|
|
49
|
+
s && t.fullwidth,
|
|
50
|
+
i === "left" && t.iconLeft,
|
|
51
|
+
l
|
|
52
|
+
),
|
|
53
|
+
...d,
|
|
54
|
+
children: [
|
|
55
|
+
e,
|
|
56
|
+
/* @__PURE__ */ r(
|
|
57
|
+
f,
|
|
58
|
+
{
|
|
59
|
+
size: 20,
|
|
60
|
+
className: t.icon
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
U as L
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const D=require("./Collection-BtBX5IMY.cjs"),v=require("./utils-DHNZrQmj.cjs"),y=require("./DragAndDrop-BoEd260f.cjs"),A=require("./Separator-CxF-3jhR.cjs"),re=require("./Text-CfcjRtke.cjs"),h=require("./mergeProps-B5KXZAI3.cjs"),T=require("./filterDOMProps-BS2lrgFA.cjs"),ae=require("./inertValue-B3AFhVG4.cjs"),t=require("react"),de=require("./usePress-BooY_CAy.cjs"),B=require("./useHover-BE_XKZKe.cjs"),ie=require("./SelectionManager-D0jYUYcy.cjs"),le=require("./useFocusWithin-CG8mAt2D.cjs"),ne=require("./Button-DExMoP5f.cjs"),Y=require("./useListState-DymkJGDF.cjs"),se=require("./context-Df3XbgBG.cjs"),X=require("./ListKeyboardDelegate-CPsZ7D83.cjs"),ce=require("./useFocusRing-B-A1OLhU.cjs"),ue=require("./FocusScope-vcXLOQiu.cjs"),z=new WeakMap;function fe(o){return typeof o=="string"?o.replace(/\s*/g,""):""+o}function Z(o,e){let d=z.get(o);if(!d)throw new Error("Unknown list");return`${d.id}-option-${fe(e)}`}function $e(o,e,d){let i=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(o,{labelable:!0}),l=o.selectionBehavior||"toggle",n=o.linkBehavior||(l==="replace"?"action":"override");l==="toggle"&&n==="action"&&(n="override");let{listProps:r}=A.$982254629710d113$export$b95089534ab7c1fd({...o,ref:d,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:n}),{focusWithinProps:a}=le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:o.onFocus,onBlurWithin:o.onBlur,onFocusWithinChange:o.onFocusChange}),u=h.$bdb11010cef70236$export$f680877a34711e37(o.id);z.set(e,{id:u,shouldUseVirtualFocus:o.shouldUseVirtualFocus,shouldSelectOnPressUp:o.shouldSelectOnPressUp,shouldFocusOnHover:o.shouldFocusOnHover,isVirtualized:o.isVirtualized,onAction:o.onAction,linkBehavior:n});let{labelProps:p,fieldProps:s}=ne.$d191a55c9702f145$export$8467354a121f1b9f({...o,id:u,labelElementType:"span"});return{labelProps:p,listBoxProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(i,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...h.$3ef42575df84b30b$export$9d1611c77c2fe928(s,r)})}}function be(o,e,d){var i,l;let{key:n}=o,r=z.get(e);var a;let u=(a=o.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(n);var p;let s=(p=o.isSelected)!==null&&p!==void 0?p:e.selectionManager.isSelected(n);var b;let c=(b=o.shouldSelectOnPressUp)!==null&&b!==void 0?b:r==null?void 0:r.shouldSelectOnPressUp;var f;let P=(f=o.shouldFocusOnHover)!==null&&f!==void 0?f:r==null?void 0:r.shouldFocusOnHover;var x;let g=(x=o.shouldUseVirtualFocus)!==null&&x!==void 0?x:r==null?void 0:r.shouldUseVirtualFocus;var m;let S=(m=o.isVirtualized)!==null&&m!==void 0?m:r==null?void 0:r.isVirtualized,M=h.$bdb11010cef70236$export$b4cc09c592e8fdb8(),H=h.$bdb11010cef70236$export$b4cc09c592e8fdb8(),k={role:"option","aria-disabled":u||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?s:void 0};B.$c87311424ea30a05$export$9ac100e40613ea10()&&B.$c87311424ea30a05$export$78551043582a6a98()||(k["aria-label"]=o["aria-label"],k["aria-labelledby"]=M,k["aria-describedby"]=H);let $=e.collection.getItem(n);if(S){let E=Number($==null?void 0:$.index);k["aria-posinset"]=Number.isNaN(E)?void 0:E+1,k["aria-setsize"]=A.$453cc9f0df89c0a5$export$77d5aafae4e095b2(e.collection)}let I=r!=null&&r.onAction?()=>{var E;return r==null||(E=r.onAction)===null||E===void 0?void 0:E.call(r,n)}:void 0,O=Z(e,n),{itemProps:N,isPressed:U,isFocused:C,hasAction:F,allowsSelection:w}=ie.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:n,ref:d,shouldSelectOnPressUp:c,allowsDifferentPressOrigin:c&&P,isVirtualized:S,shouldUseVirtualFocus:g,isDisabled:u,onAction:I||!($==null||(i=$.props)===null||i===void 0)&&i.onAction?h.$ff5963eb1fccf552$export$e08e3b67e392101e($==null||(l=$.props)===null||l===void 0?void 0:l.onAction,I):void 0,linkBehavior:r==null?void 0:r.linkBehavior,id:O}),{hoverProps:L}=B.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:u||!P,onHoverStart(){B.$507fabe10e71c6fb$export$b9b3dfddab17db27()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(n))}}),_=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f($==null?void 0:$.props);delete _.id;let q=de.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18($==null?void 0:$.props);return{optionProps:{...k,...h.$3ef42575df84b30b$export$9d1611c77c2fe928(_,N,L,q),id:O},labelProps:{id:M},descriptionProps:{id:H},isFocused:C,isFocusVisible:C&&e.selectionManager.isFocused&&B.$507fabe10e71c6fb$export$b9b3dfddab17db27(),isSelected:s,isDisabled:u,isPressed:U,allowsSelection:w,hasAction:F}}function pe(o){let{heading:e,"aria-label":d}=o,i=h.$bdb11010cef70236$export$f680877a34711e37();return{itemProps:{role:"presentation"},headingProps:e?{id:i,role:"presentation"}:{},groupProps:{role:"group","aria-label":d,"aria-labelledby":e?i:void 0}}}const W=t.createContext(null),V=t.createContext(null),ge=t.forwardRef(function(e,d){[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,W);let i=t.useContext(V);return i?t.createElement(ee,{state:i,props:e,listBoxRef:d}):t.createElement(D.$e1995378a142960e$export$bf788dd355e3a401,{content:t.createElement(D.$e1995378a142960e$export$fb8073518f34e6ec,e)},l=>t.createElement(ve,{props:e,listBoxRef:d,collection:l}))});function ve({props:o,listBoxRef:e,collection:d}){o={...o,collection:d,children:null,items:null};let{layoutDelegate:i}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),l=Y.$e72dd72e1c76a225$export$2f645645f7bca764({...o,layoutDelegate:i});return t.createElement(ee,{state:l,props:o,listBoxRef:e})}function ee({state:o,props:e,listBoxRef:d}){var i;let{filter:l,collectionProps:n,collectionRef:r}=t.useContext(A.$d2f53cda644affe3$export$65d2a03b8800d6e3)||{};e=t.useMemo(()=>n?{...e,...n}:e,[e,n]);let{dragAndDropHooks:a,layout:u="stack",orientation:p="vertical"}=e;d=v.$df56164dff5785e2$export$4338b53315abf666(t.useMemo(()=>v.$5dc95899b306f630$export$c9058316764c140e(d,r!==void 0?r:null),[r,d]));let s=Y.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(o,l),{collection:b,selectionManager:c}=s,f=!!(a!=null&&a.useDraggableCollectionState),P=!!(a!=null&&a.useDroppableCollectionState),{direction:x}=se.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{disabledBehavior:g,disabledKeys:m}=c,S=X.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),{isVirtualized:M,layoutDelegate:H,dropTargetDelegate:k,CollectionRoot:$}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),I=t.useMemo(()=>e.keyboardDelegate||new X.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:b,collator:S,ref:d,disabledKeys:m,disabledBehavior:g,layout:u,orientation:p,direction:x,layoutDelegate:H}),[b,S,d,g,m,p,x,e.keyboardDelegate,u,H]),{listBoxProps:O}=$e({...e,shouldSelectOnPressUp:f||e.shouldSelectOnPressUp,keyboardDelegate:I,isVirtualized:M},s,d),N=t.useRef(f),U=t.useRef(P);t.useEffect(()=>{process.env.NODE_ENV!=="production"&&(N.current!==f&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),U.current!==P&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[f,P]);let C,F,w,L=!1,_=null,q=t.useRef(null);if(f&&a){C=a.useDraggableCollectionState({collection:b,selectionManager:c,preview:a.renderDragPreview?q:void 0}),a.useDraggableCollection({},C,d);let K=a.DragPreview;_=a.renderDragPreview?t.createElement(K,{ref:q},a.renderDragPreview):null}if(P&&a){F=a.useDroppableCollectionState({collection:b,selectionManager:c});let K=a.dropTargetDelegate||k||new a.ListDropTargetDelegate(b,d,{orientation:p,layout:u,direction:x});w=a.useDroppableCollection({keyboardDelegate:I,dropTargetDelegate:K},F,d),L=F.isDropTarget({type:"root"})}let{focusProps:E,isFocused:j,isFocusVisible:G}=ce.$f7dceffc5ad7768b$export$4e328f61c538687f(),R=s.collection.size===0||s.collection.size===1&&((i=s.collection.getItem(s.collection.getFirstKey()))===null||i===void 0?void 0:i.type)==="loader",J={isDropTarget:L,isEmpty:R,isFocused:j,isFocusVisible:G,layout:e.layout||"stack",state:s},te=v.$64fa3d84918910a7$export$4d86445c2cf5e3({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:J}),Q=null;return R&&e.renderEmptyState&&(Q=t.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(J))),t.createElement(ue.$9bf71ea28793e738$export$20e40289641fbbb6,null,t.createElement("div",{...T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),...h.$3ef42575df84b30b$export$9d1611c77c2fe928(O,E,w==null?void 0:w.collectionProps),...te,ref:d,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":L||void 0,"data-empty":R||void 0,"data-focused":j||void 0,"data-focus-visible":G||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},t.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[W,e],[V,s],[y.$612b8eb6cb90e02d$export$d188a835a7bc5783,{dragAndDropHooks:a,dragState:C,dropState:F}],[A.$431f98aba6844401$export$6615d83f6de245ce,{elementType:"div"}],[y.$612b8eb6cb90e02d$export$f55761759794cf55,{render:Pe}],[D.$7135fc7d473fd974$export$d40e14dec8b060a8,{name:"ListBoxSection",render:oe}]]},t.createElement($,{collection:b,scrollRef:d,persistedKeys:y.$612b8eb6cb90e02d$export$d1e8e3fbb7461f6(c,a,F),renderDropIndicator:y.$612b8eb6cb90e02d$export$971707d8a129a1f7(a,F)})),Q,_))}function oe(o,e,d,i="react-aria-ListBoxSection"){let l=t.useContext(V),{dragAndDropHooks:n,dropState:r}=t.useContext(y.$612b8eb6cb90e02d$export$d188a835a7bc5783),{CollectionBranch:a}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),[u,p]=v.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8();var s;let{headingProps:b,groupProps:c}=pe({heading:p,"aria-label":(s=o["aria-label"])!==null&&s!==void 0?s:void 0}),f=v.$64fa3d84918910a7$export$4d86445c2cf5e3({defaultClassName:i,className:o.className,style:o.style,values:{}});return t.createElement("section",{...T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(o),...c,...f,ref:e},t.createElement(A.$72a5793c14baf454$export$e0e4026c12a8bdbb.Provider,{value:{...b,ref:u}},t.createElement(a,{collection:l.collection,parent:d,renderDropIndicator:y.$612b8eb6cb90e02d$export$971707d8a129a1f7(n,r)})))}const xe=D.$e1995378a142960e$export$e953bb1cd0f19726("section",oe),he=D.$e1995378a142960e$export$18af5c7a9e9b3664("item",function(e,d,i){let l=v.$df56164dff5785e2$export$4338b53315abf666(d),n=t.useContext(V),{dragAndDropHooks:r,dragState:a,dropState:u}=t.useContext(y.$612b8eb6cb90e02d$export$d188a835a7bc5783),{optionProps:p,labelProps:s,descriptionProps:b,...c}=be({key:i.key,"aria-label":e==null?void 0:e["aria-label"]},n,l),{hoverProps:f,isHovered:P}=B.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!c.allowsSelection&&!c.hasAction,onHoverStart:i.props.onHoverStart,onHoverChange:i.props.onHoverChange,onHoverEnd:i.props.onHoverEnd}),x=null;a&&r&&(x=r.useDraggableItem({key:i.key},a));let g=null;u&&r&&(g=r.useDroppableItem({target:{type:"item",key:i.key,dropPosition:"on"}},u,l));let m=a&&a.isDragging(i.key),S=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...c,isHovered:P,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:g==null?void 0:g.isDropTarget}});t.useEffect(()=>{!i.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[i.textValue]);let M=e.href?"a":"div";return t.createElement(M,{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(p,f,x==null?void 0:x.dragProps,g==null?void 0:g.dropProps),...S,ref:l,"data-allows-dragging":!!a||void 0,"data-selected":c.isSelected||void 0,"data-disabled":c.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":c.isFocused||void 0,"data-focus-visible":c.isFocusVisible||void 0,"data-pressed":c.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(g==null?void 0:g.isDropTarget)||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},t.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[re.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{[v.$64fa3d84918910a7$export$c62b8e45d58ddad9]:s,label:s,description:b}}]]},S.children))});function Pe(o,e){e=v.$df56164dff5785e2$export$4338b53315abf666(e);let{dragAndDropHooks:d,dropState:i}=t.useContext(y.$612b8eb6cb90e02d$export$d188a835a7bc5783),{dropIndicatorProps:l,isHidden:n,isDropTarget:r}=d.useDropIndicator(o,i,e);return n?null:t.createElement(me,{...o,dropIndicatorProps:l,isDropTarget:r,ref:e})}function De(o,e){let{dropIndicatorProps:d,isDropTarget:i,...l}=o,n=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...l,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:i}});return t.createElement("div",{...d,...n,role:"option",ref:e,"data-drop-target":i||void 0})}const me=t.forwardRef(De);D.$e1995378a142960e$export$18af5c7a9e9b3664("loader",function(e,d,i){let l=t.useContext(V),{isVirtualized:n}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),{isLoading:r,onLoadMore:a,scrollOffset:u,...p}=e,s=t.useRef(null),b=t.useMemo(()=>({onLoadMore:a,collection:l==null?void 0:l.collection,sentinelRef:s,scrollOffset:u}),[a,u,l==null?void 0:l.collection]);y.$a5fa973c1850dd36$export$90a12e6abf95cbe0(b,s);let c=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...p,id:void 0,children:i.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),f={tabIndex:-1};return n&&(f["aria-posinset"]=i.index+1,f["aria-setsize"]=l.collection.size),t.createElement(t.Fragment,null,t.createElement("div",{style:{position:"relative",width:0,height:0},inert:ae.$cdc5a6778b766db2$export$a9d04c5684123369(!0)},t.createElement("div",{"data-testid":"loadMoreSentinel",ref:s,style:{position:"absolute",height:1,width:1}})),r&&c.children&&t.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),f),...c,role:"option",ref:d},c.children))});exports.$b1f0cad8af73213b$export$3585ede4d035bf14=z;exports.$b1f0cad8af73213b$export$9145995848b05025=Z;exports.$eed445e0843c11d0$export$41f133550aa26f48=ge;exports.$eed445e0843c11d0$export$7c5906fe4f1f2af2=V;exports.$eed445e0843c11d0$export$7ff8f37d2d81a48d=W;exports.$eed445e0843c11d0$export$a11e76429ed99b4=he;exports.$eed445e0843c11d0$export$dca12b0bb56e4fc=xe;
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { $ as ee, a as fe, b as pe, c as $e, d as z, e as be } from "./Collection
|
|
2
|
-
import {
|
|
3
|
-
import { $ as N, a as
|
|
4
|
-
import { $ as
|
|
5
|
-
import {
|
|
1
|
+
import { $ as ee, a as fe, b as pe, c as $e, d as z, e as be } from "./Collection--62xKPm9.js";
|
|
2
|
+
import { $ as ve, f as q, a as H, e as oe, g as ge, h as me, c as he } from "./utils-DJhAJHk_.js";
|
|
3
|
+
import { $ as N, a as xe, b as te, c as Pe, d as De } from "./DragAndDrop-DkSTL28C.js";
|
|
4
|
+
import { $ as ye, a as Se, b as ke, c as Ee, d as Fe } from "./Separator-Dn5LYN5I.js";
|
|
5
|
+
import { a as Me } from "./Text-92cPh38G.js";
|
|
6
|
+
import { c as ae, a as M, b as Y, e as we } from "./mergeProps-C1U1OIeJ.js";
|
|
6
7
|
import { $ as L } from "./filterDOMProps-D6KHYVBX.js";
|
|
7
8
|
import { $ as Be } from "./inertValue-B7loUihk.js";
|
|
8
|
-
import s, { forwardRef as re, createContext as
|
|
9
|
-
import { c as Ie } from "./usePress-
|
|
10
|
-
import {
|
|
11
|
-
import { d as Le } from "./SelectionManager-
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
14
|
-
import { a as
|
|
15
|
-
import { $ as
|
|
16
|
-
import { $ as
|
|
17
|
-
import {
|
|
18
|
-
|
|
9
|
+
import s, { forwardRef as re, createContext as ie, useContext as m, useEffect as le, useMemo as C, useRef as O } from "react";
|
|
10
|
+
import { c as Ie } from "./usePress-DuR4pVsE.js";
|
|
11
|
+
import { h as Ve, i as He, $ as de, a as Z } from "./useHover-DQvJ3Y-W.js";
|
|
12
|
+
import { d as Le } from "./SelectionManager-zsWy3vsd.js";
|
|
13
|
+
import { $ as _e } from "./useFocusWithin-T1ifEM_s.js";
|
|
14
|
+
import { a as Ae } from "./Button-CFYdzG0H.js";
|
|
15
|
+
import { a as Te, $ as Ce } from "./useListState-CebsX_1d.js";
|
|
16
|
+
import { $ as Oe } from "./context-CGNJ3grH.js";
|
|
17
|
+
import { $ as ze, a as Ne } from "./ListKeyboardDelegate-CY6t6y1t.js";
|
|
18
|
+
import { $ as Ue } from "./useFocusRing-DOfBqnUN.js";
|
|
19
|
+
import { a as Ke } from "./FocusScope-D_hwN_TJ.js";
|
|
20
|
+
const j = /* @__PURE__ */ new WeakMap();
|
|
19
21
|
function Re(o) {
|
|
20
22
|
return typeof o == "string" ? o.replace(/\s*/g, "") : "" + o;
|
|
21
23
|
}
|
|
22
24
|
function We(o, e) {
|
|
23
|
-
let r =
|
|
25
|
+
let r = j.get(o);
|
|
24
26
|
if (!r) throw new Error("Unknown list");
|
|
25
27
|
return `${r.id}-option-${Re(e)}`;
|
|
26
28
|
}
|
|
27
|
-
function
|
|
28
|
-
let
|
|
29
|
+
function qe(o, e, r) {
|
|
30
|
+
let i = L(o, {
|
|
29
31
|
labelable: !0
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
let { listProps: t } =
|
|
32
|
+
}), l = o.selectionBehavior || "toggle", d = o.linkBehavior || (l === "replace" ? "action" : "override");
|
|
33
|
+
l === "toggle" && d === "action" && (d = "override");
|
|
34
|
+
let { listProps: t } = ye({
|
|
33
35
|
...o,
|
|
34
36
|
ref: r,
|
|
35
37
|
selectionManager: e.selectionManager,
|
|
@@ -40,8 +42,8 @@ function je(o, e, r) {
|
|
|
40
42
|
onFocusWithin: o.onFocus,
|
|
41
43
|
onBlurWithin: o.onBlur,
|
|
42
44
|
onFocusWithinChange: o.onFocusChange
|
|
43
|
-
}), u =
|
|
44
|
-
|
|
45
|
+
}), u = ae(o.id);
|
|
46
|
+
j.set(e, {
|
|
45
47
|
id: u,
|
|
46
48
|
shouldUseVirtualFocus: o.shouldUseVirtualFocus,
|
|
47
49
|
shouldSelectOnPressUp: o.shouldSelectOnPressUp,
|
|
@@ -50,7 +52,7 @@ function je(o, e, r) {
|
|
|
50
52
|
onAction: o.onAction,
|
|
51
53
|
linkBehavior: d
|
|
52
54
|
});
|
|
53
|
-
let { labelProps: b, fieldProps: n } =
|
|
55
|
+
let { labelProps: b, fieldProps: n } = Ae({
|
|
54
56
|
...o,
|
|
55
57
|
id: u,
|
|
56
58
|
// listbox is not an HTML input element so it
|
|
@@ -59,7 +61,7 @@ function je(o, e, r) {
|
|
|
59
61
|
});
|
|
60
62
|
return {
|
|
61
63
|
labelProps: b,
|
|
62
|
-
listBoxProps: M(
|
|
64
|
+
listBoxProps: M(i, a, e.selectionManager.selectionMode === "multiple" ? {
|
|
63
65
|
"aria-multiselectable": "true"
|
|
64
66
|
} : {}, {
|
|
65
67
|
role: "listbox",
|
|
@@ -67,9 +69,9 @@ function je(o, e, r) {
|
|
|
67
69
|
})
|
|
68
70
|
};
|
|
69
71
|
}
|
|
70
|
-
function
|
|
71
|
-
var
|
|
72
|
-
let { key: d } = o, t =
|
|
72
|
+
function je(o, e, r) {
|
|
73
|
+
var i, l;
|
|
74
|
+
let { key: d } = o, t = j.get(e);
|
|
73
75
|
var a;
|
|
74
76
|
let u = (a = o.isDisabled) !== null && a !== void 0 ? a : e.selectionManager.isDisabled(d);
|
|
75
77
|
var b;
|
|
@@ -90,7 +92,7 @@ function qe(o, e, r) {
|
|
|
90
92
|
let p = e.collection.getItem(d);
|
|
91
93
|
if (P) {
|
|
92
94
|
let S = Number(p == null ? void 0 : p.index);
|
|
93
|
-
D["aria-posinset"] = Number.isNaN(S) ? void 0 : S + 1, D["aria-setsize"] =
|
|
95
|
+
D["aria-posinset"] = Number.isNaN(S) ? void 0 : S + 1, D["aria-setsize"] = Se(e.collection);
|
|
94
96
|
}
|
|
95
97
|
let B = t != null && t.onAction ? () => {
|
|
96
98
|
var S;
|
|
@@ -104,7 +106,7 @@ function qe(o, e, r) {
|
|
|
104
106
|
isVirtualized: P,
|
|
105
107
|
shouldUseVirtualFocus: v,
|
|
106
108
|
isDisabled: u,
|
|
107
|
-
onAction: B || !(p == null || (
|
|
109
|
+
onAction: B || !(p == null || (i = p.props) === null || i === void 0) && i.onAction ? we(p == null || (l = p.props) === null || l === void 0 ? void 0 : l.onAction, B) : void 0,
|
|
108
110
|
linkBehavior: t == null ? void 0 : t.linkBehavior,
|
|
109
111
|
id: A
|
|
110
112
|
}), { hoverProps: I } = de({
|
|
@@ -137,7 +139,7 @@ function qe(o, e, r) {
|
|
|
137
139
|
};
|
|
138
140
|
}
|
|
139
141
|
function Ge(o) {
|
|
140
|
-
let { heading: e, "aria-label": r } = o,
|
|
142
|
+
let { heading: e, "aria-label": r } = o, i = ae();
|
|
141
143
|
return {
|
|
142
144
|
itemProps: {
|
|
143
145
|
role: "presentation"
|
|
@@ -146,29 +148,29 @@ function Ge(o) {
|
|
|
146
148
|
// Techincally, listbox cannot contain headings according to ARIA.
|
|
147
149
|
// We hide the heading from assistive technology, using role="presentation",
|
|
148
150
|
// and only use it as a visual label for the nested group.
|
|
149
|
-
id:
|
|
151
|
+
id: i,
|
|
150
152
|
role: "presentation"
|
|
151
153
|
} : {},
|
|
152
154
|
groupProps: {
|
|
153
155
|
role: "group",
|
|
154
156
|
"aria-label": r,
|
|
155
|
-
"aria-labelledby": e ?
|
|
157
|
+
"aria-labelledby": e ? i : void 0
|
|
156
158
|
}
|
|
157
159
|
};
|
|
158
160
|
}
|
|
159
|
-
const ne = /* @__PURE__ */
|
|
160
|
-
[e, r] =
|
|
161
|
-
let
|
|
162
|
-
return
|
|
163
|
-
state:
|
|
161
|
+
const ne = /* @__PURE__ */ ie(null), _ = /* @__PURE__ */ ie(null), ho = /* @__PURE__ */ re(function(e, r) {
|
|
162
|
+
[e, r] = ve(e, r, ne);
|
|
163
|
+
let i = m(_);
|
|
164
|
+
return i ? /* @__PURE__ */ s.createElement(se, {
|
|
165
|
+
state: i,
|
|
164
166
|
props: e,
|
|
165
167
|
listBoxRef: r
|
|
166
168
|
}) : /* @__PURE__ */ s.createElement(pe, {
|
|
167
169
|
content: /* @__PURE__ */ s.createElement($e, e)
|
|
168
|
-
}, (
|
|
170
|
+
}, (l) => /* @__PURE__ */ s.createElement(Je, {
|
|
169
171
|
props: e,
|
|
170
172
|
listBoxRef: r,
|
|
171
|
-
collection:
|
|
173
|
+
collection: l
|
|
172
174
|
}));
|
|
173
175
|
});
|
|
174
176
|
function Je({ props: o, listBoxRef: e, collection: r }) {
|
|
@@ -178,19 +180,19 @@ function Je({ props: o, listBoxRef: e, collection: r }) {
|
|
|
178
180
|
children: null,
|
|
179
181
|
items: null
|
|
180
182
|
};
|
|
181
|
-
let { layoutDelegate:
|
|
183
|
+
let { layoutDelegate: i } = m(z), l = Ce({
|
|
182
184
|
...o,
|
|
183
|
-
layoutDelegate:
|
|
185
|
+
layoutDelegate: i
|
|
184
186
|
});
|
|
185
187
|
return /* @__PURE__ */ s.createElement(se, {
|
|
186
|
-
state:
|
|
188
|
+
state: l,
|
|
187
189
|
props: o,
|
|
188
190
|
listBoxRef: e
|
|
189
191
|
});
|
|
190
192
|
}
|
|
191
193
|
function se({ state: o, props: e, listBoxRef: r }) {
|
|
192
|
-
var
|
|
193
|
-
let { filter:
|
|
194
|
+
var i;
|
|
195
|
+
let { filter: l, collectionProps: d, collectionRef: t } = m(ke) || {};
|
|
194
196
|
e = C(() => d ? {
|
|
195
197
|
...e,
|
|
196
198
|
...d
|
|
@@ -199,14 +201,14 @@ function se({ state: o, props: e, listBoxRef: r }) {
|
|
|
199
201
|
d
|
|
200
202
|
]);
|
|
201
203
|
let { dragAndDropHooks: a, layout: u = "stack", orientation: b = "vertical" } = e;
|
|
202
|
-
r =
|
|
204
|
+
r = q(C(() => me(r, t !== void 0 ? t : null), [
|
|
203
205
|
t,
|
|
204
206
|
r
|
|
205
207
|
]));
|
|
206
|
-
let n =
|
|
208
|
+
let n = Te(o, l), { collection: $, selectionManager: c } = n, f = !!(a != null && a.useDraggableCollectionState), h = !!(a != null && a.useDroppableCollectionState), { direction: g } = Oe(), { disabledBehavior: v, disabledKeys: x } = c, P = ze({
|
|
207
209
|
usage: "search",
|
|
208
210
|
sensitivity: "base"
|
|
209
|
-
}), { isVirtualized: k, layoutDelegate: w, dropTargetDelegate: D, CollectionRoot: p } = m(z), B = C(() => e.keyboardDelegate || new
|
|
211
|
+
}), { isVirtualized: k, layoutDelegate: w, dropTargetDelegate: D, CollectionRoot: p } = m(z), B = C(() => e.keyboardDelegate || new Ne({
|
|
210
212
|
collection: $,
|
|
211
213
|
collator: P,
|
|
212
214
|
ref: r,
|
|
@@ -227,13 +229,13 @@ function se({ state: o, props: e, listBoxRef: r }) {
|
|
|
227
229
|
e.keyboardDelegate,
|
|
228
230
|
u,
|
|
229
231
|
w
|
|
230
|
-
]), { listBoxProps: A } =
|
|
232
|
+
]), { listBoxProps: A } = qe({
|
|
231
233
|
...e,
|
|
232
234
|
shouldSelectOnPressUp: f || e.shouldSelectOnPressUp,
|
|
233
235
|
keyboardDelegate: B,
|
|
234
236
|
isVirtualized: k
|
|
235
237
|
}, n, r), U = O(f), K = O(h);
|
|
236
|
-
|
|
238
|
+
le(() => {
|
|
237
239
|
process.env.NODE_ENV !== "production" && (U.current !== f && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), K.current !== h && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
238
240
|
}, [
|
|
239
241
|
f,
|
|
@@ -268,7 +270,7 @@ function se({ state: o, props: e, listBoxRef: r }) {
|
|
|
268
270
|
type: "root"
|
|
269
271
|
});
|
|
270
272
|
}
|
|
271
|
-
let { focusProps: S, isFocused: G, isFocusVisible: J } =
|
|
273
|
+
let { focusProps: S, isFocused: G, isFocusVisible: J } = Ue(), R = n.collection.size === 0 || n.collection.size === 1 && ((i = n.collection.getItem(n.collection.getFirstKey())) === null || i === void 0 ? void 0 : i.type) === "loader", Q = {
|
|
272
274
|
isDropTarget: I,
|
|
273
275
|
isEmpty: R,
|
|
274
276
|
isFocused: G,
|
|
@@ -300,7 +302,7 @@ function se({ state: o, props: e, listBoxRef: r }) {
|
|
|
300
302
|
"data-focus-visible": J || void 0,
|
|
301
303
|
"data-layout": e.layout || "stack",
|
|
302
304
|
"data-orientation": e.orientation || "vertical"
|
|
303
|
-
}, /* @__PURE__ */ s.createElement(
|
|
305
|
+
}, /* @__PURE__ */ s.createElement(oe, {
|
|
304
306
|
values: [
|
|
305
307
|
[
|
|
306
308
|
ne,
|
|
@@ -319,13 +321,13 @@ function se({ state: o, props: e, listBoxRef: r }) {
|
|
|
319
321
|
}
|
|
320
322
|
],
|
|
321
323
|
[
|
|
322
|
-
|
|
324
|
+
Ee,
|
|
323
325
|
{
|
|
324
326
|
elementType: "div"
|
|
325
327
|
}
|
|
326
328
|
],
|
|
327
329
|
[
|
|
328
|
-
|
|
330
|
+
xe,
|
|
329
331
|
{
|
|
330
332
|
render: Qe
|
|
331
333
|
}
|
|
@@ -341,18 +343,18 @@ function se({ state: o, props: e, listBoxRef: r }) {
|
|
|
341
343
|
}, /* @__PURE__ */ s.createElement(p, {
|
|
342
344
|
collection: $,
|
|
343
345
|
scrollRef: r,
|
|
344
|
-
persistedKeys:
|
|
345
|
-
renderDropIndicator:
|
|
346
|
+
persistedKeys: Pe(c, a, y),
|
|
347
|
+
renderDropIndicator: te(a, y)
|
|
346
348
|
})), X, V));
|
|
347
349
|
}
|
|
348
|
-
function ce(o, e, r,
|
|
349
|
-
let
|
|
350
|
+
function ce(o, e, r, i = "react-aria-ListBoxSection") {
|
|
351
|
+
let l = m(_), { dragAndDropHooks: d, dropState: t } = m(N), { CollectionBranch: a } = m(z), [u, b] = he();
|
|
350
352
|
var n;
|
|
351
353
|
let { headingProps: $, groupProps: c } = Ge({
|
|
352
354
|
heading: b,
|
|
353
355
|
"aria-label": (n = o["aria-label"]) !== null && n !== void 0 ? n : void 0
|
|
354
356
|
}), f = H({
|
|
355
|
-
defaultClassName:
|
|
357
|
+
defaultClassName: i,
|
|
356
358
|
className: o.className,
|
|
357
359
|
style: o.style,
|
|
358
360
|
values: {}
|
|
@@ -362,39 +364,39 @@ function ce(o, e, r, l = "react-aria-ListBoxSection") {
|
|
|
362
364
|
...c,
|
|
363
365
|
...f,
|
|
364
366
|
ref: e
|
|
365
|
-
}, /* @__PURE__ */ s.createElement(
|
|
367
|
+
}, /* @__PURE__ */ s.createElement(Fe.Provider, {
|
|
366
368
|
value: {
|
|
367
369
|
...$,
|
|
368
370
|
ref: u
|
|
369
371
|
}
|
|
370
372
|
}, /* @__PURE__ */ s.createElement(a, {
|
|
371
|
-
collection:
|
|
373
|
+
collection: l.collection,
|
|
372
374
|
parent: r,
|
|
373
|
-
renderDropIndicator:
|
|
375
|
+
renderDropIndicator: te(d, t)
|
|
374
376
|
})));
|
|
375
377
|
}
|
|
376
|
-
const
|
|
377
|
-
let
|
|
378
|
-
key:
|
|
378
|
+
const xo = /* @__PURE__ */ fe("section", ce), Po = /* @__PURE__ */ ee("item", function(e, r, i) {
|
|
379
|
+
let l = q(r), d = m(_), { dragAndDropHooks: t, dragState: a, dropState: u } = m(N), { optionProps: b, labelProps: n, descriptionProps: $, ...c } = je({
|
|
380
|
+
key: i.key,
|
|
379
381
|
"aria-label": e == null ? void 0 : e["aria-label"]
|
|
380
|
-
}, d,
|
|
382
|
+
}, d, l), { hoverProps: f, isHovered: h } = de({
|
|
381
383
|
isDisabled: !c.allowsSelection && !c.hasAction,
|
|
382
|
-
onHoverStart:
|
|
383
|
-
onHoverChange:
|
|
384
|
-
onHoverEnd:
|
|
384
|
+
onHoverStart: i.props.onHoverStart,
|
|
385
|
+
onHoverChange: i.props.onHoverChange,
|
|
386
|
+
onHoverEnd: i.props.onHoverEnd
|
|
385
387
|
}), g = null;
|
|
386
388
|
a && t && (g = t.useDraggableItem({
|
|
387
|
-
key:
|
|
389
|
+
key: i.key
|
|
388
390
|
}, a));
|
|
389
391
|
let v = null;
|
|
390
392
|
u && t && (v = t.useDroppableItem({
|
|
391
393
|
target: {
|
|
392
394
|
type: "item",
|
|
393
|
-
key:
|
|
395
|
+
key: i.key,
|
|
394
396
|
dropPosition: "on"
|
|
395
397
|
}
|
|
396
|
-
}, u,
|
|
397
|
-
let x = a && a.isDragging(
|
|
398
|
+
}, u, l));
|
|
399
|
+
let x = a && a.isDragging(i.key), P = H({
|
|
398
400
|
...e,
|
|
399
401
|
id: void 0,
|
|
400
402
|
children: e.children,
|
|
@@ -409,16 +411,16 @@ const mo = /* @__PURE__ */ fe("section", ce), ho = /* @__PURE__ */ ee("item", fu
|
|
|
409
411
|
isDropTarget: v == null ? void 0 : v.isDropTarget
|
|
410
412
|
}
|
|
411
413
|
});
|
|
412
|
-
|
|
413
|
-
!
|
|
414
|
+
le(() => {
|
|
415
|
+
!i.textValue && process.env.NODE_ENV !== "production" && console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");
|
|
414
416
|
}, [
|
|
415
|
-
|
|
417
|
+
i.textValue
|
|
416
418
|
]);
|
|
417
419
|
let k = e.href ? "a" : "div";
|
|
418
420
|
return /* @__PURE__ */ s.createElement(k, {
|
|
419
421
|
...M(b, f, g == null ? void 0 : g.dragProps, v == null ? void 0 : v.dropProps),
|
|
420
422
|
...P,
|
|
421
|
-
ref:
|
|
423
|
+
ref: l,
|
|
422
424
|
"data-allows-dragging": !!a || void 0,
|
|
423
425
|
"data-selected": c.isSelected || void 0,
|
|
424
426
|
"data-disabled": c.isDisabled || void 0,
|
|
@@ -429,13 +431,13 @@ const mo = /* @__PURE__ */ fe("section", ce), ho = /* @__PURE__ */ ee("item", fu
|
|
|
429
431
|
"data-dragging": x || void 0,
|
|
430
432
|
"data-drop-target": (v == null ? void 0 : v.isDropTarget) || void 0,
|
|
431
433
|
"data-selection-mode": d.selectionManager.selectionMode === "none" ? void 0 : d.selectionManager.selectionMode
|
|
432
|
-
}, /* @__PURE__ */ s.createElement(
|
|
434
|
+
}, /* @__PURE__ */ s.createElement(oe, {
|
|
433
435
|
values: [
|
|
434
436
|
[
|
|
435
|
-
|
|
437
|
+
Me,
|
|
436
438
|
{
|
|
437
439
|
slots: {
|
|
438
|
-
[
|
|
440
|
+
[ge]: n,
|
|
439
441
|
label: n,
|
|
440
442
|
description: $
|
|
441
443
|
}
|
|
@@ -445,21 +447,21 @@ const mo = /* @__PURE__ */ fe("section", ce), ho = /* @__PURE__ */ ee("item", fu
|
|
|
445
447
|
}, P.children));
|
|
446
448
|
});
|
|
447
449
|
function Qe(o, e) {
|
|
448
|
-
e =
|
|
449
|
-
let { dragAndDropHooks: r, dropState:
|
|
450
|
+
e = q(e);
|
|
451
|
+
let { dragAndDropHooks: r, dropState: i } = m(N), { dropIndicatorProps: l, isHidden: d, isDropTarget: t } = r.useDropIndicator(o, i, e);
|
|
450
452
|
return d ? null : /* @__PURE__ */ s.createElement(Ye, {
|
|
451
453
|
...o,
|
|
452
|
-
dropIndicatorProps:
|
|
454
|
+
dropIndicatorProps: l,
|
|
453
455
|
isDropTarget: t,
|
|
454
456
|
ref: e
|
|
455
457
|
});
|
|
456
458
|
}
|
|
457
459
|
function Xe(o, e) {
|
|
458
|
-
let { dropIndicatorProps: r, isDropTarget:
|
|
459
|
-
...
|
|
460
|
+
let { dropIndicatorProps: r, isDropTarget: i, ...l } = o, d = H({
|
|
461
|
+
...l,
|
|
460
462
|
defaultClassName: "react-aria-DropIndicator",
|
|
461
463
|
values: {
|
|
462
|
-
isDropTarget:
|
|
464
|
+
isDropTarget: i
|
|
463
465
|
}
|
|
464
466
|
});
|
|
465
467
|
return /* @__PURE__ */ s.createElement("div", {
|
|
@@ -468,33 +470,33 @@ function Xe(o, e) {
|
|
|
468
470
|
// eslint-disable-next-line
|
|
469
471
|
role: "option",
|
|
470
472
|
ref: e,
|
|
471
|
-
"data-drop-target":
|
|
473
|
+
"data-drop-target": i || void 0
|
|
472
474
|
});
|
|
473
475
|
}
|
|
474
476
|
const Ye = /* @__PURE__ */ re(Xe);
|
|
475
|
-
ee("loader", function(e, r,
|
|
476
|
-
let
|
|
477
|
+
ee("loader", function(e, r, i) {
|
|
478
|
+
let l = m(_), { isVirtualized: d } = m(z), { isLoading: t, onLoadMore: a, scrollOffset: u, ...b } = e, n = O(null), $ = C(() => ({
|
|
477
479
|
onLoadMore: a,
|
|
478
|
-
collection:
|
|
480
|
+
collection: l == null ? void 0 : l.collection,
|
|
479
481
|
sentinelRef: n,
|
|
480
482
|
scrollOffset: u
|
|
481
483
|
}), [
|
|
482
484
|
a,
|
|
483
485
|
u,
|
|
484
|
-
|
|
486
|
+
l == null ? void 0 : l.collection
|
|
485
487
|
]);
|
|
486
|
-
|
|
488
|
+
De($, n);
|
|
487
489
|
let c = H({
|
|
488
490
|
...b,
|
|
489
491
|
id: void 0,
|
|
490
|
-
children:
|
|
492
|
+
children: i.rendered,
|
|
491
493
|
defaultClassName: "react-aria-ListBoxLoadingIndicator",
|
|
492
494
|
values: null
|
|
493
495
|
}), f = {
|
|
494
496
|
// For Android talkback
|
|
495
497
|
tabIndex: -1
|
|
496
498
|
};
|
|
497
|
-
return d && (f["aria-posinset"] =
|
|
499
|
+
return d && (f["aria-posinset"] = i.index + 1, f["aria-setsize"] = l.collection.size), /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
|
|
498
500
|
style: {
|
|
499
501
|
position: "relative",
|
|
500
502
|
width: 0,
|
|
@@ -519,10 +521,10 @@ ee("loader", function(e, r, l) {
|
|
|
519
521
|
}, c.children));
|
|
520
522
|
});
|
|
521
523
|
export {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
524
|
+
ho as $,
|
|
525
|
+
Po as a,
|
|
526
|
+
xo as b,
|
|
527
|
+
j as c,
|
|
526
528
|
We as d,
|
|
527
529
|
ne as e,
|
|
528
530
|
_ as f
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as i } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import { s as t } from "./ListBoxSection-
|
|
3
|
+
import { s as t } from "./ListBoxSection-BVR2xtOH.js";
|
|
4
4
|
const l = ({ className: o, children: s, ...m }) => /* @__PURE__ */ r(
|
|
5
5
|
"button",
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),n=require("./clsx-C11secjj.cjs"),t=require("./ListBoxSection-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),n=require("./clsx-C11secjj.cjs"),t=require("./ListBoxSection-CfQZoURJ.cjs"),u=({className:s,children:o,...e})=>i.jsx("button",{type:"button",className:n.clsx(t.styles.listBoxItem,t.styles.listBoxButton,s),...e,children:o});exports.ListBoxButton=u;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as _, jsxs as le } from "react/jsx-runtime";
|
|
2
|
-
import { $ as oe, a as ne, b as se } from "./ListBox-
|
|
3
|
-
import { d as re, h as ae } from "./Collection
|
|
2
|
+
import { $ as oe, a as ne, b as se } from "./ListBox-C-isJIHL.js";
|
|
3
|
+
import { d as re, h as ae } from "./Collection--62xKPm9.js";
|
|
4
4
|
import w, { useState as S, useRef as C, useMemo as k, useCallback as L, useEffect as he, createContext as X, useContext as A } from "react";
|
|
5
|
-
import { $ as E,
|
|
6
|
-
import { $ as F } from "./context-
|
|
5
|
+
import { $ as E, d as de } from "./mergeProps-C1U1OIeJ.js";
|
|
6
|
+
import { $ as F } from "./context-CGNJ3grH.js";
|
|
7
7
|
import { flushSync as P } from "react-dom";
|
|
8
|
-
import { g as ce } from "./OverlayArrow-
|
|
9
|
-
import { $ as ue } from "./useEvent-
|
|
8
|
+
import { g as ce } from "./OverlayArrow-CfhSYL46.js";
|
|
9
|
+
import { $ as ue } from "./useEvent-CigwyJOw.js";
|
|
10
10
|
import { c as K } from "./clsx-OuTLNxxd.js";
|
|
11
|
-
import { f as Y } from "./SelectionManager-
|
|
12
|
-
import { a as fe } from "./Dialog-
|
|
13
|
-
import { e as ge } from "./Separator-
|
|
11
|
+
import { f as Y } from "./SelectionManager-zsWy3vsd.js";
|
|
12
|
+
import { a as fe } from "./Dialog-CtVrVuMr.js";
|
|
13
|
+
import { e as ge } from "./Separator-Dn5LYN5I.js";
|
|
14
14
|
import './assets/ListBoxSection.css';class ye {
|
|
15
15
|
/**
|
|
16
16
|
* Returns whether the layout should invalidate in response to
|