@midas-ds/components 11.1.0 → 12.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-DEiRuizp.js +361 -0
- package/AccordionItem-Dhr7uo8u.cjs +1 -0
- package/BadgeContainer-CxVmqJ7g.cjs +1 -0
- package/BadgeContainer-DGJGJMPi.js +37 -0
- package/{Breadcrumbs-BBzSV4SK.js → Breadcrumbs-CEyKlcGU.js} +11 -11
- package/{Breadcrumbs-CFUryOhf.cjs → Breadcrumbs-CnGzvtbn.cjs} +1 -1
- package/{Button-Dq6ugqxT.cjs → Button-DQm2iqKU.cjs} +1 -1
- package/{Button-DExMoP5f.cjs → Button-DZzQGk-L.cjs} +1 -1
- package/{Button-CepQFEit.js → Button-DtC_ZOyd.js} +12 -12
- package/{Button-BjMaGya2.js → Button-akT6Hvug.js} +1 -1
- package/CHANGELOG.md +74 -0
- package/{Card-BRs1FKX5.js → Card-CwwVnA_a.js} +5 -5
- package/Card-DPfOZC7f.cjs +1 -0
- package/{CharacterCounter-DpBDwvLw.js → CharacterCounter-DPphWPzA.js} +5 -5
- package/{CharacterCounter-DSFBv3Rw.cjs → CharacterCounter-DQJVM-mZ.cjs} +1 -1
- package/{Checkbox-EB_SCBEo.js → Checkbox-BN_3F2Hl.js} +21 -21
- package/{Checkbox-Co3h0hur.cjs → Checkbox-CZtCj4yR.cjs} +1 -1
- package/{CheckboxGroup-oosHSGAt.js → CheckboxGroup--xgOT1Do.js} +11 -11
- package/{CheckboxGroup-CT_eqERw.cjs → CheckboxGroup-DGHaqRvb.cjs} +1 -1
- package/{Collection-BtBX5IMY.cjs → Collection-B1xL4EdF.cjs} +1 -1
- package/{Collection-D2jVTmDW.js → Collection-C5vE9MtJ.js} +11 -11
- package/{ColorSchemeSwitch-owUryjYz.cjs → ColorSchemeSwitch-DtyJ9-5B.cjs} +3 -3
- package/{ColorSchemeSwitch-Cnyb9EKC.js → ColorSchemeSwitch-DyZ9FAKG.js} +12 -12
- package/{ComboBox-D4MsSPBu.js → ComboBox-Dn3tQzri.js} +93 -97
- package/{ComboBox-CQ49PhNd.cjs → ComboBox-UadZMhiR.cjs} +1 -1
- package/{DateField-BURrxhil.cjs → DateField-CNEoLyf5.cjs} +1 -1
- package/{DateField-COs1-CkQ.js → DateField-CZmLugT0.js} +4 -4
- package/{DateInputDivider-ToFY-yjB.cjs → DateInputDivider-CCjiq90K.cjs} +1 -1
- package/{DateInputDivider-B3oE1_tB.js → DateInputDivider-CJEGWmG0.js} +22 -22
- package/DateRangePicker-DhgLEa9P.cjs +6 -0
- package/{DateRangePicker-CvEycxmX.js → DateRangePicker-WQ97Psz7.js} +184 -197
- package/{Dialog-DtHk3eXI.cjs → Dialog-BT0tVGQb.cjs} +1 -1
- package/{Dialog-DKHo0W9B.js → Dialog-BuJdAr0D.js} +48 -48
- package/Dialog-DYK8lySl.cjs +1 -0
- package/Dialog-L53DWF0Z.js +220 -0
- package/{DragAndDrop-DOXLfJaA.js → DragAndDrop-DKxsUpmW.js} +9 -9
- package/{DragAndDrop-CSg60YQE.cjs → DragAndDrop-Dgfq6uJ0.cjs} +1 -1
- package/{Dropdown-D6WCi_Ll.js → Dropdown-BWbdSQ9U.js} +35 -34
- package/Dropdown-CJ-sujKv.cjs +6 -0
- package/FieldError-BlKkw9YL.js +46 -0
- package/{FieldError-Bv3Q6ZP-.cjs → FieldError-BvU0sueN.cjs} +1 -1
- package/{FileUpload-BokzdXVc.js → FileUpload-B89QfnCB.js} +13 -13
- package/{FileUpload-Bz9md5zc.cjs → FileUpload-KQ1XAKAc.cjs} +1 -1
- package/{FocusScope-vcXLOQiu.cjs → FocusScope-CAgWgk3N.cjs} +1 -1
- package/{FocusScope-BCsrRPqD.js → FocusScope-CEgd3xCY.js} +17 -17
- package/{Grid--OhtgCo6.js → Grid-B2av0vt8.js} +6 -9
- package/Grid-Db5wZrw6.cjs +1 -0
- package/{GridItem-XgHmZWXY.cjs → GridItem-BnyULDnc.cjs} +1 -1
- package/{GridItem-DlbSdRmB.js → GridItem-orSzD7H5.js} +27 -30
- package/{Group-B0vQfHDy.js → Group-B3mRMVy7.js} +11 -11
- package/{Group-DOpbdoAi.cjs → Group-Cdy6z9ra.cjs} +1 -1
- package/{Heading-D2y_kiC0.js → Heading-DDhdwRAW.js} +7 -7
- package/Heading-OUPkdoEJ.cjs +1 -0
- package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
- package/InfoBanner-DpLcq_1R.cjs +1 -0
- package/InfoBanner-U5hxOipC.js +99 -0
- package/{Input-n-Z20KbW.js → Input-BnpBRnJz.js} +9 -9
- package/{Input-MJji5hhq.cjs → Input-DIhhWEPW.cjs} +1 -1
- package/{Label-DA6FZwy0.js → Label-ByWt6Lfh.js} +24 -24
- package/Label-COpr4xVt.cjs +1 -0
- package/Layout-BR3Or1Ga.cjs +16 -0
- package/Layout-Bdqauktv.js +498 -0
- package/{Link-CibH8uRY.js → Link-CM2N5Jq-.js} +7 -7
- package/{Link-ovwNVMfg.js → Link-Dnnv00g9.js} +1 -1
- package/{Link-ESjrl63P.cjs → Link-Dq8IFDBx.cjs} +1 -1
- package/{Link-CidjjqHb.cjs → Link-ceVlGaWQ.cjs} +1 -1
- package/{LinkButton-B6AWNiRn.cjs → LinkButton-BJA9_HzL.cjs} +1 -1
- package/{LinkButton-BkZULm2a.js → LinkButton-DH3Nfdis.js} +1 -1
- package/{ListBox-B0E1hdEt.cjs → ListBox-D0u9svwm.cjs} +1 -1
- package/{ListBox-CsxDGpCA.js → ListBox-y_dw__MI.js} +16 -16
- package/{ListBoxButton-BsuHFd_O.cjs → ListBoxButton-C2zp-gXD.cjs} +1 -1
- package/{ListBoxButton-DawRfuny.js → ListBoxButton-DiseS_LX.js} +1 -1
- package/{ListBoxSection-Cc2cx0_S.js → ListBoxSection-Cv-gN76G.js} +376 -376
- package/{ListBoxSection-C-Rz358T.cjs → ListBoxSection-DtsigmC1.cjs} +1 -1
- package/{ListKeyboardDelegate-ZKBk2IId.cjs → ListKeyboardDelegate-fZKXmHAk.cjs} +1 -1
- package/{ListKeyboardDelegate-C-sPNj0f.js → ListKeyboardDelegate-mcrZobNa.js} +2 -2
- package/{Logo-BpH0HC91.cjs → Logo-BW5NXAdu.cjs} +1 -1
- package/{Logo-ME4ffCue.js → Logo-qkVS1MCN.js} +1 -1
- package/{OverlayArrow-DpZ1FqOd.cjs → OverlayArrow-8praV_Xy.cjs} +1 -1
- package/{OverlayArrow-DB_aVTVM.js → OverlayArrow-DfkRZlgG.js} +4 -4
- package/{Popover-BDvKByTT.cjs → Popover-C5chAY42.cjs} +1 -1
- package/{Popover-DHoXfBp2.js → Popover-viLqHHX2.js} +2 -2
- package/{PressResponder-C3APAKsz.js → PressResponder-B_Zqu7b1.js} +9 -9
- package/PressResponder-Bm3_RM9c.cjs +1 -0
- package/{ProgressBar-ClysdvqU.cjs → ProgressBar-D5mNQTID.cjs} +1 -1
- package/{ProgressBar-C0IBfi5I.js → ProgressBar-wQirOG1N.js} +2 -2
- package/{Radio-B6N9dCtB.js → Radio-BIomn_sP.js} +23 -23
- package/{Radio-Cz0vLIBw.cjs → Radio-CxvJ5Wrl.cjs} +1 -1
- package/{RangeCalendar-BY82hPRu.cjs → RangeCalendar-BvvZ2SBj.cjs} +1 -1
- package/{RangeCalendar-BCruEq9d.js → RangeCalendar-DGGMbb0j.js} +19 -19
- package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
- package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
- package/{SearchField-nwlyszwt.js → SearchField-B0dlPqsW.js} +6 -6
- package/{SearchField-QFyuaT-K.cjs → SearchField-Ma3KB8Em.cjs} +2 -2
- package/{Select-DMVj2lrG.js → Select-769RSZ9V.js} +114 -114
- package/{Select-DiCEyap1.cjs → Select-Go5x0zWl.cjs} +1 -1
- package/{SelectionManager-BubxiIKu.js → SelectionManager-BdKKuso-.js} +9 -9
- package/{SelectionManager-BJjqIWtf.cjs → SelectionManager-BvREZgeu.cjs} +1 -1
- package/{Separator-CEZ5y7tZ.js → Separator-CggS0R7Q.js} +4 -4
- package/{Separator-DPLEx950.cjs → Separator-DBsDhqCr.cjs} +1 -1
- package/{Spinner-VSyPhiJ9.js → Spinner-AXFRWuT6.js} +2 -2
- package/{Spinner-vof0Y9Hh.cjs → Spinner-yHx_DX_4.cjs} +1 -1
- package/TabList-0gj27e_e.js +386 -0
- package/TabList-Cqpup53E.cjs +1 -0
- package/Table-BhtlNY9P.cjs +16 -0
- package/{Table-B5Aine4F.js → Table-CTS0J_sQ.js} +289 -268
- package/{Tag-Byva_Xuy.js → Tag-B9M-nBTM.js} +49 -49
- package/{Tag-bYq-wf5D.cjs → Tag-DkW6zaIS.cjs} +1 -1
- package/{Text-DcZqSUN9.js → Text--KL3Auo7.js} +3 -3
- package/{Text-BPcfhYQ9.js → Text-BUDAzDjW.js} +1 -1
- package/{Text-DBHWi5gA.cjs → Text-DA_gK6a2.cjs} +1 -1
- package/{Text-CfcjRtke.cjs → Text-wuw0HQoa.cjs} +1 -1
- package/TextArea-CSrrYY05.cjs +1 -0
- package/{TextArea-eK7Jx3qs.js → TextArea-DphcH6wE.js} +16 -16
- package/{TextField-Dma22dnD.js → TextField-CsyRTSEG.js} +13 -13
- package/{TextField-BAX93sq7.cjs → TextField-P5yICj5z.cjs} +1 -1
- package/Toast-BEh5yYzO.cjs +1 -0
- package/{Toast-CWt_mNIg.js → Toast-BnzpC_5v.js} +130 -137
- package/{ToggleButtonGroup-DZ_wo0qx.cjs → ToggleButtonGroup-BwFAhFEi.cjs} +1 -1
- package/{ToggleButtonGroup-HjvaTYD4.js → ToggleButtonGroup-CuxAKB3-.js} +7 -7
- package/{Tooltip-pN5W3IK6.cjs → Tooltip-Bz0xCZSw.cjs} +1 -1
- package/{Tooltip-DjNc93tV.js → Tooltip-EuEQtHZj.js} +12 -12
- package/{VisuallyHidden-CYfmTSCD.js → VisuallyHidden-BKslUoMJ.js} +8 -8
- package/{VisuallyHidden-Doyzl0F7.cjs → VisuallyHidden-DxDOcIsh.cjs} +1 -1
- package/accordion/Accordion.d.ts +8 -2
- package/accordion/AccordionContext.d.ts +4 -0
- package/accordion/AccordionItem.d.ts +6 -4
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/BadgeContainer.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/theme.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +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/ComboBox.d.ts +0 -4
- package/combobox/index.cjs +1 -1
- package/combobox/index.d.ts +1 -2
- package/combobox/index.js +2 -3
- package/combobox/types.d.ts +0 -13
- package/common/icon-map.d.ts +6 -0
- package/common/types.d.ts +8 -0
- 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/DatePickerPopover.d.ts +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +7 -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/Grid.d.ts +0 -8
- package/grid/GridItem.d.ts +0 -8
- package/grid/index.cjs +1 -1
- package/grid/index.d.ts +2 -2
- package/grid/index.js +4 -6
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/icon-map-9XcghDra.cjs +11 -0
- package/icon-map-uS87FT_Q.js +43 -0
- package/{index-CGRFP4CC.js → index-BSMrH_Du.js} +7 -7
- package/{index-Dsz3aiWt.cjs → index-D97L3EBk.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.js +108 -111
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-banner/InfoBanner.d.ts +18 -10
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/{mergeProps-C1U1OIeJ.js → mergeProps-BYJQ6N1s.js} +11 -11
- package/{mergeProps-B5KXZAI3.cjs → mergeProps-C7Sx47fA.cjs} +1 -1
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +4 -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/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.d.ts +1 -1
- package/select/index.js +1 -1
- package/select/types.d.ts +1 -13
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/Table.d.ts +7 -12
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tabs.d.ts +0 -12
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/Tag.d.ts +2 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +37 -12
- package/theme/index.js +12 -11
- package/theme/tokens.d.ts +37 -18
- package/toast/Toast.d.ts +2 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tokens-BWo7EvNX.cjs +1 -0
- package/{tokens-r1r3wC04.js → tokens-BtEBd3jO.js} +82 -43
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-BoIV3kDJ.js → useButton-CWHoXYnj.js} +3 -3
- package/{useButton-D60q0SQw.cjs → useButton-CwOQUGtY.cjs} +1 -1
- package/{useDateFormatter-C7BJgoDR.js → useDateFormatter-DiIUdTak.js} +2 -2
- package/{useDateFormatter-BJBt0jk_.cjs → useDateFormatter-bzjwqA2K.cjs} +1 -1
- package/{useDescription-CPo72trh.cjs → useDescription-ByNlNIRU.cjs} +1 -1
- package/{useDescription-DYfKjGGU.js → useDescription-LmB1V4Tg.js} +1 -1
- package/useEvent-CGRyLM2c.cjs +1 -0
- package/{useEvent-CigwyJOw.js → useEvent-DqWz89vg.js} +1 -1
- package/{useField-CefQB81E.js → useField-5CEdtfab.js} +2 -2
- package/{useField-D1UkzeaI.cjs → useField-CoQAzygg.cjs} +1 -1
- package/{useFilter-DginflOU.js → useFilter-BKQT28sh.js} +1 -1
- package/{useFilter-BhM2yVO3.cjs → useFilter-Bjh5dq2Q.cjs} +1 -1
- package/{useFocusRing-B-A1OLhU.cjs → useFocusRing-BM-zcH6L.cjs} +1 -1
- package/{useFocusRing-DOfBqnUN.js → useFocusRing-HoJn20X5.js} +2 -2
- package/{useFocusWithin-T1ifEM_s.js → useFocusWithin-Cn18Myw6.js} +1 -1
- package/{useFocusWithin-CG8mAt2D.cjs → useFocusWithin-o0WjCpEB.cjs} +1 -1
- package/{useFocusable-D7I1ujkW.cjs → useFocusable-DbmryjUH.cjs} +1 -1
- package/{useFocusable-BjE42axF.js → useFocusable-ZjCKo1ed.js} +14 -14
- package/{useFormValidation-BzzruZKm.js → useFormValidation-BW2NSTM4.js} +2 -2
- package/{useFormValidation-BlFGdPZB.cjs → useFormValidation-DSRwb9US.cjs} +1 -1
- package/useHasTabbableChild-CogBR_6o.cjs +1 -0
- package/{useHasTabbableChild-DP62kzkG.js → useHasTabbableChild-CyOmqumh.js} +2 -2
- package/{useHighlightSelectionDescription-DmbDkFGY.cjs → useHighlightSelectionDescription-DAhPdEG6.cjs} +1 -1
- package/{useHighlightSelectionDescription-xr_16pKd.js → useHighlightSelectionDescription-DTxHtOsw.js} +5 -5
- package/{useHover-BE_XKZKe.cjs → useHover-CaFzQrR_.cjs} +1 -1
- package/{useHover-DQvJ3Y-W.js → useHover-D8fja4GW.js} +6 -6
- package/{useLabels-CSU0kbtJ.cjs → useLabels-BtDN_ALM.cjs} +1 -1
- package/{useLabels-LrKQiY11.js → useLabels-DZlvh4P4.js} +1 -1
- package/{useListState-wLau6fXo.cjs → useListState-TtWy_rDI.cjs} +1 -1
- package/{useListState-DNB7JWoj.js → useListState-e7cL-FOK.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-BooY_CAy.cjs → usePress-BOGIOlm8.cjs} +2 -2
- package/{usePress-BW47IcyU.js → usePress-B_jgTf4k.js} +105 -105
- package/{useSingleSelectListState-DlO5H9N-.cjs → useSingleSelectListState-BiJMNaOl.cjs} +1 -1
- package/{useSingleSelectListState-B0OMoHd_.js → useSingleSelectListState-D7LjjoUJ.js} +1 -1
- package/{useTextField-DnRrCg5o.cjs → useTextField-BVIOd8Ld.cjs} +1 -1
- package/{useTextField-DjxayZsV.js → useTextField-DFkSHoQN.js} +11 -11
- package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
- package/{utils-DHNZrQmj.cjs → utils-BM2vxlNA.cjs} +1 -1
- package/{utils-Dvdohqm9.cjs → utils-C5-CzvX2.cjs} +1 -1
- package/{utils-CoCR_Fce.js → utils-CuqJqFqQ.js} +1 -1
- package/{utils-KLjWgdLR.js → utils-KYuflGZt.js} +10 -10
- package/AccordionItem-BPOQqTkQ.js +0 -323
- package/AccordionItem-CS-QKqrU.cjs +0 -1
- package/BadgeContainer-CKBIZWsc.js +0 -37
- package/BadgeContainer-DWVHS5dn.cjs +0 -1
- package/Card-cdL5669N.cjs +0 -1
- package/DateRangePicker-Bfibl08v.cjs +0 -6
- package/Dialog-B3R3WtL5.cjs +0 -1
- package/Dialog-BkUw6PlA.js +0 -221
- package/Dropdown-CYakzdJg.cjs +0 -6
- package/FieldError-CDCvUjK5.js +0 -46
- package/Grid-DVQtOcu9.cjs +0 -1
- package/Heading-CKTR4sOz.cjs +0 -1
- package/InfoBanner-CzwbOdRG.cjs +0 -1
- package/InfoBanner-D05poAe3.js +0 -91
- package/Label-ChjDdBlv.cjs +0 -1
- package/Layout-BwLxIwtY.cjs +0 -16
- package/Layout-CcADAhds.js +0 -498
- package/PressResponder-4jE_HLu3.cjs +0 -1
- package/TabList-BkSWzbDG.cjs +0 -1
- package/TabList-QApx8qRC.js +0 -435
- package/Table-DGYC-sDq.cjs +0 -16
- package/TextArea-DJKHFKuI.cjs +0 -1
- package/Toast-DdmSvNaO.cjs +0 -1
- package/circle-check-BErh6TKu.js +0 -26
- package/circle-check-OVUGxwp9.cjs +0 -11
- package/inertValue-B3AFhVG4.cjs +0 -1
- package/tokens-BF-dPard.cjs +0 -1
- package/triangle-alert-B_qAPmWC.js +0 -21
- package/triangle-alert-BviJNFjf.cjs +0 -6
- package/useEvent-DPxMu-X9.cjs +0 -1
- package/useHasTabbableChild-CoQRpNbC.cjs +0 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
- package/useObserveElement-MhzEsCkX.cjs +0 -1
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
import { jsx as p, jsxs as y, Fragment as
|
|
2
|
-
import { B as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as p, jsxs as y, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
+
import { B as Te } from "./Button-akT6Hvug.js";
|
|
3
|
+
import P, { useState as A, useCallback as L, useEffect as g, useRef as v, useMemo as ye } from "react";
|
|
4
4
|
import { createPortal as Le, flushSync as _e } from "react-dom";
|
|
5
5
|
import { c as B } from "./clsx-OuTLNxxd.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { $ as
|
|
11
|
-
import { $ as
|
|
12
|
-
import { $ as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
import './assets/Toast.css';const D = 1, w = Symbol.for("react-aria-landmark-manager");
|
|
18
|
-
function Me(t) {
|
|
6
|
+
import { i as we } from "./icon-map-uS87FT_Q.js";
|
|
7
|
+
import { s as N } from "./index-BSMrH_Du.js";
|
|
8
|
+
import { $ as j, c as Be, b as Ie, d as Ce, a as Pe } from "./mergeProps-BYJQ6N1s.js";
|
|
9
|
+
import { m as E } from "./utils-CuqJqFqQ.js";
|
|
10
|
+
import { $ as Ae, g as _ } from "./useHover-D8fja4GW.js";
|
|
11
|
+
import { $ as Ne } from "./useFocusWithin-Cn18Myw6.js";
|
|
12
|
+
import { $ as F } from "./useLocalizedStringFormatter-CSEh15AZ.js";
|
|
13
|
+
import { $ as je } from "./filterDOMProps-D6KHYVBX.js";
|
|
14
|
+
import { X as Fe } from "./x-C2xUHAEl.js";
|
|
15
|
+
import './assets/Toast.css';const S = 1, w = Symbol.for("react-aria-landmark-manager");
|
|
16
|
+
function Se(t) {
|
|
19
17
|
return document.addEventListener("react-aria-landmark-manager-change", t), () => document.removeEventListener("react-aria-landmark-manager-change", t);
|
|
20
18
|
}
|
|
21
19
|
function C() {
|
|
22
20
|
if (typeof document > "u") return null;
|
|
23
21
|
let t = document[w];
|
|
24
|
-
return t && t.version >=
|
|
22
|
+
return t && t.version >= S ? t : (document[w] = new Re(), document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")), document[w]);
|
|
25
23
|
}
|
|
26
|
-
function
|
|
27
|
-
return N.useSyncExternalStore(
|
|
24
|
+
function De() {
|
|
25
|
+
return N.useSyncExternalStore(Se, C, C);
|
|
28
26
|
}
|
|
29
|
-
class
|
|
27
|
+
class Re {
|
|
30
28
|
setupIfNeeded() {
|
|
31
29
|
this.isListening || (document.addEventListener("keydown", this.f6Handler, {
|
|
32
30
|
capture: !0
|
|
@@ -47,7 +45,7 @@ class He {
|
|
|
47
45
|
}
|
|
48
46
|
focusLandmark(e, n) {
|
|
49
47
|
var i, o;
|
|
50
|
-
(o = this.landmarks.find((
|
|
48
|
+
(o = this.landmarks.find((u) => u.ref.current === e)) === null || o === void 0 || (i = o.focus) === null || i === void 0 || i.call(o, n);
|
|
51
49
|
}
|
|
52
50
|
/**
|
|
53
51
|
* Return set of landmarks with a specific role.
|
|
@@ -71,8 +69,8 @@ class He {
|
|
|
71
69
|
}
|
|
72
70
|
let n = 0, i = this.landmarks.length - 1;
|
|
73
71
|
for (; n <= i; ) {
|
|
74
|
-
let o = Math.floor((n + i) / 2),
|
|
75
|
-
!!(
|
|
72
|
+
let o = Math.floor((n + i) / 2), u = e.ref.current.compareDocumentPosition(this.landmarks[o].ref.current);
|
|
73
|
+
!!(u & Node.DOCUMENT_POSITION_PRECEDING || u & Node.DOCUMENT_POSITION_CONTAINS) ? n = o + 1 : i = o - 1;
|
|
76
74
|
}
|
|
77
75
|
this.landmarks.splice(n, 0, e), this.checkLabels(e.role);
|
|
78
76
|
}
|
|
@@ -102,11 +100,11 @@ class He {
|
|
|
102
100
|
else if (process.env.NODE_ENV !== "production") {
|
|
103
101
|
let o = [
|
|
104
102
|
...n
|
|
105
|
-
].map((
|
|
106
|
-
o.filter((
|
|
107
|
-
console.warn(`Page contains more than one landmark with the '${e}' role and '${
|
|
103
|
+
].map((r) => r.label);
|
|
104
|
+
o.filter((r, a) => o.indexOf(r) !== a).forEach((r) => {
|
|
105
|
+
console.warn(`Page contains more than one landmark with the '${e}' role and '${r}' label. If two or more landmarks on a page share the same role, they must have unique labels: `, [
|
|
108
106
|
...n
|
|
109
|
-
].filter((a) => a.label ===
|
|
107
|
+
].filter((a) => a.label === r).map((a) => a.ref.current));
|
|
110
108
|
});
|
|
111
109
|
}
|
|
112
110
|
}
|
|
@@ -131,10 +129,10 @@ class He {
|
|
|
131
129
|
*/
|
|
132
130
|
getNextLandmark(e, { backward: n }) {
|
|
133
131
|
var i;
|
|
134
|
-
let o = this.closestLandmark(e),
|
|
135
|
-
o && (
|
|
136
|
-
let
|
|
137
|
-
if (
|
|
132
|
+
let o = this.closestLandmark(e), u = n ? this.landmarks.length - 1 : 0;
|
|
133
|
+
o && (u = this.landmarks.indexOf(o) + (n ? -1 : 1));
|
|
134
|
+
let r = () => {
|
|
135
|
+
if (u < 0) {
|
|
138
136
|
if (!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation", {
|
|
139
137
|
detail: {
|
|
140
138
|
direction: "backward"
|
|
@@ -142,8 +140,8 @@ class He {
|
|
|
142
140
|
bubbles: !0,
|
|
143
141
|
cancelable: !0
|
|
144
142
|
}))) return !0;
|
|
145
|
-
|
|
146
|
-
} else if (
|
|
143
|
+
u = this.landmarks.length - 1;
|
|
144
|
+
} else if (u >= this.landmarks.length) {
|
|
147
145
|
if (!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation", {
|
|
148
146
|
detail: {
|
|
149
147
|
direction: "forward"
|
|
@@ -151,17 +149,17 @@ class He {
|
|
|
151
149
|
bubbles: !0,
|
|
152
150
|
cancelable: !0
|
|
153
151
|
}))) return !0;
|
|
154
|
-
|
|
152
|
+
u = 0;
|
|
155
153
|
}
|
|
156
|
-
return
|
|
154
|
+
return u < 0 || u >= this.landmarks.length;
|
|
157
155
|
};
|
|
158
|
-
if (
|
|
159
|
-
let a =
|
|
160
|
-
for (; !((i = this.landmarks[
|
|
161
|
-
if (
|
|
162
|
-
if (
|
|
156
|
+
if (r()) return;
|
|
157
|
+
let a = u;
|
|
158
|
+
for (; !((i = this.landmarks[u].ref.current) === null || i === void 0) && i.closest("[aria-hidden=true]"); ) {
|
|
159
|
+
if (u += n ? -1 : 1, r()) return;
|
|
160
|
+
if (u === a) break;
|
|
163
161
|
}
|
|
164
|
-
return this.landmarks[
|
|
162
|
+
return this.landmarks[u];
|
|
165
163
|
}
|
|
166
164
|
/**
|
|
167
165
|
* Look at next landmark. If an element was previously focused inside, restore focus there.
|
|
@@ -240,12 +238,12 @@ class He {
|
|
|
240
238
|
return this.landmarks.find((n) => n.ref === e.ref) ? this.updateLandmark(e) : this.addLandmark(e), () => this.removeLandmark(e.ref);
|
|
241
239
|
}
|
|
242
240
|
constructor() {
|
|
243
|
-
this.landmarks = [], this.isListening = !1, this.refCount = 0, this.version =
|
|
241
|
+
this.landmarks = [], this.isListening = !1, this.refCount = 0, this.version = S, this.f6Handler = this.f6Handler.bind(this), this.focusinHandler = this.focusinHandler.bind(this), this.focusoutHandler = this.focusoutHandler.bind(this);
|
|
244
242
|
}
|
|
245
243
|
}
|
|
246
|
-
function
|
|
247
|
-
const { role: n, "aria-label": i, "aria-labelledby": o, focus:
|
|
248
|
-
let
|
|
244
|
+
function Me(t, e) {
|
|
245
|
+
const { role: n, "aria-label": i, "aria-labelledby": o, focus: u } = t;
|
|
246
|
+
let r = De(), a = i || o, [b, d] = A(!1), f = L(() => {
|
|
249
247
|
d(!0);
|
|
250
248
|
}, [
|
|
251
249
|
d
|
|
@@ -255,22 +253,22 @@ function Ve(t, e) {
|
|
|
255
253
|
d
|
|
256
254
|
]);
|
|
257
255
|
return j(() => {
|
|
258
|
-
if (
|
|
256
|
+
if (r) return r.registerLandmark({
|
|
259
257
|
ref: e,
|
|
260
258
|
label: a,
|
|
261
259
|
role: n,
|
|
262
|
-
focus:
|
|
260
|
+
focus: u || f,
|
|
263
261
|
blur: h
|
|
264
262
|
});
|
|
265
263
|
}, [
|
|
266
|
-
|
|
264
|
+
r,
|
|
267
265
|
a,
|
|
268
266
|
e,
|
|
269
267
|
n,
|
|
270
|
-
|
|
268
|
+
u,
|
|
271
269
|
f,
|
|
272
270
|
h
|
|
273
|
-
]),
|
|
271
|
+
]), g(() => {
|
|
274
272
|
var s;
|
|
275
273
|
b && ((s = e.current) === null || s === void 0 || s.focus());
|
|
276
274
|
}, [
|
|
@@ -285,8 +283,8 @@ function Ve(t, e) {
|
|
|
285
283
|
}
|
|
286
284
|
};
|
|
287
285
|
}
|
|
288
|
-
var
|
|
289
|
-
|
|
286
|
+
var D = {};
|
|
287
|
+
D = {
|
|
290
288
|
close: "إغلاق",
|
|
291
289
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
292
290
|
one: () => `${e.number(t.count)} إشعار`,
|
|
@@ -463,16 +461,16 @@ oe = {
|
|
|
463
461
|
other: () => `${e.number(t.count)} powiadomienia`
|
|
464
462
|
})}.`
|
|
465
463
|
};
|
|
466
|
-
var
|
|
467
|
-
|
|
464
|
+
var ue = {};
|
|
465
|
+
ue = {
|
|
468
466
|
close: "Fechar",
|
|
469
467
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
470
468
|
one: () => `${e.number(t.count)} notificação`,
|
|
471
469
|
other: () => `${e.number(t.count)} notificações`
|
|
472
470
|
})}.`
|
|
473
471
|
};
|
|
474
|
-
var
|
|
475
|
-
|
|
472
|
+
var re = {};
|
|
473
|
+
re = {
|
|
476
474
|
close: "Fechar",
|
|
477
475
|
notifications: (t, e) => `${e.plural(t.count, {
|
|
478
476
|
one: () => `${e.number(t.count)} notificação`,
|
|
@@ -564,7 +562,7 @@ $e = {
|
|
|
564
562
|
};
|
|
565
563
|
var I = {};
|
|
566
564
|
I = {
|
|
567
|
-
"ar-AE":
|
|
565
|
+
"ar-AE": D,
|
|
568
566
|
"bg-BG": R,
|
|
569
567
|
"cs-CZ": M,
|
|
570
568
|
"da-DK": O,
|
|
@@ -586,8 +584,8 @@ I = {
|
|
|
586
584
|
"nb-NO": ne,
|
|
587
585
|
"nl-NL": ie,
|
|
588
586
|
"pl-PL": oe,
|
|
589
|
-
"pt-BR":
|
|
590
|
-
"pt-PT":
|
|
587
|
+
"pt-BR": ue,
|
|
588
|
+
"pt-PT": re,
|
|
591
589
|
"ro-RO": ae,
|
|
592
590
|
"ru-RU": se,
|
|
593
591
|
"sk-SK": le,
|
|
@@ -599,31 +597,31 @@ I = {
|
|
|
599
597
|
"zh-CN": he,
|
|
600
598
|
"zh-TW": $e
|
|
601
599
|
};
|
|
602
|
-
function
|
|
600
|
+
function Oe(t) {
|
|
603
601
|
return t && t.__esModule ? t.default : t;
|
|
604
602
|
}
|
|
605
|
-
function
|
|
606
|
-
let { key: i, timer: o, timeout:
|
|
607
|
-
|
|
608
|
-
if (!(o == null ||
|
|
609
|
-
return o.reset(
|
|
603
|
+
function He(t, e, n) {
|
|
604
|
+
let { key: i, timer: o, timeout: u } = t.toast;
|
|
605
|
+
g(() => {
|
|
606
|
+
if (!(o == null || u == null))
|
|
607
|
+
return o.reset(u), () => {
|
|
610
608
|
o.pause();
|
|
611
609
|
};
|
|
612
610
|
}, [
|
|
613
611
|
o,
|
|
614
|
-
|
|
612
|
+
u
|
|
615
613
|
]);
|
|
616
|
-
let
|
|
617
|
-
return
|
|
614
|
+
let r = Be(), a = Ie(), b = F(Oe(I), "@react-aria/toast"), [d, f] = A(!1);
|
|
615
|
+
return g(() => {
|
|
618
616
|
f(!0);
|
|
619
617
|
}, []), {
|
|
620
618
|
toastProps: {
|
|
621
|
-
...
|
|
619
|
+
...je(t, {
|
|
622
620
|
labelable: !0
|
|
623
621
|
}),
|
|
624
622
|
role: "alertdialog",
|
|
625
623
|
"aria-modal": "false",
|
|
626
|
-
"aria-labelledby": t["aria-labelledby"] ||
|
|
624
|
+
"aria-labelledby": t["aria-labelledby"] || r,
|
|
627
625
|
"aria-describedby": t["aria-describedby"] || a,
|
|
628
626
|
tabIndex: 0
|
|
629
627
|
},
|
|
@@ -633,7 +631,7 @@ function Ue(t, e, n) {
|
|
|
633
631
|
"aria-hidden": d ? void 0 : "true"
|
|
634
632
|
},
|
|
635
633
|
titleProps: {
|
|
636
|
-
id:
|
|
634
|
+
id: r
|
|
637
635
|
},
|
|
638
636
|
descriptionProps: {
|
|
639
637
|
id: a
|
|
@@ -644,23 +642,23 @@ function Ue(t, e, n) {
|
|
|
644
642
|
}
|
|
645
643
|
};
|
|
646
644
|
}
|
|
647
|
-
function
|
|
645
|
+
function Ve(t) {
|
|
648
646
|
return t && t.__esModule ? t.default : t;
|
|
649
647
|
}
|
|
650
|
-
function
|
|
651
|
-
let i = F(
|
|
648
|
+
function ze(t, e, n) {
|
|
649
|
+
let i = F(Ve(I), "@react-aria/toast"), { landmarkProps: o } = Me({
|
|
652
650
|
role: "region",
|
|
653
651
|
"aria-label": t["aria-label"] || i.format("notifications", {
|
|
654
652
|
count: e.visibleToasts.length
|
|
655
653
|
})
|
|
656
|
-
}, n),
|
|
657
|
-
|
|
654
|
+
}, n), u = v(!1), r = v(!1), a = Ce(() => {
|
|
655
|
+
u.current || r.current ? e.pauseAll() : e.resumeAll();
|
|
658
656
|
}), { hoverProps: b } = Ae({
|
|
659
657
|
onHoverStart: () => {
|
|
660
|
-
|
|
658
|
+
u.current = !0, a();
|
|
661
659
|
},
|
|
662
660
|
onHoverEnd: () => {
|
|
663
|
-
|
|
661
|
+
u.current = !1, a();
|
|
664
662
|
}
|
|
665
663
|
}), d = v([]), f = v(e.visibleToasts), h = v(null);
|
|
666
664
|
j(() => {
|
|
@@ -678,13 +676,13 @@ function Ke(t, e, n) {
|
|
|
678
676
|
...c,
|
|
679
677
|
i: m,
|
|
680
678
|
isRemoved: !e.visibleToasts.some(($) => c.key === $.key)
|
|
681
|
-
})),
|
|
682
|
-
if (
|
|
679
|
+
})), T = l.findIndex((c) => c.i === h.current && c.isRemoved);
|
|
680
|
+
if (T > -1) {
|
|
683
681
|
var k;
|
|
684
682
|
if (_() === "pointer" && (!((k = s.current) === null || k === void 0) && k.isConnected)) E(s.current);
|
|
685
683
|
else {
|
|
686
684
|
let c = 0, m, $;
|
|
687
|
-
for (; c <=
|
|
685
|
+
for (; c <= T; )
|
|
688
686
|
l[c].isRemoved || ($ = Math.max(0, c - 1)), c++;
|
|
689
687
|
for (; c < l.length; ) {
|
|
690
688
|
if (!l[c].isRemoved) {
|
|
@@ -702,27 +700,27 @@ function Ke(t, e, n) {
|
|
|
702
700
|
n,
|
|
703
701
|
a
|
|
704
702
|
]);
|
|
705
|
-
let s = v(null), { focusWithinProps: Ee } =
|
|
703
|
+
let s = v(null), { focusWithinProps: Ee } = Ne({
|
|
706
704
|
onFocusWithin: (l) => {
|
|
707
|
-
|
|
705
|
+
r.current = !0, s.current = l.relatedTarget, a();
|
|
708
706
|
},
|
|
709
707
|
onBlurWithin: () => {
|
|
710
|
-
|
|
708
|
+
r.current = !1, s.current = null, a();
|
|
711
709
|
}
|
|
712
710
|
});
|
|
713
|
-
return
|
|
711
|
+
return g(() => {
|
|
714
712
|
var l;
|
|
715
713
|
e.visibleToasts.length === 0 && (!((l = s.current) === null || l === void 0) && l.isConnected) && (_() === "pointer" ? E(s.current) : s.current.focus(), s.current = null);
|
|
716
714
|
}, [
|
|
717
715
|
n,
|
|
718
716
|
e.visibleToasts.length
|
|
719
|
-
]),
|
|
717
|
+
]), g(() => () => {
|
|
720
718
|
var l;
|
|
721
719
|
!((l = s.current) === null || l === void 0) && l.isConnected && (_() === "pointer" ? E(s.current) : s.current.focus(), s.current = null);
|
|
722
720
|
}, [
|
|
723
721
|
n
|
|
724
722
|
]), {
|
|
725
|
-
regionProps:
|
|
723
|
+
regionProps: Pe(o, b, Ee, {
|
|
726
724
|
tabIndex: -1,
|
|
727
725
|
// Mark the toast region as a "top layer", so that it:
|
|
728
726
|
// - is not aria-hidden when opening an overlay
|
|
@@ -733,8 +731,8 @@ function Ke(t, e, n) {
|
|
|
733
731
|
// listen to focus events separate from focuswithin because that will only fire once
|
|
734
732
|
// and we need to follow all focus changes
|
|
735
733
|
onFocus: (l) => {
|
|
736
|
-
let
|
|
737
|
-
h.current = d.current.findIndex((k) => k ===
|
|
734
|
+
let T = l.target.closest('[role="alertdialog"]');
|
|
735
|
+
h.current = d.current.findIndex((k) => k === T);
|
|
738
736
|
},
|
|
739
737
|
onBlur: () => {
|
|
740
738
|
h.current = -1;
|
|
@@ -750,7 +748,7 @@ function pe(t) {
|
|
|
750
748
|
]);
|
|
751
749
|
return {
|
|
752
750
|
visibleToasts: N.useSyncExternalStore(e, n, n),
|
|
753
|
-
add: (o,
|
|
751
|
+
add: (o, u) => t.add(o, u),
|
|
754
752
|
close: (o) => t.close(o),
|
|
755
753
|
pauseAll: () => t.pauseAll(),
|
|
756
754
|
resumeAll: () => t.resumeAll()
|
|
@@ -770,7 +768,7 @@ class ve {
|
|
|
770
768
|
...n,
|
|
771
769
|
content: e,
|
|
772
770
|
key: i,
|
|
773
|
-
timer: n.timeout ? new
|
|
771
|
+
timer: n.timeout ? new Ue(() => this.close(i), n.timeout) : void 0
|
|
774
772
|
};
|
|
775
773
|
return this.queue.unshift(o), this.updateVisibleToasts("add"), i;
|
|
776
774
|
}
|
|
@@ -778,7 +776,7 @@ class ve {
|
|
|
778
776
|
* Closes a toast.
|
|
779
777
|
*/
|
|
780
778
|
close(e) {
|
|
781
|
-
let n = this.queue.findIndex((
|
|
779
|
+
let n = this.queue.findIndex((u) => u.key === e);
|
|
782
780
|
if (n >= 0) {
|
|
783
781
|
var i, o;
|
|
784
782
|
(i = (o = this.queue[n]).onClose) === null || i === void 0 || i.call(o), this.queue.splice(n, 1);
|
|
@@ -807,7 +805,7 @@ class ve {
|
|
|
807
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;
|
|
808
806
|
}
|
|
809
807
|
}
|
|
810
|
-
class
|
|
808
|
+
class Ue {
|
|
811
809
|
reset(e) {
|
|
812
810
|
this.remaining = e, this.resume();
|
|
813
811
|
}
|
|
@@ -823,8 +821,8 @@ class Ze {
|
|
|
823
821
|
this.startTime = null, this.remaining = n, this.callback = e;
|
|
824
822
|
}
|
|
825
823
|
}
|
|
826
|
-
const
|
|
827
|
-
tokens:
|
|
824
|
+
const We = '"../theme/tokens.css"', Ke = "_toastRegion_jgjyx_52", Ze = "_toast_jgjyx_52", Ge = "_success_jgjyx_95", Je = "_info_jgjyx_103", Qe = "_important_jgjyx_111", Xe = "_warning_jgjyx_119", qe = "_icon_jgjyx_127", Ye = "_toastContent_jgjyx_137", et = "_toastMessage_jgjyx_144", tt = "_slideInTop_jgjyx_1", nt = "_slideInEnd_jgjyx_1", it = "_slideOutTop_jgjyx_1", ot = "_slideOutEnd_jgjyx_1", x = {
|
|
825
|
+
tokens: We,
|
|
828
826
|
"--font-family": '"Inter", sans-serif',
|
|
829
827
|
"--text-primary": "light-dark(#171717, #f2f2f2)",
|
|
830
828
|
"--support-background-success": "light-dark(#d5f2d9, light-dark(#f2f2f2, #262626))",
|
|
@@ -838,24 +836,19 @@ const Ge = '"../theme/tokens.css"', Je = "_toastRegion_jgjyx_52", Qe = "_toast_j
|
|
|
838
836
|
"--breakpoint-md": "(min-width: 768px)",
|
|
839
837
|
"--focus": "0 0 0 2px light-dark(white, black), 0 0 0 4px light-dark(black, white)",
|
|
840
838
|
"--z-index-toast": "1100",
|
|
841
|
-
toastRegion:
|
|
842
|
-
toast:
|
|
843
|
-
success:
|
|
844
|
-
info:
|
|
845
|
-
important:
|
|
846
|
-
warning:
|
|
847
|
-
icon:
|
|
848
|
-
toastContent:
|
|
849
|
-
toastMessage:
|
|
850
|
-
slideInTop:
|
|
851
|
-
slideInEnd:
|
|
852
|
-
slideOutTop:
|
|
853
|
-
slideOutEnd:
|
|
854
|
-
}, st = {
|
|
855
|
-
success: De,
|
|
856
|
-
info: Se,
|
|
857
|
-
important: Fe,
|
|
858
|
-
warning: je
|
|
839
|
+
toastRegion: Ke,
|
|
840
|
+
toast: Ze,
|
|
841
|
+
success: Ge,
|
|
842
|
+
info: Je,
|
|
843
|
+
important: Qe,
|
|
844
|
+
warning: Xe,
|
|
845
|
+
icon: qe,
|
|
846
|
+
toastContent: Ye,
|
|
847
|
+
toastMessage: et,
|
|
848
|
+
slideInTop: tt,
|
|
849
|
+
slideInEnd: nt,
|
|
850
|
+
slideOutTop: it,
|
|
851
|
+
slideOutEnd: ot
|
|
859
852
|
}, xe = {
|
|
860
853
|
wrapUpdate(t) {
|
|
861
854
|
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
@@ -864,15 +857,15 @@ const Ge = '"../theme/tokens.css"', Je = "_toastRegion_jgjyx_52", Qe = "_toast_j
|
|
|
864
857
|
},
|
|
865
858
|
maxVisibleToasts: 5
|
|
866
859
|
};
|
|
867
|
-
function
|
|
860
|
+
function ut(t = {}) {
|
|
868
861
|
const { maxVisibleToasts: e = 1, wrapUpdate: n } = t, i = ye(
|
|
869
862
|
() => new ve({ maxVisibleToasts: e, wrapUpdate: n }),
|
|
870
863
|
[e, n]
|
|
871
864
|
);
|
|
872
865
|
return pe(i);
|
|
873
866
|
}
|
|
874
|
-
const
|
|
875
|
-
const e = pe(
|
|
867
|
+
const rt = new ve(xe), gt = (t) => {
|
|
868
|
+
const e = pe(rt);
|
|
876
869
|
return e.visibleToasts.length > 0 ? Le(
|
|
877
870
|
/* @__PURE__ */ p(
|
|
878
871
|
ke,
|
|
@@ -883,9 +876,9 @@ const ct = new ve(xe), Bt = (t) => {
|
|
|
883
876
|
),
|
|
884
877
|
document.body
|
|
885
878
|
) : null;
|
|
886
|
-
},
|
|
887
|
-
const n =
|
|
888
|
-
return /* @__PURE__ */ y(
|
|
879
|
+
}, Tt = ({ children: t, ...e }) => {
|
|
880
|
+
const n = ut(xe);
|
|
881
|
+
return /* @__PURE__ */ y(ge, { children: [
|
|
889
882
|
typeof t == "function" ? t(n) : t,
|
|
890
883
|
n.visibleToasts.length > 0 && /* @__PURE__ */ p(
|
|
891
884
|
ke,
|
|
@@ -901,33 +894,33 @@ function ke({
|
|
|
901
894
|
className: e,
|
|
902
895
|
...n
|
|
903
896
|
}) {
|
|
904
|
-
const i =
|
|
897
|
+
const i = P.useRef(null), { regionProps: o } = ze(n, t, i);
|
|
905
898
|
return /* @__PURE__ */ p(
|
|
906
899
|
"div",
|
|
907
900
|
{
|
|
908
901
|
...o,
|
|
909
902
|
ref: i,
|
|
910
903
|
className: B(x.toastRegion, e),
|
|
911
|
-
children: t.visibleToasts.map((
|
|
912
|
-
|
|
904
|
+
children: t.visibleToasts.map((u) => /* @__PURE__ */ p(
|
|
905
|
+
at,
|
|
913
906
|
{
|
|
914
|
-
toast:
|
|
907
|
+
toast: u,
|
|
915
908
|
state: t
|
|
916
909
|
},
|
|
917
|
-
|
|
910
|
+
u.key
|
|
918
911
|
))
|
|
919
912
|
}
|
|
920
913
|
);
|
|
921
914
|
}
|
|
922
|
-
function
|
|
915
|
+
function at({
|
|
923
916
|
state: t,
|
|
924
917
|
className: e,
|
|
925
918
|
...n
|
|
926
919
|
}) {
|
|
927
|
-
const i =
|
|
920
|
+
const i = P.useRef(null), { toastProps: o, contentProps: u, titleProps: r, closeButtonProps: a } = He(
|
|
928
921
|
n,
|
|
929
922
|
t
|
|
930
|
-
), b =
|
|
923
|
+
), b = we[n.toast.content.type];
|
|
931
924
|
return /* @__PURE__ */ y(
|
|
932
925
|
"div",
|
|
933
926
|
{
|
|
@@ -943,8 +936,8 @@ function dt({
|
|
|
943
936
|
/* @__PURE__ */ y(
|
|
944
937
|
"div",
|
|
945
938
|
{
|
|
946
|
-
...
|
|
947
|
-
className: B(x.toastContent,
|
|
939
|
+
...u,
|
|
940
|
+
className: B(x.toastContent, u.className),
|
|
948
941
|
children: [
|
|
949
942
|
/* @__PURE__ */ p(
|
|
950
943
|
b,
|
|
@@ -959,7 +952,7 @@ function dt({
|
|
|
959
952
|
"p",
|
|
960
953
|
{
|
|
961
954
|
className: x.toastMessage,
|
|
962
|
-
...
|
|
955
|
+
...r,
|
|
963
956
|
children: n.toast.content.message
|
|
964
957
|
}
|
|
965
958
|
),
|
|
@@ -969,12 +962,12 @@ function dt({
|
|
|
969
962
|
}
|
|
970
963
|
),
|
|
971
964
|
/* @__PURE__ */ p(
|
|
972
|
-
|
|
965
|
+
Te,
|
|
973
966
|
{
|
|
974
967
|
variant: "icon",
|
|
975
968
|
...a,
|
|
976
969
|
children: /* @__PURE__ */ p(
|
|
977
|
-
|
|
970
|
+
Fe,
|
|
978
971
|
{
|
|
979
972
|
size: 20,
|
|
980
973
|
"aria-hidden": !0
|
|
@@ -987,10 +980,10 @@ function dt({
|
|
|
987
980
|
);
|
|
988
981
|
}
|
|
989
982
|
export {
|
|
990
|
-
|
|
991
|
-
|
|
983
|
+
gt as G,
|
|
984
|
+
Tt as T,
|
|
992
985
|
ke as a,
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
986
|
+
at as b,
|
|
987
|
+
rt as t,
|
|
988
|
+
ut as u
|
|
996
989
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/ToggleButtonGroup.css');const D=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";require('./assets/ToggleButtonGroup.css');const D=require("react/jsx-runtime"),S=require("./utils-BM2vxlNA.cjs"),a=require("react"),T=require("./useToggleState-DoIkSQdj.cjs"),w=require("./useFocusRing-BM-zcH6L.cjs"),x=require("./mergeProps-C7Sx47fA.cjs"),q=require("./useHover-CaFzQrR_.cjs"),y=require("./Button.module-goCEz5qs.cjs"),h=require("./clsx-C11secjj.cjs"),C=require("./useControlledState-D0L6S_5r.cjs"),F=require("./useButton-CwOQUGtY.cjs"),M=require("./FocusScope-CAgWgk3N.cjs"),p=require("./filterDOMProps-BS2lrgFA.cjs"),E=require("./context-UOrD6Zxk.cjs");function m(t,e,d){const{isSelected:i}=e,{isPressed:o,buttonProps:l}=F.$701a24aa0da5b062$export$ea18c227d4417cc3({...t,onPress:x.$ff5963eb1fccf552$export$e08e3b67e392101e(e.toggle,t.onPress)},d);return{isPressed:o,isSelected:i,isDisabled:t.isDisabled||!1,buttonProps:x.$3ef42575df84b30b$export$9d1611c77c2fe928(l,{"aria-pressed":i})}}function N(t,e){const{"aria-label":d,"aria-labelledby":i,orientation:o="horizontal"}=t;let[l,r]=a.useState(!1);x.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{var s;r(!!(e.current&&(!((s=e.current.parentElement)===null||s===void 0)&&s.closest('[role="toolbar"]'))))});const{direction:n}=E.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),f=n==="rtl"&&o==="horizontal";let u=M.$9bf71ea28793e738$export$c5251b9e124bf29(e);const $=s=>{if(s.currentTarget.contains(s.target)){if(o==="horizontal"&&s.key==="ArrowRight"||o==="vertical"&&s.key==="ArrowDown")f?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&s.key==="ArrowLeft"||o==="vertical"&&s.key==="ArrowUp")f?u.focusNext():u.focusPrevious();else if(s.key==="Tab"){s.stopPropagation(),c.current=document.activeElement,s.shiftKey?u.focusFirst():u.focusLast();return}else return;s.stopPropagation(),s.preventDefault()}},c=a.useRef(null),P=s=>{!s.currentTarget.contains(s.relatedTarget)&&!c.current&&(c.current=s.target)},g=s=>{var b;if(c.current&&!s.currentTarget.contains(s.relatedTarget)&&(!((b=e.current)===null||b===void 0)&&b.contains(s.target))){var v;(v=c.current)===null||v===void 0||v.focus(),c.current=null}};return{toolbarProps:{...p.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{labelable:!0}),role:l?"group":"toolbar","aria-orientation":o,"aria-label":d,"aria-labelledby":d==null?i:void 0,onKeyDownCapture:l?void 0:$,onFocusCapture:l?void 0:g,onBlurCapture:l?void 0:P}}}function R(t,e,d){let{isDisabled:i}=t,{toolbarProps:o}=N(t,d);return{groupProps:{...o,role:e.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":i}}}function _(t,e,d){let i={isSelected:e.selectedKeys.has(t.id),setSelected(f){e.setSelected(t.id,f)},toggle(){e.toggleKey(t.id)}},{isPressed:o,isSelected:l,isDisabled:r,buttonProps:n}=m({...t,id:void 0,isDisabled:t.isDisabled||e.isDisabled},i,d);return e.selectionMode==="single"&&(n.role="radio",n["aria-checked"]=i.isSelected,delete n["aria-pressed"]),{isPressed:o,isSelected:l,isDisabled:r,buttonProps:n}}function z(t){let{selectionMode:e="single",disallowEmptySelection:d,isDisabled:i=!1}=t,[o,l]=C.$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:i,selectedKeys:o,setSelectedKeys:l,toggleKey(r){let n;e==="multiple"?(n=new Set(o),n.has(r)&&(!d||n.size>1)?n.delete(r):n.add(r)):n=new Set(o.has(r)&&!d?[]:[r]),l(n)},setSelected(r,n){n!==o.has(r)&&this.toggleKey(r)}}}const A=a.createContext({}),B=a.createContext(null),G=a.forwardRef(function(e,d){[e,d]=S.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,A);let i=z(e),{groupProps:o}=R(e,i,d),l=S.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{isDisabled:i.isDisabled,state:i},defaultClassName:"react-aria-ToggleButtonGroup"});return a.createElement("div",{...o,...l,ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"horizontal","data-disabled":e.isDisabled||void 0},a.createElement(B.Provider,{value:i},l.children))}),H=a.createContext({}),L=a.forwardRef(function(e,d){[e,d]=S.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,H);let i=a.useContext(B),o=T.$3017fa7ffdddec74$export$8042c6c013fd5226(i&&e.id!=null?{isSelected:i.selectedKeys.has(e.id),onChange(b){i.setSelected(e.id,b)}}:e),{buttonProps:l,isPressed:r,isSelected:n,isDisabled:f}=i&&e.id!=null?_({...e,id:e.id},i,d):m({...e,id:e.id!=null?String(e.id):void 0},o,d),{focusProps:u,isFocused:$,isFocusVisible:c}=w.$f7dceffc5ad7768b$export$4e328f61c538687f(e),{hoverProps:P,isHovered:g}=q.$6179b936705e76d3$export$ae780daf29e6d456(e),s=S.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,values:{isHovered:g,isPressed:r,isFocused:$,isSelected:o.isSelected,isFocusVisible:c,isDisabled:f,state:o},defaultClassName:"react-aria-ToggleButton"});return a.createElement("button",{...x.$3ef42575df84b30b$export$9d1611c77c2fe928(l,u,P),...s,ref:d,slot:e.slot||void 0,"data-focused":$||void 0,"data-disabled":f||void 0,"data-pressed":r||void 0,"data-selected":n||void 0,"data-hovered":g||void 0,"data-focus-visible":c||void 0})}),j="_group_syep5_4",V="_toggleButton_syep5_13",K={group:j,toggleButton:V},k=({...t})=>D.jsx(L,{...t,className:h.clsx(y.ButtonStyles.button,y.ButtonStyles.iconBtn,K.toggleButton,t.className)}),I=({...t})=>D.jsx(G,{...t,className:h.clsx(K.group,t.className)});exports.ToggleButton=k;exports.ToggleButtonGroup=I;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
-
import { $ as D, a as h } from "./utils-
|
|
2
|
+
import { $ as D, a as h } from "./utils-KYuflGZt.js";
|
|
3
3
|
import P, { useState as _, useRef as E, useMemo as x, forwardRef as K, createContext as S, useContext as F } from "react";
|
|
4
4
|
import { $ as N } from "./useToggleState-Bz5rAf4C.js";
|
|
5
|
-
import { $ as M } from "./useFocusRing-
|
|
6
|
-
import { e as z, a as p, $ as R } from "./mergeProps-
|
|
7
|
-
import { $ as A } from "./useHover-
|
|
5
|
+
import { $ as M } from "./useFocusRing-HoJn20X5.js";
|
|
6
|
+
import { e as z, a as p, $ as R } from "./mergeProps-BYJQ6N1s.js";
|
|
7
|
+
import { $ as A } from "./useHover-D8fja4GW.js";
|
|
8
8
|
import { B as v } from "./Button.module-D-mPLRxe.js";
|
|
9
9
|
import { c as B } from "./clsx-OuTLNxxd.js";
|
|
10
10
|
import { $ as L } from "./useControlledState-u436Wbp1.js";
|
|
11
|
-
import { $ as G } from "./useButton-
|
|
12
|
-
import { b as H } from "./FocusScope-
|
|
11
|
+
import { $ as G } from "./useButton-CWHoXYnj.js";
|
|
12
|
+
import { b as H } from "./FocusScope-CEgd3xCY.js";
|
|
13
13
|
import { $ as V } from "./filterDOMProps-D6KHYVBX.js";
|
|
14
|
-
import { $ as k } from "./context-
|
|
14
|
+
import { $ as k } from "./context-Dl_saGB6.js";
|
|
15
15
|
import './assets/ToggleButtonGroup.css';function w(t, e, d) {
|
|
16
16
|
const { isSelected: a } = e, { isPressed: s, buttonProps: l } = G({
|
|
17
17
|
...t,
|