@twintag/twintag-form 1.6.2-beta.0 → 1.6.2-beta.1
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.
- package/.turbo/turbo-build.log +22 -0
- package/CHANGELOG.md +221 -215
- package/README.md +407 -407
- package/dev/main.tsx +460 -460
- package/dist/common/accordion.d.ts +7 -0
- package/dist/common/button.d.ts +71 -0
- package/dist/common/calendar.d.ts +139 -0
- package/dist/common/checkbox.d.ts +4 -0
- package/dist/common/form.d.ts +86 -0
- package/dist/common/icon.d.ts +8 -0
- package/dist/common/input.d.ts +133 -0
- package/dist/common/label.d.ts +21 -0
- package/dist/common/popover.d.ts +6 -0
- package/dist/common/radiogroup.d.ts +5 -0
- package/dist/common/slider.d.ts +4 -0
- package/dist/common/switch.d.ts +4 -0
- package/dist/common/textarea.d.ts +68 -0
- package/dist/components/config.d.ts +6 -0
- package/dist/components/containers/accordion.d.ts +7 -0
- package/dist/components/containers/category.d.ts +8 -0
- package/dist/components/fields/checkbox.d.ts +5 -0
- package/dist/components/fields/date-picker.d.ts +4 -0
- package/dist/components/fields/file.d.ts +5 -0
- package/dist/components/fields/input.d.ts +5 -0
- package/dist/components/fields/radiogroup.d.ts +7 -0
- package/dist/components/fields/submit.d.ts +4 -0
- package/dist/components/fields/textarea.d.ts +5 -0
- package/dist/components/fields/toggle.d.ts +5 -0
- package/dist/components/fields/tri-toggle.d.ts +5 -0
- package/dist/components/form.d.ts +9 -0
- package/dist/components/input.d.ts +4 -0
- package/dist/components/label.d.ts +4 -0
- package/dist/components/provider.d.ts +14 -0
- package/dist/components/renderer.d.ts +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +4465 -0
- package/dist/types/index.d.ts +68 -0
- package/dist/utils/data.d.ts +7 -0
- package/dist/utils/string.d.ts +3 -0
- package/dist/utils/style.d.ts +3 -0
- package/dist/webcomponent.cjs +1 -0
- package/dist/webcomponent.d.ts +1 -0
- package/dist/webcomponent.js +1165 -0
- package/lib/components/fields/date-picker.tsx +154 -154
- package/lib/components/fields/file.tsx +84 -84
- package/lib/components/fields/input.tsx +70 -70
- package/lib/components/fields/textarea.tsx +72 -72
- package/lib/components/provider.tsx +162 -162
- package/lib/index.tsx +45 -45
- package/lib/types/index.ts +102 -102
- package/lib/webcomponent.ts +2 -2
- package/package.json +1 -1
- package/vite.config.ts +2 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const buttonVariants: TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
default: string;
|
|
7
|
+
outline: string;
|
|
8
|
+
ghost: string;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
sm: string;
|
|
12
|
+
base: string;
|
|
13
|
+
};
|
|
14
|
+
}, undefined, string[], {
|
|
15
|
+
variant: {
|
|
16
|
+
default: string;
|
|
17
|
+
outline: string;
|
|
18
|
+
ghost: string;
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
sm: string;
|
|
22
|
+
base: string;
|
|
23
|
+
};
|
|
24
|
+
}, undefined, TVReturnType<{
|
|
25
|
+
variant: {
|
|
26
|
+
default: string;
|
|
27
|
+
outline: string;
|
|
28
|
+
ghost: string;
|
|
29
|
+
};
|
|
30
|
+
size: {
|
|
31
|
+
sm: string;
|
|
32
|
+
base: string;
|
|
33
|
+
};
|
|
34
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
35
|
+
export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
|
|
36
|
+
asChild?: boolean;
|
|
37
|
+
};
|
|
38
|
+
declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps< TVReturnType<{
|
|
39
|
+
variant: {
|
|
40
|
+
default: string;
|
|
41
|
+
outline: string;
|
|
42
|
+
ghost: string;
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
sm: string;
|
|
46
|
+
base: string;
|
|
47
|
+
};
|
|
48
|
+
}, undefined, string[], {
|
|
49
|
+
variant: {
|
|
50
|
+
default: string;
|
|
51
|
+
outline: string;
|
|
52
|
+
ghost: string;
|
|
53
|
+
};
|
|
54
|
+
size: {
|
|
55
|
+
sm: string;
|
|
56
|
+
base: string;
|
|
57
|
+
};
|
|
58
|
+
}, undefined, TVReturnType<{
|
|
59
|
+
variant: {
|
|
60
|
+
default: string;
|
|
61
|
+
outline: string;
|
|
62
|
+
ghost: string;
|
|
63
|
+
};
|
|
64
|
+
size: {
|
|
65
|
+
sm: string;
|
|
66
|
+
base: string;
|
|
67
|
+
};
|
|
68
|
+
}, undefined, string[], unknown, unknown, undefined>>> & {
|
|
69
|
+
asChild?: boolean;
|
|
70
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
71
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
+
import { DayPicker } from 'react-day-picker';
|
|
3
|
+
import type * as React from 'react';
|
|
4
|
+
declare const calendarVariants: TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
dropdown: {
|
|
7
|
+
caption_label: string;
|
|
8
|
+
caption_dropdowns: string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
size: {
|
|
12
|
+
sm: {
|
|
13
|
+
caption_label: string;
|
|
14
|
+
caption_dropdowns: string;
|
|
15
|
+
cell: string;
|
|
16
|
+
};
|
|
17
|
+
base: {
|
|
18
|
+
caption_label: string;
|
|
19
|
+
caption_dropdowns: string;
|
|
20
|
+
cell: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
picker: string;
|
|
25
|
+
months: string;
|
|
26
|
+
month: string;
|
|
27
|
+
caption: string;
|
|
28
|
+
caption_dropdowns: string;
|
|
29
|
+
caption_label: string;
|
|
30
|
+
nav: string;
|
|
31
|
+
nav_button: string;
|
|
32
|
+
nav_button_previous: string;
|
|
33
|
+
nav_button_next: string;
|
|
34
|
+
table: string;
|
|
35
|
+
head_row: string;
|
|
36
|
+
head_cell: string;
|
|
37
|
+
row: string;
|
|
38
|
+
cell: string;
|
|
39
|
+
day: string;
|
|
40
|
+
day_range_end: string;
|
|
41
|
+
day_selected: string;
|
|
42
|
+
day_today: string;
|
|
43
|
+
day_outside: string;
|
|
44
|
+
day_disabled: string;
|
|
45
|
+
day_range_middle: string;
|
|
46
|
+
day_hidden: string;
|
|
47
|
+
}, undefined, {
|
|
48
|
+
variant: {
|
|
49
|
+
dropdown: {
|
|
50
|
+
caption_label: string;
|
|
51
|
+
caption_dropdowns: string[];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
size: {
|
|
55
|
+
sm: {
|
|
56
|
+
caption_label: string;
|
|
57
|
+
caption_dropdowns: string;
|
|
58
|
+
cell: string;
|
|
59
|
+
};
|
|
60
|
+
base: {
|
|
61
|
+
caption_label: string;
|
|
62
|
+
caption_dropdowns: string;
|
|
63
|
+
cell: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
}, {
|
|
67
|
+
picker: string;
|
|
68
|
+
months: string;
|
|
69
|
+
month: string;
|
|
70
|
+
caption: string;
|
|
71
|
+
caption_dropdowns: string;
|
|
72
|
+
caption_label: string;
|
|
73
|
+
nav: string;
|
|
74
|
+
nav_button: string;
|
|
75
|
+
nav_button_previous: string;
|
|
76
|
+
nav_button_next: string;
|
|
77
|
+
table: string;
|
|
78
|
+
head_row: string;
|
|
79
|
+
head_cell: string;
|
|
80
|
+
row: string;
|
|
81
|
+
cell: string;
|
|
82
|
+
day: string;
|
|
83
|
+
day_range_end: string;
|
|
84
|
+
day_selected: string;
|
|
85
|
+
day_today: string;
|
|
86
|
+
day_outside: string;
|
|
87
|
+
day_disabled: string;
|
|
88
|
+
day_range_middle: string;
|
|
89
|
+
day_hidden: string;
|
|
90
|
+
}, TVReturnType<{
|
|
91
|
+
variant: {
|
|
92
|
+
dropdown: {
|
|
93
|
+
caption_label: string;
|
|
94
|
+
caption_dropdowns: string[];
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
size: {
|
|
98
|
+
sm: {
|
|
99
|
+
caption_label: string;
|
|
100
|
+
caption_dropdowns: string;
|
|
101
|
+
cell: string;
|
|
102
|
+
};
|
|
103
|
+
base: {
|
|
104
|
+
caption_label: string;
|
|
105
|
+
caption_dropdowns: string;
|
|
106
|
+
cell: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
}, {
|
|
110
|
+
picker: string;
|
|
111
|
+
months: string;
|
|
112
|
+
month: string;
|
|
113
|
+
caption: string;
|
|
114
|
+
caption_dropdowns: string;
|
|
115
|
+
caption_label: string;
|
|
116
|
+
nav: string;
|
|
117
|
+
nav_button: string;
|
|
118
|
+
nav_button_previous: string;
|
|
119
|
+
nav_button_next: string;
|
|
120
|
+
table: string;
|
|
121
|
+
head_row: string;
|
|
122
|
+
head_cell: string;
|
|
123
|
+
row: string;
|
|
124
|
+
cell: string;
|
|
125
|
+
day: string;
|
|
126
|
+
day_range_end: string;
|
|
127
|
+
day_selected: string;
|
|
128
|
+
day_today: string;
|
|
129
|
+
day_outside: string;
|
|
130
|
+
day_disabled: string;
|
|
131
|
+
day_range_middle: string;
|
|
132
|
+
day_hidden: string;
|
|
133
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
134
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker> & VariantProps<typeof calendarVariants>;
|
|
135
|
+
declare function Calendar({ size, className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
136
|
+
declare namespace Calendar {
|
|
137
|
+
var displayName: string;
|
|
138
|
+
}
|
|
139
|
+
export { Calendar };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Checkbox };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ControllerProps, FieldPath, FieldValues, FormProviderProps, FieldError } from 'react-hook-form';
|
|
2
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
3
|
+
import { LabelProps } from '@radix-ui/react-label';
|
|
4
|
+
import { SlotProps } from '@radix-ui/react-slot';
|
|
5
|
+
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
8
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const useFormField: () => {
|
|
10
|
+
invalid: boolean;
|
|
11
|
+
isDirty: boolean;
|
|
12
|
+
isTouched: boolean;
|
|
13
|
+
isValidating: boolean;
|
|
14
|
+
error?: FieldError;
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
formItemId: string;
|
|
18
|
+
formDescriptionId: string;
|
|
19
|
+
formMessageId: string;
|
|
20
|
+
};
|
|
21
|
+
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps< TVReturnType<{
|
|
22
|
+
variant: {
|
|
23
|
+
default: string;
|
|
24
|
+
outline: string;
|
|
25
|
+
};
|
|
26
|
+
}, undefined, "", {
|
|
27
|
+
variant: {
|
|
28
|
+
default: string;
|
|
29
|
+
outline: string;
|
|
30
|
+
};
|
|
31
|
+
}, undefined, TVReturnType<{
|
|
32
|
+
variant: {
|
|
33
|
+
default: string;
|
|
34
|
+
outline: string;
|
|
35
|
+
};
|
|
36
|
+
}, undefined, "", unknown, unknown, undefined>>> & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
declare const FormLabel: React.ForwardRefExoticComponent<Omit<Omit< LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps< TVReturnType<{
|
|
38
|
+
size: {
|
|
39
|
+
sm: string;
|
|
40
|
+
base: string;
|
|
41
|
+
};
|
|
42
|
+
}, undefined, string[], {
|
|
43
|
+
size: {
|
|
44
|
+
sm: string;
|
|
45
|
+
base: string;
|
|
46
|
+
};
|
|
47
|
+
}, undefined, TVReturnType<{
|
|
48
|
+
size: {
|
|
49
|
+
sm: string;
|
|
50
|
+
base: string;
|
|
51
|
+
};
|
|
52
|
+
}, undefined, string[], unknown, unknown, undefined>>> & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
53
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit< SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
54
|
+
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & VariantProps< TVReturnType<{
|
|
55
|
+
size: {
|
|
56
|
+
sm: string;
|
|
57
|
+
base: string;
|
|
58
|
+
};
|
|
59
|
+
}, undefined, "text-tf-muted-foreground", {
|
|
60
|
+
size: {
|
|
61
|
+
sm: string;
|
|
62
|
+
base: string;
|
|
63
|
+
};
|
|
64
|
+
}, undefined, TVReturnType<{
|
|
65
|
+
size: {
|
|
66
|
+
sm: string;
|
|
67
|
+
base: string;
|
|
68
|
+
};
|
|
69
|
+
}, undefined, "text-tf-muted-foreground", unknown, unknown, undefined>>> & React.RefAttributes<HTMLParagraphElement>>;
|
|
70
|
+
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & VariantProps< TVReturnType<{
|
|
71
|
+
size: {
|
|
72
|
+
sm: string;
|
|
73
|
+
base: string;
|
|
74
|
+
};
|
|
75
|
+
}, undefined, "font-medium text-tf-destructive", {
|
|
76
|
+
size: {
|
|
77
|
+
sm: string;
|
|
78
|
+
base: string;
|
|
79
|
+
};
|
|
80
|
+
}, undefined, TVReturnType<{
|
|
81
|
+
size: {
|
|
82
|
+
sm: string;
|
|
83
|
+
base: string;
|
|
84
|
+
};
|
|
85
|
+
}, undefined, "font-medium text-tf-destructive", unknown, unknown, undefined>>> & React.RefAttributes<HTMLParagraphElement>>;
|
|
86
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const inputVariants: TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
default: {
|
|
7
|
+
input: string;
|
|
8
|
+
};
|
|
9
|
+
outline: {
|
|
10
|
+
root: string;
|
|
11
|
+
input: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
sm: {
|
|
16
|
+
input: string;
|
|
17
|
+
};
|
|
18
|
+
base: {
|
|
19
|
+
input: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
root: string;
|
|
24
|
+
input: string[];
|
|
25
|
+
}, undefined, {
|
|
26
|
+
variant: {
|
|
27
|
+
default: {
|
|
28
|
+
input: string;
|
|
29
|
+
};
|
|
30
|
+
outline: {
|
|
31
|
+
root: string;
|
|
32
|
+
input: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
size: {
|
|
36
|
+
sm: {
|
|
37
|
+
input: string;
|
|
38
|
+
};
|
|
39
|
+
base: {
|
|
40
|
+
input: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
root: string;
|
|
45
|
+
input: string[];
|
|
46
|
+
}, TVReturnType<{
|
|
47
|
+
variant: {
|
|
48
|
+
default: {
|
|
49
|
+
input: string;
|
|
50
|
+
};
|
|
51
|
+
outline: {
|
|
52
|
+
root: string;
|
|
53
|
+
input: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
size: {
|
|
57
|
+
sm: {
|
|
58
|
+
input: string;
|
|
59
|
+
};
|
|
60
|
+
base: {
|
|
61
|
+
input: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
root: string;
|
|
66
|
+
input: string[];
|
|
67
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
68
|
+
export type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> & VariantProps<typeof inputVariants>;
|
|
69
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & VariantProps< TVReturnType<{
|
|
70
|
+
variant: {
|
|
71
|
+
default: {
|
|
72
|
+
input: string;
|
|
73
|
+
};
|
|
74
|
+
outline: {
|
|
75
|
+
root: string;
|
|
76
|
+
input: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
size: {
|
|
80
|
+
sm: {
|
|
81
|
+
input: string;
|
|
82
|
+
};
|
|
83
|
+
base: {
|
|
84
|
+
input: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
root: string;
|
|
89
|
+
input: string[];
|
|
90
|
+
}, undefined, {
|
|
91
|
+
variant: {
|
|
92
|
+
default: {
|
|
93
|
+
input: string;
|
|
94
|
+
};
|
|
95
|
+
outline: {
|
|
96
|
+
root: string;
|
|
97
|
+
input: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
size: {
|
|
101
|
+
sm: {
|
|
102
|
+
input: string;
|
|
103
|
+
};
|
|
104
|
+
base: {
|
|
105
|
+
input: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}, {
|
|
109
|
+
root: string;
|
|
110
|
+
input: string[];
|
|
111
|
+
}, TVReturnType<{
|
|
112
|
+
variant: {
|
|
113
|
+
default: {
|
|
114
|
+
input: string;
|
|
115
|
+
};
|
|
116
|
+
outline: {
|
|
117
|
+
root: string;
|
|
118
|
+
input: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
size: {
|
|
122
|
+
sm: {
|
|
123
|
+
input: string;
|
|
124
|
+
};
|
|
125
|
+
base: {
|
|
126
|
+
input: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
root: string;
|
|
131
|
+
input: string[];
|
|
132
|
+
}, undefined, unknown, unknown, undefined>>> & React.RefAttributes<HTMLInputElement>>;
|
|
133
|
+
export { Input };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
5
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps< TVReturnType<{
|
|
6
|
+
size: {
|
|
7
|
+
sm: string;
|
|
8
|
+
base: string;
|
|
9
|
+
};
|
|
10
|
+
}, undefined, string[], {
|
|
11
|
+
size: {
|
|
12
|
+
sm: string;
|
|
13
|
+
base: string;
|
|
14
|
+
};
|
|
15
|
+
}, undefined, TVReturnType<{
|
|
16
|
+
size: {
|
|
17
|
+
sm: string;
|
|
18
|
+
base: string;
|
|
19
|
+
};
|
|
20
|
+
}, undefined, string[], unknown, unknown, undefined>>> & React.RefAttributes<HTMLLabelElement>>;
|
|
21
|
+
export { Label };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,4 @@
|
|
|
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"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export { Slider };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
3
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Switch };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const Textarea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & VariantProps< TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
default: {
|
|
7
|
+
textarea: string;
|
|
8
|
+
};
|
|
9
|
+
outline: {
|
|
10
|
+
root: string;
|
|
11
|
+
textarea: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
sm: {
|
|
16
|
+
textarea: string;
|
|
17
|
+
};
|
|
18
|
+
base: {
|
|
19
|
+
textarea: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
root: string;
|
|
24
|
+
textarea: string[];
|
|
25
|
+
}, undefined, {
|
|
26
|
+
variant: {
|
|
27
|
+
default: {
|
|
28
|
+
textarea: string;
|
|
29
|
+
};
|
|
30
|
+
outline: {
|
|
31
|
+
root: string;
|
|
32
|
+
textarea: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
size: {
|
|
36
|
+
sm: {
|
|
37
|
+
textarea: string;
|
|
38
|
+
};
|
|
39
|
+
base: {
|
|
40
|
+
textarea: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
root: string;
|
|
45
|
+
textarea: string[];
|
|
46
|
+
}, TVReturnType<{
|
|
47
|
+
variant: {
|
|
48
|
+
default: {
|
|
49
|
+
textarea: string;
|
|
50
|
+
};
|
|
51
|
+
outline: {
|
|
52
|
+
root: string;
|
|
53
|
+
textarea: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
size: {
|
|
57
|
+
sm: {
|
|
58
|
+
textarea: string;
|
|
59
|
+
};
|
|
60
|
+
base: {
|
|
61
|
+
textarea: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
root: string;
|
|
66
|
+
textarea: string[];
|
|
67
|
+
}, undefined, unknown, unknown, undefined>>> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
68
|
+
export { Textarea };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Props } from '../../types';
|
|
3
|
+
import { WithChildren } from 'twintag-types/dom';
|
|
4
|
+
|
|
5
|
+
type AccordionProps = Props<'accordion', 'item' | 'multiple' | 'single'> & WithChildren;
|
|
6
|
+
declare const Accordion: FC<AccordionProps>;
|
|
7
|
+
export { Accordion };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
|
+
import { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const TwintagForm: ForwardRefExoticComponent<{
|
|
5
|
+
defaultValues?: FieldValues;
|
|
6
|
+
resetOnSubmit?: boolean;
|
|
7
|
+
} & {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
} & RefAttributes<HTMLFormElement>>;
|