@midas-ds/components 10.1.1 → 10.2.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-DZT76sWu.js +320 -0
- package/AccordionItem-Z_c9MpAM.cjs +1 -0
- package/BadgeContainer-D3RtqcPF.js +37 -0
- package/BadgeContainer-DeUgqGqb.cjs +1 -0
- package/Breadcrumbs-CmZXtTiS.js +250 -0
- package/Breadcrumbs-Cx09jwZZ.cjs +1 -0
- package/Button-CbFRzRrF.js +38 -0
- package/Button-DnhqHU01.cjs +1 -0
- package/Button-ZOQy9Ivu.js +78 -0
- package/Button-iSiWjocA.cjs +1 -0
- package/Button.module-CMMhIrkn.js +14 -0
- package/Button.module-DO5s9hOk.cjs +1 -0
- package/ButtonGroup-DUqW5dzM.cjs +1 -0
- package/ButtonGroup-DvVvear6.js +22 -0
- package/CHANGELOG.md +48 -0
- package/Card-C0BFW3wJ.cjs +1 -0
- package/Card-CaKKKv9k.js +131 -0
- package/CharacterCounter-CPGdboVJ.js +22 -0
- package/CharacterCounter-CrY8QRuY.cjs +1 -0
- package/Checkbox-CvFsn_FL.js +380 -0
- package/Checkbox-DSxGAJX2.cjs +1 -0
- package/CheckboxGroup-Bk9DPq4I.cjs +1 -0
- package/CheckboxGroup-Dij9zKlF.js +54 -0
- package/Collection-C5ONNBqd.js +576 -0
- package/Collection-Csx3L9gh.cjs +1 -0
- package/ColorSchemeSwitch-CbAWIJCg.js +106 -0
- package/ColorSchemeSwitch-JRrCyYVv.cjs +16 -0
- package/ComboBox-BCaqPEIH.js +1375 -0
- package/ComboBox-gveQKHU3.cjs +1 -0
- package/DateField-CAQlzuDD.js +46 -0
- package/DateField-deVVFwKA.cjs +1 -0
- package/DateInputDivider-DnUxETEC.cjs +1 -0
- package/DateInputDivider-Dx8n1Lxp.js +2908 -0
- package/DateRangePicker-BmBvwqo6.js +881 -0
- package/DateRangePicker-BzfitoK0.cjs +6 -0
- package/Dialog-Bd5hK360.cjs +1 -0
- package/Dialog-Bxx8cBEq.js +208 -0
- package/Dialog-CYxThuMl.js +1609 -0
- package/Dialog-CwTEAujZ.cjs +1 -0
- package/DragAndDrop-CSwmPhxC.js +60 -0
- package/DragAndDrop-HvycSrKY.cjs +1 -0
- package/Dropdown-CaGon9OR.cjs +6 -0
- package/Dropdown-nkjzsVYX.js +84 -0
- package/FieldError-BZw8UzBk.cjs +1 -0
- package/FieldError-CZikNDxX.js +28 -0
- package/FieldError-DqdfJ3fs.cjs +1 -0
- package/FieldError-Dv3bBEjh.js +23 -0
- package/FileUpload-DYRZ0M9F.cjs +2 -0
- package/FileUpload-ULwcYDxs.js +2372 -0
- package/FocusScope-DwIqdYpQ.js +625 -0
- package/FocusScope-NaPbvuuS.cjs +1 -0
- package/Form-BuOomA4T.cjs +1 -0
- package/Form-CXcEMuBf.js +5 -0
- package/Grid--OhtgCo6.js +27 -0
- package/Grid-DVQtOcu9.cjs +1 -0
- package/GridItem-DlbSdRmB.js +246 -0
- package/GridItem-XgHmZWXY.cjs +1 -0
- package/Group-CeSsSQVC.js +44 -0
- package/Group-CgiqQHH1.cjs +1 -0
- package/Heading-BY5-QN4S.js +46 -0
- package/Heading-DoJAtYZf.cjs +1 -0
- package/Hidden-B5ir3Lei.js +34 -0
- package/Hidden-BxRZGdEW.cjs +1 -0
- package/InfoBanner-BS-dAfzO.cjs +1 -0
- package/InfoBanner-CVIBFSWx.js +82 -0
- package/Input-D8Ku_FQz.js +41 -0
- package/Input-DKSAYvsw.cjs +1 -0
- package/Label-C9ivwkAd.js +21 -0
- package/Label-CUV21CAv.cjs +1 -0
- package/Label-DkDOsmUF.js +16 -0
- package/Label-IMWAyoKb.cjs +1 -0
- package/Layout-BWeHHnqU.cjs +16 -0
- package/Layout-CCt_2L1k.js +468 -0
- package/Link-B-nus-FT.js +71 -0
- package/Link-DsnCtNeI.cjs +6 -0
- package/Link-SHMbeyIP.cjs +1 -0
- package/Link-uFowN4qv.js +59 -0
- package/LinkButton-CuBilDML.js +69 -0
- package/LinkButton-CymMrcGL.cjs +6 -0
- package/ListBox-CDOsQChA.cjs +1 -0
- package/ListBox-DOi_y_Lt.js +530 -0
- package/ListBoxButton-CFeNhJhr.cjs +1 -0
- package/ListBoxButton-O6zN3P4W.js +15 -0
- package/ListBoxSection-C1aLKL9p.js +1058 -0
- package/ListBoxSection-DGCP6xpf.cjs +1 -0
- package/ListKeyboardDelegate-BqMETvPv.cjs +1 -0
- package/ListKeyboardDelegate-DNOzQ8nc.js +158 -0
- package/LiveAnnouncer-B6177m92.js +51 -0
- package/LiveAnnouncer-CwEWPU8b.cjs +1 -0
- package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
- package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
- package/Logo-BIrOEINM.js +133 -0
- package/Logo-DT2_2O43.cjs +1 -0
- package/NumberFormatter-DewVDY5w.cjs +1 -0
- package/NumberFormatter-DgOUVrge.js +119 -0
- package/OverlayArrow-D75k-EMl.cjs +1 -0
- package/OverlayArrow-DorA4Rbr.js +506 -0
- package/PressResponder-C06O3Z5P.cjs +1 -0
- package/PressResponder-CVEg5kND.js +33 -0
- package/ProgressBar-Bkw9zavs.cjs +1 -0
- package/ProgressBar-CEX2WNoW.js +77 -0
- package/ProgressBar-Dqh3ftSP.cjs +1 -0
- package/ProgressBar-gmAzSsrz.js +53 -0
- package/RSPContexts-BW2SEIqe.js +11 -0
- package/RSPContexts-D8hmBfGm.cjs +1 -0
- package/Radio-CDKrvQe4.cjs +1 -0
- package/Radio-_ukSkxPT.js +311 -0
- package/RangeCalendar-cbCKBPZv.cjs +11 -0
- package/RangeCalendar-uXwoBL-O.js +1685 -0
- package/SearchField-6yBGiojX.cjs +6 -0
- package/SearchField-DYl2uo7o.js +362 -0
- package/Select-CpHjd1tp.cjs +1 -0
- package/Select-PvCqY7Lp.js +646 -0
- package/SelectionManager-6H88Cv6B.js +1033 -0
- package/SelectionManager-C5NGBzvz.cjs +1 -0
- package/Separator-LYnFqh4L.js +60 -0
- package/Separator-nPra6kD-.cjs +1 -0
- package/Skeleton-BAwbfKBW.cjs +1 -0
- package/Skeleton-BePDRmrO.js +40 -0
- package/Spinner-D31SXm-U.js +41 -0
- package/Spinner-DAJtfxqJ.cjs +6 -0
- package/Table-B_N7wUmA.js +2451 -0
- package/Table-D9vNc_y-.cjs +16 -0
- package/Tabs-Ct6D83aR.js +404 -0
- package/Tabs-Dtcl2oK2.cjs +1 -0
- package/Tag-CVFkzg3s.cjs +1 -0
- package/Tag-g6HN-YCv.js +748 -0
- package/Text-3MNwRMpI.cjs +1 -0
- package/Text-B2K-BJKQ.cjs +1 -0
- package/Text-BN-g1iWi.js +32 -0
- package/Text-B_H68Tvq.js +15 -0
- package/TextArea-DSiQ578a.js +206 -0
- package/TextArea-cVyGBRbL.cjs +1 -0
- package/TextField-B70CL2qz.cjs +1 -0
- package/TextField-DBaRuNj7.js +119 -0
- package/TextField.module-BcpPBWnD.js +13 -0
- package/TextField.module-Dw5Rtn9y.cjs +1 -0
- package/Toast-CjpldAI8.js +988 -0
- package/Toast-DrkOGy4d.cjs +1 -0
- package/ToggleButtonGroup-BuU_6dYe.cjs +1 -0
- package/ToggleButtonGroup-Ceh9_yBM.js +210 -0
- package/Tooltip-BAIjaYax.js +283 -0
- package/Tooltip-CiWg4zIC.cjs +1 -0
- package/VisuallyHidden-CtXvK_Tw.cjs +1 -0
- package/VisuallyHidden-D-4z1VgU.js +40 -0
- package/accordion/index.cjs +1 -0
- package/accordion/index.js +5 -0
- package/arrow-right-Cw48o2oW.cjs +6 -0
- package/arrow-right-Dg8sttFO.js +14 -0
- package/assets/AccordionItem.css +1 -0
- package/assets/BadgeContainer.css +1 -0
- package/assets/Breadcrumbs.css +1 -0
- package/assets/Button.css +1 -0
- package/assets/ButtonGroup.css +1 -0
- package/assets/Card.css +1 -0
- package/assets/CharacterCounter.css +1 -0
- package/assets/Checkbox.css +1 -0
- package/assets/ColorSchemeSwitch.css +1 -0
- package/assets/ComboBox.css +1 -0
- package/assets/DateField.css +1 -0
- package/assets/DateInputDivider.css +1 -0
- package/assets/DateRangePicker.css +1 -0
- package/assets/Dialog.css +1 -0
- package/assets/Dropdown.css +1 -0
- package/assets/FieldError.css +1 -0
- package/assets/FileUpload.css +1 -0
- package/assets/GridItem.css +1 -0
- package/assets/Heading.css +1 -0
- package/assets/InfoBanner.css +1 -0
- package/assets/Label.css +1 -0
- package/assets/Layout.css +1 -0
- package/assets/Link.css +1 -0
- package/assets/LinkButton.css +1 -0
- package/assets/ListBoxSection.css +1 -0
- package/assets/Logo.css +1 -0
- package/assets/ProgressBar.css +1 -0
- package/assets/Radio.css +1 -0
- package/assets/RangeCalendar.css +1 -0
- package/assets/SearchField.css +1 -0
- package/assets/Select.css +1 -0
- package/assets/Skeleton.css +1 -0
- package/assets/Spinner.css +1 -0
- package/assets/Table.css +1 -0
- package/assets/Tabs.css +1 -0
- package/assets/Tag.css +1 -0
- package/assets/Text.css +1 -0
- package/assets/TextField.css +1 -0
- package/assets/Toast.css +1 -0
- package/assets/ToggleButtonGroup.css +1 -0
- package/assets/Tooltip.css +1 -0
- package/badge/index.cjs +1 -0
- package/badge/index.js +5 -0
- package/breadcrumbs/index.cjs +1 -0
- package/breadcrumbs/index.js +4 -0
- package/button/index.cjs +1 -0
- package/button/index.js +6 -0
- package/calendar/CalendarHeader.d.ts +2 -1
- package/calendar/index.cjs +1 -0
- package/calendar/index.js +5 -0
- package/card/index.cjs +1 -0
- package/card/index.js +10 -0
- package/character-counter/index.cjs +1 -0
- package/character-counter/index.js +4 -0
- package/check-CLF6Yxza.js +11 -0
- package/check-Dw9c62O4.cjs +6 -0
- package/checkbox/index.cjs +1 -0
- package/checkbox/index.js +6 -0
- package/chevron-down-C2E7aZ3N.cjs +6 -0
- package/chevron-down-Cd1bkzXT.js +13 -0
- package/clsx-C11secjj.cjs +1 -0
- package/clsx-OuTLNxxd.js +16 -0
- package/color-scheme-switch/index.cjs +1 -0
- package/color-scheme-switch/index.js +4 -0
- package/combobox/index.cjs +1 -0
- package/combobox/index.js +7 -0
- package/common/types.d.ts +2 -0
- package/context-B8cn10po.js +80 -0
- package/context-DjwhtgxQ.cjs +1 -0
- package/createLucideIcon-DAY4oS-S.cjs +21 -0
- package/createLucideIcon-DeWljiyi.js +79 -0
- package/date-field/index.cjs +1 -0
- package/date-field/index.js +8 -0
- package/date-picker/index.cjs +1 -0
- package/date-picker/index.js +5 -0
- package/dropdown/index.cjs +1 -0
- package/dropdown/index.js +5 -0
- package/field-error/FieldError.d.ts +4 -1
- package/field-error/index.cjs +1 -0
- package/field-error/index.js +4 -0
- package/file-upload/index.cjs +1 -0
- package/file-upload/index.js +4 -0
- package/filterDOMProps-BS2lrgFA.cjs +1 -0
- package/filterDOMProps-D6KHYVBX.js +24 -0
- package/focusSafely-Bqfo_DH7.cjs +1 -0
- package/focusSafely-C48ucRUz.js +56 -0
- package/getScrollParent-DuKmPmUa.cjs +1 -0
- package/getScrollParent-Ru2U2LlM.js +9 -0
- package/grid/Grid.d.ts +15 -4
- package/grid/GridItem.d.ts +31 -2
- package/grid/index.cjs +1 -0
- package/grid/index.d.ts +2 -2
- package/grid/index.js +8 -0
- package/heading/index.cjs +1 -0
- package/heading/index.js +4 -0
- package/index-BSMrH_Du.js +120 -0
- package/index-D97L3EBk.cjs +17 -0
- package/index.cjs +1 -169
- package/index.d.ts +0 -1
- package/index.js +127 -29979
- package/inertValue-B7loUihk.js +8 -0
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-DkzVqB8I.js +38 -0
- package/info-DlzSeKbc.cjs +16 -0
- package/info-banner/index.cjs +1 -0
- package/info-banner/index.js +4 -0
- package/label/index.cjs +1 -0
- package/label/index.js +4 -0
- package/layout/index.cjs +1 -0
- package/layout/index.js +8 -0
- package/link/index.cjs +1 -0
- package/link/index.js +6 -0
- package/link-button/index.cjs +1 -0
- package/link-button/index.js +6 -0
- package/list-box/index.cjs +1 -0
- package/list-box/index.js +9 -0
- package/logo/index.cjs +1 -0
- package/logo/index.js +4 -0
- package/modal/index.cjs +1 -0
- package/modal/index.js +6 -0
- package/number-BE8InLgI.js +6 -0
- package/number-E0x3H9cL.cjs +1 -0
- package/package.json +4 -4
- package/progress-bar/index.cjs +1 -0
- package/progress-bar/index.js +4 -0
- package/radio/index.cjs +1 -0
- package/radio/index.js +5 -0
- package/scrollIntoView-ClEACHUk.js +57 -0
- package/scrollIntoView-DRSoJp89.cjs +1 -0
- package/search-field/index.cjs +1 -0
- package/search-field/index.js +4 -0
- package/select/index.cjs +1 -0
- package/select/index.js +4 -0
- package/skeleton/Skeleton.d.ts +5 -0
- package/skeleton/index.cjs +1 -0
- package/skeleton/index.js +4 -0
- package/spinner/index.cjs +1 -0
- package/spinner/index.js +4 -0
- package/square-arrow-out-up-right-BCAO2eJs.cjs +6 -0
- package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
- package/table/Table.d.ts +7 -1
- package/table/index.cjs +1 -0
- package/table/index.js +9 -0
- package/tabs/index.cjs +1 -0
- package/tabs/index.js +4 -0
- package/tag/index.cjs +1 -0
- package/tag/index.js +5 -0
- package/text/index.cjs +1 -0
- package/text/index.js +4 -0
- package/textfield/index.cjs +1 -0
- package/textfield/index.js +7 -0
- package/theme/index.cjs +1 -0
- package/theme/index.d.ts +4 -0
- package/{theme.js → theme/index.js} +2 -2
- package/theme/tokens.d.ts +10 -0
- package/toast/index.cjs +1 -0
- package/toast/index.js +9 -0
- package/toggle-button/index.cjs +1 -0
- package/toggle-button/index.js +5 -0
- package/tokens-p6pg1Cea.cjs +1 -0
- package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
- package/tooltip/index.cjs +1 -0
- package/tooltip/index.js +5 -0
- package/triangle-alert-C0lvfCYH.cjs +6 -0
- package/triangle-alert-wxyxspAl.js +21 -0
- package/useButton-B1Fa-6qE.cjs +1 -0
- package/useButton-C-Lq7CNY.js +47 -0
- package/useCollator-C_ozeWLo.cjs +1 -0
- package/useCollator-CgZcHC8N.js +11 -0
- package/useControlledState-D0L6S_5r.cjs +1 -0
- package/useControlledState-u436Wbp1.js +30 -0
- package/useDateFormatter-C53Uxdli.js +1571 -0
- package/useDateFormatter-g2maMTGH.cjs +1 -0
- package/useDescription-CVKhFa3c.js +32 -0
- package/useDescription-DmQYSEES.cjs +1 -0
- package/useEvent-CjkbBniY.cjs +1 -0
- package/useEvent-Cyd2ZL0c.js +21 -0
- package/useField-B1RU0GKs.cjs +1 -0
- package/useField-BPMAlIbU.js +35 -0
- package/useFilter-ChIbnALW.js +35 -0
- package/useFilter-CtIwF2qW.cjs +1 -0
- package/useFocusRing-BDGH3lpn.js +82 -0
- package/useFocusRing-CbImDrwF.cjs +1 -0
- package/useFocusable-CaedRTpB.js +74 -0
- package/useFocusable-CuPQ7Cm5.cjs +1 -0
- package/useFormValidation-ClximP89.cjs +1 -0
- package/useFormValidation-R8hQIjWP.js +215 -0
- package/useHasTabbableChild-DgphNvnk.cjs +1 -0
- package/useHasTabbableChild-DsD9AJwE.js +34 -0
- package/useHighlightSelectionDescription-BizKjvPU.cjs +1 -0
- package/useHighlightSelectionDescription-DFfcgbUj.js +567 -0
- package/useHover-_mv5J4_q.cjs +1 -0
- package/useHover-qRAon4nS.js +490 -0
- package/useLabel-DDdAJ1JO.js +23 -0
- package/useLabel-m_S5xkHy.cjs +1 -0
- package/useLabels-BLOfc6Y-.cjs +1 -0
- package/useLabels-BZjoZA1Z.js +17 -0
- package/useListState-Ca2-uZMO.cjs +1 -0
- package/useListState-DFQ9d-uE.js +132 -0
- package/useLocalizedStringFormatter-D07YB2e1.js +22 -0
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +1 -0
- package/useObserveElement-BdI4zgd7.js +27 -0
- package/useObserveElement-BzEr5D32.cjs +1 -0
- package/usePress-BFa6cT9o.cjs +7 -0
- package/usePress-CUJ3pMOw.js +542 -0
- package/useSingleSelectListState-C-nB8cug.js +34 -0
- package/useSingleSelectListState-MGNxUTum.cjs +1 -0
- package/useTextField-5OZQPyOW.js +86 -0
- package/useTextField-CtUDWsUl.cjs +1 -0
- package/useToggleState-Bz5rAf4C.js +18 -0
- package/useToggleState-DoIkSQdj.cjs +1 -0
- package/useUpdateEffect-CCDx8D4X.js +13 -0
- package/useUpdateEffect-sk3kiVGz.cjs +1 -0
- package/utils-BNtZbAib.cjs +1 -0
- package/utils-HNTsIwux.js +308 -0
- package/x-CvxiAZTW.cjs +6 -0
- package/x-JK7i-TQC.js +14 -0
- package/flex/Flex.d.ts +0 -17
- package/flex/FlexItem.d.ts +0 -15
- package/flex/index.d.ts +0 -2
- package/index.css +0 -1
- package/theme.cjs +0 -1
- package/tokens-COoF1t17.cjs +0 -1
- /package/{global.css → assets/global.css} +0 -0
|
@@ -0,0 +1,646 @@
|
|
|
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
|
+
};
|