|
6 | 6 | backgroundCustomClasses="z-[998]" |
7 | 7 | modalCustomClasses="z-[999] flex items-center justify-center" |
8 | 8 | > |
9 | | - <div class="relative p-6 sm:p-8 sm:w-[440px] rounded-lg shadow-xl dark:bg-gray-800" > |
| 9 | + <div class="relative p-6 sm:p-8 sm:w-[440px] rounded-lg shadow-xl bg-lightAcceptModalBackground dark:bg-darkAcceptModalBackground" > |
10 | 10 |
|
11 | 11 | <button type="button" @click="modalStore.togleModal()" class="absolute top-4 right-4 text-gray-400 hover:text-gray-900 transition-colors dark:hover:text-white" > |
12 | 12 | <svg class="w-3.5 h-3.5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14"> |
|
15 | 15 | </button> |
16 | 16 |
|
17 | 17 | <div class="text-center flex flex-col"> |
18 | | - <div class="mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-red-50 mb-4 relative dark:bg-red-900/20"> |
19 | | - <IconClipboardDocumentSolid class="w-10 h-10 text-red-500" /> |
20 | | - <div class="absolute bottom-1 right-1 bg-red-500 rounded-full w-[18px] h-[18px] flex items-center justify-center border-2 border-white dark:border-gray-800"> |
21 | | - <span class="text-white text-[10px] font-medium">!</span> |
| 18 | + <div class="mx-auto flex items-center justify-center h-16 w-16 rounded-full mb-4 relative" |
| 19 | + :class="modalStore.modalContent.dangerous ? 'bg-red-50 dark:bg-red-900/20' : 'bg-lightPrimaryOpacity dark:bg-darkPrimaryOpacity'"> |
| 20 | + <IconClipboardDocumentSolid class="w-10 h-10" |
| 21 | + :class="modalStore.modalContent.dangerous ? 'text-red-500' : 'text-lightButtonsBackground dark:text-darkButtonsBackground'" /> |
| 22 | + <div class="absolute bottom-1 right-1 rounded-default w-[18px] h-[18px] flex items-center justify-center border-2 border-white dark:border-gray-800" |
| 23 | + :class="modalStore.modalContent.dangerous ? 'bg-red-500' : 'bg-lightButtonsBackground dark:bg-darkButtonsBackground'"> |
| 24 | + <span class="text-lightButtonsText dark:text-darkButtonsText text-[10px] font-medium">!</span> |
22 | 25 | </div> |
23 | 26 | </div> |
24 | 27 |
|
|
33 | 36 | </div> |
34 | 37 | </div> |
35 | 38 |
|
36 | | - <hr class="border-t-2 border-gray-300 dark:border-gray-700 my-6"> |
| 39 | + <hr class="border-t-2 border-gray-300 dark:border-gray-500 my-6"> |
37 | 40 |
|
38 | 41 | <div class="flex justify-center gap-4 w-full"> |
39 | | - <button @click="()=>{modalStore.onAcceptFunction(false);modalStore.togleModal()}" type="button" class="flex-1 py-2.5 px-4 text-sm font-medium text-gray-700 bg-white rounded-lg border border-gray-200 hover:bg-gray-50 focus:ring-4 focus:ring-gray-100 transition-all dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700"> |
| 42 | + <button @click="()=>{modalStore.onAcceptFunction(false);modalStore.togleModal()}" type="button" class="flex-1 py-2.5 px-4 text-sm font-medium text-gray-700 bg-white rounded-default border border-gray-200 hover:bg-gray-50 focus:ring-4 focus:ring-gray-100 transition-all dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700"> |
40 | 43 | {{ modalStore?.modalContent?.cancelText }} |
41 | 44 | </button> |
42 | 45 |
|
43 | | - <button |
44 | | - @click="()=>{ modalStore.onAcceptFunction(true);modalStore.togleModal()}" |
45 | | - type="button" |
46 | | - class="flex-1 flex items-center justify-center py-2.5 px-4 text-sm font-medium transition-all focus:outline-none |
47 | | - text-white bg-red-600 hover:bg-red-700 |
48 | | - dark:bg-red-500 dark:hover:bg-red-600 |
49 | | - border-none rounded-lg shadow-sm focus:z-10 focus:ring-4 |
50 | | - focus:ring-red-100 dark:focus:ring-red-900 gap-1"> |
| 46 | + <button |
| 47 | + @click="()=>{ modalStore.onAcceptFunction(true);modalStore.togleModal()}" |
| 48 | + type="button" |
| 49 | + class="flex-1 flex items-center justify-center py-2.5 px-4 text-sm font-medium transition-all focus:outline-none |
| 50 | + border-none rounded-default shadow-sm focus:z-10 focus:ring-4 gap-1" |
| 51 | + :class="modalStore.modalContent.dangerous |
| 52 | + ? 'text-lightAcceptModalConfirmButtonText dark:text-darkAcceptModalConfirmButtonText bg-lightAcceptModalConfirmButtonBackground dark:bg-darkAcceptModalConfirmButtonBackground hover:bg-lightAcceptModalConfirmButtonBackgroundHover dark:hover:bg-darkAcceptModalConfirmButtonBackgroundHover focus:ring-lightAcceptModalConfirmButtonFocus dark:focus:ring-darkAcceptModalConfirmButtonFocus' |
| 53 | + : 'text-lightButtonsText dark:text-darkButtonsText bg-lightButtonsBackground dark:bg-darkButtonsBackground hover:bg-lightButtonsHover dark:hover:bg-darkButtonsHover focus:ring-lightButtonFocusRing dark:focus:ring-darkButtonFocusRing'"> |
51 | 54 | {{ modalStore?.modalContent?.acceptText }} |
52 | 55 | </button> |
53 | 56 | </div> |
|
0 commit comments