@kiva/kv-components 8.29.1 → 9.0.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/KvCardFrame2.js +7 -10
- package/dist/vue/KvCheckoutReceipt.css +1 -1
- package/dist/vue/KvCheckoutReceipt.js +21 -21
- package/dist/vue/KvDatePicker2.js +10 -13
- package/dist/vue/KvSecondaryNav.css +1 -1
- package/dist/vue/KvSecondaryNav.js +1 -1
- package/dist/vue/KvSecondaryNav2.js +13 -15
- package/dist/vue/KvTooltip.css +1 -1
- package/dist/vue/KvTooltip.js +4 -4
- package/dist/vue/KvTooltip2.js +35 -44
- package/dist/vue/KvWwwHeaderBasic/LinkBar.css +1 -1
- package/dist/vue/KvWwwHeaderBasic/LinkBar.js +54 -44
- package/package.json +3 -3
package/dist/vue/KvCardFrame2.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed as r } from "vue";
|
|
2
|
-
import { defaultTheme as t,
|
|
3
|
-
import
|
|
4
|
-
const
|
|
2
|
+
import { defaultTheme as t, stoneLightTheme as a, marigoldLightTheme as o, greenLightTheme as n, greenDarkTheme as l } from "@kiva/kv-tokens";
|
|
3
|
+
import s from "./KvThemeProvider.js";
|
|
4
|
+
const m = {
|
|
5
5
|
components: {
|
|
6
|
-
KvThemeProvider:
|
|
6
|
+
KvThemeProvider: s
|
|
7
7
|
},
|
|
8
8
|
props: {
|
|
9
9
|
allowOverflow: {
|
|
@@ -35,8 +35,7 @@ const h = {
|
|
|
35
35
|
"greenLight",
|
|
36
36
|
"greenDark",
|
|
37
37
|
"marigoldLight",
|
|
38
|
-
"stoneLight"
|
|
39
|
-
"stoneDark"
|
|
38
|
+
"stoneLight"
|
|
40
39
|
].includes(e);
|
|
41
40
|
}
|
|
42
41
|
}
|
|
@@ -49,12 +48,10 @@ const h = {
|
|
|
49
48
|
case "greenDark":
|
|
50
49
|
return l;
|
|
51
50
|
case "greenLight":
|
|
52
|
-
return
|
|
51
|
+
return n;
|
|
53
52
|
case "marigoldLight":
|
|
54
53
|
return o;
|
|
55
54
|
case "stoneLight":
|
|
56
|
-
return n;
|
|
57
|
-
case "stoneDark":
|
|
58
55
|
return a;
|
|
59
56
|
default:
|
|
60
57
|
return t;
|
|
@@ -63,5 +60,5 @@ const h = {
|
|
|
63
60
|
}
|
|
64
61
|
};
|
|
65
62
|
export {
|
|
66
|
-
|
|
63
|
+
m as default
|
|
67
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.section[data-v-
|
|
1
|
+
.section[data-v-1d721061]{border-bottom-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));padding:.5rem;display:block;overflow:hidden}@media print{.section[data-v-1d721061]{page-break-inside:avoid}}.section--lender-info[data-v-1d721061]{padding-top:0}.section--print[data-v-1d721061]{border-bottom:0}.checkout-receipt__headline[data-v-1d721061]{text-align:center;margin-bottom:1.5rem}.checkout-receipt__item-list[data-v-1d721061]{list-style:none;margin:0;width:100%}.loan__name[data-v-1d721061]{margin-bottom:.5rem}.loan__name--inline[data-v-1d721061]{display:inline-block}.loan__amount[data-v-1d721061]{text-align:right}.total[data-v-1d721061]{display:flex;align-items:baseline}.total__header[data-v-1d721061],.total__amount[data-v-1d721061]{text-align:right;flex:1}.total__amount[data-v-1d721061]{flex-grow:.33}.payments[data-v-1d721061]{border-bottom:none}.payments__type[data-v-1d721061]{display:flex;text-align:right}.payments__type-title[data-v-1d721061],.payments__type-amount[data-v-1d721061]{flex:1}.print[data-v-1d721061]{margin:0 auto}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import C from "./KvCheckoutReceipt2.js";
|
|
2
|
-
import { resolveComponent as
|
|
2
|
+
import { resolveComponent as _, resolveDirective as f, openBlock as s, createElementBlock as o, createElementVNode as e, toDisplayString as i, createCommentVNode as d, Fragment as c, renderList as k, createTextVNode as l, createVNode as p, withCtx as v, withDirectives as b } from "vue";
|
|
3
3
|
import "./KvCheckoutReceipt.css";
|
|
4
4
|
import x from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const g = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper tw-bg-primary tw-p-4 tw-rounded-xs tw-border tw-border-tertiary" }, j = {
|
|
@@ -33,24 +33,24 @@ const g = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper
|
|
|
33
33
|
}, B = {
|
|
34
34
|
"data-testid": "kcard",
|
|
35
35
|
class: "loan kcard"
|
|
36
|
-
},
|
|
36
|
+
}, L = {
|
|
37
37
|
class: "loan__details data-hj-suppress",
|
|
38
38
|
"data-testid": "kcard-details"
|
|
39
|
-
},
|
|
39
|
+
}, U = {
|
|
40
40
|
key: 0,
|
|
41
41
|
"data-testid": "kcard-details",
|
|
42
42
|
class: "loan__details data-hj-suppress"
|
|
43
|
-
},
|
|
43
|
+
}, q = {
|
|
44
44
|
class: "loan__details data-hj-suppress",
|
|
45
45
|
"data-testid": "kcard-details"
|
|
46
|
-
},
|
|
46
|
+
}, z = {
|
|
47
47
|
class: "loan__amount tw-text-title",
|
|
48
48
|
"data-testid": "kcard-amount"
|
|
49
|
-
},
|
|
49
|
+
}, G = {
|
|
50
50
|
key: 0,
|
|
51
51
|
"data-testid": "kcard-portfolio",
|
|
52
52
|
class: "section tw-text-center print:!tw-hidden"
|
|
53
|
-
},
|
|
53
|
+
}, S = { href: "/portfolio/kiva-cards" }, W = { class: "checkout-receipt__item-list" }, Y = { class: "section" }, H = {
|
|
54
54
|
class: "loan",
|
|
55
55
|
"data-testid": "donation"
|
|
56
56
|
}, J = {
|
|
@@ -102,8 +102,8 @@ const g = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper
|
|
|
102
102
|
class: "total__amount tw-text-title",
|
|
103
103
|
"data-testid": "amount-charged-payment-amount"
|
|
104
104
|
}, ct = { class: "section section--print print:!tw-hidden" };
|
|
105
|
-
function pt(
|
|
106
|
-
const u =
|
|
105
|
+
function pt(_t, t, n, m, mt, r) {
|
|
106
|
+
const u = _("kv-material-icon"), y = _("kv-tooltip"), w = _("kv-button"), h = f("kv-track-event");
|
|
107
107
|
return s(), o("div", g, [
|
|
108
108
|
t[25] || (t[25] = e("h2", { class: "checkout-receipt__headline" }, " Order Confirmation ", -1)),
|
|
109
109
|
e("div", T, [
|
|
@@ -160,7 +160,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
160
160
|
}, " Print-it-yourself Kiva Card ", -1)),
|
|
161
161
|
p(u, {
|
|
162
162
|
id: `print-card-${a.id}`,
|
|
163
|
-
icon:
|
|
163
|
+
icon: m.infoIcon,
|
|
164
164
|
"data-testid": "kcard-tool-tip-control",
|
|
165
165
|
name: "question",
|
|
166
166
|
class: "tw-fill-current tw-text-tertiary tw-h-2.5 tw-w-2.5 tw-ml-0.5"
|
|
@@ -168,7 +168,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
168
168
|
p(y, {
|
|
169
169
|
"data-testid": "kcard-tool-tip-text",
|
|
170
170
|
controller: `print-card-${a.id}`,
|
|
171
|
-
theme: "
|
|
171
|
+
theme: "ecoGreenLight"
|
|
172
172
|
}, {
|
|
173
173
|
default: v(() => t[2] || (t[2] = [
|
|
174
174
|
l(" You can print this card now. We'll also send it to you in an email so you can print it later. ")
|
|
@@ -193,7 +193,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
193
193
|
class: "loan__name tw-text-title",
|
|
194
194
|
"data-testid": "kcard-type-postal"
|
|
195
195
|
}, " Postal delivery Kiva Card ", -1)),
|
|
196
|
-
e("div",
|
|
196
|
+
e("div", L, [
|
|
197
197
|
l(" For: " + i(a.kivaCardObject.mailingInfo.firstName) + " " + i(a.kivaCardObject.mailingInfo.lastName), 1),
|
|
198
198
|
t[6] || (t[6] = e("br", null, null, -1)),
|
|
199
199
|
l(" " + i(a.kivaCardObject.mailingInfo.address), 1),
|
|
@@ -209,13 +209,13 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
209
209
|
class: "loan__name tw-text-title",
|
|
210
210
|
"data-testid": "kcard-type-lender"
|
|
211
211
|
}, " Kiva Card ", -1)),
|
|
212
|
-
a.kivaCardObject.recipient.name ? (s(), o("div",
|
|
212
|
+
a.kivaCardObject.recipient.name ? (s(), o("div", U, " For: " + i(a.kivaCardObject.recipient.name), 1)) : d("", !0)
|
|
213
213
|
], 64)) : a.kivaCardObject.deliveryType === "email" ? (s(), o(c, { key: 3 }, [
|
|
214
214
|
t[11] || (t[11] = e("h3", {
|
|
215
215
|
class: "loan__name tw-text-title",
|
|
216
216
|
"data-testid": "kcard-type-email"
|
|
217
217
|
}, " Email delivery Kiva Card ", -1)),
|
|
218
|
-
e("div",
|
|
218
|
+
e("div", q, [
|
|
219
219
|
t[10] || (t[10] = l(" For: ")),
|
|
220
220
|
a.kivaCardObject.recipient.name ? (s(), o(c, { key: 0 }, [
|
|
221
221
|
l(i(a.kivaCardObject.recipient.name) + " – ", 1)
|
|
@@ -223,12 +223,12 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
223
223
|
l(" " + i(a.kivaCardObject.recipient.email), 1)
|
|
224
224
|
])
|
|
225
225
|
], 64)) : d("", !0),
|
|
226
|
-
e("div",
|
|
226
|
+
e("div", z, " $" + i(a.price), 1)
|
|
227
227
|
])
|
|
228
228
|
]))), 128)),
|
|
229
|
-
r.kivaCards.length > 0 ? (s(), o("li",
|
|
229
|
+
r.kivaCards.length > 0 ? (s(), o("li", G, [
|
|
230
230
|
t[13] || (t[13] = l(" For more details about all your Kiva Card purchases, please visit your ")),
|
|
231
|
-
b((s(), o("a",
|
|
231
|
+
b((s(), o("a", S, t[12] || (t[12] = [
|
|
232
232
|
l(" Kiva portfolio ")
|
|
233
233
|
]))), [
|
|
234
234
|
[h, ["Thanks", "click", "kiva-card-portfolio"]]
|
|
@@ -238,8 +238,8 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
238
238
|
])
|
|
239
239
|
]),
|
|
240
240
|
e("section", null, [
|
|
241
|
-
e("ul",
|
|
242
|
-
e("li",
|
|
241
|
+
e("ul", W, [
|
|
242
|
+
e("li", Y, [
|
|
243
243
|
e("div", H, [
|
|
244
244
|
t[15] || (t[15] = e("h3", { class: "loan__name tw-text-title" }, " Donation to Kiva ", -1)),
|
|
245
245
|
n.receipt.totals.donationTotal > 0 ? (s(), o("a", {
|
|
@@ -297,7 +297,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
297
297
|
onClick: t[1] || (t[1] = (...a) => r.printReceipt && r.printReceipt(...a))
|
|
298
298
|
}, [
|
|
299
299
|
p(u, {
|
|
300
|
-
icon:
|
|
300
|
+
icon: m.printIcon,
|
|
301
301
|
name: "print",
|
|
302
302
|
class: "tw-h-2.5 tw-w-2.5 tw-ml-0.5"
|
|
303
303
|
}, null, 8, ["icon"]),
|
|
@@ -307,7 +307,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
307
307
|
])
|
|
308
308
|
]);
|
|
309
309
|
}
|
|
310
|
-
const wt = /* @__PURE__ */ x(C, [["render", pt], ["__scopeId", "data-v-
|
|
310
|
+
const wt = /* @__PURE__ */ x(C, [["render", pt], ["__scopeId", "data-v-1d721061"]]);
|
|
311
311
|
export {
|
|
312
312
|
wt as default
|
|
313
313
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as r } from "vue";
|
|
2
2
|
import a from "@vuepic/vue-datepicker";
|
|
3
3
|
import "@vuepic/vue-datepicker/dist/main.css";
|
|
4
|
-
import { defaultTheme as t,
|
|
5
|
-
import
|
|
6
|
-
const
|
|
4
|
+
import { defaultTheme as t, stoneLightTheme as i, marigoldLightTheme as m, greenLightTheme as n, greenDarkTheme as h } from "@kiva/kv-tokens";
|
|
5
|
+
import l from "./KvThemeProvider.js";
|
|
6
|
+
const p = {
|
|
7
7
|
name: "KvDatePicker",
|
|
8
8
|
components: {
|
|
9
|
-
KvThemeProvider:
|
|
9
|
+
KvThemeProvider: l,
|
|
10
10
|
VueDatePicker: a
|
|
11
11
|
},
|
|
12
12
|
inheritAttrs: !1,
|
|
@@ -24,8 +24,7 @@ const f = {
|
|
|
24
24
|
"greenLight",
|
|
25
25
|
"greenDark",
|
|
26
26
|
"marigoldLight",
|
|
27
|
-
"stoneLight"
|
|
28
|
-
"stoneDark"
|
|
27
|
+
"stoneLight"
|
|
29
28
|
].includes(e);
|
|
30
29
|
}
|
|
31
30
|
}
|
|
@@ -40,15 +39,13 @@ const f = {
|
|
|
40
39
|
case "default":
|
|
41
40
|
return t;
|
|
42
41
|
case "greenDark":
|
|
43
|
-
return o;
|
|
44
|
-
case "greenLight":
|
|
45
42
|
return h;
|
|
43
|
+
case "greenLight":
|
|
44
|
+
return n;
|
|
46
45
|
case "marigoldLight":
|
|
47
|
-
return i;
|
|
48
|
-
case "stoneLight":
|
|
49
46
|
return m;
|
|
50
|
-
case "
|
|
51
|
-
return
|
|
47
|
+
case "stoneLight":
|
|
48
|
+
return i;
|
|
52
49
|
default:
|
|
53
50
|
return t;
|
|
54
51
|
}
|
|
@@ -74,5 +71,5 @@ const f = {
|
|
|
74
71
|
}
|
|
75
72
|
};
|
|
76
73
|
export {
|
|
77
|
-
|
|
74
|
+
p as default
|
|
78
75
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.kv-secondary-nav-holder[data-v-
|
|
1
|
+
.kv-secondary-nav-holder[data-v-dcf22089]{height:62px}.kv-secondary-nav[data-v-dcf22089]{min-height:62px}
|
|
@@ -83,7 +83,7 @@ function N(p, w, t, e, E, A) {
|
|
|
83
83
|
_: 1
|
|
84
84
|
}, 8, ["theme"]);
|
|
85
85
|
}
|
|
86
|
-
const z = /* @__PURE__ */ C(x, [["render", N], ["__scopeId", "data-v-
|
|
86
|
+
const z = /* @__PURE__ */ C(x, [["render", N], ["__scopeId", "data-v-dcf22089"]]);
|
|
87
87
|
export {
|
|
88
88
|
z as default
|
|
89
89
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { toRefs as c, ref as g, computed as n } from "vue";
|
|
2
|
-
import { stoneLightTheme as
|
|
3
|
-
import { mdiChevronDown as k, mdiChevronUp as
|
|
4
|
-
import
|
|
2
|
+
import { stoneLightTheme as y, marigoldLightTheme as p, greenDarkTheme as b, greenLightTheme as v, defaultTheme as w } from "@kiva/kv-tokens";
|
|
3
|
+
import { mdiChevronDown as k, mdiChevronUp as L } from "@mdi/js";
|
|
4
|
+
import C from "./KvThemeProvider.js";
|
|
5
5
|
import j from "./KvMaterialIcon.js";
|
|
6
6
|
import O from "./KvPageContainer.js";
|
|
7
7
|
const _ = {
|
|
8
8
|
name: "KvSecondaryNav",
|
|
9
9
|
components: {
|
|
10
|
-
KvThemeProvider:
|
|
10
|
+
KvThemeProvider: C,
|
|
11
11
|
KvMaterialIcon: j,
|
|
12
12
|
KvPageContainer: O
|
|
13
13
|
},
|
|
@@ -46,7 +46,6 @@ const _ = {
|
|
|
46
46
|
validator(e) {
|
|
47
47
|
return [
|
|
48
48
|
"default",
|
|
49
|
-
"dark",
|
|
50
49
|
"greenLight",
|
|
51
50
|
"greenDark",
|
|
52
51
|
"marigoldLight",
|
|
@@ -63,14 +62,13 @@ const _ = {
|
|
|
63
62
|
heading: l,
|
|
64
63
|
linkAlignment: a,
|
|
65
64
|
theme: s
|
|
66
|
-
} = c(e),
|
|
65
|
+
} = c(e), u = g(null), i = g(!1), m = n(() => e.headingLink && e.headingLink.href), d = n(() => a.value === "right" ? l.value && l.value.length > 0 ? "tw-justify-between" : "tw-justify-between md:tw-justify-end" : a.value === "left" ? "tw-justify-between md:tw-justify-start" : a.value === "center" ? "tw-justify-between md:tw-justify-center" : ""), o = {
|
|
67
66
|
default: { style: w, bgClass: "tw-bg-secondary" },
|
|
68
|
-
dark: { style: u, bgClass: "tw-bg-primary" },
|
|
69
67
|
greenLight: { style: v, bgClass: "tw-bg-secondary" },
|
|
70
|
-
greenDark: { style:
|
|
71
|
-
marigoldLight: { style:
|
|
72
|
-
stoneLight: { style:
|
|
73
|
-
},
|
|
68
|
+
greenDark: { style: b, bgClass: "tw-bg-primary" },
|
|
69
|
+
marigoldLight: { style: p, bgClass: "tw-bg-primary" },
|
|
70
|
+
stoneLight: { style: y, bgClass: "tw-bg-primary" }
|
|
71
|
+
}, h = n(() => {
|
|
74
72
|
var t;
|
|
75
73
|
return (t = o[s.value]) == null ? void 0 : t.style;
|
|
76
74
|
}), f = n(() => {
|
|
@@ -79,15 +77,15 @@ const _ = {
|
|
|
79
77
|
});
|
|
80
78
|
return {
|
|
81
79
|
hasHeadingLink: m,
|
|
82
|
-
navAlignmentClass:
|
|
80
|
+
navAlignmentClass: d,
|
|
83
81
|
toggleSubNavigation: () => {
|
|
84
82
|
i.value = !i.value;
|
|
85
83
|
},
|
|
86
84
|
subNavigationOpen: i,
|
|
87
|
-
mdiChevronUp:
|
|
85
|
+
mdiChevronUp: L,
|
|
88
86
|
mdiChevronDown: k,
|
|
89
|
-
subNavigation:
|
|
90
|
-
themeStyle:
|
|
87
|
+
subNavigation: u,
|
|
88
|
+
themeStyle: h,
|
|
91
89
|
bgClass: f,
|
|
92
90
|
handleLinkClick: (t) => {
|
|
93
91
|
r("subnavLinkClicked", t);
|
package/dist/vue/KvTooltip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tooltip-pane[data-v-
|
|
1
|
+
.tooltip-pane[data-v-d5f691f8],.tooltip-arrow[data-v-d5f691f8]{box-shadow:0 4px 12px #00000014}.tooltip-arrow[data-v-d5f691f8]{margin:.5rem;border-color:rgba(var(--bg-primary),var(--tw-bg-opacity, 1))}.tooltip-pane[x-placement^=top][data-v-d5f691f8]{margin-bottom:.5rem}.tooltip-pane[x-placement^=top] .tooltip-arrow[data-v-d5f691f8]{border-width:8px 8px 0 8px;border-left-color:transparent;border-right-color:transparent;border-bottom-color:transparent;left:calc(50% - 8px);bottom:-.5rem;margin-top:0;margin-bottom:0}.tooltip-pane[x-placement^=bottom][data-v-d5f691f8]{margin-top:.5rem}.tooltip-pane[x-placement^=bottom] .tooltip-arrow[data-v-d5f691f8]{border-width:0 8px 8px 8px;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;left:calc(50% - 8px);top:-.5rem;margin-bottom:0;margin-top:0}.tooltip-pane[x-placement^=right][data-v-d5f691f8]{margin-left:.5rem}.tooltip-pane[x-placement^=right] .tooltip-arrow[data-v-d5f691f8]{border-width:8px 8px 8px 0;border-left-color:transparent;border-top-color:transparent;border-bottom-color:transparent;top:calc(50% - 8px);left:-.5rem;margin-left:0;margin-right:0}.tooltip-pane[x-placement^=left][data-v-d5f691f8]{margin-right:.5rem}.tooltip-pane[x-placement^=left] .tooltip-arrow[data-v-d5f691f8]{border-width:8px 0 8px 8px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;top:calc(50% - 8px);right:-.5rem;margin-left:0;margin-right:0}
|
package/dist/vue/KvTooltip.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as l, openBlock as p, createBlock as v, withCtx as n, createVNode as
|
|
1
|
+
import f from "./KvTooltip2.js";
|
|
2
|
+
import { resolveComponent as l, openBlock as p, createBlock as v, withCtx as n, createVNode as c, createElementVNode as i, normalizeStyle as w, createElementBlock as _, renderSlot as d, createCommentVNode as u } from "vue";
|
|
3
3
|
import "./KvTooltip.css";
|
|
4
4
|
import k from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const y = {
|
|
@@ -13,7 +13,7 @@ function b(o, e, r, t, x, V) {
|
|
|
13
13
|
class: "kv-tailwind"
|
|
14
14
|
}, {
|
|
15
15
|
default: n(() => [
|
|
16
|
-
|
|
16
|
+
c(s, {
|
|
17
17
|
ref: "popperRef",
|
|
18
18
|
controller: r.controller,
|
|
19
19
|
"popper-modifiers": t.popperModifiers,
|
|
@@ -46,7 +46,7 @@ function b(o, e, r, t, x, V) {
|
|
|
46
46
|
_: 3
|
|
47
47
|
}, 8, ["theme"]);
|
|
48
48
|
}
|
|
49
|
-
const N = /* @__PURE__ */ k(
|
|
49
|
+
const N = /* @__PURE__ */ k(f, [["render", b], ["__scopeId", "data-v-d5f691f8"]]);
|
|
50
50
|
export {
|
|
51
51
|
N as default
|
|
52
52
|
};
|
package/dist/vue/KvTooltip2.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { toRefs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { toRefs as L, computed as i, ref as w, watch as b } from "vue";
|
|
2
|
+
import { stoneLightTheme as l, marigoldLightTheme as p, greenDarkTheme as a, greenLightTheme as f, defaultTheme as m } from "@kiva/kv-tokens";
|
|
3
|
+
import M from "./KvPopper.js";
|
|
4
|
+
import S from "./KvThemeProvider.js";
|
|
5
|
+
const K = {
|
|
6
6
|
name: "KvTooltip",
|
|
7
7
|
components: {
|
|
8
|
-
KvPopper:
|
|
9
|
-
KvThemeProvider:
|
|
8
|
+
KvPopper: M,
|
|
9
|
+
KvThemeProvider: S
|
|
10
10
|
},
|
|
11
11
|
props: {
|
|
12
12
|
controller: {
|
|
@@ -41,63 +41,54 @@ const H = {
|
|
|
41
41
|
"ecoGreenLight",
|
|
42
42
|
"ecoGreenDark",
|
|
43
43
|
"ecoLightMarigold",
|
|
44
|
-
"ecoStoneLight"
|
|
45
|
-
"ecoStoneDark",
|
|
46
|
-
"mint",
|
|
47
|
-
"dark"
|
|
44
|
+
"ecoStoneLight"
|
|
48
45
|
].indexOf(e) !== -1;
|
|
49
46
|
}
|
|
50
47
|
}
|
|
51
48
|
},
|
|
52
49
|
emits: ["tool-tip-visible"],
|
|
53
|
-
setup(e, { emit:
|
|
50
|
+
setup(e, { emit: u }) {
|
|
54
51
|
const {
|
|
55
52
|
modifiers: r,
|
|
56
|
-
showTooltip:
|
|
57
|
-
theme:
|
|
58
|
-
} =
|
|
53
|
+
showTooltip: s,
|
|
54
|
+
theme: c
|
|
55
|
+
} = L(e), d = i(() => ({
|
|
59
56
|
...r.value,
|
|
60
57
|
preventOverflow: {
|
|
61
58
|
...r.value.preventOverflow,
|
|
62
59
|
padding: 10
|
|
63
60
|
}
|
|
64
|
-
})),
|
|
65
|
-
|
|
61
|
+
})), h = w(null), g = () => typeof e.controller == "string" ? document.getElementById(e.controller) : e.controller, v = (t) => {
|
|
62
|
+
u("tool-tip-visible", t);
|
|
66
63
|
}, o = (t = !0) => {
|
|
67
|
-
const n =
|
|
64
|
+
const n = g();
|
|
68
65
|
if (n) {
|
|
69
|
-
const
|
|
70
|
-
n.dispatchEvent(new MouseEvent(
|
|
66
|
+
const T = t ? "mouseover" : "mouseout";
|
|
67
|
+
n.dispatchEvent(new MouseEvent(T, { bubbles: !0 }));
|
|
71
68
|
}
|
|
72
|
-
},
|
|
73
|
-
default:
|
|
74
|
-
ecoGreenLight:
|
|
75
|
-
ecoGreenDark:
|
|
76
|
-
ecoLightMarigold:
|
|
77
|
-
ecoStoneLight:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
dark: l
|
|
81
|
-
})[g.value]);
|
|
82
|
-
return M(h, (t) => {
|
|
69
|
+
}, y = i(() => ({
|
|
70
|
+
default: m,
|
|
71
|
+
ecoGreenLight: f,
|
|
72
|
+
ecoGreenDark: a,
|
|
73
|
+
ecoLightMarigold: p,
|
|
74
|
+
ecoStoneLight: l
|
|
75
|
+
})[c.value]);
|
|
76
|
+
return b(s, (t) => {
|
|
83
77
|
o(!!t);
|
|
84
78
|
}), {
|
|
85
|
-
defaultTheme:
|
|
86
|
-
greenLightTheme:
|
|
87
|
-
greenDarkTheme:
|
|
88
|
-
marigoldLightTheme:
|
|
89
|
-
stoneLightTheme:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
popperModifiers: v,
|
|
95
|
-
popperRef: T,
|
|
96
|
-
themeStyle: w,
|
|
79
|
+
defaultTheme: m,
|
|
80
|
+
greenLightTheme: f,
|
|
81
|
+
greenDarkTheme: a,
|
|
82
|
+
marigoldLightTheme: p,
|
|
83
|
+
stoneLightTheme: l,
|
|
84
|
+
handleKvPopperVisibility: v,
|
|
85
|
+
popperModifiers: d,
|
|
86
|
+
popperRef: h,
|
|
87
|
+
themeStyle: y,
|
|
97
88
|
triggerHover: o
|
|
98
89
|
};
|
|
99
90
|
}
|
|
100
91
|
};
|
|
101
92
|
export {
|
|
102
|
-
|
|
93
|
+
K as default
|
|
103
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.link-bar[data-v-
|
|
1
|
+
.link-bar[data-v-2e7def04]{display:flex;align-items:center;gap:.5rem}.link-bar__logo[data-v-2e7def04]{position:absolute;top:50%;left:50%;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:45.875rem){.link-bar[data-v-2e7def04]{display:grid;-moz-column-gap:1rem;column-gap:1rem;grid-template-areas:"logo lend right" "search search search";grid-template-columns:1fr auto auto;grid-template-rows:4rem auto;row-gap:.5rem}.link-bar__logo[data-v-2e7def04]{position:static;--tw-translate-x: 0;--tw-translate-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));grid-area:logo;justify-self:start}.link-bar__lend[data-v-2e7def04]{grid-area:lend}.link-bar__search[data-v-2e7def04]{grid-area:search;margin-bottom:.5rem}.link-bar__right[data-v-2e7def04]{grid-area:right}}@media(min-width:64rem){.link-bar[data-v-2e7def04]{-moz-column-gap:1.25rem;column-gap:1.25rem;grid-template-areas:"logo lend search right";grid-template-columns:auto auto 1fr auto;grid-template-rows:4rem}.link-bar__search[data-v-2e7def04]{margin-bottom:0}}.header-link[data-v-2e7def04]{cursor:pointer;padding-top:1rem;padding-bottom:1rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-2e7def04]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}.link-bar__basket-count-loader[data-v-2e7def04]{width:1.5ch;height:1.375em;height:1lh}
|
|
@@ -1,45 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as d, openBlock as o, createElementBlock as i, createElementVNode as
|
|
1
|
+
import x from "./LinkBar2.js";
|
|
2
|
+
import { resolveComponent as d, openBlock as o, createElementBlock as i, createElementVNode as l, withModifiers as b, createVNode as r, withCtx as k, createTextVNode as w, Fragment as f, renderList as L, toDisplayString as m, createCommentVNode as s, withDirectives as B, normalizeStyle as h, vShow as O, createBlock as y } from "vue";
|
|
3
3
|
import "./LinkBar.css";
|
|
4
4
|
import S from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const T = { class: "link-bar__right tw-flex tw-items-center tw-justify-end tw-ml-auto md:tw-ml-0 tw-gap-1 md:tw-gap-2 lg:tw-gap-2.5" }, D = ["href", "data-testid", "onClick"], U = ["href"], H = { class: "tw-hidden md:tw-flex tw-items-center" }, A = { class: "tw-bg-secondary tw-rounded-xs tw-py-0.5 tw-px-1 tw-mr-1 tw-leading-none
|
|
5
|
+
const T = { class: "link-bar__right tw-flex tw-items-center tw-justify-end tw-ml-auto md:tw-ml-0 tw-gap-1 md:tw-gap-2 lg:tw-gap-2.5" }, D = ["href", "data-testid", "onClick"], U = ["href"], H = { class: "tw-hidden md:tw-flex tw-items-center" }, A = { class: "tw-bg-secondary tw-rounded-xs tw-py-0.5 tw-px-1 tw-mr-1 tw-leading-none tw-flex tw-items-center tw-justify-center" }, I = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "link-bar__basket-count-loader",
|
|
8
|
+
"data-testid": "header-basket-skeleton"
|
|
9
|
+
}, K = { class: "tw-relative tw-flex md:tw-hidden tw-items-center tw-text-eco-green-4" }, N = {
|
|
6
10
|
key: 0,
|
|
7
11
|
class: "tw-absolute tw-w-4 tw-h-4 tw-pt-0.5 tw-flex tw-items-center tw-justify-center tw-text-white tw-text-small tw-font-medium tw-pointer-events-none"
|
|
8
|
-
},
|
|
12
|
+
}, E = { class: "tw-hidden md:tw-block" }, P = {
|
|
9
13
|
key: 0,
|
|
10
14
|
class: "tw-w-4 tw-h-3"
|
|
11
|
-
},
|
|
15
|
+
}, V = {
|
|
12
16
|
key: 1,
|
|
13
17
|
class: "tw-text-eco-green-4"
|
|
14
|
-
},
|
|
18
|
+
}, j = {
|
|
15
19
|
key: 3,
|
|
16
20
|
class: "tw-w-3 tw-h-3 tw-rounded-full tw-overflow-hidden",
|
|
17
21
|
"data-testid": "header-avatar-skeleton"
|
|
18
22
|
};
|
|
19
|
-
function
|
|
20
|
-
const v = d("kv-material-icon"),
|
|
23
|
+
function X(u, t, a, e, z, F) {
|
|
24
|
+
const v = d("kv-material-icon"), _ = d("kv-header-logo"), g = d("kv-header-dropdown-link"), M = d("search-bar"), c = d("kv-loading-placeholder"), C = d("kv-button"), p = d("kv-user-avatar");
|
|
21
25
|
return o(), i("div", {
|
|
22
26
|
class: "link-bar tw-min-h-[4rem] tw-font-medium tw-relative",
|
|
23
27
|
onTouchstart: t[12] || (t[12] = (...n) => e.handleEmptySpaceClick && e.handleEmptySpaceClick(...n))
|
|
24
28
|
}, [
|
|
25
|
-
|
|
29
|
+
l("button", {
|
|
26
30
|
type: "button",
|
|
27
31
|
"aria-label": "Open menu",
|
|
28
32
|
class: "header-link link-bar__hamburger tw-inline-flex md:tw-hidden",
|
|
29
33
|
onMouseover: t[0] || (t[0] = (n) => e.handleOnHover("menuButton", e.MobileMenu)),
|
|
30
34
|
onTouchstart: t[1] || (t[1] = b((n) => e.handleTouchStart("menuButton", e.MobileMenu), ["stop", "prevent"]))
|
|
31
35
|
}, [
|
|
32
|
-
|
|
36
|
+
r(v, { icon: e.mdiMenu }, null, 8, ["icon"])
|
|
33
37
|
], 32),
|
|
34
|
-
|
|
38
|
+
l("a", {
|
|
35
39
|
href: "/",
|
|
36
40
|
"aria-label": "Kiva home",
|
|
37
41
|
class: "link-bar__logo tw-px-1 tw-py-2 tw-cursor-pointer",
|
|
38
42
|
onClick: t[2] || (t[2] = (...n) => e.onLogoClick && e.onLogoClick(...n))
|
|
39
43
|
}, [
|
|
40
|
-
|
|
44
|
+
r(_)
|
|
41
45
|
]),
|
|
42
|
-
|
|
46
|
+
r(g, {
|
|
43
47
|
class: "link-bar__lend",
|
|
44
48
|
"ref-name": "lendButton",
|
|
45
49
|
href: e.lendUrl,
|
|
@@ -51,28 +55,28 @@ function j(h, t, a, e, X, z) {
|
|
|
51
55
|
onMouseleave: t[3] || (t[3] = (n) => e.handleMouseOut("lendButton")),
|
|
52
56
|
onUserTap: e.handleTouchStart
|
|
53
57
|
}, {
|
|
54
|
-
default:
|
|
58
|
+
default: k(() => t[13] || (t[13] = [
|
|
55
59
|
w(" Lend ")
|
|
56
60
|
])),
|
|
57
61
|
_: 1
|
|
58
62
|
}, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover", "onUserTap"]),
|
|
59
|
-
|
|
63
|
+
r(M, {
|
|
60
64
|
class: "link-bar__search tw-min-w-0 tw-hidden md:tw-block",
|
|
61
65
|
"search-suggestions": a.searchSuggestions,
|
|
62
66
|
"app-origin": a.appOrigin,
|
|
63
67
|
"is-mobile": a.isMobile,
|
|
64
|
-
onLoadSearchData: t[4] || (t[4] = (n) =>
|
|
65
|
-
onSearchSubmit: t[5] || (t[5] = (n) =>
|
|
68
|
+
onLoadSearchData: t[4] || (t[4] = (n) => u.$emit("load-search-data")),
|
|
69
|
+
onSearchSubmit: t[5] || (t[5] = (n) => u.$emit("search-submit", n))
|
|
66
70
|
}, null, 8, ["search-suggestions", "app-origin", "is-mobile"]),
|
|
67
|
-
|
|
68
|
-
(o(!0), i(
|
|
71
|
+
l("div", T, [
|
|
72
|
+
(o(!0), i(f, null, L(e.visiblePrimaryLinks, (n) => (o(), i("a", {
|
|
69
73
|
key: n.id,
|
|
70
74
|
href: n.href,
|
|
71
75
|
class: "header-link tw-hidden md:tw-block",
|
|
72
76
|
"data-testid": `header-link-${n.id}`,
|
|
73
|
-
onClick: (
|
|
77
|
+
onClick: (q) => e.onPrimaryClick(n)
|
|
74
78
|
}, m(n.label), 9, D))), 128)),
|
|
75
|
-
|
|
79
|
+
r(g, {
|
|
76
80
|
"ref-name": "aboutLink",
|
|
77
81
|
class: "tw-hidden md:tw-block",
|
|
78
82
|
"menu-component": e.AboutMenu,
|
|
@@ -84,7 +88,7 @@ function j(h, t, a, e, X, z) {
|
|
|
84
88
|
onMouseleave: t[6] || (t[6] = (n) => e.handleMouseOut("aboutLink")),
|
|
85
89
|
onUserTap: e.handleTouchStart
|
|
86
90
|
}, {
|
|
87
|
-
default:
|
|
91
|
+
default: k(() => t[14] || (t[14] = [
|
|
88
92
|
w(" About ")
|
|
89
93
|
])),
|
|
90
94
|
_: 1
|
|
@@ -96,37 +100,43 @@ function j(h, t, a, e, X, z) {
|
|
|
96
100
|
"data-testid": "header-login",
|
|
97
101
|
onClick: t[7] || (t[7] = (...n) => e.onLoginClick && e.onLoginClick(...n))
|
|
98
102
|
}, "Log in", 8, U)),
|
|
99
|
-
B(
|
|
100
|
-
style:
|
|
103
|
+
B(l("a", {
|
|
104
|
+
style: h(a.isBasketDataLoading ? { display: "var(--basket-display, flex)" } : void 0),
|
|
101
105
|
href: "/basket",
|
|
102
106
|
class: "header-link tw-flex tw-items-center",
|
|
103
107
|
"data-testid": "header-basket",
|
|
104
108
|
onClick: t[8] || (t[8] = (...n) => e.onBasketClick && e.onBasketClick(...n))
|
|
105
109
|
}, [
|
|
106
|
-
|
|
107
|
-
|
|
110
|
+
l("span", H, [
|
|
111
|
+
l("span", A, [
|
|
112
|
+
a.isBasketDataLoading ? (o(), i("span", I, [
|
|
113
|
+
r(c)
|
|
114
|
+
])) : (o(), i(f, { key: 1 }, [
|
|
115
|
+
w(m(a.basketCount), 1)
|
|
116
|
+
], 64))
|
|
117
|
+
]),
|
|
108
118
|
t[15] || (t[15] = w(" Basket "))
|
|
109
119
|
]),
|
|
110
|
-
|
|
111
|
-
a.isBasketDataLoading ? s("", !0) : (o(), i("span",
|
|
112
|
-
|
|
120
|
+
l("span", K, [
|
|
121
|
+
a.isBasketDataLoading ? s("", !0) : (o(), i("span", N, m(a.basketCount), 1)),
|
|
122
|
+
r(v, {
|
|
113
123
|
icon: e.mdiBriefcase,
|
|
114
124
|
class: "tw-w-4 tw-h-4 tw-pointer-events-none"
|
|
115
125
|
}, null, 8, ["icon"]),
|
|
116
|
-
t[16] || (t[16] =
|
|
126
|
+
t[16] || (t[16] = l("span", { class: "tw-sr-only" }, "Basket", -1))
|
|
117
127
|
])
|
|
118
128
|
], 4), [
|
|
119
129
|
[O, a.basketCount > 0 || a.isBasketDataLoading]
|
|
120
130
|
]),
|
|
121
|
-
|
|
122
|
-
|
|
131
|
+
l("div", E, [
|
|
132
|
+
r(C, {
|
|
123
133
|
variant: "secondary",
|
|
124
134
|
href: "/donate/supportus",
|
|
125
135
|
class: "tw-whitespace-nowrap",
|
|
126
136
|
"data-testid": "header-support-kiva",
|
|
127
137
|
onClick: e.onSupportKivaClick
|
|
128
138
|
}, {
|
|
129
|
-
default:
|
|
139
|
+
default: k(() => t[17] || (t[17] = [
|
|
130
140
|
w(" Support Kiva ")
|
|
131
141
|
])),
|
|
132
142
|
_: 1
|
|
@@ -137,29 +147,29 @@ function j(h, t, a, e, X, z) {
|
|
|
137
147
|
ref: "avatarMenu",
|
|
138
148
|
"data-testid": "header-avatar-menu",
|
|
139
149
|
class: "tw-flex tw-items-center tw-gap-1 tw-cursor-pointer tw-py-1",
|
|
140
|
-
style:
|
|
150
|
+
style: h(a.isUserDataLoading ? { display: "var(--user-loading-display, flex)" } : void 0),
|
|
141
151
|
onMouseenter: t[9] || (t[9] = (n) => e.handleOnHover("avatarMenu", e.MyKivaMenu, e.getAvatarMenuPosition(), e.getAvatarTriggerCenterX())),
|
|
142
152
|
onMouseleave: t[10] || (t[10] = (n) => e.handleMouseOut("avatarMenu")),
|
|
143
153
|
onTouchstart: t[11] || (t[11] = b((n) => e.handleTouchStart("avatarMenu", e.MyKivaMenu, e.getAvatarMenuPosition(), e.getAvatarTriggerCenterX()), ["stop"]))
|
|
144
154
|
}, [
|
|
145
|
-
a.isUserDataLoading ? (o(), i("div",
|
|
146
|
-
|
|
147
|
-
])) : (o(), i("span",
|
|
148
|
-
e.avatarMode === "esi" ? (o(),
|
|
155
|
+
a.isUserDataLoading ? (o(), i("div", P, [
|
|
156
|
+
r(c)
|
|
157
|
+
])) : (o(), i("span", V, m(e.formattedBalance), 1)),
|
|
158
|
+
e.avatarMode === "esi" ? (o(), y(v, {
|
|
149
159
|
key: 2,
|
|
150
160
|
icon: e.mdiAccountCircle,
|
|
151
161
|
class: "tw-w-3 tw-h-3",
|
|
152
162
|
"data-testid": "header-avatar-icon",
|
|
153
163
|
style: { display: "var(--user-avatar-legacy-display, inline-block)" }
|
|
154
164
|
}, null, 8, ["icon"])) : s("", !0),
|
|
155
|
-
e.avatarMode === "skeleton" ? (o(), i("div",
|
|
156
|
-
|
|
165
|
+
e.avatarMode === "skeleton" ? (o(), i("div", j, [
|
|
166
|
+
r(c)
|
|
157
167
|
])) : s("", !0),
|
|
158
|
-
e.avatarMode !== "skeleton" ? (o(),
|
|
168
|
+
e.avatarMode !== "skeleton" ? (o(), y(p, {
|
|
159
169
|
key: 4,
|
|
160
170
|
class: "tw-w-3 tw-h-3",
|
|
161
171
|
"data-testid": e.avatarMode === "esi" ? "header-avatar-esi" : null,
|
|
162
|
-
style:
|
|
172
|
+
style: h(e.avatarMode === "esi" ? { display: "var(--user-avatar-display, block)" } : void 0),
|
|
163
173
|
"lender-name": a.lenderName,
|
|
164
174
|
"lender-image-url": a.lenderImageUrl,
|
|
165
175
|
"show-css-placeholder": e.avatarMode === "esi",
|
|
@@ -169,7 +179,7 @@ function j(h, t, a, e, X, z) {
|
|
|
169
179
|
])
|
|
170
180
|
], 32);
|
|
171
181
|
}
|
|
172
|
-
const
|
|
182
|
+
const W = /* @__PURE__ */ S(x, [["render", X], ["__scopeId", "data-v-2e7def04"]]);
|
|
173
183
|
export {
|
|
174
|
-
|
|
184
|
+
W as default
|
|
175
185
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@babel/preset-react": "^7.24.7",
|
|
34
34
|
"@babel/preset-typescript": "^7.24.7",
|
|
35
35
|
"@figma/code-connect": "^1.4.9",
|
|
36
|
-
"@kiva/kv-tokens": "^
|
|
36
|
+
"@kiva/kv-tokens": "^5.0.0",
|
|
37
37
|
"@kiva/vite-plugin-vue-lib-css": "^2.0.0",
|
|
38
38
|
"@laynezh/vite-plugin-lib-assets": "^0.6.1",
|
|
39
39
|
"@mdi/js": "^7.4.47",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"dependencies": {
|
|
114
114
|
"fuse.js": "^7.1.0"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "60bd66047ae16262c92663f9725288266677bf96"
|
|
117
117
|
}
|