@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,33 +1,34 @@
|
|
|
1
1
|
import { jsx as A, jsxs as re } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { F as Oa } from "./FieldError-
|
|
4
|
-
import { f as
|
|
5
|
-
import { $ as Ue, a as
|
|
2
|
+
import { c as Ke } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
import { F as Oa } from "./FieldError-C4kD4yJZ.js";
|
|
4
|
+
import { f as Ve, e as Te } from "./Button-B6lxIKPk.js";
|
|
5
|
+
import { $ as Ue, a as Fe, f as He, c as Ne } from "./utils-BMBoiyL7.js";
|
|
6
6
|
import { $ as Ze } from "./RSPContexts-BW2SEIqe.js";
|
|
7
|
-
import { $ as Le } from "./Text-
|
|
8
|
-
import { c as ee, d as y, e as
|
|
9
|
-
import { b as
|
|
7
|
+
import { $ as Le } from "./Text-BpERRete.js";
|
|
8
|
+
import { c as ee, d as y, e as ke, f as oe, g as se, h as We, i as ja, j as _a, k as he, l as Ae, m as we, b as O, n as Ie, o as Ka, $ as Ta, p as W, q as Ua, r as Ha, s as Za, t as Ge, u as qe, v as La, w as Wa } from "./useDateFormatter-CxlJTAki.js";
|
|
9
|
+
import { b as Ga, a as U } from "./mergeProps-Ct8m5-xW.js";
|
|
10
10
|
import { $ as H } from "./filterDOMProps-wsa9OcNI.js";
|
|
11
|
-
import x, { useMemo as R, useState as _, useRef as
|
|
12
|
-
import { $ as ce } from "./context-
|
|
11
|
+
import x, { useMemo as R, useState as _, useRef as q, useEffect as qa, forwardRef as Q, createContext as ne, useContext as K } from "react";
|
|
12
|
+
import { $ as ce } from "./context-Dl_saGB6.js";
|
|
13
13
|
import { $ as Be } from "./useControlledState-u436Wbp1.js";
|
|
14
|
-
import { $ as fe } from "./useLocalizedStringFormatter-
|
|
15
|
-
import { $ as Je } from "./useLabels-
|
|
16
|
-
import { $ as
|
|
17
|
-
import { $ as xe } from "./useEvent-
|
|
18
|
-
import { m as Ja } from "./utils-
|
|
14
|
+
import { $ as fe } from "./useLocalizedStringFormatter-CSEh15AZ.js";
|
|
15
|
+
import { $ as Je } from "./useLabels-D24on06F.js";
|
|
16
|
+
import { $ as Me } from "./useUpdateEffect-CCDx8D4X.js";
|
|
17
|
+
import { $ as xe } from "./useEvent-smuTnX4G.js";
|
|
18
|
+
import { m as Ja } from "./utils-CrT5PVBA.js";
|
|
19
19
|
import { $ as Qa } from "./getScrollParent-Ru2U2LlM.js";
|
|
20
|
-
import { $ as Xa } from "./useDescription-
|
|
20
|
+
import { $ as Xa } from "./useDescription-BFwQx7Rp.js";
|
|
21
21
|
import { b as Ya } from "./scrollIntoView-ClEACHUk.js";
|
|
22
|
-
import { f as et, $ as at } from "./useHover-
|
|
23
|
-
import { b as tt } from "./usePress-
|
|
24
|
-
import { $ as De } from "./VisuallyHidden-
|
|
25
|
-
import { $ as ut } from "./useFocusRing-
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
22
|
+
import { f as et, $ as at } from "./useHover-zCCNtF6g.js";
|
|
23
|
+
import { b as tt } from "./usePress-4yZ5a87p.js";
|
|
24
|
+
import { $ as De } from "./VisuallyHidden-D2ZXHTJs.js";
|
|
25
|
+
import { $ as ut } from "./useFocusRing-Copf_tx8.js";
|
|
26
|
+
import { c as it } from "./clsx-jbLnTBqA.js";
|
|
27
|
+
import { B as Oe } from "./Button-CRIYvCRM.js";
|
|
28
|
+
import { H as nt } from "./Heading-CEx2LJyM.js";
|
|
29
|
+
import { c as dt } from "./createLucideIcon-XRdN60yz.js";
|
|
30
|
+
import { C as lt } from "./chevron-right-BYYHEJjK.js";
|
|
31
|
+
import { T as rt } from "./Text-BQe1I4-r.js";
|
|
31
32
|
import './assets/RangeCalendar.css';var Qe = {};
|
|
32
33
|
Qe = {
|
|
33
34
|
dateRange: (e) => `${e.startDate} إلى ${e.endDate}`,
|
|
@@ -578,11 +579,11 @@ de = {
|
|
|
578
579
|
function Aa(e) {
|
|
579
580
|
return e && e.__esModule ? e.default : e;
|
|
580
581
|
}
|
|
581
|
-
const
|
|
582
|
+
const ze = /* @__PURE__ */ new WeakMap();
|
|
582
583
|
function ue(e) {
|
|
583
584
|
return (e == null ? void 0 : e.calendar.identifier) === "gregory" && e.era === "BC" ? "short" : void 0;
|
|
584
585
|
}
|
|
585
|
-
function
|
|
586
|
+
function ot(e) {
|
|
586
587
|
let a = fe(Aa(de), "@react-aria/calendar"), i, t;
|
|
587
588
|
var l;
|
|
588
589
|
"highlightedRange" in e ? { start: i, end: t } = e.highlightedRange || {} : i = t = (l = e.value) !== null && l !== void 0 ? l : void 0;
|
|
@@ -633,7 +634,7 @@ function Ce(e, a, i, t) {
|
|
|
633
634
|
timeZone: i
|
|
634
635
|
});
|
|
635
636
|
return R(() => {
|
|
636
|
-
if (y(e,
|
|
637
|
+
if (y(e, ke(e))) {
|
|
637
638
|
let D = e, s = a;
|
|
638
639
|
if (e.calendar.getFormattableMonth && (D = e.calendar.getFormattableMonth(e)), a.calendar.getFormattableMonth && (s = a.calendar.getFormattableMonth(a)), y(a, oe(e))) return d.format(D.toDate(i));
|
|
639
640
|
if (y(a, oe(a))) return t ? Re(d, l, D, s, i) : d.formatRange(D.toDate(i), s.toDate(i));
|
|
@@ -664,28 +665,28 @@ function Re(e, a, i, t, l) {
|
|
|
664
665
|
endDate: D
|
|
665
666
|
});
|
|
666
667
|
}
|
|
667
|
-
function
|
|
668
|
+
function st(e) {
|
|
668
669
|
return e && e.__esModule ? e.default : e;
|
|
669
670
|
}
|
|
670
671
|
function wa(e, a) {
|
|
671
|
-
let i = fe(
|
|
672
|
-
|
|
673
|
-
a.isFocused ||
|
|
672
|
+
let i = fe(st(de), "@react-aria/calendar"), t = H(e), l = Ce(a.visibleRange.start, a.visibleRange.end, a.timeZone, !1), u = Ce(a.visibleRange.start, a.visibleRange.end, a.timeZone, !0);
|
|
673
|
+
Me(() => {
|
|
674
|
+
a.isFocused || Ve(u);
|
|
674
675
|
}, [
|
|
675
676
|
u
|
|
676
677
|
]);
|
|
677
|
-
let d =
|
|
678
|
-
|
|
679
|
-
d &&
|
|
678
|
+
let d = ot(a);
|
|
679
|
+
Me(() => {
|
|
680
|
+
d && Ve(d, "polite", 4e3);
|
|
680
681
|
}, [
|
|
681
682
|
d
|
|
682
683
|
]);
|
|
683
|
-
let n =
|
|
684
|
+
let n = Ga([
|
|
684
685
|
!!e.errorMessage,
|
|
685
686
|
e.isInvalid,
|
|
686
687
|
e.validationState
|
|
687
688
|
]);
|
|
688
|
-
|
|
689
|
+
ze.set(a, {
|
|
689
690
|
ariaLabel: e["aria-label"],
|
|
690
691
|
ariaLabelledBy: e["aria-labelledby"],
|
|
691
692
|
errorMessageId: n,
|
|
@@ -727,11 +728,11 @@ function wa(e, a) {
|
|
|
727
728
|
title: l
|
|
728
729
|
};
|
|
729
730
|
}
|
|
730
|
-
function
|
|
731
|
+
function ct(e, a) {
|
|
731
732
|
return wa(e, a);
|
|
732
733
|
}
|
|
733
|
-
function
|
|
734
|
-
let t = wa(e, a), l =
|
|
734
|
+
function Dt(e, a, i) {
|
|
735
|
+
let t = wa(e, a), l = q(!1), u = q(typeof window < "u" ? window : null);
|
|
735
736
|
return xe(u, "pointerdown", (n) => {
|
|
736
737
|
l.current = n.width === 0 && n.height === 0;
|
|
737
738
|
}), xe(u, "pointerup", (n) => {
|
|
@@ -751,7 +752,7 @@ function ct(e, a, i) {
|
|
|
751
752
|
capture: !0
|
|
752
753
|
}), t;
|
|
753
754
|
}
|
|
754
|
-
function
|
|
755
|
+
function ft(e, a) {
|
|
755
756
|
let { startDate: i = a.visibleRange.start, endDate: t = a.visibleRange.end, firstDayOfWeek: l } = e, { direction: u } = ce(), d = (m) => {
|
|
756
757
|
switch (m.key) {
|
|
757
758
|
case "Enter":
|
|
@@ -786,7 +787,7 @@ function Dt(e, a) {
|
|
|
786
787
|
"setAnchorDate" in a && (m.preventDefault(), a.setAnchorDate(null));
|
|
787
788
|
break;
|
|
788
789
|
}
|
|
789
|
-
}, n = Ce(i, t, a.timeZone, !0), { ariaLabel: D, ariaLabelledBy: s } =
|
|
790
|
+
}, n = Ce(i, t, a.timeZone, !0), { ariaLabel: D, ariaLabelledBy: s } = ze.get(a), o = Je({
|
|
790
791
|
"aria-label": [
|
|
791
792
|
D,
|
|
792
793
|
n
|
|
@@ -830,11 +831,11 @@ function Dt(e, a) {
|
|
|
830
831
|
weeksInMonth: $
|
|
831
832
|
};
|
|
832
833
|
}
|
|
833
|
-
function
|
|
834
|
+
function mt(e) {
|
|
834
835
|
return e && e.__esModule ? e.default : e;
|
|
835
836
|
}
|
|
836
|
-
function
|
|
837
|
-
let { date: t, isDisabled: l } = e, { errorMessageId: u, selectedDateDescription: d } =
|
|
837
|
+
function $t(e, a, i) {
|
|
838
|
+
let { date: t, isDisabled: l } = e, { errorMessageId: u, selectedDateDescription: d } = ze.get(a), n = fe(mt(de), "@react-aria/calendar"), D = ee({
|
|
838
839
|
weekday: "long",
|
|
839
840
|
day: "numeric",
|
|
840
841
|
month: "long",
|
|
@@ -848,7 +849,7 @@ function mt(e, a, i) {
|
|
|
848
849
|
let $ = R(() => t.toDate(a.timeZone), [
|
|
849
850
|
t,
|
|
850
851
|
a.timeZone
|
|
851
|
-
]), m =
|
|
852
|
+
]), m = Ae(t, a.timeZone), p = R(() => {
|
|
852
853
|
let g = "";
|
|
853
854
|
return "highlightedRange" in a && a.value && !a.anchorDate && (y(t, a.value.start) || y(t, a.value.end)) && (g = d + ", "), g += D.format($), m ? g = n.format(s ? "todayDateSelected" : "todayDate", {
|
|
854
855
|
date: g
|
|
@@ -866,7 +867,7 @@ function mt(e, a, i) {
|
|
|
866
867
|
d
|
|
867
868
|
]), S = "";
|
|
868
869
|
"anchorDate" in a && o && !a.isReadOnly && f && (a.anchorDate ? S = n.format("finishRangeSelectionPrompt") : S = n.format("startRangeSelectionPrompt"));
|
|
869
|
-
let F = Xa(S), w =
|
|
870
|
+
let F = Xa(S), w = q(!1), r = q(!1), P = q(void 0), { pressProps: C, isPressed: z } = tt({
|
|
870
871
|
// When dragging to select a range, we don't want dragging over the original anchor
|
|
871
872
|
// again to trigger onPressStart. Cancel presses immediately when the pointer exits.
|
|
872
873
|
shouldCancelOnPointerExit: "anchorDate" in a && !!a.anchorDate,
|
|
@@ -916,7 +917,7 @@ function mt(e, a, i) {
|
|
|
916
917
|
} else g.pointerType === "virtual" && (a.selectDate(t), a.setFocusedDate(t));
|
|
917
918
|
}
|
|
918
919
|
}), j;
|
|
919
|
-
l || (j = y(t, a.focusedDate) ? 0 : -1),
|
|
920
|
+
l || (j = y(t, a.focusedDate) ? 0 : -1), qa(() => {
|
|
920
921
|
o && i.current && (Ja(i.current), et() !== "pointer" && document.activeElement === i.current && Ya(i.current, {
|
|
921
922
|
containingElement: Qa(i.current)
|
|
922
923
|
}));
|
|
@@ -979,39 +980,39 @@ function ye(e, a, i, t, l) {
|
|
|
979
980
|
let u = {};
|
|
980
981
|
for (let n in a)
|
|
981
982
|
u[n] = Math.floor(a[n] / 2), u[n] > 0 && a[n] % 2 === 0 && u[n]--;
|
|
982
|
-
let d =
|
|
983
|
+
let d = G(e, a, i).subtract(u);
|
|
983
984
|
return ie(e, d, a, i, t, l);
|
|
984
985
|
}
|
|
985
|
-
function
|
|
986
|
+
function G(e, a, i, t, l) {
|
|
986
987
|
let u = e;
|
|
987
|
-
return a.years ? u = Ka(e) : a.months ? u =
|
|
988
|
+
return a.years ? u = Ka(e) : a.months ? u = ke(e) : a.weeks && (u = se(e, i)), ie(e, u, a, i, t, l);
|
|
988
989
|
}
|
|
989
990
|
function Ee(e, a, i, t, l) {
|
|
990
991
|
let u = {
|
|
991
992
|
...a
|
|
992
993
|
};
|
|
993
994
|
u.days ? u.days-- : u.weeks ? u.weeks-- : u.months ? u.months-- : u.years && u.years--;
|
|
994
|
-
let d =
|
|
995
|
+
let d = G(e, a, i).subtract(u);
|
|
995
996
|
return ie(e, d, a, i, t, l);
|
|
996
997
|
}
|
|
997
998
|
function ie(e, a, i, t, l, u) {
|
|
998
999
|
if (l && e.compare(l) >= 0) {
|
|
999
|
-
let d =
|
|
1000
|
+
let d = we(a, G(O(l), i, t));
|
|
1000
1001
|
d && (a = d);
|
|
1001
1002
|
}
|
|
1002
1003
|
if (u && e.compare(u) <= 0) {
|
|
1003
|
-
let d =
|
|
1004
|
+
let d = Ie(a, Ee(O(u), i, t));
|
|
1004
1005
|
d && (a = d);
|
|
1005
1006
|
}
|
|
1006
1007
|
return a;
|
|
1007
1008
|
}
|
|
1008
1009
|
function T(e, a, i) {
|
|
1009
1010
|
if (a) {
|
|
1010
|
-
let t =
|
|
1011
|
+
let t = we(e, O(a));
|
|
1011
1012
|
t && (e = t);
|
|
1012
1013
|
}
|
|
1013
1014
|
if (i) {
|
|
1014
|
-
let t =
|
|
1015
|
+
let t = Ie(e, O(i));
|
|
1015
1016
|
t && (e = t);
|
|
1016
1017
|
}
|
|
1017
1018
|
return e;
|
|
@@ -1056,7 +1057,7 @@ function za(e) {
|
|
|
1056
1057
|
]), [r, P] = Be(F, w, e.onFocusChange), [C, z] = _(() => {
|
|
1057
1058
|
switch (D) {
|
|
1058
1059
|
case "start":
|
|
1059
|
-
return
|
|
1060
|
+
return G(r, u, t, d, n);
|
|
1060
1061
|
case "end":
|
|
1061
1062
|
return Ee(r, u, t, d, n);
|
|
1062
1063
|
case "center":
|
|
@@ -1076,7 +1077,7 @@ function za(e) {
|
|
|
1076
1077
|
let c = W(r, f);
|
|
1077
1078
|
z(ye(c, u, t, d, n)), P(c), N(f);
|
|
1078
1079
|
}
|
|
1079
|
-
Y(r, d, n) ? P(T(r, d, n)) : r.compare(C) < 0 ? z(Ee(r, u, t, d, n)) : r.compare(V) > 0 && z(
|
|
1080
|
+
Y(r, d, n) ? P(T(r, d, n)) : r.compare(C) < 0 ? z(Ee(r, u, t, d, n)) : r.compare(V) > 0 && z(G(r, u, t, d, n));
|
|
1080
1081
|
function h(c) {
|
|
1081
1082
|
c = T(c, d, n), P(c);
|
|
1082
1083
|
}
|
|
@@ -1088,7 +1089,7 @@ function za(e) {
|
|
|
1088
1089
|
return;
|
|
1089
1090
|
}
|
|
1090
1091
|
if (I = T(I, d, n), I = Ia(I, C, s), !I) return;
|
|
1091
|
-
I = W(I, ($ == null ? void 0 : $.calendar) || new
|
|
1092
|
+
I = W(I, ($ == null ? void 0 : $.calendar) || new Ge()), $ && "hour" in $ ? m($.set(I)) : m(I);
|
|
1092
1093
|
}
|
|
1093
1094
|
}
|
|
1094
1095
|
let le = R(() => p ? s && s(p) ? !0 : Y(p, d, n) : !1, [
|
|
@@ -1141,14 +1142,14 @@ function za(e) {
|
|
|
1141
1142
|
},
|
|
1142
1143
|
focusNextPage() {
|
|
1143
1144
|
let c = C.add(E);
|
|
1144
|
-
P(T(r.add(E), d, n)), z(
|
|
1145
|
+
P(T(r.add(E), d, n)), z(G(ie(r, c, E, t, d, n), E, t));
|
|
1145
1146
|
},
|
|
1146
1147
|
focusPreviousPage() {
|
|
1147
1148
|
let c = C.subtract(E);
|
|
1148
|
-
P(T(r.subtract(E), d, n)), z(
|
|
1149
|
+
P(T(r.subtract(E), d, n)), z(G(ie(r, c, E, t, d, n), E, t));
|
|
1149
1150
|
},
|
|
1150
1151
|
focusSectionStart() {
|
|
1151
|
-
u.days ? h(C) : u.weeks ? h(se(r, t)) : (u.months || u.years) && h(
|
|
1152
|
+
u.days ? h(C) : u.weeks ? h(se(r, t)) : (u.months || u.years) && h(ke(r));
|
|
1152
1153
|
},
|
|
1153
1154
|
focusSectionEnd() {
|
|
1154
1155
|
u.days ? h(V) : u.weeks ? h(Za(r, t)) : (u.months || u.years) && h(oe(r));
|
|
@@ -1237,7 +1238,7 @@ function be(e) {
|
|
|
1237
1238
|
for (let i in e) a[i] = 1;
|
|
1238
1239
|
return a;
|
|
1239
1240
|
}
|
|
1240
|
-
function
|
|
1241
|
+
function gt(e) {
|
|
1241
1242
|
let { value: a, defaultValue: i, onChange: t, createCalendar: l, locale: u, visibleDuration: d = {
|
|
1242
1243
|
months: 1
|
|
1243
1244
|
}, minValue: n, maxValue: D, ...s } = e, [o, b] = Be(a, i || null, t), [f, v] = _(null), $ = "center";
|
|
@@ -1247,10 +1248,10 @@ function $t(e) {
|
|
|
1247
1248
|
});
|
|
1248
1249
|
o.end.compare(E) > 0 && ($ = "start");
|
|
1249
1250
|
}
|
|
1250
|
-
let m =
|
|
1251
|
+
let m = q(null), [p, S] = _(null), F = R(() => we(n, p == null ? void 0 : p.start), [
|
|
1251
1252
|
n,
|
|
1252
1253
|
p
|
|
1253
|
-
]), w = R(() =>
|
|
1254
|
+
]), w = R(() => Ie(D, p == null ? void 0 : p.end), [
|
|
1254
1255
|
D,
|
|
1255
1256
|
p
|
|
1256
1257
|
]), r = za({
|
|
@@ -1264,7 +1265,7 @@ function $t(e) {
|
|
|
1264
1265
|
selectionAlignment: $
|
|
1265
1266
|
}), P = (B) => {
|
|
1266
1267
|
if (B && e.isDateUnavailable && !e.allowsNonContiguousRanges) {
|
|
1267
|
-
const E =
|
|
1268
|
+
const E = _e(B, r, -1), k = _e(B, r, 1);
|
|
1268
1269
|
m.current = {
|
|
1269
1270
|
start: E,
|
|
1270
1271
|
end: k
|
|
@@ -1283,8 +1284,8 @@ function $t(e) {
|
|
|
1283
1284
|
else {
|
|
1284
1285
|
let Z = ve(f, k);
|
|
1285
1286
|
Z && b({
|
|
1286
|
-
start:
|
|
1287
|
-
end:
|
|
1287
|
+
start: je(Z.start, o == null ? void 0 : o.start),
|
|
1288
|
+
end: je(Z.end, o == null ? void 0 : o.end)
|
|
1288
1289
|
}), j(null);
|
|
1289
1290
|
}
|
|
1290
1291
|
}, [g, N] = _(!1), { isDateUnavailable: h } = e, ae = R(() => !o || f ? !1 : h && (h(o.start) || h(o.end)) ? !0 : Y(o.start, n, D) || Y(o.end, n, D), [
|
|
@@ -1330,10 +1331,10 @@ function ve(e, a) {
|
|
|
1330
1331
|
end: O(a)
|
|
1331
1332
|
});
|
|
1332
1333
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return e = W(e, (a == null ? void 0 : a.calendar) || new
|
|
1334
|
+
function je(e, a) {
|
|
1335
|
+
return e = W(e, (a == null ? void 0 : a.calendar) || new Ge()), a && "hour" in a ? a.set(e) : e;
|
|
1335
1336
|
}
|
|
1336
|
-
function
|
|
1337
|
+
function _e(e, a, i) {
|
|
1337
1338
|
let t = e.add({
|
|
1338
1339
|
days: i
|
|
1339
1340
|
});
|
|
@@ -1344,13 +1345,13 @@ function Ke(e, a, i) {
|
|
|
1344
1345
|
days: -i
|
|
1345
1346
|
});
|
|
1346
1347
|
}
|
|
1347
|
-
const Pe = /* @__PURE__ */ ne(null), Se = /* @__PURE__ */ ne(null), me = /* @__PURE__ */ ne(null), $e = /* @__PURE__ */ ne(null),
|
|
1348
|
+
const Pe = /* @__PURE__ */ ne(null), Se = /* @__PURE__ */ ne(null), me = /* @__PURE__ */ ne(null), $e = /* @__PURE__ */ ne(null), pt = /* @__PURE__ */ Q(function(a, i) {
|
|
1348
1349
|
[a, i] = Ue(a, i, Pe);
|
|
1349
1350
|
let { locale: t } = ce(), l = za({
|
|
1350
1351
|
...a,
|
|
1351
1352
|
locale: t,
|
|
1352
|
-
createCalendar: a.createCalendar ||
|
|
1353
|
-
}), { calendarProps: u, prevButtonProps: d, nextButtonProps: n, errorMessageProps: D, title: s } =
|
|
1353
|
+
createCalendar: a.createCalendar || qe
|
|
1354
|
+
}), { calendarProps: u, prevButtonProps: d, nextButtonProps: n, errorMessageProps: D, title: s } = ct(a, l), o = Fe({
|
|
1354
1355
|
...a,
|
|
1355
1356
|
values: {
|
|
1356
1357
|
state: l,
|
|
@@ -1409,13 +1410,13 @@ const Pe = /* @__PURE__ */ ne(null), Se = /* @__PURE__ */ ne(null), me = /* @__P
|
|
|
1409
1410
|
onClick: () => l.focusNextPage(),
|
|
1410
1411
|
tabIndex: -1
|
|
1411
1412
|
}))));
|
|
1412
|
-
}),
|
|
1413
|
+
}), xt = /* @__PURE__ */ Q(function(a, i) {
|
|
1413
1414
|
[a, i] = Ue(a, i, Se);
|
|
1414
|
-
let { locale: t } = ce(), l =
|
|
1415
|
+
let { locale: t } = ce(), l = gt({
|
|
1415
1416
|
...a,
|
|
1416
1417
|
locale: t,
|
|
1417
|
-
createCalendar: a.createCalendar ||
|
|
1418
|
-
}), { calendarProps: u, prevButtonProps: d, nextButtonProps: n, errorMessageProps: D, title: s } =
|
|
1418
|
+
createCalendar: a.createCalendar || qe
|
|
1419
|
+
}), { calendarProps: u, prevButtonProps: d, nextButtonProps: n, errorMessageProps: D, title: s } = Dt(a, l, i), o = Fe({
|
|
1419
1420
|
...a,
|
|
1420
1421
|
values: {
|
|
1421
1422
|
state: l,
|
|
@@ -1474,11 +1475,11 @@ const Pe = /* @__PURE__ */ ne(null), Se = /* @__PURE__ */ ne(null), me = /* @__P
|
|
|
1474
1475
|
onClick: () => l.focusNextPage(),
|
|
1475
1476
|
tabIndex: -1
|
|
1476
1477
|
}))));
|
|
1477
|
-
}), ge = /* @__PURE__ */ ne(null),
|
|
1478
|
-
let t = K(me), l = K($e), u =
|
|
1478
|
+
}), ge = /* @__PURE__ */ ne(null), bt = /* @__PURE__ */ Q(function(a, i) {
|
|
1479
|
+
let t = K(me), l = K($e), u = Ne(Pe), d = Ne(Se), n = t ?? l, D = n.visibleRange.start;
|
|
1479
1480
|
a.offset && (D = D.add(a.offset));
|
|
1480
1481
|
var s;
|
|
1481
|
-
let o = (s = u == null ? void 0 : u.firstDayOfWeek) !== null && s !== void 0 ? s : d == null ? void 0 : d.firstDayOfWeek, { gridProps: b, headerProps: f, weekDays: v, weeksInMonth: $ } =
|
|
1482
|
+
let o = (s = u == null ? void 0 : u.firstDayOfWeek) !== null && s !== void 0 ? s : d == null ? void 0 : d.firstDayOfWeek, { gridProps: b, headerProps: f, weekDays: v, weeksInMonth: $ } = ft({
|
|
1482
1483
|
startDate: D,
|
|
1483
1484
|
endDate: oe(D),
|
|
1484
1485
|
weekdayStyle: a.weekdayStyle,
|
|
@@ -1500,9 +1501,9 @@ const Pe = /* @__PURE__ */ ne(null), Se = /* @__PURE__ */ ne(null), me = /* @__P
|
|
|
1500
1501
|
style: a.style,
|
|
1501
1502
|
cellPadding: 0,
|
|
1502
1503
|
className: (p = a.className) !== null && p !== void 0 ? p : "react-aria-CalendarGrid"
|
|
1503
|
-
}, typeof a.children != "function" ? a.children : /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(
|
|
1504
|
+
}, typeof a.children != "function" ? a.children : /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(ht, null, (S) => /* @__PURE__ */ x.createElement(Ct, null, S)), /* @__PURE__ */ x.createElement(yt, null, a.children))));
|
|
1504
1505
|
});
|
|
1505
|
-
function
|
|
1506
|
+
function vt(e, a) {
|
|
1506
1507
|
let { children: i, style: t, className: l } = e, { headerProps: u, weekDays: d } = K(ge), n = H(e, {
|
|
1507
1508
|
global: !0
|
|
1508
1509
|
});
|
|
@@ -1515,8 +1516,8 @@ function bt(e, a) {
|
|
|
1515
1516
|
key: s
|
|
1516
1517
|
}))));
|
|
1517
1518
|
}
|
|
1518
|
-
const
|
|
1519
|
-
function
|
|
1519
|
+
const ht = /* @__PURE__ */ Q(vt);
|
|
1520
|
+
function Bt(e, a) {
|
|
1520
1521
|
let { children: i, style: t, className: l } = e, u = H(e, {
|
|
1521
1522
|
global: !0
|
|
1522
1523
|
});
|
|
@@ -1527,8 +1528,8 @@ function ht(e, a) {
|
|
|
1527
1528
|
className: l || "react-aria-CalendarHeaderCell"
|
|
1528
1529
|
}, i);
|
|
1529
1530
|
}
|
|
1530
|
-
const
|
|
1531
|
-
function
|
|
1531
|
+
const Ct = /* @__PURE__ */ Q(Bt);
|
|
1532
|
+
function Rt(e, a) {
|
|
1532
1533
|
let { children: i, style: t, className: l } = e, u = K(me), d = K($e), n = u ?? d, { startDate: D, weeksInMonth: s } = K(ge), o = H(e, {
|
|
1533
1534
|
global: !0
|
|
1534
1535
|
});
|
|
@@ -1547,12 +1548,12 @@ function Ct(e, a) {
|
|
|
1547
1548
|
key: v
|
|
1548
1549
|
})))));
|
|
1549
1550
|
}
|
|
1550
|
-
const
|
|
1551
|
+
const yt = /* @__PURE__ */ Q(Rt), Et = /* @__PURE__ */ Q(function({ date: a, ...i }, t) {
|
|
1551
1552
|
let l = K(me), u = K($e), d = l ?? u;
|
|
1552
1553
|
var n;
|
|
1553
1554
|
let { startDate: D } = (n = K(ge)) !== null && n !== void 0 ? n : {
|
|
1554
1555
|
startDate: d.visibleRange.start
|
|
1555
|
-
}, s = !La(D, a), o =
|
|
1556
|
+
}, s = !La(D, a), o = Ae(a, d.timeZone), b = q(null), { cellProps: f, buttonProps: v, ...$ } = $t({
|
|
1556
1557
|
date: a,
|
|
1557
1558
|
isOutsideMonth: s
|
|
1558
1559
|
}, d, b), { hoverProps: m, isHovered: p } = at({
|
|
@@ -1562,7 +1563,7 @@ const Rt = /* @__PURE__ */ Q(Ct), yt = /* @__PURE__ */ Q(function({ date: a, ...
|
|
|
1562
1563
|
F && (F = $.isFocused);
|
|
1563
1564
|
let w = !1, r = !1;
|
|
1564
1565
|
"highlightedRange" in d && d.highlightedRange && (w = y(a, d.highlightedRange.start), r = y(a, d.highlightedRange.end));
|
|
1565
|
-
let P =
|
|
1566
|
+
let P = Fe({
|
|
1566
1567
|
...i,
|
|
1567
1568
|
defaultChildren: $.formattedDate,
|
|
1568
1569
|
defaultClassName: "react-aria-CalendarCell",
|
|
@@ -1607,37 +1608,37 @@ const Rt = /* @__PURE__ */ Q(Ct), yt = /* @__PURE__ */ Q(function({ date: a, ...
|
|
|
1607
1608
|
* This source code is licensed under the ISC license.
|
|
1608
1609
|
* See the LICENSE file in the root directory of this source tree.
|
|
1609
1610
|
*/
|
|
1610
|
-
const
|
|
1611
|
-
container:
|
|
1612
|
-
calendar:
|
|
1613
|
-
day:
|
|
1614
|
-
header:
|
|
1615
|
-
range:
|
|
1616
|
-
today:
|
|
1611
|
+
const Pt = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], St = dt("chevron-left", Pt), Ft = "_container_4a056_1", kt = "_calendar_4a056_6", At = "_day_4a056_27", wt = "_header_4a056_80", It = "_range_4a056_132", zt = "_today_4a056_175", J = {
|
|
1612
|
+
container: Ft,
|
|
1613
|
+
calendar: kt,
|
|
1614
|
+
day: At,
|
|
1615
|
+
header: wt,
|
|
1616
|
+
range: It,
|
|
1617
|
+
today: zt
|
|
1617
1618
|
}, Va = ({
|
|
1618
1619
|
weekdayStyle: e = "short",
|
|
1619
1620
|
isRange: a = !1
|
|
1620
|
-
}) => /* @__PURE__ */ A(
|
|
1621
|
-
|
|
1621
|
+
}) => /* @__PURE__ */ A(bt, { weekdayStyle: e, children: (i) => /* @__PURE__ */ A(
|
|
1622
|
+
Et,
|
|
1622
1623
|
{
|
|
1623
1624
|
date: i,
|
|
1624
|
-
className:
|
|
1625
|
+
className: it(
|
|
1625
1626
|
J.day,
|
|
1626
|
-
|
|
1627
|
+
Ae(i, Wa()) && J.today,
|
|
1627
1628
|
a && J.range
|
|
1628
1629
|
)
|
|
1629
1630
|
}
|
|
1630
1631
|
) }), Na = ({ isDisabled: e }) => /* @__PURE__ */ re("header", { className: J.header, children: [
|
|
1631
1632
|
/* @__PURE__ */ A(
|
|
1632
|
-
|
|
1633
|
+
Oe,
|
|
1633
1634
|
{
|
|
1634
1635
|
slot: "previous",
|
|
1635
1636
|
size: "medium",
|
|
1636
|
-
children: /* @__PURE__ */ A(
|
|
1637
|
+
children: /* @__PURE__ */ A(St, {})
|
|
1637
1638
|
}
|
|
1638
1639
|
),
|
|
1639
1640
|
/* @__PURE__ */ A(
|
|
1640
|
-
|
|
1641
|
+
nt,
|
|
1641
1642
|
{
|
|
1642
1643
|
level: 3,
|
|
1643
1644
|
elementType: "h2",
|
|
@@ -1645,22 +1646,22 @@ const Et = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Pt = nt("chevron-
|
|
|
1645
1646
|
}
|
|
1646
1647
|
),
|
|
1647
1648
|
/* @__PURE__ */ A(
|
|
1648
|
-
|
|
1649
|
+
Oe,
|
|
1649
1650
|
{
|
|
1650
1651
|
slot: "next",
|
|
1651
1652
|
size: "medium",
|
|
1652
|
-
children: /* @__PURE__ */ A(
|
|
1653
|
+
children: /* @__PURE__ */ A(lt, {})
|
|
1653
1654
|
}
|
|
1654
1655
|
)
|
|
1655
|
-
] }),
|
|
1656
|
+
] }), Du = ({
|
|
1656
1657
|
className: e,
|
|
1657
1658
|
errorMessage: a,
|
|
1658
1659
|
...i
|
|
1659
1660
|
}) => /* @__PURE__ */ re("div", { className: J.container, children: [
|
|
1660
1661
|
/* @__PURE__ */ re(
|
|
1661
|
-
|
|
1662
|
+
pt,
|
|
1662
1663
|
{
|
|
1663
|
-
className:
|
|
1664
|
+
className: Ke(J.calendar, e),
|
|
1664
1665
|
...i,
|
|
1665
1666
|
children: [
|
|
1666
1667
|
/* @__PURE__ */ A(Na, { ...i }),
|
|
@@ -1669,14 +1670,14 @@ const Et = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Pt = nt("chevron-
|
|
|
1669
1670
|
}
|
|
1670
1671
|
),
|
|
1671
1672
|
/* @__PURE__ */ A(Oa, { isInvalid: i.isInvalid, children: a })
|
|
1672
|
-
] }),
|
|
1673
|
+
] }), fu = ({
|
|
1673
1674
|
className: e,
|
|
1674
1675
|
errorMessage: a,
|
|
1675
1676
|
...i
|
|
1676
1677
|
}) => /* @__PURE__ */ re(
|
|
1677
|
-
|
|
1678
|
+
xt,
|
|
1678
1679
|
{
|
|
1679
|
-
className:
|
|
1680
|
+
className: Ke(J.calendar, e),
|
|
1680
1681
|
...i,
|
|
1681
1682
|
children: [
|
|
1682
1683
|
/* @__PURE__ */ A(Na, { isDisabled: i.isDisabled }),
|
|
@@ -1687,13 +1688,13 @@ const Et = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Pt = nt("chevron-
|
|
|
1687
1688
|
isRange: !0
|
|
1688
1689
|
}
|
|
1689
1690
|
),
|
|
1690
|
-
a && /* @__PURE__ */ A(
|
|
1691
|
+
a && /* @__PURE__ */ A(rt, { slot: "errorMessage", children: a })
|
|
1691
1692
|
]
|
|
1692
1693
|
}
|
|
1693
1694
|
);
|
|
1694
1695
|
export {
|
|
1695
1696
|
Pe as $,
|
|
1696
|
-
|
|
1697
|
-
|
|
1697
|
+
Du as C,
|
|
1698
|
+
fu as R,
|
|
1698
1699
|
Se as a
|
|
1699
1700
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import a, { useState as l, useContext as
|
|
1
|
+
import a, { useState as l, useContext as $, useRef as f } from "react";
|
|
2
2
|
const c = {
|
|
3
3
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
4
4
|
current: 0
|
|
5
|
-
},
|
|
5
|
+
}, s = /* @__PURE__ */ a.createContext(c), p = /* @__PURE__ */ a.createContext(!1);
|
|
6
6
|
let v = !!(typeof window < "u" && window.document && window.document.createElement), d = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
function b(t = !1) {
|
|
8
|
-
let e = s
|
|
8
|
+
let e = $(s), r = f(null);
|
|
9
9
|
if (r.current === null && !t) {
|
|
10
10
|
var n, u;
|
|
11
11
|
let o = (u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || u === void 0 || (n = u.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
|
|
@@ -21,7 +21,7 @@ function b(t = !1) {
|
|
|
21
21
|
return r.current;
|
|
22
22
|
}
|
|
23
23
|
function x(t) {
|
|
24
|
-
let e = s
|
|
24
|
+
let e = $(s);
|
|
25
25
|
e === c && !v && process.env.NODE_ENV !== "production" && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
26
26
|
let r = b(!!t), n = e === c && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
|
|
27
27
|
return t || `${n}-${r}`;
|
|
@@ -42,7 +42,7 @@ function g(t) {
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
function y() {
|
|
45
|
-
return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(g, m, w) :
|
|
45
|
+
return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(g, m, w) : $(p);
|
|
46
46
|
}
|
|
47
47
|
export {
|
|
48
48
|
y as $,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react"),c={prefix:String(Math.round(Math.random()*1e10)),current:0},d=e.createContext(c),f=e.createContext(!1);let l=!!(typeof window<"u"&&window.document&&window.document.createElement)
|
|
1
|
+
"use strict";const e=require("react"),c={prefix:String(Math.round(Math.random()*1e10)),current:0},d=e.createContext(c),f=e.createContext(!1);let l=!!(typeof window<"u"&&window.document&&window.document.createElement),i=new WeakMap;function p(r=!1){let t=e.useContext(d),n=e.useRef(null);if(n.current===null&&!r){var a,u;let o=(u=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||u===void 0||(a=u.ReactCurrentOwner)===null||a===void 0?void 0:a.current;if(o){let $=i.get(o);$==null?i.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==$.state&&(t.current=$.id,i.delete(o))}n.current=++t.current}return n.current}function v(r){let t=e.useContext(d);t===c&&!l&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=p(!!r),a=t===c&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return r||`${a}-${n}`}function b(r){let t=e.useId(),[n]=e.useState(s()),a=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${c.prefix}`;return r||`${a}-${t}`}const x=typeof e.useId=="function"?b:v;function S(){return!1}function m(){return!0}function w(r){return()=>{}}function s(){return typeof e.useSyncExternalStore=="function"?e.useSyncExternalStore(w,S,m):e.useContext(f)}exports.$b5e257d569688ac6$export$535bd6ca7f90a273=s;exports.$b5e257d569688ac6$export$619500959fc48b26=x;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require('./assets/SearchField.css');const u=require("react/jsx-runtime"),ce=require("./TextField.module-DmRrFHra.cjs"),y=require("./Button-xc8A29pm.cjs"),x=require("./clsx-DKOfLqne.cjs"),ne=require("react"),D=require("./FieldError-C4WBoCRc.cjs"),oe=require("./useControlledState-D0L6S_5r.cjs"),ie=require("./mergeProps-Du5A8xi8.cjs"),le=require("./useLocalizedStringFormatter-CHAo1AyN.cjs"),de=require("./useTextField-DUEQl6sr.cjs"),fe=require("./createLucideIcon-CTVXwe6i.cjs"),be=require("./x-rV-nu490.cjs"),$e=require("./useLocalizedStringFormatter-BSac43NO.cjs");function he(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return a.default=e,Object.freeze(a)}const xe=he(ne);var _={};_={"Clear search":"مسح البحث"};var P={};P={"Clear search":"Изчистване на търсене"};var S={};S={"Clear search":"Vymazat hledání"};var B={};B={"Clear search":"Ryd søgning"};var j={};j={"Clear search":"Suche zurücksetzen"};var F={};F={"Clear search":"Απαλοιφή αναζήτησης"};var k={};k={"Clear search":"Clear search"};var q={};q={"Clear search":"Borrar búsqueda"};var T={};T={"Clear search":"Tühjenda otsing"};var N={};N={"Clear search":"Tyhjennä haku"};var O={};O={"Clear search":"Effacer la recherche"};var R={};R={"Clear search":"נקה חיפוש"};var A={};A={"Clear search":"Obriši pretragu"};var z={};z={"Clear search":"Keresés törlése"};var L={};L={"Clear search":"Cancella ricerca"};var V={};V={"Clear search":"検索をクリア"};var w={};w={"Clear search":"검색 지우기"};var K={};K={"Clear search":"Išvalyti iešką"};var I={};I={"Clear search":"Notīrīt meklēšanu"};var M={};M={"Clear search":"Tøm søk"};var U={};U={"Clear search":"Zoekactie wissen"};var G={};G={"Clear search":"Wyczyść zawartość wyszukiwania"};var H={};H={"Clear search":"Limpar pesquisa"};var W={};W={"Clear search":"Limpar pesquisa"};var Z={};Z={"Clear search":"Ştergeţi căutarea"};var J={};J={"Clear search":"Очистить поиск"};var X={};X={"Clear search":"Vymazať vyhľadávanie"};var Q={};Q={"Clear search":"Počisti iskanje"};var Y={};Y={"Clear search":"Obriši pretragu"};var ee={};ee={"Clear search":"Rensa sökning"};var re={};re={"Clear search":"Aramayı temizle"};var ae={};ae={"Clear search":"Очистити пошук"};var te={};te={"Clear search":"清除搜索"};var ue={};ue={"Clear search":"清除搜尋條件"};var se={};se={"ar-AE":_,"bg-BG":P,"cs-CZ":S,"da-DK":B,"de-DE":j,"el-GR":F,"en-US":k,"es-ES":q,"et-EE":T,"fi-FI":N,"fr-FR":O,"he-IL":R,"hr-HR":A,"hu-HU":z,"it-IT":L,"ja-JP":V,"ko-KR":w,"lt-LT":K,"lv-LV":I,"nb-NO":M,"nl-NL":U,"pl-PL":G,"pt-BR":H,"pt-PT":W,"ro-RO":Z,"ru-RU":J,"sk-SK":X,"sl-SI":Q,"sr-SP":Y,"sv-SE":ee,"tr-TR":re,"uk-UA":ae,"zh-CN":te,"zh-TW":ue};function ve(e){return e&&e.__esModule?e.default:e}function Ce(e,a,r){let t=le.$fca6afa0e843324b$export$f12b703ca79dfbb1(ve(se),"@react-aria/searchfield"),{isDisabled:o,isReadOnly:i,onSubmit:l,onClear:s,type:d="search"}=e,b=c=>{const g=c.key;g==="Enter"&&(o||i)&&c.preventDefault(),!(o||i)&&(g==="Enter"&&l&&(c.preventDefault(),l(a.value)),g==="Escape"&&(a.value===""&&(!r.current||r.current.value==="")?c.continuePropagation():(c.preventDefault(),a.setValue(""),s&&s())))},v=()=>{a.setValue(""),s&&s()},C=()=>{var c;(c=r.current)===null||c===void 0||c.focus()},{labelProps:p,inputProps:$,descriptionProps:m,errorMessageProps:f,...h}=de.$2d73ec29415bd339$export$712718f7aec83d5({...e,value:a.value,onChange:a.setValue,onKeyDown:i?e.onKeyDown:ie.$ff5963eb1fccf552$export$e08e3b67e392101e(b,e.onKeyDown),type:d},r);return{labelProps:p,inputProps:{...$,defaultValue:void 0},clearButtonProps:{"aria-label":t.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:o||i,onPress:v,onPressStart:C},descriptionProps:m,errorMessageProps:f,...h}}function pe(e){let[a,r]=oe.$458b0a5536c1a7cf$export$40bfa8c7b0832715(E(e.value),E(e.defaultValue)||"",e.onChange);return{value:a,setValue:r}}function E(e){if(e!=null)return e.toString()}/**
|
|
2
|
+
* @license lucide-react v0.525.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const me=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ge=fe.createLucideIcon("search",me),ye="_container_basio_1",De="_inner_basio_10",Ee="_inputContainer_basio_15",_e="_medium_basio_21",Pe="_icon_basio_26",Se="_clear_basio_39",Be="_input_basio_15",n={container:ye,inner:De,inputContainer:Ee,medium:_e,icon:Pe,clear:Se,input:Be},je={search:"Search"},Fe={search:"Sök"},ke={en:je,sv:Fe};function qe(e){return!!(e!=null&&e.length)}const Te=({errorPosition:e="top",size:a="large",...r})=>{const{value:t,setValue:o}=pe(r),i=$e.useLocalizedStringFormatter(ke),l=xe.useRef(null),{inputProps:s,isInvalid:d,validationErrors:b,clearButtonProps:v}=Ce({...r,label:r.placeholder,validationBehavior:"native"},{value:t,setValue:o},l),C=({target:f})=>o(f.value),p=()=>o(""),$=()=>{var h;if(r.validate&&qe(r.validate(t))||d||!t){(h=l.current)==null||h.focus();return}r.onSubmit&&r.onSubmit(t)},m=({key:f})=>{f==="Enter"&&$()};return u.jsxs("div",{className:x.clsx(n.container,r.className),"data-disabled":s.disabled,children:[e==="top"&&u.jsx(D.FieldError,{isInvalid:d,children:r.errorMessage??b.join(" ")}),u.jsxs("div",{className:n.inner,children:[u.jsxs("div",{className:x.clsx(n.inputContainer,{[n.medium]:a==="medium"}),children:[u.jsx(ge,{size:20,className:n.icon}),u.jsx("input",{...s,...s.disabled&&{"data-disabled":!0},className:x.clsx(ce.styles.input,n.input,s.className,{[n.medium]:a==="medium"}),ref:l,onChange:C,value:t,"aria-invalid":d,onKeyDown:m,"aria-label":r.placeholder,"aria-labelledby":""}),t.length>0&&u.jsx(y.Button,{variant:"icon",size:a,className:x.clsx(n.clear,{[n.medium]:a==="medium"}),onPress:p,...v,children:u.jsx(be.X,{size:20,"aria-hidden":!0})})]}),u.jsx(y.Button,{size:a,isDisabled:r.isDisabled,excludeFromTabOrder:!0,onPress:$,type:"button",children:r.buttonText?r.buttonText:i.format("search")})]}),e==="bottom"&&u.jsx(D.FieldError,{isInvalid:d,children:r.errorMessage??b.join(" ")})]})};exports.SearchField=Te;
|