@kiva/kv-components 8.18.0 → 8.18.1

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
- .link-bar[data-v-a53394e2]{display:flex;align-items:center;gap:.5rem}.link-bar__logo[data-v-a53394e2]{position:absolute;top:50%;left:50%;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media (min-width: 45.875rem){.link-bar[data-v-a53394e2]{display:grid;-moz-column-gap:1rem;column-gap:1rem;grid-template-areas:"logo lend right" "search search search";grid-template-columns:1fr auto auto;grid-template-rows:4rem auto;row-gap:.5rem}.link-bar__logo[data-v-a53394e2]{position:static;--tw-translate-x: 0;--tw-translate-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));grid-area:logo;justify-self:start}.link-bar__lend[data-v-a53394e2]{grid-area:lend}.link-bar__search[data-v-a53394e2]{grid-area:search;margin-bottom:.5rem}.link-bar__right[data-v-a53394e2]{grid-area:right}}@media (min-width: 64rem){.link-bar[data-v-a53394e2]{-moz-column-gap:1.25rem;column-gap:1.25rem;grid-template-areas:"logo lend search right";grid-template-columns:auto auto 1fr auto;grid-template-rows:4rem}.link-bar__search[data-v-a53394e2]{margin-bottom:0}}.header-link[data-v-a53394e2]{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-a53394e2]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
1
+ .link-bar[data-v-d90acda7]{display:flex;align-items:center;gap:.5rem}.link-bar__logo[data-v-d90acda7]{position:absolute;top:50%;left:50%;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media (min-width: 45.875rem){.link-bar[data-v-d90acda7]{display:grid;-moz-column-gap:1rem;column-gap:1rem;grid-template-areas:"logo lend right" "search search search";grid-template-columns:1fr auto auto;grid-template-rows:4rem auto;row-gap:.5rem}.link-bar__logo[data-v-d90acda7]{position:static;--tw-translate-x: 0;--tw-translate-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));grid-area:logo;justify-self:start}.link-bar__lend[data-v-d90acda7]{grid-area:lend}.link-bar__search[data-v-d90acda7]{grid-area:search;margin-bottom:.5rem}.link-bar__right[data-v-d90acda7]{grid-area:right}}@media (min-width: 64rem){.link-bar[data-v-d90acda7]{-moz-column-gap:1.25rem;column-gap:1.25rem;grid-template-areas:"logo lend search right";grid-template-columns:auto auto 1fr auto;grid-template-rows:4rem}.link-bar__search[data-v-d90acda7]{margin-bottom:0}}.header-link[data-v-d90acda7]{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-d90acda7]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
@@ -1,8 +1,8 @@
1
- import C from "./LinkBar2.js";
2
- import { resolveComponent as d, openBlock as a, createElementBlock as i, createElementVNode as l, withModifiers as h, createVNode as r, withCtx as k, createTextVNode as s, Fragment as M, renderList as p, toDisplayString as m, createCommentVNode as w, withDirectives as x, vShow as L, createBlock as B } from "vue";
1
+ import M from "./LinkBar2.js";
2
+ import { resolveComponent as d, openBlock as a, createElementBlock as i, createElementVNode as r, withModifiers as g, createVNode as l, withCtx as w, createTextVNode as s, Fragment as y, renderList as p, toDisplayString as m, createCommentVNode as v, withDirectives as x, vShow as L, createBlock as B } from "vue";
3
3
  import "./LinkBar.css";
4
4
  import O from "../../_virtual/_plugin-vue_export-helper.js";
5
- const S = { class: "link-bar__right tw-flex tw-items-center tw-justify-end tw-ml-auto md:tw-ml-0 tw-gap-1 md:tw-gap-2 lg:tw-gap-2.5" }, T = ["href", "data-testid", "onClick"], D = ["href"], U = { class: "tw-hidden md:tw-flex tw-items-center" }, H = { class: "tw-bg-secondary tw-rounded-xs tw-py-0.5 tw-px-1 tw-mr-1 tw-leading-none" }, I = { class: "tw-relative tw-flex md:tw-hidden tw-items-center tw-text-eco-green-4" }, A = {
5
+ const S = { class: "link-bar__right tw-flex tw-items-center tw-justify-end tw-ml-auto md:tw-ml-0 tw-gap-1 md:tw-gap-2 lg:tw-gap-2.5" }, T = ["href", "data-testid", "onClick"], D = ["href"], U = { class: "tw-hidden md:tw-flex tw-items-center" }, H = { class: "tw-bg-secondary tw-rounded-xs tw-py-0.5 tw-px-1 tw-mr-1 tw-leading-none" }, A = { class: "tw-relative tw-flex md:tw-hidden tw-items-center tw-text-eco-green-4" }, I = {
6
6
  key: 0,
7
7
  class: "tw-absolute tw-w-4 tw-h-4 tw-pt-0.5 tw-flex tw-items-center tw-justify-center tw-text-white tw-text-small tw-font-medium tw-pointer-events-none"
8
8
  }, K = { class: "tw-hidden md:tw-block" }, N = {
@@ -15,30 +15,30 @@ const S = { class: "link-bar__right tw-flex tw-items-center tw-justify-end tw-ml
15
15
  key: 2,
16
16
  class: "tw-w-3 tw-h-3 tw-rounded-full tw-overflow-hidden"
17
17
  };
18
- function V(v, n, o, e, j, X) {
19
- const c = d("kv-material-icon"), b = d("kv-header-logo"), u = d("kv-header-dropdown-link"), f = d("search-bar"), _ = d("kv-button"), g = d("kv-loading-placeholder"), y = d("kv-user-avatar");
18
+ function V(k, n, o, e, j, X) {
19
+ const c = d("kv-material-icon"), b = d("kv-header-logo"), u = d("kv-header-dropdown-link"), f = d("search-bar"), _ = d("kv-button"), h = d("kv-loading-placeholder"), C = d("kv-user-avatar");
20
20
  return a(), i("div", {
21
21
  class: "link-bar tw-min-h-[4rem] tw-font-medium tw-relative",
22
22
  onTouchstart: n[12] || (n[12] = (...t) => e.handleEmptySpaceClick && e.handleEmptySpaceClick(...t))
23
23
  }, [
24
- l("button", {
24
+ r("button", {
25
25
  type: "button",
26
26
  "aria-label": "Open menu",
27
27
  class: "header-link link-bar__hamburger tw-inline-flex md:tw-hidden",
28
28
  onMouseover: n[0] || (n[0] = (t) => e.handleOnHover("menuButton", e.MobileMenu)),
29
- onTouchstart: n[1] || (n[1] = h((t) => e.handleTouchStart("menuButton", e.MobileMenu), ["stop", "prevent"]))
29
+ onTouchstart: n[1] || (n[1] = g((t) => e.handleTouchStart("menuButton", e.MobileMenu), ["stop", "prevent"]))
30
30
  }, [
31
- r(c, { icon: e.mdiMenu }, null, 8, ["icon"])
31
+ l(c, { icon: e.mdiMenu }, null, 8, ["icon"])
32
32
  ], 32),
33
- l("a", {
33
+ r("a", {
34
34
  href: "/",
35
35
  "aria-label": "Kiva home",
36
36
  class: "link-bar__logo tw-px-1 tw-py-2 tw-cursor-pointer",
37
37
  onClick: n[2] || (n[2] = (...t) => e.onLogoClick && e.onLogoClick(...t))
38
38
  }, [
39
- r(b)
39
+ l(b)
40
40
  ]),
41
- r(u, {
41
+ l(u, {
42
42
  class: "link-bar__lend",
43
43
  "ref-name": "lendButton",
44
44
  href: e.lendUrl,
@@ -50,28 +50,28 @@ function V(v, n, o, e, j, X) {
50
50
  onMouseleave: n[3] || (n[3] = (t) => e.handleMouseOut("lendButton")),
51
51
  onUserTap: e.handleTouchStart
52
52
  }, {
53
- default: k(() => n[13] || (n[13] = [
53
+ default: w(() => n[13] || (n[13] = [
54
54
  s(" Lend ")
55
55
  ])),
56
56
  _: 1
57
57
  }, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover", "onUserTap"]),
58
- r(f, {
58
+ l(f, {
59
59
  class: "link-bar__search tw-min-w-0 tw-hidden md:tw-block",
60
60
  "search-suggestions": o.searchSuggestions,
61
61
  "app-origin": o.appOrigin,
62
62
  "is-mobile": o.isMobile,
63
- onLoadSearchData: n[4] || (n[4] = (t) => v.$emit("load-search-data")),
64
- onSearchSubmit: n[5] || (n[5] = (t) => v.$emit("search-submit", t))
63
+ onLoadSearchData: n[4] || (n[4] = (t) => k.$emit("load-search-data")),
64
+ onSearchSubmit: n[5] || (n[5] = (t) => k.$emit("search-submit", t))
65
65
  }, null, 8, ["search-suggestions", "app-origin", "is-mobile"]),
66
- l("div", S, [
67
- (a(!0), i(M, null, p(e.visiblePrimaryLinks, (t) => (a(), i("a", {
66
+ r("div", S, [
67
+ (a(!0), i(y, null, p(e.visiblePrimaryLinks, (t) => (a(), i("a", {
68
68
  key: t.id,
69
69
  href: t.href,
70
70
  class: "header-link tw-hidden md:tw-block",
71
71
  "data-testid": `header-link-${t.id}`,
72
72
  onClick: (F) => e.onPrimaryClick(t)
73
73
  }, m(t.label), 9, T))), 128)),
74
- r(u, {
74
+ l(u, {
75
75
  "ref-name": "aboutLink",
76
76
  class: "tw-hidden md:tw-block",
77
77
  "menu-component": e.AboutMenu,
@@ -83,79 +83,79 @@ function V(v, n, o, e, j, X) {
83
83
  onMouseleave: n[6] || (n[6] = (t) => e.handleMouseOut("aboutLink")),
84
84
  onUserTap: e.handleTouchStart
85
85
  }, {
86
- default: k(() => n[14] || (n[14] = [
86
+ default: w(() => n[14] || (n[14] = [
87
87
  s(" About ")
88
88
  ])),
89
89
  _: 1
90
90
  }, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover", "onUserTap"]),
91
- o.loggedIn ? w("", !0) : (a(), i("a", {
91
+ o.loggedIn ? v("", !0) : (a(), i("a", {
92
92
  key: 0,
93
93
  href: o.loginUrl,
94
94
  class: "header-link",
95
95
  "data-testid": "header-login",
96
96
  onClick: n[7] || (n[7] = (...t) => e.onLoginClick && e.onLoginClick(...t))
97
97
  }, "Log in", 8, D)),
98
- o.loggedIn ? x((a(), i("a", {
99
- key: 1,
98
+ x(r("a", {
100
99
  href: "/basket",
101
100
  class: "header-link tw-flex tw-items-center",
102
101
  "data-testid": "header-basket",
103
102
  onClick: n[8] || (n[8] = (...t) => e.onBasketClick && e.onBasketClick(...t))
104
103
  }, [
105
- l("span", U, [
106
- l("span", H, m(o.basketCount), 1),
104
+ r("span", U, [
105
+ r("span", H, m(o.basketCount), 1),
107
106
  n[15] || (n[15] = s(" Basket "))
108
107
  ]),
109
- l("span", I, [
110
- o.isBasketDataLoading ? w("", !0) : (a(), i("span", A, m(o.basketCount), 1)),
111
- r(c, {
108
+ r("span", A, [
109
+ o.isBasketDataLoading ? v("", !0) : (a(), i("span", I, m(o.basketCount), 1)),
110
+ l(c, {
112
111
  icon: e.mdiBriefcase,
113
112
  class: "tw-w-4 tw-h-4 tw-pointer-events-none"
114
113
  }, null, 8, ["icon"]),
115
- n[16] || (n[16] = l("span", { class: "tw-sr-only" }, "Basket", -1))
114
+ n[16] || (n[16] = r("span", { class: "tw-sr-only" }, "Basket", -1))
116
115
  ])
117
- ], 512)), [
116
+ ], 512), [
118
117
  [L, o.basketCount > 0 || o.isBasketDataLoading]
119
- ]) : w("", !0),
120
- l("div", K, [
121
- r(_, {
118
+ ]),
119
+ r("div", K, [
120
+ l(_, {
122
121
  variant: "secondary",
123
122
  href: "/donate/supportus",
124
123
  class: "tw-whitespace-nowrap",
125
124
  "data-testid": "header-support-kiva",
126
125
  onClick: e.onSupportKivaClick
127
126
  }, {
128
- default: k(() => n[17] || (n[17] = [
127
+ default: w(() => n[17] || (n[17] = [
129
128
  s(" Support Kiva ")
130
129
  ])),
131
130
  _: 1
132
131
  }, 8, ["onClick"])
133
132
  ]),
134
133
  o.loggedIn ? (a(), i("div", {
135
- key: 2,
134
+ key: 1,
136
135
  ref: "avatarMenu",
136
+ "data-testid": "header-avatar-menu",
137
137
  class: "tw-flex tw-items-center tw-gap-1 tw-cursor-pointer tw-py-1",
138
138
  onMouseenter: n[9] || (n[9] = (t) => e.handleOnHover("avatarMenu", e.MyKivaMenu, e.getAvatarMenuPosition(), e.getAvatarTriggerCenterX())),
139
139
  onMouseleave: n[10] || (n[10] = (t) => e.handleMouseOut("avatarMenu")),
140
- onTouchstart: n[11] || (n[11] = h((t) => e.handleTouchStart("avatarMenu", e.MyKivaMenu, e.getAvatarMenuPosition(), e.getAvatarTriggerCenterX()), ["stop"]))
140
+ onTouchstart: n[11] || (n[11] = g((t) => e.handleTouchStart("avatarMenu", e.MyKivaMenu, e.getAvatarMenuPosition(), e.getAvatarTriggerCenterX()), ["stop"]))
141
141
  }, [
142
142
  o.isUserDataLoading ? (a(), i("div", N, [
143
- r(g)
143
+ l(h)
144
144
  ])) : (a(), i("span", E, m(e.formattedBalance), 1)),
145
145
  o.isUserDataLoading ? (a(), i("div", P, [
146
- r(g)
147
- ])) : (a(), B(y, {
146
+ l(h)
147
+ ])) : (a(), B(C, {
148
148
  key: 3,
149
149
  class: "tw-w-3 tw-h-3",
150
150
  "lender-name": o.lenderName,
151
151
  "lender-image-url": o.lenderImageUrl,
152
152
  "is-small": ""
153
153
  }, null, 8, ["lender-name", "lender-image-url"]))
154
- ], 544)) : w("", !0)
154
+ ], 544)) : v("", !0)
155
155
  ])
156
156
  ], 32);
157
157
  }
158
- const Q = /* @__PURE__ */ O(C, [["render", V], ["__scopeId", "data-v-a53394e2"]]);
158
+ const Q = /* @__PURE__ */ O(M, [["render", V], ["__scopeId", "data-v-d90acda7"]]);
159
159
  export {
160
160
  Q as default
161
161
  };
@@ -196,6 +196,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
196
196
  };
197
197
  }>, {
198
198
  onClose: () => void;
199
+ onAboutToggle: ({ open }: {
200
+ open: boolean;
201
+ }) => void;
199
202
  onLinkClick: (action: string) => void;
200
203
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "closing-menu"[], "closing-menu", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
201
204
  loggedIn: {
@@ -1,24 +1,24 @@
1
- import { defineAsyncComponent as l, inject as U, ref as s, computed as a } from "vue";
2
- import { mdiMenu as w, mdiChevronDown as A, mdiBriefcase as P } from "@mdi/js";
3
- import O from "numeral";
4
- import D from "../KvMaterialIcon.js";
5
- import x from "../KvUserAvatar.js";
6
- import R from "../KvLoadingPlaceholder.js";
7
- import $ from "../KvButton.js";
8
- import E from "../KvWwwHeader/KvHeaderLogo.js";
9
- import H from "../KvWwwHeader/KvHeaderDropdownLink.js";
10
- import { PRIMARY_LINKS as _ } from "../../utils/headerNavLinks.js";
11
- import j from "./SearchBar.js";
12
- const d = l(() => import("../KvWwwHeader/LendMenu/KvLendMenu.js")), m = l(() => import("./AboutMenu.js")), F = l(() => import("./MyKivaMenu.js")), G = l(() => import("./MobileMenu.js")), ne = {
1
+ import { defineAsyncComponent as r, inject as P, ref as d, computed as i } from "vue";
2
+ import { mdiMenu as D, mdiChevronDown as x, mdiBriefcase as R } from "@mdi/js";
3
+ import $ from "numeral";
4
+ import E from "../KvMaterialIcon.js";
5
+ import H from "../KvUserAvatar.js";
6
+ import _ from "../KvLoadingPlaceholder.js";
7
+ import j from "../KvButton.js";
8
+ import F from "../KvWwwHeader/KvHeaderLogo.js";
9
+ import G from "../KvWwwHeader/KvHeaderDropdownLink.js";
10
+ import { PRIMARY_LINKS as W } from "../../utils/headerNavLinks.js";
11
+ import X from "./SearchBar.js";
12
+ const v = r(() => import("../KvWwwHeader/LendMenu/KvLendMenu.js")), p = r(() => import("./AboutMenu.js")), Y = r(() => import("./MyKivaMenu.js")), q = r(() => import("./MobileMenu.js")), ie = {
13
13
  name: "LinkBar",
14
14
  components: {
15
- KvMaterialIcon: D,
16
- KvUserAvatar: x,
17
- KvLoadingPlaceholder: R,
18
- KvButton: $,
19
- KvHeaderLogo: E,
20
- KvHeaderDropdownLink: H,
21
- SearchBar: j
15
+ KvMaterialIcon: E,
16
+ KvUserAvatar: H,
17
+ KvLoadingPlaceholder: _,
18
+ KvButton: j,
19
+ KvHeaderLogo: F,
20
+ KvHeaderDropdownLink: G,
21
+ SearchBar: X
22
22
  },
23
23
  props: {
24
24
  loggedIn: { type: Boolean, default: !1 },
@@ -41,74 +41,89 @@ const d = l(() => import("../KvWwwHeader/LendMenu/KvLendMenu.js")), m = l(() =>
41
41
  openMenuItem: { type: [Object, Function], default: null }
42
42
  },
43
43
  emits: ["item-hover", "load-search-data", "search-submit"],
44
- setup(t, { emit: r }) {
45
- const i = U("$kvTrackEvent", () => {
46
- }), o = s(null), u = s(null);
47
- function p() {
44
+ setup(t, { emit: l }) {
45
+ const o = P("$kvTrackEvent", () => {
46
+ }), a = d(null), u = d(null);
47
+ function g() {
48
48
  const e = u.value, n = e == null ? void 0 : e.getBoundingClientRect();
49
49
  return n ? t.isMobile ? { right: "0" } : { right: `${window.innerWidth - n.right}px` } : null;
50
50
  }
51
- function g() {
51
+ function b() {
52
52
  if (t.isMobile) return null;
53
53
  const e = u.value, n = e == null ? void 0 : e.getBoundingClientRect();
54
54
  return n ? n.left + n.width / 2 : null;
55
55
  }
56
- const v = a(() => _.filter((e) => e.visibility === "visitor" ? !t.loggedIn : e.visibility === "loggedIn" ? t.loggedIn : !0)), y = a(() => t.isMobile ? void 0 : "/lend-by-category"), h = a(() => O(Math.floor(t.balance)).format("$0")), k = a(() => t.openMenuItem === d ? t.openMenuItem : null), M = a(() => t.openMenuItem === m ? t.openMenuItem : null);
57
- function b(e, n, c = null, f = null) {
58
- navigator.maxTouchPoints || (o.value = e, r("item-hover", e, n, c, f));
56
+ const h = i(() => W.filter((e) => e.visibility === "visitor" ? !t.loggedIn : e.visibility === "loggedIn" ? t.loggedIn : !0)), k = i(() => t.isMobile ? void 0 : "/lend-by-category"), y = i(() => $(Math.floor(t.balance)).format("$0")), M = i(() => t.openMenuItem === v ? t.openMenuItem : null), B = i(() => t.openMenuItem === p ? t.openMenuItem : null), L = {
57
+ menuButton: { action: "hover-Mobile-menu", label: "Mobile" },
58
+ lendButton: { action: "hover-Lend-menu", label: "Lend" },
59
+ aboutLink: { action: "hover-About-menu", label: "About" },
60
+ avatarMenu: { action: "hover-User-menu", label: "User" }
61
+ }, I = {
62
+ menuButton: { action: "close-Mobile-menu", label: "Mobile" }
63
+ };
64
+ function s(e) {
65
+ const n = L[e];
66
+ n && o("TopNav", n.action, n.label);
67
+ }
68
+ function m(e) {
69
+ const n = I[e];
70
+ n && o("TopNav", n.action, n.label);
71
+ }
72
+ function T(e, n, c = null, f = null) {
73
+ navigator.maxTouchPoints || (a.value !== e && s(e), a.value = e, l("item-hover", e, n, c, f));
59
74
  }
60
- function B(e) {
61
- navigator.maxTouchPoints || o.value === e && (o.value = null, r("item-hover"));
75
+ function C(e) {
76
+ navigator.maxTouchPoints || a.value === e && (m(e), a.value = null, l("item-hover"));
62
77
  }
63
- function I(e, n, c = null, f = null) {
64
- o.value === e ? (o.value = null, r("item-hover")) : (o.value = e, r("item-hover", e, n, c, f));
78
+ function S(e, n, c = null, f = null) {
79
+ a.value === e ? (m(e), a.value = null, l("item-hover")) : (s(e), a.value = e, l("item-hover", e, n, c, f));
65
80
  }
66
- function L(e) {
67
- e.target === e.currentTarget && r("item-hover");
81
+ function N(e) {
82
+ e.target === e.currentTarget && l("item-hover");
68
83
  }
69
- function S(e) {
70
- i(e.track[0], e.track[1]);
84
+ function K(e) {
85
+ o(e.track[0], e.track[1]);
71
86
  }
72
- function T() {
73
- i("TopNav", "click-Log-in");
87
+ function U() {
88
+ o("TopNav", "click-Log-in");
74
89
  }
75
- function C() {
76
- i("TopNav", "click-Basket");
90
+ function A() {
91
+ o("TopNav", "click-Basket");
77
92
  }
78
- function K() {
79
- i("TopNav", "click-Support-Kiva");
93
+ function O() {
94
+ o("TopNav", "click-Support-Kiva");
80
95
  }
81
- function N() {
82
- i("TopNav", "click-Logo");
96
+ function w() {
97
+ o("TopNav", "click-Logo");
83
98
  }
84
99
  return {
85
- mdiMenu: w,
86
- mdiChevronDown: A,
87
- mdiBriefcase: P,
88
- KvLendMenu: d,
89
- AboutMenu: m,
90
- MyKivaMenu: F,
91
- MobileMenu: G,
100
+ mdiMenu: D,
101
+ mdiChevronDown: x,
102
+ mdiBriefcase: R,
103
+ KvLendMenu: v,
104
+ AboutMenu: p,
105
+ MyKivaMenu: Y,
106
+ MobileMenu: q,
92
107
  avatarMenu: u,
93
- getAvatarMenuPosition: p,
94
- getAvatarTriggerCenterX: g,
95
- visiblePrimaryLinks: v,
96
- lendUrl: y,
97
- formattedBalance: h,
98
- lendOpenItem: k,
99
- aboutOpenItem: M,
100
- handleOnHover: b,
101
- handleMouseOut: B,
102
- handleTouchStart: I,
103
- handleEmptySpaceClick: L,
104
- onPrimaryClick: S,
105
- onLoginClick: T,
106
- onBasketClick: C,
107
- onSupportKivaClick: K,
108
- onLogoClick: N
108
+ getAvatarMenuPosition: g,
109
+ getAvatarTriggerCenterX: b,
110
+ visiblePrimaryLinks: h,
111
+ lendUrl: k,
112
+ formattedBalance: y,
113
+ lendOpenItem: M,
114
+ aboutOpenItem: B,
115
+ handleOnHover: T,
116
+ handleMouseOut: C,
117
+ handleTouchStart: S,
118
+ handleEmptySpaceClick: N,
119
+ onPrimaryClick: K,
120
+ onLoginClick: U,
121
+ onBasketClick: A,
122
+ onSupportKivaClick: O,
123
+ onLogoClick: w
109
124
  };
110
125
  }
111
126
  };
112
127
  export {
113
- ne as default
128
+ ie as default
114
129
  };
@@ -1 +1 @@
1
- .mobile-link[data-v-e3e9102f]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-e3e9102f]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}#header-basic-mobile-about-container[data-v-e3e9102f] button{padding-top:0;padding-bottom:0}#header-basic-mobile-about-container[data-v-e3e9102f] nav{padding-bottom:0}
1
+ .mobile-link[data-v-bc7e1655]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-bc7e1655]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}#header-basic-mobile-about-container[data-v-bc7e1655] button{padding-top:0;padding-bottom:0}#header-basic-mobile-about-container[data-v-bc7e1655] nav{padding-bottom:0}
@@ -1,52 +1,53 @@
1
1
  import c from "./MobileMenu2.js";
2
- import { resolveComponent as i, openBlock as m, createElementBlock as d, createVNode as l, withCtx as r, createElementVNode as t } from "vue";
2
+ import { resolveComponent as i, openBlock as m, createElementBlock as d, createVNode as l, withCtx as r, createElementVNode as e } from "vue";
3
3
  import "./MobileMenu.css";
4
- import p from "../../_virtual/_plugin-vue_export-helper.js";
4
+ import b from "../../_virtual/_plugin-vue_export-helper.js";
5
5
  const w = {
6
6
  id: "header-basic-mobile-about-container",
7
7
  class: "tw-flex tw-flex-col tw-items-stretch tw-font-medium tw-p-2.5 md:tw-hidden"
8
- }, u = {
8
+ }, p = {
9
9
  "aria-label": "Mobile menu",
10
10
  class: "tw-flex tw-flex-col tw-gap-2 tw-pt-1.5"
11
11
  };
12
- function b(k, o, f, e, _, v) {
12
+ function u(k, o, f, t, _, v) {
13
13
  const a = i("about-menu"), s = i("kv-accordion-item");
14
14
  return m(), d("div", w, [
15
15
  l(s, {
16
16
  id: "kv-www-header-basic-about",
17
- class: "tw-w-full tw-border-b-0"
17
+ class: "tw-w-full tw-border-b-0",
18
+ onToggle: t.onAboutToggle
18
19
  }, {
19
20
  header: r(() => o[3] || (o[3] = [
20
- t("span", { class: "tw-text-button tw-pb-0.5" }, " About ", -1)
21
+ e("span", { class: "tw-text-button tw-pb-0.5" }, " About ", -1)
21
22
  ])),
22
23
  default: r(() => [
23
24
  l(a, {
24
25
  "is-mobile": "",
25
- onClosingMenu: e.onClose
26
+ onClosingMenu: t.onClose
26
27
  }, null, 8, ["onClosingMenu"])
27
28
  ]),
28
29
  _: 1
29
- }),
30
- t("nav", u, [
31
- t("a", {
30
+ }, 8, ["onToggle"]),
31
+ e("nav", p, [
32
+ e("a", {
32
33
  href: "/about/partner-with-us",
33
34
  class: "mobile-link",
34
- onClick: o[0] || (o[0] = (n) => e.onLinkClick("click-Partner"))
35
+ onClick: o[0] || (o[0] = (n) => t.onLinkClick("click-Partner"))
35
36
  }, "Partner"),
36
- t("a", {
37
+ e("a", {
37
38
  href: "/donate/supportus",
38
39
  class: "mobile-link",
39
- onClick: o[1] || (o[1] = (n) => e.onLinkClick("click-Support-Kiva"))
40
+ onClick: o[1] || (o[1] = (n) => t.onLinkClick("click-Support-Kiva"))
40
41
  }, "Support Kiva"),
41
- t("a", {
42
+ e("a", {
42
43
  href: "/borrow",
43
44
  class: "mobile-link",
44
- onClick: o[2] || (o[2] = (n) => e.onLinkClick("click-Borrow"))
45
+ onClick: o[2] || (o[2] = (n) => t.onLinkClick("click-Borrow"))
45
46
  }, "Borrow")
46
47
  ])
47
48
  ]);
48
49
  }
49
- const B = /* @__PURE__ */ p(c, [["render", b], ["__scopeId", "data-v-e3e9102f"]]);
50
+ const M = /* @__PURE__ */ b(c, [["render", u], ["__scopeId", "data-v-bc7e1655"]]);
50
51
  export {
51
- B as default
52
+ M as default
52
53
  };
@@ -13,6 +13,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
13
13
  };
14
14
  }>, {
15
15
  onClose: () => void;
16
+ onAboutToggle: ({ open }: {
17
+ open: boolean;
18
+ }) => void;
16
19
  onLinkClick: (action: string) => void;
17
20
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "closing-menu"[], "closing-menu", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
21
  loggedIn: {
@@ -1,9 +1,9 @@
1
- import { inject as l } from "vue";
1
+ import { inject as u } from "vue";
2
2
  import r from "../KvAccordionItem.js";
3
- import s from "./AboutMenu.js";
3
+ import c from "./AboutMenu.js";
4
4
  const m = {
5
5
  name: "MobileMenu",
6
- components: { KvAccordionItem: r, AboutMenu: s },
6
+ components: { KvAccordionItem: r, AboutMenu: c },
7
7
  props: {
8
8
  loggedIn: {
9
9
  type: Boolean,
@@ -19,16 +19,19 @@ const m = {
19
19
  }
20
20
  },
21
21
  emits: ["closing-menu"],
22
- setup(c, { emit: o }) {
23
- const n = l("$kvTrackEvent", () => {
22
+ setup(s, { emit: n }) {
23
+ const e = u("$kvTrackEvent", () => {
24
24
  });
25
- function e() {
26
- o("closing-menu");
25
+ function t() {
26
+ n("closing-menu");
27
27
  }
28
- function t(i) {
29
- n("TopNav", i), o("closing-menu");
28
+ function i({ open: o }) {
29
+ o && e("TopNav", "hover-About-menu", "About");
30
30
  }
31
- return { onClose: e, onLinkClick: t };
31
+ function l(o) {
32
+ e("TopNav", o), n("closing-menu");
33
+ }
34
+ return { onClose: t, onAboutToggle: i, onLinkClick: l };
32
35
  }
33
36
  };
34
37
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "8.18.0",
3
+ "version": "8.18.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -128,5 +128,5 @@
128
128
  "dependencies": {
129
129
  "fuse.js": "^7.1.0"
130
130
  },
131
- "gitHead": "34c0c8109e5d079a5d08fedda139c2ecee8fdc8e"
131
+ "gitHead": "780ac87631c63baa1b900f0ee1a89e327476b263"
132
132
  }