@twintag/twintag-form 0.4.1 → 0.5.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 +10 -54
- package/CHANGELOG.md +23 -0
- package/README.md +9 -5
- package/dist/components/Category/__styles.d.ts +19 -0
- package/dist/{lib/components → components}/Category/index.d.ts +2 -3
- package/dist/components/Form/index.d.ts +12 -0
- package/dist/{lib/types/index.d.ts → components/Input/__props.d.ts} +0 -6
- package/dist/components/Input/__styles.d.ts +245 -0
- package/dist/{lib/components → components}/Input/checkbox.d.ts +2 -3
- package/dist/{lib/components → components}/Input/file.d.ts +2 -3
- package/dist/{lib/components → components}/Input/index.d.ts +0 -1
- package/dist/{lib/components → components}/Input/simple.d.ts +2 -3
- package/dist/{lib/components → components}/Input/submit.d.ts +2 -3
- package/dist/{lib/components → components}/Input/textarea.d.ts +2 -3
- package/dist/{lib/components → components}/Input/toggle.d.ts +2 -3
- package/dist/{lib/components → components}/Label/index.d.ts +0 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/index.d.ts +14 -0
- package/dist/react.d.ts +1 -0
- package/dist/styles.d.ts +262 -0
- package/dist/twintag-form.react.js +8658 -0
- package/dist/twintag-form.webcomponent.js +4503 -0
- package/dist/webcomponent.d.ts +1 -0
- package/lib/__stories__/Form.stories.tsx +102 -10
- package/lib/components/Category/__styles.ts +12 -0
- package/lib/components/Category/index.tsx +5 -8
- package/lib/components/Form/index.tsx +33 -34
- package/lib/{types/index.ts → components/Input/__props.ts} +0 -6
- package/lib/components/Input/__styles.ts +132 -0
- package/lib/components/Input/checkbox.tsx +8 -11
- package/lib/components/Input/file.tsx +9 -12
- package/lib/components/Input/simple.tsx +8 -10
- package/lib/components/Input/submit.tsx +3 -9
- package/lib/components/Input/textarea.tsx +8 -10
- package/lib/components/Input/toggle.tsx +10 -11
- package/lib/components/Label/index.tsx +2 -1
- package/lib/components/index.tsx +4 -6
- package/lib/index.tsx +35 -157
- package/lib/styles.ts +2 -1
- package/lib/webcomponent.ts +1 -1
- package/package.json +11 -14
- package/tsconfig.json +3 -2
- package/vite.config.ts +47 -0
- package/dist/index.es.js +0 -27362
- package/dist/index.umd.js +0 -196
- package/dist/lib/__stories__/Form.stories.d.ts +0 -7
- package/dist/lib/__stories__/Form.stories.d.ts.map +0 -1
- package/dist/lib/components/Category/index.d.ts.map +0 -1
- package/dist/lib/components/Form/index.d.ts +0 -10
- package/dist/lib/components/Form/index.d.ts.map +0 -1
- package/dist/lib/components/Form/register.d.ts +0 -12
- package/dist/lib/components/Form/register.d.ts.map +0 -1
- package/dist/lib/components/Input/checkbox.d.ts.map +0 -1
- package/dist/lib/components/Input/file.d.ts.map +0 -1
- package/dist/lib/components/Input/index.d.ts.map +0 -1
- package/dist/lib/components/Input/simple.d.ts.map +0 -1
- package/dist/lib/components/Input/submit.d.ts.map +0 -1
- package/dist/lib/components/Input/textarea.d.ts.map +0 -1
- package/dist/lib/components/Input/toggle.d.ts.map +0 -1
- package/dist/lib/components/Label/index.d.ts.map +0 -1
- package/dist/lib/components/index.d.ts +0 -6
- package/dist/lib/components/index.d.ts.map +0 -1
- package/dist/lib/index.d.ts +0 -20
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/styles.d.ts +0 -131
- package/dist/lib/styles.d.ts.map +0 -1
- package/dist/lib/types/index.d.ts.map +0 -1
- package/dist/lib/webcomponent.d.ts +0 -2
- package/dist/lib/webcomponent.d.ts.map +0 -1
- package/dist/twind.config.d.ts +0 -5
- package/dist/twind.config.d.ts.map +0 -1
- package/dist/webcomponent.es.js +0 -31726
- package/dist/webcomponent.umd.js +0 -196
- package/lib/components/Form/register.tsx +0 -69
- package/scripts/build.js +0 -60
package/dist/styles.d.ts
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
2
|
+
import { TVReturnType, TVVariantsDefault, ClassValue, SlotsClassValue } from 'tailwind-variants';
|
|
3
|
+
export declare const labelStyle: TVReturnType<TVVariantsDefault<undefined, "text-label"> | {
|
|
4
|
+
[x: string]: {
|
|
5
|
+
[x: string]: ClassValue | SlotsClassValue<undefined, "text-label">;
|
|
6
|
+
} | undefined;
|
|
7
|
+
} | {}, undefined, "text-label", TVConfig<unknown, TVVariantsDefault<undefined, "text-label"> | {}>, TVVariantsDefault<undefined, "text-label"> | {}, undefined>;
|
|
8
|
+
export declare const containerStyle: TVReturnType<TVVariantsDefault<undefined, "my-2"> | {
|
|
9
|
+
[x: string]: {
|
|
10
|
+
[x: string]: ClassValue | SlotsClassValue<undefined, "my-2">;
|
|
11
|
+
} | undefined;
|
|
12
|
+
} | {}, undefined, "my-2", TVConfig<unknown, TVVariantsDefault<undefined, "my-2"> | {}>, TVVariantsDefault<undefined, "my-2"> | {}, undefined>;
|
|
13
|
+
export declare const categoryStyle: TVReturnType<{
|
|
14
|
+
variant: {};
|
|
15
|
+
}, {
|
|
16
|
+
container: string;
|
|
17
|
+
span: string;
|
|
18
|
+
items: string;
|
|
19
|
+
}, undefined, TVConfig<{
|
|
20
|
+
variant: {};
|
|
21
|
+
}, {
|
|
22
|
+
variant: {};
|
|
23
|
+
}>, {
|
|
24
|
+
variant: {};
|
|
25
|
+
}, {
|
|
26
|
+
container: string;
|
|
27
|
+
span: string;
|
|
28
|
+
items: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const checkboxStyle: TVReturnType<{
|
|
31
|
+
variant: {
|
|
32
|
+
alpha: {
|
|
33
|
+
checkbox: string;
|
|
34
|
+
};
|
|
35
|
+
beta: {
|
|
36
|
+
checkbox: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
container: string;
|
|
41
|
+
checkbox: string;
|
|
42
|
+
}, undefined, TVConfig<{
|
|
43
|
+
variant: {
|
|
44
|
+
alpha: {
|
|
45
|
+
checkbox: string;
|
|
46
|
+
};
|
|
47
|
+
beta: {
|
|
48
|
+
checkbox: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
variant: {
|
|
53
|
+
alpha: {
|
|
54
|
+
checkbox: string;
|
|
55
|
+
};
|
|
56
|
+
beta: {
|
|
57
|
+
checkbox: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}>, {
|
|
61
|
+
variant: {
|
|
62
|
+
alpha: {
|
|
63
|
+
checkbox: string;
|
|
64
|
+
};
|
|
65
|
+
beta: {
|
|
66
|
+
checkbox: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
container: string;
|
|
71
|
+
checkbox: string;
|
|
72
|
+
}>;
|
|
73
|
+
export declare const fileStyle: TVReturnType<{
|
|
74
|
+
variant: {
|
|
75
|
+
alpha: {
|
|
76
|
+
container: string;
|
|
77
|
+
input: string;
|
|
78
|
+
};
|
|
79
|
+
beta: {
|
|
80
|
+
container: string;
|
|
81
|
+
input: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}, {
|
|
85
|
+
container: string;
|
|
86
|
+
span: string;
|
|
87
|
+
input: string;
|
|
88
|
+
}, undefined, TVConfig<{
|
|
89
|
+
variant: {
|
|
90
|
+
alpha: {
|
|
91
|
+
container: string;
|
|
92
|
+
input: string;
|
|
93
|
+
};
|
|
94
|
+
beta: {
|
|
95
|
+
container: string;
|
|
96
|
+
input: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
variant: {
|
|
101
|
+
alpha: {
|
|
102
|
+
container: string;
|
|
103
|
+
input: string;
|
|
104
|
+
};
|
|
105
|
+
beta: {
|
|
106
|
+
container: string;
|
|
107
|
+
input: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
}>, {
|
|
111
|
+
variant: {
|
|
112
|
+
alpha: {
|
|
113
|
+
container: string;
|
|
114
|
+
input: string;
|
|
115
|
+
};
|
|
116
|
+
beta: {
|
|
117
|
+
container: string;
|
|
118
|
+
input: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
}, {
|
|
122
|
+
container: string;
|
|
123
|
+
span: string;
|
|
124
|
+
input: string;
|
|
125
|
+
}>;
|
|
126
|
+
export declare const simpleStyle: TVReturnType<{
|
|
127
|
+
variant: {
|
|
128
|
+
alpha: {
|
|
129
|
+
container: string;
|
|
130
|
+
input: string;
|
|
131
|
+
};
|
|
132
|
+
beta: {
|
|
133
|
+
container: string;
|
|
134
|
+
input: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
}, {
|
|
138
|
+
container: string;
|
|
139
|
+
span: string;
|
|
140
|
+
input: string;
|
|
141
|
+
}, undefined, TVConfig<{
|
|
142
|
+
variant: {
|
|
143
|
+
alpha: {
|
|
144
|
+
container: string;
|
|
145
|
+
input: string;
|
|
146
|
+
};
|
|
147
|
+
beta: {
|
|
148
|
+
container: string;
|
|
149
|
+
input: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
}, {
|
|
153
|
+
variant: {
|
|
154
|
+
alpha: {
|
|
155
|
+
container: string;
|
|
156
|
+
input: string;
|
|
157
|
+
};
|
|
158
|
+
beta: {
|
|
159
|
+
container: string;
|
|
160
|
+
input: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
}>, {
|
|
164
|
+
variant: {
|
|
165
|
+
alpha: {
|
|
166
|
+
container: string;
|
|
167
|
+
input: string;
|
|
168
|
+
};
|
|
169
|
+
beta: {
|
|
170
|
+
container: string;
|
|
171
|
+
input: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
}, {
|
|
175
|
+
container: string;
|
|
176
|
+
span: string;
|
|
177
|
+
input: string;
|
|
178
|
+
}>;
|
|
179
|
+
export declare const toggleStyle: TVReturnType<{
|
|
180
|
+
variant: {
|
|
181
|
+
alpha: {
|
|
182
|
+
container: string;
|
|
183
|
+
input: string;
|
|
184
|
+
thumb: string;
|
|
185
|
+
};
|
|
186
|
+
beta: {
|
|
187
|
+
container: string;
|
|
188
|
+
input: string;
|
|
189
|
+
thumb: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
}, {
|
|
193
|
+
container: string;
|
|
194
|
+
span: string;
|
|
195
|
+
input: string;
|
|
196
|
+
thumb: string;
|
|
197
|
+
}, undefined, TVConfig<{
|
|
198
|
+
variant: {
|
|
199
|
+
alpha: {
|
|
200
|
+
container: string;
|
|
201
|
+
input: string;
|
|
202
|
+
thumb: string;
|
|
203
|
+
};
|
|
204
|
+
beta: {
|
|
205
|
+
container: string;
|
|
206
|
+
input: string;
|
|
207
|
+
thumb: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
}, {
|
|
211
|
+
variant: {
|
|
212
|
+
alpha: {
|
|
213
|
+
container: string;
|
|
214
|
+
input: string;
|
|
215
|
+
thumb: string;
|
|
216
|
+
};
|
|
217
|
+
beta: {
|
|
218
|
+
container: string;
|
|
219
|
+
input: string;
|
|
220
|
+
thumb: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
}>, {
|
|
224
|
+
variant: {
|
|
225
|
+
alpha: {
|
|
226
|
+
container: string;
|
|
227
|
+
input: string;
|
|
228
|
+
thumb: string;
|
|
229
|
+
};
|
|
230
|
+
beta: {
|
|
231
|
+
container: string;
|
|
232
|
+
input: string;
|
|
233
|
+
thumb: string;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
}, {
|
|
237
|
+
container: string;
|
|
238
|
+
span: string;
|
|
239
|
+
input: string;
|
|
240
|
+
thumb: string;
|
|
241
|
+
}>;
|
|
242
|
+
export declare const submitStyle: TVReturnType<{
|
|
243
|
+
variant: {
|
|
244
|
+
alpha: "bg-primary text-white px-4 py-2 rounded-md";
|
|
245
|
+
beta: "bg-primary text-white px-4 py-2";
|
|
246
|
+
};
|
|
247
|
+
}, undefined, "w-max max-w-full mt-2", TVConfig<{
|
|
248
|
+
variant: {
|
|
249
|
+
alpha: "bg-primary text-white px-4 py-2 rounded-md";
|
|
250
|
+
beta: "bg-primary text-white px-4 py-2";
|
|
251
|
+
};
|
|
252
|
+
}, {
|
|
253
|
+
variant: {
|
|
254
|
+
alpha: "bg-primary text-white px-4 py-2 rounded-md";
|
|
255
|
+
beta: "bg-primary text-white px-4 py-2";
|
|
256
|
+
};
|
|
257
|
+
}>, {
|
|
258
|
+
variant: {
|
|
259
|
+
alpha: "bg-primary text-white px-4 py-2 rounded-md";
|
|
260
|
+
beta: "bg-primary text-white px-4 py-2";
|
|
261
|
+
};
|
|
262
|
+
}, undefined>;
|