@midas-ds/components 10.2.0 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{AccordionItem-Z_c9MpAM.cjs → AccordionItem-BGWiWjxA.cjs} +1 -1
- package/{AccordionItem-DZT76sWu.js → AccordionItem-ChHpW8EW.js} +11 -11
- package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
- package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
- package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-CwDUNIqF.js} +34 -34
- package/{Breadcrumbs-Cx09jwZZ.cjs → Breadcrumbs-DtjJ1UmU.cjs} +1 -1
- package/{Button-iSiWjocA.cjs → Button-BoJl6JGM.cjs} +1 -1
- package/{Button-CbFRzRrF.js → Button-Csih3v23.js} +2 -2
- package/Button-DjBChs7s.js +340 -0
- package/Button-htW9qIsS.cjs +1 -0
- package/Button.module-DEQtBYe5.cjs +1 -0
- package/Button.module-tti8HGxs.js +14 -0
- package/CHANGELOG.md +20 -0
- package/Card-0G0mj9q5.cjs +1 -0
- package/{Card-CaKKKv9k.js → Card-yrtGzt70.js} +5 -5
- package/CharacterCounter-BL_nZHya.js +22 -0
- package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-CHcTDHO-.cjs} +1 -1
- package/Checkbox-5HINZdGu.js +263 -0
- package/Checkbox-DqcPg5hz.cjs +1 -0
- package/CheckboxGroup-BBrSMuDY.cjs +1 -0
- package/CheckboxGroup-CLgixk2p.js +243 -0
- package/{Collection-Csx3L9gh.cjs → Collection-BIDsXNhi.cjs} +1 -1
- package/{Collection-C5ONNBqd.js → Collection-Brgjpkne.js} +4 -4
- package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-BpzQ7g0b.js} +9 -9
- package/{ColorSchemeSwitch-JRrCyYVv.cjs → ColorSchemeSwitch-C-qWuqkU.cjs} +2 -2
- package/{ComboBox-BCaqPEIH.js → ComboBox-CVDyp2a-.js} +331 -327
- package/ComboBox-CWJUg9Xx.cjs +1 -0
- package/DateField-DeDhiYnW.cjs +1 -0
- package/DateField-DhU3q-rG.js +47 -0
- package/DateInputDivider-ADvOavHw.cjs +1 -0
- package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-CF4xWsMT.js} +71 -75
- package/DateRangePicker-BsAHhy99.cjs +6 -0
- package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-ziD1_k1W.js} +194 -194
- package/Dialog-B8GTYbvu.cjs +1 -0
- package/{Dialog-CwTEAujZ.cjs → Dialog-BOrYdX50.cjs} +1 -1
- package/{Dialog-Bxx8cBEq.js → Dialog-CXNu48AC.js} +25 -25
- package/{Dialog-CYxThuMl.js → Dialog-D14MbJ7o.js} +564 -540
- package/{DragAndDrop-HvycSrKY.cjs → DragAndDrop-DNth776R.cjs} +1 -1
- package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-o3ruz_SR.js} +8 -8
- package/{Dropdown-CaGon9OR.cjs → Dropdown-CJ6My6EI.cjs} +1 -1
- package/{Dropdown-nkjzsVYX.js → Dropdown-Df58j43I.js} +2 -2
- package/FieldError-CAcjosk_.js +46 -0
- package/FieldError-CKBb2-mp.cjs +1 -0
- package/{FileUpload-DYRZ0M9F.cjs → FileUpload-CxCOtyB9.cjs} +2 -2
- package/{FileUpload-ULwcYDxs.js → FileUpload-D6qoEAjn.js} +149 -148
- package/FocusScope-5c9SVBcR.cjs +1 -0
- package/{FocusScope-DwIqdYpQ.js → FocusScope-CxkURfoc.js} +16 -16
- package/{Group-CeSsSQVC.js → Group-B6EslsHZ.js} +5 -5
- package/{Heading-BY5-QN4S.js → Heading-BFtiin0g.js} +7 -7
- package/{Heading-DoJAtYZf.cjs → Heading-mHhCbGjY.cjs} +1 -1
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/{InfoBanner-CVIBFSWx.js → InfoBanner-BLM-TJJ6.js} +15 -14
- package/InfoBanner-C2kTIsrB.cjs +1 -0
- package/{Input-D8Ku_FQz.js → Input-BTzwcf72.js} +10 -10
- package/Label-7Ybb99CE.cjs +1 -0
- package/Label-BwJrdqEE.js +70 -0
- package/{Layout-BWeHHnqU.cjs → Layout-1g6bMH62.cjs} +2 -2
- package/{Layout-CCt_2L1k.js → Layout-Ey8flY7E.js} +9 -9
- package/{Link-DsnCtNeI.cjs → Link-B88l_oaE.cjs} +1 -1
- package/{Link-SHMbeyIP.cjs → Link-BQhauBuw.cjs} +1 -1
- package/{Link-uFowN4qv.js → Link-DX5BbBnn.js} +1 -1
- package/{Link-B-nus-FT.js → Link-yNO2-sqx.js} +17 -17
- package/LinkButton-CBpGLETx.cjs +6 -0
- package/LinkButton-o6uS1XsR.js +69 -0
- package/ListBox-DP9M4H6R.cjs +1 -0
- package/{ListBox-DOi_y_Lt.js → ListBox-GnVK_Pdq.js} +72 -73
- package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DPBrtXyv.cjs} +1 -1
- package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-D_J3jlP0.js} +1 -1
- package/{ListBoxSection-DGCP6xpf.cjs → ListBoxSection-BGaigBnG.cjs} +1 -1
- package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-C0BGnpB4.js} +9 -9
- package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-DNI8GQtX.js} +24 -15
- package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
- package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CDLXPTew.js} +44 -44
- package/Popover-BGGXeD54.js +38 -0
- package/Popover-CqNWzPf-.cjs +1 -0
- package/{ProgressBar-gmAzSsrz.js → ProgressBar-DMSg-Prr.js} +2 -2
- package/ProgressBar-Jbg28j2a.cjs +1 -0
- package/Radio-BwqrdhQE.cjs +1 -0
- package/{Radio-_ukSkxPT.js → Radio-Cz29wPXd.js} +71 -71
- package/RangeCalendar-BehUaydF.cjs +11 -0
- package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-RAlAHlNL.js} +25 -27
- package/{SearchField-6yBGiojX.cjs → SearchField-CxMwDeUM.cjs} +2 -2
- package/{SearchField-DYl2uo7o.js → SearchField-IlvZ3Kh6.js} +11 -11
- package/Select-2q1iSzAX.cjs +1 -0
- package/{Select-PvCqY7Lp.js → Select-BVQZtoi9.js} +232 -232
- package/{SelectionManager-6H88Cv6B.js → SelectionManager-B4ORduja.js} +26 -27
- package/SelectionManager-CwYux2h3.cjs +1 -0
- package/{Separator-LYnFqh4L.js → Separator-Cu9fYKUM.js} +19 -20
- package/Separator-DECIYLtZ.cjs +1 -0
- package/{Spinner-DAJtfxqJ.cjs → Spinner-P35rvvsl.cjs} +1 -1
- package/Table-B40CGLT-.cjs +16 -0
- package/{Table-B_N7wUmA.js → Table-F4oYBtUM.js} +69 -73
- package/{Tabs-Ct6D83aR.js → Tabs-B4oZJkZG.js} +39 -39
- package/{Tabs-Dtcl2oK2.cjs → Tabs-DA2qXhzb.cjs} +1 -1
- package/Tag-DPAGmcMK.cjs +1 -0
- package/{Tag-g6HN-YCv.js → Tag-Du7GvSv2.js} +151 -154
- package/Text-BoXuUVVH.js +15 -0
- package/{Text-BN-g1iWi.js → Text-jWWg0B20.js} +1 -1
- package/TextArea-C7JZ_pQd.cjs +1 -0
- package/TextArea-XeBCSyzl.js +191 -0
- package/TextField-BgNdhZi_.cjs +1 -0
- package/{TextField-DBaRuNj7.js → TextField-C-hTPukq.js} +16 -16
- package/Toast-AbDA1BOs.cjs +1 -0
- package/{Toast-CjpldAI8.js → Toast-Btg21Xge.js} +32 -31
- package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-B5yz1tm2.js} +7 -7
- package/{ToggleButtonGroup-BuU_6dYe.cjs → ToggleButtonGroup-BFDoj0P6.cjs} +1 -1
- package/{Tooltip-BAIjaYax.js → Tooltip-CMLs7WMw.js} +33 -33
- package/{Tooltip-CiWg4zIC.cjs → Tooltip-DeBuBKhS.cjs} +1 -1
- package/{VisuallyHidden-CtXvK_Tw.cjs → VisuallyHidden-CLWHbz2n.cjs} +1 -1
- package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-ZCYf65q4.js} +8 -8
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
- package/assets/Button.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/{check-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/CheckboxGroup.d.ts +8 -8
- package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
- package/checkbox/CheckboxGroupItem.d.ts +3 -0
- package/checkbox/CheckboxInner.d.ts +2 -0
- package/checkbox/SingleCheckbox.d.ts +3 -0
- package/checkbox/context.d.ts +3 -0
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.d.ts +2 -1
- package/checkbox/index.js +2 -2
- package/checkbox/intl/translations.json.d.ts +35 -0
- package/checkbox/types.d.ts +14 -0
- package/checkbox/useSelectAll.d.ts +7 -0
- package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
- package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
- package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/ComboBox.d.ts +3 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/{context-B8cn10po.js → context-C81gPYvC.js} +11 -11
- package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
- package/date-field/DateField.d.ts +3 -0
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/DatePicker.d.ts +3 -0
- package/date-picker/DateRangePicker.d.ts +3 -0
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/FileUpload.d.ts +3 -0
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/{getScrollParent-Ru2U2LlM.js → getScrollParent-BhFcYrwL.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DDJu9WHU.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
- package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +80 -78
- package/inertValue-B3AFhVG4.cjs +1 -0
- package/info-BZwphdye.js +15 -0
- package/info-CIEIENo6.cjs +6 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/InfoPopover.d.ts +9 -0
- package/label/LabelWrapper.d.ts +11 -0
- package/label/index.cjs +1 -1
- package/label/index.d.ts +1 -0
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +1 -1
- package/popover/Popover.d.ts +7 -0
- package/popover/index.cjs +1 -0
- package/popover/index.d.ts +1 -0
- package/popover/index.js +4 -0
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/Radio.d.ts +3 -0
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-C8doLzDd.cjs +1 -0
- package/scrollIntoView-Hwb_aaNf.js +87 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/{square-arrow-out-up-right-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.js +1 -1
- package/textfield/TextFieldBase.d.ts +2 -0
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{triangle-alert-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
- package/{useButton-C-Lq7CNY.js → useButton-B8dB9sot.js} +6 -6
- package/{useButton-B1Fa-6qE.cjs → useButton-cpNi-fY4.cjs} +1 -1
- package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-CnxoJ4jF.cjs} +1 -1
- package/{useDateFormatter-C53Uxdli.js → useDateFormatter-EHm4auIg.js} +2 -2
- package/{useEvent-CjkbBniY.cjs → useEvent-DxBxMX2V.cjs} +1 -1
- package/{useEvent-Cyd2ZL0c.js → useEvent-IsD2Awnh.js} +1 -1
- package/useField-CXKYU74k.cjs +1 -0
- package/{useField-BPMAlIbU.js → useField-DvpGZkw_.js} +7 -7
- package/useFilter-BTgDWHVx.cjs +1 -0
- package/{useFilter-ChIbnALW.js → useFilter-CUq74PQ2.js} +1 -1
- package/{useFocusRing-BDGH3lpn.js → useFocusRing-XnR3cZjO.js} +1 -1
- package/useFocusable-C8uh8K4g.js +125 -0
- package/useFocusable-NUVSFcRC.cjs +1 -0
- package/{useFormValidation-R8hQIjWP.js → useFormValidation-BIGzfO9h.js} +5 -5
- package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-C-1mZUQe.js} +2 -2
- package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
- package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-CnBDT86u.js} +14 -14
- package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
- package/{useHover-qRAon4nS.js → useHover-DjIHtjGN.js} +17 -17
- package/{useLabels-BZjoZA1Z.js → useLabels-BDwkBYbE.js} +1 -1
- package/{useListState-Ca2-uZMO.cjs → useListState-Bx8u4IFG.cjs} +1 -1
- package/{useListState-DFQ9d-uE.js → useListState-CrZFZffI.js} +7 -7
- package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
- package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
- package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
- package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-0AjDbW9R.cjs +7 -0
- package/{usePress-CUJ3pMOw.js → usePress-CNjmDzap.js} +48 -48
- package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-0AGHxvy3.js} +1 -1
- package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-Cl3KV5E1.cjs} +1 -1
- package/{useTextField-CtUDWsUl.cjs → useTextField--czJtyNd.cjs} +1 -1
- package/{useTextField-5OZQPyOW.js → useTextField-Cw-33OP_.js} +11 -11
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/{utils-HNTsIwux.js → utils-DIMfEPAt.js} +10 -10
- package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
- package/Button-DnhqHU01.cjs +0 -1
- package/Button-ZOQy9Ivu.js +0 -78
- package/Button.module-CMMhIrkn.js +0 -14
- package/Button.module-DO5s9hOk.cjs +0 -1
- package/Card-C0BFW3wJ.cjs +0 -1
- package/CharacterCounter-CPGdboVJ.js +0 -22
- package/Checkbox-CvFsn_FL.js +0 -380
- package/Checkbox-DSxGAJX2.cjs +0 -1
- package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
- package/CheckboxGroup-Dij9zKlF.js +0 -54
- package/ComboBox-gveQKHU3.cjs +0 -1
- package/DateField-CAQlzuDD.js +0 -46
- package/DateField-deVVFwKA.cjs +0 -1
- package/DateInputDivider-DnUxETEC.cjs +0 -1
- package/DateRangePicker-BzfitoK0.cjs +0 -6
- package/Dialog-Bd5hK360.cjs +0 -1
- package/FieldError-BZw8UzBk.cjs +0 -1
- package/FieldError-CZikNDxX.js +0 -28
- package/FieldError-DqdfJ3fs.cjs +0 -1
- package/FieldError-Dv3bBEjh.js +0 -23
- package/FocusScope-NaPbvuuS.cjs +0 -1
- package/InfoBanner-BS-dAfzO.cjs +0 -1
- package/Label-C9ivwkAd.js +0 -21
- package/Label-CUV21CAv.cjs +0 -1
- package/Label-DkDOsmUF.js +0 -16
- package/Label-IMWAyoKb.cjs +0 -1
- package/LinkButton-CuBilDML.js +0 -69
- package/LinkButton-CymMrcGL.cjs +0 -6
- package/ListBox-CDOsQChA.cjs +0 -1
- package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
- package/LiveAnnouncer-B6177m92.js +0 -51
- package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
- package/LocalizedStringFormatter-C0C54hjf.cjs +0 -1
- package/LocalizedStringFormatter-D-4Qyql0.js +0 -77
- package/NumberFormatter-DewVDY5w.cjs +0 -1
- package/NumberFormatter-DgOUVrge.js +0 -119
- package/PressResponder-C06O3Z5P.cjs +0 -1
- package/PressResponder-CVEg5kND.js +0 -33
- package/ProgressBar-Bkw9zavs.cjs +0 -1
- package/ProgressBar-CEX2WNoW.js +0 -77
- package/ProgressBar-Dqh3ftSP.cjs +0 -1
- package/Radio-CDKrvQe4.cjs +0 -1
- package/RangeCalendar-cbCKBPZv.cjs +0 -11
- package/Select-CpHjd1tp.cjs +0 -1
- package/SelectionManager-C5NGBzvz.cjs +0 -1
- package/Separator-nPra6kD-.cjs +0 -1
- package/Table-D9vNc_y-.cjs +0 -16
- package/Tag-CVFkzg3s.cjs +0 -1
- package/Text-B_H68Tvq.js +0 -15
- package/TextArea-DSiQ578a.js +0 -206
- package/TextArea-cVyGBRbL.cjs +0 -1
- package/TextField-B70CL2qz.cjs +0 -1
- package/Toast-DrkOGy4d.cjs +0 -1
- package/focusSafely-Bqfo_DH7.cjs +0 -1
- package/focusSafely-C48ucRUz.js +0 -56
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/useCollator-C_ozeWLo.cjs +0 -1
- package/useCollator-CgZcHC8N.js +0 -11
- package/useDescription-CVKhFa3c.js +0 -32
- package/useDescription-DmQYSEES.cjs +0 -1
- package/useField-B1RU0GKs.cjs +0 -1
- package/useFilter-CtIwF2qW.cjs +0 -1
- package/useFocusable-CaedRTpB.js +0 -74
- package/useFocusable-CuPQ7Cm5.cjs +0 -1
- package/useHasTabbableChild-DgphNvnk.cjs +0 -1
- package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
- package/useLabel-DDdAJ1JO.js +0 -23
- package/useLabel-m_S5xkHy.cjs +0 -1
- package/useLocalizedStringFormatter-D07YB2e1.js +0 -22
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BFa6cT9o.cjs +0 -7
|
@@ -1,55 +1,53 @@
|
|
|
1
|
-
import { jsxs as H, jsx as
|
|
1
|
+
import { jsxs as H, jsx as $ } from "react/jsx-runtime";
|
|
2
2
|
import * as ce from "react";
|
|
3
3
|
import J, { useMemo as W, useRef as z, useState as L, forwardRef as De, createContext as ee, useCallback as xe } from "react";
|
|
4
4
|
import { c as Q } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
import { $ as
|
|
6
|
-
import { c as Fe, d as Re, e as Ce, f as
|
|
7
|
-
import { F as Y } from "./FieldError-
|
|
8
|
-
import { L as
|
|
9
|
-
import { T as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { i as
|
|
13
|
-
import { $ as
|
|
14
|
-
import { $ as
|
|
15
|
-
import {
|
|
16
|
-
import { $ as ve } from "./Label-DkDOsmUF.js";
|
|
17
|
-
import { a as me } from "./Text-B_H68Tvq.js";
|
|
5
|
+
import { $ as da, a as na, C as ra, R as oa } from "./RangeCalendar-RAlAHlNL.js";
|
|
6
|
+
import { c as Fe, d as Re, e as Ce, f as sa, g as Oe, h as ua, i as q, j, k as ca, l as Te, a as ne, D as re, b as fa } from "./DateInputDivider-CF4xWsMT.js";
|
|
7
|
+
import { $ as Ie, F as Y } from "./FieldError-CAcjosk_.js";
|
|
8
|
+
import { a as Ze, L as Me } from "./Label-BwJrdqEE.js";
|
|
9
|
+
import { T as Be } from "./Text-jWWg0B20.js";
|
|
10
|
+
import { e as fe, b as be, $ as ba } from "./Button-DjBChs7s.js";
|
|
11
|
+
import { e as G, c as ke, a as we, g as _e, h as Ee, i as pe, b as Se, j as Ue } from "./utils-DIMfEPAt.js";
|
|
12
|
+
import { i as Ne, m as We, n as Le, a as va, l as ma } from "./Dialog-D14MbJ7o.js";
|
|
13
|
+
import { $ as Ke } from "./Form-CXcEMuBf.js";
|
|
14
|
+
import { a as ve, $ as $a } from "./Group-B6EslsHZ.js";
|
|
15
|
+
import { $ as me } from "./Text-BoXuUVVH.js";
|
|
18
16
|
import { $ as ae } from "./filterDOMProps-D6KHYVBX.js";
|
|
19
|
-
import {
|
|
20
|
-
import { $ as A, a as oe, b as se } from "./useDateFormatter-
|
|
21
|
-
import {
|
|
22
|
-
import { $ as
|
|
23
|
-
import { b as
|
|
24
|
-
import {
|
|
25
|
-
import { a as
|
|
26
|
-
import { $ as
|
|
27
|
-
import { $ as
|
|
28
|
-
import {
|
|
29
|
-
import { c as
|
|
30
|
-
import './assets/DateRangePicker.css';function
|
|
17
|
+
import { a as je, g as ze } from "./OverlayArrow-CDLXPTew.js";
|
|
18
|
+
import { $ as A, a as oe, b as se } from "./useDateFormatter-EHm4auIg.js";
|
|
19
|
+
import { d as ue, e as Pe, c as Ve, $ as qe } from "./useFormValidation-BIGzfO9h.js";
|
|
20
|
+
import { $ as Ge } from "./useControlledState-u436Wbp1.js";
|
|
21
|
+
import { b as Ae } from "./FocusScope-CxkURfoc.js";
|
|
22
|
+
import { a as Xe } from "./scrollIntoView-Hwb_aaNf.js";
|
|
23
|
+
import { a as He, $ as Je } from "./useFocusRing-XnR3cZjO.js";
|
|
24
|
+
import { $ as Qe } from "./useField-DvpGZkw_.js";
|
|
25
|
+
import { $ as Ye } from "./context-C81gPYvC.js";
|
|
26
|
+
import { b as ea } from "./useLocalizedStringFormatter-BKoxGZf1.js";
|
|
27
|
+
import { c as ha } from "./createLucideIcon-DeWljiyi.js";
|
|
28
|
+
import './assets/DateRangePicker.css';function ga(e) {
|
|
31
29
|
return e && e.__esModule ? e.default : e;
|
|
32
30
|
}
|
|
33
|
-
function
|
|
34
|
-
let
|
|
31
|
+
function ya(e, a, i) {
|
|
32
|
+
let f = G(), u = G(), c = G(), s = ea(ga(Ce), "@react-aria/datepicker"), { isInvalid: t, validationErrors: l, validationDetails: x } = a.displayValidation, { labelProps: B, fieldProps: b, descriptionProps: k, errorMessageProps: F } = Qe({
|
|
35
33
|
...e,
|
|
36
34
|
labelElementType: "span",
|
|
37
35
|
isInvalid: t,
|
|
38
36
|
errorMessage: e.errorMessage || l
|
|
39
|
-
}), R = Fe(a, i), C = b["aria-labelledby"] || b.id, { locale: v } =
|
|
37
|
+
}), R = Fe(a, i), C = b["aria-labelledby"] || b.id, { locale: v } = Ye(), O = a.formatValue(v, {
|
|
40
38
|
month: "long"
|
|
41
|
-
}), d = O ?
|
|
39
|
+
}), d = O ? s.format("selectedDateDescription", {
|
|
42
40
|
date: O
|
|
43
|
-
}) : "", T =
|
|
41
|
+
}) : "", T = Xe(d), I = [
|
|
44
42
|
T["aria-describedby"],
|
|
45
43
|
b["aria-describedby"]
|
|
46
|
-
].filter(Boolean).join(" ") || void 0, P = ae(e), Z = W(() =>
|
|
44
|
+
].filter(Boolean).join(" ") || void 0, P = ae(e), Z = W(() => Ae(i), [
|
|
47
45
|
i
|
|
48
|
-
]), M = z(!1), { focusWithinProps: D } =
|
|
46
|
+
]), M = z(!1), { focusWithinProps: D } = He({
|
|
49
47
|
...e,
|
|
50
48
|
isDisabled: a.isOpen,
|
|
51
49
|
onBlurWithin: (y) => {
|
|
52
|
-
let V = document.getElementById(
|
|
50
|
+
let V = document.getElementById(u);
|
|
53
51
|
if (!(V != null && V.contains(y.relatedTarget))) {
|
|
54
52
|
var o, g;
|
|
55
53
|
M.current = !1, (o = e.onBlur) === null || o === void 0 || o.call(e, y), (g = e.onFocusChange) === null || g === void 0 || g.call(e, !1);
|
|
@@ -63,7 +61,7 @@ function ga(e, a, i) {
|
|
|
63
61
|
}
|
|
64
62
|
});
|
|
65
63
|
return {
|
|
66
|
-
groupProps:
|
|
64
|
+
groupProps: ke(P, R, b, T, D, {
|
|
67
65
|
role: "group",
|
|
68
66
|
"aria-disabled": e.isDisabled || null,
|
|
69
67
|
"aria-labelledby": C,
|
|
@@ -83,7 +81,7 @@ function ga(e, a, i) {
|
|
|
83
81
|
},
|
|
84
82
|
fieldProps: {
|
|
85
83
|
...b,
|
|
86
|
-
id:
|
|
84
|
+
id: c,
|
|
87
85
|
[Re]: "presentation",
|
|
88
86
|
"aria-describedby": I,
|
|
89
87
|
value: a.value,
|
|
@@ -106,18 +104,18 @@ function ga(e, a, i) {
|
|
|
106
104
|
errorMessageProps: F,
|
|
107
105
|
buttonProps: {
|
|
108
106
|
...T,
|
|
109
|
-
id:
|
|
107
|
+
id: f,
|
|
110
108
|
"aria-haspopup": "dialog",
|
|
111
|
-
"aria-label":
|
|
112
|
-
"aria-labelledby": `${
|
|
109
|
+
"aria-label": s.format("calendar"),
|
|
110
|
+
"aria-labelledby": `${f} ${C}`,
|
|
113
111
|
"aria-describedby": I,
|
|
114
112
|
"aria-expanded": a.isOpen,
|
|
115
113
|
isDisabled: e.isDisabled || e.isReadOnly,
|
|
116
114
|
onPress: () => a.setOpen(!0)
|
|
117
115
|
},
|
|
118
116
|
dialogProps: {
|
|
119
|
-
id:
|
|
120
|
-
"aria-labelledby": `${
|
|
117
|
+
id: u,
|
|
118
|
+
"aria-labelledby": `${f} ${C}`
|
|
121
119
|
},
|
|
122
120
|
calendarProps: {
|
|
123
121
|
autoFocus: !0,
|
|
@@ -137,38 +135,38 @@ function ga(e, a, i) {
|
|
|
137
135
|
validationDetails: x
|
|
138
136
|
};
|
|
139
137
|
}
|
|
140
|
-
function
|
|
138
|
+
function Pa(e) {
|
|
141
139
|
return e && e.__esModule ? e.default : e;
|
|
142
140
|
}
|
|
143
|
-
function
|
|
144
|
-
var
|
|
145
|
-
let
|
|
141
|
+
function Va(e, a, i) {
|
|
142
|
+
var f, u, c;
|
|
143
|
+
let s = ea(Pa(Ce), "@react-aria/datepicker"), { isInvalid: t, validationErrors: l, validationDetails: x } = a.displayValidation, { labelProps: B, fieldProps: b, descriptionProps: k, errorMessageProps: F } = Qe({
|
|
146
144
|
...e,
|
|
147
145
|
labelElementType: "span",
|
|
148
146
|
isInvalid: t,
|
|
149
147
|
errorMessage: e.errorMessage || l
|
|
150
|
-
}), R = b["aria-labelledby"] || b.id, { locale: C } =
|
|
148
|
+
}), R = b["aria-labelledby"] || b.id, { locale: C } = Ye(), v = a.formatValue(C, {
|
|
151
149
|
month: "long"
|
|
152
|
-
}), O = v ?
|
|
150
|
+
}), O = v ? s.format("selectedRangeDescription", {
|
|
153
151
|
startDate: v.start,
|
|
154
152
|
endDate: v.end
|
|
155
|
-
}) : "", d =
|
|
156
|
-
"aria-label":
|
|
153
|
+
}) : "", d = Xe(O), T = {
|
|
154
|
+
"aria-label": s.format("startDate"),
|
|
157
155
|
"aria-labelledby": R
|
|
158
156
|
}, I = {
|
|
159
|
-
"aria-label":
|
|
157
|
+
"aria-label": s.format("endDate"),
|
|
160
158
|
"aria-labelledby": R
|
|
161
159
|
}, P = G(), Z = G(), M = Fe(a, i), D = [
|
|
162
160
|
d["aria-describedby"],
|
|
163
161
|
b["aria-describedby"]
|
|
164
|
-
].filter(Boolean).join(" ") || void 0, y = W(() =>
|
|
162
|
+
].filter(Boolean).join(" ") || void 0, y = W(() => Ae(i, {
|
|
165
163
|
// Exclude the button from the focus manager.
|
|
166
164
|
accept: (r) => r.id !== P
|
|
167
165
|
}), [
|
|
168
166
|
i,
|
|
169
167
|
P
|
|
170
168
|
]), V = {
|
|
171
|
-
[
|
|
169
|
+
[sa]: y,
|
|
172
170
|
[Re]: "presentation",
|
|
173
171
|
"aria-describedby": D,
|
|
174
172
|
placeholderValue: e.placeholderValue,
|
|
@@ -180,26 +178,26 @@ function Pa(e, a, i) {
|
|
|
180
178
|
isReadOnly: e.isReadOnly,
|
|
181
179
|
isRequired: e.isRequired,
|
|
182
180
|
validationBehavior: e.validationBehavior
|
|
183
|
-
}, o = ae(e), g = z(!1), { focusWithinProps: E } =
|
|
181
|
+
}, o = ae(e), g = z(!1), { focusWithinProps: E } = He({
|
|
184
182
|
...e,
|
|
185
183
|
isDisabled: a.isOpen,
|
|
186
184
|
onBlurWithin: (r) => {
|
|
187
|
-
let
|
|
188
|
-
if (!(
|
|
185
|
+
let h = document.getElementById(Z);
|
|
186
|
+
if (!(h != null && h.contains(r.relatedTarget))) {
|
|
189
187
|
var w, K;
|
|
190
188
|
g.current = !1, (w = e.onBlur) === null || w === void 0 || w.call(e, r), (K = e.onFocusChange) === null || K === void 0 || K.call(e, !1);
|
|
191
189
|
}
|
|
192
190
|
},
|
|
193
191
|
onFocusWithin: (r) => {
|
|
194
192
|
if (!g.current) {
|
|
195
|
-
var
|
|
196
|
-
g.current = !0, (
|
|
193
|
+
var h, w;
|
|
194
|
+
g.current = !0, (h = e.onFocus) === null || h === void 0 || h.call(e, r), (w = e.onFocusChange) === null || w === void 0 || w.call(e, !0);
|
|
197
195
|
}
|
|
198
196
|
}
|
|
199
197
|
}), p = z(Pe), X = z(Pe);
|
|
200
198
|
var n, m;
|
|
201
199
|
return {
|
|
202
|
-
groupProps:
|
|
200
|
+
groupProps: ke(o, M, b, d, E, {
|
|
203
201
|
role: "group",
|
|
204
202
|
"aria-disabled": e.isDisabled || null,
|
|
205
203
|
"aria-describedby": D,
|
|
@@ -220,7 +218,7 @@ function Pa(e, a, i) {
|
|
|
220
218
|
...d,
|
|
221
219
|
id: P,
|
|
222
220
|
"aria-haspopup": "dialog",
|
|
223
|
-
"aria-label":
|
|
221
|
+
"aria-label": s.format("calendar"),
|
|
224
222
|
"aria-labelledby": `${P} ${R}`,
|
|
225
223
|
"aria-describedby": D,
|
|
226
224
|
"aria-expanded": a.isOpen,
|
|
@@ -234,7 +232,7 @@ function Pa(e, a, i) {
|
|
|
234
232
|
startFieldProps: {
|
|
235
233
|
...T,
|
|
236
234
|
...V,
|
|
237
|
-
value: (n = (
|
|
235
|
+
value: (n = (f = a.value) === null || f === void 0 ? void 0 : f.start) !== null && n !== void 0 ? n : null,
|
|
238
236
|
onChange: (r) => a.setDateTime("start", r),
|
|
239
237
|
autoFocus: e.autoFocus,
|
|
240
238
|
name: e.startName,
|
|
@@ -251,7 +249,7 @@ function Pa(e, a, i) {
|
|
|
251
249
|
endFieldProps: {
|
|
252
250
|
...I,
|
|
253
251
|
...V,
|
|
254
|
-
value: (m = (
|
|
252
|
+
value: (m = (u = a.value) === null || u === void 0 ? void 0 : u.end) !== null && m !== void 0 ? m : null,
|
|
255
253
|
onChange: (r) => a.setDateTime("end", r),
|
|
256
254
|
name: e.endName,
|
|
257
255
|
[ue]: {
|
|
@@ -268,7 +266,7 @@ function Pa(e, a, i) {
|
|
|
268
266
|
errorMessageProps: F,
|
|
269
267
|
calendarProps: {
|
|
270
268
|
autoFocus: !0,
|
|
271
|
-
value: !((
|
|
269
|
+
value: !((c = a.dateRange) === null || c === void 0) && c.start && a.dateRange.end ? a.dateRange : null,
|
|
272
270
|
onChange: a.setDateRange,
|
|
273
271
|
minValue: e.minValue,
|
|
274
272
|
maxValue: e.maxValue,
|
|
@@ -285,52 +283,52 @@ function Pa(e, a, i) {
|
|
|
285
283
|
validationDetails: x
|
|
286
284
|
};
|
|
287
285
|
}
|
|
288
|
-
function
|
|
289
|
-
let a =
|
|
286
|
+
function Da(e) {
|
|
287
|
+
let a = je(e), [i, f] = Ge(e.value, e.defaultValue || null, e.onChange), u = i || e.placeholderValue || null, [c, s] = Oe(u, e.granularity), t = i != null ? i.toDate(s ?? "UTC") : null, l = c === "hour" || c === "minute" || c === "second";
|
|
290
288
|
var x;
|
|
291
289
|
let B = (x = e.shouldCloseOnSelect) !== null && x !== void 0 ? x : !0, [b, k] = L(null), [F, R] = L(null);
|
|
292
|
-
if (i && (b = i, "hour" in i && (F = i)),
|
|
290
|
+
if (i && (b = i, "hour" in i && (F = i)), u && !(c in u)) throw new Error("Invalid granularity " + c + " for value " + u.toString());
|
|
293
291
|
let C = (i == null ? void 0 : i.calendar.identifier) === "gregory" && i.era === "BC", v = W(() => ({
|
|
294
|
-
granularity:
|
|
295
|
-
timeZone:
|
|
292
|
+
granularity: c,
|
|
293
|
+
timeZone: s,
|
|
296
294
|
hideTimeZone: e.hideTimeZone,
|
|
297
295
|
hourCycle: e.hourCycle,
|
|
298
296
|
shouldForceLeadingZeros: e.shouldForceLeadingZeros,
|
|
299
297
|
showEra: C
|
|
300
298
|
}), [
|
|
301
|
-
|
|
299
|
+
c,
|
|
302
300
|
e.hourCycle,
|
|
303
301
|
e.shouldForceLeadingZeros,
|
|
304
|
-
|
|
302
|
+
s,
|
|
305
303
|
e.hideTimeZone,
|
|
306
304
|
C
|
|
307
|
-
]), { minValue: O, maxValue: d, isDateUnavailable: T } = e, I = W(() =>
|
|
305
|
+
]), { minValue: O, maxValue: d, isDateUnavailable: T } = e, I = W(() => ua(i, O, d, T, v), [
|
|
308
306
|
i,
|
|
309
307
|
O,
|
|
310
308
|
d,
|
|
311
309
|
T,
|
|
312
310
|
v
|
|
313
|
-
]), P =
|
|
311
|
+
]), P = qe({
|
|
314
312
|
...e,
|
|
315
313
|
value: i,
|
|
316
314
|
builtinValidation: I
|
|
317
315
|
}), Z = P.displayValidation.isInvalid, M = e.validationState || (Z ? "invalid" : null), D = (o, g) => {
|
|
318
|
-
|
|
316
|
+
f("timeZone" in g ? g.set(se(o)) : oe(o, g)), k(null), R(null), P.commitValidation();
|
|
319
317
|
};
|
|
320
318
|
return {
|
|
321
319
|
...P,
|
|
322
320
|
value: i,
|
|
323
|
-
setValue:
|
|
321
|
+
setValue: f,
|
|
324
322
|
dateValue: b,
|
|
325
323
|
timeValue: F,
|
|
326
324
|
setDateValue: (o) => {
|
|
327
325
|
let g = typeof B == "function" ? B() : B;
|
|
328
|
-
l ? F || g ? D(o, F || j(e.defaultValue || e.placeholderValue)) : k(o) : (
|
|
326
|
+
l ? F || g ? D(o, F || j(e.defaultValue || e.placeholderValue)) : k(o) : (f(o), P.commitValidation()), g && a.setOpen(!1);
|
|
329
327
|
},
|
|
330
328
|
setTimeValue: (o) => {
|
|
331
329
|
b && o ? D(b, o) : R(o);
|
|
332
330
|
},
|
|
333
|
-
granularity:
|
|
331
|
+
granularity: c,
|
|
334
332
|
hasTime: l,
|
|
335
333
|
...a,
|
|
336
334
|
setOpen(o) {
|
|
@@ -352,21 +350,21 @@ function Va(e) {
|
|
|
352
350
|
}
|
|
353
351
|
};
|
|
354
352
|
}
|
|
355
|
-
function
|
|
353
|
+
function xa(e) {
|
|
356
354
|
var a, i;
|
|
357
|
-
let
|
|
355
|
+
let f = je(e), [u, c] = Ge(e.value, e.defaultValue || null, e.onChange), [s, t] = L(() => u || {
|
|
358
356
|
start: null,
|
|
359
357
|
end: null
|
|
360
358
|
});
|
|
361
|
-
|
|
359
|
+
u == null && s.start && s.end && (s = {
|
|
362
360
|
start: null,
|
|
363
361
|
end: null
|
|
364
|
-
}, t(
|
|
365
|
-
let l =
|
|
362
|
+
}, t(s));
|
|
363
|
+
let l = u || s, x = (n) => {
|
|
366
364
|
t(n || {
|
|
367
365
|
start: null,
|
|
368
366
|
end: null
|
|
369
|
-
}), U(n) ?
|
|
367
|
+
}), U(n) ? c(n) : c(null);
|
|
370
368
|
}, B = (l == null ? void 0 : l.start) || (l == null ? void 0 : l.end) || e.placeholderValue || null, [b, k] = Oe(B, e.granularity), F = b === "hour" || b === "minute" || b === "second";
|
|
371
369
|
var R;
|
|
372
370
|
let C = (R = e.shouldCloseOnSelect) !== null && R !== void 0 ? R : !0, [v, O] = L(null), [d, T] = L(null);
|
|
@@ -381,7 +379,7 @@ function Da(e) {
|
|
|
381
379
|
F ? U(n) && (m || d != null && d.start && (d != null && d.end)) ? I(n, {
|
|
382
380
|
start: (d == null ? void 0 : d.start) || j(e.placeholderValue),
|
|
383
381
|
end: (d == null ? void 0 : d.end) || j(e.placeholderValue)
|
|
384
|
-
}) : O(n) : U(n) ? (x(n), E.commitValidation()) : O(n), m &&
|
|
382
|
+
}) : O(n) : U(n) ? (x(n), E.commitValidation()) : O(n), m && f.setOpen(!1);
|
|
385
383
|
}, Z = (n) => {
|
|
386
384
|
U(v) && U(n) ? I(v, n) : T(n);
|
|
387
385
|
}, M = (l == null || (a = l.start) === null || a === void 0 ? void 0 : a.calendar.identifier) === "gregory" && l.start.era === "BC" || (l == null || (i = l.end) === null || i === void 0 ? void 0 : i.calendar.identifier) === "gregory" && l.end.era === "BC", D = W(() => ({
|
|
@@ -398,15 +396,15 @@ function Da(e) {
|
|
|
398
396
|
k,
|
|
399
397
|
e.hideTimeZone,
|
|
400
398
|
M
|
|
401
|
-
]), { minValue: y, maxValue: V, isDateUnavailable: o } = e, g = W(() =>
|
|
399
|
+
]), { minValue: y, maxValue: V, isDateUnavailable: o } = e, g = W(() => ca(l, y, V, o, D), [
|
|
402
400
|
l,
|
|
403
401
|
y,
|
|
404
402
|
V,
|
|
405
403
|
o,
|
|
406
404
|
D
|
|
407
|
-
]), E =
|
|
405
|
+
]), E = qe({
|
|
408
406
|
...e,
|
|
409
|
-
value:
|
|
407
|
+
value: u,
|
|
410
408
|
name: W(() => [
|
|
411
409
|
e.startName,
|
|
412
410
|
e.endName
|
|
@@ -425,56 +423,56 @@ function Da(e) {
|
|
|
425
423
|
granularity: b,
|
|
426
424
|
hasTime: F,
|
|
427
425
|
setDate(n, m) {
|
|
428
|
-
var r,
|
|
426
|
+
var r, h;
|
|
429
427
|
P(n === "start" ? {
|
|
430
428
|
start: m,
|
|
431
429
|
end: (r = v == null ? void 0 : v.end) !== null && r !== void 0 ? r : null
|
|
432
430
|
} : {
|
|
433
|
-
start: (
|
|
431
|
+
start: (h = v == null ? void 0 : v.start) !== null && h !== void 0 ? h : null,
|
|
434
432
|
end: m
|
|
435
433
|
});
|
|
436
434
|
},
|
|
437
435
|
setTime(n, m) {
|
|
438
|
-
var r,
|
|
436
|
+
var r, h;
|
|
439
437
|
Z(n === "start" ? {
|
|
440
438
|
start: m,
|
|
441
439
|
end: (r = d == null ? void 0 : d.end) !== null && r !== void 0 ? r : null
|
|
442
440
|
} : {
|
|
443
|
-
start: (
|
|
441
|
+
start: (h = d == null ? void 0 : d.start) !== null && h !== void 0 ? h : null,
|
|
444
442
|
end: m
|
|
445
443
|
});
|
|
446
444
|
},
|
|
447
445
|
setDateTime(n, m) {
|
|
448
|
-
var r,
|
|
446
|
+
var r, h;
|
|
449
447
|
x(n === "start" ? {
|
|
450
448
|
start: m,
|
|
451
449
|
end: (r = l == null ? void 0 : l.end) !== null && r !== void 0 ? r : null
|
|
452
450
|
} : {
|
|
453
|
-
start: (
|
|
451
|
+
start: (h = l == null ? void 0 : l.start) !== null && h !== void 0 ? h : null,
|
|
454
452
|
end: m
|
|
455
453
|
});
|
|
456
454
|
},
|
|
457
455
|
setDateRange: P,
|
|
458
456
|
setTimeRange: Z,
|
|
459
|
-
...
|
|
457
|
+
...f,
|
|
460
458
|
setOpen(n) {
|
|
461
459
|
!n && !(l != null && l.start && (l != null && l.end)) && U(v) && F && I(v, {
|
|
462
460
|
start: (d == null ? void 0 : d.start) || j(e.placeholderValue),
|
|
463
461
|
end: (d == null ? void 0 : d.end) || j(e.placeholderValue)
|
|
464
|
-
}),
|
|
462
|
+
}), f.setOpen(n);
|
|
465
463
|
},
|
|
466
464
|
validationState: X,
|
|
467
465
|
isInvalid: p,
|
|
468
466
|
formatValue(n, m) {
|
|
469
467
|
if (!l || !l.start || !l.end) return null;
|
|
470
|
-
let r = "timeZone" in l.start ? l.start.timeZone : void 0,
|
|
471
|
-
granularity:
|
|
468
|
+
let r = "timeZone" in l.start ? l.start.timeZone : void 0, h = e.granularity || (l.start && "minute" in l.start ? "minute" : "day"), w = "timeZone" in l.end ? l.end.timeZone : void 0, K = e.granularity || (l.end && "minute" in l.end ? "minute" : "day"), ta = q(m, {
|
|
469
|
+
granularity: h,
|
|
472
470
|
timeZone: r,
|
|
473
471
|
hideTimeZone: e.hideTimeZone,
|
|
474
472
|
hourCycle: e.hourCycle,
|
|
475
473
|
showEra: l.start.calendar.identifier === "gregory" && l.start.era === "BC" || l.end.calendar.identifier === "gregory" && l.end.era === "BC"
|
|
476
|
-
}), $e = l.start.toDate(r || "UTC"), he = l.end.toDate(w || "UTC"), le = new A(n,
|
|
477
|
-
if (r === w &&
|
|
474
|
+
}), $e = l.start.toDate(r || "UTC"), he = l.end.toDate(w || "UTC"), le = new A(n, ta), ie;
|
|
475
|
+
if (r === w && h === K && l.start.compare(l.end) !== 0) {
|
|
478
476
|
try {
|
|
479
477
|
let S = le.formatRangeToParts($e, he), te = -1;
|
|
480
478
|
for (let _ = 0; _ < S.length; _++) {
|
|
@@ -510,40 +508,40 @@ function Da(e) {
|
|
|
510
508
|
let r = {
|
|
511
509
|
...D,
|
|
512
510
|
...m
|
|
513
|
-
},
|
|
514
|
-
return new A(n,
|
|
511
|
+
}, h = q({}, r);
|
|
512
|
+
return new A(n, h);
|
|
515
513
|
}
|
|
516
514
|
};
|
|
517
515
|
}
|
|
518
516
|
function U(e) {
|
|
519
517
|
return (e == null ? void 0 : e.start) != null && e.end != null;
|
|
520
518
|
}
|
|
521
|
-
const
|
|
522
|
-
be,
|
|
523
|
-
fe,
|
|
519
|
+
const Fa = /* @__PURE__ */ ee(null), Ra = /* @__PURE__ */ ee(null), Ca = /* @__PURE__ */ ee(null), Oa = /* @__PURE__ */ ee(null), aa = [
|
|
524
520
|
ve,
|
|
521
|
+
fe,
|
|
522
|
+
be,
|
|
525
523
|
me
|
|
526
|
-
],
|
|
527
|
-
[a, i] =
|
|
528
|
-
let { validationBehavior:
|
|
529
|
-
var
|
|
530
|
-
let
|
|
524
|
+
], Ta = /* @__PURE__ */ De(function(a, i) {
|
|
525
|
+
[a, i] = we(a, i, Fa);
|
|
526
|
+
let { validationBehavior: f } = _e(Ke) || {};
|
|
527
|
+
var u, c;
|
|
528
|
+
let s = (c = (u = a.validationBehavior) !== null && u !== void 0 ? u : f) !== null && c !== void 0 ? c : "native", t = Da({
|
|
531
529
|
...a,
|
|
532
|
-
validationBehavior:
|
|
533
|
-
}), l = z(null), [x, B] =
|
|
534
|
-
...
|
|
530
|
+
validationBehavior: s
|
|
531
|
+
}), l = z(null), [x, B] = Ee(!a["aria-label"] && !a["aria-labelledby"]), { groupProps: b, labelProps: k, fieldProps: F, buttonProps: R, dialogProps: C, calendarProps: v, descriptionProps: O, errorMessageProps: d, ...T } = ya({
|
|
532
|
+
...pe(a),
|
|
535
533
|
label: B,
|
|
536
|
-
validationBehavior:
|
|
534
|
+
validationBehavior: s
|
|
537
535
|
}, t, l), [I, P] = L(null), Z = xe(() => {
|
|
538
536
|
l.current && P(l.current.offsetWidth + "px");
|
|
539
537
|
}, []);
|
|
540
|
-
|
|
538
|
+
ze({
|
|
541
539
|
ref: l,
|
|
542
540
|
onResize: Z
|
|
543
541
|
});
|
|
544
|
-
let { focusProps: M, isFocused: D, isFocusVisible: y } =
|
|
542
|
+
let { focusProps: M, isFocused: D, isFocusVisible: y } = Je({
|
|
545
543
|
within: !0
|
|
546
|
-
}), V =
|
|
544
|
+
}), V = Se({
|
|
547
545
|
...a,
|
|
548
546
|
values: {
|
|
549
547
|
state: t,
|
|
@@ -555,14 +553,14 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
555
553
|
},
|
|
556
554
|
defaultClassName: "react-aria-DatePicker"
|
|
557
555
|
}), o = ae(a);
|
|
558
|
-
return delete o.id, /* @__PURE__ */ J.createElement(
|
|
556
|
+
return delete o.id, /* @__PURE__ */ J.createElement(Ue, {
|
|
559
557
|
values: [
|
|
560
558
|
[
|
|
561
|
-
|
|
559
|
+
Ca,
|
|
562
560
|
t
|
|
563
561
|
],
|
|
564
562
|
[
|
|
565
|
-
|
|
563
|
+
ve,
|
|
566
564
|
{
|
|
567
565
|
...b,
|
|
568
566
|
ref: l,
|
|
@@ -581,7 +579,7 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
581
579
|
}
|
|
582
580
|
],
|
|
583
581
|
[
|
|
584
|
-
|
|
582
|
+
be,
|
|
585
583
|
{
|
|
586
584
|
...k,
|
|
587
585
|
ref: x,
|
|
@@ -589,15 +587,15 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
589
587
|
}
|
|
590
588
|
],
|
|
591
589
|
[
|
|
592
|
-
|
|
590
|
+
da,
|
|
593
591
|
v
|
|
594
592
|
],
|
|
595
593
|
[
|
|
596
|
-
|
|
594
|
+
Ne,
|
|
597
595
|
t
|
|
598
596
|
],
|
|
599
597
|
[
|
|
600
|
-
|
|
598
|
+
We,
|
|
601
599
|
{
|
|
602
600
|
trigger: "DatePicker",
|
|
603
601
|
triggerRef: l,
|
|
@@ -605,11 +603,11 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
605
603
|
style: {
|
|
606
604
|
"--trigger-width": I
|
|
607
605
|
},
|
|
608
|
-
clearContexts:
|
|
606
|
+
clearContexts: aa
|
|
609
607
|
}
|
|
610
608
|
],
|
|
611
609
|
[
|
|
612
|
-
|
|
610
|
+
Le,
|
|
613
611
|
C
|
|
614
612
|
],
|
|
615
613
|
[
|
|
@@ -622,7 +620,7 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
622
620
|
}
|
|
623
621
|
],
|
|
624
622
|
[
|
|
625
|
-
|
|
623
|
+
Ie,
|
|
626
624
|
T
|
|
627
625
|
]
|
|
628
626
|
]
|
|
@@ -638,27 +636,27 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
638
636
|
"data-disabled": a.isDisabled || void 0,
|
|
639
637
|
"data-open": t.isOpen || void 0
|
|
640
638
|
}));
|
|
641
|
-
}),
|
|
642
|
-
[a, i] =
|
|
643
|
-
let { validationBehavior:
|
|
644
|
-
var
|
|
645
|
-
let
|
|
639
|
+
}), Ia = /* @__PURE__ */ De(function(a, i) {
|
|
640
|
+
[a, i] = we(a, i, Ra);
|
|
641
|
+
let { validationBehavior: f } = _e(Ke) || {};
|
|
642
|
+
var u, c;
|
|
643
|
+
let s = (c = (u = a.validationBehavior) !== null && u !== void 0 ? u : f) !== null && c !== void 0 ? c : "native", t = xa({
|
|
646
644
|
...a,
|
|
647
|
-
validationBehavior:
|
|
648
|
-
}), l = z(null), [x, B] =
|
|
649
|
-
...
|
|
645
|
+
validationBehavior: s
|
|
646
|
+
}), l = z(null), [x, B] = Ee(!a["aria-label"] && !a["aria-labelledby"]), { groupProps: b, labelProps: k, startFieldProps: F, endFieldProps: R, buttonProps: C, dialogProps: v, calendarProps: O, descriptionProps: d, errorMessageProps: T, ...I } = Va({
|
|
647
|
+
...pe(a),
|
|
650
648
|
label: B,
|
|
651
|
-
validationBehavior:
|
|
649
|
+
validationBehavior: s
|
|
652
650
|
}, t, l), [P, Z] = L(null), M = xe(() => {
|
|
653
651
|
l.current && Z(l.current.offsetWidth + "px");
|
|
654
652
|
}, []);
|
|
655
|
-
|
|
653
|
+
ze({
|
|
656
654
|
ref: l,
|
|
657
655
|
onResize: M
|
|
658
656
|
});
|
|
659
|
-
let { focusProps: D, isFocused: y, isFocusVisible: V } =
|
|
657
|
+
let { focusProps: D, isFocused: y, isFocusVisible: V } = Je({
|
|
660
658
|
within: !0
|
|
661
|
-
}), o =
|
|
659
|
+
}), o = Se({
|
|
662
660
|
...a,
|
|
663
661
|
values: {
|
|
664
662
|
state: t,
|
|
@@ -670,14 +668,14 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
670
668
|
},
|
|
671
669
|
defaultClassName: "react-aria-DateRangePicker"
|
|
672
670
|
}), g = ae(a);
|
|
673
|
-
return delete g.id, /* @__PURE__ */ J.createElement(
|
|
671
|
+
return delete g.id, /* @__PURE__ */ J.createElement(Ue, {
|
|
674
672
|
values: [
|
|
675
673
|
[
|
|
676
|
-
|
|
674
|
+
Oa,
|
|
677
675
|
t
|
|
678
676
|
],
|
|
679
677
|
[
|
|
680
|
-
|
|
678
|
+
ve,
|
|
681
679
|
{
|
|
682
680
|
...b,
|
|
683
681
|
ref: l,
|
|
@@ -692,7 +690,7 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
692
690
|
}
|
|
693
691
|
],
|
|
694
692
|
[
|
|
695
|
-
|
|
693
|
+
be,
|
|
696
694
|
{
|
|
697
695
|
...k,
|
|
698
696
|
ref: x,
|
|
@@ -700,15 +698,15 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
700
698
|
}
|
|
701
699
|
],
|
|
702
700
|
[
|
|
703
|
-
|
|
701
|
+
na,
|
|
704
702
|
O
|
|
705
703
|
],
|
|
706
704
|
[
|
|
707
|
-
|
|
705
|
+
Ne,
|
|
708
706
|
t
|
|
709
707
|
],
|
|
710
708
|
[
|
|
711
|
-
|
|
709
|
+
We,
|
|
712
710
|
{
|
|
713
711
|
trigger: "DateRangePicker",
|
|
714
712
|
triggerRef: l,
|
|
@@ -716,11 +714,11 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
716
714
|
style: {
|
|
717
715
|
"--trigger-width": P
|
|
718
716
|
},
|
|
719
|
-
clearContexts:
|
|
717
|
+
clearContexts: aa
|
|
720
718
|
}
|
|
721
719
|
],
|
|
722
720
|
[
|
|
723
|
-
|
|
721
|
+
Le,
|
|
724
722
|
v
|
|
725
723
|
],
|
|
726
724
|
[
|
|
@@ -742,7 +740,7 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
742
740
|
}
|
|
743
741
|
],
|
|
744
742
|
[
|
|
745
|
-
|
|
743
|
+
Ie,
|
|
746
744
|
I
|
|
747
745
|
]
|
|
748
746
|
]
|
|
@@ -765,7 +763,7 @@ const xa = /* @__PURE__ */ ee(null), Fa = /* @__PURE__ */ ee(null), Ra = /* @__P
|
|
|
765
763
|
* This source code is licensed under the ISC license.
|
|
766
764
|
* See the LICENSE file in the root directory of this source tree.
|
|
767
765
|
*/
|
|
768
|
-
const
|
|
766
|
+
const Za = ha("CalendarDays", [
|
|
769
767
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
770
768
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
771
769
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
@@ -776,35 +774,35 @@ const Ia = $a("CalendarDays", [
|
|
|
776
774
|
["path", { d: "M8 18h.01", key: "lrp35t" }],
|
|
777
775
|
["path", { d: "M12 18h.01", key: "mhygvu" }],
|
|
778
776
|
["path", { d: "M16 18h.01", key: "kzsmim" }]
|
|
779
|
-
]),
|
|
780
|
-
datePicker:
|
|
781
|
-
inputField:
|
|
782
|
-
medium:
|
|
783
|
-
calendarButton:
|
|
784
|
-
dialog:
|
|
785
|
-
},
|
|
777
|
+
]), Ma = "_datePicker_1ro4s_4", Ba = "_inputField_1ro4s_11", ka = "_medium_1ro4s_23", wa = "_calendarButton_1ro4s_50", _a = "_dialog_1ro4s_97", N = {
|
|
778
|
+
datePicker: Ma,
|
|
779
|
+
inputField: Ba,
|
|
780
|
+
medium: ka,
|
|
781
|
+
calendarButton: wa,
|
|
782
|
+
dialog: _a
|
|
783
|
+
}, la = ({
|
|
786
784
|
children: e,
|
|
787
785
|
isDisabled: a,
|
|
788
786
|
isInvalid: i,
|
|
789
|
-
size:
|
|
787
|
+
size: f = "large"
|
|
790
788
|
}) => /* @__PURE__ */ H(
|
|
791
|
-
|
|
789
|
+
$a,
|
|
792
790
|
{
|
|
793
791
|
className: Q(N.inputField, {
|
|
794
|
-
[N.medium]:
|
|
792
|
+
[N.medium]: f === "medium"
|
|
795
793
|
}),
|
|
796
794
|
children: [
|
|
797
795
|
e,
|
|
798
|
-
/* @__PURE__ */
|
|
799
|
-
|
|
796
|
+
/* @__PURE__ */ $(
|
|
797
|
+
ba,
|
|
800
798
|
{
|
|
801
799
|
className: Q(N.calendarButton, {
|
|
802
|
-
[N.medium]:
|
|
800
|
+
[N.medium]: f === "medium"
|
|
803
801
|
}),
|
|
804
802
|
"data-invalid": i || void 0,
|
|
805
803
|
isDisabled: a,
|
|
806
|
-
children: /* @__PURE__ */
|
|
807
|
-
|
|
804
|
+
children: /* @__PURE__ */ $(
|
|
805
|
+
Za,
|
|
808
806
|
{
|
|
809
807
|
"aria-hidden": !0,
|
|
810
808
|
size: 20
|
|
@@ -814,68 +812,70 @@ const Ia = $a("CalendarDays", [
|
|
|
814
812
|
)
|
|
815
813
|
]
|
|
816
814
|
}
|
|
817
|
-
),
|
|
818
|
-
|
|
815
|
+
), ia = ce.forwardRef(({ children: e }, a) => /* @__PURE__ */ $(
|
|
816
|
+
va,
|
|
819
817
|
{
|
|
820
818
|
UNSTABLE_portalContainer: typeof a != "function" && (a == null ? void 0 : a.current) || void 0,
|
|
821
|
-
children: /* @__PURE__ */
|
|
819
|
+
children: /* @__PURE__ */ $(ma, { className: N.dialog, children: e })
|
|
822
820
|
}
|
|
823
|
-
)),
|
|
821
|
+
)), ol = ({
|
|
824
822
|
className: e,
|
|
825
823
|
description: a,
|
|
826
824
|
errorMessage: i,
|
|
827
|
-
errorPosition:
|
|
828
|
-
label:
|
|
825
|
+
errorPosition: f = "top",
|
|
826
|
+
label: u,
|
|
827
|
+
popover: c,
|
|
829
828
|
...s
|
|
830
829
|
}) => {
|
|
831
|
-
const
|
|
830
|
+
const t = ce.useRef(null);
|
|
832
831
|
return /* @__PURE__ */ H(
|
|
833
|
-
|
|
832
|
+
Ta,
|
|
834
833
|
{
|
|
835
834
|
className: Q(N.datePicker, e),
|
|
836
|
-
ref:
|
|
835
|
+
ref: t,
|
|
837
836
|
...s,
|
|
838
837
|
children: [
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
a && /* @__PURE__ */
|
|
841
|
-
|
|
842
|
-
/* @__PURE__ */
|
|
843
|
-
|
|
844
|
-
/* @__PURE__ */
|
|
838
|
+
/* @__PURE__ */ $(Ze, { popover: c, children: u && /* @__PURE__ */ $(Me, { children: u }) }),
|
|
839
|
+
a && /* @__PURE__ */ $(Be, { slot: "description", children: a }),
|
|
840
|
+
f === "top" && /* @__PURE__ */ $(Y, { children: i }),
|
|
841
|
+
/* @__PURE__ */ $(la, { ...s, children: /* @__PURE__ */ $(ne, { children: (l) => /* @__PURE__ */ $(re, { segment: l }) }) }),
|
|
842
|
+
f === "bottom" && /* @__PURE__ */ $(Y, { children: i }),
|
|
843
|
+
/* @__PURE__ */ $(ia, { ref: t, children: /* @__PURE__ */ $(ra, {}) })
|
|
845
844
|
]
|
|
846
845
|
}
|
|
847
846
|
);
|
|
848
|
-
},
|
|
847
|
+
}, sl = ({
|
|
849
848
|
className: e,
|
|
850
849
|
description: a,
|
|
851
850
|
errorMessage: i,
|
|
852
|
-
errorPosition:
|
|
853
|
-
label:
|
|
851
|
+
errorPosition: f = "top",
|
|
852
|
+
label: u,
|
|
853
|
+
popover: c,
|
|
854
854
|
...s
|
|
855
855
|
}) => {
|
|
856
|
-
const
|
|
856
|
+
const t = ce.useRef(null);
|
|
857
857
|
return /* @__PURE__ */ H(
|
|
858
|
-
|
|
858
|
+
Ia,
|
|
859
859
|
{
|
|
860
860
|
className: Q(N.datePicker, e),
|
|
861
|
-
ref:
|
|
861
|
+
ref: t,
|
|
862
862
|
...s,
|
|
863
863
|
children: [
|
|
864
|
-
/* @__PURE__ */
|
|
865
|
-
a && /* @__PURE__ */
|
|
866
|
-
|
|
867
|
-
/* @__PURE__ */ H(
|
|
868
|
-
/* @__PURE__ */
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
-
/* @__PURE__ */
|
|
864
|
+
/* @__PURE__ */ $(Ze, { popover: c, children: u && /* @__PURE__ */ $(Me, { children: u }) }),
|
|
865
|
+
a && /* @__PURE__ */ $(Be, { slot: "description", children: a }),
|
|
866
|
+
f === "top" && /* @__PURE__ */ $(Y, { children: i }),
|
|
867
|
+
/* @__PURE__ */ H(la, { ...s, children: [
|
|
868
|
+
/* @__PURE__ */ $(ne, { slot: "start", children: (l) => /* @__PURE__ */ $(re, { segment: l }) }),
|
|
869
|
+
/* @__PURE__ */ $(fa, {}),
|
|
870
|
+
/* @__PURE__ */ $(ne, { slot: "end", children: (l) => /* @__PURE__ */ $(re, { segment: l }) })
|
|
871
871
|
] }),
|
|
872
|
-
|
|
873
|
-
/* @__PURE__ */
|
|
872
|
+
f === "bottom" && /* @__PURE__ */ $(Y, { children: i }),
|
|
873
|
+
/* @__PURE__ */ $(ia, { ref: t, children: /* @__PURE__ */ $(oa, {}) })
|
|
874
874
|
]
|
|
875
875
|
}
|
|
876
876
|
);
|
|
877
877
|
};
|
|
878
878
|
export {
|
|
879
|
-
|
|
880
|
-
|
|
879
|
+
ol as D,
|
|
880
|
+
sl as a
|
|
881
881
|
};
|