|
5 | 5 | :class="toast.variant == 'info' ? 'border-lightPrimary dark:border-darkPrimary' : toast.variant == 'danger' ? 'border-red-500 dark:border-red-800' : toast.variant == 'warning' ? 'border-orange-500 dark:border-orange-700' : 'border-green-500 dark:border-green-800'" |
6 | 6 | role="alert" |
7 | 7 | > |
8 | | - <div v-if="toast.variant == 'info'" class=" inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-lightPrimary dark:text-darkPrimary bg-lightPrimaryOpacity rounded-lg dark:bg-darkPrimary dark:!text-blue-100"> |
| 8 | + <div v-if="toast.variant == 'info'" class="af-toast-icon inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-lightPrimary dark:text-darkPrimary bg-lightPrimaryOpacity rounded-lg dark:bg-darkPrimary dark:!text-blue-100"> |
9 | 9 | <IconInfoCircleSolid class="w-5 h-5" aria-hidden="true" /> |
10 | 10 | </div> |
11 | | - <div v-else-if="toast.variant == 'danger'" class="inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"> |
| 11 | + <div v-else-if="toast.variant == 'danger'" class="af-toast-icon inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"> |
12 | 12 | <IconCloseCircleSolid class="w-5 h-5" aria-hidden="true" /> |
13 | 13 | </div> |
14 | | - <div v-else-if="toast.variant == 'warning'"class="inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-700 dark:text-orange-200"> |
| 14 | + <div v-else-if="toast.variant == 'warning'" class="af-toast-icon inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-700 dark:text-orange-200"> |
15 | 15 | <IconExclamationCircleSolid class="w-5 h-5" aria-hidden="true" /> |
16 | 16 |
|
17 | 17 | </div> |
18 | | - <div v-else class="inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"> |
| 18 | + <div v-else class="af-toast-icon inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"> |
19 | 19 | <IconCheckCircleSolid class="w-5 h-5" aria-hidden="true" /> |
20 | 20 | </div> |
21 | 21 |
|
|
24 | 24 | <div class="flex flex-col items-center justify-center"> |
25 | 25 | {{toast.message}} |
26 | 26 | <div v-if="toast.buttons" class="flex justify-center mt-2 gap-2"> |
27 | | - <div v-for="button in toast.buttons" class="rounded-md bg-lightButtonsBackground hover:bg-lightButtonsHover text-lightButtonsText dark:bg-darkPrimary dark:hover:bg-darkButtonsBackground dark:text-darkButtonsText"> |
| 27 | + <div v-for="button in toast.buttons" class="af-toast-button rounded-md bg-lightButtonsBackground hover:bg-lightButtonsHover text-lightButtonsText dark:bg-darkPrimary dark:hover:bg-darkButtonsBackground dark:text-darkButtonsText"> |
28 | 28 | <button @click="onButtonClick(button.value)" class="px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/10"> |
29 | 29 | {{ button.label }} |
30 | 30 | </button> |
|
0 commit comments