@midas-ds/components 10.3.0 → 10.4.1
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-D2QYNgZS.cjs +1 -0
- package/{AccordionItem-ChHpW8EW.js → AccordionItem-oeN1Cc09.js} +41 -39
- package/{Breadcrumbs-CwDUNIqF.js → Breadcrumbs-D8ad6xvL.js} +77 -65
- package/Breadcrumbs-DkJIkGG5.cjs +1 -0
- package/{Button-DjBChs7s.js → Button-CFYdzG0H.js} +24 -23
- package/Button-DExMoP5f.cjs +1 -0
- package/{Button-BoJl6JGM.cjs → Button-Dq6ugqxT.cjs} +1 -1
- package/{Button-Csih3v23.js → Button-DtSrCAf6.js} +2 -2
- package/Button.module-D-mPLRxe.js +14 -0
- package/Button.module-goCEz5qs.cjs +1 -0
- package/CHANGELOG.md +41 -0
- package/{Card-yrtGzt70.js → Card-BzJ_OEe6.js} +4 -4
- package/{Card-0G0mj9q5.cjs → Card-cdL5669N.cjs} +1 -1
- package/{CharacterCounter-CHcTDHO-.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
- package/{CharacterCounter-BL_nZHya.js → CharacterCounter-cLhqPZlk.js} +4 -4
- package/Checkbox-Co3h0hur.cjs +1 -0
- package/{Checkbox-5HINZdGu.js → Checkbox-LuUwTZ3W.js} +69 -68
- package/CheckboxGroup-CcTfzurp.js +160 -0
- package/CheckboxGroup-DWxQTABg.cjs +1 -0
- package/{Collection-Brgjpkne.js → Collection--62xKPm9.js} +17 -16
- package/Collection-BtBX5IMY.cjs +1 -0
- package/ColorSchemeSwitch-owUryjYz.cjs +16 -0
- package/{ColorSchemeSwitch-BpzQ7g0b.js → ColorSchemeSwitch-y8qKczjQ.js} +53 -36
- package/{ComboBox-CVDyp2a-.js → ComboBox-CZyP8Dfh.js} +310 -299
- package/ComboBox-Dg2xhkLC.cjs +1 -0
- package/{DateField-DeDhiYnW.cjs → DateField-1w5J_iyF.cjs} +1 -1
- package/{DateField-DhU3q-rG.js → DateField-BTROlenJ.js} +4 -4
- package/DateInputDivider-3BvwXXa9.cjs +1 -0
- package/{DateInputDivider-CF4xWsMT.js → DateInputDivider-Bi5N-C0c.js} +90 -86
- package/DateRangePicker-CX3830ZF.cjs +6 -0
- package/{DateRangePicker-ziD1_k1W.js → DateRangePicker-DmZP9laM.js} +120 -117
- package/Dialog-0ZBhhPyd.js +221 -0
- package/Dialog-CSnN6baf.cjs +1 -0
- package/{Dialog-D14MbJ7o.js → Dialog-CtVrVuMr.js} +101 -98
- package/Dialog-DnMwnqiC.cjs +1 -0
- package/DragAndDrop-BoEd260f.cjs +1 -0
- package/{DragAndDrop-o3ruz_SR.js → DragAndDrop-DkSTL28C.js} +2 -2
- package/{Dropdown-Df58j43I.js → Dropdown-BEAMfAxj.js} +19 -19
- package/Dropdown-By91MEV2.cjs +6 -0
- package/FieldError-B3YFj-an.js +23 -0
- package/FieldError-BbR-29BM.js +28 -0
- package/FieldError-MVsU-Mgw.cjs +1 -0
- package/FieldError-bRTpchvr.cjs +1 -0
- package/{FileUpload-D6qoEAjn.js → FileUpload-DvQdIZ6k.js} +496 -475
- package/{FileUpload-CxCOtyB9.cjs → FileUpload-vf0oJd0K.cjs} +2 -2
- package/{FocusScope-CxkURfoc.js → FocusScope-D_hwN_TJ.js} +25 -24
- package/FocusScope-vcXLOQiu.cjs +1 -0
- package/Group-CpkUzEAs.js +45 -0
- package/Group-DOpbdoAi.cjs +1 -0
- package/{Heading-mHhCbGjY.cjs → Heading-CKTR4sOz.cjs} +1 -1
- package/{Heading-BFtiin0g.js → Heading-NxtGri2i.js} +1 -1
- package/InfoBanner-CzwbOdRG.cjs +1 -0
- package/{InfoBanner-BLM-TJJ6.js → InfoBanner-yj90XVEP.js} +47 -39
- package/{Input-BTzwcf72.js → Input-LnjmFI1x.js} +13 -12
- package/Input-MJji5hhq.cjs +1 -0
- package/Label-D2GmP8_2.js +78 -0
- package/Label-E3LhQfNv.cjs +1 -0
- package/Layout-BMNgqjXv.js +498 -0
- package/Layout-Ri7XQHFp.cjs +16 -0
- package/Link-BCVI5W_i.js +59 -0
- package/{Link-yNO2-sqx.js → Link-Bn8V3ZI0.js} +8 -7
- package/Link-CVvnCOGP.cjs +6 -0
- package/Link-CidjjqHb.cjs +1 -0
- package/LinkButton-B6AWNiRn.cjs +6 -0
- package/LinkButton-Cui-gvAk.js +69 -0
- package/ListBox-BCz5-23H.cjs +1 -0
- package/{ListBox-GnVK_Pdq.js → ListBox-C-isJIHL.js} +101 -99
- package/{ListBoxButton-D_J3jlP0.js → ListBoxButton-C_krklY0.js} +1 -1
- package/{ListBoxButton-DPBrtXyv.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
- package/{ListBoxSection-C0BGnpB4.js → ListBoxSection-BVR2xtOH.js} +9 -9
- package/ListBoxSection-CfQZoURJ.cjs +1 -0
- package/{ListKeyboardDelegate-DTg9h4v6.cjs → ListKeyboardDelegate-CPsZ7D83.cjs} +1 -1
- package/{ListKeyboardDelegate-DNI8GQtX.js → ListKeyboardDelegate-CY6t6y1t.js} +3 -3
- package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
- package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
- package/Logo-BpH0HC91.cjs +1 -0
- package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
- package/{OverlayArrow-CDLXPTew.js → OverlayArrow-CfhSYL46.js} +57 -56
- package/OverlayArrow-DpZ1FqOd.cjs +1 -0
- package/{Popover-BGGXeD54.js → Popover-C8VY1YKi.js} +2 -2
- package/{Popover-CqNWzPf-.cjs → Popover-CnAsw3wI.cjs} +1 -1
- package/{ProgressBar-DMSg-Prr.js → ProgressBar-Bpq-hyZa.js} +2 -2
- package/{ProgressBar-Jbg28j2a.cjs → ProgressBar-D4lOEhAh.cjs} +1 -1
- package/{Radio-Cz29wPXd.js → Radio-BPcq9kW5.js} +50 -47
- package/Radio-CwNbUGah.cjs +1 -0
- package/{RangeCalendar-RAlAHlNL.js → RangeCalendar-6miAJVoO.js} +349 -342
- package/RangeCalendar-CAI1PRDo.cjs +11 -0
- package/SSRProvider-40TXmsUG.js +50 -0
- package/SSRProvider-Bc-sMhsT.cjs +1 -0
- package/SearchField-CDyD5iWr.js +371 -0
- package/SearchField-DEoGi9xv.cjs +6 -0
- package/Select-B2wYDnAU.js +665 -0
- package/Select-nRN944QZ.cjs +1 -0
- package/SelectionManager-D0jYUYcy.cjs +1 -0
- package/{SelectionManager-B4ORduja.js → SelectionManager-zsWy3vsd.js} +91 -90
- package/{Separator-DECIYLtZ.cjs → Separator-CxF-3jhR.cjs} +1 -1
- package/{Separator-Cu9fYKUM.js → Separator-Dn5LYN5I.js} +4 -4
- package/Spinner-VSyPhiJ9.js +51 -0
- package/Spinner-vof0Y9Hh.cjs +6 -0
- package/TabList-CheXtBJm.cjs +1 -0
- package/TabList-D0qzIjSx.js +435 -0
- package/Table-DAhnYYIA.cjs +16 -0
- package/{Table-F4oYBtUM.js → Table-zKvjzd9t.js} +66 -64
- package/{Tag-Du7GvSv2.js → Tag-BoqT5nbh.js} +142 -140
- package/Tag-t-aJVo3W.cjs +1 -0
- package/Text-92cPh38G.js +15 -0
- package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
- package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
- package/{Text-jWWg0B20.js → Text-DlKqpvSa.js} +1 -1
- package/TextArea-B5und61h.cjs +1 -0
- package/TextArea-Pxr-eLXe.js +119 -0
- package/TextField-BdK9KEQ5.cjs +1 -0
- package/{TextField-C-hTPukq.js → TextField-ByDJkig9.js} +23 -22
- package/Toast-DdmSvNaO.cjs +1 -0
- package/{Toast-Btg21Xge.js → Toast-DfKiA5hp.js} +79 -72
- package/ToggleButtonGroup-DZ_wo0qx.cjs +1 -0
- package/{ToggleButtonGroup-B5yz1tm2.js → ToggleButtonGroup-DhlfvYGg.js} +47 -46
- package/{Tooltip-CMLs7WMw.js → Tooltip-5mLWn_wO.js} +29 -27
- package/Tooltip-pN5W3IK6.cjs +1 -0
- package/{VisuallyHidden-ZCYf65q4.js → VisuallyHidden-CYfmTSCD.js} +2 -2
- package/VisuallyHidden-Doyzl0F7.cjs +1 -0
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/arrow-right-BGd86zzR.cjs +6 -0
- package/{arrow-right-Dg8sttFO.js → arrow-right-uemUGIg8.js} +5 -5
- package/assets/Button.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -0
- package/assets/Tag.css +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +11 -7
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.d.ts +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/CalendarGrid.d.ts +1 -0
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/Card.d.ts +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/check-B0aKTFe5.cjs +6 -0
- package/check-B5h1DvDs.js +11 -0
- package/checkbox/Checkbox.d.ts +3 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/checkbox/intl/translations.json.d.ts +2 -30
- package/checkbox/types.d.ts +3 -1
- package/chevron-down-5hFlg_lR.cjs +6 -0
- package/chevron-down-DmZMdOiC.js +11 -0
- package/{circle-check-B9HYcH7Z.js → circle-check-BErh6TKu.js} +9 -9
- package/circle-check-OVUGxwp9.cjs +11 -0
- package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/color-scheme-switch/intl/translations.json.d.ts +15 -0
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +11 -0
- package/{context-C81gPYvC.js → context-CGNJ3grH.js} +1 -1
- package/context-Df3XbgBG.cjs +1 -0
- package/createLucideIcon-CTVXwe6i.cjs +21 -0
- package/createLucideIcon-XRdN60yz.js +94 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/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/FileUpload.d.ts +1 -0
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/file-upload/intl/translations.json.d.ts +17 -0
- package/{getScrollParent-BhFcYrwL.js → getScrollParent-CT_L9LUr.js} +1 -1
- package/{getScrollParent-DDJu9WHU.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.js +100 -97
- package/{info-BZwphdye.js → info-CPK1vbOJ.js} +5 -5
- package/info-Dj6SyPex.cjs +6 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/info-banner/intl/translations.json.d.ts +11 -0
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/label/intl/translations.json.d.ts +11 -0
- package/layout/Layout.d.ts +1 -0
- package/layout/context/LayoutContext.d.ts +1 -0
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/layout/intl/translations.json.d.ts +23 -0
- package/link/Link.d.ts +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/LinkButton.d.ts +1 -1
- 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/logo/intl/translations.json.d.ts +11 -0
- package/mergeProps-B5KXZAI3.cjs +1 -0
- package/mergeProps-C1U1OIeJ.js +115 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/modal/intl/translations.json.d.ts +11 -0
- package/package.json +1 -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/Radio.d.ts +1 -4
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/{scrollIntoView-Hwb_aaNf.js → scrollIntoView-BLnsPvFA.js} +1 -1
- package/scrollIntoView-joIyo-Jt.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/search-field/intl/translations.json.d.ts +11 -0
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +17 -0
- package/spinner/Spinner.d.ts +1 -0
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/spinner/intl/translations.json.d.ts +11 -0
- package/{square-arrow-out-up-right-BkyqV2PN.js → square-arrow-out-up-right-ok0A3Ovo.js} +4 -4
- package/square-arrow-out-up-right-xCFdJTzY.cjs +6 -0
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tab.d.ts +4 -0
- package/tabs/TabList.d.ts +3 -0
- package/tabs/TabPanel.d.ts +4 -0
- package/tabs/Tabs.d.ts +11 -5
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +3 -0
- package/tabs/index.js +5 -2
- 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/textfield/intl/translations.json.d.ts +0 -72
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +5 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +5 -0
- package/toast/Toast.d.ts +5 -2
- 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-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
- package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{triangle-alert-wxyxspAl.js → triangle-alert-B_qAPmWC.js} +5 -5
- package/triangle-alert-BviJNFjf.cjs +6 -0
- package/{useButton-B8dB9sot.js → useButton-1-Jf-oHj.js} +3 -3
- package/useButton-D60q0SQw.cjs +1 -0
- package/{useDateFormatter-CnxoJ4jF.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
- package/{useDateFormatter-EHm4auIg.js → useDateFormatter-BVCkxVdw.js} +2 -2
- package/{useEvent-IsD2Awnh.js → useEvent-CigwyJOw.js} +3 -3
- package/useEvent-DPxMu-X9.cjs +1 -0
- package/{useField-DvpGZkw_.js → useField-BEBXv5Mh.js} +4 -4
- package/useField-D1UkzeaI.cjs +1 -0
- package/{useFilter-CUq74PQ2.js → useFilter-CousKe2K.js} +1 -1
- package/{useFilter-BTgDWHVx.cjs → useFilter-e2oIVF_O.cjs} +1 -1
- package/useFocusRing-B-A1OLhU.cjs +1 -0
- package/useFocusRing-DOfBqnUN.js +33 -0
- package/useFocusWithin-CG8mAt2D.cjs +1 -0
- package/useFocusWithin-T1ifEM_s.js +54 -0
- package/{useFocusable-C8uh8K4g.js → useFocusable-ChPA2Jc7.js} +20 -18
- package/useFocusable-D7I1ujkW.cjs +1 -0
- package/useFormValidation-BlFGdPZB.cjs +1 -0
- package/{useFormValidation-BIGzfO9h.js → useFormValidation-BzzruZKm.js} +2 -2
- package/{useHasTabbableChild-C-1mZUQe.js → useHasTabbableChild-BE81d_ab.js} +2 -2
- package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
- package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
- package/{useHighlightSelectionDescription-CnBDT86u.js → useHighlightSelectionDescription-D73hrkmn.js} +5 -5
- package/useHover-BE_XKZKe.cjs +1 -0
- package/useHover-DQvJ3Y-W.js +262 -0
- package/useLabels-CSU0kbtJ.cjs +1 -0
- package/{useLabels-BDwkBYbE.js → useLabels-LrKQiY11.js} +1 -1
- package/{useListState-CrZFZffI.js → useListState-CebsX_1d.js} +1 -1
- package/{useListState-Bx8u4IFG.cjs → useListState-DymkJGDF.cjs} +1 -1
- package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/useLocalizedStringFormatter-CL9MUZ8A.js +22 -0
- package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
- package/usePress-BooY_CAy.cjs +7 -0
- package/{usePress-CNjmDzap.js → usePress-DuR4pVsE.js} +129 -128
- package/{useSingleSelectListState-0AGHxvy3.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
- package/{useSingleSelectListState-Cl3KV5E1.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
- package/{useTextField-Cw-33OP_.js → useTextField-C-sUypsx.js} +8 -8
- package/useTextField-DnRrCg5o.cjs +1 -0
- package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
- package/utils-CoCR_Fce.js +234 -0
- package/utils-DHNZrQmj.cjs +1 -0
- package/utils-DJhAJHk_.js +152 -0
- package/utils-Dvdohqm9.cjs +1 -0
- package/{x-JK7i-TQC.js → x-C2xUHAEl.js} +5 -5
- package/x-rV-nu490.cjs +6 -0
- package/AccordionItem-BGWiWjxA.cjs +0 -1
- package/Breadcrumbs-DtjJ1UmU.cjs +0 -1
- package/Button-htW9qIsS.cjs +0 -1
- package/Button.module-DEQtBYe5.cjs +0 -1
- package/Button.module-tti8HGxs.js +0 -14
- package/Checkbox-DqcPg5hz.cjs +0 -1
- package/CheckboxGroup-BBrSMuDY.cjs +0 -1
- package/CheckboxGroup-CLgixk2p.js +0 -243
- package/Collection-BIDsXNhi.cjs +0 -1
- package/ColorSchemeSwitch-C-qWuqkU.cjs +0 -16
- package/ComboBox-CWJUg9Xx.cjs +0 -1
- package/DateInputDivider-ADvOavHw.cjs +0 -1
- package/DateRangePicker-BsAHhy99.cjs +0 -6
- package/Dialog-B8GTYbvu.cjs +0 -1
- package/Dialog-BOrYdX50.cjs +0 -1
- package/Dialog-CXNu48AC.js +0 -208
- package/DragAndDrop-DNth776R.cjs +0 -1
- package/Dropdown-CJ6My6EI.cjs +0 -6
- package/FieldError-CAcjosk_.js +0 -46
- package/FieldError-CKBb2-mp.cjs +0 -1
- package/FocusScope-5c9SVBcR.cjs +0 -1
- package/Group-B6EslsHZ.js +0 -44
- package/Group-CgiqQHH1.cjs +0 -1
- package/InfoBanner-C2kTIsrB.cjs +0 -1
- package/Input-DKSAYvsw.cjs +0 -1
- package/Label-7Ybb99CE.cjs +0 -1
- package/Label-BwJrdqEE.js +0 -70
- package/Layout-1g6bMH62.cjs +0 -16
- package/Layout-Ey8flY7E.js +0 -468
- package/Link-B88l_oaE.cjs +0 -6
- package/Link-BQhauBuw.cjs +0 -1
- package/Link-DX5BbBnn.js +0 -59
- package/LinkButton-CBpGLETx.cjs +0 -6
- package/LinkButton-o6uS1XsR.js +0 -69
- package/ListBox-DP9M4H6R.cjs +0 -1
- package/ListBoxSection-BGaigBnG.cjs +0 -1
- package/Logo-DT2_2O43.cjs +0 -1
- package/OverlayArrow-D75k-EMl.cjs +0 -1
- package/Radio-BwqrdhQE.cjs +0 -1
- package/RangeCalendar-BehUaydF.cjs +0 -11
- package/SearchField-CxMwDeUM.cjs +0 -6
- package/SearchField-IlvZ3Kh6.js +0 -362
- package/Select-2q1iSzAX.cjs +0 -1
- package/Select-BVQZtoi9.js +0 -646
- package/SelectionManager-CwYux2h3.cjs +0 -1
- package/Spinner-D31SXm-U.js +0 -41
- package/Spinner-P35rvvsl.cjs +0 -6
- package/Table-B40CGLT-.cjs +0 -16
- package/Tabs-B4oZJkZG.js +0 -404
- package/Tabs-DA2qXhzb.cjs +0 -1
- package/Tag-DPAGmcMK.cjs +0 -1
- package/Text-BoXuUVVH.js +0 -15
- package/TextArea-C7JZ_pQd.cjs +0 -1
- package/TextArea-XeBCSyzl.js +0 -191
- package/TextField-BgNdhZi_.cjs +0 -1
- package/Toast-AbDA1BOs.cjs +0 -1
- package/ToggleButtonGroup-BFDoj0P6.cjs +0 -1
- package/Tooltip-DeBuBKhS.cjs +0 -1
- package/VisuallyHidden-CLWHbz2n.cjs +0 -1
- package/arrow-right-QJ2gXPKQ.cjs +0 -6
- package/assets/Tabs.css +0 -1
- package/check-CLF6Yxza.js +0 -11
- package/check-D_KoootC.cjs +0 -6
- package/chevron-down-Cd1bkzXT.js +0 -13
- package/chevron-down-jl83cllc.cjs +0 -6
- package/circle-check-BGo8gML8.cjs +0 -11
- package/context-DjwhtgxQ.cjs +0 -1
- package/createLucideIcon-Cg_wkoIA.cjs +0 -21
- package/createLucideIcon-DeWljiyi.js +0 -79
- package/info-CIEIENo6.cjs +0 -6
- package/scrollIntoView-C8doLzDd.cjs +0 -1
- package/square-arrow-out-up-right-V4Gd08uI.cjs +0 -6
- package/triangle-alert-DJW8U7jL.cjs +0 -6
- package/useButton-cpNi-fY4.cjs +0 -1
- package/useEvent-DxBxMX2V.cjs +0 -1
- package/useField-CXKYU74k.cjs +0 -1
- package/useFocusRing-CbImDrwF.cjs +0 -1
- package/useFocusRing-XnR3cZjO.js +0 -82
- package/useFocusable-NUVSFcRC.cjs +0 -1
- package/useFormValidation-ClximP89.cjs +0 -1
- package/useHasTabbableChild-DCBTulUQ.cjs +0 -1
- package/useHighlightSelectionDescription-CzYucm61.cjs +0 -1
- package/useHover-DjIHtjGN.js +0 -490
- package/useHover-_mv5J4_q.cjs +0 -1
- package/useLabels-BLOfc6Y-.cjs +0 -1
- package/useLocalizedStringFormatter-BKoxGZf1.js +0 -96
- package/useLocalizedStringFormatter-BsxLt89S.cjs +0 -1
- package/useLocalizedStringFormatter-D3JQyjb4.js +0 -21
- package/useLocalizedStringFormatter-ioacM-Yt.cjs +0 -1
- package/usePress-0AjDbW9R.cjs +0 -7
- package/useTextField--czJtyNd.cjs +0 -1
- package/utils-BNtZbAib.cjs +0 -1
- package/utils-DIMfEPAt.js +0 -308
- package/x-H8Zrx8-x.cjs +0 -6
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { B as ge } from "./Button-
|
|
1
|
+
import { jsx as p, jsxs as y, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import { B as ge } from "./Button-DtSrCAf6.js";
|
|
3
3
|
import A, { useState as P, useCallback as L, useEffect as T, useRef as v, useMemo as ye } from "react";
|
|
4
4
|
import { createPortal as Le, flushSync as _e } from "react-dom";
|
|
5
|
-
import { c as
|
|
5
|
+
import { c as B } from "./clsx-OuTLNxxd.js";
|
|
6
6
|
import { s as N } from "./index-CGRFP4CC.js";
|
|
7
|
-
import { $ as j,
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { $ as j, c as we, b as Be, d as Ie, a as Ce } from "./mergeProps-C1U1OIeJ.js";
|
|
8
|
+
import { m as E } from "./utils-CoCR_Fce.js";
|
|
9
|
+
import { $ as Ae, f as _ } from "./useHover-DQvJ3Y-W.js";
|
|
10
|
+
import { $ as Pe } from "./useFocusWithin-T1ifEM_s.js";
|
|
11
|
+
import { $ as F } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
|
|
11
12
|
import { $ as Ne } from "./filterDOMProps-D6KHYVBX.js";
|
|
12
|
-
import { T as je } from "./triangle-alert-
|
|
13
|
-
import { C as Fe, a as De } from "./circle-check-
|
|
14
|
-
import { I as Se } from "./info-
|
|
15
|
-
import { X as Re } from "./x-
|
|
13
|
+
import { T as je } from "./triangle-alert-B_qAPmWC.js";
|
|
14
|
+
import { C as Fe, a as De } from "./circle-check-BErh6TKu.js";
|
|
15
|
+
import { I as Se } from "./info-CPK1vbOJ.js";
|
|
16
|
+
import { X as Re } from "./x-C2xUHAEl.js";
|
|
16
17
|
import './assets/Toast.css';const D = 1, w = Symbol.for("react-aria-landmark-manager");
|
|
17
18
|
function Me(t) {
|
|
18
19
|
return document.addEventListener("react-aria-landmark-manager-change", t), () => document.removeEventListener("react-aria-landmark-manager-change", t);
|
|
@@ -244,11 +245,11 @@ class He {
|
|
|
244
245
|
}
|
|
245
246
|
function Ve(t, e) {
|
|
246
247
|
const { role: n, "aria-label": i, "aria-labelledby": o, focus: r } = t;
|
|
247
|
-
let u = Oe(), a = i || o, [
|
|
248
|
+
let u = Oe(), a = i || o, [b, d] = P(!1), f = L(() => {
|
|
248
249
|
d(!0);
|
|
249
250
|
}, [
|
|
250
251
|
d
|
|
251
|
-
]),
|
|
252
|
+
]), h = L(() => {
|
|
252
253
|
d(!1);
|
|
253
254
|
}, [
|
|
254
255
|
d
|
|
@@ -259,7 +260,7 @@ function Ve(t, e) {
|
|
|
259
260
|
label: a,
|
|
260
261
|
role: n,
|
|
261
262
|
focus: r || f,
|
|
262
|
-
blur:
|
|
263
|
+
blur: h
|
|
263
264
|
});
|
|
264
265
|
}, [
|
|
265
266
|
u,
|
|
@@ -268,17 +269,17 @@ function Ve(t, e) {
|
|
|
268
269
|
n,
|
|
269
270
|
r,
|
|
270
271
|
f,
|
|
271
|
-
|
|
272
|
+
h
|
|
272
273
|
]), T(() => {
|
|
273
274
|
var s;
|
|
274
|
-
|
|
275
|
+
b && ((s = e.current) === null || s === void 0 || s.focus());
|
|
275
276
|
}, [
|
|
276
|
-
|
|
277
|
+
b,
|
|
277
278
|
e
|
|
278
279
|
]), {
|
|
279
280
|
landmarkProps: {
|
|
280
281
|
role: n,
|
|
281
|
-
tabIndex:
|
|
282
|
+
tabIndex: b ? -1 : void 0,
|
|
282
283
|
"aria-label": i,
|
|
283
284
|
"aria-labelledby": o
|
|
284
285
|
}
|
|
@@ -561,8 +562,8 @@ $e = {
|
|
|
561
562
|
other: () => `${e.number(t.count)} 個通知`
|
|
562
563
|
})}。`
|
|
563
564
|
};
|
|
564
|
-
var
|
|
565
|
-
|
|
565
|
+
var I = {};
|
|
566
|
+
I = {
|
|
566
567
|
"ar-AE": S,
|
|
567
568
|
"bg-BG": R,
|
|
568
569
|
"cs-CZ": M,
|
|
@@ -612,7 +613,7 @@ function Ue(t, e, n) {
|
|
|
612
613
|
o,
|
|
613
614
|
r
|
|
614
615
|
]);
|
|
615
|
-
let u = we(), a = Be(),
|
|
616
|
+
let u = we(), a = Be(), b = F(ze(I), "@react-aria/toast"), [d, f] = P(!1);
|
|
616
617
|
return T(() => {
|
|
617
618
|
f(!0);
|
|
618
619
|
}, []), {
|
|
@@ -638,7 +639,7 @@ function Ue(t, e, n) {
|
|
|
638
639
|
id: a
|
|
639
640
|
},
|
|
640
641
|
closeButtonProps: {
|
|
641
|
-
"aria-label":
|
|
642
|
+
"aria-label": b.format("close"),
|
|
642
643
|
onPress: () => e.close(i)
|
|
643
644
|
}
|
|
644
645
|
};
|
|
@@ -647,52 +648,52 @@ function We(t) {
|
|
|
647
648
|
return t && t.__esModule ? t.default : t;
|
|
648
649
|
}
|
|
649
650
|
function Ke(t, e, n) {
|
|
650
|
-
let i = F(We(
|
|
651
|
+
let i = F(We(I), "@react-aria/toast"), { landmarkProps: o } = Ve({
|
|
651
652
|
role: "region",
|
|
652
653
|
"aria-label": t["aria-label"] || i.format("notifications", {
|
|
653
654
|
count: e.visibleToasts.length
|
|
654
655
|
})
|
|
655
656
|
}, n), r = v(!1), u = v(!1), a = Ie(() => {
|
|
656
657
|
r.current || u.current ? e.pauseAll() : e.resumeAll();
|
|
657
|
-
}), { hoverProps:
|
|
658
|
+
}), { hoverProps: b } = Ae({
|
|
658
659
|
onHoverStart: () => {
|
|
659
660
|
r.current = !0, a();
|
|
660
661
|
},
|
|
661
662
|
onHoverEnd: () => {
|
|
662
663
|
r.current = !1, a();
|
|
663
664
|
}
|
|
664
|
-
}), d = v([]), f = v(e.visibleToasts),
|
|
665
|
+
}), d = v([]), f = v(e.visibleToasts), h = v(null);
|
|
665
666
|
j(() => {
|
|
666
|
-
if (
|
|
667
|
+
if (h.current === -1 || e.visibleToasts.length === 0 || !n.current) {
|
|
667
668
|
d.current = [], f.current = e.visibleToasts;
|
|
668
669
|
return;
|
|
669
670
|
}
|
|
670
671
|
if (d.current = [
|
|
671
672
|
...n.current.querySelectorAll('[role="alertdialog"]')
|
|
672
|
-
], f.current.length === e.visibleToasts.length && e.visibleToasts.every((c,
|
|
673
|
+
], f.current.length === e.visibleToasts.length && e.visibleToasts.every((c, m) => c.key === f.current[m].key)) {
|
|
673
674
|
f.current = e.visibleToasts;
|
|
674
675
|
return;
|
|
675
676
|
}
|
|
676
|
-
let l = f.current.map((c,
|
|
677
|
+
let l = f.current.map((c, m) => ({
|
|
677
678
|
...c,
|
|
678
|
-
i:
|
|
679
|
-
isRemoved: !e.visibleToasts.some((
|
|
680
|
-
})), g = l.findIndex((c) => c.i ===
|
|
679
|
+
i: m,
|
|
680
|
+
isRemoved: !e.visibleToasts.some(($) => c.key === $.key)
|
|
681
|
+
})), g = l.findIndex((c) => c.i === h.current && c.isRemoved);
|
|
681
682
|
if (g > -1) {
|
|
682
683
|
var k;
|
|
683
684
|
if (_() === "pointer" && (!((k = s.current) === null || k === void 0) && k.isConnected)) E(s.current);
|
|
684
685
|
else {
|
|
685
|
-
let c = 0,
|
|
686
|
+
let c = 0, m, $;
|
|
686
687
|
for (; c <= g; )
|
|
687
|
-
l[c].isRemoved || (
|
|
688
|
+
l[c].isRemoved || ($ = Math.max(0, c - 1)), c++;
|
|
688
689
|
for (; c < l.length; ) {
|
|
689
690
|
if (!l[c].isRemoved) {
|
|
690
|
-
|
|
691
|
+
m = c - 1;
|
|
691
692
|
break;
|
|
692
693
|
}
|
|
693
694
|
c++;
|
|
694
695
|
}
|
|
695
|
-
|
|
696
|
+
$ === void 0 && m === void 0 && ($ = 0), $ >= 0 && $ < d.current.length ? E(d.current[$]) : m >= 0 && m < d.current.length && E(d.current[m]);
|
|
696
697
|
}
|
|
697
698
|
}
|
|
698
699
|
f.current = e.visibleToasts;
|
|
@@ -721,7 +722,7 @@ function Ke(t, e, n) {
|
|
|
721
722
|
}, [
|
|
722
723
|
n
|
|
723
724
|
]), {
|
|
724
|
-
regionProps: Ce(o,
|
|
725
|
+
regionProps: Ce(o, b, Ee, {
|
|
725
726
|
tabIndex: -1,
|
|
726
727
|
// Mark the toast region as a "top layer", so that it:
|
|
727
728
|
// - is not aria-hidden when opening an overlay
|
|
@@ -733,10 +734,10 @@ function Ke(t, e, n) {
|
|
|
733
734
|
// and we need to follow all focus changes
|
|
734
735
|
onFocus: (l) => {
|
|
735
736
|
let g = l.target.closest('[role="alertdialog"]');
|
|
736
|
-
|
|
737
|
+
h.current = d.current.findIndex((k) => k === g);
|
|
737
738
|
},
|
|
738
739
|
onBlur: () => {
|
|
739
|
-
|
|
740
|
+
h.current = -1;
|
|
740
741
|
}
|
|
741
742
|
})
|
|
742
743
|
};
|
|
@@ -870,10 +871,10 @@ function lt(t = {}) {
|
|
|
870
871
|
);
|
|
871
872
|
return pe(i);
|
|
872
873
|
}
|
|
873
|
-
const ct = new ve(xe),
|
|
874
|
+
const ct = new ve(xe), Bt = (t) => {
|
|
874
875
|
const e = pe(ct);
|
|
875
876
|
return e.visibleToasts.length > 0 ? Le(
|
|
876
|
-
/* @__PURE__ */
|
|
877
|
+
/* @__PURE__ */ p(
|
|
877
878
|
ke,
|
|
878
879
|
{
|
|
879
880
|
...t,
|
|
@@ -882,11 +883,11 @@ const ct = new ve(xe), wt = (t) => {
|
|
|
882
883
|
),
|
|
883
884
|
document.body
|
|
884
885
|
) : null;
|
|
885
|
-
},
|
|
886
|
+
}, It = ({ children: t, ...e }) => {
|
|
886
887
|
const n = lt(xe);
|
|
887
888
|
return /* @__PURE__ */ y(Te, { children: [
|
|
888
889
|
typeof t == "function" ? t(n) : t,
|
|
889
|
-
n.visibleToasts.length > 0 && /* @__PURE__ */
|
|
890
|
+
n.visibleToasts.length > 0 && /* @__PURE__ */ p(
|
|
890
891
|
ke,
|
|
891
892
|
{
|
|
892
893
|
...e,
|
|
@@ -897,50 +898,56 @@ const ct = new ve(xe), wt = (t) => {
|
|
|
897
898
|
};
|
|
898
899
|
function ke({
|
|
899
900
|
state: t,
|
|
900
|
-
|
|
901
|
+
className: e,
|
|
902
|
+
...n
|
|
901
903
|
}) {
|
|
902
|
-
const
|
|
903
|
-
return /* @__PURE__ */
|
|
904
|
+
const i = A.useRef(null), { regionProps: o } = Ke(n, t, i);
|
|
905
|
+
return /* @__PURE__ */ p(
|
|
904
906
|
"div",
|
|
905
907
|
{
|
|
906
|
-
...
|
|
907
|
-
ref:
|
|
908
|
-
className: x.toastRegion,
|
|
909
|
-
children: t.visibleToasts.map((
|
|
908
|
+
...o,
|
|
909
|
+
ref: i,
|
|
910
|
+
className: B(x.toastRegion, e),
|
|
911
|
+
children: t.visibleToasts.map((r) => /* @__PURE__ */ p(
|
|
910
912
|
dt,
|
|
911
913
|
{
|
|
912
|
-
toast:
|
|
914
|
+
toast: r,
|
|
913
915
|
state: t
|
|
914
916
|
},
|
|
915
|
-
|
|
917
|
+
r.key
|
|
916
918
|
))
|
|
917
919
|
}
|
|
918
920
|
);
|
|
919
921
|
}
|
|
920
922
|
function dt({
|
|
921
923
|
state: t,
|
|
922
|
-
|
|
924
|
+
className: e,
|
|
925
|
+
...n
|
|
923
926
|
}) {
|
|
924
|
-
const
|
|
925
|
-
|
|
927
|
+
const i = A.useRef(null), { toastProps: o, contentProps: r, titleProps: u, closeButtonProps: a } = Ue(
|
|
928
|
+
n,
|
|
926
929
|
t
|
|
927
|
-
),
|
|
930
|
+
), b = st[n.toast.content.type];
|
|
928
931
|
return /* @__PURE__ */ y(
|
|
929
932
|
"div",
|
|
930
933
|
{
|
|
931
|
-
...
|
|
932
|
-
ref:
|
|
933
|
-
className:
|
|
934
|
-
|
|
934
|
+
...o,
|
|
935
|
+
ref: i,
|
|
936
|
+
className: B(
|
|
937
|
+
x.toast,
|
|
938
|
+
x[n.toast.content.type],
|
|
939
|
+
e
|
|
940
|
+
),
|
|
941
|
+
style: { viewTransitionName: n.toast.key },
|
|
935
942
|
children: [
|
|
936
943
|
/* @__PURE__ */ y(
|
|
937
944
|
"div",
|
|
938
945
|
{
|
|
939
|
-
...
|
|
940
|
-
className:
|
|
946
|
+
...r,
|
|
947
|
+
className: B(x.toastContent, r.className),
|
|
941
948
|
children: [
|
|
942
|
-
/* @__PURE__ */
|
|
943
|
-
|
|
949
|
+
/* @__PURE__ */ p(
|
|
950
|
+
b,
|
|
944
951
|
{
|
|
945
952
|
className: x.icon,
|
|
946
953
|
size: 20,
|
|
@@ -948,25 +955,25 @@ function dt({
|
|
|
948
955
|
}
|
|
949
956
|
),
|
|
950
957
|
/* @__PURE__ */ y("div", { children: [
|
|
951
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ p(
|
|
952
959
|
"p",
|
|
953
960
|
{
|
|
954
961
|
className: x.toastMessage,
|
|
955
|
-
...
|
|
956
|
-
children:
|
|
962
|
+
...u,
|
|
963
|
+
children: n.toast.content.message
|
|
957
964
|
}
|
|
958
965
|
),
|
|
959
|
-
|
|
966
|
+
n.toast.content.children
|
|
960
967
|
] })
|
|
961
968
|
]
|
|
962
969
|
}
|
|
963
970
|
),
|
|
964
|
-
/* @__PURE__ */
|
|
971
|
+
/* @__PURE__ */ p(
|
|
965
972
|
ge,
|
|
966
973
|
{
|
|
967
974
|
variant: "icon",
|
|
968
|
-
...
|
|
969
|
-
children: /* @__PURE__ */
|
|
975
|
+
...a,
|
|
976
|
+
children: /* @__PURE__ */ p(
|
|
970
977
|
Re,
|
|
971
978
|
{
|
|
972
979
|
size: 20,
|
|
@@ -980,8 +987,8 @@ function dt({
|
|
|
980
987
|
);
|
|
981
988
|
}
|
|
982
989
|
export {
|
|
983
|
-
|
|
984
|
-
|
|
990
|
+
Bt as G,
|
|
991
|
+
It as T,
|
|
985
992
|
ke as a,
|
|
986
993
|
dt as b,
|
|
987
994
|
ct as t,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/ToggleButtonGroup.css');const D=require("react/jsx-runtime"),x=require("./utils-DHNZrQmj.cjs"),a=require("react"),T=require("./useToggleState-DoIkSQdj.cjs"),w=require("./useFocusRing-B-A1OLhU.cjs"),S=require("./mergeProps-B5KXZAI3.cjs"),q=require("./useHover-BE_XKZKe.cjs"),y=require("./Button.module-goCEz5qs.cjs"),h=require("./clsx-C11secjj.cjs"),C=require("./useControlledState-D0L6S_5r.cjs"),F=require("./useButton-D60q0SQw.cjs"),M=require("./FocusScope-vcXLOQiu.cjs"),p=require("./filterDOMProps-BS2lrgFA.cjs"),E=require("./context-Df3XbgBG.cjs");function m(t,e,d){const{isSelected:i}=e,{isPressed:o,buttonProps:l}=F.$701a24aa0da5b062$export$ea18c227d4417cc3({...t,onPress:S.$ff5963eb1fccf552$export$e08e3b67e392101e(e.toggle,t.onPress)},d);return{isPressed:o,isSelected:i,isDisabled:t.isDisabled||!1,buttonProps:S.$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);S.$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]=x.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,A);let i=z(e),{groupProps:o}=R(e,i,d),l=x.$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]=x.$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=x.$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",{...S.$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,36 +1,37 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import P, { useState as
|
|
4
|
-
import { $ as
|
|
5
|
-
import { $ as
|
|
6
|
-
import { $ as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { $ as D, a as h } from "./utils-DJhAJHk_.js";
|
|
3
|
+
import P, { useState as _, useRef as E, useMemo as x, forwardRef as K, createContext as S, useContext as F } from "react";
|
|
4
|
+
import { $ as N } from "./useToggleState-Bz5rAf4C.js";
|
|
5
|
+
import { $ as M } from "./useFocusRing-DOfBqnUN.js";
|
|
6
|
+
import { e as z, a as p, $ as R } from "./mergeProps-C1U1OIeJ.js";
|
|
7
|
+
import { $ as A } from "./useHover-DQvJ3Y-W.js";
|
|
8
|
+
import { B as v } from "./Button.module-D-mPLRxe.js";
|
|
9
|
+
import { c as B } from "./clsx-OuTLNxxd.js";
|
|
9
10
|
import { $ as L } from "./useControlledState-u436Wbp1.js";
|
|
10
|
-
import { $ as G } from "./useButton-
|
|
11
|
-
import { b as H } from "./FocusScope-
|
|
11
|
+
import { $ as G } from "./useButton-1-Jf-oHj.js";
|
|
12
|
+
import { b as H } from "./FocusScope-D_hwN_TJ.js";
|
|
12
13
|
import { $ as V } from "./filterDOMProps-D6KHYVBX.js";
|
|
13
|
-
import { $ as k } from "./context-
|
|
14
|
+
import { $ as k } from "./context-CGNJ3grH.js";
|
|
14
15
|
import './assets/ToggleButtonGroup.css';function w(t, e, d) {
|
|
15
16
|
const { isSelected: a } = e, { isPressed: s, buttonProps: l } = G({
|
|
16
17
|
...t,
|
|
17
|
-
onPress:
|
|
18
|
+
onPress: z(e.toggle, t.onPress)
|
|
18
19
|
}, d);
|
|
19
20
|
return {
|
|
20
21
|
isPressed: s,
|
|
21
22
|
isSelected: a,
|
|
22
23
|
isDisabled: t.isDisabled || !1,
|
|
23
|
-
buttonProps:
|
|
24
|
+
buttonProps: p(l, {
|
|
24
25
|
"aria-pressed": a
|
|
25
26
|
})
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
function I(t, e) {
|
|
29
30
|
const { "aria-label": d, "aria-labelledby": a, orientation: s = "horizontal" } = t;
|
|
30
|
-
let [l,
|
|
31
|
-
|
|
31
|
+
let [l, r] = _(!1);
|
|
32
|
+
R(() => {
|
|
32
33
|
var o;
|
|
33
|
-
|
|
34
|
+
r(!!(e.current && (!((o = e.current.parentElement) === null || o === void 0) && o.closest('[role="toolbar"]'))));
|
|
34
35
|
});
|
|
35
36
|
const { direction: i } = k(), u = i === "rtl" && s === "horizontal";
|
|
36
37
|
let c = H(e);
|
|
@@ -41,19 +42,19 @@ function I(t, e) {
|
|
|
41
42
|
else if (s === "horizontal" && o.key === "ArrowLeft" || s === "vertical" && o.key === "ArrowUp")
|
|
42
43
|
u ? c.focusNext() : c.focusPrevious();
|
|
43
44
|
else if (o.key === "Tab") {
|
|
44
|
-
o.stopPropagation(),
|
|
45
|
+
o.stopPropagation(), n.current = document.activeElement, o.shiftKey ? c.focusFirst() : c.focusLast();
|
|
45
46
|
return;
|
|
46
47
|
} else
|
|
47
48
|
return;
|
|
48
49
|
o.stopPropagation(), o.preventDefault();
|
|
49
50
|
}
|
|
50
|
-
},
|
|
51
|
-
!o.currentTarget.contains(o.relatedTarget) && !
|
|
51
|
+
}, n = E(null), g = (o) => {
|
|
52
|
+
!o.currentTarget.contains(o.relatedTarget) && !n.current && (n.current = o.target);
|
|
52
53
|
}, $ = (o) => {
|
|
53
54
|
var f;
|
|
54
|
-
if (
|
|
55
|
+
if (n.current && !o.currentTarget.contains(o.relatedTarget) && (!((f = e.current) === null || f === void 0) && f.contains(o.target))) {
|
|
55
56
|
var m;
|
|
56
|
-
(m =
|
|
57
|
+
(m = n.current) === null || m === void 0 || m.focus(), n.current = null;
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
60
|
return {
|
|
@@ -90,7 +91,7 @@ function U(t, e, d) {
|
|
|
90
91
|
toggle() {
|
|
91
92
|
e.toggleKey(t.id);
|
|
92
93
|
}
|
|
93
|
-
}, { isPressed: s, isSelected: l, isDisabled:
|
|
94
|
+
}, { isPressed: s, isSelected: l, isDisabled: r, buttonProps: i } = w({
|
|
94
95
|
...t,
|
|
95
96
|
id: void 0,
|
|
96
97
|
isDisabled: t.isDisabled || e.isDisabled
|
|
@@ -98,7 +99,7 @@ function U(t, e, d) {
|
|
|
98
99
|
return e.selectionMode === "single" && (i.role = "radio", i["aria-checked"] = a.isSelected, delete i["aria-pressed"]), {
|
|
99
100
|
isPressed: s,
|
|
100
101
|
isSelected: l,
|
|
101
|
-
isDisabled:
|
|
102
|
+
isDisabled: r,
|
|
102
103
|
buttonProps: i
|
|
103
104
|
};
|
|
104
105
|
}
|
|
@@ -113,20 +114,20 @@ function q(t) {
|
|
|
113
114
|
isDisabled: a,
|
|
114
115
|
selectedKeys: s,
|
|
115
116
|
setSelectedKeys: l,
|
|
116
|
-
toggleKey(
|
|
117
|
+
toggleKey(r) {
|
|
117
118
|
let i;
|
|
118
|
-
e === "multiple" ? (i = new Set(s), i.has(
|
|
119
|
-
|
|
119
|
+
e === "multiple" ? (i = new Set(s), i.has(r) && (!d || i.size > 1) ? i.delete(r) : i.add(r)) : i = new Set(s.has(r) && !d ? [] : [
|
|
120
|
+
r
|
|
120
121
|
]), l(i);
|
|
121
122
|
},
|
|
122
|
-
setSelected(
|
|
123
|
-
i !== s.has(
|
|
123
|
+
setSelected(r, i) {
|
|
124
|
+
i !== s.has(r) && this.toggleKey(r);
|
|
124
125
|
}
|
|
125
126
|
};
|
|
126
127
|
}
|
|
127
|
-
const J = /* @__PURE__ */ S({}), T = /* @__PURE__ */ S(null), O = /* @__PURE__ */
|
|
128
|
-
[e, d] =
|
|
129
|
-
let a = q(e), { groupProps: s } = j(e, a, d), l =
|
|
128
|
+
const J = /* @__PURE__ */ S({}), T = /* @__PURE__ */ S(null), O = /* @__PURE__ */ K(function(e, d) {
|
|
129
|
+
[e, d] = D(e, d, J);
|
|
130
|
+
let a = q(e), { groupProps: s } = j(e, a, d), l = h({
|
|
130
131
|
...e,
|
|
131
132
|
values: {
|
|
132
133
|
isDisabled: a.isDisabled,
|
|
@@ -144,67 +145,67 @@ const J = /* @__PURE__ */ S({}), T = /* @__PURE__ */ S(null), O = /* @__PURE__ *
|
|
|
144
145
|
}, /* @__PURE__ */ P.createElement(T.Provider, {
|
|
145
146
|
value: a
|
|
146
147
|
}, l.children));
|
|
147
|
-
}), Q = /* @__PURE__ */ S({}), W = /* @__PURE__ */
|
|
148
|
-
[e, d] =
|
|
149
|
-
let a =
|
|
148
|
+
}), Q = /* @__PURE__ */ S({}), W = /* @__PURE__ */ K(function(e, d) {
|
|
149
|
+
[e, d] = D(e, d, Q);
|
|
150
|
+
let a = F(T), s = N(a && e.id != null ? {
|
|
150
151
|
isSelected: a.selectedKeys.has(e.id),
|
|
151
152
|
onChange(f) {
|
|
152
153
|
a.setSelected(e.id, f);
|
|
153
154
|
}
|
|
154
|
-
} : e), { buttonProps: l, isPressed:
|
|
155
|
+
} : e), { buttonProps: l, isPressed: r, isSelected: i, isDisabled: u } = a && e.id != null ? U({
|
|
155
156
|
...e,
|
|
156
157
|
id: e.id
|
|
157
158
|
}, a, d) : w({
|
|
158
159
|
...e,
|
|
159
160
|
id: e.id != null ? String(e.id) : void 0
|
|
160
|
-
}, s, d), { focusProps: c, isFocused: b, isFocusVisible:
|
|
161
|
+
}, s, d), { focusProps: c, isFocused: b, isFocusVisible: n } = M(e), { hoverProps: g, isHovered: $ } = A(e), o = h({
|
|
161
162
|
...e,
|
|
162
163
|
id: void 0,
|
|
163
164
|
values: {
|
|
164
165
|
isHovered: $,
|
|
165
|
-
isPressed:
|
|
166
|
+
isPressed: r,
|
|
166
167
|
isFocused: b,
|
|
167
168
|
isSelected: s.isSelected,
|
|
168
|
-
isFocusVisible:
|
|
169
|
+
isFocusVisible: n,
|
|
169
170
|
isDisabled: u,
|
|
170
171
|
state: s
|
|
171
172
|
},
|
|
172
173
|
defaultClassName: "react-aria-ToggleButton"
|
|
173
174
|
});
|
|
174
175
|
return /* @__PURE__ */ P.createElement("button", {
|
|
175
|
-
...
|
|
176
|
+
...p(l, c, g),
|
|
176
177
|
...o,
|
|
177
178
|
ref: d,
|
|
178
179
|
slot: e.slot || void 0,
|
|
179
180
|
"data-focused": b || void 0,
|
|
180
181
|
"data-disabled": u || void 0,
|
|
181
|
-
"data-pressed":
|
|
182
|
+
"data-pressed": r || void 0,
|
|
182
183
|
"data-selected": i || void 0,
|
|
183
184
|
"data-hovered": $ || void 0,
|
|
184
|
-
"data-focus-visible":
|
|
185
|
+
"data-focus-visible": n || void 0
|
|
185
186
|
});
|
|
186
187
|
}), X = "_group_syep5_4", Y = "_toggleButton_syep5_13", C = {
|
|
187
188
|
group: X,
|
|
188
189
|
toggleButton: Y
|
|
189
|
-
},
|
|
190
|
+
}, be = ({ ...t }) => /* @__PURE__ */ y(
|
|
190
191
|
W,
|
|
191
192
|
{
|
|
192
193
|
...t,
|
|
193
|
-
className:
|
|
194
|
+
className: B(
|
|
194
195
|
v.button,
|
|
195
196
|
v.iconBtn,
|
|
196
197
|
C.toggleButton,
|
|
197
198
|
t.className
|
|
198
199
|
)
|
|
199
200
|
}
|
|
200
|
-
),
|
|
201
|
+
), $e = ({ ...t }) => /* @__PURE__ */ y(
|
|
201
202
|
O,
|
|
202
203
|
{
|
|
203
204
|
...t,
|
|
204
|
-
className:
|
|
205
|
+
className: B(C.group, t.className)
|
|
205
206
|
}
|
|
206
207
|
);
|
|
207
208
|
export {
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
be as T,
|
|
210
|
+
$e as a
|
|
210
211
|
};
|