import { cn } from '@evershop/evershop/lib/util/cn'; import { cva, type VariantProps } from 'class-variance-authority'; import * as React from 'react'; const alertVariants = cva( "grid gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 w-full relative group/alert", { variants: { variant: { default: 'bg-card text-card-foreground', destructive: 'text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current' } }, defaultVariants: { variant: 'default' } } ); function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps) { return (
); } function AlertTitle({ className, ...props }: React.ComponentProps<'div'>) { return (
svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3', className )} {...props} /> ); } function AlertDescription({ className, ...props }: React.ComponentProps<'div'>) { return (
); } function AlertAction({ className, ...props }: React.ComponentProps<'div'>) { return (
); } export { Alert, AlertTitle, AlertDescription, AlertAction };