@kiva/kv-components 6.19.4 → 6.21.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/KvAtbModal.css +1 -1
- package/dist/vue/KvAtbModal.js +11 -11
- package/dist/vue/KvCartPill.js +11 -11
- package/dist/vue/KvSideSheet.js +195 -136
- package/package.json +2 -2
package/dist/vue/KvAtbModal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@media (min-width: 45.875rem){.cart-modal[data-v-
|
|
1
|
+
@media (min-width: 45.875rem){.cart-modal[data-v-9be640c2] div.container{right:var(--modal-right)!important;top:var(--modal-top)!important}}
|
package/dist/vue/KvAtbModal.js
CHANGED
|
@@ -110,11 +110,11 @@ const Y = {
|
|
|
110
110
|
oneLoanAwayCategory: p,
|
|
111
111
|
oneLoanAwayFilteredUrl: d,
|
|
112
112
|
milestonesProgress: S
|
|
113
|
-
} = N(g), w = j(0),
|
|
113
|
+
} = N(g), w = j(0), v = j(0), b = C(() => {
|
|
114
114
|
var t;
|
|
115
115
|
return ((t = n.value) == null ? void 0 : t.basketSize) ?? 0;
|
|
116
116
|
}), q = C(() => {
|
|
117
|
-
const t = `${window.innerWidth -
|
|
117
|
+
const t = `${window.innerWidth - v.value - 200}`, o = `${w.value}`;
|
|
118
118
|
return { right: t, top: o };
|
|
119
119
|
}), c = C(() => {
|
|
120
120
|
var t;
|
|
@@ -122,19 +122,19 @@ const Y = {
|
|
|
122
122
|
}), A = C(() => {
|
|
123
123
|
var t;
|
|
124
124
|
return !((t = l.value) != null && t.my);
|
|
125
|
-
}),
|
|
125
|
+
}), f = C(() => {
|
|
126
126
|
var t, o, a;
|
|
127
127
|
return y.value && (A.value && !M.value || !A.value && !((a = (o = (t = l.value) == null ? void 0 : t.my) == null ? void 0 : o.loans) != null && a.totalCount)) && b.value === 1;
|
|
128
|
-
}), Z = C(() => p.value && d.value && !
|
|
128
|
+
}), Z = C(() => p.value && d.value && !f.value), _ = C(() => Object.values(S.value).reduce((t, o) => t + (o > 0 ? o : 0), 0)), H = C(() => {
|
|
129
129
|
var o, a, s;
|
|
130
|
-
if (
|
|
130
|
+
if (f.value) {
|
|
131
131
|
const r = `Supporting ${c.value} helps`;
|
|
132
132
|
return ((o = n.value) == null ? void 0 : o.borrowerCount) > 1 || (a = n.value) != null && a.themes.includes("Social Enterprise") ? `${r} them invest in themselves.` : ((s = n.value) == null ? void 0 : s.gender) === "male" ? `${r} him invest in himself.` : `${r} her invest in herself.`;
|
|
133
133
|
}
|
|
134
134
|
if (Z.value)
|
|
135
|
-
return "You’re close to your next
|
|
136
|
-
const t = _.value > 1 ? `${_.value}
|
|
137
|
-
return c.value ? `Supporting ${c.value} will
|
|
135
|
+
return "You’re close to your next achievement!";
|
|
136
|
+
const t = _.value > 1 ? `${_.value} achievements` : "your next achievement";
|
|
137
|
+
return c.value ? `Supporting ${c.value} will reach ${t}!` : "Supporting this loan reaches an achievement!";
|
|
138
138
|
}), P = (t) => {
|
|
139
139
|
t === "view-basket" ? i("close-redirect", { type: t, path: "/basket" }) : t === "support-another" && d.value && i("close-redirect", { type: t, path: d.value });
|
|
140
140
|
}, K = (t) => {
|
|
@@ -145,7 +145,7 @@ const Y = {
|
|
|
145
145
|
let a = [...document.querySelectorAll('[data-testid="header-basket"]')], s = a.find((L) => L == null ? void 0 : L.clientHeight);
|
|
146
146
|
s || (a = [...document.querySelectorAll('[data-testid="header-about"]')], s = a.find((L) => L == null ? void 0 : L.clientHeight));
|
|
147
147
|
const r = (s == null ? void 0 : s.getBoundingClientRect()) ?? null;
|
|
148
|
-
r && (r == null ? void 0 : r.right) !==
|
|
148
|
+
r && (r == null ? void 0 : r.right) !== v.value && (v.value = r == null ? void 0 : r.right), o && (o == null ? void 0 : o.bottom) !== w.value && (w.value = o == null ? void 0 : o.bottom);
|
|
149
149
|
}, h = I(x, 100);
|
|
150
150
|
return V(() => {
|
|
151
151
|
x(), window.addEventListener("scroll", h), window.addEventListener("resize", h);
|
|
@@ -154,7 +154,7 @@ const Y = {
|
|
|
154
154
|
}), {
|
|
155
155
|
modalPosition: q,
|
|
156
156
|
basketCount: b,
|
|
157
|
-
isFirstLoan:
|
|
157
|
+
isFirstLoan: f,
|
|
158
158
|
borrowerName: c,
|
|
159
159
|
showOneAway: Z,
|
|
160
160
|
pillMsg: H,
|
|
@@ -387,7 +387,7 @@ function e1(g, i, n, l, M, y) {
|
|
|
387
387
|
_: 1
|
|
388
388
|
}, 8, ["style", "visible", "photo-path", "basket-count", "category-name", "onCartModalClosed"])) : k("", !0);
|
|
389
389
|
}
|
|
390
|
-
const i1 = /* @__PURE__ */ W(Y, [["render", e1], ["__scopeId", "data-v-
|
|
390
|
+
const i1 = /* @__PURE__ */ W(Y, [["render", e1], ["__scopeId", "data-v-9be640c2"]]);
|
|
391
391
|
export {
|
|
392
392
|
i1 as default
|
|
393
393
|
};
|
package/dist/vue/KvCartPill.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toRefs as
|
|
1
|
+
import { toRefs as a, computed as n, openBlock as i, createElementBlock as c, normalizeClass as u, renderSlot as p, createElementVNode as m, toDisplayString as f } from "vue";
|
|
2
2
|
import d from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const w = {
|
|
4
4
|
props: {
|
|
@@ -28,30 +28,30 @@ const w = {
|
|
|
28
28
|
borrowerName: o,
|
|
29
29
|
milestonesNumber: t,
|
|
30
30
|
isCloseNextMilestone: s
|
|
31
|
-
} =
|
|
31
|
+
} = a(e);
|
|
32
32
|
return {
|
|
33
|
-
pillCopy:
|
|
33
|
+
pillCopy: n(() => {
|
|
34
34
|
if (e.customMessage)
|
|
35
35
|
return e.customMessage;
|
|
36
36
|
if (s.value)
|
|
37
|
-
return "You’re close to your next
|
|
38
|
-
const l = t.value > 1 ? `${t.value}
|
|
39
|
-
return o.value ? `Supporting ${o.value} will
|
|
37
|
+
return "You’re close to your next achievement!";
|
|
38
|
+
const l = t.value > 1 ? `${t.value} achievements` : "your next achievement";
|
|
39
|
+
return o.value ? `Supporting ${o.value} will reach ${l}!` : "Supporting this loan reaches an achievement!";
|
|
40
40
|
})
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
}, y = { class: "tw-text-wrap" };
|
|
44
44
|
function g(e, o, t, s, r, l) {
|
|
45
|
-
return i(),
|
|
46
|
-
class:
|
|
45
|
+
return i(), c("div", {
|
|
46
|
+
class: u(["tw-w-max tw-flex tw-items-center tw-gap-1 tw-px-1 tw-py-0.5 tw-rounded", {
|
|
47
47
|
"tw-text-small tw-bg-secondary": t.showBg
|
|
48
48
|
}])
|
|
49
49
|
}, [
|
|
50
|
-
|
|
50
|
+
p(e.$slots, "icon"),
|
|
51
51
|
m("p", y, f(s.pillCopy), 1)
|
|
52
52
|
], 2);
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const x = /* @__PURE__ */ d(w, [["render", g]]);
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
x as default
|
|
57
57
|
};
|
package/dist/vue/KvSideSheet.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { toRefs as
|
|
2
|
-
import { mdiArrowLeft as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { toRefs as J, ref as w, reactive as P, computed as I, onMounted as Q, onUnmounted as E, watch as R, resolveComponent as W, openBlock as g, createElementBlock as p, normalizeClass as k, withModifiers as X, createElementVNode as c, normalizeStyle as H, createVNode as z, createCommentVNode as x, toDisplayString as Y, renderSlot as N, nextTick as Z } from "vue";
|
|
2
|
+
import { mdiArrowLeft as $, mdiClose as ee, mdiExportVariant as te } from "@mdi/js";
|
|
3
|
+
import oe from "./KvMaterialIcon.js";
|
|
4
|
+
import ie from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const ne = {
|
|
6
6
|
components: {
|
|
7
|
-
KvMaterialIcon:
|
|
7
|
+
KvMaterialIcon: oe
|
|
8
8
|
},
|
|
9
9
|
props: {
|
|
10
10
|
/**
|
|
@@ -62,208 +62,267 @@ const $ = {
|
|
|
62
62
|
headline: {
|
|
63
63
|
type: String,
|
|
64
64
|
default: ""
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* The CSS width of the SideSheet, either as a string (e.g., '33.33%') or an object with
|
|
68
|
+
* breakpoint-specific widths (e.g., { default: '100%', lg: '50%' }). Supports responsive
|
|
69
|
+
* design with breakpoints: default, sm, md, lg, xl, 2xl
|
|
70
|
+
* */
|
|
71
|
+
widthDimensions: {
|
|
72
|
+
type: [String, Object],
|
|
73
|
+
default: () => ({ default: "100%", md: "50%" }),
|
|
74
|
+
validator: (l) => typeof l == "string" ? /^(\d+px|[\d.]+%|auto|inherit|initial)$/.test(l) : typeof l == "object" ? Object.keys(l).every((s) => ["default", "sm", "md", "lg", "xl", "2xl"].includes(s) && /^(\d+px|[\d.]+%|auto|inherit|initial)$/.test(l[s])) : !1
|
|
65
75
|
}
|
|
66
76
|
},
|
|
67
77
|
emits: ["side-sheet-closed", "go-to-link"],
|
|
68
|
-
setup(
|
|
78
|
+
setup(l, { emit: s, slots: a }) {
|
|
69
79
|
const {
|
|
70
|
-
visible:
|
|
71
|
-
kvTrackFunction:
|
|
72
|
-
trackEventCategory:
|
|
73
|
-
animationSourceElement:
|
|
74
|
-
|
|
80
|
+
visible: t,
|
|
81
|
+
kvTrackFunction: _,
|
|
82
|
+
trackEventCategory: K,
|
|
83
|
+
animationSourceElement: u,
|
|
84
|
+
widthDimensions: i
|
|
85
|
+
} = J(l), d = w(!1), b = w({}), f = w({}), T = w(null), m = w(null), v = w(null), V = w(window.innerHeight), h = P({
|
|
75
86
|
headline: 0,
|
|
76
87
|
controls: 0
|
|
77
|
-
}),
|
|
78
|
-
const
|
|
79
|
-
return Math.max(
|
|
80
|
-
}),
|
|
88
|
+
}), U = I(() => {
|
|
89
|
+
const e = V.value - h.headline - h.controls;
|
|
90
|
+
return Math.max(e, 0);
|
|
91
|
+
}), A = (e, n) => {
|
|
81
92
|
let o;
|
|
82
|
-
return (...
|
|
83
|
-
clearTimeout(o), o = setTimeout(() =>
|
|
93
|
+
return (...y) => {
|
|
94
|
+
clearTimeout(o), o = setTimeout(() => e(...y), n);
|
|
84
95
|
};
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
var
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
|
|
96
|
+
}, S = () => {
|
|
97
|
+
V.value = window.innerHeight, setTimeout(() => {
|
|
98
|
+
Z(() => {
|
|
99
|
+
var e;
|
|
100
|
+
if (v.value) {
|
|
101
|
+
const n = v.value.getBoundingClientRect();
|
|
102
|
+
h.headline = n.height;
|
|
92
103
|
} else
|
|
93
|
-
|
|
94
|
-
if ((
|
|
95
|
-
const
|
|
96
|
-
|
|
104
|
+
h.headline = 0;
|
|
105
|
+
if ((e = a.controls) != null && e.call(a) && m.value) {
|
|
106
|
+
const n = m.value.getBoundingClientRect();
|
|
107
|
+
h.controls = n.height;
|
|
97
108
|
} else
|
|
98
|
-
|
|
109
|
+
h.controls = 0;
|
|
99
110
|
});
|
|
100
111
|
}, 300);
|
|
101
|
-
},
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
...
|
|
112
|
+
}, B = A(S, 100), L = () => {
|
|
113
|
+
const e = "tw-overflow-hidden";
|
|
114
|
+
d.value ? document.body.classList.add(e) : document.body.classList.remove(e);
|
|
115
|
+
}, M = () => {
|
|
116
|
+
d.value = !1, L(), _.value(K.value, "click", "side-sheet-closed"), u.value && (f.value = {
|
|
117
|
+
...b.value,
|
|
107
118
|
transition: "all 0.5s ease-in-out"
|
|
108
119
|
}), setTimeout(() => {
|
|
109
|
-
|
|
110
|
-
}, 700), document.removeEventListener("keyup",
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
(
|
|
120
|
+
s("side-sheet-closed");
|
|
121
|
+
}, 700), document.removeEventListener("keyup", j);
|
|
122
|
+
}, G = () => {
|
|
123
|
+
s("go-to-link");
|
|
124
|
+
}, j = (e) => {
|
|
125
|
+
(e == null ? void 0 : e.key) === "Escape" && M();
|
|
115
126
|
};
|
|
116
|
-
|
|
127
|
+
Q(() => {
|
|
117
128
|
if (setTimeout(() => {
|
|
118
|
-
|
|
119
|
-
}, 100),
|
|
120
|
-
const
|
|
121
|
-
|
|
129
|
+
S();
|
|
130
|
+
}, 100), m.value) {
|
|
131
|
+
const e = new ResizeObserver(B);
|
|
132
|
+
e.observe(m.value), E(() => e.disconnect());
|
|
122
133
|
}
|
|
123
|
-
if (
|
|
124
|
-
const
|
|
125
|
-
|
|
134
|
+
if (v.value) {
|
|
135
|
+
const e = new ResizeObserver(B);
|
|
136
|
+
e.observe(v.value), E(() => e.disconnect());
|
|
126
137
|
}
|
|
127
|
-
window.addEventListener("resize",
|
|
128
|
-
}),
|
|
129
|
-
var
|
|
130
|
-
return (
|
|
138
|
+
window.addEventListener("resize", B), E(() => window.removeEventListener("resize", B));
|
|
139
|
+
}), R(() => {
|
|
140
|
+
var e;
|
|
141
|
+
return (e = a.controls) == null ? void 0 : e.call(a);
|
|
131
142
|
}, () => {
|
|
132
143
|
setTimeout(() => {
|
|
133
|
-
|
|
144
|
+
S();
|
|
134
145
|
}, 100);
|
|
135
|
-
}, { deep: !0, immediate: !0 })
|
|
136
|
-
|
|
137
|
-
if (
|
|
138
|
-
|
|
139
|
-
|
|
146
|
+
}, { deep: !0, immediate: !0 });
|
|
147
|
+
const q = I(() => {
|
|
148
|
+
if (!d.value)
|
|
149
|
+
return {};
|
|
150
|
+
if (typeof i.value == "string")
|
|
151
|
+
return { width: i.value };
|
|
152
|
+
const n = ["sm", "md", "lg", "xl", "2xl"].find((o) => i.value[o]);
|
|
153
|
+
return { width: i.value[n] || i.value.default || "100%" };
|
|
154
|
+
});
|
|
155
|
+
R([t, i], ([e]) => {
|
|
156
|
+
var n;
|
|
157
|
+
if (e) {
|
|
158
|
+
document.addEventListener("keyup", j), setTimeout(() => {
|
|
159
|
+
d.value = !0, L(), S();
|
|
140
160
|
}, 100);
|
|
141
|
-
const o = (
|
|
142
|
-
|
|
161
|
+
const o = (n = u.value) == null ? void 0 : n.getBoundingClientRect(), y = (o == null ? void 0 : o.top) ?? 0, O = (o == null ? void 0 : o.left) ?? 0, r = (o == null ? void 0 : o.width) ?? 0, C = (o == null ? void 0 : o.height) ?? 0;
|
|
162
|
+
y || O || r || C ? (b.value = {
|
|
143
163
|
position: "fixed",
|
|
144
|
-
top: `${
|
|
145
|
-
width: `${
|
|
146
|
-
height: `${
|
|
147
|
-
},
|
|
148
|
-
...
|
|
164
|
+
top: `${y}px`,
|
|
165
|
+
width: `${r}px`,
|
|
166
|
+
height: `${C}px`
|
|
167
|
+
}, f.value = {
|
|
168
|
+
...b.value,
|
|
149
169
|
transition: "none"
|
|
150
170
|
}, setTimeout(() => {
|
|
151
|
-
|
|
171
|
+
f.value = {
|
|
152
172
|
top: "0",
|
|
153
|
-
width: "100%",
|
|
154
173
|
height: "100%",
|
|
155
174
|
transition: "all 0.5s ease-in-out"
|
|
156
175
|
};
|
|
157
|
-
}, 10)) :
|
|
176
|
+
}, 10)) : f.value = {
|
|
177
|
+
height: "100%"
|
|
178
|
+
};
|
|
158
179
|
} else
|
|
159
|
-
|
|
180
|
+
d.value = !1, L(), document.removeEventListener("keyup", j), f.value = u.value ? {
|
|
181
|
+
...b.value,
|
|
182
|
+
transition: "all 0.5s ease-in-out"
|
|
183
|
+
} : {};
|
|
184
|
+
});
|
|
185
|
+
const D = () => {
|
|
186
|
+
if (typeof i.value == "object" && T.value) {
|
|
187
|
+
const e = "side-sheet-styles";
|
|
188
|
+
let n = document.getElementById(e);
|
|
189
|
+
n || (n = document.createElement("style"), n.id = e, document.head.appendChild(n));
|
|
190
|
+
const o = {
|
|
191
|
+
sm: "640px",
|
|
192
|
+
md: "768px",
|
|
193
|
+
lg: "1024px",
|
|
194
|
+
xl: "1280px",
|
|
195
|
+
"2xl": "1536px"
|
|
196
|
+
}, O = Object.keys(i.value).filter((r) => r !== "default").sort((r, C) => {
|
|
197
|
+
const F = ["sm", "md", "lg", "xl", "2xl"];
|
|
198
|
+
return F.indexOf(r) - F.indexOf(C);
|
|
199
|
+
}).map((r) => `
|
|
200
|
+
@media (min-width: ${o[r]}) {
|
|
201
|
+
#side-sheet-${l.trackEventCategory || "default"} {
|
|
202
|
+
width: ${i.value[r]} !important;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
`).join("");
|
|
206
|
+
n.textContent = O, T.value.id = `side-sheet-${l.trackEventCategory || "default"}`, E(() => {
|
|
207
|
+
n && n.remove();
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
return R(i, () => {
|
|
212
|
+
d.value && D();
|
|
213
|
+
}, { immediate: !0 }), R(d, (e) => {
|
|
214
|
+
e && D();
|
|
160
215
|
}), {
|
|
161
|
-
closeSideSheet:
|
|
162
|
-
contentHeight:
|
|
163
|
-
controlsRef:
|
|
164
|
-
headlineRef:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
216
|
+
closeSideSheet: M,
|
|
217
|
+
contentHeight: U,
|
|
218
|
+
controlsRef: m,
|
|
219
|
+
headlineRef: v,
|
|
220
|
+
sideSheetRef: T,
|
|
221
|
+
sideSheetStyles: q,
|
|
222
|
+
goToLink: G,
|
|
223
|
+
mdiArrowLeft: $,
|
|
224
|
+
mdiClose: ee,
|
|
225
|
+
mdiExportVariant: te,
|
|
226
|
+
modalStyles: f,
|
|
227
|
+
open: d
|
|
171
228
|
};
|
|
172
229
|
}
|
|
173
|
-
},
|
|
174
|
-
function
|
|
175
|
-
const
|
|
176
|
-
return
|
|
230
|
+
}, le = { class: "tw-flex tw-gap-1.5" }, se = { key: 1 }, ae = { class: "tw-flex tw-gap-1.5" };
|
|
231
|
+
function re(l, s, a, t, _, K) {
|
|
232
|
+
const u = W("kv-material-icon");
|
|
233
|
+
return a.visible ? (g(), p("div", {
|
|
177
234
|
key: 0,
|
|
178
|
-
class:
|
|
179
|
-
"tw-bg-opacity-0 tw-delay-300": !
|
|
180
|
-
"tw-bg-opacity-low":
|
|
235
|
+
class: k(["tw-block lg:tw-mt-0 tw-fixed tw-inset-0 tw-bg-black tw-transition-all md:tw-duration-150 tw-z-modal", {
|
|
236
|
+
"tw-bg-opacity-0 tw-delay-300": !t.open,
|
|
237
|
+
"tw-bg-opacity-low": t.open
|
|
181
238
|
}]),
|
|
182
|
-
onClick:
|
|
239
|
+
onClick: s[3] || (s[3] = X((...i) => t.closeSideSheet && t.closeSideSheet(...i), ["self"]))
|
|
183
240
|
}, [
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
"
|
|
188
|
-
"tw-
|
|
189
|
-
|
|
241
|
+
c("div", {
|
|
242
|
+
ref: "sideSheetRef",
|
|
243
|
+
class: k(["tw-fixed tw-right-0 tw-transition-all tw-duration-300 tw-bg-white tw-overflow-y-auto", {
|
|
244
|
+
"tw-w-0 tw-delay-200 tw-opacity-0": !t.open,
|
|
245
|
+
"tw-opacity-full": t.open,
|
|
246
|
+
"tw-h-full": l.$slots.controls
|
|
247
|
+
}]),
|
|
248
|
+
style: H(t.sideSheetStyles)
|
|
190
249
|
}, [
|
|
191
|
-
|
|
250
|
+
c("div", {
|
|
192
251
|
class: "tw-flex tw-flex-col tw-h-full",
|
|
193
|
-
style:
|
|
252
|
+
style: H(t.modalStyles)
|
|
194
253
|
}, [
|
|
195
|
-
|
|
254
|
+
c("div", {
|
|
196
255
|
ref: "headlineRef",
|
|
197
|
-
class:
|
|
198
|
-
"tw-opacity-0": !
|
|
199
|
-
"tw-opacity-full":
|
|
200
|
-
"tw-border-b":
|
|
256
|
+
class: k(["tw-flex tw-justify-between tw-transition-opacity tw-duration-200 tw-px-3 tw-py-2 tw-border-tertiary", {
|
|
257
|
+
"tw-opacity-0": !t.open,
|
|
258
|
+
"tw-opacity-full": t.open,
|
|
259
|
+
"tw-border-b": a.showHeadlineBorder
|
|
201
260
|
}])
|
|
202
261
|
}, [
|
|
203
|
-
|
|
204
|
-
|
|
262
|
+
c("div", le, [
|
|
263
|
+
a.showBackButton ? (g(), p("button", {
|
|
205
264
|
key: 0,
|
|
206
265
|
class: "hover:tw-text-action-highlight tw-flex tw-items-center tw-justify-center",
|
|
207
|
-
onClick:
|
|
266
|
+
onClick: s[0] || (s[0] = (...i) => t.closeSideSheet && t.closeSideSheet(...i))
|
|
208
267
|
}, [
|
|
209
|
-
|
|
268
|
+
z(u, {
|
|
210
269
|
class: "tw-w-3 tw-h-3",
|
|
211
|
-
icon:
|
|
270
|
+
icon: t.mdiArrowLeft
|
|
212
271
|
}, null, 8, ["icon"])
|
|
213
|
-
])) :
|
|
214
|
-
|
|
272
|
+
])) : x("", !0),
|
|
273
|
+
a.headline ? (g(), p("h2", se, Y(a.headline), 1)) : x("", !0)
|
|
215
274
|
]),
|
|
216
|
-
|
|
217
|
-
|
|
275
|
+
c("div", ae, [
|
|
276
|
+
a.showGoToLink ? (g(), p("button", {
|
|
218
277
|
key: 0,
|
|
219
278
|
class: "hover:tw-text-action-highlight tw-flex tw-items-center tw-justify-center",
|
|
220
|
-
onClick:
|
|
279
|
+
onClick: s[1] || (s[1] = (...i) => t.goToLink && t.goToLink(...i))
|
|
221
280
|
}, [
|
|
222
|
-
|
|
281
|
+
z(u, {
|
|
223
282
|
class: "tw-w-3 tw-h-3",
|
|
224
|
-
icon:
|
|
283
|
+
icon: t.mdiExportVariant
|
|
225
284
|
}, null, 8, ["icon"])
|
|
226
|
-
])) :
|
|
227
|
-
|
|
285
|
+
])) : x("", !0),
|
|
286
|
+
c("button", {
|
|
228
287
|
class: "hover:tw-text-action-highlight tw-flex tw-items-center tw-justify-center",
|
|
229
|
-
onClick:
|
|
288
|
+
onClick: s[2] || (s[2] = (...i) => t.closeSideSheet && t.closeSideSheet(...i))
|
|
230
289
|
}, [
|
|
231
|
-
|
|
290
|
+
z(u, {
|
|
232
291
|
class: "tw-w-3 tw-h-3",
|
|
233
|
-
icon:
|
|
292
|
+
icon: t.mdiClose
|
|
234
293
|
}, null, 8, ["icon"])
|
|
235
294
|
])
|
|
236
295
|
])
|
|
237
296
|
], 2),
|
|
238
|
-
|
|
297
|
+
c("div", {
|
|
239
298
|
class: "tw-overflow-y-auto tw-overscroll-y-contain",
|
|
240
|
-
style:
|
|
299
|
+
style: H({ height: t.contentHeight + "px" })
|
|
241
300
|
}, [
|
|
242
|
-
|
|
243
|
-
class:
|
|
244
|
-
"tw-opacity-0": !
|
|
245
|
-
"tw-opacity-full":
|
|
301
|
+
c("div", {
|
|
302
|
+
class: k(["tw-p-2 tw-transition-opacity tw-duration-200", {
|
|
303
|
+
"tw-opacity-0": !t.open,
|
|
304
|
+
"tw-opacity-full": t.open
|
|
246
305
|
}])
|
|
247
306
|
}, [
|
|
248
|
-
|
|
307
|
+
N(l.$slots, "default")
|
|
249
308
|
], 2)
|
|
250
309
|
], 4),
|
|
251
|
-
|
|
310
|
+
l.$slots.controls ? (g(), p("div", {
|
|
252
311
|
key: 0,
|
|
253
312
|
ref: "controlsRef",
|
|
254
|
-
class:
|
|
255
|
-
"tw-opacity-0": !
|
|
256
|
-
"tw-opacity-full":
|
|
313
|
+
class: k(["tw-absolute tw-bottom-0 tw-w-full tw-border-t tw-border-tertiary tw-bg-white tw-transition-opacity tw-duration-200", {
|
|
314
|
+
"tw-opacity-0": !t.open,
|
|
315
|
+
"tw-opacity-full": t.open
|
|
257
316
|
}]),
|
|
258
317
|
style: { "z-index": "999" }
|
|
259
318
|
}, [
|
|
260
|
-
|
|
261
|
-
], 2)) :
|
|
319
|
+
N(l.$slots, "controls")
|
|
320
|
+
], 2)) : x("", !0)
|
|
262
321
|
], 4)
|
|
263
|
-
],
|
|
264
|
-
], 2)) :
|
|
322
|
+
], 6)
|
|
323
|
+
], 2)) : x("", !0);
|
|
265
324
|
}
|
|
266
|
-
const
|
|
325
|
+
const fe = /* @__PURE__ */ ie(ne, [["render", re]]);
|
|
267
326
|
export {
|
|
268
|
-
|
|
327
|
+
fe as default
|
|
269
328
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.21.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": "
|
|
114
|
+
"gitHead": "f15221e0afa6a6f02148a46f9f563e60c01fd0e8"
|
|
115
115
|
}
|