mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 21:21:09 -04:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			dark-wizar
			...
			dark-date-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 55da562a42 | 
| @ -28,6 +28,7 @@ | ||||
|       :attributes="attrs" | ||||
|       :model-config="config" | ||||
|       :masks="masks" | ||||
|       :is-dark="isDarkModeOn" | ||||
|       :locale="global.locale" | ||||
|     > | ||||
|       <template | ||||
| @ -72,7 +73,7 @@ | ||||
|  | ||||
|       <template v-if="showExtraOptions" #footer> | ||||
|         <div | ||||
|           class="bg-gray-100 grid grid-cols-3 gap-2 p-2 border-t rounded-b-lg" | ||||
|           class="bg-gray-100 dark:bg-gray-800 grid grid-cols-3 gap-2 p-2 border-t dark:border-gray-500 rounded-b-lg" | ||||
|         > | ||||
|           <button type="button" class="extra-button" @click="moveToDate(sourceDate)"> | ||||
|             {{ global.t('date_picker.same_day') }} | ||||
| @ -146,7 +147,7 @@ const props = defineProps({ | ||||
|   defaultInputClass: { | ||||
|     type: String, | ||||
|     default: | ||||
|       'border-2 font-base pl-8 py-2 outline-none focus:ring-primary-400 focus:outline-none focus:border-primary-400 block w-full sm:text-sm border-gray-200 rounded-md text-black', | ||||
|       'border-2 dark:bg-gray-700 dark:border-gray-600 dark:text-white font-base pl-8 py-2 outline-none focus:ring-primary-400 focus:outline-none focus:border-primary-400 block w-full sm:text-sm border-gray-200 rounded-md text-black', | ||||
|   }, | ||||
|   time24hr: { | ||||
|     type: Boolean, | ||||
| @ -163,7 +164,7 @@ const props = defineProps({ | ||||
|   sourceDate: { | ||||
|     type: [String, Date], | ||||
|     default: () => new Date(), | ||||
|   } | ||||
|   }, | ||||
| }) | ||||
|  | ||||
| const emit = defineEmits(['update:modelValue']) | ||||
| @ -175,6 +176,9 @@ const vCalendar = ref(null) | ||||
| const hasIconSlot = computed(() => { | ||||
|   return !!slots.icon | ||||
| }) | ||||
| const isDarkModeOn = computed(() => | ||||
|   document.documentElement.classList.contains('dark') | ||||
| ) | ||||
|  | ||||
| const computedContainerClass = computed(() => { | ||||
|   let containerClass = `${props.containerClass} ` | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	