@kiva/kv-components 6.30.0 → 6.31.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-898962c3] select{border-radius:14px 0 0 14px}.lend-again[data-v-898962c3] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-898962c3] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-898962c3] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-898962c3] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-898962c3] 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-898962c3] select,.selected-option[data-v-898962c3] 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-898962c3] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
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}
@@ -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, normalizeClass as c, withCtx as d, createTextVNode as m, toDisplayString as f, createElementVNode as p, createVNode as I, withModifiers as y, Fragment as B, renderList as v, createCommentVNode as l } from "vue";
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: c(["tw-inline-flex tw-flex-1", { "tw-w-full": s.showPresetAmounts }]),
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(f(e.loanInBasketButtonText), 1)
364
+ c(m(e.loanInBasketButtonText), 1)
365
365
  ]),
366
366
  _: 1
367
- }, 8, ["class", "to", "href"])) : e.showNonActionableLoanButton ? (i(), r(h, {
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(f(e.ctaButtonText), 1)
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] = m(" View loan ")),
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: c(["tw-w-full tw-flex", {
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: c(["tw-inline-flex tw-flex-1 preset-option tw-w-8", { "selected-option": u.selectedOption == o }]),
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
- m(" $" + f(o), 1)
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: c(["tw-min-w-12 tw-rounded filtered-dropdown tw-w-full", {
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
- }, f(o !== u.OTHER_OPTION ? `$${o}` : o), 9, U))), 128))
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
- }, " $" + f(o), 9, H))), 128))
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: c({
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: c(["tw-inline-flex tw-flex-1", { "button-ellipsis tw-w-full": s.showPresetAmounts }]),
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(f(e.ctaButtonText), 1)
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: c(["lend-again", { "tw-w-full": s.showPresetAmounts }]),
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(f(s.primaryButtonText || "Lend") + " again ", 1)
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
- m(" Adding to basket ")
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-898962c3"]]);
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,
@@ -0,0 +1 @@
1
+ .container[data-v-57d55c25]{position:relative;width:100%}.container>select[data-v-57d55c25]{border-radius:8px}
@@ -1,7 +1,8 @@
1
- import { ref as m, watch as w, resolveComponent as p, openBlock as f, createElementBlock as g, normalizeClass as d, normalizeStyle as v, createElementVNode as c, withDirectives as b, mergeProps as h, renderSlot as V, vModelSelect as y, createVNode as _ } from "vue";
1
+ import { ref as m, watch as w, resolveComponent as p, openBlock as f, createElementBlock as g, normalizeClass as d, normalizeStyle as v, createElementVNode as c, withDirectives as b, mergeProps as _, renderSlot as h, vModelSelect as V, createVNode as y } from "vue";
2
2
  import { mdiChevronDown as C } from "@mdi/js";
3
3
  import { useAttrs as S } from "../utils/attrs.js";
4
4
  import k from "./KvMaterialIcon.js";
5
+ import "./KvSelect.css";
5
6
  import x from "../_virtual/_plugin-vue_export-helper.js";
6
7
  const u = [
7
8
  "change",
@@ -61,7 +62,7 @@ const u = [
61
62
  inputValue: n
62
63
  };
63
64
  }
64
- }, B = { class: "tw-relative tw-w-full" }, D = ["id", "disabled"];
65
+ }, B = { class: "container" }, D = ["id", "disabled"];
65
66
  function N(a, t, o, e, i, s) {
66
67
  const r = p("kv-material-icon");
67
68
  return f(), g("div", {
@@ -69,24 +70,24 @@ function N(a, t, o, e, i, s) {
69
70
  style: v(e.styles)
70
71
  }, [
71
72
  c("div", B, [
72
- b(c("select", h({ id: o.id }, e.inputAttrs, {
73
+ b(c("select", _({ id: o.id }, e.inputAttrs, {
73
74
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.inputValue = n),
74
75
  disabled: o.disabled,
75
- class: ["tw-text-base tw-bg-primary tw-h-6 tw-pr-4 tw-pl-2 tw-border tw-border-tertiary tw-rounded-sm tw-appearance-none tw-w-full tw-ring-inset focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-action focus:tw-border-transparent", { "tw-opacity-low": o.disabled }],
76
+ class: ["tw-text-base tw-bg-primary tw-h-6 tw-pr-4 tw-pl-2 tw-border tw-border-tertiary tw-appearance-none tw-w-full tw-ring-inset focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-action focus:tw-border-transparent tw-text-ellipsis", { "tw-opacity-low": o.disabled }],
76
77
  onChange: t[1] || (t[1] = (...n) => e.onChange && e.onChange(...n))
77
78
  }), [
78
- V(a.$slots, "default")
79
+ h(a.$slots, "default", {}, void 0, !0)
79
80
  ], 16, D), [
80
- [y, e.inputValue]
81
+ [V, e.inputValue]
81
82
  ]),
82
- _(r, {
83
+ y(r, {
83
84
  icon: e.mdiChevronDown,
84
85
  class: d(["tw-w-4 tw-absolute tw-top-0 tw-right-0 tw-pt-1.5 tw-pr-1 tw-pointer-events-none", { "tw-opacity-low": o.disabled }])
85
86
  }, null, 8, ["icon", "class"])
86
87
  ])
87
88
  ], 6);
88
89
  }
89
- const I = /* @__PURE__ */ x(A, [["render", N]]);
90
+ const L = /* @__PURE__ */ x(A, [["render", N], ["__scopeId", "data-v-57d55c25"]]);
90
91
  export {
91
- I as default
92
+ L as default
92
93
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.30.0",
3
+ "version": "6.31.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": "dcc1dba54ce0fe677ce67bc8ad5abe0c398df219"
114
+ "gitHead": "d3956897d2eb25a800eed90e0e19168af4b38565"
115
115
  }