@fy-/fws-vue 0.7.0 → 0.7.2

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.
@@ -54,12 +54,11 @@ const onCall = (data: NotifProps) => {
54
54
  content: data.content,
55
55
  ctaText: data.ctaText,
56
56
  ctaLink: data.ctaLink,
57
+ time: data.time,
57
58
  ctaAction: data.ctaAction,
58
59
  };
59
60
 
60
- currentTimeout = setTimeout(() => {
61
- hideNotif();
62
- }, currentNotif.value.time);
61
+ currentTimeout = setTimeout(hideNotif, currentNotif.value.time);
63
62
  };
64
63
 
65
64
  const hideNotif = () => {
@@ -109,7 +108,17 @@ onUnmounted(() => {
109
108
  >
110
109
  {{ currentNotif.title }}
111
110
  </span>
112
- <div class="mb-2 text-sm font-normal" v-if="currentNotif.content">
111
+ <div
112
+ class="mb-2 text-sm font-normal"
113
+ v-if="currentNotif.content"
114
+ :class="{
115
+ 'text-fv-neutral-900 dark:text-white':
116
+ currentNotif.type === 'info',
117
+ 'text-red-900 dark:text-red-300': currentNotif.type === 'warning',
118
+ 'text-green-900 dark:text-green-300':
119
+ currentNotif.type === 'success',
120
+ }"
121
+ >
113
122
  {{ currentNotif.content }}
114
123
  </div>
115
124
  <router-link
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {