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