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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. package/README.md +78 -281
  2. package/dist/globals.css +4 -0
  3. package/dist/lib/Typography/Header/index.d.ts +1 -1
  4. package/dist/lib/Typography/Header/{index.jsx → index.js} +4 -7
  5. package/dist/lib/Typography/Text/index.d.ts +1 -1
  6. package/dist/lib/Typography/Text/{index.jsx → index.js} +5 -8
  7. package/dist/lib/components/Accordion/index.d.ts +1 -1
  8. package/dist/lib/components/Accordion/{index.jsx → index.js} +7 -19
  9. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +1 -1
  10. package/dist/lib/components/AlertDialog/{AlertDialogAction.jsx → AlertDialogAction.js} +5 -6
  11. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +1 -1
  12. package/dist/lib/components/AlertDialog/{AlertDialogCancel.jsx → AlertDialogCancel.js} +5 -6
  13. package/dist/lib/components/AlertDialog/{AlertDialogContent.jsx → AlertDialogContent.js} +5 -9
  14. package/dist/lib/components/AlertDialog/{AlertDialogDescription.jsx → AlertDialogDescription.js} +15 -5
  15. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +1 -1
  16. package/dist/lib/components/AlertDialog/{AlertDialogRoot.jsx → AlertDialogRoot.js} +14 -6
  17. package/dist/lib/components/AlertDialog/{AlertDialogTitle.jsx → AlertDialogTitle.js} +15 -5
  18. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +1 -1
  19. package/dist/lib/components/AlertDialog/{AlertDialogTrigger.jsx → AlertDialogTrigger.js} +5 -6
  20. package/dist/lib/components/AspectRatio/{index.jsx → index.js} +5 -6
  21. package/dist/lib/components/Avatar/{index.jsx → index.js} +5 -9
  22. package/dist/lib/components/Badge/index.d.ts +1 -1
  23. package/dist/lib/components/Badge/{index.jsx → index.js} +5 -6
  24. package/dist/lib/components/BarChart/index.d.ts +2 -3
  25. package/dist/lib/components/BarChart/{index.jsx → index.js} +7 -6
  26. package/dist/lib/components/BubbleChart/index.d.ts +2 -3
  27. package/dist/lib/components/BubbleChart/{index.jsx → index.js} +7 -7
  28. package/dist/lib/components/Button/index.d.ts +1 -1
  29. package/dist/lib/components/Button/{index.jsx → index.js} +5 -6
  30. package/dist/lib/components/Callout/{CalloutIcon.jsx → CalloutIcon.js} +5 -10
  31. package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
  32. package/dist/lib/components/Callout/{CalloutRoot.jsx → CalloutRoot.js} +5 -8
  33. package/dist/lib/components/Callout/{CalloutText.jsx → CalloutText.js} +15 -5
  34. package/dist/lib/components/Card/index.d.ts +1 -1
  35. package/dist/lib/components/Card/{index.jsx → index.js} +5 -6
  36. package/dist/lib/components/Checkbox/index.d.ts +1 -1
  37. package/dist/lib/components/Checkbox/{index.jsx → index.js} +6 -14
  38. package/dist/lib/components/CheckboxCard/index.d.ts +2 -2
  39. package/dist/lib/components/CheckboxCard/{index.jsx → index.js} +7 -9
  40. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +1 -1
  41. package/dist/lib/components/CheckboxGroup/{CheckboxGroupItem.jsx → CheckboxGroupItem.js} +15 -7
  42. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +2 -2
  43. package/dist/lib/components/CheckboxGroup/{CheckboxGroupRoot.jsx → CheckboxGroupRoot.js} +3 -6
  44. package/dist/lib/components/CheckboxGroup/index.d.ts +1 -1
  45. package/dist/lib/components/ContextMenu/{ContextMenuCheckboxItem.jsx → ContextMenuCheckboxItem.js} +16 -9
  46. package/dist/lib/components/ContextMenu/{ContextMenuContent.jsx → ContextMenuContent.js} +5 -8
  47. package/dist/lib/components/ContextMenu/{ContextMenuGroup.jsx → ContextMenuGroup.js} +14 -4
  48. package/dist/lib/components/ContextMenu/{ContextMenuItem.jsx → ContextMenuItem.js} +5 -7
  49. package/dist/lib/components/ContextMenu/{ContextMenuItemIndicator.jsx → ContextMenuItemIndicator.js} +5 -6
  50. package/dist/lib/components/ContextMenu/{ContextMenuLabel.jsx → ContextMenuLabel.js} +5 -6
  51. package/dist/lib/components/ContextMenu/{ContextMenuRadioGroup.jsx → ContextMenuRadioGroup.js} +14 -6
  52. package/dist/lib/components/ContextMenu/{ContextMenuRadioItem.jsx → ContextMenuRadioItem.js} +16 -9
  53. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +1 -1
  54. package/dist/lib/components/ContextMenu/{ContextMenuRoot.jsx → ContextMenuRoot.js} +14 -6
  55. package/dist/lib/components/ContextMenu/{ContextMenuSeparator.jsx → ContextMenuSeparator.js} +15 -5
  56. package/dist/lib/components/ContextMenu/{ContextMenuSubContent.jsx → ContextMenuSubContent.js} +9 -12
  57. package/dist/lib/components/ContextMenu/{ContextMenuSubTrigger.jsx → ContextMenuSubTrigger.js} +16 -11
  58. package/dist/lib/components/ContextMenu/{ContextMenuTrigger.jsx → ContextMenuTrigger.js} +15 -5
  59. package/dist/lib/components/DataList/{DataListItem.jsx → DataListItem.js} +5 -6
  60. package/dist/lib/components/DataList/{DataListLabel.jsx → DataListLabel.js} +5 -6
  61. package/dist/lib/components/DataList/{DataListRoot.jsx → DataListRoot.js} +15 -7
  62. package/dist/lib/components/DataList/{DataListValue.jsx → DataListValue.js} +5 -6
  63. package/dist/lib/components/Dialog/{DialogAction.jsx → DialogAction.js} +16 -6
  64. package/dist/lib/components/Dialog/{DialogCancel.jsx → DialogCancel.js} +15 -5
  65. package/dist/lib/components/Dialog/{DialogContent.jsx → DialogContent.js} +5 -6
  66. package/dist/lib/components/Dialog/{DialogDescription.jsx → DialogDescription.js} +15 -5
  67. package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -1
  68. package/dist/lib/components/Dialog/{DialogRoot.jsx → DialogRoot.js} +14 -6
  69. package/dist/lib/components/Dialog/{DialogSlot.jsx → DialogSlot.js} +15 -5
  70. package/dist/lib/components/Dialog/{DialogTitle.jsx → DialogTitle.js} +15 -5
  71. package/dist/lib/components/Dialog/{DialogTrigger.jsx → DialogTrigger.js} +14 -4
  72. package/dist/lib/components/Dialog/index.d.ts +1 -1
  73. package/dist/lib/components/DoughnutChart/index.d.ts +2 -3
  74. package/dist/lib/components/DoughnutChart/{index.jsx → index.js} +6 -6
  75. package/dist/lib/components/DropdownMenu/{DropdonMenuRadioGroup.jsx → DropdonMenuRadioGroup.js} +13 -3
  76. package/dist/lib/components/DropdownMenu/{DropdonMenuSubContent.jsx → DropdonMenuSubContent.js} +9 -12
  77. package/dist/lib/components/DropdownMenu/{DropdownMenuCheckboxItem.jsx → DropdownMenuCheckboxItem.js} +16 -9
  78. package/dist/lib/components/DropdownMenu/{DropdownMenuContent.jsx → DropdownMenuContent.js} +5 -8
  79. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  80. package/dist/lib/components/DropdownMenu/{DropdownMenuItem.jsx → DropdownMenuItem.js} +5 -7
  81. package/dist/lib/components/DropdownMenu/{DropdownMenuItemIndicator.jsx → DropdownMenuItemIndicator.js} +5 -6
  82. package/dist/lib/components/DropdownMenu/{DropdownMenuLable.jsx → DropdownMenuLable.js} +15 -5
  83. package/dist/lib/components/DropdownMenu/{DropdownMenuRadioItem.jsx → DropdownMenuRadioItem.js} +16 -9
  84. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +2 -2
  85. package/dist/lib/components/DropdownMenu/{DropdownMenuRoot.jsx → DropdownMenuRoot.js} +14 -4
  86. package/dist/lib/components/DropdownMenu/{DropdownMenuSeparator.jsx → DropdownMenuSeparator.js} +15 -3
  87. package/dist/lib/components/DropdownMenu/{DropdownMenuSub.jsx → DropdownMenuSub.js} +14 -2
  88. package/dist/lib/components/DropdownMenu/{DropdownMenuSubTrigger.jsx → DropdownMenuSubTrigger.js} +16 -9
  89. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  90. package/dist/lib/components/DropdownMenu/{DropdownMenuTrigger.jsx → DropdownMenuTrigger.js} +15 -5
  91. package/dist/lib/components/DropdownMenu/index.d.ts +1 -1
  92. package/dist/lib/components/HoverCard/{HoverCardContent.jsx → HoverCardContent.js} +5 -6
  93. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +1 -1
  94. package/dist/lib/components/HoverCard/{HoverCardRoot.jsx → HoverCardRoot.js} +14 -6
  95. package/dist/lib/components/HoverCard/{HoverCardTrigger.jsx → HoverCardTrigger.js} +14 -4
  96. package/dist/lib/components/HoverCard/index.d.ts +1 -1
  97. package/dist/lib/components/IconButton/index.d.ts +1 -1
  98. package/dist/lib/components/IconButton/{index.jsx → index.js} +4 -5
  99. package/dist/lib/components/Inset/{index.jsx → index.js} +5 -8
  100. package/dist/lib/components/Label/index.d.ts +1 -1
  101. package/dist/lib/components/Label/{index.jsx → index.js} +4 -5
  102. package/dist/lib/components/LineChart/index.d.ts +2 -3
  103. package/dist/lib/components/LineChart/{index.jsx → index.js} +7 -6
  104. package/dist/lib/components/Menubar/{MenubarCheckboxItem.jsx → MenubarCheckboxItem.js} +16 -9
  105. package/dist/lib/components/Menubar/{MenubarContent.jsx → MenubarContent.js} +9 -12
  106. package/dist/lib/components/Menubar/{MenubarItem.jsx → MenubarItem.js} +5 -7
  107. package/dist/lib/components/Menubar/{MenubarItemIndicator.jsx → MenubarItemIndicator.js} +5 -6
  108. package/dist/lib/components/Menubar/{MenubarMenu.jsx → MenubarMenu.js} +14 -2
  109. package/dist/lib/components/Menubar/{MenubarRadioGroup.jsx → MenubarRadioGroup.js} +14 -6
  110. package/dist/lib/components/Menubar/{MenubarRadioItem.jsx → MenubarRadioItem.js} +16 -9
  111. package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
  112. package/dist/lib/components/Menubar/{MenubarRoot.jsx → MenubarRoot.js} +5 -8
  113. package/dist/lib/components/Menubar/{MenubarSeparator.jsx → MenubarSeparator.js} +15 -5
  114. package/dist/lib/components/Menubar/{MenubarSub.jsx → MenubarSub.js} +14 -2
  115. package/dist/lib/components/Menubar/{MenubarSubContent.jsx → MenubarSubContent.js} +6 -7
  116. package/dist/lib/components/Menubar/{MenubarSubTrigger.jsx → MenubarSubTrigger.js} +16 -9
  117. package/dist/lib/components/Menubar/{MenubarTrigger.jsx → MenubarTrigger.js} +5 -6
  118. package/dist/lib/components/NavigationMenu/{NavigationMenuContent.jsx → NavigationMenuContent.js} +5 -6
  119. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
  120. package/dist/lib/components/NavigationMenu/{NavigationMenuItem.jsx → NavigationMenuItem.js} +14 -4
  121. package/dist/lib/components/NavigationMenu/{NavigationMenuLink.jsx → NavigationMenuLink.js} +5 -6
  122. package/dist/lib/components/NavigationMenu/{NavigationMenuList.jsx → NavigationMenuList.js} +5 -7
  123. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +1 -1
  124. package/dist/lib/components/NavigationMenu/{NavigationMenuRoot.jsx → NavigationMenuRoot.js} +15 -7
  125. package/dist/lib/components/NavigationMenu/{NavigationMenuTrigger.jsx → NavigationMenuTrigger.js} +5 -7
  126. package/dist/lib/components/NavigationMenu/{NavigationMenuViewport.jsx → NavigationMenuViewport.js} +5 -6
  127. package/dist/lib/components/PieChart/index.d.ts +2 -3
  128. package/dist/lib/components/PieChart/{index.jsx → index.js} +6 -6
  129. package/dist/lib/components/Popover/{PopoverClose.jsx → PopoverClose.js} +15 -5
  130. package/dist/lib/components/Popover/{PopoverContent.jsx → PopoverContent.js} +5 -6
  131. package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -1
  132. package/dist/lib/components/Popover/{PopoverRoot.jsx → PopoverRoot.js} +14 -6
  133. package/dist/lib/components/Popover/{PopoverTrigger.jsx → PopoverTrigger.js} +14 -4
  134. package/dist/lib/components/Popover/index.d.ts +1 -1
  135. package/dist/lib/components/Progress/{index.jsx → index.js} +5 -6
  136. package/dist/lib/components/RadarChart/index.d.ts +2 -3
  137. package/dist/lib/components/RadarChart/{index.jsx → index.js} +7 -7
  138. package/dist/lib/components/Radio/index.d.ts +1 -1
  139. package/dist/lib/components/Radio/{index.jsx → index.js} +15 -10
  140. package/dist/lib/components/RadioCards/{RadioCardsItem.jsx → RadioCardsItem.js} +15 -5
  141. package/dist/lib/components/RadioCards/{RadioCardsRoot.jsx → RadioCardsRoot.js} +5 -10
  142. package/dist/lib/components/RadioGroup/{RadioGroupItem.jsx → RadioGroupItem.js} +15 -5
  143. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
  144. package/dist/lib/components/RadioGroup/{RadioGroupRoot.jsx → RadioGroupRoot.js} +15 -9
  145. package/dist/lib/components/ScrollArea/{index.jsx → index.js} +14 -6
  146. package/dist/lib/components/SegmentedControl/{SegmentedControlItem.jsx → SegmentedControlItem.js} +15 -5
  147. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
  148. package/dist/lib/components/SegmentedControl/{SegmentedControlRoot.jsx → SegmentedControlRoot.js} +4 -7
  149. package/dist/lib/components/SegmentedControl/index.d.ts +1 -1
  150. package/dist/lib/components/Select/index.d.ts +1 -1
  151. package/dist/lib/components/Select/{index.jsx → index.js} +10 -27
  152. package/dist/lib/components/Separator/{index.jsx → index.js} +4 -7
  153. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  154. package/dist/lib/components/Skeleton/{index.jsx → index.js} +4 -7
  155. package/dist/lib/components/Slider/index.d.ts +1 -1
  156. package/dist/lib/components/Slider/{index.jsx → index.js} +4 -5
  157. package/dist/lib/components/Spinner/index.d.ts +1 -1
  158. package/dist/lib/components/Spinner/{index.jsx → index.js} +4 -7
  159. package/dist/lib/components/TabNav/{index.jsx → index.js} +15 -9
  160. package/dist/lib/components/Table/index.d.ts +1 -1
  161. package/dist/lib/components/Table/{index.jsx → index.js} +10 -25
  162. package/dist/lib/components/Tabs/{index.jsx → index.js} +7 -16
  163. package/dist/lib/components/TextArea/index.d.ts +1 -1
  164. package/dist/lib/components/TextArea/{index.jsx → index.js} +4 -5
  165. package/dist/lib/components/TextField/index.d.ts +1 -1
  166. package/dist/lib/components/TextField/{index.jsx → index.js} +5 -10
  167. package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
  168. package/dist/lib/components/Toast/{ToastActionButton.jsx → ToastActionButton.js} +6 -7
  169. package/dist/lib/components/Toast/ToastDescription.d.ts +1 -1
  170. package/dist/lib/components/Toast/{ToastDescription.jsx → ToastDescription.js} +15 -7
  171. package/dist/lib/components/Toast/{ToastRoot.jsx → ToastRoot.js} +5 -11
  172. package/dist/lib/components/Toast/ToastTitle.d.ts +1 -1
  173. package/dist/lib/components/Toast/{ToastTitle.jsx → ToastTitle.js} +15 -5
  174. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  175. package/dist/lib/components/Toggle/{ToggleWithText.jsx → ToggleWithText.js} +7 -9
  176. package/dist/lib/components/Toggle/index.d.ts +1 -1
  177. package/dist/lib/components/Toggle/{index.jsx → index.js} +5 -6
  178. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +1 -1
  179. package/dist/lib/components/ToggleGroup/{ToggleGroupItem.jsx → ToggleGroupItem.js} +16 -6
  180. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +1 -1
  181. package/dist/lib/components/ToggleGroup/{ToggleGroupRoot.jsx → ToggleGroupRoot.js} +5 -10
  182. package/dist/lib/components/ToggleSwitch/{index.jsx → index.js} +5 -9
  183. package/dist/lib/components/Tooltip/index.d.ts +1 -1
  184. package/dist/lib/components/Tooltip/{index.jsx → index.js} +4 -13
  185. package/dist/lib/constants.js +2 -2
  186. package/dist/lib/index.d.ts +2 -2
  187. package/dist/lib/index.js +2 -2
  188. package/dist/lib/utils/useDarkMode.js +1 -1
  189. package/dist/tailwind.config.d.ts +3 -0
  190. package/dist/tailwind.config.js +141 -0
  191. package/package.json +4 -2
  192. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +0 -22
  193. /package/dist/lib/components/AlertDialog/{index.jsx → index.js} +0 -0
  194. /package/dist/lib/components/Callout/{index.jsx → index.js} +0 -0
  195. /package/dist/lib/components/CheckboxGroup/{index.jsx → index.js} +0 -0
  196. /package/dist/lib/components/ContextMenu/{index.jsx → index.js} +0 -0
  197. /package/dist/lib/components/DataList/{index.jsx → index.js} +0 -0
  198. /package/dist/lib/components/Dialog/{index.jsx → index.js} +0 -0
  199. /package/dist/lib/components/DropdownMenu/{index.jsx → index.js} +0 -0
  200. /package/dist/lib/components/HoverCard/{index.jsx → index.js} +0 -0
  201. /package/dist/lib/components/Menubar/{index.jsx → index.js} +0 -0
  202. /package/dist/lib/components/NavigationMenu/{index.jsx → index.js} +0 -0
  203. /package/dist/lib/components/Popover/{index.jsx → index.js} +0 -0
  204. /package/dist/lib/components/RadioCards/{index.jsx → index.js} +0 -0
  205. /package/dist/lib/components/RadioGroup/{index.jsx → index.js} +0 -0
  206. /package/dist/lib/components/SegmentedControl/{index.jsx → index.js} +0 -0
  207. /package/dist/lib/components/Toast/{index.jsx → index.js} +0 -0
  208. /package/dist/lib/components/ToggleGroup/{index.jsx → index.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { IColor } from 'lib/types';
3
+ import { IColor } from '../../../lib/types';
4
4
  export interface SkeletonProps extends VariantProps<typeof separatorVariants> {
5
5
  color?: IColor;
6
6
  loading?: boolean;
@@ -20,11 +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";
23
24
  import React from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
26
  import { Theme, Skeleton as SkeletonTheme } from '@radix-ui/themes';
26
- import { cn } from 'lib/utils/utils';
27
- import { radiusVariants } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { radiusVariants } from '../../../lib/constants';
28
29
  var separatorVariants = cva('', {
29
30
  variants: {
30
31
  radius: __assign({}, radiusVariants['base']),
@@ -35,11 +36,7 @@ var separatorVariants = cva('', {
35
36
  });
36
37
  export var Skeleton = React.forwardRef(function (_a, forwardedRef) {
37
38
  var children = _a.children, className = _a.className, radius = _a.radius, loading = _a.loading, width = _a.width, height = _a.height, skeletonProps = __rest(_a, ["children", "className", "radius", "loading", "width", "height"]);
38
- return (<Theme>
39
- <SkeletonTheme ref={forwardedRef} loading={loading} width={width} height={height} className={cn('', radius && cn(separatorVariants({ radius: radius }), className))} {...skeletonProps}>
40
- {children}
41
- </SkeletonTheme>
42
- </Theme>);
39
+ return (_jsx(Theme, { children: _jsx(SkeletonTheme, __assign({ ref: forwardedRef, loading: loading, width: width, height: height, className: cn('', radius && cn(separatorVariants({ radius: radius }), className)) }, skeletonProps, { children: children })) }));
43
40
  });
44
41
  Skeleton.displayName = 'Skeleton';
45
42
  export default Skeleton;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { IScaling } from 'lib/types';
3
+ import { IScaling } from '../../../lib/types';
4
4
  export interface SliderProps extends VariantProps<typeof sliderVariants> {
5
5
  appearance?: 'classic' | 'soft' | 'surface';
6
6
  label?: string;
@@ -20,10 +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";
23
24
  import React from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
- import { cn } from 'lib/utils/utils';
26
- import { radiusVariants } from 'lib/constants';
26
+ import { cn } from '../../../lib/utils/utils';
27
+ import { radiusVariants } from '../../../lib/constants';
27
28
  import { Theme, Slider as SliderTheme } from '@radix-ui/themes';
28
29
  var sliderVariants = cva('relative flex items-center select-none touch-none w-[200px] h-5', {
29
30
  variants: {
@@ -42,9 +43,7 @@ export var Slider = React.forwardRef(function (_a, forwardedRef) {
42
43
  sizeTheme = '1';
43
44
  if (size === 'large')
44
45
  sizeTheme = '3';
45
- return (<Theme accentColor={color} scaling={scaling} hasBackground={false}>
46
- <SliderTheme ref={forwardedRef} variant={appearance} size={sizeTheme} radius={radius} color={color} className={cn(sliderVariants({ radius: radius }), className)} {...sliderProps}/>
47
- </Theme>);
46
+ return (_jsx(Theme, { accentColor: color, scaling: scaling, hasBackground: false, children: _jsx(SliderTheme, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, radius: radius, color: color, className: cn(sliderVariants({ radius: radius }), className) }, sliderProps)) }));
48
47
  });
49
48
  Slider.displayName = 'Slider';
50
49
  export default Slider;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { IColor } from 'lib/types';
3
+ import { IColor } from '../../../lib/types';
4
4
  export interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
5
5
  color?: IColor;
6
6
  loading?: boolean;
@@ -20,11 +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";
23
24
  import React from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
26
  import { Spinner as SpinnerTheme, Theme } from '@radix-ui/themes';
26
- import { cn } from 'lib/utils/utils';
27
- import { scalingVariants } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { scalingVariants } from '../../../lib/constants';
28
29
  var spinnerVariants = cva('', {
29
30
  variants: {
30
31
  scaling: __assign({}, scalingVariants),
@@ -40,11 +41,7 @@ export var Spinner = React.forwardRef(function (_a, forwardedRef) {
40
41
  sizeTheme = '1';
41
42
  if (size === 'large')
42
43
  sizeTheme = '3';
43
- return (<Theme hasBackground={false}>
44
- <SpinnerTheme ref={forwardedRef} loading={loading} size={sizeTheme} className={cn('', spinnerVariants({ scaling: scaling }), className)} {...spinnerProps}>
45
- {children}
46
- </SpinnerTheme>
47
- </Theme>);
44
+ return (_jsx(Theme, { hasBackground: false, children: _jsx(SpinnerTheme, __assign({ ref: forwardedRef, loading: loading, size: sizeTheme, className: cn('', spinnerVariants({ scaling: scaling }), className) }, spinnerProps, { children: children })) }));
48
45
  });
49
46
  Spinner.displayName = 'Spinner';
50
47
  export default Spinner;
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  var __rest = (this && this.__rest) || function (s, e) {
2
13
  var t = {};
3
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -9,10 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
9
20
  }
10
21
  return t;
11
22
  };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
12
24
  import React from 'react';
13
25
  import { cva } from 'class-variance-authority';
14
26
  import { TabNav as TabNavTheme, Theme } from '@radix-ui/themes';
15
- import { cn } from 'lib/utils/utils';
27
+ import { cn } from '../../../lib/utils/utils';
16
28
  var tabNavVariants = cva('', {
17
29
  variants: {},
18
30
  });
@@ -23,18 +35,12 @@ export var Root = React.forwardRef(function (_a, ref) {
23
35
  var sizeTheme = '2';
24
36
  if (size === 'small')
25
37
  sizeTheme = '1';
26
- return (<Theme accentColor={color} hasBackground={false}>
27
- <TabNavTheme.Root ref={ref} size={sizeTheme} className={cn('', tabNavVariants({}), className)} {...rootProps}>
28
- {children}
29
- </TabNavTheme.Root>
30
- </Theme>);
38
+ return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabNavTheme.Root, __assign({ ref: ref, size: sizeTheme, className: cn('', tabNavVariants({}), className) }, rootProps, { children: children })) }));
31
39
  });
32
40
  Root.displayName = 'TabNav.Root';
33
41
  export var Link = React.forwardRef(function (_a, ref) {
34
42
  var className = _a.className, children = _a.children, href = _a.href, linkProps = __rest(_a, ["className", "children", "href"]);
35
- return (<TabNavTheme.Link ref={ref} className={cn('text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12', tabNavVariants({}), className)} href={href} {...linkProps}>
36
- {children}
37
- </TabNavTheme.Link>);
43
+ return (_jsx(TabNavTheme.Link, __assign({ ref: ref, className: cn('text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12', tabNavVariants({}), className), href: href }, linkProps, { children: children })));
38
44
  });
39
45
  Link.displayName = 'TabNav.Link';
40
46
  var TabNav = {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { IColor } from 'lib/types';
3
+ import { IColor } from '../../../lib/types';
4
4
  import { Table as TableTheme } from '@radix-ui/themes';
5
5
  export interface TableProps extends VariantProps<typeof tableVariants> {
6
6
  color?: IColor;
@@ -20,11 +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";
23
24
  import React from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
26
  import { Table as TableTheme, Theme } from '@radix-ui/themes';
26
- import { cn } from 'lib/utils/utils';
27
- import { radiusVariants, scalingVariants } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { radiusVariants, scalingVariants } from '../../../lib/constants';
28
29
  var tableVariants = cva('', {
29
30
  variants: {
30
31
  scaling: __assign({}, scalingVariants),
@@ -52,53 +53,37 @@ export var Root = React.forwardRef(function (_a, ref) {
52
53
  sizeTheme = '3';
53
54
  if (radius === 'full')
54
55
  radius = 'large';
55
- return (<Theme hasBackground={false}>
56
- <TableTheme.Root ref={ref} className={cn('', tableVariants({ scaling: scaling, radius: radius }), className)} variant={appearance} size={sizeTheme} {...tableProps}>
57
- {children}
58
- </TableTheme.Root>
59
- </Theme>);
56
+ return (_jsx(Theme, { hasBackground: false, children: _jsx(TableTheme.Root, __assign({ ref: ref, className: cn('', tableVariants({ scaling: scaling, radius: radius }), className), variant: appearance, size: sizeTheme }, tableProps, { children: children })) }));
60
57
  });
61
58
  Root.displayName = 'Table.Root';
62
59
  export var Header = React.forwardRef(function (_a, forwardedRef) {
63
60
  var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
64
- return (<TableTheme.Header ref={forwardedRef} className={cn('', tableVariants({ scaling: scaling }), className)} {...props}>
65
- {children}
66
- </TableTheme.Header>);
61
+ return (_jsx(TableTheme.Header, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
67
62
  });
68
63
  Header.displayName = 'Table.Header';
69
64
  export var Body = React.forwardRef(function (_a, forwardedRef) {
70
65
  var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
71
- return (<TableTheme.Body ref={forwardedRef} className={cn('', tableVariants({ scaling: scaling }), className)} {...props}>
72
- {children}
73
- </TableTheme.Body>);
66
+ return (_jsx(TableTheme.Body, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
74
67
  });
75
68
  Body.displayName = 'Table.Body';
76
69
  export var Row = React.forwardRef(function (_a, forwardedRef) {
77
70
  var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
78
- return (<TableTheme.Row ref={forwardedRef} className={cn('', tableVariants({ scaling: scaling }), className)} {...props}>
79
- {children}
80
- </TableTheme.Row>);
71
+ return (_jsx(TableTheme.Row, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
81
72
  });
82
73
  Row.displayName = 'Table.Row';
83
74
  export var Cell = React.forwardRef(function (_a, forwardedRef) {
84
75
  var className = _a.className, children = _a.children, scaling = _a.scaling, cellProps = __rest(_a, ["className", "children", "scaling"]);
85
- return (<TableTheme.Cell className={cn('', tableVariants({ scaling: scaling }), className)} {...cellProps} ref={forwardedRef}>
86
- {children}
87
- </TableTheme.Cell>);
76
+ return (_jsx(TableTheme.Cell, __assign({ className: cn('', tableVariants({ scaling: scaling }), className) }, cellProps, { ref: forwardedRef, children: children })));
88
77
  });
89
78
  Cell.displayName = 'Table.Cell';
90
79
  export var ColumnHeaderCell = React.forwardRef(function (_a, forwardedRef) {
91
80
  var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, props = __rest(_a, ["className", "children", "scaling", "size"]);
92
- return (<TableTheme.ColumnHeaderCell ref={forwardedRef} className={cn('', tableVariants({ scaling: scaling }), tableRowVariants({ size: size }), className)} {...props}>
93
- {children}
94
- </TableTheme.ColumnHeaderCell>);
81
+ return (_jsx(TableTheme.ColumnHeaderCell, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), tableRowVariants({ size: size }), className) }, props, { children: children })));
95
82
  });
96
83
  ColumnHeaderCell.displayName = 'Table.ColumnHeaderCell';
97
84
  export var RowHeaderCell = React.forwardRef(function (_a, forwardedRef) {
98
85
  var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
99
- return (<TableTheme.RowHeaderCell ref={forwardedRef} className={cn('', tableVariants({ scaling: scaling }), className)} {...props}>
100
- {children}
101
- </TableTheme.RowHeaderCell>);
86
+ return (_jsx(TableTheme.RowHeaderCell, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
102
87
  });
103
88
  RowHeaderCell.displayName = 'Table.RowHeaderCell';
104
89
  var Table = {
@@ -20,11 +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";
23
24
  import { Theme, Tabs as TabsTheme } from '@radix-ui/themes';
24
25
  import React from 'react';
25
- import { cn } from 'lib/utils/utils';
26
+ import { cn } from '../../../lib/utils/utils';
26
27
  import { cva } from 'class-variance-authority';
27
- import { weightVariants } from 'lib/constants';
28
+ import { weightVariants } from '../../../lib/constants';
28
29
  var tabsVariants = cva('', {
29
30
  variants: {
30
31
  weight: __assign({}, weightVariants),
@@ -34,11 +35,7 @@ export var Root = React.forwardRef(function (_a, forwardedRef) {
34
35
  var className = _a.className, children = _a.children, color = _a.color, rootProps = __rest(_a, ["className", "children", "color"]);
35
36
  if (!color)
36
37
  color = 'red';
37
- return (<Theme accentColor={color} hasBackground={false}>
38
- <TabsTheme.Root {...rootProps} ref={forwardedRef} className={cn('', className)}>
39
- {children}
40
- </TabsTheme.Root>
41
- </Theme>);
38
+ return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabsTheme.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', className), children: children })) }));
42
39
  });
43
40
  Root.displayName = 'Tabs.Root';
44
41
  export var List = React.forwardRef(function (_a, forwardedRef) {
@@ -46,23 +43,17 @@ export var List = React.forwardRef(function (_a, forwardedRef) {
46
43
  var sizeTheme = '2';
47
44
  if (size === 'small')
48
45
  sizeTheme = '1';
49
- return (<TabsTheme.List ref={forwardedRef} size={sizeTheme} {...listProps} className={cn('', className)}>
50
- {children}
51
- </TabsTheme.List>);
46
+ return (_jsx(TabsTheme.List, __assign({ ref: forwardedRef, size: sizeTheme }, listProps, { className: cn('', className), children: children })));
52
47
  });
53
48
  List.displayName = 'Tabs.List';
54
49
  export var Trigger = React.forwardRef(function (_a, forwardedRef) {
55
50
  var className = _a.className, weight = _a.weight, children = _a.children, triggerProps = __rest(_a, ["className", "weight", "children"]);
56
- return (<TabsTheme.Trigger ref={forwardedRef} className={cn('text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12', className)} {...triggerProps}>
57
- {children}
58
- </TabsTheme.Trigger>);
51
+ return (_jsx(TabsTheme.Trigger, __assign({ ref: forwardedRef, className: cn('text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12', className) }, triggerProps, { children: children })));
59
52
  });
60
53
  Trigger.displayName = 'Tabs.Trigger';
61
54
  export var Content = React.forwardRef(function (_a, forwardedRef) {
62
55
  var className = _a.className, weight = _a.weight, children = _a.children, contentProps = __rest(_a, ["className", "weight", "children"]);
63
- return (<TabsTheme.Content ref={forwardedRef} {...contentProps} className={cn('mt-3', className)}>
64
- {children}
65
- </TabsTheme.Content>);
56
+ return (_jsx(TabsTheme.Content, __assign({ ref: forwardedRef }, contentProps, { className: cn('mt-3', className), children: children })));
66
57
  });
67
58
  Content.displayName = 'Tabs.Content';
68
59
  var Tabs = {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { IColor } from 'lib/types';
3
+ import { IColor } from '../../../lib/types';
4
4
  export interface TextAreaProps extends VariantProps<typeof textAreaNavVariants> {
5
5
  color?: IColor;
6
6
  href?: string;
@@ -20,11 +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";
23
24
  import React from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
26
  import { TextArea as TextAreaTheme, Theme } from '@radix-ui/themes';
26
- import { cn } from 'lib/utils/utils';
27
- import { radiusVariants, scalingVariants } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import { radiusVariants, scalingVariants } from '../../../lib/constants';
28
29
  var textAreaNavVariants = cva('w-[250px]', {
29
30
  variants: {
30
31
  size: {
@@ -51,9 +52,7 @@ export var TextArea = React.forwardRef(function (_a, forwardedRef) {
51
52
  sizeTheme = '3';
52
53
  if (!color)
53
54
  color = 'red';
54
- return (<Theme hasBackground={false} accentColor={color}>
55
- <TextAreaTheme ref={forwardedRef} variant={appearance} size={sizeTheme} className={cn(textAreaNavVariants({ size: size, scaling: scaling, radius: radius }), size === 'x-large' && 'rt-r-size-4', className)} {...textAreaProps}></TextAreaTheme>
56
- </Theme>);
55
+ return (_jsx(Theme, { hasBackground: false, accentColor: color, children: _jsx(TextAreaTheme, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, className: cn(textAreaNavVariants({ size: size, scaling: scaling, radius: radius }), size === 'x-large' && 'rt-r-size-4', className) }, textAreaProps)) }));
57
56
  });
58
57
  TextArea.displayName = 'TextArea';
59
58
  export default TextArea;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { TextField as TextFieldTheme } from '@radix-ui/themes';
4
- import { IScaling } from 'lib/types';
4
+ import { IScaling } from '../../../lib/types';
5
5
  export interface TextFieldProps extends VariantProps<typeof textFieldVariants> {
6
6
  appearance?: 'classic' | 'soft' | 'surface';
7
7
  label?: string;
@@ -20,10 +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";
23
24
  import React from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
- import { cn } from 'lib/utils/utils';
26
- import { bgColorStyle, radiusVariants } from 'lib/constants';
26
+ import { cn } from '../../../lib/utils/utils';
27
+ import { bgColorStyle, radiusVariants } from '../../../lib/constants';
27
28
  import { Theme, TextField as TextFieldTheme } from '@radix-ui/themes';
28
29
  var textFieldVariants = cva('', {
29
30
  variants: {
@@ -40,18 +41,12 @@ export var Root = React.forwardRef(function (_a, forwardedRef) {
40
41
  sizeTheme = '1';
41
42
  if (size === 'large')
42
43
  sizeTheme = '3';
43
- return (<Theme scaling={scaling} accentColor={color} hasBackground={false}>
44
- <TextFieldTheme.Root ref={forwardedRef} variant={appearance} size={sizeTheme} radius={radius} color={color} className={cn(textFieldVariants({ radius: radius }), className)} {...sliderProps}>
45
- {children}
46
- </TextFieldTheme.Root>
47
- </Theme>);
44
+ return (_jsx(Theme, { scaling: scaling, accentColor: color, hasBackground: false, children: _jsx(TextFieldTheme.Root, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, radius: radius, color: color, className: cn(textFieldVariants({ radius: radius }), className) }, sliderProps, { children: children })) }));
48
45
  });
49
46
  Root.displayName = 'TextField.Root';
50
47
  export var Slot = React.forwardRef(function (_a, forwardedRef) {
51
48
  var className = _a.className, color = _a.color, side = _a.side, radius = _a.radius, children = _a.children, sliderProps = __rest(_a, ["className", "color", "side", "radius", "children"]);
52
- return (<TextFieldTheme.Slot ref={forwardedRef} color={color} side={side} className={cn(textFieldVariants({ radius: radius }), className)} {...sliderProps}>
53
- {children}
54
- </TextFieldTheme.Slot>);
49
+ return (_jsx(TextFieldTheme.Slot, __assign({ ref: forwardedRef, color: color, side: side, className: cn(textFieldVariants({ radius: radius }), className) }, sliderProps, { children: children })));
55
50
  });
56
51
  Slot.displayName = 'TextField.Slot';
57
52
  var TextField = {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as ToastPrimitive from '@radix-ui/react-toast';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { IAppearance } from 'lib/types';
4
+ import { IAppearance } from '../../../lib/types';
5
5
  export interface ToastActionButtonProps extends VariantProps<typeof toastActionButtonVariants> {
6
6
  altText?: string;
7
7
  appearance?: IAppearance;
@@ -20,12 +20,13 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
24
25
  import * as ToastPrimitive from '@radix-ui/react-toast';
25
26
  import { cva } from 'class-variance-authority';
26
- import { cn } from 'lib/utils/utils';
27
- import Button from 'lib/components/Button';
28
- import { appearanceStyle, radiusVariants, scalingVariants } from 'lib/constants';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ import Button from '../../../lib/components/Button';
29
+ import { appearanceStyle, radiusVariants, scalingVariants } from '../../../lib/constants';
29
30
  import { useToastContext } from './ToastRoot';
30
31
  export var toastActionButtonVariants = cva("absolute items-center justify-center", {
31
32
  variants: {
@@ -61,8 +62,6 @@ export var ToastActionButton = forwardRef(function (_a, ref) {
61
62
  var buttonClassName = cn(toastActionButtonVariants({ size: size, radius: radius, scaling: scaling }), color && semantics.includes(color)
62
63
  ? getSemanticsStyle(color)
63
64
  : appearanceStyle(appearance, color !== null && color !== void 0 ? color : 'red'), className);
64
- return (<ToastPrimitive.Action ref={ref} altText={altText} {...props} className={buttonClassName} asChild>
65
- <Button>{children}</Button>
66
- </ToastPrimitive.Action>);
65
+ return (_jsx(ToastPrimitive.Action, __assign({ ref: ref, altText: altText }, props, { className: buttonClassName, asChild: true, children: _jsx(Button, { children: children }) })));
67
66
  });
68
67
  ToastActionButton.displayName = 'Toast.ActionButton';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as ToastPrimitive from '@radix-ui/react-toast';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { IAppearance } from 'lib/types';
4
+ import { IAppearance } from '../../../lib/types';
5
5
  export interface ToastDescriptionProps extends VariantProps<typeof toastDescriptionVariants> {
6
6
  contentText?: string;
7
7
  appearance?: IAppearance;
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  var __rest = (this && this.__rest) || function (s, e) {
2
13
  var t = {};
3
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -9,10 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
9
20
  }
10
21
  return t;
11
22
  };
12
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
13
25
  import * as ToastPrimitive from '@radix-ui/react-toast';
14
26
  import { cva } from 'class-variance-authority';
15
- import { cn } from 'lib/utils/utils';
27
+ import { cn } from '../../../lib/utils/utils';
16
28
  import { useToastContext } from './ToastRoot';
17
29
  export var toastDescriptionVariants = cva('flex m-0 text-wrap text-slate-11 dark:text-slateDark-11', {
18
30
  variants: {
@@ -36,10 +48,6 @@ export var toastDescriptionVariants = cva('flex m-0 text-wrap text-slate-11 dark
36
48
  export var ToastDescription = forwardRef(function (_a, ref) {
37
49
  var className = _a.className, children = _a.children, contentText = _a.contentText, props = __rest(_a, ["className", "children", "contentText"]);
38
50
  var _b = useToastContext(), size = _b.size, color = _b.color;
39
- return (<ToastPrimitive.Description ref={ref} {...props}>
40
- <p className={cn(toastDescriptionVariants({ size: size, color: color }), className)}>
41
- {contentText !== null && contentText !== void 0 ? contentText : children}
42
- </p>
43
- </ToastPrimitive.Description>);
51
+ return (_jsx(ToastPrimitive.Description, __assign({ ref: ref }, props, { children: _jsx("p", { className: cn(toastDescriptionVariants({ size: size, color: color }), className), children: contentText !== null && contentText !== void 0 ? contentText : children }) })));
44
52
  });
45
53
  ToastDescription.displayName = 'Toast.Description';
@@ -20,10 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import React, { forwardRef, createContext, useContext, useMemo, } from 'react';
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { forwardRef, createContext, useContext, useMemo, } from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
- import { cn } from 'lib/utils/utils';
26
- import { scalingVariants } from 'lib/constants';
26
+ import { cn } from '../../../lib/utils/utils';
27
+ import { scalingVariants } from '../../../lib/constants';
27
28
  import * as ToastPrimitive from '@radix-ui/react-toast';
28
29
  export var toastVariants = cva('flex bg-white dark:bg-slateDark-1', {
29
30
  variants: {
@@ -83,14 +84,7 @@ export var ToastRoot = forwardRef(function (_a, ref) {
83
84
  var contextValue = useMemo(function () { return ({ radius: radius, size: size, scaling: scaling, color: color }); }, [radius, size, scaling, color]);
84
85
  var toastRootStyle = "\n shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] \n flex flex-col px-[15px] relative justify-center\n data-[state=open]:animate-slideIn \n data-[state=closed]:animate-hide \n data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] \n data-[swipe=cancel]:translate-x-0 \n data-[swipe=cancel]:transition-[transform_200ms_ease-out] \n data-[swipe=end]:animate-swipeOut\n ";
85
86
  var toastClassName = cn(toastVariants({ radius: radius, scaling: scaling, size: size, color: color }), toastRootStyle, className);
86
- return (<ToastContext.Provider value={contextValue}>
87
- <ToastPrimitive.Provider swipeDirection="right" duration={duration}>
88
- <ToastPrimitive.Root ref={ref} className={toastClassName} open={openToast} onOpenChange={setOpenToast} {...props}>
89
- {children}
90
- </ToastPrimitive.Root>
91
- <ToastPrimitive.Viewport className={cn(toastViewportVariants({ toastPosition: toastPosition }))}/>
92
- </ToastPrimitive.Provider>
93
- </ToastContext.Provider>);
87
+ return (_jsx(ToastContext.Provider, { value: contextValue, children: _jsxs(ToastPrimitive.Provider, { swipeDirection: "right", duration: duration, children: [_jsx(ToastPrimitive.Root, __assign({ ref: ref, className: toastClassName, open: openToast, onOpenChange: setOpenToast }, props, { children: children })), _jsx(ToastPrimitive.Viewport, { className: cn(toastViewportVariants({ toastPosition: toastPosition })) })] }) }));
94
88
  });
95
89
  ToastRoot.displayName = 'Toast.Root';
96
90
  export default ToastRoot;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as ToastPrimitive from '@radix-ui/react-toast';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { IAppearance } from 'lib/types';
4
+ import { IAppearance } from '../../../lib/types';
5
5
  export interface ToastTitleProps extends VariantProps<typeof toastTitleVariants> {
6
6
  titleText?: string;
7
7
  appearance?: IAppearance;
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  var __rest = (this && this.__rest) || function (s, e) {
2
13
  var t = {};
3
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -9,10 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
9
20
  }
10
21
  return t;
11
22
  };
12
- import React, { forwardRef } from 'react';
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { forwardRef } from 'react';
13
25
  import * as ToastPrimitive from '@radix-ui/react-toast';
14
26
  import { cva } from 'class-variance-authority';
15
- import { cn } from 'lib/utils/utils';
27
+ import { cn } from '../../../lib/utils/utils';
16
28
  import { useToastContext } from './ToastRoot';
17
29
  export var toastTitleVariants = cva('flex mb-[5px] text-slate-12 dark:text-slateDark-12 text-wrap break-words font-medium', {
18
30
  variants: {
@@ -36,8 +48,6 @@ export var toastTitleVariants = cva('flex mb-[5px] text-slate-12 dark:text-slate
36
48
  export var ToastTitle = forwardRef(function (_a, ref) {
37
49
  var className = _a.className, children = _a.children, titleText = _a.titleText, props = __rest(_a, ["className", "children", "titleText"]);
38
50
  var _b = useToastContext(), size = _b.size, color = _b.color;
39
- return (<ToastPrimitive.Title ref={ref} {...props}>
40
- <p className={cn(toastTitleVariants({ size: size, color: color }), className)}>{titleText !== null && titleText !== void 0 ? titleText : children}</p>
41
- </ToastPrimitive.Title>);
51
+ return (_jsx(ToastPrimitive.Title, __assign({ ref: ref }, props, { children: _jsx("p", { className: cn(toastTitleVariants({ size: size, color: color }), className), children: titleText !== null && titleText !== void 0 ? titleText : children }) })));
42
52
  });
43
53
  ToastTitle.displayName = 'Toast.Title';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as TogglePrimitive from '@radix-ui/react-toggle';
4
- import { IAppearance } from 'lib/types';
4
+ import { IAppearance } from '../../../lib/types';
5
5
  export interface ToggleWithTextProps extends VariantProps<typeof toggleWithTextVariants> {
6
6
  text?: string;
7
7
  appearance?: IAppearance;
@@ -20,12 +20,13 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ import { jsxs as _jsxs } from "react/jsx-runtime";
23
24
  import React, { Children, forwardRef } from 'react';
24
25
  import { cva } from 'class-variance-authority';
25
26
  import * as TogglePrimitive from '@radix-ui/react-toggle';
26
- import { radiusVariants, toggleAppearanceStyle } from 'lib/constants';
27
- import { scalingVariants } from 'lib/constants';
28
- import { cn } from 'lib/utils/utils';
27
+ import { radiusVariants, toggleAppearanceStyle } from '../../../lib/constants';
28
+ import { scalingVariants } from '../../../lib/constants';
29
+ import { cn } from '../../../lib/utils/utils';
29
30
  var toggleWithTextVariants = cva('flex items-center justify-center box-border font-medium', {
30
31
  variants: {
31
32
  radius: __assign({}, radiusVariants['base']),
@@ -49,12 +50,9 @@ export var IconScaling = {
49
50
  };
50
51
  export var ToggleWithText = forwardRef(function (_a, ref) {
51
52
  var className = _a.className, children = _a.children, radius = _a.radius, _b = _a.size, size = _b === void 0 ? 'medium' : _b, scaling = _a.scaling, _c = _a.color, color = _c === void 0 ? 'red' : _c, _d = _a.appearance, appearance = _d === void 0 ? 'surface' : _d, text = _a.text, props = __rest(_a, ["className", "children", "radius", "size", "scaling", "color", "appearance", "text"]);
52
- return (<TogglePrimitive.Root ref={ref} className={cn(toggleWithTextVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className)} {...props}>
53
- {Children.map(children, function (child) {
54
- return React.cloneElement(child, { className: IconScaling[size] });
55
- })}
56
- {text}
57
- </TogglePrimitive.Root>);
53
+ return (_jsxs(TogglePrimitive.Root, __assign({ ref: ref, className: cn(toggleWithTextVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className) }, props, { children: [Children.map(children, function (child) {
54
+ return React.cloneElement(child, { className: IconScaling[size] });
55
+ }), text] })));
58
56
  });
59
57
  ToggleWithText.displayName = 'ToggleWithText';
60
58
  export default ToggleWithText;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as TogglePrimitive from '@radix-ui/react-toggle';
4
- import { IAppearance } from 'lib/types';
4
+ import { IAppearance } from '../../../lib/types';
5
5
  export * from './ToggleWithText';
6
6
  export interface ToggleProps extends VariantProps<typeof toggleVariants> {
7
7
  size?: 'small' | 'medium' | 'large';