@kiva/kv-components 5.0.0 → 5.1.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 +1 @@
|
|
|
1
|
-
.loan-callouts[data-v-
|
|
1
|
+
.loan-callouts[data-v-a9f870f5] span{background-color:transparent!important;--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1))}.loan-card-use[data-v-a9f870f5]:hover,.loan-card-use[data-v-a9f870f5]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-a9f870f5],.loan-card-active-hover:hover .loan-card-name[data-v-a9f870f5]{text-decoration-line:underline}.loan-card-progress[data-v-a9f870f5],.loan-card-progress[data-v-a9f870f5]:hover,.loan-card-progress[data-v-a9f870f5]:focus{text-decoration-line:none}.loan-card-name[data-v-a9f870f5]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;cursor:pointer;overflow:hidden;text-overflow:ellipsis;padding-left:1.5rem;padding-right:1.5rem;padding-top:.5rem}.loan-bookmark[data-v-a9f870f5] button{border-top-left-radius:0!important;border-top-right-radius:0!important}
|
|
@@ -89,9 +89,9 @@ const $ = {
|
|
|
89
89
|
distributionModel: g,
|
|
90
90
|
formattedLocation: y,
|
|
91
91
|
fundraisingPercent: k,
|
|
92
|
-
hasProgressData:
|
|
93
|
-
imageHash:
|
|
94
|
-
isLoading:
|
|
92
|
+
hasProgressData: v,
|
|
93
|
+
imageHash: _,
|
|
94
|
+
isLoading: b,
|
|
95
95
|
loanAmount: p,
|
|
96
96
|
loanBorrowerCount: r,
|
|
97
97
|
loanCallouts: x,
|
|
@@ -114,9 +114,9 @@ const $ = {
|
|
|
114
114
|
distributionModel: g,
|
|
115
115
|
formattedLocation: y,
|
|
116
116
|
fundraisingPercent: k,
|
|
117
|
-
hasProgressData:
|
|
118
|
-
imageHash:
|
|
119
|
-
isLoading:
|
|
117
|
+
hasProgressData: v,
|
|
118
|
+
imageHash: _,
|
|
119
|
+
isLoading: b,
|
|
120
120
|
loanAmount: p,
|
|
121
121
|
loanBorrowerCount: r,
|
|
122
122
|
loanCallouts: x,
|
|
@@ -182,7 +182,7 @@ const $ = {
|
|
|
182
182
|
style: { "font-weight": "bold", "font-size": "13px", "border-radius": "8px" }
|
|
183
183
|
};
|
|
184
184
|
function ue(n, o, i, e, C, w) {
|
|
185
|
-
const l = m("kv-loading-placeholder"), g = m("kv-borrower-image"), y = m("kv-flag"), k = m("kv-loan-bookmark"),
|
|
185
|
+
const l = m("kv-loading-placeholder"), g = m("kv-borrower-image"), y = m("kv-flag"), k = m("kv-loan-bookmark"), v = m("kv-loan-callouts"), _ = m("kv-loan-use"), b = m("kv-loan-progress-group"), p = m("kv-loan-tag");
|
|
186
186
|
return t(), d("div", {
|
|
187
187
|
class: L(["tw-flex tw-flex-col tw-bg-white tw-rounded tw-w-full tw-pb-2", { "tw-pointer-events-none": e.isLoading }]),
|
|
188
188
|
"data-testid": "loan-card",
|
|
@@ -219,9 +219,10 @@ function ue(n, o, i, e, C, w) {
|
|
|
219
219
|
s(y, {
|
|
220
220
|
class: "tw-ml-0.5 tw-mr-1",
|
|
221
221
|
country: e.countryCode,
|
|
222
|
+
name: e.countryName,
|
|
222
223
|
"width-override": "16px",
|
|
223
224
|
"hide-border": ""
|
|
224
|
-
}, null, 8, ["country"])
|
|
225
|
+
}, null, 8, ["country", "name"])
|
|
225
226
|
]),
|
|
226
227
|
_: 1
|
|
227
228
|
})),
|
|
@@ -285,7 +286,7 @@ function ue(n, o, i, e, C, w) {
|
|
|
285
286
|
onClick: o[3] || (o[3] = (r) => e.clickReadMore("Tag", r))
|
|
286
287
|
}, {
|
|
287
288
|
default: h(() => [
|
|
288
|
-
s(
|
|
289
|
+
s(v, {
|
|
289
290
|
callouts: e.loanCallouts,
|
|
290
291
|
"add-bg-color": !1,
|
|
291
292
|
class: "loan-callouts"
|
|
@@ -312,7 +313,7 @@ function ue(n, o, i, e, C, w) {
|
|
|
312
313
|
s(l)
|
|
313
314
|
]))), 128))
|
|
314
315
|
])) : (t(), d("div", ie, [
|
|
315
|
-
s(
|
|
316
|
+
s(_, {
|
|
316
317
|
use: e.loanUse,
|
|
317
318
|
"loan-amount": e.loanAmount,
|
|
318
319
|
status: e.loanStatus,
|
|
@@ -356,7 +357,7 @@ function ue(n, o, i, e, C, w) {
|
|
|
356
357
|
onClick: o[5] || (o[5] = (r) => e.clickReadMore("Progress", r))
|
|
357
358
|
}, {
|
|
358
359
|
default: h(() => [
|
|
359
|
-
s(
|
|
360
|
+
s(b, {
|
|
360
361
|
id: "loanProgress",
|
|
361
362
|
"money-left": `${e.unreservedAmount}`,
|
|
362
363
|
"amount-goal": `${e.loanAmount}`,
|
|
@@ -381,7 +382,7 @@ function ue(n, o, i, e, C, w) {
|
|
|
381
382
|
])
|
|
382
383
|
], 6);
|
|
383
384
|
}
|
|
384
|
-
const Me = /* @__PURE__ */ Z($, [["render", ue], ["__scopeId", "data-v-
|
|
385
|
+
const Me = /* @__PURE__ */ Z($, [["render", ue], ["__scopeId", "data-v-a9f870f5"]]);
|
|
385
386
|
export {
|
|
386
387
|
Me as default
|
|
387
388
|
};
|
package/dist/vue/KvSideSheet.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { toRefs as
|
|
2
|
-
import { mdiClose as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { toRefs as T, ref as u, watch as L, resolveComponent as B, openBlock as p, createElementBlock as g, normalizeClass as c, withModifiers as E, createElementVNode as d, normalizeStyle as _, createVNode as k, createCommentVNode as S, renderSlot as z } from "vue";
|
|
2
|
+
import { mdiClose as F, mdiLaunch as N } from "@mdi/js";
|
|
3
|
+
import V from "./KvMaterialIcon.js";
|
|
4
|
+
import j from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const G = {
|
|
6
6
|
components: {
|
|
7
|
-
KvMaterialIcon:
|
|
7
|
+
KvMaterialIcon: V
|
|
8
8
|
},
|
|
9
9
|
props: {
|
|
10
10
|
/**
|
|
@@ -46,42 +46,43 @@ const j = {
|
|
|
46
46
|
emits: [
|
|
47
47
|
"side-sheet-closed"
|
|
48
48
|
],
|
|
49
|
-
setup(w, { emit:
|
|
49
|
+
setup(w, { emit: e }) {
|
|
50
50
|
const {
|
|
51
51
|
visible: n,
|
|
52
52
|
kvTrackFunction: t,
|
|
53
53
|
trackEventCategory: f,
|
|
54
|
-
animationSourceElement:
|
|
55
|
-
} =
|
|
56
|
-
|
|
54
|
+
animationSourceElement: r
|
|
55
|
+
} = T(w), l = u(!1), i = u({}), a = u({}), v = () => {
|
|
56
|
+
const s = "tw-overflow-hidden";
|
|
57
|
+
l.value ? document.body.classList.add(s) : document.body.classList.remove(s);
|
|
58
|
+
}, b = () => {
|
|
59
|
+
l.value = !1, v(), t.value(f.value, "click", "side-sheet-closed"), r.value && (a.value = {
|
|
57
60
|
...i.value,
|
|
58
61
|
transition: "all 0.5s ease-in-out"
|
|
59
62
|
}), setTimeout(() => {
|
|
60
|
-
|
|
63
|
+
e("side-sheet-closed");
|
|
61
64
|
}, "700");
|
|
62
|
-
},
|
|
63
|
-
|
|
65
|
+
}, C = () => {
|
|
66
|
+
e("go-to-link");
|
|
64
67
|
};
|
|
65
|
-
return
|
|
66
|
-
var
|
|
68
|
+
return L(n, () => {
|
|
69
|
+
var s;
|
|
67
70
|
if (n.value) {
|
|
68
71
|
setTimeout(() => {
|
|
69
|
-
l.value = !0;
|
|
72
|
+
l.value = !0, v();
|
|
70
73
|
}, 100);
|
|
71
|
-
const
|
|
72
|
-
m ||
|
|
74
|
+
const o = (s = r.value) == null ? void 0 : s.getBoundingClientRect(), m = (o == null ? void 0 : o.top) ?? 0, x = (o == null ? void 0 : o.left) ?? 0, y = (o == null ? void 0 : o.width) ?? 0, h = (o == null ? void 0 : o.height) ?? 0;
|
|
75
|
+
m || x || y || h ? (i.value = {
|
|
73
76
|
position: "fixed",
|
|
74
77
|
top: `${m}px`,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
height: `${y}px`
|
|
78
|
+
width: `${y}px`,
|
|
79
|
+
height: `${h}px`
|
|
78
80
|
}, a.value = {
|
|
79
81
|
...i.value,
|
|
80
82
|
transition: "none"
|
|
81
83
|
}, setTimeout(() => {
|
|
82
84
|
a.value = {
|
|
83
85
|
top: "0",
|
|
84
|
-
left: "0",
|
|
85
86
|
width: "100vw",
|
|
86
87
|
height: "100%",
|
|
87
88
|
transition: "all 0.5s ease-in-out"
|
|
@@ -89,41 +90,41 @@ const j = {
|
|
|
89
90
|
}, 10)) : a.value = {};
|
|
90
91
|
}
|
|
91
92
|
}), {
|
|
92
|
-
mdiClose:
|
|
93
|
-
mdiLaunch:
|
|
93
|
+
mdiClose: F,
|
|
94
|
+
mdiLaunch: N,
|
|
94
95
|
open: l,
|
|
95
96
|
closeSideSheet: b,
|
|
96
|
-
goToLink:
|
|
97
|
+
goToLink: C,
|
|
97
98
|
modalStyles: a
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
101
|
};
|
|
101
|
-
function
|
|
102
|
-
const l =
|
|
102
|
+
function K(w, e, n, t, f, r) {
|
|
103
|
+
const l = B("kv-material-icon");
|
|
103
104
|
return n.visible ? (p(), g("div", {
|
|
104
105
|
key: 0,
|
|
105
|
-
class:
|
|
106
|
+
class: c(["tw-block lg:tw-mt-0 tw-fixed tw-inset-0 tw-bg-black tw-transition-all md:tw-duration-150 tw-z-modal", {
|
|
106
107
|
"tw-bg-opacity-0 tw-delay-300": !t.open,
|
|
107
108
|
"tw-bg-opacity-low": t.open
|
|
108
109
|
}]),
|
|
109
|
-
onClick:
|
|
110
|
+
onClick: e[2] || (e[2] = E((...i) => t.closeSideSheet && t.closeSideSheet(...i), ["self"]))
|
|
110
111
|
}, [
|
|
111
|
-
|
|
112
|
-
class:
|
|
112
|
+
d("div", {
|
|
113
|
+
class: c(["tw-fixed tw-right-0 tw-transition-all tw-duration-300 tw-bg-white tw-overflow-y-auto tw-p-2", {
|
|
113
114
|
"tw-w-0 tw-delay-200 tw-opacity-0": !t.open,
|
|
114
115
|
"lg:tw-w-1/2 tw-w-full tw-opacity-full": t.open
|
|
115
116
|
}]),
|
|
116
|
-
style:
|
|
117
|
+
style: _(t.modalStyles)
|
|
117
118
|
}, [
|
|
118
|
-
|
|
119
|
-
class:
|
|
119
|
+
d("div", {
|
|
120
|
+
class: c(["tw-flex tw-justify-between tw-transition-opacity tw-duration-500 tw-delay-200", {
|
|
120
121
|
"tw-opacity-0": !t.open,
|
|
121
122
|
"tw-opacity-full": t.open
|
|
122
123
|
}])
|
|
123
124
|
}, [
|
|
124
|
-
|
|
125
|
+
d("button", {
|
|
125
126
|
class: "hover:tw-text-action-highlight",
|
|
126
|
-
onClick:
|
|
127
|
+
onClick: e[0] || (e[0] = (...i) => t.closeSideSheet && t.closeSideSheet(...i))
|
|
127
128
|
}, [
|
|
128
129
|
k(l, {
|
|
129
130
|
class: "tw-w-3 tw-h-3",
|
|
@@ -133,7 +134,7 @@ function G(w, o, n, t, f, d) {
|
|
|
133
134
|
n.showGoToLink ? (p(), g("button", {
|
|
134
135
|
key: 0,
|
|
135
136
|
class: "hover:tw-text-action-highlight",
|
|
136
|
-
onClick:
|
|
137
|
+
onClick: e[1] || (e[1] = (...i) => t.goToLink && t.goToLink(...i))
|
|
137
138
|
}, [
|
|
138
139
|
k(l, {
|
|
139
140
|
class: "tw-w-3 tw-h-3",
|
|
@@ -141,18 +142,18 @@ function G(w, o, n, t, f, d) {
|
|
|
141
142
|
}, null, 8, ["icon"])
|
|
142
143
|
])) : S("", !0)
|
|
143
144
|
], 2),
|
|
144
|
-
|
|
145
|
-
class:
|
|
145
|
+
d("div", {
|
|
146
|
+
class: c(["tw-p-4 tw-overflow-y-auto tw-transition-opacity tw-duration-500 tw-delay-200 tw-overscroll-y-contain", {
|
|
146
147
|
"tw-opacity-0": !t.open,
|
|
147
148
|
"tw-opacity-full": t.open
|
|
148
149
|
}])
|
|
149
150
|
}, [
|
|
150
|
-
|
|
151
|
+
z(w.$slots, "default")
|
|
151
152
|
], 2)
|
|
152
153
|
], 6)
|
|
153
154
|
], 2)) : S("", !0);
|
|
154
155
|
}
|
|
155
|
-
const
|
|
156
|
+
const q = /* @__PURE__ */ j(G, [["render", K]]);
|
|
156
157
|
export {
|
|
157
|
-
|
|
158
|
+
q as default
|
|
158
159
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"postbuild": "mkdir -p ../../dist/kvui && mv -v dist/kvui/* ../../dist/kvui/"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
|
-
"@kiva/kv-tokens": "
|
|
92
|
+
"@kiva/kv-tokens": "3.x",
|
|
93
93
|
"@mdi/js": "7.x",
|
|
94
94
|
"@vueuse/integrations": "9.x",
|
|
95
95
|
"change-case": "4.x",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"embla-carousel-fade",
|
|
107
107
|
"popper.js"
|
|
108
108
|
],
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "bfc4f96c62eca4208e7323961c9d55067a622e79"
|
|
110
110
|
}
|