diff --git a/demo/nextjs/components/ui/alert-dialog.tsx b/demo/nextjs/components/ui/alert-dialog.tsx index 51aee2840c..8c6e9bae5d 100644 --- a/demo/nextjs/components/ui/alert-dialog.tsx +++ b/demo/nextjs/components/ui/alert-dialog.tsx @@ -12,43 +12,43 @@ const AlertDialogTrigger = AlertDialogPrimitive.Trigger; const AlertDialogPortal = AlertDialogPrimitive.Portal; -const AlertDialogOverlay = ( - { - ref, - className, - ...props - }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; - } -) => (); +const AlertDialogOverlay = ({ + ref, + className, + ...props +}: React.ComponentPropsWithoutRef & { + ref: React.RefObject>; +}) => ( + +); AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName; -const AlertDialogContent = ( - { - ref, - className, - ...props - }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; - } -) => ( - - -); +const AlertDialogContent = ({ + ref, + className, + ...props +}: React.ComponentPropsWithoutRef & { + ref: React.RefObject>; +}) => ( + + + + +); AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName; const AlertDialogHeader = ({ @@ -79,69 +79,71 @@ const AlertDialogFooter = ({ ); AlertDialogFooter.displayName = "AlertDialogFooter"; -const AlertDialogTitle = ( - { - ref, - className, - ...props - }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; - } -) => (); +const AlertDialogTitle = ({ + ref, + className, + ...props +}: React.ComponentPropsWithoutRef & { + ref: React.RefObject>; +}) => ( + +); AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName; -const AlertDialogDescription = ( - { - ref, - className, - ...props - }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; - } -) => (); +const AlertDialogDescription = ({ + ref, + className, + ...props +}: React.ComponentPropsWithoutRef & { + ref: React.RefObject< + React.ElementRef + >; +}) => ( + +); AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName; -const AlertDialogAction = ( - { - ref, - className, - ...props - }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; - } -) => (); +const AlertDialogAction = ({ + ref, + className, + ...props +}: React.ComponentPropsWithoutRef & { + ref: React.RefObject>; +}) => ( + +); AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName; -const AlertDialogCancel = ( - { - ref, - className, - ...props - }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; - } -) => (); +const AlertDialogCancel = ({ + ref, + className, + ...props +}: React.ComponentPropsWithoutRef & { + ref: React.RefObject>; +}) => ( + +); AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName; export { diff --git a/demo/nextjs/components/ui/alert.tsx b/demo/nextjs/components/ui/alert.tsx index fabb3eb1b1..d6f8e089cb 100644 --- a/demo/nextjs/components/ui/alert.tsx +++ b/demo/nextjs/components/ui/alert.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import { cva, type VariantProps } from "class-variance-authority"; +import { cva } from "class-variance-authority"; import { cn } from "@/lib/utils"; @@ -19,49 +19,44 @@ const alertVariants = cva( }, ); -const Alert = ( - { - ref, - className, - variant, - ...props - } -) => (
); +const Alert = ({ ref, className, variant, ...props }) => ( +
+); Alert.displayName = "Alert"; -const AlertTitle = ( - { - ref, - className, - ...props - }: React.HTMLAttributes & { - ref: React.RefObject; - } -) => (
); +const AlertTitle = ({ + ref, + className, + ...props +}: React.HTMLAttributes & { + ref: React.RefObject; +}) => ( +
+); AlertTitle.displayName = "AlertTitle"; -const AlertDescription = ( - { - ref, - className, - ...props - }: React.HTMLAttributes & { - ref: React.RefObject; - } -) => (
); +const AlertDescription = ({ + ref, + className, + ...props +}: React.HTMLAttributes & { + ref: React.RefObject; +}) => ( +
+); AlertDescription.displayName = "AlertDescription"; export { Alert, AlertTitle, AlertDescription }; diff --git a/demo/nextjs/components/ui/avatar.tsx b/demo/nextjs/components/ui/avatar.tsx index a97dc70f04..f2fa09b5a8 100644 --- a/demo/nextjs/components/ui/avatar.tsx +++ b/demo/nextjs/components/ui/avatar.tsx @@ -5,55 +5,55 @@ import * as AvatarPrimitive from "@radix-ui/react-avatar"; import { cn } from "@/lib/utils"; -const Avatar = ( - { - ref, - className, - ...props - }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; - } -) => (); +const Avatar = ({ + ref, + className, + ...props +}: React.ComponentPropsWithoutRef & { + ref: React.RefObject>; +}) => ( + +); Avatar.displayName = AvatarPrimitive.Root.displayName; -const AvatarImage = ( - { - ref, - className, - ...props - }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; - } -) => (); +const AvatarImage = ({ + ref, + className, + ...props +}: React.ComponentPropsWithoutRef & { + ref: React.RefObject>; +}) => ( + +); AvatarImage.displayName = AvatarPrimitive.Image.displayName; -const AvatarFallback = ( - { - ref, - className, - ...props - }: React.ComponentPropsWithoutRef & { - ref: React.RefObject>; - } -) => (); +const AvatarFallback = ({ + ref, + className, + ...props +}: React.ComponentPropsWithoutRef & { + ref: React.RefObject>; +}) => ( + +); AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName; export { Avatar, AvatarImage, AvatarFallback }; diff --git a/demo/nextjs/components/ui/breadcrumb.tsx b/demo/nextjs/components/ui/breadcrumb.tsx index b169910803..f60b85d592 100644 --- a/demo/nextjs/components/ui/breadcrumb.tsx +++ b/demo/nextjs/components/ui/breadcrumb.tsx @@ -4,55 +4,45 @@ import { Slot } from "@radix-ui/react-slot"; import { cn } from "@/lib/utils"; -const Breadcrumb = ( - { - ref, - ...props - } -) =>