@blankjs/react 0.1.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/LICENSE +21 -0
- package/README.md +190 -0
- package/dist/index.d.mts +738 -0
- package/dist/index.mjs +1732 -0
- package/dist/index.mjs.map +1 -0
- package/dist/style.css +1161 -0
- package/package.json +68 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,738 @@
|
|
|
1
|
+
import { FieldControlProps, UseFieldRootOptions, useFieldControlProps } from "@blankjs/core";
|
|
2
|
+
import { ComponentProps, HTMLAttributes, PropsWithChildren, ReactElement, ReactNode, Ref } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/slot/slot.d.ts
|
|
5
|
+
interface SlotProps extends HTMLAttributes<HTMLElement> {
|
|
6
|
+
children: ReactElement;
|
|
7
|
+
ref?: Ref<HTMLElement>;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/field/root.d.ts
|
|
11
|
+
type FieldRootProps = UseFieldRootOptions & ComponentProps<"div"> & {
|
|
12
|
+
name?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const FieldRoot: {
|
|
15
|
+
({
|
|
16
|
+
children,
|
|
17
|
+
invalid,
|
|
18
|
+
disabled,
|
|
19
|
+
required,
|
|
20
|
+
validationMode,
|
|
21
|
+
name,
|
|
22
|
+
ref,
|
|
23
|
+
validate,
|
|
24
|
+
...props
|
|
25
|
+
}: FieldRootProps): import("react").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/field/label.d.ts
|
|
30
|
+
type FieldLabelProps = ComponentProps<"label">;
|
|
31
|
+
declare const FieldLabel: {
|
|
32
|
+
({
|
|
33
|
+
children,
|
|
34
|
+
...props
|
|
35
|
+
}: FieldLabelProps): import("react").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/field/description.d.ts
|
|
40
|
+
type FieldDescriptionProps = ComponentProps<"div">;
|
|
41
|
+
declare const FieldDescription: {
|
|
42
|
+
({
|
|
43
|
+
children,
|
|
44
|
+
...props
|
|
45
|
+
}: FieldDescriptionProps): import("react").JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/field/error.d.ts
|
|
50
|
+
type FieldErrorProps = ComponentProps<"div"> & {
|
|
51
|
+
match?: keyof ValidityState;
|
|
52
|
+
};
|
|
53
|
+
declare const FieldError: {
|
|
54
|
+
({
|
|
55
|
+
children,
|
|
56
|
+
match,
|
|
57
|
+
...props
|
|
58
|
+
}: FieldErrorProps): import("react").JSX.Element | null;
|
|
59
|
+
displayName: string;
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/field/control.d.ts
|
|
63
|
+
declare const FieldControl: {
|
|
64
|
+
({
|
|
65
|
+
children
|
|
66
|
+
}: {
|
|
67
|
+
children: SlotProps["children"];
|
|
68
|
+
}): import("react").JSX.Element;
|
|
69
|
+
displayName: string;
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/field/index.d.ts
|
|
73
|
+
declare const Field: {
|
|
74
|
+
Control: {
|
|
75
|
+
({
|
|
76
|
+
children
|
|
77
|
+
}: {
|
|
78
|
+
children: SlotProps["children"];
|
|
79
|
+
}): import("react").JSX.Element;
|
|
80
|
+
displayName: string;
|
|
81
|
+
};
|
|
82
|
+
Root: {
|
|
83
|
+
({
|
|
84
|
+
children,
|
|
85
|
+
invalid,
|
|
86
|
+
disabled,
|
|
87
|
+
required,
|
|
88
|
+
validationMode,
|
|
89
|
+
name,
|
|
90
|
+
ref,
|
|
91
|
+
validate,
|
|
92
|
+
...props
|
|
93
|
+
}: FieldRootProps): import("react").JSX.Element;
|
|
94
|
+
displayName: string;
|
|
95
|
+
};
|
|
96
|
+
Label: {
|
|
97
|
+
({
|
|
98
|
+
children,
|
|
99
|
+
...props
|
|
100
|
+
}: import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>): import("react").JSX.Element;
|
|
101
|
+
displayName: string;
|
|
102
|
+
};
|
|
103
|
+
Description: {
|
|
104
|
+
({
|
|
105
|
+
children,
|
|
106
|
+
...props
|
|
107
|
+
}: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>): import("react").JSX.Element;
|
|
108
|
+
displayName: string;
|
|
109
|
+
};
|
|
110
|
+
Error: {
|
|
111
|
+
({
|
|
112
|
+
children,
|
|
113
|
+
match,
|
|
114
|
+
...props
|
|
115
|
+
}: import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
116
|
+
match?: keyof ValidityState;
|
|
117
|
+
}): import("react").JSX.Element | null;
|
|
118
|
+
displayName: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region src/types.d.ts
|
|
123
|
+
type Size = "sm" | "md" | "lg";
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/text-input/text-input.d.ts
|
|
126
|
+
interface TextInputProps extends Omit<ComponentProps<"input">, "size"> {
|
|
127
|
+
size?: Size;
|
|
128
|
+
}
|
|
129
|
+
declare const TextInput: {
|
|
130
|
+
({
|
|
131
|
+
className,
|
|
132
|
+
size,
|
|
133
|
+
...props
|
|
134
|
+
}: TextInputProps): import("react").JSX.Element;
|
|
135
|
+
displayName: string;
|
|
136
|
+
};
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/textarea/textarea.d.ts
|
|
139
|
+
interface TextareaProps extends ComponentProps<"textarea"> {
|
|
140
|
+
size?: Size;
|
|
141
|
+
}
|
|
142
|
+
declare const Textarea: {
|
|
143
|
+
({
|
|
144
|
+
className,
|
|
145
|
+
size,
|
|
146
|
+
...props
|
|
147
|
+
}: TextareaProps): import("react").JSX.Element;
|
|
148
|
+
displayName: string;
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/password-field/password-field.d.ts
|
|
152
|
+
type PasswordFieldProps = Omit<ComponentProps<"input">, "size"> & {
|
|
153
|
+
size?: Size;
|
|
154
|
+
};
|
|
155
|
+
declare const PasswordField: ({
|
|
156
|
+
className,
|
|
157
|
+
disabled,
|
|
158
|
+
size,
|
|
159
|
+
...rest
|
|
160
|
+
}: PasswordFieldProps) => import("react").JSX.Element;
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/select/types.d.ts
|
|
163
|
+
type UseSelectRootOptions = {
|
|
164
|
+
value?: string;
|
|
165
|
+
defaultValue?: string;
|
|
166
|
+
onValueChange?: (value: string | undefined) => void;
|
|
167
|
+
open?: boolean;
|
|
168
|
+
defaultOpen?: boolean;
|
|
169
|
+
onOpenChange?: (open: boolean) => void;
|
|
170
|
+
disabled?: boolean;
|
|
171
|
+
required?: boolean;
|
|
172
|
+
name?: string;
|
|
173
|
+
size?: Size;
|
|
174
|
+
};
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/select/trigger.d.ts
|
|
177
|
+
interface SelectTriggerProps extends ComponentProps<"button"> {
|
|
178
|
+
children: ReactNode;
|
|
179
|
+
asChild?: boolean;
|
|
180
|
+
}
|
|
181
|
+
declare const SelectTrigger: {
|
|
182
|
+
({
|
|
183
|
+
asChild,
|
|
184
|
+
children,
|
|
185
|
+
className,
|
|
186
|
+
...props
|
|
187
|
+
}: SelectTriggerProps): import("react").JSX.Element;
|
|
188
|
+
displayName: string;
|
|
189
|
+
};
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/select/content.d.ts
|
|
192
|
+
interface SelectContentProps extends ComponentProps<"div"> {
|
|
193
|
+
container?: HTMLElement;
|
|
194
|
+
}
|
|
195
|
+
declare const SelectContent: {
|
|
196
|
+
({
|
|
197
|
+
children,
|
|
198
|
+
...props
|
|
199
|
+
}: SelectContentProps): import("react").JSX.Element | null;
|
|
200
|
+
displayName: string;
|
|
201
|
+
};
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/select/item.d.ts
|
|
204
|
+
interface SelectItemProps extends ComponentProps<"div"> {
|
|
205
|
+
value: string;
|
|
206
|
+
textValue?: string;
|
|
207
|
+
}
|
|
208
|
+
declare const SelectItem: {
|
|
209
|
+
({
|
|
210
|
+
value,
|
|
211
|
+
textValue,
|
|
212
|
+
children,
|
|
213
|
+
className,
|
|
214
|
+
...props
|
|
215
|
+
}: SelectItemProps): import("react").JSX.Element;
|
|
216
|
+
displayName: string;
|
|
217
|
+
};
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region src/select/value.d.ts
|
|
220
|
+
interface SelectValueProps {
|
|
221
|
+
placeholder?: ReactNode;
|
|
222
|
+
children?: (value: string) => ReactNode;
|
|
223
|
+
}
|
|
224
|
+
declare const SelectValue: {
|
|
225
|
+
({
|
|
226
|
+
placeholder,
|
|
227
|
+
children
|
|
228
|
+
}: SelectValueProps): import("react").JSX.Element;
|
|
229
|
+
displayName: string;
|
|
230
|
+
};
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/select/clear.d.ts
|
|
233
|
+
type SelectClearProps = ComponentProps<"button">;
|
|
234
|
+
declare const SelectClear: {
|
|
235
|
+
({
|
|
236
|
+
className,
|
|
237
|
+
children,
|
|
238
|
+
onClick,
|
|
239
|
+
...props
|
|
240
|
+
}: SelectClearProps): import("react").JSX.Element | null;
|
|
241
|
+
displayName: string;
|
|
242
|
+
};
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/select/root.d.ts
|
|
245
|
+
type SelectRootProps = PropsWithChildren<UseSelectRootOptions>;
|
|
246
|
+
declare const SelectRoot: {
|
|
247
|
+
({
|
|
248
|
+
children,
|
|
249
|
+
required,
|
|
250
|
+
...options
|
|
251
|
+
}: SelectRootProps): import("react").JSX.Element;
|
|
252
|
+
displayName: string;
|
|
253
|
+
};
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/select/index.d.ts
|
|
256
|
+
declare const Select: {
|
|
257
|
+
Root: {
|
|
258
|
+
({
|
|
259
|
+
children,
|
|
260
|
+
required,
|
|
261
|
+
...options
|
|
262
|
+
}: UseSelectRootOptions & {
|
|
263
|
+
children?: import("react").ReactNode | undefined;
|
|
264
|
+
}): import("react").JSX.Element;
|
|
265
|
+
displayName: string;
|
|
266
|
+
};
|
|
267
|
+
Trigger: {
|
|
268
|
+
({
|
|
269
|
+
asChild,
|
|
270
|
+
children,
|
|
271
|
+
className,
|
|
272
|
+
...props
|
|
273
|
+
}: SelectTriggerProps): import("react").JSX.Element;
|
|
274
|
+
displayName: string;
|
|
275
|
+
};
|
|
276
|
+
Content: {
|
|
277
|
+
({
|
|
278
|
+
children,
|
|
279
|
+
...props
|
|
280
|
+
}: SelectContentProps): import("react").JSX.Element | null;
|
|
281
|
+
displayName: string;
|
|
282
|
+
};
|
|
283
|
+
Item: {
|
|
284
|
+
({
|
|
285
|
+
value,
|
|
286
|
+
textValue,
|
|
287
|
+
children,
|
|
288
|
+
className,
|
|
289
|
+
...props
|
|
290
|
+
}: SelectItemProps): import("react").JSX.Element;
|
|
291
|
+
displayName: string;
|
|
292
|
+
};
|
|
293
|
+
Value: {
|
|
294
|
+
({
|
|
295
|
+
placeholder,
|
|
296
|
+
children
|
|
297
|
+
}: SelectValueProps): import("react").JSX.Element;
|
|
298
|
+
displayName: string;
|
|
299
|
+
};
|
|
300
|
+
Clear: {
|
|
301
|
+
({
|
|
302
|
+
className,
|
|
303
|
+
children,
|
|
304
|
+
onClick,
|
|
305
|
+
...props
|
|
306
|
+
}: SelectClearProps): import("react").JSX.Element | null;
|
|
307
|
+
displayName: string;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/button/button.d.ts
|
|
312
|
+
interface ButtonProps extends ComponentProps<"button"> {
|
|
313
|
+
asChild?: boolean;
|
|
314
|
+
variant?: "solid" | "outline" | "ghost";
|
|
315
|
+
size?: Size;
|
|
316
|
+
}
|
|
317
|
+
declare const Button: ({
|
|
318
|
+
children,
|
|
319
|
+
className,
|
|
320
|
+
asChild,
|
|
321
|
+
variant,
|
|
322
|
+
size,
|
|
323
|
+
...props
|
|
324
|
+
}: ButtonProps) => import("react").JSX.Element;
|
|
325
|
+
//#endregion
|
|
326
|
+
//#region src/checkbox/checkbox.d.ts
|
|
327
|
+
interface CheckboxProps extends Omit<ComponentProps<"input">, "type" | "checked" | "defaultChecked" | "onChange" | "size"> {
|
|
328
|
+
checked?: boolean;
|
|
329
|
+
defaultChecked?: boolean;
|
|
330
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
331
|
+
indeterminate?: boolean;
|
|
332
|
+
onChange?: ComponentProps<"input">["onChange"];
|
|
333
|
+
size?: Size;
|
|
334
|
+
}
|
|
335
|
+
declare const Checkbox: ({
|
|
336
|
+
checked,
|
|
337
|
+
defaultChecked,
|
|
338
|
+
onCheckedChange,
|
|
339
|
+
indeterminate,
|
|
340
|
+
onChange,
|
|
341
|
+
disabled,
|
|
342
|
+
className,
|
|
343
|
+
size,
|
|
344
|
+
...props
|
|
345
|
+
}: CheckboxProps) => import("react").JSX.Element;
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region src/switch/switch.d.ts
|
|
348
|
+
interface SwitchProps extends Omit<ComponentProps<"input">, "type" | "checked" | "defaultChecked" | "size"> {
|
|
349
|
+
checked?: boolean;
|
|
350
|
+
defaultChecked?: boolean;
|
|
351
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
352
|
+
size?: Size;
|
|
353
|
+
}
|
|
354
|
+
declare const Switch: ({
|
|
355
|
+
checked,
|
|
356
|
+
defaultChecked,
|
|
357
|
+
onCheckedChange,
|
|
358
|
+
disabled,
|
|
359
|
+
className,
|
|
360
|
+
style,
|
|
361
|
+
onChange,
|
|
362
|
+
size,
|
|
363
|
+
...props
|
|
364
|
+
}: SwitchProps) => import("react").JSX.Element;
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region src/radio/types.d.ts
|
|
367
|
+
type UseRadioGroupRootOptions = {
|
|
368
|
+
value?: string;
|
|
369
|
+
defaultValue?: string;
|
|
370
|
+
onValueChange?: (value: string) => void;
|
|
371
|
+
disabled?: boolean;
|
|
372
|
+
name?: string;
|
|
373
|
+
};
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region src/radio/root.d.ts
|
|
376
|
+
type RadioGroupRootProps = UseRadioGroupRootOptions & Omit<ComponentProps<"div">, "defaultValue" | "onChange"> & {
|
|
377
|
+
size?: Size;
|
|
378
|
+
};
|
|
379
|
+
declare const RadioGroupRoot: {
|
|
380
|
+
({
|
|
381
|
+
children,
|
|
382
|
+
value,
|
|
383
|
+
defaultValue,
|
|
384
|
+
onValueChange,
|
|
385
|
+
disabled,
|
|
386
|
+
name,
|
|
387
|
+
className,
|
|
388
|
+
size,
|
|
389
|
+
...props
|
|
390
|
+
}: RadioGroupRootProps): import("react").JSX.Element;
|
|
391
|
+
displayName: string;
|
|
392
|
+
};
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region src/radio/item.d.ts
|
|
395
|
+
interface RadioGroupItemProps extends Omit<ComponentProps<"input">, "type" | "name" | "checked" | "defaultChecked" | "value"> {
|
|
396
|
+
value: string;
|
|
397
|
+
}
|
|
398
|
+
declare const RadioGroupItem: {
|
|
399
|
+
({
|
|
400
|
+
className,
|
|
401
|
+
style,
|
|
402
|
+
onChange,
|
|
403
|
+
children,
|
|
404
|
+
...props
|
|
405
|
+
}: RadioGroupItemProps): import("react").JSX.Element;
|
|
406
|
+
displayName: string;
|
|
407
|
+
};
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region src/radio/index.d.ts
|
|
410
|
+
declare const RadioGroup: {
|
|
411
|
+
Root: {
|
|
412
|
+
({
|
|
413
|
+
children,
|
|
414
|
+
value,
|
|
415
|
+
defaultValue,
|
|
416
|
+
onValueChange,
|
|
417
|
+
disabled,
|
|
418
|
+
name,
|
|
419
|
+
className,
|
|
420
|
+
size,
|
|
421
|
+
...props
|
|
422
|
+
}: RadioGroupRootProps): import("react").JSX.Element;
|
|
423
|
+
displayName: string;
|
|
424
|
+
};
|
|
425
|
+
Item: {
|
|
426
|
+
({
|
|
427
|
+
className,
|
|
428
|
+
style,
|
|
429
|
+
onChange,
|
|
430
|
+
children,
|
|
431
|
+
...props
|
|
432
|
+
}: RadioGroupItemProps): import("react").JSX.Element;
|
|
433
|
+
displayName: string;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
//#endregion
|
|
437
|
+
//#region src/multi-select/types.d.ts
|
|
438
|
+
type UseMultiSelectRootOptions = {
|
|
439
|
+
value?: string[];
|
|
440
|
+
defaultValue?: string[];
|
|
441
|
+
onValueChange?: (value: string[]) => void;
|
|
442
|
+
open?: boolean;
|
|
443
|
+
defaultOpen?: boolean;
|
|
444
|
+
onOpenChange?: (open: boolean) => void;
|
|
445
|
+
disabled?: boolean;
|
|
446
|
+
required?: boolean;
|
|
447
|
+
name?: string;
|
|
448
|
+
size?: Size;
|
|
449
|
+
};
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region src/multi-select/trigger.d.ts
|
|
452
|
+
interface MultiSelectTriggerProps extends ComponentProps<"button"> {
|
|
453
|
+
children: ReactNode;
|
|
454
|
+
asChild?: boolean;
|
|
455
|
+
}
|
|
456
|
+
declare const MultiSelectTrigger: {
|
|
457
|
+
({
|
|
458
|
+
asChild,
|
|
459
|
+
children,
|
|
460
|
+
className,
|
|
461
|
+
...props
|
|
462
|
+
}: MultiSelectTriggerProps): import("react").JSX.Element;
|
|
463
|
+
displayName: string;
|
|
464
|
+
};
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region src/multi-select/content.d.ts
|
|
467
|
+
interface MultiSelectContentProps extends ComponentProps<"div"> {
|
|
468
|
+
container?: HTMLElement;
|
|
469
|
+
}
|
|
470
|
+
declare const MultiSelectContent: {
|
|
471
|
+
({
|
|
472
|
+
children,
|
|
473
|
+
...props
|
|
474
|
+
}: MultiSelectContentProps): import("react").JSX.Element | null;
|
|
475
|
+
displayName: string;
|
|
476
|
+
};
|
|
477
|
+
//#endregion
|
|
478
|
+
//#region src/multi-select/item.d.ts
|
|
479
|
+
interface MultiSelectItemProps extends ComponentProps<"div"> {
|
|
480
|
+
value: string;
|
|
481
|
+
textValue?: string;
|
|
482
|
+
}
|
|
483
|
+
declare const MultiSelectItem: {
|
|
484
|
+
({
|
|
485
|
+
value,
|
|
486
|
+
textValue,
|
|
487
|
+
children,
|
|
488
|
+
className,
|
|
489
|
+
...props
|
|
490
|
+
}: MultiSelectItemProps): import("react").JSX.Element;
|
|
491
|
+
displayName: string;
|
|
492
|
+
};
|
|
493
|
+
//#endregion
|
|
494
|
+
//#region src/multi-select/value.d.ts
|
|
495
|
+
interface MultiSelectValueProps {
|
|
496
|
+
placeholder?: string;
|
|
497
|
+
children?: (value: string[]) => ReactNode;
|
|
498
|
+
}
|
|
499
|
+
declare const MultiSelectValue: {
|
|
500
|
+
({
|
|
501
|
+
placeholder,
|
|
502
|
+
children
|
|
503
|
+
}: MultiSelectValueProps): import("react").JSX.Element;
|
|
504
|
+
displayName: string;
|
|
505
|
+
};
|
|
506
|
+
//#endregion
|
|
507
|
+
//#region src/multi-select/clear.d.ts
|
|
508
|
+
type MultiSelectClearProps = ComponentProps<"button">;
|
|
509
|
+
declare const MultiSelectClear: {
|
|
510
|
+
({
|
|
511
|
+
className,
|
|
512
|
+
children,
|
|
513
|
+
onClick,
|
|
514
|
+
...props
|
|
515
|
+
}: MultiSelectClearProps): import("react").JSX.Element | null;
|
|
516
|
+
displayName: string;
|
|
517
|
+
};
|
|
518
|
+
//#endregion
|
|
519
|
+
//#region src/multi-select/root.d.ts
|
|
520
|
+
type MultiSelectRootProps = PropsWithChildren<UseMultiSelectRootOptions>;
|
|
521
|
+
declare const MultiSelectRoot: {
|
|
522
|
+
({
|
|
523
|
+
children,
|
|
524
|
+
required,
|
|
525
|
+
...options
|
|
526
|
+
}: MultiSelectRootProps): import("react").JSX.Element;
|
|
527
|
+
displayName: string;
|
|
528
|
+
};
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region src/multi-select/index.d.ts
|
|
531
|
+
declare const MultiSelect: {
|
|
532
|
+
Root: {
|
|
533
|
+
({
|
|
534
|
+
children,
|
|
535
|
+
required,
|
|
536
|
+
...options
|
|
537
|
+
}: UseMultiSelectRootOptions & {
|
|
538
|
+
children?: import("react").ReactNode | undefined;
|
|
539
|
+
}): import("react").JSX.Element;
|
|
540
|
+
displayName: string;
|
|
541
|
+
};
|
|
542
|
+
Trigger: {
|
|
543
|
+
({
|
|
544
|
+
asChild,
|
|
545
|
+
children,
|
|
546
|
+
className,
|
|
547
|
+
...props
|
|
548
|
+
}: MultiSelectTriggerProps): import("react").JSX.Element;
|
|
549
|
+
displayName: string;
|
|
550
|
+
};
|
|
551
|
+
Content: {
|
|
552
|
+
({
|
|
553
|
+
children,
|
|
554
|
+
...props
|
|
555
|
+
}: MultiSelectContentProps): import("react").JSX.Element | null;
|
|
556
|
+
displayName: string;
|
|
557
|
+
};
|
|
558
|
+
Item: {
|
|
559
|
+
({
|
|
560
|
+
value,
|
|
561
|
+
textValue,
|
|
562
|
+
children,
|
|
563
|
+
className,
|
|
564
|
+
...props
|
|
565
|
+
}: MultiSelectItemProps): import("react").JSX.Element;
|
|
566
|
+
displayName: string;
|
|
567
|
+
};
|
|
568
|
+
Value: {
|
|
569
|
+
({
|
|
570
|
+
placeholder,
|
|
571
|
+
children
|
|
572
|
+
}: MultiSelectValueProps): import("react").JSX.Element;
|
|
573
|
+
displayName: string;
|
|
574
|
+
};
|
|
575
|
+
Clear: {
|
|
576
|
+
({
|
|
577
|
+
className,
|
|
578
|
+
children,
|
|
579
|
+
onClick,
|
|
580
|
+
...props
|
|
581
|
+
}: MultiSelectClearProps): import("react").JSX.Element | null;
|
|
582
|
+
displayName: string;
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
//#endregion
|
|
586
|
+
//#region src/combobox/types.d.ts
|
|
587
|
+
type UseComboboxRootOptions = {
|
|
588
|
+
value?: string;
|
|
589
|
+
defaultValue?: string;
|
|
590
|
+
onValueChange?: (value: string | undefined) => void;
|
|
591
|
+
open?: boolean;
|
|
592
|
+
defaultOpen?: boolean;
|
|
593
|
+
onOpenChange?: (open: boolean) => void;
|
|
594
|
+
inputValue?: string;
|
|
595
|
+
defaultInputValue?: string;
|
|
596
|
+
onInputValueChange?: (inputValue: string) => void;
|
|
597
|
+
disabled?: boolean;
|
|
598
|
+
required?: boolean;
|
|
599
|
+
name?: string;
|
|
600
|
+
size?: Size;
|
|
601
|
+
};
|
|
602
|
+
//#endregion
|
|
603
|
+
//#region src/combobox/input.d.ts
|
|
604
|
+
type ComboboxInputProps = Omit<ComponentProps<"input">, "value" | "defaultValue">;
|
|
605
|
+
declare const ComboboxInput: {
|
|
606
|
+
({
|
|
607
|
+
className,
|
|
608
|
+
...props
|
|
609
|
+
}: ComboboxInputProps): import("react").JSX.Element;
|
|
610
|
+
displayName: string;
|
|
611
|
+
};
|
|
612
|
+
//#endregion
|
|
613
|
+
//#region src/combobox/content.d.ts
|
|
614
|
+
interface ComboboxContentProps extends ComponentProps<"div"> {
|
|
615
|
+
container?: HTMLElement;
|
|
616
|
+
}
|
|
617
|
+
declare const ComboboxContent: {
|
|
618
|
+
({
|
|
619
|
+
children,
|
|
620
|
+
...props
|
|
621
|
+
}: ComboboxContentProps): import("react").JSX.Element | null;
|
|
622
|
+
displayName: string;
|
|
623
|
+
};
|
|
624
|
+
//#endregion
|
|
625
|
+
//#region src/combobox/item.d.ts
|
|
626
|
+
interface ComboboxItemProps extends ComponentProps<"div"> {
|
|
627
|
+
value: string;
|
|
628
|
+
textValue?: string;
|
|
629
|
+
}
|
|
630
|
+
declare const ComboboxItem: {
|
|
631
|
+
({
|
|
632
|
+
value,
|
|
633
|
+
textValue,
|
|
634
|
+
children,
|
|
635
|
+
className,
|
|
636
|
+
...props
|
|
637
|
+
}: ComboboxItemProps): import("react").JSX.Element;
|
|
638
|
+
displayName: string;
|
|
639
|
+
};
|
|
640
|
+
//#endregion
|
|
641
|
+
//#region src/combobox/clear.d.ts
|
|
642
|
+
type ComboboxClearProps = ComponentProps<"button">;
|
|
643
|
+
declare const ComboboxClear: {
|
|
644
|
+
({
|
|
645
|
+
children,
|
|
646
|
+
className,
|
|
647
|
+
onClick,
|
|
648
|
+
...props
|
|
649
|
+
}: ComboboxClearProps): import("react").JSX.Element | null;
|
|
650
|
+
displayName: string;
|
|
651
|
+
};
|
|
652
|
+
//#endregion
|
|
653
|
+
//#region src/combobox/root.d.ts
|
|
654
|
+
type ComboboxRootProps = PropsWithChildren<UseComboboxRootOptions>;
|
|
655
|
+
declare const ComboboxRoot: {
|
|
656
|
+
({
|
|
657
|
+
children,
|
|
658
|
+
required,
|
|
659
|
+
...options
|
|
660
|
+
}: ComboboxRootProps): import("react").JSX.Element;
|
|
661
|
+
displayName: string;
|
|
662
|
+
};
|
|
663
|
+
//#endregion
|
|
664
|
+
//#region src/combobox/index.d.ts
|
|
665
|
+
declare const Combobox: {
|
|
666
|
+
Root: {
|
|
667
|
+
({
|
|
668
|
+
children,
|
|
669
|
+
required,
|
|
670
|
+
...options
|
|
671
|
+
}: UseComboboxRootOptions & {
|
|
672
|
+
children?: import("react").ReactNode | undefined;
|
|
673
|
+
}): import("react").JSX.Element;
|
|
674
|
+
displayName: string;
|
|
675
|
+
};
|
|
676
|
+
Input: {
|
|
677
|
+
({
|
|
678
|
+
className,
|
|
679
|
+
...props
|
|
680
|
+
}: ComboboxInputProps): import("react").JSX.Element;
|
|
681
|
+
displayName: string;
|
|
682
|
+
};
|
|
683
|
+
Content: {
|
|
684
|
+
({
|
|
685
|
+
children,
|
|
686
|
+
...props
|
|
687
|
+
}: ComboboxContentProps): import("react").JSX.Element | null;
|
|
688
|
+
displayName: string;
|
|
689
|
+
};
|
|
690
|
+
Item: {
|
|
691
|
+
({
|
|
692
|
+
value,
|
|
693
|
+
textValue,
|
|
694
|
+
children,
|
|
695
|
+
className,
|
|
696
|
+
...props
|
|
697
|
+
}: ComboboxItemProps): import("react").JSX.Element;
|
|
698
|
+
displayName: string;
|
|
699
|
+
};
|
|
700
|
+
Clear: {
|
|
701
|
+
({
|
|
702
|
+
children,
|
|
703
|
+
className,
|
|
704
|
+
onClick,
|
|
705
|
+
...props
|
|
706
|
+
}: ComboboxClearProps): import("react").JSX.Element | null;
|
|
707
|
+
displayName: string;
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
//#endregion
|
|
711
|
+
//#region src/form/form.d.ts
|
|
712
|
+
type FormSubmitEvent = Parameters<NonNullable<ComponentProps<"form">["onSubmit"]>>[0];
|
|
713
|
+
interface FormProps extends Omit<ComponentProps<"form">, "onSubmit"> {
|
|
714
|
+
onSubmit?: (data: FormData, event: FormSubmitEvent) => void;
|
|
715
|
+
errors?: Record<string, string>;
|
|
716
|
+
}
|
|
717
|
+
declare const Form: {
|
|
718
|
+
({
|
|
719
|
+
onSubmit,
|
|
720
|
+
errors,
|
|
721
|
+
ref,
|
|
722
|
+
children,
|
|
723
|
+
...rest
|
|
724
|
+
}: FormProps): import("react").JSX.Element;
|
|
725
|
+
displayName: string;
|
|
726
|
+
};
|
|
727
|
+
//#endregion
|
|
728
|
+
//#region src/form/context.d.ts
|
|
729
|
+
interface FormContextType {
|
|
730
|
+
errors?: Record<string, string>;
|
|
731
|
+
}
|
|
732
|
+
declare const FormContext: import("react").Context<FormContextType | null>;
|
|
733
|
+
//#endregion
|
|
734
|
+
//#region src/form/serialize.d.ts
|
|
735
|
+
declare const serialize: (data: FormData) => Record<string, FormDataEntryValue | FormDataEntryValue[]>;
|
|
736
|
+
//#endregion
|
|
737
|
+
export { Button, type ButtonProps, Checkbox, type CheckboxProps, Combobox, ComboboxClear, ComboboxContent, ComboboxInput, ComboboxItem, ComboboxRoot, Field, FieldControl, type FieldControlProps, FieldDescription, FieldError, FieldLabel, FieldRoot, Form, FormContext, MultiSelect, MultiSelectClear, MultiSelectContent, type MultiSelectContentProps, MultiSelectItem, type MultiSelectItemProps, MultiSelectRoot, MultiSelectTrigger, type MultiSelectTriggerProps, MultiSelectValue, type MultiSelectValueProps, PasswordField, RadioGroup, RadioGroupItem, type RadioGroupItemProps, RadioGroupRoot, type RadioGroupRootProps, Select, SelectClear, SelectContent, type SelectContentProps, SelectItem, SelectRoot, SelectTrigger, type SelectTriggerProps, SelectValue, type Size, Switch, type SwitchProps, TextInput, Textarea, serialize, useFieldControlProps };
|
|
738
|
+
//# sourceMappingURL=index.d.mts.map
|