@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,8 +1,9 @@
|
|
|
1
1
|
import { a as H } from "./Hidden-C9KWUR7b.js";
|
|
2
2
|
import { createPortal as z } from "react-dom";
|
|
3
|
-
import { b as K } from "./useFocusable-
|
|
3
|
+
import { b as K } from "./useFocusable-ChPA2Jc7.js";
|
|
4
4
|
import u, { useMemo as C, cloneElement as I, forwardRef as N, useContext as y, createContext as v, useCallback as m, useState as q, useRef as B, isValidElement as U } from "react";
|
|
5
|
-
import { $ as
|
|
5
|
+
import { $ as M } from "./SSRProvider-40TXmsUG.js";
|
|
6
|
+
import { $ as L } from "./mergeProps-C1U1OIeJ.js";
|
|
6
7
|
import { s as F } from "./index-CGRFP4CC.js";
|
|
7
8
|
class b {
|
|
8
9
|
get childNodes() {
|
|
@@ -379,7 +380,7 @@ function E(r) {
|
|
|
379
380
|
]);
|
|
380
381
|
}
|
|
381
382
|
const R = /* @__PURE__ */ v(!1), x = /* @__PURE__ */ v(null);
|
|
382
|
-
function
|
|
383
|
+
function le(r) {
|
|
383
384
|
if (y(x))
|
|
384
385
|
return r.content;
|
|
385
386
|
let { collection: t, document: n } = G(r.createCollection);
|
|
@@ -443,7 +444,7 @@ function V(r, e, t, n, l, i) {
|
|
|
443
444
|
ref: o
|
|
444
445
|
}, l);
|
|
445
446
|
}
|
|
446
|
-
function
|
|
447
|
+
function re(r, e) {
|
|
447
448
|
let t = ({ node: l }) => e(l.props, l.props.ref, l), n = N((l, i) => {
|
|
448
449
|
let o = y(K);
|
|
449
450
|
if (!y(R)) {
|
|
@@ -461,7 +462,7 @@ function le(r, e) {
|
|
|
461
462
|
});
|
|
462
463
|
return n.displayName = e.name, n;
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
+
function se(r, e, t = P) {
|
|
465
466
|
let n = ({ node: i }) => e(i.props, i.props.ref, i), l = N((i, o) => {
|
|
466
467
|
let d = t(i);
|
|
467
468
|
var s;
|
|
@@ -478,7 +479,7 @@ function P(r) {
|
|
|
478
479
|
});
|
|
479
480
|
}
|
|
480
481
|
const $ = /* @__PURE__ */ v(null);
|
|
481
|
-
function
|
|
482
|
+
function oe(r) {
|
|
482
483
|
let e = y($), t = ((e == null ? void 0 : e.dependencies) || []).concat(r.dependencies), n = r.idScope || (e == null ? void 0 : e.idScope), l = P({
|
|
483
484
|
...r,
|
|
484
485
|
idScope: n,
|
|
@@ -506,7 +507,7 @@ function J({ children: r }) {
|
|
|
506
507
|
value: e
|
|
507
508
|
}, t) : /* @__PURE__ */ z(t, e);
|
|
508
509
|
}
|
|
509
|
-
const
|
|
510
|
+
const de = /* @__PURE__ */ v(null), O = {
|
|
510
511
|
CollectionRoot({ collection: r, renderDropIndicator: e }) {
|
|
511
512
|
return w(r, null, e);
|
|
512
513
|
},
|
|
@@ -552,8 +553,8 @@ function Q(r, e, t) {
|
|
|
552
553
|
}
|
|
553
554
|
return d;
|
|
554
555
|
}
|
|
555
|
-
const
|
|
556
|
-
function
|
|
556
|
+
const ue = /* @__PURE__ */ v(O);
|
|
557
|
+
function ae(r) {
|
|
557
558
|
return C(() => r != null ? /* @__PURE__ */ new Set([
|
|
558
559
|
r
|
|
559
560
|
]) : null, [
|
|
@@ -561,14 +562,14 @@ function ue(r) {
|
|
|
561
562
|
]);
|
|
562
563
|
}
|
|
563
564
|
export {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
565
|
+
re as $,
|
|
566
|
+
se as a,
|
|
567
|
+
le as b,
|
|
568
|
+
oe as c,
|
|
569
|
+
ue as d,
|
|
570
|
+
de as e,
|
|
570
571
|
O as f,
|
|
571
|
-
|
|
572
|
+
ae as g,
|
|
572
573
|
Q as h,
|
|
573
574
|
E as i,
|
|
574
575
|
S as j,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const R=require("./Hidden-BxRZGdEW.cjs"),V=require("react-dom"),m=require("./useFocusable-D7I1ujkW.cjs"),s=require("react"),K=require("./SSRProvider-Bc-sMhsT.cjs"),P=require("./mergeProps-B5KXZAI3.cjs"),q=require("./index-Dsz3aiWt.cjs");class v{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new v(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=e,this.key=t}}class x{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),l=(n==null?void 0:n.firstChildKey)!=null?t.get(n.firstChildKey):null;for(;l;)yield l,l=l.nextKey!=null?t.get(l.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!n}UNSTABLE_filter(e){let t=new x,n=null;for(let l of this)if(l.type==="section"&&l.hasChildNodes){let i=l.clone(),d=null;for(let u of this.getChildren(l.key))if(g(u,e,this,t)){let o=u.clone();d==null&&(i.firstChildKey=o.key),t.firstKey==null&&(t.firstKey=i.key),d&&d.parentKey===o.parentKey?(d.nextKey=o.key,o.prevKey=d.key):o.prevKey=null,o.nextKey=null,t.addNode(o),d=o}d&&(d.type!=="header"?(i.lastChildKey=d.key,n==null?i.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=i.key,i.prevKey=n.key),i.nextKey=null,n=i,t.addNode(i)):(t.firstKey===i.key&&(t.firstKey=null),t.removeNode(d.key)))}else if(l.type==="separator"){let i=l.clone();i.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=i.key,i.prevKey=n.key,n=i,t.addNode(i))}else{let i=l.clone();g(i,e,this,t)&&(t.firstKey==null&&(t.firstKey=i.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===i.parentKey?(n.nextKey=i.key,i.prevKey=n.key):i.prevKey=null,i.nextKey=null,t.addNode(i),n=i)}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let l;n.prevKey!=null&&(l=t.getItem(n.prevKey),l.nextKey=null),t.removeNode(n.key),n=l}return t.lastKey=(n==null?void 0:n.key)||null,t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function g(r,e,t,n){if(r.type==="subdialogtrigger"||r.type==="submenutrigger"){let l=[...t.getChildren(r.key)][0];if(l&&e(l.textValue)){let i=l.clone();return n.addNode(i),!0}else return!1}else return r.type==="header"?!0:e(r.textValue)}class k{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class p extends k{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof p?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var e,t,n;let l=this.nextVisibleSibling,i=this.getMutableNode();i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof p?this.parentNode.node.key:null;var d;i.prevKey=(d=(e=this.previousVisibleSibling)===null||e===void 0?void 0:e.node.key)!==null&&d!==void 0?d:null;var u;i.nextKey=(u=l==null?void 0:l.node.key)!==null&&u!==void 0?u:null,i.hasChildNodes=!!this.firstChild;var o;i.firstChildKey=(o=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&o!==void 0?o:null;var a;if(i.lastChildKey=(a=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&a!==void 0?a:null,(i.colSpan!=null||i.colIndex!=null)&&l){var c,h;let f=((c=i.colIndex)!==null&&c!==void 0?c:i.index)+((h=i.colSpan)!==null&&h!==void 0?h:1);if(f!==l.node.colIndex){let E=l.getMutableNode();E.colIndex=f}}}setProps(e,t,n,l){let i=this.getMutableNode(),{value:d,textValue:u,id:o,...a}=e;if(a.ref=t,i.props=a,i.rendered=n,i.render=l,i.value=d,i.textValue=u||(typeof a.children=="string"?a.children:"")||e["aria-label"]||"",o!=null&&o!==i.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");i.key=o}a.colSpan!=null&&(i.colSpan=a.colSpan),this.hasSetProps=!0,this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(t){let n=t==="none";if(e.isHidden!==n){var l,i;(((l=e.parentNode)===null||l===void 0?void 0:l.firstVisibleChild)===e||((i=e.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let d=e.previousVisibleSibling,u=e.nextVisibleSibling;d&&e.ownerDocument.markDirty(d),u&&e.ownerDocument.markDirty(u),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new v(e,`react-aria-${++t.nodeId}`)}}class A extends k{get isConnected(){return this.isMounted}createElement(e){return new p(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let n of e)this.addNode(n);t.addNode(e.node)}removeNode(e){for(let n of e)this.removeNode(n);this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof p&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof p&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,n,l;this.nextCollection.commit((n=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&n!==void 0?n:null,(l=(t=this.lastVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&l!==void 0?l:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}}function b(r){let{children:e,items:t,idScope:n,addIdAndValue:l,dependencies:i=[]}=r,d=s.useMemo(()=>new WeakMap,i);return s.useMemo(()=>{if(t&&typeof e=="function"){let a=[];for(let c of t){let h=d.get(c);if(!h){h=e(c);var u,o;let f=(o=(u=h.props.id)!==null&&u!==void 0?u:c.key)!==null&&o!==void 0?o:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),h=s.cloneElement(h,l?{key:f,id:f,value:c}:{key:f}),d.set(c,h)}a.push(h)}return a}else if(typeof e!="function")return e},[e,t,d,n,l])}const w=s.createContext(!1),y=s.createContext(null);function H(r){if(s.useContext(y))return r.content;let{collection:t,document:n}=F(r.createCollection);return s.createElement(s.Fragment,null,s.createElement(R.$f39a9eba43920ace$export$8dc98ba7eadeaa56,null,s.createElement(y.Provider,{value:n},r.content)),s.createElement(z,{render:r.children,collection:t}))}function z({collection:r,render:e}){return e(r)}function B(r,e,t){let n=K.$b5e257d569688ac6$export$535bd6ca7f90a273(),l=s.useRef(n);l.current=n;let i=s.useCallback(()=>l.current?t():e(),[e,t]);return q.shimExports.useSyncExternalStore(r,i)}const U=typeof s.useSyncExternalStore=="function"?s.useSyncExternalStore:B;function F(r){let[e]=s.useState(()=>new A((r==null?void 0:r())||new x)),t=s.useCallback(d=>e.subscribe(d),[e]),n=s.useCallback(()=>{let d=e.getCollection();return e.isSSR&&e.resetAfterSSR(),d},[e]),l=s.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),i=U(t,n,l);return P.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:i,document:e}}const C=s.createContext(null);function I(r,e,t,n,l,i){let d=s.useCallback(o=>{o==null||o.setProps(e,t,n,i)},[e,t,n,i]),u=s.useContext(C);if(u){let o=u.ownerDocument.nodesByProps.get(e);return o||(o=u.ownerDocument.createElement(r),o.setProps(e,t,n,i),u.appendChild(o),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(e,o)),l?s.createElement(C.Provider,{value:o},l):null}return s.createElement(r,{ref:d},l)}function L(r,e){let t=({node:l})=>e(l.props,l.props.ref,l),n=s.forwardRef((l,i)=>{let d=s.useContext(m.$f645667febf57a63$export$f9762fab77588ecb);if(!s.useContext(w)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(l,i)}return I(r,l,i,"children"in l?l.children:null,null,o=>s.createElement(m.$f645667febf57a63$export$f9762fab77588ecb.Provider,{value:d},s.createElement(t,{node:o})))});return n.displayName=e.name,n}function W(r,e,t=N){let n=({node:i})=>e(i.props,i.props.ref,i),l=s.forwardRef((i,d)=>{let u=t(i);var o;return(o=I(r,i,d,null,u,a=>s.createElement(n,{node:a})))!==null&&o!==void 0?o:s.createElement(s.Fragment,null)});return l.displayName=e.name,l}function N(r){return b({...r,addIdAndValue:!0})}const S=s.createContext(null);function T(r){let e=s.useContext(S),t=((e==null?void 0:e.dependencies)||[]).concat(r.dependencies),n=r.idScope||(e==null?void 0:e.idScope),l=N({...r,idScope:n,dependencies:t});return s.useContext(y)&&(l=s.createElement(O,null,l)),e=s.useMemo(()=>({dependencies:t,idScope:n}),[n,...t]),s.createElement(S.Provider,{value:e},l)}function O({children:r}){let e=s.useContext(y),t=s.useMemo(()=>s.createElement(y.Provider,{value:null},s.createElement(w.Provider,{value:!0},r)),[r]);return K.$b5e257d569688ac6$export$535bd6ca7f90a273()?s.createElement(C.Provider,{value:e},t):V.createPortal(t,e)}const _=s.createContext(null),M={CollectionRoot({collection:r,renderDropIndicator:e}){return $(r,null,e)},CollectionBranch({collection:r,parent:e,renderDropIndicator:t}){return $(r,e,t)}};function $(r,e,t){return b({items:e?r.getChildren(e.key):r,dependencies:[t],children(n){let l=n.render(n);return!t||n.type!=="item"?l:s.createElement(s.Fragment,null,t({type:"item",key:n.key,dropPosition:"before"}),l,D(r,n,t))}})}function D(r,e,t){let n=e.key,l=r.getKeyAfter(n),i=l!=null?r.getItem(l):null;for(;i!=null&&i.type!=="item";)l=r.getKeyAfter(i.key),i=l!=null?r.getItem(l):null;let d=e.nextKey!=null?r.getItem(e.nextKey):null;for(;d!=null&&d.type!=="item";)d=d.nextKey!=null?r.getItem(d.nextKey):null;let u=[];if(d==null){let o=e;for(;o&&(!i||o.parentKey!==i.parentKey&&i.level<o.level);){let a=t({type:"item",key:o.key,dropPosition:"after"});s.isValidElement(a)&&u.push(s.cloneElement(a,{key:`${o.key}-after`})),o=o.parentKey!=null?r.getItem(o.parentKey):null}}return u}const G=s.createContext(M);function J(r){return s.useMemo(()=>r!=null?new Set([r]):null,[r])}exports.$23b9f4fcf0fe224b$export$408d25a4e12db025=x;exports.$23b9f4fcf0fe224b$export$d68d59712b04d9d1=v;exports.$7135fc7d473fd974$export$2dbbd341daed716d=D;exports.$7135fc7d473fd974$export$4feb769f8ddf26c5=G;exports.$7135fc7d473fd974$export$90e00781bc59d8f9=J;exports.$7135fc7d473fd974$export$a164736487e3f0ae=M;exports.$7135fc7d473fd974$export$d40e14dec8b060a8=_;exports.$e1995378a142960e$export$18af5c7a9e9b3664=L;exports.$e1995378a142960e$export$bf788dd355e3a401=H;exports.$e1995378a142960e$export$e953bb1cd0f19726=W;exports.$e1995378a142960e$export$fb8073518f34e6ec=T;exports.$e948873055cbafe4$export$727c8fc270210f13=b;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";require('./assets/ColorSchemeSwitch.css');const e=require("react/jsx-runtime"),m=require("react"),s=require("./ToggleButtonGroup-DZ_wo0qx.cjs"),i=require("./createLucideIcon-CTVXwe6i.cjs"),a=require("./VisuallyHidden-Doyzl0F7.cjs"),g=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function p(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(c,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return c.default=t,Object.freeze(c)}const u=p(m);/**
|
|
2
|
+
* @license lucide-react v0.525.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const y=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],f=i.createLucideIcon("laptop",y);/**
|
|
7
|
+
* @license lucide-react v0.525.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const k=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],j=i.createLucideIcon("moon",k);/**
|
|
12
|
+
* @license lucide-react v0.525.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const M=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],S=i.createLucideIcon("sun",M),x="_button_1dy1i_1",d={button:x},b={darkMode:"Dark Mode",lightMode:"Light Mode",system:"System Setting"},_={darkMode:"Mörkt läge",lightMode:"Ljust läge",system:"Systeminställning"},$={en:b,sv:_},L=({selector:t="body",defaultValue:c=new Set(["light dark"]),className:o})=>{const[n,h]=u.useState(c);u.useEffect(()=>{const l=document.querySelector(t);l?l.style.setProperty("color-scheme",Array.from(n).join(" ")):console.warn(`No element found for selector: "${t}"`)},[n,t]);const r=g.useLocalizedStringFormatter($);return e.jsxs(s.ToggleButtonGroup,{selectionMode:"single",selectedKeys:n,onSelectionChange:h,disallowEmptySelection:!0,className:o,children:[e.jsxs(s.ToggleButton,{id:"light dark",className:d.button,children:[e.jsx(f,{}),e.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:r.format("system")})]}),e.jsxs(s.ToggleButton,{id:"light",className:d.button,children:[e.jsx(S,{}),e.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:r.format("lightMode")})]}),e.jsxs(s.ToggleButton,{id:"dark",className:d.button,children:[e.jsx(j,{}),e.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:r.format("darkMode")})]})]})};exports.ColorSchemeSwitch=L;
|
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { a as
|
|
4
|
-
import { c as
|
|
5
|
-
import { $ as
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { a as y, T as a } from "./ToggleButtonGroup-DhlfvYGg.js";
|
|
4
|
+
import { c as d } from "./createLucideIcon-XRdN60yz.js";
|
|
5
|
+
import { $ as r } from "./VisuallyHidden-CYfmTSCD.js";
|
|
6
|
+
import { u as g } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
6
7
|
import './assets/ColorSchemeSwitch.css';/**
|
|
7
|
-
* @license lucide-react v0.
|
|
8
|
+
* @license lucide-react v0.525.0 - ISC
|
|
8
9
|
*
|
|
9
10
|
* This source code is licensed under the ISC license.
|
|
10
11
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
12
|
*/
|
|
12
|
-
const
|
|
13
|
+
const u = [
|
|
13
14
|
[
|
|
14
15
|
"path",
|
|
15
16
|
{
|
|
16
|
-
d: "
|
|
17
|
-
key: "
|
|
17
|
+
d: "M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",
|
|
18
|
+
key: "1pdavp"
|
|
18
19
|
}
|
|
19
|
-
]
|
|
20
|
-
]
|
|
20
|
+
],
|
|
21
|
+
["path", { d: "M20.054 15.987H3.946", key: "14rxg9" }]
|
|
22
|
+
], k = d("laptop", u);
|
|
21
23
|
/**
|
|
22
|
-
* @license lucide-react v0.
|
|
24
|
+
* @license lucide-react v0.525.0 - ISC
|
|
23
25
|
*
|
|
24
26
|
* This source code is licensed under the ISC license.
|
|
25
27
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
28
|
*/
|
|
27
|
-
const
|
|
29
|
+
const M = [
|
|
28
30
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
29
|
-
]);
|
|
31
|
+
], f = d("moon", M);
|
|
30
32
|
/**
|
|
31
|
-
* @license lucide-react v0.
|
|
33
|
+
* @license lucide-react v0.525.0 - ISC
|
|
32
34
|
*
|
|
33
35
|
* This source code is licensed under the ISC license.
|
|
34
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
37
|
*/
|
|
36
|
-
const
|
|
38
|
+
const S = [
|
|
37
39
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
38
40
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
39
41
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -43,35 +45,50 @@ const y = s("Sun", [
|
|
|
43
45
|
["path", { d: "M20 12h2", key: "1q8mjw" }],
|
|
44
46
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
45
47
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
46
|
-
]),
|
|
47
|
-
button:
|
|
48
|
-
},
|
|
48
|
+
], _ = d("sun", S), b = "_button_1dy1i_1", c = {
|
|
49
|
+
button: b
|
|
50
|
+
}, v = {
|
|
51
|
+
darkMode: "Dark Mode",
|
|
52
|
+
lightMode: "Light Mode",
|
|
53
|
+
system: "System Setting"
|
|
54
|
+
}, x = {
|
|
55
|
+
darkMode: "Mörkt läge",
|
|
56
|
+
lightMode: "Ljust läge",
|
|
57
|
+
system: "Systeminställning"
|
|
58
|
+
}, N = {
|
|
59
|
+
en: v,
|
|
60
|
+
sv: x
|
|
61
|
+
}, C = ({
|
|
49
62
|
selector: o = "body",
|
|
50
|
-
defaultValue:
|
|
63
|
+
defaultValue: m = /* @__PURE__ */ new Set(["light dark"]),
|
|
64
|
+
className: h
|
|
51
65
|
}) => {
|
|
52
|
-
const [
|
|
53
|
-
|
|
66
|
+
const [s, p] = i.useState(m);
|
|
67
|
+
i.useEffect(() => {
|
|
54
68
|
const l = document.querySelector(o);
|
|
55
69
|
l ? l.style.setProperty(
|
|
56
70
|
"color-scheme",
|
|
57
|
-
Array.from(
|
|
71
|
+
Array.from(s).join(" ")
|
|
58
72
|
) : console.warn(`No element found for selector: "${o}"`);
|
|
59
|
-
}, [
|
|
60
|
-
|
|
73
|
+
}, [s, o]);
|
|
74
|
+
const n = g(N);
|
|
75
|
+
return /* @__PURE__ */ t(
|
|
76
|
+
y,
|
|
61
77
|
{
|
|
62
78
|
selectionMode: "single",
|
|
63
|
-
selectedKeys:
|
|
64
|
-
onSelectionChange:
|
|
79
|
+
selectedKeys: s,
|
|
80
|
+
onSelectionChange: p,
|
|
65
81
|
disallowEmptySelection: !0,
|
|
82
|
+
className: h,
|
|
66
83
|
children: [
|
|
67
84
|
/* @__PURE__ */ t(
|
|
68
85
|
a,
|
|
69
86
|
{
|
|
70
87
|
id: "light dark",
|
|
71
|
-
className:
|
|
88
|
+
className: c.button,
|
|
72
89
|
children: [
|
|
73
|
-
/* @__PURE__ */ e(
|
|
74
|
-
/* @__PURE__ */ e(
|
|
90
|
+
/* @__PURE__ */ e(k, {}),
|
|
91
|
+
/* @__PURE__ */ e(r, { children: n.format("system") })
|
|
75
92
|
]
|
|
76
93
|
}
|
|
77
94
|
),
|
|
@@ -79,10 +96,10 @@ const y = s("Sun", [
|
|
|
79
96
|
a,
|
|
80
97
|
{
|
|
81
98
|
id: "light",
|
|
82
|
-
className:
|
|
99
|
+
className: c.button,
|
|
83
100
|
children: [
|
|
84
|
-
/* @__PURE__ */ e(
|
|
85
|
-
/* @__PURE__ */ e(
|
|
101
|
+
/* @__PURE__ */ e(_, {}),
|
|
102
|
+
/* @__PURE__ */ e(r, { children: n.format("lightMode") })
|
|
86
103
|
]
|
|
87
104
|
}
|
|
88
105
|
),
|
|
@@ -90,10 +107,10 @@ const y = s("Sun", [
|
|
|
90
107
|
a,
|
|
91
108
|
{
|
|
92
109
|
id: "dark",
|
|
93
|
-
className:
|
|
110
|
+
className: c.button,
|
|
94
111
|
children: [
|
|
95
|
-
/* @__PURE__ */ e(
|
|
96
|
-
/* @__PURE__ */ e(
|
|
112
|
+
/* @__PURE__ */ e(f, {}),
|
|
113
|
+
/* @__PURE__ */ e(r, { children: n.format("darkMode") })
|
|
97
114
|
]
|
|
98
115
|
}
|
|
99
116
|
)
|
|
@@ -102,5 +119,5 @@ const y = s("Sun", [
|
|
|
102
119
|
);
|
|
103
120
|
};
|
|
104
121
|
export {
|
|
105
|
-
|
|
122
|
+
C
|
|
106
123
|
};
|