@kiva/kv-components 6.47.1 → 6.48.0

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,14 +1,14 @@
1
- import { ref as i, shallowRef as C, resolveComponent as c, resolveDirective as H, openBlock as v, createBlock as h, withCtx as f, createElementVNode as m, createVNode as u, Transition as k, withDirectives as g, vShow as p, createElementBlock as L, normalizeStyle as M, resolveDynamicComponent as B } from "vue";
1
+ import { ref as i, shallowRef as L, resolveComponent as c, resolveDirective as M, openBlock as v, createBlock as y, withCtx as f, createElementVNode as m, createVNode as u, Transition as k, withDirectives as g, vShow as p, createElementBlock as C, normalizeStyle as H, resolveDynamicComponent as B } from "vue";
2
2
  import D from "./KvWwwHeader/KvHeaderLinkBar.js";
3
- import x from "./KvWwwHeader/KvHeaderLogo.js";
4
- import N from "./KvThemeProvider.js";
3
+ import U from "./KvWwwHeader/KvHeaderLogo.js";
4
+ import x from "./KvThemeProvider.js";
5
5
  import "./KvWwwHeader.css";
6
- import T from "../_virtual/_plugin-vue_export-helper.js";
7
- const U = {
6
+ import N from "../_virtual/_plugin-vue_export-helper.js";
7
+ const T = {
8
8
  components: {
9
9
  KvHeaderLinkBar: D,
10
- KvHeaderLogo: x,
11
- KvThemeProvider: N
10
+ KvHeaderLogo: U,
11
+ KvThemeProvider: x
12
12
  },
13
13
  props: {
14
14
  loggedIn: {
@@ -54,35 +54,39 @@ const U = {
54
54
  isMobile: {
55
55
  type: Boolean,
56
56
  default: !1
57
+ },
58
+ showMGUpsellLink: {
59
+ type: Boolean,
60
+ default: !1
57
61
  }
58
62
  },
59
63
  emits: [
60
64
  "load-lend-menu-data"
61
65
  ],
62
66
  setup(I, { emit: n }) {
63
- const e = i(!0), t = i(null), a = i(!1), l = C(null), d = i(null), r = i({ left: 0, position: "relative" });
64
- let s;
67
+ const e = i(!0), t = i(null), l = i(!1), a = L(null), s = i(null), r = i({ left: 0, position: "relative" });
68
+ let d;
65
69
  return {
66
70
  emitLendMenuEvent: () => {
67
71
  n("load-lend-menu-data");
68
72
  },
69
73
  linksVisible: e,
70
- menuOpen: a,
71
- onHover: (_, o, y) => {
72
- o ? (clearTimeout(s), l.value !== o && (r.value = { left: 0, position: "relative" }), l.value = o, a.value = !0, y && (r.value = {
73
- ...y,
74
+ menuOpen: l,
75
+ onHover: (_, o, h) => {
76
+ o ? (clearTimeout(d), a.value !== o && (r.value = { left: 0, position: "relative" }), a.value = o, l.value = !0, h && (r.value = {
77
+ ...h,
74
78
  position: "absolute"
75
- })) : a.value && (s = setTimeout(() => {
76
- a.value = !1, l.value = null;
79
+ })) : l.value && (d = setTimeout(() => {
80
+ l.value = !1, a.value = null;
77
81
  }, 200));
78
82
  },
79
83
  loadMenuData: (_) => {
80
84
  var o;
81
- (o = d.value) == null || o.onLoad(_);
85
+ (o = s.value) == null || o.onLoad(_);
82
86
  },
83
87
  activeHeaderItem: t,
84
- menuComponent: l,
85
- menuComponentInstance: d,
88
+ menuComponent: a,
89
+ menuComponentInstance: s,
86
90
  menuPosition: r
87
91
  };
88
92
  }
@@ -96,17 +100,14 @@ const U = {
96
100
  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",
97
101
  style: { top: "3.75rem" }
98
102
  }, V = { class: "header-margins tw-px-2.5" };
99
- function z(I, n, e, t, a, l) {
100
- const d = c("kv-header-link-bar"), r = c("kv-header-logo"), s = c("kv-theme-provider"), b = H("kv-track-event");
101
- return v(), h(s, {
102
- tag: "div",
103
- class: "tw-border-b tw-border-tertiary"
104
- }, {
103
+ function z(I, n, e, t, l, a) {
104
+ const s = c("kv-header-link-bar"), r = c("kv-header-logo"), d = c("kv-theme-provider"), w = M("kv-track-event");
105
+ return v(), y(d, { tag: "div" }, {
105
106
  default: f(() => [
106
107
  m("nav", S, [
107
108
  u(k, { name: "header-fade" }, {
108
109
  default: f(() => [
109
- g(u(d, {
110
+ g(u(s, {
110
111
  "logged-in": e.loggedIn,
111
112
  "basket-count": e.basketCount,
112
113
  "login-url": e.loginUrl,
@@ -123,10 +124,10 @@ function z(I, n, e, t, a, l) {
123
124
  ]),
124
125
  _: 1
125
126
  }),
126
- g((v(), L("a", E, [
127
+ g((v(), C("a", E, [
127
128
  u(r)
128
129
  ])), [
129
- [b, ["TopNav", "click-Logo"]]
130
+ [w, ["TopNav", "click-Logo"]]
130
131
  ])
131
132
  ]),
132
133
  u(k, { name: "header-fade" }, {
@@ -134,12 +135,12 @@ function z(I, n, e, t, a, l) {
134
135
  g(m("div", K, [
135
136
  m("div", {
136
137
  class: "tw-bg-primary",
137
- style: M(t.menuPosition),
138
- onMouseover: n[0] || (n[0] = (w) => t.onHover(t.activeHeaderItem, t.menuComponent)),
139
- onMouseout: n[1] || (n[1] = (w) => t.onHover())
138
+ style: H(t.menuPosition),
139
+ onMouseover: n[0] || (n[0] = (b) => t.onHover(t.activeHeaderItem, t.menuComponent)),
140
+ onMouseout: n[1] || (n[1] = (b) => t.onHover())
140
141
  }, [
141
142
  m("div", V, [
142
- (v(), h(B(t.menuComponent), {
143
+ (v(), y(B(t.menuComponent), {
143
144
  ref: "menuComponentInstance",
144
145
  "logged-in": e.loggedIn,
145
146
  "login-url": e.loginUrl,
@@ -147,8 +148,9 @@ function z(I, n, e, t, a, l) {
147
148
  "is-borrower": e.isBorrower,
148
149
  "is-trustee": e.isTrustee,
149
150
  "my-dashboard-url": e.myDashboardUrl,
151
+ "show-m-g-upsell-link": e.showMGUpsellLink,
150
152
  onLoadLendMenuData: t.emitLendMenuEvent
151
- }, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "onLoadLendMenuData"]))
153
+ }, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "show-m-g-upsell-link", "onLoadLendMenuData"]))
152
154
  ])
153
155
  ], 36)
154
156
  ], 512), [
@@ -161,7 +163,7 @@ function z(I, n, e, t, a, l) {
161
163
  _: 1
162
164
  });
163
165
  }
164
- const F = /* @__PURE__ */ T(U, [["render", z], ["__scopeId", "data-v-269f8c8b"]]);
166
+ const A = /* @__PURE__ */ N(T, [["render", z], ["__scopeId", "data-v-588c2857"]]);
165
167
  export {
166
- F as default
168
+ A as default
167
169
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.47.1",
3
+ "version": "6.48.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -113,5 +113,5 @@
113
113
  "embla-carousel-fade",
114
114
  "popper.js"
115
115
  ],
116
- "gitHead": "6dc91354845444f1142f669900f71c313c0524a3"
116
+ "gitHead": "16c3d26321c8cb8cc7915fc55e60bcd1616de1f3"
117
117
  }