sesame-components-testing 2.0.1 → 2.0.2
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/dist/Button/Button.d.ts +14 -0
- package/dist/Button/Button.js +22 -0
- package/dist/Button/Button.styles.d.ts +10 -0
- package/{src/Button/Button.styles.ts → dist/Button/Button.styles.js} +30 -53
- package/dist/Common/FlexCenter.d.ts +4 -0
- package/dist/Common/FlexCenter.js +12 -0
- package/dist/SesameComponent.d.ts +5 -0
- package/dist/SesameComponent.js +17 -0
- package/dist/index.js +7 -0
- package/dist/theme/ThemeProvider.d.ts +7 -0
- package/dist/theme/ThemeProvider.js +19 -0
- package/dist/theme/colors/darkColors.d.ts +2 -0
- package/dist/theme/colors/darkColors.js +224 -0
- package/dist/theme/colors/lightColors.d.ts +2 -0
- package/dist/theme/colors/lightColors.js +224 -0
- package/dist/theme/colors/primitiveColors.d.ts +19 -0
- package/dist/theme/colors/primitiveColors.js +259 -0
- package/dist/theme/extendTheme.d.ts +2 -0
- package/dist/theme/extendTheme.js +23 -0
- package/{src/theme/index.ts → dist/theme/index.d.ts} +2 -4
- package/dist/theme/index.js +22 -0
- package/dist/theme/sizes/breakpoints.d.ts +2 -0
- package/dist/theme/sizes/breakpoints.js +732 -0
- package/dist/theme/sizes/dpiToRem.d.ts +2 -0
- package/dist/theme/sizes/dpiToRem.js +9 -0
- package/dist/theme/sizes/getSizedTheme.d.ts +3 -0
- package/dist/theme/sizes/getSizedTheme.js +8 -0
- package/dist/theme/theme.d.ts +7 -0
- package/dist/theme/theme.js +32 -0
- package/dist/theme/types.d.ts +169 -0
- package/dist/theme/types.js +2 -0
- package/dist/theme/useBreakpointSize.d.ts +3 -0
- package/dist/theme/useBreakpointSize.js +35 -0
- package/package.json +7 -12
- package/src/Button/Button.tsx +0 -37
- package/src/Common/FlexCenter.tsx +0 -7
- package/src/SesameComponent.tsx +0 -16
- package/src/theme/ThemeProvider.tsx +0 -23
- package/src/theme/colors/darkColors.ts +0 -223
- package/src/theme/colors/lightColors.ts +0 -223
- package/src/theme/colors/primitiveColors.ts +0 -297
- package/src/theme/extendTheme.ts +0 -26
- package/src/theme/reset.css +0 -21
- package/src/theme/sizes/breakpoints.ts +0 -751
- package/src/theme/sizes/dpiToRem.ts +0 -8
- package/src/theme/sizes/getSizedTheme.ts +0 -8
- package/src/theme/theme.ts +0 -32
- package/src/theme/types.ts +0 -205
- package/src/theme/useBreakpointSize.ts +0 -38
- package/tsconfig.json +0 -13
- package/vite-env.d.ts +0 -8
- package/vite.config.ts +0 -55
- package/vitest.config.ts +0 -76
- package/vitest.shims.d.ts +0 -1
- /package/{src/index.ts → dist/index.d.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, FC, ReactNode } from 'react';
|
|
2
|
+
import type { Theme } from '../theme';
|
|
3
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'error' | 'success' | 'keypad';
|
|
4
|
+
export type ButtonSize = keyof Theme['height']['button']['posButton'];
|
|
5
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
variant?: ButtonVariant;
|
|
8
|
+
size?: ButtonSize;
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
leftIcon?: ReactNode;
|
|
11
|
+
rightIcon?: ReactNode;
|
|
12
|
+
stretch?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const Button: FC<ButtonProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.Button = void 0;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
const FlexCenter_1 = require("../Common/FlexCenter");
|
|
17
|
+
const Button_styles_1 = require("./Button.styles");
|
|
18
|
+
const Button = (_a) => {
|
|
19
|
+
var { variant = 'primary', size = 'm', selected, children, leftIcon, rightIcon, stretch = false, type = 'button' } = _a, rest = __rest(_a, ["variant", "size", "selected", "children", "leftIcon", "rightIcon", "stretch", "type"]);
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)(Button_styles_1.StyledButton, Object.assign({ type: type, "$variant": variant, "$size": size, "$selected": selected, "$stretch": stretch }, rest, { children: [leftIcon && (0, jsx_runtime_1.jsx)(FlexCenter_1.FlexCenter, { children: leftIcon }), (0, jsx_runtime_1.jsx)(FlexCenter_1.FlexCenter, { children: children }), rightIcon && (0, jsx_runtime_1.jsx)(FlexCenter_1.FlexCenter, { children: rightIcon })] })));
|
|
21
|
+
};
|
|
22
|
+
exports.Button = Button;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ButtonSize, ButtonVariant } from './Button';
|
|
2
|
+
export declare const StyledButton: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
} & {
|
|
6
|
+
$variant: ButtonVariant;
|
|
7
|
+
$size: ButtonSize;
|
|
8
|
+
$selected?: boolean;
|
|
9
|
+
$stretch?: boolean;
|
|
10
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}: {
|
|
12
|
-
theme: Theme;
|
|
13
|
-
$variant: ButtonVariant;
|
|
14
|
-
$selected?: boolean;
|
|
15
|
-
}): SerializedStyles =>
|
|
16
|
-
({
|
|
17
|
-
primary: css`
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StyledButton = void 0;
|
|
7
|
+
const react_1 = require("@emotion/react");
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
+
const variants = ({ theme, $variant, $selected, }) => ({
|
|
10
|
+
primary: (0, react_1.css) `
|
|
18
11
|
border-color: ${theme.colors.border.cta.primary.default};
|
|
19
12
|
background: ${theme.colors.fill.cta.primary.default};
|
|
20
13
|
|
|
@@ -28,12 +21,12 @@ const variants = ({
|
|
|
28
21
|
background: ${theme.colors.fill.cta.primary.disabled};
|
|
29
22
|
}
|
|
30
23
|
`,
|
|
31
|
-
secondary: css`
|
|
24
|
+
secondary: (0, react_1.css) `
|
|
32
25
|
border-color: ${theme.colors.border.cta.secondary.default};
|
|
33
26
|
background: ${theme.colors.fill.cta.secondary.default};
|
|
34
27
|
|
|
35
28
|
${$selected
|
|
36
|
-
? css`
|
|
29
|
+
? (0, react_1.css) `
|
|
37
30
|
background: ${theme.colors.fill.surface.highEmphasis};
|
|
38
31
|
|
|
39
32
|
&,
|
|
@@ -41,7 +34,7 @@ const variants = ({
|
|
|
41
34
|
color: ${theme.colors.fill.icon.inverse.highEmphasis};
|
|
42
35
|
}
|
|
43
36
|
`
|
|
44
|
-
: css`
|
|
37
|
+
: (0, react_1.css) `
|
|
45
38
|
&:active {
|
|
46
39
|
border-color: ${theme.colors.border.cta.secondary.pressed};
|
|
47
40
|
background: ${theme.colors.fill.cta.secondary.pressed};
|
|
@@ -53,12 +46,12 @@ const variants = ({
|
|
|
53
46
|
background: ${theme.colors.fill.cta.secondary.disabled};
|
|
54
47
|
}
|
|
55
48
|
`,
|
|
56
|
-
tertiary: css`
|
|
49
|
+
tertiary: (0, react_1.css) `
|
|
57
50
|
border-color: ${theme.colors.border.cta.tertiary.default};
|
|
58
51
|
background: ${theme.colors.fill.cta.tertiary.default};
|
|
59
52
|
|
|
60
53
|
${$selected
|
|
61
|
-
? css`
|
|
54
|
+
? (0, react_1.css) `
|
|
62
55
|
background: ${theme.colors.fill.surface.highEmphasis};
|
|
63
56
|
|
|
64
57
|
&,
|
|
@@ -66,7 +59,7 @@ const variants = ({
|
|
|
66
59
|
color: ${theme.colors.fill.icon.inverse.highEmphasis};
|
|
67
60
|
}
|
|
68
61
|
`
|
|
69
|
-
: css`
|
|
62
|
+
: (0, react_1.css) `
|
|
70
63
|
&:active {
|
|
71
64
|
border-color: ${theme.colors.border.cta.tertiary.pressed};
|
|
72
65
|
background: ${theme.colors.fill.cta.tertiary.pressed};
|
|
@@ -77,10 +70,10 @@ const variants = ({
|
|
|
77
70
|
background: ${theme.colors.fill.cta.tertiary.disabled};
|
|
78
71
|
}
|
|
79
72
|
`,
|
|
80
|
-
ghost: css`
|
|
73
|
+
ghost: (0, react_1.css) `
|
|
81
74
|
background: ${theme.colors.fill.cta.ghost.default};
|
|
82
75
|
`,
|
|
83
|
-
error: css`
|
|
76
|
+
error: (0, react_1.css) `
|
|
84
77
|
border-color: ${theme.colors.border.cta.critical.default};
|
|
85
78
|
background: ${theme.colors.fill.cta.critical.default};
|
|
86
79
|
|
|
@@ -99,7 +92,7 @@ const variants = ({
|
|
|
99
92
|
}
|
|
100
93
|
}
|
|
101
94
|
`,
|
|
102
|
-
success: css`
|
|
95
|
+
success: (0, react_1.css) `
|
|
103
96
|
border-color: ${theme.colors.border.cta.success.default};
|
|
104
97
|
background: ${theme.colors.fill.cta.success.default};
|
|
105
98
|
|
|
@@ -118,7 +111,7 @@ const variants = ({
|
|
|
118
111
|
}
|
|
119
112
|
}
|
|
120
113
|
`,
|
|
121
|
-
keypad: css`
|
|
114
|
+
keypad: (0, react_1.css) `
|
|
122
115
|
border-color: ${theme.colors.border.cta.secondary.default};
|
|
123
116
|
background: ${theme.colors.fill.cta.secondary.default};
|
|
124
117
|
border-radius: ${theme.radii.s};
|
|
@@ -136,45 +129,29 @@ const variants = ({
|
|
|
136
129
|
background: ${theme.colors.fill.cta.secondary.disabled};
|
|
137
130
|
}
|
|
138
131
|
`,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
$variant,
|
|
144
|
-
$size,
|
|
145
|
-
}: {
|
|
146
|
-
theme: Theme;
|
|
147
|
-
$variant: ButtonVariant;
|
|
148
|
-
$size: ButtonSize;
|
|
149
|
-
}): SerializedStyles => {
|
|
150
|
-
if ($variant === 'keypad') {
|
|
151
|
-
return css`
|
|
132
|
+
})[$variant];
|
|
133
|
+
const sizes = ({ theme, $variant, $size, }) => {
|
|
134
|
+
if ($variant === 'keypad') {
|
|
135
|
+
return (0, react_1.css) `
|
|
152
136
|
height: ${theme.height.button.posButton.l.fixed};
|
|
153
137
|
min-height: ${theme.height.button.posButton.l.fixed};
|
|
154
138
|
max-height: ${theme.height.button.posButton.l.fixed};
|
|
155
139
|
width: 100%;
|
|
156
140
|
`;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
return css`
|
|
141
|
+
}
|
|
142
|
+
const buttonHeight = theme.height.button.posButton[$size];
|
|
143
|
+
const buttonWidth = theme.width.button.posButton[$size];
|
|
144
|
+
return (0, react_1.css) `
|
|
162
145
|
height: ${buttonHeight.fixed};
|
|
163
146
|
min-height: ${buttonHeight.min};
|
|
164
147
|
max-height: ${buttonHeight.max};
|
|
165
148
|
${buttonWidth &&
|
|
166
|
-
|
|
149
|
+
(0, react_1.css) `
|
|
167
150
|
min-width: ${buttonWidth.min};
|
|
168
151
|
`}
|
|
169
152
|
`;
|
|
170
153
|
};
|
|
171
|
-
|
|
172
|
-
export const StyledButton = styled.button<{
|
|
173
|
-
$variant: ButtonVariant;
|
|
174
|
-
$size: ButtonSize;
|
|
175
|
-
$selected?: boolean;
|
|
176
|
-
$stretch?: boolean;
|
|
177
|
-
}>`
|
|
154
|
+
exports.StyledButton = styled_1.default.button `
|
|
178
155
|
display: inline-flex;
|
|
179
156
|
align-items: center;
|
|
180
157
|
justify-content: center;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FlexCenter = void 0;
|
|
7
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
8
|
+
exports.FlexCenter = styled_1.default.div `
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SesameComponent = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
+
const StyledDiv = styled_1.default.div `
|
|
10
|
+
background-color: red;
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
font-size: 33px;
|
|
13
|
+
`;
|
|
14
|
+
const SesameComponent = ({ message = "Hello, Sesame!" }) => {
|
|
15
|
+
return (0, jsx_runtime_1.jsx)(StyledDiv, { children: message });
|
|
16
|
+
};
|
|
17
|
+
exports.SesameComponent = SesameComponent;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Button = exports.SesameComponent = void 0;
|
|
4
|
+
var SesameComponent_1 = require("./SesameComponent");
|
|
5
|
+
Object.defineProperty(exports, "SesameComponent", { enumerable: true, get: function () { return SesameComponent_1.SesameComponent; } });
|
|
6
|
+
var Button_1 = require("./Button/Button");
|
|
7
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThemeProvider = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("@emotion/react");
|
|
6
|
+
const react_2 = require("react");
|
|
7
|
+
const getSizedTheme_1 = require("./sizes/getSizedTheme");
|
|
8
|
+
const useBreakpointSize_1 = require("./useBreakpointSize");
|
|
9
|
+
const useSizedTheme = (theme) => {
|
|
10
|
+
const size = (0, useBreakpointSize_1.useBreakpointSize)();
|
|
11
|
+
return (0, react_2.useMemo)(() => {
|
|
12
|
+
return (0, getSizedTheme_1.getSizedTheme)(theme, size);
|
|
13
|
+
}, [size, theme]);
|
|
14
|
+
};
|
|
15
|
+
const ThemeProvider = ({ theme, children }) => {
|
|
16
|
+
const sizedTheme = useSizedTheme(theme);
|
|
17
|
+
return (0, jsx_runtime_1.jsx)(react_1.ThemeProvider, { theme: sizedTheme, children: children });
|
|
18
|
+
};
|
|
19
|
+
exports.ThemeProvider = ThemeProvider;
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.darkColors = void 0;
|
|
4
|
+
const primitiveColors_1 = require("./primitiveColors");
|
|
5
|
+
exports.darkColors = {
|
|
6
|
+
fill: {
|
|
7
|
+
icon: {
|
|
8
|
+
common: {
|
|
9
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['02'],
|
|
10
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['03'],
|
|
11
|
+
active: primitiveColors_1.primitiveColors.solids.gold['500'],
|
|
12
|
+
disabled: 'rgba(238, 232, 224, 0.6)',
|
|
13
|
+
},
|
|
14
|
+
inverse: {
|
|
15
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['08'],
|
|
16
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['06'],
|
|
17
|
+
disabled: primitiveColors_1.primitiveColors.transparencies.black['60%'],
|
|
18
|
+
error: primitiveColors_1.primitiveColors.solids.red['600'],
|
|
19
|
+
},
|
|
20
|
+
constantDark: {
|
|
21
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['08'],
|
|
22
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['06'],
|
|
23
|
+
disabled: primitiveColors_1.primitiveColors.transparencies.black['60%'],
|
|
24
|
+
},
|
|
25
|
+
constantLight: {
|
|
26
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['02'],
|
|
27
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['03'],
|
|
28
|
+
disabled: 'rgba(252, 250, 247, 0.8)',
|
|
29
|
+
},
|
|
30
|
+
constantColor: {
|
|
31
|
+
purple: primitiveColors_1.primitiveColors.solids.purple['400'],
|
|
32
|
+
red: primitiveColors_1.primitiveColors.solids.red['500'],
|
|
33
|
+
yellow: primitiveColors_1.primitiveColors.solids.yellow['500'],
|
|
34
|
+
green: primitiveColors_1.primitiveColors.solids.greenDark['600'],
|
|
35
|
+
brown: primitiveColors_1.primitiveColors.solids.brownWarm['600'],
|
|
36
|
+
orange: primitiveColors_1.primitiveColors.solids.orange['500'],
|
|
37
|
+
lightBlue: primitiveColors_1.primitiveColors.solids.blue['100'],
|
|
38
|
+
lightGreen: primitiveColors_1.primitiveColors.solids.yellowGreen['300'],
|
|
39
|
+
lightYellow: primitiveColors_1.primitiveColors.solids.gold['400'],
|
|
40
|
+
lightPink: primitiveColors_1.primitiveColors.solids.fuchsia['100'],
|
|
41
|
+
lightGrey: primitiveColors_1.primitiveColors.grayscale.neutral['02'],
|
|
42
|
+
},
|
|
43
|
+
notification: {
|
|
44
|
+
success: primitiveColors_1.primitiveColors.solids.green['200'],
|
|
45
|
+
info: primitiveColors_1.primitiveColors.solids.cyan['200'],
|
|
46
|
+
error: primitiveColors_1.primitiveColors.solids.red['200'],
|
|
47
|
+
warning: primitiveColors_1.primitiveColors.solids.orange['200'],
|
|
48
|
+
},
|
|
49
|
+
link: {
|
|
50
|
+
default: primitiveColors_1.primitiveColors.solids.blue['300'],
|
|
51
|
+
hover: primitiveColors_1.primitiveColors.solids.blue['200'],
|
|
52
|
+
pressed: primitiveColors_1.primitiveColors.solids.blue['500'],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
cta: {
|
|
56
|
+
primary: {
|
|
57
|
+
default: primitiveColors_1.primitiveColors.solids.gold['500'],
|
|
58
|
+
pressed: primitiveColors_1.primitiveColors.solids.gold['600'],
|
|
59
|
+
disabled: 'rgba(214, 155, 0, 0.4)',
|
|
60
|
+
},
|
|
61
|
+
secondary: {
|
|
62
|
+
default: primitiveColors_1.primitiveColors.grayscale.neutral['09'],
|
|
63
|
+
pressed: primitiveColors_1.primitiveColors.grayscale.neutral['10'],
|
|
64
|
+
disabled: 'rgba(33, 29, 23, 0.8)',
|
|
65
|
+
},
|
|
66
|
+
tertiary: {
|
|
67
|
+
default: primitiveColors_1.primitiveColors.grayscale.neutral['10'],
|
|
68
|
+
pressed: primitiveColors_1.primitiveColors.grayscale.neutral['11'],
|
|
69
|
+
disabled: 'rgba(9, 9, 9, 0.9)',
|
|
70
|
+
},
|
|
71
|
+
ghost: {
|
|
72
|
+
default: primitiveColors_1.primitiveColors.transparencies.white['0%'],
|
|
73
|
+
pressed: primitiveColors_1.primitiveColors.grayscale.neutral['09'],
|
|
74
|
+
},
|
|
75
|
+
critical: {
|
|
76
|
+
default: primitiveColors_1.primitiveColors.solids.red['500'],
|
|
77
|
+
pressed: primitiveColors_1.primitiveColors.solids.red['700'],
|
|
78
|
+
disabled: 'rgba(219, 0, 7, 0.4)',
|
|
79
|
+
},
|
|
80
|
+
success: {
|
|
81
|
+
default: primitiveColors_1.primitiveColors.solids.green['600'],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
notification: {
|
|
85
|
+
general: 'rgba(238, 232, 224, 0.8)',
|
|
86
|
+
success: 'rgba(6, 143, 29, 0.8)',
|
|
87
|
+
info: 'rgba(27, 106, 136, 0.8)',
|
|
88
|
+
error: 'rgba(219, 0, 7, 0.8)',
|
|
89
|
+
warning: 'rgba(232, 114, 10, 0.8)',
|
|
90
|
+
},
|
|
91
|
+
surface: {
|
|
92
|
+
default: primitiveColors_1.primitiveColors.grayscale.neutral['09'],
|
|
93
|
+
raised: primitiveColors_1.primitiveColors.grayscale.neutral['08'],
|
|
94
|
+
sunken: primitiveColors_1.primitiveColors.grayscale.neutral['10'],
|
|
95
|
+
disabled: 'rgba(33, 29, 23, 0.4)',
|
|
96
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['02'],
|
|
97
|
+
overlay: 'rgba(33, 29, 23, 0.8)',
|
|
98
|
+
status: primitiveColors_1.primitiveColors.solids.cyan['600'],
|
|
99
|
+
success: primitiveColors_1.primitiveColors.solids.greenDark['600'],
|
|
100
|
+
critical: primitiveColors_1.primitiveColors.solids.red['400'],
|
|
101
|
+
warning: primitiveColors_1.primitiveColors.solids.gold['600'],
|
|
102
|
+
brand: {
|
|
103
|
+
gold: primitiveColors_1.primitiveColors.solids.gold['500'],
|
|
104
|
+
red: primitiveColors_1.primitiveColors.solids.red['500'],
|
|
105
|
+
gray: primitiveColors_1.primitiveColors.grayscale.neutral['06'],
|
|
106
|
+
},
|
|
107
|
+
constant: {
|
|
108
|
+
dark: primitiveColors_1.primitiveColors.grayscale.neutral['08'],
|
|
109
|
+
light: primitiveColors_1.primitiveColors.grayscale.neutral['01'],
|
|
110
|
+
},
|
|
111
|
+
constantColor: {
|
|
112
|
+
blue: primitiveColors_1.primitiveColors.solids.blueDark['400'],
|
|
113
|
+
red: primitiveColors_1.primitiveColors.solids.red['600'],
|
|
114
|
+
purple: primitiveColors_1.primitiveColors.solids.indigo['400'],
|
|
115
|
+
yellow: primitiveColors_1.primitiveColors.solids.gold['600'],
|
|
116
|
+
green: primitiveColors_1.primitiveColors.solids.yellowGreen['600'],
|
|
117
|
+
gold: primitiveColors_1.primitiveColors.solids.gold['400'],
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
border: {
|
|
122
|
+
cta: {
|
|
123
|
+
primary: {
|
|
124
|
+
default: primitiveColors_1.primitiveColors.solids.gold['400'],
|
|
125
|
+
pressed: primitiveColors_1.primitiveColors.solids.gold['400'],
|
|
126
|
+
disabled: 'rgba(133, 96, 0, 0.4)',
|
|
127
|
+
},
|
|
128
|
+
secondary: {
|
|
129
|
+
default: primitiveColors_1.primitiveColors.solids.grey['700'],
|
|
130
|
+
pressed: primitiveColors_1.primitiveColors.grayscale.neutral['06'],
|
|
131
|
+
disabled: 'rgba(61, 61, 61, 0.8)',
|
|
132
|
+
},
|
|
133
|
+
tertiary: {
|
|
134
|
+
default: primitiveColors_1.primitiveColors.solids.grey['600'],
|
|
135
|
+
pressed: primitiveColors_1.primitiveColors.solids.grey['500'],
|
|
136
|
+
disabled: primitiveColors_1.primitiveColors.solids.grey['700'],
|
|
137
|
+
},
|
|
138
|
+
critical: {
|
|
139
|
+
default: primitiveColors_1.primitiveColors.solids.red['400'],
|
|
140
|
+
pressed: primitiveColors_1.primitiveColors.solids.red['300'],
|
|
141
|
+
disabled: 'rgba(236, 49, 55, 0.4)',
|
|
142
|
+
},
|
|
143
|
+
success: {
|
|
144
|
+
default: primitiveColors_1.primitiveColors.solids.greenDark['500'],
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
fields: {
|
|
148
|
+
default: primitiveColors_1.primitiveColors.grayscale.neutral['05'],
|
|
149
|
+
active: primitiveColors_1.primitiveColors.grayscale.neutral['04'],
|
|
150
|
+
filled: primitiveColors_1.primitiveColors.grayscale.neutral['05'],
|
|
151
|
+
disabled: 'rgba(107, 98, 89, 0.5)',
|
|
152
|
+
error: primitiveColors_1.primitiveColors.solids.red['500'],
|
|
153
|
+
success: primitiveColors_1.primitiveColors.solids.green['200'],
|
|
154
|
+
},
|
|
155
|
+
elements: {
|
|
156
|
+
divider: {
|
|
157
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['02'],
|
|
158
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['07'],
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
states: {
|
|
162
|
+
focus: primitiveColors_1.primitiveColors.grayscale.neutral['00'],
|
|
163
|
+
selected: primitiveColors_1.primitiveColors.solids.gold['500'],
|
|
164
|
+
disabled: primitiveColors_1.primitiveColors.grayscale.neutral['06'],
|
|
165
|
+
},
|
|
166
|
+
container: {
|
|
167
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['02'],
|
|
168
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.solids.grey['700'],
|
|
169
|
+
lowEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['08'],
|
|
170
|
+
inverseHigh: primitiveColors_1.primitiveColors.grayscale.neutral['08'],
|
|
171
|
+
inverseMedium: primitiveColors_1.primitiveColors.solids.tan['300'],
|
|
172
|
+
constantLight: primitiveColors_1.primitiveColors.grayscale.neutral['02'],
|
|
173
|
+
constantDark: primitiveColors_1.primitiveColors.grayscale.neutral['08'],
|
|
174
|
+
constantColor: {
|
|
175
|
+
blue: primitiveColors_1.primitiveColors.solids.blueDark['500'],
|
|
176
|
+
purple: primitiveColors_1.primitiveColors.solids.indigo['600'],
|
|
177
|
+
red: primitiveColors_1.primitiveColors.solids.red['700'],
|
|
178
|
+
yellow: primitiveColors_1.primitiveColors.solids.gold['700'],
|
|
179
|
+
green: primitiveColors_1.primitiveColors.solids.yellowGreen['700'],
|
|
180
|
+
gold: primitiveColors_1.primitiveColors.solids.gold['400'],
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
common: {
|
|
184
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['04'],
|
|
185
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['06'],
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
text: {
|
|
189
|
+
common: {
|
|
190
|
+
highContrast: primitiveColors_1.primitiveColors.grayscale.neutral['00'],
|
|
191
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['02'],
|
|
192
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['03'],
|
|
193
|
+
disabled: 'rgba(238, 232, 224, 0.6)',
|
|
194
|
+
success: primitiveColors_1.primitiveColors.solids.green['300'],
|
|
195
|
+
info: primitiveColors_1.primitiveColors.solids.cyan['100'],
|
|
196
|
+
error: primitiveColors_1.primitiveColors.solids.red['100'],
|
|
197
|
+
warning: primitiveColors_1.primitiveColors.solids.orange['300'],
|
|
198
|
+
},
|
|
199
|
+
inverse: {
|
|
200
|
+
highContrast: primitiveColors_1.primitiveColors.grayscale.neutral['11'],
|
|
201
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['08'],
|
|
202
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['07'],
|
|
203
|
+
disabled: 'rgba(13, 12, 12, 0.7)',
|
|
204
|
+
},
|
|
205
|
+
constantDark: {
|
|
206
|
+
highContrast: primitiveColors_1.primitiveColors.grayscale.neutral['11'],
|
|
207
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['08'],
|
|
208
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['07'],
|
|
209
|
+
disabled: primitiveColors_1.primitiveColors.transparencies.black['70%'],
|
|
210
|
+
},
|
|
211
|
+
constantLight: {
|
|
212
|
+
highContrast: primitiveColors_1.primitiveColors.grayscale.neutral['00'],
|
|
213
|
+
highEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['02'],
|
|
214
|
+
mediumEmphasis: primitiveColors_1.primitiveColors.grayscale.neutral['03'],
|
|
215
|
+
disabled: 'rgba(252, 250, 247, 0.8)',
|
|
216
|
+
},
|
|
217
|
+
link: {
|
|
218
|
+
default: primitiveColors_1.primitiveColors.solids.blue['300'],
|
|
219
|
+
hover: primitiveColors_1.primitiveColors.solids.blue['200'],
|
|
220
|
+
pressed: primitiveColors_1.primitiveColors.solids.blue['500'],
|
|
221
|
+
inactive: primitiveColors_1.primitiveColors.grayscale.neutral['04'],
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
};
|