mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
* add dark mode in DashboardStatsItem * add dark mode in customer side header * add dark mode in customer view file * fix placeholder * fix base select input --------- Co-authored-by: yogesh-gohil <yogeshgohil1611@gmail.com>
71 lines
1.5 KiB
Vue
71 lines
1.5 KiB
Vue
<template>
|
|
<router-link
|
|
v-if="!loading"
|
|
class="
|
|
relative
|
|
flex
|
|
justify-between
|
|
p-3
|
|
bg-white
|
|
rounded
|
|
shadow
|
|
hover:bg-gray-50
|
|
xl:p-4
|
|
lg:col-span-2
|
|
dark:backdrop-blur-xl
|
|
dark:shadow-glass
|
|
dark:border
|
|
dark:border-white/10
|
|
dark:bg-gray-800/70
|
|
"
|
|
:class="{ 'lg:!col-span-3': large }"
|
|
:to="route"
|
|
>
|
|
<div>
|
|
<span class="text-xl font-semibold leading-tight text-black xl:text-3xl dark:text-white">
|
|
<slot />
|
|
</span>
|
|
<span class="block mt-1 text-sm leading-tight text-gray-500 xl:text-lg dark:text-gray-300">
|
|
{{ label }}
|
|
</span>
|
|
</div>
|
|
<BaseDarkHighlight class="!bg-highlight/[.17] !top-5" />
|
|
<div class="flex items-center">
|
|
<component :is="iconComponent" class="w-10 h-10 xl:w-12 xl:h-12" />
|
|
</div>
|
|
</router-link>
|
|
|
|
<StatsCardPlaceholder v-else-if="large" />
|
|
|
|
<StatsCardSmPlaceholder v-else />
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
import StatsCardPlaceholder from '@/scripts/customer/views/dashboard/DashboardStatsPlaceholder.vue'
|
|
import StatsCardSmPlaceholder from '@/scripts/customer/views/dashboard/DashboardStatsSmPlaceholder.vue'
|
|
|
|
defineProps({
|
|
iconComponent: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
loading: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
route: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
label: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
large: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
})
|
|
</script>
|