@lotte-innovate/ui-component-test 0.0.14 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. package/dist/Typography/Header/{index.jsx → index.js} +2 -5
  2. package/dist/Typography/Text/{index.jsx → index.js} +3 -6
  3. package/dist/components/Accordion/{index.jsx → index.js} +5 -17
  4. package/dist/components/AlertDialog/{AlertDialogAction.jsx → AlertDialogAction.js} +3 -4
  5. package/dist/components/AlertDialog/{AlertDialogCancel.jsx → AlertDialogCancel.js} +3 -4
  6. package/dist/components/AlertDialog/{AlertDialogContent.jsx → AlertDialogContent.js} +3 -7
  7. package/dist/components/AlertDialog/{AlertDialogDescription.jsx → AlertDialogDescription.js} +14 -4
  8. package/dist/components/AlertDialog/{AlertDialogTitle.jsx → AlertDialogTitle.js} +14 -4
  9. package/dist/components/AlertDialog/{AlertDialogTrigger.jsx → AlertDialogTrigger.js} +3 -4
  10. package/dist/components/AlertDialog/{index.jsx → index.js} +14 -4
  11. package/dist/components/AspectRatio/{index.jsx → index.js} +3 -4
  12. package/dist/components/Avatar/{index.jsx → index.js} +3 -7
  13. package/dist/components/Badge/{index.jsx → index.js} +3 -4
  14. package/dist/components/BubbleChart/index.d.ts +1 -2
  15. package/dist/components/BubbleChart/{index.jsx → index.js} +2 -2
  16. package/dist/components/Button/{index.jsx → index.js} +3 -4
  17. package/dist/components/Callout/{CalloutIcon.jsx → CalloutIcon.js} +3 -8
  18. package/dist/components/Callout/{CalloutText.jsx → CalloutText.js} +14 -4
  19. package/dist/components/Callout/{index.jsx → index.js} +3 -6
  20. package/dist/components/Card/{index.jsx → index.js} +3 -4
  21. package/dist/components/Checkbox/{index.jsx → index.js} +3 -11
  22. package/dist/components/CheckboxCard/{index.jsx → index.js} +3 -5
  23. package/dist/components/CheckboxGroup/{CheckboxGroupItem.jsx → CheckboxGroupItem.js} +14 -6
  24. package/dist/components/CheckboxGroup/{index.jsx → index.js} +2 -5
  25. package/dist/components/ContextMenu/{ContextMenuCheckboxItem.jsx → ContextMenuCheckboxItem.js} +14 -7
  26. package/dist/components/ContextMenu/{ContextMenuContent.jsx → ContextMenuContent.js} +3 -6
  27. package/dist/components/ContextMenu/{ContextMenuGroup.jsx → ContextMenuGroup.js} +14 -4
  28. package/dist/components/ContextMenu/{ContextMenuItem.jsx → ContextMenuItem.js} +3 -5
  29. package/dist/components/ContextMenu/{ContextMenuItemIndicator.jsx → ContextMenuItemIndicator.js} +3 -4
  30. package/dist/components/ContextMenu/{ContextMenuLabel.jsx → ContextMenuLabel.js} +3 -4
  31. package/dist/components/ContextMenu/{ContextMenuRadioGroup.jsx → ContextMenuRadioGroup.js} +14 -6
  32. package/dist/components/ContextMenu/{ContextMenuRadioItem.jsx → ContextMenuRadioItem.js} +14 -7
  33. package/dist/components/ContextMenu/{ContextMenuSeparator.jsx → ContextMenuSeparator.js} +14 -4
  34. package/dist/components/ContextMenu/{ContextMenuSubContent.jsx → ContextMenuSubContent.js} +6 -9
  35. package/dist/components/ContextMenu/{ContextMenuSubTrigger.jsx → ContextMenuSubTrigger.js} +14 -9
  36. package/dist/components/ContextMenu/{ContextMenuTrigger.jsx → ContextMenuTrigger.js} +14 -4
  37. package/dist/components/ContextMenu/{index.jsx → index.js} +14 -6
  38. package/dist/components/DataList/{DataListItem.jsx → DataListItem.js} +3 -4
  39. package/dist/components/DataList/{DataListLabel.jsx → DataListLabel.js} +3 -4
  40. package/dist/components/DataList/{DataListValue.jsx → DataListValue.js} +3 -4
  41. package/dist/components/DataList/{index.jsx → index.js} +14 -6
  42. package/dist/components/Dialog/{DialogAction.jsx → DialogAction.js} +14 -4
  43. package/dist/components/Dialog/{DialogCancel.jsx → DialogCancel.js} +14 -4
  44. package/dist/components/Dialog/{DialogContent.jsx → DialogContent.js} +3 -4
  45. package/dist/components/Dialog/{DialogDescription.jsx → DialogDescription.js} +14 -4
  46. package/dist/components/Dialog/{DialogSlot.jsx → DialogSlot.js} +14 -4
  47. package/dist/components/Dialog/{DialogTitle.jsx → DialogTitle.js} +14 -4
  48. package/dist/components/Dialog/{DialogTrigger.jsx → DialogTrigger.js} +14 -4
  49. package/dist/components/Dialog/{index.jsx → index.js} +14 -4
  50. package/dist/components/DoughnutChart/index.d.ts +1 -2
  51. package/dist/components/DoughnutChart/{index.jsx → index.js} +2 -2
  52. package/dist/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js} +14 -6
  53. package/dist/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js} +7 -10
  54. package/dist/components/DropdownMenu/{DropdownMenuCheckboxItem.jsx → DropdownMenuCheckboxItem.js} +14 -7
  55. package/dist/components/DropdownMenu/{DropdownMenuContent.jsx → DropdownMenuContent.js} +3 -6
  56. package/dist/components/DropdownMenu/{DropdownMenuItem.jsx → DropdownMenuItem.js} +3 -5
  57. package/dist/components/DropdownMenu/{DropdownMenuItemIndicator.jsx → DropdownMenuItemIndicator.js} +3 -4
  58. package/dist/components/DropdownMenu/{DropdownMenuLable.jsx → DropdownMenuLable.js} +3 -4
  59. package/dist/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js} +14 -7
  60. package/dist/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js} +14 -2
  61. package/dist/components/DropdownMenu/{DropdownMenuSub.jsx → DropdownMenuSub.js} +14 -2
  62. package/dist/components/DropdownMenu/{DropdownMenuSubTrigger.jsx → DropdownMenuSubTrigger.js} +14 -7
  63. package/dist/components/DropdownMenu/{DropdownMenuTrigger.jsx → DropdownMenuTrigger.js} +14 -4
  64. package/dist/components/DropdownMenu/{index.jsx → index.js} +14 -2
  65. package/dist/components/HoverCard/{HoverCardContent.jsx → HoverCardContent.js} +3 -4
  66. package/dist/components/HoverCard/{HoverCardTrigger.jsx → HoverCardTrigger.js} +14 -4
  67. package/dist/components/HoverCard/{index.jsx → index.js} +14 -4
  68. package/dist/components/IconButton/{index.jsx → index.js} +2 -3
  69. package/dist/components/Inset/{index.jsx → index.js} +3 -6
  70. package/dist/components/Label/{index.jsx → index.js} +2 -3
  71. package/dist/components/Menubar/{MenubarCheckboxItem.jsx → MenubarCheckboxItem.js} +14 -7
  72. package/dist/components/Menubar/{MenubarContent.jsx → MenubarContent.js} +7 -10
  73. package/dist/components/Menubar/{MenubarItem.jsx → MenubarItem.js} +3 -5
  74. package/dist/components/Menubar/{MenubarItemIndicator.jsx → MenubarItemIndicator.js} +3 -4
  75. package/dist/components/Menubar/{MenubarMenu.jsx → MenubarMenu.js} +14 -2
  76. package/dist/components/Menubar/{MenubarRadioGroup.jsx → MenubarRadioGroup.js} +14 -6
  77. package/dist/components/Menubar/{MenubarRadioItem.jsx → MenubarRadioItem.js} +14 -7
  78. package/dist/components/Menubar/{MenubarSeparator.jsx → MenubarSeparator.js} +14 -4
  79. package/dist/components/Menubar/{MenubarSub.jsx → MenubarSub.js} +14 -2
  80. package/dist/components/Menubar/{MenubarSubContent.jsx → MenubarSubContent.js} +4 -5
  81. package/dist/components/Menubar/{MenubarSubTrigger.jsx → MenubarSubTrigger.js} +14 -7
  82. package/dist/components/Menubar/{MenubarTrigger.jsx → MenubarTrigger.js} +3 -4
  83. package/dist/components/Menubar/{index.jsx → index.js} +3 -6
  84. package/dist/components/NavigationMenu/{NavigationMenuContent.jsx → NavigationMenuContent.js} +3 -4
  85. package/dist/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
  86. package/dist/components/NavigationMenu/{NavigationMenuItem.jsx → NavigationMenuItem.js} +14 -4
  87. package/dist/components/NavigationMenu/{NavigationMenuLink.jsx → NavigationMenuLink.js} +3 -4
  88. package/dist/components/NavigationMenu/{NavigationMenuList.jsx → NavigationMenuList.js} +3 -5
  89. package/dist/components/NavigationMenu/{NavigationMenuTrigger.jsx → NavigationMenuTrigger.js} +3 -5
  90. package/dist/components/NavigationMenu/{NavigationMenuViewport.jsx → NavigationMenuViewport.js} +3 -4
  91. package/dist/components/NavigationMenu/{index.jsx → index.js} +14 -6
  92. package/dist/components/PieChart/index.d.ts +1 -2
  93. package/dist/components/PieChart/{index.jsx → index.js} +2 -2
  94. package/dist/components/Popover/{PopoverClose.jsx → PopoverClose.js} +14 -4
  95. package/dist/components/Popover/{PopoverContent.jsx → PopoverContent.js} +3 -4
  96. package/dist/components/Popover/{PopoverTrigger.jsx → PopoverTrigger.js} +14 -4
  97. package/dist/components/Popover/{index.jsx → index.js} +14 -4
  98. package/dist/components/Progress/{index.jsx → index.js} +3 -4
  99. package/dist/components/RadarChart/index.d.ts +1 -2
  100. package/dist/components/RadarChart/{index.jsx → index.js} +2 -2
  101. package/dist/components/Radio/{index.jsx → index.js} +13 -8
  102. package/dist/components/RadioCards/{RadioCardsItem.jsx → RadioCardsItem.js} +14 -4
  103. package/dist/components/RadioCards/{index.jsx → index.js} +3 -6
  104. package/dist/components/RadioGroup/{RadioGroupItem.jsx → RadioGroupItem.js} +14 -4
  105. package/dist/components/RadioGroup/{index.jsx → index.js} +14 -6
  106. package/dist/components/ScrollArea/{index.jsx → index.js} +14 -6
  107. package/dist/components/SegmentedControl/{SegmentedControlItem.jsx → SegmentedControlItem.js} +14 -4
  108. package/dist/components/SegmentedControl/{index.jsx → index.js} +2 -5
  109. package/dist/components/Select/{index.jsx → index.js} +8 -25
  110. package/dist/components/Separator/{index.jsx → index.js} +2 -5
  111. package/dist/components/Skeleton/{index.jsx → index.js} +2 -5
  112. package/dist/components/Slider/{index.jsx → index.js} +2 -3
  113. package/dist/components/Spinner/{index.jsx → index.js} +2 -5
  114. package/dist/components/TabNav/{index.jsx → index.js} +14 -8
  115. package/dist/components/Table/{index.jsx → index.js} +8 -23
  116. package/dist/components/Tabs/{index.jsx → index.js} +5 -14
  117. package/dist/components/TextArea/{index.jsx → index.js} +2 -3
  118. package/dist/components/TextField/{index.jsx → index.js} +3 -8
  119. package/dist/components/Toast/{ToastActionButton.jsx → ToastActionButton.js} +3 -4
  120. package/dist/components/Toast/{ToastDescription.jsx → ToastDescription.js} +14 -6
  121. package/dist/components/Toast/{ToastTitle.jsx → ToastTitle.js} +14 -4
  122. package/dist/components/Toast/{index.jsx → index.js} +3 -9
  123. package/dist/components/Toggle/{ToggleWithText.jsx → ToggleWithText.js} +4 -6
  124. package/dist/components/Toggle/{index.jsx → index.js} +3 -4
  125. package/dist/components/ToggleGroup/{index.jsx → index.js} +3 -6
  126. package/dist/components/ToggleGroup/{toggleGroupItem.jsx → toggleGroupItem.js} +14 -4
  127. package/dist/components/ToggleSwitch/{index.jsx → index.js} +2 -6
  128. package/dist/components/Tooltip/{index.jsx → index.js} +2 -11
  129. package/package.json +11 -2
  130. package/dist/app/layout.d.ts +0 -7
  131. package/dist/app/layout.jsx +0 -13
  132. package/dist/app/page.d.ts +0 -2
  133. package/dist/app/page.jsx +0 -9
  134. package/dist/app/template/colorPicker.d.ts +0 -7
  135. package/dist/app/template/colorPicker.jsx +0 -19
  136. package/dist/app/template/theme.d.ts +0 -12
  137. package/dist/app/template/theme.jsx +0 -17
  138. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
  139. package/dist/stories/Welcome.d.ts +0 -3
  140. package/dist/stories/Welcome.jsx +0 -48
  141. package/dist/stories/accordion/Accordion.stories.d.ts +0 -71
  142. package/dist/stories/accordion/Accordion.stories.jsx +0 -79
  143. package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +0 -107
  144. package/dist/stories/alert-dialog/AlertDialog.stories.jsx +0 -73
  145. package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +0 -68
  146. package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +0 -106
  147. package/dist/stories/avatar/Avatar.stories.d.ts +0 -127
  148. package/dist/stories/avatar/Avatar.stories.jsx +0 -105
  149. package/dist/stories/badge/Badge.stories.d.ts +0 -133
  150. package/dist/stories/badge/Badge.stories.jsx +0 -130
  151. package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +0 -103
  152. package/dist/stories/bubble-chart/BubbleChart.stories.jsx +0 -176
  153. package/dist/stories/button/Button.stories.d.ts +0 -148
  154. package/dist/stories/button/Button.stories.jsx +0 -98
  155. package/dist/stories/button/IconButton.stories.d.ts +0 -125
  156. package/dist/stories/button/IconButton.stories.jsx +0 -93
  157. package/dist/stories/callout/Callout.stories.d.ts +0 -129
  158. package/dist/stories/callout/Callout.stories.jsx +0 -205
  159. package/dist/stories/card/Card.stories.d.ts +0 -100
  160. package/dist/stories/card/Card.stories.jsx +0 -134
  161. package/dist/stories/checkbox/Checkbox.stories.d.ts +0 -147
  162. package/dist/stories/checkbox/Checkbox.stories.jsx +0 -166
  163. package/dist/stories/checkbox/CheckboxCard.stories.d.ts +0 -129
  164. package/dist/stories/checkbox/CheckboxCard.stories.jsx +0 -125
  165. package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +0 -91
  166. package/dist/stories/checkbox/CheckboxGroup.stories.jsx +0 -144
  167. package/dist/stories/context-menu/ContextMenu.stories.d.ts +0 -113
  168. package/dist/stories/context-menu/ContextMenu.stories.jsx +0 -155
  169. package/dist/stories/data-list/DataList.stories.d.ts +0 -97
  170. package/dist/stories/data-list/DataList.stories.jsx +0 -185
  171. package/dist/stories/dialog/Dialog.stories.d.ts +0 -88
  172. package/dist/stories/dialog/Dialog.stories.jsx +0 -82
  173. package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +0 -181
  174. package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +0 -236
  175. package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +0 -112
  176. package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +0 -170
  177. package/dist/stories/header/Header.stories.d.ts +0 -112
  178. package/dist/stories/header/Header.stories.jsx +0 -116
  179. package/dist/stories/hover-card/HoverCard.stories.d.ts +0 -107
  180. package/dist/stories/hover-card/HoverCard.stories.jsx +0 -98
  181. package/dist/stories/inset/Inset.stories.d.ts +0 -58
  182. package/dist/stories/inset/Inset.stories.jsx +0 -79
  183. package/dist/stories/label/Label.stories.d.ts +0 -94
  184. package/dist/stories/label/Label.stories.jsx +0 -112
  185. package/dist/stories/menubar/Menubar.stories.d.ts +0 -119
  186. package/dist/stories/menubar/Menubar.stories.jsx +0 -135
  187. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +0 -385
  188. package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +0 -144
  189. package/dist/stories/pie-chart/PieChart.stories.d.ts +0 -186
  190. package/dist/stories/pie-chart/PieChart.stories.jsx +0 -300
  191. package/dist/stories/popover/Popover.stories.d.ts +0 -78
  192. package/dist/stories/popover/Popover.stories.jsx +0 -107
  193. package/dist/stories/progress/Progress.stories.d.ts +0 -113
  194. package/dist/stories/progress/Progress.stories.jsx +0 -82
  195. package/dist/stories/radar-chart/RadarChart.stories.d.ts +0 -111
  196. package/dist/stories/radar-chart/RadarChart.stories.jsx +0 -200
  197. package/dist/stories/radio/Radio.stories.d.ts +0 -108
  198. package/dist/stories/radio/Radio.stories.jsx +0 -94
  199. package/dist/stories/radio/RadioCards.stories.d.ts +0 -127
  200. package/dist/stories/radio/RadioCards.stories.jsx +0 -153
  201. package/dist/stories/radio/RadioGroup.stories.d.ts +0 -111
  202. package/dist/stories/radio/RadioGroup.stories.jsx +0 -142
  203. package/dist/stories/scroll-area/ScrollArea.stories.d.ts +0 -59
  204. package/dist/stories/scroll-area/ScrollArea.stories.jsx +0 -123
  205. package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +0 -97
  206. package/dist/stories/segmented-control/SegmentedControl.stories.jsx +0 -101
  207. package/dist/stories/select/Select.stories.d.ts +0 -116
  208. package/dist/stories/select/Select.stories.jsx +0 -149
  209. package/dist/stories/separator/Separator.stories.d.ts +0 -93
  210. package/dist/stories/separator/Separator.stories.jsx +0 -106
  211. package/dist/stories/skeleton/Skeleton.stories.d.ts +0 -88
  212. package/dist/stories/skeleton/Skeleton.stories.jsx +0 -119
  213. package/dist/stories/slider/Slider.stories.d.ts +0 -114
  214. package/dist/stories/slider/Slider.stories.jsx +0 -94
  215. package/dist/stories/spinner/Spinner.stories.d.ts +0 -83
  216. package/dist/stories/spinner/Spinner.stories.jsx +0 -112
  217. package/dist/stories/switch/Switch.stories.d.ts +0 -146
  218. package/dist/stories/switch/Switch.stories.jsx +0 -119
  219. package/dist/stories/tab-nav/TabNav.stories.d.ts +0 -55
  220. package/dist/stories/tab-nav/TabNav.stories.jsx +0 -68
  221. package/dist/stories/table/Table.stories.d.ts +0 -87
  222. package/dist/stories/table/Table.stories.jsx +0 -106
  223. package/dist/stories/tabs/Tabs.stories.d.ts +0 -55
  224. package/dist/stories/tabs/Tabs.stories.jsx +0 -76
  225. package/dist/stories/text/Text.stories.d.ts +0 -74
  226. package/dist/stories/text/Text.stories.jsx +0 -91
  227. package/dist/stories/textArea/TextArea.stories.d.ts +0 -117
  228. package/dist/stories/textArea/TextArea.stories.jsx +0 -112
  229. package/dist/stories/textfield/TextField.stories.d.ts +0 -116
  230. package/dist/stories/textfield/TextField.stories.jsx +0 -120
  231. package/dist/stories/toast/Toast.stories.d.ts +0 -138
  232. package/dist/stories/toast/Toast.stories.jsx +0 -122
  233. package/dist/stories/toggle/Toggle.stories.d.ts +0 -115
  234. package/dist/stories/toggle/Toggle.stories.jsx +0 -106
  235. package/dist/stories/toggle/ToggleGroup.stories.d.ts +0 -103
  236. package/dist/stories/toggle/ToggleGroup.stories.jsx +0 -127
  237. package/dist/stories/tooltip/Tooltip.stories.d.ts +0 -93
  238. package/dist/stories/tooltip/Tooltip.stories.jsx +0 -91
  239. 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;