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

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 +281 -78
  2. package/dist/lib/Typography/Header/index.d.ts +1 -1
  3. package/dist/lib/Typography/Header/{index.js → index.jsx} +7 -4
  4. package/dist/lib/Typography/Text/index.d.ts +1 -1
  5. package/dist/lib/Typography/Text/{index.js → index.jsx} +8 -5
  6. package/dist/lib/components/Accordion/index.d.ts +1 -1
  7. package/dist/lib/components/Accordion/{index.js → index.jsx} +19 -7
  8. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +1 -1
  9. package/dist/lib/components/AlertDialog/{AlertDialogAction.js → AlertDialogAction.jsx} +6 -5
  10. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +1 -1
  11. package/dist/lib/components/AlertDialog/{AlertDialogCancel.js → AlertDialogCancel.jsx} +6 -5
  12. package/dist/lib/components/AlertDialog/{AlertDialogContent.js → AlertDialogContent.jsx} +9 -5
  13. package/dist/lib/components/AlertDialog/{AlertDialogDescription.js → AlertDialogDescription.jsx} +5 -15
  14. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +1 -1
  15. package/dist/lib/components/AlertDialog/{AlertDialogRoot.js → AlertDialogRoot.jsx} +6 -14
  16. package/dist/lib/components/AlertDialog/{AlertDialogTitle.js → AlertDialogTitle.jsx} +5 -15
  17. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +1 -1
  18. package/dist/lib/components/AlertDialog/{AlertDialogTrigger.js → AlertDialogTrigger.jsx} +6 -5
  19. package/dist/lib/components/AspectRatio/{index.js → index.jsx} +6 -5
  20. package/dist/lib/components/Avatar/{index.js → index.jsx} +9 -5
  21. package/dist/lib/components/Badge/index.d.ts +1 -1
  22. package/dist/lib/components/Badge/{index.js → index.jsx} +6 -5
  23. package/dist/lib/components/BarChart/index.d.ts +3 -2
  24. package/dist/lib/components/BarChart/{index.js → index.jsx} +6 -7
  25. package/dist/lib/components/BubbleChart/index.d.ts +3 -2
  26. package/dist/lib/components/BubbleChart/{index.js → index.jsx} +7 -7
  27. package/dist/lib/components/Button/index.d.ts +1 -1
  28. package/dist/lib/components/Button/{index.js → index.jsx} +6 -5
  29. package/dist/lib/components/Callout/{CalloutIcon.js → CalloutIcon.jsx} +10 -5
  30. package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
  31. package/dist/lib/components/Callout/{CalloutRoot.js → CalloutRoot.jsx} +8 -5
  32. package/dist/lib/components/Callout/{CalloutText.js → CalloutText.jsx} +5 -15
  33. package/dist/lib/components/Card/index.d.ts +1 -1
  34. package/dist/lib/components/Card/{index.js → index.jsx} +6 -5
  35. package/dist/lib/components/Checkbox/index.d.ts +1 -1
  36. package/dist/lib/components/Checkbox/{index.js → index.jsx} +14 -6
  37. package/dist/lib/components/CheckboxCard/index.d.ts +2 -2
  38. package/dist/lib/components/CheckboxCard/{index.js → index.jsx} +9 -7
  39. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +1 -1
  40. package/dist/lib/components/CheckboxGroup/{CheckboxGroupItem.js → CheckboxGroupItem.jsx} +7 -15
  41. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +2 -2
  42. package/dist/lib/components/CheckboxGroup/{CheckboxGroupRoot.js → CheckboxGroupRoot.jsx} +6 -3
  43. package/dist/lib/components/CheckboxGroup/index.d.ts +1 -1
  44. package/dist/lib/components/ContextMenu/{ContextMenuCheckboxItem.js → ContextMenuCheckboxItem.jsx} +9 -16
  45. package/dist/lib/components/ContextMenu/{ContextMenuContent.js → ContextMenuContent.jsx} +8 -5
  46. package/dist/lib/components/ContextMenu/{ContextMenuGroup.js → ContextMenuGroup.jsx} +4 -14
  47. package/dist/lib/components/ContextMenu/{ContextMenuItem.js → ContextMenuItem.jsx} +7 -5
  48. package/dist/lib/components/ContextMenu/{ContextMenuItemIndicator.js → ContextMenuItemIndicator.jsx} +6 -5
  49. package/dist/lib/components/ContextMenu/{ContextMenuLabel.js → ContextMenuLabel.jsx} +6 -5
  50. package/dist/lib/components/ContextMenu/{ContextMenuRadioGroup.js → ContextMenuRadioGroup.jsx} +6 -14
  51. package/dist/lib/components/ContextMenu/{ContextMenuRadioItem.js → ContextMenuRadioItem.jsx} +9 -16
  52. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +1 -1
  53. package/dist/lib/components/ContextMenu/{ContextMenuRoot.js → ContextMenuRoot.jsx} +6 -14
  54. package/dist/lib/components/ContextMenu/{ContextMenuSeparator.js → ContextMenuSeparator.jsx} +5 -15
  55. package/dist/lib/components/ContextMenu/{ContextMenuSubContent.js → ContextMenuSubContent.jsx} +12 -9
  56. package/dist/lib/components/ContextMenu/{ContextMenuSubTrigger.js → ContextMenuSubTrigger.jsx} +11 -16
  57. package/dist/lib/components/ContextMenu/{ContextMenuTrigger.js → ContextMenuTrigger.jsx} +5 -15
  58. package/dist/lib/components/DataList/{DataListItem.js → DataListItem.jsx} +6 -5
  59. package/dist/lib/components/DataList/{DataListLabel.js → DataListLabel.jsx} +6 -5
  60. package/dist/lib/components/DataList/{DataListRoot.js → DataListRoot.jsx} +7 -15
  61. package/dist/lib/components/DataList/{DataListValue.js → DataListValue.jsx} +6 -5
  62. package/dist/lib/components/Dialog/{DialogAction.js → DialogAction.jsx} +6 -16
  63. package/dist/lib/components/Dialog/{DialogCancel.js → DialogCancel.jsx} +5 -15
  64. package/dist/lib/components/Dialog/{DialogContent.js → DialogContent.jsx} +6 -5
  65. package/dist/lib/components/Dialog/{DialogDescription.js → DialogDescription.jsx} +5 -15
  66. package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -1
  67. package/dist/lib/components/Dialog/{DialogRoot.js → DialogRoot.jsx} +6 -14
  68. package/dist/lib/components/Dialog/{DialogSlot.js → DialogSlot.jsx} +5 -15
  69. package/dist/lib/components/Dialog/{DialogTitle.js → DialogTitle.jsx} +5 -15
  70. package/dist/lib/components/Dialog/{DialogTrigger.js → DialogTrigger.jsx} +4 -14
  71. package/dist/lib/components/Dialog/index.d.ts +1 -1
  72. package/dist/lib/components/DoughnutChart/index.d.ts +3 -2
  73. package/dist/lib/components/DoughnutChart/{index.js → index.jsx} +6 -6
  74. package/dist/lib/components/DropdownMenu/{DropdonMenuRadioGroup.js → DropdonMenuRadioGroup.jsx} +3 -13
  75. package/dist/lib/components/DropdownMenu/{DropdonMenuSubContent.js → DropdonMenuSubContent.jsx} +12 -9
  76. package/dist/lib/components/DropdownMenu/{DropdownMenuCheckboxItem.js → DropdownMenuCheckboxItem.jsx} +9 -16
  77. package/dist/lib/components/DropdownMenu/{DropdownMenuContent.js → DropdownMenuContent.jsx} +8 -5
  78. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  79. package/dist/lib/components/DropdownMenu/{DropdownMenuItem.js → DropdownMenuItem.jsx} +7 -5
  80. package/dist/lib/components/DropdownMenu/{DropdownMenuItemIndicator.js → DropdownMenuItemIndicator.jsx} +6 -5
  81. package/dist/lib/components/DropdownMenu/{DropdownMenuLable.js → DropdownMenuLable.jsx} +5 -15
  82. package/dist/lib/components/DropdownMenu/{DropdownMenuRadioItem.js → DropdownMenuRadioItem.jsx} +9 -16
  83. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +2 -2
  84. package/dist/lib/components/DropdownMenu/{DropdownMenuRoot.js → DropdownMenuRoot.jsx} +4 -14
  85. package/dist/lib/components/DropdownMenu/{DropdownMenuSeparator.js → DropdownMenuSeparator.jsx} +3 -15
  86. package/dist/lib/components/DropdownMenu/{DropdownMenuSub.js → DropdownMenuSub.jsx} +2 -14
  87. package/dist/lib/components/DropdownMenu/{DropdownMenuSubTrigger.js → DropdownMenuSubTrigger.jsx} +9 -16
  88. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  89. package/dist/lib/components/DropdownMenu/{DropdownMenuTrigger.js → DropdownMenuTrigger.jsx} +5 -15
  90. package/dist/lib/components/DropdownMenu/index.d.ts +1 -1
  91. package/dist/lib/components/HoverCard/{HoverCardContent.js → HoverCardContent.jsx} +6 -5
  92. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +1 -1
  93. package/dist/lib/components/HoverCard/{HoverCardRoot.js → HoverCardRoot.jsx} +6 -14
  94. package/dist/lib/components/HoverCard/{HoverCardTrigger.js → HoverCardTrigger.jsx} +4 -14
  95. package/dist/lib/components/HoverCard/index.d.ts +1 -1
  96. package/dist/lib/components/IconButton/index.d.ts +1 -1
  97. package/dist/lib/components/IconButton/{index.js → index.jsx} +5 -4
  98. package/dist/lib/components/Inset/{index.js → index.jsx} +8 -5
  99. package/dist/lib/components/Label/index.d.ts +1 -1
  100. package/dist/lib/components/Label/{index.js → index.jsx} +5 -4
  101. package/dist/lib/components/LineChart/index.d.ts +3 -2
  102. package/dist/lib/components/LineChart/{index.js → index.jsx} +6 -7
  103. package/dist/lib/components/Menubar/{MenubarCheckboxItem.js → MenubarCheckboxItem.jsx} +9 -16
  104. package/dist/lib/components/Menubar/{MenubarContent.js → MenubarContent.jsx} +12 -9
  105. package/dist/lib/components/Menubar/{MenubarItem.js → MenubarItem.jsx} +7 -5
  106. package/dist/lib/components/Menubar/{MenubarItemIndicator.js → MenubarItemIndicator.jsx} +6 -5
  107. package/dist/lib/components/Menubar/{MenubarMenu.js → MenubarMenu.jsx} +2 -14
  108. package/dist/lib/components/Menubar/{MenubarRadioGroup.js → MenubarRadioGroup.jsx} +6 -14
  109. package/dist/lib/components/Menubar/{MenubarRadioItem.js → MenubarRadioItem.jsx} +9 -16
  110. package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
  111. package/dist/lib/components/Menubar/{MenubarRoot.js → MenubarRoot.jsx} +8 -5
  112. package/dist/lib/components/Menubar/{MenubarSeparator.js → MenubarSeparator.jsx} +5 -15
  113. package/dist/lib/components/Menubar/{MenubarSub.js → MenubarSub.jsx} +2 -14
  114. package/dist/lib/components/Menubar/{MenubarSubContent.js → MenubarSubContent.jsx} +7 -6
  115. package/dist/lib/components/Menubar/{MenubarSubTrigger.js → MenubarSubTrigger.jsx} +9 -16
  116. package/dist/lib/components/Menubar/{MenubarTrigger.js → MenubarTrigger.jsx} +6 -5
  117. package/dist/lib/components/NavigationMenu/{NavigationMenuContent.js → NavigationMenuContent.jsx} +6 -5
  118. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +22 -0
  119. package/dist/lib/components/NavigationMenu/{NavigationMenuItem.js → NavigationMenuItem.jsx} +4 -14
  120. package/dist/lib/components/NavigationMenu/{NavigationMenuLink.js → NavigationMenuLink.jsx} +6 -5
  121. package/dist/lib/components/NavigationMenu/{NavigationMenuList.js → NavigationMenuList.jsx} +7 -5
  122. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +1 -1
  123. package/dist/lib/components/NavigationMenu/{NavigationMenuRoot.js → NavigationMenuRoot.jsx} +7 -15
  124. package/dist/lib/components/NavigationMenu/{NavigationMenuTrigger.js → NavigationMenuTrigger.jsx} +7 -5
  125. package/dist/lib/components/NavigationMenu/{NavigationMenuViewport.js → NavigationMenuViewport.jsx} +6 -5
  126. package/dist/lib/components/PieChart/index.d.ts +3 -2
  127. package/dist/lib/components/PieChart/{index.js → index.jsx} +6 -6
  128. package/dist/lib/components/Popover/{PopoverClose.js → PopoverClose.jsx} +5 -15
  129. package/dist/lib/components/Popover/{PopoverContent.js → PopoverContent.jsx} +6 -5
  130. package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -1
  131. package/dist/lib/components/Popover/{PopoverRoot.js → PopoverRoot.jsx} +6 -14
  132. package/dist/lib/components/Popover/{PopoverTrigger.js → PopoverTrigger.jsx} +4 -14
  133. package/dist/lib/components/Popover/index.d.ts +1 -1
  134. package/dist/lib/components/Progress/{index.js → index.jsx} +6 -5
  135. package/dist/lib/components/RadarChart/index.d.ts +3 -2
  136. package/dist/lib/components/RadarChart/{index.js → index.jsx} +7 -7
  137. package/dist/lib/components/Radio/index.d.ts +1 -1
  138. package/dist/lib/components/Radio/{index.js → index.jsx} +10 -15
  139. package/dist/lib/components/RadioCards/{RadioCardsItem.js → RadioCardsItem.jsx} +5 -15
  140. package/dist/lib/components/RadioCards/{RadioCardsRoot.js → RadioCardsRoot.jsx} +10 -5
  141. package/dist/lib/components/RadioGroup/{RadioGroupItem.js → RadioGroupItem.jsx} +5 -15
  142. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
  143. package/dist/lib/components/RadioGroup/{RadioGroupRoot.js → RadioGroupRoot.jsx} +9 -15
  144. package/dist/lib/components/ScrollArea/{index.js → index.jsx} +6 -14
  145. package/dist/lib/components/SegmentedControl/{SegmentedControlItem.js → SegmentedControlItem.jsx} +5 -15
  146. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
  147. package/dist/lib/components/SegmentedControl/{SegmentedControlRoot.js → SegmentedControlRoot.jsx} +7 -4
  148. package/dist/lib/components/SegmentedControl/index.d.ts +1 -1
  149. package/dist/lib/components/Select/index.d.ts +1 -1
  150. package/dist/lib/components/Select/{index.js → index.jsx} +27 -10
  151. package/dist/lib/components/Separator/{index.js → index.jsx} +7 -4
  152. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  153. package/dist/lib/components/Skeleton/{index.js → index.jsx} +7 -4
  154. package/dist/lib/components/Slider/index.d.ts +1 -1
  155. package/dist/lib/components/Slider/{index.js → index.jsx} +5 -4
  156. package/dist/lib/components/Spinner/index.d.ts +1 -1
  157. package/dist/lib/components/Spinner/{index.js → index.jsx} +7 -4
  158. package/dist/lib/components/TabNav/{index.js → index.jsx} +9 -15
  159. package/dist/lib/components/Table/index.d.ts +1 -1
  160. package/dist/lib/components/Table/{index.js → index.jsx} +25 -10
  161. package/dist/lib/components/Tabs/{index.js → index.jsx} +16 -7
  162. package/dist/lib/components/TextArea/index.d.ts +1 -1
  163. package/dist/lib/components/TextArea/{index.js → index.jsx} +5 -4
  164. package/dist/lib/components/TextField/index.d.ts +1 -1
  165. package/dist/lib/components/TextField/{index.js → index.jsx} +10 -5
  166. package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
  167. package/dist/lib/components/Toast/{ToastActionButton.js → ToastActionButton.jsx} +7 -6
  168. package/dist/lib/components/Toast/ToastDescription.d.ts +1 -1
  169. package/dist/lib/components/Toast/{ToastDescription.js → ToastDescription.jsx} +7 -15
  170. package/dist/lib/components/Toast/{ToastRoot.js → ToastRoot.jsx} +11 -5
  171. package/dist/lib/components/Toast/ToastTitle.d.ts +1 -1
  172. package/dist/lib/components/Toast/{ToastTitle.js → ToastTitle.jsx} +5 -15
  173. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  174. package/dist/lib/components/Toggle/{ToggleWithText.js → ToggleWithText.jsx} +9 -7
  175. package/dist/lib/components/Toggle/index.d.ts +1 -1
  176. package/dist/lib/components/Toggle/{index.js → index.jsx} +6 -5
  177. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +1 -1
  178. package/dist/lib/components/ToggleGroup/{ToggleGroupItem.js → ToggleGroupItem.jsx} +6 -16
  179. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +1 -1
  180. package/dist/lib/components/ToggleGroup/{ToggleGroupRoot.js → ToggleGroupRoot.jsx} +10 -5
  181. package/dist/lib/components/ToggleSwitch/{index.js → index.jsx} +9 -5
  182. package/dist/lib/components/Tooltip/index.d.ts +1 -1
  183. package/dist/lib/components/Tooltip/{index.js → index.jsx} +13 -4
  184. package/dist/lib/constants.js +2 -2
  185. package/dist/lib/index.d.ts +2 -2
  186. package/dist/lib/index.js +2 -2
  187. package/dist/lib/utils/useDarkMode.js +1 -1
  188. package/package.json +2 -4
  189. package/dist/globals.css +0 -4
  190. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
  191. package/dist/tailwind.config.d.ts +0 -3
  192. package/dist/tailwind.config.js +0 -141
  193. /package/dist/lib/components/AlertDialog/{index.js → index.jsx} +0 -0
  194. /package/dist/lib/components/Callout/{index.js → index.jsx} +0 -0
  195. /package/dist/lib/components/CheckboxGroup/{index.js → index.jsx} +0 -0
  196. /package/dist/lib/components/ContextMenu/{index.js → index.jsx} +0 -0
  197. /package/dist/lib/components/DataList/{index.js → index.jsx} +0 -0
  198. /package/dist/lib/components/Dialog/{index.js → index.jsx} +0 -0
  199. /package/dist/lib/components/DropdownMenu/{index.js → index.jsx} +0 -0
  200. /package/dist/lib/components/HoverCard/{index.js → index.jsx} +0 -0
  201. /package/dist/lib/components/Menubar/{index.js → index.jsx} +0 -0
  202. /package/dist/lib/components/NavigationMenu/{index.js → index.jsx} +0 -0
  203. /package/dist/lib/components/Popover/{index.js → index.jsx} +0 -0
  204. /package/dist/lib/components/RadioCards/{index.js → index.jsx} +0 -0
  205. /package/dist/lib/components/RadioGroup/{index.js → index.jsx} +0 -0
  206. /package/dist/lib/components/SegmentedControl/{index.js → index.jsx} +0 -0
  207. /package/dist/lib/components/Toast/{index.js → index.jsx} +0 -0
  208. /package/dist/lib/components/ToggleGroup/{index.js → index.jsx} +0 -0
@@ -20,12 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
23
+ import React, { forwardRef } from 'react';
25
24
  import { DataList as DataListTheme } from '@radix-ui/themes';
26
25
  import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- import { weightVariants } from '../../../lib/constants';
26
+ import { cn } from 'lib/utils/utils';
27
+ import { weightVariants } from 'lib/constants';
29
28
  import { useDataListContext } from './DataListRoot';
30
29
  export var dataListLabelVariants = cva('text-slateA-11 dark:text-slateDarkA-11 w-[120px] mb-1', {
31
30
  variants: {
@@ -44,6 +43,8 @@ export var dataListLabelVariants = cva('text-slateA-11 dark:text-slateDarkA-11 w
44
43
  export var DataListLabel = forwardRef(function (_a, ref) {
45
44
  var children = _a.children, className = _a.className, weight = _a.weight, color = _a.color, props = __rest(_a, ["children", "className", "weight", "color"]);
46
45
  var size = useDataListContext().size;
47
- return (_jsx(DataListTheme.Label, __assign({ ref: ref }, props, { children: _jsx("p", { className: cn(dataListLabelVariants({ weight: weight, size: size }), className), children: children }) })));
46
+ return (<DataListTheme.Label ref={ref} {...props}>
47
+ <p className={cn(dataListLabelVariants({ weight: weight, size: size }), className)}>{children}</p>
48
+ </DataListTheme.Label>);
48
49
  });
49
50
  DataListLabel.displayName = 'DataList.Label';
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,11 +9,10 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { createContext, forwardRef, useContext, useMemo, } from 'react';
12
+ import React, { createContext, forwardRef, useContext, useMemo, } from 'react';
25
13
  import { DataList as DataListTheme } from '@radix-ui/themes';
26
14
  import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
15
+ import { cn } from 'lib/utils/utils';
28
16
  export var dataListVariants = cva('flex flex-col', {
29
17
  variants: {
30
18
  size: {
@@ -48,7 +36,11 @@ export var useDataListContext = function () {
48
36
  export var DataListRoot = forwardRef(function (_a, ref) {
49
37
  var children = _a.children, className = _a.className, size = _a.size, scaling = _a.scaling, color = _a.color, props = __rest(_a, ["children", "className", "size", "scaling", "color"]);
50
38
  var contextValue = useMemo(function () { return ({ size: size, scaling: scaling, color: color }); }, [size, scaling, color]);
51
- return (_jsx(DataListContext.Provider, { value: contextValue, children: _jsx(DataListTheme.Root, __assign({ ref: ref }, props, { className: cn(dataListVariants({ size: size }), className), children: children })) }));
39
+ return (<DataListContext.Provider value={contextValue}>
40
+ <DataListTheme.Root ref={ref} {...props} className={cn(dataListVariants({ size: size }), className)}>
41
+ {children}
42
+ </DataListTheme.Root>
43
+ </DataListContext.Provider>);
52
44
  });
53
45
  DataListRoot.displayName = 'DataList.Root';
54
46
  export default DataListRoot;
@@ -20,12 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
23
+ import React, { forwardRef } from 'react';
25
24
  import { DataList as DataListTheme } from '@radix-ui/themes';
26
- import { textColorStyle, weightVariants } from '../../../lib/constants';
25
+ import { textColorStyle, weightVariants } from 'lib/constants';
27
26
  import { cva } from 'class-variance-authority';
28
- import { cn } from '../../../lib/utils/utils';
27
+ import { cn } from 'lib/utils/utils';
29
28
  import { useDataListContext } from './DataListRoot';
30
29
  export var dataListValueVariants = cva('text-slate-12 dark:text-slateDark-12 w-[200px]', {
31
30
  variants: {
@@ -46,6 +45,8 @@ export var dataListValueVariants = cva('text-slate-12 dark:text-slateDark-12 w-[
46
45
  export var DataListValue = forwardRef(function (_a, ref) {
47
46
  var children = _a.children, className = _a.className, weight = _a.weight, props = __rest(_a, ["children", "className", "weight"]);
48
47
  var _b = useDataListContext(), size = _b.size, color = _b.color;
49
- return (_jsx(DataListTheme.Value, __assign({ ref: ref, className: cn(dataListValueVariants({ weight: weight, size: size, color: color }), className) }, props, { children: children })));
48
+ return (<DataListTheme.Value ref={ref} className={cn(dataListValueVariants({ weight: weight, size: size, color: color }), className)} {...props}>
49
+ {children}
50
+ </DataListTheme.Value>);
50
51
  });
51
52
  DataListValue.displayName = 'DataList.Value';
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,13 +9,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef, useContext } from 'react';
12
+ import React, { forwardRef, useContext } from 'react';
25
13
  import { Dialog as DialogTheme } from '@radix-ui/themes';
26
14
  import { cva } from 'class-variance-authority';
27
- import { primaryColorStyle } from '../../../lib/constants';
15
+ import { primaryColorStyle } from 'lib/constants';
28
16
  import { DialogContext } from './DialogRoot';
29
- import { cn } from '../../../lib/utils/utils';
17
+ import { cn } from 'lib/utils/utils';
30
18
  export var dialogActionVariants = cva('rounded-md inline-flex font-medium items-center justify-center px-[15px] hover:cursor-pointer', {
31
19
  variants: {
32
20
  radius: {
@@ -54,6 +42,8 @@ export var DialogAction = forwardRef(function (_a, ref) {
54
42
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
55
43
  var _b = useContext(DialogContext), radius = _b.radius, size = _b.size, color = _b.color;
56
44
  var buttonClassName = cn(dialogActionVariants({ radius: radius, size: size, color: color }), className);
57
- return (_jsx(DialogTheme.Close, __assign({ ref: ref, className: buttonClassName }, props, { children: children })));
45
+ return (<DialogTheme.Close ref={ref} className={buttonClassName} {...props}>
46
+ {children}
47
+ </DialogTheme.Close>);
58
48
  });
59
49
  DialogAction.displayName = 'Dialog.Action';
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,12 +9,11 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef, useContext } from 'react';
12
+ import React, { forwardRef, useContext } from 'react';
25
13
  import { Dialog as DialogTheme } from '@radix-ui/themes';
26
14
  import { cva } from 'class-variance-authority';
27
15
  import { DialogContext } from './DialogRoot';
28
- import { cn } from '../../../lib/utils/utils';
16
+ import { cn } from 'lib/utils/utils';
29
17
  export var dialogCancelVariants = cva("rounded-md font-medium inline-flex justify-center items-center text-slate-11 bg-slate-3 outline-none border-none\n dark:text-slateDark-11 dark:bg-slateDark-3 dark:hover:bg-slateDarkA-4\n active:border-none hover:cursor-pointer hover:bg-slateA-4", {
30
18
  variants: {
31
19
  radius: {
@@ -50,6 +38,8 @@ export var dialogCancelVariants = cva("rounded-md font-medium inline-flex justif
50
38
  export var DialogCancel = forwardRef(function (_a, ref) {
51
39
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
52
40
  var _b = useContext(DialogContext), radius = _b.radius, size = _b.size;
53
- return (_jsx(DialogTheme.Close, __assign({ ref: ref, className: cn(dialogCancelVariants({ radius: radius, size: size }), className) }, props, { children: children })));
41
+ return (<DialogTheme.Close ref={ref} className={cn(dialogCancelVariants({ radius: radius, size: size }), className)} {...props}>
42
+ {children}
43
+ </DialogTheme.Close>);
54
44
  });
55
45
  DialogCancel.displayName = 'Dialog.Cancel';
@@ -20,13 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef, useContext } from 'react';
23
+ import React, { forwardRef, useContext } from 'react';
25
24
  import { cva } from 'class-variance-authority';
26
25
  import { Dialog as DialogTheme } from '@radix-ui/themes';
27
- import { scalingVariants } from '../../../lib/constants';
26
+ import { scalingVariants } from 'lib/constants';
28
27
  import { DialogContext } from './DialogRoot';
29
- import { cn } from '../../../lib/utils/utils';
28
+ import { cn } from 'lib/utils/utils';
30
29
  export var dialogContentVariants = cva("rounded-md focus:outline-none 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]", {
31
30
  variants: {
32
31
  radius: {
@@ -52,6 +51,8 @@ export var dialogContentVariants = cva("rounded-md focus:outline-none bg-white d
52
51
  export var DialogContent = forwardRef(function (_a, forwardedRef) {
53
52
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
54
53
  var _b = useContext(DialogContext), radius = _b.radius, size = _b.size, scaling = _b.scaling;
55
- return (_jsx(DialogTheme.Content, __assign({ ref: forwardedRef, className: cn(dialogContentVariants({ radius: radius, scaling: scaling, size: size }), className) }, props, { children: children })));
54
+ return (<DialogTheme.Content ref={forwardedRef} className={cn(dialogContentVariants({ radius: radius, scaling: scaling, size: size }), className)} {...props}>
55
+ {children}
56
+ </DialogTheme.Content>);
56
57
  });
57
58
  DialogContent.displayName = 'Dialog.Content';
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,12 +9,11 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef, useContext } from 'react';
12
+ import React, { forwardRef, useContext } from 'react';
25
13
  import { cva } from 'class-variance-authority';
26
14
  import { Dialog as DialogTheme } from '@radix-ui/themes';
27
15
  import { DialogContext } from './DialogRoot';
28
- import { cn } from '../../../lib/utils/utils';
16
+ import { cn } from 'lib/utils/utils';
29
17
  export var dialogDescriptionVariants = cva('font-normal text-slate-12 dark:text-slateDark-12', {
30
18
  variants: {
31
19
  size: {
@@ -42,6 +30,8 @@ export var dialogDescriptionVariants = cva('font-normal text-slate-12 dark:text-
42
30
  export var DialogDescription = forwardRef(function (_a, ref) {
43
31
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
44
32
  var size = useContext(DialogContext).size;
45
- return (_jsx(DialogTheme.Description, __assign({ mb: "4", ref: ref, className: cn(dialogDescriptionVariants({ size: size }), className) }, props, { children: children })));
33
+ return (<DialogTheme.Description mb="4" ref={ref} className={cn(dialogDescriptionVariants({ size: size }), className)} {...props}>
34
+ {children}
35
+ </DialogTheme.Description>);
46
36
  });
47
37
  DialogDescription.displayName = 'Dialog.Description';
@@ -10,6 +10,6 @@ export interface DialogProps extends VariantProps<typeof dialogContentVariants>,
10
10
  }
11
11
  export declare const DialogContext: React.Context<DialogProps>;
12
12
  export declare const DialogRoot: {
13
- ({ children, radius, size, scaling, color, ...props }: ComponentPropsWithoutRef<typeof DialogTheme.Root> & DialogProps): import("react/jsx-runtime").JSX.Element;
13
+ ({ children, radius, size, scaling, color, ...props }: ComponentPropsWithoutRef<typeof DialogTheme.Root> & DialogProps): React.JSX.Element;
14
14
  displayName: string;
15
15
  };
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,8 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { createContext } from 'react';
12
+ import React, { createContext } from 'react';
25
13
  import { Theme, Dialog as DialogTheme } from '@radix-ui/themes';
26
14
  export var DialogContext = createContext({
27
15
  size: 'medium',
@@ -32,6 +20,10 @@ export var DialogContext = createContext({
32
20
  export var DialogRoot = function (_a) {
33
21
  var children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, props = __rest(_a, ["children", "radius", "size", "scaling", "color"]);
34
22
  var contextValue = { radius: radius, size: size, scaling: scaling, color: color };
35
- return (_jsx(Theme, { accentColor: color, children: _jsx(DialogContext.Provider, { value: contextValue, children: _jsx(DialogTheme.Root, __assign({}, props, { children: children })) }) }));
23
+ return (<Theme accentColor={color}>
24
+ <DialogContext.Provider value={contextValue}>
25
+ <DialogTheme.Root {...props}>{children}</DialogTheme.Root>
26
+ </DialogContext.Provider>
27
+ </Theme>);
36
28
  };
37
29
  DialogRoot.displayName = 'Dialog.Root';
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,11 +9,10 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef, useContext } from 'react';
12
+ import React, { forwardRef, useContext } from 'react';
25
13
  import { cva } from 'class-variance-authority';
26
14
  import { DialogContext } from './DialogRoot';
27
- import { cn } from '../../../lib/utils/utils';
15
+ import { cn } from 'lib/utils/utils';
28
16
  export var dialogSlotVariants = cva('flex flex-col gap-2 font-normal text-slate-12 dark:text-slateDark-12', {
29
17
  variants: {
30
18
  size: {
@@ -41,6 +29,8 @@ export var dialogSlotVariants = cva('flex flex-col gap-2 font-normal text-slate-
41
29
  export var DialogSlot = forwardRef(function (_a, ref) {
42
30
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
43
31
  var size = useContext(DialogContext).size;
44
- return (_jsx("div", __assign({ ref: ref, className: cn(dialogSlotVariants({ size: size }), className) }, props, { children: children })));
32
+ return (<div ref={ref} className={cn(dialogSlotVariants({ size: size }), className)} {...props}>
33
+ {children}
34
+ </div>);
45
35
  });
46
36
  DialogSlot.displayName = 'Dialog.Slot';
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,12 +9,11 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef, useContext } from 'react';
12
+ import React, { forwardRef, useContext } from 'react';
25
13
  import { cva } from 'class-variance-authority';
26
14
  import { Dialog as DialogTheme } from '@radix-ui/themes';
27
15
  import { DialogContext } from './DialogRoot';
28
- import { cn } from '../../../lib/utils/utils';
16
+ import { cn } from 'lib/utils/utils';
29
17
  export var dialogTitleVariants = cva('font-bold text-slate-12 dark:text-slateDark-12', {
30
18
  variants: {
31
19
  size: {
@@ -42,6 +30,8 @@ export var dialogTitleVariants = cva('font-bold text-slate-12 dark:text-slateDar
42
30
  export var DialogTitle = forwardRef(function (_a, ref) {
43
31
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
44
32
  var size = useContext(DialogContext).size;
45
- return (_jsx(DialogTheme.Title, __assign({ ref: ref, className: cn(dialogTitleVariants({ size: size }), className) }, props, { children: children })));
33
+ return (<DialogTheme.Title ref={ref} className={cn(dialogTitleVariants({ size: size }), className)} {...props}>
34
+ {children}
35
+ </DialogTheme.Title>);
46
36
  });
47
37
  DialogTitle.displayName = 'Dialog.Title';
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,11 +9,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
12
+ import React, { forwardRef } from 'react';
25
13
  import { Dialog as DialogTheme } from '@radix-ui/themes';
26
14
  export var DialogTrigger = forwardRef(function (_a, ref) {
27
15
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
28
- return (_jsx(DialogTheme.Trigger, __assign({ ref: ref, className: className }, props, { children: children })));
16
+ return (<DialogTheme.Trigger ref={ref} className={className} {...props}>
17
+ {children}
18
+ </DialogTheme.Trigger>);
29
19
  });
30
20
  DialogTrigger.displayName = 'Dialog.Trigger';
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const Dialog: {
3
3
  Root: {
4
- ({ children, radius, size, scaling, color, ...props }: import("@radix-ui/themes/dist/cjs/components/dialog").RootProps & import("./DialogRoot").DialogProps): import("react/jsx-runtime").JSX.Element;
4
+ ({ children, radius, size, scaling, color, ...props }: import("@radix-ui/themes/dist/cjs/components/dialog").RootProps & import("./DialogRoot").DialogProps): import("react").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/dialog").TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  import { VariantProps } from 'class-variance-authority';
2
- import { IChartDataLabels, IChartDatasets, IChartLegend, IChartTitle } from '../../../lib/types';
3
+ import { IChartDataLabels, IChartDatasets, IChartLegend, IChartTitle } from 'lib/types';
3
4
  export interface DoughnutChartProps extends VariantProps<typeof doughnutVariants> {
4
5
  labels?: string[];
5
6
  appearance?: 'solid' | 'soft';
@@ -16,7 +17,7 @@ declare const doughnutVariants: (props?: ({
16
17
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
17
18
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
18
19
  declare const DoughnutChart: {
19
- ({ labels, title, legend, datasets, datalabels, scaling, className, appearance, isColorMixed, ...rest }: DoughnutChartProps): import("react/jsx-runtime").JSX.Element;
20
+ ({ labels, title, legend, datasets, datalabels, scaling, className, appearance, isColorMixed, ...rest }: DoughnutChartProps): React.JSX.Element;
20
21
  displayName: string;
21
22
  };
22
23
  export default DoughnutChart;
@@ -20,14 +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
+ import React from 'react';
24
24
  import { Doughnut } from 'react-chartjs-2';
25
25
  import { Chart as ChartJS, ArcElement, Tooltip, Legend, plugins } from 'chart.js/auto';
26
26
  import ChartDataLabels from 'chartjs-plugin-datalabels';
27
- import { cn } from '../../../lib/utils/utils';
27
+ import { cn } from 'lib/utils/utils';
28
28
  import { cva } from 'class-variance-authority';
29
- import { scalingVariants } from '../../../lib/constants';
30
- import { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';
29
+ import { scalingVariants } from 'lib/constants';
30
+ import { chartColorList, chartAlphaColorList } from 'lib/color/constants';
31
31
  ChartJS.register(ArcElement, Tooltip, Legend, plugins, ChartDataLabels);
32
32
  ChartJS.defaults.set('plugins.datalabels', {
33
33
  display: false,
@@ -53,13 +53,13 @@ var DoughnutChart = function (_a) {
53
53
  datasets.forEach(function (dataset, index) {
54
54
  datasets[index] = __assign(__assign({}, dataset), { backgroundColor: getChartColor(isColorMixed, appearance), borderColor: getChartColor(isColorMixed, 'solid') });
55
55
  });
56
- return (_jsx(Doughnut, __assign({ data: { labels: labels, datasets: datasets }, options: {
56
+ return (<Doughnut data={{ labels: labels, datasets: datasets }} options={{
57
57
  plugins: {
58
58
  title: title,
59
59
  legend: legend,
60
60
  datalabels: datalabels,
61
61
  },
62
- }, className: cn(doughnutVariants({ scaling: scaling }), className) }, rest)));
62
+ }} className={cn(doughnutVariants({ scaling: scaling }), className)} {...rest}/>);
63
63
  };
64
64
  DoughnutChart.displayName = 'DoughnutChart';
65
65
  export default DoughnutChart;
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,11 +9,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
12
  import React, { forwardRef, Children } from 'react';
25
13
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
26
14
  export var DropdownMenuRadioGroup = forwardRef(function (_a, ref) {
27
15
  var className = _a.className, children = _a.children, value = _a.value, props = __rest(_a, ["className", "children", "value"]);
28
- return (_jsx(DropdownMenuPrimitive.RadioGroup, __assign({ ref: ref, className: className }, props, { children: Children.map(children, function (child) { return React.cloneElement(child, { selectedValue: value }); }) })));
16
+ return (<DropdownMenuPrimitive.RadioGroup ref={ref} className={className} {...props}>
17
+ {Children.map(children, function (child) { return React.cloneElement(child, { selectedValue: value }); })}
18
+ </DropdownMenuPrimitive.RadioGroup>);
29
19
  });
30
20
  DropdownMenuRadioGroup.displayName = 'DropdownMenu.RadioGroup';
@@ -20,13 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef, useContext } from 'react';
23
+ import React, { forwardRef, useContext } from 'react';
25
24
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
26
25
  import { cva } from 'class-variance-authority';
27
- import { scalingVariants } from '../../../lib/constants';
26
+ import { scalingVariants } from 'lib/constants';
28
27
  import { DropdownMenuContext } from './DropdownMenuRoot';
29
- import { cn } from '../../../lib/utils/utils';
28
+ import { cn } from 'lib/utils/utils';
30
29
  export var dropdownMenuSubContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 will-change-[transform,opacity]\n shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] \n [animation-duration:_400ms] [animation-timing-function:_cubic-bezier(0.16,_1,_0.3,_1)]", {
31
30
  variants: {
32
31
  radius: {
@@ -51,10 +50,14 @@ export var dropdownMenuSubContentVariants = cva("p-[5px] bg-white dark:bg-slateD
51
50
  export var DropdownMenuSubContent = forwardRef(function (_a, ref) {
52
51
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
53
52
  var _b = useContext(DropdownMenuContext), radius = _b.radius, scaling = _b.scaling, size = _b.size;
54
- return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.SubContent, __assign({ ref: ref, className: cn(dropdownMenuSubContentVariants({
55
- radius: radius,
56
- size: size,
57
- scaling: scaling,
58
- }), className), sideOffset: 2, alignOffset: -5 }, props, { children: children })) }));
53
+ return (<DropdownMenuPrimitive.Portal>
54
+ <DropdownMenuPrimitive.SubContent ref={ref} className={cn(dropdownMenuSubContentVariants({
55
+ radius: radius,
56
+ size: size,
57
+ scaling: scaling,
58
+ }), className)} sideOffset={2} alignOffset={-5} {...props}>
59
+ {children}
60
+ </DropdownMenuPrimitive.SubContent>
61
+ </DropdownMenuPrimitive.Portal>);
59
62
  });
60
63
  DropdownMenuSubContent.displayName = 'DropdownMenu.SubContent';
@@ -1,14 +1,3 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  var __rest = (this && this.__rest) || function (s, e) {
13
2
  var t = {};
14
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -20,15 +9,14 @@ var __rest = (this && this.__rest) || function (s, e) {
20
9
  }
21
10
  return t;
22
11
  };
23
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import { forwardRef, useContext } from 'react';
12
+ import React, { forwardRef, useContext } from 'react';
25
13
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
26
- import { menuItemAppearanceStyle } from '../../../lib/constants';
14
+ import { menuItemAppearanceStyle } from 'lib/constants';
27
15
  import { dropdownMenuItemVariants } from './DropdownMenuItem';
28
16
  import { DropdownMenuItemIndicator } from './DropdownMenuItemIndicator';
29
17
  import { CheckIcon } from '@radix-ui/react-icons';
30
18
  import { DropdownMenuContext } from './DropdownMenuRoot';
31
- import { cn } from '../../../lib/utils/utils';
19
+ import { cn } from 'lib/utils/utils';
32
20
  export var DropdownMenuCheckboxItem = forwardRef(function (_a, ref) {
33
21
  var className = _a.className, children = _a.children, shortcut = _a.shortcut, checked = _a.checked, props = __rest(_a, ["className", "children", "shortcut", "checked"]);
34
22
  var _b = useContext(DropdownMenuContext), radius = _b.radius, size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'solid' : _d;
@@ -36,6 +24,11 @@ export var DropdownMenuCheckboxItem = forwardRef(function (_a, ref) {
36
24
  radius: radius,
37
25
  size: size,
38
26
  }), menuItemAppearanceStyle(appearance, color), className);
39
- return (_jsxs(DropdownMenuPrimitive.CheckboxItem, __assign({ ref: ref, className: itemClassName }, props, { children: [_jsx(DropdownMenuItemIndicator, { forceMount: true, radius: 'medium', size: size, children: checked && _jsx(CheckIcon, {}) }), children] })));
27
+ return (<DropdownMenuPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
28
+ <DropdownMenuItemIndicator forceMount radius={'medium'} size={size}>
29
+ {checked && <CheckIcon />}
30
+ </DropdownMenuItemIndicator>
31
+ {children}
32
+ </DropdownMenuPrimitive.CheckboxItem>);
40
33
  });
41
34
  DropdownMenuCheckboxItem.displayName = 'DropdownMenu.CheckboxItem';
@@ -20,13 +20,12 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { forwardRef, useContext } from 'react';
23
+ import React, { forwardRef, useContext } from 'react';
25
24
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
26
25
  import { cva } from 'class-variance-authority';
27
- import { scalingVariants } from '../../../lib/constants';
26
+ import { scalingVariants } from 'lib/constants';
28
27
  import { DropdownMenuContext } from './DropdownMenuRoot';
29
- import { cn } from '../../../lib/utils/utils';
28
+ import { cn } from 'lib/utils/utils';
30
29
  export var dropdownMenuContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 will-change-[transform,opacity]\n shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),_0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)] \n [animation-duration:_400ms] [animation-timing-function:_cubic-bezier(0.16,_1,_0.3,_1)]", {
31
30
  variants: {
32
31
  radius: {
@@ -51,6 +50,10 @@ export var dropdownMenuContentVariants = cva("p-[5px] bg-white dark:bg-slateDark
51
50
  export var DropdownMenuContent = forwardRef(function (_a, ref) {
52
51
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
53
52
  var _b = useContext(DropdownMenuContext), size = _b.size, scaling = _b.scaling, radius = _b.radius;
54
- return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, __assign({ ref: ref, sideOffset: 5, className: cn(dropdownMenuContentVariants({ radius: radius, scaling: scaling, size: size }), className) }, props, { children: children })) }));
53
+ return (<DropdownMenuPrimitive.Portal>
54
+ <DropdownMenuPrimitive.Content ref={ref} sideOffset={5} className={cn(dropdownMenuContentVariants({ radius: radius, scaling: scaling, size: size }), className)} {...props}>
55
+ {children}
56
+ </DropdownMenuPrimitive.Content>
57
+ </DropdownMenuPrimitive.Portal>);
55
58
  });
56
59
  DropdownMenuContent.displayName = 'DropdownMenu.Content';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { IColor } from '../../../lib/types';
4
+ import { IColor } from 'lib/types';
5
5
  export interface DropdownMenuItemProps extends VariantProps<typeof dropdownMenuItemVariants> {
6
6
  color?: IColor;
7
7
  shortcut?: string;