diff --git a/src/components/ui/checkbox.tsx b/src/components/ui/checkbox.tsx index c1bac23..46a6429 100644 --- a/src/components/ui/checkbox.tsx +++ b/src/components/ui/checkbox.tsx @@ -5,7 +5,7 @@ import { Check } from 'lucide-react'; import { cn } from '@/lib/utils'; const Checkbox = React.forwardRef< - React.ElementRef, + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , + React.ComponentRef, DialogContentProps >(({ className, children, showCloseButton = true, ...props }, ref) => ( @@ -72,7 +72,7 @@ const DialogFooter = ({ className, ...props }: React.HTMLAttributes, + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , + React.ComponentRef, React.ComponentPropsWithoutRef & VariantProps >(({ className, ...props }, ref) => ( diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx index 75b0629..b0fbfef 100644 --- a/src/components/ui/select.tsx +++ b/src/components/ui/select.tsx @@ -10,7 +10,7 @@ const SelectGroup = SelectPrimitive.Group; const SelectValue = SelectPrimitive.Value; const SelectTrigger = React.forwardRef< - React.ElementRef, + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( , + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, children, position = 'popper', ...props }, ref) => ( @@ -90,7 +90,7 @@ const SelectContent = React.forwardRef< SelectContent.displayName = SelectPrimitive.Content.displayName; const SelectLabel = React.forwardRef< - React.ElementRef, + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( , + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( , + React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => (