@twintag/twintag-form 1.3.0 → 1.4.0-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 +6 -6
- package/CHANGELOG.md +12 -0
- package/README.md +121 -62
- package/dev/main.tsx +233 -210
- package/dist/common/button.d.ts +17 -30
- package/dist/common/calendar.d.ts +212 -4
- package/dist/common/form.d.ts +151 -9
- package/dist/common/icon.d.ts +2 -1
- package/dist/common/input.d.ts +276 -2
- package/dist/common/label.d.ts +39 -1
- package/dist/common/slider.d.ts +4 -0
- package/dist/common/textarea.d.ts +139 -2
- package/dist/components/config.d.ts +4 -2
- package/dist/components/containers/accordion.d.ts +3 -2
- package/dist/components/containers/category.d.ts +3 -2
- package/dist/components/fields/checkbox.d.ts +4 -2
- package/dist/components/fields/date-picker.d.ts +3 -1
- package/dist/components/fields/file.d.ts +4 -2
- package/dist/components/fields/input.d.ts +4 -2
- package/dist/components/fields/radiogroup.d.ts +4 -2
- package/dist/components/fields/submit.d.ts +3 -2
- package/dist/components/fields/textarea.d.ts +4 -2
- package/dist/components/fields/toggle.d.ts +4 -2
- package/dist/components/fields/tri-toggle.d.ts +5 -0
- package/dist/components/form.d.ts +2 -2
- package/dist/components/provider.d.ts +21 -0
- package/dist/components/renderer.d.ts +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/twintag-form.react.js +12868 -12156
- package/dist/types/index.d.ts +25 -16
- package/dist/utils/data.d.ts +2 -1
- package/dist/utils/style.d.ts +2 -1
- package/index.html +5 -3
- 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/slider.tsx +38 -0
- package/lib/common/textarea.tsx +17 -9
- package/lib/components/config.tsx +46 -17
- package/lib/components/containers/accordion.tsx +24 -7
- package/lib/components/containers/category.tsx +16 -7
- package/lib/components/fields/checkbox.tsx +12 -6
- package/lib/components/fields/date-picker.tsx +54 -18
- package/lib/components/fields/file.tsx +83 -76
- package/lib/components/fields/input.tsx +15 -6
- package/lib/components/fields/radiogroup.tsx +13 -7
- package/lib/components/fields/submit.tsx +5 -2
- package/lib/components/fields/textarea.tsx +14 -6
- package/lib/components/fields/toggle.tsx +12 -6
- package/lib/components/fields/tri-toggle.tsx +141 -0
- package/lib/components/form.tsx +5 -7
- package/lib/components/provider.tsx +159 -0
- package/lib/components/{Render/index.tsx → renderer.tsx} +19 -2
- package/lib/index.tsx +41 -36
- package/lib/types/index.ts +49 -39
- package/package.json +5 -7
- package/dist/components/Render/index.d.ts +0 -7
- package/dist/components/Render/useJson.d.ts +0 -2
- package/dist/components/index.d.ts +0 -7
- package/dist/provider.d.ts +0 -8
- package/lib/components/Render/useJson.ts +0 -76
- package/lib/components/index.tsx +0 -24
- package/lib/provider.tsx +0 -36
|
@@ -1,8 +1,216 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as React from 'react';
|
|
1
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
3
2
|
import { DayPicker } from 'react-day-picker';
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
4
|
+
|
|
5
|
+
import * as React from 'react';
|
|
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): import("react/jsx-runtime").JSX.Element;
|
|
6
214
|
declare namespace Calendar {
|
|
7
215
|
var displayName: string;
|
|
8
216
|
}
|
package/dist/common/form.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { ControllerProps, FieldPath, FieldValues, FormProviderProps, FieldError } from 'react-hook-form';
|
|
2
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
3
|
+
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
4
|
+
import { LabelProps } from '@radix-ui/react-label';
|
|
1
5
|
import { SlotProps } from '@radix-ui/react-slot';
|
|
2
|
-
|
|
3
|
-
import type * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
-
import { FormProviderProps, FieldError, ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
6
|
+
|
|
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
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => JSX.Element;
|
|
9
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
declare const useFormField: () => {
|
|
9
11
|
invalid: boolean;
|
|
10
12
|
isDirty: boolean;
|
|
@@ -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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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>>;
|
|
93
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit< SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
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, };
|
package/dist/common/icon.d.ts
CHANGED
package/dist/common/input.d.ts
CHANGED
|
@@ -1,4 +1,278 @@
|
|
|
1
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
+
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
3
|
+
|
|
1
4
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
5
|
+
declare const inputVariants: TVReturnType<{
|
|
6
|
+
variant: {
|
|
7
|
+
default: {
|
|
8
|
+
input: string;
|
|
9
|
+
};
|
|
10
|
+
beta: {
|
|
11
|
+
root: string;
|
|
12
|
+
input: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
size: {
|
|
16
|
+
sm: {
|
|
17
|
+
input: string;
|
|
18
|
+
};
|
|
19
|
+
base: {
|
|
20
|
+
input: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
root: string;
|
|
25
|
+
input: string[];
|
|
26
|
+
}, undefined, TVConfig<{
|
|
27
|
+
variant: {
|
|
28
|
+
default: {
|
|
29
|
+
input: string;
|
|
30
|
+
};
|
|
31
|
+
beta: {
|
|
32
|
+
root: string;
|
|
33
|
+
input: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
size: {
|
|
37
|
+
sm: {
|
|
38
|
+
input: string;
|
|
39
|
+
};
|
|
40
|
+
base: {
|
|
41
|
+
input: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
variant: {
|
|
46
|
+
default: {
|
|
47
|
+
input: string;
|
|
48
|
+
};
|
|
49
|
+
beta: {
|
|
50
|
+
root: string;
|
|
51
|
+
input: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
size: {
|
|
55
|
+
sm: {
|
|
56
|
+
input: string;
|
|
57
|
+
};
|
|
58
|
+
base: {
|
|
59
|
+
input: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}>, {
|
|
63
|
+
variant: {
|
|
64
|
+
default: {
|
|
65
|
+
input: string;
|
|
66
|
+
};
|
|
67
|
+
beta: {
|
|
68
|
+
root: string;
|
|
69
|
+
input: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
sm: {
|
|
74
|
+
input: string;
|
|
75
|
+
};
|
|
76
|
+
base: {
|
|
77
|
+
input: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}, {
|
|
81
|
+
root: string;
|
|
82
|
+
input: string[];
|
|
83
|
+
}, TVReturnType<{
|
|
84
|
+
variant: {
|
|
85
|
+
default: {
|
|
86
|
+
input: string;
|
|
87
|
+
};
|
|
88
|
+
beta: {
|
|
89
|
+
root: string;
|
|
90
|
+
input: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
size: {
|
|
94
|
+
sm: {
|
|
95
|
+
input: string;
|
|
96
|
+
};
|
|
97
|
+
base: {
|
|
98
|
+
input: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}, {
|
|
102
|
+
root: string;
|
|
103
|
+
input: string[];
|
|
104
|
+
}, undefined, TVConfig<{
|
|
105
|
+
variant: {
|
|
106
|
+
default: {
|
|
107
|
+
input: string;
|
|
108
|
+
};
|
|
109
|
+
beta: {
|
|
110
|
+
root: string;
|
|
111
|
+
input: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
size: {
|
|
115
|
+
sm: {
|
|
116
|
+
input: string;
|
|
117
|
+
};
|
|
118
|
+
base: {
|
|
119
|
+
input: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
}, {
|
|
123
|
+
variant: {
|
|
124
|
+
default: {
|
|
125
|
+
input: string;
|
|
126
|
+
};
|
|
127
|
+
beta: {
|
|
128
|
+
root: string;
|
|
129
|
+
input: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
size: {
|
|
133
|
+
sm: {
|
|
134
|
+
input: string;
|
|
135
|
+
};
|
|
136
|
+
base: {
|
|
137
|
+
input: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
}>, unknown, unknown, undefined>>;
|
|
141
|
+
export type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> & VariantProps<typeof inputVariants>;
|
|
142
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & VariantProps< TVReturnType<{
|
|
143
|
+
variant: {
|
|
144
|
+
default: {
|
|
145
|
+
input: string;
|
|
146
|
+
};
|
|
147
|
+
beta: {
|
|
148
|
+
root: string;
|
|
149
|
+
input: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
size: {
|
|
153
|
+
sm: {
|
|
154
|
+
input: string;
|
|
155
|
+
};
|
|
156
|
+
base: {
|
|
157
|
+
input: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}, {
|
|
161
|
+
root: string;
|
|
162
|
+
input: string[];
|
|
163
|
+
}, undefined, TVConfig<{
|
|
164
|
+
variant: {
|
|
165
|
+
default: {
|
|
166
|
+
input: string;
|
|
167
|
+
};
|
|
168
|
+
beta: {
|
|
169
|
+
root: string;
|
|
170
|
+
input: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
size: {
|
|
174
|
+
sm: {
|
|
175
|
+
input: string;
|
|
176
|
+
};
|
|
177
|
+
base: {
|
|
178
|
+
input: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
}, {
|
|
182
|
+
variant: {
|
|
183
|
+
default: {
|
|
184
|
+
input: string;
|
|
185
|
+
};
|
|
186
|
+
beta: {
|
|
187
|
+
root: string;
|
|
188
|
+
input: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
size: {
|
|
192
|
+
sm: {
|
|
193
|
+
input: string;
|
|
194
|
+
};
|
|
195
|
+
base: {
|
|
196
|
+
input: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
}>, {
|
|
200
|
+
variant: {
|
|
201
|
+
default: {
|
|
202
|
+
input: string;
|
|
203
|
+
};
|
|
204
|
+
beta: {
|
|
205
|
+
root: string;
|
|
206
|
+
input: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
size: {
|
|
210
|
+
sm: {
|
|
211
|
+
input: string;
|
|
212
|
+
};
|
|
213
|
+
base: {
|
|
214
|
+
input: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
}, {
|
|
218
|
+
root: string;
|
|
219
|
+
input: string[];
|
|
220
|
+
}, TVReturnType<{
|
|
221
|
+
variant: {
|
|
222
|
+
default: {
|
|
223
|
+
input: string;
|
|
224
|
+
};
|
|
225
|
+
beta: {
|
|
226
|
+
root: string;
|
|
227
|
+
input: string;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
size: {
|
|
231
|
+
sm: {
|
|
232
|
+
input: string;
|
|
233
|
+
};
|
|
234
|
+
base: {
|
|
235
|
+
input: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
}, {
|
|
239
|
+
root: string;
|
|
240
|
+
input: string[];
|
|
241
|
+
}, undefined, TVConfig<{
|
|
242
|
+
variant: {
|
|
243
|
+
default: {
|
|
244
|
+
input: string;
|
|
245
|
+
};
|
|
246
|
+
beta: {
|
|
247
|
+
root: string;
|
|
248
|
+
input: string;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
size: {
|
|
252
|
+
sm: {
|
|
253
|
+
input: string;
|
|
254
|
+
};
|
|
255
|
+
base: {
|
|
256
|
+
input: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
variant: {
|
|
261
|
+
default: {
|
|
262
|
+
input: string;
|
|
263
|
+
};
|
|
264
|
+
beta: {
|
|
265
|
+
root: string;
|
|
266
|
+
input: string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
size: {
|
|
270
|
+
sm: {
|
|
271
|
+
input: string;
|
|
272
|
+
};
|
|
273
|
+
base: {
|
|
274
|
+
input: string;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
}>, unknown, unknown, undefined>>> & React.RefAttributes<HTMLInputElement>>;
|
|
4
278
|
export { Input };
|
package/dist/common/label.d.ts
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
+
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
3
|
+
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> &
|
|
6
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps< TVReturnType<{
|
|
7
|
+
size: {
|
|
8
|
+
sm: string;
|
|
9
|
+
base: string;
|
|
10
|
+
};
|
|
11
|
+
}, undefined, string[], TVConfig<{
|
|
12
|
+
size: {
|
|
13
|
+
sm: string;
|
|
14
|
+
base: string;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
size: {
|
|
18
|
+
sm: string;
|
|
19
|
+
base: string;
|
|
20
|
+
};
|
|
21
|
+
}>, {
|
|
22
|
+
size: {
|
|
23
|
+
sm: string;
|
|
24
|
+
base: string;
|
|
25
|
+
};
|
|
26
|
+
}, undefined, TVReturnType<{
|
|
27
|
+
size: {
|
|
28
|
+
sm: string;
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
}, undefined, string[], TVConfig<{
|
|
32
|
+
size: {
|
|
33
|
+
sm: string;
|
|
34
|
+
base: string;
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
size: {
|
|
38
|
+
sm: string;
|
|
39
|
+
base: string;
|
|
40
|
+
};
|
|
41
|
+
}>, unknown, unknown, undefined>>> & React.RefAttributes<HTMLLabelElement>>;
|
|
4
42
|
export { Label };
|