@veritone-ce/design-system 2.8.11 → 2.8.13-next.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/Dialog/components.js +29 -90
- package/dist/cjs/Dialog/state.js +2 -8
- package/dist/cjs/Dialog/styles.module.scss.js +2 -2
- package/dist/cjs/FileUploader/controlled.js +7 -0
- package/dist/cjs/Table/AutoTable/controlled.js +2 -1
- package/dist/cjs/Table/AutoTable/styles.module.scss.js +1 -1
- package/dist/cjs/TablePagination/index.js +21 -8
- package/dist/cjs/index.js +11 -0
- package/dist/cjs/styles/createPalette.js +11 -0
- package/dist/cjs/styles/entrypoint.scss.js +7 -0
- package/dist/cjs/styles.css +1 -1
- package/dist/cjs/unstable/Card/components.js +213 -0
- package/dist/cjs/unstable/Card/state.js +53 -0
- package/dist/cjs/unstable/Card/styles.module.scss.js +1 -1
- package/dist/cjs/unstable/StatCard/index.js +124 -0
- package/dist/cjs/unstable/StatCard/index.module.scss.js +7 -0
- package/dist/cjs/unstable/index.js +39 -13
- package/dist/cjs/unstable/skeleton/index.js +74 -0
- package/dist/cjs/unstable/skeleton/index.module.scss.js +7 -0
- package/dist/cjs/unstable/suspense/index.js +18 -0
- package/dist/cjs/unstable/suspense/index.module.scss.js +7 -0
- package/dist/cjs/unstable/suspense/loader.js +23 -0
- package/dist/esm/Dialog/components.js +28 -89
- package/dist/esm/Dialog/state.js +2 -8
- package/dist/esm/Dialog/styles.module.scss.js +2 -2
- package/dist/esm/FileUploader/controlled.js +7 -0
- package/dist/esm/Table/AutoTable/controlled.js +2 -1
- package/dist/esm/Table/AutoTable/styles.module.scss.js +1 -1
- package/dist/esm/TablePagination/index.js +21 -8
- package/dist/esm/index.js +1 -1
- package/dist/esm/styles/createPalette.js +1 -1
- package/dist/esm/styles/entrypoint.scss.js +3 -0
- package/dist/esm/styles.css +1 -1
- package/dist/esm/unstable/Card/components.js +182 -0
- package/dist/esm/unstable/Card/state.js +30 -0
- package/dist/esm/unstable/Card/styles.module.scss.js +1 -1
- package/dist/esm/unstable/StatCard/index.js +116 -0
- package/dist/esm/unstable/StatCard/index.module.scss.js +3 -0
- package/dist/esm/unstable/index.js +5 -1
- package/dist/esm/unstable/skeleton/index.js +69 -0
- package/dist/esm/unstable/skeleton/index.module.scss.js +3 -0
- package/dist/esm/unstable/suspense/index.js +15 -0
- package/dist/esm/unstable/suspense/index.module.scss.js +3 -0
- package/dist/esm/unstable/suspense/loader.js +20 -0
- package/dist/types/Dialog/components.d.ts +27 -20
- package/dist/types/Dialog/factory.d.ts +4 -5
- package/dist/types/Dialog/state.d.ts +1 -15
- package/dist/types/TablePagination/index.d.ts +1 -1
- package/dist/types/styles/createPalette.d.ts +13 -2
- package/dist/types/unstable/Card/components.d.ts +90 -0
- package/dist/types/unstable/Card/index.d.ts +2 -11
- package/dist/types/unstable/Card/state.d.ts +20 -0
- package/dist/types/unstable/StatCard/index.d.ts +33 -0
- package/dist/types/unstable/extras/chart/index.d.ts +33 -0
- package/dist/types/unstable/index.d.ts +3 -0
- package/dist/types/unstable/skeleton/index.d.ts +15 -0
- package/dist/types/unstable/suspense/index.d.ts +9 -0
- package/dist/types/unstable/suspense/loader.d.ts +7 -0
- package/package.json +6 -8
- package/dist/cjs/unstable/Card/index.js +0 -33
- package/dist/esm/unstable/Card/index.js +0 -29
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { Suspense } from 'react';
|
|
4
|
+
import { CardSkeleton } from '../skeleton/index.js';
|
|
5
|
+
import Card from '../Card/components.js';
|
|
6
|
+
import { cx } from '../../styles/cx.js';
|
|
7
|
+
import '../../styles/defaultThemeOptions.js';
|
|
8
|
+
import '@capsizecss/core';
|
|
9
|
+
import 'color2k';
|
|
10
|
+
import '../../styles/defaultTheme.js';
|
|
11
|
+
import '../../styles/provider.client.js';
|
|
12
|
+
import '../../styles/css-vars.js';
|
|
13
|
+
import Typography from '../../Typography/index.js';
|
|
14
|
+
import ErrorBoundary from '../../ErrorBoundary/index.js';
|
|
15
|
+
import Button from '../../Button/index.js';
|
|
16
|
+
import styles from './index.module.scss.js';
|
|
17
|
+
|
|
18
|
+
function StatCard({
|
|
19
|
+
className,
|
|
20
|
+
selected,
|
|
21
|
+
onSelect,
|
|
22
|
+
children,
|
|
23
|
+
palette,
|
|
24
|
+
...props
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ jsx("div", { onClick: onSelect, className: styles.clickContainer, children: /* @__PURE__ */ jsx(
|
|
27
|
+
Card,
|
|
28
|
+
{
|
|
29
|
+
inset: "medium",
|
|
30
|
+
"data-selected": selected,
|
|
31
|
+
className: cx(
|
|
32
|
+
styles.statCardContainer,
|
|
33
|
+
onSelect && styles.onSelect,
|
|
34
|
+
className
|
|
35
|
+
),
|
|
36
|
+
palette,
|
|
37
|
+
...props,
|
|
38
|
+
children
|
|
39
|
+
}
|
|
40
|
+
) });
|
|
41
|
+
}
|
|
42
|
+
function StatCardSkeleton({
|
|
43
|
+
className,
|
|
44
|
+
children,
|
|
45
|
+
...props
|
|
46
|
+
}) {
|
|
47
|
+
return /* @__PURE__ */ jsx(
|
|
48
|
+
CardSkeleton,
|
|
49
|
+
{
|
|
50
|
+
inset: "medium",
|
|
51
|
+
className: cx(styles.statCardContainer, className),
|
|
52
|
+
...props,
|
|
53
|
+
children
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
function Stat({
|
|
58
|
+
stat,
|
|
59
|
+
size = "medium",
|
|
60
|
+
unit,
|
|
61
|
+
className,
|
|
62
|
+
style
|
|
63
|
+
}) {
|
|
64
|
+
return /* @__PURE__ */ jsxs(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
style,
|
|
68
|
+
"data-size": size,
|
|
69
|
+
className: cx(styles.statItem, className),
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title", leadingTrim: true, className: styles.stat, children: stat }),
|
|
72
|
+
/* @__PURE__ */ jsx(Typography, { variant: "label", leadingTrim: true, className: styles.unit, children: unit })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
function StatCardLoadingBoundary({
|
|
78
|
+
loader,
|
|
79
|
+
error,
|
|
80
|
+
children,
|
|
81
|
+
loadingChildren,
|
|
82
|
+
...cardProps
|
|
83
|
+
}) {
|
|
84
|
+
const skeleton = /* @__PURE__ */ jsx(CardSkeleton, { ...cardProps, children: loadingChildren ?? /* @__PURE__ */ jsx(Stat, { stat: "--" }) });
|
|
85
|
+
return /* @__PURE__ */ jsx(ErrorBoundary, { fallback: error, children: /* @__PURE__ */ jsx(Suspense, { fallback: loader || skeleton, children: /* @__PURE__ */ jsx(StatCard, { ...cardProps, children }) }) });
|
|
86
|
+
}
|
|
87
|
+
function StatSeparator() {
|
|
88
|
+
return /* @__PURE__ */ jsx("div", { className: styles.separator });
|
|
89
|
+
}
|
|
90
|
+
function StatActions(props) {
|
|
91
|
+
return /* @__PURE__ */ jsx(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
style: props.style,
|
|
95
|
+
className: cx(styles.statActions, props.className),
|
|
96
|
+
children: props.children
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
function StatButton({
|
|
101
|
+
endIcon,
|
|
102
|
+
className,
|
|
103
|
+
...buttonProps
|
|
104
|
+
}) {
|
|
105
|
+
return /* @__PURE__ */ jsx(
|
|
106
|
+
Button,
|
|
107
|
+
{
|
|
108
|
+
variant: "tertiary",
|
|
109
|
+
endIcon,
|
|
110
|
+
...buttonProps,
|
|
111
|
+
className: cx(endIcon && styles.buttonEndIcon, className)
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export { Stat, StatActions, StatButton, StatCard, StatCardLoadingBoundary, StatCardSkeleton, StatSeparator };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"clickContainer":"vt_ce_StatCard_clickContainer__e8381582","statCardContainer":"vt_ce_StatCard_statCardContainer__5aaeed9e","onSelect":"vt_ce_StatCard_onSelect__29f9a2fd","statItem":"vt_ce_StatCard_statItem__de1fc3fc","stat":"vt_ce_StatCard_stat__795d6781","unit":"vt_ce_StatCard_unit__66996d85","statActions":"vt_ce_StatCard_statActions__8b3a6076","buttonEndIcon":"vt_ce_StatCard_buttonEndIcon__f4ac7910","separator":"vt_ce_StatCard_separator__ccecd5e1"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
export { Breadcrumbs, ButtonBreadcrumb, CustomBreadcrumb, LinkBreadcrumb, SeparatorBreadcrumb } from './Breadcrumbs/index.js';
|
|
3
|
-
export { default as Card } from './Card/
|
|
3
|
+
export { default as Card, CardActions, CardContent, CardDescription, CardEnd, CardStart, CardTabs, CardTitle, CardTypography } from './Card/components.js';
|
|
4
4
|
export { default as LinearProgress } from './LinearProgress/index.js';
|
|
5
|
+
export { CardSkeleton, CardTitleSkeleton, FormControlSkeleton, Skeleton } from './skeleton/index.js';
|
|
6
|
+
export { Stat, StatActions, StatButton, StatCard, StatCardLoadingBoundary, StatCardSkeleton, StatSeparator } from './StatCard/index.js';
|
|
7
|
+
export { LoadingBoundary } from './suspense/index.js';
|
|
5
8
|
export { Tab, default as Tabs } from './Tabs/index.js';
|
|
6
9
|
export { createLinkBreadcrumbComponent } from './Breadcrumbs/factory.js';
|
|
10
|
+
export { DialogLoader, Loader } from './suspense/loader.js';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Skeleton as Skeleton$1 } from '@mui/material';
|
|
4
|
+
import styles from './index.module.scss.js';
|
|
5
|
+
import FormControl from '../../FormControl/index.js';
|
|
6
|
+
import { CardTitle } from '../Card/components.js';
|
|
7
|
+
import { cx } from '../../styles/cx.js';
|
|
8
|
+
import '../../styles/defaultThemeOptions.js';
|
|
9
|
+
import '@capsizecss/core';
|
|
10
|
+
import 'color2k';
|
|
11
|
+
import '../../styles/defaultTheme.js';
|
|
12
|
+
import '../../styles/provider.client.js';
|
|
13
|
+
import '../../styles/css-vars.js';
|
|
14
|
+
|
|
15
|
+
function Skeleton({
|
|
16
|
+
variant,
|
|
17
|
+
children,
|
|
18
|
+
style,
|
|
19
|
+
className
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ jsx(Skeleton$1, { variant, style, className, children });
|
|
22
|
+
}
|
|
23
|
+
function CardSkeleton({
|
|
24
|
+
inset,
|
|
25
|
+
className,
|
|
26
|
+
...cardProps
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
Skeleton$1,
|
|
30
|
+
{
|
|
31
|
+
variant: "rounded",
|
|
32
|
+
"data-inset": inset ?? "medium",
|
|
33
|
+
className: cx(styles.card, className),
|
|
34
|
+
...cardProps
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function FormControlSkeleton({
|
|
39
|
+
label,
|
|
40
|
+
children,
|
|
41
|
+
...formControlProps
|
|
42
|
+
}) {
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
FormControl,
|
|
45
|
+
{
|
|
46
|
+
label: label ?? /* @__PURE__ */ jsx(Skeleton, { className: styles.formControlSkeletonLabel }),
|
|
47
|
+
...formControlProps,
|
|
48
|
+
children: children ?? /* @__PURE__ */ jsx(Skeleton, { className: styles.formControlSkeletonControl })
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
function CardTitleSkeleton({
|
|
53
|
+
start,
|
|
54
|
+
actions,
|
|
55
|
+
children,
|
|
56
|
+
...props
|
|
57
|
+
}) {
|
|
58
|
+
return /* @__PURE__ */ jsx(
|
|
59
|
+
CardTitle,
|
|
60
|
+
{
|
|
61
|
+
...props,
|
|
62
|
+
start: start && /* @__PURE__ */ jsx(Skeleton, { className: styles.cardTitleStart, children: start }),
|
|
63
|
+
actions: actions && /* @__PURE__ */ jsx(Skeleton, { className: styles.cardTitleActions, children: actions }),
|
|
64
|
+
children: /* @__PURE__ */ jsx(Skeleton, {})
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { CardSkeleton, CardTitleSkeleton, FormControlSkeleton, Skeleton };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var styles = {"card":"vt_ce_skeleton_card__32ebc0cb","cardTitleStart":"vt_ce_skeleton_cardTitleStart__a249a958","cardTitleActions":"vt_ce_skeleton_cardTitleActions__6dd3b355","formControlSkeletonLabel":"vt_ce_skeleton_formControlSkeletonLabel__3e7081ff","formControlSkeletonControl":"vt_ce_skeleton_formControlSkeletonControl__d29d40f5"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Suspense } from 'react';
|
|
4
|
+
import { Loader } from './loader.js';
|
|
5
|
+
export { DialogLoader } from './loader.js';
|
|
6
|
+
import ErrorBoundary from '../../ErrorBoundary/index.js';
|
|
7
|
+
|
|
8
|
+
function LoadingBoundary(props) {
|
|
9
|
+
if (props.force) {
|
|
10
|
+
return props.loader || /* @__PURE__ */ jsx(Loader, {});
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ jsx(ErrorBoundary, { fallback: props.error, children: /* @__PURE__ */ jsx(Suspense, { fallback: props.loader || /* @__PURE__ */ jsx(Loader, {}), children: props.children }) });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { Loader, LoadingBoundary };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import styles from './index.module.scss.js';
|
|
4
|
+
import CircularProgress from '../../CircularProgress/index.js';
|
|
5
|
+
import { cx } from '../../styles/cx.js';
|
|
6
|
+
import '../../styles/defaultThemeOptions.js';
|
|
7
|
+
import '@capsizecss/core';
|
|
8
|
+
import 'color2k';
|
|
9
|
+
import '../../styles/defaultTheme.js';
|
|
10
|
+
import '../../styles/provider.client.js';
|
|
11
|
+
import '../../styles/css-vars.js';
|
|
12
|
+
|
|
13
|
+
function Loader(props) {
|
|
14
|
+
return /* @__PURE__ */ jsx("div", { style: props.style, className: cx(styles.container, props.className), children: /* @__PURE__ */ jsx(CircularProgress, {}) });
|
|
15
|
+
}
|
|
16
|
+
function DialogLoader({ className, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Loader, { ...props, className: cx(styles.dialogContainer, className) });
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { DialogLoader, Loader };
|
|
@@ -1,44 +1,39 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type DialogOptions } from './state.js';
|
|
3
|
+
import { type ButtonProps } from '../Button/index.js';
|
|
3
4
|
import { type IconButtonProps } from '../IconButton/index.js';
|
|
4
|
-
|
|
5
|
+
import { type CardContentProps, type CardEndProps, type CardProps, type CardStartProps, type CardTitleProps, type CardTypographyProps, type CardDescriptionProps, type CardActionsProps } from '../unstable/Card/index.js';
|
|
6
|
+
export type DialogProps = DialogOptions & CardProps & {
|
|
5
7
|
portalEl?: HTMLElement | null | React.MutableRefObject<HTMLElement | null>;
|
|
6
8
|
lockScroll?: boolean;
|
|
7
9
|
disableAutoFocus?: boolean;
|
|
8
10
|
preventOutsideDismiss?: boolean;
|
|
9
11
|
preventEscapeDismiss?: boolean;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
'data-testid'?: string;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
className?: string;
|
|
14
12
|
overlayStyle?: React.CSSProperties;
|
|
15
13
|
overlayClassName?: string;
|
|
16
14
|
};
|
|
17
|
-
declare const Dialog: React.ForwardRefExoticComponent<DialogOptions & {
|
|
15
|
+
declare const Dialog: React.ForwardRefExoticComponent<DialogOptions & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
+
inset?: import("../unstable/Card/components.js").CardInset | undefined;
|
|
17
|
+
palette?: import("../styles/palette.js").PaletteSurfaceColors | undefined;
|
|
18
|
+
} & {
|
|
18
19
|
portalEl?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null | undefined;
|
|
19
20
|
lockScroll?: boolean | undefined;
|
|
20
21
|
disableAutoFocus?: boolean | undefined;
|
|
21
22
|
preventOutsideDismiss?: boolean | undefined;
|
|
22
23
|
preventEscapeDismiss?: boolean | undefined;
|
|
23
|
-
children: React.ReactNode;
|
|
24
|
-
'data-testid'?: string | undefined;
|
|
25
|
-
style?: React.CSSProperties | undefined;
|
|
26
|
-
className?: string | undefined;
|
|
27
24
|
overlayStyle?: React.CSSProperties | undefined;
|
|
28
25
|
overlayClassName?: string | undefined;
|
|
29
26
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
30
27
|
export default Dialog;
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
style?: React.CSSProperties | undefined;
|
|
39
|
-
className?: string | undefined;
|
|
28
|
+
export type DialogStartProps = CardStartProps;
|
|
29
|
+
export declare const DialogStart: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
30
|
+
disableInset?: import("../unstable/Card/components.js").DisableInset | undefined;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export type DialogContentProps = CardContentProps;
|
|
33
|
+
export declare const DialogContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
34
|
+
disableInset?: import("../unstable/Card/components.js").DisableInset | undefined;
|
|
40
35
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
-
export
|
|
36
|
+
export type DialogEndProps = CardEndProps;
|
|
42
37
|
export declare const DialogEnd: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
43
38
|
as?: keyof React.JSX.IntrinsicElements | undefined;
|
|
44
39
|
variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
|
|
@@ -48,7 +43,10 @@ export declare const DialogEnd: React.ForwardRefExoticComponent<Omit<React.Detai
|
|
|
48
43
|
'data-testid'?: string | undefined;
|
|
49
44
|
style?: React.CSSProperties | undefined;
|
|
50
45
|
className?: string | undefined;
|
|
46
|
+
} & {
|
|
47
|
+
disableInset?: import("../unstable/Card/components.js").DisableInset | undefined;
|
|
51
48
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
export type DialogTitleProps = CardTitleProps;
|
|
52
50
|
export declare const DialogTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
53
51
|
as?: keyof React.JSX.IntrinsicElements | undefined;
|
|
54
52
|
variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
|
|
@@ -58,7 +56,12 @@ export declare const DialogTitle: React.ForwardRefExoticComponent<Omit<React.Det
|
|
|
58
56
|
'data-testid'?: string | undefined;
|
|
59
57
|
style?: React.CSSProperties | undefined;
|
|
60
58
|
className?: string | undefined;
|
|
59
|
+
} & {
|
|
60
|
+
start?: React.ReactNode;
|
|
61
|
+
actions?: React.ReactNode;
|
|
62
|
+
containerProps?: CardStartProps | undefined;
|
|
61
63
|
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
64
|
+
export type DialogTypographyProps = CardTypographyProps;
|
|
62
65
|
export declare const DialogTypography: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
63
66
|
as?: keyof React.JSX.IntrinsicElements | undefined;
|
|
64
67
|
variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
|
|
@@ -69,6 +72,7 @@ export declare const DialogTypography: React.ForwardRefExoticComponent<Omit<Reac
|
|
|
69
72
|
style?: React.CSSProperties | undefined;
|
|
70
73
|
className?: string | undefined;
|
|
71
74
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
75
|
+
export type DialogDescriptionProps = CardDescriptionProps;
|
|
72
76
|
export declare const DialogDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
73
77
|
as?: keyof React.JSX.IntrinsicElements | undefined;
|
|
74
78
|
variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
|
|
@@ -79,7 +83,9 @@ export declare const DialogDescription: React.ForwardRefExoticComponent<Omit<Rea
|
|
|
79
83
|
style?: React.CSSProperties | undefined;
|
|
80
84
|
className?: string | undefined;
|
|
81
85
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
86
|
+
export type DialogActionsProps = CardActionsProps;
|
|
82
87
|
export declare const DialogActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
88
|
+
export type DialogCloseButtonProps = ButtonProps;
|
|
83
89
|
export declare const DialogCloseButton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
84
90
|
variant?: import("../Button/index.js").ButtonVariant | undefined;
|
|
85
91
|
palette?: import("../styles/palette.js").PaletteActionVariantsColors | import("../styles/css-vars.js").RecursiveStringObject<import("../styles/palette.js").PaletteActionVariantsColors> | undefined;
|
|
@@ -92,4 +98,5 @@ export declare const DialogCloseButton: React.ForwardRefExoticComponent<Omit<Rea
|
|
|
92
98
|
children?: React.ReactNode;
|
|
93
99
|
'data-testid'?: string | undefined;
|
|
94
100
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
101
|
+
export type DialogCloseIconButtonProps = IconButtonProps;
|
|
95
102
|
export declare const DialogCloseIconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -3,16 +3,15 @@ import { PopoverPortalElProp } from '../popover/types.js';
|
|
|
3
3
|
export type DialogFactoryOptions = {
|
|
4
4
|
portalEl?: PopoverPortalElProp;
|
|
5
5
|
};
|
|
6
|
-
export declare function createDialogComponent({ portalEl }: DialogFactoryOptions): React.ForwardRefExoticComponent<import("./state.js").DialogOptions & {
|
|
6
|
+
export declare function createDialogComponent({ portalEl }: DialogFactoryOptions): React.ForwardRefExoticComponent<import("./state.js").DialogOptions & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
inset?: import("../unstable/index.js").CardInset | undefined;
|
|
8
|
+
palette?: import("../index.js").PaletteSurfaceColors | undefined;
|
|
9
|
+
} & {
|
|
7
10
|
portalEl?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null | undefined;
|
|
8
11
|
lockScroll?: boolean | undefined;
|
|
9
12
|
disableAutoFocus?: boolean | undefined;
|
|
10
13
|
preventOutsideDismiss?: boolean | undefined;
|
|
11
14
|
preventEscapeDismiss?: boolean | undefined;
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
'data-testid'?: string | undefined;
|
|
14
|
-
style?: React.CSSProperties | undefined;
|
|
15
|
-
className?: string | undefined;
|
|
16
15
|
overlayStyle?: React.CSSProperties | undefined;
|
|
17
16
|
overlayClassName?: string | undefined;
|
|
18
17
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -12,10 +12,6 @@ export interface DialogOptions {
|
|
|
12
12
|
preventEscapeDismiss?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare function useDialog({ open, onDismiss: dismissDialog, preventOutsideDismiss, preventEscapeDismiss }: DialogOptions): {
|
|
15
|
-
labelId: string | undefined;
|
|
16
|
-
descriptionId: string | undefined;
|
|
17
|
-
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
18
|
-
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
19
15
|
placement: import("@floating-ui/utils").Placement;
|
|
20
16
|
strategy: import("@floating-ui/utils").Strategy;
|
|
21
17
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
@@ -61,16 +57,9 @@ export declare function useDialog({ open, onDismiss: dismissDialog, preventOutsi
|
|
|
61
57
|
open: boolean;
|
|
62
58
|
dismiss: () => void;
|
|
63
59
|
};
|
|
64
|
-
export type DialogContextType =
|
|
65
|
-
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
66
|
-
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
67
|
-
}) | null;
|
|
60
|
+
export type DialogContextType = ReturnType<typeof useDialog> | null;
|
|
68
61
|
export declare const DialogContext: React.Context<DialogContextType>;
|
|
69
62
|
export declare const useDialogContext: () => {
|
|
70
|
-
labelId: string | undefined;
|
|
71
|
-
descriptionId: string | undefined;
|
|
72
|
-
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
73
|
-
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
74
63
|
placement: import("@floating-ui/utils").Placement;
|
|
75
64
|
strategy: import("@floating-ui/utils").Strategy;
|
|
76
65
|
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
@@ -115,7 +104,4 @@ export declare const useDialogContext: () => {
|
|
|
115
104
|
}) | undefined) => Record<string, unknown>;
|
|
116
105
|
open: boolean;
|
|
117
106
|
dismiss: () => void;
|
|
118
|
-
} & {
|
|
119
|
-
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
120
|
-
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
121
107
|
};
|
|
@@ -15,4 +15,4 @@ export type TablePaginationProps = {
|
|
|
15
15
|
showPageNumberInput?: boolean;
|
|
16
16
|
className?: string;
|
|
17
17
|
};
|
|
18
|
-
export default function TablePagination({ page, count, rowsPerPage, rowsPerPageOptions, rowsPerPageLabel, rowsPerPageVariant, showPageNumberInput, ...props }: TablePaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function TablePagination({ page, count, rowsPerPage, rowsPerPageOptions, rowsPerPageLabel, rowsPerPageVariant, showPageNumberInput, onChangePage, onRowsPerPageChange, 'data-pendo-prev': dataPendoPrev, 'data-pendo-next': dataPendoNext, 'data-pendo-select': dataPendoSelect, className, ...props }: TablePaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import type { Palette } from './palette.js';
|
|
2
|
-
import { type PaletteOptions } from './themeOptions.js';
|
|
1
|
+
import type { Palette, PaletteAction, PaletteActionVariantsColors, PaletteBackground, PaletteBrand, PaletteColor, PaletteIndicator, PaletteStroke, PaletteSurfaceColors, PaletteTable, PaletteText, PaletteTooltip } from './palette.js';
|
|
2
|
+
import { type PaletteActionOptions, type PaletteActionVariantsColorsOptions, type PaletteBackgroundOptions, type PaletteBrandOptions, type PaletteColorOptions, type PaletteIndicatorOptions, type PaletteOptions, type PaletteStrokeOptions, type PaletteSurfaceColorsOptions, type PaletteTableOptions, type PaletteTextOptions, type PaletteTooltipOptions } from './themeOptions.js';
|
|
3
|
+
export declare function createPaletteColor(options: PaletteColorOptions): PaletteColor;
|
|
4
|
+
export declare function createPaletteSurfaceColors(options: PaletteSurfaceColorsOptions): PaletteSurfaceColors;
|
|
5
|
+
export declare function createPaletteActionVariantsColors(options: PaletteActionVariantsColorsOptions, disabled: PaletteSurfaceColors): PaletteActionVariantsColors;
|
|
6
|
+
export declare function createPaletteBrand(options: PaletteBrandOptions, disabled: PaletteSurfaceColors): PaletteBrand;
|
|
7
|
+
export declare function createPaletteText(options: PaletteTextOptions): PaletteText;
|
|
8
|
+
export declare function createPaletteAction(options: PaletteActionOptions, disabled: PaletteSurfaceColors, text: PaletteColor): PaletteAction;
|
|
9
|
+
export declare function createPaletteIndicator(options: PaletteIndicatorOptions, disabled: PaletteSurfaceColors): PaletteIndicator;
|
|
10
|
+
export declare function createPaletteTable(options: PaletteTableOptions, disabled: PaletteSurfaceColors): PaletteTable;
|
|
11
|
+
export declare function createPaletteTooltip(options: PaletteTooltipOptions): PaletteTooltip;
|
|
12
|
+
export declare function createPaletteBackground(options: PaletteBackgroundOptions): PaletteBackground;
|
|
13
|
+
export declare function createPaletteStroke(options: PaletteStrokeOptions): PaletteStroke;
|
|
3
14
|
export declare function createPalette(options?: PaletteOptions): Palette;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type PaletteSurfaceColors } from '../../styles/index.js';
|
|
3
|
+
import { type TypographyProps } from '../../Typography/index.js';
|
|
4
|
+
import { type TabsProps } from '../Tabs/index.js';
|
|
5
|
+
export type CardInset = 'small' | 'medium';
|
|
6
|
+
export type DisableInset = 'horizontal' | 'vertical' | boolean;
|
|
7
|
+
export type CardProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
8
|
+
inset?: CardInset;
|
|
9
|
+
palette?: PaletteSurfaceColors;
|
|
10
|
+
};
|
|
11
|
+
declare const Card: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
|
+
inset?: CardInset | undefined;
|
|
13
|
+
palette?: PaletteSurfaceColors | undefined;
|
|
14
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export default Card;
|
|
16
|
+
export type CardStartProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
17
|
+
disableInset?: DisableInset;
|
|
18
|
+
};
|
|
19
|
+
export declare const CardStart: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
|
+
disableInset?: DisableInset | undefined;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export type CardContentProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
23
|
+
disableInset?: DisableInset;
|
|
24
|
+
};
|
|
25
|
+
export declare const CardContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
26
|
+
disableInset?: DisableInset | undefined;
|
|
27
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export type CardEndProps = TypographyProps & {
|
|
29
|
+
disableInset?: DisableInset;
|
|
30
|
+
};
|
|
31
|
+
export declare const CardEnd: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
32
|
+
as?: keyof React.JSX.IntrinsicElements | undefined;
|
|
33
|
+
variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
|
|
34
|
+
color?: "inherit" | "disabled" | keyof import("../../styles/palette.js").PaletteText | undefined;
|
|
35
|
+
leadingTrim?: boolean | undefined;
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
'data-testid'?: string | undefined;
|
|
38
|
+
style?: React.CSSProperties | undefined;
|
|
39
|
+
className?: string | undefined;
|
|
40
|
+
} & {
|
|
41
|
+
disableInset?: DisableInset | undefined;
|
|
42
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
export type CardTitleProps = TypographyProps & {
|
|
44
|
+
start?: React.ReactNode;
|
|
45
|
+
actions?: React.ReactNode;
|
|
46
|
+
containerProps?: CardStartProps;
|
|
47
|
+
};
|
|
48
|
+
export declare const CardTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
49
|
+
as?: keyof React.JSX.IntrinsicElements | undefined;
|
|
50
|
+
variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
|
|
51
|
+
color?: "inherit" | "disabled" | keyof import("../../styles/palette.js").PaletteText | undefined;
|
|
52
|
+
leadingTrim?: boolean | undefined;
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
'data-testid'?: string | undefined;
|
|
55
|
+
style?: React.CSSProperties | undefined;
|
|
56
|
+
className?: string | undefined;
|
|
57
|
+
} & {
|
|
58
|
+
start?: React.ReactNode;
|
|
59
|
+
actions?: React.ReactNode;
|
|
60
|
+
containerProps?: CardStartProps | undefined;
|
|
61
|
+
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
62
|
+
export type CardTabsProps = TabsProps & {
|
|
63
|
+
align?: 'start' | 'center';
|
|
64
|
+
actions?: React.ReactNode;
|
|
65
|
+
};
|
|
66
|
+
export declare function CardTabs({ align, actions, className, style, ...props }: CardTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export type CardTypographyProps = TypographyProps;
|
|
68
|
+
export declare const CardTypography: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
69
|
+
as?: keyof React.JSX.IntrinsicElements | undefined;
|
|
70
|
+
variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
|
|
71
|
+
color?: "inherit" | "disabled" | keyof import("../../styles/palette.js").PaletteText | undefined;
|
|
72
|
+
leadingTrim?: boolean | undefined;
|
|
73
|
+
children?: React.ReactNode;
|
|
74
|
+
'data-testid'?: string | undefined;
|
|
75
|
+
style?: React.CSSProperties | undefined;
|
|
76
|
+
className?: string | undefined;
|
|
77
|
+
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
78
|
+
export type CardDescriptionProps = TypographyProps;
|
|
79
|
+
export declare const CardDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
80
|
+
as?: keyof React.JSX.IntrinsicElements | undefined;
|
|
81
|
+
variant?: "title" | "h1" | "h2" | "h3" | "h4" | "label" | "paragraph1" | "paragraph2" | "paragraph3" | "button" | "buttonSmall" | "input" | "statusChip" | undefined;
|
|
82
|
+
color?: "inherit" | "disabled" | keyof import("../../styles/palette.js").PaletteText | undefined;
|
|
83
|
+
leadingTrim?: boolean | undefined;
|
|
84
|
+
children?: React.ReactNode;
|
|
85
|
+
'data-testid'?: string | undefined;
|
|
86
|
+
style?: React.CSSProperties | undefined;
|
|
87
|
+
className?: string | undefined;
|
|
88
|
+
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
89
|
+
export type CardActionsProps = React.ComponentPropsWithoutRef<'div'>;
|
|
90
|
+
export declare const CardActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export type CardProps = {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
inset?: CardInset;
|
|
6
|
-
'data-testid'?: string;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
className?: string;
|
|
9
|
-
};
|
|
10
|
-
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export default Card;
|
|
1
|
+
export * from './components.js';
|
|
2
|
+
export { default } from './components.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function useCard(): {
|
|
3
|
+
labelId: string | undefined;
|
|
4
|
+
descriptionId: string | undefined;
|
|
5
|
+
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
6
|
+
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
7
|
+
};
|
|
8
|
+
export type CardContextType = ReturnType<typeof useCard>;
|
|
9
|
+
export declare const CardContext: React.Context<{
|
|
10
|
+
labelId: string | undefined;
|
|
11
|
+
descriptionId: string | undefined;
|
|
12
|
+
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
13
|
+
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const useCardContext: () => {
|
|
16
|
+
labelId: string | undefined;
|
|
17
|
+
descriptionId: string | undefined;
|
|
18
|
+
setLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
19
|
+
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { LoadingBoundaryProps } from '../suspense/index.js';
|
|
3
|
+
import { CardProps } from '../Card/index.js';
|
|
4
|
+
import { type PaletteSurfaceColors } from '../../styles/index.js';
|
|
5
|
+
import { type ButtonProps } from '../../Button/index.js';
|
|
6
|
+
export type StatCardProps = Omit<CardProps, 'inset'> & {
|
|
7
|
+
palette?: PaletteSurfaceColors;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
onSelect?(): void;
|
|
10
|
+
};
|
|
11
|
+
export declare function StatCard({ className, selected, onSelect, children, palette, ...props }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function StatCardSkeleton({ className, children, ...props }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type StatCardContentProps = {
|
|
14
|
+
stat: ReactNode;
|
|
15
|
+
unit?: ReactNode;
|
|
16
|
+
size?: 'medium' | 'small';
|
|
17
|
+
className?: string;
|
|
18
|
+
style?: CSSProperties;
|
|
19
|
+
};
|
|
20
|
+
export declare function Stat({ stat, size, unit, className, style }: StatCardContentProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export type StatCardLoadingBoundaryProps = LoadingBoundaryProps & StatCardProps & {
|
|
22
|
+
loadingChildren?: ReactNode;
|
|
23
|
+
};
|
|
24
|
+
export declare function StatCardLoadingBoundary({ loader, error, children, loadingChildren, ...cardProps }: StatCardLoadingBoundaryProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function StatSeparator(): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export type StatActionsProps = {
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
className?: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function StatActions(props: StatActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export type StatButtonProps = Omit<ButtonProps, 'variant' | 'type'> & {};
|
|
33
|
+
export declare function StatButton({ endIcon, className, ...buttonProps }: StatButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { VisualizationSpec } from 'vega-embed';
|
|
3
|
+
export interface ChartProps {
|
|
4
|
+
/**
|
|
5
|
+
* Vega or Vega-Lite specification
|
|
6
|
+
*/
|
|
7
|
+
spec: VisualizationSpec;
|
|
8
|
+
/**
|
|
9
|
+
* Data to be used in the chart
|
|
10
|
+
*/
|
|
11
|
+
data?: Record<string, unknown[]>;
|
|
12
|
+
/**
|
|
13
|
+
* Additional CSS class name
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Inline styles
|
|
18
|
+
*/
|
|
19
|
+
style?: React.CSSProperties;
|
|
20
|
+
/**
|
|
21
|
+
* Width of the chart
|
|
22
|
+
*/
|
|
23
|
+
width?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Height of the chart
|
|
26
|
+
*/
|
|
27
|
+
height?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Chart component that wraps Vega/Vega-Lite visualizations
|
|
31
|
+
*/
|
|
32
|
+
declare const Chart: (props: ChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export default Chart;
|