@kiva/kv-components 6.40.5 → 6.41.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-850c5e69]{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-850c5e69]: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-850c5e69]{padding-left:1.25rem;padding-right:1.25rem}}
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 L, openBlock as l, createElementBlock as a, normalizeClass as o, createVNode as s, createCommentVNode as m, withDirectives as c, createTextVNode as h, createElementVNode as w } from "vue";
2
- import { mdiAccountCircle as H, mdiChevronDown as B, mdiMagnify as C, mdiMenu as N } from "@mdi/js";
3
- import S from "../KvMaterialIcon.js";
4
- import p from "../KvIconBag.js";
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 T from "../../_virtual/_plugin-vue_export-helper.js";
7
- const U = f(() => import("./KvHeaderMobileMenu.js")), A = f(() => import("./KvHeaderMyKivaMenu.js")), D = f(() => import("./LendMenu/KvLendMenu.js")), V = {
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: S,
10
- KvIconBag: p
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
- return {
37
- mdiAccountCircle: H,
38
- mdiChevronDown: B,
39
- mdiMagnify: C,
40
- mdiMenu: N,
41
- onHover: (v, K) => {
42
- e("item-hover", v, K);
43
- },
44
- openSearch: () => {
45
- var v;
46
- e("open-search", (v = r.value) == null ? void 0 : v.offsetLeft);
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: U,
59
- KvHeaderMyKivaMenu: A,
60
- KvLendMenu: D
60
+ KvHeaderMobileMenu: V,
61
+ KvHeaderMyKivaMenu: _,
62
+ KvLendMenu: E
61
63
  };
62
64
  }
63
- }, _ = { class: "tw-h-full tw-flex tw-items-center" }, E = ["href"];
64
- function W(y, e, t, n, M, b) {
65
- const d = g("kv-material-icon"), k = g("kv-icon-bag"), u = L("kv-track-event");
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)) : m("", !0),
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 ? m("", !0) : (l(), a("a", {
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
- ]) : m("", !0),
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 ? m("", !0) : c((l(), a("a", {
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, E)), [
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 Q = /* @__PURE__ */ T(V, [["render", W], ["__scopeId", "data-v-850c5e69"]]);
175
+ const R = /* @__PURE__ */ D(W, [["render", F], ["__scopeId", "data-v-ed7c52d8"]]);
174
176
  export {
175
- Q as default
177
+ R as default
176
178
  };
@@ -1 +1 @@
1
- .menu-heading[data-v-695e2428]{font-weight:300;font-size:1rem;letter-spacing:0em;line-height:1.5}@media (min-width: 64rem){.menu-heading[data-v-695e2428]{font-size:1.0625rem;letter-spacing:0em}}.menu-heading[data-v-695e2428]{font-weight:400}.region-list[data-v-695e2428],.search-list[data-v-695e2428]{-moz-column-fill:auto;column-fill:auto;-moz-columns:3;columns:3;gap:2rem}.mega-menu-link[data-v-695e2428]{display:inline-block;padding-top:.5rem;padding-bottom:.5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mega-menu-link[data-v-695e2428]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}.link-item[data-v-695e2428]{width:11rem;text-decoration-line:none}.link-item[data-v-695e2428]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
1
+ .menu-heading[data-v-c47f9ef7]{font-weight:300;font-size:1rem;letter-spacing:0em;line-height:1.5}@media (min-width: 64rem){.menu-heading[data-v-c47f9ef7]{font-size:1.0625rem;letter-spacing:0em}}.menu-heading[data-v-c47f9ef7]{font-weight:400}.region-list[data-v-c47f9ef7],.search-list[data-v-c47f9ef7]{-moz-column-fill:auto;column-fill:auto;-moz-columns:3;columns:3;gap:2rem}.mega-menu-link[data-v-c47f9ef7]{display:inline-block;padding-top:.5rem;padding-bottom:.5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mega-menu-link[data-v-c47f9ef7]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}.link-item[data-v-c47f9ef7]{width:11rem;text-decoration-line:none}.link-item[data-v-c47f9ef7]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
@@ -46,7 +46,7 @@ const z = {
46
46
  }
47
47
  },
48
48
  setup(p) {
49
- const e = L(null), i = L(""), l = k(() => i.value !== ""), y = (a) => i.value === a, S = (a) => {
49
+ const e = L(null), i = L(""), l = k(() => i.value !== ""), f = (a) => i.value === a, S = (a) => {
50
50
  i.value = a;
51
51
  }, h = k(() => {
52
52
  var r;
@@ -56,19 +56,19 @@ const z = {
56
56
  a.transform = `translateX(${o * -1}px)`;
57
57
  }
58
58
  return a;
59
- }), f = k(() => p.regions.filter((a) => y(a.name))), _ = k(() => p.searches.length > 0);
59
+ }), y = k(() => p.regions.filter((a) => f(a.name))), _ = k(() => p.searches.length > 0);
60
60
  return {
61
61
  mdiArrowRight: N,
62
62
  mdiChevronLeft: T,
63
63
  categoriesSection: e,
64
64
  openedSection: i,
65
65
  sectionOpen: l,
66
- isOpenSection: y,
66
+ isOpenSection: f,
67
67
  openSection: S,
68
68
  onClose: () => {
69
69
  i.value = "";
70
70
  },
71
- openRegions: f,
71
+ openRegions: y,
72
72
  computedStyle: h,
73
73
  hasSearches: _,
74
74
  savedSearchesTitle: "Saved searches"
@@ -96,8 +96,8 @@ const z = {
96
96
  href: "/lend/countries-not-lent",
97
97
  class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
98
98
  }, le = { class: "tw-col-span-2" }, ie = { class: "tw-col-span-8 tw-flex tw-flex-col" }, ae = { class: "tw-flex tw-whitespace-nowrap tw-h-full" }, re = { class: "tw-font-medium" }, ce = ["aria-pressed", "onClick"];
99
- function de(p, e, i, l, y, S) {
100
- const h = u("kv-loading-placeholder"), f = u("kv-material-icon"), _ = u("kv-lend-menu-search-list"), b = u("kv-lend-menu-country-list"), a = u("kv-grid"), r = R("kv-track-event");
99
+ function de(p, e, i, l, f, S) {
100
+ const h = u("kv-loading-placeholder"), y = u("kv-material-icon"), _ = u("kv-lend-menu-search-list"), b = u("kv-lend-menu-country-list"), a = u("kv-grid"), r = R("kv-track-event");
101
101
  return n(), s("div", E, [
102
102
  t("div", {
103
103
  style: A(l.computedStyle),
@@ -197,7 +197,7 @@ function de(p, e, i, l, y, S) {
197
197
  class: "tw-flex",
198
198
  onClick: e[1] || (e[1] = (o) => l.openedSection = "")
199
199
  }, [
200
- w(f, {
200
+ w(y, {
201
201
  class: "tw-flex-shrink-0 tw-w-3 tw-h-3",
202
202
  icon: l.mdiChevronLeft
203
203
  }, null, 8, ["icon"]),
@@ -230,7 +230,7 @@ function de(p, e, i, l, y, S) {
230
230
  }, [
231
231
  d((n(), s("button", {
232
232
  "aria-pressed": l.isOpenSection(o.name) ? "true" : "false",
233
- class: O(["tw-text-primary tw-text-left tw-py-1 hover:tw-text-action-highlight hover:tw-underline", { "tw-text-action": l.isOpenSection(o.name) }]),
233
+ class: O(["tw-text-primary tw-text-left tw-py-1 hover:tw-text-action hover:tw-underline", { "tw-text-action": l.isOpenSection(o.name) }]),
234
234
  onClick: (g) => l.openSection(o.name)
235
235
  }, [
236
236
  m(x(o.name), 1)
@@ -257,7 +257,7 @@ function de(p, e, i, l, y, S) {
257
257
  ], 4)
258
258
  ]);
259
259
  }
260
- const _e = /* @__PURE__ */ F(z, [["render", de], ["__scopeId", "data-v-695e2428"]]);
260
+ const _e = /* @__PURE__ */ F(z, [["render", de], ["__scopeId", "data-v-c47f9ef7"]]);
261
261
  export {
262
262
  _e as default
263
263
  };
@@ -1 +1 @@
1
- .country-list-item[data-v-219fb066]{width:11rem}
1
+ .country-list-item[data-v-b291d337]{width:11rem}
@@ -1,7 +1,7 @@
1
- import { resolveDirective as n, openBlock as e, createElementBlock as o, Fragment as c, renderList as a, withDirectives as l, createTextVNode as p, toDisplayString as r } from "vue";
1
+ import { resolveDirective as i, openBlock as e, createElementBlock as o, Fragment as c, renderList as a, withDirectives as l, createTextVNode as d, toDisplayString as r } from "vue";
2
2
  import "./KvLendMenuCountryList.css";
3
- import _ from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const d = {
3
+ import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const _ = {
5
5
  name: "CountryList",
6
6
  props: {
7
7
  countries: {
@@ -9,12 +9,12 @@ const d = {
9
9
  default: () => []
10
10
  }
11
11
  }
12
- }, m = { class: "tw-whitespace-nowrap tw-font-medium" }, u = ["href"], f = {
12
+ }, m = { class: "tw-whitespace-nowrap tw-font-medium" }, u = ["href"], w = {
13
13
  key: 1,
14
14
  class: "tw-block tw-py-1 tw-text-tertiary"
15
15
  };
16
- function w(h, k, s, v, y, x) {
17
- const i = n("kv-track-event");
16
+ function f(k, v, s, h, y, x) {
17
+ const n = i("kv-track-event");
18
18
  return e(), o("ul", m, [
19
19
  (e(!0), o(c, null, a(s.countries, (t) => (e(), o("li", {
20
20
  key: t.isoCode,
@@ -23,16 +23,16 @@ function w(h, k, s, v, y, x) {
23
23
  t.count > 0 ? l((e(), o("a", {
24
24
  key: 0,
25
25
  href: `/lend/filter?country=${t.isoCode}`,
26
- class: "tw-text-primary hover:tw-text-action-highlight tw-block tw-w-full tw-py-1"
26
+ class: "tw-text-primary hover:tw-text-action tw-block tw-w-full tw-py-1"
27
27
  }, [
28
- p(r(t.name) + " (" + r(t.count) + ") ", 1)
28
+ d(r(t.name) + " (" + r(t.count) + ") ", 1)
29
29
  ], 8, u)), [
30
- [i, ["TopNav", "click-Lend-Country", t.name]]
31
- ]) : (e(), o("span", f, r(t.name) + " (0) ", 1))
30
+ [n, ["TopNav", "click-Lend-Country", t.name]]
31
+ ]) : (e(), o("span", w, r(t.name) + " (0) ", 1))
32
32
  ]))), 128))
33
33
  ]);
34
34
  }
35
- const $ = /* @__PURE__ */ _(d, [["render", w], ["__scopeId", "data-v-219fb066"]]);
35
+ const b = /* @__PURE__ */ p(_, [["render", f], ["__scopeId", "data-v-b291d337"]]);
36
36
  export {
37
- $ as default
37
+ b as default
38
38
  };
@@ -1,32 +1,32 @@
1
- import { openBlock as e, createElementBlock as r, Fragment as a, renderList as l, createElementVNode as o, toDisplayString as i } from "vue";
2
- import c from "../../../_virtual/_plugin-vue_export-helper.js";
3
- const h = {
1
+ import { openBlock as e, createElementBlock as r, Fragment as a, renderList as l, createElementVNode as o, toDisplayString as c } from "vue";
2
+ import i from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ const p = {
4
4
  props: {
5
5
  searches: {
6
6
  type: Array,
7
7
  default: () => []
8
8
  }
9
9
  }
10
- }, p = { class: "tw-font-book" }, d = ["href"];
11
- function f(u, s, n, w, m, _) {
12
- return e(), r("ul", p, [
10
+ }, d = { class: "tw-font-book" }, f = ["href"];
11
+ function u(w, s, n, m, _, h) {
12
+ return e(), r("ul", d, [
13
13
  (e(!0), r(a, null, l(n.searches, (t) => (e(), r("li", {
14
14
  key: t.id
15
15
  }, [
16
16
  o("a", {
17
- class: "tw-text-primary hover:tw-text-action-highlight tw-block tw-w-full tw-py-1",
17
+ class: "tw-text-primary hover:tw-text-action tw-block tw-w-full tw-py-1",
18
18
  href: t.url
19
- }, i(t.name), 9, d)
19
+ }, c(t.name), 9, f)
20
20
  ]))), 128)),
21
21
  s[0] || (s[0] = o("li", null, [
22
22
  o("a", {
23
- class: "tw-text-primary hover:tw-text-action-highlight tw-block tw-w-full tw-py-1",
23
+ class: "tw-text-primary hover:tw-text-action tw-block tw-w-full tw-py-1",
24
24
  href: "/lend/saved-search"
25
25
  }, " Manage saved searches ")
26
26
  ], -1))
27
27
  ]);
28
28
  }
29
- const x = /* @__PURE__ */ c(h, [["render", f]]);
29
+ const k = /* @__PURE__ */ i(p, [["render", u]]);
30
30
  export {
31
- x as default
31
+ k as default
32
32
  };
@@ -1 +1 @@
1
- .header-margins[data-v-adc253f8]{margin:0 auto;max-width:1400px}.header-fade-enter-active[data-v-adc253f8]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-adc253f8]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-adc253f8],.header-fade-leave-to[data-v-adc253f8]{opacity:0}.header-fade-leave[data-v-adc253f8],.header-fade-enter-to[data-v-adc253f8]{opacity:1}.bg-opacity-50[data-v-adc253f8]{background-color:rgba(var(--bg-action-highlight),.5)}
1
+ .header-margins[data-v-2269b77f]{margin:0 auto;max-width:1400px}.header-fade-enter-active[data-v-2269b77f]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-2269b77f]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-2269b77f],.header-fade-leave-to[data-v-2269b77f]{opacity:0}.header-fade-leave[data-v-2269b77f],.header-fade-enter-to[data-v-2269b77f]{opacity:1}.bg-opacity-50[data-v-2269b77f]{background-color:rgba(var(--bg-action-highlight),.5)}
@@ -140,7 +140,7 @@ function z(C, n, t, e, m, k) {
140
140
  default: d(() => [
141
141
  _(r(u, {
142
142
  ref: "searchBar",
143
- class: "tw-absolute tw-left-1/2 tw--translate-x-1/2 tw-top-1/2 tw--translate-y-1/2 tw-h-full tw-w-full tw-min-h-screen",
143
+ class: "tw-absolute tw-left-1/2 tw--translate-x-1/2 tw-top-1/2 tw--translate-y-1/2 tw-h-full tw-w-full",
144
144
  style: {
145
145
  "max-width": "600px"
146
146
  },
@@ -164,7 +164,7 @@ function z(C, n, t, e, m, k) {
164
164
  r(w, { name: "header-fade" }, {
165
165
  default: d(() => [
166
166
  _(g("div", {
167
- class: "tw-absolute tw-z-modal tw-h-full tw-inset-x-0 tw-bg-eco-green-4 bg-opacity-50",
167
+ 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",
168
168
  style: { top: "3.75rem" },
169
169
  onClick: n[2] || (n[2] = (...v) => e.closeSearch && e.closeSearch(...v))
170
170
  }, [
@@ -196,7 +196,7 @@ function z(C, n, t, e, m, k) {
196
196
  _: 1
197
197
  });
198
198
  }
199
- const te = /* @__PURE__ */ V(D, [["render", z], ["__scopeId", "data-v-adc253f8"]]);
199
+ const te = /* @__PURE__ */ V(D, [["render", z], ["__scopeId", "data-v-2269b77f"]]);
200
200
  export {
201
201
  te as default
202
202
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.40.5",
3
+ "version": "6.41.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": "7684d83b97745310b7d55001d3dab0878c9acd33"
117
+ "gitHead": "fec3b15362bc58b76ca926df00d9d3da9c29e20f"
118
118
  }