@midas-ds/components 12.0.0 → 12.1.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-CV9Hrare.cjs +1 -0
- package/AccordionItem-Dd9VLdsb.js +335 -0
- package/{BadgeContainer-DGJGJMPi.js → BadgeContainer-iNNgJKD9.js} +8 -8
- package/BadgeContainer-su0iCJKy.cjs +1 -0
- package/Breadcrumbs-BQLxFZVm.cjs +1 -0
- package/Breadcrumbs-C6B4fyk3.js +271 -0
- package/Button-CMIbSc4-.cjs +1 -0
- package/{Button-akT6Hvug.js → Button-CUMHt7MG.js} +2 -2
- package/{Button-DtC_ZOyd.js → Button-DD5_S-tD.js} +155 -161
- package/{Button-DQm2iqKU.cjs → Button-D_tRdPW9.cjs} +1 -1
- package/Button.module-BT9wZenr.cjs +1 -0
- package/Button.module-CGIVvzVm.js +14 -0
- package/{ButtonGroup-DvVvear6.js → ButtonGroup-DC8925jD.js} +1 -1
- package/ButtonGroup-zx-9mxbJ.cjs +1 -0
- package/CHANGELOG.md +82 -0
- package/{Card-CwwVnA_a.js → Card-D2UbrhDW.js} +42 -42
- package/Card-UolcSL5O.cjs +1 -0
- package/{CharacterCounter-DQJVM-mZ.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
- package/CharacterCounter-DT7A0wWP.js +22 -0
- package/Checkbox-DTuryJdM.js +278 -0
- package/Checkbox-dtZfsSfx.cjs +1 -0
- package/CheckboxGroup-BmCK0XG9.js +157 -0
- package/CheckboxGroup-DbmYdQEv.cjs +1 -0
- package/Collection-B0_WAieZ.js +625 -0
- package/Collection-BvWp2xBd.cjs +1 -0
- package/{ColorSchemeSwitch-DyZ9FAKG.js → ColorSchemeSwitch-CgZfgCG4.js} +20 -28
- package/{ColorSchemeSwitch-DtyJ9-5B.cjs → ColorSchemeSwitch-D5juAHPc.cjs} +3 -3
- package/{ComboBox-Dn3tQzri.js → ComboBox-Cl6jBB-8.js} +518 -503
- package/ComboBox-CvD0t2T2.cjs +1 -0
- package/DateField-D2IqGDL5.js +47 -0
- package/DateField-DJAQH95Q.cjs +1 -0
- package/DateInputDivider-BnSo_Aox.cjs +1 -0
- package/{DateInputDivider-CJEGWmG0.js → DateInputDivider-LxS0Kw1H.js} +936 -839
- package/DateRangePicker-CNPXbRqx.js +889 -0
- package/DateRangePicker-CljQy8oD.cjs +6 -0
- package/Dialog-B8swxl24.js +1643 -0
- package/Dialog-COpVrq8B.js +240 -0
- package/Dialog-DR6nEqMT.cjs +1 -0
- package/Dialog-doGnVsJJ.cjs +1 -0
- package/DragAndDrop-Dw8JZmrn.cjs +1 -0
- package/DragAndDrop-PrUJv--B.js +75 -0
- package/{Dropdown-CJ-sujKv.cjs → Dropdown-C_W6Sizy.cjs} +2 -2
- package/{Dropdown-BWbdSQ9U.js → Dropdown-DbeUiGYo.js} +8 -8
- package/FieldError-Cornph2A.cjs +1 -0
- package/FieldError-DdvFyIf4.js +48 -0
- package/{FileUpload-B89QfnCB.js → FileUpload-D2gnQKdn.js} +76 -74
- package/{FileUpload-KQ1XAKAc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
- package/{FocusScope-CEgd3xCY.js → FocusScope-Bj40Ir-g.js} +192 -195
- package/FocusScope-Uy3DiY0-.cjs +1 -0
- package/{Grid-B2av0vt8.js → Grid-BmX6arAO.js} +1 -1
- package/{Grid-Db5wZrw6.cjs → Grid-Bn1bCTH8.cjs} +1 -1
- package/GridItem-BtO9kCX9.js +237 -0
- package/GridItem-luVsL9lu.cjs +1 -0
- package/{Group-Cdy6z9ra.cjs → Group-BKYGeOBr.cjs} +1 -1
- package/{Group-B3mRMVy7.js → Group-C73mD_-i.js} +13 -13
- package/Heading-BQlmb5Tm.js +46 -0
- package/Heading-D3FR_KXb.cjs +1 -0
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/InfoBanner-CgmPdsH8.js +83 -0
- package/InfoBanner-Y-f3hKVR.cjs +1 -0
- package/{Input-BnpBRnJz.js → Input-BLVRv0FK.js} +9 -9
- package/{Input-DIhhWEPW.cjs → Input-CzMx2mfl.cjs} +1 -1
- package/{Label-ByWt6Lfh.js → Label-C5TNJ0Ku.js} +24 -28
- package/Label-Dp85Vue3.cjs +1 -0
- package/Layout-Bxd0-ao3.cjs +16 -0
- package/Layout-CcXu63hP.js +482 -0
- package/Link-CbFSuEI1.js +73 -0
- package/Link-ePZ3nrAW.cjs +6 -0
- package/Link-lO-Ke97K.js +60 -0
- package/Link-wM7cVPlS.cjs +1 -0
- package/LinkButton-CJyZh3BS.js +69 -0
- package/LinkButton-Cw73pOM2.cjs +6 -0
- package/ListBox-ICZKGluC.cjs +1 -0
- package/ListBox-LncMQt6I.js +523 -0
- package/ListBoxLoadMoreItem-3jGpi90m.cjs +1 -0
- package/ListBoxLoadMoreItem-CIFJ3liN.js +41 -0
- package/ListBoxSection-BBY8-t3_.js +1085 -0
- package/ListBoxSection-BeDwnVZx.cjs +1 -0
- package/{ListKeyboardDelegate-mcrZobNa.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
- package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
- package/{Logo-BW5NXAdu.cjs → Logo-CFjZc5u2.cjs} +1 -1
- package/{Logo-qkVS1MCN.js → Logo-DkagDdKQ.js} +15 -19
- package/OverlayArrow-ByH6lM-H.cjs +1 -0
- package/OverlayArrow-CvNuu3e3.js +519 -0
- package/{Popover-C5chAY42.cjs → Popover-Bi5yJEoE.cjs} +1 -1
- package/{Popover-viLqHHX2.js → Popover-CyEVqpJ6.js} +11 -11
- package/{PressResponder-B_Zqu7b1.js → PressResponder-CxVtArtP.js} +9 -9
- package/PressResponder-DbnYqwGB.cjs +1 -0
- package/ProgressBar-BYb9d2kC.js +53 -0
- package/ProgressBar-CgbE08QT.cjs +1 -0
- package/Radio-BagVPvJX.cjs +1 -0
- package/Radio-C98ly9yx.js +333 -0
- package/{RangeCalendar-DGGMbb0j.js → RangeCalendar-Bi9jc61A.js} +637 -629
- package/RangeCalendar-KcJooXYf.cjs +6 -0
- package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
- package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
- package/{SearchField-Ma3KB8Em.cjs → SearchField-BA-X9dzb.cjs} +2 -2
- package/{SearchField-B0dlPqsW.js → SearchField-BevjTbcW.js} +52 -56
- package/Select-BECa8IyZ.js +654 -0
- package/Select-xBp51JSl.cjs +1 -0
- package/{SelectionManager-BdKKuso-.js → SelectionManager-Bq-Gw1UT.js} +291 -282
- package/SelectionManager-BtbHoHpA.cjs +1 -0
- package/Separator-CM0KPvsX.js +105 -0
- package/Separator-Cfv2pbWf.cjs +1 -0
- package/Separator-DH-5wu9X.js +77 -0
- package/Separator-Dgin8BNW.cjs +1 -0
- package/Skeleton-Iovq135_.js +35 -0
- package/Skeleton-MaBUPqhT.cjs +1 -0
- package/Spinner-BZ7i01Kt.js +47 -0
- package/{Spinner-yHx_DX_4.cjs → Spinner-DxWDMW6e.cjs} +2 -2
- package/TabList-BMyKYLlY.cjs +1 -0
- package/TabList-C0mZgIzV.js +397 -0
- package/Table-BHY1uCZ0.cjs +16 -0
- package/{Table-CTS0J_sQ.js → Table-DzbfeVO7.js} +856 -798
- package/Tag-BYUPXbhG.js +765 -0
- package/Tag-BweDKw1v.cjs +1 -0
- package/Text-BAFsaON-.cjs +1 -0
- package/{Text--KL3Auo7.js → Text-Be7WIOwv.js} +3 -3
- package/{Text-wuw0HQoa.cjs → Text-BtPiT2P1.cjs} +1 -1
- package/Text-CmlsaWMA.js +32 -0
- package/TextArea-CDoLq124.js +125 -0
- package/TextArea-DJCtwrqV.cjs +1 -0
- package/TextField-Bm5916AD.cjs +1 -0
- package/TextField-_UY8CXtW.js +134 -0
- package/TextField.module-CH39P8ZE.js +13 -0
- package/TextField.module-gJ-ruFra.cjs +1 -0
- package/{Toast-BEh5yYzO.cjs → Toast-BN3vRCsH.cjs} +1 -1
- package/{Toast-BnzpC_5v.js → Toast-DZnQTLDr.js} +129 -143
- package/ToggleButtonGroup-CwHPu7w5.js +214 -0
- package/ToggleButtonGroup-DY9S3USc.cjs +1 -0
- package/Tooltip-BHAtsp9k.js +281 -0
- package/Tooltip-CZa9n5sT.cjs +1 -0
- package/{VisuallyHidden-BKslUoMJ.js → VisuallyHidden-CGEtjAP7.js} +8 -8
- package/{VisuallyHidden-DxDOcIsh.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/BadgeContainer.css +1 -1
- package/assets/Breadcrumbs.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/ButtonGroup.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/CharacterCounter.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Dropdown.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/GridItem.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Logo.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -0
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/ToggleButtonGroup.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/theme.css +1 -1
- package/assets/variables.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/chevron-right-0-sUFBiR.cjs +6 -0
- package/chevron-right-BYYHEJjK.js +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.d.ts +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +4 -2
- package/{context-Dl_saGB6.js → context-CGNJ3grH.js} +11 -11
- package/{context-UOrD6Zxk.cjs → context-Df3XbgBG.cjs} +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +18 -0
- 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/filterDOMProps-RRlKPKX0.cjs +1 -0
- package/filterDOMProps-wsa9OcNI.js +65 -0
- package/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BSMrH_Du.js → index-BLPblar-.js} +33 -30
- package/{index-D97L3EBk.cjs → index-DSFSh2sC.cjs} +3 -3
- package/index.cjs +1 -1
- package/index.d.ts +2 -0
- package/index.js +140 -125
- package/inertValue-B3AFhVG4.cjs +1 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +6 -5
- package/list-box/intl/translations.json.d.ts +11 -0
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/Menu.d.ts +13 -0
- package/menu/MenuItem.d.ts +5 -0
- package/menu/MenuPopover.d.ts +3 -0
- package/menu/MenuSection.d.ts +3 -0
- package/menu/Separator.d.ts +3 -0
- package/menu/index.cjs +1 -0
- package/menu/index.d.ts +5 -0
- package/menu/index.js +8 -0
- package/mergeProps-BSsN7Bgk.js +117 -0
- package/mergeProps-JhcJ7uJL.cjs +1 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +6 -4
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -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/index.cjs +1 -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/Input.d.ts +7 -2
- package/textfield/PasswordField.d.ts +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/generated-object.d.ts +381 -0
- package/theme/generated-tokens.d.ts +331 -0
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +4 -1
- package/theme/index.js +3989 -14
- package/theme/tokens.d.ts +30 -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/{tokens-BWo7EvNX.cjs → tokens-B3FfJ-rY.cjs} +1 -1
- package/{tokens-BtEBd3jO.js → tokens-B9ooUP4g.js} +1 -2
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/useButton-D6iUB8cN.js +56 -0
- package/useButton-R8-i3HLC.cjs +1 -0
- package/useDateFormatter-2B0vgHc-.cjs +1 -0
- package/{useDateFormatter-DiIUdTak.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
- package/{useDescription-LmB1V4Tg.js → useDescription-BLmIkYCq.js} +1 -1
- package/{useDescription-ByNlNIRU.cjs → useDescription-BMuiAqI5.cjs} +1 -1
- package/useEvent-3ZO5TPSH.cjs +1 -0
- package/{useEvent-DqWz89vg.js → useEvent-DpBHTuHJ.js} +1 -1
- package/{useField-5CEdtfab.js → useField-BMegM8fA.js} +2 -2
- package/{useField-CoQAzygg.cjs → useField-DyeD7MLj.cjs} +1 -1
- package/{useFilter-BKQT28sh.js → useFilter-BFnSe_Eq.js} +1 -1
- package/{useFilter-Bjh5dq2Q.cjs → useFilter-aoggM85n.cjs} +1 -1
- package/{useFocusRing-BM-zcH6L.cjs → useFocusRing-BcbYske2.cjs} +1 -1
- package/{useFocusRing-HoJn20X5.js → useFocusRing-DMo8ctYV.js} +2 -2
- package/{useFocusWithin-Cn18Myw6.js → useFocusWithin-ClMkhYcq.js} +1 -1
- package/{useFocusWithin-o0WjCpEB.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
- package/{useFocusable-DbmryjUH.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
- package/{useFocusable-ZjCKo1ed.js → useFocusable-DXlMChFC.js} +14 -14
- package/useFormValidation-BQIRxgbU.cjs +1 -0
- package/useFormValidation-L0UHvOsP.js +217 -0
- package/{useHasTabbableChild-CyOmqumh.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
- package/useHasTabbableChild-CJcLnolh.cjs +1 -0
- package/{useHighlightSelectionDescription-DTxHtOsw.js → useHighlightSelectionDescription-BkEv9Jye.js} +5 -5
- package/{useHighlightSelectionDescription-DAhPdEG6.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
- package/{useHover-D8fja4GW.js → useHover-D6bNIkU0.js} +81 -79
- package/useHover-DGAmG7jt.cjs +1 -0
- package/{useLabels-BtDN_ALM.cjs → useLabels-CvUk-yS3.cjs} +1 -1
- package/{useLabels-DZlvh4P4.js → useLabels-Kmq5JCp_.js} +1 -1
- package/useListState-D2IEg6_e.cjs +1 -0
- package/{useListState-e7cL-FOK.js → useListState-pixYqSLl.js} +43 -42
- package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-BO2iZEL0.cjs} +1 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
- package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-N0AyjzbM.js} +1 -1
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-CicXV7UO.cjs +7 -0
- package/{usePress-B_jgTf4k.js → usePress-DMUpU0GU.js} +84 -80
- package/{useSingleSelectListState-D7LjjoUJ.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
- package/{useSingleSelectListState-BiJMNaOl.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
- package/useTextField-BC5X_AO_.js +89 -0
- package/useTextField-Cxpfu0U3.cjs +1 -0
- package/useToggleState-BVOqL4hI.js +21 -0
- package/useToggleState-SqDyNfRi.cjs +1 -0
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/utils/types.d.ts +4 -0
- package/{utils-BM2vxlNA.cjs → utils-CMHKYKlz.cjs} +1 -1
- package/{utils-KYuflGZt.js → utils-Cpcjg55U.js} +10 -10
- package/utils-DFIwp4PB.js +262 -0
- package/utils-__vrf9VZ.cjs +1 -0
- package/AccordionItem-DEiRuizp.js +0 -361
- package/AccordionItem-Dhr7uo8u.cjs +0 -1
- package/BadgeContainer-CxVmqJ7g.cjs +0 -1
- package/Breadcrumbs-CEyKlcGU.js +0 -262
- package/Breadcrumbs-CnGzvtbn.cjs +0 -1
- package/Button-DZzQGk-L.cjs +0 -1
- package/Button.module-D-mPLRxe.js +0 -14
- package/Button.module-goCEz5qs.cjs +0 -1
- package/ButtonGroup-DUqW5dzM.cjs +0 -1
- package/Card-DPfOZC7f.cjs +0 -1
- package/CharacterCounter-DPphWPzA.js +0 -22
- package/Checkbox-BN_3F2Hl.js +0 -264
- package/Checkbox-CZtCj4yR.cjs +0 -1
- package/CheckboxGroup--xgOT1Do.js +0 -159
- package/CheckboxGroup-DGHaqRvb.cjs +0 -1
- package/Collection-B1xL4EdF.cjs +0 -1
- package/Collection-C5vE9MtJ.js +0 -577
- package/ComboBox-UadZMhiR.cjs +0 -1
- package/DateField-CNEoLyf5.cjs +0 -1
- package/DateField-CZmLugT0.js +0 -47
- package/DateInputDivider-CCjiq90K.cjs +0 -1
- package/DateRangePicker-DhgLEa9P.cjs +0 -6
- package/DateRangePicker-WQ97Psz7.js +0 -870
- package/Dialog-BT0tVGQb.cjs +0 -1
- package/Dialog-BuJdAr0D.js +0 -1611
- package/Dialog-DYK8lySl.cjs +0 -1
- package/Dialog-L53DWF0Z.js +0 -220
- package/DragAndDrop-DKxsUpmW.js +0 -60
- package/DragAndDrop-Dgfq6uJ0.cjs +0 -1
- package/FieldError-BlKkw9YL.js +0 -46
- package/FieldError-BvU0sueN.cjs +0 -1
- package/FocusScope-CAgWgk3N.cjs +0 -1
- package/GridItem-BnyULDnc.cjs +0 -1
- package/GridItem-orSzD7H5.js +0 -243
- package/Heading-DDhdwRAW.js +0 -46
- package/Heading-OUPkdoEJ.cjs +0 -1
- package/InfoBanner-DpLcq_1R.cjs +0 -1
- package/InfoBanner-U5hxOipC.js +0 -99
- package/Label-COpr4xVt.cjs +0 -1
- package/Layout-BR3Or1Ga.cjs +0 -16
- package/Layout-Bdqauktv.js +0 -498
- package/Link-CM2N5Jq-.js +0 -72
- package/Link-Dnnv00g9.js +0 -60
- package/Link-Dq8IFDBx.cjs +0 -6
- package/Link-ceVlGaWQ.cjs +0 -1
- package/LinkButton-BJA9_HzL.cjs +0 -6
- package/LinkButton-DH3Nfdis.js +0 -69
- package/ListBox-D0u9svwm.cjs +0 -1
- package/ListBox-y_dw__MI.js +0 -531
- package/ListBoxButton-C2zp-gXD.cjs +0 -1
- package/ListBoxButton-DiseS_LX.js +0 -15
- package/ListBoxSection-Cv-gN76G.js +0 -1058
- package/ListBoxSection-DtsigmC1.cjs +0 -1
- package/ListKeyboardDelegate-fZKXmHAk.cjs +0 -1
- package/OverlayArrow-8praV_Xy.cjs +0 -1
- package/OverlayArrow-DfkRZlgG.js +0 -507
- package/PressResponder-Bm3_RM9c.cjs +0 -1
- package/ProgressBar-D5mNQTID.cjs +0 -1
- package/ProgressBar-wQirOG1N.js +0 -53
- package/Radio-BIomn_sP.js +0 -313
- package/Radio-CxvJ5Wrl.cjs +0 -1
- package/RangeCalendar-BvvZ2SBj.cjs +0 -11
- package/Select-769RSZ9V.js +0 -664
- package/Select-Go5x0zWl.cjs +0 -1
- package/SelectionManager-BvREZgeu.cjs +0 -1
- package/Separator-CggS0R7Q.js +0 -59
- package/Separator-DBsDhqCr.cjs +0 -1
- package/Skeleton-BAwbfKBW.cjs +0 -1
- package/Skeleton-BePDRmrO.js +0 -40
- package/Spinner-AXFRWuT6.js +0 -51
- package/TabList-0gj27e_e.js +0 -386
- package/TabList-Cqpup53E.cjs +0 -1
- package/Table-BhtlNY9P.cjs +0 -16
- package/Tag-B9M-nBTM.js +0 -748
- package/Tag-DkW6zaIS.cjs +0 -1
- package/Text-BUDAzDjW.js +0 -32
- package/Text-DA_gK6a2.cjs +0 -1
- package/TextArea-CSrrYY05.cjs +0 -1
- package/TextArea-DphcH6wE.js +0 -119
- package/TextField-CsyRTSEG.js +0 -120
- package/TextField-P5yICj5z.cjs +0 -1
- package/TextField.module-BcpPBWnD.js +0 -13
- package/TextField.module-Dw5Rtn9y.cjs +0 -1
- package/ToggleButtonGroup-BwFAhFEi.cjs +0 -1
- package/ToggleButtonGroup-CuxAKB3-.js +0 -211
- package/Tooltip-Bz0xCZSw.cjs +0 -1
- package/Tooltip-EuEQtHZj.js +0 -285
- package/filterDOMProps-BS2lrgFA.cjs +0 -1
- package/filterDOMProps-D6KHYVBX.js +0 -24
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/mergeProps-BYJQ6N1s.js +0 -115
- package/mergeProps-C7Sx47fA.cjs +0 -1
- package/useButton-CWHoXYnj.js +0 -47
- package/useButton-CwOQUGtY.cjs +0 -1
- package/useDateFormatter-bzjwqA2K.cjs +0 -1
- package/useEvent-CGRyLM2c.cjs +0 -1
- package/useFormValidation-BW2NSTM4.js +0 -215
- package/useFormValidation-DSRwb9US.cjs +0 -1
- package/useHasTabbableChild-CogBR_6o.cjs +0 -1
- package/useHover-CaFzQrR_.cjs +0 -1
- package/useListState-TtWy_rDI.cjs +0 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BOGIOlm8.cjs +0 -7
- package/useTextField-BVIOd8Ld.cjs +0 -1
- package/useTextField-DFkSHoQN.js +0 -86
- package/useToggleState-Bz5rAf4C.js +0 -18
- package/useToggleState-DoIkSQdj.cjs +0 -1
- package/utils-C5-CzvX2.cjs +0 -1
- package/utils-CuqJqFqQ.js +0 -234
package/LinkButton-DH3Nfdis.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { $ as u } from "./Link-CM2N5Jq-.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
|
-
};
|
package/ListBox-D0u9svwm.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const D=require("./Collection-B1xL4EdF.cjs"),v=require("./utils-BM2vxlNA.cjs"),y=require("./DragAndDrop-Dgfq6uJ0.cjs"),A=require("./Separator-DBsDhqCr.cjs"),re=require("./Text-wuw0HQoa.cjs"),h=require("./mergeProps-C7Sx47fA.cjs"),T=require("./filterDOMProps-BS2lrgFA.cjs"),ae=require("./inertValue-BWmZ1afe.cjs"),t=require("react"),de=require("./usePress-BOGIOlm8.cjs"),B=require("./useHover-CaFzQrR_.cjs"),ie=require("./SelectionManager-BvREZgeu.cjs"),le=require("./useFocusWithin-o0WjCpEB.cjs"),ne=require("./Button-DZzQGk-L.cjs"),Y=require("./useListState-TtWy_rDI.cjs"),se=require("./context-UOrD6Zxk.cjs"),X=require("./ListKeyboardDelegate-fZKXmHAk.cjs"),ce=require("./useFocusRing-BM-zcH6L.cjs"),ue=require("./FocusScope-CAgWgk3N.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;
|
package/ListBox-y_dw__MI.js
DELETED
|
@@ -1,531 +0,0 @@
|
|
|
1
|
-
import { $ as ee, a as fe, b as pe, c as $e, d as z, e as be } from "./Collection-C5vE9MtJ.js";
|
|
2
|
-
import { $ as ve, b as q, a as H, f as oe, g as ge, h as me, d as he } from "./utils-KYuflGZt.js";
|
|
3
|
-
import { $ as N, a as xe, b as te, c as Pe, d as De } from "./DragAndDrop-DKxsUpmW.js";
|
|
4
|
-
import { $ as ye, a as Se, b as ke, c as Ee, d as Fe } from "./Separator-CggS0R7Q.js";
|
|
5
|
-
import { $ as Me } from "./Text--KL3Auo7.js";
|
|
6
|
-
import { c as ae, a as M, b as Y, e as we } from "./mergeProps-BYJQ6N1s.js";
|
|
7
|
-
import { $ as L } from "./filterDOMProps-D6KHYVBX.js";
|
|
8
|
-
import { $ as Be } from "./inertValue-B7loUihk.js";
|
|
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 { d as Ie } from "./usePress-B_jgTf4k.js";
|
|
11
|
-
import { h as Ve, i as He, $ as de, a as Z } from "./useHover-D8fja4GW.js";
|
|
12
|
-
import { d as Le } from "./SelectionManager-BdKKuso-.js";
|
|
13
|
-
import { $ as _e } from "./useFocusWithin-Cn18Myw6.js";
|
|
14
|
-
import { a as Ae } from "./Button-DtC_ZOyd.js";
|
|
15
|
-
import { a as Te, $ as Ce } from "./useListState-e7cL-FOK.js";
|
|
16
|
-
import { $ as Oe } from "./context-Dl_saGB6.js";
|
|
17
|
-
import { $ as ze, a as Ne } from "./ListKeyboardDelegate-mcrZobNa.js";
|
|
18
|
-
import { $ as Ue } from "./useFocusRing-HoJn20X5.js";
|
|
19
|
-
import { a as Ke } from "./FocusScope-CEgd3xCY.js";
|
|
20
|
-
const j = /* @__PURE__ */ new WeakMap();
|
|
21
|
-
function Re(o) {
|
|
22
|
-
return typeof o == "string" ? o.replace(/\s*/g, "") : "" + o;
|
|
23
|
-
}
|
|
24
|
-
function We(o, e) {
|
|
25
|
-
let r = j.get(o);
|
|
26
|
-
if (!r) throw new Error("Unknown list");
|
|
27
|
-
return `${r.id}-option-${Re(e)}`;
|
|
28
|
-
}
|
|
29
|
-
function qe(o, e, r) {
|
|
30
|
-
let i = L(o, {
|
|
31
|
-
labelable: !0
|
|
32
|
-
}), l = o.selectionBehavior || "toggle", d = o.linkBehavior || (l === "replace" ? "action" : "override");
|
|
33
|
-
l === "toggle" && d === "action" && (d = "override");
|
|
34
|
-
let { listProps: t } = ye({
|
|
35
|
-
...o,
|
|
36
|
-
ref: r,
|
|
37
|
-
selectionManager: e.selectionManager,
|
|
38
|
-
collection: e.collection,
|
|
39
|
-
disabledKeys: e.disabledKeys,
|
|
40
|
-
linkBehavior: d
|
|
41
|
-
}), { focusWithinProps: a } = _e({
|
|
42
|
-
onFocusWithin: o.onFocus,
|
|
43
|
-
onBlurWithin: o.onBlur,
|
|
44
|
-
onFocusWithinChange: o.onFocusChange
|
|
45
|
-
}), u = ae(o.id);
|
|
46
|
-
j.set(e, {
|
|
47
|
-
id: u,
|
|
48
|
-
shouldUseVirtualFocus: o.shouldUseVirtualFocus,
|
|
49
|
-
shouldSelectOnPressUp: o.shouldSelectOnPressUp,
|
|
50
|
-
shouldFocusOnHover: o.shouldFocusOnHover,
|
|
51
|
-
isVirtualized: o.isVirtualized,
|
|
52
|
-
onAction: o.onAction,
|
|
53
|
-
linkBehavior: d
|
|
54
|
-
});
|
|
55
|
-
let { labelProps: b, fieldProps: n } = Ae({
|
|
56
|
-
...o,
|
|
57
|
-
id: u,
|
|
58
|
-
// listbox is not an HTML input element so it
|
|
59
|
-
// shouldn't be labeled by a <label> element.
|
|
60
|
-
labelElementType: "span"
|
|
61
|
-
});
|
|
62
|
-
return {
|
|
63
|
-
labelProps: b,
|
|
64
|
-
listBoxProps: M(i, a, e.selectionManager.selectionMode === "multiple" ? {
|
|
65
|
-
"aria-multiselectable": "true"
|
|
66
|
-
} : {}, {
|
|
67
|
-
role: "listbox",
|
|
68
|
-
...M(n, t)
|
|
69
|
-
})
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function je(o, e, r) {
|
|
73
|
-
var i, l;
|
|
74
|
-
let { key: d } = o, t = j.get(e);
|
|
75
|
-
var a;
|
|
76
|
-
let u = (a = o.isDisabled) !== null && a !== void 0 ? a : e.selectionManager.isDisabled(d);
|
|
77
|
-
var b;
|
|
78
|
-
let n = (b = o.isSelected) !== null && b !== void 0 ? b : e.selectionManager.isSelected(d);
|
|
79
|
-
var $;
|
|
80
|
-
let c = ($ = o.shouldSelectOnPressUp) !== null && $ !== void 0 ? $ : t == null ? void 0 : t.shouldSelectOnPressUp;
|
|
81
|
-
var f;
|
|
82
|
-
let h = (f = o.shouldFocusOnHover) !== null && f !== void 0 ? f : t == null ? void 0 : t.shouldFocusOnHover;
|
|
83
|
-
var g;
|
|
84
|
-
let v = (g = o.shouldUseVirtualFocus) !== null && g !== void 0 ? g : t == null ? void 0 : t.shouldUseVirtualFocus;
|
|
85
|
-
var x;
|
|
86
|
-
let P = (x = o.isVirtualized) !== null && x !== void 0 ? x : t == null ? void 0 : t.isVirtualized, k = Y(), w = Y(), D = {
|
|
87
|
-
role: "option",
|
|
88
|
-
"aria-disabled": u || void 0,
|
|
89
|
-
"aria-selected": e.selectionManager.selectionMode !== "none" ? n : void 0
|
|
90
|
-
};
|
|
91
|
-
Ve() && He() || (D["aria-label"] = o["aria-label"], D["aria-labelledby"] = k, D["aria-describedby"] = w);
|
|
92
|
-
let p = e.collection.getItem(d);
|
|
93
|
-
if (P) {
|
|
94
|
-
let S = Number(p == null ? void 0 : p.index);
|
|
95
|
-
D["aria-posinset"] = Number.isNaN(S) ? void 0 : S + 1, D["aria-setsize"] = Se(e.collection);
|
|
96
|
-
}
|
|
97
|
-
let B = t != null && t.onAction ? () => {
|
|
98
|
-
var S;
|
|
99
|
-
return t == null || (S = t.onAction) === null || S === void 0 ? void 0 : S.call(t, d);
|
|
100
|
-
} : void 0, A = We(e, d), { itemProps: U, isPressed: K, isFocused: E, hasAction: y, allowsSelection: F } = Le({
|
|
101
|
-
selectionManager: e.selectionManager,
|
|
102
|
-
key: d,
|
|
103
|
-
ref: r,
|
|
104
|
-
shouldSelectOnPressUp: c,
|
|
105
|
-
allowsDifferentPressOrigin: c && h,
|
|
106
|
-
isVirtualized: P,
|
|
107
|
-
shouldUseVirtualFocus: v,
|
|
108
|
-
isDisabled: u,
|
|
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,
|
|
110
|
-
linkBehavior: t == null ? void 0 : t.linkBehavior,
|
|
111
|
-
id: A
|
|
112
|
-
}), { hoverProps: I } = de({
|
|
113
|
-
isDisabled: u || !h,
|
|
114
|
-
onHoverStart() {
|
|
115
|
-
Z() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(d));
|
|
116
|
-
}
|
|
117
|
-
}), V = L(p == null ? void 0 : p.props);
|
|
118
|
-
delete V.id;
|
|
119
|
-
let T = Ie(p == null ? void 0 : p.props);
|
|
120
|
-
return {
|
|
121
|
-
optionProps: {
|
|
122
|
-
...D,
|
|
123
|
-
...M(V, U, I, T),
|
|
124
|
-
id: A
|
|
125
|
-
},
|
|
126
|
-
labelProps: {
|
|
127
|
-
id: k
|
|
128
|
-
},
|
|
129
|
-
descriptionProps: {
|
|
130
|
-
id: w
|
|
131
|
-
},
|
|
132
|
-
isFocused: E,
|
|
133
|
-
isFocusVisible: E && e.selectionManager.isFocused && Z(),
|
|
134
|
-
isSelected: n,
|
|
135
|
-
isDisabled: u,
|
|
136
|
-
isPressed: K,
|
|
137
|
-
allowsSelection: F,
|
|
138
|
-
hasAction: y
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
function Ge(o) {
|
|
142
|
-
let { heading: e, "aria-label": r } = o, i = ae();
|
|
143
|
-
return {
|
|
144
|
-
itemProps: {
|
|
145
|
-
role: "presentation"
|
|
146
|
-
},
|
|
147
|
-
headingProps: e ? {
|
|
148
|
-
// Techincally, listbox cannot contain headings according to ARIA.
|
|
149
|
-
// We hide the heading from assistive technology, using role="presentation",
|
|
150
|
-
// and only use it as a visual label for the nested group.
|
|
151
|
-
id: i,
|
|
152
|
-
role: "presentation"
|
|
153
|
-
} : {},
|
|
154
|
-
groupProps: {
|
|
155
|
-
role: "group",
|
|
156
|
-
"aria-label": r,
|
|
157
|
-
"aria-labelledby": e ? i : void 0
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
}
|
|
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,
|
|
166
|
-
props: e,
|
|
167
|
-
listBoxRef: r
|
|
168
|
-
}) : /* @__PURE__ */ s.createElement(pe, {
|
|
169
|
-
content: /* @__PURE__ */ s.createElement($e, e)
|
|
170
|
-
}, (l) => /* @__PURE__ */ s.createElement(Je, {
|
|
171
|
-
props: e,
|
|
172
|
-
listBoxRef: r,
|
|
173
|
-
collection: l
|
|
174
|
-
}));
|
|
175
|
-
});
|
|
176
|
-
function Je({ props: o, listBoxRef: e, collection: r }) {
|
|
177
|
-
o = {
|
|
178
|
-
...o,
|
|
179
|
-
collection: r,
|
|
180
|
-
children: null,
|
|
181
|
-
items: null
|
|
182
|
-
};
|
|
183
|
-
let { layoutDelegate: i } = m(z), l = Ce({
|
|
184
|
-
...o,
|
|
185
|
-
layoutDelegate: i
|
|
186
|
-
});
|
|
187
|
-
return /* @__PURE__ */ s.createElement(se, {
|
|
188
|
-
state: l,
|
|
189
|
-
props: o,
|
|
190
|
-
listBoxRef: e
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
function se({ state: o, props: e, listBoxRef: r }) {
|
|
194
|
-
var i;
|
|
195
|
-
let { filter: l, collectionProps: d, collectionRef: t } = m(ke) || {};
|
|
196
|
-
e = C(() => d ? {
|
|
197
|
-
...e,
|
|
198
|
-
...d
|
|
199
|
-
} : e, [
|
|
200
|
-
e,
|
|
201
|
-
d
|
|
202
|
-
]);
|
|
203
|
-
let { dragAndDropHooks: a, layout: u = "stack", orientation: b = "vertical" } = e;
|
|
204
|
-
r = q(C(() => me(r, t !== void 0 ? t : null), [
|
|
205
|
-
t,
|
|
206
|
-
r
|
|
207
|
-
]));
|
|
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({
|
|
209
|
-
usage: "search",
|
|
210
|
-
sensitivity: "base"
|
|
211
|
-
}), { isVirtualized: k, layoutDelegate: w, dropTargetDelegate: D, CollectionRoot: p } = m(z), B = C(() => e.keyboardDelegate || new Ne({
|
|
212
|
-
collection: $,
|
|
213
|
-
collator: P,
|
|
214
|
-
ref: r,
|
|
215
|
-
disabledKeys: x,
|
|
216
|
-
disabledBehavior: v,
|
|
217
|
-
layout: u,
|
|
218
|
-
orientation: b,
|
|
219
|
-
direction: g,
|
|
220
|
-
layoutDelegate: w
|
|
221
|
-
}), [
|
|
222
|
-
$,
|
|
223
|
-
P,
|
|
224
|
-
r,
|
|
225
|
-
v,
|
|
226
|
-
x,
|
|
227
|
-
b,
|
|
228
|
-
g,
|
|
229
|
-
e.keyboardDelegate,
|
|
230
|
-
u,
|
|
231
|
-
w
|
|
232
|
-
]), { listBoxProps: A } = qe({
|
|
233
|
-
...e,
|
|
234
|
-
shouldSelectOnPressUp: f || e.shouldSelectOnPressUp,
|
|
235
|
-
keyboardDelegate: B,
|
|
236
|
-
isVirtualized: k
|
|
237
|
-
}, n, r), U = O(f), K = O(h);
|
|
238
|
-
le(() => {
|
|
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."));
|
|
240
|
-
}, [
|
|
241
|
-
f,
|
|
242
|
-
h
|
|
243
|
-
]);
|
|
244
|
-
let E, y, F, I = !1, V = null, T = O(null);
|
|
245
|
-
if (f && a) {
|
|
246
|
-
E = a.useDraggableCollectionState({
|
|
247
|
-
collection: $,
|
|
248
|
-
selectionManager: c,
|
|
249
|
-
preview: a.renderDragPreview ? T : void 0
|
|
250
|
-
}), a.useDraggableCollection({}, E, r);
|
|
251
|
-
let W = a.DragPreview;
|
|
252
|
-
V = a.renderDragPreview ? /* @__PURE__ */ s.createElement(W, {
|
|
253
|
-
ref: T
|
|
254
|
-
}, a.renderDragPreview) : null;
|
|
255
|
-
}
|
|
256
|
-
if (h && a) {
|
|
257
|
-
y = a.useDroppableCollectionState({
|
|
258
|
-
collection: $,
|
|
259
|
-
selectionManager: c
|
|
260
|
-
});
|
|
261
|
-
let W = a.dropTargetDelegate || D || new a.ListDropTargetDelegate($, r, {
|
|
262
|
-
orientation: b,
|
|
263
|
-
layout: u,
|
|
264
|
-
direction: g
|
|
265
|
-
});
|
|
266
|
-
F = a.useDroppableCollection({
|
|
267
|
-
keyboardDelegate: B,
|
|
268
|
-
dropTargetDelegate: W
|
|
269
|
-
}, y, r), I = y.isDropTarget({
|
|
270
|
-
type: "root"
|
|
271
|
-
});
|
|
272
|
-
}
|
|
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 = {
|
|
274
|
-
isDropTarget: I,
|
|
275
|
-
isEmpty: R,
|
|
276
|
-
isFocused: G,
|
|
277
|
-
isFocusVisible: J,
|
|
278
|
-
layout: e.layout || "stack",
|
|
279
|
-
state: n
|
|
280
|
-
}, ue = H({
|
|
281
|
-
className: e.className,
|
|
282
|
-
style: e.style,
|
|
283
|
-
defaultClassName: "react-aria-ListBox",
|
|
284
|
-
values: Q
|
|
285
|
-
}), X = null;
|
|
286
|
-
return R && e.renderEmptyState && (X = /* @__PURE__ */ s.createElement("div", {
|
|
287
|
-
// eslint-disable-next-line
|
|
288
|
-
role: "option",
|
|
289
|
-
style: {
|
|
290
|
-
display: "contents"
|
|
291
|
-
}
|
|
292
|
-
}, e.renderEmptyState(Q))), /* @__PURE__ */ s.createElement(Ke, null, /* @__PURE__ */ s.createElement("div", {
|
|
293
|
-
...L(e),
|
|
294
|
-
...M(A, S, F == null ? void 0 : F.collectionProps),
|
|
295
|
-
...ue,
|
|
296
|
-
ref: r,
|
|
297
|
-
slot: e.slot || void 0,
|
|
298
|
-
onScroll: e.onScroll,
|
|
299
|
-
"data-drop-target": I || void 0,
|
|
300
|
-
"data-empty": R || void 0,
|
|
301
|
-
"data-focused": G || void 0,
|
|
302
|
-
"data-focus-visible": J || void 0,
|
|
303
|
-
"data-layout": e.layout || "stack",
|
|
304
|
-
"data-orientation": e.orientation || "vertical"
|
|
305
|
-
}, /* @__PURE__ */ s.createElement(oe, {
|
|
306
|
-
values: [
|
|
307
|
-
[
|
|
308
|
-
ne,
|
|
309
|
-
e
|
|
310
|
-
],
|
|
311
|
-
[
|
|
312
|
-
_,
|
|
313
|
-
n
|
|
314
|
-
],
|
|
315
|
-
[
|
|
316
|
-
N,
|
|
317
|
-
{
|
|
318
|
-
dragAndDropHooks: a,
|
|
319
|
-
dragState: E,
|
|
320
|
-
dropState: y
|
|
321
|
-
}
|
|
322
|
-
],
|
|
323
|
-
[
|
|
324
|
-
Ee,
|
|
325
|
-
{
|
|
326
|
-
elementType: "div"
|
|
327
|
-
}
|
|
328
|
-
],
|
|
329
|
-
[
|
|
330
|
-
xe,
|
|
331
|
-
{
|
|
332
|
-
render: Qe
|
|
333
|
-
}
|
|
334
|
-
],
|
|
335
|
-
[
|
|
336
|
-
be,
|
|
337
|
-
{
|
|
338
|
-
name: "ListBoxSection",
|
|
339
|
-
render: ce
|
|
340
|
-
}
|
|
341
|
-
]
|
|
342
|
-
]
|
|
343
|
-
}, /* @__PURE__ */ s.createElement(p, {
|
|
344
|
-
collection: $,
|
|
345
|
-
scrollRef: r,
|
|
346
|
-
persistedKeys: Pe(c, a, y),
|
|
347
|
-
renderDropIndicator: te(a, y)
|
|
348
|
-
})), X, V));
|
|
349
|
-
}
|
|
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();
|
|
352
|
-
var n;
|
|
353
|
-
let { headingProps: $, groupProps: c } = Ge({
|
|
354
|
-
heading: b,
|
|
355
|
-
"aria-label": (n = o["aria-label"]) !== null && n !== void 0 ? n : void 0
|
|
356
|
-
}), f = H({
|
|
357
|
-
defaultClassName: i,
|
|
358
|
-
className: o.className,
|
|
359
|
-
style: o.style,
|
|
360
|
-
values: {}
|
|
361
|
-
});
|
|
362
|
-
return /* @__PURE__ */ s.createElement("section", {
|
|
363
|
-
...L(o),
|
|
364
|
-
...c,
|
|
365
|
-
...f,
|
|
366
|
-
ref: e
|
|
367
|
-
}, /* @__PURE__ */ s.createElement(Fe.Provider, {
|
|
368
|
-
value: {
|
|
369
|
-
...$,
|
|
370
|
-
ref: u
|
|
371
|
-
}
|
|
372
|
-
}, /* @__PURE__ */ s.createElement(a, {
|
|
373
|
-
collection: l.collection,
|
|
374
|
-
parent: r,
|
|
375
|
-
renderDropIndicator: te(d, t)
|
|
376
|
-
})));
|
|
377
|
-
}
|
|
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,
|
|
381
|
-
"aria-label": e == null ? void 0 : e["aria-label"]
|
|
382
|
-
}, d, l), { hoverProps: f, isHovered: h } = de({
|
|
383
|
-
isDisabled: !c.allowsSelection && !c.hasAction,
|
|
384
|
-
onHoverStart: i.props.onHoverStart,
|
|
385
|
-
onHoverChange: i.props.onHoverChange,
|
|
386
|
-
onHoverEnd: i.props.onHoverEnd
|
|
387
|
-
}), g = null;
|
|
388
|
-
a && t && (g = t.useDraggableItem({
|
|
389
|
-
key: i.key
|
|
390
|
-
}, a));
|
|
391
|
-
let v = null;
|
|
392
|
-
u && t && (v = t.useDroppableItem({
|
|
393
|
-
target: {
|
|
394
|
-
type: "item",
|
|
395
|
-
key: i.key,
|
|
396
|
-
dropPosition: "on"
|
|
397
|
-
}
|
|
398
|
-
}, u, l));
|
|
399
|
-
let x = a && a.isDragging(i.key), P = H({
|
|
400
|
-
...e,
|
|
401
|
-
id: void 0,
|
|
402
|
-
children: e.children,
|
|
403
|
-
defaultClassName: "react-aria-ListBoxItem",
|
|
404
|
-
values: {
|
|
405
|
-
...c,
|
|
406
|
-
isHovered: h,
|
|
407
|
-
selectionMode: d.selectionManager.selectionMode,
|
|
408
|
-
selectionBehavior: d.selectionManager.selectionBehavior,
|
|
409
|
-
allowsDragging: !!a,
|
|
410
|
-
isDragging: x,
|
|
411
|
-
isDropTarget: v == null ? void 0 : v.isDropTarget
|
|
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.");
|
|
416
|
-
}, [
|
|
417
|
-
i.textValue
|
|
418
|
-
]);
|
|
419
|
-
let k = e.href ? "a" : "div";
|
|
420
|
-
return /* @__PURE__ */ s.createElement(k, {
|
|
421
|
-
...M(b, f, g == null ? void 0 : g.dragProps, v == null ? void 0 : v.dropProps),
|
|
422
|
-
...P,
|
|
423
|
-
ref: l,
|
|
424
|
-
"data-allows-dragging": !!a || void 0,
|
|
425
|
-
"data-selected": c.isSelected || void 0,
|
|
426
|
-
"data-disabled": c.isDisabled || void 0,
|
|
427
|
-
"data-hovered": h || void 0,
|
|
428
|
-
"data-focused": c.isFocused || void 0,
|
|
429
|
-
"data-focus-visible": c.isFocusVisible || void 0,
|
|
430
|
-
"data-pressed": c.isPressed || void 0,
|
|
431
|
-
"data-dragging": x || void 0,
|
|
432
|
-
"data-drop-target": (v == null ? void 0 : v.isDropTarget) || void 0,
|
|
433
|
-
"data-selection-mode": d.selectionManager.selectionMode === "none" ? void 0 : d.selectionManager.selectionMode
|
|
434
|
-
}, /* @__PURE__ */ s.createElement(oe, {
|
|
435
|
-
values: [
|
|
436
|
-
[
|
|
437
|
-
Me,
|
|
438
|
-
{
|
|
439
|
-
slots: {
|
|
440
|
-
[ge]: n,
|
|
441
|
-
label: n,
|
|
442
|
-
description: $
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
]
|
|
446
|
-
]
|
|
447
|
-
}, P.children));
|
|
448
|
-
});
|
|
449
|
-
function Qe(o, e) {
|
|
450
|
-
e = q(e);
|
|
451
|
-
let { dragAndDropHooks: r, dropState: i } = m(N), { dropIndicatorProps: l, isHidden: d, isDropTarget: t } = r.useDropIndicator(o, i, e);
|
|
452
|
-
return d ? null : /* @__PURE__ */ s.createElement(Ye, {
|
|
453
|
-
...o,
|
|
454
|
-
dropIndicatorProps: l,
|
|
455
|
-
isDropTarget: t,
|
|
456
|
-
ref: e
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
function Xe(o, e) {
|
|
460
|
-
let { dropIndicatorProps: r, isDropTarget: i, ...l } = o, d = H({
|
|
461
|
-
...l,
|
|
462
|
-
defaultClassName: "react-aria-DropIndicator",
|
|
463
|
-
values: {
|
|
464
|
-
isDropTarget: i
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
return /* @__PURE__ */ s.createElement("div", {
|
|
468
|
-
...r,
|
|
469
|
-
...d,
|
|
470
|
-
// eslint-disable-next-line
|
|
471
|
-
role: "option",
|
|
472
|
-
ref: e,
|
|
473
|
-
"data-drop-target": i || void 0
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
const Ye = /* @__PURE__ */ re(Xe);
|
|
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(() => ({
|
|
479
|
-
onLoadMore: a,
|
|
480
|
-
collection: l == null ? void 0 : l.collection,
|
|
481
|
-
sentinelRef: n,
|
|
482
|
-
scrollOffset: u
|
|
483
|
-
}), [
|
|
484
|
-
a,
|
|
485
|
-
u,
|
|
486
|
-
l == null ? void 0 : l.collection
|
|
487
|
-
]);
|
|
488
|
-
De($, n);
|
|
489
|
-
let c = H({
|
|
490
|
-
...b,
|
|
491
|
-
id: void 0,
|
|
492
|
-
children: i.rendered,
|
|
493
|
-
defaultClassName: "react-aria-ListBoxLoadingIndicator",
|
|
494
|
-
values: null
|
|
495
|
-
}), f = {
|
|
496
|
-
// For Android talkback
|
|
497
|
-
tabIndex: -1
|
|
498
|
-
};
|
|
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", {
|
|
500
|
-
style: {
|
|
501
|
-
position: "relative",
|
|
502
|
-
width: 0,
|
|
503
|
-
height: 0
|
|
504
|
-
},
|
|
505
|
-
inert: Be(!0)
|
|
506
|
-
}, /* @__PURE__ */ s.createElement("div", {
|
|
507
|
-
"data-testid": "loadMoreSentinel",
|
|
508
|
-
ref: n,
|
|
509
|
-
style: {
|
|
510
|
-
position: "absolute",
|
|
511
|
-
height: 1,
|
|
512
|
-
width: 1
|
|
513
|
-
}
|
|
514
|
-
})), t && c.children && /* @__PURE__ */ s.createElement("div", {
|
|
515
|
-
...M(L(e), f),
|
|
516
|
-
...c,
|
|
517
|
-
// aria-selected isn't needed here since this option is not selectable.
|
|
518
|
-
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
519
|
-
role: "option",
|
|
520
|
-
ref: r
|
|
521
|
-
}, c.children));
|
|
522
|
-
});
|
|
523
|
-
export {
|
|
524
|
-
ho as $,
|
|
525
|
-
Po as a,
|
|
526
|
-
xo as b,
|
|
527
|
-
j as c,
|
|
528
|
-
We as d,
|
|
529
|
-
ne as e,
|
|
530
|
-
_ as f
|
|
531
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),n=require("./clsx-C11secjj.cjs"),t=require("./ListBoxSection-DtsigmC1.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,15 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as i } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import { s as t } from "./ListBoxSection-Cv-gN76G.js";
|
|
4
|
-
const l = ({ className: o, children: s, ...m }) => /* @__PURE__ */ r(
|
|
5
|
-
"button",
|
|
6
|
-
{
|
|
7
|
-
type: "button",
|
|
8
|
-
className: i(t.listBoxItem, t.listBoxButton, o),
|
|
9
|
-
...m,
|
|
10
|
-
children: s
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
export {
|
|
14
|
-
l as L
|
|
15
|
-
};
|