@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,87 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const meta: {
|
3
|
+
title: string;
|
4
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("../../components/Table/index").TableProps & 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
|
+
scaling: {
|
19
|
+
description: string;
|
20
|
+
table: {
|
21
|
+
category: string;
|
22
|
+
type: {
|
23
|
+
summary: string;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
control: {
|
27
|
+
type: string;
|
28
|
+
};
|
29
|
+
options: import("types").IScaling[];
|
30
|
+
defaultValue: {
|
31
|
+
summary: string;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
radius: {
|
35
|
+
table: {
|
36
|
+
category: string;
|
37
|
+
type: {
|
38
|
+
summary: string;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
options: string[];
|
42
|
+
control: {
|
43
|
+
type: string;
|
44
|
+
};
|
45
|
+
defaultValue: {
|
46
|
+
summary: string;
|
47
|
+
};
|
48
|
+
description: string;
|
49
|
+
};
|
50
|
+
size: {
|
51
|
+
table: {
|
52
|
+
category: string;
|
53
|
+
type: {
|
54
|
+
summary: string;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
control: {
|
58
|
+
type: string;
|
59
|
+
};
|
60
|
+
options: string[];
|
61
|
+
defaultValue: {
|
62
|
+
summary: string;
|
63
|
+
};
|
64
|
+
description: string;
|
65
|
+
};
|
66
|
+
appearance: {
|
67
|
+
table: {
|
68
|
+
category: string;
|
69
|
+
type: {
|
70
|
+
summary: string;
|
71
|
+
};
|
72
|
+
};
|
73
|
+
control: {
|
74
|
+
type: string;
|
75
|
+
};
|
76
|
+
defaultValue: {
|
77
|
+
summary: string;
|
78
|
+
};
|
79
|
+
description: string;
|
80
|
+
options: string[];
|
81
|
+
};
|
82
|
+
};
|
83
|
+
};
|
84
|
+
export default meta;
|
85
|
+
export declare const Default: ({ ...args }: {
|
86
|
+
[x: string]: any;
|
87
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,79 @@
|
|
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 { Table, TableHeader, TableRow, TableColumnHeaderCell, TableBody, TableRowHeaderCell, TableCell, } from '../../components/Table/index';
|
25
|
+
import { commonArgTypes } from '../../constants';
|
26
|
+
var meta = {
|
27
|
+
title: 'Component/Table',
|
28
|
+
component: Table,
|
29
|
+
parameters: {
|
30
|
+
layout: 'centered',
|
31
|
+
themes: {
|
32
|
+
themeOverride: 'dark',
|
33
|
+
},
|
34
|
+
docs: {
|
35
|
+
description: {
|
36
|
+
component: '',
|
37
|
+
},
|
38
|
+
},
|
39
|
+
},
|
40
|
+
tags: ['autodocs'],
|
41
|
+
argTypes: {
|
42
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'Table 컴포넌트 가로길이' }),
|
43
|
+
radius: {
|
44
|
+
table: {
|
45
|
+
category: 'Theme Props',
|
46
|
+
type: { summary: ['none', 'small', 'medium', 'large'].join(' | ') },
|
47
|
+
},
|
48
|
+
options: ['none', 'small', 'medium', 'large'],
|
49
|
+
control: { type: 'select' },
|
50
|
+
defaultValue: { summary: 'medium' },
|
51
|
+
description: 'Table Component 둥글기',
|
52
|
+
},
|
53
|
+
size: {
|
54
|
+
table: {
|
55
|
+
category: 'Props',
|
56
|
+
type: { summary: ['small', 'medium', 'large'].join(' | ') },
|
57
|
+
},
|
58
|
+
control: { type: 'select' },
|
59
|
+
options: ['small', 'medium', 'large'],
|
60
|
+
defaultValue: { summary: 'medium' },
|
61
|
+
description: 'Table Component 크기',
|
62
|
+
},
|
63
|
+
appearance: {
|
64
|
+
table: {
|
65
|
+
category: 'Props',
|
66
|
+
type: { summary: ['ghost', 'surface'].join(' | ') },
|
67
|
+
},
|
68
|
+
control: { type: 'select' },
|
69
|
+
defaultValue: { summary: 'ghost' },
|
70
|
+
description: 'Table Component 스타일',
|
71
|
+
options: ['ghost', 'surface'],
|
72
|
+
},
|
73
|
+
},
|
74
|
+
};
|
75
|
+
export default meta;
|
76
|
+
export var Default = function (_a) {
|
77
|
+
var args = __rest(_a, []);
|
78
|
+
return (_jsxs(Table, __assign({}, args, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableColumnHeaderCell, { children: "Full name" }), _jsx(TableColumnHeaderCell, { children: "Email" }), _jsx(TableColumnHeaderCell, { children: "Group" })] }) }), _jsxs(TableBody, { children: [_jsxs(TableRow, { children: [_jsx(TableRowHeaderCell, { children: "Danilo Sousa" }), _jsx(TableCell, { children: "danilo@examplecom" }), _jsx(TableCell, { children: "Developer" })] }), _jsxs(TableRow, { children: [_jsx(TableRowHeaderCell, { children: "Zahra Ambessa" }), _jsx(TableCell, { children: "zahra@examplecom" }), _jsx(TableCell, { children: "Admin" })] }), _jsxs(TableRow, { children: [_jsx(TableRowHeaderCell, { children: "Jasper Eriksson" }), _jsx(TableCell, { children: "jasper@examplecom" }), _jsx(TableCell, { children: "Developer" })] })] })] })));
|
79
|
+
};
|
@@ -0,0 +1,55 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const meta: {
|
3
|
+
title: string;
|
4
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/tabs").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("../../components/Tabs/index").TabsProps & 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
|
+
color: {
|
19
|
+
description: string;
|
20
|
+
table: {
|
21
|
+
category: string;
|
22
|
+
type: {
|
23
|
+
summary: string;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
options: import("types").IColor[];
|
27
|
+
control: {
|
28
|
+
type: string;
|
29
|
+
};
|
30
|
+
defaultValue: {
|
31
|
+
summary: string;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
size: {
|
35
|
+
table: {
|
36
|
+
category: string;
|
37
|
+
type: {
|
38
|
+
summary: string;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
control: {
|
42
|
+
type: string;
|
43
|
+
};
|
44
|
+
options: string[];
|
45
|
+
defaultValue: {
|
46
|
+
summary: string;
|
47
|
+
};
|
48
|
+
description: string;
|
49
|
+
};
|
50
|
+
};
|
51
|
+
};
|
52
|
+
export default meta;
|
53
|
+
export declare const Default: ({ ...args }: {
|
54
|
+
[x: string]: any;
|
55
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,59 @@
|
|
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 { Tabs, TabsList, TabsTrigger, TabsContent } from '../../components/Tabs/index';
|
25
|
+
import { commonArgTypes } from '../../constants';
|
26
|
+
var meta = {
|
27
|
+
title: 'Component/Tabs',
|
28
|
+
component: Tabs,
|
29
|
+
parameters: {
|
30
|
+
layout: 'centered',
|
31
|
+
themes: {
|
32
|
+
themeOverride: 'dark',
|
33
|
+
},
|
34
|
+
docs: {
|
35
|
+
description: {
|
36
|
+
component: '관련성 있는 콘텐츠들의 집합으로, 하나를 활성화하여 표시',
|
37
|
+
},
|
38
|
+
},
|
39
|
+
},
|
40
|
+
tags: ['autodocs'],
|
41
|
+
argTypes: {
|
42
|
+
color: __assign(__assign({}, commonArgTypes.color), { description: 'Tabs component 색상' }),
|
43
|
+
size: {
|
44
|
+
table: {
|
45
|
+
category: 'Props',
|
46
|
+
type: { summary: ['small', 'medium'].join(' | ') },
|
47
|
+
},
|
48
|
+
control: { type: 'select' },
|
49
|
+
options: ['small', 'medium'],
|
50
|
+
defaultValue: { summary: 'medium' },
|
51
|
+
description: 'Tabs component 크기',
|
52
|
+
},
|
53
|
+
},
|
54
|
+
};
|
55
|
+
export default meta;
|
56
|
+
export var Default = function (_a) {
|
57
|
+
var args = __rest(_a, []);
|
58
|
+
return (_jsxs(Tabs, __assign({ defaultValue: "account" }, args, { children: [_jsxs(TabsList, __assign({}, args, { children: [_jsx(TabsTrigger, { value: "account", children: "Account" }), _jsx(TabsTrigger, { value: "documents", children: "Documents" }), _jsx(TabsTrigger, { value: "settings", children: "Settings" })] })), _jsx(TabsContent, { value: "account", children: _jsx("div", { children: "Make changes to your account" }) }), _jsx(TabsContent, { value: "documents", children: _jsx("div", { children: "Access and update your documents" }) }), _jsx(TabsContent, { value: "settings", children: _jsx("div", { children: "Edit your profile" }) })] })));
|
59
|
+
};
|
@@ -0,0 +1,74 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { IWeight, ITypoSize } from '../../types';
|
3
|
+
type ITextWeight = IWeight | 'light';
|
4
|
+
declare const meta: {
|
5
|
+
title: string;
|
6
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("../../Typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>;
|
7
|
+
tags: string[];
|
8
|
+
argTypes: {
|
9
|
+
size: {
|
10
|
+
description: string;
|
11
|
+
table: {
|
12
|
+
category: string;
|
13
|
+
type: {
|
14
|
+
summary: string;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
control: {
|
18
|
+
type: string;
|
19
|
+
};
|
20
|
+
options: ITypoSize[];
|
21
|
+
defaultValue: {
|
22
|
+
summary: string;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
weight: {
|
26
|
+
table: {
|
27
|
+
category: string;
|
28
|
+
type: {
|
29
|
+
summary: string;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
options: ITextWeight[];
|
33
|
+
control: {
|
34
|
+
type: string;
|
35
|
+
};
|
36
|
+
defaultValue: {
|
37
|
+
summary: string;
|
38
|
+
};
|
39
|
+
description: string;
|
40
|
+
};
|
41
|
+
color: {
|
42
|
+
description: string;
|
43
|
+
defaultValue: {
|
44
|
+
summary: string;
|
45
|
+
};
|
46
|
+
table: {
|
47
|
+
category: string;
|
48
|
+
type: {
|
49
|
+
summary: string;
|
50
|
+
};
|
51
|
+
};
|
52
|
+
options: import("../../types").IColor[];
|
53
|
+
control: {
|
54
|
+
type: string;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
};
|
58
|
+
};
|
59
|
+
export default meta;
|
60
|
+
export declare const Default: ({ ...args }: {
|
61
|
+
[x: string]: any;
|
62
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
63
|
+
export declare const Weight: ({ ...args }: {
|
64
|
+
[x: string]: any;
|
65
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
66
|
+
export declare const Color: ({ ...args }: {
|
67
|
+
[x: string]: any;
|
68
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
69
|
+
export declare const Size: ({ ...args }: {
|
70
|
+
[x: string]: any;
|
71
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
72
|
+
export declare const Align: ({ ...args }: {
|
73
|
+
[x: string]: any;
|
74
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,76 @@
|
|
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
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
24
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
25
|
+
if (ar || !(i in from)) {
|
26
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
27
|
+
ar[i] = from[i];
|
28
|
+
}
|
29
|
+
}
|
30
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
31
|
+
};
|
32
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
33
|
+
import { commonArgTypes, typoSizeOptions, weightOptions } from '../../constants';
|
34
|
+
import { Text } from '../../Typography/Text';
|
35
|
+
import { colorOptions } from 'color/constants';
|
36
|
+
var textWeightOption = __spreadArray(['light'], weightOptions, true);
|
37
|
+
var meta = {
|
38
|
+
title: 'Typography/Text',
|
39
|
+
component: Text,
|
40
|
+
tags: ['autodocs'],
|
41
|
+
argTypes: {
|
42
|
+
size: __assign(__assign({}, commonArgTypes.typoSize), { description: '폰트 크기' }),
|
43
|
+
weight: {
|
44
|
+
table: {
|
45
|
+
category: 'Theme Props',
|
46
|
+
type: { summary: textWeightOption.join(' | ') },
|
47
|
+
},
|
48
|
+
options: textWeightOption,
|
49
|
+
control: { type: 'select' },
|
50
|
+
defaultValue: { summary: 'medium' },
|
51
|
+
description: '폰트 두께',
|
52
|
+
},
|
53
|
+
color: __assign(__assign({}, commonArgTypes.color), { description: '폰트 색상', defaultValue: { summary: 'black' } }),
|
54
|
+
},
|
55
|
+
};
|
56
|
+
export default meta;
|
57
|
+
export var Default = function (_a) {
|
58
|
+
var args = __rest(_a, []);
|
59
|
+
return _jsx(Text, __assign({}, args, { children: "Text Component" }));
|
60
|
+
};
|
61
|
+
export var Weight = function (_a) {
|
62
|
+
var args = __rest(_a, []);
|
63
|
+
return (_jsx("div", { className: "flex items-center space-x-4", children: textWeightOption.map(function (weight, index) { return (_jsx(Text, __assign({}, args, { weight: weight, children: "Text Component" }), weight)); }) }));
|
64
|
+
};
|
65
|
+
export var Color = function (_a) {
|
66
|
+
var args = __rest(_a, []);
|
67
|
+
return (_jsx("div", { children: colorOptions.map(function (color) { return (_jsx(Text, __assign({}, args, { color: color, children: "Text Component" }), color)); }) }));
|
68
|
+
};
|
69
|
+
export var Size = function (_a) {
|
70
|
+
var args = __rest(_a, []);
|
71
|
+
return (_jsx("div", { className: "flex items-center space-x-4", children: typoSizeOptions.map(function (size) { return (_jsx(Text, __assign({}, args, { size: size, children: "Text Component" }), size)); }) }));
|
72
|
+
};
|
73
|
+
export var Align = function (_a) {
|
74
|
+
var args = __rest(_a, []);
|
75
|
+
return (_jsx("div", { children: ['left', 'center', 'right'].map(function (align) { return (_jsx(Text, __assign({}, args, { align: align, as: "div", children: "Text Component" }), align)); }) }));
|
76
|
+
};
|
@@ -0,0 +1,117 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { IScaling } from '../../types';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>, "ref"> & import("../../components/TextArea/index").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
themes: {
|
9
|
+
themeOverride: string;
|
10
|
+
};
|
11
|
+
docs: {
|
12
|
+
description: {
|
13
|
+
component: string;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
};
|
17
|
+
tags: string[];
|
18
|
+
argTypes: {
|
19
|
+
scaling: {
|
20
|
+
description: string;
|
21
|
+
table: {
|
22
|
+
category: string;
|
23
|
+
type: {
|
24
|
+
summary: string;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
control: {
|
28
|
+
type: string;
|
29
|
+
};
|
30
|
+
options: IScaling[];
|
31
|
+
defaultValue: {
|
32
|
+
summary: string;
|
33
|
+
};
|
34
|
+
};
|
35
|
+
radius: {
|
36
|
+
table: {
|
37
|
+
category: string;
|
38
|
+
type: {
|
39
|
+
summary: string;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
options: string[];
|
43
|
+
control: {
|
44
|
+
type: string;
|
45
|
+
};
|
46
|
+
defaultValue: {
|
47
|
+
summary: string;
|
48
|
+
};
|
49
|
+
description: string;
|
50
|
+
};
|
51
|
+
color: {
|
52
|
+
description: string;
|
53
|
+
control: {
|
54
|
+
type: string;
|
55
|
+
};
|
56
|
+
table: {
|
57
|
+
category: string;
|
58
|
+
type: {
|
59
|
+
summary: string;
|
60
|
+
};
|
61
|
+
};
|
62
|
+
options: import("../../types").IColor[];
|
63
|
+
defaultValue: {
|
64
|
+
summary: string;
|
65
|
+
};
|
66
|
+
};
|
67
|
+
appearance: {
|
68
|
+
table: {
|
69
|
+
category: string;
|
70
|
+
type: {
|
71
|
+
summary: string;
|
72
|
+
};
|
73
|
+
};
|
74
|
+
control: {
|
75
|
+
type: string;
|
76
|
+
};
|
77
|
+
defaultValue: {
|
78
|
+
summary: string;
|
79
|
+
};
|
80
|
+
description: string;
|
81
|
+
options: string[];
|
82
|
+
};
|
83
|
+
size: {
|
84
|
+
table: {
|
85
|
+
category: string;
|
86
|
+
type: {
|
87
|
+
summary: string;
|
88
|
+
};
|
89
|
+
};
|
90
|
+
control: {
|
91
|
+
type: string;
|
92
|
+
};
|
93
|
+
options: string[];
|
94
|
+
defaultValue: {
|
95
|
+
summary: string;
|
96
|
+
color: string;
|
97
|
+
};
|
98
|
+
description: string;
|
99
|
+
};
|
100
|
+
};
|
101
|
+
};
|
102
|
+
export default meta;
|
103
|
+
export declare const Default: ({ ...args }: {
|
104
|
+
[x: string]: any;
|
105
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
106
|
+
export declare const Scaling: ({ ...args }: {
|
107
|
+
[x: string]: any;
|
108
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
109
|
+
export declare const Size: ({ ...args }: {
|
110
|
+
[x: string]: any;
|
111
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
112
|
+
export declare const Appearance: ({ ...args }: {
|
113
|
+
[x: string]: any;
|
114
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
115
|
+
export declare const Radius: ({ ...args }: {
|
116
|
+
[x: string]: any;
|
117
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,96 @@
|
|
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 { TextArea } from '../../components/TextArea/index';
|
25
|
+
import { commonArgTypes, radiusOptions, scalingOptions } from '../../constants';
|
26
|
+
var meta = {
|
27
|
+
title: 'Component/TextArea',
|
28
|
+
component: TextArea,
|
29
|
+
parameters: {
|
30
|
+
layout: 'centered',
|
31
|
+
themes: {
|
32
|
+
themeOverride: 'dark',
|
33
|
+
},
|
34
|
+
docs: {
|
35
|
+
description: {
|
36
|
+
component: '',
|
37
|
+
},
|
38
|
+
},
|
39
|
+
},
|
40
|
+
tags: ['autodocs'],
|
41
|
+
argTypes: {
|
42
|
+
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'TextArea Component 크기' }),
|
43
|
+
radius: {
|
44
|
+
table: {
|
45
|
+
category: 'Theme Props',
|
46
|
+
type: { summary: ['none', 'small', 'medium', 'large'].join(' | ') },
|
47
|
+
},
|
48
|
+
options: ['none', 'small', 'medium', 'large'],
|
49
|
+
control: { type: 'select' },
|
50
|
+
defaultValue: { summary: 'medium' },
|
51
|
+
description: 'TextArea Component 둥글기',
|
52
|
+
},
|
53
|
+
color: __assign(__assign({}, commonArgTypes.color), { description: 'TextArea Component 색상', control: { type: 'select' } }),
|
54
|
+
appearance: {
|
55
|
+
table: {
|
56
|
+
category: 'Props',
|
57
|
+
type: { summary: ['classic', 'soft', 'surface'].join(' | ') },
|
58
|
+
},
|
59
|
+
control: { type: 'select' },
|
60
|
+
defaultValue: { summary: 'surface' },
|
61
|
+
description: 'TextArea 스타일',
|
62
|
+
options: ['classic', 'soft', 'surface'],
|
63
|
+
},
|
64
|
+
size: {
|
65
|
+
table: {
|
66
|
+
category: 'Props',
|
67
|
+
type: { summary: ['small', 'medium', 'large', 'x-large'].join(' | ') },
|
68
|
+
},
|
69
|
+
control: { type: 'select' },
|
70
|
+
options: ['small', 'medium', 'large', 'x-large'],
|
71
|
+
defaultValue: { summary: 'medium', color: 'red' },
|
72
|
+
description: 'TextArea 크기',
|
73
|
+
},
|
74
|
+
},
|
75
|
+
};
|
76
|
+
export default meta;
|
77
|
+
export var Default = function (_a) {
|
78
|
+
var args = __rest(_a, []);
|
79
|
+
return _jsx(TextArea, __assign({ placeholder: "Reply to comment\u2026" }, args));
|
80
|
+
};
|
81
|
+
export var Scaling = function (_a) {
|
82
|
+
var args = __rest(_a, []);
|
83
|
+
return (_jsx("div", { className: "grid gap-5", children: scalingOptions.map(function (scaling, index) { return (_jsx("div", { className: "", children: _jsx(TextArea, __assign({ placeholder: "Reply to comment\u2026" }, args, { scaling: scaling })) }, scaling)); }) }));
|
84
|
+
};
|
85
|
+
export var Size = function (_a) {
|
86
|
+
var args = __rest(_a, []);
|
87
|
+
return (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(TextArea, __assign({ placeholder: "Reply to comment\u2026" }, args, { size: 'small' })), _jsx(TextArea, __assign({ placeholder: "Reply to comment\u2026" }, args, { size: 'medium' })), _jsx(TextArea, __assign({ placeholder: "Reply to comment\u2026" }, args, { size: 'large' })), _jsx(TextArea, __assign({ placeholder: "Reply to comment\u2026" }, args, { size: 'x-large' }))] }));
|
88
|
+
};
|
89
|
+
export var Appearance = function (_a) {
|
90
|
+
var args = __rest(_a, []);
|
91
|
+
return (_jsx("div", { className: "grid gap-3", children: ['classic', 'soft', 'surface'].map(function (appearance, index) { return (_jsx("div", { className: "", children: _jsx(TextArea, __assign({ placeholder: "Reply to comment\u2026" }, args, { appearance: appearance })) }, appearance)); }) }));
|
92
|
+
};
|
93
|
+
export var Radius = function (_a) {
|
94
|
+
var args = __rest(_a, []);
|
95
|
+
return (_jsx("div", { className: "grid gap-3", children: radiusOptions.map(function (radius, index) { return (_jsx("div", { className: "", children: _jsx(TextArea, __assign({ placeholder: "Reply to comment\u2026" }, args, { radius: radius })) }, radius)); }) }));
|
96
|
+
};
|