@midas-ds/components 10.2.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-DZT76sWu.js → AccordionItem-BqsgiVWV.js} +43 -41
- package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
- package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
- package/Breadcrumbs-CfW5IuyE.cjs +1 -0
- package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-D7eoibWk.js} +85 -73
- package/{Button-iSiWjocA.cjs → Button-BXY5ZhqI.cjs} +1 -1
- package/{Button-CbFRzRrF.js → Button-BZUo7vsZ.js} +2 -2
- package/Button-CFYdzG0H.js +341 -0
- package/Button-DExMoP5f.cjs +1 -0
- package/Button.module-DEQtBYe5.cjs +1 -0
- package/Button.module-tti8HGxs.js +14 -0
- package/CHANGELOG.md +48 -0
- package/{Card-CaKKKv9k.js → Card-BaWSgtSF.js} +5 -5
- package/Card-Cc1TNPcQ.cjs +1 -0
- package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
- package/CharacterCounter-cLhqPZlk.js +22 -0
- package/Checkbox-Co3h0hur.cjs +1 -0
- package/Checkbox-LuUwTZ3W.js +264 -0
- package/CheckboxGroup-CUA8_xSx.js +160 -0
- package/CheckboxGroup-DmUOM0xl.cjs +1 -0
- package/{Collection-C5ONNBqd.js → Collection--62xKPm9.js} +19 -18
- package/Collection-BtBX5IMY.cjs +1 -0
- package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-Cwono7Ap.js} +48 -32
- package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
- package/ComboBox-BBC7jhnm.cjs +1 -0
- package/{ComboBox-BCaqPEIH.js → ComboBox-HLIAbb2q.js} +360 -345
- package/DateField-B3VjOSde.cjs +1 -0
- package/DateField-CnLEi7uX.js +47 -0
- package/DateInputDivider-3BvwXXa9.cjs +1 -0
- package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-Bi5N-C0c.js} +73 -73
- package/DateRangePicker-BPlZ12r8.cjs +6 -0
- package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-CFOoGvut.js} +192 -189
- package/Dialog-CSnN6baf.cjs +1 -0
- package/{Dialog-CYxThuMl.js → Dialog-CtVrVuMr.js} +565 -538
- package/Dialog-SqciohRY.js +221 -0
- package/Dialog-pSSy1zwf.cjs +1 -0
- package/DragAndDrop-BoEd260f.cjs +1 -0
- package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-DkSTL28C.js} +8 -8
- package/{Dropdown-nkjzsVYX.js → Dropdown-CkBp70BH.js} +2 -2
- package/{Dropdown-CaGon9OR.cjs → Dropdown-DAsVShlt.cjs} +1 -1
- package/FieldError-B3YFj-an.js +23 -0
- package/{FieldError-CZikNDxX.js → FieldError-BbR-29BM.js} +8 -8
- package/{FieldError-DqdfJ3fs.cjs → FieldError-MVsU-Mgw.cjs} +1 -1
- package/{FieldError-BZw8UzBk.cjs → FieldError-bRTpchvr.cjs} +1 -1
- package/{FileUpload-ULwcYDxs.js → FileUpload-B4rv-wke.js} +502 -480
- package/{FileUpload-DYRZ0M9F.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
- package/{FocusScope-DwIqdYpQ.js → FocusScope-D_hwN_TJ.js} +38 -37
- package/FocusScope-vcXLOQiu.cjs +1 -0
- package/Group-CpkUzEAs.js +45 -0
- package/Group-DOpbdoAi.cjs +1 -0
- package/Heading-CKTR4sOz.cjs +1 -0
- package/{Heading-BY5-QN4S.js → Heading-NxtGri2i.js} +7 -7
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/{InfoBanner-CVIBFSWx.js → InfoBanner-CBUoad7A.js} +45 -36
- package/InfoBanner-CVry6Y8i.cjs +1 -0
- package/Input-LnjmFI1x.js +42 -0
- 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-B-nus-FT.js → Link-Bn8V3ZI0.js} +20 -19
- package/Link-CidjjqHb.cjs +1 -0
- package/{Link-DsnCtNeI.cjs → Link-D92ftFi2.cjs} +1 -1
- package/{Link-uFowN4qv.js → Link-DegonJfl.js} +1 -1
- package/LinkButton-CckYzfJ8.js +69 -0
- package/LinkButton-DKZ4z6zu.cjs +6 -0
- package/ListBox-BCz5-23H.cjs +1 -0
- package/{ListBox-DOi_y_Lt.js → ListBox-C-isJIHL.js} +56 -55
- package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-C_krklY0.js} +1 -1
- package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
- package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-BVR2xtOH.js} +9 -9
- package/ListBoxSection-CfQZoURJ.cjs +1 -0
- package/ListKeyboardDelegate-CPsZ7D83.cjs +1 -0
- package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-CY6t6y1t.js} +24 -15
- package/Logo-BpH0HC91.cjs +1 -0
- package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
- package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CfhSYL46.js} +28 -27
- package/OverlayArrow-DpZ1FqOd.cjs +1 -0
- package/Popover-C8VY1YKi.js +38 -0
- package/Popover-CnAsw3wI.cjs +1 -0
- package/{ProgressBar-gmAzSsrz.js → ProgressBar-BNCjpcv8.js} +2 -2
- package/ProgressBar-CcbxcWdT.cjs +1 -0
- package/Radio-B2zfEFdq.cjs +1 -0
- package/{Radio-_ukSkxPT.js → Radio-CZYibh9r.js} +81 -78
- package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-B16b6tJD.js} +303 -294
- 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-DYl2uo7o.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-6H88Cv6B.js → SelectionManager-zsWy3vsd.js} +86 -86
- package/Separator-CxF-3jhR.cjs +1 -0
- package/{Separator-LYnFqh4L.js → Separator-Dn5LYN5I.js} +19 -20
- 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-B_N7wUmA.js → Table-BcQPvJT3.js} +67 -69
- package/Table-DkvNp6xm.cjs +16 -0
- package/{Tag-g6HN-YCv.js → Tag-Bs8T2Ei7.js} +140 -141
- package/Tag-CFWZ2LQW.cjs +1 -0
- package/{Text-B_H68Tvq.js → Text-92cPh38G.js} +3 -3
- package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
- package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
- package/{Text-BN-g1iWi.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-DBaRuNj7.js → TextField-ByDJkig9.js} +22 -21
- package/{Toast-CjpldAI8.js → Toast-DPPvPhrF.js} +95 -87
- package/Toast-l1bKo2oA.cjs +1 -0
- package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
- package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-HOWNWtQZ.js} +47 -46
- package/{Tooltip-BAIjaYax.js → Tooltip-5mLWn_wO.js} +53 -51
- package/Tooltip-pN5W3IK6.cjs +1 -0
- package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-CYfmTSCD.js} +8 -8
- package/VisuallyHidden-Doyzl0F7.cjs +1 -0
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
- package/assets/Button.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -0
- 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/badge/index.cjs +1 -1
- package/badge/index.js +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/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-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
- package/checkbox/Checkbox.d.ts +4 -2
- package/checkbox/CheckboxGroup.d.ts +8 -8
- package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
- package/checkbox/CheckboxGroupItem.d.ts +3 -0
- package/checkbox/CheckboxInner.d.ts +2 -0
- package/checkbox/SingleCheckbox.d.ts +3 -0
- package/checkbox/context.d.ts +3 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.d.ts +2 -1
- package/checkbox/index.js +2 -2
- package/checkbox/intl/translations.json.d.ts +7 -0
- package/checkbox/types.d.ts +16 -0
- package/checkbox/useSelectAll.d.ts +7 -0
- package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
- package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
- package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
- 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/ComboBox.d.ts +3 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +11 -0
- package/{context-B8cn10po.js → context-CGNJ3grH.js} +11 -11
- package/context-Df3XbgBG.cjs +1 -0
- package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
- package/date-field/DateField.d.ts +3 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/DatePicker.d.ts +3 -0
- package/date-picker/DateRangePicker.d.ts +3 -0
- 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 +4 -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-Ru2U2LlM.js → getScrollParent-CT_L9LUr.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
- package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +105 -100
- package/inertValue-B3AFhVG4.cjs +1 -0
- package/info-BZwphdye.js +15 -0
- package/info-CIEIENo6.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/InfoPopover.d.ts +9 -0
- package/label/LabelWrapper.d.ts +11 -0
- package/label/index.cjs +1 -1
- package/label/index.d.ts +1 -0
- 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/Popover.d.ts +7 -0
- package/popover/index.cjs +1 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.js +4 -0
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/Radio.d.ts +4 -4
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-BLnsPvFA.js +87 -0
- 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-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +1 -1
- 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/TextFieldBase.d.ts +2 -0
- 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-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
- package/{useButton-C-Lq7CNY.js → useButton-1-Jf-oHj.js} +6 -6
- package/useButton-D60q0SQw.cjs +1 -0
- package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
- package/{useDateFormatter-C53Uxdli.js → useDateFormatter-BVCkxVdw.js} +2 -2
- package/{useEvent-Cyd2ZL0c.js → useEvent-CigwyJOw.js} +3 -3
- package/useEvent-DPxMu-X9.cjs +1 -0
- package/{useField-BPMAlIbU.js → useField-BEBXv5Mh.js} +7 -7
- package/useField-D1UkzeaI.cjs +1 -0
- package/{useFilter-ChIbnALW.js → useFilter-CousKe2K.js} +1 -1
- package/useFilter-e2oIVF_O.cjs +1 -0
- 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-ChPA2Jc7.js +127 -0
- package/useFocusable-D7I1ujkW.cjs +1 -0
- package/useFormValidation-BlFGdPZB.cjs +1 -0
- package/{useFormValidation-R8hQIjWP.js → useFormValidation-BzzruZKm.js} +5 -5
- package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-BE81d_ab.js} +2 -2
- package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
- package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
- package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-D73hrkmn.js} +14 -14
- package/useHover-BE_XKZKe.cjs +1 -0
- package/useHover-DQvJ3Y-W.js +262 -0
- package/useLabels-CSU0kbtJ.cjs +1 -0
- package/{useLabels-BZjoZA1Z.js → useLabels-LrKQiY11.js} +1 -1
- package/{useListState-DFQ9d-uE.js → useListState-CebsX_1d.js} +7 -7
- package/{useListState-Ca2-uZMO.cjs → useListState-DymkJGDF.cjs} +1 -1
- package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/{useLocalizedStringFormatter-D07YB2e1.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
- package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-BooY_CAy.cjs +7 -0
- package/{usePress-CUJ3pMOw.js → usePress-DuR4pVsE.js} +154 -153
- package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
- package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
- package/{useTextField-5OZQPyOW.js → useTextField-C-sUypsx.js} +14 -14
- package/useTextField-DnRrCg5o.cjs +1 -0
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- 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-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
- package/AccordionItem-Z_c9MpAM.cjs +0 -1
- package/Breadcrumbs-Cx09jwZZ.cjs +0 -1
- package/Button-DnhqHU01.cjs +0 -1
- package/Button-ZOQy9Ivu.js +0 -78
- package/Button.module-CMMhIrkn.js +0 -14
- package/Button.module-DO5s9hOk.cjs +0 -1
- package/Card-C0BFW3wJ.cjs +0 -1
- package/CharacterCounter-CPGdboVJ.js +0 -22
- package/Checkbox-CvFsn_FL.js +0 -380
- package/Checkbox-DSxGAJX2.cjs +0 -1
- package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
- package/CheckboxGroup-Dij9zKlF.js +0 -54
- package/Collection-Csx3L9gh.cjs +0 -1
- package/ColorSchemeSwitch-JRrCyYVv.cjs +0 -16
- package/ComboBox-gveQKHU3.cjs +0 -1
- package/DateField-CAQlzuDD.js +0 -46
- package/DateField-deVVFwKA.cjs +0 -1
- package/DateInputDivider-DnUxETEC.cjs +0 -1
- package/DateRangePicker-BzfitoK0.cjs +0 -6
- package/Dialog-Bd5hK360.cjs +0 -1
- package/Dialog-Bxx8cBEq.js +0 -208
- package/Dialog-CwTEAujZ.cjs +0 -1
- package/DragAndDrop-HvycSrKY.cjs +0 -1
- package/FieldError-Dv3bBEjh.js +0 -23
- package/FocusScope-NaPbvuuS.cjs +0 -1
- package/Group-CeSsSQVC.js +0 -44
- package/Group-CgiqQHH1.cjs +0 -1
- package/Heading-DoJAtYZf.cjs +0 -1
- package/InfoBanner-BS-dAfzO.cjs +0 -1
- package/Input-D8Ku_FQz.js +0 -41
- package/Input-DKSAYvsw.cjs +0 -1
- package/Label-C9ivwkAd.js +0 -21
- package/Label-CUV21CAv.cjs +0 -1
- package/Label-DkDOsmUF.js +0 -16
- package/Label-IMWAyoKb.cjs +0 -1
- package/Layout-BWeHHnqU.cjs +0 -16
- package/Layout-CCt_2L1k.js +0 -468
- package/Link-SHMbeyIP.cjs +0 -1
- package/LinkButton-CuBilDML.js +0 -69
- package/LinkButton-CymMrcGL.cjs +0 -6
- package/ListBox-CDOsQChA.cjs +0 -1
- package/ListBoxSection-DGCP6xpf.cjs +0 -1
- package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
- package/LiveAnnouncer-B6177m92.js +0 -51
- package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
- package/Logo-DT2_2O43.cjs +0 -1
- package/NumberFormatter-DewVDY5w.cjs +0 -1
- package/NumberFormatter-DgOUVrge.js +0 -119
- package/OverlayArrow-D75k-EMl.cjs +0 -1
- package/PressResponder-C06O3Z5P.cjs +0 -1
- package/PressResponder-CVEg5kND.js +0 -33
- package/ProgressBar-Bkw9zavs.cjs +0 -1
- package/ProgressBar-CEX2WNoW.js +0 -77
- package/ProgressBar-Dqh3ftSP.cjs +0 -1
- package/Radio-CDKrvQe4.cjs +0 -1
- package/RangeCalendar-cbCKBPZv.cjs +0 -11
- package/SearchField-6yBGiojX.cjs +0 -6
- package/Select-CpHjd1tp.cjs +0 -1
- package/Select-PvCqY7Lp.js +0 -646
- package/SelectionManager-C5NGBzvz.cjs +0 -1
- package/Separator-nPra6kD-.cjs +0 -1
- package/Spinner-D31SXm-U.js +0 -41
- package/Spinner-DAJtfxqJ.cjs +0 -6
- package/Table-D9vNc_y-.cjs +0 -16
- package/Tabs-Ct6D83aR.js +0 -404
- package/Tabs-Dtcl2oK2.cjs +0 -1
- package/Tag-CVFkzg3s.cjs +0 -1
- package/TextArea-DSiQ578a.js +0 -206
- package/TextArea-cVyGBRbL.cjs +0 -1
- package/TextField-B70CL2qz.cjs +0 -1
- package/Toast-DrkOGy4d.cjs +0 -1
- package/ToggleButtonGroup-BuU_6dYe.cjs +0 -1
- package/Tooltip-CiWg4zIC.cjs +0 -1
- package/VisuallyHidden-CtXvK_Tw.cjs +0 -1
- package/assets/Tabs.css +0 -1
- package/context-DjwhtgxQ.cjs +0 -1
- package/focusSafely-Bqfo_DH7.cjs +0 -1
- package/focusSafely-C48ucRUz.js +0 -56
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/useButton-B1Fa-6qE.cjs +0 -1
- package/useCollator-C_ozeWLo.cjs +0 -1
- package/useCollator-CgZcHC8N.js +0 -11
- package/useDescription-CVKhFa3c.js +0 -32
- package/useDescription-DmQYSEES.cjs +0 -1
- package/useEvent-CjkbBniY.cjs +0 -1
- package/useField-B1RU0GKs.cjs +0 -1
- package/useFilter-CtIwF2qW.cjs +0 -1
- package/useFocusRing-BDGH3lpn.js +0 -82
- package/useFocusRing-CbImDrwF.cjs +0 -1
- package/useFocusable-CaedRTpB.js +0 -74
- package/useFocusable-CuPQ7Cm5.cjs +0 -1
- package/useFormValidation-ClximP89.cjs +0 -1
- package/useHasTabbableChild-DgphNvnk.cjs +0 -1
- package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
- package/useHover-_mv5J4_q.cjs +0 -1
- package/useHover-qRAon4nS.js +0 -490
- package/useLabel-DDdAJ1JO.js +0 -23
- package/useLabel-m_S5xkHy.cjs +0 -1
- package/useLabels-BLOfc6Y-.cjs +0 -1
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BFa6cT9o.cjs +0 -7
- package/useTextField-CtUDWsUl.cjs +0 -1
- package/utils-BNtZbAib.cjs +0 -1
- package/utils-HNTsIwux.js +0 -308
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { jsxs as E, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as x from "react";
|
|
3
|
+
import G, { useEffect as D, useRef as N } from "react";
|
|
4
|
+
import { a as L } from "./RSPContexts-BW2SEIqe.js";
|
|
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";
|
|
12
|
+
import { $ as J } from "./filterDOMProps-D6KHYVBX.js";
|
|
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";
|
|
17
|
+
import './assets/Checkbox.css';function U(e, i, a) {
|
|
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);
|
|
20
|
+
}, P = t != null, u = n != null || c != null;
|
|
21
|
+
!P && !u && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
22
|
+
let { pressProps: h, isPressed: v } = I({
|
|
23
|
+
isDisabled: d
|
|
24
|
+
}), { pressProps: y, isPressed: V } = I({
|
|
25
|
+
onPress() {
|
|
26
|
+
var b;
|
|
27
|
+
i.toggle(), (b = a.current) === null || b === void 0 || b.focus();
|
|
28
|
+
},
|
|
29
|
+
isDisabled: d || l
|
|
30
|
+
}), { focusableProps: q } = K(e, a), p = R(h, q), w = J(e, {
|
|
31
|
+
labelable: !0
|
|
32
|
+
});
|
|
33
|
+
return H(a, i.isSelected, i.setSelected), {
|
|
34
|
+
labelProps: R(y, {
|
|
35
|
+
onClick: (b) => b.preventDefault()
|
|
36
|
+
}),
|
|
37
|
+
inputProps: R(w, {
|
|
38
|
+
"aria-invalid": f || $ === "invalid" || void 0,
|
|
39
|
+
"aria-errormessage": e["aria-errormessage"],
|
|
40
|
+
"aria-controls": e["aria-controls"],
|
|
41
|
+
"aria-readonly": l || void 0,
|
|
42
|
+
onChange: m,
|
|
43
|
+
disabled: d,
|
|
44
|
+
...o == null ? {} : {
|
|
45
|
+
value: o
|
|
46
|
+
},
|
|
47
|
+
name: s,
|
|
48
|
+
type: "checkbox",
|
|
49
|
+
...p
|
|
50
|
+
}),
|
|
51
|
+
isSelected: i.isSelected,
|
|
52
|
+
isPressed: v || V,
|
|
53
|
+
isDisabled: d,
|
|
54
|
+
isReadOnly: l,
|
|
55
|
+
isInvalid: f || $ === "invalid"
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function B(e, i, a) {
|
|
59
|
+
let d = S({
|
|
60
|
+
...e,
|
|
61
|
+
value: i.isSelected
|
|
62
|
+
}), { isInvalid: l, validationErrors: o, validationDetails: s } = d.displayValidation, { labelProps: t, inputProps: n, isSelected: c, isPressed: $, isDisabled: f, isReadOnly: m } = U({
|
|
63
|
+
...e,
|
|
64
|
+
isInvalid: l
|
|
65
|
+
}, i, a);
|
|
66
|
+
W(e, d, a);
|
|
67
|
+
let { isIndeterminate: P, isRequired: u, validationBehavior: h = "aria" } = e;
|
|
68
|
+
D(() => {
|
|
69
|
+
a.current && (a.current.indeterminate = !!P);
|
|
70
|
+
});
|
|
71
|
+
let { pressProps: v } = I({
|
|
72
|
+
isDisabled: f || m,
|
|
73
|
+
onPress() {
|
|
74
|
+
let { [_]: y } = e, { commitValidation: V } = y || d;
|
|
75
|
+
V();
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
return {
|
|
79
|
+
labelProps: R(t, v),
|
|
80
|
+
inputProps: {
|
|
81
|
+
...n,
|
|
82
|
+
checked: c,
|
|
83
|
+
"aria-required": u && h === "aria" || void 0,
|
|
84
|
+
required: u && h === "native"
|
|
85
|
+
},
|
|
86
|
+
isSelected: c,
|
|
87
|
+
isPressed: $,
|
|
88
|
+
isDisabled: f,
|
|
89
|
+
isReadOnly: m,
|
|
90
|
+
isInvalid: l,
|
|
91
|
+
validationErrors: o,
|
|
92
|
+
validationDetails: s
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
const X = /* @__PURE__ */ new WeakMap();
|
|
96
|
+
function Y(e, i, a) {
|
|
97
|
+
const d = C({
|
|
98
|
+
isReadOnly: e.isReadOnly || i.isReadOnly,
|
|
99
|
+
isSelected: i.isSelected(e.value),
|
|
100
|
+
onChange(v) {
|
|
101
|
+
v ? i.addValue(e.value) : i.removeValue(e.value), e.onChange && e.onChange(v);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
let { name: l, descriptionId: o, errorMessageId: s, validationBehavior: t } = X.get(i);
|
|
105
|
+
var n;
|
|
106
|
+
t = (n = e.validationBehavior) !== null && n !== void 0 ? n : t;
|
|
107
|
+
let { realtimeValidation: c } = S({
|
|
108
|
+
...e,
|
|
109
|
+
value: d.isSelected,
|
|
110
|
+
// Server validation is handled at the group level.
|
|
111
|
+
name: void 0,
|
|
112
|
+
validationBehavior: "aria"
|
|
113
|
+
}), $ = N(z), f = () => {
|
|
114
|
+
i.setInvalid(e.value, c.isInvalid ? c : $.current);
|
|
115
|
+
};
|
|
116
|
+
D(f);
|
|
117
|
+
let m = i.realtimeValidation.isInvalid ? i.realtimeValidation : c, P = t === "native" ? i.displayValidation : m;
|
|
118
|
+
var u;
|
|
119
|
+
let h = B({
|
|
120
|
+
...e,
|
|
121
|
+
isReadOnly: e.isReadOnly || i.isReadOnly,
|
|
122
|
+
isDisabled: e.isDisabled || i.isDisabled,
|
|
123
|
+
name: e.name || l,
|
|
124
|
+
isRequired: (u = e.isRequired) !== null && u !== void 0 ? u : i.isRequired,
|
|
125
|
+
validationBehavior: t,
|
|
126
|
+
[_]: {
|
|
127
|
+
realtimeValidation: m,
|
|
128
|
+
displayValidation: P,
|
|
129
|
+
resetValidation: i.resetValidation,
|
|
130
|
+
commitValidation: i.commitValidation,
|
|
131
|
+
updateValidation(v) {
|
|
132
|
+
$.current = v, f();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}, d, a);
|
|
136
|
+
return {
|
|
137
|
+
...h,
|
|
138
|
+
inputProps: {
|
|
139
|
+
...h.inputProps,
|
|
140
|
+
"aria-describedby": [
|
|
141
|
+
e["aria-describedby"],
|
|
142
|
+
i.isInvalid ? s : null,
|
|
143
|
+
o
|
|
144
|
+
].filter(Boolean).join(" ") || void 0
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
const Z = G.createContext(null), ee = "_checkboxInner_5vl7s_4", ie = "_checkbox_5vl7s_4", ae = "_checkboxGroup_5vl7s_124", k = {
|
|
149
|
+
checkboxInner: ee,
|
|
150
|
+
checkbox: ie,
|
|
151
|
+
checkboxGroup: ae
|
|
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(
|
|
155
|
+
"label",
|
|
156
|
+
{
|
|
157
|
+
ref: i,
|
|
158
|
+
...R(a, l, e.labelProps),
|
|
159
|
+
slot: e.slot || void 0,
|
|
160
|
+
className: g(k.checkbox, e.className),
|
|
161
|
+
"data-hovered": d || void 0,
|
|
162
|
+
"data-selected": e.isSelected || void 0,
|
|
163
|
+
"data-indeterminate": e.isIndeterminate || void 0,
|
|
164
|
+
"data-pressed": o || void 0,
|
|
165
|
+
"data-disabled": e.isDisabled || void 0,
|
|
166
|
+
"data-readonly": e.isReadOnly || void 0,
|
|
167
|
+
"data-invalid": e.isInvalid || void 0,
|
|
168
|
+
"data-focused": s || void 0,
|
|
169
|
+
"data-focus-visible": t || void 0,
|
|
170
|
+
"data-required": e.isRequired || void 0,
|
|
171
|
+
children: [
|
|
172
|
+
/* @__PURE__ */ r("div", { className: g(k.checkboxInner), children: /* @__PURE__ */ r(
|
|
173
|
+
"svg",
|
|
174
|
+
{
|
|
175
|
+
width: 16,
|
|
176
|
+
height: 16,
|
|
177
|
+
viewBox: "0 0 18 18",
|
|
178
|
+
"aria-hidden": "true",
|
|
179
|
+
children: e.isIndeterminate ? /* @__PURE__ */ r(
|
|
180
|
+
"rect",
|
|
181
|
+
{
|
|
182
|
+
x: 4,
|
|
183
|
+
y: 8,
|
|
184
|
+
width: 10,
|
|
185
|
+
height: 2
|
|
186
|
+
}
|
|
187
|
+
) : /* @__PURE__ */ r("polyline", { points: "3,9 7,13 15,4" })
|
|
188
|
+
}
|
|
189
|
+
) }),
|
|
190
|
+
/* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(
|
|
191
|
+
"input",
|
|
192
|
+
{
|
|
193
|
+
...R(e.inputProps, n),
|
|
194
|
+
ref: e.inputRef
|
|
195
|
+
}
|
|
196
|
+
) }),
|
|
197
|
+
e.children
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
}), de = x.forwardRef((e, i) => {
|
|
202
|
+
const a = Y(
|
|
203
|
+
{
|
|
204
|
+
...e,
|
|
205
|
+
value: e.value || ""
|
|
206
|
+
},
|
|
207
|
+
e.state,
|
|
208
|
+
e.inputRef
|
|
209
|
+
);
|
|
210
|
+
return /* @__PURE__ */ r(
|
|
211
|
+
O,
|
|
212
|
+
{
|
|
213
|
+
...e,
|
|
214
|
+
...a,
|
|
215
|
+
ref: i
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
}), le = x.forwardRef((e, i) => {
|
|
219
|
+
const a = B(e, C(e), e.inputRef);
|
|
220
|
+
return /* @__PURE__ */ r(
|
|
221
|
+
O,
|
|
222
|
+
{
|
|
223
|
+
...e,
|
|
224
|
+
...a,
|
|
225
|
+
ref: i
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
}), Pe = x.forwardRef(
|
|
229
|
+
(e, i) => {
|
|
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({
|
|
232
|
+
ref: i,
|
|
233
|
+
isDisabled: e.isDisabled
|
|
234
|
+
}), n = T();
|
|
235
|
+
return l ? /* @__PURE__ */ r(
|
|
236
|
+
de,
|
|
237
|
+
{
|
|
238
|
+
...e,
|
|
239
|
+
state: l,
|
|
240
|
+
inputRef: o,
|
|
241
|
+
hoverResult: s,
|
|
242
|
+
pressResult: t,
|
|
243
|
+
focusRingAria: n,
|
|
244
|
+
validationBehavior: d
|
|
245
|
+
}
|
|
246
|
+
) : /* @__PURE__ */ r(
|
|
247
|
+
le,
|
|
248
|
+
{
|
|
249
|
+
...e,
|
|
250
|
+
inputRef: o,
|
|
251
|
+
hoverResult: s,
|
|
252
|
+
pressResult: t,
|
|
253
|
+
focusRingAria: n,
|
|
254
|
+
validationBehavior: d
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
);
|
|
259
|
+
export {
|
|
260
|
+
X as $,
|
|
261
|
+
Pe as C,
|
|
262
|
+
Z as a,
|
|
263
|
+
k as s
|
|
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,9 +1,10 @@
|
|
|
1
|
-
import { a as H } from "./Hidden-
|
|
1
|
+
import { a as H } from "./Hidden-C9KWUR7b.js";
|
|
2
2
|
import { createPortal as z } from "react-dom";
|
|
3
|
-
import {
|
|
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
|
|
6
|
-
import {
|
|
5
|
+
import { $ as M } from "./SSRProvider-40TXmsUG.js";
|
|
6
|
+
import { $ as L } from "./mergeProps-C1U1OIeJ.js";
|
|
7
|
+
import { s as F } from "./index-CGRFP4CC.js";
|
|
7
8
|
class b {
|
|
8
9
|
get childNodes() {
|
|
9
10
|
throw new Error("childNodes is not supported");
|
|
@@ -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;
|