@mbao01/common 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/types/components/Avatar/Avatar.d.ts +14 -0
  2. package/dist/types/components/Avatar/constants.d.ts +15 -0
  3. package/dist/types/components/Avatar/index.d.ts +1 -0
  4. package/dist/types/components/Avatar/types.d.ts +7 -0
  5. package/dist/types/components/Badge/types.d.ts +1 -0
  6. package/dist/types/components/Breadcrumbs/types.d.ts +1 -0
  7. package/dist/types/components/Combobox/Combobox.d.ts +2 -0
  8. package/dist/types/components/Combobox/index.d.ts +1 -0
  9. package/dist/types/components/Combobox/types.d.ts +19 -0
  10. package/dist/types/components/Command/Command.d.ts +67 -0
  11. package/dist/types/components/Command/constants.d.ts +11 -0
  12. package/dist/types/components/Command/index.d.ts +1 -0
  13. package/dist/types/components/Command/types.d.ts +8 -0
  14. package/dist/types/components/Description/types.d.ts +1 -0
  15. package/dist/types/components/Dialog/Dialog.d.ts +22 -0
  16. package/dist/types/components/Dialog/constants.d.ts +7 -0
  17. package/dist/types/components/Dialog/index.d.ts +1 -0
  18. package/dist/types/components/Dialog/types.d.ts +11 -0
  19. package/dist/types/components/Form/Checkbox/Checkbox.d.ts +6 -0
  20. package/dist/types/components/Form/Checkbox/constants.d.ts +4 -0
  21. package/dist/types/components/Form/Checkbox/index.d.ts +1 -0
  22. package/dist/types/components/Form/Checkbox/types.d.ts +4 -0
  23. package/dist/types/components/Form/Input/Input.d.ts +7 -0
  24. package/dist/types/components/Form/Input/constants.d.ts +6 -0
  25. package/dist/types/components/Form/Input/index.d.ts +1 -0
  26. package/dist/types/components/Form/Input/types.d.ts +4 -0
  27. package/dist/types/components/Form/Phone/Phone.d.ts +17 -0
  28. package/dist/types/components/Form/Phone/constants.d.ts +2 -0
  29. package/dist/types/components/Form/Phone/index.d.ts +1 -0
  30. package/dist/types/components/Form/Phone/types.d.ts +8 -0
  31. package/dist/types/components/Form/Radio/Radio.d.ts +6 -0
  32. package/dist/types/components/Form/Radio/constants.d.ts +4 -0
  33. package/dist/types/components/Form/Radio/index.d.ts +1 -0
  34. package/dist/types/components/Form/Radio/types.d.ts +4 -0
  35. package/dist/types/components/Form/Range/Range.d.ts +8 -0
  36. package/dist/types/components/Form/Range/constants.d.ts +6 -0
  37. package/dist/types/components/Form/Range/index.d.ts +1 -0
  38. package/dist/types/components/Form/Range/types.d.ts +4 -0
  39. package/dist/types/components/Form/Select/Select.d.ts +27 -0
  40. package/dist/types/components/Form/Select/constants.d.ts +17 -0
  41. package/dist/types/components/Form/Select/index.d.ts +1 -0
  42. package/dist/types/components/Form/Select/types.d.ts +7 -0
  43. package/dist/types/components/Form/Slider/Slider.d.ts +15 -0
  44. package/dist/types/components/Form/Slider/constants.d.ts +15 -0
  45. package/dist/types/components/Form/Slider/index.d.ts +1 -0
  46. package/dist/types/components/Form/Slider/types.d.ts +5 -0
  47. package/dist/types/components/Form/Switch/Switch.d.ts +6 -0
  48. package/dist/types/components/Form/Switch/constants.d.ts +4 -0
  49. package/dist/types/components/Form/Switch/index.d.ts +1 -0
  50. package/dist/types/components/Form/Switch/types.d.ts +4 -0
  51. package/dist/types/components/Form/TextField/TextField.d.ts +10 -0
  52. package/dist/types/components/Form/TextField/constants.d.ts +1 -0
  53. package/dist/types/components/Form/TextField/index.d.ts +1 -0
  54. package/dist/types/components/Form/TextField/types.d.ts +6 -0
  55. package/dist/types/components/Form/Textarea/Textarea.d.ts +8 -0
  56. package/dist/types/components/Form/Textarea/constants.d.ts +6 -0
  57. package/dist/types/components/Form/Textarea/index.d.ts +1 -0
  58. package/dist/types/components/Form/Textarea/types.d.ts +4 -0
  59. package/dist/types/components/Form/components/FormControl/FormControl.d.ts +2 -0
  60. package/dist/types/components/Form/components/FormControl/constants.d.ts +1 -0
  61. package/dist/types/components/Form/components/FormControl/index.d.ts +1 -0
  62. package/dist/types/components/Form/components/FormControl/types.d.ts +9 -0
  63. package/dist/types/components/Form/components/Label/Label.d.ts +7 -0
  64. package/dist/types/components/Form/components/Label/constants.d.ts +1 -0
  65. package/dist/types/components/Form/components/Label/index.d.ts +1 -0
  66. package/dist/types/components/Form/components/Label/types.d.ts +6 -0
  67. package/dist/types/components/Form/index.d.ts +11 -0
  68. package/dist/types/components/Loading/types.d.ts +1 -0
  69. package/dist/types/components/Popover/Popover.d.ts +9 -0
  70. package/dist/types/components/Popover/constants.d.ts +1 -0
  71. package/dist/types/components/Popover/index.d.ts +1 -0
  72. package/dist/types/components/Popover/types.d.ts +6 -0
  73. package/dist/types/components/Progress/Progress.d.ts +5 -0
  74. package/dist/types/components/Progress/constants.d.ts +6 -0
  75. package/dist/types/components/Progress/index.d.ts +1 -0
  76. package/dist/types/components/Progress/types.d.ts +5 -0
  77. package/dist/types/components/Separator/Separator.d.ts +2 -0
  78. package/dist/types/components/Separator/constants.d.ts +3 -0
  79. package/dist/types/components/Separator/index.d.ts +1 -0
  80. package/dist/types/components/Separator/types.d.ts +3 -0
  81. package/dist/types/components/Skeleton/constants.d.ts +2 -2
  82. package/dist/types/components/Skeleton/types.d.ts +1 -0
  83. package/dist/types/components/Text/Text.d.ts +2 -2
  84. package/dist/types/components/Text/types.d.ts +6 -2
  85. package/dist/types/components/Tooltip/types.d.ts +1 -0
  86. package/dist/types/index.d.ts +9 -0
  87. package/package.json +24 -13
  88. package/src/components/Avatar/Avatar.tsx +59 -0
  89. package/src/components/Avatar/constants.ts +69 -0
  90. package/src/components/Avatar/index.ts +1 -0
  91. package/src/components/Avatar/types.ts +25 -0
  92. package/src/components/Combobox/Combobox.tsx +82 -0
  93. package/src/components/Combobox/index.ts +1 -0
  94. package/src/components/Combobox/types.ts +21 -0
  95. package/src/components/Command/Command.tsx +142 -0
  96. package/src/components/Command/constants.ts +39 -0
  97. package/src/components/Command/index.ts +1 -0
  98. package/src/components/Command/types.ts +16 -0
  99. package/src/components/Dialog/Dialog.tsx +105 -0
  100. package/src/components/Dialog/constants.ts +27 -0
  101. package/src/components/Dialog/index.ts +1 -0
  102. package/src/components/Dialog/types.ts +40 -0
  103. package/src/components/Form/Checkbox/Checkbox.tsx +18 -0
  104. package/src/components/Form/Checkbox/constants.ts +21 -0
  105. package/src/components/Form/Checkbox/index.ts +1 -0
  106. package/src/components/Form/Checkbox/types.ts +8 -0
  107. package/src/components/Form/Input/Input.tsx +18 -0
  108. package/src/components/Form/Input/constants.ts +37 -0
  109. package/src/components/Form/Input/index.ts +1 -0
  110. package/src/components/Form/Input/types.ts +8 -0
  111. package/src/components/Form/Phone/Phone.tsx +120 -0
  112. package/src/components/Form/Phone/constants.ts +7 -0
  113. package/src/components/Form/Phone/index.ts +1 -0
  114. package/src/components/Form/Phone/types.ts +12 -0
  115. package/src/components/Form/Radio/Radio.tsx +18 -0
  116. package/src/components/Form/Radio/constants.ts +21 -0
  117. package/src/components/Form/Radio/index.ts +1 -0
  118. package/src/components/Form/Radio/types.ts +8 -0
  119. package/src/components/Form/Range/Range.tsx +22 -0
  120. package/src/components/Form/Range/constants.ts +31 -0
  121. package/src/components/Form/Range/index.ts +1 -0
  122. package/src/components/Form/Range/types.ts +8 -0
  123. package/src/components/Form/Select/Select.tsx +151 -0
  124. package/src/components/Form/Select/constants.ts +80 -0
  125. package/src/components/Form/Select/index.ts +1 -0
  126. package/src/components/Form/Select/types.ts +18 -0
  127. package/src/components/Form/Slider/Slider.tsx +43 -0
  128. package/src/components/Form/Slider/constants.ts +87 -0
  129. package/src/components/Form/Slider/index.ts +1 -0
  130. package/src/components/Form/Slider/types.ts +16 -0
  131. package/src/components/Form/Switch/Switch.tsx +19 -0
  132. package/src/components/Form/Switch/constants.ts +21 -0
  133. package/src/components/Form/Switch/index.ts +1 -0
  134. package/src/components/Form/Switch/types.ts +8 -0
  135. package/src/components/Form/TextField/TextField.tsx +37 -0
  136. package/src/components/Form/TextField/constants.ts +5 -0
  137. package/src/components/Form/TextField/index.ts +1 -0
  138. package/src/components/Form/TextField/types.ts +7 -0
  139. package/src/components/Form/Textarea/Textarea.tsx +22 -0
  140. package/src/components/Form/Textarea/constants.ts +37 -0
  141. package/src/components/Form/Textarea/index.ts +1 -0
  142. package/src/components/Form/Textarea/types.ts +8 -0
  143. package/src/components/Form/components/FormControl/FormControl.tsx +21 -0
  144. package/src/components/Form/components/FormControl/constants.ts +3 -0
  145. package/src/components/Form/components/FormControl/index.ts +1 -0
  146. package/src/components/Form/components/FormControl/types.ts +13 -0
  147. package/src/components/Form/components/Label/Label.tsx +22 -0
  148. package/src/components/Form/components/Label/constants.ts +3 -0
  149. package/src/components/Form/components/Label/index.ts +1 -0
  150. package/src/components/Form/components/Label/types.ts +10 -0
  151. package/src/components/Form/index.ts +11 -0
  152. package/src/components/Popover/Popover.tsx +30 -0
  153. package/src/components/Popover/constants.ts +5 -0
  154. package/src/components/Popover/index.ts +1 -0
  155. package/src/components/Popover/types.ts +12 -0
  156. package/src/components/Progress/Progress.tsx +31 -0
  157. package/src/components/Progress/constants.ts +49 -0
  158. package/src/components/Progress/index.ts +1 -0
  159. package/src/components/Progress/types.ts +9 -0
  160. package/src/components/Separator/Separator.tsx +20 -0
  161. package/src/components/Separator/constants.ts +10 -0
  162. package/src/components/Separator/index.ts +1 -0
  163. package/src/components/Separator/types.ts +5 -0
  164. package/src/components/Text/Text.tsx +3 -3
  165. package/src/components/Text/types.ts +8 -5
  166. package/src/index.ts +10 -0
@@ -0,0 +1,14 @@
1
+ import type { AvatarProps, AvatarImageProps, AvatarFallbackProps } from "./types";
2
+ declare const Avatar: {
3
+ ({ className, size, status, ...props }: AvatarProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string | undefined;
5
+ Image: {
6
+ ({ className, ring, shape, variant, ...props }: AvatarImageProps): import("react/jsx-runtime").JSX.Element;
7
+ displayName: string | undefined;
8
+ };
9
+ Fallback: {
10
+ ({ className, size, ring, shape, variant, ...props }: AvatarFallbackProps): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string | undefined;
12
+ };
13
+ };
14
+ export { Avatar };
@@ -0,0 +1,15 @@
1
+ export declare const getAvatarClasses: (props?: ({
2
+ size?: 4 | 8 | 12 | 16 | 24 | 32 | 48 | 64 | null | undefined;
3
+ status?: "online" | "offline" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export declare const getAvatarImageClasses: (props?: ({
6
+ variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
7
+ shape?: "circle" | "round" | "hexagon" | "triangle" | "television" | null | undefined;
8
+ ring?: boolean | null | undefined;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
+ export declare const getAvatarFallbackClasses: (props?: ({
11
+ size?: 4 | 8 | 12 | 16 | 24 | 32 | 48 | 64 | null | undefined;
12
+ variant?: "accent" | "default" | "error" | "ghost" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
13
+ shape?: "circle" | "round" | "hexagon" | "triangle" | "television" | null | undefined;
14
+ ring?: boolean | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Avatar } from "./Avatar";
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
+ import { type VariantProps } from "../../libs";
4
+ import { getAvatarClasses, getAvatarFallbackClasses, getAvatarImageClasses } from "./constants";
5
+ export type AvatarProps = Omit<React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, "asChild" | "size"> & VariantProps<typeof getAvatarClasses>;
6
+ export type AvatarImageProps = Omit<React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>, "asChild"> & VariantProps<typeof getAvatarImageClasses>;
7
+ export type AvatarFallbackProps = Omit<React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>, "asChild"> & VariantProps<typeof getAvatarFallbackClasses>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type VariantProps } from "../../libs";
2
3
  import { getBadgeClasses } from "./constants";
3
4
  export type BadgeProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof getBadgeClasses>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  export type BreadcrumbProps = React.HTMLAttributes<HTMLLIElement>;
2
3
  export type BreadcrumbsProps = React.HTMLAttributes<HTMLUListElement>;
@@ -0,0 +1,2 @@
1
+ import type { ComboboxProps, Item } from "./types";
2
+ export declare const Combobox: <T extends Item>({ label, items, classes, emptyText, placeholder, getItemValue, getItemLabel, }: ComboboxProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { Combobox } from "./Combobox";
@@ -0,0 +1,19 @@
1
+ export type Item = Record<string, any>;
2
+ export type ComboboxProps<T extends Item> = {
3
+ label: string;
4
+ items: T[];
5
+ placeholder?: string;
6
+ emptyText?: string;
7
+ getItemValue?: (item: T) => string;
8
+ getItemLabel?: (item: T) => string;
9
+ classes?: Partial<{
10
+ root: string;
11
+ trigger: string;
12
+ content: string;
13
+ input: string;
14
+ empty: string;
15
+ group: string;
16
+ item: string;
17
+ popoverContent: string;
18
+ }>;
19
+ };
@@ -0,0 +1,67 @@
1
+ import * as React from "react";
2
+ import type { CommandProps, CommandDialogProps } from "./types";
3
+ declare const Command: {
4
+ ({ className, ...props }: CommandProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string | undefined;
6
+ Dialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
7
+ Input: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
8
+ ref?: React.Ref<HTMLInputElement> | undefined;
9
+ } & {
10
+ asChild?: boolean | undefined;
11
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
12
+ value?: string | undefined;
13
+ onValueChange?: ((search: string) => void) | undefined;
14
+ } & React.RefAttributes<HTMLInputElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
15
+ List: React.ForwardRefExoticComponent<Omit<{
16
+ children?: React.ReactNode;
17
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
18
+ ref?: React.Ref<HTMLDivElement> | undefined;
19
+ } & {
20
+ asChild?: boolean | undefined;
21
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
22
+ label?: string | undefined;
23
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
24
+ Empty: React.ForwardRefExoticComponent<Omit<{
25
+ children?: React.ReactNode;
26
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
27
+ ref?: React.Ref<HTMLDivElement> | undefined;
28
+ } & {
29
+ asChild?: boolean | undefined;
30
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
+ Group: React.ForwardRefExoticComponent<Omit<{
32
+ children?: React.ReactNode;
33
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
34
+ ref?: React.Ref<HTMLDivElement> | undefined;
35
+ } & {
36
+ asChild?: boolean | undefined;
37
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
38
+ heading?: React.ReactNode;
39
+ value?: string | undefined;
40
+ forceMount?: boolean | undefined;
41
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
+ Item: React.ForwardRefExoticComponent<Omit<{
43
+ children?: React.ReactNode;
44
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
45
+ ref?: React.Ref<HTMLDivElement> | undefined;
46
+ } & {
47
+ asChild?: boolean | undefined;
48
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
49
+ disabled?: boolean | undefined;
50
+ onSelect?: ((value: string) => void) | undefined;
51
+ value?: string | undefined;
52
+ keywords?: string[] | undefined;
53
+ forceMount?: boolean | undefined;
54
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
55
+ Shortcut: {
56
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
57
+ displayName: string;
58
+ };
59
+ Separator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
60
+ ref?: React.Ref<HTMLDivElement> | undefined;
61
+ } & {
62
+ asChild?: boolean | undefined;
63
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
64
+ alwaysRender?: boolean | undefined;
65
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
66
+ };
67
+ export { Command };
@@ -0,0 +1,11 @@
1
+ export declare const getCommandClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
+ export declare const getDialogContentClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
3
+ export declare const getCommandDialogClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ export declare const getCommandInputWrapperClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
+ export declare const getCommandInputClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
6
+ export declare const getCommandListClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
7
+ export declare const getCommandEmptyClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
8
+ export declare const getCommandGroupClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
9
+ export declare const getCommandSeparatorClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
10
+ export declare const getCommandItemClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
11
+ export declare const getCommandShortcutClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Command } from "./Command";
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { Command as CommandPrimitive } from "cmdk";
3
+ import { type DialogProps } from "../Dialog/types";
4
+ import { type VariantProps } from "../../libs";
5
+ import { getCommandClasses, getCommandInputClasses } from "./constants";
6
+ export type CommandProps = React.ComponentPropsWithoutRef<typeof CommandPrimitive> & VariantProps<typeof getCommandClasses>;
7
+ export type CommandInputProps = React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> & VariantProps<typeof getCommandInputClasses>;
8
+ export type CommandDialogProps = DialogProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type DescriptionProps = React.HTMLAttributes<HTMLDListElement>;
2
3
  export type DescriptionTermProps = React.HTMLAttributes<HTMLElement>;
3
4
  export type DescriptionDetailProps = React.HTMLAttributes<HTMLElement>;
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ import type { DialogProps, DialogFooterProps, DialogHeaderProps } from "./types";
4
+ declare const Dialog: {
5
+ (props: DialogProps): import("react/jsx-runtime").JSX.Element;
6
+ Trigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
7
+ Portal: React.FC<DialogPrimitive.DialogPortalProps>;
8
+ Close: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
9
+ Header: {
10
+ ({ className, ...props }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ Title: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLHeadingElement>>;
14
+ Description: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLParagraphElement>>;
15
+ Content: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
16
+ Footer: {
17
+ ({ className, ...props }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
20
+ Overlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
21
+ };
22
+ export { Dialog };
@@ -0,0 +1,7 @@
1
+ export declare const getDialogOverlayClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
+ export declare const getDialogContentClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
3
+ export declare const getDialogHeaderClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ export declare const getDialogFooterClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
+ export declare const getDialogTitleClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
6
+ export declare const getDialogDescriptionClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
7
+ export declare const getDialogCloseClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Dialog } from "./Dialog";
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ import { type VariantProps } from "../../libs";
4
+ import { getDialogContentClasses, getDialogDescriptionClasses, getDialogFooterClasses, getDialogHeaderClasses, getDialogOverlayClasses, getDialogTitleClasses } from "./constants";
5
+ export type DialogProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;
6
+ export type DialogOverlayProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay> & VariantProps<typeof getDialogOverlayClasses>;
7
+ export type DialogContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & VariantProps<typeof getDialogContentClasses>;
8
+ export type DialogHeaderProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof getDialogHeaderClasses>;
9
+ export type DialogFooterProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof getDialogFooterClasses>;
10
+ export type DialogTitleProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title> & VariantProps<typeof getDialogTitleClasses>;
11
+ export type DialogDescriptionProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description> & VariantProps<typeof getDialogDescriptionClasses>;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & import("class-variance-authority").VariantProps<(props?: ({
3
+ variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
4
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
6
+ export { Checkbox };
@@ -0,0 +1,4 @@
1
+ export declare const getCheckboxClasses: (props?: ({
2
+ variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
3
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Checkbox } from "./Checkbox";
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type VariantProps } from "../../../libs";
3
+ import { getCheckboxClasses } from "./constants";
4
+ export type CheckboxProps = Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & VariantProps<typeof getCheckboxClasses>;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export declare const Input: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref"> & import("class-variance-authority").VariantProps<(props?: ({
3
+ variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
4
+ outline?: boolean | null | undefined;
5
+ wide?: boolean | null | undefined;
6
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,6 @@
1
+ export declare const getInputClasses: (props?: ({
2
+ variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
3
+ outline?: boolean | null | undefined;
4
+ wide?: boolean | null | undefined;
5
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Input } from "./Input";
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type VariantProps } from "../../../libs";
3
+ import { getInputClasses } from "./constants";
4
+ export type InputProps = Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref"> & VariantProps<typeof getInputClasses>;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ declare const Phone: React.ForwardRefExoticComponent<Omit<import("../Input/types").InputProps, "size" | "label" | "inputMode" | "type"> & {
3
+ inputProps?: import("class-variance-authority").VariantProps<(props?: ({
4
+ variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
5
+ outline?: boolean | null | undefined;
6
+ wide?: boolean | null | undefined;
7
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> | undefined;
9
+ buttonProps?: import("class-variance-authority").VariantProps<(props?: ({
10
+ variant?: "accent" | "default" | "error" | "ghost" | "info" | "link" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
11
+ outline?: boolean | null | undefined;
12
+ wide?: boolean | null | undefined;
13
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
14
+ isLoading?: boolean | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> | undefined;
16
+ } & React.RefAttributes<HTMLInputElement>>;
17
+ export { Phone };
@@ -0,0 +1,2 @@
1
+ export declare const getPhoneButtonClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
+ export declare const getPhoneInputClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Phone } from "./Phone";
@@ -0,0 +1,8 @@
1
+ import { type VariantProps } from "../../../libs";
2
+ import { type InputProps } from "../Input/types";
3
+ import { getInputClasses } from "../Input/constants";
4
+ import { getButtonClasses } from "../../Button/constants";
5
+ export type PhoneProps = Omit<InputProps, "type" | "size" | "label" | "inputMode"> & {
6
+ inputProps?: VariantProps<typeof getInputClasses>;
7
+ buttonProps?: VariantProps<typeof getButtonClasses>;
8
+ };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const Radio: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & import("class-variance-authority").VariantProps<(props?: ({
3
+ variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
4
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
6
+ export { Radio };
@@ -0,0 +1,4 @@
1
+ export declare const getRadioClasses: (props?: ({
2
+ variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
3
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Radio } from "./Radio";
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type VariantProps } from "../../../libs";
3
+ import { getRadioClasses } from "./constants";
4
+ export type RadioProps = Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & VariantProps<typeof getRadioClasses>;
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ declare const Range: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & import("class-variance-authority").VariantProps<(props?: ({
3
+ variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
4
+ disabled?: boolean | null | undefined;
5
+ wide?: boolean | null | undefined;
6
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
8
+ export { Range };
@@ -0,0 +1,6 @@
1
+ export declare const getRangeClasses: (props?: ({
2
+ variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
3
+ disabled?: boolean | null | undefined;
4
+ wide?: boolean | null | undefined;
5
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Range } from "./Range";
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type VariantProps } from "../../../libs";
3
+ import { getRangeClasses } from "./constants";
4
+ export type RangeProps = Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & VariantProps<typeof getRangeClasses>;
@@ -0,0 +1,27 @@
1
+ import * as React from "react";
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ declare const Select: {
4
+ (props: React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ Group: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
6
+ Value: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
7
+ Trigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
8
+ variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
9
+ outline?: boolean | null | undefined;
10
+ wide?: boolean | null | undefined;
11
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
13
+ Content: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
14
+ position?: "popper" | "item-aligned" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
16
+ Label: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
18
+ variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
19
+ outline?: boolean | null | undefined;
20
+ wide?: boolean | null | undefined;
21
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
22
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
23
+ Separator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
24
+ ScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
25
+ ScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
26
+ };
27
+ export { Select };
@@ -0,0 +1,17 @@
1
+ export declare const getSelectTriggerClasses: (props?: ({
2
+ variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
3
+ outline?: boolean | null | undefined;
4
+ wide?: boolean | null | undefined;
5
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export declare const getSelectItemClasses: (props?: ({
8
+ variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
+ export declare const getSelectLabelClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
11
+ export declare const getSelectSeparatorClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
12
+ export declare const getSelectContentClasses: (props?: ({
13
+ position?: "popper" | "item-aligned" | null | undefined;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
+ export declare const getSelectViewportClasses: (props?: ({
16
+ position?: "popper" | "item-aligned" | null | undefined;
17
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Select } from "./Select";
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import * as SelectPrimitive from "@radix-ui/react-select";
3
+ import { type VariantProps } from "../../../libs";
4
+ import { getSelectContentClasses, getSelectTriggerClasses } from "./constants";
5
+ export type SelectTriggerProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> & VariantProps<typeof getSelectTriggerClasses>;
6
+ export type SelectItemProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & VariantProps<typeof getSelectTriggerClasses>;
7
+ export type SelectContentProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> & VariantProps<typeof getSelectContentClasses>;
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import * as SliderPrimitive from "@radix-ui/react-slider";
3
+ declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: ({
4
+ variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("class-variance-authority").VariantProps<(props?: ({
6
+ variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
7
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("class-variance-authority").VariantProps<(props?: ({
9
+ variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
10
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & import("class-variance-authority").VariantProps<(props?: ({
12
+ disabled?: boolean | null | undefined;
13
+ wide?: boolean | null | undefined;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLSpanElement>>;
15
+ export { Slider };
@@ -0,0 +1,15 @@
1
+ export declare const getSliderRootClasses: (props?: ({
2
+ disabled?: boolean | null | undefined;
3
+ wide?: boolean | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export declare const getSliderTrackClasses: (props?: ({
6
+ variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
7
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export declare const getSliderClasses: (props?: ({
10
+ variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ export declare const getSliderThumbClasses: (props?: ({
13
+ variant?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | null | undefined;
14
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Slider } from "./Slider";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { type VariantProps } from "../../../libs";
3
+ import * as SliderPrimitive from "@radix-ui/react-slider";
4
+ import { getSliderClasses, getSliderRootClasses, getSliderThumbClasses, getSliderTrackClasses } from "./constants";
5
+ export type SliderProps = React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> & VariantProps<typeof getSliderClasses> & VariantProps<typeof getSliderTrackClasses> & VariantProps<typeof getSliderThumbClasses> & VariantProps<typeof getSliderRootClasses>;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const Switch: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & import("class-variance-authority").VariantProps<(props?: ({
3
+ variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
4
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLInputElement>>;
6
+ export { Switch };
@@ -0,0 +1,4 @@
1
+ export declare const getSwitchClasses: (props?: ({
2
+ variant?: "accent" | "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
3
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Switch } from "./Switch";
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type VariantProps } from "../../../libs";
3
+ import { getSwitchClasses } from "./constants";
4
+ export type SwitchProps = Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref" | "type"> & VariantProps<typeof getSwitchClasses>;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ export declare const TextField: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLInputElement>, "size" | "ref"> & import("class-variance-authority").VariantProps<(props?: ({
3
+ variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
4
+ outline?: boolean | null | undefined;
5
+ wide?: boolean | null | undefined;
6
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
8
+ info?: React.ReactNode;
9
+ error?: string | string[] | null | undefined;
10
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export declare const getTextFieldClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -0,0 +1 @@
1
+ export { TextField } from "./TextField";
@@ -0,0 +1,6 @@
1
+ import { type ReactNode } from "react";
2
+ import { type InputProps } from "../Input/types";
3
+ export type TextFieldProps = InputProps & {
4
+ info?: ReactNode;
5
+ error?: string | string[] | null;
6
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "ref"> & import("class-variance-authority").VariantProps<(props?: ({
3
+ variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
4
+ outline?: boolean | null | undefined;
5
+ wide?: boolean | null | undefined;
6
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLTextAreaElement>>;
8
+ export { Textarea };
@@ -0,0 +1,6 @@
1
+ export declare const getTextareaClasses: (props?: ({
2
+ variant?: "accent" | "error" | "ghost" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
3
+ outline?: boolean | null | undefined;
4
+ wide?: boolean | null | undefined;
5
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -0,0 +1 @@
1
+ export { Textarea } from "./Textarea";
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { type VariantProps } from "../../../libs";
3
+ import { getTextareaClasses } from "./constants";
4
+ export type TextareaProps = Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "ref"> & VariantProps<typeof getTextareaClasses>;
@@ -0,0 +1,2 @@
1
+ import type { As, FormControlProps } from "./types";
2
+ export declare const FormControl: <T extends As>({ as, children, className, ...props }: FormControlProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const getFormControlClasses: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -0,0 +1 @@
1
+ export { FormControl } from "./FormControl";
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { type VariantProps } from "../../../../libs";
3
+ import { getFormControlClasses } from "./constants";
4
+ export type As = "div" | "span" | "label";
5
+ type AllowedElements = Pick<JSX.IntrinsicElements, As>;
6
+ export type FormControlProps<T extends As> = (T extends "label" ? React.LabelHTMLAttributes<HTMLLabelElement> : React.HTMLAttributes<HTMLElement & AllowedElements[T]>) & VariantProps<typeof getFormControlClasses> & {
7
+ as?: T;
8
+ };
9
+ export {};