shadcn-zod-formkit 1.24.0 → 1.26.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/dist/index.cjs +599 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +292 -14
- package/dist/index.d.ts +292 -14
- package/dist/index.mjs +535 -12
- package/dist/index.mjs.map +1 -1
- package/dist/shadcn-zod-formkit-1.26.0.tgz +0 -0
- package/package.json +1 -1
- package/dist/shadcn-zod-formkit-1.24.0.tgz +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -8,29 +8,33 @@ import { LucideProps } from 'lucide-react';
|
|
|
8
8
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
9
9
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
10
10
|
import { VariantProps } from 'class-variance-authority';
|
|
11
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
11
12
|
import { DayPicker, DayButton } from 'react-day-picker';
|
|
12
13
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
14
|
+
import { Command as Command$1 } from 'cmdk';
|
|
13
15
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
14
16
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
15
17
|
import { Slot } from '@radix-ui/react-slot';
|
|
16
18
|
import { OTPInput as OTPInput$1 } from 'input-otp';
|
|
17
19
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
20
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
18
21
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
19
22
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
20
23
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
21
|
-
import * as
|
|
24
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
22
25
|
import { ToasterProps } from 'sonner';
|
|
23
26
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
27
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
24
28
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
25
29
|
import { ClassValue } from 'clsx';
|
|
26
30
|
|
|
27
|
-
interface Props$
|
|
31
|
+
interface Props$i {
|
|
28
32
|
title: string;
|
|
29
33
|
description: string | ReactNode;
|
|
30
34
|
className?: string;
|
|
31
35
|
variant?: "info" | "warning" | "error" | "success";
|
|
32
36
|
}
|
|
33
|
-
declare const CustomAlert: ({ title, description, className, variant, }: Props$
|
|
37
|
+
declare const CustomAlert: ({ title, description, className, variant, }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
34
38
|
|
|
35
39
|
declare const validationMessages: {
|
|
36
40
|
required: string;
|
|
@@ -74,7 +78,8 @@ declare enum InputTypes {
|
|
|
74
78
|
MULTI_SELECT = "multi_select",
|
|
75
79
|
COMBOBOX = "COMBO_BOX",
|
|
76
80
|
SORTABLE_LIST = "sortable_list",
|
|
77
|
-
REPEATER_TABS = "repeater_tabs"
|
|
81
|
+
REPEATER_TABS = "repeater_tabs",
|
|
82
|
+
STRING_LIST = "string_list"
|
|
78
83
|
}
|
|
79
84
|
declare const inputFieldComp: InputTypes[];
|
|
80
85
|
|
|
@@ -83,6 +88,7 @@ type FieldConfig<T, RT = Record<string, any>> = FieldProps<T, RT> | FieldConfig<
|
|
|
83
88
|
interface FieldProps<T = Record<string, any>, RT = Record<string, any>> {
|
|
84
89
|
name: keyof T;
|
|
85
90
|
label: string;
|
|
91
|
+
isRemovebleOption?: boolean;
|
|
86
92
|
withDuplicatTag?: boolean;
|
|
87
93
|
onChange?: (...event: any[]) => void;
|
|
88
94
|
tabLabelField?: string;
|
|
@@ -207,7 +213,7 @@ interface FormResp<T> {
|
|
|
207
213
|
form?: UseFormReturn<any>;
|
|
208
214
|
data: T;
|
|
209
215
|
}
|
|
210
|
-
interface Props$
|
|
216
|
+
interface Props$h<T extends Record<string, any>> {
|
|
211
217
|
showIcon?: boolean;
|
|
212
218
|
showFormHeader?: boolean;
|
|
213
219
|
formTitle: string;
|
|
@@ -231,16 +237,32 @@ interface Props$4<T extends Record<string, any>> {
|
|
|
231
237
|
childrenHeader?: ReactNode;
|
|
232
238
|
listBtnConfig?: BtnConfig[];
|
|
233
239
|
}
|
|
234
|
-
declare const DynamicForm: <T extends Record<string, any>>({ formTitle, formSubTitle, fields, readOnly, record, onSubmit, onClick, extraValidations, children, childrenHeader, showIcon, showFormHeader, withErrorsAlert, errorAlertPosition, withCard, submitBtnClass, listBtnConfig, submitBtnLabel, submitBtnLabelSubmiting, withFormWrapper, btnGroupDirection, withSubmitBtn }: Props$
|
|
240
|
+
declare const DynamicForm: <T extends Record<string, any>>({ formTitle, formSubTitle, fields, readOnly, record, onSubmit, onClick, extraValidations, children, childrenHeader, showIcon, showFormHeader, withErrorsAlert, errorAlertPosition, withCard, submitBtnClass, listBtnConfig, submitBtnLabel, submitBtnLabelSubmiting, withFormWrapper, btnGroupDirection, withSubmitBtn }: Props$h<T>) => react_jsx_runtime.JSX.Element;
|
|
235
241
|
|
|
236
242
|
declare const DynamicFormExample: () => react_jsx_runtime.JSX.Element;
|
|
237
243
|
declare const mockFields: Array<FieldProps | FieldProps[]>;
|
|
238
244
|
|
|
239
|
-
interface Props$
|
|
245
|
+
interface Props$g<T extends Record<string, any> = Record<string, any>> {
|
|
246
|
+
fields: FieldConfig<T>[];
|
|
247
|
+
form: UseFormReturn<any>;
|
|
248
|
+
readOnly?: boolean;
|
|
249
|
+
isPending?: boolean;
|
|
250
|
+
className?: string;
|
|
251
|
+
gap?: string;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* 📋 FormFieldsGrid
|
|
255
|
+
* Componente reutilizable para renderizar campos en una cuadrícula flexible.
|
|
256
|
+
* - Si un elemento del arreglo es un solo FieldProps → muestra en una línea.
|
|
257
|
+
* - Si es un arreglo de FieldProps → los muestra en una misma fila.
|
|
258
|
+
*/
|
|
259
|
+
declare const FormFieldsGrid: <T extends Record<string, any> = Record<string, any>>({ fields, form, isPending, readOnly, className, gap, }: Props$g<T>) => JSX.Element;
|
|
260
|
+
|
|
261
|
+
interface Props$f<T extends FieldValues = Record<string, any>> {
|
|
240
262
|
formState: FormState<any>;
|
|
241
263
|
fields: FieldConfig<T>[];
|
|
242
264
|
}
|
|
243
|
-
declare const FormErrorsAlert: <T extends FieldValues = Record<string, any>>({ formState, fields, }: Props$
|
|
265
|
+
declare const FormErrorsAlert: <T extends FieldValues = Record<string, any>>({ formState, fields, }: Props$f<T>) => react_jsx_runtime.JSX.Element;
|
|
244
266
|
declare const getFieldLabel: <T extends FieldValues>(fieldErrorKey: string, fields: ReadonlyArray<FieldProps<T>>) => string;
|
|
245
267
|
|
|
246
268
|
declare class InputFactory {
|
|
@@ -249,10 +271,37 @@ declare class InputFactory {
|
|
|
249
271
|
declare function getDefaultValues<T extends Record<string, any>>(entity?: Partial<T>, fields?: FieldConfig<T>[]): Record<string, any>;
|
|
250
272
|
declare const getDynamicSchema: <T extends Record<string, any>>(fields: FieldConfig<T>[], extraValidations?: ((schema: ZodObject<any>) => ZodObject<any>)[]) => ZodObject<Record<keyof T, ZodTypeAny>>;
|
|
251
273
|
|
|
274
|
+
declare class AccordionGroupedSwitchInput extends BaseInput {
|
|
275
|
+
render(): JSX.Element;
|
|
276
|
+
}
|
|
277
|
+
interface Props$e {
|
|
278
|
+
form: UseFormReturn;
|
|
279
|
+
input: FieldProps;
|
|
280
|
+
groups?: GroupedOption[];
|
|
281
|
+
isSubmitting?: boolean;
|
|
282
|
+
onChange?: (optionsUpdated: InputOption[]) => void;
|
|
283
|
+
}
|
|
284
|
+
declare const AccordionGroupedSwitches: ({ form, input, groups, onChange, isSubmitting }: Props$e) => react_jsx_runtime.JSX.Element;
|
|
285
|
+
|
|
286
|
+
declare class ButtonGroupInput extends BaseInput {
|
|
287
|
+
render(): JSX.Element;
|
|
288
|
+
}
|
|
289
|
+
interface Props$d {
|
|
290
|
+
input: FieldProps;
|
|
291
|
+
form: UseFormReturn;
|
|
292
|
+
isSubmitting?: boolean;
|
|
293
|
+
className?: string;
|
|
294
|
+
}
|
|
295
|
+
declare const FieldButtonGroup: ({ input, form, isSubmitting, className }: Props$d) => react_jsx_runtime.JSX.Element;
|
|
296
|
+
|
|
252
297
|
declare class CheckListInput extends BaseInput {
|
|
253
298
|
render(): JSX.Element;
|
|
254
299
|
}
|
|
255
300
|
|
|
301
|
+
declare class CheckboxInput extends BaseInput {
|
|
302
|
+
render(): JSX.Element;
|
|
303
|
+
}
|
|
304
|
+
|
|
256
305
|
declare class ColorInput extends BaseInput {
|
|
257
306
|
render(): JSX.Element;
|
|
258
307
|
}
|
|
@@ -267,24 +316,79 @@ interface ColorCompProps {
|
|
|
267
316
|
hideInput?: HideInputOption[];
|
|
268
317
|
}
|
|
269
318
|
|
|
319
|
+
declare class ComboboxInput extends BaseInput {
|
|
320
|
+
render(): react_jsx_runtime.JSX.Element;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
declare class CurrencyInput extends BaseInput {
|
|
324
|
+
render(): JSX.Element;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Campo numérico con formato monetario.
|
|
328
|
+
* Acepta solo números y el punto mientras se edita.
|
|
329
|
+
*/
|
|
330
|
+
interface Props$c {
|
|
331
|
+
form: UseFormReturn;
|
|
332
|
+
input: FieldProps;
|
|
333
|
+
isSubmitting?: boolean;
|
|
334
|
+
}
|
|
335
|
+
declare const FieldCurrency: ({ form, input, isSubmitting }: Props$c) => JSX.Element;
|
|
336
|
+
|
|
270
337
|
declare class DateInput extends BaseInput {
|
|
271
338
|
render(): JSX.Element;
|
|
272
339
|
}
|
|
273
340
|
|
|
341
|
+
declare class DateTimeInput extends BaseInput {
|
|
342
|
+
render(): JSX.Element;
|
|
343
|
+
}
|
|
344
|
+
interface Props$b {
|
|
345
|
+
form: UseFormReturn;
|
|
346
|
+
input: FieldProps;
|
|
347
|
+
isSubmitting?: boolean;
|
|
348
|
+
}
|
|
349
|
+
declare const FieldDateTimeInput: ({ form, input, isSubmitting }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
350
|
+
|
|
274
351
|
declare class FileInput extends BaseInput {
|
|
275
352
|
render(): JSX.Element;
|
|
276
353
|
}
|
|
277
354
|
|
|
355
|
+
declare class FileMultiUploadInput extends BaseInput {
|
|
356
|
+
render(): JSX.Element;
|
|
357
|
+
}
|
|
358
|
+
interface Props$a {
|
|
359
|
+
form: UseFormReturn;
|
|
360
|
+
input: FieldProps;
|
|
361
|
+
isSubmitting?: boolean;
|
|
362
|
+
}
|
|
363
|
+
declare const FieldFileMultiUpload: ({ input, form, isSubmitting }: Props$a) => react_jsx_runtime.JSX.Element;
|
|
364
|
+
|
|
278
365
|
declare class GroupedSwitchInput extends BaseInput {
|
|
279
366
|
render(): JSX.Element;
|
|
280
367
|
}
|
|
281
|
-
interface Props$
|
|
368
|
+
interface Props$9 {
|
|
282
369
|
input: FieldProps;
|
|
283
370
|
options?: InputOption[];
|
|
284
371
|
isSubmitting?: boolean;
|
|
285
372
|
onChange?: (optionsUpdated: InputOption[]) => void;
|
|
286
373
|
}
|
|
287
|
-
declare const GroupedSwitches: ({ options, onChange, input, isSubmitting }: Props$
|
|
374
|
+
declare const GroupedSwitches: ({ options, onChange, input, isSubmitting }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
375
|
+
|
|
376
|
+
declare class KeyValueListInput extends BaseInput {
|
|
377
|
+
render(): JSX.Element;
|
|
378
|
+
}
|
|
379
|
+
interface Props$8 {
|
|
380
|
+
form: UseFormReturn;
|
|
381
|
+
input: FieldProps;
|
|
382
|
+
isSubmitting?: boolean;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* 🧠 Lista editable de pares clave-valor
|
|
386
|
+
*/
|
|
387
|
+
declare const FieldKeyValueList: ({ form, input, isSubmitting }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
388
|
+
|
|
389
|
+
declare class MultiSelectInput extends BaseInput {
|
|
390
|
+
render(): react_jsx_runtime.JSX.Element;
|
|
391
|
+
}
|
|
288
392
|
|
|
289
393
|
declare class NumberInput extends BaseInput {
|
|
290
394
|
render(): JSX.Element;
|
|
@@ -294,28 +398,133 @@ declare class OTPInput extends BaseInput {
|
|
|
294
398
|
render(): JSX.Element;
|
|
295
399
|
}
|
|
296
400
|
|
|
401
|
+
declare class RadioGroupInput extends BaseInput {
|
|
402
|
+
render(): JSX.Element;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
declare class RepeaterInput extends BaseInput {
|
|
406
|
+
render(): JSX.Element;
|
|
407
|
+
}
|
|
408
|
+
interface Props$7 {
|
|
409
|
+
form: UseFormReturn;
|
|
410
|
+
input: FieldProps;
|
|
411
|
+
isSubmitting?: boolean;
|
|
412
|
+
}
|
|
413
|
+
declare const FieldRepeater: ({ form, input, isSubmitting }: Props$7) => react_jsx_runtime.JSX.Element;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* 🧱 Clase que extiende BaseInput
|
|
417
|
+
* Se usa igual que tus otros inputs (TextInput, SelectInput, etc.)
|
|
418
|
+
*/
|
|
419
|
+
declare class RepeaterTabsInput extends BaseInput {
|
|
420
|
+
render(): JSX.Element;
|
|
421
|
+
}
|
|
422
|
+
|
|
297
423
|
declare class SelectInput extends BaseInput {
|
|
298
424
|
render(): react_jsx_runtime.JSX.Element;
|
|
299
425
|
}
|
|
300
426
|
|
|
427
|
+
declare class SimpleCheckListInput extends BaseInput {
|
|
428
|
+
render(): JSX.Element;
|
|
429
|
+
}
|
|
430
|
+
interface Props$6 {
|
|
431
|
+
input: FieldProps;
|
|
432
|
+
value: InputOption[];
|
|
433
|
+
isSubmitting?: boolean;
|
|
434
|
+
onChange: (value: InputOption[]) => void;
|
|
435
|
+
}
|
|
436
|
+
declare const FieldSimpleCheckList: ({ input, value, onChange, isSubmitting }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
437
|
+
|
|
438
|
+
declare class SliderInput extends BaseInput {
|
|
439
|
+
render(): JSX.Element;
|
|
440
|
+
}
|
|
441
|
+
interface Props$5 {
|
|
442
|
+
form: UseFormReturn;
|
|
443
|
+
input: FieldProps;
|
|
444
|
+
isSubmitting?: boolean;
|
|
445
|
+
}
|
|
446
|
+
declare const FieldSlider: ({ input, form, isSubmitting }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
447
|
+
|
|
448
|
+
declare class SortableListInput<T> extends BaseInput {
|
|
449
|
+
render(): JSX.Element;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare class StringValueListInput extends BaseInput {
|
|
453
|
+
render(): JSX.Element;
|
|
454
|
+
}
|
|
455
|
+
interface Props$4 {
|
|
456
|
+
form: UseFormReturn;
|
|
457
|
+
input: FieldProps;
|
|
458
|
+
isSubmitting?: boolean;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* 🧠 Lista editable de strings
|
|
462
|
+
*/
|
|
463
|
+
declare const FieldStringValueList: ({ form, input, isSubmitting }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
464
|
+
|
|
301
465
|
declare class SwitchInput extends BaseInput {
|
|
302
466
|
render(): JSX.Element;
|
|
303
467
|
}
|
|
304
468
|
|
|
469
|
+
declare class TagInput extends BaseInput {
|
|
470
|
+
render(): JSX.Element;
|
|
471
|
+
}
|
|
472
|
+
|
|
305
473
|
declare class TextAreaInput extends BaseInput {
|
|
306
474
|
render(): JSX.Element;
|
|
307
475
|
}
|
|
308
476
|
|
|
477
|
+
declare class TextInputGroup extends BaseInput {
|
|
478
|
+
render(): JSX.Element;
|
|
479
|
+
}
|
|
480
|
+
interface Props$3 {
|
|
481
|
+
form: UseFormReturn;
|
|
482
|
+
input: FieldProps;
|
|
483
|
+
isSubmitting?: boolean;
|
|
484
|
+
}
|
|
485
|
+
declare const FieldTextGroup: ({ form, input, isSubmitting }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
486
|
+
|
|
309
487
|
declare class TextInput extends BaseInput {
|
|
310
488
|
render(): JSX.Element;
|
|
311
489
|
}
|
|
312
490
|
|
|
491
|
+
declare class TimeInput extends BaseInput {
|
|
492
|
+
render(): JSX.Element;
|
|
493
|
+
}
|
|
494
|
+
interface Props$2 {
|
|
495
|
+
form: UseFormReturn;
|
|
496
|
+
input: FieldProps;
|
|
497
|
+
isSubmitting?: boolean;
|
|
498
|
+
}
|
|
499
|
+
declare const FieldTimeInput: ({ form, input, isSubmitting }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
500
|
+
|
|
313
501
|
interface Props$1 {
|
|
314
502
|
handleAddInput: (type: InputTypes, config?: InputSetup) => void;
|
|
315
503
|
inputsTypes: InputTypes[];
|
|
316
504
|
}
|
|
317
505
|
declare const InputList: ({ handleAddInput, inputsTypes, }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
318
506
|
|
|
507
|
+
interface GenericFilterProps<T> {
|
|
508
|
+
filters?: Array<FieldProps | FieldProps[]>;
|
|
509
|
+
pagination?: boolean;
|
|
510
|
+
autoSubmit?: boolean;
|
|
511
|
+
defaultValues?: Record<string, any>;
|
|
512
|
+
initPage?: number;
|
|
513
|
+
initLimit?: number;
|
|
514
|
+
onChange?: (values: Record<string, any>) => void;
|
|
515
|
+
rangeLimit?: number[];
|
|
516
|
+
withSearch?: boolean;
|
|
517
|
+
withInitDate?: boolean;
|
|
518
|
+
withEndDate?: boolean;
|
|
519
|
+
withActive?: boolean;
|
|
520
|
+
withLimit?: boolean;
|
|
521
|
+
wrapInCard?: boolean;
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* ✅ Componente genérico y dinámico de filtro
|
|
525
|
+
*/
|
|
526
|
+
declare const GenericFilter: <T>({ filters, pagination, autoSubmit, defaultValues, initPage, initLimit, rangeLimit, onChange, withSearch, withInitDate, withEndDate, withActive, withLimit, wrapInCard, }: GenericFilterProps<T>) => react_jsx_runtime.JSX.Element;
|
|
527
|
+
|
|
319
528
|
declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
320
529
|
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
321
530
|
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
@@ -335,6 +544,17 @@ declare function Badge({ className, variant, asChild, ...props }: React$1.Compon
|
|
|
335
544
|
asChild?: boolean;
|
|
336
545
|
}): react_jsx_runtime.JSX.Element;
|
|
337
546
|
|
|
547
|
+
declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
548
|
+
|
|
549
|
+
declare const buttonGroupVariants: (props?: ({
|
|
550
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
551
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
552
|
+
declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): react_jsx_runtime.JSX.Element;
|
|
553
|
+
declare function ButtonGroupText({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
554
|
+
asChild?: boolean;
|
|
555
|
+
}): react_jsx_runtime.JSX.Element;
|
|
556
|
+
declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
557
|
+
|
|
338
558
|
declare const buttonVariants: (props?: ({
|
|
339
559
|
variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
340
560
|
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
@@ -381,6 +601,45 @@ declare function DialogFooter({ className, ...props }: React$1.ComponentProps<"d
|
|
|
381
601
|
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
382
602
|
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
383
603
|
|
|
604
|
+
declare function Command({ className, ...props }: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
605
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React$1.ComponentProps<typeof Dialog> & {
|
|
606
|
+
title?: string;
|
|
607
|
+
description?: string;
|
|
608
|
+
className?: string;
|
|
609
|
+
showCloseButton?: boolean;
|
|
610
|
+
}): react_jsx_runtime.JSX.Element;
|
|
611
|
+
declare function CommandInput({ className, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
612
|
+
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
613
|
+
declare function CommandEmpty({ ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
614
|
+
declare function CommandGroup({ className, ...props }: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
615
|
+
declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
616
|
+
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
617
|
+
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
618
|
+
|
|
619
|
+
declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
620
|
+
|
|
621
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
|
|
622
|
+
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
623
|
+
variant?: "legend" | "label";
|
|
624
|
+
}): react_jsx_runtime.JSX.Element;
|
|
625
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
626
|
+
declare const fieldVariants: (props?: ({
|
|
627
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
628
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
629
|
+
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime.JSX.Element;
|
|
630
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
631
|
+
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): react_jsx_runtime.JSX.Element;
|
|
632
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
633
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
634
|
+
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
635
|
+
children?: React.ReactNode;
|
|
636
|
+
}): react_jsx_runtime.JSX.Element;
|
|
637
|
+
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
638
|
+
errors?: Array<{
|
|
639
|
+
message?: string;
|
|
640
|
+
} | undefined>;
|
|
641
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
642
|
+
|
|
384
643
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
385
644
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
386
645
|
declare const useFormField: () => {
|
|
@@ -401,6 +660,19 @@ declare function FormControl({ ...props }: React$1.ComponentProps<typeof Slot>):
|
|
|
401
660
|
declare function FormDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
402
661
|
declare function FormMessage({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element | null;
|
|
403
662
|
|
|
663
|
+
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
664
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
665
|
+
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
666
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
667
|
+
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
668
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
669
|
+
size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;
|
|
670
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
671
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React$1.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
672
|
+
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
673
|
+
declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
674
|
+
declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
|
|
675
|
+
|
|
404
676
|
declare function InputOTP({ className, containerClassName, ...props }: React$1.ComponentProps<typeof OTPInput$1> & {
|
|
405
677
|
containerClassName?: string;
|
|
406
678
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -412,13 +684,14 @@ declare function InputOTPSeparator({ ...props }: React$1.ComponentProps<"div">):
|
|
|
412
684
|
|
|
413
685
|
declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
414
686
|
|
|
415
|
-
declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
416
|
-
|
|
417
687
|
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
418
688
|
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
419
689
|
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
420
690
|
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
421
691
|
|
|
692
|
+
declare function RadioGroup({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
693
|
+
declare function RadioGroupItem({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
694
|
+
|
|
422
695
|
declare function ResizablePanelGroup({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>): react_jsx_runtime.JSX.Element;
|
|
423
696
|
declare function ResizablePanel({ ...props }: React$1.ComponentProps<typeof ResizablePrimitive.Panel>): react_jsx_runtime.JSX.Element;
|
|
424
697
|
declare function ResizableHandle({ withHandle, className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
@@ -441,12 +714,17 @@ declare function SelectSeparator({ className, ...props }: React$1.ComponentProps
|
|
|
441
714
|
declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
442
715
|
declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
443
716
|
|
|
444
|
-
declare function
|
|
717
|
+
declare function Slider({ className, defaultValue, value, min, max, ...props }: React$1.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
445
718
|
|
|
446
719
|
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
447
720
|
|
|
448
721
|
declare function Switch({ className, ...props }: React$1.ComponentProps<typeof SwitchPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
449
722
|
|
|
723
|
+
declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
724
|
+
declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
725
|
+
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
726
|
+
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
727
|
+
|
|
450
728
|
declare function Textarea({ className, ...props }: React$1.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
|
|
451
729
|
|
|
452
730
|
declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
|
|
@@ -456,4 +734,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
|
|
|
456
734
|
|
|
457
735
|
declare function cn(...inputs: ClassValue[]): string;
|
|
458
736
|
|
|
459
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, BaseInput, type BtnConfig, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckListInput, Checkbox, ColorCnInput, type ColorCompProps, ColorInput, CustomAlert, DateInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DynamicForm, DynamicFormExample, type FieldConfig, type FieldProps, FileInput, Form, FormControl, FormDescription, FormErrorsAlert, FormField, FormItem, FormLabel, FormMessage, type FormResp, type GroupedOption, GroupedSwitchInput, GroupedSwitches, Input, InputFactory, InputList, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputOption, type InputSetup, InputTypes, Label, NumberInput, OTPInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type Props, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectInput, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Switch, SwitchInput, TextAreaInput, TextInput, TextInputType, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, entitiesToGroupedOption, entitiesToInputOption, entityToGroupedOption, entityToInputOption, flattenFields, getDefaultValues, getDynamicSchema, getFieldLabel, handleOnChage, inputFieldComp, mockFields, useFormField, validationMessages };
|
|
737
|
+
export { Accordion, AccordionContent, AccordionGroupedSwitchInput, AccordionGroupedSwitches, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, Badge, BaseInput, type BtnConfig, Button, ButtonGroup, ButtonGroupInput, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckListInput, Checkbox, CheckboxInput, ColorCnInput, type ColorCompProps, ColorInput, ComboboxInput, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CurrencyInput, CustomAlert, DateInput, DateTimeInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DynamicForm, DynamicFormExample, Field, FieldButtonGroup, type FieldConfig, FieldContent, FieldCurrency, FieldDateTimeInput, FieldDescription, FieldError, FieldFileMultiUpload, FieldGroup, FieldKeyValueList, FieldLabel, FieldLegend, type FieldProps, FieldRepeater, FieldSeparator, FieldSet, FieldSimpleCheckList, FieldSlider, FieldStringValueList, FieldTextGroup, FieldTimeInput, FieldTitle, FileInput, FileMultiUploadInput, Form, FormControl, FormDescription, FormErrorsAlert, FormField, FormFieldsGrid, FormItem, FormLabel, FormMessage, type FormResp, GenericFilter, type GroupedOption, GroupedSwitchInput, GroupedSwitches, Input, InputFactory, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputList, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputOption, type InputSetup, InputTypes, KeyValueListInput, Label, MultiSelectInput, NumberInput, OTPInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type Props, RadioGroup, RadioGroupInput, RadioGroupItem, RepeaterInput, RepeaterTabsInput, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectInput, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SimpleCheckListInput, Slider, SliderInput, SortableListInput, StringValueListInput, Switch, SwitchInput, Tabs, TabsContent, TabsList, TabsTrigger, TagInput, TextAreaInput, TextInput, TextInputGroup, TextInputType, Textarea, TimeInput, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonGroupVariants, buttonVariants, cn, entitiesToGroupedOption, entitiesToInputOption, entityToGroupedOption, entityToInputOption, flattenFields, getDefaultValues, getDynamicSchema, getFieldLabel, handleOnChage, inputFieldComp, mockFields, useFormField, validationMessages };
|