@lotte-innovate/ui-component-test 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +11 -2
- package/dist/app/layout.d.ts +0 -7
- package/dist/app/layout.jsx +0 -13
- package/dist/app/page.d.ts +0 -2
- package/dist/app/page.jsx +0 -9
- package/dist/app/template/colorPicker.d.ts +0 -7
- package/dist/app/template/colorPicker.jsx +0 -19
- package/dist/app/template/theme.d.ts +0 -12
- package/dist/app/template/theme.jsx +0 -17
- package/dist/stories/Welcome.d.ts +0 -3
- package/dist/stories/Welcome.jsx +0 -48
- package/dist/stories/accordion/Accordion.stories.d.ts +0 -71
- package/dist/stories/accordion/Accordion.stories.jsx +0 -79
- package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +0 -107
- package/dist/stories/alert-dialog/AlertDialog.stories.jsx +0 -73
- package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +0 -68
- package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +0 -106
- package/dist/stories/avatar/Avatar.stories.d.ts +0 -127
- package/dist/stories/avatar/Avatar.stories.jsx +0 -105
- package/dist/stories/badge/Badge.stories.d.ts +0 -133
- package/dist/stories/badge/Badge.stories.jsx +0 -130
- package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +0 -103
- package/dist/stories/bubble-chart/BubbleChart.stories.jsx +0 -176
- package/dist/stories/button/Button.stories.d.ts +0 -148
- package/dist/stories/button/Button.stories.jsx +0 -98
- package/dist/stories/button/IconButton.stories.d.ts +0 -125
- package/dist/stories/button/IconButton.stories.jsx +0 -93
- package/dist/stories/callout/Callout.stories.d.ts +0 -129
- package/dist/stories/callout/Callout.stories.jsx +0 -205
- package/dist/stories/card/Card.stories.d.ts +0 -100
- package/dist/stories/card/Card.stories.jsx +0 -134
- package/dist/stories/checkbox/Checkbox.stories.d.ts +0 -147
- package/dist/stories/checkbox/Checkbox.stories.jsx +0 -166
- package/dist/stories/checkbox/CheckboxCard.stories.d.ts +0 -129
- package/dist/stories/checkbox/CheckboxCard.stories.jsx +0 -125
- package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +0 -91
- package/dist/stories/checkbox/CheckboxGroup.stories.jsx +0 -144
- package/dist/stories/context-menu/ContextMenu.stories.d.ts +0 -113
- package/dist/stories/context-menu/ContextMenu.stories.jsx +0 -155
- package/dist/stories/data-list/DataList.stories.d.ts +0 -97
- package/dist/stories/data-list/DataList.stories.jsx +0 -185
- package/dist/stories/dialog/Dialog.stories.d.ts +0 -88
- package/dist/stories/dialog/Dialog.stories.jsx +0 -82
- package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +0 -181
- package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +0 -236
- package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +0 -112
- package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +0 -170
- package/dist/stories/header/Header.stories.d.ts +0 -112
- package/dist/stories/header/Header.stories.jsx +0 -116
- package/dist/stories/hover-card/HoverCard.stories.d.ts +0 -107
- package/dist/stories/hover-card/HoverCard.stories.jsx +0 -98
- package/dist/stories/inset/Inset.stories.d.ts +0 -58
- package/dist/stories/inset/Inset.stories.jsx +0 -79
- package/dist/stories/label/Label.stories.d.ts +0 -94
- package/dist/stories/label/Label.stories.jsx +0 -112
- package/dist/stories/menubar/Menubar.stories.d.ts +0 -119
- package/dist/stories/menubar/Menubar.stories.jsx +0 -135
- package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +0 -385
- package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +0 -144
- package/dist/stories/pie-chart/PieChart.stories.d.ts +0 -186
- package/dist/stories/pie-chart/PieChart.stories.jsx +0 -300
- package/dist/stories/popover/Popover.stories.d.ts +0 -78
- package/dist/stories/popover/Popover.stories.jsx +0 -107
- package/dist/stories/progress/Progress.stories.d.ts +0 -113
- package/dist/stories/progress/Progress.stories.jsx +0 -82
- package/dist/stories/radar-chart/RadarChart.stories.d.ts +0 -111
- package/dist/stories/radar-chart/RadarChart.stories.jsx +0 -200
- package/dist/stories/radio/Radio.stories.d.ts +0 -108
- package/dist/stories/radio/Radio.stories.jsx +0 -94
- package/dist/stories/radio/RadioCards.stories.d.ts +0 -127
- package/dist/stories/radio/RadioCards.stories.jsx +0 -153
- package/dist/stories/radio/RadioGroup.stories.d.ts +0 -111
- package/dist/stories/radio/RadioGroup.stories.jsx +0 -142
- package/dist/stories/scroll-area/ScrollArea.stories.d.ts +0 -59
- package/dist/stories/scroll-area/ScrollArea.stories.jsx +0 -123
- package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +0 -97
- package/dist/stories/segmented-control/SegmentedControl.stories.jsx +0 -101
- package/dist/stories/select/Select.stories.d.ts +0 -116
- package/dist/stories/select/Select.stories.jsx +0 -149
- package/dist/stories/separator/Separator.stories.d.ts +0 -93
- package/dist/stories/separator/Separator.stories.jsx +0 -106
- package/dist/stories/skeleton/Skeleton.stories.d.ts +0 -88
- package/dist/stories/skeleton/Skeleton.stories.jsx +0 -119
- package/dist/stories/slider/Slider.stories.d.ts +0 -114
- package/dist/stories/slider/Slider.stories.jsx +0 -94
- package/dist/stories/spinner/Spinner.stories.d.ts +0 -83
- package/dist/stories/spinner/Spinner.stories.jsx +0 -112
- package/dist/stories/switch/Switch.stories.d.ts +0 -146
- package/dist/stories/switch/Switch.stories.jsx +0 -119
- package/dist/stories/tab-nav/TabNav.stories.d.ts +0 -55
- package/dist/stories/tab-nav/TabNav.stories.jsx +0 -68
- package/dist/stories/table/Table.stories.d.ts +0 -87
- package/dist/stories/table/Table.stories.jsx +0 -106
- package/dist/stories/tabs/Tabs.stories.d.ts +0 -55
- package/dist/stories/tabs/Tabs.stories.jsx +0 -76
- package/dist/stories/text/Text.stories.d.ts +0 -74
- package/dist/stories/text/Text.stories.jsx +0 -91
- package/dist/stories/textArea/TextArea.stories.d.ts +0 -117
- package/dist/stories/textArea/TextArea.stories.jsx +0 -112
- package/dist/stories/textfield/TextField.stories.d.ts +0 -116
- package/dist/stories/textfield/TextField.stories.jsx +0 -120
- package/dist/stories/toast/Toast.stories.d.ts +0 -138
- package/dist/stories/toast/Toast.stories.jsx +0 -122
- package/dist/stories/toggle/Toggle.stories.d.ts +0 -115
- package/dist/stories/toggle/Toggle.stories.jsx +0 -106
- package/dist/stories/toggle/ToggleGroup.stories.d.ts +0 -103
- package/dist/stories/toggle/ToggleGroup.stories.jsx +0 -127
- package/dist/stories/tooltip/Tooltip.stories.d.ts +0 -93
- package/dist/stories/tooltip/Tooltip.stories.jsx +0 -91
- package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,170 +0,0 @@
|
|
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 { commonArgTypes, radiusOptions } from '../../constants';
|
24
|
-
import { ChevronDownIcon } from '@radix-ui/react-icons';
|
25
|
-
import { DropdownMenu, DropdownMenuItem, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuSeparator, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuLabel, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, } from '../../components/DropdownMenu/index';
|
26
|
-
import Button from 'components/Button';
|
27
|
-
var meta = {
|
28
|
-
title: 'Component/DropdownMenu',
|
29
|
-
component: DropdownMenu,
|
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: 'dropdownMenu 둥글기' }),
|
44
|
-
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
45
|
-
category: 'Props',
|
46
|
-
type: {
|
47
|
-
summary: ['small', 'medium'].join(' | '),
|
48
|
-
},
|
49
|
-
}, options: ['small', 'medium'], description: 'dropdownMenu 크기' }),
|
50
|
-
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'dropdownMenu scaling' }),
|
51
|
-
color: __assign(__assign({}, commonArgTypes.color), { description: 'dropdownMenu color' }),
|
52
|
-
appearance: __assign(__assign({}, commonArgTypes.appearance), { table: {
|
53
|
-
category: 'Props',
|
54
|
-
type: { summary: ['solid', 'soft'].join(' | ') },
|
55
|
-
}, options: ['solid', 'soft'] }),
|
56
|
-
},
|
57
|
-
};
|
58
|
-
export default meta;
|
59
|
-
export var Default = function (_a) {
|
60
|
-
var args = __rest(_a, []);
|
61
|
-
return (<DropdownMenu>
|
62
|
-
<DropdownMenuTrigger {...args}>
|
63
|
-
<Button>
|
64
|
-
Options
|
65
|
-
<ChevronDownIcon />
|
66
|
-
</Button>
|
67
|
-
</DropdownMenuTrigger>
|
68
|
-
<DropdownMenuContent {...args}>
|
69
|
-
<DropdownMenuLabel {...args}>라벨</DropdownMenuLabel>
|
70
|
-
<DropdownMenuItem {...args} shortcut="⌘ E">
|
71
|
-
기본 아이템
|
72
|
-
</DropdownMenuItem>
|
73
|
-
<DropdownMenuItem {...args} disabled>
|
74
|
-
사용불가 아이템
|
75
|
-
</DropdownMenuItem>
|
76
|
-
<DropdownMenuSeparator />
|
77
|
-
<DropdownMenuCheckboxItem checked {...args}>
|
78
|
-
체크박스1
|
79
|
-
</DropdownMenuCheckboxItem>
|
80
|
-
<DropdownMenuCheckboxItem checked={false} {...args}>
|
81
|
-
체크박스2
|
82
|
-
</DropdownMenuCheckboxItem>
|
83
|
-
<DropdownMenuSeparator />
|
84
|
-
|
85
|
-
<DropdownMenuRadioGroup value="option1">
|
86
|
-
<DropdownMenuRadioItem value="option1" {...args}>
|
87
|
-
라디오1
|
88
|
-
</DropdownMenuRadioItem>
|
89
|
-
<DropdownMenuRadioItem value="option2" {...args}>
|
90
|
-
라디오2
|
91
|
-
</DropdownMenuRadioItem>
|
92
|
-
</DropdownMenuRadioGroup>
|
93
|
-
<DropdownMenuSeparator />
|
94
|
-
|
95
|
-
<DropdownMenuSub>
|
96
|
-
<DropdownMenuSubTrigger {...args}>More Menu</DropdownMenuSubTrigger>
|
97
|
-
<DropdownMenuSubContent {...args}>
|
98
|
-
<DropdownMenuItem {...args}>project</DropdownMenuItem>
|
99
|
-
<DropdownMenuItem {...args}>folder</DropdownMenuItem>
|
100
|
-
|
101
|
-
<DropdownMenuSeparator />
|
102
|
-
<DropdownMenuItem {...args}>options</DropdownMenuItem>
|
103
|
-
</DropdownMenuSubContent>
|
104
|
-
</DropdownMenuSub>
|
105
|
-
</DropdownMenuContent>
|
106
|
-
</DropdownMenu>);
|
107
|
-
};
|
108
|
-
export var Radius = function (_a) {
|
109
|
-
var args = __rest(_a, []);
|
110
|
-
return (<div className="flex items-center space-x-4">
|
111
|
-
{radiusOptions.map(function (radius) { return (<DropdownMenu key={radius}>
|
112
|
-
<DropdownMenuTrigger {...args} radius={radius}>
|
113
|
-
<Button>
|
114
|
-
{radius}
|
115
|
-
<ChevronDownIcon />
|
116
|
-
</Button>
|
117
|
-
</DropdownMenuTrigger>
|
118
|
-
<DropdownMenuContent {...args} radius={radius}>
|
119
|
-
<DropdownMenuItem {...args} radius={radius}>
|
120
|
-
메뉴1
|
121
|
-
</DropdownMenuItem>
|
122
|
-
<DropdownMenuItem {...args} radius={radius}>
|
123
|
-
메뉴2
|
124
|
-
</DropdownMenuItem>
|
125
|
-
</DropdownMenuContent>
|
126
|
-
</DropdownMenu>); })}
|
127
|
-
</div>);
|
128
|
-
};
|
129
|
-
export var Size = function (_a) {
|
130
|
-
var args = __rest(_a, []);
|
131
|
-
return (<div className="flex items-center space-x-4">
|
132
|
-
{['small', 'medium'].map(function (size) { return (<DropdownMenu key={size}>
|
133
|
-
<DropdownMenuTrigger {...args} size={size}>
|
134
|
-
<Button>
|
135
|
-
{size}
|
136
|
-
<ChevronDownIcon />
|
137
|
-
</Button>
|
138
|
-
</DropdownMenuTrigger>
|
139
|
-
<DropdownMenuContent {...args} size={size}>
|
140
|
-
<DropdownMenuItem {...args} size={size}>
|
141
|
-
메뉴1
|
142
|
-
</DropdownMenuItem>
|
143
|
-
<DropdownMenuItem {...args} size={size}>
|
144
|
-
메뉴2
|
145
|
-
</DropdownMenuItem>
|
146
|
-
</DropdownMenuContent>
|
147
|
-
</DropdownMenu>); })}
|
148
|
-
</div>);
|
149
|
-
};
|
150
|
-
export var Appearance = function (_a) {
|
151
|
-
var args = __rest(_a, []);
|
152
|
-
return (<div className="flex items-center space-x-4">
|
153
|
-
{['solid', 'soft'].map(function (appearance) { return (<DropdownMenu key={appearance}>
|
154
|
-
<DropdownMenuTrigger {...args} appearance={appearance}>
|
155
|
-
<Button>
|
156
|
-
{appearance}
|
157
|
-
<ChevronDownIcon />
|
158
|
-
</Button>
|
159
|
-
</DropdownMenuTrigger>
|
160
|
-
<DropdownMenuContent {...args}>
|
161
|
-
<DropdownMenuItem {...args} appearance={appearance}>
|
162
|
-
메뉴1
|
163
|
-
</DropdownMenuItem>
|
164
|
-
<DropdownMenuItem {...args} appearance={appearance}>
|
165
|
-
메뉴2
|
166
|
-
</DropdownMenuItem>
|
167
|
-
</DropdownMenuContent>
|
168
|
-
</DropdownMenu>); })}
|
169
|
-
</div>);
|
170
|
-
};
|
@@ -1,112 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { HeaderProps } from '../../Typography/Header/index';
|
3
|
-
declare const meta: {
|
4
|
-
title: string;
|
5
|
-
component: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & HeaderProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
6
|
-
tags: string[];
|
7
|
-
parameters: {
|
8
|
-
docs: {
|
9
|
-
description: {
|
10
|
-
component: string;
|
11
|
-
};
|
12
|
-
};
|
13
|
-
};
|
14
|
-
argTypes: {
|
15
|
-
weight: {
|
16
|
-
description: string;
|
17
|
-
table: {
|
18
|
-
category: string;
|
19
|
-
type: {
|
20
|
-
summary: string;
|
21
|
-
};
|
22
|
-
};
|
23
|
-
options: import("types").IWeight[];
|
24
|
-
control: {
|
25
|
-
type: string;
|
26
|
-
};
|
27
|
-
defaultValue: {
|
28
|
-
summary: string;
|
29
|
-
};
|
30
|
-
};
|
31
|
-
color: {
|
32
|
-
defaultValue: {
|
33
|
-
summary: string;
|
34
|
-
};
|
35
|
-
description: string;
|
36
|
-
table: {
|
37
|
-
category: string;
|
38
|
-
type: {
|
39
|
-
summary: string;
|
40
|
-
};
|
41
|
-
};
|
42
|
-
options: import("types").IColor[];
|
43
|
-
control: {
|
44
|
-
type: string;
|
45
|
-
};
|
46
|
-
};
|
47
|
-
size: {
|
48
|
-
table: {
|
49
|
-
category: string;
|
50
|
-
type: {
|
51
|
-
summary: string;
|
52
|
-
};
|
53
|
-
};
|
54
|
-
options: import("types").ITypoSize[];
|
55
|
-
control: {
|
56
|
-
type: string;
|
57
|
-
};
|
58
|
-
description: string;
|
59
|
-
defaultValue: {
|
60
|
-
summary: string;
|
61
|
-
};
|
62
|
-
};
|
63
|
-
headers: {
|
64
|
-
table: {
|
65
|
-
category: string;
|
66
|
-
type: {
|
67
|
-
summary: string;
|
68
|
-
};
|
69
|
-
};
|
70
|
-
options: string[];
|
71
|
-
control: {
|
72
|
-
type: string;
|
73
|
-
};
|
74
|
-
description: string;
|
75
|
-
defaultValue: {
|
76
|
-
summary: string;
|
77
|
-
};
|
78
|
-
};
|
79
|
-
align: {
|
80
|
-
table: {
|
81
|
-
category: string;
|
82
|
-
type: {
|
83
|
-
summary: string;
|
84
|
-
};
|
85
|
-
};
|
86
|
-
options: string[];
|
87
|
-
control: {
|
88
|
-
type: string;
|
89
|
-
};
|
90
|
-
description: string;
|
91
|
-
};
|
92
|
-
};
|
93
|
-
};
|
94
|
-
export default meta;
|
95
|
-
export declare const Default: ({ ...args }: {
|
96
|
-
[x: string]: any;
|
97
|
-
}) => import("react").JSX.Element;
|
98
|
-
export declare const Weight: ({ ...args }: {
|
99
|
-
[x: string]: any;
|
100
|
-
}) => import("react").JSX.Element;
|
101
|
-
export declare const Color: ({ ...args }: {
|
102
|
-
[x: string]: any;
|
103
|
-
}) => import("react").JSX.Element;
|
104
|
-
export declare const Size: ({ ...args }: {
|
105
|
-
[x: string]: any;
|
106
|
-
}) => import("react").JSX.Element;
|
107
|
-
export declare const Headers: ({ ...args }: {
|
108
|
-
[x: string]: any;
|
109
|
-
}) => import("react").JSX.Element;
|
110
|
-
export declare const Align: ({ ...args }: {
|
111
|
-
[x: string]: any;
|
112
|
-
}) => import("react").JSX.Element;
|
@@ -1,116 +0,0 @@
|
|
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 { Header } from '../../Typography/Header/index';
|
24
|
-
import { weightOptions, typoSizeOptions, commonArgTypes } from '../../constants';
|
25
|
-
import { colorOptions } from 'color/constants';
|
26
|
-
var headerOptions = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
27
|
-
var meta = {
|
28
|
-
title: 'Typography/Header',
|
29
|
-
component: Header,
|
30
|
-
tags: ['autodocs'],
|
31
|
-
parameters: {
|
32
|
-
docs: {
|
33
|
-
description: {
|
34
|
-
component: 'Header 컴포넌트는 주로 텍스트의 제목이나 섹션의 헤더를 표시하는 데 사용됩니다. h1부터 h6까지의 태그를 사용하여 제목의 계층 구조를 나타냅니다.',
|
35
|
-
},
|
36
|
-
},
|
37
|
-
},
|
38
|
-
argTypes: {
|
39
|
-
weight: __assign(__assign({}, commonArgTypes.weight), { description: 'Header 컴포넌트 폰트 두께' }),
|
40
|
-
color: __assign(__assign({}, commonArgTypes.color), { defaultValue: { summary: 'black' }, description: 'Header 컴포넌트 폰트 색상' }),
|
41
|
-
size: {
|
42
|
-
table: {
|
43
|
-
category: 'Props',
|
44
|
-
type: { summary: '1 ~ 9' },
|
45
|
-
},
|
46
|
-
options: typoSizeOptions,
|
47
|
-
control: { type: 'select' },
|
48
|
-
description: 'Header 컴포넌트 폰트 사이즈',
|
49
|
-
defaultValue: { summary: '6' },
|
50
|
-
},
|
51
|
-
headers: {
|
52
|
-
table: {
|
53
|
-
category: 'Props',
|
54
|
-
type: { summary: headerOptions.join(' | ') },
|
55
|
-
},
|
56
|
-
options: headerOptions,
|
57
|
-
control: { type: 'select' },
|
58
|
-
description: 'Header 컴포넌트 heading level',
|
59
|
-
defaultValue: { summary: 'h1' },
|
60
|
-
},
|
61
|
-
align: {
|
62
|
-
table: {
|
63
|
-
category: 'Props',
|
64
|
-
type: { summary: 'left | center | right' },
|
65
|
-
},
|
66
|
-
options: ['left', 'center', 'right'],
|
67
|
-
control: { type: 'select' },
|
68
|
-
description: 'Header 컴포넌트 정렬',
|
69
|
-
},
|
70
|
-
},
|
71
|
-
};
|
72
|
-
export default meta;
|
73
|
-
export var Default = function (_a) {
|
74
|
-
var args = __rest(_a, []);
|
75
|
-
return <Header {...args}>The quick brown fox jumps over the lazy dog</Header>;
|
76
|
-
};
|
77
|
-
export var Weight = function (_a) {
|
78
|
-
var args = __rest(_a, []);
|
79
|
-
return (<div>
|
80
|
-
{weightOptions.map(function (weight) { return (<Header key={weight} {...args} weight={weight}>
|
81
|
-
The quick brown fox jumps over the lazy dog
|
82
|
-
</Header>); })}
|
83
|
-
</div>);
|
84
|
-
};
|
85
|
-
export var Color = function (_a) {
|
86
|
-
var args = __rest(_a, []);
|
87
|
-
return (<div>
|
88
|
-
{colorOptions.map(function (color) { return (<Header key={color} {...args} color={color}>
|
89
|
-
The quick brown fox jumps over the lazy dog
|
90
|
-
</Header>); })}
|
91
|
-
</div>);
|
92
|
-
};
|
93
|
-
export var Size = function (_a) {
|
94
|
-
var args = __rest(_a, []);
|
95
|
-
return (<div>
|
96
|
-
{typoSizeOptions.map(function (size) { return (<Header key={size} {...args} size={size}>
|
97
|
-
The quick brown fox jumps over the lazy dog
|
98
|
-
</Header>); })}
|
99
|
-
</div>);
|
100
|
-
};
|
101
|
-
export var Headers = function (_a) {
|
102
|
-
var args = __rest(_a, []);
|
103
|
-
return (<div>
|
104
|
-
{headerOptions.map(function (headers) { return (<Header key={headers} {...args} headers={headers}>
|
105
|
-
The quick brown fox jumps over the lazy dog
|
106
|
-
</Header>); })}
|
107
|
-
</div>);
|
108
|
-
};
|
109
|
-
export var Align = function (_a) {
|
110
|
-
var args = __rest(_a, []);
|
111
|
-
return (<div>
|
112
|
-
{['left', 'center', 'right'].map(function (align) { return (<Header key={align} {...args} align={align}>
|
113
|
-
The quick brown fox jumps over the lazy dog
|
114
|
-
</Header>); })}
|
115
|
-
</div>);
|
116
|
-
};
|
@@ -1,107 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ISize, IRadius } from 'types';
|
3
|
-
declare const meta: {
|
4
|
-
title: string;
|
5
|
-
component: import("react").ForwardRefExoticComponent<import("@radix-ui/themes/dist/cjs/components/hover-card").RootProps & import("../../components/HoverCard").HoverCardProps & import("react").RefAttributes<never>>;
|
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
|
-
radius: {
|
20
|
-
table: {
|
21
|
-
category: string;
|
22
|
-
type: {
|
23
|
-
summary: string;
|
24
|
-
};
|
25
|
-
};
|
26
|
-
options: IRadius[];
|
27
|
-
description: string;
|
28
|
-
control: {
|
29
|
-
type: string;
|
30
|
-
};
|
31
|
-
defaultValue: {
|
32
|
-
summary: string;
|
33
|
-
};
|
34
|
-
};
|
35
|
-
size: {
|
36
|
-
table: {
|
37
|
-
category: string;
|
38
|
-
type: {
|
39
|
-
summary: string;
|
40
|
-
};
|
41
|
-
};
|
42
|
-
options: ISize[];
|
43
|
-
description: string;
|
44
|
-
control: {
|
45
|
-
type: string;
|
46
|
-
};
|
47
|
-
defaultValue: {
|
48
|
-
summary: string;
|
49
|
-
};
|
50
|
-
};
|
51
|
-
scaling: {
|
52
|
-
description: string;
|
53
|
-
table: {
|
54
|
-
category: string;
|
55
|
-
type: {
|
56
|
-
summary: string;
|
57
|
-
};
|
58
|
-
};
|
59
|
-
control: {
|
60
|
-
type: string;
|
61
|
-
};
|
62
|
-
options: import("types").IScaling[];
|
63
|
-
defaultValue: {
|
64
|
-
summary: string;
|
65
|
-
};
|
66
|
-
};
|
67
|
-
weight: {
|
68
|
-
description: string;
|
69
|
-
table: {
|
70
|
-
category: string;
|
71
|
-
type: {
|
72
|
-
summary: string;
|
73
|
-
};
|
74
|
-
};
|
75
|
-
options: import("types").IWeight[];
|
76
|
-
control: {
|
77
|
-
type: string;
|
78
|
-
};
|
79
|
-
defaultValue: {
|
80
|
-
summary: string;
|
81
|
-
};
|
82
|
-
};
|
83
|
-
color: {
|
84
|
-
description: string;
|
85
|
-
defaultValue: {
|
86
|
-
summary: string;
|
87
|
-
};
|
88
|
-
table: {
|
89
|
-
category: string;
|
90
|
-
type: {
|
91
|
-
summary: string;
|
92
|
-
};
|
93
|
-
};
|
94
|
-
options: import("types").IColor[];
|
95
|
-
control: {
|
96
|
-
type: string;
|
97
|
-
};
|
98
|
-
};
|
99
|
-
};
|
100
|
-
};
|
101
|
-
export default meta;
|
102
|
-
export declare const Default: ({ ...args }: {
|
103
|
-
[x: string]: any;
|
104
|
-
}) => import("react").JSX.Element;
|
105
|
-
export declare const WithInset: ({ ...args }: {
|
106
|
-
[x: string]: any;
|
107
|
-
}) => import("react").JSX.Element;
|
@@ -1,98 +0,0 @@
|
|
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 { commonArgTypes } from '../../constants';
|
24
|
-
import { HoverCard, HoverCardTrigger, HoverCardContent } from '../../components/HoverCard';
|
25
|
-
import { Inset } from '@radix-ui/themes';
|
26
|
-
import { radiusOptions, sizeOptions } from '../../constants';
|
27
|
-
import Link from 'next/link';
|
28
|
-
import Image from 'next/image';
|
29
|
-
var meta = {
|
30
|
-
title: 'Component/HoverCard',
|
31
|
-
component: HoverCard,
|
32
|
-
parameters: {
|
33
|
-
layout: 'centered',
|
34
|
-
themes: {
|
35
|
-
themeOverride: 'dark',
|
36
|
-
},
|
37
|
-
docs: {
|
38
|
-
description: {
|
39
|
-
component: '특정 개체 위에 포인터를 올려놓았을 때 제공되는 Card UI 요소',
|
40
|
-
},
|
41
|
-
},
|
42
|
-
},
|
43
|
-
tags: ['autodocs'],
|
44
|
-
argTypes: {
|
45
|
-
radius: __assign(__assign({}, commonArgTypes.radius), { table: {
|
46
|
-
category: 'Theme Props',
|
47
|
-
type: {
|
48
|
-
summary: radiusOptions.filter(function (value) { return value !== 'full'; }).join(' | '),
|
49
|
-
},
|
50
|
-
}, options: radiusOptions.filter(function (value) { return value !== 'full'; }), description: 'hoverCard 둥글기' }),
|
51
|
-
size: __assign(__assign({}, commonArgTypes.size), { table: {
|
52
|
-
category: 'Props',
|
53
|
-
type: {
|
54
|
-
summary: sizeOptions.filter(function (value) { return value != 'x-small'; }).join(' | '),
|
55
|
-
},
|
56
|
-
}, options: sizeOptions.filter(function (value) { return value != 'x-small'; }), description: 'hoverCard 크기' }),
|
57
|
-
scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'hoverCard 비율' }),
|
58
|
-
weight: __assign(__assign({}, commonArgTypes.weight), { description: 'hoverCard 글씨 두께' }),
|
59
|
-
color: __assign(__assign({}, commonArgTypes.color), { description: 'hoverCard color', defaultValue: { summary: 'white' } }),
|
60
|
-
},
|
61
|
-
};
|
62
|
-
export default meta;
|
63
|
-
export var Default = function (_a) {
|
64
|
-
var args = __rest(_a, []);
|
65
|
-
return (<HoverCard>
|
66
|
-
<HoverCardTrigger>
|
67
|
-
<Link href="#" target="_blank" className="text-indigo-9 dark:text-indigoDark-9 hover:underline">
|
68
|
-
@radix_ui
|
69
|
-
</Link>
|
70
|
-
</HoverCardTrigger>
|
71
|
-
<HoverCardContent {...args}>
|
72
|
-
<div>
|
73
|
-
<strong>Typography</strong> is the art and technique of arranging type to make written
|
74
|
-
language legible, readable and appealing when displayed.
|
75
|
-
</div>
|
76
|
-
</HoverCardContent>
|
77
|
-
</HoverCard>);
|
78
|
-
};
|
79
|
-
export var WithInset = function (_a) {
|
80
|
-
var args = __rest(_a, []);
|
81
|
-
return (<HoverCard>
|
82
|
-
<HoverCardTrigger>
|
83
|
-
<Link href="https://twitter.com/radix_ui" target="_blank" className="text-indigo-9 dark:text-indigoDark-9 hover:underline">
|
84
|
-
@radix_ui
|
85
|
-
</Link>
|
86
|
-
</HoverCardTrigger>
|
87
|
-
<HoverCardContent {...args}>
|
88
|
-
<div className="flex">
|
89
|
-
<Inset side="left" pr="current">
|
90
|
-
<Image src="https://images.unsplash.com/photo-1617050318658-a9a3175e34cb?&auto=format&fit=crop&w=300&q=90" alt="Bold typography" width={150} height={150} className="h-full block object-cover"/>
|
91
|
-
</Inset>
|
92
|
-
<span>
|
93
|
-
<strong>Typography</strong> is the art and technique.
|
94
|
-
</span>
|
95
|
-
</div>
|
96
|
-
</HoverCardContent>
|
97
|
-
</HoverCard>);
|
98
|
-
};
|
@@ -1,58 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare const meta: {
|
3
|
-
title: string;
|
4
|
-
component: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes").InsetProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("../../components/Inset").InsetProps & 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
|
-
};
|
51
|
-
};
|
52
|
-
export default meta;
|
53
|
-
export declare const Default: ({ ...args }: {
|
54
|
-
[x: string]: any;
|
55
|
-
}) => import("react").JSX.Element;
|
56
|
-
export declare const Horizontal: ({ ...args }: {
|
57
|
-
[x: string]: any;
|
58
|
-
}) => import("react").JSX.Element;
|