@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.
- package/Badge/index.js +14 -14
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +5 -5
- package/Banner/index.mjs +5 -5
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +17 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +13 -13
- package/CodeBlock/index.mjs +14 -14
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +60 -59
- package/DataGrid/index.mjs +62 -61
- package/Drawer/index.js +18 -18
- package/Drawer/index.mjs +18 -18
- package/DropdownButton/index.js +12 -12
- package/DropdownButton/index.mjs +13 -13
- package/EmptyStateCard/index.js +8 -8
- package/EmptyStateCard/index.mjs +8 -8
- package/FocusedProductLayout/index.js +23 -23
- package/FocusedProductLayout/index.mjs +23 -23
- package/ForgeLayout/ForgeLayout.d.ts +146 -0
- package/ForgeLayout/ForgeLayout.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayout.stories.d.ts +9 -0
- package/ForgeLayout/ForgeLayout.stories.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayout.test.d.ts +2 -0
- package/ForgeLayout/ForgeLayout.test.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayoutActions.d.ts +50 -0
- package/ForgeLayout/ForgeLayoutActions.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayoutNav.d.ts +35 -0
- package/ForgeLayout/ForgeLayoutNav.d.ts.map +1 -0
- package/ForgeLayout/index.d.ts +2 -0
- package/ForgeLayout/index.d.ts.map +1 -0
- package/ForgeLayout/index.js +325 -0
- package/ForgeLayout/index.mjs +325 -0
- package/FormLayout/index.js +5 -5
- package/FormLayout/index.mjs +5 -5
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +12 -12
- package/IconButton/index.mjs +13 -13
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +19 -19
- package/Modal/index.mjs +19 -19
- package/NexusLayout/index.js +32 -102
- package/NexusLayout/index.mjs +30 -100
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +7 -7
- package/Pagination/index.mjs +8 -8
- package/PillGroup/index.js +14 -139
- package/PillGroup/index.mjs +16 -141
- package/ProductLayout/index.js +21 -21
- package/ProductLayout/index.mjs +22 -22
- package/Provider/index.js +1 -1
- package/Provider/index.mjs +2 -2
- package/RadioButtonGroup/index.js +2 -2
- package/RadioButtonGroup/index.mjs +3 -3
- package/RadioGroup/index.js +15 -15
- package/RadioGroup/index.mjs +16 -16
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/index.js +28 -28
- package/SearchNav/index.mjs +30 -30
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +3 -3
- package/Select/index.mjs +5 -5
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +1 -1
- package/TabPanels/index.mjs +3 -3
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +24 -24
- package/VerticalNav/index.mjs +25 -25
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/Button-D0YAQvKG.mjs +158 -0
- package/__chunks__/Button-D8vjHIx8.js +157 -0
- package/__chunks__/{Button-DXoSy3zj.js → Button-DsgPV70V.js} +17 -17
- package/__chunks__/{Button-gZA_VW7t.mjs → Button-nhScczXe.mjs} +18 -18
- package/__chunks__/{CalendarBase-BE9ZXuNU.js → CalendarBase-COZL3vmv.js} +22 -21
- package/__chunks__/{CalendarBase-lJhsIoGb.mjs → CalendarBase-DpfZFxvp.mjs} +22 -21
- package/__chunks__/{Card-CaqAaP9M.mjs → Card-DK0LHpne.mjs} +12 -12
- package/__chunks__/{Card-oCF38dRM.js → Card-FVmxJOcR.js} +12 -12
- package/__chunks__/{Checkbox-CPNUyyaQ.mjs → Checkbox-Cg_A5y96.mjs} +21 -21
- package/__chunks__/{Checkbox-_9mEf5j8.js → Checkbox-DJT9VDSu.js} +19 -19
- package/__chunks__/{CodeSnippet-CFE2GaJ2.js → CodeSnippet-BF7UHk22.js} +2 -2
- package/__chunks__/{CodeSnippet-BibgES4Z.mjs → CodeSnippet-CA8MoHur.mjs} +2 -2
- package/__chunks__/{HelpMenu-LuIjOYz2.js → HelpMenu-BRNTWyCt.js} +6 -6
- package/__chunks__/{HelpMenu-BRbEO3Ze.mjs → HelpMenu-CTSyucIL.mjs} +7 -7
- package/__chunks__/{HorizontalGrid-Dd92y3Kh.mjs → HorizontalGrid-CnrWIJji.mjs} +1 -1
- package/__chunks__/{HorizontalGrid-MV4O5akl.js → HorizontalGrid-DgRlJbrw.js} +1 -1
- package/__chunks__/{HorizontalStack-BYjFVogz.js → HorizontalStack-C4je061M.js} +1 -1
- package/__chunks__/{HorizontalStack-Cm2RPfec.mjs → HorizontalStack-glUdBZkV.mjs} +1 -1
- package/__chunks__/{Icon-BuiRCbBA.js → Icon-BQ_ekXxq.js} +2 -2
- package/__chunks__/{Icon-BBvP9A5e.mjs → Icon-Da5JhGe8.mjs} +2 -2
- package/__chunks__/{InputField-BfGOYdX5.mjs → InputField-DCH8cZgZ.mjs} +4 -4
- package/__chunks__/{InputField-ClRUBF3T.js → InputField-DLI_aJEO.js} +3 -3
- package/__chunks__/{InputIcon-B5dopBYO.mjs → InputIcon-1P31bLRD.mjs} +32 -32
- package/__chunks__/{InputIcon-NC2haFw-.js → InputIcon-CoRkYgBL.js} +32 -32
- package/__chunks__/{KebabButton-Dc7S9JW3.mjs → KebabButton-AZrk4oea.mjs} +5 -5
- package/__chunks__/{KebabButton-QYOAjHz2.js → KebabButton-BRPceR3I.js} +4 -4
- package/__chunks__/{LiveAnnouncer-UhhG0KqR.mjs → LiveAnnouncer-Bi_Y3tfX.mjs} +1 -18
- package/__chunks__/{LiveAnnouncer-CWnuIRMW.js → LiveAnnouncer-Dwkwacle.js} +0 -17
- package/__chunks__/{Menu-DhBaiElA.js → Menu-BVMUk8Eo.js} +11 -11
- package/__chunks__/{Menu-DcYM5Xw7.mjs → Menu-m8AKLpJf.mjs} +15 -15
- package/__chunks__/{Notification-89cftfIG.mjs → Notification-DoOu4R83.mjs} +15 -15
- package/__chunks__/{Notification-BbgRry-H.js → Notification-mRQm2_pL.js} +14 -14
- package/__chunks__/{SelectOverlay-BfEs_osJ.mjs → SelectOverlay-BYVAaUPz.mjs} +23 -23
- package/__chunks__/{SelectOverlay-D_FXlFlT.js → SelectOverlay-DLsLeoBs.js} +19 -19
- package/__chunks__/{SelectorErrorTooltip-BpTIeFfk.js → SelectorErrorTooltip-Dfrrxf_2.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-CzboXZ17.mjs → SelectorErrorTooltip-Zmdp14RS.mjs} +4 -4
- package/__chunks__/{Spinner-BmlnOdPA.mjs → Spinner-AF4OzKw8.mjs} +5 -5
- package/__chunks__/{Spinner-Baquxz7j.js → Spinner-VxD8NZH-.js} +5 -5
- package/__chunks__/{Stepper-C4qgpGYm.js → Stepper-CehKCK04.js} +25 -25
- package/__chunks__/{Stepper-D_1c37D4.mjs → Stepper-Ct3PCNLG.mjs} +26 -26
- package/__chunks__/{TabNav-DbqEdKB2.mjs → TabNav-BRWg0e4j.mjs} +1 -1
- package/__chunks__/{TabNav-CrY7roYg.js → TabNav-CK6tv3ta.js} +1 -1
- package/__chunks__/{Tabs-B4GLceul.mjs → Tabs-BQZ127Va.mjs} +17 -17
- package/__chunks__/{Tabs-B3jZ0zO-.js → Tabs-DZGBYJKo.js} +17 -17
- package/__chunks__/{Text-DjxTQAjU.js → Text-Bb_q50kn.js} +34 -34
- package/__chunks__/{Text-BCY2taAk.mjs → Text-Bno_zBqc.mjs} +34 -34
- package/__chunks__/{Toggle-ZJsaI7fk.mjs → Toggle-BbxaX1M7.mjs} +12 -12
- package/__chunks__/{Toggle-sNte2miv.js → Toggle-CANpEwDn.js} +11 -11
- package/__chunks__/{Tooltip-BKa9QieQ.mjs → Tooltip-Bx8s4oeT.mjs} +8 -8
- package/__chunks__/{Tooltip-D8wkj76H.js → Tooltip-DC8z24sP.js} +8 -8
- package/__chunks__/{UnstyledButton-6seSbTV1.mjs → UnstyledButton-B7BScs8i.mjs} +1 -1
- package/__chunks__/{VerticalStack-BTe0o39p.mjs → VerticalStack-BAcbezBY.mjs} +3 -3
- package/__chunks__/{VerticalStack-loS6ZJn3.js → VerticalStack-BlMnVvdU.js} +3 -3
- package/__chunks__/{useButton-DEhs-Rkj.mjs → useButton-B1CurEpI.mjs} +1 -1
- package/__chunks__/{useEdgeInterceptors-CCflfRiK.js → useEdgeInterceptors-BJOGJUBf.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-DiEyVe00.mjs → useEdgeInterceptors-D5GUQcmv.mjs} +5 -5
- package/__chunks__/{useHighlightSelectionDescription-CG5W6CIQ.js → useHighlightSelectionDescription-CsB-ufoX.js} +3 -2
- package/__chunks__/{useHighlightSelectionDescription-DCgFgP4G.mjs → useHighlightSelectionDescription-DnW5KkSs.mjs} +2 -1
- package/__chunks__/useLink-BOdtE_Mk.js +94 -0
- package/__chunks__/useLink-B__d3N9L.mjs +95 -0
- package/__chunks__/{usePress-DV7a17gG.mjs → usePress-lFMUra6S.mjs} +6 -6
- package/__chunks__/{useSelectableItem-BDZ5pN_C.mjs → useSelectableItem-BdD2_J2D.mjs} +1 -1
- package/__chunks__/{useSelectableList-Bj35aLZH.mjs → useSelectableList-D0uxeze4.mjs} +1 -1
- package/__chunks__/{useToggle-BfGkPrAg.mjs → useToggle-b0GY9dCM.mjs} +1 -1
- package/__chunks__/{useTriggerWidth-BC_zeUJ5.mjs → useTriggerWidth-DEToHKD3.mjs} +1 -1
- package/__chunks__/useUpdateEffect-BLgGnNgL.mjs +19 -0
- package/__chunks__/useUpdateEffect-CssYIsWI.js +18 -0
- package/package.json +2 -2
- 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 = "
|
|
35
|
-
const listReset = "
|
|
36
|
-
const fieldsetReset = "
|
|
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 = "
|
|
36
|
-
const listReset = "
|
|
37
|
-
const fieldsetReset = "
|
|
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-
|
|
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 = "
|
|
6
|
-
const top = "
|
|
7
|
-
const bottom = "
|
|
8
|
-
const left = "
|
|
9
|
-
const right = "
|
|
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 = "
|
|
5
|
-
const top = "
|
|
6
|
-
const bottom = "
|
|
7
|
-
const left = "
|
|
8
|
-
const right = "
|
|
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-
|
|
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
|
-
|
|
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 $
|
|
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$
|
|
794
|
-
$
|
|
795
|
-
$ea8dcbcb9ea1b556$export$
|
|
796
|
-
$ea8dcbcb9ea1b556$export$
|
|
797
|
-
$
|
|
798
|
-
$ea8dcbcb9ea1b556$export$
|
|
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 {
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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.
|
|
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",
|