@kiva/kv-components 6.40.6 → 6.42.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 +1 @@
|
|
|
1
|
-
.header-link[data-v-
|
|
1
|
+
.header-link[data-v-ed7c52d8]{cursor:pointer;padding:1rem .5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-ed7c52d8]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}@media (min-width: 64rem){.header-link[data-v-ed7c52d8]{padding-left:1.25rem;padding-right:1.25rem}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as f, ref as i, resolveComponent as g, resolveDirective as
|
|
2
|
-
import { mdiAccountCircle as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineAsyncComponent as f, ref as i, onMounted as B, resolveComponent as g, resolveDirective as C, openBlock as l, createElementBlock as a, normalizeClass as o, createVNode as s, createCommentVNode as v, withDirectives as c, createTextVNode as h, createElementVNode as w } from "vue";
|
|
2
|
+
import { mdiAccountCircle as p, mdiChevronDown as N, mdiMagnify as S, mdiMenu as T } from "@mdi/js";
|
|
3
|
+
import U from "../KvMaterialIcon.js";
|
|
4
|
+
import A from "../KvIconBag.js";
|
|
5
5
|
import "./KvHeaderLinkBar.css";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import D from "../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const V = f(() => import("./KvHeaderMobileMenu.js")), _ = f(() => import("./KvHeaderMyKivaMenu.js")), E = f(() => import("./LendMenu/KvLendMenu.js")), W = {
|
|
8
8
|
components: {
|
|
9
|
-
KvMaterialIcon:
|
|
10
|
-
KvIconBag:
|
|
9
|
+
KvMaterialIcon: U,
|
|
10
|
+
KvIconBag: A
|
|
11
11
|
},
|
|
12
12
|
props: {
|
|
13
13
|
loggedIn: {
|
|
@@ -32,19 +32,21 @@ const U = f(() => import("./KvHeaderMobileMenu.js")), A = f(() => import("./KvHe
|
|
|
32
32
|
"open-search"
|
|
33
33
|
],
|
|
34
34
|
setup(y, { emit: e }) {
|
|
35
|
-
const t = i(null), n = i(null), M = i(null), b = i(null), d = i(null), k = i(null), u = i(null), r = i(null), I = i(null), x = i(null)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
const t = i(null), n = i(null), M = i(null), b = i(null), d = i(null), k = i(null), u = i(null), r = i(null), I = i(null), x = i(null), K = (m, H) => {
|
|
36
|
+
e("item-hover", m, H);
|
|
37
|
+
}, L = () => {
|
|
38
|
+
var m;
|
|
39
|
+
e("open-search", (m = r.value) == null ? void 0 : m.offsetLeft);
|
|
40
|
+
};
|
|
41
|
+
return B(() => {
|
|
42
|
+
import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js");
|
|
43
|
+
}), {
|
|
44
|
+
mdiAccountCircle: p,
|
|
45
|
+
mdiChevronDown: N,
|
|
46
|
+
mdiMagnify: S,
|
|
47
|
+
mdiMenu: T,
|
|
48
|
+
onHover: K,
|
|
49
|
+
openSearch: L,
|
|
48
50
|
avatar: t,
|
|
49
51
|
lendButton: n,
|
|
50
52
|
aboutUsLink: M,
|
|
@@ -55,15 +57,15 @@ const U = f(() => import("./KvHeaderMobileMenu.js")), A = f(() => import("./KvHe
|
|
|
55
57
|
searchButton: r,
|
|
56
58
|
signInLink: I,
|
|
57
59
|
menuButton: x,
|
|
58
|
-
KvHeaderMobileMenu:
|
|
59
|
-
KvHeaderMyKivaMenu:
|
|
60
|
-
KvLendMenu:
|
|
60
|
+
KvHeaderMobileMenu: V,
|
|
61
|
+
KvHeaderMyKivaMenu: _,
|
|
62
|
+
KvLendMenu: E
|
|
61
63
|
};
|
|
62
64
|
}
|
|
63
|
-
},
|
|
64
|
-
function
|
|
65
|
-
const d = g("kv-material-icon"), k = g("kv-icon-bag"), u =
|
|
66
|
-
return l(), a("div",
|
|
65
|
+
}, j = { class: "tw-h-full tw-flex tw-items-center" }, z = ["href"];
|
|
66
|
+
function F(y, e, t, n, M, b) {
|
|
67
|
+
const d = g("kv-material-icon"), k = g("kv-icon-bag"), u = C("kv-track-event");
|
|
68
|
+
return l(), a("div", j, [
|
|
67
69
|
t.loggedIn ? (l(), a("button", {
|
|
68
70
|
key: 0,
|
|
69
71
|
ref: "avatar",
|
|
@@ -77,7 +79,7 @@ function W(y, e, t, n, M, b) {
|
|
|
77
79
|
icon: n.mdiAccountCircle,
|
|
78
80
|
class: "tw-w-3"
|
|
79
81
|
}, null, 8, ["icon"])
|
|
80
|
-
], 34)) :
|
|
82
|
+
], 34)) : v("", !0),
|
|
81
83
|
c((l(), a("a", {
|
|
82
84
|
ref: "lendButton",
|
|
83
85
|
href: "/lend-by-category",
|
|
@@ -108,7 +110,7 @@ function W(y, e, t, n, M, b) {
|
|
|
108
110
|
class: o(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
109
111
|
}, " Partner with us ", 2),
|
|
110
112
|
e[10] || (e[10] = w("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
|
|
111
|
-
t.loggedIn ?
|
|
113
|
+
t.loggedIn ? v("", !0) : (l(), a("a", {
|
|
112
114
|
key: 1,
|
|
113
115
|
ref: "borrowLink",
|
|
114
116
|
href: "/borrow",
|
|
@@ -131,7 +133,7 @@ function W(y, e, t, n, M, b) {
|
|
|
131
133
|
}, null, 8, ["count"])
|
|
132
134
|
], 2)), [
|
|
133
135
|
[u, ["TopNav", "click-Basket"]]
|
|
134
|
-
]) :
|
|
136
|
+
]) : v("", !0),
|
|
135
137
|
c((l(), a("button", {
|
|
136
138
|
ref: "searchButton",
|
|
137
139
|
class: o(["header-link tw-flex", {
|
|
@@ -146,14 +148,14 @@ function W(y, e, t, n, M, b) {
|
|
|
146
148
|
], 2)), [
|
|
147
149
|
[u, ["TopNav", "click-Search-toggle"]]
|
|
148
150
|
]),
|
|
149
|
-
t.loggedIn ?
|
|
151
|
+
t.loggedIn ? v("", !0) : c((l(), a("a", {
|
|
150
152
|
key: 3,
|
|
151
153
|
ref: "signInLink",
|
|
152
154
|
href: t.loginUrl,
|
|
153
155
|
class: o(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
154
156
|
}, e[9] || (e[9] = [
|
|
155
157
|
h(" Sign in ")
|
|
156
|
-
]), 10,
|
|
158
|
+
]), 10, z)), [
|
|
157
159
|
[u, ["TopNav", "click-Sign-in"]]
|
|
158
160
|
]),
|
|
159
161
|
c((l(), a("button", {
|
|
@@ -170,7 +172,7 @@ function W(y, e, t, n, M, b) {
|
|
|
170
172
|
])
|
|
171
173
|
]);
|
|
172
174
|
}
|
|
173
|
-
const
|
|
175
|
+
const R = /* @__PURE__ */ D(W, [["render", F], ["__scopeId", "data-v-ed7c52d8"]]);
|
|
174
176
|
export {
|
|
175
|
-
|
|
177
|
+
R as default
|
|
176
178
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.42.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": "5a5772e9484adec6dffc2867ed9496db570ca57d"
|
|
118
118
|
}
|