@kiva/kv-components 6.30.0 → 6.30.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.
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +19 -19
- package/package.json +2 -2
package/dist/vue/KvLendCta.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.amountDropdownWrapper[data-v-
|
|
1
|
+
.amountDropdownWrapper[data-v-b607e1c2] select{border-radius:14px 0 0 14px}.lend-again[data-v-b607e1c2] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-b607e1c2] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-b607e1c2] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-b607e1c2] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-b607e1c2] span.tw-w-full:first-child{border-width:2px;--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-b607e1c2] select,.selected-option[data-v-b607e1c2] span.tw-w-full:first-child{--tw-border-opacity: 1;border-color:rgba(var(--border-action),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgba(var(--bg-secondary),var(--tw-bg-opacity, 1))}.button-ellipsis[data-v-b607e1c2] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
package/dist/vue/KvLendCta.js
CHANGED
|
@@ -5,7 +5,7 @@ import D from "./KvLendAmountButton.js";
|
|
|
5
5
|
import P from "./KvSelect.js";
|
|
6
6
|
import F from "./KvButton.js";
|
|
7
7
|
import S from "./KvMaterialIcon.js";
|
|
8
|
-
import { resolveComponent as k, openBlock as i, createElementBlock as a, createBlock as r,
|
|
8
|
+
import { resolveComponent as k, openBlock as i, createElementBlock as a, createBlock as r, withCtx as d, createTextVNode as c, toDisplayString as m, createElementVNode as p, createVNode as I, withModifiers as y, normalizeClass as f, Fragment as B, renderList as v, createCommentVNode as l } from "vue";
|
|
9
9
|
import "./KvLendCta.css";
|
|
10
10
|
import N from "../_virtual/_plugin-vue_export-helper.js";
|
|
11
11
|
const w = "Other", nt = T`
|
|
@@ -354,22 +354,22 @@ function j(t, n, s, A, u, e) {
|
|
|
354
354
|
e.isInBasket ? (i(), r(h, {
|
|
355
355
|
key: 0,
|
|
356
356
|
variant: "secondary",
|
|
357
|
-
class:
|
|
357
|
+
class: "tw-inline-flex tw-flex-1 tw-w-full",
|
|
358
358
|
"data-testid": "bp-lend-cta-checkout-button",
|
|
359
359
|
to: s.externalLinks ? void 0 : "/basket",
|
|
360
360
|
href: s.externalLinks ? "/basket" : void 0,
|
|
361
361
|
onClick: n[0] || (n[0] = (o) => e.clickSecondaryButton(o))
|
|
362
362
|
}, {
|
|
363
363
|
default: d(() => [
|
|
364
|
-
m(
|
|
364
|
+
c(m(e.loanInBasketButtonText), 1)
|
|
365
365
|
]),
|
|
366
366
|
_: 1
|
|
367
|
-
}, 8, ["
|
|
367
|
+
}, 8, ["to", "href"])) : e.showNonActionableLoanButton ? (i(), r(h, {
|
|
368
368
|
key: 1,
|
|
369
369
|
class: "tw-inline-flex tw-flex-1"
|
|
370
370
|
}, {
|
|
371
371
|
default: d(() => [
|
|
372
|
-
m(
|
|
372
|
+
c(m(e.ctaButtonText), 1)
|
|
373
373
|
]),
|
|
374
374
|
_: 1
|
|
375
375
|
})) : e.isFunded ? (i(), a("div", K, " This loan was just funded! 🎉 ")) : s.showViewLoan ? (i(), r(h, {
|
|
@@ -382,7 +382,7 @@ function j(t, n, s, A, u, e) {
|
|
|
382
382
|
}, {
|
|
383
383
|
default: d(() => [
|
|
384
384
|
p("span", M, [
|
|
385
|
-
n[5] || (n[5] =
|
|
385
|
+
n[5] || (n[5] = c(" View loan ")),
|
|
386
386
|
I(x, {
|
|
387
387
|
class: "tw-w-3 tw-h-3 tw-align-middle",
|
|
388
388
|
icon: u.mdiChevronRight
|
|
@@ -396,7 +396,7 @@ function j(t, n, s, A, u, e) {
|
|
|
396
396
|
onSubmit: n[4] || (n[4] = y((...o) => e.addToBasket && e.addToBasket(...o), ["prevent"]))
|
|
397
397
|
}, [
|
|
398
398
|
p("fieldset", {
|
|
399
|
-
class:
|
|
399
|
+
class: f(["tw-w-full tw-flex", {
|
|
400
400
|
"tw-flex-col md:tw-flex-row md:tw-justify-between tw-min-w-0": s.showPresetAmounts,
|
|
401
401
|
"tw-gap-1.5": s.showPresetAmounts && !e.isLendAmountButton
|
|
402
402
|
}]),
|
|
@@ -407,12 +407,12 @@ function j(t, n, s, A, u, e) {
|
|
|
407
407
|
e.isLendAmountButton ? l("", !0) : (i(!0), a(B, { key: 0 }, v(e.presetButtonsPrices, (o) => (i(), r(h, {
|
|
408
408
|
key: o,
|
|
409
409
|
variant: "secondary",
|
|
410
|
-
class:
|
|
410
|
+
class: f(["tw-inline-flex tw-flex-1 preset-option tw-w-8", { "selected-option": u.selectedOption == o }]),
|
|
411
411
|
"data-testid": "bp-lend-cta-lend-button",
|
|
412
412
|
onClick: (q) => e.clickPresetButton(o)
|
|
413
413
|
}, {
|
|
414
414
|
default: d(() => [
|
|
415
|
-
|
|
415
|
+
c(" $" + m(o), 1)
|
|
416
416
|
]),
|
|
417
417
|
_: 2
|
|
418
418
|
}, 1032, ["class", "onClick"]))), 128)),
|
|
@@ -424,7 +424,7 @@ function j(t, n, s, A, u, e) {
|
|
|
424
424
|
n[2] || (n[2] = (o) => u.selectedDropdownOption = o),
|
|
425
425
|
e.trackLendAmountSelection
|
|
426
426
|
],
|
|
427
|
-
class:
|
|
427
|
+
class: f(["tw-min-w-12 tw-rounded filtered-dropdown tw-w-full", {
|
|
428
428
|
"unselected-dropdown": !e.selectedDropdown,
|
|
429
429
|
"selected-dropdown": e.selectedDropdown
|
|
430
430
|
}]),
|
|
@@ -435,7 +435,7 @@ function j(t, n, s, A, u, e) {
|
|
|
435
435
|
(i(!0), a(B, null, v(e.presetDropdownPrices, (o) => (i(), a("option", {
|
|
436
436
|
key: o,
|
|
437
437
|
value: o
|
|
438
|
-
},
|
|
438
|
+
}, m(o !== u.OTHER_OPTION ? `$${o}` : o), 9, U))), 128))
|
|
439
439
|
]),
|
|
440
440
|
_: 1
|
|
441
441
|
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : l("", !0)
|
|
@@ -457,13 +457,13 @@ function j(t, n, s, A, u, e) {
|
|
|
457
457
|
(i(!0), a(B, null, v(e.prices, (o) => (i(), a("option", {
|
|
458
458
|
key: o,
|
|
459
459
|
value: o
|
|
460
|
-
}, " $" +
|
|
460
|
+
}, " $" + m(o), 9, H))), 128))
|
|
461
461
|
]),
|
|
462
462
|
_: 1
|
|
463
463
|
}, 8, ["id", "modelValue", "onUpdate:modelValue", "onClick"])) : l("", !0)
|
|
464
464
|
])),
|
|
465
465
|
p("div", {
|
|
466
|
-
class:
|
|
466
|
+
class: f({
|
|
467
467
|
"tw-min-w-0": s.showPresetAmounts,
|
|
468
468
|
lendButtonWrapper: e.hideShowLendDropdown && !s.showPresetAmounts,
|
|
469
469
|
"tw-hidden": e.hideLendButton
|
|
@@ -471,22 +471,22 @@ function j(t, n, s, A, u, e) {
|
|
|
471
471
|
}, [
|
|
472
472
|
e.lendButtonVisibility && !e.isLessThan25 ? (i(), r(h, {
|
|
473
473
|
key: "lendButton",
|
|
474
|
-
class:
|
|
474
|
+
class: f(["tw-inline-flex tw-flex-1", { "button-ellipsis tw-w-full": s.showPresetAmounts }]),
|
|
475
475
|
"data-testid": "bp-lend-cta-lend-button",
|
|
476
476
|
type: "submit"
|
|
477
477
|
}, {
|
|
478
478
|
default: d(() => [
|
|
479
|
-
m(
|
|
479
|
+
c(m(e.ctaButtonText), 1)
|
|
480
480
|
]),
|
|
481
481
|
_: 1
|
|
482
482
|
}, 8, ["class"])) : e.showLendAgain ? (i(), r(h, {
|
|
483
483
|
key: "lendAgainButton",
|
|
484
|
-
class:
|
|
484
|
+
class: f(["lend-again", { "tw-w-full": s.showPresetAmounts }]),
|
|
485
485
|
"data-testid": "bp-lend-cta-lend-again-button",
|
|
486
486
|
type: "submit"
|
|
487
487
|
}, {
|
|
488
488
|
default: d(() => [
|
|
489
|
-
m(
|
|
489
|
+
c(m(s.primaryButtonText || "Lend") + " again ", 1)
|
|
490
490
|
]),
|
|
491
491
|
_: 1
|
|
492
492
|
}, 8, ["class"])) : l("", !0)
|
|
@@ -505,7 +505,7 @@ function j(t, n, s, A, u, e) {
|
|
|
505
505
|
class: "tw-inline-flex tw-flex-1"
|
|
506
506
|
}, {
|
|
507
507
|
default: d(() => n[6] || (n[6] = [
|
|
508
|
-
|
|
508
|
+
c(" Adding to basket ")
|
|
509
509
|
])),
|
|
510
510
|
_: 1
|
|
511
511
|
})) : l("", !0)
|
|
@@ -513,7 +513,7 @@ function j(t, n, s, A, u, e) {
|
|
|
513
513
|
], 32)) : l("", !0)
|
|
514
514
|
]);
|
|
515
515
|
}
|
|
516
|
-
const ot = /* @__PURE__ */ N(O, [["render", j], ["__scopeId", "data-v-
|
|
516
|
+
const ot = /* @__PURE__ */ N(O, [["render", j], ["__scopeId", "data-v-b607e1c2"]]);
|
|
517
517
|
export {
|
|
518
518
|
nt as KV_LEND_CTA_FRAGMENT,
|
|
519
519
|
st as KV_LEND_CTA_USER_FRAGMENT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.30.
|
|
3
|
+
"version": "6.30.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"embla-carousel-fade",
|
|
112
112
|
"popper.js"
|
|
113
113
|
],
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "6e0f2ffccae6ce65d12657719f2381c0f142408f"
|
|
115
115
|
}
|