@kiva/kv-components 6.5.0 → 6.6.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,6 +1,6 @@
1
- import { toRefs as n, computed as a, openBlock as i, createElementBlock as p, normalizeClass as u, renderSlot as c, createElementVNode as m, toDisplayString as f } from "vue";
2
- import w from "../_virtual/_plugin-vue_export-helper.js";
3
- const d = {
1
+ import { toRefs as n, computed as a, openBlock as i, createElementBlock as u, normalizeClass as p, renderSlot as c, createElementVNode as m, toDisplayString as f } from "vue";
2
+ import d from "../_virtual/_plugin-vue_export-helper.js";
3
+ const w = {
4
4
  props: {
5
5
  borrowerName: {
6
6
  type: String,
@@ -17,35 +17,41 @@ const d = {
17
17
  isCloseNextMilestone: {
18
18
  type: Boolean,
19
19
  default: !1
20
+ },
21
+ customMessage: {
22
+ type: String,
23
+ default: ""
20
24
  }
21
25
  },
22
- setup(t) {
26
+ setup(e) {
23
27
  const {
24
28
  borrowerName: o,
25
- milestonesNumber: e,
26
- isCloseNextMilestone: l
27
- } = n(t);
29
+ milestonesNumber: t,
30
+ isCloseNextMilestone: s
31
+ } = n(e);
28
32
  return {
29
33
  pillCopy: a(() => {
30
- if (l.value)
34
+ if (e.customMessage)
35
+ return e.customMessage;
36
+ if (s.value)
31
37
  return "You’re close to your next milestone!";
32
- const s = e.value > 1 ? `${e.value} of your milestones` : "your next milestone";
33
- return o.value ? `Supporting ${o.value} will hit ${s}!` : "Supporting this loan achieves a milestone!";
38
+ const l = t.value > 1 ? `${t.value} of your milestones` : "your next milestone";
39
+ return o.value ? `Supporting ${o.value} will hit ${l}!` : "Supporting this loan achieves a milestone!";
34
40
  })
35
41
  };
36
42
  }
37
43
  }, y = { class: "tw-text-wrap" };
38
- function x(t, o, e, l, r, s) {
39
- return i(), p("div", {
40
- class: u(["tw-w-max tw-flex tw-items-center tw-gap-1 tw-px-1 tw-py-0.5 tw-rounded", {
41
- "tw-text-small tw-bg-secondary": e.showBg
44
+ function g(e, o, t, s, r, l) {
45
+ return i(), u("div", {
46
+ class: p(["tw-w-max tw-flex tw-items-center tw-gap-1 tw-px-1 tw-py-0.5 tw-rounded", {
47
+ "tw-text-small tw-bg-secondary": t.showBg
42
48
  }])
43
49
  }, [
44
- c(t.$slots, "icon"),
45
- m("p", y, f(l.pillCopy), 1)
50
+ c(e.$slots, "icon"),
51
+ m("p", y, f(s.pillCopy), 1)
46
52
  ], 2);
47
53
  }
48
- const v = /* @__PURE__ */ w(d, [["render", x]]);
54
+ const v = /* @__PURE__ */ d(w, [["render", g]]);
49
55
  export {
50
56
  v as default
51
57
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.5.0",
3
+ "version": "6.6.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -107,5 +107,5 @@
107
107
  "embla-carousel-fade",
108
108
  "popper.js"
109
109
  ],
110
- "gitHead": "d7bbbf5fc30ed4b8c955c8603b6784e36f143344"
110
+ "gitHead": "640523fa07c1542647510ed746713061bb595ded"
111
111
  }