@easypost/easy-ui 1.0.0-alpha.5 → 1.0.0-alpha.7
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 +16 -16
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +7 -7
- package/Banner/index.mjs +5 -5
- package/Button/Button.d.ts +61 -0
- package/Button/Button.d.ts.map +1 -1
- package/Button/index.js +23 -23
- package/Button/index.mjs +20 -20
- package/CHANGELOG.md +22 -0
- package/Card/index.js +84 -5
- package/Card/index.mjs +84 -5
- package/Checkbox/index.js +28 -28
- package/Checkbox/index.mjs +26 -26
- package/CodeBlock/CodeBlock.d.ts +49 -61
- package/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/CodeBlock/CodeBlock.stories.d.ts +3 -2
- package/CodeBlock/CodeBlock.stories.d.ts.map +1 -1
- package/CodeBlock/CopyButton.d.ts +9 -0
- package/CodeBlock/CopyButton.d.ts.map +1 -0
- package/CodeBlock/LanguageMenu.d.ts +18 -0
- package/CodeBlock/LanguageMenu.d.ts.map +1 -0
- package/CodeBlock/context.d.ts +11 -0
- package/CodeBlock/context.d.ts.map +1 -0
- package/CodeBlock/index.js +310 -5335
- package/CodeBlock/index.mjs +299 -5340
- package/CodeSnippet/CodeSnippet.d.ts +82 -0
- package/CodeSnippet/CodeSnippet.d.ts.map +1 -0
- package/CodeSnippet/CodeSnippet.stories.d.ts +14 -0
- package/CodeSnippet/CodeSnippet.stories.d.ts.map +1 -0
- package/CodeSnippet/CodeSnippet.test.d.ts +2 -0
- package/CodeSnippet/CodeSnippet.test.d.ts.map +1 -0
- package/CodeSnippet/SyntaxHighlighter.d.ts +8 -0
- package/CodeSnippet/SyntaxHighlighter.d.ts.map +1 -0
- package/CodeSnippet/index.d.ts +2 -0
- package/CodeSnippet/index.d.ts.map +1 -0
- package/CodeSnippet/index.js +11 -0
- package/CodeSnippet/index.mjs +11 -0
- package/CodeSnippet/theme.d.ts.map +1 -0
- package/CodeSnippet/useScrollbar.d.ts.map +1 -0
- package/DropdownButton/DropdownButton.d.ts +48 -0
- package/DropdownButton/DropdownButton.d.ts.map +1 -1
- package/DropdownButton/index.js +17 -17
- package/DropdownButton/index.mjs +15 -15
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +48 -4
- package/HorizontalStack/index.mjs +48 -4
- package/Icon/Icon.d.ts +51 -0
- package/Icon/Icon.d.ts.map +1 -1
- package/Icon/index.js +38 -4
- package/Icon/index.mjs +38 -4
- package/IconButton/IconButton.d.ts +62 -0
- package/IconButton/IconButton.d.ts.map +1 -1
- package/IconButton/index.js +18 -18
- package/IconButton/index.mjs +15 -15
- package/InputField/index.js +282 -11
- package/InputField/index.mjs +266 -11
- package/Menu/index.js +57 -15
- package/Menu/index.mjs +58 -16
- package/Notification/index.js +1534 -14
- package/Notification/index.mjs +1518 -14
- package/Provider/index.js +9 -9
- package/Provider/index.mjs +9 -9
- package/RadioGroup/index.js +24 -24
- package/RadioGroup/index.mjs +22 -22
- package/Select/index.js +71 -29
- package/Select/index.mjs +71 -29
- package/SelectorErrorTooltip/index.js +99 -8
- package/SelectorErrorTooltip/index.mjs +85 -10
- package/Text/index.js +85 -4
- package/Text/index.mjs +85 -4
- package/TextField/index.js +7 -7
- package/TextField/index.mjs +8 -8
- package/Textarea/index.js +7 -7
- package/Textarea/index.mjs +8 -8
- package/Theme/index.js +145 -9
- package/Theme/index.mjs +145 -9
- package/Toggle/index.js +14 -14
- package/Toggle/index.mjs +14 -14
- package/Tooltip/Tooltip.stories.d.ts +1 -0
- package/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/Tooltip/index.js +5 -5
- package/Tooltip/index.mjs +6 -6
- package/UnstyledButton/index.js +3 -3
- package/UnstyledButton/index.mjs +3 -3
- package/VerticalStack/index.js +3 -3
- package/VerticalStack/index.mjs +3 -3
- package/__chunks__/{InputIcon-4a8e5243.mjs → InputIcon-1f2ed127.mjs} +26 -26
- package/__chunks__/{InputIcon-70dad3e5.js → InputIcon-f456e366.js} +29 -29
- package/__chunks__/{import-87c465c9.js → import-0f8555a4.js} +1 -1
- package/__chunks__/{import-fbe7cc7e.mjs → import-19bc38ac.mjs} +26 -26
- package/__chunks__/{import-9581a2dc.js → import-26676303.js} +44 -1
- package/__chunks__/{import-d2e79ac1.mjs → import-29af6941.mjs} +3 -3
- package/__chunks__/{import-a6cadfe8.mjs → import-3faba3a6.mjs} +58 -15
- package/__chunks__/{import-d52cd5cf.js → import-890ae60e.js} +1 -1
- package/__chunks__/{import-29edaaea.mjs → import-c4caaddf.mjs} +9 -9
- package/__chunks__/{import-9c958e32.mjs → import-eb35a9b9.mjs} +2 -2
- package/__chunks__/{UnstyledButton-981cd9af.mjs → index-45f05366.mjs} +2 -2
- package/__chunks__/{UnstyledButton-5bbb3c5e.js → index-5f429325.js} +1 -1
- package/__chunks__/index-72137376.mjs +5421 -0
- package/__chunks__/index-a7b6b429.js +5420 -0
- package/__chunks__/{Tooltip-c5076ca7.js → index-affe5510.js} +13 -12
- package/__chunks__/{Tooltip-b4e23b78.mjs → index-e989a741.mjs} +14 -13
- package/__chunks__/{overlayscrollbars-react.es-c8369a03.mjs → overlayscrollbars-react.es-7f332a3b.mjs} +4 -4
- package/__chunks__/{overlayscrollbars-react.es-20563393.js → overlayscrollbars-react.es-f2a0bcff.js} +4 -4
- package/__chunks__/{real-module-2f165429.mjs → real-module-515df21d.mjs} +4 -4
- package/__chunks__/{tokens-6be8e137.mjs → tokens-3c27019b.mjs} +1 -0
- package/__chunks__/{tokens-e696ca96.js → tokens-ad06cd2c.js} +1 -0
- package/__chunks__/{useTriggerWidth-29becc21.mjs → useTriggerWidth-b554acaf.mjs} +50 -8
- package/__chunks__/{useTriggerWidth-9528009c.js → useTriggerWidth-e11bf6d6.js} +48 -6
- package/package.json +10 -8
- package/style.css +2182 -2110
- package/utilities/react.d.ts +15 -0
- package/utilities/react.d.ts.map +1 -0
- package/utilities/react.js +333 -0
- package/utilities/react.mjs +333 -0
- package/CodeBlock/SyntaxHighlighter.d.ts +0 -5
- package/CodeBlock/SyntaxHighlighter.d.ts.map +0 -1
- package/CodeBlock/theme.d.ts.map +0 -1
- package/CodeBlock/useScrollbar.d.ts.map +0 -1
- package/__chunks__/Card-2bd533c4.js +0 -85
- package/__chunks__/Card-4ad318ba.mjs +0 -86
- package/__chunks__/HorizontalStack-65adb570.mjs +0 -50
- package/__chunks__/HorizontalStack-f331bfc7.js +0 -49
- package/__chunks__/Icon-1a25dcae.js +0 -39
- package/__chunks__/Icon-6eb724b4.mjs +0 -40
- package/__chunks__/InputField-cc829736.mjs +0 -268
- package/__chunks__/InputField-f5072e37.js +0 -283
- package/__chunks__/Notification-8d749bd1.mjs +0 -1533
- package/__chunks__/Notification-b7a2c277.js +0 -1548
- package/__chunks__/SelectorErrorTooltip-4d820c45.mjs +0 -83
- package/__chunks__/SelectorErrorTooltip-b7bb5b9d.js +0 -98
- package/__chunks__/Text-2efbe1fe.js +0 -86
- package/__chunks__/Text-ec2b8d8a.mjs +0 -87
- package/__chunks__/Theme-123ba2c3.mjs +0 -147
- package/__chunks__/Theme-57f8311c.js +0 -146
- /package/{CodeBlock → CodeSnippet}/theme.d.ts +0 -0
- /package/{CodeBlock → CodeSnippet}/useScrollbar.d.ts +0 -0
|
@@ -19,11 +19,11 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const React = require("react");
|
|
22
|
-
const
|
|
22
|
+
const Text_index = require("../Text/index.js");
|
|
23
23
|
const utilities_css = require("../utilities/css.js");
|
|
24
|
-
const _import$2 = require("./import-
|
|
24
|
+
const _import$2 = require("./import-0f8555a4.js");
|
|
25
25
|
const _import = require("./import-a1e0f814.js");
|
|
26
|
-
const _import$1 = require("./import-
|
|
26
|
+
const _import$1 = require("./import-26676303.js");
|
|
27
27
|
function $326e436e94273fe1$export$1c4b08e0eca38426(props, state) {
|
|
28
28
|
let domProps = _import.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
29
29
|
labelable: true
|
|
@@ -224,13 +224,13 @@ function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
|
|
|
224
224
|
close: hideTooltip
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const Tooltip$1 = "
|
|
228
|
-
const text = "
|
|
229
|
-
const arrow = "
|
|
230
|
-
const top = "
|
|
231
|
-
const bottom = "
|
|
232
|
-
const left = "
|
|
233
|
-
const right = "
|
|
227
|
+
const Tooltip$1 = "_Tooltip_o5oku_5";
|
|
228
|
+
const text = "_text_o5oku_24";
|
|
229
|
+
const arrow = "_arrow_o5oku_30";
|
|
230
|
+
const top = "_top_o5oku_39";
|
|
231
|
+
const bottom = "_bottom_o5oku_40";
|
|
232
|
+
const left = "_left_o5oku_44";
|
|
233
|
+
const right = "_right_o5oku_45";
|
|
234
234
|
const styles = {
|
|
235
235
|
Tooltip: Tooltip$1,
|
|
236
236
|
text,
|
|
@@ -278,7 +278,7 @@ function TooltipInner(props) {
|
|
|
278
278
|
const { tooltipProps: tooltipPropsFromTooltip } = $326e436e94273fe1$export$1c4b08e0eca38426(_import.$3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps, props), tooltipTriggerState);
|
|
279
279
|
const tooltipProps = _import.$3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps, tooltipPropsFromTooltip, tooltipPropsFromTrigger);
|
|
280
280
|
const style = __spreadValues(__spreadValues({}, tooltipProps.style), utilities_css.getComponentToken("tooltip", "container_padding", `${utilities_css.pxToRem(CONTAINER_PADDING)}rem`));
|
|
281
|
-
React.
|
|
281
|
+
React.useLayoutEffect(() => {
|
|
282
282
|
updatePosition();
|
|
283
283
|
}, [content, updatePosition]);
|
|
284
284
|
return React.createElement("span", __spreadProps(__spreadValues({
|
|
@@ -289,10 +289,11 @@ function TooltipInner(props) {
|
|
|
289
289
|
style
|
|
290
290
|
}), React.createElement("span", {
|
|
291
291
|
className: styles.text
|
|
292
|
-
}, React.createElement(
|
|
292
|
+
}, React.createElement(Text_index.Text, {
|
|
293
293
|
variant: "subtitle2"
|
|
294
294
|
}, content)), React.createElement("span", __spreadValues({
|
|
295
295
|
className: styles.arrow
|
|
296
296
|
}, arrowProps)));
|
|
297
297
|
}
|
|
298
|
+
exports.$8796f90736e175cb$export$4d40659c25ecb50b = $8796f90736e175cb$export$4d40659c25ecb50b;
|
|
298
299
|
exports.Tooltip = Tooltip;
|
|
@@ -17,12 +17,12 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import React__default, { useRef, useEffect, useMemo } from "react";
|
|
21
|
-
import {
|
|
20
|
+
import React__default, { useRef, useEffect, useMemo, useLayoutEffect } from "react";
|
|
21
|
+
import { Text } from "../Text/index.mjs";
|
|
22
22
|
import { getComponentToken, pxToRem, classNames } from "../utilities/css.mjs";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
23
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, d as $f57aed4a881a3485$export$b47c3594eab58386, f as $2a41e45df1593e64$export$d39e1813b3bdd0e1 } from "./import-c4caaddf.mjs";
|
|
24
|
+
import { d as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, a as $3ef42575df84b30b$export$9d1611c77c2fe928, b as $bdb11010cef70236$export$f680877a34711e37 } from "./import-19bc38ac.mjs";
|
|
25
|
+
import { f as $6179b936705e76d3$export$ae780daf29e6d456, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c, j as $507fabe10e71c6fb$export$630ff653c5ada6a9, k as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./import-3faba3a6.mjs";
|
|
26
26
|
function $326e436e94273fe1$export$1c4b08e0eca38426(props, state) {
|
|
27
27
|
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
28
28
|
labelable: true
|
|
@@ -223,13 +223,13 @@ function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
|
|
|
223
223
|
close: hideTooltip
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
|
-
const Tooltip$1 = "
|
|
227
|
-
const text = "
|
|
228
|
-
const arrow = "
|
|
229
|
-
const top = "
|
|
230
|
-
const bottom = "
|
|
231
|
-
const left = "
|
|
232
|
-
const right = "
|
|
226
|
+
const Tooltip$1 = "_Tooltip_o5oku_5";
|
|
227
|
+
const text = "_text_o5oku_24";
|
|
228
|
+
const arrow = "_arrow_o5oku_30";
|
|
229
|
+
const top = "_top_o5oku_39";
|
|
230
|
+
const bottom = "_bottom_o5oku_40";
|
|
231
|
+
const left = "_left_o5oku_44";
|
|
232
|
+
const right = "_right_o5oku_45";
|
|
233
233
|
const styles = {
|
|
234
234
|
Tooltip: Tooltip$1,
|
|
235
235
|
text,
|
|
@@ -277,7 +277,7 @@ function TooltipInner(props) {
|
|
|
277
277
|
const { tooltipProps: tooltipPropsFromTooltip } = $326e436e94273fe1$export$1c4b08e0eca38426($3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps, props), tooltipTriggerState);
|
|
278
278
|
const tooltipProps = $3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps, tooltipPropsFromTooltip, tooltipPropsFromTrigger);
|
|
279
279
|
const style = __spreadValues(__spreadValues({}, tooltipProps.style), getComponentToken("tooltip", "container_padding", `${pxToRem(CONTAINER_PADDING)}rem`));
|
|
280
|
-
|
|
280
|
+
useLayoutEffect(() => {
|
|
281
281
|
updatePosition();
|
|
282
282
|
}, [content, updatePosition]);
|
|
283
283
|
return React__default.createElement("span", __spreadProps(__spreadValues({
|
|
@@ -295,5 +295,6 @@ function TooltipInner(props) {
|
|
|
295
295
|
}, arrowProps)));
|
|
296
296
|
}
|
|
297
297
|
export {
|
|
298
|
+
$8796f90736e175cb$export$4d40659c25ecb50b as $,
|
|
298
299
|
Tooltip as T
|
|
299
300
|
};
|
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
import React__default, { useMemo, useRef, useEffect, forwardRef, useImperativeHandle } from "react";
|
|
30
30
|
/*!
|
|
31
31
|
* OverlayScrollbars
|
|
32
|
-
* Version: 2.2.
|
|
32
|
+
* Version: 2.2.1
|
|
33
33
|
*
|
|
34
34
|
* Copyright (c) Rene Haas | KingSora.
|
|
35
35
|
* https://github.com/KingSora
|
|
@@ -2041,9 +2041,9 @@ const getScrollbarHandleLengthRatio = (t2, n2, o2, s2) => {
|
|
|
2041
2041
|
const r3 = n3[t3];
|
|
2042
2042
|
return Qt(0, Kt(1, c3 / (c3 + r3)));
|
|
2043
2043
|
}
|
|
2044
|
-
const e2 = o2 ? "
|
|
2045
|
-
const c2 =
|
|
2046
|
-
const r2 =
|
|
2044
|
+
const e2 = o2 ? "width" : "height";
|
|
2045
|
+
const c2 = getBoundingClientRect(t2)[e2];
|
|
2046
|
+
const r2 = getBoundingClientRect(n2)[e2];
|
|
2047
2047
|
return Qt(0, Kt(1, c2 / r2));
|
|
2048
2048
|
};
|
|
2049
2049
|
const getScrollbarHandleOffsetRatio = (t2, n2, o2, s2, e2, c2) => {
|
package/__chunks__/{overlayscrollbars-react.es-20563393.js → overlayscrollbars-react.es-f2a0bcff.js}
RENAMED
|
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
const React = require("react");
|
|
31
31
|
/*!
|
|
32
32
|
* OverlayScrollbars
|
|
33
|
-
* Version: 2.2.
|
|
33
|
+
* Version: 2.2.1
|
|
34
34
|
*
|
|
35
35
|
* Copyright (c) Rene Haas | KingSora.
|
|
36
36
|
* https://github.com/KingSora
|
|
@@ -2042,9 +2042,9 @@ const getScrollbarHandleLengthRatio = (t2, n2, o2, s2) => {
|
|
|
2042
2042
|
const r3 = n3[t3];
|
|
2043
2043
|
return Qt(0, Kt(1, c3 / (c3 + r3)));
|
|
2044
2044
|
}
|
|
2045
|
-
const e2 = o2 ? "
|
|
2046
|
-
const c2 =
|
|
2047
|
-
const r2 =
|
|
2045
|
+
const e2 = o2 ? "width" : "height";
|
|
2046
|
+
const c2 = getBoundingClientRect(t2)[e2];
|
|
2047
|
+
const r2 = getBoundingClientRect(n2)[e2];
|
|
2048
2048
|
return Qt(0, Kt(1, c2 / r2));
|
|
2049
2049
|
};
|
|
2050
2050
|
const getScrollbarHandleOffsetRatio = (t2, n2, o2, s2, e2, c2) => {
|
|
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
17
|
import React__default, { useContext, useMemo, useState, useEffect } from "react";
|
|
18
|
-
import {
|
|
18
|
+
import { e as $704cf1d3b684cc5c$export$535bd6ca7f90a273 } from "./import-19bc38ac.mjs";
|
|
19
19
|
class $5b160d28a433310d$export$c17fa47878dc55b6 {
|
|
20
20
|
/** Returns a localized string for the given key and locale. */
|
|
21
21
|
getStringForLocale(key, locale) {
|
|
@@ -210,7 +210,7 @@ function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
|
210
210
|
return formatter;
|
|
211
211
|
}
|
|
212
212
|
export {
|
|
213
|
-
$
|
|
214
|
-
$
|
|
215
|
-
$
|
|
213
|
+
$18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as $,
|
|
214
|
+
$fca6afa0e843324b$export$f12b703ca79dfbb1 as a,
|
|
215
|
+
$325a3faab7a68acd$export$a16aca283550c30d as b
|
|
216
216
|
};
|
|
@@ -216,6 +216,7 @@ const ezuiTokens = {
|
|
|
216
216
|
"theme.base.color.background.neutral.pressed": "#0b2780",
|
|
217
217
|
"theme.base.color.background.primary": "#164dff",
|
|
218
218
|
"theme.base.color.background.primary.bold": "#113abf",
|
|
219
|
+
"theme.base.color.background.primary.bolder": "#0b2780",
|
|
219
220
|
"theme.base.color.background.primary.hovered": "#113abf",
|
|
220
221
|
"theme.base.color.background.primary.pressed": "#0b2780",
|
|
221
222
|
"theme.base.color.background.primary.subtler": "#4571ff",
|
|
@@ -217,6 +217,7 @@ const ezuiTokens = {
|
|
|
217
217
|
"theme.base.color.background.neutral.pressed": "#0b2780",
|
|
218
218
|
"theme.base.color.background.primary": "#164dff",
|
|
219
219
|
"theme.base.color.background.primary.bold": "#113abf",
|
|
220
|
+
"theme.base.color.background.primary.bolder": "#0b2780",
|
|
220
221
|
"theme.base.color.background.primary.hovered": "#113abf",
|
|
221
222
|
"theme.base.color.background.primary.pressed": "#0b2780",
|
|
222
223
|
"theme.base.color.background.primary.subtler": "#4571ff",
|
|
@@ -4,6 +4,11 @@ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
|
4
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __knownSymbol = (name, symbol) => {
|
|
8
|
+
if (symbol = Symbol[name])
|
|
9
|
+
return symbol;
|
|
10
|
+
throw Error("Symbol." + name + " is not defined");
|
|
11
|
+
};
|
|
7
12
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
13
|
var __spreadValues = (a, b) => {
|
|
9
14
|
for (var prop in b || (b = {}))
|
|
@@ -29,11 +34,48 @@ var __objRest = (source, exclude) => {
|
|
|
29
34
|
}
|
|
30
35
|
return target;
|
|
31
36
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
var __await = function(promise, isYieldStar) {
|
|
38
|
+
this[0] = promise;
|
|
39
|
+
this[1] = isYieldStar;
|
|
40
|
+
};
|
|
41
|
+
var __yieldStar = (value) => {
|
|
42
|
+
var obj = value[__knownSymbol("asyncIterator")];
|
|
43
|
+
var isAwait = false;
|
|
44
|
+
var method;
|
|
45
|
+
var it = {};
|
|
46
|
+
if (obj == null) {
|
|
47
|
+
obj = value[__knownSymbol("iterator")]();
|
|
48
|
+
method = (k) => it[k] = (x) => obj[k](x);
|
|
49
|
+
} else {
|
|
50
|
+
obj = obj.call(value);
|
|
51
|
+
method = (k) => it[k] = (v) => {
|
|
52
|
+
if (isAwait) {
|
|
53
|
+
isAwait = false;
|
|
54
|
+
if (k === "throw")
|
|
55
|
+
throw v;
|
|
56
|
+
return v;
|
|
57
|
+
}
|
|
58
|
+
isAwait = true;
|
|
59
|
+
return {
|
|
60
|
+
done: false,
|
|
61
|
+
value: new __await(new Promise((resolve) => {
|
|
62
|
+
var x = obj[k](v);
|
|
63
|
+
if (!(x instanceof Object))
|
|
64
|
+
throw TypeError("Object expected");
|
|
65
|
+
resolve(x);
|
|
66
|
+
}), 1)
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
|
|
71
|
+
throw x;
|
|
72
|
+
}, "return" in obj && method("return"), it;
|
|
73
|
+
};
|
|
74
|
+
import { t as $62d8ded9296f3872$export$2bb74740c4e19def, u as $e9faafb641e167db$export$90fc3a17d93f704c, v as $2f04cbc44ee30ce0$export$53a0910f038337bd, w as $2f04cbc44ee30ce0$export$c826860796309d1b, a as $3ef42575df84b30b$export$9d1611c77c2fe928, x as $c87311424ea30a05$export$e1865c3bedcd822b, p as $c87311424ea30a05$export$9ac100e40613ea10, i as $7215afc6de606d6b$export$de79e2c695e052f3, b as $bdb11010cef70236$export$f680877a34711e37, d as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, o as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, $ as $bdb11010cef70236$export$b4cc09c592e8fdb8, q as $9daab02d461809db$export$683480f191c0e3ea } from "./import-19bc38ac.mjs";
|
|
75
|
+
import { h as $6a99195332edec8b$export$80f3e147d781571c, $ as $f6c31cce2adf654f$export$45712eceda6fad21, i as $8a26561d2877236e$export$c24ed0104d07eab9, j as $507fabe10e71c6fb$export$630ff653c5ada6a9, g as $9bf71ea28793e738$export$2d6ec8fc375ceafa, f as $6179b936705e76d3$export$ae780daf29e6d456, k as $507fabe10e71c6fb$export$b9b3dfddab17db27, l as $46d819fcbaf35654$export$8f71654801c2f7cd } from "./import-3faba3a6.mjs";
|
|
76
|
+
import { $ as $628037886ba31236$export$f9d5c8beee7d008d, a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "./import-c4caaddf.mjs";
|
|
35
77
|
import React__default, { useRef, useMemo, useEffect, useCallback, useState } from "react";
|
|
36
|
-
import {
|
|
78
|
+
import { b as $325a3faab7a68acd$export$a16aca283550c30d, $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, a as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./real-module-515df21d.mjs";
|
|
37
79
|
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./import-6a831ca1.mjs";
|
|
38
80
|
import { getComponentToken, pxToRem, getResponsiveValue } from "../utilities/css.mjs";
|
|
39
81
|
function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
|
|
@@ -730,7 +772,7 @@ $c1d7fb2ec91bae71$var$Item.getCollectionNode = function* getCollectionNode(props
|
|
|
730
772
|
element: child
|
|
731
773
|
});
|
|
732
774
|
});
|
|
733
|
-
yield* items;
|
|
775
|
+
yield* __yieldStar(items);
|
|
734
776
|
}
|
|
735
777
|
}
|
|
736
778
|
};
|
|
@@ -774,7 +816,7 @@ $9fc4852771d079eb$var$Section.getCollectionNode = function* getCollectionNode2(p
|
|
|
774
816
|
element: child
|
|
775
817
|
});
|
|
776
818
|
});
|
|
777
|
-
yield* items2;
|
|
819
|
+
yield* __yieldStar(items2);
|
|
778
820
|
}
|
|
779
821
|
}
|
|
780
822
|
};
|
|
@@ -791,11 +833,11 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
|
|
|
791
833
|
if (!items)
|
|
792
834
|
throw new Error("props.children was a function but props.items is missing");
|
|
793
835
|
for (let item of props.items)
|
|
794
|
-
yield* this.getFullNode({
|
|
836
|
+
yield* __yieldStar(this.getFullNode({
|
|
795
837
|
value: item
|
|
796
838
|
}, {
|
|
797
839
|
renderer: children
|
|
798
|
-
});
|
|
840
|
+
}));
|
|
799
841
|
} else {
|
|
800
842
|
let items2 = [];
|
|
801
843
|
React__default.Children.forEach(children, (child) => {
|
|
@@ -5,6 +5,11 @@ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
|
5
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __knownSymbol = (name, symbol) => {
|
|
9
|
+
if (symbol = Symbol[name])
|
|
10
|
+
return symbol;
|
|
11
|
+
throw Error("Symbol." + name + " is not defined");
|
|
12
|
+
};
|
|
8
13
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
14
|
var __spreadValues = (a, b) => {
|
|
10
15
|
for (var prop in b || (b = {}))
|
|
@@ -30,9 +35,46 @@ var __objRest = (source, exclude) => {
|
|
|
30
35
|
}
|
|
31
36
|
return target;
|
|
32
37
|
};
|
|
38
|
+
var __await = function(promise, isYieldStar) {
|
|
39
|
+
this[0] = promise;
|
|
40
|
+
this[1] = isYieldStar;
|
|
41
|
+
};
|
|
42
|
+
var __yieldStar = (value) => {
|
|
43
|
+
var obj = value[__knownSymbol("asyncIterator")];
|
|
44
|
+
var isAwait = false;
|
|
45
|
+
var method;
|
|
46
|
+
var it = {};
|
|
47
|
+
if (obj == null) {
|
|
48
|
+
obj = value[__knownSymbol("iterator")]();
|
|
49
|
+
method = (k) => it[k] = (x) => obj[k](x);
|
|
50
|
+
} else {
|
|
51
|
+
obj = obj.call(value);
|
|
52
|
+
method = (k) => it[k] = (v) => {
|
|
53
|
+
if (isAwait) {
|
|
54
|
+
isAwait = false;
|
|
55
|
+
if (k === "throw")
|
|
56
|
+
throw v;
|
|
57
|
+
return v;
|
|
58
|
+
}
|
|
59
|
+
isAwait = true;
|
|
60
|
+
return {
|
|
61
|
+
done: false,
|
|
62
|
+
value: new __await(new Promise((resolve) => {
|
|
63
|
+
var x = obj[k](v);
|
|
64
|
+
if (!(x instanceof Object))
|
|
65
|
+
throw TypeError("Object expected");
|
|
66
|
+
resolve(x);
|
|
67
|
+
}), 1)
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
|
|
72
|
+
throw x;
|
|
73
|
+
}, "return" in obj && method("return"), it;
|
|
74
|
+
};
|
|
33
75
|
const _import = require("./import-a1e0f814.js");
|
|
34
|
-
const _import$1 = require("./import-
|
|
35
|
-
const _import$2 = require("./import-
|
|
76
|
+
const _import$1 = require("./import-26676303.js");
|
|
77
|
+
const _import$2 = require("./import-0f8555a4.js");
|
|
36
78
|
const React = require("react");
|
|
37
79
|
const realModule = require("./real-module-e36b1436.js");
|
|
38
80
|
const _import$3 = require("./import-dea5a24d.js");
|
|
@@ -731,7 +773,7 @@ $c1d7fb2ec91bae71$var$Item.getCollectionNode = function* getCollectionNode(props
|
|
|
731
773
|
element: child
|
|
732
774
|
});
|
|
733
775
|
});
|
|
734
|
-
yield* items;
|
|
776
|
+
yield* __yieldStar(items);
|
|
735
777
|
}
|
|
736
778
|
}
|
|
737
779
|
};
|
|
@@ -775,7 +817,7 @@ $9fc4852771d079eb$var$Section.getCollectionNode = function* getCollectionNode2(p
|
|
|
775
817
|
element: child
|
|
776
818
|
});
|
|
777
819
|
});
|
|
778
|
-
yield* items2;
|
|
820
|
+
yield* __yieldStar(items2);
|
|
779
821
|
}
|
|
780
822
|
}
|
|
781
823
|
};
|
|
@@ -792,11 +834,11 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
|
|
|
792
834
|
if (!items)
|
|
793
835
|
throw new Error("props.children was a function but props.items is missing");
|
|
794
836
|
for (let item of props.items)
|
|
795
|
-
yield* this.getFullNode({
|
|
837
|
+
yield* __yieldStar(this.getFullNode({
|
|
796
838
|
value: item
|
|
797
839
|
}, {
|
|
798
840
|
renderer: children
|
|
799
|
-
});
|
|
841
|
+
}));
|
|
800
842
|
} else {
|
|
801
843
|
let items2 = [];
|
|
802
844
|
React.Children.forEach(children, (child) => {
|
package/package.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easypost/easy-ui",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.7",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"**/*.css"
|
|
6
6
|
],
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@easypost/easy-ui-icons": "1.0.0-alpha.
|
|
9
|
-
"@easypost/easy-ui-tokens": "1.0.0-alpha.
|
|
8
|
+
"@easypost/easy-ui-icons": "1.0.0-alpha.7",
|
|
9
|
+
"@easypost/easy-ui-tokens": "1.0.0-alpha.4",
|
|
10
10
|
"@react-aria/toast": "^3.0.0-beta.2",
|
|
11
11
|
"@react-aria/utils": "^3.18.0",
|
|
12
12
|
"@react-stately/toast": "^3.0.0-beta.1",
|
|
13
13
|
"@react-types/shared": "^3.18.0",
|
|
14
|
-
"@types/react": "^18.2.
|
|
15
|
-
"@types/react-dom": "^18.2.
|
|
14
|
+
"@types/react": "^18.2.17",
|
|
15
|
+
"@types/react-dom": "^18.2.7",
|
|
16
16
|
"lodash": "^4.17.21",
|
|
17
|
-
"overlayscrollbars": "^2.2.
|
|
18
|
-
"overlayscrollbars-react": "^0.5.
|
|
17
|
+
"overlayscrollbars": "^2.2.1",
|
|
18
|
+
"overlayscrollbars-react": "^0.5.1",
|
|
19
19
|
"react-aria": "^3.26.0",
|
|
20
|
+
"react-is": "^18.2.0",
|
|
20
21
|
"react-stately": "^3.24.0",
|
|
21
|
-
"react-syntax-highlighter": "^15.5.0"
|
|
22
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
23
|
+
"use-clipboard-copy": "^0.2.0"
|
|
22
24
|
},
|
|
23
25
|
"peerDependencies": {
|
|
24
26
|
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
|