@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.
@@ -120,7 +120,7 @@ onUnmounted(() => {
120
120
  <div
121
121
  v-if="currentNotif !== null"
122
122
  id="base-notif"
123
- class="p-2 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"
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 -mt-2">
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="flex items-center gap-2">
144
- <img
145
- v-if="currentNotif.imgSrc"
146
- class="flex-shrink-0 w-6 h-6"
147
- :src="currentNotif.imgSrc"
148
- :alt="currentNotif.title"
149
- >
150
- <component
151
- :is="currentNotif.imgIcon"
152
- v-else
153
- class="flex-shrink-0 w-6 h-6"
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
- <!-- Optional content -->
159
- <div
160
- v-if="currentNotif.content"
161
- class="mt-2 text-sm"
162
- v-html="currentNotif.content"
163
- />
164
-
165
- <!-- CTA row (if you need more buttons, just extend it) -->
166
- <div class="flex justify-end gap-2 pt-3">
167
- <button
168
- type="button"
169
- class="btn neutral small"
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.1.51",
3
+ "version": "2.1.53",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/fy-to/FWJS#readme",