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