29 lines
633 B
TypeScript
29 lines
633 B
TypeScript
export type Tone = 'ok' | 'wn' | 'er' | 'mu' | 'in'
|
|
|
|
/** Пометка строки с накопленной правкой. */
|
|
export type RowMark = 'new' | 'dirty' | 'deleted'
|
|
|
|
|
|
type BadgeVariant =
|
|
| 'success-light'
|
|
| 'warning-light'
|
|
| 'destructive-light'
|
|
| 'info-light'
|
|
| 'outline'
|
|
|
|
export const TONE_BADGE: Record<Tone, BadgeVariant> = {
|
|
ok: 'success-light',
|
|
wn: 'warning-light',
|
|
er: 'destructive-light',
|
|
in: 'info-light',
|
|
mu: 'outline',
|
|
}
|
|
|
|
export const TONE_DOT: Record<Tone, string> = {
|
|
ok: 'bg-success',
|
|
wn: 'bg-warning',
|
|
er: 'bg-destructive',
|
|
in: 'bg-success',
|
|
mu: 'bg-muted-foreground/50',
|
|
}
|