@kiva/kv-components 6.52.7 → 6.52.8

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
- .mobile-link[data-v-c5a33b4b]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-c5a33b4b]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
1
+ .mobile-link[data-v-dc4a2676]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-dc4a2676]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
@@ -1,10 +1,11 @@
1
1
  import { mdiClose as f } from "@mdi/js";
2
2
  import b from "../KvAccordionItem.js";
3
3
  import h from "../KvMaterialIcon.js";
4
- import { resolveComponent as p, resolveDirective as g, openBlock as t, createElementBlock as o, createBlock as _, createCommentVNode as y, createVNode as u, withCtx as a, createElementVNode as r, Fragment as N, renderList as x, withDirectives as n, toDisplayString as m, createTextVNode as s } from "vue";
4
+ import { resolveComponent as u, resolveDirective as g, openBlock as t, createElementBlock as o, createBlock as _, createCommentVNode as y, createVNode as p, withCtx as r, createElementVNode as a, Fragment as N, renderList as K, withDirectives as n, toDisplayString as m, createTextVNode as s } from "vue";
5
5
  import "./KvHeaderMobileMenu.css";
6
- import I from "../../_virtual/_plugin-vue_export-helper.js";
7
- const K = {
6
+ import x from "../../_virtual/_plugin-vue_export-helper.js";
7
+ const I = {
8
+ name: "KvHeaderMobileMenu",
8
9
  components: {
9
10
  KvAccordionItem: b,
10
11
  KvMaterialIcon: h
@@ -55,19 +56,19 @@ const K = {
55
56
  ]
56
57
  };
57
58
  }
58
- }, T = { class: "tw--mt-0.5 tw-pb-0.5 tw-gap-2 tw-flex tw-flex-col tw-items-end md:tw-hidden tw-font-medium tw-p-2.5" }, C = { class: "tw-flex tw-flex-col tw-gap-2 tw-pl-1" }, M = ["href"], E = { class: "tw-text-secondary tw-font-book" }, B = { class: "tw-flex tw-flex-col tw-gap-2 tw-pb-2 tw-pl-1" }, D = {
59
+ }, T = { class: "tw--mt-0.5 tw-pb-0.5 tw-gap-2 tw-flex tw-flex-col tw-items-end md:tw-hidden tw-font-medium tw-p-2.5" }, M = { class: "tw-flex tw-flex-col tw-gap-2 tw-pl-1" }, C = ["href"], E = { class: "tw-text-secondary tw-font-book" }, B = { class: "tw-flex tw-flex-col tw-gap-2 tw-pb-2 tw-pl-1" }, D = {
59
60
  href: "/about",
60
61
  class: "mobile-link"
61
62
  }, A = {
62
63
  href: "/about/how",
63
64
  class: "mobile-link"
64
- }, V = {
65
+ }, H = {
65
66
  href: "/about/where-kiva-works",
66
67
  class: "mobile-link"
67
- }, $ = {
68
+ }, V = {
68
69
  href: "/impact",
69
70
  class: "mobile-link"
70
- }, H = {
71
+ }, $ = {
71
72
  href: "/about/leadership",
72
73
  class: "mobile-link"
73
74
  }, F = {
@@ -80,33 +81,33 @@ const K = {
80
81
  href: "/about/due-diligence",
81
82
  class: "mobile-link"
82
83
  };
83
- function S(k, e, v, q, c, z) {
84
- const w = p("KvMaterialIcon"), d = p("KvAccordionItem"), i = g("kv-track-event");
84
+ function S(v, e, k, q, c, z) {
85
+ const w = u("KvMaterialIcon"), d = u("KvAccordionItem"), i = g("kv-track-event");
85
86
  return t(), o("nav", T, [
86
- v.isMobile ? (t(), _(w, {
87
+ k.isMobile ? (t(), _(w, {
87
88
  key: 0,
88
89
  icon: c.mdiClose,
89
90
  class: "tw-cursor-pointer",
90
- onClick: e[0] || (e[0] = (l) => k.$emit("closing-menu"))
91
+ onClick: e[0] || (e[0] = (l) => v.$emit("closing-menu"))
91
92
  }, null, 8, ["icon"])) : y("", !0),
92
- u(d, {
93
+ p(d, {
93
94
  id: "accordion-take-action-menu",
94
95
  open: "",
95
96
  class: "tw-w-full tw-border-b-0"
96
97
  }, {
97
- header: a(() => e[1] || (e[1] = [
98
- r("h3", { class: "tw-pb-0.5" }, " Take action ", -1)
98
+ header: r(() => e[1] || (e[1] = [
99
+ a("h3", { class: "tw-pb-0.5" }, " Take action ", -1)
99
100
  ])),
100
- default: a(() => [
101
- r("div", C, [
102
- (t(!0), o(N, null, x(c.menuItems, (l) => n((t(), o("div", {
101
+ default: r(() => [
102
+ a("div", M, [
103
+ (t(!0), o(N, null, K(c.menuItems, (l) => n((t(), o("div", {
103
104
  key: l.title
104
105
  }, [
105
- r("a", {
106
+ a("a", {
106
107
  href: l.url,
107
108
  class: "mobile-link"
108
- }, m(l.title), 9, M),
109
- r("p", E, m(l.description), 1)
109
+ }, m(l.title), 9, C),
110
+ a("p", E, m(l.description), 1)
110
111
  ])), [
111
112
  [i, ["TopNav", `click-menu-${l.trackEvent}`]]
112
113
  ])), 128))
@@ -114,15 +115,15 @@ function S(k, e, v, q, c, z) {
114
115
  ]),
115
116
  _: 1
116
117
  }),
117
- u(d, {
118
+ p(d, {
118
119
  id: "accordion-about-menu",
119
120
  class: "tw-w-full tw-pb-1"
120
121
  }, {
121
- header: a(() => e[2] || (e[2] = [
122
- r("h3", { class: "tw-pb-0.5" }, " About ", -1)
122
+ header: r(() => e[2] || (e[2] = [
123
+ a("h3", { class: "tw-pb-0.5" }, " About ", -1)
123
124
  ])),
124
- default: a(() => [
125
- r("div", B, [
125
+ default: r(() => [
126
+ a("div", B, [
126
127
  n((t(), o("a", D, e[3] || (e[3] = [
127
128
  s("About us")
128
129
  ]))), [
@@ -133,17 +134,17 @@ function S(k, e, v, q, c, z) {
133
134
  ]))), [
134
135
  [i, ["TopNav", "click-menu-how-kiva-works"]]
135
136
  ]),
136
- n((t(), o("a", V, e[5] || (e[5] = [
137
+ n((t(), o("a", H, e[5] || (e[5] = [
137
138
  s("Where Kiva works")
138
139
  ]))), [
139
140
  [i, ["TopNav", "click-menu-where-kiva-works"]]
140
141
  ]),
141
- n((t(), o("a", $, e[6] || (e[6] = [
142
+ n((t(), o("a", V, e[6] || (e[6] = [
142
143
  s("Impact")
143
144
  ]))), [
144
145
  [i, ["TopNav", "click-menu-impact"]]
145
146
  ]),
146
- n((t(), o("a", H, e[7] || (e[7] = [
147
+ n((t(), o("a", $, e[7] || (e[7] = [
147
148
  s("Leadership")
148
149
  ]))), [
149
150
  [i, ["TopNav", "click-menu-leadership"]]
@@ -169,7 +170,7 @@ function S(k, e, v, q, c, z) {
169
170
  })
170
171
  ]);
171
172
  }
172
- const Q = /* @__PURE__ */ I(K, [["render", S], ["__scopeId", "data-v-c5a33b4b"]]);
173
+ const Q = /* @__PURE__ */ x(I, [["render", S], ["__scopeId", "data-v-dc4a2676"]]);
173
174
  export {
174
175
  Q as default
175
176
  };
@@ -1 +1 @@
1
- .header-fade-enter-active[data-v-8196be34]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-8196be34]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-8196be34],.header-fade-leave-to[data-v-8196be34]{opacity:0}.header-fade-leave[data-v-8196be34],.header-fade-enter-to[data-v-8196be34]{opacity:1}.bg-opacity-50[data-v-8196be34]{background-color:rgba(var(--bg-action-highlight),.5)}
1
+ .header-fade-enter-active[data-v-87116c5e]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-87116c5e]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-87116c5e],.header-fade-leave-to[data-v-87116c5e]{opacity:0}.header-fade-leave[data-v-87116c5e],.header-fade-enter-to[data-v-87116c5e]{opacity:1}.bg-opacity-50[data-v-87116c5e]{background-color:rgba(var(--bg-action-highlight),.5)}
@@ -1,18 +1,18 @@
1
- import { ref as l, shallowRef as T, onMounted as D, onBeforeUnmount as B, resolveComponent as c, resolveDirective as U, openBlock as b, createBlock as I, withCtx as f, createElementVNode as w, normalizeStyle as k, createVNode as s, Transition as E, withDirectives as _, vShow as M, createElementBlock as x, resolveDynamicComponent as N } from "vue";
2
- import G from "@kiva/kv-tokens";
3
- import S from "./KvWwwHeader/KvHeaderLinkBar.js";
4
- import K from "./KvWwwHeader/KvHeaderLogo.js";
5
- import R from "./KvThemeProvider.js";
6
- import z from "./KvPageContainer.js";
7
- import { throttle as A } from "../utils/throttle.js";
1
+ import { ref as l, shallowRef as D, computed as B, onMounted as U, onBeforeUnmount as x, resolveComponent as f, resolveDirective as N, openBlock as w, createBlock as M, withCtx as g, createElementVNode as k, normalizeStyle as _, createVNode as d, Transition as I, withDirectives as h, vShow as E, createElementBlock as A, normalizeClass as G, resolveDynamicComponent as K } from "vue";
2
+ import S from "@kiva/kv-tokens";
3
+ import z from "./KvWwwHeader/KvHeaderLinkBar.js";
4
+ import R from "./KvWwwHeader/KvHeaderLogo.js";
5
+ import P from "./KvThemeProvider.js";
6
+ import V from "./KvPageContainer.js";
7
+ import { throttle as O } from "../utils/throttle.js";
8
8
  import "./KvWwwHeader.css";
9
- import P from "../_virtual/_plugin-vue_export-helper.js";
10
- const V = "3.75rem", O = {
9
+ import W from "../_virtual/_plugin-vue_export-helper.js";
10
+ const j = "3.75rem", q = {
11
11
  components: {
12
- KvHeaderLinkBar: S,
13
- KvHeaderLogo: K,
14
- KvThemeProvider: R,
15
- KvPageContainer: z
12
+ KvHeaderLinkBar: z,
13
+ KvHeaderLogo: R,
14
+ KvThemeProvider: P,
15
+ KvPageContainer: V
16
16
  },
17
17
  props: {
18
18
  loggedIn: {
@@ -63,62 +63,66 @@ const V = "3.75rem", O = {
63
63
  emits: [
64
64
  "load-lend-menu-data"
65
65
  ],
66
- setup(C, { emit: n }) {
67
- const o = l(!0), e = l(null), a = l(!1), r = T(null), m = l(null), i = l({ left: 0, position: "relative" }), d = l(!1);
68
- let u;
69
- const g = (p, t, H) => {
70
- t ? (clearTimeout(u), r.value !== t && (i.value = { left: 0, position: "relative" }), r.value = t, a.value = !0, H && (i.value = {
66
+ setup(C, { emit: t }) {
67
+ const o = l(!0), e = l(null), a = l(!1), i = D(null), r = l(null), s = l({ left: 0, position: "relative" }), u = l(!1);
68
+ let v;
69
+ const b = B(() => {
70
+ var m, n;
71
+ return ((n = (m = r.value) == null ? void 0 : m.$options) == null ? void 0 : n.name) === "KvHeaderMobileMenu";
72
+ }), c = (m, n, H) => {
73
+ n ? (clearTimeout(v), i.value !== n && (s.value = { left: 0, position: "relative" }), i.value = n, a.value = !0, H && (s.value = {
71
74
  ...H,
72
75
  position: "absolute"
73
- })) : a.value && (u = setTimeout(() => {
74
- a.value = !1, r.value = null;
76
+ })) : a.value && (v = setTimeout(() => {
77
+ a.value = !1, i.value = null;
75
78
  }, 100));
76
- }, v = (p) => {
77
- var t;
78
- (t = m.value) == null || t.onLoad(p);
79
- }, L = () => {
80
- n("load-lend-menu-data");
81
- }, h = () => {
82
- d.value = (window == null ? void 0 : window.innerWidth) < G.breakpoints.md;
83
- }, y = A(h, 100);
84
- return D(() => {
85
- h(), window.addEventListener("resize", y);
86
- }), B(() => {
87
- window.removeEventListener("resize", y);
79
+ }, L = (m) => {
80
+ var n;
81
+ (n = r.value) == null || n.onLoad(m);
82
+ }, T = () => {
83
+ t("load-lend-menu-data");
84
+ }, y = () => {
85
+ u.value = (window == null ? void 0 : window.innerWidth) < S.breakpoints.md;
86
+ }, p = O(y, 100);
87
+ return U(() => {
88
+ y(), window.addEventListener("resize", p);
89
+ }), x(() => {
90
+ window.removeEventListener("resize", p);
88
91
  }), {
89
- HEADER_HEIGHT: V,
90
- emitLendMenuEvent: L,
91
- isMobile: d,
92
+ HEADER_HEIGHT: j,
93
+ emitLendMenuEvent: T,
94
+ isMobile: u,
92
95
  linksVisible: o,
93
96
  menuOpen: a,
94
- onHover: g,
95
- loadMenuData: v,
97
+ isMobileMenuActive: b,
98
+ onHover: c,
99
+ loadMenuData: L,
96
100
  activeHeaderItem: e,
97
- menuComponent: r,
98
- menuComponentInstance: m,
99
- menuPosition: i
101
+ menuComponent: i,
102
+ menuComponentInstance: r,
103
+ menuPosition: s
100
104
  };
101
105
  }
102
- }, W = {
106
+ }, F = {
103
107
  href: "/",
104
108
  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"
105
109
  };
106
- function j(C, n, o, e, a, r) {
107
- const m = c("kv-header-link-bar"), i = c("kv-header-logo"), d = c("kv-page-container"), u = c("kv-theme-provider"), g = U("kv-track-event");
108
- return b(), I(u, {
110
+ function J(C, t, o, e, a, i) {
111
+ const r = f("kv-header-link-bar"), s = f("kv-header-logo"), u = f("kv-page-container"), v = f("kv-theme-provider"), b = N("kv-track-event");
112
+ return w(), M(v, {
109
113
  tag: "div",
110
114
  class: "tw-bg-primary"
111
115
  }, {
112
- default: f(() => [
113
- w("nav", {
116
+ default: g(() => [
117
+ k("nav", {
114
118
  class: "tw-font-medium tw-relative",
115
- style: k({ height: e.HEADER_HEIGHT })
119
+ style: _({ height: e.HEADER_HEIGHT })
116
120
  }, [
117
- s(d, null, {
118
- default: f(() => [
119
- s(E, { name: "header-fade" }, {
120
- default: f(() => [
121
- _(s(m, {
121
+ d(u, null, {
122
+ default: g(() => [
123
+ d(I, { name: "header-fade" }, {
124
+ default: g(() => [
125
+ h(d(r, {
122
126
  "logged-in": o.loggedIn,
123
127
  "basket-count": o.basketCount,
124
128
  "login-url": o.loginUrl,
@@ -130,33 +134,36 @@ function j(C, n, o, e, a, r) {
130
134
  balance: o.balance,
131
135
  onItemHover: e.onHover
132
136
  }, null, 8, ["logged-in", "basket-count", "login-url", "open-menu-item", "my-dashboard-url", "lender-name", "lender-image-url", "is-mobile", "balance", "onItemHover"]), [
133
- [M, e.linksVisible]
137
+ [E, e.linksVisible]
134
138
  ])
135
139
  ]),
136
140
  _: 1
137
141
  }),
138
- _((b(), x("a", W, [
139
- s(i)
142
+ h((w(), A("a", F, [
143
+ d(s)
140
144
  ])), [
141
- [g, ["TopNav", "click-Logo"]]
145
+ [b, ["TopNav", "click-Logo"]]
142
146
  ])
143
147
  ]),
144
148
  _: 1
145
149
  })
146
150
  ], 4),
147
- s(E, { name: "header-fade" }, {
148
- default: f(() => [
149
- _(w("div", {
151
+ d(I, { name: "header-fade" }, {
152
+ default: g(() => [
153
+ h(k("div", {
150
154
  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",
151
- style: k({ top: e.HEADER_HEIGHT })
155
+ style: _({ top: e.HEADER_HEIGHT })
152
156
  }, [
153
- w("div", {
154
- class: "tw-bg-primary tw-overflow-y-auto",
155
- style: k({ ...e.menuPosition, maxHeight: `calc(100dvh - ${e.HEADER_HEIGHT})` }),
156
- onMouseover: n[1] || (n[1] = (v) => e.onHover(e.activeHeaderItem, e.menuComponent)),
157
- onMouseout: n[2] || (n[2] = (v) => e.onHover())
157
+ k("div", {
158
+ class: G(["tw-bg-primary tw-overflow-y-auto", { "tw-min-h-dvh": e.isMobileMenuActive }]),
159
+ style: _({
160
+ ...e.menuPosition,
161
+ maxHeight: e.isMobileMenuActive ? "auto" : `calc(100dvh - ${e.HEADER_HEIGHT})`
162
+ }),
163
+ onMouseover: t[1] || (t[1] = (c) => e.onHover(e.activeHeaderItem, e.menuComponent)),
164
+ onMouseout: t[2] || (t[2] = (c) => e.onHover())
158
165
  }, [
159
- (b(), I(N(e.menuComponent), {
166
+ (w(), M(K(e.menuComponent), {
160
167
  ref: "menuComponentInstance",
161
168
  "logged-in": o.loggedIn,
162
169
  "login-url": o.loginUrl,
@@ -167,11 +174,11 @@ function j(C, n, o, e, a, r) {
167
174
  "show-m-g-upsell-link": o.showMGUpsellLink,
168
175
  "is-mobile": e.isMobile,
169
176
  onLoadLendMenuData: e.emitLendMenuEvent,
170
- onClosingMenu: n[0] || (n[0] = (v) => e.onHover())
177
+ onClosingMenu: t[0] || (t[0] = (c) => e.onHover())
171
178
  }, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "show-m-g-upsell-link", "is-mobile", "onLoadLendMenuData"]))
172
- ], 36)
179
+ ], 38)
173
180
  ], 4), [
174
- [M, e.menuOpen]
181
+ [E, e.menuOpen]
175
182
  ])
176
183
  ]),
177
184
  _: 1
@@ -180,7 +187,7 @@ function j(C, n, o, e, a, r) {
180
187
  _: 1
181
188
  });
182
189
  }
183
- const oe = /* @__PURE__ */ P(O, [["render", j], ["__scopeId", "data-v-8196be34"]]);
190
+ const le = /* @__PURE__ */ W(q, [["render", J], ["__scopeId", "data-v-87116c5e"]]);
184
191
  export {
185
- oe as default
192
+ le as default
186
193
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.52.7",
3
+ "version": "6.52.8",
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": "786200af075ab4a0c66f6da6317c686fa6501ff3"
117
+ "gitHead": "63e6ad5ab416be93564086e4501e6f1828389b0a"
118
118
  }