@televet/kibble-ui 5.0.25-beta.1 → 5.0.25-beta.11

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.
@@ -3,10 +3,10 @@ import { I as L } from "./icon.component-PV_nHBId.js";
3
3
  import { N as Y } from "./notificationCounter.component-6Q3q8jWj.js";
4
4
  import { W as G } from "./heading.component-CpSAN3cv.js";
5
5
  import { c as J } from "./create-slot-recipe-context-D_FXDJGp.js";
6
- import { useState as Q, useEffect as Z, forwardRef as m, useId as ee } from "react";
7
- import { a as te, b as x, d as y, e as ae, c as N, u as se, f as oe, g as re, n as ne } from "./use-locale-context-DmcfCmf9.js";
8
- import { u as ie, s as $, R as j } from "./render-strategy-DLvzMQD1.js";
9
- import { a6 as h, s as ce, aa as le, E as ue, b2 as de, r as T, aR as ge, aS as fe, a1 as pe, f as be, c as b, a3 as ve, z as Te, O as me, j as ye, l as he, b5 as Re, q as Ce, aD as Pe, _ as Ve, $ as Ee } from "./index-BcafYtXX.js";
6
+ import { useState as Q, useEffect as Z, forwardRef as y, useId as ee } from "react";
7
+ import { a as te, b as x, d as h, e as ae, c as N, u as se, f as oe, g as re, n as ne } from "./use-locale-context-DmcfCmf9.js";
8
+ import { a6 as R, s as ie, aa as ce, E as le, b2 as ue, r as m, aR as de, aS as ge, a1 as fe, f as pe, c as v, a3 as be, z as ve, O as Te, j as me, l as ye, b5 as he, q as Re, aD as Ce, _ as Pe, $ as Ve } from "./index-BcafYtXX.js";
9
+ import { u as Ee, s as j, R as $ } from "./render-strategy-DLvzMQD1.js";
10
10
  import { c as Ae, d as Ie } from "./index-DcmJgLUo.js";
11
11
  function xe(e, t) {
12
12
  const [s, a] = Q(e);
@@ -23,40 +23,40 @@ const [B, F] = te({
23
23
  name: "TabsContext",
24
24
  hookName: "useTabsContext",
25
25
  providerName: "<TabsProvider />"
26
- }), k = m((e, t) => {
27
- const [s, a] = x()(e, ["value"]), r = F(), o = ie(), n = Ae({
26
+ }), k = y((e, t) => {
27
+ const [s, a] = x()(e, ["value"]), r = F(), o = Ee(), n = Ae({
28
28
  ...o,
29
29
  present: xe(r.value === e.value, 0),
30
30
  immediate: !0
31
- }), d = h(r.getContentProps(s), n.getPresenceProps(), a);
32
- return /* @__PURE__ */ c.jsx(Ie, { value: n, children: n.unmounted ? null : /* @__PURE__ */ c.jsx(y.div, { ...d, ref: ae(n.ref, t) }) });
31
+ }), u = R(r.getContentProps(s), n.getPresenceProps(), a);
32
+ return /* @__PURE__ */ c.jsx(Ie, { value: n, children: n.unmounted ? null : /* @__PURE__ */ c.jsx(h.div, { ...u, ref: ae(n.ref, t) }) });
33
33
  });
34
34
  k.displayName = "TabContent";
35
- const D = m((e, t) => {
36
- const s = F(), a = h(s.getIndicatorProps(), e);
37
- return /* @__PURE__ */ c.jsx(y.div, { ...a, ref: t });
35
+ const D = y((e, t) => {
36
+ const s = F(), a = R(s.getIndicatorProps(), e);
37
+ return /* @__PURE__ */ c.jsx(h.div, { ...a, ref: t });
38
38
  });
39
39
  D.displayName = "TabIndicator";
40
- const U = m((e, t) => {
41
- const s = F(), a = h(s.getListProps(), e);
42
- return /* @__PURE__ */ c.jsx(y.div, { ...a, ref: t });
40
+ const U = y((e, t) => {
41
+ const s = F(), a = R(s.getListProps(), e);
42
+ return /* @__PURE__ */ c.jsx(h.div, { ...a, ref: t });
43
43
  });
44
44
  U.displayName = "TabList";
45
- const W = m((e, t) => {
46
- const [s, a] = x()(e, ["disabled", "value"]), r = F(), o = h(r.getTriggerProps(s), a);
47
- return /* @__PURE__ */ c.jsx(y.button, { ...o, ref: t });
45
+ const W = y((e, t) => {
46
+ const [s, a] = x()(e, ["disabled", "value"]), r = F(), o = R(r.getTriggerProps(s), a);
47
+ return /* @__PURE__ */ c.jsx(h.button, { ...o, ref: t });
48
48
  });
49
49
  W.displayName = "TabTrigger";
50
- var Fe = be("tabs").parts("root", "list", "trigger", "content", "indicator"), C = Fe.build(), _e = (e) => e.ids?.root ?? `tabs:${e.id}`, P = (e) => e.ids?.list ?? `tabs:${e.id}:list`, _ = (e, t) => e.ids?.content ?? `tabs:${e.id}:content-${t}`, v = (e, t) => e.ids?.trigger ?? `tabs:${e.id}:trigger-${t}`, M = (e) => e.ids?.indicator ?? `tabs:${e.id}:indicator`, Ne = (e) => e.getById(P(e)), we = (e, t) => e.getById(_(e, t)), I = (e, t) => e.getById(v(e, t)), O = (e) => e.getById(M(e)), V = (e) => {
51
- const s = `[role=tab][data-ownedby='${CSS.escape(P(e))}']:not([disabled])`;
52
- return Ce(Ne(e), s);
53
- }, Se = (e) => Ee(V(e)), Le = (e) => Ve(V(e)), Oe = (e, t) => fe(V(e), v(e, t.value), t.loopFocus), $e = (e, t) => ge(V(e), v(e, t.value), t.loopFocus), X = (e) => ({
50
+ var Fe = pe("tabs").parts("root", "list", "trigger", "content", "indicator"), P = Fe.build(), _e = (e) => e.ids?.root ?? `tabs:${e.id}`, V = (e) => e.ids?.list ?? `tabs:${e.id}:list`, _ = (e, t) => e.ids?.content ?? `tabs:${e.id}:content-${t}`, T = (e, t) => e.ids?.trigger ?? `tabs:${e.id}:trigger-${t}`, M = (e) => e.ids?.indicator ?? `tabs:${e.id}:indicator`, Ne = (e) => e.getById(V(e)), we = (e, t) => e.getById(_(e, t)), I = (e, t) => e.getById(T(e, t)), O = (e) => e.getById(M(e)), E = (e) => {
51
+ const s = `[role=tab][data-ownedby='${CSS.escape(V(e))}']:not([disabled])`;
52
+ return Re(Ne(e), s);
53
+ }, Se = (e) => Ve(E(e)), Le = (e) => Pe(E(e)), Oe = (e, t) => ge(E(e), T(e, t.value), t.loopFocus), je = (e, t) => de(E(e), T(e, t.value), t.loopFocus), X = (e) => ({
54
54
  left: e?.offsetLeft ?? 0,
55
55
  top: e?.offsetTop ?? 0,
56
56
  width: e?.offsetWidth ?? 0,
57
57
  height: e?.offsetHeight ?? 0
58
- }), je = (e, t) => {
59
- const s = Re(V(e), v(e, t));
58
+ }), $e = (e, t) => {
59
+ const s = he(E(e), T(e, t));
60
60
  return H(X(s));
61
61
  }, H = (e) => ({
62
62
  width: `${e.width}px`,
@@ -65,7 +65,7 @@ var Fe = be("tabs").parts("root", "list", "trigger", "content", "indicator"), C
65
65
  top: `${e.top}px`
66
66
  });
67
67
  function Be(e, t) {
68
- const { state: s, send: a, context: r, prop: o, scope: n } = e, d = o("translations"), u = s.matches("focused"), g = o("orientation") === "vertical", A = o("orientation") === "horizontal", w = o("composite");
68
+ const { state: s, send: a, context: r, prop: o, scope: n } = e, u = o("translations"), g = s.matches("focused"), d = o("orientation") === "vertical", f = o("orientation") === "horizontal", w = o("composite");
69
69
  function S(i) {
70
70
  return {
71
71
  selected: r.get("value") === i.value,
@@ -83,7 +83,7 @@ function Be(e, t) {
83
83
  a({ type: "CLEAR_VALUE" });
84
84
  },
85
85
  setIndicatorRect(i) {
86
- const l = v(n, i);
86
+ const l = T(n, i);
87
87
  a({ type: "SET_INDICATOR_RECT", id: l });
88
88
  },
89
89
  syncTabIndex() {
@@ -101,37 +101,37 @@ function Be(e, t) {
101
101
  },
102
102
  getRootProps() {
103
103
  return t.element({
104
- ...C.root.attrs,
104
+ ...P.root.attrs,
105
105
  id: _e(n),
106
106
  "data-orientation": o("orientation"),
107
- "data-focus": b(u),
107
+ "data-focus": v(g),
108
108
  dir: o("dir")
109
109
  });
110
110
  },
111
111
  getListProps() {
112
112
  return t.element({
113
- ...C.list.attrs,
114
- id: P(n),
113
+ ...P.list.attrs,
114
+ id: V(n),
115
115
  role: "tablist",
116
116
  dir: o("dir"),
117
- "data-focus": b(u),
117
+ "data-focus": v(g),
118
118
  "aria-orientation": o("orientation"),
119
119
  "data-orientation": o("orientation"),
120
- "aria-label": d?.listLabel,
120
+ "aria-label": u?.listLabel,
121
121
  onKeyDown(i) {
122
- if (i.defaultPrevented || !me(i) || ye(i)) return;
122
+ if (i.defaultPrevented || !Te(i) || me(i)) return;
123
123
  const l = {
124
124
  ArrowDown() {
125
- A || a({ type: "ARROW_NEXT", key: "ArrowDown" });
125
+ f || a({ type: "ARROW_NEXT", key: "ArrowDown" });
126
126
  },
127
127
  ArrowUp() {
128
- A || a({ type: "ARROW_PREV", key: "ArrowUp" });
128
+ f || a({ type: "ARROW_PREV", key: "ArrowUp" });
129
129
  },
130
130
  ArrowLeft() {
131
- g || a({ type: "ARROW_PREV", key: "ArrowLeft" });
131
+ d || a({ type: "ARROW_PREV", key: "ArrowLeft" });
132
132
  },
133
133
  ArrowRight() {
134
- g || a({ type: "ARROW_NEXT", key: "ArrowRight" });
134
+ d || a({ type: "ARROW_NEXT", key: "ArrowRight" });
135
135
  },
136
136
  Home() {
137
137
  a({ type: "HOME" });
@@ -140,13 +140,13 @@ function Be(e, t) {
140
140
  a({ type: "END" });
141
141
  }
142
142
  };
143
- let f = he(i, {
143
+ let p = ye(i, {
144
144
  dir: o("dir"),
145
145
  orientation: o("orientation")
146
146
  });
147
- const p = l[f];
148
- if (p) {
149
- i.preventDefault(), p(i);
147
+ const b = l[p];
148
+ if (b) {
149
+ i.preventDefault(), b(i);
150
150
  return;
151
151
  }
152
152
  }
@@ -154,56 +154,56 @@ function Be(e, t) {
154
154
  },
155
155
  getTriggerState: S,
156
156
  getTriggerProps(i) {
157
- const { value: l, disabled: f } = i, p = S(i);
157
+ const { value: l, disabled: p } = i, b = S(i);
158
158
  return t.button({
159
- ...C.trigger.attrs,
159
+ ...P.trigger.attrs,
160
160
  role: "tab",
161
161
  type: "button",
162
- disabled: f,
162
+ disabled: p,
163
163
  dir: o("dir"),
164
164
  "data-orientation": o("orientation"),
165
- "data-disabled": b(f),
166
- "aria-disabled": f,
165
+ "data-disabled": v(p),
166
+ "aria-disabled": p,
167
167
  "data-value": l,
168
- "aria-selected": p.selected,
169
- "data-selected": b(p.selected),
170
- "data-focus": b(p.focused),
171
- "aria-controls": p.selected ? _(n, l) : void 0,
172
- "data-ownedby": P(n),
173
- "data-ssr": b(r.get("ssr")),
174
- id: v(n, l),
175
- tabIndex: p.selected && w ? 0 : -1,
168
+ "aria-selected": b.selected,
169
+ "data-selected": v(b.selected),
170
+ "data-focus": v(b.focused),
171
+ "aria-controls": b.selected ? _(n, l) : void 0,
172
+ "data-ownedby": V(n),
173
+ "data-ssr": v(r.get("ssr")),
174
+ id: T(n, l),
175
+ tabIndex: b.selected && w ? 0 : -1,
176
176
  onFocus() {
177
177
  a({ type: "TAB_FOCUS", value: l });
178
178
  },
179
- onBlur(R) {
180
- R.relatedTarget?.getAttribute("role") !== "tab" && a({ type: "TAB_BLUR" });
179
+ onBlur(C) {
180
+ C.relatedTarget?.getAttribute("role") !== "tab" && a({ type: "TAB_BLUR" });
181
181
  },
182
- onClick(R) {
183
- R.defaultPrevented || ve(R) || f || (Te() && R.currentTarget.focus(), a({ type: "TAB_CLICK", value: l }));
182
+ onClick(C) {
183
+ C.defaultPrevented || be(C) || p || (ve() && C.currentTarget.focus(), a({ type: "TAB_CLICK", value: l }));
184
184
  }
185
185
  });
186
186
  },
187
187
  getContentProps(i) {
188
- const { value: l } = i, f = r.get("value") === l;
188
+ const { value: l } = i, p = r.get("value") === l;
189
189
  return t.element({
190
- ...C.content.attrs,
190
+ ...P.content.attrs,
191
191
  dir: o("dir"),
192
192
  id: _(n, l),
193
193
  tabIndex: w ? 0 : -1,
194
- "aria-labelledby": v(n, l),
194
+ "aria-labelledby": T(n, l),
195
195
  role: "tabpanel",
196
- "data-ownedby": P(n),
197
- "data-selected": b(f),
196
+ "data-ownedby": V(n),
197
+ "data-selected": v(p),
198
198
  "data-orientation": o("orientation"),
199
- hidden: !f
199
+ hidden: !p
200
200
  });
201
201
  },
202
202
  getIndicatorProps() {
203
203
  const i = r.get("indicatorRect"), l = r.get("indicatorTransition");
204
204
  return t.element({
205
205
  id: M(n),
206
- ...C.indicator.attrs,
206
+ ...P.indicator.attrs,
207
207
  dir: o("dir"),
208
208
  "data-orientation": o("orientation"),
209
209
  style: {
@@ -217,13 +217,13 @@ function Be(e, t) {
217
217
  transitionProperty: "var(--transition-property)",
218
218
  transitionDuration: l ? "var(--transition-duration, 150ms)" : "0ms",
219
219
  transitionTimingFunction: "var(--transition-timing-function)",
220
- [A ? "left" : "top"]: A ? "var(--left)" : "var(--top)"
220
+ [f ? "left" : "top"]: f ? "var(--left)" : "var(--top)"
221
221
  }
222
222
  });
223
223
  }
224
224
  };
225
225
  }
226
- var { createMachine: ke } = ce(), De = ke({
226
+ var { createMachine: ke } = ie(), De = ke({
227
227
  props({ props: e }) {
228
228
  return {
229
229
  dir: "ltr",
@@ -232,7 +232,7 @@ var { createMachine: ke } = ce(), De = ke({
232
232
  loopFocus: !0,
233
233
  composite: !0,
234
234
  navigate(t) {
235
- pe(t.node);
235
+ fe(t.node);
236
236
  },
237
237
  defaultValue: null,
238
238
  ...e
@@ -357,7 +357,7 @@ var { createMachine: ke } = ce(), De = ke({
357
357
  },
358
358
  actions: {
359
359
  selectFocusedTab({ context: e, prop: t }) {
360
- T(() => {
360
+ m(() => {
361
361
  const s = e.get("focusedValue");
362
362
  if (!s) return;
363
363
  const r = t("deselectable") && e.get("value") === s ? null : s;
@@ -380,12 +380,12 @@ var { createMachine: ke } = ce(), De = ke({
380
380
  e.set("value", null);
381
381
  },
382
382
  focusFirstTab({ scope: e }) {
383
- T(() => {
383
+ m(() => {
384
384
  Se(e)?.focus();
385
385
  });
386
386
  },
387
387
  focusLastTab({ scope: e }) {
388
- T(() => {
388
+ m(() => {
389
389
  Le(e)?.focus();
390
390
  });
391
391
  },
@@ -396,28 +396,28 @@ var { createMachine: ke } = ce(), De = ke({
396
396
  value: r,
397
397
  loopFocus: t("loopFocus")
398
398
  });
399
- T(() => {
399
+ m(() => {
400
400
  t("composite") ? o?.focus() : o?.dataset.value != null && e.set("focusedValue", o.dataset.value);
401
401
  });
402
402
  },
403
403
  focusPrevTab({ context: e, prop: t, scope: s, event: a }) {
404
404
  const r = a.value ?? e.get("focusedValue");
405
405
  if (!r) return;
406
- const o = $e(s, {
406
+ const o = je(s, {
407
407
  value: r,
408
408
  loopFocus: t("loopFocus")
409
409
  });
410
- T(() => {
410
+ m(() => {
411
411
  t("composite") ? o?.focus() : o?.dataset.value != null && e.set("focusedValue", o.dataset.value);
412
412
  });
413
413
  },
414
414
  syncTabIndex({ context: e, scope: t }) {
415
- T(() => {
415
+ m(() => {
416
416
  const s = e.get("value");
417
417
  if (!s) return;
418
418
  const a = we(t, s);
419
419
  if (!a) return;
420
- Pe(a).length > 0 ? a.removeAttribute("tabindex") : a.setAttribute("tabindex", "0");
420
+ Ce(a).length > 0 ? a.removeAttribute("tabindex") : a.setAttribute("tabindex", "0");
421
421
  });
422
422
  },
423
423
  cleanupObserver({ refs: e }) {
@@ -434,7 +434,7 @@ var { createMachine: ke } = ce(), De = ke({
434
434
  e.set("indicatorTransition", !1);
435
435
  return;
436
436
  }
437
- I(s, a) && (e.set("indicatorRect", je(s, a)), de(() => {
437
+ I(s, a) && (e.set("indicatorRect", $e(s, a)), ue(() => {
438
438
  e.set("indicatorTransition", !1);
439
439
  }));
440
440
  },
@@ -451,22 +451,22 @@ var { createMachine: ke } = ce(), De = ke({
451
451
  }
452
452
  const o = I(s, r), n = O(s);
453
453
  if (!o || !n) return;
454
- const d = ue([o], {
455
- measure(u) {
456
- return X(u);
454
+ const u = le([o], {
455
+ measure(g) {
456
+ return X(g);
457
457
  },
458
- onEntry({ rects: u }) {
459
- const [g] = u;
460
- e.set("indicatorRect", H(g));
458
+ onEntry({ rects: g }) {
459
+ const [d] = g;
460
+ e.set("indicatorRect", H(d));
461
461
  }
462
462
  });
463
- t.set("indicatorCleanup", d);
463
+ t.set("indicatorCleanup", u);
464
464
  },
465
465
  navigateIfNeeded({ context: e, prop: t, scope: s }) {
466
466
  const a = e.get("value");
467
467
  if (!a) return;
468
468
  const r = I(s, a);
469
- le(r) && t("navigate")?.({ value: a, node: r, href: r.href });
469
+ ce(r) && t("navigate")?.({ value: a, node: r, href: r.href });
470
470
  }
471
471
  }
472
472
  }
@@ -498,8 +498,8 @@ const Ue = (e) => {
498
498
  ...e
499
499
  }, o = re(De, r);
500
500
  return Be(o, ne);
501
- }, K = m((e, t) => {
502
- const [s, a] = $(e), [r, o] = x()(a, [
501
+ }, K = y((e, t) => {
502
+ const [s, a] = j(e), [r, o] = x()(a, [
503
503
  "activationMode",
504
504
  "composite",
505
505
  "defaultValue",
@@ -513,40 +513,40 @@ const Ue = (e) => {
513
513
  "orientation",
514
514
  "translations",
515
515
  "value"
516
- ]), n = Ue(r), d = h(n.getRootProps(), o);
517
- return /* @__PURE__ */ c.jsx(B, { value: n, children: /* @__PURE__ */ c.jsx(j, { value: s, children: /* @__PURE__ */ c.jsx(y.div, { ...d, ref: t }) }) });
516
+ ]), n = Ue(r), u = R(n.getRootProps(), o);
517
+ return /* @__PURE__ */ c.jsx(B, { value: n, children: /* @__PURE__ */ c.jsx($, { value: s, children: /* @__PURE__ */ c.jsx(h.div, { ...u, ref: t }) }) });
518
518
  });
519
519
  K.displayName = "TabsRoot";
520
- const q = m((e, t) => {
521
- const [s, a] = $(e), [{ value: r }, o] = x()(a, ["value"]), n = h(r.getRootProps(), o);
522
- return /* @__PURE__ */ c.jsx(B, { value: r, children: /* @__PURE__ */ c.jsx(j, { value: s, children: /* @__PURE__ */ c.jsx(y.div, { ...n, ref: t }) }) });
520
+ const q = y((e, t) => {
521
+ const [s, a] = j(e), [{ value: r }, o] = x()(a, ["value"]), n = R(r.getRootProps(), o);
522
+ return /* @__PURE__ */ c.jsx(B, { value: r, children: /* @__PURE__ */ c.jsx($, { value: s, children: /* @__PURE__ */ c.jsx(h.div, { ...n, ref: t }) }) });
523
523
  });
524
524
  q.displayName = "TabsRootProvider";
525
525
  const {
526
526
  withProvider: z,
527
- withContext: E
527
+ withContext: A
528
528
  } = J({ key: "tabs" });
529
529
  z(q, "root", { forwardAsChild: !0 });
530
530
  const We = z(
531
531
  K,
532
532
  "root",
533
533
  { forwardAsChild: !0 }
534
- ), Me = E(
534
+ ), Me = A(
535
535
  W,
536
536
  "trigger",
537
537
  { forwardAsChild: !0 }
538
- ), Xe = E(
538
+ ), Xe = A(
539
539
  k,
540
540
  "content",
541
541
  { forwardAsChild: !0 }
542
542
  );
543
- E("div", "contentGroup");
544
- const He = E(
543
+ A("div", "contentGroup");
544
+ const He = A(
545
545
  U,
546
546
  "list",
547
547
  { forwardAsChild: !0 }
548
548
  );
549
- E(
549
+ A(
550
550
  D,
551
551
  "indicator",
552
552
  { forwardAsChild: !0 }
@@ -569,8 +569,8 @@ const Ke = {
569
569
  showNotificationCounter: r,
570
570
  size: o = "md",
571
571
  ["data-testid"]: n = "kibble-tab",
572
- ...d
573
- }) => /* @__PURE__ */ c.jsxs(Me, { className: "Tab", "data-testid": n, ...d, children: [
572
+ ...u
573
+ }) => /* @__PURE__ */ c.jsxs(Me, { className: "Tab", "data-testid": n, ...u, children: [
574
574
  !!e && t === "left" && /* @__PURE__ */ c.jsx(
575
575
  L,
576
576
  {
@@ -600,42 +600,55 @@ const Ke = {
600
600
  tabs: r,
601
601
  tabsContent: o,
602
602
  ["data-testid"]: n = "kibble-tabs",
603
- ...d
604
- }) => /* @__PURE__ */ c.jsxs(
605
- We,
606
- {
607
- className: "Tabs",
608
- "data-testid": n,
609
- justify: e || d.justify,
610
- size: a,
611
- onValueChange: ({ value: u }) => t?.(u),
612
- ...d,
613
- children: [
614
- /* @__PURE__ */ c.jsx(
615
- He,
616
- {
617
- className: "Tabs__List",
618
- "data-testid": `${n}-trigger-list`,
619
- ...s && {
620
- css: { overflowX: "auto", flexWrap: "nowrap", scrollbarWidth: "none" }
603
+ ...u
604
+ }) => {
605
+ console.log("frank-11");
606
+ const g = /* @__PURE__ */ c.jsx(He, { className: "Tabs__List", "data-testid": `${n}-trigger-list`, children: r.map((d, f) => /* @__PURE__ */ c.jsx(
607
+ ze,
608
+ {
609
+ ...d,
610
+ "data-testid": `${n}-trigger-${d.value}`,
611
+ size: a,
612
+ ...s && { style: { flexShrink: 0 } }
613
+ },
614
+ `tab-${f}`
615
+ )) });
616
+ return /* @__PURE__ */ c.jsxs(
617
+ We,
618
+ {
619
+ className: "Tabs",
620
+ "data-testid": n,
621
+ justify: e || u.justify,
622
+ size: a,
623
+ onValueChange: ({ value: d }) => t?.(d),
624
+ ...u,
625
+ children: [
626
+ s ? /* @__PURE__ */ c.jsx(
627
+ "div",
628
+ {
629
+ style: {
630
+ maxWidth: "100%",
631
+ overflowX: "auto",
632
+ scrollbarWidth: "none"
633
+ },
634
+ children: g
635
+ }
636
+ ) : g,
637
+ !!o && o.map((d, f) => /* @__PURE__ */ c.jsx(
638
+ Xe,
639
+ {
640
+ "data-testid": `${n}-content-${r[f].value}`,
641
+ ...d
621
642
  },
622
- children: r.map((u, g) => /* @__PURE__ */ c.jsx(ze, { ...u, "data-testid": `${n}-trigger-${u.value}`, size: a }, `tab-${g}`))
623
- }
624
- ),
625
- !!o && o.map((u, g) => /* @__PURE__ */ c.jsx(
626
- Xe,
627
- {
628
- "data-testid": `${n}-content-${r[g].value}`,
629
- ...u
630
- },
631
- `${n}-tabContent-${g}`
632
- ))
633
- ]
634
- }
635
- ), it = ["xs", "sm", "md", "lg"], ct = ["left", "right"];
643
+ `${n}-tabContent-${f}`
644
+ ))
645
+ ]
646
+ }
647
+ );
648
+ }, it = ["xs", "sm", "md", "lg"], ct = ["left", "right"];
636
649
  export {
637
650
  nt as T,
638
651
  ct as a,
639
652
  it as t
640
653
  };
641
- //# sourceMappingURL=tab.types-bJ04v7AW.js.map
654
+ //# sourceMappingURL=tab.types-z0s-iVfr.js.map