nuxt-toastflow 1.0.2-beta.0 → 1.0.2-beta.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.
package/dist/module.js CHANGED
@@ -97,6 +97,7 @@ var module_default = (0, import_kit.defineNuxtModule)({
97
97
  });
98
98
  const toastTemplate = (0, import_kit.addTemplate)({
99
99
  filename: "toastflow/toast.ts",
100
+ write: true,
100
101
  getContents: function() {
101
102
  return [
102
103
  'import { useNuxtApp } from "#app";',
package/dist/module.mjs CHANGED
@@ -81,6 +81,7 @@ var module_default = defineNuxtModule({
81
81
  });
82
82
  const toastTemplate = addTemplate({
83
83
  filename: "toastflow/toast.ts",
84
+ write: true,
84
85
  getContents: function() {
85
86
  return [
86
87
  'import { useNuxtApp } from "#app";',
package/dist/styles.css CHANGED
@@ -248,6 +248,7 @@
248
248
  .tf-toast-motion {
249
249
  width: 100%;
250
250
  transform-origin: center;
251
+ backface-visibility: hidden;
251
252
  }
252
253
 
253
254
  /* MOVE */
@@ -295,6 +296,25 @@
295
296
  transform: translate3d(0, var(--tf-toast-motion-offset), 0) scale(0.96);
296
297
  }
297
298
 
299
+ @media (max-width: 640px) {
300
+ .tf-toast-item[data-position^="top-"] {
301
+ --tf-toast-motion-offset: -18px;
302
+ }
303
+
304
+ .tf-toast-item[data-position^="bottom-"] {
305
+ --tf-toast-motion-offset: 18px;
306
+ }
307
+
308
+ .Toastflow__animation-enter-from > .tf-toast-motion,
309
+ .Toastflow__animation-appear-from > .tf-toast-motion {
310
+ transform: translate3d(0, var(--tf-toast-motion-offset), 0) scale(0.98);
311
+ }
312
+
313
+ .Toastflow__animation-leave-to > .tf-toast-motion {
314
+ transform: translate3d(0, var(--tf-toast-motion-offset), 0) scale(0.98);
315
+ }
316
+ }
317
+
298
318
  /* CLEAR ALL */
299
319
  .Toastflow__animation-clearAll .tf-toast-motion {
300
320
  animation: Toastflow__clearAll-kf var(--tf-toast-animation-in-duration)
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/adrianjanocko/toastflow.git",
22
22
  "directory": "packages/nuxt"
23
23
  },
24
- "version": "1.0.2-beta.0",
24
+ "version": "1.0.2-beta.2",
25
25
  "main": "./dist/module.js",
26
26
  "module": "./dist/module.mjs",
27
27
  "types": "./dist/module.d.ts",
@@ -56,8 +56,8 @@
56
56
  "nuxt": "^3.0.0 || ^4.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@nuxt/kit": "^4.4.2",
60
- "vue-toastflow": "^1.2.0-beta.3"
59
+ "@nuxt/kit": "^4.4.6",
60
+ "vue-toastflow": "^1.2.0-beta.5"
61
61
  },
62
62
  "devDependencies": {
63
63
  "tsup": "^8.5.1",