@easypost/easy-ui 1.0.0-alpha.60 → 1.0.0-alpha.61

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 (243) 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 +6 -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 +13 -13
  16. package/CodeBlock/index.mjs +15 -15
  17. package/CodeSnippet/index.js +1 -1
  18. package/CodeSnippet/index.mjs +1 -1
  19. package/DataGrid/index.js +63 -62
  20. package/DataGrid/index.mjs +72 -71
  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 +22 -22
  50. package/Drawer/index.mjs +21 -21
  51. package/DropdownButton/index.js +12 -12
  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 +23 -23
  56. package/FocusedProductLayout/index.mjs +23 -23
  57. package/ForgeLayout/index.js +27 -27
  58. package/ForgeLayout/index.mjs +30 -30
  59. package/FormLayout/index.js +5 -5
  60. package/FormLayout/index.mjs +5 -5
  61. package/HorizontalGrid/index.js +1 -1
  62. package/HorizontalGrid/index.mjs +1 -1
  63. package/HorizontalStack/index.js +1 -1
  64. package/HorizontalStack/index.mjs +1 -1
  65. package/Icon/index.js +1 -1
  66. package/Icon/index.mjs +1 -1
  67. package/IconButton/index.js +12 -12
  68. package/IconButton/index.mjs +13 -13
  69. package/InputField/index.js +1 -1
  70. package/InputField/index.mjs +1 -1
  71. package/KebabButton/index.js +1 -1
  72. package/KebabButton/index.mjs +1 -1
  73. package/Menu/index.js +1 -1
  74. package/Menu/index.mjs +1 -1
  75. package/Modal/index.js +23 -23
  76. package/Modal/index.mjs +22 -22
  77. package/NexusLayout/index.js +28 -28
  78. package/NexusLayout/index.mjs +31 -31
  79. package/Notification/index.js +1 -1
  80. package/Notification/index.mjs +1 -1
  81. package/Pagination/index.js +7 -7
  82. package/Pagination/index.mjs +8 -8
  83. package/PillGroup/index.js +9 -9
  84. package/PillGroup/index.mjs +19 -19
  85. package/ProductLayout/index.js +24 -24
  86. package/ProductLayout/index.mjs +25 -25
  87. package/Provider/index.js +1 -1
  88. package/Provider/index.mjs +2 -2
  89. package/RadioButtonGroup/index.js +2 -2
  90. package/RadioButtonGroup/index.mjs +5 -5
  91. package/RadioGroup/index.js +16 -16
  92. package/RadioGroup/index.mjs +21 -21
  93. package/RangeCalendar/RangeCalendar.test.d.ts +2 -1
  94. package/RangeCalendar/RangeCalendar.test.d.ts.map +1 -1
  95. package/RangeCalendar/index.js +2 -226
  96. package/RangeCalendar/index.mjs +2 -226
  97. package/SearchNav/index.js +29 -29
  98. package/SearchNav/index.mjs +30 -30
  99. package/SectionCard/index.js +7 -7
  100. package/SectionCard/index.mjs +7 -7
  101. package/Select/index.js +7 -6
  102. package/Select/index.mjs +6 -5
  103. package/SelectorErrorTooltip/index.js +1 -1
  104. package/SelectorErrorTooltip/index.mjs +1 -1
  105. package/Spinner/index.js +1 -1
  106. package/Spinner/index.mjs +1 -1
  107. package/SplitToggleCard/index.js +4 -4
  108. package/SplitToggleCard/index.mjs +4 -4
  109. package/Stepper/index.js +1 -1
  110. package/Stepper/index.mjs +1 -1
  111. package/TabNav/index.js +1 -1
  112. package/TabNav/index.mjs +1 -1
  113. package/TabPanels/index.js +1 -1
  114. package/TabPanels/index.mjs +7 -7
  115. package/Tabs/index.js +1 -1
  116. package/Tabs/index.mjs +1 -1
  117. package/Text/index.js +1 -1
  118. package/Text/index.mjs +1 -1
  119. package/TextField/index.js +1 -1
  120. package/TextField/index.mjs +1 -1
  121. package/Textarea/index.js +1 -1
  122. package/Textarea/index.mjs +1 -1
  123. package/Toggle/index.js +1 -1
  124. package/Toggle/index.mjs +1 -1
  125. package/ToggleCard/index.js +2 -2
  126. package/ToggleCard/index.mjs +2 -2
  127. package/Tooltip/index.js +1 -1
  128. package/Tooltip/index.mjs +1 -1
  129. package/UnstyledButton/index.mjs +1 -1
  130. package/VerticalNav/index.js +24 -24
  131. package/VerticalNav/index.mjs +27 -27
  132. package/VerticalStack/index.js +1 -1
  133. package/VerticalStack/index.mjs +1 -1
  134. package/__chunks__/{Button-DuqSI9GS.js → Button-BzB8v2mS.js} +17 -17
  135. package/__chunks__/{Button-D0YAQvKG.mjs → Button-DcYNVtp7.mjs} +3 -3
  136. package/__chunks__/{Button-bGGT-c6v.mjs → Button-gxCTl22H.mjs} +18 -18
  137. package/__chunks__/{Button-D8vjHIx8.js → Button-jgkOum0d.js} +1 -1
  138. package/__chunks__/Calendar-BS8zgZK8.js +41 -0
  139. package/__chunks__/Calendar-C9hD67Rz.mjs +42 -0
  140. package/__chunks__/{CalendarBase-DbXh9rhk.mjs → CalendarBase-4iGD1mPK.mjs} +99 -27
  141. package/__chunks__/{CalendarBase-CiBPzvL4.js → CalendarBase-saNix6u1.js} +94 -22
  142. package/__chunks__/{Card-DdHvpDEw.mjs → Card-Cr-bIjoN.mjs} +12 -12
  143. package/__chunks__/{Card-93kQP9IL.js → Card-DaFTIHZD.js} +12 -12
  144. package/__chunks__/{Checkbox-BRrfKcFE.mjs → Checkbox-BR4RBHLp.mjs} +23 -23
  145. package/__chunks__/{Checkbox-MbPCVxqs.js → Checkbox-BY4UkCg7.js} +20 -20
  146. package/__chunks__/{CodeSnippet-xb-psm_O.mjs → CodeSnippet-ChZIz_CO.mjs} +2 -2
  147. package/__chunks__/{CodeSnippet-D9ZZXVs3.js → CodeSnippet-H-6ta_Y8.js} +2 -2
  148. package/__chunks__/DatePickerBase-DlbnqBLN.mjs +3152 -0
  149. package/__chunks__/DatePickerBase-vorBKIfJ.js +3166 -0
  150. package/__chunks__/{FocusScope-CEeqhVmO.mjs → FocusScope-CjcZn1Rq.mjs} +4 -4
  151. package/__chunks__/{HelpMenu-E6z6tRl8.js → HelpMenu-BzUSoyPi.js} +6 -6
  152. package/__chunks__/{HelpMenu-CCHBb1Kr.mjs → HelpMenu-yEjZgR1V.mjs} +7 -7
  153. package/__chunks__/{HorizontalGrid-B7ijxURd.js → HorizontalGrid-Bhj16LbM.js} +1 -1
  154. package/__chunks__/{HorizontalGrid-vw7R2Tld.mjs → HorizontalGrid-D4bJqbQV.mjs} +1 -1
  155. package/__chunks__/{HorizontalStack-Dx9zYaH0.mjs → HorizontalStack-BDZp8p9E.mjs} +1 -1
  156. package/__chunks__/{HorizontalStack-1g4N72TF.js → HorizontalStack-_DnrRlDb.js} +1 -1
  157. package/__chunks__/{Icon-QGDwoR1f.mjs → Icon-BdtOD2WX.mjs} +2 -2
  158. package/__chunks__/{Icon-oPEVg2C8.js → Icon-DJ8CpeVT.js} +2 -2
  159. package/__chunks__/InputCaption-BBbxPdvJ.mjs +61 -0
  160. package/__chunks__/InputCaption-CEIuQ6BY.js +60 -0
  161. package/__chunks__/{InputField-BGBRvVMR.js → InputField-BUU9HZ1I.js} +7 -6
  162. package/__chunks__/{InputField-BI73lSp6.mjs → InputField-CPxOg_cd.mjs} +8 -7
  163. package/__chunks__/InputIcon-MHt_XLtO.mjs +112 -0
  164. package/__chunks__/InputIcon-nUumrcJ5.js +111 -0
  165. package/__chunks__/{KebabButton-DBLcfQI6.mjs → KebabButton-BapJTvS6.mjs} +5 -5
  166. package/__chunks__/{KebabButton-C15-V-k2.js → KebabButton-C3KI5LDA.js} +4 -4
  167. package/__chunks__/{LiveAnnouncer-Bi_Y3tfX.mjs → LiveAnnouncer-BSV5-C0m.mjs} +5 -1
  168. package/__chunks__/{LiveAnnouncer-Dwkwacle.js → LiveAnnouncer-CzeNwq2D.js} +4 -0
  169. package/__chunks__/{Menu-Cuqxc1iw.js → Menu-CkQaJJAH.js} +31 -30
  170. package/__chunks__/{Menu-BELtbX2b.mjs → Menu-LzJveIa-.mjs} +21 -20
  171. package/__chunks__/{Notification-D90-75ZN.js → Notification-C5_bwXj4.js} +15 -15
  172. package/__chunks__/{Notification-lqESwByD.mjs → Notification-CAmvbAK1.mjs} +18 -18
  173. package/__chunks__/{Spinner-D3LMSY80.js → NumberFormatter-CXW1Iqpu.js} +1 -79
  174. package/__chunks__/{Spinner-tHEG0z1g.mjs → NumberFormatter-p5KNJNTT.mjs} +1 -79
  175. package/__chunks__/{Overlay-CuhLUuXt.mjs → Overlay-d3z5W5Nn.mjs} +6 -6
  176. package/__chunks__/RangeCalendar-5enltd2P.js +227 -0
  177. package/__chunks__/RangeCalendar-Bhk32GB_.mjs +228 -0
  178. package/__chunks__/{SelectOverlay-pFcbx7UM.js → SelectOverlay-DKJvzJJ7.js} +35 -33
  179. package/__chunks__/{SelectOverlay-CadnQpV0.mjs → SelectOverlay-MLWWpDpl.mjs} +32 -30
  180. package/__chunks__/{SelectionManager-IO4G_cI2.mjs → SelectionManager-DCO_d3m1.mjs} +2 -2
  181. package/__chunks__/{SelectorErrorTooltip-CFlgzXu5.mjs → SelectorErrorTooltip-DLyZgeUf.mjs} +4 -4
  182. package/__chunks__/{SelectorErrorTooltip-Cfzpo7X3.js → SelectorErrorTooltip-DowQ2whn.js} +4 -4
  183. package/__chunks__/Spinner-BFydR08g.js +100 -0
  184. package/__chunks__/Spinner-hJoFNoHJ.mjs +101 -0
  185. package/__chunks__/{Stepper-B0w3sKYh.mjs → Stepper-BY8zQdW2.mjs} +27 -27
  186. package/__chunks__/{Stepper-Bbihngk4.js → Stepper-CxWpMLEW.js} +25 -25
  187. package/__chunks__/{TabNav-BHETvib0.js → TabNav-1cTg6TWo.js} +1 -1
  188. package/__chunks__/{TabNav-2W0d3JQ0.mjs → TabNav-burpvHrg.mjs} +1 -1
  189. package/__chunks__/{Tabs-C-D794Gi.mjs → Tabs-BzZ9w82m.mjs} +18 -18
  190. package/__chunks__/{Tabs-9dihRp0n.js → Tabs-DHXJckwb.js} +17 -17
  191. package/__chunks__/{Text-D8wg72pq.mjs → Text-CQ_8wg0t.mjs} +34 -34
  192. package/__chunks__/{Text-CEI17LPu.js → Text-Dfbyoxsz.js} +34 -34
  193. package/__chunks__/{Toggle-DlIBs_Za.mjs → Toggle-BiaALtul.mjs} +13 -13
  194. package/__chunks__/{Toggle-4oQhSggV.js → Toggle-CYKsPbEK.js} +11 -11
  195. package/__chunks__/{Tooltip-Cxv7qnVD.mjs → Tooltip-5ZgKkdk8.mjs} +12 -12
  196. package/__chunks__/{Tooltip-7wXzqEZl.js → Tooltip-Bzqm5boz.js} +8 -8
  197. package/__chunks__/{UnstyledButton-B7BScs8i.mjs → UnstyledButton-BlB066YT.mjs} +1 -1
  198. package/__chunks__/{VerticalStack-BTB8fX9P.js → VerticalStack-_gyNJbOa.js} +3 -3
  199. package/__chunks__/{VerticalStack-HnwP17N3.mjs → VerticalStack-eKUWFHU3.mjs} +3 -3
  200. package/__chunks__/{VisuallyHidden-BttNIgVC.mjs → VisuallyHidden-DmDK0fH3.mjs} +1 -1
  201. package/__chunks__/{ariaHideOutside-DcIkumuG.mjs → ariaHideOutside-B-UoCW1g.mjs} +5 -29
  202. package/__chunks__/{ariaHideOutside-DNGR3Fo6.js → ariaHideOutside-a1MUBVQF.js} +0 -24
  203. package/__chunks__/{focusSafely-Dw7K4rnX.mjs → focusSafely-DcMa3q3g.mjs} +2 -2
  204. package/__chunks__/{isVirtualEvent-BFRy7P_p.mjs → isVirtualEvent-BPCuFO54.mjs} +2 -2
  205. package/__chunks__/{useButton-B1CurEpI.mjs → useButton-BoMy_zYC.mjs} +2 -2
  206. package/__chunks__/useCollator-DGrSWVh4.js +12 -0
  207. package/__chunks__/useCollator-DXoNI6C-.mjs +13 -0
  208. package/__chunks__/{useDialog-Dsqz1M_N.js → useDialog-DILXRLSs.js} +1 -1
  209. package/__chunks__/{useDialog-DAYxqkKY.mjs → useDialog-o0QWfg2a.mjs} +3 -3
  210. package/__chunks__/{useEdgeInterceptors-BCHFmpf_.js → useEdgeInterceptors-DfiAHAYW.js} +5 -5
  211. package/__chunks__/{useEdgeInterceptors-CVxwDmQ0.mjs → useEdgeInterceptors-wWqxCUZX.mjs} +5 -5
  212. package/__chunks__/{useFocus-DDj4i8Xy.mjs → useFocus-BEhCbr7O.mjs} +2 -2
  213. package/__chunks__/{useFocusRing-BE_dgxH5.mjs → useFocusRing-BUwbt1Yv.mjs} +3 -3
  214. package/__chunks__/{useFocusVisible-CXSIZSY_.mjs → useFocusVisible-8tH_I2iV.mjs} +1 -1
  215. package/__chunks__/{useFocusWithin-CDX8m0Wu.mjs → useFocusWithin-CfhMwfXS.mjs} +1 -1
  216. package/__chunks__/{useFocusable-DD5dAIXt.mjs → useFocusable-DoNt-Wd3.mjs} +2 -2
  217. package/__chunks__/{useFormValidation-gwcVryr8.mjs → useFormValidation-D5Y_7NR2.mjs} +25 -3
  218. package/__chunks__/{useFormValidation-C2DoIczP.js → useFormValidation-DYz5WFze.js} +22 -0
  219. package/__chunks__/{useHasTabbableChild-CRCY1COZ.mjs → useHasTabbableChild-DUcbkV37.mjs} +1 -1
  220. package/__chunks__/{useHighlightSelectionDescription-CsB-ufoX.js → useHighlightSelectionDescription-CT5XKTz0.js} +2 -2
  221. package/__chunks__/{useHighlightSelectionDescription-DnW5KkSs.mjs → useHighlightSelectionDescription-DWm7Wr6h.mjs} +3 -3
  222. package/__chunks__/{useLink-B__d3N9L.mjs → useLink-B_g4ae9e.mjs} +2 -2
  223. package/__chunks__/{useListState-CH1PXfc5.mjs → useListState-AFrlkW73.mjs} +1 -1
  224. package/__chunks__/{useLocalizedStringFormatter-B5ons_mh.mjs → useLocalizedStringFormatter-CLrYoOi9.mjs} +4 -1
  225. package/__chunks__/{useLocalizedStringFormatter-D74_5d4h.js → useLocalizedStringFormatter-CaF1VsOH.js} +3 -0
  226. package/__chunks__/{useOverlayPosition-B31NgShQ.mjs → useOverlayPosition-B_X4JGFp.mjs} +2 -2
  227. package/__chunks__/useOverlayTrigger-Do68TGFi.mjs +28 -0
  228. package/__chunks__/useOverlayTrigger-MyMg5wFE.js +27 -0
  229. package/__chunks__/{usePress-lFMUra6S.mjs → usePress-BAsZaqDB.mjs} +1 -1
  230. package/__chunks__/{useSelectableItem-BdD2_J2D.mjs → useSelectableItem-DL-4kc1g.mjs} +5 -5
  231. package/__chunks__/{useSelectableList-D0uxeze4.mjs → useSelectableList-BQ06AmlV.mjs} +4 -14
  232. package/__chunks__/{useSelectableList-DlkRkps4.js → useSelectableList-F8fB4Dtg.js} +2 -12
  233. package/__chunks__/{useSingleSelectListState-BuqfjUxj.mjs → useSingleSelectListState-DuCUY6dR.mjs} +1 -1
  234. package/__chunks__/{useToggle-b0GY9dCM.mjs → useToggle-CU6aSiOx.mjs} +2 -2
  235. package/__chunks__/{useTreeState-BZxhJy4m.mjs → useTreeState-w_raYfy2.mjs} +1 -1
  236. package/__chunks__/{useTriggerWidth-DEToHKD3.mjs → useTriggerWidth-DA668KiC.mjs} +6 -335
  237. package/__chunks__/{useTriggerWidth-C7OT3WI9.js → useTriggerWidth-ROE4ZhGv.js} +3 -332
  238. package/__chunks__/utilities-DKvHenAr.js +353 -0
  239. package/__chunks__/utilities-DmLL16up.mjs +354 -0
  240. package/package.json +1 -1
  241. package/style.css +1249 -1104
  242. package/__chunks__/InputIcon-BGgFAA4L.mjs +0 -168
  243. package/__chunks__/InputIcon-CUOJRoq8.js +0 -167
@@ -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-Bhk32GB_.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-DlbnqBLN.mjs";
23
+ import { m as $fb18d541ea1ad717$export$ad991b66133851cf, d as $11d87f3f76e88657$export$93522d1a439f3617, n as $11d87f3f76e88657$export$b21e0b124e224484 } from "../__chunks__/CalendarBase-4iGD1mPK.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-D5Y_7NR2.mjs";
25
+ import { c as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../__chunks__/Overlay-d3z5W5Nn.mjs";
26
+ import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../__chunks__/useControlledState-CFWhSD5C.mjs";
27
+ import { a as $9bf71ea28793e738$export$c5251b9e124bf29 } from "../__chunks__/FocusScope-CjcZn1Rq.mjs";
28
+ import { d as $bdb11010cef70236$export$f680877a34711e37, $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-T961Q1yJ.mjs";
29
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../__chunks__/filterDOMProps-EDDcM64A.mjs";
30
+ import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "../__chunks__/scrollIntoView-GfnXaOCE.mjs";
31
+ import { $ as $2baaea4c71418dea$export$294aa081a6c6f55d } from "../__chunks__/useField-DWmSslhe.mjs";
32
+ import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "../__chunks__/useFocusWithin-CfhMwfXS.mjs";
33
+ import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "../__chunks__/context-DEwqildc.mjs";
34
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "../__chunks__/useLocalizedStringFormatter-CLrYoOi9.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,14 @@ 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-oPEVg2C8.js");
38
- const Text = require("../__chunks__/Text-CEI17LPu.js");
39
- const useDialog = require("../__chunks__/useDialog-Dsqz1M_N.js");
37
+ const Icon = require("../__chunks__/Icon-DJ8CpeVT.js");
38
+ const Text = require("../__chunks__/Text-Dfbyoxsz.js");
39
+ const useDialog = require("../__chunks__/useDialog-DILXRLSs.js");
40
40
  const Overlay = require("../__chunks__/Overlay-ZinDp2HW.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 ariaHideOutside = require("../__chunks__/ariaHideOutside-DNGR3Fo6.js");
44
+ const useOverlayTrigger = require("../__chunks__/useOverlayTrigger-MyMg5wFE.js");
45
45
  function _interopNamespaceDefault(e) {
46
46
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
47
47
  if (e) {
@@ -59,22 +59,22 @@ function _interopNamespaceDefault(e) {
59
59
  return Object.freeze(n);
60
60
  }
61
61
  const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
62
- const underlayBg = "_underlayBg_g8mdp_5";
63
- const underlayBgEnter = "_underlayBgEnter_g8mdp_33";
64
- const underlayBgEnterDone = "_underlayBgEnterDone_g8mdp_37";
65
- const underlayBgExit = "_underlayBgExit_g8mdp_42";
66
- const underlayBox = "_underlayBox_g8mdp_47";
67
- const underlayBoxAppear = "_underlayBoxAppear_g8mdp_58";
68
- const underlayBoxAppearDone = "_underlayBoxAppearDone_g8mdp_62";
69
- const underlayBoxExit = "_underlayBoxExit_g8mdp_66";
70
- const Drawer$1 = "_Drawer_g8mdp_70";
71
- const header = "_header_g8mdp_87";
72
- const stuck = "_stuck_g8mdp_90";
73
- const banner = "_banner_g8mdp_94";
74
- const body = "_body_g8mdp_100";
75
- const closeButton = "_closeButton_g8mdp_117";
76
- const banneredContentArea = "_banneredContentArea_g8mdp_132";
77
- const standaloneContentArea = "_standaloneContentArea_g8mdp_136";
62
+ const underlayBg = "_underlayBg_1e3gg_5";
63
+ const underlayBgEnter = "_underlayBgEnter_1e3gg_33";
64
+ const underlayBgEnterDone = "_underlayBgEnterDone_1e3gg_37";
65
+ const underlayBgExit = "_underlayBgExit_1e3gg_42";
66
+ const underlayBox = "_underlayBox_1e3gg_47";
67
+ const underlayBoxAppear = "_underlayBoxAppear_1e3gg_58";
68
+ const underlayBoxAppearDone = "_underlayBoxAppearDone_1e3gg_62";
69
+ const underlayBoxExit = "_underlayBoxExit_1e3gg_66";
70
+ const Drawer$1 = "_Drawer_1e3gg_70";
71
+ const header = "_header_1e3gg_87";
72
+ const stuck = "_stuck_1e3gg_90";
73
+ const banner = "_banner_1e3gg_94";
74
+ const body = "_body_1e3gg_100";
75
+ const closeButton = "_closeButton_1e3gg_117";
76
+ const banneredContentArea = "_banneredContentArea_1e3gg_132";
77
+ const standaloneContentArea = "_standaloneContentArea_1e3gg_136";
78
78
  const styles = {
79
79
  underlayBg,
80
80
  underlayBgEnter,
@@ -1943,7 +1943,7 @@ function DrawerContainer(props) {
1943
1943
  }
1944
1944
  }
1945
1945
  });
1946
- const { overlayProps } = ariaHideOutside.$628037886ba31236$export$f9d5c8beee7d008d({
1946
+ const { overlayProps } = useOverlayTrigger.$628037886ba31236$export$f9d5c8beee7d008d({
1947
1947
  type: "dialog"
1948
1948
  }, state);
1949
1949
  const [animationExited, setAnimationExited] = React.useState(!state.isOpen);
@@ -1990,7 +1990,7 @@ function DrawerTitle(props) {
1990
1990
  function DrawerTrigger(props) {
1991
1991
  const _a = props, { children, isDismissable = true } = _a, inTriggerProps = __objRest(_a, ["children", "isDismissable"]);
1992
1992
  const state = Overlay.$fc909762b330b746$export$61c6a8c84e605fb6(inTriggerProps);
1993
- const { triggerProps, overlayProps } = ariaHideOutside.$628037886ba31236$export$f9d5c8beee7d008d({
1993
+ const { triggerProps, overlayProps } = useOverlayTrigger.$628037886ba31236$export$f9d5c8beee7d008d({
1994
1994
  type: "dialog"
1995
1995
  }, state);
1996
1996
  const [animationExited, setAnimationExited] = React.useState(!state.isOpen);
package/Drawer/index.mjs CHANGED
@@ -33,30 +33,30 @@ 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-QGDwoR1f.mjs";
37
- import { T as Text } from "../__chunks__/Text-D8wg72pq.mjs";
38
- import { $ as $8ac8429251c45e4b$export$dbc0f175b25fb0fb, a as $40df3f8667284809$export$d55e7ee900f34e93 } from "../__chunks__/useDialog-DAYxqkKY.mjs";
39
- import { c as $337b884510726a0d$export$c6fdb837b070b4ff, b as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../__chunks__/Overlay-CuhLUuXt.mjs";
36
+ import { I as Icon } from "../__chunks__/Icon-BdtOD2WX.mjs";
37
+ import { T as Text } from "../__chunks__/Text-CQ_8wg0t.mjs";
38
+ import { $ as $8ac8429251c45e4b$export$dbc0f175b25fb0fb, a as $40df3f8667284809$export$d55e7ee900f34e93 } from "../__chunks__/useDialog-o0QWfg2a.mjs";
39
+ import { d as $337b884510726a0d$export$c6fdb837b070b4ff, c as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../__chunks__/Overlay-d3z5W5Nn.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 { c as $628037886ba31236$export$f9d5c8beee7d008d } from "../__chunks__/ariaHideOutside-DcIkumuG.mjs";
44
- const underlayBg = "_underlayBg_g8mdp_5";
45
- const underlayBgEnter = "_underlayBgEnter_g8mdp_33";
46
- const underlayBgEnterDone = "_underlayBgEnterDone_g8mdp_37";
47
- const underlayBgExit = "_underlayBgExit_g8mdp_42";
48
- const underlayBox = "_underlayBox_g8mdp_47";
49
- const underlayBoxAppear = "_underlayBoxAppear_g8mdp_58";
50
- const underlayBoxAppearDone = "_underlayBoxAppearDone_g8mdp_62";
51
- const underlayBoxExit = "_underlayBoxExit_g8mdp_66";
52
- const Drawer$1 = "_Drawer_g8mdp_70";
53
- const header = "_header_g8mdp_87";
54
- const stuck = "_stuck_g8mdp_90";
55
- const banner = "_banner_g8mdp_94";
56
- const body = "_body_g8mdp_100";
57
- const closeButton = "_closeButton_g8mdp_117";
58
- const banneredContentArea = "_banneredContentArea_g8mdp_132";
59
- const standaloneContentArea = "_standaloneContentArea_g8mdp_136";
43
+ import { $ as $628037886ba31236$export$f9d5c8beee7d008d } from "../__chunks__/useOverlayTrigger-Do68TGFi.mjs";
44
+ const underlayBg = "_underlayBg_1e3gg_5";
45
+ const underlayBgEnter = "_underlayBgEnter_1e3gg_33";
46
+ const underlayBgEnterDone = "_underlayBgEnterDone_1e3gg_37";
47
+ const underlayBgExit = "_underlayBgExit_1e3gg_42";
48
+ const underlayBox = "_underlayBox_1e3gg_47";
49
+ const underlayBoxAppear = "_underlayBoxAppear_1e3gg_58";
50
+ const underlayBoxAppearDone = "_underlayBoxAppearDone_1e3gg_62";
51
+ const underlayBoxExit = "_underlayBoxExit_1e3gg_66";
52
+ const Drawer$1 = "_Drawer_1e3gg_70";
53
+ const header = "_header_1e3gg_87";
54
+ const stuck = "_stuck_1e3gg_90";
55
+ const banner = "_banner_1e3gg_94";
56
+ const body = "_body_1e3gg_100";
57
+ const closeButton = "_closeButton_1e3gg_117";
58
+ const banneredContentArea = "_banneredContentArea_1e3gg_132";
59
+ const standaloneContentArea = "_standaloneContentArea_1e3gg_136";
60
60
  const styles = {
61
61
  underlayBg,
62
62
  underlayBgEnter,
@@ -31,19 +31,19 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
31
31
  const ExpandMore400 = require("../__chunks__/ExpandMore400-CJpvxyJm.js");
32
32
  const React = require("react");
33
33
  const UnstyledButton = require("../__chunks__/UnstyledButton-Dn8KZHdh.js");
34
- const Icon = require("../__chunks__/Icon-oPEVg2C8.js");
34
+ const Icon = require("../__chunks__/Icon-DJ8CpeVT.js");
35
35
  const utilities_css = require("../utilities/css.js");
36
- const DropdownButton$1 = "_DropdownButton_a57q4_5";
37
- const colorPrimary = "_colorPrimary_a57q4_26";
38
- const colorSecondary = "_colorSecondary_a57q4_34";
39
- const colorSuccess = "_colorSuccess_a57q4_42";
40
- const colorWarning = "_colorWarning_a57q4_50";
41
- const colorNeutral = "_colorNeutral_a57q4_58";
42
- const colorSupport = "_colorSupport_a57q4_66";
43
- const colorInverse = "_colorInverse_a57q4_72";
44
- const variantOutlined = "_variantOutlined_a57q4_78";
45
- const variantFilled = "_variantFilled_a57q4_107";
46
- const pipeSeparator = "_pipeSeparator_a57q4_134";
36
+ const DropdownButton$1 = "_DropdownButton_c1uqu_5";
37
+ const colorPrimary = "_colorPrimary_c1uqu_26";
38
+ const colorSecondary = "_colorSecondary_c1uqu_34";
39
+ const colorSuccess = "_colorSuccess_c1uqu_42";
40
+ const colorWarning = "_colorWarning_c1uqu_50";
41
+ const colorNeutral = "_colorNeutral_c1uqu_58";
42
+ const colorSupport = "_colorSupport_c1uqu_66";
43
+ const colorInverse = "_colorInverse_c1uqu_72";
44
+ const variantOutlined = "_variantOutlined_c1uqu_78";
45
+ const variantFilled = "_variantFilled_c1uqu_107";
46
+ const pipeSeparator = "_pipeSeparator_c1uqu_134";
47
47
  const styles = {
48
48
  DropdownButton: DropdownButton$1,
49
49
  colorPrimary,
@@ -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-B7BScs8i.mjs";
32
- import { I as Icon } from "../__chunks__/Icon-QGDwoR1f.mjs";
31
+ import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/UnstyledButton-BlB066YT.mjs";
32
+ import { I as Icon } from "../__chunks__/Icon-BdtOD2WX.mjs";
33
33
  import { classNames, variationName } from "../utilities/css.mjs";
34
- const DropdownButton$1 = "_DropdownButton_a57q4_5";
35
- const colorPrimary = "_colorPrimary_a57q4_26";
36
- const colorSecondary = "_colorSecondary_a57q4_34";
37
- const colorSuccess = "_colorSuccess_a57q4_42";
38
- const colorWarning = "_colorWarning_a57q4_50";
39
- const colorNeutral = "_colorNeutral_a57q4_58";
40
- const colorSupport = "_colorSupport_a57q4_66";
41
- const colorInverse = "_colorInverse_a57q4_72";
42
- const variantOutlined = "_variantOutlined_a57q4_78";
43
- const variantFilled = "_variantFilled_a57q4_107";
44
- const pipeSeparator = "_pipeSeparator_a57q4_134";
34
+ const DropdownButton$1 = "_DropdownButton_c1uqu_5";
35
+ const colorPrimary = "_colorPrimary_c1uqu_26";
36
+ const colorSecondary = "_colorSecondary_c1uqu_34";
37
+ const colorSuccess = "_colorSuccess_c1uqu_42";
38
+ const colorWarning = "_colorWarning_c1uqu_50";
39
+ const colorNeutral = "_colorNeutral_c1uqu_58";
40
+ const colorSupport = "_colorSupport_c1uqu_66";
41
+ const colorInverse = "_colorInverse_c1uqu_72";
42
+ const variantOutlined = "_variantOutlined_c1uqu_78";
43
+ const variantFilled = "_variantFilled_c1uqu_107";
44
+ const pipeSeparator = "_pipeSeparator_c1uqu_134";
45
45
  const styles = {
46
46
  DropdownButton: DropdownButton$1,
47
47
  colorPrimary,