@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-
|
|
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
|
|
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
|
|
7
|
-
const
|
|
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" },
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
84
|
-
const w =
|
|
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
|
-
|
|
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) =>
|
|
91
|
+
onClick: e[0] || (e[0] = (l) => v.$emit("closing-menu"))
|
|
91
92
|
}, null, 8, ["icon"])) : y("", !0),
|
|
92
|
-
|
|
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:
|
|
98
|
-
|
|
98
|
+
header: r(() => e[1] || (e[1] = [
|
|
99
|
+
a("h3", { class: "tw-pb-0.5" }, " Take action ", -1)
|
|
99
100
|
])),
|
|
100
|
-
default:
|
|
101
|
-
|
|
102
|
-
(t(!0), o(N, null,
|
|
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
|
-
|
|
106
|
+
a("a", {
|
|
106
107
|
href: l.url,
|
|
107
108
|
class: "mobile-link"
|
|
108
|
-
}, m(l.title), 9,
|
|
109
|
-
|
|
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
|
-
|
|
118
|
+
p(d, {
|
|
118
119
|
id: "accordion-about-menu",
|
|
119
120
|
class: "tw-w-full tw-pb-1"
|
|
120
121
|
}, {
|
|
121
|
-
header:
|
|
122
|
-
|
|
122
|
+
header: r(() => e[2] || (e[2] = [
|
|
123
|
+
a("h3", { class: "tw-pb-0.5" }, " About ", -1)
|
|
123
124
|
])),
|
|
124
|
-
default:
|
|
125
|
-
|
|
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",
|
|
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",
|
|
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",
|
|
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
|
|
173
|
+
const Q = /* @__PURE__ */ x(I, [["render", S], ["__scopeId", "data-v-dc4a2676"]]);
|
|
173
174
|
export {
|
|
174
175
|
Q as default
|
|
175
176
|
};
|
package/dist/vue/KvWwwHeader.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-fade-enter-active[data-v-
|
|
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)}
|
package/dist/vue/KvWwwHeader.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ref as l, shallowRef as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { throttle as
|
|
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
|
|
10
|
-
const
|
|
9
|
+
import W from "../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
const j = "3.75rem", q = {
|
|
11
11
|
components: {
|
|
12
|
-
KvHeaderLinkBar:
|
|
13
|
-
KvHeaderLogo:
|
|
14
|
-
KvThemeProvider:
|
|
15
|
-
KvPageContainer:
|
|
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:
|
|
67
|
-
const o = l(!0), e = l(null), a = l(!1),
|
|
68
|
-
let
|
|
69
|
-
const
|
|
70
|
-
|
|
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 && (
|
|
74
|
-
a.value = !1,
|
|
76
|
+
})) : a.value && (v = setTimeout(() => {
|
|
77
|
+
a.value = !1, i.value = null;
|
|
75
78
|
}, 100));
|
|
76
|
-
},
|
|
77
|
-
var
|
|
78
|
-
(
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
}),
|
|
87
|
-
window.removeEventListener("resize",
|
|
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:
|
|
90
|
-
emitLendMenuEvent:
|
|
91
|
-
isMobile:
|
|
92
|
+
HEADER_HEIGHT: j,
|
|
93
|
+
emitLendMenuEvent: T,
|
|
94
|
+
isMobile: u,
|
|
92
95
|
linksVisible: o,
|
|
93
96
|
menuOpen: a,
|
|
94
|
-
|
|
95
|
-
|
|
97
|
+
isMobileMenuActive: b,
|
|
98
|
+
onHover: c,
|
|
99
|
+
loadMenuData: L,
|
|
96
100
|
activeHeaderItem: e,
|
|
97
|
-
menuComponent:
|
|
98
|
-
menuComponentInstance:
|
|
99
|
-
menuPosition:
|
|
101
|
+
menuComponent: i,
|
|
102
|
+
menuComponentInstance: r,
|
|
103
|
+
menuPosition: s
|
|
100
104
|
};
|
|
101
105
|
}
|
|
102
|
-
},
|
|
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
|
|
107
|
-
const
|
|
108
|
-
return
|
|
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:
|
|
113
|
-
|
|
116
|
+
default: g(() => [
|
|
117
|
+
k("nav", {
|
|
114
118
|
class: "tw-font-medium tw-relative",
|
|
115
|
-
style:
|
|
119
|
+
style: _({ height: e.HEADER_HEIGHT })
|
|
116
120
|
}, [
|
|
117
|
-
|
|
118
|
-
default:
|
|
119
|
-
|
|
120
|
-
default:
|
|
121
|
-
|
|
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
|
-
[
|
|
137
|
+
[E, e.linksVisible]
|
|
134
138
|
])
|
|
135
139
|
]),
|
|
136
140
|
_: 1
|
|
137
141
|
}),
|
|
138
|
-
|
|
139
|
-
s
|
|
142
|
+
h((w(), A("a", F, [
|
|
143
|
+
d(s)
|
|
140
144
|
])), [
|
|
141
|
-
[
|
|
145
|
+
[b, ["TopNav", "click-Logo"]]
|
|
142
146
|
])
|
|
143
147
|
]),
|
|
144
148
|
_: 1
|
|
145
149
|
})
|
|
146
150
|
], 4),
|
|
147
|
-
|
|
148
|
-
default:
|
|
149
|
-
|
|
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:
|
|
155
|
+
style: _({ top: e.HEADER_HEIGHT })
|
|
152
156
|
}, [
|
|
153
|
-
|
|
154
|
-
class: "tw-bg-primary tw-overflow-y-auto",
|
|
155
|
-
style:
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
(
|
|
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:
|
|
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
|
-
],
|
|
179
|
+
], 38)
|
|
173
180
|
], 4), [
|
|
174
|
-
[
|
|
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
|
|
190
|
+
const le = /* @__PURE__ */ W(q, [["render", J], ["__scopeId", "data-v-87116c5e"]]);
|
|
184
191
|
export {
|
|
185
|
-
|
|
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.
|
|
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": "
|
|
117
|
+
"gitHead": "63e6ad5ab416be93564086e4501e6f1828389b0a"
|
|
118
118
|
}
|