@easypost/easy-ui 1.0.0-alpha.5 → 1.0.0-alpha.6
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 +8 -0
- package/Card/index.js +84 -5
- package/Card/index.mjs +84 -5
- package/Checkbox/index.js +26 -26
- package/Checkbox/index.mjs +24 -24
- package/CodeBlock/index.js +4 -4
- package/CodeBlock/index.mjs +4 -4
- 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 +8 -8
- package/Provider/index.mjs +8 -8
- 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/index.js +297 -8
- package/Tooltip/index.mjs +298 -9
- 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-2317befd.mjs} +26 -26
- package/__chunks__/{InputIcon-70dad3e5.js → InputIcon-d3963cf8.js} +29 -29
- package/__chunks__/{import-9c958e32.mjs → import-0561e1ba.mjs} +2 -2
- package/__chunks__/{import-fbe7cc7e.mjs → import-19bc38ac.mjs} +26 -26
- package/__chunks__/{import-d2e79ac1.mjs → import-29af6941.mjs} +3 -3
- package/__chunks__/{import-9581a2dc.js → import-2b302763.js} +43 -1
- package/__chunks__/{import-a6cadfe8.mjs → import-3d962a94.mjs} +57 -15
- package/__chunks__/{import-d52cd5cf.js → import-8b6c0bc7.js} +1 -1
- package/__chunks__/{import-87c465c9.js → import-a2023d8f.js} +1 -1
- package/__chunks__/{import-29edaaea.mjs → import-f1f4792a.mjs} +9 -9
- package/__chunks__/{UnstyledButton-981cd9af.mjs → index-29d7bca9.mjs} +2 -2
- package/__chunks__/{UnstyledButton-5bbb3c5e.js → index-3985350a.js} +1 -1
- 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__/{useTriggerWidth-9528009c.js → useTriggerWidth-156b038a.js} +48 -6
- package/__chunks__/{useTriggerWidth-29becc21.mjs → useTriggerWidth-addcd1d6.mjs} +71 -29
- package/package.json +6 -6
- package/style.css +1437 -1436
- 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/__chunks__/Tooltip-b4e23b78.mjs +0 -299
- package/__chunks__/Tooltip-c5076ca7.js +0 -298
|
@@ -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,6 +35,43 @@ 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 React = require("react");
|
|
34
76
|
const _import = require("./import-a1e0f814.js");
|
|
35
77
|
let $14c0b72509d70225$var$state = "default";
|
|
@@ -1281,7 +1323,7 @@ class $9bf71ea28793e738$var$Tree {
|
|
|
1281
1323
|
yield node;
|
|
1282
1324
|
if (node.children.size > 0)
|
|
1283
1325
|
for (let child of node.children)
|
|
1284
|
-
yield* this.traverse(child);
|
|
1326
|
+
yield* __yieldStar(this.traverse(child));
|
|
1285
1327
|
}
|
|
1286
1328
|
clone() {
|
|
1287
1329
|
let newTree = new $9bf71ea28793e738$var$Tree();
|
|
@@ -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,8 +34,45 @@ var __objRest = (source, exclude) => {
|
|
|
29
34
|
}
|
|
30
35
|
return target;
|
|
31
36
|
};
|
|
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
|
+
};
|
|
32
74
|
import React__default, { useState, useRef, useEffect, useMemo, useCallback, useContext } from "react";
|
|
33
|
-
import {
|
|
75
|
+
import { f as $03deb23ff14920c4$export$4eaf04e54aa8eed6, g as $8ae05eaa5c114e9c$export$7f54fc3180508a52, h as $6a7db85432448f7f$export$29bf1b5f2c56cf63, i as $7215afc6de606d6b$export$de79e2c695e052f3, j as $6a7db85432448f7f$export$60278871457622de, a as $3ef42575df84b30b$export$9d1611c77c2fe928, k as $ef06256079686ba0$export$f8aeda7b10753fa1, l as $c87311424ea30a05$export$fedb369cb70207f1, m as $bbed8b41f857bcc0$export$24490316f764c430, n as $e7801be82b4b2a53$export$4debdb1a3f0fa79e, o as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, p as $c87311424ea30a05$export$9ac100e40613ea10, e as $704cf1d3b684cc5c$export$535bd6ca7f90a273 } from "./import-19bc38ac.mjs";
|
|
34
76
|
let $14c0b72509d70225$var$state = "default";
|
|
35
77
|
let $14c0b72509d70225$var$savedUserSelect = "";
|
|
36
78
|
let $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -1280,7 +1322,7 @@ class $9bf71ea28793e738$var$Tree {
|
|
|
1280
1322
|
yield node;
|
|
1281
1323
|
if (node.children.size > 0)
|
|
1282
1324
|
for (let child of node.children)
|
|
1283
|
-
yield* this.traverse(child);
|
|
1325
|
+
yield* __yieldStar(this.traverse(child));
|
|
1284
1326
|
}
|
|
1285
1327
|
clone() {
|
|
1286
1328
|
let newTree = new $9bf71ea28793e738$var$Tree();
|
|
@@ -1376,19 +1418,19 @@ function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
|
|
|
1376
1418
|
};
|
|
1377
1419
|
}
|
|
1378
1420
|
export {
|
|
1379
|
-
$
|
|
1380
|
-
$
|
|
1421
|
+
$f6c31cce2adf654f$export$45712eceda6fad21 as $,
|
|
1422
|
+
$e6afbd83fe6ebbd2$export$4c014de7c8940b4c as a,
|
|
1381
1423
|
$9ab94262bd0047c7$export$420e68273165f4ec as b,
|
|
1382
|
-
$
|
|
1383
|
-
$
|
|
1384
|
-
$
|
|
1385
|
-
$
|
|
1386
|
-
$
|
|
1387
|
-
$
|
|
1388
|
-
$
|
|
1389
|
-
$
|
|
1390
|
-
$
|
|
1424
|
+
$e0b6e0b68ec7f50f$export$872b660ac5a1ff98 as c,
|
|
1425
|
+
$9bf71ea28793e738$export$1258395f99bf9cbf as d,
|
|
1426
|
+
$f7dceffc5ad7768b$export$4e328f61c538687f as e,
|
|
1427
|
+
$6179b936705e76d3$export$ae780daf29e6d456 as f,
|
|
1428
|
+
$9bf71ea28793e738$export$2d6ec8fc375ceafa as g,
|
|
1429
|
+
$6a99195332edec8b$export$80f3e147d781571c as h,
|
|
1430
|
+
$8a26561d2877236e$export$c24ed0104d07eab9 as i,
|
|
1431
|
+
$507fabe10e71c6fb$export$630ff653c5ada6a9 as j,
|
|
1432
|
+
$507fabe10e71c6fb$export$b9b3dfddab17db27 as k,
|
|
1391
1433
|
$46d819fcbaf35654$export$8f71654801c2f7cd as l,
|
|
1392
|
-
$
|
|
1393
|
-
$
|
|
1434
|
+
$507fabe10e71c6fb$export$8397ddfc504fdb9a as m,
|
|
1435
|
+
$507fabe10e71c6fb$export$98e20ec92f614cfe as n
|
|
1394
1436
|
};
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const _import$1 = require("./import-a1e0f814.js");
|
|
22
|
-
const _import = require("./import-
|
|
22
|
+
const _import = require("./import-2b302763.js");
|
|
23
23
|
const _import$2 = require("./import-dea5a24d.js");
|
|
24
24
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
25
25
|
let { isDisabled = false, isRequired = false, isReadOnly = false, value, name, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid" } = props;
|
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
const React = require("react");
|
|
34
34
|
const _import = require("./import-a1e0f814.js");
|
|
35
|
-
const _import$1 = require("./import-
|
|
35
|
+
const _import$1 = require("./import-2b302763.js");
|
|
36
36
|
const $k7QOs$reactdom = require("react-dom");
|
|
37
37
|
const _import$2 = require("./import-dea5a24d.js");
|
|
38
38
|
const realModule = require("./real-module-e36b1436.js");
|
|
@@ -30,11 +30,11 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
import React__default, { useState, useMemo, useCallback, useRef, useEffect, useContext } from "react";
|
|
33
|
-
import {
|
|
34
|
-
import { b as $9ab94262bd0047c7$export$420e68273165f4ec,
|
|
33
|
+
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928, o as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, q as $9daab02d461809db$export$683480f191c0e3ea, e as $704cf1d3b684cc5c$export$535bd6ca7f90a273, b as $bdb11010cef70236$export$f680877a34711e37, c as $313b98861ee5dd6c$export$d6875122194c7b44, l as $c87311424ea30a05$export$fedb369cb70207f1, r as $ff5963eb1fccf552$export$e08e3b67e392101e, s as $62d8ded9296f3872$export$cfa2225e87938781 } from "./import-19bc38ac.mjs";
|
|
34
|
+
import { b as $9ab94262bd0047c7$export$420e68273165f4ec, c as $e0b6e0b68ec7f50f$export$872b660ac5a1ff98, d as $9bf71ea28793e738$export$1258395f99bf9cbf } from "./import-3d962a94.mjs";
|
|
35
35
|
import $k7QOs$reactdom from "react-dom";
|
|
36
36
|
import { a as $9446cca9a3875146$export$7d15b64cf5a3a4c4, $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./import-6a831ca1.mjs";
|
|
37
|
-
import {
|
|
37
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, a as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./real-module-515df21d.mjs";
|
|
38
38
|
const $5c3e21d68f1c4674$var$styles = {
|
|
39
39
|
border: 0,
|
|
40
40
|
clip: "rect(0 0 0 0)",
|
|
@@ -1112,11 +1112,11 @@ function $fc909762b330b746$export$61c6a8c84e605fb6(props) {
|
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
1114
|
export {
|
|
1115
|
-
$
|
|
1116
|
-
$
|
|
1117
|
-
$
|
|
1118
|
-
$
|
|
1119
|
-
$
|
|
1120
|
-
$
|
|
1115
|
+
$628037886ba31236$export$f9d5c8beee7d008d as $,
|
|
1116
|
+
$fc909762b330b746$export$61c6a8c84e605fb6 as a,
|
|
1117
|
+
$f2f8a6077418541e$export$542a6fd13ac93354 as b,
|
|
1118
|
+
$f57aed4a881a3485$export$b47c3594eab58386 as c,
|
|
1119
|
+
$86ea4cb521eb2e37$export$2317d149ed6f78c4 as d,
|
|
1120
|
+
$5c3e21d68f1c4674$export$a966af930f325cab as e,
|
|
1121
1121
|
$2a41e45df1593e64$export$d39e1813b3bdd0e1 as f
|
|
1122
1122
|
};
|
|
@@ -29,11 +29,11 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import {
|
|
32
|
+
import { a as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, z as $5dc95899b306f630$export$c9058316764c140e } from "./import-19bc38ac.mjs";
|
|
33
33
|
import React__default, { forwardRef, useRef } from "react";
|
|
34
34
|
import { classNames } from "../utilities/css.mjs";
|
|
35
35
|
import { o as omit } from "./omit-f17deb8f.mjs";
|
|
36
|
-
import {
|
|
36
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./import-3d962a94.mjs";
|
|
37
37
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
38
38
|
let {
|
|
39
39
|
elementType = "button",
|
|
@@ -34,7 +34,7 @@ const _import$1 = require("./import-a1e0f814.js");
|
|
|
34
34
|
const React = require("react");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
36
|
const omit = require("./omit-fca26542.js");
|
|
37
|
-
const _import = require("./import-
|
|
37
|
+
const _import = require("./import-2b302763.js");
|
|
38
38
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
39
39
|
let {
|
|
40
40
|
elementType = "button",
|
|
@@ -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
|
};
|
|
@@ -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-2b302763.js");
|
|
77
|
+
const _import$2 = require("./import-a2023d8f.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) => {
|
|
@@ -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-3d962a94.mjs";
|
|
76
|
+
import { $ as $628037886ba31236$export$f9d5c8beee7d008d, a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "./import-f1f4792a.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) => {
|
|
@@ -1961,29 +2003,29 @@ function useTriggerWidth(triggerRef) {
|
|
|
1961
2003
|
return triggerWidth;
|
|
1962
2004
|
}
|
|
1963
2005
|
export {
|
|
1964
|
-
$
|
|
1965
|
-
|
|
2006
|
+
$7af3f5b51489e0b5$export$253fe78d46329472 as $,
|
|
2007
|
+
DEFAULT_MAX_ITEMS_UNTIL_SCROLL as D,
|
|
1966
2008
|
ITEM_HEIGHT as I,
|
|
1967
2009
|
OVERLAY_PADDING_FROM_CONTAINER as O,
|
|
1968
2010
|
Y_PADDING_INSIDE_OVERLAY as Y,
|
|
1969
|
-
$
|
|
1970
|
-
$
|
|
1971
|
-
$
|
|
1972
|
-
$
|
|
1973
|
-
$
|
|
1974
|
-
$
|
|
1975
|
-
$
|
|
1976
|
-
$
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
$
|
|
1985
|
-
$
|
|
1986
|
-
$
|
|
1987
|
-
|
|
2011
|
+
$7613b1592d41b092$export$6cd28814d92fa9c9 as a,
|
|
2012
|
+
$d496c0a20b6e58ec$export$6c8a5aaad13c9852 as b,
|
|
2013
|
+
$c1d7fb2ec91bae71$export$6d08773d2e66f8f2 as c,
|
|
2014
|
+
$a2e5df62f93c7633$export$9d32628fc2aea7da as d,
|
|
2015
|
+
$9fc4852771d079eb$export$6e2c8f0811a474ce as e,
|
|
2016
|
+
$3e5eb2498db5b506$export$73f7a44322579622 as f,
|
|
2017
|
+
$f4b273590fab9f93$export$52210f68a14655d0 as g,
|
|
2018
|
+
$d5336fe17ce95402$export$38eaa17faae8f579 as h,
|
|
2019
|
+
getUnmergedPopoverStyles as i,
|
|
2020
|
+
DEFAULT_PLACEMENT as j,
|
|
2021
|
+
DEFAULT_WIDTH as k,
|
|
2022
|
+
OVERLAY_OFFSET as l,
|
|
2023
|
+
$a28c903ee9ad8dc5$export$79fefeb1c2091ac3 as m,
|
|
2024
|
+
$168583247155ddda$export$dc9c12ed27dd1b49 as n,
|
|
2025
|
+
$982254629710d113$export$b95089534ab7c1fd as o,
|
|
2026
|
+
$453cc9f0df89c0a5$export$77d5aafae4e095b2 as p,
|
|
2027
|
+
$880e95eb8b93ba9a$export$ecf600387e221c37 as q,
|
|
2028
|
+
$2a25aae57d74318e$export$a05409b8bb224a5a as r,
|
|
2029
|
+
$fb3050f43d946246$export$e32c88dfddc6e1d8 as s,
|
|
1988
2030
|
useTriggerWidth as u
|
|
1989
2031
|
};
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easypost/easy-ui",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
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.6",
|
|
9
9
|
"@easypost/easy-ui-tokens": "1.0.0-alpha.3",
|
|
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.15",
|
|
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
20
|
"react-stately": "^3.24.0",
|
|
21
21
|
"react-syntax-highlighter": "^15.5.0"
|