@midas-ds/components 12.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccordionItem-C9dBt-tQ.js +335 -0
- package/AccordionItem-SOfjXh3V.cjs +1 -0
- package/{BadgeContainer-DGJGJMPi.js → BadgeContainer-iNNgJKD9.js} +8 -8
- package/BadgeContainer-su0iCJKy.cjs +1 -0
- package/Breadcrumbs-BAHJMPsu.js +271 -0
- package/Breadcrumbs-DUcHHI_2.cjs +1 -0
- package/Button-CMIbSc4-.cjs +1 -0
- package/{Button-DtC_ZOyd.js → Button-DD5_S-tD.js} +155 -161
- package/{Button-akT6Hvug.js → Button-DYcmg49Z.js} +2 -2
- package/{Button-DQm2iqKU.cjs → Button-DrL5Jv-s.cjs} +1 -1
- package/Button.module-BNLcvARn.cjs +1 -0
- package/Button.module-Bax2YU6N.js +14 -0
- package/ButtonGroup-ClYTgaRc.cjs +1 -0
- package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
- package/CHANGELOG.md +65 -0
- package/Card-BDDyGAMA.js +131 -0
- package/Card-mj5lCIR4.cjs +1 -0
- package/{CharacterCounter-DQJVM-mZ.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
- package/CharacterCounter-DT7A0wWP.js +22 -0
- package/Checkbox-BtM2rFh9.js +278 -0
- package/Checkbox-CvdIG43J.cjs +1 -0
- package/CheckboxGroup-C94as9Xt.cjs +1 -0
- package/CheckboxGroup-CjcDYBRk.js +157 -0
- package/Collection-B0_WAieZ.js +625 -0
- package/Collection-BvWp2xBd.cjs +1 -0
- package/{ColorSchemeSwitch-DyZ9FAKG.js → ColorSchemeSwitch-C4PMYeD5.js} +20 -28
- package/{ColorSchemeSwitch-DtyJ9-5B.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +3 -3
- package/ComboBox-B2EmfOyr.cjs +1 -0
- package/{ComboBox-Dn3tQzri.js → ComboBox-BWXJZyOR.js} +522 -507
- package/DateField-CcQJYDLD.js +47 -0
- package/DateField-IpCiF81R.cjs +1 -0
- package/{DateInputDivider-CJEGWmG0.js → DateInputDivider-CXkUdlzc.js} +936 -839
- package/DateInputDivider-Cf5GZHlM.cjs +1 -0
- package/DateRangePicker-B2BJO1KC.js +889 -0
- package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
- package/Dialog-B8swxl24.js +1643 -0
- package/Dialog-DR6nEqMT.cjs +1 -0
- package/Dialog-DgJobm71.cjs +1 -0
- package/Dialog-P3frHOdq.js +240 -0
- package/DragAndDrop-Dw8JZmrn.cjs +1 -0
- package/DragAndDrop-PrUJv--B.js +75 -0
- package/{Dropdown-BWbdSQ9U.js → Dropdown-CIvWpN3v.js} +8 -8
- package/{Dropdown-CJ-sujKv.cjs → Dropdown-DJ2vWAqk.cjs} +2 -2
- 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-Db5wZrw6.cjs → Grid-WbEkSCGh.cjs} +1 -1
- package/{Grid-B2av0vt8.js → Grid-s8ovKDi8.js} +1 -1
- package/GridItem-CIVF1fRW.cjs +1 -0
- package/GridItem-D3FZyyO-.js +243 -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-CqjnTYaa.cjs +1 -0
- package/InfoBanner-CrA8MS3v.js +83 -0
- package/{Input-BnpBRnJz.js → Input-BLVRv0FK.js} +9 -9
- package/{Input-DIhhWEPW.cjs → Input-CzMx2mfl.cjs} +1 -1
- package/{Label-ByWt6Lfh.js → Label-BG7G0iyG.js} +24 -28
- package/Label-C00qz3kQ.cjs +1 -0
- package/Layout-Bta_Cpq_.cjs +16 -0
- package/Layout-CG-Qxr_1.js +482 -0
- package/{Link-Dnnv00g9.js → Link-BtxKZ0h3.js} +16 -16
- package/Link-Bx6avHVl.cjs +6 -0
- package/Link-CbFSuEI1.js +73 -0
- package/Link-wM7cVPlS.cjs +1 -0
- package/LinkButton-BvXu6vAH.cjs +6 -0
- package/LinkButton-D3EnZ65v.js +69 -0
- package/ListBox-ICZKGluC.cjs +1 -0
- package/ListBox-LncMQt6I.js +523 -0
- package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
- package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
- package/ListBoxSection-BCPv9H50.js +1085 -0
- package/ListBoxSection-Dx75ZinL.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-CdXHEJh6.js +53 -0
- package/ProgressBar-CjuHokVZ.cjs +1 -0
- package/Radio-Bll-7H8O.cjs +1 -0
- package/Radio-DoWx2AE1.js +333 -0
- package/RangeCalendar-A4WQIG7P.cjs +6 -0
- package/{RangeCalendar-DGGMbb0j.js → RangeCalendar-D7eFVAPP.js} +638 -630
- package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
- package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
- package/{SearchField-Ma3KB8Em.cjs → SearchField-BbrUZpQm.cjs} +2 -2
- package/{SearchField-B0dlPqsW.js → SearchField-F2FKgYds.js} +29 -33
- package/Select-BnbDXwgD.cjs +1 -0
- package/Select-Dpi3LhbI.js +654 -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-BpYj25p8.js +37 -0
- package/Skeleton-DMOxEwnd.cjs +1 -0
- package/Spinner-D1UBuLy4.cjs +6 -0
- package/Spinner-DTKb_LAA.js +47 -0
- package/TabList-D4WwgQY3.cjs +1 -0
- package/TabList-D9tl2s85.js +397 -0
- package/Table-C6k3PiiC.cjs +16 -0
- package/{Table-CTS0J_sQ.js → Table-CkN3y69S.js} +856 -798
- package/Tag-7dHEMQum.cjs +1 -0
- package/Tag-BUJ20HHw.js +765 -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-BCikUXaD.cjs +1 -0
- package/TextArea-h5_oBQH1.js +125 -0
- package/TextField-Bm5916AD.cjs +1 -0
- package/TextField-_UY8CXtW.js +134 -0
- package/TextField.module-C9Zm9unF.js +13 -0
- package/TextField.module-GTQtNO0r.cjs +1 -0
- package/{Toast-BnzpC_5v.js → Toast-BBkWczCk.js} +202 -214
- package/{Toast-BEh5yYzO.cjs → Toast-DclaxvZM.cjs} +1 -1
- package/ToggleButtonGroup-BGG64PK1.js +214 -0
- package/ToggleButtonGroup-Da330GRT.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 +384 -0
- package/theme/generated-tokens.d.ts +334 -0
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +4 -1
- package/theme/index.js +4037 -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-CwwVnA_a.js +0 -131
- 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-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/Spinner-yHx_DX_4.cjs +0 -6
- 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
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
import { $ as J, a as ue, b as fe, c as pe, d as be, e as $e, f as ge, g as K, h as ve } from "./Collection-B0_WAieZ.js";
|
|
2
|
+
import { $ as Q, b as X, a as V, f as Y, g as me, d as he } from "./utils-Cpcjg55U.js";
|
|
3
|
+
import { $ as N, a as xe, b as Pe, c as Z, d as De } from "./DragAndDrop-PrUJv--B.js";
|
|
4
|
+
import { $ as ye, a as Se, b as ke, c as Ee } from "./Separator-CM0KPvsX.js";
|
|
5
|
+
import { b as Me, $ as Fe, c as we } from "./ListKeyboardDelegate-CVxkAn5D.js";
|
|
6
|
+
import { $ as Be } from "./Text-Be7WIOwv.js";
|
|
7
|
+
import { c as ee, a as E, b as j, e as He } from "./mergeProps-BSsN7Bgk.js";
|
|
8
|
+
import { $ as H } from "./filterDOMProps-wsa9OcNI.js";
|
|
9
|
+
import { $ as Ie } from "./inertValue-B7loUihk.js";
|
|
10
|
+
import n, { forwardRef as oe, createContext as te, useContext as x, useEffect as ae, useRef as T, useMemo as re } from "react";
|
|
11
|
+
import { d as Ve } from "./usePress-DMUpU0GU.js";
|
|
12
|
+
import { h as Le, i as Oe, $ as le, a as G } from "./useHover-D6bNIkU0.js";
|
|
13
|
+
import { d as _e } from "./SelectionManager-Bq-Gw1UT.js";
|
|
14
|
+
import { $ as Ae } from "./useFocusWithin-ClMkhYcq.js";
|
|
15
|
+
import { a as Ce } from "./Button-DD5_S-tD.js";
|
|
16
|
+
import { a as Te, $ as Ne } from "./useListState-pixYqSLl.js";
|
|
17
|
+
import { $ as Ue } from "./context-CGNJ3grH.js";
|
|
18
|
+
import { $ as ze } from "./useFocusRing-DMo8ctYV.js";
|
|
19
|
+
import { a as Ke } from "./FocusScope-Bj40Ir-g.js";
|
|
20
|
+
const R = /* @__PURE__ */ new WeakMap();
|
|
21
|
+
function Re(t) {
|
|
22
|
+
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
23
|
+
}
|
|
24
|
+
function We(t, e) {
|
|
25
|
+
let r = R.get(t);
|
|
26
|
+
if (!r) throw new Error("Unknown list");
|
|
27
|
+
return `${r.id}-option-${Re(e)}`;
|
|
28
|
+
}
|
|
29
|
+
function qe(t, e, r) {
|
|
30
|
+
let o = H(t, {
|
|
31
|
+
labelable: !0
|
|
32
|
+
}), l = t.selectionBehavior || "toggle", i = t.linkBehavior || (l === "replace" ? "action" : "override");
|
|
33
|
+
l === "toggle" && i === "action" && (i = "override");
|
|
34
|
+
let { listProps: a } = ye({
|
|
35
|
+
...t,
|
|
36
|
+
ref: r,
|
|
37
|
+
selectionManager: e.selectionManager,
|
|
38
|
+
collection: e.collection,
|
|
39
|
+
disabledKeys: e.disabledKeys,
|
|
40
|
+
linkBehavior: i
|
|
41
|
+
}), { focusWithinProps: d } = Ae({
|
|
42
|
+
onFocusWithin: t.onFocus,
|
|
43
|
+
onBlurWithin: t.onBlur,
|
|
44
|
+
onFocusWithinChange: t.onFocusChange
|
|
45
|
+
}), s = ee(t.id);
|
|
46
|
+
R.set(e, {
|
|
47
|
+
id: s,
|
|
48
|
+
shouldUseVirtualFocus: t.shouldUseVirtualFocus,
|
|
49
|
+
shouldSelectOnPressUp: t.shouldSelectOnPressUp,
|
|
50
|
+
shouldFocusOnHover: t.shouldFocusOnHover,
|
|
51
|
+
isVirtualized: t.isVirtualized,
|
|
52
|
+
onAction: t.onAction,
|
|
53
|
+
linkBehavior: i
|
|
54
|
+
});
|
|
55
|
+
let { labelProps: f, fieldProps: c } = Ce({
|
|
56
|
+
...t,
|
|
57
|
+
id: s,
|
|
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: f,
|
|
64
|
+
listBoxProps: E(o, d, e.selectionManager.selectionMode === "multiple" ? {
|
|
65
|
+
"aria-multiselectable": "true"
|
|
66
|
+
} : {}, {
|
|
67
|
+
role: "listbox",
|
|
68
|
+
...E(c, a)
|
|
69
|
+
})
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function je(t, e, r) {
|
|
73
|
+
var o, l;
|
|
74
|
+
let { key: i } = t, a = R.get(e);
|
|
75
|
+
var d;
|
|
76
|
+
let s = (d = t.isDisabled) !== null && d !== void 0 ? d : e.selectionManager.isDisabled(i);
|
|
77
|
+
var f;
|
|
78
|
+
let c = (f = t.isSelected) !== null && f !== void 0 ? f : e.selectionManager.isSelected(i);
|
|
79
|
+
var b;
|
|
80
|
+
let u = (b = t.shouldSelectOnPressUp) !== null && b !== void 0 ? b : a == null ? void 0 : a.shouldSelectOnPressUp;
|
|
81
|
+
var m;
|
|
82
|
+
let g = (m = t.shouldFocusOnHover) !== null && m !== void 0 ? m : a == null ? void 0 : a.shouldFocusOnHover;
|
|
83
|
+
var v;
|
|
84
|
+
let $ = (v = t.shouldUseVirtualFocus) !== null && v !== void 0 ? v : a == null ? void 0 : a.shouldUseVirtualFocus;
|
|
85
|
+
var P;
|
|
86
|
+
let k = (P = t.isVirtualized) !== null && P !== void 0 ? P : a == null ? void 0 : a.isVirtualized, M = j(), D = j(), y = {
|
|
87
|
+
role: "option",
|
|
88
|
+
"aria-disabled": s || void 0,
|
|
89
|
+
"aria-selected": e.selectionManager.selectionMode !== "none" ? c : void 0
|
|
90
|
+
};
|
|
91
|
+
Le() && Oe() || (y["aria-label"] = t["aria-label"], y["aria-labelledby"] = M, y["aria-describedby"] = D);
|
|
92
|
+
let p = e.collection.getItem(i);
|
|
93
|
+
if (k) {
|
|
94
|
+
let h = Number(p == null ? void 0 : p.index);
|
|
95
|
+
y["aria-posinset"] = Number.isNaN(h) ? void 0 : h + 1, y["aria-setsize"] = Se(e.collection);
|
|
96
|
+
}
|
|
97
|
+
let O = a != null && a.onAction ? () => {
|
|
98
|
+
var h;
|
|
99
|
+
return a == null || (h = a.onAction) === null || h === void 0 ? void 0 : h.call(a, i);
|
|
100
|
+
} : void 0, F = We(e, i), { itemProps: S, isPressed: w, isFocused: B, hasAction: _, allowsSelection: A } = _e({
|
|
101
|
+
selectionManager: e.selectionManager,
|
|
102
|
+
key: i,
|
|
103
|
+
ref: r,
|
|
104
|
+
shouldSelectOnPressUp: u,
|
|
105
|
+
allowsDifferentPressOrigin: u && g,
|
|
106
|
+
isVirtualized: k,
|
|
107
|
+
shouldUseVirtualFocus: $,
|
|
108
|
+
isDisabled: s,
|
|
109
|
+
onAction: O || !(p == null || (o = p.props) === null || o === void 0) && o.onAction ? He(p == null || (l = p.props) === null || l === void 0 ? void 0 : l.onAction, O) : void 0,
|
|
110
|
+
linkBehavior: a == null ? void 0 : a.linkBehavior,
|
|
111
|
+
id: F
|
|
112
|
+
}), { hoverProps: U } = le({
|
|
113
|
+
isDisabled: s || !g,
|
|
114
|
+
onHoverStart() {
|
|
115
|
+
G() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(i));
|
|
116
|
+
}
|
|
117
|
+
}), I = H(p == null ? void 0 : p.props);
|
|
118
|
+
delete I.id;
|
|
119
|
+
let C = Ve(p == null ? void 0 : p.props);
|
|
120
|
+
return {
|
|
121
|
+
optionProps: {
|
|
122
|
+
...y,
|
|
123
|
+
...E(I, S, U, C),
|
|
124
|
+
id: F
|
|
125
|
+
},
|
|
126
|
+
labelProps: {
|
|
127
|
+
id: M
|
|
128
|
+
},
|
|
129
|
+
descriptionProps: {
|
|
130
|
+
id: D
|
|
131
|
+
},
|
|
132
|
+
isFocused: B,
|
|
133
|
+
isFocusVisible: B && e.selectionManager.isFocused && G(),
|
|
134
|
+
isSelected: c,
|
|
135
|
+
isDisabled: s,
|
|
136
|
+
isPressed: w,
|
|
137
|
+
allowsSelection: A,
|
|
138
|
+
hasAction: _
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function Ge(t) {
|
|
142
|
+
let { heading: e, "aria-label": r } = t, o = ee();
|
|
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: o,
|
|
152
|
+
role: "presentation"
|
|
153
|
+
} : {},
|
|
154
|
+
groupProps: {
|
|
155
|
+
role: "group",
|
|
156
|
+
"aria-label": r,
|
|
157
|
+
"aria-labelledby": e ? o : void 0
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
const ie = /* @__PURE__ */ te(null), L = /* @__PURE__ */ te(null), ho = /* @__PURE__ */ oe(function(e, r) {
|
|
162
|
+
[e, r] = Q(e, r, ie);
|
|
163
|
+
let o = x(L);
|
|
164
|
+
return o ? /* @__PURE__ */ n.createElement(de, {
|
|
165
|
+
state: o,
|
|
166
|
+
props: e,
|
|
167
|
+
listBoxRef: r
|
|
168
|
+
}) : /* @__PURE__ */ n.createElement(fe, {
|
|
169
|
+
content: /* @__PURE__ */ n.createElement(pe, e)
|
|
170
|
+
}, (l) => /* @__PURE__ */ n.createElement(Je, {
|
|
171
|
+
props: e,
|
|
172
|
+
listBoxRef: r,
|
|
173
|
+
collection: l
|
|
174
|
+
}));
|
|
175
|
+
});
|
|
176
|
+
function Je({ props: t, listBoxRef: e, collection: r }) {
|
|
177
|
+
t = {
|
|
178
|
+
...t,
|
|
179
|
+
collection: r,
|
|
180
|
+
children: null,
|
|
181
|
+
items: null
|
|
182
|
+
};
|
|
183
|
+
let { layoutDelegate: o } = x(K), l = Ne({
|
|
184
|
+
...t,
|
|
185
|
+
layoutDelegate: o
|
|
186
|
+
});
|
|
187
|
+
return /* @__PURE__ */ n.createElement(de, {
|
|
188
|
+
state: l,
|
|
189
|
+
props: t,
|
|
190
|
+
listBoxRef: e
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function de({ state: t, props: e, listBoxRef: r }) {
|
|
194
|
+
[e, r] = Q(e, r, Me);
|
|
195
|
+
let { dragAndDropHooks: o, layout: l = "stack", orientation: i = "vertical", filter: a } = e, d = Te(t, a), { collection: s, selectionManager: f } = d, c = !!(o != null && o.useDraggableCollectionState), b = !!(o != null && o.useDroppableCollectionState), { direction: u } = Ue(), { disabledBehavior: m, disabledKeys: g } = f, v = Fe({
|
|
196
|
+
usage: "search",
|
|
197
|
+
sensitivity: "base"
|
|
198
|
+
}), { isVirtualized: $, layoutDelegate: P, dropTargetDelegate: k, CollectionRoot: M } = x(K), D = re(() => e.keyboardDelegate || new we({
|
|
199
|
+
collection: s,
|
|
200
|
+
collator: v,
|
|
201
|
+
ref: r,
|
|
202
|
+
disabledKeys: g,
|
|
203
|
+
disabledBehavior: m,
|
|
204
|
+
layout: l,
|
|
205
|
+
orientation: i,
|
|
206
|
+
direction: u,
|
|
207
|
+
layoutDelegate: P
|
|
208
|
+
}), [
|
|
209
|
+
s,
|
|
210
|
+
v,
|
|
211
|
+
r,
|
|
212
|
+
m,
|
|
213
|
+
g,
|
|
214
|
+
i,
|
|
215
|
+
u,
|
|
216
|
+
e.keyboardDelegate,
|
|
217
|
+
l,
|
|
218
|
+
P
|
|
219
|
+
]), { listBoxProps: y } = qe({
|
|
220
|
+
...e,
|
|
221
|
+
shouldSelectOnPressUp: c || e.shouldSelectOnPressUp,
|
|
222
|
+
keyboardDelegate: D,
|
|
223
|
+
isVirtualized: $
|
|
224
|
+
}, d, r), p = T(c), O = T(b);
|
|
225
|
+
ae(() => {
|
|
226
|
+
process.env.NODE_ENV !== "production" && (p.current !== c && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), O.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
|
+
}, [
|
|
228
|
+
c,
|
|
229
|
+
b
|
|
230
|
+
]);
|
|
231
|
+
let F, S, w, B = !1, _ = null, A = T(null);
|
|
232
|
+
if (c && o) {
|
|
233
|
+
F = o.useDraggableCollectionState({
|
|
234
|
+
collection: s,
|
|
235
|
+
selectionManager: f,
|
|
236
|
+
preview: o.renderDragPreview ? A : void 0
|
|
237
|
+
}), o.useDraggableCollection({}, F, r);
|
|
238
|
+
let z = o.DragPreview;
|
|
239
|
+
_ = o.renderDragPreview ? /* @__PURE__ */ n.createElement(z, {
|
|
240
|
+
ref: A
|
|
241
|
+
}, o.renderDragPreview) : null;
|
|
242
|
+
}
|
|
243
|
+
if (b && o) {
|
|
244
|
+
S = o.useDroppableCollectionState({
|
|
245
|
+
collection: s,
|
|
246
|
+
selectionManager: f
|
|
247
|
+
});
|
|
248
|
+
let z = o.dropTargetDelegate || k || new o.ListDropTargetDelegate(s, r, {
|
|
249
|
+
orientation: i,
|
|
250
|
+
layout: l,
|
|
251
|
+
direction: u
|
|
252
|
+
});
|
|
253
|
+
w = o.useDroppableCollection({
|
|
254
|
+
keyboardDelegate: D,
|
|
255
|
+
dropTargetDelegate: z
|
|
256
|
+
}, S, r), B = S.isDropTarget({
|
|
257
|
+
type: "root"
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
let { focusProps: U, isFocused: I, isFocusVisible: C } = ze(), h = d.collection.size === 0, W = {
|
|
261
|
+
isDropTarget: B,
|
|
262
|
+
isEmpty: h,
|
|
263
|
+
isFocused: I,
|
|
264
|
+
isFocusVisible: C,
|
|
265
|
+
layout: e.layout || "stack",
|
|
266
|
+
state: d
|
|
267
|
+
}, se = V({
|
|
268
|
+
className: e.className,
|
|
269
|
+
style: e.style,
|
|
270
|
+
defaultClassName: "react-aria-ListBox",
|
|
271
|
+
values: W
|
|
272
|
+
}), q = null;
|
|
273
|
+
h && e.renderEmptyState && (q = /* @__PURE__ */ n.createElement("div", {
|
|
274
|
+
// eslint-disable-next-line
|
|
275
|
+
role: "option",
|
|
276
|
+
style: {
|
|
277
|
+
display: "contents"
|
|
278
|
+
}
|
|
279
|
+
}, e.renderEmptyState(W)));
|
|
280
|
+
let ce = H(e, {
|
|
281
|
+
global: !0
|
|
282
|
+
});
|
|
283
|
+
return /* @__PURE__ */ n.createElement(Ke, null, /* @__PURE__ */ n.createElement("div", {
|
|
284
|
+
...E(ce, se, y, U, w == null ? void 0 : w.collectionProps),
|
|
285
|
+
ref: r,
|
|
286
|
+
slot: e.slot || void 0,
|
|
287
|
+
onScroll: e.onScroll,
|
|
288
|
+
"data-drop-target": B || void 0,
|
|
289
|
+
"data-empty": h || void 0,
|
|
290
|
+
"data-focused": I || void 0,
|
|
291
|
+
"data-focus-visible": C || void 0,
|
|
292
|
+
"data-layout": e.layout || "stack",
|
|
293
|
+
"data-orientation": e.orientation || "vertical"
|
|
294
|
+
}, /* @__PURE__ */ n.createElement(Y, {
|
|
295
|
+
values: [
|
|
296
|
+
[
|
|
297
|
+
ie,
|
|
298
|
+
e
|
|
299
|
+
],
|
|
300
|
+
[
|
|
301
|
+
L,
|
|
302
|
+
d
|
|
303
|
+
],
|
|
304
|
+
[
|
|
305
|
+
N,
|
|
306
|
+
{
|
|
307
|
+
dragAndDropHooks: o,
|
|
308
|
+
dragState: F,
|
|
309
|
+
dropState: S
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
[
|
|
313
|
+
ke,
|
|
314
|
+
{
|
|
315
|
+
elementType: "div"
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
[
|
|
319
|
+
Pe,
|
|
320
|
+
{
|
|
321
|
+
render: Qe
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
[
|
|
325
|
+
ve,
|
|
326
|
+
{
|
|
327
|
+
name: "ListBoxSection",
|
|
328
|
+
render: ne
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
]
|
|
332
|
+
}, /* @__PURE__ */ n.createElement(M, {
|
|
333
|
+
collection: s,
|
|
334
|
+
scrollRef: r,
|
|
335
|
+
persistedKeys: De(f, o, S),
|
|
336
|
+
renderDropIndicator: Z(o, S)
|
|
337
|
+
})), q, _));
|
|
338
|
+
}
|
|
339
|
+
function ne(t, e, r, o = "react-aria-ListBoxSection") {
|
|
340
|
+
let l = x(L), { dragAndDropHooks: i, dropState: a } = x(N), { CollectionBranch: d } = x(K), [s, f] = he();
|
|
341
|
+
var c;
|
|
342
|
+
let { headingProps: b, groupProps: u } = Ge({
|
|
343
|
+
heading: f,
|
|
344
|
+
"aria-label": (c = t["aria-label"]) !== null && c !== void 0 ? c : void 0
|
|
345
|
+
}), m = V({
|
|
346
|
+
defaultClassName: o,
|
|
347
|
+
className: t.className,
|
|
348
|
+
style: t.style,
|
|
349
|
+
values: {}
|
|
350
|
+
}), g = H(t, {
|
|
351
|
+
global: !0
|
|
352
|
+
});
|
|
353
|
+
return delete g.id, /* @__PURE__ */ n.createElement("section", {
|
|
354
|
+
...E(g, m, u),
|
|
355
|
+
ref: e
|
|
356
|
+
}, /* @__PURE__ */ n.createElement(Ee.Provider, {
|
|
357
|
+
value: {
|
|
358
|
+
...b,
|
|
359
|
+
ref: s
|
|
360
|
+
}
|
|
361
|
+
}, /* @__PURE__ */ n.createElement(d, {
|
|
362
|
+
collection: l.collection,
|
|
363
|
+
parent: r,
|
|
364
|
+
renderDropIndicator: Z(i, a)
|
|
365
|
+
})));
|
|
366
|
+
}
|
|
367
|
+
const xo = /* @__PURE__ */ ue($e, ne), Po = /* @__PURE__ */ J(be, function(e, r, o) {
|
|
368
|
+
let l = X(r), i = x(L), { dragAndDropHooks: a, dragState: d, dropState: s } = x(N), { optionProps: f, labelProps: c, descriptionProps: b, ...u } = je({
|
|
369
|
+
key: o.key,
|
|
370
|
+
"aria-label": e == null ? void 0 : e["aria-label"]
|
|
371
|
+
}, i, l), { hoverProps: m, isHovered: g } = le({
|
|
372
|
+
isDisabled: !u.allowsSelection && !u.hasAction,
|
|
373
|
+
onHoverStart: o.props.onHoverStart,
|
|
374
|
+
onHoverChange: o.props.onHoverChange,
|
|
375
|
+
onHoverEnd: o.props.onHoverEnd
|
|
376
|
+
}), v = null;
|
|
377
|
+
d && a && (v = a.useDraggableItem({
|
|
378
|
+
key: o.key
|
|
379
|
+
}, d));
|
|
380
|
+
let $ = null;
|
|
381
|
+
s && a && ($ = a.useDroppableItem({
|
|
382
|
+
target: {
|
|
383
|
+
type: "item",
|
|
384
|
+
key: o.key,
|
|
385
|
+
dropPosition: "on"
|
|
386
|
+
}
|
|
387
|
+
}, s, l));
|
|
388
|
+
let P = d && d.isDragging(o.key), k = V({
|
|
389
|
+
...e,
|
|
390
|
+
id: void 0,
|
|
391
|
+
children: e.children,
|
|
392
|
+
defaultClassName: "react-aria-ListBoxItem",
|
|
393
|
+
values: {
|
|
394
|
+
...u,
|
|
395
|
+
isHovered: g,
|
|
396
|
+
selectionMode: i.selectionManager.selectionMode,
|
|
397
|
+
selectionBehavior: i.selectionManager.selectionBehavior,
|
|
398
|
+
allowsDragging: !!d,
|
|
399
|
+
isDragging: P,
|
|
400
|
+
isDropTarget: $ == null ? void 0 : $.isDropTarget
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
ae(() => {
|
|
404
|
+
!o.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.");
|
|
405
|
+
}, [
|
|
406
|
+
o.textValue
|
|
407
|
+
]);
|
|
408
|
+
let M = e.href ? "a" : "div", D = H(e, {
|
|
409
|
+
global: !0
|
|
410
|
+
});
|
|
411
|
+
return delete D.id, delete D.onClick, /* @__PURE__ */ n.createElement(M, {
|
|
412
|
+
...E(D, k, f, m, v == null ? void 0 : v.dragProps, $ == null ? void 0 : $.dropProps),
|
|
413
|
+
ref: l,
|
|
414
|
+
"data-allows-dragging": !!d || void 0,
|
|
415
|
+
"data-selected": u.isSelected || void 0,
|
|
416
|
+
"data-disabled": u.isDisabled || void 0,
|
|
417
|
+
"data-hovered": g || void 0,
|
|
418
|
+
"data-focused": u.isFocused || void 0,
|
|
419
|
+
"data-focus-visible": u.isFocusVisible || void 0,
|
|
420
|
+
"data-pressed": u.isPressed || void 0,
|
|
421
|
+
"data-dragging": P || void 0,
|
|
422
|
+
"data-drop-target": ($ == null ? void 0 : $.isDropTarget) || void 0,
|
|
423
|
+
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
|
|
424
|
+
}, /* @__PURE__ */ n.createElement(Y, {
|
|
425
|
+
values: [
|
|
426
|
+
[
|
|
427
|
+
Be,
|
|
428
|
+
{
|
|
429
|
+
slots: {
|
|
430
|
+
[me]: c,
|
|
431
|
+
label: c,
|
|
432
|
+
description: b
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
]
|
|
437
|
+
}, k.children));
|
|
438
|
+
});
|
|
439
|
+
function Qe(t, e) {
|
|
440
|
+
e = X(e);
|
|
441
|
+
let { dragAndDropHooks: r, dropState: o } = x(N), { dropIndicatorProps: l, isHidden: i, isDropTarget: a } = r.useDropIndicator(t, o, e);
|
|
442
|
+
return i ? null : /* @__PURE__ */ n.createElement(Ye, {
|
|
443
|
+
...t,
|
|
444
|
+
dropIndicatorProps: l,
|
|
445
|
+
isDropTarget: a,
|
|
446
|
+
ref: e
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
function Xe(t, e) {
|
|
450
|
+
let { dropIndicatorProps: r, isDropTarget: o, ...l } = t, i = V({
|
|
451
|
+
...l,
|
|
452
|
+
defaultClassName: "react-aria-DropIndicator",
|
|
453
|
+
values: {
|
|
454
|
+
isDropTarget: o
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
return /* @__PURE__ */ n.createElement("div", {
|
|
458
|
+
...r,
|
|
459
|
+
...i,
|
|
460
|
+
// eslint-disable-next-line
|
|
461
|
+
role: "option",
|
|
462
|
+
ref: e,
|
|
463
|
+
"data-drop-target": o || void 0
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
const Ye = /* @__PURE__ */ oe(Xe), Do = J(ge, function(e, r, o) {
|
|
467
|
+
let l = x(L), { isLoading: i, onLoadMore: a, scrollOffset: d, ...s } = e, f = T(null), c = re(() => ({
|
|
468
|
+
onLoadMore: a,
|
|
469
|
+
collection: l == null ? void 0 : l.collection,
|
|
470
|
+
sentinelRef: f,
|
|
471
|
+
scrollOffset: d
|
|
472
|
+
}), [
|
|
473
|
+
a,
|
|
474
|
+
d,
|
|
475
|
+
l == null ? void 0 : l.collection
|
|
476
|
+
]);
|
|
477
|
+
xe(c, f);
|
|
478
|
+
let b = V({
|
|
479
|
+
...s,
|
|
480
|
+
id: void 0,
|
|
481
|
+
children: o.rendered,
|
|
482
|
+
defaultClassName: "react-aria-ListBoxLoadingIndicator",
|
|
483
|
+
values: null
|
|
484
|
+
}), u = {
|
|
485
|
+
// For Android talkback
|
|
486
|
+
tabIndex: -1
|
|
487
|
+
};
|
|
488
|
+
return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("div", {
|
|
489
|
+
style: {
|
|
490
|
+
position: "relative",
|
|
491
|
+
width: 0,
|
|
492
|
+
height: 0
|
|
493
|
+
},
|
|
494
|
+
inert: Ie(!0)
|
|
495
|
+
}, /* @__PURE__ */ n.createElement("div", {
|
|
496
|
+
"data-testid": "loadMoreSentinel",
|
|
497
|
+
ref: f,
|
|
498
|
+
style: {
|
|
499
|
+
position: "absolute",
|
|
500
|
+
height: 1,
|
|
501
|
+
width: 1
|
|
502
|
+
}
|
|
503
|
+
})), i && b.children && /* @__PURE__ */ n.createElement("div", {
|
|
504
|
+
...E(H(e, {
|
|
505
|
+
global: !0
|
|
506
|
+
}), u),
|
|
507
|
+
...b,
|
|
508
|
+
// aria-selected isn't needed here since this option is not selectable.
|
|
509
|
+
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
510
|
+
role: "option",
|
|
511
|
+
ref: r
|
|
512
|
+
}, b.children));
|
|
513
|
+
});
|
|
514
|
+
export {
|
|
515
|
+
Do as $,
|
|
516
|
+
ho as a,
|
|
517
|
+
Po as b,
|
|
518
|
+
xo as c,
|
|
519
|
+
R as d,
|
|
520
|
+
We as e,
|
|
521
|
+
ie as f,
|
|
522
|
+
L as g
|
|
523
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),r=require("./clsx-C11secjj.cjs"),n=require("./ListBoxSection-Dx75ZinL.cjs"),c=require("./ListBox-ICZKGluC.cjs"),l=require("./Spinner-D1UBuLy4.cjs"),d=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),x=({className:s,children:e,...o})=>t.jsx("button",{type:"button",className:r.clsx(n.styles.listBoxItem,n.styles.listBoxButton,s),...o,children:e}),u={"loading...":"Loading..."},m={"loading...":"Laddar..."},L={en:u,sv:m},B=({className:s,children:e,isLoading:o,...i})=>{const a=d.useLocalizedStringFormatter(L);return t.jsx(c.$eed445e0843c11d0$export$8e6d031a08cf56a1,{className:r.clsx(n.styles.listBoxLoadMoreItem,s),isLoading:o,...i,children:e||t.jsxs(t.Fragment,{children:[t.jsx(l.Spinner,{small:!0}),t.jsx("span",{"aria-hidden":!0,children:a.format("loading...")})]})})};exports.ListBoxButton=x;exports.ListBoxLoadMoreItem=B;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as t, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import { c as e } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import { s as a } from "./ListBoxSection-BCPv9H50.js";
|
|
4
|
+
import { $ as c } from "./ListBox-LncMQt6I.js";
|
|
5
|
+
import { S as l } from "./Spinner-DTKb_LAA.js";
|
|
6
|
+
import { u as p } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
7
|
+
const S = ({ className: o, children: s, ...r }) => /* @__PURE__ */ t(
|
|
8
|
+
"button",
|
|
9
|
+
{
|
|
10
|
+
type: "button",
|
|
11
|
+
className: e(a.listBoxItem, a.listBoxButton, o),
|
|
12
|
+
...r,
|
|
13
|
+
children: s
|
|
14
|
+
}
|
|
15
|
+
), x = { "loading...": "Loading..." }, u = { "loading...": "Laddar..." }, f = {
|
|
16
|
+
en: x,
|
|
17
|
+
sv: u
|
|
18
|
+
}, b = ({
|
|
19
|
+
className: o,
|
|
20
|
+
children: s,
|
|
21
|
+
isLoading: r,
|
|
22
|
+
...n
|
|
23
|
+
}) => {
|
|
24
|
+
const i = p(f);
|
|
25
|
+
return /* @__PURE__ */ t(
|
|
26
|
+
c,
|
|
27
|
+
{
|
|
28
|
+
className: e(a.listBoxLoadMoreItem, o),
|
|
29
|
+
isLoading: r,
|
|
30
|
+
...n,
|
|
31
|
+
children: s || /* @__PURE__ */ m(d, { children: [
|
|
32
|
+
/* @__PURE__ */ t(l, { small: !0 }),
|
|
33
|
+
/* @__PURE__ */ t("span", { "aria-hidden": !0, children: i.format("loading...") })
|
|
34
|
+
] })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
S as L,
|
|
40
|
+
b as a
|
|
41
|
+
};
|