@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.
- package/dist/vue/KvCartPill.js +23 -17
- package/package.json +2 -2
package/dist/vue/KvCartPill.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toRefs as n, computed as a, openBlock as i, createElementBlock as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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(
|
|
26
|
+
setup(e) {
|
|
23
27
|
const {
|
|
24
28
|
borrowerName: o,
|
|
25
|
-
milestonesNumber:
|
|
26
|
-
isCloseNextMilestone:
|
|
27
|
-
} = n(
|
|
29
|
+
milestonesNumber: t,
|
|
30
|
+
isCloseNextMilestone: s
|
|
31
|
+
} = n(e);
|
|
28
32
|
return {
|
|
29
33
|
pillCopy: a(() => {
|
|
30
|
-
if (
|
|
34
|
+
if (e.customMessage)
|
|
35
|
+
return e.customMessage;
|
|
36
|
+
if (s.value)
|
|
31
37
|
return "You’re close to your next milestone!";
|
|
32
|
-
const
|
|
33
|
-
return o.value ? `Supporting ${o.value} will hit ${
|
|
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
|
|
39
|
-
return i(),
|
|
40
|
-
class:
|
|
41
|
-
"tw-text-small tw-bg-secondary":
|
|
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(
|
|
45
|
-
m("p", y, f(
|
|
50
|
+
c(e.$slots, "icon"),
|
|
51
|
+
m("p", y, f(s.pillCopy), 1)
|
|
46
52
|
], 2);
|
|
47
53
|
}
|
|
48
|
-
const v = /* @__PURE__ */ w
|
|
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.
|
|
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": "
|
|
110
|
+
"gitHead": "640523fa07c1542647510ed746713061bb595ded"
|
|
111
111
|
}
|