@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,41 +1,41 @@
|
|
|
1
1
|
import { jsxs as xe, jsx as A } from "react/jsx-runtime";
|
|
2
2
|
import _, { useRef as y, useMemo as J, useEffect as ce, useState as z, useCallback as de, forwardRef as bu, createContext as Ee } from "react";
|
|
3
|
-
import { f as ae, b as De, e as Te, $ as Cu } from "./Button-
|
|
4
|
-
import { $ as mu, c as xu, d as hu, e as fu, a as vu, f as Au } from "./utils-
|
|
5
|
-
import { $ as Bu, F as he } from "./FieldError-
|
|
3
|
+
import { f as ae, b as De, e as Te, $ as Cu } from "./Button-B6lxIKPk.js";
|
|
4
|
+
import { $ as mu, c as xu, d as hu, e as fu, a as vu, f as Au } from "./utils-BMBoiyL7.js";
|
|
5
|
+
import { $ as Bu, F as he } from "./FieldError-C4kD4yJZ.js";
|
|
6
6
|
import { $ as Eu } from "./Form-CXcEMuBf.js";
|
|
7
|
-
import { $ as ye } from "./Group-
|
|
8
|
-
import { $ as Fe, a as Du } from "./Input-
|
|
9
|
-
import { d as Tu, e as yu, f as Se, g as Fu } from "./ListBox-
|
|
10
|
-
import { p as Su, h as Lu, i as gu, n as
|
|
11
|
-
import { $ as Le } from "./Text-
|
|
12
|
-
import { b as
|
|
7
|
+
import { $ as ye } from "./Group-C2hEIsGV.js";
|
|
8
|
+
import { $ as Fe, a as Du } from "./Input-CkTOajNJ.js";
|
|
9
|
+
import { d as Tu, e as yu, f as Se, g as Fu } from "./ListBox-2eEa1l0M.js";
|
|
10
|
+
import { p as Su, h as Lu, i as gu, n as Ku } from "./Dialog-DOyFzvUa.js";
|
|
11
|
+
import { $ as Le } from "./Text-BpERRete.js";
|
|
12
|
+
import { b as ku, c as Pu } from "./Collection-j_iWeuZo.js";
|
|
13
13
|
import { $ as Iu } from "./filterDOMProps-wsa9OcNI.js";
|
|
14
|
-
import { a as Ou, g as Ru } from "./OverlayArrow-
|
|
15
|
-
import { $ as Vu } from "./useFilter-
|
|
16
|
-
import { d as
|
|
17
|
-
import { e as
|
|
18
|
-
import { $ as zu } from "./useSingleSelectListState-
|
|
19
|
-
import { b as Nu } from "./useListState-
|
|
14
|
+
import { a as Ou, g as Ru } from "./OverlayArrow-Bh_G2tJ3.js";
|
|
15
|
+
import { $ as Vu } from "./useFilter-DHcouDzv.js";
|
|
16
|
+
import { d as ju, $ as wu } from "./useFormValidation-DdIIVZ5j.js";
|
|
17
|
+
import { e as Gu, f as ge, h as Mu } from "./SelectionManager-D-4ThfPZ.js";
|
|
18
|
+
import { $ as zu } from "./useSingleSelectListState-lyai-bC_.js";
|
|
19
|
+
import { b as Nu } from "./useListState-D2yPZrFZ.js";
|
|
20
20
|
import { $ as Uu } from "./useControlledState-u436Wbp1.js";
|
|
21
|
-
import { e as qu, a as fe } from "./mergeProps-
|
|
22
|
-
import { c as Wu, b as _u } from "./utils-
|
|
23
|
-
import { c as Xu } from "./usePress-
|
|
24
|
-
import { $ as ve } from "./useLabels-
|
|
21
|
+
import { e as qu, a as fe } from "./mergeProps-Ct8m5-xW.js";
|
|
22
|
+
import { c as Wu, b as _u } from "./utils-CrT5PVBA.js";
|
|
23
|
+
import { c as Xu } from "./usePress-4yZ5a87p.js";
|
|
24
|
+
import { $ as ve } from "./useLabels-D24on06F.js";
|
|
25
25
|
import { $ as Zu } from "./useUpdateEffect-CCDx8D4X.js";
|
|
26
|
-
import { o as be } from "./useHover-
|
|
27
|
-
import { a as Hu } from "./Separator-
|
|
28
|
-
import { c as Ju } from "./ListKeyboardDelegate-
|
|
29
|
-
import { $ as Yu } from "./useLocalizedStringFormatter-
|
|
30
|
-
import { $ as Qu } from "./useTextField-
|
|
31
|
-
import { c as Ce } from "./clsx-
|
|
32
|
-
import { a as en, L as un } from "./Label-
|
|
33
|
-
import { T as Ae } from "./Text-
|
|
34
|
-
import { b as nn, L as on, a as tn, c as ln } from "./ListBoxSection-
|
|
26
|
+
import { o as be } from "./useHover-zCCNtF6g.js";
|
|
27
|
+
import { a as Hu } from "./Separator-COlhRmJF.js";
|
|
28
|
+
import { c as Ju } from "./ListKeyboardDelegate-Dyu4eFtP.js";
|
|
29
|
+
import { $ as Yu } from "./useLocalizedStringFormatter-CSEh15AZ.js";
|
|
30
|
+
import { $ as Qu } from "./useTextField-DjxrmW7d.js";
|
|
31
|
+
import { c as Ce } from "./clsx-jbLnTBqA.js";
|
|
32
|
+
import { a as en, L as un } from "./Label-CV9p0K2n.js";
|
|
33
|
+
import { T as Ae } from "./Text-BQe1I4-r.js";
|
|
34
|
+
import { b as nn, L as on, a as tn, c as ln } from "./ListBoxSection-dksiACMZ.js";
|
|
35
35
|
import { C as cn } from "./chevron-down-DmZMdOiC.js";
|
|
36
|
-
import { u as pn } from "./useLocalizedStringFormatter-
|
|
37
|
-
import './assets/ComboBox.css';var
|
|
38
|
-
|
|
36
|
+
import { u as pn } from "./useLocalizedStringFormatter-aOhh7wdl.js";
|
|
37
|
+
import './assets/ComboBox.css';var Ke = {};
|
|
38
|
+
Ke = {
|
|
39
39
|
buttonLabel: "عرض المقترحات",
|
|
40
40
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
41
41
|
one: () => `${u.number(e.optionCount)} خيار`,
|
|
@@ -54,8 +54,8 @@ ke = {
|
|
|
54
54
|
listboxLabel: "مقترحات",
|
|
55
55
|
selectedAnnouncement: (e) => `${e.optionText}، محدد`
|
|
56
56
|
};
|
|
57
|
-
var
|
|
58
|
-
|
|
57
|
+
var ke = {};
|
|
58
|
+
ke = {
|
|
59
59
|
buttonLabel: "Покажи предложения",
|
|
60
60
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
61
61
|
one: () => `${u.number(e.optionCount)} опция`,
|
|
@@ -174,8 +174,8 @@ Ve = {
|
|
|
174
174
|
buttonLabel: "Show suggestions",
|
|
175
175
|
listboxLabel: "Suggestions"
|
|
176
176
|
};
|
|
177
|
-
var
|
|
178
|
-
|
|
177
|
+
var je = {};
|
|
178
|
+
je = {
|
|
179
179
|
buttonLabel: "Mostrar sugerencias",
|
|
180
180
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
181
181
|
one: () => `${u.number(e.optionCount)} opción`,
|
|
@@ -194,8 +194,8 @@ we = {
|
|
|
194
194
|
listboxLabel: "Sugerencias",
|
|
195
195
|
selectedAnnouncement: (e) => `${e.optionText}, seleccionado`
|
|
196
196
|
};
|
|
197
|
-
var
|
|
198
|
-
|
|
197
|
+
var we = {};
|
|
198
|
+
we = {
|
|
199
199
|
buttonLabel: "Kuva soovitused",
|
|
200
200
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
201
201
|
one: () => `${u.number(e.optionCount)} valik`,
|
|
@@ -214,8 +214,8 @@ Ge = {
|
|
|
214
214
|
listboxLabel: "Soovitused",
|
|
215
215
|
selectedAnnouncement: (e) => `${e.optionText}, valitud`
|
|
216
216
|
};
|
|
217
|
-
var
|
|
218
|
-
|
|
217
|
+
var Ge = {};
|
|
218
|
+
Ge = {
|
|
219
219
|
buttonLabel: "Näytä ehdotukset",
|
|
220
220
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
221
221
|
one: () => `${u.number(e.optionCount)} vaihtoehto`,
|
|
@@ -234,8 +234,8 @@ Me = {
|
|
|
234
234
|
listboxLabel: "Ehdotukset",
|
|
235
235
|
selectedAnnouncement: (e) => `${e.optionText}, valittu`
|
|
236
236
|
};
|
|
237
|
-
var
|
|
238
|
-
|
|
237
|
+
var Me = {};
|
|
238
|
+
Me = {
|
|
239
239
|
buttonLabel: "Afficher les suggestions",
|
|
240
240
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
241
241
|
one: () => `${u.number(e.optionCount)} option`,
|
|
@@ -694,8 +694,8 @@ du = {
|
|
|
694
694
|
listboxLabel: "建议",
|
|
695
695
|
selectedAnnouncement: (e) => `${e.optionText}, 已选择`
|
|
696
696
|
};
|
|
697
|
-
var
|
|
698
|
-
|
|
697
|
+
var ru = {};
|
|
698
|
+
ru = {
|
|
699
699
|
buttonLabel: "顯示建議",
|
|
700
700
|
countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
|
|
701
701
|
one: () => `${u.number(e.optionCount)} 選項`,
|
|
@@ -714,19 +714,19 @@ su = {
|
|
|
714
714
|
listboxLabel: "建議",
|
|
715
715
|
selectedAnnouncement: (e) => `${e.optionText}, 已選取`
|
|
716
716
|
};
|
|
717
|
-
var
|
|
718
|
-
|
|
719
|
-
"ar-AE":
|
|
720
|
-
"bg-BG":
|
|
717
|
+
var su = {};
|
|
718
|
+
su = {
|
|
719
|
+
"ar-AE": Ke,
|
|
720
|
+
"bg-BG": ke,
|
|
721
721
|
"cs-CZ": Pe,
|
|
722
722
|
"da-DK": Ie,
|
|
723
723
|
"de-DE": Oe,
|
|
724
724
|
"el-GR": Re,
|
|
725
725
|
"en-US": Ve,
|
|
726
|
-
"es-ES":
|
|
727
|
-
"et-EE":
|
|
728
|
-
"fi-FI":
|
|
729
|
-
"fr-FR":
|
|
726
|
+
"es-ES": je,
|
|
727
|
+
"et-EE": we,
|
|
728
|
+
"fi-FI": Ge,
|
|
729
|
+
"fr-FR": Me,
|
|
730
730
|
"he-IL": ze,
|
|
731
731
|
"hr-HR": Ne,
|
|
732
732
|
"hu-HU": Ue,
|
|
@@ -749,15 +749,15 @@ ru = {
|
|
|
749
749
|
"tr-TR": cu,
|
|
750
750
|
"uk-UA": pu,
|
|
751
751
|
"zh-CN": du,
|
|
752
|
-
"zh-TW":
|
|
752
|
+
"zh-TW": ru
|
|
753
753
|
};
|
|
754
754
|
function dn(e) {
|
|
755
755
|
return e && e.__esModule ? e.default : e;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
758
|
-
let { buttonRef: l, popoverRef: p, inputRef: o, listBoxRef:
|
|
757
|
+
function rn(e, u) {
|
|
758
|
+
let { buttonRef: l, popoverRef: p, inputRef: o, listBoxRef: r, keyboardDelegate: B, layoutDelegate: b, shouldFocusWrap: x, isReadOnly: F, isDisabled: g } = e, h = y(null);
|
|
759
759
|
l = l ?? h;
|
|
760
|
-
let E = Yu(dn(
|
|
760
|
+
let E = Yu(dn(su), "@react-aria/combobox"), { menuTriggerProps: D, menuProps: T } = Su({
|
|
761
761
|
type: "listbox",
|
|
762
762
|
isDisabled: g || F
|
|
763
763
|
}, u, l);
|
|
@@ -767,15 +767,15 @@ function sn(e, u) {
|
|
|
767
767
|
let { collection: f } = u, { disabledKeys: S } = u.selectionManager, i = J(() => B || new Ju({
|
|
768
768
|
collection: f,
|
|
769
769
|
disabledKeys: S,
|
|
770
|
-
ref:
|
|
770
|
+
ref: r,
|
|
771
771
|
layoutDelegate: b
|
|
772
772
|
}), [
|
|
773
773
|
B,
|
|
774
774
|
b,
|
|
775
775
|
f,
|
|
776
776
|
S,
|
|
777
|
-
|
|
778
|
-
]), { collectionProps: R } =
|
|
777
|
+
r
|
|
778
|
+
]), { collectionProps: R } = Gu({
|
|
779
779
|
selectionManager: u.selectionManager,
|
|
780
780
|
keyboardDelegate: i,
|
|
781
781
|
disallowTypeAhead: !0,
|
|
@@ -789,8 +789,8 @@ function sn(e, u) {
|
|
|
789
789
|
switch (n.key) {
|
|
790
790
|
case "Enter":
|
|
791
791
|
case "Tab":
|
|
792
|
-
if (u.isOpen && n.key === "Enter" && n.preventDefault(), u.isOpen &&
|
|
793
|
-
let c =
|
|
792
|
+
if (u.isOpen && n.key === "Enter" && n.preventDefault(), u.isOpen && r.current && u.selectionManager.focusedKey != null && u.selectionManager.isLink(u.selectionManager.focusedKey)) {
|
|
793
|
+
let c = r.current.querySelector(`[data-key="${CSS.escape(u.selectionManager.focusedKey.toString())}"]`);
|
|
794
794
|
if (n.key === "Enter" && c instanceof HTMLAnchorElement) {
|
|
795
795
|
let d = u.collection.getItem(u.selectionManager.focusedKey);
|
|
796
796
|
d && Y.open(c, n, d.props.href, d.props.routerOptions);
|
|
@@ -814,11 +814,11 @@ function sn(e, u) {
|
|
|
814
814
|
}
|
|
815
815
|
}, a = (n) => {
|
|
816
816
|
var c;
|
|
817
|
-
let d = (l == null ? void 0 : l.current) && l.current === n.relatedTarget,
|
|
818
|
-
d ||
|
|
817
|
+
let d = (l == null ? void 0 : l.current) && l.current === n.relatedTarget, G = (c = p.current) === null || c === void 0 ? void 0 : c.contains(n.relatedTarget);
|
|
818
|
+
d || G || (e.onBlur && e.onBlur(n), u.setFocused(!1));
|
|
819
819
|
}, N = (n) => {
|
|
820
820
|
u.isFocused || (e.onFocus && e.onFocus(n), u.setFocused(!0));
|
|
821
|
-
}, { isInvalid: ee, validationErrors: P, validationDetails:
|
|
821
|
+
}, { isInvalid: ee, validationErrors: P, validationDetails: K } = u.displayValidation, { labelProps: v, inputProps: X, descriptionProps: ue, errorMessageProps: U } = Qu({
|
|
822
822
|
...e,
|
|
823
823
|
onChange: u.setInputValue,
|
|
824
824
|
onKeyDown: F ? e.onKeyDown : qu(u.isOpen && R.onKeyDown, Q, e.onKeyDown),
|
|
@@ -828,13 +828,13 @@ function sn(e, u) {
|
|
|
828
828
|
onFocus: N,
|
|
829
829
|
autoComplete: "off",
|
|
830
830
|
validate: void 0,
|
|
831
|
-
[
|
|
831
|
+
[ju]: u
|
|
832
832
|
}, o), ne = (n) => {
|
|
833
833
|
if (n.pointerType === "touch") {
|
|
834
834
|
var c;
|
|
835
835
|
(c = o.current) === null || c === void 0 || c.focus(), u.toggle(null, "manual");
|
|
836
836
|
}
|
|
837
|
-
},
|
|
837
|
+
}, s = (n) => {
|
|
838
838
|
if (n.pointerType !== "touch") {
|
|
839
839
|
var c;
|
|
840
840
|
(c = o.current) === null || c === void 0 || c.focus(), u.toggle(n.pointerType === "keyboard" || n.pointerType === "virtual" ? "first" : null, "manual");
|
|
@@ -854,23 +854,23 @@ function sn(e, u) {
|
|
|
854
854
|
n.preventDefault(), (c = o.current) === null || c === void 0 || c.focus();
|
|
855
855
|
return;
|
|
856
856
|
}
|
|
857
|
-
let d = n.target.getBoundingClientRect(),
|
|
858
|
-
if (
|
|
857
|
+
let d = n.target.getBoundingClientRect(), G = n.changedTouches[0], H = Math.ceil(d.left + 0.5 * d.width), re = Math.ceil(d.top + 0.5 * d.height);
|
|
858
|
+
if (G.clientX === H && G.clientY === re) {
|
|
859
859
|
var ie;
|
|
860
860
|
n.preventDefault(), (ie = o.current) === null || ie === void 0 || ie.focus(), u.toggle(null, "manual"), L.current = n.timeStamp;
|
|
861
861
|
}
|
|
862
862
|
}, C = u.selectionManager.focusedKey != null && u.isOpen ? u.collection.getItem(u.selectionManager.focusedKey) : void 0;
|
|
863
863
|
var q;
|
|
864
|
-
let
|
|
864
|
+
let k = (q = C == null ? void 0 : C.parentKey) !== null && q !== void 0 ? q : null;
|
|
865
865
|
var W;
|
|
866
|
-
let O = (W = u.selectionManager.focusedKey) !== null && W !== void 0 ? W : null, Z = y(
|
|
866
|
+
let O = (W = u.selectionManager.focusedKey) !== null && W !== void 0 ? W : null, Z = y(k), j = y(O);
|
|
867
867
|
ce(() => {
|
|
868
|
-
if (be() && C != null && O != null && O !==
|
|
869
|
-
let c = u.selectionManager.isSelected(O), d =
|
|
868
|
+
if (be() && C != null && O != null && O !== j.current) {
|
|
869
|
+
let c = u.selectionManager.isSelected(O), d = k != null ? u.collection.getItem(k) : null, G = (d == null ? void 0 : d["aria-label"]) || (typeof (d == null ? void 0 : d.rendered) == "string" ? d.rendered : "") || "";
|
|
870
870
|
var n;
|
|
871
871
|
let H = E.format("focusAnnouncement", {
|
|
872
|
-
isGroupChange: (n = d &&
|
|
873
|
-
groupTitle:
|
|
872
|
+
isGroupChange: (n = d && k !== Z.current) !== null && n !== void 0 ? n : !1,
|
|
873
|
+
groupTitle: G,
|
|
874
874
|
groupCount: d ? [
|
|
875
875
|
...ge(d, u.collection)
|
|
876
876
|
].length : 0,
|
|
@@ -879,18 +879,18 @@ function sn(e, u) {
|
|
|
879
879
|
});
|
|
880
880
|
ae(H);
|
|
881
881
|
}
|
|
882
|
-
Z.current =
|
|
882
|
+
Z.current = k, j.current = O;
|
|
883
883
|
});
|
|
884
|
-
let
|
|
884
|
+
let w = Hu(u.collection), te = y(w), le = y(u.isOpen);
|
|
885
885
|
ce(() => {
|
|
886
886
|
let n = u.isOpen !== le.current && (u.selectionManager.focusedKey == null || be());
|
|
887
|
-
if (u.isOpen && (n ||
|
|
887
|
+
if (u.isOpen && (n || w !== te.current)) {
|
|
888
888
|
let c = E.format("countAnnouncement", {
|
|
889
|
-
optionCount:
|
|
889
|
+
optionCount: w
|
|
890
890
|
});
|
|
891
891
|
ae(c);
|
|
892
892
|
}
|
|
893
|
-
te.current =
|
|
893
|
+
te.current = w, le.current = u.isOpen;
|
|
894
894
|
});
|
|
895
895
|
let pe = y(u.selectedKey);
|
|
896
896
|
return ce(() => {
|
|
@@ -911,7 +911,7 @@ function sn(e, u) {
|
|
|
911
911
|
o,
|
|
912
912
|
p
|
|
913
913
|
]), Zu(() => {
|
|
914
|
-
!C && o.current && Wu(_u(o.current)) === o.current &&
|
|
914
|
+
!C && o.current && Wu(_u(o.current)) === o.current && Mu(o.current, null);
|
|
915
915
|
}, [
|
|
916
916
|
C
|
|
917
917
|
]), {
|
|
@@ -922,7 +922,7 @@ function sn(e, u) {
|
|
|
922
922
|
excludeFromTabOrder: !0,
|
|
923
923
|
preventFocusOnPress: !0,
|
|
924
924
|
onPress: ne,
|
|
925
|
-
onPressStart:
|
|
925
|
+
onPressStart: s,
|
|
926
926
|
isDisabled: g || F
|
|
927
927
|
},
|
|
928
928
|
inputProps: fe(X, {
|
|
@@ -949,12 +949,12 @@ function sn(e, u) {
|
|
|
949
949
|
errorMessageProps: U,
|
|
950
950
|
isInvalid: ee,
|
|
951
951
|
validationErrors: P,
|
|
952
|
-
validationDetails:
|
|
952
|
+
validationDetails: K
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function sn(e) {
|
|
956
956
|
var u;
|
|
957
|
-
let { defaultFilter: l, menuTrigger: p = "input", allowsEmptyCollection: o = !1, allowsCustomValue:
|
|
957
|
+
let { defaultFilter: l, menuTrigger: p = "input", allowsEmptyCollection: o = !1, allowsCustomValue: r, shouldCloseOnBlur: B = !0 } = e, [b, x] = z(!1), [F, g] = z(!1), [h, E] = z(null), D = (t) => {
|
|
958
958
|
e.onSelectionChange && e.onSelectionChange(t), t === i && (W(), C());
|
|
959
959
|
};
|
|
960
960
|
var T;
|
|
@@ -962,7 +962,7 @@ function rn(e) {
|
|
|
962
962
|
...e,
|
|
963
963
|
onSelectionChange: D,
|
|
964
964
|
items: (T = e.items) !== null && T !== void 0 ? T : e.defaultItems
|
|
965
|
-
}), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue, i, f) || "", e.onInputChange), [ee] = z(i), [P] = z(a),
|
|
965
|
+
}), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue, i, f) || "", e.onInputChange), [ee] = z(i), [P] = z(a), K = f, v = J(() => (
|
|
966
966
|
// No default filter if items are controlled.
|
|
967
967
|
e.items != null || !l ? f : $n(f, a, l)
|
|
968
968
|
), [
|
|
@@ -970,7 +970,7 @@ function rn(e) {
|
|
|
970
970
|
a,
|
|
971
971
|
l,
|
|
972
972
|
e.items
|
|
973
|
-
]), [X, ue] = z(v), U = y("focus"),
|
|
973
|
+
]), [X, ue] = z(v), U = y("focus"), s = Ou({
|
|
974
974
|
...e,
|
|
975
975
|
onOpenChange: (t) => {
|
|
976
976
|
e.onOpenChange && e.onOpenChange(t, t ? U.current : void 0), S.setFocused(t), t || S.setFocusedKey(null);
|
|
@@ -979,43 +979,43 @@ function rn(e) {
|
|
|
979
979
|
defaultOpen: void 0
|
|
980
980
|
}), I = (t = null, $) => {
|
|
981
981
|
let m = $ === "manual" || $ === "focus" && p === "focus";
|
|
982
|
-
(o || v.size > 0 || m &&
|
|
982
|
+
(o || v.size > 0 || m && K.size > 0 || e.items) && (m && !s.isOpen && e.items === void 0 && x(!0), U.current = $, E(t), s.open());
|
|
983
983
|
}, V = (t = null, $) => {
|
|
984
984
|
let m = $ === "manual" || $ === "focus" && p === "focus";
|
|
985
|
-
!(o || v.size > 0 || m &&
|
|
985
|
+
!(o || v.size > 0 || m && K.size > 0 || e.items) && !s.isOpen || (m && !s.isOpen && e.items === void 0 && x(!0), s.isOpen || (U.current = $), oe(t));
|
|
986
986
|
}, L = de(() => {
|
|
987
|
-
ue(b ?
|
|
987
|
+
ue(b ? K : v);
|
|
988
988
|
}, [
|
|
989
989
|
b,
|
|
990
|
-
|
|
990
|
+
K,
|
|
991
991
|
v
|
|
992
992
|
]), oe = de((t = null) => {
|
|
993
|
-
|
|
993
|
+
s.isOpen && L(), E(t), s.toggle();
|
|
994
994
|
}, [
|
|
995
|
-
|
|
995
|
+
s,
|
|
996
996
|
L
|
|
997
997
|
]), C = de(() => {
|
|
998
|
-
|
|
998
|
+
s.isOpen && (L(), s.close());
|
|
999
999
|
}, [
|
|
1000
|
-
|
|
1000
|
+
s,
|
|
1001
1001
|
L
|
|
1002
|
-
]), [q,
|
|
1002
|
+
]), [q, k] = z(a), W = () => {
|
|
1003
1003
|
var t, $;
|
|
1004
1004
|
let m = i != null && ($ = (t = f.getItem(i)) === null || t === void 0 ? void 0 : t.textValue) !== null && $ !== void 0 ? $ : "";
|
|
1005
|
-
|
|
1005
|
+
k(m), N(m);
|
|
1006
1006
|
};
|
|
1007
1007
|
var O, Z;
|
|
1008
|
-
let
|
|
1009
|
-
var
|
|
1010
|
-
let te = y(i != null && (
|
|
1008
|
+
let j = y((Z = (O = e.selectedKey) !== null && O !== void 0 ? O : e.defaultSelectedKey) !== null && Z !== void 0 ? Z : null);
|
|
1009
|
+
var w;
|
|
1010
|
+
let te = y(i != null && (w = (u = f.getItem(i)) === null || u === void 0 ? void 0 : u.textValue) !== null && w !== void 0 ? w : "");
|
|
1011
1011
|
ce(() => {
|
|
1012
1012
|
var t;
|
|
1013
|
-
F && (v.size > 0 || o) && !
|
|
1013
|
+
F && (v.size > 0 || o) && !s.isOpen && a !== q && p !== "manual" && I(null, "input"), !b && !o && s.isOpen && v.size === 0 && C(), i != null && i !== j.current && C(), a !== q && (S.setFocusedKey(null), x(!1), a === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && R(null)), i !== j.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? W() : q !== a && k(a);
|
|
1014
1014
|
var $;
|
|
1015
1015
|
let m = i != null && ($ = (t = f.getItem(i)) === null || t === void 0 ? void 0 : t.textValue) !== null && $ !== void 0 ? $ : "";
|
|
1016
|
-
!F && i != null && e.inputValue === void 0 && i ===
|
|
1016
|
+
!F && i != null && e.inputValue === void 0 && i === j.current && te.current !== m && (k(m), N(m)), j.current = i, te.current = m;
|
|
1017
1017
|
});
|
|
1018
|
-
let le =
|
|
1018
|
+
let le = wu({
|
|
1019
1019
|
...e,
|
|
1020
1020
|
value: J(() => ({
|
|
1021
1021
|
inputValue: a,
|
|
@@ -1025,44 +1025,44 @@ function rn(e) {
|
|
|
1025
1025
|
i
|
|
1026
1026
|
])
|
|
1027
1027
|
}), pe = () => {
|
|
1028
|
-
|
|
1028
|
+
r && i == null ? n() : c();
|
|
1029
1029
|
}, n = () => {
|
|
1030
|
-
|
|
1030
|
+
j.current = null, R(null), C();
|
|
1031
1031
|
}, c = () => {
|
|
1032
1032
|
if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
|
|
1033
1033
|
var t, $;
|
|
1034
1034
|
(t = e.onSelectionChange) === null || t === void 0 || t.call(e, i);
|
|
1035
1035
|
var m;
|
|
1036
1036
|
let au = i != null && (m = ($ = f.getItem(i)) === null || $ === void 0 ? void 0 : $.textValue) !== null && m !== void 0 ? m : "";
|
|
1037
|
-
|
|
1037
|
+
k(au), C();
|
|
1038
1038
|
} else
|
|
1039
1039
|
W(), C();
|
|
1040
1040
|
};
|
|
1041
1041
|
const d = () => {
|
|
1042
|
-
if (
|
|
1042
|
+
if (r) {
|
|
1043
1043
|
var t, $;
|
|
1044
1044
|
const m = i != null && ($ = (t = f.getItem(i)) === null || t === void 0 ? void 0 : t.textValue) !== null && $ !== void 0 ? $ : "";
|
|
1045
1045
|
a === m ? c() : n();
|
|
1046
1046
|
} else
|
|
1047
1047
|
c();
|
|
1048
1048
|
};
|
|
1049
|
-
let
|
|
1050
|
-
|
|
1051
|
-
}, H = y(a),
|
|
1049
|
+
let G = () => {
|
|
1050
|
+
s.isOpen && S.focusedKey != null ? i === S.focusedKey ? c() : R(S.focusedKey) : d();
|
|
1051
|
+
}, H = y(a), re = (t) => {
|
|
1052
1052
|
t ? (H.current = a, p === "focus" && !e.isReadOnly && I(null, "focus")) : (B && d(), a !== H.current && le.commitValidation()), g(t);
|
|
1053
|
-
}, ie = J(() =>
|
|
1054
|
-
|
|
1055
|
-
|
|
1053
|
+
}, ie = J(() => s.isOpen ? b ? K : v : X, [
|
|
1054
|
+
s.isOpen,
|
|
1055
|
+
K,
|
|
1056
1056
|
v,
|
|
1057
1057
|
b,
|
|
1058
1058
|
X
|
|
1059
1059
|
]);
|
|
1060
|
-
var
|
|
1061
|
-
let me = (
|
|
1060
|
+
var se;
|
|
1061
|
+
let me = (se = e.defaultSelectedKey) !== null && se !== void 0 ? se : ee;
|
|
1062
1062
|
var $e;
|
|
1063
1063
|
return {
|
|
1064
1064
|
...le,
|
|
1065
|
-
...
|
|
1065
|
+
...s,
|
|
1066
1066
|
focusStrategy: h,
|
|
1067
1067
|
toggle: V,
|
|
1068
1068
|
open: I,
|
|
@@ -1073,13 +1073,13 @@ function rn(e) {
|
|
|
1073
1073
|
setSelectedKey: R,
|
|
1074
1074
|
disabledKeys: Q,
|
|
1075
1075
|
isFocused: F,
|
|
1076
|
-
setFocused:
|
|
1076
|
+
setFocused: re,
|
|
1077
1077
|
selectedItem: Y,
|
|
1078
1078
|
collection: ie,
|
|
1079
1079
|
inputValue: a,
|
|
1080
1080
|
defaultInputValue: ($e = Be(e.defaultInputValue, me, f)) !== null && $e !== void 0 ? $e : P,
|
|
1081
1081
|
setInputValue: N,
|
|
1082
|
-
commit:
|
|
1082
|
+
commit: G,
|
|
1083
1083
|
revert: pe
|
|
1084
1084
|
};
|
|
1085
1085
|
}
|
|
@@ -1088,19 +1088,19 @@ function $n(e, u, l) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
function $u(e, u, l, p) {
|
|
1090
1090
|
let o = [];
|
|
1091
|
-
for (let
|
|
1092
|
-
if (
|
|
1093
|
-
let B = $u(e, ge(
|
|
1091
|
+
for (let r of u)
|
|
1092
|
+
if (r.type === "section" && r.hasChildNodes) {
|
|
1093
|
+
let B = $u(e, ge(r, e), l, p);
|
|
1094
1094
|
[
|
|
1095
1095
|
...B
|
|
1096
1096
|
].some((b) => b.type === "item") && o.push({
|
|
1097
|
-
...
|
|
1097
|
+
...r,
|
|
1098
1098
|
childNodes: B
|
|
1099
1099
|
});
|
|
1100
|
-
} else
|
|
1101
|
-
...
|
|
1102
|
-
}) :
|
|
1103
|
-
...
|
|
1100
|
+
} else r.type === "item" && p(r.textValue, l) ? o.push({
|
|
1101
|
+
...r
|
|
1102
|
+
}) : r.type !== "item" && o.push({
|
|
1103
|
+
...r
|
|
1104
1104
|
});
|
|
1105
1105
|
return o;
|
|
1106
1106
|
}
|
|
@@ -1113,7 +1113,7 @@ function Be(e, u, l) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
const an = /* @__PURE__ */ Ee(null), bn = /* @__PURE__ */ Ee(null), Cn = /* @__PURE__ */ bu(function(u, l) {
|
|
1115
1115
|
[u, l] = mu(u, l, an);
|
|
1116
|
-
let { children: p, isDisabled: o = !1, isInvalid:
|
|
1116
|
+
let { children: p, isDisabled: o = !1, isInvalid: r = !1, isRequired: B = !1 } = u, b = J(() => {
|
|
1117
1117
|
var x;
|
|
1118
1118
|
return /* @__PURE__ */ _.createElement(Se.Provider, {
|
|
1119
1119
|
value: {
|
|
@@ -1122,19 +1122,19 @@ const an = /* @__PURE__ */ Ee(null), bn = /* @__PURE__ */ Ee(null), Cn = /* @__P
|
|
|
1122
1122
|
}, typeof p == "function" ? p({
|
|
1123
1123
|
isOpen: !1,
|
|
1124
1124
|
isDisabled: o,
|
|
1125
|
-
isInvalid:
|
|
1125
|
+
isInvalid: r,
|
|
1126
1126
|
isRequired: B,
|
|
1127
1127
|
defaultChildren: null
|
|
1128
1128
|
}) : p);
|
|
1129
1129
|
}, [
|
|
1130
1130
|
p,
|
|
1131
1131
|
o,
|
|
1132
|
-
|
|
1132
|
+
r,
|
|
1133
1133
|
B,
|
|
1134
1134
|
u.items,
|
|
1135
1135
|
u.defaultItems
|
|
1136
1136
|
]);
|
|
1137
|
-
return /* @__PURE__ */ _.createElement(
|
|
1137
|
+
return /* @__PURE__ */ _.createElement(ku, {
|
|
1138
1138
|
content: b
|
|
1139
1139
|
}, (x) => /* @__PURE__ */ _.createElement(xn, {
|
|
1140
1140
|
props: u,
|
|
@@ -1149,13 +1149,13 @@ const an = /* @__PURE__ */ Ee(null), bn = /* @__PURE__ */ Ee(null), Cn = /* @__P
|
|
|
1149
1149
|
Le
|
|
1150
1150
|
];
|
|
1151
1151
|
function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
1152
|
-
let { name: p, formValue: o = "key", allowsCustomValue:
|
|
1153
|
-
|
|
1152
|
+
let { name: p, formValue: o = "key", allowsCustomValue: r } = e;
|
|
1153
|
+
r && (o = "text");
|
|
1154
1154
|
let { validationBehavior: B } = xu(Eu) || {};
|
|
1155
1155
|
var b, x;
|
|
1156
1156
|
let F = (x = (b = e.validationBehavior) !== null && b !== void 0 ? b : B) !== null && x !== void 0 ? x : "native", { contains: g } = Vu({
|
|
1157
1157
|
sensitivity: "base"
|
|
1158
|
-
}), h =
|
|
1158
|
+
}), h = sn({
|
|
1159
1159
|
defaultFilter: e.defaultFilter || g,
|
|
1160
1160
|
...e,
|
|
1161
1161
|
// If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
|
|
@@ -1163,7 +1163,7 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1163
1163
|
children: void 0,
|
|
1164
1164
|
collection: u,
|
|
1165
1165
|
validationBehavior: F
|
|
1166
|
-
}), E = y(null), D = y(null), T = y(null), f = y(null), [S, i] = hu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: R, inputProps: Y, listBoxProps: Q, labelProps: a, descriptionProps: N, errorMessageProps: ee, ...P } =
|
|
1166
|
+
}), E = y(null), D = y(null), T = y(null), f = y(null), [S, i] = hu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: R, inputProps: Y, listBoxProps: Q, labelProps: a, descriptionProps: N, errorMessageProps: ee, ...P } = rn({
|
|
1167
1167
|
...fu(e),
|
|
1168
1168
|
label: i,
|
|
1169
1169
|
inputRef: D,
|
|
@@ -1172,7 +1172,7 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1172
1172
|
popoverRef: f,
|
|
1173
1173
|
name: o === "text" ? p : void 0,
|
|
1174
1174
|
validationBehavior: F
|
|
1175
|
-
}, h), [
|
|
1175
|
+
}, h), [K, v] = z(null), X = de(() => {
|
|
1176
1176
|
if (D.current) {
|
|
1177
1177
|
var I;
|
|
1178
1178
|
let V = (I = E.current) === null || I === void 0 ? void 0 : I.getBoundingClientRect(), L = D.current.getBoundingClientRect(), oe = V ? Math.min(V.left, L.left) : L.left, C = V ? Math.max(V.right, L.right) : L.right;
|
|
@@ -1205,7 +1205,7 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1205
1205
|
global: !0
|
|
1206
1206
|
});
|
|
1207
1207
|
delete ne.id;
|
|
1208
|
-
var
|
|
1208
|
+
var s;
|
|
1209
1209
|
return /* @__PURE__ */ _.createElement(Au, {
|
|
1210
1210
|
values: [
|
|
1211
1211
|
[
|
|
@@ -1239,7 +1239,7 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1239
1239
|
h
|
|
1240
1240
|
],
|
|
1241
1241
|
[
|
|
1242
|
-
|
|
1242
|
+
Ku,
|
|
1243
1243
|
{
|
|
1244
1244
|
ref: f,
|
|
1245
1245
|
triggerRef: D,
|
|
@@ -1248,7 +1248,7 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1248
1248
|
isNonModal: !0,
|
|
1249
1249
|
trigger: "ComboBox",
|
|
1250
1250
|
style: {
|
|
1251
|
-
"--trigger-width":
|
|
1251
|
+
"--trigger-width": K
|
|
1252
1252
|
},
|
|
1253
1253
|
clearContexts: mn
|
|
1254
1254
|
}
|
|
@@ -1299,10 +1299,10 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
|
|
|
1299
1299
|
type: "hidden",
|
|
1300
1300
|
name: p,
|
|
1301
1301
|
form: e.form,
|
|
1302
|
-
value: (
|
|
1302
|
+
value: (s = h.selectedKey) !== null && s !== void 0 ? s : ""
|
|
1303
1303
|
}));
|
|
1304
1304
|
}
|
|
1305
|
-
const hn = "
|
|
1305
|
+
const hn = "_combobox_j6di5_1", fn = "_inputField_j6di5_6", vn = "_medium_j6di5_28", An = "_wrap_j6di5_68", Bn = "_button_j6di5_74", En = "_icon_j6di5_106", Dn = "_emptyState_j6di5_112", M = {
|
|
1306
1306
|
combobox: hn,
|
|
1307
1307
|
inputField: fn,
|
|
1308
1308
|
medium: vn,
|
|
@@ -1320,7 +1320,7 @@ function $o({
|
|
|
1320
1320
|
errorMessage: l,
|
|
1321
1321
|
children: p,
|
|
1322
1322
|
items: o,
|
|
1323
|
-
className:
|
|
1323
|
+
className: r,
|
|
1324
1324
|
errorPosition: B = "top",
|
|
1325
1325
|
size: b = "large",
|
|
1326
1326
|
popover: x,
|
|
@@ -1333,18 +1333,18 @@ function $o({
|
|
|
1333
1333
|
return /* @__PURE__ */ xe(
|
|
1334
1334
|
Cn,
|
|
1335
1335
|
{
|
|
1336
|
-
className: Ce(
|
|
1336
|
+
className: Ce(M.combobox, r),
|
|
1337
1337
|
...F,
|
|
1338
1338
|
children: [
|
|
1339
1339
|
/* @__PURE__ */ A(en, { popover: x, children: e && /* @__PURE__ */ A(un, { children: e }) }),
|
|
1340
1340
|
u && /* @__PURE__ */ A(Ae, { slot: "description", children: u }),
|
|
1341
1341
|
B === "top" && /* @__PURE__ */ A(he, { "data-testid": "fieldError", children: l }),
|
|
1342
|
-
/* @__PURE__ */ xe("div", { className:
|
|
1342
|
+
/* @__PURE__ */ xe("div", { className: M.wrap, children: [
|
|
1343
1343
|
/* @__PURE__ */ A(
|
|
1344
1344
|
Du,
|
|
1345
1345
|
{
|
|
1346
|
-
className: Ce(
|
|
1347
|
-
[
|
|
1346
|
+
className: Ce(M.inputField, {
|
|
1347
|
+
[M.medium]: b === "medium"
|
|
1348
1348
|
}),
|
|
1349
1349
|
onMouseUp: E,
|
|
1350
1350
|
ref: g
|
|
@@ -1353,14 +1353,14 @@ function $o({
|
|
|
1353
1353
|
/* @__PURE__ */ A(
|
|
1354
1354
|
Cu,
|
|
1355
1355
|
{
|
|
1356
|
-
className: Ce(
|
|
1357
|
-
[
|
|
1356
|
+
className: Ce(M.button, {
|
|
1357
|
+
[M.medium]: b === "medium"
|
|
1358
1358
|
}),
|
|
1359
1359
|
"aria-label": h.format("showList"),
|
|
1360
1360
|
children: /* @__PURE__ */ A(
|
|
1361
1361
|
"div",
|
|
1362
1362
|
{
|
|
1363
|
-
className:
|
|
1363
|
+
className: M.icon,
|
|
1364
1364
|
"aria-hidden": "true",
|
|
1365
1365
|
children: /* @__PURE__ */ A(
|
|
1366
1366
|
cn,
|
|
@@ -1379,7 +1379,7 @@ function $o({
|
|
|
1379
1379
|
on,
|
|
1380
1380
|
{
|
|
1381
1381
|
items: o,
|
|
1382
|
-
renderEmptyState: () => /* @__PURE__ */ A(Ae, { className:
|
|
1382
|
+
renderEmptyState: () => /* @__PURE__ */ A(Ae, { className: M.emptyState, children: h.format("noResultsFound") }),
|
|
1383
1383
|
children: p
|
|
1384
1384
|
}
|
|
1385
1385
|
) })
|