@midas-ds/components 10.2.0 → 10.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccordionItem-BcsoC78F.cjs +1 -0
- package/{AccordionItem-DZT76sWu.js → AccordionItem-BqsgiVWV.js} +43 -41
- package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
- package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
- package/Breadcrumbs-CfW5IuyE.cjs +1 -0
- package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-D7eoibWk.js} +85 -73
- package/{Button-iSiWjocA.cjs → Button-BXY5ZhqI.cjs} +1 -1
- package/{Button-CbFRzRrF.js → Button-BZUo7vsZ.js} +2 -2
- package/Button-CFYdzG0H.js +341 -0
- package/Button-DExMoP5f.cjs +1 -0
- package/Button.module-DEQtBYe5.cjs +1 -0
- package/Button.module-tti8HGxs.js +14 -0
- package/CHANGELOG.md +48 -0
- package/{Card-CaKKKv9k.js → Card-BaWSgtSF.js} +5 -5
- package/Card-Cc1TNPcQ.cjs +1 -0
- package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
- package/CharacterCounter-cLhqPZlk.js +22 -0
- package/Checkbox-Co3h0hur.cjs +1 -0
- package/Checkbox-LuUwTZ3W.js +264 -0
- package/CheckboxGroup-CUA8_xSx.js +160 -0
- package/CheckboxGroup-DmUOM0xl.cjs +1 -0
- package/{Collection-C5ONNBqd.js → Collection--62xKPm9.js} +19 -18
- package/Collection-BtBX5IMY.cjs +1 -0
- package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-Cwono7Ap.js} +48 -32
- package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
- package/ComboBox-BBC7jhnm.cjs +1 -0
- package/{ComboBox-BCaqPEIH.js → ComboBox-HLIAbb2q.js} +360 -345
- package/DateField-B3VjOSde.cjs +1 -0
- package/DateField-CnLEi7uX.js +47 -0
- package/DateInputDivider-3BvwXXa9.cjs +1 -0
- package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-Bi5N-C0c.js} +73 -73
- package/DateRangePicker-BPlZ12r8.cjs +6 -0
- package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-CFOoGvut.js} +192 -189
- package/Dialog-CSnN6baf.cjs +1 -0
- package/{Dialog-CYxThuMl.js → Dialog-CtVrVuMr.js} +565 -538
- package/Dialog-SqciohRY.js +221 -0
- package/Dialog-pSSy1zwf.cjs +1 -0
- package/DragAndDrop-BoEd260f.cjs +1 -0
- package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-DkSTL28C.js} +8 -8
- package/{Dropdown-nkjzsVYX.js → Dropdown-CkBp70BH.js} +2 -2
- package/{Dropdown-CaGon9OR.cjs → Dropdown-DAsVShlt.cjs} +1 -1
- package/FieldError-B3YFj-an.js +23 -0
- package/{FieldError-CZikNDxX.js → FieldError-BbR-29BM.js} +8 -8
- package/{FieldError-DqdfJ3fs.cjs → FieldError-MVsU-Mgw.cjs} +1 -1
- package/{FieldError-BZw8UzBk.cjs → FieldError-bRTpchvr.cjs} +1 -1
- package/{FileUpload-ULwcYDxs.js → FileUpload-B4rv-wke.js} +502 -480
- package/{FileUpload-DYRZ0M9F.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
- package/{FocusScope-DwIqdYpQ.js → FocusScope-D_hwN_TJ.js} +38 -37
- package/FocusScope-vcXLOQiu.cjs +1 -0
- package/Group-CpkUzEAs.js +45 -0
- package/Group-DOpbdoAi.cjs +1 -0
- package/Heading-CKTR4sOz.cjs +1 -0
- package/{Heading-BY5-QN4S.js → Heading-NxtGri2i.js} +7 -7
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/{InfoBanner-CVIBFSWx.js → InfoBanner-CBUoad7A.js} +45 -36
- package/InfoBanner-CVry6Y8i.cjs +1 -0
- package/Input-LnjmFI1x.js +42 -0
- package/Input-MJji5hhq.cjs +1 -0
- package/Label-CNmTN1YY.cjs +1 -0
- package/Label-TVxwGZ-O.js +78 -0
- package/Layout-Dw-oCqxd.cjs +16 -0
- package/Layout-amz9BESl.js +498 -0
- package/{Link-B-nus-FT.js → Link-Bn8V3ZI0.js} +20 -19
- package/Link-CidjjqHb.cjs +1 -0
- package/{Link-DsnCtNeI.cjs → Link-D92ftFi2.cjs} +1 -1
- package/{Link-uFowN4qv.js → Link-DegonJfl.js} +1 -1
- package/LinkButton-CckYzfJ8.js +69 -0
- package/LinkButton-DKZ4z6zu.cjs +6 -0
- package/ListBox-BCz5-23H.cjs +1 -0
- package/{ListBox-DOi_y_Lt.js → ListBox-C-isJIHL.js} +56 -55
- package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-C_krklY0.js} +1 -1
- package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
- package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-BVR2xtOH.js} +9 -9
- package/ListBoxSection-CfQZoURJ.cjs +1 -0
- package/ListKeyboardDelegate-CPsZ7D83.cjs +1 -0
- package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-CY6t6y1t.js} +24 -15
- package/Logo-BpH0HC91.cjs +1 -0
- package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
- package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CfhSYL46.js} +28 -27
- package/OverlayArrow-DpZ1FqOd.cjs +1 -0
- package/Popover-C8VY1YKi.js +38 -0
- package/Popover-CnAsw3wI.cjs +1 -0
- package/{ProgressBar-gmAzSsrz.js → ProgressBar-BNCjpcv8.js} +2 -2
- package/ProgressBar-CcbxcWdT.cjs +1 -0
- package/Radio-B2zfEFdq.cjs +1 -0
- package/{Radio-_ukSkxPT.js → Radio-CZYibh9r.js} +81 -78
- package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-B16b6tJD.js} +303 -294
- package/RangeCalendar-C1LFeOVk.cjs +11 -0
- package/SSRProvider-40TXmsUG.js +50 -0
- package/SSRProvider-Bc-sMhsT.cjs +1 -0
- package/SearchField-CML0kjtn.cjs +6 -0
- package/{SearchField-DYl2uo7o.js → SearchField-giwECmXS.js} +175 -166
- package/Select-DKey6CeS.cjs +1 -0
- package/Select-mwaAv20X.js +665 -0
- package/SelectionManager-D0jYUYcy.cjs +1 -0
- package/{SelectionManager-6H88Cv6B.js → SelectionManager-zsWy3vsd.js} +86 -86
- package/Separator-CxF-3jhR.cjs +1 -0
- package/{Separator-LYnFqh4L.js → Separator-Dn5LYN5I.js} +19 -20
- package/Spinner-CbJ6YAz-.js +53 -0
- package/Spinner-yHcy8YHC.cjs +6 -0
- package/TabList-7VtCiXxX.cjs +1 -0
- package/TabList-CthsM5h6.js +435 -0
- package/{Table-B_N7wUmA.js → Table-BcQPvJT3.js} +67 -69
- package/Table-DkvNp6xm.cjs +16 -0
- package/{Tag-g6HN-YCv.js → Tag-Bs8T2Ei7.js} +140 -141
- package/Tag-CFWZ2LQW.cjs +1 -0
- package/{Text-B_H68Tvq.js → Text-92cPh38G.js} +3 -3
- package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
- package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
- package/{Text-BN-g1iWi.js → Text-DlKqpvSa.js} +1 -1
- package/TextArea-DBNAVWqL.js +119 -0
- package/TextArea-XJDfeXRs.cjs +1 -0
- package/TextField-BdK9KEQ5.cjs +1 -0
- package/{TextField-DBaRuNj7.js → TextField-ByDJkig9.js} +22 -21
- package/{Toast-CjpldAI8.js → Toast-DPPvPhrF.js} +95 -87
- package/Toast-l1bKo2oA.cjs +1 -0
- package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
- package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-HOWNWtQZ.js} +47 -46
- package/{Tooltip-BAIjaYax.js → Tooltip-5mLWn_wO.js} +53 -51
- package/Tooltip-pN5W3IK6.cjs +1 -0
- package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-CYfmTSCD.js} +8 -8
- package/VisuallyHidden-Doyzl0F7.cjs +1 -0
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
- package/assets/Button.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -0
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +11 -7
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.d.ts +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/CalendarGrid.d.ts +1 -0
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/{check-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
- package/checkbox/Checkbox.d.ts +4 -2
- package/checkbox/CheckboxGroup.d.ts +8 -8
- package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
- package/checkbox/CheckboxGroupItem.d.ts +3 -0
- package/checkbox/CheckboxInner.d.ts +2 -0
- package/checkbox/SingleCheckbox.d.ts +3 -0
- package/checkbox/context.d.ts +3 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.d.ts +2 -1
- package/checkbox/index.js +2 -2
- package/checkbox/intl/translations.json.d.ts +7 -0
- package/checkbox/types.d.ts +16 -0
- package/checkbox/useSelectAll.d.ts +7 -0
- package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
- package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
- package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
- package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/color-scheme-switch/intl/translations.json.d.ts +15 -0
- package/combobox/ComboBox.d.ts +3 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +11 -0
- package/{context-B8cn10po.js → context-CGNJ3grH.js} +11 -11
- package/context-Df3XbgBG.cjs +1 -0
- package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
- package/date-field/DateField.d.ts +3 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/DatePicker.d.ts +3 -0
- package/date-picker/DateRangePicker.d.ts +3 -0
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/FileUpload.d.ts +4 -0
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/file-upload/intl/translations.json.d.ts +17 -0
- package/{getScrollParent-Ru2U2LlM.js → getScrollParent-CT_L9LUr.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
- package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +105 -100
- package/inertValue-B3AFhVG4.cjs +1 -0
- package/info-BZwphdye.js +15 -0
- package/info-CIEIENo6.cjs +6 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/info-banner/intl/translations.json.d.ts +11 -0
- package/label/InfoPopover.d.ts +9 -0
- package/label/LabelWrapper.d.ts +11 -0
- package/label/index.cjs +1 -1
- package/label/index.d.ts +1 -0
- package/label/index.js +1 -1
- package/label/intl/translations.json.d.ts +11 -0
- package/layout/Layout.d.ts +1 -0
- package/layout/context/LayoutContext.d.ts +1 -0
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/layout/intl/translations.json.d.ts +23 -0
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/logo/intl/translations.json.d.ts +11 -0
- package/mergeProps-B5KXZAI3.cjs +1 -0
- package/mergeProps-C1U1OIeJ.js +115 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/modal/intl/translations.json.d.ts +11 -0
- package/package.json +1 -1
- package/popover/Popover.d.ts +7 -0
- package/popover/index.cjs +1 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.js +4 -0
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/Radio.d.ts +4 -4
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-BLnsPvFA.js +87 -0
- package/scrollIntoView-joIyo-Jt.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/search-field/intl/translations.json.d.ts +11 -0
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +17 -0
- package/spinner/Spinner.d.ts +1 -0
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/spinner/intl/translations.json.d.ts +11 -0
- package/{square-arrow-out-up-right-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tab.d.ts +4 -0
- package/tabs/TabList.d.ts +3 -0
- package/tabs/TabPanel.d.ts +4 -0
- package/tabs/Tabs.d.ts +11 -5
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +3 -0
- package/tabs/index.js +5 -2
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/TextFieldBase.d.ts +2 -0
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/textfield/intl/translations.json.d.ts +0 -72
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +5 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +5 -0
- package/toast/Toast.d.ts +5 -2
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
- package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{triangle-alert-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
- package/{useButton-C-Lq7CNY.js → useButton-1-Jf-oHj.js} +6 -6
- package/useButton-D60q0SQw.cjs +1 -0
- package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
- package/{useDateFormatter-C53Uxdli.js → useDateFormatter-BVCkxVdw.js} +2 -2
- package/{useEvent-Cyd2ZL0c.js → useEvent-CigwyJOw.js} +3 -3
- package/useEvent-DPxMu-X9.cjs +1 -0
- package/{useField-BPMAlIbU.js → useField-BEBXv5Mh.js} +7 -7
- package/useField-D1UkzeaI.cjs +1 -0
- package/{useFilter-ChIbnALW.js → useFilter-CousKe2K.js} +1 -1
- package/useFilter-e2oIVF_O.cjs +1 -0
- package/useFocusRing-B-A1OLhU.cjs +1 -0
- package/useFocusRing-DOfBqnUN.js +33 -0
- package/useFocusWithin-CG8mAt2D.cjs +1 -0
- package/useFocusWithin-T1ifEM_s.js +54 -0
- package/useFocusable-ChPA2Jc7.js +127 -0
- package/useFocusable-D7I1ujkW.cjs +1 -0
- package/useFormValidation-BlFGdPZB.cjs +1 -0
- package/{useFormValidation-R8hQIjWP.js → useFormValidation-BzzruZKm.js} +5 -5
- package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-BE81d_ab.js} +2 -2
- package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
- package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
- package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-D73hrkmn.js} +14 -14
- package/useHover-BE_XKZKe.cjs +1 -0
- package/useHover-DQvJ3Y-W.js +262 -0
- package/useLabels-CSU0kbtJ.cjs +1 -0
- package/{useLabels-BZjoZA1Z.js → useLabels-LrKQiY11.js} +1 -1
- package/{useListState-DFQ9d-uE.js → useListState-CebsX_1d.js} +7 -7
- package/{useListState-Ca2-uZMO.cjs → useListState-DymkJGDF.cjs} +1 -1
- package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/{useLocalizedStringFormatter-D07YB2e1.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
- package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-BooY_CAy.cjs +7 -0
- package/{usePress-CUJ3pMOw.js → usePress-DuR4pVsE.js} +154 -153
- package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
- package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
- package/{useTextField-5OZQPyOW.js → useTextField-C-sUypsx.js} +14 -14
- package/useTextField-DnRrCg5o.cjs +1 -0
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
- package/utils-CoCR_Fce.js +234 -0
- package/utils-DHNZrQmj.cjs +1 -0
- package/utils-DJhAJHk_.js +152 -0
- package/utils-Dvdohqm9.cjs +1 -0
- package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
- package/AccordionItem-Z_c9MpAM.cjs +0 -1
- package/Breadcrumbs-Cx09jwZZ.cjs +0 -1
- package/Button-DnhqHU01.cjs +0 -1
- package/Button-ZOQy9Ivu.js +0 -78
- package/Button.module-CMMhIrkn.js +0 -14
- package/Button.module-DO5s9hOk.cjs +0 -1
- package/Card-C0BFW3wJ.cjs +0 -1
- package/CharacterCounter-CPGdboVJ.js +0 -22
- package/Checkbox-CvFsn_FL.js +0 -380
- package/Checkbox-DSxGAJX2.cjs +0 -1
- package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
- package/CheckboxGroup-Dij9zKlF.js +0 -54
- package/Collection-Csx3L9gh.cjs +0 -1
- package/ColorSchemeSwitch-JRrCyYVv.cjs +0 -16
- package/ComboBox-gveQKHU3.cjs +0 -1
- package/DateField-CAQlzuDD.js +0 -46
- package/DateField-deVVFwKA.cjs +0 -1
- package/DateInputDivider-DnUxETEC.cjs +0 -1
- package/DateRangePicker-BzfitoK0.cjs +0 -6
- package/Dialog-Bd5hK360.cjs +0 -1
- package/Dialog-Bxx8cBEq.js +0 -208
- package/Dialog-CwTEAujZ.cjs +0 -1
- package/DragAndDrop-HvycSrKY.cjs +0 -1
- package/FieldError-Dv3bBEjh.js +0 -23
- package/FocusScope-NaPbvuuS.cjs +0 -1
- package/Group-CeSsSQVC.js +0 -44
- package/Group-CgiqQHH1.cjs +0 -1
- package/Heading-DoJAtYZf.cjs +0 -1
- package/InfoBanner-BS-dAfzO.cjs +0 -1
- package/Input-D8Ku_FQz.js +0 -41
- package/Input-DKSAYvsw.cjs +0 -1
- package/Label-C9ivwkAd.js +0 -21
- package/Label-CUV21CAv.cjs +0 -1
- package/Label-DkDOsmUF.js +0 -16
- package/Label-IMWAyoKb.cjs +0 -1
- package/Layout-BWeHHnqU.cjs +0 -16
- package/Layout-CCt_2L1k.js +0 -468
- package/Link-SHMbeyIP.cjs +0 -1
- package/LinkButton-CuBilDML.js +0 -69
- package/LinkButton-CymMrcGL.cjs +0 -6
- package/ListBox-CDOsQChA.cjs +0 -1
- package/ListBoxSection-DGCP6xpf.cjs +0 -1
- package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
- package/LiveAnnouncer-B6177m92.js +0 -51
- package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
- package/Logo-DT2_2O43.cjs +0 -1
- package/NumberFormatter-DewVDY5w.cjs +0 -1
- package/NumberFormatter-DgOUVrge.js +0 -119
- package/OverlayArrow-D75k-EMl.cjs +0 -1
- package/PressResponder-C06O3Z5P.cjs +0 -1
- package/PressResponder-CVEg5kND.js +0 -33
- package/ProgressBar-Bkw9zavs.cjs +0 -1
- package/ProgressBar-CEX2WNoW.js +0 -77
- package/ProgressBar-Dqh3ftSP.cjs +0 -1
- package/Radio-CDKrvQe4.cjs +0 -1
- package/RangeCalendar-cbCKBPZv.cjs +0 -11
- package/SearchField-6yBGiojX.cjs +0 -6
- package/Select-CpHjd1tp.cjs +0 -1
- package/Select-PvCqY7Lp.js +0 -646
- package/SelectionManager-C5NGBzvz.cjs +0 -1
- package/Separator-nPra6kD-.cjs +0 -1
- package/Spinner-D31SXm-U.js +0 -41
- package/Spinner-DAJtfxqJ.cjs +0 -6
- package/Table-D9vNc_y-.cjs +0 -16
- package/Tabs-Ct6D83aR.js +0 -404
- package/Tabs-Dtcl2oK2.cjs +0 -1
- package/Tag-CVFkzg3s.cjs +0 -1
- package/TextArea-DSiQ578a.js +0 -206
- package/TextArea-cVyGBRbL.cjs +0 -1
- package/TextField-B70CL2qz.cjs +0 -1
- package/Toast-DrkOGy4d.cjs +0 -1
- package/ToggleButtonGroup-BuU_6dYe.cjs +0 -1
- package/Tooltip-CiWg4zIC.cjs +0 -1
- package/VisuallyHidden-CtXvK_Tw.cjs +0 -1
- package/assets/Tabs.css +0 -1
- package/context-DjwhtgxQ.cjs +0 -1
- package/focusSafely-Bqfo_DH7.cjs +0 -1
- package/focusSafely-C48ucRUz.js +0 -56
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/useButton-B1Fa-6qE.cjs +0 -1
- package/useCollator-C_ozeWLo.cjs +0 -1
- package/useCollator-CgZcHC8N.js +0 -11
- package/useDescription-CVKhFa3c.js +0 -32
- package/useDescription-DmQYSEES.cjs +0 -1
- package/useEvent-CjkbBniY.cjs +0 -1
- package/useField-B1RU0GKs.cjs +0 -1
- package/useFilter-CtIwF2qW.cjs +0 -1
- package/useFocusRing-BDGH3lpn.js +0 -82
- package/useFocusRing-CbImDrwF.cjs +0 -1
- package/useFocusable-CaedRTpB.js +0 -74
- package/useFocusable-CuPQ7Cm5.cjs +0 -1
- package/useFormValidation-ClximP89.cjs +0 -1
- package/useHasTabbableChild-DgphNvnk.cjs +0 -1
- package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
- package/useHover-_mv5J4_q.cjs +0 -1
- package/useHover-qRAon4nS.js +0 -490
- package/useLabel-DDdAJ1JO.js +0 -23
- package/useLabel-m_S5xkHy.cjs +0 -1
- package/useLabels-BLOfc6Y-.cjs +0 -1
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BFa6cT9o.cjs +0 -7
- package/useTextField-CtUDWsUl.cjs +0 -1
- package/utils-BNtZbAib.cjs +0 -1
- package/utils-HNTsIwux.js +0 -308
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("react"),C=require("./mergeProps-B5KXZAI3.cjs"),V=require("./utils-Dvdohqm9.cjs"),j=require("./usePress-BooY_CAy.cjs"),Z=require("./useEvent-DPxMu-X9.cjs"),J=require("./scrollIntoView-joIyo-Jt.cjs"),De=require("react-dom"),X=require("./useHover-BE_XKZKe.cjs"),ue=require("./useFocusable-D7I1ujkW.cjs"),Te=require("./FocusScope-vcXLOQiu.cjs"),Ee=require("./context-Df3XbgBG.cjs"),ke=require("./useControlledState-D0L6S_5r.cjs");function pe(n,e){const t=a.useRef(!0),l=a.useRef(null);C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(t.current=!0,()=>{t.current=!1}),[]),C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{t.current?t.current=!1:(!l.current||e.some((i,c)=>!Object.is(i,l[c])))&&n(),l.current=e},e)}const Ae="react-aria-clear-focus",Ie="react-aria-focus";function H(n){return X.$c87311424ea30a05$export$9ac100e40613ea10()?n.metaKey:n.ctrlKey}const Me=500;function ge(n){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:l,onLongPress:i,threshold:c=Me,accessibilityDescription:s}=n;const d=a.useRef(void 0);let{addGlobalListener:f,removeGlobalListener:m}=V.$03deb23ff14920c4$export$4eaf04e54aa8eed6(),{pressProps:E}=j.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(t&&t({...v,type:"longpressstart"}),d.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),V.$431fbd86ca7dc216$export$b204af158042fbac(v.target).activeElement!==v.target&&V.$7215afc6de606d6b$export$de79e2c695e052f3(v.target),i&&i({...v,type:"longpress"}),d.current=void 0},c),v.pointerType==="touch")){let g=b=>{b.preventDefault()};f(v.target,"contextmenu",g,{once:!0}),f(window,"pointerup",()=>{setTimeout(()=>{m(v.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(v){d.current&&clearTimeout(d.current),l&&(v.pointerType==="mouse"||v.pointerType==="touch")&&l({...v,type:"longpressend"})}}),K=J.$ef06256079686ba0$export$f8aeda7b10753fa1(i&&!e?s:void 0);return{longPressProps:C.$3ef42575df84b30b$export$9d1611c77c2fe928(E,K)}}function Ke(n){let e=Re(V.$431fbd86ca7dc216$export$b204af158042fbac(n));e!==n&&(e&&Ce(e,n),n&&me(n,e))}function Ce(n,e){n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function me(n,e){n.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function Re(n){let e=V.$d4ee10de306f2510$export$cd4e5573fbe2b576(n),t=e==null?void 0:e.getAttribute("aria-activedescendant");return t&&n.getElementById(t)||e}function ae(n){return X.$c87311424ea30a05$export$e1865c3bedcd822b()?n.altKey:n.ctrlKey}function Q(n,e){var t,l;let i=`[data-key="${CSS.escape(String(e))}"]`,c=(t=n.current)===null||t===void 0?void 0:t.dataset.collection;return c&&(i=`[data-collection="${CSS.escape(c)}"]${i}`),(l=n.current)===null||l===void 0?void 0:l.querySelector(i)}const Se=new WeakMap;function Be(n){let e=C.$bdb11010cef70236$export$f680877a34711e37();return Se.set(n,e),e}function Le(n){return Se.get(n)}const Oe=1e3;function xe(n){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:l}=n,i=a.useRef({search:"",timeout:void 0}).current,c=s=>{let d=qe(s.key);if(!(!d||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))){if(d===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=d,e.getKeyForSearch!=null){let f=e.getKeyForSearch(i.search,t.focusedKey);f==null&&(f=e.getKeyForSearch(i.search)),f!=null&&(t.setFocusedKey(f),l&&l(f))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Oe)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?c:void 0}}}function qe(n){return n.length===1||!/^[A-Z]/i.test(n)?n:""}function ze(n){let{selectionManager:e,keyboardDelegate:t,ref:l,autoFocus:i=!1,shouldFocusWrap:c=!1,disallowEmptySelection:s=!1,disallowSelectAll:d=!1,escapeKeyBehavior:f="clearSelection",selectOnFocus:m=e.selectionBehavior==="replace",disallowTypeAhead:E=!1,shouldUseVirtualFocus:K,allowsTabNavigation:v=!1,isVirtualized:g,scrollRef:b=l,linkBehavior:k="action"}=n,{direction:y}=Ee.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),p=j.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),S=o=>{var r;if(o.altKey&&o.key==="Tab"&&o.preventDefault(),!(!((r=l.current)===null||r===void 0)&&r.contains(o.target)))return;const $=(u,z)=>{if(u!=null){if(e.isLink(u)&&k==="selection"&&m&&!ae(o)){De.flushSync(()=>{e.setFocusedKey(u,z)});let U=Q(l,u),de=e.getItemProps(u);U&&p.open(U,o,de.href,de.routerOptions);return}if(e.setFocusedKey(u,z),e.isLink(u)&&k==="override")return;o.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):m&&!ae(o)&&e.replaceSelection(u)}};switch(o.key){case"ArrowDown":if(t.getKeyBelow){var w,T,D;let u=e.focusedKey!=null?(w=t.getKeyBelow)===null||w===void 0?void 0:w.call(t,e.focusedKey):(T=t.getFirstKey)===null||T===void 0?void 0:T.call(t);u==null&&c&&(u=(D=t.getFirstKey)===null||D===void 0?void 0:D.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),$(u))}break;case"ArrowUp":if(t.getKeyAbove){var B,O,ee;let u=e.focusedKey!=null?(B=t.getKeyAbove)===null||B===void 0?void 0:B.call(t,e.focusedKey):(O=t.getLastKey)===null||O===void 0?void 0:O.call(t);u==null&&c&&(u=(ee=t.getLastKey)===null||ee===void 0?void 0:ee.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),$(u))}break;case"ArrowLeft":if(t.getKeyLeftOf){var te,le,ie;let u=e.focusedKey!=null?(te=t.getKeyLeftOf)===null||te===void 0?void 0:te.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(le=t.getFirstKey)===null||le===void 0?void 0:le.call(t,e.focusedKey):(ie=t.getLastKey)===null||ie===void 0?void 0:ie.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),$(u,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(t.getKeyRightOf){var ne,re,se;let u=e.focusedKey!=null?(ne=t.getKeyRightOf)===null||ne===void 0?void 0:ne.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(re=t.getLastKey)===null||re===void 0?void 0:re.call(t,e.focusedKey):(se=t.getFirstKey)===null||se===void 0?void 0:se.call(t,e.focusedKey)),u!=null&&(o.preventDefault(),$(u,y==="rtl"?"last":"first"))}break;case"Home":if(t.getFirstKey){if(e.focusedKey===null&&o.shiftKey)return;o.preventDefault();let u=t.getFirstKey(e.focusedKey,H(o));e.setFocusedKey(u),u!=null&&(H(o)&&o.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):m&&e.replaceSelection(u))}break;case"End":if(t.getLastKey){if(e.focusedKey===null&&o.shiftKey)return;o.preventDefault();let u=t.getLastKey(e.focusedKey,H(o));e.setFocusedKey(u),u!=null&&(H(o)&&o.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):m&&e.replaceSelection(u))}break;case"PageDown":if(t.getKeyPageBelow&&e.focusedKey!=null){let u=t.getKeyPageBelow(e.focusedKey);u!=null&&(o.preventDefault(),$(u))}break;case"PageUp":if(t.getKeyPageAbove&&e.focusedKey!=null){let u=t.getKeyPageAbove(e.focusedKey);u!=null&&(o.preventDefault(),$(u))}break;case"a":H(o)&&e.selectionMode==="multiple"&&d!==!0&&(o.preventDefault(),e.selectAll());break;case"Escape":f==="clearSelection"&&!s&&e.selectedKeys.size!==0&&(o.stopPropagation(),o.preventDefault(),e.clearSelection());break;case"Tab":if(!v){if(o.shiftKey)l.current.focus();else{let u=Te.$9bf71ea28793e738$export$2d6ec8fc375ceafa(l.current,{tabbable:!0}),z,U;do U=u.lastChild(),U&&(z=U);while(U);z&&!z.contains(document.activeElement)&&V.$7215afc6de606d6b$export$de79e2c695e052f3(z)}break}}},h=a.useRef({top:0,left:0});Z.$e9faafb641e167db$export$90fc3a17d93f704c(b,"scroll",g?void 0:()=>{var o,r,$,w;h.current={top:($=(o=b.current)===null||o===void 0?void 0:o.scrollTop)!==null&&$!==void 0?$:0,left:(w=(r=b.current)===null||r===void 0?void 0:r.scrollLeft)!==null&&w!==void 0?w:0}});let x=o=>{if(e.isFocused){o.currentTarget.contains(o.target)||e.setFocused(!1);return}if(o.currentTarget.contains(o.target)){if(e.setFocused(!0),e.focusedKey==null){var r,$;let D=O=>{O!=null&&(e.setFocusedKey(O),m&&!e.isSelected(O)&&e.replaceSelection(O))},B=o.relatedTarget;var w,T;B&&o.currentTarget.compareDocumentPosition(B)&Node.DOCUMENT_POSITION_FOLLOWING?D((w=e.lastSelectedKey)!==null&&w!==void 0?w:(r=t.getLastKey)===null||r===void 0?void 0:r.call(t)):D((T=e.firstSelectedKey)!==null&&T!==void 0?T:($=t.getFirstKey)===null||$===void 0?void 0:$.call(t))}else!g&&b.current&&(b.current.scrollTop=h.current.top,b.current.scrollLeft=h.current.left);if(e.focusedKey!=null&&b.current){let D=Q(l,e.focusedKey);D instanceof HTMLElement&&(!D.contains(document.activeElement)&&!K&&V.$7215afc6de606d6b$export$de79e2c695e052f3(D),X.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="keyboard"&&J.$2f04cbc44ee30ce0$export$c826860796309d1b(D,{containingElement:l.current}))}}},A=o=>{o.currentTarget.contains(o.relatedTarget)||e.setFocused(!1)},I=a.useRef(!1);Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,Ie,K?o=>{let{detail:r}=o;o.stopPropagation(),e.setFocused(!0),(r==null?void 0:r.focusStrategy)==="first"&&(I.current=!0)}:void 0);let R=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{var o,r;let $=(r=(o=t.getFirstKey)===null||o===void 0?void 0:o.call(t))!==null&&r!==void 0?r:null;$==null?(Ke(l.current),e.collection.size>0&&(I.current=!1)):(e.setFocusedKey($),I.current=!1)});pe(()=>{I.current&&R()},[e.collection,R]);let F=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{e.collection.size>0&&(I.current=!1)});pe(()=>{F()},[e.focusedKey,F]),Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,Ae,K?o=>{var r;o.stopPropagation(),e.setFocused(!1),!((r=o.detail)===null||r===void 0)&&r.clearFocusKey&&e.setFocusedKey(null)}:void 0);const W=a.useRef(i),L=a.useRef(!1);a.useEffect(()=>{if(W.current){var o,r;let T=null;var $;i==="first"&&(T=($=(o=t.getFirstKey)===null||o===void 0?void 0:o.call(t))!==null&&$!==void 0?$:null);var w;i==="last"&&(T=(w=(r=t.getLastKey)===null||r===void 0?void 0:r.call(t))!==null&&w!==void 0?w:null);let D=e.selectedKeys;if(D.size){for(let B of D)if(e.canSelectItem(B)){T=B;break}}e.setFocused(!0),e.setFocusedKey(T),T==null&&!K&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),e.collection.size>0&&(W.current=!1,L.current=!0)}});let P=a.useRef(e.focusedKey),q=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==P.current||L.current)&&b.current&&l.current){let o=X.$507fabe10e71c6fb$export$630ff653c5ada6a9(),r=Q(l,e.focusedKey);if(!(r instanceof HTMLElement))return;(o==="keyboard"||L.current)&&(q.current&&cancelAnimationFrame(q.current),q.current=requestAnimationFrame(()=>{b.current&&(J.$2f04cbc44ee30ce0$export$53a0910f038337bd(b.current,r),o!=="virtual"&&J.$2f04cbc44ee30ce0$export$c826860796309d1b(r,{containingElement:l.current}))}))}!K&&e.isFocused&&e.focusedKey==null&&P.current!=null&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),P.current=e.focusedKey,L.current=!1}),a.useEffect(()=>()=>{q.current&&cancelAnimationFrame(q.current)},[]),Z.$e9faafb641e167db$export$90fc3a17d93f704c(l,"react-aria-focus-scope-restore",o=>{o.preventDefault(),e.setFocused(!0)});let G={onKeyDown:S,onFocus:x,onBlur:A,onMouseDown(o){b.current===o.target&&o.preventDefault()}},{typeSelectProps:N}=xe({keyboardDelegate:t,selectionManager:e});E||(G=C.$3ef42575df84b30b$export$9d1611c77c2fe928(N,G));let Y;K||(Y=e.focusedKey==null?0:-1);let _=Be(e.collection);return{collectionProps:C.$3ef42575df84b30b$export$9d1611c77c2fe928(G,{tabIndex:Y,"data-collection":_})}}function Ue(n){let{id:e,selectionManager:t,key:l,ref:i,shouldSelectOnPressUp:c,shouldUseVirtualFocus:s,focus:d,isDisabled:f,onAction:m,allowsDifferentPressOrigin:E,linkBehavior:K="action"}=n,v=j.$ea8dcbcb9ea1b556$export$9a302a45f65d0572();e=C.$bdb11010cef70236$export$f680877a34711e37(e);let g=r=>{if(r.pointerType==="keyboard"&&ae(r))t.toggleSelection(l);else{if(t.selectionMode==="none")return;if(t.isLink(l)){if(K==="selection"&&i.current){let $=t.getItemProps(l);v.open(i.current,r,$.href,$.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(K==="override"||K==="none")return}t.selectionMode==="single"?t.isSelected(l)&&!t.disallowEmptySelection?t.toggleSelection(l):t.replaceSelection(l):r&&r.shiftKey?t.extendSelection(l):t.selectionBehavior==="toggle"||r&&(H(r)||r.pointerType==="touch"||r.pointerType==="virtual")?t.toggleSelection(l):t.replaceSelection(l)}};a.useEffect(()=>{l===t.focusedKey&&t.isFocused&&(s?Ke(i.current):d?d():document.activeElement!==i.current&&i.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(i.current))},[i,l,t.focusedKey,t.childFocusStrategy,t.isFocused,s]),f=f||t.isDisabled(l);let b={};!s&&!f?b={tabIndex:l===t.focusedKey?0:-1,onFocus(r){r.target===i.current&&t.setFocusedKey(l)}}:f&&(b.onMouseDown=r=>{r.preventDefault()});let k=t.isLink(l)&&K==="override",y=t.isLink(l)&&K!=="selection"&&K!=="none",p=!f&&t.canSelectItem(l)&&!k,S=(m||y)&&!f,h=S&&(t.selectionBehavior==="replace"?!p:!p||t.isEmpty),x=S&&p&&t.selectionBehavior==="replace",A=h||x,I=a.useRef(null),R=A&&p,F=a.useRef(!1),W=a.useRef(!1),L=r=>{if(m&&m(),y&&i.current){let $=t.getItemProps(l);v.open(i.current,r,$.href,$.routerOptions)}},P={ref:i};c?(P.onPressStart=r=>{I.current=r.pointerType,F.current=R,r.pointerType==="keyboard"&&(!A||he())&&g(r)},E?(P.onPressUp=h?void 0:r=>{r.pointerType==="mouse"&&p&&g(r)},P.onPress=h?L:r=>{r.pointerType!=="keyboard"&&r.pointerType!=="mouse"&&p&&g(r)}):P.onPress=r=>{if(h||x&&r.pointerType!=="mouse"){if(r.pointerType==="keyboard"&&!ye())return;L(r)}else r.pointerType!=="keyboard"&&p&&g(r)}):(P.onPressStart=r=>{I.current=r.pointerType,F.current=R,W.current=h,p&&(r.pointerType==="mouse"&&!h||r.pointerType==="keyboard"&&(!S||he()))&&g(r)},P.onPress=r=>{(r.pointerType==="touch"||r.pointerType==="pen"||r.pointerType==="virtual"||r.pointerType==="keyboard"&&A&&ye()||r.pointerType==="mouse"&&W.current)&&(A?L(r):p&&g(r))}),b["data-collection"]=Le(t.collection),b["data-key"]=l,P.preventFocusOnPress=s,s&&(P=C.$3ef42575df84b30b$export$9d1611c77c2fe928(P,{onPressStart(r){r.pointerType!=="touch"&&(t.setFocused(!0),t.setFocusedKey(l))},onPress(r){r.pointerType==="touch"&&(t.setFocused(!0),t.setFocusedKey(l))}}));let{pressProps:q,isPressed:G}=j.$f6c31cce2adf654f$export$45712eceda6fad21(P),N=x?r=>{I.current==="mouse"&&(r.stopPropagation(),r.preventDefault(),L(r))}:void 0,{longPressProps:Y}=ge({isDisabled:!R,onLongPress(r){r.pointerType==="touch"&&(g(r),t.setSelectionBehavior("toggle"))}}),_=r=>{I.current==="touch"&&F.current&&r.preventDefault()},o=t.isLink(l)?r=>{j.$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening||r.preventDefault()}:void 0;return{itemProps:C.$3ef42575df84b30b$export$9d1611c77c2fe928(b,p||h||s&&!f?q:{},R?Y:{},{onDoubleClick:N,onDragStartCapture:_,onClick:o,id:e},s?{onMouseDown:r=>r.preventDefault()}:void 0),isPressed:G,isSelected:t.isSelected(l),isFocused:t.isFocused&&t.focusedKey===l,isDisabled:f,allowsSelection:p,hasAction:A}}function ye(){let n=window.event;return(n==null?void 0:n.key)==="Enter"}function he(){let n=window.event;return(n==null?void 0:n.key)===" "||(n==null?void 0:n.code)==="Space"}class Ve{build(e,t){return this.context=t,$e(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(a.isValidElement(t)&&t.type===a.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if(typeof t=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");let i=0;for(let c of l)yield*this.getFullNode({value:c,index:i},{renderer:t}),i++}else{let i=[];a.Children.forEach(t,s=>{s&&i.push(s)});let c=0;for(let s of i){let d=this.getFullNode({element:s,index:c},{});for(let f of d)c++,yield f}}}getKey(e,t,l,i){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${i}${t.key}`;let c=t.value;if(c!=null){var s;let d=(s=c.key)!==null&&s!==void 0?s:c.id;if(d==null)throw new Error("No key found for item");return d}return i?`${i}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,i){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let y=[];a.Children.forEach(e.element.props.children,S=>{y.push(S)});var c;let p=(c=e.index)!==null&&c!==void 0?c:0;for(const S of y)yield*this.getFullNode({element:S,index:p++},t,l,i);return}let s=e.element;if(!s&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=i?i.key:null,yield y;return}s=t.renderer(e.value)}if(a.isValidElement(s)){let y=s.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let x=s.type;throw new Error(`Unknown element <${x}> in collection.`)}let p=y.getCollectionNode(s.props,this.context);var d;let S=(d=e.index)!==null&&d!==void 0?d:0,h=p.next();for(;!h.done&&h.value;){let x=h.value;e.index=S;var f;let A=(f=x.key)!==null&&f!==void 0?f:null;A==null&&(A=x.element?null:this.getKey(s,e,t,l));let R=[...this.getFullNode({...x,key:A,index:S,wrapper:He(e.wrapper,x.wrapper)},this.getChildState(t,x),l?`${l}${s.key}`:s.key,i)];for(let F of R){var m,E;F.value=(E=(m=x.value)!==null&&m!==void 0?m:e.value)!==null&&E!==void 0?E:null,F.value&&this.cache.set(F.value,F);var K;if(e.type&&F.type!==e.type)throw new Error(`Unsupported type <${oe(F.type)}> in <${oe((K=i==null?void 0:i.type)!==null&&K!==void 0?K:"unknown parent type")}>. Only <${oe(e.type)}> is supported.`);S++,yield F}h=p.next(R)}return}if(e.key==null||e.type==null)return;let v=this;var g,b;let k={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(g=e.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:$e(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let p of e.childNodes()){p.key!=null&&(p.key=`${k.key}${p.key}`);let S=v.getFullNode({...p,index:y},v.getChildState(t,p),k.key,k);for(let h of S)y++,yield h}})};yield k}constructor(){this.cache=new WeakMap}}function $e(n){let e=[],t=null;return{*[Symbol.iterator](){for(let l of e)yield l;t||(t=n());for(let l of t)e.push(l),yield l}}}function He(n,e){if(n&&e)return t=>n(e(t));if(n)return n;if(e)return e}function oe(n){return n[0].toUpperCase()+n.slice(1)}function We(n,e,t){let l=a.useMemo(()=>new Ve,[]),{children:i,items:c,collection:s}=n;return a.useMemo(()=>{if(s)return s;let f=l.build({children:i,items:c},t);return e(f)},[l,i,c,s,t,e])}function we(n,e){return typeof e.getChildren=="function"?e.getChildren(n.key):n.childNodes}function Fe(n){return Pe(n,0)}function Pe(n,e){if(e<0)return;let t=0;for(let l of n){if(t===e)return l;t++}}function Ge(n){let e;for(let t of n)e=t;return e}function ce(n,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let l=[...ve(n,e),e],i=[...ve(n,t),t],c=l.slice(0,i.length).findIndex((s,d)=>s!==i[d]);return c!==-1?(e=l[c],t=i[c],e.index-t.index):l.findIndex(s=>s===t)>=0?1:(i.findIndex(s=>s===e)>=0,-1)}function ve(n,e){let t=[],l=e;for(;(l==null?void 0:l.parentKey)!=null;)l=n.getItem(l.parentKey),l&&t.unshift(l);return t}class M extends Set{constructor(e,t,l){super(e),e instanceof M?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null)}}function je(n,e){if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}function Ye(n){let{selectionMode:e="none",disallowEmptySelection:t=!1,allowDuplicateSelectionEvents:l,selectionBehavior:i="toggle",disabledBehavior:c="all"}=n,s=a.useRef(!1),[,d]=a.useState(!1),f=a.useRef(null),m=a.useRef(null),[,E]=a.useState(null),K=a.useMemo(()=>be(n.selectedKeys),[n.selectedKeys]),v=a.useMemo(()=>be(n.defaultSelectedKeys,new M),[n.defaultSelectedKeys]),[g,b]=ke.$458b0a5536c1a7cf$export$40bfa8c7b0832715(K,v,n.onSelectionChange),k=a.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[y,p]=a.useState(i);i==="replace"&&y==="toggle"&&typeof g=="object"&&g.size===0&&p("replace");let S=a.useRef(i);return a.useEffect(()=>{i!==S.current&&(p(i),S.current=i)},[i]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:y,setSelectionBehavior:p,get isFocused(){return s.current},setFocused(h){s.current=h,d(h)},get focusedKey(){return f.current},get childFocusStrategy(){return m.current},setFocusedKey(h,x="first"){f.current=h,m.current=x,E(h)},selectedKeys:g,setSelectedKeys(h){(l||!je(h,g))&&b(h)},disabledKeys:k,disabledBehavior:c}}function be(n,e){return n?n==="all"?"all":new M(n):e}class fe{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(l=>t.has(l)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let i=this.collection.getItem(l);(!e||i&&ce(this.collection,i,e)<0)&&(e=i)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get lastSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let i=this.collection.getItem(l);(!e||i&&ce(this.collection,i,e)>0)&&(e=i)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l;if(this.state.selectedKeys==="all")l=new M([t],t,t);else{let s=this.state.selectedKeys;var i;let d=(i=s.anchorKey)!==null&&i!==void 0?i:t;l=new M(s,d,t);var c;for(let f of this.getKeyRange(d,(c=s.currentKey)!==null&&c!==void 0?c:t))l.delete(f);for(let f of this.getKeyRange(t,d))this.canSelectItem(f)&&l.add(f)}this.state.setSelectedKeys(l)}getKeyRange(e,t){let l=this.collection.getItem(e),i=this.collection.getItem(t);return l&&i?ce(this.collection,l,i)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var l;if(!((l=this.layoutDelegate)===null||l===void 0)&&l.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let i=[],c=e;for(;c!=null;){let s=this.collection.getItem(c);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&i.push(c),c===t)return i;c=this.collection.getKeyAfter(c)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type==="cell"&&this.allowsCellSelection)return e;for(;t&&t.type!=="item"&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!=="item"?null:t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l=new M(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),!(this.disallowEmptySelection&&l.size===0)&&this.state.setSelectedKeys(l)}replaceSelection(e){if(this.selectionMode==="none")return;let t=this.getKey(e);if(t==null)return;let l=this.canSelectItem(t)?new M([t],t,t):new M;this.state.setSelectedKeys(l)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new M;for(let l of e){let i=this.getKey(l);if(i!=null&&(t.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=l=>{for(;l!=null;){if(this.canSelectItem(l)){var i;let s=this.collection.getItem(l);(s==null?void 0:s.type)==="item"&&e.push(l);var c;s!=null&&s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&t((c=(i=Fe(we(s,this.collection)))===null||i===void 0?void 0:i.key)!==null&&c!==void 0?c:null)}l=this.collection.getKeyAfter(l)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new M)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!(!l||!(l==null||(t=l.props)===null||t===void 0)&&t.isDisabled||l.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var t,l;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.isDisabled))}isLink(e){var t,l;return!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.href)}getItemProps(e){var t;return(t=this.collection.getItem(e))===null||t===void 0?void 0:t.props}withCollection(e){return new fe(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,l){this.collection=e,this.state=t;var i;this.allowsCellSelection=(i=l==null?void 0:l.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(l==null?void 0:l.layoutDelegate)||null}}exports.$55f9b1ae81f22853$export$2b35b76d2e30e129=me;exports.$7613b1592d41b092$export$6cd28814d92fa9c9=We;exports.$7af3f5b51489e0b5$export$253fe78d46329472=Ye;exports.$880e95eb8b93ba9a$export$ecf600387e221c37=Ue;exports.$8a26561d2877236e$export$c24ed0104d07eab9=ge;exports.$ae20dd8cbca75726$export$d6daf82dcd84e87c=ze;exports.$c5a24bc478652b5f$export$1005530eda016c13=we;exports.$c5a24bc478652b5f$export$5f3398f8733f90e2=Pe;exports.$c5a24bc478652b5f$export$7475b2c64539e4cf=Ge;exports.$c5a24bc478652b5f$export$fbdeaa6a76694f71=Fe;exports.$d496c0a20b6e58ec$export$6c8a5aaad13c9852=fe;exports.$fb3050f43d946246$export$e32c88dfddc6e1d8=xe;exports.$feb5ffebff200149$export$c3d8340acf92597f=Q;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import V, { useRef as S, useEffect as q, useMemo as j, useState as se } from "react";
|
|
2
|
-
import { $ as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { $ as J } from "./useEvent-
|
|
6
|
-
import { a as
|
|
7
|
-
import { flushSync as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { $ as Oe } from "./
|
|
11
|
-
import { $ as ze } from "./
|
|
2
|
+
import { $ as he, a as Y, c as we, d as ye } from "./mergeProps-C1U1OIeJ.js";
|
|
3
|
+
import { $ as ke, b as xe, m as ue, c as Ae } from "./utils-CoCR_Fce.js";
|
|
4
|
+
import { a as Fe, b as Pe, e as Ie } from "./usePress-DuR4pVsE.js";
|
|
5
|
+
import { $ as J } from "./useEvent-CigwyJOw.js";
|
|
6
|
+
import { a as Me, b as Ce, c as pe } from "./scrollIntoView-BLnsPvFA.js";
|
|
7
|
+
import { flushSync as Be } from "react-dom";
|
|
8
|
+
import { h as Re, o as Le, f as ve } from "./useHover-DQvJ3Y-W.js";
|
|
9
|
+
import { a as ae } from "./useFocusable-ChPA2Jc7.js";
|
|
10
|
+
import { $ as Oe } from "./FocusScope-D_hwN_TJ.js";
|
|
11
|
+
import { $ as ze } from "./context-CGNJ3grH.js";
|
|
12
12
|
import { $ as Ue } from "./useControlledState-u436Wbp1.js";
|
|
13
13
|
function be(n, e) {
|
|
14
14
|
const t = S(!0), l = S(null);
|
|
15
|
-
|
|
15
|
+
he(() => (t.current = !0, () => {
|
|
16
16
|
t.current = !1;
|
|
17
|
-
}), []),
|
|
17
|
+
}), []), he(() => {
|
|
18
18
|
t.current ? t.current = !1 : (!l.current || e.some((i, c) => !Object.is(i, l[c]))) && n(), l.current = e;
|
|
19
19
|
}, e);
|
|
20
20
|
}
|
|
21
21
|
const Ve = "react-aria-clear-focus", He = "react-aria-focus";
|
|
22
22
|
function H(n) {
|
|
23
|
-
return
|
|
23
|
+
return Re() ? n.metaKey : n.ctrlKey;
|
|
24
24
|
}
|
|
25
25
|
const We = 500;
|
|
26
26
|
function Ge(n) {
|
|
27
27
|
let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: c = We, accessibilityDescription: r } = n;
|
|
28
28
|
const f = S(void 0);
|
|
29
|
-
let { addGlobalListener: a, removeGlobalListener: g } =
|
|
29
|
+
let { addGlobalListener: a, removeGlobalListener: g } = ke(), { pressProps: E } = Fe({
|
|
30
30
|
isDisabled: e,
|
|
31
31
|
onPressStart(v) {
|
|
32
32
|
if (v.continuePropagation(), (v.pointerType === "mouse" || v.pointerType === "touch") && (t && t({
|
|
@@ -60,7 +60,7 @@ function Ge(n) {
|
|
|
60
60
|
type: "longpressend"
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
}), m =
|
|
63
|
+
}), m = Me(i && !e ? r : void 0);
|
|
64
64
|
return {
|
|
65
65
|
longPressProps: Y(E, m)
|
|
66
66
|
};
|
|
@@ -86,11 +86,11 @@ function je(n, e) {
|
|
|
86
86
|
}));
|
|
87
87
|
}
|
|
88
88
|
function Ye(n) {
|
|
89
|
-
let e =
|
|
89
|
+
let e = Ae(n), t = e == null ? void 0 : e.getAttribute("aria-activedescendant");
|
|
90
90
|
return t && n.getElementById(t) || e;
|
|
91
91
|
}
|
|
92
92
|
function fe(n) {
|
|
93
|
-
return
|
|
93
|
+
return Le() ? n.altKey : n.ctrlKey;
|
|
94
94
|
}
|
|
95
95
|
function re(n, e) {
|
|
96
96
|
var t, l;
|
|
@@ -134,13 +134,13 @@ function Ne(n) {
|
|
|
134
134
|
return n.length === 1 || !/^[A-Z]/i.test(n) ? n : "";
|
|
135
135
|
}
|
|
136
136
|
function bt(n) {
|
|
137
|
-
let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: c = !1, disallowEmptySelection: r = !1, disallowSelectAll: f = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: g = e.selectionBehavior === "replace", disallowTypeAhead: E = !1, shouldUseVirtualFocus: m, allowsTabNavigation: v = !1, isVirtualized: $, scrollRef: b = l, linkBehavior: k = "action" } = n, { direction:
|
|
137
|
+
let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: c = !1, disallowEmptySelection: r = !1, disallowSelectAll: f = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: g = e.selectionBehavior === "replace", disallowTypeAhead: E = !1, shouldUseVirtualFocus: m, allowsTabNavigation: v = !1, isVirtualized: $, scrollRef: b = l, linkBehavior: k = "action" } = n, { direction: h } = ze(), d = Pe(), K = (o) => {
|
|
138
138
|
var s;
|
|
139
139
|
if (o.altKey && o.key === "Tab" && o.preventDefault(), !(!((s = l.current) === null || s === void 0) && s.contains(o.target))) return;
|
|
140
140
|
const p = (u, z) => {
|
|
141
141
|
if (u != null) {
|
|
142
142
|
if (e.isLink(u) && k === "selection" && g && !fe(o)) {
|
|
143
|
-
|
|
143
|
+
Be(() => {
|
|
144
144
|
e.setFocusedKey(u, z);
|
|
145
145
|
});
|
|
146
146
|
let U = re(l, u), de = e.getItemProps(u);
|
|
@@ -170,14 +170,14 @@ function bt(n) {
|
|
|
170
170
|
if (t.getKeyLeftOf) {
|
|
171
171
|
var _, ee, te;
|
|
172
172
|
let u = e.focusedKey != null ? (_ = t.getKeyLeftOf) === null || _ === void 0 ? void 0 : _.call(t, e.focusedKey) : null;
|
|
173
|
-
u == null && c && (u =
|
|
173
|
+
u == null && c && (u = h === "rtl" ? (ee = t.getFirstKey) === null || ee === void 0 ? void 0 : ee.call(t, e.focusedKey) : (te = t.getLastKey) === null || te === void 0 ? void 0 : te.call(t, e.focusedKey)), u != null && (o.preventDefault(), p(u, h === "rtl" ? "first" : "last"));
|
|
174
174
|
}
|
|
175
175
|
break;
|
|
176
176
|
case "ArrowRight":
|
|
177
177
|
if (t.getKeyRightOf) {
|
|
178
178
|
var le, ie, ne;
|
|
179
179
|
let u = e.focusedKey != null ? (le = t.getKeyRightOf) === null || le === void 0 ? void 0 : le.call(t, e.focusedKey) : null;
|
|
180
|
-
u == null && c && (u =
|
|
180
|
+
u == null && c && (u = h === "rtl" ? (ie = t.getLastKey) === null || ie === void 0 ? void 0 : ie.call(t, e.focusedKey) : (ne = t.getFirstKey) === null || ne === void 0 ? void 0 : ne.call(t, e.focusedKey)), u != null && (o.preventDefault(), p(u, h === "rtl" ? "last" : "first"));
|
|
181
181
|
}
|
|
182
182
|
break;
|
|
183
183
|
case "Home":
|
|
@@ -218,7 +218,7 @@ function bt(n) {
|
|
|
218
218
|
if (!v) {
|
|
219
219
|
if (o.shiftKey) l.current.focus();
|
|
220
220
|
else {
|
|
221
|
-
let u =
|
|
221
|
+
let u = Oe(l.current, {
|
|
222
222
|
tabbable: !0
|
|
223
223
|
}), z, U;
|
|
224
224
|
do
|
|
@@ -229,13 +229,13 @@ function bt(n) {
|
|
|
229
229
|
break;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
},
|
|
232
|
+
}, y = S({
|
|
233
233
|
top: 0,
|
|
234
234
|
left: 0
|
|
235
235
|
});
|
|
236
236
|
J(b, "scroll", $ ? void 0 : () => {
|
|
237
237
|
var o, s, p, x;
|
|
238
|
-
|
|
238
|
+
y.current = {
|
|
239
239
|
top: (p = (o = b.current) === null || o === void 0 ? void 0 : o.scrollTop) !== null && p !== void 0 ? p : 0,
|
|
240
240
|
left: (x = (s = b.current) === null || s === void 0 ? void 0 : s.scrollLeft) !== null && x !== void 0 ? x : 0
|
|
241
241
|
};
|
|
@@ -253,10 +253,10 @@ function bt(n) {
|
|
|
253
253
|
}, B = o.relatedTarget;
|
|
254
254
|
var x, T;
|
|
255
255
|
B && o.currentTarget.compareDocumentPosition(B) & Node.DOCUMENT_POSITION_FOLLOWING ? D((x = e.lastSelectedKey) !== null && x !== void 0 ? x : (s = t.getLastKey) === null || s === void 0 ? void 0 : s.call(t)) : D((T = e.firstSelectedKey) !== null && T !== void 0 ? T : (p = t.getFirstKey) === null || p === void 0 ? void 0 : p.call(t));
|
|
256
|
-
} else !$ && b.current && (b.current.scrollTop =
|
|
256
|
+
} else !$ && b.current && (b.current.scrollTop = y.current.top, b.current.scrollLeft = y.current.left);
|
|
257
257
|
if (e.focusedKey != null && b.current) {
|
|
258
258
|
let D = re(l, e.focusedKey);
|
|
259
|
-
D instanceof HTMLElement && (!D.contains(document.activeElement) && !m && ue(D),
|
|
259
|
+
D instanceof HTMLElement && (!D.contains(document.activeElement) && !m && ue(D), ve() === "keyboard" && pe(D, {
|
|
260
260
|
containingElement: l.current
|
|
261
261
|
}));
|
|
262
262
|
}
|
|
@@ -268,18 +268,18 @@ function bt(n) {
|
|
|
268
268
|
let { detail: s } = o;
|
|
269
269
|
o.stopPropagation(), e.setFocused(!0), (s == null ? void 0 : s.focusStrategy) === "first" && (I.current = !0);
|
|
270
270
|
} : void 0);
|
|
271
|
-
let
|
|
271
|
+
let C = ye(() => {
|
|
272
272
|
var o, s;
|
|
273
273
|
let p = (s = (o = t.getFirstKey) === null || o === void 0 ? void 0 : o.call(t)) !== null && s !== void 0 ? s : null;
|
|
274
274
|
p == null ? (De(l.current), e.collection.size > 0 && (I.current = !1)) : (e.setFocusedKey(p), I.current = !1);
|
|
275
275
|
});
|
|
276
276
|
be(() => {
|
|
277
|
-
I.current &&
|
|
277
|
+
I.current && C();
|
|
278
278
|
}, [
|
|
279
279
|
e.collection,
|
|
280
|
-
|
|
280
|
+
C
|
|
281
281
|
]);
|
|
282
|
-
let F =
|
|
282
|
+
let F = ye(() => {
|
|
283
283
|
e.collection.size > 0 && (I.current = !1);
|
|
284
284
|
});
|
|
285
285
|
be(() => {
|
|
@@ -313,11 +313,11 @@ function bt(n) {
|
|
|
313
313
|
let P = S(e.focusedKey), O = S(null);
|
|
314
314
|
q(() => {
|
|
315
315
|
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== P.current || R.current) && b.current && l.current) {
|
|
316
|
-
let o =
|
|
316
|
+
let o = ve(), s = re(l, e.focusedKey);
|
|
317
317
|
if (!(s instanceof HTMLElement))
|
|
318
318
|
return;
|
|
319
319
|
(o === "keyboard" || R.current) && (O.current && cancelAnimationFrame(O.current), O.current = requestAnimationFrame(() => {
|
|
320
|
-
b.current && (
|
|
320
|
+
b.current && (Ce(b.current, s), o !== "virtual" && pe(s, {
|
|
321
321
|
containingElement: l.current
|
|
322
322
|
}));
|
|
323
323
|
}));
|
|
@@ -386,8 +386,8 @@ function $t(n) {
|
|
|
386
386
|
} : a && (b.onMouseDown = (s) => {
|
|
387
387
|
s.preventDefault();
|
|
388
388
|
});
|
|
389
|
-
let k = t.isLink(l) && m === "override",
|
|
390
|
-
if (g && g(),
|
|
389
|
+
let k = t.isLink(l) && m === "override", h = t.isLink(l) && m !== "selection" && m !== "none", d = !a && t.canSelectItem(l) && !k, K = (g || h) && !a, y = K && (t.selectionBehavior === "replace" ? !d : !d || t.isEmpty), w = K && d && t.selectionBehavior === "replace", A = y || w, I = S(null), C = A && d, F = S(!1), W = S(!1), R = (s) => {
|
|
390
|
+
if (g && g(), h && i.current) {
|
|
391
391
|
let p = t.getItemProps(l);
|
|
392
392
|
v.open(i.current, s, p.href, p.routerOptions);
|
|
393
393
|
}
|
|
@@ -395,18 +395,18 @@ function $t(n) {
|
|
|
395
395
|
ref: i
|
|
396
396
|
};
|
|
397
397
|
c ? (P.onPressStart = (s) => {
|
|
398
|
-
I.current = s.pointerType, F.current =
|
|
399
|
-
}, E ? (P.onPressUp =
|
|
398
|
+
I.current = s.pointerType, F.current = C, s.pointerType === "keyboard" && (!A || me()) && $(s);
|
|
399
|
+
}, E ? (P.onPressUp = y ? void 0 : (s) => {
|
|
400
400
|
s.pointerType === "mouse" && d && $(s);
|
|
401
|
-
}, P.onPress =
|
|
401
|
+
}, P.onPress = y ? R : (s) => {
|
|
402
402
|
s.pointerType !== "keyboard" && s.pointerType !== "mouse" && d && $(s);
|
|
403
403
|
}) : P.onPress = (s) => {
|
|
404
|
-
if (
|
|
404
|
+
if (y || w && s.pointerType !== "mouse") {
|
|
405
405
|
if (s.pointerType === "keyboard" && !$e()) return;
|
|
406
406
|
R(s);
|
|
407
407
|
} else s.pointerType !== "keyboard" && d && $(s);
|
|
408
408
|
}) : (P.onPressStart = (s) => {
|
|
409
|
-
I.current = s.pointerType, F.current =
|
|
409
|
+
I.current = s.pointerType, F.current = C, W.current = y, d && (s.pointerType === "mouse" && !y || s.pointerType === "keyboard" && (!K || me())) && $(s);
|
|
410
410
|
}, P.onPress = (s) => {
|
|
411
411
|
(s.pointerType === "touch" || s.pointerType === "pen" || s.pointerType === "virtual" || s.pointerType === "keyboard" && A && $e() || s.pointerType === "mouse" && W.current) && (A ? R(s) : d && $(s));
|
|
412
412
|
}), b["data-collection"] = Je(t.collection), b["data-key"] = l, P.preventFocusOnPress = r, r && (P = Y(P, {
|
|
@@ -420,20 +420,20 @@ function $t(n) {
|
|
|
420
420
|
let { pressProps: O, isPressed: G } = Fe(P), Q = w ? (s) => {
|
|
421
421
|
I.current === "mouse" && (s.stopPropagation(), s.preventDefault(), R(s));
|
|
422
422
|
} : void 0, { longPressProps: Z } = Ge({
|
|
423
|
-
isDisabled: !
|
|
423
|
+
isDisabled: !C,
|
|
424
424
|
onLongPress(s) {
|
|
425
425
|
s.pointerType === "touch" && ($(s), t.setSelectionBehavior("toggle"));
|
|
426
426
|
}
|
|
427
427
|
}), X = (s) => {
|
|
428
428
|
I.current === "touch" && F.current && s.preventDefault();
|
|
429
429
|
}, o = t.isLink(l) ? (s) => {
|
|
430
|
-
|
|
430
|
+
Ie.isOpening || s.preventDefault();
|
|
431
431
|
} : void 0;
|
|
432
432
|
return {
|
|
433
433
|
itemProps: Y(
|
|
434
434
|
b,
|
|
435
|
-
d ||
|
|
436
|
-
|
|
435
|
+
d || y || r && !a ? O : {},
|
|
436
|
+
C ? Z : {},
|
|
437
437
|
{
|
|
438
438
|
onDoubleClick: Q,
|
|
439
439
|
onDragStartCapture: X,
|
|
@@ -516,13 +516,13 @@ class _e {
|
|
|
516
516
|
}
|
|
517
517
|
*getFullNode(e, t, l, i) {
|
|
518
518
|
if (V.isValidElement(e.element) && e.element.type === V.Fragment) {
|
|
519
|
-
let
|
|
519
|
+
let h = [];
|
|
520
520
|
V.Children.forEach(e.element.props.children, (K) => {
|
|
521
|
-
|
|
521
|
+
h.push(K);
|
|
522
522
|
});
|
|
523
523
|
var c;
|
|
524
524
|
let d = (c = e.index) !== null && c !== void 0 ? c : 0;
|
|
525
|
-
for (const K of
|
|
525
|
+
for (const K of h) yield* this.getFullNode({
|
|
526
526
|
element: K,
|
|
527
527
|
index: d++
|
|
528
528
|
}, t, l, i);
|
|
@@ -530,29 +530,29 @@ class _e {
|
|
|
530
530
|
}
|
|
531
531
|
let r = e.element;
|
|
532
532
|
if (!r && e.value && t && t.renderer) {
|
|
533
|
-
let
|
|
534
|
-
if (
|
|
535
|
-
|
|
533
|
+
let h = this.cache.get(e.value);
|
|
534
|
+
if (h && (!h.shouldInvalidate || !h.shouldInvalidate(this.context))) {
|
|
535
|
+
h.index = e.index, h.parentKey = i ? i.key : null, yield h;
|
|
536
536
|
return;
|
|
537
537
|
}
|
|
538
538
|
r = t.renderer(e.value);
|
|
539
539
|
}
|
|
540
540
|
if (V.isValidElement(r)) {
|
|
541
|
-
let
|
|
542
|
-
if (typeof
|
|
541
|
+
let h = r.type;
|
|
542
|
+
if (typeof h != "function" && typeof h.getCollectionNode != "function") {
|
|
543
543
|
let w = r.type;
|
|
544
544
|
throw new Error(`Unknown element <${w}> in collection.`);
|
|
545
545
|
}
|
|
546
|
-
let d =
|
|
546
|
+
let d = h.getCollectionNode(r.props, this.context);
|
|
547
547
|
var f;
|
|
548
|
-
let K = (f = e.index) !== null && f !== void 0 ? f : 0,
|
|
549
|
-
for (; !
|
|
550
|
-
let w =
|
|
548
|
+
let K = (f = e.index) !== null && f !== void 0 ? f : 0, y = d.next();
|
|
549
|
+
for (; !y.done && y.value; ) {
|
|
550
|
+
let w = y.value;
|
|
551
551
|
e.index = K;
|
|
552
552
|
var a;
|
|
553
553
|
let A = (a = w.key) !== null && a !== void 0 ? a : null;
|
|
554
554
|
A == null && (A = w.element ? null : this.getKey(r, e, t, l));
|
|
555
|
-
let
|
|
555
|
+
let C = [
|
|
556
556
|
...this.getFullNode({
|
|
557
557
|
...w,
|
|
558
558
|
key: A,
|
|
@@ -560,14 +560,14 @@ class _e {
|
|
|
560
560
|
wrapper: et(e.wrapper, w.wrapper)
|
|
561
561
|
}, this.getChildState(t, w), l ? `${l}${r.key}` : r.key, i)
|
|
562
562
|
];
|
|
563
|
-
for (let F of
|
|
563
|
+
for (let F of C) {
|
|
564
564
|
var g, E;
|
|
565
565
|
F.value = (E = (g = w.value) !== null && g !== void 0 ? g : e.value) !== null && E !== void 0 ? E : null, F.value && this.cache.set(F.value, F);
|
|
566
566
|
var m;
|
|
567
567
|
if (e.type && F.type !== e.type) throw new Error(`Unsupported type <${oe(F.type)}> in <${oe((m = i == null ? void 0 : i.type) !== null && m !== void 0 ? m : "unknown parent type")}>. Only <${oe(e.type)}> is supported.`);
|
|
568
568
|
K++, yield F;
|
|
569
569
|
}
|
|
570
|
-
|
|
570
|
+
y = d.next(C);
|
|
571
571
|
}
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
@@ -590,15 +590,15 @@ class _e {
|
|
|
590
590
|
hasChildNodes: e.hasChildNodes || !1,
|
|
591
591
|
childNodes: ge(function* () {
|
|
592
592
|
if (!e.hasChildNodes || !e.childNodes) return;
|
|
593
|
-
let
|
|
593
|
+
let h = 0;
|
|
594
594
|
for (let d of e.childNodes()) {
|
|
595
595
|
d.key != null && (d.key = `${k.key}${d.key}`);
|
|
596
596
|
let K = v.getFullNode({
|
|
597
597
|
...d,
|
|
598
|
-
index:
|
|
598
|
+
index: h
|
|
599
599
|
}, v.getChildState(t, d), k.key, k);
|
|
600
|
-
for (let
|
|
601
|
-
|
|
600
|
+
for (let y of K)
|
|
601
|
+
h++, yield y;
|
|
602
602
|
}
|
|
603
603
|
})
|
|
604
604
|
};
|
|
@@ -681,9 +681,9 @@ function Ke(n, e) {
|
|
|
681
681
|
l = n.getItem(l.parentKey), l && t.unshift(l);
|
|
682
682
|
return t;
|
|
683
683
|
}
|
|
684
|
-
class
|
|
684
|
+
class M extends Set {
|
|
685
685
|
constructor(e, t, l) {
|
|
686
|
-
super(e), e instanceof
|
|
686
|
+
super(e), e instanceof M ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
function nt(n, e) {
|
|
@@ -695,12 +695,12 @@ function nt(n, e) {
|
|
|
695
695
|
function Kt(n) {
|
|
696
696
|
let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: c = "all" } = n, r = S(!1), [, f] = se(!1), a = S(null), g = S(null), [, E] = se(null), m = j(() => Se(n.selectedKeys), [
|
|
697
697
|
n.selectedKeys
|
|
698
|
-
]), v = j(() => Se(n.defaultSelectedKeys, new
|
|
698
|
+
]), v = j(() => Se(n.defaultSelectedKeys, new M()), [
|
|
699
699
|
n.defaultSelectedKeys
|
|
700
700
|
]), [$, b] = Ue(m, v, n.onSelectionChange), k = j(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
701
701
|
n.disabledKeys
|
|
702
|
-
]), [
|
|
703
|
-
i === "replace" &&
|
|
702
|
+
]), [h, d] = se(i);
|
|
703
|
+
i === "replace" && h === "toggle" && typeof $ == "object" && $.size === 0 && d("replace");
|
|
704
704
|
let K = S(i);
|
|
705
705
|
return q(() => {
|
|
706
706
|
i !== K.current && (d(i), K.current = i);
|
|
@@ -709,13 +709,13 @@ function Kt(n) {
|
|
|
709
709
|
]), {
|
|
710
710
|
selectionMode: e,
|
|
711
711
|
disallowEmptySelection: t,
|
|
712
|
-
selectionBehavior:
|
|
712
|
+
selectionBehavior: h,
|
|
713
713
|
setSelectionBehavior: d,
|
|
714
714
|
get isFocused() {
|
|
715
715
|
return r.current;
|
|
716
716
|
},
|
|
717
|
-
setFocused(
|
|
718
|
-
r.current =
|
|
717
|
+
setFocused(y) {
|
|
718
|
+
r.current = y, f(y);
|
|
719
719
|
},
|
|
720
720
|
get focusedKey() {
|
|
721
721
|
return a.current;
|
|
@@ -723,19 +723,19 @@ function Kt(n) {
|
|
|
723
723
|
get childFocusStrategy() {
|
|
724
724
|
return g.current;
|
|
725
725
|
},
|
|
726
|
-
setFocusedKey(
|
|
727
|
-
a.current =
|
|
726
|
+
setFocusedKey(y, w = "first") {
|
|
727
|
+
a.current = y, g.current = w, E(y);
|
|
728
728
|
},
|
|
729
729
|
selectedKeys: $,
|
|
730
|
-
setSelectedKeys(
|
|
731
|
-
(l || !nt(
|
|
730
|
+
setSelectedKeys(y) {
|
|
731
|
+
(l || !nt(y, $)) && b(y);
|
|
732
732
|
},
|
|
733
733
|
disabledKeys: k,
|
|
734
734
|
disabledBehavior: c
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
737
|
function Se(n, e) {
|
|
738
|
-
return n ? n === "all" ? "all" : new
|
|
738
|
+
return n ? n === "all" ? "all" : new M(n) : e;
|
|
739
739
|
}
|
|
740
740
|
class Ee {
|
|
741
741
|
/**
|
|
@@ -863,14 +863,14 @@ class Ee {
|
|
|
863
863
|
let t = this.getKey(e);
|
|
864
864
|
if (t == null) return;
|
|
865
865
|
let l;
|
|
866
|
-
if (this.state.selectedKeys === "all") l = new
|
|
866
|
+
if (this.state.selectedKeys === "all") l = new M([
|
|
867
867
|
t
|
|
868
868
|
], t, t);
|
|
869
869
|
else {
|
|
870
870
|
let r = this.state.selectedKeys;
|
|
871
871
|
var i;
|
|
872
872
|
let f = (i = r.anchorKey) !== null && i !== void 0 ? i : t;
|
|
873
|
-
l = new
|
|
873
|
+
l = new M(r, f, t);
|
|
874
874
|
var c;
|
|
875
875
|
for (let a of this.getKeyRange(f, (c = r.currentKey) !== null && c !== void 0 ? c : t)) l.delete(a);
|
|
876
876
|
for (let a of this.getKeyRange(t, f)) this.canSelectItem(a) && l.add(a);
|
|
@@ -909,7 +909,7 @@ class Ee {
|
|
|
909
909
|
}
|
|
910
910
|
let t = this.getKey(e);
|
|
911
911
|
if (t == null) return;
|
|
912
|
-
let l = new
|
|
912
|
+
let l = new M(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
|
|
913
913
|
l.has(t) ? l.delete(t) : this.canSelectItem(t) && (l.add(t), l.anchorKey = t, l.currentKey = t), !(this.disallowEmptySelection && l.size === 0) && this.state.setSelectedKeys(l);
|
|
914
914
|
}
|
|
915
915
|
/**
|
|
@@ -919,9 +919,9 @@ class Ee {
|
|
|
919
919
|
if (this.selectionMode === "none") return;
|
|
920
920
|
let t = this.getKey(e);
|
|
921
921
|
if (t == null) return;
|
|
922
|
-
let l = this.canSelectItem(t) ? new
|
|
922
|
+
let l = this.canSelectItem(t) ? new M([
|
|
923
923
|
t
|
|
924
|
-
], t, t) : new
|
|
924
|
+
], t, t) : new M();
|
|
925
925
|
this.state.setSelectedKeys(l);
|
|
926
926
|
}
|
|
927
927
|
/**
|
|
@@ -929,7 +929,7 @@ class Ee {
|
|
|
929
929
|
*/
|
|
930
930
|
setSelectedKeys(e) {
|
|
931
931
|
if (this.selectionMode === "none") return;
|
|
932
|
-
let t = new
|
|
932
|
+
let t = new M();
|
|
933
933
|
for (let l of e) {
|
|
934
934
|
let i = this.getKey(l);
|
|
935
935
|
if (i != null && (t.add(i), this.selectionMode === "single"))
|
|
@@ -962,7 +962,7 @@ class Ee {
|
|
|
962
962
|
* Removes all keys from the selection.
|
|
963
963
|
*/
|
|
964
964
|
clearSelection() {
|
|
965
|
-
!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new
|
|
965
|
+
!this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new M());
|
|
966
966
|
}
|
|
967
967
|
/**
|
|
968
968
|
* Toggles between select all and an empty selection.
|
|
@@ -1017,10 +1017,10 @@ class Ee {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
export {
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1020
|
+
Kt as $,
|
|
1021
|
+
mt as a,
|
|
1022
|
+
Ee as b,
|
|
1023
|
+
re as c,
|
|
1024
1024
|
$t as d,
|
|
1025
1025
|
bt as e,
|
|
1026
1026
|
tt as f,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./SelectionManager-D0jYUYcy.cjs"),b=require("./ListKeyboardDelegate-CPsZ7D83.cjs"),d=require("react"),p=require("./utils-DHNZrQmj.cjs"),g=require("./Collection-BtBX5IMY.cjs");function y(t){let{selectionManager:e,collection:a,disabledKeys:r,ref:o,keyboardDelegate:c,layoutDelegate:$}=t,l=b.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),n=e.disabledBehavior,u=d.useMemo(()=>c||new b.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:a,disabledKeys:r,disabledBehavior:n,ref:o,collator:l,layoutDelegate:$}),[c,$,a,r,o,l,n]),{collectionProps:x}=i.$ae20dd8cbca75726$export$d6daf82dcd84e87c({...t,ref:o,selectionManager:e,keyboardDelegate:u});return{listProps:x}}const f=new WeakMap;function h(t){let e=f.get(t);if(e!=null)return e;let a=0,r=o=>{for(let c of o)c.type==="section"?r(i.$c5a24bc478652b5f$export$1005530eda016c13(c,t)):c.type==="item"&&a++};return r(t),f.set(t,a),a}const D=d.createContext(null),s=d.createContext({}),m=g.$e1995378a142960e$export$18af5c7a9e9b3664("header",function(e,a){return[e,a]=p.$64fa3d84918910a7$export$29f1550f4b0d4415(e,a,s),d.createElement("header",{className:"react-aria-Header",...e,ref:a},e.children)}),M=d.createContext({});exports.$431f98aba6844401$export$6615d83f6de245ce=M;exports.$453cc9f0df89c0a5$export$77d5aafae4e095b2=h;exports.$72a5793c14baf454$export$8b251419efc915eb=m;exports.$72a5793c14baf454$export$e0e4026c12a8bdbb=s;exports.$982254629710d113$export$b95089534ab7c1fd=y;exports.$d2f53cda644affe3$export$65d2a03b8800d6e3=D;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { e as b, f as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { $ as p } from "./useCollator-CgZcHC8N.js";
|
|
1
|
+
import { e as b, f as u } from "./SelectionManager-zsWy3vsd.js";
|
|
2
|
+
import { $ as m, a as p } from "./ListKeyboardDelegate-CY6t6y1t.js";
|
|
4
3
|
import x, { useMemo as g, createContext as d } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import { $ as h } from "./Collection
|
|
7
|
-
function
|
|
8
|
-
let { selectionManager: e, collection: a, disabledKeys: r, ref: c, keyboardDelegate: o, layoutDelegate: l } = t, $ =
|
|
4
|
+
import { $ as y } from "./utils-DJhAJHk_.js";
|
|
5
|
+
import { $ as h } from "./Collection--62xKPm9.js";
|
|
6
|
+
function P(t) {
|
|
7
|
+
let { selectionManager: e, collection: a, disabledKeys: r, ref: c, keyboardDelegate: o, layoutDelegate: l } = t, $ = m({
|
|
9
8
|
usage: "search",
|
|
10
9
|
sensitivity: "base"
|
|
11
|
-
}), s = e.disabledBehavior,
|
|
10
|
+
}), s = e.disabledBehavior, n = g(() => o || new p({
|
|
12
11
|
collection: a,
|
|
13
12
|
disabledKeys: r,
|
|
14
13
|
disabledBehavior: s,
|
|
@@ -23,38 +22,38 @@ function w(t) {
|
|
|
23
22
|
c,
|
|
24
23
|
$,
|
|
25
24
|
s
|
|
26
|
-
]), { collectionProps:
|
|
25
|
+
]), { collectionProps: i } = b({
|
|
27
26
|
...t,
|
|
28
27
|
ref: c,
|
|
29
28
|
selectionManager: e,
|
|
30
|
-
keyboardDelegate:
|
|
29
|
+
keyboardDelegate: n
|
|
31
30
|
});
|
|
32
31
|
return {
|
|
33
|
-
listProps:
|
|
32
|
+
listProps: i
|
|
34
33
|
};
|
|
35
34
|
}
|
|
36
35
|
const f = /* @__PURE__ */ new WeakMap();
|
|
37
|
-
function
|
|
36
|
+
function w(t) {
|
|
38
37
|
let e = f.get(t);
|
|
39
38
|
if (e != null) return e;
|
|
40
39
|
let a = 0, r = (c) => {
|
|
41
40
|
for (let o of c)
|
|
42
|
-
o.type === "section" ? r(
|
|
41
|
+
o.type === "section" ? r(u(o, t)) : o.type === "item" && a++;
|
|
43
42
|
};
|
|
44
43
|
return r(t), f.set(t, a), a;
|
|
45
44
|
}
|
|
46
|
-
const
|
|
45
|
+
const H = /* @__PURE__ */ d(null), D = /* @__PURE__ */ d({}), _ = /* @__PURE__ */ h("header", function(e, a) {
|
|
47
46
|
return [e, a] = y(e, a, D), /* @__PURE__ */ x.createElement("header", {
|
|
48
47
|
className: "react-aria-Header",
|
|
49
48
|
...e,
|
|
50
49
|
ref: a
|
|
51
50
|
}, e.children);
|
|
52
|
-
}),
|
|
51
|
+
}), C = /* @__PURE__ */ d({});
|
|
53
52
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
P as $,
|
|
54
|
+
w as a,
|
|
55
|
+
H as b,
|
|
56
|
+
C as c,
|
|
58
57
|
D as d,
|
|
59
|
-
|
|
58
|
+
_ as e
|
|
60
59
|
};
|