@kiva/kv-components 6.22.2 → 6.23.0

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
- .amountDropdownWrapper[data-v-8b9dbed8] select{border-radius:14px 0 0 14px}.lend-again[data-v-8b9dbed8] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-8b9dbed8] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-8b9dbed8] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-8b9dbed8] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-8b9dbed8] select{--tw-border-opacity: 1;border-color:rgb(34 56 41 / var(--tw-border-opacity, 1))}.preset-option[data-v-8b9dbed8] 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-option[data-v-8b9dbed8] span.tw-w-full:first-child{--tw-border-opacity: 1;border-color:rgba(var(--border-action),var(--tw-border-opacity, 1))}
1
+ .amountDropdownWrapper[data-v-3b66ed0d] select{border-radius:14px 0 0 14px}.lend-again[data-v-3b66ed0d] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-3b66ed0d] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-3b66ed0d] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-3b66ed0d] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-3b66ed0d] 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-3b66ed0d] select,.selected-option[data-v-3b66ed0d] 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-3b66ed0d] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
@@ -6,7 +6,7 @@ import S from "./KvSelect.js";
6
6
  import F from "./KvButton.js";
7
7
  import I from "./KvMaterialIcon.js";
8
8
  import N from "./KvCartPill.js";
9
- import { resolveComponent as A, openBlock as i, createElementBlock as r, createBlock as a, withCtx as l, createElementVNode as u, createCommentVNode as d, normalizeClass as h, createTextVNode as f, toDisplayString as w, createVNode as V, withModifiers as p, Fragment as L, renderList as g } from "vue";
9
+ import { resolveComponent as A, openBlock as i, createElementBlock as l, createBlock as a, withCtx as r, createElementVNode as u, createCommentVNode as d, normalizeClass as h, createTextVNode as f, toDisplayString as w, createVNode as V, withModifiers as p, Fragment as L, renderList as g } from "vue";
10
10
  import "./KvLendCta.css";
11
11
  import O from "../_virtual/_plugin-vue_export-helper.js";
12
12
  const k = "Other", ot = C`
@@ -358,13 +358,13 @@ const k = "Other", ot = C`
358
358
  }, z = ["value"];
359
359
  function q(t, n, s, y, c, e) {
360
360
  const b = A("kv-cart-pill"), m = A("kv-ui-button"), x = A("kv-material-icon"), v = A("kv-ui-select"), T = A("kv-lend-amount-button");
361
- return i(), r("div", H, [
361
+ return i(), l("div", H, [
362
362
  s.showPill && s.showPresetAmounts ? (i(), a(b, {
363
363
  key: 0,
364
364
  "borrower-name": e.loanName,
365
365
  class: "!tw-w-full tw-justify-center tw-pb-2"
366
366
  }, {
367
- icon: l(() => n[5] || (n[5] = [
367
+ icon: r(() => n[5] || (n[5] = [
368
368
  u("svg", {
369
369
  xmlns: "http://www.w3.org/2000/svg",
370
370
  width: "25",
@@ -408,7 +408,7 @@ function q(t, n, s, y, c, e) {
408
408
  href: s.externalLinks ? "/basket" : void 0,
409
409
  onClick: n[0] || (n[0] = (o) => e.clickSecondaryButton(o))
410
410
  }, {
411
- default: l(() => [
411
+ default: r(() => [
412
412
  f(w(e.loanInBasketButtonText), 1)
413
413
  ]),
414
414
  _: 1
@@ -416,11 +416,11 @@ function q(t, n, s, y, c, e) {
416
416
  key: 2,
417
417
  class: "tw-inline-flex tw-flex-1"
418
418
  }, {
419
- default: l(() => [
419
+ default: r(() => [
420
420
  f(w(e.ctaButtonText), 1)
421
421
  ]),
422
422
  _: 1
423
- })) : e.isFunded ? (i(), r("div", K, " This loan was just funded! 🎉 ")) : s.showViewLoan ? (i(), a(m, {
423
+ })) : e.isFunded ? (i(), l("div", K, " This loan was just funded! 🎉 ")) : s.showViewLoan ? (i(), a(m, {
424
424
  key: 4,
425
425
  state: `${e.allSharesReserved ? "disabled" : ""}`,
426
426
  to: s.externalLinks ? void 0 : e.readMorePath,
@@ -428,7 +428,7 @@ function q(t, n, s, y, c, e) {
428
428
  class: "tw-mb-0",
429
429
  onClick: n[1] || (n[1] = (o) => t.$emit("show-loan-details", o))
430
430
  }, {
431
- default: l(() => [
431
+ default: r(() => [
432
432
  u("span", R, [
433
433
  n[6] || (n[6] = f(" View loan ")),
434
434
  V(x, {
@@ -438,31 +438,31 @@ function q(t, n, s, y, c, e) {
438
438
  ])
439
439
  ]),
440
440
  _: 1
441
- }, 8, ["state", "to", "href"])) : e.useFormSubmit ? (i(), r("form", {
441
+ }, 8, ["state", "to", "href"])) : e.useFormSubmit ? (i(), l("form", {
442
442
  key: 5,
443
443
  class: "tw-w-full tw-flex",
444
444
  onSubmit: n[4] || (n[4] = p((...o) => e.addToBasket && e.addToBasket(...o), ["prevent"]))
445
445
  }, [
446
446
  u("fieldset", {
447
447
  class: h(["tw-w-full tw-flex", {
448
- "tw-flex-col md:tw-flex-row md:tw-justify-between": s.showPresetAmounts,
448
+ "tw-flex-col md:tw-flex-row md:tw-justify-between tw-min-w-0": s.showPresetAmounts,
449
449
  "tw-gap-1.5": s.showPresetAmounts && !e.isLendAmountButton
450
450
  }]),
451
451
  disabled: s.isAdding,
452
452
  "data-testid": "bp-lend-cta-select-and-button"
453
453
  }, [
454
- s.showPresetAmounts && !s.isAdding ? (i(), r("div", {
454
+ s.showPresetAmounts && !s.isAdding ? (i(), l("div", {
455
455
  key: 0,
456
456
  class: h(["tw-flex tw-gap-1 lg:tw-gap-2", { "tw-flex-wrap md:tw-flex-nowrap": s.enableHugeAmount }])
457
457
  }, [
458
- e.isLendAmountButton ? d("", !0) : (i(!0), r(L, { key: 0 }, g(e.presetButtonsPrices, (o) => (i(), a(m, {
458
+ e.isLendAmountButton ? d("", !0) : (i(!0), l(L, { key: 0 }, g(e.presetButtonsPrices, (o) => (i(), a(m, {
459
459
  key: o,
460
460
  variant: "secondary",
461
461
  class: h(["tw-inline-flex tw-flex-1 preset-option tw-w-8", { "selected-option": c.selectedOption == o }]),
462
462
  "data-testid": "bp-lend-cta-lend-button",
463
463
  onClick: (Z) => e.clickPresetButton(o)
464
464
  }, {
465
- default: l(() => [
465
+ default: r(() => [
466
466
  f(" $" + w(o), 1)
467
467
  ]),
468
468
  _: 2
@@ -483,15 +483,15 @@ function q(t, n, s, y, c, e) {
483
483
  "aria-label": "Lend amount",
484
484
  onClick: p(e.clickDropdown, ["stop"])
485
485
  }, {
486
- default: l(() => [
487
- (i(!0), r(L, null, g(e.presetDropdownPrices, (o) => (i(), r("option", {
486
+ default: r(() => [
487
+ (i(!0), l(L, null, g(e.presetDropdownPrices, (o) => (i(), l("option", {
488
488
  key: o,
489
489
  value: o
490
490
  }, w(o !== c.OTHER_OPTION ? `$${o}` : o), 9, E))), 128))
491
491
  ]),
492
492
  _: 1
493
493
  }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : d("", !0)
494
- ], 2)) : s.showPresetAmounts ? d("", !0) : (i(), r("div", j, [
494
+ ], 2)) : s.showPresetAmounts ? d("", !0) : (i(), l("div", j, [
495
495
  e.hideShowLendDropdown && !e.isLessThan25 ? (i(), a(v, {
496
496
  key: 0,
497
497
  id: `LoanAmountDropdown_${e.loanId}`,
@@ -505,8 +505,8 @@ function q(t, n, s, y, c, e) {
505
505
  "aria-label": "Lend amount",
506
506
  onClick: p(e.clickDropdown, ["stop"])
507
507
  }, {
508
- default: l(() => [
509
- (i(!0), r(L, null, g(e.prices, (o) => (i(), r("option", {
508
+ default: r(() => [
509
+ (i(!0), l(L, null, g(e.prices, (o) => (i(), l("option", {
510
510
  key: o,
511
511
  value: o
512
512
  }, " $" + w(o), 9, z))), 128))
@@ -516,17 +516,18 @@ function q(t, n, s, y, c, e) {
516
516
  ])),
517
517
  u("div", {
518
518
  class: h({
519
+ "tw-min-w-0": s.showPresetAmounts,
519
520
  lendButtonWrapper: e.hideShowLendDropdown && !s.showPresetAmounts,
520
521
  "tw-hidden": e.hideLendButton
521
522
  })
522
523
  }, [
523
524
  e.lendButtonVisibility && !e.isLessThan25 ? (i(), a(m, {
524
525
  key: "lendButton",
525
- class: h(["tw-inline-flex tw-flex-1", { "tw-w-full": s.showPresetAmounts }]),
526
+ class: h(["tw-inline-flex tw-flex-1", { "button-ellipsis tw-w-full": s.showPresetAmounts }]),
526
527
  "data-testid": "bp-lend-cta-lend-button",
527
528
  type: "submit"
528
529
  }, {
529
- default: l(() => [
530
+ default: r(() => [
530
531
  f(w(e.ctaButtonText), 1)
531
532
  ]),
532
533
  _: 1
@@ -536,7 +537,7 @@ function q(t, n, s, y, c, e) {
536
537
  "data-testid": "bp-lend-cta-lend-again-button",
537
538
  type: "submit"
538
539
  }, {
539
- default: l(() => [
540
+ default: r(() => [
540
541
  f(w(s.primaryButtonText || "Lend") + " again ", 1)
541
542
  ]),
542
543
  _: 1
@@ -555,7 +556,7 @@ function q(t, n, s, y, c, e) {
555
556
  key: 3,
556
557
  class: "tw-inline-flex tw-flex-1"
557
558
  }, {
558
- default: l(() => n[7] || (n[7] = [
559
+ default: r(() => n[7] || (n[7] = [
559
560
  f(" Adding to basket ")
560
561
  ])),
561
562
  _: 1
@@ -564,7 +565,7 @@ function q(t, n, s, y, c, e) {
564
565
  ], 32)) : d("", !0)
565
566
  ]);
566
567
  }
567
- const at = /* @__PURE__ */ O(M, [["render", q], ["__scopeId", "data-v-8b9dbed8"]]);
568
+ const at = /* @__PURE__ */ O(M, [["render", q], ["__scopeId", "data-v-3b66ed0d"]]);
568
569
  export {
569
570
  ot as KV_LEND_CTA_FRAGMENT,
570
571
  it 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.22.2",
3
+ "version": "6.23.0",
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": "079961c26fef494054039c190cfc249fa8109f74"
114
+ "gitHead": "05289fba22aebf122d62677fa7a9e762be9ecffc"
115
115
  }