Updated sidebar layout (#1661)

This commit is contained in:
Luke Vella 2025-04-14 15:11:59 +01:00 committed by GitHub
parent 8c0814b92b
commit 72ca1d4c38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
104 changed files with 3268 additions and 1331 deletions

View file

@ -19,12 +19,13 @@ const buttonVariants = cva(
"focus:ring-offset-1 border-primary bg-primary hover:bg-primary-500 disabled:bg-gray-400 disabled:border-transparent text-white shadow-sm",
destructive:
"focus:ring-offset-1 bg-destructive shadow-sm text-destructive-foreground active:bg-destructive border-destructive hover:bg-destructive/90",
default:
"focus:ring-offset-1 hover:bg-gray-100 bg-gray-50 active:bg-gray-200",
default: "focus:ring-offset-1 hover:bg-gray-50 bg-white",
secondary:
"focus:ring-offset-1 bg-secondary text-secondary-foreground hover:bg-secondary/80",
"focus:ring-offset-1 border-secondary bg-secondary hover:bg-secondary/80 text-secondary-foreground",
ghost:
"border-transparent bg-transparent data-[state=open]:bg-gray-500/20 text-gray-800 hover:bg-gray-500/10 active:bg-gray-500/20",
actionBar:
"border-transparent bg-transparent data-[state=open]:bg-gray-500/20 text-gray-800 hover:bg-gray-700 active:bg-gray-700/50",
link: "underline-offset-4 border-transparent hover:underline text-primary",
},
size: {
@ -32,6 +33,7 @@ const buttonVariants = cva(
sm: "h-8 text-sm px-2 gap-x-1.5 rounded-md",
lg: "h-12 text-base gap-x-3 px-4 rounded-lg",
icon: "size-7 text-sm gap-x-1.5 rounded-md",
"icon-lg": "size-8 rounded-full",
},
},
defaultVariants: {