@easypost/easy-ui 1.0.0-alpha.100 → 1.0.0-alpha.102
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/CHANGELOG.md +12 -0
- package/IconButton/IconButton.d.ts +5 -0
- package/IconButton/IconButton.d.ts.map +1 -1
- package/IconButton/IconButton.stories.d.ts +1 -0
- package/IconButton/IconButton.stories.d.ts.map +1 -1
- package/IconButton/index.js +20 -14
- package/IconButton/index.mjs +20 -14
- package/SplitToggleCard/index.js +1 -1
- package/SplitToggleCard/index.mjs +1 -1
- package/Toggle/Switch.d.ts +4 -0
- package/Toggle/Switch.d.ts.map +1 -1
- package/Toggle/Toggle.d.ts +8 -0
- package/Toggle/Toggle.d.ts.map +1 -1
- package/Toggle/Toggle.stories.d.ts +1 -0
- package/Toggle/Toggle.stories.d.ts.map +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/Toggle/utils.d.ts +7 -0
- package/Toggle/utils.d.ts.map +1 -0
- package/__chunks__/{Toggle-D6xQyE8l.mjs → Toggle-Bfffyi8v.mjs} +39 -13
- package/__chunks__/{Toggle-BgiXZL7t.js → Toggle-D4oY2Hoe.js} +38 -12
- package/package.json +1 -1
- package/style.css +77 -36
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @easypost/easy-ui
|
|
2
2
|
|
|
3
|
+
## 1.0.0-alpha.102
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8c6fa83: Adds size prop to `IconButton`
|
|
8
|
+
|
|
9
|
+
## 1.0.0-alpha.101
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- cbda521: Adds `variant` prop to `Toggle` component
|
|
14
|
+
|
|
3
15
|
## 1.0.0-alpha.100
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -3,6 +3,7 @@ import { AriaButtonProps } from "react-aria";
|
|
|
3
3
|
import { ButtonColor } from "../Button";
|
|
4
4
|
import { IconSymbol } from "../types";
|
|
5
5
|
export type IconButtonVariant = "filled" | "outlined";
|
|
6
|
+
export type IconButtonSize = "sm" | "md";
|
|
6
7
|
export type IconButtonProps = AriaButtonProps & {
|
|
7
8
|
/** Button color */
|
|
8
9
|
color?: ButtonColor;
|
|
@@ -10,6 +11,8 @@ export type IconButtonProps = AriaButtonProps & {
|
|
|
10
11
|
variant?: IconButtonVariant;
|
|
11
12
|
/** Icon symbol */
|
|
12
13
|
icon: IconSymbol;
|
|
14
|
+
/** Button size */
|
|
15
|
+
size?: IconButtonSize;
|
|
13
16
|
/** Description of icon */
|
|
14
17
|
accessibilityLabel: string;
|
|
15
18
|
/** Disables button */
|
|
@@ -84,6 +87,8 @@ export declare const IconButton: React.ForwardRefExoticComponent<AriaButtonProps
|
|
|
84
87
|
variant?: IconButtonVariant;
|
|
85
88
|
/** Icon symbol */
|
|
86
89
|
icon: IconSymbol;
|
|
90
|
+
/** Button size */
|
|
91
|
+
size?: IconButtonSize;
|
|
87
92
|
/** Description of icon */
|
|
88
93
|
accessibilityLabel: string;
|
|
89
94
|
/** Disables button */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAKtC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAKtC,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,UAAU,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAC9C,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,kBAAkB;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,kBAAkB;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,0BAA0B;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,eAAO,MAAM,UAAU;IA5ErB,mBAAmB;YACX,WAAW;IACnB,qBAAqB;cACX,iBAAiB;IAC3B,kBAAkB;UACZ,UAAU;IAChB,kBAAkB;WACX,cAAc;IACrB,0BAA0B;wBACN,MAAM;IAC1B,sBAAsB;iBACT,OAAO;8BAiGpB,CAAC"}
|
|
@@ -6,6 +6,7 @@ export default meta;
|
|
|
6
6
|
export declare const Filled: Story;
|
|
7
7
|
export declare const Outlined: Story;
|
|
8
8
|
export declare const Inverse: Story;
|
|
9
|
+
export declare const Small: Story;
|
|
9
10
|
export declare const Disabled: Story;
|
|
10
11
|
export declare const ClickEvent: Story;
|
|
11
12
|
export declare const Controls: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../src/IconButton/IconButton.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AASvD,OAAO,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAC;AAE3D,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AASzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CASjC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAMF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAMF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../src/IconButton/IconButton.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AASvD,OAAO,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAC;AAE3D,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AASzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CASjC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAMF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAMF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAGnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC"}
|
package/IconButton/index.js
CHANGED
|
@@ -33,16 +33,18 @@ const UnstyledButton = require("../__chunks__/UnstyledButton-DaRYVyfB.js");
|
|
|
33
33
|
const Icon = require("../__chunks__/Icon-W8F9w-jS.js");
|
|
34
34
|
const Text = require("../__chunks__/Text-CSESKR_s.js");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
|
-
const IconButton$1 = "
|
|
37
|
-
const colorPrimary = "
|
|
38
|
-
const colorSecondary = "
|
|
39
|
-
const colorSuccess = "
|
|
40
|
-
const colorWarning = "
|
|
41
|
-
const colorNeutral = "
|
|
42
|
-
const colorSupport = "
|
|
43
|
-
const colorInverse = "
|
|
44
|
-
const variantOutlined = "
|
|
45
|
-
const variantFilled = "
|
|
36
|
+
const IconButton$1 = "_IconButton_ghgsb_4";
|
|
37
|
+
const colorPrimary = "_colorPrimary_ghgsb_19";
|
|
38
|
+
const colorSecondary = "_colorSecondary_ghgsb_27";
|
|
39
|
+
const colorSuccess = "_colorSuccess_ghgsb_35";
|
|
40
|
+
const colorWarning = "_colorWarning_ghgsb_43";
|
|
41
|
+
const colorNeutral = "_colorNeutral_ghgsb_51";
|
|
42
|
+
const colorSupport = "_colorSupport_ghgsb_59";
|
|
43
|
+
const colorInverse = "_colorInverse_ghgsb_65";
|
|
44
|
+
const variantOutlined = "_variantOutlined_ghgsb_71";
|
|
45
|
+
const variantFilled = "_variantFilled_ghgsb_100";
|
|
46
|
+
const sizeMd = "_sizeMd_ghgsb_127";
|
|
47
|
+
const sizeSm = "_sizeSm_ghgsb_134";
|
|
46
48
|
const styles = {
|
|
47
49
|
IconButton: IconButton$1,
|
|
48
50
|
colorPrimary,
|
|
@@ -53,19 +55,23 @@ const styles = {
|
|
|
53
55
|
colorSupport,
|
|
54
56
|
colorInverse,
|
|
55
57
|
variantOutlined,
|
|
56
|
-
variantFilled
|
|
58
|
+
variantFilled,
|
|
59
|
+
sizeMd,
|
|
60
|
+
sizeSm
|
|
57
61
|
};
|
|
58
62
|
const IconButton = React.forwardRef((props, inRef) => {
|
|
59
|
-
const _a = props, { color = "primary", variant = "filled", icon, accessibilityLabel, isDisabled = false } = _a, restProps = __objRest(_a, ["color", "variant", "icon", "accessibilityLabel", "isDisabled"]);
|
|
63
|
+
const _a = props, { color = "primary", variant = "filled", icon, size = "md", accessibilityLabel, isDisabled = false } = _a, restProps = __objRest(_a, ["color", "variant", "icon", "size", "accessibilityLabel", "isDisabled"]);
|
|
60
64
|
UnstyledButton.logWarningIfInvalidColorVariantCombination(color, variant);
|
|
65
|
+
const iconSize = size === "sm" ? "xs" : "md";
|
|
61
66
|
return React.createElement(UnstyledButton.UnstyledButton, __spreadValues({
|
|
62
67
|
isDisabled,
|
|
63
68
|
ref: inRef,
|
|
64
|
-
className: utilities_css.classNames(styles.IconButton, styles[utilities_css.variationName("variant", variant)], styles[utilities_css.variationName("color", color)])
|
|
69
|
+
className: utilities_css.classNames(styles.IconButton, styles[utilities_css.variationName("variant", variant)], styles[utilities_css.variationName("color", color)], styles[utilities_css.variationName("size", size)])
|
|
65
70
|
}, restProps), React.createElement(Text.Text, {
|
|
66
71
|
visuallyHidden: true
|
|
67
72
|
}, accessibilityLabel), React.createElement(Icon.Icon, {
|
|
68
|
-
symbol: icon
|
|
73
|
+
symbol: icon,
|
|
74
|
+
size: iconSize
|
|
69
75
|
}));
|
|
70
76
|
});
|
|
71
77
|
IconButton.displayName = "IconButton";
|
package/IconButton/index.mjs
CHANGED
|
@@ -31,16 +31,18 @@ import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton }
|
|
|
31
31
|
import { I as Icon } from "../__chunks__/Icon-0SN9dbwU.mjs";
|
|
32
32
|
import { T as Text } from "../__chunks__/Text-YOL3isF4.mjs";
|
|
33
33
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
34
|
-
const IconButton$1 = "
|
|
35
|
-
const colorPrimary = "
|
|
36
|
-
const colorSecondary = "
|
|
37
|
-
const colorSuccess = "
|
|
38
|
-
const colorWarning = "
|
|
39
|
-
const colorNeutral = "
|
|
40
|
-
const colorSupport = "
|
|
41
|
-
const colorInverse = "
|
|
42
|
-
const variantOutlined = "
|
|
43
|
-
const variantFilled = "
|
|
34
|
+
const IconButton$1 = "_IconButton_ghgsb_4";
|
|
35
|
+
const colorPrimary = "_colorPrimary_ghgsb_19";
|
|
36
|
+
const colorSecondary = "_colorSecondary_ghgsb_27";
|
|
37
|
+
const colorSuccess = "_colorSuccess_ghgsb_35";
|
|
38
|
+
const colorWarning = "_colorWarning_ghgsb_43";
|
|
39
|
+
const colorNeutral = "_colorNeutral_ghgsb_51";
|
|
40
|
+
const colorSupport = "_colorSupport_ghgsb_59";
|
|
41
|
+
const colorInverse = "_colorInverse_ghgsb_65";
|
|
42
|
+
const variantOutlined = "_variantOutlined_ghgsb_71";
|
|
43
|
+
const variantFilled = "_variantFilled_ghgsb_100";
|
|
44
|
+
const sizeMd = "_sizeMd_ghgsb_127";
|
|
45
|
+
const sizeSm = "_sizeSm_ghgsb_134";
|
|
44
46
|
const styles = {
|
|
45
47
|
IconButton: IconButton$1,
|
|
46
48
|
colorPrimary,
|
|
@@ -51,19 +53,23 @@ const styles = {
|
|
|
51
53
|
colorSupport,
|
|
52
54
|
colorInverse,
|
|
53
55
|
variantOutlined,
|
|
54
|
-
variantFilled
|
|
56
|
+
variantFilled,
|
|
57
|
+
sizeMd,
|
|
58
|
+
sizeSm
|
|
55
59
|
};
|
|
56
60
|
const IconButton = forwardRef((props, inRef) => {
|
|
57
|
-
const _a = props, { color = "primary", variant = "filled", icon, accessibilityLabel, isDisabled = false } = _a, restProps = __objRest(_a, ["color", "variant", "icon", "accessibilityLabel", "isDisabled"]);
|
|
61
|
+
const _a = props, { color = "primary", variant = "filled", icon, size = "md", accessibilityLabel, isDisabled = false } = _a, restProps = __objRest(_a, ["color", "variant", "icon", "size", "accessibilityLabel", "isDisabled"]);
|
|
58
62
|
logWarningIfInvalidColorVariantCombination(color, variant);
|
|
63
|
+
const iconSize = size === "sm" ? "xs" : "md";
|
|
59
64
|
return React__default.createElement(UnstyledButton, __spreadValues({
|
|
60
65
|
isDisabled,
|
|
61
66
|
ref: inRef,
|
|
62
|
-
className: classNames(styles.IconButton, styles[variationName("variant", variant)], styles[variationName("color", color)])
|
|
67
|
+
className: classNames(styles.IconButton, styles[variationName("variant", variant)], styles[variationName("color", color)], styles[variationName("size", size)])
|
|
63
68
|
}, restProps), React__default.createElement(Text, {
|
|
64
69
|
visuallyHidden: true
|
|
65
70
|
}, accessibilityLabel), React__default.createElement(Icon, {
|
|
66
|
-
symbol: icon
|
|
71
|
+
symbol: icon,
|
|
72
|
+
size: iconSize
|
|
67
73
|
}));
|
|
68
74
|
});
|
|
69
75
|
IconButton.displayName = "IconButton";
|
package/SplitToggleCard/index.js
CHANGED
|
@@ -32,7 +32,7 @@ const React = require("react");
|
|
|
32
32
|
const Card = require("../__chunks__/Card-BM2DKiVA.js");
|
|
33
33
|
const HorizontalGrid = require("../__chunks__/HorizontalGrid-CAwv7zKY.js");
|
|
34
34
|
const HorizontalStack = require("../__chunks__/HorizontalStack-CXpjASZi.js");
|
|
35
|
-
const Toggle = require("../__chunks__/Toggle-
|
|
35
|
+
const Toggle = require("../__chunks__/Toggle-D4oY2Hoe.js");
|
|
36
36
|
const SplitToggleCard = (props) => {
|
|
37
37
|
const _a = props, { children } = _a, toggleProps = __objRest(_a, ["children"]);
|
|
38
38
|
return React.createElement(Card.Card.Container, null, React.createElement(HorizontalGrid.HorizontalGrid, {
|
|
@@ -30,7 +30,7 @@ import React__default from "react";
|
|
|
30
30
|
import { C as Card } from "../__chunks__/Card-CJug4GMX.mjs";
|
|
31
31
|
import { H as HorizontalGrid } from "../__chunks__/HorizontalGrid-Dz8EFgmu.mjs";
|
|
32
32
|
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CxE8tPx_.mjs";
|
|
33
|
-
import { T as Toggle } from "../__chunks__/Toggle-
|
|
33
|
+
import { T as Toggle } from "../__chunks__/Toggle-Bfffyi8v.mjs";
|
|
34
34
|
const SplitToggleCard = (props) => {
|
|
35
35
|
const _a = props, { children } = _a, toggleProps = __objRest(_a, ["children"]);
|
|
36
36
|
return React__default.createElement(Card.Container, null, React__default.createElement(HorizontalGrid, {
|
package/Toggle/Switch.d.ts
CHANGED
package/Toggle/Switch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../src/Toggle/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../src/Toggle/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IAE1C;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,qBAgCxC"}
|
package/Toggle/Toggle.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ export type ToggleProps = AriaLabelingProps & {
|
|
|
33
33
|
* The value of the toggle, used when submitting an HTML form.
|
|
34
34
|
*/
|
|
35
35
|
value?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The color variant for the background of the switch when enabled
|
|
38
|
+
*/
|
|
39
|
+
variant?: "primary" | "success" | "danger";
|
|
36
40
|
};
|
|
37
41
|
/**
|
|
38
42
|
* An interactive binary control.
|
|
@@ -101,5 +105,9 @@ export declare const Toggle: React.ForwardRefExoticComponent<AriaLabelingProps &
|
|
|
101
105
|
* The value of the toggle, used when submitting an HTML form.
|
|
102
106
|
*/
|
|
103
107
|
value?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The color variant for the background of the switch when enabled
|
|
110
|
+
*/
|
|
111
|
+
variant?: "primary" | "success" | "danger";
|
|
104
112
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
105
113
|
//# sourceMappingURL=Toggle.d.ts.map
|
package/Toggle/Toggle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../src/Toggle/Toggle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../src/Toggle/Toggle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAUrD,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IAEzC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;CAC5C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,MAAM;IAhFjB;;OAEG;eACQ,SAAS;IAEpB;;OAEG;sBACe,OAAO;IAEzB;;OAEG;iBACU,OAAO;IAEpB;;OAEG;iBACU,OAAO;IAEpB;;OAEG;iBACU,OAAO;IAEpB;;OAEG;WACI,MAAM;IAEb;;OAEG;eACQ,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI;IAExC;;OAEG;YACK,MAAM;IAEd;;OAEG;cACO,SAAS,GAAG,SAAS,GAAG,QAAQ;0CA6F3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.stories.d.ts","sourceRoot":"","sources":["../../src/Toggle/Toggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Toggle.stories.d.ts","sourceRoot":"","sources":["../../src/Toggle/Toggle.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIvD,OAAO,EAAE,MAAM,EAAe,MAAM,UAAU,CAAC;AAE/C,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAIrC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAwB7B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAsBtB,CAAC"}
|
package/Toggle/index.js
CHANGED
package/Toggle/index.mjs
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ToggleProps } from "./Toggle";
|
|
2
|
+
export declare const getTextColorFromProps: ({ variant, isDisabled, isSelected, }: {
|
|
3
|
+
variant: NonNullable<ToggleProps["variant"]>;
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
}) => "primary.800" | "neutral.300" | "positive.700" | "negative.700";
|
|
7
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/Toggle/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,qBAAqB,yCAI/B;IACD,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;IAC7C,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB,oEAYA,CAAC"}
|
|
@@ -34,7 +34,7 @@ import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-ClQj
|
|
|
34
34
|
import { $ as $df56164dff5785e2$export$4338b53315abf666 } from "./useObjectRef-77h4G8qk.mjs";
|
|
35
35
|
import React__default, { forwardRef } from "react";
|
|
36
36
|
import { T as Text } from "./Text-YOL3isF4.mjs";
|
|
37
|
-
import { classNames } from "../utilities/css.mjs";
|
|
37
|
+
import { classNames, variationName } from "../utilities/css.mjs";
|
|
38
38
|
import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "./useToggleState-1Mo_p5l0.mjs";
|
|
39
39
|
import { $ as $d2c8e2b0480f3f34$export$cbe85ee05b554577 } from "./useToggle-DOBadbRi.mjs";
|
|
40
40
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-I6O2iIqT.mjs";
|
|
@@ -53,13 +53,16 @@ function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
|
53
53
|
isReadOnly
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
const Switch$1 = "
|
|
57
|
-
const focusVisible = "
|
|
58
|
-
const track = "
|
|
59
|
-
const thumb = "
|
|
60
|
-
const hovered = "
|
|
61
|
-
const disabled = "
|
|
62
|
-
const selected = "
|
|
56
|
+
const Switch$1 = "_Switch_p9bua_4";
|
|
57
|
+
const focusVisible = "_focusVisible_p9bua_12";
|
|
58
|
+
const track = "_track_p9bua_24";
|
|
59
|
+
const thumb = "_thumb_p9bua_28";
|
|
60
|
+
const hovered = "_hovered_p9bua_32";
|
|
61
|
+
const disabled = "_disabled_p9bua_32";
|
|
62
|
+
const selected = "_selected_p9bua_36";
|
|
63
|
+
const variantPrimary = "_variantPrimary_p9bua_45";
|
|
64
|
+
const variantSuccess = "_variantSuccess_p9bua_53";
|
|
65
|
+
const variantDanger = "_variantDanger_p9bua_61";
|
|
63
66
|
const styles$1 = {
|
|
64
67
|
Switch: Switch$1,
|
|
65
68
|
focusVisible,
|
|
@@ -67,11 +70,14 @@ const styles$1 = {
|
|
|
67
70
|
thumb,
|
|
68
71
|
hovered,
|
|
69
72
|
disabled,
|
|
70
|
-
selected
|
|
73
|
+
selected,
|
|
74
|
+
variantPrimary,
|
|
75
|
+
variantSuccess,
|
|
76
|
+
variantDanger
|
|
71
77
|
};
|
|
72
78
|
function Switch(props) {
|
|
73
|
-
const { isDisabled, isFocusVisible, isHovered, isSelected } = props;
|
|
74
|
-
const className = classNames(styles$1.Switch, isDisabled && styles$1.disabled, isFocusVisible && styles$1.focusVisible, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
79
|
+
const { isDisabled, isFocusVisible, isHovered, isSelected, variant } = props;
|
|
80
|
+
const className = classNames(styles$1.Switch, isDisabled && styles$1.disabled, styles$1[variationName("variant", variant)], isFocusVisible && styles$1.focusVisible, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
75
81
|
return React__default.createElement("span", {
|
|
76
82
|
className
|
|
77
83
|
}, React__default.createElement("svg", {
|
|
@@ -100,7 +106,21 @@ const styles = {
|
|
|
100
106
|
text,
|
|
101
107
|
input
|
|
102
108
|
};
|
|
109
|
+
const getTextColorFromProps = ({ variant, isDisabled, isSelected }) => {
|
|
110
|
+
switch (true) {
|
|
111
|
+
case isDisabled:
|
|
112
|
+
return "neutral.300";
|
|
113
|
+
case (variant === "success" && isSelected):
|
|
114
|
+
return "positive.700";
|
|
115
|
+
case (variant === "danger" && isSelected):
|
|
116
|
+
return "negative.700";
|
|
117
|
+
case (variant === "primary" && isSelected):
|
|
118
|
+
default:
|
|
119
|
+
return "primary.800";
|
|
120
|
+
}
|
|
121
|
+
};
|
|
103
122
|
const Toggle = forwardRef((props, externalRef) => {
|
|
123
|
+
var _b;
|
|
104
124
|
const _a = props, { children, isDisabled, defaultSelected: _defaultSelected, isReadOnly: _isReadOnly, isSelected: _isSelected, name: _name, onChange: _onChange, value: _value } = _a, restProps = __objRest(_a, ["children", "isDisabled", "defaultSelected", "isReadOnly", "isSelected", "name", "onChange", "value"]);
|
|
105
125
|
const ref = React__default.useRef(null);
|
|
106
126
|
const mergedRef = $df56164dff5785e2$export$4338b53315abf666($5dc95899b306f630$export$c9058316764c140e(ref, externalRef));
|
|
@@ -109,8 +129,13 @@ const Toggle = forwardRef((props, externalRef) => {
|
|
|
109
129
|
const { isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
110
130
|
const { isHovered, hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
111
131
|
const isSelected = state.isSelected;
|
|
132
|
+
const variant = (_b = props.variant) != null ? _b : "primary";
|
|
112
133
|
const className = classNames(styles.Toggle, !children && styles.standalone);
|
|
113
|
-
const textColor =
|
|
134
|
+
const textColor = getTextColorFromProps({
|
|
135
|
+
variant,
|
|
136
|
+
isDisabled: !!isDisabled,
|
|
137
|
+
isSelected
|
|
138
|
+
});
|
|
114
139
|
const RootComponent = children ? "label" : "span";
|
|
115
140
|
const rootProps = children ? hoverProps : {};
|
|
116
141
|
const inputProps = children ? $3ef42575df84b30b$export$9d1611c77c2fe928(restProps, inputPropsFromSwitch, focusProps) : $3ef42575df84b30b$export$9d1611c77c2fe928(restProps, inputPropsFromSwitch, focusProps, hoverProps);
|
|
@@ -123,7 +148,8 @@ const Toggle = forwardRef((props, externalRef) => {
|
|
|
123
148
|
isDisabled,
|
|
124
149
|
isFocusVisible,
|
|
125
150
|
isHovered,
|
|
126
|
-
isSelected
|
|
151
|
+
isSelected,
|
|
152
|
+
variant
|
|
127
153
|
}), children && React__default.createElement("span", {
|
|
128
154
|
className: styles.text
|
|
129
155
|
}, React__default.createElement(Text, {
|
|
@@ -54,13 +54,16 @@ function $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {
|
|
|
54
54
|
isReadOnly
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
const Switch$1 = "
|
|
58
|
-
const focusVisible = "
|
|
59
|
-
const track = "
|
|
60
|
-
const thumb = "
|
|
61
|
-
const hovered = "
|
|
62
|
-
const disabled = "
|
|
63
|
-
const selected = "
|
|
57
|
+
const Switch$1 = "_Switch_p9bua_4";
|
|
58
|
+
const focusVisible = "_focusVisible_p9bua_12";
|
|
59
|
+
const track = "_track_p9bua_24";
|
|
60
|
+
const thumb = "_thumb_p9bua_28";
|
|
61
|
+
const hovered = "_hovered_p9bua_32";
|
|
62
|
+
const disabled = "_disabled_p9bua_32";
|
|
63
|
+
const selected = "_selected_p9bua_36";
|
|
64
|
+
const variantPrimary = "_variantPrimary_p9bua_45";
|
|
65
|
+
const variantSuccess = "_variantSuccess_p9bua_53";
|
|
66
|
+
const variantDanger = "_variantDanger_p9bua_61";
|
|
64
67
|
const styles$1 = {
|
|
65
68
|
Switch: Switch$1,
|
|
66
69
|
focusVisible,
|
|
@@ -68,11 +71,14 @@ const styles$1 = {
|
|
|
68
71
|
thumb,
|
|
69
72
|
hovered,
|
|
70
73
|
disabled,
|
|
71
|
-
selected
|
|
74
|
+
selected,
|
|
75
|
+
variantPrimary,
|
|
76
|
+
variantSuccess,
|
|
77
|
+
variantDanger
|
|
72
78
|
};
|
|
73
79
|
function Switch(props) {
|
|
74
|
-
const { isDisabled, isFocusVisible, isHovered, isSelected } = props;
|
|
75
|
-
const className = utilities_css.classNames(styles$1.Switch, isDisabled && styles$1.disabled, isFocusVisible && styles$1.focusVisible, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
80
|
+
const { isDisabled, isFocusVisible, isHovered, isSelected, variant } = props;
|
|
81
|
+
const className = utilities_css.classNames(styles$1.Switch, isDisabled && styles$1.disabled, styles$1[utilities_css.variationName("variant", variant)], isFocusVisible && styles$1.focusVisible, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
76
82
|
return React.createElement("span", {
|
|
77
83
|
className
|
|
78
84
|
}, React.createElement("svg", {
|
|
@@ -101,7 +107,21 @@ const styles = {
|
|
|
101
107
|
text,
|
|
102
108
|
input
|
|
103
109
|
};
|
|
110
|
+
const getTextColorFromProps = ({ variant, isDisabled, isSelected }) => {
|
|
111
|
+
switch (true) {
|
|
112
|
+
case isDisabled:
|
|
113
|
+
return "neutral.300";
|
|
114
|
+
case (variant === "success" && isSelected):
|
|
115
|
+
return "positive.700";
|
|
116
|
+
case (variant === "danger" && isSelected):
|
|
117
|
+
return "negative.700";
|
|
118
|
+
case (variant === "primary" && isSelected):
|
|
119
|
+
default:
|
|
120
|
+
return "primary.800";
|
|
121
|
+
}
|
|
122
|
+
};
|
|
104
123
|
const Toggle = React.forwardRef((props, externalRef) => {
|
|
124
|
+
var _b;
|
|
105
125
|
const _a = props, { children, isDisabled, defaultSelected: _defaultSelected, isReadOnly: _isReadOnly, isSelected: _isSelected, name: _name, onChange: _onChange, value: _value } = _a, restProps = __objRest(_a, ["children", "isDisabled", "defaultSelected", "isReadOnly", "isSelected", "name", "onChange", "value"]);
|
|
106
126
|
const ref = React.useRef(null);
|
|
107
127
|
const mergedRef = useObjectRef.$df56164dff5785e2$export$4338b53315abf666(mergeRefs.$5dc95899b306f630$export$c9058316764c140e(ref, externalRef));
|
|
@@ -110,8 +130,13 @@ const Toggle = React.forwardRef((props, externalRef) => {
|
|
|
110
130
|
const { isFocusVisible, focusProps } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f();
|
|
111
131
|
const { isHovered, hoverProps } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
112
132
|
const isSelected = state.isSelected;
|
|
133
|
+
const variant = (_b = props.variant) != null ? _b : "primary";
|
|
113
134
|
const className = utilities_css.classNames(styles.Toggle, !children && styles.standalone);
|
|
114
|
-
const textColor =
|
|
135
|
+
const textColor = getTextColorFromProps({
|
|
136
|
+
variant,
|
|
137
|
+
isDisabled: !!isDisabled,
|
|
138
|
+
isSelected
|
|
139
|
+
});
|
|
115
140
|
const RootComponent = children ? "label" : "span";
|
|
116
141
|
const rootProps = children ? hoverProps : {};
|
|
117
142
|
const inputProps = children ? mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(restProps, inputPropsFromSwitch, focusProps) : mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(restProps, inputPropsFromSwitch, focusProps, hoverProps);
|
|
@@ -124,7 +149,8 @@ const Toggle = React.forwardRef((props, externalRef) => {
|
|
|
124
149
|
isDisabled,
|
|
125
150
|
isFocusVisible,
|
|
126
151
|
isHovered,
|
|
127
|
-
isSelected
|
|
152
|
+
isSelected,
|
|
153
|
+
variant
|
|
128
154
|
}), children && React.createElement("span", {
|
|
129
155
|
className: styles.text
|
|
130
156
|
}, React.createElement(Text.Text, {
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
}/**
|
|
420
420
|
* Do not edit directly, this file was auto-generated.
|
|
421
421
|
*/
|
|
422
|
-
.
|
|
422
|
+
._Switch_p9bua_4 {
|
|
423
423
|
--ezui-c-switch-color-track: var(--ezui-color-neutral-100);
|
|
424
424
|
--ezui-c-switch-color-thumb: var(--ezui-color-primary-800);
|
|
425
425
|
--ezui-c-switch-border-radius: 99px;
|
|
@@ -427,42 +427,61 @@
|
|
|
427
427
|
border-radius: var(--ezui-c-switch-border-radius);
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
.
|
|
430
|
+
._focusVisible_p9bua_12 {
|
|
431
431
|
outline-width: 2px;
|
|
432
432
|
outline-style: solid;
|
|
433
433
|
outline-color: Highlight;
|
|
434
434
|
}
|
|
435
435
|
@media (-webkit-min-device-pixel-ratio: 0) {
|
|
436
|
-
.
|
|
436
|
+
._focusVisible_p9bua_12 {
|
|
437
437
|
outline-color: -webkit-focus-ring-color;
|
|
438
438
|
outline-style: auto;
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
-
.
|
|
442
|
+
._track_p9bua_24 {
|
|
443
443
|
fill: var(--ezui-c-switch-color-track);
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
.
|
|
446
|
+
._thumb_p9bua_28 {
|
|
447
447
|
fill: var(--ezui-c-switch-color-thumb);
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
.
|
|
450
|
+
._hovered_p9bua_32:not(._disabled_p9bua_32) {
|
|
451
451
|
--ezui-c-switch-color-track: var(--ezui-color-neutral-200);
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
-
.
|
|
455
|
-
--ezui-c-switch-color-track: var(--ezui-color-primary-500);
|
|
454
|
+
._selected_p9bua_36 {
|
|
456
455
|
--ezui-c-switch-color-thumb: var(--ezui-color-neutral-000);
|
|
457
456
|
}
|
|
458
457
|
|
|
459
|
-
.
|
|
458
|
+
._disabled_p9bua_32 {
|
|
459
|
+
--ezui-c-switch-color-track: var(--ezui-color-neutral-050);
|
|
460
|
+
--ezui-c-switch-color-thumb: var(--ezui-color-neutral-300);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
._variantPrimary_p9bua_45._selected_p9bua_36:not(._disabled_p9bua_32) {
|
|
464
|
+
--ezui-c-switch-color-track: var(--ezui-color-primary-500);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
._variantPrimary_p9bua_45._selected_p9bua_36._hovered_p9bua_32:not(._disabled_p9bua_32) {
|
|
460
468
|
--ezui-c-switch-color-track: var(--ezui-color-primary-600);
|
|
461
469
|
}
|
|
462
470
|
|
|
463
|
-
.
|
|
464
|
-
--ezui-c-switch-color-track: var(--ezui-color-
|
|
465
|
-
|
|
471
|
+
._variantSuccess_p9bua_53._selected_p9bua_36:not(._disabled_p9bua_32) {
|
|
472
|
+
--ezui-c-switch-color-track: var(--ezui-color-positive-600);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
._variantSuccess_p9bua_53._selected_p9bua_36._hovered_p9bua_32:not(._disabled_p9bua_32) {
|
|
476
|
+
--ezui-c-switch-color-track: var(--ezui-color-positive-700);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
._variantDanger_p9bua_61._selected_p9bua_36:not(._disabled_p9bua_32) {
|
|
480
|
+
--ezui-c-switch-color-track: var(--ezui-color-negative-600);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
._variantDanger_p9bua_61._selected_p9bua_36._hovered_p9bua_32:not(._disabled_p9bua_32) {
|
|
484
|
+
--ezui-c-switch-color-track: var(--ezui-color-negative-700);
|
|
466
485
|
}/**
|
|
467
486
|
* Do not edit directly, this file was auto-generated.
|
|
468
487
|
*/
|
|
@@ -3804,22 +3823,22 @@ textarea {
|
|
|
3804
3823
|
}/**
|
|
3805
3824
|
* Do not edit directly, this file was auto-generated.
|
|
3806
3825
|
*/
|
|
3807
|
-
.
|
|
3826
|
+
._IconButton_ghgsb_4 {
|
|
3808
3827
|
display: inline-flex;
|
|
3809
3828
|
align-items: center;
|
|
3810
3829
|
justify-content: center;
|
|
3811
3830
|
border-radius: var(--ezui-shape-border-radius-md);
|
|
3812
3831
|
cursor: pointer;
|
|
3813
3832
|
}
|
|
3814
|
-
.
|
|
3833
|
+
._IconButton_ghgsb_4:focus {
|
|
3815
3834
|
box-shadow: var(--ezui-shadow-button);
|
|
3816
3835
|
outline: none;
|
|
3817
3836
|
}
|
|
3818
|
-
.
|
|
3837
|
+
._IconButton_ghgsb_4:disabled {
|
|
3819
3838
|
pointer-events: none;
|
|
3820
3839
|
}
|
|
3821
3840
|
|
|
3822
|
-
.
|
|
3841
|
+
._colorPrimary_ghgsb_19 {
|
|
3823
3842
|
--ezui-c-button-filled-font-color: var(--ezui-color-neutral-000);
|
|
3824
3843
|
--ezui-c-button-filled-active-font-color: var(--ezui-color-neutral-000);
|
|
3825
3844
|
--ezui-c-button-resting-color: var(--ezui-color-primary-500);
|
|
@@ -3827,7 +3846,7 @@ textarea {
|
|
|
3827
3846
|
--ezui-c-button-active-color: var(--ezui-color-primary-700);
|
|
3828
3847
|
}
|
|
3829
3848
|
|
|
3830
|
-
.
|
|
3849
|
+
._colorSecondary_ghgsb_27 {
|
|
3831
3850
|
--ezui-c-button-filled-font-color: var(--ezui-color-neutral-000);
|
|
3832
3851
|
--ezui-c-button-filled-active-font-color: var(--ezui-color-neutral-000);
|
|
3833
3852
|
--ezui-c-button-resting-color: var(--ezui-color-secondary-500);
|
|
@@ -3835,7 +3854,7 @@ textarea {
|
|
|
3835
3854
|
--ezui-c-button-active-color: var(--ezui-color-secondary-700);
|
|
3836
3855
|
}
|
|
3837
3856
|
|
|
3838
|
-
.
|
|
3857
|
+
._colorSuccess_ghgsb_35 {
|
|
3839
3858
|
--ezui-c-button-filled-font-color: var(--ezui-color-primary-800);
|
|
3840
3859
|
--ezui-c-button-filled-active-font-color: var(--ezui-color-neutral-000);
|
|
3841
3860
|
--ezui-c-button-resting-color: var(--ezui-color-positive-500);
|
|
@@ -3843,7 +3862,7 @@ textarea {
|
|
|
3843
3862
|
--ezui-c-button-active-color: var(--ezui-color-positive-700);
|
|
3844
3863
|
}
|
|
3845
3864
|
|
|
3846
|
-
.
|
|
3865
|
+
._colorWarning_ghgsb_43 {
|
|
3847
3866
|
--ezui-c-button-filled-font-color: var(--ezui-color-primary-800);
|
|
3848
3867
|
--ezui-c-button-filled-active-font-color: var(--ezui-color-primary-800);
|
|
3849
3868
|
--ezui-c-button-resting-color: var(--ezui-color-negative-500);
|
|
@@ -3851,7 +3870,7 @@ textarea {
|
|
|
3851
3870
|
--ezui-c-button-active-color: var(--ezui-color-negative-700);
|
|
3852
3871
|
}
|
|
3853
3872
|
|
|
3854
|
-
.
|
|
3873
|
+
._colorNeutral_ghgsb_51 {
|
|
3855
3874
|
--ezui-c-button-filled-font-color: var(--ezui-color-neutral-000);
|
|
3856
3875
|
--ezui-c-button-filled-active-font-color: var(--ezui-color-neutral-000);
|
|
3857
3876
|
--ezui-c-button-resting-color: var(--ezui-color-primary-800);
|
|
@@ -3859,72 +3878,94 @@ textarea {
|
|
|
3859
3878
|
--ezui-c-button-active-color: var(--ezui-color-primary-700);
|
|
3860
3879
|
}
|
|
3861
3880
|
|
|
3862
|
-
.
|
|
3881
|
+
._colorSupport_ghgsb_59 {
|
|
3863
3882
|
--ezui-c-button-resting-color: var(--ezui-color-primary-800);
|
|
3864
3883
|
--ezui-c-button-hover-focus-color: var(--ezui-color-neutral-900);
|
|
3865
3884
|
--ezui-c-button-active-color: var(--ezui-color-neutral-700);
|
|
3866
3885
|
}
|
|
3867
3886
|
|
|
3868
|
-
.
|
|
3887
|
+
._colorInverse_ghgsb_65 {
|
|
3869
3888
|
--ezui-c-button-resting-color: var(--ezui-color-neutral-000);
|
|
3870
3889
|
--ezui-c-button-hover-focus-color: var(--ezui-color-neutral-100);
|
|
3871
3890
|
--ezui-c-button-active-color: var(--ezui-color-neutral-200);
|
|
3872
3891
|
}
|
|
3873
3892
|
|
|
3874
|
-
.
|
|
3893
|
+
._variantOutlined_ghgsb_71 {
|
|
3875
3894
|
padding: calc(var(--ezui-space-1-5) - var(--ezui-shape-border-width-1));
|
|
3876
3895
|
background-color: transparent;
|
|
3877
3896
|
border: var(--ezui-shape-border-width-1) solid var(--ezui-c-button-resting-color);
|
|
3878
3897
|
color: var(--ezui-c-button-resting-color);
|
|
3879
3898
|
}
|
|
3880
|
-
.
|
|
3899
|
+
._variantOutlined_ghgsb_71:focus {
|
|
3881
3900
|
border: var(--ezui-shape-border-width-1) solid var(--ezui-c-button-hover-focus-color);
|
|
3882
3901
|
color: var(--ezui-c-button-hover-focus-color);
|
|
3883
3902
|
}
|
|
3884
|
-
.
|
|
3903
|
+
._variantOutlined_ghgsb_71:disabled {
|
|
3885
3904
|
color: var(--ezui-color-neutral-300);
|
|
3886
3905
|
border: var(--ezui-shape-border-width-1) solid var(--ezui-color-neutral-300);
|
|
3887
3906
|
}
|
|
3888
|
-
.
|
|
3907
|
+
._variantOutlined_ghgsb_71:link {
|
|
3889
3908
|
text-decoration: none;
|
|
3890
3909
|
}
|
|
3891
|
-
.
|
|
3910
|
+
._variantOutlined_ghgsb_71:active:not(:disabled) {
|
|
3892
3911
|
color: var(--ezui-c-button-active-color);
|
|
3893
3912
|
border: var(--ezui-shape-border-width-1) solid var(--ezui-c-button-active-color);
|
|
3894
3913
|
}
|
|
3895
|
-
.
|
|
3914
|
+
._variantOutlined_ghgsb_71:active:not(:disabled):focus {
|
|
3896
3915
|
box-shadow: none;
|
|
3897
3916
|
}
|
|
3898
|
-
.
|
|
3917
|
+
._variantOutlined_ghgsb_71:hover:not(:disabled):not(:active) {
|
|
3899
3918
|
border: var(--ezui-shape-border-width-1) solid var(--ezui-c-button-hover-focus-color);
|
|
3900
3919
|
color: var(--ezui-c-button-hover-focus-color);
|
|
3901
3920
|
}
|
|
3902
3921
|
|
|
3903
|
-
.
|
|
3922
|
+
._variantFilled_ghgsb_100 {
|
|
3904
3923
|
padding: var(--ezui-space-1-5);
|
|
3905
3924
|
background-color: var(--ezui-c-button-resting-color);
|
|
3906
3925
|
color: var(--ezui-c-button-filled-font-color);
|
|
3907
3926
|
}
|
|
3908
|
-
.
|
|
3927
|
+
._variantFilled_ghgsb_100:focus {
|
|
3909
3928
|
background-color: var(--ezui-c-button-hover-focus-color);
|
|
3910
3929
|
}
|
|
3911
|
-
.
|
|
3930
|
+
._variantFilled_ghgsb_100:disabled {
|
|
3912
3931
|
color: var(--ezui-color-neutral-000);
|
|
3913
3932
|
background-color: var(--ezui-color-neutral-200);
|
|
3914
3933
|
}
|
|
3915
|
-
.
|
|
3934
|
+
._variantFilled_ghgsb_100:link {
|
|
3916
3935
|
text-decoration: none;
|
|
3917
3936
|
}
|
|
3918
|
-
.
|
|
3937
|
+
._variantFilled_ghgsb_100:not(:disabled):active {
|
|
3919
3938
|
color: var(--ezui-c-button-filled-active-font-color);
|
|
3920
3939
|
background-color: var(--ezui-c-button-active-color);
|
|
3921
3940
|
}
|
|
3922
|
-
.
|
|
3941
|
+
._variantFilled_ghgsb_100:not(:disabled):active:focus {
|
|
3923
3942
|
box-shadow: none;
|
|
3924
3943
|
}
|
|
3925
|
-
.
|
|
3944
|
+
._variantFilled_ghgsb_100:hover:not(:disabled):not(:active) {
|
|
3926
3945
|
background-color: var(--ezui-c-button-hover-focus-color);
|
|
3927
3946
|
color: var(--ezui-c-button-filled-font-color);
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
._sizeMd_ghgsb_127 {
|
|
3950
|
+
font-weight: 500;
|
|
3951
|
+
font-size: 0.9375rem;
|
|
3952
|
+
letter-spacing: 0;
|
|
3953
|
+
line-height: 1.5rem;
|
|
3954
|
+
}
|
|
3955
|
+
|
|
3956
|
+
._sizeSm_ghgsb_134 {
|
|
3957
|
+
font-weight: 500;
|
|
3958
|
+
font-size: 0.75rem;
|
|
3959
|
+
letter-spacing: 0;
|
|
3960
|
+
line-height: 1rem;
|
|
3961
|
+
}
|
|
3962
|
+
|
|
3963
|
+
._sizeSm_ghgsb_134._variantFilled_ghgsb_100 {
|
|
3964
|
+
padding: var(--ezui-space-1);
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
._sizeSm_ghgsb_134._variantOutlined_ghgsb_71 {
|
|
3968
|
+
padding: calc(var(--ezui-space-1) - var(--ezui-shape-border-width-1));
|
|
3928
3969
|
}/**
|
|
3929
3970
|
* Do not edit directly, this file was auto-generated.
|
|
3930
3971
|
*/
|