acioleui 0.1.1 → 0.1.7

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/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as g, Fragment as BA } from "react/jsx-runtime";
2
2
  import w, { useId as tA, useRef as O, useState as D, useEffect as G, useMemo as _, useCallback as Z, useContext as oA, createContext as gA, useLayoutEffect as ZA } from "react";
3
3
  import { a2 as y } from "./generated-CrnQudud.js";
4
- import { A as xg, a as zg, b as yg, c as kg, d as Lg, e as Dg, f as Xg, g as Sg, h as Hg, i as Ig, B as jg, j as Tg, k as Gg, l as Wg, m as Jg, n as Eg, C as Og, o as Rg, p as Zg, q as Vg, r as Mg, s as qg, t as Yg, u as _g, v as $g, w as AC, x as oC, y as gC, z as CC, D as BC, E as FC, F as KC, G as QC, H as UC, I as eC, J as tC, K as nC, L as aC, M as rC, N as sC, O as iC, P as lC, Q as cC, R as dC, S as fC, T as uC, U as mC, V as vC, W as pC, X as hC, Y as bC, Z as wC, _ as PC, $ as NC, a0 as xC, a1 as zC, a3 as yC, a4 as kC, a5 as LC, a6 as DC, a7 as XC, a8 as SC, a9 as HC, aa as IC, ab as jC, ac as TC, ad as GC, ae as WC, af as JC, ag as EC, ah as OC, ai as RC, aj as ZC, ak as VC, al as MC, am as qC, an as YC, ao as _C, ap as $C, aq as AB, ar as oB, as as gB, at as CB, au as BB, av as FB, aw as KB, ax as QB, ay as UB, az as eB, aA as tB, aB as nB, aC as aB, aD as rB, aE as sB, aF as iB, aG as lB, aH as cB, aI as dB, aJ as fB, aK as uB, aL as mB, aM as vB, aN as pB, aO as hB, aP as bB, aQ as wB, aR as PB, aS as NB, aT as xB, aU as zB, aV as yB, aW as kB, aX as LB, aY as DB, aZ as XB, a_ as SB, a$ as HB, b0 as IB, b1 as jB, b2 as TB, b3 as GB, b4 as WB, b5 as JB, b6 as EB, b7 as OB, b8 as RB, b9 as ZB, ba as VB, bb as MB } from "./generated-CrnQudud.js";
4
+ import { A as xg, a as zg, b as yg, c as kg, d as Lg, e as Dg, f as Xg, g as Sg, h as Hg, i as Ig, B as jg, j as Tg, k as Gg, l as Wg, m as Jg, n as Eg, C as Og, o as Rg, p as Zg, q as Vg, r as Mg, s as qg, t as Yg, u as _g, v as $g, w as AC, x as oC, y as gC, z as CC, D as BC, E as FC, F as KC, G as QC, H as UC, I as eC, J as tC, K as aC, L as nC, M as rC, N as sC, O as iC, P as lC, Q as cC, R as dC, S as fC, T as uC, U as mC, V as vC, W as pC, X as hC, Y as bC, Z as wC, _ as PC, $ as NC, a0 as xC, a1 as zC, a3 as yC, a4 as kC, a5 as LC, a6 as DC, a7 as XC, a8 as SC, a9 as HC, aa as IC, ab as jC, ac as TC, ad as GC, ae as WC, af as JC, ag as EC, ah as OC, ai as RC, aj as ZC, ak as VC, al as MC, am as qC, an as YC, ao as _C, ap as $C, aq as AB, ar as oB, as as gB, at as CB, au as BB, av as FB, aw as KB, ax as QB, ay as UB, az as eB, aA as tB, aB, aC as nB, aD as rB, aE as sB, aF as iB, aG as lB, aH as cB, aI as dB, aJ as fB, aK as uB, aL as mB, aM as vB, aN as pB, aO as hB, aP as bB, aQ as wB, aR as PB, aS as NB, aT as xB, aU as zB, aV as yB, aW as kB, aX as LB, aY as DB, aZ as XB, a_ as SB, a$ as HB, b0 as IB, b1 as jB, b2 as TB, b3 as GB, b4 as WB, b5 as JB, b6 as EB, b7 as OB, b8 as RB, b9 as ZB, ba as VB, bb as MB } from "./generated-CrnQudud.js";
5
5
  import { createPortal as FA } from "react-dom";
6
6
  function r(...A) {
7
7
  const o = [];
@@ -75,17 +75,17 @@ const UA = w.forwardRef(
75
75
  iconRight: K = !1,
76
76
  full: U = !1,
77
77
  color: Q = "primary",
78
- children: n,
78
+ children: a,
79
79
  className: e,
80
- style: a,
80
+ style: n,
81
81
  ...l
82
82
  }, c) => {
83
83
  const u = B || C, h = KA(Q) ? Q : void 0, i = !Q || h ? void 0 : q(Q), d = i ? {
84
- ...a,
84
+ ...n,
85
85
  "--btn-base": i,
86
86
  "--btn-bg": i,
87
87
  "--btn-text": "var(--text-inverse)"
88
- } : a;
88
+ } : n;
89
89
  return /* @__PURE__ */ s(
90
90
  "button",
91
91
  {
@@ -112,7 +112,7 @@ const UA = w.forwardRef(
112
112
  }
113
113
  ),
114
114
  !C && F && !K && /* @__PURE__ */ g("span", { className: "btn__icon btn__icon--left", children: F }),
115
- n && /* @__PURE__ */ g("span", { className: "btn__label", children: n }),
115
+ a && /* @__PURE__ */ g("span", { className: "btn__label", children: a }),
116
116
  !C && F && K && /* @__PURE__ */ g("span", { className: "btn__icon btn__icon--right", children: F })
117
117
  ]
118
118
  }
@@ -121,7 +121,7 @@ const UA = w.forwardRef(
121
121
  );
122
122
  UA.displayName = "Button";
123
123
  const $ = w.forwardRef(
124
- ({ icon: A, variant: o = "solid", size: C = "medium", loading: B = !1, disabled: F, className: K, style: U, label: Q, ...n }, e) => /* @__PURE__ */ g(
124
+ ({ icon: A, variant: o = "solid", size: C = "medium", loading: B = !1, disabled: F, className: K, style: U, label: Q, ...a }, e) => /* @__PURE__ */ g(
125
125
  UA,
126
126
  {
127
127
  ref: e,
@@ -132,13 +132,13 @@ const $ = w.forwardRef(
132
132
  size: C,
133
133
  disabled: F || B,
134
134
  style: U,
135
- ...n,
135
+ ...a,
136
136
  children: B ? /* @__PURE__ */ g(sA, {}) : /* @__PURE__ */ g("span", { className: "icon-btn__content", children: A })
137
137
  }
138
138
  )
139
139
  );
140
140
  $.displayName = "IconButton";
141
- function nA(A) {
141
+ function aA(A) {
142
142
  return A ? A.toLowerCase().replace(new RegExp("^\\p{L}", "u"), (o) => o.toUpperCase()) : "";
143
143
  }
144
144
  function Fg(A) {
@@ -146,8 +146,8 @@ function Fg(A) {
146
146
  const B = C.variant ?? A.defaultVariants?.variant, F = C.size ?? A.defaultVariants?.size, K = [];
147
147
  if (A.base && K.push(A.base), B && A.variants?.[B] && K.push(A.variants[B]), F && A.sizes?.[F] && K.push(A.sizes[F]), A.compound)
148
148
  for (const U of A.compound) {
149
- const Q = U.variant === void 0 || U.variant === B, n = U.size === void 0 || U.size === F;
150
- Q && n && K.push(U.className);
149
+ const Q = U.variant === void 0 || U.variant === B, a = U.size === void 0 || U.size === F;
150
+ Q && a && K.push(U.className);
151
151
  }
152
152
  return C.className && K.push(C.className), K.filter(Boolean).join(" ");
153
153
  };
@@ -162,9 +162,9 @@ const J = ({
162
162
  style: U,
163
163
  ...Q
164
164
  }) => {
165
- const n = B || "p", e = KA(o) || ["default", "inverse"].includes(o) ? `text--color-${o}` : void 0;
165
+ const a = B || "p", e = KA(o) || ["default", "inverse"].includes(o) ? `text--color-${o}` : void 0;
166
166
  return /* @__PURE__ */ g(
167
- n,
167
+ a,
168
168
  {
169
169
  className: r(
170
170
  "text",
@@ -187,12 +187,12 @@ const J = ({
187
187
  gap: K = "0",
188
188
  className: U,
189
189
  style: Q,
190
- as: n,
190
+ as: a,
191
191
  width: e,
192
- height: a,
192
+ height: n,
193
193
  ...l
194
194
  }) => /* @__PURE__ */ g(
195
- n || "div",
195
+ a || "div",
196
196
  {
197
197
  className: r(
198
198
  "flex",
@@ -205,7 +205,7 @@ const J = ({
205
205
  ),
206
206
  style: {
207
207
  width: typeof e == "number" ? `${e}px` : e,
208
- height: typeof a == "number" ? `${a}px` : a,
208
+ height: typeof n == "number" ? `${n}px` : n,
209
209
  ...Q
210
210
  },
211
211
  ...l,
@@ -220,15 +220,15 @@ const J = ({
220
220
  className: K,
221
221
  htmlFor: U
222
222
  }) => /* @__PURE__ */ s(AA, { direction: "column", gap: "1", className: r("form-field-root", F && "form-field--full", K), children: [
223
- A && /* @__PURE__ */ g(J, { size: "small", weight: "medium", as: "label", htmlFor: U, className: "form-field-label", children: nA(A) }),
223
+ A && /* @__PURE__ */ g(J, { size: "small", weight: "medium", as: "label", htmlFor: U, className: "form-field-label", children: aA(A) }),
224
224
  B,
225
225
  o && /* @__PURE__ */ g(J, { as: "span", color: "error", size: "small", className: "form-field-message", role: "alert", children: o }),
226
226
  !o && C && /* @__PURE__ */ g(J, { as: "span", color: "neutral", size: "small", className: "form-field-message", children: C })
227
227
  ] }), iA = w.forwardRef(
228
- ({ label: A, error: o, hint: C, prefix: B, suffix: F, clearable: K = !1, size: U = "medium", full: Q = !1, className: n, id: e, ...a }, l) => {
229
- const c = e ?? (A ? `input-${nA(A)}` : void 0), u = w.useRef(null), h = a.value !== void 0, [i, d] = w.useState(
230
- !!(a.defaultValue ?? "")
231
- ), f = h ? String(a.value ?? "").length > 0 : i, k = (N) => {
228
+ ({ label: A, error: o, hint: C, prefix: B, suffix: F, clearable: K = !1, size: U = "medium", full: Q = !1, className: a, id: e, ...n }, l) => {
229
+ const c = e ?? (A ? `input-${aA(A)}` : void 0), u = w.useRef(null), h = n.value !== void 0, [i, d] = w.useState(
230
+ !!(n.defaultValue ?? "")
231
+ ), f = h ? String(n.value ?? "").length > 0 : i, k = (N) => {
232
232
  if (u.current = N, typeof l == "function") {
233
233
  l(N);
234
234
  return;
@@ -236,11 +236,11 @@ const J = ({
236
236
  l && (l.current = N);
237
237
  }, L = () => {
238
238
  const N = u.current;
239
- if (!N || a.disabled || a.readOnly)
239
+ if (!N || n.disabled || n.readOnly)
240
240
  return;
241
241
  Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set?.call(N, ""), N.dispatchEvent(new Event("input", { bubbles: !0 })), N.dispatchEvent(new Event("change", { bubbles: !0 })), h || d(!1), N.focus();
242
242
  }, p = (N) => {
243
- a.onInput?.(N), h || d(N.target.value.length > 0);
243
+ n.onInput?.(N), h || d(N.target.value.length > 0);
244
244
  }, z = K && f ? /* @__PURE__ */ g(
245
245
  $,
246
246
  {
@@ -253,7 +253,7 @@ const J = ({
253
253
  className: "input-field__clear"
254
254
  }
255
255
  ) : F;
256
- return /* @__PURE__ */ g(V, { label: A, error: o, hint: C, full: Q, htmlFor: c, className: n, children: /* @__PURE__ */ s("div", { className: r("input-field", `input-field--${U}`, o && "input-field--error", a.disabled && "input-field--disabled"), children: [
256
+ return /* @__PURE__ */ g(V, { label: A, error: o, hint: C, full: Q, htmlFor: c, className: a, children: /* @__PURE__ */ s("div", { className: r("input-field", `input-field--${U}`, o && "input-field--error", n.disabled && "input-field--disabled"), children: [
257
257
  B && /* @__PURE__ */ g("span", { className: "input-field__adornment input-field__adornment--prefix", children: B }),
258
258
  /* @__PURE__ */ g(
259
259
  "input",
@@ -267,7 +267,7 @@ const J = ({
267
267
  ),
268
268
  "aria-invalid": !!o,
269
269
  "aria-describedby": o ? `${c}-error` : C ? `${c}-hint` : void 0,
270
- ...a,
270
+ ...n,
271
271
  onInput: p
272
272
  }
273
273
  ),
@@ -277,12 +277,12 @@ const J = ({
277
277
  );
278
278
  iA.displayName = "Input";
279
279
  const qA = w.forwardRef(
280
- ({ label: A, error: o, hint: C, full: B = !1, resize: F = "vertical", className: K, id: U, rows: Q = 4, style: n, ...e }, a) => {
281
- const l = U ?? (A ? `textarea-${nA(A)}` : void 0);
280
+ ({ label: A, error: o, hint: C, full: B = !1, resize: F = "vertical", className: K, id: U, rows: Q = 4, style: a, ...e }, n) => {
281
+ const l = U ?? (A ? `textarea-${aA(A)}` : void 0);
282
282
  return /* @__PURE__ */ g(V, { label: A, error: o, hint: C, full: B, htmlFor: l, className: K, children: /* @__PURE__ */ g(
283
283
  "textarea",
284
284
  {
285
- ref: a,
285
+ ref: n,
286
286
  id: l,
287
287
  rows: Q,
288
288
  className: r(
@@ -291,7 +291,7 @@ const qA = w.forwardRef(
291
291
  ),
292
292
  "aria-invalid": !!o,
293
293
  "aria-describedby": o ? `${l}-error` : C ? `${l}-hint` : void 0,
294
- style: { resize: F, ...n ?? {} },
294
+ style: { resize: F, ...a ?? {} },
295
295
  ...e
296
296
  }
297
297
  ) });
@@ -315,7 +315,7 @@ const YA = w.forwardRef(
315
315
  );
316
316
  YA.displayName = "Search";
317
317
  const _A = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
318
- function aA(A) {
318
+ function nA(A) {
319
319
  if (!A) return null;
320
320
  const [o, C, B] = A.split("-").map(Number);
321
321
  return !o || !C || !B ? null : new Date(o, C - 1, B);
@@ -336,23 +336,23 @@ function Ao(A, o) {
336
336
  function oo(A) {
337
337
  const o = new Date(A.getFullYear(), A.getMonth(), 1), C = new Date(A.getFullYear(), A.getMonth() + 1, 0), B = o.getDay(), F = C.getDate(), K = [];
338
338
  for (let Q = B - 1; Q >= 0; Q -= 1) {
339
- const n = new Date(o);
340
- n.setDate(o.getDate() - (Q + 1)), K.push({ date: n, outside: !0 });
339
+ const a = new Date(o);
340
+ a.setDate(o.getDate() - (Q + 1)), K.push({ date: a, outside: !0 });
341
341
  }
342
342
  for (let Q = 1; Q <= F; Q += 1)
343
343
  K.push({ date: new Date(A.getFullYear(), A.getMonth(), Q), outside: !1 });
344
344
  const U = K.length <= 35 ? 35 : 42;
345
345
  for (; K.length < U; ) {
346
- const Q = K[K.length - 1]?.date ?? C, n = new Date(Q);
347
- n.setDate(Q.getDate() + 1), K.push({ date: n, outside: !0 });
346
+ const Q = K[K.length - 1]?.date ?? C, a = new Date(Q);
347
+ a.setDate(Q.getDate() + 1), K.push({ date: a, outside: !0 });
348
348
  }
349
349
  return K;
350
350
  }
351
351
  const go = w.forwardRef(
352
- ({ label: A, error: o, hint: C, full: B = !1, className: F, id: K, value: U, defaultValue: Q, onChange: n, placeholder: e = "dd/mm/aaaa", disabled: a, size: l, prefix: c, suffix: u, clearable: h, ...i }, d) => {
353
- const f = K ?? (A ? `datepicker-${nA(A)}` : void 0), k = w.useRef(null), L = w.useMemo(() => mA(/* @__PURE__ */ new Date()), []), p = w.useMemo(() => aA(U ?? Q ?? L), [Q, L, U]), [z, N] = w.useState(Q ?? L), [H, S] = w.useState(!1), x = aA(U ?? z), [X, I] = w.useState(p ?? /* @__PURE__ */ new Date()), E = U !== void 0;
352
+ ({ label: A, error: o, hint: C, full: B = !1, className: F, id: K, value: U, defaultValue: Q, onChange: a, placeholder: e = "dd/mm/aaaa", disabled: n, size: l, prefix: c, suffix: u, clearable: h, ...i }, d) => {
353
+ const f = K ?? (A ? `datepicker-${aA(A)}` : void 0), k = w.useRef(null), L = w.useMemo(() => mA(/* @__PURE__ */ new Date()), []), p = w.useMemo(() => nA(U ?? Q ?? L), [Q, L, U]), [z, N] = w.useState(Q ?? L), [H, S] = w.useState(!1), x = nA(U ?? z), [X, I] = w.useState(p ?? /* @__PURE__ */ new Date()), E = U !== void 0;
354
354
  w.useEffect(() => {
355
- const t = aA(U ?? z);
355
+ const t = nA(U ?? z);
356
356
  t && I(t);
357
357
  }, [z, U]), w.useEffect(() => {
358
358
  if (!H) return;
@@ -367,7 +367,7 @@ const go = w.forwardRef(
367
367
  target: { value: t, id: f, name: i.name },
368
368
  currentTarget: { value: t, id: f, name: i.name }
369
369
  };
370
- n?.(b);
370
+ a?.(b);
371
371
  }, m = (t) => {
372
372
  const b = mA(t);
373
373
  v(b), I(t);
@@ -387,7 +387,7 @@ const go = w.forwardRef(
387
387
  "date-picker__field",
388
388
  H && "date-picker__field--open",
389
389
  o && "date-picker__field--error",
390
- a && "date-picker__field--disabled"
390
+ n && "date-picker__field--disabled"
391
391
  ),
392
392
  children: [
393
393
  /* @__PURE__ */ g(
@@ -400,9 +400,9 @@ const go = w.forwardRef(
400
400
  value: $A(x),
401
401
  placeholder: e,
402
402
  readOnly: !0,
403
- disabled: a,
403
+ disabled: n,
404
404
  className: "date-picker__input",
405
- onClick: () => !a && S(!0)
405
+ onClick: () => !n && S(!0)
406
406
  }
407
407
  ),
408
408
  /* @__PURE__ */ g(
@@ -410,9 +410,9 @@ const go = w.forwardRef(
410
410
  {
411
411
  type: "button",
412
412
  className: "date-picker__toggle",
413
- onClick: () => !a && S((t) => !t),
413
+ onClick: () => !n && S((t) => !t),
414
414
  "aria-label": "Abrir calendario",
415
- disabled: a,
415
+ disabled: n,
416
416
  children: /* @__PURE__ */ g(y, { name: "calendar", size: 18 })
417
417
  }
418
418
  )
@@ -480,9 +480,9 @@ const Co = w.forwardRef(
480
480
  error: K,
481
481
  supportText: U,
482
482
  size: Q = "medium",
483
- placeholder: n = "Select...",
483
+ placeholder: a = "Select...",
484
484
  full: e = !1,
485
- disabled: a = !1,
485
+ disabled: n = !1,
486
486
  searchable: l = !1,
487
487
  searchPlaceholder: c = "Search...",
488
488
  className: u,
@@ -517,7 +517,7 @@ const Co = w.forwardRef(
517
517
  }, T = (t, b) => {
518
518
  b || (o === void 0 && x(t), B?.(t), z(!1));
519
519
  }, R = (t) => {
520
- if (!a) {
520
+ if (!n) {
521
521
  if ((t.key === "Enter" || t.key === " ") && (t.preventDefault(), p && X >= 0 && m[X] ? T(m[X].value, m[X].disabled) : z((b) => !b)), t.key === "Escape" && (t.preventDefault(), z(!1)), t.key === "ArrowDown" && (t.preventDefault(), p ? I((b) => P(b < 0 ? -1 : b, 1)) : z(!0)), t.key === "ArrowUp" && (t.preventDefault(), p && I((b) => P(b < 0 ? m.length : b, -1))), t.key === "Home" && p) {
522
522
  t.preventDefault();
523
523
  const b = m.findIndex((j) => !j.disabled);
@@ -541,19 +541,19 @@ const Co = w.forwardRef(
541
541
  "aria-controls": `${d}-listbox`,
542
542
  "aria-haspopup": "listbox",
543
543
  "aria-activedescendant": M,
544
- tabIndex: a ? -1 : 0,
544
+ tabIndex: n ? -1 : 0,
545
545
  className: r(
546
546
  "select__trigger",
547
547
  `select__trigger--${Q}`,
548
548
  p && "select__trigger--open",
549
549
  K && "select__trigger--error",
550
- a && "select__trigger--disabled"
550
+ n && "select__trigger--disabled"
551
551
  ),
552
- onClick: () => !a && z((t) => !t),
552
+ onClick: () => !n && z((t) => !t),
553
553
  onKeyDown: R,
554
554
  ...h,
555
555
  children: [
556
- /* @__PURE__ */ g("span", { className: r("select__value", !v && "select__value--placeholder"), children: v?.label ?? n }),
556
+ /* @__PURE__ */ g("span", { className: r("select__value", !v && "select__value--placeholder"), children: v?.label ?? a }),
557
557
  /* @__PURE__ */ g("span", { className: "select__icon", children: /* @__PURE__ */ g(y, { name: "chevron-down", size: 16 }) })
558
558
  ]
559
559
  }
@@ -611,9 +611,9 @@ const Bo = w.forwardRef(
611
611
  error: K,
612
612
  supportText: U,
613
613
  placeholder: Q = "Select options...",
614
- full: n = !1,
614
+ full: a = !1,
615
615
  disabled: e = !1,
616
- className: a,
616
+ className: n,
617
617
  ...l
618
618
  }, c) => {
619
619
  const u = tA(), h = O(null), i = O(null), [d, f] = D(!1), [k, L] = D(C), [p, z] = D(-1), N = o ?? k;
@@ -666,7 +666,7 @@ const Bo = w.forwardRef(
666
666
  }
667
667
  }
668
668
  }, E = d && p >= 0 ? `${u}-option-${p}` : void 0;
669
- return /* @__PURE__ */ g(V, { label: F, error: K, hint: U, full: n, className: a, htmlFor: u, children: /* @__PURE__ */ s("div", { ref: h, className: r("multiselect", n && "multiselect--full"), children: [
669
+ return /* @__PURE__ */ g(V, { label: F, error: K, hint: U, full: a, className: n, htmlFor: u, children: /* @__PURE__ */ s("div", { ref: h, className: r("multiselect", a && "multiselect--full"), children: [
670
670
  /* @__PURE__ */ s(
671
671
  "div",
672
672
  {
@@ -763,9 +763,9 @@ function Qo({
763
763
  placement: K = "bottom-start",
764
764
  offset: U = 8,
765
765
  disabled: Q = !1,
766
- matchTriggerWidth: n = !1,
766
+ matchTriggerWidth: a = !1,
767
767
  closeOnClickOutside: e = !0,
768
- className: a,
768
+ className: n,
769
769
  ...l
770
770
  }) {
771
771
  const c = tA(), u = O(null), h = O(null), [i, d] = D(B), [f, k] = D({
@@ -776,8 +776,8 @@ function Qo({
776
776
  }, [F, C]), z = Z(() => p(!1), [p]), N = Z(() => {
777
777
  if (!u.current) return;
778
778
  const x = u.current.getBoundingClientRect();
779
- k(Ko(x, K, U, n));
780
- }, [n, U, K]);
779
+ k(Ko(x, K, U, a));
780
+ }, [a, U, K]);
781
781
  G(() => {
782
782
  if (!L) return;
783
783
  N();
@@ -819,7 +819,7 @@ function Qo({
819
819
  {
820
820
  id: c,
821
821
  ref: h,
822
- className: r("dropdown__menu", a),
822
+ className: r("dropdown__menu", n),
823
823
  style: {
824
824
  top: f.top,
825
825
  left: f.left,
@@ -844,10 +844,10 @@ function Uo({
844
844
  leftContent: K,
845
845
  rightContent: U,
846
846
  onClick: Q,
847
- onSelect: n,
847
+ onSelect: a,
848
848
  ...e
849
849
  }) {
850
- const a = oA(bA);
850
+ const n = oA(bA);
851
851
  return /* @__PURE__ */ s(
852
852
  "button",
853
853
  {
@@ -860,7 +860,7 @@ function Uo({
860
860
  ),
861
861
  role: "menuitem",
862
862
  onClick: (l) => {
863
- Q?.(l), !l.defaultPrevented && (n?.(), F || a?.close());
863
+ Q?.(l), !l.defaultPrevented && (a?.(), F || n?.close());
864
864
  },
865
865
  ...e,
866
866
  children: [
@@ -880,9 +880,9 @@ eo.displayName = "Dropdown";
880
880
  function to(A, o) {
881
881
  typeof A == "function" ? A(o) : A && (A.current = o);
882
882
  }
883
- const no = w.forwardRef(
884
- ({ label: A, indeterminate: o = !1, supportText: C, className: B, id: F, disabled: K, color: U = "primary", style: Q, ...n }, e) => {
885
- const a = w.useId(), l = F ?? `checkbox-${a}`, c = w.useRef(null);
883
+ const ao = w.forwardRef(
884
+ ({ label: A, indeterminate: o = !1, supportText: C, className: B, id: F, disabled: K, color: U = "primary", style: Q, ...a }, e) => {
885
+ const n = w.useId(), l = F ?? `checkbox-${n}`, c = w.useRef(null);
886
886
  w.useEffect(() => {
887
887
  c.current && (c.current.indeterminate = o);
888
888
  }, [o]);
@@ -900,7 +900,7 @@ const no = w.forwardRef(
900
900
  className: "checkbox__input",
901
901
  disabled: K,
902
902
  "aria-checked": o ? "mixed" : void 0,
903
- ...n
903
+ ...a
904
904
  }
905
905
  ),
906
906
  /* @__PURE__ */ g("span", { className: "checkbox__box", "aria-hidden": "true", children: /* @__PURE__ */ g("span", { className: "checkbox__icon", children: o ? /* @__PURE__ */ g(y, { name: "minus" }) : /* @__PURE__ */ g(y, { name: "check" }) }) })
@@ -909,8 +909,8 @@ const no = w.forwardRef(
909
909
  ] }) });
910
910
  }
911
911
  );
912
- no.displayName = "Checkbox";
913
- const ao = w.forwardRef(({
912
+ ao.displayName = "Checkbox";
913
+ const no = w.forwardRef(({
914
914
  label: A,
915
915
  description: o,
916
916
  className: C,
@@ -919,12 +919,12 @@ const ao = w.forwardRef(({
919
919
  style: K,
920
920
  color: U = "primary",
921
921
  id: Q,
922
- ...n
922
+ ...a
923
923
  }, e) => {
924
- const a = w.useId(), l = Q ?? `radio-${a}`;
924
+ const n = w.useId(), l = Q ?? `radio-${n}`;
925
925
  return /* @__PURE__ */ g(V, { full: !0, className: C, htmlFor: l, error: F, children: /* @__PURE__ */ s("label", { className: r("radio", B && "radio--disabled", F && "radio--error"), style: { "--radio-color": q(U), ...K ?? {} }, children: [
926
926
  /* @__PURE__ */ s("span", { className: "radio__input-container", children: [
927
- /* @__PURE__ */ g("input", { ref: e, id: l, type: "radio", className: "radio__input", disabled: B, ...n }),
927
+ /* @__PURE__ */ g("input", { ref: e, id: l, type: "radio", className: "radio__input", disabled: B, ...a }),
928
928
  /* @__PURE__ */ g("span", { className: "radio__control", children: /* @__PURE__ */ g("span", { className: "radio__dot" }) })
929
929
  ] }),
930
930
  (A || o) && /* @__PURE__ */ s("span", { className: "radio__content", children: [
@@ -933,7 +933,7 @@ const ao = w.forwardRef(({
933
933
  ] })
934
934
  ] }) });
935
935
  });
936
- ao.displayName = "Radio";
936
+ no.displayName = "Radio";
937
937
  const Kg = ({
938
938
  value: A,
939
939
  defaultValue: o,
@@ -943,10 +943,10 @@ const Kg = ({
943
943
  label: K,
944
944
  supportText: U,
945
945
  className: Q,
946
- id: n,
946
+ id: a,
947
947
  ...e
948
948
  }) => {
949
- const a = w.useId(), l = n ?? `slider-${a}`, [c, u] = D(Number(A ?? o ?? 0)), h = A !== void 0 ? Number(A) : c, i = (h - Number(B)) / (Number(F) - Number(B)) * 100;
949
+ const n = w.useId(), l = a ?? `slider-${n}`, [c, u] = D(Number(A ?? o ?? 0)), h = A !== void 0 ? Number(A) : c, i = (h - Number(B)) / (Number(F) - Number(B)) * 100;
950
950
  return /* @__PURE__ */ g(V, { label: K, hint: U, full: !0, className: Q, htmlFor: l, children: /* @__PURE__ */ s("div", { className: "slider", children: [
951
951
  /* @__PURE__ */ g("div", { className: "slider__track", children: /* @__PURE__ */ g("div", { className: "slider__fill", style: { width: `${i}%` } }) }),
952
952
  /* @__PURE__ */ g(
@@ -989,9 +989,9 @@ const ro = w.forwardRef(
989
989
  step: K = 1,
990
990
  variant: U = "default",
991
991
  disabled: Q = !1,
992
- invalid: n = !1,
992
+ invalid: a = !1,
993
993
  fullWidth: e = !1,
994
- label: a,
994
+ label: n,
995
995
  hint: l,
996
996
  error: c,
997
997
  inputClassName: u,
@@ -999,7 +999,7 @@ const ro = w.forwardRef(
999
999
  id: i,
1000
1000
  ...d
1001
1001
  }, f) => {
1002
- const k = w.useId(), L = i ?? (a ? `number-input-${k}` : void 0), p = A !== void 0, [z, N] = w.useState(o), [H, S] = w.useState(
1002
+ const k = w.useId(), L = i ?? (n ? `number-input-${k}` : void 0), p = A !== void 0, [z, N] = w.useState(o), [H, S] = w.useState(
1003
1003
  String(p ? A ?? "" : o ?? "")
1004
1004
  ), x = p ? A : z;
1005
1005
  w.useEffect(() => {
@@ -1065,11 +1065,11 @@ const ro = w.forwardRef(
1065
1065
  }, P = () => {
1066
1066
  const b = rA((x ?? B ?? 0) - K, B, F);
1067
1067
  S(String(b)), p || N(b), C?.(b);
1068
- }, T = B !== void 0 && (x ?? -1 / 0) <= B, R = F !== void 0 && (x ?? 1 / 0) >= F, M = c ?? (n ? " " : void 0);
1068
+ }, T = B !== void 0 && (x ?? -1 / 0) <= B, R = F !== void 0 && (x ?? 1 / 0) >= F, M = c ?? (a ? " " : void 0);
1069
1069
  return /* @__PURE__ */ g(
1070
1070
  V,
1071
1071
  {
1072
- label: a,
1072
+ label: n,
1073
1073
  hint: l,
1074
1074
  error: M,
1075
1075
  full: e,
@@ -1109,7 +1109,7 @@ const ro = w.forwardRef(
1109
1109
  "aria-valuenow": x,
1110
1110
  "aria-valuemin": B,
1111
1111
  "aria-valuemax": F,
1112
- "aria-invalid": n || !!c,
1112
+ "aria-invalid": a || !!c,
1113
1113
  disabled: Q,
1114
1114
  value: H,
1115
1115
  onChange: I,
@@ -1174,9 +1174,9 @@ const so = ({
1174
1174
  showDots: K = !0,
1175
1175
  showArrows: U = !0,
1176
1176
  loop: Q = !1,
1177
- className: n
1177
+ className: a
1178
1178
  }) => {
1179
- const e = o !== void 0, [a, l] = D(C), c = e ? o ?? 0 : a, u = A.length, h = Q ? u - 1 : Math.max(0, u - F), i = h + 1, d = O(0), f = O(null), k = O(null), [L, p] = D(0);
1179
+ const e = o !== void 0, [n, l] = D(C), c = e ? o ?? 0 : n, u = A.length, h = Q ? u - 1 : Math.max(0, u - F), i = h + 1, d = O(0), f = O(null), k = O(null), [L, p] = D(0);
1180
1180
  ZA(() => {
1181
1181
  const m = f.current, P = k.current;
1182
1182
  if (!m || !P) return;
@@ -1204,7 +1204,7 @@ const so = ({
1204
1204
  return /* @__PURE__ */ s(
1205
1205
  "div",
1206
1206
  {
1207
- className: r("carousel", "carousel--horizontal", n),
1207
+ className: r("carousel", "carousel--horizontal", a),
1208
1208
  role: "region",
1209
1209
  "aria-label": "Carrossel",
1210
1210
  tabIndex: 0,
@@ -1294,22 +1294,22 @@ const Qg = ({
1294
1294
  title: K = "Drag and drop a file or click to upload",
1295
1295
  description: U = "Supported files depend on the accept property.",
1296
1296
  className: Q,
1297
- ...n
1297
+ ...a
1298
1298
  }) => {
1299
- const e = O(null), [a, l] = D(!1), [c, u] = D([]), [h, i] = D(null), d = (f) => {
1299
+ const e = O(null), [n, l] = D(!1), [c, u] = D([]), [h, i] = D(null), d = (f) => {
1300
1300
  i(null);
1301
1301
  let k = f;
1302
1302
  F && f.filter((z) => z.size > F).length > 0 && (i(`Some files exceed ${Math.round(F / 1024 / 1024)}MB.`), k = f.filter((z) => z.size <= F)), !C && k.length > 1 && (k = [k[0]]);
1303
1303
  const L = C ? [...c, ...k] : k;
1304
1304
  u(L), A?.(L);
1305
1305
  };
1306
- return /* @__PURE__ */ s("div", { className: r("file-upload", Q), ...n, children: [
1306
+ return /* @__PURE__ */ s("div", { className: r("file-upload", Q), ...a, children: [
1307
1307
  /* @__PURE__ */ s(
1308
1308
  "div",
1309
1309
  {
1310
1310
  className: r(
1311
1311
  "file-upload__dropzone",
1312
- a && "file-upload__dropzone--dragging",
1312
+ n && "file-upload__dropzone--dragging",
1313
1313
  B && "file-upload__dropzone--disabled",
1314
1314
  h && "file-upload__dropzone--error"
1315
1315
  ),
@@ -1395,7 +1395,7 @@ function tg({ padding: A = "md", variant: o = "default", as: C, children: B, cla
1395
1395
  }
1396
1396
  );
1397
1397
  }
1398
- function ng({ title: A, description: o, icon: C, action: B, children: F, className: K, ...U }) {
1398
+ function ag({ title: A, description: o, icon: C, action: B, children: F, className: K, ...U }) {
1399
1399
  return /* @__PURE__ */ s("div", { className: r("card-header", K), ...U, children: [
1400
1400
  /* @__PURE__ */ s("div", { className: "card-header__content", children: [
1401
1401
  (A || C) && /* @__PURE__ */ s("div", { className: "card-header__title-wrapper", children: [
@@ -1408,7 +1408,7 @@ function ng({ title: A, description: o, icon: C, action: B, children: F, classNa
1408
1408
  B && /* @__PURE__ */ g("div", { className: "card-header__action", children: B })
1409
1409
  ] });
1410
1410
  }
1411
- const ag = w.memo(function({ children: o, className: C, ...B }) {
1411
+ const ng = w.memo(function({ children: o, className: C, ...B }) {
1412
1412
  return /* @__PURE__ */ g("div", { className: r("card-body", C), ...B, children: o });
1413
1413
  }), rg = w.memo(function({ children: o, className: C, ...B }) {
1414
1414
  return /* @__PURE__ */ g("div", { className: r("card-footer", C), ...B, children: o });
@@ -1420,13 +1420,13 @@ const ag = w.memo(function({ children: o, className: C, ...B }) {
1420
1420
  surface: K = "default",
1421
1421
  border: U = !1,
1422
1422
  className: Q,
1423
- children: n,
1423
+ children: a,
1424
1424
  ...e
1425
- }, a) {
1425
+ }, n) {
1426
1426
  return /* @__PURE__ */ g(
1427
1427
  o || "div",
1428
1428
  {
1429
- ref: a,
1429
+ ref: n,
1430
1430
  className: r(
1431
1431
  "box",
1432
1432
  `box-padding--${C}`,
@@ -1437,7 +1437,7 @@ const ag = w.memo(function({ children: o, className: C, ...B }) {
1437
1437
  Q
1438
1438
  ),
1439
1439
  ...e,
1440
- children: n
1440
+ children: a
1441
1441
  }
1442
1442
  );
1443
1443
  }), ig = ({
@@ -1503,9 +1503,9 @@ function fo({
1503
1503
  disabled: K = !1,
1504
1504
  className: U,
1505
1505
  onClick: Q,
1506
- ...n
1506
+ ...a
1507
1507
  }) {
1508
- const { variant: e } = oA(NA), a = e === "checklist" && !C ? /* @__PURE__ */ g(y, { name: "check", size: 16 }) : C;
1508
+ const { variant: e } = oA(NA), n = e === "checklist" && !C ? /* @__PURE__ */ g(y, { name: "check", size: 16 }) : C;
1509
1509
  return /* @__PURE__ */ s(
1510
1510
  "div",
1511
1511
  {
@@ -1519,9 +1519,9 @@ function fo({
1519
1519
  role: "listitem",
1520
1520
  tabIndex: K ? -1 : Q ? 0 : void 0,
1521
1521
  onClick: K ? void 0 : Q,
1522
- ...n,
1522
+ ...a,
1523
1523
  children: [
1524
- a && /* @__PURE__ */ g("div", { className: "list-item__start", children: a }),
1524
+ n && /* @__PURE__ */ g("div", { className: "list-item__start", children: n }),
1525
1525
  /* @__PURE__ */ s("div", { className: "list-item__content", children: [
1526
1526
  /* @__PURE__ */ g(J, { as: "span", weight: "medium", className: "list-item__title", children: A }),
1527
1527
  o && /* @__PURE__ */ g(J, { as: "span", size: "small", color: "neutral", className: "list-item__description", children: o })
@@ -1539,8 +1539,8 @@ const xA = gA(null);
1539
1539
  function mo(A, o) {
1540
1540
  const C = Array.isArray(o) ? o : o ? [o] : [], [B, F] = D(C), K = Z((U) => {
1541
1541
  F((Q) => {
1542
- const n = Q.includes(U);
1543
- return A === "single" ? n ? [] : [U] : n ? Q.filter((e) => e !== U) : [...Q, U];
1542
+ const a = Q.includes(U);
1543
+ return A === "single" ? a ? [] : [U] : a ? Q.filter((e) => e !== U) : [...Q, U];
1544
1544
  });
1545
1545
  }, [A]);
1546
1546
  return { openItems: B, toggle: K };
@@ -1554,16 +1554,16 @@ const zA = w.memo(({
1554
1554
  className: K,
1555
1555
  ...U
1556
1556
  }) => {
1557
- const Q = oA(xA), n = Q ? Q.openItems.includes(F) : C, e = Q?.toggle, a = Z(() => {
1557
+ const Q = oA(xA), a = Q ? Q.openItems.includes(F) : C, e = Q?.toggle, n = Z(() => {
1558
1558
  e ? e(F) : B?.();
1559
1559
  }, [e, F, B]);
1560
- return /* @__PURE__ */ s("div", { className: r("accordion-item", n && "accordion-item--open", K), ...U, children: [
1560
+ return /* @__PURE__ */ s("div", { className: r("accordion-item", a && "accordion-item--open", K), ...U, children: [
1561
1561
  /* @__PURE__ */ s(
1562
1562
  "button",
1563
1563
  {
1564
1564
  className: "accordion-item__trigger",
1565
- onClick: a,
1566
- "aria-expanded": n,
1565
+ onClick: n,
1566
+ "aria-expanded": a,
1567
1567
  "aria-controls": `accordion-content-${F}`,
1568
1568
  id: `accordion-trigger-${F}`,
1569
1569
  type: "button",
@@ -1580,7 +1580,7 @@ const zA = w.memo(({
1580
1580
  id: `accordion-content-${F}`,
1581
1581
  role: "region",
1582
1582
  "aria-labelledby": `accordion-trigger-${F}`,
1583
- hidden: !n,
1583
+ hidden: !a,
1584
1584
  children: /* @__PURE__ */ g("div", { className: "accordion-item__content-inner", children: o })
1585
1585
  }
1586
1586
  )
@@ -1629,20 +1629,20 @@ const lA = ({
1629
1629
  children: K,
1630
1630
  href: U,
1631
1631
  to: Q,
1632
- style: n,
1632
+ style: a,
1633
1633
  ...e
1634
1634
  }) => {
1635
- const a = typeof window < "u" ? window.location.pathname : "", l = Q ?? U, c = B || "a", u = (d) => {
1635
+ const n = typeof window < "u" ? window.location.pathname : "", l = Q ?? U, c = B || "a", u = (d) => {
1636
1636
  const f = d.split("?")[0].split("#")[0];
1637
1637
  return f.endsWith("/") && f !== "/" ? f.slice(0, -1) : f;
1638
- }, h = l && a ? u(a) === u(l) : !1, i = C ?? h;
1638
+ }, h = l && n ? u(n) === u(l) : !1, i = C ?? h;
1639
1639
  return /* @__PURE__ */ g(
1640
1640
  c,
1641
1641
  {
1642
1642
  className: r("link", o && "link--underline", i && "link--active", F),
1643
1643
  style: {
1644
1644
  "--link-color": q(A),
1645
- ...n ?? {}
1645
+ ...a ?? {}
1646
1646
  },
1647
1647
  href: l,
1648
1648
  "aria-current": i ? "page" : void 0,
@@ -1698,17 +1698,17 @@ function ug({
1698
1698
  rightIcon: K,
1699
1699
  closable: U,
1700
1700
  onRemove: Q,
1701
- className: n,
1701
+ className: a,
1702
1702
  style: e,
1703
- ...a
1703
+ ...n
1704
1704
  }) {
1705
1705
  const l = U || !!Q;
1706
1706
  return /* @__PURE__ */ s(
1707
1707
  "span",
1708
1708
  {
1709
- className: r("tag", `tag--variant-${o}`, `tag--size-${C}`, n),
1709
+ className: r("tag", `tag--variant-${o}`, `tag--size-${C}`, a),
1710
1710
  style: { "--tag-color": q(B), ...e ?? {} },
1711
- ...a,
1711
+ ...n,
1712
1712
  children: [
1713
1713
  F && /* @__PURE__ */ g("span", { className: "tag__icon", children: F }),
1714
1714
  /* @__PURE__ */ g("span", { className: "tag__label", children: A }),
@@ -1726,9 +1726,9 @@ const yA = w.forwardRef(({
1726
1726
  className: F,
1727
1727
  ...K
1728
1728
  }, U) => {
1729
- const Q = (n) => {
1730
- if (!n) return "";
1731
- const e = n.split(" ");
1729
+ const Q = (a) => {
1730
+ if (!a) return "";
1731
+ const e = a.split(" ");
1732
1732
  return e.length === 1 ? e[0].substring(0, 2) : (e[0][0] + e[e.length - 1][0]).toUpperCase();
1733
1733
  };
1734
1734
  return /* @__PURE__ */ s("div", { ref: U, className: r("avatar", `avatar--${C}`, F), ...K, children: [
@@ -1770,14 +1770,14 @@ const bo = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wBDAAEBAQEBAQEBA
1770
1770
  style: K,
1771
1771
  fallback: U,
1772
1772
  width: Q,
1773
- height: n,
1773
+ height: a,
1774
1774
  ...e
1775
1775
  }) => {
1776
- const [a, l] = D(!1), [c, u] = D(!1);
1776
+ const [n, l] = D(!1), [c, u] = D(!1);
1777
1777
  if (c && U) return /* @__PURE__ */ g(BA, { children: U });
1778
- const h = A || bo, i = typeof Q == "number" ? `${Q}px` : Q, d = typeof n == "number" ? `${n}px` : n;
1778
+ const h = A || bo, i = typeof Q == "number" ? `${Q}px` : Q, d = typeof a == "number" ? `${a}px` : a;
1779
1779
  return /* @__PURE__ */ s("div", { className: r("image-wrapper", F), style: K, children: [
1780
- !a && !c && /* @__PURE__ */ g("div", { className: r("image-skeleton", `image-radius--${B}`), children: /* @__PURE__ */ g(kA, { width: i, height: d }) }),
1780
+ !n && !c && /* @__PURE__ */ g("div", { className: r("image-skeleton", `image-radius--${B}`), children: /* @__PURE__ */ g(kA, { width: i, height: d }) }),
1781
1781
  /* @__PURE__ */ g(
1782
1782
  "img",
1783
1783
  {
@@ -1785,7 +1785,7 @@ const bo = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wBDAAEBAQEBAQEBA
1785
1785
  alt: o,
1786
1786
  width: i,
1787
1787
  height: d,
1788
- className: r("image", `image-fit--${C}`, `image-radius--${B}`, a && "image--loaded"),
1788
+ className: r("image", `image-fit--${C}`, `image-radius--${B}`, n && "image--loaded"),
1789
1789
  onLoad: () => l(!0),
1790
1790
  onError: () => u(!0),
1791
1791
  ...e
@@ -1823,10 +1823,10 @@ const Po = ({
1823
1823
  ...K
1824
1824
  }) => {
1825
1825
  const U = _(() => {
1826
- const Q = [], n = Math.max(1, A - 1), e = Math.min(o, A + 1);
1827
- n > 1 && (Q.push(1), n > 2 && Q.push("dots-start"));
1828
- for (let a = n; a <= e; a += 1)
1829
- Q.push(a);
1826
+ const Q = [], a = Math.max(1, A - 1), e = Math.min(o, A + 1);
1827
+ a > 1 && (Q.push(1), a > 2 && Q.push("dots-start"));
1828
+ for (let n = a; n <= e; n += 1)
1829
+ Q.push(n);
1830
1830
  return e < o && (e < o - 1 && Q.push("dots-end"), Q.push(o)), Q;
1831
1831
  }, [A, o]);
1832
1832
  return /* @__PURE__ */ s("nav", { className: r("pagination", F), "aria-label": "Pagination", ...K, children: [
@@ -1841,9 +1841,9 @@ const Po = ({
1841
1841
  children: /* @__PURE__ */ g(y, { name: "chevron-left", size: 16 })
1842
1842
  }
1843
1843
  ),
1844
- U.map((Q, n) => {
1844
+ U.map((Q, a) => {
1845
1845
  if (typeof Q == "string")
1846
- return /* @__PURE__ */ g("span", { className: "pagination__dots", children: "..." }, `${Q}-${n}`);
1846
+ return /* @__PURE__ */ g("span", { className: "pagination__dots", children: "..." }, `${Q}-${a}`);
1847
1847
  const e = Q === A;
1848
1848
  return /* @__PURE__ */ g(
1849
1849
  "button",
@@ -1922,11 +1922,11 @@ const zo = ({
1922
1922
  footer: K,
1923
1923
  size: U = "medium",
1924
1924
  closeOnOverlayClick: Q = !0,
1925
- className: n
1925
+ className: a
1926
1926
  }) => {
1927
- const [e, a] = D(!1);
1927
+ const [e, n] = D(!1);
1928
1928
  return LA({ isOpen: A, onClose: o, closeOnEscape: !0, lockScroll: !0 }), G(() => {
1929
- A && a(!0);
1929
+ A && n(!0);
1930
1930
  }, [A]), !A || !e ? null : FA(
1931
1931
  /* @__PURE__ */ g(
1932
1932
  "div",
@@ -1941,7 +1941,7 @@ const zo = ({
1941
1941
  "aria-labelledby": C ? "modal-title" : void 0,
1942
1942
  "aria-describedby": B ? "modal-description" : void 0,
1943
1943
  tabIndex: -1,
1944
- className: r("modal", `modal--${U}`, n),
1944
+ className: r("modal", `modal--${U}`, a),
1945
1945
  onClick: (l) => l.stopPropagation(),
1946
1946
  children: [
1947
1947
  (C || B) && /* @__PURE__ */ s("div", { className: "modal-header", children: [
@@ -1981,14 +1981,14 @@ const yo = ({
1981
1981
  footer: K,
1982
1982
  size: U = "medium",
1983
1983
  className: Q,
1984
- closeOnOverlayClick: n = !0
1984
+ closeOnOverlayClick: a = !0
1985
1985
  }) => {
1986
- const [e, a] = D(!1);
1986
+ const [e, n] = D(!1);
1987
1987
  return LA({ isOpen: A, onClose: o, closeOnEscape: !0, lockScroll: !0 }), G(() => {
1988
- a(!0);
1988
+ n(!0);
1989
1989
  }, []), e ? FA(
1990
1990
  /* @__PURE__ */ s(BA, { children: [
1991
- A && /* @__PURE__ */ g("div", { className: "drawer-overlay", onClick: n ? o : void 0 }),
1991
+ A && /* @__PURE__ */ g("div", { className: "drawer-overlay", onClick: a ? o : void 0 }),
1992
1992
  /* @__PURE__ */ s(
1993
1993
  "div",
1994
1994
  {
@@ -2027,28 +2027,28 @@ const yo = ({
2027
2027
  };
2028
2028
  yo.displayName = "Drawer";
2029
2029
  function pg({ content: A, placement: o = "top", children: C, delay: B = 300 }) {
2030
- const F = tA(), K = O(null), U = O(), [Q, n] = D(!1), [e, a] = D({ top: 0, left: 0 }), l = Z(() => {
2030
+ const F = tA(), K = O(null), U = O(), [Q, a] = D(!1), [e, n] = D({ top: 0, left: 0 }), l = Z(() => {
2031
2031
  if (!K.current) return;
2032
2032
  const i = K.current.getBoundingClientRect(), d = 10;
2033
2033
  if (o === "top") {
2034
- a({ top: i.top + window.scrollY - d, left: i.left + i.width / 2 + window.scrollX });
2034
+ n({ top: i.top + window.scrollY - d, left: i.left + i.width / 2 + window.scrollX });
2035
2035
  return;
2036
2036
  }
2037
2037
  if (o === "bottom") {
2038
- a({ top: i.bottom + window.scrollY + d, left: i.left + i.width / 2 + window.scrollX });
2038
+ n({ top: i.bottom + window.scrollY + d, left: i.left + i.width / 2 + window.scrollX });
2039
2039
  return;
2040
2040
  }
2041
2041
  if (o === "left") {
2042
- a({ top: i.top + i.height / 2 + window.scrollY, left: i.left + window.scrollX - d });
2042
+ n({ top: i.top + i.height / 2 + window.scrollY, left: i.left + window.scrollX - d });
2043
2043
  return;
2044
2044
  }
2045
- a({ top: i.top + i.height / 2 + window.scrollY, left: i.right + window.scrollX + d });
2045
+ n({ top: i.top + i.height / 2 + window.scrollY, left: i.right + window.scrollX + d });
2046
2046
  }, [o]), c = Z(() => {
2047
2047
  U.current = window.setTimeout(() => {
2048
- l(), n(!0);
2048
+ l(), a(!0);
2049
2049
  }, B);
2050
2050
  }, [B, l]), u = Z(() => {
2051
- window.clearTimeout(U.current), n(!1);
2051
+ window.clearTimeout(U.current), a(!1);
2052
2052
  }, []);
2053
2053
  G(() => {
2054
2054
  if (!Q) return;
@@ -2102,8 +2102,8 @@ function ko({ toast: A, onDismiss: o }) {
2102
2102
  B(!0), setTimeout(() => o(A.id), 250);
2103
2103
  }, [A.id, o]);
2104
2104
  G(() => {
2105
- const n = setTimeout(F, A.duration ?? 4e3);
2106
- return () => clearTimeout(n);
2105
+ const a = setTimeout(F, A.duration ?? 4e3);
2106
+ return () => clearTimeout(a);
2107
2107
  }, [F, A.duration]);
2108
2108
  const K = A.color ?? "primary", U = A.variant ?? "default", Q = pA[K] || pA.primary;
2109
2109
  return /* @__PURE__ */ s("div", { className: r("toast", `toast--${K}`, U === "snackbar" && "toast--snackbar", C && "toast--exiting"), children: [
@@ -2135,15 +2135,15 @@ const Lo = ({
2135
2135
  F(!0);
2136
2136
  }, []);
2137
2137
  const Q = Z((e) => {
2138
- const a = crypto.randomUUID();
2139
- U((l) => [...l.slice(-(C - 1)), { ...e, id: a }]);
2140
- }, [C]), n = Z((e) => {
2141
- U((a) => a.filter((l) => l.id !== e));
2138
+ const n = crypto.randomUUID();
2139
+ U((l) => [...l.slice(-(C - 1)), { ...e, id: n }]);
2140
+ }, [C]), a = Z((e) => {
2141
+ U((n) => n.filter((l) => l.id !== e));
2142
2142
  }, []);
2143
- return /* @__PURE__ */ s(DA.Provider, { value: { toast: Q, dismiss: n }, children: [
2143
+ return /* @__PURE__ */ s(DA.Provider, { value: { toast: Q, dismiss: a }, children: [
2144
2144
  A,
2145
2145
  B && FA(
2146
- /* @__PURE__ */ g("div", { className: r("toast-container", `toast-container--${o}`), children: K.map((e) => /* @__PURE__ */ g(ko, { toast: e, onDismiss: n }, e.id)) }),
2146
+ /* @__PURE__ */ g("div", { className: r("toast-container", `toast-container--${o}`), children: K.map((e) => /* @__PURE__ */ g(ko, { toast: e, onDismiss: a }, e.id)) }),
2147
2147
  document.body
2148
2148
  )
2149
2149
  ] });
@@ -2236,21 +2236,21 @@ function To({
2236
2236
  searchPlaceholder: U = "Buscar item",
2237
2237
  ...Q
2238
2238
  }) {
2239
- const [n, e] = D(o), [a, l] = D(""), c = A !== void 0, u = c ? A : n, i = _(() => SA(F), [F]) > K && !u, d = w.Children.toArray(F), f = d.findIndex(
2239
+ const [a, e] = D(o), [n, l] = D(""), c = A !== void 0, u = c ? A : a, i = _(() => SA(F), [F]) > K && !u, d = w.Children.toArray(F), f = d.findIndex(
2240
2240
  (p) => w.isValidElement(p) && p.type === IA
2241
- ), k = () => {
2241
+ ), k = Z(() => {
2242
2242
  const p = !u;
2243
2243
  c || e(p), C?.(p);
2244
- }, L = _(
2244
+ }, [u, c, C]), L = _(
2245
2245
  () => ({
2246
2246
  collapsed: u,
2247
2247
  toggleCollapsed: k,
2248
- searchTerm: a,
2248
+ searchTerm: n,
2249
2249
  setSearchTerm: l,
2250
2250
  enableSearch: i,
2251
2251
  searchPlaceholder: U
2252
2252
  }),
2253
- [u, a, i, U]
2253
+ [u, k, n, i, U]
2254
2254
  );
2255
2255
  return /* @__PURE__ */ g(XA.Provider, { value: L, children: /* @__PURE__ */ s(
2256
2256
  "aside",
@@ -2273,8 +2273,8 @@ function Go({
2273
2273
  onClick: K,
2274
2274
  ...U
2275
2275
  }) {
2276
- const { collapsed: Q, toggleCollapsed: n, enableSearch: e, searchTerm: a, setSearchTerm: l, searchPlaceholder: c } = cA(), u = (h) => {
2277
- C && n(), K?.(h);
2276
+ const { collapsed: Q, toggleCollapsed: a, enableSearch: e, searchTerm: n, setSearchTerm: l, searchPlaceholder: c } = cA(), u = (h) => {
2277
+ C && a(), K?.(h);
2278
2278
  };
2279
2279
  return /* @__PURE__ */ s(BA, { children: [
2280
2280
  /* @__PURE__ */ s(
@@ -2292,7 +2292,7 @@ function Go({
2292
2292
  e ? /* @__PURE__ */ g("div", { className: "sidebar__search sidebar__search--header", children: /* @__PURE__ */ g(
2293
2293
  iA,
2294
2294
  {
2295
- value: a,
2295
+ value: n,
2296
2296
  onChange: (h) => l(h.target.value),
2297
2297
  placeholder: c,
2298
2298
  prefix: /* @__PURE__ */ g(y, { name: "search", size: 16 }),
@@ -2311,8 +2311,8 @@ function dA({
2311
2311
  searchText: K,
2312
2312
  ...U
2313
2313
  }) {
2314
- const { collapsed: Q, searchTerm: n } = cA(), e = C || "button", a = (K ?? eA(F)).trim().toLocaleLowerCase(), l = n.trim().toLocaleLowerCase();
2315
- return !l || a.includes(l) ? /* @__PURE__ */ s(
2314
+ const { collapsed: Q, searchTerm: a } = cA(), e = C || "button", n = (K ?? eA(F)).trim().toLocaleLowerCase(), l = a.trim().toLocaleLowerCase();
2315
+ return !l || n.includes(l) ? /* @__PURE__ */ s(
2316
2316
  e,
2317
2317
  {
2318
2318
  className: r(
@@ -2337,9 +2337,9 @@ function Wo({
2337
2337
  collapsible: K = !0,
2338
2338
  className: U,
2339
2339
  children: Q,
2340
- ...n
2340
+ ...a
2341
2341
  }) {
2342
- const { collapsed: e, searchTerm: a } = cA(), [l, c] = D(C), u = B !== void 0, h = u ? B : l, i = a.trim().toLocaleLowerCase(), d = eA(Q).toLocaleLowerCase(), f = !i || d.includes(i), k = !!(i && f), L = e ? !1 : k || h, p = HA(Q);
2342
+ const { collapsed: e, searchTerm: n } = cA(), [l, c] = D(C), u = B !== void 0, h = u ? B : l, i = n.trim().toLocaleLowerCase(), d = eA(Q).toLocaleLowerCase(), f = !i || d.includes(i), k = !!(i && f), L = e ? !1 : k || h, p = HA(Q);
2343
2343
  if (!f)
2344
2344
  return null;
2345
2345
  const z = (N) => {
@@ -2357,7 +2357,7 @@ function Wo({
2357
2357
  "div",
2358
2358
  {
2359
2359
  className: r("sidebar__group", L && "sidebar__group--open", U),
2360
- ...n,
2360
+ ...a,
2361
2361
  children: [
2362
2362
  /* @__PURE__ */ s(
2363
2363
  "button",
@@ -2412,10 +2412,10 @@ const jA = gA(void 0), Eo = () => {
2412
2412
  }, [K, C]);
2413
2413
  const Q = () => {
2414
2414
  U((e) => e === "light" ? "dark" : "light");
2415
- }, n = (e) => {
2415
+ }, a = (e) => {
2416
2416
  U(e);
2417
2417
  };
2418
- return /* @__PURE__ */ g(jA.Provider, { value: { theme: K, toggleTheme: Q, setTheme: n }, children: /* @__PURE__ */ g(Lo, { position: B, maxToasts: F, children: A }) });
2418
+ return /* @__PURE__ */ g(jA.Provider, { value: { theme: K, toggleTheme: Q, setTheme: a }, children: /* @__PURE__ */ g(Lo, { position: B, maxToasts: F, children: A }) });
2419
2419
  }, Oo = ({
2420
2420
  logo: A,
2421
2421
  navItems: o = [],
@@ -2425,10 +2425,10 @@ const jA = gA(void 0), Eo = () => {
2425
2425
  sticky: K = !1,
2426
2426
  className: U,
2427
2427
  children: Q,
2428
- contentInside: n = !1,
2428
+ contentInside: a = !1,
2429
2429
  ...e
2430
2430
  }) => {
2431
- const { theme: a, toggleTheme: l } = Eo(), c = typeof window < "u" ? window.location.pathname : "", u = (i) => {
2431
+ const { theme: n, toggleTheme: l } = Eo(), c = typeof window < "u" ? window.location.pathname : "", u = (i) => {
2432
2432
  const d = i.split("?")[0].split("#")[0];
2433
2433
  return d.endsWith("/") && d !== "/" ? d.slice(0, -1) : d;
2434
2434
  }, h = () => /* @__PURE__ */ g(AA, { as: "nav", align: "center", gap: "5", className: "topbar__nav", children: o.map((i, d) => {
@@ -2464,21 +2464,21 @@ const jA = gA(void 0), Eo = () => {
2464
2464
  "topbar",
2465
2465
  K && "topbar--sticky",
2466
2466
  C === "right" && "topbar--nav-right",
2467
- n && "topbar--with-children",
2467
+ a && "topbar--with-children",
2468
2468
  U
2469
2469
  ),
2470
2470
  ...e,
2471
2471
  children: [
2472
2472
  /* @__PURE__ */ g(AA, { align: "center", gap: "4", className: "topbar__left", children: A && /* @__PURE__ */ g("div", { className: "topbar__logo", children: A }) }),
2473
2473
  C === "center" && o.length > 0 && /* @__PURE__ */ g(AA, { align: "center", justify: "center", className: "topbar__center", children: h() }),
2474
- n && Q && /* @__PURE__ */ g("div", { className: "topbar__content", children: Q }),
2474
+ a && Q && /* @__PURE__ */ g("div", { className: "topbar__content", children: Q }),
2475
2475
  /* @__PURE__ */ s(AA, { align: "center", gap: "4", className: "topbar__right", children: [
2476
2476
  C === "right" && o.length > 0 && h(),
2477
2477
  B,
2478
2478
  F && /* @__PURE__ */ g(
2479
2479
  $,
2480
2480
  {
2481
- icon: a === "dark" ? /* @__PURE__ */ g(y, { name: "sun", size: 16 }) : /* @__PURE__ */ g(y, { name: "moon", size: 16 }),
2481
+ icon: n === "dark" ? /* @__PURE__ */ g(y, { name: "sun", size: 16 }) : /* @__PURE__ */ g(y, { name: "moon", size: 16 }),
2482
2482
  variant: "ghost",
2483
2483
  size: "small",
2484
2484
  label: "Toggle theme",
@@ -2486,7 +2486,7 @@ const jA = gA(void 0), Eo = () => {
2486
2486
  }
2487
2487
  )
2488
2488
  ] }),
2489
- !n && Q && /* @__PURE__ */ g("div", { className: "topbar__children", children: Q })
2489
+ !a && Q && /* @__PURE__ */ g("div", { className: "topbar__children", children: Q })
2490
2490
  ]
2491
2491
  }
2492
2492
  );
@@ -2501,8 +2501,8 @@ const wg = ({
2501
2501
  mb: K,
2502
2502
  action: U,
2503
2503
  className: Q,
2504
- ...n
2505
- }) => /* @__PURE__ */ s("div", { className: r("page-header", Q), ...n, style: { marginBottom: `${K || "var(--space-6)"}` }, children: [
2504
+ ...a
2505
+ }) => /* @__PURE__ */ s("div", { className: r("page-header", Q), ...a, style: { marginBottom: `${K || "var(--space-6)"}` }, children: [
2506
2506
  /* @__PURE__ */ s("div", { className: "page-header__left", children: [
2507
2507
  C && /* @__PURE__ */ g(
2508
2508
  $,
@@ -2554,21 +2554,21 @@ const Zo = ({
2554
2554
  showValue: K = !1,
2555
2555
  label: U,
2556
2556
  className: Q,
2557
- style: n,
2557
+ style: a,
2558
2558
  ...e
2559
2559
  }) => {
2560
- const a = Math.min(100, Math.max(0, A / o * 100));
2560
+ const n = Math.min(100, Math.max(0, A / o * 100));
2561
2561
  return /* @__PURE__ */ s(
2562
2562
  "div",
2563
2563
  {
2564
2564
  className: r("progress-wrapper", Q),
2565
- style: { "--progress-color": q(B), ...n ?? {} },
2565
+ style: { "--progress-color": q(B), ...a ?? {} },
2566
2566
  ...e,
2567
2567
  children: [
2568
2568
  (U || K) && /* @__PURE__ */ s("div", { className: "progress-label", children: [
2569
2569
  U && /* @__PURE__ */ g("span", { children: U }),
2570
2570
  K && /* @__PURE__ */ s("span", { className: "progress-value", children: [
2571
- Math.round(a),
2571
+ Math.round(n),
2572
2572
  "%"
2573
2573
  ] })
2574
2574
  ] }),
@@ -2580,7 +2580,7 @@ const Zo = ({
2580
2580
  "aria-valuenow": A,
2581
2581
  "aria-valuemin": 0,
2582
2582
  "aria-valuemax": o,
2583
- children: /* @__PURE__ */ g("div", { className: "progress-bar", style: { width: `${a}%` } })
2583
+ children: /* @__PURE__ */ g("div", { className: "progress-bar", style: { width: `${n}%` } })
2584
2584
  }
2585
2585
  )
2586
2586
  ]
@@ -2597,8 +2597,8 @@ const Vo = ({
2597
2597
  variant: K = "default",
2598
2598
  size: U = "medium"
2599
2599
  }) => {
2600
- const [Q, n] = D(o ?? A[0]?.value ?? ""), e = C ?? Q, a = (c) => {
2601
- C === void 0 && n(c), B?.(c);
2600
+ const [Q, a] = D(o ?? A[0]?.value ?? ""), e = C ?? Q, n = (c) => {
2601
+ C === void 0 && a(c), B?.(c);
2602
2602
  }, l = A.find((c) => c.value === e);
2603
2603
  return /* @__PURE__ */ s("div", { className: r("tabs", `tabs--${K}`, `tabs--${U}`, F), children: [
2604
2604
  /* @__PURE__ */ g("div", { className: "tabs-list", role: "tablist", children: A.map((c) => {
@@ -2614,7 +2614,7 @@ const Vo = ({
2614
2614
  "aria-selected": u,
2615
2615
  className: h,
2616
2616
  onClick: (i) => {
2617
- c.disabled ? i.preventDefault() : a(c.value);
2617
+ c.disabled ? i.preventDefault() : n(c.value);
2618
2618
  },
2619
2619
  children: c.label
2620
2620
  },
@@ -2627,7 +2627,7 @@ const Vo = ({
2627
2627
  disabled: c.disabled,
2628
2628
  "aria-selected": u,
2629
2629
  className: h,
2630
- onClick: () => a(c.value),
2630
+ onClick: () => n(c.value),
2631
2631
  children: c.label
2632
2632
  },
2633
2633
  c.value
@@ -2688,13 +2688,13 @@ export {
2688
2688
  Og as CalendarIcon,
2689
2689
  Rg as CameraIcon,
2690
2690
  tg as Card,
2691
- ag as CardBody,
2691
+ ng as CardBody,
2692
2692
  rg as CardFooter,
2693
- ng as CardHeader,
2693
+ ag as CardHeader,
2694
2694
  so as Carousel,
2695
2695
  Zg as CheckIcon,
2696
2696
  Vg as CheckSquareIcon,
2697
- no as Checkbox,
2697
+ ao as Checkbox,
2698
2698
  Mg as ChevronDownIcon,
2699
2699
  qg as ChevronIcon,
2700
2700
  Yg as ChevronLeftIcon,
@@ -2718,8 +2718,8 @@ export {
2718
2718
  eo as Dropdown,
2719
2719
  tC as EditIcon,
2720
2720
  vg as EmptyState,
2721
- nC as ExternalLinkIcon,
2722
- aC as EyeIcon,
2721
+ aC as ExternalLinkIcon,
2722
+ nC as EyeIcon,
2723
2723
  rC as EyeOffIcon,
2724
2724
  sC as FileIcon,
2725
2725
  iC as FileTextIcon,
@@ -2756,7 +2756,7 @@ export {
2756
2756
  LC as InfoIcon,
2757
2757
  iA as Input,
2758
2758
  DC as LabIcon,
2759
- nA as LabelFormater,
2759
+ aA as LabelFormater,
2760
2760
  XC as LaptopIcon,
2761
2761
  SC as LayoutIcon,
2762
2762
  HC as LayoutTemplateIcon,
@@ -2795,10 +2795,10 @@ export {
2795
2795
  UB as PanelLeftIcon,
2796
2796
  eB as PanelTopIcon,
2797
2797
  tB as PhoneIcon,
2798
- nB as PlusIcon,
2798
+ aB as PlusIcon,
2799
2799
  Zo as Progress,
2800
- ao as Radio,
2801
- aB as RectangleHorizontalIcon,
2800
+ no as Radio,
2801
+ nB as RectangleHorizontalIcon,
2802
2802
  rB as RefreshIcon,
2803
2803
  sB as RocketIcon,
2804
2804
  iB as RulerIcon,