feat(LOY-233): create success banner for successful DTMC linking * feat(LOY-233): create success banner for successful DTMC linking * fix(LOY-233): code cleanup * fix(LOY-233): use new design vars for alert bg colors Approved-by: Erik Tiekstra
25 lines
569 B
TypeScript
25 lines
569 B
TypeScript
import { cva } from "class-variance-authority"
|
|
|
|
import styles from "./alert.module.css"
|
|
|
|
import { AlertTypeEnum } from "@/types/enums/alert"
|
|
|
|
export const alertVariants = cva(styles.alert, {
|
|
variants: {
|
|
variant: {
|
|
inline: styles.inline,
|
|
banner: styles.banner,
|
|
},
|
|
type: {
|
|
[AlertTypeEnum.Info]: styles.info,
|
|
[AlertTypeEnum.Warning]: styles.warning,
|
|
[AlertTypeEnum.Alarm]: styles.alarm,
|
|
[AlertTypeEnum.Success]: styles.success,
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
variant: "inline",
|
|
type: AlertTypeEnum.Info,
|
|
},
|
|
})
|