@lotte-innovate/ui-component-test 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. package/README.md +163 -163
  2. package/dist/Typography/Header/index.d.ts +1 -1
  3. package/dist/Typography/Header/index.jsx +4 -4
  4. package/dist/Typography/Text/index.jsx +4 -4
  5. package/dist/Typography/index.d.ts +2 -2
  6. package/dist/Typography/index.js +2 -3
  7. package/dist/app/layout.jsx +2 -2
  8. package/dist/app/page.d.ts +1 -1
  9. package/dist/app/page.jsx +6 -39
  10. package/dist/app/template/colorPicker.d.ts +1 -1
  11. package/dist/app/template/colorPicker.jsx +7 -7
  12. package/dist/app/template/theme.jsx +6 -33
  13. package/dist/components/Accordion/index.jsx +13 -13
  14. package/dist/components/AlertDialog/AlertDialogAction.jsx +3 -3
  15. package/dist/components/AlertDialog/AlertDialogCancel.jsx +3 -3
  16. package/dist/components/AlertDialog/AlertDialogContent.jsx +6 -6
  17. package/dist/components/AlertDialog/AlertDialogDescription.jsx +3 -3
  18. package/dist/components/AlertDialog/AlertDialogTitle.jsx +3 -3
  19. package/dist/components/AlertDialog/AlertDialogTrigger.jsx +3 -3
  20. package/dist/components/AlertDialog/index.jsx +4 -2
  21. package/dist/components/AspectRatio/index.jsx +3 -3
  22. package/dist/components/Avatar/index.jsx +6 -6
  23. package/dist/components/Badge/index.jsx +2 -2
  24. package/dist/components/BubbleChart/index.jsx +1 -1
  25. package/dist/components/Button/index.jsx +3 -3
  26. package/dist/components/Callout/CalloutIcon.jsx +7 -7
  27. package/dist/components/Callout/CalloutText.jsx +3 -3
  28. package/dist/components/Callout/index.jsx +5 -5
  29. package/dist/components/Card/index.jsx +3 -3
  30. package/dist/components/Checkbox/index.jsx +10 -10
  31. package/dist/components/CheckboxCard/index.jsx +4 -4
  32. package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +4 -4
  33. package/dist/components/CheckboxGroup/index.jsx +5 -5
  34. package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +6 -6
  35. package/dist/components/ContextMenu/ContextMenuContent.jsx +5 -5
  36. package/dist/components/ContextMenu/ContextMenuGroup.jsx +2 -2
  37. package/dist/components/ContextMenu/ContextMenuItem.jsx +4 -4
  38. package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +3 -3
  39. package/dist/components/ContextMenu/ContextMenuLabel.jsx +3 -3
  40. package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +4 -4
  41. package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +6 -6
  42. package/dist/components/ContextMenu/ContextMenuSeparator.jsx +3 -3
  43. package/dist/components/ContextMenu/ContextMenuSubContent.jsx +6 -6
  44. package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +8 -8
  45. package/dist/components/ContextMenu/ContextMenuTrigger.jsx +3 -3
  46. package/dist/components/ContextMenu/index.jsx +5 -3
  47. package/dist/components/DataList/DataListItem.jsx +3 -3
  48. package/dist/components/DataList/DataListLabel.jsx +3 -3
  49. package/dist/components/DataList/DataListValue.jsx +3 -3
  50. package/dist/components/DataList/index.jsx +5 -5
  51. package/dist/components/Dialog/DialogAction.jsx +3 -3
  52. package/dist/components/Dialog/DialogCancel.jsx +3 -3
  53. package/dist/components/Dialog/DialogContent.jsx +3 -3
  54. package/dist/components/Dialog/DialogDescription.jsx +3 -3
  55. package/dist/components/Dialog/DialogSlot.jsx +3 -3
  56. package/dist/components/Dialog/DialogTitle.jsx +3 -3
  57. package/dist/components/Dialog/DialogTrigger.jsx +2 -2
  58. package/dist/components/Dialog/index.jsx +2 -2
  59. package/dist/components/DoughnutChart/index.jsx +1 -1
  60. package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +4 -4
  61. package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +5 -5
  62. package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +6 -6
  63. package/dist/components/DropdownMenu/DropdownMenuContent.jsx +5 -5
  64. package/dist/components/DropdownMenu/DropdownMenuItem.jsx +4 -4
  65. package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +3 -3
  66. package/dist/components/DropdownMenu/DropdownMenuLable.jsx +3 -3
  67. package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +6 -6
  68. package/dist/components/DropdownMenu/DropdownMenuSeparator.jsx +1 -1
  69. package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +5 -5
  70. package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +2 -2
  71. package/dist/components/HoverCard/HoverCardContent.jsx +2 -2
  72. package/dist/components/HoverCard/HoverCardTrigger.jsx +2 -2
  73. package/dist/components/HoverCard/index.jsx +2 -2
  74. package/dist/components/IconButton/index.jsx +2 -2
  75. package/dist/components/Inset/index.jsx +4 -4
  76. package/dist/components/Label/index.jsx +2 -2
  77. package/dist/components/Menubar/MenubarCheckboxItem.jsx +6 -6
  78. package/dist/components/Menubar/MenubarContent.jsx +5 -5
  79. package/dist/components/Menubar/MenubarItem.jsx +4 -4
  80. package/dist/components/Menubar/MenubarItemIndicator.jsx +3 -3
  81. package/dist/components/Menubar/MenubarRadioGroup.jsx +4 -4
  82. package/dist/components/Menubar/MenubarRadioItem.jsx +6 -6
  83. package/dist/components/Menubar/MenubarSeparator.jsx +3 -3
  84. package/dist/components/Menubar/MenubarSubContent.jsx +3 -3
  85. package/dist/components/Menubar/MenubarSubTrigger.jsx +6 -6
  86. package/dist/components/Menubar/MenubarTrigger.jsx +3 -3
  87. package/dist/components/Menubar/index.jsx +5 -5
  88. package/dist/components/NavigationMenu/NavigationMenuContent.jsx +3 -3
  89. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +4 -4
  90. package/dist/components/NavigationMenu/NavigationMenuItem.jsx +2 -2
  91. package/dist/components/NavigationMenu/NavigationMenuLink.jsx +3 -3
  92. package/dist/components/NavigationMenu/NavigationMenuList.jsx +4 -4
  93. package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +4 -4
  94. package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +3 -3
  95. package/dist/components/NavigationMenu/index.jsx +5 -5
  96. package/dist/components/PieChart/index.jsx +1 -1
  97. package/dist/components/Popover/PopoverClose.jsx +2 -2
  98. package/dist/components/Popover/PopoverContent.jsx +2 -2
  99. package/dist/components/Popover/PopoverTrigger.jsx +2 -2
  100. package/dist/components/Popover/index.jsx +2 -2
  101. package/dist/components/Progress/index.jsx +2 -2
  102. package/dist/components/Radio/index.jsx +7 -7
  103. package/dist/components/RadioCards/RadioCardsItem.jsx +2 -2
  104. package/dist/components/RadioCards/index.jsx +4 -4
  105. package/dist/components/RadioGroup/RadioGroupItem.jsx +2 -2
  106. package/dist/components/RadioGroup/index.jsx +4 -4
  107. package/dist/components/ScrollArea/index.jsx +4 -4
  108. package/dist/components/SegmentedControl/SegmentedControlItem.jsx +2 -2
  109. package/dist/components/SegmentedControl/index.jsx +4 -4
  110. package/dist/components/Select/index.jsx +20 -18
  111. package/dist/components/Separator/index.jsx +5 -5
  112. package/dist/components/Skeleton/index.jsx +5 -5
  113. package/dist/components/Slider/index.jsx +3 -3
  114. package/dist/components/Spinner/index.jsx +4 -4
  115. package/dist/components/TabNav/index.jsx +6 -6
  116. package/dist/components/Table/index.d.ts +2 -1
  117. package/dist/components/Table/index.jsx +17 -17
  118. package/dist/components/Tabs/index.jsx +10 -10
  119. package/dist/components/TextArea/index.jsx +2 -2
  120. package/dist/components/TextField/index.jsx +7 -7
  121. package/dist/components/Toast/ToastActionButton.jsx +3 -3
  122. package/dist/components/Toast/ToastDescription.jsx +5 -5
  123. package/dist/components/Toast/ToastTitle.jsx +3 -3
  124. package/dist/components/Toast/index.jsx +8 -8
  125. package/dist/components/Toggle/ToggleWithText.jsx +3 -3
  126. package/dist/components/Toggle/index.jsx +2 -2
  127. package/dist/components/ToggleGroup/index.jsx +4 -4
  128. package/dist/components/ToggleGroup/toggleGroupItem.jsx +2 -2
  129. package/dist/components/ToggleSwitch/index.jsx +5 -5
  130. package/dist/components/Tooltip/index.d.ts +1 -1
  131. package/dist/components/Tooltip/index.jsx +11 -11
  132. package/dist/components/index.d.ts +0 -2
  133. package/dist/index.d.ts +2 -5
  134. package/dist/index.js +0 -3
  135. package/dist/stories/Welcome.jsx +19 -19
  136. package/dist/stories/accordion/Accordion.stories.jsx +19 -19
  137. package/dist/stories/alert-dialog/AlertDialog.stories.jsx +14 -14
  138. package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +29 -29
  139. package/dist/stories/avatar/Avatar.stories.jsx +12 -12
  140. package/dist/stories/badge/Badge.stories.jsx +44 -44
  141. package/dist/stories/bubble-chart/BubbleChart.stories.jsx +9 -9
  142. package/dist/stories/button/Button.stories.jsx +34 -34
  143. package/dist/stories/button/IconButton.stories.jsx +14 -14
  144. package/dist/stories/callout/Callout.stories.jsx +107 -107
  145. package/dist/stories/card/Card.stories.jsx +51 -51
  146. package/dist/stories/checkbox/Checkbox.stories.jsx +57 -57
  147. package/dist/stories/checkbox/CheckboxCard.stories.jsx +36 -36
  148. package/dist/stories/checkbox/CheckboxGroup.stories.jsx +73 -73
  149. package/dist/stories/context-menu/ContextMenu.stories.jsx +70 -70
  150. package/dist/stories/data-list/DataList.stories.jsx +102 -102
  151. package/dist/stories/dialog/Dialog.stories.jsx +24 -24
  152. package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +9 -9
  153. package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +96 -96
  154. package/dist/stories/header/Header.stories.jsx +20 -20
  155. package/dist/stories/hover-card/HoverCard.stories.jsx +28 -28
  156. package/dist/stories/inset/Inset.stories.jsx +16 -16
  157. package/dist/stories/label/Label.stories.jsx +22 -22
  158. package/dist/stories/menubar/Menubar.stories.jsx +38 -38
  159. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +11 -11
  160. package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +67 -67
  161. package/dist/stories/pie-chart/PieChart.stories.jsx +20 -20
  162. package/dist/stories/popover/Popover.stories.jsx +34 -34
  163. package/dist/stories/progress/Progress.stories.jsx +6 -6
  164. package/dist/stories/radio/Radio.stories.jsx +11 -11
  165. package/dist/stories/radio/RadioCards.stories.jsx +60 -60
  166. package/dist/stories/radio/RadioGroup.stories.jsx +55 -55
  167. package/dist/stories/scroll-area/ScrollArea.stories.jsx +61 -61
  168. package/dist/stories/segmented-control/SegmentedControl.stories.jsx +22 -22
  169. package/dist/stories/select/Select.stories.jsx +62 -62
  170. package/dist/stories/separator/Separator.stories.jsx +25 -25
  171. package/dist/stories/skeleton/Skeleton.stories.jsx +28 -28
  172. package/dist/stories/slider/Slider.stories.jsx +12 -12
  173. package/dist/stories/spinner/Spinner.stories.jsx +26 -26
  174. package/dist/stories/switch/Switch.stories.jsx +12 -12
  175. package/dist/stories/tab-nav/TabNav.stories.jsx +10 -10
  176. package/dist/stories/table/Table.stories.jsx +28 -28
  177. package/dist/stories/tabs/Tabs.stories.jsx +18 -18
  178. package/dist/stories/text/Text.stories.jsx +16 -16
  179. package/dist/stories/textArea/TextArea.stories.jsx +17 -17
  180. package/dist/stories/textfield/TextField.stories.jsx +33 -33
  181. package/dist/stories/toast/Toast.stories.jsx +19 -19
  182. package/dist/stories/toggle/Toggle.stories.jsx +18 -18
  183. package/dist/stories/toggle/ToggleGroup.stories.jsx +34 -34
  184. package/dist/stories/tooltip/Tooltip.stories.jsx +14 -14
  185. package/dist/tsconfig.tsbuildinfo +1 -1
  186. package/package.json +120 -118
  187. package/dist/app/template/badgeTemplate.d.ts +0 -12
  188. package/dist/app/template/badgeTemplate.jsx +0 -82
  189. package/dist/app/template/buttonTemplate.d.ts +0 -12
  190. package/dist/app/template/buttonTemplate.jsx +0 -82
  191. package/dist/app/template/textTemplate.d.ts +0 -11
  192. package/dist/app/template/textTemplate.jsx +0 -72
@@ -24,7 +24,7 @@ var __rest = (this && this.__rest) || function (s, e) {
24
24
  import React from 'react';
25
25
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
26
26
  import { cva } from 'class-variance-authority';
27
- import { cn } from '../../utils/utils';
27
+ import { cn } from 'utils/utils';
28
28
  import { primaryColorStyle, radiusVariants, scalingOptions, weightVariants } from '../../constants';
29
29
  var tooltipVariants = cva('bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]', {
30
30
  variants: {
@@ -43,16 +43,16 @@ export var Tooltip = React.forwardRef(function (_a) {
43
43
  var arrowColor = color
44
44
  ? "fill-".concat(color, "-9 dark:fill-").concat(color, "Dark-9")
45
45
  : 'fill-slate-12 dark:fill-slateDark-12';
46
- return (<TooltipPrimitive.Provider>
47
- <TooltipPrimitive.Root open={open} defaultOpen={defaultOpen} onOpenChange={onOpenChange}>
48
- <TooltipPrimitive.Trigger className="cursor-pointer text-slate-12 dark:text-slateDark-12" asChild>
49
- {children}
50
- </TooltipPrimitive.Trigger>
51
- <TooltipPrimitive.Content align="center" {...props} side={side} className={cn('mr-2', tooltipVariants({ scaling: scaling, weight: weight, radius: radius, color: color }), className)} sideOffset={5}>
52
- {content}
53
- <TooltipPrimitive.Arrow width={11} height={5} className={arrowColor}/>
54
- </TooltipPrimitive.Content>
55
- </TooltipPrimitive.Root>
46
+ return (<TooltipPrimitive.Provider>
47
+ <TooltipPrimitive.Root open={open} defaultOpen={defaultOpen} onOpenChange={onOpenChange}>
48
+ <TooltipPrimitive.Trigger className="cursor-pointer text-slate-12 dark:text-slateDark-12" asChild>
49
+ {children}
50
+ </TooltipPrimitive.Trigger>
51
+ <TooltipPrimitive.Content align="center" {...props} side={side} className={cn('mr-2', tooltipVariants({ scaling: scaling, weight: weight, radius: radius, color: color }), className)} sideOffset={5}>
52
+ {content}
53
+ <TooltipPrimitive.Arrow width={11} height={5} className={arrowColor}/>
54
+ </TooltipPrimitive.Content>
55
+ </TooltipPrimitive.Root>
56
56
  </TooltipPrimitive.Provider>);
57
57
  });
58
58
  Tooltip.displayName = TooltipPrimitive.Root.displayName;
@@ -40,8 +40,6 @@ export { default as Toast } from './Toast';
40
40
  export { default as Toggle } from './Toggle';
41
41
  export { default as ToggleGroup } from './ToggleGroup';
42
42
  export { default as ToggleSwitch } from './ToggleSwitch';
43
- export { default as Header } from '../Typography/Header';
44
- export { default as Text } from '../Typography/Text';
45
43
  export { default as BubbleChart } from './BubbleChart';
46
44
  export { default as RadarChart } from './RadarChart';
47
45
  export { default as PieChart } from './PieChart';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,2 @@
1
- // components 디렉토리 내의 모든 타입 선언을 내보냄
2
- export * from './components';
3
-
4
- // typography 디렉토리 내의 모든 타입 선언을 내보냄
5
- export * from './Typography';
1
+ export * from './components';
2
+ export * from './Typography';
package/dist/index.js CHANGED
@@ -1,5 +1,2 @@
1
- // components 디렉토리 내의 모든 파일을 내보냄
2
1
  export * from './components';
3
-
4
- // typography 디렉토리 내의 모든 파일을 내보냄
5
2
  export * from './Typography';
@@ -24,25 +24,25 @@ var Welcome = function () {
24
24
  var navigateToFigma = function () {
25
25
  window.open('https://www.figma.com/design/tlcB7UYdvUNzPk5T66FqLf/UI-%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC-%EA%B3%B5%EC%9C%A0%EC%9A%A9?node-id=0-1&t=k7fMSU17MKc42lzy-0', '_blank');
26
26
  };
27
- return (<div className="welcome-wrap">
28
- <div>
29
- <div>
30
- <Image className="w-[150px] h-auto" layout="fixed" src={Logo} alt="LOTTE INNOVATE"/>
31
- <p className="welcome-sub">Style Guide UI Kit</p>
32
- <h1 className="welcome-title">LOTTE UI Library</h1>
33
- </div>
34
- <div className="flex gap-2 pt-[40px]">
35
- <Button color="slate" radius="medium" scaling="100%" weight="medium" size={'x-large'} appearance={'outline'} onClick={navigateToGitlab} className="relative z-10">
36
- <Image src={Gitlab} width={0} height={0} alt="Gitlab" className="mr-2"/>
37
- GitLab
38
- </Button>
39
- <Button color="slate" radius="medium" scaling="100%" weight="medium" size={'x-large'} appearance={'outline'} onClick={navigateToFigma} className="relative z-10">
40
- <Image src={Figma} width={0} height={0} alt="Figma" className="mr-2"/>
41
- Figma
42
- </Button>
43
- </div>
44
- </div>
45
- <Image className="absolute bottom-0 w-auto" src={Landing} width={0} height={0} alt="컴포넌트 이미지입니다."/>
27
+ return (<div className="welcome-wrap">
28
+ <div>
29
+ <div>
30
+ <Image className="w-[150px] h-auto" layout="fixed" src={Logo} alt="LOTTE INNOVATE"/>
31
+ <p className="welcome-sub">Style Guide UI Kit</p>
32
+ <h1 className="welcome-title">LOTTE UI Library</h1>
33
+ </div>
34
+ <div className="flex gap-2 pt-[40px]">
35
+ <Button color="slate" radius="medium" scaling="100%" weight="medium" size={'x-large'} appearance={'outline'} onClick={navigateToGitlab} className="relative z-10">
36
+ <Image src={Gitlab} width={0} height={0} alt="Gitlab" className="mr-2"/>
37
+ GitLab
38
+ </Button>
39
+ <Button color="slate" radius="medium" scaling="100%" weight="medium" size={'x-large'} appearance={'outline'} onClick={navigateToFigma} className="relative z-10">
40
+ <Image src={Figma} width={0} height={0} alt="Figma" className="mr-2"/>
41
+ Figma
42
+ </Button>
43
+ </div>
44
+ </div>
45
+ <Image className="absolute bottom-0 w-auto" src={Landing} width={0} height={0} alt="컴포넌트 이미지입니다."/>
46
46
  </div>);
47
47
  };
48
48
  export default Welcome;
@@ -56,24 +56,24 @@ export default meta;
56
56
  export var Default = function (_a) {
57
57
  var _b;
58
58
  var args = __rest(_a, []);
59
- return (<Accordion defaultValue="item-1" type={(_b = args.type) !== null && _b !== void 0 ? _b : 'single'} {...args}>
60
- <AccordionItem value="item-1">
61
- <AccordionTrigger {...args}>리액트는 무엇인가요?</AccordionTrigger>
62
- <AccordionContent>
63
- 리액트는 자바스크립트 라이브러리의 하나로서 사용자 인터페이스를 만들기 위해 사용된다.
64
- </AccordionContent>
65
- </AccordionItem>
66
-
67
- <AccordionItem value="item-2">
68
- <AccordionTrigger {...args}>자바스크립트란 무엇인가요?</AccordionTrigger>
69
- <AccordionContent>자바스크립트는 객체 기반의 스크립트 프로그래밍 언어이다.</AccordionContent>
70
- </AccordionItem>
71
-
72
- <AccordionItem value="item-3" disabled={true}>
73
- <AccordionTrigger {...args}>Can it be animated?</AccordionTrigger>
74
- <AccordionContent>
75
- Yes! You can animate the Accordion with CSS or JavaScript.
76
- </AccordionContent>
77
- </AccordionItem>
59
+ return (<Accordion defaultValue="item-1" type={(_b = args.type) !== null && _b !== void 0 ? _b : 'single'} {...args}>
60
+ <AccordionItem value="item-1">
61
+ <AccordionTrigger {...args}>리액트는 무엇인가요?</AccordionTrigger>
62
+ <AccordionContent>
63
+ 리액트는 자바스크립트 라이브러리의 하나로서 사용자 인터페이스를 만들기 위해 사용된다.
64
+ </AccordionContent>
65
+ </AccordionItem>
66
+
67
+ <AccordionItem value="item-2">
68
+ <AccordionTrigger {...args}>자바스크립트란 무엇인가요?</AccordionTrigger>
69
+ <AccordionContent>자바스크립트는 객체 기반의 스크립트 프로그래밍 언어이다.</AccordionContent>
70
+ </AccordionItem>
71
+
72
+ <AccordionItem value="item-3" disabled={true}>
73
+ <AccordionTrigger {...args}>Can it be animated?</AccordionTrigger>
74
+ <AccordionContent>
75
+ Yes! You can animate the Accordion with CSS or JavaScript.
76
+ </AccordionContent>
77
+ </AccordionItem>
78
78
  </Accordion>);
79
79
  };
@@ -55,19 +55,19 @@ var meta = {
55
55
  export default meta;
56
56
  export var Default = function (_a) {
57
57
  var args = __rest(_a, []);
58
- return (<AlertDialog>
59
- <AlertDialogTrigger>
60
- <Button>버튼을 클릭해주세요</Button>
61
- </AlertDialogTrigger>
62
- <AlertDialogContent {...args}>
63
- <AlertDialogTitle {...args}>AlertDialog 제목</AlertDialogTitle>
64
- <AlertDialogDescription {...args}>
65
- AlertDialog 내용이 들어갈 공간입니다.
66
- </AlertDialogDescription>
67
- <div className="flex justify-end">
68
- <AlertDialogCancel {...args}>취소</AlertDialogCancel>
69
- <AlertDialogAction {...args}>확인</AlertDialogAction>
70
- </div>
71
- </AlertDialogContent>
58
+ return (<AlertDialog>
59
+ <AlertDialogTrigger>
60
+ <Button>버튼을 클릭해주세요</Button>
61
+ </AlertDialogTrigger>
62
+ <AlertDialogContent {...args}>
63
+ <AlertDialogTitle {...args}>AlertDialog 제목</AlertDialogTitle>
64
+ <AlertDialogDescription {...args}>
65
+ AlertDialog 내용이 들어갈 공간입니다.
66
+ </AlertDialogDescription>
67
+ <div className="flex justify-end">
68
+ <AlertDialogCancel {...args}>취소</AlertDialogCancel>
69
+ <AlertDialogAction {...args}>확인</AlertDialogAction>
70
+ </div>
71
+ </AlertDialogContent>
72
72
  </AlertDialog>);
73
73
  };
@@ -65,42 +65,42 @@ var meta = {
65
65
  export default meta;
66
66
  export var Default = function (_a) {
67
67
  var args = __rest(_a, []);
68
- return (<div className="w-[300px]">
69
- <AspectRatio id="defaultAspectRatio" {...args}>
70
- <Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
71
- </AspectRatio>
68
+ return (<div className="w-[300px]">
69
+ <AspectRatio id="defaultAspectRatio" {...args}>
70
+ <Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
71
+ </AspectRatio>
72
72
  </div>);
73
73
  };
74
74
  export var Ratio = function (_a) {
75
75
  var args = __rest(_a, []);
76
- return (<div className="flex space-x-2">
77
- <div className="flex flex-col w-[200px] items-center">
78
- <Text>{'3 / 1'}</Text>
79
- <AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 1}>
80
- <Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
81
- </AspectRatio>
82
- </div>
83
- <div className="flex flex-col w-[200px] items-center">
84
- <Text>{'3 / 2'}</Text>
85
- <AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 2}>
86
- <Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
87
- </AspectRatio>
88
- </div>
89
- <div className="flex flex-col w-[200px] items-center">
90
- <Text>{'3 / 3'}</Text>
91
- <AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 3}>
92
- <Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
93
- </AspectRatio>
94
- </div>
76
+ return (<div className="flex space-x-2">
77
+ <div className="flex flex-col w-[200px] items-center">
78
+ <Text>{'3 / 1'}</Text>
79
+ <AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 1}>
80
+ <Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
81
+ </AspectRatio>
82
+ </div>
83
+ <div className="flex flex-col w-[200px] items-center">
84
+ <Text>{'3 / 2'}</Text>
85
+ <AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 2}>
86
+ <Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
87
+ </AspectRatio>
88
+ </div>
89
+ <div className="flex flex-col w-[200px] items-center">
90
+ <Text>{'3 / 3'}</Text>
91
+ <AspectRatio id="defaultAspectRatio" {...args} ratio={3 / 3}>
92
+ <Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
93
+ </AspectRatio>
94
+ </div>
95
95
  </div>);
96
96
  };
97
97
  export var Scaling = function (_a) {
98
98
  var args = __rest(_a, []);
99
- return (<div className="flex flex-row space-x-5">
100
- {scalingOptions.map(function (scaling) { return (<div className="w-[130px] border border-red-9" key={scaling}>
101
- <AspectRatio id={scaling} scaling={scaling} {...args}>
102
- <Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
103
- </AspectRatio>
104
- </div>); })}
99
+ return (<div className="flex flex-row space-x-5">
100
+ {scalingOptions.map(function (scaling) { return (<div className="w-[130px] border border-red-9" key={scaling}>
101
+ <AspectRatio id={scaling} scaling={scaling} {...args}>
102
+ <Image className="h-full w-full object-cover" src="https://images.unsplash.com/photo-1535025183041-0991a977e25b?w=300&dpr=2&q=80" alt="Landscape photograph by Tobias Tullius" width={100} height={100}/>
103
+ </AspectRatio>
104
+ </div>); })}
105
105
  </div>);
106
106
  };
@@ -73,33 +73,33 @@ var meta = {
73
73
  export default meta;
74
74
  export var Default = function (_a) {
75
75
  var args = __rest(_a, []);
76
- return (<div className="flex space-x-4">
77
- <Avatar imagePath="https://images.unsplash.com/photo-1492633423870-43d1cd2775eb?&w=128&h=128&dpr=2&q=80" {...args}/>
78
- <Avatar fallbackText="A" {...args}/>
76
+ return (<div className="flex space-x-4">
77
+ <Avatar imagePath="https://images.unsplash.com/photo-1492633423870-43d1cd2775eb?&w=128&h=128&dpr=2&q=80" {...args}/>
78
+ <Avatar fallbackText="A" {...args}/>
79
79
  </div>);
80
80
  };
81
81
  export var Radius = function (_a) {
82
82
  var args = __rest(_a, []);
83
- return (<div className="flex space-x-4">
84
- {radiusOptions.map(function (radius) { return (<Avatar key={radius} radius={radius} imagePath="https://images.unsplash.com/photo-1511485977113-f34c92461ad9?ixlib=rb-1.2.1&w=128&h=128&dpr=2&q=80" {...args}/>); })}
83
+ return (<div className="flex space-x-4">
84
+ {radiusOptions.map(function (radius) { return (<Avatar key={radius} radius={radius} imagePath="https://images.unsplash.com/photo-1511485977113-f34c92461ad9?ixlib=rb-1.2.1&w=128&h=128&dpr=2&q=80" {...args}/>); })}
85
85
  </div>);
86
86
  };
87
87
  export var Size = function (_a) {
88
88
  var args = __rest(_a, []);
89
- return (<div className="flex space-x-4">
90
- {typoSizeOptions.map(function (size) { return (<Avatar key={size} size={size} fallbackText="A" {...args}/>); })}
89
+ return (<div className="flex space-x-4">
90
+ {typoSizeOptions.map(function (size) { return (<Avatar key={size} size={size} fallbackText="A" {...args}/>); })}
91
91
  </div>);
92
92
  };
93
93
  export var Scaling = function (_a) {
94
94
  var args = __rest(_a, []);
95
- return (<div className="flex space-x-4">
96
- {scalingOptions.map(function (scaling) { return (<Avatar key={scaling} scaling={scaling} imagePath="https://images.unsplash.com/photo-1502823403499-6ccfcf4fb453?&w=256&h=256&q=70&crop=focalpoint&fp-x=0.5&fp-y=0.3&fp-z=1&fit=crop" {...args}/>); })}
95
+ return (<div className="flex space-x-4">
96
+ {scalingOptions.map(function (scaling) { return (<Avatar key={scaling} scaling={scaling} imagePath="https://images.unsplash.com/photo-1502823403499-6ccfcf4fb453?&w=256&h=256&q=70&crop=focalpoint&fp-x=0.5&fp-y=0.3&fp-z=1&fit=crop" {...args}/>); })}
97
97
  </div>);
98
98
  };
99
99
  export var Appearance = function (_a) {
100
100
  var args = __rest(_a, []);
101
- return (<div className="flex space-x-4">
102
- <Avatar appearance="solid" fallbackText={'A'} {...args}/>
103
- <Avatar appearance="soft" fallbackText={'A'} {...args}/>
101
+ return (<div className="flex space-x-4">
102
+ <Avatar appearance="solid" fallbackText={'A'} {...args}/>
103
+ <Avatar appearance="soft" fallbackText={'A'} {...args}/>
104
104
  </div>);
105
105
  };
@@ -66,65 +66,65 @@ export var Default = function (_a) {
66
66
  };
67
67
  export var Radius = function (_a) {
68
68
  var args = __rest(_a, []);
69
- return (<div className="flex gap-3">
70
- {radiusOptions.map(function (radius) { return (<Badge key={radius} {...args} radius={radius}>
71
- {radius}
72
- </Badge>); })}
69
+ return (<div className="flex gap-3">
70
+ {radiusOptions.map(function (radius) { return (<Badge key={radius} {...args} radius={radius}>
71
+ {radius}
72
+ </Badge>); })}
73
73
  </div>);
74
74
  };
75
75
  export var Size = function (_a) {
76
76
  var args = __rest(_a, []);
77
- return (<div className="flex items-center gap-3">
78
- <Badge {...args} size={'small'}>
79
- small
80
- </Badge>
81
- <Badge {...args} size={'medium'}>
82
- medium
83
- </Badge>
84
- <Badge {...args} size={'large'}>
85
- large
86
- </Badge>
77
+ return (<div className="flex items-center gap-3">
78
+ <Badge {...args} size={'small'}>
79
+ small
80
+ </Badge>
81
+ <Badge {...args} size={'medium'}>
82
+ medium
83
+ </Badge>
84
+ <Badge {...args} size={'large'}>
85
+ large
86
+ </Badge>
87
87
  </div>);
88
88
  };
89
89
  export var Scaling = function (_a) {
90
90
  var args = __rest(_a, []);
91
- return (<div className="flex items-center gap-3">
92
- {scalingOptions.map(function (scaling) { return (<Badge key={scaling} {...args} scaling={scaling}>
93
- {scaling}
94
- </Badge>); })}
91
+ return (<div className="flex items-center gap-3">
92
+ {scalingOptions.map(function (scaling) { return (<Badge key={scaling} {...args} scaling={scaling}>
93
+ {scaling}
94
+ </Badge>); })}
95
95
  </div>);
96
96
  };
97
97
  export var Weight = function (_a) {
98
98
  var args = __rest(_a, []);
99
- return (<div className="flex items-center gap-3">
100
- <Badge {...args} weight="regular">
101
- regular
102
- </Badge>
103
- <Badge {...args} weight="medium">
104
- medium
105
- </Badge>
106
- <Badge {...args} weight="semibold">
107
- semibold
108
- </Badge>
109
- <Badge {...args} weight="bold">
110
- bold
111
- </Badge>
99
+ return (<div className="flex items-center gap-3">
100
+ <Badge {...args} weight="regular">
101
+ regular
102
+ </Badge>
103
+ <Badge {...args} weight="medium">
104
+ medium
105
+ </Badge>
106
+ <Badge {...args} weight="semibold">
107
+ semibold
108
+ </Badge>
109
+ <Badge {...args} weight="bold">
110
+ bold
111
+ </Badge>
112
112
  </div>);
113
113
  };
114
114
  export var Appearance = function (_a) {
115
115
  var args = __rest(_a, []);
116
- return (<div className="flex items-center gap-3">
117
- <Badge {...args} appearance="solid">
118
- solid
119
- </Badge>
120
- <Badge {...args} appearance="soft">
121
- soft
122
- </Badge>
123
- <Badge {...args} appearance="surface">
124
- surface
125
- </Badge>
126
- <Badge {...args} appearance="outline">
127
- outline
128
- </Badge>
116
+ return (<div className="flex items-center gap-3">
117
+ <Badge {...args} appearance="solid">
118
+ solid
119
+ </Badge>
120
+ <Badge {...args} appearance="soft">
121
+ soft
122
+ </Badge>
123
+ <Badge {...args} appearance="surface">
124
+ surface
125
+ </Badge>
126
+ <Badge {...args} appearance="outline">
127
+ outline
128
+ </Badge>
129
129
  </div>);
130
130
  };
@@ -109,8 +109,8 @@ export var Default = function (_a) {
109
109
  },
110
110
  },
111
111
  };
112
- return (<div className="w-[500px] h-[400px]">
113
- <BubbleChart width={400} height={300} datasets={args.datasets} options={options} {...args}/>
112
+ return (<div className="w-[500px] h-[400px]">
113
+ <BubbleChart width={400} height={300} datasets={args.datasets} options={options} {...args}/>
114
114
  </div>);
115
115
  };
116
116
  export var MultiDatasets = function (_a) {
@@ -165,12 +165,12 @@ export var PointStyles = function (_a) {
165
165
  var options = {
166
166
  responsive: false,
167
167
  };
168
- return (<div className="space-y-3">
169
- <div className="flex items-center space-x-3">
170
- {['cross', 'crossRot'].map(function (style, index) { return (<BubbleChart key={index} options={options} width={350} height={250} {...args} datasets={datasets(style, style)}/>); })}
171
- </div>
172
- <div className="flex items-center space-x-3">
173
- {['dash', 'rect'].map(function (style, index) { return (<BubbleChart key={index} options={options} width={350} height={250} {...args} datasets={datasets(style, style)}/>); })}
174
- </div>
168
+ return (<div className="space-y-3">
169
+ <div className="flex items-center space-x-3">
170
+ {['cross', 'crossRot'].map(function (style, index) { return (<BubbleChart key={index} options={options} width={350} height={250} {...args} datasets={datasets(style, style)}/>); })}
171
+ </div>
172
+ <div className="flex items-center space-x-3">
173
+ {['dash', 'rect'].map(function (style, index) { return (<BubbleChart key={index} options={options} width={350} height={250} {...args} datasets={datasets(style, style)}/>); })}
174
+ </div>
175
175
  </div>);
176
176
  };
@@ -56,43 +56,43 @@ var meta = {
56
56
  };
57
57
  export default meta;
58
58
  export var Default = function (args) { return <Button {...args}>버튼</Button>; };
59
- export var Radius = function (args) { return (<div className="flex space-x-2">
60
- {radiusOptions.map(function (radius) { return (<Button key={radius} {...args} radius={radius}>
61
- {radius}
62
- </Button>); })}
59
+ export var Radius = function (args) { return (<div className="flex space-x-2">
60
+ {radiusOptions.map(function (radius) { return (<Button key={radius} {...args} radius={radius}>
61
+ {radius}
62
+ </Button>); })}
63
63
  </div>); };
64
- export var Size = function (args) { return (<div className="flex items-center space-x-3">
65
- {sizeOptions.map(function (size) { return (<Button key={"".concat(size, "-size")} {...args} size={size}>
66
- {size}
67
- </Button>); })}
64
+ export var Size = function (args) { return (<div className="flex items-center space-x-3">
65
+ {sizeOptions.map(function (size) { return (<Button key={"".concat(size, "-size")} {...args} size={size}>
66
+ {size}
67
+ </Button>); })}
68
68
  </div>); };
69
- export var Scaling = function (args) { return (<div className="flex items-center space-x-3">
70
- {scalingOptions.map(function (scaling) { return (<Button key={scaling} {...args} scaling={scaling}>
71
- {scaling}
72
- </Button>); })}
69
+ export var Scaling = function (args) { return (<div className="flex items-center space-x-3">
70
+ {scalingOptions.map(function (scaling) { return (<Button key={scaling} {...args} scaling={scaling}>
71
+ {scaling}
72
+ </Button>); })}
73
73
  </div>); };
74
- export var Weight = function (args) { return (<div className="flex items-center space-x-3">
75
- {weightOptions.map(function (weight) { return (<Button key={weight} {...args} weight={weight}>
76
- {weight}
77
- </Button>); })}
74
+ export var Weight = function (args) { return (<div className="flex items-center space-x-3">
75
+ {weightOptions.map(function (weight) { return (<Button key={weight} {...args} weight={weight}>
76
+ {weight}
77
+ </Button>); })}
78
78
  </div>); };
79
- export var Appearance = function (args) { return (<div className="flex items-center space-x-3">
80
- {appearanceOptions.map(function (appearance) { return (<Button key={appearance} {...args} appearance={appearance}>
81
- {appearance}
82
- </Button>); })}
79
+ export var Appearance = function (args) { return (<div className="flex items-center space-x-3">
80
+ {appearanceOptions.map(function (appearance) { return (<Button key={appearance} {...args} appearance={appearance}>
81
+ {appearance}
82
+ </Button>); })}
83
83
  </div>); };
84
- export var WithIcon = function (args) { return (<div className="flex flex-col items-center space-y-3">
85
- <div className="flex items-center space-x-3">
86
- {appearanceOptions.map(function (appearance) { return (<Button key={appearance} {...args} appearance={appearance}>
87
- <BookmarkIcon className="w-4 h-4 mr-2"/>
88
- 북마크
89
- </Button>); })}
90
- </div>
91
-
92
- <div className="flex items-center space-x-3">
93
- {appearanceOptions.map(function (appearance) { return (<Button key={appearance} {...args} appearance={appearance}>
94
- More
95
- <ArrowRightIcon className="w-4 h-4 ml-2"/>
96
- </Button>); })}
97
- </div>
84
+ export var WithIcon = function (args) { return (<div className="flex flex-col items-center space-y-3">
85
+ <div className="flex items-center space-x-3">
86
+ {appearanceOptions.map(function (appearance) { return (<Button key={appearance} {...args} appearance={appearance}>
87
+ <BookmarkIcon className="w-4 h-4 mr-2"/>
88
+ 북마크
89
+ </Button>); })}
90
+ </div>
91
+
92
+ <div className="flex items-center space-x-3">
93
+ {appearanceOptions.map(function (appearance) { return (<Button key={appearance} {...args} appearance={appearance}>
94
+ More
95
+ <ArrowRightIcon className="w-4 h-4 ml-2"/>
96
+ </Button>); })}
97
+ </div>
98
98
  </div>); };
@@ -63,31 +63,31 @@ var meta = {
63
63
  export default meta;
64
64
  export var Default = function (_a) {
65
65
  var args = __rest(_a, []);
66
- return (<IconButton {...args}>
67
- <MagnifyingGlassIcon />
66
+ return (<IconButton {...args}>
67
+ <MagnifyingGlassIcon />
68
68
  </IconButton>);
69
69
  };
70
70
  export var Size = function (_a) {
71
71
  var args = __rest(_a, []);
72
- return (<div className="flex items-center space-x-4">
73
- {sizeOptions.map(function (size) { return (<IconButton key={size} {...args} size={size}>
74
- <MagnifyingGlassIcon />
75
- </IconButton>); })}
72
+ return (<div className="flex items-center space-x-4">
73
+ {sizeOptions.map(function (size) { return (<IconButton key={size} {...args} size={size}>
74
+ <MagnifyingGlassIcon />
75
+ </IconButton>); })}
76
76
  </div>);
77
77
  };
78
78
  export var Radius = function (_a) {
79
79
  var args = __rest(_a, []);
80
- return (<div className="flex items-center space-x-4">
81
- {radiusOptions.map(function (radius) { return (<IconButton key={radius} {...args} radius={radius}>
82
- <MagnifyingGlassIcon />
83
- </IconButton>); })}
80
+ return (<div className="flex items-center space-x-4">
81
+ {radiusOptions.map(function (radius) { return (<IconButton key={radius} {...args} radius={radius}>
82
+ <MagnifyingGlassIcon />
83
+ </IconButton>); })}
84
84
  </div>);
85
85
  };
86
86
  export var Appearance = function (_a) {
87
87
  var args = __rest(_a, []);
88
- return (<div className="flex items-center space-x-4">
89
- {appearanceOptions.map(function (appearance) { return (<IconButton key={appearance} {...args} appearance={appearance}>
90
- <MagnifyingGlassIcon />
91
- </IconButton>); })}
88
+ return (<div className="flex items-center space-x-4">
89
+ {appearanceOptions.map(function (appearance) { return (<IconButton key={appearance} {...args} appearance={appearance}>
90
+ <MagnifyingGlassIcon />
91
+ </IconButton>); })}
92
92
  </div>);
93
93
  };