@lotte-innovate/ui-component-test 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. package/dist/Typography/index.d.ts +2 -0
  2. package/dist/Typography/index.js +2 -0
  3. package/dist/app/layout.d.ts +7 -0
  4. package/dist/app/layout.jsx +13 -0
  5. package/dist/app/page.d.ts +2 -0
  6. package/dist/app/page.jsx +42 -0
  7. package/dist/app/template/badgeTemplate.d.ts +12 -0
  8. package/dist/app/template/badgeTemplate.jsx +82 -0
  9. package/dist/app/template/buttonTemplate.d.ts +12 -0
  10. package/dist/app/template/buttonTemplate.jsx +82 -0
  11. package/dist/app/template/colorPicker.d.ts +7 -0
  12. package/dist/app/template/colorPicker.jsx +19 -0
  13. package/dist/app/template/textTemplate.d.ts +11 -0
  14. package/dist/app/template/textTemplate.jsx +72 -0
  15. package/dist/app/template/theme.d.ts +12 -0
  16. package/dist/app/template/theme.jsx +44 -0
  17. package/dist/color/alpha.d.ts +784 -0
  18. package/dist/color/alpha.js +784 -0
  19. package/dist/color/constants.d.ts +20 -0
  20. package/dist/color/constants.js +200 -0
  21. package/dist/color/dark.d.ts +392 -0
  22. package/dist/color/dark.js +392 -0
  23. package/dist/color/krdsColors.d.ts +309 -0
  24. package/dist/color/krdsColors.js +309 -0
  25. package/dist/color/light.d.ts +392 -0
  26. package/dist/color/light.js +393 -0
  27. package/dist/components/index.js +0 -3
  28. package/dist/constants.d.ts +185 -0
  29. package/dist/constants.js +569 -0
  30. package/dist/index.d.ts +5 -0
  31. package/dist/index.js +5 -0
  32. package/dist/stories/Welcome.d.ts +3 -0
  33. package/dist/stories/Welcome.jsx +48 -0
  34. package/dist/stories/accordion/Accordion.stories.d.ts +71 -0
  35. package/dist/stories/accordion/Accordion.stories.jsx +79 -0
  36. package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +107 -0
  37. package/dist/stories/alert-dialog/AlertDialog.stories.jsx +73 -0
  38. package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +68 -0
  39. package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +106 -0
  40. package/dist/stories/avatar/Avatar.stories.d.ts +127 -0
  41. package/dist/stories/avatar/Avatar.stories.jsx +105 -0
  42. package/dist/stories/badge/Badge.stories.d.ts +133 -0
  43. package/dist/stories/badge/Badge.stories.jsx +130 -0
  44. package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +103 -0
  45. package/dist/stories/bubble-chart/BubbleChart.stories.jsx +176 -0
  46. package/dist/stories/button/Button.stories.d.ts +148 -0
  47. package/dist/stories/button/Button.stories.jsx +98 -0
  48. package/dist/stories/button/IconButton.stories.d.ts +125 -0
  49. package/dist/stories/button/IconButton.stories.jsx +93 -0
  50. package/dist/stories/callout/Callout.stories.d.ts +129 -0
  51. package/dist/stories/callout/Callout.stories.jsx +205 -0
  52. package/dist/stories/card/Card.stories.d.ts +100 -0
  53. package/dist/stories/card/Card.stories.jsx +134 -0
  54. package/dist/stories/checkbox/Checkbox.stories.d.ts +147 -0
  55. package/dist/stories/checkbox/Checkbox.stories.jsx +166 -0
  56. package/dist/stories/checkbox/CheckboxCard.stories.d.ts +129 -0
  57. package/dist/stories/checkbox/CheckboxCard.stories.jsx +125 -0
  58. package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +91 -0
  59. package/dist/stories/checkbox/CheckboxGroup.stories.jsx +144 -0
  60. package/dist/stories/context-menu/ContextMenu.stories.d.ts +113 -0
  61. package/dist/stories/context-menu/ContextMenu.stories.jsx +155 -0
  62. package/dist/stories/data-list/DataList.stories.d.ts +97 -0
  63. package/dist/stories/data-list/DataList.stories.jsx +185 -0
  64. package/dist/stories/dialog/Dialog.stories.d.ts +88 -0
  65. package/dist/stories/dialog/Dialog.stories.jsx +82 -0
  66. package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +181 -0
  67. package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +236 -0
  68. package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +112 -0
  69. package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +170 -0
  70. package/dist/stories/header/Header.stories.d.ts +112 -0
  71. package/dist/stories/header/Header.stories.jsx +116 -0
  72. package/dist/stories/hover-card/HoverCard.stories.d.ts +107 -0
  73. package/dist/stories/hover-card/HoverCard.stories.jsx +98 -0
  74. package/dist/stories/inset/Inset.stories.d.ts +58 -0
  75. package/dist/stories/inset/Inset.stories.jsx +79 -0
  76. package/dist/stories/label/Label.stories.d.ts +94 -0
  77. package/dist/stories/label/Label.stories.jsx +112 -0
  78. package/dist/stories/menubar/Menubar.stories.d.ts +119 -0
  79. package/dist/stories/menubar/Menubar.stories.jsx +135 -0
  80. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +385 -0
  81. package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +144 -0
  82. package/dist/stories/pie-chart/PieChart.stories.d.ts +186 -0
  83. package/dist/stories/pie-chart/PieChart.stories.jsx +300 -0
  84. package/dist/stories/popover/Popover.stories.d.ts +78 -0
  85. package/dist/stories/popover/Popover.stories.jsx +107 -0
  86. package/dist/stories/progress/Progress.stories.d.ts +113 -0
  87. package/dist/stories/progress/Progress.stories.jsx +82 -0
  88. package/dist/stories/radar-chart/RadarChart.stories.d.ts +111 -0
  89. package/dist/stories/radar-chart/RadarChart.stories.jsx +200 -0
  90. package/dist/stories/radio/Radio.stories.d.ts +108 -0
  91. package/dist/stories/radio/Radio.stories.jsx +94 -0
  92. package/dist/stories/radio/RadioCards.stories.d.ts +127 -0
  93. package/dist/stories/radio/RadioCards.stories.jsx +153 -0
  94. package/dist/stories/radio/RadioGroup.stories.d.ts +111 -0
  95. package/dist/stories/radio/RadioGroup.stories.jsx +142 -0
  96. package/dist/stories/scroll-area/ScrollArea.stories.d.ts +59 -0
  97. package/dist/stories/scroll-area/ScrollArea.stories.jsx +123 -0
  98. package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +97 -0
  99. package/dist/stories/segmented-control/SegmentedControl.stories.jsx +101 -0
  100. package/dist/stories/select/Select.stories.d.ts +116 -0
  101. package/dist/stories/select/Select.stories.jsx +149 -0
  102. package/dist/stories/separator/Separator.stories.d.ts +93 -0
  103. package/dist/stories/separator/Separator.stories.jsx +106 -0
  104. package/dist/stories/skeleton/Skeleton.stories.d.ts +88 -0
  105. package/dist/stories/skeleton/Skeleton.stories.jsx +119 -0
  106. package/dist/stories/slider/Slider.stories.d.ts +114 -0
  107. package/dist/stories/slider/Slider.stories.jsx +94 -0
  108. package/dist/stories/spinner/Spinner.stories.d.ts +83 -0
  109. package/dist/stories/spinner/Spinner.stories.jsx +112 -0
  110. package/dist/stories/switch/Switch.stories.d.ts +146 -0
  111. package/dist/stories/switch/Switch.stories.jsx +119 -0
  112. package/dist/stories/tab-nav/TabNav.stories.d.ts +55 -0
  113. package/dist/stories/tab-nav/TabNav.stories.jsx +68 -0
  114. package/dist/stories/table/Table.stories.d.ts +87 -0
  115. package/dist/stories/table/Table.stories.jsx +106 -0
  116. package/dist/stories/tabs/Tabs.stories.d.ts +55 -0
  117. package/dist/stories/tabs/Tabs.stories.jsx +76 -0
  118. package/dist/stories/text/Text.stories.d.ts +74 -0
  119. package/dist/stories/text/Text.stories.jsx +91 -0
  120. package/dist/stories/textArea/TextArea.stories.d.ts +117 -0
  121. package/dist/stories/textArea/TextArea.stories.jsx +112 -0
  122. package/dist/stories/textfield/TextField.stories.d.ts +116 -0
  123. package/dist/stories/textfield/TextField.stories.jsx +120 -0
  124. package/dist/stories/toast/Toast.stories.d.ts +138 -0
  125. package/dist/stories/toast/Toast.stories.jsx +122 -0
  126. package/dist/stories/toggle/Toggle.stories.d.ts +115 -0
  127. package/dist/stories/toggle/Toggle.stories.jsx +106 -0
  128. package/dist/stories/toggle/ToggleGroup.stories.d.ts +103 -0
  129. package/dist/stories/toggle/ToggleGroup.stories.jsx +127 -0
  130. package/dist/stories/tooltip/Tooltip.stories.d.ts +93 -0
  131. package/dist/stories/tooltip/Tooltip.stories.jsx +91 -0
  132. package/dist/tsconfig.tsbuildinfo +1 -0
  133. package/dist/types.d.ts +11 -0
  134. package/dist/types.js +1 -0
  135. package/dist/utils/utils.d.ts +3 -0
  136. package/dist/utils/utils.js +27 -0
  137. package/package.json +4 -6
@@ -0,0 +1,170 @@
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
+ };
@@ -0,0 +1,112 @@
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;
@@ -0,0 +1,116 @@
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
+ };
@@ -0,0 +1,107 @@
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;
@@ -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 { 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
+ };
@@ -0,0 +1,58 @@
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;