@midas-ds/components 10.2.0 → 10.4.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-BcsoC78F.cjs +1 -0
- package/{AccordionItem-DZT76sWu.js → AccordionItem-BqsgiVWV.js} +43 -41
- package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
- package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
- package/Breadcrumbs-CfW5IuyE.cjs +1 -0
- package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-D7eoibWk.js} +85 -73
- package/{Button-iSiWjocA.cjs → Button-BXY5ZhqI.cjs} +1 -1
- package/{Button-CbFRzRrF.js → Button-BZUo7vsZ.js} +2 -2
- package/Button-CFYdzG0H.js +341 -0
- package/Button-DExMoP5f.cjs +1 -0
- package/Button.module-DEQtBYe5.cjs +1 -0
- package/Button.module-tti8HGxs.js +14 -0
- package/CHANGELOG.md +48 -0
- package/{Card-CaKKKv9k.js → Card-BaWSgtSF.js} +5 -5
- package/Card-Cc1TNPcQ.cjs +1 -0
- package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
- package/CharacterCounter-cLhqPZlk.js +22 -0
- package/Checkbox-Co3h0hur.cjs +1 -0
- package/Checkbox-LuUwTZ3W.js +264 -0
- package/CheckboxGroup-CUA8_xSx.js +160 -0
- package/CheckboxGroup-DmUOM0xl.cjs +1 -0
- package/{Collection-C5ONNBqd.js → Collection--62xKPm9.js} +19 -18
- package/Collection-BtBX5IMY.cjs +1 -0
- package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-Cwono7Ap.js} +48 -32
- package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
- package/ComboBox-BBC7jhnm.cjs +1 -0
- package/{ComboBox-BCaqPEIH.js → ComboBox-HLIAbb2q.js} +360 -345
- package/DateField-B3VjOSde.cjs +1 -0
- package/DateField-CnLEi7uX.js +47 -0
- package/DateInputDivider-3BvwXXa9.cjs +1 -0
- package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-Bi5N-C0c.js} +73 -73
- package/DateRangePicker-BPlZ12r8.cjs +6 -0
- package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-CFOoGvut.js} +192 -189
- package/Dialog-CSnN6baf.cjs +1 -0
- package/{Dialog-CYxThuMl.js → Dialog-CtVrVuMr.js} +565 -538
- package/Dialog-SqciohRY.js +221 -0
- package/Dialog-pSSy1zwf.cjs +1 -0
- package/DragAndDrop-BoEd260f.cjs +1 -0
- package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-DkSTL28C.js} +8 -8
- package/{Dropdown-nkjzsVYX.js → Dropdown-CkBp70BH.js} +2 -2
- package/{Dropdown-CaGon9OR.cjs → Dropdown-DAsVShlt.cjs} +1 -1
- package/FieldError-B3YFj-an.js +23 -0
- package/{FieldError-CZikNDxX.js → FieldError-BbR-29BM.js} +8 -8
- package/{FieldError-DqdfJ3fs.cjs → FieldError-MVsU-Mgw.cjs} +1 -1
- package/{FieldError-BZw8UzBk.cjs → FieldError-bRTpchvr.cjs} +1 -1
- package/{FileUpload-ULwcYDxs.js → FileUpload-B4rv-wke.js} +502 -480
- package/{FileUpload-DYRZ0M9F.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
- package/{FocusScope-DwIqdYpQ.js → FocusScope-D_hwN_TJ.js} +38 -37
- package/FocusScope-vcXLOQiu.cjs +1 -0
- package/Group-CpkUzEAs.js +45 -0
- package/Group-DOpbdoAi.cjs +1 -0
- package/Heading-CKTR4sOz.cjs +1 -0
- package/{Heading-BY5-QN4S.js → Heading-NxtGri2i.js} +7 -7
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/{InfoBanner-CVIBFSWx.js → InfoBanner-CBUoad7A.js} +45 -36
- package/InfoBanner-CVry6Y8i.cjs +1 -0
- package/Input-LnjmFI1x.js +42 -0
- package/Input-MJji5hhq.cjs +1 -0
- package/Label-CNmTN1YY.cjs +1 -0
- package/Label-TVxwGZ-O.js +78 -0
- package/Layout-Dw-oCqxd.cjs +16 -0
- package/Layout-amz9BESl.js +498 -0
- package/{Link-B-nus-FT.js → Link-Bn8V3ZI0.js} +20 -19
- package/Link-CidjjqHb.cjs +1 -0
- package/{Link-DsnCtNeI.cjs → Link-D92ftFi2.cjs} +1 -1
- package/{Link-uFowN4qv.js → Link-DegonJfl.js} +1 -1
- package/LinkButton-CckYzfJ8.js +69 -0
- package/LinkButton-DKZ4z6zu.cjs +6 -0
- package/ListBox-BCz5-23H.cjs +1 -0
- package/{ListBox-DOi_y_Lt.js → ListBox-C-isJIHL.js} +56 -55
- package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-C_krklY0.js} +1 -1
- package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
- package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-BVR2xtOH.js} +9 -9
- package/ListBoxSection-CfQZoURJ.cjs +1 -0
- package/ListKeyboardDelegate-CPsZ7D83.cjs +1 -0
- package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-CY6t6y1t.js} +24 -15
- package/Logo-BpH0HC91.cjs +1 -0
- package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
- package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CfhSYL46.js} +28 -27
- package/OverlayArrow-DpZ1FqOd.cjs +1 -0
- package/Popover-C8VY1YKi.js +38 -0
- package/Popover-CnAsw3wI.cjs +1 -0
- package/{ProgressBar-gmAzSsrz.js → ProgressBar-BNCjpcv8.js} +2 -2
- package/ProgressBar-CcbxcWdT.cjs +1 -0
- package/Radio-B2zfEFdq.cjs +1 -0
- package/{Radio-_ukSkxPT.js → Radio-CZYibh9r.js} +81 -78
- package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-B16b6tJD.js} +303 -294
- package/RangeCalendar-C1LFeOVk.cjs +11 -0
- package/SSRProvider-40TXmsUG.js +50 -0
- package/SSRProvider-Bc-sMhsT.cjs +1 -0
- package/SearchField-CML0kjtn.cjs +6 -0
- package/{SearchField-DYl2uo7o.js → SearchField-giwECmXS.js} +175 -166
- package/Select-DKey6CeS.cjs +1 -0
- package/Select-mwaAv20X.js +665 -0
- package/SelectionManager-D0jYUYcy.cjs +1 -0
- package/{SelectionManager-6H88Cv6B.js → SelectionManager-zsWy3vsd.js} +86 -86
- package/Separator-CxF-3jhR.cjs +1 -0
- package/{Separator-LYnFqh4L.js → Separator-Dn5LYN5I.js} +19 -20
- package/Spinner-CbJ6YAz-.js +53 -0
- package/Spinner-yHcy8YHC.cjs +6 -0
- package/TabList-7VtCiXxX.cjs +1 -0
- package/TabList-CthsM5h6.js +435 -0
- package/{Table-B_N7wUmA.js → Table-BcQPvJT3.js} +67 -69
- package/Table-DkvNp6xm.cjs +16 -0
- package/{Tag-g6HN-YCv.js → Tag-Bs8T2Ei7.js} +140 -141
- package/Tag-CFWZ2LQW.cjs +1 -0
- package/{Text-B_H68Tvq.js → Text-92cPh38G.js} +3 -3
- package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
- package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
- package/{Text-BN-g1iWi.js → Text-DlKqpvSa.js} +1 -1
- package/TextArea-DBNAVWqL.js +119 -0
- package/TextArea-XJDfeXRs.cjs +1 -0
- package/TextField-BdK9KEQ5.cjs +1 -0
- package/{TextField-DBaRuNj7.js → TextField-ByDJkig9.js} +22 -21
- package/{Toast-CjpldAI8.js → Toast-DPPvPhrF.js} +95 -87
- package/Toast-l1bKo2oA.cjs +1 -0
- package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
- package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-HOWNWtQZ.js} +47 -46
- package/{Tooltip-BAIjaYax.js → Tooltip-5mLWn_wO.js} +53 -51
- package/Tooltip-pN5W3IK6.cjs +1 -0
- package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-CYfmTSCD.js} +8 -8
- package/VisuallyHidden-Doyzl0F7.cjs +1 -0
- 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/Checkbox.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/Popover.css +1 -0
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +11 -7
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.d.ts +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/CalendarGrid.d.ts +1 -0
- 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 +4 -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 +7 -0
- package/checkbox/types.d.ts +16 -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/ColorSchemeSwitch.d.ts +1 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/color-scheme-switch/intl/translations.json.d.ts +15 -0
- package/combobox/ComboBox.d.ts +3 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +11 -0
- package/{context-B8cn10po.js → context-CGNJ3grH.js} +11 -11
- package/context-Df3XbgBG.cjs +1 -0
- 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 +4 -0
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/file-upload/intl/translations.json.d.ts +17 -0
- package/{getScrollParent-Ru2U2LlM.js → getScrollParent-CT_L9LUr.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-CsZ9ciml.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 +105 -100
- 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/info-banner/intl/translations.json.d.ts +11 -0
- 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/label/intl/translations.json.d.ts +11 -0
- package/layout/Layout.d.ts +1 -0
- package/layout/context/LayoutContext.d.ts +1 -0
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/layout/intl/translations.json.d.ts +23 -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/index.cjs +1 -1
- package/list-box/index.js +2 -2
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/logo/intl/translations.json.d.ts +11 -0
- package/mergeProps-B5KXZAI3.cjs +1 -0
- package/mergeProps-C1U1OIeJ.js +115 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/modal/intl/translations.json.d.ts +11 -0
- 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 +4 -4
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-BLnsPvFA.js +87 -0
- package/scrollIntoView-joIyo-Jt.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/search-field/intl/translations.json.d.ts +11 -0
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +17 -0
- package/spinner/Spinner.d.ts +1 -0
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/spinner/intl/translations.json.d.ts +11 -0
- 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/Tab.d.ts +4 -0
- package/tabs/TabList.d.ts +3 -0
- package/tabs/TabPanel.d.ts +4 -0
- package/tabs/Tabs.d.ts +11 -5
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +3 -0
- package/tabs/index.js +5 -2
- 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/TextFieldBase.d.ts +2 -0
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/textfield/intl/translations.json.d.ts +0 -72
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +5 -0
- package/theme/index.js +2 -2
- package/theme/tokens.d.ts +5 -0
- package/toast/Toast.d.ts +5 -2
- 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/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
- package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
- 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-1-Jf-oHj.js} +6 -6
- package/useButton-D60q0SQw.cjs +1 -0
- package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
- package/{useDateFormatter-C53Uxdli.js → useDateFormatter-BVCkxVdw.js} +2 -2
- package/{useEvent-Cyd2ZL0c.js → useEvent-CigwyJOw.js} +3 -3
- package/useEvent-DPxMu-X9.cjs +1 -0
- package/{useField-BPMAlIbU.js → useField-BEBXv5Mh.js} +7 -7
- package/useField-D1UkzeaI.cjs +1 -0
- package/{useFilter-ChIbnALW.js → useFilter-CousKe2K.js} +1 -1
- package/useFilter-e2oIVF_O.cjs +1 -0
- package/useFocusRing-B-A1OLhU.cjs +1 -0
- package/useFocusRing-DOfBqnUN.js +33 -0
- package/useFocusWithin-CG8mAt2D.cjs +1 -0
- package/useFocusWithin-T1ifEM_s.js +54 -0
- package/useFocusable-ChPA2Jc7.js +127 -0
- package/useFocusable-D7I1ujkW.cjs +1 -0
- package/useFormValidation-BlFGdPZB.cjs +1 -0
- package/{useFormValidation-R8hQIjWP.js → useFormValidation-BzzruZKm.js} +5 -5
- package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-BE81d_ab.js} +2 -2
- package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
- package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
- package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-D73hrkmn.js} +14 -14
- package/useHover-BE_XKZKe.cjs +1 -0
- package/useHover-DQvJ3Y-W.js +262 -0
- package/useLabels-CSU0kbtJ.cjs +1 -0
- package/{useLabels-BZjoZA1Z.js → useLabels-LrKQiY11.js} +1 -1
- package/{useListState-DFQ9d-uE.js → useListState-CebsX_1d.js} +7 -7
- package/{useListState-Ca2-uZMO.cjs → useListState-DymkJGDF.cjs} +1 -1
- package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/{useLocalizedStringFormatter-D07YB2e1.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
- package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-BooY_CAy.cjs +7 -0
- package/{usePress-CUJ3pMOw.js → usePress-DuR4pVsE.js} +154 -153
- package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
- package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
- package/{useTextField-5OZQPyOW.js → useTextField-C-sUypsx.js} +14 -14
- package/useTextField-DnRrCg5o.cjs +1 -0
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
- package/utils-CoCR_Fce.js +234 -0
- package/utils-DHNZrQmj.cjs +1 -0
- package/utils-DJhAJHk_.js +152 -0
- package/utils-Dvdohqm9.cjs +1 -0
- package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
- package/AccordionItem-Z_c9MpAM.cjs +0 -1
- package/Breadcrumbs-Cx09jwZZ.cjs +0 -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/Collection-Csx3L9gh.cjs +0 -1
- package/ColorSchemeSwitch-JRrCyYVv.cjs +0 -16
- 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/Dialog-Bxx8cBEq.js +0 -208
- package/Dialog-CwTEAujZ.cjs +0 -1
- package/DragAndDrop-HvycSrKY.cjs +0 -1
- package/FieldError-Dv3bBEjh.js +0 -23
- package/FocusScope-NaPbvuuS.cjs +0 -1
- package/Group-CeSsSQVC.js +0 -44
- package/Group-CgiqQHH1.cjs +0 -1
- package/Heading-DoJAtYZf.cjs +0 -1
- package/InfoBanner-BS-dAfzO.cjs +0 -1
- package/Input-D8Ku_FQz.js +0 -41
- package/Input-DKSAYvsw.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/Layout-BWeHHnqU.cjs +0 -16
- package/Layout-CCt_2L1k.js +0 -468
- package/Link-SHMbeyIP.cjs +0 -1
- package/LinkButton-CuBilDML.js +0 -69
- package/LinkButton-CymMrcGL.cjs +0 -6
- package/ListBox-CDOsQChA.cjs +0 -1
- package/ListBoxSection-DGCP6xpf.cjs +0 -1
- package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
- package/LiveAnnouncer-B6177m92.js +0 -51
- package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
- package/Logo-DT2_2O43.cjs +0 -1
- package/NumberFormatter-DewVDY5w.cjs +0 -1
- package/NumberFormatter-DgOUVrge.js +0 -119
- package/OverlayArrow-D75k-EMl.cjs +0 -1
- 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/SearchField-6yBGiojX.cjs +0 -6
- package/Select-CpHjd1tp.cjs +0 -1
- package/Select-PvCqY7Lp.js +0 -646
- package/SelectionManager-C5NGBzvz.cjs +0 -1
- package/Separator-nPra6kD-.cjs +0 -1
- package/Spinner-D31SXm-U.js +0 -41
- package/Spinner-DAJtfxqJ.cjs +0 -6
- package/Table-D9vNc_y-.cjs +0 -16
- package/Tabs-Ct6D83aR.js +0 -404
- package/Tabs-Dtcl2oK2.cjs +0 -1
- package/Tag-CVFkzg3s.cjs +0 -1
- 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/ToggleButtonGroup-BuU_6dYe.cjs +0 -1
- package/Tooltip-CiWg4zIC.cjs +0 -1
- package/VisuallyHidden-CtXvK_Tw.cjs +0 -1
- package/assets/Tabs.css +0 -1
- package/context-DjwhtgxQ.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/useButton-B1Fa-6qE.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/useEvent-CjkbBniY.cjs +0 -1
- package/useField-B1RU0GKs.cjs +0 -1
- package/useFilter-CtIwF2qW.cjs +0 -1
- package/useFocusRing-BDGH3lpn.js +0 -82
- package/useFocusRing-CbImDrwF.cjs +0 -1
- package/useFocusable-CaedRTpB.js +0 -74
- package/useFocusable-CuPQ7Cm5.cjs +0 -1
- package/useFormValidation-ClximP89.cjs +0 -1
- package/useHasTabbableChild-DgphNvnk.cjs +0 -1
- package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
- package/useHover-_mv5J4_q.cjs +0 -1
- package/useHover-qRAon4nS.js +0 -490
- package/useLabel-DDdAJ1JO.js +0 -23
- package/useLabel-m_S5xkHy.cjs +0 -1
- package/useLabels-BLOfc6Y-.cjs +0 -1
- package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BFa6cT9o.cjs +0 -7
- package/useTextField-CtUDWsUl.cjs +0 -1
- package/utils-BNtZbAib.cjs +0 -1
- package/utils-HNTsIwux.js +0 -308
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { jsx as be } from "react/jsx-runtime";
|
|
2
2
|
import { c as Re } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import {
|
|
4
|
-
import { $ as
|
|
5
|
-
import { $ as
|
|
6
|
-
import { a as je, $ as
|
|
7
|
-
import { $ as Ie, a as
|
|
8
|
-
import {
|
|
9
|
-
import { a as
|
|
10
|
-
import { c as ne, p as
|
|
3
|
+
import { $ as Se, b as qu, c as Yu, d as Be, a as Te, e as Ne, f as Ju } from "./utils-DJhAJHk_.js";
|
|
4
|
+
import { $ as Xu } from "./FieldError-BbR-29BM.js";
|
|
5
|
+
import { $ as Qu } from "./Form-CXcEMuBf.js";
|
|
6
|
+
import { a as je, $ as et } from "./Group-CpkUzEAs.js";
|
|
7
|
+
import { $ as Ie, a as at } from "./Input-LnjmFI1x.js";
|
|
8
|
+
import { g as ut, h as tt, f as rt, c as nt } from "./Button-CFYdzG0H.js";
|
|
9
|
+
import { a as it } from "./Text-92cPh38G.js";
|
|
10
|
+
import { c as ne, p as ee, x as dt, y as ot, w as lt, b as st, a as ct, $ as Q, z as mt, q as ft, t as Dt, A as $t, B as pt, u as Oe } from "./useDateFormatter-BVCkxVdw.js";
|
|
11
|
+
import { d as Ee, a as ae, $ as bt, c as yt } from "./mergeProps-C1U1OIeJ.js";
|
|
11
12
|
import { $ as ye } from "./filterDOMProps-D6KHYVBX.js";
|
|
12
|
-
import O, { useRef as z, useEffect as le, useMemo as P, useState as $e, forwardRef as ue, createContext as xe, useContext as H, cloneElement as
|
|
13
|
-
import { $ as te } from "./context-
|
|
14
|
-
import { a as se, $ as
|
|
15
|
-
import { a as
|
|
16
|
-
import { $ as
|
|
17
|
-
import { b as ze, $ as Me } from "./FocusScope-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { $ as
|
|
22
|
-
import { $ as _e, a as
|
|
23
|
-
import { $ as
|
|
24
|
-
import { $ as
|
|
25
|
-
import {
|
|
26
|
-
import { $ as me } from "./useEvent-
|
|
27
|
-
import {
|
|
28
|
-
import { $ as
|
|
29
|
-
import { $ as
|
|
30
|
-
import { a as Ot, $ as zt } from "./LiveAnnouncer-B6177m92.js";
|
|
13
|
+
import O, { useRef as z, useEffect as le, useMemo as P, useState as $e, forwardRef as ue, createContext as xe, useContext as H, cloneElement as xt } from "react";
|
|
14
|
+
import { $ as te } from "./context-CGNJ3grH.js";
|
|
15
|
+
import { a as se, $ as ht } from "./LocalizedStringFormatter-D-4Qyql0.js";
|
|
16
|
+
import { a as vt, b as gt, c as Ce, f as Bt, $ as Et } from "./useFormValidation-BzzruZKm.js";
|
|
17
|
+
import { $ as Ct } from "./useControlledState-u436Wbp1.js";
|
|
18
|
+
import { b as ze, $ as Me } from "./FocusScope-D_hwN_TJ.js";
|
|
19
|
+
import { a as Ft } from "./usePress-DuR4pVsE.js";
|
|
20
|
+
import { a as wt, c as Pt } from "./scrollIntoView-BLnsPvFA.js";
|
|
21
|
+
import { $ as kt } from "./useFocusWithin-T1ifEM_s.js";
|
|
22
|
+
import { $ as At } from "./useField-BEBXv5Mh.js";
|
|
23
|
+
import { $ as _e, a as Vt } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
|
|
24
|
+
import { $ as Rt } from "./useLabels-LrKQiY11.js";
|
|
25
|
+
import { $ as St } from "./getScrollParent-CT_L9LUr.js";
|
|
26
|
+
import { l as Tt, h as Nt, $ as jt } from "./useHover-DQvJ3Y-W.js";
|
|
27
|
+
import { $ as me } from "./useEvent-CigwyJOw.js";
|
|
28
|
+
import { $ as It } from "./useFilter-CousKe2K.js";
|
|
29
|
+
import { $ as Ot } from "./utils-CoCR_Fce.js";
|
|
30
|
+
import { $ as zt } from "./useFocusRing-DOfBqnUN.js";
|
|
31
31
|
import './assets/DateInputDivider.css';const Mt = new RegExp("^.*\\(.*\\).*$"), _t = [
|
|
32
32
|
"latn",
|
|
33
33
|
"arab",
|
|
@@ -96,7 +96,7 @@ class Ut {
|
|
|
96
96
|
minimumFractionDigits: Math.min(((r = this.options.minimumFractionDigits) !== null && r !== void 0 ? r : 0) + 2, 20),
|
|
97
97
|
maximumFractionDigits: Math.min(((i = this.options.maximumFractionDigits) !== null && i !== void 0 ? i : 0) + 2, 20)
|
|
98
98
|
};
|
|
99
|
-
return new Ue(this.locale, o).parse(new
|
|
99
|
+
return new Ue(this.locale, o).parse(new ut(this.locale, o).format(t));
|
|
100
100
|
}
|
|
101
101
|
return this.options.currencySign === "accounting" && Mt.test(a) && (t = -1 * t), t;
|
|
102
102
|
}
|
|
@@ -395,22 +395,22 @@ function Gt(e) {
|
|
|
395
395
|
S.current = !1;
|
|
396
396
|
}, T = t === "" ? y.format("Empty") : (t || `${u}`).replace("-", "−");
|
|
397
397
|
le(() => {
|
|
398
|
-
S.current && (
|
|
398
|
+
S.current && (tt("assertive"), rt(T, "assertive"));
|
|
399
399
|
}, [
|
|
400
400
|
T
|
|
401
401
|
]);
|
|
402
|
-
const I =
|
|
402
|
+
const I = Ee((p) => {
|
|
403
403
|
x(), c == null || c(), a.current = window.setTimeout(() => {
|
|
404
404
|
(i === void 0 || isNaN(i) || u === void 0 || isNaN(u) || u < i) && I(60);
|
|
405
405
|
}, p);
|
|
406
|
-
}), N =
|
|
406
|
+
}), N = Ee((p) => {
|
|
407
407
|
x(), s == null || s(), a.current = window.setTimeout(() => {
|
|
408
408
|
(r === void 0 || isNaN(r) || u === void 0 || isNaN(u) || u > r) && N(60);
|
|
409
409
|
}, p);
|
|
410
410
|
});
|
|
411
411
|
let k = (p) => {
|
|
412
412
|
p.preventDefault();
|
|
413
|
-
}, { addGlobalListener: M, removeAllGlobalListeners: $ } =
|
|
413
|
+
}, { addGlobalListener: M, removeAllGlobalListeners: $ } = Ot();
|
|
414
414
|
return {
|
|
415
415
|
spinButtonProps: {
|
|
416
416
|
role: "spinbutton",
|
|
@@ -1171,7 +1171,7 @@ function Wt(e, a, u) {
|
|
|
1171
1171
|
else break;
|
|
1172
1172
|
}
|
|
1173
1173
|
c && c.focus();
|
|
1174
|
-
}, { pressProps: f } =
|
|
1174
|
+
}, { pressProps: f } = Ft({
|
|
1175
1175
|
preventFocusOnPress: !0,
|
|
1176
1176
|
allowTextSelectionOnPress: !0,
|
|
1177
1177
|
onPressStart(n) {
|
|
@@ -1181,7 +1181,7 @@ function Wt(e, a, u) {
|
|
|
1181
1181
|
(n.pointerType === "touch" || n.pointerType === "pen") && o();
|
|
1182
1182
|
}
|
|
1183
1183
|
});
|
|
1184
|
-
return
|
|
1184
|
+
return ae(f, {
|
|
1185
1185
|
onKeyDown: i
|
|
1186
1186
|
});
|
|
1187
1187
|
}
|
|
@@ -1201,12 +1201,12 @@ function Ht(e) {
|
|
|
1201
1201
|
const ru = /* @__PURE__ */ new WeakMap(), De = "__role_" + Date.now(), qt = "__focusManager_" + Date.now();
|
|
1202
1202
|
function nu(e, a, u) {
|
|
1203
1203
|
var t;
|
|
1204
|
-
let { isInvalid: r, validationErrors: i, validationDetails: o } = a.displayValidation, { labelProps: f, fieldProps: n, descriptionProps: c, errorMessageProps: l } =
|
|
1204
|
+
let { isInvalid: r, validationErrors: i, validationDetails: o } = a.displayValidation, { labelProps: f, fieldProps: n, descriptionProps: c, errorMessageProps: l } = At({
|
|
1205
1205
|
...e,
|
|
1206
1206
|
labelElementType: "span",
|
|
1207
1207
|
isInvalid: r,
|
|
1208
1208
|
errorMessage: e.errorMessage || i
|
|
1209
|
-
}), s = z(null), { focusWithinProps: D } =
|
|
1209
|
+
}), s = z(null), { focusWithinProps: D } = kt({
|
|
1210
1210
|
...e,
|
|
1211
1211
|
onFocusWithin($) {
|
|
1212
1212
|
var p;
|
|
@@ -1221,7 +1221,7 @@ function nu(e, a, u) {
|
|
|
1221
1221
|
[y]: a.formatValue({
|
|
1222
1222
|
month: "long"
|
|
1223
1223
|
})
|
|
1224
|
-
}) : "", A =
|
|
1224
|
+
}) : "", A = wt(x), S = e[De] === "presentation" ? n["aria-describedby"] : [
|
|
1225
1225
|
A["aria-describedby"],
|
|
1226
1226
|
n["aria-describedby"]
|
|
1227
1227
|
].filter(Boolean).join(" ") || void 0, C = e[qt], E = P(() => C || ze(u), [
|
|
@@ -1240,7 +1240,7 @@ function nu(e, a, u) {
|
|
|
1240
1240
|
let I = z(e.autoFocus), N;
|
|
1241
1241
|
e[De] === "presentation" ? N = {
|
|
1242
1242
|
role: "presentation"
|
|
1243
|
-
} : N =
|
|
1243
|
+
} : N = ae(n, {
|
|
1244
1244
|
role: "group",
|
|
1245
1245
|
"aria-disabled": e.isDisabled || void 0,
|
|
1246
1246
|
"aria-describedby": S
|
|
@@ -1248,7 +1248,7 @@ function nu(e, a, u) {
|
|
|
1248
1248
|
I.current && E.focusFirst(), I.current = !1;
|
|
1249
1249
|
}, [
|
|
1250
1250
|
E
|
|
1251
|
-
]),
|
|
1251
|
+
]), vt(e.inputRef, a.value, a.setValue), gt({
|
|
1252
1252
|
...e,
|
|
1253
1253
|
focus() {
|
|
1254
1254
|
E.focusFirst();
|
|
@@ -1270,7 +1270,7 @@ function nu(e, a, u) {
|
|
|
1270
1270
|
E.focusFirst();
|
|
1271
1271
|
}
|
|
1272
1272
|
},
|
|
1273
|
-
fieldProps:
|
|
1273
|
+
fieldProps: ae(M, N, T, D, {
|
|
1274
1274
|
onKeyDown($) {
|
|
1275
1275
|
e.onKeyDown && e.onKeyDown($);
|
|
1276
1276
|
},
|
|
@@ -1293,7 +1293,7 @@ function Yt(e) {
|
|
|
1293
1293
|
return e && e.__esModule ? e.default : e;
|
|
1294
1294
|
}
|
|
1295
1295
|
function Jt() {
|
|
1296
|
-
let { locale: e } = te(), a =
|
|
1296
|
+
let { locale: e } = te(), a = Vt(Yt(he), "@react-aria/datepicker");
|
|
1297
1297
|
return P(() => {
|
|
1298
1298
|
try {
|
|
1299
1299
|
return new Intl.DisplayNames(e, {
|
|
@@ -1369,7 +1369,7 @@ function Qt(e, a, u) {
|
|
|
1369
1369
|
d = h === 0 ? "" : d, d.length === 0 || h === 0 ? a.clearSegment(e.type) : a.setSegment(e.type, h), t.current = d;
|
|
1370
1370
|
} else e.type === "dayPeriod" && a.clearSegment(e.type);
|
|
1371
1371
|
}, S = (d) => {
|
|
1372
|
-
if (d.key === "a" && (
|
|
1372
|
+
if (d.key === "a" && (Nt() ? d.metaKey : d.ctrlKey) && d.preventDefault(), !(d.ctrlKey || d.metaKey || d.shiftKey || d.altKey))
|
|
1373
1373
|
switch (d.key) {
|
|
1374
1374
|
case "Backspace":
|
|
1375
1375
|
case "Delete":
|
|
@@ -1397,7 +1397,7 @@ function Qt(e, a, u) {
|
|
|
1397
1397
|
timeZone: "UTC"
|
|
1398
1398
|
}), k = P(() => {
|
|
1399
1399
|
if (e.type !== "era") return [];
|
|
1400
|
-
let d =
|
|
1400
|
+
let d = ee(new dt(1, 1, 1), a.calendar), h = a.calendar.getEras().map((R) => {
|
|
1401
1401
|
let L = d.set({
|
|
1402
1402
|
year: 1,
|
|
1403
1403
|
month: 1,
|
|
@@ -1456,8 +1456,8 @@ function Qt(e, a, u) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
}, $ = () => {
|
|
1459
|
-
t.current = "", u.current &&
|
|
1460
|
-
containingElement:
|
|
1459
|
+
t.current = "", u.current && Pt(u.current, {
|
|
1460
|
+
containingElement: St(u.current)
|
|
1461
1461
|
});
|
|
1462
1462
|
let d = window.getSelection();
|
|
1463
1463
|
d == null || d.collapse(u.current);
|
|
@@ -1489,7 +1489,7 @@ function Qt(e, a, u) {
|
|
|
1489
1489
|
u.current && (u.current.textContent = V.current), B != null && (C(T, B) || C(I, B)) && M(B);
|
|
1490
1490
|
break;
|
|
1491
1491
|
}
|
|
1492
|
-
}),
|
|
1492
|
+
}), bt(() => {
|
|
1493
1493
|
let d = u.current;
|
|
1494
1494
|
return () => {
|
|
1495
1495
|
document.activeElement === d && (l.focusPrevious() || l.focusNext());
|
|
@@ -1498,7 +1498,7 @@ function Qt(e, a, u) {
|
|
|
1498
1498
|
u,
|
|
1499
1499
|
l
|
|
1500
1500
|
]);
|
|
1501
|
-
let b =
|
|
1501
|
+
let b = Tt() || e.type === "timeZoneName" ? {
|
|
1502
1502
|
role: "textbox",
|
|
1503
1503
|
"aria-valuemax": null,
|
|
1504
1504
|
"aria-valuemin": null,
|
|
@@ -1508,7 +1508,7 @@ function Qt(e, a, u) {
|
|
|
1508
1508
|
a.segments
|
|
1509
1509
|
]);
|
|
1510
1510
|
e !== _ && !a.isInvalid && (c = void 0);
|
|
1511
|
-
let q =
|
|
1511
|
+
let q = yt(), U = !a.isDisabled && !a.isReadOnly && e.isEditable, F = e.type === "literal" ? "" : o.of(e.type), Z = Rt({
|
|
1512
1512
|
"aria-label": `${F}${f ? `, ${f}` : ""}${n ? ", " : ""}`,
|
|
1513
1513
|
"aria-labelledby": n
|
|
1514
1514
|
});
|
|
@@ -1526,7 +1526,7 @@ function Qt(e, a, u) {
|
|
|
1526
1526
|
(d === "numeric" || d === "2-digit") && (K.direction = "ltr");
|
|
1527
1527
|
}
|
|
1528
1528
|
return {
|
|
1529
|
-
segmentProps:
|
|
1529
|
+
segmentProps: ae(y, Z, {
|
|
1530
1530
|
id: q,
|
|
1531
1531
|
...b,
|
|
1532
1532
|
"aria-invalid": a.isInvalid ? "true" : void 0,
|
|
@@ -1846,7 +1846,7 @@ function Uu() {
|
|
|
1846
1846
|
function pe(e, a, u, t, r) {
|
|
1847
1847
|
let i = e != null && u != null && e.compare(u) > 0, o = e != null && a != null && e.compare(a) < 0, f = e != null && (t == null ? void 0 : t(e)) || !1, n = i || o || f, c = [];
|
|
1848
1848
|
if (n) {
|
|
1849
|
-
let l = Uu(), s = se.getGlobalDictionaryForPackage("@react-stately/datepicker") || _u, D = new
|
|
1849
|
+
let l = Uu(), s = se.getGlobalDictionaryForPackage("@react-stately/datepicker") || _u, D = new ht(l, s), g = new Q(l, de({}, r)), v = g.resolvedOptions().timeZone;
|
|
1850
1850
|
o && a != null && c.push(D.format("rangeUnderflow", {
|
|
1851
1851
|
minValue: g.format(a.toDate(v))
|
|
1852
1852
|
})), i && u != null && c.push(D.format("rangeOverflow", {
|
|
@@ -1884,7 +1884,7 @@ function Wr(e, a, u, t, r) {
|
|
|
1884
1884
|
l.getStringForLocale("rangeReversed", Uu())
|
|
1885
1885
|
],
|
|
1886
1886
|
validationDetails: {
|
|
1887
|
-
...
|
|
1887
|
+
...Bt,
|
|
1888
1888
|
rangeUnderflow: !0,
|
|
1889
1889
|
rangeOverflow: !0,
|
|
1890
1890
|
valid: !1
|
|
@@ -1923,22 +1923,22 @@ function de(e, a) {
|
|
|
1923
1923
|
return a.hourCycle != null && (n.hour12 = a.hourCycle === 12), n.timeZone = a.timeZone || "UTC", (t === "hour" || t === "minute" || t === "second") && a.timeZone && !a.hideTimeZone && (n.timeZoneName = "short"), a.showEra && o === 0 && (n.era = "short"), n;
|
|
1924
1924
|
}
|
|
1925
1925
|
function Hr(e) {
|
|
1926
|
-
return e && "hour" in e ? e : new
|
|
1926
|
+
return e && "hour" in e ? e : new mt();
|
|
1927
1927
|
}
|
|
1928
1928
|
function Zu(e, a) {
|
|
1929
1929
|
if (e === null) return null;
|
|
1930
1930
|
if (e)
|
|
1931
|
-
return
|
|
1931
|
+
return ee(e, a);
|
|
1932
1932
|
}
|
|
1933
1933
|
function X(e, a, u, t) {
|
|
1934
1934
|
if (e) return Zu(e, u);
|
|
1935
|
-
let r =
|
|
1935
|
+
let r = ee(ot(t ?? lt()).set({
|
|
1936
1936
|
hour: 0,
|
|
1937
1937
|
minute: 0,
|
|
1938
1938
|
second: 0,
|
|
1939
1939
|
millisecond: 0
|
|
1940
1940
|
}), u);
|
|
1941
|
-
return a === "year" || a === "month" || a === "day" ?
|
|
1941
|
+
return a === "year" || a === "month" || a === "day" ? st(r) : t ? r : ct(r);
|
|
1942
1942
|
}
|
|
1943
1943
|
function rr(e, a) {
|
|
1944
1944
|
let u = e && "timeZone" in e ? e.timeZone : void 0, t = e && "minute" in e ? "minute" : "day";
|
|
@@ -2371,7 +2371,7 @@ function Lu(e) {
|
|
|
2371
2371
|
v
|
|
2372
2372
|
]);
|
|
2373
2373
|
var x;
|
|
2374
|
-
let [A, S] =
|
|
2374
|
+
let [A, S] = Ct(e.value, (x = e.defaultValue) !== null && x !== void 0 ? x : null, e.onChange), C = P(() => {
|
|
2375
2375
|
var m;
|
|
2376
2376
|
return (m = Zu(A, y)) !== null && m !== void 0 ? m : null;
|
|
2377
2377
|
}, [
|
|
@@ -2409,7 +2409,7 @@ function Lu(e) {
|
|
|
2409
2409
|
...V
|
|
2410
2410
|
} : {}), q = z(null), U = z(y);
|
|
2411
2411
|
le(() => {
|
|
2412
|
-
|
|
2412
|
+
ft(y, U.current) || (U.current = y, T((m) => Object.keys(b).length > 0 ? ee(m, y) : X(e.placeholderValue, s, y, D)));
|
|
2413
2413
|
}, [
|
|
2414
2414
|
y,
|
|
2415
2415
|
s,
|
|
@@ -2422,7 +2422,7 @@ function Lu(e) {
|
|
|
2422
2422
|
let F = C && Object.keys(b).length >= Object.keys(V).length ? C : E, Z = (m) => {
|
|
2423
2423
|
if (e.isDisabled || e.isReadOnly) return;
|
|
2424
2424
|
let w = Object.keys(b), j = Object.keys(V);
|
|
2425
|
-
m == null ? (S(null), T(X(e.placeholderValue, s, y, D)), _({})) : w.length >= j.length || w.length === j.length - 1 && V.dayPeriod && !b.dayPeriod && q.current !== "dayPeriod" ? (m =
|
|
2425
|
+
m == null ? (S(null), T(X(e.placeholderValue, s, y, D)), _({})) : w.length >= j.length || w.length === j.length - 1 && V.dayPeriod && !b.dayPeriod && q.current !== "dayPeriod" ? (m = ee(m, (l == null ? void 0 : l.calendar) || new Dt()), S(m)) : T(m), q.current = null;
|
|
2426
2426
|
}, K = P(() => F.toDate(g), [
|
|
2427
2427
|
F,
|
|
2428
2428
|
g
|
|
@@ -2459,7 +2459,7 @@ function Lu(e) {
|
|
|
2459
2459
|
n,
|
|
2460
2460
|
c,
|
|
2461
2461
|
k
|
|
2462
|
-
]), L =
|
|
2462
|
+
]), L = Et({
|
|
2463
2463
|
...e,
|
|
2464
2464
|
value: A,
|
|
2465
2465
|
builtinValidation: R
|
|
@@ -2596,13 +2596,13 @@ function ie(e, a, u) {
|
|
|
2596
2596
|
case "month":
|
|
2597
2597
|
return {
|
|
2598
2598
|
value: e.month,
|
|
2599
|
-
minValue:
|
|
2599
|
+
minValue: pt(e),
|
|
2600
2600
|
maxValue: e.calendar.getMonthsInYear(e)
|
|
2601
2601
|
};
|
|
2602
2602
|
case "day":
|
|
2603
2603
|
return {
|
|
2604
2604
|
value: e.day,
|
|
2605
|
-
minValue:
|
|
2605
|
+
minValue: $t(e),
|
|
2606
2606
|
maxValue: e.calendar.getDaysInMonth(e)
|
|
2607
2607
|
};
|
|
2608
2608
|
}
|
|
@@ -2701,20 +2701,20 @@ function lr(e, a, u, t) {
|
|
|
2701
2701
|
}
|
|
2702
2702
|
const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__PURE__ */ xe(null), qr = /* @__PURE__ */ ue(function(a, u) {
|
|
2703
2703
|
[a, u] = Se(a, u, Gu);
|
|
2704
|
-
let { validationBehavior: t } =
|
|
2704
|
+
let { validationBehavior: t } = qu(Qu) || {};
|
|
2705
2705
|
var r, i;
|
|
2706
2706
|
let o = (i = (r = a.validationBehavior) !== null && r !== void 0 ? r : t) !== null && i !== void 0 ? i : "native", { locale: f } = te(), n = Lu({
|
|
2707
2707
|
...a,
|
|
2708
2708
|
locale: f,
|
|
2709
2709
|
createCalendar: Oe,
|
|
2710
2710
|
validationBehavior: o
|
|
2711
|
-
}), c = z(null), [l, s] =
|
|
2712
|
-
...
|
|
2711
|
+
}), c = z(null), [l, s] = Yu(!a["aria-label"] && !a["aria-labelledby"]), D = z(null), { labelProps: g, fieldProps: v, inputProps: y, descriptionProps: x, errorMessageProps: A, ...S } = nu({
|
|
2712
|
+
...Be(a),
|
|
2713
2713
|
label: s,
|
|
2714
2714
|
inputRef: D,
|
|
2715
2715
|
validationBehavior: o
|
|
2716
2716
|
}, n, c), C = Te({
|
|
2717
|
-
...
|
|
2717
|
+
...Be(a),
|
|
2718
2718
|
values: {
|
|
2719
2719
|
state: n,
|
|
2720
2720
|
isInvalid: n.isInvalid,
|
|
@@ -2745,7 +2745,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
|
|
|
2745
2745
|
}
|
|
2746
2746
|
],
|
|
2747
2747
|
[
|
|
2748
|
-
|
|
2748
|
+
nt,
|
|
2749
2749
|
{
|
|
2750
2750
|
...g,
|
|
2751
2751
|
ref: l,
|
|
@@ -2753,7 +2753,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
|
|
|
2753
2753
|
}
|
|
2754
2754
|
],
|
|
2755
2755
|
[
|
|
2756
|
-
|
|
2756
|
+
it,
|
|
2757
2757
|
{
|
|
2758
2758
|
slots: {
|
|
2759
2759
|
description: x,
|
|
@@ -2762,7 +2762,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
|
|
|
2762
2762
|
}
|
|
2763
2763
|
],
|
|
2764
2764
|
[
|
|
2765
|
-
|
|
2765
|
+
Xu,
|
|
2766
2766
|
S
|
|
2767
2767
|
]
|
|
2768
2768
|
]
|
|
@@ -2820,18 +2820,18 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
|
|
|
2820
2820
|
}, /* @__PURE__ */ O.createElement(Wu, e));
|
|
2821
2821
|
}), Wu = /* @__PURE__ */ ue((e, a) => {
|
|
2822
2822
|
let { className: u, children: t } = e, r = H(re), i = H(ve), o = r ?? i;
|
|
2823
|
-
return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(
|
|
2823
|
+
return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(et, {
|
|
2824
2824
|
...e,
|
|
2825
2825
|
ref: a,
|
|
2826
2826
|
slot: e.slot || void 0,
|
|
2827
2827
|
className: u ?? "react-aria-DateInput",
|
|
2828
2828
|
isInvalid: o.isInvalid,
|
|
2829
2829
|
isDisabled: o.isDisabled
|
|
2830
|
-
}, o.segments.map((f, n) => /* @__PURE__ */
|
|
2830
|
+
}, o.segments.map((f, n) => /* @__PURE__ */ xt(t(f), {
|
|
2831
2831
|
key: n
|
|
2832
|
-
}))), /* @__PURE__ */ O.createElement(
|
|
2832
|
+
}))), /* @__PURE__ */ O.createElement(at, null));
|
|
2833
2833
|
}), mr = /* @__PURE__ */ ue(function({ segment: a, ...u }, t) {
|
|
2834
|
-
let r = H(re), i = H(ve), o = r ?? i, f =
|
|
2834
|
+
let r = H(re), i = H(ve), o = r ?? i, f = Ju(t), { segmentProps: n } = Qt(a, o, f), { focusProps: c, isFocused: l, isFocusVisible: s } = zt(), { hoverProps: D, isHovered: g } = jt({
|
|
2835
2835
|
...u,
|
|
2836
2836
|
isDisabled: o.isDisabled || a.type === "literal"
|
|
2837
2837
|
}), { isEditable: v, ...y } = a, x = Te({
|
|
@@ -2849,7 +2849,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
|
|
|
2849
2849
|
defaultClassName: "react-aria-DateSegment"
|
|
2850
2850
|
});
|
|
2851
2851
|
return /* @__PURE__ */ O.createElement("span", {
|
|
2852
|
-
...
|
|
2852
|
+
...ae(ye(u), n, c, D),
|
|
2853
2853
|
...x,
|
|
2854
2854
|
style: n.style,
|
|
2855
2855
|
ref: f,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";require('./assets/DateRangePicker.css');const $=require("react/jsx-runtime"),s=require("react"),J=require("./clsx-C11secjj.cjs"),ee=require("./RangeCalendar-C1LFeOVk.cjs"),f=require("./DateInputDivider-3BvwXXa9.cjs"),Q=require("./FieldError-bRTpchvr.cjs"),Y=require("./Label-CNmTN1YY.cjs"),$e=require("./Text-DBHWi5gA.cjs"),A=require("./Button-DExMoP5f.cjs"),S=require("./utils-DHNZrQmj.cjs"),N=require("./Dialog-CSnN6baf.cjs"),ve=require("./FieldError-MVsU-Mgw.cjs"),me=require("./Form-BuOomA4T.cjs"),ae=require("./Group-DOpbdoAi.cjs"),oe=require("./Text-CfcjRtke.cjs"),te=require("./filterDOMProps-BS2lrgFA.cjs"),le=require("./OverlayArrow-DpZ1FqOd.cjs"),E=require("./useDateFormatter-BJBt0jk_.cjs"),L=require("./useFormValidation-BlFGdPZB.cjs"),xe=require("./useControlledState-D0L6S_5r.cjs"),he=require("./FocusScope-vcXLOQiu.cjs"),z=require("./mergeProps-B5KXZAI3.cjs"),ge=require("./scrollIntoView-joIyo-Jt.cjs"),ye=require("./useFocusWithin-CG8mAt2D.cjs"),Pe=require("./useField-D1UkzeaI.cjs"),De=require("./context-Df3XbgBG.cjs"),Ve=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),pe=require("./useFocusRing-B-A1OLhU.cjs"),Te=require("./createLucideIcon-Cg_wkoIA.cjs");function Ie(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const c=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,c.get?c:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const se=Ie(s);function Me(e){return e&&e.__esModule?e.default:e}function je(e,a,l){let c=z.$bdb11010cef70236$export$f680877a34711e37(),b=z.$bdb11010cef70236$export$f680877a34711e37(),v=z.$bdb11010cef70236$export$f680877a34711e37(),u=Ve.$fca6afa0e843324b$export$f12b703ca79dfbb1(Me(f.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:i,validationErrors:t,validationDetails:F}=a.displayValidation,{labelProps:k,fieldProps:m,descriptionProps:B,errorMessageProps:R}=Pe.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||t}),C=f.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,l),O=m["aria-labelledby"]||m.id,{locale:x}=De.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),T=a.formatValue(x,{month:"long"}),d=T?u.format("selectedDateDescription",{date:T}):"",I=ge.$ef06256079686ba0$export$f8aeda7b10753fa1(d),M=[I["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=te.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),j=s.useMemo(()=>he.$9bf71ea28793e738$export$c5251b9e124bf29(l),[l]),Z=s.useRef(!1),{focusWithinProps:p}=ye.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:P=>{let V=document.getElementById(b);if(!(V!=null&&V.contains(P.relatedTarget))){var o,y;Z.current=!1,(o=e.onBlur)===null||o===void 0||o.call(e,P),(y=e.onFocusChange)===null||y===void 0||y.call(e,!1)}},onFocusWithin:P=>{if(!Z.current){var V,o;Z.current=!0,(V=e.onFocus)===null||V===void 0||V.call(e,P),(o=e.onFocusChange)===null||o===void 0||o.call(e,!0)}}});return{groupProps:z.$3ef42575df84b30b$export$9d1611c77c2fe928(D,C,m,I,p,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":O,"aria-describedby":M,onKeyDown(P){a.isOpen||e.onKeyDown&&e.onKeyDown(P)},onKeyUp(P){a.isOpen||e.onKeyUp&&e.onKeyUp(P)}}),labelProps:{...k,onClick:()=>{j.focusFirst()}},fieldProps:{...m,id:v,[f.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":M,value:a.value,onChange:a.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:a,autoFocus:e.autoFocus,name:e.name},descriptionProps:B,errorMessageProps:R,buttonProps:{...I,id:c,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${c} ${O}`,"aria-describedby":M,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:b,"aria-labelledby":`${c} ${O}`},calendarProps:{autoFocus:!0,value:a.dateValue,onChange:a.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:a.dateValue?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" ")},isInvalid:i,validationErrors:t,validationDetails:F}}function Ze(e){return e&&e.__esModule?e.default:e}function ke(e,a,l){var c,b,v;let u=Ve.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ze(f.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:i,validationErrors:t,validationDetails:F}=a.displayValidation,{labelProps:k,fieldProps:m,descriptionProps:B,errorMessageProps:R}=Pe.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||t}),C=m["aria-labelledby"]||m.id,{locale:O}=De.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),x=a.formatValue(O,{month:"long"}),T=x?u.format("selectedRangeDescription",{startDate:x.start,endDate:x.end}):"",d=ge.$ef06256079686ba0$export$f8aeda7b10753fa1(T),I={"aria-label":u.format("startDate"),"aria-labelledby":C},M={"aria-label":u.format("endDate"),"aria-labelledby":C},D=z.$bdb11010cef70236$export$f680877a34711e37(),j=z.$bdb11010cef70236$export$f680877a34711e37(),Z=f.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,l),p=[d["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,P=s.useMemo(()=>he.$9bf71ea28793e738$export$c5251b9e124bf29(l,{accept:n=>n.id!==D}),[l,D]),V={[f.$16f0b7bb276bc17e$export$7b3062cd49e80452]:P,[f.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":p,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},o=te.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),y=s.useRef(!1),{focusWithinProps:_}=ye.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:n=>{let g=document.getElementById(j);if(!(g!=null&&g.contains(n.relatedTarget))){var w,X;y.current=!1,(w=e.onBlur)===null||w===void 0||w.call(e,n),(X=e.onFocusChange)===null||X===void 0||X.call(e,!1)}},onFocusWithin:n=>{if(!y.current){var g,w;y.current=!0,(g=e.onFocus)===null||g===void 0||g.call(e,n),(w=e.onFocusChange)===null||w===void 0||w.call(e,!0)}}}),W=s.useRef(L.$e5be200c675c3b3a$export$dad6ae84456c676a),H=s.useRef(L.$e5be200c675c3b3a$export$dad6ae84456c676a);var r,h;return{groupProps:z.$3ef42575df84b30b$export$9d1611c77c2fe928(o,Z,m,d,_,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":p,onKeyDown(n){a.isOpen||e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){a.isOpen||e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...k,onClick:()=>{P.focusFirst()}},buttonProps:{...d,id:D,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${D} ${C}`,"aria-describedby":p,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:j,"aria-labelledby":`${D} ${C}`},startFieldProps:{...I,...V,value:(r=(c=a.value)===null||c===void 0?void 0:c.start)!==null&&r!==void 0?r:null,onChange:n=>a.setDateTime("start",n),autoFocus:e.autoFocus,name:e.startName,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(n){W.current=n,a.updateValidation(L.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(n,H.current))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},endFieldProps:{...M,...V,value:(h=(b=a.value)===null||b===void 0?void 0:b.end)!==null&&h!==void 0?h:null,onChange:n=>a.setDateTime("end",n),name:e.endName,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(n){H.current=n,a.updateValidation(L.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(W.current,n))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},descriptionProps:B,errorMessageProps:R,calendarProps:{autoFocus:!0,value:!((v=a.dateRange)===null||v===void 0)&&v.start&&a.dateRange.end?a.dateRange:null,onChange:a.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:a.dateRange?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" ")},isInvalid:i,validationErrors:t,validationDetails:F}}function Be(e){let a=le.$fc909762b330b746$export$61c6a8c84e605fb6(e),[l,c]=xe.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),b=l||e.placeholderValue||null,[v,u]=f.$35a22f14a1f04b11$export$2440da353cedad43(b,e.granularity),i=l!=null?l.toDate(u??"UTC"):null,t=v==="hour"||v==="minute"||v==="second";var F;let k=(F=e.shouldCloseOnSelect)!==null&&F!==void 0?F:!0,[m,B]=s.useState(null),[R,C]=s.useState(null);if(l&&(m=l,"hour"in l&&(R=l)),b&&!(v in b))throw new Error("Invalid granularity "+v+" for value "+b.toString());let O=(l==null?void 0:l.calendar.identifier)==="gregory"&&l.era==="BC",x=s.useMemo(()=>({granularity:v,timeZone:u,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:O}),[v,e.hourCycle,e.shouldForceLeadingZeros,u,e.hideTimeZone,O]),{minValue:T,maxValue:d,isDateUnavailable:I}=e,M=s.useMemo(()=>f.$35a22f14a1f04b11$export$f18627323ab57ac0(l,T,d,I,x),[l,T,d,I,x]),D=L.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:l,builtinValidation:M}),j=D.displayValidation.isInvalid,Z=e.validationState||(j?"invalid":null),p=(o,y)=>{c("timeZone"in y?y.set(E.$11d87f3f76e88657$export$93522d1a439f3617(o)):E.$11d87f3f76e88657$export$b21e0b124e224484(o,y)),B(null),C(null),D.commitValidation()};return{...D,value:l,setValue:c,dateValue:m,timeValue:R,setDateValue:o=>{let y=typeof k=="function"?k():k;t?R||y?p(o,R||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)):B(o):(c(o),D.commitValidation()),y&&a.setOpen(!1)},setTimeValue:o=>{m&&o?p(m,o):C(o)},granularity:v,hasTime:t,...a,setOpen(o){!o&&!l&&m&&t&&p(m,R||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)),a.setOpen(o)},validationState:Z,isInvalid:j,formatValue(o,y){if(!i)return"";let _=f.$35a22f14a1f04b11$export$7e319ea407e63bc0(y,x);return new E.$fb18d541ea1ad717$export$ad991b66133851cf(o,_).format(i)},getDateFormatter(o,y){let _={...x,...y},W=f.$35a22f14a1f04b11$export$7e319ea407e63bc0({},_);return new E.$fb18d541ea1ad717$export$ad991b66133851cf(o,W)}}}function Se(e){var a,l;let c=le.$fc909762b330b746$export$61c6a8c84e605fb6(e),[b,v]=xe.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),[u,i]=s.useState(()=>b||{start:null,end:null});b==null&&u.start&&u.end&&(u={start:null,end:null},i(u));let t=b||u,F=r=>{i(r||{start:null,end:null}),K(r)?v(r):v(null)},k=(t==null?void 0:t.start)||(t==null?void 0:t.end)||e.placeholderValue||null,[m,B]=f.$35a22f14a1f04b11$export$2440da353cedad43(k,e.granularity),R=m==="hour"||m==="minute"||m==="second";var C;let O=(C=e.shouldCloseOnSelect)!==null&&C!==void 0?C:!0,[x,T]=s.useState(null),[d,I]=s.useState(null);t&&K(t)&&(x=t,"hour"in t.start&&(d=t));let M=(r,h)=>{F({start:"timeZone"in h.start?h.start.set(E.$11d87f3f76e88657$export$93522d1a439f3617(r.start)):E.$11d87f3f76e88657$export$b21e0b124e224484(r.start,h.start),end:"timeZone"in h.end?h.end.set(E.$11d87f3f76e88657$export$93522d1a439f3617(r.end)):E.$11d87f3f76e88657$export$b21e0b124e224484(r.end,h.end)}),T(null),I(null),_.commitValidation()},D=r=>{let h=typeof O=="function"?O():O;R?K(r)&&(h||d!=null&&d.start&&(d!=null&&d.end))?M(r,{start:(d==null?void 0:d.start)||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue),end:(d==null?void 0:d.end)||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)}):T(r):K(r)?(F(r),_.commitValidation()):T(r),h&&c.setOpen(!1)},j=r=>{K(x)&&K(r)?M(x,r):I(r)},Z=(t==null||(a=t.start)===null||a===void 0?void 0:a.calendar.identifier)==="gregory"&&t.start.era==="BC"||(t==null||(l=t.end)===null||l===void 0?void 0:l.calendar.identifier)==="gregory"&&t.end.era==="BC",p=s.useMemo(()=>({granularity:m,timeZone:B,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:Z}),[m,e.hourCycle,e.shouldForceLeadingZeros,B,e.hideTimeZone,Z]),{minValue:P,maxValue:V,isDateUnavailable:o}=e,y=s.useMemo(()=>f.$35a22f14a1f04b11$export$80ff8fc0ae339c13(t,P,V,o,p),[t,P,V,o,p]),_=L.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:b,name:s.useMemo(()=>[e.startName,e.endName].filter(r=>r!=null),[e.startName,e.endName]),builtinValidation:y}),W=_.displayValidation.isInvalid,H=e.validationState||(W?"invalid":null);return{..._,value:t,setValue:F,dateRange:x,timeRange:d,granularity:m,hasTime:R,setDate(r,h){var n,g;D(r==="start"?{start:h,end:(n=x==null?void 0:x.end)!==null&&n!==void 0?n:null}:{start:(g=x==null?void 0:x.start)!==null&&g!==void 0?g:null,end:h})},setTime(r,h){var n,g;j(r==="start"?{start:h,end:(n=d==null?void 0:d.end)!==null&&n!==void 0?n:null}:{start:(g=d==null?void 0:d.start)!==null&&g!==void 0?g:null,end:h})},setDateTime(r,h){var n,g;F(r==="start"?{start:h,end:(n=t==null?void 0:t.end)!==null&&n!==void 0?n:null}:{start:(g=t==null?void 0:t.start)!==null&&g!==void 0?g:null,end:h})},setDateRange:D,setTimeRange:j,...c,setOpen(r){!r&&!(t!=null&&t.start&&(t!=null&&t.end))&&K(x)&&R&&M(x,{start:(d==null?void 0:d.start)||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue),end:(d==null?void 0:d.end)||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)}),c.setOpen(r)},validationState:H,isInvalid:W,formatValue(r,h){if(!t||!t.start||!t.end)return null;let n="timeZone"in t.start?t.start.timeZone:void 0,g=e.granularity||(t.start&&"minute"in t.start?"minute":"day"),w="timeZone"in t.end?t.end.timeZone:void 0,X=e.granularity||(t.end&&"minute"in t.end?"minute":"day"),Oe=f.$35a22f14a1f04b11$export$7e319ea407e63bc0(h,{granularity:g,timeZone:n,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:t.start.calendar.identifier==="gregory"&&t.start.era==="BC"||t.end.calendar.identifier==="gregory"&&t.end.era==="BC"}),ce=t.start.toDate(n||"UTC"),ue=t.end.toDate(w||"UTC"),ie=new E.$fb18d541ea1ad717$export$ad991b66133851cf(r,Oe),de;if(n===w&&g===X&&t.start.compare(t.end)!==0){try{let U=ie.formatRangeToParts(ce,ue),re=-1;for(let q=0;q<U.length;q++){let ne=U[q];if(ne.source==="shared"&&ne.type==="literal")re=q;else if(ne.source==="endRange")break}let fe="",be="";for(let q=0;q<U.length;q++)q<re?fe+=U[q].value:q>re&&(be+=U[q].value);return{start:fe,end:be}}catch{}de=ie}else{let U=f.$35a22f14a1f04b11$export$7e319ea407e63bc0(h,{granularity:X,timeZone:w,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});de=new E.$fb18d541ea1ad717$export$ad991b66133851cf(r,U)}return{start:ie.format(ce),end:de.format(ue)}},getDateFormatter(r,h){let n={...p,...h},g=f.$35a22f14a1f04b11$export$7e319ea407e63bc0({},n);return new E.$fb18d541ea1ad717$export$ad991b66133851cf(r,g)}}}function K(e){return(e==null?void 0:e.start)!=null&&e.end!=null}const we=s.createContext(null),qe=s.createContext(null),Ee=s.createContext(null),_e=s.createContext(null),Fe=[ae.$a049562f99e7db0e$export$f9c6924e160136d1,A.$d2b4bc8c273e7be6$export$24d547caef80ccd1,A.$01b77f81d0f07f68$export$75b6ee27786ba447,oe.$514c0188e459b4c0$export$9afb8bc826b033ea],Le=s.forwardRef(function(a,l){[a,l]=S.$64fa3d84918910a7$export$29f1550f4b0d4415(a,l,we);let{validationBehavior:c}=S.$64fa3d84918910a7$export$fabf2dc03a41866e(me.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var b,v;let u=(v=(b=a.validationBehavior)!==null&&b!==void 0?b:c)!==null&&v!==void 0?v:"native",i=Be({...a,validationBehavior:u}),t=s.useRef(null),[F,k]=S.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:m,labelProps:B,fieldProps:R,buttonProps:C,dialogProps:O,calendarProps:x,descriptionProps:T,errorMessageProps:d,...I}=je({...S.$64fa3d84918910a7$export$ef03459518577ad4(a),label:k,validationBehavior:u},i,t),[M,D]=s.useState(null),j=s.useCallback(()=>{t.current&&D(t.current.offsetWidth+"px")},[]);le.$9daab02d461809db$export$683480f191c0e3ea({ref:t,onResize:j});let{focusProps:Z,isFocused:p,isFocusVisible:P}=pe.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),V=S.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:i,isFocusWithin:p,isFocusVisible:P,isDisabled:a.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DatePicker"}),o=te.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a);return delete o.id,s.createElement(S.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Ee,i],[ae.$a049562f99e7db0e$export$f9c6924e160136d1,{...m,ref:t,isInvalid:i.isInvalid}],[f.$40825cdb76e74f70$export$7b3e670c86da5fe8,R],[A.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...C,isPressed:i.isOpen}],[A.$01b77f81d0f07f68$export$75b6ee27786ba447,{...B,ref:F,elementType:"span"}],[ee.$dfd62f934fc76fed$export$3b805cea1f178355,x],[N.$de32f1b87079253c$export$d2f961adcb0afbe,i],[N.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DatePicker",triggerRef:t,placement:"bottom start",style:{"--trigger-width":M},clearContexts:Fe}],[N.$de32f1b87079253c$export$8b93a07348a7730c,O],[oe.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:T,errorMessage:d}}],[ve.$ee014567cb39d3f0$export$ff05c3ac10437e03,I]]},s.createElement("div",{...Z,...o,...V,ref:l,slot:a.slot||void 0,"data-focus-within":p||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":P||void 0,"data-disabled":a.isDisabled||void 0,"data-open":i.isOpen||void 0}))}),We=s.forwardRef(function(a,l){[a,l]=S.$64fa3d84918910a7$export$29f1550f4b0d4415(a,l,qe);let{validationBehavior:c}=S.$64fa3d84918910a7$export$fabf2dc03a41866e(me.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var b,v;let u=(v=(b=a.validationBehavior)!==null&&b!==void 0?b:c)!==null&&v!==void 0?v:"native",i=Se({...a,validationBehavior:u}),t=s.useRef(null),[F,k]=S.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:m,labelProps:B,startFieldProps:R,endFieldProps:C,buttonProps:O,dialogProps:x,calendarProps:T,descriptionProps:d,errorMessageProps:I,...M}=ke({...S.$64fa3d84918910a7$export$ef03459518577ad4(a),label:k,validationBehavior:u},i,t),[D,j]=s.useState(null),Z=s.useCallback(()=>{t.current&&j(t.current.offsetWidth+"px")},[]);le.$9daab02d461809db$export$683480f191c0e3ea({ref:t,onResize:Z});let{focusProps:p,isFocused:P,isFocusVisible:V}=pe.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),o=S.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:i,isFocusWithin:P,isFocusVisible:V,isDisabled:a.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DateRangePicker"}),y=te.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a);return delete y.id,s.createElement(S.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[_e,i],[ae.$a049562f99e7db0e$export$f9c6924e160136d1,{...m,ref:t,isInvalid:i.isInvalid}],[A.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...O,isPressed:i.isOpen}],[A.$01b77f81d0f07f68$export$75b6ee27786ba447,{...B,ref:F,elementType:"span"}],[ee.$dfd62f934fc76fed$export$233dd9682e1ad64b,T],[N.$de32f1b87079253c$export$d2f961adcb0afbe,i],[N.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DateRangePicker",triggerRef:t,placement:"bottom start",style:{"--trigger-width":D},clearContexts:Fe}],[N.$de32f1b87079253c$export$8b93a07348a7730c,x],[f.$40825cdb76e74f70$export$7b3e670c86da5fe8,{slots:{start:R,end:C}}],[oe.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:d,errorMessage:I}}],[ve.$ee014567cb39d3f0$export$ff05c3ac10437e03,M]]},s.createElement("div",{...p,...y,...o,ref:l,slot:a.slot||void 0,"data-focus-within":P||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":V||void 0,"data-disabled":a.isDisabled||void 0,"data-open":i.isOpen||void 0}))});/**
|
|
2
|
+
* @license lucide-react v0.453.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const Ne=Te.createLucideIcon("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),Ue="_datePicker_1ro4s_4",Ke="_inputField_1ro4s_11",ze="_medium_1ro4s_23",Ge="_calendarButton_1ro4s_50",Ae="_dialog_1ro4s_97",G={datePicker:Ue,inputField:Ke,medium:ze,calendarButton:Ge,dialog:Ae},Re=({children:e,isDisabled:a,isInvalid:l,size:c="large"})=>$.jsxs(ae.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{className:J.clsx(G.inputField,{[G.medium]:c==="medium"}),children:[e,$.jsx(A.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{className:J.clsx(G.calendarButton,{[G.medium]:c==="medium"}),"data-invalid":l||void 0,isDisabled:a,children:$.jsx(Ne,{"aria-hidden":!0,size:20})})]}),Ce=se.forwardRef(({children:e},a)=>$.jsx(N.$07b14b47974efb58$export$5b6b19405a83ff9d,{UNSTABLE_portalContainer:typeof a!="function"&&(a==null?void 0:a.current)||void 0,children:$.jsx(N.$de32f1b87079253c$export$3ddf2d174ce01153,{className:G.dialog,children:e})})),Xe=({className:e,description:a,errorMessage:l,errorPosition:c="top",label:b,popover:v,...u})=>{const i=se.useRef(null);return $.jsxs(Le,{className:J.clsx(G.datePicker,e),ref:i,...u,children:[$.jsx(Y.LabelWrapper,{popover:v,children:b&&$.jsx(Y.Label,{children:b})}),a&&$.jsx($e.Text,{slot:"description",children:a}),c==="top"&&$.jsx(Q.FieldError,{children:l}),$.jsx(Re,{...u,children:$.jsx(f.DateInput,{children:t=>$.jsx(f.DateSegment,{segment:t})})}),c==="bottom"&&$.jsx(Q.FieldError,{children:l}),$.jsx(Ce,{ref:i,children:$.jsx(ee.Calendar,{})})]})},He=({className:e,description:a,errorMessage:l,errorPosition:c="top",label:b,popover:v,...u})=>{const i=se.useRef(null);return $.jsxs(We,{className:J.clsx(G.datePicker,e),ref:i,...u,children:[$.jsx(Y.LabelWrapper,{popover:v,children:b&&$.jsx(Y.Label,{children:b})}),a&&$.jsx($e.Text,{slot:"description",children:a}),c==="top"&&$.jsx(Q.FieldError,{children:l}),$.jsxs(Re,{...u,children:[$.jsx(f.DateInput,{slot:"start",children:t=>$.jsx(f.DateSegment,{segment:t})}),$.jsx(f.DateInputDivider,{}),$.jsx(f.DateInput,{slot:"end",children:t=>$.jsx(f.DateSegment,{segment:t})})]}),c==="bottom"&&$.jsx(Q.FieldError,{children:l}),$.jsx(Ce,{ref:i,children:$.jsx(ee.RangeCalendar,{})})]})};exports.DatePicker=Xe;exports.DateRangePicker=He;
|