@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
package/Select-PvCqY7Lp.js
DELETED
|
@@ -1,646 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as b, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import * as k from "react";
|
|
3
|
-
import v, { useMemo as F, useState as D, useCallback as E, useEffect as O, useRef as A } from "react";
|
|
4
|
-
import { c as P } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
import { d as K, c as L, n as q, e as z } from "./utils-HNTsIwux.js";
|
|
6
|
-
import { a as R, $ as j, T as G } from "./Tag-g6HN-YCv.js";
|
|
7
|
-
import { $ as H } from "./TextField-DBaRuNj7.js";
|
|
8
|
-
import { c as W } from "./Collection-C5ONNBqd.js";
|
|
9
|
-
import { C as B } from "./Checkbox-CvFsn_FL.js";
|
|
10
|
-
import { L as U, c as X, a as J, b as Q } from "./ListBoxSection-C1aLKL9p.js";
|
|
11
|
-
import { C as Y } from "./check-CLF6Yxza.js";
|
|
12
|
-
import { t as Z } from "./useHover-qRAon4nS.js";
|
|
13
|
-
import { o as ee, p as te } from "./Dialog-CYxThuMl.js";
|
|
14
|
-
import { $ as le } from "./ListKeyboardDelegate-DNOzQ8nc.js";
|
|
15
|
-
import { g as oe } from "./SelectionManager-6H88Cv6B.js";
|
|
16
|
-
import { $ as ae } from "./filterDOMProps-D6KHYVBX.js";
|
|
17
|
-
import { $ as ie } from "./useCollator-CgZcHC8N.js";
|
|
18
|
-
import { $ as ne } from "./useField-BPMAlIbU.js";
|
|
19
|
-
import { $ as re, a as ce, b as se } from "./useFormValidation-R8hQIjWP.js";
|
|
20
|
-
import { $ as de } from "./useListState-DFQ9d-uE.js";
|
|
21
|
-
import { u as ue } from "./useObserveElement-BdI4zgd7.js";
|
|
22
|
-
import { a as fe } from "./VisuallyHidden-D-4z1VgU.js";
|
|
23
|
-
import { L as me } from "./Label-C9ivwkAd.js";
|
|
24
|
-
import { T as pe } from "./Text-BN-g1iWi.js";
|
|
25
|
-
import { L as be } from "./ListBoxButton-O6zN3P4W.js";
|
|
26
|
-
import { X as he } from "./x-JK7i-TQC.js";
|
|
27
|
-
import { $ as ge } from "./useButton-C-Lq7CNY.js";
|
|
28
|
-
import { C as ye } from "./chevron-down-Cd1bkzXT.js";
|
|
29
|
-
import { $ as $e } from "./FieldError-CZikNDxX.js";
|
|
30
|
-
import { F as xe } from "./FieldError-Dv3bBEjh.js";
|
|
31
|
-
import './assets/Select.css';function V(e) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
V.getCollectionNode = function* (t, i) {
|
|
35
|
-
let { childItems: l, title: n, children: o } = t, r = t.title || t.children, d = t.textValue || (typeof r == "string" ? r : "") || t["aria-label"] || "";
|
|
36
|
-
!d && !(i != null && i.suppressTextValueWarning) && process.env.NODE_ENV !== "production" && console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."), yield {
|
|
37
|
-
type: "item",
|
|
38
|
-
props: t,
|
|
39
|
-
rendered: r,
|
|
40
|
-
textValue: d,
|
|
41
|
-
"aria-label": t["aria-label"],
|
|
42
|
-
hasChildNodes: ve(t),
|
|
43
|
-
*childNodes() {
|
|
44
|
-
if (l) for (let c of l) yield {
|
|
45
|
-
type: "item",
|
|
46
|
-
value: c
|
|
47
|
-
};
|
|
48
|
-
else if (n) {
|
|
49
|
-
let c = [];
|
|
50
|
-
v.Children.forEach(o, (u) => {
|
|
51
|
-
c.push({
|
|
52
|
-
type: "item",
|
|
53
|
-
element: u
|
|
54
|
-
});
|
|
55
|
-
}), yield* c;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
function ve(e) {
|
|
61
|
-
return e.hasChildItems != null ? e.hasChildItems : !!(e.childItems || e.title && v.Children.count(e.children) > 0);
|
|
62
|
-
}
|
|
63
|
-
let _ = V;
|
|
64
|
-
function I(e) {
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
I.getCollectionNode = function* (t) {
|
|
68
|
-
let { children: i, title: l, items: n } = t;
|
|
69
|
-
yield {
|
|
70
|
-
type: "section",
|
|
71
|
-
props: t,
|
|
72
|
-
hasChildNodes: !0,
|
|
73
|
-
rendered: l,
|
|
74
|
-
"aria-label": t["aria-label"],
|
|
75
|
-
*childNodes() {
|
|
76
|
-
if (typeof i == "function") {
|
|
77
|
-
if (!n) throw new Error("props.children was a function but props.items is missing");
|
|
78
|
-
for (let o of n) yield {
|
|
79
|
-
type: "item",
|
|
80
|
-
value: o,
|
|
81
|
-
renderer: i
|
|
82
|
-
};
|
|
83
|
-
} else {
|
|
84
|
-
let o = [];
|
|
85
|
-
v.Children.forEach(i, (r) => {
|
|
86
|
-
o.push({
|
|
87
|
-
type: "item",
|
|
88
|
-
element: r
|
|
89
|
-
});
|
|
90
|
-
}), yield* o;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
let Se = I;
|
|
96
|
-
const Ce = "_wrapper_1rlqo_10", Ke = "_trigger_1rlqo_21", _e = "_medium_1rlqo_35", we = "_icon_1rlqo_71", ke = "_tagGroup_1rlqo_77", Pe = "_listBoxItemCheckmark_1rlqo_93", Be = "_triggerContainer_1rlqo_98", Ve = "_selectValueTag_1rlqo_104", Ie = "_clearButton_1rlqo_120", Ne = "_truncate_1rlqo_132", Me = "_checkboxContainer_1rlqo_169", p = {
|
|
97
|
-
wrapper: Ce,
|
|
98
|
-
trigger: Ke,
|
|
99
|
-
medium: _e,
|
|
100
|
-
icon: we,
|
|
101
|
-
tagGroup: ke,
|
|
102
|
-
listBoxItemCheckmark: Pe,
|
|
103
|
-
triggerContainer: Be,
|
|
104
|
-
selectValueTag: Ve,
|
|
105
|
-
clearButton: Ie,
|
|
106
|
-
truncate: Ne,
|
|
107
|
-
checkboxContainer: Me
|
|
108
|
-
}, N = ({ item: e }) => /* @__PURE__ */ a(
|
|
109
|
-
J,
|
|
110
|
-
{
|
|
111
|
-
...e.value,
|
|
112
|
-
textValue: e.textValue,
|
|
113
|
-
children: ({ isDisabled: t, isSelected: i, selectionMode: l }) => /* @__PURE__ */ b(T, { children: [
|
|
114
|
-
l === "multiple" ? /* @__PURE__ */ a("div", { className: p.checkboxContainer, children: /* @__PURE__ */ a(
|
|
115
|
-
B,
|
|
116
|
-
{
|
|
117
|
-
isDisabled: t,
|
|
118
|
-
isSelected: i,
|
|
119
|
-
isReadOnly: !0,
|
|
120
|
-
excludeFromTabOrder: !0
|
|
121
|
-
}
|
|
122
|
-
) }) : null,
|
|
123
|
-
e.rendered,
|
|
124
|
-
i && l === "single" ? /* @__PURE__ */ a(
|
|
125
|
-
Y,
|
|
126
|
-
{
|
|
127
|
-
size: 20,
|
|
128
|
-
className: p.listBoxItemCheckmark
|
|
129
|
-
}
|
|
130
|
-
) : null
|
|
131
|
-
] })
|
|
132
|
-
}
|
|
133
|
-
), Te = ({ section: e, state: t }) => /* @__PURE__ */ a(X, { ...e.value, children: t.collection.getChildren ? /* @__PURE__ */ a(W, { items: t.collection.getChildren(e.key), children: (i) => /* @__PURE__ */ a(N, { item: i }) }) : null }), Fe = ({
|
|
134
|
-
state: e,
|
|
135
|
-
...t
|
|
136
|
-
}) => /* @__PURE__ */ a(
|
|
137
|
-
U,
|
|
138
|
-
{
|
|
139
|
-
...t,
|
|
140
|
-
...e,
|
|
141
|
-
escapeKeyBehavior: "none",
|
|
142
|
-
onSelectionChange: e.setSelectedKeys,
|
|
143
|
-
items: e.collection,
|
|
144
|
-
children: (i) => i.type === "section" ? /* @__PURE__ */ a(
|
|
145
|
-
Te,
|
|
146
|
-
{
|
|
147
|
-
state: e,
|
|
148
|
-
section: i
|
|
149
|
-
}
|
|
150
|
-
) : /* @__PURE__ */ a(N, { item: i })
|
|
151
|
-
}
|
|
152
|
-
);
|
|
153
|
-
function De(e, t, i) {
|
|
154
|
-
const { disallowEmptySelection: l, isDisabled: n } = e, o = ie({ usage: "search", sensitivity: "base" }), r = F(
|
|
155
|
-
() => new le(
|
|
156
|
-
t.collection,
|
|
157
|
-
t.disabledKeys,
|
|
158
|
-
null,
|
|
159
|
-
o
|
|
160
|
-
),
|
|
161
|
-
[t.collection, t.disabledKeys, o]
|
|
162
|
-
), { menuTriggerProps: d, menuProps: c } = ee(
|
|
163
|
-
{
|
|
164
|
-
isDisabled: n,
|
|
165
|
-
type: "listbox"
|
|
166
|
-
},
|
|
167
|
-
t,
|
|
168
|
-
i
|
|
169
|
-
), u = (f) => {
|
|
170
|
-
const { selectedKeys: x, selectionMode: M } = t, C = x.values().next().value;
|
|
171
|
-
if (M === "single")
|
|
172
|
-
switch (f.key) {
|
|
173
|
-
case "ArrowLeft": {
|
|
174
|
-
f.preventDefault();
|
|
175
|
-
const y = x.size > 0 ? r.getKeyAbove(C) : r.getFirstKey();
|
|
176
|
-
y && t.setSelectedKeys([y]);
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
case "ArrowRight": {
|
|
180
|
-
f.preventDefault();
|
|
181
|
-
const y = x.size > 0 ? r.getKeyBelow(C) : r.getFirstKey();
|
|
182
|
-
y && t.setSelectedKeys([y]);
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}, { typeSelectProps: s } = oe({
|
|
187
|
-
keyboardDelegate: r,
|
|
188
|
-
selectionManager: t.selectionManager,
|
|
189
|
-
onTypeSelect(f) {
|
|
190
|
-
t.setSelectedKeys([f]);
|
|
191
|
-
}
|
|
192
|
-
}), { labelProps: m, fieldProps: g } = ne({
|
|
193
|
-
...e,
|
|
194
|
-
labelElementType: "span"
|
|
195
|
-
});
|
|
196
|
-
s.onKeyDown = s.onKeyDownCapture, delete s.onKeyDownCapture;
|
|
197
|
-
const $ = ae(e, { labelable: !0 }), h = K(s, d, g), S = L();
|
|
198
|
-
return {
|
|
199
|
-
labelProps: {
|
|
200
|
-
...m,
|
|
201
|
-
onClick: () => {
|
|
202
|
-
var f;
|
|
203
|
-
e.isDisabled || ((f = i.current) == null || f.focus(), Z("keyboard"));
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
triggerProps: K($, {
|
|
207
|
-
...h,
|
|
208
|
-
onKeyDown: q(
|
|
209
|
-
h.onKeyDown,
|
|
210
|
-
u,
|
|
211
|
-
e.onKeyDown
|
|
212
|
-
),
|
|
213
|
-
onKeyUp: e.onKeyUp,
|
|
214
|
-
"aria-labelledby": [
|
|
215
|
-
h["aria-labelledby"],
|
|
216
|
-
h["aria-label"] && !h["aria-labelledby"] ? h.id : null,
|
|
217
|
-
S
|
|
218
|
-
].filter(Boolean).join(" "),
|
|
219
|
-
onFocus(f) {
|
|
220
|
-
t.isFocused || (e.onFocus && e.onFocus(f), t.setFocused(!0));
|
|
221
|
-
},
|
|
222
|
-
onBlur(f) {
|
|
223
|
-
t.isOpen || (e.onBlur && e.onBlur(f), t.setFocused(!1));
|
|
224
|
-
}
|
|
225
|
-
}),
|
|
226
|
-
valueProps: {
|
|
227
|
-
id: S
|
|
228
|
-
},
|
|
229
|
-
menuProps: {
|
|
230
|
-
...c,
|
|
231
|
-
disallowEmptySelection: l,
|
|
232
|
-
autoFocus: t.focusStrategy || !0,
|
|
233
|
-
shouldSelectOnPressUp: !0,
|
|
234
|
-
shouldFocusOnHover: !0,
|
|
235
|
-
onBlur: (f) => {
|
|
236
|
-
f.currentTarget.contains(f.relatedTarget) || (e.onBlur && e.onBlur(f), t.setFocused(!1));
|
|
237
|
-
},
|
|
238
|
-
"aria-labelledby": [
|
|
239
|
-
g["aria-labelledby"],
|
|
240
|
-
h["aria-label"] && !g["aria-labelledby"] ? h.id : null
|
|
241
|
-
].filter(Boolean).join(" ")
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
function Ee(e) {
|
|
246
|
-
const {
|
|
247
|
-
collection: t,
|
|
248
|
-
disabledKeys: i,
|
|
249
|
-
selectionManager: l,
|
|
250
|
-
selectionManager: { setSelectedKeys: n, selectedKeys: o, selectionMode: r }
|
|
251
|
-
} = de(e), d = [], c = o.size !== 0 ? Array.from(o).map((u) => {
|
|
252
|
-
const s = t.getItem(u);
|
|
253
|
-
return s || d.push(u), s;
|
|
254
|
-
}).filter(Boolean) : null;
|
|
255
|
-
return d.length && console.warn(
|
|
256
|
-
`Select: Keys "${d.join(
|
|
257
|
-
", "
|
|
258
|
-
)}" passed to "selectedKeys" are not present in the collection.`
|
|
259
|
-
), {
|
|
260
|
-
collection: t,
|
|
261
|
-
disabledKeys: i,
|
|
262
|
-
selectionManager: l,
|
|
263
|
-
selectionMode: r,
|
|
264
|
-
selectedKeys: o,
|
|
265
|
-
setSelectedKeys: n.bind(l),
|
|
266
|
-
selectedItems: c
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
function Oe(e) {
|
|
270
|
-
const [t, i] = D(!1), l = te(e), n = e.selectionMode === "single", o = Ee({
|
|
271
|
-
...e,
|
|
272
|
-
onSelectionChange: (s) => {
|
|
273
|
-
e.onSelectionChange && e.onSelectionChange(s), n && l.close();
|
|
274
|
-
}
|
|
275
|
-
}), r = re({
|
|
276
|
-
...e,
|
|
277
|
-
validationBehavior: "native",
|
|
278
|
-
value: o.selectedKeys
|
|
279
|
-
}), d = o.collection.size === 0, c = !!o.selectedKeys.size, u = E(() => {
|
|
280
|
-
r.resetValidation(), r.commitValidation();
|
|
281
|
-
}, [r]);
|
|
282
|
-
return O(() => {
|
|
283
|
-
n && c && u();
|
|
284
|
-
}, [c, n, u]), {
|
|
285
|
-
...o,
|
|
286
|
-
...l,
|
|
287
|
-
close() {
|
|
288
|
-
l.close(), c && u();
|
|
289
|
-
},
|
|
290
|
-
open() {
|
|
291
|
-
d || l.open();
|
|
292
|
-
},
|
|
293
|
-
toggle(s) {
|
|
294
|
-
d || l.toggle(s);
|
|
295
|
-
},
|
|
296
|
-
isFocused: t,
|
|
297
|
-
setFocused: i,
|
|
298
|
-
...r
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
function Ae({
|
|
302
|
-
autoComplete: e,
|
|
303
|
-
name: t,
|
|
304
|
-
isDisabled: i,
|
|
305
|
-
isRequired: l,
|
|
306
|
-
selectRef: n
|
|
307
|
-
}, o, r) {
|
|
308
|
-
const { visuallyHiddenProps: d } = fe();
|
|
309
|
-
return ce(n, o.selectedKeys, o.setSelectedKeys), se(
|
|
310
|
-
{
|
|
311
|
-
validationBehavior: "native",
|
|
312
|
-
focus: () => {
|
|
313
|
-
var c;
|
|
314
|
-
return (c = r.current) == null ? void 0 : c.focus();
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
o,
|
|
318
|
-
n
|
|
319
|
-
), {
|
|
320
|
-
containerProps: {
|
|
321
|
-
...d,
|
|
322
|
-
"aria-hidden": !0,
|
|
323
|
-
// @ts-expect-error - data-a11y-ignore is not a standard attribute
|
|
324
|
-
"data-react-aria-prevent-focus": !0,
|
|
325
|
-
"data-a11y-ignore": "aria-hidden-focus"
|
|
326
|
-
},
|
|
327
|
-
inputProps: {
|
|
328
|
-
style: { display: "none" }
|
|
329
|
-
},
|
|
330
|
-
selectProps: {
|
|
331
|
-
tabIndex: -1,
|
|
332
|
-
autoComplete: e,
|
|
333
|
-
disabled: i,
|
|
334
|
-
required: l,
|
|
335
|
-
name: t,
|
|
336
|
-
value: Array.from(o.selectedKeys).map((c) => c.toString()),
|
|
337
|
-
onChange: (c) => o.setSelectedKeys(c.target.value),
|
|
338
|
-
multiple: !0
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
function Le(e) {
|
|
343
|
-
const { state: t, triggerRef: i, name: l, isDisabled: n } = e, o = `${e.label}-hidden`, r = A(null), { containerProps: d, selectProps: c } = Ae(
|
|
344
|
-
{ ...e, selectRef: r },
|
|
345
|
-
t,
|
|
346
|
-
i
|
|
347
|
-
);
|
|
348
|
-
return t.collection.size <= 300 ? /* @__PURE__ */ a(
|
|
349
|
-
"div",
|
|
350
|
-
{
|
|
351
|
-
...d,
|
|
352
|
-
"data-testid": "hidden-select-container",
|
|
353
|
-
children: /* @__PURE__ */ b("label", { children: [
|
|
354
|
-
o,
|
|
355
|
-
/* @__PURE__ */ b(
|
|
356
|
-
"select",
|
|
357
|
-
{
|
|
358
|
-
...c,
|
|
359
|
-
ref: r,
|
|
360
|
-
children: [
|
|
361
|
-
/* @__PURE__ */ a("option", {}),
|
|
362
|
-
[...t.collection.getKeys()].map((u) => {
|
|
363
|
-
const s = t.collection.getItem(u);
|
|
364
|
-
return s && s.type === "item" ? /* @__PURE__ */ a(
|
|
365
|
-
"option",
|
|
366
|
-
{
|
|
367
|
-
value: s.key,
|
|
368
|
-
children: s.textValue
|
|
369
|
-
},
|
|
370
|
-
s.key
|
|
371
|
-
) : null;
|
|
372
|
-
})
|
|
373
|
-
]
|
|
374
|
-
}
|
|
375
|
-
)
|
|
376
|
-
] })
|
|
377
|
-
}
|
|
378
|
-
) : l ? /* @__PURE__ */ a(
|
|
379
|
-
"input",
|
|
380
|
-
{
|
|
381
|
-
type: "hidden",
|
|
382
|
-
autoComplete: c.autoComplete,
|
|
383
|
-
name: l,
|
|
384
|
-
disabled: n,
|
|
385
|
-
value: Array.from(t.selectedKeys).map((u) => u.toString()) ?? [""]
|
|
386
|
-
}
|
|
387
|
-
) : null;
|
|
388
|
-
}
|
|
389
|
-
const qe = ({
|
|
390
|
-
state: { selectedItems: e },
|
|
391
|
-
isDisabled: t,
|
|
392
|
-
parentWidth: i,
|
|
393
|
-
onClear: l,
|
|
394
|
-
triggerRef: n,
|
|
395
|
-
isClearable: o
|
|
396
|
-
}) => /* @__PURE__ */ b(
|
|
397
|
-
"div",
|
|
398
|
-
{
|
|
399
|
-
className: p.selectValueTag,
|
|
400
|
-
"data-disabled": t || void 0,
|
|
401
|
-
children: [
|
|
402
|
-
/* @__PURE__ */ a(
|
|
403
|
-
"span",
|
|
404
|
-
{
|
|
405
|
-
className: p.truncate,
|
|
406
|
-
style: { maxWidth: i - 92 },
|
|
407
|
-
children: e != null && e.length && e.length > 1 ? `${e.length} valda` : e == null ? void 0 : e[0].textValue
|
|
408
|
-
}
|
|
409
|
-
),
|
|
410
|
-
o && /* @__PURE__ */ a(
|
|
411
|
-
"button",
|
|
412
|
-
{
|
|
413
|
-
disabled: t,
|
|
414
|
-
"aria-label": "Rensa alla",
|
|
415
|
-
className: p.clearButton,
|
|
416
|
-
onClick: () => {
|
|
417
|
-
var r;
|
|
418
|
-
l(), (r = n == null ? void 0 : n.current) == null || r.focus();
|
|
419
|
-
},
|
|
420
|
-
children: /* @__PURE__ */ a(
|
|
421
|
-
he,
|
|
422
|
-
{
|
|
423
|
-
width: 20,
|
|
424
|
-
height: 20
|
|
425
|
-
}
|
|
426
|
-
)
|
|
427
|
-
}
|
|
428
|
-
)
|
|
429
|
-
]
|
|
430
|
-
}
|
|
431
|
-
), ze = ({
|
|
432
|
-
autoFocus: e,
|
|
433
|
-
excludeFromTabOrder: t,
|
|
434
|
-
isDisabled: i,
|
|
435
|
-
size: l = "large",
|
|
436
|
-
isOpen: n,
|
|
437
|
-
isInvalid: o,
|
|
438
|
-
selectionMode: r,
|
|
439
|
-
state: { selectedItems: d },
|
|
440
|
-
placeholder: c,
|
|
441
|
-
children: u,
|
|
442
|
-
triggerRef: s,
|
|
443
|
-
...m
|
|
444
|
-
}) => {
|
|
445
|
-
const { buttonProps: g } = ge(
|
|
446
|
-
{ autoFocus: e, excludeFromTabOrder: t, isDisabled: i, ...m },
|
|
447
|
-
s
|
|
448
|
-
), $ = r === "multiple";
|
|
449
|
-
return /* @__PURE__ */ b(
|
|
450
|
-
"div",
|
|
451
|
-
{
|
|
452
|
-
className: p.triggerContainer,
|
|
453
|
-
"data-disabled": i || void 0,
|
|
454
|
-
children: [
|
|
455
|
-
/* @__PURE__ */ b(
|
|
456
|
-
"button",
|
|
457
|
-
{
|
|
458
|
-
...g,
|
|
459
|
-
autoFocus: e,
|
|
460
|
-
className: P(p.trigger, {
|
|
461
|
-
[p.medium]: l === "medium"
|
|
462
|
-
}),
|
|
463
|
-
"data-disabled": i || void 0,
|
|
464
|
-
"data-invalid": o || void 0,
|
|
465
|
-
"data-open": n || void 0,
|
|
466
|
-
ref: s,
|
|
467
|
-
type: "button",
|
|
468
|
-
children: [
|
|
469
|
-
$ && !d ? /* @__PURE__ */ a("span", { children: c }) : null,
|
|
470
|
-
$ ? null : /* @__PURE__ */ a("span", { children: d ? d[0].textValue : c }),
|
|
471
|
-
/* @__PURE__ */ a(
|
|
472
|
-
"div",
|
|
473
|
-
{
|
|
474
|
-
className: p.icon,
|
|
475
|
-
"aria-hidden": "true",
|
|
476
|
-
children: /* @__PURE__ */ a(ye, { size: 20 })
|
|
477
|
-
}
|
|
478
|
-
)
|
|
479
|
-
]
|
|
480
|
-
}
|
|
481
|
-
),
|
|
482
|
-
u
|
|
483
|
-
]
|
|
484
|
-
}
|
|
485
|
-
);
|
|
486
|
-
}, w = ({
|
|
487
|
-
state: e,
|
|
488
|
-
errorMessage: t
|
|
489
|
-
}) => /* @__PURE__ */ a($e.Provider, { value: { ...e.displayValidation }, children: /* @__PURE__ */ a(xe, { children: t }) }), Re = k.forwardRef(
|
|
490
|
-
({ isClearable: e = !0, ...t }, i) => {
|
|
491
|
-
const l = {
|
|
492
|
-
selectionMode: "single",
|
|
493
|
-
errorPosition: "top",
|
|
494
|
-
disallowEmptySelection: !e,
|
|
495
|
-
isClearable: e,
|
|
496
|
-
size: "large",
|
|
497
|
-
...t
|
|
498
|
-
}, n = z(i), o = Oe(l), { labelProps: r, triggerProps: d, valueProps: c, menuProps: u } = De(
|
|
499
|
-
l,
|
|
500
|
-
o,
|
|
501
|
-
n
|
|
502
|
-
), { width: s } = ue(n.current, {
|
|
503
|
-
includePadding: !0
|
|
504
|
-
});
|
|
505
|
-
return /* @__PURE__ */ b(
|
|
506
|
-
H,
|
|
507
|
-
{
|
|
508
|
-
...l,
|
|
509
|
-
className: P(p.wrapper, l.className),
|
|
510
|
-
children: [
|
|
511
|
-
/* @__PURE__ */ a(
|
|
512
|
-
Le,
|
|
513
|
-
{
|
|
514
|
-
...l,
|
|
515
|
-
state: o,
|
|
516
|
-
triggerRef: n
|
|
517
|
-
}
|
|
518
|
-
),
|
|
519
|
-
l.label && /* @__PURE__ */ a(
|
|
520
|
-
me,
|
|
521
|
-
{
|
|
522
|
-
...r,
|
|
523
|
-
"data-disabled": l.isDisabled || void 0,
|
|
524
|
-
children: l.label
|
|
525
|
-
}
|
|
526
|
-
),
|
|
527
|
-
l.description && /* @__PURE__ */ a(pe, { slot: "description", children: l.description }),
|
|
528
|
-
l.errorPosition === "top" && /* @__PURE__ */ a(
|
|
529
|
-
w,
|
|
530
|
-
{
|
|
531
|
-
...l,
|
|
532
|
-
state: o
|
|
533
|
-
}
|
|
534
|
-
),
|
|
535
|
-
/* @__PURE__ */ a(
|
|
536
|
-
ze,
|
|
537
|
-
{
|
|
538
|
-
...l,
|
|
539
|
-
...d,
|
|
540
|
-
isInvalid: o.displayValidation.isInvalid,
|
|
541
|
-
triggerRef: n,
|
|
542
|
-
state: o,
|
|
543
|
-
children: l.selectionMode === "multiple" && o.selectedItems ? /* @__PURE__ */ a("span", { ...c, children: /* @__PURE__ */ a(
|
|
544
|
-
qe,
|
|
545
|
-
{
|
|
546
|
-
...l,
|
|
547
|
-
state: o,
|
|
548
|
-
parentWidth: s,
|
|
549
|
-
onClear: () => o.selectionManager.clearSelection(),
|
|
550
|
-
triggerRef: n
|
|
551
|
-
}
|
|
552
|
-
) }) : null
|
|
553
|
-
}
|
|
554
|
-
),
|
|
555
|
-
l.errorPosition === "bottom" && /* @__PURE__ */ a(
|
|
556
|
-
w,
|
|
557
|
-
{
|
|
558
|
-
...l,
|
|
559
|
-
state: o
|
|
560
|
-
}
|
|
561
|
-
),
|
|
562
|
-
/* @__PURE__ */ b(
|
|
563
|
-
Q,
|
|
564
|
-
{
|
|
565
|
-
isOpen: o.isOpen,
|
|
566
|
-
onOpenChange: (m) => {
|
|
567
|
-
m || o.close();
|
|
568
|
-
},
|
|
569
|
-
triggerRef: n,
|
|
570
|
-
style: { width: s },
|
|
571
|
-
children: [
|
|
572
|
-
l.isSelectableAll && /* @__PURE__ */ b(
|
|
573
|
-
be,
|
|
574
|
-
{
|
|
575
|
-
onClick: () => o.selectionManager.toggleSelectAll(),
|
|
576
|
-
children: [
|
|
577
|
-
/* @__PURE__ */ a("div", { className: p.checkboxContainer, children: /* @__PURE__ */ a(
|
|
578
|
-
B,
|
|
579
|
-
{
|
|
580
|
-
isSelected: o.selectionManager.isSelectAll,
|
|
581
|
-
isIndeterminate: !o.selectionManager.isSelectAll && !o.selectionManager.isEmpty,
|
|
582
|
-
isReadOnly: !0,
|
|
583
|
-
excludeFromTabOrder: !0
|
|
584
|
-
}
|
|
585
|
-
) }),
|
|
586
|
-
/* @__PURE__ */ a("span", { children: "Select All" })
|
|
587
|
-
]
|
|
588
|
-
}
|
|
589
|
-
),
|
|
590
|
-
/* @__PURE__ */ a(
|
|
591
|
-
Fe,
|
|
592
|
-
{
|
|
593
|
-
...u,
|
|
594
|
-
state: o
|
|
595
|
-
}
|
|
596
|
-
)
|
|
597
|
-
]
|
|
598
|
-
}
|
|
599
|
-
),
|
|
600
|
-
l.showTags && !!o.selectedItems && /* @__PURE__ */ a(
|
|
601
|
-
R,
|
|
602
|
-
{
|
|
603
|
-
"aria-label": "Selected Items",
|
|
604
|
-
selectionBehavior: "toggle",
|
|
605
|
-
onRemove: (m) => o.selectionManager.toggleSelection(Array.from(m)[0]),
|
|
606
|
-
className: p.tagGroup,
|
|
607
|
-
children: /* @__PURE__ */ a(j, { items: o.selectedItems, children: (m) => /* @__PURE__ */ a(
|
|
608
|
-
G,
|
|
609
|
-
{
|
|
610
|
-
textValue: m.textValue,
|
|
611
|
-
id: m.key,
|
|
612
|
-
dismissable: !0,
|
|
613
|
-
isDisabled: l.isDisabled,
|
|
614
|
-
children: m.textValue
|
|
615
|
-
},
|
|
616
|
-
m.key
|
|
617
|
-
) })
|
|
618
|
-
}
|
|
619
|
-
)
|
|
620
|
-
]
|
|
621
|
-
}
|
|
622
|
-
);
|
|
623
|
-
}
|
|
624
|
-
), je = k.forwardRef(
|
|
625
|
-
({ options: e, ...t }, i) => /* @__PURE__ */ a(
|
|
626
|
-
Re,
|
|
627
|
-
{
|
|
628
|
-
...t,
|
|
629
|
-
items: e,
|
|
630
|
-
ref: i,
|
|
631
|
-
children: (l) => l.children ? /* @__PURE__ */ a(
|
|
632
|
-
Se,
|
|
633
|
-
{
|
|
634
|
-
items: l.children,
|
|
635
|
-
title: l.name,
|
|
636
|
-
children: (n) => /* @__PURE__ */ a(_, { textValue: n.textValue, children: n.name })
|
|
637
|
-
},
|
|
638
|
-
l.name
|
|
639
|
-
) : /* @__PURE__ */ a(_, { textValue: l.textValue, children: l.name })
|
|
640
|
-
}
|
|
641
|
-
)
|
|
642
|
-
);
|
|
643
|
-
je.displayName = "Select";
|
|
644
|
-
export {
|
|
645
|
-
je as S
|
|
646
|
-
};
|