@twintag/twintag-form 1.3.0 → 1.4.0-beta.0
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 +4 -4
- package/CHANGELOG.md +6 -0
- package/dev/main.tsx +0 -1
- package/dist/common/button.d.ts +14 -28
- package/dist/common/calendar.d.ts +210 -2
- package/dist/common/form.d.ts +147 -5
- package/dist/common/input.d.ts +275 -2
- package/dist/common/label.d.ts +38 -1
- package/dist/common/textarea.d.ts +138 -2
- package/dist/index.d.ts +1 -0
- package/dist/provider.d.ts +1 -1
- package/dist/twintag-form.react.js +1385 -1240
- package/dist/types/index.d.ts +1 -0
- package/lib/common/button.tsx +4 -5
- package/lib/common/calendar.tsx +25 -5
- package/lib/common/form.tsx +40 -19
- package/lib/common/input.tsx +20 -10
- package/lib/common/label.tsx +16 -3
- package/lib/common/textarea.tsx +17 -9
- package/lib/components/containers/accordion.tsx +23 -6
- package/lib/components/containers/category.tsx +15 -6
- package/lib/components/fields/checkbox.tsx +9 -5
- package/lib/components/fields/date-picker.tsx +50 -17
- package/lib/components/fields/file.tsx +11 -5
- package/lib/components/fields/input.tsx +12 -5
- package/lib/components/fields/radiogroup.tsx +10 -6
- package/lib/components/fields/submit.tsx +5 -2
- package/lib/components/fields/textarea.tsx +11 -5
- package/lib/components/fields/toggle.tsx +9 -5
- package/lib/index.tsx +6 -1
- package/lib/provider.tsx +3 -0
- package/lib/types/index.ts +1 -0
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @twintag/twintag-form@1.
|
|
2
|
+
> @twintag/twintag-form@1.4.0-beta.0 build C:\Users\daryl\Desktop\twintag-projects\twintag-admin\packages\twintag-form
|
|
3
3
|
> tsc && vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v4.4.9 [32mbuilding for production...[36m[39m
|
|
@@ -14,8 +14,8 @@ computing gzip size...
|
|
|
14
14
|
[vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/prettier.config.d.mts
|
|
15
15
|
[vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/dev/main.d.ts
|
|
16
16
|
[vite:dts] Outside emitted: C:/Users/daryl/Desktop/twintag-projects/twintag-admin/packages/twintag-form/vite.config.d.ts
|
|
17
|
-
[vite:dts] Declaration files built in
|
|
17
|
+
[vite:dts] Declaration files built in 5005ms.
|
|
18
18
|
|
|
19
19
|
[2mdist/[22m[36mtwintag-form.webcomponent.js [39m[1m[2m119.76 kB[22m[1m[22m[2m │ gzip: 33.52 kB[22m
|
|
20
|
-
[2mdist/[22m[36mtwintag-form.react.js [39m[1m[
|
|
21
|
-
[32m✓ built in
|
|
20
|
+
[2mdist/[22m[36mtwintag-form.react.js [39m[1m[33m690.96 kB[39m[22m[2m │ gzip: 140.50 kB[22m
|
|
21
|
+
[32m✓ built in 12.21s[39m
|
package/CHANGELOG.md
CHANGED
package/dev/main.tsx
CHANGED
package/dist/common/button.d.ts
CHANGED
|
@@ -8,9 +8,8 @@ declare const buttonVariants: TVReturnType<{
|
|
|
8
8
|
ghost: string;
|
|
9
9
|
};
|
|
10
10
|
size: {
|
|
11
|
-
default: string;
|
|
12
11
|
sm: string;
|
|
13
|
-
|
|
12
|
+
base: string;
|
|
14
13
|
};
|
|
15
14
|
}, undefined, string[], TVConfig<{
|
|
16
15
|
variant: {
|
|
@@ -19,9 +18,8 @@ declare const buttonVariants: TVReturnType<{
|
|
|
19
18
|
ghost: string;
|
|
20
19
|
};
|
|
21
20
|
size: {
|
|
22
|
-
default: string;
|
|
23
21
|
sm: string;
|
|
24
|
-
|
|
22
|
+
base: string;
|
|
25
23
|
};
|
|
26
24
|
}, {
|
|
27
25
|
variant: {
|
|
@@ -30,9 +28,8 @@ declare const buttonVariants: TVReturnType<{
|
|
|
30
28
|
ghost: string;
|
|
31
29
|
};
|
|
32
30
|
size: {
|
|
33
|
-
default: string;
|
|
34
31
|
sm: string;
|
|
35
|
-
|
|
32
|
+
base: string;
|
|
36
33
|
};
|
|
37
34
|
}>, {
|
|
38
35
|
variant: {
|
|
@@ -41,9 +38,8 @@ declare const buttonVariants: TVReturnType<{
|
|
|
41
38
|
ghost: string;
|
|
42
39
|
};
|
|
43
40
|
size: {
|
|
44
|
-
default: string;
|
|
45
41
|
sm: string;
|
|
46
|
-
|
|
42
|
+
base: string;
|
|
47
43
|
};
|
|
48
44
|
}, undefined, TVReturnType<{
|
|
49
45
|
variant: {
|
|
@@ -52,9 +48,8 @@ declare const buttonVariants: TVReturnType<{
|
|
|
52
48
|
ghost: string;
|
|
53
49
|
};
|
|
54
50
|
size: {
|
|
55
|
-
default: string;
|
|
56
51
|
sm: string;
|
|
57
|
-
|
|
52
|
+
base: string;
|
|
58
53
|
};
|
|
59
54
|
}, undefined, string[], TVConfig<{
|
|
60
55
|
variant: {
|
|
@@ -63,9 +58,8 @@ declare const buttonVariants: TVReturnType<{
|
|
|
63
58
|
ghost: string;
|
|
64
59
|
};
|
|
65
60
|
size: {
|
|
66
|
-
default: string;
|
|
67
61
|
sm: string;
|
|
68
|
-
|
|
62
|
+
base: string;
|
|
69
63
|
};
|
|
70
64
|
}, {
|
|
71
65
|
variant: {
|
|
@@ -74,9 +68,8 @@ declare const buttonVariants: TVReturnType<{
|
|
|
74
68
|
ghost: string;
|
|
75
69
|
};
|
|
76
70
|
size: {
|
|
77
|
-
default: string;
|
|
78
71
|
sm: string;
|
|
79
|
-
|
|
72
|
+
base: string;
|
|
80
73
|
};
|
|
81
74
|
}>, unknown, unknown, undefined>>;
|
|
82
75
|
export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
|
|
@@ -89,9 +82,8 @@ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes
|
|
|
89
82
|
ghost: string;
|
|
90
83
|
};
|
|
91
84
|
size: {
|
|
92
|
-
default: string;
|
|
93
85
|
sm: string;
|
|
94
|
-
|
|
86
|
+
base: string;
|
|
95
87
|
};
|
|
96
88
|
}, undefined, string[], TVConfig<{
|
|
97
89
|
variant: {
|
|
@@ -100,9 +92,8 @@ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes
|
|
|
100
92
|
ghost: string;
|
|
101
93
|
};
|
|
102
94
|
size: {
|
|
103
|
-
default: string;
|
|
104
95
|
sm: string;
|
|
105
|
-
|
|
96
|
+
base: string;
|
|
106
97
|
};
|
|
107
98
|
}, {
|
|
108
99
|
variant: {
|
|
@@ -111,9 +102,8 @@ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes
|
|
|
111
102
|
ghost: string;
|
|
112
103
|
};
|
|
113
104
|
size: {
|
|
114
|
-
default: string;
|
|
115
105
|
sm: string;
|
|
116
|
-
|
|
106
|
+
base: string;
|
|
117
107
|
};
|
|
118
108
|
}>, {
|
|
119
109
|
variant: {
|
|
@@ -122,9 +112,8 @@ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes
|
|
|
122
112
|
ghost: string;
|
|
123
113
|
};
|
|
124
114
|
size: {
|
|
125
|
-
default: string;
|
|
126
115
|
sm: string;
|
|
127
|
-
|
|
116
|
+
base: string;
|
|
128
117
|
};
|
|
129
118
|
}, undefined, TVReturnType<{
|
|
130
119
|
variant: {
|
|
@@ -133,9 +122,8 @@ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes
|
|
|
133
122
|
ghost: string;
|
|
134
123
|
};
|
|
135
124
|
size: {
|
|
136
|
-
default: string;
|
|
137
125
|
sm: string;
|
|
138
|
-
|
|
126
|
+
base: string;
|
|
139
127
|
};
|
|
140
128
|
}, undefined, string[], TVConfig<{
|
|
141
129
|
variant: {
|
|
@@ -144,9 +132,8 @@ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes
|
|
|
144
132
|
ghost: string;
|
|
145
133
|
};
|
|
146
134
|
size: {
|
|
147
|
-
default: string;
|
|
148
135
|
sm: string;
|
|
149
|
-
|
|
136
|
+
base: string;
|
|
150
137
|
};
|
|
151
138
|
}, {
|
|
152
139
|
variant: {
|
|
@@ -155,9 +142,8 @@ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes
|
|
|
155
142
|
ghost: string;
|
|
156
143
|
};
|
|
157
144
|
size: {
|
|
158
|
-
default: string;
|
|
159
145
|
sm: string;
|
|
160
|
-
|
|
146
|
+
base: string;
|
|
161
147
|
};
|
|
162
148
|
}>, unknown, unknown, undefined>>> & {
|
|
163
149
|
asChild?: boolean | undefined;
|
|
@@ -1,8 +1,216 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
3
|
+
import { TVReturnType, VariantProps } from 'tailwind-variants';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import { DayPicker } from 'react-day-picker';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
declare const calendarVariants: TVReturnType<{
|
|
7
|
+
variant: {
|
|
8
|
+
dropdown: {
|
|
9
|
+
caption_label: string;
|
|
10
|
+
caption_dropdowns: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
sm: {
|
|
15
|
+
caption_label: string;
|
|
16
|
+
caption_dropdowns: string;
|
|
17
|
+
cell: string;
|
|
18
|
+
};
|
|
19
|
+
base: {
|
|
20
|
+
caption_label: string;
|
|
21
|
+
caption_dropdowns: string;
|
|
22
|
+
cell: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
picker: string;
|
|
27
|
+
months: string;
|
|
28
|
+
month: string;
|
|
29
|
+
caption: string;
|
|
30
|
+
caption_dropdowns: string;
|
|
31
|
+
caption_label: string;
|
|
32
|
+
nav: string;
|
|
33
|
+
nav_button: string;
|
|
34
|
+
nav_button_previous: string;
|
|
35
|
+
nav_button_next: string;
|
|
36
|
+
table: string;
|
|
37
|
+
head_row: string;
|
|
38
|
+
head_cell: string;
|
|
39
|
+
row: string;
|
|
40
|
+
cell: string;
|
|
41
|
+
day: string;
|
|
42
|
+
day_range_end: string;
|
|
43
|
+
day_selected: string;
|
|
44
|
+
day_today: string;
|
|
45
|
+
day_outside: string;
|
|
46
|
+
day_disabled: string;
|
|
47
|
+
day_range_middle: string;
|
|
48
|
+
day_hidden: string;
|
|
49
|
+
}, undefined, TVConfig<{
|
|
50
|
+
variant: {
|
|
51
|
+
dropdown: {
|
|
52
|
+
caption_label: string;
|
|
53
|
+
caption_dropdowns: string[];
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
size: {
|
|
57
|
+
sm: {
|
|
58
|
+
caption_label: string;
|
|
59
|
+
caption_dropdowns: string;
|
|
60
|
+
cell: string;
|
|
61
|
+
};
|
|
62
|
+
base: {
|
|
63
|
+
caption_label: string;
|
|
64
|
+
caption_dropdowns: string;
|
|
65
|
+
cell: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
variant: {
|
|
70
|
+
dropdown: {
|
|
71
|
+
caption_label: string;
|
|
72
|
+
caption_dropdowns: string[];
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
size: {
|
|
76
|
+
sm: {
|
|
77
|
+
caption_label: string;
|
|
78
|
+
caption_dropdowns: string;
|
|
79
|
+
cell: string;
|
|
80
|
+
};
|
|
81
|
+
base: {
|
|
82
|
+
caption_label: string;
|
|
83
|
+
caption_dropdowns: string;
|
|
84
|
+
cell: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}>, {
|
|
88
|
+
variant: {
|
|
89
|
+
dropdown: {
|
|
90
|
+
caption_label: string;
|
|
91
|
+
caption_dropdowns: string[];
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
size: {
|
|
95
|
+
sm: {
|
|
96
|
+
caption_label: string;
|
|
97
|
+
caption_dropdowns: string;
|
|
98
|
+
cell: string;
|
|
99
|
+
};
|
|
100
|
+
base: {
|
|
101
|
+
caption_label: string;
|
|
102
|
+
caption_dropdowns: string;
|
|
103
|
+
cell: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}, {
|
|
107
|
+
picker: string;
|
|
108
|
+
months: string;
|
|
109
|
+
month: string;
|
|
110
|
+
caption: string;
|
|
111
|
+
caption_dropdowns: string;
|
|
112
|
+
caption_label: string;
|
|
113
|
+
nav: string;
|
|
114
|
+
nav_button: string;
|
|
115
|
+
nav_button_previous: string;
|
|
116
|
+
nav_button_next: string;
|
|
117
|
+
table: string;
|
|
118
|
+
head_row: string;
|
|
119
|
+
head_cell: string;
|
|
120
|
+
row: string;
|
|
121
|
+
cell: string;
|
|
122
|
+
day: string;
|
|
123
|
+
day_range_end: string;
|
|
124
|
+
day_selected: string;
|
|
125
|
+
day_today: string;
|
|
126
|
+
day_outside: string;
|
|
127
|
+
day_disabled: string;
|
|
128
|
+
day_range_middle: string;
|
|
129
|
+
day_hidden: string;
|
|
130
|
+
}, TVReturnType<{
|
|
131
|
+
variant: {
|
|
132
|
+
dropdown: {
|
|
133
|
+
caption_label: string;
|
|
134
|
+
caption_dropdowns: string[];
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
size: {
|
|
138
|
+
sm: {
|
|
139
|
+
caption_label: string;
|
|
140
|
+
caption_dropdowns: string;
|
|
141
|
+
cell: string;
|
|
142
|
+
};
|
|
143
|
+
base: {
|
|
144
|
+
caption_label: string;
|
|
145
|
+
caption_dropdowns: string;
|
|
146
|
+
cell: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}, {
|
|
150
|
+
picker: string;
|
|
151
|
+
months: string;
|
|
152
|
+
month: string;
|
|
153
|
+
caption: string;
|
|
154
|
+
caption_dropdowns: string;
|
|
155
|
+
caption_label: string;
|
|
156
|
+
nav: string;
|
|
157
|
+
nav_button: string;
|
|
158
|
+
nav_button_previous: string;
|
|
159
|
+
nav_button_next: string;
|
|
160
|
+
table: string;
|
|
161
|
+
head_row: string;
|
|
162
|
+
head_cell: string;
|
|
163
|
+
row: string;
|
|
164
|
+
cell: string;
|
|
165
|
+
day: string;
|
|
166
|
+
day_range_end: string;
|
|
167
|
+
day_selected: string;
|
|
168
|
+
day_today: string;
|
|
169
|
+
day_outside: string;
|
|
170
|
+
day_disabled: string;
|
|
171
|
+
day_range_middle: string;
|
|
172
|
+
day_hidden: string;
|
|
173
|
+
}, undefined, TVConfig<{
|
|
174
|
+
variant: {
|
|
175
|
+
dropdown: {
|
|
176
|
+
caption_label: string;
|
|
177
|
+
caption_dropdowns: string[];
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
size: {
|
|
181
|
+
sm: {
|
|
182
|
+
caption_label: string;
|
|
183
|
+
caption_dropdowns: string;
|
|
184
|
+
cell: string;
|
|
185
|
+
};
|
|
186
|
+
base: {
|
|
187
|
+
caption_label: string;
|
|
188
|
+
caption_dropdowns: string;
|
|
189
|
+
cell: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
}, {
|
|
193
|
+
variant: {
|
|
194
|
+
dropdown: {
|
|
195
|
+
caption_label: string;
|
|
196
|
+
caption_dropdowns: string[];
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
size: {
|
|
200
|
+
sm: {
|
|
201
|
+
caption_label: string;
|
|
202
|
+
caption_dropdowns: string;
|
|
203
|
+
cell: string;
|
|
204
|
+
};
|
|
205
|
+
base: {
|
|
206
|
+
caption_label: string;
|
|
207
|
+
caption_dropdowns: string;
|
|
208
|
+
cell: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
}>, unknown, unknown, undefined>>;
|
|
212
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker> & VariantProps<typeof calendarVariants>;
|
|
213
|
+
declare function Calendar({ size, className, classNames, showOutsideDays, ...props }: CalendarProps): JSX.Element;
|
|
6
214
|
declare namespace Calendar {
|
|
7
215
|
var displayName: string;
|
|
8
216
|
}
|
package/dist/common/form.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { SlotProps } from '@radix-ui/react-slot';
|
|
2
|
+
import { LabelProps } from '@radix-ui/react-label';
|
|
3
|
+
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
2
4
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import type * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
5
|
import { FormProviderProps, FieldError, ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
6
|
+
import { TVReturnType, VariantProps } from 'tailwind-variants';
|
|
5
7
|
import * as React from 'react';
|
|
6
8
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
7
9
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => JSX.Element;
|
|
@@ -16,9 +18,149 @@ declare const useFormField: () => {
|
|
|
16
18
|
formDescriptionId: string;
|
|
17
19
|
formMessageId: string;
|
|
18
20
|
};
|
|
19
|
-
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> &
|
|
20
|
-
|
|
21
|
+
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<TVReturnType<{
|
|
22
|
+
variant: {
|
|
23
|
+
default: string;
|
|
24
|
+
beta: string;
|
|
25
|
+
};
|
|
26
|
+
}, undefined, "", TVConfig<{
|
|
27
|
+
variant: {
|
|
28
|
+
default: string;
|
|
29
|
+
beta: string;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
variant: {
|
|
33
|
+
default: string;
|
|
34
|
+
beta: string;
|
|
35
|
+
};
|
|
36
|
+
}>, {
|
|
37
|
+
variant: {
|
|
38
|
+
default: string;
|
|
39
|
+
beta: string;
|
|
40
|
+
};
|
|
41
|
+
}, undefined, TVReturnType<{
|
|
42
|
+
variant: {
|
|
43
|
+
default: string;
|
|
44
|
+
beta: string;
|
|
45
|
+
};
|
|
46
|
+
}, undefined, "", TVConfig<{
|
|
47
|
+
variant: {
|
|
48
|
+
default: string;
|
|
49
|
+
beta: string;
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
variant: {
|
|
53
|
+
default: string;
|
|
54
|
+
beta: string;
|
|
55
|
+
};
|
|
56
|
+
}>, unknown, unknown, undefined>>> & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
declare const FormLabel: React.ForwardRefExoticComponent<Omit<Omit<LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<TVReturnType<{
|
|
58
|
+
size: {
|
|
59
|
+
sm: string;
|
|
60
|
+
base: string;
|
|
61
|
+
};
|
|
62
|
+
}, undefined, string[], TVConfig<{
|
|
63
|
+
size: {
|
|
64
|
+
sm: string;
|
|
65
|
+
base: string;
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
size: {
|
|
69
|
+
sm: string;
|
|
70
|
+
base: string;
|
|
71
|
+
};
|
|
72
|
+
}>, {
|
|
73
|
+
size: {
|
|
74
|
+
sm: string;
|
|
75
|
+
base: string;
|
|
76
|
+
};
|
|
77
|
+
}, undefined, TVReturnType<{
|
|
78
|
+
size: {
|
|
79
|
+
sm: string;
|
|
80
|
+
base: string;
|
|
81
|
+
};
|
|
82
|
+
}, undefined, string[], TVConfig<{
|
|
83
|
+
size: {
|
|
84
|
+
sm: string;
|
|
85
|
+
base: string;
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
size: {
|
|
89
|
+
sm: string;
|
|
90
|
+
base: string;
|
|
91
|
+
};
|
|
92
|
+
}>, unknown, unknown, undefined>>> & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
21
93
|
declare const FormControl: React.ForwardRefExoticComponent<Omit<SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
22
|
-
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> &
|
|
23
|
-
|
|
94
|
+
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & VariantProps<TVReturnType<{
|
|
95
|
+
size: {
|
|
96
|
+
sm: string;
|
|
97
|
+
base: string;
|
|
98
|
+
};
|
|
99
|
+
}, undefined, "text-muted-foreground", TVConfig<{
|
|
100
|
+
size: {
|
|
101
|
+
sm: string;
|
|
102
|
+
base: string;
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
size: {
|
|
106
|
+
sm: string;
|
|
107
|
+
base: string;
|
|
108
|
+
};
|
|
109
|
+
}>, {
|
|
110
|
+
size: {
|
|
111
|
+
sm: string;
|
|
112
|
+
base: string;
|
|
113
|
+
};
|
|
114
|
+
}, undefined, TVReturnType<{
|
|
115
|
+
size: {
|
|
116
|
+
sm: string;
|
|
117
|
+
base: string;
|
|
118
|
+
};
|
|
119
|
+
}, undefined, "text-muted-foreground", TVConfig<{
|
|
120
|
+
size: {
|
|
121
|
+
sm: string;
|
|
122
|
+
base: string;
|
|
123
|
+
};
|
|
124
|
+
}, {
|
|
125
|
+
size: {
|
|
126
|
+
sm: string;
|
|
127
|
+
base: string;
|
|
128
|
+
};
|
|
129
|
+
}>, unknown, unknown, undefined>>> & React.RefAttributes<HTMLParagraphElement>>;
|
|
130
|
+
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & VariantProps<TVReturnType<{
|
|
131
|
+
size: {
|
|
132
|
+
sm: string;
|
|
133
|
+
base: string;
|
|
134
|
+
};
|
|
135
|
+
}, undefined, "font-medium text-destructive", TVConfig<{
|
|
136
|
+
size: {
|
|
137
|
+
sm: string;
|
|
138
|
+
base: string;
|
|
139
|
+
};
|
|
140
|
+
}, {
|
|
141
|
+
size: {
|
|
142
|
+
sm: string;
|
|
143
|
+
base: string;
|
|
144
|
+
};
|
|
145
|
+
}>, {
|
|
146
|
+
size: {
|
|
147
|
+
sm: string;
|
|
148
|
+
base: string;
|
|
149
|
+
};
|
|
150
|
+
}, undefined, TVReturnType<{
|
|
151
|
+
size: {
|
|
152
|
+
sm: string;
|
|
153
|
+
base: string;
|
|
154
|
+
};
|
|
155
|
+
}, undefined, "font-medium text-destructive", TVConfig<{
|
|
156
|
+
size: {
|
|
157
|
+
sm: string;
|
|
158
|
+
base: string;
|
|
159
|
+
};
|
|
160
|
+
}, {
|
|
161
|
+
size: {
|
|
162
|
+
sm: string;
|
|
163
|
+
base: string;
|
|
164
|
+
};
|
|
165
|
+
}>, unknown, unknown, undefined>>> & React.RefAttributes<HTMLParagraphElement>>;
|
|
24
166
|
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|