@easypost/easy-ui 1.0.0-alpha.57 → 1.0.0-alpha.59

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 (183) 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 +17 -0
  8. package/Calendar/index.js +1 -1
  9. package/Calendar/index.mjs +1 -1
  10. package/Card/index.js +1 -1
  11. package/Card/index.mjs +1 -1
  12. package/Checkbox/index.js +1 -1
  13. package/Checkbox/index.mjs +1 -1
  14. package/CodeBlock/index.js +13 -13
  15. package/CodeBlock/index.mjs +14 -14
  16. package/CodeSnippet/index.js +1 -1
  17. package/CodeSnippet/index.mjs +1 -1
  18. package/DataGrid/index.js +60 -59
  19. package/DataGrid/index.mjs +62 -61
  20. package/Drawer/index.js +18 -18
  21. package/Drawer/index.mjs +18 -18
  22. package/DropdownButton/index.js +12 -12
  23. package/DropdownButton/index.mjs +13 -13
  24. package/EmptyStateCard/index.js +8 -8
  25. package/EmptyStateCard/index.mjs +8 -8
  26. package/FocusedProductLayout/index.js +23 -23
  27. package/FocusedProductLayout/index.mjs +23 -23
  28. package/ForgeLayout/ForgeLayout.d.ts +146 -0
  29. package/ForgeLayout/ForgeLayout.d.ts.map +1 -0
  30. package/ForgeLayout/ForgeLayout.stories.d.ts +9 -0
  31. package/ForgeLayout/ForgeLayout.stories.d.ts.map +1 -0
  32. package/ForgeLayout/ForgeLayout.test.d.ts +2 -0
  33. package/ForgeLayout/ForgeLayout.test.d.ts.map +1 -0
  34. package/ForgeLayout/ForgeLayoutActions.d.ts +50 -0
  35. package/ForgeLayout/ForgeLayoutActions.d.ts.map +1 -0
  36. package/ForgeLayout/ForgeLayoutNav.d.ts +35 -0
  37. package/ForgeLayout/ForgeLayoutNav.d.ts.map +1 -0
  38. package/ForgeLayout/index.d.ts +2 -0
  39. package/ForgeLayout/index.d.ts.map +1 -0
  40. package/ForgeLayout/index.js +325 -0
  41. package/ForgeLayout/index.mjs +325 -0
  42. package/FormLayout/index.js +5 -5
  43. package/FormLayout/index.mjs +5 -5
  44. package/HorizontalGrid/index.js +1 -1
  45. package/HorizontalGrid/index.mjs +1 -1
  46. package/HorizontalStack/index.js +1 -1
  47. package/HorizontalStack/index.mjs +1 -1
  48. package/Icon/index.js +1 -1
  49. package/Icon/index.mjs +1 -1
  50. package/IconButton/index.js +12 -12
  51. package/IconButton/index.mjs +13 -13
  52. package/InputField/index.js +1 -1
  53. package/InputField/index.mjs +1 -1
  54. package/KebabButton/index.js +1 -1
  55. package/KebabButton/index.mjs +1 -1
  56. package/Menu/index.js +1 -1
  57. package/Menu/index.mjs +1 -1
  58. package/Modal/index.js +19 -19
  59. package/Modal/index.mjs +19 -19
  60. package/NexusLayout/index.js +32 -102
  61. package/NexusLayout/index.mjs +30 -100
  62. package/Notification/index.js +1 -1
  63. package/Notification/index.mjs +1 -1
  64. package/Pagination/index.js +7 -7
  65. package/Pagination/index.mjs +8 -8
  66. package/PillGroup/index.js +14 -139
  67. package/PillGroup/index.mjs +16 -141
  68. package/ProductLayout/index.js +21 -21
  69. package/ProductLayout/index.mjs +22 -22
  70. package/Provider/index.js +1 -1
  71. package/Provider/index.mjs +2 -2
  72. package/RadioButtonGroup/index.js +2 -2
  73. package/RadioButtonGroup/index.mjs +3 -3
  74. package/RadioGroup/index.js +15 -15
  75. package/RadioGroup/index.mjs +16 -16
  76. package/RangeCalendar/index.js +1 -1
  77. package/RangeCalendar/index.mjs +1 -1
  78. package/SearchNav/index.js +28 -28
  79. package/SearchNav/index.mjs +30 -30
  80. package/SectionCard/index.js +7 -7
  81. package/SectionCard/index.mjs +7 -7
  82. package/Select/index.js +3 -3
  83. package/Select/index.mjs +5 -5
  84. package/SelectorErrorTooltip/index.js +1 -1
  85. package/SelectorErrorTooltip/index.mjs +1 -1
  86. package/Spinner/index.js +1 -1
  87. package/Spinner/index.mjs +1 -1
  88. package/SplitToggleCard/index.js +4 -4
  89. package/SplitToggleCard/index.mjs +4 -4
  90. package/Stepper/index.js +1 -1
  91. package/Stepper/index.mjs +1 -1
  92. package/TabNav/index.js +1 -1
  93. package/TabNav/index.mjs +1 -1
  94. package/TabPanels/index.js +1 -1
  95. package/TabPanels/index.mjs +3 -3
  96. package/Tabs/index.js +1 -1
  97. package/Tabs/index.mjs +1 -1
  98. package/Text/index.js +1 -1
  99. package/Text/index.mjs +1 -1
  100. package/TextField/index.js +1 -1
  101. package/TextField/index.mjs +1 -1
  102. package/Textarea/index.js +1 -1
  103. package/Textarea/index.mjs +1 -1
  104. package/Toggle/index.js +1 -1
  105. package/Toggle/index.mjs +1 -1
  106. package/ToggleCard/index.js +2 -2
  107. package/ToggleCard/index.mjs +2 -2
  108. package/Tooltip/index.js +1 -1
  109. package/Tooltip/index.mjs +1 -1
  110. package/UnstyledButton/index.mjs +1 -1
  111. package/VerticalNav/index.js +24 -24
  112. package/VerticalNav/index.mjs +25 -25
  113. package/VerticalStack/index.js +1 -1
  114. package/VerticalStack/index.mjs +1 -1
  115. package/__chunks__/Button-D0YAQvKG.mjs +158 -0
  116. package/__chunks__/Button-D8vjHIx8.js +157 -0
  117. package/__chunks__/{Button-DXoSy3zj.js → Button-DsgPV70V.js} +17 -17
  118. package/__chunks__/{Button-gZA_VW7t.mjs → Button-nhScczXe.mjs} +18 -18
  119. package/__chunks__/{CalendarBase-BE9ZXuNU.js → CalendarBase-COZL3vmv.js} +22 -21
  120. package/__chunks__/{CalendarBase-lJhsIoGb.mjs → CalendarBase-DpfZFxvp.mjs} +22 -21
  121. package/__chunks__/{Card-CaqAaP9M.mjs → Card-DK0LHpne.mjs} +12 -12
  122. package/__chunks__/{Card-oCF38dRM.js → Card-FVmxJOcR.js} +12 -12
  123. package/__chunks__/{Checkbox-CPNUyyaQ.mjs → Checkbox-Cg_A5y96.mjs} +21 -21
  124. package/__chunks__/{Checkbox-_9mEf5j8.js → Checkbox-DJT9VDSu.js} +19 -19
  125. package/__chunks__/{CodeSnippet-CFE2GaJ2.js → CodeSnippet-BF7UHk22.js} +2 -2
  126. package/__chunks__/{CodeSnippet-BibgES4Z.mjs → CodeSnippet-CA8MoHur.mjs} +2 -2
  127. package/__chunks__/{HelpMenu-LuIjOYz2.js → HelpMenu-BRNTWyCt.js} +6 -6
  128. package/__chunks__/{HelpMenu-BRbEO3Ze.mjs → HelpMenu-CTSyucIL.mjs} +7 -7
  129. package/__chunks__/{HorizontalGrid-Dd92y3Kh.mjs → HorizontalGrid-CnrWIJji.mjs} +1 -1
  130. package/__chunks__/{HorizontalGrid-MV4O5akl.js → HorizontalGrid-DgRlJbrw.js} +1 -1
  131. package/__chunks__/{HorizontalStack-BYjFVogz.js → HorizontalStack-C4je061M.js} +1 -1
  132. package/__chunks__/{HorizontalStack-Cm2RPfec.mjs → HorizontalStack-glUdBZkV.mjs} +1 -1
  133. package/__chunks__/{Icon-BuiRCbBA.js → Icon-BQ_ekXxq.js} +2 -2
  134. package/__chunks__/{Icon-BBvP9A5e.mjs → Icon-Da5JhGe8.mjs} +2 -2
  135. package/__chunks__/{InputField-BfGOYdX5.mjs → InputField-DCH8cZgZ.mjs} +4 -4
  136. package/__chunks__/{InputField-ClRUBF3T.js → InputField-DLI_aJEO.js} +3 -3
  137. package/__chunks__/{InputIcon-B5dopBYO.mjs → InputIcon-1P31bLRD.mjs} +32 -32
  138. package/__chunks__/{InputIcon-NC2haFw-.js → InputIcon-CoRkYgBL.js} +32 -32
  139. package/__chunks__/{KebabButton-Dc7S9JW3.mjs → KebabButton-AZrk4oea.mjs} +5 -5
  140. package/__chunks__/{KebabButton-QYOAjHz2.js → KebabButton-BRPceR3I.js} +4 -4
  141. package/__chunks__/{LiveAnnouncer-UhhG0KqR.mjs → LiveAnnouncer-Bi_Y3tfX.mjs} +1 -18
  142. package/__chunks__/{LiveAnnouncer-CWnuIRMW.js → LiveAnnouncer-Dwkwacle.js} +0 -17
  143. package/__chunks__/{Menu-DhBaiElA.js → Menu-BVMUk8Eo.js} +11 -11
  144. package/__chunks__/{Menu-DcYM5Xw7.mjs → Menu-m8AKLpJf.mjs} +15 -15
  145. package/__chunks__/{Notification-89cftfIG.mjs → Notification-DoOu4R83.mjs} +15 -15
  146. package/__chunks__/{Notification-BbgRry-H.js → Notification-mRQm2_pL.js} +14 -14
  147. package/__chunks__/{SelectOverlay-BfEs_osJ.mjs → SelectOverlay-BYVAaUPz.mjs} +23 -23
  148. package/__chunks__/{SelectOverlay-D_FXlFlT.js → SelectOverlay-DLsLeoBs.js} +19 -19
  149. package/__chunks__/{SelectorErrorTooltip-BpTIeFfk.js → SelectorErrorTooltip-Dfrrxf_2.js} +4 -4
  150. package/__chunks__/{SelectorErrorTooltip-CzboXZ17.mjs → SelectorErrorTooltip-Zmdp14RS.mjs} +4 -4
  151. package/__chunks__/{Spinner-BmlnOdPA.mjs → Spinner-AF4OzKw8.mjs} +5 -5
  152. package/__chunks__/{Spinner-Baquxz7j.js → Spinner-VxD8NZH-.js} +5 -5
  153. package/__chunks__/{Stepper-C4qgpGYm.js → Stepper-CehKCK04.js} +25 -25
  154. package/__chunks__/{Stepper-D_1c37D4.mjs → Stepper-Ct3PCNLG.mjs} +26 -26
  155. package/__chunks__/{TabNav-DbqEdKB2.mjs → TabNav-BRWg0e4j.mjs} +1 -1
  156. package/__chunks__/{TabNav-CrY7roYg.js → TabNav-CK6tv3ta.js} +1 -1
  157. package/__chunks__/{Tabs-B4GLceul.mjs → Tabs-BQZ127Va.mjs} +17 -17
  158. package/__chunks__/{Tabs-B3jZ0zO-.js → Tabs-DZGBYJKo.js} +17 -17
  159. package/__chunks__/{Text-DjxTQAjU.js → Text-Bb_q50kn.js} +34 -34
  160. package/__chunks__/{Text-BCY2taAk.mjs → Text-Bno_zBqc.mjs} +34 -34
  161. package/__chunks__/{Toggle-ZJsaI7fk.mjs → Toggle-BbxaX1M7.mjs} +12 -12
  162. package/__chunks__/{Toggle-sNte2miv.js → Toggle-CANpEwDn.js} +11 -11
  163. package/__chunks__/{Tooltip-BKa9QieQ.mjs → Tooltip-Bx8s4oeT.mjs} +8 -8
  164. package/__chunks__/{Tooltip-D8wkj76H.js → Tooltip-DC8z24sP.js} +8 -8
  165. package/__chunks__/{UnstyledButton-6seSbTV1.mjs → UnstyledButton-B7BScs8i.mjs} +1 -1
  166. package/__chunks__/{VerticalStack-BTe0o39p.mjs → VerticalStack-BAcbezBY.mjs} +3 -3
  167. package/__chunks__/{VerticalStack-loS6ZJn3.js → VerticalStack-BlMnVvdU.js} +3 -3
  168. package/__chunks__/{useButton-DEhs-Rkj.mjs → useButton-B1CurEpI.mjs} +1 -1
  169. package/__chunks__/{useEdgeInterceptors-CCflfRiK.js → useEdgeInterceptors-BJOGJUBf.js} +5 -5
  170. package/__chunks__/{useEdgeInterceptors-DiEyVe00.mjs → useEdgeInterceptors-D5GUQcmv.mjs} +5 -5
  171. package/__chunks__/{useHighlightSelectionDescription-CG5W6CIQ.js → useHighlightSelectionDescription-CsB-ufoX.js} +3 -2
  172. package/__chunks__/{useHighlightSelectionDescription-DCgFgP4G.mjs → useHighlightSelectionDescription-DnW5KkSs.mjs} +2 -1
  173. package/__chunks__/useLink-BOdtE_Mk.js +94 -0
  174. package/__chunks__/useLink-B__d3N9L.mjs +95 -0
  175. package/__chunks__/{usePress-DV7a17gG.mjs → usePress-lFMUra6S.mjs} +6 -6
  176. package/__chunks__/{useSelectableItem-BDZ5pN_C.mjs → useSelectableItem-BdD2_J2D.mjs} +1 -1
  177. package/__chunks__/{useSelectableList-Bj35aLZH.mjs → useSelectableList-D0uxeze4.mjs} +1 -1
  178. package/__chunks__/{useToggle-BfGkPrAg.mjs → useToggle-b0GY9dCM.mjs} +1 -1
  179. package/__chunks__/{useTriggerWidth-BC_zeUJ5.mjs → useTriggerWidth-DEToHKD3.mjs} +1 -1
  180. package/__chunks__/useUpdateEffect-BLgGnNgL.mjs +19 -0
  181. package/__chunks__/useUpdateEffect-CssYIsWI.js +18 -0
  182. package/package.json +2 -2
  183. package/style.css +1163 -971
@@ -31,9 +31,9 @@ var __objRest = (source, exclude) => {
31
31
  };
32
32
  import React__default, { forwardRef } from "react";
33
33
  import { classNames, getResponsiveDesignToken, getComponentToken, sanitizeCustomProperties } from "../utilities/css.mjs";
34
- const VerticalStack$1 = "_VerticalStack_1ojb5_5";
35
- const listReset = "_listReset_1ojb5_58";
36
- const fieldsetReset = "_fieldsetReset_1ojb5_65";
34
+ const VerticalStack$1 = "_VerticalStack_3cdb4_5";
35
+ const listReset = "_listReset_3cdb4_58";
36
+ const fieldsetReset = "_fieldsetReset_3cdb4_65";
37
37
  const styles = {
38
38
  VerticalStack: VerticalStack$1,
39
39
  listReset,
@@ -32,9 +32,9 @@ var __objRest = (source, exclude) => {
32
32
  };
33
33
  const React = require("react");
34
34
  const utilities_css = require("../utilities/css.js");
35
- const VerticalStack$1 = "_VerticalStack_1ojb5_5";
36
- const listReset = "_listReset_1ojb5_58";
37
- const fieldsetReset = "_fieldsetReset_1ojb5_65";
35
+ const VerticalStack$1 = "_VerticalStack_3cdb4_5";
36
+ const listReset = "_listReset_3cdb4_58";
37
+ const fieldsetReset = "_fieldsetReset_3cdb4_65";
38
38
  const styles = {
39
39
  VerticalStack: VerticalStack$1,
40
40
  listReset,
@@ -1,7 +1,7 @@
1
1
  import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-T961Q1yJ.mjs";
2
2
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
3
3
  import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-DD5dAIXt.mjs";
4
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-DV7a17gG.mjs";
4
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-lFMUra6S.mjs";
5
5
  function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
6
6
  let {
7
7
  elementType = "button",
@@ -2,11 +2,11 @@
2
2
  const React = require("react");
3
3
  const useIntersectionDetection = require("./useIntersectionDetection-DI5n4zwA.js");
4
4
  const utilities_css = require("../utilities/css.js");
5
- const interceptor = "_interceptor_1wc78_5";
6
- const top = "_top_1wc78_13";
7
- const bottom = "_bottom_1wc78_14";
8
- const left = "_left_1wc78_18";
9
- const right = "_right_1wc78_19";
5
+ const interceptor = "_interceptor_eqvo3_5";
6
+ const top = "_top_eqvo3_13";
7
+ const bottom = "_bottom_eqvo3_14";
8
+ const left = "_left_eqvo3_18";
9
+ const right = "_right_eqvo3_19";
10
10
  const styles = {
11
11
  interceptor,
12
12
  top,
@@ -1,11 +1,11 @@
1
1
  import React__default, { useRef, useCallback } from "react";
2
2
  import { u as useIntersectionDetection } from "./useIntersectionDetection-BvUmtDgl.mjs";
3
3
  import { classNames } from "../utilities/css.mjs";
4
- const interceptor = "_interceptor_1wc78_5";
5
- const top = "_top_1wc78_13";
6
- const bottom = "_bottom_1wc78_14";
7
- const left = "_left_1wc78_18";
8
- const right = "_right_1wc78_19";
4
+ const interceptor = "_interceptor_eqvo3_5";
5
+ const top = "_top_eqvo3_13";
6
+ const bottom = "_bottom_eqvo3_14";
7
+ const left = "_left_eqvo3_18";
8
+ const right = "_right_eqvo3_19";
9
9
  const styles = {
10
10
  interceptor,
11
11
  top,
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
- const LiveAnnouncer = require("./LiveAnnouncer-CWnuIRMW.js");
2
+ const LiveAnnouncer = require("./LiveAnnouncer-Dwkwacle.js");
3
3
  const useLocalizedStringFormatter = require("./useLocalizedStringFormatter-D74_5d4h.js");
4
4
  const React = require("react");
5
+ const useUpdateEffect = require("./useUpdateEffect-CssYIsWI.js");
5
6
  const scrollIntoView = require("./scrollIntoView-DkcUbB3D.js");
6
7
  const useFocusVisible = require("./useFocusVisible-PBQuklI8.js");
7
8
  var $682989befd4f478d$exports = {};
@@ -495,7 +496,7 @@ function $92599c3fd427b763$export$137e594ef3218a10(props, state) {
495
496
  let stringFormatter = useLocalizedStringFormatter.$fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$1(exports.$835c96616a7cb4f9$exports), "@react-aria/grid");
496
497
  let selection = state.selectionManager.rawSelection;
497
498
  let lastSelection = React.useRef(selection);
498
- LiveAnnouncer.$4f58c5f72bcf79f7$export$496315a1608d9602(() => {
499
+ useUpdateEffect.$4f58c5f72bcf79f7$export$496315a1608d9602(() => {
499
500
  var _lastSelection_current;
500
501
  if (!state.selectionManager.isFocused) {
501
502
  lastSelection.current = selection;
@@ -1,6 +1,7 @@
1
- import { $ as $4f58c5f72bcf79f7$export$496315a1608d9602, a as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./LiveAnnouncer-UhhG0KqR.mjs";
1
+ import { $ as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./LiveAnnouncer-Bi_Y3tfX.mjs";
2
2
  import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-B5ons_mh.mjs";
3
3
  import { useRef, useMemo } from "react";
4
+ import { $ as $4f58c5f72bcf79f7$export$496315a1608d9602 } from "./useUpdateEffect-BLgGnNgL.mjs";
4
5
  import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "./scrollIntoView-GfnXaOCE.mjs";
5
6
  import { e as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "./useFocusVisible-CXSIZSY_.mjs";
6
7
  var $682989befd4f478d$exports = {};
@@ -0,0 +1,94 @@
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
+ var __objRest = (source, exclude) => {
22
+ var target = {};
23
+ for (var prop in source)
24
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
+ target[prop] = source[prop];
26
+ if (source != null && __getOwnPropSymbols)
27
+ for (var prop of __getOwnPropSymbols(source)) {
28
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
+ target[prop] = source[prop];
30
+ }
31
+ return target;
32
+ };
33
+ const mergeProps = require("./mergeProps-DniMwM6P.js");
34
+ const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
35
+ const usePress = require("./usePress-Dz8YYpge.js");
36
+ const useFocusable = require("./useFocusable-BfXLORiH.js");
37
+ function $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {
38
+ let _a = props, {
39
+ elementType = "a",
40
+ onPress,
41
+ onPressStart,
42
+ onPressEnd,
43
+ onClick: deprecatedOnClick,
44
+ isDisabled
45
+ } = _a, otherProps = __objRest(_a, [
46
+ "elementType",
47
+ "onPress",
48
+ "onPressStart",
49
+ "onPressEnd",
50
+ // @ts-ignore
51
+ "onClick",
52
+ "isDisabled"
53
+ ]);
54
+ let linkProps = {};
55
+ if (elementType !== "a") linkProps = {
56
+ role: "link",
57
+ tabIndex: !isDisabled ? 0 : void 0
58
+ };
59
+ let { focusableProps } = useFocusable.$e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, ref);
60
+ let { pressProps, isPressed } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21({
61
+ onPress,
62
+ onPressStart,
63
+ onPressEnd,
64
+ isDisabled,
65
+ ref
66
+ });
67
+ let domProps = filterDOMProps.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(otherProps, {
68
+ labelable: true
69
+ });
70
+ let interactionHandlers = mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, pressProps);
71
+ let router = usePress.$ea8dcbcb9ea1b556$export$9a302a45f65d0572();
72
+ let routerLinkProps = usePress.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props);
73
+ return {
74
+ isPressed,
75
+ linkProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, routerLinkProps, __spreadProps(__spreadValues(__spreadValues({}, interactionHandlers), linkProps), {
76
+ "aria-disabled": isDisabled || void 0,
77
+ "aria-current": props["aria-current"],
78
+ onClick: (e) => {
79
+ var _pressProps_onClick;
80
+ (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === void 0 ? void 0 : _pressProps_onClick.call(pressProps, e);
81
+ if (deprecatedOnClick) {
82
+ deprecatedOnClick(e);
83
+ console.warn("onClick is deprecated, please use onPress");
84
+ }
85
+ if (!router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
86
+ !e.isDefaultPrevented() && usePress.$ea8dcbcb9ea1b556$export$efa8c9099e530235(e.currentTarget, e) && props.href) {
87
+ e.preventDefault();
88
+ router.open(e.currentTarget, e, props.href, props.routerOptions);
89
+ }
90
+ }
91
+ }))
92
+ };
93
+ }
94
+ exports.$298d61e98472621b$export$dcf14c9974fe2767 = $298d61e98472621b$export$dcf14c9974fe2767;
@@ -0,0 +1,95 @@
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
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-T961Q1yJ.mjs";
33
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
34
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, b as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, c as $ea8dcbcb9ea1b556$export$efa8c9099e530235 } from "./usePress-lFMUra6S.mjs";
35
+ import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-DD5dAIXt.mjs";
36
+ function $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {
37
+ let _a = props, {
38
+ elementType = "a",
39
+ onPress,
40
+ onPressStart,
41
+ onPressEnd,
42
+ onClick: deprecatedOnClick,
43
+ isDisabled
44
+ } = _a, otherProps = __objRest(_a, [
45
+ "elementType",
46
+ "onPress",
47
+ "onPressStart",
48
+ "onPressEnd",
49
+ // @ts-ignore
50
+ "onClick",
51
+ "isDisabled"
52
+ ]);
53
+ let linkProps = {};
54
+ if (elementType !== "a") linkProps = {
55
+ role: "link",
56
+ tabIndex: !isDisabled ? 0 : void 0
57
+ };
58
+ let { focusableProps } = $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, ref);
59
+ let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({
60
+ onPress,
61
+ onPressStart,
62
+ onPressEnd,
63
+ isDisabled,
64
+ ref
65
+ });
66
+ let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(otherProps, {
67
+ labelable: true
68
+ });
69
+ let interactionHandlers = $3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, pressProps);
70
+ let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
71
+ let routerLinkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props);
72
+ return {
73
+ isPressed,
74
+ linkProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, routerLinkProps, __spreadProps(__spreadValues(__spreadValues({}, interactionHandlers), linkProps), {
75
+ "aria-disabled": isDisabled || void 0,
76
+ "aria-current": props["aria-current"],
77
+ onClick: (e) => {
78
+ var _pressProps_onClick;
79
+ (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === void 0 ? void 0 : _pressProps_onClick.call(pressProps, e);
80
+ if (deprecatedOnClick) {
81
+ deprecatedOnClick(e);
82
+ console.warn("onClick is deprecated, please use onPress");
83
+ }
84
+ if (!router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
85
+ !e.isDefaultPrevented() && $ea8dcbcb9ea1b556$export$efa8c9099e530235(e.currentTarget, e) && props.href) {
86
+ e.preventDefault();
87
+ router.open(e.currentTarget, e, props.href, props.routerOptions);
88
+ }
89
+ }
90
+ }))
91
+ };
92
+ }
93
+ export {
94
+ $298d61e98472621b$export$dcf14c9974fe2767 as $
95
+ };
@@ -790,11 +790,11 @@ function $f6c31cce2adf654f$var$isValidInputKey(target, key) {
790
790
  export {
791
791
  $f6c31cce2adf654f$export$45712eceda6fad21 as $,
792
792
  _class_private_field_init as _,
793
- $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb as a,
794
- $03deb23ff14920c4$export$4eaf04e54aa8eed6 as b,
795
- $ea8dcbcb9ea1b556$export$9a302a45f65d0572 as c,
796
- $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as d,
797
- $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as e,
798
- $ea8dcbcb9ea1b556$export$efa8c9099e530235 as f,
793
+ $ea8dcbcb9ea1b556$export$9a302a45f65d0572 as a,
794
+ $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 as b,
795
+ $ea8dcbcb9ea1b556$export$efa8c9099e530235 as c,
796
+ $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb as d,
797
+ $03deb23ff14920c4$export$4eaf04e54aa8eed6 as e,
798
+ $ea8dcbcb9ea1b556$export$95185d699e05d4d7 as f,
799
799
  $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6 as g
800
800
  };
@@ -23,7 +23,7 @@ import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-CEe
23
23
  import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-Dw7K4rnX.mjs";
24
24
  import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-T961Q1yJ.mjs";
25
25
  import { a as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./context-CgOWZch5.mjs";
26
- import { b as $03deb23ff14920c4$export$4eaf04e54aa8eed6, $ as $f6c31cce2adf654f$export$45712eceda6fad21, c as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, d as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-DV7a17gG.mjs";
26
+ import { e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, f as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-lFMUra6S.mjs";
27
27
  import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-C5RCZjKr.mjs";
28
28
  import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1, a as $2f04cbc44ee30ce0$export$53a0910f038337bd, b as $2f04cbc44ee30ce0$export$c826860796309d1b } from "./scrollIntoView-GfnXaOCE.mjs";
29
29
  import { $ as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-CXSIZSY_.mjs";
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { $ as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "./useSelectableItem-BDZ5pN_C.mjs";
20
+ import { $ as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "./useSelectableItem-BdD2_J2D.mjs";
21
21
  import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-DwbLAiO0.mjs";
22
22
  import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DEwqildc.mjs";
23
23
  import { useMemo } from "react";
@@ -21,7 +21,7 @@ import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-T96
21
21
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
22
22
  import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-CmXMJVpO.mjs";
23
23
  import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-DD5dAIXt.mjs";
24
- import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-DV7a17gG.mjs";
24
+ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-lFMUra6S.mjs";
25
25
  function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
26
26
  let { isDisabled = false, isReadOnly = false, value, name, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid } = props;
27
27
  let onChange = (e) => {
@@ -73,7 +73,7 @@ import { a as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden
73
73
  import { $ as $a11501f3d1d39e6c$export$ea8f71083e90600f, a as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, b as $5e3802645cc19319$export$1c3ebcada18427bf, c as $628037886ba31236$export$f9d5c8beee7d008d } from "./ariaHideOutside-DcIkumuG.mjs";
74
74
  import { $ as $2a41e45df1593e64$export$d39e1813b3bdd0e1 } from "./useOverlayPosition-B31NgShQ.mjs";
75
75
  import { a as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-T961Q1yJ.mjs";
76
- import { c as $8a26561d2877236e$export$c24ed0104d07eab9 } from "./useSelectableItem-BDZ5pN_C.mjs";
76
+ import { c as $8a26561d2877236e$export$c24ed0104d07eab9 } from "./useSelectableItem-BdD2_J2D.mjs";
77
77
  import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
78
78
  import { getComponentToken, pxToRem, getResponsiveValue } from "../utilities/css.mjs";
79
79
  import { $ as $9daab02d461809db$export$683480f191c0e3ea } from "./useResizeObserver-Dyb4wvuA.mjs";
@@ -0,0 +1,19 @@
1
+ import { useRef, useEffect } from "react";
2
+ function $4f58c5f72bcf79f7$export$496315a1608d9602(effect, dependencies) {
3
+ const isInitialMount = useRef(true);
4
+ const lastDeps = useRef(null);
5
+ useEffect(() => {
6
+ isInitialMount.current = true;
7
+ return () => {
8
+ isInitialMount.current = false;
9
+ };
10
+ }, []);
11
+ useEffect(() => {
12
+ if (isInitialMount.current) isInitialMount.current = false;
13
+ else if (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) effect();
14
+ lastDeps.current = dependencies;
15
+ }, dependencies);
16
+ }
17
+ export {
18
+ $4f58c5f72bcf79f7$export$496315a1608d9602 as $
19
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ const React = require("react");
3
+ function $4f58c5f72bcf79f7$export$496315a1608d9602(effect, dependencies) {
4
+ const isInitialMount = React.useRef(true);
5
+ const lastDeps = React.useRef(null);
6
+ React.useEffect(() => {
7
+ isInitialMount.current = true;
8
+ return () => {
9
+ isInitialMount.current = false;
10
+ };
11
+ }, []);
12
+ React.useEffect(() => {
13
+ if (isInitialMount.current) isInitialMount.current = false;
14
+ else if (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) effect();
15
+ lastDeps.current = dependencies;
16
+ }, dependencies);
17
+ }
18
+ exports.$4f58c5f72bcf79f7$export$496315a1608d9602 = $4f58c5f72bcf79f7$export$496315a1608d9602;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@easypost/easy-ui",
3
- "version": "1.0.0-alpha.57",
3
+ "version": "1.0.0-alpha.59",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ],
7
7
  "dependencies": {
8
- "@easypost/easy-ui-icons": "1.0.0-alpha.31",
8
+ "@easypost/easy-ui-icons": "1.0.0-alpha.32",
9
9
  "@easypost/easy-ui-tokens": "1.0.0-alpha.14",
10
10
  "@react-aria/toast": "^3.0.0-beta.18",
11
11
  "@react-aria/utils": "^3.26.0",