@acyui/components 0.1.3 → 0.1.4

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/acyui.es.js CHANGED
@@ -165,7 +165,9 @@ const J = ({
165
165
  className: U,
166
166
  style: Q,
167
167
  as: n,
168
- ...t
168
+ width: t,
169
+ height: a,
170
+ ...c
169
171
  }) => /* @__PURE__ */ o(
170
172
  n || "div",
171
173
  {
@@ -178,8 +180,12 @@ const J = ({
178
180
  `flex-gap--${K}`,
179
181
  U
180
182
  ),
181
- style: Q,
182
- ...t,
183
+ style: {
184
+ width: typeof t == "number" ? `${t}px` : t,
185
+ height: typeof a == "number" ? `${a}px` : a,
186
+ ...Q
187
+ },
188
+ ...c,
183
189
  children: A
184
190
  }
185
191
  ), Z = ({
@@ -1598,23 +1604,23 @@ function e(A) {
1598
1604
  return /* @__PURE__ */ o(N, { name: A, ...C });
1599
1605
  };
1600
1606
  }
1601
- const Bg = e("activity"), Fg = e("alert-circle"), Kg = e("alert-triangle"), Qg = e("align-horizontal"), Ug = e("align-justify"), eg = e("app-window"), tg = e("arrow-down"), ng = e("arrow-left"), rg = e("arrow-right"), ag = e("arrow-up"), ig = e("badge"), sg = e("battery"), lg = e("bell"), cg = e("bluetooth"), dg = e("book"), ug = e("box"), fg = e("calendar"), hg = e("camera"), pg = e("check-square"), vg = e("check"), mg = e("chevron-down"), kg = e("chevron-left"), bg = e("chevron-right"), wg = e("chevron-up"), xg = e("chevron"), Lg = e("circle-dot"), yg = e("clock"), Pg = e("close"), Ng = e("cloud"), jg = e("code"), zg = e("component"), Hg = e("copy"), Dg = e("credit-card"), Mg = e("database"), Xg = e("download"), Sg = e("edit"), Wg = e("external-link"), Ig = e("eye-off"), Tg = e("eye"), Gg = e("file-text"), Jg = e("file"), Vg = e("filter"), Eg = e("folder"), Og = e("form-input"), Rg = e("ghost"), Zg = e("gift"), qg = e("git-commit"), Yg = e("github"), _g = e("grid"), $g = e("grip"), AC = e("hash"), oC = e("heading1"), gC = e("heart"), CC = e("help-circle"), BC = e("history"), FC = e("home"), KC = e("image"), QC = e("info"), UC = e("lab"), eC = e("laptop"), tC = e("layout-template"), nC = e("layout"), rC = e("link"), aC = e("linkedin"), iC = e("list-checks"), sC = e("list-collapse"), lC = e("list-filter"), cC = e("list"), dC = e("loader2"), uC = e("lock"), fC = e("log-in"), hC = e("log-out"), pC = e("mail"), vC = e("map-pin"), mC = e("menu"), kC = e("message-circle"), bC = e("message-square"), wC = e("mic"), xC = e("milestone"), LC = e("minus"), yC = e("monitor"), PC = e("moon"), NC = e("more-horizontal"), jC = e("mouse-pointer"), zC = e("music"), HC = e("panel-left"), DC = e("panel-top"), MC = e("panel"), XC = e("phone"), SC = e("plus"), WC = e("rectangle-horizontal"), IC = e("refresh"), TC = e("rocket"), GC = e("ruler"), JC = e("search"), VC = e("server"), EC = e("settings"), OC = e("share"), RC = e("shield"), ZC = e("shopping-cart"), qC = e("sliders-horizontal"), YC = e("smartphone"), _C = e("spark"), $C = e("sparkles"), AB = e("spinner"), oB = e("square"), gB = e("star"), CB = e("sun"), BB = e("table"), FB = e("tablet"), KB = e("tag"), QB = e("text-cursor"), UB = e("theme-dark"), eB = e("theme-light"), tB = e("toggle-right"), nB = e("trash"), rB = e("type"), aB = e("unlock"), iB = e("upload-cloud"), sB = e("upload"), lB = e("user-circle"), cB = e("user"), dB = e("video"), uB = e("warning"), fB = e("wifi"), hB = e("x"), pB = e("zap"), lA = w.forwardRef(
1607
+ const Bg = e("activity"), Fg = e("alert-circle"), Kg = e("alert-triangle"), Qg = e("align-horizontal"), Ug = e("align-justify"), eg = e("app-window"), tg = e("arrow-down"), ng = e("arrow-left"), rg = e("arrow-right"), ag = e("arrow-up"), ig = e("badge"), sg = e("battery"), lg = e("bell"), cg = e("bluetooth"), dg = e("book"), ug = e("box"), fg = e("calendar"), hg = e("camera"), pg = e("check-square"), vg = e("check"), mg = e("chevron-down"), kg = e("chevron-left"), bg = e("chevron-right"), wg = e("chevron-up"), xg = e("chevron"), yg = e("circle-dot"), Lg = e("clock"), Pg = e("close"), Ng = e("cloud"), jg = e("code"), zg = e("component"), Hg = e("copy"), Dg = e("credit-card"), Mg = e("database"), Xg = e("download"), Sg = e("edit"), Wg = e("external-link"), Ig = e("eye-off"), Tg = e("eye"), Gg = e("file-text"), Jg = e("file"), Vg = e("filter"), Eg = e("folder"), Og = e("form-input"), Rg = e("ghost"), Zg = e("gift"), qg = e("git-commit"), Yg = e("github"), _g = e("grid"), $g = e("grip"), AC = e("hash"), oC = e("heading1"), gC = e("heart"), CC = e("help-circle"), BC = e("history"), FC = e("home"), KC = e("image"), QC = e("info"), UC = e("lab"), eC = e("laptop"), tC = e("layout-template"), nC = e("layout"), rC = e("link"), aC = e("linkedin"), iC = e("list-checks"), sC = e("list-collapse"), lC = e("list-filter"), cC = e("list"), dC = e("loader2"), uC = e("lock"), fC = e("log-in"), hC = e("log-out"), pC = e("mail"), vC = e("map-pin"), mC = e("menu"), kC = e("message-circle"), bC = e("message-square"), wC = e("mic"), xC = e("milestone"), yC = e("minus"), LC = e("monitor"), PC = e("moon"), NC = e("more-horizontal"), jC = e("mouse-pointer"), zC = e("music"), HC = e("panel-left"), DC = e("panel-top"), MC = e("panel"), XC = e("phone"), SC = e("plus"), WC = e("rectangle-horizontal"), IC = e("refresh"), TC = e("rocket"), GC = e("ruler"), JC = e("search"), VC = e("server"), EC = e("settings"), OC = e("share"), RC = e("shield"), ZC = e("shopping-cart"), qC = e("sliders-horizontal"), YC = e("smartphone"), _C = e("spark"), $C = e("sparkles"), AB = e("spinner"), oB = e("square"), gB = e("star"), CB = e("sun"), BB = e("table"), FB = e("tablet"), KB = e("tag"), QB = e("text-cursor"), UB = e("theme-dark"), eB = e("theme-light"), tB = e("toggle-right"), nB = e("trash"), rB = e("type"), aB = e("unlock"), iB = e("upload-cloud"), sB = e("upload"), lB = e("user-circle"), cB = e("user"), dB = e("video"), uB = e("warning"), fB = e("wifi"), hB = e("x"), pB = e("zap"), lA = w.forwardRef(
1602
1608
  ({ label: A, error: g, hint: C, prefix: B, suffix: F, clearable: K = !1, size: U = "medium", full: Q = !1, className: n, id: t, ...a }, c) => {
1603
1609
  const d = t ?? (A ? `input-${rA(A)}` : void 0), h = w.useRef(null), k = a.value !== void 0, [l, u] = w.useState(
1604
1610
  !!(a.defaultValue ?? "")
1605
- ), f = k ? String(a.value ?? "").length > 0 : l, j = (L) => {
1606
- if (h.current = L, typeof c == "function") {
1607
- c(L);
1611
+ ), f = k ? String(a.value ?? "").length > 0 : l, j = (y) => {
1612
+ if (h.current = y, typeof c == "function") {
1613
+ c(y);
1608
1614
  return;
1609
1615
  }
1610
- c && (c.current = L);
1616
+ c && (c.current = y);
1611
1617
  }, z = () => {
1612
- const L = h.current;
1613
- if (!L || a.disabled || a.readOnly)
1618
+ const y = h.current;
1619
+ if (!y || a.disabled || a.readOnly)
1614
1620
  return;
1615
- Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set?.call(L, ""), L.dispatchEvent(new Event("input", { bubbles: !0 })), L.dispatchEvent(new Event("change", { bubbles: !0 })), k || u(!1), L.focus();
1616
- }, m = (L) => {
1617
- a.onInput?.(L), k || u(L.target.value.length > 0);
1621
+ Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set?.call(y, ""), y.dispatchEvent(new Event("input", { bubbles: !0 })), y.dispatchEvent(new Event("change", { bubbles: !0 })), k || u(!1), y.focus();
1622
+ }, m = (y) => {
1623
+ a.onInput?.(y), k || u(y.target.value.length > 0);
1618
1624
  }, P = K && f ? /* @__PURE__ */ o(
1619
1625
  AA,
1620
1626
  {
@@ -1724,7 +1730,7 @@ function Bo(A) {
1724
1730
  }
1725
1731
  const Fo = w.forwardRef(
1726
1732
  ({ label: A, error: g, hint: C, full: B = !1, className: F, id: K, value: U, defaultValue: Q, onChange: n, placeholder: t = "dd/mm/aaaa", disabled: a, size: c, prefix: d, suffix: h, clearable: k, ...l }, u) => {
1727
- const f = K ?? (A ? `datepicker-${rA(A)}` : void 0), j = w.useRef(null), z = w.useMemo(() => pA(/* @__PURE__ */ new Date()), []), m = w.useMemo(() => aA(U ?? Q ?? z), [Q, z, U]), [P, L] = w.useState(Q ?? z), [X, M] = w.useState(!1), y = aA(U ?? P), [D, S] = w.useState(m ?? /* @__PURE__ */ new Date()), V = U !== void 0;
1733
+ const f = K ?? (A ? `datepicker-${rA(A)}` : void 0), j = w.useRef(null), z = w.useMemo(() => pA(/* @__PURE__ */ new Date()), []), m = w.useMemo(() => aA(U ?? Q ?? z), [Q, z, U]), [P, y] = w.useState(Q ?? z), [X, M] = w.useState(!1), L = aA(U ?? P), [D, S] = w.useState(m ?? /* @__PURE__ */ new Date()), V = U !== void 0;
1728
1734
  w.useEffect(() => {
1729
1735
  const r = aA(U ?? P);
1730
1736
  r && S(r);
@@ -1736,7 +1742,7 @@ const Fo = w.forwardRef(
1736
1742
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
1737
1743
  }, [X]);
1738
1744
  const v = (r) => {
1739
- V || L(r);
1745
+ V || y(r);
1740
1746
  const b = {
1741
1747
  target: { value: r, id: f, name: l.name },
1742
1748
  currentTarget: { value: r, id: f, name: l.name }
@@ -1771,7 +1777,7 @@ const Fo = w.forwardRef(
1771
1777
  ref: u,
1772
1778
  id: f,
1773
1779
  type: "text",
1774
- value: go(y),
1780
+ value: go(L),
1775
1781
  placeholder: t,
1776
1782
  readOnly: !0,
1777
1783
  disabled: a,
@@ -1819,7 +1825,7 @@ const Fo = w.forwardRef(
1819
1825
  ] }),
1820
1826
  /* @__PURE__ */ o("div", { className: "date-picker__weekdays", children: oo.map((r) => /* @__PURE__ */ o("span", { className: "date-picker__weekday", children: r }, r)) }),
1821
1827
  /* @__PURE__ */ o("div", { className: "date-picker__grid", children: q.map(({ date: r, outside: b }) => {
1822
- const W = Co(r, y);
1828
+ const W = Co(r, L);
1823
1829
  return /* @__PURE__ */ o(
1824
1830
  "button",
1825
1831
  {
@@ -1862,7 +1868,7 @@ const Ko = w.forwardRef(
1862
1868
  className: h,
1863
1869
  ...k
1864
1870
  }, l) => {
1865
- const u = nA(), f = E(null), j = E(null), z = E(null), [m, P] = H(!1), [L, X] = H(""), [M, y] = H(C ?? ""), [D, S] = H(-1), V = g ?? M;
1871
+ const u = nA(), f = E(null), j = E(null), z = E(null), [m, P] = H(!1), [y, X] = H(""), [M, L] = H(C ?? ""), [D, S] = H(-1), V = g ?? M;
1866
1872
  T(() => {
1867
1873
  if (!m) {
1868
1874
  X(""), S(-1);
@@ -1872,7 +1878,7 @@ const Ko = w.forwardRef(
1872
1878
  S(r >= 0 ? r : 0), c && z.current?.focus();
1873
1879
  }, [m]), T(() => {
1874
1880
  m && S(0);
1875
- }, [L]), T(() => {
1881
+ }, [y]), T(() => {
1876
1882
  if (!m || D < 0) return;
1877
1883
  const r = j.current;
1878
1884
  r && r.children[D]?.scrollIntoView({ block: "nearest" });
@@ -1882,14 +1888,14 @@ const Ko = w.forwardRef(
1882
1888
  };
1883
1889
  return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
1884
1890
  }, []);
1885
- const v = A.find((r) => r.value === V), p = $(() => !c || !L ? A : A.filter((r) => (r.searchValue ?? (typeof r.label == "string" ? r.label : r.value)).toLowerCase().includes(L.toLowerCase())), [A, c, L]), x = (r, b) => {
1891
+ const v = A.find((r) => r.value === V), p = $(() => !c || !y ? A : A.filter((r) => (r.searchValue ?? (typeof r.label == "string" ? r.label : r.value)).toLowerCase().includes(y.toLowerCase())), [A, c, y]), x = (r, b) => {
1886
1892
  const W = p.length;
1887
1893
  let G = r;
1888
1894
  for (let _ = 0; _ < W; _++)
1889
1895
  if (G = (G + b + W) % W, !p[G]?.disabled) return G;
1890
1896
  return r;
1891
1897
  }, I = (r, b) => {
1892
- b || (g === void 0 && y(r), B?.(r), P(!1));
1898
+ b || (g === void 0 && L(r), B?.(r), P(!1));
1893
1899
  }, O = (r) => {
1894
1900
  if (!a) {
1895
1901
  if ((r.key === "Enter" || r.key === " ") && (r.preventDefault(), m && D >= 0 && p[D] ? I(p[D].value, p[D].disabled) : P((b) => !b)), r.key === "Escape" && (r.preventDefault(), P(!1)), r.key === "ArrowDown" && (r.preventDefault(), m ? S((b) => x(b < 0 ? -1 : b, 1)) : P(!0)), r.key === "ArrowUp" && (r.preventDefault(), m && S((b) => x(b < 0 ? p.length : b, -1))), r.key === "Home" && m) {
@@ -1940,7 +1946,7 @@ const Ko = w.forwardRef(
1940
1946
  {
1941
1947
  ref: z,
1942
1948
  className: "select__search-input",
1943
- value: L,
1949
+ value: y,
1944
1950
  placeholder: d,
1945
1951
  onChange: (r) => X(r.target.value)
1946
1952
  }
@@ -1990,7 +1996,7 @@ const Qo = w.forwardRef(
1990
1996
  className: a,
1991
1997
  ...c
1992
1998
  }, d) => {
1993
- const h = nA(), k = E(null), l = E(null), [u, f] = H(!1), [j, z] = H(C), [m, P] = H(-1), L = g ?? j;
1999
+ const h = nA(), k = E(null), l = E(null), [u, f] = H(!1), [j, z] = H(C), [m, P] = H(-1), y = g ?? j;
1994
2000
  T(() => {
1995
2001
  if (!u) {
1996
2002
  P(-1);
@@ -2008,11 +2014,11 @@ const Qo = w.forwardRef(
2008
2014
  return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
2009
2015
  }, []);
2010
2016
  const X = $(
2011
- () => A.filter((v) => L.includes(v.value)),
2012
- [A, L]
2017
+ () => A.filter((v) => y.includes(v.value)),
2018
+ [A, y]
2013
2019
  ), M = (v) => {
2014
2020
  g === void 0 && z(v), B?.(v);
2015
- }, y = (v, p) => {
2021
+ }, L = (v, p) => {
2016
2022
  const x = A.length;
2017
2023
  let I = v;
2018
2024
  for (let O = 0; O < x; O++)
@@ -2020,15 +2026,15 @@ const Qo = w.forwardRef(
2020
2026
  return v;
2021
2027
  }, D = (v, p) => {
2022
2028
  if (!p) {
2023
- if (L.includes(v)) {
2024
- M(L.filter((x) => x !== v));
2029
+ if (y.includes(v)) {
2030
+ M(y.filter((x) => x !== v));
2025
2031
  return;
2026
2032
  }
2027
- M([...L, v]);
2033
+ M([...y, v]);
2028
2034
  }
2029
2035
  }, S = (v) => {
2030
2036
  if (!t) {
2031
- if ((v.key === "Enter" || v.key === " ") && (v.preventDefault(), u && m >= 0 && A[m] ? D(A[m].value, A[m].disabled) : f((p) => !p)), v.key === "Escape" && (v.preventDefault(), f(!1)), v.key === "ArrowDown" && (v.preventDefault(), u ? P((p) => y(p < 0 ? -1 : p, 1)) : f(!0)), v.key === "ArrowUp" && (v.preventDefault(), u && P((p) => y(p < 0 ? A.length : p, -1))), v.key === "Home" && u) {
2037
+ if ((v.key === "Enter" || v.key === " ") && (v.preventDefault(), u && m >= 0 && A[m] ? D(A[m].value, A[m].disabled) : f((p) => !p)), v.key === "Escape" && (v.preventDefault(), f(!1)), v.key === "ArrowDown" && (v.preventDefault(), u ? P((p) => L(p < 0 ? -1 : p, 1)) : f(!0)), v.key === "ArrowUp" && (v.preventDefault(), u && P((p) => L(p < 0 ? A.length : p, -1))), v.key === "Home" && u) {
2032
2038
  v.preventDefault();
2033
2039
  const p = A.findIndex((x) => !x.disabled);
2034
2040
  p >= 0 && P(p);
@@ -2082,7 +2088,7 @@ const Qo = w.forwardRef(
2082
2088
  }
2083
2089
  ),
2084
2090
  u && /* @__PURE__ */ o("ul", { ref: l, id: `${h}-listbox`, className: "multiselect__menu", role: "listbox", "aria-multiselectable": "true", children: A.length > 0 ? A.map((v, p) => {
2085
- const x = L.includes(v.value), I = m === p;
2091
+ const x = y.includes(v.value), I = m === p;
2086
2092
  return /* @__PURE__ */ s(
2087
2093
  "li",
2088
2094
  {
@@ -2145,44 +2151,44 @@ function to({
2145
2151
  const d = nA(), h = E(null), k = E(null), [l, u] = H(B), [f, j] = H({
2146
2152
  top: 0,
2147
2153
  left: 0
2148
- }), z = C ?? l, m = R((y) => {
2149
- C === void 0 && u(y), F?.(y);
2150
- }, [F, C]), P = R(() => m(!1), [m]), L = R(() => {
2154
+ }), z = C ?? l, m = R((L) => {
2155
+ C === void 0 && u(L), F?.(L);
2156
+ }, [F, C]), P = R(() => m(!1), [m]), y = R(() => {
2151
2157
  if (!h.current) return;
2152
- const y = h.current.getBoundingClientRect();
2153
- j(eo(y, K, U, n));
2158
+ const L = h.current.getBoundingClientRect();
2159
+ j(eo(L, K, U, n));
2154
2160
  }, [n, U, K]);
2155
2161
  T(() => {
2156
2162
  if (!z) return;
2157
- L();
2158
- const y = () => L();
2159
- return window.addEventListener("resize", y), window.addEventListener("scroll", y, !0), () => {
2160
- window.removeEventListener("resize", y), window.removeEventListener("scroll", y, !0);
2163
+ y();
2164
+ const L = () => y();
2165
+ return window.addEventListener("resize", L), window.addEventListener("scroll", L, !0), () => {
2166
+ window.removeEventListener("resize", L), window.removeEventListener("scroll", L, !0);
2161
2167
  };
2162
- }, [z, L]), T(() => {
2168
+ }, [z, y]), T(() => {
2163
2169
  if (!z) return;
2164
- const y = (S) => {
2170
+ const L = (S) => {
2165
2171
  const V = S.target;
2166
2172
  h.current?.contains(V) || k.current?.contains(V) || t && P();
2167
2173
  }, D = (S) => {
2168
2174
  S.key === "Escape" && (P(), h.current?.focus());
2169
2175
  };
2170
- return document.addEventListener("mousedown", y), document.addEventListener("keydown", D), () => {
2171
- document.removeEventListener("mousedown", y), document.removeEventListener("keydown", D);
2176
+ return document.addEventListener("mousedown", L), document.addEventListener("keydown", D), () => {
2177
+ document.removeEventListener("mousedown", L), document.removeEventListener("keydown", D);
2172
2178
  };
2173
2179
  }, [P, t, z]);
2174
2180
  const X = $(() => ({ close: P }), [P]), M = w.cloneElement(A, {
2175
- ref: (y) => {
2176
- h.current = y, Uo(A.ref, y);
2181
+ ref: (L) => {
2182
+ h.current = L, Uo(A.ref, L);
2177
2183
  },
2178
2184
  "aria-expanded": z,
2179
2185
  "aria-haspopup": "menu",
2180
2186
  "aria-controls": z ? d : void 0,
2181
- onClick: (y) => {
2182
- A.props.onClick?.(y), !y.defaultPrevented && !Q && m(!z);
2187
+ onClick: (L) => {
2188
+ A.props.onClick?.(L), !L.defaultPrevented && !Q && m(!z);
2183
2189
  },
2184
- onKeyDown: (y) => {
2185
- A.props.onKeyDown?.(y), !(Q || y.defaultPrevented) && ((y.key === "Enter" || y.key === " ") && (y.preventDefault(), m(!z)), y.key === "ArrowDown" && (y.preventDefault(), m(!0)));
2190
+ onKeyDown: (L) => {
2191
+ A.props.onKeyDown?.(L), !(Q || L.defaultPrevented) && ((L.key === "Enter" || L.key === " ") && (L.preventDefault(), m(!z)), L.key === "ArrowDown" && (L.preventDefault(), m(!0)));
2186
2192
  }
2187
2193
  });
2188
2194
  return /* @__PURE__ */ s(FA, { children: [
@@ -2373,22 +2379,22 @@ const lo = w.forwardRef(
2373
2379
  id: l,
2374
2380
  ...u
2375
2381
  }, f) => {
2376
- const j = w.useId(), z = l ?? (a ? `number-input-${j}` : void 0), m = A !== void 0, [P, L] = w.useState(g), [X, M] = w.useState(
2382
+ const j = w.useId(), z = l ?? (a ? `number-input-${j}` : void 0), m = A !== void 0, [P, y] = w.useState(g), [X, M] = w.useState(
2377
2383
  String(m ? A ?? "" : g ?? "")
2378
- ), y = m ? A : P;
2384
+ ), L = m ? A : P;
2379
2385
  w.useEffect(() => {
2380
2386
  m && M(A !== void 0 ? String(A) : "");
2381
2387
  }, [m, A]);
2382
2388
  const D = (r) => {
2383
2389
  const b = vA(r).trim();
2384
2390
  if (b === "" || b === "-" || b === "." || b === "-.") {
2385
- M(""), m || L(void 0), C?.(void 0);
2391
+ M(""), m || y(void 0), C?.(void 0);
2386
2392
  return;
2387
2393
  }
2388
2394
  const W = Number(b);
2389
2395
  if (!Number.isFinite(W)) return;
2390
2396
  const G = iA(W, B, F);
2391
- M(String(G)), m || L(G), C?.(G);
2397
+ M(String(G)), m || y(G), C?.(G);
2392
2398
  }, S = (r) => {
2393
2399
  const b = vA(r.target.value);
2394
2400
  M(b);
@@ -2434,12 +2440,12 @@ const lo = w.forwardRef(
2434
2440
  }
2435
2441
  r.preventDefault(), u.onKeyDown?.(r);
2436
2442
  }, p = () => {
2437
- const b = iA((y ?? B ?? 0) + K, B, F);
2438
- M(String(b)), m || L(b), C?.(b);
2443
+ const b = iA((L ?? B ?? 0) + K, B, F);
2444
+ M(String(b)), m || y(b), C?.(b);
2439
2445
  }, x = () => {
2440
- const b = iA((y ?? B ?? 0) - K, B, F);
2441
- M(String(b)), m || L(b), C?.(b);
2442
- }, I = B !== void 0 && (y ?? -1 / 0) <= B, O = F !== void 0 && (y ?? 1 / 0) >= F, q = d ?? (n ? " " : void 0);
2446
+ const b = iA((L ?? B ?? 0) - K, B, F);
2447
+ M(String(b)), m || y(b), C?.(b);
2448
+ }, I = B !== void 0 && (L ?? -1 / 0) <= B, O = F !== void 0 && (L ?? 1 / 0) >= F, q = d ?? (n ? " " : void 0);
2443
2449
  return /* @__PURE__ */ o(
2444
2450
  Z,
2445
2451
  {
@@ -2480,7 +2486,7 @@ const lo = w.forwardRef(
2480
2486
  type: "text",
2481
2487
  inputMode: "decimal",
2482
2488
  role: "spinbutton",
2483
- "aria-valuenow": y,
2489
+ "aria-valuenow": L,
2484
2490
  "aria-valuemin": B,
2485
2491
  "aria-valuemax": F,
2486
2492
  "aria-invalid": n || !!d,
@@ -2567,13 +2573,13 @@ const co = ({
2567
2573
  const P = (p) => {
2568
2574
  const x = Q ? (p % h + h) % h : Math.min(Math.max(p, 0), k);
2569
2575
  x !== d && (t || c(x), B?.(x));
2570
- }, L = () => P(d - 1), X = () => P(d + 1), M = !Q && d === 0, y = !Q && d >= k, D = (p) => {
2571
- p.key === "ArrowLeft" && (p.preventDefault(), L()), p.key === "ArrowRight" && (p.preventDefault(), X());
2576
+ }, y = () => P(d - 1), X = () => P(d + 1), M = !Q && d === 0, L = !Q && d >= k, D = (p) => {
2577
+ p.key === "ArrowLeft" && (p.preventDefault(), y()), p.key === "ArrowRight" && (p.preventDefault(), X());
2572
2578
  }, S = (p) => {
2573
2579
  u.current = p.touches[0].clientX;
2574
2580
  }, V = (p) => {
2575
2581
  const x = u.current - p.changedTouches[0].clientX;
2576
- Math.abs(x) > 40 && (x > 0 ? X() : L());
2582
+ Math.abs(x) > 40 && (x > 0 ? X() : y());
2577
2583
  }, v = `calc((100% - (var(--carousel-gap) * ${Math.max(F - 1, 0)})) / ${F})`;
2578
2584
  return /* @__PURE__ */ s(
2579
2585
  "div",
@@ -2590,7 +2596,7 @@ const co = ({
2590
2596
  {
2591
2597
  type: "button",
2592
2598
  className: "carousel__arrow",
2593
- onClick: L,
2599
+ onClick: y,
2594
2600
  disabled: M,
2595
2601
  "aria-label": "Slide anterior",
2596
2602
  children: /* @__PURE__ */ o(N, { name: "chevron-left", size: 16 })
@@ -2633,7 +2639,7 @@ const co = ({
2633
2639
  type: "button",
2634
2640
  className: "carousel__arrow",
2635
2641
  onClick: X,
2636
- disabled: y,
2642
+ disabled: L,
2637
2643
  "aria-label": "Próximo slide",
2638
2644
  children: /* @__PURE__ */ o(N, { name: "chevron-right", size: 16 })
2639
2645
  }
@@ -2782,9 +2788,9 @@ function xB({ title: A, description: g, icon: C, action: B, children: F, classNa
2782
2788
  B && /* @__PURE__ */ o("div", { className: "card-header__action", children: B })
2783
2789
  ] });
2784
2790
  }
2785
- const LB = w.memo(function({ children: g, className: C, ...B }) {
2791
+ const yB = w.memo(function({ children: g, className: C, ...B }) {
2786
2792
  return /* @__PURE__ */ o("div", { className: i("card-body", C), ...B, children: g });
2787
- }), yB = w.memo(function({ children: g, className: C, ...B }) {
2793
+ }), LB = w.memo(function({ children: g, className: C, ...B }) {
2788
2794
  return /* @__PURE__ */ o("div", { className: i("card-footer", C), ...B, children: g });
2789
2795
  }), PB = w.forwardRef(function({
2790
2796
  as: g,
@@ -2838,13 +2844,14 @@ const LB = w.memo(function({ children: g, className: C, ...B }) {
2838
2844
  ), jB = ({
2839
2845
  children: A,
2840
2846
  size: g = "large",
2841
- className: C,
2842
- style: B
2847
+ center: C,
2848
+ className: B,
2849
+ style: F
2843
2850
  }) => /* @__PURE__ */ o(
2844
2851
  "div",
2845
2852
  {
2846
- className: i("container", `container--${g}`, C),
2847
- style: B,
2853
+ className: i("container", `container--${g}`, B),
2854
+ style: { ...C && { margin: "0 auto" }, ...F },
2848
2855
  children: A
2849
2856
  }
2850
2857
  ), zB = ({ size: A = "1rem", axis: g = "vertical", style: C }) => {
@@ -2908,7 +2915,7 @@ const vo = Object.assign(ho, {
2908
2915
  Item: po
2909
2916
  });
2910
2917
  vo.displayName = "List";
2911
- const LA = CA(null);
2918
+ const yA = CA(null);
2912
2919
  function mo(A, g) {
2913
2920
  const C = Array.isArray(g) ? g : g ? [g] : [], [B, F] = H(C), K = R((U) => {
2914
2921
  F((Q) => {
@@ -2918,7 +2925,7 @@ function mo(A, g) {
2918
2925
  }, [A]);
2919
2926
  return { openItems: B, toggle: K };
2920
2927
  }
2921
- const yA = w.memo(({
2928
+ const LA = w.memo(({
2922
2929
  title: A,
2923
2930
  children: g,
2924
2931
  isOpen: C = !1,
@@ -2927,7 +2934,7 @@ const yA = w.memo(({
2927
2934
  className: K,
2928
2935
  ...U
2929
2936
  }) => {
2930
- const Q = gA(LA), n = Q ? Q.openItems.includes(F) : C, t = Q?.toggle, a = R(() => {
2937
+ const Q = gA(yA), n = Q ? Q.openItems.includes(F) : C, t = Q?.toggle, a = R(() => {
2931
2938
  t ? t(F) : B?.();
2932
2939
  }, [t, F, B]);
2933
2940
  return /* @__PURE__ */ s("div", { className: i("accordion-item", n && "accordion-item--open", K), ...U, children: [
@@ -2959,7 +2966,7 @@ const yA = w.memo(({
2959
2966
  )
2960
2967
  ] });
2961
2968
  });
2962
- yA.displayName = "AccordionItem";
2969
+ LA.displayName = "AccordionItem";
2963
2970
  const ko = ({
2964
2971
  children: A,
2965
2972
  type: g = "single",
@@ -2968,9 +2975,9 @@ const ko = ({
2968
2975
  ...F
2969
2976
  }) => {
2970
2977
  const { openItems: K, toggle: U } = mo(g, C), Q = $(() => ({ toggle: U, openItems: K }), [U, K]);
2971
- return /* @__PURE__ */ o(LA.Provider, { value: Q, children: /* @__PURE__ */ o("div", { className: i("accordion", B), ...F, children: A }) });
2978
+ return /* @__PURE__ */ o(yA.Provider, { value: Q, children: /* @__PURE__ */ o("div", { className: i("accordion", B), ...F, children: A }) });
2972
2979
  };
2973
- ko.Item = yA;
2980
+ ko.Item = LA;
2974
2981
  const bo = ({
2975
2982
  size: A = "small",
2976
2983
  weight: g = "medium",
@@ -3148,16 +3155,16 @@ const xo = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wBDAAEBAQEBAQEBA
3148
3155
  }) => {
3149
3156
  const [a, c] = H(!1), [d, h] = H(!1);
3150
3157
  if (d && U) return /* @__PURE__ */ o(FA, { children: U });
3151
- const k = A || xo;
3158
+ const k = A || xo, l = typeof Q == "number" ? `${Q}px` : Q, u = typeof n == "number" ? `${n}px` : n;
3152
3159
  return /* @__PURE__ */ s("div", { className: i("image-wrapper", F), style: K, children: [
3153
- !a && !d && /* @__PURE__ */ o("div", { className: i("image-skeleton", `image-radius--${B}`), children: /* @__PURE__ */ o(NA, { width: Q, height: n }) }),
3160
+ !a && !d && /* @__PURE__ */ o("div", { className: i("image-skeleton", `image-radius--${B}`), children: /* @__PURE__ */ o(NA, { width: l, height: u }) }),
3154
3161
  /* @__PURE__ */ o(
3155
3162
  "img",
3156
3163
  {
3157
3164
  src: k,
3158
3165
  alt: g,
3159
- width: Q,
3160
- height: n,
3166
+ width: l,
3167
+ height: u,
3161
3168
  className: i("image", `image-fit--${C}`, `image-radius--${B}`, a && "image--loaded"),
3162
3169
  onLoad: () => c(!0),
3163
3170
  onError: () => h(!0),
@@ -3165,7 +3172,7 @@ const xo = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wBDAAEBAQEBAQEBA
3165
3172
  }
3166
3173
  )
3167
3174
  ] });
3168
- }, Lo = w.forwardRef(
3175
+ }, yo = w.forwardRef(
3169
3176
  ({ label: A, size: g = "medium", className: C, disabled: B, ...F }, K) => /* @__PURE__ */ s("label", { className: i(
3170
3177
  "switch-wrapper",
3171
3178
  `switch--${g}`,
@@ -3186,8 +3193,8 @@ const xo = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wBDAAEBAQEBAQEBA
3186
3193
  A && /* @__PURE__ */ o("span", { className: "switch-label", children: A })
3187
3194
  ] })
3188
3195
  );
3189
- Lo.displayName = "Switch";
3190
- const yo = ({
3196
+ yo.displayName = "Switch";
3197
+ const Lo = ({
3191
3198
  currentPage: A,
3192
3199
  totalPages: g,
3193
3200
  onPageChange: C,
@@ -3243,7 +3250,7 @@ const yo = ({
3243
3250
  )
3244
3251
  ] });
3245
3252
  };
3246
- yo.displayName = "Pagination";
3253
+ Lo.displayName = "Pagination";
3247
3254
  const SB = ({
3248
3255
  icon: A,
3249
3256
  title: g,
@@ -3715,10 +3722,10 @@ function Vo({
3715
3722
  const { collapsed: t, searchTerm: a } = dA(), [c, d] = H(C), h = B !== void 0, k = h ? B : c, l = a.trim().toLocaleLowerCase(), u = tA(Q).toLocaleLowerCase(), f = !l || u.includes(l), j = !!(l && f), z = t ? !1 : j || k, m = MA(Q);
3716
3723
  if (!f)
3717
3724
  return null;
3718
- const P = (L) => {
3725
+ const P = (y) => {
3719
3726
  if (t) {
3720
3727
  const M = m?.props?.onClick;
3721
- typeof M == "function" && M(L);
3728
+ typeof M == "function" && M(y);
3722
3729
  return;
3723
3730
  }
3724
3731
  if (!K || j)
@@ -4035,7 +4042,7 @@ $o.displayName = "Timeline";
4035
4042
  _o.displayName = "TimelineItem";
4036
4043
  export {
4037
4044
  ko as Accordion,
4038
- yA as AccordionItem,
4045
+ LA as AccordionItem,
4039
4046
  Bg as ActivityIcon,
4040
4047
  DB as Alert,
4041
4048
  Fg as AlertCircleIcon,
@@ -4061,8 +4068,8 @@ export {
4061
4068
  fg as CalendarIcon,
4062
4069
  hg as CameraIcon,
4063
4070
  wB as Card,
4064
- LB as CardBody,
4065
- yB as CardFooter,
4071
+ yB as CardBody,
4072
+ LB as CardFooter,
4066
4073
  xB as CardHeader,
4067
4074
  co as Carousel,
4068
4075
  vg as CheckIcon,
@@ -4073,8 +4080,8 @@ export {
4073
4080
  kg as ChevronLeftIcon,
4074
4081
  bg as ChevronRightIcon,
4075
4082
  wg as ChevronUpIcon,
4076
- Lg as CircleDotIcon,
4077
- yg as ClockIcon,
4083
+ yg as CircleDotIcon,
4084
+ Lg as ClockIcon,
4078
4085
  Pg as CloseIcon,
4079
4086
  Ng as CloudIcon,
4080
4087
  bo as Code,
@@ -4152,9 +4159,9 @@ export {
4152
4159
  bC as MessageSquareIcon,
4153
4160
  wC as MicIcon,
4154
4161
  xC as MilestoneIcon,
4155
- LC as MinusIcon,
4162
+ yC as MinusIcon,
4156
4163
  jo as Modal,
4157
- yC as MonitorIcon,
4164
+ LC as MonitorIcon,
4158
4165
  PC as MoonIcon,
4159
4166
  NC as MoreHorizontalIcon,
4160
4167
  jC as MousePointerIcon,
@@ -4162,7 +4169,7 @@ export {
4162
4169
  zC as MusicIcon,
4163
4170
  lo as NumberInput,
4164
4171
  GB as PageHeader,
4165
- yo as Pagination,
4172
+ Lo as Pagination,
4166
4173
  MC as PanelIcon,
4167
4174
  HC as PanelLeftIcon,
4168
4175
  DC as PanelTopIcon,
@@ -4194,7 +4201,7 @@ export {
4194
4201
  oB as SquareIcon,
4195
4202
  gB as StarIcon,
4196
4203
  CB as SunIcon,
4197
- Lo as Switch,
4204
+ yo as Switch,
4198
4205
  Mo as Table,
4199
4206
  BB as TableIcon,
4200
4207
  FB as TabletIcon,