@midas-ds/components 13.0.1 → 14.0.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-D2Y0gJZB.js → AccordionItem-BJw5IKe0.js} +103 -104
- package/AccordionItem-DhMimhYo.cjs +1 -0
- package/BadgeContainer-BZl6mSeb.cjs +1 -0
- package/{BadgeContainer-iNNgJKD9.js → BadgeContainer-DilMiV6u.js} +9 -9
- package/{Breadcrumbs-C6B4fyk3.js → Breadcrumbs-CV3rVTjR.js} +15 -15
- package/{Breadcrumbs-BQLxFZVm.cjs → Breadcrumbs-DpUPChG9.cjs} +1 -1
- package/{Button-DD5_S-tD.js → Button-B6lxIKPk.js} +11 -11
- package/{Button-CMIbSc4-.cjs → Button-BTX5G3le.cjs} +1 -1
- package/{Button-CUMHt7MG.js → Button-CRIYvCRM.js} +10 -4
- package/{Button-D_tRdPW9.cjs → Button-xc8A29pm.cjs} +1 -1
- package/Button.module-COONZqNU.cjs +1 -0
- package/Button.module-Cm0H98vy.js +14 -0
- package/{ButtonGroup-zx-9mxbJ.cjs → ButtonGroup-BpvDDECt.cjs} +1 -1
- package/{ButtonGroup-DC8925jD.js → ButtonGroup-Swh2E6Es.js} +1 -1
- package/CHANGELOG.md +33 -0
- package/Card-CfosvMF5.js +131 -0
- package/Card-D2E3gviQ.cjs +1 -0
- package/{CharacterCounter-CnRv-iUP.cjs → CharacterCounter-C-PFKoGg.cjs} +1 -1
- package/{CharacterCounter-DT7A0wWP.js → CharacterCounter-DpFONstE.js} +8 -8
- package/{Checkbox-DTuryJdM.js → Checkbox-Cr3MmHPE.js} +35 -35
- package/Checkbox-D-CFY6QF.cjs +1 -0
- package/{CheckboxGroup-BmFdy-K6.js → CheckboxGroup-DEY3JDEL.js} +12 -12
- package/{CheckboxGroup-LrqCwPET.cjs → CheckboxGroup-f9Oa1MhQ.cjs} +1 -1
- package/{Collection-BvWp2xBd.cjs → Collection-DaZzboRu.cjs} +1 -1
- package/{Collection-B0_WAieZ.js → Collection-j_iWeuZo.js} +5 -5
- package/{ColorSchemeSwitch-CgZfgCG4.js → ColorSchemeSwitch-ChFSNntp.js} +10 -10
- package/{ColorSchemeSwitch-D5juAHPc.cjs → ColorSchemeSwitch-Cur7zN5_.cjs} +3 -3
- package/{ComboBox-uMsVrOYu.cjs → ComboBox-C4NybZ32.cjs} +1 -1
- package/{ComboBox-B2btGwWe.js → ComboBox-D7eKe-M5.js} +147 -147
- package/DateField-BszKZodr.cjs +1 -0
- package/DateField-xyhyDy7u.js +47 -0
- package/{DateInputDivider-LxS0Kw1H.js → DateInputDivider-2Wf2hlXA.js} +25 -25
- package/{DateInputDivider-BnSo_Aox.cjs → DateInputDivider-BgXKFwB0.cjs} +1 -1
- package/{DateRangePicker-It4M98bT.cjs → DateRangePicker-DTPkr3hX.cjs} +2 -2
- package/{DateRangePicker-BmPPDZIF.js → DateRangePicker-YwKi0ukr.js} +22 -22
- package/Dialog-DLnopN3Z.js +237 -0
- package/{Dialog-DR6nEqMT.cjs → Dialog-DNu42oLH.cjs} +1 -1
- package/{Dialog-COeUapMW.js → Dialog-DOyFzvUa.js} +58 -58
- package/Dialog-w6EBWT__.cjs +1 -0
- package/{DragAndDrop-PrUJv--B.js → DragAndDrop-DPRU3Y0Y.js} +1 -1
- package/{DragAndDrop-Dw8JZmrn.cjs → DragAndDrop-DQ_6tl6K.cjs} +1 -1
- package/{Dropdown-C_W6Sizy.cjs → Dropdown-5rmvcHD_.cjs} +2 -2
- package/{Dropdown-CGQbf7OT.js → Dropdown-uC9wc8vd.js} +8 -8
- package/FieldError-C4WBoCRc.cjs +1 -0
- package/FieldError-C4kD4yJZ.js +48 -0
- package/{FileUpload-D2gnQKdn.js → FileUpload-01wGpykv.js} +14 -14
- package/{FileUpload-D3RaARDV.cjs → FileUpload-CTbh7Gic.cjs} +1 -1
- package/{FocusScope-Bj40Ir-g.js → FocusScope-8ILtcq9W.js} +4 -4
- package/{FocusScope-Uy3DiY0-.cjs → FocusScope-Dv0F-mG2.cjs} +1 -1
- package/{Grid-BmX6arAO.js → Grid-0XOQPryP.js} +2 -2
- package/{Grid-Bn1bCTH8.cjs → Grid-B6G4PWn5.cjs} +1 -1
- package/{GridItem-luVsL9lu.cjs → GridItem-BZ8eOXMB.cjs} +1 -1
- package/{GridItem-BtO9kCX9.js → GridItem-YtIpL5V2.js} +1 -1
- package/{Group-C73mD_-i.js → Group-C2hEIsGV.js} +11 -11
- package/{Group-BKYGeOBr.cjs → Group-cuyk9Hsy.cjs} +1 -1
- package/Heading-CEx2LJyM.js +48 -0
- package/Heading-CUShN98j.cjs +1 -0
- package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
- package/InfoBanner-CRSz8DK2.js +72 -0
- package/InfoBanner-D_pNj1J2.cjs +1 -0
- package/{Input-CzMx2mfl.cjs → Input-CCuE9Sc5.cjs} +1 -1
- package/{Input-BLVRv0FK.js → Input-CkTOajNJ.js} +9 -9
- package/{Label-1N6ddn5w.js → Label-CV9p0K2n.js} +15 -15
- package/Label-CkIRTC0_.cjs +1 -0
- package/Layout-CVnlO10z.cjs +16 -0
- package/{Layout-B-A-s7B0.js → Layout-IeVrHpT0.js} +126 -126
- package/{Link-CbFSuEI1.js → Link-B9CQXWzE.js} +10 -10
- package/{Link-lO-Ke97K.js → Link-BFvUN5Sq.js} +22 -22
- package/Link-D2K7bDd3.cjs +6 -0
- package/{Link-wM7cVPlS.cjs → Link-a3Ymcnoa.cjs} +1 -1
- package/LinkButton-BCn5gR10.cjs +6 -0
- package/LinkButton-DN3J1Agu.js +69 -0
- package/{ListBox-LncMQt6I.js → ListBox-2eEa1l0M.js} +34 -34
- package/{ListBox-ICZKGluC.cjs → ListBox-Bx9M5vqb.cjs} +1 -1
- package/{ListBoxLoadMoreItem-3jGpi90m.cjs → ListBoxLoadMoreItem-BBE3OF4J.cjs} +1 -1
- package/{ListBoxLoadMoreItem-C4jnDcYH.js → ListBoxLoadMoreItem-IcGb_XwN.js} +5 -5
- package/{ListBoxSection-D7BcbjUt.js → ListBoxSection-dksiACMZ.js} +21 -21
- package/{ListBoxSection-BeDwnVZx.cjs → ListBoxSection-kujY2gUl.cjs} +1 -1
- package/{ListKeyboardDelegate-C_X1wLkh.cjs → ListKeyboardDelegate-DJDPir-w.cjs} +1 -1
- package/{ListKeyboardDelegate-CVxkAn5D.js → ListKeyboardDelegate-Dyu4eFtP.js} +2 -2
- package/{Logo-CFjZc5u2.cjs → Logo-4tRnV4Su.cjs} +1 -1
- package/{Logo-DkagDdKQ.js → Logo-DLlt576_.js} +17 -17
- package/{OverlayArrow-CvNuu3e3.js → OverlayArrow-Bh_G2tJ3.js} +4 -4
- package/{OverlayArrow-ByH6lM-H.cjs → OverlayArrow-DJ4nNscD.cjs} +1 -1
- package/Popover-BI2Koco0.cjs +1 -0
- package/{Popover-Bf5YH53o.js → Popover-D7_IfJ3o.js} +13 -13
- package/PressResponder-AXK2I_yx.cjs +1 -0
- package/{PressResponder-CxVtArtP.js → PressResponder-DUhG97jJ.js} +9 -9
- package/ProgressBar-B-TOuoAC.cjs +1 -0
- package/ProgressBar-B0WEQkyq.js +53 -0
- package/{Radio-D4wUZfW9.js → Radio-D6KNkSA2.js} +47 -47
- package/{Radio-BpQoJB8e.cjs → Radio-DsVsutMH.cjs} +1 -1
- package/RangeCalendar-B6zKSDju.cjs +6 -0
- package/{RangeCalendar-Bi9jc61A.js → RangeCalendar-D5TMu8GI.js} +115 -114
- package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
- package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
- package/SearchField-DnBBlPT7.cjs +6 -0
- package/{SearchField-BevjTbcW.js → SearchField-wojUSY2S.js} +44 -44
- package/Select-D9h_RQ2k.cjs +1 -0
- package/{Select-CEwJo1BT.js → Select-Dc6y8gPR.js} +168 -168
- package/{SelectionManager-Bq-Gw1UT.js → SelectionManager-D-4ThfPZ.js} +9 -9
- package/{SelectionManager-BtbHoHpA.cjs → SelectionManager-FYrDfe5v.cjs} +1 -1
- package/{Separator-Bj24aGrT.js → Separator--4b7vckr.js} +28 -28
- package/{Separator-Dgin8BNW.cjs → Separator-BQkxEZC9.cjs} +1 -1
- package/{Separator-CM0KPvsX.js → Separator-COlhRmJF.js} +5 -5
- package/Separator-DcbM84B8.cjs +1 -0
- package/Skeleton-8onymGEG.cjs +1 -0
- package/Skeleton-BjTEGRpe.js +35 -0
- package/Spinner-CTha503N.js +47 -0
- package/{Spinner-DxWDMW6e.cjs → Spinner-DKQ9_SQB.cjs} +2 -2
- package/{TabList-3fErCDyP.cjs → TabList-BhC96APe.cjs} +1 -1
- package/{TabList-CXaxruLg.js → TabList-P5HnizZt.js} +106 -110
- package/{Table-Dyqa6_rE.cjs → Table-BB8Ag5_3.cjs} +1 -1
- package/{Table-BzJktg2G.js → Table-cCSOrPkK.js} +21 -21
- package/{Tag-BYUPXbhG.js → Tag-D2vh0KRD.js} +24 -24
- package/{Tag-BweDKw1v.cjs → Tag-D32MGLjS.cjs} +1 -1
- package/Text-BQe1I4-r.js +32 -0
- package/{Text-Be7WIOwv.js → Text-BpERRete.js} +3 -3
- package/{Text-BtPiT2P1.cjs → Text-CkhG15SU.cjs} +1 -1
- package/{Text-BAFsaON-.cjs → Text-CkhZTTV5.cjs} +1 -1
- package/TextArea-B5TsyJxa.cjs +1 -0
- package/TextArea-Cado2arG.js +125 -0
- package/{TextField-Bm5916AD.cjs → TextField-4xfAzdBI.cjs} +1 -1
- package/{TextField-_UY8CXtW.js → TextField-5AI6T1ol.js} +26 -26
- package/TextField.module-C03d0VY9.js +13 -0
- package/TextField.module-DmRrFHra.cjs +1 -0
- package/{Toast-B74PMVL9.js → Toast-CgXRE33Y.js} +97 -97
- package/{Toast-Cs0CEbRr.cjs → Toast-Cs-Uvf1p.cjs} +1 -1
- package/{ToggleButtonGroup-DY9S3USc.cjs → ToggleButtonGroup-CiX2eXB8.cjs} +1 -1
- package/{ToggleButtonGroup-CwHPu7w5.js → ToggleButtonGroup-SKGgfFs4.js} +9 -9
- package/{Tooltip-CZa9n5sT.cjs → Tooltip-BrupFzaI.cjs} +1 -1
- package/{Tooltip-BHAtsp9k.js → Tooltip-txk48Qof.js} +13 -13
- package/{VisuallyHidden-EjrqodVh.cjs → VisuallyHidden-Awup6QxT.cjs} +1 -1
- package/{VisuallyHidden-CGEtjAP7.js → VisuallyHidden-D2ZXHTJs.js} +8 -8
- package/accordion/Accordion.d.ts +0 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +2 -3
- package/assets/AccordionItem.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Dropdown.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Logo.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/default.css +1 -1
- 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 +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/clsx-DKOfLqne.cjs +1 -0
- package/clsx-jbLnTBqA.js +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
- package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/Heading.d.ts +6 -0
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BLPblar-.js → index-DEx4upZl.js} +19 -19
- package/{index-DSFSh2sC.cjs → index-hURPlN0u.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.js +126 -127
- package/inertValue-BWmZ1afe.cjs +1 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- 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/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/{mergeProps-BSsN7Bgk.js → mergeProps-Ct8m5-xW.js} +1 -1
- package/{mergeProps-JhcJ7uJL.cjs → mergeProps-Du5A8xi8.cjs} +1 -1
- package/modal/Dialog.d.ts +16 -3
- package/modal/index.cjs +1 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +2 -2
- package/package.json +2 -2
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- 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/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +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.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/TextField.d.ts +2 -2
- 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/{useButton-D6iUB8cN.js → useButton-A-VOfwuT.js} +3 -3
- package/{useButton-R8-i3HLC.cjs → useButton-Bh3duhYL.cjs} +1 -1
- package/{useDateFormatter-BJ1ZyaH1.js → useDateFormatter-CxlJTAki.js} +2 -2
- package/{useDateFormatter-2B0vgHc-.cjs → useDateFormatter-D0bVjgIb.cjs} +1 -1
- package/{useDescription-BMuiAqI5.cjs → useDescription-6BYtQxe6.cjs} +1 -1
- package/{useDescription-BLmIkYCq.js → useDescription-BFwQx7Rp.js} +1 -1
- package/useEvent-C125NAue.cjs +1 -0
- package/{useEvent-DpBHTuHJ.js → useEvent-smuTnX4G.js} +1 -1
- package/{useField-DyeD7MLj.cjs → useField-CY4OYE5a.cjs} +1 -1
- package/{useField-BMegM8fA.js → useField-sSWPm-He.js} +2 -2
- package/{useFilter-BFnSe_Eq.js → useFilter-DHcouDzv.js} +1 -1
- package/{useFilter-aoggM85n.cjs → useFilter-DlZLqsJD.cjs} +1 -1
- package/{useFocusRing-BcbYske2.cjs → useFocusRing-Cig5Y0l-.cjs} +1 -1
- package/{useFocusRing-DMo8ctYV.js → useFocusRing-Copf_tx8.js} +2 -2
- package/{useFocusWithin-ClMkhYcq.js → useFocusWithin-BKopz9sr.js} +1 -1
- package/{useFocusWithin-DTnk0e8a.cjs → useFocusWithin-TryC2Kkw.cjs} +1 -1
- package/{useFocusable-DXlMChFC.js → useFocusable-CCh54GIw.js} +14 -14
- package/{useFocusable-CsG-IPuC.cjs → useFocusable-DhdAtEw8.cjs} +1 -1
- package/{useFormValidation-BQIRxgbU.cjs → useFormValidation-BJNizNDf.cjs} +1 -1
- package/{useFormValidation-L0UHvOsP.js → useFormValidation-DdIIVZ5j.js} +2 -2
- package/{useHasTabbableChild-BDaxMsGu.js → useHasTabbableChild-BbgOpdGQ.js} +2 -2
- package/useHasTabbableChild-wH3RCjTd.cjs +1 -0
- package/{useHighlightSelectionDescription-BkEv9Jye.js → useHighlightSelectionDescription-BL_02EKv.js} +5 -5
- package/{useHighlightSelectionDescription-CQaG611l.cjs → useHighlightSelectionDescription-D6F-YO6b.cjs} +1 -1
- package/{useHover-DGAmG7jt.cjs → useHover-eU40luVI.cjs} +1 -1
- package/{useHover-D6bNIkU0.js → useHover-zCCNtF6g.js} +2 -2
- package/{useLabels-CvUk-yS3.cjs → useLabels-B5pmat1S.cjs} +1 -1
- package/{useLabels-Kmq5JCp_.js → useLabels-D24on06F.js} +1 -1
- package/{useListState-D2IEg6_e.cjs → useListState-BdC308Sq.cjs} +1 -1
- package/{useListState-pixYqSLl.js → useListState-D2yPZrFZ.js} +1 -1
- package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
- package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
- package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
- package/useObserveElement-BzEr5D32.cjs +1 -0
- package/{usePress-DMUpU0GU.js → usePress-4yZ5a87p.js} +15 -15
- package/{usePress-CicXV7UO.cjs → usePress-Dj3t18Pf.cjs} +2 -2
- package/{useSingleSelectListState-CwWK_Dx2.cjs → useSingleSelectListState-b_SPhYG4.cjs} +1 -1
- package/{useSingleSelectListState-BlvpP8y-.js → useSingleSelectListState-lyai-bC_.js} +1 -1
- package/{useTextField-Cxpfu0U3.cjs → useTextField-DUEQl6sr.cjs} +1 -1
- package/{useTextField-BC5X_AO_.js → useTextField-DjxrmW7d.js} +7 -7
- package/useToggleState-DaxmInOW.cjs +1 -0
- package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
- package/utils/clsx.d.ts +8 -0
- package/{utils-Cpcjg55U.js → utils-BMBoiyL7.js} +10 -10
- package/{utils-DFIwp4PB.js → utils-CrT5PVBA.js} +1 -1
- package/{utils-__vrf9VZ.cjs → utils-I-LGXGYH.cjs} +1 -1
- package/{utils-CMHKYKlz.cjs → utils-cBvgilDa.cjs} +1 -1
- package/AccordionItem-Bq8nUKg4.cjs +0 -1
- package/BadgeContainer-su0iCJKy.cjs +0 -1
- package/Button.module-BT9wZenr.cjs +0 -1
- package/Button.module-CGIVvzVm.js +0 -14
- package/Card-D2UbrhDW.js +0 -131
- package/Card-UolcSL5O.cjs +0 -1
- package/Checkbox-dtZfsSfx.cjs +0 -1
- package/DateField-B5dlDwdH.cjs +0 -1
- package/DateField-CEpRn4wR.js +0 -47
- package/Dialog-B1HuzqOX.js +0 -240
- package/Dialog-doGnVsJJ.cjs +0 -1
- package/FieldError-Cornph2A.cjs +0 -1
- package/FieldError-DdvFyIf4.js +0 -48
- package/Heading-BQlmb5Tm.js +0 -46
- package/Heading-D3FR_KXb.cjs +0 -1
- package/InfoBanner-C82hcpzj.cjs +0 -1
- package/InfoBanner-Dz_0wVSa.js +0 -83
- package/Label-06gf6yKQ.cjs +0 -1
- package/Layout-DlE30BHE.cjs +0 -16
- package/Link-ePZ3nrAW.cjs +0 -6
- package/LinkButton-CJyZh3BS.js +0 -69
- package/LinkButton-Cw73pOM2.cjs +0 -6
- package/Popover-DIq3kp6B.cjs +0 -1
- package/PressResponder-DbnYqwGB.cjs +0 -1
- package/ProgressBar-DRhXkSE6.js +0 -53
- package/ProgressBar-i7almbvK.cjs +0 -1
- package/RangeCalendar-KcJooXYf.cjs +0 -6
- package/SearchField-BA-X9dzb.cjs +0 -6
- package/Select-1QuVY4f5.cjs +0 -1
- package/Separator-Cfv2pbWf.cjs +0 -1
- package/Skeleton-Iovq135_.js +0 -35
- package/Skeleton-MaBUPqhT.cjs +0 -1
- package/Spinner-BZ7i01Kt.js +0 -47
- package/Text-CmlsaWMA.js +0 -32
- package/TextArea-B4BZUoJp.cjs +0 -1
- package/TextArea-Df1fR5R4.js +0 -124
- package/TextField.module-CH39P8ZE.js +0 -13
- package/TextField.module-gJ-ruFra.cjs +0 -1
- package/inertValue-B3AFhVG4.cjs +0 -1
- package/useEvent-3ZO5TPSH.cjs +0 -1
- package/useHasTabbableChild-CJcLnolh.cjs +0 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
- package/useObserveElement-MhzEsCkX.cjs +0 -1
- package/useToggleState-SqDyNfRi.cjs +0 -1
- package/utils/storybook.d.ts +0 -5
- package/utils/test.d.ts +0 -11
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, jsxs as g, Fragment as F } from "react/jsx-runtime";
|
|
2
2
|
import * as V from "react";
|
|
3
|
-
import
|
|
4
|
-
import { c as P } from "./clsx-
|
|
5
|
-
import { b as j } from "./utils-
|
|
6
|
-
import { a as R, $ as G, T as W } from "./Tag-
|
|
7
|
-
import { $ as H } from "./TextField-
|
|
8
|
-
import { c as U } from "./Collection-
|
|
9
|
-
import { C as k } from "./Checkbox-
|
|
10
|
-
import { L as q, c as X, a as J, b as Q } from "./ListBoxSection-
|
|
3
|
+
import x, { useMemo as D, useState as E, useCallback as L, useEffect as O, useRef as z } from "react";
|
|
4
|
+
import { c as P } from "./clsx-jbLnTBqA.js";
|
|
5
|
+
import { b as j } from "./utils-BMBoiyL7.js";
|
|
6
|
+
import { a as R, $ as G, T as W } from "./Tag-D2vh0KRD.js";
|
|
7
|
+
import { $ as H } from "./TextField-5AI6T1ol.js";
|
|
8
|
+
import { c as U } from "./Collection-j_iWeuZo.js";
|
|
9
|
+
import { C as k } from "./Checkbox-Cr3MmHPE.js";
|
|
10
|
+
import { L as q, c as X, a as J, b as Q } from "./ListBoxSection-dksiACMZ.js";
|
|
11
11
|
import { C as Y } from "./check-B5h1DvDs.js";
|
|
12
|
-
import { g as Z } from "./useHover-
|
|
13
|
-
import { p as ee, q as te } from "./Dialog-
|
|
14
|
-
import { $ as le, c as ae } from "./ListKeyboardDelegate-
|
|
15
|
-
import { g as
|
|
16
|
-
import { a as w, c as
|
|
17
|
-
import { $ as
|
|
18
|
-
import { $ as ce } from "./useField-
|
|
19
|
-
import { $ as se, a as de, b as ue } from "./useFormValidation-
|
|
20
|
-
import { $ as fe } from "./useListState-
|
|
12
|
+
import { g as Z } from "./useHover-zCCNtF6g.js";
|
|
13
|
+
import { p as ee, q as te } from "./Dialog-DOyFzvUa.js";
|
|
14
|
+
import { $ as le, c as ae } from "./ListKeyboardDelegate-Dyu4eFtP.js";
|
|
15
|
+
import { g as oe } from "./SelectionManager-D-4ThfPZ.js";
|
|
16
|
+
import { a as w, c as ne, e as re } from "./mergeProps-Ct8m5-xW.js";
|
|
17
|
+
import { $ as ie } from "./filterDOMProps-wsa9OcNI.js";
|
|
18
|
+
import { $ as ce } from "./useField-sSWPm-He.js";
|
|
19
|
+
import { $ as se, a as de, b as ue } from "./useFormValidation-DdIIVZ5j.js";
|
|
20
|
+
import { $ as fe } from "./useListState-D2yPZrFZ.js";
|
|
21
21
|
import { u as me } from "./useObserveElement-BdI4zgd7.js";
|
|
22
|
-
import { a as
|
|
23
|
-
import { a as
|
|
24
|
-
import { T as ge } from "./Text-
|
|
22
|
+
import { a as be } from "./VisuallyHidden-D2ZXHTJs.js";
|
|
23
|
+
import { a as pe, L as he } from "./Label-CV9p0K2n.js";
|
|
24
|
+
import { T as ge } from "./Text-BQe1I4-r.js";
|
|
25
25
|
import { X as ye } from "./x-C2xUHAEl.js";
|
|
26
|
-
import { u as B } from "./useLocalizedStringFormatter-
|
|
27
|
-
import { $ as $e } from "./useButton-
|
|
28
|
-
import { C as
|
|
29
|
-
import { $ as
|
|
26
|
+
import { u as B } from "./useLocalizedStringFormatter-aOhh7wdl.js";
|
|
27
|
+
import { $ as $e } from "./useButton-A-VOfwuT.js";
|
|
28
|
+
import { C as ve } from "./chevron-down-DmZMdOiC.js";
|
|
29
|
+
import { $ as xe, F as Se } from "./FieldError-C4kD4yJZ.js";
|
|
30
30
|
import './assets/Select.css';function I(e) {
|
|
31
31
|
return null;
|
|
32
32
|
}
|
|
33
|
-
I.getCollectionNode = function* (t,
|
|
34
|
-
let { childItems:
|
|
35
|
-
!s && !(
|
|
33
|
+
I.getCollectionNode = function* (t, n) {
|
|
34
|
+
let { childItems: i, title: a, children: r } = t, l = t.title || t.children, s = t.textValue || (typeof l == "string" ? l : "") || t["aria-label"] || "";
|
|
35
|
+
!s && !(n != null && n.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 {
|
|
36
36
|
type: "item",
|
|
37
37
|
props: t,
|
|
38
38
|
rendered: l,
|
|
@@ -40,13 +40,13 @@ I.getCollectionNode = function* (t, o) {
|
|
|
40
40
|
"aria-label": t["aria-label"],
|
|
41
41
|
hasChildNodes: Ce(t),
|
|
42
42
|
*childNodes() {
|
|
43
|
-
if (
|
|
43
|
+
if (i) for (let c of i) yield {
|
|
44
44
|
type: "item",
|
|
45
45
|
value: c
|
|
46
46
|
};
|
|
47
47
|
else if (a) {
|
|
48
48
|
let c = [];
|
|
49
|
-
|
|
49
|
+
x.Children.forEach(r, (u) => {
|
|
50
50
|
c.push({
|
|
51
51
|
type: "item",
|
|
52
52
|
element: u
|
|
@@ -57,42 +57,42 @@ I.getCollectionNode = function* (t, o) {
|
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
function Ce(e) {
|
|
60
|
-
return e.hasChildItems != null ? e.hasChildItems : !!(e.childItems || e.title &&
|
|
60
|
+
return e.hasChildItems != null ? e.hasChildItems : !!(e.childItems || e.title && x.Children.count(e.children) > 0);
|
|
61
61
|
}
|
|
62
62
|
let _ = I;
|
|
63
63
|
function N(e) {
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
66
66
|
N.getCollectionNode = function* (t) {
|
|
67
|
-
let { children:
|
|
67
|
+
let { children: n, title: i, items: a } = t;
|
|
68
68
|
yield {
|
|
69
69
|
type: "section",
|
|
70
70
|
props: t,
|
|
71
71
|
hasChildNodes: !0,
|
|
72
|
-
rendered:
|
|
72
|
+
rendered: i,
|
|
73
73
|
"aria-label": t["aria-label"],
|
|
74
74
|
*childNodes() {
|
|
75
|
-
if (typeof
|
|
75
|
+
if (typeof n == "function") {
|
|
76
76
|
if (!a) throw new Error("props.children was a function but props.items is missing");
|
|
77
|
-
for (let
|
|
77
|
+
for (let r of a) yield {
|
|
78
78
|
type: "item",
|
|
79
|
-
value:
|
|
80
|
-
renderer:
|
|
79
|
+
value: r,
|
|
80
|
+
renderer: n
|
|
81
81
|
};
|
|
82
82
|
} else {
|
|
83
|
-
let
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
let r = [];
|
|
84
|
+
x.Children.forEach(n, (l) => {
|
|
85
|
+
r.push({
|
|
86
86
|
type: "item",
|
|
87
87
|
element: l
|
|
88
88
|
});
|
|
89
|
-
}), yield*
|
|
89
|
+
}), yield* r;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
let we = N;
|
|
95
|
-
const _e = "
|
|
95
|
+
const _e = "_wrapper_1rw0v_7", Ke = "_trigger_1rw0v_18", Ve = "_medium_1rw0v_32", Pe = "_icon_1rw0v_68", ke = "_tagGroup_1rw0v_74", Be = "_listBoxItemCheckmark_1rw0v_90", Ie = "_triggerContainer_1rw0v_95", Ne = "_selectValueTag_1rw0v_101", Ae = "_clearButton_1rw0v_117", Me = "_truncate_1rw0v_129", Te = "_checkboxContainer_1rw0v_166", Fe = "_selectAll_1rw0v_172", b = {
|
|
96
96
|
wrapper: _e,
|
|
97
97
|
trigger: Ke,
|
|
98
98
|
medium: Ve,
|
|
@@ -105,23 +105,23 @@ const _e = "_wrapper_c5n5w_7", Ke = "_trigger_c5n5w_18", Ve = "_medium_c5n5w_32"
|
|
|
105
105
|
truncate: Me,
|
|
106
106
|
checkboxContainer: Te,
|
|
107
107
|
selectAll: Fe
|
|
108
|
-
}, A = ({ item: e }) => /* @__PURE__ */
|
|
108
|
+
}, A = ({ item: e }) => /* @__PURE__ */ o(
|
|
109
109
|
J,
|
|
110
110
|
{
|
|
111
111
|
...e.value,
|
|
112
112
|
textValue: e.textValue,
|
|
113
113
|
"aria-label": e.textValue,
|
|
114
|
-
children: ({ isDisabled: t, isSelected:
|
|
115
|
-
|
|
114
|
+
children: ({ isDisabled: t, isSelected: n, selectionMode: i }) => /* @__PURE__ */ g(F, { children: [
|
|
115
|
+
i === "multiple" ? /* @__PURE__ */ o(
|
|
116
116
|
"div",
|
|
117
117
|
{
|
|
118
|
-
className:
|
|
118
|
+
className: b.checkboxContainer,
|
|
119
119
|
"aria-hidden": !0,
|
|
120
|
-
children: /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ o(
|
|
121
121
|
k,
|
|
122
122
|
{
|
|
123
123
|
isDisabled: t,
|
|
124
|
-
isSelected:
|
|
124
|
+
isSelected: n,
|
|
125
125
|
isReadOnly: !0,
|
|
126
126
|
excludeFromTabOrder: !0,
|
|
127
127
|
"aria-label": e.textValue
|
|
@@ -130,19 +130,19 @@ const _e = "_wrapper_c5n5w_7", Ke = "_trigger_c5n5w_18", Ve = "_medium_c5n5w_32"
|
|
|
130
130
|
}
|
|
131
131
|
) : null,
|
|
132
132
|
e.rendered,
|
|
133
|
-
|
|
133
|
+
n && i === "single" ? /* @__PURE__ */ o(
|
|
134
134
|
Y,
|
|
135
135
|
{
|
|
136
136
|
size: 20,
|
|
137
|
-
className:
|
|
137
|
+
className: b.listBoxItemCheckmark
|
|
138
138
|
}
|
|
139
139
|
) : null
|
|
140
140
|
] })
|
|
141
141
|
}
|
|
142
|
-
), De = ({ section: e, state: t }) => /* @__PURE__ */
|
|
142
|
+
), De = ({ section: e, state: t }) => /* @__PURE__ */ o(X, { ...e.value, children: t.collection.getChildren ? /* @__PURE__ */ o(U, { items: t.collection.getChildren(e.key), children: (n) => /* @__PURE__ */ o(A, { item: n }) }) : null }), Ee = ({
|
|
143
143
|
state: e,
|
|
144
144
|
...t
|
|
145
|
-
}) => /* @__PURE__ */
|
|
145
|
+
}) => /* @__PURE__ */ o(
|
|
146
146
|
q,
|
|
147
147
|
{
|
|
148
148
|
...t,
|
|
@@ -150,71 +150,71 @@ const _e = "_wrapper_c5n5w_7", Ke = "_trigger_c5n5w_18", Ve = "_medium_c5n5w_32"
|
|
|
150
150
|
escapeKeyBehavior: "none",
|
|
151
151
|
onSelectionChange: e.setSelectedKeys,
|
|
152
152
|
items: e.collection,
|
|
153
|
-
children: (
|
|
153
|
+
children: (n) => n.type === "section" ? /* @__PURE__ */ o(
|
|
154
154
|
De,
|
|
155
155
|
{
|
|
156
156
|
state: e,
|
|
157
|
-
section:
|
|
157
|
+
section: n
|
|
158
158
|
}
|
|
159
|
-
) : /* @__PURE__ */
|
|
159
|
+
) : /* @__PURE__ */ o(A, { item: n })
|
|
160
160
|
}
|
|
161
161
|
);
|
|
162
|
-
function Le(e, t,
|
|
163
|
-
const { disallowEmptySelection:
|
|
162
|
+
function Le(e, t, n) {
|
|
163
|
+
const { disallowEmptySelection: i, isDisabled: a } = e, r = le({ usage: "search", sensitivity: "base" }), l = D(
|
|
164
164
|
() => new ae(
|
|
165
165
|
t.collection,
|
|
166
166
|
t.disabledKeys,
|
|
167
167
|
null,
|
|
168
|
-
|
|
168
|
+
r
|
|
169
169
|
),
|
|
170
|
-
[t.collection, t.disabledKeys,
|
|
170
|
+
[t.collection, t.disabledKeys, r]
|
|
171
171
|
), { menuTriggerProps: s, menuProps: c } = ee(
|
|
172
172
|
{
|
|
173
173
|
isDisabled: a,
|
|
174
174
|
type: "listbox"
|
|
175
175
|
},
|
|
176
176
|
t,
|
|
177
|
-
|
|
177
|
+
n
|
|
178
178
|
), u = (f) => {
|
|
179
|
-
const { selectedKeys:
|
|
179
|
+
const { selectedKeys: v, selectionMode: T } = t, C = v.values().next().value;
|
|
180
180
|
if (T === "single")
|
|
181
181
|
switch (f.key) {
|
|
182
182
|
case "ArrowLeft": {
|
|
183
183
|
f.preventDefault();
|
|
184
|
-
const $ =
|
|
184
|
+
const $ = v.size > 0 ? l.getKeyAbove(C) : l.getFirstKey();
|
|
185
185
|
$ && t.setSelectedKeys([$]);
|
|
186
186
|
break;
|
|
187
187
|
}
|
|
188
188
|
case "ArrowRight": {
|
|
189
189
|
f.preventDefault();
|
|
190
|
-
const $ =
|
|
190
|
+
const $ = v.size > 0 ? l.getKeyBelow(C) : l.getFirstKey();
|
|
191
191
|
$ && t.setSelectedKeys([$]);
|
|
192
192
|
break;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
}, { typeSelectProps: d } =
|
|
195
|
+
}, { typeSelectProps: d } = oe({
|
|
196
196
|
keyboardDelegate: l,
|
|
197
197
|
selectionManager: t.selectionManager,
|
|
198
198
|
onTypeSelect(f) {
|
|
199
199
|
t.setSelectedKeys([f]);
|
|
200
200
|
}
|
|
201
|
-
}), { labelProps: y, fieldProps:
|
|
201
|
+
}), { labelProps: y, fieldProps: p } = ce({
|
|
202
202
|
...e,
|
|
203
203
|
labelElementType: "span"
|
|
204
204
|
});
|
|
205
205
|
d.onKeyDown = d.onKeyDownCapture, delete d.onKeyDownCapture;
|
|
206
|
-
const m =
|
|
206
|
+
const m = ie(e, { labelable: !0 }), h = w(d, s, p), S = ne();
|
|
207
207
|
return {
|
|
208
208
|
labelProps: {
|
|
209
209
|
...y,
|
|
210
210
|
onClick: () => {
|
|
211
211
|
var f;
|
|
212
|
-
e.isDisabled || ((f =
|
|
212
|
+
e.isDisabled || ((f = n.current) == null || f.focus(), Z("keyboard"));
|
|
213
213
|
}
|
|
214
214
|
},
|
|
215
215
|
triggerProps: w(m, {
|
|
216
216
|
...h,
|
|
217
|
-
onKeyDown:
|
|
217
|
+
onKeyDown: re(
|
|
218
218
|
h.onKeyDown,
|
|
219
219
|
u,
|
|
220
220
|
e.onKeyDown
|
|
@@ -237,7 +237,7 @@ function Le(e, t, o) {
|
|
|
237
237
|
},
|
|
238
238
|
menuProps: {
|
|
239
239
|
...c,
|
|
240
|
-
disallowEmptySelection:
|
|
240
|
+
disallowEmptySelection: i,
|
|
241
241
|
autoFocus: t.focusStrategy || !0,
|
|
242
242
|
shouldSelectOnPressUp: !0,
|
|
243
243
|
shouldFocusOnHover: !0,
|
|
@@ -245,8 +245,8 @@ function Le(e, t, o) {
|
|
|
245
245
|
f.currentTarget.contains(f.relatedTarget) || (e.onBlur && e.onBlur(f), t.setFocused(!1));
|
|
246
246
|
},
|
|
247
247
|
"aria-labelledby": [
|
|
248
|
-
|
|
249
|
-
h["aria-label"] && !
|
|
248
|
+
p["aria-labelledby"],
|
|
249
|
+
h["aria-label"] && !p["aria-labelledby"] ? h.id : null
|
|
250
250
|
].filter(Boolean).join(" ")
|
|
251
251
|
}
|
|
252
252
|
};
|
|
@@ -254,10 +254,10 @@ function Le(e, t, o) {
|
|
|
254
254
|
function Oe(e) {
|
|
255
255
|
const {
|
|
256
256
|
collection: t,
|
|
257
|
-
disabledKeys:
|
|
258
|
-
selectionManager:
|
|
259
|
-
selectionManager: { setSelectedKeys: a, selectedKeys:
|
|
260
|
-
} = fe(e), s = [], c =
|
|
257
|
+
disabledKeys: n,
|
|
258
|
+
selectionManager: i,
|
|
259
|
+
selectionManager: { setSelectedKeys: a, selectedKeys: r, selectionMode: l }
|
|
260
|
+
} = fe(e), s = [], c = r.size !== 0 ? Array.from(r).map((u) => {
|
|
261
261
|
const d = t.getItem(u);
|
|
262
262
|
return d || s.push(u), d;
|
|
263
263
|
}).filter(Boolean) : null;
|
|
@@ -267,55 +267,55 @@ function Oe(e) {
|
|
|
267
267
|
)}" passed to "selectedKeys" are not present in the collection.`
|
|
268
268
|
), {
|
|
269
269
|
collection: t,
|
|
270
|
-
disabledKeys:
|
|
271
|
-
selectionManager:
|
|
270
|
+
disabledKeys: n,
|
|
271
|
+
selectionManager: i,
|
|
272
272
|
selectionMode: l,
|
|
273
|
-
selectedKeys:
|
|
274
|
-
setSelectedKeys: a.bind(
|
|
273
|
+
selectedKeys: r,
|
|
274
|
+
setSelectedKeys: a.bind(i),
|
|
275
275
|
selectedItems: c
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
278
|
function ze(e) {
|
|
279
|
-
const [t,
|
|
279
|
+
const [t, n] = E(!1), i = te(e), a = e.selectionMode === "single", r = Oe({
|
|
280
280
|
...e,
|
|
281
281
|
onSelectionChange: (d) => {
|
|
282
|
-
e.onSelectionChange && e.onSelectionChange(d), a &&
|
|
282
|
+
e.onSelectionChange && e.onSelectionChange(d), a && i.close();
|
|
283
283
|
}
|
|
284
284
|
}), l = se({
|
|
285
285
|
...e,
|
|
286
286
|
validationBehavior: "native",
|
|
287
|
-
value:
|
|
288
|
-
}), s =
|
|
287
|
+
value: r.selectedKeys
|
|
288
|
+
}), s = r.collection.size === 0, c = !!r.selectedKeys.size, u = L(() => {
|
|
289
289
|
l.resetValidation(), l.commitValidation();
|
|
290
290
|
}, [l]);
|
|
291
291
|
return O(() => {
|
|
292
292
|
a && c && u();
|
|
293
293
|
}, [c, a, u]), {
|
|
294
|
-
...i,
|
|
295
294
|
...r,
|
|
295
|
+
...i,
|
|
296
296
|
close() {
|
|
297
|
-
|
|
297
|
+
i.close(), c && u();
|
|
298
298
|
},
|
|
299
299
|
open() {
|
|
300
|
-
s ||
|
|
300
|
+
s || i.open();
|
|
301
301
|
},
|
|
302
302
|
toggle(d) {
|
|
303
|
-
s ||
|
|
303
|
+
s || i.toggle(d);
|
|
304
304
|
},
|
|
305
305
|
isFocused: t,
|
|
306
|
-
setFocused:
|
|
306
|
+
setFocused: n,
|
|
307
307
|
...l
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
310
|
function je({
|
|
311
311
|
autoComplete: e,
|
|
312
312
|
name: t,
|
|
313
|
-
isDisabled:
|
|
314
|
-
isRequired:
|
|
313
|
+
isDisabled: n,
|
|
314
|
+
isRequired: i,
|
|
315
315
|
selectRef: a
|
|
316
|
-
},
|
|
317
|
-
const { visuallyHiddenProps: s } =
|
|
318
|
-
return de(a,
|
|
316
|
+
}, r, l) {
|
|
317
|
+
const { visuallyHiddenProps: s } = be();
|
|
318
|
+
return de(a, r.selectedKeys, r.setSelectedKeys), ue(
|
|
319
319
|
{
|
|
320
320
|
validationBehavior: "native",
|
|
321
321
|
focus: () => {
|
|
@@ -323,7 +323,7 @@ function je({
|
|
|
323
323
|
return (c = l.current) == null ? void 0 : c.focus();
|
|
324
324
|
}
|
|
325
325
|
},
|
|
326
|
-
|
|
326
|
+
r,
|
|
327
327
|
a
|
|
328
328
|
), {
|
|
329
329
|
containerProps: {
|
|
@@ -339,38 +339,38 @@ function je({
|
|
|
339
339
|
selectProps: {
|
|
340
340
|
tabIndex: -1,
|
|
341
341
|
autoComplete: e,
|
|
342
|
-
disabled:
|
|
343
|
-
required:
|
|
342
|
+
disabled: n,
|
|
343
|
+
required: i,
|
|
344
344
|
name: t,
|
|
345
|
-
value: Array.from(
|
|
346
|
-
onChange: (c) =>
|
|
345
|
+
value: Array.from(r.selectedKeys).map((c) => c.toString()),
|
|
346
|
+
onChange: (c) => r.setSelectedKeys(c.target.value),
|
|
347
347
|
multiple: !0
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
351
|
function Re(e) {
|
|
352
|
-
const { state: t, triggerRef:
|
|
352
|
+
const { state: t, triggerRef: n, name: i, isDisabled: a } = e, r = `${e.label}-hidden`, l = z(null), { containerProps: s, selectProps: c } = je(
|
|
353
353
|
{ ...e, selectRef: l },
|
|
354
354
|
t,
|
|
355
|
-
|
|
355
|
+
n
|
|
356
356
|
);
|
|
357
|
-
return t.collection.size <= 300 ? /* @__PURE__ */
|
|
357
|
+
return t.collection.size <= 300 ? /* @__PURE__ */ o(
|
|
358
358
|
"div",
|
|
359
359
|
{
|
|
360
360
|
...s,
|
|
361
361
|
"data-testid": "hidden-select-container",
|
|
362
362
|
children: /* @__PURE__ */ g("label", { children: [
|
|
363
|
-
|
|
363
|
+
r,
|
|
364
364
|
/* @__PURE__ */ g(
|
|
365
365
|
"select",
|
|
366
366
|
{
|
|
367
367
|
...c,
|
|
368
368
|
ref: l,
|
|
369
369
|
children: [
|
|
370
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ o("option", {}),
|
|
371
371
|
[...t.collection.getKeys()].map((u) => {
|
|
372
372
|
const d = t.collection.getItem(u);
|
|
373
|
-
return d && d.type === "item" ? /* @__PURE__ */
|
|
373
|
+
return d && d.type === "item" ? /* @__PURE__ */ o(
|
|
374
374
|
"option",
|
|
375
375
|
{
|
|
376
376
|
value: d.key,
|
|
@@ -384,12 +384,12 @@ function Re(e) {
|
|
|
384
384
|
)
|
|
385
385
|
] })
|
|
386
386
|
}
|
|
387
|
-
) :
|
|
387
|
+
) : i ? /* @__PURE__ */ o(
|
|
388
388
|
"input",
|
|
389
389
|
{
|
|
390
390
|
type: "hidden",
|
|
391
391
|
autoComplete: c.autoComplete,
|
|
392
|
-
name:
|
|
392
|
+
name: i,
|
|
393
393
|
disabled: a,
|
|
394
394
|
value: Array.from(t.selectedKeys).map((u) => u.toString()) ?? [""]
|
|
395
395
|
}
|
|
@@ -401,37 +401,37 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
|
|
|
401
401
|
}, He = ({
|
|
402
402
|
state: { selectedItems: e },
|
|
403
403
|
isDisabled: t,
|
|
404
|
-
parentWidth:
|
|
405
|
-
onClear:
|
|
404
|
+
parentWidth: n,
|
|
405
|
+
onClear: i,
|
|
406
406
|
triggerRef: a,
|
|
407
|
-
isClearable:
|
|
407
|
+
isClearable: r
|
|
408
408
|
}) => {
|
|
409
409
|
const l = B(M);
|
|
410
410
|
return /* @__PURE__ */ g(
|
|
411
411
|
"div",
|
|
412
412
|
{
|
|
413
|
-
className:
|
|
413
|
+
className: b.selectValueTag,
|
|
414
414
|
"data-disabled": t || void 0,
|
|
415
415
|
children: [
|
|
416
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ o(
|
|
417
417
|
"span",
|
|
418
418
|
{
|
|
419
|
-
className:
|
|
420
|
-
style: { maxWidth:
|
|
419
|
+
className: b.truncate,
|
|
420
|
+
style: { maxWidth: n - 92 },
|
|
421
421
|
children: e != null && e.length && e.length > 1 ? `${e.length} ${l.format("chosen")}` : e == null ? void 0 : e[0].textValue
|
|
422
422
|
}
|
|
423
423
|
),
|
|
424
|
-
|
|
424
|
+
r && /* @__PURE__ */ o(
|
|
425
425
|
"button",
|
|
426
426
|
{
|
|
427
427
|
disabled: t,
|
|
428
428
|
"aria-label": l.format("clearAll"),
|
|
429
|
-
className:
|
|
429
|
+
className: b.clearButton,
|
|
430
430
|
onClick: () => {
|
|
431
431
|
var s;
|
|
432
|
-
|
|
432
|
+
i(), (s = a == null ? void 0 : a.current) == null || s.focus();
|
|
433
433
|
},
|
|
434
|
-
children: /* @__PURE__ */
|
|
434
|
+
children: /* @__PURE__ */ o(
|
|
435
435
|
ye,
|
|
436
436
|
{
|
|
437
437
|
width: 20,
|
|
@@ -446,10 +446,10 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
|
|
|
446
446
|
}, Ue = ({
|
|
447
447
|
autoFocus: e,
|
|
448
448
|
excludeFromTabOrder: t,
|
|
449
|
-
isDisabled:
|
|
450
|
-
size:
|
|
449
|
+
isDisabled: n,
|
|
450
|
+
size: i = "large",
|
|
451
451
|
isOpen: a,
|
|
452
|
-
isInvalid:
|
|
452
|
+
isInvalid: r,
|
|
453
453
|
selectionMode: l,
|
|
454
454
|
state: { selectedItems: s },
|
|
455
455
|
placeholder: c,
|
|
@@ -457,38 +457,38 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
|
|
|
457
457
|
triggerRef: d,
|
|
458
458
|
...y
|
|
459
459
|
}) => {
|
|
460
|
-
const { buttonProps:
|
|
461
|
-
{ autoFocus: e, excludeFromTabOrder: t, isDisabled:
|
|
460
|
+
const { buttonProps: p } = $e(
|
|
461
|
+
{ autoFocus: e, excludeFromTabOrder: t, isDisabled: n, ...y },
|
|
462
462
|
d
|
|
463
463
|
), m = l === "multiple";
|
|
464
464
|
return /* @__PURE__ */ g(
|
|
465
465
|
"div",
|
|
466
466
|
{
|
|
467
|
-
className:
|
|
468
|
-
"data-disabled":
|
|
467
|
+
className: b.triggerContainer,
|
|
468
|
+
"data-disabled": n || void 0,
|
|
469
469
|
children: [
|
|
470
470
|
/* @__PURE__ */ g(
|
|
471
471
|
"button",
|
|
472
472
|
{
|
|
473
|
-
...
|
|
473
|
+
...p,
|
|
474
474
|
autoFocus: e,
|
|
475
|
-
className: P(
|
|
476
|
-
[
|
|
475
|
+
className: P(b.trigger, {
|
|
476
|
+
[b.medium]: i === "medium"
|
|
477
477
|
}),
|
|
478
|
-
"data-disabled":
|
|
479
|
-
"data-invalid":
|
|
478
|
+
"data-disabled": n || void 0,
|
|
479
|
+
"data-invalid": r || void 0,
|
|
480
480
|
"data-open": a || void 0,
|
|
481
481
|
ref: d,
|
|
482
482
|
type: "button",
|
|
483
483
|
children: [
|
|
484
|
-
m && !s ? /* @__PURE__ */
|
|
485
|
-
m ? null : /* @__PURE__ */
|
|
486
|
-
/* @__PURE__ */
|
|
484
|
+
m && !s ? /* @__PURE__ */ o("span", { children: c }) : null,
|
|
485
|
+
m ? null : /* @__PURE__ */ o("span", { children: s ? s[0].textValue : c }),
|
|
486
|
+
/* @__PURE__ */ o(
|
|
487
487
|
"div",
|
|
488
488
|
{
|
|
489
|
-
className:
|
|
489
|
+
className: b.icon,
|
|
490
490
|
"aria-hidden": "true",
|
|
491
|
-
children: /* @__PURE__ */
|
|
491
|
+
children: /* @__PURE__ */ o(ve, { size: 20 })
|
|
492
492
|
}
|
|
493
493
|
)
|
|
494
494
|
]
|
|
@@ -501,8 +501,8 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
|
|
|
501
501
|
}, K = ({
|
|
502
502
|
state: e,
|
|
503
503
|
errorMessage: t
|
|
504
|
-
}) => /* @__PURE__ */
|
|
505
|
-
({ isClearable: e = !0, popover: t, ...
|
|
504
|
+
}) => /* @__PURE__ */ o(xe.Provider, { value: { ...e.displayValidation }, children: /* @__PURE__ */ o(Se, { children: t }) }), qe = V.forwardRef(
|
|
505
|
+
({ isClearable: e = !0, popover: t, ...n }, i) => {
|
|
506
506
|
const a = {
|
|
507
507
|
selectionMode: "single",
|
|
508
508
|
errorPosition: "top",
|
|
@@ -510,29 +510,29 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
|
|
|
510
510
|
isClearable: e,
|
|
511
511
|
size: "large",
|
|
512
512
|
popover: t,
|
|
513
|
-
...
|
|
514
|
-
},
|
|
513
|
+
...n
|
|
514
|
+
}, r = j(i), l = ze(a), s = B(M), { labelProps: c, triggerProps: u, valueProps: d, menuProps: y } = Le(
|
|
515
515
|
a,
|
|
516
516
|
l,
|
|
517
|
-
|
|
518
|
-
), { width:
|
|
517
|
+
r
|
|
518
|
+
), { width: p } = me(r.current, {
|
|
519
519
|
includePadding: !0
|
|
520
520
|
});
|
|
521
521
|
return /* @__PURE__ */ g(
|
|
522
522
|
H,
|
|
523
523
|
{
|
|
524
524
|
...a,
|
|
525
|
-
className: P(
|
|
525
|
+
className: P(b.wrapper, a.className),
|
|
526
526
|
children: [
|
|
527
|
-
/* @__PURE__ */
|
|
527
|
+
/* @__PURE__ */ o(
|
|
528
528
|
Re,
|
|
529
529
|
{
|
|
530
530
|
...a,
|
|
531
531
|
state: l,
|
|
532
|
-
triggerRef:
|
|
532
|
+
triggerRef: r
|
|
533
533
|
}
|
|
534
534
|
),
|
|
535
|
-
/* @__PURE__ */
|
|
535
|
+
/* @__PURE__ */ o(pe, { popover: t, children: a.label && /* @__PURE__ */ o(
|
|
536
536
|
he,
|
|
537
537
|
{
|
|
538
538
|
...c,
|
|
@@ -540,35 +540,35 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
|
|
|
540
540
|
children: a.label
|
|
541
541
|
}
|
|
542
542
|
) }),
|
|
543
|
-
a.description && /* @__PURE__ */
|
|
544
|
-
a.errorPosition === "top" && /* @__PURE__ */
|
|
543
|
+
a.description && /* @__PURE__ */ o(ge, { slot: "description", children: a.description }),
|
|
544
|
+
a.errorPosition === "top" && /* @__PURE__ */ o(
|
|
545
545
|
K,
|
|
546
546
|
{
|
|
547
547
|
...a,
|
|
548
548
|
state: l
|
|
549
549
|
}
|
|
550
550
|
),
|
|
551
|
-
/* @__PURE__ */
|
|
551
|
+
/* @__PURE__ */ o(
|
|
552
552
|
Ue,
|
|
553
553
|
{
|
|
554
554
|
...a,
|
|
555
555
|
...u,
|
|
556
556
|
isInvalid: l.displayValidation.isInvalid,
|
|
557
|
-
triggerRef:
|
|
557
|
+
triggerRef: r,
|
|
558
558
|
state: l,
|
|
559
|
-
children: a.selectionMode === "multiple" && l.selectedItems ? /* @__PURE__ */
|
|
559
|
+
children: a.selectionMode === "multiple" && l.selectedItems ? /* @__PURE__ */ o("span", { ...d, children: /* @__PURE__ */ o(
|
|
560
560
|
He,
|
|
561
561
|
{
|
|
562
562
|
...a,
|
|
563
563
|
state: l,
|
|
564
|
-
parentWidth:
|
|
564
|
+
parentWidth: p,
|
|
565
565
|
onClear: () => l.selectionManager.clearSelection(),
|
|
566
|
-
triggerRef:
|
|
566
|
+
triggerRef: r
|
|
567
567
|
}
|
|
568
568
|
) }) : null
|
|
569
569
|
}
|
|
570
570
|
),
|
|
571
|
-
a.errorPosition === "bottom" && /* @__PURE__ */
|
|
571
|
+
a.errorPosition === "bottom" && /* @__PURE__ */ o(
|
|
572
572
|
K,
|
|
573
573
|
{
|
|
574
574
|
...a,
|
|
@@ -582,20 +582,20 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
|
|
|
582
582
|
onOpenChange: (m) => {
|
|
583
583
|
m || l.close();
|
|
584
584
|
},
|
|
585
|
-
triggerRef:
|
|
586
|
-
style: { width:
|
|
585
|
+
triggerRef: r,
|
|
586
|
+
style: { width: p },
|
|
587
587
|
children: [
|
|
588
|
-
a.isSelectableAll && /* @__PURE__ */
|
|
588
|
+
a.isSelectableAll && /* @__PURE__ */ o(
|
|
589
589
|
k,
|
|
590
590
|
{
|
|
591
591
|
isSelected: l.selectionManager.isSelectAll,
|
|
592
592
|
isIndeterminate: !l.selectionManager.isSelectAll && !l.selectionManager.isEmpty,
|
|
593
|
-
className:
|
|
593
|
+
className: b.selectAll,
|
|
594
594
|
onChange: () => l.selectionManager.toggleSelectAll(),
|
|
595
595
|
children: s.format("selectAll")
|
|
596
596
|
}
|
|
597
597
|
),
|
|
598
|
-
/* @__PURE__ */
|
|
598
|
+
/* @__PURE__ */ o(
|
|
599
599
|
Ee,
|
|
600
600
|
{
|
|
601
601
|
...y,
|
|
@@ -605,14 +605,14 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
|
|
|
605
605
|
]
|
|
606
606
|
}
|
|
607
607
|
),
|
|
608
|
-
a.showTags && !!l.selectedItems && /* @__PURE__ */
|
|
608
|
+
a.showTags && !!l.selectedItems && /* @__PURE__ */ o(
|
|
609
609
|
R,
|
|
610
610
|
{
|
|
611
611
|
"aria-label": s.format("selectedItems"),
|
|
612
612
|
selectionBehavior: "toggle",
|
|
613
613
|
onRemove: (m) => l.selectionManager.toggleSelection(Array.from(m)[0]),
|
|
614
|
-
className:
|
|
615
|
-
children: /* @__PURE__ */
|
|
614
|
+
className: b.tagGroup,
|
|
615
|
+
children: /* @__PURE__ */ o(G, { items: l.selectedItems, children: (m) => /* @__PURE__ */ o(
|
|
616
616
|
W,
|
|
617
617
|
{
|
|
618
618
|
textValue: m.textValue,
|
|
@@ -630,21 +630,21 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
|
|
|
630
630
|
);
|
|
631
631
|
}
|
|
632
632
|
), Xe = V.forwardRef(
|
|
633
|
-
({ options: e, ...t },
|
|
633
|
+
({ options: e, ...t }, n) => /* @__PURE__ */ o(
|
|
634
634
|
qe,
|
|
635
635
|
{
|
|
636
636
|
...t,
|
|
637
637
|
items: e,
|
|
638
|
-
ref:
|
|
639
|
-
children: (
|
|
638
|
+
ref: n,
|
|
639
|
+
children: (i) => i.children ? /* @__PURE__ */ o(
|
|
640
640
|
we,
|
|
641
641
|
{
|
|
642
|
-
items:
|
|
643
|
-
title:
|
|
644
|
-
children: (a) => /* @__PURE__ */
|
|
642
|
+
items: i.children,
|
|
643
|
+
title: i.name,
|
|
644
|
+
children: (a) => /* @__PURE__ */ o(_, { textValue: a.textValue, children: a.name })
|
|
645
645
|
},
|
|
646
|
-
|
|
647
|
-
) : /* @__PURE__ */
|
|
646
|
+
i.name
|
|
647
|
+
) : /* @__PURE__ */ o(_, { textValue: i.textValue, children: i.name })
|
|
648
648
|
}
|
|
649
649
|
)
|
|
650
650
|
);
|