@twintag/twintag-form 0.4.2 → 0.6.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.
Files changed (77) hide show
  1. package/.eslintrc.cjs +1 -1
  2. package/.turbo/turbo-build.log +11 -55
  3. package/CHANGELOG.md +28 -0
  4. package/README.md +9 -9
  5. package/dist/components/Category/__styles.d.ts +29 -0
  6. package/dist/{lib/components → components}/Category/index.d.ts +2 -3
  7. package/dist/components/Form/index.d.ts +12 -0
  8. package/dist/{lib/types/index.d.ts → components/Input/__props.d.ts} +0 -6
  9. package/dist/components/Input/__styles.d.ts +460 -0
  10. package/dist/{lib/components → components}/Input/checkbox.d.ts +2 -3
  11. package/dist/{lib/components → components}/Input/file.d.ts +2 -3
  12. package/dist/{lib/components → components}/Input/index.d.ts +0 -1
  13. package/dist/{lib/components → components}/Input/simple.d.ts +2 -3
  14. package/dist/{lib/components → components}/Input/submit.d.ts +2 -3
  15. package/dist/{lib/components → components}/Input/textarea.d.ts +2 -3
  16. package/dist/{lib/components → components}/Input/toggle.d.ts +2 -3
  17. package/dist/{lib/components → components}/Label/index.d.ts +0 -1
  18. package/dist/components/index.d.ts +4 -0
  19. package/dist/index.d.ts +14 -0
  20. package/dist/react.d.ts +1 -0
  21. package/dist/styles.d.ts +487 -0
  22. package/dist/twintag-form.react.js +8726 -0
  23. package/dist/twintag-form.webcomponent.js +4503 -0
  24. package/dist/webcomponent.d.ts +1 -0
  25. package/lib/__stories__/Form.stories.tsx +104 -12
  26. package/lib/components/Category/__styles.ts +12 -0
  27. package/lib/components/Category/index.tsx +5 -8
  28. package/lib/components/Form/index.tsx +33 -34
  29. package/lib/{types/index.ts → components/Input/__props.ts} +0 -6
  30. package/lib/components/Input/__styles.ts +132 -0
  31. package/lib/components/Input/checkbox.tsx +9 -12
  32. package/lib/components/Input/file.tsx +10 -13
  33. package/lib/components/Input/simple.tsx +9 -11
  34. package/lib/components/Input/submit.tsx +3 -9
  35. package/lib/components/Input/textarea.tsx +9 -11
  36. package/lib/components/Input/toggle.tsx +11 -12
  37. package/lib/components/Label/index.tsx +3 -2
  38. package/lib/components/index.tsx +4 -6
  39. package/lib/index.tsx +39 -161
  40. package/lib/styles.ts +19 -18
  41. package/lib/webcomponent.ts +3 -3
  42. package/package.json +14 -17
  43. package/tsconfig.json +12 -3
  44. package/twind.config.ts +7 -7
  45. package/vite.config.ts +47 -0
  46. package/dist/index.es.js +0 -27362
  47. package/dist/index.umd.js +0 -196
  48. package/dist/lib/__stories__/Form.stories.d.ts +0 -7
  49. package/dist/lib/__stories__/Form.stories.d.ts.map +0 -1
  50. package/dist/lib/components/Category/index.d.ts.map +0 -1
  51. package/dist/lib/components/Form/index.d.ts +0 -10
  52. package/dist/lib/components/Form/index.d.ts.map +0 -1
  53. package/dist/lib/components/Form/register.d.ts +0 -12
  54. package/dist/lib/components/Form/register.d.ts.map +0 -1
  55. package/dist/lib/components/Input/checkbox.d.ts.map +0 -1
  56. package/dist/lib/components/Input/file.d.ts.map +0 -1
  57. package/dist/lib/components/Input/index.d.ts.map +0 -1
  58. package/dist/lib/components/Input/simple.d.ts.map +0 -1
  59. package/dist/lib/components/Input/submit.d.ts.map +0 -1
  60. package/dist/lib/components/Input/textarea.d.ts.map +0 -1
  61. package/dist/lib/components/Input/toggle.d.ts.map +0 -1
  62. package/dist/lib/components/Label/index.d.ts.map +0 -1
  63. package/dist/lib/components/index.d.ts +0 -6
  64. package/dist/lib/components/index.d.ts.map +0 -1
  65. package/dist/lib/index.d.ts +0 -20
  66. package/dist/lib/index.d.ts.map +0 -1
  67. package/dist/lib/styles.d.ts +0 -131
  68. package/dist/lib/styles.d.ts.map +0 -1
  69. package/dist/lib/types/index.d.ts.map +0 -1
  70. package/dist/lib/webcomponent.d.ts +0 -2
  71. package/dist/lib/webcomponent.d.ts.map +0 -1
  72. package/dist/twind.config.d.ts +0 -5
  73. package/dist/twind.config.d.ts.map +0 -1
  74. package/dist/webcomponent.es.js +0 -31726
  75. package/dist/webcomponent.umd.js +0 -196
  76. package/lib/components/Form/register.tsx +0 -69
  77. package/scripts/build.js +0 -60
package/.eslintrc.cjs CHANGED
@@ -1,4 +1,4 @@
1
1
  module.exports = {
2
2
  root: true,
3
- extends: ["custom"],
3
+ extends: ['custom'],
4
4
  };
@@ -1,60 +1,16 @@
1
1
 
2
- > @twintag/twintag-form@0.4.2 build /home/runner/work/twintag-templates/twintag-templates/packages/twintag-form
3
- > tsc && node ./scripts/build.js
2
+ > @twintag/twintag-form@0.6.0 build /home/runner/work/twintag-admin/twintag-admin/packages/twintag-form
3
+ > tsc && vite build
4
4
 
5
- vite v4.3.9 building for production...
6
- vite v4.3.9 building for production...
5
+ vite v4.4.9 building for production...
7
6
  transforming...
8
- transforming...
9
- ✓ 682 modules transformed.
10
- [plugin:typescript] @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.
11
- ✓ 663 modules transformed.
12
- [plugin:typescript] @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.
13
- rendering chunks...
14
- computing gzip size...
15
- dist/lib/webcomponent.d.ts  0.05 kB
16
- dist/lib/components/index.d.ts  0.20 kB
17
- dist/lib/components/Input/index.d.ts  0.20 kB
18
- dist/lib/components/Label/index.d.ts  0.26 kB
19
- dist/lib/components/Form/index.d.ts  0.26 kB
20
- dist/lib/__stories__/Form.stories.d.ts  0.28 kB
21
- dist/twind.config.d.ts  0.29 kB
22
- dist/lib/components/Input/file.d.ts  0.35 kB
23
- dist/lib/components/Input/simple.d.ts  0.36 kB
24
- dist/lib/components/Input/submit.d.ts  0.36 kB
25
- dist/lib/components/Input/toggle.d.ts  0.36 kB
26
- dist/lib/components/Input/textarea.d.ts  0.37 kB
27
- dist/lib/components/Input/checkbox.d.ts  0.37 kB
28
- dist/lib/components/Form/register.d.ts  0.38 kB
29
- dist/lib/types/index.d.ts  0.40 kB
30
- dist/lib/index.d.ts  0.42 kB
31
- dist/lib/components/Category/index.d.ts  0.44 kB
32
- dist/lib/styles.d.ts  3.81 kB
33
- dist/webcomponent.es.js 1,010.34 kB │ gzip: 240.17 kB
34
- [plugin:typescript] @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.
7
+ ✓ 371 modules transformed.
35
8
  rendering chunks...
9
+ 
10
+ [vite:dts] Start generate declaration files...
36
11
  computing gzip size...
37
- dist/index.es.js 894.05 kB │ gzip: 208.27 kB
38
- [plugin:typescript] @rollup/plugin-typescript: Rollup 'sourcemap' option must be set to generate source maps.
39
- dist/lib/webcomponent.d.ts  0.05 kB
40
- dist/lib/components/index.d.ts  0.20 kB
41
- dist/lib/components/Input/index.d.ts  0.20 kB
42
- dist/lib/components/Label/index.d.ts  0.26 kB
43
- dist/lib/components/Form/index.d.ts  0.26 kB
44
- dist/lib/__stories__/Form.stories.d.ts  0.28 kB
45
- dist/twind.config.d.ts  0.29 kB
46
- dist/lib/components/Input/file.d.ts  0.35 kB
47
- dist/lib/components/Input/simple.d.ts  0.36 kB
48
- dist/lib/components/Input/submit.d.ts  0.36 kB
49
- dist/lib/components/Input/toggle.d.ts  0.36 kB
50
- dist/lib/components/Input/textarea.d.ts  0.37 kB
51
- dist/lib/components/Input/checkbox.d.ts  0.37 kB
52
- dist/lib/components/Form/register.d.ts  0.38 kB
53
- dist/lib/types/index.d.ts  0.40 kB
54
- dist/lib/index.d.ts  0.42 kB
55
- dist/lib/components/Category/index.d.ts  0.44 kB
56
- dist/lib/styles.d.ts  3.81 kB
57
- dist/webcomponent.umd.js 623.01 kB │ gzip: 194.69 kB
58
- ✓ built in 17.10s
59
- dist/index.umd.js 556.84 kB │ gzip: 172.38 kB
60
- ✓ built in 17.26s
12
+ dist/twintag-form.webcomponent.js 117.37 kB │ gzip: 33.23 kB
13
+ dist/twintag-form.react.js 252.53 kB │ gzip: 57.84 kB
14
+ [vite:dts] Declaration files built in 4472ms.
15
+ 
16
+ ✓ built in 6.78s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @twintag/twintag-form
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 04036a0: fix: styles update and code clean-up
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [04036a0]
12
+ - @twintag/twintag-json-renderer@0.2.0
13
+
14
+ ## 0.5.0
15
+
16
+ ### Minor Changes
17
+
18
+ - b7c2725: Update
19
+
20
+ - feat: editor.
21
+ - fix: refinements to integrate components to editor.
22
+ - fix: update `twintag-json-renderer` to accept editor output format.
23
+ - feat: ar-demo.
24
+ - fix: (twintag-form) use `twintag-json-renderer`.
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [b7c2725]
29
+ - @twintag/twintag-json-renderer@0.1.0
30
+
3
31
  ## 0.4.2
4
32
 
5
33
  ### Patch Changes
package/README.md CHANGED
@@ -210,12 +210,12 @@ The `submit` input is a submit input.
210
210
 
211
211
  The form component exposes the following CSS variables:
212
212
 
213
- | Variable | Description |
214
- | ------------- | ------------------------ |
215
- | `--clr-primary` | Primary color of the form. |
216
- | `--clr-accent` | Accent color of the form. |
217
- | `--clr-label` | Color of the labels. |
218
- | `--clr-input` | Color of the inputs. |
219
- | `--clr-placeholder` | Color of the placeholders. |
220
- | `--clr-category-label` | Color of the category labels. |
221
- | `--ff-text` | Font family of the text. |
213
+ | Variable | Description |
214
+ | ---------------------- | ----------------------------- |
215
+ | `--clr-primary` | Primary color of the form. |
216
+ | `--clr-accent` | Accent color of the form. |
217
+ | `--clr-label` | Color of the labels. |
218
+ | `--clr-input` | Color of the inputs. |
219
+ | `--clr-placeholder` | Color of the placeholders. |
220
+ | `--clr-category-label` | Color of the category labels. |
221
+ | `--ff-text` | Font family of the text. |
@@ -0,0 +1,29 @@
1
+ import { TVConfig } from 'tailwind-variants/dist/config.js';
2
+ import { TVReturnType } from 'tailwind-variants';
3
+ export declare const categoryStyle: TVReturnType<{
4
+ variant: {};
5
+ }, {
6
+ container: string;
7
+ span: string;
8
+ items: string;
9
+ }, undefined, TVConfig<{
10
+ variant: {};
11
+ }, {
12
+ variant: {};
13
+ }>, {
14
+ variant: {};
15
+ }, {
16
+ container: string;
17
+ span: string;
18
+ items: string;
19
+ }, TVReturnType<{
20
+ variant: {};
21
+ }, {
22
+ container: string;
23
+ span: string;
24
+ items: string;
25
+ }, undefined, TVConfig<{
26
+ variant: {};
27
+ }, {
28
+ variant: {};
29
+ }>, unknown, unknown, undefined>>;
@@ -1,9 +1,8 @@
1
1
  import type { FC } from 'react';
2
2
  import type { VariantProps } from 'tailwind-variants';
3
3
  import type { WithChildren } from 'twintag-types/dom';
4
- import type { CommonProps } from '@twintag-form/types';
5
- import { categoryStyle } from '@twintag-form/styles';
4
+ import type { CommonProps } from '../Input/__props';
5
+ import { categoryStyle } from './__styles';
6
6
  type Props = CommonProps<VariantProps<typeof categoryStyle>['variant']> & WithChildren;
7
7
  declare const Category: FC<Props>;
8
8
  export default Category;
9
- //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
2
+ /// <reference types="react" />
3
+ declare const Form: ForwardRefExoticComponent<{
4
+ options?: {
5
+ resetOnSubmit?: boolean | undefined;
6
+ } | undefined;
7
+ } & {
8
+ children?: ReactNode;
9
+ } & RefAttributes<{
10
+ validate?: (() => void) | undefined;
11
+ }>>;
12
+ export default Form;
@@ -1,11 +1,6 @@
1
- import type { UseFormRegister, Control } from 'react-hook-form';
2
1
  export type CommonProps<TVariant> = {
3
2
  label: string;
4
3
  bind: string;
5
- useForm?: {
6
- register: UseFormRegister<any>;
7
- control: Control;
8
- };
9
4
  checked?: boolean;
10
5
  options?: {
11
6
  variant?: TVariant;
@@ -13,4 +8,3 @@ export type CommonProps<TVariant> = {
13
8
  optionalField?: boolean;
14
9
  };
15
10
  };
16
- //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,460 @@
1
+ import { TVConfig } from 'tailwind-variants/dist/config.js';
2
+ import { TVReturnType, ClassValue } from 'tailwind-variants';
3
+ export declare const labelStyle: TVReturnType<{
4
+ [key: string]: {
5
+ [key: string]: ClassValue | {
6
+ base?: ClassValue;
7
+ };
8
+ };
9
+ } | {
10
+ [x: string]: {
11
+ [x: string]: ClassValue | {
12
+ base?: ClassValue;
13
+ };
14
+ } | undefined;
15
+ } | {}, undefined, "text-label", TVConfig<unknown, {
16
+ [key: string]: {
17
+ [key: string]: ClassValue | {
18
+ base?: ClassValue;
19
+ };
20
+ };
21
+ } | {}>, {
22
+ [key: string]: {
23
+ [key: string]: ClassValue | {
24
+ base?: ClassValue;
25
+ };
26
+ };
27
+ } | {}, undefined, TVReturnType<unknown, undefined, "text-label", TVConfig<unknown, {
28
+ [key: string]: {
29
+ [key: string]: ClassValue | {
30
+ base?: ClassValue;
31
+ };
32
+ };
33
+ } | {}>, unknown, unknown, undefined>>;
34
+ export declare const containerStyle: TVReturnType<{
35
+ [key: string]: {
36
+ [key: string]: ClassValue | {
37
+ base?: ClassValue;
38
+ };
39
+ };
40
+ } | {
41
+ [x: string]: {
42
+ [x: string]: ClassValue | {
43
+ base?: ClassValue;
44
+ };
45
+ } | undefined;
46
+ } | {}, undefined, "", TVConfig<unknown, {
47
+ [key: string]: {
48
+ [key: string]: ClassValue | {
49
+ base?: ClassValue;
50
+ };
51
+ };
52
+ } | {}>, {
53
+ [key: string]: {
54
+ [key: string]: ClassValue | {
55
+ base?: ClassValue;
56
+ };
57
+ };
58
+ } | {}, undefined, TVReturnType<unknown, undefined, "", TVConfig<unknown, {
59
+ [key: string]: {
60
+ [key: string]: ClassValue | {
61
+ base?: ClassValue;
62
+ };
63
+ };
64
+ } | {}>, unknown, unknown, undefined>>;
65
+ export declare const checkboxStyle: TVReturnType<{
66
+ variant: {
67
+ alpha: {
68
+ checkbox: string;
69
+ };
70
+ beta: {
71
+ checkbox: string;
72
+ };
73
+ };
74
+ }, {
75
+ container: string;
76
+ checkbox: string;
77
+ }, undefined, TVConfig<{
78
+ variant: {
79
+ alpha: {
80
+ checkbox: string;
81
+ };
82
+ beta: {
83
+ checkbox: string;
84
+ };
85
+ };
86
+ }, {
87
+ variant: {
88
+ alpha: {
89
+ checkbox: string;
90
+ };
91
+ beta: {
92
+ checkbox: string;
93
+ };
94
+ };
95
+ }>, {
96
+ variant: {
97
+ alpha: {
98
+ checkbox: string;
99
+ };
100
+ beta: {
101
+ checkbox: string;
102
+ };
103
+ };
104
+ }, {
105
+ container: string;
106
+ checkbox: string;
107
+ }, TVReturnType<{
108
+ variant: {
109
+ alpha: {
110
+ checkbox: string;
111
+ };
112
+ beta: {
113
+ checkbox: string;
114
+ };
115
+ };
116
+ }, {
117
+ container: string;
118
+ checkbox: string;
119
+ }, undefined, TVConfig<{
120
+ variant: {
121
+ alpha: {
122
+ checkbox: string;
123
+ };
124
+ beta: {
125
+ checkbox: string;
126
+ };
127
+ };
128
+ }, {
129
+ variant: {
130
+ alpha: {
131
+ checkbox: string;
132
+ };
133
+ beta: {
134
+ checkbox: string;
135
+ };
136
+ };
137
+ }>, unknown, unknown, undefined>>;
138
+ export declare const fileStyle: TVReturnType<{
139
+ variant: {
140
+ alpha: {
141
+ container: string;
142
+ input: string;
143
+ };
144
+ beta: {
145
+ container: string;
146
+ input: string;
147
+ };
148
+ };
149
+ }, {
150
+ container: string;
151
+ span: string;
152
+ input: string;
153
+ }, undefined, TVConfig<{
154
+ variant: {
155
+ alpha: {
156
+ container: string;
157
+ input: string;
158
+ };
159
+ beta: {
160
+ container: string;
161
+ input: string;
162
+ };
163
+ };
164
+ }, {
165
+ variant: {
166
+ alpha: {
167
+ container: string;
168
+ input: string;
169
+ };
170
+ beta: {
171
+ container: string;
172
+ input: string;
173
+ };
174
+ };
175
+ }>, {
176
+ variant: {
177
+ alpha: {
178
+ container: string;
179
+ input: string;
180
+ };
181
+ beta: {
182
+ container: string;
183
+ input: string;
184
+ };
185
+ };
186
+ }, {
187
+ container: string;
188
+ span: string;
189
+ input: string;
190
+ }, TVReturnType<{
191
+ variant: {
192
+ alpha: {
193
+ container: string;
194
+ input: string;
195
+ };
196
+ beta: {
197
+ container: string;
198
+ input: string;
199
+ };
200
+ };
201
+ }, {
202
+ container: string;
203
+ span: string;
204
+ input: string;
205
+ }, undefined, TVConfig<{
206
+ variant: {
207
+ alpha: {
208
+ container: string;
209
+ input: string;
210
+ };
211
+ beta: {
212
+ container: string;
213
+ input: string;
214
+ };
215
+ };
216
+ }, {
217
+ variant: {
218
+ alpha: {
219
+ container: string;
220
+ input: string;
221
+ };
222
+ beta: {
223
+ container: string;
224
+ input: string;
225
+ };
226
+ };
227
+ }>, unknown, unknown, undefined>>;
228
+ export declare const simpleStyle: TVReturnType<{
229
+ variant: {
230
+ alpha: {
231
+ container: string;
232
+ input: string;
233
+ };
234
+ beta: {
235
+ container: string;
236
+ input: string;
237
+ };
238
+ };
239
+ }, {
240
+ container: string;
241
+ span: string;
242
+ input: string;
243
+ }, undefined, TVConfig<{
244
+ variant: {
245
+ alpha: {
246
+ container: string;
247
+ input: string;
248
+ };
249
+ beta: {
250
+ container: string;
251
+ input: string;
252
+ };
253
+ };
254
+ }, {
255
+ variant: {
256
+ alpha: {
257
+ container: string;
258
+ input: string;
259
+ };
260
+ beta: {
261
+ container: string;
262
+ input: string;
263
+ };
264
+ };
265
+ }>, {
266
+ variant: {
267
+ alpha: {
268
+ container: string;
269
+ input: string;
270
+ };
271
+ beta: {
272
+ container: string;
273
+ input: string;
274
+ };
275
+ };
276
+ }, {
277
+ container: string;
278
+ span: string;
279
+ input: string;
280
+ }, TVReturnType<{
281
+ variant: {
282
+ alpha: {
283
+ container: string;
284
+ input: string;
285
+ };
286
+ beta: {
287
+ container: string;
288
+ input: string;
289
+ };
290
+ };
291
+ }, {
292
+ container: string;
293
+ span: string;
294
+ input: string;
295
+ }, undefined, TVConfig<{
296
+ variant: {
297
+ alpha: {
298
+ container: string;
299
+ input: string;
300
+ };
301
+ beta: {
302
+ container: string;
303
+ input: string;
304
+ };
305
+ };
306
+ }, {
307
+ variant: {
308
+ alpha: {
309
+ container: string;
310
+ input: string;
311
+ };
312
+ beta: {
313
+ container: string;
314
+ input: string;
315
+ };
316
+ };
317
+ }>, unknown, unknown, undefined>>;
318
+ export declare const toggleStyle: TVReturnType<{
319
+ variant: {
320
+ alpha: {
321
+ container: string;
322
+ input: string;
323
+ thumb: string;
324
+ };
325
+ beta: {
326
+ container: string;
327
+ input: string;
328
+ thumb: string;
329
+ };
330
+ };
331
+ }, {
332
+ container: string;
333
+ span: string;
334
+ input: string;
335
+ thumb: string;
336
+ }, undefined, TVConfig<{
337
+ variant: {
338
+ alpha: {
339
+ container: string;
340
+ input: string;
341
+ thumb: string;
342
+ };
343
+ beta: {
344
+ container: string;
345
+ input: string;
346
+ thumb: string;
347
+ };
348
+ };
349
+ }, {
350
+ variant: {
351
+ alpha: {
352
+ container: string;
353
+ input: string;
354
+ thumb: string;
355
+ };
356
+ beta: {
357
+ container: string;
358
+ input: string;
359
+ thumb: string;
360
+ };
361
+ };
362
+ }>, {
363
+ variant: {
364
+ alpha: {
365
+ container: string;
366
+ input: string;
367
+ thumb: string;
368
+ };
369
+ beta: {
370
+ container: string;
371
+ input: string;
372
+ thumb: string;
373
+ };
374
+ };
375
+ }, {
376
+ container: string;
377
+ span: string;
378
+ input: string;
379
+ thumb: string;
380
+ }, TVReturnType<{
381
+ variant: {
382
+ alpha: {
383
+ container: string;
384
+ input: string;
385
+ thumb: string;
386
+ };
387
+ beta: {
388
+ container: string;
389
+ input: string;
390
+ thumb: string;
391
+ };
392
+ };
393
+ }, {
394
+ container: string;
395
+ span: string;
396
+ input: string;
397
+ thumb: string;
398
+ }, undefined, TVConfig<{
399
+ variant: {
400
+ alpha: {
401
+ container: string;
402
+ input: string;
403
+ thumb: string;
404
+ };
405
+ beta: {
406
+ container: string;
407
+ input: string;
408
+ thumb: string;
409
+ };
410
+ };
411
+ }, {
412
+ variant: {
413
+ alpha: {
414
+ container: string;
415
+ input: string;
416
+ thumb: string;
417
+ };
418
+ beta: {
419
+ container: string;
420
+ input: string;
421
+ thumb: string;
422
+ };
423
+ };
424
+ }>, unknown, unknown, undefined>>;
425
+ export declare const submitStyle: TVReturnType<{
426
+ variant: {
427
+ alpha: string;
428
+ beta: string;
429
+ };
430
+ }, undefined, "mt-2 w-max max-w-full", TVConfig<{
431
+ variant: {
432
+ alpha: string;
433
+ beta: string;
434
+ };
435
+ }, {
436
+ variant: {
437
+ alpha: string;
438
+ beta: string;
439
+ };
440
+ }>, {
441
+ variant: {
442
+ alpha: string;
443
+ beta: string;
444
+ };
445
+ }, undefined, TVReturnType<{
446
+ variant: {
447
+ alpha: string;
448
+ beta: string;
449
+ };
450
+ }, undefined, "mt-2 w-max max-w-full", TVConfig<{
451
+ variant: {
452
+ alpha: string;
453
+ beta: string;
454
+ };
455
+ }, {
456
+ variant: {
457
+ alpha: string;
458
+ beta: string;
459
+ };
460
+ }>, unknown, unknown, undefined>>;
@@ -1,8 +1,7 @@
1
1
  import type { FC } from 'react';
2
2
  import type { VariantProps } from 'tailwind-variants';
3
- import type { CommonProps } from '@twintag-form/types';
4
- import { checkboxStyle } from '@twintag-form/styles';
3
+ import { type CommonProps } from './__props';
4
+ import { checkboxStyle } from './__styles';
5
5
  type Props = CommonProps<VariantProps<typeof checkboxStyle>['variant']>;
6
6
  declare const Checkbox: FC<Props>;
7
7
  export default Checkbox;
8
- //# sourceMappingURL=checkbox.d.ts.map
@@ -1,8 +1,7 @@
1
1
  import type { FC } from 'react';
2
2
  import type { VariantProps } from 'tailwind-variants';
3
- import type { CommonProps } from '@twintag-form/types';
4
- import { fileStyle } from '@twintag-form/styles';
3
+ import { type CommonProps } from './__props';
4
+ import { fileStyle } from './__styles';
5
5
  type Props = CommonProps<VariantProps<typeof fileStyle>['variant']>;
6
6
  declare const File: FC<Props>;
7
7
  export default File;
8
- //# sourceMappingURL=file.d.ts.map
@@ -6,4 +6,3 @@ type Props = {
6
6
  };
7
7
  declare const Input: FC<Props>;
8
8
  export default Input;
9
- //# sourceMappingURL=index.d.ts.map