@kiva/kv-components 5.3.3 → 5.3.5

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-74dcdf98] select{border-radius:14px 0 0 14px}.lend-again[data-v-74dcdf98] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-74dcdf98] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-74dcdf98] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-74dcdf98] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-74dcdf98] select{--tw-border-opacity: 1;border-color:rgb(34 56 41 / var(--tw-border-opacity, 1))}.preset-option[data-v-74dcdf98] 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-74dcdf98] span.tw-w-full:first-child{--tw-border-opacity: 1;border-color:rgb(34 56 41 / var(--tw-border-opacity, 1))}
1
+ .amountDropdownWrapper[data-v-62cf823a] select{border-radius:14px 0 0 14px}.lend-again[data-v-62cf823a] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-62cf823a] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-62cf823a] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-62cf823a] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-62cf823a] select{--tw-border-opacity: 1;border-color:rgb(34 56 41 / var(--tw-border-opacity, 1))}.preset-option[data-v-62cf823a] 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-62cf823a] span.tw-w-full:first-child{--tw-border-opacity: 1;border-color:rgba(var(--border-action),var(--tw-border-opacity, 1))}
@@ -1,10 +1,10 @@
1
1
  import { mdiChevronRight as T } from "@mdi/js";
2
- import { getLendCtaSelectedOption as g, getDropdownPriceArray as x } from "../utils/loanUtils.js";
2
+ import { getLendCtaSelectedOption as p, getDropdownPriceArray as x } from "../utils/loanUtils.js";
3
3
  import C from "./KvLendAmountButton.js";
4
4
  import _ from "./KvSelect.js";
5
5
  import D from "./KvButton.js";
6
6
  import P from "./KvMaterialIcon.js";
7
- import { resolveComponent as w, openBlock as i, createElementBlock as a, createBlock as l, normalizeClass as r, withCtx as d, createTextVNode as c, toDisplayString as m, createElementVNode as y, createVNode as S, withModifiers as A, Fragment as p, renderList as v, createCommentVNode as u } from "vue";
7
+ import { resolveComponent as w, openBlock as i, createElementBlock as a, createBlock as l, normalizeClass as r, withCtx as d, createTextVNode as c, toDisplayString as m, createElementVNode as y, createVNode as S, withModifiers as A, Fragment as B, renderList as v, createCommentVNode as u } from "vue";
8
8
  import "./KvLendCta.css";
9
9
  import F from "../_virtual/_plugin-vue_export-helper.js";
10
10
  const I = {
@@ -106,7 +106,7 @@ const I = {
106
106
  return {
107
107
  mdiChevronRight: T,
108
108
  defaultAmountOptions: [25, 50, 75],
109
- selectedOption: g(
109
+ selectedOption: p(
110
110
  this.getCookie,
111
111
  this.setCookie,
112
112
  this.enableFiveDollarsNotes,
@@ -243,7 +243,7 @@ const I = {
243
243
  watch: {
244
244
  unreservedAmount(e, s) {
245
245
  var n, k;
246
- e !== s && s === "" && (this.selectedOption = g(
246
+ e !== s && s === "" && (this.selectedOption = p(
247
247
  this.getCookie,
248
248
  this.setCookie,
249
249
  this.enableFiveDollarsNotes,
@@ -323,7 +323,7 @@ const I = {
323
323
  class: "amountDropdownWrapper"
324
324
  }, R = ["value"];
325
325
  function U(e, s, n, k, f, t) {
326
- const h = w("kv-ui-button"), L = w("kv-material-icon"), B = w("kv-ui-select"), b = w("kv-lend-amount-button");
326
+ const h = w("kv-ui-button"), L = w("kv-material-icon"), g = w("kv-ui-select"), b = w("kv-lend-amount-button");
327
327
  return i(), a("div", V, [
328
328
  t.isInBasket ? (i(), l(h, {
329
329
  key: 0,
@@ -370,7 +370,10 @@ function U(e, s, n, k, f, t) {
370
370
  onSubmit: s[4] || (s[4] = A((...o) => t.addToBasket && t.addToBasket(...o), ["prevent"]))
371
371
  }, [
372
372
  y("fieldset", {
373
- class: r(["tw-w-full tw-flex", { "tw-flex-col tw-gap-1.5 md:tw-flex-row md:tw-justify-between": n.showPresetAmounts }]),
373
+ class: r(["tw-w-full tw-flex", {
374
+ "tw-flex-col md:tw-flex-row md:tw-justify-between": n.showPresetAmounts,
375
+ "tw-gap-1.5": n.showPresetAmounts && !t.isLendAmountButton
376
+ }]),
374
377
  disabled: n.isAdding,
375
378
  "data-testid": "bp-lend-cta-select-and-button"
376
379
  }, [
@@ -378,7 +381,7 @@ function U(e, s, n, k, f, t) {
378
381
  key: 0,
379
382
  class: r(["tw-flex tw-gap-1 lg:tw-gap-2", { "tw-flex-wrap md:tw-flex-nowrap": n.enableHugeAmount }])
380
383
  }, [
381
- t.isLendAmountButton ? u("", !0) : (i(!0), a(p, { key: 0 }, v(t.presetButtonsPrices, (o) => (i(), l(h, {
384
+ t.isLendAmountButton ? u("", !0) : (i(!0), a(B, { key: 0 }, v(t.presetButtonsPrices, (o) => (i(), l(h, {
382
385
  key: o,
383
386
  variant: "secondary",
384
387
  class: r(["tw-inline-flex tw-flex-1 preset-option tw-w-8", { "selected-option": f.selectedOption == o }]),
@@ -390,7 +393,7 @@ function U(e, s, n, k, f, t) {
390
393
  ]),
391
394
  _: 2
392
395
  }, 1032, ["class", "onClick"]))), 128)),
393
- t.showFilteredDropdown ? (i(), l(B, {
396
+ t.showFilteredDropdown ? (i(), l(g, {
394
397
  key: 1,
395
398
  id: `LoanAmountDropdown_${t.loanId}`,
396
399
  modelValue: f.selectedDropdownOption,
@@ -407,7 +410,7 @@ function U(e, s, n, k, f, t) {
407
410
  onClick: A(t.clickDropdown, ["stop"])
408
411
  }, {
409
412
  default: d(() => [
410
- (i(!0), a(p, null, v(t.presetDropdownPrices, (o) => (i(), a("option", {
413
+ (i(!0), a(B, null, v(t.presetDropdownPrices, (o) => (i(), a("option", {
411
414
  key: o,
412
415
  value: o
413
416
  }, m(o !== "Other" ? `$${o}` : o), 9, H))), 128))
@@ -415,7 +418,7 @@ function U(e, s, n, k, f, t) {
415
418
  _: 1
416
419
  }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : u("", !0)
417
420
  ], 2)) : n.showPresetAmounts ? u("", !0) : (i(), a("div", K, [
418
- t.hideShowLendDropdown && !t.isLessThan25 ? (i(), l(B, {
421
+ t.hideShowLendDropdown && !t.isLessThan25 ? (i(), l(g, {
419
422
  key: 0,
420
423
  id: `LoanAmountDropdown_${t.loanId}`,
421
424
  modelValue: f.selectedOption,
@@ -429,7 +432,7 @@ function U(e, s, n, k, f, t) {
429
432
  onClick: A(t.clickDropdown, ["stop"])
430
433
  }, {
431
434
  default: d(() => [
432
- (i(!0), a(p, null, v(t.prices, (o) => (i(), a("option", {
435
+ (i(!0), a(B, null, v(t.prices, (o) => (i(), a("option", {
433
436
  key: o,
434
437
  value: o
435
438
  }, " $" + m(o), 9, R))), 128))
@@ -487,7 +490,7 @@ function U(e, s, n, k, f, t) {
487
490
  ], 32)) : u("", !0)
488
491
  ]);
489
492
  }
490
- const Z = /* @__PURE__ */ F(I, [["render", U], ["__scopeId", "data-v-74dcdf98"]]);
493
+ const Z = /* @__PURE__ */ F(I, [["render", U], ["__scopeId", "data-v-62cf823a"]]);
491
494
  export {
492
495
  Z as default
493
496
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "5.3.3",
3
+ "version": "5.3.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -106,5 +106,5 @@
106
106
  "embla-carousel-fade",
107
107
  "popper.js"
108
108
  ],
109
- "gitHead": "ac1cad8ab1ea6d9d1274b97cf61febb26261d371"
109
+ "gitHead": "edf2d18c4c65660427738f7ddfa8bb1ae0e71ddb"
110
110
  }