@midas-ds/components 10.3.0 → 10.4.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-BcsoC78F.cjs +1 -0
- package/{AccordionItem-ChHpW8EW.js → AccordionItem-BqsgiVWV.js} +38 -36
- package/Breadcrumbs-CfW5IuyE.cjs +1 -0
- package/{Breadcrumbs-CwDUNIqF.js → Breadcrumbs-D7eoibWk.js} +77 -65
- package/{Button-BoJl6JGM.cjs → Button-BXY5ZhqI.cjs} +1 -1
- package/{Button-Csih3v23.js → Button-BZUo7vsZ.js} +1 -1
- package/{Button-DjBChs7s.js → Button-CFYdzG0H.js} +24 -23
- package/Button-DExMoP5f.cjs +1 -0
- package/CHANGELOG.md +28 -0
- package/{Card-yrtGzt70.js → Card-BaWSgtSF.js} +3 -3
- package/{Card-0G0mj9q5.cjs → Card-Cc1TNPcQ.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-CUA8_xSx.js +160 -0
- package/CheckboxGroup-DmUOM0xl.cjs +1 -0
- package/{Collection-Brgjpkne.js → Collection--62xKPm9.js} +17 -16
- package/Collection-BtBX5IMY.cjs +1 -0
- package/{ColorSchemeSwitch-BpzQ7g0b.js → ColorSchemeSwitch-Cwono7Ap.js} +51 -35
- package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
- package/ComboBox-BBC7jhnm.cjs +1 -0
- package/{ComboBox-CVDyp2a-.js → ComboBox-HLIAbb2q.js} +309 -298
- package/{DateField-DeDhiYnW.cjs → DateField-B3VjOSde.cjs} +1 -1
- package/{DateField-DhU3q-rG.js → DateField-CnLEi7uX.js} +4 -4
- package/DateInputDivider-3BvwXXa9.cjs +1 -0
- package/{DateInputDivider-CF4xWsMT.js → DateInputDivider-Bi5N-C0c.js} +90 -86
- package/DateRangePicker-BPlZ12r8.cjs +6 -0
- package/{DateRangePicker-ziD1_k1W.js → DateRangePicker-CFOoGvut.js} +86 -83
- package/Dialog-CSnN6baf.cjs +1 -0
- package/{Dialog-D14MbJ7o.js → Dialog-CtVrVuMr.js} +101 -98
- package/Dialog-SqciohRY.js +221 -0
- package/Dialog-pSSy1zwf.cjs +1 -0
- package/DragAndDrop-BoEd260f.cjs +1 -0
- package/{DragAndDrop-o3ruz_SR.js → DragAndDrop-DkSTL28C.js} +2 -2
- package/{Dropdown-Df58j43I.js → Dropdown-CkBp70BH.js} +2 -2
- package/{Dropdown-CJ6My6EI.cjs → Dropdown-DAsVShlt.cjs} +1 -1
- 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-B4rv-wke.js} +496 -475
- package/{FileUpload-CxCOtyB9.cjs → FileUpload-BwMhyLjG.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-BLM-TJJ6.js → InfoBanner-CBUoad7A.js} +47 -39
- package/InfoBanner-CVry6Y8i.cjs +1 -0
- package/{Input-BTzwcf72.js → Input-LnjmFI1x.js} +13 -12
- package/Input-MJji5hhq.cjs +1 -0
- package/Label-CNmTN1YY.cjs +1 -0
- package/Label-TVxwGZ-O.js +78 -0
- package/Layout-Dw-oCqxd.cjs +16 -0
- package/Layout-amz9BESl.js +498 -0
- package/{Link-yNO2-sqx.js → Link-Bn8V3ZI0.js} +8 -7
- package/Link-CidjjqHb.cjs +1 -0
- package/{Link-B88l_oaE.cjs → Link-D92ftFi2.cjs} +1 -1
- package/{Link-DX5BbBnn.js → Link-DegonJfl.js} +1 -1
- package/{LinkButton-o6uS1XsR.js → LinkButton-CckYzfJ8.js} +1 -1
- package/{LinkButton-CBpGLETx.cjs → LinkButton-DKZ4z6zu.cjs} +1 -1
- 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-BNCjpcv8.js} +2 -2
- package/{ProgressBar-Jbg28j2a.cjs → ProgressBar-CcbxcWdT.cjs} +1 -1
- package/Radio-B2zfEFdq.cjs +1 -0
- package/{Radio-Cz29wPXd.js → Radio-CZYibh9r.js} +50 -47
- package/{RangeCalendar-RAlAHlNL.js → RangeCalendar-B16b6tJD.js} +304 -293
- package/RangeCalendar-C1LFeOVk.cjs +11 -0
- package/SSRProvider-40TXmsUG.js +50 -0
- package/SSRProvider-Bc-sMhsT.cjs +1 -0
- package/SearchField-CML0kjtn.cjs +6 -0
- package/{SearchField-IlvZ3Kh6.js → SearchField-giwECmXS.js} +175 -166
- package/Select-DKey6CeS.cjs +1 -0
- package/Select-mwaAv20X.js +665 -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-CbJ6YAz-.js +53 -0
- package/Spinner-yHcy8YHC.cjs +6 -0
- package/TabList-7VtCiXxX.cjs +1 -0
- package/TabList-CthsM5h6.js +435 -0
- package/{Table-F4oYBtUM.js → Table-BcQPvJT3.js} +46 -44
- package/Table-DkvNp6xm.cjs +16 -0
- package/{Tag-Du7GvSv2.js → Tag-Bs8T2Ei7.js} +131 -129
- package/Tag-CFWZ2LQW.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-DBNAVWqL.js +119 -0
- package/TextArea-XJDfeXRs.cjs +1 -0
- package/TextField-BdK9KEQ5.cjs +1 -0
- package/{TextField-C-hTPukq.js → TextField-ByDJkig9.js} +23 -22
- package/{Toast-Btg21Xge.js → Toast-DPPvPhrF.js} +75 -68
- package/Toast-l1bKo2oA.cjs +1 -0
- package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
- package/{ToggleButtonGroup-B5yz1tm2.js → ToggleButtonGroup-HOWNWtQZ.js} +46 -45
- 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/assets/Checkbox.css +1 -1
- package/assets/FileUpload.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/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/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/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/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/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-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/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/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/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/{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/AccordionItem-BGWiWjxA.cjs +0 -1
- package/Breadcrumbs-DtjJ1UmU.cjs +0 -1
- package/Button-htW9qIsS.cjs +0 -1
- 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/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-BQhauBuw.cjs +0 -1
- 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/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/assets/Tabs.css +0 -1
- package/context-DjwhtgxQ.cjs +0 -1
- package/scrollIntoView-C8doLzDd.cjs +0 -1
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { c as n } from "./clsx-OuTLNxxd.js";
|
|
3
3
|
import * as e from "react";
|
|
4
|
-
import { H as m } from "./Heading-
|
|
5
|
-
import { $ as _ } from "./Button-
|
|
6
|
-
import { $ as h } from "./Link-
|
|
4
|
+
import { H as m } from "./Heading-NxtGri2i.js";
|
|
5
|
+
import { $ as _ } from "./Button-CFYdzG0H.js";
|
|
6
|
+
import { $ as h } from "./Link-Bn8V3ZI0.js";
|
|
7
7
|
import { A as C } from "./arrow-right-Dg8sttFO.js";
|
|
8
8
|
import './assets/Card.css';const A = "_card_1hl11_4", I = "_horizontal_1hl11_10", p = "_cardLink_1hl11_15", u = "_cardContent_1hl11_20", x = "_cardActions_1hl11_39", f = "_cardActionArea_1hl11_49", z = "_cardImage_1hl11_82", k = "_cardLinkIcon_1hl11_114", r = {
|
|
9
9
|
card: A,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/Card.css');const a=require("react/jsx-runtime"),o=require("./clsx-C11secjj.cjs"),l=require("react"),u=require("./Heading-
|
|
1
|
+
"use strict";require('./assets/Card.css');const a=require("react/jsx-runtime"),o=require("./clsx-C11secjj.cjs"),l=require("react"),u=require("./Heading-CKTR4sOz.cjs"),C=require("./Button-DExMoP5f.cjs"),x=require("./Link-CidjjqHb.cjs"),_=require("./arrow-right-QJ2gXPKQ.cjs");function h(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const s=h(l),m="_card_1hl11_4",A="_horizontal_1hl11_10",g="_cardLink_1hl11_15",I="_cardContent_1hl11_20",j="_cardActions_1hl11_39",b="_cardActionArea_1hl11_49",f="_cardImage_1hl11_82",k="_cardLinkIcon_1hl11_114",n={card:m,horizontal:A,cardLink:g,cardContent:I,cardActions:j,cardActionArea:b,cardImage:f,cardLinkIcon:k},i=s.createContext({horizontal:void 0,titleId:void 0}),z=({horizontal:e,className:c,children:t,...r})=>{const d=`card-title-${s.useId()}`;return a.jsx(i.Provider,{value:{horizontal:e,titleId:d},children:a.jsx("div",{...r,className:o.clsx(n.card,e&&n.horizontal,c),children:t})})},L=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(n.cardContent,t&&n.horizontal),children:e})},p=({elementType:e="h2",children:c})=>{const{horizontal:t,titleId:r}=s.useContext(i);return a.jsx(u.Heading,{level:t?5:3,elementType:e,isExpressive:t,className:o.clsx(n.cardTitle,t&&n.horizontal),id:r,children:c})},v=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(n.cardActions,t&&n.horizontal),children:e})},N=({children:e,className:c,...t})=>{const{titleId:r}=s.useContext(i);return a.jsx(C.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{...t,"aria-labelledby":r,className:o.clsx(n.cardActionArea,c),children:e})},q=({as:e="img",className:c,...t})=>a.jsx(e,{...t,className:o.clsx(n.cardImage,c)}),$=({children:e,as:c,...t})=>{const r=c||x.$4f118338184dc1d9$export$a6c7ac8248d6e38a;return a.jsxs(r,{...t,className:o.clsx(n.cardLink,t.className),children:[e,a.jsx(_.ArrowRight,{className:n.cardLinkIcon,size:24})]})};exports.Card=z;exports.CardActionArea=N;exports.CardActions=v;exports.CardContent=L;exports.CardImage=q;exports.CardLink=$;exports.CardTitle=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/CharacterCounter.css');const s=require("react/jsx-runtime"),u=require("react"),i=require("./utils-
|
|
1
|
+
"use strict";require('./assets/CharacterCounter.css');const s=require("react/jsx-runtime"),u=require("react"),i=require("./utils-DHNZrQmj.cjs"),d=require("./Input-MJji5hhq.cjs");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=f(u),h="_characterCounter_4224k_4",b={characterCounter:h},g=l.forwardRef((e,n)=>{[e]=i.$64fa3d84918910a7$export$29f1550f4b0d4415(e,n,d.$3985021b0ad6602f$export$37fb8590cf2c088c);const{maxLength:t,value:r,isLonely:o}=e,{length:c}=(r==null?void 0:r.toString())??"",a=t!==void 0;return s.jsx("span",{className:b.characterCounter,"data-exceeded":a&&c>t||void 0,"data-lonely":o||void 0,children:a?`${c} / ${t}`:c})});exports.CharacterCounter=g;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { $ as i } from "./Input-
|
|
5
|
-
import './assets/CharacterCounter.css';const m = "_characterCounter_4224k_4",
|
|
3
|
+
import { $ as f } from "./utils-DJhAJHk_.js";
|
|
4
|
+
import { $ as i } from "./Input-LnjmFI1x.js";
|
|
5
|
+
import './assets/CharacterCounter.css';const m = "_characterCounter_4224k_4", $ = {
|
|
6
6
|
characterCounter: m
|
|
7
7
|
}, l = d.forwardRef((t, c) => {
|
|
8
8
|
[t] = f(t, c, i);
|
|
@@ -10,7 +10,7 @@ import './assets/CharacterCounter.css';const m = "_characterCounter_4224k_4", h
|
|
|
10
10
|
return /* @__PURE__ */ s(
|
|
11
11
|
"span",
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
13
|
+
className: $.characterCounter,
|
|
14
14
|
"data-exceeded": o && a > r || void 0,
|
|
15
15
|
"data-lonely": n || void 0,
|
|
16
16
|
children: o ? `${a} / ${r}` : a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/Checkbox.css');const s=require("react/jsx-runtime"),g=require("react"),G=require("./RSPContexts-D8hmBfGm.cjs"),D=require("./utils-DHNZrQmj.cjs"),F=require("./Form-BuOomA4T.cjs"),S=require("./clsx-C11secjj.cjs"),P=require("./mergeProps-B5KXZAI3.cjs"),N=require("./VisuallyHidden-Doyzl0F7.cjs"),m=require("./useFormValidation-BlFGdPZB.cjs"),V=require("./usePress-BooY_CAy.cjs"),M=require("./filterDOMProps-BS2lrgFA.cjs"),L=require("./useFocusable-D7I1ujkW.cjs"),O=require("./useToggleState-DoIkSQdj.cjs"),A=require("./useHover-BE_XKZKe.cjs"),H=require("./useFocusRing-B-A1OLhU.cjs");function T(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const d=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,d.get?d:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const R=T(g);function z(e,i,a){let{isDisabled:d=!1,isReadOnly:t=!1,value:r,name:o,children:n,"aria-label":l,"aria-labelledby":c,validationState:$="valid",isInvalid:u}=e,x=v=>{v.stopPropagation(),i.setSelected(v.target.checked)},y=n!=null,f=l!=null||c!=null;!y&&!f&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:h,isPressed:b}=V.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:d}),{pressProps:I,isPressed:k}=V.$f6c31cce2adf654f$export$45712eceda6fad21({onPress(){var v;i.toggle(),(v=a.current)===null||v===void 0||v.focus()},isDisabled:d||t}),{focusableProps:p}=L.$f645667febf57a63$export$4c014de7c8940b4c(e,a),w=P.$3ef42575df84b30b$export$9d1611c77c2fe928(h,p),E=M.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});return m.$99facab73266f662$export$5add1d006293d136(a,i.isSelected,i.setSelected),{labelProps:P.$3ef42575df84b30b$export$9d1611c77c2fe928(I,{onClick:v=>v.preventDefault()}),inputProps:P.$3ef42575df84b30b$export$9d1611c77c2fe928(E,{"aria-invalid":u||$==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":t||void 0,onChange:x,disabled:d,...r==null?{}:{value:r},name:o,type:"checkbox",...w}),isSelected:i.isSelected,isPressed:b||k,isDisabled:d,isReadOnly:t,isInvalid:u||$==="invalid"}}function C(e,i,a){let d=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i.isSelected}),{isInvalid:t,validationErrors:r,validationDetails:o}=d.displayValidation,{labelProps:n,inputProps:l,isSelected:c,isPressed:$,isDisabled:u,isReadOnly:x}=z({...e,isInvalid:t},i,a);m.$e93e671b31057976$export$b8473d3665f3a75a(e,d,a);let{isIndeterminate:y,isRequired:f,validationBehavior:h="aria"}=e;g.useEffect(()=>{a.current&&(a.current.indeterminate=!!y)});let{pressProps:b}=V.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:u||x,onPress(){let{[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:I}=e,{commitValidation:k}=I||d;k()}});return{labelProps:P.$3ef42575df84b30b$export$9d1611c77c2fe928(n,b),inputProps:{...l,checked:c,"aria-required":f&&h==="aria"||void 0,required:f&&h==="native"},isSelected:c,isPressed:$,isDisabled:u,isReadOnly:x,isInvalid:t,validationErrors:r,validationDetails:o}}const _=new WeakMap;function W(e,i,a){const d=O.$3017fa7ffdddec74$export$8042c6c013fd5226({isReadOnly:e.isReadOnly||i.isReadOnly,isSelected:i.isSelected(e.value),onChange(b){b?i.addValue(e.value):i.removeValue(e.value),e.onChange&&e.onChange(b)}});let{name:t,descriptionId:r,errorMessageId:o,validationBehavior:n}=_.get(i);var l;n=(l=e.validationBehavior)!==null&&l!==void 0?l:n;let{realtimeValidation:c}=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:d.isSelected,name:void 0,validationBehavior:"aria"}),$=g.useRef(m.$e5be200c675c3b3a$export$dad6ae84456c676a),u=()=>{i.setInvalid(e.value,c.isInvalid?c:$.current)};g.useEffect(u);let x=i.realtimeValidation.isInvalid?i.realtimeValidation:c,y=n==="native"?i.displayValidation:x;var f;let h=C({...e,isReadOnly:e.isReadOnly||i.isReadOnly,isDisabled:e.isDisabled||i.isDisabled,name:e.name||t,isRequired:(f=e.isRequired)!==null&&f!==void 0?f:i.isRequired,validationBehavior:n,[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:x,displayValidation:y,resetValidation:i.resetValidation,commitValidation:i.commitValidation,updateValidation(b){$.current=b,u()}}},d,a);return{...h,inputProps:{...h.inputProps,"aria-describedby":[e["aria-describedby"],i.isInvalid?o:null,r].filter(Boolean).join(" ")||void 0}}}const j=g.createContext(null),J="_checkboxInner_5vl7s_4",K="_checkbox_5vl7s_4",Q="_checkboxGroup_5vl7s_124",q={checkboxInner:J,checkbox:K,checkboxGroup:Q},B=R.forwardRef((e,i)=>{const{hoverProps:a,isHovered:d}=e.hoverResult,{pressProps:t,isPressed:r}=e.pressResult,{isFocused:o,isFocusVisible:n,focusProps:l}=e.focusRingAria;return s.jsxs("label",{ref:i,...P.$3ef42575df84b30b$export$9d1611c77c2fe928(a,t,e.labelProps),slot:e.slot||void 0,className:S.clsx(q.checkbox,e.className),"data-hovered":d||void 0,"data-selected":e.isSelected||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":r||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":e.isInvalid||void 0,"data-focused":o||void 0,"data-focus-visible":n||void 0,"data-required":e.isRequired||void 0,children:[s.jsx("div",{className:S.clsx(q.checkboxInner),children:s.jsx("svg",{width:16,height:16,viewBox:"0 0 18 18","aria-hidden":"true",children:e.isIndeterminate?s.jsx("rect",{x:4,y:8,width:10,height:2}):s.jsx("polyline",{points:"3,9 7,13 15,4"})})}),s.jsx(N.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:s.jsx("input",{...P.$3ef42575df84b30b$export$9d1611c77c2fe928(e.inputProps,l),ref:e.inputRef})}),e.children]})}),U=R.forwardRef((e,i)=>{const a=W({...e,value:e.value||""},e.state,e.inputRef);return s.jsx(B,{...e,...a,ref:i})}),X=R.forwardRef((e,i)=>{const a=C(e,O.$3017fa7ffdddec74$export$8042c6c013fd5226(e),e.inputRef);return s.jsx(B,{...e,...a,ref:i})}),Y=R.forwardRef((e,i)=>{[e,i]=D.$64fa3d84918910a7$export$29f1550f4b0d4415(e,i,G.$4e85f108e88277b8$export$b085522c77523c51);const a=D.$64fa3d84918910a7$export$fabf2dc03a41866e(F.$d3e0e05bdfcf66bd$export$c24727297075ec6a),d=e.validationBehavior??(a==null?void 0:a.validationBehavior)??"native",t=R.useContext(j),r=R.useRef(null),o=A.$6179b936705e76d3$export$ae780daf29e6d456(e),n=V.$f6c31cce2adf654f$export$45712eceda6fad21({ref:i,isDisabled:e.isDisabled}),l=H.$f7dceffc5ad7768b$export$4e328f61c538687f();return t?s.jsx(U,{...e,state:t,inputRef:r,hoverResult:o,pressResult:n,focusRingAria:l,validationBehavior:d}):s.jsx(X,{...e,inputRef:r,hoverResult:o,pressResult:n,focusRingAria:l,validationBehavior:d})});exports.$1ae600c947479353$export$ec98120685d4f57d=_;exports.Checkbox=Y;exports.CheckboxGroupContext=j;exports.styles=q;
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as E, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as x from "react";
|
|
3
|
-
import
|
|
3
|
+
import G, { useEffect as D, useRef as N } from "react";
|
|
4
4
|
import { a as L } from "./RSPContexts-BW2SEIqe.js";
|
|
5
|
-
import {
|
|
6
|
-
import { $ as
|
|
7
|
-
import { c as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { a as
|
|
5
|
+
import { $ as j, b as A } from "./utils-DJhAJHk_.js";
|
|
6
|
+
import { $ as M } from "./Form-CXcEMuBf.js";
|
|
7
|
+
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
8
|
+
import { a as R } from "./mergeProps-C1U1OIeJ.js";
|
|
9
|
+
import { $ as F } from "./VisuallyHidden-CYfmTSCD.js";
|
|
10
|
+
import { a as H, $ as S, b as W, d as _, e as z } from "./useFormValidation-BzzruZKm.js";
|
|
11
|
+
import { a as I } from "./usePress-DuR4pVsE.js";
|
|
11
12
|
import { $ as J } from "./filterDOMProps-D6KHYVBX.js";
|
|
12
|
-
import { $ as K } from "./useFocusable-
|
|
13
|
-
import { $ as
|
|
14
|
-
import { $ as Q } from "./useHover-
|
|
15
|
-
import { $ as T } from "./useFocusRing-
|
|
13
|
+
import { $ as K } from "./useFocusable-ChPA2Jc7.js";
|
|
14
|
+
import { $ as C } from "./useToggleState-Bz5rAf4C.js";
|
|
15
|
+
import { $ as Q } from "./useHover-DQvJ3Y-W.js";
|
|
16
|
+
import { $ as T } from "./useFocusRing-DOfBqnUN.js";
|
|
16
17
|
import './assets/Checkbox.css';function U(e, i, a) {
|
|
17
|
-
let { isDisabled: d = !1, isReadOnly: l = !1, value: o, name:
|
|
18
|
-
|
|
18
|
+
let { isDisabled: d = !1, isReadOnly: l = !1, value: o, name: s, children: t, "aria-label": n, "aria-labelledby": c, validationState: $ = "valid", isInvalid: f } = e, m = (b) => {
|
|
19
|
+
b.stopPropagation(), i.setSelected(b.target.checked);
|
|
19
20
|
}, P = t != null, u = n != null || c != null;
|
|
20
21
|
!P && !u && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
21
|
-
let { pressProps: h, isPressed:
|
|
22
|
+
let { pressProps: h, isPressed: v } = I({
|
|
22
23
|
isDisabled: d
|
|
23
|
-
}), { pressProps: y, isPressed:
|
|
24
|
+
}), { pressProps: y, isPressed: V } = I({
|
|
24
25
|
onPress() {
|
|
25
|
-
var
|
|
26
|
-
i.toggle(), (
|
|
26
|
+
var b;
|
|
27
|
+
i.toggle(), (b = a.current) === null || b === void 0 || b.focus();
|
|
27
28
|
},
|
|
28
29
|
isDisabled: d || l
|
|
29
|
-
}), { focusableProps:
|
|
30
|
+
}), { focusableProps: q } = K(e, a), p = R(h, q), w = J(e, {
|
|
30
31
|
labelable: !0
|
|
31
32
|
});
|
|
32
33
|
return H(a, i.isSelected, i.setSelected), {
|
|
33
34
|
labelProps: R(y, {
|
|
34
|
-
onClick: (
|
|
35
|
+
onClick: (b) => b.preventDefault()
|
|
35
36
|
}),
|
|
36
|
-
inputProps: R(
|
|
37
|
+
inputProps: R(w, {
|
|
37
38
|
"aria-invalid": f || $ === "invalid" || void 0,
|
|
38
39
|
"aria-errormessage": e["aria-errormessage"],
|
|
39
40
|
"aria-controls": e["aria-controls"],
|
|
@@ -43,39 +44,39 @@ import './assets/Checkbox.css';function U(e, i, a) {
|
|
|
43
44
|
...o == null ? {} : {
|
|
44
45
|
value: o
|
|
45
46
|
},
|
|
46
|
-
name:
|
|
47
|
+
name: s,
|
|
47
48
|
type: "checkbox",
|
|
48
49
|
...p
|
|
49
50
|
}),
|
|
50
51
|
isSelected: i.isSelected,
|
|
51
|
-
isPressed:
|
|
52
|
+
isPressed: v || V,
|
|
52
53
|
isDisabled: d,
|
|
53
54
|
isReadOnly: l,
|
|
54
55
|
isInvalid: f || $ === "invalid"
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
-
let d =
|
|
58
|
+
function B(e, i, a) {
|
|
59
|
+
let d = S({
|
|
59
60
|
...e,
|
|
60
61
|
value: i.isSelected
|
|
61
|
-
}), { isInvalid: l, validationErrors: o, validationDetails:
|
|
62
|
+
}), { isInvalid: l, validationErrors: o, validationDetails: s } = d.displayValidation, { labelProps: t, inputProps: n, isSelected: c, isPressed: $, isDisabled: f, isReadOnly: m } = U({
|
|
62
63
|
...e,
|
|
63
64
|
isInvalid: l
|
|
64
65
|
}, i, a);
|
|
65
66
|
W(e, d, a);
|
|
66
67
|
let { isIndeterminate: P, isRequired: u, validationBehavior: h = "aria" } = e;
|
|
67
|
-
|
|
68
|
+
D(() => {
|
|
68
69
|
a.current && (a.current.indeterminate = !!P);
|
|
69
70
|
});
|
|
70
|
-
let { pressProps:
|
|
71
|
+
let { pressProps: v } = I({
|
|
71
72
|
isDisabled: f || m,
|
|
72
73
|
onPress() {
|
|
73
|
-
let { [
|
|
74
|
-
|
|
74
|
+
let { [_]: y } = e, { commitValidation: V } = y || d;
|
|
75
|
+
V();
|
|
75
76
|
}
|
|
76
77
|
});
|
|
77
78
|
return {
|
|
78
|
-
labelProps: R(t,
|
|
79
|
+
labelProps: R(t, v),
|
|
79
80
|
inputProps: {
|
|
80
81
|
...n,
|
|
81
82
|
checked: c,
|
|
@@ -88,47 +89,47 @@ function C(e, i, a) {
|
|
|
88
89
|
isReadOnly: m,
|
|
89
90
|
isInvalid: l,
|
|
90
91
|
validationErrors: o,
|
|
91
|
-
validationDetails:
|
|
92
|
+
validationDetails: s
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
95
|
const X = /* @__PURE__ */ new WeakMap();
|
|
95
96
|
function Y(e, i, a) {
|
|
96
|
-
const d =
|
|
97
|
+
const d = C({
|
|
97
98
|
isReadOnly: e.isReadOnly || i.isReadOnly,
|
|
98
99
|
isSelected: i.isSelected(e.value),
|
|
99
|
-
onChange(
|
|
100
|
-
|
|
100
|
+
onChange(v) {
|
|
101
|
+
v ? i.addValue(e.value) : i.removeValue(e.value), e.onChange && e.onChange(v);
|
|
101
102
|
}
|
|
102
103
|
});
|
|
103
|
-
let { name: l, descriptionId: o, errorMessageId:
|
|
104
|
+
let { name: l, descriptionId: o, errorMessageId: s, validationBehavior: t } = X.get(i);
|
|
104
105
|
var n;
|
|
105
106
|
t = (n = e.validationBehavior) !== null && n !== void 0 ? n : t;
|
|
106
|
-
let { realtimeValidation: c } =
|
|
107
|
+
let { realtimeValidation: c } = S({
|
|
107
108
|
...e,
|
|
108
109
|
value: d.isSelected,
|
|
109
110
|
// Server validation is handled at the group level.
|
|
110
111
|
name: void 0,
|
|
111
112
|
validationBehavior: "aria"
|
|
112
|
-
}), $ =
|
|
113
|
+
}), $ = N(z), f = () => {
|
|
113
114
|
i.setInvalid(e.value, c.isInvalid ? c : $.current);
|
|
114
115
|
};
|
|
115
|
-
|
|
116
|
+
D(f);
|
|
116
117
|
let m = i.realtimeValidation.isInvalid ? i.realtimeValidation : c, P = t === "native" ? i.displayValidation : m;
|
|
117
118
|
var u;
|
|
118
|
-
let h =
|
|
119
|
+
let h = B({
|
|
119
120
|
...e,
|
|
120
121
|
isReadOnly: e.isReadOnly || i.isReadOnly,
|
|
121
122
|
isDisabled: e.isDisabled || i.isDisabled,
|
|
122
123
|
name: e.name || l,
|
|
123
124
|
isRequired: (u = e.isRequired) !== null && u !== void 0 ? u : i.isRequired,
|
|
124
125
|
validationBehavior: t,
|
|
125
|
-
[
|
|
126
|
+
[_]: {
|
|
126
127
|
realtimeValidation: m,
|
|
127
128
|
displayValidation: P,
|
|
128
129
|
resetValidation: i.resetValidation,
|
|
129
130
|
commitValidation: i.commitValidation,
|
|
130
|
-
updateValidation(
|
|
131
|
-
$.current =
|
|
131
|
+
updateValidation(v) {
|
|
132
|
+
$.current = v, f();
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
135
|
}, d, a);
|
|
@@ -138,25 +139,25 @@ function Y(e, i, a) {
|
|
|
138
139
|
...h.inputProps,
|
|
139
140
|
"aria-describedby": [
|
|
140
141
|
e["aria-describedby"],
|
|
141
|
-
i.isInvalid ?
|
|
142
|
+
i.isInvalid ? s : null,
|
|
142
143
|
o
|
|
143
144
|
].filter(Boolean).join(" ") || void 0
|
|
144
145
|
}
|
|
145
146
|
};
|
|
146
147
|
}
|
|
147
|
-
const Z =
|
|
148
|
+
const Z = G.createContext(null), ee = "_checkboxInner_5vl7s_4", ie = "_checkbox_5vl7s_4", ae = "_checkboxGroup_5vl7s_124", k = {
|
|
148
149
|
checkboxInner: ee,
|
|
149
150
|
checkbox: ie,
|
|
150
151
|
checkboxGroup: ae
|
|
151
|
-
},
|
|
152
|
-
const { hoverProps: a, isHovered: d } = e.hoverResult, { pressProps: l, isPressed: o } = e.pressResult, { isFocused:
|
|
153
|
-
return /* @__PURE__ */
|
|
152
|
+
}, O = x.forwardRef((e, i) => {
|
|
153
|
+
const { hoverProps: a, isHovered: d } = e.hoverResult, { pressProps: l, isPressed: o } = e.pressResult, { isFocused: s, isFocusVisible: t, focusProps: n } = e.focusRingAria;
|
|
154
|
+
return /* @__PURE__ */ E(
|
|
154
155
|
"label",
|
|
155
156
|
{
|
|
156
157
|
ref: i,
|
|
157
158
|
...R(a, l, e.labelProps),
|
|
158
159
|
slot: e.slot || void 0,
|
|
159
|
-
className:
|
|
160
|
+
className: g(k.checkbox, e.className),
|
|
160
161
|
"data-hovered": d || void 0,
|
|
161
162
|
"data-selected": e.isSelected || void 0,
|
|
162
163
|
"data-indeterminate": e.isIndeterminate || void 0,
|
|
@@ -164,18 +165,18 @@ const Z = E.createContext(null), ee = "_checkboxInner_lpri7_11", ie = "_checkbox
|
|
|
164
165
|
"data-disabled": e.isDisabled || void 0,
|
|
165
166
|
"data-readonly": e.isReadOnly || void 0,
|
|
166
167
|
"data-invalid": e.isInvalid || void 0,
|
|
167
|
-
"data-focused":
|
|
168
|
+
"data-focused": s || void 0,
|
|
168
169
|
"data-focus-visible": t || void 0,
|
|
169
170
|
"data-required": e.isRequired || void 0,
|
|
170
171
|
children: [
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ r("div", { className: g(k.checkboxInner), children: /* @__PURE__ */ r(
|
|
172
173
|
"svg",
|
|
173
174
|
{
|
|
174
175
|
width: 16,
|
|
175
176
|
height: 16,
|
|
176
177
|
viewBox: "0 0 18 18",
|
|
177
178
|
"aria-hidden": "true",
|
|
178
|
-
children: e.isIndeterminate ? /* @__PURE__ */
|
|
179
|
+
children: e.isIndeterminate ? /* @__PURE__ */ r(
|
|
179
180
|
"rect",
|
|
180
181
|
{
|
|
181
182
|
x: 4,
|
|
@@ -183,10 +184,10 @@ const Z = E.createContext(null), ee = "_checkboxInner_lpri7_11", ie = "_checkbox
|
|
|
183
184
|
width: 10,
|
|
184
185
|
height: 2
|
|
185
186
|
}
|
|
186
|
-
) : /* @__PURE__ */
|
|
187
|
+
) : /* @__PURE__ */ r("polyline", { points: "3,9 7,13 15,4" })
|
|
187
188
|
}
|
|
188
189
|
) }),
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(
|
|
190
191
|
"input",
|
|
191
192
|
{
|
|
192
193
|
...R(e.inputProps, n),
|
|
@@ -206,8 +207,8 @@ const Z = E.createContext(null), ee = "_checkboxInner_lpri7_11", ie = "_checkbox
|
|
|
206
207
|
e.state,
|
|
207
208
|
e.inputRef
|
|
208
209
|
);
|
|
209
|
-
return /* @__PURE__ */
|
|
210
|
-
|
|
210
|
+
return /* @__PURE__ */ r(
|
|
211
|
+
O,
|
|
211
212
|
{
|
|
212
213
|
...e,
|
|
213
214
|
...a,
|
|
@@ -215,39 +216,39 @@ const Z = E.createContext(null), ee = "_checkboxInner_lpri7_11", ie = "_checkbox
|
|
|
215
216
|
}
|
|
216
217
|
);
|
|
217
218
|
}), le = x.forwardRef((e, i) => {
|
|
218
|
-
const a =
|
|
219
|
-
return /* @__PURE__ */
|
|
220
|
-
|
|
219
|
+
const a = B(e, C(e), e.inputRef);
|
|
220
|
+
return /* @__PURE__ */ r(
|
|
221
|
+
O,
|
|
221
222
|
{
|
|
222
223
|
...e,
|
|
223
224
|
...a,
|
|
224
225
|
ref: i
|
|
225
226
|
}
|
|
226
227
|
);
|
|
227
|
-
}),
|
|
228
|
+
}), Pe = x.forwardRef(
|
|
228
229
|
(e, i) => {
|
|
229
|
-
[e, i] =
|
|
230
|
-
const a =
|
|
230
|
+
[e, i] = j(e, i, L);
|
|
231
|
+
const a = A(M), d = e.validationBehavior ?? (a == null ? void 0 : a.validationBehavior) ?? "native", l = x.useContext(Z), o = x.useRef(null), s = Q(e), t = I({
|
|
231
232
|
ref: i,
|
|
232
233
|
isDisabled: e.isDisabled
|
|
233
234
|
}), n = T();
|
|
234
|
-
return l ? /* @__PURE__ */
|
|
235
|
+
return l ? /* @__PURE__ */ r(
|
|
235
236
|
de,
|
|
236
237
|
{
|
|
237
238
|
...e,
|
|
238
239
|
state: l,
|
|
239
240
|
inputRef: o,
|
|
240
|
-
hoverResult:
|
|
241
|
+
hoverResult: s,
|
|
241
242
|
pressResult: t,
|
|
242
243
|
focusRingAria: n,
|
|
243
244
|
validationBehavior: d
|
|
244
245
|
}
|
|
245
|
-
) : /* @__PURE__ */
|
|
246
|
+
) : /* @__PURE__ */ r(
|
|
246
247
|
le,
|
|
247
248
|
{
|
|
248
249
|
...e,
|
|
249
250
|
inputRef: o,
|
|
250
|
-
hoverResult:
|
|
251
|
+
hoverResult: s,
|
|
251
252
|
pressResult: t,
|
|
252
253
|
focusRingAria: n,
|
|
253
254
|
validationBehavior: d
|
|
@@ -257,7 +258,7 @@ const Z = E.createContext(null), ee = "_checkboxInner_lpri7_11", ie = "_checkbox
|
|
|
257
258
|
);
|
|
258
259
|
export {
|
|
259
260
|
X as $,
|
|
260
|
-
|
|
261
|
+
Pe as C,
|
|
261
262
|
Z as a,
|
|
262
|
-
|
|
263
|
+
k as s
|
|
263
264
|
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { jsx as n, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { a as g, L as P } from "./Label-TVxwGZ-O.js";
|
|
3
|
+
import { T as V } from "./Text-DlKqpvSa.js";
|
|
4
|
+
import * as b from "react";
|
|
5
|
+
import { useRef as C } from "react";
|
|
6
|
+
import { $ as y, C as m, s as S, a as p } from "./Checkbox-LuUwTZ3W.js";
|
|
7
|
+
import { $ as D } from "./FieldError-BbR-29BM.js";
|
|
8
|
+
import { F as I } from "./FieldError-B3YFj-an.js";
|
|
9
|
+
import { $ as R, c as k } from "./useFormValidation-BzzruZKm.js";
|
|
10
|
+
import { $ as F } from "./useControlledState-u436Wbp1.js";
|
|
11
|
+
import { a as A } from "./mergeProps-C1U1OIeJ.js";
|
|
12
|
+
import { $ as E } from "./filterDOMProps-D6KHYVBX.js";
|
|
13
|
+
import { $ as M } from "./useField-BEBXv5Mh.js";
|
|
14
|
+
import { $ as O } from "./useFocusWithin-T1ifEM_s.js";
|
|
15
|
+
import { u as W } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
16
|
+
function B(e, a) {
|
|
17
|
+
let { isDisabled: t, name: f, validationBehavior: d = "aria" } = e, { isInvalid: o, validationErrors: s, validationDetails: c } = a.displayValidation, { labelProps: l, fieldProps: i, descriptionProps: r, errorMessageProps: u } = M({
|
|
18
|
+
...e,
|
|
19
|
+
// Checkbox group is not an HTML input element so it
|
|
20
|
+
// shouldn't be labeled by a <label> element.
|
|
21
|
+
labelElementType: "span",
|
|
22
|
+
isInvalid: o,
|
|
23
|
+
errorMessage: e.errorMessage || s
|
|
24
|
+
});
|
|
25
|
+
y.set(a, {
|
|
26
|
+
name: f,
|
|
27
|
+
descriptionId: r.id,
|
|
28
|
+
errorMessageId: u.id,
|
|
29
|
+
validationBehavior: d
|
|
30
|
+
});
|
|
31
|
+
let v = E(e, {
|
|
32
|
+
labelable: !0
|
|
33
|
+
}), { focusWithinProps: h } = O({
|
|
34
|
+
onBlurWithin: e.onBlur,
|
|
35
|
+
onFocusWithin: e.onFocus,
|
|
36
|
+
onFocusWithinChange: e.onFocusChange
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
groupProps: A(v, {
|
|
40
|
+
role: "group",
|
|
41
|
+
"aria-disabled": t || void 0,
|
|
42
|
+
...i,
|
|
43
|
+
...h
|
|
44
|
+
}),
|
|
45
|
+
labelProps: l,
|
|
46
|
+
descriptionProps: r,
|
|
47
|
+
errorMessageProps: u,
|
|
48
|
+
isInvalid: o,
|
|
49
|
+
validationErrors: s,
|
|
50
|
+
validationDetails: c
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function L(e = {}) {
|
|
54
|
+
let [a, t] = F(e.value, e.defaultValue || [], e.onChange), f = !!e.isRequired && a.length === 0, d = C(/* @__PURE__ */ new Map()), o = R({
|
|
55
|
+
...e,
|
|
56
|
+
value: a
|
|
57
|
+
}), s = o.displayValidation.isInvalid;
|
|
58
|
+
var c;
|
|
59
|
+
return {
|
|
60
|
+
...o,
|
|
61
|
+
value: a,
|
|
62
|
+
setValue(i) {
|
|
63
|
+
e.isReadOnly || e.isDisabled || t(i);
|
|
64
|
+
},
|
|
65
|
+
isDisabled: e.isDisabled || !1,
|
|
66
|
+
isReadOnly: e.isReadOnly || !1,
|
|
67
|
+
isSelected(i) {
|
|
68
|
+
return a.includes(i);
|
|
69
|
+
},
|
|
70
|
+
addValue(i) {
|
|
71
|
+
e.isReadOnly || e.isDisabled || a.includes(i) || t(a.concat(i));
|
|
72
|
+
},
|
|
73
|
+
removeValue(i) {
|
|
74
|
+
e.isReadOnly || e.isDisabled || a.includes(i) && t(a.filter((r) => r !== i));
|
|
75
|
+
},
|
|
76
|
+
toggleValue(i) {
|
|
77
|
+
e.isReadOnly || e.isDisabled || (a.includes(i) ? t(a.filter((r) => r !== i)) : t(a.concat(i)));
|
|
78
|
+
},
|
|
79
|
+
setInvalid(i, r) {
|
|
80
|
+
let u = new Map(d.current);
|
|
81
|
+
r.isInvalid ? u.set(i, r) : u.delete(i), d.current = u, o.updateValidation(k(...u.values()));
|
|
82
|
+
},
|
|
83
|
+
validationState: (c = e.validationState) !== null && c !== void 0 ? c : s ? "invalid" : null,
|
|
84
|
+
isInvalid: s,
|
|
85
|
+
isRequired: f
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const G = (e, { value: a }) => {
|
|
89
|
+
const t = b.Children.toArray(e).filter(
|
|
90
|
+
(l) => b.isValidElement(l) && l.type === m
|
|
91
|
+
), f = b.Children.count(t), d = b.Children.toArray(e).filter((l) => b.isValidElement(l)).filter((l) => !!l && l.type === m).map((l) => l.props.value), o = a.length === 0, s = a.length === f;
|
|
92
|
+
return {
|
|
93
|
+
allSelected: s,
|
|
94
|
+
someSelected: !o && !s,
|
|
95
|
+
checkboxValues: d
|
|
96
|
+
};
|
|
97
|
+
}, $ = ({ state: e, errorMessage: a }) => /* @__PURE__ */ n(D.Provider, { value: e.displayValidation, children: /* @__PURE__ */ n(I, { children: a }) }), j = {
|
|
98
|
+
selectAll: "Select all"
|
|
99
|
+
}, q = {
|
|
100
|
+
selectAll: "Välj alla"
|
|
101
|
+
}, w = {
|
|
102
|
+
en: j,
|
|
103
|
+
sv: q
|
|
104
|
+
};
|
|
105
|
+
function ie(e) {
|
|
106
|
+
const a = L(e), t = W(w), { groupProps: f, labelProps: d, descriptionProps: o } = B(
|
|
107
|
+
e,
|
|
108
|
+
a
|
|
109
|
+
), { allSelected: s, someSelected: c, checkboxValues: l } = G(
|
|
110
|
+
e.children,
|
|
111
|
+
a
|
|
112
|
+
), i = (r) => {
|
|
113
|
+
a.setValue(r ? l : []);
|
|
114
|
+
};
|
|
115
|
+
return /* @__PURE__ */ x(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
...f,
|
|
119
|
+
className: S.checkboxGroup,
|
|
120
|
+
children: [
|
|
121
|
+
/* @__PURE__ */ n(g, { popover: e.popover, children: e.label && /* @__PURE__ */ n(P, { ...d, children: e.label }) }),
|
|
122
|
+
e.description && /* @__PURE__ */ n(
|
|
123
|
+
V,
|
|
124
|
+
{
|
|
125
|
+
slot: "description",
|
|
126
|
+
...o,
|
|
127
|
+
children: e.description
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
e.errorPosition === "top" && /* @__PURE__ */ n(
|
|
131
|
+
$,
|
|
132
|
+
{
|
|
133
|
+
...e,
|
|
134
|
+
state: a
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
e.showSelectAll && /* @__PURE__ */ n(
|
|
138
|
+
m,
|
|
139
|
+
{
|
|
140
|
+
isSelected: s,
|
|
141
|
+
isIndeterminate: c,
|
|
142
|
+
onChange: i,
|
|
143
|
+
children: e.selectAllLabel || t.format("selectAll")
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
/* @__PURE__ */ n(p.Provider, { value: a, children: e.children }),
|
|
147
|
+
e.errorPosition === "bottom" && /* @__PURE__ */ n(
|
|
148
|
+
$,
|
|
149
|
+
{
|
|
150
|
+
...e,
|
|
151
|
+
state: a
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
export {
|
|
159
|
+
ie as C
|
|
160
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),v=require("./Label-CNmTN1YY.cjs"),C=require("./Text-DBHWi5gA.cjs"),g=require("react"),b=require("./Checkbox-Co3h0hur.cjs"),S=require("./FieldError-MVsU-Mgw.cjs"),V=require("./FieldError-bRTpchvr.cjs"),x=require("./useFormValidation-BlFGdPZB.cjs"),y=require("./useControlledState-D0L6S_5r.cjs"),q=require("./mergeProps-B5KXZAI3.cjs"),j=require("./filterDOMProps-BS2lrgFA.cjs"),k=require("./useField-D1UkzeaI.cjs"),D=require("./useFocusWithin-CG8mAt2D.cjs"),F=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function O(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(i,l,n.get?n:{enumerable:!0,get:()=>e[l]})}}return i.default=e,Object.freeze(i)}const h=O(g);function R(e,i){let{isDisabled:l,name:n,validationBehavior:d="aria"}=e,{isInvalid:s,validationErrors:o,validationDetails:u}=i.displayValidation,{labelProps:a,fieldProps:t,descriptionProps:r,errorMessageProps:f}=k.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||o});b.$1ae600c947479353$export$ec98120685d4f57d.set(i,{name:n,descriptionId:r.id,errorMessageId:f.id,validationBehavior:d});let m=j.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0}),{focusWithinProps:P}=D.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:q.$3ef42575df84b30b$export$9d1611c77c2fe928(m,{role:"group","aria-disabled":l||void 0,...t,...P}),labelProps:a,descriptionProps:r,errorMessageProps:f,isInvalid:s,validationErrors:o,validationDetails:u}}function I(e={}){let[i,l]=y.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||[],e.onChange),n=!!e.isRequired&&i.length===0,d=g.useRef(new Map),s=x.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i}),o=s.displayValidation.isInvalid;var u;return{...s,value:i,setValue(t){e.isReadOnly||e.isDisabled||l(t)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(t){return i.includes(t)},addValue(t){e.isReadOnly||e.isDisabled||i.includes(t)||l(i.concat(t))},removeValue(t){e.isReadOnly||e.isDisabled||i.includes(t)&&l(i.filter(r=>r!==t))},toggleValue(t){e.isReadOnly||e.isDisabled||(i.includes(t)?l(i.filter(r=>r!==t)):l(i.concat(t)))},setInvalid(t,r){let f=new Map(d.current);r.isInvalid?f.set(t,r):f.delete(t),d.current=f,s.updateValidation(x.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(...f.values()))},validationState:(u=e.validationState)!==null&&u!==void 0?u:o?"invalid":null,isInvalid:o,isRequired:n}}const E=(e,{value:i})=>{const l=h.Children.toArray(e).filter(a=>h.isValidElement(a)&&a.type===b.Checkbox),n=h.Children.count(l),d=h.Children.toArray(e).filter(a=>h.isValidElement(a)).filter(a=>!!a&&a.type===b.Checkbox).map(a=>a.props.value),s=i.length===0,o=i.length===n;return{allSelected:o,someSelected:!s&&!o,checkboxValues:d}},$=({state:e,errorMessage:i})=>c.jsx(S.$ee014567cb39d3f0$export$ff05c3ac10437e03.Provider,{value:e.displayValidation,children:c.jsx(V.FieldError,{children:i})}),M={selectAll:"Select all"},A={selectAll:"Välj alla"},W={en:M,sv:A};function L(e){const i=I(e),l=F.useLocalizedStringFormatter(W),{groupProps:n,labelProps:d,descriptionProps:s}=R(e,i),{allSelected:o,someSelected:u,checkboxValues:a}=E(e.children,i),t=r=>{i.setValue(r?a:[])};return c.jsxs("div",{...n,className:b.styles.checkboxGroup,children:[c.jsx(v.LabelWrapper,{popover:e.popover,children:e.label&&c.jsx(v.Label,{...d,children:e.label})}),e.description&&c.jsx(C.Text,{slot:"description",...s,children:e.description}),e.errorPosition==="top"&&c.jsx($,{...e,state:i}),e.showSelectAll&&c.jsx(b.Checkbox,{isSelected:o,isIndeterminate:u,onChange:t,children:e.selectAllLabel||l.format("selectAll")}),c.jsx(b.CheckboxGroupContext.Provider,{value:i,children:e.children}),e.errorPosition==="bottom"&&c.jsx($,{...e,state:i})]})}exports.CheckboxGroup=L;
|
|
@@ -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,
|