@lotte-innovate/ui-component-test 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +163 -163
- package/dist/Typography/Header/index.d.ts +1 -1
- package/dist/Typography/index.d.ts +2 -2
- package/dist/Typography/index.js +3 -3
- package/dist/app/layout.d.ts +7 -0
- package/dist/app/layout.js +12 -0
- package/dist/app/page.d.ts +1 -0
- package/dist/app/page.js +25 -0
- package/dist/app/template/badgeTemplate.d.ts +11 -0
- package/dist/app/template/badgeTemplate.js +11 -0
- package/dist/app/template/buttonTemplate.d.ts +11 -0
- package/dist/app/template/buttonTemplate.js +11 -0
- package/dist/app/template/colorPicker.d.ts +6 -0
- package/dist/app/template/colorPicker.js +14 -0
- package/dist/app/template/textTemplate.d.ts +10 -0
- package/dist/app/template/textTemplate.js +23 -0
- package/dist/app/template/theme.d.ts +12 -0
- package/dist/app/template/theme.js +12 -0
- package/dist/color/alpha.d.ts +784 -0
- package/dist/color/alpha.js +784 -0
- package/dist/color/constants.d.ts +20 -0
- package/dist/color/constants.js +200 -0
- package/dist/color/dark.d.ts +392 -0
- package/dist/color/dark.js +392 -0
- package/dist/color/krdsColors.d.ts +309 -0
- package/dist/color/krdsColors.js +309 -0
- package/dist/color/light.d.ts +392 -0
- package/dist/color/light.js +393 -0
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/constants.d.ts +185 -0
- package/dist/constants.js +569 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3 -0
- package/dist/stories/Welcome.d.ts +2 -0
- package/dist/stories/Welcome.js +30 -0
- package/dist/stories/accordion/Accordion.stories.d.ts +71 -0
- package/dist/stories/accordion/Accordion.stories.js +61 -0
- package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +107 -0
- package/dist/stories/alert-dialog/AlertDialog.stories.js +60 -0
- package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +68 -0
- package/dist/stories/aspect-ratio/AspectRatio.stories.js +78 -0
- package/dist/stories/avatar/Avatar.stories.d.ts +127 -0
- package/dist/stories/avatar/Avatar.stories.js +94 -0
- package/dist/stories/badge/Badge.stories.d.ts +133 -0
- package/dist/stories/badge/Badge.stories.js +86 -0
- package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +102 -0
- package/dist/stories/bubble-chart/BubbleChart.stories.js +168 -0
- package/dist/stories/button/Button.stories.d.ts +148 -0
- package/dist/stories/button/Button.stories.js +65 -0
- package/dist/stories/button/IconButton.stories.d.ts +125 -0
- package/dist/stories/button/IconButton.stories.js +80 -0
- package/dist/stories/callout/Callout.stories.d.ts +129 -0
- package/dist/stories/callout/Callout.stories.js +104 -0
- package/dist/stories/card/Card.stories.d.ts +100 -0
- package/dist/stories/card/Card.stories.js +84 -0
- package/dist/stories/checkbox/Checkbox.stories.d.ts +147 -0
- package/dist/stories/checkbox/Checkbox.stories.js +110 -0
- package/dist/stories/checkbox/CheckboxCard.stories.d.ts +129 -0
- package/dist/stories/checkbox/CheckboxCard.stories.js +90 -0
- package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +91 -0
- package/dist/stories/checkbox/CheckboxGroup.stories.js +72 -0
- package/dist/stories/context-menu/ContextMenu.stories.d.ts +113 -0
- package/dist/stories/context-menu/ContextMenu.stories.js +86 -0
- package/dist/stories/data-list/DataList.stories.d.ts +97 -0
- package/dist/stories/data-list/DataList.stories.js +87 -0
- package/dist/{components/Input/Input.stories.d.ts → stories/dialog/Dialog.stories.d.ts} +39 -28
- package/dist/stories/dialog/Dialog.stories.js +59 -0
- package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +180 -0
- package/dist/stories/doughnut-chart/DoughnutChart.stories.js +228 -0
- package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +112 -0
- package/dist/stories/dropdown-menu/DropdownMenu.stories.js +75 -0
- package/dist/stories/header/Header.stories.d.ts +112 -0
- package/dist/stories/header/Header.stories.js +97 -0
- package/dist/stories/hover-card/HoverCard.stories.d.ts +107 -0
- package/dist/stories/hover-card/HoverCard.stories.js +71 -0
- package/dist/stories/inset/Inset.stories.d.ts +58 -0
- package/dist/stories/inset/Inset.stories.js +64 -0
- package/dist/stories/label/Label.stories.d.ts +94 -0
- package/dist/stories/label/Label.stories.js +91 -0
- package/dist/stories/menubar/Menubar.stories.d.ts +119 -0
- package/dist/stories/menubar/Menubar.stories.js +98 -0
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +385 -0
- package/dist/stories/navigation-menu/NavigationMenu.stories.js +79 -0
- package/dist/stories/pie-chart/PieChart.stories.d.ts +185 -0
- package/dist/stories/pie-chart/PieChart.stories.js +281 -0
- package/dist/stories/popover/Popover.stories.d.ts +78 -0
- package/dist/stories/popover/Popover.stories.js +74 -0
- package/dist/stories/progress/Progress.stories.d.ts +113 -0
- package/dist/stories/progress/Progress.stories.js +77 -0
- package/dist/stories/radar-chart/RadarChart.stories.d.ts +110 -0
- package/dist/stories/radar-chart/RadarChart.stories.js +201 -0
- package/dist/stories/radio/Radio.stories.d.ts +108 -0
- package/dist/stories/radio/Radio.stories.js +84 -0
- package/dist/stories/radio/RadioCards.stories.d.ts +127 -0
- package/dist/stories/radio/RadioCards.stories.js +94 -0
- package/dist/stories/radio/RadioGroup.stories.d.ts +111 -0
- package/dist/stories/radio/RadioGroup.stories.js +88 -0
- package/dist/stories/scroll-area/ScrollArea.stories.d.ts +59 -0
- package/dist/stories/scroll-area/ScrollArea.stories.js +63 -0
- package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +97 -0
- package/dist/stories/segmented-control/SegmentedControl.stories.js +80 -0
- package/dist/stories/select/Select.stories.d.ts +116 -0
- package/dist/stories/select/Select.stories.js +88 -0
- package/dist/stories/separator/Separator.stories.d.ts +93 -0
- package/dist/stories/separator/Separator.stories.js +82 -0
- package/dist/stories/skeleton/Skeleton.stories.d.ts +88 -0
- package/dist/stories/skeleton/Skeleton.stories.js +92 -0
- package/dist/stories/slider/Slider.stories.d.ts +114 -0
- package/dist/stories/slider/Slider.stories.js +83 -0
- package/dist/stories/spinner/Spinner.stories.d.ts +83 -0
- package/dist/stories/spinner/Spinner.stories.js +87 -0
- package/dist/stories/switch/Switch.stories.d.ts +146 -0
- package/dist/stories/switch/Switch.stories.js +108 -0
- package/dist/stories/tab-nav/TabNav.stories.d.ts +55 -0
- package/dist/stories/tab-nav/TabNav.stories.js +59 -0
- package/dist/stories/table/Table.stories.d.ts +87 -0
- package/dist/stories/table/Table.stories.js +79 -0
- package/dist/stories/tabs/Tabs.stories.d.ts +55 -0
- package/dist/stories/tabs/Tabs.stories.js +59 -0
- package/dist/stories/text/Text.stories.d.ts +74 -0
- package/dist/stories/text/Text.stories.js +76 -0
- package/dist/stories/textArea/TextArea.stories.d.ts +117 -0
- package/dist/stories/textArea/TextArea.stories.js +96 -0
- package/dist/stories/textfield/TextField.stories.d.ts +116 -0
- package/dist/stories/textfield/TextField.stories.js +88 -0
- package/dist/stories/toast/Toast.stories.d.ts +138 -0
- package/dist/stories/toast/Toast.stories.js +104 -0
- package/dist/stories/toggle/Toggle.stories.d.ts +115 -0
- package/dist/stories/toggle/Toggle.stories.js +89 -0
- package/dist/stories/toggle/ToggleGroup.stories.d.ts +103 -0
- package/dist/stories/toggle/ToggleGroup.stories.js +94 -0
- package/dist/stories/tooltip/Tooltip.stories.d.ts +93 -0
- package/dist/stories/tooltip/Tooltip.stories.js +78 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +11 -0
- package/dist/types.js +1 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/utils.js +27 -0
- package/package.json +118 -120
- package/dist/components/Input/Input.stories.js +0 -74
- package/dist/components/Input/index.d.ts +0 -14
- package/dist/components/Input/index.js +0 -53
@@ -0,0 +1,91 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import { Label } from '../../components/Label/index';
|
25
|
+
import { commonArgTypes, scalingOptions } from '../../constants';
|
26
|
+
import { colorOptions } from 'color/constants';
|
27
|
+
var meta = {
|
28
|
+
title: 'Component/Label',
|
29
|
+
component: Label,
|
30
|
+
parameters: {
|
31
|
+
layout: 'centered',
|
32
|
+
themes: {
|
33
|
+
themeOverride: '',
|
34
|
+
},
|
35
|
+
docs: {
|
36
|
+
description: {
|
37
|
+
component: '컴포넌트 및 컨트롤 요소의 사용 목적을 알리기 위해 사용되는 설명적 텍스트',
|
38
|
+
},
|
39
|
+
},
|
40
|
+
},
|
41
|
+
tags: ['autodocs'],
|
42
|
+
argTypes: {
|
43
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'Label component 크기' }),
|
44
|
+
weight: {
|
45
|
+
table: {
|
46
|
+
category: 'Props',
|
47
|
+
type: { summary: ['regular', 'bold'].join(' | ') },
|
48
|
+
},
|
49
|
+
control: { type: 'select' },
|
50
|
+
options: ['regular', 'bold'],
|
51
|
+
defaultValue: { summary: 'regular' },
|
52
|
+
description: 'Label Component 폰트 두께',
|
53
|
+
},
|
54
|
+
color: {
|
55
|
+
table: {
|
56
|
+
category: 'Theme Props',
|
57
|
+
type: { summary: 'colorVariants' },
|
58
|
+
},
|
59
|
+
options: colorOptions,
|
60
|
+
control: { type: 'select' },
|
61
|
+
description: 'Label component 색상',
|
62
|
+
},
|
63
|
+
size: {
|
64
|
+
table: {
|
65
|
+
category: 'Props',
|
66
|
+
type: { summary: ['small', 'medium', 'large'].join(' | ') },
|
67
|
+
},
|
68
|
+
control: { type: 'select' },
|
69
|
+
options: ['small', 'medium', 'large'],
|
70
|
+
defaultValue: { summary: 'medium' },
|
71
|
+
description: 'Label component 크기',
|
72
|
+
},
|
73
|
+
},
|
74
|
+
};
|
75
|
+
export default meta;
|
76
|
+
export var Default = function (_a) {
|
77
|
+
var args = __rest(_a, []);
|
78
|
+
return _jsx(Label, __assign({}, args, { children: "Label component" }));
|
79
|
+
};
|
80
|
+
export var Scaling = function (_a) {
|
81
|
+
var args = __rest(_a, []);
|
82
|
+
return (_jsx("div", { className: "", children: scalingOptions.map(function (scaling, index) { return (_jsx("div", { className: "flex pt-3 items-center space-x-2", children: _jsx(Label, __assign({ scaling: scaling }, args, { children: "Label component" })) }, scaling)); }) }));
|
83
|
+
};
|
84
|
+
export var Size = function (_a) {
|
85
|
+
var args = __rest(_a, []);
|
86
|
+
return (_jsxs("div", { className: "flex flex-wrap items-center gap-[15px] px-5", children: [_jsx(Label, __assign({ size: 'small' }, args, { children: "Label component" })), _jsx(Label, __assign({ size: 'medium' }, args, { children: "Label component" })), _jsx(Label, __assign({ size: 'large' }, args, { children: "Label component" }))] }));
|
87
|
+
};
|
88
|
+
export var Weight = function (_a) {
|
89
|
+
var args = __rest(_a, []);
|
90
|
+
return (_jsx("div", { className: "", children: ['regular', 'bold'].map(function (weight, index) { return (_jsx("div", { className: "flex pt-3 items-center space-x-2", children: _jsx(Label, __assign({ weight: weight }, args, { children: "Label component" })) }, weight)); }) }));
|
91
|
+
};
|
@@ -0,0 +1,119 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const meta: {
|
3
|
+
title: string;
|
4
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-menubar").MenubarProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("components/Menubar").MenubarProps & import("react").RefAttributes<HTMLDivElement>>;
|
5
|
+
parameters: {
|
6
|
+
layout: string;
|
7
|
+
themes: {
|
8
|
+
themeOverride: string;
|
9
|
+
};
|
10
|
+
docs: {
|
11
|
+
description: {
|
12
|
+
component: string;
|
13
|
+
};
|
14
|
+
};
|
15
|
+
};
|
16
|
+
tags: string[];
|
17
|
+
argTypes: {
|
18
|
+
radius: {
|
19
|
+
description: string;
|
20
|
+
table: {
|
21
|
+
category: string;
|
22
|
+
type: {
|
23
|
+
summary: string;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
options: import("types").IRadius[];
|
27
|
+
control: {
|
28
|
+
type: string;
|
29
|
+
};
|
30
|
+
defaultValue: {
|
31
|
+
summary: string;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
scaling: {
|
35
|
+
description: string;
|
36
|
+
table: {
|
37
|
+
category: string;
|
38
|
+
type: {
|
39
|
+
summary: string;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
control: {
|
43
|
+
type: string;
|
44
|
+
};
|
45
|
+
options: import("types").IScaling[];
|
46
|
+
defaultValue: {
|
47
|
+
summary: string;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
size: {
|
51
|
+
table: {
|
52
|
+
category: string;
|
53
|
+
type: {
|
54
|
+
summary: string;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
options: import("types").ISize[];
|
58
|
+
description: string;
|
59
|
+
control: {
|
60
|
+
type: string;
|
61
|
+
};
|
62
|
+
defaultValue: {
|
63
|
+
summary: string;
|
64
|
+
};
|
65
|
+
};
|
66
|
+
color: {
|
67
|
+
description: string;
|
68
|
+
table: {
|
69
|
+
category: string;
|
70
|
+
type: {
|
71
|
+
summary: string;
|
72
|
+
};
|
73
|
+
};
|
74
|
+
options: import("types").IColor[];
|
75
|
+
control: {
|
76
|
+
type: string;
|
77
|
+
};
|
78
|
+
defaultValue: {
|
79
|
+
summary: string;
|
80
|
+
};
|
81
|
+
};
|
82
|
+
appearance: {
|
83
|
+
description: string;
|
84
|
+
table: {
|
85
|
+
category: string;
|
86
|
+
type: {
|
87
|
+
summary: string;
|
88
|
+
};
|
89
|
+
};
|
90
|
+
options: import("types").IAppearance[];
|
91
|
+
control: {
|
92
|
+
type: string;
|
93
|
+
};
|
94
|
+
defaultValue: {
|
95
|
+
summary: string;
|
96
|
+
};
|
97
|
+
};
|
98
|
+
itemAppearance: {
|
99
|
+
description: string;
|
100
|
+
table: {
|
101
|
+
category: string;
|
102
|
+
type: {
|
103
|
+
summary: string;
|
104
|
+
};
|
105
|
+
};
|
106
|
+
options: import("types").IAppearance[];
|
107
|
+
control: {
|
108
|
+
type: string;
|
109
|
+
};
|
110
|
+
defaultValue: {
|
111
|
+
summary: string;
|
112
|
+
};
|
113
|
+
};
|
114
|
+
};
|
115
|
+
};
|
116
|
+
export default meta;
|
117
|
+
export declare const Default: ({ ...args }: {
|
118
|
+
[x: string]: any;
|
119
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,98 @@
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
2
|
+
__assign = Object.assign || function(t) {
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
+
s = arguments[i];
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
+
t[p] = s[p];
|
7
|
+
}
|
8
|
+
return t;
|
9
|
+
};
|
10
|
+
return __assign.apply(this, arguments);
|
11
|
+
};
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
+
var t = {};
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
+
t[p] = s[p];
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
+
t[p[i]] = s[p[i]];
|
20
|
+
}
|
21
|
+
return t;
|
22
|
+
};
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
24
|
+
import { useState } from 'react';
|
25
|
+
import { appearanceOptions, commonArgTypes, sizeOptions } from '../../constants';
|
26
|
+
import { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarSub, MenubarSubTrigger, MenubarSubContent, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, } from 'components/Menubar';
|
27
|
+
var meta = {
|
28
|
+
title: 'Component/Menubar',
|
29
|
+
component: Menubar,
|
30
|
+
parameters: {
|
31
|
+
layout: 'centered',
|
32
|
+
themes: {
|
33
|
+
themeOverride: 'dark',
|
34
|
+
},
|
35
|
+
docs: {
|
36
|
+
description: {
|
37
|
+
component: '리스트 형태의 선택할 수 있는 항목들이 나열된 인터페이스 요소 컴포넌트',
|
38
|
+
},
|
39
|
+
},
|
40
|
+
},
|
41
|
+
tags: ['autodocs'],
|
42
|
+
argTypes: {
|
43
|
+
radius: __assign(__assign({}, commonArgTypes.radius), { description: 'Menubar border 둥굴기' }),
|
44
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'Menubar 비율' }),
|
45
|
+
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
46
|
+
category: 'Props',
|
47
|
+
type: {
|
48
|
+
summary: sizeOptions
|
49
|
+
.filter(function (option) { return option === 'small' || option === 'medium'; })
|
50
|
+
.join(' | '),
|
51
|
+
},
|
52
|
+
}, options: sizeOptions.filter(function (option) { return option === 'small' || option === 'medium'; }), description: 'Menubar 크기' }),
|
53
|
+
color: __assign(__assign({}, commonArgTypes.color), { description: 'Menubar 메인 색' }),
|
54
|
+
appearance: {
|
55
|
+
description: 'Menubar 상단 메뉴 스타일',
|
56
|
+
table: {
|
57
|
+
category: 'Props',
|
58
|
+
type: {
|
59
|
+
summary: appearanceOptions
|
60
|
+
.filter(function (option) { return option === 'solid' || option === 'ghost'; })
|
61
|
+
.join(' | '),
|
62
|
+
},
|
63
|
+
},
|
64
|
+
options: appearanceOptions.filter(function (option) { return option === 'solid' || option === 'ghost'; }),
|
65
|
+
control: { type: 'select' },
|
66
|
+
defaultValue: { summary: 'ghost' },
|
67
|
+
},
|
68
|
+
itemAppearance: {
|
69
|
+
description: 'Menubar 하위 아이템 스타일',
|
70
|
+
table: {
|
71
|
+
category: 'Props',
|
72
|
+
type: {
|
73
|
+
summary: appearanceOptions
|
74
|
+
.filter(function (option) { return option === 'solid' || option === 'ghost'; })
|
75
|
+
.join(' | '),
|
76
|
+
},
|
77
|
+
},
|
78
|
+
options: appearanceOptions.filter(function (option) { return option === 'solid' || option === 'ghost'; }),
|
79
|
+
control: { type: 'select' },
|
80
|
+
defaultValue: { summary: 'solid' },
|
81
|
+
},
|
82
|
+
},
|
83
|
+
};
|
84
|
+
export default meta;
|
85
|
+
export var Default = function (_a) {
|
86
|
+
var args = __rest(_a, []);
|
87
|
+
var CHECK_ITEMS = ['북마크 항상 보여주기', '전체 주소 보여주기'];
|
88
|
+
var RADIO_ITEMS = ['구글', '네이버', '인트라넷'];
|
89
|
+
var _b = useState([CHECK_ITEMS[0]]), checkedSelection = _b[0], setCheckedSelection = _b[1];
|
90
|
+
var _c = useState(RADIO_ITEMS[0]), radioSelection = _c[0], setRadioSelection = _c[1];
|
91
|
+
return (_jsxs(Menubar, __assign({}, args, { children: [_jsxs(MenubarMenu, { children: [_jsx(MenubarTrigger, { children: "\uD30C\uC77C" }), _jsxs(MenubarContent, { children: [_jsx(MenubarItem, { shortcut: "\u2318 T", children: "\uC0C8 \uD0ED" }), _jsx(MenubarItem, { shortcut: "\u2318 N", children: "\uC0C8 \uCC3D" }), _jsx(MenubarItem, { disabled: true, children: "\uC0AC\uC6A9\uBD88\uAC00" }), _jsx(MenubarSeparator, {}), _jsxs(MenubarSub, { children: [_jsx(MenubarSubTrigger, { children: "\uACF5\uC720\uD558\uAE30" }), _jsxs(MenubarSubContent, { children: [_jsx(MenubarItem, { children: "\uC774\uBA54\uC77C" }), _jsx(MenubarItem, { children: "\uBA54\uC2E0\uC800" })] })] })] })] }), _jsxs(MenubarMenu, { children: [_jsx(MenubarTrigger, { children: "\uBCF4\uAE30" }), _jsx(MenubarContent, { children: CHECK_ITEMS.map(function (item) { return (_jsx(MenubarCheckboxItem, { checked: checkedSelection.includes(item), onCheckedChange: function () {
|
92
|
+
return setCheckedSelection(function (current) {
|
93
|
+
return current.includes(item)
|
94
|
+
? current.filter(function (el) { return el !== item; })
|
95
|
+
: current.concat(item);
|
96
|
+
});
|
97
|
+
}, children: item }, item)); }) })] }), _jsxs(MenubarMenu, { children: [_jsx(MenubarTrigger, { children: "\uD504\uB85C\uD544" }), _jsx(MenubarContent, { children: _jsx(MenubarRadioGroup, { value: radioSelection, onValueChange: setRadioSelection, children: RADIO_ITEMS.map(function (item) { return (_jsx(MenubarRadioItem, { value: item, children: item }, item)); }) }) })] })] })));
|
98
|
+
};
|