@midas-ds/components 14.0.0 → 15.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-DTbu3lqx.js +343 -0
- package/AccordionItem-tWS22wDv.cjs +1 -0
- package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
- package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
- package/Button-1sEX8jKn.cjs +1 -0
- package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
- package/{Button-B6lxIKPk.js → Button-BbfVT9Yl.js} +122 -116
- package/{Button-CRIYvCRM.js → Button-DdXFHfXw.js} +1 -1
- package/CHANGELOG.md +49 -0
- package/{Card-CfosvMF5.js → Card-CdqGFff2.js} +3 -3
- package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
- package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
- package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
- package/Checkbox-BgrLxY6P.cjs +1 -0
- package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
- package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-CtJJqk_q.js} +7 -7
- package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-thvsvOqD.cjs} +1 -1
- package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
- package/Collection-vGO6v3_U.cjs +1 -0
- package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-Ckna0otR.cjs} +1 -1
- package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-aF2UxI20.js} +2 -2
- package/{ComboBox-D7eKe-M5.js → ComboBox-BDX4BYWJ.js} +244 -229
- package/ComboBox-DFPrJUoV.cjs +1 -0
- package/{DateField-BszKZodr.cjs → DateField-B92Cqf9K.cjs} +1 -1
- package/{DateField-xyhyDy7u.js → DateField-BPRWrVcu.js} +4 -4
- package/DateInputDivider-CCrXjsUB.cjs +1 -0
- package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-DOHpVaNE.js} +191 -188
- package/DateRangePicker-COSTCOt8.cjs +6 -0
- package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-Cmt9NC35.js} +119 -115
- package/Dialog-CPuJA2fm.js +256 -0
- package/{Dialog-DOyFzvUa.js → Dialog-D4Py85wi.js} +712 -694
- package/Dialog-DtOf0vWx.cjs +1 -0
- package/Dialog-DycTLpdr.cjs +6 -0
- package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
- package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
- package/{Dropdown-uC9wc8vd.js → Dropdown-B4lwe0Hn.js} +2 -2
- package/{Dropdown-5rmvcHD_.cjs → Dropdown-_g9l5k07.cjs} +1 -1
- package/{FieldError-C4kD4yJZ.js → FieldError-CIxlNQCM.js} +13 -13
- package/{FieldError-C4WBoCRc.cjs → FieldError-JWxR_EqN.cjs} +1 -1
- package/{FileUpload-CTbh7Gic.cjs → FileUpload-C0TjNkuh.cjs} +2 -2
- package/{FileUpload-01wGpykv.js → FileUpload-DLBP3VPp.js} +260 -534
- package/Group-B0Wj9pI8.cjs +1 -0
- package/Group-BAd7alBM.js +46 -0
- package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
- package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
- package/{InfoBanner-CRSz8DK2.js → InfoBanner-D7Ta-7PI.js} +1 -1
- package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
- package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
- package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
- package/{Label-CkIRTC0_.cjs → Label-DpY2SZdQ.cjs} +1 -1
- package/{Label-CV9p0K2n.js → Label-FfEnd4ai.js} +4 -4
- package/Layout-BrEuHajQ.cjs +16 -0
- package/{Layout-IeVrHpT0.js → Layout-Hd1e_MEA.js} +62 -63
- package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
- package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
- package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
- package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
- package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
- package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
- package/{ListBox-2eEa1l0M.js → ListBox-5GK4ZRj1.js} +189 -178
- package/ListBox-FD30iELk.cjs +1 -0
- package/{ListBoxSection-dksiACMZ.js → ListBox-LJ3VgZMr.js} +230 -266
- package/ListBox-u6ZXp5Yi.cjs +1 -0
- package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-B4GFbdYf.js} +3 -3
- package/ListBoxLoadMoreItem-DMUOzVtt.cjs +1 -0
- package/ListBoxSection-CBlpg0AG.cjs +1 -0
- package/ListBoxSection-DjGs1ndn.js +51 -0
- package/ListKeyboardDelegate-8zuIfwQ7.cjs +1 -0
- package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BBmpJ-2O.js} +36 -40
- package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
- package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
- package/Popover-CS8Yyfrq.js +39 -0
- package/Popover-DpB0XDBp.cjs +1 -0
- package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
- package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
- package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BZqAQTV3.cjs} +1 -1
- package/{ProgressBar-B0WEQkyq.js → ProgressBar-BpsvPCKk.js} +12 -12
- package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
- package/RSPContexts-XUvspq3j.cjs +1 -0
- package/Radio-B3FBTn4F.cjs +1 -0
- package/Radio-LevFYAg4.js +340 -0
- package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-CH0CyBui.cjs} +2 -2
- package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-DT_KVd80.js} +58 -58
- package/{SearchField-DnBBlPT7.cjs → SearchField-BX7P7BgV.cjs} +1 -1
- package/{SearchField-wojUSY2S.js → SearchField-C-TFzcJF.js} +3 -3
- package/Select-C-ykeY_T.js +773 -0
- package/Select-CiCng7ZP.js +678 -0
- package/Select-D4wi-0Jw.cjs +1 -0
- package/Select-JIDW2mN8.cjs +1 -0
- package/{FocusScope-8ILtcq9W.js → SelectionIndicator-C2E23-zO.js} +270 -174
- package/SelectionIndicator-ClG0GpJu.cjs +1 -0
- package/SelectionManager-CNJmHeCF.cjs +1 -0
- package/SelectionManager-DoNLJm8c.js +1063 -0
- package/{Separator-COlhRmJF.js → Separator-CQfDz_zr.js} +10 -10
- package/{Separator-DcbM84B8.cjs → Separator-CSyYDGNE.cjs} +1 -1
- package/{Separator-BQkxEZC9.cjs → Separator-DCi4bnBr.cjs} +1 -1
- package/{Separator--4b7vckr.js → Separator-DLr4kUJD.js} +2 -2
- package/Spinner-D6Fcu_Dp.js +54 -0
- package/Spinner-DIapnvIz.cjs +6 -0
- package/TabList-BBmBumm6.js +394 -0
- package/TabList-DVzXuGXA.cjs +1 -0
- package/Table-B1nxmW14.cjs +16 -0
- package/{Table-cCSOrPkK.js → Table-DxqKDp7N.js} +707 -703
- package/Tag-BL-_PONN.cjs +1 -0
- package/Tag-DX1X_NZE.js +774 -0
- package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
- package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
- package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
- package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
- package/{TextArea-B5TsyJxa.cjs → TextArea-Bjf8CBp0.cjs} +1 -1
- package/{TextArea-Cado2arG.js → TextArea-CJPBvogq.js} +8 -8
- package/TextField-DtD9-arA.cjs +1 -0
- package/{TextField-5AI6T1ol.js → TextField-DyR61bjZ.js} +10 -10
- package/{Toast-CgXRE33Y.js → Toast-B99bLWnh.js} +12 -12
- package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
- package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-CFRutAZ4.js} +82 -78
- package/ToggleButtonGroup-dnvnzkaD.cjs +1 -0
- package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
- package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
- package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
- package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/ListBox.css +1 -0
- package/assets/Popover.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Select2.css +1 -0
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/default.css +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/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- 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/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/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +99 -95
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/intlStrings-Cd44R5hT.js +278 -0
- package/intlStrings-ClBuC6xN.cjs +1 -0
- 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/legacy-select/Select.d.ts +8 -0
- package/legacy-select/SelectTrigger.d.ts +10 -0
- package/legacy-select/index.cjs +1 -0
- package/legacy-select/index.d.ts +2 -0
- package/legacy-select/index.js +4 -0
- package/legacy-select/intl/translations.json.d.ts +17 -0
- package/{select → legacy-select}/types.d.ts +2 -2
- package/legacy-select/useMultiSelect.d.ts +5 -0
- 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/ListBox.d.ts +1 -2
- package/list-box/ListBoxHeader.d.ts +3 -0
- package/list-box/ListBoxItem.d.ts +9 -3
- package/list-box/ListBoxSection.d.ts +1 -1
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +9 -7
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +4 -4
- package/popover/Popover.d.ts +2 -1
- 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/scrollIntoView-BVI21Y4-.js +65 -0
- package/scrollIntoView-BueMOyGp.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +33 -4
- package/select/SelectAll.d.ts +1 -0
- package/select/SelectTags.d.ts +4 -0
- package/select/SelectTrigger.d.ts +4 -8
- package/select/SelectValueTag.d.ts +5 -0
- package/select/index.cjs +1 -1
- package/select/index.d.ts +1 -2
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +2 -2
- package/spinner/Spinner.d.ts +5 -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/Tabs.d.ts +2 -9
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +0 -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/TextArea.d.ts +3 -2
- package/textfield/TextField.d.ts +3 -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-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
- package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
- package/useDateFormatter-BrrFo4nY.cjs +1 -0
- package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
- package/{useField-sSWPm-He.js → useField-Bx76iuoW.js} +1 -1
- package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
- package/{useFilter-DHcouDzv.js → useFilter-Dn4vTT3G.js} +1 -1
- package/{useFilter-DlZLqsJD.cjs → useFilter-eOgdlVLd.cjs} +1 -1
- package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
- package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
- package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
- package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
- package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
- package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
- package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
- package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
- package/useHasTabbableChild-BJ_VejL5.cjs +1 -0
- package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-DpISgPsS.js} +1 -1
- package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
- package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-Zvo5KTxM.js} +2 -2
- package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
- package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
- package/{useListState-D2yPZrFZ.js → useListState-CP7AKhOX.js} +1 -1
- package/{useListState-BdC308Sq.cjs → useListState-DZFWpD-x.cjs} +1 -1
- package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
- package/usePress-DmU79HEg.cjs +7 -0
- package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-GSY0f4qW.js} +1 -1
- package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-JCvbhUVI.cjs} +1 -1
- package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
- package/{useTextField-DjxrmW7d.js → useTextField-I3QVGvyX.js} +4 -4
- package/utils/types.d.ts +5 -0
- package/utils-CtICjCYt.cjs +1 -0
- package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
- package/utils-DRIRjPUS.cjs +1 -0
- package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
- package/AccordionItem-BJw5IKe0.js +0 -334
- package/AccordionItem-DhMimhYo.cjs +0 -1
- package/Button-BTX5G3le.cjs +0 -1
- package/Checkbox-D-CFY6QF.cjs +0 -1
- package/Collection-DaZzboRu.cjs +0 -1
- package/ComboBox-C4NybZ32.cjs +0 -1
- package/DateInputDivider-BgXKFwB0.cjs +0 -1
- package/DateRangePicker-DTPkr3hX.cjs +0 -6
- package/Dialog-DLnopN3Z.js +0 -237
- package/Dialog-DNu42oLH.cjs +0 -1
- package/Dialog-w6EBWT__.cjs +0 -1
- package/FocusScope-Dv0F-mG2.cjs +0 -1
- package/Group-C2hEIsGV.js +0 -45
- package/Group-cuyk9Hsy.cjs +0 -1
- package/Layout-CVnlO10z.cjs +0 -16
- package/ListBox-Bx9M5vqb.cjs +0 -1
- package/ListBoxLoadMoreItem-BBE3OF4J.cjs +0 -1
- package/ListBoxSection-kujY2gUl.cjs +0 -1
- package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
- package/Popover-BI2Koco0.cjs +0 -1
- package/Popover-D7_IfJ3o.js +0 -38
- package/RSPContexts-D8hmBfGm.cjs +0 -1
- package/Radio-D6KNkSA2.js +0 -333
- package/Radio-DsVsutMH.cjs +0 -1
- package/Select-D9h_RQ2k.cjs +0 -1
- package/Select-Dc6y8gPR.js +0 -654
- package/SelectionManager-D-4ThfPZ.js +0 -1043
- package/SelectionManager-FYrDfe5v.cjs +0 -1
- package/Spinner-CTha503N.js +0 -47
- package/Spinner-DKQ9_SQB.cjs +0 -6
- package/TabList-BhC96APe.cjs +0 -1
- package/TabList-P5HnizZt.js +0 -393
- package/Table-BB8Ag5_3.cjs +0 -16
- package/Tag-D2vh0KRD.js +0 -765
- package/Tag-D32MGLjS.cjs +0 -1
- package/TextField-4xfAzdBI.cjs +0 -1
- package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
- package/assets/ListBoxSection.css +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/select/useMultiSelect.d.ts +0 -4
- package/useDateFormatter-D0bVjgIb.cjs +0 -1
- package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
- package/useObserveElement-BdI4zgd7.js +0 -27
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-Dj3t18Pf.cjs +0 -7
- package/utils-I-LGXGYH.cjs +0 -1
- package/utils-cBvgilDa.cjs +0 -1
- package/variables-B3KEYyhW.cjs +0 -1
- package/variables-DzXcMW2k.js +0 -5
- /package/{select → legacy-select}/HiddenMultiSelect.d.ts +0 -0
- /package/{select → legacy-select}/MultiSelectValueTag.d.ts +0 -0
- /package/{select → legacy-select}/SelectFieldError.d.ts +0 -0
- /package/{select → legacy-select}/SelectListBox.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectListState.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectState.d.ts +0 -0
- /package/{select → legacy-select}/utils.d.ts +0 -0
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { jsxs as Y, jsx as v } from "react/jsx-runtime";
|
|
2
2
|
import { c as ee } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import { $ as na, a as ra, C as oa, R as sa } from "./RangeCalendar-
|
|
4
|
-
import { c as
|
|
5
|
-
import { $ as Ie, F as ae } from "./FieldError-
|
|
6
|
-
import { a as Be, L as Ze } from "./Label-
|
|
7
|
-
import { T as ke } from "./Text-
|
|
8
|
-
import { e as ve,
|
|
9
|
-
import { $ as Me, c as _e, d as we, e as Ee, a as Se, f as We } from "./utils-
|
|
10
|
-
import { i as Ne, n as Ue, o as Le, b as $a, l as ha } from "./Dialog-
|
|
3
|
+
import { $ as na, a as ra, C as oa, R as sa } from "./RangeCalendar-DT_KVd80.js";
|
|
4
|
+
import { c as Oe, d as Re, e as Fe, f as ua, g as Ce, h as ca, i as X, j as p, k as fa, l as Te, m as ba, a as se, D as ue, b as va } from "./DateInputDivider-DOHpVaNE.js";
|
|
5
|
+
import { $ as Ie, F as ae } from "./FieldError-CIxlNQCM.js";
|
|
6
|
+
import { a as Be, L as Ze } from "./Label-FfEnd4ai.js";
|
|
7
|
+
import { T as ke } from "./Text-BBFWBNAH.js";
|
|
8
|
+
import { e as ve, c as me, $ as ma } from "./Button-BbfVT9Yl.js";
|
|
9
|
+
import { $ as Me, c as _e, d as we, e as Ee, a as Se, f as We } from "./utils-D2iKpxcZ.js";
|
|
10
|
+
import { i as Ne, n as Ue, o as Le, b as $a, l as ha } from "./Dialog-D4Py85wi.js";
|
|
11
11
|
import { $ as Ke } from "./Form-CXcEMuBf.js";
|
|
12
|
-
import { $ as $e, a as ga } from "./Group-
|
|
13
|
-
import { $ as he } from "./Text-
|
|
12
|
+
import { $ as $e, a as ga } from "./Group-BAd7alBM.js";
|
|
13
|
+
import { $ as he } from "./Text-bqP9NeVg.js";
|
|
14
14
|
import { c as H, a as le } from "./mergeProps-Ct8m5-xW.js";
|
|
15
15
|
import { $ as ie } from "./filterDOMProps-wsa9OcNI.js";
|
|
16
|
-
import { a as
|
|
17
|
-
import J, { useMemo as
|
|
18
|
-
import { $ as Q, a as ce, b as fe } from "./useDateFormatter-
|
|
19
|
-
import { d as be, e as De, c as xe, $ as
|
|
16
|
+
import { a as je, g as ze } from "./OverlayArrow-CjGslX2c.js";
|
|
17
|
+
import J, { useMemo as z, useRef as A, useState as W, forwardRef as qe, createContext as te, useCallback as Ge } from "react";
|
|
18
|
+
import { $ as Q, a as ce, b as fe } from "./useDateFormatter-Bs5A6Xtu.js";
|
|
19
|
+
import { d as be, e as De, c as xe, $ as pe } from "./useFormValidation-By7G-T7y.js";
|
|
20
20
|
import { $ as Ae } from "./useControlledState-u436Wbp1.js";
|
|
21
|
-
import {
|
|
21
|
+
import { d as Xe } from "./SelectionIndicator-C2E23-zO.js";
|
|
22
22
|
import { $ as He } from "./useDescription-BFwQx7Rp.js";
|
|
23
|
-
import { $ as Je } from "./useFocusWithin-
|
|
24
|
-
import { $ as Qe } from "./useField-
|
|
23
|
+
import { $ as Je } from "./useFocusWithin-DhXBuB2O.js";
|
|
24
|
+
import { $ as Qe } from "./useField-Bx76iuoW.js";
|
|
25
25
|
import { $ as Ye } from "./context-Dl_saGB6.js";
|
|
26
26
|
import { $ as ea } from "./useLocalizedStringFormatter-CSEh15AZ.js";
|
|
27
|
-
import { $ as aa } from "./useFocusRing-
|
|
27
|
+
import { $ as aa } from "./useFocusRing-CcxI7nbg.js";
|
|
28
28
|
import { c as ya } from "./createLucideIcon-XRdN60yz.js";
|
|
29
29
|
import './assets/DateRangePicker.css';function Va(e) {
|
|
30
30
|
return e && e.__esModule ? e.default : e;
|
|
31
31
|
}
|
|
32
32
|
function Pa(e, a, t) {
|
|
33
|
-
let s = H(), u = H(), m = H(), o = ea(Va(
|
|
33
|
+
let s = H(), u = H(), m = H(), o = ea(Va(Fe), "@react-aria/datepicker"), { isInvalid: i, validationErrors: c, validationDetails: l } = a.displayValidation, { labelProps: O, fieldProps: R, descriptionProps: g, errorMessageProps: I } = Qe({
|
|
34
34
|
...e,
|
|
35
35
|
labelElementType: "span",
|
|
36
36
|
isInvalid: i,
|
|
37
37
|
errorMessage: e.errorMessage || c
|
|
38
|
-
}),
|
|
38
|
+
}), F = Oe(a, t), B = R["aria-labelledby"] || R.id, { locale: C } = Ye(), b = a.formatValue(C, {
|
|
39
39
|
month: "long"
|
|
40
40
|
}), Z = b ? o.format("selectedDateDescription", {
|
|
41
41
|
date: b
|
|
42
42
|
}) : "", d = He(Z), T = [
|
|
43
43
|
d["aria-describedby"],
|
|
44
|
-
|
|
45
|
-
].filter(Boolean).join(" ") || void 0, w = ie(e), k =
|
|
44
|
+
R["aria-describedby"]
|
|
45
|
+
].filter(Boolean).join(" ") || void 0, w = ie(e), k = z(() => Xe(t), [
|
|
46
46
|
t
|
|
47
47
|
]), P = A(!1), { focusWithinProps: _ } = Je({
|
|
48
48
|
...e,
|
|
@@ -62,7 +62,7 @@ function Pa(e, a, t) {
|
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
return {
|
|
65
|
-
groupProps: le(w,
|
|
65
|
+
groupProps: le(w, F, R, d, _, {
|
|
66
66
|
role: "group",
|
|
67
67
|
"aria-disabled": e.isDisabled || null,
|
|
68
68
|
"aria-labelledby": B,
|
|
@@ -75,15 +75,15 @@ function Pa(e, a, t) {
|
|
|
75
75
|
}
|
|
76
76
|
}),
|
|
77
77
|
labelProps: {
|
|
78
|
-
...
|
|
78
|
+
...O,
|
|
79
79
|
onClick: () => {
|
|
80
80
|
k.focusFirst();
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
fieldProps: {
|
|
84
|
-
...
|
|
84
|
+
...R,
|
|
85
85
|
id: m,
|
|
86
|
-
[
|
|
86
|
+
[Re]: "presentation",
|
|
87
87
|
"aria-describedby": T,
|
|
88
88
|
value: a.value,
|
|
89
89
|
defaultValue: a.defaultValue,
|
|
@@ -145,26 +145,26 @@ function Da(e) {
|
|
|
145
145
|
}
|
|
146
146
|
function xa(e, a, t) {
|
|
147
147
|
var s, u, m, o, i;
|
|
148
|
-
let c = ea(Da(
|
|
148
|
+
let c = ea(Da(Fe), "@react-aria/datepicker"), { isInvalid: l, validationErrors: O, validationDetails: R } = a.displayValidation, { labelProps: g, fieldProps: I, descriptionProps: F, errorMessageProps: B } = Qe({
|
|
149
149
|
...e,
|
|
150
150
|
labelElementType: "span",
|
|
151
151
|
isInvalid: l,
|
|
152
|
-
errorMessage: e.errorMessage ||
|
|
153
|
-
}),
|
|
152
|
+
errorMessage: e.errorMessage || O
|
|
153
|
+
}), C = I["aria-labelledby"] || I.id, { locale: b } = Ye(), Z = a.formatValue(b, {
|
|
154
154
|
month: "long"
|
|
155
155
|
}), d = Z ? c.format("selectedRangeDescription", {
|
|
156
156
|
startDate: Z.start,
|
|
157
157
|
endDate: Z.end
|
|
158
158
|
}) : "", T = He(d), w = {
|
|
159
159
|
"aria-label": c.format("startDate"),
|
|
160
|
-
"aria-labelledby":
|
|
160
|
+
"aria-labelledby": C
|
|
161
161
|
}, k = {
|
|
162
162
|
"aria-label": c.format("endDate"),
|
|
163
|
-
"aria-labelledby":
|
|
164
|
-
}, P = H(), _ = H(), $ =
|
|
163
|
+
"aria-labelledby": C
|
|
164
|
+
}, P = H(), _ = H(), $ = Oe(a, t), y = [
|
|
165
165
|
T["aria-describedby"],
|
|
166
166
|
I["aria-describedby"]
|
|
167
|
-
].filter(Boolean).join(" ") || void 0, D =
|
|
167
|
+
].filter(Boolean).join(" ") || void 0, D = z(() => Xe(t, {
|
|
168
168
|
// Exclude the button from the focus manager.
|
|
169
169
|
accept: (n) => n.id !== P
|
|
170
170
|
}), [
|
|
@@ -172,7 +172,7 @@ function xa(e, a, t) {
|
|
|
172
172
|
P
|
|
173
173
|
]), M = {
|
|
174
174
|
[ua]: D,
|
|
175
|
-
[
|
|
175
|
+
[Re]: "presentation",
|
|
176
176
|
"aria-describedby": y,
|
|
177
177
|
placeholderValue: e.placeholderValue,
|
|
178
178
|
hideTimeZone: e.hideTimeZone,
|
|
@@ -189,8 +189,8 @@ function xa(e, a, t) {
|
|
|
189
189
|
onBlurWithin: (n) => {
|
|
190
190
|
let h = document.getElementById(_);
|
|
191
191
|
if (!(h != null && h.contains(n.relatedTarget))) {
|
|
192
|
-
var E,
|
|
193
|
-
x.current = !1, (E = e.onBlur) === null || E === void 0 || E.call(e, n), (
|
|
192
|
+
var E, G;
|
|
193
|
+
x.current = !1, (E = e.onBlur) === null || E === void 0 || E.call(e, n), (G = e.onFocusChange) === null || G === void 0 || G.call(e, !1);
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
196
|
onFocusWithin: (n) => {
|
|
@@ -199,7 +199,7 @@ function xa(e, a, t) {
|
|
|
199
199
|
x.current = !0, (h = e.onFocus) === null || h === void 0 || h.call(e, n), (E = e.onFocusChange) === null || E === void 0 || E.call(e, !0);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
}), U = A(De),
|
|
202
|
+
}), U = A(De), q = A(De);
|
|
203
203
|
var r, f;
|
|
204
204
|
return {
|
|
205
205
|
groupProps: le(V, $, I, T, N, {
|
|
@@ -224,7 +224,7 @@ function xa(e, a, t) {
|
|
|
224
224
|
id: P,
|
|
225
225
|
"aria-haspopup": "dialog",
|
|
226
226
|
"aria-label": c.format("calendar"),
|
|
227
|
-
"aria-labelledby": `${P} ${
|
|
227
|
+
"aria-labelledby": `${P} ${C}`,
|
|
228
228
|
"aria-describedby": y,
|
|
229
229
|
"aria-expanded": a.isOpen,
|
|
230
230
|
isDisabled: e.isDisabled || e.isReadOnly,
|
|
@@ -232,7 +232,7 @@ function xa(e, a, t) {
|
|
|
232
232
|
},
|
|
233
233
|
dialogProps: {
|
|
234
234
|
id: _,
|
|
235
|
-
"aria-labelledby": `${P} ${
|
|
235
|
+
"aria-labelledby": `${P} ${C}`
|
|
236
236
|
},
|
|
237
237
|
startFieldProps: {
|
|
238
238
|
...w,
|
|
@@ -247,7 +247,7 @@ function xa(e, a, t) {
|
|
|
247
247
|
realtimeValidation: a.realtimeValidation,
|
|
248
248
|
displayValidation: a.displayValidation,
|
|
249
249
|
updateValidation(n) {
|
|
250
|
-
U.current = n, a.updateValidation(xe(n,
|
|
250
|
+
U.current = n, a.updateValidation(xe(n, q.current));
|
|
251
251
|
},
|
|
252
252
|
resetValidation: a.resetValidation,
|
|
253
253
|
commitValidation: a.commitValidation
|
|
@@ -265,13 +265,13 @@ function xa(e, a, t) {
|
|
|
265
265
|
realtimeValidation: a.realtimeValidation,
|
|
266
266
|
displayValidation: a.displayValidation,
|
|
267
267
|
updateValidation(n) {
|
|
268
|
-
|
|
268
|
+
q.current = n, a.updateValidation(xe(U.current, n));
|
|
269
269
|
},
|
|
270
270
|
resetValidation: a.resetValidation,
|
|
271
271
|
commitValidation: a.commitValidation
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
|
-
descriptionProps:
|
|
274
|
+
descriptionProps: F,
|
|
275
275
|
errorMessageProps: B,
|
|
276
276
|
calendarProps: {
|
|
277
277
|
autoFocus: !0,
|
|
@@ -290,44 +290,44 @@ function xa(e, a, t) {
|
|
|
290
290
|
pageBehavior: e.pageBehavior
|
|
291
291
|
},
|
|
292
292
|
isInvalid: l,
|
|
293
|
-
validationErrors:
|
|
294
|
-
validationDetails:
|
|
293
|
+
validationErrors: O,
|
|
294
|
+
validationDetails: R
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
let a =
|
|
299
|
-
var
|
|
300
|
-
let
|
|
301
|
-
if (t && (g = t, "hour" in t && (
|
|
302
|
-
let
|
|
297
|
+
function Oa(e) {
|
|
298
|
+
let a = je(e), [t, s] = Ae(e.value, e.defaultValue || null, e.onChange), [u] = W(t), m = t || e.placeholderValue || null, [o, i] = Ce(m, e.granularity), c = t != null ? t.toDate(i ?? "UTC") : null, l = o === "hour" || o === "minute" || o === "second";
|
|
299
|
+
var O;
|
|
300
|
+
let R = (O = e.shouldCloseOnSelect) !== null && O !== void 0 ? O : !0, [g, I] = W(null), [F, B] = W(null);
|
|
301
|
+
if (t && (g = t, "hour" in t && (F = t)), m && !(o in m)) throw new Error("Invalid granularity " + o + " for value " + m.toString());
|
|
302
|
+
let C = (t == null ? void 0 : t.calendar.identifier) === "gregory" && t.era === "BC", b = z(() => ({
|
|
303
303
|
granularity: o,
|
|
304
304
|
timeZone: i,
|
|
305
305
|
hideTimeZone: e.hideTimeZone,
|
|
306
306
|
hourCycle: e.hourCycle,
|
|
307
307
|
shouldForceLeadingZeros: e.shouldForceLeadingZeros,
|
|
308
|
-
showEra:
|
|
308
|
+
showEra: C
|
|
309
309
|
}), [
|
|
310
310
|
o,
|
|
311
311
|
e.hourCycle,
|
|
312
312
|
e.shouldForceLeadingZeros,
|
|
313
313
|
i,
|
|
314
314
|
e.hideTimeZone,
|
|
315
|
-
|
|
316
|
-
]), { minValue: Z, maxValue: d, isDateUnavailable: T } = e, w =
|
|
315
|
+
C
|
|
316
|
+
]), { minValue: Z, maxValue: d, isDateUnavailable: T } = e, w = z(() => ca(t, Z, d, T, b), [
|
|
317
317
|
t,
|
|
318
318
|
Z,
|
|
319
319
|
d,
|
|
320
320
|
T,
|
|
321
321
|
b
|
|
322
|
-
]), k =
|
|
322
|
+
]), k = pe({
|
|
323
323
|
...e,
|
|
324
324
|
value: t,
|
|
325
325
|
builtinValidation: w
|
|
326
326
|
}), P = k.displayValidation.isInvalid, _ = e.validationState || (P ? "invalid" : null), $ = (V, x) => {
|
|
327
327
|
s("timeZone" in x ? x.set(fe(V)) : ce(V, x)), I(null), B(null), k.commitValidation();
|
|
328
328
|
}, y = (V) => {
|
|
329
|
-
let x = typeof
|
|
330
|
-
l ?
|
|
329
|
+
let x = typeof R == "function" ? R() : R;
|
|
330
|
+
l ? F || x ? $(V, F || p(e.defaultValue || e.placeholderValue)) : I(V) : (s(V), k.commitValidation()), x && a.setOpen(!1);
|
|
331
331
|
}, D = (V) => {
|
|
332
332
|
g && V ? $(g, V) : B(V);
|
|
333
333
|
};
|
|
@@ -338,14 +338,14 @@ function Fa(e) {
|
|
|
338
338
|
defaultValue: (M = e.defaultValue) !== null && M !== void 0 ? M : u,
|
|
339
339
|
setValue: s,
|
|
340
340
|
dateValue: g,
|
|
341
|
-
timeValue:
|
|
341
|
+
timeValue: F,
|
|
342
342
|
setDateValue: y,
|
|
343
343
|
setTimeValue: D,
|
|
344
344
|
granularity: o,
|
|
345
345
|
hasTime: l,
|
|
346
346
|
...a,
|
|
347
347
|
setOpen(V) {
|
|
348
|
-
!V && !t && g && l && $(g,
|
|
348
|
+
!V && !t && g && l && $(g, F || p(e.defaultValue || e.placeholderValue)), a.setOpen(V);
|
|
349
349
|
},
|
|
350
350
|
validationState: _,
|
|
351
351
|
isInvalid: P,
|
|
@@ -363,9 +363,9 @@ function Fa(e) {
|
|
|
363
363
|
}
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Ra(e) {
|
|
367
367
|
var a, t;
|
|
368
|
-
let s =
|
|
368
|
+
let s = je(e), [u, m] = Ae(e.value, e.defaultValue || null, e.onChange), [o] = W(u), [i, c] = W(() => u || {
|
|
369
369
|
start: null,
|
|
370
370
|
end: null
|
|
371
371
|
});
|
|
@@ -373,29 +373,29 @@ function Ca(e) {
|
|
|
373
373
|
start: null,
|
|
374
374
|
end: null
|
|
375
375
|
}, c(i));
|
|
376
|
-
let l = u || i,
|
|
376
|
+
let l = u || i, O = (r) => {
|
|
377
377
|
l = r || {
|
|
378
378
|
start: null,
|
|
379
379
|
end: null
|
|
380
380
|
}, c(l), K(l) ? m(l) : m(null);
|
|
381
|
-
},
|
|
381
|
+
}, R = (l == null ? void 0 : l.start) || (l == null ? void 0 : l.end) || e.placeholderValue || null, [g, I] = Ce(R, e.granularity), F = g === "hour" || g === "minute" || g === "second";
|
|
382
382
|
var B;
|
|
383
|
-
let
|
|
383
|
+
let C = (B = e.shouldCloseOnSelect) !== null && B !== void 0 ? B : !0, [b, Z] = W(null), [d, T] = W(null);
|
|
384
384
|
l && K(l) && (b = l, "hour" in l.start && (d = l));
|
|
385
385
|
let w = (r, f) => {
|
|
386
|
-
|
|
386
|
+
O({
|
|
387
387
|
start: "timeZone" in f.start ? f.start.set(fe(r.start)) : ce(r.start, f.start),
|
|
388
388
|
end: "timeZone" in f.end ? f.end.set(fe(r.end)) : ce(r.end, f.end)
|
|
389
389
|
}), Z(null), T(null), x.commitValidation();
|
|
390
390
|
}, k = (r) => {
|
|
391
|
-
let f = typeof
|
|
392
|
-
|
|
393
|
-
start: (d == null ? void 0 : d.start) ||
|
|
394
|
-
end: (d == null ? void 0 : d.end) ||
|
|
395
|
-
}) : Z(r) : K(r) ? (
|
|
391
|
+
let f = typeof C == "function" ? C() : C;
|
|
392
|
+
F ? K(r) && (f || d != null && d.start && (d != null && d.end)) ? w(r, {
|
|
393
|
+
start: (d == null ? void 0 : d.start) || p(e.placeholderValue),
|
|
394
|
+
end: (d == null ? void 0 : d.end) || p(e.placeholderValue)
|
|
395
|
+
}) : Z(r) : K(r) ? (O(r), x.commitValidation()) : Z(r), f && s.setOpen(!1);
|
|
396
396
|
}, P = (r) => {
|
|
397
397
|
K(b) && K(r) ? w(b, r) : T(r);
|
|
398
|
-
}, _ = (l == null || (a = l.start) === null || a === void 0 ? void 0 : a.calendar.identifier) === "gregory" && l.start.era === "BC" || (l == null || (t = l.end) === null || t === void 0 ? void 0 : t.calendar.identifier) === "gregory" && l.end.era === "BC", $ =
|
|
398
|
+
}, _ = (l == null || (a = l.start) === null || a === void 0 ? void 0 : a.calendar.identifier) === "gregory" && l.start.era === "BC" || (l == null || (t = l.end) === null || t === void 0 ? void 0 : t.calendar.identifier) === "gregory" && l.end.era === "BC", $ = z(() => ({
|
|
399
399
|
granularity: g,
|
|
400
400
|
timeZone: I,
|
|
401
401
|
hideTimeZone: e.hideTimeZone,
|
|
@@ -409,16 +409,16 @@ function Ca(e) {
|
|
|
409
409
|
I,
|
|
410
410
|
e.hideTimeZone,
|
|
411
411
|
_
|
|
412
|
-
]), { minValue: y, maxValue: D, isDateUnavailable: M } = e, V =
|
|
412
|
+
]), { minValue: y, maxValue: D, isDateUnavailable: M } = e, V = z(() => fa(l, y, D, M, $), [
|
|
413
413
|
l,
|
|
414
414
|
y,
|
|
415
415
|
D,
|
|
416
416
|
M,
|
|
417
417
|
$
|
|
418
|
-
]), x =
|
|
418
|
+
]), x = pe({
|
|
419
419
|
...e,
|
|
420
420
|
value: u,
|
|
421
|
-
name:
|
|
421
|
+
name: z(() => [
|
|
422
422
|
e.startName,
|
|
423
423
|
e.endName
|
|
424
424
|
].filter((r) => r != null), [
|
|
@@ -427,16 +427,16 @@ function Ca(e) {
|
|
|
427
427
|
]),
|
|
428
428
|
builtinValidation: V
|
|
429
429
|
}), N = x.displayValidation.isInvalid, U = e.validationState || (N ? "invalid" : null);
|
|
430
|
-
var
|
|
430
|
+
var q;
|
|
431
431
|
return {
|
|
432
432
|
...x,
|
|
433
433
|
value: l,
|
|
434
|
-
defaultValue: (
|
|
435
|
-
setValue:
|
|
434
|
+
defaultValue: (q = e.defaultValue) !== null && q !== void 0 ? q : o,
|
|
435
|
+
setValue: O,
|
|
436
436
|
dateRange: b,
|
|
437
437
|
timeRange: d,
|
|
438
438
|
granularity: g,
|
|
439
|
-
hasTime:
|
|
439
|
+
hasTime: F,
|
|
440
440
|
setDate(r, f) {
|
|
441
441
|
var n, h;
|
|
442
442
|
k(r === "start" ? {
|
|
@@ -459,7 +459,7 @@ function Ca(e) {
|
|
|
459
459
|
},
|
|
460
460
|
setDateTime(r, f) {
|
|
461
461
|
var n, h;
|
|
462
|
-
|
|
462
|
+
O(r === "start" ? {
|
|
463
463
|
start: f,
|
|
464
464
|
end: (n = l == null ? void 0 : l.end) !== null && n !== void 0 ? n : null
|
|
465
465
|
} : {
|
|
@@ -471,23 +471,23 @@ function Ca(e) {
|
|
|
471
471
|
setTimeRange: P,
|
|
472
472
|
...s,
|
|
473
473
|
setOpen(r) {
|
|
474
|
-
!r && !(l != null && l.start && (l != null && l.end)) && K(b) &&
|
|
475
|
-
start: (d == null ? void 0 : d.start) ||
|
|
476
|
-
end: (d == null ? void 0 : d.end) ||
|
|
474
|
+
!r && !(l != null && l.start && (l != null && l.end)) && K(b) && F && w(b, {
|
|
475
|
+
start: (d == null ? void 0 : d.start) || p(e.placeholderValue),
|
|
476
|
+
end: (d == null ? void 0 : d.end) || p(e.placeholderValue)
|
|
477
477
|
}), s.setOpen(r);
|
|
478
478
|
},
|
|
479
479
|
validationState: U,
|
|
480
480
|
isInvalid: N,
|
|
481
481
|
formatValue(r, f) {
|
|
482
482
|
if (!l || !l.start || !l.end) return null;
|
|
483
|
-
let n = "timeZone" in l.start ? l.start.timeZone : void 0, h = e.granularity || (l.start && "minute" in l.start ? "minute" : "day"), E = "timeZone" in l.end ? l.end.timeZone : void 0,
|
|
483
|
+
let n = "timeZone" in l.start ? l.start.timeZone : void 0, h = e.granularity || (l.start && "minute" in l.start ? "minute" : "day"), E = "timeZone" in l.end ? l.end.timeZone : void 0, G = e.granularity || (l.end && "minute" in l.end ? "minute" : "day"), da = X(f, {
|
|
484
484
|
granularity: h,
|
|
485
485
|
timeZone: n,
|
|
486
486
|
hideTimeZone: e.hideTimeZone,
|
|
487
487
|
hourCycle: e.hourCycle,
|
|
488
488
|
showEra: l.start.calendar.identifier === "gregory" && l.start.era === "BC" || l.end.calendar.identifier === "gregory" && l.end.era === "BC"
|
|
489
489
|
}), ge = l.start.toDate(n || "UTC"), ye = l.end.toDate(E || "UTC"), de = new Q(r, da), ne;
|
|
490
|
-
if (n === E && h ===
|
|
490
|
+
if (n === E && h === G && l.start.compare(l.end) !== 0) {
|
|
491
491
|
try {
|
|
492
492
|
let L = de.formatRangeToParts(ge, ye), re = -1;
|
|
493
493
|
for (let S = 0; S < L.length; S++) {
|
|
@@ -507,7 +507,7 @@ function Ca(e) {
|
|
|
507
507
|
ne = de;
|
|
508
508
|
} else {
|
|
509
509
|
let L = X(f, {
|
|
510
|
-
granularity:
|
|
510
|
+
granularity: G,
|
|
511
511
|
timeZone: E,
|
|
512
512
|
hideTimeZone: e.hideTimeZone,
|
|
513
513
|
hourCycle: e.hourCycle
|
|
@@ -531,26 +531,26 @@ function Ca(e) {
|
|
|
531
531
|
function K(e) {
|
|
532
532
|
return (e == null ? void 0 : e.start) != null && e.end != null;
|
|
533
533
|
}
|
|
534
|
-
const
|
|
534
|
+
const Fa = /* @__PURE__ */ te(null), Ca = /* @__PURE__ */ te(null), Ta = /* @__PURE__ */ te(null), Ia = /* @__PURE__ */ te(null), la = [
|
|
535
535
|
$e,
|
|
536
536
|
ve,
|
|
537
537
|
me,
|
|
538
538
|
he
|
|
539
|
-
], Ba = /* @__PURE__ */
|
|
540
|
-
[a, t] = Me(a, t,
|
|
539
|
+
], Ba = /* @__PURE__ */ qe(function(a, t) {
|
|
540
|
+
[a, t] = Me(a, t, Fa);
|
|
541
541
|
let { validationBehavior: s } = _e(Ke) || {};
|
|
542
542
|
var u, m;
|
|
543
|
-
let o = (m = (u = a.validationBehavior) !== null && u !== void 0 ? u : s) !== null && m !== void 0 ? m : "native", i =
|
|
543
|
+
let o = (m = (u = a.validationBehavior) !== null && u !== void 0 ? u : s) !== null && m !== void 0 ? m : "native", i = Oa({
|
|
544
544
|
...a,
|
|
545
545
|
validationBehavior: o
|
|
546
|
-
}), c = A(null), [l,
|
|
546
|
+
}), c = A(null), [l, O] = we(!a["aria-label"] && !a["aria-labelledby"]), { groupProps: R, labelProps: g, fieldProps: I, buttonProps: F, dialogProps: B, calendarProps: C, descriptionProps: b, errorMessageProps: Z, ...d } = Pa({
|
|
547
547
|
...Ee(a),
|
|
548
|
-
label:
|
|
548
|
+
label: O,
|
|
549
549
|
validationBehavior: o
|
|
550
|
-
}, i, c), [T, w] = W(null), k =
|
|
550
|
+
}, i, c), [T, w] = W(null), k = Ge(() => {
|
|
551
551
|
c.current && w(c.current.offsetWidth + "px");
|
|
552
552
|
}, []);
|
|
553
|
-
|
|
553
|
+
ze({
|
|
554
554
|
ref: c,
|
|
555
555
|
onResize: k
|
|
556
556
|
});
|
|
@@ -564,7 +564,8 @@ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__P
|
|
|
564
564
|
isFocusVisible: $,
|
|
565
565
|
isDisabled: a.isDisabled || !1,
|
|
566
566
|
isInvalid: i.isInvalid,
|
|
567
|
-
isOpen: i.isOpen
|
|
567
|
+
isOpen: i.isOpen,
|
|
568
|
+
isReadOnly: a.isReadOnly || !1
|
|
568
569
|
},
|
|
569
570
|
defaultClassName: "react-aria-DatePicker"
|
|
570
571
|
}), D = ie(a, {
|
|
@@ -579,7 +580,7 @@ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__P
|
|
|
579
580
|
[
|
|
580
581
|
$e,
|
|
581
582
|
{
|
|
582
|
-
...
|
|
583
|
+
...R,
|
|
583
584
|
ref: c,
|
|
584
585
|
isInvalid: i.isInvalid
|
|
585
586
|
}
|
|
@@ -591,7 +592,7 @@ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__P
|
|
|
591
592
|
[
|
|
592
593
|
ve,
|
|
593
594
|
{
|
|
594
|
-
...
|
|
595
|
+
...F,
|
|
595
596
|
isPressed: i.isOpen
|
|
596
597
|
}
|
|
597
598
|
],
|
|
@@ -605,7 +606,7 @@ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__P
|
|
|
605
606
|
],
|
|
606
607
|
[
|
|
607
608
|
na,
|
|
608
|
-
|
|
609
|
+
C
|
|
609
610
|
],
|
|
610
611
|
[
|
|
611
612
|
Ne,
|
|
@@ -649,6 +650,7 @@ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__P
|
|
|
649
650
|
"data-invalid": i.isInvalid || void 0,
|
|
650
651
|
"data-focus-visible": $ || void 0,
|
|
651
652
|
"data-disabled": a.isDisabled || void 0,
|
|
653
|
+
"data-readonly": a.isReadOnly || void 0,
|
|
652
654
|
"data-open": i.isOpen || void 0
|
|
653
655
|
}), /* @__PURE__ */ J.createElement(ba, {
|
|
654
656
|
autoComplete: a.autoComplete,
|
|
@@ -656,21 +658,21 @@ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__P
|
|
|
656
658
|
isDisabled: a.isDisabled,
|
|
657
659
|
state: i
|
|
658
660
|
}));
|
|
659
|
-
}), Za = /* @__PURE__ */
|
|
660
|
-
[a, t] = Me(a, t,
|
|
661
|
+
}), Za = /* @__PURE__ */ qe(function(a, t) {
|
|
662
|
+
[a, t] = Me(a, t, Ca);
|
|
661
663
|
let { validationBehavior: s } = _e(Ke) || {};
|
|
662
664
|
var u, m;
|
|
663
|
-
let o = (m = (u = a.validationBehavior) !== null && u !== void 0 ? u : s) !== null && m !== void 0 ? m : "native", i =
|
|
665
|
+
let o = (m = (u = a.validationBehavior) !== null && u !== void 0 ? u : s) !== null && m !== void 0 ? m : "native", i = Ra({
|
|
664
666
|
...a,
|
|
665
667
|
validationBehavior: o
|
|
666
|
-
}), c = A(null), [l,
|
|
668
|
+
}), c = A(null), [l, O] = we(!a["aria-label"] && !a["aria-labelledby"]), { groupProps: R, labelProps: g, startFieldProps: I, endFieldProps: F, buttonProps: B, dialogProps: C, calendarProps: b, descriptionProps: Z, errorMessageProps: d, ...T } = xa({
|
|
667
669
|
...Ee(a),
|
|
668
|
-
label:
|
|
670
|
+
label: O,
|
|
669
671
|
validationBehavior: o
|
|
670
|
-
}, i, c), [w, k] = W(null), P =
|
|
672
|
+
}, i, c), [w, k] = W(null), P = Ge(() => {
|
|
671
673
|
c.current && k(c.current.offsetWidth + "px");
|
|
672
674
|
}, []);
|
|
673
|
-
|
|
675
|
+
ze({
|
|
674
676
|
ref: c,
|
|
675
677
|
onResize: P
|
|
676
678
|
});
|
|
@@ -684,7 +686,8 @@ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__P
|
|
|
684
686
|
isFocusVisible: y,
|
|
685
687
|
isDisabled: a.isDisabled || !1,
|
|
686
688
|
isInvalid: i.isInvalid,
|
|
687
|
-
isOpen: i.isOpen
|
|
689
|
+
isOpen: i.isOpen,
|
|
690
|
+
isReadOnly: a.isReadOnly || !1
|
|
688
691
|
},
|
|
689
692
|
defaultClassName: "react-aria-DateRangePicker"
|
|
690
693
|
}), M = ie(a, {
|
|
@@ -699,7 +702,7 @@ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__P
|
|
|
699
702
|
[
|
|
700
703
|
$e,
|
|
701
704
|
{
|
|
702
|
-
...
|
|
705
|
+
...R,
|
|
703
706
|
ref: c,
|
|
704
707
|
isInvalid: i.isInvalid
|
|
705
708
|
}
|
|
@@ -741,14 +744,14 @@ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__P
|
|
|
741
744
|
],
|
|
742
745
|
[
|
|
743
746
|
Le,
|
|
744
|
-
|
|
747
|
+
C
|
|
745
748
|
],
|
|
746
749
|
[
|
|
747
750
|
Te,
|
|
748
751
|
{
|
|
749
752
|
slots: {
|
|
750
753
|
start: I,
|
|
751
|
-
end:
|
|
754
|
+
end: F
|
|
752
755
|
}
|
|
753
756
|
}
|
|
754
757
|
],
|
|
@@ -774,6 +777,7 @@ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__P
|
|
|
774
777
|
"data-invalid": i.isInvalid || void 0,
|
|
775
778
|
"data-focus-visible": y || void 0,
|
|
776
779
|
"data-disabled": a.isDisabled || void 0,
|
|
780
|
+
"data-readonly": a.isReadOnly || void 0,
|
|
777
781
|
"data-open": i.isOpen || void 0
|
|
778
782
|
}));
|
|
779
783
|
});
|
|
@@ -794,7 +798,7 @@ const ka = [
|
|
|
794
798
|
["path", { d: "M8 18h.01", key: "lrp35t" }],
|
|
795
799
|
["path", { d: "M12 18h.01", key: "mhygvu" }],
|
|
796
800
|
["path", { d: "M16 18h.01", key: "kzsmim" }]
|
|
797
|
-
], Ma = ya("calendar-days", ka), _a = "_datePicker_gs5wt_1", wa = "_inputField_gs5wt_8", Ea = "_medium_gs5wt_24", Sa = "_calendarButton_gs5wt_55", Wa = "_dialog_gs5wt_99",
|
|
801
|
+
], Ma = ya("calendar-days", ka), _a = "_datePicker_gs5wt_1", wa = "_inputField_gs5wt_8", Ea = "_medium_gs5wt_24", Sa = "_calendarButton_gs5wt_55", Wa = "_dialog_gs5wt_99", j = {
|
|
798
802
|
datePicker: _a,
|
|
799
803
|
inputField: wa,
|
|
800
804
|
medium: Ea,
|
|
@@ -808,16 +812,16 @@ const ka = [
|
|
|
808
812
|
}) => /* @__PURE__ */ Y(
|
|
809
813
|
ga,
|
|
810
814
|
{
|
|
811
|
-
className: ee(
|
|
812
|
-
[
|
|
815
|
+
className: ee(j.inputField, {
|
|
816
|
+
[j.medium]: s === "medium"
|
|
813
817
|
}),
|
|
814
818
|
children: [
|
|
815
819
|
e,
|
|
816
820
|
/* @__PURE__ */ v(
|
|
817
821
|
ma,
|
|
818
822
|
{
|
|
819
|
-
className: ee(
|
|
820
|
-
[
|
|
823
|
+
className: ee(j.calendarButton, {
|
|
824
|
+
[j.medium]: s === "medium"
|
|
821
825
|
}),
|
|
822
826
|
"data-invalid": t || void 0,
|
|
823
827
|
isDisabled: a,
|
|
@@ -834,7 +838,7 @@ const ka = [
|
|
|
834
838
|
}
|
|
835
839
|
), ta = ({
|
|
836
840
|
children: e
|
|
837
|
-
}) => /* @__PURE__ */ v($a, { children: /* @__PURE__ */ v(ha, { className:
|
|
841
|
+
}) => /* @__PURE__ */ v($a, { children: /* @__PURE__ */ v(ha, { className: j.dialog, children: e }) }), bl = ({
|
|
838
842
|
className: e,
|
|
839
843
|
description: a,
|
|
840
844
|
errorMessage: t,
|
|
@@ -845,7 +849,7 @@ const ka = [
|
|
|
845
849
|
}) => /* @__PURE__ */ Y(
|
|
846
850
|
Ba,
|
|
847
851
|
{
|
|
848
|
-
className: ee(
|
|
852
|
+
className: ee(j.datePicker, e),
|
|
849
853
|
...o,
|
|
850
854
|
children: [
|
|
851
855
|
/* @__PURE__ */ v(Be, { popover: m, children: u && /* @__PURE__ */ v(Ze, { children: u }) }),
|
|
@@ -867,7 +871,7 @@ const ka = [
|
|
|
867
871
|
}) => /* @__PURE__ */ Y(
|
|
868
872
|
Za,
|
|
869
873
|
{
|
|
870
|
-
className: ee(
|
|
874
|
+
className: ee(j.datePicker, e),
|
|
871
875
|
...o,
|
|
872
876
|
children: [
|
|
873
877
|
/* @__PURE__ */ v(Be, { popover: m, children: u && /* @__PURE__ */ v(Ze, { children: u }) }),
|