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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) 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 +42 -0
  7. package/dist/app/template/badgeTemplate.d.ts +2 -1
  8. package/dist/app/template/badgeTemplate.jsx +82 -0
  9. package/dist/app/template/buttonTemplate.d.ts +2 -1
  10. package/dist/app/template/buttonTemplate.jsx +82 -0
  11. package/dist/app/template/colorPicker.d.ts +2 -1
  12. package/dist/app/template/colorPicker.jsx +19 -0
  13. package/dist/app/template/textTemplate.d.ts +2 -1
  14. package/dist/app/template/textTemplate.jsx +72 -0
  15. package/dist/app/template/theme.d.ts +2 -2
  16. package/dist/app/template/theme.jsx +44 -0
  17. package/dist/components/Accordion/{index.js → index.jsx} +17 -5
  18. package/dist/components/AlertDialog/{AlertDialogAction.js → AlertDialogAction.jsx} +5 -4
  19. package/dist/components/AlertDialog/{AlertDialogCancel.js → AlertDialogCancel.jsx} +5 -4
  20. package/dist/components/AlertDialog/{AlertDialogContent.js → AlertDialogContent.jsx} +8 -4
  21. package/dist/components/AlertDialog/{AlertDialogDescription.js → AlertDialogDescription.jsx} +5 -15
  22. package/dist/components/AlertDialog/{AlertDialogTitle.js → AlertDialogTitle.jsx} +5 -15
  23. package/dist/components/AlertDialog/{AlertDialogTrigger.js → AlertDialogTrigger.jsx} +5 -4
  24. package/dist/components/AlertDialog/{index.js → index.jsx} +2 -14
  25. package/dist/components/AspectRatio/{index.js → index.jsx} +5 -4
  26. package/dist/components/Avatar/{index.js → index.jsx} +8 -4
  27. package/dist/components/Badge/{index.js → index.jsx} +4 -3
  28. package/dist/components/BubbleChart/index.d.ts +2 -1
  29. package/dist/components/BubbleChart/{index.js → index.jsx} +3 -3
  30. package/dist/components/Button/{index.js → index.jsx} +5 -4
  31. package/dist/components/Callout/{CalloutIcon.js → CalloutIcon.jsx} +9 -4
  32. package/dist/components/Callout/{CalloutText.js → CalloutText.jsx} +5 -15
  33. package/dist/components/Callout/{index.js → index.jsx} +7 -4
  34. package/dist/components/Card/{index.js → index.jsx} +5 -4
  35. package/dist/components/Checkbox/{index.js → index.jsx} +12 -4
  36. package/dist/components/CheckboxCard/{index.js → index.jsx} +6 -4
  37. package/dist/components/CheckboxGroup/{CheckboxGroupItem.js → CheckboxGroupItem.jsx} +6 -14
  38. package/dist/components/CheckboxGroup/{index.js → index.jsx} +6 -3
  39. package/dist/components/ContextMenu/{ContextMenuCheckboxItem.js → ContextMenuCheckboxItem.jsx} +8 -15
  40. package/dist/components/ContextMenu/{ContextMenuContent.js → ContextMenuContent.jsx} +7 -4
  41. package/dist/components/ContextMenu/{ContextMenuGroup.js → ContextMenuGroup.jsx} +4 -14
  42. package/dist/components/ContextMenu/{ContextMenuItem.js → ContextMenuItem.jsx} +6 -4
  43. package/dist/components/ContextMenu/{ContextMenuItemIndicator.js → ContextMenuItemIndicator.jsx} +5 -4
  44. package/dist/components/ContextMenu/{ContextMenuLabel.js → ContextMenuLabel.jsx} +5 -4
  45. package/dist/components/ContextMenu/{ContextMenuRadioGroup.js → ContextMenuRadioGroup.jsx} +6 -14
  46. package/dist/components/ContextMenu/{ContextMenuRadioItem.js → ContextMenuRadioItem.jsx} +8 -15
  47. package/dist/components/ContextMenu/{ContextMenuSeparator.js → ContextMenuSeparator.jsx} +5 -15
  48. package/dist/components/ContextMenu/{ContextMenuSubContent.js → ContextMenuSubContent.jsx} +10 -7
  49. package/dist/components/ContextMenu/{ContextMenuSubTrigger.js → ContextMenuSubTrigger.jsx} +10 -15
  50. package/dist/components/ContextMenu/{ContextMenuTrigger.js → ContextMenuTrigger.jsx} +5 -15
  51. package/dist/components/ContextMenu/{index.js → index.jsx} +4 -14
  52. package/dist/components/DataList/{DataListItem.js → DataListItem.jsx} +5 -4
  53. package/dist/components/DataList/{DataListLabel.js → DataListLabel.jsx} +5 -4
  54. package/dist/components/DataList/{DataListValue.js → DataListValue.jsx} +5 -4
  55. package/dist/components/DataList/{index.js → index.jsx} +7 -15
  56. package/dist/components/Dialog/{DialogAction.js → DialogAction.jsx} +5 -15
  57. package/dist/components/Dialog/{DialogCancel.js → DialogCancel.jsx} +5 -15
  58. package/dist/components/Dialog/{DialogContent.js → DialogContent.jsx} +5 -4
  59. package/dist/components/Dialog/{DialogDescription.js → DialogDescription.jsx} +5 -15
  60. package/dist/components/Dialog/{DialogSlot.js → DialogSlot.jsx} +5 -15
  61. package/dist/components/Dialog/{DialogTitle.js → DialogTitle.jsx} +5 -15
  62. package/dist/components/Dialog/{DialogTrigger.js → DialogTrigger.jsx} +4 -14
  63. package/dist/components/Dialog/{index.js → index.jsx} +4 -14
  64. package/dist/components/DoughnutChart/index.d.ts +2 -1
  65. package/dist/components/DoughnutChart/{index.js → index.jsx} +3 -3
  66. package/dist/components/DropdownMenu/{DropdonMenuRadioGroup.js → DropdonMenuRadioGroup.jsx} +6 -14
  67. package/dist/components/DropdownMenu/{DropdonMenuSubContent.js → DropdonMenuSubContent.jsx} +11 -8
  68. package/dist/components/DropdownMenu/{DropdownMenuCheckboxItem.js → DropdownMenuCheckboxItem.jsx} +8 -15
  69. package/dist/components/DropdownMenu/{DropdownMenuContent.js → DropdownMenuContent.jsx} +7 -4
  70. package/dist/components/DropdownMenu/{DropdownMenuItem.js → DropdownMenuItem.jsx} +6 -4
  71. package/dist/components/DropdownMenu/{DropdownMenuItemIndicator.js → DropdownMenuItemIndicator.jsx} +5 -4
  72. package/dist/components/DropdownMenu/{DropdownMenuLable.js → DropdownMenuLable.jsx} +5 -4
  73. package/dist/components/DropdownMenu/{DropdownMenuRadioItem.js → DropdownMenuRadioItem.jsx} +8 -15
  74. package/dist/components/DropdownMenu/{DropdownMenuSeparator.js → DropdownMenuSeparator.jsx} +3 -15
  75. package/dist/components/DropdownMenu/{DropdownMenuSub.js → DropdownMenuSub.jsx} +2 -14
  76. package/dist/components/DropdownMenu/{DropdownMenuSubTrigger.js → DropdownMenuSubTrigger.jsx} +7 -14
  77. package/dist/components/DropdownMenu/{DropdownMenuTrigger.js → DropdownMenuTrigger.jsx} +4 -14
  78. package/dist/components/DropdownMenu/{index.js → index.jsx} +2 -14
  79. package/dist/components/HoverCard/{HoverCardContent.js → HoverCardContent.jsx} +4 -3
  80. package/dist/components/HoverCard/{HoverCardTrigger.js → HoverCardTrigger.jsx} +4 -14
  81. package/dist/components/HoverCard/{index.js → index.jsx} +4 -14
  82. package/dist/components/IconButton/{index.js → index.jsx} +3 -2
  83. package/dist/components/Inset/{index.js → index.jsx} +6 -3
  84. package/dist/components/Label/{index.js → index.jsx} +3 -2
  85. package/dist/components/Menubar/{MenubarCheckboxItem.js → MenubarCheckboxItem.jsx} +8 -15
  86. package/dist/components/Menubar/{MenubarContent.js → MenubarContent.jsx} +11 -8
  87. package/dist/components/Menubar/{MenubarItem.js → MenubarItem.jsx} +6 -4
  88. package/dist/components/Menubar/{MenubarItemIndicator.js → MenubarItemIndicator.jsx} +5 -4
  89. package/dist/components/Menubar/{MenubarMenu.js → MenubarMenu.jsx} +2 -14
  90. package/dist/components/Menubar/{MenubarRadioGroup.js → MenubarRadioGroup.jsx} +6 -14
  91. package/dist/components/Menubar/{MenubarRadioItem.js → MenubarRadioItem.jsx} +8 -15
  92. package/dist/components/Menubar/{MenubarSeparator.js → MenubarSeparator.jsx} +5 -15
  93. package/dist/components/Menubar/{MenubarSub.js → MenubarSub.jsx} +2 -14
  94. package/dist/components/Menubar/{MenubarSubContent.js → MenubarSubContent.jsx} +6 -5
  95. package/dist/components/Menubar/{MenubarSubTrigger.js → MenubarSubTrigger.jsx} +8 -15
  96. package/dist/components/Menubar/{MenubarTrigger.js → MenubarTrigger.jsx} +5 -4
  97. package/dist/components/Menubar/{index.js → index.jsx} +7 -4
  98. package/dist/components/NavigationMenu/{NavigationMenuContent.js → NavigationMenuContent.jsx} +5 -4
  99. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +22 -0
  100. package/dist/components/NavigationMenu/{NavigationMenuItem.js → NavigationMenuItem.jsx} +4 -14
  101. package/dist/components/NavigationMenu/{NavigationMenuLink.js → NavigationMenuLink.jsx} +5 -4
  102. package/dist/components/NavigationMenu/{NavigationMenuList.js → NavigationMenuList.jsx} +6 -4
  103. package/dist/components/NavigationMenu/{NavigationMenuTrigger.js → NavigationMenuTrigger.jsx} +6 -4
  104. package/dist/components/NavigationMenu/{NavigationMenuViewport.js → NavigationMenuViewport.jsx} +5 -4
  105. package/dist/components/NavigationMenu/{index.js → index.jsx} +7 -15
  106. package/dist/components/PieChart/index.d.ts +2 -1
  107. package/dist/components/PieChart/{index.js → index.jsx} +3 -3
  108. package/dist/components/Popover/{PopoverClose.js → PopoverClose.jsx} +4 -14
  109. package/dist/components/Popover/{PopoverContent.js → PopoverContent.jsx} +4 -3
  110. package/dist/components/Popover/{PopoverTrigger.js → PopoverTrigger.jsx} +4 -14
  111. package/dist/components/Popover/{index.js → index.jsx} +4 -14
  112. package/dist/components/Progress/{index.js → index.jsx} +4 -3
  113. package/dist/components/RadarChart/index.d.ts +2 -1
  114. package/dist/components/RadarChart/{index.js → index.jsx} +2 -2
  115. package/dist/components/Radio/{index.js → index.jsx} +8 -13
  116. package/dist/components/RadioCards/{RadioCardsItem.js → RadioCardsItem.jsx} +4 -14
  117. package/dist/components/RadioCards/{index.js → index.jsx} +6 -3
  118. package/dist/components/RadioGroup/{RadioGroupItem.js → RadioGroupItem.jsx} +4 -14
  119. package/dist/components/RadioGroup/{index.js → index.jsx} +6 -14
  120. package/dist/components/ScrollArea/{index.js → index.jsx} +6 -14
  121. package/dist/components/SegmentedControl/{SegmentedControlItem.js → SegmentedControlItem.jsx} +4 -14
  122. package/dist/components/SegmentedControl/{index.js → index.jsx} +5 -2
  123. package/dist/components/Select/{index.js → index.jsx} +24 -9
  124. package/dist/components/Separator/{index.js → index.jsx} +6 -3
  125. package/dist/components/Skeleton/{index.js → index.jsx} +6 -3
  126. package/dist/components/Slider/{index.js → index.jsx} +4 -3
  127. package/dist/components/Spinner/{index.js → index.jsx} +5 -2
  128. package/dist/components/TabNav/{index.js → index.jsx} +8 -14
  129. package/dist/components/Table/{index.js → index.jsx} +23 -8
  130. package/dist/components/Tabs/{index.js → index.jsx} +14 -5
  131. package/dist/components/TextArea/{index.js → index.jsx} +3 -2
  132. package/dist/components/TextField/{index.js → index.jsx} +9 -4
  133. package/dist/components/Toast/{ToastActionButton.js → ToastActionButton.jsx} +5 -4
  134. package/dist/components/Toast/{ToastDescription.js → ToastDescription.jsx} +7 -15
  135. package/dist/components/Toast/{ToastTitle.js → ToastTitle.jsx} +5 -15
  136. package/dist/components/Toast/{index.js → index.jsx} +10 -4
  137. package/dist/components/Toggle/{ToggleWithText.js → ToggleWithText.jsx} +6 -4
  138. package/dist/components/Toggle/{index.js → index.jsx} +4 -3
  139. package/dist/components/ToggleGroup/{index.js → index.jsx} +6 -3
  140. package/dist/components/ToggleGroup/{toggleGroupItem.js → toggleGroupItem.jsx} +4 -14
  141. package/dist/components/ToggleSwitch/{index.js → index.jsx} +6 -2
  142. package/dist/components/Tooltip/{index.js → index.jsx} +12 -3
  143. package/dist/stories/Welcome.d.ts +2 -1
  144. package/dist/stories/Welcome.jsx +48 -0
  145. package/dist/stories/accordion/Accordion.stories.d.ts +1 -1
  146. package/dist/stories/accordion/{Accordion.stories.js → Accordion.stories.jsx} +20 -2
  147. package/dist/stories/alert-dialog/AlertDialog.stories.d.ts +1 -1
  148. package/dist/stories/alert-dialog/{AlertDialog.stories.js → AlertDialog.stories.jsx} +15 -2
  149. package/dist/stories/aspect-ratio/AspectRatio.stories.d.ts +3 -3
  150. package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +106 -0
  151. package/dist/stories/avatar/Avatar.stories.d.ts +5 -5
  152. package/dist/stories/avatar/{Avatar.stories.js → Avatar.stories.jsx} +17 -6
  153. package/dist/stories/badge/Badge.stories.d.ts +6 -6
  154. package/dist/stories/badge/{Badge.stories.js → Badge.stories.jsx} +51 -7
  155. package/dist/stories/bubble-chart/BubbleChart.stories.d.ts +5 -4
  156. package/dist/stories/bubble-chart/{BubbleChart.stories.js → BubbleChart.stories.jsx} +12 -4
  157. package/dist/stories/button/Button.stories.d.ts +7 -7
  158. package/dist/stories/button/{Button.stories.js → Button.stories.jsx} +41 -8
  159. package/dist/stories/button/IconButton.stories.d.ts +4 -4
  160. package/dist/stories/button/{IconButton.stories.js → IconButton.stories.jsx} +18 -5
  161. package/dist/stories/callout/Callout.stories.d.ts +7 -7
  162. package/dist/stories/callout/Callout.stories.jsx +205 -0
  163. package/dist/stories/card/Card.stories.d.ts +5 -5
  164. package/dist/stories/card/{Card.stories.js → Card.stories.jsx} +56 -6
  165. package/dist/stories/checkbox/Checkbox.stories.d.ts +6 -6
  166. package/dist/stories/checkbox/{Checkbox.stories.js → Checkbox.stories.jsx} +63 -7
  167. package/dist/stories/checkbox/CheckboxCard.stories.d.ts +5 -5
  168. package/dist/stories/checkbox/{CheckboxCard.stories.js → CheckboxCard.stories.jsx} +41 -6
  169. package/dist/stories/checkbox/CheckboxGroup.stories.d.ts +3 -3
  170. package/dist/stories/checkbox/{CheckboxGroup.stories.js → CheckboxGroup.stories.jsx} +76 -4
  171. package/dist/stories/context-menu/ContextMenu.stories.d.ts +4 -4
  172. package/dist/stories/context-menu/{ContextMenu.stories.js → ContextMenu.stories.jsx} +74 -5
  173. package/dist/stories/data-list/DataList.stories.d.ts +4 -4
  174. package/dist/stories/data-list/DataList.stories.jsx +185 -0
  175. package/dist/stories/dialog/Dialog.stories.d.ts +1 -1
  176. package/dist/stories/dialog/{Dialog.stories.js → Dialog.stories.jsx} +25 -2
  177. package/dist/stories/doughnut-chart/DoughnutChart.stories.d.ts +5 -4
  178. package/dist/stories/doughnut-chart/{DoughnutChart.stories.js → DoughnutChart.stories.jsx} +12 -4
  179. package/dist/stories/dropdown-menu/DropdownMenu.stories.d.ts +4 -4
  180. package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +170 -0
  181. package/dist/stories/header/Header.stories.d.ts +6 -6
  182. package/dist/stories/header/{Header.stories.js → Header.stories.jsx} +26 -7
  183. package/dist/stories/hover-card/HoverCard.stories.d.ts +2 -2
  184. package/dist/stories/hover-card/{HoverCard.stories.js → HoverCard.stories.jsx} +30 -3
  185. package/dist/stories/inset/Inset.stories.d.ts +2 -2
  186. package/dist/stories/inset/{Inset.stories.js → Inset.stories.jsx} +27 -12
  187. package/dist/stories/label/Label.stories.d.ts +4 -4
  188. package/dist/stories/label/{Label.stories.js → Label.stories.jsx} +26 -5
  189. package/dist/stories/menubar/Menubar.stories.d.ts +1 -1
  190. package/dist/stories/menubar/{Menubar.stories.js → Menubar.stories.jsx} +45 -8
  191. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +2 -2
  192. package/dist/stories/navigation-menu/{NavigationMenu.stories.js → NavigationMenu.stories.jsx} +68 -3
  193. package/dist/stories/pie-chart/PieChart.stories.d.ts +6 -5
  194. package/dist/stories/pie-chart/{PieChart.stories.js → PieChart.stories.jsx} +32 -13
  195. package/dist/stories/popover/Popover.stories.d.ts +2 -2
  196. package/dist/stories/popover/{Popover.stories.js → Popover.stories.jsx} +42 -9
  197. package/dist/stories/progress/Progress.stories.d.ts +4 -4
  198. package/dist/stories/progress/{Progress.stories.js → Progress.stories.jsx} +11 -6
  199. package/dist/stories/radar-chart/RadarChart.stories.d.ts +6 -5
  200. package/dist/stories/radar-chart/{RadarChart.stories.js → RadarChart.stories.jsx} +4 -5
  201. package/dist/stories/radio/Radio.stories.d.ts +3 -3
  202. package/dist/stories/radio/{Radio.stories.js → Radio.stories.jsx} +14 -4
  203. package/dist/stories/radio/RadioCards.stories.d.ts +4 -4
  204. package/dist/stories/radio/{RadioCards.stories.js → RadioCards.stories.jsx} +64 -5
  205. package/dist/stories/radio/RadioGroup.stories.d.ts +4 -4
  206. package/dist/stories/radio/{RadioGroup.stories.js → RadioGroup.stories.jsx} +59 -5
  207. package/dist/stories/scroll-area/ScrollArea.stories.d.ts +2 -2
  208. package/dist/stories/scroll-area/ScrollArea.stories.jsx +123 -0
  209. package/dist/stories/segmented-control/SegmentedControl.stories.d.ts +4 -4
  210. package/dist/stories/segmented-control/{SegmentedControl.stories.js → SegmentedControl.stories.jsx} +26 -5
  211. package/dist/stories/select/Select.stories.d.ts +5 -5
  212. package/dist/stories/select/{Select.stories.js → Select.stories.jsx} +67 -6
  213. package/dist/stories/separator/Separator.stories.d.ts +4 -4
  214. package/dist/stories/separator/{Separator.stories.js → Separator.stories.jsx} +29 -5
  215. package/dist/stories/skeleton/Skeleton.stories.d.ts +5 -5
  216. package/dist/stories/skeleton/{Skeleton.stories.js → Skeleton.stories.jsx} +33 -6
  217. package/dist/stories/slider/Slider.stories.d.ts +4 -4
  218. package/dist/stories/slider/{Slider.stories.js → Slider.stories.jsx} +16 -5
  219. package/dist/stories/spinner/Spinner.stories.d.ts +5 -5
  220. package/dist/stories/spinner/{Spinner.stories.js → Spinner.stories.jsx} +31 -6
  221. package/dist/stories/switch/Switch.stories.d.ts +4 -4
  222. package/dist/stories/switch/{Switch.stories.js → Switch.stories.jsx} +16 -5
  223. package/dist/stories/tab-nav/TabNav.stories.d.ts +1 -1
  224. package/dist/stories/tab-nav/{TabNav.stories.js → TabNav.stories.jsx} +11 -2
  225. package/dist/stories/table/Table.stories.d.ts +1 -1
  226. package/dist/stories/table/{Table.stories.js → Table.stories.jsx} +29 -2
  227. package/dist/stories/tabs/Tabs.stories.d.ts +1 -1
  228. package/dist/stories/tabs/{Tabs.stories.js → Tabs.stories.jsx} +19 -2
  229. package/dist/stories/text/Text.stories.d.ts +5 -5
  230. package/dist/stories/text/{Text.stories.js → Text.stories.jsx} +21 -6
  231. package/dist/stories/textArea/TextArea.stories.d.ts +5 -5
  232. package/dist/stories/textArea/{TextArea.stories.js → TextArea.stories.jsx} +22 -6
  233. package/dist/stories/textfield/TextField.stories.d.ts +5 -5
  234. package/dist/stories/textfield/{TextField.stories.js → TextField.stories.jsx} +38 -6
  235. package/dist/stories/toast/Toast.stories.d.ts +3 -3
  236. package/dist/stories/toast/{Toast.stories.js → Toast.stories.jsx} +22 -4
  237. package/dist/stories/toggle/Toggle.stories.d.ts +5 -5
  238. package/dist/stories/toggle/{Toggle.stories.js → Toggle.stories.jsx} +23 -6
  239. package/dist/stories/toggle/ToggleGroup.stories.d.ts +3 -3
  240. package/dist/stories/toggle/{ToggleGroup.stories.js → ToggleGroup.stories.jsx} +39 -6
  241. package/dist/stories/tooltip/Tooltip.stories.d.ts +3 -3
  242. package/dist/stories/tooltip/{Tooltip.stories.js → Tooltip.stories.jsx} +17 -4
  243. package/dist/tsconfig.tsbuildinfo +1 -1
  244. package/package.json +1 -1
  245. package/dist/app/page.js +0 -25
  246. package/dist/app/template/badgeTemplate.js +0 -11
  247. package/dist/app/template/buttonTemplate.js +0 -11
  248. package/dist/app/template/colorPicker.js +0 -14
  249. package/dist/app/template/textTemplate.js +0 -23
  250. package/dist/app/template/theme.js +0 -12
  251. package/dist/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
  252. package/dist/stories/Welcome.js +0 -30
  253. package/dist/stories/aspect-ratio/AspectRatio.stories.js +0 -78
  254. package/dist/stories/callout/Callout.stories.js +0 -104
  255. package/dist/stories/data-list/DataList.stories.js +0 -87
  256. package/dist/stories/dropdown-menu/DropdownMenu.stories.js +0 -75
  257. package/dist/stories/scroll-area/ScrollArea.stories.js +0 -63
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  declare const meta: {
2
3
  title: string;
3
- component: ({ labels, datasets, scaling, className, ...rest }: import("components/PieChart").PieChartProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ labels, datasets, scaling, className, ...rest }: import("components/PieChart").PieChartProps) => import("react").JSX.Element;
4
5
  parameters: {
5
6
  layout: string;
6
7
  docs: {
@@ -179,7 +180,7 @@ declare const meta: {
179
180
  export default meta;
180
181
  export declare const Default: ({ ...args }: {
181
182
  [x: string]: any;
182
- }) => import("react/jsx-runtime").JSX.Element;
183
- export declare const LabelsStyle: () => import("react/jsx-runtime").JSX.Element;
184
- export declare const BorderStyles: () => import("react/jsx-runtime").JSX.Element;
185
- export declare const DataLabels: () => import("react/jsx-runtime").JSX.Element;
183
+ }) => import("react").JSX.Element;
184
+ export declare const LabelsStyle: () => import("react").JSX.Element;
185
+ export declare const BorderStyles: () => import("react").JSX.Element;
186
+ export declare const DataLabels: () => 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 PieChart from 'components/PieChart';
25
24
  import { amber, blue, green, orange, purple, red, ruby, violet, yellow } from 'color/light';
26
25
  import { commonArgTypes } from '../../constants';
@@ -175,7 +174,9 @@ var meta = {
175
174
  export default meta;
176
175
  export var Default = function (_a) {
177
176
  var args = __rest(_a, []);
178
- return (_jsx("div", { className: "w-[300px]", children: _jsx(PieChart, __assign({ labels: args.label, datasets: args.datasets }, args)) }));
177
+ return (<div className="w-[300px]">
178
+ <PieChart labels={args.label} datasets={args.datasets} {...args}/>
179
+ </div>);
179
180
  };
180
181
  export var LabelsStyle = function () {
181
182
  var labelStyleList = ['star', 'line', 'rect', 'circle'];
@@ -187,17 +188,21 @@ export var LabelsStyle = function () {
187
188
  borderColor: [ruby[9], violet[9], amber[9], green[9]],
188
189
  },
189
190
  ];
190
- return (_jsx("div", { className: "flex", children: labelStyleList.map(function (labelOption) { return (_jsx("div", { className: "w-[200px]", children: _jsx(PieChart, { labels: labels, datasets: datasets, options: {
191
- plugins: {
192
- legend: {
193
- labels: {
194
- pointStyle: labelOption,
195
- usePointStyle: true,
196
- },
197
- position: 'top',
191
+ return (<div className="flex">
192
+ {labelStyleList.map(function (labelOption) { return (<div className="w-[200px]" key={labelOption}>
193
+ <PieChart labels={labels} datasets={datasets} options={{
194
+ plugins: {
195
+ legend: {
196
+ labels: {
197
+ pointStyle: labelOption,
198
+ usePointStyle: true,
198
199
  },
200
+ position: 'top',
199
201
  },
200
- } }) }, labelOption)); }) }));
202
+ },
203
+ }}/>
204
+ </div>); })}
205
+ </div>);
201
206
  };
202
207
  export var BorderStyles = function () {
203
208
  var exampleData = [2, 4, 7, 3];
@@ -231,7 +236,14 @@ export var BorderStyles = function () {
231
236
  },
232
237
  },
233
238
  };
234
- return (_jsxs("div", { className: "flex", children: [_jsx("div", { className: "w-[200px]", children: _jsx(PieChart, { datasets: datasets, options: options }) }), _jsx("div", { className: "w-[200px]", children: _jsx(PieChart, { datasets: dashDatasets, options: dashOptions }) })] }));
239
+ return (<div className="flex">
240
+ <div className="w-[200px]">
241
+ <PieChart datasets={datasets} options={options}/>
242
+ </div>
243
+ <div className="w-[200px]">
244
+ <PieChart datasets={dashDatasets} options={dashOptions}/>
245
+ </div>
246
+ </div>);
235
247
  };
236
248
  export var DataLabels = function () {
237
249
  var datasets = [
@@ -277,5 +289,12 @@ export var DataLabels = function () {
277
289
  },
278
290
  },
279
291
  };
280
- return (_jsxs("div", { className: "flex", children: [_jsx("div", { className: "w-[200px]", children: _jsx(PieChart, { datasets: datasets, options: options }) }), _jsx("div", { className: "w-[200px]", children: _jsx(PieChart, { datasets: datasets, options: customOptions }) })] }));
292
+ return (<div className="flex">
293
+ <div className="w-[200px]">
294
+ <PieChart datasets={datasets} options={options}/>
295
+ </div>
296
+ <div className="w-[200px]">
297
+ <PieChart datasets={datasets} options={customOptions}/>
298
+ </div>
299
+ </div>);
281
300
  };
@@ -72,7 +72,7 @@ declare const meta: {
72
72
  export default meta;
73
73
  export declare const Default: ({ ...args }: {
74
74
  [x: string]: any;
75
- }) => import("react/jsx-runtime").JSX.Element;
75
+ }) => import("react").JSX.Element;
76
76
  export declare const WithInset: ({ ...args }: {
77
77
  [x: string]: any;
78
- }) => import("react/jsx-runtime").JSX.Element;
78
+ }) => 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 { Inset } from '@radix-ui/themes';
26
25
  import { Popover, PopoverTrigger, PopoverContent, PopoverClose } from '../../components/Popover';
@@ -60,15 +59,49 @@ var meta = {
60
59
  export default meta;
61
60
  export var Default = function (_a) {
62
61
  var args = __rest(_a, []);
63
- return (_jsxs(Popover, __assign({}, args, { children: [_jsx(PopoverTrigger, { children: _jsx(Button, { children: "Comment" }) }), _jsxs(PopoverContent, __assign({}, args, { children: [_jsx(Avatar, __assign({ imagePath: "https://images.unsplash.com/photo-1607346256330-dee7af15f7c5?&w=64&h=64&dpr=2&q=70&crop=focalpoint&fp-x=0.67&fp-y=0.5&fp-z=1.4&fit=crop" }, args, { size: args.size === 'small'
64
- ? '2'
65
- : args.size === 'large'
66
- ? '4'
67
- : args.size === 'x-large'
68
- ? '5'
69
- : '3' })), _jsxs("div", { className: "grow", children: [_jsx(TextArea, __assign({ placeholder: "Write a comment\u2026" }, args, { className: "w-full" })), _jsx("div", { className: "flex mt-3 justify-end", children: _jsx(PopoverClose, __assign({}, args, { children: _jsx(Button, { children: "Comment" }) })) })] })] }))] })));
62
+ return (<Popover {...args}>
63
+ <PopoverTrigger>
64
+ <Button>Comment</Button>
65
+ </PopoverTrigger>
66
+ <PopoverContent {...args}>
67
+ <Avatar imagePath="https://images.unsplash.com/photo-1607346256330-dee7af15f7c5?&w=64&h=64&dpr=2&q=70&crop=focalpoint&fp-x=0.67&fp-y=0.5&fp-z=1.4&fit=crop" {...args} size={args.size === 'small'
68
+ ? '2'
69
+ : args.size === 'large'
70
+ ? '4'
71
+ : args.size === 'x-large'
72
+ ? '5'
73
+ : '3'}/>
74
+ <div className="grow">
75
+ <TextArea placeholder="Write a comment…" {...args} className="w-full"/>
76
+ <div className="flex mt-3 justify-end">
77
+ <PopoverClose {...args}>
78
+ <Button>Comment</Button>
79
+ </PopoverClose>
80
+ </div>
81
+ </div>
82
+ </PopoverContent>
83
+ </Popover>);
70
84
  };
71
85
  export var WithInset = function (_a) {
72
86
  var args = __rest(_a, []);
73
- return (_jsxs(Popover, __assign({}, args, { children: [_jsx(PopoverTrigger, { children: _jsx(Button, { children: "Share image" }) }), _jsx(PopoverContent, __assign({}, args, { children: _jsxs("div", { className: "grid grid-cols-[130px_1fr]", children: [_jsx(Inset, { side: "left", pr: "current", children: _jsx(Image, { src: "https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?&auto=format&fit=crop&w=400&q=80", alt: "toggle with inset", width: 150, height: 150, style: { objectFit: 'cover', width: '100%', height: '100%' } }) }), _jsxs("div", { children: [_jsx("span", { children: "Minimalistic 3D rendering wallpaper." }), _jsx("div", { className: "mt-2 flex-col items-stretch", children: _jsx(PopoverClose, __assign({}, args, { children: _jsx(Button, { children: "Copy link" }) })) })] })] }) }))] })));
87
+ return (<Popover {...args}>
88
+ <PopoverTrigger>
89
+ <Button>Share image</Button>
90
+ </PopoverTrigger>
91
+ <PopoverContent {...args}>
92
+ <div className="grid grid-cols-[130px_1fr]">
93
+ <Inset side="left" pr="current">
94
+ <Image src="https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?&auto=format&fit=crop&w=400&q=80" alt="toggle with inset" width={150} height={150} style={{ objectFit: 'cover', width: '100%', height: '100%' }}/>
95
+ </Inset>
96
+ <div>
97
+ <span>Minimalistic 3D rendering wallpaper.</span>
98
+ <div className="mt-2 flex-col items-stretch">
99
+ <PopoverClose {...args}>
100
+ <Button>Copy link</Button>
101
+ </PopoverClose>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ </PopoverContent>
106
+ </Popover>);
74
107
  };
@@ -101,13 +101,13 @@ declare const meta: {
101
101
  export default meta;
102
102
  export declare const Default: ({ ...args }: {
103
103
  [x: string]: any;
104
- }) => import("react/jsx-runtime").JSX.Element;
104
+ }) => import("react").JSX.Element;
105
105
  export declare const Radius: ({ ...args }: {
106
106
  [x: string]: any;
107
- }) => import("react/jsx-runtime").JSX.Element;
107
+ }) => import("react").JSX.Element;
108
108
  export declare const Size: ({ ...args }: {
109
109
  [x: string]: any;
110
- }) => import("react/jsx-runtime").JSX.Element;
110
+ }) => import("react").JSX.Element;
111
111
  export declare const Variant: ({ ...args }: {
112
112
  [x: string]: any;
113
- }) => import("react/jsx-runtime").JSX.Element;
113
+ }) => 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 } from "react/jsx-runtime";
24
23
  import { commonArgTypes, radiusOptions, sizeOptions } from '../../constants';
25
24
  import { Progress } from '../../components/Progress';
26
25
  var meta = {
@@ -59,19 +58,25 @@ var meta = {
59
58
  export default meta;
60
59
  export var Default = function (_a) {
61
60
  var args = __rest(_a, []);
62
- return _jsx(Progress, __assign({ value: 25 }, args));
61
+ return <Progress value={25} {...args}/>;
63
62
  };
64
63
  export var Radius = function (_a) {
65
64
  var args = __rest(_a, []);
66
- return (_jsx("div", { className: "flex flex-col space-y-3", children: radiusOptions.map(function (radius) { return (_jsx(Progress, __assign({ value: 25 }, args, { radius: radius }), radius)); }) }));
65
+ return (<div className="flex flex-col space-y-3">
66
+ {radiusOptions.map(function (radius) { return (<Progress key={radius} value={25} {...args} radius={radius}/>); })}
67
+ </div>);
67
68
  };
68
69
  export var Size = function (_a) {
69
70
  var args = __rest(_a, []);
70
- return (_jsx("div", { className: "flex flex-col space-y-3", children: sizeOptions
71
+ return (<div className="flex flex-col space-y-3">
72
+ {sizeOptions
71
73
  .filter(function (value) { return value != 'x-small' && value != 'x-large'; })
72
- .map(function (size) { return (_jsx(Progress, __assign({ value: 25 }, args, { size: size }), size)); }) }));
74
+ .map(function (size) { return (<Progress key={size} value={25} {...args} size={size}/>); })}
75
+ </div>);
73
76
  };
74
77
  export var Variant = function (_a) {
75
78
  var args = __rest(_a, []);
76
- return (_jsx("div", { className: "flex flex-col space-y-3", children: ['classic', 'surface', 'soft'].map(function (appearance) { return (_jsx(Default, __assign({ value: 25 }, args, { appearance: appearance }), appearance)); }) }));
79
+ return (<div className="flex flex-col space-y-3">
80
+ {['classic', 'surface', 'soft'].map(function (appearance) { return (<Default key={appearance} value={25} {...args} appearance={appearance}/>); })}
81
+ </div>);
77
82
  };
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  declare const meta: {
2
3
  title: string;
3
4
  component: {
4
- ({ className, labels, datasets, width, height, scaling, ...props }: import("components/RadarChart").RadarChartProps): import("react/jsx-runtime").JSX.Element;
5
+ ({ className, labels, datasets, width, height, scaling, ...props }: import("components/RadarChart").RadarChartProps): import("react").JSX.Element;
5
6
  displayName: string;
6
7
  };
7
8
  parameters: {
@@ -98,13 +99,13 @@ declare const meta: {
98
99
  export default meta;
99
100
  export declare const Default: ({ ...args }: {
100
101
  [x: string]: any;
101
- }) => import("react/jsx-runtime").JSX.Element;
102
+ }) => import("react").JSX.Element;
102
103
  export declare const DotsRadarChart: ({ ...args }: {
103
104
  [x: string]: any;
104
- }) => import("react/jsx-runtime").JSX.Element;
105
+ }) => import("react").JSX.Element;
105
106
  export declare const MultiDatasets: ({ ...args }: {
106
107
  [x: string]: any;
107
- }) => import("react/jsx-runtime").JSX.Element;
108
+ }) => import("react").JSX.Element;
108
109
  export declare const LinesOnly: ({ ...args }: {
109
110
  [x: string]: any;
110
- }) => import("react/jsx-runtime").JSX.Element;
111
+ }) => 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 } from "react/jsx-runtime";
24
23
  import { RadarChart } from 'components/RadarChart';
25
24
  import { commonArgTypes, labelPositionList } from '../../constants';
26
25
  import { red, blue } from 'color/light';
@@ -111,7 +110,7 @@ export var Default = function (_a) {
111
110
  },
112
111
  },
113
112
  };
114
- return (_jsx(RadarChart, __assign({ width: 400, height: 300, labels: args.labels, datasets: args.datasets, options: options }, args)));
113
+ return (<RadarChart width={400} height={300} labels={args.labels} datasets={args.datasets} options={options} {...args}/>);
115
114
  };
116
115
  export var DotsRadarChart = function (_a) {
117
116
  var args = __rest(_a, []);
@@ -137,7 +136,7 @@ export var DotsRadarChart = function (_a) {
137
136
  },
138
137
  },
139
138
  };
140
- return (_jsx(RadarChart, { width: 400, height: 300, labels: args.labels, datasets: datasets, options: options }));
139
+ return (<RadarChart width={400} height={300} labels={args.labels} datasets={datasets} options={options}/>);
141
140
  };
142
141
  export var MultiDatasets = function (_a) {
143
142
  var args = __rest(_a, []);
@@ -168,7 +167,7 @@ export var MultiDatasets = function (_a) {
168
167
  },
169
168
  },
170
169
  };
171
- return (_jsx(RadarChart, { width: 400, height: 300, labels: args.labels, datasets: datasets, options: options }));
170
+ return (<RadarChart width={400} height={300} labels={args.labels} datasets={datasets} options={options}/>);
172
171
  };
173
172
  export var LinesOnly = function (_a) {
174
173
  var args = __rest(_a, []);
@@ -197,5 +196,5 @@ export var LinesOnly = function (_a) {
197
196
  },
198
197
  },
199
198
  };
200
- return (_jsx(RadarChart, { width: 400, height: 300, labels: args.labels, datasets: datasets, options: options }));
199
+ return (<RadarChart width={400} height={300} labels={args.labels} datasets={datasets} options={options}/>);
201
200
  };
@@ -99,10 +99,10 @@ declare const meta: {
99
99
  export default meta;
100
100
  export declare const Default: ({ ...args }: {
101
101
  [x: string]: any;
102
- }) => import("react/jsx-runtime").JSX.Element;
102
+ }) => import("react").JSX.Element;
103
103
  export declare const Size: ({ ...args }: {
104
104
  [x: string]: any;
105
- }) => import("react/jsx-runtime").JSX.Element;
105
+ }) => import("react").JSX.Element;
106
106
  export declare const Appearance: ({ ...args }: {
107
107
  [x: string]: any;
108
- }) => import("react/jsx-runtime").JSX.Element;
108
+ }) => 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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
24
23
  import { commonArgTypes, sizeOptions } from '../../constants';
25
24
  import { Radio } from '../../components/Radio/index';
26
25
  var meta = {
@@ -72,13 +71,24 @@ var meta = {
72
71
  export default meta;
73
72
  export var Default = function (_a) {
74
73
  var args = __rest(_a, []);
75
- return (_jsxs(_Fragment, { children: [_jsx(Radio, __assign({ value: '1', name: 'example' }, args, { children: "radio option1" })), _jsx(Radio, __assign({ value: '2', name: 'example' }, args, { children: "radio option2" }))] }));
74
+ return (<>
75
+ <Radio value={'1'} name={'example'} {...args}>
76
+ radio option1
77
+ </Radio>
78
+ <Radio value={'2'} name={'example'} {...args}>
79
+ radio option2
80
+ </Radio>
81
+ </>);
76
82
  };
77
83
  export var Size = function (_a) {
78
84
  var args = __rest(_a, []);
79
- return (_jsx("div", { className: "flex items-center space-x-4", children: ['small', 'medium', 'large'].map(function (size) { return (_jsx(Radio, __assign({ size: size, value: '1', name: 'size', defaultChecked: size === 'small' }, args), size)); }) }));
85
+ return (<div className="flex items-center space-x-4">
86
+ {['small', 'medium', 'large'].map(function (size) { return (<Radio key={size} size={size} value={'1'} name={'size'} defaultChecked={size === 'small'} {...args}/>); })}
87
+ </div>);
80
88
  };
81
89
  export var Appearance = function (_a) {
82
90
  var args = __rest(_a, []);
83
- return (_jsx("div", { className: "flex items-center space-x-4", children: ['classic', 'soft', 'surface'].map(function (appearance) { return (_jsx(Radio, __assign({ value: appearance, appearance: appearance, name: 'appearance', defaultChecked: appearance === 'classic' }, args), appearance)); }) }));
91
+ return (<div className="flex items-center space-x-4">
92
+ {['classic', 'soft', 'surface'].map(function (appearance) { return (<Radio key={appearance} value={appearance} appearance={appearance} name={'appearance'} defaultChecked={appearance === 'classic'} {...args}/>); })}
93
+ </div>);
84
94
  };
@@ -115,13 +115,13 @@ 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
+ }) => import("react").JSX.Element;
119
119
  export declare const Radius: ({ ...args }: {
120
120
  [x: string]: any;
121
- }) => import("react/jsx-runtime").JSX.Element;
121
+ }) => import("react").JSX.Element;
122
122
  export declare const Size: ({ ...args }: {
123
123
  [x: string]: any;
124
- }) => import("react/jsx-runtime").JSX.Element;
124
+ }) => import("react").JSX.Element;
125
125
  export declare const States: ({ ...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 { commonArgTypes, radiusOptions, sizeOptions } from '../../constants';
25
24
  import { RadioCards, RadioCardsItem } from '../../components/RadioCards';
26
25
  var meta = {
@@ -78,17 +77,77 @@ var meta = {
78
77
  export default meta;
79
78
  export var Default = function (_a) {
80
79
  var args = __rest(_a, []);
81
- return (_jsxs(RadioCards, __assign({}, args, { defaultValue: "1", children: [_jsx(RadioCardsItem, __assign({ value: "1" }, args, { children: "radioCard 1" })), _jsx(RadioCardsItem, __assign({ value: "2" }, args, { children: "radioCard 2" })), _jsx(RadioCardsItem, __assign({ value: "3" }, args, { children: "radioCard 3" }))] })));
80
+ return (<RadioCards {...args} defaultValue="1">
81
+ <RadioCardsItem value="1" {...args}>
82
+ radioCard 1
83
+ </RadioCardsItem>
84
+ <RadioCardsItem value="2" {...args}>
85
+ radioCard 2
86
+ </RadioCardsItem>
87
+ <RadioCardsItem value="3" {...args}>
88
+ radioCard 3
89
+ </RadioCardsItem>
90
+ </RadioCards>);
82
91
  };
83
92
  export var Radius = function (_a) {
84
93
  var args = __rest(_a, []);
85
- return (_jsx("div", { className: "flex items-center space-x-4", children: _jsx("div", { className: "flex space-x-1", children: _jsxs(RadioCards, __assign({}, args, { defaultValue: "none", children: [_jsx(RadioCardsItem, __assign({ value: "none" }, args, { radius: 'none', children: "none" })), _jsx(RadioCardsItem, __assign({ value: "small" }, args, { radius: 'small', children: "small" })), _jsx(RadioCardsItem, __assign({ value: "medium" }, args, { radius: 'medium', children: "medium" })), _jsx(RadioCardsItem, __assign({ value: "large" }, args, { radius: 'large', children: "large" }))] })) }) }));
94
+ return (<div className="flex items-center space-x-4">
95
+ <div className="flex space-x-1">
96
+ <RadioCards {...args} defaultValue="none">
97
+ <RadioCardsItem value="none" {...args} radius={'none'}>
98
+ none
99
+ </RadioCardsItem>
100
+ <RadioCardsItem value="small" {...args} radius={'small'}>
101
+ small
102
+ </RadioCardsItem>
103
+ <RadioCardsItem value="medium" {...args} radius={'medium'}>
104
+ medium
105
+ </RadioCardsItem>
106
+ <RadioCardsItem value="large" {...args} radius={'large'}>
107
+ large
108
+ </RadioCardsItem>
109
+ </RadioCards>
110
+ </div>
111
+ </div>);
86
112
  };
87
113
  export var Size = function (_a) {
88
114
  var args = __rest(_a, []);
89
- return (_jsx("div", { className: "flex items-center space-x-4", children: _jsxs(RadioCards, __assign({ defaultValue: "small" }, args, { children: [_jsx(RadioCardsItem, __assign({ value: 'small' }, args, { size: 'small', children: "small" })), _jsx(RadioCardsItem, __assign({ value: 'medium' }, args, { size: 'medium', children: "medium" })), _jsx(RadioCardsItem, __assign({ value: 'large' }, args, { size: 'large', children: "large" }))] })) }));
115
+ return (<div className="flex items-center space-x-4">
116
+ <RadioCards defaultValue="small" {...args}>
117
+ <RadioCardsItem value={'small'} {...args} size={'small'}>
118
+ small
119
+ </RadioCardsItem>
120
+ <RadioCardsItem value={'medium'} {...args} size={'medium'}>
121
+ medium
122
+ </RadioCardsItem>
123
+ <RadioCardsItem value={'large'} {...args} size={'large'}>
124
+ large
125
+ </RadioCardsItem>
126
+ </RadioCards>
127
+ </div>);
90
128
  };
91
129
  export var States = function (_a) {
92
130
  var args = __rest(_a, []);
93
- return (_jsxs("div", { className: "space-y-2", children: [_jsx("div", { className: "flex items-center space-x-4", children: _jsxs(RadioCards, __assign({}, args, { defaultValue: "On", children: [_jsx(RadioCardsItem, __assign({ value: "Off" }, args, { children: "Off" })), _jsx(RadioCardsItem, __assign({ value: "On" }, args, { children: "On" }))] })) }), _jsx("div", { className: "flex items-center space-x-4", children: _jsxs(RadioCards, __assign({}, args, { defaultValue: "On", children: [_jsx(RadioCardsItem, __assign({ value: "Off" }, args, { disabled: true, children: "Off" })), _jsx(RadioCardsItem, __assign({ value: "On" }, args, { disabled: true, children: "On" }))] })) })] }));
131
+ return (<div className="space-y-2">
132
+ <div className="flex items-center space-x-4">
133
+ <RadioCards {...args} defaultValue="On">
134
+ <RadioCardsItem value="Off" {...args}>
135
+ Off
136
+ </RadioCardsItem>
137
+ <RadioCardsItem value="On" {...args}>
138
+ On
139
+ </RadioCardsItem>
140
+ </RadioCards>
141
+ </div>
142
+ <div className="flex items-center space-x-4">
143
+ <RadioCards {...args} defaultValue="On">
144
+ <RadioCardsItem value="Off" {...args} disabled>
145
+ Off
146
+ </RadioCardsItem>
147
+ <RadioCardsItem value="On" {...args} disabled>
148
+ On
149
+ </RadioCardsItem>
150
+ </RadioCards>
151
+ </div>
152
+ </div>);
94
153
  };
@@ -99,13 +99,13 @@ declare const meta: {
99
99
  export default meta;
100
100
  export declare const Default: ({ ...args }: {
101
101
  [x: string]: any;
102
- }) => import("react/jsx-runtime").JSX.Element;
102
+ }) => import("react").JSX.Element;
103
103
  export declare const Size: ({ ...args }: {
104
104
  [x: string]: any;
105
- }) => import("react/jsx-runtime").JSX.Element;
105
+ }) => import("react").JSX.Element;
106
106
  export declare const Appearance: ({ ...args }: {
107
107
  [x: string]: any;
108
- }) => import("react/jsx-runtime").JSX.Element;
108
+ }) => import("react").JSX.Element;
109
109
  export declare const Disabled: ({ ...args }: {
110
110
  [x: string]: any;
111
- }) => import("react/jsx-runtime").JSX.Element;
111
+ }) => 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 { RadioGroup, RadioGroupItem } from '../../components/RadioGroup';
26
25
  var meta = {
@@ -72,17 +71,72 @@ var meta = {
72
71
  export default meta;
73
72
  export var Default = function (_a) {
74
73
  var args = __rest(_a, []);
75
- return (_jsxs(RadioGroup, __assign({ defaultValue: '1', name: "example" }, args, { children: [_jsx(RadioGroupItem, __assign({ value: "1" }, args, { children: "Default" })), _jsx(RadioGroupItem, __assign({ value: "2" }, args, { children: "Comfortable" })), _jsx(RadioGroupItem, __assign({ value: "3" }, args, { children: "Compact" }))] })));
74
+ return (<RadioGroup defaultValue={'1'} name="example" {...args}>
75
+ <RadioGroupItem value="1" {...args}>
76
+ Default
77
+ </RadioGroupItem>
78
+ <RadioGroupItem value="2" {...args}>
79
+ Comfortable
80
+ </RadioGroupItem>
81
+ <RadioGroupItem value="3" {...args}>
82
+ Compact
83
+ </RadioGroupItem>
84
+ </RadioGroup>);
76
85
  };
77
86
  export var Size = function (_a) {
78
87
  var args = __rest(_a, []);
79
- return (_jsx("div", { className: "flex items-center space-x-4", children: ['small', 'medium', 'large'].map(function (size) { return (_jsxs(RadioGroup, __assign({ defaultValue: '1', name: size }, args, { size: size, children: [_jsx(RadioGroupItem, __assign({ value: "1" }, args, { children: "Default" })), _jsx(RadioGroupItem, __assign({ value: "2" }, args, { children: "Comfortable" })), _jsx(RadioGroupItem, __assign({ value: "3" }, args, { children: "Compact" }))] }), size)); }) }));
88
+ return (<div className="flex items-center space-x-4">
89
+ {['small', 'medium', 'large'].map(function (size) { return (<RadioGroup key={size} defaultValue={'1'} name={size} {...args} size={size}>
90
+ <RadioGroupItem value="1" {...args}>
91
+ Default
92
+ </RadioGroupItem>
93
+ <RadioGroupItem value="2" {...args}>
94
+ Comfortable
95
+ </RadioGroupItem>
96
+ <RadioGroupItem value="3" {...args}>
97
+ Compact
98
+ </RadioGroupItem>
99
+ </RadioGroup>); })}
100
+ </div>);
80
101
  };
81
102
  export var Appearance = function (_a) {
82
103
  var args = __rest(_a, []);
83
- return (_jsx("div", { className: "flex items-center space-x-4", children: ['classic', 'soft', 'surface'].map(function (appearance) { return (_jsxs(RadioGroup, __assign({ defaultValue: '1', name: appearance }, args, { appearance: appearance, children: [_jsx(RadioGroupItem, __assign({ value: "1" }, args, { children: "Default" })), _jsx(RadioGroupItem, __assign({ value: "2" }, args, { children: "Comfortable" })), _jsx(RadioGroupItem, __assign({ value: "3" }, args, { children: "Compact" }))] }), appearance)); }) }));
104
+ return (<div className="flex items-center space-x-4">
105
+ {['classic', 'soft', 'surface'].map(function (appearance) { return (<RadioGroup key={appearance} defaultValue={'1'} name={appearance} {...args} appearance={appearance}>
106
+ <RadioGroupItem value="1" {...args}>
107
+ Default
108
+ </RadioGroupItem>
109
+ <RadioGroupItem value="2" {...args}>
110
+ Comfortable
111
+ </RadioGroupItem>
112
+ <RadioGroupItem value="3" {...args}>
113
+ Compact
114
+ </RadioGroupItem>
115
+ </RadioGroup>); })}
116
+ </div>);
84
117
  };
85
118
  export var Disabled = function (_a) {
86
119
  var args = __rest(_a, []);
87
- return (_jsxs("div", { className: "flex items-center space-x-4", children: [_jsx("div", { children: _jsxs(RadioGroup, __assign({ defaultValue: 'On' }, args, { children: [_jsx(RadioGroupItem, __assign({ value: "Off" }, args, { children: "Off" })), _jsx(RadioGroupItem, __assign({ value: "On" }, args, { children: "On" }))] })) }), _jsx("div", { children: _jsxs(RadioGroup, __assign({ defaultValue: 'On' }, args, { children: [_jsx(RadioGroupItem, __assign({ value: "Off" }, args, { disabled: true, children: "Off" })), _jsx(RadioGroupItem, __assign({ value: "On" }, args, { disabled: true, children: "On" }))] })) })] }));
120
+ return (<div className="flex items-center space-x-4">
121
+ <div>
122
+ <RadioGroup defaultValue={'On'} {...args}>
123
+ <RadioGroupItem value="Off" {...args}>
124
+ Off
125
+ </RadioGroupItem>
126
+ <RadioGroupItem value="On" {...args}>
127
+ On
128
+ </RadioGroupItem>
129
+ </RadioGroup>
130
+ </div>
131
+ <div>
132
+ <RadioGroup defaultValue={'On'} {...args}>
133
+ <RadioGroupItem value="Off" {...args} disabled>
134
+ Off
135
+ </RadioGroupItem>
136
+ <RadioGroupItem value="On" {...args} disabled>
137
+ On
138
+ </RadioGroupItem>
139
+ </RadioGroup>
140
+ </div>
141
+ </div>);
88
142
  };
@@ -53,7 +53,7 @@ declare const meta: {
53
53
  export default meta;
54
54
  export declare const Default: ({ ...args }: {
55
55
  [x: string]: any;
56
- }) => import("react/jsx-runtime").JSX.Element;
56
+ }) => import("react").JSX.Element;
57
57
  export declare const Type: ({ ...args }: {
58
58
  [x: string]: any;
59
- }) => import("react/jsx-runtime").JSX.Element;
59
+ }) => import("react").JSX.Element;