@humain/ui 2.2.4 → 2.2.5

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.
Files changed (87) hide show
  1. package/dist/index11.js +4 -4
  2. package/dist/index11.js.map +1 -1
  3. package/dist/index110.js +4 -4
  4. package/dist/index110.js.map +1 -1
  5. package/dist/index134.js +4 -4
  6. package/dist/index134.js.map +1 -1
  7. package/dist/index135.js +2 -2
  8. package/dist/index135.js.map +1 -1
  9. package/dist/index151.js +3 -3
  10. package/dist/index151.js.map +1 -1
  11. package/dist/index152.js +1 -1
  12. package/dist/index152.js.map +1 -1
  13. package/dist/index155.js +1 -1
  14. package/dist/index155.js.map +1 -1
  15. package/dist/index188.js +4 -4
  16. package/dist/index188.js.map +1 -1
  17. package/dist/index201.js +1 -1
  18. package/dist/index201.js.map +1 -1
  19. package/dist/index228.js +1 -1
  20. package/dist/index228.js.map +1 -1
  21. package/dist/index24.js +1 -1
  22. package/dist/index24.js.map +1 -1
  23. package/dist/index25.js +4 -4
  24. package/dist/index25.js.map +1 -1
  25. package/dist/index39.js +2 -2
  26. package/dist/index39.js.map +1 -1
  27. package/dist/index5.js +8 -8
  28. package/dist/index5.js.map +1 -1
  29. package/dist/styles.css +1 -1
  30. package/dist/wc/AIScrollButton.js +8 -8
  31. package/dist/wc/AIScrollButton.js.map +1 -1
  32. package/dist/wc/Badge.js +9 -9
  33. package/dist/wc/Badge.js.map +1 -1
  34. package/dist/wc/Checkbox.js +22 -22
  35. package/dist/wc/Checkbox.js.map +1 -1
  36. package/dist/wc/Pagination.js +4 -4
  37. package/dist/wc/Pagination.js.map +1 -1
  38. package/dist/wc/Switch.js +23 -23
  39. package/dist/wc/Switch.js.map +1 -1
  40. package/dist/wc/Tabs.js +110 -110
  41. package/dist/wc/Tabs.js.map +1 -1
  42. package/dist/wc/Tooltip.js +28 -28
  43. package/dist/wc/Tooltip.js.map +1 -1
  44. package/dist/wc/button.js +33 -33
  45. package/dist/wc/button.js.map +1 -1
  46. package/dist/wc/hf-alert.js +10 -10
  47. package/dist/wc/hf-alert.js.map +1 -1
  48. package/dist/wc/hf-nav-account-menu.js +8 -8
  49. package/dist/wc/hf-nav-account-menu.js.map +1 -1
  50. package/dist/wc/hf-steps.js +8 -8
  51. package/dist/wc/hf-steps.js.map +1 -1
  52. package/dist/wc/markdown-renderer.js +4 -4
  53. package/dist/wc/markdown-renderer.js.map +1 -1
  54. package/dist/wc/selection-group.js +6 -6
  55. package/dist/wc/selection-group.js.map +1 -1
  56. package/dist/wc-react/AIScrollButton.js +18 -18
  57. package/dist/wc-react/AIScrollButton.js.map +1 -1
  58. package/dist/wc-react/Badge.js +16 -16
  59. package/dist/wc-react/Badge.js.map +1 -1
  60. package/dist/wc-react/Checkbox.js +14 -14
  61. package/dist/wc-react/Checkbox.js.map +1 -1
  62. package/dist/wc-react/Pagination.js +130 -130
  63. package/dist/wc-react/Pagination.js.map +1 -1
  64. package/dist/wc-react/Switch.js +2 -2
  65. package/dist/wc-react/Switch.js.map +1 -1
  66. package/dist/wc-react/Tabs.js +38 -38
  67. package/dist/wc-react/Tabs.js.map +1 -1
  68. package/dist/wc-react/Tooltip.js +22 -22
  69. package/dist/wc-react/Tooltip.js.map +1 -1
  70. package/dist/wc-react/button.js +8 -8
  71. package/dist/wc-react/button.js.map +1 -1
  72. package/dist/wc-react/hf-alert.js +28 -28
  73. package/dist/wc-react/hf-alert.js.map +1 -1
  74. package/dist/wc-react/hf-nav-account-menu.js +7 -7
  75. package/dist/wc-react/hf-nav-account-menu.js.map +1 -1
  76. package/dist/wc-react/hf-steps.js +16 -16
  77. package/dist/wc-react/hf-steps.js.map +1 -1
  78. package/dist/wc-react/markdown-renderer.js +4 -4
  79. package/dist/wc-react/markdown-renderer.js.map +1 -1
  80. package/dist/wc-react/selection-group.js +1 -1
  81. package/dist/wc-react/selection-group.js.map +1 -1
  82. package/package.json +1 -1
  83. package/skills/humain-ui/SKILL.md +1 -1
  84. package/skills/humain-ui-wc/SKILL.md +1 -1
  85. package/skills/humain-ui-wc.skill +0 -0
  86. package/skills/humain-ui.skill +0 -0
  87. package/src/tokens.css +10 -2
package/dist/wc/Tabs.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { a as _t } from "./rolldown-runtime.js";
2
- import { i as Dt, t as kt } from "./vendor/react.js";
2
+ import { i as Dt, t as Ht } from "./vendor/react.js";
3
3
  import { n as P } from "./utils.js";
4
- import { s as Ht, t as Z, u as vt } from "./useRenderElement.js";
4
+ import { s as At, t as Z, u as vt } from "./useRenderElement.js";
5
5
  import { r as X, t as F } from "./useStableCallback.js";
6
6
  import { E as lt } from "./composite.js";
7
- import { f as At, t as Bt } from "./floating-ui.utils.dom.js";
7
+ import { f as kt, t as Bt } from "./floating-ui.utils.dom.js";
8
8
  import { n as Wt, t as Ot } from "./shadowDom.js";
9
9
  import { _ as dt, a as $t, t as et, u as ut, v as ct } from "./createBaseUIEventDetails.js";
10
10
  import { t as bt } from "./owner.js";
@@ -21,9 +21,9 @@ import { n as Qt, t as Zt } from "./CompositeRoot.js";
21
21
  import { t as ta } from "./use-controllable-state.js";
22
22
  import { t as aa } from "./useIsHydrating.js";
23
23
  import { t as ea } from "./CSPContext.js";
24
- import { t as ra } from "./Badge.js";
25
- var f = kt(), e = /* @__PURE__ */ _t(Dt(), 1);
26
- function ia() {
24
+ import { t as ia } from "./Badge.js";
25
+ var f = Ht(), e = /* @__PURE__ */ _t(Dt(), 1);
26
+ function ra() {
27
27
  const [, t] = e.useState({});
28
28
  return e.useCallback(() => {
29
29
  t({});
@@ -31,10 +31,10 @@ function ia() {
31
31
  }
32
32
  function pt(t) {
33
33
  const a = Bt(t);
34
- let i = parseFloat(a.width) || 0, d = parseFloat(a.height) || 0;
35
- const r = At(t), u = r ? t.offsetWidth : i, o = r ? t.offsetHeight : d;
36
- return (lt(i) !== u || lt(d) !== o) && (i = u, d = o), {
37
- width: i,
34
+ let r = parseFloat(a.width) || 0, d = parseFloat(a.height) || 0;
35
+ const i = kt(t), u = i ? t.offsetWidth : r, o = i ? t.offsetHeight : d;
36
+ return (lt(r) !== u || lt(d) !== o) && (r = u, d = o), {
37
+ width: r,
38
38
  height: d
39
39
  };
40
40
  }
@@ -46,10 +46,10 @@ function tt() {
46
46
  }
47
47
  var oa = /* @__PURE__ */ (function(t) {
48
48
  return t.activationDirection = "data-activation-direction", t.orientation = "data-orientation", t;
49
- })({}), G = { tabActivationDirection: (t) => ({ [oa.activationDirection]: t }) }, Tt = /* @__PURE__ */ e.forwardRef(function(a, i) {
50
- const { className: d, defaultValue: r = 0, onValueChange: u, orientation: o = "horizontal", render: p, value: N, style: j, ...y } = a, H = a.defaultValue !== void 0, _ = e.useRef([]), [g, L] = e.useState(() => /* @__PURE__ */ new Map()), [n, R] = Kt({
49
+ })({}), G = { tabActivationDirection: (t) => ({ [oa.activationDirection]: t }) }, Tt = /* @__PURE__ */ e.forwardRef(function(a, r) {
50
+ const { className: d, defaultValue: i = 0, onValueChange: u, orientation: o = "horizontal", render: p, value: N, style: j, ...y } = a, A = a.defaultValue !== void 0, _ = e.useRef([]), [g, L] = e.useState(() => /* @__PURE__ */ new Map()), [n, R] = Kt({
51
51
  controlled: N,
52
- default: r,
52
+ default: i,
53
53
  name: "Tabs",
54
54
  state: "value"
55
55
  }), S = N !== void 0, [s, v] = e.useState(() => /* @__PURE__ */ new Map()), M = e.useRef(void 0), h = e.useCallback((l) => {
@@ -77,7 +77,7 @@ var oa = /* @__PURE__ */ (function(t) {
77
77
  b.activationDirection = gt(n, l, o, s), u?.(l, b), !b.isCanceled && R(l);
78
78
  }), D = F((l, b) => {
79
79
  u?.(l, et(b, void 0, void 0, { activationDirection: "none" }));
80
- }), A = F((l, b) => {
80
+ }), k = F((l, b) => {
81
81
  L((I) => {
82
82
  if (I.get(l) === b) return I;
83
83
  const W = new Map(I);
@@ -97,7 +97,7 @@ var oa = /* @__PURE__ */ (function(t) {
97
97
  getTabPanelIdByValue: B,
98
98
  onValueChange: q,
99
99
  orientation: o,
100
- registerMountedTabPanel: A,
100
+ registerMountedTabPanel: k,
101
101
  setTabMap: v,
102
102
  unregisterMountedTabPanel: O,
103
103
  tabActivationDirection: z,
@@ -108,16 +108,16 @@ var oa = /* @__PURE__ */ (function(t) {
108
108
  B,
109
109
  q,
110
110
  o,
111
- A,
111
+ k,
112
112
  v,
113
113
  O,
114
114
  z,
115
115
  n
116
- ]), k = e.useMemo(() => {
116
+ ]), H = e.useMemo(() => {
117
117
  for (const l of s.values()) if (l != null && l.value === n) return l;
118
118
  }, [s, n]), J = e.useMemo(() => {
119
119
  for (const l of s.values()) if (l != null && !l.disabled) return l.value;
120
- }, [s]), Q = e.useRef(!H), ot = e.useRef(r), nt = e.useRef(H), st = e.useRef(!1);
120
+ }, [s]), Q = e.useRef(!A), ot = e.useRef(i), nt = e.useRef(A), st = e.useRef(!1);
121
121
  X(() => {
122
122
  if (S) return;
123
123
  function l(V, Y) {
@@ -131,7 +131,7 @@ var oa = /* @__PURE__ */ (function(t) {
131
131
  return;
132
132
  }
133
133
  st.current = !0, M.current = s.keys().next().value;
134
- const b = k?.disabled, I = k == null && n !== null;
134
+ const b = H?.disabled, I = H == null && n !== null;
135
135
  if (!b && n === ot.current && (nt.current = !1), nt.current && b && n === ot.current) return;
136
136
  const W = Q.current;
137
137
  if (b || I) {
@@ -144,12 +144,12 @@ var oa = /* @__PURE__ */ (function(t) {
144
144
  W ? Y = ut : b && (Y = $t), l(V, Y);
145
145
  return;
146
146
  }
147
- W && k != null && (D(n, ut), Q.current = !1);
147
+ W && H != null && (D(n, ut), Q.current = !1);
148
148
  }, [
149
149
  J,
150
150
  S,
151
151
  D,
152
- k,
152
+ H,
153
153
  R,
154
154
  s,
155
155
  n
@@ -159,7 +159,7 @@ var oa = /* @__PURE__ */ (function(t) {
159
159
  orientation: o,
160
160
  tabActivationDirection: z
161
161
  },
162
- ref: i,
162
+ ref: r,
163
163
  props: y,
164
164
  stateAttributesMapping: G
165
165
  });
@@ -171,18 +171,18 @@ var oa = /* @__PURE__ */ (function(t) {
171
171
  })
172
172
  });
173
173
  });
174
- function gt(t, a, i, d) {
174
+ function gt(t, a, r, d) {
175
175
  if (t == null || a == null) return "none";
176
- let r = null, u = null;
176
+ let i = null, u = null;
177
177
  for (const [N, j] of d.entries()) {
178
178
  if (j == null) continue;
179
179
  const y = j.value ?? j.index;
180
- if (t === y && (r = N), a === y && (u = N), r != null && u != null) break;
180
+ if (t === y && (i = N), a === y && (u = N), i != null && u != null) break;
181
181
  }
182
- if (r == null || u == null)
183
- return r !== u && (typeof t == "number" || typeof t == "string") && typeof t == typeof a ? i === "horizontal" ? a > t ? "right" : "left" : a > t ? "down" : "up" : "none";
184
- const o = r.getBoundingClientRect(), p = u.getBoundingClientRect();
185
- if (i === "horizontal") {
182
+ if (i == null || u == null)
183
+ return i !== u && (typeof t == "number" || typeof t == "string") && typeof t == typeof a ? r === "horizontal" ? a > t ? "right" : "left" : a > t ? "down" : "up" : "none";
184
+ const o = i.getBoundingClientRect(), p = u.getBoundingClientRect();
185
+ if (r === "horizontal") {
186
186
  if (p.left < o.left) return "left";
187
187
  if (p.left > o.left) return "right";
188
188
  } else {
@@ -197,16 +197,16 @@ function Rt() {
197
197
  if (t === void 0) throw new Error(vt(65));
198
198
  return t;
199
199
  }
200
- var wt = /* @__PURE__ */ e.forwardRef(function(a, i) {
201
- const { className: d, disabled: r = !1, render: u, value: o, id: p, nativeButton: N = !0, style: j, ...y } = a, { value: H, getTabPanelIdByValue: _, orientation: g, tabActivationDirection: L } = tt(), { activateOnFocus: n, highlightedTabIndex: R, onTabActivation: S, registerTabResizeObserverElement: s, setHighlightedTabIndex: v, tabsListElement: M } = Rt(), h = mt(p), { compositeProps: w, compositeRef: E, index: x } = Gt({ metadata: e.useMemo(() => ({
202
- disabled: r,
200
+ var wt = /* @__PURE__ */ e.forwardRef(function(a, r) {
201
+ const { className: d, disabled: i = !1, render: u, value: o, id: p, nativeButton: N = !0, style: j, ...y } = a, { value: A, getTabPanelIdByValue: _, orientation: g, tabActivationDirection: L } = tt(), { activateOnFocus: n, highlightedTabIndex: R, onTabActivation: S, registerTabResizeObserverElement: s, setHighlightedTabIndex: v, tabsListElement: M } = Rt(), h = mt(p), { compositeProps: w, compositeRef: E, index: x } = Gt({ metadata: e.useMemo(() => ({
202
+ disabled: i,
203
203
  id: h,
204
204
  value: o
205
205
  }), [
206
- r,
206
+ i,
207
207
  h,
208
208
  o
209
- ]) }), T = o === H, z = e.useRef(!1), c = e.useRef(null);
209
+ ]) }), T = o === A, z = e.useRef(!1), c = e.useRef(null);
210
210
  X(() => {
211
211
  const m = c.current;
212
212
  if (m)
@@ -219,46 +219,46 @@ var wt = /* @__PURE__ */ e.forwardRef(function(a, i) {
219
219
  if (!(T && x > -1 && R !== x)) return;
220
220
  const m = M;
221
221
  if (m != null) {
222
- const k = Ot(bt(m));
223
- if (k && Wt(m, k)) return;
222
+ const H = Ot(bt(m));
223
+ if (H && Wt(m, H)) return;
224
224
  }
225
- r || v(x);
225
+ i || v(x);
226
226
  }, [
227
227
  T,
228
228
  x,
229
229
  R,
230
230
  v,
231
- r,
231
+ i,
232
232
  M
233
233
  ]);
234
234
  const { getButtonProps: C, buttonRef: U } = Xt({
235
- disabled: r,
235
+ disabled: i,
236
236
  native: N,
237
237
  focusableWhenDisabled: !0
238
- }), q = _(o), D = e.useRef(!1), A = e.useRef(!1);
238
+ }), q = _(o), D = e.useRef(!1), k = e.useRef(!1);
239
239
  function O(m) {
240
- T || r || S(o, et(ct, m.nativeEvent, void 0, { activationDirection: "none" }));
240
+ T || i || S(o, et(ct, m.nativeEvent, void 0, { activationDirection: "none" }));
241
241
  }
242
242
  function B(m) {
243
- T || (x > -1 && !r && v(x), !r && n && (!D.current || D.current && A.current) && S(o, et(ct, m.nativeEvent, void 0, { activationDirection: "none" })));
243
+ T || (x > -1 && !i && v(x), !i && n && (!D.current || D.current && k.current) && S(o, et(ct, m.nativeEvent, void 0, { activationDirection: "none" })));
244
244
  }
245
245
  function $(m) {
246
- if (T || r) return;
246
+ if (T || i) return;
247
247
  D.current = !0;
248
- function k() {
249
- D.current = !1, A.current = !1;
248
+ function H() {
249
+ D.current = !1, k.current = !1;
250
250
  }
251
- (!m.button || m.button === 0) && (A.current = !0, bt(m.currentTarget).addEventListener("pointerup", k, { once: !0 }));
251
+ (!m.button || m.button === 0) && (k.current = !0, bt(m.currentTarget).addEventListener("pointerup", H, { once: !0 }));
252
252
  }
253
253
  return Z("button", a, {
254
254
  state: {
255
- disabled: r,
255
+ disabled: i,
256
256
  active: T,
257
257
  orientation: g,
258
258
  tabActivationDirection: L
259
259
  },
260
260
  ref: [
261
- i,
261
+ r,
262
262
  U,
263
263
  E,
264
264
  c
@@ -290,18 +290,18 @@ var K = /* @__PURE__ */ (function(t) {
290
290
  ...G,
291
291
  activeTabPosition: () => null,
292
292
  activeTabSize: () => null
293
- }, zt = /* @__PURE__ */ e.forwardRef(function(a, i) {
294
- const { className: d, render: r, renderBeforeHydration: u = !1, style: o, ...p } = a, { nonce: N } = ea(), { getTabElementBySelectedValue: j, orientation: y, tabActivationDirection: H, value: _ } = tt(), { tabsListElement: g, registerIndicatorUpdateListener: L } = Rt(), n = aa(), R = ia();
293
+ }, zt = /* @__PURE__ */ e.forwardRef(function(a, r) {
294
+ const { className: d, render: i, renderBeforeHydration: u = !1, style: o, ...p } = a, { nonce: N } = ea(), { getTabElementBySelectedValue: j, orientation: y, tabActivationDirection: A, value: _ } = tt(), { tabsListElement: g, registerIndicatorUpdateListener: L } = Rt(), n = aa(), R = ra();
295
295
  e.useEffect(() => L(R), [L, R]);
296
296
  let S = 0, s = 0, v = 0, M = 0, h = 0, w = 0, E = !1;
297
297
  if (_ != null && g != null) {
298
298
  const C = j(_);
299
299
  if (C != null) {
300
300
  E = !0;
301
- const { width: U, height: q } = pt(C), { width: D, height: A } = pt(g), O = C.getBoundingClientRect(), B = g.getBoundingClientRect(), $ = D > 0 ? B.width / D : 1, m = A > 0 ? B.height / A : 1;
301
+ const { width: U, height: q } = pt(C), { width: D, height: k } = pt(g), O = C.getBoundingClientRect(), B = g.getBoundingClientRect(), $ = D > 0 ? B.width / D : 1, m = k > 0 ? B.height / k : 1;
302
302
  if (Math.abs($) > Number.EPSILON && Math.abs(m) > Number.EPSILON) {
303
- const k = O.left - B.left, J = O.top - B.top;
304
- S = k / $ + g.scrollLeft - g.clientLeft, v = J / m + g.scrollTop - g.clientTop;
303
+ const H = O.left - B.left, J = O.top - B.top;
304
+ S = H / $ + g.scrollLeft - g.clientLeft, v = J / m + g.scrollTop - g.clientTop;
305
305
  } else
306
306
  S = C.offsetLeft, v = C.offsetTop;
307
307
  h = U, w = q, s = g.scrollWidth - S - h, M = g.scrollHeight - v - w;
@@ -327,9 +327,9 @@ var K = /* @__PURE__ */ (function(t) {
327
327
  orientation: y,
328
328
  activeTabPosition: x,
329
329
  activeTabSize: T,
330
- tabActivationDirection: H
330
+ tabActivationDirection: A
331
331
  },
332
- ref: i,
332
+ ref: r,
333
333
  props: [
334
334
  {
335
335
  role: "presentation",
@@ -351,19 +351,19 @@ var K = /* @__PURE__ */ (function(t) {
351
351
  })({}), la = {
352
352
  ...G,
353
353
  ...Ft
354
- }, Ct = /* @__PURE__ */ e.forwardRef(function(a, i) {
355
- const { className: d, value: r, render: u, keepMounted: o = !1, style: p, ...N } = a, { value: j, getTabIdByPanelValue: y, orientation: H, tabActivationDirection: _, registerMountedTabPanel: g, unregisterMountedTabPanel: L } = tt(), n = mt(), { ref: R, index: S } = Yt({ metadata: e.useMemo(() => ({
354
+ }, Ct = /* @__PURE__ */ e.forwardRef(function(a, r) {
355
+ const { className: d, value: i, render: u, keepMounted: o = !1, style: p, ...N } = a, { value: j, getTabIdByPanelValue: y, orientation: A, tabActivationDirection: _, registerMountedTabPanel: g, unregisterMountedTabPanel: L } = tt(), n = mt(), { ref: R, index: S } = Yt({ metadata: e.useMemo(() => ({
356
356
  id: n,
357
- value: r
358
- }), [n, r]) }), s = r === j, { mounted: v, transitionStatus: M, setMounted: h } = Vt(s), w = !v, E = y(r), x = {
357
+ value: i
358
+ }), [n, i]) }), s = i === j, { mounted: v, transitionStatus: M, setMounted: h } = Vt(s), w = !v, E = y(i), x = {
359
359
  hidden: w,
360
- orientation: H,
360
+ orientation: A,
361
361
  tabActivationDirection: _,
362
362
  transitionStatus: M
363
363
  }, T = e.useRef(null), z = Z("div", a, {
364
364
  state: x,
365
365
  ref: [
366
- i,
366
+ r,
367
367
  R,
368
368
  T
369
369
  ],
@@ -386,19 +386,19 @@ var K = /* @__PURE__ */ (function(t) {
386
386
  }
387
387
  }), X(() => {
388
388
  if (!(w && !o) && n != null)
389
- return g(r, n), () => {
390
- L(r, n);
389
+ return g(i, n), () => {
390
+ L(i, n);
391
391
  };
392
392
  }, [
393
393
  w,
394
394
  o,
395
- r,
395
+ i,
396
396
  n,
397
397
  g,
398
398
  L
399
399
  ]), o || v ? z : null;
400
- }), Nt = /* @__PURE__ */ e.forwardRef(function(a, i) {
401
- const { activateOnFocus: d = !1, className: r, loopFocus: u = !0, render: o, style: p, ...N } = a, { onValueChange: j, orientation: y, value: H, setTabMap: _, tabActivationDirection: g } = tt(), [L, n] = e.useState(0), [R, S] = e.useState(null), s = e.useRef(/* @__PURE__ */ new Set()), v = e.useRef(/* @__PURE__ */ new Set()), M = e.useRef(null);
400
+ }), Nt = /* @__PURE__ */ e.forwardRef(function(a, r) {
401
+ const { activateOnFocus: d = !1, className: i, loopFocus: u = !0, render: o, style: p, ...N } = a, { onValueChange: j, orientation: y, value: A, setTabMap: _, tabActivationDirection: g } = tt(), [L, n] = e.useState(0), [R, S] = e.useState(null), s = e.useRef(/* @__PURE__ */ new Set()), v = e.useRef(/* @__PURE__ */ new Set()), M = e.useRef(null);
402
402
  X(() => {
403
403
  if (typeof ResizeObserver > "u") return;
404
404
  const c = new ResizeObserver(() => {
@@ -417,7 +417,7 @@ var K = /* @__PURE__ */ (function(t) {
417
417
  })), w = F((c) => (v.current.add(c), M.current?.observe(c), () => {
418
418
  v.current.delete(c), M.current?.unobserve(c);
419
419
  })), E = F((c, C) => {
420
- c !== H && j(c, C);
420
+ c !== A && j(c, C);
421
421
  }), x = {
422
422
  orientation: y,
423
423
  tabActivationDirection: g
@@ -445,10 +445,10 @@ var K = /* @__PURE__ */ (function(t) {
445
445
  value: z,
446
446
  children: /* @__PURE__ */ (0, f.jsx)(Zt, {
447
447
  render: o,
448
- className: r,
448
+ className: i,
449
449
  style: p,
450
450
  state: x,
451
- refs: [i, S],
451
+ refs: [r, S],
452
452
  props: [T, N],
453
453
  stateAttributesMapping: G,
454
454
  highlightedIndex: L,
@@ -457,7 +457,7 @@ var K = /* @__PURE__ */ (function(t) {
457
457
  orientation: y,
458
458
  onHighlightedIndexChange: n,
459
459
  onMapChange: _,
460
- disabledIndices: Ht
460
+ disabledIndices: At
461
461
  })
462
462
  });
463
463
  }), Mt = ht("group/tabs-list inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col", {
@@ -589,11 +589,11 @@ var K = /* @__PURE__ */ (function(t) {
589
589
  "group-data-[size=lg]/tabs-list:[&_svg:not([class*='size-'])]:size-5",
590
590
  "group-data-[variant=boxed]/tabs-list:rounded-[10px] group-data-[variant=boxed]/tabs-list:flex-1 group-data-[variant=boxed]/tabs-list:h-[calc(100%-1px)]",
591
591
  "group-data-[variant=boxed]/tabs-list:data-active:bg-secondary group-data-[variant=boxed]/tabs-list:data-active:shadow-sm group-data-[variant=boxed]/tabs-list:data-active:text-foreground",
592
- "group-data-[variant=boxed]/tabs-list:hover:bg-primary-foreground dark:group-data-[variant=boxed]/tabs-list:hover:bg-input/30",
592
+ "group-data-[variant=boxed]/tabs-list:hover:bg-accent",
593
593
  "group-data-[orientation=vertical]/tabs:group-data-[variant=boxed]/tabs-list:flex-initial group-data-[orientation=vertical]/tabs:group-data-[variant=boxed]/tabs-list:justify-center",
594
594
  "group-data-[variant=pill]/tabs-list:rounded-full group-data-[variant=pill]/tabs-list:flex-1 group-data-[variant=pill]/tabs-list:h-[calc(100%-1px)]",
595
595
  "group-data-[variant=pill]/tabs-list:data-active:bg-background group-data-[variant=pill]/tabs-list:data-active:shadow-sm group-data-[variant=pill]/tabs-list:data-active:text-foreground",
596
- "group-data-[variant=pill]/tabs-list:hover:bg-primary-foreground dark:group-data-[variant=pill]/tabs-list:hover:bg-input/30",
596
+ "group-data-[variant=pill]/tabs-list:hover:bg-accent",
597
597
  "dark:group-data-[variant=pill]/tabs-list:data-active:bg-accent dark:group-data-[variant=pill]/tabs-list:data-active:text-accent-foreground dark:group-data-[variant=pill]/tabs-list:data-active:border-input",
598
598
  "group-data-[orientation=vertical]/tabs:group-data-[variant=pill]/tabs-list:flex-initial group-data-[orientation=vertical]/tabs:group-data-[variant=pill]/tabs-list:justify-center",
599
599
  "group-data-[variant=bordered]/tabs-list:bg-transparent group-data-[variant=bordered]/tabs-list:rounded-none",
@@ -624,39 +624,39 @@ var K = /* @__PURE__ */ (function(t) {
624
624
  "group-data-[variant=boxed]/tabs-list:group-data-[gradient]/tabs-list:data-active:bg-[linear-gradient(100deg,var(--air-100)/0.1,var(--primary)/0.1)] group-data-[variant=boxed]/tabs-list:group-data-[gradient]/tabs-list:data-active:text-primary",
625
625
  "group-data-[variant=pill]/tabs-list:group-data-[gradient]/tabs-list:data-active:bg-[linear-gradient(98deg,var(--air-100),var(--primary))] group-data-[variant=pill]/tabs-list:group-data-[gradient]/tabs-list:data-active:text-primary-foreground",
626
626
  "group-has-[[data-slot=tabs-indicator]]/tabs-list:after:hidden"
627
- ]), da = e.forwardRef(({ className: t, orientation: a = "horizontal", ...i }, d) => /* @__PURE__ */ (0, f.jsx)(Tt, {
627
+ ]), da = e.forwardRef(({ className: t, orientation: a = "horizontal", ...r }, d) => /* @__PURE__ */ (0, f.jsx)(Tt, {
628
628
  ref: d,
629
629
  "data-slot": "tabs",
630
630
  "data-orientation": a,
631
631
  className: P("gap-2 group/tabs flex data-[orientation=horizontal]:flex-col", t),
632
- ...i
633
- })), ua = e.forwardRef(({ className: t, variant: a = "boxed", size: i = "md", align: d = "start", borderPosition: r = "bottom", gradient: u, ...o }, p) => /* @__PURE__ */ (0, f.jsx)(Nt, {
632
+ ...r
633
+ })), ua = e.forwardRef(({ className: t, variant: a = "boxed", size: r = "md", align: d = "start", borderPosition: i = "bottom", gradient: u, ...o }, p) => /* @__PURE__ */ (0, f.jsx)(Nt, {
634
634
  ref: p,
635
635
  "data-slot": "tabs-list",
636
636
  "data-variant": a,
637
637
  "data-align": d,
638
- "data-size": i,
639
- "data-border-position": r,
638
+ "data-size": r,
639
+ "data-border-position": i,
640
640
  ...u ? { "data-gradient": "" } : {},
641
641
  className: P(Mt({
642
642
  variant: a,
643
- size: i,
643
+ size: r,
644
644
  align: d,
645
- borderPosition: r
645
+ borderPosition: i
646
646
  }), t),
647
647
  ...o
648
- })), ca = e.forwardRef(({ className: t, ...a }, i) => /* @__PURE__ */ (0, f.jsx)(wt, {
649
- ref: i,
648
+ })), ca = e.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ (0, f.jsx)(wt, {
649
+ ref: r,
650
650
  "data-slot": "tabs-trigger",
651
651
  className: P(St(), t),
652
652
  ...a
653
- })), ba = e.forwardRef(({ className: t, ...a }, i) => /* @__PURE__ */ (0, f.jsx)(Ct, {
654
- ref: i,
653
+ })), ba = e.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ (0, f.jsx)(Ct, {
654
+ ref: r,
655
655
  "data-slot": "tabs-content",
656
656
  className: P("flex-1 focus-visible:outline-none delight-fade-in", t),
657
657
  ...a
658
- })), fa = e.forwardRef(({ className: t, ...a }, i) => /* @__PURE__ */ (0, f.jsx)(zt, {
659
- ref: i,
658
+ })), fa = e.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ (0, f.jsx)(zt, {
659
+ ref: r,
660
660
  "data-slot": "tabs-indicator",
661
661
  className: P("absolute bottom-0 left-0 h-0.5 z-10 bg-primary/90", "w-[var(--active-tab-width)]", "transition-[transform,width] duration-300 ease-smooth motion-reduce:transition-none", t),
662
662
  style: { transform: "translateX(var(--active-tab-left, 0px))" },
@@ -667,11 +667,11 @@ ua.displayName = "TabsList";
667
667
  ca.displayName = "TabsTrigger";
668
668
  ba.displayName = "TabsContent";
669
669
  fa.displayName = "TabsIndicator";
670
- function rt({ value: t, defaultValue: a, onValueChange: i, orientation: d = "horizontal", children: r, className: u, ...o }) {
670
+ function it({ value: t, defaultValue: a, onValueChange: r, orientation: d = "horizontal", children: i, className: u, ...o }) {
671
671
  const [p, N] = ta({
672
672
  value: t,
673
673
  defaultValue: a ?? "",
674
- onChange: i
674
+ onChange: r
675
675
  }), j = e.useCallback((y) => {
676
676
  y !== null && N(y);
677
677
  }, [N]);
@@ -682,42 +682,42 @@ function rt({ value: t, defaultValue: a, onValueChange: i, orientation: d = "hor
682
682
  onValueChange: j,
683
683
  className: P("gap-2 group/tabs flex data-[orientation=horizontal]:flex-col", u),
684
684
  ...o,
685
- children: r
685
+ children: i
686
686
  });
687
687
  }
688
- function Et({ className: t, variant: a = "boxed", size: i = "md", align: d = "start", borderPosition: r = "bottom", gradient: u, ...o }) {
688
+ function Et({ className: t, variant: a = "boxed", size: r = "md", align: d = "start", borderPosition: i = "bottom", gradient: u, ...o }) {
689
689
  return /* @__PURE__ */ (0, f.jsx)(Nt, {
690
690
  "data-slot": "tabs-list",
691
691
  "data-variant": a,
692
- "data-size": i,
692
+ "data-size": r,
693
693
  "data-align": d,
694
- "data-border-position": r,
694
+ "data-border-position": i,
695
695
  ...u ? { "data-gradient": "" } : {},
696
696
  className: P(Mt({
697
697
  variant: a,
698
- size: i,
698
+ size: r,
699
699
  align: d,
700
- borderPosition: r
700
+ borderPosition: i
701
701
  }), t),
702
702
  ...o
703
703
  });
704
704
  }
705
- function it({ className: t, icon: a, iconPosition: i = "start", dot: d, badge: r, children: u, ...o }) {
705
+ function rt({ className: t, icon: a, iconPosition: r = "start", dot: d, badge: i, children: u, ...o }) {
706
706
  const p = a && !u;
707
707
  return /* @__PURE__ */ (0, f.jsxs)(wt, {
708
708
  "data-slot": "tabs-trigger",
709
- "data-icon-position": i,
709
+ "data-icon-position": r,
710
710
  "data-icon-only": p || void 0,
711
- className: P(St(), i === "top" && "flex-col gap-1 pb-6", p && "px-2", t),
711
+ className: P(St(), r === "top" && "flex-col gap-1 pb-6", p && "px-2", t),
712
712
  ...o,
713
713
  children: [
714
714
  a && /* @__PURE__ */ (0, f.jsx)("span", {
715
715
  "data-slot": "tabs-trigger-icon",
716
- className: P("shrink-0 [&_svg:not([class*='size-'])]:size-4", i === "top" && "[&_svg:not([class*='size-'])]:size-[18px]"),
716
+ className: P("shrink-0 [&_svg:not([class*='size-'])]:size-4", r === "top" && "[&_svg:not([class*='size-'])]:size-[18px]"),
717
717
  children: a
718
718
  }),
719
719
  u,
720
- r,
720
+ i,
721
721
  d && /* @__PURE__ */ (0, f.jsx)("span", {
722
722
  "data-slot": "tabs-trigger-dot",
723
723
  className: "absolute -top-0.5 -right-0.5 size-2 rounded-full bg-primary delight-status-pulse"
@@ -740,39 +740,39 @@ function It({ className: t, ...a }) {
740
740
  ...a
741
741
  });
742
742
  }
743
- function jt({ children: t, count: a, isActive: i, className: d, ...r }) {
744
- return /* @__PURE__ */ (0, f.jsxs)(it, {
743
+ function jt({ children: t, count: a, isActive: r, className: d, ...i }) {
744
+ return /* @__PURE__ */ (0, f.jsxs)(rt, {
745
745
  className: P("gap-2", d),
746
- ...r,
747
- children: [t, a !== void 0 && /* @__PURE__ */ (0, f.jsx)(ra, {
746
+ ...i,
747
+ children: [t, a !== void 0 && /* @__PURE__ */ (0, f.jsx)(ia, {
748
748
  variant: "soft",
749
- color: i ? "primary" : "secondary",
749
+ color: r ? "primary" : "secondary",
750
750
  size: "xs",
751
751
  className: "min-w-[18px]",
752
752
  children: a
753
753
  })]
754
754
  });
755
755
  }
756
- rt.displayName = "Tabs";
756
+ it.displayName = "Tabs";
757
757
  Et.displayName = "TabsList";
758
- it.displayName = "TabsTrigger";
758
+ rt.displayName = "TabsTrigger";
759
759
  Lt.displayName = "TabsContent";
760
760
  It.displayName = "TabsIndicator";
761
761
  jt.displayName = "TabsTriggerWithCount";
762
- var Aa = Object.assign(rt, {
763
- Root: rt,
762
+ var ka = Object.assign(it, {
763
+ Root: it,
764
764
  List: Et,
765
- Trigger: it,
765
+ Trigger: rt,
766
766
  Content: Lt,
767
767
  Indicator: It,
768
768
  TriggerWithCount: jt
769
769
  });
770
770
  export {
771
- it as a,
771
+ rt as a,
772
772
  Et as i,
773
773
  Lt as n,
774
774
  It as r,
775
- Aa as t
775
+ ka as t
776
776
  };
777
777
 
778
778
  //# sourceMappingURL=Tabs.js.map