@ulu/frontend-vue 0.6.14 → 0.6.16

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.
@@ -1,23 +1,22 @@
1
- import { computed as i, createBlock as a, openBlock as e, Teleport as p, unref as s, createVNode as m, TransitionGroup as u, normalizeClass as _, withCtx as d, createElementBlock as f, Fragment as k, renderList as T, resolveDynamicComponent as g } from "vue";
1
+ import { computed as i, createBlock as r, openBlock as e, Teleport as p, unref as s, createVNode as u, TransitionGroup as m, normalizeClass as _, withCtx as d, createElementBlock as f, Fragment as k, renderList as T, resolveDynamicComponent as g } from "vue";
2
2
  import { store as v } from "./store.js";
3
- /* empty css */
4
- const h = {
3
+ const C = {
5
4
  __name: "UluToastDisplay",
6
5
  setup(x) {
7
6
  const { toasts: c, pluginOptions: o } = v, l = i(() => {
8
7
  const { position: n } = o;
9
- return n.map((r) => `toast-container--${r}`);
8
+ return n.map((a) => `toast-container--${a}`);
10
9
  });
11
- return (n, r) => (e(), a(p, {
10
+ return (n, a) => (e(), r(p, {
12
11
  to: s(o).teleportTo
13
12
  }, [
14
- m(u, {
13
+ u(m, {
15
14
  class: _(["toast-container", l.value]),
16
15
  name: "toast-animation",
17
16
  tag: "div"
18
17
  }, {
19
18
  default: d(() => [
20
- (e(!0), f(k, null, T(s(c), (t) => (e(), a(g(t.component), {
19
+ (e(!0), f(k, null, T(s(c), (t) => (e(), r(g(t.component), {
21
20
  key: t.uid,
22
21
  toast: t
23
22
  }, null, 8, ["toast"]))), 128))
@@ -28,5 +27,5 @@ const h = {
28
27
  }
29
28
  };
30
29
  export {
31
- h as default
30
+ C as default
32
31
  };
@@ -55,7 +55,7 @@
55
55
  </div>
56
56
  <div
57
57
  v-if="$slots.footer"
58
- class="site-modal__footer"
58
+ class="modal__footer"
59
59
  :class="classes.footer"
60
60
  >
61
61
  <slot name="footer" :close="close"/>
@@ -26,21 +26,4 @@
26
26
  const { position } = pluginOptions;
27
27
  return position.map(p => `toast-container--${ p }`);
28
28
  });
29
- </script>
30
-
31
- <style lang="css">
32
- .toast-animation-move,
33
- .toast-animation-enter-active,
34
- .toast-animation-leave-active {
35
- transition: all 0.3s ease;
36
- }
37
- .toast-animation-enter-from,
38
- .toast-animation-leave-to {
39
- opacity: 0;
40
- transform: translateX(30px);
41
- }
42
- .toast-animation-leave-active {
43
- position: absolute;
44
- width: 100%;
45
- }
46
- </style>
29
+ </script>
@@ -180,18 +180,18 @@ $config: (
180
180
  }
181
181
  }
182
182
 
183
- // Vue animation
184
- #{ $prefix }--animation-move,
185
- #{ $prefix }--animation-enter-active,
186
- #{ $prefix }--animation-leave-active {
183
+ // Vue transition group animation on container
184
+ .toast-animation-move,
185
+ .toast-animation-enter-active,
186
+ .toast-animation-leave-active {
187
187
  transition: all 0.3s ease;
188
188
  }
189
- #{ $prefix }--animation-enter-from,
190
- #{ $prefix }--animation-leave-to {
189
+ .toast-animation-enter-from,
190
+ .toast-animation-leave-to {
191
191
  opacity: 0;
192
192
  transform: translateX(30px);
193
193
  }
194
- #{ $prefix }--animation-leave-active {
194
+ .toast-animation-leave-active {
195
195
  position: absolute;
196
196
  width: 100%;
197
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend-vue",
3
- "version": "0.6.14",
3
+ "version": "0.6.16",
4
4
  "description": "A modular, tree-shakeable Vue 3 component library for the Ulu Frontend theming system, plus general utilities for Vue development",
5
5
  "type": "module",
6
6
  "files": [