@lotte-innovate/ui-component-test 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. package/README.md +163 -154
  2. package/dist/Typography/Header/index.d.ts +13 -0
  3. package/dist/Typography/Header/index.jsx +58 -0
  4. package/dist/Typography/Text/index.d.ts +16 -0
  5. package/dist/Typography/Text/index.jsx +47 -0
  6. package/dist/components/Accordion/index.jsx +13 -13
  7. package/dist/components/AlertDialog/AlertDialogAction.jsx +2 -2
  8. package/dist/components/AlertDialog/AlertDialogCancel.jsx +2 -2
  9. package/dist/components/AlertDialog/AlertDialogContent.jsx +5 -5
  10. package/dist/components/AlertDialog/AlertDialogDescription.jsx +2 -2
  11. package/dist/components/AlertDialog/AlertDialogTitle.jsx +2 -2
  12. package/dist/components/AlertDialog/AlertDialogTrigger.jsx +2 -2
  13. package/dist/components/AspectRatio/index.jsx +2 -2
  14. package/dist/components/Avatar/index.jsx +5 -5
  15. package/dist/components/Badge/index.jsx +2 -2
  16. package/dist/components/BubbleChart/index.d.ts +1 -1
  17. package/dist/components/BubbleChart/index.jsx +1 -0
  18. package/dist/components/Button/index.jsx +2 -2
  19. package/dist/components/Callout/CalloutIcon.jsx +6 -6
  20. package/dist/components/Callout/CalloutText.jsx +2 -2
  21. package/dist/components/Callout/index.jsx +4 -4
  22. package/dist/components/Card/index.jsx +2 -2
  23. package/dist/components/Checkbox/index.jsx +9 -9
  24. package/dist/components/CheckboxCard/index.jsx +3 -3
  25. package/dist/components/CheckboxGroup/CheckboxGroupItem.jsx +4 -4
  26. package/dist/components/CheckboxGroup/index.jsx +4 -4
  27. package/dist/components/ContextMenu/ContextMenuCheckboxItem.jsx +5 -5
  28. package/dist/components/ContextMenu/ContextMenuContent.jsx +4 -4
  29. package/dist/components/ContextMenu/ContextMenuGroup.jsx +2 -2
  30. package/dist/components/ContextMenu/ContextMenuItem.jsx +3 -3
  31. package/dist/components/ContextMenu/ContextMenuItemIndicator.jsx +2 -2
  32. package/dist/components/ContextMenu/ContextMenuLabel.jsx +2 -2
  33. package/dist/components/ContextMenu/ContextMenuRadioGroup.jsx +4 -4
  34. package/dist/components/ContextMenu/ContextMenuRadioItem.jsx +5 -5
  35. package/dist/components/ContextMenu/ContextMenuSeparator.jsx +2 -2
  36. package/dist/components/ContextMenu/ContextMenuSubContent.jsx +4 -4
  37. package/dist/components/ContextMenu/ContextMenuSubTrigger.jsx +7 -7
  38. package/dist/components/ContextMenu/ContextMenuTrigger.jsx +2 -2
  39. package/dist/components/ContextMenu/index.jsx +2 -2
  40. package/dist/components/DataList/DataListItem.jsx +2 -2
  41. package/dist/components/DataList/DataListLabel.jsx +2 -2
  42. package/dist/components/DataList/DataListValue.jsx +2 -2
  43. package/dist/components/DataList/index.jsx +4 -4
  44. package/dist/components/Dialog/DialogAction.jsx +2 -2
  45. package/dist/components/Dialog/DialogCancel.jsx +2 -2
  46. package/dist/components/Dialog/DialogContent.jsx +2 -2
  47. package/dist/components/Dialog/DialogDescription.jsx +2 -2
  48. package/dist/components/Dialog/DialogSlot.jsx +2 -2
  49. package/dist/components/Dialog/DialogTitle.jsx +2 -2
  50. package/dist/components/Dialog/DialogTrigger.jsx +2 -2
  51. package/dist/components/Dialog/index.jsx +2 -2
  52. package/dist/components/DropdownMenu/DropdonMenuRadioGroup.jsx +4 -4
  53. package/dist/components/DropdownMenu/DropdonMenuSubContent.jsx +4 -4
  54. package/dist/components/DropdownMenu/DropdownMenuCheckboxItem.jsx +5 -5
  55. package/dist/components/DropdownMenu/DropdownMenuContent.jsx +4 -4
  56. package/dist/components/DropdownMenu/DropdownMenuItem.jsx +3 -3
  57. package/dist/components/DropdownMenu/DropdownMenuItemIndicator.jsx +2 -2
  58. package/dist/components/DropdownMenu/DropdownMenuLable.jsx +2 -2
  59. package/dist/components/DropdownMenu/DropdownMenuRadioItem.jsx +5 -5
  60. package/dist/components/DropdownMenu/DropdownMenuSubTrigger.jsx +5 -5
  61. package/dist/components/DropdownMenu/DropdownMenuTrigger.jsx +2 -2
  62. package/dist/components/HoverCard/HoverCardContent.jsx +2 -2
  63. package/dist/components/HoverCard/HoverCardTrigger.jsx +2 -2
  64. package/dist/components/HoverCard/index.jsx +2 -2
  65. package/dist/components/IconButton/index.jsx +2 -2
  66. package/dist/components/Input/Input.stories.jsx +6 -6
  67. package/dist/components/Inset/index.jsx +4 -4
  68. package/dist/components/Label/index.jsx +2 -2
  69. package/dist/components/Menubar/MenubarCheckboxItem.jsx +5 -5
  70. package/dist/components/Menubar/MenubarContent.jsx +4 -4
  71. package/dist/components/Menubar/MenubarItem.jsx +3 -3
  72. package/dist/components/Menubar/MenubarItemIndicator.jsx +2 -2
  73. package/dist/components/Menubar/MenubarRadioGroup.jsx +4 -4
  74. package/dist/components/Menubar/MenubarRadioItem.jsx +5 -5
  75. package/dist/components/Menubar/MenubarSeparator.jsx +2 -2
  76. package/dist/components/Menubar/MenubarSubContent.jsx +2 -2
  77. package/dist/components/Menubar/MenubarSubTrigger.jsx +5 -5
  78. package/dist/components/Menubar/MenubarTrigger.jsx +2 -2
  79. package/dist/components/Menubar/index.jsx +4 -4
  80. package/dist/components/NavigationMenu/NavigationMenuContent.jsx +2 -2
  81. package/dist/components/NavigationMenu/NavigationMenuIndicator.jsx +3 -3
  82. package/dist/components/NavigationMenu/NavigationMenuItem.jsx +2 -2
  83. package/dist/components/NavigationMenu/NavigationMenuLink.jsx +2 -2
  84. package/dist/components/NavigationMenu/NavigationMenuList.jsx +3 -3
  85. package/dist/components/NavigationMenu/NavigationMenuTrigger.jsx +3 -3
  86. package/dist/components/NavigationMenu/NavigationMenuViewport.jsx +2 -2
  87. package/dist/components/NavigationMenu/index.jsx +4 -4
  88. package/dist/components/Popover/PopoverClose.jsx +2 -2
  89. package/dist/components/Popover/PopoverContent.jsx +2 -2
  90. package/dist/components/Popover/PopoverTrigger.jsx +2 -2
  91. package/dist/components/Popover/index.d.ts +1 -0
  92. package/dist/components/Popover/index.jsx +3 -2
  93. package/dist/components/Progress/index.d.ts +1 -1
  94. package/dist/components/Progress/index.jsx +3 -2
  95. package/dist/components/RadarChart/index.d.ts +1 -1
  96. package/dist/components/RadarChart/index.jsx +1 -0
  97. package/dist/components/Radio/index.d.ts +1 -1
  98. package/dist/components/Radio/index.jsx +8 -7
  99. package/dist/components/RadioCards/RadioCardsItem.jsx +2 -2
  100. package/dist/components/RadioCards/index.d.ts +1 -0
  101. package/dist/components/RadioCards/index.jsx +5 -4
  102. package/dist/components/RadioGroup/RadioGroupItem.jsx +2 -2
  103. package/dist/components/RadioGroup/index.d.ts +1 -0
  104. package/dist/components/RadioGroup/index.jsx +5 -4
  105. package/dist/components/ScrollArea/index.d.ts +1 -0
  106. package/dist/components/ScrollArea/index.jsx +5 -4
  107. package/dist/components/SegmentedControl/SegmentedControlItem.jsx +2 -2
  108. package/dist/components/SegmentedControl/index.d.ts +1 -0
  109. package/dist/components/SegmentedControl/index.jsx +5 -4
  110. package/dist/components/Select/index.d.ts +1 -1
  111. package/dist/components/Select/index.jsx +17 -16
  112. package/dist/components/Separator/index.d.ts +1 -1
  113. package/dist/components/Separator/index.jsx +5 -4
  114. package/dist/components/Skeleton/index.d.ts +1 -1
  115. package/dist/components/Skeleton/index.jsx +5 -4
  116. package/dist/components/Slider/index.d.ts +1 -1
  117. package/dist/components/Slider/index.jsx +3 -2
  118. package/dist/components/Spinner/index.d.ts +1 -1
  119. package/dist/components/Spinner/index.jsx +5 -4
  120. package/dist/components/TabNav/index.d.ts +1 -1
  121. package/dist/components/TabNav/index.jsx +7 -6
  122. package/dist/components/Table/index.d.ts +1 -1
  123. package/dist/components/Table/index.jsx +17 -16
  124. package/dist/components/Tabs/index.d.ts +1 -1
  125. package/dist/components/Tabs/index.jsx +11 -10
  126. package/dist/components/TextArea/index.d.ts +1 -1
  127. package/dist/components/TextArea/index.jsx +3 -2
  128. package/dist/components/TextField/index.d.ts +1 -1
  129. package/dist/components/TextField/index.jsx +7 -6
  130. package/dist/components/Toast/ToastActionButton.jsx +2 -2
  131. package/dist/components/Toast/ToastDescription.jsx +4 -4
  132. package/dist/components/Toast/ToastTitle.jsx +2 -2
  133. package/dist/components/Toast/index.d.ts +1 -0
  134. package/dist/components/Toast/index.jsx +8 -7
  135. package/dist/components/Toggle/ToggleWithText.jsx +3 -3
  136. package/dist/components/Toggle/index.d.ts +1 -0
  137. package/dist/components/Toggle/index.jsx +3 -2
  138. package/dist/components/ToggleGroup/index.d.ts +1 -0
  139. package/dist/components/ToggleGroup/index.jsx +5 -4
  140. package/dist/components/ToggleGroup/toggleGroupItem.jsx +2 -2
  141. package/dist/components/ToggleSwitch/index.d.ts +1 -1
  142. package/dist/components/ToggleSwitch/index.jsx +6 -5
  143. package/dist/components/Tooltip/index.d.ts +1 -1
  144. package/dist/components/Tooltip/index.jsx +10 -10
  145. package/dist/components/index.d.ts +0 -22
  146. package/dist/components/index.js +52 -22
  147. package/dist/index.js +51 -0
  148. package/package.json +120 -119
@@ -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';
@@ -13,3 +13,4 @@ declare const radioGroupVariants: (props?: ({
13
13
  size?: "small" | "medium" | "large" | null | undefined;
14
14
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
15
15
  export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
16
+ export default RadioGroup;
@@ -33,10 +33,11 @@ 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';
43
+ export default RadioGroup;
@@ -6,3 +6,4 @@ export interface ScrollAreaProps {
6
6
  scrollbars?: 'vertical' | 'horizontal' | 'both';
7
7
  }
8
8
  export declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
9
+ export default ScrollArea;
@@ -18,10 +18,11 @@ 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';
28
+ export default 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';
@@ -12,3 +12,4 @@ declare const segmentedControlVariants: (props?: ({
12
12
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
13
13
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
14
  export declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<SegmentedControlTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
15
+ export default SegmentedControl;
@@ -41,10 +41,11 @@ export var SegmentedControl = forwardRef(function (_a, ref) {
41
41
  sizeTheme = '1';
42
42
  if (size === 'large')
43
43
  sizeTheme = '3';
44
- return (<Theme>
45
- <SegmentedControlTheme.Root ref={ref} size={sizeTheme} radius={radius} variant={appearance} className={cn(segmentedControlVariants({ scaling: scaling }), className)} {...props}>
46
- {Children.map(children, function (child) { return React.cloneElement(child, { appearance: appearance }); })}
47
- </SegmentedControlTheme.Root>
44
+ return (<Theme>
45
+ <SegmentedControlTheme.Root ref={ref} size={sizeTheme} radius={radius} variant={appearance} className={cn(segmentedControlVariants({ scaling: scaling }), className)} {...props}>
46
+ {Children.map(children, function (child) { return React.cloneElement(child, { appearance: appearance }); })}
47
+ </SegmentedControlTheme.Root>
48
48
  </Theme>);
49
49
  });
50
50
  SegmentedControl.displayName = 'SegmentedControl';
51
+ export default SegmentedControl;
@@ -22,4 +22,4 @@ export declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectThem
22
22
  export declare const SelectGroup: React.ForwardRefExoticComponent<Omit<SelectTheme.GroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
23
23
  export declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectTheme.LabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
24
24
  export declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectTheme.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
25
- export {};
25
+ export default Select;
@@ -40,10 +40,10 @@ export var Select = React.forwardRef(function (_a) {
40
40
  sizeTheme = '1';
41
41
  if (size === 'large')
42
42
  sizeTheme = '3';
43
- return (<Theme scaling={scaling} accentColor={color} hasBackground={false}>
44
- <SelectTheme.Root size={sizeTheme} {...props}>
45
- {children}
46
- </SelectTheme.Root>
43
+ return (<Theme scaling={scaling} accentColor={color} hasBackground={false}>
44
+ <SelectTheme.Root size={sizeTheme} {...props}>
45
+ {children}
46
+ </SelectTheme.Root>
47
47
  </Theme>);
48
48
  });
49
49
  Select.displayName = 'Select';
@@ -51,8 +51,8 @@ export var SelectTrigger = React.forwardRef(function (_a, forwardedRef) {
51
51
  var _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, color = _a.color, size = _a.size, radius = _a.radius, children = _a.children, className = _a.className, props = __rest(_a, ["appearance", "color", "size", "radius", "children", "className"]);
52
52
  if (!color)
53
53
  color = 'red';
54
- return (<SelectTheme.Trigger ref={forwardedRef} variant={appearance} radius={radius} className={cn(selectVariants({ radius: radius }), selectAppearanceStyle(appearance, color), className)} {...props}>
55
- {children}
54
+ return (<SelectTheme.Trigger ref={forwardedRef} variant={appearance} radius={radius} className={cn(selectVariants({ radius: radius }), selectAppearanceStyle(appearance, color), className)} {...props}>
55
+ {children}
56
56
  </SelectTheme.Trigger>);
57
57
  });
58
58
  SelectTrigger.displayName = 'SelectTrigger';
@@ -62,36 +62,37 @@ export var SelectContent = React.forwardRef(function (_a, forwardedRef) {
62
62
  color = 'red';
63
63
  if (radius === 'full')
64
64
  radius = 'large';
65
- return (<SelectTheme.Content ref={forwardedRef} color={color} {...props} className={cn(selectVariants({ radius: radius }), className)}>
66
- {children}
65
+ return (<SelectTheme.Content ref={forwardedRef} color={color} {...props} className={cn(selectVariants({ radius: radius }), className)}>
66
+ {children}
67
67
  </SelectTheme.Content>);
68
68
  });
69
69
  SelectContent.displayName = 'SelectContent';
70
70
  export var SelectItem = React.forwardRef(function (_a, forwardedRef) {
71
71
  var value = _a.value, children = _a.children, className = _a.className, radius = _a.radius, props = __rest(_a, ["value", "children", "className", "radius"]);
72
- return (<SelectTheme.Item ref={forwardedRef} value={value} {...props} className={cn(selectVariants({ radius: radius }), className)}>
73
- {children}
72
+ return (<SelectTheme.Item ref={forwardedRef} value={value} {...props} className={cn(selectVariants({ radius: radius }), className)}>
73
+ {children}
74
74
  </SelectTheme.Item>);
75
75
  });
76
76
  SelectItem.displayName = 'SelectItem';
77
77
  export var SelectGroup = React.forwardRef(function (_a, forwardedRef) {
78
78
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
79
- return (<SelectTheme.Group ref={forwardedRef} {...props} className={className}>
80
- {children}
79
+ return (<SelectTheme.Group ref={forwardedRef} {...props} className={className}>
80
+ {children}
81
81
  </SelectTheme.Group>);
82
82
  });
83
83
  SelectGroup.displayName = 'SelectGroup';
84
84
  export var SelectLabel = React.forwardRef(function (_a, forwardedRef) {
85
85
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
86
- return (<SelectTheme.Label ref={forwardedRef} {...props} className={className}>
87
- {children}
86
+ return (<SelectTheme.Label ref={forwardedRef} {...props} className={className}>
87
+ {children}
88
88
  </SelectTheme.Label>);
89
89
  });
90
90
  SelectLabel.displayName = 'SelectLabel';
91
91
  export var SelectSeparator = React.forwardRef(function (_a, forwardedRef) {
92
92
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
93
- return (<SelectTheme.Separator ref={forwardedRef} {...props} className={className}>
94
- {children}
93
+ return (<SelectTheme.Separator ref={forwardedRef} {...props} className={className}>
94
+ {children}
95
95
  </SelectTheme.Separator>);
96
96
  });
97
97
  SelectSeparator.displayName = 'SelectSeparator';
98
+ export default Select;
@@ -8,4 +8,4 @@ declare const separatorVariants: (props?: ({
8
8
  color?: string | null | undefined;
9
9
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  export declare const Separator: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").SeparatorProps & React.RefAttributes<HTMLSpanElement>, "ref"> & SeparatorProps & React.RefAttributes<HTMLSpanElement>>;
11
- export {};
11
+ export default Separator;
@@ -40,10 +40,11 @@ export var Separator = React.forwardRef(function (_a, forwardedRef) {
40
40
  sizeTheme = '3';
41
41
  if (size === 'fill-large')
42
42
  sizeTheme = '4';
43
- return (<Theme hasBackground={false} className="flex justify-center items-center">
44
- <SeparatorTheme orientation={orientation} size={sizeTheme} className={cn("bg-".concat(color, "A-6 dark:bg-").concat(color, "DarkA-6"), separatorVariants({ scaling: scaling }), className)} {...props}>
45
- {children}
46
- </SeparatorTheme>
43
+ return (<Theme hasBackground={false} className="flex justify-center items-center">
44
+ <SeparatorTheme orientation={orientation} size={sizeTheme} className={cn("bg-".concat(color, "A-6 dark:bg-").concat(color, "DarkA-6"), separatorVariants({ scaling: scaling }), className)} {...props}>
45
+ {children}
46
+ </SeparatorTheme>
47
47
  </Theme>);
48
48
  });
49
49
  Separator.displayName = 'Separator';
50
+ export default Separator;
@@ -12,4 +12,4 @@ declare const separatorVariants: (props?: ({
12
12
  radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
13
13
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
14
  export declare const Skeleton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & SkeletonProps & React.RefAttributes<HTMLSpanElement>>;
15
- export {};
15
+ export default Skeleton;
@@ -36,10 +36,11 @@ var separatorVariants = cva('', {
36
36
  });
37
37
  export var Skeleton = React.forwardRef(function (_a, forwardedRef) {
38
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"]);
39
- return (<Theme>
40
- <SkeletonTheme ref={forwardedRef} loading={loading} width={width} height={height} className={cn('', radius && cn(separatorVariants({ radius: radius }), className))} {...skeletonProps}>
41
- {children}
42
- </SkeletonTheme>
39
+ return (<Theme>
40
+ <SkeletonTheme ref={forwardedRef} loading={loading} width={width} height={height} className={cn('', radius && cn(separatorVariants({ radius: radius }), className))} {...skeletonProps}>
41
+ {children}
42
+ </SkeletonTheme>
43
43
  </Theme>);
44
44
  });
45
45
  Skeleton.displayName = 'Skeleton';
46
+ export default Skeleton;
@@ -12,4 +12,4 @@ declare const sliderVariants: (props?: ({
12
12
  radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
13
13
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
14
  export declare const Slider: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & SliderProps & React.RefAttributes<HTMLSpanElement>>;
15
- export {};
15
+ export default Slider;
@@ -43,8 +43,9 @@ export var Slider = React.forwardRef(function (_a, forwardedRef) {
43
43
  sizeTheme = '1';
44
44
  if (size === 'large')
45
45
  sizeTheme = '3';
46
- return (<Theme accentColor={color} scaling={scaling} hasBackground={false}>
47
- <SliderTheme ref={forwardedRef} variant={appearance} size={sizeTheme} radius={radius} color={color} className={cn(sliderVariants({ radius: radius }), className)} {...sliderProps}/>
46
+ return (<Theme accentColor={color} scaling={scaling} hasBackground={false}>
47
+ <SliderTheme ref={forwardedRef} variant={appearance} size={sizeTheme} radius={radius} color={color} className={cn(sliderVariants({ radius: radius }), className)} {...sliderProps}/>
48
48
  </Theme>);
49
49
  });
50
50
  Slider.displayName = 'Slider';
51
+ export default Slider;
@@ -12,4 +12,4 @@ declare const spinnerVariants: (props?: ({
12
12
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
13
13
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
14
  export declare const Spinner: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
15
- export {};
15
+ export default Spinner;
@@ -40,10 +40,11 @@ export var Spinner = React.forwardRef(function (_a, forwardedRef) {
40
40
  sizeTheme = '1';
41
41
  if (size === 'large')
42
42
  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>
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
47
  </Theme>);
48
48
  });
49
49
  Spinner.displayName = 'Spinner';
50
+ export default Spinner;
@@ -8,4 +8,4 @@ export interface TabNavProps extends VariantProps<typeof tabNavVariants> {
8
8
  declare const tabNavVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
9
  export declare const TabNav: React.ForwardRefExoticComponent<Omit<TabNavTheme.RootProps & React.RefAttributes<HTMLElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLElement>>;
10
10
  export declare const TabNavLink: React.ForwardRefExoticComponent<Omit<TabNavTheme.LinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLAnchorElement>>;
11
- export {};
11
+ export default TabNav;
@@ -23,17 +23,18 @@ export var TabNav = React.forwardRef(function (_a, ref) {
23
23
  var sizeTheme = '2';
24
24
  if (size === 'small')
25
25
  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>
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
30
  </Theme>);
31
31
  });
32
32
  TabNav.displayName = 'TabNav';
33
33
  export var TabNavLink = React.forwardRef(function (_a, ref) {
34
34
  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 dark:text-slateDarkA-11 data-[state=active]:text-slateA-12 dark:data-[state=active]:text-slateDarkA-12', tabNavVariants({}), className)} href={href} {...linkProps}>
36
- {children}
35
+ return (<TabNavTheme.Link ref={ref} className={cn('text-slateA-11 dark:text-slateDarkA-11 data-[state=active]:text-slateA-12 dark:data-[state=active]:text-slateDarkA-12', tabNavVariants({}), className)} href={href} {...linkProps}>
36
+ {children}
37
37
  </TabNavTheme.Link>);
38
38
  });
39
39
  TabNavLink.displayName = 'TabNav.Link';
40
+ export default TabNav;
@@ -17,4 +17,4 @@ export declare const TableRow: React.ForwardRefExoticComponent<Omit<React.Detail
17
17
  export declare const TableCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableRowElement>>;
18
18
  export declare const TableColumnHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
19
19
  export declare const TableRowHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
20
- export {};
20
+ export default Table;
@@ -52,52 +52,53 @@ export var Table = React.forwardRef(function (_a) {
52
52
  sizeTheme = '3';
53
53
  if (radius === 'full')
54
54
  radius = 'large';
55
- return (<Theme hasBackground={false}>
56
- <TableTheme.Root className={cn('', tableVariants({ scaling: scaling, radius: radius }), className)} variant={appearance} size={sizeTheme} {...tableProps}>
57
- {children}
58
- </TableTheme.Root>
55
+ return (<Theme hasBackground={false}>
56
+ <TableTheme.Root className={cn('', tableVariants({ scaling: scaling, radius: radius }), className)} variant={appearance} size={sizeTheme} {...tableProps}>
57
+ {children}
58
+ </TableTheme.Root>
59
59
  </Theme>);
60
60
  });
61
61
  Table.displayName = 'Table';
62
62
  export var TableHeader = React.forwardRef(function (_a, forwardedRef) {
63
63
  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}
64
+ return (<TableTheme.Header ref={forwardedRef} className={cn('', tableVariants({ scaling: scaling }), className)} {...props}>
65
+ {children}
66
66
  </TableTheme.Header>);
67
67
  });
68
68
  TableHeader.displayName = 'TableHeader';
69
69
  export var TableBody = React.forwardRef(function (_a, forwardedRef) {
70
70
  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}
71
+ return (<TableTheme.Body ref={forwardedRef} className={cn('', tableVariants({ scaling: scaling }), className)} {...props}>
72
+ {children}
73
73
  </TableTheme.Body>);
74
74
  });
75
75
  TableBody.displayName = 'TableBody';
76
76
  export var TableRow = React.forwardRef(function (_a, forwardedRef) {
77
77
  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}
78
+ return (<TableTheme.Row ref={forwardedRef} className={cn('', tableVariants({ scaling: scaling }), className)} {...props}>
79
+ {children}
80
80
  </TableTheme.Row>);
81
81
  });
82
82
  TableRow.displayName = 'TableRow';
83
83
  export var TableCell = React.forwardRef(function (_a, forwardedRef) {
84
84
  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)}>
86
- {children}
85
+ return (<TableTheme.Cell className={cn('', tableVariants({ scaling: scaling }), className)}>
86
+ {children}
87
87
  </TableTheme.Cell>);
88
88
  });
89
89
  TableCell.displayName = 'TableCell';
90
90
  export var TableColumnHeaderCell = React.forwardRef(function (_a, forwardedRef) {
91
91
  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}
92
+ return (<TableTheme.ColumnHeaderCell ref={forwardedRef} className={cn('', tableVariants({ scaling: scaling }), tableRowVariants({ size: size }), className)} {...props}>
93
+ {children}
94
94
  </TableTheme.ColumnHeaderCell>);
95
95
  });
96
96
  TableColumnHeaderCell.displayName = 'TableColumnHeaderCell';
97
97
  export var TableRowHeaderCell = React.forwardRef(function (_a, forwardedRef) {
98
98
  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}
99
+ return (<TableTheme.RowHeaderCell ref={forwardedRef} className={cn('', tableVariants({ scaling: scaling }), className)} {...props}>
100
+ {children}
101
101
  </TableTheme.RowHeaderCell>);
102
102
  });
103
103
  TableRowHeaderCell.displayName = 'TableRowHeaderCell';
104
+ export default Table;
@@ -13,4 +13,4 @@ export declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsTheme.RootPr
13
13
  export declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsTheme.ListProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
14
14
  export declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & TabsProps & React.RefAttributes<HTMLButtonElement>>;
15
15
  export declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
16
- export {};
16
+ export default Tabs;
@@ -34,10 +34,10 @@ export var Tabs = React.forwardRef(function (_a, forwardedRef) {
34
34
  var className = _a.className, children = _a.children, color = _a.color, rootProps = __rest(_a, ["className", "children", "color"]);
35
35
  if (!color)
36
36
  color = 'red';
37
- return (<Theme accentColor={color} hasBackground={false}>
38
- <TabsTheme.Root {...rootProps} ref={forwardedRef} className={cn('', className)}>
39
- {children}
40
- </TabsTheme.Root>
37
+ return (<Theme accentColor={color} hasBackground={false}>
38
+ <TabsTheme.Root {...rootProps} ref={forwardedRef} className={cn('', className)}>
39
+ {children}
40
+ </TabsTheme.Root>
41
41
  </Theme>);
42
42
  });
43
43
  Tabs.displayName = 'Tabs';
@@ -46,22 +46,23 @@ export var TabsList = React.forwardRef(function (_a, forwardedRef) {
46
46
  var sizeTheme = '2';
47
47
  if (size === 'small')
48
48
  sizeTheme = '1';
49
- return (<TabsTheme.List ref={forwardedRef} size={sizeTheme} {...listProps} className={cn('', className)}>
50
- {children}
49
+ return (<TabsTheme.List ref={forwardedRef} size={sizeTheme} {...listProps} className={cn('', className)}>
50
+ {children}
51
51
  </TabsTheme.List>);
52
52
  });
53
53
  TabsList.displayName = 'TabsList';
54
54
  export var TabsTrigger = React.forwardRef(function (_a, forwardedRef) {
55
55
  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 dark:text-slateDarkA-11 data-[state=active]:text-slateA-12 dark:data-[state=active]:text-slateDarkA-12', className)} {...triggerProps}>
57
- {children}
56
+ return (<TabsTheme.Trigger ref={forwardedRef} className={cn('text-slateA-11 dark:text-slateDarkA-11 data-[state=active]:text-slateA-12 dark:data-[state=active]:text-slateDarkA-12', className)} {...triggerProps}>
57
+ {children}
58
58
  </TabsTheme.Trigger>);
59
59
  });
60
60
  TabsTrigger.displayName = 'TabsTrigger';
61
61
  export var TabsContent = React.forwardRef(function (_a, forwardedRef) {
62
62
  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}
63
+ return (<TabsTheme.Content ref={forwardedRef} {...contentProps} className={cn('mt-3', className)}>
64
+ {children}
65
65
  </TabsTheme.Content>);
66
66
  });
67
67
  TabsContent.displayName = 'TabsTrigger';
68
+ export default Tabs;
@@ -13,4 +13,4 @@ declare const textAreaNavVariants: (props?: ({
13
13
  radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
14
14
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
15
15
  export declare const TextArea: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").TextAreaProps & React.RefAttributes<HTMLTextAreaElement>, "ref"> & TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
16
- export {};
16
+ export default TextArea;
@@ -51,8 +51,9 @@ export var TextArea = React.forwardRef(function (_a, forwardedRef) {
51
51
  sizeTheme = '3';
52
52
  if (!color)
53
53
  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>
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
56
  </Theme>);
57
57
  });
58
58
  TextArea.displayName = 'TextArea';
59
+ export default TextArea;
@@ -15,4 +15,4 @@ declare const textFieldVariants: (props?: ({
15
15
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
16
16
  export declare const TextField: React.ForwardRefExoticComponent<Omit<TextFieldTheme.RootProps & React.RefAttributes<HTMLInputElement>, "ref"> & TextFieldProps & React.RefAttributes<HTMLInputElement>>;
17
17
  export declare const TextFieldSlot: React.ForwardRefExoticComponent<Omit<TextFieldTheme.SlotProps & React.RefAttributes<HTMLDivElement>, "ref"> & TextFieldProps & React.RefAttributes<HTMLDivElement>>;
18
- export {};
18
+ export default TextField;
@@ -41,17 +41,18 @@ export var TextField = React.forwardRef(function (_a, forwardedRef) {
41
41
  sizeTheme = '1';
42
42
  if (size === 'large')
43
43
  sizeTheme = '3';
44
- return (<Theme scaling={scaling} accentColor={color} hasBackground={false}>
45
- <TextFieldTheme.Root ref={forwardedRef} variant={appearance} size={sizeTheme} radius={radius} color={color} className={cn(textFieldVariants({ radius: radius }), className)} {...sliderProps}>
46
- {children}
47
- </TextFieldTheme.Root>
44
+ return (<Theme scaling={scaling} accentColor={color} hasBackground={false}>
45
+ <TextFieldTheme.Root ref={forwardedRef} variant={appearance} size={sizeTheme} radius={radius} color={color} className={cn(textFieldVariants({ radius: radius }), className)} {...sliderProps}>
46
+ {children}
47
+ </TextFieldTheme.Root>
48
48
  </Theme>);
49
49
  });
50
50
  TextField.displayName = 'TextField';
51
51
  export var TextFieldSlot = React.forwardRef(function (_a, forwardedRef) {
52
52
  var className = _a.className, color = _a.color, side = _a.side, radius = _a.radius, children = _a.children, sliderProps = __rest(_a, ["className", "color", "side", "radius", "children"]);
53
- return (<TextFieldTheme.Slot ref={forwardedRef} color={color} side={side} className={cn(textFieldVariants({ radius: radius }), className)} {...sliderProps}>
54
- {children}
53
+ return (<TextFieldTheme.Slot ref={forwardedRef} color={color} side={side} className={cn(textFieldVariants({ radius: radius }), className)} {...sliderProps}>
54
+ {children}
55
55
  </TextFieldTheme.Slot>);
56
56
  });
57
57
  TextFieldSlot.displayName = 'TextFieldSlot';
58
+ export default TextField;
@@ -61,8 +61,8 @@ export var ToastActionButton = forwardRef(function (_a, ref) {
61
61
  var buttonClassName = cn(toastActionButtonVariants({ size: size, radius: radius, scaling: scaling }), color && semantics.includes(color)
62
62
  ? getSemanticsStyle(color)
63
63
  : 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>
64
+ return (<ToastPrimitive.Action ref={ref} altText={altText} {...props} className={buttonClassName} asChild>
65
+ <Button>{children}</Button>
66
66
  </ToastPrimitive.Action>);
67
67
  });
68
68
  ToastActionButton.displayName = 'ToastActionButton';
@@ -36,10 +36,10 @@ export var toastDescriptionVariants = cva('flex m-0 text-wrap text-slate-11 dark
36
36
  export var ToastDescription = forwardRef(function (_a, ref) {
37
37
  var className = _a.className, children = _a.children, contentText = _a.contentText, props = __rest(_a, ["className", "children", "contentText"]);
38
38
  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>
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
43
  </ToastPrimitive.Description>);
44
44
  });
45
45
  ToastDescription.displayName = 'ToastDescription';
@@ -36,8 +36,8 @@ export var toastTitleVariants = cva('flex mb-[5px] text-slate-12 dark:text-slate
36
36
  export var ToastTitle = forwardRef(function (_a, ref) {
37
37
  var className = _a.className, children = _a.children, titleText = _a.titleText, props = __rest(_a, ["className", "children", "titleText"]);
38
38
  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>
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
41
  </ToastPrimitive.Title>);
42
42
  });
43
43
  ToastTitle.displayName = 'ToastTitle';
@@ -27,3 +27,4 @@ export declare const toastViewportVariants: (props?: ({
27
27
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
28
28
  export declare const useToastContext: () => ToastProps;
29
29
  export declare const Toast: React.ForwardRefExoticComponent<ToastPrimitive.ToastProviderProps & ToastProps & React.RefAttributes<never>>;
30
+ export default Toast;
@@ -87,13 +87,14 @@ export var Toast = forwardRef(function (_a, ref) {
87
87
  var contextValue = { radius: radius, size: size, scaling: scaling, color: color };
88
88
  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 ";
89
89
  var toastClassName = cn(toastVariants({ radius: radius, scaling: scaling, size: size, color: color }), toastRootStyle, className);
90
- return ReactDOM.createPortal(<ToastContext.Provider value={contextValue}>
91
- <ToastPrimitive.Provider swipeDirection="right" duration={duration}>
92
- <ToastPrimitive.Root ref={ref} className={toastClassName} open={openToast} onOpenChange={setOpenToast} {...props}>
93
- {children}
94
- </ToastPrimitive.Root>
95
- <ToastPrimitive.Viewport className={cn(toastViewportVariants({ toastPosition: toastPosition }))}/>
96
- </ToastPrimitive.Provider>
90
+ return ReactDOM.createPortal(<ToastContext.Provider value={contextValue}>
91
+ <ToastPrimitive.Provider swipeDirection="right" duration={duration}>
92
+ <ToastPrimitive.Root ref={ref} className={toastClassName} open={openToast} onOpenChange={setOpenToast} {...props}>
93
+ {children}
94
+ </ToastPrimitive.Root>
95
+ <ToastPrimitive.Viewport className={cn(toastViewportVariants({ toastPosition: toastPosition }))}/>
96
+ </ToastPrimitive.Provider>
97
97
  </ToastContext.Provider>, document.body);
98
98
  });
99
99
  Toast.displayName = 'Toast';
100
+ export default Toast;
@@ -49,11 +49,11 @@ export var IconScaling = {
49
49
  };
50
50
  export var ToggleWithText = forwardRef(function (_a, ref) {
51
51
  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}>
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
53
  {Children.map(children, function (child) {
54
54
  return React.cloneElement(child, { className: IconScaling[size] });
55
- })}
56
- {text}
55
+ })}
56
+ {text}
57
57
  </TogglePrimitive.Root>);
58
58
  });
59
59
  ToggleWithText.displayName = 'ToggleWithText';
@@ -18,3 +18,4 @@ export declare const IconScaling: {
18
18
  large: string;
19
19
  };
20
20
  export declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & ToggleProps & React.RefAttributes<HTMLButtonElement>>;
21
+ export default Toggle;
@@ -49,10 +49,11 @@ export var IconScaling = {
49
49
  };
50
50
  export var Toggle = forwardRef(function (_a, ref) {
51
51
  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, props = __rest(_a, ["className", "children", "radius", "size", "scaling", "color", "appearance"]);
52
- return (<TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className)} {...props}>
52
+ return (<TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className)} {...props}>
53
53
  {Children.map(children, function (child) {
54
54
  return React.cloneElement(child, { className: IconScaling[size] });
55
- })}
55
+ })}
56
56
  </TogglePrimitive.Root>);
57
57
  });
58
58
  Toggle.displayName = 'Toggle';
59
+ export default Toggle;