@ulu/frontend-vue 0.6.18 → 0.6.19

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,4 +1,4 @@
1
- import { computed as f, createElementBlock as a, openBlock as s, normalizeClass as e, createCommentVNode as n, createElementVNode as r, renderSlot as m, createBlock as B, toDisplayString as d, Fragment as g, renderList as S, createVNode as h, nextTick as E } from "vue";
1
+ import { computed as f, createElementBlock as a, openBlock as o, normalizeClass as e, createCommentVNode as n, createElementVNode as r, renderSlot as m, createBlock as B, toDisplayString as d, Fragment as g, renderList as S, createVNode as h, nextTick as E } from "vue";
2
2
  import v from "../../components/elements/UluIcon.vue.js";
3
3
  import { mergeClassLookups as L } from "../../utils/props.js";
4
4
  const $ = ["onClick"], T = {
@@ -23,16 +23,16 @@ const $ = ["onClick"], T = {
23
23
  actions: "type-small-x",
24
24
  action: "button button--small button--outline",
25
25
  closeButton: "button button--icon button--transparent"
26
- }, i = t, o = f(() => L(
26
+ }, u = t, s = f(() => L(
27
27
  k,
28
- i.classes,
29
- i.toast?.classes
28
+ u.classes,
29
+ u.toast?.classes
30
30
  )), y = (l, c) => {
31
- i.toast.close(), E(() => {
32
- c(l, i.toast, c);
31
+ u.toast.close(), E(() => {
32
+ c(l, u.toast, c);
33
33
  });
34
34
  };
35
- return (l, c) => (s(), a("div", {
35
+ return (l, c) => (o(), a("div", {
36
36
  class: e(["toast", [
37
37
  {
38
38
  "toast--persistent": !t.toast.duration
@@ -40,52 +40,52 @@ const $ = ["onClick"], T = {
40
40
  t.toast?.class
41
41
  ]])
42
42
  }, [
43
- t.toast.icon || l.$slots.icon ? (s(), a("div", {
43
+ t.toast.icon || l.$slots.icon ? (o(), a("div", {
44
44
  key: 0,
45
- class: e(["toast__icon", o.value.icon])
45
+ class: e(["toast__icon", s.value.icon])
46
46
  }, [
47
47
  m(l.$slots, "icon", { toast: t.toast }, () => [
48
- t.toast.icon ? (s(), B(v, {
48
+ t.toast.icon ? (o(), B(v, {
49
49
  key: 0,
50
50
  icon: t.toast.icon
51
51
  }, null, 8, ["icon"])) : n("", !0)
52
52
  ])
53
53
  ], 2)) : n("", !0),
54
54
  r("div", {
55
- class: e(["toast__content", o.value.content])
55
+ class: e(["toast__content", s.value.content])
56
56
  }, [
57
57
  m(l.$slots, "content", { toast: t.toast }, () => [
58
- t.toast.title ? (s(), a("div", {
58
+ t.toast.title ? (o(), a("div", {
59
59
  key: 0,
60
- class: e(["toast__header", o.value.header])
60
+ class: e(["toast__header", s.value.header])
61
61
  }, [
62
62
  r("strong", {
63
- class: e(["toast__title", o.value.title])
63
+ class: e(["toast__title", s.value.title])
64
64
  }, d(t.toast.title), 3),
65
- t.toast.date ? (s(), a("span", {
65
+ t.toast.date ? (o(), a("span", {
66
66
  key: 0,
67
- class: e(["toast__date", o.value.date])
67
+ class: e(["toast__date", s.value.date])
68
68
  }, d(t.toast.date), 3)) : n("", !0)
69
69
  ], 2)) : n("", !0),
70
- t.toast.description ? (s(), a("div", {
70
+ t.toast.description ? (o(), a("div", {
71
71
  key: 1,
72
- class: e(["toast__body", o.value.body])
72
+ class: e(["toast__body", s.value.body])
73
73
  }, d(t.toast.description), 3)) : n("", !0)
74
74
  ])
75
75
  ], 2),
76
- t.toast.actions?.length ? (s(), a("div", {
76
+ t.toast.actions?.length ? (o(), a("div", {
77
77
  key: 1,
78
- class: e(["toast__actions", o.value.actions])
78
+ class: e(["toast__actions", s.value.actions])
79
79
  }, [
80
- (s(!0), a(g, null, S(t.toast.actions, (u, b) => (s(), a("button", {
80
+ (o(!0), a(g, null, S(t.toast.actions, (i, b) => (o(), a("button", {
81
81
  key: b,
82
- class: e(["toast__action", o.value.action]),
83
- onClick: (C) => y(C, u)
84
- }, d(u.label), 11, $))), 128))
82
+ class: e(["toast__action", [s.value.action, i.class]]),
83
+ onClick: (C) => y(C, i)
84
+ }, d(i.label), 11, $))), 128))
85
85
  ], 2)) : n("", !0),
86
86
  r("button", {
87
- class: e(["toast__close", o.value.closeButton]),
88
- onClick: c[0] || (c[0] = (...u) => t.toast.close && t.toast.close(...u))
87
+ class: e(["toast__close", s.value.closeButton]),
88
+ onClick: c[0] || (c[0] = (...i) => t.toast.close && t.toast.close(...i))
89
89
  }, [
90
90
  h(v, { icon: "type:close" })
91
91
  ], 2)
@@ -36,7 +36,7 @@
36
36
  v-for="(action, index) in toast.actions"
37
37
  :key="index"
38
38
  class="toast__action"
39
- :class="resolvedClasses.action"
39
+ :class="[resolvedClasses.action, action.class]"
40
40
  @click="handleAction($event, action)"
41
41
  >
42
42
  {{ action.label }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend-vue",
3
- "version": "0.6.18",
3
+ "version": "0.6.19",
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": [