mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-27 19:51:09 -04:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			dark-base-
			...
			dark-list-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 4645b21f91 | 
| @ -30,13 +30,8 @@ | ||||
|           leave-to="opacity-0" | ||||
|         > | ||||
|           <DialogOverlay | ||||
|             class="fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75 dark:backdrop-blur-xl dark:bg-gray-900/80" | ||||
|           > | ||||
|            <BaseDarkHighlight | ||||
|             class="!bg-highlight/[.17] !top-1/2 h-60 -translate-y-1/2 mt-5" | ||||
|             :class="dialogSizeClasses" | ||||
|             class="fixed inset-0 transition-opacity bg-gray-500 bg-opacity-75" | ||||
|           /> | ||||
|           </DialogOverlay> | ||||
|         </TransitionChild> | ||||
|  | ||||
|         <!-- This element is to trick the browser into centering the modal contents. --> | ||||
| @ -69,11 +64,6 @@ | ||||
|               shadow-xl | ||||
|               sm:my-8 sm:align-middle sm:w-full sm:p-6 | ||||
|               relative | ||||
|               dark:backdrop-blur-xl | ||||
|               dark:shadow-glass | ||||
|               dark:border | ||||
|               dark:border-white/10 | ||||
|               dark:bg-gray-800 | ||||
|             " | ||||
|             :class="dialogSizeClasses" | ||||
|           > | ||||
| @ -90,31 +80,31 @@ | ||||
|                   rounded-full | ||||
|                 " | ||||
|                 :class="{ | ||||
|                   'bg-green-100 dark:bg-primary-500': dialogStore.variant === 'primary', | ||||
|                   'bg-red-100 dark:bg-red-500': dialogStore.variant === 'danger', | ||||
|                   'bg-green-100': dialogStore.variant === 'primary', | ||||
|                   'bg-red-100': dialogStore.variant === 'danger', | ||||
|                 }" | ||||
|               > | ||||
|                 <BaseIcon | ||||
|                   v-if="dialogStore.variant === 'primary'" | ||||
|                   name="CheckIcon" | ||||
|                   class="w-6 h-6 text-green-600 dark:text-white" | ||||
|                   class="w-6 h-6 text-green-600" | ||||
|                 /> | ||||
|                 <BaseIcon | ||||
|                   v-else | ||||
|                   name="ExclamationIcon" | ||||
|                   class="w-6 h-6 text-red-600 dark:text-white" | ||||
|                   class="w-6 h-6 text-red-600" | ||||
|                   aria-hidden="true" | ||||
|                 /> | ||||
|               </div> | ||||
|               <div class="mt-3 text-center sm:mt-5"> | ||||
|                 <DialogTitle | ||||
|                   as="h3" | ||||
|                   class="text-lg font-medium leading-6 text-gray-900 dark:text-white" | ||||
|                   class="text-lg font-medium leading-6 text-gray-900" | ||||
|                 > | ||||
|                   {{ dialogStore.title }} | ||||
|                 </DialogTitle> | ||||
|                 <div class="mt-2"> | ||||
|                   <p class="text-sm text-gray-500 dark:text-gray-400"> | ||||
|                   <p class="text-sm text-gray-500"> | ||||
|                     {{ dialogStore.message }} | ||||
|                   </p> | ||||
|                 </div> | ||||
|  | ||||
| @ -28,13 +28,13 @@ export default { | ||||
|     }, | ||||
|   }, | ||||
|   setup(props, { slots }) { | ||||
|     const defaultClass = `cursor-pointer pb-2 pr-0 text-sm font-medium leading-5  flex items-center` | ||||
|     const defaultClass = `cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 flex items-center` | ||||
|     let hasIconSlot = computed(() => { | ||||
|       return !!slots.icon | ||||
|     }) | ||||
|     let containerClass = computed(() => { | ||||
|       if (props.active) return `${defaultClass} text-primary-500` | ||||
|       else return `${defaultClass} text-gray-500` | ||||
|       if (props.active) return `${defaultClass} text-primary-500 dark:text-primary-400` | ||||
|       else return `${defaultClass} text-gray-500 dark:text-gray-300` | ||||
|     }) | ||||
|     return { | ||||
|       hasIconSlot, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	