@situaction/traq-ui-ste 1.2.18 → 1.2.19
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,37 +1,40 @@
|
|
|
1
|
-
import { jsxs as ie, jsx as
|
|
2
|
-
import
|
|
3
|
-
import '../../styles/Carousel.css';const
|
|
4
|
-
root:
|
|
5
|
-
viewport:
|
|
6
|
-
dragEnabled:
|
|
1
|
+
import { jsxs as ie, jsx as p, Fragment as De } from "react/jsx-runtime";
|
|
2
|
+
import $e, { forwardRef as We, useMemo as ue, useRef as l, useState as F, useEffect as q, useCallback as i, useImperativeHandle as Ee } from "react";
|
|
3
|
+
import '../../styles/Carousel.css';const Fe = "_root_zgsjf_6", qe = "_viewport_zgsjf_11", He = "_dragEnabled_zgsjf_27", Oe = "_dragging_zgsjf_32", Xe = "_slide_zgsjf_39", Ve = "_navButtonCtn_zgsjf_46", Ke = "_navButton_zgsjf_46", Ue = "_defaultBtn_zgsjf_64", Ye = "_navPrev_zgsjf_81", Ge = "_navNext_zgsjf_86", f = {
|
|
4
|
+
root: Fe,
|
|
5
|
+
viewport: qe,
|
|
6
|
+
dragEnabled: He,
|
|
7
7
|
dragging: Oe,
|
|
8
8
|
slide: Xe,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
navButtonCtn: Ve,
|
|
10
|
+
navButton: Ke,
|
|
11
|
+
defaultBtn: Ue,
|
|
12
|
+
navPrev: Ye,
|
|
13
|
+
navNext: Ge
|
|
14
|
+
}, k = (...P) => P.filter(Boolean).join(" "), Ze = We(
|
|
13
15
|
({
|
|
14
|
-
children:
|
|
16
|
+
children: P,
|
|
15
17
|
className: le,
|
|
16
18
|
viewportClassName: fe,
|
|
17
19
|
slideClassName: de,
|
|
18
|
-
style:
|
|
20
|
+
style: ve,
|
|
19
21
|
slideSize: me = "30%",
|
|
20
|
-
gap:
|
|
21
|
-
align:
|
|
22
|
+
gap: pe = 12,
|
|
23
|
+
align: h = "center",
|
|
22
24
|
showArrows: ge = !0,
|
|
23
|
-
dragEnabled:
|
|
25
|
+
dragEnabled: N = !0,
|
|
24
26
|
snapOnRelease: J = !0,
|
|
25
|
-
keyboardNavigation:
|
|
26
|
-
|
|
27
|
+
keyboardNavigation: he = !0,
|
|
28
|
+
btnGradientColor: we,
|
|
29
|
+
step: _e = 1,
|
|
27
30
|
initialIndex: Q = 0,
|
|
28
|
-
loop:
|
|
31
|
+
loop: R = !1,
|
|
29
32
|
ariaLabel: Z = "Carousel",
|
|
30
33
|
iconLeft: xe,
|
|
31
34
|
iconRight: Ie,
|
|
32
|
-
onIndexChange:
|
|
33
|
-
},
|
|
34
|
-
const w = ue(() =>
|
|
35
|
+
onIndexChange: H
|
|
36
|
+
}, Le) => {
|
|
37
|
+
const w = ue(() => $e.Children.toArray(P), [P]), s = w.length, c = R && s > 1, S = Math.max(1, Math.min(_e, Math.max(1, s))), v = c ? s : 0, _ = ue(() => {
|
|
35
38
|
if (!c)
|
|
36
39
|
return w.map((n, o) => ({
|
|
37
40
|
key: `real-${o}`,
|
|
@@ -56,82 +59,82 @@ import '../../styles/Carousel.css';const Be = "_root_36mqp_6", $e = "_viewport_3
|
|
|
56
59
|
isClone: !0
|
|
57
60
|
}));
|
|
58
61
|
return [...e, ...t, ...r];
|
|
59
|
-
}, [c, w]),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}, [
|
|
62
|
+
}, [c, w]), O = _.length, a = l(null), x = l([]), [be, Ce] = F(0), y = l(0), [Ne, ee] = F(!1), [Re, te] = F(!1), I = l(!1), re = l(0), X = l(0), V = l(!1), K = l(!1), [ye, ne] = F(!1), M = l(H);
|
|
63
|
+
q(() => {
|
|
64
|
+
M.current = H;
|
|
65
|
+
}, [H]);
|
|
63
66
|
const m = i((e) => {
|
|
64
67
|
var t;
|
|
65
|
-
|
|
68
|
+
y.current = e, Ce(e), (t = M.current) == null || t.call(M, e);
|
|
66
69
|
}, []), oe = i((e) => {
|
|
67
70
|
const t = a.current;
|
|
68
71
|
t && (t.style.scrollSnapType = e ? "x mandatory" : "none", t.style.scrollBehavior = e ? "smooth" : "auto");
|
|
69
|
-
}, []),
|
|
70
|
-
(e, t) =>
|
|
71
|
-
[
|
|
72
|
-
),
|
|
72
|
+
}, []), z = i(
|
|
73
|
+
(e, t) => h === "center" ? t.offsetLeft - (e.clientWidth - t.offsetWidth) / 2 : t.offsetLeft,
|
|
74
|
+
[h]
|
|
75
|
+
), L = i(
|
|
73
76
|
(e, t = "smooth") => {
|
|
74
77
|
const r = a.current, n = x.current[e];
|
|
75
78
|
if (!r || !n) return;
|
|
76
|
-
const o =
|
|
79
|
+
const o = z(r, n);
|
|
77
80
|
r.scrollTo({ left: o, behavior: t });
|
|
78
81
|
},
|
|
79
|
-
[
|
|
80
|
-
),
|
|
81
|
-
(e) => s === 0 ? 0 :
|
|
82
|
-
[
|
|
83
|
-
),
|
|
84
|
-
(e) => c ?
|
|
85
|
-
[c,
|
|
86
|
-
),
|
|
82
|
+
[z]
|
|
83
|
+
), j = i(
|
|
84
|
+
(e) => s === 0 ? 0 : R ? (e % s + s) % s : Math.max(0, Math.min(s - 1, e)),
|
|
85
|
+
[R, s]
|
|
86
|
+
), A = i(
|
|
87
|
+
(e) => c ? v + e : e,
|
|
88
|
+
[c, v]
|
|
89
|
+
), b = i(
|
|
87
90
|
(e, t = "smooth") => {
|
|
88
|
-
const r =
|
|
89
|
-
|
|
91
|
+
const r = j(e), n = A(r);
|
|
92
|
+
L(n, t), m(r);
|
|
90
93
|
},
|
|
91
|
-
[
|
|
92
|
-
),
|
|
94
|
+
[j, A, L, m]
|
|
95
|
+
), T = i(() => {
|
|
93
96
|
const e = a.current;
|
|
94
|
-
if (!e ||
|
|
95
|
-
const t = e.scrollLeft, r =
|
|
97
|
+
if (!e || O === 0) return 0;
|
|
98
|
+
const t = e.scrollLeft, r = h === "center" ? t + e.clientWidth / 2 : t;
|
|
96
99
|
let n = 0, o = Number.POSITIVE_INFINITY;
|
|
97
|
-
for (let
|
|
98
|
-
const u = x.current[
|
|
100
|
+
for (let d = 0; d < O; d++) {
|
|
101
|
+
const u = x.current[d];
|
|
99
102
|
if (!u) continue;
|
|
100
|
-
const
|
|
101
|
-
|
|
103
|
+
const g = h === "center" ? u.offsetLeft + u.offsetWidth / 2 : u.offsetLeft, E = Math.abs(g - r);
|
|
104
|
+
E < o && (o = E, n = d);
|
|
102
105
|
}
|
|
103
106
|
return n;
|
|
104
|
-
}, [
|
|
105
|
-
(e) => c ? e <
|
|
106
|
-
[c,
|
|
107
|
+
}, [h, O]), D = i(
|
|
108
|
+
(e) => c ? e < v ? e + s : e >= v + s ? e - s : e : e,
|
|
109
|
+
[c, v, s]
|
|
107
110
|
), se = l({
|
|
108
111
|
middleStart: 0,
|
|
109
112
|
groupWidth: 0
|
|
110
|
-
}),
|
|
113
|
+
}), C = i(() => {
|
|
111
114
|
if (!c) return;
|
|
112
115
|
const e = a.current;
|
|
113
116
|
if (!e) return;
|
|
114
|
-
const t = x.current[
|
|
117
|
+
const t = x.current[v], r = x.current[v + s];
|
|
115
118
|
if (!t || !r) return;
|
|
116
|
-
const n =
|
|
119
|
+
const n = z(e, t), o = z(e, r);
|
|
117
120
|
se.current = {
|
|
118
121
|
middleStart: n,
|
|
119
122
|
groupWidth: o - n
|
|
120
123
|
};
|
|
121
|
-
}, [c,
|
|
124
|
+
}, [c, v, s, z]), U = l(!1), Y = i(
|
|
122
125
|
(e) => {
|
|
123
126
|
if (!c) return;
|
|
124
127
|
const t = a.current;
|
|
125
128
|
if (!t) return;
|
|
126
129
|
const { middleStart: r, groupWidth: n } = se.current;
|
|
127
130
|
if (n <= 0) return;
|
|
128
|
-
const o = r,
|
|
129
|
-
let u = t.scrollLeft,
|
|
130
|
-
u < o ?
|
|
131
|
+
const o = r, d = r + n;
|
|
132
|
+
let u = t.scrollLeft, g = 0;
|
|
133
|
+
u < o ? g = Math.ceil((o - u) / n) * n : u > d && (g = -Math.ceil((u - d) / n) * n), g !== 0 && (U.current = !0, t.scrollLeft = u + g, e === "drag" && (X.current += g), U.current = !1);
|
|
131
134
|
},
|
|
132
135
|
[c]
|
|
133
|
-
),
|
|
134
|
-
if (
|
|
136
|
+
), B = i(() => {
|
|
137
|
+
if (R) {
|
|
135
138
|
ee(s > 1), te(s > 1);
|
|
136
139
|
return;
|
|
137
140
|
}
|
|
@@ -139,73 +142,73 @@ import '../../styles/Carousel.css';const Be = "_root_36mqp_6", $e = "_viewport_3
|
|
|
139
142
|
if (!e) return;
|
|
140
143
|
const t = e.scrollWidth - e.clientWidth, r = 1;
|
|
141
144
|
ee(t > r && e.scrollLeft > r), te(t > r && e.scrollLeft < t - r);
|
|
142
|
-
}, [
|
|
143
|
-
s <= 1 ||
|
|
144
|
-
}, [
|
|
145
|
-
s <= 1 ||
|
|
146
|
-
}, [
|
|
145
|
+
}, [R, s]), $ = i(() => {
|
|
146
|
+
s <= 1 || b(y.current + S);
|
|
147
|
+
}, [b, s, S]), W = i(() => {
|
|
148
|
+
s <= 1 || b(y.current - S);
|
|
149
|
+
}, [b, s, S]), ze = i(() => {
|
|
147
150
|
var n;
|
|
148
151
|
if (!J) return;
|
|
149
|
-
const e =
|
|
150
|
-
|
|
151
|
-
const r = ((n =
|
|
152
|
+
const e = T(), t = D(e);
|
|
153
|
+
L(t, "smooth");
|
|
154
|
+
const r = ((n = _[t]) == null ? void 0 : n.realIndex) ?? 0;
|
|
152
155
|
m(r);
|
|
153
156
|
}, [
|
|
154
157
|
J,
|
|
155
|
-
|
|
156
|
-
|
|
158
|
+
T,
|
|
159
|
+
D,
|
|
160
|
+
L,
|
|
157
161
|
_,
|
|
158
|
-
h,
|
|
159
162
|
m
|
|
160
163
|
]);
|
|
161
|
-
|
|
162
|
-
|
|
164
|
+
Ee(
|
|
165
|
+
Le,
|
|
163
166
|
() => ({
|
|
164
|
-
next:
|
|
165
|
-
prev:
|
|
166
|
-
goTo:
|
|
167
|
-
getIndex: () =>
|
|
167
|
+
next: $,
|
|
168
|
+
prev: W,
|
|
169
|
+
goTo: b,
|
|
170
|
+
getIndex: () => y.current,
|
|
168
171
|
getLength: () => s
|
|
169
172
|
}),
|
|
170
|
-
[
|
|
171
|
-
),
|
|
173
|
+
[b, $, W, s]
|
|
174
|
+
), q(() => {
|
|
172
175
|
if (s === 0) return;
|
|
173
|
-
const e =
|
|
174
|
-
|
|
176
|
+
const e = j(Q), t = A(e), r = window.requestAnimationFrame(() => {
|
|
177
|
+
C(), L(t, "auto"), m(e), B();
|
|
175
178
|
});
|
|
176
179
|
return () => window.cancelAnimationFrame(r);
|
|
177
180
|
}, [
|
|
178
181
|
s,
|
|
179
182
|
Q,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
+
j,
|
|
184
|
+
A,
|
|
185
|
+
L,
|
|
183
186
|
m,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
]),
|
|
187
|
+
B,
|
|
188
|
+
C
|
|
189
|
+
]), q(() => {
|
|
187
190
|
if (!c) return;
|
|
188
191
|
const e = a.current;
|
|
189
192
|
if (!e) return;
|
|
190
193
|
const t = typeof ResizeObserver < "u" ? new ResizeObserver(() => {
|
|
191
|
-
|
|
194
|
+
C();
|
|
192
195
|
}) : null;
|
|
193
196
|
t == null || t.observe(e), x.current.forEach((o) => o && (t == null ? void 0 : t.observe(o)));
|
|
194
|
-
const r = () =>
|
|
197
|
+
const r = () => C();
|
|
195
198
|
window.addEventListener("resize", r);
|
|
196
|
-
const n = window.requestAnimationFrame(() =>
|
|
199
|
+
const n = window.requestAnimationFrame(() => C());
|
|
197
200
|
return () => {
|
|
198
201
|
window.removeEventListener("resize", r), window.cancelAnimationFrame(n), t == null || t.disconnect();
|
|
199
202
|
};
|
|
200
|
-
}, [c,
|
|
203
|
+
}, [c, C]), q(() => {
|
|
201
204
|
const e = a.current;
|
|
202
205
|
if (!e) return;
|
|
203
206
|
const t = { current: 0 }, r = () => {
|
|
204
|
-
U.current || (c && !I.current && Y("scroll"),
|
|
207
|
+
U.current || (c && !I.current && Y("scroll"), B(), !t.current && (t.current = window.requestAnimationFrame(() => {
|
|
205
208
|
var u;
|
|
206
209
|
t.current = 0;
|
|
207
|
-
const n =
|
|
208
|
-
|
|
210
|
+
const n = T(), o = D(n), d = ((u = _[o]) == null ? void 0 : u.realIndex) ?? 0;
|
|
211
|
+
d !== y.current && m(d);
|
|
209
212
|
})));
|
|
210
213
|
};
|
|
211
214
|
return e.addEventListener("scroll", r, { passive: !0 }), () => {
|
|
@@ -214,22 +217,22 @@ import '../../styles/Carousel.css';const Be = "_root_36mqp_6", $e = "_viewport_3
|
|
|
214
217
|
}, [
|
|
215
218
|
c,
|
|
216
219
|
Y,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
B,
|
|
221
|
+
T,
|
|
222
|
+
D,
|
|
223
|
+
_,
|
|
221
224
|
m
|
|
222
225
|
]);
|
|
223
|
-
const
|
|
226
|
+
const Be = (e) => e instanceof HTMLElement ? !!e.closest(
|
|
224
227
|
'button, a, input, textarea, select, option, [role="button"], [data-carousel-no-drag="true"]'
|
|
225
|
-
) : !1, G = l(null), ce = l(0),
|
|
228
|
+
) : !1, G = l(null), ce = l(0), ke = (e) => {
|
|
226
229
|
var t, r, n, o;
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
if (!
|
|
230
|
+
N && a.current && (Be(e.target) || e.pointerType === "mouse" && e.button !== 0 || (e.preventDefault(), oe(!1), I.current = !0, V.current = !1, re.current = e.clientX, X.current = a.current.scrollLeft, ne(!0), (r = (t = a.current).focus) == null || r.call(t), (o = (n = a.current).setPointerCapture) == null || o.call(n, e.pointerId)));
|
|
231
|
+
}, Pe = (e) => {
|
|
232
|
+
if (!N || !I.current || (e.preventDefault(), !a.current)) return;
|
|
230
233
|
const r = e.clientX - re.current;
|
|
231
234
|
Math.abs(r) > 4 && (V.current = !0);
|
|
232
|
-
const n =
|
|
235
|
+
const n = X.current - r;
|
|
233
236
|
ce.current = n, G.current == null && (G.current = window.requestAnimationFrame(() => {
|
|
234
237
|
G.current = null;
|
|
235
238
|
const o = a.current;
|
|
@@ -245,75 +248,76 @@ import '../../styles/Carousel.css';const Be = "_root_36mqp_6", $e = "_viewport_3
|
|
|
245
248
|
}
|
|
246
249
|
V.current && (K.current = !0, window.setTimeout(() => {
|
|
247
250
|
K.current = !1;
|
|
248
|
-
}, 0)), oe(!0),
|
|
251
|
+
}, 0)), oe(!0), ze(), B();
|
|
252
|
+
}, Se = (e) => {
|
|
253
|
+
N && I.current && ae(e.pointerId);
|
|
249
254
|
}, Me = (e) => {
|
|
250
|
-
|
|
251
|
-
},
|
|
252
|
-
y && I.current && ae(e.pointerId);
|
|
253
|
-
}, Te = (e) => {
|
|
255
|
+
N && I.current && ae(e.pointerId);
|
|
256
|
+
}, je = (e) => {
|
|
254
257
|
K.current && (e.preventDefault(), e.stopPropagation());
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
},
|
|
258
|
-
...
|
|
259
|
-
"--carousel-gap": `${
|
|
258
|
+
}, Ae = (e) => {
|
|
259
|
+
he && (e.key === "ArrowLeft" ? (e.preventDefault(), W()) : e.key === "ArrowRight" && (e.preventDefault(), $()));
|
|
260
|
+
}, Te = {
|
|
261
|
+
...ve ?? {},
|
|
262
|
+
"--carousel-gap": `${pe}px`,
|
|
260
263
|
"--carousel-slide-size": me,
|
|
261
|
-
"--carousel-snap-align":
|
|
264
|
+
"--carousel-snap-align": h,
|
|
265
|
+
"--carousel-button-gradient": we
|
|
262
266
|
};
|
|
263
|
-
return /* @__PURE__ */ ie("div", { className:
|
|
264
|
-
ge && s > 1 && /* @__PURE__ */ ie(
|
|
265
|
-
|
|
267
|
+
return /* @__PURE__ */ ie("div", { className: k(f.root, le), style: Te, "aria-label": Z, children: [
|
|
268
|
+
ge && s > 1 && /* @__PURE__ */ ie(De, { children: [
|
|
269
|
+
Ne && /* @__PURE__ */ p("div", { className: `fullHeight ${f.navButtonCtn} ${f.navPrev}`, children: /* @__PURE__ */ p(
|
|
266
270
|
"button",
|
|
267
271
|
{
|
|
268
272
|
type: "button",
|
|
269
|
-
className:
|
|
270
|
-
onClick:
|
|
273
|
+
className: k(f.navButton),
|
|
274
|
+
onClick: W,
|
|
271
275
|
"aria-label": "Précédent",
|
|
272
|
-
children: xe ?? /* @__PURE__ */
|
|
276
|
+
children: xe ?? /* @__PURE__ */ p("div", { className: f.defaultBtn, "aria-hidden": !0, children: "‹" })
|
|
273
277
|
}
|
|
274
|
-
),
|
|
275
|
-
|
|
278
|
+
) }),
|
|
279
|
+
Re && /* @__PURE__ */ p("div", { className: `fullHeight ${f.navButtonCtn} ${f.navNext}`, children: /* @__PURE__ */ p(
|
|
276
280
|
"button",
|
|
277
281
|
{
|
|
278
282
|
type: "button",
|
|
279
|
-
className:
|
|
280
|
-
onClick:
|
|
283
|
+
className: k(f.navButton),
|
|
284
|
+
onClick: $,
|
|
281
285
|
"aria-label": "Suivant",
|
|
282
|
-
children: Ie ?? /* @__PURE__ */
|
|
286
|
+
children: Ie ?? /* @__PURE__ */ p("div", { className: f.defaultBtn, "aria-hidden": !0, children: "›" })
|
|
283
287
|
}
|
|
284
|
-
)
|
|
288
|
+
) })
|
|
285
289
|
] }),
|
|
286
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ p(
|
|
287
291
|
"div",
|
|
288
292
|
{
|
|
289
293
|
ref: a,
|
|
290
|
-
className:
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
+
className: k(
|
|
295
|
+
f.viewport,
|
|
296
|
+
N && f.dragEnabled,
|
|
297
|
+
ye && f.dragging,
|
|
294
298
|
fe
|
|
295
299
|
),
|
|
296
300
|
tabIndex: 0,
|
|
297
301
|
role: "region",
|
|
298
302
|
"aria-roledescription": "carousel",
|
|
299
303
|
"aria-label": Z,
|
|
300
|
-
onKeyDown:
|
|
301
|
-
onPointerDown:
|
|
302
|
-
onPointerMove:
|
|
303
|
-
onPointerUp:
|
|
304
|
-
onPointerCancel:
|
|
305
|
-
onClickCapture:
|
|
306
|
-
children:
|
|
304
|
+
onKeyDown: Ae,
|
|
305
|
+
onPointerDown: ke,
|
|
306
|
+
onPointerMove: Pe,
|
|
307
|
+
onPointerUp: Se,
|
|
308
|
+
onPointerCancel: Me,
|
|
309
|
+
onClickCapture: je,
|
|
310
|
+
children: _.map((e, t) => /* @__PURE__ */ p(
|
|
307
311
|
"div",
|
|
308
312
|
{
|
|
309
313
|
ref: (r) => {
|
|
310
314
|
x.current[t] = r;
|
|
311
315
|
},
|
|
312
|
-
className:
|
|
316
|
+
className: k(f.slide, de),
|
|
313
317
|
"data-carousel-slide": !0,
|
|
314
318
|
"data-carousel-clone": e.isClone ? "true" : "false",
|
|
315
319
|
"aria-label": `Item ${e.realIndex + 1} sur ${s}`,
|
|
316
|
-
"aria-current": e.realIndex ===
|
|
320
|
+
"aria-current": e.realIndex === be,
|
|
317
321
|
children: e.node
|
|
318
322
|
},
|
|
319
323
|
e.key
|
|
@@ -324,5 +328,5 @@ import '../../styles/Carousel.css';const Be = "_root_36mqp_6", $e = "_viewport_3
|
|
|
324
328
|
}
|
|
325
329
|
);
|
|
326
330
|
export {
|
|
327
|
-
|
|
331
|
+
Ze as Carousel
|
|
328
332
|
};
|
package/dist/styles/Carousel.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._root_zgsjf_6{position:relative;width:100%}._viewport_zgsjf_11{display:flex;gap:var(--carousel-gap, 12px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;padding:4px;scrollbar-width:none}._viewport_zgsjf_11::-webkit-scrollbar{display:none}._dragEnabled_zgsjf_27{cursor:grab;touch-action:pan-y}._dragging_zgsjf_32{cursor:grabbing;scroll-behavior:auto;scroll-snap-type:none;-webkit-user-select:none;user-select:none}._slide_zgsjf_39{flex:0 0 var(--carousel-slide-size, 280px);width:var(--carousel-slide-size, 280px);scroll-snap-align:var(--carousel-snap-align, start);min-width:0}._navButtonCtn_zgsjf_46{z-index:2;display:flex;justify-content:center;align-items:center;position:absolute;height:100%;width:54px}._navButton_zgsjf_46{z-index:2;background:none;border:none;cursor:pointer;-webkit-user-select:none;user-select:none}._defaultBtn_zgsjf_64{z-index:2;width:36px;height:36px;color:var(--button-tertiary-default-border);font-size:18px;border:1px solid var(--button-tertiary-default-border);border-radius:999px;display:flex;align-items:center;justify-content:center;background:var(--carousel-button-background, var(--background-primary));box-shadow:0 2px 8px #00000026;cursor:pointer;-webkit-user-select:none;user-select:none}._navPrev_zgsjf_81{background:linear-gradient(90deg,var(--carousel-button-gradient) 0%,rgba(255,255,255,0) 100%);left:0}._navNext_zgsjf_86{background:linear-gradient(90deg,rgba(255,255,255,0) 0%,var(--carousel-button-gradient) 100%);right:0}
|