@twintag/twintag-form 1.5.0 → 1.6.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 +9 -10
- package/CHANGELOG.md +12 -0
- package/dist/common/button.d.ts +5 -86
- package/dist/common/calendar.d.ts +3 -81
- package/dist/common/form.d.ts +11 -91
- package/dist/common/input.d.ts +4 -149
- package/dist/common/label.d.ts +2 -23
- package/dist/common/textarea.d.ts +2 -75
- package/dist/components/containers/accordion.d.ts +1 -1
- package/dist/components/fields/date-picker.d.ts +1 -2
- package/dist/components/form.d.ts +2 -2
- package/dist/components/provider.d.ts +4 -4
- package/dist/index.cjs +1 -0
- package/dist/index.js +4456 -0
- package/dist/webcomponent.cjs +1 -1
- package/dist/webcomponent.js +140 -3736
- package/lib/common/button.tsx +6 -6
- package/lib/common/calendar.tsx +11 -10
- package/lib/common/checkbox.tsx +3 -3
- package/lib/common/form.tsx +3 -3
- package/lib/common/icon.tsx +1 -1
- package/lib/common/input.tsx +4 -4
- package/lib/common/label.tsx +1 -1
- package/lib/common/popover.tsx +1 -1
- package/lib/common/radiogroup.tsx +2 -2
- package/lib/common/slider.tsx +3 -3
- package/lib/common/switch.tsx +3 -3
- package/lib/common/textarea.tsx +3 -3
- package/lib/components/containers/accordion.tsx +1 -1
- package/lib/components/containers/category.tsx +1 -1
- package/lib/components/fields/checkbox.tsx +1 -1
- package/lib/components/fields/date-picker.tsx +6 -6
- package/lib/components/fields/file.tsx +1 -1
- package/lib/components/fields/input.tsx +1 -1
- package/lib/components/fields/radiogroup.tsx +2 -2
- package/lib/components/fields/textarea.tsx +1 -1
- package/lib/components/fields/toggle.tsx +1 -1
- package/lib/components/fields/tri-toggle.tsx +4 -4
- package/lib/utils/data.ts +5 -3
- package/lib/utils/string.ts +3 -3
- package/lib/webcomponent.ts +0 -1
- package/package.json +8 -9
- package/tailwind.config.ts +21 -26
- package/tsconfig.json +0 -1
- package/vite.config.ts +13 -2
- package/.eslintrc.cjs +0 -9
- package/dist/react.cjs +0 -89
- package/dist/react.d.ts +0 -1
- package/dist/react.js +0 -22662
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
> @twintag/twintag-form@1.
|
|
2
|
+
> @twintag/twintag-form@1.6.1 build /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form
|
|
3
3
|
> tsc && vite build
|
|
4
4
|
|
|
5
|
-
[36mvite v5.
|
|
5
|
+
[36mvite v5.4.8 [32mbuilding for production...[36m[39m
|
|
6
6
|
transforming...
|
|
7
|
-
[32m✓[39m
|
|
7
|
+
[32m✓[39m 49 modules transformed.
|
|
8
8
|
rendering chunks...
|
|
9
9
|
|
|
10
10
|
[vite:dts] Start generate declaration files...
|
|
11
11
|
computing gzip size...
|
|
12
12
|
[vite:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/twind.config.d.ts
|
|
13
|
+
[2mdist/[22m[36mwebcomponent.js [39m[1m[2m 27.74 kB[22m[1m[22m[2m │ gzip: 5.50 kB[22m
|
|
14
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m135.84 kB[22m[1m[22m[2m │ gzip: 28.69 kB[22m
|
|
13
15
|
[vite:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/tailwind.config.d.ts
|
|
14
|
-
[2mdist/[22m[36mwebcomponent.js [39m[1m[2m119.75 kB[22m[1m[22m[2m │ gzip: 33.51 kB[22m
|
|
15
|
-
[2mdist/[22m[36mreact.js [39m[1m[33m706.74 kB[39m[22m[2m │ gzip: 144.39 kB[22m
|
|
16
|
-
[vite:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/.eslintrc.d.cts
|
|
17
16
|
[vite:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/dev/main.d.ts
|
|
18
17
|
[vite:dts] Outside emitted: /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form/vite.config.d.ts
|
|
19
|
-
[vite:dts] Declaration files built in
|
|
18
|
+
[vite:dts] Declaration files built in 9851ms.
|
|
20
19
|
|
|
21
|
-
[2mdist/[22m[36mwebcomponent.cjs [39m[1m[
|
|
22
|
-
[2mdist/[22m[
|
|
23
|
-
[32m✓ built in
|
|
20
|
+
[2mdist/[22m[36mwebcomponent.cjs [39m[1m[2m18.72 kB[22m[1m[22m[2m │ gzip: 5.01 kB[22m
|
|
21
|
+
[2mdist/[22m[36mindex.cjs [39m[1m[2m94.92 kB[22m[1m[22m[2m │ gzip: 24.25 kB[22m
|
|
22
|
+
[32m✓ built in 10.80s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @twintag/twintag-form
|
|
2
2
|
|
|
3
|
+
## 1.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#216](https://github.com/esoptra/twintag-admin/pull/216) [`03eed64`](https://github.com/esoptra/twintag-admin/commit/03eed64d90ce7b0098a509399bdb8ea4b8fb8e6b) Thanks [@leweyse](https://github.com/leweyse)! - fix(twintag-form): use package specific class names for styling
|
|
8
|
+
|
|
9
|
+
## 1.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#214](https://github.com/esoptra/twintag-admin/pull/214) [`6507827`](https://github.com/esoptra/twintag-admin/commit/65078275731e0f702dd6e65aceaa7dadc7af9c7f) Thanks [@leweyse](https://github.com/leweyse)! - fix(twintag-form): package resolution conflicts
|
|
14
|
+
|
|
3
15
|
## 1.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/common/button.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
-
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
3
2
|
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
declare const buttonVariants: TVReturnType<{
|
|
@@ -12,27 +11,7 @@ declare const buttonVariants: TVReturnType<{
|
|
|
12
11
|
sm: string;
|
|
13
12
|
base: string;
|
|
14
13
|
};
|
|
15
|
-
}, undefined, string[],
|
|
16
|
-
variant: {
|
|
17
|
-
default: string;
|
|
18
|
-
outline: string;
|
|
19
|
-
ghost: string;
|
|
20
|
-
};
|
|
21
|
-
size: {
|
|
22
|
-
sm: string;
|
|
23
|
-
base: string;
|
|
24
|
-
};
|
|
25
|
-
}, {
|
|
26
|
-
variant: {
|
|
27
|
-
default: string;
|
|
28
|
-
outline: string;
|
|
29
|
-
ghost: string;
|
|
30
|
-
};
|
|
31
|
-
size: {
|
|
32
|
-
sm: string;
|
|
33
|
-
base: string;
|
|
34
|
-
};
|
|
35
|
-
}>, {
|
|
14
|
+
}, undefined, string[], {
|
|
36
15
|
variant: {
|
|
37
16
|
default: string;
|
|
38
17
|
outline: string;
|
|
@@ -52,27 +31,7 @@ declare const buttonVariants: TVReturnType<{
|
|
|
52
31
|
sm: string;
|
|
53
32
|
base: string;
|
|
54
33
|
};
|
|
55
|
-
}, undefined, string[],
|
|
56
|
-
variant: {
|
|
57
|
-
default: string;
|
|
58
|
-
outline: string;
|
|
59
|
-
ghost: string;
|
|
60
|
-
};
|
|
61
|
-
size: {
|
|
62
|
-
sm: string;
|
|
63
|
-
base: string;
|
|
64
|
-
};
|
|
65
|
-
}, {
|
|
66
|
-
variant: {
|
|
67
|
-
default: string;
|
|
68
|
-
outline: string;
|
|
69
|
-
ghost: string;
|
|
70
|
-
};
|
|
71
|
-
size: {
|
|
72
|
-
sm: string;
|
|
73
|
-
base: string;
|
|
74
|
-
};
|
|
75
|
-
}>, unknown, unknown, undefined>>;
|
|
34
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
76
35
|
export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
|
|
77
36
|
asChild?: boolean;
|
|
78
37
|
};
|
|
@@ -86,27 +45,7 @@ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes
|
|
|
86
45
|
sm: string;
|
|
87
46
|
base: string;
|
|
88
47
|
};
|
|
89
|
-
}, undefined, string[],
|
|
90
|
-
variant: {
|
|
91
|
-
default: string;
|
|
92
|
-
outline: string;
|
|
93
|
-
ghost: string;
|
|
94
|
-
};
|
|
95
|
-
size: {
|
|
96
|
-
sm: string;
|
|
97
|
-
base: string;
|
|
98
|
-
};
|
|
99
|
-
}, {
|
|
100
|
-
variant: {
|
|
101
|
-
default: string;
|
|
102
|
-
outline: string;
|
|
103
|
-
ghost: string;
|
|
104
|
-
};
|
|
105
|
-
size: {
|
|
106
|
-
sm: string;
|
|
107
|
-
base: string;
|
|
108
|
-
};
|
|
109
|
-
}>, {
|
|
48
|
+
}, undefined, string[], {
|
|
110
49
|
variant: {
|
|
111
50
|
default: string;
|
|
112
51
|
outline: string;
|
|
@@ -126,27 +65,7 @@ declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes
|
|
|
126
65
|
sm: string;
|
|
127
66
|
base: string;
|
|
128
67
|
};
|
|
129
|
-
}, undefined, string[],
|
|
130
|
-
|
|
131
|
-
default: string;
|
|
132
|
-
outline: string;
|
|
133
|
-
ghost: string;
|
|
134
|
-
};
|
|
135
|
-
size: {
|
|
136
|
-
sm: string;
|
|
137
|
-
base: string;
|
|
138
|
-
};
|
|
139
|
-
}, {
|
|
140
|
-
variant: {
|
|
141
|
-
default: string;
|
|
142
|
-
outline: string;
|
|
143
|
-
ghost: string;
|
|
144
|
-
};
|
|
145
|
-
size: {
|
|
146
|
-
sm: string;
|
|
147
|
-
base: string;
|
|
148
|
-
};
|
|
149
|
-
}>, unknown, unknown, undefined>>> & {
|
|
150
|
-
asChild?: boolean | undefined;
|
|
68
|
+
}, undefined, string[], unknown, unknown, undefined>>> & {
|
|
69
|
+
asChild?: boolean;
|
|
151
70
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
152
71
|
export { Button, buttonVariants };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
2
|
import { DayPicker } from 'react-day-picker';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import * as React from 'react';
|
|
3
|
+
import type * as React from 'react';
|
|
6
4
|
declare const calendarVariants: TVReturnType<{
|
|
7
5
|
variant: {
|
|
8
6
|
dropdown: {
|
|
@@ -46,45 +44,7 @@ declare const calendarVariants: TVReturnType<{
|
|
|
46
44
|
day_disabled: string;
|
|
47
45
|
day_range_middle: string;
|
|
48
46
|
day_hidden: string;
|
|
49
|
-
}, undefined,
|
|
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
|
-
}>, {
|
|
47
|
+
}, undefined, {
|
|
88
48
|
variant: {
|
|
89
49
|
dropdown: {
|
|
90
50
|
caption_label: string;
|
|
@@ -170,45 +130,7 @@ declare const calendarVariants: TVReturnType<{
|
|
|
170
130
|
day_disabled: string;
|
|
171
131
|
day_range_middle: string;
|
|
172
132
|
day_hidden: string;
|
|
173
|
-
}, undefined,
|
|
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>>;
|
|
133
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
212
134
|
export type CalendarProps = React.ComponentProps<typeof DayPicker> & VariantProps<typeof calendarVariants>;
|
|
213
135
|
declare function Calendar({ size, className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
214
136
|
declare namespace Calendar {
|
package/dist/common/form.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ControllerProps, FieldPath, FieldValues, FormProviderProps, FieldError } from 'react-hook-form';
|
|
2
2
|
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
3
|
-
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
4
3
|
import { LabelProps } from '@radix-ui/react-label';
|
|
5
4
|
import { SlotProps } from '@radix-ui/react-slot';
|
|
6
5
|
|
|
7
6
|
import * as React from 'react';
|
|
8
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues
|
|
7
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
9
8
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
declare const useFormField: () => {
|
|
11
10
|
invalid: boolean;
|
|
12
11
|
isDirty: boolean;
|
|
13
12
|
isTouched: boolean;
|
|
14
|
-
|
|
13
|
+
isValidating: boolean;
|
|
14
|
+
error?: FieldError;
|
|
15
15
|
id: string;
|
|
16
16
|
name: string;
|
|
17
17
|
formItemId: string;
|
|
@@ -23,17 +23,7 @@ declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
23
23
|
default: string;
|
|
24
24
|
outline: string;
|
|
25
25
|
};
|
|
26
|
-
}, undefined, "",
|
|
27
|
-
variant: {
|
|
28
|
-
default: string;
|
|
29
|
-
outline: string;
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
variant: {
|
|
33
|
-
default: string;
|
|
34
|
-
outline: string;
|
|
35
|
-
};
|
|
36
|
-
}>, {
|
|
26
|
+
}, undefined, "", {
|
|
37
27
|
variant: {
|
|
38
28
|
default: string;
|
|
39
29
|
outline: string;
|
|
@@ -43,33 +33,13 @@ declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTM
|
|
|
43
33
|
default: string;
|
|
44
34
|
outline: string;
|
|
45
35
|
};
|
|
46
|
-
}, undefined, "",
|
|
47
|
-
variant: {
|
|
48
|
-
default: string;
|
|
49
|
-
outline: string;
|
|
50
|
-
};
|
|
51
|
-
}, {
|
|
52
|
-
variant: {
|
|
53
|
-
default: string;
|
|
54
|
-
outline: string;
|
|
55
|
-
};
|
|
56
|
-
}>, unknown, unknown, undefined>>> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
}, undefined, "", unknown, unknown, undefined>>> & React.RefAttributes<HTMLDivElement>>;
|
|
57
37
|
declare const FormLabel: React.ForwardRefExoticComponent<Omit<Omit< LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps< TVReturnType<{
|
|
58
38
|
size: {
|
|
59
39
|
sm: string;
|
|
60
40
|
base: string;
|
|
61
41
|
};
|
|
62
|
-
}, undefined, string[],
|
|
63
|
-
size: {
|
|
64
|
-
sm: string;
|
|
65
|
-
base: string;
|
|
66
|
-
};
|
|
67
|
-
}, {
|
|
68
|
-
size: {
|
|
69
|
-
sm: string;
|
|
70
|
-
base: string;
|
|
71
|
-
};
|
|
72
|
-
}>, {
|
|
42
|
+
}, undefined, string[], {
|
|
73
43
|
size: {
|
|
74
44
|
sm: string;
|
|
75
45
|
base: string;
|
|
@@ -79,34 +49,14 @@ declare const FormLabel: React.ForwardRefExoticComponent<Omit<Omit< LabelProps &
|
|
|
79
49
|
sm: string;
|
|
80
50
|
base: string;
|
|
81
51
|
};
|
|
82
|
-
}, undefined, string[],
|
|
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>>;
|
|
52
|
+
}, undefined, string[], unknown, unknown, undefined>>> & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
93
53
|
declare const FormControl: React.ForwardRefExoticComponent<Omit< SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
94
54
|
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & VariantProps< TVReturnType<{
|
|
95
55
|
size: {
|
|
96
56
|
sm: string;
|
|
97
57
|
base: string;
|
|
98
58
|
};
|
|
99
|
-
}, undefined, "text-muted-foreground",
|
|
100
|
-
size: {
|
|
101
|
-
sm: string;
|
|
102
|
-
base: string;
|
|
103
|
-
};
|
|
104
|
-
}, {
|
|
105
|
-
size: {
|
|
106
|
-
sm: string;
|
|
107
|
-
base: string;
|
|
108
|
-
};
|
|
109
|
-
}>, {
|
|
59
|
+
}, undefined, "text-tf-muted-foreground", {
|
|
110
60
|
size: {
|
|
111
61
|
sm: string;
|
|
112
62
|
base: string;
|
|
@@ -116,33 +66,13 @@ declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttribu
|
|
|
116
66
|
sm: string;
|
|
117
67
|
base: string;
|
|
118
68
|
};
|
|
119
|
-
}, undefined, "text-muted-foreground",
|
|
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>>;
|
|
69
|
+
}, undefined, "text-tf-muted-foreground", unknown, unknown, undefined>>> & React.RefAttributes<HTMLParagraphElement>>;
|
|
130
70
|
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & VariantProps< TVReturnType<{
|
|
131
71
|
size: {
|
|
132
72
|
sm: string;
|
|
133
73
|
base: string;
|
|
134
74
|
};
|
|
135
|
-
}, undefined, "font-medium text-destructive",
|
|
136
|
-
size: {
|
|
137
|
-
sm: string;
|
|
138
|
-
base: string;
|
|
139
|
-
};
|
|
140
|
-
}, {
|
|
141
|
-
size: {
|
|
142
|
-
sm: string;
|
|
143
|
-
base: string;
|
|
144
|
-
};
|
|
145
|
-
}>, {
|
|
75
|
+
}, undefined, "font-medium text-tf-destructive", {
|
|
146
76
|
size: {
|
|
147
77
|
sm: string;
|
|
148
78
|
base: string;
|
|
@@ -152,15 +82,5 @@ declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
|
152
82
|
sm: string;
|
|
153
83
|
base: string;
|
|
154
84
|
};
|
|
155
|
-
}, undefined, "font-medium text-destructive",
|
|
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>>;
|
|
85
|
+
}, undefined, "font-medium text-tf-destructive", unknown, unknown, undefined>>> & React.RefAttributes<HTMLParagraphElement>>;
|
|
166
86
|
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
package/dist/common/input.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
-
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
3
2
|
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
declare const inputVariants: TVReturnType<{
|
|
@@ -23,43 +22,7 @@ declare const inputVariants: TVReturnType<{
|
|
|
23
22
|
}, {
|
|
24
23
|
root: string;
|
|
25
24
|
input: string[];
|
|
26
|
-
}, undefined,
|
|
27
|
-
variant: {
|
|
28
|
-
default: {
|
|
29
|
-
input: string;
|
|
30
|
-
};
|
|
31
|
-
outline: {
|
|
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
|
-
outline: {
|
|
50
|
-
root: string;
|
|
51
|
-
input: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
size: {
|
|
55
|
-
sm: {
|
|
56
|
-
input: string;
|
|
57
|
-
};
|
|
58
|
-
base: {
|
|
59
|
-
input: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}>, {
|
|
25
|
+
}, undefined, {
|
|
63
26
|
variant: {
|
|
64
27
|
default: {
|
|
65
28
|
input: string;
|
|
@@ -101,43 +64,7 @@ declare const inputVariants: TVReturnType<{
|
|
|
101
64
|
}, {
|
|
102
65
|
root: string;
|
|
103
66
|
input: string[];
|
|
104
|
-
}, undefined,
|
|
105
|
-
variant: {
|
|
106
|
-
default: {
|
|
107
|
-
input: string;
|
|
108
|
-
};
|
|
109
|
-
outline: {
|
|
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
|
-
outline: {
|
|
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>>;
|
|
67
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
141
68
|
export type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> & VariantProps<typeof inputVariants>;
|
|
142
69
|
declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> & VariantProps< TVReturnType<{
|
|
143
70
|
variant: {
|
|
@@ -160,43 +87,7 @@ declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttribu
|
|
|
160
87
|
}, {
|
|
161
88
|
root: string;
|
|
162
89
|
input: string[];
|
|
163
|
-
}, undefined,
|
|
164
|
-
variant: {
|
|
165
|
-
default: {
|
|
166
|
-
input: string;
|
|
167
|
-
};
|
|
168
|
-
outline: {
|
|
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
|
-
outline: {
|
|
187
|
-
root: string;
|
|
188
|
-
input: string;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
size: {
|
|
192
|
-
sm: {
|
|
193
|
-
input: string;
|
|
194
|
-
};
|
|
195
|
-
base: {
|
|
196
|
-
input: string;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
}>, {
|
|
90
|
+
}, undefined, {
|
|
200
91
|
variant: {
|
|
201
92
|
default: {
|
|
202
93
|
input: string;
|
|
@@ -238,41 +129,5 @@ declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttribu
|
|
|
238
129
|
}, {
|
|
239
130
|
root: string;
|
|
240
131
|
input: string[];
|
|
241
|
-
}, undefined,
|
|
242
|
-
variant: {
|
|
243
|
-
default: {
|
|
244
|
-
input: string;
|
|
245
|
-
};
|
|
246
|
-
outline: {
|
|
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
|
-
outline: {
|
|
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>>;
|
|
132
|
+
}, undefined, unknown, unknown, undefined>>> & React.RefAttributes<HTMLInputElement>>;
|
|
278
133
|
export { Input };
|
package/dist/common/label.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
-
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
3
2
|
|
|
4
3
|
import * as React from 'react';
|
|
5
4
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
@@ -8,17 +7,7 @@ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelPr
|
|
|
8
7
|
sm: string;
|
|
9
8
|
base: string;
|
|
10
9
|
};
|
|
11
|
-
}, undefined, string[],
|
|
12
|
-
size: {
|
|
13
|
-
sm: string;
|
|
14
|
-
base: string;
|
|
15
|
-
};
|
|
16
|
-
}, {
|
|
17
|
-
size: {
|
|
18
|
-
sm: string;
|
|
19
|
-
base: string;
|
|
20
|
-
};
|
|
21
|
-
}>, {
|
|
10
|
+
}, undefined, string[], {
|
|
22
11
|
size: {
|
|
23
12
|
sm: string;
|
|
24
13
|
base: string;
|
|
@@ -28,15 +17,5 @@ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelPr
|
|
|
28
17
|
sm: string;
|
|
29
18
|
base: string;
|
|
30
19
|
};
|
|
31
|
-
}, undefined, string[],
|
|
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>>;
|
|
20
|
+
}, undefined, string[], unknown, unknown, undefined>>> & React.RefAttributes<HTMLLabelElement>>;
|
|
42
21
|
export { Label };
|