@kiva/kv-components 6.55.0 → 6.55.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getKivaImageUrl as
|
|
2
|
-
import { openBlock as h, createElementBlock as
|
|
1
|
+
import { getKivaImageUrl as l } from "../utils/imageUtils.js";
|
|
2
|
+
import { openBlock as h, createElementBlock as o, normalizeStyle as n, createElementVNode as c, createCommentVNode as u } from "vue";
|
|
3
3
|
import m from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const g = {
|
|
5
5
|
name: "KvBorrowerImage",
|
|
@@ -63,7 +63,8 @@ const g = {
|
|
|
63
63
|
defaultUrl() {
|
|
64
64
|
return this.hash ? this.getImgUrl({
|
|
65
65
|
...this.defaultImage,
|
|
66
|
-
height: this.defaultImage.width * this.aspectRatio
|
|
66
|
+
height: this.defaultImage.width * this.aspectRatio,
|
|
67
|
+
format: "jpg"
|
|
67
68
|
}) : "";
|
|
68
69
|
},
|
|
69
70
|
// Get the 'sizes' string for the source element
|
|
@@ -89,10 +90,11 @@ const g = {
|
|
|
89
90
|
methods: {
|
|
90
91
|
// Get the url for the loan image sized width by height
|
|
91
92
|
getImgUrl(t) {
|
|
92
|
-
return
|
|
93
|
-
...t,
|
|
93
|
+
return l({
|
|
94
94
|
base: this.photoPath,
|
|
95
|
-
|
|
95
|
+
format: "webp",
|
|
96
|
+
hash: this.hash,
|
|
97
|
+
...t
|
|
96
98
|
});
|
|
97
99
|
},
|
|
98
100
|
// Get a string to use in the srcset attribute as the definition for a single image size
|
|
@@ -102,15 +104,15 @@ const g = {
|
|
|
102
104
|
}
|
|
103
105
|
}, d = ["srcset", "sizes"], f = ["src", "alt"];
|
|
104
106
|
function p(t, e, r, a, i, s) {
|
|
105
|
-
return h(),
|
|
107
|
+
return h(), o("picture", {
|
|
106
108
|
class: "tw-inline-block tw-relative tw-overflow-hidden tw-w-full tw-bg-black",
|
|
107
|
-
style:
|
|
109
|
+
style: n(`padding-bottom: ${r.aspectRatio * 100}%;`)
|
|
108
110
|
}, [
|
|
109
111
|
c("source", {
|
|
110
112
|
srcset: s.srcset,
|
|
111
113
|
sizes: s.sizes
|
|
112
114
|
}, null, 8, d),
|
|
113
|
-
r.hash ? (h(),
|
|
115
|
+
r.hash ? (h(), o("img", {
|
|
114
116
|
key: 0,
|
|
115
117
|
class: "tw-absolute tw-w-full tw-h-full tw-object-contain",
|
|
116
118
|
src: s.defaultUrl,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.section[data-v-
|
|
1
|
+
.section[data-v-915e14e6]{border-bottom-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));padding:.5rem;display:block;overflow:hidden}@media print{.section[data-v-915e14e6]{page-break-inside:avoid}}.section--lender-info[data-v-915e14e6]{padding-top:0}.section--print[data-v-915e14e6]{border-bottom:0}.checkout-receipt__headline[data-v-915e14e6]{text-align:center;margin-bottom:1.5rem}.checkout-receipt__item-list[data-v-915e14e6]{list-style:none;margin:0;width:100%}.loan__name[data-v-915e14e6]{margin-bottom:.5rem}.loan__name--inline[data-v-915e14e6]{display:inline-block}.loan__amount[data-v-915e14e6]{text-align:right}.total[data-v-915e14e6]{display:flex;align-items:baseline}.total__header[data-v-915e14e6],.total__amount[data-v-915e14e6]{text-align:right;flex:1}.total__amount[data-v-915e14e6]{flex-grow:.33}.payments[data-v-915e14e6]{border-bottom:none}.payments__type[data-v-915e14e6]{display:flex;text-align:right}.payments__type-title[data-v-915e14e6],.payments__type-amount[data-v-915e14e6]{flex:1}.print[data-v-915e14e6]{margin:0 auto}
|
|
@@ -26,7 +26,8 @@ const F = (d = Date.now()) => {
|
|
|
26
26
|
props: {
|
|
27
27
|
lender: {
|
|
28
28
|
type: Object,
|
|
29
|
-
required: !
|
|
29
|
+
required: !1,
|
|
30
|
+
default: () => null
|
|
30
31
|
},
|
|
31
32
|
receipt: {
|
|
32
33
|
type: Object,
|
|
@@ -83,7 +84,13 @@ const F = (d = Date.now()) => {
|
|
|
83
84
|
}, U = { class: "checkout-receipt" }, M = { class: "checkout-receipt__wrapper tw-bg-primary tw-p-4 tw-rounded-xs tw-border tw-border-tertiary" }, N = {
|
|
84
85
|
"data-testid": "lender-info",
|
|
85
86
|
class: "section section--lender-info"
|
|
86
|
-
}, P = {
|
|
87
|
+
}, P = {
|
|
88
|
+
key: 0,
|
|
89
|
+
class: "data-hj-suppress"
|
|
90
|
+
}, R = {
|
|
91
|
+
key: 1,
|
|
92
|
+
class: "data-hj-suppress"
|
|
93
|
+
}, V = {
|
|
87
94
|
key: 0,
|
|
88
95
|
"data-testid": "print-kcard-msg",
|
|
89
96
|
class: "section tw-text-center print:!tw-hidden"
|
|
@@ -181,8 +188,8 @@ function Ct(d, t, o, k, wt, c) {
|
|
|
181
188
|
e("div", M, [
|
|
182
189
|
e("section", N, [
|
|
183
190
|
e("div", null, i(c.formattedTransactionTime), 1),
|
|
184
|
-
|
|
185
|
-
|
|
191
|
+
o.lender ? (n(), s("div", P, i(o.lender.firstName) + " " + i(o.lender.lastName), 1)) : r("", !0),
|
|
192
|
+
o.lender ? (n(), s("div", R, i(o.lender.email), 1)) : r("", !0)
|
|
186
193
|
]),
|
|
187
194
|
e("section", null, [
|
|
188
195
|
c.printableKivaCards.length > 0 ? (n(), s("div", V, [
|
|
@@ -379,7 +386,7 @@ function Ct(d, t, o, k, wt, c) {
|
|
|
379
386
|
])
|
|
380
387
|
]);
|
|
381
388
|
}
|
|
382
|
-
const Dt = /* @__PURE__ */ D(A, [["render", Ct], ["__scopeId", "data-v-
|
|
389
|
+
const Dt = /* @__PURE__ */ D(A, [["render", Ct], ["__scopeId", "data-v-915e14e6"]]);
|
|
383
390
|
export {
|
|
384
391
|
Dt as default
|
|
385
392
|
};
|
package/dist/vue/KvDatePicker.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as h, markRaw as p, resolveComponent as u, openBlock as r, createBlock as
|
|
1
|
+
import { computed as h, markRaw as p, resolveComponent as u, openBlock as r, createBlock as n, withCtx as k, createElementVNode as g, normalizeClass as f, createElementBlock as a, resolveDynamicComponent as D, mergeProps as _ } from "vue";
|
|
2
2
|
import { defaultTheme as i, stoneDarkTheme as v, stoneLightTheme as y, marigoldLightTheme as C, greenLightTheme as L, greenDarkTheme as P } from "@kiva/kv-tokens";
|
|
3
3
|
import T from "./KvThemeProvider.js";
|
|
4
4
|
import "./KvDatePicker.css";
|
|
@@ -89,24 +89,23 @@ const w = {
|
|
|
89
89
|
key: 1,
|
|
90
90
|
class: "kv-datepicker__loading"
|
|
91
91
|
};
|
|
92
|
-
function x(e, o,
|
|
92
|
+
function x(e, o, m, l, t, s) {
|
|
93
93
|
const d = u("kv-theme-provider");
|
|
94
|
-
return r(),
|
|
94
|
+
return r(), n(d, { theme: l.themeStyle }, {
|
|
95
95
|
default: k(() => [
|
|
96
96
|
g("div", {
|
|
97
|
-
class: f(["kv-datepicker",
|
|
97
|
+
class: f(["kv-datepicker", m.theme])
|
|
98
98
|
}, [
|
|
99
|
-
t.datepickerComponent ? (r(),
|
|
100
|
-
(r(),
|
|
99
|
+
t.datepickerComponent ? (r(), a("div", K, [
|
|
100
|
+
(r(), n(D(t.datepickerComponent), _({
|
|
101
101
|
key: t.componentKey,
|
|
102
102
|
modelValue: t.selectedDate,
|
|
103
|
-
"onUpdate:modelValue": o[0] || (o[0] = (c) => t.selectedDate = c)
|
|
104
|
-
placeholder: e.placeholder
|
|
103
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => t.selectedDate = c)
|
|
105
104
|
}, e.$attrs, {
|
|
106
105
|
"auto-apply": !0,
|
|
107
106
|
"onUpdate:modelValue": s.handleDateChange
|
|
108
|
-
}), null, 16, ["modelValue", "
|
|
109
|
-
])) : (r(),
|
|
107
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
|
108
|
+
])) : (r(), a("div", S, " Loading... "))
|
|
110
109
|
], 2)
|
|
111
110
|
]),
|
|
112
111
|
_: 1
|
package/dist/vue/KvMap.js
CHANGED
|
@@ -84,15 +84,15 @@ const f = {
|
|
|
84
84
|
* {
|
|
85
85
|
borrowerPoints: [
|
|
86
86
|
{
|
|
87
|
-
image: 'https://www
|
|
87
|
+
image: 'https://www.kiva.org/img/w80h80fz50/e60a3d61ff052d60991c5d6bbf4a45d3.webp',
|
|
88
88
|
location: [-77.032, 38.913],
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
image: 'https://www
|
|
91
|
+
image: 'https://www.kiva.org/img/w80h80fz50/6101929097c6e5de48232a4d1ae3b71c.webp',
|
|
92
92
|
location: [41.402, 7.160],
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
image: 'https://www
|
|
95
|
+
image: 'https://www.kiva.org/img/w80h80fz50/11e018ee3d8b9c5adee459c16a29d264.webp',
|
|
96
96
|
location: [-73.356596, 3.501],
|
|
97
97
|
},
|
|
98
98
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.55.
|
|
3
|
+
"version": "6.55.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"embla-carousel-fade",
|
|
115
115
|
"popper.js"
|
|
116
116
|
],
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "ad2b5ea30a308784ca8bf3dfc1dd78758ca18221"
|
|
118
118
|
}
|