From 4d127a038bf768eded68aae3cfa5c1b12241bdac Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Fri, 27 Mar 2026 00:55:15 +0100 Subject: chore: normalize line endings --- apps/web/src/components/ui/button.tsx | 126 +++++++++++++++++----------------- 1 file changed, 63 insertions(+), 63 deletions(-) (limited to 'apps/web/src/components/ui/button.tsx') diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsx index 3dff9417..677d9330 100644 --- a/apps/web/src/components/ui/button.tsx +++ b/apps/web/src/components/ui/button.tsx @@ -1,63 +1,63 @@ -import * as React from "react"; -import { Slot as SlotPrimitive } from "radix-ui"; -import { cva, type VariantProps } from "class-variance-authority"; -import { cn } from "@/utils/ui"; - -const buttonVariants = cva( - "inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", - { - variants: { - variant: { - default: "bg-foreground text-background hover:bg-foreground/90", - background: "bg-background text-foreground hover:bg-background/90", - destructive: - "bg-destructive text-destructive-foreground hover:bg-destructive/80", - "destructive-foreground": - "border bg-background hover:bg-destructive/15 text-destructive", - outline: "border border-border bg-background hover:bg-accent", - secondary: - "bg-secondary text-secondary-foreground border border-secondary-border", - text: "bg-transparent rounded-none opacity-100 hover:opacity-75", - ghost: "bg-transparent hover:bg-accent", - link: "text-primary underline-offset-4 hover:underline !p-0 !h-auto", - }, - size: { - default: "h-9 px-4 py-2", - sm: "h-7 p-1 px-2.5 text-sm rounded-sm", - lg: "h-10 p-5 px-6", - icon: "size-7 rounded-sm", - text: "p-0", - }, - }, - defaultVariants: { - variant: "default", - size: "default", - }, - }, -); - -export interface ButtonProps - extends React.ButtonHTMLAttributes, - VariantProps { - asChild?: boolean; -} - -const Button = React.forwardRef( - ({ className, variant, size, asChild = false, ...props }, ref) => { - const Comp = asChild ? SlotPrimitive.Slot : "button"; - const effectiveSize = size ?? (variant === "text" ? "text" : "default"); - return ( - - ); - }, -); -Button.displayName = "Button"; - -export { Button, buttonVariants }; +import * as React from "react"; +import { Slot as SlotPrimitive } from "radix-ui"; +import { cva, type VariantProps } from "class-variance-authority"; +import { cn } from "@/utils/ui"; + +const buttonVariants = cva( + "inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", + { + variants: { + variant: { + default: "bg-foreground text-background hover:bg-foreground/90", + background: "bg-background text-foreground hover:bg-background/90", + destructive: + "bg-destructive text-destructive-foreground hover:bg-destructive/80", + "destructive-foreground": + "border bg-background hover:bg-destructive/15 text-destructive", + outline: "border border-border bg-background hover:bg-accent", + secondary: + "bg-secondary text-secondary-foreground border border-secondary-border", + text: "bg-transparent rounded-none opacity-100 hover:opacity-75", + ghost: "bg-transparent hover:bg-accent", + link: "text-primary underline-offset-4 hover:underline !p-0 !h-auto", + }, + size: { + default: "h-9 px-4 py-2", + sm: "h-7 p-1 px-2.5 text-sm rounded-sm", + lg: "h-10 p-5 px-6", + icon: "size-7 rounded-sm", + text: "p-0", + }, + }, + defaultVariants: { + variant: "default", + size: "default", + }, + }, +); + +export interface ButtonProps + extends React.ButtonHTMLAttributes, + VariantProps { + asChild?: boolean; +} + +const Button = React.forwardRef( + ({ className, variant, size, asChild = false, ...props }, ref) => { + const Comp = asChild ? SlotPrimitive.Slot : "button"; + const effectiveSize = size ?? (variant === "text" ? "text" : "default"); + return ( + + ); + }, +); +Button.displayName = "Button"; + +export { Button, buttonVariants }; -- cgit v1.3.1