@innertia-solutions/nuxt-theme-spark 0.1.51 → 0.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,24 +2,13 @@
|
|
|
2
2
|
defineProps<{
|
|
3
3
|
title: string
|
|
4
4
|
description?: string
|
|
5
|
-
icon?: any
|
|
6
|
-
iconBg?: string
|
|
7
|
-
iconColor?: string
|
|
8
5
|
}>()
|
|
9
6
|
</script>
|
|
10
7
|
|
|
11
8
|
<template>
|
|
12
|
-
<div class="flex items-center justify-between mb-6">
|
|
9
|
+
<div class="flex items-center justify-between mb-6 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-xl px-5 py-4">
|
|
13
10
|
<div class="flex items-center gap-x-4">
|
|
14
|
-
|
|
15
|
-
<div
|
|
16
|
-
v-if="icon || $slots.icon"
|
|
17
|
-
:class="['size-12 rounded-xl flex items-center justify-center shrink-0', iconBg ?? 'bg-blue-50 dark:bg-blue-500/10']"
|
|
18
|
-
>
|
|
19
|
-
<slot name="icon">
|
|
20
|
-
<component :is="icon" :class="['size-6', iconColor ?? 'text-blue-600 dark:text-blue-400']" />
|
|
21
|
-
</slot>
|
|
22
|
-
</div>
|
|
11
|
+
<slot name="icon" />
|
|
23
12
|
<div>
|
|
24
13
|
<h1 class="text-xl font-semibold text-slate-800 dark:text-slate-100">{{ title }}</h1>
|
|
25
14
|
<p v-if="description" class="text-sm text-slate-500 dark:text-slate-400 mt-0.5">{{ description }}</p>
|