@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
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_index = require("../Icon/index.js");
|
|
5
|
+
const Text_index = require("../Text/index.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_w4lra_5";
|
|
8
|
+
const primary = "_primary_w4lra_16";
|
|
9
|
+
const secondary = "_secondary_w4lra_17";
|
|
10
|
+
const text = "_text_w4lra_32";
|
|
11
|
+
const variantPrimary = "_variantPrimary_w4lra_37";
|
|
12
|
+
const variantSecondary = "_variantSecondary_w4lra_44";
|
|
13
|
+
const variantBlack = "_variantBlack_w4lra_51";
|
|
14
|
+
const variantInverse = "_variantInverse_w4lra_58";
|
|
15
|
+
const variantGray = "_variantGray_w4lra_65";
|
|
16
|
+
const variantSuccess = "_variantSuccess_w4lra_72";
|
|
17
|
+
const variantWarning = "_variantWarning_w4lra_79";
|
|
18
|
+
const variantDanger = "_variantDanger_w4lra_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_index.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_index.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 {
|
|
3
|
-
import {
|
|
2
|
+
import { Icon } from "../Icon/index.mjs";
|
|
3
|
+
import { Text } from "../Text/index.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_w4lra_5";
|
|
6
|
+
const primary = "_primary_w4lra_16";
|
|
7
|
+
const secondary = "_secondary_w4lra_17";
|
|
8
|
+
const text = "_text_w4lra_32";
|
|
9
|
+
const variantPrimary = "_variantPrimary_w4lra_37";
|
|
10
|
+
const variantSecondary = "_variantSecondary_w4lra_44";
|
|
11
|
+
const variantBlack = "_variantBlack_w4lra_51";
|
|
12
|
+
const variantInverse = "_variantInverse_w4lra_58";
|
|
13
|
+
const variantGray = "_variantGray_w4lra_65";
|
|
14
|
+
const variantSuccess = "_variantSuccess_w4lra_72";
|
|
15
|
+
const variantWarning = "_variantWarning_w4lra_79";
|
|
16
|
+
const variantDanger = "_variantDanger_w4lra_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_index = require("../Text/index.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_7ilj4_5";
|
|
7
|
+
const colorPrimary = "_colorPrimary_7ilj4_10";
|
|
8
|
+
const colorNeutral = "_colorNeutral_7ilj4_11";
|
|
9
|
+
const Banner$1 = "_Banner_7ilj4_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_index.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_index.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 {
|
|
2
|
+
import { Text } from "../Text/index.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_7ilj4_5";
|
|
5
|
+
const colorPrimary = "_colorPrimary_7ilj4_10";
|
|
6
|
+
const colorNeutral = "_colorNeutral_7ilj4_11";
|
|
7
|
+
const Banner$1 = "_Banner_7ilj4_23";
|
|
8
8
|
const styles = {
|
|
9
9
|
colorSuccess,
|
|
10
10
|
colorPrimary,
|
package/Button/Button.d.ts
CHANGED
|
@@ -24,6 +24,67 @@ export type ButtonProps = AriaButtonProps & {
|
|
|
24
24
|
/** Link's destination */
|
|
25
25
|
href?: string;
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Allow users to perform an action or to navigate to another page.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Use to communicate an action the user can take in order to continue
|
|
32
|
+
* flow in the UI. Supports icons, multiple colors, outlined and link variations,
|
|
33
|
+
* and small size buttons. Underlying element is a button, but becomes an
|
|
34
|
+
* anchor when `href` is provided.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* _Default:_
|
|
38
|
+
* ```tsx
|
|
39
|
+
* import { Button } from "@easypost/easy-ui/Button";
|
|
40
|
+
*
|
|
41
|
+
* export function Component() {
|
|
42
|
+
* return <Button onPress={() => alert("clicked")}>Button</Button>;
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* _Outlined variant:_
|
|
48
|
+
* ```tsx
|
|
49
|
+
* import { Button } from "@easypost/easy-ui/Button";
|
|
50
|
+
*
|
|
51
|
+
* export function Component() {
|
|
52
|
+
* return (
|
|
53
|
+
* <Button onPress={() => alert("clicked")} variant="outlined">
|
|
54
|
+
* Button
|
|
55
|
+
* </Button>
|
|
56
|
+
* );
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* _Success color:_
|
|
62
|
+
* ```tsx
|
|
63
|
+
* import { Button } from "@easypost/easy-ui/Button";
|
|
64
|
+
*
|
|
65
|
+
* export function Component() {
|
|
66
|
+
* return (
|
|
67
|
+
* <Button onPress={() => alert("clicked")} color="success">
|
|
68
|
+
* Button
|
|
69
|
+
* </Button>
|
|
70
|
+
* );
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
* @example
|
|
74
|
+
* _With href and icon:_
|
|
75
|
+
* ```tsx
|
|
76
|
+
* import { Button } from "@easypost/easy-ui/Button";
|
|
77
|
+
* import ArrowBackIcon from "@easypost/easy-ui-icons/ArrowBack";
|
|
78
|
+
*
|
|
79
|
+
* export function Component() {
|
|
80
|
+
* return (
|
|
81
|
+
* <Button href="https://www.easypost.com/" iconAtEnd={ArrowBackIcon}>
|
|
82
|
+
* Button
|
|
83
|
+
* </Button>
|
|
84
|
+
* );
|
|
85
|
+
* }
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
27
88
|
export declare const Button: React.ForwardRefExoticComponent<AriaButtonProps<"button"> & {
|
|
28
89
|
/** Button color */
|
|
29
90
|
color?: ButtonColor | undefined;
|
package/Button/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IAC1C,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,kBAAkB;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IAC1C,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,kBAAkB;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,eAAO,MAAM,MAAM;IAjFjB,mBAAmB;;IAEnB,qBAAqB;;IAErB,kBAAkB;;IAElB,sBAAsB;;IAEtB,6CAA6C;;IAE7C,4CAA4C;;IAE5C,2CAA2C;;IAE3C,6BAA6B;eAClB,SAAS;IACpB,yBAAyB;;8BAuHzB,CAAC"}
|
package/Button/index.js
CHANGED
|
@@ -29,28 +29,28 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
};
|
|
30
30
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
31
31
|
const React = require("react");
|
|
32
|
-
const
|
|
33
|
-
const
|
|
32
|
+
const UnstyledButton_index = require("../__chunks__/index-3985350a.js");
|
|
33
|
+
const Icon_index = require("../Icon/index.js");
|
|
34
34
|
const utilities_css = require("../utilities/css.js");
|
|
35
35
|
require("../__chunks__/import-a1e0f814.js");
|
|
36
36
|
require("../__chunks__/omit-fca26542.js");
|
|
37
|
-
require("../__chunks__/import-
|
|
38
|
-
const Button$1 = "
|
|
39
|
-
const colorPrimary = "
|
|
40
|
-
const colorSecondary = "
|
|
41
|
-
const colorSuccess = "
|
|
42
|
-
const colorWarning = "
|
|
43
|
-
const colorNeutral = "
|
|
44
|
-
const colorSupport = "
|
|
45
|
-
const colorInverse = "
|
|
46
|
-
const variantFilled = "
|
|
47
|
-
const variantOutlined = "
|
|
48
|
-
const variantLink = "
|
|
49
|
-
const sizeMd = "
|
|
50
|
-
const sizeSm = "
|
|
51
|
-
const block = "
|
|
52
|
-
const iconAtStart = "
|
|
53
|
-
const iconAtEnd = "
|
|
37
|
+
require("../__chunks__/import-2b302763.js");
|
|
38
|
+
const Button$1 = "_Button_l4y1n_5";
|
|
39
|
+
const colorPrimary = "_colorPrimary_l4y1n_20";
|
|
40
|
+
const colorSecondary = "_colorSecondary_l4y1n_28";
|
|
41
|
+
const colorSuccess = "_colorSuccess_l4y1n_36";
|
|
42
|
+
const colorWarning = "_colorWarning_l4y1n_44";
|
|
43
|
+
const colorNeutral = "_colorNeutral_l4y1n_52";
|
|
44
|
+
const colorSupport = "_colorSupport_l4y1n_60";
|
|
45
|
+
const colorInverse = "_colorInverse_l4y1n_66";
|
|
46
|
+
const variantFilled = "_variantFilled_l4y1n_72";
|
|
47
|
+
const variantOutlined = "_variantOutlined_l4y1n_99";
|
|
48
|
+
const variantLink = "_variantLink_l4y1n_127";
|
|
49
|
+
const sizeMd = "_sizeMd_l4y1n_153";
|
|
50
|
+
const sizeSm = "_sizeSm_l4y1n_161";
|
|
51
|
+
const block = "_block_l4y1n_180";
|
|
52
|
+
const iconAtStart = "_iconAtStart_l4y1n_185";
|
|
53
|
+
const iconAtEnd = "_iconAtEnd_l4y1n_189";
|
|
54
54
|
const styles = {
|
|
55
55
|
Button: Button$1,
|
|
56
56
|
colorPrimary,
|
|
@@ -76,17 +76,17 @@ const Button = React.forwardRef((props, inRef) => {
|
|
|
76
76
|
console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
|
|
77
77
|
}
|
|
78
78
|
const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link" && size !== "sm";
|
|
79
|
-
|
|
80
|
-
return React.createElement(
|
|
79
|
+
UnstyledButton_index.logWarningIfInvalidColorVariantCombination(color, variant);
|
|
80
|
+
return React.createElement(UnstyledButton_index.UnstyledButton, __spreadValues({
|
|
81
81
|
isDisabled,
|
|
82
82
|
ref: inRef,
|
|
83
83
|
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),
|
|
84
84
|
href
|
|
85
|
-
}, restProps), iconAtStart2 && canUseIcon && React.createElement(
|
|
85
|
+
}, restProps), iconAtStart2 && canUseIcon && React.createElement(Icon_index.Icon, {
|
|
86
86
|
symbol: iconAtStart2
|
|
87
87
|
}), React.createElement("span", {
|
|
88
88
|
className: utilities_css.classNames(iconAtStart2 && canUseIcon && styles.iconAtStart, iconAtEnd2 && canUseIcon && styles.iconAtEnd)
|
|
89
|
-
}, children), iconAtEnd2 && canUseIcon && React.createElement(
|
|
89
|
+
}, children), iconAtEnd2 && canUseIcon && React.createElement(Icon_index.Icon, {
|
|
90
90
|
symbol: iconAtEnd2
|
|
91
91
|
}));
|
|
92
92
|
});
|
package/Button/index.mjs
CHANGED
|
@@ -27,28 +27,28 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
return target;
|
|
28
28
|
};
|
|
29
29
|
import React__default, { forwardRef } from "react";
|
|
30
|
-
import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/
|
|
31
|
-
import {
|
|
30
|
+
import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/index-29d7bca9.mjs";
|
|
31
|
+
import { Icon } from "../Icon/index.mjs";
|
|
32
32
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
33
|
-
import "../__chunks__/import-
|
|
33
|
+
import "../__chunks__/import-19bc38ac.mjs";
|
|
34
34
|
import "../__chunks__/omit-f17deb8f.mjs";
|
|
35
|
-
import "../__chunks__/import-
|
|
36
|
-
const Button$1 = "
|
|
37
|
-
const colorPrimary = "
|
|
38
|
-
const colorSecondary = "
|
|
39
|
-
const colorSuccess = "
|
|
40
|
-
const colorWarning = "
|
|
41
|
-
const colorNeutral = "
|
|
42
|
-
const colorSupport = "
|
|
43
|
-
const colorInverse = "
|
|
44
|
-
const variantFilled = "
|
|
45
|
-
const variantOutlined = "
|
|
46
|
-
const variantLink = "
|
|
47
|
-
const sizeMd = "
|
|
48
|
-
const sizeSm = "
|
|
49
|
-
const block = "
|
|
50
|
-
const iconAtStart = "
|
|
51
|
-
const iconAtEnd = "
|
|
35
|
+
import "../__chunks__/import-3d962a94.mjs";
|
|
36
|
+
const Button$1 = "_Button_l4y1n_5";
|
|
37
|
+
const colorPrimary = "_colorPrimary_l4y1n_20";
|
|
38
|
+
const colorSecondary = "_colorSecondary_l4y1n_28";
|
|
39
|
+
const colorSuccess = "_colorSuccess_l4y1n_36";
|
|
40
|
+
const colorWarning = "_colorWarning_l4y1n_44";
|
|
41
|
+
const colorNeutral = "_colorNeutral_l4y1n_52";
|
|
42
|
+
const colorSupport = "_colorSupport_l4y1n_60";
|
|
43
|
+
const colorInverse = "_colorInverse_l4y1n_66";
|
|
44
|
+
const variantFilled = "_variantFilled_l4y1n_72";
|
|
45
|
+
const variantOutlined = "_variantOutlined_l4y1n_99";
|
|
46
|
+
const variantLink = "_variantLink_l4y1n_127";
|
|
47
|
+
const sizeMd = "_sizeMd_l4y1n_153";
|
|
48
|
+
const sizeSm = "_sizeSm_l4y1n_161";
|
|
49
|
+
const block = "_block_l4y1n_180";
|
|
50
|
+
const iconAtStart = "_iconAtStart_l4y1n_185";
|
|
51
|
+
const iconAtEnd = "_iconAtEnd_l4y1n_189";
|
|
52
52
|
const styles = {
|
|
53
53
|
Button: Button$1,
|
|
54
54
|
colorPrimary,
|
package/CHANGELOG.md
CHANGED
package/Card/index.js
CHANGED
|
@@ -1,7 +1,86 @@
|
|
|
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
|
+
};
|
|
2
30
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
require("
|
|
5
|
-
require("
|
|
6
|
-
|
|
7
|
-
|
|
31
|
+
const omit = require("../__chunks__/omit-fca26542.js");
|
|
32
|
+
const React = require("react");
|
|
33
|
+
const utilities_css = require("../utilities/css.js");
|
|
34
|
+
const container = "_container_p14mb_5";
|
|
35
|
+
const area = "_area_p14mb_22";
|
|
36
|
+
const variantOutlined = "_variantOutlined_p14mb_58";
|
|
37
|
+
const variantFlagged = "_variantFlagged_p14mb_59";
|
|
38
|
+
const selected = "_selected_p14mb_71";
|
|
39
|
+
const disabled = "_disabled_p14mb_75";
|
|
40
|
+
const statusDanger = "_statusDanger_p14mb_79";
|
|
41
|
+
const statusWarning = "_statusWarning_p14mb_83";
|
|
42
|
+
const statusSuccess = "_statusSuccess_p14mb_87";
|
|
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.surface.card", 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 Card(props) {
|
|
78
|
+
const _a = props, { background, children, padding } = _a, containerProps = __objRest(_a, ["background", "children", "padding"]);
|
|
79
|
+
return React.createElement(CardContainer, __spreadValues({}, containerProps), React.createElement(CardArea, {
|
|
80
|
+
background,
|
|
81
|
+
padding
|
|
82
|
+
}, children));
|
|
83
|
+
}
|
|
84
|
+
Card.Container = CardContainer;
|
|
85
|
+
Card.Area = CardArea;
|
|
86
|
+
exports.Card = Card;
|
package/Card/index.mjs
CHANGED
|
@@ -1,7 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
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-f17deb8f.mjs";
|
|
30
|
+
import React__default from "react";
|
|
31
|
+
import { classNames, variationName, getComponentThemeToken, getResponsiveDesignToken } from "../utilities/css.mjs";
|
|
32
|
+
const container = "_container_p14mb_5";
|
|
33
|
+
const area = "_area_p14mb_22";
|
|
34
|
+
const variantOutlined = "_variantOutlined_p14mb_58";
|
|
35
|
+
const variantFlagged = "_variantFlagged_p14mb_59";
|
|
36
|
+
const selected = "_selected_p14mb_71";
|
|
37
|
+
const disabled = "_disabled_p14mb_75";
|
|
38
|
+
const statusDanger = "_statusDanger_p14mb_79";
|
|
39
|
+
const statusWarning = "_statusWarning_p14mb_83";
|
|
40
|
+
const statusSuccess = "_statusSuccess_p14mb_87";
|
|
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.surface.card", background)), getResponsiveDesignToken("card-area", "padding", "space", padding));
|
|
70
|
+
return React__default.createElement("div", {
|
|
71
|
+
className: styles.area,
|
|
72
|
+
style
|
|
73
|
+
}, children);
|
|
74
|
+
}
|
|
75
|
+
function Card(props) {
|
|
76
|
+
const _a = props, { background, children, padding } = _a, containerProps = __objRest(_a, ["background", "children", "padding"]);
|
|
77
|
+
return React__default.createElement(CardContainer, __spreadValues({}, containerProps), React__default.createElement(CardArea, {
|
|
78
|
+
background,
|
|
79
|
+
padding
|
|
80
|
+
}, children));
|
|
81
|
+
}
|
|
82
|
+
Card.Container = CardContainer;
|
|
83
|
+
Card.Area = CardArea;
|
|
5
84
|
export {
|
|
6
|
-
|
|
85
|
+
Card
|
|
7
86
|
};
|
package/Checkbox/index.js
CHANGED
|
@@ -20,14 +20,14 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
22
|
const React = require("react");
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
23
|
+
const Icon_index = require("../Icon/index.js");
|
|
24
|
+
const SelectorErrorTooltip_index = require("../SelectorErrorTooltip/index.js");
|
|
25
|
+
const Text_index = require("../Text/index.js");
|
|
26
26
|
const utilities_css = require("../utilities/css.js");
|
|
27
|
-
const _import = require("../__chunks__/import-
|
|
28
|
-
const _import$1 = require("../__chunks__/import-
|
|
29
|
-
require("../
|
|
30
|
-
require("../__chunks__/import-
|
|
27
|
+
const _import = require("../__chunks__/import-8b6c0bc7.js");
|
|
28
|
+
const _import$1 = require("../__chunks__/import-2b302763.js");
|
|
29
|
+
require("../Tooltip/index.js");
|
|
30
|
+
require("../__chunks__/import-a2023d8f.js");
|
|
31
31
|
require("../__chunks__/import-a1e0f814.js");
|
|
32
32
|
require("react-dom");
|
|
33
33
|
require("../__chunks__/import-dea5a24d.js");
|
|
@@ -156,21 +156,21 @@ const Remove600 = (_a) => {
|
|
|
156
156
|
d: "M190.391-440.391v-79.218h579.218v79.218H190.391Z"
|
|
157
157
|
}));
|
|
158
158
|
};
|
|
159
|
-
const Checkbox$1 = "
|
|
160
|
-
const label = "
|
|
161
|
-
const box = "
|
|
162
|
-
const check = "
|
|
163
|
-
const focusVisible = "
|
|
164
|
-
const text = "
|
|
165
|
-
const indeterminateSvg = "
|
|
166
|
-
const nested = "
|
|
167
|
-
const sizeLg = "
|
|
168
|
-
const invalid = "
|
|
169
|
-
const disabled = "
|
|
170
|
-
const indeterminate = "
|
|
171
|
-
const selected = "
|
|
172
|
-
const hovered = "
|
|
173
|
-
const readOnly = "
|
|
159
|
+
const Checkbox$1 = "_Checkbox_1r930_5";
|
|
160
|
+
const label = "_label_1r930_17";
|
|
161
|
+
const box = "_box_1r930_40";
|
|
162
|
+
const check = "_check_1r930_41";
|
|
163
|
+
const focusVisible = "_focusVisible_1r930_56";
|
|
164
|
+
const text = "_text_1r930_72";
|
|
165
|
+
const indeterminateSvg = "_indeterminateSvg_1r930_77";
|
|
166
|
+
const nested = "_nested_1r930_81";
|
|
167
|
+
const sizeLg = "_sizeLg_1r930_85";
|
|
168
|
+
const invalid = "_invalid_1r930_91";
|
|
169
|
+
const disabled = "_disabled_1r930_95";
|
|
170
|
+
const indeterminate = "_indeterminate_1r930_77";
|
|
171
|
+
const selected = "_selected_1r930_100";
|
|
172
|
+
const hovered = "_hovered_1r930_116";
|
|
173
|
+
const readOnly = "_readOnly_1r930_116";
|
|
174
174
|
const styles = {
|
|
175
175
|
Checkbox: Checkbox$1,
|
|
176
176
|
label,
|
|
@@ -214,18 +214,18 @@ function Checkbox(props) {
|
|
|
214
214
|
className: styles.box
|
|
215
215
|
}, (isIndeterminate || isSelected) && React.createElement("span", {
|
|
216
216
|
className: styles.check
|
|
217
|
-
}, isIndeterminate ? React.createElement(
|
|
217
|
+
}, isIndeterminate ? React.createElement(Icon_index.Icon, {
|
|
218
218
|
symbol: Remove600,
|
|
219
219
|
size: size === "lg" ? "md" : "xs"
|
|
220
|
-
}) : React.createElement(
|
|
220
|
+
}) : React.createElement(Icon_index.Icon, {
|
|
221
221
|
symbol: Check600,
|
|
222
222
|
size: size === "lg" ? "md" : "xs"
|
|
223
223
|
}))), React.createElement("span", {
|
|
224
224
|
className: styles.text
|
|
225
|
-
}, React.createElement(
|
|
225
|
+
}, React.createElement(Text_index.Text, {
|
|
226
226
|
variant: textVariant,
|
|
227
227
|
color: textColor
|
|
228
|
-
}, children))), validationState === "invalid" && errorText && React.createElement(
|
|
228
|
+
}, children))), validationState === "invalid" && errorText && React.createElement(SelectorErrorTooltip_index.SelectorErrorTooltip, {
|
|
229
229
|
content: errorText
|
|
230
230
|
}));
|
|
231
231
|
}
|