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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. package/README.md +163 -163
  2. package/dist/Typography/Header/index.d.ts +1 -1
  3. package/dist/Typography/Header/index.jsx +4 -4
  4. package/dist/Typography/Text/index.jsx +4 -4
  5. package/dist/Typography/index.d.ts +2 -2
  6. package/dist/Typography/index.js +2 -3
  7. package/dist/app/layout.jsx +2 -2
  8. package/dist/app/page.d.ts +1 -1
  9. package/dist/app/page.jsx +6 -39
  10. package/dist/app/template/colorPicker.d.ts +1 -1
  11. package/dist/app/template/colorPicker.jsx +7 -7
  12. package/dist/app/template/theme.jsx +6 -33
  13. package/dist/components/Accordion/index.jsx +13 -13
  14. package/dist/components/AlertDialog/AlertDialogAction.jsx +3 -3
  15. package/dist/components/AlertDialog/AlertDialogCancel.jsx +3 -3
  16. package/dist/components/AlertDialog/AlertDialogContent.jsx +6 -6
  17. package/dist/components/AlertDialog/AlertDialogDescription.jsx +3 -3
  18. package/dist/components/AlertDialog/AlertDialogTitle.jsx +3 -3
  19. package/dist/components/AlertDialog/AlertDialogTrigger.jsx +3 -3
  20. package/dist/components/AlertDialog/index.jsx +4 -2
  21. package/dist/components/AspectRatio/index.jsx +3 -3
  22. package/dist/components/Avatar/index.jsx +6 -6
  23. package/dist/components/Badge/index.jsx +2 -2
  24. package/dist/components/BubbleChart/index.jsx +1 -1
  25. package/dist/components/Button/index.jsx +3 -3
  26. package/dist/components/Callout/CalloutIcon.jsx +7 -7
  27. package/dist/components/Callout/CalloutText.jsx +3 -3
  28. package/dist/components/Callout/index.jsx +5 -5
  29. package/dist/components/Card/index.jsx +3 -3
  30. package/dist/components/Checkbox/index.jsx +10 -10
  31. package/dist/components/CheckboxCard/index.jsx +4 -4
  32. package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +4 -4
  33. package/dist/components/CheckboxGroup/index.jsx +5 -5
  34. package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +6 -6
  35. package/dist/components/ContextMenu/ContextMenuContent.jsx +5 -5
  36. package/dist/components/ContextMenu/ContextMenuGroup.jsx +2 -2
  37. package/dist/components/ContextMenu/ContextMenuItem.jsx +4 -4
  38. package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +3 -3
  39. package/dist/components/ContextMenu/ContextMenuLabel.jsx +3 -3
  40. package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +4 -4
  41. package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +6 -6
  42. package/dist/components/ContextMenu/ContextMenuSeparator.jsx +3 -3
  43. package/dist/components/ContextMenu/ContextMenuSubContent.jsx +6 -6
  44. package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +8 -8
  45. package/dist/components/ContextMenu/ContextMenuTrigger.jsx +3 -3
  46. package/dist/components/ContextMenu/index.jsx +5 -3
  47. package/dist/components/DataList/DataListItem.jsx +3 -3
  48. package/dist/components/DataList/DataListLabel.jsx +3 -3
  49. package/dist/components/DataList/DataListValue.jsx +3 -3
  50. package/dist/components/DataList/index.jsx +5 -5
  51. package/dist/components/Dialog/DialogAction.jsx +3 -3
  52. package/dist/components/Dialog/DialogCancel.jsx +3 -3
  53. package/dist/components/Dialog/DialogContent.jsx +3 -3
  54. package/dist/components/Dialog/DialogDescription.jsx +3 -3
  55. package/dist/components/Dialog/DialogSlot.jsx +3 -3
  56. package/dist/components/Dialog/DialogTitle.jsx +3 -3
  57. package/dist/components/Dialog/DialogTrigger.jsx +2 -2
  58. package/dist/components/Dialog/index.jsx +2 -2
  59. package/dist/components/DoughnutChart/index.jsx +1 -1
  60. package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +4 -4
  61. package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +5 -5
  62. package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +6 -6
  63. package/dist/components/DropdownMenu/DropdownMenuContent.jsx +5 -5
  64. package/dist/components/DropdownMenu/DropdownMenuItem.jsx +4 -4
  65. package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +3 -3
  66. package/dist/components/DropdownMenu/DropdownMenuLable.jsx +3 -3
  67. package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +6 -6
  68. package/dist/components/DropdownMenu/DropdownMenuSeparator.jsx +1 -1
  69. package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +5 -5
  70. package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +2 -2
  71. package/dist/components/HoverCard/HoverCardContent.jsx +2 -2
  72. package/dist/components/HoverCard/HoverCardTrigger.jsx +2 -2
  73. package/dist/components/HoverCard/index.jsx +2 -2
  74. package/dist/components/IconButton/index.jsx +2 -2
  75. package/dist/components/Inset/index.jsx +4 -4
  76. package/dist/components/Label/index.jsx +2 -2
  77. package/dist/components/Menubar/MenubarCheckboxItem.jsx +6 -6
  78. package/dist/components/Menubar/MenubarContent.jsx +5 -5
  79. package/dist/components/Menubar/MenubarItem.jsx +4 -4
  80. package/dist/components/Menubar/MenubarItemIndicator.jsx +3 -3
  81. package/dist/components/Menubar/MenubarRadioGroup.jsx +4 -4
  82. package/dist/components/Menubar/MenubarRadioItem.jsx +6 -6
  83. package/dist/components/Menubar/MenubarSeparator.jsx +3 -3
  84. package/dist/components/Menubar/MenubarSubContent.jsx +3 -3
  85. package/dist/components/Menubar/MenubarSubTrigger.jsx +6 -6
  86. package/dist/components/Menubar/MenubarTrigger.jsx +3 -3
  87. package/dist/components/Menubar/index.jsx +5 -5
  88. package/dist/components/NavigationMenu/NavigationMenuContent.jsx +3 -3
  89. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +4 -4
  90. package/dist/components/NavigationMenu/NavigationMenuItem.jsx +2 -2
  91. package/dist/components/NavigationMenu/NavigationMenuLink.jsx +3 -3
  92. package/dist/components/NavigationMenu/NavigationMenuList.jsx +4 -4
  93. package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +4 -4
  94. package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +3 -3
  95. package/dist/components/NavigationMenu/index.jsx +5 -5
  96. package/dist/components/PieChart/index.jsx +1 -1
  97. package/dist/components/Popover/PopoverClose.jsx +2 -2
  98. package/dist/components/Popover/PopoverContent.jsx +2 -2
  99. package/dist/components/Popover/PopoverTrigger.jsx +2 -2
  100. package/dist/components/Popover/index.jsx +2 -2
  101. package/dist/components/Progress/index.jsx +2 -2
  102. package/dist/components/Radio/index.jsx +7 -7
  103. package/dist/components/RadioCards/RadioCardsItem.jsx +2 -2
  104. package/dist/components/RadioCards/index.jsx +4 -4
  105. package/dist/components/RadioGroup/RadioGroupItem.jsx +2 -2
  106. package/dist/components/RadioGroup/index.jsx +4 -4
  107. package/dist/components/ScrollArea/index.jsx +4 -4
  108. package/dist/components/SegmentedControl/SegmentedControlItem.jsx +2 -2
  109. package/dist/components/SegmentedControl/index.jsx +4 -4
  110. package/dist/components/Select/index.jsx +20 -18
  111. package/dist/components/Separator/index.jsx +5 -5
  112. package/dist/components/Skeleton/index.jsx +5 -5
  113. package/dist/components/Slider/index.jsx +3 -3
  114. package/dist/components/Spinner/index.jsx +4 -4
  115. package/dist/components/TabNav/index.jsx +6 -6
  116. package/dist/components/Table/index.d.ts +2 -1
  117. package/dist/components/Table/index.jsx +17 -17
  118. package/dist/components/Tabs/index.jsx +10 -10
  119. package/dist/components/TextArea/index.jsx +2 -2
  120. package/dist/components/TextField/index.jsx +7 -7
  121. package/dist/components/Toast/ToastActionButton.jsx +3 -3
  122. package/dist/components/Toast/ToastDescription.jsx +5 -5
  123. package/dist/components/Toast/ToastTitle.jsx +3 -3
  124. package/dist/components/Toast/index.jsx +8 -8
  125. package/dist/components/Toggle/ToggleWithText.jsx +3 -3
  126. package/dist/components/Toggle/index.jsx +2 -2
  127. package/dist/components/ToggleGroup/index.jsx +4 -4
  128. package/dist/components/ToggleGroup/toggleGroupItem.jsx +2 -2
  129. package/dist/components/ToggleSwitch/index.jsx +5 -5
  130. package/dist/components/Tooltip/index.d.ts +1 -1
  131. package/dist/components/Tooltip/index.jsx +11 -11
  132. package/dist/components/index.d.ts +0 -2
  133. package/dist/index.d.ts +2 -5
  134. package/dist/index.js +0 -3
  135. package/dist/stories/Welcome.jsx +19 -19
  136. package/dist/stories/accordion/Accordion.stories.jsx +19 -19
  137. package/dist/stories/alert-dialog/AlertDialog.stories.jsx +14 -14
  138. package/dist/stories/aspect-ratio/AspectRatio.stories.jsx +29 -29
  139. package/dist/stories/avatar/Avatar.stories.jsx +12 -12
  140. package/dist/stories/badge/Badge.stories.jsx +44 -44
  141. package/dist/stories/bubble-chart/BubbleChart.stories.jsx +9 -9
  142. package/dist/stories/button/Button.stories.jsx +34 -34
  143. package/dist/stories/button/IconButton.stories.jsx +14 -14
  144. package/dist/stories/callout/Callout.stories.jsx +107 -107
  145. package/dist/stories/card/Card.stories.jsx +51 -51
  146. package/dist/stories/checkbox/Checkbox.stories.jsx +57 -57
  147. package/dist/stories/checkbox/CheckboxCard.stories.jsx +36 -36
  148. package/dist/stories/checkbox/CheckboxGroup.stories.jsx +73 -73
  149. package/dist/stories/context-menu/ContextMenu.stories.jsx +70 -70
  150. package/dist/stories/data-list/DataList.stories.jsx +102 -102
  151. package/dist/stories/dialog/Dialog.stories.jsx +24 -24
  152. package/dist/stories/doughnut-chart/DoughnutChart.stories.jsx +9 -9
  153. package/dist/stories/dropdown-menu/DropdownMenu.stories.jsx +96 -96
  154. package/dist/stories/header/Header.stories.jsx +20 -20
  155. package/dist/stories/hover-card/HoverCard.stories.jsx +28 -28
  156. package/dist/stories/inset/Inset.stories.jsx +16 -16
  157. package/dist/stories/label/Label.stories.jsx +22 -22
  158. package/dist/stories/menubar/Menubar.stories.jsx +38 -38
  159. package/dist/stories/navigation-menu/NavigationMenu.stories.d.ts +11 -11
  160. package/dist/stories/navigation-menu/NavigationMenu.stories.jsx +67 -67
  161. package/dist/stories/pie-chart/PieChart.stories.jsx +20 -20
  162. package/dist/stories/popover/Popover.stories.jsx +34 -34
  163. package/dist/stories/progress/Progress.stories.jsx +6 -6
  164. package/dist/stories/radio/Radio.stories.jsx +11 -11
  165. package/dist/stories/radio/RadioCards.stories.jsx +60 -60
  166. package/dist/stories/radio/RadioGroup.stories.jsx +55 -55
  167. package/dist/stories/scroll-area/ScrollArea.stories.jsx +61 -61
  168. package/dist/stories/segmented-control/SegmentedControl.stories.jsx +22 -22
  169. package/dist/stories/select/Select.stories.jsx +62 -62
  170. package/dist/stories/separator/Separator.stories.jsx +25 -25
  171. package/dist/stories/skeleton/Skeleton.stories.jsx +28 -28
  172. package/dist/stories/slider/Slider.stories.jsx +12 -12
  173. package/dist/stories/spinner/Spinner.stories.jsx +26 -26
  174. package/dist/stories/switch/Switch.stories.jsx +12 -12
  175. package/dist/stories/tab-nav/TabNav.stories.jsx +10 -10
  176. package/dist/stories/table/Table.stories.jsx +28 -28
  177. package/dist/stories/tabs/Tabs.stories.jsx +18 -18
  178. package/dist/stories/text/Text.stories.jsx +16 -16
  179. package/dist/stories/textArea/TextArea.stories.jsx +17 -17
  180. package/dist/stories/textfield/TextField.stories.jsx +33 -33
  181. package/dist/stories/toast/Toast.stories.jsx +19 -19
  182. package/dist/stories/toggle/Toggle.stories.jsx +18 -18
  183. package/dist/stories/toggle/ToggleGroup.stories.jsx +34 -34
  184. package/dist/stories/tooltip/Tooltip.stories.jsx +14 -14
  185. package/dist/tsconfig.tsbuildinfo +1 -1
  186. package/package.json +120 -118
  187. package/dist/app/template/badgeTemplate.d.ts +0 -12
  188. package/dist/app/template/badgeTemplate.jsx +0 -82
  189. package/dist/app/template/buttonTemplate.d.ts +0 -12
  190. package/dist/app/template/buttonTemplate.jsx +0 -82
  191. package/dist/app/template/textTemplate.d.ts +0 -11
  192. package/dist/app/template/textTemplate.jsx +0 -72
@@ -46,8 +46,8 @@ export var Label = React.forwardRef(function (_a, forwardedRef) {
46
46
  var className = _a.className, scaling = _a.scaling, weight = _a.weight, size = _a.size, color = _a.color, children = _a.children, rootProps = __rest(_a, ["className", "scaling", "weight", "size", "color", "children"]);
47
47
  if (weight === 'medium' || weight === 'semibold')
48
48
  weight = 'bold';
49
- return (<LabelPrimitive.Root {...rootProps} ref={forwardedRef} className={cn('', labeVariants({ scaling: scaling, size: size, weight: weight, color: color }), className)}>
50
- {children}
49
+ return (<LabelPrimitive.Root {...rootProps} ref={forwardedRef} className={cn('', labeVariants({ scaling: scaling, size: size, weight: weight, color: color }), className)}>
50
+ {children}
51
51
  </LabelPrimitive.Root>);
52
52
  });
53
53
  Label.displayName = 'Label';
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import React, { forwardRef } from 'react';
13
13
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
14
14
  import { CheckIcon } from '@radix-ui/react-icons';
15
- import { cn } from '../../utils/utils';
15
+ import { cn } from 'utils/utils';
16
16
  import { menubarItemVariants } from './MenubarItem';
17
17
  import { MenubarItemIndicator } from './MenubarItemIndicator';
18
18
  import { menuItemAppearanceStyle } from '../../constants';
@@ -21,11 +21,11 @@ export var MenubarCheckboxItem = forwardRef(function (_a, ref) {
21
21
  var children = _a.children, className = _a.className, checked = _a.checked, props = __rest(_a, ["children", "className", "checked"]);
22
22
  var _b = useMenubarContext(), radius = _b.radius, scaling = _b.scaling, size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d;
23
23
  var itemClassName = cn(menubarItemVariants({ radius: radius, scaling: scaling, size: size }), 'pl-7', menuItemAppearanceStyle(itemAppearance, color), className);
24
- return (<MenubarPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
25
- <MenubarItemIndicator forceMount radius={'medium'} size={size}>
26
- {checked && <CheckIcon />}
27
- </MenubarItemIndicator>
28
- {children}
24
+ return (<MenubarPrimitive.CheckboxItem ref={ref} className={itemClassName} {...props}>
25
+ <MenubarItemIndicator forceMount radius={'medium'} size={size}>
26
+ {checked && <CheckIcon />}
27
+ </MenubarItemIndicator>
28
+ {children}
29
29
  </MenubarPrimitive.CheckboxItem>);
30
30
  });
31
31
  MenubarCheckboxItem.displayName = 'MenubarCheckboxItem';
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React, { forwardRef } from 'react';
24
24
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
25
25
  import { cva } from 'class-variance-authority';
26
- import { cn } from '../../utils/utils';
26
+ import { cn } from 'utils/utils';
27
27
  import { scalingVariants } from '../../constants';
28
28
  import { useMenubarContext } from '.';
29
29
  export var menubarContentVariants = 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)]", {
@@ -50,14 +50,14 @@ export var menubarContentVariants = cva("p-[5px] bg-white dark:bg-slateDark-1 wi
50
50
  export var MenubarContent = forwardRef(function (_a, ref) {
51
51
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
52
52
  var _b = useMenubarContext(), radius = _b.radius, size = _b.size, scaling = _b.scaling;
53
- return (<MenubarPrimitive.Portal>
53
+ return (<MenubarPrimitive.Portal>
54
54
  <MenubarPrimitive.Content ref={ref} className={cn(menubarContentVariants({
55
55
  radius: radius,
56
56
  size: size,
57
57
  scaling: scaling,
58
- }), className)} align="start" sideOffset={5} alignOffset={-3} {...props}>
59
- {children}
60
- </MenubarPrimitive.Content>
58
+ }), className)} align="start" sideOffset={5} alignOffset={-3} {...props}>
59
+ {children}
60
+ </MenubarPrimitive.Content>
61
61
  </MenubarPrimitive.Portal>);
62
62
  });
63
63
  MenubarContent.displayName = 'MenubarContent';
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React, { forwardRef } from 'react';
24
24
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
25
25
  import { cva } from 'class-variance-authority';
26
- import { cn } from '../../utils/utils';
26
+ import { cn } from 'utils/utils';
27
27
  import { blackText, menuItemAppearanceStyle, radiusVariants, scalingVariants, } from '../../constants';
28
28
  import { useMenubarContext } from '.';
29
29
  export var menubarItemVariants = cva("flex group relative leading-none select-none outline-none items-center justify-between font-normal\n data-[disabled]:text-slate-8 data-[disabled]:cursor-not-allowed text-slate-12 dark:text-slateDark-12\n data-[disabled]:hover:bg-transparent dark:data-[disabled]:text-slateDark-8 data-[disabled]:dark:hover:bg-transparent", {
@@ -48,9 +48,9 @@ export var MenubarItem = forwardRef(function (_a, ref) {
48
48
  var shortcutClassName = "text-slateA-11 dark:text-slateDarkA-11 ".concat(itemAppearance === 'solid' && !blackText.includes(color)
49
49
  ? 'group-hover:text-white dark:group-hover:text-slateDark-1'
50
50
  : '');
51
- return (<MenubarPrimitive.Item ref={ref} className={itemClassName} {...props}>
52
- {children}
53
- {shortcut && <span className={shortcutClassName}>{shortcut}</span>}
51
+ return (<MenubarPrimitive.Item ref={ref} className={itemClassName} {...props}>
52
+ {children}
53
+ {shortcut && <span className={shortcutClassName}>{shortcut}</span>}
54
54
  </MenubarPrimitive.Item>);
55
55
  });
56
56
  MenubarItem.displayName = 'MenubarItem';
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React, { forwardRef } from 'react';
24
24
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
25
- import { cn } from '../../utils/utils';
25
+ import { cn } from 'utils/utils';
26
26
  import { cva } from 'class-variance-authority';
27
27
  import { radiusVariants } from '../../constants';
28
28
  import { useMenubarContext } from '.';
@@ -43,8 +43,8 @@ export var MenubarItemIndicator = forwardRef(function (_a, ref) {
43
43
  var children = _a.children, className = _a.className, radius = _a.radius, props = __rest(_a, ["children", "className", "radius"]);
44
44
  var size = useMenubarContext().size;
45
45
  var indicatorClassName = cn(menubarItemIndicatorVariants({ size: size, radius: radius }), className);
46
- return (<MenubarPrimitive.ItemIndicator ref={ref} className={indicatorClassName} {...props}>
47
- {children}
46
+ return (<MenubarPrimitive.ItemIndicator ref={ref} className={indicatorClassName} {...props}>
47
+ {children}
48
48
  </MenubarPrimitive.ItemIndicator>);
49
49
  });
50
50
  MenubarItemIndicator.displayName = 'MenubarItemIndicator';
@@ -14,10 +14,10 @@ import * as MenubarPrimitive from '@radix-ui/react-menubar';
14
14
  export var RadioContext = createContext({ selectedValue: '' });
15
15
  export var MenubarRadioGroup = forwardRef(function (_a, ref) {
16
16
  var children = _a.children, className = _a.className, value = _a.value, props = __rest(_a, ["children", "className", "value"]);
17
- return (<MenubarPrimitive.RadioGroup ref={ref} className={className} {...props}>
18
- <RadioContext.Provider value={{ selectedValue: value !== null && value !== void 0 ? value : '' }}>
19
- {children}
20
- </RadioContext.Provider>
17
+ return (<MenubarPrimitive.RadioGroup ref={ref} className={className} {...props}>
18
+ <RadioContext.Provider value={{ selectedValue: value !== null && value !== void 0 ? value : '' }}>
19
+ {children}
20
+ </RadioContext.Provider>
21
21
  </MenubarPrimitive.RadioGroup>);
22
22
  });
23
23
  MenubarRadioGroup.displayName = 'MenubarRadioGroup';
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import React, { forwardRef, useContext } from 'react';
13
13
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
14
14
  import { DotFilledIcon } from '@radix-ui/react-icons';
15
- import { cn } from '../../utils/utils';
15
+ import { cn } from 'utils/utils';
16
16
  import { menuItemAppearanceStyle } from '../../constants';
17
17
  import { menubarItemVariants } from './MenubarItem';
18
18
  import { MenubarItemIndicator } from './MenubarItemIndicator';
@@ -23,11 +23,11 @@ export var MenubarRadioItem = forwardRef(function (_a, ref) {
23
23
  var _b = useMenubarContext(), radius = _b.radius, scaling = _b.scaling, size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d;
24
24
  var itemClassName = cn(menubarItemVariants({ radius: radius, scaling: scaling, size: size }), 'pl-7', menuItemAppearanceStyle(itemAppearance, color), className);
25
25
  var radioGroup = useContext(RadioContext);
26
- return (<MenubarPrimitive.RadioItem ref={ref} className={itemClassName} {...props}>
27
- <MenubarItemIndicator forceMount radius={'full'} size={size}>
28
- {radioGroup.selectedValue === props.value && <DotFilledIcon />}
29
- </MenubarItemIndicator>
30
- {children}
26
+ return (<MenubarPrimitive.RadioItem ref={ref} className={itemClassName} {...props}>
27
+ <MenubarItemIndicator forceMount radius={'full'} size={size}>
28
+ {radioGroup.selectedValue === props.value && <DotFilledIcon />}
29
+ </MenubarItemIndicator>
30
+ {children}
31
31
  </MenubarPrimitive.RadioItem>);
32
32
  });
33
33
  MenubarRadioItem.displayName = 'MenubarRadioItem';
@@ -11,11 +11,11 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import React, { forwardRef } from 'react';
13
13
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
14
- import { cn } from '../../utils/utils';
14
+ import { cn } from 'utils/utils';
15
15
  export var MenubarSeparator = forwardRef(function (_a, ref) {
16
16
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
17
- return (<MenubarPrimitive.Separator ref={ref} className={cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className)} {...props}>
18
- {children}
17
+ return (<MenubarPrimitive.Separator ref={ref} className={cn('h-[1px] m-[5px] bg-slate-6 dark:bg-slateDark-6', className)} {...props}>
18
+ {children}
19
19
  </MenubarPrimitive.Separator>);
20
20
  });
21
21
  MenubarSeparator.displayName = 'MenubarSeparator';
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React, { forwardRef } from 'react';
24
24
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
25
25
  import { cva } from 'class-variance-authority';
26
- import { cn } from '../../utils/utils';
26
+ import { cn } from 'utils/utils';
27
27
  import { radiusVariants } from '../../constants';
28
28
  import { useMenubarContext } from '.';
29
29
  export var menubarSubContentVariants = 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)]", {
@@ -45,8 +45,8 @@ export var MenubarSubContent = forwardRef(function (_a, ref) {
45
45
  return (<MenubarPrimitive.SubContent ref={ref} className={cn(menubarSubContentVariants({
46
46
  radius: radius,
47
47
  size: size,
48
- }), className)} alignOffset={-5} {...props}>
49
- {children}
48
+ }), className)} alignOffset={-5} {...props}>
49
+ {children}
50
50
  </MenubarPrimitive.SubContent>);
51
51
  });
52
52
  MenubarSubContent.displayName = 'MenubarSubContent';
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import React, { forwardRef } from 'react';
13
13
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
14
14
  import { ChevronRightIcon } from '@radix-ui/react-icons';
15
- import { cn } from '../../utils/utils';
15
+ import { cn } from 'utils/utils';
16
16
  import { blackText, menuItemAppearanceStyle } from '../../constants';
17
17
  import { menubarItemVariants } from './MenubarItem';
18
18
  import { useMenubarContext } from '.';
@@ -24,11 +24,11 @@ export var MenubarSubTrigger = forwardRef(function (_a, ref) {
24
24
  if (itemAppearance === 'solid' && !blackText.includes(color)) {
25
25
  iconClassName = 'group-hover:text-white dark:group-hover:text-slateDark-1';
26
26
  }
27
- return (<MenubarPrimitive.SubTrigger ref={ref} className={triggerClassName} {...props}>
28
- {children}
29
- <div className={iconClassName}>
30
- <ChevronRightIcon />
31
- </div>
27
+ return (<MenubarPrimitive.SubTrigger ref={ref} className={triggerClassName} {...props}>
28
+ {children}
29
+ <div className={iconClassName}>
30
+ <ChevronRightIcon />
31
+ </div>
32
32
  </MenubarPrimitive.SubTrigger>);
33
33
  });
34
34
  MenubarSubTrigger.displayName = 'MenubarSubTrigger';
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React, { forwardRef } from 'react';
24
24
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
25
25
  import { cva } from 'class-variance-authority';
26
- import { cn } from '../../utils/utils';
26
+ import { cn } from 'utils/utils';
27
27
  import { appearanceStyle, scalingVariants } from '../../constants';
28
28
  import { useMenubarContext } from '.';
29
29
  export var menubarTriggerVariants = cva("flex items-center justify-between gap-[2px] outline-none select-none leading-none py-1 px-3 font-medium", {
@@ -51,8 +51,8 @@ export var MenubarTrigger = forwardRef(function (_a, ref) {
51
51
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
52
52
  var _b = useMenubarContext(), scaling = _b.scaling, size = _b.size, radius = _b.radius, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'ghost' : _d;
53
53
  var triggerClassName = cn(menubarTriggerVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);
54
- return (<MenubarPrimitive.Trigger ref={ref} className={triggerClassName} {...props}>
55
- {children}
54
+ return (<MenubarPrimitive.Trigger ref={ref} className={triggerClassName} {...props}>
55
+ {children}
56
56
  </MenubarPrimitive.Trigger>);
57
57
  });
58
58
  MenubarTrigger.displayName = 'MenubarTrigger';
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React, { createContext, forwardRef, useContext, } from 'react';
24
24
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
25
25
  import { cva } from 'class-variance-authority';
26
- import { cn } from '../../utils/utils';
26
+ import { cn } from 'utils/utils';
27
27
  import { radiusVariants, scalingVariants } from '../../constants';
28
28
  export * from './MenubarMenu';
29
29
  export * from './MenubarTrigger';
@@ -66,10 +66,10 @@ export var Menubar = forwardRef(function (_a, ref) {
66
66
  var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'ghost' : _c, _d = _a.itemAppearance, itemAppearance = _d === void 0 ? 'solid' : _d, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "color", "appearance", "itemAppearance"]);
67
67
  var contextValue = { radius: radius, size: size, scaling: scaling, color: color, appearance: appearance, itemAppearance: itemAppearance };
68
68
  var menuClassName = cn(menubarVariants({ radius: radius, scaling: scaling, size: size }), appearance === 'solid' && "bg-".concat(color, "-9 dark:bg-$").concat(color, "Dark-9"), className);
69
- return (<MenubarContext.Provider value={contextValue}>
70
- <MenubarPrimitive.Root ref={ref} className={menuClassName} {...props}>
71
- {children}
72
- </MenubarPrimitive.Root>
69
+ return (<MenubarContext.Provider value={contextValue}>
70
+ <MenubarPrimitive.Root ref={ref} className={menuClassName} {...props}>
71
+ {children}
72
+ </MenubarPrimitive.Root>
73
73
  </MenubarContext.Provider>);
74
74
  });
75
75
  Menubar.displayName = 'Menubar';
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React, { forwardRef } from 'react';
24
24
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
25
- import { cn } from '../../utils/utils';
25
+ import { cn } from 'utils/utils';
26
26
  import { cva } from 'class-variance-authority';
27
27
  import { radiusVariants } from '../../constants';
28
28
  import { useNavigationMenuContext } from '.';
@@ -42,8 +42,8 @@ export var navigationMenuContentVariants = cva("text-slate-12 dark:text-slateDar
42
42
  export var NavigationMenuContent = forwardRef(function (_a, ref) {
43
43
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
44
44
  var _b = useNavigationMenuContext(), radius = _b.radius, size = _b.size;
45
- return (<NavigationMenuPrimitive.Content ref={ref} className={cn("absolute top-0 left-0 w-full sm:w-auto\n data-[motion=from-start]:animate-enterFromLeft \n data-[motion=from-end]:animate-enterFromRight \n data-[motion=to-start]:animate-exitToLeft \n data-[motion=to-end]:animate-exitToRight", navigationMenuContentVariants({ radius: radius, size: size }), className)} {...props}>
46
- {children}
45
+ return (<NavigationMenuPrimitive.Content ref={ref} className={cn("absolute top-0 left-0 w-full sm:w-auto\n data-[motion=from-start]:animate-enterFromLeft \n data-[motion=from-end]:animate-enterFromRight \n data-[motion=to-start]:animate-exitToLeft \n data-[motion=to-end]:animate-exitToRight", navigationMenuContentVariants({ radius: radius, size: size }), className)} {...props}>
46
+ {children}
47
47
  </NavigationMenuPrimitive.Content>);
48
48
  });
49
49
  NavigationMenuContent.displayName = 'NavigationMenuContent';
@@ -11,12 +11,12 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import React, { forwardRef } from 'react';
13
13
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
14
- import { cn } from '../../utils/utils';
14
+ import { cn } from 'utils/utils';
15
15
  export var NavigationMenuIndicator = forwardRef(function (_a, ref) {
16
16
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
17
- return (<NavigationMenuPrimitive.Indicator ref={ref} className={"flex z-[1] top-full h-[10px] items-end justify-center overflow-hidden\n data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut \n transition-[width,transform_250ms_ease]"} {...props}>
18
- <div className={cn("relative top-[70%] h-[10px] w-[10px] rotate-[45deg] rounded-tl-[2px] \n bg-white dark:bg-slateDark-2 shadow-slate-4 shadow dark:shadow-slateDark-4", className)}/>
19
- {children}
17
+ return (<NavigationMenuPrimitive.Indicator ref={ref} className={"flex z-[1] top-full h-[10px] items-end justify-center overflow-hidden\n data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut \n transition-[width,transform_250ms_ease]"} {...props}>
18
+ <div className={cn("relative top-[70%] h-[10px] w-[10px] rotate-[45deg] rounded-tl-[2px] \n bg-white dark:bg-slateDark-2 shadow-slate-4 shadow dark:shadow-slateDark-4", className)}/>
19
+ {children}
20
20
  </NavigationMenuPrimitive.Indicator>);
21
21
  });
22
22
  NavigationMenuIndicator.displayName = 'NavigationMenuIndicator';
@@ -13,8 +13,8 @@ import React, { forwardRef } from 'react';
13
13
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
14
14
  export var NavigationMenuItem = forwardRef(function (_a, ref) {
15
15
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
16
- return (<NavigationMenuPrimitive.Item ref={ref} className={className} {...props}>
17
- {children}
16
+ return (<NavigationMenuPrimitive.Item ref={ref} className={className} {...props}>
17
+ {children}
18
18
  </NavigationMenuPrimitive.Item>);
19
19
  });
20
20
  NavigationMenuItem.displayName = 'NavigationMenuItem';
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React, { forwardRef } from 'react';
24
24
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
25
- import { cn } from '../../utils/utils';
25
+ import { cn } from 'utils/utils';
26
26
  import { cva } from 'class-variance-authority';
27
27
  import { appearanceStyle, radiusVariants, scalingVariants } from '../../constants';
28
28
  import { useNavigationMenuContext } from '.';
@@ -45,8 +45,8 @@ export var NavigationMenuLink = forwardRef(function (_a, ref) {
45
45
  var children = _a.children, className = _a.className, href = _a.href, props = __rest(_a, ["children", "className", "href"]);
46
46
  var _b = useNavigationMenuContext(), scaling = _b.scaling, size = _b.size, radius = _b.radius, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'ghost' : _d;
47
47
  var linkClassName = cn(navigationMenuLinkVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);
48
- return (<NavigationMenuPrimitive.Link ref={ref} href={href} title={href} className={linkClassName} {...props}>
49
- {children}
48
+ return (<NavigationMenuPrimitive.Link ref={ref} href={href} title={href} className={linkClassName} {...props}>
49
+ {children}
50
50
  </NavigationMenuPrimitive.Link>);
51
51
  });
52
52
  NavigationMenuLink.displayName = 'NavigationMenuLink';
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React, { forwardRef } from 'react';
24
24
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
25
- import { cn } from '../../utils/utils';
25
+ import { cn } from 'utils/utils';
26
26
  import { cva } from 'class-variance-authority';
27
27
  import { appearanceStyle, radiusVariants, scalingVariants } from '../../constants';
28
28
  import { NavigationMenuIndicator } from './NavigationMenuIndicator';
@@ -41,9 +41,9 @@ export var NavigationMenuList = forwardRef(function (_a, ref) {
41
41
  var children = _a.children, className = _a.className, _b = _a.isShowIndicator, isShowIndicator = _b === void 0 ? true : _b, props = __rest(_a, ["children", "className", "isShowIndicator"]);
42
42
  var _c = useNavigationMenuContext(), scaling = _c.scaling, radius = _c.radius, _d = _c.appearance, appearance = _d === void 0 ? 'ghost' : _d, _e = _c.color, color = _e === void 0 ? 'red' : _e;
43
43
  var navigationMenuListClassName = cn(navigationMenuListVariants({ scaling: scaling, radius: radius }), appearanceStyle(appearance, color, false), 'border-none', appearance === 'ghost' && 'bg-white', className);
44
- return (<NavigationMenuPrimitive.List ref={ref} className={navigationMenuListClassName} {...props}>
45
- {children}
46
- {isShowIndicator && <NavigationMenuIndicator />}
44
+ return (<NavigationMenuPrimitive.List ref={ref} className={navigationMenuListClassName} {...props}>
45
+ {children}
46
+ {isShowIndicator && <NavigationMenuIndicator />}
47
47
  </NavigationMenuPrimitive.List>);
48
48
  });
49
49
  NavigationMenuList.displayName = 'NavigationMenuList';
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React, { forwardRef } from 'react';
24
24
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
25
- import { cn } from '../../utils/utils';
25
+ import { cn } from 'utils/utils';
26
26
  import { cva } from 'class-variance-authority';
27
27
  import { appearanceStyle, scalingVariants } from '../../constants';
28
28
  import { CaretDownIcon } from '@radix-ui/react-icons';
@@ -52,9 +52,9 @@ export var NavigationMenuTrigger = forwardRef(function (_a, ref) {
52
52
  var children = _a.children, className = _a.className, _b = _a.isShowIcon, isShowIcon = _b === void 0 ? true : _b, props = __rest(_a, ["children", "className", "isShowIcon"]);
53
53
  var _c = useNavigationMenuContext(), scaling = _c.scaling, size = _c.size, radius = _c.radius, _d = _c.color, color = _d === void 0 ? 'red' : _d, _e = _c.appearance, appearance = _e === void 0 ? 'ghost' : _e;
54
54
  var triggerClassName = cn(navigationMenuTriggerVariants({ scaling: scaling, size: size, radius: radius }), appearanceStyle(appearance, color), className);
55
- return (<NavigationMenuPrimitive.Trigger ref={ref} className={triggerClassName} {...props}>
56
- {children}
57
- {isShowIcon && (<CaretDownIcon className={cn("relative top-[1px] transition-transform duration-[250] ease-in group-data-[state=open]:-rotate-180")} aria-hidden/>)}
55
+ return (<NavigationMenuPrimitive.Trigger ref={ref} className={triggerClassName} {...props}>
56
+ {children}
57
+ {isShowIcon && (<CaretDownIcon className={cn("relative top-[1px] transition-transform duration-[250] ease-in group-data-[state=open]:-rotate-180")} aria-hidden/>)}
58
58
  </NavigationMenuPrimitive.Trigger>);
59
59
  });
60
60
  NavigationMenuTrigger.displayName = 'NavigationMenuTrigger';
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import React, { forwardRef } from 'react';
24
24
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
25
- import { cn } from '../../utils/utils';
25
+ import { cn } from 'utils/utils';
26
26
  import { cva } from 'class-variance-authority';
27
27
  import { radiusVariants, scalingVariants, weightVariants } from '../../constants';
28
28
  import { useNavigationMenuContext } from '.';
@@ -47,8 +47,8 @@ export var NavigationMenuViewport = forwardRef(function (_a, ref) {
47
47
  var className = _a.className, props = __rest(_a, ["className"]);
48
48
  var _b = useNavigationMenuContext(), size = _b.size, scaling = _b.scaling, radius = _b.radius;
49
49
  var viewportClassName = cn(navigationViewportVariants({ size: size, scaling: scaling, radius: radius }), className);
50
- return (<div className="perspective-[2000px] absolute top-full left-0 flex w-full justify-center ">
51
- <NavigationMenuPrimitive.Viewport ref={ref} className={viewportClassName} {...props}/>
50
+ return (<div className="perspective-[2000px] absolute top-full left-0 flex w-full justify-center ">
51
+ <NavigationMenuPrimitive.Viewport ref={ref} className={viewportClassName} {...props}/>
52
52
  </div>);
53
53
  });
54
54
  NavigationMenuViewport.displayName = 'NavigationMenuViewport';
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import React, { forwardRef, createContext, useContext, } from 'react';
13
13
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
14
- import { cn } from '../../utils/utils';
14
+ import { cn } from 'utils/utils';
15
15
  export * from './NavigationMenuList';
16
16
  export * from './NavigationMenuItem';
17
17
  export * from './NavigationMenuTrigger';
@@ -32,10 +32,10 @@ export var useNavigationMenuContext = function () {
32
32
  export var NavigationMenu = forwardRef(function (_a, ref) {
33
33
  var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, scaling = _a.scaling, color = _a.color, appearance = _a.appearance, props = __rest(_a, ["className", "children", "radius", "size", "scaling", "color", "appearance"]);
34
34
  var contextValue = { radius: radius, size: size, scaling: scaling, color: color, appearance: appearance };
35
- return (<NavigationMenuContext.Provider value={contextValue}>
36
- <NavigationMenuPrimitive.Root ref={ref} className={cn('flex relative z-[1] w-screen justify-center', className)} {...props}>
37
- {children}
38
- </NavigationMenuPrimitive.Root>
35
+ return (<NavigationMenuContext.Provider value={contextValue}>
36
+ <NavigationMenuPrimitive.Root ref={ref} className={cn('flex relative z-[1] w-screen justify-center', className)} {...props}>
37
+ {children}
38
+ </NavigationMenuPrimitive.Root>
39
39
  </NavigationMenuContext.Provider>);
40
40
  });
41
41
  NavigationMenu.displayName = 'NavigationMenu';
@@ -24,7 +24,7 @@ import React from 'react';
24
24
  import { Pie } from 'react-chartjs-2';
25
25
  import { Chart as ChartJS, ArcElement, Tooltip, Legend, plugins } from 'chart.js';
26
26
  import ChartDataLabels from 'chartjs-plugin-datalabels';
27
- import { cn } from '../../utils/utils';
27
+ import { cn } from 'utils/utils';
28
28
  import { cva } from 'class-variance-authority';
29
29
  import { scalingVariants } from '../../constants';
30
30
  ChartJS.register(ArcElement, Tooltip, Legend, plugins, ChartDataLabels);
@@ -29,8 +29,8 @@ export var popoverCloseVariants = cva('', {
29
29
  });
30
30
  export var PopoverClose = forwardRef(function (_a, ref) {
31
31
  var className = _a.className, children = _a.children, radius = _a.radius, props = __rest(_a, ["className", "children", "radius"]);
32
- return (<PopoverTheme.Close ref={ref} className={cn(popoverCloseVariants({ radius: radius }), className)} {...props}>
33
- {children}
32
+ return (<PopoverTheme.Close ref={ref} className={cn(popoverCloseVariants({ radius: radius }), className)} {...props}>
33
+ {children}
34
34
  </PopoverTheme.Close>);
35
35
  });
36
36
  PopoverClose.displayName = 'PopoverClose';
@@ -57,8 +57,8 @@ export var PopoverContent = forwardRef(function (_a, ref) {
57
57
  sizeTheme = '3';
58
58
  if (size === 'x-large')
59
59
  sizeTheme = '4';
60
- return (<PopoverTheme.Content ref={ref} size={sizeTheme} className={cn(popoverContentVariants({ size: size, radius: radius, scaling: scaling }), className)} {...props}>
61
- {children}
60
+ return (<PopoverTheme.Content ref={ref} size={sizeTheme} className={cn(popoverContentVariants({ size: size, radius: radius, scaling: scaling }), className)} {...props}>
61
+ {children}
62
62
  </PopoverTheme.Content>);
63
63
  });
64
64
  PopoverContent.displayName = 'PopoverContent';
@@ -13,8 +13,8 @@ import React, { forwardRef } from 'react';
13
13
  import { Popover as PopoverTheme } from '@radix-ui/themes';
14
14
  export var PopoverTrigger = forwardRef(function (_a, ref) {
15
15
  var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
16
- return (<PopoverTheme.Trigger ref={ref} {...props} className={className}>
17
- {children}
16
+ return (<PopoverTheme.Trigger ref={ref} {...props} className={className}>
17
+ {children}
18
18
  </PopoverTheme.Trigger>);
19
19
  });
20
20
  PopoverTrigger.displayName = 'PopoverTrigger';
@@ -16,8 +16,8 @@ export * from './PopoverContent';
16
16
  export * from './PopoverClose';
17
17
  export var Popover = forwardRef(function (_a, ref) {
18
18
  var children = _a.children, props = __rest(_a, ["children"]);
19
- return (<Theme>
20
- <PopoverTheme.Root {...props}>{children}</PopoverTheme.Root>
19
+ return (<Theme>
20
+ <PopoverTheme.Root {...props}>{children}</PopoverTheme.Root>
21
21
  </Theme>);
22
22
  });
23
23
  Popover.displayName = 'Popover';
@@ -50,8 +50,8 @@ var progressVariants = cva('w-[300px]', {
50
50
  });
51
51
  export var Progress = forwardRef(function (_a, ref) {
52
52
  var className = _a.className, children = _a.children, radius = _a.radius, size = _a.size, value = _a.value, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, scaling = _a.scaling, props = __rest(_a, ["className", "children", "radius", "size", "value", "appearance", "color", "scaling"]);
53
- return (<Theme accentColor={color}>
54
- <ProgressTheme ref={ref} value={value} variant={appearance} className={cn(progressVariants({ radius: radius, size: size, scaling: scaling }), className)} {...props}/>
53
+ return (<Theme accentColor={color}>
54
+ <ProgressTheme ref={ref} value={value} variant={appearance} className={cn(progressVariants({ radius: radius, size: size, scaling: scaling }), className)} {...props}/>
55
55
  </Theme>);
56
56
  });
57
57
  Progress.displayName = 'Progress';
@@ -33,13 +33,13 @@ export var Radio = React.forwardRef(function (_a, ref) {
33
33
  sizeTheme = '1';
34
34
  if (size === 'large')
35
35
  sizeTheme = '3';
36
- return (<Theme accentColor={color} scaling={scaling}>
37
- <Flex asChild className={cn(radioVariants({ size: size }), className)}>
38
- <Text as="label" size={sizeTheme}>
39
- <RadioTheme ref={ref} value={value} variant={appearance} size={sizeTheme} {...props}/>
40
- {children}
41
- </Text>
42
- </Flex>
36
+ return (<Theme accentColor={color} scaling={scaling}>
37
+ <Flex asChild className={cn(radioVariants({ size: size }), className)}>
38
+ <Text as="label" size={sizeTheme}>
39
+ <RadioTheme ref={ref} value={value} variant={appearance} size={sizeTheme} {...props}/>
40
+ {children}
41
+ </Text>
42
+ </Flex>
43
43
  </Theme>);
44
44
  });
45
45
  Radio.displayName = 'Radio';
@@ -35,8 +35,8 @@ export var radioCardsItemVariants = cva('bg-white dark:bg-slateDark-1 text-slate
35
35
  });
36
36
  export var RadioCardsItem = forwardRef(function (_a, ref) {
37
37
  var children = _a.children, className = _a.className, radius = _a.radius, size = _a.size, value = _a.value, props = __rest(_a, ["children", "className", "radius", "size", "value"]);
38
- return (<RadioCardsTheme.Item ref={ref} value={value} className={cn(radioCardsItemVariants({ radius: radius, size: size }), className)} {...props}>
39
- {children}
38
+ return (<RadioCardsTheme.Item ref={ref} value={value} className={cn(radioCardsItemVariants({ radius: radius, size: size }), className)} {...props}>
39
+ {children}
40
40
  </RadioCardsTheme.Item>);
41
41
  });
42
42
  RadioCardsItem.displayName = 'RadioCardsItem';
@@ -36,10 +36,10 @@ var radioCardsVariants = cva('flex items-center gap-2', {
36
36
  });
37
37
  export var RadioCards = forwardRef(function (_a, ref) {
38
38
  var children = _a.children, className = _a.className, scaling = _a.scaling, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.color, color = _c === void 0 ? 'red' : _c, props = __rest(_a, ["children", "className", "scaling", "appearance", "color"]);
39
- return (<Theme accentColor={color}>
40
- <RadioCardsTheme.Root ref={ref} variant={appearance} className={cn(radioCardsVariants({ scaling: scaling }), className)} {...props}>
41
- {children}
42
- </RadioCardsTheme.Root>
39
+ return (<Theme accentColor={color}>
40
+ <RadioCardsTheme.Root ref={ref} variant={appearance} className={cn(radioCardsVariants({ scaling: scaling }), className)} {...props}>
41
+ {children}
42
+ </RadioCardsTheme.Root>
43
43
  </Theme>);
44
44
  });
45
45
  RadioCards.displayName = 'RadioCards';
@@ -27,8 +27,8 @@ var radioGroupItemVariants = cva('font-normal text-slate-12 dark:text-slateDark-
27
27
  });
28
28
  export var RadioGroupItem = forwardRef(function (_a, ref) {
29
29
  var className = _a.className, children = _a.children, value = _a.value, size = _a.size, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, props = __rest(_a, ["className", "children", "value", "size", "appearance"]);
30
- return (<RadioGroupTheme.Item ref={ref} value={value} className={cn(radioGroupItemVariants({ size: size }), className)} {...props}>
31
- {children}
30
+ return (<RadioGroupTheme.Item ref={ref} value={value} className={cn(radioGroupItemVariants({ size: size }), className)} {...props}>
31
+ {children}
32
32
  </RadioGroupTheme.Item>);
33
33
  });
34
34
  RadioGroupItem.displayName = 'RadioGroupItem';
@@ -33,10 +33,10 @@ export var RadioGroup = forwardRef(function (_a, ref) {
33
33
  sizeTheme = '1';
34
34
  if (size === 'large')
35
35
  sizeTheme = '3';
36
- return (<Theme accentColor={color} scaling={scaling}>
37
- <RadioGroupTheme.Root ref={ref} size={sizeTheme} variant={appearance} className={cn(radioGroupVariants({ size: size }), className)} {...props}>
38
- {children}
39
- </RadioGroupTheme.Root>
36
+ return (<Theme accentColor={color} scaling={scaling}>
37
+ <RadioGroupTheme.Root ref={ref} size={sizeTheme} variant={appearance} className={cn(radioGroupVariants({ size: size }), className)} {...props}>
38
+ {children}
39
+ </RadioGroupTheme.Root>
40
40
  </Theme>);
41
41
  });
42
42
  RadioGroup.displayName = 'RadioGroup';
@@ -18,10 +18,10 @@ export var ScrollArea = forwardRef(function (_a, ref) {
18
18
  sizeTheme = '2';
19
19
  if (size === 'large')
20
20
  sizeTheme = '3';
21
- return (<Theme>
22
- <ScrollAreaTheme ref={ref} scrollbars={scrollbars} radius={radius} size={sizeTheme} className={className} {...props}>
23
- {children}
24
- </ScrollAreaTheme>
21
+ return (<Theme>
22
+ <ScrollAreaTheme ref={ref} scrollbars={scrollbars} radius={radius} size={sizeTheme} className={className} {...props}>
23
+ {children}
24
+ </ScrollAreaTheme>
25
25
  </Theme>);
26
26
  });
27
27
  ScrollArea.displayName = 'ScrollArea';
@@ -18,8 +18,8 @@ export var SegmentedControlItem = forwardRef(function (_a, ref) {
18
18
  if (appearance === 'classic') {
19
19
  appearanceClassName = 'dark:data-[state=on]:shadow-segmented-control-dark-classic';
20
20
  }
21
- return (<SegmentedControlTheme.Item ref={ref} className={cn(appearanceClassName, className)} {...props}>
22
- {children}
21
+ return (<SegmentedControlTheme.Item ref={ref} className={cn(appearanceClassName, className)} {...props}>
22
+ {children}
23
23
  </SegmentedControlTheme.Item>);
24
24
  });
25
25
  SegmentedControlItem.displayName = 'SegmentedControlItem';