From 9d8bbb747106d6bedfd47ae2fcc893eefc8403ec Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Tue, 4 Mar 2025 20:31:58 +0300 Subject: [PATCH] chore: lint --- demo/nextjs/components/ui/alert-dialog.tsx | 184 ++++----- demo/nextjs/components/ui/alert.tsx | 75 ++-- demo/nextjs/components/ui/avatar.tsx | 90 ++--- demo/nextjs/components/ui/breadcrumb.tsx | 108 +++--- demo/nextjs/components/ui/button.tsx | 38 +- demo/nextjs/components/ui/card.tsx | 152 ++++---- demo/nextjs/components/ui/carousel.tsx | 248 ++++++------ demo/nextjs/components/ui/chart.tsx | 365 +++++++++--------- demo/nextjs/components/ui/checkbox.tsx | 44 +-- demo/nextjs/components/ui/command.tsx | 210 +++++----- demo/nextjs/components/ui/context-menu.tsx | 292 +++++++------- demo/nextjs/components/ui/dialog.tsx | 142 +++---- demo/nextjs/components/ui/drawer.tsx | 130 +++---- demo/nextjs/components/ui/dropdown-menu.tsx | 302 +++++++-------- demo/nextjs/components/ui/form.tsx | 80 ++-- demo/nextjs/components/ui/hover-card.tsx | 40 +- demo/nextjs/components/ui/input-otp.tsx | 83 ++-- demo/nextjs/components/ui/input.tsx | 40 +- demo/nextjs/components/ui/label.tsx | 22 +- demo/nextjs/components/ui/menubar.tsx | 358 ++++++++--------- demo/nextjs/components/ui/navigation-menu.tsx | 224 +++++------ demo/nextjs/components/ui/pagination.tsx | 42 +- demo/nextjs/components/ui/password-input.tsx | 82 ++-- demo/nextjs/components/ui/popover.tsx | 44 +-- demo/nextjs/components/ui/progress.tsx | 44 +-- demo/nextjs/components/ui/radio-group.tsx | 32 +- demo/nextjs/components/ui/scroll-area.tsx | 92 ++--- demo/nextjs/components/ui/select.tsx | 288 +++++++------- demo/nextjs/components/ui/separator.tsx | 42 +- demo/nextjs/components/ui/slider.tsx | 42 +- demo/nextjs/components/ui/switch.tsx | 44 +-- demo/nextjs/components/ui/table.tsx | 228 +++++------ demo/nextjs/components/ui/tabs.tsx | 96 ++--- demo/nextjs/components/ui/textarea.tsx | 36 +- demo/nextjs/components/ui/toast.tsx | 165 ++++---- demo/nextjs/components/ui/toggle-group.tsx | 47 +-- demo/nextjs/components/ui/toggle.tsx | 24 +- demo/nextjs/components/ui/tooltip.tsx | 36 +- 38 files changed, 2251 insertions(+), 2360 deletions(-) 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 - } -) =>