@kiva/kv-components 6.11.0 → 6.12.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.
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +10 -10
- package/package.json +2 -2
package/dist/vue/KvLendCta.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.amountDropdownWrapper[data-v-
|
|
1
|
+
.amountDropdownWrapper[data-v-6049057c] select{border-radius:14px 0 0 14px}.lend-again[data-v-6049057c] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-6049057c] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-6049057c] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-6049057c] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-6049057c] select{--tw-border-opacity: 1;border-color:rgb(34 56 41 / var(--tw-border-opacity, 1))}.preset-option[data-v-6049057c] 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-6049057c] span.tw-w-full:first-child{--tw-border-opacity: 1;border-color:rgba(var(--border-action),var(--tw-border-opacity, 1))}
|
package/dist/vue/KvLendCta.js
CHANGED
|
@@ -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
|
|
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";
|
|
9
9
|
import "./KvLendCta.css";
|
|
10
10
|
import V from "../_virtual/_plugin-vue_export-helper.js";
|
|
11
11
|
const k = "Other", N = {
|
|
@@ -88,7 +88,7 @@ const k = "Other", N = {
|
|
|
88
88
|
},
|
|
89
89
|
secondaryButtonText: {
|
|
90
90
|
type: String,
|
|
91
|
-
default:
|
|
91
|
+
default: void 0
|
|
92
92
|
},
|
|
93
93
|
secondaryButtonHandler: {
|
|
94
94
|
type: Function,
|
|
@@ -196,7 +196,7 @@ const k = "Other", N = {
|
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
loanInBasketButtonText() {
|
|
199
|
-
return this.secondaryButtonText ? this.secondaryButtonText : "Continue to basket";
|
|
199
|
+
return this.secondaryButtonText ? this.secondaryButtonText : this.showPresetAmounts ? "Continue to basket" : "Checkout now";
|
|
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,
|
|
252
|
+
var n, A;
|
|
253
253
|
e !== s && s === "" && (this.selectedOption = B(
|
|
254
254
|
this.getCookie,
|
|
255
255
|
this.setCookie,
|
|
256
256
|
this.enableFiveDollarsNotes,
|
|
257
|
-
(
|
|
257
|
+
(A = (n = this.route) == null ? void 0 : n.query) == null ? void 0 : A.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,
|
|
332
|
+
function E(e, s, n, A, 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, v, 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] =
|
|
417
|
+
onSubmit: s[4] || (s[4] = v((...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, v, c, t) {
|
|
|
454
454
|
"tw-w-full": n.enableHugeAmount
|
|
455
455
|
}]),
|
|
456
456
|
"aria-label": "Lend amount",
|
|
457
|
-
onClick:
|
|
457
|
+
onClick: v(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, v, 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:
|
|
479
|
+
onClick: v(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, v, c, t) {
|
|
|
537
537
|
], 32)) : d("", !0)
|
|
538
538
|
]);
|
|
539
539
|
}
|
|
540
|
-
const ne = /* @__PURE__ */ V(N, [["render", E], ["__scopeId", "data-v-
|
|
540
|
+
const ne = /* @__PURE__ */ V(N, [["render", E], ["__scopeId", "data-v-6049057c"]]);
|
|
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.
|
|
3
|
+
"version": "6.12.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": "
|
|
110
|
+
"gitHead": "15db450d8f6e07b64d8f4f1e8c8f8c3fcfd65a45"
|
|
111
111
|
}
|