@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-12c364c9]:hover,.loan-card-use[data-v-12c364c9]: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-12c364c9]{text-decoration-line:underline}.loan-card-progress[data-v-12c364c9]:hover,.loan-card-progress[data-v-12c364c9]:focus{text-decoration-line:none}.loan-card-use-text[data-v-12c364c9] 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-12c364c9] form,.loan-card-cta[data-v-12c364c9] fieldset,.loan-card-cta[data-v-12c364c9] .tw-w-full,.loan-card-cta[data-v-12c364c9] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-12c364c9] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}
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 $, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as ee } from "./KvCompactLoanCard2.js";
3
- import { resolveComponent as d, openBlock as a, createElementBlock as l, normalizeClass as m, createVNode as i, createCommentVNode as w, createElementVNode as r, normalizeStyle as T, createBlock as s, resolveDynamicComponent as u, withCtx as f, toDisplayString as h, withModifiers as P, Fragment as g, renderList as A } from "vue";
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
- key: 1,
14
- class: "loan-card-use-text tw-w-full tw-overflow-hidden"
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: m(["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 }])
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
- ])) : w("", !0),
27
+ ])) : d("", !0),
31
28
  r("div", V, [
32
29
  r("div", {
33
- class: m(["tw-flex tw-items-start tw-gap-2 tw-w-full loan-card-active-hover", { "!tw-gap-1": t.showLightView }]),
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: m(["tw-bg-gray-300 tw-rounded-md tw-object-cover", { "!tw-w-7.5 !tw-h-7.5": t.showLightView }]),
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, h(t.businessName), 1)
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, h(t.website), 1)
89
- ], 8, W)) : w("", !0)
90
- ])) : w("", !0),
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"])) : w("", !0)
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(c)
121
+ i(m)
125
122
  ]))), 128))
126
- ])) : (a(), l("div", O, [
127
- i(x, {
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"])) : w("", !0)
143
+ }, 8, ["to", "href", "target", "rel"])) : d("", !0)
144
144
  ])
145
145
  ], 6),
146
- e.isLoading || typeof e.loanCallouts > "u" ? (a(), s(c, {
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) => k.$emit("jump-filter-page", 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: m([
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", K, [
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"])) : w("", !0)
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", z, " $" + h(t.customAmountLent), 1),
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: m(["tw-flex-shrink-0 loan-card-cta", { "tw-w-full": !e.sharesAvailable }]),
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) => k.$emit("add-to-basket", 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) => k.$emit("remove-from-basket", 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", U, [
225
- i(c, {
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(c, {
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 ? w("", !0) : (a(), s(c, {
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 X = /* @__PURE__ */ B(N, [["render", G], ["__scopeId", "data-v-12c364c9"]]);
243
+ const Q = /* @__PURE__ */ B(N, [["render", z], ["__scopeId", "data-v-b4700d22"]]);
244
244
  export {
245
- $ as KV_COMPACT_LOAN_CARD_FRAGMENT,
246
- ee as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
247
- X as default
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.0",
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": "75f4f4a2021b1484059f86d7d76eaa6322f25d5c"
128
+ "gitHead": "e20108c5326d84560ea0dc3dc614d12a93053ea6"
129
129
  }