@midas-ds/components 11.2.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-iNNgJKD9.js +37 -0
- package/{BadgeContainer-DWVHS5dn.cjs → BadgeContainer-su0iCJKy.cjs} +1 -1
- package/Breadcrumbs-BAHJMPsu.js +271 -0
- package/Breadcrumbs-DUcHHI_2.cjs +1 -0
- package/Button-CMIbSc4-.cjs +1 -0
- package/{Button-CepQFEit.js → Button-DD5_S-tD.js} +154 -160
- package/{Button-BjMaGya2.js → Button-DYcmg49Z.js} +2 -2
- package/{Button-Dq6ugqxT.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 +114 -0
- package/Card-BDDyGAMA.js +131 -0
- package/Card-mj5lCIR4.cjs +1 -0
- package/{CharacterCounter-DSFBv3Rw.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
- package/{CharacterCounter-DpBDwvLw.js → CharacterCounter-DT7A0wWP.js} +8 -8
- 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-PiEHptw1.js → ColorSchemeSwitch-C4PMYeD5.js} +17 -25
- package/{ColorSchemeSwitch-owUryjYz.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +1 -1
- package/ComboBox-B2EmfOyr.cjs +1 -0
- package/{ComboBox-DfJ_aJrf.js → ComboBox-BWXJZyOR.js} +522 -511
- package/DateField-CcQJYDLD.js +47 -0
- package/DateField-IpCiF81R.cjs +1 -0
- package/{DateInputDivider-BmvqW1Hk.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-Cpc2EszJ.js → Dropdown-CIvWpN3v.js} +33 -32
- package/Dropdown-DJ2vWAqk.cjs +6 -0
- package/FieldError-Cornph2A.cjs +1 -0
- package/{FieldError-CDCvUjK5.js → FieldError-DdvFyIf4.js} +16 -14
- package/{FileUpload-BokzdXVc.js → FileUpload-D2gnQKdn.js} +76 -74
- package/{FileUpload-Bz9md5zc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
- package/{FocusScope-DMsfA3bj.js → FocusScope-Bj40Ir-g.js} +192 -195
- package/FocusScope-Uy3DiY0-.cjs +1 -0
- package/Grid-WbEkSCGh.cjs +1 -0
- package/{Grid--OhtgCo6.js → Grid-s8ovKDi8.js} +6 -9
- package/GridItem-CIVF1fRW.cjs +1 -0
- package/GridItem-D3FZyyO-.js +243 -0
- package/{Group-DOpbdoAi.cjs → Group-BKYGeOBr.cjs} +1 -1
- package/{Group-B0vQfHDy.js → Group-C73mD_-i.js} +6 -6
- package/Heading-BQlmb5Tm.js +46 -0
- package/Heading-D3FR_KXb.cjs +1 -0
- package/InfoBanner-CqjnTYaa.cjs +1 -0
- package/InfoBanner-CrA8MS3v.js +83 -0
- package/{Input-n-Z20KbW.js → Input-BLVRv0FK.js} +4 -4
- package/{Input-MJji5hhq.cjs → Input-CzMx2mfl.cjs} +1 -1
- package/{Label-endv1fkJ.js → Label-BG7G0iyG.js} +23 -27
- package/Label-C00qz3kQ.cjs +1 -0
- package/Layout-Bta_Cpq_.cjs +16 -0
- package/Layout-CG-Qxr_1.js +482 -0
- package/{Link-ovwNVMfg.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-CHki611g.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
- package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
- package/{Logo-BpH0HC91.cjs → Logo-CFjZc5u2.cjs} +1 -1
- package/{Logo-ME4ffCue.js → Logo-DkagDdKQ.js} +14 -18
- package/OverlayArrow-ByH6lM-H.cjs +1 -0
- package/OverlayArrow-CvNuu3e3.js +519 -0
- package/{Popover-BDvKByTT.cjs → Popover-Bi5yJEoE.cjs} +1 -1
- package/{Popover-Tniqbaes.js → Popover-CyEVqpJ6.js} +11 -11
- package/{PressResponder-C3APAKsz.js → PressResponder-CxVtArtP.js} +4 -4
- package/{PressResponder-4jE_HLu3.cjs → PressResponder-DbnYqwGB.cjs} +1 -1
- 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-BCruEq9d.js → RangeCalendar-D7eFVAPP.js} +637 -629
- package/{SearchField-QFyuaT-K.cjs → SearchField-BbrUZpQm.cjs} +2 -2
- package/{SearchField-nwlyszwt.js → SearchField-F2FKgYds.js} +27 -31
- package/Select-BnbDXwgD.cjs +1 -0
- package/Select-Dpi3LhbI.js +654 -0
- package/{SelectionManager-BKrZ_mMO.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-DGTwyh7U.js → Table-CkN3y69S.js} +883 -804
- package/Tag-7dHEMQum.cjs +1 -0
- package/Tag-BUJ20HHw.js +765 -0
- package/Text-BAFsaON-.cjs +1 -0
- package/{Text-DcZqSUN9.js → Text-Be7WIOwv.js} +1 -1
- package/{Text-CfcjRtke.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-CWt_mNIg.js → Toast-BBkWczCk.js} +234 -253
- package/Toast-DclaxvZM.cjs +1 -0
- 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-CYfmTSCD.js → VisuallyHidden-CGEtjAP7.js} +2 -2
- package/{VisuallyHidden-Doyzl0F7.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
- package/accordion/Accordion.d.ts +8 -2
- package/accordion/AccordionContext.d.ts +4 -0
- package/accordion/AccordionItem.d.ts +6 -4
- 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 -0
- package/assets/variables.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +0 -2
- 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/ComboBox.d.ts +0 -4
- package/combobox/index.cjs +1 -1
- package/combobox/index.d.ts +1 -2
- package/combobox/index.js +2 -3
- package/combobox/intl/translations.json.d.ts +4 -2
- package/combobox/types.d.ts +0 -13
- package/common/icon-map.d.ts +6 -0
- package/common/types.d.ts +8 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +25 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/filterDOMProps-RRlKPKX0.cjs +1 -0
- package/filterDOMProps-wsa9OcNI.js +65 -0
- package/grid/Grid.d.ts +0 -8
- package/grid/GridItem.d.ts +0 -8
- package/grid/index.cjs +1 -1
- package/grid/index.d.ts +2 -2
- package/grid/index.js +4 -6
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/icon-map-9XcghDra.cjs +11 -0
- package/icon-map-uS87FT_Q.js +43 -0
- package/{index-CGRFP4CC.js → index-BLPblar-.js} +34 -31
- package/index-DSFSh2sC.cjs +17 -0
- package/index.cjs +1 -1
- package/index.d.ts +2 -0
- package/index.js +133 -121
- package/info-banner/InfoBanner.d.ts +18 -10
- 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-C1U1OIeJ.js → mergeProps-BSsN7Bgk.js} +36 -34
- package/mergeProps-JhcJ7uJL.cjs +1 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +9 -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.d.ts +1 -1
- package/select/index.js +1 -1
- package/select/types.d.ts +1 -13
- 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/Table.d.ts +7 -12
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tabs.d.ts +0 -12
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/Tag.d.ts +2 -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 +39 -12
- package/theme/index.js +4037 -13
- package/theme/tokens.d.ts +65 -18
- package/toast/Toast.d.ts +2 -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-B3FfJ-rY.cjs +1 -0
- package/{tokens-CqvelUoA.js → tokens-B9ooUP4g.js} +69 -32
- 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-C7BJgoDR.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
- package/{useDescription-DYfKjGGU.js → useDescription-BLmIkYCq.js} +1 -1
- package/{useDescription-CPo72trh.cjs → useDescription-BMuiAqI5.cjs} +1 -1
- package/{useEvent-DPxMu-X9.cjs → useEvent-3ZO5TPSH.cjs} +1 -1
- package/{useEvent-CigwyJOw.js → useEvent-DpBHTuHJ.js} +1 -1
- package/{useField-CefQB81E.js → useField-BMegM8fA.js} +2 -2
- package/{useField-D1UkzeaI.cjs → useField-DyeD7MLj.cjs} +1 -1
- package/{useFilter-DsOxD9JB.js → useFilter-BFnSe_Eq.js} +1 -1
- package/{useFilter-BhM2yVO3.cjs → useFilter-aoggM85n.cjs} +1 -1
- package/{useFocusRing-B-A1OLhU.cjs → useFocusRing-BcbYske2.cjs} +1 -1
- package/{useFocusRing-DOfBqnUN.js → useFocusRing-DMo8ctYV.js} +2 -2
- package/{useFocusWithin-T1ifEM_s.js → useFocusWithin-ClMkhYcq.js} +1 -1
- package/{useFocusWithin-CG8mAt2D.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
- package/{useFocusable-D7I1ujkW.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
- package/{useFocusable-BjE42axF.js → useFocusable-DXlMChFC.js} +4 -4
- package/useFormValidation-BQIRxgbU.cjs +1 -0
- package/useFormValidation-L0UHvOsP.js +217 -0
- package/{useHasTabbableChild-BgEe5J35.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
- package/{useHasTabbableChild-CoQRpNbC.cjs → useHasTabbableChild-CJcLnolh.cjs} +1 -1
- package/{useHighlightSelectionDescription-xr_16pKd.js → useHighlightSelectionDescription-BkEv9Jye.js} +4 -4
- package/{useHighlightSelectionDescription-DmbDkFGY.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
- package/{useHover-DQvJ3Y-W.js → useHover-D6bNIkU0.js} +76 -74
- package/useHover-DGAmG7jt.cjs +1 -0
- package/{useLabels-CSU0kbtJ.cjs → useLabels-CvUk-yS3.cjs} +1 -1
- package/{useLabels-LrKQiY11.js → useLabels-Kmq5JCp_.js} +1 -1
- package/useListState-D2IEg6_e.cjs +1 -0
- package/{useListState-B3c3xcNW.js → useListState-pixYqSLl.js} +43 -42
- package/usePress-CicXV7UO.cjs +7 -0
- package/{usePress-BW47IcyU.js → usePress-DMUpU0GU.js} +153 -149
- package/{useSingleSelectListState-DdBsBWKG.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
- package/{useSingleSelectListState-DlO5H9N-.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
- package/{useTextField-DjxayZsV.js → useTextField-BC5X_AO_.js} +30 -27
- package/useTextField-Cxpfu0U3.cjs +1 -0
- package/useToggleState-BVOqL4hI.js +21 -0
- package/useToggleState-SqDyNfRi.cjs +1 -0
- package/utils/types.d.ts +4 -0
- package/{utils-DHNZrQmj.cjs → utils-CMHKYKlz.cjs} +1 -1
- package/{utils-KLjWgdLR.js → utils-Cpcjg55U.js} +1 -1
- package/utils-DFIwp4PB.js +262 -0
- package/utils-__vrf9VZ.cjs +1 -0
- package/AccordionItem-BPOQqTkQ.js +0 -323
- package/AccordionItem-CS-QKqrU.cjs +0 -1
- package/BadgeContainer-CKBIZWsc.js +0 -37
- package/Breadcrumbs-BBzSV4SK.js +0 -262
- package/Breadcrumbs-CFUryOhf.cjs +0 -1
- package/Button-DExMoP5f.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-BRs1FKX5.js +0 -131
- package/Card-cdL5669N.cjs +0 -1
- package/Checkbox-Co3h0hur.cjs +0 -1
- package/Checkbox-EB_SCBEo.js +0 -264
- package/CheckboxGroup-CT_eqERw.cjs +0 -1
- package/CheckboxGroup-DvrN1oyw.js +0 -159
- package/Collection-BtBX5IMY.cjs +0 -1
- package/Collection-D2jVTmDW.js +0 -577
- package/ComboBox-D_jh7TKo.cjs +0 -1
- package/DateField-BURrxhil.cjs +0 -1
- package/DateField-DKCbEonm.js +0 -47
- package/DateInputDivider-ToFY-yjB.cjs +0 -1
- package/DateRangePicker-B5vx9onl.js +0 -870
- package/DateRangePicker-DkIAEIIj.cjs +0 -6
- package/Dialog-CxHiZorC.cjs +0 -1
- package/Dialog-D5c_dUnB.js +0 -1611
- package/Dialog-DtHk3eXI.cjs +0 -1
- package/Dialog-DuGcBeNN.js +0 -212
- package/DragAndDrop-CSg60YQE.cjs +0 -1
- package/DragAndDrop-DOXLfJaA.js +0 -60
- package/Dropdown-CYakzdJg.cjs +0 -6
- package/FieldError-Bv3Q6ZP-.cjs +0 -1
- package/FocusScope-vcXLOQiu.cjs +0 -1
- package/Grid-DVQtOcu9.cjs +0 -1
- package/GridItem-DlbSdRmB.js +0 -246
- package/GridItem-XgHmZWXY.cjs +0 -1
- package/Heading-CKTR4sOz.cjs +0 -1
- package/Heading-D2y_kiC0.js +0 -46
- package/InfoBanner-CzwbOdRG.cjs +0 -1
- package/InfoBanner-D05poAe3.js +0 -91
- package/Label-ChjDdBlv.cjs +0 -1
- package/Layout-D0E1fOgZ.cjs +0 -16
- package/Layout-DtyhUz-G.js +0 -498
- package/Link-CibH8uRY.js +0 -72
- package/Link-CidjjqHb.cjs +0 -1
- package/Link-ESjrl63P.cjs +0 -6
- package/LinkButton-B6AWNiRn.cjs +0 -6
- package/LinkButton-BkZULm2a.js +0 -69
- package/ListBox-B0E1hdEt.cjs +0 -1
- package/ListBox-Djy7244v.js +0 -531
- package/ListBoxButton-CIqNRR3y.cjs +0 -1
- package/ListBoxButton-sqirI6I4.js +0 -15
- package/ListBoxSection-BYJccE4T.cjs +0 -1
- package/ListBoxSection-Cicbu8pS.js +0 -1058
- package/ListKeyboardDelegate-ZKBk2IId.cjs +0 -1
- package/OverlayArrow-DB_aVTVM.js +0 -507
- package/OverlayArrow-DpZ1FqOd.cjs +0 -1
- package/ProgressBar-ClysdvqU.cjs +0 -1
- package/ProgressBar-DTn23Zkr.js +0 -53
- package/Radio-CCN3o3s-.js +0 -313
- package/Radio-Cz0vLIBw.cjs +0 -1
- package/RangeCalendar-BY82hPRu.cjs +0 -11
- package/Select-MwvnbChP.js +0 -664
- package/Select-lhIwwJL7.cjs +0 -1
- package/SelectionManager-BJjqIWtf.cjs +0 -1
- package/Separator-DPLEx950.cjs +0 -1
- package/Separator-DvvVAypT.js +0 -59
- package/Skeleton-BAwbfKBW.cjs +0 -1
- package/Skeleton-BePDRmrO.js +0 -40
- package/Spinner-VSyPhiJ9.js +0 -51
- package/Spinner-vof0Y9Hh.cjs +0 -6
- package/TabList-CWMlbijV.cjs +0 -1
- package/TabList-VpTv_Xff.js +0 -435
- package/Table-DGYC-sDq.cjs +0 -16
- package/Tag-bYq-wf5D.cjs +0 -1
- package/Tag-rI-NhuT0.js +0 -748
- package/Text-BPcfhYQ9.js +0 -32
- package/Text-DBHWi5gA.cjs +0 -1
- package/TextArea-CrEALC58.js +0 -119
- package/TextArea-DJKHFKuI.cjs +0 -1
- package/TextField-BAX93sq7.cjs +0 -1
- package/TextField-Dma22dnD.js +0 -120
- package/TextField.module-BcpPBWnD.js +0 -13
- package/TextField.module-Dw5Rtn9y.cjs +0 -1
- package/Toast-DdmSvNaO.cjs +0 -1
- package/ToggleButtonGroup-98z8Dw8-.js +0 -211
- package/ToggleButtonGroup-DZ_wo0qx.cjs +0 -1
- package/Tooltip-DjNc93tV.js +0 -285
- package/Tooltip-pN5W3IK6.cjs +0 -1
- package/circle-check-BErh6TKu.js +0 -26
- package/circle-check-OVUGxwp9.cjs +0 -11
- package/filterDOMProps-BS2lrgFA.cjs +0 -1
- package/filterDOMProps-D6KHYVBX.js +0 -24
- package/index-Dsz3aiWt.cjs +0 -17
- package/mergeProps-B5KXZAI3.cjs +0 -1
- package/tokens-5PzK5zK7.cjs +0 -1
- package/triangle-alert-B_qAPmWC.js +0 -21
- package/triangle-alert-BviJNFjf.cjs +0 -6
- package/useButton-BoIV3kDJ.js +0 -47
- package/useButton-D60q0SQw.cjs +0 -1
- package/useDateFormatter-BJBt0jk_.cjs +0 -1
- package/useFormValidation-BlFGdPZB.cjs +0 -1
- package/useFormValidation-BzzruZKm.js +0 -215
- package/useHover-BE_XKZKe.cjs +0 -1
- package/useListState-wLau6fXo.cjs +0 -1
- package/usePress-BooY_CAy.cjs +0 -7
- package/useTextField-DnRrCg5o.cjs +0 -1
- package/useToggleState-Bz5rAf4C.js +0 -18
- package/useToggleState-DoIkSQdj.cjs +0 -1
- package/utils-CoCR_Fce.js +0 -234
- package/utils-Dvdohqm9.cjs +0 -1
package/Dialog-D5c_dUnB.js
DELETED
|
@@ -1,1611 +0,0 @@
|
|
|
1
|
-
import { e as Pr } from "./Button-CepQFEit.js";
|
|
2
|
-
import { $ as re, a as j, f as L, c as Er, b as Ke, g as de, h as Dr, d as Cr } from "./utils-KLjWgdLR.js";
|
|
3
|
-
import { $ as Ar } from "./RSPContexts-BW2SEIqe.js";
|
|
4
|
-
import { h as Mr, e as wr, d as Sr, a as Te, b as kr, c as Br, f as Fr, g as Oe } from "./OverlayArrow-DB_aVTVM.js";
|
|
5
|
-
import { $ as Kr, b as Tr, c as Or, d as Re, e as Rr, g as Ir } from "./Collection-D2jVTmDW.js";
|
|
6
|
-
import { $ as Nr, a as Lr, b as Ce, c as zr, d as _r } from "./Separator-DvvVAypT.js";
|
|
7
|
-
import f, { useRef as k, useEffect as z, useState as B, useMemo as V, useContext as E, useCallback as pe, forwardRef as be, createContext as D } from "react";
|
|
8
|
-
import { $ as Hr } from "./Text-DcZqSUN9.js";
|
|
9
|
-
import { d as Ae, c as oe, $ as W, e as ce, a as G, b as Q } from "./mergeProps-C1U1OIeJ.js";
|
|
10
|
-
import { $ as F } from "./filterDOMProps-D6KHYVBX.js";
|
|
11
|
-
import { l as Ur, d as Vr, $ as Ie, a as Wr, b as Ne } from "./SelectionManager-BKrZ_mMO.js";
|
|
12
|
-
import { a as jr, $ as Le } from "./PressResponder-C3APAKsz.js";
|
|
13
|
-
import { l as Gr, $ as ze, a as Me, c as qr } from "./useHover-DQvJ3Y-W.js";
|
|
14
|
-
import { b as Zr, m as we } from "./utils-CoCR_Fce.js";
|
|
15
|
-
import { $ as _e } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
|
|
16
|
-
import { c as Jr, b as Yr, d as Xr } from "./usePress-BW47IcyU.js";
|
|
17
|
-
import { f as Qr, b as fe } from "./useFocusable-BjE42axF.js";
|
|
18
|
-
import { $ as eo } from "./useControlledState-u436Wbp1.js";
|
|
19
|
-
import { c as to, a as He } from "./FocusScope-DMsfA3bj.js";
|
|
20
|
-
import ro from "react-dom";
|
|
21
|
-
import { $ as oo } from "./SSRProvider-40TXmsUG.js";
|
|
22
|
-
import { b as ao } from "./Hidden-C9KWUR7b.js";
|
|
23
|
-
import { $ as no } from "./context-CGNJ3grH.js";
|
|
24
|
-
import { $ as so } from "./useFocusWithin-T1ifEM_s.js";
|
|
25
|
-
import { $ as Ue } from "./getScrollParent-Ru2U2LlM.js";
|
|
26
|
-
import { $ as lo } from "./useLabels-LrKQiY11.js";
|
|
27
|
-
import { $ as io } from "./VisuallyHidden-CYfmTSCD.js";
|
|
28
|
-
function uo(t) {
|
|
29
|
-
let { ref: e, onInteractOutside: r, isDisabled: a, onInteractOutsideStart: o } = t, s = k({
|
|
30
|
-
isPointerDown: !1,
|
|
31
|
-
ignoreEmulatedMouseEvents: !1
|
|
32
|
-
}), u = Ae((n) => {
|
|
33
|
-
r && Y(n, e) && (o && o(n), s.current.isPointerDown = !0);
|
|
34
|
-
}), i = Ae((n) => {
|
|
35
|
-
r && r(n);
|
|
36
|
-
});
|
|
37
|
-
z(() => {
|
|
38
|
-
let n = s.current;
|
|
39
|
-
if (a) return;
|
|
40
|
-
const d = e.current, l = Zr(d);
|
|
41
|
-
if (typeof PointerEvent < "u") {
|
|
42
|
-
let $ = (p) => {
|
|
43
|
-
n.isPointerDown && Y(p, e) && i(p), n.isPointerDown = !1;
|
|
44
|
-
};
|
|
45
|
-
return l.addEventListener("pointerdown", u, !0), l.addEventListener("click", $, !0), () => {
|
|
46
|
-
l.removeEventListener("pointerdown", u, !0), l.removeEventListener("click", $, !0);
|
|
47
|
-
};
|
|
48
|
-
} else if (process.env.NODE_ENV === "test") {
|
|
49
|
-
let $ = (c) => {
|
|
50
|
-
n.ignoreEmulatedMouseEvents ? n.ignoreEmulatedMouseEvents = !1 : n.isPointerDown && Y(c, e) && i(c), n.isPointerDown = !1;
|
|
51
|
-
}, p = (c) => {
|
|
52
|
-
n.ignoreEmulatedMouseEvents = !0, n.isPointerDown && Y(c, e) && i(c), n.isPointerDown = !1;
|
|
53
|
-
};
|
|
54
|
-
return l.addEventListener("mousedown", u, !0), l.addEventListener("mouseup", $, !0), l.addEventListener("touchstart", u, !0), l.addEventListener("touchend", p, !0), () => {
|
|
55
|
-
l.removeEventListener("mousedown", u, !0), l.removeEventListener("mouseup", $, !0), l.removeEventListener("touchstart", u, !0), l.removeEventListener("touchend", p, !0);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}, [
|
|
59
|
-
e,
|
|
60
|
-
a,
|
|
61
|
-
u,
|
|
62
|
-
i
|
|
63
|
-
]);
|
|
64
|
-
}
|
|
65
|
-
function Y(t, e) {
|
|
66
|
-
if (t.button > 0) return !1;
|
|
67
|
-
if (t.target) {
|
|
68
|
-
const r = t.target.ownerDocument;
|
|
69
|
-
if (!r || !r.documentElement.contains(t.target) || t.target.closest("[data-react-aria-top-layer]")) return !1;
|
|
70
|
-
}
|
|
71
|
-
return e.current ? !t.composedPath().includes(e.current) : !1;
|
|
72
|
-
}
|
|
73
|
-
const A = [];
|
|
74
|
-
function co(t, e) {
|
|
75
|
-
let { onClose: r, shouldCloseOnBlur: a, isOpen: o, isDismissable: s = !1, isKeyboardDismissDisabled: u = !1, shouldCloseOnInteractOutside: i } = t;
|
|
76
|
-
z(() => {
|
|
77
|
-
if (o && !A.includes(e))
|
|
78
|
-
return A.push(e), () => {
|
|
79
|
-
let b = A.indexOf(e);
|
|
80
|
-
b >= 0 && A.splice(b, 1);
|
|
81
|
-
};
|
|
82
|
-
}, [
|
|
83
|
-
o,
|
|
84
|
-
e
|
|
85
|
-
]);
|
|
86
|
-
let n = () => {
|
|
87
|
-
A[A.length - 1] === e && r && r();
|
|
88
|
-
}, d = (b) => {
|
|
89
|
-
(!i || i(b.target)) && A[A.length - 1] === e && (b.stopPropagation(), b.preventDefault());
|
|
90
|
-
}, l = (b) => {
|
|
91
|
-
(!i || i(b.target)) && (A[A.length - 1] === e && (b.stopPropagation(), b.preventDefault()), n());
|
|
92
|
-
}, $ = (b) => {
|
|
93
|
-
b.key === "Escape" && !u && !b.nativeEvent.isComposing && (b.stopPropagation(), b.preventDefault(), n());
|
|
94
|
-
};
|
|
95
|
-
uo({
|
|
96
|
-
ref: e,
|
|
97
|
-
onInteractOutside: s && o ? l : void 0,
|
|
98
|
-
onInteractOutsideStart: d
|
|
99
|
-
});
|
|
100
|
-
let { focusWithinProps: p } = so({
|
|
101
|
-
isDisabled: !a,
|
|
102
|
-
onBlurWithin: (b) => {
|
|
103
|
-
!b.relatedTarget || to(b.relatedTarget) || (!i || i(b.relatedTarget)) && (r == null || r());
|
|
104
|
-
}
|
|
105
|
-
}), c = (b) => {
|
|
106
|
-
b.target === b.currentTarget && b.preventDefault();
|
|
107
|
-
};
|
|
108
|
-
return {
|
|
109
|
-
overlayProps: {
|
|
110
|
-
onKeyDown: $,
|
|
111
|
-
...p
|
|
112
|
-
},
|
|
113
|
-
underlayProps: {
|
|
114
|
-
onPointerDown: c
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
function Ve(t, e, r) {
|
|
119
|
-
let { type: a } = t, { isOpen: o } = e;
|
|
120
|
-
z(() => {
|
|
121
|
-
r && r.current && Mr.set(r.current, e.close);
|
|
122
|
-
});
|
|
123
|
-
let s;
|
|
124
|
-
a === "menu" ? s = !0 : a === "listbox" && (s = "listbox");
|
|
125
|
-
let u = oe();
|
|
126
|
-
return {
|
|
127
|
-
triggerProps: {
|
|
128
|
-
"aria-haspopup": s,
|
|
129
|
-
"aria-expanded": o,
|
|
130
|
-
"aria-controls": o ? u : void 0,
|
|
131
|
-
onPress: e.toggle
|
|
132
|
-
},
|
|
133
|
-
overlayProps: {
|
|
134
|
-
id: u
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
const ie = typeof document < "u" && window.visualViewport, fo = /* @__PURE__ */ new Set([
|
|
139
|
-
"checkbox",
|
|
140
|
-
"radio",
|
|
141
|
-
"range",
|
|
142
|
-
"color",
|
|
143
|
-
"file",
|
|
144
|
-
"image",
|
|
145
|
-
"button",
|
|
146
|
-
"submit",
|
|
147
|
-
"reset"
|
|
148
|
-
]);
|
|
149
|
-
let X = 0, ue;
|
|
150
|
-
function $o(t = {}) {
|
|
151
|
-
let { isDisabled: e } = t;
|
|
152
|
-
W(() => {
|
|
153
|
-
if (!e)
|
|
154
|
-
return X++, X === 1 && (Gr() ? ue = bo() : ue = po()), () => {
|
|
155
|
-
X--, X === 0 && ue();
|
|
156
|
-
};
|
|
157
|
-
}, [
|
|
158
|
-
e
|
|
159
|
-
]);
|
|
160
|
-
}
|
|
161
|
-
function po() {
|
|
162
|
-
let t = window.innerWidth - document.documentElement.clientWidth;
|
|
163
|
-
return ce(t > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
|
|
164
|
-
("scrollbarGutter" in document.documentElement.style ? S(document.documentElement, "scrollbarGutter", "stable") : S(document.documentElement, "paddingRight", `${t}px`)), S(document.documentElement, "overflow", "hidden"));
|
|
165
|
-
}
|
|
166
|
-
function bo() {
|
|
167
|
-
let t, e, r = (d) => {
|
|
168
|
-
t = Ue(d.target, !0), !(t === document.documentElement && t === document.body) && t instanceof HTMLElement && window.getComputedStyle(t).overscrollBehavior === "auto" && (e = S(t, "overscrollBehavior", "contain"));
|
|
169
|
-
}, a = (d) => {
|
|
170
|
-
if (!t || t === document.documentElement || t === document.body) {
|
|
171
|
-
d.preventDefault();
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && d.preventDefault();
|
|
175
|
-
}, o = () => {
|
|
176
|
-
e && e();
|
|
177
|
-
}, s = (d) => {
|
|
178
|
-
let l = d.target;
|
|
179
|
-
mo(l) && (i(), l.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
|
|
180
|
-
l.style.transform = "", ie && (ie.height < window.innerHeight ? requestAnimationFrame(() => {
|
|
181
|
-
Se(l);
|
|
182
|
-
}) : ie.addEventListener("resize", () => Se(l), {
|
|
183
|
-
once: !0
|
|
184
|
-
}));
|
|
185
|
-
}));
|
|
186
|
-
}, u = null, i = () => {
|
|
187
|
-
if (u) return;
|
|
188
|
-
let d = () => {
|
|
189
|
-
window.scrollTo(0, 0);
|
|
190
|
-
}, l = window.pageXOffset, $ = window.pageYOffset;
|
|
191
|
-
u = ce(H(window, "scroll", d), S(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), S(document.documentElement, "overflow", "hidden"), S(document.body, "marginTop", `-${$}px`), () => {
|
|
192
|
-
window.scrollTo(l, $);
|
|
193
|
-
}), window.scrollTo(0, 0);
|
|
194
|
-
}, n = ce(H(document, "touchstart", r, {
|
|
195
|
-
passive: !1,
|
|
196
|
-
capture: !0
|
|
197
|
-
}), H(document, "touchmove", a, {
|
|
198
|
-
passive: !1,
|
|
199
|
-
capture: !0
|
|
200
|
-
}), H(document, "touchend", o, {
|
|
201
|
-
passive: !1,
|
|
202
|
-
capture: !0
|
|
203
|
-
}), H(document, "focus", s, !0));
|
|
204
|
-
return () => {
|
|
205
|
-
e == null || e(), u == null || u(), n();
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
function S(t, e, r) {
|
|
209
|
-
let a = t.style[e];
|
|
210
|
-
return t.style[e] = r, () => {
|
|
211
|
-
t.style[e] = a;
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
function H(t, e, r, a) {
|
|
215
|
-
return t.addEventListener(e, r, a), () => {
|
|
216
|
-
t.removeEventListener(e, r, a);
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
function Se(t) {
|
|
220
|
-
let e = document.scrollingElement || document.documentElement, r = t;
|
|
221
|
-
for (; r && r !== e; ) {
|
|
222
|
-
let a = Ue(r);
|
|
223
|
-
if (a !== document.documentElement && a !== document.body && a !== r) {
|
|
224
|
-
let o = a.getBoundingClientRect().top, s = r.getBoundingClientRect().top;
|
|
225
|
-
s > o + r.clientHeight && (a.scrollTop += s - o);
|
|
226
|
-
}
|
|
227
|
-
r = a.parentElement;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
function mo(t) {
|
|
231
|
-
return t instanceof HTMLInputElement && !fo.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
|
|
232
|
-
}
|
|
233
|
-
var We = {};
|
|
234
|
-
We = {
|
|
235
|
-
dismiss: "تجاهل"
|
|
236
|
-
};
|
|
237
|
-
var je = {};
|
|
238
|
-
je = {
|
|
239
|
-
dismiss: "Отхвърляне"
|
|
240
|
-
};
|
|
241
|
-
var Ge = {};
|
|
242
|
-
Ge = {
|
|
243
|
-
dismiss: "Odstranit"
|
|
244
|
-
};
|
|
245
|
-
var qe = {};
|
|
246
|
-
qe = {
|
|
247
|
-
dismiss: "Luk"
|
|
248
|
-
};
|
|
249
|
-
var Ze = {};
|
|
250
|
-
Ze = {
|
|
251
|
-
dismiss: "Schließen"
|
|
252
|
-
};
|
|
253
|
-
var Je = {};
|
|
254
|
-
Je = {
|
|
255
|
-
dismiss: "Απόρριψη"
|
|
256
|
-
};
|
|
257
|
-
var Ye = {};
|
|
258
|
-
Ye = {
|
|
259
|
-
dismiss: "Dismiss"
|
|
260
|
-
};
|
|
261
|
-
var Xe = {};
|
|
262
|
-
Xe = {
|
|
263
|
-
dismiss: "Descartar"
|
|
264
|
-
};
|
|
265
|
-
var Qe = {};
|
|
266
|
-
Qe = {
|
|
267
|
-
dismiss: "Lõpeta"
|
|
268
|
-
};
|
|
269
|
-
var et = {};
|
|
270
|
-
et = {
|
|
271
|
-
dismiss: "Hylkää"
|
|
272
|
-
};
|
|
273
|
-
var tt = {};
|
|
274
|
-
tt = {
|
|
275
|
-
dismiss: "Rejeter"
|
|
276
|
-
};
|
|
277
|
-
var rt = {};
|
|
278
|
-
rt = {
|
|
279
|
-
dismiss: "התעלם"
|
|
280
|
-
};
|
|
281
|
-
var ot = {};
|
|
282
|
-
ot = {
|
|
283
|
-
dismiss: "Odbaci"
|
|
284
|
-
};
|
|
285
|
-
var at = {};
|
|
286
|
-
at = {
|
|
287
|
-
dismiss: "Elutasítás"
|
|
288
|
-
};
|
|
289
|
-
var nt = {};
|
|
290
|
-
nt = {
|
|
291
|
-
dismiss: "Ignora"
|
|
292
|
-
};
|
|
293
|
-
var st = {};
|
|
294
|
-
st = {
|
|
295
|
-
dismiss: "閉じる"
|
|
296
|
-
};
|
|
297
|
-
var lt = {};
|
|
298
|
-
lt = {
|
|
299
|
-
dismiss: "무시"
|
|
300
|
-
};
|
|
301
|
-
var it = {};
|
|
302
|
-
it = {
|
|
303
|
-
dismiss: "Atmesti"
|
|
304
|
-
};
|
|
305
|
-
var ut = {};
|
|
306
|
-
ut = {
|
|
307
|
-
dismiss: "Nerādīt"
|
|
308
|
-
};
|
|
309
|
-
var dt = {};
|
|
310
|
-
dt = {
|
|
311
|
-
dismiss: "Lukk"
|
|
312
|
-
};
|
|
313
|
-
var ct = {};
|
|
314
|
-
ct = {
|
|
315
|
-
dismiss: "Negeren"
|
|
316
|
-
};
|
|
317
|
-
var ft = {};
|
|
318
|
-
ft = {
|
|
319
|
-
dismiss: "Zignoruj"
|
|
320
|
-
};
|
|
321
|
-
var $t = {};
|
|
322
|
-
$t = {
|
|
323
|
-
dismiss: "Descartar"
|
|
324
|
-
};
|
|
325
|
-
var pt = {};
|
|
326
|
-
pt = {
|
|
327
|
-
dismiss: "Dispensar"
|
|
328
|
-
};
|
|
329
|
-
var bt = {};
|
|
330
|
-
bt = {
|
|
331
|
-
dismiss: "Revocare"
|
|
332
|
-
};
|
|
333
|
-
var mt = {};
|
|
334
|
-
mt = {
|
|
335
|
-
dismiss: "Пропустить"
|
|
336
|
-
};
|
|
337
|
-
var gt = {};
|
|
338
|
-
gt = {
|
|
339
|
-
dismiss: "Zrušiť"
|
|
340
|
-
};
|
|
341
|
-
var vt = {};
|
|
342
|
-
vt = {
|
|
343
|
-
dismiss: "Opusti"
|
|
344
|
-
};
|
|
345
|
-
var xt = {};
|
|
346
|
-
xt = {
|
|
347
|
-
dismiss: "Odbaci"
|
|
348
|
-
};
|
|
349
|
-
var yt = {};
|
|
350
|
-
yt = {
|
|
351
|
-
dismiss: "Avvisa"
|
|
352
|
-
};
|
|
353
|
-
var ht = {};
|
|
354
|
-
ht = {
|
|
355
|
-
dismiss: "Kapat"
|
|
356
|
-
};
|
|
357
|
-
var Pt = {};
|
|
358
|
-
Pt = {
|
|
359
|
-
dismiss: "Скасувати"
|
|
360
|
-
};
|
|
361
|
-
var Et = {};
|
|
362
|
-
Et = {
|
|
363
|
-
dismiss: "取消"
|
|
364
|
-
};
|
|
365
|
-
var Dt = {};
|
|
366
|
-
Dt = {
|
|
367
|
-
dismiss: "關閉"
|
|
368
|
-
};
|
|
369
|
-
var Ct = {};
|
|
370
|
-
Ct = {
|
|
371
|
-
"ar-AE": We,
|
|
372
|
-
"bg-BG": je,
|
|
373
|
-
"cs-CZ": Ge,
|
|
374
|
-
"da-DK": qe,
|
|
375
|
-
"de-DE": Ze,
|
|
376
|
-
"el-GR": Je,
|
|
377
|
-
"en-US": Ye,
|
|
378
|
-
"es-ES": Xe,
|
|
379
|
-
"et-EE": Qe,
|
|
380
|
-
"fi-FI": et,
|
|
381
|
-
"fr-FR": tt,
|
|
382
|
-
"he-IL": rt,
|
|
383
|
-
"hr-HR": ot,
|
|
384
|
-
"hu-HU": at,
|
|
385
|
-
"it-IT": nt,
|
|
386
|
-
"ja-JP": st,
|
|
387
|
-
"ko-KR": lt,
|
|
388
|
-
"lt-LT": it,
|
|
389
|
-
"lv-LV": ut,
|
|
390
|
-
"nb-NO": dt,
|
|
391
|
-
"nl-NL": ct,
|
|
392
|
-
"pl-PL": ft,
|
|
393
|
-
"pt-BR": $t,
|
|
394
|
-
"pt-PT": pt,
|
|
395
|
-
"ro-RO": bt,
|
|
396
|
-
"ru-RU": mt,
|
|
397
|
-
"sk-SK": gt,
|
|
398
|
-
"sl-SI": vt,
|
|
399
|
-
"sr-SP": xt,
|
|
400
|
-
"sv-SE": yt,
|
|
401
|
-
"tr-TR": ht,
|
|
402
|
-
"uk-UA": Pt,
|
|
403
|
-
"zh-CN": Et,
|
|
404
|
-
"zh-TW": Dt
|
|
405
|
-
};
|
|
406
|
-
function go(t) {
|
|
407
|
-
return t && t.__esModule ? t.default : t;
|
|
408
|
-
}
|
|
409
|
-
function ke(t) {
|
|
410
|
-
let { onDismiss: e, ...r } = t, a = _e(go(Ct), "@react-aria/overlays"), o = lo(r, a.format("dismiss")), s = () => {
|
|
411
|
-
e && e();
|
|
412
|
-
};
|
|
413
|
-
return /* @__PURE__ */ f.createElement(io, null, /* @__PURE__ */ f.createElement("button", {
|
|
414
|
-
...o,
|
|
415
|
-
tabIndex: -1,
|
|
416
|
-
onClick: s,
|
|
417
|
-
style: {
|
|
418
|
-
width: 1,
|
|
419
|
-
height: 1
|
|
420
|
-
}
|
|
421
|
-
}));
|
|
422
|
-
}
|
|
423
|
-
let U = /* @__PURE__ */ new WeakMap(), h = [];
|
|
424
|
-
function vo(t, e = document.body) {
|
|
425
|
-
let r = new Set(t), a = /* @__PURE__ */ new Set(), o = (n) => {
|
|
426
|
-
for (let p of n.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) r.add(p);
|
|
427
|
-
let d = (p) => {
|
|
428
|
-
if (r.has(p) || p.parentElement && a.has(p.parentElement) && p.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
|
|
429
|
-
for (let c of r)
|
|
430
|
-
if (p.contains(c)) return NodeFilter.FILTER_SKIP;
|
|
431
|
-
return NodeFilter.FILTER_ACCEPT;
|
|
432
|
-
}, l = document.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, {
|
|
433
|
-
acceptNode: d
|
|
434
|
-
}), $ = d(n);
|
|
435
|
-
if ($ === NodeFilter.FILTER_ACCEPT && s(n), $ !== NodeFilter.FILTER_REJECT) {
|
|
436
|
-
let p = l.nextNode();
|
|
437
|
-
for (; p != null; )
|
|
438
|
-
s(p), p = l.nextNode();
|
|
439
|
-
}
|
|
440
|
-
}, s = (n) => {
|
|
441
|
-
var d;
|
|
442
|
-
let l = (d = U.get(n)) !== null && d !== void 0 ? d : 0;
|
|
443
|
-
n.getAttribute("aria-hidden") === "true" && l === 0 || (l === 0 && n.setAttribute("aria-hidden", "true"), a.add(n), U.set(n, l + 1));
|
|
444
|
-
};
|
|
445
|
-
h.length && h[h.length - 1].disconnect(), o(e);
|
|
446
|
-
let u = new MutationObserver((n) => {
|
|
447
|
-
for (let d of n)
|
|
448
|
-
if (!(d.type !== "childList" || d.addedNodes.length === 0) && ![
|
|
449
|
-
...r,
|
|
450
|
-
...a
|
|
451
|
-
].some((l) => l.contains(d.target))) {
|
|
452
|
-
for (let l of d.removedNodes) l instanceof Element && (r.delete(l), a.delete(l));
|
|
453
|
-
for (let l of d.addedNodes)
|
|
454
|
-
(l instanceof HTMLElement || l instanceof SVGElement) && (l.dataset.liveAnnouncer === "true" || l.dataset.reactAriaTopLayer === "true") ? r.add(l) : l instanceof Element && o(l);
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
u.observe(e, {
|
|
458
|
-
childList: !0,
|
|
459
|
-
subtree: !0
|
|
460
|
-
});
|
|
461
|
-
let i = {
|
|
462
|
-
visibleNodes: r,
|
|
463
|
-
hiddenNodes: a,
|
|
464
|
-
observe() {
|
|
465
|
-
u.observe(e, {
|
|
466
|
-
childList: !0,
|
|
467
|
-
subtree: !0
|
|
468
|
-
});
|
|
469
|
-
},
|
|
470
|
-
disconnect() {
|
|
471
|
-
u.disconnect();
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
return h.push(i), () => {
|
|
475
|
-
u.disconnect();
|
|
476
|
-
for (let n of a) {
|
|
477
|
-
let d = U.get(n);
|
|
478
|
-
d != null && (d === 1 ? (n.removeAttribute("aria-hidden"), U.delete(n)) : U.set(n, d - 1));
|
|
479
|
-
}
|
|
480
|
-
i === h[h.length - 1] ? (h.pop(), h.length && h[h.length - 1].observe()) : h.splice(h.indexOf(i), 1);
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
function xo(t) {
|
|
484
|
-
let e = h[h.length - 1];
|
|
485
|
-
if (e && !e.visibleNodes.has(t))
|
|
486
|
-
return e.visibleNodes.add(t), () => {
|
|
487
|
-
e.visibleNodes.delete(t);
|
|
488
|
-
};
|
|
489
|
-
}
|
|
490
|
-
function yo(t, e) {
|
|
491
|
-
let { triggerRef: r, popoverRef: a, groupRef: o, isNonModal: s, isKeyboardDismissDisabled: u, shouldCloseOnInteractOutside: i, ...n } = t, d = n.trigger === "SubmenuTrigger", { overlayProps: l, underlayProps: $ } = co({
|
|
492
|
-
isOpen: e.isOpen,
|
|
493
|
-
onClose: e.close,
|
|
494
|
-
shouldCloseOnBlur: !0,
|
|
495
|
-
isDismissable: !s || d,
|
|
496
|
-
isKeyboardDismissDisabled: u,
|
|
497
|
-
shouldCloseOnInteractOutside: i
|
|
498
|
-
}, o ?? a), { overlayProps: p, arrowProps: c, placement: b } = wr({
|
|
499
|
-
...n,
|
|
500
|
-
targetRef: r,
|
|
501
|
-
overlayRef: a,
|
|
502
|
-
isOpen: e.isOpen,
|
|
503
|
-
onClose: s && !d ? e.close : null
|
|
504
|
-
});
|
|
505
|
-
return $o({
|
|
506
|
-
isDisabled: s || !e.isOpen
|
|
507
|
-
}), W(() => {
|
|
508
|
-
if (e.isOpen && a.current) {
|
|
509
|
-
var x, g;
|
|
510
|
-
return s ? xo((x = o == null ? void 0 : o.current) !== null && x !== void 0 ? x : a.current) : vo([
|
|
511
|
-
(g = o == null ? void 0 : o.current) !== null && g !== void 0 ? g : a.current
|
|
512
|
-
]);
|
|
513
|
-
}
|
|
514
|
-
}, [
|
|
515
|
-
s,
|
|
516
|
-
e.isOpen,
|
|
517
|
-
a,
|
|
518
|
-
o
|
|
519
|
-
]), {
|
|
520
|
-
popoverProps: G(l, p),
|
|
521
|
-
arrowProps: c,
|
|
522
|
-
underlayProps: $,
|
|
523
|
-
placement: b
|
|
524
|
-
};
|
|
525
|
-
}
|
|
526
|
-
const At = /* @__PURE__ */ f.createContext(null);
|
|
527
|
-
function Be(t) {
|
|
528
|
-
let e = oo(), { portalContainer: r = e ? null : document.body, isExiting: a } = t, [o, s] = B(!1), u = V(() => ({
|
|
529
|
-
contain: o,
|
|
530
|
-
setContain: s
|
|
531
|
-
}), [
|
|
532
|
-
o,
|
|
533
|
-
s
|
|
534
|
-
]), { getContainer: i } = Sr();
|
|
535
|
-
if (!t.portalContainer && i && (r = i()), !r) return null;
|
|
536
|
-
let n = t.children;
|
|
537
|
-
return t.disableFocusManagement || (n = /* @__PURE__ */ f.createElement(He, {
|
|
538
|
-
restoreFocus: !0,
|
|
539
|
-
contain: (t.shouldContainFocus || o) && !a
|
|
540
|
-
}, n)), n = /* @__PURE__ */ f.createElement(At.Provider, {
|
|
541
|
-
value: u
|
|
542
|
-
}, /* @__PURE__ */ f.createElement(jr, null, n)), /* @__PURE__ */ ro.createPortal(n, r);
|
|
543
|
-
}
|
|
544
|
-
function ho() {
|
|
545
|
-
let t = E(At), e = t == null ? void 0 : t.setContain;
|
|
546
|
-
W(() => {
|
|
547
|
-
e == null || e(!0);
|
|
548
|
-
}, [
|
|
549
|
-
e
|
|
550
|
-
]);
|
|
551
|
-
}
|
|
552
|
-
var Mt = {};
|
|
553
|
-
Mt = {
|
|
554
|
-
longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"
|
|
555
|
-
};
|
|
556
|
-
var wt = {};
|
|
557
|
-
wt = {
|
|
558
|
-
longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"
|
|
559
|
-
};
|
|
560
|
-
var St = {};
|
|
561
|
-
St = {
|
|
562
|
-
longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"
|
|
563
|
-
};
|
|
564
|
-
var kt = {};
|
|
565
|
-
kt = {
|
|
566
|
-
longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen"
|
|
567
|
-
};
|
|
568
|
-
var Bt = {};
|
|
569
|
-
Bt = {
|
|
570
|
-
longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"
|
|
571
|
-
};
|
|
572
|
-
var Ft = {};
|
|
573
|
-
Ft = {
|
|
574
|
-
longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"
|
|
575
|
-
};
|
|
576
|
-
var Kt = {};
|
|
577
|
-
Kt = {
|
|
578
|
-
longPressMessage: "Long press or press Alt + ArrowDown to open menu"
|
|
579
|
-
};
|
|
580
|
-
var Tt = {};
|
|
581
|
-
Tt = {
|
|
582
|
-
longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"
|
|
583
|
-
};
|
|
584
|
-
var Ot = {};
|
|
585
|
-
Ot = {
|
|
586
|
-
longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"
|
|
587
|
-
};
|
|
588
|
-
var Rt = {};
|
|
589
|
-
Rt = {
|
|
590
|
-
longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"
|
|
591
|
-
};
|
|
592
|
-
var It = {};
|
|
593
|
-
It = {
|
|
594
|
-
longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."
|
|
595
|
-
};
|
|
596
|
-
var Nt = {};
|
|
597
|
-
Nt = {
|
|
598
|
-
longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"
|
|
599
|
-
};
|
|
600
|
-
var Lt = {};
|
|
601
|
-
Lt = {
|
|
602
|
-
longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"
|
|
603
|
-
};
|
|
604
|
-
var zt = {};
|
|
605
|
-
zt = {
|
|
606
|
-
longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"
|
|
607
|
-
};
|
|
608
|
-
var _t = {};
|
|
609
|
-
_t = {
|
|
610
|
-
longPressMessage: "Premere a lungo o premere Alt + Freccia giù per aprire il menu"
|
|
611
|
-
};
|
|
612
|
-
var Ht = {};
|
|
613
|
-
Ht = {
|
|
614
|
-
longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く"
|
|
615
|
-
};
|
|
616
|
-
var Ut = {};
|
|
617
|
-
Ut = {
|
|
618
|
-
longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"
|
|
619
|
-
};
|
|
620
|
-
var Vt = {};
|
|
621
|
-
Vt = {
|
|
622
|
-
longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."
|
|
623
|
-
};
|
|
624
|
-
var Wt = {};
|
|
625
|
-
Wt = {
|
|
626
|
-
longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"
|
|
627
|
-
};
|
|
628
|
-
var jt = {};
|
|
629
|
-
jt = {
|
|
630
|
-
longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen"
|
|
631
|
-
};
|
|
632
|
-
var Gt = {};
|
|
633
|
-
Gt = {
|
|
634
|
-
longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"
|
|
635
|
-
};
|
|
636
|
-
var qt = {};
|
|
637
|
-
qt = {
|
|
638
|
-
longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"
|
|
639
|
-
};
|
|
640
|
-
var Zt = {};
|
|
641
|
-
Zt = {
|
|
642
|
-
longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"
|
|
643
|
-
};
|
|
644
|
-
var Jt = {};
|
|
645
|
-
Jt = {
|
|
646
|
-
longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"
|
|
647
|
-
};
|
|
648
|
-
var Yt = {};
|
|
649
|
-
Yt = {
|
|
650
|
-
longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"
|
|
651
|
-
};
|
|
652
|
-
var Xt = {};
|
|
653
|
-
Xt = {
|
|
654
|
-
longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"
|
|
655
|
-
};
|
|
656
|
-
var Qt = {};
|
|
657
|
-
Qt = {
|
|
658
|
-
longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"
|
|
659
|
-
};
|
|
660
|
-
var er = {};
|
|
661
|
-
er = {
|
|
662
|
-
longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"
|
|
663
|
-
};
|
|
664
|
-
var tr = {};
|
|
665
|
-
tr = {
|
|
666
|
-
longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"
|
|
667
|
-
};
|
|
668
|
-
var rr = {};
|
|
669
|
-
rr = {
|
|
670
|
-
longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"
|
|
671
|
-
};
|
|
672
|
-
var or = {};
|
|
673
|
-
or = {
|
|
674
|
-
longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"
|
|
675
|
-
};
|
|
676
|
-
var ar = {};
|
|
677
|
-
ar = {
|
|
678
|
-
longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"
|
|
679
|
-
};
|
|
680
|
-
var nr = {};
|
|
681
|
-
nr = {
|
|
682
|
-
longPressMessage: "长按或按 Alt + 向下方向键以打开菜单"
|
|
683
|
-
};
|
|
684
|
-
var sr = {};
|
|
685
|
-
sr = {
|
|
686
|
-
longPressMessage: "長按或按 Alt+向下鍵以開啟功能表"
|
|
687
|
-
};
|
|
688
|
-
var lr = {};
|
|
689
|
-
lr = {
|
|
690
|
-
"ar-AE": Mt,
|
|
691
|
-
"bg-BG": wt,
|
|
692
|
-
"cs-CZ": St,
|
|
693
|
-
"da-DK": kt,
|
|
694
|
-
"de-DE": Bt,
|
|
695
|
-
"el-GR": Ft,
|
|
696
|
-
"en-US": Kt,
|
|
697
|
-
"es-ES": Tt,
|
|
698
|
-
"et-EE": Ot,
|
|
699
|
-
"fi-FI": Rt,
|
|
700
|
-
"fr-FR": It,
|
|
701
|
-
"he-IL": Nt,
|
|
702
|
-
"hr-HR": Lt,
|
|
703
|
-
"hu-HU": zt,
|
|
704
|
-
"it-IT": _t,
|
|
705
|
-
"ja-JP": Ht,
|
|
706
|
-
"ko-KR": Ut,
|
|
707
|
-
"lt-LT": Vt,
|
|
708
|
-
"lv-LV": Wt,
|
|
709
|
-
"nb-NO": jt,
|
|
710
|
-
"nl-NL": Gt,
|
|
711
|
-
"pl-PL": qt,
|
|
712
|
-
"pt-BR": Zt,
|
|
713
|
-
"pt-PT": Jt,
|
|
714
|
-
"ro-RO": Yt,
|
|
715
|
-
"ru-RU": Xt,
|
|
716
|
-
"sk-SK": Qt,
|
|
717
|
-
"sl-SI": er,
|
|
718
|
-
"sr-SP": tr,
|
|
719
|
-
"sv-SE": rr,
|
|
720
|
-
"tr-TR": or,
|
|
721
|
-
"uk-UA": ar,
|
|
722
|
-
"zh-CN": nr,
|
|
723
|
-
"zh-TW": sr
|
|
724
|
-
};
|
|
725
|
-
function Po(t) {
|
|
726
|
-
return t && t.__esModule ? t.default : t;
|
|
727
|
-
}
|
|
728
|
-
function Eo(t, e, r) {
|
|
729
|
-
let { type: a = "menu", isDisabled: o, trigger: s = "press" } = t, u = oe(), { triggerProps: i, overlayProps: n } = Ve({
|
|
730
|
-
type: a
|
|
731
|
-
}, e, r), d = (c) => {
|
|
732
|
-
if (!o && !(s === "longPress" && !c.altKey) && r && r.current)
|
|
733
|
-
switch (c.key) {
|
|
734
|
-
case "Enter":
|
|
735
|
-
case " ":
|
|
736
|
-
if (s === "longPress") return;
|
|
737
|
-
case "ArrowDown":
|
|
738
|
-
"continuePropagation" in c || c.stopPropagation(), c.preventDefault(), e.toggle("first");
|
|
739
|
-
break;
|
|
740
|
-
case "ArrowUp":
|
|
741
|
-
"continuePropagation" in c || c.stopPropagation(), c.preventDefault(), e.toggle("last");
|
|
742
|
-
break;
|
|
743
|
-
default:
|
|
744
|
-
"continuePropagation" in c && c.continuePropagation();
|
|
745
|
-
}
|
|
746
|
-
}, l = _e(Po(lr), "@react-aria/menu"), { longPressProps: $ } = Ur({
|
|
747
|
-
isDisabled: o || s !== "longPress",
|
|
748
|
-
accessibilityDescription: l.format("longPressMessage"),
|
|
749
|
-
onLongPressStart() {
|
|
750
|
-
e.close();
|
|
751
|
-
},
|
|
752
|
-
onLongPress() {
|
|
753
|
-
e.open("first");
|
|
754
|
-
}
|
|
755
|
-
}), p = {
|
|
756
|
-
preventFocusOnPress: !0,
|
|
757
|
-
onPressStart(c) {
|
|
758
|
-
c.pointerType !== "touch" && c.pointerType !== "keyboard" && !o && (we(c.target), e.open(c.pointerType === "virtual" ? "first" : null));
|
|
759
|
-
},
|
|
760
|
-
onPress(c) {
|
|
761
|
-
c.pointerType === "touch" && !o && (we(c.target), e.toggle());
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
|
-
return delete i.onPress, {
|
|
765
|
-
// @ts-ignore - TODO we pass out both DOMAttributes AND AriaButtonProps, but useButton will discard the longPress event handlers, it's only through PressResponder magic that this works for RSP and RAC. it does not work in aria examples
|
|
766
|
-
menuTriggerProps: {
|
|
767
|
-
...i,
|
|
768
|
-
...s === "press" ? p : $,
|
|
769
|
-
id: u,
|
|
770
|
-
onKeyDown: d
|
|
771
|
-
},
|
|
772
|
-
menuProps: {
|
|
773
|
-
...n,
|
|
774
|
-
"aria-labelledby": u,
|
|
775
|
-
autoFocus: e.focusStrategy || !0,
|
|
776
|
-
onClose: e.close
|
|
777
|
-
}
|
|
778
|
-
};
|
|
779
|
-
}
|
|
780
|
-
const ir = /* @__PURE__ */ new WeakMap();
|
|
781
|
-
function Do(t, e, r) {
|
|
782
|
-
let { shouldFocusWrap: a = !0, onKeyDown: o, onKeyUp: s, ...u } = t;
|
|
783
|
-
!t["aria-label"] && !t["aria-labelledby"] && process.env.NODE_ENV !== "production" && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
784
|
-
let i = F(t, {
|
|
785
|
-
labelable: !0
|
|
786
|
-
}), { listProps: n } = Nr({
|
|
787
|
-
...u,
|
|
788
|
-
ref: r,
|
|
789
|
-
selectionManager: e.selectionManager,
|
|
790
|
-
collection: e.collection,
|
|
791
|
-
disabledKeys: e.disabledKeys,
|
|
792
|
-
shouldFocusWrap: a,
|
|
793
|
-
linkBehavior: "override"
|
|
794
|
-
});
|
|
795
|
-
return ir.set(e, {
|
|
796
|
-
onClose: t.onClose,
|
|
797
|
-
onAction: t.onAction,
|
|
798
|
-
shouldUseVirtualFocus: t.shouldUseVirtualFocus
|
|
799
|
-
}), {
|
|
800
|
-
menuProps: G(i, {
|
|
801
|
-
onKeyDown: o,
|
|
802
|
-
onKeyUp: s
|
|
803
|
-
}, {
|
|
804
|
-
role: "menu",
|
|
805
|
-
...n,
|
|
806
|
-
onKeyDown: (d) => {
|
|
807
|
-
var l;
|
|
808
|
-
(d.key !== "Escape" || t.shouldUseVirtualFocus) && ((l = n.onKeyDown) === null || l === void 0 || l.call(n, d));
|
|
809
|
-
}
|
|
810
|
-
})
|
|
811
|
-
};
|
|
812
|
-
}
|
|
813
|
-
function Co(t, e, r) {
|
|
814
|
-
let { id: a, key: o, closeOnSelect: s, isVirtualized: u, "aria-haspopup": i, onPressStart: n, onPressUp: d, onPress: l, onPressChange: $, onPressEnd: p, onHoverStart: c, onHoverChange: b, onHoverEnd: x, onKeyDown: g, onKeyUp: K, onFocus: T, onFocusChange: q, onBlur: M, selectionManager: y = e.selectionManager } = t, P = !!i, _ = P && t["aria-expanded"] === "true";
|
|
815
|
-
var O;
|
|
816
|
-
let C = (O = t.isDisabled) !== null && O !== void 0 ? O : y.isDisabled(o);
|
|
817
|
-
var w;
|
|
818
|
-
let Z = (w = t.isSelected) !== null && w !== void 0 ? w : y.isSelected(o), R = ir.get(e), v = e.collection.getItem(o), I = t.onClose || R.onClose, cr = Jr(), ne = (m) => {
|
|
819
|
-
var le;
|
|
820
|
-
if (!P) {
|
|
821
|
-
if (!(v == null || (le = v.props) === null || le === void 0) && le.onAction ? v.props.onAction() : t.onAction && t.onAction(o), R.onAction) {
|
|
822
|
-
let hr = R.onAction;
|
|
823
|
-
hr(o);
|
|
824
|
-
}
|
|
825
|
-
m.target instanceof HTMLAnchorElement && v && cr.open(m.target, m, v.props.href, v.props.routerOptions);
|
|
826
|
-
}
|
|
827
|
-
}, se = "menuitem";
|
|
828
|
-
P || (y.selectionMode === "single" ? se = "menuitemradio" : y.selectionMode === "multiple" && (se = "menuitemcheckbox"));
|
|
829
|
-
let xe = Q(), ye = Q(), he = Q(), J = {
|
|
830
|
-
id: a,
|
|
831
|
-
"aria-disabled": C || void 0,
|
|
832
|
-
role: se,
|
|
833
|
-
"aria-label": t["aria-label"],
|
|
834
|
-
"aria-labelledby": xe,
|
|
835
|
-
"aria-describedby": [
|
|
836
|
-
ye,
|
|
837
|
-
he
|
|
838
|
-
].filter(Boolean).join(" ") || void 0,
|
|
839
|
-
"aria-controls": t["aria-controls"],
|
|
840
|
-
"aria-haspopup": i,
|
|
841
|
-
"aria-expanded": t["aria-expanded"]
|
|
842
|
-
};
|
|
843
|
-
y.selectionMode !== "none" && !P && (J["aria-checked"] = Z), u && (J["aria-posinset"] = v == null ? void 0 : v.index, J["aria-setsize"] = Lr(e.collection));
|
|
844
|
-
let fr = (m) => {
|
|
845
|
-
m.pointerType === "keyboard" && ne(m), n == null || n(m);
|
|
846
|
-
}, Pe = () => {
|
|
847
|
-
!P && I && (s ?? (y.selectionMode !== "multiple" || y.isLink(o))) && I();
|
|
848
|
-
}, $r = (m) => {
|
|
849
|
-
m.pointerType === "mouse" && (ne(m), Pe()), d == null || d(m);
|
|
850
|
-
}, pr = (m) => {
|
|
851
|
-
m.pointerType !== "keyboard" && m.pointerType !== "mouse" && (ne(m), Pe()), l == null || l(m);
|
|
852
|
-
}, { itemProps: N, isFocused: Ee } = Vr({
|
|
853
|
-
id: a,
|
|
854
|
-
selectionManager: y,
|
|
855
|
-
key: o,
|
|
856
|
-
ref: r,
|
|
857
|
-
shouldSelectOnPressUp: !0,
|
|
858
|
-
allowsDifferentPressOrigin: !0,
|
|
859
|
-
// Disable all handling of links in useSelectable item
|
|
860
|
-
// because we handle it ourselves. The behavior of menus
|
|
861
|
-
// is slightly different from other collections because
|
|
862
|
-
// actions are performed on key down rather than key up.
|
|
863
|
-
linkBehavior: "none",
|
|
864
|
-
shouldUseVirtualFocus: R.shouldUseVirtualFocus
|
|
865
|
-
}), { pressProps: br, isPressed: mr } = Yr({
|
|
866
|
-
onPressStart: fr,
|
|
867
|
-
onPress: pr,
|
|
868
|
-
onPressUp: $r,
|
|
869
|
-
onPressChange: $,
|
|
870
|
-
onPressEnd: p,
|
|
871
|
-
isDisabled: C
|
|
872
|
-
}), { hoverProps: gr } = ze({
|
|
873
|
-
isDisabled: C,
|
|
874
|
-
onHoverStart(m) {
|
|
875
|
-
!Me() && !(_ && i) && (y.setFocused(!0), y.setFocusedKey(o)), c == null || c(m);
|
|
876
|
-
},
|
|
877
|
-
onHoverChange: b,
|
|
878
|
-
onHoverEnd: x
|
|
879
|
-
}), { keyboardProps: vr } = Qr({
|
|
880
|
-
onKeyDown: (m) => {
|
|
881
|
-
if (m.repeat) {
|
|
882
|
-
m.continuePropagation();
|
|
883
|
-
return;
|
|
884
|
-
}
|
|
885
|
-
switch (m.key) {
|
|
886
|
-
case " ":
|
|
887
|
-
!C && y.selectionMode === "none" && !P && s !== !1 && I && I();
|
|
888
|
-
break;
|
|
889
|
-
case "Enter":
|
|
890
|
-
!C && s !== !1 && !P && I && I();
|
|
891
|
-
break;
|
|
892
|
-
default:
|
|
893
|
-
P || m.continuePropagation(), g == null || g(m);
|
|
894
|
-
break;
|
|
895
|
-
}
|
|
896
|
-
},
|
|
897
|
-
onKeyUp: K
|
|
898
|
-
}), { focusProps: xr } = qr({
|
|
899
|
-
onBlur: M,
|
|
900
|
-
onFocus: T,
|
|
901
|
-
onFocusChange: q
|
|
902
|
-
}), De = F(v == null ? void 0 : v.props);
|
|
903
|
-
delete De.id;
|
|
904
|
-
let yr = Xr(v == null ? void 0 : v.props);
|
|
905
|
-
return {
|
|
906
|
-
menuItemProps: {
|
|
907
|
-
...J,
|
|
908
|
-
...G(
|
|
909
|
-
De,
|
|
910
|
-
yr,
|
|
911
|
-
P ? {
|
|
912
|
-
onFocus: N.onFocus,
|
|
913
|
-
"data-collection": N["data-collection"],
|
|
914
|
-
"data-key": N["data-key"]
|
|
915
|
-
} : N,
|
|
916
|
-
br,
|
|
917
|
-
gr,
|
|
918
|
-
vr,
|
|
919
|
-
xr,
|
|
920
|
-
// Prevent DOM focus from moving on mouse down when using virtual focus or this is a submenu/subdialog trigger.
|
|
921
|
-
R.shouldUseVirtualFocus || P ? {
|
|
922
|
-
onMouseDown: (m) => m.preventDefault()
|
|
923
|
-
} : void 0
|
|
924
|
-
),
|
|
925
|
-
// If a submenu is expanded, set the tabIndex to -1 so that shift tabbing goes out of the menu instead of the parent menu item.
|
|
926
|
-
tabIndex: N.tabIndex != null && _ && !R.shouldUseVirtualFocus ? -1 : N.tabIndex
|
|
927
|
-
},
|
|
928
|
-
labelProps: {
|
|
929
|
-
id: xe
|
|
930
|
-
},
|
|
931
|
-
descriptionProps: {
|
|
932
|
-
id: ye
|
|
933
|
-
},
|
|
934
|
-
keyboardShortcutProps: {
|
|
935
|
-
id: he
|
|
936
|
-
},
|
|
937
|
-
isFocused: Ee,
|
|
938
|
-
isFocusVisible: Ee && y.isFocused && Me() && !_,
|
|
939
|
-
isSelected: Z,
|
|
940
|
-
isPressed: mr,
|
|
941
|
-
isDisabled: C
|
|
942
|
-
};
|
|
943
|
-
}
|
|
944
|
-
function Ao(t) {
|
|
945
|
-
let { heading: e, "aria-label": r } = t, a = oe();
|
|
946
|
-
return {
|
|
947
|
-
itemProps: {
|
|
948
|
-
role: "presentation"
|
|
949
|
-
},
|
|
950
|
-
headingProps: e ? {
|
|
951
|
-
// Techincally, menus cannot contain headings according to ARIA.
|
|
952
|
-
// We hide the heading from assistive technology, using role="presentation",
|
|
953
|
-
// and only use it as a label for the nested group.
|
|
954
|
-
id: a,
|
|
955
|
-
role: "presentation"
|
|
956
|
-
} : {},
|
|
957
|
-
groupProps: {
|
|
958
|
-
role: "group",
|
|
959
|
-
"aria-label": r,
|
|
960
|
-
"aria-labelledby": e ? a : void 0
|
|
961
|
-
}
|
|
962
|
-
};
|
|
963
|
-
}
|
|
964
|
-
function Mo(t, e) {
|
|
965
|
-
let { role: r = "dialog" } = t, a = Q();
|
|
966
|
-
a = t["aria-label"] ? void 0 : a;
|
|
967
|
-
let o = k(!1);
|
|
968
|
-
return z(() => {
|
|
969
|
-
if (e.current && !e.current.contains(document.activeElement)) {
|
|
970
|
-
fe(e.current);
|
|
971
|
-
let s = setTimeout(() => {
|
|
972
|
-
document.activeElement === e.current && (o.current = !0, e.current && (e.current.blur(), fe(e.current)), o.current = !1);
|
|
973
|
-
}, 500);
|
|
974
|
-
return () => {
|
|
975
|
-
clearTimeout(s);
|
|
976
|
-
};
|
|
977
|
-
}
|
|
978
|
-
}, [
|
|
979
|
-
e
|
|
980
|
-
]), ho(), {
|
|
981
|
-
dialogProps: {
|
|
982
|
-
...F(t, {
|
|
983
|
-
labelable: !0
|
|
984
|
-
}),
|
|
985
|
-
role: r,
|
|
986
|
-
tabIndex: -1,
|
|
987
|
-
"aria-labelledby": t["aria-labelledby"] || a,
|
|
988
|
-
// Prevent blur events from reaching useOverlay, which may cause
|
|
989
|
-
// popovers to close. Since focus is contained within the dialog,
|
|
990
|
-
// we don't want this to occur due to the above useEffect.
|
|
991
|
-
onBlur: (s) => {
|
|
992
|
-
o.current && s.stopPropagation();
|
|
993
|
-
}
|
|
994
|
-
},
|
|
995
|
-
titleProps: {
|
|
996
|
-
id: a
|
|
997
|
-
}
|
|
998
|
-
};
|
|
999
|
-
}
|
|
1000
|
-
function me(t) {
|
|
1001
|
-
let e = Te(t), [r, a] = B(null), [o, s] = B([]), u = () => {
|
|
1002
|
-
s([]), e.close();
|
|
1003
|
-
};
|
|
1004
|
-
return {
|
|
1005
|
-
focusStrategy: r,
|
|
1006
|
-
...e,
|
|
1007
|
-
open(d = null) {
|
|
1008
|
-
a(d), e.open();
|
|
1009
|
-
},
|
|
1010
|
-
toggle(d = null) {
|
|
1011
|
-
a(d), e.toggle();
|
|
1012
|
-
},
|
|
1013
|
-
close() {
|
|
1014
|
-
u();
|
|
1015
|
-
},
|
|
1016
|
-
expandedKeysStack: o,
|
|
1017
|
-
openSubmenu: (d, l) => {
|
|
1018
|
-
s(($) => l > $.length ? $ : [
|
|
1019
|
-
...$.slice(0, l),
|
|
1020
|
-
d
|
|
1021
|
-
]);
|
|
1022
|
-
},
|
|
1023
|
-
closeSubmenu: (d, l) => {
|
|
1024
|
-
s(($) => $[l] === d ? $.slice(0, l) : $);
|
|
1025
|
-
}
|
|
1026
|
-
};
|
|
1027
|
-
}
|
|
1028
|
-
class wo {
|
|
1029
|
-
*[Symbol.iterator]() {
|
|
1030
|
-
yield* this.iterable;
|
|
1031
|
-
}
|
|
1032
|
-
get size() {
|
|
1033
|
-
return this.keyMap.size;
|
|
1034
|
-
}
|
|
1035
|
-
getKeys() {
|
|
1036
|
-
return this.keyMap.keys();
|
|
1037
|
-
}
|
|
1038
|
-
getKeyBefore(e) {
|
|
1039
|
-
let r = this.keyMap.get(e);
|
|
1040
|
-
var a;
|
|
1041
|
-
return r && (a = r.prevKey) !== null && a !== void 0 ? a : null;
|
|
1042
|
-
}
|
|
1043
|
-
getKeyAfter(e) {
|
|
1044
|
-
let r = this.keyMap.get(e);
|
|
1045
|
-
var a;
|
|
1046
|
-
return r && (a = r.nextKey) !== null && a !== void 0 ? a : null;
|
|
1047
|
-
}
|
|
1048
|
-
getFirstKey() {
|
|
1049
|
-
return this.firstKey;
|
|
1050
|
-
}
|
|
1051
|
-
getLastKey() {
|
|
1052
|
-
return this.lastKey;
|
|
1053
|
-
}
|
|
1054
|
-
getItem(e) {
|
|
1055
|
-
var r;
|
|
1056
|
-
return (r = this.keyMap.get(e)) !== null && r !== void 0 ? r : null;
|
|
1057
|
-
}
|
|
1058
|
-
at(e) {
|
|
1059
|
-
const r = [
|
|
1060
|
-
...this.getKeys()
|
|
1061
|
-
];
|
|
1062
|
-
return this.getItem(r[e]);
|
|
1063
|
-
}
|
|
1064
|
-
constructor(e, { expandedKeys: r } = {}) {
|
|
1065
|
-
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, r = r || /* @__PURE__ */ new Set();
|
|
1066
|
-
let a = (i) => {
|
|
1067
|
-
if (this.keyMap.set(i.key, i), i.childNodes && (i.type === "section" || r.has(i.key))) for (let n of i.childNodes) a(n);
|
|
1068
|
-
};
|
|
1069
|
-
for (let i of e) a(i);
|
|
1070
|
-
let o = null, s = 0;
|
|
1071
|
-
for (let [i, n] of this.keyMap)
|
|
1072
|
-
o ? (o.nextKey = i, n.prevKey = o.key) : (this.firstKey = i, n.prevKey = void 0), n.type === "item" && (n.index = s++), o = n, o.nextKey = void 0;
|
|
1073
|
-
var u;
|
|
1074
|
-
this.lastKey = (u = o == null ? void 0 : o.key) !== null && u !== void 0 ? u : null;
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
function So(t) {
|
|
1078
|
-
let { onExpandedChange: e } = t, [r, a] = eo(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), o = Ie(t), s = V(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1079
|
-
t.disabledKeys
|
|
1080
|
-
]), u = Wr(t, pe((n) => new wo(n, {
|
|
1081
|
-
expandedKeys: r
|
|
1082
|
-
}), [
|
|
1083
|
-
r
|
|
1084
|
-
]), null);
|
|
1085
|
-
return z(() => {
|
|
1086
|
-
o.focusedKey != null && !u.getItem(o.focusedKey) && o.setFocusedKey(null);
|
|
1087
|
-
}, [
|
|
1088
|
-
u,
|
|
1089
|
-
o.focusedKey
|
|
1090
|
-
]), {
|
|
1091
|
-
collection: u,
|
|
1092
|
-
expandedKeys: r,
|
|
1093
|
-
disabledKeys: s,
|
|
1094
|
-
toggleKey: (n) => {
|
|
1095
|
-
a(ko(r, n));
|
|
1096
|
-
},
|
|
1097
|
-
setExpandedKeys: a,
|
|
1098
|
-
selectionManager: new Ne(u, o)
|
|
1099
|
-
};
|
|
1100
|
-
}
|
|
1101
|
-
function ko(t, e) {
|
|
1102
|
-
let r = new Set(t);
|
|
1103
|
-
return r.has(e) ? r.delete(e) : r.add(e), r;
|
|
1104
|
-
}
|
|
1105
|
-
const ge = /* @__PURE__ */ D(null), Fe = /* @__PURE__ */ D(null), da = /* @__PURE__ */ be(function(e, r) {
|
|
1106
|
-
[e, r] = re(e, r, ge);
|
|
1107
|
-
let a = E(ae), o = Te(e), s = e.isOpen != null || e.defaultOpen != null || !a ? o : a, u = kr(r, s.isOpen) || e.isExiting || !1, i = ao(), { direction: n } = no();
|
|
1108
|
-
if (i) {
|
|
1109
|
-
let d = e.children;
|
|
1110
|
-
return typeof d == "function" && (d = d({
|
|
1111
|
-
trigger: e.trigger || null,
|
|
1112
|
-
placement: "bottom",
|
|
1113
|
-
isEntering: !1,
|
|
1114
|
-
isExiting: !1,
|
|
1115
|
-
defaultChildren: null
|
|
1116
|
-
})), /* @__PURE__ */ f.createElement(f.Fragment, null, d);
|
|
1117
|
-
}
|
|
1118
|
-
return s && !s.isOpen && !u ? null : /* @__PURE__ */ f.createElement(Bo, {
|
|
1119
|
-
...e,
|
|
1120
|
-
triggerRef: e.triggerRef,
|
|
1121
|
-
state: s,
|
|
1122
|
-
popoverRef: r,
|
|
1123
|
-
isExiting: u,
|
|
1124
|
-
dir: n
|
|
1125
|
-
});
|
|
1126
|
-
});
|
|
1127
|
-
function Bo({ state: t, isExiting: e, UNSTABLE_portalContainer: r, clearContexts: a, ...o }) {
|
|
1128
|
-
let s = k(null), [u, i] = B(0), n = k(null), d = E(Fe), l = d && o.trigger === "SubmenuTrigger";
|
|
1129
|
-
W(() => {
|
|
1130
|
-
s.current && t.isOpen && i(s.current.getBoundingClientRect().width);
|
|
1131
|
-
}, [
|
|
1132
|
-
t.isOpen,
|
|
1133
|
-
s
|
|
1134
|
-
]);
|
|
1135
|
-
var $;
|
|
1136
|
-
let { popoverProps: p, underlayProps: c, arrowProps: b, placement: x } = yo({
|
|
1137
|
-
...o,
|
|
1138
|
-
offset: ($ = o.offset) !== null && $ !== void 0 ? $ : 8,
|
|
1139
|
-
arrowSize: u,
|
|
1140
|
-
// If this is a submenu/subdialog, use the root popover's container
|
|
1141
|
-
// to detect outside interaction and add aria-hidden.
|
|
1142
|
-
groupRef: l ? d : n
|
|
1143
|
-
}, t), g = o.popoverRef, K = Br(g, !!x) || o.isEntering || !1, T = j({
|
|
1144
|
-
...o,
|
|
1145
|
-
defaultClassName: "react-aria-Popover",
|
|
1146
|
-
values: {
|
|
1147
|
-
trigger: o.trigger || null,
|
|
1148
|
-
placement: x,
|
|
1149
|
-
isEntering: K,
|
|
1150
|
-
isExiting: e
|
|
1151
|
-
}
|
|
1152
|
-
}), q = !o.isNonModal || o.trigger === "SubmenuTrigger", [M, y] = B(!1);
|
|
1153
|
-
W(() => {
|
|
1154
|
-
g.current && y(q && !g.current.querySelector("[role=dialog]"));
|
|
1155
|
-
}, [
|
|
1156
|
-
g,
|
|
1157
|
-
q
|
|
1158
|
-
]), z(() => {
|
|
1159
|
-
M && g.current && !g.current.contains(document.activeElement) && fe(g.current);
|
|
1160
|
-
}, [
|
|
1161
|
-
M,
|
|
1162
|
-
g
|
|
1163
|
-
]);
|
|
1164
|
-
let P = V(() => {
|
|
1165
|
-
let w = T.children;
|
|
1166
|
-
if (a) for (let Z of a) w = /* @__PURE__ */ f.createElement(Z.Provider, {
|
|
1167
|
-
value: null
|
|
1168
|
-
}, w);
|
|
1169
|
-
return w;
|
|
1170
|
-
}, [
|
|
1171
|
-
T.children,
|
|
1172
|
-
a
|
|
1173
|
-
]), _ = {
|
|
1174
|
-
...p.style,
|
|
1175
|
-
...T.style
|
|
1176
|
-
}, O = /* @__PURE__ */ f.createElement("div", {
|
|
1177
|
-
...G(F(o), p),
|
|
1178
|
-
...T,
|
|
1179
|
-
role: M ? "dialog" : void 0,
|
|
1180
|
-
tabIndex: M ? -1 : void 0,
|
|
1181
|
-
"aria-label": o["aria-label"],
|
|
1182
|
-
"aria-labelledby": o["aria-labelledby"],
|
|
1183
|
-
ref: g,
|
|
1184
|
-
slot: o.slot || void 0,
|
|
1185
|
-
style: _,
|
|
1186
|
-
dir: o.dir,
|
|
1187
|
-
"data-trigger": o.trigger,
|
|
1188
|
-
"data-placement": x,
|
|
1189
|
-
"data-entering": K || void 0,
|
|
1190
|
-
"data-exiting": e || void 0
|
|
1191
|
-
}, !o.isNonModal && /* @__PURE__ */ f.createElement(ke, {
|
|
1192
|
-
onDismiss: t.close
|
|
1193
|
-
}), /* @__PURE__ */ f.createElement(Fr.Provider, {
|
|
1194
|
-
value: {
|
|
1195
|
-
...b,
|
|
1196
|
-
placement: x,
|
|
1197
|
-
ref: s
|
|
1198
|
-
}
|
|
1199
|
-
}, P), /* @__PURE__ */ f.createElement(ke, {
|
|
1200
|
-
onDismiss: t.close
|
|
1201
|
-
}));
|
|
1202
|
-
if (!l) return /* @__PURE__ */ f.createElement(Be, {
|
|
1203
|
-
...o,
|
|
1204
|
-
shouldContainFocus: M,
|
|
1205
|
-
isExiting: e,
|
|
1206
|
-
portalContainer: r
|
|
1207
|
-
}, !o.isNonModal && t.isOpen && /* @__PURE__ */ f.createElement("div", {
|
|
1208
|
-
"data-testid": "underlay",
|
|
1209
|
-
...c,
|
|
1210
|
-
style: {
|
|
1211
|
-
position: "fixed",
|
|
1212
|
-
inset: 0
|
|
1213
|
-
}
|
|
1214
|
-
}), /* @__PURE__ */ f.createElement("div", {
|
|
1215
|
-
ref: n,
|
|
1216
|
-
style: {
|
|
1217
|
-
display: "contents"
|
|
1218
|
-
}
|
|
1219
|
-
}, /* @__PURE__ */ f.createElement(Fe.Provider, {
|
|
1220
|
-
value: n
|
|
1221
|
-
}, O)));
|
|
1222
|
-
var C;
|
|
1223
|
-
return /* @__PURE__ */ f.createElement(Be, {
|
|
1224
|
-
...o,
|
|
1225
|
-
shouldContainFocus: M,
|
|
1226
|
-
isExiting: e,
|
|
1227
|
-
portalContainer: (C = r ?? (d == null ? void 0 : d.current)) !== null && C !== void 0 ? C : void 0
|
|
1228
|
-
}, O);
|
|
1229
|
-
}
|
|
1230
|
-
const Fo = /* @__PURE__ */ D({}), ur = /* @__PURE__ */ D(null), ve = /* @__PURE__ */ D(null), ee = /* @__PURE__ */ D(null), te = /* @__PURE__ */ D(null);
|
|
1231
|
-
function ca(t) {
|
|
1232
|
-
let e = me(t), r = k(null), { menuTriggerProps: a, menuProps: o } = Eo({
|
|
1233
|
-
...t,
|
|
1234
|
-
type: "menu"
|
|
1235
|
-
}, e, r), [s, u] = B(null), i = pe(() => {
|
|
1236
|
-
r.current && u(r.current.offsetWidth + "px");
|
|
1237
|
-
}, [
|
|
1238
|
-
r
|
|
1239
|
-
]);
|
|
1240
|
-
Oe({
|
|
1241
|
-
ref: r,
|
|
1242
|
-
onResize: i
|
|
1243
|
-
});
|
|
1244
|
-
let n = k(null);
|
|
1245
|
-
return /* @__PURE__ */ f.createElement(L, {
|
|
1246
|
-
values: [
|
|
1247
|
-
[
|
|
1248
|
-
ur,
|
|
1249
|
-
{
|
|
1250
|
-
...o,
|
|
1251
|
-
ref: n
|
|
1252
|
-
}
|
|
1253
|
-
],
|
|
1254
|
-
[
|
|
1255
|
-
ae,
|
|
1256
|
-
e
|
|
1257
|
-
],
|
|
1258
|
-
[
|
|
1259
|
-
ee,
|
|
1260
|
-
e
|
|
1261
|
-
],
|
|
1262
|
-
[
|
|
1263
|
-
ge,
|
|
1264
|
-
{
|
|
1265
|
-
trigger: "MenuTrigger",
|
|
1266
|
-
triggerRef: r,
|
|
1267
|
-
scrollRef: n,
|
|
1268
|
-
placement: "bottom start",
|
|
1269
|
-
style: {
|
|
1270
|
-
"--trigger-width": s
|
|
1271
|
-
},
|
|
1272
|
-
"aria-labelledby": o["aria-labelledby"]
|
|
1273
|
-
}
|
|
1274
|
-
]
|
|
1275
|
-
]
|
|
1276
|
-
}, /* @__PURE__ */ f.createElement(Le, {
|
|
1277
|
-
...a,
|
|
1278
|
-
ref: r,
|
|
1279
|
-
isPressed: e.isOpen
|
|
1280
|
-
}, t.children));
|
|
1281
|
-
}
|
|
1282
|
-
const Ko = /* @__PURE__ */ D(null), fa = /* @__PURE__ */ be(function(e, r) {
|
|
1283
|
-
return [e, r] = re(e, r, ur), /* @__PURE__ */ f.createElement(Tr, {
|
|
1284
|
-
content: /* @__PURE__ */ f.createElement(Or, e)
|
|
1285
|
-
}, (a) => /* @__PURE__ */ f.createElement(To, {
|
|
1286
|
-
props: e,
|
|
1287
|
-
collection: a,
|
|
1288
|
-
menuRef: r
|
|
1289
|
-
}));
|
|
1290
|
-
});
|
|
1291
|
-
function To({ props: t, collection: e, menuRef: r }) {
|
|
1292
|
-
let { filter: a, collectionProps: o, collectionRef: s } = E(Ce) || {};
|
|
1293
|
-
r = Ke(V(() => Dr(r, s !== void 0 ? s : null), [
|
|
1294
|
-
s,
|
|
1295
|
-
r
|
|
1296
|
-
]));
|
|
1297
|
-
let u = V(() => a ? e.UNSTABLE_filter(a) : e, [
|
|
1298
|
-
e,
|
|
1299
|
-
a
|
|
1300
|
-
]), i = So({
|
|
1301
|
-
...t,
|
|
1302
|
-
collection: u,
|
|
1303
|
-
children: void 0
|
|
1304
|
-
}), n = E(ee), { isVirtualized: d, CollectionRoot: l } = E(Re), { menuProps: $ } = Do({
|
|
1305
|
-
...t,
|
|
1306
|
-
...o,
|
|
1307
|
-
isVirtualized: d,
|
|
1308
|
-
onClose: t.onClose || (n == null ? void 0 : n.close)
|
|
1309
|
-
}, i, r), p = j({
|
|
1310
|
-
defaultClassName: "react-aria-Menu",
|
|
1311
|
-
className: t.className,
|
|
1312
|
-
style: t.style,
|
|
1313
|
-
values: {
|
|
1314
|
-
isEmpty: i.collection.size === 0
|
|
1315
|
-
}
|
|
1316
|
-
}), c = null;
|
|
1317
|
-
return i.collection.size === 0 && t.renderEmptyState && (c = /* @__PURE__ */ f.createElement("div", {
|
|
1318
|
-
role: "menuitem",
|
|
1319
|
-
style: {
|
|
1320
|
-
display: "contents"
|
|
1321
|
-
}
|
|
1322
|
-
}, t.renderEmptyState())), /* @__PURE__ */ f.createElement(He, null, /* @__PURE__ */ f.createElement("div", {
|
|
1323
|
-
...F(t),
|
|
1324
|
-
...$,
|
|
1325
|
-
...p,
|
|
1326
|
-
ref: r,
|
|
1327
|
-
slot: t.slot || void 0,
|
|
1328
|
-
"data-empty": i.collection.size === 0 || void 0,
|
|
1329
|
-
onScroll: t.onScroll
|
|
1330
|
-
}, /* @__PURE__ */ f.createElement(L, {
|
|
1331
|
-
values: [
|
|
1332
|
-
[
|
|
1333
|
-
ve,
|
|
1334
|
-
i
|
|
1335
|
-
],
|
|
1336
|
-
[
|
|
1337
|
-
zr,
|
|
1338
|
-
{
|
|
1339
|
-
elementType: "div"
|
|
1340
|
-
}
|
|
1341
|
-
],
|
|
1342
|
-
[
|
|
1343
|
-
Rr,
|
|
1344
|
-
{
|
|
1345
|
-
name: "MenuSection",
|
|
1346
|
-
render: Ro
|
|
1347
|
-
}
|
|
1348
|
-
],
|
|
1349
|
-
[
|
|
1350
|
-
Ko,
|
|
1351
|
-
{
|
|
1352
|
-
parentMenuRef: r,
|
|
1353
|
-
shouldUseVirtualFocus: o == null ? void 0 : o.shouldUseVirtualFocus
|
|
1354
|
-
}
|
|
1355
|
-
],
|
|
1356
|
-
[
|
|
1357
|
-
$e,
|
|
1358
|
-
null
|
|
1359
|
-
],
|
|
1360
|
-
[
|
|
1361
|
-
Ce,
|
|
1362
|
-
null
|
|
1363
|
-
],
|
|
1364
|
-
[
|
|
1365
|
-
te,
|
|
1366
|
-
i.selectionManager
|
|
1367
|
-
],
|
|
1368
|
-
/* Ensure root MenuTriggerState is defined, in case Menu is rendered outside a MenuTrigger. */
|
|
1369
|
-
/* We assume the context can never change between defined and undefined. */
|
|
1370
|
-
/* eslint-disable-next-line react-hooks/rules-of-hooks */
|
|
1371
|
-
[
|
|
1372
|
-
ee,
|
|
1373
|
-
n ?? me({})
|
|
1374
|
-
]
|
|
1375
|
-
]
|
|
1376
|
-
}, /* @__PURE__ */ f.createElement(l, {
|
|
1377
|
-
collection: i.collection,
|
|
1378
|
-
persistedKeys: Ir(i.selectionManager.focusedKey),
|
|
1379
|
-
scrollRef: r
|
|
1380
|
-
})), c));
|
|
1381
|
-
}
|
|
1382
|
-
class Oo extends Ne {
|
|
1383
|
-
get focusedKey() {
|
|
1384
|
-
return this.parent.focusedKey;
|
|
1385
|
-
}
|
|
1386
|
-
get isFocused() {
|
|
1387
|
-
return this.parent.isFocused;
|
|
1388
|
-
}
|
|
1389
|
-
setFocusedKey(e, r) {
|
|
1390
|
-
return this.parent.setFocusedKey(e, r);
|
|
1391
|
-
}
|
|
1392
|
-
setFocused(e) {
|
|
1393
|
-
this.parent.setFocused(e);
|
|
1394
|
-
}
|
|
1395
|
-
get childFocusStrategy() {
|
|
1396
|
-
return this.parent.childFocusStrategy;
|
|
1397
|
-
}
|
|
1398
|
-
constructor(e, r) {
|
|
1399
|
-
super(e.collection, r), this.parent = e;
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
function Ro(t, e, r, a = "react-aria-MenuSection") {
|
|
1403
|
-
var o, s;
|
|
1404
|
-
let u = E(ve), { CollectionBranch: i } = E(Re), [n, d] = Cr();
|
|
1405
|
-
var l;
|
|
1406
|
-
let { headingProps: $, groupProps: p } = Ao({
|
|
1407
|
-
heading: d,
|
|
1408
|
-
"aria-label": (l = r.props["aria-label"]) !== null && l !== void 0 ? l : void 0
|
|
1409
|
-
}), c = j({
|
|
1410
|
-
defaultClassName: a,
|
|
1411
|
-
className: (o = r.props) === null || o === void 0 ? void 0 : o.className,
|
|
1412
|
-
style: (s = r.props) === null || s === void 0 ? void 0 : s.style,
|
|
1413
|
-
values: {}
|
|
1414
|
-
}), b = E(te), x = Ie(t), g = t.selectionMode != null ? new Oo(b, x) : b;
|
|
1415
|
-
return /* @__PURE__ */ f.createElement("section", {
|
|
1416
|
-
...F(t),
|
|
1417
|
-
...p,
|
|
1418
|
-
...c,
|
|
1419
|
-
ref: e
|
|
1420
|
-
}, /* @__PURE__ */ f.createElement(L, {
|
|
1421
|
-
values: [
|
|
1422
|
-
[
|
|
1423
|
-
_r,
|
|
1424
|
-
{
|
|
1425
|
-
...$,
|
|
1426
|
-
ref: n
|
|
1427
|
-
}
|
|
1428
|
-
],
|
|
1429
|
-
[
|
|
1430
|
-
te,
|
|
1431
|
-
g
|
|
1432
|
-
]
|
|
1433
|
-
]
|
|
1434
|
-
}, /* @__PURE__ */ f.createElement(i, {
|
|
1435
|
-
collection: u.collection,
|
|
1436
|
-
parent: r
|
|
1437
|
-
})));
|
|
1438
|
-
}
|
|
1439
|
-
const $e = /* @__PURE__ */ D(null), $a = /* @__PURE__ */ Kr("item", function(e, r, a) {
|
|
1440
|
-
var o;
|
|
1441
|
-
[e, r] = re(e, r, $e);
|
|
1442
|
-
let s = (o = Er($e)) === null || o === void 0 ? void 0 : o.id, u = E(ve), i = Ke(r), n = E(te), { menuItemProps: d, labelProps: l, descriptionProps: $, keyboardShortcutProps: p, ...c } = Co({
|
|
1443
|
-
...e,
|
|
1444
|
-
id: s,
|
|
1445
|
-
key: a.key,
|
|
1446
|
-
selectionManager: n
|
|
1447
|
-
}, u, i), { hoverProps: b, isHovered: x } = ze({
|
|
1448
|
-
isDisabled: c.isDisabled
|
|
1449
|
-
}), g = j({
|
|
1450
|
-
...e,
|
|
1451
|
-
id: void 0,
|
|
1452
|
-
children: a.rendered,
|
|
1453
|
-
defaultClassName: "react-aria-MenuItem",
|
|
1454
|
-
values: {
|
|
1455
|
-
...c,
|
|
1456
|
-
isHovered: x,
|
|
1457
|
-
isFocusVisible: c.isFocusVisible,
|
|
1458
|
-
selectionMode: n.selectionMode,
|
|
1459
|
-
selectionBehavior: n.selectionBehavior,
|
|
1460
|
-
hasSubmenu: !!e["aria-haspopup"],
|
|
1461
|
-
isOpen: e["aria-expanded"] === "true"
|
|
1462
|
-
}
|
|
1463
|
-
}), K = e.href ? "a" : "div";
|
|
1464
|
-
return /* @__PURE__ */ f.createElement(K, {
|
|
1465
|
-
...G(d, b),
|
|
1466
|
-
...g,
|
|
1467
|
-
ref: i,
|
|
1468
|
-
"data-disabled": c.isDisabled || void 0,
|
|
1469
|
-
"data-hovered": x || void 0,
|
|
1470
|
-
"data-focused": c.isFocused || void 0,
|
|
1471
|
-
"data-focus-visible": c.isFocusVisible || void 0,
|
|
1472
|
-
"data-pressed": c.isPressed || void 0,
|
|
1473
|
-
"data-selected": c.isSelected || void 0,
|
|
1474
|
-
"data-selection-mode": n.selectionMode === "none" ? void 0 : n.selectionMode,
|
|
1475
|
-
"data-has-submenu": !!e["aria-haspopup"] || void 0,
|
|
1476
|
-
"data-open": e["aria-expanded"] === "true" || void 0
|
|
1477
|
-
}, /* @__PURE__ */ f.createElement(L, {
|
|
1478
|
-
values: [
|
|
1479
|
-
[
|
|
1480
|
-
Hr,
|
|
1481
|
-
{
|
|
1482
|
-
slots: {
|
|
1483
|
-
[de]: l,
|
|
1484
|
-
label: l,
|
|
1485
|
-
description: $
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
],
|
|
1489
|
-
[
|
|
1490
|
-
Fo,
|
|
1491
|
-
p
|
|
1492
|
-
]
|
|
1493
|
-
]
|
|
1494
|
-
}, g.children));
|
|
1495
|
-
}), dr = /* @__PURE__ */ D(null), ae = /* @__PURE__ */ D(null);
|
|
1496
|
-
function pa(t) {
|
|
1497
|
-
let e = me(t), r = k(null), { triggerProps: a, overlayProps: o } = Ve({
|
|
1498
|
-
type: "dialog"
|
|
1499
|
-
}, e, r), [s, u] = B(null), i = pe(() => {
|
|
1500
|
-
r.current && u(r.current.offsetWidth + "px");
|
|
1501
|
-
}, [
|
|
1502
|
-
r
|
|
1503
|
-
]);
|
|
1504
|
-
return Oe({
|
|
1505
|
-
ref: r,
|
|
1506
|
-
onResize: i
|
|
1507
|
-
}), a.id = oe(), o["aria-labelledby"] = a.id, /* @__PURE__ */ f.createElement(L, {
|
|
1508
|
-
values: [
|
|
1509
|
-
[
|
|
1510
|
-
ae,
|
|
1511
|
-
e
|
|
1512
|
-
],
|
|
1513
|
-
[
|
|
1514
|
-
ee,
|
|
1515
|
-
e
|
|
1516
|
-
],
|
|
1517
|
-
[
|
|
1518
|
-
dr,
|
|
1519
|
-
o
|
|
1520
|
-
],
|
|
1521
|
-
[
|
|
1522
|
-
ge,
|
|
1523
|
-
{
|
|
1524
|
-
trigger: "DialogTrigger",
|
|
1525
|
-
triggerRef: r,
|
|
1526
|
-
"aria-labelledby": o["aria-labelledby"],
|
|
1527
|
-
style: {
|
|
1528
|
-
"--trigger-width": s
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
]
|
|
1532
|
-
]
|
|
1533
|
-
}, /* @__PURE__ */ f.createElement(Le, {
|
|
1534
|
-
...a,
|
|
1535
|
-
ref: r,
|
|
1536
|
-
isPressed: e.isOpen
|
|
1537
|
-
}, t.children));
|
|
1538
|
-
}
|
|
1539
|
-
const ba = /* @__PURE__ */ be(function(e, r) {
|
|
1540
|
-
let a = e["aria-labelledby"];
|
|
1541
|
-
[e, r] = re(e, r, dr);
|
|
1542
|
-
let { dialogProps: o, titleProps: s } = Mo({
|
|
1543
|
-
...e,
|
|
1544
|
-
// Only pass aria-labelledby from props, not context.
|
|
1545
|
-
// Context is used as a fallback below.
|
|
1546
|
-
"aria-labelledby": a
|
|
1547
|
-
}, r), u = E(ae);
|
|
1548
|
-
!o["aria-label"] && !o["aria-labelledby"] && (e["aria-labelledby"] ? o["aria-labelledby"] = e["aria-labelledby"] : process.env.NODE_ENV !== "production" && console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));
|
|
1549
|
-
let i = j({
|
|
1550
|
-
defaultClassName: "react-aria-Dialog",
|
|
1551
|
-
className: e.className,
|
|
1552
|
-
style: e.style,
|
|
1553
|
-
children: e.children,
|
|
1554
|
-
values: {
|
|
1555
|
-
close: (u == null ? void 0 : u.close) || (() => {
|
|
1556
|
-
})
|
|
1557
|
-
}
|
|
1558
|
-
});
|
|
1559
|
-
return /* @__PURE__ */ f.createElement("section", {
|
|
1560
|
-
...F(e),
|
|
1561
|
-
...o,
|
|
1562
|
-
...i,
|
|
1563
|
-
ref: r,
|
|
1564
|
-
slot: e.slot || void 0
|
|
1565
|
-
}, /* @__PURE__ */ f.createElement(L, {
|
|
1566
|
-
values: [
|
|
1567
|
-
[
|
|
1568
|
-
Ar,
|
|
1569
|
-
{
|
|
1570
|
-
slots: {
|
|
1571
|
-
[de]: {},
|
|
1572
|
-
title: {
|
|
1573
|
-
...s,
|
|
1574
|
-
level: 2
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
],
|
|
1579
|
-
[
|
|
1580
|
-
Pr,
|
|
1581
|
-
{
|
|
1582
|
-
slots: {
|
|
1583
|
-
[de]: {},
|
|
1584
|
-
close: {
|
|
1585
|
-
onPress: () => u == null ? void 0 : u.close()
|
|
1586
|
-
}
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
1589
|
-
]
|
|
1590
|
-
]
|
|
1591
|
-
}, i.children));
|
|
1592
|
-
});
|
|
1593
|
-
export {
|
|
1594
|
-
pa as $,
|
|
1595
|
-
da as a,
|
|
1596
|
-
ca as b,
|
|
1597
|
-
fa as c,
|
|
1598
|
-
$a as d,
|
|
1599
|
-
co as e,
|
|
1600
|
-
$o as f,
|
|
1601
|
-
ho as g,
|
|
1602
|
-
vo as h,
|
|
1603
|
-
ae as i,
|
|
1604
|
-
ke as j,
|
|
1605
|
-
Be as k,
|
|
1606
|
-
ba as l,
|
|
1607
|
-
ge as m,
|
|
1608
|
-
dr as n,
|
|
1609
|
-
Eo as o,
|
|
1610
|
-
me as p
|
|
1611
|
-
};
|