@kiva/kv-components 8.17.1 → 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,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 {
@@ -27,6 +27,7 @@ export { default as KvExpandableQuestion } from './KvExpandableQuestion.vue';
27
27
  export { default as KvFlag } from './KvFlag.vue';
28
28
  export { default as KvGrid } from './KvGrid.vue';
29
29
  export { default as KvIconButton } from './KvIconButton.vue';
30
+ export { default as KvImageUpload } from './KvImageUpload.vue';
30
31
  export { default as KvImpactDashboardHeader } from './KvImpactDashboardHeader.vue';
31
32
  export { default as KvImpactVerticalSelector } from './KvImpactVerticalSelector.vue';
32
33
  export { default as KvInlineActivityCard } from './KvInlineActivityCard.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "8.17.1",
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": "b717eef77a82336fd6df9908773911555f431a71"
131
+ "gitHead": "780ac87631c63baa1b900f0ee1a89e327476b263"
132
132
  }