@midas-ds/components 10.2.0 → 10.3.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-Z_c9MpAM.cjs → AccordionItem-BGWiWjxA.cjs} +1 -1
- package/{AccordionItem-DZT76sWu.js → AccordionItem-ChHpW8EW.js} +11 -11
- package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
- package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
- package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-CwDUNIqF.js} +34 -34
- package/{Breadcrumbs-Cx09jwZZ.cjs → Breadcrumbs-DtjJ1UmU.cjs} +1 -1
- package/{Button-iSiWjocA.cjs → Button-BoJl6JGM.cjs} +1 -1
- package/{Button-CbFRzRrF.js → Button-Csih3v23.js} +2 -2
- package/Button-DjBChs7s.js +340 -0
- package/Button-htW9qIsS.cjs +1 -0
- package/Button.module-DEQtBYe5.cjs +1 -0
- package/Button.module-tti8HGxs.js +14 -0
- package/CHANGELOG.md +20 -0
- package/Card-0G0mj9q5.cjs +1 -0
- package/{Card-CaKKKv9k.js → Card-yrtGzt70.js} +5 -5
- package/CharacterCounter-BL_nZHya.js +22 -0
- package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-CHcTDHO-.cjs} +1 -1
- package/Checkbox-5HINZdGu.js +263 -0
- package/Checkbox-DqcPg5hz.cjs +1 -0
- package/CheckboxGroup-BBrSMuDY.cjs +1 -0
- package/CheckboxGroup-CLgixk2p.js +243 -0
- package/{Collection-Csx3L9gh.cjs → Collection-BIDsXNhi.cjs} +1 -1
- package/{Collection-C5ONNBqd.js → Collection-Brgjpkne.js} +4 -4
- package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-BpzQ7g0b.js} +9 -9
- package/{ColorSchemeSwitch-JRrCyYVv.cjs → ColorSchemeSwitch-C-qWuqkU.cjs} +2 -2
- package/{ComboBox-BCaqPEIH.js → ComboBox-CVDyp2a-.js} +331 -327
- package/ComboBox-CWJUg9Xx.cjs +1 -0
- package/DateField-DeDhiYnW.cjs +1 -0
- package/DateField-DhU3q-rG.js +47 -0
- package/DateInputDivider-ADvOavHw.cjs +1 -0
- package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-CF4xWsMT.js} +71 -75
- package/DateRangePicker-BsAHhy99.cjs +6 -0
- package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-ziD1_k1W.js} +194 -194
- package/Dialog-B8GTYbvu.cjs +1 -0
- package/{Dialog-CwTEAujZ.cjs → Dialog-BOrYdX50.cjs} +1 -1
- package/{Dialog-Bxx8cBEq.js → Dialog-CXNu48AC.js} +25 -25
- package/{Dialog-CYxThuMl.js → Dialog-D14MbJ7o.js} +564 -540
- package/{DragAndDrop-HvycSrKY.cjs → DragAndDrop-DNth776R.cjs} +1 -1
- package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-o3ruz_SR.js} +8 -8
- package/{Dropdown-CaGon9OR.cjs → Dropdown-CJ6My6EI.cjs} +1 -1
- package/{Dropdown-nkjzsVYX.js → Dropdown-Df58j43I.js} +2 -2
- package/FieldError-CAcjosk_.js +46 -0
- package/FieldError-CKBb2-mp.cjs +1 -0
- package/{FileUpload-DYRZ0M9F.cjs → FileUpload-CxCOtyB9.cjs} +2 -2
- package/{FileUpload-ULwcYDxs.js → FileUpload-D6qoEAjn.js} +149 -148
- package/FocusScope-5c9SVBcR.cjs +1 -0
- package/{FocusScope-DwIqdYpQ.js → FocusScope-CxkURfoc.js} +16 -16
- package/{Group-CeSsSQVC.js → Group-B6EslsHZ.js} +5 -5
- package/{Heading-BY5-QN4S.js → Heading-BFtiin0g.js} +7 -7
- package/{Heading-DoJAtYZf.cjs → Heading-mHhCbGjY.cjs} +1 -1
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/{InfoBanner-CVIBFSWx.js → InfoBanner-BLM-TJJ6.js} +15 -14
- package/InfoBanner-C2kTIsrB.cjs +1 -0
- package/{Input-D8Ku_FQz.js → Input-BTzwcf72.js} +10 -10
- package/Label-7Ybb99CE.cjs +1 -0
- package/Label-BwJrdqEE.js +70 -0
- package/{Layout-BWeHHnqU.cjs → Layout-1g6bMH62.cjs} +2 -2
- package/{Layout-CCt_2L1k.js → Layout-Ey8flY7E.js} +9 -9
- package/{Link-DsnCtNeI.cjs → Link-B88l_oaE.cjs} +1 -1
- package/{Link-SHMbeyIP.cjs → Link-BQhauBuw.cjs} +1 -1
- package/{Link-uFowN4qv.js → Link-DX5BbBnn.js} +1 -1
- package/{Link-B-nus-FT.js → Link-yNO2-sqx.js} +17 -17
- package/LinkButton-CBpGLETx.cjs +6 -0
- package/LinkButton-o6uS1XsR.js +69 -0
- package/ListBox-DP9M4H6R.cjs +1 -0
- package/{ListBox-DOi_y_Lt.js → ListBox-GnVK_Pdq.js} +72 -73
- package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DPBrtXyv.cjs} +1 -1
- package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-D_J3jlP0.js} +1 -1
- package/{ListBoxSection-DGCP6xpf.cjs → ListBoxSection-BGaigBnG.cjs} +1 -1
- package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-C0BGnpB4.js} +9 -9
- package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-DNI8GQtX.js} +24 -15
- package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
- package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CDLXPTew.js} +44 -44
- package/Popover-BGGXeD54.js +38 -0
- package/Popover-CqNWzPf-.cjs +1 -0
- package/{ProgressBar-gmAzSsrz.js → ProgressBar-DMSg-Prr.js} +2 -2
- package/ProgressBar-Jbg28j2a.cjs +1 -0
- package/Radio-BwqrdhQE.cjs +1 -0
- package/{Radio-_ukSkxPT.js → Radio-Cz29wPXd.js} +71 -71
- package/RangeCalendar-BehUaydF.cjs +11 -0
- package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-RAlAHlNL.js} +25 -27
- package/{SearchField-6yBGiojX.cjs → SearchField-CxMwDeUM.cjs} +2 -2
- package/{SearchField-DYl2uo7o.js → SearchField-IlvZ3Kh6.js} +11 -11
- package/Select-2q1iSzAX.cjs +1 -0
- package/{Select-PvCqY7Lp.js → Select-BVQZtoi9.js} +232 -232
- package/{SelectionManager-6H88Cv6B.js → SelectionManager-B4ORduja.js} +26 -27
- package/SelectionManager-CwYux2h3.cjs +1 -0
- package/{Separator-LYnFqh4L.js → Separator-Cu9fYKUM.js} +19 -20
- package/Separator-DECIYLtZ.cjs +1 -0
- package/{Spinner-DAJtfxqJ.cjs → Spinner-P35rvvsl.cjs} +1 -1
- package/Table-B40CGLT-.cjs +16 -0
- package/{Table-B_N7wUmA.js → Table-F4oYBtUM.js} +69 -73
- package/{Tabs-Ct6D83aR.js → Tabs-B4oZJkZG.js} +39 -39
- package/{Tabs-Dtcl2oK2.cjs → Tabs-DA2qXhzb.cjs} +1 -1
- package/Tag-DPAGmcMK.cjs +1 -0
- package/{Tag-g6HN-YCv.js → Tag-Du7GvSv2.js} +151 -154
- package/Text-BoXuUVVH.js +15 -0
- package/{Text-BN-g1iWi.js → Text-jWWg0B20.js} +1 -1
- package/TextArea-C7JZ_pQd.cjs +1 -0
- package/TextArea-XeBCSyzl.js +191 -0
- package/TextField-BgNdhZi_.cjs +1 -0
- package/{TextField-DBaRuNj7.js → TextField-C-hTPukq.js} +16 -16
- package/Toast-AbDA1BOs.cjs +1 -0
- package/{Toast-CjpldAI8.js → Toast-Btg21Xge.js} +32 -31
- package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-B5yz1tm2.js} +7 -7
- package/{ToggleButtonGroup-BuU_6dYe.cjs → ToggleButtonGroup-BFDoj0P6.cjs} +1 -1
- package/{Tooltip-BAIjaYax.js → Tooltip-CMLs7WMw.js} +33 -33
- package/{Tooltip-CiWg4zIC.cjs → Tooltip-DeBuBKhS.cjs} +1 -1
- package/{VisuallyHidden-CtXvK_Tw.cjs → VisuallyHidden-CLWHbz2n.cjs} +1 -1
- package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-ZCYf65q4.js} +8 -8
- 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/Label.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- 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 +2 -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 +35 -0
- package/checkbox/types.d.ts +14 -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/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/ComboBox.d.ts +3 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/{context-B8cn10po.js → context-C81gPYvC.js} +11 -11
- 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 +3 -0
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/{getScrollParent-Ru2U2LlM.js → getScrollParent-BhFcYrwL.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DDJu9WHU.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 +80 -78
- 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/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/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- 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/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- 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 +3 -0
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-C8doLzDd.cjs +1 -0
- package/scrollIntoView-Hwb_aaNf.js +87 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/spinner/index.cjs +1 -1
- 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/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +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/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/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-B8dB9sot.js} +6 -6
- package/{useButton-B1Fa-6qE.cjs → useButton-cpNi-fY4.cjs} +1 -1
- package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-CnxoJ4jF.cjs} +1 -1
- package/{useDateFormatter-C53Uxdli.js → useDateFormatter-EHm4auIg.js} +2 -2
- package/{useEvent-CjkbBniY.cjs → useEvent-DxBxMX2V.cjs} +1 -1
- package/{useEvent-Cyd2ZL0c.js → useEvent-IsD2Awnh.js} +1 -1
- package/useField-CXKYU74k.cjs +1 -0
- package/{useField-BPMAlIbU.js → useField-DvpGZkw_.js} +7 -7
- package/useFilter-BTgDWHVx.cjs +1 -0
- package/{useFilter-ChIbnALW.js → useFilter-CUq74PQ2.js} +1 -1
- package/{useFocusRing-BDGH3lpn.js → useFocusRing-XnR3cZjO.js} +1 -1
- package/useFocusable-C8uh8K4g.js +125 -0
- package/useFocusable-NUVSFcRC.cjs +1 -0
- package/{useFormValidation-R8hQIjWP.js → useFormValidation-BIGzfO9h.js} +5 -5
- package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-C-1mZUQe.js} +2 -2
- package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
- package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-CnBDT86u.js} +14 -14
- package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
- package/{useHover-qRAon4nS.js → useHover-DjIHtjGN.js} +17 -17
- package/{useLabels-BZjoZA1Z.js → useLabels-BDwkBYbE.js} +1 -1
- package/{useListState-Ca2-uZMO.cjs → useListState-Bx8u4IFG.cjs} +1 -1
- package/{useListState-DFQ9d-uE.js → useListState-CrZFZffI.js} +7 -7
- package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
- package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
- package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
- package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-0AjDbW9R.cjs +7 -0
- package/{usePress-CUJ3pMOw.js → usePress-CNjmDzap.js} +48 -48
- package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-0AGHxvy3.js} +1 -1
- package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-Cl3KV5E1.cjs} +1 -1
- package/{useTextField-CtUDWsUl.cjs → useTextField--czJtyNd.cjs} +1 -1
- package/{useTextField-5OZQPyOW.js → useTextField-Cw-33OP_.js} +11 -11
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/{utils-HNTsIwux.js → utils-DIMfEPAt.js} +10 -10
- package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -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/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/FieldError-BZw8UzBk.cjs +0 -1
- package/FieldError-CZikNDxX.js +0 -28
- package/FieldError-DqdfJ3fs.cjs +0 -1
- package/FieldError-Dv3bBEjh.js +0 -23
- package/FocusScope-NaPbvuuS.cjs +0 -1
- package/InfoBanner-BS-dAfzO.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/LinkButton-CuBilDML.js +0 -69
- package/LinkButton-CymMrcGL.cjs +0 -6
- package/ListBox-CDOsQChA.cjs +0 -1
- package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
- package/LiveAnnouncer-B6177m92.js +0 -51
- package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
- package/LocalizedStringFormatter-C0C54hjf.cjs +0 -1
- package/LocalizedStringFormatter-D-4Qyql0.js +0 -77
- package/NumberFormatter-DewVDY5w.cjs +0 -1
- package/NumberFormatter-DgOUVrge.js +0 -119
- 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/Select-CpHjd1tp.cjs +0 -1
- package/SelectionManager-C5NGBzvz.cjs +0 -1
- package/Separator-nPra6kD-.cjs +0 -1
- package/Table-D9vNc_y-.cjs +0 -16
- package/Tag-CVFkzg3s.cjs +0 -1
- package/Text-B_H68Tvq.js +0 -15
- 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/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/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/useField-B1RU0GKs.cjs +0 -1
- package/useFilter-CtIwF2qW.cjs +0 -1
- package/useFocusable-CaedRTpB.js +0 -74
- package/useFocusable-CuPQ7Cm5.cjs +0 -1
- package/useHasTabbableChild-DgphNvnk.cjs +0 -1
- package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
- package/useLabel-DDdAJ1JO.js +0 -23
- package/useLabel-m_S5xkHy.cjs +0 -1
- package/useLocalizedStringFormatter-D07YB2e1.js +0 -22
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BFa6cT9o.cjs +0 -7
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
import { jsxs as ae, jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { $ as hu } from "./
|
|
5
|
-
import { $ as fu } from "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { $ as
|
|
9
|
-
import { c as
|
|
10
|
-
import { o as
|
|
11
|
-
import {
|
|
12
|
-
import { b as
|
|
13
|
-
import { $ as
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import { $ as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { $ as ju } from "./
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { $ as
|
|
29
|
-
import { $ as Zu } from "./useLocalizedStringFormatter-D07YB2e1.js";
|
|
30
|
-
import { $ as Hu } from "./useTextField-5OZQPyOW.js";
|
|
1
|
+
import { jsxs as ae, jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import X, { useRef as E, useMemo as ee, useEffect as pe, useState as Q, useCallback as re, forwardRef as ru, createContext as he } from "react";
|
|
3
|
+
import { f as se, b as fe, e as ve, $ as su } from "./Button-DjBChs7s.js";
|
|
4
|
+
import { n as $u, c as Ce, a as bu, g as au, h as Cu, i as xu, b as mu, j as hu } from "./utils-DIMfEPAt.js";
|
|
5
|
+
import { $ as fu, F as xe } from "./FieldError-CAcjosk_.js";
|
|
6
|
+
import { $ as vu } from "./Form-CXcEMuBf.js";
|
|
7
|
+
import { a as Ae } from "./Group-B6EslsHZ.js";
|
|
8
|
+
import { $ as Be, a as Au } from "./Input-BTzwcf72.js";
|
|
9
|
+
import { c as Bu, d as Eu, e as Ee, f as Tu } from "./ListBox-GnVK_Pdq.js";
|
|
10
|
+
import { o as Du, h as Fu, i as yu, m as Su } from "./Dialog-D14MbJ7o.js";
|
|
11
|
+
import { $ as Te } from "./Text-BoXuUVVH.js";
|
|
12
|
+
import { b as Lu, c as gu } from "./Collection-Brgjpkne.js";
|
|
13
|
+
import { $ as ku } from "./filterDOMProps-D6KHYVBX.js";
|
|
14
|
+
import { a as Pu, g as Ku } from "./OverlayArrow-CDLXPTew.js";
|
|
15
|
+
import { $ as Ou } from "./useFilter-CUq74PQ2.js";
|
|
16
|
+
import { d as Iu, $ as Ru } from "./useFormValidation-BIGzfO9h.js";
|
|
17
|
+
import { e as Gu, f as De, h as Vu } from "./SelectionManager-B4ORduja.js";
|
|
18
|
+
import { $ as zu } from "./useSingleSelectListState-0AGHxvy3.js";
|
|
19
|
+
import { b as Mu } from "./useListState-CrZFZffI.js";
|
|
20
|
+
import { $ as wu } from "./useControlledState-u436Wbp1.js";
|
|
21
|
+
import { C as $e, e as ju, d as Nu } from "./useHover-DjIHtjGN.js";
|
|
22
|
+
import { b as Uu } from "./usePress-CNjmDzap.js";
|
|
23
|
+
import { $ as me } from "./useLabels-BDwkBYbE.js";
|
|
24
|
+
import { $ as qu } from "./useUpdateEffect-CCDx8D4X.js";
|
|
25
|
+
import { a as Wu } from "./Separator-Cu9fYKUM.js";
|
|
26
|
+
import { a as Xu } from "./ListKeyboardDelegate-DNI8GQtX.js";
|
|
27
|
+
import { b as Zu } from "./useLocalizedStringFormatter-BKoxGZf1.js";
|
|
28
|
+
import { $ as Hu } from "./useTextField-Cw-33OP_.js";
|
|
31
29
|
import { c as be } from "./clsx-OuTLNxxd.js";
|
|
32
|
-
import {
|
|
33
|
-
import { T as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { C as nn } from "./chevron-down-Cd1bkzXT.js";
|
|
30
|
+
import { a as Ju, L as Yu } from "./Label-BwJrdqEE.js";
|
|
31
|
+
import { T as _u } from "./Text-jWWg0B20.js";
|
|
32
|
+
import { b as Qu, L as en, a as un, c as nn } from "./ListBoxSection-C0BGnpB4.js";
|
|
33
|
+
import { C as on } from "./chevron-down-Cd1bkzXT.js";
|
|
37
34
|
import './assets/ComboBox.css';var Fe = {};
|
|
38
35
|
Fe = {
|
|
39
36
|
buttonLabel: "عرض المقترحات",
|
|
@@ -314,8 +311,8 @@ ze = {
|
|
|
314
311
|
listboxLabel: "Javaslatok",
|
|
315
312
|
selectedAnnouncement: (e) => `${e.optionText}, kijelölve`
|
|
316
313
|
};
|
|
317
|
-
var
|
|
318
|
-
|
|
314
|
+
var Me = {};
|
|
315
|
+
Me = {
|
|
319
316
|
buttonLabel: "Mostra suggerimenti",
|
|
320
317
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
321
318
|
one: () => `${u.number(e.optionCount)} opzione disponibile`,
|
|
@@ -334,8 +331,8 @@ we = {
|
|
|
334
331
|
listboxLabel: "Suggerimenti",
|
|
335
332
|
selectedAnnouncement: (e) => `${e.optionText}, selezionato`
|
|
336
333
|
};
|
|
337
|
-
var
|
|
338
|
-
|
|
334
|
+
var we = {};
|
|
335
|
+
we = {
|
|
339
336
|
buttonLabel: "候補を表示",
|
|
340
337
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
341
338
|
one: () => `${u.number(e.optionCount)} 個のオプション`,
|
|
@@ -354,8 +351,8 @@ je = {
|
|
|
354
351
|
listboxLabel: "候補",
|
|
355
352
|
selectedAnnouncement: (e) => `${e.optionText}、選択済み`
|
|
356
353
|
};
|
|
357
|
-
var
|
|
358
|
-
|
|
354
|
+
var je = {};
|
|
355
|
+
je = {
|
|
359
356
|
buttonLabel: "제안 사항 표시",
|
|
360
357
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
361
358
|
one: () => `${u.number(e.optionCount)}개 옵션`,
|
|
@@ -394,8 +391,8 @@ Ne = {
|
|
|
394
391
|
listboxLabel: "Pasiūlymai",
|
|
395
392
|
selectedAnnouncement: (e) => `${e.optionText}, pasirinkta`
|
|
396
393
|
};
|
|
397
|
-
var
|
|
398
|
-
|
|
394
|
+
var Ue = {};
|
|
395
|
+
Ue = {
|
|
399
396
|
buttonLabel: "Rādīt ieteikumus",
|
|
400
397
|
countAnnouncement: (e, u) => `Pieejamo opciju skaits: ${u.plural(e.optionCount, {
|
|
401
398
|
one: () => `${u.number(e.optionCount)} opcija`,
|
|
@@ -414,8 +411,8 @@ qe = {
|
|
|
414
411
|
listboxLabel: "Ieteikumi",
|
|
415
412
|
selectedAnnouncement: (e) => `${e.optionText}, atlasīta`
|
|
416
413
|
};
|
|
417
|
-
var
|
|
418
|
-
|
|
414
|
+
var qe = {};
|
|
415
|
+
qe = {
|
|
419
416
|
buttonLabel: "Vis forslag",
|
|
420
417
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
421
418
|
one: () => `${u.number(e.optionCount)} alternativ`,
|
|
@@ -730,12 +727,12 @@ iu = {
|
|
|
730
727
|
"he-IL": Ge,
|
|
731
728
|
"hr-HR": Ve,
|
|
732
729
|
"hu-HU": ze,
|
|
733
|
-
"it-IT":
|
|
734
|
-
"ja-JP":
|
|
735
|
-
"ko-KR":
|
|
730
|
+
"it-IT": Me,
|
|
731
|
+
"ja-JP": we,
|
|
732
|
+
"ko-KR": je,
|
|
736
733
|
"lt-LT": Ne,
|
|
737
|
-
"lv-LV":
|
|
738
|
-
"nb-NO":
|
|
734
|
+
"lv-LV": Ue,
|
|
735
|
+
"nb-NO": qe,
|
|
739
736
|
"nl-NL": We,
|
|
740
737
|
"pl-PL": Xe,
|
|
741
738
|
"pt-BR": Ze,
|
|
@@ -751,31 +748,31 @@ iu = {
|
|
|
751
748
|
"zh-CN": tu,
|
|
752
749
|
"zh-TW": lu
|
|
753
750
|
};
|
|
754
|
-
function
|
|
751
|
+
function tn(e) {
|
|
755
752
|
return e && e.__esModule ? e.default : e;
|
|
756
753
|
}
|
|
757
|
-
function
|
|
758
|
-
let { buttonRef: i, popoverRef: b, inputRef: t, listBoxRef: d, keyboardDelegate:
|
|
759
|
-
i = i ??
|
|
760
|
-
let
|
|
754
|
+
function ln(e, u) {
|
|
755
|
+
let { buttonRef: i, popoverRef: b, inputRef: t, listBoxRef: d, keyboardDelegate: A, layoutDelegate: a, shouldFocusWrap: x, isReadOnly: D, isDisabled: g } = e, m = E(null);
|
|
756
|
+
i = i ?? m;
|
|
757
|
+
let B = Zu(tn(iu), "@react-aria/combobox"), { menuTriggerProps: h, menuProps: S } = Du({
|
|
761
758
|
type: "listbox",
|
|
762
|
-
isDisabled:
|
|
759
|
+
isDisabled: g || D
|
|
763
760
|
}, u, i);
|
|
764
|
-
|
|
765
|
-
id:
|
|
761
|
+
Bu.set(u, {
|
|
762
|
+
id: S.id
|
|
766
763
|
});
|
|
767
|
-
let { collection:
|
|
768
|
-
collection:
|
|
769
|
-
disabledKeys:
|
|
764
|
+
let { collection: f } = u, { disabledKeys: L } = u.selectionManager, l = ee(() => A || new Xu({
|
|
765
|
+
collection: f,
|
|
766
|
+
disabledKeys: L,
|
|
770
767
|
ref: d,
|
|
771
768
|
layoutDelegate: a
|
|
772
769
|
}), [
|
|
773
|
-
|
|
770
|
+
A,
|
|
774
771
|
a,
|
|
775
|
-
|
|
776
|
-
|
|
772
|
+
f,
|
|
773
|
+
L,
|
|
777
774
|
d
|
|
778
|
-
]), { collectionProps:
|
|
775
|
+
]), { collectionProps: V } = Gu({
|
|
779
776
|
selectionManager: u.selectionManager,
|
|
780
777
|
keyboardDelegate: l,
|
|
781
778
|
disallowTypeAhead: !0,
|
|
@@ -784,7 +781,7 @@ function tn(e, u) {
|
|
|
784
781
|
ref: t,
|
|
785
782
|
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
786
783
|
isVirtualized: !0
|
|
787
|
-
}), ue =
|
|
784
|
+
}), ue = Uu(), ne = (n) => {
|
|
788
785
|
if (!n.nativeEvent.isComposing)
|
|
789
786
|
switch (n.key) {
|
|
790
787
|
case "Enter":
|
|
@@ -812,96 +809,96 @@ function tn(e, u) {
|
|
|
812
809
|
u.selectionManager.setFocusedKey(null);
|
|
813
810
|
break;
|
|
814
811
|
}
|
|
815
|
-
},
|
|
812
|
+
}, z = (n) => {
|
|
816
813
|
var c;
|
|
817
|
-
let p = (i == null ? void 0 : i.current) && i.current === n.relatedTarget,
|
|
818
|
-
p ||
|
|
814
|
+
let p = (i == null ? void 0 : i.current) && i.current === n.relatedTarget, O = (c = b.current) === null || c === void 0 ? void 0 : c.contains(n.relatedTarget);
|
|
815
|
+
p || O || (e.onBlur && e.onBlur(n), u.setFocused(!1));
|
|
819
816
|
}, N = (n) => {
|
|
820
817
|
u.isFocused || (e.onFocus && e.onFocus(n), u.setFocused(!0));
|
|
821
|
-
}, { isInvalid:
|
|
818
|
+
}, { isInvalid: U, validationErrors: r, validationDetails: q } = u.displayValidation, { labelProps: F, inputProps: y, descriptionProps: Z, errorMessageProps: oe } = Hu({
|
|
822
819
|
...e,
|
|
823
820
|
onChange: u.setInputValue,
|
|
824
|
-
onKeyDown:
|
|
825
|
-
onBlur:
|
|
821
|
+
onKeyDown: D ? e.onKeyDown : $u(u.isOpen && V.onKeyDown, ne, e.onKeyDown),
|
|
822
|
+
onBlur: z,
|
|
826
823
|
value: u.inputValue,
|
|
827
824
|
onFocus: N,
|
|
828
825
|
autoComplete: "off",
|
|
829
826
|
validate: void 0,
|
|
830
827
|
[Iu]: u
|
|
831
|
-
}, t),
|
|
828
|
+
}, t), M = (n) => {
|
|
832
829
|
if (n.pointerType === "touch") {
|
|
833
830
|
var c;
|
|
834
831
|
(c = t.current) === null || c === void 0 || c.focus(), u.toggle(null, "manual");
|
|
835
832
|
}
|
|
836
|
-
},
|
|
833
|
+
}, H = (n) => {
|
|
837
834
|
if (n.pointerType !== "touch") {
|
|
838
835
|
var c;
|
|
839
836
|
(c = t.current) === null || c === void 0 || c.focus(), u.toggle(n.pointerType === "keyboard" || n.pointerType === "virtual" ? "first" : null, "manual");
|
|
840
837
|
}
|
|
841
|
-
},
|
|
842
|
-
id:
|
|
843
|
-
"aria-label":
|
|
844
|
-
"aria-labelledby": e["aria-labelledby"] ||
|
|
845
|
-
}),
|
|
846
|
-
id:
|
|
847
|
-
"aria-label":
|
|
848
|
-
"aria-labelledby": e["aria-labelledby"] ||
|
|
849
|
-
}),
|
|
850
|
-
if (
|
|
851
|
-
if (n.timeStamp -
|
|
838
|
+
}, s = me({
|
|
839
|
+
id: h.id,
|
|
840
|
+
"aria-label": B.format("buttonLabel"),
|
|
841
|
+
"aria-labelledby": e["aria-labelledby"] || F.id
|
|
842
|
+
}), k = me({
|
|
843
|
+
id: S.id,
|
|
844
|
+
"aria-label": B.format("listboxLabel"),
|
|
845
|
+
"aria-labelledby": e["aria-labelledby"] || F.id
|
|
846
|
+
}), I = E(0), w = (n) => {
|
|
847
|
+
if (g || D) return;
|
|
848
|
+
if (n.timeStamp - I.current < 500) {
|
|
852
849
|
var c;
|
|
853
850
|
n.preventDefault(), (c = t.current) === null || c === void 0 || c.focus();
|
|
854
851
|
return;
|
|
855
852
|
}
|
|
856
|
-
let p = n.target.getBoundingClientRect(),
|
|
857
|
-
if (
|
|
853
|
+
let p = n.target.getBoundingClientRect(), O = n.changedTouches[0], ie = Math.ceil(p.left + 0.5 * p.width), de = Math.ceil(p.top + 0.5 * p.height);
|
|
854
|
+
if (O.clientX === ie && O.clientY === de) {
|
|
858
855
|
var ce;
|
|
859
|
-
n.preventDefault(), (ce = t.current) === null || ce === void 0 || ce.focus(), u.toggle(null, "manual"),
|
|
856
|
+
n.preventDefault(), (ce = t.current) === null || ce === void 0 || ce.focus(), u.toggle(null, "manual"), I.current = n.timeStamp;
|
|
860
857
|
}
|
|
861
|
-
},
|
|
862
|
-
var
|
|
863
|
-
let
|
|
858
|
+
}, T = u.selectionManager.focusedKey != null && u.isOpen ? u.collection.getItem(u.selectionManager.focusedKey) : void 0;
|
|
859
|
+
var P;
|
|
860
|
+
let R = (P = T == null ? void 0 : T.parentKey) !== null && P !== void 0 ? P : null;
|
|
864
861
|
var j;
|
|
865
|
-
let
|
|
862
|
+
let G = (j = u.selectionManager.focusedKey) !== null && j !== void 0 ? j : null, J = E(R), Y = E(G);
|
|
866
863
|
pe(() => {
|
|
867
|
-
if (
|
|
868
|
-
let c = u.selectionManager.isSelected(
|
|
864
|
+
if ($e() && T != null && G != null && G !== Y.current) {
|
|
865
|
+
let c = u.selectionManager.isSelected(G), p = R != null ? u.collection.getItem(R) : null, O = (p == null ? void 0 : p["aria-label"]) || (typeof (p == null ? void 0 : p.rendered) == "string" ? p.rendered : "") || "";
|
|
869
866
|
var n;
|
|
870
|
-
let ie =
|
|
871
|
-
isGroupChange: (n = p &&
|
|
872
|
-
groupTitle:
|
|
867
|
+
let ie = B.format("focusAnnouncement", {
|
|
868
|
+
isGroupChange: (n = p && R !== J.current) !== null && n !== void 0 ? n : !1,
|
|
869
|
+
groupTitle: O,
|
|
873
870
|
groupCount: p ? [
|
|
874
871
|
...De(p, u.collection)
|
|
875
872
|
].length : 0,
|
|
876
|
-
optionText:
|
|
873
|
+
optionText: T["aria-label"] || T.textValue || "",
|
|
877
874
|
isSelected: c
|
|
878
875
|
});
|
|
879
|
-
|
|
876
|
+
se(ie);
|
|
880
877
|
}
|
|
881
|
-
|
|
878
|
+
J.current = R, Y.current = G;
|
|
882
879
|
});
|
|
883
|
-
let
|
|
880
|
+
let K = Wu(u.collection), _ = E(K), te = E(u.isOpen);
|
|
884
881
|
pe(() => {
|
|
885
|
-
let n = u.isOpen !== te.current && (u.selectionManager.focusedKey == null ||
|
|
886
|
-
if (u.isOpen && (n ||
|
|
887
|
-
let c =
|
|
888
|
-
optionCount:
|
|
882
|
+
let n = u.isOpen !== te.current && (u.selectionManager.focusedKey == null || $e());
|
|
883
|
+
if (u.isOpen && (n || K !== _.current)) {
|
|
884
|
+
let c = B.format("countAnnouncement", {
|
|
885
|
+
optionCount: K
|
|
889
886
|
});
|
|
890
|
-
|
|
887
|
+
se(c);
|
|
891
888
|
}
|
|
892
|
-
|
|
889
|
+
_.current = K, te.current = u.isOpen;
|
|
893
890
|
});
|
|
894
|
-
let le =
|
|
891
|
+
let le = E(u.selectedKey);
|
|
895
892
|
return pe(() => {
|
|
896
|
-
if (
|
|
897
|
-
let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", c =
|
|
893
|
+
if ($e() && u.isFocused && u.selectedItem && u.selectedKey !== le.current) {
|
|
894
|
+
let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", c = B.format("selectedAnnouncement", {
|
|
898
895
|
optionText: n
|
|
899
896
|
});
|
|
900
|
-
|
|
897
|
+
se(c);
|
|
901
898
|
}
|
|
902
899
|
le.current = u.selectedKey;
|
|
903
900
|
}), pe(() => {
|
|
904
|
-
if (u.isOpen) return
|
|
901
|
+
if (u.isOpen) return Fu([
|
|
905
902
|
t.current,
|
|
906
903
|
b.current
|
|
907
904
|
].filter((n) => n != null));
|
|
@@ -909,192 +906,192 @@ function tn(e, u) {
|
|
|
909
906
|
u.isOpen,
|
|
910
907
|
t,
|
|
911
908
|
b
|
|
912
|
-
]),
|
|
913
|
-
!
|
|
909
|
+
]), qu(() => {
|
|
910
|
+
!T && t.current && ju(Nu(t.current)) === t.current && Vu(t.current, null);
|
|
914
911
|
}, [
|
|
915
|
-
|
|
912
|
+
T
|
|
916
913
|
]), {
|
|
917
|
-
labelProps:
|
|
914
|
+
labelProps: F,
|
|
918
915
|
buttonProps: {
|
|
919
|
-
...
|
|
920
|
-
...
|
|
916
|
+
...h,
|
|
917
|
+
...s,
|
|
921
918
|
excludeFromTabOrder: !0,
|
|
922
919
|
preventFocusOnPress: !0,
|
|
923
|
-
onPress:
|
|
924
|
-
onPressStart:
|
|
925
|
-
isDisabled:
|
|
920
|
+
onPress: M,
|
|
921
|
+
onPressStart: H,
|
|
922
|
+
isDisabled: g || D
|
|
926
923
|
},
|
|
927
|
-
inputProps: Ce(
|
|
924
|
+
inputProps: Ce(y, {
|
|
928
925
|
role: "combobox",
|
|
929
|
-
"aria-expanded":
|
|
930
|
-
"aria-controls": u.isOpen ?
|
|
926
|
+
"aria-expanded": h["aria-expanded"],
|
|
927
|
+
"aria-controls": u.isOpen ? S.id : void 0,
|
|
931
928
|
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
932
929
|
"aria-autocomplete": "list",
|
|
933
|
-
"aria-activedescendant":
|
|
930
|
+
"aria-activedescendant": T ? Eu(u, T.key) : void 0,
|
|
934
931
|
onTouchEnd: w,
|
|
935
932
|
// This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
|
|
936
933
|
autoCorrect: "off",
|
|
937
934
|
// This disable's the macOS Safari spell check auto corrections.
|
|
938
935
|
spellCheck: "false"
|
|
939
936
|
}),
|
|
940
|
-
listBoxProps: Ce(
|
|
937
|
+
listBoxProps: Ce(S, k, {
|
|
941
938
|
autoFocus: u.focusStrategy || !0,
|
|
942
939
|
shouldUseVirtualFocus: !0,
|
|
943
940
|
shouldSelectOnPressUp: !0,
|
|
944
941
|
shouldFocusOnHover: !0,
|
|
945
942
|
linkBehavior: "selection"
|
|
946
943
|
}),
|
|
947
|
-
descriptionProps:
|
|
944
|
+
descriptionProps: Z,
|
|
948
945
|
errorMessageProps: oe,
|
|
949
|
-
isInvalid:
|
|
950
|
-
validationErrors:
|
|
951
|
-
validationDetails:
|
|
946
|
+
isInvalid: U,
|
|
947
|
+
validationErrors: r,
|
|
948
|
+
validationDetails: q
|
|
952
949
|
};
|
|
953
950
|
}
|
|
954
|
-
function
|
|
951
|
+
function cn(e) {
|
|
955
952
|
var u;
|
|
956
|
-
let { defaultFilter: i, menuTrigger: b = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur:
|
|
957
|
-
e.onSelectionChange && e.onSelectionChange(o), o === l && (
|
|
953
|
+
let { defaultFilter: i, menuTrigger: b = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur: A = !0 } = e, [a, x] = Q(!1), [D, g] = Q(!1), [m, B] = Q(null), h = (o) => {
|
|
954
|
+
e.onSelectionChange && e.onSelectionChange(o), o === l && (G(), P());
|
|
958
955
|
};
|
|
959
|
-
var
|
|
960
|
-
let { collection:
|
|
956
|
+
var S;
|
|
957
|
+
let { collection: f, selectionManager: L, selectedKey: l, setSelectedKey: V, selectedItem: ue, disabledKeys: ne } = zu({
|
|
961
958
|
...e,
|
|
962
|
-
onSelectionChange:
|
|
963
|
-
items: (
|
|
964
|
-
}),
|
|
965
|
-
if (
|
|
966
|
-
var N,
|
|
967
|
-
l == null ?
|
|
959
|
+
onSelectionChange: h,
|
|
960
|
+
items: (S = e.items) !== null && S !== void 0 ? S : e.defaultItems
|
|
961
|
+
}), z = e.defaultInputValue;
|
|
962
|
+
if (z == null) {
|
|
963
|
+
var N, U;
|
|
964
|
+
l == null ? z = "" : z = (U = (N = f.getItem(l)) === null || N === void 0 ? void 0 : N.textValue) !== null && U !== void 0 ? U : "";
|
|
968
965
|
}
|
|
969
|
-
let [
|
|
966
|
+
let [r, q] = wu(e.inputValue, z, e.onInputChange), F = f, y = ee(() => (
|
|
970
967
|
// No default filter if items are controlled.
|
|
971
|
-
e.items != null || !i ?
|
|
968
|
+
e.items != null || !i ? f : pn(f, r, i)
|
|
972
969
|
), [
|
|
973
|
-
|
|
974
|
-
|
|
970
|
+
f,
|
|
971
|
+
r,
|
|
975
972
|
i,
|
|
976
973
|
e.items
|
|
977
|
-
]), [
|
|
974
|
+
]), [Z, oe] = Q(y), M = E("focus"), s = Pu({
|
|
978
975
|
...e,
|
|
979
976
|
onOpenChange: (o) => {
|
|
980
|
-
e.onOpenChange && e.onOpenChange(o, o ?
|
|
977
|
+
e.onOpenChange && e.onOpenChange(o, o ? M.current : void 0), L.setFocused(o), o || L.setFocusedKey(null);
|
|
981
978
|
},
|
|
982
979
|
isOpen: void 0,
|
|
983
980
|
defaultOpen: void 0
|
|
984
|
-
}),
|
|
985
|
-
let C =
|
|
986
|
-
(t ||
|
|
987
|
-
},
|
|
988
|
-
let C =
|
|
989
|
-
!(t ||
|
|
990
|
-
}, w =
|
|
991
|
-
oe(a ?
|
|
981
|
+
}), k = (o = null, $) => {
|
|
982
|
+
let C = $ === "manual" || $ === "focus" && b === "focus";
|
|
983
|
+
(t || y.size > 0 || C && F.size > 0 || e.items) && (C && !s.isOpen && e.items === void 0 && x(!0), M.current = $, B(o), s.open());
|
|
984
|
+
}, I = (o = null, $) => {
|
|
985
|
+
let C = $ === "manual" || $ === "focus" && b === "focus";
|
|
986
|
+
!(t || y.size > 0 || C && F.size > 0 || e.items) && !s.isOpen || (C && !s.isOpen && e.items === void 0 && x(!0), s.isOpen || (M.current = $), T(o));
|
|
987
|
+
}, w = re(() => {
|
|
988
|
+
oe(a ? F : y);
|
|
992
989
|
}, [
|
|
993
990
|
a,
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
]),
|
|
997
|
-
|
|
991
|
+
F,
|
|
992
|
+
y
|
|
993
|
+
]), T = re((o = null) => {
|
|
994
|
+
s.isOpen && w(), B(o), s.toggle();
|
|
998
995
|
}, [
|
|
999
|
-
|
|
996
|
+
s,
|
|
1000
997
|
w
|
|
1001
|
-
]),
|
|
1002
|
-
|
|
998
|
+
]), P = re(() => {
|
|
999
|
+
s.isOpen && (w(), s.close());
|
|
1003
1000
|
}, [
|
|
1004
|
-
|
|
1001
|
+
s,
|
|
1005
1002
|
w
|
|
1006
|
-
]), [
|
|
1007
|
-
var o,
|
|
1008
|
-
let C = l != null && (
|
|
1009
|
-
j(C),
|
|
1003
|
+
]), [R, j] = Q(r), G = () => {
|
|
1004
|
+
var o, $;
|
|
1005
|
+
let C = l != null && ($ = (o = f.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && $ !== void 0 ? $ : "";
|
|
1006
|
+
j(C), q(C);
|
|
1010
1007
|
};
|
|
1011
|
-
var
|
|
1012
|
-
let
|
|
1013
|
-
var
|
|
1014
|
-
let te =
|
|
1008
|
+
var J, Y;
|
|
1009
|
+
let K = E((Y = (J = e.selectedKey) !== null && J !== void 0 ? J : e.defaultSelectedKey) !== null && Y !== void 0 ? Y : null);
|
|
1010
|
+
var _;
|
|
1011
|
+
let te = E(l != null && (_ = (u = f.getItem(l)) === null || u === void 0 ? void 0 : u.textValue) !== null && _ !== void 0 ? _ : "");
|
|
1015
1012
|
pe(() => {
|
|
1016
1013
|
var o;
|
|
1017
|
-
|
|
1018
|
-
var
|
|
1019
|
-
let C = l != null && (
|
|
1020
|
-
!
|
|
1014
|
+
D && (y.size > 0 || t) && !s.isOpen && r !== R && b !== "manual" && k(null, "input"), !a && !t && s.isOpen && y.size === 0 && P(), l != null && l !== K.current && P(), r !== R && (L.setFocusedKey(null), x(!1), r === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && V(null)), l !== K.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? G() : R !== r && j(r);
|
|
1015
|
+
var $;
|
|
1016
|
+
let C = l != null && ($ = (o = f.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && $ !== void 0 ? $ : "";
|
|
1017
|
+
!D && l != null && e.inputValue === void 0 && l === K.current && te.current !== C && (j(C), q(C)), K.current = l, te.current = C;
|
|
1021
1018
|
});
|
|
1022
1019
|
let le = Ru({
|
|
1023
1020
|
...e,
|
|
1024
1021
|
value: ee(() => ({
|
|
1025
|
-
inputValue:
|
|
1022
|
+
inputValue: r,
|
|
1026
1023
|
selectedKey: l
|
|
1027
1024
|
}), [
|
|
1028
|
-
|
|
1025
|
+
r,
|
|
1029
1026
|
l
|
|
1030
1027
|
])
|
|
1031
1028
|
}), n = () => {
|
|
1032
1029
|
d && l == null ? c() : p();
|
|
1033
1030
|
}, c = () => {
|
|
1034
|
-
|
|
1031
|
+
K.current = null, V(null), P();
|
|
1035
1032
|
}, p = () => {
|
|
1036
1033
|
if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
|
|
1037
|
-
var o,
|
|
1034
|
+
var o, $;
|
|
1038
1035
|
(o = e.onSelectionChange) === null || o === void 0 || o.call(e, l);
|
|
1039
1036
|
var C;
|
|
1040
|
-
let du = l != null && (C = (
|
|
1041
|
-
j(du),
|
|
1037
|
+
let du = l != null && (C = ($ = f.getItem(l)) === null || $ === void 0 ? void 0 : $.textValue) !== null && C !== void 0 ? C : "";
|
|
1038
|
+
j(du), P();
|
|
1042
1039
|
} else
|
|
1043
|
-
|
|
1040
|
+
G(), P();
|
|
1044
1041
|
};
|
|
1045
|
-
const
|
|
1042
|
+
const O = () => {
|
|
1046
1043
|
if (d) {
|
|
1047
|
-
var o,
|
|
1048
|
-
const C = l != null && (
|
|
1049
|
-
|
|
1044
|
+
var o, $;
|
|
1045
|
+
const C = l != null && ($ = (o = f.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && $ !== void 0 ? $ : "";
|
|
1046
|
+
r === C ? p() : c();
|
|
1050
1047
|
} else
|
|
1051
1048
|
p();
|
|
1052
1049
|
};
|
|
1053
1050
|
let ie = () => {
|
|
1054
|
-
|
|
1055
|
-
}, de =
|
|
1056
|
-
o ? (de.current =
|
|
1057
|
-
}, pu = ee(() =>
|
|
1058
|
-
|
|
1059
|
-
D,
|
|
1051
|
+
s.isOpen && L.focusedKey != null ? l === L.focusedKey ? p() : V(L.focusedKey) : O();
|
|
1052
|
+
}, de = E(r), ce = (o) => {
|
|
1053
|
+
o ? (de.current = r, b === "focus" && !e.isReadOnly && k(null, "focus")) : (A && O(), r !== de.current && le.commitValidation()), g(o);
|
|
1054
|
+
}, pu = ee(() => s.isOpen ? a ? F : y : Z, [
|
|
1055
|
+
s.isOpen,
|
|
1060
1056
|
F,
|
|
1057
|
+
y,
|
|
1061
1058
|
a,
|
|
1062
|
-
|
|
1059
|
+
Z
|
|
1063
1060
|
]);
|
|
1064
1061
|
return {
|
|
1065
1062
|
...le,
|
|
1066
|
-
...
|
|
1067
|
-
focusStrategy:
|
|
1068
|
-
toggle:
|
|
1069
|
-
open:
|
|
1070
|
-
close:
|
|
1071
|
-
selectionManager:
|
|
1063
|
+
...s,
|
|
1064
|
+
focusStrategy: m,
|
|
1065
|
+
toggle: I,
|
|
1066
|
+
open: k,
|
|
1067
|
+
close: O,
|
|
1068
|
+
selectionManager: L,
|
|
1072
1069
|
selectedKey: l,
|
|
1073
|
-
setSelectedKey:
|
|
1070
|
+
setSelectedKey: V,
|
|
1074
1071
|
disabledKeys: ne,
|
|
1075
|
-
isFocused:
|
|
1072
|
+
isFocused: D,
|
|
1076
1073
|
setFocused: ce,
|
|
1077
1074
|
selectedItem: ue,
|
|
1078
1075
|
collection: pu,
|
|
1079
|
-
inputValue:
|
|
1080
|
-
setInputValue:
|
|
1076
|
+
inputValue: r,
|
|
1077
|
+
setInputValue: q,
|
|
1081
1078
|
commit: ie,
|
|
1082
1079
|
revert: n
|
|
1083
1080
|
};
|
|
1084
1081
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return new
|
|
1082
|
+
function pn(e, u, i) {
|
|
1083
|
+
return new Mu(cu(e, e, u, i));
|
|
1087
1084
|
}
|
|
1088
1085
|
function cu(e, u, i, b) {
|
|
1089
1086
|
let t = [];
|
|
1090
1087
|
for (let d of u)
|
|
1091
1088
|
if (d.type === "section" && d.hasChildNodes) {
|
|
1092
|
-
let
|
|
1089
|
+
let A = cu(e, De(d, e), i, b);
|
|
1093
1090
|
[
|
|
1094
|
-
...
|
|
1091
|
+
...A
|
|
1095
1092
|
].some((a) => a.type === "item") && t.push({
|
|
1096
1093
|
...d,
|
|
1097
|
-
childNodes:
|
|
1094
|
+
childNodes: A
|
|
1098
1095
|
});
|
|
1099
1096
|
} else d.type === "item" && b(d.textValue, i) ? t.push({
|
|
1100
1097
|
...d
|
|
@@ -1103,11 +1100,11 @@ function cu(e, u, i, b) {
|
|
|
1103
1100
|
});
|
|
1104
1101
|
return t;
|
|
1105
1102
|
}
|
|
1106
|
-
const
|
|
1107
|
-
[u, i] =
|
|
1108
|
-
let { children: b, isDisabled: t = !1, isInvalid: d = !1, isRequired:
|
|
1103
|
+
const dn = /* @__PURE__ */ he(null), rn = /* @__PURE__ */ he(null), sn = /* @__PURE__ */ ru(function(u, i) {
|
|
1104
|
+
[u, i] = bu(u, i, dn);
|
|
1105
|
+
let { children: b, isDisabled: t = !1, isInvalid: d = !1, isRequired: A = !1 } = u, a = ee(() => {
|
|
1109
1106
|
var x;
|
|
1110
|
-
return /* @__PURE__ */
|
|
1107
|
+
return /* @__PURE__ */ X.createElement(Ee.Provider, {
|
|
1111
1108
|
value: {
|
|
1112
1109
|
items: (x = u.items) !== null && x !== void 0 ? x : u.defaultItems
|
|
1113
1110
|
}
|
|
@@ -1115,233 +1112,240 @@ const pn = /* @__PURE__ */ Te(null), dn = /* @__PURE__ */ Te(null), $n = /* @__P
|
|
|
1115
1112
|
isOpen: !1,
|
|
1116
1113
|
isDisabled: t,
|
|
1117
1114
|
isInvalid: d,
|
|
1118
|
-
isRequired:
|
|
1115
|
+
isRequired: A,
|
|
1119
1116
|
defaultChildren: null
|
|
1120
1117
|
}) : b);
|
|
1121
1118
|
}, [
|
|
1122
1119
|
b,
|
|
1123
1120
|
t,
|
|
1124
1121
|
d,
|
|
1125
|
-
|
|
1122
|
+
A,
|
|
1126
1123
|
u.items,
|
|
1127
1124
|
u.defaultItems
|
|
1128
1125
|
]);
|
|
1129
|
-
return /* @__PURE__ */
|
|
1126
|
+
return /* @__PURE__ */ X.createElement(Lu, {
|
|
1130
1127
|
content: a
|
|
1131
|
-
}, (x) => /* @__PURE__ */
|
|
1128
|
+
}, (x) => /* @__PURE__ */ X.createElement(bn, {
|
|
1132
1129
|
props: u,
|
|
1133
1130
|
collection: x,
|
|
1134
1131
|
comboBoxRef: i
|
|
1135
1132
|
}));
|
|
1136
|
-
}),
|
|
1137
|
-
Ae,
|
|
1138
|
-
he,
|
|
1139
|
-
ve,
|
|
1133
|
+
}), $n = [
|
|
1140
1134
|
fe,
|
|
1141
|
-
|
|
1135
|
+
ve,
|
|
1136
|
+
Be,
|
|
1137
|
+
Ae,
|
|
1138
|
+
Te
|
|
1142
1139
|
];
|
|
1143
|
-
function
|
|
1140
|
+
function bn({ props: e, collection: u, comboBoxRef: i }) {
|
|
1144
1141
|
let { name: b, formValue: t = "key", allowsCustomValue: d } = e;
|
|
1145
1142
|
d && (t = "text");
|
|
1146
|
-
let { validationBehavior:
|
|
1143
|
+
let { validationBehavior: A } = au(vu) || {};
|
|
1147
1144
|
var a, x;
|
|
1148
|
-
let
|
|
1145
|
+
let D = (x = (a = e.validationBehavior) !== null && a !== void 0 ? a : A) !== null && x !== void 0 ? x : "native", { contains: g } = Ou({
|
|
1149
1146
|
sensitivity: "base"
|
|
1150
|
-
}),
|
|
1151
|
-
defaultFilter: e.defaultFilter ||
|
|
1147
|
+
}), m = cn({
|
|
1148
|
+
defaultFilter: e.defaultFilter || g,
|
|
1152
1149
|
...e,
|
|
1153
1150
|
// If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
|
|
1154
1151
|
items: e.items,
|
|
1155
1152
|
children: void 0,
|
|
1156
1153
|
collection: u,
|
|
1157
|
-
validationBehavior:
|
|
1158
|
-
}),
|
|
1159
|
-
...
|
|
1154
|
+
validationBehavior: D
|
|
1155
|
+
}), B = E(null), h = E(null), S = E(null), f = E(null), [L, l] = Cu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: V, inputProps: ue, listBoxProps: ne, labelProps: z, descriptionProps: N, errorMessageProps: U, ...r } = ln({
|
|
1156
|
+
...xu(e),
|
|
1160
1157
|
label: l,
|
|
1161
|
-
inputRef:
|
|
1162
|
-
buttonRef:
|
|
1163
|
-
listBoxRef:
|
|
1164
|
-
popoverRef:
|
|
1158
|
+
inputRef: h,
|
|
1159
|
+
buttonRef: B,
|
|
1160
|
+
listBoxRef: S,
|
|
1161
|
+
popoverRef: f,
|
|
1165
1162
|
name: t === "text" ? b : void 0,
|
|
1166
|
-
validationBehavior:
|
|
1167
|
-
},
|
|
1168
|
-
if (
|
|
1169
|
-
var
|
|
1170
|
-
let
|
|
1171
|
-
|
|
1163
|
+
validationBehavior: D
|
|
1164
|
+
}, m), [q, F] = Q(null), y = re(() => {
|
|
1165
|
+
if (h.current) {
|
|
1166
|
+
var s;
|
|
1167
|
+
let k = (s = B.current) === null || s === void 0 ? void 0 : s.getBoundingClientRect(), I = h.current.getBoundingClientRect(), w = k ? Math.min(k.left, I.left) : I.left, T = k ? Math.max(k.right, I.right) : I.right;
|
|
1168
|
+
F(T - w + "px");
|
|
1172
1169
|
}
|
|
1173
1170
|
}, [
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1171
|
+
B,
|
|
1172
|
+
h,
|
|
1173
|
+
F
|
|
1177
1174
|
]);
|
|
1178
|
-
|
|
1179
|
-
ref:
|
|
1180
|
-
onResize:
|
|
1175
|
+
Ku({
|
|
1176
|
+
ref: h,
|
|
1177
|
+
onResize: y
|
|
1181
1178
|
});
|
|
1182
|
-
let
|
|
1183
|
-
isOpen:
|
|
1179
|
+
let Z = ee(() => ({
|
|
1180
|
+
isOpen: m.isOpen,
|
|
1184
1181
|
isDisabled: e.isDisabled || !1,
|
|
1185
|
-
isInvalid:
|
|
1182
|
+
isInvalid: r.isInvalid || !1,
|
|
1186
1183
|
isRequired: e.isRequired || !1
|
|
1187
1184
|
}), [
|
|
1188
|
-
|
|
1185
|
+
m.isOpen,
|
|
1189
1186
|
e.isDisabled,
|
|
1190
|
-
|
|
1187
|
+
r.isInvalid,
|
|
1191
1188
|
e.isRequired
|
|
1192
|
-
]), oe =
|
|
1189
|
+
]), oe = mu({
|
|
1193
1190
|
...e,
|
|
1194
|
-
values:
|
|
1191
|
+
values: Z,
|
|
1195
1192
|
defaultClassName: "react-aria-ComboBox"
|
|
1196
|
-
}),
|
|
1197
|
-
delete
|
|
1198
|
-
var
|
|
1199
|
-
return /* @__PURE__ */
|
|
1193
|
+
}), M = ku(e);
|
|
1194
|
+
delete M.id;
|
|
1195
|
+
var H;
|
|
1196
|
+
return /* @__PURE__ */ X.createElement(hu, {
|
|
1200
1197
|
values: [
|
|
1201
1198
|
[
|
|
1202
|
-
|
|
1203
|
-
|
|
1199
|
+
rn,
|
|
1200
|
+
m
|
|
1204
1201
|
],
|
|
1205
1202
|
[
|
|
1206
|
-
|
|
1203
|
+
fe,
|
|
1207
1204
|
{
|
|
1208
|
-
...
|
|
1209
|
-
ref:
|
|
1205
|
+
...z,
|
|
1206
|
+
ref: L
|
|
1210
1207
|
}
|
|
1211
1208
|
],
|
|
1212
1209
|
[
|
|
1213
|
-
|
|
1210
|
+
ve,
|
|
1214
1211
|
{
|
|
1215
|
-
...
|
|
1216
|
-
ref:
|
|
1217
|
-
isPressed:
|
|
1212
|
+
...V,
|
|
1213
|
+
ref: B,
|
|
1214
|
+
isPressed: m.isOpen
|
|
1218
1215
|
}
|
|
1219
1216
|
],
|
|
1220
1217
|
[
|
|
1221
|
-
|
|
1218
|
+
Be,
|
|
1222
1219
|
{
|
|
1223
1220
|
...ue,
|
|
1224
|
-
ref:
|
|
1221
|
+
ref: h
|
|
1225
1222
|
}
|
|
1226
1223
|
],
|
|
1227
1224
|
[
|
|
1228
|
-
|
|
1229
|
-
|
|
1225
|
+
yu,
|
|
1226
|
+
m
|
|
1230
1227
|
],
|
|
1231
1228
|
[
|
|
1232
|
-
|
|
1229
|
+
Su,
|
|
1233
1230
|
{
|
|
1234
|
-
ref:
|
|
1235
|
-
triggerRef:
|
|
1236
|
-
scrollRef:
|
|
1231
|
+
ref: f,
|
|
1232
|
+
triggerRef: h,
|
|
1233
|
+
scrollRef: S,
|
|
1237
1234
|
placement: "bottom start",
|
|
1238
1235
|
isNonModal: !0,
|
|
1239
1236
|
trigger: "ComboBox",
|
|
1240
1237
|
style: {
|
|
1241
|
-
"--trigger-width":
|
|
1238
|
+
"--trigger-width": q
|
|
1242
1239
|
},
|
|
1243
|
-
clearContexts:
|
|
1240
|
+
clearContexts: $n
|
|
1244
1241
|
}
|
|
1245
1242
|
],
|
|
1246
1243
|
[
|
|
1247
|
-
|
|
1244
|
+
Ee,
|
|
1248
1245
|
{
|
|
1249
1246
|
...ne,
|
|
1250
|
-
ref:
|
|
1247
|
+
ref: S
|
|
1251
1248
|
}
|
|
1252
1249
|
],
|
|
1253
1250
|
[
|
|
1254
|
-
|
|
1255
|
-
|
|
1251
|
+
Tu,
|
|
1252
|
+
m
|
|
1256
1253
|
],
|
|
1257
1254
|
[
|
|
1258
|
-
|
|
1255
|
+
Te,
|
|
1259
1256
|
{
|
|
1260
1257
|
slots: {
|
|
1261
1258
|
description: N,
|
|
1262
|
-
errorMessage:
|
|
1259
|
+
errorMessage: U
|
|
1263
1260
|
}
|
|
1264
1261
|
}
|
|
1265
1262
|
],
|
|
1266
1263
|
[
|
|
1267
|
-
|
|
1264
|
+
Ae,
|
|
1268
1265
|
{
|
|
1269
|
-
isInvalid:
|
|
1266
|
+
isInvalid: r.isInvalid,
|
|
1270
1267
|
isDisabled: e.isDisabled || !1
|
|
1271
1268
|
}
|
|
1272
1269
|
],
|
|
1273
1270
|
[
|
|
1274
|
-
|
|
1275
|
-
|
|
1271
|
+
fu,
|
|
1272
|
+
r
|
|
1276
1273
|
]
|
|
1277
1274
|
]
|
|
1278
|
-
}, /* @__PURE__ */
|
|
1279
|
-
...
|
|
1275
|
+
}, /* @__PURE__ */ X.createElement("div", {
|
|
1276
|
+
...M,
|
|
1280
1277
|
...oe,
|
|
1281
1278
|
ref: i,
|
|
1282
1279
|
slot: e.slot || void 0,
|
|
1283
|
-
"data-focused":
|
|
1284
|
-
"data-open":
|
|
1280
|
+
"data-focused": m.isFocused || void 0,
|
|
1281
|
+
"data-open": m.isOpen || void 0,
|
|
1285
1282
|
"data-disabled": e.isDisabled || void 0,
|
|
1286
|
-
"data-invalid":
|
|
1283
|
+
"data-invalid": r.isInvalid || void 0,
|
|
1287
1284
|
"data-required": e.isRequired || void 0
|
|
1288
|
-
}), b && t === "key" && /* @__PURE__ */
|
|
1285
|
+
}), b && t === "key" && /* @__PURE__ */ X.createElement("input", {
|
|
1289
1286
|
type: "hidden",
|
|
1290
1287
|
name: b,
|
|
1291
|
-
value: (
|
|
1288
|
+
value: (H = m.selectedKey) !== null && H !== void 0 ? H : ""
|
|
1292
1289
|
}));
|
|
1293
1290
|
}
|
|
1294
|
-
const
|
|
1295
|
-
combobox:
|
|
1296
|
-
inputField:
|
|
1297
|
-
medium:
|
|
1298
|
-
wrap:
|
|
1299
|
-
button:
|
|
1300
|
-
icon:
|
|
1291
|
+
const an = "_combobox_zftmk_4", Cn = "_inputField_zftmk_9", xn = "_medium_zftmk_27", mn = "_wrap_zftmk_67", hn = "_button_zftmk_73", fn = "_icon_zftmk_105", W = {
|
|
1292
|
+
combobox: an,
|
|
1293
|
+
inputField: Cn,
|
|
1294
|
+
medium: xn,
|
|
1295
|
+
wrap: mn,
|
|
1296
|
+
button: hn,
|
|
1297
|
+
icon: fn
|
|
1301
1298
|
};
|
|
1302
|
-
function
|
|
1299
|
+
function uo({
|
|
1303
1300
|
label: e,
|
|
1304
1301
|
description: u,
|
|
1305
1302
|
errorMessage: i,
|
|
1306
1303
|
children: b,
|
|
1307
1304
|
items: t,
|
|
1308
1305
|
className: d,
|
|
1309
|
-
errorPosition:
|
|
1306
|
+
errorPosition: A = "top",
|
|
1310
1307
|
size: a = "large",
|
|
1311
|
-
|
|
1308
|
+
popover: x,
|
|
1309
|
+
...D
|
|
1312
1310
|
}) {
|
|
1311
|
+
const g = X.useRef(null), m = (B) => {
|
|
1312
|
+
var h;
|
|
1313
|
+
B.currentTarget.value && ((h = g.current) == null || h.select());
|
|
1314
|
+
};
|
|
1313
1315
|
return /* @__PURE__ */ ae(
|
|
1314
|
-
|
|
1316
|
+
sn,
|
|
1315
1317
|
{
|
|
1316
1318
|
className: be(W.combobox, d),
|
|
1317
|
-
...
|
|
1319
|
+
...D,
|
|
1318
1320
|
children: [
|
|
1319
|
-
e && /* @__PURE__ */
|
|
1320
|
-
u && /* @__PURE__ */
|
|
1321
|
-
|
|
1321
|
+
/* @__PURE__ */ v(Ju, { popover: x, children: e && /* @__PURE__ */ v(Yu, { children: e }) }),
|
|
1322
|
+
u && /* @__PURE__ */ v(_u, { slot: "description", children: u }),
|
|
1323
|
+
A === "top" && /* @__PURE__ */ v(xe, { "data-testid": "fieldError", children: i }),
|
|
1322
1324
|
/* @__PURE__ */ ae("div", { className: W.wrap, children: [
|
|
1323
|
-
/* @__PURE__ */
|
|
1324
|
-
|
|
1325
|
+
/* @__PURE__ */ v(
|
|
1326
|
+
Au,
|
|
1325
1327
|
{
|
|
1326
1328
|
className: be(W.inputField, {
|
|
1327
1329
|
[W.medium]: a === "medium"
|
|
1328
|
-
})
|
|
1330
|
+
}),
|
|
1331
|
+
onMouseUp: m,
|
|
1332
|
+
ref: g
|
|
1329
1333
|
}
|
|
1330
1334
|
),
|
|
1331
|
-
/* @__PURE__ */
|
|
1332
|
-
|
|
1335
|
+
/* @__PURE__ */ v(
|
|
1336
|
+
su,
|
|
1333
1337
|
{
|
|
1334
1338
|
className: be(W.button, {
|
|
1335
1339
|
[W.medium]: a === "medium"
|
|
1336
1340
|
}),
|
|
1337
1341
|
"aria-label": "Visa lista",
|
|
1338
|
-
children: /* @__PURE__ */
|
|
1342
|
+
children: /* @__PURE__ */ v(
|
|
1339
1343
|
"div",
|
|
1340
1344
|
{
|
|
1341
1345
|
className: W.icon,
|
|
1342
1346
|
"aria-hidden": "true",
|
|
1343
|
-
children: /* @__PURE__ */
|
|
1344
|
-
|
|
1347
|
+
children: /* @__PURE__ */ v(
|
|
1348
|
+
on,
|
|
1345
1349
|
{
|
|
1346
1350
|
size: 20,
|
|
1347
1351
|
"aria-hidden": !0
|
|
@@ -1352,24 +1356,24 @@ function oo({
|
|
|
1352
1356
|
}
|
|
1353
1357
|
)
|
|
1354
1358
|
] }),
|
|
1355
|
-
|
|
1356
|
-
/* @__PURE__ */
|
|
1359
|
+
A === "bottom" && /* @__PURE__ */ v(xe, { "data-testid": "fieldError", children: i }),
|
|
1360
|
+
/* @__PURE__ */ v(Qu, { children: /* @__PURE__ */ v(en, { items: t, children: b }) })
|
|
1357
1361
|
]
|
|
1358
1362
|
}
|
|
1359
1363
|
);
|
|
1360
1364
|
}
|
|
1361
|
-
function fn(e) {
|
|
1362
|
-
return /* @__PURE__ */ f(en, { ...e });
|
|
1363
|
-
}
|
|
1364
1365
|
function vn(e) {
|
|
1365
|
-
return /* @__PURE__ */
|
|
1366
|
+
return /* @__PURE__ */ v(un, { ...e });
|
|
1367
|
+
}
|
|
1368
|
+
function An(e) {
|
|
1369
|
+
return /* @__PURE__ */ v(nn, { ...e, children: /* @__PURE__ */ v(gu, { items: e.children, children: (u) => /* @__PURE__ */ v(vn, { children: u.name }, u.id) }) });
|
|
1366
1370
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return /* @__PURE__ */
|
|
1371
|
+
function no(e) {
|
|
1372
|
+
return /* @__PURE__ */ v(An, { ...e });
|
|
1369
1373
|
}
|
|
1370
1374
|
export {
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
+
uo as C,
|
|
1376
|
+
vn as a,
|
|
1377
|
+
An as b,
|
|
1378
|
+
no as c
|
|
1375
1379
|
};
|