shadcn-ui-react 0.7.7 → 0.7.8
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 +1087 -874
- package/dist/index.d.cts +38 -19
- package/dist/index.d.ts +38 -19
- package/dist/index.js +1089 -871
- package/dist/style.css +67 -3
- package/package.json +6 -5
package/dist/index.d.cts
CHANGED
|
@@ -409,9 +409,34 @@ declare const FormCheckbox: {
|
|
|
409
409
|
displayName: string;
|
|
410
410
|
};
|
|
411
411
|
|
|
412
|
+
type SelectOption<TData = unknown> = {
|
|
413
|
+
value: string;
|
|
414
|
+
label: React$1.ReactNode;
|
|
415
|
+
disabled?: boolean;
|
|
416
|
+
data?: TData;
|
|
417
|
+
};
|
|
418
|
+
type FormInputVariantProps = "outline" | "soft" | "ghost" | "filled" | "flushed" | "unstyled" | "link";
|
|
419
|
+
declare const formInputVariants: Record<FormInputVariantProps, string>;
|
|
420
|
+
type InputVariant = keyof typeof formInputVariants;
|
|
421
|
+
type SizeProps$1 = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
422
|
+
type VariantProps = InputVariant;
|
|
423
|
+
type SizeClasses = {
|
|
424
|
+
control: string;
|
|
425
|
+
flushedControl: string;
|
|
426
|
+
linkControl: string;
|
|
427
|
+
selectItem: string;
|
|
428
|
+
searchInput: string;
|
|
429
|
+
checkbox: string;
|
|
430
|
+
label: string;
|
|
431
|
+
description: string;
|
|
432
|
+
message: string;
|
|
433
|
+
};
|
|
434
|
+
type CustomSize = Partial<SizeClasses>;
|
|
435
|
+
|
|
412
436
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
413
|
-
size?:
|
|
414
|
-
|
|
437
|
+
size?: SizeProps$1;
|
|
438
|
+
customSize?: CustomSize;
|
|
439
|
+
variant?: VariantProps;
|
|
415
440
|
leading?: React$1.ReactNode;
|
|
416
441
|
trailing?: React$1.ReactNode;
|
|
417
442
|
invalid?: boolean;
|
|
@@ -421,29 +446,18 @@ interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>,
|
|
|
421
446
|
}
|
|
422
447
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
423
448
|
|
|
424
|
-
type
|
|
425
|
-
value: string;
|
|
426
|
-
label: React$1.ReactNode;
|
|
427
|
-
disabled?: boolean;
|
|
428
|
-
data?: TData;
|
|
429
|
-
};
|
|
430
|
-
type InputVariantProps = "outline" | "soft" | "ghost" | "filled" | "flushed" | "unstyled" | "link";
|
|
431
|
-
declare const inputVariants: Record<InputVariantProps, string>;
|
|
432
|
-
type InputVariant = keyof typeof inputVariants;
|
|
433
|
-
declare const variants: Record<InputVariant, string>;
|
|
434
|
-
type SizeProps$1 = "sm" | "md" | "lg";
|
|
435
|
-
type VariantProps = InputVariant;
|
|
436
|
-
type FieldRules<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = Omit<RegisterOptions<TFieldValues, TName>, "valueAsNumber" | "valueAsDate" | "setValueAs" | "disabled" | "size">;
|
|
449
|
+
type FieldRules$1<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = Omit<RegisterOptions<TFieldValues, TName>, "valueAsNumber" | "valueAsDate" | "setValueAs" | "disabled" | "size">;
|
|
437
450
|
type CustomFormFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = {
|
|
438
451
|
name: TName;
|
|
439
452
|
control?: Control<TFieldValues>;
|
|
440
|
-
rules?: FieldRules<TFieldValues, TName>;
|
|
453
|
+
rules?: FieldRules$1<TFieldValues, TName>;
|
|
441
454
|
shouldUnregister?: boolean;
|
|
442
455
|
defaultValue?: FieldPathValue<TFieldValues, TName>;
|
|
443
456
|
label?: React$1.ReactNode;
|
|
444
457
|
requiredLabel?: boolean;
|
|
445
458
|
placeholder?: string;
|
|
446
459
|
size?: SizeProps$1;
|
|
460
|
+
customSize?: CustomSize;
|
|
447
461
|
variant?: VariantProps;
|
|
448
462
|
leading?: React$1.ReactNode;
|
|
449
463
|
trailing?: React$1.ReactNode;
|
|
@@ -457,7 +471,7 @@ type CustomFormFieldProps<TFieldValues extends FieldValues, TName extends FieldP
|
|
|
457
471
|
onChange?: (value: string) => void;
|
|
458
472
|
} & Omit<InputProps, "name" | "defaultValue" | "size" | "value" | "onChange">;
|
|
459
473
|
declare const FormField: {
|
|
460
|
-
<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ name, control, label, placeholder, requiredLabel, className, classNameDefault, itemClassName, labelClassName, messageClassName, requiredLabelClassName, variant, size, rules, shouldUnregister, defaultValue, leading, trailing, invalid, onChange, ...inputProps }: CustomFormFieldProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
474
|
+
<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ name, control, label, placeholder, requiredLabel, className, classNameDefault, itemClassName, labelClassName, messageClassName, requiredLabelClassName, variant, size, customSize, rules, shouldUnregister, defaultValue, leading, trailing, invalid, onChange, ...inputProps }: CustomFormFieldProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
461
475
|
displayName: string;
|
|
462
476
|
};
|
|
463
477
|
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -483,6 +497,8 @@ declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.L
|
|
|
483
497
|
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
484
498
|
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
485
499
|
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
500
|
+
|
|
501
|
+
type FieldRules<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled' | 'size'>;
|
|
486
502
|
type CustomFormSelectProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>, TItem = SelectOption> = {
|
|
487
503
|
name: TName;
|
|
488
504
|
control?: Control<TFieldValues>;
|
|
@@ -503,6 +519,7 @@ type CustomFormSelectProps<TFieldValues extends FieldValues, TName extends Field
|
|
|
503
519
|
onChangeItem?: (item: TItem | null) => void;
|
|
504
520
|
disabled?: boolean;
|
|
505
521
|
size?: SizeProps$1;
|
|
522
|
+
customSize?: CustomSize;
|
|
506
523
|
variant?: VariantProps;
|
|
507
524
|
invalid?: boolean;
|
|
508
525
|
searchable?: boolean;
|
|
@@ -511,12 +528,14 @@ type CustomFormSelectProps<TFieldValues extends FieldValues, TName extends Field
|
|
|
511
528
|
className?: string;
|
|
512
529
|
itemClassName?: string;
|
|
513
530
|
contentClassName?: string;
|
|
531
|
+
searchInputClassName?: string;
|
|
514
532
|
labelClassName?: string;
|
|
515
533
|
messageClassName?: string;
|
|
516
534
|
requiredLabelClassName?: string;
|
|
535
|
+
position?: 'item-aligned' | 'popper';
|
|
517
536
|
};
|
|
518
537
|
declare const FormSelect: {
|
|
519
|
-
<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>, TItem = SelectOption
|
|
538
|
+
<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>, TItem = SelectOption>({ name, control, rules, shouldUnregister, defaultValue, placeholder, label, requiredLabel, className, itemClassName, contentClassName, searchInputClassName, labelClassName, messageClassName, requiredLabelClassName, options, items, getOptionValue, getOptionLabel, getOptionDisabled, getOptionData, children, onChange, onChangeItem, disabled, size, customSize, variant, invalid, searchable, searchPlaceholder, emptyText, position }: CustomFormSelectProps<TFieldValues, TName, TItem>): react_jsx_runtime.JSX.Element;
|
|
520
539
|
displayName: string;
|
|
521
540
|
};
|
|
522
541
|
|
|
@@ -1195,4 +1214,4 @@ declare function PaginationSection({ totalPosts, postsPerPage, currentPage, setC
|
|
|
1195
1214
|
|
|
1196
1215
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1197
1216
|
|
|
1198
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertModal, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type CustomFormFieldProps, type CustomFormSelectProps, DATA_TABLE_TEMPLATES, DataTable, type DataTableAccent, type DataTableProps, DataTableSkeleton, type DataTableSlots, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, type DropzoneProps, FileUpload, type FileUploadProps, Form, FormCheckbox, type FormCheckboxProps, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormProps, FormSelect, Heading, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, Icons, ImagePreview, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps,
|
|
1217
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertModal, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type CustomFormFieldProps, type CustomFormSelectProps, DATA_TABLE_TEMPLATES, DataTable, type DataTableAccent, type DataTableProps, DataTableSkeleton, type DataTableSlots, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, type DropzoneProps, FileUpload, type FileUploadProps, Form, FormCheckbox, type FormCheckboxProps, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormProps, FormSelect, Heading, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, Icons, ImagePreview, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHead, type PageHeadProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationNextLast, PaginationPrevious, PaginationPreviousLast, PaginationSection, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchInput, SearchableSelect, type SearchableSelectOption, type SearchableSelectProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarProvider, Skeleton, Slider, ToasterSonner as SonnerToaster, type SonnerToasterProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, ToasterSonner, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UiCheckbox, type UiCheckboxProps, UiInput, type UiInputProps, UiSelect, type UiSelectOption, type UiSelectProps, badgeVariants, buttonVariants, cn, iconButtonVariants, navigationMenuTriggerStyle, reducer, toast, toggleVariants, useFormField, useSidebar, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -409,9 +409,34 @@ declare const FormCheckbox: {
|
|
|
409
409
|
displayName: string;
|
|
410
410
|
};
|
|
411
411
|
|
|
412
|
+
type SelectOption<TData = unknown> = {
|
|
413
|
+
value: string;
|
|
414
|
+
label: React$1.ReactNode;
|
|
415
|
+
disabled?: boolean;
|
|
416
|
+
data?: TData;
|
|
417
|
+
};
|
|
418
|
+
type FormInputVariantProps = "outline" | "soft" | "ghost" | "filled" | "flushed" | "unstyled" | "link";
|
|
419
|
+
declare const formInputVariants: Record<FormInputVariantProps, string>;
|
|
420
|
+
type InputVariant = keyof typeof formInputVariants;
|
|
421
|
+
type SizeProps$1 = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
422
|
+
type VariantProps = InputVariant;
|
|
423
|
+
type SizeClasses = {
|
|
424
|
+
control: string;
|
|
425
|
+
flushedControl: string;
|
|
426
|
+
linkControl: string;
|
|
427
|
+
selectItem: string;
|
|
428
|
+
searchInput: string;
|
|
429
|
+
checkbox: string;
|
|
430
|
+
label: string;
|
|
431
|
+
description: string;
|
|
432
|
+
message: string;
|
|
433
|
+
};
|
|
434
|
+
type CustomSize = Partial<SizeClasses>;
|
|
435
|
+
|
|
412
436
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
413
|
-
size?:
|
|
414
|
-
|
|
437
|
+
size?: SizeProps$1;
|
|
438
|
+
customSize?: CustomSize;
|
|
439
|
+
variant?: VariantProps;
|
|
415
440
|
leading?: React$1.ReactNode;
|
|
416
441
|
trailing?: React$1.ReactNode;
|
|
417
442
|
invalid?: boolean;
|
|
@@ -421,29 +446,18 @@ interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>,
|
|
|
421
446
|
}
|
|
422
447
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
423
448
|
|
|
424
|
-
type
|
|
425
|
-
value: string;
|
|
426
|
-
label: React$1.ReactNode;
|
|
427
|
-
disabled?: boolean;
|
|
428
|
-
data?: TData;
|
|
429
|
-
};
|
|
430
|
-
type InputVariantProps = "outline" | "soft" | "ghost" | "filled" | "flushed" | "unstyled" | "link";
|
|
431
|
-
declare const inputVariants: Record<InputVariantProps, string>;
|
|
432
|
-
type InputVariant = keyof typeof inputVariants;
|
|
433
|
-
declare const variants: Record<InputVariant, string>;
|
|
434
|
-
type SizeProps$1 = "sm" | "md" | "lg";
|
|
435
|
-
type VariantProps = InputVariant;
|
|
436
|
-
type FieldRules<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = Omit<RegisterOptions<TFieldValues, TName>, "valueAsNumber" | "valueAsDate" | "setValueAs" | "disabled" | "size">;
|
|
449
|
+
type FieldRules$1<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = Omit<RegisterOptions<TFieldValues, TName>, "valueAsNumber" | "valueAsDate" | "setValueAs" | "disabled" | "size">;
|
|
437
450
|
type CustomFormFieldProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = {
|
|
438
451
|
name: TName;
|
|
439
452
|
control?: Control<TFieldValues>;
|
|
440
|
-
rules?: FieldRules<TFieldValues, TName>;
|
|
453
|
+
rules?: FieldRules$1<TFieldValues, TName>;
|
|
441
454
|
shouldUnregister?: boolean;
|
|
442
455
|
defaultValue?: FieldPathValue<TFieldValues, TName>;
|
|
443
456
|
label?: React$1.ReactNode;
|
|
444
457
|
requiredLabel?: boolean;
|
|
445
458
|
placeholder?: string;
|
|
446
459
|
size?: SizeProps$1;
|
|
460
|
+
customSize?: CustomSize;
|
|
447
461
|
variant?: VariantProps;
|
|
448
462
|
leading?: React$1.ReactNode;
|
|
449
463
|
trailing?: React$1.ReactNode;
|
|
@@ -457,7 +471,7 @@ type CustomFormFieldProps<TFieldValues extends FieldValues, TName extends FieldP
|
|
|
457
471
|
onChange?: (value: string) => void;
|
|
458
472
|
} & Omit<InputProps, "name" | "defaultValue" | "size" | "value" | "onChange">;
|
|
459
473
|
declare const FormField: {
|
|
460
|
-
<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ name, control, label, placeholder, requiredLabel, className, classNameDefault, itemClassName, labelClassName, messageClassName, requiredLabelClassName, variant, size, rules, shouldUnregister, defaultValue, leading, trailing, invalid, onChange, ...inputProps }: CustomFormFieldProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
474
|
+
<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>({ name, control, label, placeholder, requiredLabel, className, classNameDefault, itemClassName, labelClassName, messageClassName, requiredLabelClassName, variant, size, customSize, rules, shouldUnregister, defaultValue, leading, trailing, invalid, onChange, ...inputProps }: CustomFormFieldProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
461
475
|
displayName: string;
|
|
462
476
|
};
|
|
463
477
|
declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -483,6 +497,8 @@ declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.L
|
|
|
483
497
|
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
484
498
|
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
485
499
|
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
500
|
+
|
|
501
|
+
type FieldRules<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = Omit<RegisterOptions<TFieldValues, TName>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled' | 'size'>;
|
|
486
502
|
type CustomFormSelectProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>, TItem = SelectOption> = {
|
|
487
503
|
name: TName;
|
|
488
504
|
control?: Control<TFieldValues>;
|
|
@@ -503,6 +519,7 @@ type CustomFormSelectProps<TFieldValues extends FieldValues, TName extends Field
|
|
|
503
519
|
onChangeItem?: (item: TItem | null) => void;
|
|
504
520
|
disabled?: boolean;
|
|
505
521
|
size?: SizeProps$1;
|
|
522
|
+
customSize?: CustomSize;
|
|
506
523
|
variant?: VariantProps;
|
|
507
524
|
invalid?: boolean;
|
|
508
525
|
searchable?: boolean;
|
|
@@ -511,12 +528,14 @@ type CustomFormSelectProps<TFieldValues extends FieldValues, TName extends Field
|
|
|
511
528
|
className?: string;
|
|
512
529
|
itemClassName?: string;
|
|
513
530
|
contentClassName?: string;
|
|
531
|
+
searchInputClassName?: string;
|
|
514
532
|
labelClassName?: string;
|
|
515
533
|
messageClassName?: string;
|
|
516
534
|
requiredLabelClassName?: string;
|
|
535
|
+
position?: 'item-aligned' | 'popper';
|
|
517
536
|
};
|
|
518
537
|
declare const FormSelect: {
|
|
519
|
-
<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>, TItem = SelectOption
|
|
538
|
+
<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>, TItem = SelectOption>({ name, control, rules, shouldUnregister, defaultValue, placeholder, label, requiredLabel, className, itemClassName, contentClassName, searchInputClassName, labelClassName, messageClassName, requiredLabelClassName, options, items, getOptionValue, getOptionLabel, getOptionDisabled, getOptionData, children, onChange, onChangeItem, disabled, size, customSize, variant, invalid, searchable, searchPlaceholder, emptyText, position }: CustomFormSelectProps<TFieldValues, TName, TItem>): react_jsx_runtime.JSX.Element;
|
|
520
539
|
displayName: string;
|
|
521
540
|
};
|
|
522
541
|
|
|
@@ -1195,4 +1214,4 @@ declare function PaginationSection({ totalPosts, postsPerPage, currentPage, setC
|
|
|
1195
1214
|
|
|
1196
1215
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1197
1216
|
|
|
1198
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertModal, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type CustomFormFieldProps, type CustomFormSelectProps, DATA_TABLE_TEMPLATES, DataTable, type DataTableAccent, type DataTableProps, DataTableSkeleton, type DataTableSlots, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, type DropzoneProps, FileUpload, type FileUploadProps, Form, FormCheckbox, type FormCheckboxProps, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormProps, FormSelect, Heading, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, Icons, ImagePreview, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps,
|
|
1217
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertModal, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type CustomFormFieldProps, type CustomFormSelectProps, DATA_TABLE_TEMPLATES, DataTable, type DataTableAccent, type DataTableProps, DataTableSkeleton, type DataTableSlots, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, type DropzoneProps, FileUpload, type FileUploadProps, Form, FormCheckbox, type FormCheckboxProps, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormProps, FormSelect, Heading, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, Icons, ImagePreview, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHead, type PageHeadProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationNextLast, PaginationPrevious, PaginationPreviousLast, PaginationSection, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchInput, SearchableSelect, type SearchableSelectOption, type SearchableSelectProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarProvider, Skeleton, Slider, ToasterSonner as SonnerToaster, type SonnerToasterProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, ToasterSonner, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UiCheckbox, type UiCheckboxProps, UiInput, type UiInputProps, UiSelect, type UiSelectOption, type UiSelectProps, badgeVariants, buttonVariants, cn, iconButtonVariants, navigationMenuTriggerStyle, reducer, toast, toggleVariants, useFormField, useSidebar, useToast };
|