@kiva/kv-components 6.10.0 → 6.11.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-86580946] select{border-radius:14px 0 0 14px}.lend-again[data-v-86580946] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-86580946] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-86580946] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-86580946] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-86580946] select{--tw-border-opacity: 1;border-color:rgb(34 56 41 / var(--tw-border-opacity, 1))}.preset-option[data-v-86580946] 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-86580946] 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-0041b600] select{border-radius:14px 0 0 14px}.lend-again[data-v-0041b600] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-0041b600] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-0041b600] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-0041b600] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-0041b600] select{--tw-border-opacity: 1;border-color:rgb(34 56 41 / var(--tw-border-opacity, 1))}.preset-option[data-v-0041b600] 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-0041b600] span.tw-w-full:first-child{--tw-border-opacity: 1;border-color:rgba(var(--border-action),var(--tw-border-opacity, 1))}
@@ -5,7 +5,7 @@ import P from "./KvSelect.js";
5
5
  import S from "./KvButton.js";
6
6
  import I from "./KvMaterialIcon.js";
7
7
  import F from "./KvCartPill.js";
8
- import { resolveComponent as y, openBlock as i, createElementBlock as l, createBlock as a, withCtx as r, createElementVNode as u, createCommentVNode as d, normalizeClass as h, createTextVNode as w, toDisplayString as f, createVNode as O, withModifiers as v, Fragment as p, renderList as L } from "vue";
8
+ import { resolveComponent as y, openBlock as i, createElementBlock as l, createBlock as a, withCtx as r, createElementVNode as u, createCommentVNode as d, normalizeClass as h, createTextVNode as w, toDisplayString as f, createVNode as O, withModifiers as A, Fragment as p, renderList as L } from "vue";
9
9
  import "./KvLendCta.css";
10
10
  import V from "../_virtual/_plugin-vue_export-helper.js";
11
11
  const k = "Other", N = {
@@ -196,7 +196,7 @@ const k = "Other", N = {
196
196
  }
197
197
  },
198
198
  loanInBasketButtonText() {
199
- return this.showPresetAmounts ? "Continue to basket" : this.secondaryButtonText;
199
+ return this.secondaryButtonText ? this.secondaryButtonText : "Continue to basket";
200
200
  },
201
201
  useFormSubmit() {
202
202
  return !!(this.hideShowLendDropdown || this.lendButtonVisibility || this.showLendAgain || this.state === "lent-to" || this.isAdding);
@@ -249,12 +249,12 @@ const k = "Other", N = {
249
249
  },
250
250
  watch: {
251
251
  unreservedAmount(e, s) {
252
- var n, A;
252
+ var n, v;
253
253
  e !== s && s === "" && (this.selectedOption = B(
254
254
  this.getCookie,
255
255
  this.setCookie,
256
256
  this.enableFiveDollarsNotes,
257
- (A = (n = this.route) == null ? void 0 : n.query) == null ? void 0 : A.utm_campaign,
257
+ (v = (n = this.route) == null ? void 0 : n.query) == null ? void 0 : v.utm_campaign,
258
258
  e,
259
259
  this.userBalance,
260
260
  this.fiveDollarsSelected,
@@ -329,7 +329,7 @@ const k = "Other", N = {
329
329
  key: 1,
330
330
  class: "amountDropdownWrapper"
331
331
  }, z = ["value"];
332
- function E(e, s, n, A, c, t) {
332
+ function E(e, s, n, v, c, t) {
333
333
  const C = y("kv-cart-pill"), m = y("kv-ui-button"), b = y("kv-material-icon"), g = y("kv-ui-select"), T = y("kv-lend-amount-button");
334
334
  return i(), l("div", H, [
335
335
  n.showPill && n.showPresetAmounts ? (i(), a(C, {
@@ -414,7 +414,7 @@ function E(e, s, n, A, c, t) {
414
414
  }, 8, ["state", "to", "href"])) : t.useFormSubmit ? (i(), l("form", {
415
415
  key: 5,
416
416
  class: "tw-w-full tw-flex",
417
- onSubmit: s[4] || (s[4] = v((...o) => t.addToBasket && t.addToBasket(...o), ["prevent"]))
417
+ onSubmit: s[4] || (s[4] = A((...o) => t.addToBasket && t.addToBasket(...o), ["prevent"]))
418
418
  }, [
419
419
  u("fieldset", {
420
420
  class: h(["tw-w-full tw-flex", {
@@ -454,7 +454,7 @@ function E(e, s, n, A, c, t) {
454
454
  "tw-w-full": n.enableHugeAmount
455
455
  }]),
456
456
  "aria-label": "Lend amount",
457
- onClick: v(t.clickDropdown, ["stop"])
457
+ onClick: A(t.clickDropdown, ["stop"])
458
458
  }, {
459
459
  default: r(() => [
460
460
  (i(!0), l(p, null, L(t.presetDropdownPrices, (o) => (i(), l("option", {
@@ -476,7 +476,7 @@ function E(e, s, n, A, c, t) {
476
476
  class: "tw-min-w-12",
477
477
  style: { "border-radius": "14px 0 0 14px" },
478
478
  "aria-label": "Lend amount",
479
- onClick: v(t.clickDropdown, ["stop"])
479
+ onClick: A(t.clickDropdown, ["stop"])
480
480
  }, {
481
481
  default: r(() => [
482
482
  (i(!0), l(p, null, L(t.prices, (o) => (i(), l("option", {
@@ -537,7 +537,7 @@ function E(e, s, n, A, c, t) {
537
537
  ], 32)) : d("", !0)
538
538
  ]);
539
539
  }
540
- const ne = /* @__PURE__ */ V(N, [["render", E], ["__scopeId", "data-v-86580946"]]);
540
+ const ne = /* @__PURE__ */ V(N, [["render", E], ["__scopeId", "data-v-0041b600"]]);
541
541
  export {
542
542
  ne as default
543
543
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.10.0",
3
+ "version": "6.11.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -107,5 +107,5 @@
107
107
  "embla-carousel-fade",
108
108
  "popper.js"
109
109
  ],
110
- "gitHead": "b3055c069c3b51d5cbfa095cc27b7104ade04a61"
110
+ "gitHead": "a8eff6a5b81d84a08498823541e0c5f76543200e"
111
111
  }