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