@fy-/fws-vue 2.1.51 → 2.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.
- package/components/ui/DefaultNotif.vue +35 -33
- package/package.json +1 -1
|
@@ -120,7 +120,7 @@ onUnmounted(() => {
|
|
|
120
120
|
<div
|
|
121
121
|
v-if="currentNotif !== null"
|
|
122
122
|
id="base-notif"
|
|
123
|
-
class="
|
|
123
|
+
class=" mb-4 fixed bottom-4 right-8 !z-[2000] bg-fv-neutral-50/[.6] dark:bg-neutral-800/[.6] rounded-lg border overflow-hidden shadow-lg"
|
|
124
124
|
role="alert"
|
|
125
125
|
:class="{
|
|
126
126
|
'text-fv-neutral-800 border-fv-neutral-300 dark:text-fv-neutral-400 dark:border-fv-neutral-600':
|
|
@@ -133,46 +133,48 @@ onUnmounted(() => {
|
|
|
133
133
|
currentNotif.type === 'secret',
|
|
134
134
|
}"
|
|
135
135
|
>
|
|
136
|
-
<div class="relative h-[4px] bg-fv-neutral-900/[.2] rounded-full overflow-hidden
|
|
136
|
+
<div class="relative h-[4px] bg-fv-neutral-900/[.2] rounded-full overflow-hidden ">
|
|
137
137
|
<!-- We re-use text color (text-*) as background or define a custom color -->
|
|
138
138
|
<div
|
|
139
139
|
class="absolute left-0 top-0 h-full bg-current transition-[width]"
|
|
140
140
|
:style="{ width: `${progress}%` }"
|
|
141
141
|
/>
|
|
142
142
|
</div>
|
|
143
|
-
<div class="
|
|
144
|
-
<
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
143
|
+
<div class="p-2">
|
|
144
|
+
<div class="flex items-center gap-2">
|
|
145
|
+
<img
|
|
146
|
+
v-if="currentNotif.imgSrc"
|
|
147
|
+
class="flex-shrink-0 w-6 h-6"
|
|
148
|
+
:src="currentNotif.imgSrc"
|
|
149
|
+
:alt="currentNotif.title"
|
|
150
|
+
>
|
|
151
|
+
<component
|
|
152
|
+
:is="currentNotif.imgIcon"
|
|
153
|
+
v-else
|
|
154
|
+
class="flex-shrink-0 w-6 h-6"
|
|
155
|
+
/>
|
|
156
|
+
<h3 class="text-lg font-medium" v-text="currentNotif.title" />
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<!-- Optional content -->
|
|
160
|
+
<div
|
|
161
|
+
v-if="currentNotif.content"
|
|
162
|
+
class="mt-2 text-sm prose-sm prose-invert"
|
|
163
|
+
v-html="currentNotif.content"
|
|
154
164
|
/>
|
|
155
|
-
<h3 class="text-lg font-medium" v-text="currentNotif.title" />
|
|
156
|
-
</div>
|
|
157
165
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
aria-label="Close"
|
|
171
|
-
@click="hideNotif"
|
|
172
|
-
>
|
|
173
|
-
<!-- i18n example, or plain text like "Dismiss" -->
|
|
174
|
-
{{ $t("dismiss_cta") }}
|
|
175
|
-
</button>
|
|
166
|
+
<!-- CTA row (if you need more buttons, just extend it) -->
|
|
167
|
+
<div class="flex justify-end gap-2 pt-3">
|
|
168
|
+
<button
|
|
169
|
+
type="button"
|
|
170
|
+
class="btn neutral small"
|
|
171
|
+
aria-label="Close"
|
|
172
|
+
@click="hideNotif"
|
|
173
|
+
>
|
|
174
|
+
<!-- i18n example, or plain text like "Dismiss" -->
|
|
175
|
+
{{ $t("dismiss_cta") }}
|
|
176
|
+
</button>
|
|
177
|
+
</div>
|
|
176
178
|
</div>
|
|
177
179
|
</div>
|
|
178
180
|
</ScaleTransition>
|