@fy-/fws-vue 0.7.5 → 0.7.7
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.
|
@@ -79,10 +79,10 @@ onUnmounted(() => {
|
|
|
79
79
|
<ScaleTransition>
|
|
80
80
|
<div
|
|
81
81
|
id="base-notif"
|
|
82
|
-
class="p-4 mb-4 absolute bottom-4 right-4 z-[16] bg-fv-neutral-50 dark:bg-
|
|
82
|
+
class="p-4 mb-4 absolute bottom-4 right-4 z-[16] bg-fv-neutral-50/[.6] dark:bg-neutral-800/[.6]"
|
|
83
83
|
role="alert"
|
|
84
84
|
:class="{
|
|
85
|
-
'text-fv-neutral-800 border border-fv-neutral-300 rounded-lg dark:text-fv-neutral-400 dark:border-fv-neutral-
|
|
85
|
+
'text-fv-neutral-800 border border-fv-neutral-300 rounded-lg dark:text-fv-neutral-400 dark:border-fv-neutral-600':
|
|
86
86
|
currentNotif.type === 'info',
|
|
87
87
|
'text-red-800 border border-red-300 rounded-lg dark:text-red-300 dark:border-red-800':
|
|
88
88
|
currentNotif.type === 'warning',
|
|
@@ -91,30 +91,35 @@ onUnmounted(() => {
|
|
|
91
91
|
}"
|
|
92
92
|
v-if="currentNotif !== null"
|
|
93
93
|
>
|
|
94
|
-
<div class="flex items-center">
|
|
94
|
+
<div class="flex items-center gap-2">
|
|
95
95
|
<img
|
|
96
|
-
class="flex-shrink-0 w-
|
|
96
|
+
class="flex-shrink-0 w-6 h-6"
|
|
97
97
|
:src="currentNotif.imgSrc"
|
|
98
98
|
:alt="currentNotif.title"
|
|
99
99
|
v-if="currentNotif.imgSrc"
|
|
100
100
|
/>
|
|
101
101
|
<component
|
|
102
102
|
:is="currentNotif.imgIcon"
|
|
103
|
-
class="flex-shrink-0 w-
|
|
103
|
+
class="flex-shrink-0 w-6 h-6"
|
|
104
104
|
v-else
|
|
105
105
|
/>
|
|
106
|
-
<
|
|
107
|
-
|
|
106
|
+
<h3
|
|
107
|
+
class="text-lg font-medium"
|
|
108
|
+
v-text="currentNotif.title"
|
|
109
|
+
:class="{
|
|
110
|
+
'mb-4': !currentNotif.content,
|
|
111
|
+
}"
|
|
112
|
+
/>
|
|
108
113
|
</div>
|
|
109
114
|
<div
|
|
110
115
|
class="mt-2 mb-4 text-sm"
|
|
111
116
|
v-text="currentNotif.content"
|
|
112
117
|
v-if="currentNotif.content"
|
|
113
118
|
/>
|
|
114
|
-
<div class="flex">
|
|
119
|
+
<div class="flex justify-end gap-2">
|
|
115
120
|
<button
|
|
116
121
|
type="button"
|
|
117
|
-
class="btn
|
|
122
|
+
class="btn neutral small"
|
|
118
123
|
@click="hideNotif"
|
|
119
124
|
aria-label="Close"
|
|
120
125
|
>
|