@lotte-innovate/ui-component-test 0.1.18 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/README.md +71 -71
  2. package/dist/globals.css +4 -4
  3. package/dist/lib/components/Accordion/index.d.ts +10 -4
  4. package/dist/lib/components/Accordion/index.js +17 -11
  5. package/dist/lib/components/AlertDialog/AlertDialogAction.js +1 -1
  6. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +1 -1
  7. package/dist/lib/components/AlertDialog/AlertDialogContent.js +2 -2
  8. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +1 -1
  9. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +7 -2
  10. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +1 -1
  11. package/dist/lib/components/Avatar/index.d.ts +3 -0
  12. package/dist/lib/components/Avatar/index.js +3 -2
  13. package/dist/lib/components/BarChart/index.d.ts +5 -3
  14. package/dist/lib/components/BarChart/index.js +12 -1
  15. package/dist/lib/components/BubbleChart/index.d.ts +3 -0
  16. package/dist/lib/components/Callout/CalloutIcon.js +3 -3
  17. package/dist/lib/components/Callout/CalloutRoot.d.ts +18 -0
  18. package/dist/lib/components/Callout/CalloutRoot.js +72 -0
  19. package/dist/lib/components/Callout/CalloutText.js +2 -2
  20. package/dist/lib/components/Callout/index.d.ts +6 -19
  21. package/dist/lib/components/Callout/index.js +7 -73
  22. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +2 -2
  23. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +16 -0
  24. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +34 -0
  25. package/dist/lib/components/CheckboxGroup/index.d.ts +5 -16
  26. package/dist/lib/components/CheckboxGroup/index.js +3 -34
  27. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +1 -1
  28. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +4 -2
  29. package/dist/lib/components/ContextMenu/ContextMenuContent.js +2 -2
  30. package/dist/lib/components/ContextMenu/ContextMenuGroup.d.ts +1 -1
  31. package/dist/lib/components/ContextMenu/ContextMenuGroup.js +1 -1
  32. package/dist/lib/components/ContextMenu/ContextMenuItem.js +2 -2
  33. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +2 -2
  34. package/dist/lib/components/ContextMenu/ContextMenuLabel.js +2 -2
  35. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +1 -1
  36. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +1 -1
  37. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +5 -2
  38. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +13 -0
  39. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +42 -0
  40. package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +1 -1
  41. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +4 -3
  42. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +2 -2
  43. package/dist/lib/components/ContextMenu/ContextMenuTrigger.d.ts +1 -1
  44. package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +2 -2
  45. package/dist/lib/components/ContextMenu/index.d.ts +16 -24
  46. package/dist/lib/components/ContextMenu/index.js +27 -52
  47. package/dist/lib/components/DataList/DataListItem.js +2 -2
  48. package/dist/lib/components/DataList/DataListLabel.js +2 -2
  49. package/dist/lib/components/DataList/DataListRoot.d.ts +14 -0
  50. package/dist/lib/components/DataList/DataListRoot.js +54 -0
  51. package/dist/lib/components/DataList/DataListValue.js +2 -2
  52. package/dist/lib/components/DataList/index.d.ts +7 -16
  53. package/dist/lib/components/DataList/index.js +5 -56
  54. package/dist/lib/components/Dialog/DialogAction.d.ts +0 -2
  55. package/dist/lib/components/Dialog/DialogAction.js +7 -5
  56. package/dist/lib/components/Dialog/DialogCancel.js +5 -3
  57. package/dist/lib/components/Dialog/DialogContent.js +5 -3
  58. package/dist/lib/components/Dialog/DialogDescription.js +5 -3
  59. package/dist/lib/components/Dialog/DialogRoot.d.ts +12 -0
  60. package/dist/lib/components/Dialog/DialogRoot.js +37 -0
  61. package/dist/lib/components/Dialog/DialogSlot.js +5 -3
  62. package/dist/lib/components/Dialog/DialogTitle.js +5 -3
  63. package/dist/lib/components/Dialog/DialogTrigger.js +1 -1
  64. package/dist/lib/components/Dialog/index.d.ts +11 -17
  65. package/dist/lib/components/Dialog/index.js +17 -36
  66. package/dist/lib/components/DoughnutChart/index.js +9 -18
  67. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +0 -5
  68. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +3 -4
  69. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +5 -3
  70. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +1 -1
  71. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +7 -4
  72. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +5 -3
  73. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +2 -0
  74. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +5 -3
  75. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +5 -3
  76. package/dist/lib/components/DropdownMenu/DropdownMenuLable.d.ts +0 -1
  77. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +5 -6
  78. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +4 -2
  79. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +8 -6
  80. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +12 -0
  81. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +38 -0
  82. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +1 -1
  83. package/dist/lib/components/DropdownMenu/DropdownMenuSub.js +1 -1
  84. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +5 -3
  85. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +2 -1
  86. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +5 -3
  87. package/dist/lib/components/DropdownMenu/index.d.ts +16 -22
  88. package/dist/lib/components/DropdownMenu/index.js +27 -41
  89. package/dist/lib/components/HoverCard/HoverCardContent.js +5 -3
  90. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +8 -0
  91. package/dist/lib/components/HoverCard/HoverCardRoot.js +38 -0
  92. package/dist/lib/components/HoverCard/HoverCardTrigger.js +1 -1
  93. package/dist/lib/components/HoverCard/index.d.ts +6 -9
  94. package/dist/lib/components/HoverCard/index.js +7 -31
  95. package/dist/lib/components/LineChart/index.d.ts +87 -0
  96. package/dist/lib/components/LineChart/index.js +58 -0
  97. package/dist/lib/components/Menubar/MenubarCheckboxItem.js +2 -2
  98. package/dist/lib/components/Menubar/MenubarContent.js +2 -2
  99. package/dist/lib/components/Menubar/MenubarItem.js +2 -2
  100. package/dist/lib/components/Menubar/MenubarItemIndicator.js +2 -2
  101. package/dist/lib/components/Menubar/MenubarMenu.js +1 -1
  102. package/dist/lib/components/Menubar/MenubarRadioGroup.js +1 -1
  103. package/dist/lib/components/Menubar/MenubarRadioItem.js +2 -2
  104. package/dist/lib/components/Menubar/MenubarRoot.d.ts +19 -0
  105. package/dist/lib/components/Menubar/MenubarRoot.js +61 -0
  106. package/dist/lib/components/Menubar/MenubarSeparator.js +1 -1
  107. package/dist/lib/components/Menubar/MenubarSub.js +1 -1
  108. package/dist/lib/components/Menubar/MenubarSubContent.js +2 -2
  109. package/dist/lib/components/Menubar/MenubarSubTrigger.js +2 -2
  110. package/dist/lib/components/Menubar/MenubarTrigger.js +2 -2
  111. package/dist/lib/components/Menubar/index.d.ts +16 -30
  112. package/dist/lib/components/Menubar/index.js +27 -71
  113. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -2
  114. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +1 -1
  115. package/dist/lib/components/NavigationMenu/NavigationMenuItem.js +1 -1
  116. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +2 -2
  117. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +2 -2
  118. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +14 -0
  119. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +43 -0
  120. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +2 -2
  121. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +2 -2
  122. package/dist/lib/components/NavigationMenu/index.d.ts +11 -20
  123. package/dist/lib/components/NavigationMenu/index.js +9 -49
  124. package/dist/lib/components/PieChart/index.js +9 -18
  125. package/dist/lib/components/Popover/PopoverClose.js +5 -3
  126. package/dist/lib/components/Popover/PopoverContent.js +5 -3
  127. package/dist/lib/components/Popover/PopoverRoot.d.ts +9 -0
  128. package/dist/lib/components/Popover/PopoverRoot.js +36 -0
  129. package/dist/lib/components/Popover/PopoverTrigger.js +1 -1
  130. package/dist/lib/components/Popover/index.d.ts +7 -11
  131. package/dist/lib/components/Popover/index.js +9 -32
  132. package/dist/lib/components/RadioCards/RadioCardsItem.js +5 -3
  133. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +14 -0
  134. package/dist/lib/components/RadioCards/RadioCardsRoot.js +46 -0
  135. package/dist/lib/components/RadioCards/index.d.ts +5 -13
  136. package/dist/lib/components/RadioCards/index.js +5 -41
  137. package/dist/lib/components/RadioGroup/RadioGroupItem.js +5 -3
  138. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +16 -0
  139. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +53 -0
  140. package/dist/lib/components/RadioGroup/index.d.ts +5 -15
  141. package/dist/lib/components/RadioGroup/index.js +5 -49
  142. package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +1 -1
  143. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +14 -0
  144. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +47 -0
  145. package/dist/lib/components/SegmentedControl/index.d.ts +5 -14
  146. package/dist/lib/components/SegmentedControl/index.js +5 -46
  147. package/dist/lib/components/Select/index.d.ts +16 -7
  148. package/dist/lib/components/Select/index.js +23 -14
  149. package/dist/lib/components/TabNav/index.d.ts +6 -2
  150. package/dist/lib/components/TabNav/index.js +9 -5
  151. package/dist/lib/components/Table/index.d.ts +16 -7
  152. package/dist/lib/components/Table/index.js +23 -14
  153. package/dist/lib/components/Tabs/index.d.ts +10 -4
  154. package/dist/lib/components/Tabs/index.js +15 -9
  155. package/dist/lib/components/TextField/index.d.ts +6 -2
  156. package/dist/lib/components/TextField/index.js +8 -4
  157. package/dist/lib/components/Toast/ToastActionButton.js +2 -2
  158. package/dist/lib/components/Toast/ToastDescription.js +2 -2
  159. package/dist/lib/components/Toast/ToastRoot.d.ts +27 -0
  160. package/dist/lib/components/Toast/ToastRoot.js +90 -0
  161. package/dist/lib/components/Toast/ToastTitle.js +2 -2
  162. package/dist/lib/components/Toast/index.d.ts +7 -29
  163. package/dist/lib/components/Toast/index.js +9 -92
  164. package/dist/lib/components/ToggleGroup/{toggleGroupItem.js → ToggleGroupItem.js} +6 -4
  165. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +18 -0
  166. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +47 -0
  167. package/dist/lib/components/ToggleGroup/index.d.ts +5 -19
  168. package/dist/lib/components/ToggleGroup/index.js +5 -41
  169. package/dist/lib/components/Tooltip/index.d.ts +3 -3
  170. package/dist/lib/components/Tooltip/index.js +3 -2
  171. package/dist/lib/components/index.d.ts +1 -0
  172. package/dist/lib/components/index.js +1 -0
  173. package/dist/lib/constants.d.ts +0 -9
  174. package/dist/lib/constants.js +0 -7
  175. package/package.json +131 -132
  176. /package/dist/lib/components/ToggleGroup/{toggleGroupItem.d.ts → ToggleGroupItem.d.ts} +0 -0
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import { SegmentedControl as SegmentedControlTheme } from '@radix-ui/themes';
4
+ export * from './SegmentedControlItem';
5
+ import { ISize } from '../../../lib/types';
6
+ export interface SegmentedControlProps extends VariantProps<typeof segmentedControlVariants> {
7
+ appearance?: 'surface' | 'classic';
8
+ size?: Exclude<ISize, 'x-small' | 'x-large'>;
9
+ radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
10
+ }
11
+ declare const segmentedControlVariants: (props?: ({
12
+ scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
13
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
+ export declare const SegmentedControlRoot: React.ForwardRefExoticComponent<Omit<SegmentedControlTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,47 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import React, { Children, forwardRef } from 'react';
25
+ import { cva } from 'class-variance-authority';
26
+ import { SegmentedControl as SegmentedControlTheme, Theme } from '@radix-ui/themes';
27
+ import { scalingVariants } from '../../../lib/constants';
28
+ export * from './SegmentedControlItem';
29
+ import { cn } from '../../../lib/utils/utils';
30
+ var segmentedControlVariants = cva('text-slateA-12 dark:text-slateDarkA-12', {
31
+ variants: {
32
+ scaling: __assign({}, scalingVariants),
33
+ },
34
+ defaultVariants: {
35
+ scaling: '100%',
36
+ },
37
+ });
38
+ export var SegmentedControlRoot = forwardRef(function (_a, ref) {
39
+ var children = _a.children, className = _a.className, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.radius, radius = _c === void 0 ? 'medium' : _c, _d = _a.size, size = _d === void 0 ? 'medium' : _d, scaling = _a.scaling, props = __rest(_a, ["children", "className", "appearance", "radius", "size", "scaling"]);
40
+ var sizeTheme = '2';
41
+ if (size === 'small')
42
+ sizeTheme = '1';
43
+ if (size === 'large')
44
+ sizeTheme = '3';
45
+ return (_jsx(Theme, { children: _jsx(SegmentedControlTheme.Root, __assign({ ref: ref, size: sizeTheme, radius: radius, variant: appearance, className: cn(segmentedControlVariants({ scaling: scaling }), className) }, props, { children: Children.map(children, function (child) { return React.cloneElement(child, { appearance: appearance }); }) })) }));
46
+ });
47
+ SegmentedControlRoot.displayName = 'SegmentedControl.Root';
@@ -1,15 +1,6 @@
1
- import React from 'react';
2
- import { VariantProps } from 'class-variance-authority';
3
- import { SegmentedControl as SegmentedControlTheme } from '@radix-ui/themes';
4
- export * from './SegmentedControlItem';
5
- import { ISize } from '../../../lib/types';
6
- export interface SegmentedControlProps extends VariantProps<typeof segmentedControlVariants> {
7
- appearance?: 'surface' | 'classic';
8
- size?: Exclude<ISize, 'x-small' | 'x-large'>;
9
- radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
10
- }
11
- declare const segmentedControlVariants: (props?: ({
12
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
13
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
- export declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<SegmentedControlTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
1
+ /// <reference types="react" />
2
+ declare const SegmentedControl: {
3
+ Root: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/segmented-control").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./SegmentedControlRoot").SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/segmented-control").ItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("../../../lib/components/SegmentedControl/SegmentedControlItem").SegmentedControlItemProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ };
15
6
  export default SegmentedControl;
@@ -1,48 +1,7 @@
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);
1
+ import { SegmentedControlRoot } from './SegmentedControlRoot';
2
+ import { SegmentedControlItem } from './SegmentedControlRoot';
3
+ var SegmentedControl = {
4
+ Root: SegmentedControlRoot,
5
+ Item: SegmentedControlItem,
11
6
  };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import React, { Children, forwardRef } from 'react';
25
- import { cva } from 'class-variance-authority';
26
- import { SegmentedControl as SegmentedControlTheme, Theme } from '@radix-ui/themes';
27
- import { scalingVariants } from '../../../lib/constants';
28
- export * from './SegmentedControlItem';
29
- import { cn } from '../../../lib/utils/utils';
30
- var segmentedControlVariants = cva('text-slateA-12 dark:text-slateDarkA-12', {
31
- variants: {
32
- scaling: __assign({}, scalingVariants),
33
- },
34
- defaultVariants: {
35
- scaling: '100%',
36
- },
37
- });
38
- export var SegmentedControl = forwardRef(function (_a, ref) {
39
- var children = _a.children, className = _a.className, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.radius, radius = _c === void 0 ? 'medium' : _c, _d = _a.size, size = _d === void 0 ? 'medium' : _d, scaling = _a.scaling, props = __rest(_a, ["children", "className", "appearance", "radius", "size", "scaling"]);
40
- var sizeTheme = '2';
41
- if (size === 'small')
42
- sizeTheme = '1';
43
- if (size === 'large')
44
- sizeTheme = '3';
45
- return (_jsx(Theme, { children: _jsx(SegmentedControlTheme.Root, __assign({ ref: ref, size: sizeTheme, radius: radius, variant: appearance, className: cn(segmentedControlVariants({ scaling: scaling }), className) }, props, { children: Children.map(children, function (child) { return React.cloneElement(child, { appearance: appearance }); }) })) }));
46
- });
47
- SegmentedControl.displayName = 'SegmentedControl';
48
7
  export default SegmentedControl;
@@ -15,11 +15,20 @@ export interface SelectProps extends VariantProps<typeof selectVariants> {
15
15
  declare const selectVariants: (props?: ({
16
16
  radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
17
17
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
18
- export declare const Select: React.ForwardRefExoticComponent<SelectTheme.RootProps & SelectProps & React.RefAttributes<never>>;
19
- export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & SelectProps & React.RefAttributes<HTMLButtonElement>>;
20
- export declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
21
- export declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectTheme.ItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
22
- export declare const SelectGroup: React.ForwardRefExoticComponent<Omit<SelectTheme.GroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
23
- export declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectTheme.LabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
24
- export declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectTheme.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
18
+ export declare const Root: React.ForwardRefExoticComponent<SelectTheme.RootProps & SelectProps & React.RefAttributes<never>>;
19
+ export declare const Trigger: React.ForwardRefExoticComponent<Omit<SelectTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & SelectProps & React.RefAttributes<HTMLButtonElement>>;
20
+ export declare const Content: React.ForwardRefExoticComponent<Omit<SelectTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
21
+ export declare const Item: React.ForwardRefExoticComponent<Omit<SelectTheme.ItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
22
+ export declare const Group: React.ForwardRefExoticComponent<Omit<SelectTheme.GroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
23
+ export declare const Label: React.ForwardRefExoticComponent<Omit<SelectTheme.LabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
24
+ export declare const Separator: React.ForwardRefExoticComponent<Omit<SelectTheme.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
25
+ declare const Select: {
26
+ Root: React.ForwardRefExoticComponent<SelectTheme.RootProps & SelectProps & React.RefAttributes<never>>;
27
+ Trigger: React.ForwardRefExoticComponent<Omit<SelectTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & SelectProps & React.RefAttributes<HTMLButtonElement>>;
28
+ Content: React.ForwardRefExoticComponent<Omit<SelectTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
29
+ Item: React.ForwardRefExoticComponent<Omit<SelectTheme.ItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
30
+ Group: React.ForwardRefExoticComponent<Omit<SelectTheme.GroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
31
+ Label: React.ForwardRefExoticComponent<Omit<SelectTheme.LabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
32
+ Separator: React.ForwardRefExoticComponent<Omit<SelectTheme.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
33
+ };
25
34
  export default Select;
@@ -34,7 +34,7 @@ var selectVariants = cva('', {
34
34
  radius: 'medium',
35
35
  },
36
36
  });
37
- export var Select = React.forwardRef(function (_a, ref) {
37
+ export var Root = React.forwardRef(function (_a, ref) {
38
38
  var scaling = _a.scaling, size = _a.size, color = _a.color, children = _a.children, props = __rest(_a, ["scaling", "size", "color", "children"]);
39
39
  var sizeTheme = '2';
40
40
  if (size === 'small')
@@ -43,15 +43,15 @@ export var Select = React.forwardRef(function (_a, ref) {
43
43
  sizeTheme = '3';
44
44
  return (_jsx(Theme, { scaling: scaling, accentColor: color, hasBackground: false, children: _jsx("div", { ref: ref, children: _jsx(SelectTheme.Root, __assign({ size: sizeTheme }, props, { children: children })) }) }));
45
45
  });
46
- Select.displayName = 'Select';
47
- export var SelectTrigger = React.forwardRef(function (_a, forwardedRef) {
46
+ Root.displayName = 'Select.Root';
47
+ export var Trigger = React.forwardRef(function (_a, forwardedRef) {
48
48
  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"]);
49
49
  if (!color)
50
50
  color = 'red';
51
51
  return (_jsx(SelectTheme.Trigger, __assign({ ref: forwardedRef, variant: appearance, radius: radius, className: cn(selectVariants({ radius: radius }), selectAppearanceStyle(appearance, color), className) }, props, { children: children })));
52
52
  });
53
- SelectTrigger.displayName = 'SelectTrigger';
54
- export var SelectContent = React.forwardRef(function (_a, forwardedRef) {
53
+ Trigger.displayName = 'Select.Trigger';
54
+ export var Content = React.forwardRef(function (_a, forwardedRef) {
55
55
  var appearance = _a.appearance, color = _a.color, size = _a.size, radius = _a.radius, children = _a.children, className = _a.className, props = __rest(_a, ["appearance", "color", "size", "radius", "children", "className"]);
56
56
  if (!color)
57
57
  color = 'red';
@@ -59,25 +59,34 @@ export var SelectContent = React.forwardRef(function (_a, forwardedRef) {
59
59
  radius = 'large';
60
60
  return (_jsx(SelectTheme.Content, __assign({ ref: forwardedRef, color: color }, props, { className: cn(selectVariants({ radius: radius }), className), children: children })));
61
61
  });
62
- SelectContent.displayName = 'SelectContent';
63
- export var SelectItem = React.forwardRef(function (_a, forwardedRef) {
62
+ Content.displayName = 'Select.Content';
63
+ export var Item = React.forwardRef(function (_a, forwardedRef) {
64
64
  var value = _a.value, children = _a.children, className = _a.className, radius = _a.radius, props = __rest(_a, ["value", "children", "className", "radius"]);
65
65
  return (_jsx(SelectTheme.Item, __assign({ ref: forwardedRef, value: value }, props, { className: cn(selectVariants({ radius: radius }), className), children: children })));
66
66
  });
67
- SelectItem.displayName = 'SelectItem';
68
- export var SelectGroup = React.forwardRef(function (_a, forwardedRef) {
67
+ Item.displayName = 'Select.Item';
68
+ export var Group = React.forwardRef(function (_a, forwardedRef) {
69
69
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
70
70
  return (_jsx(SelectTheme.Group, __assign({ ref: forwardedRef }, props, { className: className, children: children })));
71
71
  });
72
- SelectGroup.displayName = 'SelectGroup';
73
- export var SelectLabel = React.forwardRef(function (_a, forwardedRef) {
72
+ Group.displayName = 'Select.Group';
73
+ export var Label = React.forwardRef(function (_a, forwardedRef) {
74
74
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
75
75
  return (_jsx(SelectTheme.Label, __assign({ ref: forwardedRef }, props, { className: className, children: children })));
76
76
  });
77
- SelectLabel.displayName = 'SelectLabel';
78
- export var SelectSeparator = React.forwardRef(function (_a, forwardedRef) {
77
+ Label.displayName = 'Select.Label';
78
+ export var Separator = React.forwardRef(function (_a, forwardedRef) {
79
79
  var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
80
80
  return (_jsx(SelectTheme.Separator, __assign({ ref: forwardedRef }, props, { className: className, children: children })));
81
81
  });
82
- SelectSeparator.displayName = 'SelectSeparator';
82
+ Separator.displayName = 'Select.Separator';
83
+ var Select = {
84
+ Root: Root,
85
+ Trigger: Trigger,
86
+ Content: Content,
87
+ Item: Item,
88
+ Group: Group,
89
+ Label: Label,
90
+ Separator: Separator,
91
+ };
83
92
  export default Select;
@@ -6,6 +6,10 @@ export interface TabNavProps extends VariantProps<typeof tabNavVariants> {
6
6
  size?: 'small' | 'medium';
7
7
  }
8
8
  declare const tabNavVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
- export declare const TabNav: React.ForwardRefExoticComponent<Omit<TabNavTheme.RootProps & React.RefAttributes<HTMLElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLElement>>;
10
- export declare const TabNavLink: React.ForwardRefExoticComponent<Omit<TabNavTheme.LinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLAnchorElement>>;
9
+ export declare const Root: React.ForwardRefExoticComponent<Omit<TabNavTheme.RootProps & React.RefAttributes<HTMLElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLElement>>;
10
+ export declare const Link: React.ForwardRefExoticComponent<Omit<TabNavTheme.LinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLAnchorElement>>;
11
+ declare const TabNav: {
12
+ Root: React.ForwardRefExoticComponent<Omit<TabNavTheme.RootProps & React.RefAttributes<HTMLElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLElement>>;
13
+ Link: React.ForwardRefExoticComponent<Omit<TabNavTheme.LinkProps & React.RefAttributes<HTMLAnchorElement>, "ref"> & TabNavProps & React.RefAttributes<HTMLAnchorElement>>;
14
+ };
11
15
  export default TabNav;
@@ -28,7 +28,7 @@ import { cn } from '../../../lib/utils/utils';
28
28
  var tabNavVariants = cva('', {
29
29
  variants: {},
30
30
  });
31
- export var TabNav = React.forwardRef(function (_a, ref) {
31
+ export var Root = React.forwardRef(function (_a, ref) {
32
32
  var className = _a.className, children = _a.children, size = _a.size, color = _a.color, rootProps = __rest(_a, ["className", "children", "size", "color"]);
33
33
  if (!color)
34
34
  color = 'red';
@@ -37,10 +37,14 @@ export var TabNav = React.forwardRef(function (_a, ref) {
37
37
  sizeTheme = '1';
38
38
  return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabNavTheme.Root, __assign({ ref: ref, size: sizeTheme, className: cn('', tabNavVariants({}), className) }, rootProps, { children: children })) }));
39
39
  });
40
- TabNav.displayName = 'TabNav';
41
- export var TabNavLink = React.forwardRef(function (_a, ref) {
40
+ Root.displayName = 'TabNav.Root';
41
+ export var Link = React.forwardRef(function (_a, ref) {
42
42
  var className = _a.className, children = _a.children, href = _a.href, linkProps = __rest(_a, ["className", "children", "href"]);
43
- return (_jsx(TabNavTheme.Link, __assign({ 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, { children: children })));
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 })));
44
44
  });
45
- TabNavLink.displayName = 'TabNav.Link';
45
+ Link.displayName = 'TabNav.Link';
46
+ var TabNav = {
47
+ Root: Root,
48
+ Link: Link,
49
+ };
46
50
  export default TabNav;
@@ -11,11 +11,20 @@ declare const tableVariants: (props?: ({
11
11
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
12
12
  radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
13
13
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
- export declare const Table: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & TableProps & React.RefAttributes<HTMLDivElement>>;
15
- export declare const TableHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
16
- export declare const TableBody: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
17
- export declare const TableRow: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableRowElement>>;
18
- export declare const TableCell: React.ForwardRefExoticComponent<Omit<TableTheme.CellProps & React.RefAttributes<HTMLTableDataCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableDataCellElement>>;
19
- export declare const TableColumnHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
20
- export declare const TableRowHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
14
+ export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & TableProps & React.RefAttributes<HTMLDivElement>>;
15
+ export declare const Header: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
16
+ export declare const Body: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
17
+ export declare const Row: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableRowElement>>;
18
+ export declare const Cell: React.ForwardRefExoticComponent<Omit<TableTheme.CellProps & React.RefAttributes<HTMLTableDataCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableDataCellElement>>;
19
+ export declare const ColumnHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
20
+ export declare const RowHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
21
+ declare const Table: {
22
+ Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & TableProps & React.RefAttributes<HTMLDivElement>>;
23
+ Header: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
24
+ Body: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
25
+ Row: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableRowElement>>;
26
+ Cell: React.ForwardRefExoticComponent<Omit<TableTheme.CellProps & React.RefAttributes<HTMLTableDataCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableDataCellElement>>;
27
+ ColumnHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
28
+ RowHeaderCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableHeaderCellElement>>;
29
+ };
21
30
  export default Table;
@@ -44,7 +44,7 @@ var tableRowVariants = cva('', {
44
44
  },
45
45
  },
46
46
  });
47
- export var Table = React.forwardRef(function (_a, ref) {
47
+ export var Root = React.forwardRef(function (_a, ref) {
48
48
  var className = _a.className, children = _a.children, appearance = _a.appearance, scaling = _a.scaling, size = _a.size, radius = _a.radius, tableProps = __rest(_a, ["className", "children", "appearance", "scaling", "size", "radius"]);
49
49
  var sizeTheme = '2';
50
50
  if (size === 'small')
@@ -55,35 +55,44 @@ export var Table = React.forwardRef(function (_a, ref) {
55
55
  radius = 'large';
56
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 })) }));
57
57
  });
58
- Table.displayName = 'Table';
59
- export var TableHeader = React.forwardRef(function (_a, forwardedRef) {
58
+ Root.displayName = 'Table.Root';
59
+ export var Header = React.forwardRef(function (_a, forwardedRef) {
60
60
  var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
61
61
  return (_jsx(TableTheme.Header, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
62
62
  });
63
- TableHeader.displayName = 'TableHeader';
64
- export var TableBody = React.forwardRef(function (_a, forwardedRef) {
63
+ Header.displayName = 'Table.Header';
64
+ export var Body = React.forwardRef(function (_a, forwardedRef) {
65
65
  var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
66
66
  return (_jsx(TableTheme.Body, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
67
67
  });
68
- TableBody.displayName = 'TableBody';
69
- export var TableRow = React.forwardRef(function (_a, forwardedRef) {
68
+ Body.displayName = 'Table.Body';
69
+ export var Row = React.forwardRef(function (_a, forwardedRef) {
70
70
  var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
71
71
  return (_jsx(TableTheme.Row, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
72
72
  });
73
- TableRow.displayName = 'TableRow';
74
- export var TableCell = React.forwardRef(function (_a, forwardedRef) {
73
+ Row.displayName = 'Table.Row';
74
+ export var Cell = React.forwardRef(function (_a, forwardedRef) {
75
75
  var className = _a.className, children = _a.children, scaling = _a.scaling, cellProps = __rest(_a, ["className", "children", "scaling"]);
76
76
  return (_jsx(TableTheme.Cell, __assign({ className: cn('', tableVariants({ scaling: scaling }), className) }, cellProps, { ref: forwardedRef, children: children })));
77
77
  });
78
- TableCell.displayName = 'TableCell';
79
- export var TableColumnHeaderCell = React.forwardRef(function (_a, forwardedRef) {
78
+ Cell.displayName = 'Table.Cell';
79
+ export var ColumnHeaderCell = React.forwardRef(function (_a, forwardedRef) {
80
80
  var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, props = __rest(_a, ["className", "children", "scaling", "size"]);
81
81
  return (_jsx(TableTheme.ColumnHeaderCell, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), tableRowVariants({ size: size }), className) }, props, { children: children })));
82
82
  });
83
- TableColumnHeaderCell.displayName = 'TableColumnHeaderCell';
84
- export var TableRowHeaderCell = React.forwardRef(function (_a, forwardedRef) {
83
+ ColumnHeaderCell.displayName = 'Table.ColumnHeaderCell';
84
+ export var RowHeaderCell = React.forwardRef(function (_a, forwardedRef) {
85
85
  var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, ["className", "children", "scaling"]);
86
86
  return (_jsx(TableTheme.RowHeaderCell, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));
87
87
  });
88
- TableRowHeaderCell.displayName = 'TableRowHeaderCell';
88
+ RowHeaderCell.displayName = 'Table.RowHeaderCell';
89
+ var Table = {
90
+ Root: Root,
91
+ Header: Header,
92
+ Body: Body,
93
+ Row: Row,
94
+ Cell: Cell,
95
+ ColumnHeaderCell: ColumnHeaderCell,
96
+ RowHeaderCell: RowHeaderCell,
97
+ };
89
98
  export default Table;
@@ -9,8 +9,14 @@ export interface TabsProps extends VariantProps<typeof tabsVariants> {
9
9
  declare const tabsVariants: (props?: ({
10
10
  weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
- export declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
13
- export declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsTheme.ListProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
14
- export declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & TabsProps & React.RefAttributes<HTMLButtonElement>>;
15
- export declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const Root: React.ForwardRefExoticComponent<Omit<TabsTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
13
+ export declare const List: React.ForwardRefExoticComponent<Omit<TabsTheme.ListProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const Trigger: React.ForwardRefExoticComponent<Omit<TabsTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & TabsProps & React.RefAttributes<HTMLButtonElement>>;
15
+ export declare const Content: React.ForwardRefExoticComponent<Omit<TabsTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
16
+ declare const Tabs: {
17
+ Root: React.ForwardRefExoticComponent<Omit<TabsTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
18
+ List: React.ForwardRefExoticComponent<Omit<TabsTheme.ListProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
19
+ Trigger: React.ForwardRefExoticComponent<Omit<TabsTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & TabsProps & React.RefAttributes<HTMLButtonElement>>;
20
+ Content: React.ForwardRefExoticComponent<Omit<TabsTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
21
+ };
16
22
  export default Tabs;
@@ -31,29 +31,35 @@ var tabsVariants = cva('', {
31
31
  weight: __assign({}, weightVariants),
32
32
  },
33
33
  });
34
- export var Tabs = React.forwardRef(function (_a, forwardedRef) {
34
+ export var Root = React.forwardRef(function (_a, forwardedRef) {
35
35
  var className = _a.className, children = _a.children, color = _a.color, rootProps = __rest(_a, ["className", "children", "color"]);
36
36
  if (!color)
37
37
  color = 'red';
38
38
  return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabsTheme.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', className), children: children })) }));
39
39
  });
40
- Tabs.displayName = 'Tabs';
41
- export var TabsList = React.forwardRef(function (_a, forwardedRef) {
40
+ Root.displayName = 'Tabs.Root';
41
+ export var List = React.forwardRef(function (_a, forwardedRef) {
42
42
  var className = _a.className, weight = _a.weight, children = _a.children, size = _a.size, listProps = __rest(_a, ["className", "weight", "children", "size"]);
43
43
  var sizeTheme = '2';
44
44
  if (size === 'small')
45
45
  sizeTheme = '1';
46
46
  return (_jsx(TabsTheme.List, __assign({ ref: forwardedRef, size: sizeTheme }, listProps, { className: cn('', className), children: children })));
47
47
  });
48
- TabsList.displayName = 'TabsList';
49
- export var TabsTrigger = React.forwardRef(function (_a, forwardedRef) {
48
+ List.displayName = 'Tabs.List';
49
+ export var Trigger = React.forwardRef(function (_a, forwardedRef) {
50
50
  var className = _a.className, weight = _a.weight, children = _a.children, triggerProps = __rest(_a, ["className", "weight", "children"]);
51
- return (_jsx(TabsTheme.Trigger, __assign({ 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, { children: children })));
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 })));
52
52
  });
53
- TabsTrigger.displayName = 'TabsTrigger';
54
- export var TabsContent = React.forwardRef(function (_a, forwardedRef) {
53
+ Trigger.displayName = 'Tabs.Trigger';
54
+ export var Content = React.forwardRef(function (_a, forwardedRef) {
55
55
  var className = _a.className, weight = _a.weight, children = _a.children, contentProps = __rest(_a, ["className", "weight", "children"]);
56
56
  return (_jsx(TabsTheme.Content, __assign({ ref: forwardedRef }, contentProps, { className: cn('mt-3', className), children: children })));
57
57
  });
58
- TabsContent.displayName = 'TabsTrigger';
58
+ Content.displayName = 'Tabs.Content';
59
+ var Tabs = {
60
+ Root: Root,
61
+ List: List,
62
+ Trigger: Trigger,
63
+ Content: Content,
64
+ };
59
65
  export default Tabs;
@@ -12,6 +12,10 @@ declare const textFieldVariants: (props?: ({
12
12
  radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
13
13
  color?: string | null | undefined;
14
14
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
15
- export declare const TextField: React.ForwardRefExoticComponent<Omit<TextFieldTheme.RootProps & React.RefAttributes<HTMLInputElement>, "ref"> & TextFieldProps & React.RefAttributes<HTMLInputElement>>;
16
- export declare const TextFieldSlot: React.ForwardRefExoticComponent<Omit<TextFieldTheme.SlotProps & React.RefAttributes<HTMLDivElement>, "ref"> & TextFieldProps & React.RefAttributes<HTMLDivElement>>;
15
+ export declare const Root: React.ForwardRefExoticComponent<Omit<TextFieldTheme.RootProps & React.RefAttributes<HTMLInputElement>, "ref"> & TextFieldProps & React.RefAttributes<HTMLInputElement>>;
16
+ export declare const Slot: React.ForwardRefExoticComponent<Omit<TextFieldTheme.SlotProps & React.RefAttributes<HTMLDivElement>, "ref"> & TextFieldProps & React.RefAttributes<HTMLDivElement>>;
17
+ declare const TextField: {
18
+ Root: React.ForwardRefExoticComponent<Omit<TextFieldTheme.RootProps & React.RefAttributes<HTMLInputElement>, "ref"> & TextFieldProps & React.RefAttributes<HTMLInputElement>>;
19
+ Slot: React.ForwardRefExoticComponent<Omit<TextFieldTheme.SlotProps & React.RefAttributes<HTMLDivElement>, "ref"> & TextFieldProps & React.RefAttributes<HTMLDivElement>>;
20
+ };
17
21
  export default TextField;
@@ -32,7 +32,7 @@ var textFieldVariants = cva('', {
32
32
  color: bgColorStyle(),
33
33
  },
34
34
  });
35
- export var TextField = React.forwardRef(function (_a, forwardedRef) {
35
+ export var Root = React.forwardRef(function (_a, forwardedRef) {
36
36
  var className = _a.className, color = _a.color, size = _a.size, appearance = _a.appearance, _b = _a.scaling, scaling = _b === void 0 ? '100%' : _b, radius = _a.radius, children = _a.children, sliderProps = __rest(_a, ["className", "color", "size", "appearance", "scaling", "radius", "children"]);
37
37
  if (!color)
38
38
  color = 'red';
@@ -43,10 +43,14 @@ export var TextField = React.forwardRef(function (_a, forwardedRef) {
43
43
  sizeTheme = '3';
44
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 })) }));
45
45
  });
46
- TextField.displayName = 'TextField';
47
- export var TextFieldSlot = React.forwardRef(function (_a, forwardedRef) {
46
+ Root.displayName = 'TextField.Root';
47
+ export var Slot = React.forwardRef(function (_a, forwardedRef) {
48
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"]);
49
49
  return (_jsx(TextFieldTheme.Slot, __assign({ ref: forwardedRef, color: color, side: side, className: cn(textFieldVariants({ radius: radius }), className) }, sliderProps, { children: children })));
50
50
  });
51
- TextFieldSlot.displayName = 'TextFieldSlot';
51
+ Slot.displayName = 'TextField.Slot';
52
+ var TextField = {
53
+ Root: Root,
54
+ Slot: Slot,
55
+ };
52
56
  export default TextField;
@@ -27,7 +27,7 @@ import { cva } from 'class-variance-authority';
27
27
  import { cn } from '../../../lib/utils/utils';
28
28
  import Button from '../../../lib/components/Button';
29
29
  import { appearanceStyle, radiusVariants, scalingVariants } from '../../../lib/constants';
30
- import { useToastContext } from '.';
30
+ import { useToastContext } from './ToastRoot';
31
31
  export var toastActionButtonVariants = cva("absolute items-center justify-center", {
32
32
  variants: {
33
33
  radius: __assign({}, radiusVariants['base']),
@@ -64,4 +64,4 @@ export var ToastActionButton = forwardRef(function (_a, ref) {
64
64
  : appearanceStyle(appearance, color !== null && color !== void 0 ? color : 'red'), className);
65
65
  return (_jsx(ToastPrimitive.Action, __assign({ ref: ref, altText: altText }, props, { className: buttonClassName, asChild: true, children: _jsx(Button, { children: children }) })));
66
66
  });
67
- ToastActionButton.displayName = 'ToastActionButton';
67
+ ToastActionButton.displayName = 'Toast.ActionButton';
@@ -25,7 +25,7 @@ import { forwardRef } from 'react';
25
25
  import * as ToastPrimitive from '@radix-ui/react-toast';
26
26
  import { cva } from 'class-variance-authority';
27
27
  import { cn } from '../../../lib/utils/utils';
28
- import { useToastContext } from '.';
28
+ import { useToastContext } from './ToastRoot';
29
29
  export var toastDescriptionVariants = cva('flex m-0 text-wrap text-slate-11 dark:text-slateDark-11', {
30
30
  variants: {
31
31
  size: {
@@ -50,4 +50,4 @@ export var ToastDescription = forwardRef(function (_a, ref) {
50
50
  var _b = useToastContext(), size = _b.size, color = _b.color;
51
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 }) })));
52
52
  });
53
- ToastDescription.displayName = 'ToastDescription';
53
+ ToastDescription.displayName = 'Toast.Description';
@@ -0,0 +1,27 @@
1
+ import React, { Dispatch, SetStateAction } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import * as ToastPrimitive from '@radix-ui/react-toast';
4
+ import { toastTitleVariants } from './ToastTitle';
5
+ import { toastDescriptionVariants } from './ToastDescription';
6
+ import { toastActionButtonVariants } from './ToastActionButton';
7
+ export interface ToastProps extends VariantProps<typeof toastVariants>, VariantProps<typeof toastTitleVariants>, VariantProps<typeof toastDescriptionVariants>, VariantProps<typeof toastActionButtonVariants>, VariantProps<typeof toastViewportVariants> {
8
+ className?: string;
9
+ openToast?: boolean;
10
+ duration?: number;
11
+ titleText?: string;
12
+ contentText?: string;
13
+ color?: 'danger' | 'warning' | 'success' | 'information' | null;
14
+ setOpenToast?: Dispatch<SetStateAction<boolean>>;
15
+ }
16
+ export declare const toastVariants: (props?: ({
17
+ radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
18
+ size?: "small" | "medium" | "large" | "x-large" | null | undefined;
19
+ scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
20
+ color?: "danger" | "warning" | "success" | "information" | null | undefined;
21
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
22
+ export declare const toastViewportVariants: (props?: ({
23
+ toastPosition?: "top_center" | "top_left" | "top_right" | "bottom_center" | "bottom_left" | "bottom_right" | null | undefined;
24
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
25
+ export declare const useToastContext: () => ToastProps;
26
+ export declare const ToastRoot: React.ForwardRefExoticComponent<ToastPrimitive.ToastProviderProps & ToastProps & React.RefAttributes<never>>;
27
+ export default ToastRoot;