@easypost/easy-ui 1.0.0-alpha.60 → 1.0.0-alpha.62
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/Badge/index.js +14 -14
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +5 -5
- package/Banner/index.mjs +5 -5
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +12 -0
- package/Calendar/CalendarCell.d.ts.map +1 -1
- package/Calendar/index.js +2 -40
- package/Calendar/index.mjs +2 -40
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +14 -14
- package/CodeBlock/index.mjs +16 -16
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +69 -68
- package/DataGrid/index.mjs +75 -74
- package/DatePicker/DateField.d.ts +14 -0
- package/DatePicker/DateField.d.ts.map +1 -0
- package/DatePicker/DatePicker.d.ts +91 -0
- package/DatePicker/DatePicker.d.ts.map +1 -0
- package/DatePicker/DatePicker.stories.d.ts +14 -0
- package/DatePicker/DatePicker.stories.d.ts.map +1 -0
- package/DatePicker/DatePicker.test.d.ts +2 -0
- package/DatePicker/DatePicker.test.d.ts.map +1 -0
- package/DatePicker/DatePickerBase.d.ts +32 -0
- package/DatePicker/DatePickerBase.d.ts.map +1 -0
- package/DatePicker/DatePickerOverlay.d.ts +12 -0
- package/DatePicker/DatePickerOverlay.d.ts.map +1 -0
- package/DatePicker/DatePickerTrigger.d.ts +20 -0
- package/DatePicker/DatePickerTrigger.d.ts.map +1 -0
- package/DatePicker/index.d.ts +2 -0
- package/DatePicker/index.d.ts.map +1 -0
- package/DatePicker/index.js +275 -0
- package/DatePicker/index.mjs +275 -0
- package/DateRangePicker/DateRangePicker.d.ts +89 -0
- package/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/DateRangePicker/DateRangePicker.stories.d.ts +14 -0
- package/DateRangePicker/DateRangePicker.stories.d.ts.map +1 -0
- package/DateRangePicker/DateRangePicker.test.d.ts +2 -0
- package/DateRangePicker/DateRangePicker.test.d.ts.map +1 -0
- package/DateRangePicker/index.d.ts +2 -0
- package/DateRangePicker/index.d.ts.map +1 -0
- package/DateRangePicker/index.js +434 -0
- package/DateRangePicker/index.mjs +434 -0
- package/Drawer/index.js +25 -24
- package/Drawer/index.mjs +22 -21
- package/DropdownButton/index.js +13 -13
- package/DropdownButton/index.mjs +13 -13
- package/EmptyStateCard/index.js +8 -8
- package/EmptyStateCard/index.mjs +8 -8
- package/FocusedProductLayout/index.js +25 -78
- package/FocusedProductLayout/index.mjs +24 -61
- package/ForgeLayout/ForgeLayout.d.ts +14 -22
- package/ForgeLayout/ForgeLayout.d.ts.map +1 -1
- package/ForgeLayout/ForgeLayout.stories.d.ts.map +1 -1
- package/ForgeLayout/ForgeLayoutControls.d.ts +38 -0
- package/ForgeLayout/ForgeLayoutControls.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayoutHeader.d.ts +18 -0
- package/ForgeLayout/ForgeLayoutHeader.d.ts.map +1 -0
- package/ForgeLayout/index.js +426 -62
- package/ForgeLayout/index.mjs +429 -65
- package/FormLayout/index.js +5 -5
- package/FormLayout/index.mjs +5 -5
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +13 -13
- package/IconButton/index.mjs +13 -13
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +26 -25
- package/Modal/index.mjs +23 -22
- package/NexusLayout/index.js +30 -30
- package/NexusLayout/index.mjs +32 -32
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +8 -8
- package/Pagination/index.mjs +8 -8
- package/PillGroup/index.js +17 -16
- package/PillGroup/index.mjs +25 -24
- package/ProductLayout/index.js +28 -27
- package/ProductLayout/index.mjs +26 -25
- package/Provider/index.js +2 -2
- package/Provider/index.mjs +2 -2
- package/RadioButtonGroup/index.js +5 -5
- package/RadioButtonGroup/index.mjs +8 -8
- package/RadioGroup/index.js +3 -332
- package/RadioGroup/index.mjs +3 -332
- package/RangeCalendar/RangeCalendar.test.d.ts +2 -1
- package/RangeCalendar/RangeCalendar.test.d.ts.map +1 -1
- package/RangeCalendar/index.js +2 -226
- package/RangeCalendar/index.mjs +2 -226
- package/SearchNav/index.js +50 -86
- package/SearchNav/index.mjs +50 -86
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +8 -7
- package/Select/index.mjs +6 -5
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +4 -4
- package/TabPanels/index.mjs +10 -10
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +2 -43
- package/TextField/index.mjs +2 -43
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +25 -25
- package/VerticalNav/index.mjs +28 -28
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/ArrowBack-BFS-tCpV.mjs +41 -0
- package/__chunks__/ArrowBack-C_LSatif.js +57 -0
- package/__chunks__/{Button-D8vjHIx8.js → Button-BvLvcmfd.js} +7 -3
- package/__chunks__/{Button-D0YAQvKG.mjs → Button-CDRssWxC.mjs} +13 -9
- package/__chunks__/{Button-bGGT-c6v.mjs → Button-D7ivIUf4.mjs} +18 -18
- package/__chunks__/{Button-DuqSI9GS.js → Button-Dcxti-xS.js} +18 -18
- package/__chunks__/Calendar-D9bC6_UA.js +41 -0
- package/__chunks__/Calendar-WxiJzkoO.mjs +42 -0
- package/__chunks__/{CalendarBase-CiBPzvL4.js → CalendarBase-BYEUj-DL.js} +97 -25
- package/__chunks__/{CalendarBase-DbXh9rhk.mjs → CalendarBase-B_2qDiO8.mjs} +104 -32
- package/__chunks__/{Card-93kQP9IL.js → Card-B0ACXPm1.js} +12 -12
- package/__chunks__/{Card-DdHvpDEw.mjs → Card-CwZYA0Rd.mjs} +12 -12
- package/__chunks__/{Checkbox-MbPCVxqs.js → Checkbox-CO5WIkp8.js} +22 -22
- package/__chunks__/{Checkbox-BRrfKcFE.mjs → Checkbox-DGX3jXaj.mjs} +24 -24
- package/__chunks__/{CodeSnippet-D9ZZXVs3.js → CodeSnippet-CY3KR9Ex.js} +2 -2
- package/__chunks__/{CodeSnippet-xb-psm_O.mjs → CodeSnippet-DIWeGxFL.mjs} +2 -2
- package/__chunks__/DatePickerBase-BP_jPq4G.mjs +3152 -0
- package/__chunks__/DatePickerBase-C6kR9zvT.js +3166 -0
- package/__chunks__/{FocusScope-Co1hHX8R.js → FocusScope-DFE0IeGl.js} +1 -1
- package/__chunks__/{FocusScope-CEeqhVmO.mjs → FocusScope-Qg8vUhZ_.mjs} +5 -5
- package/__chunks__/{HelpMenu-CCHBb1Kr.mjs → HelpMenu-QryDILTE.mjs} +7 -7
- package/__chunks__/{HelpMenu-E6z6tRl8.js → HelpMenu-nmkAgUqs.js} +7 -7
- package/__chunks__/{HorizontalGrid-vw7R2Tld.mjs → HorizontalGrid-CX45xj2U.mjs} +1 -1
- package/__chunks__/{HorizontalGrid-B7ijxURd.js → HorizontalGrid-cSfGLAIn.js} +1 -1
- package/__chunks__/{HorizontalStack-Dx9zYaH0.mjs → HorizontalStack-CdtNq_TW.mjs} +1 -1
- package/__chunks__/{HorizontalStack-1g4N72TF.js → HorizontalStack-D4ecxt6R.js} +1 -1
- package/__chunks__/{Icon-QGDwoR1f.mjs → Icon-BNi1LKXX.mjs} +2 -2
- package/__chunks__/{Icon-oPEVg2C8.js → Icon-Pxk1cmPj.js} +2 -2
- package/__chunks__/InputCaption-BzH_oClR.js +60 -0
- package/__chunks__/InputCaption-DaOqqN-Z.mjs +61 -0
- package/__chunks__/{InputField-BI73lSp6.mjs → InputField-0omK7H0I.mjs} +11 -10
- package/__chunks__/{InputField-BGBRvVMR.js → InputField-Blilgkum.js} +9 -8
- package/__chunks__/InputIcon-CUhKpP7V.mjs +112 -0
- package/__chunks__/InputIcon-DGOX-4el.js +111 -0
- package/__chunks__/{KebabButton-DBLcfQI6.mjs → KebabButton-CrkSDYoR.mjs} +5 -5
- package/__chunks__/{KebabButton-C15-V-k2.js → KebabButton-DH5KZwlY.js} +5 -5
- package/__chunks__/{LiveAnnouncer-Bi_Y3tfX.mjs → LiveAnnouncer-BSV5-C0m.mjs} +5 -1
- package/__chunks__/{LiveAnnouncer-Dwkwacle.js → LiveAnnouncer-CzeNwq2D.js} +4 -0
- package/__chunks__/{Menu-BELtbX2b.mjs → Menu-CbEch8RV.mjs} +23 -21
- package/__chunks__/{Menu-Cuqxc1iw.js → Menu-D8tCyOf5.js} +36 -34
- package/__chunks__/{Notification-lqESwByD.mjs → Notification-BS8B_D0s.mjs} +20 -20
- package/__chunks__/{Notification-D90-75ZN.js → Notification-COhKVqOV.js} +17 -17
- package/__chunks__/{Spinner-D3LMSY80.js → NumberFormatter-CXW1Iqpu.js} +1 -79
- package/__chunks__/{Spinner-tHEG0z1g.mjs → NumberFormatter-p5KNJNTT.mjs} +1 -79
- package/__chunks__/{Overlay-ZinDp2HW.js → Overlay-Dmwy9VjC.js} +59 -3
- package/__chunks__/{Overlay-CuhLUuXt.mjs → Overlay-DyfvFsGi.mjs} +64 -8
- package/__chunks__/RadioGroup-CCObCqda.js +333 -0
- package/__chunks__/RadioGroup-DZxaIqD6.mjs +334 -0
- package/__chunks__/RangeCalendar-CPEW2_Ij.mjs +228 -0
- package/__chunks__/RangeCalendar-V_YZXfhI.js +227 -0
- package/__chunks__/Search-BY7IgEyX.js +57 -0
- package/__chunks__/Search-Cyblmqo5.mjs +41 -0
- package/__chunks__/{SelectOverlay-pFcbx7UM.js → SelectOverlay-CvCbJFfX.js} +38 -36
- package/__chunks__/{SelectOverlay-CadnQpV0.mjs → SelectOverlay-DdC6a9yW.mjs} +36 -34
- package/__chunks__/{SelectionManager-IO4G_cI2.mjs → SelectionManager-DCO_d3m1.mjs} +2 -2
- package/__chunks__/{SelectorErrorTooltip-Cfzpo7X3.js → SelectorErrorTooltip-BK76kp1j.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-CFlgzXu5.mjs → SelectorErrorTooltip-Cja4A8Yq.mjs} +4 -4
- package/__chunks__/Spinner-BOumHc9g.js +100 -0
- package/__chunks__/Spinner-D5Cnx9wv.mjs +101 -0
- package/__chunks__/{Stepper-B0w3sKYh.mjs → Stepper-B4VoJaxe.mjs} +28 -28
- package/__chunks__/{Stepper-Bbihngk4.js → Stepper-CZsNTl_A.js} +26 -26
- package/__chunks__/{TabNav-2W0d3JQ0.mjs → TabNav-C0dTC1c_.mjs} +1 -1
- package/__chunks__/{TabNav-BHETvib0.js → TabNav-DFFWhGpM.js} +1 -1
- package/__chunks__/{Tabs-9dihRp0n.js → Tabs-DbfPjHiY.js} +17 -17
- package/__chunks__/{Tabs-C-D794Gi.mjs → Tabs-MBY9JDS4.mjs} +19 -19
- package/__chunks__/{Text-CEI17LPu.js → Text-Bbhl1fdd.js} +34 -34
- package/__chunks__/{Text-D8wg72pq.mjs → Text-tpkE6IlH.mjs} +34 -34
- package/__chunks__/TextField-B57OAIEI.mjs +45 -0
- package/__chunks__/TextField-Mi3s9lvx.js +44 -0
- package/__chunks__/{Toggle-DlIBs_Za.mjs → Toggle-CHcQwbtX.mjs} +14 -14
- package/__chunks__/{Toggle-4oQhSggV.js → Toggle-Ctc8EPUL.js} +12 -12
- package/__chunks__/{Tooltip-7wXzqEZl.js → Tooltip-Cf1iqjg9.js} +11 -11
- package/__chunks__/{Tooltip-Cxv7qnVD.mjs → Tooltip-DdaxfuX_.mjs} +13 -13
- package/__chunks__/{UnstyledButton-B7BScs8i.mjs → UnstyledButton-CrSLb-W8.mjs} +2 -2
- package/__chunks__/{UnstyledButton-Dn8KZHdh.js → UnstyledButton-DfjYrePV.js} +1 -1
- package/__chunks__/{VerticalStack-BTB8fX9P.js → VerticalStack-BkqSVZuy.js} +3 -3
- package/__chunks__/{VerticalStack-HnwP17N3.mjs → VerticalStack-CeDKl8Ee.mjs} +3 -3
- package/__chunks__/{VisuallyHidden-BttNIgVC.mjs → VisuallyHidden-BC5PXI9q.mjs} +2 -2
- package/__chunks__/{ariaHideOutside-DNGR3Fo6.js → ariaHideOutside-B6WqGXJj.js} +1 -25
- package/__chunks__/{ariaHideOutside-DcIkumuG.mjs → ariaHideOutside-CxWZQtI1.mjs} +5 -29
- package/__chunks__/{context-DEwqildc.mjs → context-BZCcafjG.mjs} +1 -1
- package/__chunks__/{context-C6CFGY_J.js → context-CYcq9Zvo.js} +12 -0
- package/__chunks__/{context-CgOWZch5.mjs → context-EpOG85wC.mjs} +13 -1
- package/__chunks__/{focusSafely-Dw7K4rnX.mjs → focusSafely-BWGCG3W3.mjs} +3 -3
- package/__chunks__/{focusSafely-sLifanM7.js → focusSafely-BvrXUhlW.js} +1 -1
- package/__chunks__/{isVirtualEvent-BFRy7P_p.mjs → isVirtualEvent-BPCuFO54.mjs} +2 -2
- package/__chunks__/{mergeProps-T961Q1yJ.mjs → mergeProps-DSi85raC.mjs} +4 -4
- package/__chunks__/{scrollIntoView-GfnXaOCE.mjs → scrollIntoView-CZM0k-rp.mjs} +1 -1
- package/__chunks__/{useButton-B1CurEpI.mjs → useButton-BK6hwK02.mjs} +3 -3
- package/__chunks__/{useButton-DvulUoU2.js → useButton-DZ0C3d-K.js} +2 -2
- package/__chunks__/useCollator-B-keb3wA.mjs +13 -0
- package/__chunks__/useCollator-DGrSWVh4.js +12 -0
- package/__chunks__/{useDialog-DAYxqkKY.mjs → useDialog-c-C07qhw.mjs} +5 -29
- package/__chunks__/{useDialog-Dsqz1M_N.js → useDialog-wy_ru95P.js} +3 -27
- package/__chunks__/{useEdgeInterceptors-BCHFmpf_.js → useEdgeInterceptors-CnwnUfBU.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-CVxwDmQ0.mjs → useEdgeInterceptors-ax9tmtdh.mjs} +5 -5
- package/__chunks__/{useEvent-C5RCZjKr.mjs → useEvent-B0fsKtsf.mjs} +1 -1
- package/__chunks__/{useField-DWmSslhe.mjs → useField-B6VplZ_n.mjs} +2 -2
- package/__chunks__/{useFocus-DDj4i8Xy.mjs → useFocus-BJ7JikEx.mjs} +2 -2
- package/__chunks__/{useFocusRing-BE_dgxH5.mjs → useFocusRing-YOWeCHgO.mjs} +3 -3
- package/__chunks__/{useFocusVisible-CXSIZSY_.mjs → useFocusVisible-ng1Hn25t.mjs} +2 -2
- package/__chunks__/{useFocusWithin-CDX8m0Wu.mjs → useFocusWithin-B-vQAW9V.mjs} +1 -1
- package/__chunks__/{useFocusable-BfXLORiH.js → useFocusable-8kJcp2yc.js} +5 -5
- package/__chunks__/{useFocusable-DD5dAIXt.mjs → useFocusable-CNor_Zjt.mjs} +4 -4
- package/__chunks__/{useFormReset-CmXMJVpO.mjs → useFormReset-DA1Lwdha.mjs} +1 -1
- package/__chunks__/{useFormValidation-C2DoIczP.js → useFormValidation-DYz5WFze.js} +22 -0
- package/__chunks__/{useFormValidation-gwcVryr8.mjs → useFormValidation-v2O6VL2V.mjs} +26 -4
- package/__chunks__/{useHasTabbableChild-CRCY1COZ.mjs → useHasTabbableChild-BKgmY6ej.mjs} +2 -2
- package/__chunks__/{useHasTabbableChild-C34XhtMr.js → useHasTabbableChild-Cs10TUUE.js} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-CsB-ufoX.js → useHighlightSelectionDescription-CT5XKTz0.js} +2 -2
- package/__chunks__/{useHighlightSelectionDescription-DnW5KkSs.mjs → useHighlightSelectionDescription-Cebr-N8X.mjs} +4 -4
- package/__chunks__/{useLabel-C0Q8946u.mjs → useLabel-D37VV43W.mjs} +2 -2
- package/__chunks__/{useLabels-Bly436JP.mjs → useLabels-5f58TiCH.mjs} +1 -1
- package/__chunks__/{useLink-BOdtE_Mk.js → useLink-DSnaSTQf.js} +2 -2
- package/__chunks__/{useLink-B__d3N9L.mjs → useLink-xdTgcuUM.mjs} +3 -3
- package/__chunks__/{useListState-CH1PXfc5.mjs → useListState-AFrlkW73.mjs} +1 -1
- package/__chunks__/{useLocalizedStringFormatter-B5ons_mh.mjs → useLocalizedStringFormatter-BHXy3Wtu.mjs} +5 -2
- package/__chunks__/{useLocalizedStringFormatter-D74_5d4h.js → useLocalizedStringFormatter-CaF1VsOH.js} +3 -0
- package/__chunks__/useModalOverlay-BljLSPJ0.js +47 -0
- package/__chunks__/useModalOverlay-S0R2uVTX.mjs +48 -0
- package/__chunks__/useObjectRef-BOGMJ5vM.js +18 -0
- package/__chunks__/useObjectRef-wU82Pkgx.mjs +19 -0
- package/__chunks__/{useOverlayPosition-B31NgShQ.mjs → useOverlayPosition-BjK7cu6U.mjs} +4 -4
- package/__chunks__/{useOverlayPosition-ucZjuzzI.js → useOverlayPosition-CMvGmqVL.js} +1 -1
- package/__chunks__/useOverlayTrigger-DDcXdZOM.mjs +28 -0
- package/__chunks__/useOverlayTrigger-Dp7RXQ9B.js +27 -0
- package/__chunks__/{usePress-Dz8YYpge.js → usePress-DNETV97g.js} +2 -3
- package/__chunks__/{usePress-lFMUra6S.mjs → usePress-Db4pSZfY.mjs} +3 -4
- package/__chunks__/{useSelectableItem-BdD2_J2D.mjs → useSelectableItem-D61t76J1.mjs} +10 -10
- package/__chunks__/{useSelectableItem-BGvBbIwY.js → useSelectableItem-DpEX9QBc.js} +4 -4
- package/__chunks__/{useSelectableList-D0uxeze4.mjs → useSelectableList-BdG5I7cy.mjs} +4 -14
- package/__chunks__/{useSelectableList-DlkRkps4.js → useSelectableList-UkBCcTuC.js} +3 -13
- package/__chunks__/{useSingleSelectListState-BuqfjUxj.mjs → useSingleSelectListState-DuCUY6dR.mjs} +1 -1
- package/__chunks__/{useToggle-b0GY9dCM.mjs → useToggle-BDx-p-Zv.mjs} +4 -4
- package/__chunks__/{useToggle-D7gzXCXF.js → useToggle-BfpHeO2F.js} +2 -2
- package/__chunks__/{useTreeState-BZxhJy4m.mjs → useTreeState-w_raYfy2.mjs} +1 -1
- package/__chunks__/{useTriggerWidth-DEToHKD3.mjs → useTriggerWidth-CRz8zSDa.mjs} +6 -335
- package/__chunks__/{useTriggerWidth-C7OT3WI9.js → useTriggerWidth-Dj7C0lza.js} +4 -333
- package/__chunks__/utilities-CaBPUKEB.js +353 -0
- package/__chunks__/utilities-DASknbaa.mjs +354 -0
- package/__chunks__/{utils-XuD3IFpv.mjs → utils-D4ddhsBL.mjs} +58 -21
- package/__chunks__/{utils-DXO9zsKE.js → utils-DIF5XAA2.js} +55 -18
- package/package.json +1 -1
- package/style.css +1851 -1635
- package/__chunks__/InputIcon-BGgFAA4L.mjs +0 -168
- package/__chunks__/InputIcon-CUOJRoq8.js +0 -167
- package/__chunks__/useSyncRef-CPg4onT-.js +0 -13
- package/__chunks__/useSyncRef-CpaiKz0R.mjs +0 -14
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import React__default, { useState, useMemo, useRef } from "react";
|
|
21
|
+
import { R as RangeCalendar } from "../__chunks__/RangeCalendar-CPEW2_Ij.mjs";
|
|
22
|
+
import { $ as $35a22f14a1f04b11$export$2440da353cedad43, a as $35a22f14a1f04b11$export$80ff8fc0ae339c13, b as $35a22f14a1f04b11$export$c5221a78ef73c5e9, c as $35a22f14a1f04b11$export$7e319ea407e63bc0, d as $3dfb0f96be0d6a08$export$4a931266a3838b86, e as $16f0b7bb276bc17e$export$7b3062cd49e80452, f as $16f0b7bb276bc17e$export$300019f83c56d282, g as $dfb4eba373ed9493$exports, D as DatePickerBase } from "../__chunks__/DatePickerBase-BP_jPq4G.mjs";
|
|
23
|
+
import { m as $fb18d541ea1ad717$export$ad991b66133851cf, d as $11d87f3f76e88657$export$93522d1a439f3617, n as $11d87f3f76e88657$export$b21e0b124e224484 } from "../__chunks__/CalendarBase-B_2qDiO8.mjs";
|
|
24
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e5be200c675c3b3a$export$dad6ae84456c676a, b as $e5be200c675c3b3a$export$a763b9476acd3eb, c as $e5be200c675c3b3a$export$75ee7c75d68f5b0e } from "../__chunks__/useFormValidation-v2O6VL2V.mjs";
|
|
25
|
+
import { c as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../__chunks__/Overlay-DyfvFsGi.mjs";
|
|
26
|
+
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../__chunks__/useControlledState-CFWhSD5C.mjs";
|
|
27
|
+
import { a as $9bf71ea28793e738$export$c5251b9e124bf29 } from "../__chunks__/FocusScope-Qg8vUhZ_.mjs";
|
|
28
|
+
import { c as $bdb11010cef70236$export$f680877a34711e37, $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-DSi85raC.mjs";
|
|
29
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../__chunks__/filterDOMProps-EDDcM64A.mjs";
|
|
30
|
+
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "../__chunks__/scrollIntoView-CZM0k-rp.mjs";
|
|
31
|
+
import { $ as $2baaea4c71418dea$export$294aa081a6c6f55d } from "../__chunks__/useField-B6VplZ_n.mjs";
|
|
32
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "../__chunks__/useFocusWithin-B-vQAW9V.mjs";
|
|
33
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../__chunks__/context-BZCcafjG.mjs";
|
|
34
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../__chunks__/useLocalizedStringFormatter-BHXy3Wtu.mjs";
|
|
35
|
+
function $93c38a5e28be6249$export$e50a61c1de9f574(props) {
|
|
36
|
+
var _value_start, _value_end;
|
|
37
|
+
let overlayState = $fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
38
|
+
let [controlledValue, setControlledValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || null, props.onChange);
|
|
39
|
+
let [placeholderValue, setPlaceholderValue] = useState(() => controlledValue || {
|
|
40
|
+
start: null,
|
|
41
|
+
end: null
|
|
42
|
+
});
|
|
43
|
+
if (controlledValue == null && placeholderValue.start && placeholderValue.end) {
|
|
44
|
+
placeholderValue = {
|
|
45
|
+
start: null,
|
|
46
|
+
end: null
|
|
47
|
+
};
|
|
48
|
+
setPlaceholderValue(placeholderValue);
|
|
49
|
+
}
|
|
50
|
+
let value = controlledValue || placeholderValue;
|
|
51
|
+
let setValue = (value2) => {
|
|
52
|
+
setPlaceholderValue(value2 || {
|
|
53
|
+
start: null,
|
|
54
|
+
end: null
|
|
55
|
+
});
|
|
56
|
+
if ($93c38a5e28be6249$var$isCompleteRange(value2)) setControlledValue(value2);
|
|
57
|
+
else setControlledValue(null);
|
|
58
|
+
};
|
|
59
|
+
let v = (value === null || value === void 0 ? void 0 : value.start) || (value === null || value === void 0 ? void 0 : value.end) || props.placeholderValue || null;
|
|
60
|
+
let [granularity, defaultTimeZone] = $35a22f14a1f04b11$export$2440da353cedad43(v, props.granularity);
|
|
61
|
+
let hasTime = granularity === "hour" || granularity === "minute" || granularity === "second";
|
|
62
|
+
var _props_shouldCloseOnSelect;
|
|
63
|
+
let shouldCloseOnSelect = (_props_shouldCloseOnSelect = props.shouldCloseOnSelect) !== null && _props_shouldCloseOnSelect !== void 0 ? _props_shouldCloseOnSelect : true;
|
|
64
|
+
let [dateRange, setSelectedDateRange] = useState(null);
|
|
65
|
+
let [timeRange, setSelectedTimeRange] = useState(null);
|
|
66
|
+
if (value && $93c38a5e28be6249$var$isCompleteRange(value)) {
|
|
67
|
+
dateRange = value;
|
|
68
|
+
if ("hour" in value.start) timeRange = value;
|
|
69
|
+
}
|
|
70
|
+
let commitValue = (dateRange2, timeRange2) => {
|
|
71
|
+
setValue({
|
|
72
|
+
start: "timeZone" in timeRange2.start ? timeRange2.start.set($11d87f3f76e88657$export$93522d1a439f3617(dateRange2.start)) : $11d87f3f76e88657$export$b21e0b124e224484(dateRange2.start, timeRange2.start),
|
|
73
|
+
end: "timeZone" in timeRange2.end ? timeRange2.end.set($11d87f3f76e88657$export$93522d1a439f3617(dateRange2.end)) : $11d87f3f76e88657$export$b21e0b124e224484(dateRange2.end, timeRange2.end)
|
|
74
|
+
});
|
|
75
|
+
setSelectedDateRange(null);
|
|
76
|
+
setSelectedTimeRange(null);
|
|
77
|
+
validation.commitValidation();
|
|
78
|
+
};
|
|
79
|
+
let setDateRange = (range) => {
|
|
80
|
+
let shouldClose = typeof shouldCloseOnSelect === "function" ? shouldCloseOnSelect() : shouldCloseOnSelect;
|
|
81
|
+
if (hasTime) {
|
|
82
|
+
if ($93c38a5e28be6249$var$isCompleteRange(range) && (timeRange === null || timeRange === void 0 ? void 0 : timeRange.start) && (timeRange === null || timeRange === void 0 ? void 0 : timeRange.end)) commitValue(range, {
|
|
83
|
+
start: (timeRange === null || timeRange === void 0 ? void 0 : timeRange.start) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(props.placeholderValue),
|
|
84
|
+
end: (timeRange === null || timeRange === void 0 ? void 0 : timeRange.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(props.placeholderValue)
|
|
85
|
+
});
|
|
86
|
+
else setSelectedDateRange(range);
|
|
87
|
+
} else if ($93c38a5e28be6249$var$isCompleteRange(range)) {
|
|
88
|
+
setValue(range);
|
|
89
|
+
validation.commitValidation();
|
|
90
|
+
} else setSelectedDateRange(range);
|
|
91
|
+
if (shouldClose) overlayState.setOpen(false);
|
|
92
|
+
};
|
|
93
|
+
let setTimeRange = (range) => {
|
|
94
|
+
if ($93c38a5e28be6249$var$isCompleteRange(dateRange) && $93c38a5e28be6249$var$isCompleteRange(range)) commitValue(dateRange, range);
|
|
95
|
+
else setSelectedTimeRange(range);
|
|
96
|
+
};
|
|
97
|
+
let showEra = (value === null || value === void 0 ? void 0 : (_value_start = value.start) === null || _value_start === void 0 ? void 0 : _value_start.calendar.identifier) === "gregory" && value.start.era === "BC" || (value === null || value === void 0 ? void 0 : (_value_end = value.end) === null || _value_end === void 0 ? void 0 : _value_end.calendar.identifier) === "gregory" && value.end.era === "BC";
|
|
98
|
+
let formatOpts = useMemo(() => ({
|
|
99
|
+
granularity,
|
|
100
|
+
timeZone: defaultTimeZone,
|
|
101
|
+
hideTimeZone: props.hideTimeZone,
|
|
102
|
+
hourCycle: props.hourCycle,
|
|
103
|
+
shouldForceLeadingZeros: props.shouldForceLeadingZeros,
|
|
104
|
+
showEra
|
|
105
|
+
}), [
|
|
106
|
+
granularity,
|
|
107
|
+
props.hourCycle,
|
|
108
|
+
props.shouldForceLeadingZeros,
|
|
109
|
+
defaultTimeZone,
|
|
110
|
+
props.hideTimeZone,
|
|
111
|
+
showEra
|
|
112
|
+
]);
|
|
113
|
+
let { minValue, maxValue, isDateUnavailable } = props;
|
|
114
|
+
let builtinValidation = useMemo(() => $35a22f14a1f04b11$export$80ff8fc0ae339c13(value, minValue, maxValue, isDateUnavailable, formatOpts), [
|
|
115
|
+
value,
|
|
116
|
+
minValue,
|
|
117
|
+
maxValue,
|
|
118
|
+
isDateUnavailable,
|
|
119
|
+
formatOpts
|
|
120
|
+
]);
|
|
121
|
+
let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10(__spreadProps(__spreadValues({}, props), {
|
|
122
|
+
value: controlledValue,
|
|
123
|
+
name: useMemo(() => [
|
|
124
|
+
props.startName,
|
|
125
|
+
props.endName
|
|
126
|
+
].filter((n) => n != null), [
|
|
127
|
+
props.startName,
|
|
128
|
+
props.endName
|
|
129
|
+
]),
|
|
130
|
+
builtinValidation
|
|
131
|
+
}));
|
|
132
|
+
let isValueInvalid = validation.displayValidation.isInvalid;
|
|
133
|
+
let validationState = props.validationState || (isValueInvalid ? "invalid" : null);
|
|
134
|
+
return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, validation), {
|
|
135
|
+
value,
|
|
136
|
+
setValue,
|
|
137
|
+
dateRange,
|
|
138
|
+
timeRange,
|
|
139
|
+
granularity,
|
|
140
|
+
hasTime,
|
|
141
|
+
setDate(part, date) {
|
|
142
|
+
var _dateRange_end, _dateRange_start;
|
|
143
|
+
if (part === "start") setDateRange({
|
|
144
|
+
start: date,
|
|
145
|
+
end: (_dateRange_end = dateRange === null || dateRange === void 0 ? void 0 : dateRange.end) !== null && _dateRange_end !== void 0 ? _dateRange_end : null
|
|
146
|
+
});
|
|
147
|
+
else setDateRange({
|
|
148
|
+
start: (_dateRange_start = dateRange === null || dateRange === void 0 ? void 0 : dateRange.start) !== null && _dateRange_start !== void 0 ? _dateRange_start : null,
|
|
149
|
+
end: date
|
|
150
|
+
});
|
|
151
|
+
},
|
|
152
|
+
setTime(part, time) {
|
|
153
|
+
var _timeRange_end, _timeRange_start;
|
|
154
|
+
if (part === "start") setTimeRange({
|
|
155
|
+
start: time,
|
|
156
|
+
end: (_timeRange_end = timeRange === null || timeRange === void 0 ? void 0 : timeRange.end) !== null && _timeRange_end !== void 0 ? _timeRange_end : null
|
|
157
|
+
});
|
|
158
|
+
else setTimeRange({
|
|
159
|
+
start: (_timeRange_start = timeRange === null || timeRange === void 0 ? void 0 : timeRange.start) !== null && _timeRange_start !== void 0 ? _timeRange_start : null,
|
|
160
|
+
end: time
|
|
161
|
+
});
|
|
162
|
+
},
|
|
163
|
+
setDateTime(part, dateTime) {
|
|
164
|
+
var _value_end2, _value_start2;
|
|
165
|
+
if (part === "start") setValue({
|
|
166
|
+
start: dateTime,
|
|
167
|
+
end: (_value_end2 = value === null || value === void 0 ? void 0 : value.end) !== null && _value_end2 !== void 0 ? _value_end2 : null
|
|
168
|
+
});
|
|
169
|
+
else setValue({
|
|
170
|
+
start: (_value_start2 = value === null || value === void 0 ? void 0 : value.start) !== null && _value_start2 !== void 0 ? _value_start2 : null,
|
|
171
|
+
end: dateTime
|
|
172
|
+
});
|
|
173
|
+
},
|
|
174
|
+
setDateRange,
|
|
175
|
+
setTimeRange
|
|
176
|
+
}), overlayState), {
|
|
177
|
+
setOpen(isOpen) {
|
|
178
|
+
if (!isOpen && !((value === null || value === void 0 ? void 0 : value.start) && (value === null || value === void 0 ? void 0 : value.end)) && $93c38a5e28be6249$var$isCompleteRange(dateRange) && hasTime) commitValue(dateRange, {
|
|
179
|
+
start: (timeRange === null || timeRange === void 0 ? void 0 : timeRange.start) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(props.placeholderValue),
|
|
180
|
+
end: (timeRange === null || timeRange === void 0 ? void 0 : timeRange.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(props.placeholderValue)
|
|
181
|
+
});
|
|
182
|
+
overlayState.setOpen(isOpen);
|
|
183
|
+
},
|
|
184
|
+
validationState,
|
|
185
|
+
isInvalid: isValueInvalid,
|
|
186
|
+
formatValue(locale, fieldOptions) {
|
|
187
|
+
if (!value || !value.start || !value.end) return null;
|
|
188
|
+
let startTimeZone = "timeZone" in value.start ? value.start.timeZone : void 0;
|
|
189
|
+
let startGranularity = props.granularity || (value.start && "minute" in value.start ? "minute" : "day");
|
|
190
|
+
let endTimeZone = "timeZone" in value.end ? value.end.timeZone : void 0;
|
|
191
|
+
let endGranularity = props.granularity || (value.end && "minute" in value.end ? "minute" : "day");
|
|
192
|
+
let startOptions = $35a22f14a1f04b11$export$7e319ea407e63bc0(fieldOptions, {
|
|
193
|
+
granularity: startGranularity,
|
|
194
|
+
timeZone: startTimeZone,
|
|
195
|
+
hideTimeZone: props.hideTimeZone,
|
|
196
|
+
hourCycle: props.hourCycle,
|
|
197
|
+
showEra: value.start.calendar.identifier === "gregory" && value.start.era === "BC" || value.end.calendar.identifier === "gregory" && value.end.era === "BC"
|
|
198
|
+
});
|
|
199
|
+
let startDate = value.start.toDate(startTimeZone || "UTC");
|
|
200
|
+
let endDate = value.end.toDate(endTimeZone || "UTC");
|
|
201
|
+
let startFormatter = new $fb18d541ea1ad717$export$ad991b66133851cf(locale, startOptions);
|
|
202
|
+
let endFormatter;
|
|
203
|
+
if (startTimeZone === endTimeZone && startGranularity === endGranularity && value.start.compare(value.end) !== 0) {
|
|
204
|
+
try {
|
|
205
|
+
let parts = startFormatter.formatRangeToParts(startDate, endDate);
|
|
206
|
+
let separatorIndex = -1;
|
|
207
|
+
for (let i = 0; i < parts.length; i++) {
|
|
208
|
+
let part = parts[i];
|
|
209
|
+
if (part.source === "shared" && part.type === "literal") separatorIndex = i;
|
|
210
|
+
else if (part.source === "endRange") break;
|
|
211
|
+
}
|
|
212
|
+
let start = "";
|
|
213
|
+
let end = "";
|
|
214
|
+
for (let i = 0; i < parts.length; i++) {
|
|
215
|
+
if (i < separatorIndex) start += parts[i].value;
|
|
216
|
+
else if (i > separatorIndex) end += parts[i].value;
|
|
217
|
+
}
|
|
218
|
+
return {
|
|
219
|
+
start,
|
|
220
|
+
end
|
|
221
|
+
};
|
|
222
|
+
} catch (e) {
|
|
223
|
+
}
|
|
224
|
+
endFormatter = startFormatter;
|
|
225
|
+
} else {
|
|
226
|
+
let endOptions = $35a22f14a1f04b11$export$7e319ea407e63bc0(fieldOptions, {
|
|
227
|
+
granularity: endGranularity,
|
|
228
|
+
timeZone: endTimeZone,
|
|
229
|
+
hideTimeZone: props.hideTimeZone,
|
|
230
|
+
hourCycle: props.hourCycle
|
|
231
|
+
});
|
|
232
|
+
endFormatter = new $fb18d541ea1ad717$export$ad991b66133851cf(locale, endOptions);
|
|
233
|
+
}
|
|
234
|
+
return {
|
|
235
|
+
start: startFormatter.format(startDate),
|
|
236
|
+
end: endFormatter.format(endDate)
|
|
237
|
+
};
|
|
238
|
+
},
|
|
239
|
+
getDateFormatter(locale, formatOptions) {
|
|
240
|
+
let newOptions = __spreadValues(__spreadValues({}, formatOpts), formatOptions);
|
|
241
|
+
let newFormatOptions = $35a22f14a1f04b11$export$7e319ea407e63bc0({}, newOptions);
|
|
242
|
+
return new $fb18d541ea1ad717$export$ad991b66133851cf(locale, newFormatOptions);
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
function $93c38a5e28be6249$var$isCompleteRange(value) {
|
|
247
|
+
return (value === null || value === void 0 ? void 0 : value.start) != null && value.end != null;
|
|
248
|
+
}
|
|
249
|
+
function $parcel$interopDefault(a) {
|
|
250
|
+
return a && a.__esModule ? a.default : a;
|
|
251
|
+
}
|
|
252
|
+
function $887cac91b7cc8801$export$12fd5f0e9f4bb192(props, state, ref) {
|
|
253
|
+
var _state_value, _state_value1, _state_dateRange;
|
|
254
|
+
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($dfb4eba373ed9493$exports), "@react-aria/datepicker");
|
|
255
|
+
let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
|
|
256
|
+
let { labelProps, fieldProps, descriptionProps, errorMessageProps } = $2baaea4c71418dea$export$294aa081a6c6f55d(__spreadProps(__spreadValues({}, props), {
|
|
257
|
+
labelElementType: "span",
|
|
258
|
+
isInvalid,
|
|
259
|
+
errorMessage: props.errorMessage || validationErrors
|
|
260
|
+
}));
|
|
261
|
+
let labelledBy = fieldProps["aria-labelledby"] || fieldProps.id;
|
|
262
|
+
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
263
|
+
let range = state.formatValue(locale, {
|
|
264
|
+
month: "long"
|
|
265
|
+
});
|
|
266
|
+
let description = range ? stringFormatter.format("selectedRangeDescription", {
|
|
267
|
+
startDate: range.start,
|
|
268
|
+
endDate: range.end
|
|
269
|
+
}) : "";
|
|
270
|
+
let descProps = $ef06256079686ba0$export$f8aeda7b10753fa1(description);
|
|
271
|
+
let startFieldProps = {
|
|
272
|
+
"aria-label": stringFormatter.format("startDate"),
|
|
273
|
+
"aria-labelledby": labelledBy
|
|
274
|
+
};
|
|
275
|
+
let endFieldProps = {
|
|
276
|
+
"aria-label": stringFormatter.format("endDate"),
|
|
277
|
+
"aria-labelledby": labelledBy
|
|
278
|
+
};
|
|
279
|
+
let buttonId = $bdb11010cef70236$export$f680877a34711e37();
|
|
280
|
+
let dialogId = $bdb11010cef70236$export$f680877a34711e37();
|
|
281
|
+
let groupProps = $3dfb0f96be0d6a08$export$4a931266a3838b86(state, ref);
|
|
282
|
+
let ariaDescribedBy = [
|
|
283
|
+
descProps["aria-describedby"],
|
|
284
|
+
fieldProps["aria-describedby"]
|
|
285
|
+
].filter(Boolean).join(" ") || void 0;
|
|
286
|
+
let focusManager = useMemo(() => $9bf71ea28793e738$export$c5251b9e124bf29(ref, {
|
|
287
|
+
// Exclude the button from the focus manager.
|
|
288
|
+
accept: (element) => element.id !== buttonId
|
|
289
|
+
}), [
|
|
290
|
+
ref,
|
|
291
|
+
buttonId
|
|
292
|
+
]);
|
|
293
|
+
let commonFieldProps = {
|
|
294
|
+
[$16f0b7bb276bc17e$export$7b3062cd49e80452]: focusManager,
|
|
295
|
+
[$16f0b7bb276bc17e$export$300019f83c56d282]: "presentation",
|
|
296
|
+
"aria-describedby": ariaDescribedBy,
|
|
297
|
+
placeholderValue: props.placeholderValue,
|
|
298
|
+
hideTimeZone: props.hideTimeZone,
|
|
299
|
+
hourCycle: props.hourCycle,
|
|
300
|
+
granularity: props.granularity,
|
|
301
|
+
shouldForceLeadingZeros: props.shouldForceLeadingZeros,
|
|
302
|
+
isDisabled: props.isDisabled,
|
|
303
|
+
isReadOnly: props.isReadOnly,
|
|
304
|
+
isRequired: props.isRequired,
|
|
305
|
+
validationBehavior: props.validationBehavior
|
|
306
|
+
};
|
|
307
|
+
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
|
|
308
|
+
let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec(__spreadProps(__spreadValues({}, props), {
|
|
309
|
+
isDisabled: state.isOpen,
|
|
310
|
+
onBlurWithin: props.onBlur,
|
|
311
|
+
onFocusWithin: props.onFocus,
|
|
312
|
+
onFocusWithinChange: props.onFocusChange
|
|
313
|
+
}));
|
|
314
|
+
let startFieldValidation = useRef($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
315
|
+
let endFieldValidation = useRef($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
316
|
+
var _state_value_start, _state_value_end;
|
|
317
|
+
return {
|
|
318
|
+
groupProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, groupProps, fieldProps, descProps, focusWithinProps, {
|
|
319
|
+
role: "group",
|
|
320
|
+
"aria-disabled": props.isDisabled || null,
|
|
321
|
+
"aria-describedby": ariaDescribedBy,
|
|
322
|
+
onKeyDown(e) {
|
|
323
|
+
if (state.isOpen) return;
|
|
324
|
+
if (props.onKeyDown) props.onKeyDown(e);
|
|
325
|
+
},
|
|
326
|
+
onKeyUp(e) {
|
|
327
|
+
if (state.isOpen) return;
|
|
328
|
+
if (props.onKeyUp) props.onKeyUp(e);
|
|
329
|
+
}
|
|
330
|
+
}),
|
|
331
|
+
labelProps: __spreadProps(__spreadValues({}, labelProps), {
|
|
332
|
+
onClick: () => {
|
|
333
|
+
focusManager.focusFirst();
|
|
334
|
+
}
|
|
335
|
+
}),
|
|
336
|
+
buttonProps: __spreadProps(__spreadValues({}, descProps), {
|
|
337
|
+
id: buttonId,
|
|
338
|
+
"aria-haspopup": "dialog",
|
|
339
|
+
"aria-label": stringFormatter.format("calendar"),
|
|
340
|
+
"aria-labelledby": `${buttonId} ${labelledBy}`,
|
|
341
|
+
"aria-describedby": ariaDescribedBy,
|
|
342
|
+
"aria-expanded": state.isOpen,
|
|
343
|
+
isDisabled: props.isDisabled || props.isReadOnly,
|
|
344
|
+
onPress: () => state.setOpen(true)
|
|
345
|
+
}),
|
|
346
|
+
dialogProps: {
|
|
347
|
+
id: dialogId,
|
|
348
|
+
"aria-labelledby": `${buttonId} ${labelledBy}`
|
|
349
|
+
},
|
|
350
|
+
startFieldProps: __spreadProps(__spreadValues(__spreadValues({}, startFieldProps), commonFieldProps), {
|
|
351
|
+
value: (_state_value_start = (_state_value = state.value) === null || _state_value === void 0 ? void 0 : _state_value.start) !== null && _state_value_start !== void 0 ? _state_value_start : null,
|
|
352
|
+
onChange: (start) => state.setDateTime("start", start),
|
|
353
|
+
autoFocus: props.autoFocus,
|
|
354
|
+
name: props.startName,
|
|
355
|
+
[$e5be200c675c3b3a$export$a763b9476acd3eb]: {
|
|
356
|
+
realtimeValidation: state.realtimeValidation,
|
|
357
|
+
displayValidation: state.displayValidation,
|
|
358
|
+
updateValidation(e) {
|
|
359
|
+
startFieldValidation.current = e;
|
|
360
|
+
state.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e, endFieldValidation.current));
|
|
361
|
+
},
|
|
362
|
+
resetValidation: state.resetValidation,
|
|
363
|
+
commitValidation: state.commitValidation
|
|
364
|
+
}
|
|
365
|
+
}),
|
|
366
|
+
endFieldProps: __spreadProps(__spreadValues(__spreadValues({}, endFieldProps), commonFieldProps), {
|
|
367
|
+
value: (_state_value_end = (_state_value1 = state.value) === null || _state_value1 === void 0 ? void 0 : _state_value1.end) !== null && _state_value_end !== void 0 ? _state_value_end : null,
|
|
368
|
+
onChange: (end) => state.setDateTime("end", end),
|
|
369
|
+
name: props.endName,
|
|
370
|
+
[$e5be200c675c3b3a$export$a763b9476acd3eb]: {
|
|
371
|
+
realtimeValidation: state.realtimeValidation,
|
|
372
|
+
displayValidation: state.displayValidation,
|
|
373
|
+
updateValidation(e) {
|
|
374
|
+
endFieldValidation.current = e;
|
|
375
|
+
state.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(startFieldValidation.current, e));
|
|
376
|
+
},
|
|
377
|
+
resetValidation: state.resetValidation,
|
|
378
|
+
commitValidation: state.commitValidation
|
|
379
|
+
}
|
|
380
|
+
}),
|
|
381
|
+
descriptionProps,
|
|
382
|
+
errorMessageProps,
|
|
383
|
+
calendarProps: {
|
|
384
|
+
autoFocus: true,
|
|
385
|
+
value: ((_state_dateRange = state.dateRange) === null || _state_dateRange === void 0 ? void 0 : _state_dateRange.start) && state.dateRange.end ? state.dateRange : null,
|
|
386
|
+
onChange: state.setDateRange,
|
|
387
|
+
minValue: props.minValue,
|
|
388
|
+
maxValue: props.maxValue,
|
|
389
|
+
isDisabled: props.isDisabled,
|
|
390
|
+
isReadOnly: props.isReadOnly,
|
|
391
|
+
isDateUnavailable: props.isDateUnavailable,
|
|
392
|
+
allowsNonContiguousRanges: props.allowsNonContiguousRanges,
|
|
393
|
+
defaultFocusedValue: state.dateRange ? void 0 : props.placeholderValue,
|
|
394
|
+
isInvalid: state.isInvalid,
|
|
395
|
+
errorMessage: typeof props.errorMessage === "function" ? props.errorMessage(state.displayValidation) : props.errorMessage || state.displayValidation.validationErrors.join(" ")
|
|
396
|
+
},
|
|
397
|
+
isInvalid,
|
|
398
|
+
validationErrors,
|
|
399
|
+
validationDetails
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
function DateRangePicker(props) {
|
|
403
|
+
const { label, size = "md", isDisabled, isInvalid, errorMessage, "aria-label": ariaLabel } = props;
|
|
404
|
+
const datePickerRef = React__default.useRef(null);
|
|
405
|
+
const state = $93c38a5e28be6249$export$e50a61c1de9f574(props);
|
|
406
|
+
const { groupProps, labelProps, startFieldProps, endFieldProps, buttonProps, dialogProps, calendarProps } = $887cac91b7cc8801$export$12fd5f0e9f4bb192(props, state, datePickerRef);
|
|
407
|
+
const triggerProps = {
|
|
408
|
+
datePickerRef,
|
|
409
|
+
buttonProps,
|
|
410
|
+
groupProps,
|
|
411
|
+
startFieldProps,
|
|
412
|
+
endFieldProps,
|
|
413
|
+
isDisabled,
|
|
414
|
+
size,
|
|
415
|
+
isInvalid,
|
|
416
|
+
errorMessage: errorMessage || calendarProps.errorMessage
|
|
417
|
+
};
|
|
418
|
+
const overlayProps = {
|
|
419
|
+
dialogProps
|
|
420
|
+
};
|
|
421
|
+
return React__default.createElement(DatePickerBase, {
|
|
422
|
+
labelProps,
|
|
423
|
+
triggerProps,
|
|
424
|
+
overlayProps,
|
|
425
|
+
state,
|
|
426
|
+
label,
|
|
427
|
+
"aria-label": ariaLabel
|
|
428
|
+
}, React__default.createElement(RangeCalendar, __spreadProps(__spreadValues({}, calendarProps), {
|
|
429
|
+
isInvalid: false
|
|
430
|
+
})));
|
|
431
|
+
}
|
|
432
|
+
export {
|
|
433
|
+
DateRangePicker
|
|
434
|
+
};
|
package/Drawer/index.js
CHANGED
|
@@ -34,14 +34,15 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
34
34
|
const React = require("react");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
36
|
const utilities_useScrollbar = require("../utilities/useScrollbar.js");
|
|
37
|
-
const Icon = require("../__chunks__/Icon-
|
|
38
|
-
const Text = require("../__chunks__/Text-
|
|
39
|
-
const
|
|
40
|
-
const Overlay = require("../__chunks__/Overlay-
|
|
37
|
+
const Icon = require("../__chunks__/Icon-Pxk1cmPj.js");
|
|
38
|
+
const Text = require("../__chunks__/Text-Bbhl1fdd.js");
|
|
39
|
+
const useModalOverlay = require("../__chunks__/useModalOverlay-BljLSPJ0.js");
|
|
40
|
+
const Overlay = require("../__chunks__/Overlay-Dmwy9VjC.js");
|
|
41
41
|
const objectWithoutPropertiesLoose = require("../__chunks__/objectWithoutPropertiesLoose-3GpnIKeG.js");
|
|
42
42
|
const _commonjsHelpers = require("../__chunks__/_commonjsHelpers-Bc2YnDe1.js");
|
|
43
43
|
const ReactDOM = require("react-dom");
|
|
44
|
-
const
|
|
44
|
+
const useOverlayTrigger = require("../__chunks__/useOverlayTrigger-Dp7RXQ9B.js");
|
|
45
|
+
const useDialog = require("../__chunks__/useDialog-wy_ru95P.js");
|
|
45
46
|
function _interopNamespaceDefault(e) {
|
|
46
47
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
47
48
|
if (e) {
|
|
@@ -59,22 +60,22 @@ function _interopNamespaceDefault(e) {
|
|
|
59
60
|
return Object.freeze(n);
|
|
60
61
|
}
|
|
61
62
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
62
|
-
const underlayBg = "
|
|
63
|
-
const underlayBgEnter = "
|
|
64
|
-
const underlayBgEnterDone = "
|
|
65
|
-
const underlayBgExit = "
|
|
66
|
-
const underlayBox = "
|
|
67
|
-
const underlayBoxAppear = "
|
|
68
|
-
const underlayBoxAppearDone = "
|
|
69
|
-
const underlayBoxExit = "
|
|
70
|
-
const Drawer$1 = "
|
|
71
|
-
const header = "
|
|
72
|
-
const stuck = "
|
|
73
|
-
const banner = "
|
|
74
|
-
const body = "
|
|
75
|
-
const closeButton = "
|
|
76
|
-
const banneredContentArea = "
|
|
77
|
-
const standaloneContentArea = "
|
|
63
|
+
const underlayBg = "_underlayBg_1ms1c_5";
|
|
64
|
+
const underlayBgEnter = "_underlayBgEnter_1ms1c_33";
|
|
65
|
+
const underlayBgEnterDone = "_underlayBgEnterDone_1ms1c_37";
|
|
66
|
+
const underlayBgExit = "_underlayBgExit_1ms1c_42";
|
|
67
|
+
const underlayBox = "_underlayBox_1ms1c_47";
|
|
68
|
+
const underlayBoxAppear = "_underlayBoxAppear_1ms1c_58";
|
|
69
|
+
const underlayBoxAppearDone = "_underlayBoxAppearDone_1ms1c_62";
|
|
70
|
+
const underlayBoxExit = "_underlayBoxExit_1ms1c_66";
|
|
71
|
+
const Drawer$1 = "_Drawer_1ms1c_70";
|
|
72
|
+
const header = "_header_1ms1c_87";
|
|
73
|
+
const stuck = "_stuck_1ms1c_90";
|
|
74
|
+
const banner = "_banner_1ms1c_94";
|
|
75
|
+
const body = "_body_1ms1c_100";
|
|
76
|
+
const closeButton = "_closeButton_1ms1c_117";
|
|
77
|
+
const banneredContentArea = "_banneredContentArea_1ms1c_132";
|
|
78
|
+
const standaloneContentArea = "_standaloneContentArea_1ms1c_136";
|
|
78
79
|
const styles = {
|
|
79
80
|
underlayBg,
|
|
80
81
|
underlayBgEnter,
|
|
@@ -1875,7 +1876,7 @@ function DrawerUnderlay(props) {
|
|
|
1875
1876
|
const { isDismissable = true } = overlayProps;
|
|
1876
1877
|
const ref = React.useRef(null);
|
|
1877
1878
|
const underlayBgRef = React.useRef(null);
|
|
1878
|
-
const { modalProps, underlayProps } =
|
|
1879
|
+
const { modalProps, underlayProps } = useModalOverlay.$8ac8429251c45e4b$export$dbc0f175b25fb0fb(__spreadProps(__spreadValues({}, overlayProps), {
|
|
1879
1880
|
isDismissable,
|
|
1880
1881
|
isKeyboardDismissDisabled: !isDismissable
|
|
1881
1882
|
}), state, ref);
|
|
@@ -1943,7 +1944,7 @@ function DrawerContainer(props) {
|
|
|
1943
1944
|
}
|
|
1944
1945
|
}
|
|
1945
1946
|
});
|
|
1946
|
-
const { overlayProps } =
|
|
1947
|
+
const { overlayProps } = useOverlayTrigger.$628037886ba31236$export$f9d5c8beee7d008d({
|
|
1947
1948
|
type: "dialog"
|
|
1948
1949
|
}, state);
|
|
1949
1950
|
const [animationExited, setAnimationExited] = React.useState(!state.isOpen);
|
|
@@ -1990,7 +1991,7 @@ function DrawerTitle(props) {
|
|
|
1990
1991
|
function DrawerTrigger(props) {
|
|
1991
1992
|
const _a = props, { children, isDismissable = true } = _a, inTriggerProps = __objRest(_a, ["children", "isDismissable"]);
|
|
1992
1993
|
const state = Overlay.$fc909762b330b746$export$61c6a8c84e605fb6(inTriggerProps);
|
|
1993
|
-
const { triggerProps, overlayProps } =
|
|
1994
|
+
const { triggerProps, overlayProps } = useOverlayTrigger.$628037886ba31236$export$f9d5c8beee7d008d({
|
|
1994
1995
|
type: "dialog"
|
|
1995
1996
|
}, state);
|
|
1996
1997
|
const [animationExited, setAnimationExited] = React.useState(!state.isOpen);
|
package/Drawer/index.mjs
CHANGED
|
@@ -33,30 +33,31 @@ import * as React from "react";
|
|
|
33
33
|
import React__default, { createContext, useContext, useCallback, useState, useMemo, cloneElement, useEffect, useRef } from "react";
|
|
34
34
|
import { classNames } from "../utilities/css.mjs";
|
|
35
35
|
import { useScrollbar } from "../utilities/useScrollbar.mjs";
|
|
36
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
37
|
-
import { T as Text } from "../__chunks__/Text-
|
|
38
|
-
import { $ as $8ac8429251c45e4b$export$dbc0f175b25fb0fb
|
|
39
|
-
import {
|
|
36
|
+
import { I as Icon } from "../__chunks__/Icon-BNi1LKXX.mjs";
|
|
37
|
+
import { T as Text } from "../__chunks__/Text-tpkE6IlH.mjs";
|
|
38
|
+
import { $ as $8ac8429251c45e4b$export$dbc0f175b25fb0fb } from "../__chunks__/useModalOverlay-S0R2uVTX.mjs";
|
|
39
|
+
import { d as $337b884510726a0d$export$c6fdb837b070b4ff, c as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../__chunks__/Overlay-DyfvFsGi.mjs";
|
|
40
40
|
import { _ as _objectWithoutPropertiesLoose, a as _extends } from "../__chunks__/objectWithoutPropertiesLoose-ij10PUAf.mjs";
|
|
41
41
|
import { g as getDefaultExportFromCjs } from "../__chunks__/_commonjsHelpers-DWwsNxpa.mjs";
|
|
42
42
|
import ReactDOM from "react-dom";
|
|
43
|
-
import {
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
43
|
+
import { $ as $628037886ba31236$export$f9d5c8beee7d008d } from "../__chunks__/useOverlayTrigger-DDcXdZOM.mjs";
|
|
44
|
+
import { $ as $40df3f8667284809$export$d55e7ee900f34e93 } from "../__chunks__/useDialog-c-C07qhw.mjs";
|
|
45
|
+
const underlayBg = "_underlayBg_1ms1c_5";
|
|
46
|
+
const underlayBgEnter = "_underlayBgEnter_1ms1c_33";
|
|
47
|
+
const underlayBgEnterDone = "_underlayBgEnterDone_1ms1c_37";
|
|
48
|
+
const underlayBgExit = "_underlayBgExit_1ms1c_42";
|
|
49
|
+
const underlayBox = "_underlayBox_1ms1c_47";
|
|
50
|
+
const underlayBoxAppear = "_underlayBoxAppear_1ms1c_58";
|
|
51
|
+
const underlayBoxAppearDone = "_underlayBoxAppearDone_1ms1c_62";
|
|
52
|
+
const underlayBoxExit = "_underlayBoxExit_1ms1c_66";
|
|
53
|
+
const Drawer$1 = "_Drawer_1ms1c_70";
|
|
54
|
+
const header = "_header_1ms1c_87";
|
|
55
|
+
const stuck = "_stuck_1ms1c_90";
|
|
56
|
+
const banner = "_banner_1ms1c_94";
|
|
57
|
+
const body = "_body_1ms1c_100";
|
|
58
|
+
const closeButton = "_closeButton_1ms1c_117";
|
|
59
|
+
const banneredContentArea = "_banneredContentArea_1ms1c_132";
|
|
60
|
+
const standaloneContentArea = "_standaloneContentArea_1ms1c_136";
|
|
60
61
|
const styles = {
|
|
61
62
|
underlayBg,
|
|
62
63
|
underlayBgEnter,
|
package/DropdownButton/index.js
CHANGED
|
@@ -30,20 +30,20 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
31
31
|
const ExpandMore400 = require("../__chunks__/ExpandMore400-CJpvxyJm.js");
|
|
32
32
|
const React = require("react");
|
|
33
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
34
|
-
const Icon = require("../__chunks__/Icon-
|
|
33
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-DfjYrePV.js");
|
|
34
|
+
const Icon = require("../__chunks__/Icon-Pxk1cmPj.js");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
|
-
const DropdownButton$1 = "
|
|
37
|
-
const colorPrimary = "
|
|
38
|
-
const colorSecondary = "
|
|
39
|
-
const colorSuccess = "
|
|
40
|
-
const colorWarning = "
|
|
41
|
-
const colorNeutral = "
|
|
42
|
-
const colorSupport = "
|
|
43
|
-
const colorInverse = "
|
|
44
|
-
const variantOutlined = "
|
|
45
|
-
const variantFilled = "
|
|
46
|
-
const pipeSeparator = "
|
|
36
|
+
const DropdownButton$1 = "_DropdownButton_148q4_5";
|
|
37
|
+
const colorPrimary = "_colorPrimary_148q4_26";
|
|
38
|
+
const colorSecondary = "_colorSecondary_148q4_34";
|
|
39
|
+
const colorSuccess = "_colorSuccess_148q4_42";
|
|
40
|
+
const colorWarning = "_colorWarning_148q4_50";
|
|
41
|
+
const colorNeutral = "_colorNeutral_148q4_58";
|
|
42
|
+
const colorSupport = "_colorSupport_148q4_66";
|
|
43
|
+
const colorInverse = "_colorInverse_148q4_72";
|
|
44
|
+
const variantOutlined = "_variantOutlined_148q4_78";
|
|
45
|
+
const variantFilled = "_variantFilled_148q4_107";
|
|
46
|
+
const pipeSeparator = "_pipeSeparator_148q4_134";
|
|
47
47
|
const styles = {
|
|
48
48
|
DropdownButton: DropdownButton$1,
|
|
49
49
|
colorPrimary,
|
package/DropdownButton/index.mjs
CHANGED
|
@@ -28,20 +28,20 @@ var __objRest = (source, exclude) => {
|
|
|
28
28
|
};
|
|
29
29
|
import { E as ExpandMore400 } from "../__chunks__/ExpandMore400-CH7GNxqk.mjs";
|
|
30
30
|
import React__default, { forwardRef } from "react";
|
|
31
|
-
import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/UnstyledButton-
|
|
32
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
31
|
+
import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/UnstyledButton-CrSLb-W8.mjs";
|
|
32
|
+
import { I as Icon } from "../__chunks__/Icon-BNi1LKXX.mjs";
|
|
33
33
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
34
|
-
const DropdownButton$1 = "
|
|
35
|
-
const colorPrimary = "
|
|
36
|
-
const colorSecondary = "
|
|
37
|
-
const colorSuccess = "
|
|
38
|
-
const colorWarning = "
|
|
39
|
-
const colorNeutral = "
|
|
40
|
-
const colorSupport = "
|
|
41
|
-
const colorInverse = "
|
|
42
|
-
const variantOutlined = "
|
|
43
|
-
const variantFilled = "
|
|
44
|
-
const pipeSeparator = "
|
|
34
|
+
const DropdownButton$1 = "_DropdownButton_148q4_5";
|
|
35
|
+
const colorPrimary = "_colorPrimary_148q4_26";
|
|
36
|
+
const colorSecondary = "_colorSecondary_148q4_34";
|
|
37
|
+
const colorSuccess = "_colorSuccess_148q4_42";
|
|
38
|
+
const colorWarning = "_colorWarning_148q4_50";
|
|
39
|
+
const colorNeutral = "_colorNeutral_148q4_58";
|
|
40
|
+
const colorSupport = "_colorSupport_148q4_66";
|
|
41
|
+
const colorInverse = "_colorInverse_148q4_72";
|
|
42
|
+
const variantOutlined = "_variantOutlined_148q4_78";
|
|
43
|
+
const variantFilled = "_variantFilled_148q4_107";
|
|
44
|
+
const pipeSeparator = "_pipeSeparator_148q4_134";
|
|
45
45
|
const styles = {
|
|
46
46
|
DropdownButton: DropdownButton$1,
|
|
47
47
|
colorPrimary,
|