shadcn-zod-formkit 1.25.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 +499 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +289 -13
- package/dist/index.d.ts +289 -13
- package/dist/index.mjs +435 -11
- 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.25.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;
|
|
@@ -209,7 +213,7 @@ interface FormResp<T> {
|
|
|
209
213
|
form?: UseFormReturn<any>;
|
|
210
214
|
data: T;
|
|
211
215
|
}
|
|
212
|
-
interface Props$
|
|
216
|
+
interface Props$h<T extends Record<string, any>> {
|
|
213
217
|
showIcon?: boolean;
|
|
214
218
|
showFormHeader?: boolean;
|
|
215
219
|
formTitle: string;
|
|
@@ -233,16 +237,32 @@ interface Props$4<T extends Record<string, any>> {
|
|
|
233
237
|
childrenHeader?: ReactNode;
|
|
234
238
|
listBtnConfig?: BtnConfig[];
|
|
235
239
|
}
|
|
236
|
-
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;
|
|
237
241
|
|
|
238
242
|
declare const DynamicFormExample: () => react_jsx_runtime.JSX.Element;
|
|
239
243
|
declare const mockFields: Array<FieldProps | FieldProps[]>;
|
|
240
244
|
|
|
241
|
-
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>> {
|
|
242
262
|
formState: FormState<any>;
|
|
243
263
|
fields: FieldConfig<T>[];
|
|
244
264
|
}
|
|
245
|
-
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;
|
|
246
266
|
declare const getFieldLabel: <T extends FieldValues>(fieldErrorKey: string, fields: ReadonlyArray<FieldProps<T>>) => string;
|
|
247
267
|
|
|
248
268
|
declare class InputFactory {
|
|
@@ -251,10 +271,37 @@ declare class InputFactory {
|
|
|
251
271
|
declare function getDefaultValues<T extends Record<string, any>>(entity?: Partial<T>, fields?: FieldConfig<T>[]): Record<string, any>;
|
|
252
272
|
declare const getDynamicSchema: <T extends Record<string, any>>(fields: FieldConfig<T>[], extraValidations?: ((schema: ZodObject<any>) => ZodObject<any>)[]) => ZodObject<Record<keyof T, ZodTypeAny>>;
|
|
253
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
|
+
|
|
254
297
|
declare class CheckListInput extends BaseInput {
|
|
255
298
|
render(): JSX.Element;
|
|
256
299
|
}
|
|
257
300
|
|
|
301
|
+
declare class CheckboxInput extends BaseInput {
|
|
302
|
+
render(): JSX.Element;
|
|
303
|
+
}
|
|
304
|
+
|
|
258
305
|
declare class ColorInput extends BaseInput {
|
|
259
306
|
render(): JSX.Element;
|
|
260
307
|
}
|
|
@@ -269,24 +316,79 @@ interface ColorCompProps {
|
|
|
269
316
|
hideInput?: HideInputOption[];
|
|
270
317
|
}
|
|
271
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
|
+
|
|
272
337
|
declare class DateInput extends BaseInput {
|
|
273
338
|
render(): JSX.Element;
|
|
274
339
|
}
|
|
275
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
|
+
|
|
276
351
|
declare class FileInput extends BaseInput {
|
|
277
352
|
render(): JSX.Element;
|
|
278
353
|
}
|
|
279
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
|
+
|
|
280
365
|
declare class GroupedSwitchInput extends BaseInput {
|
|
281
366
|
render(): JSX.Element;
|
|
282
367
|
}
|
|
283
|
-
interface Props$
|
|
368
|
+
interface Props$9 {
|
|
284
369
|
input: FieldProps;
|
|
285
370
|
options?: InputOption[];
|
|
286
371
|
isSubmitting?: boolean;
|
|
287
372
|
onChange?: (optionsUpdated: InputOption[]) => void;
|
|
288
373
|
}
|
|
289
|
-
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
|
+
}
|
|
290
392
|
|
|
291
393
|
declare class NumberInput extends BaseInput {
|
|
292
394
|
render(): JSX.Element;
|
|
@@ -296,28 +398,133 @@ declare class OTPInput extends BaseInput {
|
|
|
296
398
|
render(): JSX.Element;
|
|
297
399
|
}
|
|
298
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
|
+
|
|
299
423
|
declare class SelectInput extends BaseInput {
|
|
300
424
|
render(): react_jsx_runtime.JSX.Element;
|
|
301
425
|
}
|
|
302
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
|
+
|
|
303
465
|
declare class SwitchInput extends BaseInput {
|
|
304
466
|
render(): JSX.Element;
|
|
305
467
|
}
|
|
306
468
|
|
|
469
|
+
declare class TagInput extends BaseInput {
|
|
470
|
+
render(): JSX.Element;
|
|
471
|
+
}
|
|
472
|
+
|
|
307
473
|
declare class TextAreaInput extends BaseInput {
|
|
308
474
|
render(): JSX.Element;
|
|
309
475
|
}
|
|
310
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
|
+
|
|
311
487
|
declare class TextInput extends BaseInput {
|
|
312
488
|
render(): JSX.Element;
|
|
313
489
|
}
|
|
314
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
|
+
|
|
315
501
|
interface Props$1 {
|
|
316
502
|
handleAddInput: (type: InputTypes, config?: InputSetup) => void;
|
|
317
503
|
inputsTypes: InputTypes[];
|
|
318
504
|
}
|
|
319
505
|
declare const InputList: ({ handleAddInput, inputsTypes, }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
320
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
|
+
|
|
321
528
|
declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
322
529
|
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
323
530
|
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
@@ -337,6 +544,17 @@ declare function Badge({ className, variant, asChild, ...props }: React$1.Compon
|
|
|
337
544
|
asChild?: boolean;
|
|
338
545
|
}): react_jsx_runtime.JSX.Element;
|
|
339
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
|
+
|
|
340
558
|
declare const buttonVariants: (props?: ({
|
|
341
559
|
variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
342
560
|
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
@@ -383,6 +601,45 @@ declare function DialogFooter({ className, ...props }: React$1.ComponentProps<"d
|
|
|
383
601
|
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
384
602
|
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
385
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
|
+
|
|
386
643
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
387
644
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
388
645
|
declare const useFormField: () => {
|
|
@@ -403,6 +660,19 @@ declare function FormControl({ ...props }: React$1.ComponentProps<typeof Slot>):
|
|
|
403
660
|
declare function FormDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
404
661
|
declare function FormMessage({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element | null;
|
|
405
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
|
+
|
|
406
676
|
declare function InputOTP({ className, containerClassName, ...props }: React$1.ComponentProps<typeof OTPInput$1> & {
|
|
407
677
|
containerClassName?: string;
|
|
408
678
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -414,13 +684,14 @@ declare function InputOTPSeparator({ ...props }: React$1.ComponentProps<"div">):
|
|
|
414
684
|
|
|
415
685
|
declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element;
|
|
416
686
|
|
|
417
|
-
declare function Label({ className, ...props }: React$1.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
418
|
-
|
|
419
687
|
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
420
688
|
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
421
689
|
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
422
690
|
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
423
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
|
+
|
|
424
695
|
declare function ResizablePanelGroup({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>): react_jsx_runtime.JSX.Element;
|
|
425
696
|
declare function ResizablePanel({ ...props }: React$1.ComponentProps<typeof ResizablePrimitive.Panel>): react_jsx_runtime.JSX.Element;
|
|
426
697
|
declare function ResizableHandle({ withHandle, className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
@@ -443,12 +714,17 @@ declare function SelectSeparator({ className, ...props }: React$1.ComponentProps
|
|
|
443
714
|
declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
444
715
|
declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
445
716
|
|
|
446
|
-
declare function
|
|
717
|
+
declare function Slider({ className, defaultValue, value, min, max, ...props }: React$1.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
447
718
|
|
|
448
719
|
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
449
720
|
|
|
450
721
|
declare function Switch({ className, ...props }: React$1.ComponentProps<typeof SwitchPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
451
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
|
+
|
|
452
728
|
declare function Textarea({ className, ...props }: React$1.ComponentProps<"textarea">): react_jsx_runtime.JSX.Element;
|
|
453
729
|
|
|
454
730
|
declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
|
|
@@ -458,4 +734,4 @@ declare function TooltipContent({ className, sideOffset, children, ...props }: R
|
|
|
458
734
|
|
|
459
735
|
declare function cn(...inputs: ClassValue[]): string;
|
|
460
736
|
|
|
461
|
-
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 };
|