@midas-ds/components 14.0.0 → 15.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-DTbu3lqx.js +343 -0
- package/AccordionItem-tWS22wDv.cjs +1 -0
- package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
- package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
- package/Button-1sEX8jKn.cjs +1 -0
- package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
- package/{Button-B6lxIKPk.js → Button-BbfVT9Yl.js} +122 -116
- package/{Button-CRIYvCRM.js → Button-DdXFHfXw.js} +1 -1
- package/CHANGELOG.md +49 -0
- package/{Card-CfosvMF5.js → Card-CdqGFff2.js} +3 -3
- package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
- package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
- package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
- package/Checkbox-BgrLxY6P.cjs +1 -0
- package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
- package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-CtJJqk_q.js} +7 -7
- package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-thvsvOqD.cjs} +1 -1
- package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
- package/Collection-vGO6v3_U.cjs +1 -0
- package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-Ckna0otR.cjs} +1 -1
- package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-aF2UxI20.js} +2 -2
- package/{ComboBox-D7eKe-M5.js → ComboBox-BDX4BYWJ.js} +244 -229
- package/ComboBox-DFPrJUoV.cjs +1 -0
- package/{DateField-BszKZodr.cjs → DateField-B92Cqf9K.cjs} +1 -1
- package/{DateField-xyhyDy7u.js → DateField-BPRWrVcu.js} +4 -4
- package/DateInputDivider-CCrXjsUB.cjs +1 -0
- package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-DOHpVaNE.js} +191 -188
- package/DateRangePicker-COSTCOt8.cjs +6 -0
- package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-Cmt9NC35.js} +119 -115
- package/Dialog-CPuJA2fm.js +256 -0
- package/{Dialog-DOyFzvUa.js → Dialog-D4Py85wi.js} +712 -694
- package/Dialog-DtOf0vWx.cjs +1 -0
- package/Dialog-DycTLpdr.cjs +6 -0
- package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
- package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
- package/{Dropdown-uC9wc8vd.js → Dropdown-B4lwe0Hn.js} +2 -2
- package/{Dropdown-5rmvcHD_.cjs → Dropdown-_g9l5k07.cjs} +1 -1
- package/{FieldError-C4kD4yJZ.js → FieldError-CIxlNQCM.js} +13 -13
- package/{FieldError-C4WBoCRc.cjs → FieldError-JWxR_EqN.cjs} +1 -1
- package/{FileUpload-CTbh7Gic.cjs → FileUpload-C0TjNkuh.cjs} +2 -2
- package/{FileUpload-01wGpykv.js → FileUpload-DLBP3VPp.js} +260 -534
- package/Group-B0Wj9pI8.cjs +1 -0
- package/Group-BAd7alBM.js +46 -0
- package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
- package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
- package/{InfoBanner-CRSz8DK2.js → InfoBanner-D7Ta-7PI.js} +1 -1
- package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
- package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
- package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
- package/{Label-CkIRTC0_.cjs → Label-DpY2SZdQ.cjs} +1 -1
- package/{Label-CV9p0K2n.js → Label-FfEnd4ai.js} +4 -4
- package/Layout-BrEuHajQ.cjs +16 -0
- package/{Layout-IeVrHpT0.js → Layout-Hd1e_MEA.js} +62 -63
- package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
- package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
- package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
- package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
- package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
- package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
- package/{ListBox-2eEa1l0M.js → ListBox-5GK4ZRj1.js} +189 -178
- package/ListBox-FD30iELk.cjs +1 -0
- package/{ListBoxSection-dksiACMZ.js → ListBox-LJ3VgZMr.js} +230 -266
- package/ListBox-u6ZXp5Yi.cjs +1 -0
- package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-B4GFbdYf.js} +3 -3
- package/ListBoxLoadMoreItem-DMUOzVtt.cjs +1 -0
- package/ListBoxSection-CBlpg0AG.cjs +1 -0
- package/ListBoxSection-DjGs1ndn.js +51 -0
- package/ListKeyboardDelegate-8zuIfwQ7.cjs +1 -0
- package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BBmpJ-2O.js} +36 -40
- package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
- package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
- package/Popover-CS8Yyfrq.js +39 -0
- package/Popover-DpB0XDBp.cjs +1 -0
- package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
- package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
- package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BZqAQTV3.cjs} +1 -1
- package/{ProgressBar-B0WEQkyq.js → ProgressBar-BpsvPCKk.js} +12 -12
- package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
- package/RSPContexts-XUvspq3j.cjs +1 -0
- package/Radio-B3FBTn4F.cjs +1 -0
- package/Radio-LevFYAg4.js +340 -0
- package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-CH0CyBui.cjs} +2 -2
- package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-DT_KVd80.js} +58 -58
- package/{SearchField-DnBBlPT7.cjs → SearchField-BX7P7BgV.cjs} +1 -1
- package/{SearchField-wojUSY2S.js → SearchField-C-TFzcJF.js} +3 -3
- package/Select-C-ykeY_T.js +773 -0
- package/Select-CiCng7ZP.js +678 -0
- package/Select-D4wi-0Jw.cjs +1 -0
- package/Select-JIDW2mN8.cjs +1 -0
- package/{FocusScope-8ILtcq9W.js → SelectionIndicator-C2E23-zO.js} +270 -174
- package/SelectionIndicator-ClG0GpJu.cjs +1 -0
- package/SelectionManager-CNJmHeCF.cjs +1 -0
- package/SelectionManager-DoNLJm8c.js +1063 -0
- package/{Separator-COlhRmJF.js → Separator-CQfDz_zr.js} +10 -10
- package/{Separator-DcbM84B8.cjs → Separator-CSyYDGNE.cjs} +1 -1
- package/{Separator-BQkxEZC9.cjs → Separator-DCi4bnBr.cjs} +1 -1
- package/{Separator--4b7vckr.js → Separator-DLr4kUJD.js} +2 -2
- package/Spinner-D6Fcu_Dp.js +54 -0
- package/Spinner-DIapnvIz.cjs +6 -0
- package/TabList-BBmBumm6.js +394 -0
- package/TabList-DVzXuGXA.cjs +1 -0
- package/Table-B1nxmW14.cjs +16 -0
- package/{Table-cCSOrPkK.js → Table-DxqKDp7N.js} +707 -703
- package/Tag-BL-_PONN.cjs +1 -0
- package/Tag-DX1X_NZE.js +774 -0
- package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
- package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
- package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
- package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
- package/{TextArea-B5TsyJxa.cjs → TextArea-Bjf8CBp0.cjs} +1 -1
- package/{TextArea-Cado2arG.js → TextArea-CJPBvogq.js} +8 -8
- package/TextField-DtD9-arA.cjs +1 -0
- package/{TextField-5AI6T1ol.js → TextField-DyR61bjZ.js} +10 -10
- package/{Toast-CgXRE33Y.js → Toast-B99bLWnh.js} +12 -12
- package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
- package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-CFRutAZ4.js} +82 -78
- package/ToggleButtonGroup-dnvnzkaD.cjs +1 -0
- package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
- package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
- package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
- package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/ListBox.css +1 -0
- package/assets/Popover.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Select2.css +1 -0
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/default.css +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- 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/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/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/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +99 -95
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/intlStrings-Cd44R5hT.js +278 -0
- package/intlStrings-ClBuC6xN.cjs +1 -0
- 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/legacy-select/Select.d.ts +8 -0
- package/legacy-select/SelectTrigger.d.ts +10 -0
- package/legacy-select/index.cjs +1 -0
- package/legacy-select/index.d.ts +2 -0
- package/legacy-select/index.js +4 -0
- package/legacy-select/intl/translations.json.d.ts +17 -0
- package/{select → legacy-select}/types.d.ts +2 -2
- package/legacy-select/useMultiSelect.d.ts +5 -0
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/ListBox.d.ts +1 -2
- package/list-box/ListBoxHeader.d.ts +3 -0
- package/list-box/ListBoxItem.d.ts +9 -3
- package/list-box/ListBoxSection.d.ts +1 -1
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +9 -7
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +4 -4
- package/popover/Popover.d.ts +2 -1
- 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/scrollIntoView-BVI21Y4-.js +65 -0
- package/scrollIntoView-BueMOyGp.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +33 -4
- package/select/SelectAll.d.ts +1 -0
- package/select/SelectTags.d.ts +4 -0
- package/select/SelectTrigger.d.ts +4 -8
- package/select/SelectValueTag.d.ts +5 -0
- package/select/index.cjs +1 -1
- package/select/index.d.ts +1 -2
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +2 -2
- package/spinner/Spinner.d.ts +5 -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/Tabs.d.ts +2 -9
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +0 -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/TextArea.d.ts +3 -2
- package/textfield/TextField.d.ts +3 -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-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
- package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
- package/useDateFormatter-BrrFo4nY.cjs +1 -0
- package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
- package/{useField-sSWPm-He.js → useField-Bx76iuoW.js} +1 -1
- package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
- package/{useFilter-DHcouDzv.js → useFilter-Dn4vTT3G.js} +1 -1
- package/{useFilter-DlZLqsJD.cjs → useFilter-eOgdlVLd.cjs} +1 -1
- package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
- package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
- package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
- package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
- package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
- package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
- package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
- package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
- package/useHasTabbableChild-BJ_VejL5.cjs +1 -0
- package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-DpISgPsS.js} +1 -1
- package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
- package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-Zvo5KTxM.js} +2 -2
- package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
- package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
- package/{useListState-D2yPZrFZ.js → useListState-CP7AKhOX.js} +1 -1
- package/{useListState-BdC308Sq.cjs → useListState-DZFWpD-x.cjs} +1 -1
- package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
- package/usePress-DmU79HEg.cjs +7 -0
- package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-GSY0f4qW.js} +1 -1
- package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-JCvbhUVI.cjs} +1 -1
- package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
- package/{useTextField-DjxrmW7d.js → useTextField-I3QVGvyX.js} +4 -4
- package/utils/types.d.ts +5 -0
- package/utils-CtICjCYt.cjs +1 -0
- package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
- package/utils-DRIRjPUS.cjs +1 -0
- package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
- package/AccordionItem-BJw5IKe0.js +0 -334
- package/AccordionItem-DhMimhYo.cjs +0 -1
- package/Button-BTX5G3le.cjs +0 -1
- package/Checkbox-D-CFY6QF.cjs +0 -1
- package/Collection-DaZzboRu.cjs +0 -1
- package/ComboBox-C4NybZ32.cjs +0 -1
- package/DateInputDivider-BgXKFwB0.cjs +0 -1
- package/DateRangePicker-DTPkr3hX.cjs +0 -6
- package/Dialog-DLnopN3Z.js +0 -237
- package/Dialog-DNu42oLH.cjs +0 -1
- package/Dialog-w6EBWT__.cjs +0 -1
- package/FocusScope-Dv0F-mG2.cjs +0 -1
- package/Group-C2hEIsGV.js +0 -45
- package/Group-cuyk9Hsy.cjs +0 -1
- package/Layout-CVnlO10z.cjs +0 -16
- package/ListBox-Bx9M5vqb.cjs +0 -1
- package/ListBoxLoadMoreItem-BBE3OF4J.cjs +0 -1
- package/ListBoxSection-kujY2gUl.cjs +0 -1
- package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
- package/Popover-BI2Koco0.cjs +0 -1
- package/Popover-D7_IfJ3o.js +0 -38
- package/RSPContexts-D8hmBfGm.cjs +0 -1
- package/Radio-D6KNkSA2.js +0 -333
- package/Radio-DsVsutMH.cjs +0 -1
- package/Select-D9h_RQ2k.cjs +0 -1
- package/Select-Dc6y8gPR.js +0 -654
- package/SelectionManager-D-4ThfPZ.js +0 -1043
- package/SelectionManager-FYrDfe5v.cjs +0 -1
- package/Spinner-CTha503N.js +0 -47
- package/Spinner-DKQ9_SQB.cjs +0 -6
- package/TabList-BhC96APe.cjs +0 -1
- package/TabList-P5HnizZt.js +0 -393
- package/Table-BB8Ag5_3.cjs +0 -16
- package/Tag-D2vh0KRD.js +0 -765
- package/Tag-D32MGLjS.cjs +0 -1
- package/TextField-4xfAzdBI.cjs +0 -1
- package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
- package/assets/ListBoxSection.css +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/select/useMultiSelect.d.ts +0 -4
- package/useDateFormatter-D0bVjgIb.cjs +0 -1
- package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
- package/useObserveElement-BdI4zgd7.js +0 -27
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-Dj3t18Pf.cjs +0 -7
- package/utils-I-LGXGYH.cjs +0 -1
- package/utils-cBvgilDa.cjs +0 -1
- package/variables-B3KEYyhW.cjs +0 -1
- package/variables-DzXcMW2k.js +0 -5
- /package/{select → legacy-select}/HiddenMultiSelect.d.ts +0 -0
- /package/{select → legacy-select}/MultiSelectValueTag.d.ts +0 -0
- /package/{select → legacy-select}/SelectFieldError.d.ts +0 -0
- /package/{select → legacy-select}/SelectListBox.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectListState.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectState.d.ts +0 -0
- /package/{select → legacy-select}/utils.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const b=require("./utils-
|
|
1
|
+
"use strict";const b=require("./utils-CtICjCYt.cjs"),c=require("react"),a=c.createContext({}),n=c.forwardRef(function(e,t){[e,t]=b.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,a);let{elementType:r="span",...$}=e;return c.createElement(r,{className:"react-aria-Text",...$,ref:t})});exports.$514c0188e459b4c0$export$5f1af8db9871e1d6=n;exports.$514c0188e459b4c0$export$9afb8bc826b033ea=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { c as b } from "./clsx-jbLnTBqA.js";
|
|
3
|
-
import { a as y } from "./Text-
|
|
3
|
+
import { a as y } from "./Text-bqP9NeVg.js";
|
|
4
4
|
import './assets/Text.css';const _ = "_description_1w67v_21", o = {
|
|
5
5
|
"body-01": "_body-01_1w67v_1",
|
|
6
6
|
"body-02": "_body-02_1w67v_2",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Text.css');const y=require("react/jsx-runtime"),p=require("./clsx-DKOfLqne.cjs"),x=require("./Text-
|
|
1
|
+
"use strict";require('./assets/Text.css');const y=require("react/jsx-runtime"),p=require("./clsx-DKOfLqne.cjs"),x=require("./Text-0wXj3J8E.cjs"),_="_description_1w67v_21",e={"body-01":"_body-01_1w67v_1","body-02":"_body-02_1w67v_2",description:_},t="span",a=({children:o,className:c,variant:n="body-02",isExpressive:d=!1,elementType:r=t,...s})=>{const i={"body-01":e["body-01"],"body-02":e["body-02"]},b={className:p.clsx(s.slot==="description"?e.description:i[n],c),elementType:r||t,...d&&{"data-expressive":!0},...s};return y.jsx(x.$514c0188e459b4c0$export$5f1af8db9871e1d6,{...b,children:o})};exports.Text=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),y=require("react"),x=require("./utils-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),y=require("react"),x=require("./utils-CtICjCYt.cjs"),l=require("./Input-Bda0PCu5.cjs"),u=require("./clsx-DKOfLqne.cjs"),i=require("./TextField.module-DmRrFHra.cjs"),h=require("./Text-D5OSv6Uv.cjs"),F=require("./Button-BEWKXjlP.cjs"),T=require("./useLocalizedStringFormatter-BSac43NO.cjs"),f=require("./TextField-DtD9-arA.cjs"),b=require("./FieldError-JWxR_EqN.cjs"),g=require("./CharacterCounter-CTpQ12f7.cjs"),N=require("./clsx-C11secjj.cjs"),m=require("./Label-DpY2SZdQ.cjs");function S(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return s.default=e,Object.freeze(s)}const d=S(y),$=d.forwardRef((e,s)=>{[e]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,f.$bcdf0525bf22703d$export$2129e27b3ef0d483);const{label:r,description:o,errorMessage:c,showCounter:n,errorPosition:a="top",size:j="large",popover:w,children:q}=e;return t.jsxs(f.$bcdf0525bf22703d$export$2c73285ae9390cec,{...e,className:N.clsx(i.styles.textField,{[i.styles.medium]:j==="medium"}),children:[t.jsx(m.LabelWrapper,{popover:w,children:r&&t.jsx(m.Label,{children:r})}),o&&t.jsx(h.Text,{slot:"description",children:o}),n&&t.jsx(g.CharacterCounter,{isLonely:!o}),a==="top"&&t.jsx(b.FieldError,{"data-testid":"fieldError",children:c}),q,a==="bottom"&&t.jsx(b.FieldError,{"data-testid":"fieldError",className:i.styles.bottomError,children:c})]})}),P={hide:"Hide",show:"Show"},R={hide:"Dölj",show:"Visa"},v={en:P,sv:R},E=d.forwardRef((e,s)=>{[e,s]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,l.$3985021b0ad6602f$export$37fb8590cf2c088c);const[r,o]=d.useState(!1),c=()=>o(a=>!a),n=T.useLocalizedStringFormatter(v);return t.jsxs(t.Fragment,{children:[r&&t.jsx(h.Text,{slot:"description",className:i.styles.passwordText,children:e.value}),t.jsx(F.Button,{variant:"tertiary",onPress:c,className:i.styles.passwordButton,children:r?n.format("hide"):n.format("show")})]})}),p=d.forwardRef(({skipContext:e=!1,...s},r)=>{const[o,c]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(s,r,l.$3985021b0ad6602f$export$37fb8590cf2c088c),n=e?r:c,a=e?s:o;return t.jsxs("div",{className:i.styles.wrap,children:[t.jsx(l.$3985021b0ad6602f$export$f5b8910cec6cf069,{...a,ref:n,className:u.clsx(i.styles.input,a.className)}),a.type==="password"&&t.jsx(E,{...a})]})}),L=d.forwardRef(({className:e,list:s,type:r,...o},c)=>t.jsx($,{...o,children:t.jsx(p,{className:u.clsx(e),list:s,ref:c,type:r,skipContext:!0})})),B=d.forwardRef(({className:e,cols:s,rows:r,wrap:o,...c},n)=>t.jsx($,{...c,children:t.jsx(f.$216918bed6669f72$export$f5c9f3c2c4054eec,{className:u.clsx(i.styles.textArea,e),cols:s,ref:n,rows:r,wrap:o})}));exports.Input=p;exports.TextArea=B;exports.TextField=L;exports.TextFieldBase=$;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e, Fragment as N } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { $ as f } from "./utils-
|
|
4
|
-
import { $ as h, a as F } from "./Input-
|
|
3
|
+
import { $ as f } from "./utils-D2iKpxcZ.js";
|
|
4
|
+
import { $ as h, a as F } from "./Input-CQzv-D9g.js";
|
|
5
5
|
import { c as l } from "./clsx-jbLnTBqA.js";
|
|
6
6
|
import { s as d } from "./TextField.module-C03d0VY9.js";
|
|
7
|
-
import { T as $ } from "./Text-
|
|
8
|
-
import { B as T } from "./Button-
|
|
7
|
+
import { T as $ } from "./Text-BBFWBNAH.js";
|
|
8
|
+
import { B as T } from "./Button-DdXFHfXw.js";
|
|
9
9
|
import { u as g } from "./useLocalizedStringFormatter-aOhh7wdl.js";
|
|
10
|
-
import { $ as P, a as R, b as v } from "./TextField-
|
|
11
|
-
import { F as p } from "./FieldError-
|
|
12
|
-
import { C as L } from "./CharacterCounter-
|
|
10
|
+
import { $ as P, a as R, b as v } from "./TextField-DyR61bjZ.js";
|
|
11
|
+
import { F as p } from "./FieldError-CIxlNQCM.js";
|
|
12
|
+
import { C as L } from "./CharacterCounter-gbDGfize.js";
|
|
13
13
|
import { c as S } from "./clsx-OuTLNxxd.js";
|
|
14
|
-
import { a as y, L as B } from "./Label-
|
|
14
|
+
import { a as y, L as B } from "./Label-FfEnd4ai.js";
|
|
15
15
|
const x = n.forwardRef((r, t) => {
|
|
16
16
|
[r] = f(r, t, R);
|
|
17
17
|
const {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./utils-CtICjCYt.cjs"),m=require("./FieldError-JWxR_EqN.cjs"),E=require("./RSPContexts-XUvspq3j.cjs"),I=require("./Form-BuOomA4T.cjs"),g=require("./Group-B0Wj9pI8.cjs"),y=require("./Input-Bda0PCu5.cjs"),C=require("./Button-1sEX8jKn.cjs"),t=require("react"),D=require("./useHover-DULSfLuK.cjs"),B=require("./useFocusRing-C-XVcAE5.cjs"),M=require("./mergeProps-Du5A8xi8.cjs"),O=require("./Text-0wXj3J8E.cjs"),S=require("./Hidden-BxRZGdEW.cjs"),A=require("./filterDOMProps-RRlKPKX0.cjs"),V=require("./useTextField-CiWV3eeD.cjs"),q=t.createContext({});let _=c=>{let{onHoverStart:e,onHoverChange:d,onHoverEnd:o,...i}=c;return i};const N=t.forwardRef(function(e,d){[e,d]=a.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,q);let{hoverProps:o,isHovered:i}=D.$6179b936705e76d3$export$ae780daf29e6d456(e),{isFocused:n,isFocusVisible:l,focusProps:r}=B.$f7dceffc5ad7768b$export$4e328f61c538687f({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",$=a.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isHovered:i,isFocused:n,isFocusVisible:l,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-TextArea"});return t.createElement("textarea",{...M.$3ef42575df84b30b$export$9d1611c77c2fe928(_(e),r,o),...$,ref:d,"data-focused":n||void 0,"data-disabled":e.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":l||void 0,"data-invalid":s||void 0})}),p=t.createContext(null),k=S.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,d){[e,d]=a.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,p);let{validationBehavior:o}=a.$64fa3d84918910a7$export$fabf2dc03a41866e(I.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var i,n;let l=(n=(i=e.validationBehavior)!==null&&i!==void 0?i:o)!==null&&n!==void 0?n:"native",r=t.useRef(null);[e,r]=a.$64fa3d84918910a7$export$29f1550f4b0d4415(e,r,E.$4e85f108e88277b8$export$698f465ec27e93df);let[s,$]=a.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),[F,R]=t.useState("input"),{labelProps:h,inputProps:b,descriptionProps:H,errorMessageProps:T,...f}=V.$2d73ec29415bd339$export$712718f7aec83d5({...a.$64fa3d84918910a7$export$ef03459518577ad4(e),inputElementType:F,label:$,validationBehavior:l},r),v=t.useCallback(u=>{r.current=u,u&&R(u instanceof HTMLTextAreaElement?"textarea":"input")},[r]),x=a.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:f.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),P=A.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete P.id,t.createElement("div",{...P,...x,ref:d,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":f.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},t.createElement(a.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[C.$01b77f81d0f07f68$export$75b6ee27786ba447,{...h,ref:s}],[y.$3985021b0ad6602f$export$37fb8590cf2c088c,{...b,ref:v}],[q,{...b,ref:v}],[g.$a049562f99e7db0e$export$f9c6924e160136d1,{role:"presentation",isInvalid:f.isInvalid,isDisabled:e.isDisabled||!1}],[O.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:H,errorMessage:T}}],[m.$ee014567cb39d3f0$export$ff05c3ac10437e03,f]]},x.children))});exports.$216918bed6669f72$export$f5c9f3c2c4054eec=N;exports.$bcdf0525bf22703d$export$2129e27b3ef0d483=p;exports.$bcdf0525bf22703d$export$2c73285ae9390cec=k;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { $ as c, a as p, c as I, d as y, e as D, f as g } from "./utils-
|
|
2
|
-
import { $ as B } from "./FieldError-
|
|
3
|
-
import {
|
|
1
|
+
import { $ as c, a as p, c as I, d as y, e as D, f as g } from "./utils-D2iKpxcZ.js";
|
|
2
|
+
import { $ as B } from "./FieldError-CIxlNQCM.js";
|
|
3
|
+
import { $ as C } from "./RSPContexts-B0lEq7qq.js";
|
|
4
4
|
import { $ as M } from "./Form-CXcEMuBf.js";
|
|
5
|
-
import { $ as O } from "./Group-
|
|
6
|
-
import { $ as _ } from "./Input-
|
|
7
|
-
import {
|
|
5
|
+
import { $ as O } from "./Group-BAd7alBM.js";
|
|
6
|
+
import { $ as _ } from "./Input-CQzv-D9g.js";
|
|
7
|
+
import { c as q } from "./Button-BbfVT9Yl.js";
|
|
8
8
|
import b, { forwardRef as A, createContext as P, useRef as S, useState as V, useCallback as N } from "react";
|
|
9
|
-
import { $ as k } from "./useHover-
|
|
10
|
-
import { $ as w } from "./useFocusRing-
|
|
9
|
+
import { $ as k } from "./useHover-DkC5FyNd.js";
|
|
10
|
+
import { $ as w } from "./useFocusRing-CcxI7nbg.js";
|
|
11
11
|
import { a as L } from "./mergeProps-Ct8m5-xW.js";
|
|
12
|
-
import { $ as j } from "./Text-
|
|
12
|
+
import { $ as j } from "./Text-bqP9NeVg.js";
|
|
13
13
|
import { $ as z } from "./Hidden-B5ir3Lei.js";
|
|
14
14
|
import { $ as G } from "./filterDOMProps-wsa9OcNI.js";
|
|
15
|
-
import { $ as J } from "./useTextField-
|
|
15
|
+
import { $ as J } from "./useTextField-I3QVGvyX.js";
|
|
16
16
|
const h = /* @__PURE__ */ P({});
|
|
17
17
|
let K = (s) => {
|
|
18
18
|
let { onHoverStart: e, onHoverChange: a, onHoverEnd: r, ...d } = s;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as p, jsxs as _, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
-
import { B as Le } from "./Button-
|
|
3
|
-
import
|
|
2
|
+
import { B as Le } from "./Button-DdXFHfXw.js";
|
|
3
|
+
import g, { useState as A, 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
5
|
import { c as I } from "./clsx-jbLnTBqA.js";
|
|
6
6
|
import { i as ye } from "./icon-map-uS87FT_Q.js";
|
|
7
7
|
import { s as N } from "./index-DEx4upZl.js";
|
|
8
|
-
import { $ as F, c as Ie, b as Ce, d as Pe, a as
|
|
9
|
-
import { m as E } from "./utils-
|
|
10
|
-
import { $ as
|
|
11
|
-
import { $ as Ne } from "./useFocusWithin-
|
|
8
|
+
import { $ as F, c as Ie, b as Ce, d as Pe, a as ge } from "./mergeProps-Ct8m5-xW.js";
|
|
9
|
+
import { m as E } from "./utils-Dxh86KaB.js";
|
|
10
|
+
import { $ as Ae, g as B } from "./useHover-DkC5FyNd.js";
|
|
11
|
+
import { $ as Ne } from "./useFocusWithin-DhXBuB2O.js";
|
|
12
12
|
import { $ as S } from "./useLocalizedStringFormatter-CSEh15AZ.js";
|
|
13
13
|
import { $ as Fe } from "./filterDOMProps-wsa9OcNI.js";
|
|
14
14
|
import { X as Se } from "./x-C2xUHAEl.js";
|
|
@@ -243,7 +243,7 @@ class ze {
|
|
|
243
243
|
}
|
|
244
244
|
function Me(t, e) {
|
|
245
245
|
const { role: n, "aria-label": i, "aria-labelledby": o, focus: u } = t;
|
|
246
|
-
let r = Re(), a = i || o, [b, d] =
|
|
246
|
+
let r = Re(), a = i || o, [b, d] = A(!1), f = w(() => {
|
|
247
247
|
d(!0);
|
|
248
248
|
}, [
|
|
249
249
|
d
|
|
@@ -611,7 +611,7 @@ function He(t, e, n) {
|
|
|
611
611
|
o,
|
|
612
612
|
u
|
|
613
613
|
]);
|
|
614
|
-
let r = Ie(), a = Ce(), b = S(Oe(C), "@react-aria/toast"), [d, f] =
|
|
614
|
+
let r = Ie(), a = Ce(), b = S(Oe(C), "@react-aria/toast"), [d, f] = A(!1);
|
|
615
615
|
return T(() => {
|
|
616
616
|
f(!0);
|
|
617
617
|
}, []), {
|
|
@@ -653,7 +653,7 @@ function Ue(t, e, n) {
|
|
|
653
653
|
})
|
|
654
654
|
}, n), u = v(!1), r = v(!1), a = Pe(() => {
|
|
655
655
|
u.current || r.current ? e.pauseAll() : e.resumeAll();
|
|
656
|
-
}), { hoverProps: b } =
|
|
656
|
+
}), { hoverProps: b } = Ae({
|
|
657
657
|
onHoverStart: () => {
|
|
658
658
|
u.current = !0, a();
|
|
659
659
|
},
|
|
@@ -720,7 +720,7 @@ function Ue(t, e, n) {
|
|
|
720
720
|
}, [
|
|
721
721
|
n
|
|
722
722
|
]), {
|
|
723
|
-
regionProps:
|
|
723
|
+
regionProps: ge(o, 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
|
|
@@ -880,7 +880,7 @@ function ke({
|
|
|
880
880
|
className: e,
|
|
881
881
|
...n
|
|
882
882
|
}) {
|
|
883
|
-
const i =
|
|
883
|
+
const i = g.useRef(null), { regionProps: o } = Ue(n, t, i);
|
|
884
884
|
return /* @__PURE__ */ p(
|
|
885
885
|
"div",
|
|
886
886
|
{
|
|
@@ -903,7 +903,7 @@ function rt({
|
|
|
903
903
|
className: e,
|
|
904
904
|
...n
|
|
905
905
|
}) {
|
|
906
|
-
const i =
|
|
906
|
+
const i = g.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];
|
|
@@ -1 +1 @@
|
|
|
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
|
+
"use strict";require('./assets/Toast.css');const b=require("react/jsx-runtime"),Ee=require("./Button-BEWKXjlP.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-DRIRjPUS.cjs"),_=require("./useHover-DULSfLuK.cjs"),Le=require("./useFocusWithin-GBjoTL5o.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,21 +1,21 @@
|
|
|
1
1
|
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
-
import { $ as K, a as B } from "./utils-
|
|
3
|
-
import {
|
|
2
|
+
import { $ as K, a as B } from "./utils-D2iKpxcZ.js";
|
|
3
|
+
import { d as M, c as _, a as F } from "./SelectionIndicator-C2E23-zO.js";
|
|
4
|
+
import { e as N, a as S, $ as z } from "./mergeProps-Ct8m5-xW.js";
|
|
4
5
|
import { $ as x } from "./filterDOMProps-wsa9OcNI.js";
|
|
5
|
-
import
|
|
6
|
-
import { $ as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { $ as
|
|
9
|
-
import { B as
|
|
6
|
+
import $, { useState as R, useRef as A, useMemo as h, forwardRef as w, createContext as v, useContext as L } from "react";
|
|
7
|
+
import { $ as k } from "./useToggleState-BVOqL4hI.js";
|
|
8
|
+
import { $ as G } from "./useFocusRing-CcxI7nbg.js";
|
|
9
|
+
import { $ as H } from "./useHover-DkC5FyNd.js";
|
|
10
|
+
import { B as y } from "./Button.module-Cm0H98vy.js";
|
|
10
11
|
import { c as T } from "./clsx-jbLnTBqA.js";
|
|
11
|
-
import { $ as
|
|
12
|
-
import { $ as
|
|
13
|
-
import {
|
|
14
|
-
import { $ as V } from "./context-Dl_saGB6.js";
|
|
12
|
+
import { $ as V } from "./useControlledState-u436Wbp1.js";
|
|
13
|
+
import { $ as q } from "./useButton-CRgN6aZf.js";
|
|
14
|
+
import { $ as I } from "./context-Dl_saGB6.js";
|
|
15
15
|
import './assets/ToggleButtonGroup.css';function p(t, e, d) {
|
|
16
|
-
const { isSelected: a } = e, { isPressed: s, buttonProps: r } =
|
|
16
|
+
const { isSelected: a } = e, { isPressed: s, buttonProps: r } = q({
|
|
17
17
|
...t,
|
|
18
|
-
onPress:
|
|
18
|
+
onPress: N(e.toggle, t.onPress)
|
|
19
19
|
}, d);
|
|
20
20
|
return {
|
|
21
21
|
isPressed: s,
|
|
@@ -26,16 +26,16 @@ import './assets/ToggleButtonGroup.css';function p(t, e, d) {
|
|
|
26
26
|
})
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function O(t, e) {
|
|
30
30
|
const { "aria-label": d, "aria-labelledby": a, orientation: s = "horizontal" } = t;
|
|
31
|
-
let [r,
|
|
32
|
-
|
|
31
|
+
let [r, i] = R(!1);
|
|
32
|
+
z(() => {
|
|
33
33
|
var o;
|
|
34
|
-
|
|
34
|
+
i(!!(e.current && (!((o = e.current.parentElement) === null || o === void 0) && o.closest('[role="toolbar"]'))));
|
|
35
35
|
});
|
|
36
|
-
const { direction:
|
|
37
|
-
let c =
|
|
38
|
-
const
|
|
36
|
+
const { direction: l } = I(), u = l === "rtl" && s === "horizontal";
|
|
37
|
+
let c = M(e);
|
|
38
|
+
const g = (o) => {
|
|
39
39
|
if (o.currentTarget.contains(o.target)) {
|
|
40
40
|
if (s === "horizontal" && o.key === "ArrowRight" || s === "vertical" && o.key === "ArrowDown")
|
|
41
41
|
u ? c.focusPrevious() : c.focusNext();
|
|
@@ -48,9 +48,9 @@ function q(t, e) {
|
|
|
48
48
|
return;
|
|
49
49
|
o.stopPropagation(), o.preventDefault();
|
|
50
50
|
}
|
|
51
|
-
}, n =
|
|
51
|
+
}, n = A(null), P = (o) => {
|
|
52
52
|
!o.currentTarget.contains(o.relatedTarget) && !n.current && (n.current = o.target);
|
|
53
|
-
},
|
|
53
|
+
}, m = (o) => {
|
|
54
54
|
var f;
|
|
55
55
|
if (n.current && !o.currentTarget.contains(o.relatedTarget) && (!((f = e.current) === null || f === void 0) && f.contains(o.target))) {
|
|
56
56
|
var b;
|
|
@@ -66,14 +66,14 @@ function q(t, e) {
|
|
|
66
66
|
"aria-orientation": s,
|
|
67
67
|
"aria-label": d,
|
|
68
68
|
"aria-labelledby": d == null ? a : void 0,
|
|
69
|
-
onKeyDownCapture: r ? void 0 :
|
|
70
|
-
onFocusCapture: r ? void 0 :
|
|
71
|
-
onBlurCapture: r ? void 0 :
|
|
69
|
+
onKeyDownCapture: r ? void 0 : g,
|
|
70
|
+
onFocusCapture: r ? void 0 : m,
|
|
71
|
+
onBlurCapture: r ? void 0 : P
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
let { isDisabled: a } = t, { toolbarProps: s } =
|
|
75
|
+
function j(t, e, d) {
|
|
76
|
+
let { isDisabled: a } = t, { toolbarProps: s } = O(t, d);
|
|
77
77
|
return {
|
|
78
78
|
groupProps: {
|
|
79
79
|
...s,
|
|
@@ -82,7 +82,7 @@ function I(t, e, d) {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function U(t, e, d) {
|
|
86
86
|
let a = {
|
|
87
87
|
isSelected: e.selectedKeys.has(t.id),
|
|
88
88
|
defaultSelected: !1,
|
|
@@ -92,22 +92,22 @@ function O(t, e, d) {
|
|
|
92
92
|
toggle() {
|
|
93
93
|
e.toggleKey(t.id);
|
|
94
94
|
}
|
|
95
|
-
}, { isPressed: s, isSelected: r, isDisabled:
|
|
95
|
+
}, { isPressed: s, isSelected: r, isDisabled: i, buttonProps: l } = p({
|
|
96
96
|
...t,
|
|
97
97
|
id: void 0,
|
|
98
98
|
isDisabled: t.isDisabled || e.isDisabled
|
|
99
99
|
}, a, d);
|
|
100
|
-
return e.selectionMode === "single" && (
|
|
100
|
+
return e.selectionMode === "single" && (l.role = "radio", l["aria-checked"] = a.isSelected, delete l["aria-pressed"]), {
|
|
101
101
|
isPressed: s,
|
|
102
102
|
isSelected: r,
|
|
103
|
-
isDisabled:
|
|
104
|
-
buttonProps:
|
|
103
|
+
isDisabled: i,
|
|
104
|
+
buttonProps: l
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
let { selectionMode: e = "single", disallowEmptySelection: d, isDisabled: a = !1 } = t, [s, r] =
|
|
107
|
+
function J(t) {
|
|
108
|
+
let { selectionMode: e = "single", disallowEmptySelection: d, isDisabled: a = !1 } = t, [s, r] = V(h(() => t.selectedKeys ? new Set(t.selectedKeys) : void 0, [
|
|
109
109
|
t.selectedKeys
|
|
110
|
-
]),
|
|
110
|
+
]), h(() => t.defaultSelectedKeys ? new Set(t.defaultSelectedKeys) : /* @__PURE__ */ new Set(), [
|
|
111
111
|
t.defaultSelectedKeys
|
|
112
112
|
]), t.onSelectionChange);
|
|
113
113
|
return {
|
|
@@ -115,58 +115,58 @@ function j(t) {
|
|
|
115
115
|
isDisabled: a,
|
|
116
116
|
selectedKeys: s,
|
|
117
117
|
setSelectedKeys: r,
|
|
118
|
-
toggleKey(
|
|
119
|
-
let
|
|
120
|
-
e === "multiple" ? (
|
|
121
|
-
|
|
122
|
-
]), r(
|
|
118
|
+
toggleKey(i) {
|
|
119
|
+
let l;
|
|
120
|
+
e === "multiple" ? (l = new Set(s), l.has(i) && (!d || l.size > 1) ? l.delete(i) : l.add(i)) : l = new Set(s.has(i) && !d ? [] : [
|
|
121
|
+
i
|
|
122
|
+
]), r(l);
|
|
123
123
|
},
|
|
124
|
-
setSelected(
|
|
125
|
-
|
|
124
|
+
setSelected(i, l) {
|
|
125
|
+
l !== s.has(i) && this.toggleKey(i);
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
[e, d] = K(e, d,
|
|
131
|
-
let a =
|
|
129
|
+
const Q = /* @__PURE__ */ v({}), C = /* @__PURE__ */ v(null), W = /* @__PURE__ */ w(function(e, d) {
|
|
130
|
+
[e, d] = K(e, d, Q);
|
|
131
|
+
let a = J(e), { groupProps: s } = j(e, a, d), r = B({
|
|
132
132
|
...e,
|
|
133
133
|
values: {
|
|
134
134
|
isDisabled: a.isDisabled,
|
|
135
135
|
state: a
|
|
136
136
|
},
|
|
137
137
|
defaultClassName: "react-aria-ToggleButtonGroup"
|
|
138
|
-
}),
|
|
138
|
+
}), i = x(e, {
|
|
139
139
|
global: !0
|
|
140
140
|
});
|
|
141
|
-
return /* @__PURE__ */
|
|
142
|
-
...S(
|
|
141
|
+
return /* @__PURE__ */ $.createElement("div", {
|
|
142
|
+
...S(i, r, s),
|
|
143
143
|
ref: d,
|
|
144
144
|
slot: e.slot || void 0,
|
|
145
145
|
"data-orientation": e.orientation || "horizontal",
|
|
146
146
|
"data-disabled": e.isDisabled || void 0
|
|
147
|
-
}, /* @__PURE__ */
|
|
147
|
+
}, /* @__PURE__ */ $.createElement(C.Provider, {
|
|
148
148
|
value: a
|
|
149
|
-
}, r.children));
|
|
150
|
-
}),
|
|
151
|
-
[e, d] = K(e, d,
|
|
152
|
-
let a =
|
|
149
|
+
}, /* @__PURE__ */ $.createElement(_, null, r.children)));
|
|
150
|
+
}), X = /* @__PURE__ */ v({}), Y = /* @__PURE__ */ w(function(e, d) {
|
|
151
|
+
[e, d] = K(e, d, X);
|
|
152
|
+
let a = L(C), s = k(a && e.id != null ? {
|
|
153
153
|
isSelected: a.selectedKeys.has(e.id),
|
|
154
154
|
onChange(b) {
|
|
155
155
|
a.setSelected(e.id, b);
|
|
156
156
|
}
|
|
157
|
-
} : e), { buttonProps: r, isPressed:
|
|
157
|
+
} : e), { buttonProps: r, isPressed: i, isSelected: l, isDisabled: u } = a && e.id != null ? U({
|
|
158
158
|
...e,
|
|
159
159
|
id: e.id
|
|
160
160
|
}, a, d) : p({
|
|
161
161
|
...e,
|
|
162
162
|
id: e.id != null ? String(e.id) : void 0
|
|
163
|
-
}, s, d), { focusProps: c, isFocused:
|
|
163
|
+
}, s, d), { focusProps: c, isFocused: g, isFocusVisible: n } = G(e), { hoverProps: P, isHovered: m } = H(e), o = B({
|
|
164
164
|
...e,
|
|
165
165
|
id: void 0,
|
|
166
166
|
values: {
|
|
167
|
-
isHovered:
|
|
168
|
-
isPressed:
|
|
169
|
-
isFocused:
|
|
167
|
+
isHovered: m,
|
|
168
|
+
isPressed: i,
|
|
169
|
+
isFocused: g,
|
|
170
170
|
isSelected: s.isSelected,
|
|
171
171
|
isFocusVisible: n,
|
|
172
172
|
isDisabled: u,
|
|
@@ -176,39 +176,43 @@ const U = /* @__PURE__ */ v({}), C = /* @__PURE__ */ v(null), J = /* @__PURE__ *
|
|
|
176
176
|
}), f = x(e, {
|
|
177
177
|
global: !0
|
|
178
178
|
});
|
|
179
|
-
return delete f.id, delete f.onClick, /* @__PURE__ */
|
|
180
|
-
...S(f, o, r, c,
|
|
179
|
+
return delete f.id, delete f.onClick, /* @__PURE__ */ $.createElement("button", {
|
|
180
|
+
...S(f, o, r, c, P),
|
|
181
181
|
ref: d,
|
|
182
182
|
slot: e.slot || void 0,
|
|
183
|
-
"data-focused":
|
|
183
|
+
"data-focused": g || void 0,
|
|
184
184
|
"data-disabled": u || void 0,
|
|
185
|
-
"data-pressed":
|
|
186
|
-
"data-selected":
|
|
187
|
-
"data-hovered":
|
|
185
|
+
"data-pressed": i || void 0,
|
|
186
|
+
"data-selected": l || void 0,
|
|
187
|
+
"data-hovered": m || void 0,
|
|
188
188
|
"data-focus-visible": n || void 0
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
},
|
|
194
|
-
|
|
189
|
+
}, /* @__PURE__ */ $.createElement(F.Provider, {
|
|
190
|
+
value: {
|
|
191
|
+
isSelected: l
|
|
192
|
+
}
|
|
193
|
+
}, o.children));
|
|
194
|
+
}), Z = "_group_q04hh_1", ee = "_toggleButton_q04hh_10", E = {
|
|
195
|
+
group: Z,
|
|
196
|
+
toggleButton: ee
|
|
197
|
+
}, ge = ({ ...t }) => /* @__PURE__ */ D(
|
|
198
|
+
Y,
|
|
195
199
|
{
|
|
196
200
|
...t,
|
|
197
201
|
className: T(
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
202
|
+
y.button,
|
|
203
|
+
y.iconBtn,
|
|
204
|
+
E.toggleButton,
|
|
201
205
|
t.className
|
|
202
206
|
)
|
|
203
207
|
}
|
|
204
|
-
),
|
|
205
|
-
|
|
208
|
+
), me = ({ ...t }) => /* @__PURE__ */ D(
|
|
209
|
+
W,
|
|
206
210
|
{
|
|
207
211
|
...t,
|
|
208
|
-
className: T(
|
|
212
|
+
className: T(E.group, t.className)
|
|
209
213
|
}
|
|
210
214
|
);
|
|
211
215
|
export {
|
|
212
|
-
|
|
213
|
-
|
|
216
|
+
ge as T,
|
|
217
|
+
me as a
|
|
214
218
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ToggleButtonGroup.css');const m=require("react/jsx-runtime"),P=require("./utils-CtICjCYt.cjs"),y=require("./SelectionIndicator-ClG0GpJu.cjs"),g=require("./mergeProps-Du5A8xi8.cjs"),h=require("./filterDOMProps-RRlKPKX0.cjs"),a=require("react"),w=require("./useToggleState-DaxmInOW.cjs"),C=require("./useFocusRing-C-XVcAE5.cjs"),M=require("./useHover-DULSfLuK.cjs"),D=require("./Button.module-COONZqNU.cjs"),B=require("./clsx-DKOfLqne.cjs"),E=require("./useControlledState-D0L6S_5r.cjs"),F=require("./useButton-C0r5nrqs.cjs"),p=require("./context-UOrD6Zxk.cjs");function K(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 N(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}=p.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),f=i==="rtl"&&d==="horizontal";let u=y.$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:{...h.$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 R(t,e,s){let{isDisabled:l}=t,{toolbarProps:d}=N(t,s);return{groupProps:{...d,role:e.selectionMode==="single"?"radiogroup":d.role,"aria-disabled":l}}}function _(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}=K({...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]=E.$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({}),T=a.createContext(null),G=a.forwardRef(function(e,s){[e,s]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,A);let l=z(e),{groupProps:d}=R(e,l,s),r=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isDisabled:l.isDisabled,state:l},defaultClassName:"react-aria-ToggleButtonGroup"}),n=h.$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(T.Provider,{value:l},a.createElement(y.$c8a5a149f625efcf$export$758399f318e6385a,null,r.children)))}),H=a.createContext({}),L=a.forwardRef(function(e,s){[e,s]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(e,s,H);let l=a.useContext(T),d=w.$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?_({...e,id:e.id},l,s):K({...e,id:e.id!=null?String(e.id):void 0},d,s),{focusProps:u,isFocused:x,isFocusVisible:c}=C.$f7dceffc5ad7768b$export$4e328f61c538687f(e),{hoverProps:v,isHovered:S}=M.$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=h.$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},a.createElement(y.$1d5b8b8664671ef2$export$c9549807523555e0.Provider,{value:{isSelected:i}},o.children))}),j="_group_q04hh_1",k="_toggleButton_q04hh_10",q={group:j,toggleButton:k},I=({...t})=>m.jsx(L,{...t,className:B.clsx(D.ButtonStyles.button,D.ButtonStyles.iconBtn,q.toggleButton,t.className)}),O=({...t})=>m.jsx(G,{...t,className:B.clsx(q.group,t.className)});exports.ToggleButton=I;exports.ToggleButtonGroup=O;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as N, jsx as h } from "react/jsx-runtime";
|
|
2
2
|
import { c as k } from "./clsx-jbLnTBqA.js";
|
|
3
|
-
import { d as U, a as W, b as j, e as z, c as K, f as V, $ as Y } from "./OverlayArrow-
|
|
4
|
-
import { $ as q, f as G, a as J } from "./utils-
|
|
3
|
+
import { d as U, a as W, b as j, e as z, c as K, f as V, $ as Y } from "./OverlayArrow-CjGslX2c.js";
|
|
4
|
+
import { $ as q, f as G, a as J } from "./utils-D2iKpxcZ.js";
|
|
5
5
|
import { a as E, c as Q } from "./mergeProps-Ct8m5-xW.js";
|
|
6
6
|
import { $ as _ } from "./filterDOMProps-wsa9OcNI.js";
|
|
7
|
-
import { a as X, d as Z } from "./useFocusable-
|
|
7
|
+
import { a as X, d as Z } from "./useFocusable-BJj-Bkig.js";
|
|
8
8
|
import c, { useContext as T, useState as ee, useMemo as M, useRef as m, useEffect as y, forwardRef as te, createContext as L } from "react";
|
|
9
9
|
import re from "react-dom";
|
|
10
10
|
import { $ as oe } from "./SSRProvider-D8lZ0o6A.js";
|
|
11
|
-
import { $ as H,
|
|
11
|
+
import { $ as H, g as ne, a as le } from "./useHover-DkC5FyNd.js";
|
|
12
12
|
import './assets/Tooltip.css';const w = /* @__PURE__ */ c.createContext(null);
|
|
13
13
|
function ae(e) {
|
|
14
14
|
let { children: r } = e, t = T(w), [l, i] = ee(0), a = M(() => ({
|