@midas-ds/components 13.0.1 → 14.0.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-D2Y0gJZB.js → AccordionItem-BJw5IKe0.js} +103 -104
- package/AccordionItem-DhMimhYo.cjs +1 -0
- package/BadgeContainer-BZl6mSeb.cjs +1 -0
- package/{BadgeContainer-iNNgJKD9.js → BadgeContainer-DilMiV6u.js} +9 -9
- package/{Breadcrumbs-C6B4fyk3.js → Breadcrumbs-CV3rVTjR.js} +15 -15
- package/{Breadcrumbs-BQLxFZVm.cjs → Breadcrumbs-DpUPChG9.cjs} +1 -1
- package/{Button-DD5_S-tD.js → Button-B6lxIKPk.js} +11 -11
- package/{Button-CMIbSc4-.cjs → Button-BTX5G3le.cjs} +1 -1
- package/{Button-CUMHt7MG.js → Button-CRIYvCRM.js} +10 -4
- package/{Button-D_tRdPW9.cjs → Button-xc8A29pm.cjs} +1 -1
- package/Button.module-COONZqNU.cjs +1 -0
- package/Button.module-Cm0H98vy.js +14 -0
- package/{ButtonGroup-zx-9mxbJ.cjs → ButtonGroup-BpvDDECt.cjs} +1 -1
- package/{ButtonGroup-DC8925jD.js → ButtonGroup-Swh2E6Es.js} +1 -1
- package/CHANGELOG.md +33 -0
- package/Card-CfosvMF5.js +131 -0
- package/Card-D2E3gviQ.cjs +1 -0
- package/{CharacterCounter-CnRv-iUP.cjs → CharacterCounter-C-PFKoGg.cjs} +1 -1
- package/{CharacterCounter-DT7A0wWP.js → CharacterCounter-DpFONstE.js} +8 -8
- package/{Checkbox-DTuryJdM.js → Checkbox-Cr3MmHPE.js} +35 -35
- package/Checkbox-D-CFY6QF.cjs +1 -0
- package/{CheckboxGroup-BmFdy-K6.js → CheckboxGroup-DEY3JDEL.js} +12 -12
- package/{CheckboxGroup-LrqCwPET.cjs → CheckboxGroup-f9Oa1MhQ.cjs} +1 -1
- package/{Collection-BvWp2xBd.cjs → Collection-DaZzboRu.cjs} +1 -1
- package/{Collection-B0_WAieZ.js → Collection-j_iWeuZo.js} +5 -5
- package/{ColorSchemeSwitch-CgZfgCG4.js → ColorSchemeSwitch-ChFSNntp.js} +10 -10
- package/{ColorSchemeSwitch-D5juAHPc.cjs → ColorSchemeSwitch-Cur7zN5_.cjs} +3 -3
- package/{ComboBox-uMsVrOYu.cjs → ComboBox-C4NybZ32.cjs} +1 -1
- package/{ComboBox-B2btGwWe.js → ComboBox-D7eKe-M5.js} +147 -147
- package/DateField-BszKZodr.cjs +1 -0
- package/DateField-xyhyDy7u.js +47 -0
- package/{DateInputDivider-LxS0Kw1H.js → DateInputDivider-2Wf2hlXA.js} +25 -25
- package/{DateInputDivider-BnSo_Aox.cjs → DateInputDivider-BgXKFwB0.cjs} +1 -1
- package/{DateRangePicker-It4M98bT.cjs → DateRangePicker-DTPkr3hX.cjs} +2 -2
- package/{DateRangePicker-BmPPDZIF.js → DateRangePicker-YwKi0ukr.js} +22 -22
- package/Dialog-DLnopN3Z.js +237 -0
- package/{Dialog-DR6nEqMT.cjs → Dialog-DNu42oLH.cjs} +1 -1
- package/{Dialog-COeUapMW.js → Dialog-DOyFzvUa.js} +58 -58
- package/Dialog-w6EBWT__.cjs +1 -0
- package/{DragAndDrop-PrUJv--B.js → DragAndDrop-DPRU3Y0Y.js} +1 -1
- package/{DragAndDrop-Dw8JZmrn.cjs → DragAndDrop-DQ_6tl6K.cjs} +1 -1
- package/{Dropdown-C_W6Sizy.cjs → Dropdown-5rmvcHD_.cjs} +2 -2
- package/{Dropdown-CGQbf7OT.js → Dropdown-uC9wc8vd.js} +8 -8
- package/FieldError-C4WBoCRc.cjs +1 -0
- package/FieldError-C4kD4yJZ.js +48 -0
- package/{FileUpload-D2gnQKdn.js → FileUpload-01wGpykv.js} +14 -14
- package/{FileUpload-D3RaARDV.cjs → FileUpload-CTbh7Gic.cjs} +1 -1
- package/{FocusScope-Bj40Ir-g.js → FocusScope-8ILtcq9W.js} +4 -4
- package/{FocusScope-Uy3DiY0-.cjs → FocusScope-Dv0F-mG2.cjs} +1 -1
- package/{Grid-BmX6arAO.js → Grid-0XOQPryP.js} +2 -2
- package/{Grid-Bn1bCTH8.cjs → Grid-B6G4PWn5.cjs} +1 -1
- package/{GridItem-luVsL9lu.cjs → GridItem-BZ8eOXMB.cjs} +1 -1
- package/{GridItem-BtO9kCX9.js → GridItem-YtIpL5V2.js} +1 -1
- package/{Group-C73mD_-i.js → Group-C2hEIsGV.js} +11 -11
- package/{Group-BKYGeOBr.cjs → Group-cuyk9Hsy.cjs} +1 -1
- package/Heading-CEx2LJyM.js +48 -0
- package/Heading-CUShN98j.cjs +1 -0
- package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
- package/InfoBanner-CRSz8DK2.js +72 -0
- package/InfoBanner-D_pNj1J2.cjs +1 -0
- package/{Input-CzMx2mfl.cjs → Input-CCuE9Sc5.cjs} +1 -1
- package/{Input-BLVRv0FK.js → Input-CkTOajNJ.js} +9 -9
- package/{Label-1N6ddn5w.js → Label-CV9p0K2n.js} +15 -15
- package/Label-CkIRTC0_.cjs +1 -0
- package/Layout-CVnlO10z.cjs +16 -0
- package/{Layout-B-A-s7B0.js → Layout-IeVrHpT0.js} +126 -126
- package/{Link-CbFSuEI1.js → Link-B9CQXWzE.js} +10 -10
- package/{Link-lO-Ke97K.js → Link-BFvUN5Sq.js} +22 -22
- package/Link-D2K7bDd3.cjs +6 -0
- package/{Link-wM7cVPlS.cjs → Link-a3Ymcnoa.cjs} +1 -1
- package/LinkButton-BCn5gR10.cjs +6 -0
- package/LinkButton-DN3J1Agu.js +69 -0
- package/{ListBox-LncMQt6I.js → ListBox-2eEa1l0M.js} +34 -34
- package/{ListBox-ICZKGluC.cjs → ListBox-Bx9M5vqb.cjs} +1 -1
- package/{ListBoxLoadMoreItem-3jGpi90m.cjs → ListBoxLoadMoreItem-BBE3OF4J.cjs} +1 -1
- package/{ListBoxLoadMoreItem-C4jnDcYH.js → ListBoxLoadMoreItem-IcGb_XwN.js} +5 -5
- package/{ListBoxSection-D7BcbjUt.js → ListBoxSection-dksiACMZ.js} +21 -21
- package/{ListBoxSection-BeDwnVZx.cjs → ListBoxSection-kujY2gUl.cjs} +1 -1
- package/{ListKeyboardDelegate-C_X1wLkh.cjs → ListKeyboardDelegate-DJDPir-w.cjs} +1 -1
- package/{ListKeyboardDelegate-CVxkAn5D.js → ListKeyboardDelegate-Dyu4eFtP.js} +2 -2
- package/{Logo-CFjZc5u2.cjs → Logo-4tRnV4Su.cjs} +1 -1
- package/{Logo-DkagDdKQ.js → Logo-DLlt576_.js} +17 -17
- package/{OverlayArrow-CvNuu3e3.js → OverlayArrow-Bh_G2tJ3.js} +4 -4
- package/{OverlayArrow-ByH6lM-H.cjs → OverlayArrow-DJ4nNscD.cjs} +1 -1
- package/Popover-BI2Koco0.cjs +1 -0
- package/{Popover-Bf5YH53o.js → Popover-D7_IfJ3o.js} +13 -13
- package/PressResponder-AXK2I_yx.cjs +1 -0
- package/{PressResponder-CxVtArtP.js → PressResponder-DUhG97jJ.js} +9 -9
- package/ProgressBar-B-TOuoAC.cjs +1 -0
- package/ProgressBar-B0WEQkyq.js +53 -0
- package/{Radio-D4wUZfW9.js → Radio-D6KNkSA2.js} +47 -47
- package/{Radio-BpQoJB8e.cjs → Radio-DsVsutMH.cjs} +1 -1
- package/RangeCalendar-B6zKSDju.cjs +6 -0
- package/{RangeCalendar-Bi9jc61A.js → RangeCalendar-D5TMu8GI.js} +115 -114
- package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
- package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
- package/SearchField-DnBBlPT7.cjs +6 -0
- package/{SearchField-BevjTbcW.js → SearchField-wojUSY2S.js} +44 -44
- package/Select-D9h_RQ2k.cjs +1 -0
- package/{Select-CEwJo1BT.js → Select-Dc6y8gPR.js} +168 -168
- package/{SelectionManager-Bq-Gw1UT.js → SelectionManager-D-4ThfPZ.js} +9 -9
- package/{SelectionManager-BtbHoHpA.cjs → SelectionManager-FYrDfe5v.cjs} +1 -1
- package/{Separator-Bj24aGrT.js → Separator--4b7vckr.js} +28 -28
- package/{Separator-Dgin8BNW.cjs → Separator-BQkxEZC9.cjs} +1 -1
- package/{Separator-CM0KPvsX.js → Separator-COlhRmJF.js} +5 -5
- package/Separator-DcbM84B8.cjs +1 -0
- package/Skeleton-8onymGEG.cjs +1 -0
- package/Skeleton-BjTEGRpe.js +35 -0
- package/Spinner-CTha503N.js +47 -0
- package/{Spinner-DxWDMW6e.cjs → Spinner-DKQ9_SQB.cjs} +2 -2
- package/{TabList-3fErCDyP.cjs → TabList-BhC96APe.cjs} +1 -1
- package/{TabList-CXaxruLg.js → TabList-P5HnizZt.js} +106 -110
- package/{Table-Dyqa6_rE.cjs → Table-BB8Ag5_3.cjs} +1 -1
- package/{Table-BzJktg2G.js → Table-cCSOrPkK.js} +21 -21
- package/{Tag-BYUPXbhG.js → Tag-D2vh0KRD.js} +24 -24
- package/{Tag-BweDKw1v.cjs → Tag-D32MGLjS.cjs} +1 -1
- package/Text-BQe1I4-r.js +32 -0
- package/{Text-Be7WIOwv.js → Text-BpERRete.js} +3 -3
- package/{Text-BtPiT2P1.cjs → Text-CkhG15SU.cjs} +1 -1
- package/{Text-BAFsaON-.cjs → Text-CkhZTTV5.cjs} +1 -1
- package/TextArea-B5TsyJxa.cjs +1 -0
- package/TextArea-Cado2arG.js +125 -0
- package/{TextField-Bm5916AD.cjs → TextField-4xfAzdBI.cjs} +1 -1
- package/{TextField-_UY8CXtW.js → TextField-5AI6T1ol.js} +26 -26
- package/TextField.module-C03d0VY9.js +13 -0
- package/TextField.module-DmRrFHra.cjs +1 -0
- package/{Toast-B74PMVL9.js → Toast-CgXRE33Y.js} +97 -97
- package/{Toast-Cs0CEbRr.cjs → Toast-Cs-Uvf1p.cjs} +1 -1
- package/{ToggleButtonGroup-DY9S3USc.cjs → ToggleButtonGroup-CiX2eXB8.cjs} +1 -1
- package/{ToggleButtonGroup-CwHPu7w5.js → ToggleButtonGroup-SKGgfFs4.js} +9 -9
- package/{Tooltip-CZa9n5sT.cjs → Tooltip-BrupFzaI.cjs} +1 -1
- package/{Tooltip-BHAtsp9k.js → Tooltip-txk48Qof.js} +13 -13
- package/{VisuallyHidden-EjrqodVh.cjs → VisuallyHidden-Awup6QxT.cjs} +1 -1
- package/{VisuallyHidden-CGEtjAP7.js → VisuallyHidden-D2ZXHTJs.js} +8 -8
- package/accordion/Accordion.d.ts +0 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +2 -3
- package/assets/AccordionItem.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/Card.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/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 -1
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/default.css +1 -1
- 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/clsx-DKOfLqne.cjs +1 -0
- package/clsx-jbLnTBqA.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.js +1 -1
- package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
- package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.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/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/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/Heading.d.ts +6 -0
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BLPblar-.js → index-DEx4upZl.js} +19 -19
- package/{index-DSFSh2sC.cjs → index-hURPlN0u.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.js +126 -127
- package/inertValue-BWmZ1afe.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/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/{mergeProps-BSsN7Bgk.js → mergeProps-Ct8m5-xW.js} +1 -1
- package/{mergeProps-JhcJ7uJL.cjs → mergeProps-Du5A8xi8.cjs} +1 -1
- package/modal/Dialog.d.ts +16 -3
- package/modal/index.cjs +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +2 -2
- package/package.json +2 -2
- 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/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/TextField.d.ts +2 -2
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -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/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-D6iUB8cN.js → useButton-A-VOfwuT.js} +3 -3
- package/{useButton-R8-i3HLC.cjs → useButton-Bh3duhYL.cjs} +1 -1
- package/{useDateFormatter-BJ1ZyaH1.js → useDateFormatter-CxlJTAki.js} +2 -2
- package/{useDateFormatter-2B0vgHc-.cjs → useDateFormatter-D0bVjgIb.cjs} +1 -1
- package/{useDescription-BMuiAqI5.cjs → useDescription-6BYtQxe6.cjs} +1 -1
- package/{useDescription-BLmIkYCq.js → useDescription-BFwQx7Rp.js} +1 -1
- package/useEvent-C125NAue.cjs +1 -0
- package/{useEvent-DpBHTuHJ.js → useEvent-smuTnX4G.js} +1 -1
- package/{useField-DyeD7MLj.cjs → useField-CY4OYE5a.cjs} +1 -1
- package/{useField-BMegM8fA.js → useField-sSWPm-He.js} +2 -2
- package/{useFilter-BFnSe_Eq.js → useFilter-DHcouDzv.js} +1 -1
- package/{useFilter-aoggM85n.cjs → useFilter-DlZLqsJD.cjs} +1 -1
- package/{useFocusRing-BcbYske2.cjs → useFocusRing-Cig5Y0l-.cjs} +1 -1
- package/{useFocusRing-DMo8ctYV.js → useFocusRing-Copf_tx8.js} +2 -2
- package/{useFocusWithin-ClMkhYcq.js → useFocusWithin-BKopz9sr.js} +1 -1
- package/{useFocusWithin-DTnk0e8a.cjs → useFocusWithin-TryC2Kkw.cjs} +1 -1
- package/{useFocusable-DXlMChFC.js → useFocusable-CCh54GIw.js} +14 -14
- package/{useFocusable-CsG-IPuC.cjs → useFocusable-DhdAtEw8.cjs} +1 -1
- package/{useFormValidation-BQIRxgbU.cjs → useFormValidation-BJNizNDf.cjs} +1 -1
- package/{useFormValidation-L0UHvOsP.js → useFormValidation-DdIIVZ5j.js} +2 -2
- package/{useHasTabbableChild-BDaxMsGu.js → useHasTabbableChild-BbgOpdGQ.js} +2 -2
- package/useHasTabbableChild-wH3RCjTd.cjs +1 -0
- package/{useHighlightSelectionDescription-BkEv9Jye.js → useHighlightSelectionDescription-BL_02EKv.js} +5 -5
- package/{useHighlightSelectionDescription-CQaG611l.cjs → useHighlightSelectionDescription-D6F-YO6b.cjs} +1 -1
- package/{useHover-DGAmG7jt.cjs → useHover-eU40luVI.cjs} +1 -1
- package/{useHover-D6bNIkU0.js → useHover-zCCNtF6g.js} +2 -2
- package/{useLabels-CvUk-yS3.cjs → useLabels-B5pmat1S.cjs} +1 -1
- package/{useLabels-Kmq5JCp_.js → useLabels-D24on06F.js} +1 -1
- package/{useListState-D2IEg6_e.cjs → useListState-BdC308Sq.cjs} +1 -1
- package/{useListState-pixYqSLl.js → useListState-D2yPZrFZ.js} +1 -1
- package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
- package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
- package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
- package/useObserveElement-BzEr5D32.cjs +1 -0
- package/{usePress-DMUpU0GU.js → usePress-4yZ5a87p.js} +15 -15
- package/{usePress-CicXV7UO.cjs → usePress-Dj3t18Pf.cjs} +2 -2
- package/{useSingleSelectListState-CwWK_Dx2.cjs → useSingleSelectListState-b_SPhYG4.cjs} +1 -1
- package/{useSingleSelectListState-BlvpP8y-.js → useSingleSelectListState-lyai-bC_.js} +1 -1
- package/{useTextField-Cxpfu0U3.cjs → useTextField-DUEQl6sr.cjs} +1 -1
- package/{useTextField-BC5X_AO_.js → useTextField-DjxrmW7d.js} +7 -7
- package/useToggleState-DaxmInOW.cjs +1 -0
- package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
- package/utils/clsx.d.ts +8 -0
- package/{utils-Cpcjg55U.js → utils-BMBoiyL7.js} +10 -10
- package/{utils-DFIwp4PB.js → utils-CrT5PVBA.js} +1 -1
- package/{utils-__vrf9VZ.cjs → utils-I-LGXGYH.cjs} +1 -1
- package/{utils-CMHKYKlz.cjs → utils-cBvgilDa.cjs} +1 -1
- package/AccordionItem-Bq8nUKg4.cjs +0 -1
- package/BadgeContainer-su0iCJKy.cjs +0 -1
- package/Button.module-BT9wZenr.cjs +0 -1
- package/Button.module-CGIVvzVm.js +0 -14
- package/Card-D2UbrhDW.js +0 -131
- package/Card-UolcSL5O.cjs +0 -1
- package/Checkbox-dtZfsSfx.cjs +0 -1
- package/DateField-B5dlDwdH.cjs +0 -1
- package/DateField-CEpRn4wR.js +0 -47
- package/Dialog-B1HuzqOX.js +0 -240
- package/Dialog-doGnVsJJ.cjs +0 -1
- package/FieldError-Cornph2A.cjs +0 -1
- package/FieldError-DdvFyIf4.js +0 -48
- package/Heading-BQlmb5Tm.js +0 -46
- package/Heading-D3FR_KXb.cjs +0 -1
- package/InfoBanner-C82hcpzj.cjs +0 -1
- package/InfoBanner-Dz_0wVSa.js +0 -83
- package/Label-06gf6yKQ.cjs +0 -1
- package/Layout-DlE30BHE.cjs +0 -16
- package/Link-ePZ3nrAW.cjs +0 -6
- package/LinkButton-CJyZh3BS.js +0 -69
- package/LinkButton-Cw73pOM2.cjs +0 -6
- package/Popover-DIq3kp6B.cjs +0 -1
- package/PressResponder-DbnYqwGB.cjs +0 -1
- package/ProgressBar-DRhXkSE6.js +0 -53
- package/ProgressBar-i7almbvK.cjs +0 -1
- package/RangeCalendar-KcJooXYf.cjs +0 -6
- package/SearchField-BA-X9dzb.cjs +0 -6
- package/Select-1QuVY4f5.cjs +0 -1
- package/Separator-Cfv2pbWf.cjs +0 -1
- package/Skeleton-Iovq135_.js +0 -35
- package/Skeleton-MaBUPqhT.cjs +0 -1
- package/Spinner-BZ7i01Kt.js +0 -47
- package/Text-CmlsaWMA.js +0 -32
- package/TextArea-B4BZUoJp.cjs +0 -1
- package/TextArea-Df1fR5R4.js +0 -124
- package/TextField.module-CH39P8ZE.js +0 -13
- package/TextField.module-gJ-ruFra.cjs +0 -1
- package/inertValue-B3AFhVG4.cjs +0 -1
- package/useEvent-3ZO5TPSH.cjs +0 -1
- package/useHasTabbableChild-CJcLnolh.cjs +0 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
- package/useObserveElement-MhzEsCkX.cjs +0 -1
- package/useToggleState-SqDyNfRi.cjs +0 -1
- package/utils/storybook.d.ts +0 -5
- package/utils/test.d.ts +0 -11
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsx as p, jsxs as _, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
-
import { B as Le } from "./Button-
|
|
2
|
+
import { B as Le } from "./Button-CRIYvCRM.js";
|
|
3
3
|
import A, { useState as g, useCallback as w, useEffect as T, useRef as v, useMemo as _e } from "react";
|
|
4
4
|
import { createPortal as we, flushSync as Be } from "react-dom";
|
|
5
|
-
import { c as I } from "./clsx-
|
|
5
|
+
import { c as I } from "./clsx-jbLnTBqA.js";
|
|
6
6
|
import { i as ye } from "./icon-map-uS87FT_Q.js";
|
|
7
|
-
import { s as N } from "./index-
|
|
8
|
-
import { $ as F, c as Ie, b as Ce, d as Pe, a as Ae } from "./mergeProps-
|
|
9
|
-
import { m as E } from "./utils-
|
|
10
|
-
import { $ as ge, f as B } from "./useHover-
|
|
11
|
-
import { $ as Ne } from "./useFocusWithin-
|
|
12
|
-
import { $ as
|
|
7
|
+
import { s as N } from "./index-DEx4upZl.js";
|
|
8
|
+
import { $ as F, c as Ie, b as Ce, d as Pe, a as Ae } from "./mergeProps-Ct8m5-xW.js";
|
|
9
|
+
import { m as E } from "./utils-CrT5PVBA.js";
|
|
10
|
+
import { $ as ge, f as B } from "./useHover-zCCNtF6g.js";
|
|
11
|
+
import { $ as Ne } from "./useFocusWithin-BKopz9sr.js";
|
|
12
|
+
import { $ as S } from "./useLocalizedStringFormatter-CSEh15AZ.js";
|
|
13
13
|
import { $ as Fe } from "./filterDOMProps-wsa9OcNI.js";
|
|
14
|
-
import { X as
|
|
15
|
-
import './assets/Toast.css';const
|
|
16
|
-
function
|
|
14
|
+
import { X as Se } from "./x-C2xUHAEl.js";
|
|
15
|
+
import './assets/Toast.css';const D = 1, y = Symbol.for("react-aria-landmark-manager");
|
|
16
|
+
function De(t) {
|
|
17
17
|
return document.addEventListener("react-aria-landmark-manager-change", t), () => document.removeEventListener("react-aria-landmark-manager-change", t);
|
|
18
18
|
}
|
|
19
19
|
function P() {
|
|
20
20
|
if (typeof document > "u") return null;
|
|
21
21
|
let t = document[y];
|
|
22
|
-
return t && t.version >=
|
|
22
|
+
return t && t.version >= D ? t : (document[y] = new ze(), document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")), document[y]);
|
|
23
23
|
}
|
|
24
24
|
function Re() {
|
|
25
|
-
return N.useSyncExternalStore(
|
|
25
|
+
return N.useSyncExternalStore(De, 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
|
|
@@ -238,10 +238,10 @@ class Me {
|
|
|
238
238
|
return this.landmarks.find((n) => n.ref === e.ref) ? this.updateLandmark(e) : this.addLandmark(e), () => this.removeLandmark(e.ref);
|
|
239
239
|
}
|
|
240
240
|
constructor() {
|
|
241
|
-
this.landmarks = [], this.isListening = !1, this.refCount = 0, this.version =
|
|
241
|
+
this.landmarks = [], this.isListening = !1, this.refCount = 0, this.version = D, this.f6Handler = this.f6Handler.bind(this), this.focusinHandler = this.focusinHandler.bind(this), this.focusoutHandler = this.focusoutHandler.bind(this);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Me(t, e) {
|
|
245
245
|
const { role: n, "aria-label": i, "aria-labelledby": o, focus: u } = t;
|
|
246
246
|
let r = Re(), a = i || o, [b, d] = g(!1), f = w(() => {
|
|
247
247
|
d(!0);
|
|
@@ -291,120 +291,120 @@ R = {
|
|
|
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)} известие`,
|
|
299
299
|
other: () => `${e.number(t.count)} известия`
|
|
300
300
|
})}.`
|
|
301
301
|
};
|
|
302
|
-
var
|
|
303
|
-
|
|
302
|
+
var M = {};
|
|
303
|
+
M = {
|
|
304
304
|
close: "Zavřít",
|
|
305
305
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
306
306
|
one: () => `${e.number(t.count)} oznámení`,
|
|
307
307
|
other: () => `${e.number(t.count)} oznámení`
|
|
308
308
|
})}.`
|
|
309
309
|
};
|
|
310
|
-
var
|
|
311
|
-
|
|
310
|
+
var O = {};
|
|
311
|
+
O = {
|
|
312
312
|
close: "Luk",
|
|
313
313
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
314
314
|
one: () => `${e.number(t.count)} besked`,
|
|
315
315
|
other: () => `${e.number(t.count)} beskeder`
|
|
316
316
|
})}.`
|
|
317
317
|
};
|
|
318
|
-
var
|
|
319
|
-
|
|
318
|
+
var H = {};
|
|
319
|
+
H = {
|
|
320
320
|
close: "Schließen",
|
|
321
321
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
322
322
|
one: () => `${e.number(t.count)} Benachrichtigung`,
|
|
323
323
|
other: () => `${e.number(t.count)} Benachrichtigungen`
|
|
324
324
|
})}.`
|
|
325
325
|
};
|
|
326
|
-
var
|
|
327
|
-
|
|
326
|
+
var V = {};
|
|
327
|
+
V = {
|
|
328
328
|
close: "Κλείσιμο",
|
|
329
329
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
330
330
|
one: () => `${e.number(t.count)} ειδοποίηση`,
|
|
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 q = {};
|
|
343
|
+
q = {
|
|
344
344
|
close: "Cerrar",
|
|
345
345
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
346
346
|
one: () => `${e.number(t.count)} notificación`,
|
|
347
347
|
other: () => `${e.number(t.count)} notificaciones`
|
|
348
348
|
})}.`
|
|
349
349
|
};
|
|
350
|
-
var
|
|
351
|
-
|
|
350
|
+
var j = {};
|
|
351
|
+
j = {
|
|
352
352
|
close: "Sule",
|
|
353
353
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
354
354
|
one: () => `${e.number(t.count)} teatis`,
|
|
355
355
|
other: () => `${e.number(t.count)} teatist`
|
|
356
356
|
})}.`
|
|
357
357
|
};
|
|
358
|
-
var
|
|
359
|
-
|
|
358
|
+
var W = {};
|
|
359
|
+
W = {
|
|
360
360
|
close: "Sulje",
|
|
361
361
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
362
362
|
one: () => `${e.number(t.count)} ilmoitus`,
|
|
363
363
|
other: () => `${e.number(t.count)} ilmoitusta`
|
|
364
364
|
})}.`
|
|
365
365
|
};
|
|
366
|
-
var
|
|
367
|
-
|
|
366
|
+
var K = {};
|
|
367
|
+
K = {
|
|
368
368
|
close: "Fermer",
|
|
369
369
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
370
370
|
one: () => `${e.number(t.count)} notification`,
|
|
371
371
|
other: () => `${e.number(t.count)} notifications`
|
|
372
372
|
})}.`
|
|
373
373
|
};
|
|
374
|
-
var
|
|
375
|
-
|
|
374
|
+
var Z = {};
|
|
375
|
+
Z = {
|
|
376
376
|
close: "סגור",
|
|
377
377
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
378
378
|
one: () => `${e.number(t.count)} התראה`,
|
|
379
379
|
other: () => `${e.number(t.count)} התראות`
|
|
380
380
|
})}.`
|
|
381
381
|
};
|
|
382
|
-
var
|
|
383
|
-
|
|
382
|
+
var G = {};
|
|
383
|
+
G = {
|
|
384
384
|
close: "Zatvori",
|
|
385
385
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
386
386
|
one: () => `${e.number(t.count)} obavijest`,
|
|
387
387
|
other: () => `${e.number(t.count)} obavijesti`
|
|
388
388
|
})}.`
|
|
389
389
|
};
|
|
390
|
-
var
|
|
391
|
-
|
|
390
|
+
var J = {};
|
|
391
|
+
J = {
|
|
392
392
|
close: "Bezárás",
|
|
393
393
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
394
394
|
one: () => `${e.number(t.count)} értesítés`,
|
|
395
395
|
other: () => `${e.number(t.count)} értesítés`
|
|
396
396
|
})}.`
|
|
397
397
|
};
|
|
398
|
-
var
|
|
399
|
-
|
|
398
|
+
var Q = {};
|
|
399
|
+
Q = {
|
|
400
400
|
close: "Chiudi",
|
|
401
401
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
402
402
|
one: () => `${e.number(t.count)} notifica`,
|
|
403
403
|
other: () => `${e.number(t.count)} notifiche`
|
|
404
404
|
})}.`
|
|
405
405
|
};
|
|
406
|
-
var
|
|
407
|
-
|
|
406
|
+
var X = {};
|
|
407
|
+
X = {
|
|
408
408
|
close: "閉じる",
|
|
409
409
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
410
410
|
one: () => `${e.number(t.count)} 個の通知`,
|
|
@@ -563,21 +563,21 @@ he = {
|
|
|
563
563
|
var C = {};
|
|
564
564
|
C = {
|
|
565
565
|
"ar-AE": R,
|
|
566
|
-
"bg-BG":
|
|
567
|
-
"cs-CZ":
|
|
568
|
-
"da-DK":
|
|
569
|
-
"de-DE":
|
|
570
|
-
"el-GR":
|
|
571
|
-
"en-US":
|
|
572
|
-
"es-ES":
|
|
573
|
-
"et-EE":
|
|
574
|
-
"fi-FI":
|
|
575
|
-
"fr-FR":
|
|
576
|
-
"he-IL":
|
|
577
|
-
"hr-HR":
|
|
578
|
-
"hu-HU":
|
|
579
|
-
"it-IT":
|
|
580
|
-
"ja-JP":
|
|
566
|
+
"bg-BG": z,
|
|
567
|
+
"cs-CZ": M,
|
|
568
|
+
"da-DK": O,
|
|
569
|
+
"de-DE": H,
|
|
570
|
+
"el-GR": V,
|
|
571
|
+
"en-US": U,
|
|
572
|
+
"es-ES": q,
|
|
573
|
+
"et-EE": j,
|
|
574
|
+
"fi-FI": W,
|
|
575
|
+
"fr-FR": K,
|
|
576
|
+
"he-IL": Z,
|
|
577
|
+
"hr-HR": G,
|
|
578
|
+
"hu-HU": J,
|
|
579
|
+
"it-IT": Q,
|
|
580
|
+
"ja-JP": X,
|
|
581
581
|
"ko-KR": Y,
|
|
582
582
|
"lt-LT": ee,
|
|
583
583
|
"lv-LV": te,
|
|
@@ -597,10 +597,10 @@ C = {
|
|
|
597
597
|
"zh-CN": $e,
|
|
598
598
|
"zh-TW": he
|
|
599
599
|
};
|
|
600
|
-
function
|
|
600
|
+
function Oe(t) {
|
|
601
601
|
return t && t.__esModule ? t.default : t;
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function He(t, e, n) {
|
|
604
604
|
let { key: i, timer: o, timeout: u } = t.toast;
|
|
605
605
|
T(() => {
|
|
606
606
|
if (!(o == null || u == null))
|
|
@@ -611,7 +611,7 @@ function Ve(t, e, n) {
|
|
|
611
611
|
o,
|
|
612
612
|
u
|
|
613
613
|
]);
|
|
614
|
-
let r = Ie(), a = Ce(), b =
|
|
614
|
+
let r = Ie(), a = Ce(), b = S(Oe(C), "@react-aria/toast"), [d, f] = g(!1);
|
|
615
615
|
return T(() => {
|
|
616
616
|
f(!0);
|
|
617
617
|
}, []), {
|
|
@@ -642,11 +642,11 @@ function Ve(t, e, n) {
|
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function Ve(t) {
|
|
646
646
|
return t && t.__esModule ? t.default : t;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
let i =
|
|
648
|
+
function Ue(t, e, n) {
|
|
649
|
+
let i = S(Ve(C), "@react-aria/toast"), { landmarkProps: o } = Me({
|
|
650
650
|
role: "region",
|
|
651
651
|
"aria-label": t["aria-label"] || i.format("notifications", {
|
|
652
652
|
count: e.visibleToasts.length
|
|
@@ -678,8 +678,8 @@ function ze(t, e, n) {
|
|
|
678
678
|
isRemoved: !e.visibleToasts.some((h) => c.key === h.key)
|
|
679
679
|
})), L = l.findIndex((c) => c.i === $.current && c.isRemoved);
|
|
680
680
|
if (L > -1) {
|
|
681
|
-
var
|
|
682
|
-
if (B() === "pointer" && (!((
|
|
681
|
+
var k;
|
|
682
|
+
if (B() === "pointer" && (!((k = s.current) === null || k === void 0) && k.isConnected)) E(s.current);
|
|
683
683
|
else {
|
|
684
684
|
let c = 0, m, h;
|
|
685
685
|
for (; c <= L; )
|
|
@@ -732,7 +732,7 @@ function ze(t, e, n) {
|
|
|
732
732
|
// and we need to follow all focus changes
|
|
733
733
|
onFocus: (l) => {
|
|
734
734
|
let L = l.target.closest('[role="alertdialog"]');
|
|
735
|
-
$.current = d.current.findIndex((
|
|
735
|
+
$.current = d.current.findIndex((k) => k === L);
|
|
736
736
|
},
|
|
737
737
|
onBlur: () => {
|
|
738
738
|
$.current = -1;
|
|
@@ -768,7 +768,7 @@ class ve {
|
|
|
768
768
|
...n,
|
|
769
769
|
content: e,
|
|
770
770
|
key: i,
|
|
771
|
-
timer: n.timeout ? new
|
|
771
|
+
timer: n.timeout ? new qe(() => this.close(i), n.timeout) : void 0
|
|
772
772
|
};
|
|
773
773
|
return this.queue.unshift(o), this.updateVisibleToasts("add"), i;
|
|
774
774
|
}
|
|
@@ -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 qe {
|
|
809
809
|
reset(e) {
|
|
810
810
|
this.remaining = e, this.resume();
|
|
811
811
|
}
|
|
@@ -821,21 +821,21 @@ class je {
|
|
|
821
821
|
this.startTime = null, this.remaining = n, this.callback = e;
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
const We = "
|
|
825
|
-
toastRegion:
|
|
826
|
-
toast:
|
|
827
|
-
success:
|
|
828
|
-
info:
|
|
829
|
-
important:
|
|
830
|
-
warning:
|
|
831
|
-
icon:
|
|
832
|
-
toastContent:
|
|
824
|
+
const je = "_toastRegion_3qumz_49", We = "_toast_3qumz_49", Ke = "_success_3qumz_97", Ze = "_info_3qumz_105", Ge = "_important_3qumz_113", Je = "_warning_3qumz_121", Qe = "_icon_3qumz_129", Xe = "_toastContent_3qumz_143", Ye = "_toastMessage_3qumz_150", et = "_slideInTop_3qumz_1", tt = "_slideInEnd_3qumz_1", nt = "_slideOutTop_3qumz_1", it = "_slideOutEnd_3qumz_1", x = {
|
|
825
|
+
toastRegion: je,
|
|
826
|
+
toast: We,
|
|
827
|
+
success: Ke,
|
|
828
|
+
info: Ze,
|
|
829
|
+
important: Ge,
|
|
830
|
+
warning: Je,
|
|
831
|
+
icon: Qe,
|
|
832
|
+
toastContent: Xe,
|
|
833
833
|
toastMessage: Ye,
|
|
834
834
|
slideInTop: et,
|
|
835
835
|
slideInEnd: tt,
|
|
836
836
|
slideOutTop: nt,
|
|
837
837
|
slideOutEnd: it
|
|
838
|
-
},
|
|
838
|
+
}, xe = {
|
|
839
839
|
wrapUpdate(t) {
|
|
840
840
|
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
841
841
|
Be(t);
|
|
@@ -850,11 +850,11 @@ function ot(t = {}) {
|
|
|
850
850
|
);
|
|
851
851
|
return pe(i);
|
|
852
852
|
}
|
|
853
|
-
const ut = new ve(
|
|
853
|
+
const ut = new ve(xe), Et = (t) => {
|
|
854
854
|
const e = pe(ut);
|
|
855
855
|
return e.visibleToasts.length > 0 ? we(
|
|
856
856
|
/* @__PURE__ */ p(
|
|
857
|
-
|
|
857
|
+
ke,
|
|
858
858
|
{
|
|
859
859
|
...t,
|
|
860
860
|
state: e
|
|
@@ -863,11 +863,11 @@ const ut = new ve(ke), Et = (t) => {
|
|
|
863
863
|
document.body
|
|
864
864
|
) : null;
|
|
865
865
|
}, Tt = ({ children: t, ...e }) => {
|
|
866
|
-
const n = ot(
|
|
866
|
+
const n = ot(xe);
|
|
867
867
|
return /* @__PURE__ */ _(Te, { children: [
|
|
868
868
|
typeof t == "function" ? t(n) : t,
|
|
869
869
|
n.visibleToasts.length > 0 && /* @__PURE__ */ p(
|
|
870
|
-
|
|
870
|
+
ke,
|
|
871
871
|
{
|
|
872
872
|
...e,
|
|
873
873
|
state: n
|
|
@@ -875,18 +875,18 @@ const ut = new ve(ke), Et = (t) => {
|
|
|
875
875
|
)
|
|
876
876
|
] });
|
|
877
877
|
};
|
|
878
|
-
function
|
|
878
|
+
function ke({
|
|
879
879
|
state: t,
|
|
880
880
|
className: e,
|
|
881
881
|
...n
|
|
882
882
|
}) {
|
|
883
|
-
const i = A.useRef(null), { regionProps: o } =
|
|
883
|
+
const i = A.useRef(null), { regionProps: o } = Ue(n, t, i);
|
|
884
884
|
return /* @__PURE__ */ p(
|
|
885
885
|
"div",
|
|
886
886
|
{
|
|
887
887
|
...o,
|
|
888
888
|
ref: i,
|
|
889
|
-
className: I(
|
|
889
|
+
className: I(x.toastRegion, e),
|
|
890
890
|
children: t.visibleToasts.map((u) => /* @__PURE__ */ p(
|
|
891
891
|
rt,
|
|
892
892
|
{
|
|
@@ -903,7 +903,7 @@ function rt({
|
|
|
903
903
|
className: e,
|
|
904
904
|
...n
|
|
905
905
|
}) {
|
|
906
|
-
const i = A.useRef(null), { toastProps: o, contentProps: u, titleProps: r, closeButtonProps: a } =
|
|
906
|
+
const i = A.useRef(null), { toastProps: o, contentProps: u, titleProps: r, closeButtonProps: a } = He(
|
|
907
907
|
n,
|
|
908
908
|
t
|
|
909
909
|
), b = ye[n.toast.content.type];
|
|
@@ -913,8 +913,8 @@ function rt({
|
|
|
913
913
|
...o,
|
|
914
914
|
ref: i,
|
|
915
915
|
className: I(
|
|
916
|
-
|
|
917
|
-
|
|
916
|
+
x.toast,
|
|
917
|
+
x[n.toast.content.type],
|
|
918
918
|
e
|
|
919
919
|
),
|
|
920
920
|
style: { viewTransitionName: n.toast.key },
|
|
@@ -923,12 +923,12 @@ function rt({
|
|
|
923
923
|
"div",
|
|
924
924
|
{
|
|
925
925
|
...u,
|
|
926
|
-
className: I(
|
|
926
|
+
className: I(x.toastContent, u.className),
|
|
927
927
|
children: [
|
|
928
928
|
/* @__PURE__ */ p(
|
|
929
929
|
b,
|
|
930
930
|
{
|
|
931
|
-
className:
|
|
931
|
+
className: x.icon,
|
|
932
932
|
size: 20,
|
|
933
933
|
"aria-hidden": !0
|
|
934
934
|
}
|
|
@@ -937,7 +937,7 @@ function rt({
|
|
|
937
937
|
/* @__PURE__ */ p(
|
|
938
938
|
"p",
|
|
939
939
|
{
|
|
940
|
-
className:
|
|
940
|
+
className: x.toastMessage,
|
|
941
941
|
...r,
|
|
942
942
|
children: n.toast.content.message
|
|
943
943
|
}
|
|
@@ -953,7 +953,7 @@ function rt({
|
|
|
953
953
|
variant: "icon",
|
|
954
954
|
...a,
|
|
955
955
|
children: /* @__PURE__ */ p(
|
|
956
|
-
|
|
956
|
+
Se,
|
|
957
957
|
{
|
|
958
958
|
size: 20,
|
|
959
959
|
"aria-hidden": !0
|
|
@@ -968,7 +968,7 @@ function rt({
|
|
|
968
968
|
export {
|
|
969
969
|
Et as G,
|
|
970
970
|
Tt as T,
|
|
971
|
-
|
|
971
|
+
ke as a,
|
|
972
972
|
rt as b,
|
|
973
973
|
ut as t,
|
|
974
974
|
ot as u
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Toast.css');const b=require("react/jsx-runtime"),Ee=require("./Button-D_tRdPW9.cjs"),a=require("react"),P=require("react-dom"),B=require("./clsx-C11secjj.cjs"),Te=require("./icon-map-9XcghDra.cjs"),g=require("./index-DSFSh2sC.cjs"),k=require("./mergeProps-JhcJ7uJL.cjs"),T=require("./utils-__vrf9VZ.cjs"),_=require("./useHover-DGAmG7jt.cjs"),Le=require("./useFocusWithin-DTnk0e8a.cjs"),A=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),_e=require("./filterDOMProps-RRlKPKX0.cjs"),we=require("./x-rV-nu490.cjs"),F=1,w=Symbol.for("react-aria-landmark-manager");function Be(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function I(){if(typeof document>"u")return null;let t=document[w];return t&&t.version>=F?t:(document[w]=new Ce,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[w])}function ye(){return g.shimExports.useSyncExternalStore(Be,I,I)}class Ce{setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:!0}),document.addEventListener("focusin",this.focusinHandler,{capture:!0}),document.addEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:!0}),document.removeEventListener("focusin",this.focusinHandler,{capture:!0}),document.removeEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,n){var u,i;(i=this.landmarks.find(o=>o.ref.current===e))===null||i===void 0||(u=i.focus)===null||u===void 0||u.call(i,n)}getLandmarksByRole(e){return new Set(this.landmarks.filter(n=>n.role===e))}getLandmarkByRole(e){return this.landmarks.find(n=>n.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(i=>i.ref===e.ref)||!e.ref.current)return;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){this.landmarks=[e],this.checkLabels(e.role);return}let n=0,u=this.landmarks.length-1;for(;n<=u;){let i=Math.floor((n+u)/2),o=e.ref.current.compareDocumentPosition(this.landmarks[i].ref.current);!!(o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS)?n=i+1:u=i-1}this.landmarks.splice(n,0,e),this.checkLabels(e.role)}updateLandmark(e){let n=this.landmarks.findIndex(u=>u.ref===e.ref);n>=0&&(this.landmarks[n]={...this.landmarks[n],...e},this.checkLabels(this.landmarks[n].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(n=>n.ref!==e),this.teardownIfNeeded()}checkLabels(e){let n=this.getLandmarksByRole(e);if(n.size>1){let u=[...n].filter(i=>!i.label);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));else if(process.env.NODE_ENV!=="production"){let i=[...n].map(r=>r.label);i.filter((r,s)=>i.indexOf(r)!==s).forEach(r=>{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: `,[...n].filter(s=>s.label===r).map(s=>s.ref.current))})}}}closestLandmark(e){let n=new Map(this.landmarks.map(i=>[i.ref.current,i])),u=e;for(;u&&!n.has(u)&&u!==document.body&&u.parentElement;)u=u.parentElement;return n.get(u)}getNextLandmark(e,{backward:n}){var u;let i=this.closestLandmark(e),o=n?this.landmarks.length-1:0;i&&(o=this.landmarks.indexOf(i)+(n?-1:1));let r=()=>{if(o<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;o=this.landmarks.length-1}else if(o>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;o=0}return o<0||o>=this.landmarks.length};if(r())return;let s=o;for(;!((u=this.landmarks[o].ref.current)===null||u===void 0)&&u.closest("[aria-hidden=true]");){if(o+=n?-1:1,r())return;if(o===s)break}return this.landmarks[o]}f6Handler(e){e.key==="F6"&&(e.altKey?this.focusMain():this.navigate(e.target,e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole("main");return e&&e.ref.current&&document.contains(e.ref.current)?(this.focusLandmark(e.ref.current,"forward"),!0):!1}navigate(e,n){let u=this.getNextLandmark(e,{backward:n});if(!u)return!1;if(u.lastFocused){let i=u.lastFocused;if(document.body.contains(i))return i.focus(),!0}return u.ref.current&&document.contains(u.ref.current)?(this.focusLandmark(u.ref.current,n?"backward":"forward"),!0):!1}focusinHandler(e){let n=this.closestLandmark(e.target);n&&n.ref.current!==e.target&&this.updateLandmark({ref:n.ref,lastFocused:e.target});let u=e.relatedTarget;if(u){let i=this.closestLandmark(u);i&&i.ref.current===u&&i.blur()}}focusoutHandler(e){let n=e.target,u=e.relatedTarget;if(!u||u===document){let i=this.closestLandmark(n);i&&i.ref.current===n&&i.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,u){let i=(u==null?void 0:u.from)||document.activeElement;return e.navigate(i,n==="backward")},focusNext(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!1)},focusPrevious(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!0)},focusMain(){return e.focusMain()},dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null)}}}registerLandmark(e){return this.landmarks.find(n=>n.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=F,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}}function Ie(t,e){const{role:n,"aria-label":u,"aria-labelledby":i,focus:o}=t;let r=ye(),s=u||i,[h,f]=a.useState(!1),$=a.useCallback(()=>{f(!0)},[f]),p=a.useCallback(()=>{f(!1)},[f]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(r)return r.registerLandmark({ref:e,label:s,role:n,focus:o||$,blur:p})},[r,s,e,n,o,$,p]),a.useEffect(()=>{var c;h&&((c=e.current)===null||c===void 0||c.focus())},[h,e]),{landmarkProps:{role:n,tabIndex:h?-1:void 0,"aria-label":u,"aria-labelledby":i}}}var N={};N={close:"إغلاق",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} إشعار`,other:()=>`${e.number(t.count)} إشعارات`})}.`};var R={};R={close:"Затвори",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} известие`,other:()=>`${e.number(t.count)} известия`})}.`};var S={};S={close:"Zavřít",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámení`,other:()=>`${e.number(t.count)} oznámení`})}.`};var D={};D={close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`};var M={};M={close:"Schließen",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} Benachrichtigung`,other:()=>`${e.number(t.count)} Benachrichtigungen`})}.`};var O={};O={close:"Κλείσιμο",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ειδοποίηση`,other:()=>`${e.number(t.count)} ειδοποιήσεις`})}.`};var j={};j={close:"Close",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var H={};H={close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificación`,other:()=>`${e.number(t.count)} notificaciones`})}.`};var V={};V={close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`};var z={};z={close:"Sulje",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ilmoitus`,other:()=>`${e.number(t.count)} ilmoitusta`})}.`};var U={};U={close:"Fermer",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var q={};q={close:"סגור",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} התראה`,other:()=>`${e.number(t.count)} התראות`})}.`};var W={};W={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obavijest`,other:()=>`${e.number(t.count)} obavijesti`})}.`};var K={};K={close:"Bezárás",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} értesítés`,other:()=>`${e.number(t.count)} értesítés`})}.`};var Z={};Z={close:"Chiudi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica`,other:()=>`${e.number(t.count)} notifiche`})}.`};var G={};G={close:"閉じる",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個の通知`,other:()=>`${e.number(t.count)} 個の通知`})}。`};var Q={};Q={close:"닫기",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}개 알림`,other:()=>`${e.number(t.count)}개 알림`})}.`};var J={};J={close:"Uždaryti",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} pranešimas`,other:()=>`${e.number(t.count)} pranešimai`})}.`};var X={};X={close:"Aizvērt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} paziņojums`,other:()=>`${e.number(t.count)} paziņojumi`})}.`};var Y={};Y={close:"Lukk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} varsling`,other:()=>`${e.number(t.count)} varsler`})}.`};var ee={};ee={close:"Sluiten",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} melding`,other:()=>`${e.number(t.count)} meldingen`})}.`};var te={};te={close:"Zamknij",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} powiadomienie`,few:()=>`${e.number(t.count)} powiadomienia`,many:()=>`${e.number(t.count)} powiadomień`,other:()=>`${e.number(t.count)} powiadomienia`})}.`};var ne={};ne={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ue={};ue={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ie={};ie={close:"Închideţi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notificări`})}.`};var oe={};oe={close:"Закрыть",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} уведомление`,other:()=>`${e.number(t.count)} уведомления`})}.`};var re={};re={close:"Zatvoriť",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámenie`,few:()=>`${e.number(t.count)} oznámenia`,other:()=>`${e.number(t.count)} oznámení`})}.`};var se={};se={close:"Zapri",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obvestilo`,two:()=>`${e.number(t.count)} obvestili`,few:()=>`${e.number(t.count)} obvestila`,other:()=>`${e.number(t.count)} obvestil`})}.`};var ae={};ae={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obaveštenje`,other:()=>`${e.number(t.count)} obaveštenja`})}.`};var ce={};ce={close:"Stäng",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} meddelande`,other:()=>`${e.number(t.count)} meddelanden`})}.`};var le={};le={close:"Kapat",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} bildirim`,other:()=>`${e.number(t.count)} bildirim`})}.`};var de={};de={close:"Закрити",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} сповіщення`,other:()=>`${e.number(t.count)} сповіщення`})}.`};var fe={};fe={close:"关闭",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 个通知`,other:()=>`${e.number(t.count)} 个通知`})}。`};var be={};be={close:"關閉",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個通知`,other:()=>`${e.number(t.count)} 個通知`})}。`};var y={};y={"ar-AE":N,"bg-BG":R,"cs-CZ":S,"da-DK":D,"de-DE":M,"el-GR":O,"en-US":j,"es-ES":H,"et-EE":V,"fi-FI":z,"fr-FR":U,"he-IL":q,"hr-HR":W,"hu-HU":K,"it-IT":Z,"ja-JP":G,"ko-KR":Q,"lt-LT":J,"lv-LV":X,"nb-NO":Y,"nl-NL":ee,"pl-PL":te,"pt-BR":ne,"pt-PT":ue,"ro-RO":ie,"ru-RU":oe,"sk-SK":re,"sl-SI":se,"sr-SP":ae,"sv-SE":ce,"tr-TR":le,"uk-UA":de,"zh-CN":fe,"zh-TW":be};function Pe(t){return t&&t.__esModule?t.default:t}function ge(t,e,n){let{key:u,timer:i,timeout:o}=t.toast;a.useEffect(()=>{if(!(i==null||o==null))return i.reset(o),()=>{i.pause()}},[i,o]);let r=k.$bdb11010cef70236$export$f680877a34711e37(),s=k.$bdb11010cef70236$export$b4cc09c592e8fdb8(),h=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Pe(y),"@react-aria/toast"),[f,$]=a.useState(!1);return a.useEffect(()=>{$(!0)},[]),{toastProps:{..._e.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:"alertdialog","aria-modal":"false","aria-labelledby":t["aria-labelledby"]||r,"aria-describedby":t["aria-describedby"]||s,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":f?void 0:"true"},titleProps:{id:r},descriptionProps:{id:s},closeButtonProps:{"aria-label":h.format("close"),onPress:()=>e.close(u)}}}function Ae(t){return t&&t.__esModule?t.default:t}function Fe(t,e,n){let u=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ae(y),"@react-aria/toast"),{landmarkProps:i}=Ie({role:"region","aria-label":t["aria-label"]||u.format("notifications",{count:e.visibleToasts.length})},n),o=a.useRef(!1),r=a.useRef(!1),s=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{o.current||r.current?e.pauseAll():e.resumeAll()}),{hoverProps:h}=_.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>{o.current=!0,s()},onHoverEnd:()=>{o.current=!1,s()}}),f=a.useRef([]),$=a.useRef(e.visibleToasts),p=a.useRef(null);k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(p.current===-1||e.visibleToasts.length===0||!n.current){f.current=[],$.current=e.visibleToasts;return}if(f.current=[...n.current.querySelectorAll('[role="alertdialog"]')],$.current.length===e.visibleToasts.length&&e.visibleToasts.every((d,m)=>d.key===$.current[m].key)){$.current=e.visibleToasts;return}let l=$.current.map((d,m)=>({...d,i:m,isRemoved:!e.visibleToasts.some(v=>d.key===v.key)})),L=l.findIndex(d=>d.i===p.current&&d.isRemoved);if(L>-1){var E;if(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"&&(!((E=c.current)===null||E===void 0)&&E.isConnected))T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current);else{let d=0,m,v;for(;d<=L;)l[d].isRemoved||(v=Math.max(0,d-1)),d++;for(;d<l.length;){if(!l[d].isRemoved){m=d-1;break}d++}v===void 0&&m===void 0&&(v=0),v>=0&&v<f.current.length?T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[v]):m>=0&&m<f.current.length&&T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[m])}}$.current=e.visibleToasts},[e.visibleToasts,n,s]);let c=a.useRef(null),{focusWithinProps:ke}=Le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:l=>{r.current=!0,c.current=l.relatedTarget,s()},onBlurWithin:()=>{r.current=!1,c.current=null,s()}});return a.useEffect(()=>{var l;e.visibleToasts.length===0&&(!((l=c.current)===null||l===void 0)&&l.isConnected)&&(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n,e.visibleToasts.length]),a.useEffect(()=>()=>{var l;!((l=c.current)===null||l===void 0)&&l.isConnected&&(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n]),{regionProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(i,h,ke,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:l=>{let L=l.target.closest('[role="alertdialog"]');p.current=f.current.findIndex(E=>E===L)},onBlur:()=>{p.current=-1}})}}function $e(t){let e=a.useCallback(i=>t.subscribe(i),[t]),n=a.useCallback(()=>t.visibleToasts,[t]);return{visibleToasts:g.shimExports.useSyncExternalStore(e,n,n),add:(i,o)=>t.add(i,o),close:i=>t.close(i),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}class he{runWithWrapUpdate(e,n){this.wrapUpdate?this.wrapUpdate(e,n):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,n={}){let u="_"+Math.random().toString(36).slice(2),i={...n,content:e,key:u,timer:n.timeout?new Ne(()=>this.close(u),n.timeout):void 0};return this.queue.unshift(i),this.updateVisibleToasts("add"),u}close(e){let n=this.queue.findIndex(o=>o.key===e);if(n>=0){var u,i;(u=(i=this.queue[n]).onClose)===null||u===void 0||u.call(i),this.queue.splice(n,1)}this.updateVisibleToasts("remove")}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let n of this.subscriptions)n()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[];var n;this.maxVisibleToasts=(n=e==null?void 0:e.maxVisibleToasts)!==null&&n!==void 0?n:1/0,this.wrapUpdate=e==null?void 0:e.wrapUpdate}}class Ne{reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}constructor(e,n){this.startTime=null,this.remaining=n,this.callback=e}}const Re="_toastRegion_hu26k_49",Se="_toast_hu26k_49",De="_success_hu26k_92",Me="_info_hu26k_100",Oe="_important_hu26k_108",je="_warning_hu26k_116",He="_icon_hu26k_124",Ve="_toastContent_hu26k_134",ze="_toastMessage_hu26k_141",Ue="_slideInTop_hu26k_1",qe="_slideInEnd_hu26k_1",We="_slideOutTop_hu26k_1",Ke="_slideOutEnd_hu26k_1",x={toastRegion:Re,toast:Se,success:De,info:Me,important:Oe,warning:je,icon:He,toastContent:Ve,toastMessage:ze,slideInTop:Ue,slideInEnd:qe,slideOutTop:We,slideOutEnd:Ke},me={wrapUpdate(t){"startViewTransition"in document?document.startViewTransition(()=>{P.flushSync(t)}):t()},maxVisibleToasts:5};function pe(t={}){const{maxVisibleToasts:e=1,wrapUpdate:n}=t,u=a.useMemo(()=>new he({maxVisibleToasts:e,wrapUpdate:n}),[e,n]);return $e(u)}const ve=new he(me),Ze=t=>{const e=$e(ve);return e.visibleToasts.length>0?P.createPortal(b.jsx(C,{...t,state:e}),document.body):null},Ge=({children:t,...e})=>{const n=pe(me);return b.jsxs(b.Fragment,{children:[typeof t=="function"?t(n):t,n.visibleToasts.length>0&&b.jsx(C,{...e,state:n})]})};function C({state:t,className:e,...n}){const u=a.useRef(null),{regionProps:i}=Fe(n,t,u);return b.jsx("div",{...i,ref:u,className:B.clsx(x.toastRegion,e),children:t.visibleToasts.map(o=>b.jsx(xe,{toast:o,state:t},o.key))})}function xe({state:t,className:e,...n}){const u=a.useRef(null),{toastProps:i,contentProps:o,titleProps:r,closeButtonProps:s}=ge(n,t),h=Te.iconMap[n.toast.content.type];return b.jsxs("div",{...i,ref:u,className:B.clsx(x.toast,x[n.toast.content.type],e),style:{viewTransitionName:n.toast.key},children:[b.jsxs("div",{...o,className:B.clsx(x.toastContent,o.className),children:[b.jsx(h,{className:x.icon,size:20,"aria-hidden":!0}),b.jsxs("div",{children:[b.jsx("p",{className:x.toastMessage,...r,children:n.toast.content.message}),n.toast.content.children]})]}),b.jsx(Ee.Button,{variant:"icon",...s,children:b.jsx(we.X,{size:20,"aria-hidden":!0})})]})}exports.GlobalToastRegion=Ze;exports.Toast=xe;exports.ToastProvider=Ge;exports.ToastRegion=C;exports.toastQueue=ve;exports.useToastState=pe;
|
|
1
|
+
"use strict";require('./assets/Toast.css');const b=require("react/jsx-runtime"),Ee=require("./Button-xc8A29pm.cjs"),a=require("react"),P=require("react-dom"),B=require("./clsx-DKOfLqne.cjs"),Te=require("./icon-map-9XcghDra.cjs"),g=require("./index-hURPlN0u.cjs"),k=require("./mergeProps-Du5A8xi8.cjs"),T=require("./utils-I-LGXGYH.cjs"),_=require("./useHover-eU40luVI.cjs"),Le=require("./useFocusWithin-TryC2Kkw.cjs"),A=require("./useLocalizedStringFormatter-CHAo1AyN.cjs"),_e=require("./filterDOMProps-RRlKPKX0.cjs"),we=require("./x-rV-nu490.cjs"),F=1,w=Symbol.for("react-aria-landmark-manager");function Be(t){return document.addEventListener("react-aria-landmark-manager-change",t),()=>document.removeEventListener("react-aria-landmark-manager-change",t)}function I(){if(typeof document>"u")return null;let t=document[w];return t&&t.version>=F?t:(document[w]=new Ce,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[w])}function ye(){return g.shimExports.useSyncExternalStore(Be,I,I)}class Ce{setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:!0}),document.addEventListener("focusin",this.focusinHandler,{capture:!0}),document.addEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:!0}),document.removeEventListener("focusin",this.focusinHandler,{capture:!0}),document.removeEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,n){var u,i;(i=this.landmarks.find(o=>o.ref.current===e))===null||i===void 0||(u=i.focus)===null||u===void 0||u.call(i,n)}getLandmarksByRole(e){return new Set(this.landmarks.filter(n=>n.role===e))}getLandmarkByRole(e){return this.landmarks.find(n=>n.role===e)}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find(i=>i.ref===e.ref)||!e.ref.current)return;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){this.landmarks=[e],this.checkLabels(e.role);return}let n=0,u=this.landmarks.length-1;for(;n<=u;){let i=Math.floor((n+u)/2),o=e.ref.current.compareDocumentPosition(this.landmarks[i].ref.current);!!(o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS)?n=i+1:u=i-1}this.landmarks.splice(n,0,e),this.checkLabels(e.role)}updateLandmark(e){let n=this.landmarks.findIndex(u=>u.ref===e.ref);n>=0&&(this.landmarks[n]={...this.landmarks[n],...e},this.checkLabels(this.landmarks[n].role))}removeLandmark(e){this.landmarks=this.landmarks.filter(n=>n.ref!==e),this.teardownIfNeeded()}checkLabels(e){let n=this.getLandmarksByRole(e);if(n.size>1){let u=[...n].filter(i=>!i.label);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));else if(process.env.NODE_ENV!=="production"){let i=[...n].map(r=>r.label);i.filter((r,s)=>i.indexOf(r)!==s).forEach(r=>{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: `,[...n].filter(s=>s.label===r).map(s=>s.ref.current))})}}}closestLandmark(e){let n=new Map(this.landmarks.map(i=>[i.ref.current,i])),u=e;for(;u&&!n.has(u)&&u!==document.body&&u.parentElement;)u=u.parentElement;return n.get(u)}getNextLandmark(e,{backward:n}){var u;let i=this.closestLandmark(e),o=n?this.landmarks.length-1:0;i&&(o=this.landmarks.indexOf(i)+(n?-1:1));let r=()=>{if(o<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;o=this.landmarks.length-1}else if(o>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;o=0}return o<0||o>=this.landmarks.length};if(r())return;let s=o;for(;!((u=this.landmarks[o].ref.current)===null||u===void 0)&&u.closest("[aria-hidden=true]");){if(o+=n?-1:1,r())return;if(o===s)break}return this.landmarks[o]}f6Handler(e){e.key==="F6"&&(e.altKey?this.focusMain():this.navigate(e.target,e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}focusMain(){let e=this.getLandmarkByRole("main");return e&&e.ref.current&&document.contains(e.ref.current)?(this.focusLandmark(e.ref.current,"forward"),!0):!1}navigate(e,n){let u=this.getNextLandmark(e,{backward:n});if(!u)return!1;if(u.lastFocused){let i=u.lastFocused;if(document.body.contains(i))return i.focus(),!0}return u.ref.current&&document.contains(u.ref.current)?(this.focusLandmark(u.ref.current,n?"backward":"forward"),!0):!1}focusinHandler(e){let n=this.closestLandmark(e.target);n&&n.ref.current!==e.target&&this.updateLandmark({ref:n.ref,lastFocused:e.target});let u=e.relatedTarget;if(u){let i=this.closestLandmark(u);i&&i.ref.current===u&&i.blur()}}focusoutHandler(e){let n=e.target,u=e.relatedTarget;if(!u||u===document){let i=this.closestLandmark(n);i&&i.ref.current===n&&i.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(n,u){let i=(u==null?void 0:u.from)||document.activeElement;return e.navigate(i,n==="backward")},focusNext(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!1)},focusPrevious(n){let u=(n==null?void 0:n.from)||document.activeElement;return e.navigate(u,!0)},focusMain(){return e.focusMain()},dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null)}}}registerLandmark(e){return this.landmarks.find(n=>n.ref===e.ref)?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=F,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}}function Ie(t,e){const{role:n,"aria-label":u,"aria-labelledby":i,focus:o}=t;let r=ye(),s=u||i,[m,f]=a.useState(!1),$=a.useCallback(()=>{f(!0)},[f]),p=a.useCallback(()=>{f(!1)},[f]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(r)return r.registerLandmark({ref:e,label:s,role:n,focus:o||$,blur:p})},[r,s,e,n,o,$,p]),a.useEffect(()=>{var c;m&&((c=e.current)===null||c===void 0||c.focus())},[m,e]),{landmarkProps:{role:n,tabIndex:m?-1:void 0,"aria-label":u,"aria-labelledby":i}}}var N={};N={close:"إغلاق",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} إشعار`,other:()=>`${e.number(t.count)} إشعارات`})}.`};var R={};R={close:"Затвори",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} известие`,other:()=>`${e.number(t.count)} известия`})}.`};var S={};S={close:"Zavřít",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámení`,other:()=>`${e.number(t.count)} oznámení`})}.`};var D={};D={close:"Luk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} besked`,other:()=>`${e.number(t.count)} beskeder`})}.`};var z={};z={close:"Schließen",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} Benachrichtigung`,other:()=>`${e.number(t.count)} Benachrichtigungen`})}.`};var q={};q={close:"Κλείσιμο",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ειδοποίηση`,other:()=>`${e.number(t.count)} ειδοποιήσεις`})}.`};var M={};M={close:"Close",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var O={};O={close:"Cerrar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificación`,other:()=>`${e.number(t.count)} notificaciones`})}.`};var j={};j={close:"Sule",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} teatis`,other:()=>`${e.number(t.count)} teatist`})}.`};var H={};H={close:"Sulje",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} ilmoitus`,other:()=>`${e.number(t.count)} ilmoitusta`})}.`};var V={};V={close:"Fermer",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notification`,other:()=>`${e.number(t.count)} notifications`})}.`};var U={};U={close:"סגור",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} התראה`,other:()=>`${e.number(t.count)} התראות`})}.`};var W={};W={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obavijest`,other:()=>`${e.number(t.count)} obavijesti`})}.`};var K={};K={close:"Bezárás",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} értesítés`,other:()=>`${e.number(t.count)} értesítés`})}.`};var Z={};Z={close:"Chiudi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notifica`,other:()=>`${e.number(t.count)} notifiche`})}.`};var G={};G={close:"閉じる",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個の通知`,other:()=>`${e.number(t.count)} 個の通知`})}。`};var Q={};Q={close:"닫기",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)}개 알림`,other:()=>`${e.number(t.count)}개 알림`})}.`};var J={};J={close:"Uždaryti",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} pranešimas`,other:()=>`${e.number(t.count)} pranešimai`})}.`};var X={};X={close:"Aizvērt",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} paziņojums`,other:()=>`${e.number(t.count)} paziņojumi`})}.`};var Y={};Y={close:"Lukk",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} varsling`,other:()=>`${e.number(t.count)} varsler`})}.`};var ee={};ee={close:"Sluiten",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} melding`,other:()=>`${e.number(t.count)} meldingen`})}.`};var te={};te={close:"Zamknij",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} powiadomienie`,few:()=>`${e.number(t.count)} powiadomienia`,many:()=>`${e.number(t.count)} powiadomień`,other:()=>`${e.number(t.count)} powiadomienia`})}.`};var ne={};ne={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ue={};ue={close:"Fechar",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificação`,other:()=>`${e.number(t.count)} notificações`})}.`};var ie={};ie={close:"Închideţi",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} notificare`,other:()=>`${e.number(t.count)} notificări`})}.`};var oe={};oe={close:"Закрыть",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} уведомление`,other:()=>`${e.number(t.count)} уведомления`})}.`};var re={};re={close:"Zatvoriť",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} oznámenie`,few:()=>`${e.number(t.count)} oznámenia`,other:()=>`${e.number(t.count)} oznámení`})}.`};var se={};se={close:"Zapri",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obvestilo`,two:()=>`${e.number(t.count)} obvestili`,few:()=>`${e.number(t.count)} obvestila`,other:()=>`${e.number(t.count)} obvestil`})}.`};var ae={};ae={close:"Zatvori",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} obaveštenje`,other:()=>`${e.number(t.count)} obaveštenja`})}.`};var ce={};ce={close:"Stäng",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} meddelande`,other:()=>`${e.number(t.count)} meddelanden`})}.`};var le={};le={close:"Kapat",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} bildirim`,other:()=>`${e.number(t.count)} bildirim`})}.`};var de={};de={close:"Закрити",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} сповіщення`,other:()=>`${e.number(t.count)} сповіщення`})}.`};var fe={};fe={close:"关闭",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 个通知`,other:()=>`${e.number(t.count)} 个通知`})}。`};var be={};be={close:"關閉",notifications:(t,e)=>`${e.plural(t.count,{one:()=>`${e.number(t.count)} 個通知`,other:()=>`${e.number(t.count)} 個通知`})}。`};var y={};y={"ar-AE":N,"bg-BG":R,"cs-CZ":S,"da-DK":D,"de-DE":z,"el-GR":q,"en-US":M,"es-ES":O,"et-EE":j,"fi-FI":H,"fr-FR":V,"he-IL":U,"hr-HR":W,"hu-HU":K,"it-IT":Z,"ja-JP":G,"ko-KR":Q,"lt-LT":J,"lv-LV":X,"nb-NO":Y,"nl-NL":ee,"pl-PL":te,"pt-BR":ne,"pt-PT":ue,"ro-RO":ie,"ru-RU":oe,"sk-SK":re,"sl-SI":se,"sr-SP":ae,"sv-SE":ce,"tr-TR":le,"uk-UA":de,"zh-CN":fe,"zh-TW":be};function Pe(t){return t&&t.__esModule?t.default:t}function ge(t,e,n){let{key:u,timer:i,timeout:o}=t.toast;a.useEffect(()=>{if(!(i==null||o==null))return i.reset(o),()=>{i.pause()}},[i,o]);let r=k.$bdb11010cef70236$export$f680877a34711e37(),s=k.$bdb11010cef70236$export$b4cc09c592e8fdb8(),m=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Pe(y),"@react-aria/toast"),[f,$]=a.useState(!1);return a.useEffect(()=>{$(!0)},[]),{toastProps:{..._e.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:"alertdialog","aria-modal":"false","aria-labelledby":t["aria-labelledby"]||r,"aria-describedby":t["aria-describedby"]||s,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true","aria-hidden":f?void 0:"true"},titleProps:{id:r},descriptionProps:{id:s},closeButtonProps:{"aria-label":m.format("close"),onPress:()=>e.close(u)}}}function Ae(t){return t&&t.__esModule?t.default:t}function Fe(t,e,n){let u=A.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ae(y),"@react-aria/toast"),{landmarkProps:i}=Ie({role:"region","aria-label":t["aria-label"]||u.format("notifications",{count:e.visibleToasts.length})},n),o=a.useRef(!1),r=a.useRef(!1),s=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{o.current||r.current?e.pauseAll():e.resumeAll()}),{hoverProps:m}=_.$6179b936705e76d3$export$ae780daf29e6d456({onHoverStart:()=>{o.current=!0,s()},onHoverEnd:()=>{o.current=!1,s()}}),f=a.useRef([]),$=a.useRef(e.visibleToasts),p=a.useRef(null);k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(p.current===-1||e.visibleToasts.length===0||!n.current){f.current=[],$.current=e.visibleToasts;return}if(f.current=[...n.current.querySelectorAll('[role="alertdialog"]')],$.current.length===e.visibleToasts.length&&e.visibleToasts.every((d,h)=>d.key===$.current[h].key)){$.current=e.visibleToasts;return}let l=$.current.map((d,h)=>({...d,i:h,isRemoved:!e.visibleToasts.some(v=>d.key===v.key)})),L=l.findIndex(d=>d.i===p.current&&d.isRemoved);if(L>-1){var E;if(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"&&(!((E=c.current)===null||E===void 0)&&E.isConnected))T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current);else{let d=0,h,v;for(;d<=L;)l[d].isRemoved||(v=Math.max(0,d-1)),d++;for(;d<l.length;){if(!l[d].isRemoved){h=d-1;break}d++}v===void 0&&h===void 0&&(v=0),v>=0&&v<f.current.length?T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[v]):h>=0&&h<f.current.length&&T.$7215afc6de606d6b$export$de79e2c695e052f3(f.current[h])}}$.current=e.visibleToasts},[e.visibleToasts,n,s]);let c=a.useRef(null),{focusWithinProps:ke}=Le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:l=>{r.current=!0,c.current=l.relatedTarget,s()},onBlurWithin:()=>{r.current=!1,c.current=null,s()}});return a.useEffect(()=>{var l;e.visibleToasts.length===0&&(!((l=c.current)===null||l===void 0)&&l.isConnected)&&(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n,e.visibleToasts.length]),a.useEffect(()=>()=>{var l;!((l=c.current)===null||l===void 0)&&l.isConnected&&(_.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="pointer"?T.$7215afc6de606d6b$export$de79e2c695e052f3(c.current):c.current.focus(),c.current=null)},[n]),{regionProps:k.$3ef42575df84b30b$export$9d1611c77c2fe928(i,m,ke,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:l=>{let L=l.target.closest('[role="alertdialog"]');p.current=f.current.findIndex(E=>E===L)},onBlur:()=>{p.current=-1}})}}function $e(t){let e=a.useCallback(i=>t.subscribe(i),[t]),n=a.useCallback(()=>t.visibleToasts,[t]);return{visibleToasts:g.shimExports.useSyncExternalStore(e,n,n),add:(i,o)=>t.add(i,o),close:i=>t.close(i),pauseAll:()=>t.pauseAll(),resumeAll:()=>t.resumeAll()}}class me{runWithWrapUpdate(e,n){this.wrapUpdate?this.wrapUpdate(e,n):e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,n={}){let u="_"+Math.random().toString(36).slice(2),i={...n,content:e,key:u,timer:n.timeout?new Ne(()=>this.close(u),n.timeout):void 0};return this.queue.unshift(i),this.updateVisibleToasts("add"),u}close(e){let n=this.queue.findIndex(o=>o.key===e);if(n>=0){var u,i;(u=(i=this.queue[n]).onClose)===null||u===void 0||u.call(i),this.queue.splice(n,1)}this.updateVisibleToasts("remove")}updateVisibleToasts(e){this.visibleToasts=this.queue.slice(0,this.maxVisibleToasts),this.runWithWrapUpdate(()=>{for(let n of this.subscriptions)n()},e)}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}clear(){this.queue=[],this.updateVisibleToasts("clear")}constructor(e){this.queue=[],this.subscriptions=new Set,this.visibleToasts=[];var n;this.maxVisibleToasts=(n=e==null?void 0:e.maxVisibleToasts)!==null&&n!==void 0?n:1/0,this.wrapUpdate=e==null?void 0:e.wrapUpdate}}class Ne{reset(e){this.remaining=e,this.resume()}pause(){this.timerId!=null&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout(()=>{this.timerId=null,this.remaining=0,this.callback()},this.remaining))}constructor(e,n){this.startTime=null,this.remaining=n,this.callback=e}}const Re="_toastRegion_3qumz_49",Se="_toast_3qumz_49",De="_success_3qumz_97",ze="_info_3qumz_105",qe="_important_3qumz_113",Me="_warning_3qumz_121",Oe="_icon_3qumz_129",je="_toastContent_3qumz_143",He="_toastMessage_3qumz_150",Ve="_slideInTop_3qumz_1",Ue="_slideInEnd_3qumz_1",We="_slideOutTop_3qumz_1",Ke="_slideOutEnd_3qumz_1",x={toastRegion:Re,toast:Se,success:De,info:ze,important:qe,warning:Me,icon:Oe,toastContent:je,toastMessage:He,slideInTop:Ve,slideInEnd:Ue,slideOutTop:We,slideOutEnd:Ke},he={wrapUpdate(t){"startViewTransition"in document?document.startViewTransition(()=>{P.flushSync(t)}):t()},maxVisibleToasts:5};function pe(t={}){const{maxVisibleToasts:e=1,wrapUpdate:n}=t,u=a.useMemo(()=>new me({maxVisibleToasts:e,wrapUpdate:n}),[e,n]);return $e(u)}const ve=new me(he),Ze=t=>{const e=$e(ve);return e.visibleToasts.length>0?P.createPortal(b.jsx(C,{...t,state:e}),document.body):null},Ge=({children:t,...e})=>{const n=pe(he);return b.jsxs(b.Fragment,{children:[typeof t=="function"?t(n):t,n.visibleToasts.length>0&&b.jsx(C,{...e,state:n})]})};function C({state:t,className:e,...n}){const u=a.useRef(null),{regionProps:i}=Fe(n,t,u);return b.jsx("div",{...i,ref:u,className:B.clsx(x.toastRegion,e),children:t.visibleToasts.map(o=>b.jsx(xe,{toast:o,state:t},o.key))})}function xe({state:t,className:e,...n}){const u=a.useRef(null),{toastProps:i,contentProps:o,titleProps:r,closeButtonProps:s}=ge(n,t),m=Te.iconMap[n.toast.content.type];return b.jsxs("div",{...i,ref:u,className:B.clsx(x.toast,x[n.toast.content.type],e),style:{viewTransitionName:n.toast.key},children:[b.jsxs("div",{...o,className:B.clsx(x.toastContent,o.className),children:[b.jsx(m,{className:x.icon,size:20,"aria-hidden":!0}),b.jsxs("div",{children:[b.jsx("p",{className:x.toastMessage,...r,children:n.toast.content.message}),n.toast.content.children]})]}),b.jsx(Ee.Button,{variant:"icon",...s,children:b.jsx(we.X,{size:20,"aria-hidden":!0})})]})}exports.GlobalToastRegion=Ze;exports.Toast=xe;exports.ToastProvider=Ge;exports.ToastRegion=C;exports.toastQueue=ve;exports.useToastState=pe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/ToggleButtonGroup.css');const h=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";require('./assets/ToggleButtonGroup.css');const h=require("react/jsx-runtime"),P=require("./utils-cBvgilDa.cjs"),g=require("./mergeProps-Du5A8xi8.cjs"),y=require("./filterDOMProps-RRlKPKX0.cjs"),a=require("react"),q=require("./useToggleState-DaxmInOW.cjs"),w=require("./useFocusRing-Cig5Y0l-.cjs"),C=require("./useHover-eU40luVI.cjs"),D=require("./Button.module-COONZqNU.cjs"),m=require("./clsx-DKOfLqne.cjs"),M=require("./useControlledState-D0L6S_5r.cjs"),F=require("./useButton-Bh3duhYL.cjs"),E=require("./FocusScope-Dv0F-mG2.cjs"),N=require("./context-UOrD6Zxk.cjs");function B(t,e,s){const{isSelected:l}=e,{isPressed:d,buttonProps:r}=F.$701a24aa0da5b062$export$ea18c227d4417cc3({...t,onPress:g.$ff5963eb1fccf552$export$e08e3b67e392101e(e.toggle,t.onPress)},s);return{isPressed:d,isSelected:l,isDisabled:t.isDisabled||!1,buttonProps:g.$3ef42575df84b30b$export$9d1611c77c2fe928(r,{"aria-pressed":l})}}function R(t,e){const{"aria-label":s,"aria-labelledby":l,orientation:d="horizontal"}=t;let[r,n]=a.useState(!1);g.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{var o;n(!!(e.current&&(!((o=e.current.parentElement)===null||o===void 0)&&o.closest('[role="toolbar"]'))))});const{direction:i}=N.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),f=i==="rtl"&&d==="horizontal";let u=E.$9bf71ea28793e738$export$c5251b9e124bf29(e);const x=o=>{if(o.currentTarget.contains(o.target)){if(d==="horizontal"&&o.key==="ArrowRight"||d==="vertical"&&o.key==="ArrowDown")f?u.focusPrevious():u.focusNext();else if(d==="horizontal"&&o.key==="ArrowLeft"||d==="vertical"&&o.key==="ArrowUp")f?u.focusNext():u.focusPrevious();else if(o.key==="Tab"){o.stopPropagation(),c.current=document.activeElement,o.shiftKey?u.focusFirst():u.focusLast();return}else return;o.stopPropagation(),o.preventDefault()}},c=a.useRef(null),v=o=>{!o.currentTarget.contains(o.relatedTarget)&&!c.current&&(c.current=o.target)},S=o=>{var b;if(c.current&&!o.currentTarget.contains(o.relatedTarget)&&(!((b=e.current)===null||b===void 0)&&b.contains(o.target))){var $;($=c.current)===null||$===void 0||$.focus(),c.current=null}};return{toolbarProps:{...y.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:r?"group":"toolbar","aria-orientation":d,"aria-label":s,"aria-labelledby":s==null?l:void 0,onKeyDownCapture:r?void 0:x,onFocusCapture:r?void 0:S,onBlurCapture:r?void 0:v}}}function _(t,e,s){let{isDisabled:l}=t,{toolbarProps:d}=R(t,s);return{groupProps:{...d,role:e.selectionMode==="single"?"radiogroup":d.role,"aria-disabled":l}}}function p(t,e,s){let l={isSelected:e.selectedKeys.has(t.id),defaultSelected:!1,setSelected(f){e.setSelected(t.id,f)},toggle(){e.toggleKey(t.id)}},{isPressed:d,isSelected:r,isDisabled:n,buttonProps:i}=B({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},l,s);return e.selectionMode==="single"&&(i.role="radio",i["aria-checked"]=l.isSelected,delete i["aria-pressed"]),{isPressed:d,isSelected:r,isDisabled:n,buttonProps:i}}function z(t){let{selectionMode:e="single",disallowEmptySelection:s,isDisabled:l=!1}=t,[d,r]=M.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.useMemo(()=>t.selectedKeys?new Set(t.selectedKeys):void 0,[t.selectedKeys]),a.useMemo(()=>t.defaultSelectedKeys?new Set(t.defaultSelectedKeys):new Set,[t.defaultSelectedKeys]),t.onSelectionChange);return{selectionMode:e,isDisabled:l,selectedKeys:d,setSelectedKeys:r,toggleKey(n){let i;e==="multiple"?(i=new Set(d),i.has(n)&&(!s||i.size>1)?i.delete(n):i.add(n)):i=new Set(d.has(n)&&!s?[]:[n]),r(i)},setSelected(n,i){i!==d.has(n)&&this.toggleKey(n)}}}const A=a.createContext({}),K=a.createContext(null),G=a.forwardRef(function(e,s){[e,s]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,A);let l=z(e),{groupProps:d}=_(e,l,s),r=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isDisabled:l.isDisabled,state:l},defaultClassName:"react-aria-ToggleButtonGroup"}),n=y.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return a.createElement("div",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(n,r,d),ref:s,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},a.createElement(K.Provider,{value:l},r.children))}),H=a.createContext({}),L=a.forwardRef(function(e,s){[e,s]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,H);let l=a.useContext(K),d=q.$3017fa7ffdddec74$export$8042c6c013fd5226(l&&e.id!=null?{isSelected:l.selectedKeys.has(e.id),onChange($){l.setSelected(e.id,$)}}:e),{buttonProps:r,isPressed:n,isSelected:i,isDisabled:f}=l&&e.id!=null?p({...e,id:e.id},l,s):B({...e,id:e.id!=null?String(e.id):void 0},d,s),{focusProps:u,isFocused:x,isFocusVisible:c}=w.$f7dceffc5ad7768b$export$4e328f61c538687f(e),{hoverProps:v,isHovered:S}=C.$6179b936705e76d3$export$ae780daf29e6d456(e),o=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,values:{isHovered:S,isPressed:n,isFocused:x,isSelected:d.isSelected,isFocusVisible:c,isDisabled:f,state:d},defaultClassName:"react-aria-ToggleButton"}),b=y.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete b.id,delete b.onClick,a.createElement("button",{...g.$3ef42575df84b30b$export$9d1611c77c2fe928(b,o,r,u,v),ref:s,slot:e.slot||void 0,"data-focused":x||void 0,"data-disabled":f||void 0,"data-pressed":n||void 0,"data-selected":i||void 0,"data-hovered":S||void 0,"data-focus-visible":c||void 0})}),j="_group_q04hh_1",k="_toggleButton_q04hh_10",T={group:j,toggleButton:k},O=({...t})=>h.jsx(L,{...t,className:m.clsx(D.ButtonStyles.button,D.ButtonStyles.iconBtn,T.toggleButton,t.className)}),V=({...t})=>h.jsx(G,{...t,className:m.clsx(T.group,t.className)});exports.ToggleButton=O;exports.ToggleButtonGroup=V;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
-
import { $ as K, a as B } from "./utils-
|
|
3
|
-
import { e as _, a as S, $ as E } from "./mergeProps-
|
|
2
|
+
import { $ as K, a as B } from "./utils-BMBoiyL7.js";
|
|
3
|
+
import { e as _, a as S, $ as E } from "./mergeProps-Ct8m5-xW.js";
|
|
4
4
|
import { $ as x } from "./filterDOMProps-wsa9OcNI.js";
|
|
5
5
|
import P, { useState as F, useRef as N, useMemo as y, forwardRef as w, createContext as v, useContext as z } from "react";
|
|
6
6
|
import { $ as R } from "./useToggleState-BVOqL4hI.js";
|
|
7
|
-
import { $ as A } from "./useFocusRing-
|
|
8
|
-
import { $ as L } from "./useHover-
|
|
9
|
-
import { B as h } from "./Button.module-
|
|
10
|
-
import { c as T } from "./clsx-
|
|
7
|
+
import { $ as A } from "./useFocusRing-Copf_tx8.js";
|
|
8
|
+
import { $ as L } from "./useHover-zCCNtF6g.js";
|
|
9
|
+
import { B as h } from "./Button.module-Cm0H98vy.js";
|
|
10
|
+
import { c as T } from "./clsx-jbLnTBqA.js";
|
|
11
11
|
import { $ as k } from "./useControlledState-u436Wbp1.js";
|
|
12
|
-
import { $ as G } from "./useButton-
|
|
13
|
-
import { b as H } from "./FocusScope-
|
|
14
|
-
import { $ as V } from "./context-
|
|
12
|
+
import { $ as G } from "./useButton-A-VOfwuT.js";
|
|
13
|
+
import { b as H } from "./FocusScope-8ILtcq9W.js";
|
|
14
|
+
import { $ as V } from "./context-Dl_saGB6.js";
|
|
15
15
|
import './assets/ToggleButtonGroup.css';function p(t, e, d) {
|
|
16
16
|
const { isSelected: a } = e, { isPressed: s, buttonProps: r } = G({
|
|
17
17
|
...t,
|