@kiva/kv-components 8.20.0 → 8.21.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,44 +1,47 @@
1
- import u from "./KvLoanTag2.js";
2
- import { KV_LOAN_TAG_FRAGMENT as O } from "./KvLoanTag2.js";
3
- import { resolveComponent as c, openBlock as e, createElementBlock as a, normalizeStyle as _, normalizeClass as g, Fragment as o, createTextVNode as i, toDisplayString as r, createElementVNode as h, createVNode as f, withCtx as k, renderList as w, createBlock as y, createCommentVNode as m } from "vue";
4
- import p from "../_virtual/_plugin-vue_export-helper.js";
5
- const x = ["id"];
6
- function v(M, N, l, C, T, t) {
7
- const d = c("kv-tooltip"), s = c("kv-countdown-timer");
8
- return t.variation ? (e(), a("div", {
1
+ import h from "./KvLoanTag2.js";
2
+ import { KV_LOAN_TAG_FRAGMENT as L } from "./KvLoanTag2.js";
3
+ import { resolveComponent as d, openBlock as e, createElementBlock as r, normalizeStyle as _, normalizeClass as w, Fragment as l, createTextVNode as m, toDisplayString as a, createElementVNode as o, createVNode as p, withCtx as y, renderList as f, createBlock as k, createCommentVNode as s } from "vue";
4
+ import x from "../_virtual/_plugin-vue_export-helper.js";
5
+ const v = ["id"], M = { class: "tw-whitespace-nowrap tw-pb-0.5" };
6
+ function N(b, i, c, C, T, t) {
7
+ const u = d("kv-tooltip"), g = d("kv-countdown-timer");
8
+ return t.variation ? (e(), r("div", {
9
9
  key: 0,
10
- class: g(["tw-text-small tw-font-medium tw-pt-0.5", { "tw-line-clamp-1": !t.isMultipleMatch }]),
10
+ class: w(["tw-text-small tw-font-medium tw-pt-0.5", { "tw-line-clamp-1": !t.isMultipleMatch }]),
11
11
  style: _({ color: t.tagColor })
12
12
  }, [
13
- t.isMultipleMatch ? (e(), a(o, { key: 0 }, [
14
- i(r(t.totalMatchRatio) + "x match by ", 1),
15
- h("span", {
16
- id: `matching-orgs-${l.loan.id}`,
13
+ t.isMultipleMatch ? (e(), r(l, { key: 0 }, [
14
+ m(a(t.totalMatchRatio) + "x match by ", 1),
15
+ o("span", {
16
+ id: `matching-orgs-${c.loan.id}`,
17
17
  class: "tw-underline tw-decoration-dotted tw-cursor-pointer"
18
- }, r(t.multiMatchingOrgs.length) + " organizations", 9, x),
19
- f(d, {
20
- controller: `matching-orgs-${l.loan.id}`,
18
+ }, a(t.multiMatchingOrgs.length) + " organizations", 9, v),
19
+ p(u, {
20
+ controller: `matching-orgs-${c.loan.id}`,
21
+ "max-width": "320px",
21
22
  theme: "default"
22
23
  }, {
23
- default: k(() => [
24
- (e(!0), a(o, null, w(t.multiMatchingOrgs, (n) => (e(), a("p", {
24
+ default: y(() => [
25
+ o("p", M, " Your contribution is matched by " + a(t.multiMatchingOrgs.length) + " partners ", 1),
26
+ i[0] || (i[0] = o("hr", { class: "tw-border-caution-highlight tw-py-0.5" }, null, -1)),
27
+ (e(!0), r(l, null, f(t.multiMatchingOrgs, (n) => (e(), r("p", {
25
28
  key: n.managedAccountId,
26
29
  class: "tw-m-0"
27
- }, r(n.ratio + 1) + "x matching by " + r(t.orgDisplayName(n)), 1))), 128))
30
+ }, a(n.ratio) + ":1 matching by " + a(t.orgDisplayName(n)), 1))), 128))
28
31
  ]),
29
32
  _: 1
30
33
  }, 8, ["controller"])
31
- ], 64)) : (e(), a(o, { key: 1 }, [
32
- i(r(t.tagText) + " ", 1),
33
- t.variation === "ending-soon" ? (e(), y(s, {
34
+ ], 64)) : (e(), r(l, { key: 1 }, [
35
+ m(a(t.tagText) + " ", 1),
36
+ t.variation === "ending-soon" ? (e(), k(g, {
34
37
  key: 0,
35
38
  deadline: t.deadline
36
- }, null, 8, ["deadline"])) : m("", !0)
39
+ }, null, 8, ["deadline"])) : s("", !0)
37
40
  ], 64))
38
- ], 6)) : m("", !0);
41
+ ], 6)) : s("", !0);
39
42
  }
40
- const B = /* @__PURE__ */ p(u, [["render", v]]);
43
+ const z = /* @__PURE__ */ x(h, [["render", N]]);
41
44
  export {
42
- O as KV_LOAN_TAG_FRAGMENT,
43
- B as default
45
+ L as KV_LOAN_TAG_FRAGMENT,
46
+ z as default
44
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "8.20.0",
3
+ "version": "8.21.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -113,5 +113,5 @@
113
113
  "dependencies": {
114
114
  "fuse.js": "^7.1.0"
115
115
  },
116
- "gitHead": "32daf0d9133bf15a96343d59440a637f69fdbf3c"
116
+ "gitHead": "13131d8cc45d84ab1bfe6b370feffb9d6c09a635"
117
117
  }