From 5ea38ca3f0c21b1fa1cf7a5638cc1c235f7eb58a Mon Sep 17 00:00:00 2001 From: Cohan Carpentier Date: Thu, 27 Jun 2024 22:14:58 -0400 Subject: [PATCH] chore: deps --- alert.tsx | 2 +- button.tsx | 2 +- checkbox.tsx | 2 +- command.tsx | 6 +++--- config/biome.base.jsonc | 2 +- dialog.tsx | 2 +- dropdown-menu.tsx | 8 ++++---- input.tsx | 6 +++--- navigation-menu.tsx | 6 +++--- package.json | 14 +++++++------- radio-group.tsx | 2 +- select.tsx | 4 ++-- sheet.tsx | 2 +- slider.tsx | 2 +- switch.tsx | 2 +- table.tsx | 6 +++--- tabs.tsx | 2 +- textarea.tsx | 2 +- 18 files changed, 36 insertions(+), 36 deletions(-) diff --git a/alert.tsx b/alert.tsx index eb78361..fff8aee 100644 --- a/alert.tsx +++ b/alert.tsx @@ -3,7 +3,7 @@ import { type HTMLAttributes, forwardRef } from "react"; import { cn } from "./cn"; const alertVariants = cva( - "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg+div]:translate-y-[-3px] [&>svg~*]:pl-7 [&>svg]:text-foreground", + "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:text-foreground [&>svg~*]:pl-7", { variants: { variant: { diff --git a/button.tsx b/button.tsx index ec309de..ad82276 100644 --- a/button.tsx +++ b/button.tsx @@ -5,7 +5,7 @@ import { type ButtonHTMLAttributes, type ReactElement, cloneElement, forwardRef import { cn } from "./cn"; const buttonVariants = cva( - "inline-flex items-center justify-center whitespace-nowrap rounded-md font-medium text-sm transition-colors disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring", + "inline-flex items-center justify-center whitespace-nowrap rounded-md font-medium text-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", { variants: { variant: { diff --git a/checkbox.tsx b/checkbox.tsx index 60bf56a..f8f9a9a 100644 --- a/checkbox.tsx +++ b/checkbox.tsx @@ -12,7 +12,7 @@ const Checkbox = forwardRef< { return ( - + {children} @@ -43,7 +43,7 @@ const CommandInput = forwardRef< Close diff --git a/dropdown-menu.tsx b/dropdown-menu.tsx index afba8a1..5a1421c 100644 --- a/dropdown-menu.tsx +++ b/dropdown-menu.tsx @@ -14,7 +14,7 @@ const DropdownMenuSubTrigger = forwardRef< ( ( {startIcon && cloneElement(startIcon as ReactElement, { className: cn( - "absolute top-2.5 left-3 size-4 text-muted-foreground peer-disabled:text-muted peer-focus-visible:text-primary", + "absolute top-2.5 left-3 size-4 text-muted-foreground peer-focus-visible:text-primary peer-disabled:text-muted", startIcon.props.className, ), })} {endIcon && cloneElement(endIcon as ReactElement, { className: cn( - "absolute top-2.5 right-3 size-4 text-muted-foreground peer-disabled:text-muted peer-focus-visible:text-primary", + "absolute top-2.5 right-3 size-4 text-muted-foreground peer-focus-visible:text-primary peer-disabled:text-muted", endIcon.props.className, ), })} diff --git a/navigation-menu.tsx b/navigation-menu.tsx index 94d4a36..0326a1a 100644 --- a/navigation-menu.tsx +++ b/navigation-menu.tsx @@ -32,7 +32,7 @@ const NavigationMenuList = forwardRef< const NavigationMenuItem = NavigationMenuPrimitive.Item; const navigationMenuTriggerStyle = cva( - "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 font-medium text-sm transition-colors disabled:pointer-events-none data-[active]:bg-accent/50 data-[state=open]:bg-accent/50 focus:bg-accent hover:bg-accent focus:text-accent-foreground hover:text-accent-foreground disabled:opacity-50 focus:outline-none", + "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 font-medium text-sm transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50", ); const NavigationMenuTrigger = forwardRef< @@ -59,7 +59,7 @@ const NavigationMenuContent = forwardRef< span]:line-clamp-1 disabled:cursor-not-allowed placeholder:text-muted-foreground disabled:opacity-50 focus:outline-none focus:ring-1 focus:ring-ring", + "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", { variants: { size: { @@ -118,7 +118,7 @@ const SelectItem = forwardRef< , Sheet {children} - + Close diff --git a/slider.tsx b/slider.tsx index 54fcbd1..25612ea 100644 --- a/slider.tsx +++ b/slider.tsx @@ -22,7 +22,7 @@ const Slider = forwardRef< )); diff --git a/switch.tsx b/switch.tsx index e1c8363..c1e5a02 100644 --- a/switch.tsx +++ b/switch.tsx @@ -10,7 +10,7 @@ const Switch = forwardRef< >(({ className, ...props }, ref) => ( >(({ className, ...rest }, ref) => ( )); @@ -36,7 +36,7 @@ const TableHead = forwardRef[role=checkbox]]:translate-y-[2px] last:overflow-x-hidden [&:has([role=checkbox])]:pr-0", + "h-10 px-2 text-left align-middle font-medium text-muted-foreground last:overflow-x-hidden [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className, )} {...rest} @@ -48,7 +48,7 @@ const TableCell = forwardRef ( [role=checkbox]]:translate-y-[2px] [&:has([role=checkbox])]:pr-0", className)} + className={cn("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", className)} {...rest} /> ), diff --git a/tabs.tsx b/tabs.tsx index 6d5def0..e8abb04 100644 --- a/tabs.tsx +++ b/tabs.tsx @@ -30,7 +30,7 @@ const TabsTrigger = forwardRef< (({ className, ...rest }, ref) => (