@easypost/easy-ui 1.0.0-alpha.4 → 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 +32 -26
- package/Badge/index.mjs +32 -26
- package/Banner/index.js +15 -16
- package/Banner/index.mjs +15 -16
- package/Button/Button.d.ts +61 -0
- package/Button/Button.d.ts.map +1 -1
- package/Button/index.js +34 -69
- package/Button/index.mjs +33 -68
- package/CHANGELOG.md +21 -0
- package/Card/index.js +84 -5
- package/Card/index.mjs +84 -5
- package/Checkbox/index.js +84 -72
- package/Checkbox/index.mjs +84 -72
- package/CodeBlock/index.js +43 -49
- package/CodeBlock/index.mjs +43 -49
- package/DropdownButton/DropdownButton.d.ts +48 -0
- package/DropdownButton/DropdownButton.d.ts.map +1 -1
- package/DropdownButton/index.js +29 -101
- package/DropdownButton/index.mjs +29 -85
- package/HorizontalGrid/index.js +11 -31
- package/HorizontalGrid/index.mjs +11 -31
- 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 +26 -43
- package/IconButton/index.mjs +25 -42
- package/InputField/Label.d.ts +2 -2
- package/InputField/index.js +282 -10
- package/InputField/index.mjs +266 -10
- package/InputField/utilities.d.ts +1 -1
- package/InputField/utilities.d.ts.map +1 -1
- package/Menu/MenuOverlay.d.ts.map +1 -1
- package/Menu/index.js +178 -1958
- package/Menu/index.mjs +168 -1948
- package/Menu/utilities.d.ts +11 -0
- package/Menu/utilities.d.ts.map +1 -0
- package/Notification/index.js +1534 -14
- package/Notification/index.mjs +1518 -14
- package/Provider/index.js +15 -15
- package/Provider/index.mjs +15 -15
- package/RadioGroup/index.js +63 -63
- package/RadioGroup/index.mjs +63 -63
- package/Select/Select.d.ts +88 -0
- package/Select/Select.d.ts.map +1 -0
- package/Select/Select.stories.d.ts +17 -0
- package/Select/Select.stories.d.ts.map +1 -0
- package/Select/Select.test.d.ts +2 -0
- package/Select/Select.test.d.ts.map +1 -0
- package/Select/SelectContext.d.ts +14 -0
- package/Select/SelectContext.d.ts.map +1 -0
- package/Select/SelectField.d.ts +62 -0
- package/Select/SelectField.d.ts.map +1 -0
- package/Select/SelectOption.d.ts +23 -0
- package/Select/SelectOption.d.ts.map +1 -0
- package/Select/SelectOverlay.d.ts +3 -0
- package/Select/SelectOverlay.d.ts.map +1 -0
- package/Select/SelectSection.d.ts +22 -0
- package/Select/SelectSection.d.ts.map +1 -0
- package/Select/SelectTrigger.d.ts +30 -0
- package/Select/SelectTrigger.d.ts.map +1 -0
- package/Select/index.d.ts +2 -0
- package/Select/index.d.ts.map +1 -0
- package/Select/index.js +816 -0
- package/Select/index.mjs +816 -0
- package/SelectorErrorTooltip/index.js +102 -11
- package/SelectorErrorTooltip/index.mjs +86 -11
- package/Text/index.js +85 -4
- package/Text/index.mjs +85 -4
- package/TextField/index.js +19 -38
- package/TextField/index.mjs +19 -38
- package/Textarea/index.js +20 -37
- package/Textarea/index.mjs +20 -37
- package/Theme/index.js +145 -9
- package/Theme/index.mjs +145 -9
- package/Toggle/index.js +51 -50
- package/Toggle/index.mjs +51 -50
- package/Tooltip/index.js +299 -10
- package/Tooltip/index.mjs +299 -10
- package/UnstyledButton/index.js +4 -4
- package/UnstyledButton/index.mjs +3 -3
- package/VerticalStack/index.js +13 -47
- package/VerticalStack/index.mjs +13 -47
- package/__chunks__/ExpandMore400-7c5263a4.mjs +49 -0
- package/__chunks__/ExpandMore400-92646971.js +65 -0
- package/__chunks__/InputIcon-2317befd.mjs +148 -0
- package/__chunks__/InputIcon-d3963cf8.js +147 -0
- package/__chunks__/{import-e7f45c7e.mjs → import-0561e1ba.mjs} +3 -3
- package/__chunks__/{import-b7971a11.mjs → import-19bc38ac.mjs} +72 -34
- package/__chunks__/{import-01299af6.js → import-24a482e1.js} +3 -2
- package/__chunks__/{import-baa3cd0c.mjs → import-29af6941.mjs} +4 -3
- package/__chunks__/{import-0d1b4d93.js → import-2b302763.js} +193 -141
- package/__chunks__/{import-ab878fb6.mjs → import-3d962a94.mjs} +205 -153
- package/__chunks__/{import-86330a7c.mjs → import-6a831ca1.mjs} +16 -15
- package/__chunks__/{import-7545401a.js → import-8b6c0bc7.js} +3 -3
- package/__chunks__/{import-63bf0645.js → import-a1e0f814.js} +47 -9
- package/__chunks__/{import-3ab42f86.js → import-a2023d8f.js} +35 -22
- package/__chunks__/{import-76076ca6.js → import-dea5a24d.js} +15 -14
- package/__chunks__/{import-856e0385.mjs → import-f1f4792a.mjs} +36 -23
- package/__chunks__/{UnstyledButton-883f0c6c.mjs → index-29d7bca9.mjs} +17 -42
- package/__chunks__/{UnstyledButton-96172ec0.js → index-3985350a.js} +17 -42
- 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-e4cd2301.mjs → real-module-515df21d.mjs} +1 -1
- package/__chunks__/{real-module-ae2a4342.js → real-module-e36b1436.js} +1 -1
- package/__chunks__/useTriggerWidth-156b038a.js +2030 -0
- package/__chunks__/useTriggerWidth-addcd1d6.mjs +2031 -0
- package/package.json +11 -11
- package/style.css +1423 -1196
- package/utilities/css.js +14 -58
- package/utilities/css.mjs +14 -58
- package/__chunks__/Card-7bbd41e0.mjs +0 -110
- package/__chunks__/Card-dac53c75.js +0 -109
- package/__chunks__/HorizontalStack-a441c63f.mjs +0 -80
- package/__chunks__/HorizontalStack-a862839b.js +0 -79
- package/__chunks__/Icon-3d00481a.js +0 -44
- package/__chunks__/Icon-a75b5201.mjs +0 -45
- package/__chunks__/InputField-4fbaae06.js +0 -487
- package/__chunks__/InputField-a272f602.mjs +0 -472
- package/__chunks__/Notification-b8eafec6.mjs +0 -1456
- package/__chunks__/Notification-c5b34eb3.js +0 -1471
- package/__chunks__/SelectorErrorTooltip-43c5e29e.js +0 -84
- package/__chunks__/SelectorErrorTooltip-b6204987.mjs +0 -69
- package/__chunks__/Text-1ae70c19.js +0 -102
- package/__chunks__/Text-4ae50d5c.mjs +0 -103
- package/__chunks__/Theme-4e498252.mjs +0 -132
- package/__chunks__/Theme-751e5575.js +0 -131
- package/__chunks__/Tooltip-bd55165e.js +0 -317
- package/__chunks__/Tooltip-f7e67b21.mjs +0 -318
|
@@ -1,15 +1,106 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __spreadValues = (a, b) => {
|
|
8
|
+
for (var prop in b || (b = {}))
|
|
9
|
+
if (__hasOwnProp.call(b, prop))
|
|
10
|
+
__defNormalProp(a, prop, b[prop]);
|
|
11
|
+
if (__getOwnPropSymbols)
|
|
12
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
+
if (__propIsEnum.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
}
|
|
16
|
+
return a;
|
|
17
|
+
};
|
|
2
18
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
require("
|
|
5
|
-
require("../
|
|
19
|
+
const React = require("react");
|
|
20
|
+
const Icon_index = require("../Icon/index.js");
|
|
21
|
+
const Text_index = require("../Text/index.js");
|
|
22
|
+
const Tooltip_index = require("../Tooltip/index.js");
|
|
6
23
|
require("../utilities/css.js");
|
|
7
|
-
require("../__chunks__/
|
|
8
|
-
require("../__chunks__/
|
|
9
|
-
require("../__chunks__/import-
|
|
10
|
-
require("../__chunks__/import-63bf0645.js");
|
|
11
|
-
require("../__chunks__/import-0d1b4d93.js");
|
|
24
|
+
require("../__chunks__/import-a2023d8f.js");
|
|
25
|
+
require("../__chunks__/import-a1e0f814.js");
|
|
26
|
+
require("../__chunks__/import-2b302763.js");
|
|
12
27
|
require("react-dom");
|
|
13
|
-
require("../__chunks__/import-
|
|
14
|
-
require("../__chunks__/real-module-
|
|
15
|
-
|
|
28
|
+
require("../__chunks__/import-dea5a24d.js");
|
|
29
|
+
require("../__chunks__/real-module-e36b1436.js");
|
|
30
|
+
function _interopNamespaceDefault(e) {
|
|
31
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
32
|
+
if (e) {
|
|
33
|
+
for (const k in e) {
|
|
34
|
+
if (k !== "default") {
|
|
35
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
36
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: () => e[k]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
n.default = e;
|
|
44
|
+
return Object.freeze(n);
|
|
45
|
+
}
|
|
46
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
47
|
+
var __defProp2 = Object.defineProperty;
|
|
48
|
+
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
49
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
50
|
+
var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
|
|
51
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
configurable: true,
|
|
54
|
+
writable: true,
|
|
55
|
+
value
|
|
56
|
+
}) : obj[key] = value;
|
|
57
|
+
var __spreadValues2 = (a, b) => {
|
|
58
|
+
for (var prop in b || (b = {}))
|
|
59
|
+
if (__hasOwnProp2.call(b, prop))
|
|
60
|
+
__defNormalProp2(a, prop, b[prop]);
|
|
61
|
+
if (__getOwnPropSymbols2)
|
|
62
|
+
for (var prop of __getOwnPropSymbols2(b)) {
|
|
63
|
+
if (__propIsEnum2.call(b, prop))
|
|
64
|
+
__defNormalProp2(a, prop, b[prop]);
|
|
65
|
+
}
|
|
66
|
+
return a;
|
|
67
|
+
};
|
|
68
|
+
var __objRest = (source, exclude) => {
|
|
69
|
+
var target = {};
|
|
70
|
+
for (var prop in source)
|
|
71
|
+
if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
72
|
+
target[prop] = source[prop];
|
|
73
|
+
if (source != null && __getOwnPropSymbols2)
|
|
74
|
+
for (var prop of __getOwnPropSymbols2(source)) {
|
|
75
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum2.call(source, prop))
|
|
76
|
+
target[prop] = source[prop];
|
|
77
|
+
}
|
|
78
|
+
return target;
|
|
79
|
+
};
|
|
80
|
+
const ErrorFill = (_a) => {
|
|
81
|
+
var _b = _a, { title, titleId } = _b, props = __objRest(_b, ["title", "titleId"]);
|
|
82
|
+
return React__namespace.createElement("svg", __spreadValues2({
|
|
83
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
84
|
+
viewBox: "0 -960 960 960",
|
|
85
|
+
"aria-labelledby": titleId
|
|
86
|
+
}, props), title ? React__namespace.createElement("title", {
|
|
87
|
+
id: titleId
|
|
88
|
+
}, title) : null, React__namespace.createElement("path", {
|
|
89
|
+
d: "M479.982-290.77q11.902 0 19.575-7.655 7.673-7.656 7.673-19.558 0-11.902-7.655-19.575t-19.557-7.673q-11.902 0-19.575 7.656-7.673 7.655-7.673 19.557 0 11.902 7.655 19.575t19.557 7.673Zm-20.443-141.076h45.383v-249.538h-45.383v249.538Zm20.794 331.845q-78.955 0-147.897-29.92t-120.755-81.71q-51.814-51.791-81.747-120.777t-29.933-148.025q0-78.655 29.92-147.864t81.71-120.522q51.791-51.314 120.777-81.247t148.025-29.933q78.655 0 147.864 29.92t120.522 81.21q51.314 51.291 81.247 120.629 29.933 69.337 29.933 147.907 0 78.955-29.92 147.897t-81.21 120.571q-51.291 51.629-120.629 81.746-69.337 30.118-147.907 30.118Z"
|
|
90
|
+
}));
|
|
91
|
+
};
|
|
92
|
+
const SelectorErrorTooltip$1 = "_SelectorErrorTooltip_qzv8t_5";
|
|
93
|
+
const styles = {
|
|
94
|
+
SelectorErrorTooltip: SelectorErrorTooltip$1
|
|
95
|
+
};
|
|
96
|
+
function SelectorErrorTooltip(props) {
|
|
97
|
+
return React.createElement(Tooltip_index.Tooltip, __spreadValues({}, props), React.createElement("span", {
|
|
98
|
+
tabIndex: 0,
|
|
99
|
+
className: styles.SelectorErrorTooltip
|
|
100
|
+
}, React.createElement(Text_index.Text, {
|
|
101
|
+
visuallyHidden: true
|
|
102
|
+
}, "Error"), React.createElement(Icon_index.Icon, {
|
|
103
|
+
symbol: ErrorFill
|
|
104
|
+
})));
|
|
105
|
+
}
|
|
106
|
+
exports.SelectorErrorTooltip = SelectorErrorTooltip;
|
|
@@ -1,15 +1,90 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
import * as React from "react";
|
|
18
|
+
import React__default from "react";
|
|
19
|
+
import { Icon } from "../Icon/index.mjs";
|
|
20
|
+
import { Text } from "../Text/index.mjs";
|
|
21
|
+
import { Tooltip } from "../Tooltip/index.mjs";
|
|
4
22
|
import "../utilities/css.mjs";
|
|
5
|
-
import "../__chunks__/
|
|
6
|
-
import "../__chunks__/
|
|
7
|
-
import "../__chunks__/import-
|
|
8
|
-
import "../__chunks__/import-b7971a11.mjs";
|
|
9
|
-
import "../__chunks__/import-ab878fb6.mjs";
|
|
23
|
+
import "../__chunks__/import-f1f4792a.mjs";
|
|
24
|
+
import "../__chunks__/import-19bc38ac.mjs";
|
|
25
|
+
import "../__chunks__/import-3d962a94.mjs";
|
|
10
26
|
import "react-dom";
|
|
11
|
-
import "../__chunks__/import-
|
|
12
|
-
import "../__chunks__/real-module-
|
|
27
|
+
import "../__chunks__/import-6a831ca1.mjs";
|
|
28
|
+
import "../__chunks__/real-module-515df21d.mjs";
|
|
29
|
+
var __defProp2 = Object.defineProperty;
|
|
30
|
+
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
31
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
32
|
+
var __propIsEnum2 = Object.prototype.propertyIsEnumerable;
|
|
33
|
+
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
value
|
|
38
|
+
}) : obj[key] = value;
|
|
39
|
+
var __spreadValues2 = (a, b) => {
|
|
40
|
+
for (var prop in b || (b = {}))
|
|
41
|
+
if (__hasOwnProp2.call(b, prop))
|
|
42
|
+
__defNormalProp2(a, prop, b[prop]);
|
|
43
|
+
if (__getOwnPropSymbols2)
|
|
44
|
+
for (var prop of __getOwnPropSymbols2(b)) {
|
|
45
|
+
if (__propIsEnum2.call(b, prop))
|
|
46
|
+
__defNormalProp2(a, prop, b[prop]);
|
|
47
|
+
}
|
|
48
|
+
return a;
|
|
49
|
+
};
|
|
50
|
+
var __objRest = (source, exclude) => {
|
|
51
|
+
var target = {};
|
|
52
|
+
for (var prop in source)
|
|
53
|
+
if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
54
|
+
target[prop] = source[prop];
|
|
55
|
+
if (source != null && __getOwnPropSymbols2)
|
|
56
|
+
for (var prop of __getOwnPropSymbols2(source)) {
|
|
57
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum2.call(source, prop))
|
|
58
|
+
target[prop] = source[prop];
|
|
59
|
+
}
|
|
60
|
+
return target;
|
|
61
|
+
};
|
|
62
|
+
const ErrorFill = (_a) => {
|
|
63
|
+
var _b = _a, { title, titleId } = _b, props = __objRest(_b, ["title", "titleId"]);
|
|
64
|
+
return React.createElement("svg", __spreadValues2({
|
|
65
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
66
|
+
viewBox: "0 -960 960 960",
|
|
67
|
+
"aria-labelledby": titleId
|
|
68
|
+
}, props), title ? React.createElement("title", {
|
|
69
|
+
id: titleId
|
|
70
|
+
}, title) : null, React.createElement("path", {
|
|
71
|
+
d: "M479.982-290.77q11.902 0 19.575-7.655 7.673-7.656 7.673-19.558 0-11.902-7.655-19.575t-19.557-7.673q-11.902 0-19.575 7.656-7.673 7.655-7.673 19.557 0 11.902 7.655 19.575t19.557 7.673Zm-20.443-141.076h45.383v-249.538h-45.383v249.538Zm20.794 331.845q-78.955 0-147.897-29.92t-120.755-81.71q-51.814-51.791-81.747-120.777t-29.933-148.025q0-78.655 29.92-147.864t81.71-120.522q51.791-51.314 120.777-81.247t148.025-29.933q78.655 0 147.864 29.92t120.522 81.21q51.314 51.291 81.247 120.629 29.933 69.337 29.933 147.907 0 78.955-29.92 147.897t-81.21 120.571q-51.291 51.629-120.629 81.746-69.337 30.118-147.907 30.118Z"
|
|
72
|
+
}));
|
|
73
|
+
};
|
|
74
|
+
const SelectorErrorTooltip$1 = "_SelectorErrorTooltip_qzv8t_5";
|
|
75
|
+
const styles = {
|
|
76
|
+
SelectorErrorTooltip: SelectorErrorTooltip$1
|
|
77
|
+
};
|
|
78
|
+
function SelectorErrorTooltip(props) {
|
|
79
|
+
return React__default.createElement(Tooltip, __spreadValues({}, props), React__default.createElement("span", {
|
|
80
|
+
tabIndex: 0,
|
|
81
|
+
className: styles.SelectorErrorTooltip
|
|
82
|
+
}, React__default.createElement(Text, {
|
|
83
|
+
visuallyHidden: true
|
|
84
|
+
}, "Error"), React__default.createElement(Icon, {
|
|
85
|
+
symbol: ErrorFill
|
|
86
|
+
})));
|
|
87
|
+
}
|
|
13
88
|
export {
|
|
14
|
-
|
|
89
|
+
SelectorErrorTooltip
|
|
15
90
|
};
|
package/Text/index.js
CHANGED
|
@@ -1,6 +1,87 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __spreadValues = (a, b) => {
|
|
8
|
+
for (var prop in b || (b = {}))
|
|
9
|
+
if (__hasOwnProp.call(b, prop))
|
|
10
|
+
__defNormalProp(a, prop, b[prop]);
|
|
11
|
+
if (__getOwnPropSymbols)
|
|
12
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
+
if (__propIsEnum.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
}
|
|
16
|
+
return a;
|
|
17
|
+
};
|
|
2
18
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
require("
|
|
5
|
-
|
|
6
|
-
|
|
19
|
+
const React = require("react");
|
|
20
|
+
const utilities_css = require("../utilities/css.js");
|
|
21
|
+
const Text$1 = "_Text_wcfiy_5";
|
|
22
|
+
const heading1 = "_heading1_wcfiy_13";
|
|
23
|
+
const heading2 = "_heading2_wcfiy_30";
|
|
24
|
+
const heading3 = "_heading3_wcfiy_47";
|
|
25
|
+
const heading4 = "_heading4_wcfiy_64";
|
|
26
|
+
const heading5 = "_heading5_wcfiy_72";
|
|
27
|
+
const subtitle1 = "_subtitle1_wcfiy_80";
|
|
28
|
+
const subtitle2 = "_subtitle2_wcfiy_88";
|
|
29
|
+
const body1 = "_body1_wcfiy_96";
|
|
30
|
+
const body2 = "_body2_wcfiy_104";
|
|
31
|
+
const caption = "_caption_wcfiy_112";
|
|
32
|
+
const overline = "_overline_wcfiy_120";
|
|
33
|
+
const button = "_button_wcfiy_128";
|
|
34
|
+
const normal = "_normal_wcfiy_144";
|
|
35
|
+
const medium = "_medium_wcfiy_148";
|
|
36
|
+
const semibold = "_semibold_wcfiy_152";
|
|
37
|
+
const bold = "_bold_wcfiy_156";
|
|
38
|
+
const truncate = "_truncate_wcfiy_160";
|
|
39
|
+
const block = "_block_wcfiy_166";
|
|
40
|
+
const visuallyHidden = "_visuallyHidden_wcfiy_170";
|
|
41
|
+
const start = "_start_wcfiy_183";
|
|
42
|
+
const center = "_center_wcfiy_187";
|
|
43
|
+
const end = "_end_wcfiy_191";
|
|
44
|
+
const justify = "_justify_wcfiy_195";
|
|
45
|
+
const numeric = "_numeric_wcfiy_203";
|
|
46
|
+
const styles = {
|
|
47
|
+
Text: Text$1,
|
|
48
|
+
heading1,
|
|
49
|
+
heading2,
|
|
50
|
+
heading3,
|
|
51
|
+
heading4,
|
|
52
|
+
heading5,
|
|
53
|
+
subtitle1,
|
|
54
|
+
subtitle2,
|
|
55
|
+
body1,
|
|
56
|
+
body2,
|
|
57
|
+
caption,
|
|
58
|
+
overline,
|
|
59
|
+
button,
|
|
60
|
+
"small-button": "_small-button_wcfiy_136",
|
|
61
|
+
normal,
|
|
62
|
+
medium,
|
|
63
|
+
semibold,
|
|
64
|
+
bold,
|
|
65
|
+
truncate,
|
|
66
|
+
block,
|
|
67
|
+
visuallyHidden,
|
|
68
|
+
start,
|
|
69
|
+
center,
|
|
70
|
+
end,
|
|
71
|
+
justify,
|
|
72
|
+
"break": "_break_wcfiy_199",
|
|
73
|
+
numeric
|
|
74
|
+
};
|
|
75
|
+
function Text({ alignment, as: Component = "span", breakWord = false, children, color, id, truncate: truncate2 = false, variant, visuallyHidden: visuallyHidden2 = false, weight }) {
|
|
76
|
+
const className = utilities_css.classNames(styles.Text, variant && styles[cleanVariant(variant)], weight && styles[weight], (alignment || truncate2) && styles.block, alignment && styles[alignment], breakWord && styles.break, truncate2 && styles.truncate, visuallyHidden2 && styles.visuallyHidden);
|
|
77
|
+
const style = __spreadValues({}, utilities_css.getComponentThemeToken("text", "color", "color.text", color));
|
|
78
|
+
return React.createElement(Component, {
|
|
79
|
+
className,
|
|
80
|
+
style,
|
|
81
|
+
id: id ? id : void 0
|
|
82
|
+
}, children);
|
|
83
|
+
}
|
|
84
|
+
function cleanVariant(variant) {
|
|
85
|
+
return variant.replace(/_/, "-");
|
|
86
|
+
}
|
|
87
|
+
exports.Text = Text;
|
package/Text/index.mjs
CHANGED
|
@@ -1,6 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
import React__default from "react";
|
|
18
|
+
import { classNames, getComponentThemeToken } from "../utilities/css.mjs";
|
|
19
|
+
const Text$1 = "_Text_wcfiy_5";
|
|
20
|
+
const heading1 = "_heading1_wcfiy_13";
|
|
21
|
+
const heading2 = "_heading2_wcfiy_30";
|
|
22
|
+
const heading3 = "_heading3_wcfiy_47";
|
|
23
|
+
const heading4 = "_heading4_wcfiy_64";
|
|
24
|
+
const heading5 = "_heading5_wcfiy_72";
|
|
25
|
+
const subtitle1 = "_subtitle1_wcfiy_80";
|
|
26
|
+
const subtitle2 = "_subtitle2_wcfiy_88";
|
|
27
|
+
const body1 = "_body1_wcfiy_96";
|
|
28
|
+
const body2 = "_body2_wcfiy_104";
|
|
29
|
+
const caption = "_caption_wcfiy_112";
|
|
30
|
+
const overline = "_overline_wcfiy_120";
|
|
31
|
+
const button = "_button_wcfiy_128";
|
|
32
|
+
const normal = "_normal_wcfiy_144";
|
|
33
|
+
const medium = "_medium_wcfiy_148";
|
|
34
|
+
const semibold = "_semibold_wcfiy_152";
|
|
35
|
+
const bold = "_bold_wcfiy_156";
|
|
36
|
+
const truncate = "_truncate_wcfiy_160";
|
|
37
|
+
const block = "_block_wcfiy_166";
|
|
38
|
+
const visuallyHidden = "_visuallyHidden_wcfiy_170";
|
|
39
|
+
const start = "_start_wcfiy_183";
|
|
40
|
+
const center = "_center_wcfiy_187";
|
|
41
|
+
const end = "_end_wcfiy_191";
|
|
42
|
+
const justify = "_justify_wcfiy_195";
|
|
43
|
+
const numeric = "_numeric_wcfiy_203";
|
|
44
|
+
const styles = {
|
|
45
|
+
Text: Text$1,
|
|
46
|
+
heading1,
|
|
47
|
+
heading2,
|
|
48
|
+
heading3,
|
|
49
|
+
heading4,
|
|
50
|
+
heading5,
|
|
51
|
+
subtitle1,
|
|
52
|
+
subtitle2,
|
|
53
|
+
body1,
|
|
54
|
+
body2,
|
|
55
|
+
caption,
|
|
56
|
+
overline,
|
|
57
|
+
button,
|
|
58
|
+
"small-button": "_small-button_wcfiy_136",
|
|
59
|
+
normal,
|
|
60
|
+
medium,
|
|
61
|
+
semibold,
|
|
62
|
+
bold,
|
|
63
|
+
truncate,
|
|
64
|
+
block,
|
|
65
|
+
visuallyHidden,
|
|
66
|
+
start,
|
|
67
|
+
center,
|
|
68
|
+
end,
|
|
69
|
+
justify,
|
|
70
|
+
"break": "_break_wcfiy_199",
|
|
71
|
+
numeric
|
|
72
|
+
};
|
|
73
|
+
function Text({ alignment, as: Component = "span", breakWord = false, children, color, id, truncate: truncate2 = false, variant, visuallyHidden: visuallyHidden2 = false, weight }) {
|
|
74
|
+
const className = classNames(styles.Text, variant && styles[cleanVariant(variant)], weight && styles[weight], (alignment || truncate2) && styles.block, alignment && styles[alignment], breakWord && styles.break, truncate2 && styles.truncate, visuallyHidden2 && styles.visuallyHidden);
|
|
75
|
+
const style = __spreadValues({}, getComponentThemeToken("text", "color", "color.text", color));
|
|
76
|
+
return React__default.createElement(Component, {
|
|
77
|
+
className,
|
|
78
|
+
style,
|
|
79
|
+
id: id ? id : void 0
|
|
80
|
+
}, children);
|
|
81
|
+
}
|
|
82
|
+
function cleanVariant(variant) {
|
|
83
|
+
return variant.replace(/_/, "-");
|
|
84
|
+
}
|
|
4
85
|
export {
|
|
5
|
-
|
|
86
|
+
Text
|
|
6
87
|
};
|
package/TextField/index.js
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
4
|
+
const InputField_index = require("../InputField/index.js");
|
|
5
5
|
require("../utilities/css.js");
|
|
6
|
-
require("../__chunks__/
|
|
7
|
-
require("../
|
|
8
|
-
require("../
|
|
9
|
-
require("../__chunks__/
|
|
6
|
+
require("../__chunks__/InputIcon-d3963cf8.js");
|
|
7
|
+
require("../Text/index.js");
|
|
8
|
+
require("../Icon/index.js");
|
|
9
|
+
require("../__chunks__/index-3985350a.js");
|
|
10
|
+
require("../__chunks__/import-a1e0f814.js");
|
|
10
11
|
require("../__chunks__/omit-fca26542.js");
|
|
11
|
-
require("../__chunks__/import-
|
|
12
|
-
require("../__chunks__/import-
|
|
12
|
+
require("../__chunks__/import-2b302763.js");
|
|
13
|
+
require("../__chunks__/import-24a482e1.js");
|
|
13
14
|
function TextField(props) {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
const { type = "text", size = "md", isLabelVisuallyHidden = false, isDisabled = false, isRequired = false, validationState = "valid", isLabelEmphasized = false, autoFocus = false, label, errorText, helperText, placeholder, value, defaultValue, iconAtStart, iconAtEnd } = props;
|
|
16
|
+
return React.createElement(InputField_index.InputField, {
|
|
17
|
+
type,
|
|
18
|
+
size,
|
|
19
|
+
isLabelVisuallyHidden,
|
|
20
|
+
isDisabled,
|
|
21
|
+
isRequired,
|
|
22
|
+
validationState,
|
|
23
|
+
isLabelEmphasized,
|
|
24
|
+
autoFocus,
|
|
23
25
|
label,
|
|
24
26
|
errorText,
|
|
25
27
|
helperText,
|
|
@@ -28,27 +30,6 @@ function TextField(props) {
|
|
|
28
30
|
defaultValue,
|
|
29
31
|
iconAtStart,
|
|
30
32
|
iconAtEnd
|
|
31
|
-
}
|
|
32
|
-
return /* @__PURE__ */ React.createElement(
|
|
33
|
-
InputField.InputField,
|
|
34
|
-
{
|
|
35
|
-
type,
|
|
36
|
-
size,
|
|
37
|
-
isLabelVisuallyHidden,
|
|
38
|
-
isDisabled,
|
|
39
|
-
isRequired,
|
|
40
|
-
validationState,
|
|
41
|
-
isLabelEmphasized,
|
|
42
|
-
autoFocus,
|
|
43
|
-
label,
|
|
44
|
-
errorText,
|
|
45
|
-
helperText,
|
|
46
|
-
placeholder,
|
|
47
|
-
value,
|
|
48
|
-
defaultValue,
|
|
49
|
-
iconAtStart,
|
|
50
|
-
iconAtEnd
|
|
51
|
-
}
|
|
52
|
-
);
|
|
33
|
+
});
|
|
53
34
|
}
|
|
54
35
|
exports.TextField = TextField;
|
package/TextField/index.mjs
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { InputField } from "../InputField/index.mjs";
|
|
3
3
|
import "../utilities/css.mjs";
|
|
4
|
-
import "../__chunks__/
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import "../__chunks__/
|
|
4
|
+
import "../__chunks__/InputIcon-2317befd.mjs";
|
|
5
|
+
import "../Text/index.mjs";
|
|
6
|
+
import "../Icon/index.mjs";
|
|
7
|
+
import "../__chunks__/index-29d7bca9.mjs";
|
|
8
|
+
import "../__chunks__/import-19bc38ac.mjs";
|
|
8
9
|
import "../__chunks__/omit-f17deb8f.mjs";
|
|
9
|
-
import "../__chunks__/import-
|
|
10
|
-
import "../__chunks__/import-
|
|
10
|
+
import "../__chunks__/import-3d962a94.mjs";
|
|
11
|
+
import "../__chunks__/import-29af6941.mjs";
|
|
11
12
|
function TextField(props) {
|
|
12
|
-
const {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
const { type = "text", size = "md", isLabelVisuallyHidden = false, isDisabled = false, isRequired = false, validationState = "valid", isLabelEmphasized = false, autoFocus = false, label, errorText, helperText, placeholder, value, defaultValue, iconAtStart, iconAtEnd } = props;
|
|
14
|
+
return React__default.createElement(InputField, {
|
|
15
|
+
type,
|
|
16
|
+
size,
|
|
17
|
+
isLabelVisuallyHidden,
|
|
18
|
+
isDisabled,
|
|
19
|
+
isRequired,
|
|
20
|
+
validationState,
|
|
21
|
+
isLabelEmphasized,
|
|
22
|
+
autoFocus,
|
|
21
23
|
label,
|
|
22
24
|
errorText,
|
|
23
25
|
helperText,
|
|
@@ -26,28 +28,7 @@ function TextField(props) {
|
|
|
26
28
|
defaultValue,
|
|
27
29
|
iconAtStart,
|
|
28
30
|
iconAtEnd
|
|
29
|
-
}
|
|
30
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
31
|
-
InputField,
|
|
32
|
-
{
|
|
33
|
-
type,
|
|
34
|
-
size,
|
|
35
|
-
isLabelVisuallyHidden,
|
|
36
|
-
isDisabled,
|
|
37
|
-
isRequired,
|
|
38
|
-
validationState,
|
|
39
|
-
isLabelEmphasized,
|
|
40
|
-
autoFocus,
|
|
41
|
-
label,
|
|
42
|
-
errorText,
|
|
43
|
-
helperText,
|
|
44
|
-
placeholder,
|
|
45
|
-
value,
|
|
46
|
-
defaultValue,
|
|
47
|
-
iconAtStart,
|
|
48
|
-
iconAtEnd
|
|
49
|
-
}
|
|
50
|
-
);
|
|
31
|
+
});
|
|
51
32
|
}
|
|
52
33
|
export {
|
|
53
34
|
TextField
|
package/Textarea/index.js
CHANGED
|
@@ -1,51 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
4
|
+
const InputField_index = require("../InputField/index.js");
|
|
5
5
|
require("../utilities/css.js");
|
|
6
|
-
require("../__chunks__/
|
|
7
|
-
require("../
|
|
8
|
-
require("../
|
|
9
|
-
require("../__chunks__/
|
|
6
|
+
require("../__chunks__/InputIcon-d3963cf8.js");
|
|
7
|
+
require("../Text/index.js");
|
|
8
|
+
require("../Icon/index.js");
|
|
9
|
+
require("../__chunks__/index-3985350a.js");
|
|
10
|
+
require("../__chunks__/import-a1e0f814.js");
|
|
10
11
|
require("../__chunks__/omit-fca26542.js");
|
|
11
|
-
require("../__chunks__/import-
|
|
12
|
-
require("../__chunks__/import-
|
|
12
|
+
require("../__chunks__/import-2b302763.js");
|
|
13
|
+
require("../__chunks__/import-24a482e1.js");
|
|
13
14
|
function Textarea(props) {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
const { size = "md", isLabelVisuallyHidden = false, isDisabled = false, isRequired = false, validationState = "valid", isLabelEmphasized = false, autoFocus = false, label, errorText, helperText, placeholder, value, defaultValue, rows = 1 } = props;
|
|
16
|
+
return React.createElement(InputField_index.InputField, {
|
|
17
|
+
isMultiline: true,
|
|
18
|
+
size,
|
|
19
|
+
isLabelVisuallyHidden,
|
|
20
|
+
isDisabled,
|
|
21
|
+
isRequired,
|
|
22
|
+
validationState,
|
|
23
|
+
isLabelEmphasized,
|
|
24
|
+
autoFocus,
|
|
22
25
|
label,
|
|
23
26
|
errorText,
|
|
24
27
|
helperText,
|
|
25
28
|
placeholder,
|
|
26
29
|
value,
|
|
27
30
|
defaultValue,
|
|
28
|
-
rows
|
|
29
|
-
}
|
|
30
|
-
return /* @__PURE__ */ React.createElement(
|
|
31
|
-
InputField.InputField,
|
|
32
|
-
{
|
|
33
|
-
isMultiline: true,
|
|
34
|
-
size,
|
|
35
|
-
isLabelVisuallyHidden,
|
|
36
|
-
isDisabled,
|
|
37
|
-
isRequired,
|
|
38
|
-
validationState,
|
|
39
|
-
isLabelEmphasized,
|
|
40
|
-
autoFocus,
|
|
41
|
-
label,
|
|
42
|
-
errorText,
|
|
43
|
-
helperText,
|
|
44
|
-
placeholder,
|
|
45
|
-
value,
|
|
46
|
-
defaultValue,
|
|
47
|
-
rows
|
|
48
|
-
}
|
|
49
|
-
);
|
|
31
|
+
rows
|
|
32
|
+
});
|
|
50
33
|
}
|
|
51
34
|
exports.Textarea = Textarea;
|