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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) 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.d.ts +1 -1
  5. package/dist/Typography/Text/index.jsx +4 -4
  6. package/dist/Typography/index.js +3 -2
  7. package/dist/app/layout.jsx +2 -2
  8. package/dist/app/page.d.ts +1 -1
  9. package/dist/app/page.jsx +3 -39
  10. package/dist/app/template/badgeTemplate.jsx +71 -71
  11. package/dist/app/template/buttonTemplate.jsx +71 -71
  12. package/dist/app/template/colorPicker.jsx +6 -6
  13. package/dist/app/template/textTemplate.jsx +55 -55
  14. package/dist/app/template/theme.jsx +32 -32
  15. package/dist/components/Accordion/index.jsx +13 -13
  16. package/dist/components/AlertDialog/AlertDialogAction.jsx +2 -2
  17. package/dist/components/AlertDialog/AlertDialogCancel.jsx +2 -2
  18. package/dist/components/AlertDialog/AlertDialogContent.jsx +5 -5
  19. package/dist/components/AlertDialog/AlertDialogDescription.jsx +2 -2
  20. package/dist/components/AlertDialog/AlertDialogTitle.jsx +2 -2
  21. package/dist/components/AlertDialog/AlertDialogTrigger.jsx +2 -2
  22. package/dist/components/AspectRatio/index.jsx +2 -2
  23. package/dist/components/Avatar/index.jsx +5 -5
  24. package/dist/components/Badge/index.jsx +2 -2
  25. package/dist/components/BubbleChart/index.d.ts +1 -1
  26. package/dist/components/Button/index.jsx +2 -2
  27. package/dist/components/Callout/CalloutIcon.jsx +6 -6
  28. package/dist/components/Callout/CalloutText.jsx +2 -2
  29. package/dist/components/Callout/index.jsx +4 -4
  30. package/dist/components/Card/index.jsx +2 -2
  31. package/dist/components/Checkbox/index.jsx +9 -9
  32. package/dist/components/CheckboxCard/index.jsx +3 -3
  33. package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +4 -4
  34. package/dist/components/CheckboxGroup/index.jsx +4 -4
  35. package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +5 -5
  36. package/dist/components/ContextMenu/ContextMenuContent.jsx +4 -4
  37. package/dist/components/ContextMenu/ContextMenuGroup.jsx +2 -2
  38. package/dist/components/ContextMenu/ContextMenuItem.jsx +3 -3
  39. package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +2 -2
  40. package/dist/components/ContextMenu/ContextMenuLabel.jsx +2 -2
  41. package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +4 -4
  42. package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +5 -5
  43. package/dist/components/ContextMenu/ContextMenuSeparator.jsx +2 -2
  44. package/dist/components/ContextMenu/ContextMenuSubContent.jsx +4 -4
  45. package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +7 -7
  46. package/dist/components/ContextMenu/ContextMenuTrigger.jsx +2 -2
  47. package/dist/components/ContextMenu/index.jsx +2 -2
  48. package/dist/components/DataList/DataListItem.jsx +2 -2
  49. package/dist/components/DataList/DataListLabel.jsx +2 -2
  50. package/dist/components/DataList/DataListValue.jsx +2 -2
  51. package/dist/components/DataList/index.jsx +4 -4
  52. package/dist/components/Dialog/DialogAction.jsx +2 -2
  53. package/dist/components/Dialog/DialogCancel.jsx +2 -2
  54. package/dist/components/Dialog/DialogContent.jsx +2 -2
  55. package/dist/components/Dialog/DialogDescription.jsx +2 -2
  56. package/dist/components/Dialog/DialogSlot.jsx +2 -2
  57. package/dist/components/Dialog/DialogTitle.jsx +2 -2
  58. package/dist/components/Dialog/DialogTrigger.jsx +2 -2
  59. package/dist/components/Dialog/index.jsx +2 -2
  60. package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +4 -4
  61. package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +4 -4
  62. package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +5 -5
  63. package/dist/components/DropdownMenu/DropdownMenuContent.jsx +4 -4
  64. package/dist/components/DropdownMenu/DropdownMenuItem.jsx +3 -3
  65. package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +2 -2
  66. package/dist/components/DropdownMenu/DropdownMenuLable.jsx +2 -2
  67. package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +5 -5
  68. package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +5 -5
  69. package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +2 -2
  70. package/dist/components/HoverCard/HoverCardContent.jsx +2 -2
  71. package/dist/components/HoverCard/HoverCardTrigger.jsx +2 -2
  72. package/dist/components/HoverCard/index.jsx +2 -2
  73. package/dist/components/IconButton/index.jsx +2 -2
  74. package/dist/components/Input/Input.stories.jsx +6 -6
  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 +5 -5
  78. package/dist/components/Menubar/MenubarContent.jsx +4 -4
  79. package/dist/components/Menubar/MenubarItem.jsx +3 -3
  80. package/dist/components/Menubar/MenubarItemIndicator.jsx +2 -2
  81. package/dist/components/Menubar/MenubarRadioGroup.jsx +4 -4
  82. package/dist/components/Menubar/MenubarRadioItem.jsx +5 -5
  83. package/dist/components/Menubar/MenubarSeparator.jsx +2 -2
  84. package/dist/components/Menubar/MenubarSubContent.jsx +2 -2
  85. package/dist/components/Menubar/MenubarSubTrigger.jsx +5 -5
  86. package/dist/components/Menubar/MenubarTrigger.jsx +2 -2
  87. package/dist/components/Menubar/index.jsx +4 -4
  88. package/dist/components/NavigationMenu/NavigationMenuContent.jsx +2 -2
  89. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +3 -3
  90. package/dist/components/NavigationMenu/NavigationMenuItem.jsx +2 -2
  91. package/dist/components/NavigationMenu/NavigationMenuLink.jsx +2 -2
  92. package/dist/components/NavigationMenu/NavigationMenuList.jsx +3 -3
  93. package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +3 -3
  94. package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +2 -2
  95. package/dist/components/NavigationMenu/index.jsx +4 -4
  96. package/dist/components/Popover/PopoverClose.jsx +2 -2
  97. package/dist/components/Popover/PopoverContent.jsx +2 -2
  98. package/dist/components/Popover/PopoverTrigger.jsx +2 -2
  99. package/dist/components/Popover/index.jsx +2 -2
  100. package/dist/components/Progress/index.d.ts +3 -3
  101. package/dist/components/Progress/index.jsx +2 -2
  102. package/dist/components/RadarChart/index.d.ts +1 -1
  103. package/dist/components/Radio/index.d.ts +1 -1
  104. package/dist/components/Radio/index.jsx +7 -7
  105. package/dist/components/RadioCards/RadioCardsItem.jsx +2 -2
  106. package/dist/components/RadioCards/index.d.ts +1 -1
  107. package/dist/components/RadioCards/index.jsx +4 -4
  108. package/dist/components/RadioGroup/RadioGroupItem.jsx +2 -2
  109. package/dist/components/RadioGroup/index.d.ts +1 -1
  110. package/dist/components/RadioGroup/index.jsx +4 -4
  111. package/dist/components/ScrollArea/index.jsx +4 -4
  112. package/dist/components/SegmentedControl/SegmentedControlItem.jsx +2 -2
  113. package/dist/components/SegmentedControl/index.d.ts +1 -1
  114. package/dist/components/SegmentedControl/index.jsx +4 -4
  115. package/dist/components/Select/index.d.ts +1 -1
  116. package/dist/components/Select/index.jsx +16 -16
  117. package/dist/components/Separator/index.d.ts +1 -1
  118. package/dist/components/Separator/index.jsx +4 -4
  119. package/dist/components/Skeleton/index.d.ts +1 -1
  120. package/dist/components/Skeleton/index.jsx +4 -4
  121. package/dist/components/Slider/index.d.ts +1 -1
  122. package/dist/components/Slider/index.jsx +2 -2
  123. package/dist/components/Spinner/index.d.ts +1 -1
  124. package/dist/components/Spinner/index.jsx +4 -4
  125. package/dist/components/TabNav/index.jsx +6 -6
  126. package/dist/components/Table/index.d.ts +2 -2
  127. package/dist/components/Table/index.jsx +16 -16
  128. package/dist/components/Tabs/index.d.ts +1 -1
  129. package/dist/components/Tabs/index.jsx +10 -10
  130. package/dist/components/TextArea/index.d.ts +3 -3
  131. package/dist/components/TextArea/index.jsx +2 -2
  132. package/dist/components/TextField/index.d.ts +1 -1
  133. package/dist/components/TextField/index.jsx +6 -6
  134. package/dist/components/Toast/ToastActionButton.d.ts +3 -3
  135. package/dist/components/Toast/ToastActionButton.jsx +2 -2
  136. package/dist/components/Toast/ToastDescription.d.ts +1 -1
  137. package/dist/components/Toast/ToastDescription.jsx +4 -4
  138. package/dist/components/Toast/ToastTitle.d.ts +1 -1
  139. package/dist/components/Toast/ToastTitle.jsx +2 -2
  140. package/dist/components/Toast/index.d.ts +3 -3
  141. package/dist/components/Toast/index.jsx +7 -7
  142. package/dist/components/Toggle/ToggleWithText.jsx +3 -3
  143. package/dist/components/Toggle/index.d.ts +3 -3
  144. package/dist/components/Toggle/index.jsx +2 -2
  145. package/dist/components/ToggleGroup/index.d.ts +1 -1
  146. package/dist/components/ToggleGroup/index.jsx +4 -4
  147. package/dist/components/ToggleGroup/toggleGroupItem.jsx +2 -2
  148. package/dist/components/ToggleSwitch/index.d.ts +3 -3
  149. package/dist/components/ToggleSwitch/index.jsx +5 -5
  150. package/dist/components/Tooltip/index.d.ts +1 -1
  151. package/dist/components/Tooltip/index.jsx +10 -10
  152. package/dist/components/index.d.ts +0 -2
  153. package/dist/index.d.ts +0 -5
  154. package/dist/index.js +3 -5
  155. package/dist/stories/Welcome.jsx +19 -19
  156. package/dist/stories/accordion/Accordion.stories.jsx +19 -19
  157. package/dist/stories/alert-dialog/AlertDialog.stories.jsx +14 -14
  158. package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +29 -29
  159. package/dist/stories/avatar/Avatar.stories.jsx +12 -12
  160. package/dist/stories/badge/Badge.stories.jsx +44 -44
  161. package/dist/stories/bubble-chart/BubbleChart.stories.jsx +9 -9
  162. package/dist/stories/button/Button.stories.jsx +34 -34
  163. package/dist/stories/button/IconButton.stories.jsx +14 -14
  164. package/dist/stories/callout/Callout.stories.jsx +107 -107
  165. package/dist/stories/card/Card.stories.jsx +51 -51
  166. package/dist/stories/checkbox/Checkbox.stories.jsx +57 -57
  167. package/dist/stories/checkbox/CheckboxCard.stories.jsx +36 -36
  168. package/dist/stories/checkbox/CheckboxGroup.stories.jsx +73 -73
  169. package/dist/stories/context-menu/ContextMenu.stories.jsx +70 -70
  170. package/dist/stories/data-list/DataList.stories.jsx +102 -102
  171. package/dist/stories/dialog/Dialog.stories.jsx +24 -24
  172. package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +9 -9
  173. package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +96 -96
  174. package/dist/stories/header/Header.stories.jsx +20 -20
  175. package/dist/stories/hover-card/HoverCard.stories.jsx +28 -28
  176. package/dist/stories/inset/Inset.stories.jsx +16 -16
  177. package/dist/stories/label/Label.stories.jsx +22 -22
  178. package/dist/stories/menubar/Menubar.stories.jsx +38 -38
  179. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +9 -9
  180. package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +67 -67
  181. package/dist/stories/pie-chart/PieChart.stories.jsx +20 -20
  182. package/dist/stories/popover/Popover.stories.jsx +34 -34
  183. package/dist/stories/progress/Progress.stories.jsx +6 -6
  184. package/dist/stories/radio/Radio.stories.jsx +11 -11
  185. package/dist/stories/radio/RadioCards.stories.jsx +60 -60
  186. package/dist/stories/radio/RadioGroup.stories.jsx +55 -55
  187. package/dist/stories/scroll-area/ScrollArea.stories.jsx +61 -61
  188. package/dist/stories/segmented-control/SegmentedControl.stories.jsx +22 -22
  189. package/dist/stories/select/Select.stories.jsx +62 -62
  190. package/dist/stories/separator/Separator.stories.jsx +25 -25
  191. package/dist/stories/skeleton/Skeleton.stories.jsx +28 -28
  192. package/dist/stories/slider/Slider.stories.jsx +12 -12
  193. package/dist/stories/spinner/Spinner.stories.jsx +26 -26
  194. package/dist/stories/switch/Switch.stories.jsx +12 -12
  195. package/dist/stories/tab-nav/TabNav.stories.jsx +10 -10
  196. package/dist/stories/table/Table.stories.jsx +28 -28
  197. package/dist/stories/tabs/Tabs.stories.jsx +18 -18
  198. package/dist/stories/text/Text.stories.jsx +16 -16
  199. package/dist/stories/textArea/TextArea.stories.jsx +17 -17
  200. package/dist/stories/textfield/TextField.stories.jsx +33 -33
  201. package/dist/stories/toast/Toast.stories.jsx +19 -19
  202. package/dist/stories/toggle/Toggle.stories.jsx +18 -18
  203. package/dist/stories/toggle/ToggleGroup.stories.jsx +34 -34
  204. package/dist/stories/tooltip/Tooltip.stories.jsx +14 -14
  205. package/dist/tsconfig.tsbuildinfo +1 -1
  206. package/package.json +119 -118
@@ -49,10 +49,10 @@ export var IconScaling = {
49
49
  };
50
50
  export var Toggle = forwardRef(function (_a, ref) {
51
51
  var className = _a.className, children = _a.children, radius = _a.radius, _b = _a.size, size = _b === void 0 ? 'medium' : _b, scaling = _a.scaling, _c = _a.color, color = _c === void 0 ? 'red' : _c, _d = _a.appearance, appearance = _d === void 0 ? 'surface' : _d, props = __rest(_a, ["className", "children", "radius", "size", "scaling", "color", "appearance"]);
52
- return (<TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className)} {...props}>
52
+ return (<TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className)} {...props}>
53
53
  {Children.map(children, function (child) {
54
54
  return React.cloneElement(child, { className: IconScaling[size] });
55
- })}
55
+ })}
56
56
  </TogglePrimitive.Root>);
57
57
  });
58
58
  Toggle.displayName = 'Toggle';
@@ -14,7 +14,7 @@ export interface ToggleGroupMultipleProps extends VariantProps<typeof toggleVari
14
14
  value?: string[];
15
15
  }
16
16
  declare const toggleVariants: (props?: ({
17
- scaling?: "100%" | "90%" | "95%" | "105%" | "110%" | null | undefined;
17
+ scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
18
18
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
19
19
  export declare const ToggleGroup: React.ForwardRefExoticComponent<(React.ComponentPropsWithoutRef<React.ForwardRefExoticComponent<(ToggleGroupPrimitive.ToggleGroupSingleProps | ToggleGroupPrimitive.ToggleGroupMultipleProps) & React.RefAttributes<HTMLDivElement>>> & ToggleGroupSingleProps & ToggleGroupMultipleProps) & React.RefAttributes<HTMLDivElement>>;
20
20
  export default ToggleGroup;
@@ -36,10 +36,10 @@ var toggleVariants = cva('inline-flex', {
36
36
  });
37
37
  export var ToggleGroup = forwardRef(function (_a, ref) {
38
38
  var className = _a.className, children = _a.children, defaultValue = _a.defaultValue, value = _a.value, type = _a.type, onValueChange = _a.onValueChange, scaling = _a.scaling, props = __rest(_a, ["className", "children", "defaultValue", "value", "type", "onValueChange", "scaling"]);
39
- return type === 'single' ? (<ToggleGroupPrimitive.Root ref={ref} type={type} value={value} defaultValue={defaultValue} className={cn(toggleVariants({ scaling: scaling }), className)} {...props}>
40
- {children}
41
- </ToggleGroupPrimitive.Root>) : (<ToggleGroupPrimitive.Root ref={ref} type={type} value={value} defaultValue={defaultValue} className={cn(toggleVariants({ scaling: scaling }), className)} {...props}>
42
- {children}
39
+ return type === 'single' ? (<ToggleGroupPrimitive.Root ref={ref} type={type} value={value} defaultValue={defaultValue} className={cn(toggleVariants({ scaling: scaling }), className)} {...props}>
40
+ {children}
41
+ </ToggleGroupPrimitive.Root>) : (<ToggleGroupPrimitive.Root ref={ref} type={type} value={value} defaultValue={defaultValue} className={cn(toggleVariants({ scaling: scaling }), className)} {...props}>
42
+ {children}
43
43
  </ToggleGroupPrimitive.Root>);
44
44
  });
45
45
  ToggleGroup.displayName = 'ToggleGroup';
@@ -33,10 +33,10 @@ export var IconScaling = {
33
33
  };
34
34
  export var ToggleGroupItem = forwardRef(function (_a, ref) {
35
35
  var className = _a.className, children = _a.children, value = _a.value, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, _d = _a.appearance, appearance = _d === void 0 ? 'surface' : _d, props = __rest(_a, ["className", "children", "value", "size", "color", "appearance"]);
36
- return (<ToggleGroupPrimitive.Item ref={ref} value={value} className={cn(toggleGroupItemVariants({ size: size }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className)} {...props}>
36
+ return (<ToggleGroupPrimitive.Item ref={ref} value={value} className={cn(toggleGroupItemVariants({ size: size }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className)} {...props}>
37
37
  {Children.map(children, function (child) {
38
38
  return React.cloneElement(child, { className: IconScaling[size] });
39
- })}
39
+ })}
40
40
  </ToggleGroupPrimitive.Item>);
41
41
  });
42
42
  ToggleGroupItem.displayName = 'ToggleGroupItem';
@@ -5,9 +5,9 @@ export interface ToggleSwitchProps extends VariantProps<typeof toggleSwitchVaria
5
5
  children?: any;
6
6
  }
7
7
  declare const toggleSwitchVariants: (props?: ({
8
- scaling?: "100%" | "90%" | "95%" | "105%" | "110%" | null | undefined;
9
- radius?: "medium" | "small" | "none" | "large" | "full" | null | undefined;
10
- size?: "medium" | "small" | "large" | null | undefined;
8
+ scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
9
+ radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
10
+ size?: "small" | "medium" | "large" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  export declare const ToggleSwitch: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ToggleSwitchProps & React.RefAttributes<HTMLButtonElement>>;
13
13
  export default ToggleSwitch;
@@ -64,11 +64,11 @@ export var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {
64
64
  sizeTheme = '1';
65
65
  if (size === 'large')
66
66
  sizeTheme = '3';
67
- return (<Theme className="flex" accentColor={color} hasBackground={false}>
68
- <Text as="label" className={cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling }))}>
69
- <SwitchTheme ref={forwardedRef} {...switchProps} variant={appearance} radius={radius} size={sizeTheme} color={color} className={cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className)}></SwitchTheme>
70
- {children}
71
- </Text>
67
+ return (<Theme className="flex" accentColor={color} hasBackground={false}>
68
+ <Text as="label" className={cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling }))}>
69
+ <SwitchTheme ref={forwardedRef} {...switchProps} variant={appearance} radius={radius} size={sizeTheme} color={color} className={cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className)}></SwitchTheme>
70
+ {children}
71
+ </Text>
72
72
  </Theme>);
73
73
  });
74
74
  ToggleSwitch.displayName = 'ToggleSwitch';
@@ -11,7 +11,7 @@ export interface TooltipProps extends React.InputHTMLAttributes<HTMLInputElement
11
11
  side?: 'top' | 'right' | 'bottom' | 'left';
12
12
  }
13
13
  declare const tooltipVariants: (props?: ({
14
- scaling?: number | typeof Symbol.iterator | typeof Symbol.unscopables | "map" | "filter" | "fill" | "values" | "concat" | "indexOf" | "lastIndexOf" | "slice" | "length" | "includes" | "at" | "toLocaleString" | "toString" | "join" | "every" | "some" | "forEach" | "reduce" | "reduceRight" | "find" | "findIndex" | "entries" | "keys" | "flatMap" | "flat" | "findLast" | "findLastIndex" | "toReversed" | "toSorted" | "toSpliced" | "with" | "pop" | "push" | "reverse" | "shift" | "sort" | "splice" | "unshift" | "copyWithin" | null | undefined;
14
+ scaling?: number | typeof Symbol.iterator | typeof Symbol.unscopables | "toString" | "concat" | "indexOf" | "lastIndexOf" | "slice" | "length" | "includes" | "at" | "map" | "filter" | "fill" | "values" | "toLocaleString" | "join" | "every" | "some" | "forEach" | "reduce" | "reduceRight" | "find" | "findIndex" | "entries" | "keys" | "flatMap" | "flat" | "findLast" | "findLastIndex" | "toReversed" | "toSorted" | "toSpliced" | "with" | "pop" | "push" | "reverse" | "shift" | "sort" | "splice" | "unshift" | "copyWithin" | null | undefined;
15
15
  weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
16
16
  radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
17
17
  color?: string | null | undefined;
@@ -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 +0,0 @@
1
- // components 디렉토리 내의 모든 타입 선언을 내보냄
2
- export * from './components';
3
-
4
- // typography 디렉토리 내의 모든 타입 선언을 내보냄
5
- export * from './Typography';
package/dist/index.js CHANGED
@@ -1,5 +1,3 @@
1
- // components 디렉토리 내의 모든 파일을 내보냄
2
- export * from './components';
3
-
4
- // typography 디렉토리 내의 모든 파일을 내보냄
5
- export * from './Typography';
1
+ "use strict";
2
+ // export * from './components';
3
+ // 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
  };