@veritone-ce/design-system 2.3.13 → 2.4.0
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/cjs/StatusChip/index.js +65 -0
- package/dist/cjs/StatusChip/styles.module.scss.js +7 -0
- package/dist/cjs/Table/AutoTable/common.js +144 -0
- package/dist/cjs/Table/AutoTable/controlled.js +102 -0
- package/dist/cjs/Table/AutoTable/index.js +110 -0
- package/dist/cjs/Table/AutoTable/virtual.js +177 -0
- package/dist/cjs/Table/TableCell/index.js +50 -0
- package/dist/cjs/Table/TableCell/styles.module.scss.js +7 -0
- package/dist/cjs/Table/TableRow/index.js +34 -0
- package/dist/cjs/Table/TableRow/styles.module.scss.js +7 -0
- package/dist/cjs/Table/index.js +76 -0
- package/dist/cjs/Table/styles.module.scss.js +7 -0
- package/dist/cjs/Tooltip/index.js +38 -26
- package/dist/cjs/Tooltip/styles.module.scss.js +1 -1
- package/dist/cjs/Typography/index.js +4 -2
- package/dist/cjs/Typography/variants.module.scss.js +1 -1
- package/dist/cjs/index.js +27 -10
- package/dist/cjs/styles/createPalette.js +24 -4
- package/dist/cjs/styles/typography.js +9 -1
- package/dist/cjs/styles.css +1 -1
- package/dist/esm/StatusChip/index.js +61 -0
- package/dist/esm/StatusChip/styles.module.scss.js +3 -0
- package/dist/esm/Table/AutoTable/common.js +138 -0
- package/dist/esm/Table/AutoTable/controlled.js +98 -0
- package/dist/esm/Table/AutoTable/index.js +106 -0
- package/dist/esm/Table/AutoTable/virtual.js +172 -0
- package/dist/esm/Table/TableCell/index.js +46 -0
- package/dist/esm/Table/TableCell/styles.module.scss.js +3 -0
- package/dist/esm/Table/TableRow/index.js +30 -0
- package/dist/esm/Table/TableRow/styles.module.scss.js +3 -0
- package/dist/esm/Table/index.js +69 -0
- package/dist/esm/Table/styles.module.scss.js +3 -0
- package/dist/esm/Tooltip/index.js +38 -26
- package/dist/esm/Tooltip/styles.module.scss.js +1 -1
- package/dist/esm/Typography/index.js +4 -2
- package/dist/esm/Typography/variants.module.scss.js +1 -1
- package/dist/esm/index.js +6 -0
- package/dist/esm/styles/createPalette.js +24 -4
- package/dist/esm/styles/scss/theme.generated.scss +83 -17
- package/dist/esm/styles/typography.js +9 -1
- package/dist/esm/styles.css +1 -1
- package/dist/types/Checkbox/index.d.ts +2 -0
- package/dist/types/Dialog/components.d.ts +50 -6
- package/dist/types/Drawer/components.d.ts +50 -5
- package/dist/types/StatusChip/index.d.ts +12 -0
- package/dist/types/Table/AutoTable/common.d.ts +31 -0
- package/dist/types/Table/AutoTable/controlled.d.ts +13 -0
- package/dist/types/Table/AutoTable/index.d.ts +47 -0
- package/dist/types/Table/AutoTable/types.d.ts +106 -0
- package/dist/types/Table/AutoTable/virtual.d.ts +23 -0
- package/dist/types/Table/TableCell/index.d.ts +14 -0
- package/dist/types/Table/TableRow/index.d.ts +10 -0
- package/dist/types/Table/index.d.ts +68 -0
- package/dist/types/Typography/index.d.ts +11 -3
- package/dist/types/index.d.ts +10 -0
- package/dist/types/styles/createPalette.d.ts +2 -0
- package/dist/types/styles/palette.d.ts +2 -0
- package/dist/types/styles/typography.d.ts +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
'use client';
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
|
+
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
var React = require('react');
|
|
9
|
+
var styles_module = require('./styles.module.scss.js');
|
|
10
|
+
require('@capsizecss/core');
|
|
11
|
+
require('color2k');
|
|
12
|
+
require('../../styles/css-vars.js');
|
|
13
|
+
var cx = require('../../styles/cx.js');
|
|
14
|
+
require('../../styles/defaultTheme.js');
|
|
15
|
+
require('@mui/system');
|
|
16
|
+
require('../../Box/index.js');
|
|
17
|
+
require('../../styles/styled.js');
|
|
18
|
+
|
|
19
|
+
const TableRow = React.forwardRef(
|
|
20
|
+
({ children, "data-testid": dataTestId, className, ...props }, ref) => {
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22
|
+
"tr",
|
|
23
|
+
{
|
|
24
|
+
ref,
|
|
25
|
+
...props,
|
|
26
|
+
"data-testid": dataTestId,
|
|
27
|
+
className: cx.cx(styles_module.default.tableRow, className),
|
|
28
|
+
children
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
exports.default = TableRow;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var material = require('@mui/material');
|
|
6
|
+
var index = require('../Typography/index.js');
|
|
7
|
+
var styles_module = require('./styles.module.scss.js');
|
|
8
|
+
|
|
9
|
+
const Table = (props) => {
|
|
10
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11
|
+
material.Table,
|
|
12
|
+
{
|
|
13
|
+
"data-testid": props["data-testid"],
|
|
14
|
+
stickyHeader: props.stickyHeader,
|
|
15
|
+
sx: props.sx,
|
|
16
|
+
className: props.className,
|
|
17
|
+
children: props.children
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
const TableBody = (props) => {
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23
|
+
material.TableBody,
|
|
24
|
+
{
|
|
25
|
+
"data-testid": props["data-testid"],
|
|
26
|
+
sx: props.sx,
|
|
27
|
+
className: props.className,
|
|
28
|
+
children: props.children
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
const TableFooter = (props) => {
|
|
33
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34
|
+
material.TableFooter,
|
|
35
|
+
{
|
|
36
|
+
"data-testid": props["data-testid"],
|
|
37
|
+
sx: props.sx,
|
|
38
|
+
className: props.className,
|
|
39
|
+
children: props.children
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
const TableHead = (props) => {
|
|
44
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
45
|
+
material.TableHead,
|
|
46
|
+
{
|
|
47
|
+
"data-testid": props["data-testid"],
|
|
48
|
+
sx: props.sx,
|
|
49
|
+
className: props.className,
|
|
50
|
+
children: props.children
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
const TableSortLabel = (props) => {
|
|
55
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
|
+
material.TableSortLabel,
|
|
57
|
+
{
|
|
58
|
+
active: props.active,
|
|
59
|
+
direction: props.direction,
|
|
60
|
+
hideSortIcon: props.hideSortIcon,
|
|
61
|
+
onClick: props.onClick,
|
|
62
|
+
disabled: props.disabled,
|
|
63
|
+
children: props.children
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
const TableMessage = (props) => {
|
|
68
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_module.default.tableMessageWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(index.default, { className: styles_module.default.tableMessage, children: props.children }) });
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.Table = Table;
|
|
72
|
+
exports.TableBody = TableBody;
|
|
73
|
+
exports.TableFooter = TableFooter;
|
|
74
|
+
exports.TableHead = TableHead;
|
|
75
|
+
exports.TableMessage = TableMessage;
|
|
76
|
+
exports.TableSortLabel = TableSortLabel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styles = {"tableMessageWrapper":"vt_ce_Table_tableMessageWrapper__bd25fe47","tableMessage":"vt_ce_Table_tableMessage__f6316814","checkbox":"vt_ce_Table_checkbox__fcf60b18","selectionTableCell":"vt_ce_Table_selectionTableCell__1edf8bad"};
|
|
6
|
+
|
|
7
|
+
exports.default = styles;
|
|
@@ -52,7 +52,11 @@ function Tooltip({
|
|
|
52
52
|
});
|
|
53
53
|
const role = react.useRole(context, { role: "tooltip" });
|
|
54
54
|
const hover = react.useHover(context, {
|
|
55
|
-
handleClose: react.safePolygon()
|
|
55
|
+
handleClose: react.safePolygon(),
|
|
56
|
+
restMs: 300,
|
|
57
|
+
// If their cursor never rests, open it after 1000ms as a
|
|
58
|
+
// fallback.
|
|
59
|
+
delay: { open: 1e3 }
|
|
56
60
|
});
|
|
57
61
|
const focus = react.useFocus(context);
|
|
58
62
|
const dismiss = react.useDismiss(context, {
|
|
@@ -83,7 +87,7 @@ function Tooltip({
|
|
|
83
87
|
}
|
|
84
88
|
),
|
|
85
89
|
isMounted && /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
-
"
|
|
90
|
+
"span",
|
|
87
91
|
{
|
|
88
92
|
ref: refs.setFloating,
|
|
89
93
|
"data-testid": dataTestId,
|
|
@@ -92,30 +96,38 @@ function Tooltip({
|
|
|
92
96
|
},
|
|
93
97
|
className: styles_module.default["tooltip-float"],
|
|
94
98
|
...getFloatingProps(),
|
|
95
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
99
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
100
|
+
"span",
|
|
101
|
+
{
|
|
102
|
+
style: { ...transitionStyles },
|
|
103
|
+
className: styles_module.default["tooltip-transition"],
|
|
104
|
+
children: [
|
|
105
|
+
showArrow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
106
|
+
react.FloatingArrow,
|
|
107
|
+
{
|
|
108
|
+
ref: arrowRef,
|
|
109
|
+
context,
|
|
110
|
+
fill: defaultTheme.defaultThemeCssVariableUsages.palette.tooltip.surface,
|
|
111
|
+
stroke: defaultTheme.defaultThemeCssVariableUsages.palette.tooltip.surface,
|
|
112
|
+
strokeWidth: 1,
|
|
113
|
+
style: { margin: "-1px" }
|
|
114
|
+
}
|
|
115
|
+
),
|
|
116
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles_module.default["tooltip-body"], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
117
|
+
index.default,
|
|
118
|
+
{
|
|
119
|
+
as: "span",
|
|
120
|
+
variant: "label",
|
|
121
|
+
color: "inherit",
|
|
122
|
+
leadingTrim,
|
|
123
|
+
style,
|
|
124
|
+
className: cx.cx(styles_module.default["tooltip-text"], className),
|
|
125
|
+
children: tooltip
|
|
126
|
+
}
|
|
127
|
+
) })
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
)
|
|
119
131
|
}
|
|
120
132
|
)
|
|
121
133
|
] });
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var css = {"tooltip-anchor":"vt_ce_Tooltip_tooltip-anchor__a4700bfb","tooltip-float":"vt_ce_Tooltip_tooltip-float__ff012681","tooltip-body":"vt_ce_Tooltip_tooltip-body__19e91c15","tooltip-text":"vt_ce_Tooltip_tooltip-text__7d962fae"};
|
|
5
|
+
var css = {"tooltip-anchor":"vt_ce_Tooltip_tooltip-anchor__a4700bfb","tooltip-float":"vt_ce_Tooltip_tooltip-float__ff012681","tooltip-transition":"vt_ce_Tooltip_tooltip-transition__4ac21924","tooltip-body":"vt_ce_Tooltip_tooltip-body__19e91c15","tooltip-text":"vt_ce_Tooltip_tooltip-text__7d962fae"};
|
|
6
6
|
|
|
7
7
|
exports.default = css;
|
|
@@ -17,13 +17,14 @@ var variants_module = require('./variants.module.scss.js');
|
|
|
17
17
|
|
|
18
18
|
const Typography = React.forwardRef(
|
|
19
19
|
({
|
|
20
|
+
as,
|
|
20
21
|
variant = "paragraph1",
|
|
21
22
|
color = "primary",
|
|
22
23
|
leadingTrim = false,
|
|
23
24
|
...props
|
|
24
25
|
}, ref) => {
|
|
25
26
|
const variantCn = !leadingTrim ? variants_module.default[`t-${variant}`] : variants_module.default[`t-${variant}-trim`];
|
|
26
|
-
const VariantComponent =
|
|
27
|
+
const VariantComponent = as ?? variantComponents[variant];
|
|
27
28
|
const colorCn = variants_module.default[`c-${color}`];
|
|
28
29
|
return React.createElement(VariantComponent, {
|
|
29
30
|
...props,
|
|
@@ -45,7 +46,8 @@ const variantComponents = {
|
|
|
45
46
|
paragraph3: "p",
|
|
46
47
|
button: "span",
|
|
47
48
|
buttonSmall: "span",
|
|
48
|
-
input: "span"
|
|
49
|
+
input: "span",
|
|
50
|
+
statusChip: "span"
|
|
49
51
|
};
|
|
50
52
|
|
|
51
53
|
exports.default = Typography;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var styles = {"t-title":"vt_ce_Typography_t-title__3cbea11b","t-title-trim":"vt_ce_Typography_t-title-trim__28bcad4d","t-h1":"vt_ce_Typography_t-h1__8953782d","t-h1-trim":"vt_ce_Typography_t-h1-trim__c62483c9","t-h2":"vt_ce_Typography_t-h2__f2534173","t-h2-trim":"vt_ce_Typography_t-h2-trim__5563b7ae","t-h3":"vt_ce_Typography_t-h3__cdff4f67","t-h3-trim":"vt_ce_Typography_t-h3-trim__0017200e","t-h4":"vt_ce_Typography_t-h4__0acb0595","t-h4-trim":"vt_ce_Typography_t-h4-trim__289878da","t-label":"vt_ce_Typography_t-label__0e84833e","t-label-trim":"vt_ce_Typography_t-label-trim__8e002adc","t-paragraph1":"vt_ce_Typography_t-paragraph1__4a6ca0f2","t-paragraph1-trim":"vt_ce_Typography_t-paragraph1-trim__1d97d797","t-paragraph2":"vt_ce_Typography_t-paragraph2__114e0304","t-paragraph2-trim":"vt_ce_Typography_t-paragraph2-trim__8ca4dfc5","t-paragraph3":"vt_ce_Typography_t-paragraph3__9ce2d2b8","t-paragraph3-trim":"vt_ce_Typography_t-paragraph3-trim__e1fbe9a5","t-button":"vt_ce_Typography_t-button__de9ce92c","t-button-trim":"vt_ce_Typography_t-button-trim__2c6a3dfb","t-buttonSmall":"vt_ce_Typography_t-buttonSmall__48799340","t-buttonSmall-trim":"vt_ce_Typography_t-buttonSmall-trim__af5b6ddb","t-input":"vt_ce_Typography_t-input__3c546dd2","t-input-trim":"vt_ce_Typography_t-input-trim__16e63d90","c-primary":"vt_ce_Typography_c-primary__9abbeb28","c-secondary":"vt_ce_Typography_c-secondary__54db5189","c-tertiary":"vt_ce_Typography_c-tertiary__580276de","c-disabled":"vt_ce_Typography_c-disabled__01eb87d1","c-inherit":"vt_ce_Typography_c-inherit__d9a71622"};
|
|
5
|
+
var styles = {"t-title":"vt_ce_Typography_t-title__3cbea11b","t-title-trim":"vt_ce_Typography_t-title-trim__28bcad4d","t-h1":"vt_ce_Typography_t-h1__8953782d","t-h1-trim":"vt_ce_Typography_t-h1-trim__c62483c9","t-h2":"vt_ce_Typography_t-h2__f2534173","t-h2-trim":"vt_ce_Typography_t-h2-trim__5563b7ae","t-h3":"vt_ce_Typography_t-h3__cdff4f67","t-h3-trim":"vt_ce_Typography_t-h3-trim__0017200e","t-h4":"vt_ce_Typography_t-h4__0acb0595","t-h4-trim":"vt_ce_Typography_t-h4-trim__289878da","t-label":"vt_ce_Typography_t-label__0e84833e","t-label-trim":"vt_ce_Typography_t-label-trim__8e002adc","t-paragraph1":"vt_ce_Typography_t-paragraph1__4a6ca0f2","t-paragraph1-trim":"vt_ce_Typography_t-paragraph1-trim__1d97d797","t-paragraph2":"vt_ce_Typography_t-paragraph2__114e0304","t-paragraph2-trim":"vt_ce_Typography_t-paragraph2-trim__8ca4dfc5","t-paragraph3":"vt_ce_Typography_t-paragraph3__9ce2d2b8","t-paragraph3-trim":"vt_ce_Typography_t-paragraph3-trim__e1fbe9a5","t-button":"vt_ce_Typography_t-button__de9ce92c","t-button-trim":"vt_ce_Typography_t-button-trim__2c6a3dfb","t-buttonSmall":"vt_ce_Typography_t-buttonSmall__48799340","t-buttonSmall-trim":"vt_ce_Typography_t-buttonSmall-trim__af5b6ddb","t-input":"vt_ce_Typography_t-input__3c546dd2","t-input-trim":"vt_ce_Typography_t-input-trim__16e63d90","t-statusChip":"vt_ce_Typography_t-statusChip__35634fde","t-statusChip-trim":"vt_ce_Typography_t-statusChip-trim__adcb5a29","c-primary":"vt_ce_Typography_c-primary__9abbeb28","c-secondary":"vt_ce_Typography_c-secondary__54db5189","c-tertiary":"vt_ce_Typography_c-tertiary__580276de","c-disabled":"vt_ce_Typography_c-disabled__01eb87d1","c-inherit":"vt_ce_Typography_c-inherit__d9a71622"};
|
|
6
6
|
|
|
7
7
|
exports.default = styles;
|
package/dist/cjs/index.js
CHANGED
|
@@ -40,12 +40,18 @@ var index$e = require('./RadioButton/index.js');
|
|
|
40
40
|
var controlled$1 = require('./Select/controlled.js');
|
|
41
41
|
var uncontrolled = require('./Select/uncontrolled.js');
|
|
42
42
|
var factory$4 = require('./Select/factory.js');
|
|
43
|
-
var index$f = require('./
|
|
44
|
-
var index$
|
|
45
|
-
var index$
|
|
43
|
+
var index$f = require('./StatusChip/index.js');
|
|
44
|
+
var index$o = require('./Table/index.js');
|
|
45
|
+
var index$g = require('./Table/AutoTable/index.js');
|
|
46
|
+
var index$h = require('./Table/TableCell/index.js');
|
|
47
|
+
var index$i = require('./Table/TableRow/index.js');
|
|
48
|
+
var index$j = require('./TablePagination/index.js');
|
|
49
|
+
var index$k = require('./Textarea/index.js');
|
|
50
|
+
var index$l = require('./Toast/index.js');
|
|
46
51
|
var hook = require('./Toast/hook.js');
|
|
47
|
-
var index$
|
|
48
|
-
var index$
|
|
52
|
+
var index$m = require('./Tooltip/index.js');
|
|
53
|
+
var index$n = require('./Typography/index.js');
|
|
54
|
+
var common = require('./Table/AutoTable/common.js');
|
|
49
55
|
|
|
50
56
|
|
|
51
57
|
|
|
@@ -118,10 +124,21 @@ exports.ControlledSelect = controlled$1.default;
|
|
|
118
124
|
exports.Select = uncontrolled.default;
|
|
119
125
|
exports.createControlledSelectComponent = factory$4.createControlledSelectComponent;
|
|
120
126
|
exports.createSelectComponent = factory$4.createSelectComponent;
|
|
121
|
-
exports.
|
|
122
|
-
exports.
|
|
123
|
-
exports.
|
|
127
|
+
exports.StatusChip = index$f.default;
|
|
128
|
+
exports.Table = index$o.Table;
|
|
129
|
+
exports.TableBody = index$o.TableBody;
|
|
130
|
+
exports.TableFooter = index$o.TableFooter;
|
|
131
|
+
exports.TableHead = index$o.TableHead;
|
|
132
|
+
exports.TableMessage = index$o.TableMessage;
|
|
133
|
+
exports.TableSortLabel = index$o.TableSortLabel;
|
|
134
|
+
exports.AutoTable = index$g.default;
|
|
135
|
+
exports.TableCell = index$h.default;
|
|
136
|
+
exports.TableRow = index$i.default;
|
|
137
|
+
exports.TablePagination = index$j.default;
|
|
138
|
+
exports.Textarea = index$k.default;
|
|
139
|
+
exports.Toast = index$l.default;
|
|
124
140
|
exports.ToastProvider = hook.ToastProvider;
|
|
125
141
|
exports.useToast = hook.useToast;
|
|
126
|
-
exports.Tooltip = index$
|
|
127
|
-
exports.Typography = index$
|
|
142
|
+
exports.Tooltip = index$m.default;
|
|
143
|
+
exports.Typography = index$n.default;
|
|
144
|
+
exports.createColumnHelper = common.createColumnHelper;
|
|
@@ -131,10 +131,30 @@ function createPaletteAction(options, disabled, text) {
|
|
|
131
131
|
}
|
|
132
132
|
function createPaletteIndicator(options, disabled) {
|
|
133
133
|
return {
|
|
134
|
-
success: options.success ? createPaletteActionVariantsColors(options.success, disabled) : createPaletteActionVariantsColors(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
success: options.success ? createPaletteActionVariantsColors(options.success, disabled) : createPaletteActionVariantsColors(
|
|
135
|
+
{ surface: "#28BA3F", on: "#FFFFFF" },
|
|
136
|
+
disabled
|
|
137
|
+
),
|
|
138
|
+
info: options.info ? createPaletteActionVariantsColors(options.info, disabled) : createPaletteActionVariantsColors(
|
|
139
|
+
{ surface: "#335B89", on: "#FFFFFF" },
|
|
140
|
+
disabled
|
|
141
|
+
),
|
|
142
|
+
warning: options.warning ? createPaletteActionVariantsColors(options.warning, disabled) : createPaletteActionVariantsColors(
|
|
143
|
+
{ surface: "#FFBB0A", on: "#FFFFFF" },
|
|
144
|
+
disabled
|
|
145
|
+
),
|
|
146
|
+
error: options.error ? createPaletteActionVariantsColors(options.error, disabled) : createPaletteActionVariantsColors(
|
|
147
|
+
{ surface: "#EB0000", on: "#FFFFFF" },
|
|
148
|
+
disabled
|
|
149
|
+
),
|
|
150
|
+
pending: options.pending ? createPaletteActionVariantsColors(options.pending, disabled) : createPaletteActionVariantsColors(
|
|
151
|
+
{ surface: "#7C848D", on: "#FFFFFF" },
|
|
152
|
+
disabled
|
|
153
|
+
),
|
|
154
|
+
processing: options.processing ? createPaletteActionVariantsColors(options.processing, disabled) : createPaletteActionVariantsColors(
|
|
155
|
+
{ surface: "#FFBB0A", on: "#FFFFFF" },
|
|
156
|
+
disabled
|
|
157
|
+
)
|
|
138
158
|
};
|
|
139
159
|
}
|
|
140
160
|
function createPaletteTable(options, disabled) {
|
|
@@ -16,7 +16,8 @@ const TypographyVariantKeys = [
|
|
|
16
16
|
"paragraph3",
|
|
17
17
|
"button",
|
|
18
18
|
"buttonSmall",
|
|
19
|
-
"input"
|
|
19
|
+
"input",
|
|
20
|
+
"statusChip"
|
|
20
21
|
];
|
|
21
22
|
function createTypographyStyle({
|
|
22
23
|
fontSize,
|
|
@@ -142,6 +143,13 @@ function createTypography(typography = {}) {
|
|
|
142
143
|
fontWeight: base.fontWeightRegular,
|
|
143
144
|
// leading: 20,
|
|
144
145
|
...typography.input
|
|
146
|
+
}),
|
|
147
|
+
statusChip: createTypographyStyle({
|
|
148
|
+
...inherit,
|
|
149
|
+
fontSize: 9,
|
|
150
|
+
fontWeight: base.fontWeightBold,
|
|
151
|
+
leading: 12.28,
|
|
152
|
+
...typography.statusChip
|
|
145
153
|
})
|
|
146
154
|
};
|
|
147
155
|
}
|