@kiva/kv-components 6.59.0 → 6.59.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.
@@ -1,8 +1,8 @@
1
- import { getCurrentInstance as u, computed as d, resolveComponent as m, openBlock as f, createElementBlock as w, createElementVNode as h, normalizeClass as i, renderSlot as p, createVNode as v } from "vue";
2
- import C from "../KvMaterialIcon.js";
1
+ import { getCurrentInstance as u, computed as d, resolveComponent as m, openBlock as f, createElementBlock as w, withModifiers as h, createElementVNode as p, normalizeClass as i, renderSlot as v, createVNode as C } from "vue";
2
+ import M from "../KvMaterialIcon.js";
3
3
  import x from "../../_virtual/_plugin-vue_export-helper.js";
4
- const M = {
5
- components: { KvMaterialIcon: C },
4
+ const y = {
5
+ components: { KvMaterialIcon: M },
6
6
  props: {
7
7
  refName: {
8
8
  type: String,
@@ -64,28 +64,28 @@ const M = {
64
64
  }
65
65
  };
66
66
  }
67
- }, y = ["href"];
68
- function k(e, n, o, r, a, c) {
67
+ }, k = ["href"];
68
+ function I(e, n, o, r, a, c) {
69
69
  const l = m("KvMaterialIcon");
70
70
  return f(), w("a", {
71
71
  ref: o.refName,
72
72
  class: "tw-py-1 tw-no-underline hover:tw-no-underline tw-text-primary hover:tw-text-action tw-items-center tw-cursor-pointer",
73
73
  href: o.href,
74
74
  onMouseover: n[0] || (n[0] = (...t) => r.handleMouseOver && r.handleMouseOver(...t)),
75
- onTouchstart: n[1] || (n[1] = (...t) => r.handleTouchStart && r.handleTouchStart(...t))
75
+ onTouchstart: n[1] || (n[1] = h((...t) => r.handleTouchStart && r.handleTouchStart(...t), ["prevent"]))
76
76
  }, [
77
- h("div", {
77
+ p("div", {
78
78
  class: i(["tw-flex tw-items-center", r.computedClass])
79
79
  }, [
80
- p(e.$slots, "default"),
81
- v(l, {
80
+ v(e.$slots, "default"),
81
+ C(l, {
82
82
  class: i(["tw-inline tw-w-3 tw-ml-0.5 tw-transition-transform tw-duration-300", { "tw-rotate-180": o.openMenuItem === o.menuComponent }]),
83
83
  icon: o.dropdownIcon
84
84
  }, null, 8, ["class", "icon"])
85
85
  ], 2)
86
- ], 40, y);
86
+ ], 40, k);
87
87
  }
88
- const _ = /* @__PURE__ */ x(M, [["render", k]]);
88
+ const O = /* @__PURE__ */ x(y, [["render", I]]);
89
89
  export {
90
- _ as default
90
+ O as default
91
91
  };
@@ -1,7 +1,7 @@
1
1
  import d from "./KvHeaderMenuLink.js";
2
- import { resolveComponent as u, openBlock as a, createElementBlock as i, createVNode as s, withCtx as o, createTextVNode as r, createBlock as l, createCommentVNode as f } from "vue";
3
- import m from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = {
2
+ import { resolveComponent as u, resolveDirective as m, openBlock as t, createElementBlock as p, withDirectives as a, createBlock as i, withCtx as l, createTextVNode as s, createCommentVNode as f } from "vue";
3
+ import v from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const k = {
5
5
  components: {
6
6
  KvHeaderMenuLink: d
7
7
  },
@@ -24,72 +24,88 @@ const p = {
24
24
  }
25
25
  }
26
26
  }, w = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium tw-px-2.5" };
27
- function y(b, e, n, k, v, x) {
28
- const t = u("kv-header-menu-link");
29
- return a(), i("nav", w, [
30
- s(t, {
27
+ function y(c, o, n, b, T, D) {
28
+ const e = u("kv-header-menu-link"), r = m("kv-track-event");
29
+ return t(), p("nav", w, [
30
+ a((t(), i(e, {
31
31
  href: n.myDashboardUrl,
32
32
  class: "md:tw-hidden"
33
33
  }, {
34
- default: o(() => e[0] || (e[0] = [
35
- r(" My Dashboard ")
34
+ default: l(() => o[0] || (o[0] = [
35
+ s(" My Dashboard ")
36
36
  ])),
37
37
  _: 1
38
- }, 8, ["href"]),
39
- s(t, { href: "/portfolio" }, {
40
- default: o(() => e[1] || (e[1] = [
41
- r(" Portfolio ")
38
+ }, 8, ["href"])), [
39
+ [r, ["TopNav", "click-Dashboard"]]
40
+ ]),
41
+ a((t(), i(e, { href: "/portfolio" }, {
42
+ default: l(() => o[1] || (o[1] = [
43
+ s(" Portfolio ")
42
44
  ])),
43
45
  _: 1
44
- }),
45
- s(t, { href: "/teams/my-teams" }, {
46
- default: o(() => e[2] || (e[2] = [
47
- r(" My Teams ")
46
+ })), [
47
+ [r, ["TopNav", "click-Portfolio-Portfolio"]]
48
+ ]),
49
+ a((t(), i(e, { href: "/teams/my-teams" }, {
50
+ default: l(() => o[2] || (o[2] = [
51
+ s(" My Teams ")
48
52
  ])),
49
53
  _: 1
50
- }),
51
- s(t, { href: "/portfolio/donations" }, {
52
- default: o(() => e[3] || (e[3] = [
53
- r(" Donations ")
54
+ })), [
55
+ [r, ["TopNav", "click-Portfolio-My Teams"]]
56
+ ]),
57
+ a((t(), i(e, { href: "/portfolio/donations" }, {
58
+ default: l(() => o[3] || (o[3] = [
59
+ s(" Donations ")
54
60
  ])),
55
61
  _: 1
56
- }),
57
- s(t, { href: "/settings" }, {
58
- default: o(() => e[4] || (e[4] = [
59
- r(" Settings ")
62
+ })), [
63
+ [r, ["TopNav", "click-Portfolio-Donations"]]
64
+ ]),
65
+ a((t(), i(e, { href: "/settings" }, {
66
+ default: l(() => o[4] || (o[4] = [
67
+ s(" Settings ")
60
68
  ])),
61
69
  _: 1
62
- }),
63
- n.isBorrower ? (a(), l(t, {
70
+ })), [
71
+ [r, ["TopNav", "click-Portfolio-Settings"]]
72
+ ]),
73
+ n.isBorrower ? a((t(), i(e, {
64
74
  key: 0,
65
75
  href: "/my/borrower"
66
76
  }, {
67
- default: o(() => e[5] || (e[5] = [
68
- r(" Borrower Dashboard ")
77
+ default: l(() => o[5] || (o[5] = [
78
+ s(" Borrower Dashboard ")
69
79
  ])),
70
80
  _: 1
71
- })) : f("", !0),
72
- n.isTrustee ? (a(), l(t, {
81
+ })), [
82
+ [r, ["TopNav", "click-Portfolio-My borrower Dashboard"]]
83
+ ]) : f("", !0),
84
+ n.isTrustee ? a((t(), i(e, {
73
85
  key: 1,
74
86
  href: "/my/trustee"
75
87
  }, {
76
- default: o(() => e[6] || (e[6] = [
77
- r(" Trustee Dashboard ")
88
+ default: l(() => o[6] || (o[6] = [
89
+ s(" Trustee Dashboard ")
78
90
  ])),
79
91
  _: 1
80
- })) : f("", !0),
81
- s(t, {
92
+ })), [
93
+ [r, ["TopNav", "click-Portfolio-My Trustee Dashboard"]]
94
+ ]) : f("", !0),
95
+ a((t(), i(e, {
82
96
  href: "/ui-logout",
83
97
  class: "tw-border-t tw-border-secondary tw-w-full"
84
98
  }, {
85
- default: o(() => e[7] || (e[7] = [
86
- r(" Sign out ")
99
+ default: l(() => o[7] || (o[7] = [
100
+ s(" Sign out ")
87
101
  ])),
88
102
  _: 1
89
- })
103
+ })), [
104
+ [r, ["TopNav", "click-Portfolio-Sign out"]]
105
+ ])
90
106
  ]);
91
107
  }
92
- const g = /* @__PURE__ */ m(p, [["render", y]]);
108
+ const h = /* @__PURE__ */ v(k, [["render", y]]);
93
109
  export {
94
- g as default
110
+ h as default
95
111
  };
@@ -1 +1 @@
1
- .header-fade-enter-active[data-v-9410d912]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-9410d912]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-9410d912],.header-fade-leave-to[data-v-9410d912]{opacity:0}.header-fade-leave[data-v-9410d912],.header-fade-enter-to[data-v-9410d912]{opacity:1}.bg-opacity-50[data-v-9410d912]{background-color:rgba(var(--bg-action-highlight),.5)}
1
+ .header-fade-enter-active[data-v-8d56e82f]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-8d56e82f]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-8d56e82f],.header-fade-leave-to[data-v-8d56e82f]{opacity:0}.header-fade-leave[data-v-8d56e82f],.header-fade-enter-to[data-v-8d56e82f]{opacity:1}.bg-opacity-50[data-v-8d56e82f]{background-color:rgba(var(--bg-action-highlight),.5)}
@@ -1,18 +1,18 @@
1
- import { ref as a, shallowRef as N, computed as B, onMounted as S, onBeforeUnmount as x, resolveComponent as g, resolveDirective as A, openBlock as w, createBlock as E, withCtx as b, createElementVNode as k, normalizeStyle as h, createVNode as v, Transition as I, withDirectives as _, vShow as C, createElementBlock as K, normalizeClass as O, resolveDynamicComponent as G } from "vue";
2
- import z from "@kiva/kv-tokens";
3
- import P from "./KvWwwHeader/KvHeaderLinkBar.js";
4
- import R from "./KvWwwHeader/KvHeaderLogo.js";
5
- import V from "./KvThemeProvider.js";
6
- import W from "./KvPageContainer.js";
7
- import { throttle as Y } from "../utils/throttle.js";
1
+ import { ref as a, shallowRef as N, computed as B, onMounted as S, onBeforeUnmount as x, resolveComponent as g, resolveDirective as A, openBlock as w, createBlock as E, withCtx as b, createElementVNode as k, normalizeStyle as h, createVNode as v, Transition as I, withDirectives as y, vShow as T, createElementBlock as K, normalizeClass as O, resolveDynamicComponent as G, withModifiers as z } from "vue";
2
+ import P from "@kiva/kv-tokens";
3
+ import R from "./KvWwwHeader/KvHeaderLinkBar.js";
4
+ import V from "./KvWwwHeader/KvHeaderLogo.js";
5
+ import W from "./KvThemeProvider.js";
6
+ import Y from "./KvPageContainer.js";
7
+ import { throttle as j } from "../utils/throttle.js";
8
8
  import "./KvWwwHeader.css";
9
- import j from "../_virtual/_plugin-vue_export-helper.js";
10
- const q = "3.75rem", F = ["lendMenu", "aboutUsLink"], J = {
9
+ import q from "../_virtual/_plugin-vue_export-helper.js";
10
+ const F = "3.75rem", J = ["lendMenu", "aboutUsLink"], Q = {
11
11
  components: {
12
- KvHeaderLinkBar: P,
13
- KvHeaderLogo: R,
14
- KvThemeProvider: V,
15
- KvPageContainer: W
12
+ KvHeaderLinkBar: R,
13
+ KvHeaderLogo: V,
14
+ KvThemeProvider: W,
15
+ KvPageContainer: Y
16
16
  },
17
17
  props: {
18
18
  loggedIn: {
@@ -67,42 +67,42 @@ const q = "3.75rem", F = ["lendMenu", "aboutUsLink"], J = {
67
67
  emits: [
68
68
  "load-lend-menu-data"
69
69
  ],
70
- setup(L, { emit: o }) {
70
+ setup(C, { emit: o }) {
71
71
  const n = a(!0), e = a(null), r = a(!1), i = N(null), u = a(null), d = a({ left: 0, position: "relative" }), m = a(!1), c = a(null);
72
72
  let f;
73
73
  const l = B(() => {
74
74
  var s, t;
75
75
  return ((t = (s = u.value) == null ? void 0 : s.$options) == null ? void 0 : t.name) === "KvHeaderMobileMenu";
76
- }), y = (s, t, p) => {
76
+ }), _ = (s, t, p) => {
77
77
  t ? (c.value = s, clearTimeout(f), i.value !== t && (d.value = { left: 0, position: "relative" }), i.value = t, r.value = !0, p && (d.value = {
78
78
  ...p,
79
79
  position: "absolute"
80
80
  })) : r.value && (f = setTimeout(() => {
81
81
  r.value = !1, i.value = null;
82
82
  }, 100));
83
- }, T = (s) => {
83
+ }, L = (s) => {
84
84
  var t;
85
85
  (t = u.value) == null || t.onLoad(s);
86
86
  }, U = () => {
87
- if (!l.value) return y();
87
+ if (!l.value) return _();
88
88
  }, D = () => {
89
89
  o("load-lend-menu-data");
90
- }, H = () => {
91
- m.value = (window == null ? void 0 : window.innerWidth) < z.breakpoints.md, m.value && F.includes(c.value) && (i.value = null, r.value = !1);
92
- }, M = Y(H, 100);
90
+ }, M = () => {
91
+ m.value = (window == null ? void 0 : window.innerWidth) < P.breakpoints.md, m.value && J.includes(c.value) && (i.value = null, r.value = !1);
92
+ }, H = j(M, 100);
93
93
  return S(() => {
94
- H(), window.addEventListener("resize", M);
94
+ M(), window.addEventListener("resize", H);
95
95
  }), x(() => {
96
- window.removeEventListener("resize", M);
96
+ window.removeEventListener("resize", H);
97
97
  }), {
98
- HEADER_HEIGHT: q,
98
+ HEADER_HEIGHT: F,
99
99
  emitLendMenuEvent: D,
100
100
  isMobile: m,
101
101
  linksVisible: n,
102
102
  menuOpen: r,
103
103
  isMobileMenuActive: l,
104
- onHover: y,
105
- loadMenuData: T,
104
+ onHover: _,
105
+ loadMenuData: L,
106
106
  handleOverlayClick: U,
107
107
  activeHeaderItem: e,
108
108
  menuComponent: i,
@@ -110,11 +110,11 @@ const q = "3.75rem", F = ["lendMenu", "aboutUsLink"], J = {
110
110
  menuPosition: d
111
111
  };
112
112
  }
113
- }, Q = {
113
+ }, X = {
114
114
  href: "/",
115
115
  class: "tw-px-1 tw-py-2 tw-cursor-pointer tw-absolute tw-top-1/2 tw-left-1/2 tw--translate-y-1/2 tw--translate-x-1/2 tw-transition-all tw-duration-300"
116
116
  };
117
- function X(L, o, n, e, r, i) {
117
+ function Z(C, o, n, e, r, i) {
118
118
  const u = g("kv-header-link-bar"), d = g("kv-header-logo"), m = g("kv-page-container"), c = g("kv-theme-provider"), f = A("kv-track-event");
119
119
  return w(), E(c, {
120
120
  tag: "div",
@@ -129,7 +129,7 @@ function X(L, o, n, e, r, i) {
129
129
  default: b(() => [
130
130
  v(I, { name: "header-fade" }, {
131
131
  default: b(() => [
132
- _(v(u, {
132
+ y(v(u, {
133
133
  "logged-in": n.loggedIn,
134
134
  "basket-count": n.basketCount,
135
135
  "login-url": n.loginUrl,
@@ -141,12 +141,12 @@ function X(L, o, n, e, r, i) {
141
141
  balance: n.balance,
142
142
  onItemHover: e.onHover
143
143
  }, null, 8, ["logged-in", "basket-count", "login-url", "open-menu-item", "my-dashboard-url", "lender-name", "lender-image-url", "is-mobile", "balance", "onItemHover"]), [
144
- [C, e.linksVisible]
144
+ [T, e.linksVisible]
145
145
  ])
146
146
  ]),
147
147
  _: 1
148
148
  }),
149
- _((w(), K("a", Q, [
149
+ y((w(), K("a", X, [
150
150
  v(d)
151
151
  ])), [
152
152
  [f, ["TopNav", "click-Logo"]]
@@ -157,10 +157,10 @@ function X(L, o, n, e, r, i) {
157
157
  ], 4),
158
158
  v(I, { name: "header-fade" }, {
159
159
  default: b(() => [
160
- _(k("div", {
160
+ y(k("div", {
161
161
  class: "tw-absolute tw-z-modal tw-h-full tw-inset-x-0 tw-bg-eco-green-4 bg-opacity-50 tw-min-h-screen",
162
162
  style: h({ top: e.HEADER_HEIGHT }),
163
- onTouchstart: o[3] || (o[3] = (...l) => e.handleOverlayClick && e.handleOverlayClick(...l))
163
+ onTouchstart: o[4] || (o[4] = (...l) => e.handleOverlayClick && e.handleOverlayClick(...l))
164
164
  }, [
165
165
  k("div", {
166
166
  class: O(["tw-bg-primary tw-overflow-y-auto", { "tw-min-h-dvh": e.isMobileMenuActive }]),
@@ -168,8 +168,8 @@ function X(L, o, n, e, r, i) {
168
168
  ...e.menuPosition,
169
169
  maxHeight: e.isMobileMenuActive ? "auto" : `calc(100dvh - ${e.HEADER_HEIGHT})`
170
170
  }),
171
- onMouseover: o[1] || (o[1] = (l) => e.onHover(e.activeHeaderItem, e.menuComponent)),
172
- onMouseout: o[2] || (o[2] = (l) => e.onHover())
171
+ onMouseover: o[2] || (o[2] = (l) => e.onHover(e.activeHeaderItem, e.menuComponent)),
172
+ onMouseout: o[3] || (o[3] = (l) => e.onHover())
173
173
  }, [
174
174
  (w(), E(G(e.menuComponent), {
175
175
  ref: "menuComponentInstance",
@@ -183,11 +183,13 @@ function X(L, o, n, e, r, i) {
183
183
  "is-mobile": e.isMobile,
184
184
  "countries-not-lent-to-url": n.countriesNotLentToUrl,
185
185
  onLoadLendMenuData: e.emitLendMenuEvent,
186
- onClosingMenu: o[0] || (o[0] = (l) => e.onHover())
186
+ onClosingMenu: o[0] || (o[0] = (l) => e.onHover()),
187
+ onTouchstart: o[1] || (o[1] = z(() => {
188
+ }, ["stop"]))
187
189
  }, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "show-m-g-upsell-link", "is-mobile", "countries-not-lent-to-url", "onLoadLendMenuData"]))
188
190
  ], 38)
189
191
  ], 36), [
190
- [C, e.menuOpen]
192
+ [T, e.menuOpen]
191
193
  ])
192
194
  ]),
193
195
  _: 1
@@ -196,7 +198,7 @@ function X(L, o, n, e, r, i) {
196
198
  _: 1
197
199
  });
198
200
  }
199
- const ie = /* @__PURE__ */ j(J, [["render", X], ["__scopeId", "data-v-9410d912"]]);
201
+ const se = /* @__PURE__ */ q(Q, [["render", Z], ["__scopeId", "data-v-8d56e82f"]]);
200
202
  export {
201
- ie as default
203
+ se as default
202
204
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.59.0",
3
+ "version": "6.59.2",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -114,5 +114,5 @@
114
114
  "embla-carousel-fade",
115
115
  "popper.js"
116
116
  ],
117
- "gitHead": "c72469590ff52f8d85cd01679685ed3ee9f59dcf"
117
+ "gitHead": "f18fb4d90181546a717f4ef9ca060be9ecc47651"
118
118
  }