@kiva/kv-components 6.59.0 → 6.59.1

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 +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.1",
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": "5e81fd793bb59057127a7ce5aa7729b5a8fdd879"
118
118
  }