@midas-ds/components 12.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AccordionItem-C9dBt-tQ.js +335 -0
- package/AccordionItem-SOfjXh3V.cjs +1 -0
- package/{BadgeContainer-DGJGJMPi.js → BadgeContainer-iNNgJKD9.js} +8 -8
- package/BadgeContainer-su0iCJKy.cjs +1 -0
- package/Breadcrumbs-BAHJMPsu.js +271 -0
- package/Breadcrumbs-DUcHHI_2.cjs +1 -0
- package/Button-CMIbSc4-.cjs +1 -0
- package/{Button-DtC_ZOyd.js → Button-DD5_S-tD.js} +155 -161
- package/{Button-akT6Hvug.js → Button-DYcmg49Z.js} +2 -2
- package/{Button-DQm2iqKU.cjs → Button-DrL5Jv-s.cjs} +1 -1
- package/Button.module-BNLcvARn.cjs +1 -0
- package/Button.module-Bax2YU6N.js +14 -0
- package/ButtonGroup-ClYTgaRc.cjs +1 -0
- package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
- package/CHANGELOG.md +65 -0
- package/Card-BDDyGAMA.js +131 -0
- package/Card-mj5lCIR4.cjs +1 -0
- package/{CharacterCounter-DQJVM-mZ.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
- package/CharacterCounter-DT7A0wWP.js +22 -0
- package/Checkbox-BtM2rFh9.js +278 -0
- package/Checkbox-CvdIG43J.cjs +1 -0
- package/CheckboxGroup-C94as9Xt.cjs +1 -0
- package/CheckboxGroup-CjcDYBRk.js +157 -0
- package/Collection-B0_WAieZ.js +625 -0
- package/Collection-BvWp2xBd.cjs +1 -0
- package/{ColorSchemeSwitch-DyZ9FAKG.js → ColorSchemeSwitch-C4PMYeD5.js} +20 -28
- package/{ColorSchemeSwitch-DtyJ9-5B.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +3 -3
- package/ComboBox-B2EmfOyr.cjs +1 -0
- package/{ComboBox-Dn3tQzri.js → ComboBox-BWXJZyOR.js} +522 -507
- package/DateField-CcQJYDLD.js +47 -0
- package/DateField-IpCiF81R.cjs +1 -0
- package/{DateInputDivider-CJEGWmG0.js → DateInputDivider-CXkUdlzc.js} +936 -839
- package/DateInputDivider-Cf5GZHlM.cjs +1 -0
- package/DateRangePicker-B2BJO1KC.js +889 -0
- package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
- package/Dialog-B8swxl24.js +1643 -0
- package/Dialog-DR6nEqMT.cjs +1 -0
- package/Dialog-DgJobm71.cjs +1 -0
- package/Dialog-P3frHOdq.js +240 -0
- package/DragAndDrop-Dw8JZmrn.cjs +1 -0
- package/DragAndDrop-PrUJv--B.js +75 -0
- package/{Dropdown-BWbdSQ9U.js → Dropdown-CIvWpN3v.js} +8 -8
- package/{Dropdown-CJ-sujKv.cjs → Dropdown-DJ2vWAqk.cjs} +2 -2
- package/FieldError-Cornph2A.cjs +1 -0
- package/FieldError-DdvFyIf4.js +48 -0
- package/{FileUpload-B89QfnCB.js → FileUpload-D2gnQKdn.js} +76 -74
- package/{FileUpload-KQ1XAKAc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
- package/{FocusScope-CEgd3xCY.js → FocusScope-Bj40Ir-g.js} +192 -195
- package/FocusScope-Uy3DiY0-.cjs +1 -0
- package/{Grid-Db5wZrw6.cjs → Grid-WbEkSCGh.cjs} +1 -1
- package/{Grid-B2av0vt8.js → Grid-s8ovKDi8.js} +1 -1
- package/GridItem-CIVF1fRW.cjs +1 -0
- package/GridItem-D3FZyyO-.js +243 -0
- package/{Group-Cdy6z9ra.cjs → Group-BKYGeOBr.cjs} +1 -1
- package/{Group-B3mRMVy7.js → Group-C73mD_-i.js} +13 -13
- package/Heading-BQlmb5Tm.js +46 -0
- package/Heading-D3FR_KXb.cjs +1 -0
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/InfoBanner-CqjnTYaa.cjs +1 -0
- package/InfoBanner-CrA8MS3v.js +83 -0
- package/{Input-BnpBRnJz.js → Input-BLVRv0FK.js} +9 -9
- package/{Input-DIhhWEPW.cjs → Input-CzMx2mfl.cjs} +1 -1
- package/{Label-ByWt6Lfh.js → Label-BG7G0iyG.js} +24 -28
- package/Label-C00qz3kQ.cjs +1 -0
- package/Layout-Bta_Cpq_.cjs +16 -0
- package/Layout-CG-Qxr_1.js +482 -0
- package/{Link-Dnnv00g9.js → Link-BtxKZ0h3.js} +16 -16
- package/Link-Bx6avHVl.cjs +6 -0
- package/Link-CbFSuEI1.js +73 -0
- package/Link-wM7cVPlS.cjs +1 -0
- package/LinkButton-BvXu6vAH.cjs +6 -0
- package/LinkButton-D3EnZ65v.js +69 -0
- package/ListBox-ICZKGluC.cjs +1 -0
- package/ListBox-LncMQt6I.js +523 -0
- package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
- package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
- package/ListBoxSection-BCPv9H50.js +1085 -0
- package/ListBoxSection-Dx75ZinL.cjs +1 -0
- package/{ListKeyboardDelegate-mcrZobNa.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
- package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
- package/{Logo-BW5NXAdu.cjs → Logo-CFjZc5u2.cjs} +1 -1
- package/{Logo-qkVS1MCN.js → Logo-DkagDdKQ.js} +15 -19
- package/OverlayArrow-ByH6lM-H.cjs +1 -0
- package/OverlayArrow-CvNuu3e3.js +519 -0
- package/{Popover-C5chAY42.cjs → Popover-Bi5yJEoE.cjs} +1 -1
- package/{Popover-viLqHHX2.js → Popover-CyEVqpJ6.js} +11 -11
- package/{PressResponder-B_Zqu7b1.js → PressResponder-CxVtArtP.js} +9 -9
- package/PressResponder-DbnYqwGB.cjs +1 -0
- package/ProgressBar-CdXHEJh6.js +53 -0
- package/ProgressBar-CjuHokVZ.cjs +1 -0
- package/Radio-Bll-7H8O.cjs +1 -0
- package/Radio-DoWx2AE1.js +333 -0
- package/RangeCalendar-A4WQIG7P.cjs +6 -0
- package/{RangeCalendar-DGGMbb0j.js → RangeCalendar-D7eFVAPP.js} +638 -630
- package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
- package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
- package/{SearchField-Ma3KB8Em.cjs → SearchField-BbrUZpQm.cjs} +2 -2
- package/{SearchField-B0dlPqsW.js → SearchField-F2FKgYds.js} +29 -33
- package/Select-BnbDXwgD.cjs +1 -0
- package/Select-Dpi3LhbI.js +654 -0
- package/{SelectionManager-BdKKuso-.js → SelectionManager-Bq-Gw1UT.js} +291 -282
- package/SelectionManager-BtbHoHpA.cjs +1 -0
- package/Separator-CM0KPvsX.js +105 -0
- package/Separator-Cfv2pbWf.cjs +1 -0
- package/Separator-DH-5wu9X.js +77 -0
- package/Separator-Dgin8BNW.cjs +1 -0
- package/Skeleton-BpYj25p8.js +37 -0
- package/Skeleton-DMOxEwnd.cjs +1 -0
- package/Spinner-D1UBuLy4.cjs +6 -0
- package/Spinner-DTKb_LAA.js +47 -0
- package/TabList-D4WwgQY3.cjs +1 -0
- package/TabList-D9tl2s85.js +397 -0
- package/Table-C6k3PiiC.cjs +16 -0
- package/{Table-CTS0J_sQ.js → Table-CkN3y69S.js} +856 -798
- package/Tag-7dHEMQum.cjs +1 -0
- package/Tag-BUJ20HHw.js +765 -0
- package/Text-BAFsaON-.cjs +1 -0
- package/{Text--KL3Auo7.js → Text-Be7WIOwv.js} +3 -3
- package/{Text-wuw0HQoa.cjs → Text-BtPiT2P1.cjs} +1 -1
- package/Text-CmlsaWMA.js +32 -0
- package/TextArea-BCikUXaD.cjs +1 -0
- package/TextArea-h5_oBQH1.js +125 -0
- package/TextField-Bm5916AD.cjs +1 -0
- package/TextField-_UY8CXtW.js +134 -0
- package/TextField.module-C9Zm9unF.js +13 -0
- package/TextField.module-GTQtNO0r.cjs +1 -0
- package/{Toast-BnzpC_5v.js → Toast-BBkWczCk.js} +202 -214
- package/{Toast-BEh5yYzO.cjs → Toast-DclaxvZM.cjs} +1 -1
- package/ToggleButtonGroup-BGG64PK1.js +214 -0
- package/ToggleButtonGroup-Da330GRT.cjs +1 -0
- package/Tooltip-BHAtsp9k.js +281 -0
- package/Tooltip-CZa9n5sT.cjs +1 -0
- package/{VisuallyHidden-BKslUoMJ.js → VisuallyHidden-CGEtjAP7.js} +8 -8
- package/{VisuallyHidden-DxDOcIsh.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/BadgeContainer.css +1 -1
- package/assets/Breadcrumbs.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/ButtonGroup.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/CharacterCounter.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Dropdown.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/GridItem.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Logo.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -0
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/ToggleButtonGroup.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/theme.css +1 -1
- package/assets/variables.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/chevron-right-0-sUFBiR.cjs +6 -0
- package/chevron-right-BYYHEJjK.js +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.d.ts +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +4 -2
- package/{context-Dl_saGB6.js → context-CGNJ3grH.js} +11 -11
- package/{context-UOrD6Zxk.cjs → context-Df3XbgBG.cjs} +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +18 -0
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/filterDOMProps-RRlKPKX0.cjs +1 -0
- package/filterDOMProps-wsa9OcNI.js +65 -0
- package/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BSMrH_Du.js → index-BLPblar-.js} +33 -30
- package/{index-D97L3EBk.cjs → index-DSFSh2sC.cjs} +3 -3
- package/index.cjs +1 -1
- package/index.d.ts +2 -0
- package/index.js +140 -125
- package/inertValue-B3AFhVG4.cjs +1 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +6 -5
- package/list-box/intl/translations.json.d.ts +11 -0
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/Menu.d.ts +13 -0
- package/menu/MenuItem.d.ts +5 -0
- package/menu/MenuPopover.d.ts +3 -0
- package/menu/MenuSection.d.ts +3 -0
- package/menu/Separator.d.ts +3 -0
- package/menu/index.cjs +1 -0
- package/menu/index.d.ts +5 -0
- package/menu/index.js +8 -0
- package/mergeProps-BSsN7Bgk.js +117 -0
- package/mergeProps-JhcJ7uJL.cjs +1 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +6 -4
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/Input.d.ts +7 -2
- package/textfield/PasswordField.d.ts +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/generated-object.d.ts +384 -0
- package/theme/generated-tokens.d.ts +334 -0
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +4 -1
- package/theme/index.js +4037 -14
- package/theme/tokens.d.ts +30 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/{tokens-BWo7EvNX.cjs → tokens-B3FfJ-rY.cjs} +1 -1
- package/{tokens-BtEBd3jO.js → tokens-B9ooUP4g.js} +1 -2
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/useButton-D6iUB8cN.js +56 -0
- package/useButton-R8-i3HLC.cjs +1 -0
- package/useDateFormatter-2B0vgHc-.cjs +1 -0
- package/{useDateFormatter-DiIUdTak.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
- package/{useDescription-LmB1V4Tg.js → useDescription-BLmIkYCq.js} +1 -1
- package/{useDescription-ByNlNIRU.cjs → useDescription-BMuiAqI5.cjs} +1 -1
- package/useEvent-3ZO5TPSH.cjs +1 -0
- package/{useEvent-DqWz89vg.js → useEvent-DpBHTuHJ.js} +1 -1
- package/{useField-5CEdtfab.js → useField-BMegM8fA.js} +2 -2
- package/{useField-CoQAzygg.cjs → useField-DyeD7MLj.cjs} +1 -1
- package/{useFilter-BKQT28sh.js → useFilter-BFnSe_Eq.js} +1 -1
- package/{useFilter-Bjh5dq2Q.cjs → useFilter-aoggM85n.cjs} +1 -1
- package/{useFocusRing-BM-zcH6L.cjs → useFocusRing-BcbYske2.cjs} +1 -1
- package/{useFocusRing-HoJn20X5.js → useFocusRing-DMo8ctYV.js} +2 -2
- package/{useFocusWithin-Cn18Myw6.js → useFocusWithin-ClMkhYcq.js} +1 -1
- package/{useFocusWithin-o0WjCpEB.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
- package/{useFocusable-DbmryjUH.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
- package/{useFocusable-ZjCKo1ed.js → useFocusable-DXlMChFC.js} +14 -14
- package/useFormValidation-BQIRxgbU.cjs +1 -0
- package/useFormValidation-L0UHvOsP.js +217 -0
- package/{useHasTabbableChild-CyOmqumh.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
- package/useHasTabbableChild-CJcLnolh.cjs +1 -0
- package/{useHighlightSelectionDescription-DTxHtOsw.js → useHighlightSelectionDescription-BkEv9Jye.js} +5 -5
- package/{useHighlightSelectionDescription-DAhPdEG6.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
- package/{useHover-D8fja4GW.js → useHover-D6bNIkU0.js} +81 -79
- package/useHover-DGAmG7jt.cjs +1 -0
- package/{useLabels-BtDN_ALM.cjs → useLabels-CvUk-yS3.cjs} +1 -1
- package/{useLabels-DZlvh4P4.js → useLabels-Kmq5JCp_.js} +1 -1
- package/useListState-D2IEg6_e.cjs +1 -0
- package/{useListState-e7cL-FOK.js → useListState-pixYqSLl.js} +43 -42
- package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-BO2iZEL0.cjs} +1 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
- package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-N0AyjzbM.js} +1 -1
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-CicXV7UO.cjs +7 -0
- package/{usePress-B_jgTf4k.js → usePress-DMUpU0GU.js} +84 -80
- package/{useSingleSelectListState-D7LjjoUJ.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
- package/{useSingleSelectListState-BiJMNaOl.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
- package/useTextField-BC5X_AO_.js +89 -0
- package/useTextField-Cxpfu0U3.cjs +1 -0
- package/useToggleState-BVOqL4hI.js +21 -0
- package/useToggleState-SqDyNfRi.cjs +1 -0
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/utils/types.d.ts +4 -0
- package/{utils-BM2vxlNA.cjs → utils-CMHKYKlz.cjs} +1 -1
- package/{utils-KYuflGZt.js → utils-Cpcjg55U.js} +10 -10
- package/utils-DFIwp4PB.js +262 -0
- package/utils-__vrf9VZ.cjs +1 -0
- package/AccordionItem-DEiRuizp.js +0 -361
- package/AccordionItem-Dhr7uo8u.cjs +0 -1
- package/BadgeContainer-CxVmqJ7g.cjs +0 -1
- package/Breadcrumbs-CEyKlcGU.js +0 -262
- package/Breadcrumbs-CnGzvtbn.cjs +0 -1
- package/Button-DZzQGk-L.cjs +0 -1
- package/Button.module-D-mPLRxe.js +0 -14
- package/Button.module-goCEz5qs.cjs +0 -1
- package/ButtonGroup-DUqW5dzM.cjs +0 -1
- package/Card-CwwVnA_a.js +0 -131
- package/Card-DPfOZC7f.cjs +0 -1
- package/CharacterCounter-DPphWPzA.js +0 -22
- package/Checkbox-BN_3F2Hl.js +0 -264
- package/Checkbox-CZtCj4yR.cjs +0 -1
- package/CheckboxGroup--xgOT1Do.js +0 -159
- package/CheckboxGroup-DGHaqRvb.cjs +0 -1
- package/Collection-B1xL4EdF.cjs +0 -1
- package/Collection-C5vE9MtJ.js +0 -577
- package/ComboBox-UadZMhiR.cjs +0 -1
- package/DateField-CNEoLyf5.cjs +0 -1
- package/DateField-CZmLugT0.js +0 -47
- package/DateInputDivider-CCjiq90K.cjs +0 -1
- package/DateRangePicker-DhgLEa9P.cjs +0 -6
- package/DateRangePicker-WQ97Psz7.js +0 -870
- package/Dialog-BT0tVGQb.cjs +0 -1
- package/Dialog-BuJdAr0D.js +0 -1611
- package/Dialog-DYK8lySl.cjs +0 -1
- package/Dialog-L53DWF0Z.js +0 -220
- package/DragAndDrop-DKxsUpmW.js +0 -60
- package/DragAndDrop-Dgfq6uJ0.cjs +0 -1
- package/FieldError-BlKkw9YL.js +0 -46
- package/FieldError-BvU0sueN.cjs +0 -1
- package/FocusScope-CAgWgk3N.cjs +0 -1
- package/GridItem-BnyULDnc.cjs +0 -1
- package/GridItem-orSzD7H5.js +0 -243
- package/Heading-DDhdwRAW.js +0 -46
- package/Heading-OUPkdoEJ.cjs +0 -1
- package/InfoBanner-DpLcq_1R.cjs +0 -1
- package/InfoBanner-U5hxOipC.js +0 -99
- package/Label-COpr4xVt.cjs +0 -1
- package/Layout-BR3Or1Ga.cjs +0 -16
- package/Layout-Bdqauktv.js +0 -498
- package/Link-CM2N5Jq-.js +0 -72
- package/Link-Dq8IFDBx.cjs +0 -6
- package/Link-ceVlGaWQ.cjs +0 -1
- package/LinkButton-BJA9_HzL.cjs +0 -6
- package/LinkButton-DH3Nfdis.js +0 -69
- package/ListBox-D0u9svwm.cjs +0 -1
- package/ListBox-y_dw__MI.js +0 -531
- package/ListBoxButton-C2zp-gXD.cjs +0 -1
- package/ListBoxButton-DiseS_LX.js +0 -15
- package/ListBoxSection-Cv-gN76G.js +0 -1058
- package/ListBoxSection-DtsigmC1.cjs +0 -1
- package/ListKeyboardDelegate-fZKXmHAk.cjs +0 -1
- package/OverlayArrow-8praV_Xy.cjs +0 -1
- package/OverlayArrow-DfkRZlgG.js +0 -507
- package/PressResponder-Bm3_RM9c.cjs +0 -1
- package/ProgressBar-D5mNQTID.cjs +0 -1
- package/ProgressBar-wQirOG1N.js +0 -53
- package/Radio-BIomn_sP.js +0 -313
- package/Radio-CxvJ5Wrl.cjs +0 -1
- package/RangeCalendar-BvvZ2SBj.cjs +0 -11
- package/Select-769RSZ9V.js +0 -664
- package/Select-Go5x0zWl.cjs +0 -1
- package/SelectionManager-BvREZgeu.cjs +0 -1
- package/Separator-CggS0R7Q.js +0 -59
- package/Separator-DBsDhqCr.cjs +0 -1
- package/Skeleton-BAwbfKBW.cjs +0 -1
- package/Skeleton-BePDRmrO.js +0 -40
- package/Spinner-AXFRWuT6.js +0 -51
- package/Spinner-yHx_DX_4.cjs +0 -6
- package/TabList-0gj27e_e.js +0 -386
- package/TabList-Cqpup53E.cjs +0 -1
- package/Table-BhtlNY9P.cjs +0 -16
- package/Tag-B9M-nBTM.js +0 -748
- package/Tag-DkW6zaIS.cjs +0 -1
- package/Text-BUDAzDjW.js +0 -32
- package/Text-DA_gK6a2.cjs +0 -1
- package/TextArea-CSrrYY05.cjs +0 -1
- package/TextArea-DphcH6wE.js +0 -119
- package/TextField-CsyRTSEG.js +0 -120
- package/TextField-P5yICj5z.cjs +0 -1
- package/TextField.module-BcpPBWnD.js +0 -13
- package/TextField.module-Dw5Rtn9y.cjs +0 -1
- package/ToggleButtonGroup-BwFAhFEi.cjs +0 -1
- package/ToggleButtonGroup-CuxAKB3-.js +0 -211
- package/Tooltip-Bz0xCZSw.cjs +0 -1
- package/Tooltip-EuEQtHZj.js +0 -285
- package/filterDOMProps-BS2lrgFA.cjs +0 -1
- package/filterDOMProps-D6KHYVBX.js +0 -24
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/mergeProps-BYJQ6N1s.js +0 -115
- package/mergeProps-C7Sx47fA.cjs +0 -1
- package/useButton-CWHoXYnj.js +0 -47
- package/useButton-CwOQUGtY.cjs +0 -1
- package/useDateFormatter-bzjwqA2K.cjs +0 -1
- package/useEvent-CGRyLM2c.cjs +0 -1
- package/useFormValidation-BW2NSTM4.js +0 -215
- package/useFormValidation-DSRwb9US.cjs +0 -1
- package/useHasTabbableChild-CogBR_6o.cjs +0 -1
- package/useHover-CaFzQrR_.cjs +0 -1
- package/useListState-TtWy_rDI.cjs +0 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BOGIOlm8.cjs +0 -7
- package/useTextField-BVIOd8Ld.cjs +0 -1
- package/useTextField-DFkSHoQN.js +0 -86
- package/useToggleState-Bz5rAf4C.js +0 -18
- package/useToggleState-DoIkSQdj.cjs +0 -1
- package/utils-C5-CzvX2.cjs +0 -1
- package/utils-CuqJqFqQ.js +0 -234
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as p, jsxs as
|
|
2
|
-
import { B as
|
|
3
|
-
import
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { c as
|
|
6
|
-
import { i as
|
|
7
|
-
import { s as N } from "./index-
|
|
8
|
-
import { $ as
|
|
9
|
-
import { m as E } from "./utils-
|
|
10
|
-
import { $ as
|
|
11
|
-
import { $ as Ne } from "./useFocusWithin-
|
|
12
|
-
import { $ as
|
|
13
|
-
import { $ as
|
|
14
|
-
import { X as
|
|
15
|
-
import './assets/Toast.css';const S = 1,
|
|
1
|
+
import { jsx as p, jsxs as _, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import { B as Le } from "./Button-DYcmg49Z.js";
|
|
3
|
+
import A, { useState as g, useCallback as w, useEffect as T, useRef as v, useMemo as _e } from "react";
|
|
4
|
+
import { createPortal as we, flushSync as Be } from "react-dom";
|
|
5
|
+
import { c as I } from "./clsx-OuTLNxxd.js";
|
|
6
|
+
import { i as ye } from "./icon-map-uS87FT_Q.js";
|
|
7
|
+
import { s as N } from "./index-BLPblar-.js";
|
|
8
|
+
import { $ as F, c as Ie, b as Ce, d as Pe, a as Ae } from "./mergeProps-BSsN7Bgk.js";
|
|
9
|
+
import { m as E } from "./utils-DFIwp4PB.js";
|
|
10
|
+
import { $ as ge, f as B } from "./useHover-D6bNIkU0.js";
|
|
11
|
+
import { $ as Ne } from "./useFocusWithin-ClMkhYcq.js";
|
|
12
|
+
import { $ as D } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
|
|
13
|
+
import { $ as Fe } from "./filterDOMProps-wsa9OcNI.js";
|
|
14
|
+
import { X as De } from "./x-C2xUHAEl.js";
|
|
15
|
+
import './assets/Toast.css';const S = 1, y = Symbol.for("react-aria-landmark-manager");
|
|
16
16
|
function Se(t) {
|
|
17
17
|
return document.addEventListener("react-aria-landmark-manager-change", t), () => document.removeEventListener("react-aria-landmark-manager-change", t);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function P() {
|
|
20
20
|
if (typeof document > "u") return null;
|
|
21
|
-
let t = document[
|
|
22
|
-
return t && t.version >= S ? t : (document[
|
|
21
|
+
let t = document[y];
|
|
22
|
+
return t && t.version >= S ? t : (document[y] = new ze(), document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")), document[y]);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
return N.useSyncExternalStore(Se,
|
|
24
|
+
function Re() {
|
|
25
|
+
return N.useSyncExternalStore(Se, P, P);
|
|
26
26
|
}
|
|
27
|
-
class
|
|
27
|
+
class ze {
|
|
28
28
|
setupIfNeeded() {
|
|
29
29
|
this.isListening || (document.addEventListener("keydown", this.f6Handler, {
|
|
30
30
|
capture: !0
|
|
@@ -44,8 +44,8 @@ class Re {
|
|
|
44
44
|
}), this.isListening = !1);
|
|
45
45
|
}
|
|
46
46
|
focusLandmark(e, n) {
|
|
47
|
-
var
|
|
48
|
-
(
|
|
47
|
+
var u, i;
|
|
48
|
+
(i = this.landmarks.find((o) => o.ref.current === e)) === null || i === void 0 || (u = i.focus) === null || u === void 0 || u.call(i, n);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Return set of landmarks with a specific role.
|
|
@@ -60,22 +60,22 @@ class Re {
|
|
|
60
60
|
return this.landmarks.find((n) => n.role === e);
|
|
61
61
|
}
|
|
62
62
|
addLandmark(e) {
|
|
63
|
-
if (this.setupIfNeeded(), this.landmarks.find((
|
|
64
|
-
if (this.landmarks.filter((
|
|
63
|
+
if (this.setupIfNeeded(), this.landmarks.find((i) => i.ref === e.ref) || !e.ref.current) return;
|
|
64
|
+
if (this.landmarks.filter((i) => i.role === "main").length > 1 && process.env.NODE_ENV !== "production" && console.error('Page can contain no more than one landmark with the role "main".'), this.landmarks.length === 0) {
|
|
65
65
|
this.landmarks = [
|
|
66
66
|
e
|
|
67
67
|
], this.checkLabels(e.role);
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
let n = 0,
|
|
71
|
-
for (; n <=
|
|
72
|
-
let
|
|
73
|
-
!!(
|
|
70
|
+
let n = 0, u = this.landmarks.length - 1;
|
|
71
|
+
for (; n <= u; ) {
|
|
72
|
+
let i = Math.floor((n + u) / 2), o = e.ref.current.compareDocumentPosition(this.landmarks[i].ref.current);
|
|
73
|
+
!!(o & Node.DOCUMENT_POSITION_PRECEDING || o & Node.DOCUMENT_POSITION_CONTAINS) ? n = i + 1 : u = i - 1;
|
|
74
74
|
}
|
|
75
75
|
this.landmarks.splice(n, 0, e), this.checkLabels(e.role);
|
|
76
76
|
}
|
|
77
77
|
updateLandmark(e) {
|
|
78
|
-
let n = this.landmarks.findIndex((
|
|
78
|
+
let n = this.landmarks.findIndex((u) => u.ref === e.ref);
|
|
79
79
|
n >= 0 && (this.landmarks[n] = {
|
|
80
80
|
...this.landmarks[n],
|
|
81
81
|
...e
|
|
@@ -93,15 +93,15 @@ class Re {
|
|
|
93
93
|
checkLabels(e) {
|
|
94
94
|
let n = this.getLandmarksByRole(e);
|
|
95
95
|
if (n.size > 1) {
|
|
96
|
-
let
|
|
96
|
+
let u = [
|
|
97
97
|
...n
|
|
98
|
-
].filter((
|
|
99
|
-
if (
|
|
98
|
+
].filter((i) => !i.label);
|
|
99
|
+
if (u.length > 0 && process.env.NODE_ENV !== "production") console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `, u.map((i) => i.ref.current));
|
|
100
100
|
else if (process.env.NODE_ENV !== "production") {
|
|
101
|
-
let
|
|
101
|
+
let i = [
|
|
102
102
|
...n
|
|
103
103
|
].map((r) => r.label);
|
|
104
|
-
|
|
104
|
+
i.filter((r, a) => i.indexOf(r) !== a).forEach((r) => {
|
|
105
105
|
console.warn(`Page contains more than one landmark with the '${e}' role and '${r}' label. If two or more landmarks on a page share the same role, they must have unique labels: `, [
|
|
106
106
|
...n
|
|
107
107
|
].filter((a) => a.label === r).map((a) => a.ref.current));
|
|
@@ -114,12 +114,12 @@ class Re {
|
|
|
114
114
|
* Returns undefined if no parent is a landmark.
|
|
115
115
|
*/
|
|
116
116
|
closestLandmark(e) {
|
|
117
|
-
let n = new Map(this.landmarks.map((
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
])),
|
|
121
|
-
for (;
|
|
122
|
-
return n.get(
|
|
117
|
+
let n = new Map(this.landmarks.map((i) => [
|
|
118
|
+
i.ref.current,
|
|
119
|
+
i
|
|
120
|
+
])), u = e;
|
|
121
|
+
for (; u && !n.has(u) && u !== document.body && u.parentElement; ) u = u.parentElement;
|
|
122
|
+
return n.get(u);
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Gets the next landmark, in DOM focus order, or previous if backwards is specified.
|
|
@@ -128,11 +128,11 @@ class Re {
|
|
|
128
128
|
* Returns undefined if there are no landmarks.
|
|
129
129
|
*/
|
|
130
130
|
getNextLandmark(e, { backward: n }) {
|
|
131
|
-
var
|
|
132
|
-
let
|
|
133
|
-
|
|
131
|
+
var u;
|
|
132
|
+
let i = this.closestLandmark(e), o = n ? this.landmarks.length - 1 : 0;
|
|
133
|
+
i && (o = this.landmarks.indexOf(i) + (n ? -1 : 1));
|
|
134
134
|
let r = () => {
|
|
135
|
-
if (
|
|
135
|
+
if (o < 0) {
|
|
136
136
|
if (!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation", {
|
|
137
137
|
detail: {
|
|
138
138
|
direction: "backward"
|
|
@@ -140,8 +140,8 @@ class Re {
|
|
|
140
140
|
bubbles: !0,
|
|
141
141
|
cancelable: !0
|
|
142
142
|
}))) return !0;
|
|
143
|
-
|
|
144
|
-
} else if (
|
|
143
|
+
o = this.landmarks.length - 1;
|
|
144
|
+
} else if (o >= this.landmarks.length) {
|
|
145
145
|
if (!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation", {
|
|
146
146
|
detail: {
|
|
147
147
|
direction: "forward"
|
|
@@ -149,17 +149,17 @@ class Re {
|
|
|
149
149
|
bubbles: !0,
|
|
150
150
|
cancelable: !0
|
|
151
151
|
}))) return !0;
|
|
152
|
-
|
|
152
|
+
o = 0;
|
|
153
153
|
}
|
|
154
|
-
return
|
|
154
|
+
return o < 0 || o >= this.landmarks.length;
|
|
155
155
|
};
|
|
156
156
|
if (r()) return;
|
|
157
|
-
let a =
|
|
158
|
-
for (; !((
|
|
159
|
-
if (
|
|
160
|
-
if (
|
|
157
|
+
let a = o;
|
|
158
|
+
for (; !((u = this.landmarks[o].ref.current) === null || u === void 0) && u.closest("[aria-hidden=true]"); ) {
|
|
159
|
+
if (o += n ? -1 : 1, r()) return;
|
|
160
|
+
if (o === a) break;
|
|
161
161
|
}
|
|
162
|
-
return this.landmarks[
|
|
162
|
+
return this.landmarks[o];
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
165
|
* Look at next landmark. If an element was previously focused inside, restore focus there.
|
|
@@ -174,16 +174,16 @@ class Re {
|
|
|
174
174
|
return e && e.ref.current && document.contains(e.ref.current) ? (this.focusLandmark(e.ref.current, "forward"), !0) : !1;
|
|
175
175
|
}
|
|
176
176
|
navigate(e, n) {
|
|
177
|
-
let
|
|
177
|
+
let u = this.getNextLandmark(e, {
|
|
178
178
|
backward: n
|
|
179
179
|
});
|
|
180
|
-
if (!
|
|
181
|
-
if (
|
|
182
|
-
let
|
|
183
|
-
if (document.body.contains(
|
|
184
|
-
return
|
|
180
|
+
if (!u) return !1;
|
|
181
|
+
if (u.lastFocused) {
|
|
182
|
+
let i = u.lastFocused;
|
|
183
|
+
if (document.body.contains(i))
|
|
184
|
+
return i.focus(), !0;
|
|
185
185
|
}
|
|
186
|
-
return
|
|
186
|
+
return u.ref.current && document.contains(u.ref.current) ? (this.focusLandmark(u.ref.current, n ? "backward" : "forward"), !0) : !1;
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
189
|
* Sets lastFocused for a landmark, if focus is moved within that landmark.
|
|
@@ -195,36 +195,36 @@ class Re {
|
|
|
195
195
|
ref: n.ref,
|
|
196
196
|
lastFocused: e.target
|
|
197
197
|
});
|
|
198
|
-
let
|
|
199
|
-
if (
|
|
200
|
-
let
|
|
201
|
-
|
|
198
|
+
let u = e.relatedTarget;
|
|
199
|
+
if (u) {
|
|
200
|
+
let i = this.closestLandmark(u);
|
|
201
|
+
i && i.ref.current === u && i.blur();
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
205
|
* Track if the focus is lost to the body. If it is, do cleanup on the landmark that last had focus.
|
|
206
206
|
*/
|
|
207
207
|
focusoutHandler(e) {
|
|
208
|
-
let n = e.target,
|
|
209
|
-
if (!
|
|
210
|
-
let
|
|
211
|
-
|
|
208
|
+
let n = e.target, u = e.relatedTarget;
|
|
209
|
+
if (!u || u === document) {
|
|
210
|
+
let i = this.closestLandmark(n);
|
|
211
|
+
i && i.ref.current === n && i.blur();
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
createLandmarkController() {
|
|
215
215
|
let e = this;
|
|
216
216
|
return e.refCount++, e.setupIfNeeded(), {
|
|
217
|
-
navigate(n,
|
|
218
|
-
let
|
|
219
|
-
return e.navigate(
|
|
217
|
+
navigate(n, u) {
|
|
218
|
+
let i = (u == null ? void 0 : u.from) || document.activeElement;
|
|
219
|
+
return e.navigate(i, n === "backward");
|
|
220
220
|
},
|
|
221
221
|
focusNext(n) {
|
|
222
|
-
let
|
|
223
|
-
return e.navigate(
|
|
222
|
+
let u = (n == null ? void 0 : n.from) || document.activeElement;
|
|
223
|
+
return e.navigate(u, !1);
|
|
224
224
|
},
|
|
225
225
|
focusPrevious(n) {
|
|
226
|
-
let
|
|
227
|
-
return e.navigate(
|
|
226
|
+
let u = (n == null ? void 0 : n.from) || document.activeElement;
|
|
227
|
+
return e.navigate(u, !0);
|
|
228
228
|
},
|
|
229
229
|
focusMain() {
|
|
230
230
|
return e.focusMain();
|
|
@@ -242,33 +242,33 @@ class Re {
|
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
function Me(t, e) {
|
|
245
|
-
const { role: n, "aria-label":
|
|
246
|
-
let r =
|
|
245
|
+
const { role: n, "aria-label": u, "aria-labelledby": i, focus: o } = t;
|
|
246
|
+
let r = Re(), a = u || i, [b, d] = g(!1), f = w(() => {
|
|
247
247
|
d(!0);
|
|
248
248
|
}, [
|
|
249
249
|
d
|
|
250
|
-
]),
|
|
250
|
+
]), $ = w(() => {
|
|
251
251
|
d(!1);
|
|
252
252
|
}, [
|
|
253
253
|
d
|
|
254
254
|
]);
|
|
255
|
-
return
|
|
255
|
+
return F(() => {
|
|
256
256
|
if (r) return r.registerLandmark({
|
|
257
257
|
ref: e,
|
|
258
258
|
label: a,
|
|
259
259
|
role: n,
|
|
260
|
-
focus:
|
|
261
|
-
blur:
|
|
260
|
+
focus: o || f,
|
|
261
|
+
blur: $
|
|
262
262
|
});
|
|
263
263
|
}, [
|
|
264
264
|
r,
|
|
265
265
|
a,
|
|
266
266
|
e,
|
|
267
267
|
n,
|
|
268
|
-
|
|
268
|
+
o,
|
|
269
269
|
f,
|
|
270
|
-
|
|
271
|
-
]),
|
|
270
|
+
$
|
|
271
|
+
]), T(() => {
|
|
272
272
|
var s;
|
|
273
273
|
b && ((s = e.current) === null || s === void 0 || s.focus());
|
|
274
274
|
}, [
|
|
@@ -278,21 +278,21 @@ function Me(t, e) {
|
|
|
278
278
|
landmarkProps: {
|
|
279
279
|
role: n,
|
|
280
280
|
tabIndex: b ? -1 : void 0,
|
|
281
|
-
"aria-label":
|
|
282
|
-
"aria-labelledby":
|
|
281
|
+
"aria-label": u,
|
|
282
|
+
"aria-labelledby": i
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
|
|
286
|
+
var R = {};
|
|
287
|
+
R = {
|
|
288
288
|
close: "إغلاق",
|
|
289
289
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
290
290
|
one: () => `${e.number(t.count)} إشعار`,
|
|
291
291
|
other: () => `${e.number(t.count)} إشعارات`
|
|
292
292
|
})}.`
|
|
293
293
|
};
|
|
294
|
-
var
|
|
295
|
-
|
|
294
|
+
var z = {};
|
|
295
|
+
z = {
|
|
296
296
|
close: "Затвори",
|
|
297
297
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
298
298
|
one: () => `${e.number(t.count)} известие`,
|
|
@@ -331,16 +331,16 @@ V = {
|
|
|
331
331
|
other: () => `${e.number(t.count)} ειδοποιήσεις`
|
|
332
332
|
})}.`
|
|
333
333
|
};
|
|
334
|
-
var
|
|
335
|
-
|
|
334
|
+
var U = {};
|
|
335
|
+
U = {
|
|
336
336
|
close: "Close",
|
|
337
337
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
338
338
|
one: () => `${e.number(t.count)} notification`,
|
|
339
339
|
other: () => `${e.number(t.count)} notifications`
|
|
340
340
|
})}.`
|
|
341
341
|
};
|
|
342
|
-
var
|
|
343
|
-
|
|
342
|
+
var j = {};
|
|
343
|
+
j = {
|
|
344
344
|
close: "Cerrar",
|
|
345
345
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
346
346
|
one: () => `${e.number(t.count)} notificación`,
|
|
@@ -443,16 +443,16 @@ ne = {
|
|
|
443
443
|
other: () => `${e.number(t.count)} varsler`
|
|
444
444
|
})}.`
|
|
445
445
|
};
|
|
446
|
-
var
|
|
447
|
-
|
|
446
|
+
var ue = {};
|
|
447
|
+
ue = {
|
|
448
448
|
close: "Sluiten",
|
|
449
449
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
450
450
|
one: () => `${e.number(t.count)} melding`,
|
|
451
451
|
other: () => `${e.number(t.count)} meldingen`
|
|
452
452
|
})}.`
|
|
453
453
|
};
|
|
454
|
-
var
|
|
455
|
-
|
|
454
|
+
var ie = {};
|
|
455
|
+
ie = {
|
|
456
456
|
close: "Zamknij",
|
|
457
457
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
458
458
|
one: () => `${e.number(t.count)} powiadomienie`,
|
|
@@ -461,8 +461,8 @@ oe = {
|
|
|
461
461
|
other: () => `${e.number(t.count)} powiadomienia`
|
|
462
462
|
})}.`
|
|
463
463
|
};
|
|
464
|
-
var
|
|
465
|
-
|
|
464
|
+
var oe = {};
|
|
465
|
+
oe = {
|
|
466
466
|
close: "Fechar",
|
|
467
467
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
468
468
|
one: () => `${e.number(t.count)} notificação`,
|
|
@@ -544,32 +544,32 @@ me = {
|
|
|
544
544
|
other: () => `${e.number(t.count)} сповіщення`
|
|
545
545
|
})}.`
|
|
546
546
|
};
|
|
547
|
-
var
|
|
548
|
-
|
|
547
|
+
var $e = {};
|
|
548
|
+
$e = {
|
|
549
549
|
close: "关闭",
|
|
550
550
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
551
551
|
one: () => `${e.number(t.count)} 个通知`,
|
|
552
552
|
other: () => `${e.number(t.count)} 个通知`
|
|
553
553
|
})}。`
|
|
554
554
|
};
|
|
555
|
-
var
|
|
556
|
-
|
|
555
|
+
var he = {};
|
|
556
|
+
he = {
|
|
557
557
|
close: "關閉",
|
|
558
558
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
559
559
|
one: () => `${e.number(t.count)} 個通知`,
|
|
560
560
|
other: () => `${e.number(t.count)} 個通知`
|
|
561
561
|
})}。`
|
|
562
562
|
};
|
|
563
|
-
var
|
|
564
|
-
|
|
565
|
-
"ar-AE":
|
|
566
|
-
"bg-BG":
|
|
563
|
+
var C = {};
|
|
564
|
+
C = {
|
|
565
|
+
"ar-AE": R,
|
|
566
|
+
"bg-BG": z,
|
|
567
567
|
"cs-CZ": M,
|
|
568
568
|
"da-DK": O,
|
|
569
569
|
"de-DE": H,
|
|
570
570
|
"el-GR": V,
|
|
571
|
-
"en-US":
|
|
572
|
-
"es-ES":
|
|
571
|
+
"en-US": U,
|
|
572
|
+
"es-ES": j,
|
|
573
573
|
"et-EE": W,
|
|
574
574
|
"fi-FI": K,
|
|
575
575
|
"fr-FR": Z,
|
|
@@ -582,9 +582,9 @@ I = {
|
|
|
582
582
|
"lt-LT": ee,
|
|
583
583
|
"lv-LV": te,
|
|
584
584
|
"nb-NO": ne,
|
|
585
|
-
"nl-NL":
|
|
586
|
-
"pl-PL":
|
|
587
|
-
"pt-BR":
|
|
585
|
+
"nl-NL": ue,
|
|
586
|
+
"pl-PL": ie,
|
|
587
|
+
"pt-BR": oe,
|
|
588
588
|
"pt-PT": re,
|
|
589
589
|
"ro-RO": ae,
|
|
590
590
|
"ru-RU": se,
|
|
@@ -594,29 +594,29 @@ I = {
|
|
|
594
594
|
"sv-SE": fe,
|
|
595
595
|
"tr-TR": be,
|
|
596
596
|
"uk-UA": me,
|
|
597
|
-
"zh-CN":
|
|
598
|
-
"zh-TW":
|
|
597
|
+
"zh-CN": $e,
|
|
598
|
+
"zh-TW": he
|
|
599
599
|
};
|
|
600
600
|
function Oe(t) {
|
|
601
601
|
return t && t.__esModule ? t.default : t;
|
|
602
602
|
}
|
|
603
603
|
function He(t, e, n) {
|
|
604
|
-
let { key:
|
|
605
|
-
|
|
606
|
-
if (!(
|
|
607
|
-
return
|
|
608
|
-
|
|
604
|
+
let { key: u, timer: i, timeout: o } = t.toast;
|
|
605
|
+
T(() => {
|
|
606
|
+
if (!(i == null || o == null))
|
|
607
|
+
return i.reset(o), () => {
|
|
608
|
+
i.pause();
|
|
609
609
|
};
|
|
610
610
|
}, [
|
|
611
|
-
|
|
612
|
-
|
|
611
|
+
i,
|
|
612
|
+
o
|
|
613
613
|
]);
|
|
614
|
-
let r =
|
|
615
|
-
return
|
|
614
|
+
let r = Ie(), a = Ce(), b = D(Oe(C), "@react-aria/toast"), [d, f] = g(!1);
|
|
615
|
+
return T(() => {
|
|
616
616
|
f(!0);
|
|
617
617
|
}, []), {
|
|
618
618
|
toastProps: {
|
|
619
|
-
...
|
|
619
|
+
...Fe(t, {
|
|
620
620
|
labelable: !0
|
|
621
621
|
}),
|
|
622
622
|
role: "alertdialog",
|
|
@@ -638,31 +638,31 @@ function He(t, e, n) {
|
|
|
638
638
|
},
|
|
639
639
|
closeButtonProps: {
|
|
640
640
|
"aria-label": b.format("close"),
|
|
641
|
-
onPress: () => e.close(
|
|
641
|
+
onPress: () => e.close(u)
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
function Ve(t) {
|
|
646
646
|
return t && t.__esModule ? t.default : t;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
let
|
|
648
|
+
function Ue(t, e, n) {
|
|
649
|
+
let u = D(Ve(C), "@react-aria/toast"), { landmarkProps: i } = Me({
|
|
650
650
|
role: "region",
|
|
651
|
-
"aria-label": t["aria-label"] ||
|
|
651
|
+
"aria-label": t["aria-label"] || u.format("notifications", {
|
|
652
652
|
count: e.visibleToasts.length
|
|
653
653
|
})
|
|
654
|
-
}, n),
|
|
655
|
-
|
|
656
|
-
}), { hoverProps: b } =
|
|
654
|
+
}, n), o = v(!1), r = v(!1), a = Pe(() => {
|
|
655
|
+
o.current || r.current ? e.pauseAll() : e.resumeAll();
|
|
656
|
+
}), { hoverProps: b } = ge({
|
|
657
657
|
onHoverStart: () => {
|
|
658
|
-
|
|
658
|
+
o.current = !0, a();
|
|
659
659
|
},
|
|
660
660
|
onHoverEnd: () => {
|
|
661
|
-
|
|
661
|
+
o.current = !1, a();
|
|
662
662
|
}
|
|
663
|
-
}), d = v([]), f = v(e.visibleToasts),
|
|
664
|
-
|
|
665
|
-
if (
|
|
663
|
+
}), d = v([]), f = v(e.visibleToasts), $ = v(null);
|
|
664
|
+
F(() => {
|
|
665
|
+
if ($.current === -1 || e.visibleToasts.length === 0 || !n.current) {
|
|
666
666
|
d.current = [], f.current = e.visibleToasts;
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
@@ -675,15 +675,15 @@ function ze(t, e, n) {
|
|
|
675
675
|
let l = f.current.map((c, m) => ({
|
|
676
676
|
...c,
|
|
677
677
|
i: m,
|
|
678
|
-
isRemoved: !e.visibleToasts.some((
|
|
679
|
-
})),
|
|
680
|
-
if (
|
|
678
|
+
isRemoved: !e.visibleToasts.some((h) => c.key === h.key)
|
|
679
|
+
})), L = l.findIndex((c) => c.i === $.current && c.isRemoved);
|
|
680
|
+
if (L > -1) {
|
|
681
681
|
var k;
|
|
682
|
-
if (
|
|
682
|
+
if (B() === "pointer" && (!((k = s.current) === null || k === void 0) && k.isConnected)) E(s.current);
|
|
683
683
|
else {
|
|
684
|
-
let c = 0, m,
|
|
685
|
-
for (; c <=
|
|
686
|
-
l[c].isRemoved || (
|
|
684
|
+
let c = 0, m, h;
|
|
685
|
+
for (; c <= L; )
|
|
686
|
+
l[c].isRemoved || (h = Math.max(0, c - 1)), c++;
|
|
687
687
|
for (; c < l.length; ) {
|
|
688
688
|
if (!l[c].isRemoved) {
|
|
689
689
|
m = c - 1;
|
|
@@ -691,7 +691,7 @@ function ze(t, e, n) {
|
|
|
691
691
|
}
|
|
692
692
|
c++;
|
|
693
693
|
}
|
|
694
|
-
|
|
694
|
+
h === void 0 && m === void 0 && (h = 0), h >= 0 && h < d.current.length ? E(d.current[h]) : m >= 0 && m < d.current.length && E(d.current[m]);
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
f.current = e.visibleToasts;
|
|
@@ -708,19 +708,19 @@ function ze(t, e, n) {
|
|
|
708
708
|
r.current = !1, s.current = null, a();
|
|
709
709
|
}
|
|
710
710
|
});
|
|
711
|
-
return
|
|
711
|
+
return T(() => {
|
|
712
712
|
var l;
|
|
713
|
-
e.visibleToasts.length === 0 && (!((l = s.current) === null || l === void 0) && l.isConnected) && (
|
|
713
|
+
e.visibleToasts.length === 0 && (!((l = s.current) === null || l === void 0) && l.isConnected) && (B() === "pointer" ? E(s.current) : s.current.focus(), s.current = null);
|
|
714
714
|
}, [
|
|
715
715
|
n,
|
|
716
716
|
e.visibleToasts.length
|
|
717
|
-
]),
|
|
717
|
+
]), T(() => () => {
|
|
718
718
|
var l;
|
|
719
|
-
!((l = s.current) === null || l === void 0) && l.isConnected && (
|
|
719
|
+
!((l = s.current) === null || l === void 0) && l.isConnected && (B() === "pointer" ? E(s.current) : s.current.focus(), s.current = null);
|
|
720
720
|
}, [
|
|
721
721
|
n
|
|
722
722
|
]), {
|
|
723
|
-
regionProps:
|
|
723
|
+
regionProps: Ae(i, b, Ee, {
|
|
724
724
|
tabIndex: -1,
|
|
725
725
|
// Mark the toast region as a "top layer", so that it:
|
|
726
726
|
// - is not aria-hidden when opening an overlay
|
|
@@ -731,25 +731,25 @@ function ze(t, e, n) {
|
|
|
731
731
|
// listen to focus events separate from focuswithin because that will only fire once
|
|
732
732
|
// and we need to follow all focus changes
|
|
733
733
|
onFocus: (l) => {
|
|
734
|
-
let
|
|
735
|
-
|
|
734
|
+
let L = l.target.closest('[role="alertdialog"]');
|
|
735
|
+
$.current = d.current.findIndex((k) => k === L);
|
|
736
736
|
},
|
|
737
737
|
onBlur: () => {
|
|
738
|
-
|
|
738
|
+
$.current = -1;
|
|
739
739
|
}
|
|
740
740
|
})
|
|
741
741
|
};
|
|
742
742
|
}
|
|
743
743
|
function pe(t) {
|
|
744
|
-
let e =
|
|
744
|
+
let e = w((i) => t.subscribe(i), [
|
|
745
745
|
t
|
|
746
|
-
]), n =
|
|
746
|
+
]), n = w(() => t.visibleToasts, [
|
|
747
747
|
t
|
|
748
748
|
]);
|
|
749
749
|
return {
|
|
750
750
|
visibleToasts: N.useSyncExternalStore(e, n, n),
|
|
751
|
-
add: (
|
|
752
|
-
close: (
|
|
751
|
+
add: (i, o) => t.add(i, o),
|
|
752
|
+
close: (i) => t.close(i),
|
|
753
753
|
pauseAll: () => t.pauseAll(),
|
|
754
754
|
resumeAll: () => t.resumeAll()
|
|
755
755
|
};
|
|
@@ -764,22 +764,22 @@ class ve {
|
|
|
764
764
|
}
|
|
765
765
|
/** Adds a new toast to the queue. */
|
|
766
766
|
add(e, n = {}) {
|
|
767
|
-
let
|
|
767
|
+
let u = "_" + Math.random().toString(36).slice(2), i = {
|
|
768
768
|
...n,
|
|
769
769
|
content: e,
|
|
770
|
-
key:
|
|
771
|
-
timer: n.timeout ? new
|
|
770
|
+
key: u,
|
|
771
|
+
timer: n.timeout ? new je(() => this.close(u), n.timeout) : void 0
|
|
772
772
|
};
|
|
773
|
-
return this.queue.unshift(
|
|
773
|
+
return this.queue.unshift(i), this.updateVisibleToasts("add"), u;
|
|
774
774
|
}
|
|
775
775
|
/**
|
|
776
776
|
* Closes a toast.
|
|
777
777
|
*/
|
|
778
778
|
close(e) {
|
|
779
|
-
let n = this.queue.findIndex((
|
|
779
|
+
let n = this.queue.findIndex((o) => o.key === e);
|
|
780
780
|
if (n >= 0) {
|
|
781
|
-
var
|
|
782
|
-
(
|
|
781
|
+
var u, i;
|
|
782
|
+
(u = (i = this.queue[n]).onClose) === null || u === void 0 || u.call(i), this.queue.splice(n, 1);
|
|
783
783
|
}
|
|
784
784
|
this.updateVisibleToasts("remove");
|
|
785
785
|
}
|
|
@@ -805,7 +805,7 @@ class ve {
|
|
|
805
805
|
this.maxVisibleToasts = (n = e == null ? void 0 : e.maxVisibleToasts) !== null && n !== void 0 ? n : 1 / 0, this.wrapUpdate = e == null ? void 0 : e.wrapUpdate;
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
class
|
|
808
|
+
class je {
|
|
809
809
|
reset(e) {
|
|
810
810
|
this.remaining = e, this.resume();
|
|
811
811
|
}
|
|
@@ -821,21 +821,9 @@ class Ue {
|
|
|
821
821
|
this.startTime = null, this.remaining = n, this.callback = e;
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
const We = '"../theme/
|
|
825
|
-
|
|
826
|
-
"--
|
|
827
|
-
"--text-primary": "light-dark(#171717, #f2f2f2)",
|
|
828
|
-
"--support-background-success": "light-dark(#d5f2d9, light-dark(#f2f2f2, #262626))",
|
|
829
|
-
"--support-border-success": "light-dark(#008d3c, #008d3c)",
|
|
830
|
-
"--support-background-info": "light-dark(#eaf2f6, light-dark(#f2f2f2, #262626))",
|
|
831
|
-
"--support-border-info": "light-dark(#0066cc, #0066cc)",
|
|
832
|
-
"--support-background-important": "light-dark(#fff8e1, light-dark(#f2f2f2, #262626))",
|
|
833
|
-
"--support-border-important": "light-dark(#fdb813, #fdb813)",
|
|
834
|
-
"--support-border-warning": "light-dark(#e62323, #e62323)",
|
|
835
|
-
"--support-background-warning": "light-dark(#ffdfdf, light-dark(#f2f2f2, #262626))",
|
|
836
|
-
"--breakpoint-md": "(min-width: 768px)",
|
|
837
|
-
"--focus": "0 0 0 2px light-dark(white, black), 0 0 0 4px light-dark(black, white)",
|
|
838
|
-
"--z-index-toast": "1100",
|
|
824
|
+
const We = '"../theme/breakpoints.css"', Ke = "_toastRegion_1uufz_52", Ze = "_toast_1uufz_52", Ge = "_success_1uufz_95", Je = "_info_1uufz_103", Qe = "_important_1uufz_111", Xe = "_warning_1uufz_119", qe = "_icon_1uufz_127", Ye = "_toastContent_1uufz_137", et = "_toastMessage_1uufz_144", tt = "_slideInTop_1uufz_1", nt = "_slideInEnd_1uufz_1", ut = "_slideOutTop_1uufz_1", it = "_slideOutEnd_1uufz_1", x = {
|
|
825
|
+
breakpoints: We,
|
|
826
|
+
"--midas-breakpoints-md": "(min-width: 768px)",
|
|
839
827
|
toastRegion: Ke,
|
|
840
828
|
toast: Ze,
|
|
841
829
|
success: Ge,
|
|
@@ -847,26 +835,26 @@ const We = '"../theme/tokens.css"', Ke = "_toastRegion_jgjyx_52", Ze = "_toast_j
|
|
|
847
835
|
toastMessage: et,
|
|
848
836
|
slideInTop: tt,
|
|
849
837
|
slideInEnd: nt,
|
|
850
|
-
slideOutTop:
|
|
851
|
-
slideOutEnd:
|
|
838
|
+
slideOutTop: ut,
|
|
839
|
+
slideOutEnd: it
|
|
852
840
|
}, xe = {
|
|
853
841
|
wrapUpdate(t) {
|
|
854
842
|
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
855
|
-
|
|
843
|
+
Be(t);
|
|
856
844
|
}) : t();
|
|
857
845
|
},
|
|
858
846
|
maxVisibleToasts: 5
|
|
859
847
|
};
|
|
860
|
-
function
|
|
861
|
-
const { maxVisibleToasts: e = 1, wrapUpdate: n } = t,
|
|
848
|
+
function ot(t = {}) {
|
|
849
|
+
const { maxVisibleToasts: e = 1, wrapUpdate: n } = t, u = _e(
|
|
862
850
|
() => new ve({ maxVisibleToasts: e, wrapUpdate: n }),
|
|
863
851
|
[e, n]
|
|
864
852
|
);
|
|
865
|
-
return pe(
|
|
853
|
+
return pe(u);
|
|
866
854
|
}
|
|
867
|
-
const rt = new ve(xe),
|
|
855
|
+
const rt = new ve(xe), Tt = (t) => {
|
|
868
856
|
const e = pe(rt);
|
|
869
|
-
return e.visibleToasts.length > 0 ?
|
|
857
|
+
return e.visibleToasts.length > 0 ? we(
|
|
870
858
|
/* @__PURE__ */ p(
|
|
871
859
|
ke,
|
|
872
860
|
{
|
|
@@ -876,9 +864,9 @@ const rt = new ve(xe), gt = (t) => {
|
|
|
876
864
|
),
|
|
877
865
|
document.body
|
|
878
866
|
) : null;
|
|
879
|
-
},
|
|
880
|
-
const n =
|
|
881
|
-
return /* @__PURE__ */
|
|
867
|
+
}, Lt = ({ children: t, ...e }) => {
|
|
868
|
+
const n = ot(xe);
|
|
869
|
+
return /* @__PURE__ */ _(Te, { children: [
|
|
882
870
|
typeof t == "function" ? t(n) : t,
|
|
883
871
|
n.visibleToasts.length > 0 && /* @__PURE__ */ p(
|
|
884
872
|
ke,
|
|
@@ -894,20 +882,20 @@ function ke({
|
|
|
894
882
|
className: e,
|
|
895
883
|
...n
|
|
896
884
|
}) {
|
|
897
|
-
const
|
|
885
|
+
const u = A.useRef(null), { regionProps: i } = Ue(n, t, u);
|
|
898
886
|
return /* @__PURE__ */ p(
|
|
899
887
|
"div",
|
|
900
888
|
{
|
|
901
|
-
...
|
|
902
|
-
ref:
|
|
903
|
-
className:
|
|
904
|
-
children: t.visibleToasts.map((
|
|
889
|
+
...i,
|
|
890
|
+
ref: u,
|
|
891
|
+
className: I(x.toastRegion, e),
|
|
892
|
+
children: t.visibleToasts.map((o) => /* @__PURE__ */ p(
|
|
905
893
|
at,
|
|
906
894
|
{
|
|
907
|
-
toast:
|
|
895
|
+
toast: o,
|
|
908
896
|
state: t
|
|
909
897
|
},
|
|
910
|
-
|
|
898
|
+
o.key
|
|
911
899
|
))
|
|
912
900
|
}
|
|
913
901
|
);
|
|
@@ -917,27 +905,27 @@ function at({
|
|
|
917
905
|
className: e,
|
|
918
906
|
...n
|
|
919
907
|
}) {
|
|
920
|
-
const
|
|
908
|
+
const u = A.useRef(null), { toastProps: i, contentProps: o, titleProps: r, closeButtonProps: a } = He(
|
|
921
909
|
n,
|
|
922
910
|
t
|
|
923
|
-
), b =
|
|
924
|
-
return /* @__PURE__ */
|
|
911
|
+
), b = ye[n.toast.content.type];
|
|
912
|
+
return /* @__PURE__ */ _(
|
|
925
913
|
"div",
|
|
926
914
|
{
|
|
927
|
-
...
|
|
928
|
-
ref:
|
|
929
|
-
className:
|
|
915
|
+
...i,
|
|
916
|
+
ref: u,
|
|
917
|
+
className: I(
|
|
930
918
|
x.toast,
|
|
931
919
|
x[n.toast.content.type],
|
|
932
920
|
e
|
|
933
921
|
),
|
|
934
922
|
style: { viewTransitionName: n.toast.key },
|
|
935
923
|
children: [
|
|
936
|
-
/* @__PURE__ */
|
|
924
|
+
/* @__PURE__ */ _(
|
|
937
925
|
"div",
|
|
938
926
|
{
|
|
939
|
-
...
|
|
940
|
-
className:
|
|
927
|
+
...o,
|
|
928
|
+
className: I(x.toastContent, o.className),
|
|
941
929
|
children: [
|
|
942
930
|
/* @__PURE__ */ p(
|
|
943
931
|
b,
|
|
@@ -947,7 +935,7 @@ function at({
|
|
|
947
935
|
"aria-hidden": !0
|
|
948
936
|
}
|
|
949
937
|
),
|
|
950
|
-
/* @__PURE__ */
|
|
938
|
+
/* @__PURE__ */ _("div", { children: [
|
|
951
939
|
/* @__PURE__ */ p(
|
|
952
940
|
"p",
|
|
953
941
|
{
|
|
@@ -962,12 +950,12 @@ function at({
|
|
|
962
950
|
}
|
|
963
951
|
),
|
|
964
952
|
/* @__PURE__ */ p(
|
|
965
|
-
|
|
953
|
+
Le,
|
|
966
954
|
{
|
|
967
955
|
variant: "icon",
|
|
968
956
|
...a,
|
|
969
957
|
children: /* @__PURE__ */ p(
|
|
970
|
-
|
|
958
|
+
De,
|
|
971
959
|
{
|
|
972
960
|
size: 20,
|
|
973
961
|
"aria-hidden": !0
|
|
@@ -980,10 +968,10 @@ function at({
|
|
|
980
968
|
);
|
|
981
969
|
}
|
|
982
970
|
export {
|
|
983
|
-
|
|
984
|
-
|
|
971
|
+
Tt as G,
|
|
972
|
+
Lt as T,
|
|
985
973
|
ke as a,
|
|
986
974
|
at as b,
|
|
987
975
|
rt as t,
|
|
988
|
-
|
|
976
|
+
ot as u
|
|
989
977
|
};
|