@easypost/easy-ui 1.0.0-alpha.31 → 1.0.0-alpha.32
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/index.js +2 -89
- package/Button/index.mjs +2 -89
- package/CHANGELOG.md +6 -0
- package/Card/index.js +2 -94
- package/Card/index.mjs +2 -94
- package/Checkbox/index.js +3 -258
- package/Checkbox/index.mjs +3 -242
- package/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/CodeBlock/index.js +36 -34
- package/CodeBlock/index.mjs +21 -19
- package/CodeSnippet/index.js +2 -2
- package/CodeSnippet/index.mjs +2 -2
- package/DataGrid/index.js +62 -64
- package/DataGrid/index.mjs +52 -54
- package/DropdownButton/index.js +17 -17
- package/DropdownButton/index.mjs +14 -14
- package/FocusedProductLayout/index.js +29 -29
- package/FocusedProductLayout/index.mjs +23 -23
- package/FormLayout/index.js +9 -9
- package/FormLayout/index.mjs +5 -5
- package/HorizontalGrid/index.js +2 -62
- package/HorizontalGrid/index.mjs +2 -62
- package/HorizontalStack/index.js +2 -48
- package/HorizontalStack/index.mjs +2 -48
- package/Icon/index.js +2 -38
- package/Icon/index.mjs +2 -38
- package/IconButton/index.js +17 -17
- package/IconButton/index.mjs +13 -13
- package/InputField/index.js +2 -310
- package/InputField/index.mjs +2 -294
- package/Menu/index.js +2 -271
- package/Menu/index.mjs +2 -271
- package/Modal/index.js +34 -34
- package/Modal/index.mjs +23 -23
- package/Notification/index.js +5 -1446
- package/Notification/index.mjs +5 -1430
- package/ProductLayout/index.js +35 -35
- package/ProductLayout/index.mjs +26 -26
- package/Provider/index.js +4 -4
- package/Provider/index.mjs +2 -2
- package/RadioGroup/index.js +26 -26
- package/RadioGroup/index.mjs +21 -21
- package/SearchNav/index.js +62 -62
- package/SearchNav/index.mjs +33 -33
- package/Select/index.js +8 -8
- package/Select/index.mjs +6 -6
- package/SelectorErrorTooltip/index.js +2 -97
- package/SelectorErrorTooltip/index.mjs +2 -81
- package/Stepper/index.js +2 -169
- package/Stepper/index.mjs +2 -169
- package/TabNav/index.js +2 -56
- package/TabNav/index.mjs +2 -56
- package/TabPanels/index.js +10 -10
- package/TabPanels/index.mjs +8 -8
- package/Tabs/index.js +2 -250
- package/Tabs/index.mjs +2 -250
- package/Text/index.js +2 -93
- package/Text/index.mjs +2 -93
- package/TextField/index.js +2 -2
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +2 -2
- package/Textarea/index.mjs +1 -1
- package/Theme/index.js +5 -145
- package/Theme/index.mjs +5 -145
- package/Toggle/index.js +15 -15
- package/Toggle/index.mjs +14 -14
- package/Tooltip/index.js +2 -2
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +2 -2
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +38 -38
- package/VerticalNav/index.mjs +30 -30
- package/VerticalStack/index.js +2 -53
- package/VerticalStack/index.mjs +2 -53
- package/__chunks__/Button-98icnO6u.mjs +91 -0
- package/__chunks__/Button-DkRHwveR.js +90 -0
- package/__chunks__/Card-BELnDMlJ.mjs +96 -0
- package/__chunks__/Card-C9OIbOw6.js +95 -0
- package/__chunks__/Checkbox-DelJMEwP.mjs +244 -0
- package/__chunks__/Checkbox-b4gk_Iir.js +259 -0
- package/__chunks__/{index-2u4W2NC8.mjs → CodeSnippet-BqV8v3ot.mjs} +8 -8
- package/__chunks__/{index-3JLHVg1f.js → CodeSnippet-rGa2uAvL.js} +7 -7
- package/__chunks__/{HelpMenu-xdMxZimR.mjs → HelpMenu-B8_iQ04Q.mjs} +7 -7
- package/__chunks__/{HelpMenu-aqfaly9c.js → HelpMenu-BxmcL_7A.js} +12 -12
- package/__chunks__/HorizontalGrid-BosczjhD.mjs +64 -0
- package/__chunks__/HorizontalGrid-CYRYEOkw.js +63 -0
- package/__chunks__/HorizontalStack-CihYAu5Y.mjs +50 -0
- package/__chunks__/HorizontalStack-CmaZa8aD.js +49 -0
- package/__chunks__/Icon-RD912LmD.mjs +40 -0
- package/__chunks__/Icon-zuHlIk6o.js +39 -0
- package/__chunks__/InputField-5Q3xSpHm.mjs +296 -0
- package/__chunks__/InputField-CoqC2abj.js +311 -0
- package/__chunks__/{InputIcon-2UzClMnq.js → InputIcon-BZEUUS7J.js} +28 -28
- package/__chunks__/{InputIcon-Ei1W2RfN.mjs → InputIcon-CCiheCSh.mjs} +25 -25
- package/__chunks__/Menu-BKYqQm1J.mjs +273 -0
- package/__chunks__/Menu-CfdS5w4n.js +272 -0
- package/__chunks__/Notification-DFCtAfC2.mjs +1432 -0
- package/__chunks__/Notification-JZuzkNgx.js +1447 -0
- package/__chunks__/{SelectOverlay-a6C1zlNG.js → SelectOverlay-CMnqMgSh.js} +30 -30
- package/__chunks__/{SelectOverlay-YeQP6oqW.mjs → SelectOverlay-ctkeiof_.mjs} +29 -29
- package/__chunks__/SelectorErrorTooltip-Ca2Qlouy.mjs +83 -0
- package/__chunks__/SelectorErrorTooltip-kWKkPWM_.js +98 -0
- package/__chunks__/Stepper-BbifPn4N.js +170 -0
- package/__chunks__/Stepper-D0oJI3IL.mjs +171 -0
- package/__chunks__/TabNav-BfRyt2eU.js +57 -0
- package/__chunks__/TabNav-C0UN0SEk.mjs +58 -0
- package/__chunks__/Tabs-B24pQpXK.mjs +252 -0
- package/__chunks__/Tabs-CBiR7U-j.js +251 -0
- package/__chunks__/Text-CyhoWr4V.mjs +95 -0
- package/__chunks__/Text-DAIjkLVZ.js +94 -0
- package/__chunks__/Theme-BkS2hsW1.js +146 -0
- package/__chunks__/Theme-Mqcrx2yr.mjs +147 -0
- package/__chunks__/{index-LMMtvdGj.js → Tooltip-DDcocXwP.js} +12 -12
- package/__chunks__/{index-c4Tj8MdO.mjs → Tooltip-Dw-olLMP.mjs} +11 -11
- package/__chunks__/{index-mteZT19W.mjs → UnstyledButton-BbWPx50M.mjs} +3 -3
- package/__chunks__/{index-hDJcco6g.js → UnstyledButton-CLVmUOdx.js} +3 -3
- package/__chunks__/VerticalStack-Bk9nTyvh.js +54 -0
- package/__chunks__/VerticalStack-DEeF3yhz.mjs +55 -0
- package/__chunks__/{import-6JIVsAQ4.mjs → import-48m0Cz0y.mjs} +3 -3
- package/__chunks__/{import-lhxHUqoC.js → import-AkRshnSV.js} +1 -1
- package/__chunks__/{import-FWRpRi1z.js → import-BA137lU9.js} +3 -3
- package/__chunks__/{import-RgWeVG-M.mjs → import-BDA8lcgE.mjs} +3 -3
- package/__chunks__/{import-AdSP9fsz.js → import-BGVf--GB.js} +3 -5
- package/__chunks__/{import-J0seVzci.js → import-BX2U8V5x.js} +2 -4
- package/__chunks__/{import-mOdM6Zz9.mjs → import-BxvVgQ7L.mjs} +1 -1
- package/__chunks__/{import-3Ab-2Yxl.mjs → import-C23HE3uK.mjs} +2 -4
- package/__chunks__/{import-RKadoJrB.mjs → import-CUwH8ek8.mjs} +3 -5
- package/__chunks__/{import-ExASbr5t.js → import-CcihuC0H.js} +3 -5
- package/__chunks__/{import-OCdXkqfQ.js → import-Ceul1Z9-.js} +2 -2
- package/__chunks__/{import-0H4M0SPF.mjs → import-Cp1PDdqH.mjs} +12 -12
- package/__chunks__/{import-iaGkW2_A.mjs → import-Cx4-FoAL.mjs} +7 -9
- package/__chunks__/{import-3DDQooK4.mjs → import-D4itiBk6.mjs} +3 -5
- package/__chunks__/{import-Tu4mq5N5.mjs → import-DHkJKCdX.mjs} +7 -7
- package/__chunks__/{import-mNmfEm2n.js → import-DNDiiLwn.js} +4 -4
- package/__chunks__/{import-0rUXPsJm.js → import-DO_WPbIl.js} +2 -4
- package/__chunks__/{import-tkExujvw.js → import-DrhEudHW.js} +3 -3
- package/__chunks__/{import-o8OpczmV.mjs → import-EYNeaYAi.mjs} +2 -2
- package/__chunks__/{import-n3XADlnC.js → import-fPaCa1xr.js} +3 -3
- package/__chunks__/{import-I1504km3.mjs → import-oU5BTwdh.mjs} +3 -3
- package/__chunks__/{omit-tcSejr4A.js → omit-CRub4SL2.js} +2 -2
- package/__chunks__/{omit-B9V4OM3c.mjs → omit-DhmzK_QE.mjs} +2 -2
- package/__chunks__/{real-module-hif3NbKs.mjs → real-module-Bf8T94--.mjs} +1 -1
- package/__chunks__/{real-module-sgJg4nS3.js → real-module-DocI1SDc.js} +1 -1
- package/__chunks__/{useEdgeInterceptors-z8TnoVaY.js → useEdgeInterceptors-C3Exj2b3.js} +6 -6
- package/__chunks__/{useEdgeInterceptors-OO2d1Avh.mjs → useEdgeInterceptors-DvGfEtRf.mjs} +6 -6
- package/__chunks__/{useTriggerWidth-1kW121ei.mjs → useTriggerWidth-266ioxpV.mjs} +6 -6
- package/__chunks__/{useTriggerWidth-8TEz7hpq.js → useTriggerWidth-UDqNKvDm.js} +6 -6
- package/package.json +2 -2
- package/style.css +1434 -1425
- package/utilities/react.js +1 -1
- package/utilities/react.mjs +1 -1
- package/utilities/useScrollbar.js +1 -1
- package/utilities/useScrollbar.mjs +1 -1
- package/__chunks__/{ArrowForwardIos-kdkKbymv.mjs → ArrowForwardIos-CpxK6GqV.mjs} +0 -0
- package/__chunks__/{ArrowForwardIos-rGvloreW.js → ArrowForwardIos-D0gHoPWl.js} +0 -0
- package/__chunks__/{CheckCircle-VrvUCl5A.mjs → CheckCircle-CS7BggbQ.mjs} +0 -0
- package/__chunks__/{CheckCircle-mghrdMPJ.js → CheckCircle-Dzhb0DPF.js} +0 -0
- package/__chunks__/{Close-Q99KJrcY.mjs → Close-R1VX6s3_.mjs} +0 -0
- package/__chunks__/{Close-pWwB1aCW.js → Close-Ufa8tvoh.js} +0 -0
- package/__chunks__/{ExpandMore400-I7nIZ4Dn.mjs → ExpandMore400-B1bIiFgZ.mjs} +0 -0
- package/__chunks__/{ExpandMore400-f7xxwtIT.js → ExpandMore400-D_BHUzIL.js} +0 -0
- package/__chunks__/{Menu-0hmX2JEQ.mjs → Menu-BCTNmNSh.mjs} +0 -0
- package/__chunks__/{Menu-RHS5rIdQ.js → Menu-BN5diEtX.js} +0 -0
- package/__chunks__/{import-GC-6m69n.js → import-B8EFLvZN.js} +0 -0
- package/__chunks__/{import-iN84q3Qc.js → import-BVxrNSxK.js} +0 -0
- package/__chunks__/{import-j-cSWNWF.mjs → import-Dder5lCn.mjs} +0 -0
- package/__chunks__/{index-hnDwuSY-.js → index-B5rl9FgR.js} +107 -107
- package/__chunks__/{index-9weLpYXa.mjs → index-BGP7IN-d.mjs} +107 -107
- /package/__chunks__/{overlayscrollbars-react-uKTugL6b.mjs → overlayscrollbars-react-C-B49eS1.mjs} +0 -0
- /package/__chunks__/{overlayscrollbars-react-uaQJA9_l.js → overlayscrollbars-react-DXXfk26r.js} +0 -0
- /package/__chunks__/{tokens-AfPLdQEB.mjs → tokens-Cz_mVlab.mjs} +0 -0
- /package/__chunks__/{tokens-QQiosMbP.js → tokens-fk3juWxT.js} +0 -0
- /package/__chunks__/{useIntersectionDetection-u9UnfEyl.mjs → useIntersectionDetection-BvUmtDgl.mjs} +0 -0
- /package/__chunks__/{useIntersectionDetection-AE3_5rD0.js → useIntersectionDetection-DI5n4zwA.js} +0 -0
package/Badge/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const Icon = require("../__chunks__/Icon-zuHlIk6o.js");
|
|
5
|
+
const Text = require("../__chunks__/Text-DAIjkLVZ.js");
|
|
6
6
|
const utilities_css = require("../utilities/css.js");
|
|
7
|
-
const root = "
|
|
8
|
-
const primary = "
|
|
9
|
-
const secondary = "
|
|
10
|
-
const text = "
|
|
11
|
-
const variantPrimary = "
|
|
12
|
-
const variantSecondary = "
|
|
13
|
-
const variantBlack = "
|
|
14
|
-
const variantInverse = "
|
|
15
|
-
const variantGray = "
|
|
16
|
-
const variantSuccess = "
|
|
17
|
-
const variantWarning = "
|
|
18
|
-
const variantDanger = "
|
|
7
|
+
const root = "_root_14lld_5";
|
|
8
|
+
const primary = "_primary_14lld_16";
|
|
9
|
+
const secondary = "_secondary_14lld_17";
|
|
10
|
+
const text = "_text_14lld_32";
|
|
11
|
+
const variantPrimary = "_variantPrimary_14lld_37";
|
|
12
|
+
const variantSecondary = "_variantSecondary_14lld_44";
|
|
13
|
+
const variantBlack = "_variantBlack_14lld_51";
|
|
14
|
+
const variantInverse = "_variantInverse_14lld_58";
|
|
15
|
+
const variantGray = "_variantGray_14lld_65";
|
|
16
|
+
const variantSuccess = "_variantSuccess_14lld_72";
|
|
17
|
+
const variantWarning = "_variantWarning_14lld_79";
|
|
18
|
+
const variantDanger = "_variantDanger_14lld_86";
|
|
19
19
|
const styles = {
|
|
20
20
|
root,
|
|
21
21
|
primary,
|
|
@@ -45,11 +45,11 @@ function Badge(props) {
|
|
|
45
45
|
}
|
|
46
46
|
return React.createElement("span", {
|
|
47
47
|
className
|
|
48
|
-
}, accessibilityLabel && React.createElement(
|
|
48
|
+
}, accessibilityLabel && React.createElement(Text.Text, {
|
|
49
49
|
visuallyHidden: true
|
|
50
50
|
}, accessibilityLabel), React.createElement("span", {
|
|
51
51
|
className: styles.primary
|
|
52
|
-
}, icon ? React.createElement(
|
|
52
|
+
}, icon ? React.createElement(Icon.Icon, {
|
|
53
53
|
symbol: icon,
|
|
54
54
|
size: "sm"
|
|
55
55
|
}) : React.createElement("span", {
|
package/Badge/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { Icon } from "../Icon
|
|
3
|
-
import { Text } from "../Text
|
|
2
|
+
import { I as Icon } from "../__chunks__/Icon-RD912LmD.mjs";
|
|
3
|
+
import { T as Text } from "../__chunks__/Text-CyhoWr4V.mjs";
|
|
4
4
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
5
|
-
const root = "
|
|
6
|
-
const primary = "
|
|
7
|
-
const secondary = "
|
|
8
|
-
const text = "
|
|
9
|
-
const variantPrimary = "
|
|
10
|
-
const variantSecondary = "
|
|
11
|
-
const variantBlack = "
|
|
12
|
-
const variantInverse = "
|
|
13
|
-
const variantGray = "
|
|
14
|
-
const variantSuccess = "
|
|
15
|
-
const variantWarning = "
|
|
16
|
-
const variantDanger = "
|
|
5
|
+
const root = "_root_14lld_5";
|
|
6
|
+
const primary = "_primary_14lld_16";
|
|
7
|
+
const secondary = "_secondary_14lld_17";
|
|
8
|
+
const text = "_text_14lld_32";
|
|
9
|
+
const variantPrimary = "_variantPrimary_14lld_37";
|
|
10
|
+
const variantSecondary = "_variantSecondary_14lld_44";
|
|
11
|
+
const variantBlack = "_variantBlack_14lld_51";
|
|
12
|
+
const variantInverse = "_variantInverse_14lld_58";
|
|
13
|
+
const variantGray = "_variantGray_14lld_65";
|
|
14
|
+
const variantSuccess = "_variantSuccess_14lld_72";
|
|
15
|
+
const variantWarning = "_variantWarning_14lld_79";
|
|
16
|
+
const variantDanger = "_variantDanger_14lld_86";
|
|
17
17
|
const styles = {
|
|
18
18
|
root,
|
|
19
19
|
primary,
|
package/Banner/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
4
|
+
const Text = require("../__chunks__/Text-DAIjkLVZ.js");
|
|
5
5
|
const utilities_css = require("../utilities/css.js");
|
|
6
|
-
const colorSuccess = "
|
|
7
|
-
const colorPrimary = "
|
|
8
|
-
const colorNeutral = "
|
|
9
|
-
const Banner$1 = "
|
|
6
|
+
const colorSuccess = "_colorSuccess_otuwd_5";
|
|
7
|
+
const colorPrimary = "_colorPrimary_otuwd_10";
|
|
8
|
+
const colorNeutral = "_colorNeutral_otuwd_11";
|
|
9
|
+
const Banner$1 = "_Banner_otuwd_23";
|
|
10
10
|
const styles = {
|
|
11
11
|
colorSuccess,
|
|
12
12
|
colorPrimary,
|
|
@@ -17,11 +17,11 @@ function Banner(props) {
|
|
|
17
17
|
const { color = "success", emphasisText, children } = props;
|
|
18
18
|
return React.createElement("div", {
|
|
19
19
|
className: utilities_css.classNames(styles.Banner, styles[utilities_css.variationName("color", color)])
|
|
20
|
-
}, emphasisText && React.createElement(
|
|
20
|
+
}, emphasisText && React.createElement(Text.Text, {
|
|
21
21
|
as: "strong",
|
|
22
22
|
variant: "subtitle1",
|
|
23
23
|
alignment: "center"
|
|
24
|
-
}, !children ? React.createElement(React.Fragment, null, emphasisText) : React.createElement(React.Fragment, null, emphasisText, ": ")), children && React.createElement(
|
|
24
|
+
}, !children ? React.createElement(React.Fragment, null, emphasisText) : React.createElement(React.Fragment, null, emphasisText, ": ")), children && React.createElement(Text.Text, {
|
|
25
25
|
variant: "body1",
|
|
26
26
|
alignment: "center"
|
|
27
27
|
}, children));
|
package/Banner/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { Text } from "../Text
|
|
2
|
+
import { T as Text } from "../__chunks__/Text-CyhoWr4V.mjs";
|
|
3
3
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
4
|
-
const colorSuccess = "
|
|
5
|
-
const colorPrimary = "
|
|
6
|
-
const colorNeutral = "
|
|
7
|
-
const Banner$1 = "
|
|
4
|
+
const colorSuccess = "_colorSuccess_otuwd_5";
|
|
5
|
+
const colorPrimary = "_colorPrimary_otuwd_10";
|
|
6
|
+
const colorNeutral = "_colorNeutral_otuwd_11";
|
|
7
|
+
const Banner$1 = "_Banner_otuwd_23";
|
|
8
8
|
const styles = {
|
|
9
9
|
colorSuccess,
|
|
10
10
|
colorPrimary,
|
package/Button/index.js
CHANGED
|
@@ -1,91 +1,4 @@
|
|
|
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
|
-
};
|
|
18
|
-
var __objRest = (source, exclude) => {
|
|
19
|
-
var target = {};
|
|
20
|
-
for (var prop in source)
|
|
21
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
22
|
-
target[prop] = source[prop];
|
|
23
|
-
if (source != null && __getOwnPropSymbols)
|
|
24
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
25
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
26
|
-
target[prop] = source[prop];
|
|
27
|
-
}
|
|
28
|
-
return target;
|
|
29
|
-
};
|
|
30
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
const Icon_index = require("../Icon/index.js");
|
|
34
|
-
const utilities_css = require("../utilities/css.js");
|
|
35
|
-
const Button$1 = "_Button_lgocr_5";
|
|
36
|
-
const colorPrimary = "_colorPrimary_lgocr_20";
|
|
37
|
-
const colorSecondary = "_colorSecondary_lgocr_28";
|
|
38
|
-
const colorSuccess = "_colorSuccess_lgocr_36";
|
|
39
|
-
const colorWarning = "_colorWarning_lgocr_44";
|
|
40
|
-
const colorNeutral = "_colorNeutral_lgocr_52";
|
|
41
|
-
const colorSupport = "_colorSupport_lgocr_60";
|
|
42
|
-
const colorInverse = "_colorInverse_lgocr_66";
|
|
43
|
-
const variantFilled = "_variantFilled_lgocr_72";
|
|
44
|
-
const variantOutlined = "_variantOutlined_lgocr_99";
|
|
45
|
-
const variantLink = "_variantLink_lgocr_127";
|
|
46
|
-
const sizeMd = "_sizeMd_lgocr_151";
|
|
47
|
-
const sizeSm = "_sizeSm_lgocr_159";
|
|
48
|
-
const block = "_block_lgocr_176";
|
|
49
|
-
const iconAtStart = "_iconAtStart_lgocr_181";
|
|
50
|
-
const iconAtEnd = "_iconAtEnd_lgocr_185";
|
|
51
|
-
const styles = {
|
|
52
|
-
Button: Button$1,
|
|
53
|
-
colorPrimary,
|
|
54
|
-
colorSecondary,
|
|
55
|
-
colorSuccess,
|
|
56
|
-
colorWarning,
|
|
57
|
-
colorNeutral,
|
|
58
|
-
colorSupport,
|
|
59
|
-
colorInverse,
|
|
60
|
-
variantFilled,
|
|
61
|
-
variantOutlined,
|
|
62
|
-
variantLink,
|
|
63
|
-
sizeMd,
|
|
64
|
-
sizeSm,
|
|
65
|
-
block,
|
|
66
|
-
iconAtStart,
|
|
67
|
-
iconAtEnd
|
|
68
|
-
};
|
|
69
|
-
const Button = React.forwardRef((props, inRef) => {
|
|
70
|
-
const _a = props, { color = "primary", variant = "filled", size = "md", isDisabled = false, isBlock = false, iconAtStart: iconAtStart2, iconAtEnd: iconAtEnd2, children = "Button", href = "" } = _a, restProps = __objRest(_a, ["color", "variant", "size", "isDisabled", "isBlock", "iconAtStart", "iconAtEnd", "children", "href"]);
|
|
71
|
-
const bothIconPropsDefined = iconAtEnd2 && iconAtStart2;
|
|
72
|
-
if (bothIconPropsDefined) {
|
|
73
|
-
console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
|
|
74
|
-
}
|
|
75
|
-
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link" && size !== "sm";
|
|
76
|
-
UnstyledButton_index.logWarningIfInvalidColorVariantCombination(color, variant);
|
|
77
|
-
return React.createElement(UnstyledButton_index.UnstyledButton, __spreadValues({
|
|
78
|
-
isDisabled,
|
|
79
|
-
ref: inRef,
|
|
80
|
-
className: utilities_css.classNames(styles.Button, styles[utilities_css.variationName("color", color)], styles[utilities_css.variationName("variant", variant)], styles[utilities_css.variationName("size", size)], isBlock && styles.block),
|
|
81
|
-
href
|
|
82
|
-
}, restProps), iconAtStart2 && canUseIcon && React.createElement(Icon_index.Icon, {
|
|
83
|
-
symbol: iconAtStart2
|
|
84
|
-
}), React.createElement("span", {
|
|
85
|
-
className: utilities_css.classNames(iconAtStart2 && canUseIcon && styles.iconAtStart, iconAtEnd2 && canUseIcon && styles.iconAtEnd)
|
|
86
|
-
}, children), iconAtEnd2 && canUseIcon && React.createElement(Icon_index.Icon, {
|
|
87
|
-
symbol: iconAtEnd2
|
|
88
|
-
}));
|
|
89
|
-
});
|
|
90
|
-
Button.displayName = "Button";
|
|
91
|
-
exports.Button = Button;
|
|
3
|
+
const Button = require("../__chunks__/Button-DkRHwveR.js");
|
|
4
|
+
exports.Button = Button.Button;
|
package/Button/index.mjs
CHANGED
|
@@ -1,91 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
var __objRest = (source, exclude) => {
|
|
18
|
-
var target = {};
|
|
19
|
-
for (var prop in source)
|
|
20
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
-
target[prop] = source[prop];
|
|
22
|
-
if (source != null && __getOwnPropSymbols)
|
|
23
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
29
|
-
import React__default, { forwardRef } from "react";
|
|
30
|
-
import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/index-mteZT19W.mjs";
|
|
31
|
-
import { Icon } from "../Icon/index.mjs";
|
|
32
|
-
import { classNames, variationName } from "../utilities/css.mjs";
|
|
33
|
-
const Button$1 = "_Button_lgocr_5";
|
|
34
|
-
const colorPrimary = "_colorPrimary_lgocr_20";
|
|
35
|
-
const colorSecondary = "_colorSecondary_lgocr_28";
|
|
36
|
-
const colorSuccess = "_colorSuccess_lgocr_36";
|
|
37
|
-
const colorWarning = "_colorWarning_lgocr_44";
|
|
38
|
-
const colorNeutral = "_colorNeutral_lgocr_52";
|
|
39
|
-
const colorSupport = "_colorSupport_lgocr_60";
|
|
40
|
-
const colorInverse = "_colorInverse_lgocr_66";
|
|
41
|
-
const variantFilled = "_variantFilled_lgocr_72";
|
|
42
|
-
const variantOutlined = "_variantOutlined_lgocr_99";
|
|
43
|
-
const variantLink = "_variantLink_lgocr_127";
|
|
44
|
-
const sizeMd = "_sizeMd_lgocr_151";
|
|
45
|
-
const sizeSm = "_sizeSm_lgocr_159";
|
|
46
|
-
const block = "_block_lgocr_176";
|
|
47
|
-
const iconAtStart = "_iconAtStart_lgocr_181";
|
|
48
|
-
const iconAtEnd = "_iconAtEnd_lgocr_185";
|
|
49
|
-
const styles = {
|
|
50
|
-
Button: Button$1,
|
|
51
|
-
colorPrimary,
|
|
52
|
-
colorSecondary,
|
|
53
|
-
colorSuccess,
|
|
54
|
-
colorWarning,
|
|
55
|
-
colorNeutral,
|
|
56
|
-
colorSupport,
|
|
57
|
-
colorInverse,
|
|
58
|
-
variantFilled,
|
|
59
|
-
variantOutlined,
|
|
60
|
-
variantLink,
|
|
61
|
-
sizeMd,
|
|
62
|
-
sizeSm,
|
|
63
|
-
block,
|
|
64
|
-
iconAtStart,
|
|
65
|
-
iconAtEnd
|
|
66
|
-
};
|
|
67
|
-
const Button = forwardRef((props, inRef) => {
|
|
68
|
-
const _a = props, { color = "primary", variant = "filled", size = "md", isDisabled = false, isBlock = false, iconAtStart: iconAtStart2, iconAtEnd: iconAtEnd2, children = "Button", href = "" } = _a, restProps = __objRest(_a, ["color", "variant", "size", "isDisabled", "isBlock", "iconAtStart", "iconAtEnd", "children", "href"]);
|
|
69
|
-
const bothIconPropsDefined = iconAtEnd2 && iconAtStart2;
|
|
70
|
-
if (bothIconPropsDefined) {
|
|
71
|
-
console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
|
|
72
|
-
}
|
|
73
|
-
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link" && size !== "sm";
|
|
74
|
-
logWarningIfInvalidColorVariantCombination(color, variant);
|
|
75
|
-
return React__default.createElement(UnstyledButton, __spreadValues({
|
|
76
|
-
isDisabled,
|
|
77
|
-
ref: inRef,
|
|
78
|
-
className: classNames(styles.Button, styles[variationName("color", color)], styles[variationName("variant", variant)], styles[variationName("size", size)], isBlock && styles.block),
|
|
79
|
-
href
|
|
80
|
-
}, restProps), iconAtStart2 && canUseIcon && React__default.createElement(Icon, {
|
|
81
|
-
symbol: iconAtStart2
|
|
82
|
-
}), React__default.createElement("span", {
|
|
83
|
-
className: classNames(iconAtStart2 && canUseIcon && styles.iconAtStart, iconAtEnd2 && canUseIcon && styles.iconAtEnd)
|
|
84
|
-
}, children), iconAtEnd2 && canUseIcon && React__default.createElement(Icon, {
|
|
85
|
-
symbol: iconAtEnd2
|
|
86
|
-
}));
|
|
87
|
-
});
|
|
88
|
-
Button.displayName = "Button";
|
|
1
|
+
import { B } from "../__chunks__/Button-98icnO6u.mjs";
|
|
89
2
|
export {
|
|
90
|
-
Button
|
|
3
|
+
B as Button
|
|
91
4
|
};
|
package/CHANGELOG.md
CHANGED
package/Card/index.js
CHANGED
|
@@ -1,96 +1,4 @@
|
|
|
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
|
-
};
|
|
18
|
-
var __objRest = (source, exclude) => {
|
|
19
|
-
var target = {};
|
|
20
|
-
for (var prop in source)
|
|
21
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
22
|
-
target[prop] = source[prop];
|
|
23
|
-
if (source != null && __getOwnPropSymbols)
|
|
24
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
25
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
26
|
-
target[prop] = source[prop];
|
|
27
|
-
}
|
|
28
|
-
return target;
|
|
29
|
-
};
|
|
30
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
const utilities_css = require("../utilities/css.js");
|
|
34
|
-
const container = "_container_yqddm_5";
|
|
35
|
-
const area = "_area_yqddm_23";
|
|
36
|
-
const variantOutlined = "_variantOutlined_yqddm_65";
|
|
37
|
-
const variantFlagged = "_variantFlagged_yqddm_66";
|
|
38
|
-
const selected = "_selected_yqddm_78";
|
|
39
|
-
const disabled = "_disabled_yqddm_82";
|
|
40
|
-
const statusDanger = "_statusDanger_yqddm_86";
|
|
41
|
-
const statusWarning = "_statusWarning_yqddm_90";
|
|
42
|
-
const statusSuccess = "_statusSuccess_yqddm_94";
|
|
43
|
-
const styles = {
|
|
44
|
-
container,
|
|
45
|
-
area,
|
|
46
|
-
variantOutlined,
|
|
47
|
-
variantFlagged,
|
|
48
|
-
selected,
|
|
49
|
-
disabled,
|
|
50
|
-
statusDanger,
|
|
51
|
-
statusWarning,
|
|
52
|
-
statusSuccess
|
|
53
|
-
};
|
|
54
|
-
const DEFAULT_ELEMENT_TYPE = "div";
|
|
55
|
-
const DEFAULT_VARIANT = "outlined";
|
|
56
|
-
function CardContainer(props) {
|
|
57
|
-
const _a = props, { as: As = DEFAULT_ELEMENT_TYPE, children, isDisabled, isSelected, status, variant = DEFAULT_VARIANT } = _a, restProps = __objRest(_a, ["as", "children", "isDisabled", "isSelected", "status", "variant"]);
|
|
58
|
-
const className = utilities_css.classNames(styles.container, styles[utilities_css.variationName("variant", variant)], variant === "flagged" && status && styles[utilities_css.variationName("status", status)], variant === "outlined" && isDisabled && styles.disabled, variant === "outlined" && isSelected && styles.selected);
|
|
59
|
-
if (variant !== "flagged" && status) {
|
|
60
|
-
console.warn("status is only applicable for flagged cards");
|
|
61
|
-
}
|
|
62
|
-
if (variant !== "outlined" && isSelected) {
|
|
63
|
-
console.warn("isSelected is only applicable for outlined cards");
|
|
64
|
-
}
|
|
65
|
-
return React.createElement(As, __spreadValues({
|
|
66
|
-
className,
|
|
67
|
-
disabled: isDisabled
|
|
68
|
-
}, omit.omit(restProps, ["className"])), children);
|
|
69
|
-
}
|
|
70
|
-
function CardArea({ background, children, padding = "2" }) {
|
|
71
|
-
const style = __spreadValues(__spreadValues({}, utilities_css.getComponentThemeToken("card-area", "background", "color", getBackgroundToken(background))), utilities_css.getResponsiveDesignToken("card-area", "padding", "space", padding));
|
|
72
|
-
return React.createElement("div", {
|
|
73
|
-
className: styles.area,
|
|
74
|
-
style
|
|
75
|
-
}, children);
|
|
76
|
-
}
|
|
77
|
-
function getBackgroundToken(background) {
|
|
78
|
-
const tokens = {
|
|
79
|
-
primary: "neutral.000",
|
|
80
|
-
secondary: "neutral.050"
|
|
81
|
-
};
|
|
82
|
-
if (background && tokens.hasOwnProperty(background)) {
|
|
83
|
-
return tokens[background];
|
|
84
|
-
}
|
|
85
|
-
return background;
|
|
86
|
-
}
|
|
87
|
-
function Card(props) {
|
|
88
|
-
const _a = props, { background, children, padding } = _a, containerProps = __objRest(_a, ["background", "children", "padding"]);
|
|
89
|
-
return React.createElement(CardContainer, __spreadValues({}, containerProps), React.createElement(CardArea, {
|
|
90
|
-
background,
|
|
91
|
-
padding
|
|
92
|
-
}, children));
|
|
93
|
-
}
|
|
94
|
-
Card.Container = CardContainer;
|
|
95
|
-
Card.Area = CardArea;
|
|
96
|
-
exports.Card = Card;
|
|
3
|
+
const Card = require("../__chunks__/Card-C9OIbOw6.js");
|
|
4
|
+
exports.Card = Card.Card;
|
package/Card/index.mjs
CHANGED
|
@@ -1,96 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
var __objRest = (source, exclude) => {
|
|
18
|
-
var target = {};
|
|
19
|
-
for (var prop in source)
|
|
20
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
-
target[prop] = source[prop];
|
|
22
|
-
if (source != null && __getOwnPropSymbols)
|
|
23
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
29
|
-
import { o as omit } from "../__chunks__/omit-B9V4OM3c.mjs";
|
|
30
|
-
import React__default from "react";
|
|
31
|
-
import { classNames, variationName, getComponentThemeToken, getResponsiveDesignToken } from "../utilities/css.mjs";
|
|
32
|
-
const container = "_container_yqddm_5";
|
|
33
|
-
const area = "_area_yqddm_23";
|
|
34
|
-
const variantOutlined = "_variantOutlined_yqddm_65";
|
|
35
|
-
const variantFlagged = "_variantFlagged_yqddm_66";
|
|
36
|
-
const selected = "_selected_yqddm_78";
|
|
37
|
-
const disabled = "_disabled_yqddm_82";
|
|
38
|
-
const statusDanger = "_statusDanger_yqddm_86";
|
|
39
|
-
const statusWarning = "_statusWarning_yqddm_90";
|
|
40
|
-
const statusSuccess = "_statusSuccess_yqddm_94";
|
|
41
|
-
const styles = {
|
|
42
|
-
container,
|
|
43
|
-
area,
|
|
44
|
-
variantOutlined,
|
|
45
|
-
variantFlagged,
|
|
46
|
-
selected,
|
|
47
|
-
disabled,
|
|
48
|
-
statusDanger,
|
|
49
|
-
statusWarning,
|
|
50
|
-
statusSuccess
|
|
51
|
-
};
|
|
52
|
-
const DEFAULT_ELEMENT_TYPE = "div";
|
|
53
|
-
const DEFAULT_VARIANT = "outlined";
|
|
54
|
-
function CardContainer(props) {
|
|
55
|
-
const _a = props, { as: As = DEFAULT_ELEMENT_TYPE, children, isDisabled, isSelected, status, variant = DEFAULT_VARIANT } = _a, restProps = __objRest(_a, ["as", "children", "isDisabled", "isSelected", "status", "variant"]);
|
|
56
|
-
const className = classNames(styles.container, styles[variationName("variant", variant)], variant === "flagged" && status && styles[variationName("status", status)], variant === "outlined" && isDisabled && styles.disabled, variant === "outlined" && isSelected && styles.selected);
|
|
57
|
-
if (variant !== "flagged" && status) {
|
|
58
|
-
console.warn("status is only applicable for flagged cards");
|
|
59
|
-
}
|
|
60
|
-
if (variant !== "outlined" && isSelected) {
|
|
61
|
-
console.warn("isSelected is only applicable for outlined cards");
|
|
62
|
-
}
|
|
63
|
-
return React__default.createElement(As, __spreadValues({
|
|
64
|
-
className,
|
|
65
|
-
disabled: isDisabled
|
|
66
|
-
}, omit(restProps, ["className"])), children);
|
|
67
|
-
}
|
|
68
|
-
function CardArea({ background, children, padding = "2" }) {
|
|
69
|
-
const style = __spreadValues(__spreadValues({}, getComponentThemeToken("card-area", "background", "color", getBackgroundToken(background))), getResponsiveDesignToken("card-area", "padding", "space", padding));
|
|
70
|
-
return React__default.createElement("div", {
|
|
71
|
-
className: styles.area,
|
|
72
|
-
style
|
|
73
|
-
}, children);
|
|
74
|
-
}
|
|
75
|
-
function getBackgroundToken(background) {
|
|
76
|
-
const tokens = {
|
|
77
|
-
primary: "neutral.000",
|
|
78
|
-
secondary: "neutral.050"
|
|
79
|
-
};
|
|
80
|
-
if (background && tokens.hasOwnProperty(background)) {
|
|
81
|
-
return tokens[background];
|
|
82
|
-
}
|
|
83
|
-
return background;
|
|
84
|
-
}
|
|
85
|
-
function Card(props) {
|
|
86
|
-
const _a = props, { background, children, padding } = _a, containerProps = __objRest(_a, ["background", "children", "padding"]);
|
|
87
|
-
return React__default.createElement(CardContainer, __spreadValues({}, containerProps), React__default.createElement(CardArea, {
|
|
88
|
-
background,
|
|
89
|
-
padding
|
|
90
|
-
}, children));
|
|
91
|
-
}
|
|
92
|
-
Card.Container = CardContainer;
|
|
93
|
-
Card.Area = CardArea;
|
|
1
|
+
import { C } from "../__chunks__/Card-BELnDMlJ.mjs";
|
|
94
2
|
export {
|
|
95
|
-
Card
|
|
3
|
+
C as Card
|
|
96
4
|
};
|