@midas-ds/components 14.0.0 → 15.0.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-DTbu3lqx.js +343 -0
- package/AccordionItem-tWS22wDv.cjs +1 -0
- package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
- package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
- package/Button-1sEX8jKn.cjs +1 -0
- package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
- package/{Button-B6lxIKPk.js → Button-BbfVT9Yl.js} +122 -116
- package/{Button-CRIYvCRM.js → Button-DdXFHfXw.js} +1 -1
- package/CHANGELOG.md +49 -0
- package/{Card-CfosvMF5.js → Card-CdqGFff2.js} +3 -3
- package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
- package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
- package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
- package/Checkbox-BgrLxY6P.cjs +1 -0
- package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
- package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-CtJJqk_q.js} +7 -7
- package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-thvsvOqD.cjs} +1 -1
- package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
- package/Collection-vGO6v3_U.cjs +1 -0
- package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-Ckna0otR.cjs} +1 -1
- package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-aF2UxI20.js} +2 -2
- package/{ComboBox-D7eKe-M5.js → ComboBox-BDX4BYWJ.js} +244 -229
- package/ComboBox-DFPrJUoV.cjs +1 -0
- package/{DateField-BszKZodr.cjs → DateField-B92Cqf9K.cjs} +1 -1
- package/{DateField-xyhyDy7u.js → DateField-BPRWrVcu.js} +4 -4
- package/DateInputDivider-CCrXjsUB.cjs +1 -0
- package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-DOHpVaNE.js} +191 -188
- package/DateRangePicker-COSTCOt8.cjs +6 -0
- package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-Cmt9NC35.js} +119 -115
- package/Dialog-CPuJA2fm.js +256 -0
- package/{Dialog-DOyFzvUa.js → Dialog-D4Py85wi.js} +712 -694
- package/Dialog-DtOf0vWx.cjs +1 -0
- package/Dialog-DycTLpdr.cjs +6 -0
- package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
- package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
- package/{Dropdown-uC9wc8vd.js → Dropdown-B4lwe0Hn.js} +2 -2
- package/{Dropdown-5rmvcHD_.cjs → Dropdown-_g9l5k07.cjs} +1 -1
- package/{FieldError-C4kD4yJZ.js → FieldError-CIxlNQCM.js} +13 -13
- package/{FieldError-C4WBoCRc.cjs → FieldError-JWxR_EqN.cjs} +1 -1
- package/{FileUpload-CTbh7Gic.cjs → FileUpload-C0TjNkuh.cjs} +2 -2
- package/{FileUpload-01wGpykv.js → FileUpload-DLBP3VPp.js} +260 -534
- package/Group-B0Wj9pI8.cjs +1 -0
- package/Group-BAd7alBM.js +46 -0
- package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
- package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
- package/{InfoBanner-CRSz8DK2.js → InfoBanner-D7Ta-7PI.js} +1 -1
- package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
- package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
- package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
- package/{Label-CkIRTC0_.cjs → Label-DpY2SZdQ.cjs} +1 -1
- package/{Label-CV9p0K2n.js → Label-FfEnd4ai.js} +4 -4
- package/Layout-BrEuHajQ.cjs +16 -0
- package/{Layout-IeVrHpT0.js → Layout-Hd1e_MEA.js} +62 -63
- package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
- package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
- package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
- package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
- package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
- package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
- package/{ListBox-2eEa1l0M.js → ListBox-5GK4ZRj1.js} +189 -178
- package/ListBox-FD30iELk.cjs +1 -0
- package/{ListBoxSection-dksiACMZ.js → ListBox-LJ3VgZMr.js} +230 -266
- package/ListBox-u6ZXp5Yi.cjs +1 -0
- package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-B4GFbdYf.js} +3 -3
- package/ListBoxLoadMoreItem-DMUOzVtt.cjs +1 -0
- package/ListBoxSection-CBlpg0AG.cjs +1 -0
- package/ListBoxSection-DjGs1ndn.js +51 -0
- package/ListKeyboardDelegate-8zuIfwQ7.cjs +1 -0
- package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BBmpJ-2O.js} +36 -40
- package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
- package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
- package/Popover-CS8Yyfrq.js +39 -0
- package/Popover-DpB0XDBp.cjs +1 -0
- package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
- package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
- package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BZqAQTV3.cjs} +1 -1
- package/{ProgressBar-B0WEQkyq.js → ProgressBar-BpsvPCKk.js} +12 -12
- package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
- package/RSPContexts-XUvspq3j.cjs +1 -0
- package/Radio-B3FBTn4F.cjs +1 -0
- package/Radio-LevFYAg4.js +340 -0
- package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-CH0CyBui.cjs} +2 -2
- package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-DT_KVd80.js} +58 -58
- package/{SearchField-DnBBlPT7.cjs → SearchField-BX7P7BgV.cjs} +1 -1
- package/{SearchField-wojUSY2S.js → SearchField-C-TFzcJF.js} +3 -3
- package/Select-C-ykeY_T.js +773 -0
- package/Select-CiCng7ZP.js +678 -0
- package/Select-D4wi-0Jw.cjs +1 -0
- package/Select-JIDW2mN8.cjs +1 -0
- package/{FocusScope-8ILtcq9W.js → SelectionIndicator-C2E23-zO.js} +270 -174
- package/SelectionIndicator-ClG0GpJu.cjs +1 -0
- package/SelectionManager-CNJmHeCF.cjs +1 -0
- package/SelectionManager-DoNLJm8c.js +1063 -0
- package/{Separator-COlhRmJF.js → Separator-CQfDz_zr.js} +10 -10
- package/{Separator-DcbM84B8.cjs → Separator-CSyYDGNE.cjs} +1 -1
- package/{Separator-BQkxEZC9.cjs → Separator-DCi4bnBr.cjs} +1 -1
- package/{Separator--4b7vckr.js → Separator-DLr4kUJD.js} +2 -2
- package/Spinner-D6Fcu_Dp.js +54 -0
- package/Spinner-DIapnvIz.cjs +6 -0
- package/TabList-BBmBumm6.js +394 -0
- package/TabList-DVzXuGXA.cjs +1 -0
- package/Table-B1nxmW14.cjs +16 -0
- package/{Table-cCSOrPkK.js → Table-DxqKDp7N.js} +707 -703
- package/Tag-BL-_PONN.cjs +1 -0
- package/Tag-DX1X_NZE.js +774 -0
- package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
- package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
- package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
- package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
- package/{TextArea-B5TsyJxa.cjs → TextArea-Bjf8CBp0.cjs} +1 -1
- package/{TextArea-Cado2arG.js → TextArea-CJPBvogq.js} +8 -8
- package/TextField-DtD9-arA.cjs +1 -0
- package/{TextField-5AI6T1ol.js → TextField-DyR61bjZ.js} +10 -10
- package/{Toast-CgXRE33Y.js → Toast-B99bLWnh.js} +12 -12
- package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
- package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-CFRutAZ4.js} +82 -78
- package/ToggleButtonGroup-dnvnzkaD.cjs +1 -0
- package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
- package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
- package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
- package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/ListBox.css +1 -0
- package/assets/Popover.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Select2.css +1 -0
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/default.css +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +99 -95
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/intlStrings-Cd44R5hT.js +278 -0
- package/intlStrings-ClBuC6xN.cjs +1 -0
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/Select.d.ts +8 -0
- package/legacy-select/SelectTrigger.d.ts +10 -0
- package/legacy-select/index.cjs +1 -0
- package/legacy-select/index.d.ts +2 -0
- package/legacy-select/index.js +4 -0
- package/legacy-select/intl/translations.json.d.ts +17 -0
- package/{select → legacy-select}/types.d.ts +2 -2
- package/legacy-select/useMultiSelect.d.ts +5 -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/ListBox.d.ts +1 -2
- package/list-box/ListBoxHeader.d.ts +3 -0
- package/list-box/ListBoxItem.d.ts +9 -3
- package/list-box/ListBoxSection.d.ts +1 -1
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +9 -7
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +4 -4
- package/popover/Popover.d.ts +2 -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/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-BVI21Y4-.js +65 -0
- package/scrollIntoView-BueMOyGp.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +33 -4
- package/select/SelectAll.d.ts +1 -0
- package/select/SelectTags.d.ts +4 -0
- package/select/SelectTrigger.d.ts +4 -8
- package/select/SelectValueTag.d.ts +5 -0
- package/select/index.cjs +1 -1
- package/select/index.d.ts +1 -2
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +2 -2
- package/spinner/Spinner.d.ts +5 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tabs.d.ts +2 -9
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +0 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/TextArea.d.ts +3 -2
- package/textfield/TextField.d.ts +3 -2
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
- package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
- package/useDateFormatter-BrrFo4nY.cjs +1 -0
- package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
- package/{useField-sSWPm-He.js → useField-Bx76iuoW.js} +1 -1
- package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
- package/{useFilter-DHcouDzv.js → useFilter-Dn4vTT3G.js} +1 -1
- package/{useFilter-DlZLqsJD.cjs → useFilter-eOgdlVLd.cjs} +1 -1
- package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
- package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
- package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
- package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
- package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
- package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
- package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
- package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
- package/useHasTabbableChild-BJ_VejL5.cjs +1 -0
- package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-DpISgPsS.js} +1 -1
- package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
- package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-Zvo5KTxM.js} +2 -2
- package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
- package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
- package/{useListState-D2yPZrFZ.js → useListState-CP7AKhOX.js} +1 -1
- package/{useListState-BdC308Sq.cjs → useListState-DZFWpD-x.cjs} +1 -1
- package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
- package/usePress-DmU79HEg.cjs +7 -0
- package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-GSY0f4qW.js} +1 -1
- package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-JCvbhUVI.cjs} +1 -1
- package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
- package/{useTextField-DjxrmW7d.js → useTextField-I3QVGvyX.js} +4 -4
- package/utils/types.d.ts +5 -0
- package/utils-CtICjCYt.cjs +1 -0
- package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
- package/utils-DRIRjPUS.cjs +1 -0
- package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
- package/AccordionItem-BJw5IKe0.js +0 -334
- package/AccordionItem-DhMimhYo.cjs +0 -1
- package/Button-BTX5G3le.cjs +0 -1
- package/Checkbox-D-CFY6QF.cjs +0 -1
- package/Collection-DaZzboRu.cjs +0 -1
- package/ComboBox-C4NybZ32.cjs +0 -1
- package/DateInputDivider-BgXKFwB0.cjs +0 -1
- package/DateRangePicker-DTPkr3hX.cjs +0 -6
- package/Dialog-DLnopN3Z.js +0 -237
- package/Dialog-DNu42oLH.cjs +0 -1
- package/Dialog-w6EBWT__.cjs +0 -1
- package/FocusScope-Dv0F-mG2.cjs +0 -1
- package/Group-C2hEIsGV.js +0 -45
- package/Group-cuyk9Hsy.cjs +0 -1
- package/Layout-CVnlO10z.cjs +0 -16
- package/ListBox-Bx9M5vqb.cjs +0 -1
- package/ListBoxLoadMoreItem-BBE3OF4J.cjs +0 -1
- package/ListBoxSection-kujY2gUl.cjs +0 -1
- package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
- package/Popover-BI2Koco0.cjs +0 -1
- package/Popover-D7_IfJ3o.js +0 -38
- package/RSPContexts-D8hmBfGm.cjs +0 -1
- package/Radio-D6KNkSA2.js +0 -333
- package/Radio-DsVsutMH.cjs +0 -1
- package/Select-D9h_RQ2k.cjs +0 -1
- package/Select-Dc6y8gPR.js +0 -654
- package/SelectionManager-D-4ThfPZ.js +0 -1043
- package/SelectionManager-FYrDfe5v.cjs +0 -1
- package/Spinner-CTha503N.js +0 -47
- package/Spinner-DKQ9_SQB.cjs +0 -6
- package/TabList-BhC96APe.cjs +0 -1
- package/TabList-P5HnizZt.js +0 -393
- package/Table-BB8Ag5_3.cjs +0 -16
- package/Tag-D2vh0KRD.js +0 -765
- package/Tag-D32MGLjS.cjs +0 -1
- package/TextField-4xfAzdBI.cjs +0 -1
- package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
- package/assets/ListBoxSection.css +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/select/useMultiSelect.d.ts +0 -4
- package/useDateFormatter-D0bVjgIb.cjs +0 -1
- package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
- package/useObserveElement-BdI4zgd7.js +0 -27
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-Dj3t18Pf.cjs +0 -7
- package/utils-I-LGXGYH.cjs +0 -1
- package/utils-cBvgilDa.cjs +0 -1
- package/variables-B3KEYyhW.cjs +0 -1
- package/variables-DzXcMW2k.js +0 -5
- /package/{select → legacy-select}/HiddenMultiSelect.d.ts +0 -0
- /package/{select → legacy-select}/MultiSelectValueTag.d.ts +0 -0
- /package/{select → legacy-select}/SelectFieldError.d.ts +0 -0
- /package/{select → legacy-select}/SelectListBox.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectListState.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectState.d.ts +0 -0
- /package/{select → legacy-select}/utils.d.ts +0 -0
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { $ as J, a as ue, b as fe, c as $e, d as be, e as pe, f as
|
|
2
|
-
import { $ as Q, b as X, a as
|
|
3
|
-
import { $ as N, a as xe, b as Pe, c as Z, d as De } from "./DragAndDrop-
|
|
4
|
-
import {
|
|
5
|
-
import { b as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { $ as J, a as ue, b as fe, c as $e, d as be, e as pe, f as ve, g as K, h as ge } from "./Collection-BkxwF21i.js";
|
|
2
|
+
import { $ as Q, b as X, a as I, f as Y, g as me, d as he } from "./utils-D2iKpxcZ.js";
|
|
3
|
+
import { $ as N, a as xe, b as Pe, c as Z, d as De } from "./DragAndDrop-DF0VoPJw.js";
|
|
4
|
+
import { a as ye, b as Se, c as Ee, d as ke } from "./Separator-CQfDz_zr.js";
|
|
5
|
+
import { b as Be } from "./RSPContexts-B0lEq7qq.js";
|
|
6
|
+
import { a as Me, b as Fe, c as we } from "./SelectionIndicator-C2E23-zO.js";
|
|
7
|
+
import { $ as Le } from "./Text-bqP9NeVg.js";
|
|
8
|
+
import { c as ee, a as k, b as j, e as He } from "./mergeProps-Ct8m5-xW.js";
|
|
9
|
+
import { $ as L } from "./filterDOMProps-wsa9OcNI.js";
|
|
9
10
|
import { $ as Ie } from "./inertValue-B7loUihk.js";
|
|
10
|
-
import
|
|
11
|
-
import { d as Ve } from "./usePress-
|
|
12
|
-
import { h as
|
|
13
|
-
import { d as
|
|
14
|
-
import { $ as
|
|
15
|
-
import { a as Ce } from "./Button-
|
|
16
|
-
import { a as
|
|
17
|
-
import { $ as
|
|
18
|
-
import { $ as
|
|
19
|
-
import {
|
|
11
|
+
import d, { forwardRef as oe, createContext as te, useContext as x, useEffect as ae, useRef as C, useMemo as re } from "react";
|
|
12
|
+
import { d as Ve } from "./usePress-BqQIhkNY.js";
|
|
13
|
+
import { h as _e, i as Ae, $ as le, a as G } from "./useHover-DkC5FyNd.js";
|
|
14
|
+
import { d as Te } from "./SelectionManager-DoNLJm8c.js";
|
|
15
|
+
import { $ as Oe } from "./useFocusWithin-DhXBuB2O.js";
|
|
16
|
+
import { a as Ce } from "./Button-BbfVT9Yl.js";
|
|
17
|
+
import { a as Ne, $ as Ue } from "./useListState-CP7AKhOX.js";
|
|
18
|
+
import { $ as ze } from "./context-Dl_saGB6.js";
|
|
19
|
+
import { $ as Ke, a as Re } from "./ListKeyboardDelegate-BBmpJ-2O.js";
|
|
20
|
+
import { $ as We } from "./useFocusRing-CcxI7nbg.js";
|
|
20
21
|
const R = /* @__PURE__ */ new WeakMap();
|
|
21
|
-
function
|
|
22
|
+
function qe(t) {
|
|
22
23
|
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function je(t, e) {
|
|
25
26
|
let r = R.get(t);
|
|
26
27
|
if (!r) throw new Error("Unknown list");
|
|
27
|
-
return `${r.id}-option-${
|
|
28
|
+
return `${r.id}-option-${qe(e)}`;
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
-
let o =
|
|
30
|
+
function Ge(t, e, r) {
|
|
31
|
+
let o = L(t, {
|
|
31
32
|
labelable: !0
|
|
32
33
|
}), l = t.selectionBehavior || "toggle", i = t.linkBehavior || (l === "replace" ? "action" : "override");
|
|
33
34
|
l === "toggle" && i === "action" && (i = "override");
|
|
@@ -38,7 +39,7 @@ function qe(t, e, r) {
|
|
|
38
39
|
collection: e.collection,
|
|
39
40
|
disabledKeys: e.disabledKeys,
|
|
40
41
|
linkBehavior: i
|
|
41
|
-
}), { focusWithinProps:
|
|
42
|
+
}), { focusWithinProps: n } = Oe({
|
|
42
43
|
onFocusWithin: t.onFocus,
|
|
43
44
|
onBlurWithin: t.onBlur,
|
|
44
45
|
onFocusWithinChange: t.onFocusChange
|
|
@@ -50,9 +51,11 @@ function qe(t, e, r) {
|
|
|
50
51
|
shouldFocusOnHover: t.shouldFocusOnHover,
|
|
51
52
|
isVirtualized: t.isVirtualized,
|
|
52
53
|
onAction: t.onAction,
|
|
53
|
-
linkBehavior: i
|
|
54
|
+
linkBehavior: i,
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
UNSTABLE_itemBehavior: t.UNSTABLE_itemBehavior
|
|
54
57
|
});
|
|
55
|
-
let { labelProps: f, fieldProps:
|
|
58
|
+
let { labelProps: f, fieldProps: u } = Ce({
|
|
56
59
|
...t,
|
|
57
60
|
id: s,
|
|
58
61
|
// listbox is not an HTML input element so it
|
|
@@ -61,84 +64,86 @@ function qe(t, e, r) {
|
|
|
61
64
|
});
|
|
62
65
|
return {
|
|
63
66
|
labelProps: f,
|
|
64
|
-
listBoxProps:
|
|
67
|
+
listBoxProps: k(o, n, e.selectionManager.selectionMode === "multiple" ? {
|
|
65
68
|
"aria-multiselectable": "true"
|
|
66
69
|
} : {}, {
|
|
67
70
|
role: "listbox",
|
|
68
|
-
...
|
|
71
|
+
...k(u, a)
|
|
69
72
|
})
|
|
70
73
|
};
|
|
71
74
|
}
|
|
72
|
-
function
|
|
75
|
+
function Je(t, e, r) {
|
|
73
76
|
var o, l;
|
|
74
77
|
let { key: i } = t, a = R.get(e);
|
|
75
|
-
var
|
|
76
|
-
let s = (
|
|
78
|
+
var n;
|
|
79
|
+
let s = (n = t.isDisabled) !== null && n !== void 0 ? n : e.selectionManager.isDisabled(i);
|
|
77
80
|
var f;
|
|
78
|
-
let
|
|
81
|
+
let u = (f = t.isSelected) !== null && f !== void 0 ? f : e.selectionManager.isSelected(i);
|
|
79
82
|
var b;
|
|
80
|
-
let
|
|
83
|
+
let c = (b = t.shouldSelectOnPressUp) !== null && b !== void 0 ? b : a == null ? void 0 : a.shouldSelectOnPressUp;
|
|
81
84
|
var m;
|
|
82
|
-
let
|
|
83
|
-
var
|
|
84
|
-
let p = (
|
|
85
|
+
let v = (m = t.shouldFocusOnHover) !== null && m !== void 0 ? m : a == null ? void 0 : a.shouldFocusOnHover;
|
|
86
|
+
var g;
|
|
87
|
+
let p = (g = t.shouldUseVirtualFocus) !== null && g !== void 0 ? g : a == null ? void 0 : a.shouldUseVirtualFocus;
|
|
85
88
|
var P;
|
|
86
|
-
let
|
|
89
|
+
let E = (P = t.isVirtualized) !== null && P !== void 0 ? P : a == null ? void 0 : a.isVirtualized, B = j(), D = j(), y = {
|
|
87
90
|
role: "option",
|
|
88
91
|
"aria-disabled": s || void 0,
|
|
89
|
-
"aria-selected": e.selectionManager.selectionMode !== "none" ?
|
|
92
|
+
"aria-selected": e.selectionManager.selectionMode !== "none" ? u : void 0
|
|
90
93
|
};
|
|
91
|
-
|
|
94
|
+
_e() && Ae() || (y["aria-label"] = t["aria-label"], y["aria-labelledby"] = B, y["aria-describedby"] = D);
|
|
92
95
|
let $ = e.collection.getItem(i);
|
|
93
|
-
if (
|
|
96
|
+
if (E) {
|
|
94
97
|
let h = Number($ == null ? void 0 : $.index);
|
|
95
98
|
y["aria-posinset"] = Number.isNaN(h) ? void 0 : h + 1, y["aria-setsize"] = Se(e.collection);
|
|
96
99
|
}
|
|
97
|
-
let
|
|
100
|
+
let _ = a != null && a.onAction ? () => {
|
|
98
101
|
var h;
|
|
99
102
|
return a == null || (h = a.onAction) === null || h === void 0 ? void 0 : h.call(a, i);
|
|
100
|
-
} : void 0,
|
|
103
|
+
} : void 0, M = je(e, i), { itemProps: S, isPressed: F, isFocused: w, hasAction: A, allowsSelection: T } = Te({
|
|
101
104
|
selectionManager: e.selectionManager,
|
|
102
105
|
key: i,
|
|
103
106
|
ref: r,
|
|
104
|
-
shouldSelectOnPressUp:
|
|
105
|
-
allowsDifferentPressOrigin:
|
|
106
|
-
isVirtualized:
|
|
107
|
+
shouldSelectOnPressUp: c,
|
|
108
|
+
allowsDifferentPressOrigin: c && v,
|
|
109
|
+
isVirtualized: E,
|
|
107
110
|
shouldUseVirtualFocus: p,
|
|
108
111
|
isDisabled: s,
|
|
109
|
-
onAction:
|
|
112
|
+
onAction: _ || !($ == null || (o = $.props) === null || o === void 0) && o.onAction ? He($ == null || (l = $.props) === null || l === void 0 ? void 0 : l.onAction, _) : void 0,
|
|
110
113
|
linkBehavior: a == null ? void 0 : a.linkBehavior,
|
|
111
|
-
|
|
114
|
+
// @ts-ignore
|
|
115
|
+
UNSTABLE_itemBehavior: a == null ? void 0 : a.UNSTABLE_itemBehavior,
|
|
116
|
+
id: M
|
|
112
117
|
}), { hoverProps: U } = le({
|
|
113
|
-
isDisabled: s || !
|
|
118
|
+
isDisabled: s || !v,
|
|
114
119
|
onHoverStart() {
|
|
115
120
|
G() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(i));
|
|
116
121
|
}
|
|
117
|
-
}),
|
|
118
|
-
delete
|
|
119
|
-
let
|
|
122
|
+
}), H = L($ == null ? void 0 : $.props);
|
|
123
|
+
delete H.id;
|
|
124
|
+
let O = Ve($ == null ? void 0 : $.props);
|
|
120
125
|
return {
|
|
121
126
|
optionProps: {
|
|
122
127
|
...y,
|
|
123
|
-
...
|
|
124
|
-
id:
|
|
128
|
+
...k(H, S, U, O),
|
|
129
|
+
id: M
|
|
125
130
|
},
|
|
126
131
|
labelProps: {
|
|
127
|
-
id:
|
|
132
|
+
id: B
|
|
128
133
|
},
|
|
129
134
|
descriptionProps: {
|
|
130
135
|
id: D
|
|
131
136
|
},
|
|
132
|
-
isFocused:
|
|
133
|
-
isFocusVisible:
|
|
134
|
-
isSelected:
|
|
137
|
+
isFocused: w,
|
|
138
|
+
isFocusVisible: w && e.selectionManager.isFocused && G(),
|
|
139
|
+
isSelected: u,
|
|
135
140
|
isDisabled: s,
|
|
136
|
-
isPressed:
|
|
137
|
-
allowsSelection:
|
|
138
|
-
hasAction:
|
|
141
|
+
isPressed: F,
|
|
142
|
+
allowsSelection: T,
|
|
143
|
+
hasAction: A
|
|
139
144
|
};
|
|
140
145
|
}
|
|
141
|
-
function
|
|
146
|
+
function Qe(t) {
|
|
142
147
|
let { heading: e, "aria-label": r } = t, o = ee();
|
|
143
148
|
return {
|
|
144
149
|
itemProps: {
|
|
@@ -158,86 +163,86 @@ function Ge(t) {
|
|
|
158
163
|
}
|
|
159
164
|
};
|
|
160
165
|
}
|
|
161
|
-
const ie = /* @__PURE__ */ te(null),
|
|
166
|
+
const ie = /* @__PURE__ */ te(null), V = /* @__PURE__ */ te(null), Do = /* @__PURE__ */ oe(function(e, r) {
|
|
162
167
|
[e, r] = Q(e, r, ie);
|
|
163
|
-
let o = x(
|
|
164
|
-
return o ? /* @__PURE__ */
|
|
168
|
+
let o = x(V);
|
|
169
|
+
return o ? /* @__PURE__ */ d.createElement(de, {
|
|
165
170
|
state: o,
|
|
166
171
|
props: e,
|
|
167
172
|
listBoxRef: r
|
|
168
|
-
}) : /* @__PURE__ */
|
|
169
|
-
content: /* @__PURE__ */
|
|
170
|
-
}, (l) => /* @__PURE__ */
|
|
173
|
+
}) : /* @__PURE__ */ d.createElement(fe, {
|
|
174
|
+
content: /* @__PURE__ */ d.createElement($e, e)
|
|
175
|
+
}, (l) => /* @__PURE__ */ d.createElement(Xe, {
|
|
171
176
|
props: e,
|
|
172
177
|
listBoxRef: r,
|
|
173
178
|
collection: l
|
|
174
179
|
}));
|
|
175
180
|
});
|
|
176
|
-
function
|
|
181
|
+
function Xe({ props: t, listBoxRef: e, collection: r }) {
|
|
177
182
|
t = {
|
|
178
183
|
...t,
|
|
179
184
|
collection: r,
|
|
180
185
|
children: null,
|
|
181
186
|
items: null
|
|
182
187
|
};
|
|
183
|
-
let { layoutDelegate: o } = x(K), l =
|
|
188
|
+
let { layoutDelegate: o } = x(K), l = Ue({
|
|
184
189
|
...t,
|
|
185
190
|
layoutDelegate: o
|
|
186
191
|
});
|
|
187
|
-
return /* @__PURE__ */
|
|
192
|
+
return /* @__PURE__ */ d.createElement(de, {
|
|
188
193
|
state: l,
|
|
189
194
|
props: t,
|
|
190
195
|
listBoxRef: e
|
|
191
196
|
});
|
|
192
197
|
}
|
|
193
198
|
function de({ state: t, props: e, listBoxRef: r }) {
|
|
194
|
-
[e, r] = Q(e, r,
|
|
195
|
-
let { dragAndDropHooks: o, layout: l = "stack", orientation: i = "vertical", filter: a } = e,
|
|
199
|
+
[e, r] = Q(e, r, Be);
|
|
200
|
+
let { dragAndDropHooks: o, layout: l = "stack", orientation: i = "vertical", filter: a } = e, n = Ne(t, a), { collection: s, selectionManager: f } = n, u = !!(o != null && o.useDraggableCollectionState), b = !!(o != null && o.useDroppableCollectionState), { direction: c } = ze(), { disabledBehavior: m, disabledKeys: v } = f, g = Ke({
|
|
196
201
|
usage: "search",
|
|
197
202
|
sensitivity: "base"
|
|
198
|
-
}), { isVirtualized: p, layoutDelegate: P, dropTargetDelegate:
|
|
203
|
+
}), { isVirtualized: p, layoutDelegate: P, dropTargetDelegate: E, CollectionRoot: B } = x(K), D = re(() => e.keyboardDelegate || new Re({
|
|
199
204
|
collection: s,
|
|
200
|
-
collator:
|
|
205
|
+
collator: g,
|
|
201
206
|
ref: r,
|
|
202
|
-
disabledKeys:
|
|
207
|
+
disabledKeys: v,
|
|
203
208
|
disabledBehavior: m,
|
|
204
209
|
layout: l,
|
|
205
210
|
orientation: i,
|
|
206
|
-
direction:
|
|
211
|
+
direction: c,
|
|
207
212
|
layoutDelegate: P
|
|
208
213
|
}), [
|
|
209
214
|
s,
|
|
210
|
-
|
|
215
|
+
g,
|
|
211
216
|
r,
|
|
212
217
|
m,
|
|
213
|
-
|
|
218
|
+
v,
|
|
214
219
|
i,
|
|
215
|
-
|
|
220
|
+
c,
|
|
216
221
|
e.keyboardDelegate,
|
|
217
222
|
l,
|
|
218
223
|
P
|
|
219
|
-
]), { listBoxProps: y } =
|
|
224
|
+
]), { listBoxProps: y } = Ge({
|
|
220
225
|
...e,
|
|
221
|
-
shouldSelectOnPressUp:
|
|
226
|
+
shouldSelectOnPressUp: u || e.shouldSelectOnPressUp,
|
|
222
227
|
keyboardDelegate: D,
|
|
223
228
|
isVirtualized: p
|
|
224
|
-
},
|
|
229
|
+
}, n, r), $ = C(u), _ = C(b);
|
|
225
230
|
ae(() => {
|
|
226
|
-
process.env.NODE_ENV !== "production" && ($.current !==
|
|
231
|
+
process.env.NODE_ENV !== "production" && ($.current !== u && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), _.current !== b && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
227
232
|
}, [
|
|
228
|
-
|
|
233
|
+
u,
|
|
229
234
|
b
|
|
230
235
|
]);
|
|
231
|
-
let
|
|
232
|
-
if (
|
|
233
|
-
|
|
236
|
+
let M, S, F, w = !1, A = null, T = C(null);
|
|
237
|
+
if (u && o) {
|
|
238
|
+
M = o.useDraggableCollectionState({
|
|
234
239
|
collection: s,
|
|
235
240
|
selectionManager: f,
|
|
236
|
-
preview: o.renderDragPreview ?
|
|
237
|
-
}), o.useDraggableCollection({},
|
|
241
|
+
preview: o.renderDragPreview ? T : void 0
|
|
242
|
+
}), o.useDraggableCollection({}, M, r);
|
|
238
243
|
let z = o.DragPreview;
|
|
239
|
-
|
|
240
|
-
ref:
|
|
244
|
+
A = o.renderDragPreview ? /* @__PURE__ */ d.createElement(z, {
|
|
245
|
+
ref: T
|
|
241
246
|
}, o.renderDragPreview) : null;
|
|
242
247
|
}
|
|
243
248
|
if (b && o) {
|
|
@@ -245,72 +250,72 @@ function de({ state: t, props: e, listBoxRef: r }) {
|
|
|
245
250
|
collection: s,
|
|
246
251
|
selectionManager: f
|
|
247
252
|
});
|
|
248
|
-
let z = o.dropTargetDelegate ||
|
|
253
|
+
let z = o.dropTargetDelegate || E || new o.ListDropTargetDelegate(s, r, {
|
|
249
254
|
orientation: i,
|
|
250
255
|
layout: l,
|
|
251
|
-
direction:
|
|
256
|
+
direction: c
|
|
252
257
|
});
|
|
253
|
-
|
|
258
|
+
F = o.useDroppableCollection({
|
|
254
259
|
keyboardDelegate: D,
|
|
255
260
|
dropTargetDelegate: z
|
|
256
|
-
}, S, r),
|
|
261
|
+
}, S, r), w = S.isDropTarget({
|
|
257
262
|
type: "root"
|
|
258
263
|
});
|
|
259
264
|
}
|
|
260
|
-
let { focusProps: U, isFocused:
|
|
261
|
-
isDropTarget:
|
|
265
|
+
let { focusProps: U, isFocused: H, isFocusVisible: O } = We(), h = n.collection.size === 0, W = {
|
|
266
|
+
isDropTarget: w,
|
|
262
267
|
isEmpty: h,
|
|
263
|
-
isFocused:
|
|
264
|
-
isFocusVisible:
|
|
268
|
+
isFocused: H,
|
|
269
|
+
isFocusVisible: O,
|
|
265
270
|
layout: e.layout || "stack",
|
|
266
|
-
state:
|
|
267
|
-
}, se =
|
|
271
|
+
state: n
|
|
272
|
+
}, se = I({
|
|
268
273
|
className: e.className,
|
|
269
274
|
style: e.style,
|
|
270
275
|
defaultClassName: "react-aria-ListBox",
|
|
271
276
|
values: W
|
|
272
277
|
}), q = null;
|
|
273
|
-
h && e.renderEmptyState && (q = /* @__PURE__ */
|
|
278
|
+
h && e.renderEmptyState && (q = /* @__PURE__ */ d.createElement("div", {
|
|
274
279
|
// eslint-disable-next-line
|
|
275
280
|
role: "option",
|
|
276
281
|
style: {
|
|
277
282
|
display: "contents"
|
|
278
283
|
}
|
|
279
284
|
}, e.renderEmptyState(W)));
|
|
280
|
-
let ce =
|
|
285
|
+
let ce = L(e, {
|
|
281
286
|
global: !0
|
|
282
287
|
});
|
|
283
|
-
return /* @__PURE__ */
|
|
284
|
-
...
|
|
288
|
+
return /* @__PURE__ */ d.createElement(Fe, null, /* @__PURE__ */ d.createElement("div", {
|
|
289
|
+
...k(ce, se, y, U, F == null ? void 0 : F.collectionProps),
|
|
285
290
|
ref: r,
|
|
286
291
|
slot: e.slot || void 0,
|
|
287
292
|
onScroll: e.onScroll,
|
|
288
|
-
"data-drop-target":
|
|
293
|
+
"data-drop-target": w || void 0,
|
|
289
294
|
"data-empty": h || void 0,
|
|
290
|
-
"data-focused":
|
|
291
|
-
"data-focus-visible":
|
|
295
|
+
"data-focused": H || void 0,
|
|
296
|
+
"data-focus-visible": O || void 0,
|
|
292
297
|
"data-layout": e.layout || "stack",
|
|
293
298
|
"data-orientation": e.orientation || "vertical"
|
|
294
|
-
}, /* @__PURE__ */
|
|
299
|
+
}, /* @__PURE__ */ d.createElement(Y, {
|
|
295
300
|
values: [
|
|
296
301
|
[
|
|
297
302
|
ie,
|
|
298
303
|
e
|
|
299
304
|
],
|
|
300
305
|
[
|
|
301
|
-
|
|
302
|
-
|
|
306
|
+
V,
|
|
307
|
+
n
|
|
303
308
|
],
|
|
304
309
|
[
|
|
305
310
|
N,
|
|
306
311
|
{
|
|
307
312
|
dragAndDropHooks: o,
|
|
308
|
-
dragState:
|
|
313
|
+
dragState: M,
|
|
309
314
|
dropState: S
|
|
310
315
|
}
|
|
311
316
|
],
|
|
312
317
|
[
|
|
313
|
-
|
|
318
|
+
Ee,
|
|
314
319
|
{
|
|
315
320
|
elementType: "div"
|
|
316
321
|
}
|
|
@@ -318,65 +323,65 @@ function de({ state: t, props: e, listBoxRef: r }) {
|
|
|
318
323
|
[
|
|
319
324
|
Pe,
|
|
320
325
|
{
|
|
321
|
-
render:
|
|
326
|
+
render: Ye
|
|
322
327
|
}
|
|
323
328
|
],
|
|
324
329
|
[
|
|
325
|
-
|
|
330
|
+
ge,
|
|
326
331
|
{
|
|
327
332
|
name: "ListBoxSection",
|
|
328
333
|
render: ne
|
|
329
334
|
}
|
|
330
335
|
]
|
|
331
336
|
]
|
|
332
|
-
}, /* @__PURE__ */
|
|
337
|
+
}, /* @__PURE__ */ d.createElement(we, null, /* @__PURE__ */ d.createElement(B, {
|
|
333
338
|
collection: s,
|
|
334
339
|
scrollRef: r,
|
|
335
340
|
persistedKeys: De(f, o, S),
|
|
336
341
|
renderDropIndicator: Z(o, S)
|
|
337
|
-
})), q,
|
|
342
|
+
}))), q, A));
|
|
338
343
|
}
|
|
339
344
|
function ne(t, e, r, o = "react-aria-ListBoxSection") {
|
|
340
|
-
let l = x(
|
|
341
|
-
var
|
|
342
|
-
let { headingProps: b, groupProps:
|
|
345
|
+
let l = x(V), { dragAndDropHooks: i, dropState: a } = x(N), { CollectionBranch: n } = x(K), [s, f] = he();
|
|
346
|
+
var u;
|
|
347
|
+
let { headingProps: b, groupProps: c } = Qe({
|
|
343
348
|
heading: f,
|
|
344
|
-
"aria-label": (
|
|
345
|
-
}), m =
|
|
349
|
+
"aria-label": (u = t["aria-label"]) !== null && u !== void 0 ? u : void 0
|
|
350
|
+
}), m = I({
|
|
346
351
|
defaultClassName: o,
|
|
347
352
|
className: t.className,
|
|
348
353
|
style: t.style,
|
|
349
354
|
values: {}
|
|
350
|
-
}),
|
|
355
|
+
}), v = L(t, {
|
|
351
356
|
global: !0
|
|
352
357
|
});
|
|
353
|
-
return delete
|
|
354
|
-
...
|
|
358
|
+
return delete v.id, /* @__PURE__ */ d.createElement("section", {
|
|
359
|
+
...k(v, m, c),
|
|
355
360
|
ref: e
|
|
356
|
-
}, /* @__PURE__ */
|
|
361
|
+
}, /* @__PURE__ */ d.createElement(ke.Provider, {
|
|
357
362
|
value: {
|
|
358
363
|
...b,
|
|
359
364
|
ref: s
|
|
360
365
|
}
|
|
361
|
-
}, /* @__PURE__ */
|
|
366
|
+
}, /* @__PURE__ */ d.createElement(n, {
|
|
362
367
|
collection: l.collection,
|
|
363
368
|
parent: r,
|
|
364
369
|
renderDropIndicator: Z(i, a)
|
|
365
370
|
})));
|
|
366
371
|
}
|
|
367
|
-
const
|
|
368
|
-
let l = X(r), i = x(
|
|
372
|
+
const yo = /* @__PURE__ */ ue(pe, ne), So = /* @__PURE__ */ J(be, function(e, r, o) {
|
|
373
|
+
let l = X(r), i = x(V), { dragAndDropHooks: a, dragState: n, dropState: s } = x(N), { optionProps: f, labelProps: u, descriptionProps: b, ...c } = Je({
|
|
369
374
|
key: o.key,
|
|
370
375
|
"aria-label": e == null ? void 0 : e["aria-label"]
|
|
371
|
-
}, i, l), { hoverProps: m, isHovered:
|
|
372
|
-
isDisabled: !
|
|
376
|
+
}, i, l), { hoverProps: m, isHovered: v } = le({
|
|
377
|
+
isDisabled: !c.allowsSelection && !c.hasAction,
|
|
373
378
|
onHoverStart: o.props.onHoverStart,
|
|
374
379
|
onHoverChange: o.props.onHoverChange,
|
|
375
380
|
onHoverEnd: o.props.onHoverEnd
|
|
376
|
-
}),
|
|
377
|
-
|
|
381
|
+
}), g = null;
|
|
382
|
+
n && a && (g = a.useDraggableItem({
|
|
378
383
|
key: o.key
|
|
379
|
-
},
|
|
384
|
+
}, n));
|
|
380
385
|
let p = null;
|
|
381
386
|
s && a && (p = a.useDroppableItem({
|
|
382
387
|
target: {
|
|
@@ -385,17 +390,17 @@ const xo = /* @__PURE__ */ ue(pe, ne), Po = /* @__PURE__ */ J(be, function(e, r,
|
|
|
385
390
|
dropPosition: "on"
|
|
386
391
|
}
|
|
387
392
|
}, s, l));
|
|
388
|
-
let P =
|
|
393
|
+
let P = n && n.isDragging(o.key), E = I({
|
|
389
394
|
...e,
|
|
390
395
|
id: void 0,
|
|
391
396
|
children: e.children,
|
|
392
397
|
defaultClassName: "react-aria-ListBoxItem",
|
|
393
398
|
values: {
|
|
394
|
-
...
|
|
395
|
-
isHovered:
|
|
399
|
+
...c,
|
|
400
|
+
isHovered: v,
|
|
396
401
|
selectionMode: i.selectionManager.selectionMode,
|
|
397
402
|
selectionBehavior: i.selectionManager.selectionBehavior,
|
|
398
|
-
allowsDragging: !!
|
|
403
|
+
allowsDragging: !!n,
|
|
399
404
|
isDragging: P,
|
|
400
405
|
isDropTarget: p == null ? void 0 : p.isDropTarget
|
|
401
406
|
}
|
|
@@ -405,56 +410,62 @@ const xo = /* @__PURE__ */ ue(pe, ne), Po = /* @__PURE__ */ J(be, function(e, r,
|
|
|
405
410
|
}, [
|
|
406
411
|
o.textValue
|
|
407
412
|
]);
|
|
408
|
-
let
|
|
413
|
+
let B = e.href ? "a" : "div", D = L(e, {
|
|
409
414
|
global: !0
|
|
410
415
|
});
|
|
411
|
-
return delete D.id, delete D.onClick, /* @__PURE__ */
|
|
412
|
-
...
|
|
416
|
+
return delete D.id, delete D.onClick, /* @__PURE__ */ d.createElement(B, {
|
|
417
|
+
...k(D, E, f, m, g == null ? void 0 : g.dragProps, p == null ? void 0 : p.dropProps),
|
|
413
418
|
ref: l,
|
|
414
|
-
"data-allows-dragging": !!
|
|
415
|
-
"data-selected":
|
|
416
|
-
"data-disabled":
|
|
417
|
-
"data-hovered":
|
|
418
|
-
"data-focused":
|
|
419
|
-
"data-focus-visible":
|
|
420
|
-
"data-pressed":
|
|
419
|
+
"data-allows-dragging": !!n || void 0,
|
|
420
|
+
"data-selected": c.isSelected || void 0,
|
|
421
|
+
"data-disabled": c.isDisabled || void 0,
|
|
422
|
+
"data-hovered": v || void 0,
|
|
423
|
+
"data-focused": c.isFocused || void 0,
|
|
424
|
+
"data-focus-visible": c.isFocusVisible || void 0,
|
|
425
|
+
"data-pressed": c.isPressed || void 0,
|
|
421
426
|
"data-dragging": P || void 0,
|
|
422
427
|
"data-drop-target": (p == null ? void 0 : p.isDropTarget) || void 0,
|
|
423
428
|
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
|
|
424
|
-
}, /* @__PURE__ */
|
|
429
|
+
}, /* @__PURE__ */ d.createElement(Y, {
|
|
425
430
|
values: [
|
|
426
431
|
[
|
|
427
|
-
|
|
432
|
+
Le,
|
|
428
433
|
{
|
|
429
434
|
slots: {
|
|
430
|
-
[me]:
|
|
431
|
-
label:
|
|
435
|
+
[me]: u,
|
|
436
|
+
label: u,
|
|
432
437
|
description: b
|
|
433
438
|
}
|
|
434
439
|
}
|
|
440
|
+
],
|
|
441
|
+
[
|
|
442
|
+
Me,
|
|
443
|
+
{
|
|
444
|
+
isSelected: c.isSelected
|
|
445
|
+
}
|
|
435
446
|
]
|
|
436
447
|
]
|
|
437
|
-
},
|
|
448
|
+
}, E.children));
|
|
438
449
|
});
|
|
439
|
-
function
|
|
450
|
+
function Ye(t, e) {
|
|
440
451
|
e = X(e);
|
|
441
452
|
let { dragAndDropHooks: r, dropState: o } = x(N), { dropIndicatorProps: l, isHidden: i, isDropTarget: a } = r.useDropIndicator(t, o, e);
|
|
442
|
-
return i ? null : /* @__PURE__ */
|
|
453
|
+
return i ? null : /* @__PURE__ */ d.createElement(eo, {
|
|
443
454
|
...t,
|
|
444
455
|
dropIndicatorProps: l,
|
|
445
456
|
isDropTarget: a,
|
|
446
457
|
ref: e
|
|
447
458
|
});
|
|
448
459
|
}
|
|
449
|
-
function
|
|
450
|
-
let { dropIndicatorProps: r, isDropTarget: o, ...l } = t, i =
|
|
460
|
+
function Ze(t, e) {
|
|
461
|
+
let { dropIndicatorProps: r, isDropTarget: o, ...l } = t, i = I({
|
|
451
462
|
...l,
|
|
452
463
|
defaultClassName: "react-aria-DropIndicator",
|
|
453
464
|
values: {
|
|
454
465
|
isDropTarget: o
|
|
455
466
|
}
|
|
456
467
|
});
|
|
457
|
-
return /* @__PURE__ */
|
|
468
|
+
return /* @__PURE__ */ d.createElement("div", {
|
|
458
469
|
...r,
|
|
459
470
|
...i,
|
|
460
471
|
// eslint-disable-next-line
|
|
@@ -463,36 +474,36 @@ function Xe(t, e) {
|
|
|
463
474
|
"data-drop-target": o || void 0
|
|
464
475
|
});
|
|
465
476
|
}
|
|
466
|
-
const
|
|
467
|
-
let l = x(
|
|
477
|
+
const eo = /* @__PURE__ */ oe(Ze), Eo = J(ve, function(e, r, o) {
|
|
478
|
+
let l = x(V), { isLoading: i, onLoadMore: a, scrollOffset: n, ...s } = e, f = C(null), u = re(() => ({
|
|
468
479
|
onLoadMore: a,
|
|
469
480
|
collection: l == null ? void 0 : l.collection,
|
|
470
481
|
sentinelRef: f,
|
|
471
|
-
scrollOffset:
|
|
482
|
+
scrollOffset: n
|
|
472
483
|
}), [
|
|
473
484
|
a,
|
|
474
|
-
|
|
485
|
+
n,
|
|
475
486
|
l == null ? void 0 : l.collection
|
|
476
487
|
]);
|
|
477
|
-
xe(
|
|
478
|
-
let b =
|
|
488
|
+
xe(u, f);
|
|
489
|
+
let b = I({
|
|
479
490
|
...s,
|
|
480
491
|
id: void 0,
|
|
481
492
|
children: o.rendered,
|
|
482
493
|
defaultClassName: "react-aria-ListBoxLoadingIndicator",
|
|
483
494
|
values: null
|
|
484
|
-
}),
|
|
495
|
+
}), c = {
|
|
485
496
|
// For Android talkback
|
|
486
497
|
tabIndex: -1
|
|
487
498
|
};
|
|
488
|
-
return /* @__PURE__ */
|
|
499
|
+
return /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("div", {
|
|
489
500
|
style: {
|
|
490
501
|
position: "relative",
|
|
491
502
|
width: 0,
|
|
492
503
|
height: 0
|
|
493
504
|
},
|
|
494
505
|
inert: Ie(!0)
|
|
495
|
-
}, /* @__PURE__ */
|
|
506
|
+
}, /* @__PURE__ */ d.createElement("div", {
|
|
496
507
|
"data-testid": "loadMoreSentinel",
|
|
497
508
|
ref: f,
|
|
498
509
|
style: {
|
|
@@ -500,10 +511,10 @@ const Ye = /* @__PURE__ */ oe(Xe), Do = J(ge, function(e, r, o) {
|
|
|
500
511
|
height: 1,
|
|
501
512
|
width: 1
|
|
502
513
|
}
|
|
503
|
-
})), i && b.children && /* @__PURE__ */
|
|
504
|
-
...
|
|
514
|
+
})), i && b.children && /* @__PURE__ */ d.createElement("div", {
|
|
515
|
+
...k(L(e, {
|
|
505
516
|
global: !0
|
|
506
|
-
}),
|
|
517
|
+
}), c),
|
|
507
518
|
...b,
|
|
508
519
|
// aria-selected isn't needed here since this option is not selectable.
|
|
509
520
|
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
@@ -512,12 +523,12 @@ const Ye = /* @__PURE__ */ oe(Xe), Do = J(ge, function(e, r, o) {
|
|
|
512
523
|
}, b.children));
|
|
513
524
|
});
|
|
514
525
|
export {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
526
|
+
Eo as $,
|
|
527
|
+
So as a,
|
|
528
|
+
yo as b,
|
|
529
|
+
ie as c,
|
|
530
|
+
V as d,
|
|
531
|
+
Do as e,
|
|
532
|
+
R as f,
|
|
533
|
+
je as g
|
|
523
534
|
};
|