@kiva/kv-components 6.46.0 → 6.47.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.
- package/dist/utils/comparators.js +6 -23
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +89 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +84 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +178 -133
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +133 -53
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +33 -31
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +61 -0
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +99 -134
- package/package.json +2 -3
- package/dist/utils/event.js +0 -7
- package/dist/utils/loanSearch/queryParamUtils.js +0 -13
- package/dist/utils/markMatches.js +0 -12
- package/dist/utils/searchEngine.js +0 -56
- package/dist/utils/siteSearch.js +0 -112
- package/dist/vue/KvWwwHeader/KvHeaderSearchBar.js +0 -72
- package/dist/vue/KvWwwHeader/KvHeaderSearchSuggestions.css +0 -1
- package/dist/vue/KvWwwHeader/KvHeaderSearchSuggestions.js +0 -57
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import m from "../KvAccordionItem.js";
|
|
2
|
+
import { resolveComponent as k, resolveDirective as v, openBlock as t, createElementBlock as o, createVNode as d, withCtx as a, createElementVNode as l, Fragment as w, renderList as f, withDirectives as n, toDisplayString as u, createTextVNode as s } from "vue";
|
|
3
|
+
import "./KvHeaderMobileMenu.css";
|
|
4
|
+
import h from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const b = {
|
|
5
6
|
components: {
|
|
6
|
-
|
|
7
|
+
KvAccordionItem: m
|
|
7
8
|
},
|
|
8
9
|
props: {
|
|
9
10
|
loggedIn: {
|
|
@@ -14,60 +15,139 @@ const k = {
|
|
|
14
15
|
type: String,
|
|
15
16
|
default: "/ui-login"
|
|
16
17
|
}
|
|
18
|
+
},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
menuItems: [
|
|
22
|
+
{
|
|
23
|
+
title: "Choose someone to help",
|
|
24
|
+
description: "Make a direct impact for someone in need",
|
|
25
|
+
url: "/lend-by-category",
|
|
26
|
+
trackEvent: "choose-someone-to-help"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: "Donate to Kiva",
|
|
30
|
+
description: "Help us change lives and tackle inequality",
|
|
31
|
+
url: "/donate/supportus",
|
|
32
|
+
trackEvent: "donate-to-kiva"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: "Partner with us",
|
|
36
|
+
description: "Drive global impact aligned with your organization’s goals",
|
|
37
|
+
url: "/about/partner-with-us",
|
|
38
|
+
trackEvent: "partner-with-us"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: "Buy a Kiva Card",
|
|
42
|
+
description: "Share the joy of lending with others",
|
|
43
|
+
url: "/portfolio/kiva-card",
|
|
44
|
+
trackEvent: "buy-a-kiva-card"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
};
|
|
17
48
|
}
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
]
|
|
48
|
-
|
|
49
|
-
})), [
|
|
50
|
-
[n, ["TopNav", "click-menu-Borrow"]]
|
|
51
|
-
]),
|
|
52
|
-
r((t(), i(o, { href: "/about" }, {
|
|
53
|
-
default: l(() => e[3] || (e[3] = [
|
|
54
|
-
u(" About us ")
|
|
49
|
+
}, _ = { class: "tw--mt-0.5 tw-pb-0.5 tw-gap-2 tw-flex tw-flex-col tw-items-end lg:tw-hidden tw-font-medium" }, g = { class: "tw-flex tw-flex-col tw-gap-2" }, x = ["href"], y = { class: "tw-text-secondary tw-font-book" }, N = { class: "tw-flex tw-flex-col tw-gap-2 tw-pt-1 tw-pb-2" }, T = {
|
|
50
|
+
href: "/about",
|
|
51
|
+
class: "mobile-link"
|
|
52
|
+
}, I = {
|
|
53
|
+
href: "/about/how",
|
|
54
|
+
class: "mobile-link"
|
|
55
|
+
}, K = {
|
|
56
|
+
href: "/about/where-kiva-works",
|
|
57
|
+
class: "mobile-link"
|
|
58
|
+
}, E = {
|
|
59
|
+
href: "/impact",
|
|
60
|
+
class: "mobile-link"
|
|
61
|
+
}, D = {
|
|
62
|
+
href: "/about/leadership",
|
|
63
|
+
class: "mobile-link"
|
|
64
|
+
}, A = {
|
|
65
|
+
href: "/about/finances",
|
|
66
|
+
class: "mobile-link"
|
|
67
|
+
}, B = {
|
|
68
|
+
href: "/about/press-center",
|
|
69
|
+
class: "mobile-link"
|
|
70
|
+
}, C = {
|
|
71
|
+
href: "/about/due-diligence",
|
|
72
|
+
class: "mobile-link"
|
|
73
|
+
};
|
|
74
|
+
function $(H, e, M, S, p, V) {
|
|
75
|
+
const c = k("KvAccordionItem"), i = v("kv-track-event");
|
|
76
|
+
return t(), o("nav", _, [
|
|
77
|
+
d(c, { class: "tw-w-full tw-border-b-0" }, {
|
|
78
|
+
header: a(() => e[0] || (e[0] = [
|
|
79
|
+
l("h3", null, "Take action", -1)
|
|
55
80
|
])),
|
|
81
|
+
default: a(() => [
|
|
82
|
+
l("div", g, [
|
|
83
|
+
(t(!0), o(w, null, f(p.menuItems, (r) => n((t(), o("div", {
|
|
84
|
+
key: r.title
|
|
85
|
+
}, [
|
|
86
|
+
l("a", {
|
|
87
|
+
href: r.url,
|
|
88
|
+
class: "mobile-link"
|
|
89
|
+
}, u(r.title), 9, x),
|
|
90
|
+
l("p", y, u(r.description), 1)
|
|
91
|
+
])), [
|
|
92
|
+
[i, ["TopNav", `click-menu-${r.trackEvent}`]]
|
|
93
|
+
])), 128))
|
|
94
|
+
])
|
|
95
|
+
]),
|
|
56
96
|
_: 1
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
default: l(() => e[4] || (e[4] = [
|
|
62
|
-
u(" Partner with us ")
|
|
97
|
+
}),
|
|
98
|
+
d(c, { class: "tw-w-full" }, {
|
|
99
|
+
header: a(() => e[1] || (e[1] = [
|
|
100
|
+
l("h3", null, "About", -1)
|
|
63
101
|
])),
|
|
102
|
+
default: a(() => [
|
|
103
|
+
l("div", N, [
|
|
104
|
+
n((t(), o("a", T, e[2] || (e[2] = [
|
|
105
|
+
s("About us")
|
|
106
|
+
]))), [
|
|
107
|
+
[i, ["TopNav", "click-menu-about-us"]]
|
|
108
|
+
]),
|
|
109
|
+
n((t(), o("a", I, e[3] || (e[3] = [
|
|
110
|
+
s("How Kiva works")
|
|
111
|
+
]))), [
|
|
112
|
+
[i, ["TopNav", "click-menu-how-kiva-works"]]
|
|
113
|
+
]),
|
|
114
|
+
n((t(), o("a", K, e[4] || (e[4] = [
|
|
115
|
+
s("Where Kiva works")
|
|
116
|
+
]))), [
|
|
117
|
+
[i, ["TopNav", "click-menu-where-kiva-works"]]
|
|
118
|
+
]),
|
|
119
|
+
n((t(), o("a", E, e[5] || (e[5] = [
|
|
120
|
+
s("Impact")
|
|
121
|
+
]))), [
|
|
122
|
+
[i, ["TopNav", "click-menu-impact"]]
|
|
123
|
+
]),
|
|
124
|
+
n((t(), o("a", D, e[6] || (e[6] = [
|
|
125
|
+
s("Leadership")
|
|
126
|
+
]))), [
|
|
127
|
+
[i, ["TopNav", "click-menu-leadership"]]
|
|
128
|
+
]),
|
|
129
|
+
n((t(), o("a", A, e[7] || (e[7] = [
|
|
130
|
+
s("Finances")
|
|
131
|
+
]))), [
|
|
132
|
+
[i, ["TopNav", "click-menu-finances"]]
|
|
133
|
+
]),
|
|
134
|
+
n((t(), o("a", B, e[8] || (e[8] = [
|
|
135
|
+
s("Press")
|
|
136
|
+
]))), [
|
|
137
|
+
[i, ["TopNav", "click-menu-press"]]
|
|
138
|
+
]),
|
|
139
|
+
n((t(), o("a", C, e[9] || (e[9] = [
|
|
140
|
+
s("Due diligence")
|
|
141
|
+
]))), [
|
|
142
|
+
[i, ["TopNav", "click-menu-due-diligence"]]
|
|
143
|
+
])
|
|
144
|
+
])
|
|
145
|
+
]),
|
|
64
146
|
_: 1
|
|
65
|
-
})
|
|
66
|
-
[n, ["TopNav", "click-menu-Partner-with-us"]]
|
|
67
|
-
])
|
|
147
|
+
})
|
|
68
148
|
]);
|
|
69
149
|
}
|
|
70
|
-
const
|
|
150
|
+
const q = /* @__PURE__ */ h(b, [["render", $], ["__scopeId", "data-v-c9569b42"]]);
|
|
71
151
|
export {
|
|
72
|
-
|
|
152
|
+
q as default
|
|
73
153
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import u from "numeral";
|
|
2
1
|
import d from "./KvHeaderMenuLink.js";
|
|
3
|
-
import { resolveComponent as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
2
|
+
import { resolveComponent as i, openBlock as a, createElementBlock as u, 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 = {
|
|
6
5
|
components: {
|
|
7
6
|
KvHeaderMenuLink: d
|
|
8
7
|
},
|
|
@@ -18,47 +17,50 @@ const x = {
|
|
|
18
17
|
isTrustee: {
|
|
19
18
|
type: Boolean,
|
|
20
19
|
default: !1
|
|
20
|
+
},
|
|
21
|
+
myDashboardUrl: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "/mykiva"
|
|
21
24
|
}
|
|
22
|
-
},
|
|
23
|
-
setup() {
|
|
24
|
-
return {
|
|
25
|
-
numeral: u
|
|
26
|
-
};
|
|
27
25
|
}
|
|
28
|
-
},
|
|
29
|
-
function
|
|
30
|
-
const t =
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
href:
|
|
34
|
-
class: "tw-
|
|
26
|
+
}, y = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start lg:tw-items-start tw-font-medium" };
|
|
27
|
+
function w(k, e, n, b, v, B) {
|
|
28
|
+
const t = i("kv-header-menu-link");
|
|
29
|
+
return a(), u("nav", y, [
|
|
30
|
+
s(t, {
|
|
31
|
+
href: n.myDashboardUrl,
|
|
32
|
+
class: "lg:tw-hidden"
|
|
35
33
|
}, {
|
|
36
|
-
default: o(() => [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
default: o(() => e[0] || (e[0] = [
|
|
35
|
+
r(" My Dashboard ")
|
|
36
|
+
])),
|
|
37
|
+
_: 1
|
|
38
|
+
}, 8, ["href"]),
|
|
39
|
+
s(t, { href: "/portfolio" }, {
|
|
40
|
+
default: o(() => e[1] || (e[1] = [
|
|
41
|
+
r(" Portfolio ")
|
|
42
|
+
])),
|
|
41
43
|
_: 1
|
|
42
44
|
}),
|
|
43
|
-
|
|
45
|
+
s(t, { href: "/teams/my-teams" }, {
|
|
44
46
|
default: o(() => e[2] || (e[2] = [
|
|
45
47
|
r(" My Teams ")
|
|
46
48
|
])),
|
|
47
49
|
_: 1
|
|
48
50
|
}),
|
|
49
|
-
|
|
51
|
+
s(t, { href: "/portfolio/donations" }, {
|
|
50
52
|
default: o(() => e[3] || (e[3] = [
|
|
51
53
|
r(" Donations ")
|
|
52
54
|
])),
|
|
53
55
|
_: 1
|
|
54
56
|
}),
|
|
55
|
-
|
|
57
|
+
s(t, { href: "/settings" }, {
|
|
56
58
|
default: o(() => e[4] || (e[4] = [
|
|
57
59
|
r(" Settings ")
|
|
58
60
|
])),
|
|
59
61
|
_: 1
|
|
60
62
|
}),
|
|
61
|
-
|
|
63
|
+
n.isBorrower ? (a(), l(t, {
|
|
62
64
|
key: 0,
|
|
63
65
|
href: "/my/borrower"
|
|
64
66
|
}, {
|
|
@@ -66,8 +68,8 @@ function _(b, e, s, m, v, N) {
|
|
|
66
68
|
r(" Borrower Dashboard ")
|
|
67
69
|
])),
|
|
68
70
|
_: 1
|
|
69
|
-
})) :
|
|
70
|
-
|
|
71
|
+
})) : f("", !0),
|
|
72
|
+
n.isTrustee ? (a(), l(t, {
|
|
71
73
|
key: 1,
|
|
72
74
|
href: "/my/trustee"
|
|
73
75
|
}, {
|
|
@@ -75,8 +77,8 @@ function _(b, e, s, m, v, N) {
|
|
|
75
77
|
r(" Trustee Dashboard ")
|
|
76
78
|
])),
|
|
77
79
|
_: 1
|
|
78
|
-
})) :
|
|
79
|
-
|
|
80
|
+
})) : f("", !0),
|
|
81
|
+
s(t, { href: "/ui-logout" }, {
|
|
80
82
|
default: o(() => e[7] || (e[7] = [
|
|
81
83
|
r(" Sign out ")
|
|
82
84
|
])),
|
|
@@ -84,7 +86,7 @@ function _(b, e, s, m, v, N) {
|
|
|
84
86
|
})
|
|
85
87
|
]);
|
|
86
88
|
}
|
|
87
|
-
const
|
|
89
|
+
const D = /* @__PURE__ */ m(p, [["render", w]]);
|
|
88
90
|
export {
|
|
89
|
-
|
|
91
|
+
D as default
|
|
90
92
|
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import i from "./KvHeaderMenuLink.js";
|
|
2
|
+
import { resolveComponent as u, resolveDirective as c, openBlock as o, createElementBlock as d, withDirectives as a, createBlock as s, withCtx as r, createElementVNode as e } from "vue";
|
|
3
|
+
import p from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = {
|
|
5
|
+
components: {
|
|
6
|
+
KvHeaderMenuLink: i
|
|
7
|
+
}
|
|
8
|
+
}, v = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium" };
|
|
9
|
+
function f(k, t, w, _, h, x) {
|
|
10
|
+
const n = u("kv-header-menu-link"), l = c("kv-track-event");
|
|
11
|
+
return o(), d("nav", v, [
|
|
12
|
+
a((o(), s(n, { href: "/lend-by-category" }, {
|
|
13
|
+
default: r(() => t[0] || (t[0] = [
|
|
14
|
+
e("div", null, [
|
|
15
|
+
e("p", null, "Choose someone to help"),
|
|
16
|
+
e("p", { class: "tw-text-small tw-text-secondary" }, " Make a direct impact for someone in need ")
|
|
17
|
+
], -1)
|
|
18
|
+
])),
|
|
19
|
+
_: 1
|
|
20
|
+
})), [
|
|
21
|
+
[l, ["TopNav", "click-menu-Choose-someone-to-help"]]
|
|
22
|
+
]),
|
|
23
|
+
a((o(), s(n, { href: "/donate/supportus" }, {
|
|
24
|
+
default: r(() => t[1] || (t[1] = [
|
|
25
|
+
e("div", null, [
|
|
26
|
+
e("p", null, "Donate to Kiva"),
|
|
27
|
+
e("p", { class: "tw-text-small tw-text-secondary" }, " Help us change lives and tackle inequality ")
|
|
28
|
+
], -1)
|
|
29
|
+
])),
|
|
30
|
+
_: 1
|
|
31
|
+
})), [
|
|
32
|
+
[l, ["TopNav", "click-menu-Donate-to-Kiva"]]
|
|
33
|
+
]),
|
|
34
|
+
a((o(), s(n, { href: "/about/partner-with-us" }, {
|
|
35
|
+
default: r(() => t[2] || (t[2] = [
|
|
36
|
+
e("div", null, [
|
|
37
|
+
e("p", null, "Partner with us"),
|
|
38
|
+
e("p", { class: "tw-text-small tw-text-secondary" }, " Drive global impact aligned to your business goals ")
|
|
39
|
+
], -1)
|
|
40
|
+
])),
|
|
41
|
+
_: 1
|
|
42
|
+
})), [
|
|
43
|
+
[l, ["TopNav", "click-menu-Partner-with-us"]]
|
|
44
|
+
]),
|
|
45
|
+
a((o(), s(n, { href: "/gifts/kiva-cards" }, {
|
|
46
|
+
default: r(() => t[3] || (t[3] = [
|
|
47
|
+
e("div", null, [
|
|
48
|
+
e("p", null, "Buy a Kiva Card"),
|
|
49
|
+
e("p", { class: "tw-text-small tw-text-secondary" }, " Share the joy of lending with others ")
|
|
50
|
+
], -1)
|
|
51
|
+
])),
|
|
52
|
+
_: 1
|
|
53
|
+
})), [
|
|
54
|
+
[l, ["TopNav", "click-menu-Buy-kiva-card"]]
|
|
55
|
+
])
|
|
56
|
+
]);
|
|
57
|
+
}
|
|
58
|
+
const B = /* @__PURE__ */ p(m, [["render", f]]);
|
|
59
|
+
export {
|
|
60
|
+
B as default
|
|
61
|
+
};
|
package/dist/vue/KvWwwHeader.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-margins[data-v-
|
|
1
|
+
.header-margins[data-v-bd1e99de]{margin:0 auto;max-width:1400px}.header-fade-enter-active[data-v-bd1e99de]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-bd1e99de]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-bd1e99de],.header-fade-leave-to[data-v-bd1e99de]{opacity:0}.header-fade-leave[data-v-bd1e99de],.header-fade-enter-to[data-v-bd1e99de]{opacity:1}.bg-opacity-50[data-v-bd1e99de]{background-color:rgba(var(--bg-action-highlight),.5)}
|