web/dialog: css for small dialog

- moved backdrop to each dialog
- dialog is now closable by clicking the backdrop
- added meowbalt to dialogs
- added more meowbalt assets & components
- added "main" boolean to indicate the main action button in a list of buttons
This commit is contained in:
wukko
2024-07-16 14:00:56 +06:00
parent 03bd995839
commit fa835d0010
10 changed files with 264 additions and 39 deletions

View File

@@ -1,14 +1,16 @@
export type DialogButton = {
text: string,
color: string,
main: boolean,
action: () => unknown | Promise<unknown>
}
export type DialogInfo = {
id: string,
type: "small",
meowbalt: "error",
title: string,
bodyText: string,
bodySubText: string,
buttons: DialogButton[]
buttons: DialogButton[],
}