@lotte-innovate/ui-component-test 0.1.33 → 0.1.34
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +133 -89
- package/dist/globals.css +4 -4
- package/dist/lib/color/dark.js +1 -1
- package/dist/lib/color/light.js +3 -3
- package/dist/lib/components/Avatar/index.js +1 -1
- package/dist/lib/components/BarChart/index.d.ts +13 -57
- package/dist/lib/components/DoughnutChart/index.d.ts +12 -15
- package/dist/lib/components/DoughnutChart/index.js +10 -3
- package/dist/lib/components/LineChart/index.d.ts +9 -53
- package/dist/lib/components/PieChart/index.d.ts +12 -15
- package/dist/lib/components/PieChart/index.js +9 -2
- package/dist/lib/components/Select/index.js +1 -1
- package/dist/lib/components/ToggleSwitch/index.js +1 -1
- package/dist/lib/components/Tooltip/index.d.ts +1 -1
- package/dist/lib/constants.d.ts +151 -0
- package/dist/lib/constants.js +111 -4
- package/dist/lib/types.d.ts +58 -0
- package/package.json +131 -131
package/dist/lib/color/dark.js
CHANGED
package/dist/lib/color/light.js
CHANGED
@@ -52,7 +52,7 @@ var AvatarVariants = cva('font-medium', {
|
|
52
52
|
var Avatar = forwardRef(function (_a, ref) {
|
53
53
|
var className = _a.className, fallbackClassName = _a.fallbackClassName, radius = _a.radius, scaling = _a.scaling, size = _a.size, fallbackText = _a.fallbackText, imagePath = _a.imagePath, alt = _a.alt, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, ariaLabel = _a.ariaLabel, ariaLabelledby = _a.ariaLabelledby, title = _a.title, props = __rest(_a, ["className", "fallbackClassName", "radius", "scaling", "size", "fallbackText", "imagePath", "alt", "appearance", "color", "ariaLabel", "ariaLabelledby", "title"]);
|
54
54
|
var imgAltText = alt || ariaLabel || fallbackText || 'Avatar Image';
|
55
|
-
return (_jsxs(AvatarPrimitive.Root, __assign({ className: cn("inline-flex select-none items-center justify-center overflow-hidden align-middle", AvatarVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, false), className) }, props, { ref: ref, role: "img", "aria-label": ariaLabel || imgAltText, "aria-labelledby": ariaLabelledby, title: title || imgAltText, tabIndex: 0, children: [_jsx(AvatarPrimitive.Image, { className: "h-full w-full object-cover
|
55
|
+
return (_jsxs(AvatarPrimitive.Root, __assign({ className: cn("inline-flex select-none items-center justify-center overflow-hidden align-middle", AvatarVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, false), className) }, props, { ref: ref, role: "img", "aria-label": ariaLabel || imgAltText, "aria-labelledby": ariaLabelledby, title: title || imgAltText, tabIndex: 0, children: [_jsx(AvatarPrimitive.Image, { className: "h-full w-full border-none object-cover", src: imagePath, alt: imgAltText, title: title || imgAltText }), _jsx(AvatarPrimitive.Fallback, { className: cn("leading-1 flex h-full w-full items-center justify-center", className), delayMs: 300, "aria-hidden": "true", children: fallbackText })] })));
|
56
56
|
});
|
57
57
|
Avatar.displayName = 'Avatar';
|
58
58
|
export default Avatar;
|
@@ -1,71 +1,27 @@
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
2
|
-
import {
|
2
|
+
import { IChartDatasets, IChartLegend, IChartTitle } from '../../../lib/types';
|
3
3
|
export interface BorderRadius {
|
4
4
|
topLeft: number;
|
5
5
|
topRight: number;
|
6
6
|
bottomLeft: number;
|
7
7
|
bottomRight: number;
|
8
8
|
}
|
9
|
+
type IBarchartDataset = IChartDatasets & {
|
10
|
+
data: {
|
11
|
+
x: number;
|
12
|
+
y: number;
|
13
|
+
r: number;
|
14
|
+
}[];
|
15
|
+
barThickness?: number;
|
16
|
+
barPercentage?: number;
|
17
|
+
};
|
9
18
|
export interface BarChartProps extends VariantProps<typeof barChartVariants> {
|
10
19
|
labels?: string[];
|
11
20
|
isColorMixed?: boolean;
|
12
21
|
appearance?: 'solid' | 'soft';
|
13
|
-
title?:
|
14
|
-
|
15
|
-
|
16
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
17
|
-
align?: 'start' | 'center' | 'end';
|
18
|
-
font?: {
|
19
|
-
size?: number;
|
20
|
-
weight?: 'normal' | 'bold' | 'lighter' | 'bolder' | number;
|
21
|
-
lineHeight?: number;
|
22
|
-
};
|
23
|
-
};
|
24
|
-
legend?: {
|
25
|
-
display?: boolean;
|
26
|
-
align?: 'start' | 'center' | 'end';
|
27
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
28
|
-
maxHeight?: number;
|
29
|
-
maxWidth?: number;
|
30
|
-
fullSize?: boolean;
|
31
|
-
reverse?: boolean;
|
32
|
-
labels?: {
|
33
|
-
boxWidth?: number;
|
34
|
-
boxHeight?: number;
|
35
|
-
padding?: number;
|
36
|
-
textAlign?: 'left' | 'right' | 'center';
|
37
|
-
color?: string;
|
38
|
-
usePointStyle?: boolean;
|
39
|
-
pointStyleWidth?: number;
|
40
|
-
useBorderRadius?: boolean;
|
41
|
-
borderRadius?: number;
|
42
|
-
};
|
43
|
-
rtl?: boolean;
|
44
|
-
textDirection?: 'rtl' | 'ltr';
|
45
|
-
title?: {
|
46
|
-
color?: string;
|
47
|
-
display?: boolean;
|
48
|
-
padding?: number;
|
49
|
-
text?: string;
|
50
|
-
};
|
51
|
-
};
|
52
|
-
datasets: {
|
53
|
-
label: string;
|
54
|
-
data: {
|
55
|
-
x: number;
|
56
|
-
y: number;
|
57
|
-
r: number;
|
58
|
-
}[];
|
59
|
-
backgroundColor?: string[];
|
60
|
-
borderColor?: string[];
|
61
|
-
borderWidth?: number;
|
62
|
-
hoverBackgroundColor?: string;
|
63
|
-
hoverBorderColor?: string;
|
64
|
-
hoverBorderWidth?: number;
|
65
|
-
pointStyle?: PointStyle;
|
66
|
-
barThickness?: number;
|
67
|
-
barPercentage?: number;
|
68
|
-
}[];
|
22
|
+
title?: IChartTitle;
|
23
|
+
legend?: IChartLegend;
|
24
|
+
datasets: IBarchartDataset[];
|
69
25
|
indexAxis?: 'x' | 'y';
|
70
26
|
className?: string;
|
71
27
|
width?: string | number;
|
@@ -1,25 +1,22 @@
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
2
|
+
import { IChartDataLabels, IChartDatasets, IChartLegend, IChartTitle } from '../../../lib/types';
|
2
3
|
export interface DoughnutChartProps extends VariantProps<typeof doughnutVariants> {
|
3
4
|
labels?: string[];
|
4
|
-
datasets: {
|
5
|
-
label?: string;
|
6
|
-
data: number[];
|
7
|
-
backgroundColor?: string[];
|
8
|
-
borderColor?: string[];
|
9
|
-
borderWidth?: number;
|
10
|
-
borderDash?: number[];
|
11
|
-
borderDashOffset?: number;
|
12
|
-
offset?: number;
|
13
|
-
spacing?: number;
|
14
|
-
weight?: number;
|
15
|
-
}[];
|
16
|
-
options?: {};
|
17
|
-
className?: string;
|
18
5
|
appearance?: 'solid' | 'soft';
|
19
6
|
isColorMixed?: boolean;
|
7
|
+
className?: string;
|
8
|
+
title?: IChartTitle;
|
9
|
+
legend?: IChartLegend;
|
10
|
+
datasets: IChartDatasets[] & {
|
11
|
+
data: number[];
|
12
|
+
}[];
|
13
|
+
datalabels?: IChartDataLabels;
|
20
14
|
}
|
21
15
|
declare const doughnutVariants: (props?: ({
|
22
16
|
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
23
17
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
24
|
-
declare const DoughnutChart:
|
18
|
+
declare const DoughnutChart: {
|
19
|
+
({ labels, title, legend, datasets, datalabels, scaling, className, appearance, isColorMixed, ...rest }: DoughnutChartProps): import("react/jsx-runtime").JSX.Element;
|
20
|
+
displayName: string;
|
21
|
+
};
|
25
22
|
export default DoughnutChart;
|
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
22
22
|
};
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
24
24
|
import { Doughnut } from 'react-chartjs-2';
|
25
|
-
import { Chart as ChartJS, ArcElement, Tooltip, Legend, plugins } from 'chart.js';
|
25
|
+
import { Chart as ChartJS, ArcElement, Tooltip, Legend, plugins } from 'chart.js/auto';
|
26
26
|
import ChartDataLabels from 'chartjs-plugin-datalabels';
|
27
27
|
import { cn } from '../../../lib/utils/utils';
|
28
28
|
import { cva } from 'class-variance-authority';
|
@@ -41,7 +41,7 @@ var doughnutVariants = cva('', {
|
|
41
41
|
},
|
42
42
|
});
|
43
43
|
var DoughnutChart = function (_a) {
|
44
|
-
var labels = _a.labels, datasets = _a.datasets, scaling = _a.scaling, className = _a.className, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, rest = __rest(_a, ["labels", "datasets", "scaling", "className", "appearance", "isColorMixed"]);
|
44
|
+
var labels = _a.labels, title = _a.title, legend = _a.legend, datasets = _a.datasets, datalabels = _a.datalabels, scaling = _a.scaling, className = _a.className, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, rest = __rest(_a, ["labels", "title", "legend", "datasets", "datalabels", "scaling", "className", "appearance", "isColorMixed"]);
|
45
45
|
var getChartColor = function (isColorMixed, appearance) {
|
46
46
|
if (appearance === 'solid') {
|
47
47
|
return isColorMixed ? chartColorList.mixed : chartColorList.sorting;
|
@@ -53,6 +53,13 @@ var DoughnutChart = function (_a) {
|
|
53
53
|
datasets.forEach(function (dataset, index) {
|
54
54
|
datasets[index] = __assign(__assign({}, dataset), { backgroundColor: getChartColor(isColorMixed, appearance), borderColor: getChartColor(isColorMixed, 'solid') });
|
55
55
|
});
|
56
|
-
return (_jsx(Doughnut, __assign({ data: { labels: labels, datasets: datasets },
|
56
|
+
return (_jsx(Doughnut, __assign({ data: { labels: labels, datasets: datasets }, options: {
|
57
|
+
plugins: {
|
58
|
+
title: title,
|
59
|
+
legend: legend,
|
60
|
+
datalabels: datalabels,
|
61
|
+
},
|
62
|
+
}, className: cn(doughnutVariants({ scaling: scaling }), className) }, rest)));
|
57
63
|
};
|
64
|
+
DoughnutChart.displayName = 'DoughnutChart';
|
58
65
|
export default DoughnutChart;
|
@@ -1,67 +1,23 @@
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
2
|
-
import {
|
2
|
+
import { IChartDatasets, IChartLegend, IChartTitle } from '../../../lib/types';
|
3
3
|
export interface BorderRadius {
|
4
4
|
topLeft: number;
|
5
5
|
topRight: number;
|
6
6
|
bottomLeft: number;
|
7
7
|
bottomRight: number;
|
8
8
|
}
|
9
|
+
type ILinechartDataset = IChartDatasets & {
|
10
|
+
data: any;
|
11
|
+
barThickness?: number;
|
12
|
+
barPercentage?: number;
|
13
|
+
};
|
9
14
|
export interface LineChartProps extends VariantProps<typeof lineChartVariants> {
|
10
15
|
labels?: string[];
|
11
16
|
isColorMixed?: boolean;
|
12
17
|
appearance?: 'solid' | 'soft';
|
13
|
-
title?:
|
14
|
-
|
15
|
-
|
16
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
17
|
-
align?: 'start' | 'center' | 'end';
|
18
|
-
font?: {
|
19
|
-
size?: number;
|
20
|
-
weight?: 'normal' | 'bold' | 'lighter' | 'bolder' | number;
|
21
|
-
lineHeight?: number;
|
22
|
-
};
|
23
|
-
};
|
24
|
-
legend?: {
|
25
|
-
display?: boolean;
|
26
|
-
align?: 'start' | 'center' | 'end';
|
27
|
-
position?: 'top' | 'right' | 'bottom' | 'left';
|
28
|
-
maxHeight?: number;
|
29
|
-
maxWidth?: number;
|
30
|
-
fullSize?: boolean;
|
31
|
-
reverse?: boolean;
|
32
|
-
labels?: {
|
33
|
-
boxWidth?: number;
|
34
|
-
boxHeight?: number;
|
35
|
-
padding?: number;
|
36
|
-
textAlign?: 'left' | 'right' | 'center';
|
37
|
-
color?: string;
|
38
|
-
usePointStyle?: boolean;
|
39
|
-
pointStyleWidth?: number;
|
40
|
-
useBorderRadius?: boolean;
|
41
|
-
borderRadius?: number;
|
42
|
-
};
|
43
|
-
rtl?: boolean;
|
44
|
-
textDirection?: 'rtl' | 'ltr';
|
45
|
-
title?: {
|
46
|
-
color?: string;
|
47
|
-
display?: boolean;
|
48
|
-
padding?: number;
|
49
|
-
text?: string;
|
50
|
-
};
|
51
|
-
};
|
52
|
-
datasets: {
|
53
|
-
label: string;
|
54
|
-
data: any;
|
55
|
-
backgroundColor?: string | string[];
|
56
|
-
borderColor?: string | string[];
|
57
|
-
borderWidth?: number;
|
58
|
-
hoverBackgroundColor?: string;
|
59
|
-
hoverBorderColor?: string;
|
60
|
-
hoverBorderWidth?: number;
|
61
|
-
pointStyle?: PointStyle;
|
62
|
-
barThickness?: number;
|
63
|
-
barPercentage?: number;
|
64
|
-
}[];
|
18
|
+
title?: IChartTitle;
|
19
|
+
legend?: IChartLegend;
|
20
|
+
datasets: ILinechartDataset[];
|
65
21
|
scales?: {
|
66
22
|
x?: {
|
67
23
|
min?: number;
|
@@ -1,25 +1,22 @@
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
2
|
+
import { IChartDataLabels, IChartDatasets, IChartLegend, IChartTitle } from '../../../lib/types';
|
2
3
|
export interface PieChartProps extends VariantProps<typeof PieVariants> {
|
3
4
|
labels?: string[];
|
4
|
-
datasets: {
|
5
|
-
label?: string;
|
6
|
-
data: number[];
|
7
|
-
backgroundColor?: string[];
|
8
|
-
borderColor?: string[];
|
9
|
-
borderWidth?: number;
|
10
|
-
borderDash?: number[];
|
11
|
-
borderDashOffset?: number;
|
12
|
-
offset?: number;
|
13
|
-
spacing?: number;
|
14
|
-
weight?: number;
|
15
|
-
}[];
|
16
|
-
options?: {};
|
17
|
-
className?: string;
|
18
5
|
appearance?: 'solid' | 'soft';
|
19
6
|
isColorMixed?: boolean;
|
7
|
+
className?: string;
|
8
|
+
title?: IChartTitle;
|
9
|
+
legend?: IChartLegend;
|
10
|
+
datasets: IChartDatasets[] & {
|
11
|
+
data: number[];
|
12
|
+
}[];
|
13
|
+
datalabels?: IChartDataLabels;
|
20
14
|
}
|
21
15
|
declare const PieVariants: (props?: ({
|
22
16
|
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
23
17
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
24
|
-
declare const PieChart:
|
18
|
+
declare const PieChart: {
|
19
|
+
({ labels, title, legend, datasets, datalabels, scaling, className, appearance, isColorMixed, ...rest }: PieChartProps): import("react/jsx-runtime").JSX.Element;
|
20
|
+
displayName: string;
|
21
|
+
};
|
25
22
|
export default PieChart;
|
@@ -41,7 +41,7 @@ var PieVariants = cva('', {
|
|
41
41
|
},
|
42
42
|
});
|
43
43
|
var PieChart = function (_a) {
|
44
|
-
var labels = _a.labels, datasets = _a.datasets, scaling = _a.scaling, className = _a.className, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, rest = __rest(_a, ["labels", "datasets", "scaling", "className", "appearance", "isColorMixed"]);
|
44
|
+
var labels = _a.labels, title = _a.title, legend = _a.legend, datasets = _a.datasets, datalabels = _a.datalabels, scaling = _a.scaling, className = _a.className, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, rest = __rest(_a, ["labels", "title", "legend", "datasets", "datalabels", "scaling", "className", "appearance", "isColorMixed"]);
|
45
45
|
var getChartColor = function (isColorMixed, appearance) {
|
46
46
|
if (appearance === 'solid') {
|
47
47
|
return isColorMixed ? chartColorList.mixed : chartColorList.sorting;
|
@@ -53,6 +53,13 @@ var PieChart = function (_a) {
|
|
53
53
|
datasets.forEach(function (dataset, index) {
|
54
54
|
datasets[index] = __assign(__assign({}, dataset), { backgroundColor: getChartColor(isColorMixed, appearance), borderColor: getChartColor(isColorMixed, 'solid') });
|
55
55
|
});
|
56
|
-
return (_jsx(Pie, __assign({ data: { labels: labels, datasets: datasets },
|
56
|
+
return (_jsx(Pie, __assign({ data: { labels: labels, datasets: datasets }, options: {
|
57
|
+
plugins: {
|
58
|
+
title: title,
|
59
|
+
legend: legend,
|
60
|
+
datalabels: datalabels,
|
61
|
+
},
|
62
|
+
}, className: cn(PieVariants({ scaling: scaling }), className) }, rest)));
|
57
63
|
};
|
64
|
+
PieChart.displayName = 'PieChart';
|
58
65
|
export default PieChart;
|
@@ -45,7 +45,7 @@ export var Root = React.forwardRef(function (_a, ref) {
|
|
45
45
|
});
|
46
46
|
Root.displayName = 'Select.Root';
|
47
47
|
export var Trigger = React.forwardRef(function (_a, forwardedRef) {
|
48
|
-
var _b = _a.appearance, appearance = _b === void 0 ? '
|
48
|
+
var _b = _a.appearance, appearance = _b === void 0 ? 'classic' : _b, color = _a.color, size = _a.size, radius = _a.radius, children = _a.children, className = _a.className, props = __rest(_a, ["appearance", "color", "size", "radius", "children", "className"]);
|
49
49
|
if (!color)
|
50
50
|
color = 'red';
|
51
51
|
return (_jsx(SelectTheme.Trigger, __assign({ ref: forwardedRef, variant: appearance, radius: radius, className: cn(selectVariants({ radius: radius }), selectAppearanceStyle(appearance, color), className) }, props, { children: children })));
|
@@ -65,7 +65,7 @@ export var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {
|
|
65
65
|
sizeTheme = '1';
|
66
66
|
if (size === 'large')
|
67
67
|
sizeTheme = '3';
|
68
|
-
return (_jsx(Theme, { className: "flex", accentColor: color, hasBackground: false, children: _jsxs(Text, { as: "label", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: radius, size: sizeTheme, color: color, className: cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className) })), children] }) }));
|
68
|
+
return (_jsx(Theme, { className: "flex", accentColor: color, hasBackground: false, children: _jsxs(Text, { as: "label", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: radius, size: sizeTheme, color: color, className: cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className), "aria-label": "Switch", "aria-labelledby": "Switch" })), children] }) }));
|
69
69
|
});
|
70
70
|
ToggleSwitch.displayName = 'ToggleSwitch';
|
71
71
|
export default ToggleSwitch;
|
@@ -11,7 +11,7 @@ export interface TooltipProps extends React.InputHTMLAttributes<HTMLInputElement
|
|
11
11
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
12
12
|
}
|
13
13
|
declare const tooltipVariants: (props?: ({
|
14
|
-
scaling?: number | typeof Symbol.iterator | "concat" | "indexOf" | "lastIndexOf" | "slice" | "length" | "includes" | "at" | "toLocaleString" |
|
14
|
+
scaling?: number | typeof Symbol.iterator | typeof Symbol.unscopables | "concat" | "indexOf" | "lastIndexOf" | "slice" | "length" | "includes" | "at" | "toLocaleString" | "map" | "filter" | "fill" | "values" | "toString" | "pop" | "push" | "join" | "reverse" | "shift" | "sort" | "splice" | "unshift" | "every" | "some" | "forEach" | "reduce" | "reduceRight" | "find" | "findIndex" | "copyWithin" | "entries" | "keys" | "flatMap" | "flat" | "findLast" | "findLastIndex" | "toReversed" | "toSorted" | "toSpliced" | "with" | null | undefined;
|
15
15
|
weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
|
16
16
|
radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
|
17
17
|
color?: string | null | undefined;
|
package/dist/lib/constants.d.ts
CHANGED
@@ -173,6 +173,52 @@ export declare const commonArgTypes: {
|
|
173
173
|
summary: string;
|
174
174
|
};
|
175
175
|
};
|
176
|
+
isColorMixed: {
|
177
|
+
table: {
|
178
|
+
category: string;
|
179
|
+
type: {
|
180
|
+
summary: string;
|
181
|
+
};
|
182
|
+
};
|
183
|
+
description: string;
|
184
|
+
control: string;
|
185
|
+
defaultValue: {
|
186
|
+
summary: string;
|
187
|
+
};
|
188
|
+
};
|
189
|
+
chartAppearance: {
|
190
|
+
table: {
|
191
|
+
category: string;
|
192
|
+
type: {
|
193
|
+
summary: string;
|
194
|
+
};
|
195
|
+
};
|
196
|
+
options: string[];
|
197
|
+
control: string;
|
198
|
+
defaultValue: {
|
199
|
+
summary: string;
|
200
|
+
};
|
201
|
+
description: string;
|
202
|
+
};
|
203
|
+
datasets: {
|
204
|
+
name: string;
|
205
|
+
description: string;
|
206
|
+
table: {
|
207
|
+
category: string;
|
208
|
+
type: {
|
209
|
+
summary: string;
|
210
|
+
};
|
211
|
+
};
|
212
|
+
};
|
213
|
+
labels: {
|
214
|
+
description: string;
|
215
|
+
table: {
|
216
|
+
category: string;
|
217
|
+
type: {
|
218
|
+
summary: string;
|
219
|
+
};
|
220
|
+
};
|
221
|
+
};
|
176
222
|
};
|
177
223
|
export declare const chartColorStyle: () => Record<string, string>;
|
178
224
|
export declare const chartTitleArgTypes: {
|
@@ -381,6 +427,37 @@ export declare const chartLegendArgTypes: {
|
|
381
427
|
summary: string;
|
382
428
|
};
|
383
429
|
};
|
430
|
+
'legend.labels.usePointStyle': {
|
431
|
+
description: string;
|
432
|
+
table: {
|
433
|
+
category: string;
|
434
|
+
type: {
|
435
|
+
summary: string;
|
436
|
+
};
|
437
|
+
};
|
438
|
+
control: {
|
439
|
+
type: string;
|
440
|
+
};
|
441
|
+
defaultValue: {
|
442
|
+
summary: string;
|
443
|
+
};
|
444
|
+
};
|
445
|
+
'legend.labels.pointStyle': {
|
446
|
+
description: string;
|
447
|
+
table: {
|
448
|
+
category: string;
|
449
|
+
type: {
|
450
|
+
summary: string;
|
451
|
+
};
|
452
|
+
};
|
453
|
+
control: {
|
454
|
+
type: string;
|
455
|
+
};
|
456
|
+
options: (string | boolean)[];
|
457
|
+
defaultValue: {
|
458
|
+
summary: string;
|
459
|
+
};
|
460
|
+
};
|
384
461
|
};
|
385
462
|
export declare const chartDatasetsArgsTypes: {
|
386
463
|
'datasets[n].data': {
|
@@ -491,6 +568,80 @@ export declare const chartDatasetsArgsTypes: {
|
|
491
568
|
};
|
492
569
|
};
|
493
570
|
};
|
571
|
+
'datasets[n].borderDash': {
|
572
|
+
description: string;
|
573
|
+
table: {
|
574
|
+
category: string;
|
575
|
+
type: {
|
576
|
+
summary: string;
|
577
|
+
};
|
578
|
+
};
|
579
|
+
};
|
580
|
+
'datasets[n].borderDashOffset': {
|
581
|
+
description: string;
|
582
|
+
table: {
|
583
|
+
category: string;
|
584
|
+
type: {
|
585
|
+
summary: string;
|
586
|
+
};
|
587
|
+
};
|
588
|
+
};
|
589
|
+
'datasets[n].offset': {
|
590
|
+
description: string;
|
591
|
+
table: {
|
592
|
+
category: string;
|
593
|
+
type: {
|
594
|
+
summary: string;
|
595
|
+
};
|
596
|
+
};
|
597
|
+
};
|
598
|
+
'datasets[n].weight': {
|
599
|
+
description: string;
|
600
|
+
table: {
|
601
|
+
category: string;
|
602
|
+
type: {
|
603
|
+
summary: string;
|
604
|
+
};
|
605
|
+
};
|
606
|
+
};
|
607
|
+
};
|
608
|
+
export declare const chartDatalabelsArgsTypes: {
|
609
|
+
datalabels: {
|
610
|
+
table: {
|
611
|
+
disable: boolean;
|
612
|
+
};
|
613
|
+
};
|
614
|
+
'datalabels.display': {
|
615
|
+
description: string;
|
616
|
+
table: {
|
617
|
+
category: string;
|
618
|
+
type: {
|
619
|
+
summary: string;
|
620
|
+
};
|
621
|
+
};
|
622
|
+
control: {
|
623
|
+
type: string;
|
624
|
+
};
|
625
|
+
defaultValue: {
|
626
|
+
summary: boolean;
|
627
|
+
};
|
628
|
+
};
|
629
|
+
'datalabels.color': {
|
630
|
+
description: string;
|
631
|
+
table: {
|
632
|
+
category: string;
|
633
|
+
type: {
|
634
|
+
summary: string;
|
635
|
+
};
|
636
|
+
};
|
637
|
+
control: {
|
638
|
+
type: string;
|
639
|
+
};
|
640
|
+
options: string[];
|
641
|
+
defaultValue: {
|
642
|
+
summary: string;
|
643
|
+
};
|
644
|
+
};
|
494
645
|
};
|
495
646
|
export declare const blackText: string[];
|
496
647
|
export declare const primaryColorStyle: () => Record<string, string>;
|