1- import * as React from 'react'
1+ import { ButtonHTMLAttributes , forwardRef , ReactNode } from 'react'
22
33import { Slot } from '@radix-ui/react-slot'
44import { CanaryOutletFactory , CanaryOutletName } from '@utils/CanaryOutletFactory'
@@ -12,11 +12,11 @@ const buttonVariants = cva(
1212 variant : {
1313 default :
1414 'bg-background-5 text-foreground-6 hover:bg-background-10 disabled:bg-background-6 disabled:text-foreground-9' ,
15- destructive : 'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90' ,
15+ destructive : 'bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm ' ,
1616 outline :
17- 'border border -borders-2 bg-transparent text-foreground-2 hover:border-borders-6 hover:text-foreground-8' ,
18- secondary : 'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80' ,
19- tertiary : 'bg-tertiary text-secondary-foreground shadow-sm hover:bg-tertiary/80' ,
17+ 'border-borders-2 text-foreground-2 hover:border-borders-6 hover:text-foreground-8 border bg-transparent ' ,
18+ secondary : 'bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-sm ' ,
19+ tertiary : 'bg-tertiary text-secondary-foreground hover:bg-tertiary/80 shadow-sm ' ,
2020 ghost : 'hover:bg-background-12 hover:text-accent-foreground' ,
2121 link : 'text-primary underline-offset-4 hover:underline' ,
2222 link_accent : 'text-foreground-accent underline-offset-4 hover:underline' ,
@@ -65,17 +65,15 @@ const buttonVariants = cva(
6565 }
6666)
6767
68- export interface ButtonProps
69- extends React . ButtonHTMLAttributes < HTMLButtonElement > ,
70- VariantProps < typeof buttonVariants > {
68+ export interface ButtonProps extends ButtonHTMLAttributes < HTMLButtonElement > , VariantProps < typeof buttonVariants > {
7169 asChild ?: boolean
7270 loading ?: boolean
73- spinner ?: React . ReactNode
74- dropdown ?: React . ReactNode
71+ spinner ?: ReactNode
72+ dropdown ?: ReactNode
7573 gradientType ?: string
7674}
7775
78- const Button = React . forwardRef < HTMLButtonElement , ButtonProps > (
76+ const Button = forwardRef < HTMLButtonElement , ButtonProps > (
7977 (
8078 {
8179 className,
0 commit comments