@lotte-innovate/ui-component-test 0.0.49 → 0.0.51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. package/README.md +78 -281
  2. package/dist/globals.css +4 -0
  3. package/dist/lib/Typography/Header/index.d.ts +1 -1
  4. package/dist/lib/Typography/Header/{index.jsx → index.js} +4 -7
  5. package/dist/lib/Typography/Text/index.d.ts +1 -1
  6. package/dist/lib/Typography/Text/{index.jsx → index.js} +5 -8
  7. package/dist/lib/components/Accordion/index.d.ts +1 -1
  8. package/dist/lib/components/Accordion/{index.jsx → index.js} +7 -19
  9. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +1 -1
  10. package/dist/lib/components/AlertDialog/{AlertDialogAction.jsx → AlertDialogAction.js} +5 -6
  11. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +1 -1
  12. package/dist/lib/components/AlertDialog/{AlertDialogCancel.jsx → AlertDialogCancel.js} +5 -6
  13. package/dist/lib/components/AlertDialog/{AlertDialogContent.jsx → AlertDialogContent.js} +5 -9
  14. package/dist/lib/components/AlertDialog/{AlertDialogDescription.jsx → AlertDialogDescription.js} +15 -5
  15. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +1 -1
  16. package/dist/lib/components/AlertDialog/{AlertDialogRoot.jsx → AlertDialogRoot.js} +14 -6
  17. package/dist/lib/components/AlertDialog/{AlertDialogTitle.jsx → AlertDialogTitle.js} +15 -5
  18. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +1 -1
  19. package/dist/lib/components/AlertDialog/{AlertDialogTrigger.jsx → AlertDialogTrigger.js} +5 -6
  20. package/dist/lib/components/AspectRatio/{index.jsx → index.js} +5 -6
  21. package/dist/lib/components/Avatar/{index.jsx → index.js} +5 -9
  22. package/dist/lib/components/Badge/index.d.ts +1 -1
  23. package/dist/lib/components/Badge/{index.jsx → index.js} +5 -6
  24. package/dist/lib/components/BarChart/index.d.ts +2 -3
  25. package/dist/lib/components/BarChart/{index.jsx → index.js} +7 -6
  26. package/dist/lib/components/BubbleChart/index.d.ts +2 -3
  27. package/dist/lib/components/BubbleChart/{index.jsx → index.js} +7 -7
  28. package/dist/lib/components/Button/index.d.ts +1 -1
  29. package/dist/lib/components/Button/{index.jsx → index.js} +5 -6
  30. package/dist/lib/components/Callout/{CalloutIcon.jsx → CalloutIcon.js} +5 -10
  31. package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
  32. package/dist/lib/components/Callout/{CalloutRoot.jsx → CalloutRoot.js} +5 -8
  33. package/dist/lib/components/Callout/{CalloutText.jsx → CalloutText.js} +15 -5
  34. package/dist/lib/components/Card/index.d.ts +1 -1
  35. package/dist/lib/components/Card/{index.jsx → index.js} +5 -6
  36. package/dist/lib/components/Checkbox/index.d.ts +1 -1
  37. package/dist/lib/components/Checkbox/{index.jsx → index.js} +6 -14
  38. package/dist/lib/components/CheckboxCard/index.d.ts +2 -2
  39. package/dist/lib/components/CheckboxCard/{index.jsx → index.js} +7 -9
  40. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +1 -1
  41. package/dist/lib/components/CheckboxGroup/{CheckboxGroupItem.jsx → CheckboxGroupItem.js} +15 -7
  42. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +2 -2
  43. package/dist/lib/components/CheckboxGroup/{CheckboxGroupRoot.jsx → CheckboxGroupRoot.js} +3 -6
  44. package/dist/lib/components/CheckboxGroup/index.d.ts +1 -1
  45. package/dist/lib/components/ContextMenu/{ContextMenuCheckboxItem.jsx → ContextMenuCheckboxItem.js} +16 -9
  46. package/dist/lib/components/ContextMenu/{ContextMenuContent.jsx → ContextMenuContent.js} +5 -8
  47. package/dist/lib/components/ContextMenu/{ContextMenuGroup.jsx → ContextMenuGroup.js} +14 -4
  48. package/dist/lib/components/ContextMenu/{ContextMenuItem.jsx → ContextMenuItem.js} +5 -7
  49. package/dist/lib/components/ContextMenu/{ContextMenuItemIndicator.jsx → ContextMenuItemIndicator.js} +5 -6
  50. package/dist/lib/components/ContextMenu/{ContextMenuLabel.jsx → ContextMenuLabel.js} +5 -6
  51. package/dist/lib/components/ContextMenu/{ContextMenuRadioGroup.jsx → ContextMenuRadioGroup.js} +14 -6
  52. package/dist/lib/components/ContextMenu/{ContextMenuRadioItem.jsx → ContextMenuRadioItem.js} +16 -9
  53. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +1 -1
  54. package/dist/lib/components/ContextMenu/{ContextMenuRoot.jsx → ContextMenuRoot.js} +14 -6
  55. package/dist/lib/components/ContextMenu/{ContextMenuSeparator.jsx → ContextMenuSeparator.js} +15 -5
  56. package/dist/lib/components/ContextMenu/{ContextMenuSubContent.jsx → ContextMenuSubContent.js} +9 -12
  57. package/dist/lib/components/ContextMenu/{ContextMenuSubTrigger.jsx → ContextMenuSubTrigger.js} +16 -11
  58. package/dist/lib/components/ContextMenu/{ContextMenuTrigger.jsx → ContextMenuTrigger.js} +15 -5
  59. package/dist/lib/components/DataList/{DataListItem.jsx → DataListItem.js} +5 -6
  60. package/dist/lib/components/DataList/{DataListLabel.jsx → DataListLabel.js} +5 -6
  61. package/dist/lib/components/DataList/{DataListRoot.jsx → DataListRoot.js} +15 -7
  62. package/dist/lib/components/DataList/{DataListValue.jsx → DataListValue.js} +5 -6
  63. package/dist/lib/components/Dialog/{DialogAction.jsx → DialogAction.js} +16 -6
  64. package/dist/lib/components/Dialog/{DialogCancel.jsx → DialogCancel.js} +15 -5
  65. package/dist/lib/components/Dialog/{DialogContent.jsx → DialogContent.js} +5 -6
  66. package/dist/lib/components/Dialog/{DialogDescription.jsx → DialogDescription.js} +15 -5
  67. package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -1
  68. package/dist/lib/components/Dialog/{DialogRoot.jsx → DialogRoot.js} +14 -6
  69. package/dist/lib/components/Dialog/{DialogSlot.jsx → DialogSlot.js} +15 -5
  70. package/dist/lib/components/Dialog/{DialogTitle.jsx → DialogTitle.js} +15 -5
  71. package/dist/lib/components/Dialog/{DialogTrigger.jsx → DialogTrigger.js} +14 -4
  72. package/dist/lib/components/Dialog/index.d.ts +1 -1
  73. package/dist/lib/components/DoughnutChart/index.d.ts +2 -3
  74. package/dist/lib/components/DoughnutChart/{index.jsx → index.js} +6 -6
  75. package/dist/lib/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js} +13 -3
  76. package/dist/lib/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js} +9 -12
  77. package/dist/lib/components/DropdownMenu/{DropdownMenuCheckboxItem.jsx → DropdownMenuCheckboxItem.js} +16 -9
  78. package/dist/lib/components/DropdownMenu/{DropdownMenuContent.jsx → DropdownMenuContent.js} +5 -8
  79. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  80. package/dist/lib/components/DropdownMenu/{DropdownMenuItem.jsx → DropdownMenuItem.js} +5 -7
  81. package/dist/lib/components/DropdownMenu/{DropdownMenuItemIndicator.jsx → DropdownMenuItemIndicator.js} +5 -6
  82. package/dist/lib/components/DropdownMenu/{DropdownMenuLable.jsx → DropdownMenuLable.js} +15 -5
  83. package/dist/lib/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js} +16 -9
  84. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +2 -2
  85. package/dist/lib/components/DropdownMenu/{DropdownMenuRoot.jsx → DropdownMenuRoot.js} +14 -4
  86. package/dist/lib/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js} +15 -3
  87. package/dist/lib/components/DropdownMenu/{DropdownMenuSub.jsx → DropdownMenuSub.js} +14 -2
  88. package/dist/lib/components/DropdownMenu/{DropdownMenuSubTrigger.jsx → DropdownMenuSubTrigger.js} +16 -9
  89. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  90. package/dist/lib/components/DropdownMenu/{DropdownMenuTrigger.jsx → DropdownMenuTrigger.js} +15 -5
  91. package/dist/lib/components/DropdownMenu/index.d.ts +1 -1
  92. package/dist/lib/components/HoverCard/{HoverCardContent.jsx → HoverCardContent.js} +5 -6
  93. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +1 -1
  94. package/dist/lib/components/HoverCard/{HoverCardRoot.jsx → HoverCardRoot.js} +14 -6
  95. package/dist/lib/components/HoverCard/{HoverCardTrigger.jsx → HoverCardTrigger.js} +14 -4
  96. package/dist/lib/components/HoverCard/index.d.ts +1 -1
  97. package/dist/lib/components/IconButton/index.d.ts +1 -1
  98. package/dist/lib/components/IconButton/{index.jsx → index.js} +4 -5
  99. package/dist/lib/components/Inset/{index.jsx → index.js} +5 -8
  100. package/dist/lib/components/Label/index.d.ts +1 -1
  101. package/dist/lib/components/Label/{index.jsx → index.js} +4 -5
  102. package/dist/lib/components/LineChart/index.d.ts +2 -3
  103. package/dist/lib/components/LineChart/{index.jsx → index.js} +7 -6
  104. package/dist/lib/components/Menubar/{MenubarCheckboxItem.jsx → MenubarCheckboxItem.js} +16 -9
  105. package/dist/lib/components/Menubar/{MenubarContent.jsx → MenubarContent.js} +9 -12
  106. package/dist/lib/components/Menubar/{MenubarItem.jsx → MenubarItem.js} +5 -7
  107. package/dist/lib/components/Menubar/{MenubarItemIndicator.jsx → MenubarItemIndicator.js} +5 -6
  108. package/dist/lib/components/Menubar/{MenubarMenu.jsx → MenubarMenu.js} +14 -2
  109. package/dist/lib/components/Menubar/{MenubarRadioGroup.jsx → MenubarRadioGroup.js} +14 -6
  110. package/dist/lib/components/Menubar/{MenubarRadioItem.jsx → MenubarRadioItem.js} +16 -9
  111. package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
  112. package/dist/lib/components/Menubar/{MenubarRoot.jsx → MenubarRoot.js} +5 -8
  113. package/dist/lib/components/Menubar/{MenubarSeparator.jsx → MenubarSeparator.js} +15 -5
  114. package/dist/lib/components/Menubar/{MenubarSub.jsx → MenubarSub.js} +14 -2
  115. package/dist/lib/components/Menubar/{MenubarSubContent.jsx → MenubarSubContent.js} +6 -7
  116. package/dist/lib/components/Menubar/{MenubarSubTrigger.jsx → MenubarSubTrigger.js} +16 -9
  117. package/dist/lib/components/Menubar/{MenubarTrigger.jsx → MenubarTrigger.js} +5 -6
  118. package/dist/lib/components/NavigationMenu/{NavigationMenuContent.jsx → NavigationMenuContent.js} +5 -6
  119. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
  120. package/dist/lib/components/NavigationMenu/{NavigationMenuItem.jsx → NavigationMenuItem.js} +14 -4
  121. package/dist/lib/components/NavigationMenu/{NavigationMenuLink.jsx → NavigationMenuLink.js} +5 -6
  122. package/dist/lib/components/NavigationMenu/{NavigationMenuList.jsx → NavigationMenuList.js} +5 -7
  123. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +1 -1
  124. package/dist/lib/components/NavigationMenu/{NavigationMenuRoot.jsx → NavigationMenuRoot.js} +15 -7
  125. package/dist/lib/components/NavigationMenu/{NavigationMenuTrigger.jsx → NavigationMenuTrigger.js} +5 -7
  126. package/dist/lib/components/NavigationMenu/{NavigationMenuViewport.jsx → NavigationMenuViewport.js} +5 -6
  127. package/dist/lib/components/PieChart/index.d.ts +2 -3
  128. package/dist/lib/components/PieChart/{index.jsx → index.js} +6 -6
  129. package/dist/lib/components/Popover/{PopoverClose.jsx → PopoverClose.js} +15 -5
  130. package/dist/lib/components/Popover/{PopoverContent.jsx → PopoverContent.js} +5 -6
  131. package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -1
  132. package/dist/lib/components/Popover/{PopoverRoot.jsx → PopoverRoot.js} +14 -6
  133. package/dist/lib/components/Popover/{PopoverTrigger.jsx → PopoverTrigger.js} +14 -4
  134. package/dist/lib/components/Popover/index.d.ts +1 -1
  135. package/dist/lib/components/Progress/{index.jsx → index.js} +5 -6
  136. package/dist/lib/components/RadarChart/index.d.ts +2 -3
  137. package/dist/lib/components/RadarChart/{index.jsx → index.js} +7 -7
  138. package/dist/lib/components/Radio/index.d.ts +1 -1
  139. package/dist/lib/components/Radio/{index.jsx → index.js} +15 -10
  140. package/dist/lib/components/RadioCards/{RadioCardsItem.jsx → RadioCardsItem.js} +15 -5
  141. package/dist/lib/components/RadioCards/{RadioCardsRoot.jsx → RadioCardsRoot.js} +5 -10
  142. package/dist/lib/components/RadioGroup/{RadioGroupItem.jsx → RadioGroupItem.js} +15 -5
  143. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
  144. package/dist/lib/components/RadioGroup/{RadioGroupRoot.jsx → RadioGroupRoot.js} +15 -9
  145. package/dist/lib/components/ScrollArea/{index.jsx → index.js} +14 -6
  146. package/dist/lib/components/SegmentedControl/{SegmentedControlItem.jsx → SegmentedControlItem.js} +15 -5
  147. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
  148. package/dist/lib/components/SegmentedControl/{SegmentedControlRoot.jsx → SegmentedControlRoot.js} +4 -7
  149. package/dist/lib/components/SegmentedControl/index.d.ts +1 -1
  150. package/dist/lib/components/Select/index.d.ts +1 -1
  151. package/dist/lib/components/Select/{index.jsx → index.js} +10 -27
  152. package/dist/lib/components/Separator/{index.jsx → index.js} +4 -7
  153. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  154. package/dist/lib/components/Skeleton/{index.jsx → index.js} +4 -7
  155. package/dist/lib/components/Slider/index.d.ts +1 -1
  156. package/dist/lib/components/Slider/{index.jsx → index.js} +4 -5
  157. package/dist/lib/components/Spinner/index.d.ts +1 -1
  158. package/dist/lib/components/Spinner/{index.jsx → index.js} +4 -7
  159. package/dist/lib/components/TabNav/{index.jsx → index.js} +15 -9
  160. package/dist/lib/components/Table/index.d.ts +1 -1
  161. package/dist/lib/components/Table/{index.jsx → index.js} +10 -25
  162. package/dist/lib/components/Tabs/{index.jsx → index.js} +7 -16
  163. package/dist/lib/components/TextArea/index.d.ts +1 -1
  164. package/dist/lib/components/TextArea/{index.jsx → index.js} +4 -5
  165. package/dist/lib/components/TextField/index.d.ts +1 -1
  166. package/dist/lib/components/TextField/{index.jsx → index.js} +5 -10
  167. package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
  168. package/dist/lib/components/Toast/{ToastActionButton.jsx → ToastActionButton.js} +6 -7
  169. package/dist/lib/components/Toast/ToastDescription.d.ts +1 -1
  170. package/dist/lib/components/Toast/{ToastDescription.jsx → ToastDescription.js} +15 -7
  171. package/dist/lib/components/Toast/{ToastRoot.jsx → ToastRoot.js} +5 -11
  172. package/dist/lib/components/Toast/ToastTitle.d.ts +1 -1
  173. package/dist/lib/components/Toast/{ToastTitle.jsx → ToastTitle.js} +15 -5
  174. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  175. package/dist/lib/components/Toggle/{ToggleWithText.jsx → ToggleWithText.js} +7 -9
  176. package/dist/lib/components/Toggle/index.d.ts +1 -1
  177. package/dist/lib/components/Toggle/{index.jsx → index.js} +5 -6
  178. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +1 -1
  179. package/dist/lib/components/ToggleGroup/{ToggleGroupItem.jsx → ToggleGroupItem.js} +16 -6
  180. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +1 -1
  181. package/dist/lib/components/ToggleGroup/{ToggleGroupRoot.jsx → ToggleGroupRoot.js} +5 -10
  182. package/dist/lib/components/ToggleSwitch/{index.jsx → index.js} +5 -9
  183. package/dist/lib/components/Tooltip/index.d.ts +1 -1
  184. package/dist/lib/components/Tooltip/{index.jsx → index.js} +4 -13
  185. package/dist/lib/constants.js +2 -2
  186. package/dist/lib/index.d.ts +2 -2
  187. package/dist/lib/index.js +2 -2
  188. package/dist/lib/utils/useDarkMode.js +1 -1
  189. package/dist/tailwind.config.d.ts +3 -0
  190. package/dist/tailwind.config.js +141 -0
  191. package/package.json +4 -2
  192. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
  193. /package/dist/lib/components/AlertDialog/{index.jsx → index.js} +0 -0
  194. /package/dist/lib/components/Callout/{index.jsx → index.js} +0 -0
  195. /package/dist/lib/components/CheckboxGroup/{index.jsx → index.js} +0 -0
  196. /package/dist/lib/components/ContextMenu/{index.jsx → index.js} +0 -0
  197. /package/dist/lib/components/DataList/{index.jsx → index.js} +0 -0
  198. /package/dist/lib/components/Dialog/{index.jsx → index.js} +0 -0
  199. /package/dist/lib/components/DropdownMenu/{index.jsx → index.js} +0 -0
  200. /package/dist/lib/components/HoverCard/{index.jsx → index.js} +0 -0
  201. /package/dist/lib/components/Menubar/{index.jsx → index.js} +0 -0
  202. /package/dist/lib/components/NavigationMenu/{index.jsx → index.js} +0 -0
  203. /package/dist/lib/components/Popover/{index.jsx → index.js} +0 -0
  204. /package/dist/lib/components/RadioCards/{index.jsx → index.js} +0 -0
  205. /package/dist/lib/components/RadioGroup/{index.jsx → index.js} +0 -0
  206. /package/dist/lib/components/SegmentedControl/{index.jsx → index.js} +0 -0
  207. /package/dist/lib/components/Toast/{index.jsx → index.js} +0 -0
  208. /package/dist/lib/components/ToggleGroup/{index.jsx → index.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import React from 'react';
3
- import { IColor } from 'lib/types';
3
+ import { IColor } from '../../../lib/types';
4
4
  export interface HeaderProps extends VariantProps<typeof headerVariants> {
5
5
  color?: IColor;
6
6
  }
@@ -20,9 +20,10 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import { cn } from 'lib/utils/utils';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { cn } from '../../../lib/utils/utils';
24
25
  import { cva } from 'class-variance-authority';
25
- import { textColorStyle, weightVariants } from 'lib/constants';
26
+ import { textColorStyle, weightVariants } from '../../../lib/constants';
26
27
  import { Heading as HeadingTheme, Theme } from '@radix-ui/themes';
27
28
  import React from 'react';
28
29
  var weights = __assign({}, weightVariants);
@@ -48,11 +49,7 @@ export var Header = React.forwardRef(function (_a, ref) {
48
49
  var className = _a.className, children = _a.children, size = _a.size, weight = _a.weight, color = _a.color, headers = _a.headers, align = _a.align, rootProps = __rest(_a, ["className", "children", "size", "weight", "color", "headers", "align"]);
49
50
  if (!headers)
50
51
  headers = 'h1';
51
- return (<Theme>
52
- <HeadingTheme ref={ref} as={headers} size={size} align={align} className={cn('leading-normal', headerVariants({ weight: weight, color: color }), className)} {...rootProps}>
53
- {children}
54
- </HeadingTheme>
55
- </Theme>);
52
+ return (_jsx(Theme, { children: _jsx(HeadingTheme, __assign({ ref: ref, as: headers, size: size, align: align, className: cn('leading-normal', headerVariants({ weight: weight, color: color }), className) }, rootProps, { children: children })) }));
56
53
  });
57
54
  Header.displayName = 'Header';
58
55
  export default Header;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { IColor, ITypoSize } from 'lib/types';
3
+ import { IColor, ITypoSize } from '../../../lib/types';
4
4
  export interface TextProps extends VariantProps<typeof textVariants> {
5
5
  color?: IColor;
6
6
  size?: ITypoSize;
@@ -20,11 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
26
  import { Text as TextTheme, Theme } from '@radix-ui/themes';
26
- import { textColorStyle, weightVariants } from 'lib/constants';
27
- import { cn } from 'lib/utils/utils';
27
+ import { textColorStyle, weightVariants } from '../../../lib/constants';
28
+ import { cn } from '../../../lib/utils/utils';
28
29
  var textVariants = cva('', {
29
30
  variants: {
30
31
  weight: __assign({ light: 'font-light' }, weightVariants),
@@ -37,11 +38,7 @@ var textVariants = cva('', {
37
38
  });
38
39
  export var Text = forwardRef(function (_a, ref) {
39
40
  var className = _a.className, children = _a.children, as = _a.as, align = _a.align, weight = _a.weight, color = _a.color, size = _a.size, props = __rest(_a, ["className", "children", "as", "align", "weight", "color", "size"]);
40
- return (<Theme>
41
- <TextTheme as={as} ref={ref} size={size} align={align} className={cn(textVariants({ weight: weight, color: color }), className)} {...props}>
42
- {children}
43
- </TextTheme>
44
- </Theme>);
41
+ return (_jsx(Theme, { children: _jsx(TextTheme, __assign({ as: as, ref: ref, size: size, align: align, className: cn(textVariants({ weight: weight, color: color }), className) }, props, { children: children })) }));
45
42
  });
46
43
  Text.displayName = 'Text';
47
44
  export default Text;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { IColor } from 'lib/types';
4
+ import { IColor } from '../../../lib/types';
5
5
  export interface AccordionProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof accoridanVariants> {
6
6
  defaultValue?: string;
7
7
  color?: IColor;
@@ -20,12 +20,13 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
24
  import React from 'react';
24
25
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
25
26
  import { ChevronDownIcon } from '@radix-ui/react-icons';
26
- import { cn } from 'lib/utils/utils';
27
+ import { cn } from '../../../lib/utils/utils';
27
28
  import { cva } from 'class-variance-authority';
28
- import { scalingVariants } from 'lib/constants';
29
+ import { scalingVariants } from '../../../lib/constants';
29
30
  var accoridanVariants = cva('', {
30
31
  variants: {
31
32
  scaling: __assign({}, scalingVariants),
@@ -36,35 +37,22 @@ var accoridanVariants = cva('', {
36
37
  });
37
38
  export var Root = React.forwardRef(function (_a, forwardedRef) {
38
39
  var className = _a.className, children = _a.children, scaling = _a.scaling, rootProps = __rest(_a, ["className", "children", "scaling"]);
39
- return (<AccordionPrimitive.Root className={cn('w-[280px] rounded-md border border-slateA-4 dark:border-slateDarkA-4', accoridanVariants({ scaling: scaling }), className)} {...rootProps} ref={forwardedRef}>
40
- {children}
41
- </AccordionPrimitive.Root>);
40
+ return (_jsx(AccordionPrimitive.Root, __assign({ className: cn('w-[280px] rounded-md border border-slateA-4 dark:border-slateDarkA-4', accoridanVariants({ scaling: scaling }), className) }, rootProps, { ref: forwardedRef, children: children })));
42
41
  });
43
42
  Root.displayName = 'Accordion.Root';
44
43
  export var Item = React.forwardRef(function (_a, forwardedRef) {
45
44
  var className = _a.className, children = _a.children, rootProps = __rest(_a, ["className", "children"]);
46
- return (<AccordionPrimitive.Item {...rootProps} ref={forwardedRef} className={cn('mt-px w-[278px] overflow-hidden first:mt-0 first:rounded-t last:rounded-b', className)}>
47
- {children}
48
- </AccordionPrimitive.Item>);
45
+ return (_jsx(AccordionPrimitive.Item, __assign({}, rootProps, { ref: forwardedRef, className: cn('mt-px w-[278px] overflow-hidden first:mt-0 first:rounded-t last:rounded-b', className), children: children })));
49
46
  });
50
47
  Item.displayName = 'Accordion.Item';
51
48
  export var Trigger = React.forwardRef(function (_a, forwardedRef) {
52
49
  var className = _a.className, children = _a.children, _b = _a.color, color = _b === void 0 ? 'red' : _b, rootProps = __rest(_a, ["className", "children", "color"]);
53
- return (<AccordionPrimitive.Header {...rootProps} className={cn('flex', className)}>
54
- <AccordionPrimitive.Trigger {...rootProps} ref={forwardedRef} className={cn("group flex h-[44px] w-[278px] cursor-default items-center justify-between px-[20px] py-[10px] text-base font-normal", "dark:bg-[#111113] text-".concat(color, "A-11 dark:text-").concat(color, "Dark-11 "), "hover:bg-".concat(color, "A-4 dark:hover:bg-").concat(color, "Dark-4 hover:text-").concat(color, "A-11 dark:hover:text-").concat(color, "DarkA-11"), "data-[state=open]:bg-".concat(color, "A-5 dark:data-[state=open]:bg-").concat(color, "DarkA-5"), "disabled:bg-slateA-3 disabled:text-slateA-8 disabled:dark:bg-slateDarkA-3 disabled:dark:text-slateDarkA-8", className)}>
55
- {children}
56
- <ChevronDownIcon className="transition-transform duration-300 ease-[cubic-bezier(0.87,_0,_0.13,_1)] group-data-[state=open]:rotate-180" aria-hidden/>
57
- </AccordionPrimitive.Trigger>
58
- </AccordionPrimitive.Header>);
50
+ return (_jsx(AccordionPrimitive.Header, __assign({}, rootProps, { className: cn('flex', className), children: _jsxs(AccordionPrimitive.Trigger, __assign({}, rootProps, { ref: forwardedRef, className: cn("group flex h-[44px] w-[278px] cursor-default items-center justify-between px-[20px] py-[10px] text-base font-normal", "dark:bg-[#111113] text-".concat(color, "A-11 dark:text-").concat(color, "Dark-11 "), "hover:bg-".concat(color, "A-4 dark:hover:bg-").concat(color, "Dark-4 hover:text-").concat(color, "A-11 dark:hover:text-").concat(color, "DarkA-11"), "data-[state=open]:bg-".concat(color, "A-5 dark:data-[state=open]:bg-").concat(color, "DarkA-5"), "disabled:bg-slateA-3 disabled:text-slateA-8 disabled:dark:bg-slateDarkA-3 disabled:dark:text-slateDarkA-8", className), children: [children, _jsx(ChevronDownIcon, { className: "transition-transform duration-300 ease-[cubic-bezier(0.87,_0,_0.13,_1)] group-data-[state=open]:rotate-180", "aria-hidden": true })] })) })));
59
51
  });
60
52
  Trigger.displayName = 'Accordion.Trigger';
61
53
  export var Content = React.forwardRef(function (_a, forwardedRef) {
62
54
  var className = _a.className, children = _a.children, rootProps = __rest(_a, ["className", "children"]);
63
- return (<AccordionPrimitive.Content {...rootProps} ref={forwardedRef} className={cn('max-h-[800px] w-[278px] overflow-hidden border-t border-t-slateA-4 bg-slateA-2 text-[16px] text-slateA-11 data-[state=closed]:animate-slideUp data-[state=open]:animate-slideDown dark:border-t-slateDarkA-4 dark:bg-slateDarkA-2 dark:text-slateDarkA-11', className)}>
64
- <div className="h-auto max-h-[1000px] overflow-y-auto px-[20px] py-[15px] text-base font-normal">
65
- {children}
66
- </div>
67
- </AccordionPrimitive.Content>);
55
+ return (_jsx(AccordionPrimitive.Content, __assign({}, rootProps, { ref: forwardedRef, className: cn('max-h-[800px] w-[278px] overflow-hidden border-t border-t-slateA-4 bg-slateA-2 text-[16px] text-slateA-11 data-[state=closed]:animate-slideUp data-[state=open]:animate-slideDown dark:border-t-slateDarkA-4 dark:bg-slateDarkA-2 dark:text-slateDarkA-11', className), children: _jsx("div", { className: "h-auto max-h-[1000px] overflow-y-auto px-[20px] py-[15px] text-base font-normal", children: children }) })));
68
56
  });
69
57
  Content.displayName = 'Accordion.Content';
70
58
  var Accordion = {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { IAppearance } from 'lib/types';
4
+ import { IAppearance } from '../../../lib/types';
5
5
  export interface AlertDialogActionProps extends VariantProps<typeof alertDialogActionVariants> {
6
6
  appearance?: IAppearance;
7
7
  }
@@ -20,11 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
24
25
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
26
  import { cva } from 'class-variance-authority';
26
- import { cn } from 'lib/utils/utils';
27
- import { appearanceStyle, primaryColorStyle, weightVariants } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { appearanceStyle, primaryColorStyle, weightVariants } from '../../../lib/constants';
28
29
  import { useAlertDialogContext } from './AlertDialogRoot';
29
30
  export var alertDialogActionVariants = cva("inline-flex items-center justify-center px-[15px] outline-none focus:shadow-[0_0_0_2px] font-normal w-fit", {
30
31
  variants: {
@@ -55,8 +56,6 @@ export var AlertDialogAction = forwardRef(function (_a, ref) {
55
56
  var className = _a.className, children = _a.children, weight = _a.weight, props = __rest(_a, ["className", "children", "weight"]);
56
57
  var _b = useAlertDialogContext(), radius = _b.radius, size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'solid' : _d;
57
58
  var buttonClassName = cn(alertDialogActionVariants({ radius: radius, size: size, weight: weight, color: color }), appearanceStyle(appearance, color), className);
58
- return (<AlertDialogPrimitive.Action ref={ref} className={buttonClassName} {...props}>
59
- {children}
60
- </AlertDialogPrimitive.Action>);
59
+ return (_jsx(AlertDialogPrimitive.Action, __assign({ ref: ref, className: buttonClassName }, props, { children: children })));
61
60
  });
62
61
  AlertDialogAction.displayName = 'AlertDialog.Action';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { IAppearance } from 'lib/types';
4
+ import { IAppearance } from '../../../lib/types';
5
5
  export interface AlertDialogCancelProps extends VariantProps<typeof alertDialogCancelVariants> {
6
6
  appearance?: IAppearance;
7
7
  }
@@ -20,11 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
24
25
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
26
  import { cva } from 'class-variance-authority';
26
- import { cn } from 'lib/utils/utils';
27
- import { appearanceStyle, weightVariants } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { appearanceStyle, weightVariants } from '../../../lib/constants';
28
29
  import { useAlertDialogContext } from './AlertDialogRoot';
29
30
  export var alertDialogCancelVariants = cva("inline-flex justify-center items-center outline-none w-fit", {
30
31
  variants: {
@@ -54,8 +55,6 @@ export var AlertDialogCancel = forwardRef(function (_a, ref) {
54
55
  var _b = useAlertDialogContext(), radius = _b.radius, size = _b.size, _c = _b.appearance, appearance = _c === void 0 ? 'solid' : _c;
55
56
  var disabledButtonStyle = "border-none text-slate-11 bg-slate-3 \n active:bg-slate-4 active:border-none hover:cursor-pointer hover:bg-slateA-4\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4";
56
57
  var buttonClassName = cn(alertDialogCancelVariants({ radius: radius, size: size, weight: weight }), appearanceStyle(appearance, 'slate'), disabledButtonStyle, className);
57
- return (<AlertDialogPrimitive.Cancel ref={ref} {...props} className={buttonClassName}>
58
- {children}
59
- </AlertDialogPrimitive.Cancel>);
58
+ return (_jsx(AlertDialogPrimitive.Cancel, __assign({ ref: ref }, props, { className: buttonClassName, children: children })));
60
59
  });
61
60
  AlertDialogCancel.displayName = 'AlertDialog.Cancel';
@@ -20,11 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
24
25
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
26
  import { cva } from 'class-variance-authority';
26
- import { cn } from 'lib/utils/utils';
27
- import { radiusVariants, scalingVariants } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { radiusVariants, scalingVariants } from '../../../lib/constants';
28
29
  import { useAlertDialogContext } from './AlertDialogRoot';
29
30
  export var alertDialogContentVariants = cva("fixed max-h-[85vh] top-[50%] left-[50%] focus:outline-none\n translate-x-[-50%] translate-y-[-50%] data-[state=open]:animate-contentShow bg-white dark:bg-slateDark-1 \n shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px]", {
30
31
  variants: {
@@ -45,11 +46,6 @@ export var alertDialogContentVariants = cva("fixed max-h-[85vh] top-[50%] left-[
45
46
  export var AlertDialogContent = forwardRef(function (_a, ref) {
46
47
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
47
48
  var _b = useAlertDialogContext(), radius = _b.radius, size = _b.size, scaling = _b.scaling;
48
- return (<AlertDialogPrimitive.Portal>
49
- <AlertDialogPrimitive.Overlay className="fixed data-[state=open]:animate-overlayShow inset-0"/>
50
- <AlertDialogPrimitive.Content className={cn(alertDialogContentVariants({ radius: radius, size: size, scaling: scaling }), className)} ref={ref} {...props}>
51
- {children}
52
- </AlertDialogPrimitive.Content>
53
- </AlertDialogPrimitive.Portal>);
49
+ return (_jsxs(AlertDialogPrimitive.Portal, { children: [_jsx(AlertDialogPrimitive.Overlay, { className: "fixed data-[state=open]:animate-overlayShow inset-0" }), _jsx(AlertDialogPrimitive.Content, __assign({ className: cn(alertDialogContentVariants({ radius: radius, size: size, scaling: scaling }), className), ref: ref }, props, { children: children }))] }));
54
50
  });
55
51
  AlertDialogContent.displayName = 'AlertDialog.Content';
@@ -1,3 +1,14 @@
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
+ };
1
12
  var __rest = (this && this.__rest) || function (s, e) {
2
13
  var t = {};
3
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -9,10 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
9
20
  }
10
21
  return t;
11
22
  };
12
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
13
25
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
14
26
  import { cva } from 'class-variance-authority';
15
- import { cn } from 'lib/utils/utils';
27
+ import { cn } from '../../../lib/utils/utils';
16
28
  import { useAlertDialogContext } from './AlertDialogRoot';
17
29
  export var alertDialogDescriptionVariants = cva("text-slate-12 dark:text-slateDark-12 font-normal", {
18
30
  variants: {
@@ -30,8 +42,6 @@ export var alertDialogDescriptionVariants = cva("text-slate-12 dark:text-slateDa
30
42
  export var AlertDialogDescription = forwardRef(function (_a, ref) {
31
43
  var className = _a.className, children = _a.children, contentText = _a.contentText, props = __rest(_a, ["className", "children", "contentText"]);
32
44
  var size = useAlertDialogContext().size;
33
- return (<AlertDialogPrimitive.Description className={cn(alertDialogDescriptionVariants({ size: size }), className)} ref={ref} {...props}>
34
- {contentText !== null && contentText !== void 0 ? contentText : children}
35
- </AlertDialogPrimitive.Description>);
45
+ return (_jsx(AlertDialogPrimitive.Description, __assign({ className: cn(alertDialogDescriptionVariants({ size: size }), className), ref: ref }, props, { children: contentText !== null && contentText !== void 0 ? contentText : children })));
36
46
  });
37
47
  AlertDialogDescription.displayName = 'AlertDialog.Description';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { IAppearance, IColor } from 'lib/types';
4
+ import { IAppearance, IColor } from '../../../lib/types';
5
5
  import { alertDialogContentVariants } from './AlertDialogContent';
6
6
  import { alertDialogTitleVariants } from './AlertDialogTitle';
7
7
  import { alertDialogDescriptionVariants } from './AlertDialogDescription';
@@ -1,3 +1,14 @@
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
+ };
1
12
  var __rest = (this && this.__rest) || function (s, e) {
2
13
  var t = {};
3
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -9,7 +20,8 @@ var __rest = (this && this.__rest) || function (s, e) {
9
20
  }
10
21
  return t;
11
22
  };
12
- import React, { forwardRef, createContext, useContext, useMemo, } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef, createContext, useContext, useMemo, } from 'react';
13
25
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
14
26
  var AlertDialogContext = createContext({
15
27
  size: 'medium',
@@ -29,10 +41,6 @@ export var AlertDialogRoot = forwardRef(function (_a, ref) {
29
41
  scaling: scaling,
30
42
  color: color,
31
43
  }); }, [radius, size, scaling, color]);
32
- return (<AlertDialogContext.Provider value={contextValue}>
33
- <div ref={ref}>
34
- <AlertDialogPrimitive.Root {...props}>{children}</AlertDialogPrimitive.Root>
35
- </div>
36
- </AlertDialogContext.Provider>);
44
+ return (_jsx(AlertDialogContext.Provider, { value: contextValue, children: _jsx("div", { ref: ref, children: _jsx(AlertDialogPrimitive.Root, __assign({}, props, { children: children })) }) }));
37
45
  });
38
46
  AlertDialogRoot.displayName = 'AlertDialog.Root';
@@ -1,3 +1,14 @@
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
+ };
1
12
  var __rest = (this && this.__rest) || function (s, e) {
2
13
  var t = {};
3
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -9,10 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
9
20
  }
10
21
  return t;
11
22
  };
12
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
13
25
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
14
26
  import { cva } from 'class-variance-authority';
15
- import { cn } from 'lib/utils/utils';
27
+ import { cn } from '../../../lib/utils/utils';
16
28
  import { useAlertDialogContext } from './AlertDialogRoot';
17
29
  export var alertDialogTitleVariants = cva("m-0 text-slate-12 dark:text-slateDark-12 font-bold", {
18
30
  variants: {
@@ -30,8 +42,6 @@ export var alertDialogTitleVariants = cva("m-0 text-slate-12 dark:text-slateDark
30
42
  export var AlertDialogTitle = forwardRef(function (_a, ref) {
31
43
  var className = _a.className, children = _a.children, titleText = _a.titleText, props = __rest(_a, ["className", "children", "titleText"]);
32
44
  var size = useAlertDialogContext().size;
33
- return (<AlertDialogPrimitive.Title className={cn(alertDialogTitleVariants({ size: size }), className)} ref={ref} {...props}>
34
- {titleText !== null && titleText !== void 0 ? titleText : children}
35
- </AlertDialogPrimitive.Title>);
45
+ return (_jsx(AlertDialogPrimitive.Title, __assign({ className: cn(alertDialogTitleVariants({ size: size }), className), ref: ref }, props, { children: titleText !== null && titleText !== void 0 ? titleText : children })));
36
46
  });
37
47
  AlertDialogTitle.displayName = 'AlertDialog.Title';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { IAppearance, IColor } from 'lib/types';
4
+ import { IAppearance, IColor } from '../../../lib/types';
5
5
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
6
6
  color?: IColor;
7
7
  appearance?: IAppearance;
@@ -20,11 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
24
25
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
25
26
  import { cva } from 'class-variance-authority';
26
- import { cn } from 'lib/utils/utils';
27
- import { radiusVariants, scalingVariants, weightVariants, primaryColorStyle, appearanceStyle, } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { radiusVariants, scalingVariants, weightVariants, primaryColorStyle, appearanceStyle, } from '../../../lib/constants';
28
29
  var buttonVariants = cva("inline-flex items-center transition-colors focus:outline-none hover:cursor-pointer\n disabled:cursor-not-allowed disabled:bg-slate-3 disabled:text-slate-8", {
29
30
  variants: {
30
31
  radius: __assign({}, radiusVariants['base']),
@@ -49,8 +50,6 @@ var buttonVariants = cva("inline-flex items-center transition-colors focus:outli
49
50
  export var AlertDialogTrigger = forwardRef(function (_a, ref) {
50
51
  var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, weight = _a.weight, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "weight", "color", "appearance"]);
51
52
  var buttonClassName = cn(buttonVariants({ radius: radius, scaling: scaling, size: size, weight: weight, color: color }), appearanceStyle(appearance, color), className);
52
- return (<AlertDialogPrimitive.Trigger asChild ref={ref} className={buttonClassName} {...props}>
53
- {children}
54
- </AlertDialogPrimitive.Trigger>);
53
+ return (_jsx(AlertDialogPrimitive.Trigger, __assign({ asChild: true, ref: ref, className: buttonClassName }, props, { children: children })));
55
54
  });
56
55
  AlertDialogTrigger.displayName = 'AlertDialog.Trigger';
@@ -20,11 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
24
25
  import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
25
26
  import { cva } from 'class-variance-authority';
26
- import { cn } from 'lib/utils/utils';
27
- import { scalingVariants } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { scalingVariants } from '../../../lib/constants';
28
29
  export var aspectRatioVariants = cva('', {
29
30
  variants: {
30
31
  scaling: __assign({}, scalingVariants),
@@ -35,9 +36,7 @@ export var aspectRatioVariants = cva('', {
35
36
  });
36
37
  var AspectRatio = forwardRef(function (_a, ref) {
37
38
  var children = _a.children, className = _a.className, _b = _a.ratio, ratio = _b === void 0 ? 16 / 9 : _b, scaling = _a.scaling, props = __rest(_a, ["children", "className", "ratio", "scaling"]);
38
- return (<AspectRatioPrimitive.Root ratio={ratio} ref={ref} {...props} className={cn(aspectRatioVariants({ scaling: scaling }), className)}>
39
- {children}
40
- </AspectRatioPrimitive.Root>);
39
+ return (_jsx(AspectRatioPrimitive.Root, __assign({ ratio: ratio, ref: ref }, props, { className: cn(aspectRatioVariants({ scaling: scaling }), className), children: children })));
41
40
  });
42
41
  AspectRatio.displayName = 'AspectRatio';
43
42
  export default AspectRatio;
@@ -20,11 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
24
25
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
25
26
  import { cva } from 'class-variance-authority';
26
- import { cn } from 'lib/utils/utils';
27
- import { appearanceStyle, primaryColorStyle, radiusVariants, scalingVariants } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { appearanceStyle, primaryColorStyle, radiusVariants, scalingVariants } from '../../../lib/constants';
28
29
  var AvatarVariants = cva('font-medium', {
29
30
  variants: {
30
31
  radius: __assign({}, radiusVariants['base']),
@@ -51,12 +52,7 @@ var AvatarVariants = cva('font-medium', {
51
52
  var Avatar = forwardRef(function (_a, ref) {
52
53
  var className = _a.className, fallbackClassName = _a.fallbackClassName, radius = _a.radius, scaling = _a.scaling, size = _a.size, fallbackText = _a.fallbackText, imagePath = _a.imagePath, alt = _a.alt, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, ariaLabel = _a.ariaLabel, ariaLabelledby = _a.ariaLabelledby, title = _a.title, _d = _a.delayMs, delayMs = _d === void 0 ? 300 : _d, props = __rest(_a, ["className", "fallbackClassName", "radius", "scaling", "size", "fallbackText", "imagePath", "alt", "appearance", "color", "ariaLabel", "ariaLabelledby", "title", "delayMs"]);
53
54
  var imgAltText = alt || ariaLabel || fallbackText || 'Avatar Image';
54
- return (<AvatarPrimitive.Root className={cn("inline-flex select-none items-center justify-center overflow-hidden align-middle", AvatarVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, false), className)} {...props} ref={ref} role="img" aria-label={ariaLabel || imgAltText} aria-labelledby={ariaLabelledby} title={title || imgAltText} tabIndex={0}>
55
- <AvatarPrimitive.Image className="h-full w-full border-none object-cover" src={imagePath} alt={imgAltText} title={title || imgAltText}/>
56
- <AvatarPrimitive.Fallback className={cn("leading-1 flex h-full w-full items-center justify-center", className)} delayMs={delayMs} aria-hidden="true">
57
- {fallbackText}
58
- </AvatarPrimitive.Fallback>
59
- </AvatarPrimitive.Root>);
55
+ return (_jsxs(AvatarPrimitive.Root, __assign({ className: cn("inline-flex select-none items-center justify-center overflow-hidden align-middle", AvatarVariants({ radius: radius, scaling: scaling, size: size, color: color }), appearanceStyle(appearance, color, false), className) }, props, { ref: ref, role: "img", "aria-label": ariaLabel || imgAltText, "aria-labelledby": ariaLabelledby, title: title || imgAltText, tabIndex: 0, children: [_jsx(AvatarPrimitive.Image, { className: "h-full w-full border-none object-cover", src: imagePath, alt: imgAltText, title: title || imgAltText }), _jsx(AvatarPrimitive.Fallback, { className: cn("leading-1 flex h-full w-full items-center justify-center", className), delayMs: delayMs, "aria-hidden": "true", children: fallbackText })] })));
60
56
  });
61
57
  Avatar.displayName = 'Avatar';
62
58
  export default Avatar;
@@ -1,6 +1,6 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { IColor, IAppearance, ISize, IWeight } from 'lib/types';
3
+ import { IColor, IAppearance, ISize, IWeight } from '../../../lib/types';
4
4
  export interface BadgeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof BadgeVariants> {
5
5
  color?: IColor;
6
6
  appearance?: Exclude<IAppearance, 'classic' | 'ghost'>;
@@ -20,10 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
- import { cn } from 'lib/utils/utils';
26
- import { appearanceStyle, primaryColorStyle, radiusVariants, scalingVariants, weightVariants, } from 'lib/constants';
26
+ import { cn } from '../../../lib/utils/utils';
27
+ import { appearanceStyle, primaryColorStyle, radiusVariants, scalingVariants, weightVariants, } from '../../../lib/constants';
27
28
  var BadgeVariants = cva('inline-flex items-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 w-fit', {
28
29
  variants: {
29
30
  radius: __assign({}, radiusVariants['base']),
@@ -47,9 +48,7 @@ var BadgeVariants = cva('inline-flex items-center transition-colors focus:outlin
47
48
  var Badge = forwardRef(function (_a, ref) {
48
49
  var className = _a.className, children = _a.children, radius = _a.radius, scaling = _a.scaling, weight = _a.weight, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'solid' : _c, props = __rest(_a, ["className", "children", "radius", "scaling", "weight", "size", "color", "appearance"]);
49
50
  var badgeClassName = cn(BadgeVariants({ radius: radius, scaling: scaling, weight: weight, size: size, color: color }), appearanceStyle(appearance, color, false), className);
50
- return (<div ref={ref} className={badgeClassName} {...props}>
51
- {children}
52
- </div>);
51
+ return (_jsx("div", __assign({ ref: ref, className: badgeClassName }, props, { children: children })));
53
52
  });
54
53
  Badge.displayName = 'Badge';
55
54
  export default Badge;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { VariantProps } from 'class-variance-authority';
3
- import { IChartDatasets, IChartLegend, IChartTitle } from 'lib/types';
2
+ import { IChartDatasets, IChartLegend, IChartTitle } from '../../../lib/types';
4
3
  export interface BorderRadius {
5
4
  topLeft: number;
6
5
  topRight: number;
@@ -32,7 +31,7 @@ declare const barChartVariants: (props?: ({
32
31
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
33
32
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
34
33
  declare const BarChart: {
35
- ({ className, title, datasets, labels, scaling, legend, width, height, indexAxis, appearance, isColorMixed, ...props }: BarChartProps): import("react").JSX.Element;
34
+ ({ className, title, datasets, labels, scaling, legend, width, height, indexAxis, appearance, isColorMixed, ...props }: BarChartProps): import("react/jsx-runtime").JSX.Element;
36
35
  displayName: string;
37
36
  };
38
37
  export default BarChart;
@@ -20,13 +20,14 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
23
24
  import { Bar } from 'react-chartjs-2';
24
25
  import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Tooltip, Legend, } from 'chart.js/auto';
25
- import { scalingVariants } from 'lib/constants';
26
+ import { scalingVariants } from '../../../lib/constants';
26
27
  import { cva } from 'class-variance-authority';
27
- import { cn } from 'lib/utils/utils';
28
- import { chartAlphaColorList, chartColorList } from 'lib/color/constants';
29
- import { useDarkMode } from 'lib/utils/useDarkMode';
28
+ import { cn } from '../../../lib/utils/utils';
29
+ import { chartAlphaColorList, chartColorList } from '../../../lib/color/constants';
30
+ import { useDarkMode } from '../../../lib/utils/useDarkMode';
30
31
  ChartJS.register(CategoryScale, LinearScale, BarElement, Tooltip, Legend);
31
32
  var barChartVariants = cva('', {
32
33
  variants: {
@@ -49,14 +50,14 @@ var BarChart = function (_a) {
49
50
  }
50
51
  }
51
52
  });
52
- return (<Bar data={{ labels: labels, datasets: datasets }} options={{
53
+ return (_jsx(Bar, __assign({ data: { labels: labels, datasets: datasets }, options: {
53
54
  plugins: {
54
55
  title: title,
55
56
  legend: legend,
56
57
  },
57
58
  indexAxis: indexAxis,
58
59
  scales: __assign({}, defaultScales.linescale),
59
- }} className={cn(barChartVariants({ scaling: scaling }), className)} width={width} height={height} {...props}/>);
60
+ }, className: cn(barChartVariants({ scaling: scaling }), className), width: width, height: height }, props)));
60
61
  };
61
62
  BarChart.displayName = 'BarChart';
62
63
  export default BarChart;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  import { VariantProps } from 'class-variance-authority';
3
- import { IChartDataLabels, IChartDatasets, IChartLegend, IChartTitle } from 'lib/types';
2
+ import { IChartDataLabels, IChartDatasets, IChartLegend, IChartTitle } from '../../../lib/types';
4
3
  type IBubbleChartDataset = IChartDatasets & {
5
4
  data: {
6
5
  x: number;
@@ -23,7 +22,7 @@ declare const bubbleChartVariants: (props?: ({
23
22
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
24
23
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
25
24
  export declare const BubbleChart: {
26
- ({ className, title, legend, datalabels, datasets, scaling, width, height, appearance, isColorMixed, ...props }: BubbleChartProps): React.JSX.Element;
25
+ ({ className, title, legend, datalabels, datasets, scaling, width, height, appearance, isColorMixed, ...props }: BubbleChartProps): import("react/jsx-runtime").JSX.Element;
27
26
  displayName: string;
28
27
  };
29
28
  export default BubbleChart;