import type { VariantProps } from 'class-variance-authority'; import { cva } from 'class-variance-authority'; export { default as Alert } from './Alert.vue'; export { default as AlertTitle } from './AlertTitle.vue'; export { default as AlertDescription } from './AlertDescription.vue'; export { default as AlertAction } from './AlertAction.vue'; export const alertVariants = cva( "grid gap-0.5 rounded-lg border px-2.5 py-2 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 *:[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-red-700 dark:text-red-400 bg-card *:data-[slot=alert-description]:text-red-700 dark:*:data-[slot=alert-description]:text-red-400 *:[svg]:text-current', }, }, defaultVariants: { variant: 'default', }, } ); export type AlertVariants = VariantProps;