@kiva/kv-components 6.52.5 → 6.52.7

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-479de318]{cursor:pointer;padding-top:1rem;padding-bottom:1rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-479de318]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
1
+ .header-link[data-v-e35e8b60]{cursor:pointer;padding-top:1rem;padding-bottom:1rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-e35e8b60]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
@@ -1,19 +1,19 @@
1
- import { defineAsyncComponent as M, ref as i, computed as j, onMounted as F, onUnmounted as q, resolveComponent as k, resolveDirective as G, openBlock as a, createElementBlock as c, withDirectives as v, normalizeClass as b, createVNode as _, createBlock as g, withCtx as x, createTextVNode as w, createElementVNode as D, createCommentVNode as h, vShow as J, toDisplayString as Q } from "vue";
2
- import { mdiAccountCircle as X, mdiChevronDown as Y, mdiMagnify as Z, mdiMenu as $ } from "@mdi/js";
3
- import ee from "numeral";
4
- import ne from "../KvMaterialIcon.js";
5
- import te from "../KvIconBag.js";
6
- import oe from "./KvHeaderDropdownLink.js";
7
- import le from "../KvUserAvatar.js";
1
+ import { defineAsyncComponent as M, ref as r, computed as F, onMounted as q, onUnmounted as G, resolveComponent as g, resolveDirective as J, openBlock as i, createElementBlock as c, withDirectives as m, normalizeClass as b, createVNode as D, createBlock as h, withCtx as L, createTextVNode as w, createElementVNode as C, createCommentVNode as p, vShow as Q, toDisplayString as X } from "vue";
2
+ import { mdiAccountCircle as Y, mdiChevronDown as Z, mdiMagnify as $, mdiMenu as ee } from "@mdi/js";
3
+ import ne from "numeral";
4
+ import te from "../KvMaterialIcon.js";
5
+ import oe from "../KvIconBag.js";
6
+ import le from "./KvHeaderDropdownLink.js";
7
+ import re from "../KvUserAvatar.js";
8
8
  import { throttle as ie } from "../../utils/throttle.js";
9
9
  import "./KvHeaderLinkBar.css";
10
- import re from "../../_virtual/_plugin-vue_export-helper.js";
11
- const ae = M(() => import("./KvHeaderMobileMenu.js")), C = M(() => import("./KvHeaderMyKivaMenu.js")), ue = M(() => import("./LendMenu/KvLendMenu.js")), de = M(() => import("./KvHeaderTakeActionMenu.js")), me = M(() => import("./KvHeaderAboutMenu.js")), E = 146, p = "avatar-menu", L = "menuButton", S = { top: "-3.75rem", width: "100%" }, se = {
10
+ import ae from "../../_virtual/_plugin-vue_export-helper.js";
11
+ const ue = M(() => import("./KvHeaderMobileMenu.js")), E = M(() => import("./KvHeaderMyKivaMenu.js")), de = M(() => import("./LendMenu/KvLendMenu.js")), me = M(() => import("./KvHeaderTakeActionMenu.js")), se = M(() => import("./KvHeaderAboutMenu.js")), S = 146, y = "avatar-menu", B = "menuButton", V = { top: "-3.75rem", width: "100%" }, ve = {
12
12
  components: {
13
- KvMaterialIcon: ne,
14
- KvIconBag: te,
15
- KvHeaderDropdownLink: oe,
16
- KvUserAvatar: le
13
+ KvMaterialIcon: te,
14
+ KvIconBag: oe,
15
+ KvHeaderDropdownLink: le,
16
+ KvUserAvatar: re
17
17
  },
18
18
  props: {
19
19
  loggedIn: {
@@ -56,81 +56,79 @@ const ae = M(() => import("./KvHeaderMobileMenu.js")), C = M(() => import("./KvH
56
56
  emits: [
57
57
  "item-hover"
58
58
  ],
59
- setup(d, { emit: e }) {
60
- const t = i(null), n = i(null), B = i(null), K = i(null), y = i(null), f = i(null), A = i(null), T = i(null), u = i(null), o = i(null), I = i(!1), m = (l, s, r = null) => {
61
- e("item-hover", l, s, r);
62
- }, V = (l, s, r = null) => {
63
- navigator.maxTouchPoints || (o.value = l, m(
59
+ setup(s, { emit: e }) {
60
+ const t = r(null), n = r(null), K = r(null), O = r(null), A = r(null), f = r(null), T = r(null), I = r(null), a = r(null), o = r(null), H = r(!1), k = r(), u = (l, d, v = null) => {
61
+ e("item-hover", l, d, v);
62
+ }, P = (l, d, v = null) => {
63
+ navigator.maxTouchPoints || (o.value = l, u(
64
64
  l,
65
- s,
66
- l === L && d.isMobile ? S : r
65
+ d,
66
+ l === B && s.isMobile ? V : v
67
67
  ));
68
- }, P = (l) => {
69
- !I.value && o.value === l && (o.value = null, m());
70
- }, R = () => {
71
- var U, N;
72
- const l = (N = (U = t.value) == null ? void 0 : U.userAvatar) == null ? void 0 : N.getBoundingClientRect();
68
+ }, R = (l) => {
69
+ !H.value && o.value === l && (o.value = null, u());
70
+ }, z = () => {
71
+ var N, _;
72
+ const l = (_ = (N = t.value) == null ? void 0 : N.userAvatar) == null ? void 0 : _.getBoundingClientRect();
73
73
  if (!l) return null;
74
- const r = l.left + l.width / 2 - E / 2;
74
+ const v = l.left + l.width / 2 - S / 2;
75
75
  return {
76
- ...r + E > window.innerWidth ? { right: 0 } : { left: d.isMobile ? 0 : `${r}px` },
76
+ ...v + S > window.innerWidth ? { right: 0 } : { left: s.isMobile ? 0 : `${v}px` },
77
77
  marginTop: "-2px",
78
78
  // Avoid closing avatar menu on header edge
79
- borderRadius: d.isMobile ? "auto" : "0px 0px 8px 8px",
80
- width: d.isMobile ? "100%" : "auto"
79
+ borderRadius: s.isMobile ? "auto" : "0px 0px 8px 8px"
81
80
  };
82
- }, H = () => {
83
- o.value = p, m(t.value, C, R());
84
- }, z = (l, s) => {
85
- let r = null;
86
- I.value = !0, r && clearTimeout(r), o.value === L && (o.value = null), !o.value || o.value !== l ? (o.value = l, l === p ? H() : l === L && d.isMobile ? m(l, s, S) : m(l, s)) : (o.value = null, m()), r = setTimeout(() => {
87
- I.value = !1;
88
- }, 100);
89
- }, O = ie(() => {
90
- o.value === p && H();
91
- }, 100), W = j(() => d.isMobile ? void 0 : "/lend-by-category");
92
- return F(() => {
93
- import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", O);
94
- }), q(() => {
95
- window.removeEventListener("resize", O);
81
+ }, x = () => {
82
+ o.value = y, u(t.value, E, z());
83
+ }, W = (l, d) => {
84
+ k.value = null, H.value = !0, k.value && clearTimeout(k.value), o.value === B && (o.value = null), !o.value || o.value !== l ? (o.value = l, l === y ? x() : l === B && s.isMobile ? u(l, d, V) : u(l, d)) : (o.value = null, u()), k.value = setTimeout(() => {
85
+ H.value = !1;
86
+ }, 500);
87
+ }, U = ie(() => {
88
+ o.value === y && x();
89
+ }, 100), j = F(() => s.isMobile ? void 0 : "/lend-by-category");
90
+ return q(() => {
91
+ import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", U);
92
+ }), G(() => {
93
+ window.removeEventListener("resize", U);
96
94
  }), {
97
- AVATAR_MENU_ID: p,
95
+ AVATAR_MENU_ID: y,
98
96
  openMenuId: o,
99
- numeral: ee,
100
- mdiAccountCircle: X,
101
- mdiChevronDown: Y,
102
- mdiMagnify: Z,
103
- mdiMenu: $,
104
- onHover: m,
97
+ numeral: ne,
98
+ mdiAccountCircle: Y,
99
+ mdiChevronDown: Z,
100
+ mdiMagnify: $,
101
+ mdiMenu: ee,
102
+ onHover: u,
105
103
  avatar: t,
106
104
  lendButton: n,
107
- aboutUsLink: B,
108
- partnerWithUsLink: K,
109
- borrowLink: y,
105
+ aboutUsLink: K,
106
+ partnerWithUsLink: O,
107
+ borrowLink: A,
110
108
  supportKivaLink: f,
111
- basketLink: A,
112
- signInLink: T,
113
- menuButton: u,
114
- lendUrl: W,
115
- handleOnHover: V,
116
- handleTouchStart: z,
117
- handleMouseOut: P,
118
- handleAvatarMenuPosition: H,
119
- KvHeaderMobileMenu: ae,
120
- KvHeaderMyKivaMenu: C,
121
- KvLendMenu: ue,
122
- KvHeaderTakeActionMenu: de,
123
- KvHeaderAboutMenu: me
109
+ basketLink: T,
110
+ signInLink: I,
111
+ menuButton: a,
112
+ lendUrl: j,
113
+ handleOnHover: P,
114
+ handleTouchStart: W,
115
+ handleMouseOut: R,
116
+ handleAvatarMenuPosition: x,
117
+ KvHeaderMobileMenu: ue,
118
+ KvHeaderMyKivaMenu: E,
119
+ KvLendMenu: de,
120
+ KvHeaderTakeActionMenu: me,
121
+ KvHeaderAboutMenu: se
124
122
  };
125
123
  }
126
- }, ve = { class: "tw-h-full tw-flex tw-items-center tw-gap-0.5 md:tw-gap-1.5 lg:tw-gap-2.5" }, ce = ["href"], fe = {
124
+ }, ce = { class: "tw-h-full tw-flex tw-items-center tw-gap-0.5 md:tw-gap-1.5 lg:tw-gap-2.5" }, fe = ["href"], we = {
127
125
  key: 0,
128
126
  class: "tw-bg-eco-green-1 tw-py-0.5 tw-px-1 tw-text-eco-green-4"
129
- }, we = ["href"];
130
- function Me(d, e, t, n, B, K) {
131
- const y = k("kv-material-icon"), f = k("KvHeaderDropdownLink"), A = k("kv-icon-bag"), T = k("KvUserAvatar"), u = G("kv-track-event");
132
- return a(), c("div", ve, [
133
- v((a(), c("button", {
127
+ }, Me = ["href"];
128
+ function ke(s, e, t, n, K, O) {
129
+ const A = g("kv-material-icon"), f = g("KvHeaderDropdownLink"), T = g("kv-icon-bag"), I = g("KvUserAvatar"), a = J("kv-track-event");
130
+ return i(), c("div", ce, [
131
+ m((i(), c("button", {
134
132
  ref: "menuButton",
135
133
  class: b(["header-link tw-inline-flex md:tw-hidden", {
136
134
  "tw-text-tertiary": t.openMenuItem && t.openMenuItem !== n.KvHeaderMobileMenu
@@ -139,11 +137,11 @@ function Me(d, e, t, n, B, K) {
139
137
  onMouseout: e[1] || (e[1] = (o) => n.handleMouseOut("menuButton")),
140
138
  onTouchstart: e[2] || (e[2] = (o) => n.handleTouchStart("menuButton", n.KvHeaderMobileMenu))
141
139
  }, [
142
- _(y, { icon: n.mdiMenu }, null, 8, ["icon"])
140
+ D(A, { icon: n.mdiMenu }, null, 8, ["icon"])
143
141
  ], 34)), [
144
- [u, t.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
142
+ [a, t.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
145
143
  ]),
146
- v((a(), g(f, {
144
+ m((i(), h(f, {
147
145
  class: "tw-py-1",
148
146
  "ref-name": "lendButton",
149
147
  href: n.lendUrl,
@@ -155,14 +153,14 @@ function Me(d, e, t, n, B, K) {
155
153
  onMouseout: e[3] || (e[3] = (o) => n.handleMouseOut("lendButton")),
156
154
  onTouchstart: e[4] || (e[4] = (o) => n.handleTouchStart("lendButton", n.KvLendMenu))
157
155
  }, {
158
- default: x(() => e[10] || (e[10] = [
156
+ default: L(() => e[10] || (e[10] = [
159
157
  w(" Lend ")
160
158
  ])),
161
159
  _: 1
162
160
  }, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
163
- [u, ["TopNav", "click-Lend"]]
161
+ [a, ["TopNav", "click-Lend"]]
164
162
  ]),
165
- v((a(), g(f, {
163
+ m((i(), h(f, {
166
164
  "ref-name": "takeActionButton",
167
165
  "base-class": "tw-hidden md:tw-inline-flex tw-py-1",
168
166
  "menu-component": n.KvHeaderTakeActionMenu,
@@ -172,14 +170,14 @@ function Me(d, e, t, n, B, K) {
172
170
  onOnHover: n.handleOnHover,
173
171
  onMouseout: e[5] || (e[5] = (o) => n.handleMouseOut("takeActionButton"))
174
172
  }, {
175
- default: x(() => e[11] || (e[11] = [
173
+ default: L(() => e[11] || (e[11] = [
176
174
  w(" Take action ")
177
175
  ])),
178
176
  _: 1
179
177
  }, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
180
- [u, ["TopNav", "click-TakeAction"]]
178
+ [a, ["TopNav", "click-TakeAction"]]
181
179
  ]),
182
- v((a(), g(f, {
180
+ m((i(), h(f, {
183
181
  "ref-name": "aboutUsLink",
184
182
  "data-testid": "header-about",
185
183
  "base-class": "tw-hidden md:tw-inline-flex tw-py-1",
@@ -190,66 +188,67 @@ function Me(d, e, t, n, B, K) {
190
188
  onOnHover: n.handleOnHover,
191
189
  onMouseout: e[6] || (e[6] = (o) => n.handleMouseOut("aboutUsLink"))
192
190
  }, {
193
- default: x(() => e[12] || (e[12] = [
191
+ default: L(() => e[12] || (e[12] = [
194
192
  w(" About ")
195
193
  ])),
196
194
  _: 1
197
195
  }, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
198
- [u, ["TopNav", "click-About"]]
196
+ [a, ["TopNav", "click-About"]]
199
197
  ]),
200
- e[15] || (e[15] = D("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
201
- t.loggedIn ? v((a(), c("a", {
198
+ e[15] || (e[15] = C("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
199
+ t.loggedIn ? m((i(), c("a", {
202
200
  key: 0,
203
201
  ref: "dashboardLink",
204
202
  href: t.myDashboardUrl,
205
203
  class: b(["header-link tw-hidden md:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
206
204
  }, e[13] || (e[13] = [
207
205
  w(" My dashboard ")
208
- ]), 10, ce)), [
209
- [u, ["TopNav", "click-Dashboard"]]
210
- ]) : h("", !0),
211
- v((a(), c("a", {
206
+ ]), 10, fe)), [
207
+ [a, ["TopNav", "click-Dashboard"]]
208
+ ]) : p("", !0),
209
+ m((i(), c("a", {
212
210
  ref: "basketLink",
213
211
  href: "/basket",
214
- class: b(["header-link tw-relative", { "tw-text-tertiary": !!t.openMenuItem }]),
212
+ class: b(["header-link tw-relative md:!tw-mr-0", { "tw-text-tertiary": !!t.openMenuItem }]),
213
+ style: { "margin-right": "2px" },
215
214
  "data-testid": "header-basket"
216
215
  }, [
217
- _(A, {
216
+ D(T, {
218
217
  class: "tw-w-3 tw-h-3 tw-pointer-events-none",
219
218
  count: t.basketCount
220
219
  }, null, 8, ["count"])
221
220
  ], 2)), [
222
- [J, t.basketCount > 0],
223
- [u, ["TopNav", "click-Basket"]]
221
+ [Q, t.basketCount > 0],
222
+ [a, ["TopNav", "click-Basket"]]
224
223
  ]),
225
- D("div", {
224
+ C("div", {
226
225
  class: "tw-cursor-pointer tw-flex tw-items-center tw-gap-1 tw-py-1.5",
227
226
  onMouseover: e[7] || (e[7] = (...o) => n.handleAvatarMenuPosition && n.handleAvatarMenuPosition(...o)),
228
227
  onMouseout: e[8] || (e[8] = (o) => n.handleMouseOut(n.AVATAR_MENU_ID)),
229
228
  onTouchstart: e[9] || (e[9] = (o) => n.handleTouchStart(n.AVATAR_MENU_ID))
230
229
  }, [
231
- t.loggedIn ? (a(), c("span", fe, Q(n.numeral(t.balance).format("$0")), 1)) : h("", !0),
232
- t.loggedIn ? (a(), g(T, {
230
+ t.loggedIn ? (i(), c("span", we, X(n.numeral(t.balance).format("$0")), 1)) : p("", !0),
231
+ t.loggedIn ? (i(), h(I, {
233
232
  key: 1,
234
233
  ref: "avatar",
235
234
  "lender-name": t.lenderName,
236
235
  "lender-image-url": t.lenderImageUrl,
237
236
  "is-small": ""
238
- }, null, 8, ["lender-name", "lender-image-url"])) : h("", !0)
237
+ }, null, 8, ["lender-name", "lender-image-url"])) : p("", !0)
239
238
  ], 32),
240
- t.loggedIn ? h("", !0) : v((a(), c("a", {
239
+ t.loggedIn ? p("", !0) : m((i(), c("a", {
241
240
  key: 1,
242
241
  ref: "signInLink",
243
242
  href: t.loginUrl,
244
243
  class: b(["header-link", { "tw-text-tertiary": !!t.openMenuItem }])
245
244
  }, e[14] || (e[14] = [
246
245
  w(" Sign in ")
247
- ]), 10, we)), [
248
- [u, ["TopNav", "click-Sign-in"]]
246
+ ]), 10, Me)), [
247
+ [a, ["TopNav", "click-Sign-in"]]
249
248
  ])
250
249
  ]);
251
250
  }
252
- const Le = /* @__PURE__ */ re(se, [["render", Me], ["__scopeId", "data-v-479de318"]]);
251
+ const Be = /* @__PURE__ */ ae(ve, [["render", ke], ["__scopeId", "data-v-e35e8b60"]]);
253
252
  export {
254
- Le as default
253
+ Be as default
255
254
  };
@@ -1 +1 @@
1
- .mobile-link[data-v-4faf4cb4]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-4faf4cb4]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
1
+ .mobile-link[data-v-c5a33b4b]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-c5a33b4b]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
@@ -1,7 +1,7 @@
1
- import { mdiClose as w } from "@mdi/js";
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 u, resolveDirective as g, openBlock as t, createElementBlock as o, createBlock as _, createCommentVNode as y, createVNode as p, withCtx as a, createElementVNode as r, Fragment as N, renderList as x, withDirectives as n, toDisplayString as m, createTextVNode as s } from "vue";
4
+ import { resolveComponent as p, resolveDirective as g, openBlock as t, createElementBlock as o, createBlock as _, createCommentVNode as y, createVNode as u, withCtx as a, createElementVNode as r, Fragment as N, renderList as x, withDirectives as n, toDisplayString as m, createTextVNode as s } from "vue";
5
5
  import "./KvHeaderMobileMenu.css";
6
6
  import I from "../../_virtual/_plugin-vue_export-helper.js";
7
7
  const K = {
@@ -26,7 +26,7 @@ const K = {
26
26
  emits: ["closing-menu"],
27
27
  data() {
28
28
  return {
29
- mdiClose: w,
29
+ mdiClose: f,
30
30
  menuItems: [
31
31
  {
32
32
  title: "Choose someone to help",
@@ -55,7 +55,7 @@ const K = {
55
55
  ]
56
56
  };
57
57
  }
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" }, C = { class: "tw-flex tw-flex-col tw-gap-2" }, M = ["href"], E = { class: "tw-text-secondary tw-font-book" }, B = { class: "tw-flex tw-flex-col tw-gap-2 tw-pt-1 tw-pb-2" }, D = {
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" }, C = { class: "tw-flex tw-flex-col tw-gap-2 tw-pl-1" }, M = ["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
59
  href: "/about",
60
60
  class: "mobile-link"
61
61
  }, A = {
@@ -81,21 +81,21 @@ const K = {
81
81
  class: "mobile-link"
82
82
  };
83
83
  function S(k, e, v, q, c, z) {
84
- const f = u("KvMaterialIcon"), d = u("KvAccordionItem"), i = g("kv-track-event");
84
+ const w = p("KvMaterialIcon"), d = p("KvAccordionItem"), i = g("kv-track-event");
85
85
  return t(), o("nav", T, [
86
- v.isMobile ? (t(), _(f, {
86
+ v.isMobile ? (t(), _(w, {
87
87
  key: 0,
88
88
  icon: c.mdiClose,
89
89
  class: "tw-cursor-pointer",
90
90
  onClick: e[0] || (e[0] = (l) => k.$emit("closing-menu"))
91
91
  }, null, 8, ["icon"])) : y("", !0),
92
- p(d, {
92
+ u(d, {
93
93
  id: "accordion-take-action-menu",
94
94
  open: "",
95
95
  class: "tw-w-full tw-border-b-0"
96
96
  }, {
97
97
  header: a(() => e[1] || (e[1] = [
98
- r("h3", null, "Take action", -1)
98
+ r("h3", { class: "tw-pb-0.5" }, " Take action ", -1)
99
99
  ])),
100
100
  default: a(() => [
101
101
  r("div", C, [
@@ -114,12 +114,12 @@ function S(k, e, v, q, c, z) {
114
114
  ]),
115
115
  _: 1
116
116
  }),
117
- p(d, {
117
+ u(d, {
118
118
  id: "accordion-about-menu",
119
- class: "tw-w-full"
119
+ class: "tw-w-full tw-pb-1"
120
120
  }, {
121
121
  header: a(() => e[2] || (e[2] = [
122
- r("h3", null, "About", -1)
122
+ r("h3", { class: "tw-pb-0.5" }, " About ", -1)
123
123
  ])),
124
124
  default: a(() => [
125
125
  r("div", B, [
@@ -169,7 +169,7 @@ function S(k, e, v, q, c, z) {
169
169
  })
170
170
  ]);
171
171
  }
172
- const Q = /* @__PURE__ */ I(K, [["render", S], ["__scopeId", "data-v-4faf4cb4"]]);
172
+ const Q = /* @__PURE__ */ I(K, [["render", S], ["__scopeId", "data-v-c5a33b4b"]]);
173
173
  export {
174
174
  Q as default
175
175
  };
@@ -1,9 +1,9 @@
1
- import f from "./KvHeaderMenuLink.js";
2
- import { resolveComponent as m, openBlock as a, createElementBlock as u, createVNode as s, withCtx as r, createTextVNode as o, createBlock as l, createCommentVNode as d } from "vue";
3
- import i from "../../_virtual/_plugin-vue_export-helper.js";
4
- const w = {
1
+ import d from "./KvHeaderMenuLink.js";
2
+ import { resolveComponent as u, openBlock as a, createElementBlock as i, 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 = {
5
5
  components: {
6
- KvHeaderMenuLink: f
6
+ KvHeaderMenuLink: d
7
7
  },
8
8
  props: {
9
9
  balance: {
@@ -23,40 +23,40 @@ const w = {
23
23
  default: "/mykiva"
24
24
  }
25
25
  }
26
- }, p = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start md:tw-items-start tw-font-medium tw-px-2.5" };
26
+ }, w = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium tw-px-2.5" };
27
27
  function y(b, e, n, k, v, x) {
28
- const t = m("kv-header-menu-link");
29
- return a(), u("nav", p, [
28
+ const t = u("kv-header-menu-link");
29
+ return a(), i("nav", w, [
30
30
  s(t, {
31
31
  href: n.myDashboardUrl,
32
32
  class: "md:tw-hidden"
33
33
  }, {
34
- default: r(() => e[0] || (e[0] = [
35
- o(" My Dashboard ")
34
+ default: o(() => e[0] || (e[0] = [
35
+ r(" My Dashboard ")
36
36
  ])),
37
37
  _: 1
38
38
  }, 8, ["href"]),
39
39
  s(t, { href: "/portfolio" }, {
40
- default: r(() => e[1] || (e[1] = [
41
- o(" Portfolio ")
40
+ default: o(() => e[1] || (e[1] = [
41
+ r(" Portfolio ")
42
42
  ])),
43
43
  _: 1
44
44
  }),
45
45
  s(t, { href: "/teams/my-teams" }, {
46
- default: r(() => e[2] || (e[2] = [
47
- o(" My Teams ")
46
+ default: o(() => e[2] || (e[2] = [
47
+ r(" My Teams ")
48
48
  ])),
49
49
  _: 1
50
50
  }),
51
51
  s(t, { href: "/portfolio/donations" }, {
52
- default: r(() => e[3] || (e[3] = [
53
- o(" Donations ")
52
+ default: o(() => e[3] || (e[3] = [
53
+ r(" Donations ")
54
54
  ])),
55
55
  _: 1
56
56
  }),
57
57
  s(t, { href: "/settings" }, {
58
- default: r(() => e[4] || (e[4] = [
59
- o(" Settings ")
58
+ default: o(() => e[4] || (e[4] = [
59
+ r(" Settings ")
60
60
  ])),
61
61
  _: 1
62
62
  }),
@@ -64,32 +64,32 @@ function y(b, e, n, k, v, x) {
64
64
  key: 0,
65
65
  href: "/my/borrower"
66
66
  }, {
67
- default: r(() => e[5] || (e[5] = [
68
- o(" Borrower Dashboard ")
67
+ default: o(() => e[5] || (e[5] = [
68
+ r(" Borrower Dashboard ")
69
69
  ])),
70
70
  _: 1
71
- })) : d("", !0),
71
+ })) : f("", !0),
72
72
  n.isTrustee ? (a(), l(t, {
73
73
  key: 1,
74
74
  href: "/my/trustee"
75
75
  }, {
76
- default: r(() => e[6] || (e[6] = [
77
- o(" Trustee Dashboard ")
76
+ default: o(() => e[6] || (e[6] = [
77
+ r(" Trustee Dashboard ")
78
78
  ])),
79
79
  _: 1
80
- })) : d("", !0),
80
+ })) : f("", !0),
81
81
  s(t, {
82
82
  href: "/ui-logout",
83
83
  class: "tw-border-t tw-border-secondary tw-w-full"
84
84
  }, {
85
- default: r(() => e[7] || (e[7] = [
86
- o(" Sign out ")
85
+ default: o(() => e[7] || (e[7] = [
86
+ r(" Sign out ")
87
87
  ])),
88
88
  _: 1
89
89
  })
90
90
  ]);
91
91
  }
92
- const g = /* @__PURE__ */ i(w, [["render", y]]);
92
+ const g = /* @__PURE__ */ m(p, [["render", y]]);
93
93
  export {
94
94
  g as default
95
95
  };
@@ -1 +1 @@
1
- .header-fade-enter-active[data-v-0892fc4e]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-0892fc4e]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-0892fc4e],.header-fade-leave-to[data-v-0892fc4e]{opacity:0}.header-fade-leave[data-v-0892fc4e],.header-fade-enter-to[data-v-0892fc4e]{opacity:1}.bg-opacity-50[data-v-0892fc4e]{background-color:rgba(var(--bg-action-highlight),.5)}
1
+ .header-fade-enter-active[data-v-8196be34]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-8196be34]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-8196be34],.header-fade-leave-to[data-v-8196be34]{opacity:0}.header-fade-leave[data-v-8196be34],.header-fade-enter-to[data-v-8196be34]{opacity:1}.bg-opacity-50[data-v-8196be34]{background-color:rgba(var(--bg-action-highlight),.5)}
@@ -1,4 +1,4 @@
1
- import { ref as l, shallowRef as T, onBeforeMount as D, onBeforeUnmount as B, resolveComponent as c, resolveDirective as U, openBlock as w, createBlock as I, withCtx as f, createElementVNode as b, normalizeStyle as k, createVNode as s, Transition as E, withDirectives as _, vShow as M, createElementBlock as x, resolveDynamicComponent as N } from "vue";
1
+ import { ref as l, shallowRef as T, onMounted as D, onBeforeUnmount as B, resolveComponent as c, resolveDirective as U, openBlock as b, createBlock as I, withCtx as f, createElementVNode as w, normalizeStyle as k, createVNode as s, Transition as E, withDirectives as _, vShow as M, createElementBlock as x, resolveDynamicComponent as N } from "vue";
2
2
  import G from "@kiva/kv-tokens";
3
3
  import S from "./KvWwwHeader/KvHeaderLinkBar.js";
4
4
  import K from "./KvWwwHeader/KvHeaderLogo.js";
@@ -105,12 +105,12 @@ const V = "3.75rem", O = {
105
105
  };
106
106
  function j(C, n, o, e, a, r) {
107
107
  const m = c("kv-header-link-bar"), i = c("kv-header-logo"), d = c("kv-page-container"), u = c("kv-theme-provider"), g = U("kv-track-event");
108
- return w(), I(u, {
108
+ return b(), I(u, {
109
109
  tag: "div",
110
110
  class: "tw-bg-primary"
111
111
  }, {
112
112
  default: f(() => [
113
- b("nav", {
113
+ w("nav", {
114
114
  class: "tw-font-medium tw-relative",
115
115
  style: k({ height: e.HEADER_HEIGHT })
116
116
  }, [
@@ -135,7 +135,7 @@ function j(C, n, o, e, a, r) {
135
135
  ]),
136
136
  _: 1
137
137
  }),
138
- _((w(), x("a", W, [
138
+ _((b(), x("a", W, [
139
139
  s(i)
140
140
  ])), [
141
141
  [g, ["TopNav", "click-Logo"]]
@@ -146,17 +146,17 @@ function j(C, n, o, e, a, r) {
146
146
  ], 4),
147
147
  s(E, { name: "header-fade" }, {
148
148
  default: f(() => [
149
- _(b("div", {
149
+ _(w("div", {
150
150
  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
151
  style: k({ top: e.HEADER_HEIGHT })
152
152
  }, [
153
- b("div", {
153
+ w("div", {
154
154
  class: "tw-bg-primary tw-overflow-y-auto",
155
155
  style: k({ ...e.menuPosition, maxHeight: `calc(100dvh - ${e.HEADER_HEIGHT})` }),
156
156
  onMouseover: n[1] || (n[1] = (v) => e.onHover(e.activeHeaderItem, e.menuComponent)),
157
157
  onMouseout: n[2] || (n[2] = (v) => e.onHover())
158
158
  }, [
159
- (w(), I(N(e.menuComponent), {
159
+ (b(), I(N(e.menuComponent), {
160
160
  ref: "menuComponentInstance",
161
161
  "logged-in": o.loggedIn,
162
162
  "login-url": o.loginUrl,
@@ -180,7 +180,7 @@ function j(C, n, o, e, a, r) {
180
180
  _: 1
181
181
  });
182
182
  }
183
- const oe = /* @__PURE__ */ P(O, [["render", j], ["__scopeId", "data-v-0892fc4e"]]);
183
+ const oe = /* @__PURE__ */ P(O, [["render", j], ["__scopeId", "data-v-8196be34"]]);
184
184
  export {
185
185
  oe as default
186
186
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.52.5",
3
+ "version": "6.52.7",
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": "9aad4bcdf5d250a7a138a22b087e35c48e1e6c4f"
117
+ "gitHead": "786200af075ab4a0c66f6da6317c686fa6501ff3"
118
118
  }