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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) 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 +4 -2
  6. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +9 -5
  7. package/dist/lib/components/AlertDialog/AlertDialogContent.js +4 -2
  8. package/dist/lib/components/AlertDialog/AlertDialogDescription.js +4 -2
  9. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +16 -0
  10. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +46 -0
  11. package/dist/lib/components/AlertDialog/AlertDialogTitle.js +4 -2
  12. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +2 -2
  13. package/dist/lib/components/AlertDialog/index.d.ts +10 -19
  14. package/dist/lib/components/AlertDialog/index.js +15 -35
  15. package/dist/lib/components/Avatar/index.d.ts +3 -0
  16. package/dist/lib/components/Avatar/index.js +3 -2
  17. package/dist/lib/components/BarChart/index.d.ts +5 -3
  18. package/dist/lib/components/BarChart/index.js +12 -1
  19. package/dist/lib/components/BubbleChart/index.d.ts +3 -0
  20. package/dist/lib/components/Callout/CalloutIcon.js +3 -3
  21. package/dist/lib/components/Callout/CalloutRoot.d.ts +18 -0
  22. package/dist/lib/components/Callout/CalloutRoot.js +72 -0
  23. package/dist/lib/components/Callout/CalloutText.js +2 -2
  24. package/dist/lib/components/Callout/index.d.ts +6 -19
  25. package/dist/lib/components/Callout/index.js +7 -73
  26. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +2 -2
  27. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +16 -0
  28. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +34 -0
  29. package/dist/lib/components/CheckboxGroup/index.d.ts +5 -16
  30. package/dist/lib/components/CheckboxGroup/index.js +3 -34
  31. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +1 -1
  32. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +4 -2
  33. package/dist/lib/components/ContextMenu/ContextMenuContent.js +2 -2
  34. package/dist/lib/components/ContextMenu/ContextMenuGroup.d.ts +1 -1
  35. package/dist/lib/components/ContextMenu/ContextMenuGroup.js +1 -1
  36. package/dist/lib/components/ContextMenu/ContextMenuItem.js +2 -2
  37. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +2 -2
  38. package/dist/lib/components/ContextMenu/ContextMenuLabel.js +2 -2
  39. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +1 -1
  40. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +1 -1
  41. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +5 -2
  42. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +13 -0
  43. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +42 -0
  44. package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +1 -1
  45. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +4 -3
  46. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +2 -2
  47. package/dist/lib/components/ContextMenu/ContextMenuTrigger.d.ts +1 -1
  48. package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +2 -2
  49. package/dist/lib/components/ContextMenu/index.d.ts +16 -24
  50. package/dist/lib/components/ContextMenu/index.js +27 -52
  51. package/dist/lib/components/DataList/DataListItem.js +2 -2
  52. package/dist/lib/components/DataList/DataListLabel.js +2 -2
  53. package/dist/lib/components/DataList/DataListRoot.d.ts +14 -0
  54. package/dist/lib/components/DataList/DataListRoot.js +54 -0
  55. package/dist/lib/components/DataList/DataListValue.js +2 -2
  56. package/dist/lib/components/DataList/index.d.ts +7 -16
  57. package/dist/lib/components/DataList/index.js +5 -56
  58. package/dist/lib/components/Dialog/DialogAction.d.ts +0 -2
  59. package/dist/lib/components/Dialog/DialogAction.js +7 -5
  60. package/dist/lib/components/Dialog/DialogCancel.js +5 -3
  61. package/dist/lib/components/Dialog/DialogContent.js +5 -3
  62. package/dist/lib/components/Dialog/DialogDescription.js +5 -3
  63. package/dist/lib/components/Dialog/DialogRoot.d.ts +12 -0
  64. package/dist/lib/components/Dialog/DialogRoot.js +37 -0
  65. package/dist/lib/components/Dialog/DialogSlot.js +5 -3
  66. package/dist/lib/components/Dialog/DialogTitle.js +5 -3
  67. package/dist/lib/components/Dialog/DialogTrigger.js +1 -1
  68. package/dist/lib/components/Dialog/index.d.ts +11 -17
  69. package/dist/lib/components/Dialog/index.js +17 -36
  70. package/dist/lib/components/DoughnutChart/index.js +9 -18
  71. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +0 -5
  72. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +3 -4
  73. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +5 -3
  74. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +1 -1
  75. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +7 -4
  76. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +5 -3
  77. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +2 -0
  78. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +5 -3
  79. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +5 -3
  80. package/dist/lib/components/DropdownMenu/DropdownMenuLable.d.ts +0 -1
  81. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +5 -6
  82. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +4 -2
  83. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +8 -6
  84. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +12 -0
  85. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +38 -0
  86. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +1 -1
  87. package/dist/lib/components/DropdownMenu/DropdownMenuSub.js +1 -1
  88. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +5 -3
  89. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +2 -1
  90. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +5 -3
  91. package/dist/lib/components/DropdownMenu/index.d.ts +16 -22
  92. package/dist/lib/components/DropdownMenu/index.js +27 -41
  93. package/dist/lib/components/HoverCard/HoverCardContent.js +5 -3
  94. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +8 -0
  95. package/dist/lib/components/HoverCard/HoverCardRoot.js +38 -0
  96. package/dist/lib/components/HoverCard/HoverCardTrigger.js +1 -1
  97. package/dist/lib/components/HoverCard/index.d.ts +6 -9
  98. package/dist/lib/components/HoverCard/index.js +7 -31
  99. package/dist/lib/components/LineChart/index.d.ts +87 -0
  100. package/dist/lib/components/LineChart/index.js +58 -0
  101. package/dist/lib/components/Menubar/MenubarCheckboxItem.js +2 -2
  102. package/dist/lib/components/Menubar/MenubarContent.js +2 -2
  103. package/dist/lib/components/Menubar/MenubarItem.js +2 -2
  104. package/dist/lib/components/Menubar/MenubarItemIndicator.js +2 -2
  105. package/dist/lib/components/Menubar/MenubarMenu.js +1 -1
  106. package/dist/lib/components/Menubar/MenubarRadioGroup.js +1 -1
  107. package/dist/lib/components/Menubar/MenubarRadioItem.js +2 -2
  108. package/dist/lib/components/Menubar/MenubarRoot.d.ts +19 -0
  109. package/dist/lib/components/Menubar/MenubarRoot.js +61 -0
  110. package/dist/lib/components/Menubar/MenubarSeparator.js +1 -1
  111. package/dist/lib/components/Menubar/MenubarSub.js +1 -1
  112. package/dist/lib/components/Menubar/MenubarSubContent.js +2 -2
  113. package/dist/lib/components/Menubar/MenubarSubTrigger.js +2 -2
  114. package/dist/lib/components/Menubar/MenubarTrigger.js +2 -2
  115. package/dist/lib/components/Menubar/index.d.ts +16 -30
  116. package/dist/lib/components/Menubar/index.js +27 -71
  117. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -2
  118. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +1 -1
  119. package/dist/lib/components/NavigationMenu/NavigationMenuItem.js +1 -1
  120. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +2 -2
  121. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +2 -2
  122. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +14 -0
  123. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +43 -0
  124. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +2 -2
  125. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +2 -2
  126. package/dist/lib/components/NavigationMenu/index.d.ts +11 -20
  127. package/dist/lib/components/NavigationMenu/index.js +9 -49
  128. package/dist/lib/components/PieChart/index.js +9 -18
  129. package/dist/lib/components/Popover/PopoverClose.js +5 -3
  130. package/dist/lib/components/Popover/PopoverContent.js +5 -3
  131. package/dist/lib/components/Popover/PopoverRoot.d.ts +9 -0
  132. package/dist/lib/components/Popover/PopoverRoot.js +36 -0
  133. package/dist/lib/components/Popover/PopoverTrigger.js +1 -1
  134. package/dist/lib/components/Popover/index.d.ts +7 -11
  135. package/dist/lib/components/Popover/index.js +9 -32
  136. package/dist/lib/components/RadioCards/RadioCardsItem.js +5 -3
  137. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +14 -0
  138. package/dist/lib/components/RadioCards/RadioCardsRoot.js +46 -0
  139. package/dist/lib/components/RadioCards/index.d.ts +5 -13
  140. package/dist/lib/components/RadioCards/index.js +5 -41
  141. package/dist/lib/components/RadioGroup/RadioGroupItem.js +5 -3
  142. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +16 -0
  143. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +53 -0
  144. package/dist/lib/components/RadioGroup/index.d.ts +5 -15
  145. package/dist/lib/components/RadioGroup/index.js +5 -49
  146. package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +1 -1
  147. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +14 -0
  148. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +47 -0
  149. package/dist/lib/components/SegmentedControl/index.d.ts +5 -14
  150. package/dist/lib/components/SegmentedControl/index.js +5 -46
  151. package/dist/lib/components/Select/index.d.ts +16 -7
  152. package/dist/lib/components/Select/index.js +23 -14
  153. package/dist/lib/components/TabNav/index.d.ts +6 -2
  154. package/dist/lib/components/TabNav/index.js +9 -5
  155. package/dist/lib/components/Table/index.d.ts +16 -7
  156. package/dist/lib/components/Table/index.js +23 -14
  157. package/dist/lib/components/Tabs/index.d.ts +10 -4
  158. package/dist/lib/components/Tabs/index.js +15 -9
  159. package/dist/lib/components/TextField/index.d.ts +6 -2
  160. package/dist/lib/components/TextField/index.js +8 -4
  161. package/dist/lib/components/Toast/ToastActionButton.js +2 -2
  162. package/dist/lib/components/Toast/ToastDescription.js +2 -2
  163. package/dist/lib/components/Toast/ToastRoot.d.ts +27 -0
  164. package/dist/lib/components/Toast/ToastRoot.js +90 -0
  165. package/dist/lib/components/Toast/ToastTitle.js +2 -2
  166. package/dist/lib/components/Toast/index.d.ts +7 -29
  167. package/dist/lib/components/Toast/index.js +9 -92
  168. package/dist/lib/components/ToggleGroup/{toggleGroupItem.js → ToggleGroupItem.js} +6 -4
  169. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +18 -0
  170. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +47 -0
  171. package/dist/lib/components/ToggleGroup/index.d.ts +5 -19
  172. package/dist/lib/components/ToggleGroup/index.js +5 -41
  173. package/dist/lib/components/Tooltip/index.d.ts +3 -3
  174. package/dist/lib/components/Tooltip/index.js +3 -2
  175. package/dist/lib/components/index.d.ts +1 -0
  176. package/dist/lib/components/index.js +1 -0
  177. package/dist/lib/constants.d.ts +0 -9
  178. package/dist/lib/constants.js +0 -7
  179. package/package.json +131 -132
  180. /package/dist/lib/components/ToggleGroup/{toggleGroupItem.d.ts → ToggleGroupItem.d.ts} +0 -0
@@ -0,0 +1,53 @@
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 { createContext, forwardRef } from 'react';
25
+ import { Theme, RadioGroup as RadioGroupTheme } from '@radix-ui/themes';
26
+ import { cva } from 'class-variance-authority';
27
+ import { cn } from '../../../lib/utils/utils';
28
+ var radioGroupVariants = cva('', {
29
+ variants: {
30
+ size: {
31
+ small: 'gap-1',
32
+ medium: 'gap-2',
33
+ large: 'gap-3',
34
+ },
35
+ },
36
+ defaultVariants: {
37
+ size: 'medium',
38
+ },
39
+ });
40
+ export var RadioGroupContext = createContext({
41
+ size: 'medium',
42
+ });
43
+ export var RadioGroupRoot = forwardRef(function (_a, ref) {
44
+ var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, props = __rest(_a, ["className", "children", "scaling", "size", "color", "appearance"]);
45
+ var contextValue = { size: size };
46
+ var sizeTheme = '2';
47
+ if (size === 'small')
48
+ sizeTheme = '1';
49
+ if (size === 'large')
50
+ sizeTheme = '3';
51
+ return (_jsx(Theme, { accentColor: color, scaling: scaling, children: _jsx(RadioGroupContext.Provider, { value: contextValue, children: _jsx(RadioGroupTheme.Root, __assign({ ref: ref, size: sizeTheme, variant: appearance, className: cn(radioGroupVariants({ size: size }), className) }, props, { children: children })) }) }));
52
+ });
53
+ RadioGroupRoot.displayName = 'RadioGroup.Root';
@@ -1,16 +1,6 @@
1
- import React from 'react';
2
- import { RadioGroup as RadioGroupTheme } from '@radix-ui/themes';
3
- import { VariantProps } from 'class-variance-authority';
4
- import { IScaling } from '../../../lib/types';
5
- export * from './RadioGroupItem';
6
- export interface RadioGroupProps extends VariantProps<typeof radioGroupVariants> {
7
- color?: any;
8
- scaling?: IScaling;
9
- size?: 'small' | 'medium' | 'large';
10
- appearance?: 'classic' | 'surface' | 'soft';
11
- }
12
- declare const radioGroupVariants: (props?: ({
13
- size?: "small" | "medium" | "large" | null | undefined;
14
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
15
- export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
1
+ /// <reference types="react" />
2
+ declare const RadioGroup: {
3
+ Root: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/radio-group").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./RadioGroupRoot").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/radio-group").ItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./RadioGroupItem").RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ };
16
6
  export default RadioGroup;
@@ -1,51 +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 { RadioGroupRoot } from './RadioGroupRoot';
2
+ import { RadioGroupItem } from './RadioGroupItem';
3
+ var RadioGroup = {
4
+ Root: RadioGroupRoot,
5
+ Item: RadioGroupItem,
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 { forwardRef } from 'react';
25
- import { Theme, RadioGroup as RadioGroupTheme } from '@radix-ui/themes';
26
- import { cva } from 'class-variance-authority';
27
- import { cn } from '../../../lib/utils/utils';
28
- export * from './RadioGroupItem';
29
- var radioGroupVariants = cva('', {
30
- variants: {
31
- size: {
32
- small: 'gap-1',
33
- medium: 'gap-2',
34
- large: 'gap-3',
35
- },
36
- },
37
- defaultVariants: {
38
- size: 'medium',
39
- },
40
- });
41
- export var RadioGroup = forwardRef(function (_a, ref) {
42
- var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, props = __rest(_a, ["className", "children", "scaling", "size", "color", "appearance"]);
43
- var sizeTheme = '2';
44
- if (size === 'small')
45
- sizeTheme = '1';
46
- if (size === 'large')
47
- sizeTheme = '3';
48
- return (_jsx(Theme, { accentColor: color, scaling: scaling, children: _jsx(RadioGroupTheme.Root, __assign({ ref: ref, size: sizeTheme, variant: appearance, className: cn(radioGroupVariants({ size: size }), className) }, props, { children: children })) }));
49
- });
50
- RadioGroup.displayName = 'RadioGroup';
51
7
  export default RadioGroup;
@@ -32,4 +32,4 @@ export var SegmentedControlItem = forwardRef(function (_a, ref) {
32
32
  }
33
33
  return (_jsx(SegmentedControlTheme.Item, __assign({ ref: ref, className: cn(appearanceClassName, className) }, props, { children: children })));
34
34
  });
35
- SegmentedControlItem.displayName = 'SegmentedControlItem';
35
+ SegmentedControlItem.displayName = 'SegmentedControl.Item';
@@ -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;