@kiva/kv-components 8.1.0 → 8.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-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-b4700d22]:hover,.loan-card-use[data-v-b4700d22]: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-b4700d22]{text-decoration-line:underline}.loan-card-progress[data-v-b4700d22]:hover,.loan-card-progress[data-v-b4700d22]:focus{text-decoration-line:none}.loan-card-use-text[data-v-b4700d22] p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;text-overflow:ellipsis}.loan-card-cta[data-v-b4700d22] form,.loan-card-cta[data-v-b4700d22] fieldset,.loan-card-cta[data-v-b4700d22] .tw-w-full,.loan-card-cta[data-v-b4700d22] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-b4700d22] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import N from "./KvCompactLoanCard2.js";
|
|
2
|
-
import { KV_COMPACT_LOAN_CARD_FRAGMENT as
|
|
3
|
-
import { resolveComponent as
|
|
2
|
+
import { KV_COMPACT_LOAN_CARD_FRAGMENT as p, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as $ } from "./KvCompactLoanCard2.js";
|
|
3
|
+
import { resolveComponent as w, openBlock as a, createElementBlock as l, normalizeClass as c, createVNode as i, createCommentVNode as d, createElementVNode as r, normalizeStyle as T, createBlock as s, resolveDynamicComponent as u, withCtx as f, toDisplayString as k, withModifiers as P, Fragment as g, renderList as A } from "vue";
|
|
4
4
|
import "./KvCompactLoanCard.css";
|
|
5
5
|
import B from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const V = { class: "tw-flex tw-flex-col tw-items-start tw-w-full" }, R = { class: "tw-flex-shrink-0 tw-overflow-hidden" }, D = { class: "tw-flex tw-flex-col tw-items-start tw-gap-1 tw-flex-1 tw-min-w-0" }, S = {
|
|
@@ -9,14 +9,11 @@ const V = { class: "tw-flex tw-flex-col tw-items-start tw-w-full" }, R = { class
|
|
|
9
9
|
}, F = { class: "tw-text-primary !tw-font-medium tw-text-base tw-leading-normal tw-truncate" }, W = ["href"], j = { class: "tw-truncate" }, E = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "loan-card-use-text tw-w-full tw-overflow-hidden"
|
|
12
|
-
}, O = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}, U = { class: "tw-flex-1 tw-min-w-0 tw-mr-1" }, K = { class: "tw-flex-1 tw-min-w-0" }, z = { class: "tw-p-1 tw-rounded-l-sm tw-border tw-border-gray-100 tw-border-r-0" };
|
|
16
|
-
function G(k, o, t, e, H, I) {
|
|
17
|
-
const b = d("kv-material-icon"), v = d("kv-borrower-image"), _ = d("kv-loan-tag"), c = d("kv-loading-placeholder"), x = d("kv-loan-use"), y = d("kv-loan-callouts"), L = d("kv-loan-progress-group"), C = d("kv-lend-cta");
|
|
12
|
+
}, O = { class: "tw-flex-1 tw-min-w-0 tw-mr-1" }, U = { class: "tw-flex-1 tw-min-w-0" }, K = { class: "tw-p-1 tw-rounded-l-sm tw-border tw-border-gray-100 tw-border-r-0" };
|
|
13
|
+
function z(h, o, t, e, G, H) {
|
|
14
|
+
const b = w("kv-material-icon"), v = w("kv-borrower-image"), x = w("kv-loan-tag"), m = w("kv-loading-placeholder"), _ = w("kv-loan-use"), y = w("kv-loan-callouts"), L = w("kv-loan-progress-group"), C = w("kv-lend-cta");
|
|
18
15
|
return a(), l("div", {
|
|
19
|
-
class:
|
|
16
|
+
class: c(["tw-flex tw-flex-col tw-items-start tw-justify-between tw-p-1 tw-bg-white tw-rounded-md tw-shadow-lg tw-w-full", { "tw-relative": t.showCloseButton, "!tw-p-1.5": t.showLightView }])
|
|
20
17
|
}, [
|
|
21
18
|
t.showCloseButton ? (a(), l("button", {
|
|
22
19
|
key: 0,
|
|
@@ -27,10 +24,10 @@ function G(k, o, t, e, H, I) {
|
|
|
27
24
|
icon: e.mdiClose,
|
|
28
25
|
class: "tw-w-1.5 tw-h-1.5"
|
|
29
26
|
}, null, 8, ["icon"])
|
|
30
|
-
])) :
|
|
27
|
+
])) : d("", !0),
|
|
31
28
|
r("div", V, [
|
|
32
29
|
r("div", {
|
|
33
|
-
class:
|
|
30
|
+
class: c(["tw-flex tw-items-start tw-gap-2 tw-w-full loan-card-active-hover", { "!tw-gap-1": t.showLightView }]),
|
|
34
31
|
style: T(e.customStyle)
|
|
35
32
|
}, [
|
|
36
33
|
r("div", R, [
|
|
@@ -45,7 +42,7 @@ function G(k, o, t, e, H, I) {
|
|
|
45
42
|
}, {
|
|
46
43
|
default: f(() => [
|
|
47
44
|
i(v, {
|
|
48
|
-
class:
|
|
45
|
+
class: c(["tw-bg-gray-300 tw-rounded-md tw-object-cover", { "!tw-w-7.5 !tw-h-7.5": t.showLightView }]),
|
|
49
46
|
style: { width: "100px", height: "100px" },
|
|
50
47
|
alt: `Photo of ${e.borrowerName}`,
|
|
51
48
|
"aspect-ratio": 1,
|
|
@@ -70,7 +67,7 @@ function G(k, o, t, e, H, I) {
|
|
|
70
67
|
onClick: o[2] || (o[2] = (n) => e.clickReadMore("Business", n))
|
|
71
68
|
}, {
|
|
72
69
|
default: f(() => [
|
|
73
|
-
r("h3", F,
|
|
70
|
+
r("h3", F, k(t.businessName), 1)
|
|
74
71
|
]),
|
|
75
72
|
_: 1
|
|
76
73
|
}, 8, ["to", "href", "target", "rel"])),
|
|
@@ -85,9 +82,9 @@ function G(k, o, t, e, H, I) {
|
|
|
85
82
|
icon: e.mdiLink,
|
|
86
83
|
class: "tw-w-2 tw-h-2"
|
|
87
84
|
}, null, 8, ["icon"]),
|
|
88
|
-
r("span", j,
|
|
89
|
-
], 8, W)) :
|
|
90
|
-
])) :
|
|
85
|
+
r("span", j, k(t.website), 1)
|
|
86
|
+
], 8, W)) : d("", !0)
|
|
87
|
+
])) : d("", !0),
|
|
91
88
|
(a(), s(u(e.tag), {
|
|
92
89
|
to: e.readMorePath,
|
|
93
90
|
href: e.readMorePath,
|
|
@@ -98,10 +95,10 @@ function G(k, o, t, e, H, I) {
|
|
|
98
95
|
onClick: o[4] || (o[4] = (n) => e.clickReadMore("Tag", n))
|
|
99
96
|
}, {
|
|
100
97
|
default: f(() => [
|
|
101
|
-
t.showTags && !e.isLoading ? (a(), s(
|
|
98
|
+
t.showTags && !e.isLoading ? (a(), s(x, {
|
|
102
99
|
key: 0,
|
|
103
100
|
loan: t.loan
|
|
104
|
-
}, null, 8, ["loan"])) :
|
|
101
|
+
}, null, 8, ["loan"])) : d("", !0)
|
|
105
102
|
]),
|
|
106
103
|
_: 1
|
|
107
104
|
}, 8, ["to", "href", "target", "rel"])),
|
|
@@ -121,10 +118,13 @@ function G(k, o, t, e, H, I) {
|
|
|
121
118
|
key: M,
|
|
122
119
|
class: "tw-h-2 tw-mb-1"
|
|
123
120
|
}, [
|
|
124
|
-
i(
|
|
121
|
+
i(m)
|
|
125
122
|
]))), 128))
|
|
126
|
-
])) : (a(), l("div",
|
|
127
|
-
|
|
123
|
+
])) : (a(), l("div", {
|
|
124
|
+
key: 1,
|
|
125
|
+
class: c(["loan-card-use-text tw-w-full tw-overflow-hidden", { "!tw--mt-1": t.showTags && t.loan.matchingText && t.showLightView }])
|
|
126
|
+
}, [
|
|
127
|
+
i(_, {
|
|
128
128
|
use: e.loanUse,
|
|
129
129
|
"loan-amount": e.loanAmount,
|
|
130
130
|
status: e.loanStatus,
|
|
@@ -137,13 +137,13 @@ function G(k, o, t, e, H, I) {
|
|
|
137
137
|
"truncate-words-number": t.truncateWordsNumber,
|
|
138
138
|
class: "tw-text-small tw-leading-tight"
|
|
139
139
|
}, null, 8, ["use", "loan-amount", "status", "borrower-count", "name", "distribution-model", "country", "show-read-more", "truncate-words-number"])
|
|
140
|
-
]))
|
|
140
|
+
], 2))
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
143
|
-
}, 8, ["to", "href", "target", "rel"])) :
|
|
143
|
+
}, 8, ["to", "href", "target", "rel"])) : d("", !0)
|
|
144
144
|
])
|
|
145
145
|
], 6),
|
|
146
|
-
e.isLoading || typeof e.loanCallouts > "u" ? (a(), s(
|
|
146
|
+
e.isLoading || typeof e.loanCallouts > "u" ? (a(), s(m, {
|
|
147
147
|
key: 0,
|
|
148
148
|
class: "tw-mt-1.5 tw-mb-1 tw-rounded-full",
|
|
149
149
|
style: { width: "60%", height: "1.5rem" }
|
|
@@ -151,17 +151,17 @@ function G(k, o, t, e, H, I) {
|
|
|
151
151
|
key: 1,
|
|
152
152
|
callouts: e.loanCallouts,
|
|
153
153
|
class: "tw-mt-1.5",
|
|
154
|
-
onClick: o[6] || (o[6] = (n) =>
|
|
154
|
+
onClick: o[6] || (o[6] = (n) => h.$emit("jump-filter-page", n))
|
|
155
155
|
}, null, 8, ["callouts"]))
|
|
156
156
|
]),
|
|
157
157
|
r("div", {
|
|
158
|
-
class:
|
|
158
|
+
class: c([
|
|
159
159
|
"tw-flex tw-items-center tw-justify-between tw-w-full tw-mt-1",
|
|
160
160
|
{ "tw-gap-1": e.sharesAvailable }
|
|
161
161
|
])
|
|
162
162
|
}, [
|
|
163
163
|
e.hasProgressData ? (a(), l(g, { key: 1 }, [
|
|
164
|
-
r("div",
|
|
164
|
+
r("div", U, [
|
|
165
165
|
e.sharesAvailable ? (a(), s(u(e.tag), {
|
|
166
166
|
key: 0,
|
|
167
167
|
to: e.readMorePath,
|
|
@@ -181,18 +181,18 @@ function G(k, o, t, e, H, I) {
|
|
|
181
181
|
}, null, 8, ["money-left", "progress-percent"])
|
|
182
182
|
]),
|
|
183
183
|
_: 1
|
|
184
|
-
}, 8, ["to", "href", "target", "rel"])) :
|
|
184
|
+
}, 8, ["to", "href", "target", "rel"])) : d("", !0)
|
|
185
185
|
]),
|
|
186
186
|
t.showLightView ? (a(), l("button", {
|
|
187
187
|
key: 0,
|
|
188
188
|
class: "tw-ml-2",
|
|
189
189
|
onClick: o[8] || (o[8] = (n) => e.clickReadMore("View", n))
|
|
190
190
|
}, [
|
|
191
|
-
r("span",
|
|
191
|
+
r("span", K, " $" + k(t.customAmountLent), 1),
|
|
192
192
|
o[12] || (o[12] = r("span", { class: "tw-bg-gray-100 tw-px-1.5 tw-py-1 tw-rounded-r-sm tw-border tw-border-gray-100 tw-text-action tw-font-medium hover:tw-underline tw-text-center tw-cursor-pointer" }, " View ", -1))
|
|
193
193
|
])) : (a(), l("div", {
|
|
194
194
|
key: 1,
|
|
195
|
-
class:
|
|
195
|
+
class: c(["tw-flex-shrink-0 loan-card-cta", { "tw-w-full": !e.sharesAvailable }]),
|
|
196
196
|
style: { height: "40px" }
|
|
197
197
|
}, [
|
|
198
198
|
i(C, {
|
|
@@ -215,23 +215,23 @@ function G(k, o, t, e, H, I) {
|
|
|
215
215
|
"primary-button-text": t.primaryButtonText,
|
|
216
216
|
"secondary-button-text": t.secondaryButtonText,
|
|
217
217
|
"secondary-button-handler": t.secondaryButtonHandler,
|
|
218
|
-
onAddToBasket: o[9] || (o[9] = (n) =>
|
|
218
|
+
onAddToBasket: o[9] || (o[9] = (n) => h.$emit("add-to-basket", n)),
|
|
219
219
|
onShowLoanDetails: o[10] || (o[10] = (n) => e.clickReadMore("ViewLoan", n)),
|
|
220
|
-
onRemoveFromBasket: o[11] || (o[11] = (n) =>
|
|
220
|
+
onRemoveFromBasket: o[11] || (o[11] = (n) => h.$emit("remove-from-basket", n))
|
|
221
221
|
}, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "is-visitor", "primary-button-text", "secondary-button-text", "secondary-button-handler"])
|
|
222
222
|
], 2))
|
|
223
223
|
], 64)) : (a(), l(g, { key: 0 }, [
|
|
224
|
-
r("div",
|
|
225
|
-
i(
|
|
224
|
+
r("div", O, [
|
|
225
|
+
i(m, {
|
|
226
226
|
class: "tw-mb-0.5",
|
|
227
227
|
style: { width: "100%", maxWidth: "11rem", height: "1rem" }
|
|
228
228
|
}),
|
|
229
|
-
i(
|
|
229
|
+
i(m, {
|
|
230
230
|
class: "tw-rounded",
|
|
231
231
|
style: { width: "100%", maxWidth: "11rem", height: "0.5rem" }
|
|
232
232
|
})
|
|
233
233
|
]),
|
|
234
|
-
e.allDataLoaded ?
|
|
234
|
+
e.allDataLoaded ? d("", !0) : (a(), s(m, {
|
|
235
235
|
key: 0,
|
|
236
236
|
class: "tw-rounded tw-flex-shrink-0",
|
|
237
237
|
style: { width: "8rem", height: "2.5rem" }
|
|
@@ -240,9 +240,9 @@ function G(k, o, t, e, H, I) {
|
|
|
240
240
|
], 2)
|
|
241
241
|
], 2);
|
|
242
242
|
}
|
|
243
|
-
const
|
|
243
|
+
const Q = /* @__PURE__ */ B(N, [["render", z], ["__scopeId", "data-v-b4700d22"]]);
|
|
244
244
|
export {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
p as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
246
|
+
$ as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
247
|
+
Q as default
|
|
248
248
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"embla-carousel-fade",
|
|
126
126
|
"popper.js"
|
|
127
127
|
],
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "e20108c5326d84560ea0dc3dc614d12a93053ea6"
|
|
129
129
|
}
|