@lotte-innovate/ui-component-test 0.1.34 → 0.1.35
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -5
- package/dist/globals.css +2 -2
- package/dist/lib/Typography/Text/index.js +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogAction.js +5 -5
- package/dist/lib/components/AlertDialog/AlertDialogCancel.js +5 -5
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +1 -1
- package/dist/lib/components/Avatar/index.d.ts +1 -0
- package/dist/lib/components/Avatar/index.js +2 -2
- package/dist/lib/components/Badge/index.js +1 -1
- package/dist/lib/components/BarChart/index.js +3 -0
- package/dist/lib/components/BubbleChart/index.d.ts +15 -22
- package/dist/lib/components/BubbleChart/index.js +34 -15
- package/dist/lib/components/Callout/CalloutIcon.d.ts +2 -1
- package/dist/lib/components/Callout/CalloutRoot.js +4 -4
- package/dist/lib/components/Callout/CalloutText.js +1 -1
- package/dist/lib/components/Callout/index.d.ts +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +2 -1
- package/dist/lib/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/lib/components/LineChart/index.js +3 -1
- package/dist/lib/components/Menubar/MenubarMenu.d.ts +4 -1
- package/dist/lib/components/Menubar/MenubarRoot.js +1 -1
- package/dist/lib/components/Menubar/MenubarTrigger.js +1 -1
- package/dist/lib/components/Menubar/index.d.ts +3 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -2
- package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuList.js +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +1 -1
- package/dist/lib/components/Progress/index.d.ts +1 -4
- package/dist/lib/components/Progress/index.js +2 -3
- package/dist/lib/components/RadarChart/index.d.ts +19 -26
- package/dist/lib/components/RadarChart/index.js +37 -15
- package/dist/lib/components/Radio/index.d.ts +0 -1
- package/dist/lib/components/Radio/index.js +3 -1
- package/dist/lib/components/RadioCards/RadioCardsItem.js +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +0 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +0 -1
- package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
- package/dist/lib/components/Toggle/ToggleWithText.js +1 -0
- package/dist/lib/components/ToggleSwitch/index.js +1 -1
- package/dist/lib/components/Tooltip/index.d.ts +0 -1
- package/dist/lib/components/Tooltip/index.js +3 -4
- package/dist/lib/components/index.d.ts +1 -0
- package/dist/lib/components/index.js +1 -0
- package/dist/lib/types.d.ts +12 -0
- package/dist/lib/utils/useDarkMode.d.ts +1 -0
- package/dist/lib/utils/useDarkMode.js +49 -0
- package/dist/tailwind.config.js +2 -5
- package/package.json +10 -10
@@ -25,9 +25,14 @@ import { cva } from 'class-variance-authority';
|
|
25
25
|
import { scalingVariants } from '../../../lib/constants';
|
26
26
|
import { Radar } from 'react-chartjs-2';
|
27
27
|
import { cn } from '../../../lib/utils/utils';
|
28
|
-
import { Chart as ChartJS, RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend, } from 'chart.js/auto';
|
29
|
-
import { chartColorList } from '../../../lib/color/constants';
|
30
|
-
|
28
|
+
import { Chart as ChartJS, RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend, plugins, } from 'chart.js/auto';
|
29
|
+
import { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';
|
30
|
+
import { useDarkMode } from '../../../lib/utils/useDarkMode';
|
31
|
+
import ChartDataLabels from 'chartjs-plugin-datalabels';
|
32
|
+
ChartJS.register(RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend, plugins, ChartDataLabels);
|
33
|
+
ChartJS.defaults.set('plugins.datalabels', {
|
34
|
+
display: false,
|
35
|
+
});
|
31
36
|
var radarChartVariants = cva('', {
|
32
37
|
variants: {
|
33
38
|
scaling: __assign({}, scalingVariants),
|
@@ -37,18 +42,35 @@ var radarChartVariants = cva('', {
|
|
37
42
|
},
|
38
43
|
});
|
39
44
|
export var RadarChart = function (_a) {
|
40
|
-
var className = _a.className,
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
45
|
+
var className = _a.className, title = _a.title, legend = _a.legend, datalabels = _a.datalabels, datasets = _a.datasets, labels = _a.labels, width = _a.width, height = _a.height, scaling = _a.scaling, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, props = __rest(_a, ["className", "title", "legend", "datalabels", "datasets", "labels", "width", "height", "scaling", "appearance", "isColorMixed"]);
|
46
|
+
var _d = useDarkMode(true), isDark = _d[0], defaultScales = _d[1];
|
47
|
+
var getChartColor = function (isColorMixed, appearance) {
|
48
|
+
if (appearance === 'solid') {
|
49
|
+
return isColorMixed ? chartColorList.mixed : chartColorList.sorting;
|
50
|
+
}
|
51
|
+
if (appearance === 'soft') {
|
52
|
+
return isColorMixed ? chartAlphaColorList.mixed : chartAlphaColorList.sorting;
|
53
|
+
}
|
54
|
+
};
|
55
|
+
datasets.forEach(function (dataset, index) {
|
56
|
+
var ChartColor = getChartColor(isColorMixed, appearance);
|
57
|
+
var BorderColor = getChartColor(isColorMixed, 'solid');
|
58
|
+
if (!ChartColor || !BorderColor)
|
59
|
+
return;
|
60
|
+
dataset.backgroundColor = ChartColor[index];
|
61
|
+
dataset.borderColor = BorderColor[index];
|
62
|
+
});
|
63
|
+
return (_jsx(Radar, __assign({ data: { labels: labels, datasets: datasets }, options: {
|
64
|
+
plugins: {
|
65
|
+
title: title,
|
66
|
+
legend: legend,
|
67
|
+
datalabels: datalabels,
|
68
|
+
},
|
69
|
+
scales: __assign({ r: {
|
70
|
+
suggestedMin: 50,
|
71
|
+
suggestedMax: 100,
|
72
|
+
} }, defaultScales.linescale),
|
73
|
+
}, className: cn(radarChartVariants({ scaling: scaling }), className), width: width, height: height }, props)));
|
52
74
|
};
|
53
75
|
RadarChart.displayName = 'RadarChart';
|
54
76
|
export default RadarChart;
|
@@ -3,7 +3,6 @@ import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { IScaling } from '../../../lib/types';
|
4
4
|
export interface RadioProps extends VariantProps<typeof radioVariants> {
|
5
5
|
size?: any;
|
6
|
-
color?: any;
|
7
6
|
scaling?: IScaling;
|
8
7
|
appearance?: 'classic' | 'surface' | 'soft';
|
9
8
|
}
|
@@ -39,7 +39,9 @@ var radioVariants = cva('font-normal', {
|
|
39
39
|
},
|
40
40
|
});
|
41
41
|
export var Radio = React.forwardRef(function (_a, ref) {
|
42
|
-
var value = _a.value, scaling = _a.scaling,
|
42
|
+
var value = _a.value, scaling = _a.scaling, color = _a.color, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, children = _a.children, className = _a.className, props = __rest(_a, ["value", "scaling", "color", "size", "appearance", "children", "className"]);
|
43
|
+
if (!color)
|
44
|
+
color = 'red';
|
43
45
|
var sizeTheme = '2';
|
44
46
|
if (size === 'small')
|
45
47
|
sizeTheme = '1';
|
@@ -26,7 +26,7 @@ import { cva } from 'class-variance-authority';
|
|
26
26
|
import { RadioCards as RadioCardsTheme } from '@radix-ui/themes';
|
27
27
|
import { cn } from '../../../lib/utils/utils';
|
28
28
|
import { RadioCardsContext } from './RadioCardsRoot';
|
29
|
-
export var radioCardsItemVariants = cva('bg-white dark:bg-slateDark-1 text-slateA-12 dark:text-slateDarkA-12 border-slateA-6 dark:border-slateDarkA-6 font-normal disabled:text-slateA-9 dark:disabled:text-slateDarkA-9', {
|
29
|
+
export var radioCardsItemVariants = cva('min-w-[200px] bg-white dark:bg-slateDark-1 text-slateA-12 dark:text-slateDarkA-12 border-slateA-6 dark:border-slateDarkA-6 font-normal disabled:text-slateA-9 dark:disabled:text-slateDarkA-9', {
|
30
30
|
variants: {
|
31
31
|
radius: {
|
32
32
|
none: 'rounded-none before:rounded-none after:rounded-none',
|
@@ -3,7 +3,6 @@ import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { RadioCards as RadioCardsTheme } from '@radix-ui/themes';
|
4
4
|
import { radioCardsItemVariants } from './RadioCardsItem';
|
5
5
|
export interface RadioCardsProps extends VariantProps<typeof radioCardsVariants>, VariantProps<typeof radioCardsItemVariants> {
|
6
|
-
color?: any;
|
7
6
|
appearance?: 'classic' | 'surface';
|
8
7
|
}
|
9
8
|
declare const radioCardsVariants: (props?: ({
|
@@ -3,7 +3,6 @@ import { RadioGroup as RadioGroupTheme } from '@radix-ui/themes';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
4
4
|
import { IScaling } from '../../../lib/types';
|
5
5
|
export interface RadioGroupProps extends VariantProps<typeof radioGroupVariants> {
|
6
|
-
color?: any;
|
7
6
|
scaling?: IScaling;
|
8
7
|
size?: 'small' | 'medium' | 'large';
|
9
8
|
appearance?: 'classic' | 'surface' | 'soft';
|
@@ -18,4 +18,4 @@ export declare const IconScaling: {
|
|
18
18
|
large: string;
|
19
19
|
};
|
20
20
|
export declare const ToggleWithText: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ToggleWithTextProps & React.RefAttributes<HTMLButtonElement>>;
|
21
|
-
export
|
21
|
+
export default ToggleWithText;
|
@@ -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), "aria-label": "Switch"
|
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" })), children] }) }));
|
69
69
|
});
|
70
70
|
ToggleSwitch.displayName = 'ToggleSwitch';
|
71
71
|
export default ToggleSwitch;
|
@@ -11,7 +11,6 @@ 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 | 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
14
|
weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
|
16
15
|
radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
|
17
16
|
color?: string | null | undefined;
|
@@ -26,17 +26,16 @@ import React from 'react';
|
|
26
26
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
27
27
|
import { cva } from 'class-variance-authority';
|
28
28
|
import { cn } from '../../../lib/utils/utils';
|
29
|
-
import { primaryColorStyle, radiusVariants,
|
29
|
+
import { primaryColorStyle, radiusVariants, weightVariants } from '../../../lib/constants';
|
30
30
|
var tooltipVariants = cva('bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]', {
|
31
31
|
variants: {
|
32
|
-
scaling: __assign({}, scalingOptions),
|
33
32
|
weight: __assign({}, weightVariants),
|
34
33
|
radius: __assign({}, radiusVariants['extra-large']),
|
35
34
|
color: primaryColorStyle(),
|
36
35
|
},
|
37
36
|
});
|
38
37
|
var Tooltip = React.forwardRef(function (_a, ref) {
|
39
|
-
var content = _a.content,
|
38
|
+
var content = _a.content, weight = _a.weight, color = _a.color, radius = _a.radius, children = _a.children, defaultOpen = _a.defaultOpen, open = _a.open, className = _a.className, side = _a.side, onOpenChange = _a.onOpenChange, props = __rest(_a, ["content", "weight", "color", "radius", "children", "defaultOpen", "open", "className", "side", "onOpenChange"]);
|
40
39
|
if (!side)
|
41
40
|
side = 'top';
|
42
41
|
if (radius === 'full')
|
@@ -44,7 +43,7 @@ var Tooltip = React.forwardRef(function (_a, ref) {
|
|
44
43
|
var arrowColor = color
|
45
44
|
? "fill-".concat(color, "-9 dark:fill-").concat(color, "Dark-9")
|
46
45
|
: 'fill-slate-12 dark:fill-slateDark-12';
|
47
|
-
return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: "cursor-pointer text-slate-12 dark:text-slateDark-12", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: "center" }, props, { side: side, className: cn('mr-2', tooltipVariants({
|
46
|
+
return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: "cursor-pointer text-slate-12 dark:text-slateDark-12", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: "center" }, props, { side: side, className: cn('mr-2', tooltipVariants({ weight: weight, radius: radius, color: color }), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));
|
48
47
|
});
|
49
48
|
Tooltip.displayName = 'Tooltip';
|
50
49
|
export default Tooltip;
|
@@ -38,6 +38,7 @@ export { default as TextArea } from './TextArea';
|
|
38
38
|
export { default as TextField } from './TextField';
|
39
39
|
export { default as Toast } from './Toast';
|
40
40
|
export { default as Toggle } from './Toggle';
|
41
|
+
export { default as ToggleWithText } from './Toggle/ToggleWithText';
|
41
42
|
export { default as ToggleGroup } from './ToggleGroup';
|
42
43
|
export { default as ToggleSwitch } from './ToggleSwitch';
|
43
44
|
export { default as Tooltip } from './Tooltip';
|
@@ -39,6 +39,7 @@ export { default as TextArea } from './TextArea';
|
|
39
39
|
export { default as TextField } from './TextField';
|
40
40
|
export { default as Toast } from './Toast';
|
41
41
|
export { default as Toggle } from './Toggle';
|
42
|
+
export { default as ToggleWithText } from './Toggle/ToggleWithText';
|
42
43
|
export { default as ToggleGroup } from './ToggleGroup';
|
43
44
|
export { default as ToggleSwitch } from './ToggleSwitch';
|
44
45
|
export { default as Tooltip } from './Tooltip';
|
package/dist/lib/types.d.ts
CHANGED
@@ -35,6 +35,7 @@ export type IChartLegend = {
|
|
35
35
|
textAlign?: 'left' | 'right' | 'center';
|
36
36
|
color?: string;
|
37
37
|
usePointStyle?: boolean;
|
38
|
+
pointStyle?: PointStyle;
|
38
39
|
pointStyleWidth?: number;
|
39
40
|
useBorderRadius?: boolean;
|
40
41
|
borderRadius?: number;
|
@@ -53,6 +54,7 @@ export type IChartDatasets = {
|
|
53
54
|
backgroundColor?: string[] | string;
|
54
55
|
borderColor?: string[] | string;
|
55
56
|
borderWidth?: number;
|
57
|
+
borderRadius?: number;
|
56
58
|
borderDash?: number[];
|
57
59
|
borderDashOffset?: number;
|
58
60
|
hoverBackgroundColor?: string;
|
@@ -62,8 +64,18 @@ export type IChartDatasets = {
|
|
62
64
|
offset?: number;
|
63
65
|
spacing?: number;
|
64
66
|
weight?: number;
|
67
|
+
order?: number;
|
68
|
+
hidden?: boolean;
|
65
69
|
};
|
66
70
|
export type IChartDataLabels = {
|
67
71
|
display?: boolean;
|
68
72
|
color?: string;
|
73
|
+
align?: 'start' | 'center' | 'end' | number;
|
74
|
+
backgroundColor?: string | ((context: any) => string);
|
75
|
+
borderColor?: string;
|
76
|
+
borderRadius?: number;
|
77
|
+
borderWidth?: number;
|
78
|
+
font?: object;
|
79
|
+
formatter?: (x: number) => number;
|
80
|
+
padding?: number;
|
69
81
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const useDarkMode: (isRAxes?: boolean) => any[];
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { slateA, slateDarkA } from '../../lib/color/alpha';
|
2
|
+
import { useEffect, useState } from 'react';
|
3
|
+
export var useDarkMode = function (isRAxes) {
|
4
|
+
if (isRAxes === void 0) { isRAxes = false; }
|
5
|
+
var lightmode = {};
|
6
|
+
var darkmode = {};
|
7
|
+
if (isRAxes === true) {
|
8
|
+
lightmode = {
|
9
|
+
r: { grid: { color: slateA[8] } },
|
10
|
+
};
|
11
|
+
darkmode = {
|
12
|
+
r: { grid: { color: slateDarkA[8] }, ticks: { backdropColor: 'rgba(0, 0, 0, 0)' } },
|
13
|
+
};
|
14
|
+
}
|
15
|
+
else {
|
16
|
+
lightmode = {
|
17
|
+
x: { grid: { color: slateA[8] } },
|
18
|
+
y: { grid: { color: slateA[8] } },
|
19
|
+
};
|
20
|
+
darkmode = {
|
21
|
+
x: { grid: { color: slateDarkA[8] } },
|
22
|
+
y: { grid: { color: slateDarkA[8] } },
|
23
|
+
};
|
24
|
+
}
|
25
|
+
var _a = useState(checkDarkMode()), isDarkMode = _a[0], setIsDarkMode = _a[1];
|
26
|
+
var _b = useState({
|
27
|
+
linescale: {},
|
28
|
+
}), defaultOptions = _b[0], setDefaultOptions = _b[1];
|
29
|
+
function checkDarkMode() {
|
30
|
+
return document.body.classList.contains('dark');
|
31
|
+
}
|
32
|
+
useEffect(function () {
|
33
|
+
setIsDarkMode(checkDarkMode());
|
34
|
+
setDefaultOptions({ linescale: !checkDarkMode() ? lightmode : darkmode });
|
35
|
+
var mutationObserver = new MutationObserver(function (mutations) {
|
36
|
+
mutations.forEach(function (mutation) {
|
37
|
+
if (mutation.attributeName === 'class') {
|
38
|
+
setIsDarkMode(checkDarkMode());
|
39
|
+
setDefaultOptions({ linescale: !checkDarkMode() ? lightmode : darkmode });
|
40
|
+
}
|
41
|
+
});
|
42
|
+
});
|
43
|
+
mutationObserver.observe(document.body, { attributes: true });
|
44
|
+
return function () {
|
45
|
+
mutationObserver.disconnect();
|
46
|
+
};
|
47
|
+
}, []);
|
48
|
+
return [isDarkMode, defaultOptions];
|
49
|
+
};
|
package/dist/tailwind.config.js
CHANGED
@@ -27,16 +27,14 @@ var darkClasses = [];
|
|
27
27
|
var colorScale = Array.from({ length: 12 }, function (_, i) { return (i + 1).toString(); });
|
28
28
|
var allColorOptions = [colorOptions, alphaColorOptions];
|
29
29
|
var generateClasses = function (colorList, colorScale) {
|
30
|
-
var classPrefixes = ['
|
30
|
+
var classPrefixes = ['fill', 'border', 'bg', 'text'];
|
31
31
|
return colorList.flatMap(function (color) {
|
32
32
|
return colorScale.flatMap(function (scale) { return classPrefixes.map(function (prefix) { return "".concat(prefix, "-").concat(color, "-").concat(scale); }); });
|
33
33
|
});
|
34
34
|
};
|
35
35
|
var generateDarkClasses = function (colorList, colorScale) {
|
36
36
|
var classPrefixes = [
|
37
|
-
'dark:accent',
|
38
37
|
'dark:fill',
|
39
|
-
'dark:outline',
|
40
38
|
'dark:border',
|
41
39
|
'dark:bg',
|
42
40
|
'dark:text',
|
@@ -46,7 +44,6 @@ var generateDarkClasses = function (colorList, colorScale) {
|
|
46
44
|
'dark:active:bg',
|
47
45
|
'dark:active:border',
|
48
46
|
'dark:active:text',
|
49
|
-
'dark:before:checked:bg',
|
50
47
|
'dark:data-[state=on]:bg',
|
51
48
|
'dark:data-[state=open]:bg',
|
52
49
|
'dark:data-[state=on]:text',
|
@@ -69,7 +66,7 @@ var config = {
|
|
69
66
|
'./src/stories/**/*.{js,ts,jsx,tsx,mdx,zip}',
|
70
67
|
'./src/**/*.{js,ts,jsx,tsx,mdx,zip}',
|
71
68
|
],
|
72
|
-
safelist: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(
|
69
|
+
safelist: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], classes, true), classes.map(function (cls) { return "hover:".concat(cls); }), true), classes.map(function (cls) { return "active:".concat(cls); }), true), classes.map(function (cls) { return "before:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=checked]:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=unchecked]:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=on]:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=open]:".concat(cls); }), true), darkClasses, true),
|
73
70
|
theme: {
|
74
71
|
extend: {
|
75
72
|
fontFamily: {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lotte-innovate/ui-component-test",
|
3
3
|
"description": "Lotte UI Library",
|
4
|
-
"version": "0.1.
|
4
|
+
"version": "0.1.35",
|
5
5
|
"private": false,
|
6
6
|
"type": "module",
|
7
7
|
"files": [
|
@@ -76,8 +76,8 @@
|
|
76
76
|
"@radix-ui/themes": "^3.1.1",
|
77
77
|
"@stitches/core": "^1.2.8",
|
78
78
|
"@stitches/react": "^1.2.8",
|
79
|
-
"@storybook/addon-a11y": "^8.
|
80
|
-
"@storybook/
|
79
|
+
"@storybook/addon-a11y": "^8.3.5",
|
80
|
+
"@storybook/manager-api": "^8.3.5",
|
81
81
|
"chart.js": "^4.4.4",
|
82
82
|
"chartjs-plugin-datalabels": "^2.2.0",
|
83
83
|
"class-variance-authority": "^0.7.0",
|
@@ -102,14 +102,14 @@
|
|
102
102
|
"@babel/preset-react": "^7.24.7",
|
103
103
|
"@babel/preset-typescript": "^7.24.7",
|
104
104
|
"@chromatic-com/storybook": "^1.2.25",
|
105
|
-
"@storybook/addon-essentials": "^8.
|
106
|
-
"@storybook/addon-interactions": "^8.
|
105
|
+
"@storybook/addon-essentials": "^8.3.5",
|
106
|
+
"@storybook/addon-interactions": "^8.3.5",
|
107
107
|
"@storybook/addon-links": "^8.0.4",
|
108
108
|
"@storybook/addon-styling-webpack": "^1.0.0",
|
109
|
-
"@storybook/blocks": "^8.
|
110
|
-
"@storybook/nextjs": "^8.
|
111
|
-
"@storybook/react": "^8.
|
112
|
-
"@storybook/test": "^8.
|
109
|
+
"@storybook/blocks": "^8.3.5",
|
110
|
+
"@storybook/nextjs": "^8.3.5",
|
111
|
+
"@storybook/react": "^8.3.5",
|
112
|
+
"@storybook/test": "^8.3.5",
|
113
113
|
"@storybook/theming": "^8.2.4",
|
114
114
|
"@types/node": "^20",
|
115
115
|
"@types/react": "^18",
|
@@ -123,7 +123,7 @@
|
|
123
123
|
"prettier": "^3.3.3",
|
124
124
|
"prettier-plugin-tailwindcss": "^0.6.6",
|
125
125
|
"rimraf": "^6.0.1",
|
126
|
-
"storybook": "^8.
|
126
|
+
"storybook": "^8.3.5",
|
127
127
|
"tailwindcss": "^3.3.0",
|
128
128
|
"tsc-alias": "^1.8.10",
|
129
129
|
"typescript": "^5"
|