@kiva/kv-components 6.4.0 → 6.4.2
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/KvCartModal.css +1 -1
- package/dist/vue/KvCartModal.js +11 -11
- package/dist/vue/KvCartPill.js +30 -15
- package/package.json +2 -2
package/dist/vue/KvCartModal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.screen[data-v-
|
|
1
|
+
.screen[data-v-c2a75743]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1400;background-color:#0003}.modal[data-v-c2a75743]{width:100%;border-bottom-right-radius:.875rem;border-bottom-left-radius:.875rem;--tw-bg-opacity: 1;background-color:rgba(var(--bg-primary),var(--tw-bg-opacity, 1))}@media (min-width: 45.875rem){.modal[data-v-c2a75743]{position:absolute;right:0}}.modal[data-v-c2a75743]{max-height:90%}.container[data-v-c2a75743]{position:absolute;top:0;right:0;bottom:0;left:0}@media (min-width: 45.875rem){.modal[data-v-c2a75743]{max-width:24.5rem}}
|
package/dist/vue/KvCartModal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toRefs as T, ref as w, computed as E, watch as A, onMounted as N, onBeforeUnmount as V, resolveComponent as y, openBlock as b, createBlock as I, Transition as K, withCtx as x, withDirectives as F, createElementVNode as o, withModifiers as k, renderSlot as
|
|
1
|
+
import { toRefs as T, ref as w, computed as E, watch as A, onMounted as N, onBeforeUnmount as V, resolveComponent as y, openBlock as b, createBlock as I, Transition as K, withCtx as x, withDirectives as F, createElementVNode as o, withModifiers as k, renderSlot as g, createVNode as C, createElementBlock as P, createCommentVNode as R, createTextVNode as j, toDisplayString as D, vShow as L, nextTick as O } from "vue";
|
|
2
2
|
import { mdiClose as U, mdiCheckCircle as q } from "@mdi/js";
|
|
3
3
|
import { useFocusTrap as z } from "@vueuse/integrations/useFocusTrap";
|
|
4
4
|
import { hideOthers as G } from "../vendor/aria-hidden/dist/es2015/index.js";
|
|
@@ -48,24 +48,24 @@ const $ = {
|
|
|
48
48
|
r.value
|
|
49
49
|
// This cart modal
|
|
50
50
|
]), {
|
|
51
|
-
activate:
|
|
52
|
-
deactivate:
|
|
51
|
+
activate: h,
|
|
52
|
+
deactivate: M
|
|
53
53
|
} = z(n, {
|
|
54
54
|
allowOutsideClick: !0
|
|
55
55
|
// allow clicking outside the cart modal to close it
|
|
56
56
|
});
|
|
57
57
|
let v = null, m = null;
|
|
58
58
|
const s = (i = "") => {
|
|
59
|
-
r.value && a.value && (
|
|
59
|
+
r.value && a.value && (M(), a.value.scrollTop = 0, Q(a.value)), H(), v && (v(), v = null), document.removeEventListener("keyup", m), t("cart-modal-closed", { type: i });
|
|
60
60
|
};
|
|
61
61
|
m = (i) => {
|
|
62
62
|
i && i.key === "Escape" && !e.value && s();
|
|
63
63
|
};
|
|
64
|
-
const
|
|
64
|
+
const _ = () => {
|
|
65
65
|
e.value || s("background");
|
|
66
66
|
}, f = () => {
|
|
67
67
|
l.value && (document.addEventListener("keyup", m), O(() => {
|
|
68
|
-
r.value && a.value && (
|
|
68
|
+
r.value && a.value && (h(), v = G(r.value), W(a.value)), J();
|
|
69
69
|
}));
|
|
70
70
|
}, B = (i) => {
|
|
71
71
|
s(i);
|
|
@@ -84,7 +84,7 @@ const $ = {
|
|
|
84
84
|
mdiClose: U,
|
|
85
85
|
mdiCheckCircle: q,
|
|
86
86
|
onKeyUp: m,
|
|
87
|
-
onScreenClick:
|
|
87
|
+
onScreenClick: _,
|
|
88
88
|
hide: s,
|
|
89
89
|
show: f,
|
|
90
90
|
controlsRef: d,
|
|
@@ -96,7 +96,7 @@ const $ = {
|
|
|
96
96
|
}, tt = { class: "container" }, et = { class: "tw-flex tw-pt-2 tw-px-2.5" }, ot = { class: "tw-flex tw-flex-grow tw-gap-1 tw-items-center tw-pb-2" }, lt = {
|
|
97
97
|
id: "kvCartModalBody",
|
|
98
98
|
ref: "kvCartModalBody",
|
|
99
|
-
class: "
|
|
99
|
+
class: "tw-flex tw-gap-2"
|
|
100
100
|
}, nt = {
|
|
101
101
|
ref: "controlsRef",
|
|
102
102
|
class: "tw-flex-shrink-0 tw-flex tw-justify-end tw-gap-x-2.5 tw-px-2.5 tw-pb-2 tw-flex-col tw-gap-1"
|
|
@@ -132,7 +132,7 @@ function at(c, t, l, e, r, a) {
|
|
|
132
132
|
}, [
|
|
133
133
|
o("div", et, [
|
|
134
134
|
o("div", ot, [
|
|
135
|
-
|
|
135
|
+
g(c.$slots, "header", {}, () => [
|
|
136
136
|
C(d, {
|
|
137
137
|
class: "tw-w-3.5 tw-h-3.5 tw-text-brand",
|
|
138
138
|
icon: e.mdiCheckCircle
|
|
@@ -153,7 +153,7 @@ function at(c, t, l, e, r, a) {
|
|
|
153
153
|
])
|
|
154
154
|
]),
|
|
155
155
|
o("div", lt, [
|
|
156
|
-
|
|
156
|
+
g(c.$slots, "content", {}, void 0, !0)
|
|
157
157
|
], 512),
|
|
158
158
|
o("div", nt, [
|
|
159
159
|
C(u, {
|
|
@@ -176,7 +176,7 @@ function at(c, t, l, e, r, a) {
|
|
|
176
176
|
_: 3
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
const pt = /* @__PURE__ */ Z($, [["render", at], ["__scopeId", "data-v-
|
|
179
|
+
const pt = /* @__PURE__ */ Z($, [["render", at], ["__scopeId", "data-v-c2a75743"]]);
|
|
180
180
|
export {
|
|
181
181
|
pt as default
|
|
182
182
|
};
|
package/dist/vue/KvCartPill.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toRefs as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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 = {
|
|
4
4
|
props: {
|
|
5
5
|
borrowerName: {
|
|
6
6
|
type: String,
|
|
@@ -9,28 +9,43 @@ const u = {
|
|
|
9
9
|
showBg: {
|
|
10
10
|
type: Boolean,
|
|
11
11
|
default: !1
|
|
12
|
+
},
|
|
13
|
+
milestonesNumber: {
|
|
14
|
+
type: Number,
|
|
15
|
+
default: 1
|
|
16
|
+
},
|
|
17
|
+
isCloseNextMilestone: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
12
20
|
}
|
|
13
21
|
},
|
|
14
22
|
setup(t) {
|
|
15
23
|
const {
|
|
16
|
-
borrowerName:
|
|
17
|
-
|
|
24
|
+
borrowerName: o,
|
|
25
|
+
milestonesNumber: e,
|
|
26
|
+
isCloseNextMilestone: l
|
|
27
|
+
} = n(t);
|
|
18
28
|
return {
|
|
19
|
-
pillCopy:
|
|
29
|
+
pillCopy: a(() => {
|
|
30
|
+
if (l.value)
|
|
31
|
+
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!";
|
|
34
|
+
})
|
|
20
35
|
};
|
|
21
36
|
}
|
|
22
|
-
},
|
|
23
|
-
function
|
|
24
|
-
return
|
|
25
|
-
class:
|
|
26
|
-
"tw-text-small tw-bg-secondary":
|
|
37
|
+
}, 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
|
|
27
42
|
}])
|
|
28
43
|
}, [
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
c(t.$slots, "icon"),
|
|
45
|
+
m("p", y, f(l.pillCopy), 1)
|
|
31
46
|
], 2);
|
|
32
47
|
}
|
|
33
|
-
const
|
|
48
|
+
const v = /* @__PURE__ */ w(d, [["render", x]]);
|
|
34
49
|
export {
|
|
35
|
-
|
|
50
|
+
v as default
|
|
36
51
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.2",
|
|
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": "ad451289b0e7c6a607efce658156f9240576a5ea"
|
|
111
111
|
}
|