@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
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import { a as
|
|
3
|
-
import { $ as
|
|
4
|
-
import { $ as
|
|
1
|
+
import { h as E } from "./utils-DFIwp4PB.js";
|
|
2
|
+
import { a as I } from "./mergeProps-BSsN7Bgk.js";
|
|
3
|
+
import { $ as M } from "./filterDOMProps-wsa9OcNI.js";
|
|
4
|
+
import { $ as V, a as S, b as D } from "./useFormValidation-L0UHvOsP.js";
|
|
5
5
|
import { $ as L } from "./useControlledState-u436Wbp1.js";
|
|
6
|
-
import O, {
|
|
7
|
-
import { $ as
|
|
8
|
-
import { a as
|
|
9
|
-
function
|
|
10
|
-
let { inputElementType:
|
|
6
|
+
import O, { useState as R, useEffect as q } from "react";
|
|
7
|
+
import { $ as B } from "./useField-BMegM8fA.js";
|
|
8
|
+
import { a as T } from "./useFocusable-DXlMChFC.js";
|
|
9
|
+
function w(e, a) {
|
|
10
|
+
let { inputElementType: c = "input", isDisabled: f = !1, isRequired: r = !1, isReadOnly: m = !1, type: $ = "text", validationBehavior: l = "aria" } = e, [i, d] = L(e.value, e.defaultValue || "", e.onChange), { focusableProps: b } = T(e, a), u = V({
|
|
11
11
|
...e,
|
|
12
12
|
value: i
|
|
13
|
-
}), { isInvalid: n, validationErrors: s, validationDetails:
|
|
13
|
+
}), { isInvalid: n, validationErrors: s, validationDetails: v } = u.displayValidation, { labelProps: C, fieldProps: P, descriptionProps: p, errorMessageProps: g } = B({
|
|
14
14
|
...e,
|
|
15
15
|
isInvalid: n,
|
|
16
16
|
errorMessage: e.errorMessage || s
|
|
17
|
-
}),
|
|
17
|
+
}), h = M(e, {
|
|
18
18
|
labelable: !0
|
|
19
19
|
});
|
|
20
|
-
const
|
|
21
|
-
type:
|
|
20
|
+
const y = {
|
|
21
|
+
type: $,
|
|
22
22
|
pattern: e.pattern
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
let [x] = R(i);
|
|
25
|
+
var o;
|
|
26
|
+
return S(a, (o = e.defaultValue) !== null && o !== void 0 ? o : x, d), D(e, u, a), q(() => {
|
|
27
|
+
if (a.current instanceof E(a.current).HTMLTextAreaElement) {
|
|
26
28
|
let t = a.current;
|
|
27
29
|
Object.defineProperty(t, "defaultValue", {
|
|
28
30
|
get: () => t.value,
|
|
@@ -34,12 +36,12 @@ function _(e, a) {
|
|
|
34
36
|
}, [
|
|
35
37
|
a
|
|
36
38
|
]), {
|
|
37
|
-
labelProps:
|
|
38
|
-
inputProps:
|
|
39
|
-
disabled:
|
|
40
|
-
readOnly:
|
|
41
|
-
required:
|
|
42
|
-
"aria-required":
|
|
39
|
+
labelProps: C,
|
|
40
|
+
inputProps: I(h, c === "input" ? y : void 0, {
|
|
41
|
+
disabled: f,
|
|
42
|
+
readOnly: m,
|
|
43
|
+
required: r && l === "native",
|
|
44
|
+
"aria-required": r && l === "aria" || void 0,
|
|
43
45
|
"aria-invalid": n || void 0,
|
|
44
46
|
"aria-errormessage": e["aria-errormessage"],
|
|
45
47
|
"aria-activedescendant": e["aria-activedescendant"],
|
|
@@ -47,12 +49,13 @@ function _(e, a) {
|
|
|
47
49
|
"aria-haspopup": e["aria-haspopup"],
|
|
48
50
|
"aria-controls": e["aria-controls"],
|
|
49
51
|
value: i,
|
|
50
|
-
onChange: (t) =>
|
|
52
|
+
onChange: (t) => d(t.target.value),
|
|
51
53
|
autoComplete: e.autoComplete,
|
|
52
54
|
autoCapitalize: e.autoCapitalize,
|
|
53
55
|
maxLength: e.maxLength,
|
|
54
56
|
minLength: e.minLength,
|
|
55
57
|
name: e.name,
|
|
58
|
+
form: e.form,
|
|
56
59
|
placeholder: e.placeholder,
|
|
57
60
|
inputMode: e.inputMode,
|
|
58
61
|
autoCorrect: e.autoCorrect,
|
|
@@ -71,16 +74,16 @@ function _(e, a) {
|
|
|
71
74
|
// Input events
|
|
72
75
|
onBeforeInput: e.onBeforeInput,
|
|
73
76
|
onInput: e.onInput,
|
|
74
|
-
|
|
75
|
-
...
|
|
77
|
+
...b,
|
|
78
|
+
...P
|
|
76
79
|
}),
|
|
77
80
|
descriptionProps: p,
|
|
78
|
-
errorMessageProps:
|
|
81
|
+
errorMessageProps: g,
|
|
79
82
|
isInvalid: n,
|
|
80
83
|
validationErrors: s,
|
|
81
|
-
validationDetails:
|
|
84
|
+
validationDetails: v
|
|
82
85
|
};
|
|
83
86
|
}
|
|
84
87
|
export {
|
|
85
|
-
|
|
88
|
+
w as $
|
|
86
89
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const I=require("./utils-__vrf9VZ.cjs"),M=require("./mergeProps-JhcJ7uJL.cjs"),V=require("./filterDOMProps-RRlKPKX0.cjs"),r=require("./useFormValidation-BQIRxgbU.cjs"),S=require("./useControlledState-D0L6S_5r.cjs"),l=require("react"),D=require("./useField-DyeD7MLj.cjs"),O=require("./useFocusable-CsG-IPuC.cjs");function L(e,a){let{inputElementType:$="input",isDisabled:b=!1,isRequired:d=!1,isReadOnly:v=!1,type:m="text",validationBehavior:u="aria"}=e,[i,s]=S.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||"",e.onChange),{focusableProps:C}=O.$f645667febf57a63$export$4c014de7c8940b4c(e,a),c=r.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i}),{isInvalid:n,validationErrors:f,validationDetails:P}=c.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:h,errorMessageProps:x}=D.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,isInvalid:n,errorMessage:e.errorMessage||f}),q=V.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});const p={type:m,pattern:e.pattern};let[E]=l.useState(i);var o;return r.$99facab73266f662$export$5add1d006293d136(a,(o=e.defaultValue)!==null&&o!==void 0?o:E,s),r.$e93e671b31057976$export$b8473d3665f3a75a(e,c,a),l.useEffect(()=>{if(a.current instanceof I.$431fbd86ca7dc216$export$f21a1ffae260145a(a.current).HTMLTextAreaElement){let t=a.current;Object.defineProperty(t,"defaultValue",{get:()=>t.value,set:()=>{},configurable:!0})}},[a]),{labelProps:g,inputProps:M.$3ef42575df84b30b$export$9d1611c77c2fe928(q,$==="input"?p:void 0,{disabled:b,readOnly:v,required:d&&u==="native","aria-required":d&&u==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:t=>s(t.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(l.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...C,...y}),descriptionProps:h,errorMessageProps:x,isInvalid:n,validationErrors:f,validationDetails:P}}exports.$2d73ec29415bd339$export$712718f7aec83d5=L;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { $ as u } from "./useControlledState-u436Wbp1.js";
|
|
2
|
+
import { useState as S } from "react";
|
|
3
|
+
function $(e = {}) {
|
|
4
|
+
let { isReadOnly: d } = e, [t, a] = u(e.isSelected, e.defaultSelected || !1, e.onChange), [c] = S(t);
|
|
5
|
+
function f(n) {
|
|
6
|
+
d || a(n);
|
|
7
|
+
}
|
|
8
|
+
function i() {
|
|
9
|
+
d || a(!t);
|
|
10
|
+
}
|
|
11
|
+
var l;
|
|
12
|
+
return {
|
|
13
|
+
isSelected: t,
|
|
14
|
+
defaultSelected: (l = e.defaultSelected) !== null && l !== void 0 ? l : c,
|
|
15
|
+
setSelected: f,
|
|
16
|
+
toggle: i
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
$
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./useControlledState-D0L6S_5r.cjs"),S=require("react");function o(e={}){let{isReadOnly:d}=e,[t,c]=u.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=S.useState(t);function f(n){d||c(n)}function i(){d||c(!t)}var l;return{isSelected:t,defaultSelected:(l=e.defaultSelected)!==null&&l!==void 0?l:a,setSelected:f,toggle:i}}exports.$3017fa7ffdddec74$export$8042c6c013fd5226=o;
|
package/utils/types.d.ts
ADDED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const $=require("./mergeProps-
|
|
1
|
+
"use strict";const $=require("./mergeProps-JhcJ7uJL.cjs"),r=require("react");function y(...e){return e.length===1&&e[0]?e[0]:l=>{let t=!1;const n=e.map(a=>{const f=i(a,l);return t||(t=typeof f=="function"),f});if(t)return()=>{n.forEach((a,f)=>{typeof a=="function"?a():i(e[f],null)})}}}function i(e,l){if(typeof e=="function")return e(l);e!=null&&(e.current=l)}function p(e){const l=r.useRef(null),t=r.useRef(void 0),n=r.useCallback(a=>{if(typeof e=="function"){const f=e,u=f(a);return()=>{typeof u=="function"?u():f(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return r.useMemo(()=>({get current(){return l.current},set current(a){l.current=a,t.current&&(t.current(),t.current=void 0),a!=null&&(t.current=n(a))}}),[n])}const b=Symbol("default");function C({values:e,children:l}){for(let[t,n]of e)l=r.createElement(t.Provider,{value:n},l);return l}function S(e){let{className:l,style:t,children:n,defaultClassName:a,defaultChildren:f,defaultStyle:u,values:s}=e;return r.useMemo(()=>{let o,d,c;return typeof l=="function"?o=l({...s,defaultClassName:a}):o=l,typeof t=="function"?d=t({...s,defaultStyle:u||{}}):d=t,typeof n=="function"?c=n({...s,defaultChildren:f}):n==null?c=f:c=n,{className:o??a,style:d||u?{...u,...d}:void 0,children:c??f,"data-rac":""}},[l,t,n,a,f,u,s])}function x(e,l){let t=r.useContext(e);if(l===null)return null;if(t&&typeof t=="object"&&"slots"in t&&t.slots){let n=l||b;if(!t.slots[n]){let a=new Intl.ListFormat().format(Object.keys(t.slots).map(u=>`"${u}"`)),f=l?`Invalid slot "${l}".`:"A slot prop is required.";throw new Error(`${f} Valid slot names are ${a}.`)}return t.slots[n]}return t}function h(e,l,t){let n=x(t,e.slot)||{},{ref:a,...f}=n,u=p(r.useMemo(()=>y(l,a),[l,a])),s=$.$3ef42575df84b30b$export$9d1611c77c2fe928(f,e);return"style"in f&&f.style&&"style"in e&&e.style&&(typeof f.style=="function"||typeof e.style=="function"?s.style=o=>{let d=typeof f.style=="function"?f.style(o):f.style,c={...o.defaultStyle,...d},m=typeof e.style=="function"?e.style({...o,defaultStyle:c}):e.style;return{...c,...m}}:s.style={...f.style,...e.style}),[s,u]}function R(e=!0){let[l,t]=r.useState(e),n=r.useRef(!1),a=r.useCallback(f=>{n.current=!0,t(!!f)},[]);return $.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{n.current||t(!1)},[]),[a,l]}function v(e){const l=/^(data-.*)$/;let t={};for(const n in e)l.test(n)||(t[n]=e[n]);return t}exports.$5dc95899b306f630$export$c9058316764c140e=y;exports.$64fa3d84918910a7$export$2881499e37b75b9a=C;exports.$64fa3d84918910a7$export$29f1550f4b0d4415=h;exports.$64fa3d84918910a7$export$4d86445c2cf5e3=S;exports.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8=R;exports.$64fa3d84918910a7$export$c62b8e45d58ddad9=b;exports.$64fa3d84918910a7$export$ef03459518577ad4=v;exports.$64fa3d84918910a7$export$fabf2dc03a41866e=x;exports.$df56164dff5785e2$export$4338b53315abf666=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as p, $ as b } from "./mergeProps-
|
|
1
|
+
import { a as p, $ as b } from "./mergeProps-BSsN7Bgk.js";
|
|
2
2
|
import x, { useRef as d, useCallback as $, useMemo as i, useContext as C, useState as h } from "react";
|
|
3
3
|
function S(...e) {
|
|
4
4
|
return e.length === 1 && e[0] ? e[0] : (l) => {
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { useRef as E, useCallback as u, useEffect as w } from "react";
|
|
2
|
+
import { $ as T, d as g } from "./mergeProps-BSsN7Bgk.js";
|
|
3
|
+
const y = (e) => {
|
|
4
|
+
var t;
|
|
5
|
+
return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
6
|
+
}, h = (e) => e && "window" in e && e.window === e ? e : y(e).defaultView || window;
|
|
7
|
+
function x(e) {
|
|
8
|
+
return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
|
|
9
|
+
}
|
|
10
|
+
function S(e) {
|
|
11
|
+
return x(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
|
|
12
|
+
}
|
|
13
|
+
let M = !1, A = !1;
|
|
14
|
+
function I() {
|
|
15
|
+
return M;
|
|
16
|
+
}
|
|
17
|
+
function b() {
|
|
18
|
+
return A;
|
|
19
|
+
}
|
|
20
|
+
function B(e, t) {
|
|
21
|
+
if (!b()) return t && e ? e.contains(t) : !1;
|
|
22
|
+
if (!e || !t) return !1;
|
|
23
|
+
let n = t;
|
|
24
|
+
for (; n !== null; ) {
|
|
25
|
+
if (n === e) return !0;
|
|
26
|
+
n.tagName === "SLOT" && n.assignedSlot ? n = n.assignedSlot.parentNode : S(n) ? n = n.host : n = n.parentNode;
|
|
27
|
+
}
|
|
28
|
+
return !1;
|
|
29
|
+
}
|
|
30
|
+
const k = (e = document) => {
|
|
31
|
+
var t;
|
|
32
|
+
if (!b()) return e.activeElement;
|
|
33
|
+
let n = e.activeElement;
|
|
34
|
+
for (; n && "shadowRoot" in n && (!((t = n.shadowRoot) === null || t === void 0) && t.activeElement); ) n = n.shadowRoot.activeElement;
|
|
35
|
+
return n;
|
|
36
|
+
};
|
|
37
|
+
function U(e) {
|
|
38
|
+
return b() && e.target.shadowRoot && e.composedPath ? e.composedPath()[0] : e.target;
|
|
39
|
+
}
|
|
40
|
+
function v(e) {
|
|
41
|
+
if (F()) e.focus({
|
|
42
|
+
preventScroll: !0
|
|
43
|
+
});
|
|
44
|
+
else {
|
|
45
|
+
let t = N(e);
|
|
46
|
+
e.focus(), P(t);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
let f = null;
|
|
50
|
+
function F() {
|
|
51
|
+
if (f == null) {
|
|
52
|
+
f = !1;
|
|
53
|
+
try {
|
|
54
|
+
document.createElement("div").focus({
|
|
55
|
+
get preventScroll() {
|
|
56
|
+
return f = !0, !0;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return f;
|
|
63
|
+
}
|
|
64
|
+
function N(e) {
|
|
65
|
+
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
|
|
66
|
+
for (; t instanceof HTMLElement && t !== r; )
|
|
67
|
+
(t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
|
|
68
|
+
element: t,
|
|
69
|
+
scrollTop: t.scrollTop,
|
|
70
|
+
scrollLeft: t.scrollLeft
|
|
71
|
+
}), t = t.parentNode;
|
|
72
|
+
return r instanceof HTMLElement && n.push({
|
|
73
|
+
element: r,
|
|
74
|
+
scrollTop: r.scrollTop,
|
|
75
|
+
scrollLeft: r.scrollLeft
|
|
76
|
+
}), n;
|
|
77
|
+
}
|
|
78
|
+
function P(e) {
|
|
79
|
+
for (let { element: t, scrollTop: n, scrollLeft: r } of e)
|
|
80
|
+
t.scrollTop = n, t.scrollLeft = r;
|
|
81
|
+
}
|
|
82
|
+
function W() {
|
|
83
|
+
let e = E(/* @__PURE__ */ new Map()), t = u((o, l, a, i) => {
|
|
84
|
+
let c = i != null && i.once ? (...d) => {
|
|
85
|
+
e.current.delete(a), a(...d);
|
|
86
|
+
} : a;
|
|
87
|
+
e.current.set(a, {
|
|
88
|
+
type: l,
|
|
89
|
+
eventTarget: o,
|
|
90
|
+
fn: c,
|
|
91
|
+
options: i
|
|
92
|
+
}), o.addEventListener(l, c, i);
|
|
93
|
+
}, []), n = u((o, l, a, i) => {
|
|
94
|
+
var c;
|
|
95
|
+
let d = ((c = e.current.get(a)) === null || c === void 0 ? void 0 : c.fn) || a;
|
|
96
|
+
o.removeEventListener(l, d, i), e.current.delete(a);
|
|
97
|
+
}, []), r = u(() => {
|
|
98
|
+
e.current.forEach((o, l) => {
|
|
99
|
+
n(o.eventTarget, o.type, l, o.options);
|
|
100
|
+
});
|
|
101
|
+
}, [
|
|
102
|
+
n
|
|
103
|
+
]);
|
|
104
|
+
return w(() => r, [
|
|
105
|
+
r
|
|
106
|
+
]), {
|
|
107
|
+
addGlobalListener: t,
|
|
108
|
+
removeGlobalListener: n,
|
|
109
|
+
removeAllGlobalListeners: r
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
const O = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
113
|
+
function H(e) {
|
|
114
|
+
const t = h(e);
|
|
115
|
+
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
116
|
+
let { display: n, visibility: r } = e.style, o = n !== "none" && r !== "hidden" && r !== "collapse";
|
|
117
|
+
if (o) {
|
|
118
|
+
const { getComputedStyle: l } = e.ownerDocument.defaultView;
|
|
119
|
+
let { display: a, visibility: i } = l(e);
|
|
120
|
+
o = a !== "none" && i !== "hidden" && i !== "collapse";
|
|
121
|
+
}
|
|
122
|
+
return o;
|
|
123
|
+
}
|
|
124
|
+
function R(e, t) {
|
|
125
|
+
return !e.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
|
|
126
|
+
!e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
|
|
127
|
+
}
|
|
128
|
+
function $(e, t) {
|
|
129
|
+
return O ? e.checkVisibility() && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && H(e) && R(e, t) && (!e.parentElement || $(e.parentElement, e));
|
|
130
|
+
}
|
|
131
|
+
const p = [
|
|
132
|
+
"input:not([disabled]):not([type=hidden])",
|
|
133
|
+
"select:not([disabled])",
|
|
134
|
+
"textarea:not([disabled])",
|
|
135
|
+
"button:not([disabled])",
|
|
136
|
+
"a[href]",
|
|
137
|
+
"area[href]",
|
|
138
|
+
"summary",
|
|
139
|
+
"iframe",
|
|
140
|
+
"object",
|
|
141
|
+
"embed",
|
|
142
|
+
"audio[controls]",
|
|
143
|
+
"video[controls]",
|
|
144
|
+
'[contenteditable]:not([contenteditable^="false"])',
|
|
145
|
+
"permission"
|
|
146
|
+
], V = p.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
147
|
+
p.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
148
|
+
const D = p.join(':not([hidden]):not([tabindex="-1"]),');
|
|
149
|
+
function C(e) {
|
|
150
|
+
return e.matches(V) && $(e) && !L(e);
|
|
151
|
+
}
|
|
152
|
+
function q(e) {
|
|
153
|
+
return e.matches(D) && $(e) && !L(e);
|
|
154
|
+
}
|
|
155
|
+
function L(e) {
|
|
156
|
+
let t = e;
|
|
157
|
+
for (; t != null; ) {
|
|
158
|
+
if (t instanceof t.ownerDocument.defaultView.HTMLElement && t.inert) return !0;
|
|
159
|
+
t = t.parentElement;
|
|
160
|
+
}
|
|
161
|
+
return !1;
|
|
162
|
+
}
|
|
163
|
+
function _(e) {
|
|
164
|
+
let t = e;
|
|
165
|
+
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
|
|
166
|
+
}, t;
|
|
167
|
+
}
|
|
168
|
+
function Y(e, t) {
|
|
169
|
+
Object.defineProperty(e, "target", {
|
|
170
|
+
value: t
|
|
171
|
+
}), Object.defineProperty(e, "currentTarget", {
|
|
172
|
+
value: t
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
function z(e) {
|
|
176
|
+
let t = E({
|
|
177
|
+
isFocused: !1,
|
|
178
|
+
observer: null
|
|
179
|
+
});
|
|
180
|
+
T(() => {
|
|
181
|
+
const r = t.current;
|
|
182
|
+
return () => {
|
|
183
|
+
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
184
|
+
};
|
|
185
|
+
}, []);
|
|
186
|
+
let n = g((r) => {
|
|
187
|
+
e == null || e(r);
|
|
188
|
+
});
|
|
189
|
+
return u((r) => {
|
|
190
|
+
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
191
|
+
t.current.isFocused = !0;
|
|
192
|
+
let o = r.target, l = (a) => {
|
|
193
|
+
if (t.current.isFocused = !1, o.disabled) {
|
|
194
|
+
let i = _(a);
|
|
195
|
+
n(i);
|
|
196
|
+
}
|
|
197
|
+
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
198
|
+
};
|
|
199
|
+
o.addEventListener("focusout", l, {
|
|
200
|
+
once: !0
|
|
201
|
+
}), t.current.observer = new MutationObserver(() => {
|
|
202
|
+
if (t.current.isFocused && o.disabled) {
|
|
203
|
+
var a;
|
|
204
|
+
(a = t.current.observer) === null || a === void 0 || a.disconnect();
|
|
205
|
+
let i = o === document.activeElement ? null : document.activeElement;
|
|
206
|
+
o.dispatchEvent(new FocusEvent("blur", {
|
|
207
|
+
relatedTarget: i
|
|
208
|
+
})), o.dispatchEvent(new FocusEvent("focusout", {
|
|
209
|
+
bubbles: !0,
|
|
210
|
+
relatedTarget: i
|
|
211
|
+
}));
|
|
212
|
+
}
|
|
213
|
+
}), t.current.observer.observe(o, {
|
|
214
|
+
attributes: !0,
|
|
215
|
+
attributeFilter: [
|
|
216
|
+
"disabled"
|
|
217
|
+
]
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
}, [
|
|
221
|
+
n
|
|
222
|
+
]);
|
|
223
|
+
}
|
|
224
|
+
let m = !1;
|
|
225
|
+
function J(e) {
|
|
226
|
+
for (; e && !C(e); ) e = e.parentElement;
|
|
227
|
+
let t = h(e), n = t.document.activeElement;
|
|
228
|
+
if (!n || n === e) return;
|
|
229
|
+
m = !0;
|
|
230
|
+
let r = !1, o = (s) => {
|
|
231
|
+
(s.target === n || r) && s.stopImmediatePropagation();
|
|
232
|
+
}, l = (s) => {
|
|
233
|
+
(s.target === n || r) && (s.stopImmediatePropagation(), !e && !r && (r = !0, v(n), c()));
|
|
234
|
+
}, a = (s) => {
|
|
235
|
+
(s.target === e || r) && s.stopImmediatePropagation();
|
|
236
|
+
}, i = (s) => {
|
|
237
|
+
(s.target === e || r) && (s.stopImmediatePropagation(), r || (r = !0, v(n), c()));
|
|
238
|
+
};
|
|
239
|
+
t.addEventListener("blur", o, !0), t.addEventListener("focusout", l, !0), t.addEventListener("focusin", i, !0), t.addEventListener("focus", a, !0);
|
|
240
|
+
let c = () => {
|
|
241
|
+
cancelAnimationFrame(d), t.removeEventListener("blur", o, !0), t.removeEventListener("focusout", l, !0), t.removeEventListener("focusin", i, !0), t.removeEventListener("focus", a, !0), m = !1, r = !1;
|
|
242
|
+
}, d = requestAnimationFrame(c);
|
|
243
|
+
return c;
|
|
244
|
+
}
|
|
245
|
+
export {
|
|
246
|
+
W as $,
|
|
247
|
+
z as a,
|
|
248
|
+
y as b,
|
|
249
|
+
k as c,
|
|
250
|
+
U as d,
|
|
251
|
+
B as e,
|
|
252
|
+
Y as f,
|
|
253
|
+
_ as g,
|
|
254
|
+
h,
|
|
255
|
+
b as i,
|
|
256
|
+
q as j,
|
|
257
|
+
C as k,
|
|
258
|
+
m as l,
|
|
259
|
+
v as m,
|
|
260
|
+
J as n,
|
|
261
|
+
I as o
|
|
262
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const f=require("react"),E=require("./mergeProps-JhcJ7uJL.cjs"),x=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},p=e=>e&&"window"in e&&e.window===e?e:x(e).defaultView||window;function T(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function g(e){return T(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let y=!1,S=!1;function M(){return y}function b(){return S}function A(e,t){if(!b())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:g(r)?r=r.host:r=r.parentNode}return!1}const P=(e=document)=>{var t;if(!b())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function F(e){return b()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function $(e){if(N())e.focus({preventScroll:!0});else{let t=R(e);e.focus(),C(t)}}let u=null;function N(){if(u==null){u=!1;try{document.createElement("div").focus({get preventScroll(){return u=!0,!0}})}catch{}}return u}function R(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function C(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function O(){let e=f.useRef(new Map),t=f.useCallback((o,d,a,c)=>{let i=c!=null&&c.once?(...s)=>{e.current.delete(a),a(...s)}:a;e.current.set(a,{type:d,eventTarget:o,fn:i,options:c}),o.addEventListener(d,i,c)},[]),r=f.useCallback((o,d,a,c)=>{var i;let s=((i=e.current.get(a))===null||i===void 0?void 0:i.fn)||a;o.removeEventListener(d,s,c),e.current.delete(a)},[]),n=f.useCallback(()=>{e.current.forEach((o,d)=>{r(o.eventTarget,o.type,d,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}const H=typeof Element<"u"&&"checkVisibility"in Element.prototype;function V(e){const t=p(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:d}=e.ownerDocument.defaultView;let{display:a,visibility:c}=d(e);o=a!=="none"&&c!=="hidden"&&c!=="collapse"}return o}function D(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function v(e,t){return H?e.checkVisibility()&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&V(e)&&D(e,t)&&(!e.parentElement||v(e.parentElement,e))}const m=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],_=m.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";m.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const G=m.join(':not([hidden]):not([tabindex="-1"]),');function L(e){return e.matches(_)&&v(e)&&!h(e)}function I(e){return e.matches(G)&&v(e)&&!h(e)}function h(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function w(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function j(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function k(e){let t=f.useRef({isFocused:!1,observer:null});E.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=E.$8ae05eaa5c114e9c$export$7f54fc3180508a52(n=>{e==null||e(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,d=a=>{if(t.current.isFocused=!1,o.disabled){let c=w(a);r(c)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",d,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let c=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}exports.$8a9cb279dc87e130$export$fda7da73ab5d4c48=!1;function B(e){for(;e&&!L(e);)e=e.parentElement;let t=p(e),r=t.document.activeElement;if(!r||r===e)return;exports.$8a9cb279dc87e130$export$fda7da73ab5d4c48=!0;let n=!1,o=l=>{(l.target===r||n)&&l.stopImmediatePropagation()},d=l=>{(l.target===r||n)&&(l.stopImmediatePropagation(),!e&&!n&&(n=!0,$(r),i()))},a=l=>{(l.target===e||n)&&l.stopImmediatePropagation()},c=l=>{(l.target===e||n)&&(l.stopImmediatePropagation(),n||(n=!0,$(r),i()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",d,!0),t.addEventListener("focusin",c,!0),t.addEventListener("focus",a,!0);let i=()=>{cancelAnimationFrame(s),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",d,!0),t.removeEventListener("focusin",c,!0),t.removeEventListener("focus",a,!0),exports.$8a9cb279dc87e130$export$fda7da73ab5d4c48=!1,n=!1},s=requestAnimationFrame(i);return i}exports.$03deb23ff14920c4$export$4eaf04e54aa8eed6=O;exports.$431fbd86ca7dc216$export$b204af158042fbac=x;exports.$431fbd86ca7dc216$export$f21a1ffae260145a=p;exports.$7215afc6de606d6b$export$de79e2c695e052f3=$;exports.$8a9cb279dc87e130$export$525bc4921d56d4a=w;exports.$8a9cb279dc87e130$export$715c682d09d639cc=k;exports.$8a9cb279dc87e130$export$c2b7abe5d61ec696=j;exports.$8a9cb279dc87e130$export$cabe61c495ee3649=B;exports.$b4b717babfbb907b$export$4c063cf1350e6fed=L;exports.$b4b717babfbb907b$export$bebd5a1431fec25d=I;exports.$d4ee10de306f2510$export$4282f70798064fe0=A;exports.$d4ee10de306f2510$export$cd4e5573fbe2b576=P;exports.$d4ee10de306f2510$export$e58f029f0fbfdb29=F;exports.$f4e2df6bd15f8569$export$1b00cb14a96194e6=M;exports.$f4e2df6bd15f8569$export$98658e8c59125e6a=b;
|