@lotte-innovate/ui-component-test 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. package/README.md +163 -163
  2. package/dist/Typography/Header/{index.jsx → index.js} +2 -5
  3. package/dist/Typography/Text/{index.jsx → index.js} +3 -6
  4. package/dist/Typography/index.d.ts +2 -2
  5. package/dist/Typography/index.js +3 -3
  6. package/dist/app/layout.d.ts +1 -1
  7. package/dist/app/{layout.jsx → layout.js} +2 -3
  8. package/dist/app/page.d.ts +1 -2
  9. package/dist/app/page.js +25 -0
  10. package/dist/app/template/badgeTemplate.d.ts +1 -2
  11. package/dist/app/template/badgeTemplate.js +11 -0
  12. package/dist/app/template/buttonTemplate.d.ts +1 -2
  13. package/dist/app/template/buttonTemplate.js +11 -0
  14. package/dist/app/template/colorPicker.d.ts +1 -2
  15. package/dist/app/template/colorPicker.js +14 -0
  16. package/dist/app/template/textTemplate.d.ts +1 -2
  17. package/dist/app/template/textTemplate.js +23 -0
  18. package/dist/app/template/theme.d.ts +2 -2
  19. package/dist/app/template/theme.js +12 -0
  20. package/dist/components/Accordion/{index.jsx → index.js} +5 -17
  21. package/dist/components/AlertDialog/{AlertDialogAction.jsx → AlertDialogAction.js} +3 -4
  22. package/dist/components/AlertDialog/{AlertDialogCancel.jsx → AlertDialogCancel.js} +3 -4
  23. package/dist/components/AlertDialog/{AlertDialogContent.jsx → AlertDialogContent.js} +3 -7
  24. package/dist/components/AlertDialog/{AlertDialogDescription.jsx → AlertDialogDescription.js} +14 -4
  25. package/dist/components/AlertDialog/{AlertDialogTitle.jsx → AlertDialogTitle.js} +14 -4
  26. package/dist/components/AlertDialog/{AlertDialogTrigger.jsx → AlertDialogTrigger.js} +3 -4
  27. package/dist/components/AlertDialog/{index.jsx → index.js} +14 -2
  28. package/dist/components/AspectRatio/{index.jsx → index.js} +3 -4
  29. package/dist/components/Avatar/{index.jsx → index.js} +3 -7
  30. package/dist/components/Badge/{index.jsx → index.js} +3 -4
  31. package/dist/components/BubbleChart/index.d.ts +1 -2
  32. package/dist/components/BubbleChart/{index.jsx → index.js} +2 -2
  33. package/dist/components/Button/{index.jsx → index.js} +3 -4
  34. package/dist/components/Callout/{CalloutIcon.jsx → CalloutIcon.js} +3 -8
  35. package/dist/components/Callout/{CalloutText.jsx → CalloutText.js} +14 -4
  36. package/dist/components/Callout/{index.jsx → index.js} +3 -6
  37. package/dist/components/Card/{index.jsx → index.js} +3 -4
  38. package/dist/components/Checkbox/{index.jsx → index.js} +3 -11
  39. package/dist/components/CheckboxCard/{index.jsx → index.js} +3 -5
  40. package/dist/components/CheckboxGroup/{CheckboxGroupItem.jsx → CheckboxGroupItem.js} +14 -6
  41. package/dist/components/CheckboxGroup/{index.jsx → index.js} +2 -5
  42. package/dist/components/ContextMenu/{ContextMenuCheckboxItem.jsx → ContextMenuCheckboxItem.js} +14 -7
  43. package/dist/components/ContextMenu/{ContextMenuContent.jsx → ContextMenuContent.js} +3 -6
  44. package/dist/components/ContextMenu/{ContextMenuGroup.jsx → ContextMenuGroup.js} +14 -4
  45. package/dist/components/ContextMenu/{ContextMenuItem.jsx → ContextMenuItem.js} +3 -5
  46. package/dist/components/ContextMenu/{ContextMenuItemIndicator.jsx → ContextMenuItemIndicator.js} +3 -4
  47. package/dist/components/ContextMenu/{ContextMenuLabel.jsx → ContextMenuLabel.js} +3 -4
  48. package/dist/components/ContextMenu/{ContextMenuRadioGroup.jsx → ContextMenuRadioGroup.js} +14 -6
  49. package/dist/components/ContextMenu/{ContextMenuRadioItem.jsx → ContextMenuRadioItem.js} +14 -7
  50. package/dist/components/ContextMenu/{ContextMenuSeparator.jsx → ContextMenuSeparator.js} +14 -4
  51. package/dist/components/ContextMenu/{ContextMenuSubContent.jsx → ContextMenuSubContent.js} +6 -9
  52. package/dist/components/ContextMenu/{ContextMenuSubTrigger.jsx → ContextMenuSubTrigger.js} +14 -9
  53. package/dist/components/ContextMenu/{ContextMenuTrigger.jsx → ContextMenuTrigger.js} +14 -4
  54. package/dist/components/ContextMenu/{index.jsx → index.js} +14 -4
  55. package/dist/components/DataList/{DataListItem.jsx → DataListItem.js} +3 -4
  56. package/dist/components/DataList/{DataListLabel.jsx → DataListLabel.js} +3 -4
  57. package/dist/components/DataList/{DataListValue.jsx → DataListValue.js} +3 -4
  58. package/dist/components/DataList/{index.jsx → index.js} +14 -6
  59. package/dist/components/Dialog/{DialogAction.jsx → DialogAction.js} +14 -4
  60. package/dist/components/Dialog/{DialogCancel.jsx → DialogCancel.js} +14 -4
  61. package/dist/components/Dialog/{DialogContent.jsx → DialogContent.js} +3 -4
  62. package/dist/components/Dialog/{DialogDescription.jsx → DialogDescription.js} +14 -4
  63. package/dist/components/Dialog/{DialogSlot.jsx → DialogSlot.js} +14 -4
  64. package/dist/components/Dialog/{DialogTitle.jsx → DialogTitle.js} +14 -4
  65. package/dist/components/Dialog/{DialogTrigger.jsx → DialogTrigger.js} +14 -4
  66. package/dist/components/Dialog/{index.jsx → index.js} +14 -4
  67. package/dist/components/DoughnutChart/index.d.ts +1 -2
  68. package/dist/components/DoughnutChart/{index.jsx → index.js} +2 -2
  69. package/dist/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js} +14 -6
  70. package/dist/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js} +7 -10
  71. package/dist/components/DropdownMenu/{DropdownMenuCheckboxItem.jsx → DropdownMenuCheckboxItem.js} +14 -7
  72. package/dist/components/DropdownMenu/{DropdownMenuContent.jsx → DropdownMenuContent.js} +3 -6
  73. package/dist/components/DropdownMenu/{DropdownMenuItem.jsx → DropdownMenuItem.js} +3 -5
  74. package/dist/components/DropdownMenu/{DropdownMenuItemIndicator.jsx → DropdownMenuItemIndicator.js} +3 -4
  75. package/dist/components/DropdownMenu/{DropdownMenuLable.jsx → DropdownMenuLable.js} +3 -4
  76. package/dist/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js} +14 -7
  77. package/dist/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js} +14 -2
  78. package/dist/components/DropdownMenu/{DropdownMenuSub.jsx → DropdownMenuSub.js} +14 -2
  79. package/dist/components/DropdownMenu/{DropdownMenuSubTrigger.jsx → DropdownMenuSubTrigger.js} +14 -7
  80. package/dist/components/DropdownMenu/{DropdownMenuTrigger.jsx → DropdownMenuTrigger.js} +14 -4
  81. package/dist/components/DropdownMenu/{index.jsx → index.js} +14 -2
  82. package/dist/components/HoverCard/{HoverCardContent.jsx → HoverCardContent.js} +3 -4
  83. package/dist/components/HoverCard/{HoverCardTrigger.jsx → HoverCardTrigger.js} +14 -4
  84. package/dist/components/HoverCard/{index.jsx → index.js} +14 -4
  85. package/dist/components/IconButton/{index.jsx → index.js} +2 -3
  86. package/dist/components/Inset/{index.jsx → index.js} +3 -6
  87. package/dist/components/Label/{index.jsx → index.js} +2 -3
  88. package/dist/components/Menubar/{MenubarCheckboxItem.jsx → MenubarCheckboxItem.js} +14 -7
  89. package/dist/components/Menubar/{MenubarContent.jsx → MenubarContent.js} +7 -10
  90. package/dist/components/Menubar/{MenubarItem.jsx → MenubarItem.js} +3 -5
  91. package/dist/components/Menubar/{MenubarItemIndicator.jsx → MenubarItemIndicator.js} +3 -4
  92. package/dist/components/Menubar/{MenubarMenu.jsx → MenubarMenu.js} +14 -2
  93. package/dist/components/Menubar/{MenubarRadioGroup.jsx → MenubarRadioGroup.js} +14 -6
  94. package/dist/components/Menubar/{MenubarRadioItem.jsx → MenubarRadioItem.js} +14 -7
  95. package/dist/components/Menubar/{MenubarSeparator.jsx → MenubarSeparator.js} +14 -4
  96. package/dist/components/Menubar/{MenubarSub.jsx → MenubarSub.js} +14 -2
  97. package/dist/components/Menubar/{MenubarSubContent.jsx → MenubarSubContent.js} +4 -5
  98. package/dist/components/Menubar/{MenubarSubTrigger.jsx → MenubarSubTrigger.js} +14 -7
  99. package/dist/components/Menubar/{MenubarTrigger.jsx → MenubarTrigger.js} +3 -4
  100. package/dist/components/Menubar/{index.jsx → index.js} +3 -6
  101. package/dist/components/NavigationMenu/{NavigationMenuContent.jsx → NavigationMenuContent.js} +3 -4
  102. package/dist/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
  103. package/dist/components/NavigationMenu/{NavigationMenuItem.jsx → NavigationMenuItem.js} +14 -4
  104. package/dist/components/NavigationMenu/{NavigationMenuLink.jsx → NavigationMenuLink.js} +3 -4
  105. package/dist/components/NavigationMenu/{NavigationMenuList.jsx → NavigationMenuList.js} +3 -5
  106. package/dist/components/NavigationMenu/{NavigationMenuTrigger.jsx → NavigationMenuTrigger.js} +3 -5
  107. package/dist/components/NavigationMenu/{NavigationMenuViewport.jsx → NavigationMenuViewport.js} +3 -4
  108. package/dist/components/NavigationMenu/{index.jsx → index.js} +14 -6
  109. package/dist/components/PieChart/index.d.ts +1 -2
  110. package/dist/components/PieChart/{index.jsx → index.js} +2 -2
  111. package/dist/components/Popover/{PopoverClose.jsx → PopoverClose.js} +14 -4
  112. package/dist/components/Popover/{PopoverContent.jsx → PopoverContent.js} +3 -4
  113. package/dist/components/Popover/{PopoverTrigger.jsx → PopoverTrigger.js} +14 -4
  114. package/dist/components/Popover/{index.jsx → index.js} +14 -4
  115. package/dist/components/Progress/{index.jsx → index.js} +3 -4
  116. package/dist/components/RadarChart/index.d.ts +1 -2
  117. package/dist/components/RadarChart/{index.jsx → index.js} +2 -2
  118. package/dist/components/Radio/{index.jsx → index.js} +13 -8
  119. package/dist/components/RadioCards/{RadioCardsItem.jsx → RadioCardsItem.js} +14 -4
  120. package/dist/components/RadioCards/{index.jsx → index.js} +3 -6
  121. package/dist/components/RadioGroup/{RadioGroupItem.jsx → RadioGroupItem.js} +14 -4
  122. package/dist/components/RadioGroup/{index.jsx → index.js} +14 -6
  123. package/dist/components/ScrollArea/{index.jsx → index.js} +14 -6
  124. package/dist/components/SegmentedControl/{SegmentedControlItem.jsx → SegmentedControlItem.js} +14 -4
  125. package/dist/components/SegmentedControl/{index.jsx → index.js} +2 -5
  126. package/dist/components/Select/{index.jsx → index.js} +8 -23
  127. package/dist/components/Separator/{index.jsx → index.js} +2 -5
  128. package/dist/components/Skeleton/{index.jsx → index.js} +2 -5
  129. package/dist/components/Slider/{index.jsx → index.js} +2 -3
  130. package/dist/components/Spinner/{index.jsx → index.js} +2 -5
  131. package/dist/components/TabNav/{index.jsx → index.js} +14 -8
  132. package/dist/components/Table/{index.jsx → index.js} +8 -23
  133. package/dist/components/Tabs/{index.jsx → index.js} +5 -14
  134. package/dist/components/TextArea/{index.jsx → index.js} +2 -3
  135. package/dist/components/TextField/{index.jsx → index.js} +3 -8
  136. package/dist/components/Toast/{ToastActionButton.jsx → ToastActionButton.js} +3 -4
  137. package/dist/components/Toast/{ToastDescription.jsx → ToastDescription.js} +14 -6
  138. package/dist/components/Toast/{ToastTitle.jsx → ToastTitle.js} +14 -4
  139. package/dist/components/Toast/{index.jsx → index.js} +3 -9
  140. package/dist/components/Toggle/{ToggleWithText.jsx → ToggleWithText.js} +4 -6
  141. package/dist/components/Toggle/{index.jsx → index.js} +3 -4
  142. package/dist/components/ToggleGroup/{index.jsx → index.js} +3 -6
  143. package/dist/components/ToggleGroup/{toggleGroupItem.jsx → toggleGroupItem.js} +14 -4
  144. package/dist/components/ToggleSwitch/{index.jsx → index.js} +2 -6
  145. package/dist/components/Tooltip/{index.jsx → index.js} +2 -11
  146. package/dist/components/index.d.ts +2 -0
  147. package/dist/index.d.ts +5 -0
  148. package/dist/index.js +5 -3
  149. package/dist/stories/Welcome.d.ts +1 -2
  150. package/dist/stories/Welcome.js +30 -0
  151. package/dist/stories/accordion/Accordion.stories.d.ts +1 -1
  152. package/dist/stories/accordion/{Accordion.stories.jsx → Accordion.stories.js} +2 -20
  153. package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +1 -1
  154. package/dist/stories/alert-dialog/{AlertDialog.stories.jsx → AlertDialog.stories.js} +2 -15
  155. package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +3 -3
  156. package/dist/stories/aspect-ratio/AspectRatio.stories.js +78 -0
  157. package/dist/stories/avatar/Avatar.stories.d.ts +5 -5
  158. package/dist/stories/avatar/{Avatar.stories.jsx → Avatar.stories.js} +6 -17
  159. package/dist/stories/badge/Badge.stories.d.ts +6 -6
  160. package/dist/stories/badge/{Badge.stories.jsx → Badge.stories.js} +7 -51
  161. package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +4 -5
  162. package/dist/stories/bubble-chart/{BubbleChart.stories.jsx → BubbleChart.stories.js} +4 -12
  163. package/dist/stories/button/Button.stories.d.ts +7 -7
  164. package/dist/stories/button/{Button.stories.jsx → Button.stories.js} +8 -41
  165. package/dist/stories/button/IconButton.stories.d.ts +4 -4
  166. package/dist/stories/button/{IconButton.stories.jsx → IconButton.stories.js} +5 -18
  167. package/dist/stories/callout/Callout.stories.d.ts +7 -7
  168. package/dist/stories/callout/Callout.stories.js +104 -0
  169. package/dist/stories/card/Card.stories.d.ts +5 -5
  170. package/dist/stories/card/{Card.stories.jsx → Card.stories.js} +6 -56
  171. package/dist/stories/checkbox/Checkbox.stories.d.ts +6 -6
  172. package/dist/stories/checkbox/{Checkbox.stories.jsx → Checkbox.stories.js} +7 -63
  173. package/dist/stories/checkbox/CheckboxCard.stories.d.ts +5 -5
  174. package/dist/stories/checkbox/{CheckboxCard.stories.jsx → CheckboxCard.stories.js} +6 -41
  175. package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +3 -3
  176. package/dist/stories/checkbox/{CheckboxGroup.stories.jsx → CheckboxGroup.stories.js} +4 -76
  177. package/dist/stories/context-menu/ContextMenu.stories.d.ts +4 -4
  178. package/dist/stories/context-menu/{ContextMenu.stories.jsx → ContextMenu.stories.js} +5 -74
  179. package/dist/stories/data-list/DataList.stories.d.ts +4 -4
  180. package/dist/stories/data-list/DataList.stories.js +87 -0
  181. package/dist/stories/dialog/Dialog.stories.d.ts +1 -1
  182. package/dist/stories/dialog/{Dialog.stories.jsx → Dialog.stories.js} +2 -25
  183. package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +4 -5
  184. package/dist/stories/doughnut-chart/{DoughnutChart.stories.jsx → DoughnutChart.stories.js} +4 -12
  185. package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +4 -4
  186. package/dist/stories/dropdown-menu/DropdownMenu.stories.js +75 -0
  187. package/dist/stories/header/Header.stories.d.ts +6 -6
  188. package/dist/stories/header/{Header.stories.jsx → Header.stories.js} +7 -26
  189. package/dist/stories/hover-card/HoverCard.stories.d.ts +2 -2
  190. package/dist/stories/hover-card/{HoverCard.stories.jsx → HoverCard.stories.js} +3 -30
  191. package/dist/stories/inset/Inset.stories.d.ts +2 -2
  192. package/dist/stories/inset/{Inset.stories.jsx → Inset.stories.js} +12 -27
  193. package/dist/stories/label/Label.stories.d.ts +4 -4
  194. package/dist/stories/label/{Label.stories.jsx → Label.stories.js} +5 -26
  195. package/dist/stories/menubar/Menubar.stories.d.ts +1 -1
  196. package/dist/stories/menubar/{Menubar.stories.jsx → Menubar.stories.js} +8 -45
  197. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +2 -2
  198. package/dist/stories/navigation-menu/{NavigationMenu.stories.jsx → NavigationMenu.stories.js} +4 -69
  199. package/dist/stories/pie-chart/PieChart.stories.d.ts +5 -6
  200. package/dist/stories/pie-chart/{PieChart.stories.jsx → PieChart.stories.js} +13 -32
  201. package/dist/stories/popover/Popover.stories.d.ts +2 -2
  202. package/dist/stories/popover/{Popover.stories.jsx → Popover.stories.js} +9 -42
  203. package/dist/stories/progress/Progress.stories.d.ts +4 -4
  204. package/dist/stories/progress/{Progress.stories.jsx → Progress.stories.js} +6 -11
  205. package/dist/stories/radar-chart/RadarChart.stories.d.ts +5 -6
  206. package/dist/stories/radar-chart/{RadarChart.stories.jsx → RadarChart.stories.js} +5 -4
  207. package/dist/stories/radio/Radio.stories.d.ts +3 -3
  208. package/dist/stories/radio/{Radio.stories.jsx → Radio.stories.js} +4 -14
  209. package/dist/stories/radio/RadioCards.stories.d.ts +4 -4
  210. package/dist/stories/radio/{RadioCards.stories.jsx → RadioCards.stories.js} +5 -64
  211. package/dist/stories/radio/RadioGroup.stories.d.ts +4 -4
  212. package/dist/stories/radio/{RadioGroup.stories.jsx → RadioGroup.stories.js} +5 -59
  213. package/dist/stories/scroll-area/ScrollArea.stories.d.ts +2 -2
  214. package/dist/stories/scroll-area/ScrollArea.stories.js +63 -0
  215. package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +4 -4
  216. package/dist/stories/segmented-control/{SegmentedControl.stories.jsx → SegmentedControl.stories.js} +5 -26
  217. package/dist/stories/select/Select.stories.d.ts +5 -5
  218. package/dist/stories/select/{Select.stories.jsx → Select.stories.js} +6 -67
  219. package/dist/stories/separator/Separator.stories.d.ts +4 -4
  220. package/dist/stories/separator/{Separator.stories.jsx → Separator.stories.js} +5 -29
  221. package/dist/stories/skeleton/Skeleton.stories.d.ts +5 -5
  222. package/dist/stories/skeleton/{Skeleton.stories.jsx → Skeleton.stories.js} +6 -33
  223. package/dist/stories/slider/Slider.stories.d.ts +4 -4
  224. package/dist/stories/slider/{Slider.stories.jsx → Slider.stories.js} +5 -16
  225. package/dist/stories/spinner/Spinner.stories.d.ts +5 -5
  226. package/dist/stories/spinner/{Spinner.stories.jsx → Spinner.stories.js} +6 -31
  227. package/dist/stories/switch/Switch.stories.d.ts +4 -4
  228. package/dist/stories/switch/{Switch.stories.jsx → Switch.stories.js} +5 -16
  229. package/dist/stories/tab-nav/TabNav.stories.d.ts +1 -1
  230. package/dist/stories/tab-nav/{TabNav.stories.jsx → TabNav.stories.js} +2 -11
  231. package/dist/stories/table/Table.stories.d.ts +1 -1
  232. package/dist/stories/table/{Table.stories.jsx → Table.stories.js} +2 -29
  233. package/dist/stories/tabs/Tabs.stories.d.ts +1 -1
  234. package/dist/stories/tabs/{Tabs.stories.jsx → Tabs.stories.js} +2 -19
  235. package/dist/stories/text/Text.stories.d.ts +5 -5
  236. package/dist/stories/text/{Text.stories.jsx → Text.stories.js} +6 -21
  237. package/dist/stories/textArea/TextArea.stories.d.ts +5 -5
  238. package/dist/stories/textArea/{TextArea.stories.jsx → TextArea.stories.js} +6 -22
  239. package/dist/stories/textfield/TextField.stories.d.ts +5 -5
  240. package/dist/stories/textfield/{TextField.stories.jsx → TextField.stories.js} +6 -38
  241. package/dist/stories/toast/Toast.stories.d.ts +3 -3
  242. package/dist/stories/toast/{Toast.stories.jsx → Toast.stories.js} +4 -22
  243. package/dist/stories/toggle/Toggle.stories.d.ts +5 -5
  244. package/dist/stories/toggle/{Toggle.stories.jsx → Toggle.stories.js} +6 -23
  245. package/dist/stories/toggle/ToggleGroup.stories.d.ts +3 -3
  246. package/dist/stories/toggle/{ToggleGroup.stories.jsx → ToggleGroup.stories.js} +6 -39
  247. package/dist/stories/tooltip/Tooltip.stories.d.ts +3 -3
  248. package/dist/stories/tooltip/{Tooltip.stories.jsx → Tooltip.stories.js} +4 -17
  249. package/dist/tsconfig.tsbuildinfo +1 -1
  250. package/package.json +118 -119
  251. package/dist/app/page.jsx +0 -6
  252. package/dist/app/template/badgeTemplate.jsx +0 -82
  253. package/dist/app/template/buttonTemplate.jsx +0 -82
  254. package/dist/app/template/colorPicker.jsx +0 -19
  255. package/dist/app/template/textTemplate.jsx +0 -72
  256. package/dist/app/template/theme.jsx +0 -44
  257. package/dist/components/Input/Input.stories.d.ts +0 -77
  258. package/dist/components/Input/Input.stories.jsx +0 -68
  259. package/dist/components/Input/index.d.ts +0 -14
  260. package/dist/components/Input/index.jsx +0 -53
  261. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
  262. package/dist/stories/Welcome.jsx +0 -48
  263. package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +0 -106
  264. package/dist/stories/callout/Callout.stories.jsx +0 -205
  265. package/dist/stories/data-list/DataList.stories.jsx +0 -185
  266. package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +0 -170
  267. package/dist/stories/scroll-area/ScrollArea.stories.jsx +0 -123
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
24
  import { radiusOptions, commonArgTypes, sizeOptions, appearanceOptions } from '../../constants';
24
25
  import { ContextMenuContent, ContextMenu, ContextMenuTrigger, ContextMenuLabel, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuGroup, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSubTrigger, ContextMenuSubContent, } from 'components/ContextMenu';
25
26
  import { Text } from 'Typography/Text';
@@ -69,87 +70,17 @@ var meta = {
69
70
  export default meta;
70
71
  export var Default = function (_a) {
71
72
  var args = __rest(_a, []);
72
- return (<ContextMenu {...args}>
73
- <ContextMenuTrigger>
74
- <Text>Right-click here.</Text>
75
- </ContextMenuTrigger>
76
- <ContextMenuContent>
77
- <ContextMenuLabel>라벨</ContextMenuLabel>
78
- <ContextMenuItem shortcut="⌘ T">기본 아이템</ContextMenuItem>
79
- <ContextMenuItem disabled>사용불가 아이템</ContextMenuItem>
80
- <ContextMenuSeparator />
81
- <ContextMenuGroup>
82
- <ContextMenuItem>그룹 아이템1</ContextMenuItem>
83
- <ContextMenuItem>그룹 아이템2</ContextMenuItem>
84
- </ContextMenuGroup>
85
- <ContextMenuSeparator />
86
- <ContextMenuCheckboxItem checked>checked 아이템</ContextMenuCheckboxItem>
87
- <ContextMenuCheckboxItem checked={false}>unchecked 아이템</ContextMenuCheckboxItem>
88
- <ContextMenuSeparator />
89
- <ContextMenuRadioGroup value={'apple'}>
90
- <ContextMenuRadioItem value={'apple'}>라디오 아이템1</ContextMenuRadioItem>
91
- <ContextMenuRadioItem value={'banana'}>라디오 아이템2</ContextMenuRadioItem>
92
- </ContextMenuRadioGroup>
93
- <ContextMenuSeparator />
94
- <ContextMenuSubTrigger>
95
- More Menu{' '}
96
- <ContextMenuSubContent>
97
- <ContextMenuItem>서브 아이템1</ContextMenuItem>
98
- <ContextMenuItem>서브 아이템2</ContextMenuItem>
99
- </ContextMenuSubContent>
100
- </ContextMenuSubTrigger>
101
- </ContextMenuContent>
102
- </ContextMenu>);
73
+ return (_jsxs(ContextMenu, __assign({}, args, { children: [_jsx(ContextMenuTrigger, { children: _jsx(Text, { children: "Right-click here." }) }), _jsxs(ContextMenuContent, { children: [_jsx(ContextMenuLabel, { children: "\uB77C\uBCA8" }), _jsx(ContextMenuItem, { shortcut: "\u2318 T", children: "\uAE30\uBCF8 \uC544\uC774\uD15C" }), _jsx(ContextMenuItem, { disabled: true, children: "\uC0AC\uC6A9\uBD88\uAC00 \uC544\uC774\uD15C" }), _jsx(ContextMenuSeparator, {}), _jsxs(ContextMenuGroup, { children: [_jsx(ContextMenuItem, { children: "\uADF8\uB8F9 \uC544\uC774\uD15C1" }), _jsx(ContextMenuItem, { children: "\uADF8\uB8F9 \uC544\uC774\uD15C2" })] }), _jsx(ContextMenuSeparator, {}), _jsx(ContextMenuCheckboxItem, { checked: true, children: "checked \uC544\uC774\uD15C" }), _jsx(ContextMenuCheckboxItem, { checked: false, children: "unchecked \uC544\uC774\uD15C" }), _jsx(ContextMenuSeparator, {}), _jsxs(ContextMenuRadioGroup, { value: 'apple', children: [_jsx(ContextMenuRadioItem, { value: 'apple', children: "\uB77C\uB514\uC624 \uC544\uC774\uD15C1" }), _jsx(ContextMenuRadioItem, { value: 'banana', children: "\uB77C\uB514\uC624 \uC544\uC774\uD15C2" })] }), _jsx(ContextMenuSeparator, {}), _jsxs(ContextMenuSubTrigger, { children: ["More Menu", ' ', _jsxs(ContextMenuSubContent, { children: [_jsx(ContextMenuItem, { children: "\uC11C\uBE0C \uC544\uC774\uD15C1" }), _jsx(ContextMenuItem, { children: "\uC11C\uBE0C \uC544\uC774\uD15C2" })] })] })] })] })));
103
74
  };
104
75
  export var Radius = function (_a) {
105
76
  var args = __rest(_a, []);
106
- return (<div className="flex space-x-2">
107
- {radiusOptions.map(function (radius) { return (<ContextMenu key={radius} radius={radius} {...args}>
108
- <ContextMenuTrigger className="w-[100px]">{radius}</ContextMenuTrigger>
109
- <ContextMenuContent>
110
- <ContextMenuItem>메뉴1</ContextMenuItem>
111
- <ContextMenuItem>메뉴2</ContextMenuItem>
112
- </ContextMenuContent>
113
- </ContextMenu>); })}
114
- </div>);
77
+ return (_jsx("div", { className: "flex space-x-2", children: radiusOptions.map(function (radius) { return (_jsxs(ContextMenu, __assign({ radius: radius }, args, { children: [_jsx(ContextMenuTrigger, { className: "w-[100px]", children: radius }), _jsxs(ContextMenuContent, { children: [_jsx(ContextMenuItem, { children: "\uBA54\uB2741" }), _jsx(ContextMenuItem, { children: "\uBA54\uB2742" })] })] }), radius)); }) }));
115
78
  };
116
79
  export var Size = function (_a) {
117
80
  var args = __rest(_a, []);
118
- return (<div className="flex space-x-2">
119
- <ContextMenu size={'small'} {...args}>
120
- <ContextMenuTrigger className="w-[100px]">small</ContextMenuTrigger>
121
- <ContextMenuContent>
122
- <ContextMenuItem>메뉴1</ContextMenuItem>
123
- <ContextMenuItem>메뉴2</ContextMenuItem>
124
- </ContextMenuContent>
125
- </ContextMenu>
126
-
127
- <ContextMenu size={'medium'} {...args}>
128
- <ContextMenuTrigger className="w-[100px]">medium</ContextMenuTrigger>
129
- <ContextMenuContent>
130
- <ContextMenuItem>메뉴1</ContextMenuItem>
131
- <ContextMenuItem>메뉴2</ContextMenuItem>
132
- </ContextMenuContent>
133
- </ContextMenu>
134
- </div>);
81
+ return (_jsxs("div", { className: "flex space-x-2", children: [_jsxs(ContextMenu, __assign({ size: 'small' }, args, { children: [_jsx(ContextMenuTrigger, { className: "w-[100px]", children: "small" }), _jsxs(ContextMenuContent, { children: [_jsx(ContextMenuItem, { children: "\uBA54\uB2741" }), _jsx(ContextMenuItem, { children: "\uBA54\uB2742" })] })] })), _jsxs(ContextMenu, __assign({ size: 'medium' }, args, { children: [_jsx(ContextMenuTrigger, { className: "w-[100px]", children: "medium" }), _jsxs(ContextMenuContent, { children: [_jsx(ContextMenuItem, { children: "\uBA54\uB2741" }), _jsx(ContextMenuItem, { children: "\uBA54\uB2742" })] })] }))] }));
135
82
  };
136
83
  export var Appearance = function (_a) {
137
84
  var args = __rest(_a, []);
138
- return (<div className="flex space-x-2">
139
- <ContextMenu appearance={'solid'} {...args}>
140
- <ContextMenuTrigger className="w-[100px]">solid</ContextMenuTrigger>
141
- <ContextMenuContent>
142
- <ContextMenuItem>메뉴1</ContextMenuItem>
143
- <ContextMenuItem>메뉴2</ContextMenuItem>
144
- </ContextMenuContent>
145
- </ContextMenu>
146
-
147
- <ContextMenu appearance={'soft'} {...args}>
148
- <ContextMenuTrigger className="w-[100px]">soft</ContextMenuTrigger>
149
- <ContextMenuContent>
150
- <ContextMenuItem>메뉴1</ContextMenuItem>
151
- <ContextMenuItem>메뉴2</ContextMenuItem>
152
- </ContextMenuContent>
153
- </ContextMenu>
154
- </div>);
85
+ return (_jsxs("div", { className: "flex space-x-2", children: [_jsxs(ContextMenu, __assign({ appearance: 'solid' }, args, { children: [_jsx(ContextMenuTrigger, { className: "w-[100px]", children: "solid" }), _jsxs(ContextMenuContent, { children: [_jsx(ContextMenuItem, { children: "\uBA54\uB2741" }), _jsx(ContextMenuItem, { children: "\uBA54\uB2742" })] })] })), _jsxs(ContextMenu, __assign({ appearance: 'soft' }, args, { children: [_jsx(ContextMenuTrigger, { className: "w-[100px]", children: "soft" }), _jsxs(ContextMenuContent, { children: [_jsx(ContextMenuItem, { children: "\uBA54\uB2741" }), _jsx(ContextMenuItem, { children: "\uBA54\uB2742" })] })] }))] }));
155
86
  };
@@ -85,13 +85,13 @@ declare const meta: {
85
85
  export default meta;
86
86
  export declare const Default: ({ ...args }: {
87
87
  [x: string]: any;
88
- }) => import("react").JSX.Element;
88
+ }) => import("react/jsx-runtime").JSX.Element;
89
89
  export declare const Orientation: ({ ...args }: {
90
90
  [x: string]: any;
91
- }) => import("react").JSX.Element;
91
+ }) => import("react/jsx-runtime").JSX.Element;
92
92
  export declare const Scaling: ({ ...args }: {
93
93
  [x: string]: any;
94
- }) => import("react").JSX.Element;
94
+ }) => import("react/jsx-runtime").JSX.Element;
95
95
  export declare const Size: ({ ...args }: {
96
96
  [x: string]: any;
97
- }) => import("react").JSX.Element;
97
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,87 @@
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 { createElement as _createElement } from "react";
24
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
+ import { DataList, DataListItem, DataListLabel, DataListValue } from 'components/DataList';
26
+ import Badge from 'components/Badge';
27
+ import { scalingOptions, commonArgTypes, sizeOptions } from '../../constants';
28
+ import Button from 'components/Button';
29
+ var meta = {
30
+ title: 'Component/DataList',
31
+ component: DataList,
32
+ parameters: {
33
+ layout: 'centered',
34
+ themes: {
35
+ themeOverride: 'dark',
36
+ },
37
+ docs: {
38
+ description: {
39
+ component: '목록 형태로 메타 데이터 표시하는 컴포넌트',
40
+ },
41
+ },
42
+ },
43
+ tags: ['autodocs'],
44
+ argTypes: {
45
+ scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'DataList 비율' }),
46
+ size: __assign(__assign({}, commonArgTypes.size), { table: {
47
+ category: 'Props',
48
+ type: {
49
+ summary: sizeOptions
50
+ .filter(function (option) { return option !== 'x-small' && option !== 'x-large'; })
51
+ .join(' | '),
52
+ },
53
+ }, options: sizeOptions.filter(function (option) { return option !== 'x-small' && option !== 'x-large'; }), description: 'DataList 크기' }),
54
+ color: __assign(__assign({}, commonArgTypes.color), { description: 'DataList 값 매인색', defaultValue: { summary: 'black' } }),
55
+ orientation: {
56
+ table: {
57
+ category: 'Props',
58
+ type: {
59
+ summary: ['horizontal', 'vertical'].join(' | '),
60
+ },
61
+ },
62
+ options: ['horizontal', 'vertical'],
63
+ control: { type: 'select' },
64
+ defaultValue: { summary: 'horizontal' },
65
+ description: 'DataList 방향',
66
+ },
67
+ },
68
+ };
69
+ export default meta;
70
+ export var Default = function (_a) {
71
+ var args = __rest(_a, []);
72
+ return (_jsxs(DataList, __assign({}, args, { children: [_jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "\uC0C1\uD0DC" })), _jsx(DataListValue, __assign({}, args, { children: _jsx(Badge, __assign({ appearance: "soft" }, args, { children: "\uBC30\uC9C0" })) }))] })), _jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "\uB77C\uBCA8" })), _jsx(DataListValue, __assign({}, args, { children: "\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4.\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4." }))] })), _jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "\uB77C\uBCA8" })), _jsx(DataListValue, __assign({}, args, { children: _jsx(Button, __assign({}, args, { children: "\uBC84\uD2BC" })) }))] }))] })));
73
+ };
74
+ export var Orientation = function (_a) {
75
+ var args = __rest(_a, []);
76
+ return (_jsxs(DataList, __assign({}, args, { orientation: 'vertical', children: [_jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "\uC0C1\uD0DC" })), _jsx(DataListValue, __assign({}, args, { children: _jsx(Badge, __assign({ appearance: "soft" }, args, { children: "\uBC30\uC9C0" })) }))] })), _jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "\uB77C\uBCA8" })), _jsx(DataListValue, __assign({}, args, { children: "\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4.\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4." }))] })), _jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "\uB77C\uBCA8" })), _jsx(DataListValue, __assign({}, args, { children: _jsx(Button, __assign({}, args, { children: "\uBC84\uD2BC" })) }))] }))] })));
77
+ };
78
+ export var Scaling = function (_a) {
79
+ var args = __rest(_a, []);
80
+ return (_jsx("div", { className: "flex flex-col space-y-7", children: scalingOptions.map(function (scaling) { return (_createElement(DataList, __assign({}, args, { key: scaling, scaling: scaling }),
81
+ _jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: scaling })), _jsx(DataListValue, __assign({}, args, { children: "\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4.\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4." }))] })),
82
+ _jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: scaling })), _jsx(DataListValue, __assign({}, args, { children: "\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4.\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4." }))] })))); }) }));
83
+ };
84
+ export var Size = function (_a) {
85
+ var args = __rest(_a, []);
86
+ return (_jsxs("div", { className: "flex flex-col space-y-7", children: [_jsxs(DataList, { size: 'small', children: [_jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "small" })), _jsx(DataListValue, __assign({}, args, { children: "\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4.\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4." }))] })), _jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "small" })), _jsx(DataListValue, __assign({}, args, { children: "\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4.\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4." }))] }))] }), _jsxs(DataList, { size: 'medium', children: [_jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "medium" })), _jsx(DataListValue, __assign({}, args, { children: "\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4.\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4." }))] })), _jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "medium" })), _jsx(DataListValue, __assign({}, args, { children: "\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4.\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4." }))] }))] }), _jsxs(DataList, { size: 'large', children: [_jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "large" })), _jsx(DataListValue, __assign({}, args, { children: "\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4.\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4." }))] })), _jsxs(DataListItem, __assign({}, args, { children: [_jsx(DataListLabel, __assign({}, args, { children: "large" })), _jsx(DataListValue, __assign({}, args, { children: "\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4.\uD14D\uC2A4\uD2B8\uAC00 \uAE38\uC5B4\uC9C8 \uACBD\uC6B0 \uC904\uBC14\uAFC8\uC73C\uB85C \uCC98\uB9AC\uB429\uB2C8\uB2E4." }))] }))] })] }));
87
+ };
@@ -85,4 +85,4 @@ declare const meta: {
85
85
  export default meta;
86
86
  export declare const Default: ({ ...args }: {
87
87
  [x: string]: any;
88
- }) => import("react").JSX.Element;
88
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
24
  import { commonArgTypes, sizeOptions } from '../../constants';
24
25
  import { Dialog, DialogTrigger, DialogContent, DialogCancel, DialogTitle, DialogDescription, DialogSlot, DialogAction, } from '../../components/Dialog/index';
25
26
  import Button from 'components/Button';
@@ -54,29 +55,5 @@ var meta = {
54
55
  export default meta;
55
56
  export var Default = function (_a) {
56
57
  var args = __rest(_a, []);
57
- return (<Dialog {...args}>
58
- <DialogTrigger>
59
- <Button>Edit profile</Button>
60
- </DialogTrigger>
61
- <DialogContent {...args}>
62
- <DialogTitle {...args}>Edit profile</DialogTitle>
63
- <DialogDescription {...args}>Make changes to your profile.</DialogDescription>
64
-
65
- <DialogSlot {...args}>
66
- <span>Name</span>
67
- <TextField {...args} placeholder="Enter your full name"/>
68
- <span>Email</span>
69
- <TextField {...args} placeholder="Enter your email"/>
70
- </DialogSlot>
71
-
72
- <div className="flex justify-end">
73
- <DialogCancel {...args}>
74
- <span>Cancel</span>
75
- </DialogCancel>
76
- <DialogAction {...args}>
77
- <span>Save</span>
78
- </DialogAction>
79
- </div>
80
- </DialogContent>
81
- </Dialog>);
58
+ return (_jsxs(Dialog, __assign({}, args, { children: [_jsx(DialogTrigger, { children: _jsx(Button, { children: "Edit profile" }) }), _jsxs(DialogContent, __assign({}, args, { children: [_jsx(DialogTitle, __assign({}, args, { children: "Edit profile" })), _jsx(DialogDescription, __assign({}, args, { children: "Make changes to your profile." })), _jsxs(DialogSlot, __assign({}, args, { children: [_jsx("span", { children: "Name" }), _jsx(TextField, __assign({}, args, { placeholder: "Enter your full name" })), _jsx("span", { children: "Email" }), _jsx(TextField, __assign({}, args, { placeholder: "Enter your email" }))] })), _jsxs("div", { className: "flex justify-end", children: [_jsx(DialogCancel, __assign({}, args, { children: _jsx("span", { children: "Cancel" }) })), _jsx(DialogAction, __assign({}, args, { children: _jsx("span", { children: "Save" }) }))] })] }))] })));
82
59
  };
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  declare const meta: {
3
2
  title: string;
4
- component: ({ labels, datasets, scaling, className, ...rest }: import("components/DoughnutChart").DoughnutChartProps) => import("react").JSX.Element;
3
+ component: ({ labels, datasets, scaling, className, ...rest }: import("components/DoughnutChart").DoughnutChartProps) => import("react/jsx-runtime").JSX.Element;
5
4
  parameters: {
6
5
  layout: string;
7
6
  docs: {
@@ -176,6 +175,6 @@ declare const meta: {
176
175
  export default meta;
177
176
  export declare const Default: ({ ...args }: {
178
177
  [x: string]: any;
179
- }) => import("react").JSX.Element;
180
- export declare const BorderStyles: () => import("react").JSX.Element;
181
- export declare const DataLabels: () => import("react").JSX.Element;
178
+ }) => import("react/jsx-runtime").JSX.Element;
179
+ export declare const BorderStyles: () => import("react/jsx-runtime").JSX.Element;
180
+ export declare const DataLabels: () => import("react/jsx-runtime").JSX.Element;
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
24
  import DoughnutChart from 'components/DoughnutChart';
24
25
  import { amber, blue, green, lime, mint, orange, purple, red, ruby, violet, yellow, } from 'color/light';
25
26
  import { commonArgTypes } from '../../constants';
@@ -169,9 +170,7 @@ var meta = {
169
170
  export default meta;
170
171
  export var Default = function (_a) {
171
172
  var args = __rest(_a, []);
172
- return (<div className="w-[300px]">
173
- <DoughnutChart labels={args.label} datasets={args.datasets} {...args}/>
174
- </div>);
173
+ return (_jsx("div", { className: "w-[300px]", children: _jsx(DoughnutChart, __assign({ labels: args.label, datasets: args.datasets }, args)) }));
175
174
  };
176
175
  export var BorderStyles = function () {
177
176
  var datasets = [
@@ -204,14 +203,7 @@ export var BorderStyles = function () {
204
203
  },
205
204
  },
206
205
  };
207
- return (<div className="flex">
208
- <div className="w-[200px]">
209
- <DoughnutChart datasets={datasets} options={options}/>
210
- </div>
211
- <div className="w-[200px]">
212
- <DoughnutChart datasets={dashDatasets} options={dashOptions}/>
213
- </div>
214
- </div>);
206
+ return (_jsxs("div", { className: "flex", children: [_jsx("div", { className: "w-[200px]", children: _jsx(DoughnutChart, { datasets: datasets, options: options }) }), _jsx("div", { className: "w-[200px]", children: _jsx(DoughnutChart, { datasets: dashDatasets, options: dashOptions }) })] }));
215
207
  };
216
208
  export var DataLabels = function () {
217
209
  var datasets = [
@@ -232,5 +224,5 @@ export var DataLabels = function () {
232
224
  },
233
225
  },
234
226
  };
235
- return <DoughnutChart datasets={datasets} options={options}/>;
227
+ return _jsx(DoughnutChart, { datasets: datasets, options: options });
236
228
  };
@@ -100,13 +100,13 @@ declare const meta: {
100
100
  export default meta;
101
101
  export declare const Default: ({ ...args }: {
102
102
  [x: string]: any;
103
- }) => import("react").JSX.Element;
103
+ }) => import("react/jsx-runtime").JSX.Element;
104
104
  export declare const Radius: ({ ...args }: {
105
105
  [x: string]: any;
106
- }) => import("react").JSX.Element;
106
+ }) => import("react/jsx-runtime").JSX.Element;
107
107
  export declare const Size: ({ ...args }: {
108
108
  [x: string]: any;
109
- }) => import("react").JSX.Element;
109
+ }) => import("react/jsx-runtime").JSX.Element;
110
110
  export declare const Appearance: ({ ...args }: {
111
111
  [x: string]: any;
112
- }) => import("react").JSX.Element;
112
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,75 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { commonArgTypes, radiusOptions } from '../../constants';
25
+ import { ChevronDownIcon } from '@radix-ui/react-icons';
26
+ import { DropdownMenu, DropdownMenuItem, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuSeparator, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuLabel, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, } from '../../components/DropdownMenu/index';
27
+ import Button from 'components/Button';
28
+ var meta = {
29
+ title: 'Component/DropdownMenu',
30
+ component: DropdownMenu,
31
+ parameters: {
32
+ layout: 'centered',
33
+ themes: {
34
+ themeOverride: 'dark',
35
+ },
36
+ docs: {
37
+ description: {
38
+ component: '버튼을 클릭하여 세부항목을 확인하고 하나의 항목을 선택하는 기능',
39
+ },
40
+ },
41
+ },
42
+ tags: ['autodocs'],
43
+ argTypes: {
44
+ radius: __assign(__assign({}, commonArgTypes.radius), { description: 'dropdownMenu 둥글기' }),
45
+ size: __assign(__assign({}, commonArgTypes.size), { table: {
46
+ category: 'Props',
47
+ type: {
48
+ summary: ['small', 'medium'].join(' | '),
49
+ },
50
+ }, options: ['small', 'medium'], description: 'dropdownMenu 크기' }),
51
+ scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'dropdownMenu scaling' }),
52
+ color: __assign(__assign({}, commonArgTypes.color), { description: 'dropdownMenu color' }),
53
+ appearance: __assign(__assign({}, commonArgTypes.appearance), { table: {
54
+ category: 'Props',
55
+ type: { summary: ['solid', 'soft'].join(' | ') },
56
+ }, options: ['solid', 'soft'] }),
57
+ },
58
+ };
59
+ export default meta;
60
+ export var Default = function (_a) {
61
+ var args = __rest(_a, []);
62
+ return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, __assign({}, args, { children: _jsxs(Button, { children: ["Options", _jsx(ChevronDownIcon, {})] }) })), _jsxs(DropdownMenuContent, __assign({}, args, { children: [_jsx(DropdownMenuLabel, __assign({}, args, { children: "\uB77C\uBCA8" })), _jsx(DropdownMenuItem, __assign({}, args, { shortcut: "\u2318 E", children: "\uAE30\uBCF8 \uC544\uC774\uD15C" })), _jsx(DropdownMenuItem, __assign({}, args, { disabled: true, children: "\uC0AC\uC6A9\uBD88\uAC00 \uC544\uC774\uD15C" })), _jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuCheckboxItem, __assign({ checked: true }, args, { children: "\uCCB4\uD06C\uBC15\uC2A41" })), _jsx(DropdownMenuCheckboxItem, __assign({ checked: false }, args, { children: "\uCCB4\uD06C\uBC15\uC2A42" })), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuRadioGroup, { value: "option1", children: [_jsx(DropdownMenuRadioItem, __assign({ value: "option1" }, args, { children: "\uB77C\uB514\uC6241" })), _jsx(DropdownMenuRadioItem, __assign({ value: "option2" }, args, { children: "\uB77C\uB514\uC6242" }))] }), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuSub, { children: [_jsx(DropdownMenuSubTrigger, __assign({}, args, { children: "More Menu" })), _jsxs(DropdownMenuSubContent, __assign({}, args, { children: [_jsx(DropdownMenuItem, __assign({}, args, { children: "project" })), _jsx(DropdownMenuItem, __assign({}, args, { children: "folder" })), _jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuItem, __assign({}, args, { children: "options" }))] }))] })] }))] }));
63
+ };
64
+ export var Radius = function (_a) {
65
+ var args = __rest(_a, []);
66
+ return (_jsx("div", { className: "flex items-center space-x-4", children: radiusOptions.map(function (radius) { return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, __assign({}, args, { radius: radius, children: _jsxs(Button, { children: [radius, _jsx(ChevronDownIcon, {})] }) })), _jsxs(DropdownMenuContent, __assign({}, args, { radius: radius, children: [_jsx(DropdownMenuItem, __assign({}, args, { radius: radius, children: "\uBA54\uB2741" })), _jsx(DropdownMenuItem, __assign({}, args, { radius: radius, children: "\uBA54\uB2742" }))] }))] }, radius)); }) }));
67
+ };
68
+ export var Size = function (_a) {
69
+ var args = __rest(_a, []);
70
+ return (_jsx("div", { className: "flex items-center space-x-4", children: ['small', 'medium'].map(function (size) { return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, __assign({}, args, { size: size, children: _jsxs(Button, { children: [size, _jsx(ChevronDownIcon, {})] }) })), _jsxs(DropdownMenuContent, __assign({}, args, { size: size, children: [_jsx(DropdownMenuItem, __assign({}, args, { size: size, children: "\uBA54\uB2741" })), _jsx(DropdownMenuItem, __assign({}, args, { size: size, children: "\uBA54\uB2742" }))] }))] }, size)); }) }));
71
+ };
72
+ export var Appearance = function (_a) {
73
+ var args = __rest(_a, []);
74
+ return (_jsx("div", { className: "flex items-center space-x-4", children: ['solid', 'soft'].map(function (appearance) { return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, __assign({}, args, { appearance: appearance, children: _jsxs(Button, { children: [appearance, _jsx(ChevronDownIcon, {})] }) })), _jsxs(DropdownMenuContent, __assign({}, args, { children: [_jsx(DropdownMenuItem, __assign({}, args, { appearance: appearance, children: "\uBA54\uB2741" })), _jsx(DropdownMenuItem, __assign({}, args, { appearance: appearance, children: "\uBA54\uB2742" }))] }))] }, appearance)); }) }));
75
+ };
@@ -94,19 +94,19 @@ declare const meta: {
94
94
  export default meta;
95
95
  export declare const Default: ({ ...args }: {
96
96
  [x: string]: any;
97
- }) => import("react").JSX.Element;
97
+ }) => import("react/jsx-runtime").JSX.Element;
98
98
  export declare const Weight: ({ ...args }: {
99
99
  [x: string]: any;
100
- }) => import("react").JSX.Element;
100
+ }) => import("react/jsx-runtime").JSX.Element;
101
101
  export declare const Color: ({ ...args }: {
102
102
  [x: string]: any;
103
- }) => import("react").JSX.Element;
103
+ }) => import("react/jsx-runtime").JSX.Element;
104
104
  export declare const Size: ({ ...args }: {
105
105
  [x: string]: any;
106
- }) => import("react").JSX.Element;
106
+ }) => import("react/jsx-runtime").JSX.Element;
107
107
  export declare const Headers: ({ ...args }: {
108
108
  [x: string]: any;
109
- }) => import("react").JSX.Element;
109
+ }) => import("react/jsx-runtime").JSX.Element;
110
110
  export declare const Align: ({ ...args }: {
111
111
  [x: string]: any;
112
- }) => import("react").JSX.Element;
112
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
23
24
  import { Header } from '../../Typography/Header/index';
24
25
  import { weightOptions, typoSizeOptions, commonArgTypes } from '../../constants';
25
26
  import { colorOptions } from 'color/constants';
@@ -72,45 +73,25 @@ var meta = {
72
73
  export default meta;
73
74
  export var Default = function (_a) {
74
75
  var args = __rest(_a, []);
75
- return <Header {...args}>The quick brown fox jumps over the lazy dog</Header>;
76
+ return _jsx(Header, __assign({}, args, { children: "The quick brown fox jumps over the lazy dog" }));
76
77
  };
77
78
  export var Weight = function (_a) {
78
79
  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>);
80
+ return (_jsx("div", { children: weightOptions.map(function (weight) { return (_jsx(Header, __assign({}, args, { weight: weight, children: "The quick brown fox jumps over the lazy dog" }), weight)); }) }));
84
81
  };
85
82
  export var Color = function (_a) {
86
83
  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>);
84
+ return (_jsx("div", { children: colorOptions.map(function (color) { return (_jsx(Header, __assign({}, args, { color: color, children: "The quick brown fox jumps over the lazy dog" }), color)); }) }));
92
85
  };
93
86
  export var Size = function (_a) {
94
87
  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>);
88
+ return (_jsx("div", { children: typoSizeOptions.map(function (size) { return (_jsx(Header, __assign({}, args, { size: size, children: "The quick brown fox jumps over the lazy dog" }), size)); }) }));
100
89
  };
101
90
  export var Headers = function (_a) {
102
91
  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>);
92
+ return (_jsx("div", { children: headerOptions.map(function (headers) { return (_jsx(Header, __assign({}, args, { headers: headers, children: "The quick brown fox jumps over the lazy dog" }), headers)); }) }));
108
93
  };
109
94
  export var Align = function (_a) {
110
95
  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>);
96
+ return (_jsx("div", { children: ['left', 'center', 'right'].map(function (align) { return (_jsx(Header, __assign({}, args, { align: align, children: "The quick brown fox jumps over the lazy dog" }), align)); }) }));
116
97
  };
@@ -101,7 +101,7 @@ declare const meta: {
101
101
  export default meta;
102
102
  export declare const Default: ({ ...args }: {
103
103
  [x: string]: any;
104
- }) => import("react").JSX.Element;
104
+ }) => import("react/jsx-runtime").JSX.Element;
105
105
  export declare const WithInset: ({ ...args }: {
106
106
  [x: string]: any;
107
- }) => import("react").JSX.Element;
107
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
24
  import { commonArgTypes } from '../../constants';
24
25
  import { HoverCard, HoverCardTrigger, HoverCardContent } from '../../components/HoverCard';
25
26
  import { Inset } from '@radix-ui/themes';
@@ -62,37 +63,9 @@ var meta = {
62
63
  export default meta;
63
64
  export var Default = function (_a) {
64
65
  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>);
66
+ return (_jsxs(HoverCard, { children: [_jsx(HoverCardTrigger, { children: _jsx(Link, { href: "#", target: "_blank", className: "text-indigo-9 dark:text-indigoDark-9 hover:underline", children: "@radix_ui" }) }), _jsx(HoverCardContent, __assign({}, args, { children: _jsxs("div", { children: [_jsx("strong", { children: "Typography" }), " is the art and technique of arranging type to make written language legible, readable and appealing when displayed."] }) }))] }));
78
67
  };
79
68
  export var WithInset = function (_a) {
80
69
  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>);
70
+ return (_jsxs(HoverCard, { children: [_jsx(HoverCardTrigger, { children: _jsx(Link, { href: "https://twitter.com/radix_ui", target: "_blank", className: "text-indigo-9 dark:text-indigoDark-9 hover:underline", children: "@radix_ui" }) }), _jsx(HoverCardContent, __assign({}, args, { children: _jsxs("div", { className: "flex", children: [_jsx(Inset, { side: "left", pr: "current", children: _jsx(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" }) }), _jsxs("span", { children: [_jsx("strong", { children: "Typography" }), " is the art and technique."] })] }) }))] }));
98
71
  };
@@ -52,7 +52,7 @@ declare const meta: {
52
52
  export default meta;
53
53
  export declare const Default: ({ ...args }: {
54
54
  [x: string]: any;
55
- }) => import("react").JSX.Element;
55
+ }) => import("react/jsx-runtime").JSX.Element;
56
56
  export declare const Horizontal: ({ ...args }: {
57
57
  [x: string]: any;
58
- }) => import("react").JSX.Element;
58
+ }) => import("react/jsx-runtime").JSX.Element;