@kiva/kv-components 6.69.3 → 7.1.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/vue/KvActivityRow.js +5 -4
- package/dist/vue/KvCarousel.css +1 -1
- package/dist/vue/KvCarousel.js +107 -88
- package/dist/vue/KvCommentsAdd.css +1 -1
- package/dist/vue/KvCommentsAdd.js +7 -6
- package/dist/vue/KvCommentsListItem.js +7 -6
- package/dist/vue/KvIconBag.js +19 -16
- package/dist/vue/KvInlineActivityCard.js +19 -20
- package/dist/vue/KvUserAvatar.js +106 -91
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +198 -164
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +48 -38
- package/package.json +2 -2
- package/dist/vue/KvInlineActivityCard.css +0 -1
- package/dist/vue/KvUserAvatar.css +0 -1
package/dist/vue/KvWwwHeader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as a, shallowRef as N, computed as S, onMounted as x, onBeforeUnmount as A, resolveComponent as
|
|
1
|
+
import { ref as a, shallowRef as N, computed as S, onMounted as x, onBeforeUnmount as A, resolveComponent as g, resolveDirective as K, openBlock as b, createBlock as L, withCtx as w, createElementVNode as k, normalizeStyle as h, createVNode as v, Transition as E, withDirectives as y, vShow as I, createElementBlock as O, normalizeClass as G, resolveDynamicComponent as z, withModifiers as P } from "vue";
|
|
2
2
|
import R from "@kiva/kv-tokens";
|
|
3
3
|
import V from "./KvWwwHeader/KvHeaderLinkBar.js";
|
|
4
4
|
import W from "./KvWwwHeader/KvHeaderLogo.js";
|
|
@@ -32,6 +32,10 @@ const Q = "4rem", X = ["lendMenu", "aboutUsLink", "takeActionButton"], Z = {
|
|
|
32
32
|
type: Number,
|
|
33
33
|
default: 0
|
|
34
34
|
},
|
|
35
|
+
isBasketDataLoading: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
35
39
|
isBorrower: {
|
|
36
40
|
type: Boolean,
|
|
37
41
|
default: !1
|
|
@@ -40,6 +44,10 @@ const Q = "4rem", X = ["lendMenu", "aboutUsLink", "takeActionButton"], Z = {
|
|
|
40
44
|
type: Boolean,
|
|
41
45
|
default: !1
|
|
42
46
|
},
|
|
47
|
+
isUserDataLoading: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
43
51
|
userId: {
|
|
44
52
|
type: Number,
|
|
45
53
|
default: null
|
|
@@ -68,42 +76,42 @@ const Q = "4rem", X = ["lendMenu", "aboutUsLink", "takeActionButton"], Z = {
|
|
|
68
76
|
emits: [
|
|
69
77
|
"load-lend-menu-data"
|
|
70
78
|
],
|
|
71
|
-
setup(
|
|
72
|
-
const n = a(!0), e = a(null),
|
|
73
|
-
var
|
|
74
|
-
return ((t = (
|
|
75
|
-
}), _ = F((
|
|
76
|
-
f.value && (t ? (c.value =
|
|
77
|
-
...
|
|
79
|
+
setup(C, { emit: o }) {
|
|
80
|
+
const n = a(!0), e = a(null), i = a(!1), r = N(null), u = a(null), m = a({ left: 0, position: "relative" }), s = a(!1), c = a(null), f = a(!1), l = S(() => {
|
|
81
|
+
var d, t;
|
|
82
|
+
return ((t = (d = u.value) == null ? void 0 : d.$options) == null ? void 0 : t.name) === "KvHeaderMobileMenu";
|
|
83
|
+
}), _ = F((d, t, p) => {
|
|
84
|
+
f.value && (t ? (c.value = d, r.value !== t && (m.value = { left: 0, position: "relative" }), r.value = t, i.value = !0, p && (m.value = {
|
|
85
|
+
...p,
|
|
78
86
|
position: "absolute"
|
|
79
|
-
})) :
|
|
80
|
-
}, 100),
|
|
87
|
+
})) : i.value && (i.value = !1, r.value = null));
|
|
88
|
+
}, 100), D = (d) => {
|
|
81
89
|
var t;
|
|
82
|
-
(t =
|
|
90
|
+
(t = u.value) == null || t.onLoad(d);
|
|
83
91
|
}, U = () => {
|
|
84
92
|
if (!l.value) return _();
|
|
85
|
-
},
|
|
93
|
+
}, B = () => {
|
|
86
94
|
o("load-lend-menu-data");
|
|
87
|
-
},
|
|
88
|
-
s.value = (window == null ? void 0 : window.innerWidth) < R.breakpoints.md,
|
|
89
|
-
},
|
|
95
|
+
}, T = () => s.value && X.includes(c.value) || !s.value && l.value, M = () => {
|
|
96
|
+
s.value = (window == null ? void 0 : window.innerWidth) < R.breakpoints.md, T() && (r.value = null, i.value = !1);
|
|
97
|
+
}, H = q(M, 100);
|
|
90
98
|
return x(() => {
|
|
91
|
-
M(), window.addEventListener("resize",
|
|
99
|
+
M(), window.addEventListener("resize", H), f.value = !0;
|
|
92
100
|
}), A(() => {
|
|
93
|
-
window.removeEventListener("resize",
|
|
101
|
+
window.removeEventListener("resize", H);
|
|
94
102
|
}), {
|
|
95
103
|
HEADER_HEIGHT: Q,
|
|
96
|
-
emitLendMenuEvent:
|
|
104
|
+
emitLendMenuEvent: B,
|
|
97
105
|
isMobile: s,
|
|
98
106
|
linksVisible: n,
|
|
99
|
-
menuOpen:
|
|
107
|
+
menuOpen: i,
|
|
100
108
|
isMobileMenuActive: l,
|
|
101
109
|
onHover: _,
|
|
102
|
-
loadMenuData:
|
|
110
|
+
loadMenuData: D,
|
|
103
111
|
handleOverlayClick: U,
|
|
104
112
|
activeHeaderItem: e,
|
|
105
|
-
menuComponent:
|
|
106
|
-
menuComponentInstance:
|
|
113
|
+
menuComponent: r,
|
|
114
|
+
menuComponentInstance: u,
|
|
107
115
|
menuPosition: m
|
|
108
116
|
};
|
|
109
117
|
}
|
|
@@ -111,22 +119,24 @@ const Q = "4rem", X = ["lendMenu", "aboutUsLink", "takeActionButton"], Z = {
|
|
|
111
119
|
href: "/",
|
|
112
120
|
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"
|
|
113
121
|
};
|
|
114
|
-
function ee(
|
|
115
|
-
const
|
|
116
|
-
return
|
|
122
|
+
function ee(C, o, n, e, i, r) {
|
|
123
|
+
const u = g("kv-header-link-bar"), m = g("kv-header-logo"), s = g("kv-page-container"), c = g("kv-theme-provider"), f = K("kv-track-event");
|
|
124
|
+
return b(), L(c, {
|
|
117
125
|
tag: "div",
|
|
118
126
|
class: "tw-bg-primary"
|
|
119
127
|
}, {
|
|
120
|
-
default:
|
|
128
|
+
default: w(() => [
|
|
121
129
|
k("nav", {
|
|
122
130
|
class: "tw-font-medium tw-relative",
|
|
123
131
|
style: h({ height: e.HEADER_HEIGHT })
|
|
124
132
|
}, [
|
|
125
133
|
v(s, { class: "tw-h-full" }, {
|
|
126
|
-
default:
|
|
127
|
-
v(
|
|
128
|
-
default:
|
|
129
|
-
y(v(
|
|
134
|
+
default: w(() => [
|
|
135
|
+
v(E, { name: "header-fade" }, {
|
|
136
|
+
default: w(() => [
|
|
137
|
+
y(v(u, {
|
|
138
|
+
"is-basket-data-loading": n.isBasketDataLoading,
|
|
139
|
+
"is-user-data-loading": n.isUserDataLoading,
|
|
130
140
|
"logged-in": n.loggedIn,
|
|
131
141
|
"basket-count": n.basketCount,
|
|
132
142
|
"login-url": n.loginUrl,
|
|
@@ -137,13 +147,13 @@ function ee(L, o, n, e, r, i) {
|
|
|
137
147
|
"is-mobile": e.isMobile,
|
|
138
148
|
balance: n.balance,
|
|
139
149
|
onItemHover: e.onHover
|
|
140
|
-
}, null, 8, ["logged-in", "basket-count", "login-url", "open-menu-item", "my-dashboard-url", "lender-name", "lender-image-url", "is-mobile", "balance", "onItemHover"]), [
|
|
141
|
-
[
|
|
150
|
+
}, null, 8, ["is-basket-data-loading", "is-user-data-loading", "logged-in", "basket-count", "login-url", "open-menu-item", "my-dashboard-url", "lender-name", "lender-image-url", "is-mobile", "balance", "onItemHover"]), [
|
|
151
|
+
[I, e.linksVisible]
|
|
142
152
|
])
|
|
143
153
|
]),
|
|
144
154
|
_: 1
|
|
145
155
|
}),
|
|
146
|
-
y((
|
|
156
|
+
y((b(), O("a", $, [
|
|
147
157
|
v(m)
|
|
148
158
|
])), [
|
|
149
159
|
[f, ["TopNav", "click-Logo"]]
|
|
@@ -152,8 +162,8 @@ function ee(L, o, n, e, r, i) {
|
|
|
152
162
|
_: 1
|
|
153
163
|
})
|
|
154
164
|
], 4),
|
|
155
|
-
v(
|
|
156
|
-
default:
|
|
165
|
+
v(E, { name: "header-fade" }, {
|
|
166
|
+
default: w(() => [
|
|
157
167
|
y(k("div", {
|
|
158
168
|
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",
|
|
159
169
|
style: h({ top: e.HEADER_HEIGHT }),
|
|
@@ -168,7 +178,7 @@ function ee(L, o, n, e, r, i) {
|
|
|
168
178
|
onMouseenter: o[2] || (o[2] = (l) => e.onHover(e.activeHeaderItem, e.menuComponent)),
|
|
169
179
|
onMouseleave: o[3] || (o[3] = (l) => e.onHover())
|
|
170
180
|
}, [
|
|
171
|
-
(
|
|
181
|
+
(b(), L(z(e.menuComponent), {
|
|
172
182
|
ref: "menuComponentInstance",
|
|
173
183
|
"logged-in": n.loggedIn,
|
|
174
184
|
"login-url": n.loginUrl,
|
|
@@ -186,7 +196,7 @@ function ee(L, o, n, e, r, i) {
|
|
|
186
196
|
}, 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"]))
|
|
187
197
|
], 38)
|
|
188
198
|
], 36), [
|
|
189
|
-
[
|
|
199
|
+
[I, e.menuOpen]
|
|
190
200
|
])
|
|
191
201
|
]),
|
|
192
202
|
_: 1
|
|
@@ -195,7 +205,7 @@ function ee(L, o, n, e, r, i) {
|
|
|
195
205
|
_: 1
|
|
196
206
|
});
|
|
197
207
|
}
|
|
198
|
-
const me = /* @__PURE__ */ J(Z, [["render", ee], ["__scopeId", "data-v-
|
|
208
|
+
const me = /* @__PURE__ */ J(Z, [["render", ee], ["__scopeId", "data-v-137228da"]]);
|
|
199
209
|
export {
|
|
200
210
|
me as default
|
|
201
211
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.1.0",
|
|
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": "e89d40ce0dda4f00cdfb43b62d7d6e3938ca621b"
|
|
118
118
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.activity-avatar[data-v-84a9404c],.activity-avatar[data-v-84a9404c] img,.activity-avatar[data-v-84a9404c] div{height:2rem;width:2rem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.adjust-vertical-spacing[data-v-c9339e78]{top:-.1rem;position:relative}
|