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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (247) hide show
  1. package/dist/Typography/Header/{index.js → index.jsx} +5 -2
  2. package/dist/Typography/Text/{index.js → index.jsx} +6 -3
  3. package/dist/app/layout.d.ts +1 -1
  4. package/dist/app/{layout.js → layout.jsx} +3 -2
  5. package/dist/app/page.d.ts +2 -1
  6. package/dist/app/page.jsx +9 -0
  7. package/dist/app/template/colorPicker.d.ts +2 -1
  8. package/dist/app/template/colorPicker.jsx +19 -0
  9. package/dist/app/template/theme.d.ts +2 -2
  10. package/dist/app/template/{theme.js → theme.jsx} +8 -2
  11. package/dist/components/Accordion/{index.js → index.jsx} +17 -5
  12. package/dist/components/AlertDialog/{AlertDialogAction.js → AlertDialogAction.jsx} +4 -3
  13. package/dist/components/AlertDialog/{AlertDialogCancel.js → AlertDialogCancel.jsx} +4 -3
  14. package/dist/components/AlertDialog/{AlertDialogContent.js → AlertDialogContent.jsx} +7 -3
  15. package/dist/components/AlertDialog/{AlertDialogDescription.js → AlertDialogDescription.jsx} +4 -14
  16. package/dist/components/AlertDialog/{AlertDialogTitle.js → AlertDialogTitle.jsx} +4 -14
  17. package/dist/components/AlertDialog/{AlertDialogTrigger.js → AlertDialogTrigger.jsx} +4 -3
  18. package/dist/components/AlertDialog/{index.js → index.jsx} +4 -14
  19. package/dist/components/AspectRatio/{index.js → index.jsx} +4 -3
  20. package/dist/components/Avatar/{index.js → index.jsx} +7 -3
  21. package/dist/components/Badge/{index.js → index.jsx} +4 -3
  22. package/dist/components/BubbleChart/index.d.ts +2 -1
  23. package/dist/components/BubbleChart/{index.js → index.jsx} +2 -2
  24. package/dist/components/Button/{index.js → index.jsx} +4 -3
  25. package/dist/components/Callout/{CalloutIcon.js → CalloutIcon.jsx} +8 -3
  26. package/dist/components/Callout/{CalloutText.js → CalloutText.jsx} +4 -14
  27. package/dist/components/Callout/{index.js → index.jsx} +6 -3
  28. package/dist/components/Card/{index.js → index.jsx} +4 -3
  29. package/dist/components/Checkbox/{index.js → index.jsx} +11 -3
  30. package/dist/components/CheckboxCard/{index.js → index.jsx} +5 -3
  31. package/dist/components/CheckboxGroup/{CheckboxGroupItem.js → CheckboxGroupItem.jsx} +6 -14
  32. package/dist/components/CheckboxGroup/{index.js → index.jsx} +5 -2
  33. package/dist/components/ContextMenu/{ContextMenuCheckboxItem.js → ContextMenuCheckboxItem.jsx} +7 -14
  34. package/dist/components/ContextMenu/{ContextMenuContent.js → ContextMenuContent.jsx} +6 -3
  35. package/dist/components/ContextMenu/{ContextMenuGroup.js → ContextMenuGroup.jsx} +4 -14
  36. package/dist/components/ContextMenu/{ContextMenuItem.js → ContextMenuItem.jsx} +5 -3
  37. package/dist/components/ContextMenu/{ContextMenuItemIndicator.js → ContextMenuItemIndicator.jsx} +4 -3
  38. package/dist/components/ContextMenu/{ContextMenuLabel.js → ContextMenuLabel.jsx} +4 -3
  39. package/dist/components/ContextMenu/{ContextMenuRadioGroup.js → ContextMenuRadioGroup.jsx} +6 -14
  40. package/dist/components/ContextMenu/{ContextMenuRadioItem.js → ContextMenuRadioItem.jsx} +7 -14
  41. package/dist/components/ContextMenu/{ContextMenuSeparator.js → ContextMenuSeparator.jsx} +4 -14
  42. package/dist/components/ContextMenu/{ContextMenuSubContent.js → ContextMenuSubContent.jsx} +9 -6
  43. package/dist/components/ContextMenu/{ContextMenuSubTrigger.js → ContextMenuSubTrigger.jsx} +9 -14
  44. package/dist/components/ContextMenu/{ContextMenuTrigger.js → ContextMenuTrigger.jsx} +4 -14
  45. package/dist/components/ContextMenu/{index.js → index.jsx} +6 -14
  46. package/dist/components/DataList/{DataListItem.js → DataListItem.jsx} +4 -3
  47. package/dist/components/DataList/{DataListLabel.js → DataListLabel.jsx} +4 -3
  48. package/dist/components/DataList/{DataListValue.js → DataListValue.jsx} +4 -3
  49. package/dist/components/DataList/{index.js → index.jsx} +6 -14
  50. package/dist/components/Dialog/{DialogAction.js → DialogAction.jsx} +4 -14
  51. package/dist/components/Dialog/{DialogCancel.js → DialogCancel.jsx} +4 -14
  52. package/dist/components/Dialog/{DialogContent.js → DialogContent.jsx} +4 -3
  53. package/dist/components/Dialog/{DialogDescription.js → DialogDescription.jsx} +4 -14
  54. package/dist/components/Dialog/{DialogSlot.js → DialogSlot.jsx} +4 -14
  55. package/dist/components/Dialog/{DialogTitle.js → DialogTitle.jsx} +4 -14
  56. package/dist/components/Dialog/{DialogTrigger.js → DialogTrigger.jsx} +4 -14
  57. package/dist/components/Dialog/{index.js → index.jsx} +4 -14
  58. package/dist/components/DoughnutChart/index.d.ts +2 -1
  59. package/dist/components/DoughnutChart/{index.js → index.jsx} +2 -2
  60. package/dist/components/DropdownMenu/{DropdonMenuRadioGroup.js → DropdonMenuRadioGroup.jsx} +6 -14
  61. package/dist/components/DropdownMenu/{DropdonMenuSubContent.js → DropdonMenuSubContent.jsx} +10 -7
  62. package/dist/components/DropdownMenu/{DropdownMenuCheckboxItem.js → DropdownMenuCheckboxItem.jsx} +7 -14
  63. package/dist/components/DropdownMenu/{DropdownMenuContent.js → DropdownMenuContent.jsx} +6 -3
  64. package/dist/components/DropdownMenu/{DropdownMenuItem.js → DropdownMenuItem.jsx} +5 -3
  65. package/dist/components/DropdownMenu/{DropdownMenuItemIndicator.js → DropdownMenuItemIndicator.jsx} +4 -3
  66. package/dist/components/DropdownMenu/{DropdownMenuLable.js → DropdownMenuLable.jsx} +4 -3
  67. package/dist/components/DropdownMenu/{DropdownMenuRadioItem.js → DropdownMenuRadioItem.jsx} +7 -14
  68. package/dist/components/DropdownMenu/{DropdownMenuSeparator.js → DropdownMenuSeparator.jsx} +2 -14
  69. package/dist/components/DropdownMenu/{DropdownMenuSub.js → DropdownMenuSub.jsx} +2 -14
  70. package/dist/components/DropdownMenu/{DropdownMenuSubTrigger.js → DropdownMenuSubTrigger.jsx} +7 -14
  71. package/dist/components/DropdownMenu/{DropdownMenuTrigger.js → DropdownMenuTrigger.jsx} +4 -14
  72. package/dist/components/DropdownMenu/{index.js → index.jsx} +2 -14
  73. package/dist/components/HoverCard/{HoverCardContent.js → HoverCardContent.jsx} +4 -3
  74. package/dist/components/HoverCard/{HoverCardTrigger.js → HoverCardTrigger.jsx} +4 -14
  75. package/dist/components/HoverCard/{index.js → index.jsx} +4 -14
  76. package/dist/components/IconButton/{index.js → index.jsx} +3 -2
  77. package/dist/components/Inset/{index.js → index.jsx} +6 -3
  78. package/dist/components/Label/{index.js → index.jsx} +3 -2
  79. package/dist/components/Menubar/{MenubarCheckboxItem.js → MenubarCheckboxItem.jsx} +7 -14
  80. package/dist/components/Menubar/{MenubarContent.js → MenubarContent.jsx} +10 -7
  81. package/dist/components/Menubar/{MenubarItem.js → MenubarItem.jsx} +5 -3
  82. package/dist/components/Menubar/{MenubarItemIndicator.js → MenubarItemIndicator.jsx} +4 -3
  83. package/dist/components/Menubar/{MenubarMenu.js → MenubarMenu.jsx} +2 -14
  84. package/dist/components/Menubar/{MenubarRadioGroup.js → MenubarRadioGroup.jsx} +6 -14
  85. package/dist/components/Menubar/{MenubarRadioItem.js → MenubarRadioItem.jsx} +7 -14
  86. package/dist/components/Menubar/{MenubarSeparator.js → MenubarSeparator.jsx} +4 -14
  87. package/dist/components/Menubar/{MenubarSub.js → MenubarSub.jsx} +2 -14
  88. package/dist/components/Menubar/{MenubarSubContent.js → MenubarSubContent.jsx} +5 -4
  89. package/dist/components/Menubar/{MenubarSubTrigger.js → MenubarSubTrigger.jsx} +7 -14
  90. package/dist/components/Menubar/{MenubarTrigger.js → MenubarTrigger.jsx} +4 -3
  91. package/dist/components/Menubar/{index.js → index.jsx} +6 -3
  92. package/dist/components/NavigationMenu/{NavigationMenuContent.js → NavigationMenuContent.jsx} +4 -3
  93. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +22 -0
  94. package/dist/components/NavigationMenu/{NavigationMenuItem.js → NavigationMenuItem.jsx} +4 -14
  95. package/dist/components/NavigationMenu/{NavigationMenuLink.js → NavigationMenuLink.jsx} +4 -3
  96. package/dist/components/NavigationMenu/{NavigationMenuList.js → NavigationMenuList.jsx} +5 -3
  97. package/dist/components/NavigationMenu/{NavigationMenuTrigger.js → NavigationMenuTrigger.jsx} +5 -3
  98. package/dist/components/NavigationMenu/{NavigationMenuViewport.js → NavigationMenuViewport.jsx} +4 -3
  99. package/dist/components/NavigationMenu/{index.js → index.jsx} +6 -14
  100. package/dist/components/PieChart/index.d.ts +2 -1
  101. package/dist/components/PieChart/{index.js → index.jsx} +2 -2
  102. package/dist/components/Popover/{PopoverClose.js → PopoverClose.jsx} +4 -14
  103. package/dist/components/Popover/{PopoverContent.js → PopoverContent.jsx} +4 -3
  104. package/dist/components/Popover/{PopoverTrigger.js → PopoverTrigger.jsx} +4 -14
  105. package/dist/components/Popover/{index.js → index.jsx} +4 -14
  106. package/dist/components/Progress/{index.js → index.jsx} +4 -3
  107. package/dist/components/RadarChart/index.d.ts +2 -1
  108. package/dist/components/RadarChart/{index.js → index.jsx} +2 -2
  109. package/dist/components/Radio/{index.js → index.jsx} +8 -13
  110. package/dist/components/RadioCards/{RadioCardsItem.js → RadioCardsItem.jsx} +4 -14
  111. package/dist/components/RadioCards/{index.js → index.jsx} +6 -3
  112. package/dist/components/RadioGroup/{RadioGroupItem.js → RadioGroupItem.jsx} +4 -14
  113. package/dist/components/RadioGroup/{index.js → index.jsx} +6 -14
  114. package/dist/components/ScrollArea/{index.js → index.jsx} +6 -14
  115. package/dist/components/SegmentedControl/{SegmentedControlItem.js → SegmentedControlItem.jsx} +4 -14
  116. package/dist/components/SegmentedControl/{index.js → index.jsx} +5 -2
  117. package/dist/components/Select/{index.js → index.jsx} +25 -8
  118. package/dist/components/Separator/{index.js → index.jsx} +5 -2
  119. package/dist/components/Skeleton/{index.js → index.jsx} +5 -2
  120. package/dist/components/Slider/{index.js → index.jsx} +3 -2
  121. package/dist/components/Spinner/{index.js → index.jsx} +5 -2
  122. package/dist/components/TabNav/{index.js → index.jsx} +8 -14
  123. package/dist/components/Table/{index.js → index.jsx} +23 -8
  124. package/dist/components/Tabs/{index.js → index.jsx} +14 -5
  125. package/dist/components/TextArea/{index.js → index.jsx} +3 -2
  126. package/dist/components/TextField/{index.js → index.jsx} +8 -3
  127. package/dist/components/Toast/{ToastActionButton.js → ToastActionButton.jsx} +4 -3
  128. package/dist/components/Toast/{ToastDescription.js → ToastDescription.jsx} +6 -14
  129. package/dist/components/Toast/{ToastTitle.js → ToastTitle.jsx} +4 -14
  130. package/dist/components/Toast/{index.js → index.jsx} +9 -3
  131. package/dist/components/Toggle/{ToggleWithText.js → ToggleWithText.jsx} +6 -4
  132. package/dist/components/Toggle/{index.js → index.jsx} +4 -3
  133. package/dist/components/ToggleGroup/{index.js → index.jsx} +6 -3
  134. package/dist/components/ToggleGroup/{toggleGroupItem.js → toggleGroupItem.jsx} +4 -14
  135. package/dist/components/ToggleSwitch/{index.js → index.jsx} +6 -2
  136. package/dist/components/Tooltip/{index.js → index.jsx} +11 -2
  137. package/dist/stories/Welcome.d.ts +2 -1
  138. package/dist/stories/Welcome.jsx +48 -0
  139. package/dist/stories/accordion/Accordion.stories.d.ts +1 -1
  140. package/dist/stories/accordion/{Accordion.stories.js → Accordion.stories.jsx} +20 -2
  141. package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +1 -1
  142. package/dist/stories/alert-dialog/{AlertDialog.stories.js → AlertDialog.stories.jsx} +15 -2
  143. package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +3 -3
  144. package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +106 -0
  145. package/dist/stories/avatar/Avatar.stories.d.ts +5 -5
  146. package/dist/stories/avatar/{Avatar.stories.js → Avatar.stories.jsx} +17 -6
  147. package/dist/stories/badge/Badge.stories.d.ts +6 -6
  148. package/dist/stories/badge/{Badge.stories.js → Badge.stories.jsx} +51 -7
  149. package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +5 -4
  150. package/dist/stories/bubble-chart/{BubbleChart.stories.js → BubbleChart.stories.jsx} +12 -4
  151. package/dist/stories/button/Button.stories.d.ts +7 -7
  152. package/dist/stories/button/{Button.stories.js → Button.stories.jsx} +41 -8
  153. package/dist/stories/button/IconButton.stories.d.ts +4 -4
  154. package/dist/stories/button/{IconButton.stories.js → IconButton.stories.jsx} +18 -5
  155. package/dist/stories/callout/Callout.stories.d.ts +7 -7
  156. package/dist/stories/callout/Callout.stories.jsx +205 -0
  157. package/dist/stories/card/Card.stories.d.ts +5 -5
  158. package/dist/stories/card/{Card.stories.js → Card.stories.jsx} +56 -6
  159. package/dist/stories/checkbox/Checkbox.stories.d.ts +6 -6
  160. package/dist/stories/checkbox/{Checkbox.stories.js → Checkbox.stories.jsx} +63 -7
  161. package/dist/stories/checkbox/CheckboxCard.stories.d.ts +5 -5
  162. package/dist/stories/checkbox/{CheckboxCard.stories.js → CheckboxCard.stories.jsx} +41 -6
  163. package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +3 -3
  164. package/dist/stories/checkbox/{CheckboxGroup.stories.js → CheckboxGroup.stories.jsx} +76 -4
  165. package/dist/stories/context-menu/ContextMenu.stories.d.ts +4 -4
  166. package/dist/stories/context-menu/{ContextMenu.stories.js → ContextMenu.stories.jsx} +74 -5
  167. package/dist/stories/data-list/DataList.stories.d.ts +4 -4
  168. package/dist/stories/data-list/DataList.stories.jsx +185 -0
  169. package/dist/stories/dialog/Dialog.stories.d.ts +1 -1
  170. package/dist/stories/dialog/{Dialog.stories.js → Dialog.stories.jsx} +25 -2
  171. package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +5 -4
  172. package/dist/stories/doughnut-chart/{DoughnutChart.stories.js → DoughnutChart.stories.jsx} +12 -4
  173. package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +4 -4
  174. package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +170 -0
  175. package/dist/stories/header/Header.stories.d.ts +6 -6
  176. package/dist/stories/header/{Header.stories.js → Header.stories.jsx} +26 -7
  177. package/dist/stories/hover-card/HoverCard.stories.d.ts +2 -2
  178. package/dist/stories/hover-card/{HoverCard.stories.js → HoverCard.stories.jsx} +30 -3
  179. package/dist/stories/inset/Inset.stories.d.ts +2 -2
  180. package/dist/stories/inset/{Inset.stories.js → Inset.stories.jsx} +27 -12
  181. package/dist/stories/label/Label.stories.d.ts +4 -4
  182. package/dist/stories/label/{Label.stories.js → Label.stories.jsx} +26 -5
  183. package/dist/stories/menubar/Menubar.stories.d.ts +1 -1
  184. package/dist/stories/menubar/{Menubar.stories.js → Menubar.stories.jsx} +45 -8
  185. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +2 -2
  186. package/dist/stories/navigation-menu/{NavigationMenu.stories.js → NavigationMenu.stories.jsx} +68 -3
  187. package/dist/stories/pie-chart/PieChart.stories.d.ts +6 -5
  188. package/dist/stories/pie-chart/{PieChart.stories.js → PieChart.stories.jsx} +32 -13
  189. package/dist/stories/popover/Popover.stories.d.ts +2 -2
  190. package/dist/stories/popover/{Popover.stories.js → Popover.stories.jsx} +42 -9
  191. package/dist/stories/progress/Progress.stories.d.ts +4 -4
  192. package/dist/stories/progress/{Progress.stories.js → Progress.stories.jsx} +11 -6
  193. package/dist/stories/radar-chart/RadarChart.stories.d.ts +6 -5
  194. package/dist/stories/radar-chart/{RadarChart.stories.js → RadarChart.stories.jsx} +4 -5
  195. package/dist/stories/radio/Radio.stories.d.ts +3 -3
  196. package/dist/stories/radio/{Radio.stories.js → Radio.stories.jsx} +14 -4
  197. package/dist/stories/radio/RadioCards.stories.d.ts +4 -4
  198. package/dist/stories/radio/{RadioCards.stories.js → RadioCards.stories.jsx} +64 -5
  199. package/dist/stories/radio/RadioGroup.stories.d.ts +4 -4
  200. package/dist/stories/radio/{RadioGroup.stories.js → RadioGroup.stories.jsx} +59 -5
  201. package/dist/stories/scroll-area/ScrollArea.stories.d.ts +2 -2
  202. package/dist/stories/scroll-area/ScrollArea.stories.jsx +123 -0
  203. package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +4 -4
  204. package/dist/stories/segmented-control/{SegmentedControl.stories.js → SegmentedControl.stories.jsx} +26 -5
  205. package/dist/stories/select/Select.stories.d.ts +5 -5
  206. package/dist/stories/select/{Select.stories.js → Select.stories.jsx} +67 -6
  207. package/dist/stories/separator/Separator.stories.d.ts +4 -4
  208. package/dist/stories/separator/{Separator.stories.js → Separator.stories.jsx} +29 -5
  209. package/dist/stories/skeleton/Skeleton.stories.d.ts +5 -5
  210. package/dist/stories/skeleton/{Skeleton.stories.js → Skeleton.stories.jsx} +33 -6
  211. package/dist/stories/slider/Slider.stories.d.ts +4 -4
  212. package/dist/stories/slider/{Slider.stories.js → Slider.stories.jsx} +16 -5
  213. package/dist/stories/spinner/Spinner.stories.d.ts +5 -5
  214. package/dist/stories/spinner/{Spinner.stories.js → Spinner.stories.jsx} +31 -6
  215. package/dist/stories/switch/Switch.stories.d.ts +4 -4
  216. package/dist/stories/switch/{Switch.stories.js → Switch.stories.jsx} +16 -5
  217. package/dist/stories/tab-nav/TabNav.stories.d.ts +1 -1
  218. package/dist/stories/tab-nav/{TabNav.stories.js → TabNav.stories.jsx} +11 -2
  219. package/dist/stories/table/Table.stories.d.ts +1 -1
  220. package/dist/stories/table/{Table.stories.js → Table.stories.jsx} +29 -2
  221. package/dist/stories/tabs/Tabs.stories.d.ts +1 -1
  222. package/dist/stories/tabs/{Tabs.stories.js → Tabs.stories.jsx} +19 -2
  223. package/dist/stories/text/Text.stories.d.ts +5 -5
  224. package/dist/stories/text/{Text.stories.js → Text.stories.jsx} +21 -6
  225. package/dist/stories/textArea/TextArea.stories.d.ts +5 -5
  226. package/dist/stories/textArea/{TextArea.stories.js → TextArea.stories.jsx} +22 -6
  227. package/dist/stories/textfield/TextField.stories.d.ts +5 -5
  228. package/dist/stories/textfield/{TextField.stories.js → TextField.stories.jsx} +38 -6
  229. package/dist/stories/toast/Toast.stories.d.ts +3 -3
  230. package/dist/stories/toast/{Toast.stories.js → Toast.stories.jsx} +22 -4
  231. package/dist/stories/toggle/Toggle.stories.d.ts +5 -5
  232. package/dist/stories/toggle/{Toggle.stories.js → Toggle.stories.jsx} +23 -6
  233. package/dist/stories/toggle/ToggleGroup.stories.d.ts +3 -3
  234. package/dist/stories/toggle/{ToggleGroup.stories.js → ToggleGroup.stories.jsx} +39 -6
  235. package/dist/stories/tooltip/Tooltip.stories.d.ts +3 -3
  236. package/dist/stories/tooltip/{Tooltip.stories.js → Tooltip.stories.jsx} +17 -4
  237. package/dist/tsconfig.tsbuildinfo +1 -1
  238. package/package.json +1 -1
  239. package/dist/app/page.js +0 -6
  240. package/dist/app/template/colorPicker.js +0 -14
  241. package/dist/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
  242. package/dist/stories/Welcome.js +0 -30
  243. package/dist/stories/aspect-ratio/AspectRatio.stories.js +0 -78
  244. package/dist/stories/callout/Callout.stories.js +0 -104
  245. package/dist/stories/data-list/DataList.stories.js +0 -87
  246. package/dist/stories/dropdown-menu/DropdownMenu.stories.js +0 -75
  247. package/dist/stories/scroll-area/ScrollArea.stories.js +0 -63
@@ -20,7 +20,6 @@ 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";
24
23
  import React, { Children, forwardRef } from 'react';
25
24
  import { cva } from 'class-variance-authority';
26
25
  import * as TogglePrimitive from '@radix-ui/react-toggle';
@@ -50,9 +49,11 @@ export var IconScaling = {
50
49
  };
51
50
  export var Toggle = forwardRef(function (_a, ref) {
52
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"]);
53
- return (_jsx(TogglePrimitive.Root, __assign({ ref: ref, className: cn(toggleVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className) }, props, { children: Children.map(children, function (child) {
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
+ {Children.map(children, function (child) {
54
54
  return React.cloneElement(child, { className: IconScaling[size] });
55
- }) })));
55
+ })}
56
+ </TogglePrimitive.Root>);
56
57
  });
57
58
  Toggle.displayName = 'Toggle';
58
59
  export default Toggle;
@@ -20,8 +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";
24
- import { forwardRef } from 'react';
23
+ import React, { forwardRef } from 'react';
25
24
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
26
25
  import { cva } from 'class-variance-authority';
27
26
  import { scalingVariants } from '../../constants';
@@ -37,7 +36,11 @@ var toggleVariants = cva('inline-flex', {
37
36
  });
38
37
  export var ToggleGroup = forwardRef(function (_a, ref) {
39
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"]);
40
- return type === 'single' ? (_jsx(ToggleGroupPrimitive.Root, __assign({ ref: ref, type: type, value: value, defaultValue: defaultValue, className: cn(toggleVariants({ scaling: scaling }), className) }, props, { children: children }))) : (_jsx(ToggleGroupPrimitive.Root, __assign({ ref: ref, type: type, value: value, defaultValue: defaultValue, className: cn(toggleVariants({ scaling: scaling }), className) }, props, { children: 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
+ </ToggleGroupPrimitive.Root>);
41
44
  });
42
45
  ToggleGroup.displayName = 'ToggleGroup';
43
46
  export default ToggleGroup;
@@ -1,14 +1,3 @@
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
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,7 +9,6 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
12
  import React, { Children, forwardRef } from 'react';
25
13
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
26
14
  import { cva } from 'class-variance-authority';
@@ -45,8 +33,10 @@ export var IconScaling = {
45
33
  };
46
34
  export var ToggleGroupItem = forwardRef(function (_a, ref) {
47
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"]);
48
- return (_jsx(ToggleGroupPrimitive.Item, __assign({ ref: ref, value: value, className: cn(toggleGroupItemVariants({ size: size }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className) }, props, { children: Children.map(children, function (child) {
36
+ return (<ToggleGroupPrimitive.Item ref={ref} value={value} className={cn(toggleGroupItemVariants({ size: size }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className)} {...props}>
37
+ {Children.map(children, function (child) {
49
38
  return React.cloneElement(child, { className: IconScaling[size] });
50
- }) })));
39
+ })}
40
+ </ToggleGroupPrimitive.Item>);
51
41
  });
52
42
  ToggleGroupItem.displayName = 'ToggleGroupItem';
@@ -20,7 +20,6 @@ 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";
24
23
  import React from 'react';
25
24
  import { cva } from 'class-variance-authority';
26
25
  import { cn } from '../../utils/utils';
@@ -65,7 +64,12 @@ export var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {
65
64
  sizeTheme = '1';
66
65
  if (size === 'large')
67
66
  sizeTheme = '3';
68
- return (_jsx(Theme, { className: "flex", accentColor: color, hasBackground: false, children: _jsxs(Text, { as: "label", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: radius, size: sizeTheme, color: color, className: cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className) })), children] }) }));
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
+ </Theme>);
69
73
  });
70
74
  ToggleSwitch.displayName = 'ToggleSwitch';
71
75
  export default ToggleSwitch;
@@ -20,7 +20,6 @@ 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";
24
23
  // your-tooltip.jsx
25
24
  import React from 'react';
26
25
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
@@ -44,6 +43,16 @@ export var Tooltip = React.forwardRef(function (_a) {
44
43
  var arrowColor = color
45
44
  ? "fill-".concat(color, "-9 dark:fill-").concat(color, "Dark-9")
46
45
  : 'fill-slate-12 dark:fill-slateDark-12';
47
- return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: "cursor-pointer text-slate-12 dark:text-slateDark-12", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: "center" }, props, { side: side, className: cn('mr-2', tooltipVariants({ scaling: scaling, weight: weight, radius: radius, color: color }), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));
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
+ </TooltipPrimitive.Provider>);
48
57
  });
49
58
  Tooltip.displayName = TooltipPrimitive.Root.displayName;
@@ -1,2 +1,3 @@
1
- declare const Welcome: () => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ declare const Welcome: () => React.JSX.Element;
2
3
  export default Welcome;
@@ -0,0 +1,48 @@
1
+ import React, { useEffect } from 'react';
2
+ import Landing from './assets/landing.svg';
3
+ import Logo from './assets/logo.svg';
4
+ import Figma from './assets/figma.svg';
5
+ import Gitlab from './assets/gitlab.svg';
6
+ import Image from 'next/image';
7
+ import Button from 'components/Button';
8
+ var addParentClass = function () {
9
+ var elements = document.querySelectorAll('.welcome-wrap');
10
+ elements.forEach(function (element) {
11
+ var parent = element.parentElement.parentElement;
12
+ if (parent) {
13
+ parent.classList.add('welcome-wrap-layout');
14
+ }
15
+ });
16
+ };
17
+ var Welcome = function () {
18
+ useEffect(function () {
19
+ addParentClass();
20
+ }, []);
21
+ var navigateToGitlab = function () {
22
+ window.open('http://s-gitlab.ldcc.co.kr/l-ui/ui-component', '_blank');
23
+ };
24
+ var navigateToFigma = function () {
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
+ };
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
+ </div>);
47
+ };
48
+ export default Welcome;
@@ -68,4 +68,4 @@ declare const meta: {
68
68
  export default meta;
69
69
  export declare const Default: ({ ...args }: {
70
70
  [x: string]: any;
71
- }) => import("react/jsx-runtime").JSX.Element;
71
+ }) => import("react").JSX.Element;
@@ -20,7 +20,6 @@ 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";
24
23
  import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from '../../components/Accordion/index';
25
24
  import { commonArgTypes } from '../../constants';
26
25
  var meta = {
@@ -57,5 +56,24 @@ export default meta;
57
56
  export var Default = function (_a) {
58
57
  var _b;
59
58
  var args = __rest(_a, []);
60
- return (_jsxs(Accordion, __assign({ defaultValue: "item-1", type: (_b = args.type) !== null && _b !== void 0 ? _b : 'single' }, args, { children: [_jsxs(AccordionItem, { value: "item-1", children: [_jsx(AccordionTrigger, __assign({}, args, { children: "\uB9AC\uC561\uD2B8\uB294 \uBB34\uC5C7\uC778\uAC00\uC694?" })), _jsx(AccordionContent, { children: "\uB9AC\uC561\uD2B8\uB294 \uC790\uBC14\uC2A4\uD06C\uB9BD\uD2B8 \uB77C\uC774\uBE0C\uB7EC\uB9AC\uC758 \uD558\uB098\uB85C\uC11C \uC0AC\uC6A9\uC790 \uC778\uD130\uD398\uC774\uC2A4\uB97C \uB9CC\uB4E4\uAE30 \uC704\uD574 \uC0AC\uC6A9\uB41C\uB2E4." })] }), _jsxs(AccordionItem, { value: "item-2", children: [_jsx(AccordionTrigger, __assign({}, args, { children: "\uC790\uBC14\uC2A4\uD06C\uB9BD\uD2B8\uB780 \uBB34\uC5C7\uC778\uAC00\uC694?" })), _jsx(AccordionContent, { children: "\uC790\uBC14\uC2A4\uD06C\uB9BD\uD2B8\uB294 \uAC1D\uCCB4 \uAE30\uBC18\uC758 \uC2A4\uD06C\uB9BD\uD2B8 \uD504\uB85C\uADF8\uB798\uBC0D \uC5B8\uC5B4\uC774\uB2E4." })] }), _jsxs(AccordionItem, { value: "item-3", disabled: true, children: [_jsx(AccordionTrigger, __assign({}, args, { children: "Can it be animated?" })), _jsx(AccordionContent, { children: "Yes! You can animate the Accordion with CSS or JavaScript." })] })] })));
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
+ </Accordion>);
61
79
  };
@@ -104,4 +104,4 @@ declare const meta: {
104
104
  export default meta;
105
105
  export declare const Default: ({ ...args }: {
106
106
  [x: string]: any;
107
- }) => import("react/jsx-runtime").JSX.Element;
107
+ }) => import("react").JSX.Element;
@@ -20,7 +20,6 @@ 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";
24
23
  import { commonArgTypes, sizeOptions } from '../../constants';
25
24
  import Button from 'components/Button';
26
25
  import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, } from 'components/AlertDialog';
@@ -56,5 +55,19 @@ var meta = {
56
55
  export default meta;
57
56
  export var Default = function (_a) {
58
57
  var args = __rest(_a, []);
59
- return (_jsxs(AlertDialog, { children: [_jsx(AlertDialogTrigger, { children: _jsx(Button, { children: "\uBC84\uD2BC\uC744 \uD074\uB9AD\uD574\uC8FC\uC138\uC694" }) }), _jsxs(AlertDialogContent, __assign({}, args, { children: [_jsx(AlertDialogTitle, __assign({}, args, { children: "AlertDialog \uC81C\uBAA9" })), _jsx(AlertDialogDescription, __assign({}, args, { children: "AlertDialog \uB0B4\uC6A9\uC774 \uB4E4\uC5B4\uAC08 \uACF5\uAC04\uC785\uB2C8\uB2E4." })), _jsxs("div", { className: "flex justify-end", children: [_jsx(AlertDialogCancel, __assign({}, args, { children: "\uCDE8\uC18C" })), _jsx(AlertDialogAction, __assign({}, args, { children: "\uD655\uC778" }))] })] }))] }));
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
+ </AlertDialog>);
60
73
  };
@@ -59,10 +59,10 @@ declare const meta: {
59
59
  export default meta;
60
60
  export declare const Default: ({ ...args }: {
61
61
  [x: string]: any;
62
- }) => import("react/jsx-runtime").JSX.Element;
62
+ }) => import("react").JSX.Element;
63
63
  export declare const Ratio: ({ ...args }: {
64
64
  [x: string]: any;
65
- }) => import("react/jsx-runtime").JSX.Element;
65
+ }) => import("react").JSX.Element;
66
66
  export declare const Scaling: ({ ...args }: {
67
67
  [x: string]: any;
68
- }) => import("react/jsx-runtime").JSX.Element;
68
+ }) => import("react").JSX.Element;
@@ -0,0 +1,106 @@
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 Image from 'next/image';
24
+ import AspectRatio from 'components/AspectRatio';
25
+ import { Text } from 'Typography/Text';
26
+ import { commonArgTypes, scalingOptions } from '../../constants';
27
+ var aspectOptions = {
28
+ '1': 1,
29
+ '5/4': 1.25,
30
+ '5/3': 1.66,
31
+ '5/2': 2.5,
32
+ '5/1': 5,
33
+ '16/9': 1.77,
34
+ };
35
+ var meta = {
36
+ title: 'Component/AspectRatio',
37
+ component: AspectRatio,
38
+ parameters: {
39
+ layout: 'centered',
40
+ docs: {
41
+ description: {
42
+ component: '원하는 비율로 콘텐츠를 표시하는 컴포넌트',
43
+ },
44
+ },
45
+ },
46
+ tags: ['autodocs'],
47
+ argTypes: {
48
+ ratio: {
49
+ table: {
50
+ category: 'Props',
51
+ type: { summary: 'number' },
52
+ },
53
+ options: Object.keys(aspectOptions),
54
+ mapping: aspectOptions,
55
+ control: {
56
+ type: 'select',
57
+ },
58
+ description: 'width / height 비율',
59
+ defaultValue: { summary: '16/9' },
60
+ },
61
+ scaling: __assign(__assign({}, commonArgTypes.scaling), { description: 'AspectRatio 비율' }),
62
+ },
63
+ args: {},
64
+ };
65
+ export default meta;
66
+ export var Default = function (_a) {
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>
72
+ </div>);
73
+ };
74
+ export var Ratio = function (_a) {
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>
95
+ </div>);
96
+ };
97
+ export var Scaling = function (_a) {
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>); })}
105
+ </div>);
106
+ };
@@ -112,16 +112,16 @@ declare const meta: {
112
112
  export default meta;
113
113
  export declare const Default: ({ ...args }: {
114
114
  [x: string]: any;
115
- }) => import("react/jsx-runtime").JSX.Element;
115
+ }) => import("react").JSX.Element;
116
116
  export declare const Radius: ({ ...args }: {
117
117
  [x: string]: any;
118
- }) => import("react/jsx-runtime").JSX.Element;
118
+ }) => import("react").JSX.Element;
119
119
  export declare const Size: ({ ...args }: {
120
120
  [x: string]: any;
121
- }) => import("react/jsx-runtime").JSX.Element;
121
+ }) => import("react").JSX.Element;
122
122
  export declare const Scaling: ({ ...args }: {
123
123
  [x: string]: any;
124
- }) => import("react/jsx-runtime").JSX.Element;
124
+ }) => import("react").JSX.Element;
125
125
  export declare const Appearance: ({ ...args }: {
126
126
  [x: string]: any;
127
- }) => import("react/jsx-runtime").JSX.Element;
127
+ }) => import("react").JSX.Element;
@@ -20,7 +20,6 @@ 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";
24
23
  import Avatar from 'components/Avatar';
25
24
  import { radiusOptions, scalingOptions, commonArgTypes, typoSizeOptions, appearanceOptions, } from '../../constants';
26
25
  var meta = {
@@ -74,21 +73,33 @@ var meta = {
74
73
  export default meta;
75
74
  export var Default = function (_a) {
76
75
  var args = __rest(_a, []);
77
- return (_jsxs("div", { className: "flex space-x-4", children: [_jsx(Avatar, __assign({ imagePath: "https://images.unsplash.com/photo-1492633423870-43d1cd2775eb?&w=128&h=128&dpr=2&q=80" }, args)), _jsx(Avatar, __assign({ 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
+ </div>);
78
80
  };
79
81
  export var Radius = function (_a) {
80
82
  var args = __rest(_a, []);
81
- return (_jsx("div", { className: "flex space-x-4", children: radiusOptions.map(function (radius) { return (_jsx(Avatar, __assign({ radius: radius, imagePath: "https://images.unsplash.com/photo-1511485977113-f34c92461ad9?ixlib=rb-1.2.1&w=128&h=128&dpr=2&q=80" }, args), radius)); }) }));
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
+ </div>);
82
86
  };
83
87
  export var Size = function (_a) {
84
88
  var args = __rest(_a, []);
85
- return (_jsx("div", { className: "flex space-x-4", children: typoSizeOptions.map(function (size) { return (_jsx(Avatar, __assign({ size: size, fallbackText: "A" }, args), size)); }) }));
89
+ return (<div className="flex space-x-4">
90
+ {typoSizeOptions.map(function (size) { return (<Avatar key={size} size={size} fallbackText="A" {...args}/>); })}
91
+ </div>);
86
92
  };
87
93
  export var Scaling = function (_a) {
88
94
  var args = __rest(_a, []);
89
- return (_jsx("div", { className: "flex space-x-4", children: scalingOptions.map(function (scaling) { return (_jsx(Avatar, __assign({ 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), scaling)); }) }));
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
+ </div>);
90
98
  };
91
99
  export var Appearance = function (_a) {
92
100
  var args = __rest(_a, []);
93
- return (_jsxs("div", { className: "flex space-x-4", children: [_jsx(Avatar, __assign({ appearance: "solid", fallbackText: 'A' }, args)), _jsx(Avatar, __assign({ 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
+ </div>);
94
105
  };
@@ -115,19 +115,19 @@ declare const meta: {
115
115
  export default meta;
116
116
  export declare const Default: ({ ...args }: {
117
117
  [x: string]: any;
118
- }) => import("react/jsx-runtime").JSX.Element;
118
+ }) => React.JSX.Element;
119
119
  export declare const Radius: ({ ...args }: {
120
120
  [x: string]: any;
121
- }) => import("react/jsx-runtime").JSX.Element;
121
+ }) => React.JSX.Element;
122
122
  export declare const Size: ({ ...args }: {
123
123
  [x: string]: any;
124
- }) => import("react/jsx-runtime").JSX.Element;
124
+ }) => React.JSX.Element;
125
125
  export declare const Scaling: ({ ...args }: {
126
126
  [x: string]: any;
127
- }) => import("react/jsx-runtime").JSX.Element;
127
+ }) => React.JSX.Element;
128
128
  export declare const Weight: ({ ...args }: {
129
129
  [x: string]: any;
130
- }) => import("react/jsx-runtime").JSX.Element;
130
+ }) => React.JSX.Element;
131
131
  export declare const Appearance: ({ ...args }: {
132
132
  [x: string]: any;
133
- }) => import("react/jsx-runtime").JSX.Element;
133
+ }) => React.JSX.Element;
@@ -20,7 +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
+ import React from 'react';
24
24
  import Badge from 'components/Badge';
25
25
  import { radiusOptions, commonArgTypes, appearanceOptions, sizeOptions, scalingOptions, } from '../../../src/constants';
26
26
  var meta = {
@@ -62,25 +62,69 @@ var meta = {
62
62
  export default meta;
63
63
  export var Default = function (_a) {
64
64
  var args = __rest(_a, []);
65
- return _jsx(Badge, __assign({}, args, { children: "Badge" }));
65
+ return <Badge {...args}>Badge</Badge>;
66
66
  };
67
67
  export var Radius = function (_a) {
68
68
  var args = __rest(_a, []);
69
- return (_jsx("div", { className: "flex gap-3", children: radiusOptions.map(function (radius) { return (_jsx(Badge, __assign({}, args, { radius: radius, children: radius }), radius)); }) }));
69
+ return (<div className="flex gap-3">
70
+ {radiusOptions.map(function (radius) { return (<Badge key={radius} {...args} radius={radius}>
71
+ {radius}
72
+ </Badge>); })}
73
+ </div>);
70
74
  };
71
75
  export var Size = function (_a) {
72
76
  var args = __rest(_a, []);
73
- return (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Badge, __assign({}, args, { size: 'small', children: "small" })), _jsx(Badge, __assign({}, args, { size: 'medium', children: "medium" })), _jsx(Badge, __assign({}, args, { size: 'large', children: "large" }))] }));
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
+ </div>);
74
88
  };
75
89
  export var Scaling = function (_a) {
76
90
  var args = __rest(_a, []);
77
- return (_jsx("div", { className: "flex items-center gap-3", children: scalingOptions.map(function (scaling) { return (_jsx(Badge, __assign({}, args, { scaling: scaling, children: scaling }), scaling)); }) }));
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
+ </div>);
78
96
  };
79
97
  export var Weight = function (_a) {
80
98
  var args = __rest(_a, []);
81
- return (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Badge, __assign({}, args, { weight: "regular", children: "regular" })), _jsx(Badge, __assign({}, args, { weight: "medium", children: "medium" })), _jsx(Badge, __assign({}, args, { weight: "semibold", children: "semibold" })), _jsx(Badge, __assign({}, args, { weight: "bold", children: "bold" }))] }));
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
+ </div>);
82
113
  };
83
114
  export var Appearance = function (_a) {
84
115
  var args = __rest(_a, []);
85
- return (_jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Badge, __assign({}, args, { appearance: "solid", children: "solid" })), _jsx(Badge, __assign({}, args, { appearance: "soft", children: "soft" })), _jsx(Badge, __assign({}, args, { appearance: "surface", children: "surface" })), _jsx(Badge, __assign({}, args, { appearance: "outline", children: "outline" }))] }));
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
+ </div>);
86
130
  };
@@ -1,8 +1,9 @@
1
+ /// <reference types="react" />
1
2
  import { PointStyle } from 'types';
2
3
  declare const meta: {
3
4
  title: string;
4
5
  component: {
5
- ({ className, datasets, scaling, width, height, ...props }: import("components/BubbleChart").BubbleChartProps): import("react/jsx-runtime").JSX.Element;
6
+ ({ className, datasets, scaling, width, height, ...props }: import("components/BubbleChart").BubbleChartProps): import("react").JSX.Element;
6
7
  displayName: string;
7
8
  };
8
9
  parameters: {
@@ -93,10 +94,10 @@ declare const meta: {
93
94
  export default meta;
94
95
  export declare const Default: ({ ...args }: {
95
96
  [x: string]: any;
96
- }) => import("react/jsx-runtime").JSX.Element;
97
+ }) => import("react").JSX.Element;
97
98
  export declare const MultiDatasets: ({ ...args }: {
98
99
  [x: string]: any;
99
- }) => import("react/jsx-runtime").JSX.Element;
100
+ }) => import("react").JSX.Element;
100
101
  export declare const PointStyles: ({ ...args }: {
101
102
  [x: string]: any;
102
- }) => import("react/jsx-runtime").JSX.Element;
103
+ }) => import("react").JSX.Element;