@veritone-ce/design-system 2.0.3 → 2.0.4
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/esm-next/Alert/index.js +1 -0
- package/dist/esm-next/Button/index.js +1 -0
- package/dist/esm-next/Checkbox/index.js +1 -0
- package/dist/esm-next/CircularProgress/index.js +19 -9
- package/dist/esm-next/CircularProgress/styles.module.scss.js +1 -1
- package/dist/esm-next/Dialog/components.js +2 -0
- package/dist/esm-next/Drawer/components.js +2 -0
- package/dist/esm-next/Icon/wrappers.js +2 -0
- package/dist/esm-next/IconButton/index.js +1 -0
- package/dist/esm-next/Input/index.js +40 -32
- package/dist/esm-next/Menu/controlled.js +1 -1
- package/dist/esm-next/RadioButton/index.js +1 -0
- package/dist/esm-next/Select/controlled.js +1 -0
- package/dist/esm-next/Textarea/index.js +1 -0
- package/dist/esm-next/Tooltip/index.js +1 -0
- package/dist/esm-next/styles.css +1 -1
- package/dist/types/src-next/Alert/index.d.ts +1 -0
- package/dist/types/src-next/Button/index.d.ts +1 -0
- package/dist/types/src-next/Checkbox/index.d.ts +1 -0
- package/dist/types/src-next/CircularProgress/index.d.ts +2 -1
- package/dist/types/src-next/Dialog/components.d.ts +2 -0
- package/dist/types/src-next/Dialog/factory.d.ts +1 -0
- package/dist/types/src-next/Drawer/components.d.ts +2 -0
- package/dist/types/src-next/Drawer/factory.d.ts +1 -0
- package/dist/types/src-next/Icon/internal.d.ts +1 -0
- package/dist/types/src-next/Icon/shared.d.ts +1 -0
- package/dist/types/src-next/IconButton/index.d.ts +1 -0
- package/dist/types/src-next/Input/index.d.ts +1 -0
- package/dist/types/src-next/Menu/controlled.d.ts +1 -0
- package/dist/types/src-next/RadioButton/index.d.ts +1 -0
- package/dist/types/src-next/Select/types.d.ts +1 -0
- package/dist/types/src-next/Textarea/index.d.ts +1 -0
- package/dist/types/src-next/Tooltip/index.d.ts +1 -0
- package/dist/types/src-next/Typography/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ const Button = forwardRef(
|
|
|
28
28
|
disabled: loading || disabled,
|
|
29
29
|
"data-destructive": destructive,
|
|
30
30
|
onClick: props.onClick,
|
|
31
|
+
"data-testid": props["data-testid"],
|
|
31
32
|
style: props.style,
|
|
32
33
|
className: cx(modules_efc4e723["button"], variantCn, props.className),
|
|
33
34
|
children: [
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
'use client';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { createTheme, ThemeProvider, CircularProgress as CircularProgress$1 } from '@mui/material';
|
|
5
4
|
import modules_efc4e723 from './styles.module.scss.js';
|
|
6
5
|
import { cx } from '../styles/cx.js';
|
|
7
6
|
import '../styles/defaultTheme.js';
|
|
@@ -9,7 +8,8 @@ import 'react';
|
|
|
9
8
|
import '@mui/system';
|
|
10
9
|
import '../styles/styled.js';
|
|
11
10
|
|
|
12
|
-
const
|
|
11
|
+
const SIZE = 44;
|
|
12
|
+
const thickness = 3.6;
|
|
13
13
|
function CircularProgress({
|
|
14
14
|
size = 40,
|
|
15
15
|
fillParentHeight = false,
|
|
@@ -20,19 +20,29 @@ function CircularProgress({
|
|
|
20
20
|
{
|
|
21
21
|
className: cx(modules_efc4e723["container"], props.className),
|
|
22
22
|
"data-fill-parent-height": fillParentHeight,
|
|
23
|
+
"data-testid": props["data-testid"],
|
|
23
24
|
style: {
|
|
24
25
|
// @ts-ignore
|
|
25
26
|
"--circular-progress-color": props.color ?? void 0,
|
|
27
|
+
"--circular-progress-size": `${size}px`,
|
|
26
28
|
...props.style
|
|
27
29
|
},
|
|
28
|
-
children: /* @__PURE__ */ jsx(
|
|
29
|
-
|
|
30
|
+
children: /* @__PURE__ */ jsx("span", { className: modules_efc4e723["progress-container"], children: /* @__PURE__ */ jsx(
|
|
31
|
+
"svg",
|
|
30
32
|
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,
|
|
34
|
+
className: modules_efc4e723["progress-svg"],
|
|
35
|
+
children: /* @__PURE__ */ jsx(
|
|
36
|
+
"circle",
|
|
37
|
+
{
|
|
38
|
+
cx: SIZE,
|
|
39
|
+
cy: SIZE,
|
|
40
|
+
r: (SIZE - thickness) / 2,
|
|
41
|
+
fill: "none",
|
|
42
|
+
strokeWidth: thickness,
|
|
43
|
+
className: modules_efc4e723["progress-circle"]
|
|
44
|
+
}
|
|
45
|
+
)
|
|
36
46
|
}
|
|
37
47
|
) })
|
|
38
48
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_efc4e723 = {"container":"
|
|
1
|
+
var modules_efc4e723 = {"container":"vt_ce_CircularProgress_container__4c2cfc25","progress-container":"vt_ce_CircularProgress_progressContainer__4c2cfc25","progress-svg":"vt_ce_CircularProgress_progressSvg__4c2cfc25","circularRotateKeyframe":"vt_ce_CircularProgress_circularRotateKeyframe__4c2cfc25","progress-circle":"vt_ce_CircularProgress_progressCircle__4c2cfc25","circularDashKeyframe":"vt_ce_CircularProgress_circularDashKeyframe__4c2cfc25"};
|
|
2
2
|
|
|
3
3
|
export { modules_efc4e723 as default };
|
|
@@ -21,6 +21,7 @@ const Dialog = React.forwardRef(function Dialog2({
|
|
|
21
21
|
overlayStyle,
|
|
22
22
|
overlayClassName,
|
|
23
23
|
lockScroll = true,
|
|
24
|
+
"data-testid": dataTestId,
|
|
24
25
|
...options
|
|
25
26
|
}, propRef) {
|
|
26
27
|
const dialog = useDialog(options);
|
|
@@ -40,6 +41,7 @@ const Dialog = React.forwardRef(function Dialog2({
|
|
|
40
41
|
"aria-labelledby": dialog.labelId,
|
|
41
42
|
"aria-describedby": dialog.descriptionId,
|
|
42
43
|
...dialog.getFloatingProps(),
|
|
44
|
+
"data-testid": dataTestId,
|
|
43
45
|
style,
|
|
44
46
|
className: cx(modules_efc4e723["dialog"], className),
|
|
45
47
|
children
|
|
@@ -21,6 +21,7 @@ const Drawer = React.forwardRef(function Drawer2({
|
|
|
21
21
|
overlayStyle,
|
|
22
22
|
overlayClassName,
|
|
23
23
|
lockScroll = true,
|
|
24
|
+
"data-testid": dataTestId,
|
|
24
25
|
...options
|
|
25
26
|
}, propRef) {
|
|
26
27
|
const drawer = useDrawer(options);
|
|
@@ -40,6 +41,7 @@ const Drawer = React.forwardRef(function Drawer2({
|
|
|
40
41
|
"aria-labelledby": drawer.labelId,
|
|
41
42
|
"aria-describedby": drawer.descriptionId,
|
|
42
43
|
...drawer.getFloatingProps(),
|
|
44
|
+
"data-testid": dataTestId,
|
|
43
45
|
style,
|
|
44
46
|
className: cx(modules_efc4e723["drawer"], className),
|
|
45
47
|
children
|
|
@@ -15,6 +15,7 @@ function adaptMuiSvgIcon(MuiIcon) {
|
|
|
15
15
|
{
|
|
16
16
|
ref,
|
|
17
17
|
"data-size": size,
|
|
18
|
+
"data-testid": props["data-testid"],
|
|
18
19
|
style: props.style,
|
|
19
20
|
className: cx(modules_efc4e723["icon"], props.className),
|
|
20
21
|
children: /* @__PURE__ */ jsx(MuiIcon, { color: "inherit" })
|
|
@@ -31,6 +32,7 @@ function adaptSvgIcon(svg) {
|
|
|
31
32
|
{
|
|
32
33
|
ref,
|
|
33
34
|
"data-size": size,
|
|
35
|
+
"data-testid": props["data-testid"],
|
|
34
36
|
style: props.style,
|
|
35
37
|
className: cx(modules_efc4e723["icon"], props.className),
|
|
36
38
|
children: svg
|
|
@@ -19,6 +19,7 @@ const IconButton = forwardRef(
|
|
|
19
19
|
disabled: props.loading || props.disabled,
|
|
20
20
|
"data-destructive": props.destructive ?? false,
|
|
21
21
|
onClick: props.onClick,
|
|
22
|
+
"data-testid": props["data-testid"],
|
|
22
23
|
style: props.style,
|
|
23
24
|
className: cx(modules_efc4e723["button"], props.className),
|
|
24
25
|
children: [
|
|
@@ -9,38 +9,46 @@ import '@mui/system';
|
|
|
9
9
|
import '../styles/styled.js';
|
|
10
10
|
|
|
11
11
|
const Input = forwardRef((props, ref) => {
|
|
12
|
-
return /* @__PURE__ */ jsxs(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
className: modules_efc4e723["
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
12
|
+
return /* @__PURE__ */ jsxs(
|
|
13
|
+
"span",
|
|
14
|
+
{
|
|
15
|
+
"data-testid": props["data-testid"],
|
|
16
|
+
className: cx(modules_efc4e723["input"], props.className),
|
|
17
|
+
style: props.style,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx("label", { className: modules_efc4e723["label"], children: props.label }),
|
|
20
|
+
/* @__PURE__ */ jsxs(
|
|
21
|
+
"span",
|
|
22
|
+
{
|
|
23
|
+
"data-disabled": props.disabled ?? false,
|
|
24
|
+
"data-error": props.error !== void 0,
|
|
25
|
+
className: modules_efc4e723["inner-input-container"],
|
|
26
|
+
children: [
|
|
27
|
+
props.startIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["input-icon"], children: props.startIcon }),
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
"input",
|
|
30
|
+
{
|
|
31
|
+
ref,
|
|
32
|
+
type: props.type,
|
|
33
|
+
placeholder: props.placeholder,
|
|
34
|
+
value: props.value,
|
|
35
|
+
disabled: props.disabled,
|
|
36
|
+
onChange: props.onChange,
|
|
37
|
+
className: modules_efc4e723["inner-input"]
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
props.endIcon && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["input-icon"], children: props.endIcon })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
props.helpLabel && /* @__PURE__ */ jsx("span", { className: modules_efc4e723["help-label"], children: props.helpLabel }),
|
|
45
|
+
props.error && /* @__PURE__ */ jsxs("span", { className: modules_efc4e723["error-label"], children: [
|
|
46
|
+
/* @__PURE__ */ jsx(IndicatorCircle, {}),
|
|
47
|
+
/* @__PURE__ */ jsx("span", { children: props.error })
|
|
48
|
+
] })
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
);
|
|
44
52
|
});
|
|
45
53
|
const IndicatorCircle = () => /* @__PURE__ */ jsx(
|
|
46
54
|
"svg",
|
package/dist/esm-next/styles.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.vt_ce_Textarea_textarea__8ff9396f{display:inline-flex;flex-direction:column;gap:3px}.vt_ce_Textarea_label__8ff9396f{color:var(--vt-ce-theme-palette-text-secondary,#5c6269);font-family:var(--vt-ce-theme-typography-label-font-family,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-label-font-size,14px);font-style:var(--vt-ce-theme-typography-label-font-style,normal);font-weight:var(--vt-ce-theme-typography-label-font-weight,600);letter-spacing:var(--vt-ce-theme-typography-label-letter-spacing,inherit);line-height:var(--vt-ce-theme-typography-label-line-height,17px);text-transform:var(--vt-ce-theme-typography-label-text-transform,inherit)}.vt_ce_Textarea_innerTextareaContainer__8ff9396f{align-items:center;align-self:stretch;background:var(--vt-ce-theme-palette-background,#fff);border-radius:4px;color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;gap:10px;margin-bottom:1px;margin-top:1px;outline-color:unset;outline-style:solid;outline-width:1px;padding:8px}.vt_ce_Textarea_innerTextareaContainer__8ff9396f:focus-within{outline-color:unset;outline-width:2px}.vt_ce_Textarea_innerTextareaContainer__8ff9396f[data-disabled=true]{background-color:var(--vt-ce-theme-palette-disabledBackground,#fafafa);color:var(--vt-ce-theme-palette-disabled,#7c848d);outline-color:var(--vt-ce-theme-palette-backgroundAlt,#e0e8f0)}.vt_ce_Textarea_innerTextareaContainer__8ff9396f[data-disabled=true]:focus-within{outline-color:var(--vt-ce-theme-palette-backgroundAlt,#e0e8f0);outline-width:1px}.vt_ce_Textarea_innerTextareaContainer__8ff9396f[data-disabled=true]:hover{outline-color:var(--vt-ce-theme-palette-backgroundAlt,#e0e8f0);outline-width:1px}.vt_ce_Textarea_innerTextareaContainer__8ff9396f[data-error=true]{outline-color:var(--vt-ce-theme-palette-indicator-error,#eb0000)}.vt_ce_Textarea_innerTextarea__8ff9396f{background:none;border:none;color:inherit;flex-grow:1;font-family:var(--vt-ce-theme-typography-paragraph2-font-family,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph2-font-size,14px);font-style:var(--vt-ce-theme-typography-paragraph2-font-style,normal);font-weight:var(--vt-ce-theme-typography-paragraph2-font-weight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph2-letter-spacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph2-line-height,20px);outline:none;text-transform:var(--vt-ce-theme-typography-paragraph2-text-transform,inherit)}.vt_ce_Textarea_innerTextarea__8ff9396f::-moz-placeholder{color:var(--vt-ce-theme-palette-disabled,#7c848d)}.vt_ce_Textarea_innerTextarea__8ff9396f::placeholder{color:var(--vt-ce-theme-palette-disabled,#7c848d)}.vt_ce_Textarea_helpLabel__8ff9396f{color:var(--vt-ce-theme-palette-text-secondary,#5c6269)}.vt_ce_Textarea_errorLabel__8ff9396f,.vt_ce_Textarea_helpLabel__8ff9396f{font-family:var(--vt-ce-theme-typography-paragraph3-font-family,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph3-font-size,12px);font-style:var(--vt-ce-theme-typography-paragraph3-font-style,normal);font-weight:var(--vt-ce-theme-typography-paragraph3-font-weight,400);letter-spacing:var(--vt-ce-theme-typography-paragraph3-letter-spacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph3-line-height,18px);text-transform:var(--vt-ce-theme-typography-paragraph3-text-transform,inherit)}.vt_ce_Textarea_errorLabel__8ff9396f{align-items:center;color:var(--vt-ce-theme-palette-indicator-error,#eb0000);display:flex;gap:3px}
|
|
5
5
|
.vt_ce_Alert_alert__014c1660{--alert-color:var(--vt-ce-theme-palette-indicator-success,#28ba3f);align-items:stretch;background-color:var(--vt-ce-theme-palette-background,#fff);border-color:var(--vt-ce-theme-palette-disabled,#7c848d);border-radius:4px;border-style:solid;border-width:1px;display:flex;width:415px}.vt_ce_Alert_alertStripe__014c1660{background-color:var(--alert-color);width:4px}.vt_ce_Alert_alertIcon__014c1660{align-items:center;color:var(--alert-color);display:flex;margin:10px;--vt-ce-icon-size:24px}.vt_ce_Alert_alertContent__014c1660{align-items:baseline;color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;flex-wrap:wrap;margin:14px 0}.vt_ce_Alert_alertLabel__014c1660{font-weight:var(--vt-ce-theme-typography-paragraph3-font-weight,400);font-weight:700}.vt_ce_Alert_alertLabel__014c1660,.vt_ce_Alert_alertText__014c1660{display:inline-block;font-family:var(--vt-ce-theme-typography-paragraph3-font-family,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-paragraph3-font-size,12px);font-style:var(--vt-ce-theme-typography-paragraph3-font-style,normal);letter-spacing:var(--vt-ce-theme-typography-paragraph3-letter-spacing,inherit);line-height:var(--vt-ce-theme-typography-paragraph3-line-height,18px);margin-right:2px;text-transform:var(--vt-ce-theme-typography-paragraph3-text-transform,inherit);white-space:pre}.vt_ce_Alert_alertText__014c1660{font-weight:var(--vt-ce-theme-typography-paragraph3-font-weight,400)}.vt_ce_Alert_spacer__014c1660{flex-grow:1}.vt_ce_Alert_alertAction__014c1660{flex-shrink:0}.vt_ce_Alert_alertClose__014c1660{align-items:center;color:var(--vt-ce-theme-palette-text-primary,#2a323c);display:flex;margin-right:10px}
|
|
6
6
|
/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:after,:before{box-sizing:border-box}html{font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:1.15;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0}hr{color:inherit;height:0}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}
|
|
7
|
-
.
|
|
7
|
+
.vt_ce_CircularProgress_container__4c2cfc25{--circular-progress-color:var(--vt-ce-theme-palette-action-primary,#1871e8);align-items:baseline;color:var(--circular-progress-color);display:inline-flex;justify-content:center}.vt_ce_CircularProgress_container__4c2cfc25[data-fill-parent-height=true]{align-items:stretch;height:100%;width:100%}.vt_ce_CircularProgress_container__4c2cfc25[data-fill-parent-height=true] .vt_ce_CircularProgress_progressContainer__4c2cfc25{height:100%;width:100%}.vt_ce_CircularProgress_progressContainer__4c2cfc25{display:inline-block;height:var(--circular-progress-size);width:var(--circular-progress-size)}.vt_ce_CircularProgress_progressSvg__4c2cfc25{display:block;stroke:currentColor;animation:vt_ce_CircularProgress_circularRotateKeyframe__4c2cfc25 1.4s linear infinite;height:100%}.vt_ce_CircularProgress_progressCircle__4c2cfc25{stroke-dasharray:80px,200px;stroke-dashoffset:0;animation:vt_ce_CircularProgress_circularDashKeyframe__4c2cfc25 1.4s ease-in-out infinite}@keyframes vt_ce_CircularProgress_circularRotateKeyframe__4c2cfc25{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes vt_ce_CircularProgress_circularDashKeyframe__4c2cfc25{0%{stroke-dasharray:1px,200px;stroke-dashoffset:0}50%{stroke-dasharray:100px,200px;stroke-dashoffset:-15px}to{stroke-dasharray:100px,200px;stroke-dashoffset:-125px}}
|
|
8
8
|
.vt_ce_Button_button__0b5bf02c{align-items:center;border:1px solid transparent;border-radius:4px;cursor:pointer;display:inline-flex;gap:5px;justify-content:center;position:relative}.vt_ce_Button_button__0b5bf02c[data-size=large]{font-family:var(--vt-ce-theme-typography-button-font-family,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-button-font-size,14px);font-style:var(--vt-ce-theme-typography-button-font-style,normal);font-weight:var(--vt-ce-theme-typography-button-font-weight,600);letter-spacing:var(--vt-ce-theme-typography-button-letter-spacing,inherit);line-height:var(--vt-ce-theme-typography-button-line-height,20px);min-height:36px;padding:7px 15px;text-transform:var(--vt-ce-theme-typography-button-text-transform,inherit)}.vt_ce_Button_button__0b5bf02c[data-size=small]{font-family:var(--vt-ce-theme-typography-buttonSmall-font-family,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-buttonSmall-font-size,12px);font-style:var(--vt-ce-theme-typography-buttonSmall-font-style,normal);font-weight:var(--vt-ce-theme-typography-buttonSmall-font-weight,600);letter-spacing:var(--vt-ce-theme-typography-buttonSmall-letter-spacing,inherit);line-height:var(--vt-ce-theme-typography-buttonSmall-line-height,18px);min-height:26px;padding:3px 15px;text-transform:var(--vt-ce-theme-typography-buttonSmall-text-transform,inherit)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_primary__0b5bf02c{background-color:var(--vt-ce-theme-palette-action-primary,#1871e8);color:var(--vt-ce-theme-palette-action-on,#fff)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_primary__0b5bf02c:hover{background-color:var(--vt-ce-theme-palette-action-hover,#335b89)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_primary__0b5bf02c:disabled{background-color:var(--vt-ce-theme-palette-disabledBackground,#fafafa);border-color:var(--vt-ce-theme-palette-backgroundAlt,#e0e8f0);color:var(--vt-ce-theme-palette-disabled,#7c848d)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_primary__0b5bf02c[data-destructive=true]{background-color:var(--vt-ce-theme-palette-action-destructive,#eb0000)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_primary__0b5bf02c[data-destructive=true]:hover{background-color:var(--vt-ce-theme-palette-action-destructiveHover,#a63737)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_primary__0b5bf02c[data-loading=true]:disabled{color:var(--vt-ce-theme-palette-action-primary,#1871e8)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_secondary__0b5bf02c{background-color:var(--vt-ce-theme-palette-background,#fff);border-color:var(--vt-ce-theme-palette-text-secondary,#5c6269);color:var(--vt-ce-theme-palette-text-secondary,#5c6269)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_secondary__0b5bf02c:hover{background-color:var(--vt-ce-theme-palette-background,#fff);border-color:var(--vt-ce-theme-palette-action-hover,#335b89);color:var(--vt-ce-theme-palette-action-hover,#335b89)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_secondary__0b5bf02c:disabled{background-color:var(--vt-ce-theme-palette-disabledBackground,#fafafa);border-color:var(--vt-ce-theme-palette-backgroundAlt,#e0e8f0);color:var(--vt-ce-theme-palette-disabled,#7c848d)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_secondary__0b5bf02c[data-destructive=true]{background-color:var(--vt-ce-theme-palette-background,#fff);border-color:var(--vt-ce-theme-palette-action-destructive,#eb0000);color:var(--vt-ce-theme-palette-action-destructive,#eb0000)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_secondary__0b5bf02c[data-destructive=true]:hover{background-color:var(--vt-ce-theme-palette-background,#fff);border-color:var(--vt-ce-theme-palette-action-destructiveHover,#a63737);color:var(--vt-ce-theme-palette-action-destructiveHover,#a63737)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_secondary__0b5bf02c[data-loading=true]:disabled{color:var(--vt-ce-theme-palette-action-primary,#1871e8)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_tertiary__0b5bf02c{background-color:transparent;color:var(--vt-ce-theme-palette-text-tertiary,#465364)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_tertiary__0b5bf02c:hover{color:var(--vt-ce-theme-palette-action-hover,#335b89)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_tertiary__0b5bf02c:disabled{color:var(--vt-ce-theme-palette-disabled,#7c848d)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_tertiary__0b5bf02c[data-destructive=true]{color:var(--vt-ce-theme-palette-action-destructive,#eb0000)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_tertiary__0b5bf02c[data-destructive=true]:hover{color:var(--vt-ce-theme-palette-action-destructiveHover,#a63737)}.vt_ce_Button_button__0b5bf02c.vt_ce_Button_tertiary__0b5bf02c[data-loading=true]:disabled{color:var(--vt-ce-theme-palette-action-primary,#1871e8)}.vt_ce_Button_button__0b5bf02c[data-loading=true] .vt_ce_Button_innerContainer__0b5bf02c{visibility:hidden}.vt_ce_Button_loadingContainer__0b5bf02c{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.vt_ce_Button_innerContainer__0b5bf02c{align-items:center;display:inline-flex;gap:5px;justify-content:center;visibility:visible}.vt_ce_Button_buttonIcon__0b5bf02c{align-items:center;display:inline-flex;justify-content:center;--vt-ce-icon-size:18px}
|
|
9
9
|
.vt_ce_IconButton_button__cb009384{background-color:transparent;border-style:none;color:var(--vt-ce-theme-palette-text-tertiary,#465364);cursor:pointer;display:inline-block;font-size:0;padding:7px;position:relative}.vt_ce_IconButton_button__cb009384:hover{color:var(--vt-ce-theme-palette-action-hover,#335b89)}.vt_ce_IconButton_button__cb009384:disabled{color:var(--vt-ce-theme-palette-disabled,#7c848d)}.vt_ce_IconButton_button__cb009384[data-destructive=true]{color:var(--vt-ce-theme-palette-action-destructive,#eb0000)}.vt_ce_IconButton_button__cb009384[data-destructive=true]:hover{color:var(--vt-ce-theme-palette-action-destructiveHover,#a63737)}.vt_ce_IconButton_button__cb009384[data-loading=true]:disabled{color:var(--vt-ce-theme-palette-action-primary,#1871e8)}.vt_ce_IconButton_button__cb009384[data-loading=true] .vt_ce_IconButton_innerIcon__cb009384{visibility:hidden}.vt_ce_IconButton_loadingContainer__cb009384{bottom:7px;left:7px;position:absolute;right:7px;top:7px}
|
|
10
10
|
.vt_ce_Tooltip_tooltipAnchor__86070564{display:inline}.vt_ce_Tooltip_tooltipBody__86070564{background-color:var(--vt-ce-theme-palette-background,#fff);border-color:var(--vt-ce-theme-palette-backgroundAlt,#e0e8f0);border-radius:4px;border-style:solid;border-width:1px;color:var(--vt-ce-theme-palette-text-primary,#2a323c);font-family:var(--vt-ce-theme-typography-label-font-family,Nunito Sans,Helvetica,sans-serif);font-size:var(--vt-ce-theme-typography-label-font-size,14px);font-style:var(--vt-ce-theme-typography-label-font-style,normal);font-weight:var(--vt-ce-theme-typography-label-font-weight,600);letter-spacing:var(--vt-ce-theme-typography-label-letter-spacing,inherit);line-height:var(--vt-ce-theme-typography-label-line-height,17px);padding:4px 10px;text-transform:var(--vt-ce-theme-typography-label-text-transform,inherit)}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export type CircularProgressProps = {
|
|
3
3
|
size?: number | string;
|
|
4
4
|
color?: string;
|
|
5
5
|
fillParentHeight?: boolean;
|
|
6
|
+
'data-testid'?: string;
|
|
6
7
|
style?: React.CSSProperties;
|
|
7
8
|
className?: string;
|
|
8
9
|
};
|
|
@@ -7,6 +7,7 @@ export type DialogProps = DialogOptions & {
|
|
|
7
7
|
portalEl?: HTMLElement | null | React.MutableRefObject<HTMLElement | null>;
|
|
8
8
|
lockScroll?: boolean;
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
+
'data-testid'?: string;
|
|
10
11
|
style?: React.CSSProperties;
|
|
11
12
|
className?: string;
|
|
12
13
|
overlayStyle?: React.CSSProperties;
|
|
@@ -16,6 +17,7 @@ declare const Dialog: React.ForwardRefExoticComponent<DialogOptions & {
|
|
|
16
17
|
portalEl?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null | undefined;
|
|
17
18
|
lockScroll?: boolean | undefined;
|
|
18
19
|
children: React.ReactNode;
|
|
20
|
+
'data-testid'?: string | undefined;
|
|
19
21
|
style?: React.CSSProperties | undefined;
|
|
20
22
|
className?: string | undefined;
|
|
21
23
|
overlayStyle?: React.CSSProperties | undefined;
|
|
@@ -7,6 +7,7 @@ export declare function createDialogComponent({ portalEl }: DialogFactoryOptions
|
|
|
7
7
|
portalEl?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null | undefined;
|
|
8
8
|
lockScroll?: boolean | undefined;
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
+
'data-testid'?: string | undefined;
|
|
10
11
|
style?: React.CSSProperties | undefined;
|
|
11
12
|
className?: string | undefined;
|
|
12
13
|
overlayStyle?: React.CSSProperties | undefined;
|
|
@@ -11,6 +11,7 @@ export type DrawerProps = DrawerOptions & {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
overlayStyle?: React.CSSProperties;
|
|
13
13
|
overlayClassName?: string;
|
|
14
|
+
'data-testid'?: string;
|
|
14
15
|
};
|
|
15
16
|
declare const Drawer: React.ForwardRefExoticComponent<DrawerOptions & {
|
|
16
17
|
portalEl?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null | undefined;
|
|
@@ -20,6 +21,7 @@ declare const Drawer: React.ForwardRefExoticComponent<DrawerOptions & {
|
|
|
20
21
|
className?: string | undefined;
|
|
21
22
|
overlayStyle?: React.CSSProperties | undefined;
|
|
22
23
|
overlayClassName?: string | undefined;
|
|
24
|
+
'data-testid'?: string | undefined;
|
|
23
25
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
24
26
|
export default Drawer;
|
|
25
27
|
export declare const DrawerStart: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -11,4 +11,5 @@ export declare function createDrawerComponent({ portalEl }: DrawerFactoryOptions
|
|
|
11
11
|
className?: string | undefined;
|
|
12
12
|
overlayStyle?: React.CSSProperties | undefined;
|
|
13
13
|
overlayClassName?: string | undefined;
|
|
14
|
+
'data-testid'?: string | undefined;
|
|
14
15
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export declare const DSIcon: React.ForwardRefExoticComponent<{
|
|
3
3
|
name?: string | undefined;
|
|
4
4
|
size?: import("./wrappers.js").IconSize | undefined;
|
|
5
|
+
'data-testid'?: string | undefined;
|
|
5
6
|
style?: React.CSSProperties | undefined;
|
|
6
7
|
className?: string | undefined;
|
|
7
8
|
} & {
|
|
@@ -20,6 +20,7 @@ export type CommonSelectProps<OptionValue> = {
|
|
|
20
20
|
dropdownStrategy?: PopoverStrategy;
|
|
21
21
|
options: SelectOptions<OptionValue>;
|
|
22
22
|
filterOptions?: (options: SelectOptions<OptionValue>) => SelectOptions<OptionValue>;
|
|
23
|
+
'data-testid'?: string;
|
|
23
24
|
style?: React.CSSProperties;
|
|
24
25
|
className?: string;
|
|
25
26
|
};
|