@trackunit/react-form-components 2.6.47 → 2.6.49
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/index.cjs.js +286 -308
- package/index.esm.js +287 -309
- package/package.json +8 -8
- package/src/components/ActionButton/ActionButton.variants.d.ts +60 -6
- package/src/components/BaseInput/BaseInput.variants.d.ts +317 -32
- package/src/components/BaseSelect/BaseSelect.variants.d.ts +248 -29
- package/src/components/Checkbox/Checkbox.variants.d.ts +71 -7
- package/src/components/ColorField/ColorField.variants.d.ts +30 -3
- package/src/components/DropZone/DropZone.variants.d.ts +101 -11
- package/src/components/FormGroup/FormGroup.variants.d.ts +57 -7
- package/src/components/Label/Label.variants.d.ts +55 -5
- package/src/components/OptionCard/OptionCard.variants.d.ts +164 -21
- package/src/components/RadioGroup/RadioGroup.variants.d.ts +70 -8
- package/src/components/Schedule/Schedule.variants.d.ts +12 -2
- package/src/components/Search/Search.variants.d.ts +34 -4
- package/src/components/TextAreaField/TextArea/TextAreaBaseInput.variants.d.ts +52 -5
- package/src/components/TimeRange/TimeRange.variants.d.ts +6 -1
- package/src/components/ToggleSwitch/ToggleSwitch.variants.d.ts +145 -12
- package/src/components/UploadInput/UploadInput.variants.d.ts +6 -1
- package/src/shared-cva/BinaryControlItem.variants.d.ts +46 -7
- package/migrations/entry.js.map +0 -1
- package/migrations/utils/jsx-utils.js.map +0 -1
- package/migrations/v2-0-0/actionbutton-add-title.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.49",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"migrations": "./migrations.json",
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"react-calendar": "^6.0.0",
|
|
12
12
|
"react-select": "^5.10.2",
|
|
13
|
-
"@trackunit/date-and-time-utils": "1.14.
|
|
13
|
+
"@trackunit/date-and-time-utils": "1.14.31",
|
|
14
14
|
"usehooks-ts": "^3.1.0",
|
|
15
15
|
"libphonenumber-js": "^1.13.6",
|
|
16
16
|
"zod": "^3.25.76",
|
|
17
17
|
"tailwind-merge": "^2.0.0",
|
|
18
|
-
"@trackunit/css-class-variance-utilities": "
|
|
19
|
-
"@trackunit/react-components": "2.
|
|
20
|
-
"@trackunit/ui-icons": "1.14.
|
|
21
|
-
"@trackunit/shared-utils": "1.16.
|
|
22
|
-
"@trackunit/ui-design-tokens": "1.15.
|
|
23
|
-
"@trackunit/i18n-library-translation": "2.4.
|
|
18
|
+
"@trackunit/css-class-variance-utilities": "2.0.0",
|
|
19
|
+
"@trackunit/react-components": "2.13.1",
|
|
20
|
+
"@trackunit/ui-icons": "1.14.29",
|
|
21
|
+
"@trackunit/shared-utils": "1.16.33",
|
|
22
|
+
"@trackunit/ui-design-tokens": "1.15.20",
|
|
23
|
+
"@trackunit/i18n-library-translation": "2.4.42",
|
|
24
24
|
"string-ts": "^2.0.0",
|
|
25
25
|
"es-toolkit": "^1.39.10"
|
|
26
26
|
},
|
|
@@ -1,6 +1,60 @@
|
|
|
1
|
-
export declare const cvaActionButton: (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export declare const cvaActionButton: import("cva").CVAComponent<Omit<{
|
|
2
|
+
base: string[];
|
|
3
|
+
variants: {
|
|
4
|
+
size: {
|
|
5
|
+
small: string[];
|
|
6
|
+
medium: string[];
|
|
7
|
+
large: string[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
defaultVariants: {
|
|
11
|
+
size: "medium";
|
|
12
|
+
};
|
|
13
|
+
}, "defaultVariants"> & {
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
small: string[];
|
|
17
|
+
medium: string[];
|
|
18
|
+
large: string[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
defaultVariants: Omit<{}, "size"> & {
|
|
22
|
+
size: "medium";
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
size: {
|
|
26
|
+
small: string[];
|
|
27
|
+
medium: string[];
|
|
28
|
+
large: string[];
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
export declare const cvaActionContainer: import("cva").CVAComponent<Omit<{
|
|
32
|
+
base: string[];
|
|
33
|
+
variants: {
|
|
34
|
+
size: {
|
|
35
|
+
small: string[];
|
|
36
|
+
medium: string[];
|
|
37
|
+
large: string[];
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
defaultVariants: {
|
|
41
|
+
size: "medium";
|
|
42
|
+
};
|
|
43
|
+
}, "defaultVariants"> & {
|
|
44
|
+
variants: {
|
|
45
|
+
size: {
|
|
46
|
+
small: string[];
|
|
47
|
+
medium: string[];
|
|
48
|
+
large: string[];
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
defaultVariants: Omit<{}, "size"> & {
|
|
52
|
+
size: "medium";
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
size: {
|
|
56
|
+
small: string[];
|
|
57
|
+
medium: string[];
|
|
58
|
+
large: string[];
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
@@ -1,40 +1,325 @@
|
|
|
1
|
-
export declare const cvaInputBase:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
export declare const cvaInputBase: import("cva").CVAComponent<Omit<{
|
|
2
|
+
base: string[];
|
|
3
|
+
}, "defaultVariants"> & {
|
|
4
|
+
variants: unknown;
|
|
5
|
+
defaultVariants: Omit<{}, never>;
|
|
6
|
+
}, unknown>;
|
|
7
|
+
export declare const cvaInputBaseDisabled: import("cva").CVAComponent<Omit<{
|
|
8
|
+
base: string[];
|
|
9
|
+
}, "defaultVariants"> & {
|
|
10
|
+
variants: unknown;
|
|
11
|
+
defaultVariants: Omit<{}, never>;
|
|
12
|
+
}, unknown>;
|
|
13
|
+
export declare const cvaInputBaseInvalid: import("cva").CVAComponent<Omit<{
|
|
14
|
+
base: string[];
|
|
15
|
+
}, "defaultVariants"> & {
|
|
16
|
+
variants: unknown;
|
|
17
|
+
defaultVariants: Omit<{}, never>;
|
|
18
|
+
}, unknown>;
|
|
19
|
+
export declare const cvaInputBaseReadOnly: import("cva").CVAComponent<Omit<{
|
|
20
|
+
base: string[];
|
|
21
|
+
}, "defaultVariants"> & {
|
|
22
|
+
variants: unknown;
|
|
23
|
+
defaultVariants: Omit<{}, never>;
|
|
24
|
+
}, unknown>;
|
|
25
|
+
export declare const cvaInputBaseSize: import("cva").CVAComponent<Omit<{
|
|
26
|
+
base: string;
|
|
27
|
+
variants: {
|
|
28
|
+
size: {
|
|
29
|
+
small: string[];
|
|
30
|
+
medium: string[];
|
|
31
|
+
large: string[];
|
|
32
|
+
};
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
size: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}, "defaultVariants"> & {
|
|
38
|
+
variants: {
|
|
39
|
+
size: {
|
|
40
|
+
small: string[];
|
|
41
|
+
medium: string[];
|
|
42
|
+
large: string[];
|
|
43
|
+
};
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
size: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
defaultVariants: Omit<{}, never>;
|
|
49
|
+
}, {
|
|
50
|
+
size: {
|
|
51
|
+
small: string[];
|
|
52
|
+
medium: string[];
|
|
53
|
+
large: string[];
|
|
54
|
+
};
|
|
55
|
+
defaultVariants: {
|
|
56
|
+
size: string;
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
export declare const cvaInput: import("cva").CVAComponent<Omit<{
|
|
60
|
+
base: string[];
|
|
61
|
+
variants: {
|
|
62
|
+
size: {
|
|
63
|
+
small: string;
|
|
64
|
+
medium: string;
|
|
65
|
+
large: string;
|
|
66
|
+
};
|
|
67
|
+
disabled: {
|
|
68
|
+
true: string;
|
|
69
|
+
false: string[];
|
|
70
|
+
};
|
|
71
|
+
readOnly: {
|
|
72
|
+
true: string;
|
|
73
|
+
false: string[];
|
|
74
|
+
};
|
|
75
|
+
invalid: {
|
|
76
|
+
true: string;
|
|
77
|
+
false: string[];
|
|
78
|
+
};
|
|
79
|
+
isWarning: {
|
|
80
|
+
true: string[];
|
|
81
|
+
false: string[];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
compoundVariants: ({
|
|
85
|
+
invalid: true;
|
|
86
|
+
isWarning: true;
|
|
87
|
+
className: "border-danger-600"[];
|
|
88
|
+
disabled?: undefined;
|
|
89
|
+
readOnly?: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
disabled: true;
|
|
92
|
+
readOnly: true;
|
|
93
|
+
className: "text-neutral-400";
|
|
94
|
+
invalid?: undefined;
|
|
95
|
+
isWarning?: undefined;
|
|
96
|
+
})[];
|
|
97
|
+
defaultVariants: {
|
|
98
|
+
size: "medium";
|
|
99
|
+
disabled: false;
|
|
100
|
+
invalid: false;
|
|
101
|
+
isWarning: false;
|
|
102
|
+
};
|
|
103
|
+
}, "defaultVariants"> & {
|
|
104
|
+
variants: {
|
|
105
|
+
size: {
|
|
106
|
+
small: string;
|
|
107
|
+
medium: string;
|
|
108
|
+
large: string;
|
|
109
|
+
};
|
|
110
|
+
disabled: {
|
|
111
|
+
true: string;
|
|
112
|
+
false: string[];
|
|
113
|
+
};
|
|
114
|
+
readOnly: {
|
|
115
|
+
true: string;
|
|
116
|
+
false: string[];
|
|
117
|
+
};
|
|
118
|
+
invalid: {
|
|
119
|
+
true: string;
|
|
120
|
+
false: string[];
|
|
121
|
+
};
|
|
122
|
+
isWarning: {
|
|
123
|
+
true: string[];
|
|
124
|
+
false: string[];
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
defaultVariants: Omit<{}, "size" | "disabled" | "invalid" | "isWarning"> & {
|
|
128
|
+
size: "medium";
|
|
129
|
+
disabled: false;
|
|
130
|
+
invalid: false;
|
|
131
|
+
isWarning: false;
|
|
132
|
+
};
|
|
133
|
+
}, {
|
|
134
|
+
size: {
|
|
135
|
+
small: string;
|
|
136
|
+
medium: string;
|
|
137
|
+
large: string;
|
|
138
|
+
};
|
|
139
|
+
disabled: {
|
|
140
|
+
true: string;
|
|
141
|
+
false: string[];
|
|
142
|
+
};
|
|
143
|
+
readOnly: {
|
|
144
|
+
true: string;
|
|
145
|
+
false: string[];
|
|
146
|
+
};
|
|
147
|
+
invalid: {
|
|
148
|
+
true: string;
|
|
149
|
+
false: string[];
|
|
150
|
+
};
|
|
151
|
+
isWarning: {
|
|
152
|
+
true: string[];
|
|
153
|
+
false: string[];
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
16
156
|
/**
|
|
17
157
|
* Used for placing items in the grid, using a grid z-stack trick.
|
|
18
158
|
* The span position is used for the input field, which spans the entire grid.
|
|
19
159
|
*! Relies on the specific grid layout of cvaInput ☝️
|
|
20
160
|
*/
|
|
21
|
-
export declare const cvaInputItemPlacementManager: (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
161
|
+
export declare const cvaInputItemPlacementManager: import("cva").CVAComponent<Omit<{
|
|
162
|
+
base: never[];
|
|
163
|
+
variants: {
|
|
164
|
+
position: {
|
|
165
|
+
before: string[];
|
|
166
|
+
after: string[];
|
|
167
|
+
span: string[];
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
defaultVariants: {
|
|
171
|
+
position: "span";
|
|
172
|
+
};
|
|
173
|
+
}, "defaultVariants"> & {
|
|
174
|
+
variants: {
|
|
175
|
+
position: {
|
|
176
|
+
before: string[];
|
|
177
|
+
after: string[];
|
|
178
|
+
span: string[];
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
defaultVariants: Omit<{}, "position"> & {
|
|
182
|
+
position: "span";
|
|
183
|
+
};
|
|
184
|
+
}, {
|
|
185
|
+
position: {
|
|
186
|
+
before: string[];
|
|
187
|
+
after: string[];
|
|
188
|
+
span: string[];
|
|
189
|
+
};
|
|
190
|
+
}>;
|
|
191
|
+
export declare const cvaAccessoriesContainer: import("cva").CVAComponent<Omit<{
|
|
192
|
+
base: string[];
|
|
193
|
+
}, "defaultVariants"> & {
|
|
194
|
+
variants: unknown;
|
|
195
|
+
defaultVariants: Omit<{}, never>;
|
|
196
|
+
}, unknown>;
|
|
25
197
|
/**
|
|
26
198
|
* Text size and color is handled by cvaInput
|
|
27
199
|
*/
|
|
28
|
-
export declare const cvaInputElement: (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
200
|
+
export declare const cvaInputElement: import("cva").CVAComponent<Omit<{
|
|
201
|
+
base: string[];
|
|
202
|
+
variants: {
|
|
203
|
+
size: {
|
|
204
|
+
small: string[];
|
|
205
|
+
medium: string[];
|
|
206
|
+
large: string[];
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
defaultVariants: {
|
|
210
|
+
size: "medium";
|
|
211
|
+
};
|
|
212
|
+
}, "defaultVariants"> & {
|
|
213
|
+
variants: {
|
|
214
|
+
size: {
|
|
215
|
+
small: string[];
|
|
216
|
+
medium: string[];
|
|
217
|
+
large: string[];
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
defaultVariants: Omit<{}, "size"> & {
|
|
221
|
+
size: "medium";
|
|
222
|
+
};
|
|
223
|
+
}, {
|
|
224
|
+
size: {
|
|
225
|
+
small: string[];
|
|
226
|
+
medium: string[];
|
|
227
|
+
large: string[];
|
|
228
|
+
};
|
|
229
|
+
}>;
|
|
230
|
+
export declare const cvaInputAddon: import("cva").CVAComponent<Omit<{
|
|
231
|
+
base: string[];
|
|
232
|
+
variants: {
|
|
233
|
+
size: {
|
|
234
|
+
small: string[];
|
|
235
|
+
medium: string[];
|
|
236
|
+
large: string[];
|
|
237
|
+
};
|
|
238
|
+
position: {
|
|
239
|
+
before: string[];
|
|
240
|
+
after: string[];
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
defaultVariants: {
|
|
244
|
+
size: "medium";
|
|
245
|
+
};
|
|
246
|
+
}, "defaultVariants"> & {
|
|
247
|
+
variants: {
|
|
248
|
+
size: {
|
|
249
|
+
small: string[];
|
|
250
|
+
medium: string[];
|
|
251
|
+
large: string[];
|
|
252
|
+
};
|
|
253
|
+
position: {
|
|
254
|
+
before: string[];
|
|
255
|
+
after: string[];
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
defaultVariants: Omit<{}, "size"> & {
|
|
259
|
+
size: "medium";
|
|
260
|
+
};
|
|
261
|
+
}, {
|
|
262
|
+
size: {
|
|
263
|
+
small: string[];
|
|
264
|
+
medium: string[];
|
|
265
|
+
large: string[];
|
|
266
|
+
};
|
|
267
|
+
position: {
|
|
268
|
+
before: string[];
|
|
269
|
+
after: string[];
|
|
270
|
+
};
|
|
271
|
+
}>;
|
|
272
|
+
export declare const cvaInputPrefix: import("cva").CVAComponent<Omit<{
|
|
273
|
+
base: string[];
|
|
274
|
+
variants: {
|
|
275
|
+
disabled: {
|
|
276
|
+
true: string[];
|
|
277
|
+
false: string[];
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
defaultVariants: {
|
|
281
|
+
disabled: false;
|
|
282
|
+
};
|
|
283
|
+
}, "defaultVariants"> & {
|
|
284
|
+
variants: {
|
|
285
|
+
disabled: {
|
|
286
|
+
true: string[];
|
|
287
|
+
false: string[];
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
defaultVariants: Omit<{}, "disabled"> & {
|
|
291
|
+
disabled: false;
|
|
292
|
+
};
|
|
293
|
+
}, {
|
|
294
|
+
disabled: {
|
|
295
|
+
true: string[];
|
|
296
|
+
false: string[];
|
|
297
|
+
};
|
|
298
|
+
}>;
|
|
299
|
+
export declare const cvaInputSuffix: import("cva").CVAComponent<Omit<{
|
|
300
|
+
base: string[];
|
|
301
|
+
variants: {
|
|
302
|
+
disabled: {
|
|
303
|
+
true: string[];
|
|
304
|
+
false: string[];
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
defaultVariants: {
|
|
308
|
+
disabled: false;
|
|
309
|
+
};
|
|
310
|
+
}, "defaultVariants"> & {
|
|
311
|
+
variants: {
|
|
312
|
+
disabled: {
|
|
313
|
+
true: string[];
|
|
314
|
+
false: string[];
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
defaultVariants: Omit<{}, "disabled"> & {
|
|
318
|
+
disabled: false;
|
|
319
|
+
};
|
|
320
|
+
}, {
|
|
321
|
+
disabled: {
|
|
322
|
+
true: string[];
|
|
323
|
+
false: string[];
|
|
324
|
+
};
|
|
325
|
+
}>;
|