tcce-design-system 0.1.5 → 0.1.6

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.
@@ -1,6 +1,6 @@
1
1
  import * as _n from "react";
2
2
  import x, { useDebugValue as no, createElement as Xs, useRef as ft, useContext as ct, createContext as ge, useLayoutEffect as Nc, useEffect as Ot, useId as Xt, useInsertionEffect as qs, useMemo as Ft, useCallback as Hn, Children as Lc, isValidElement as Bc, useState as Wt, Fragment as Zs, forwardRef as zt, Component as Oc } from "react";
3
- import { jsx as p, Fragment as Js, jsxs as R } from "react/jsx-runtime";
3
+ import { jsx as p, Fragment as Js, jsxs as I } from "react/jsx-runtime";
4
4
  import jc, { createPortal as Fc } from "react-dom";
5
5
  import { useField as zc } from "formik";
6
6
  var bt = function() {
@@ -1065,23 +1065,23 @@ function Yu(t, e, n) {
1065
1065
  var g = new Ku(n, h, r ? i.componentStyle : void 0);
1066
1066
  function w(A, T) {
1067
1067
  return (function(S, C, E) {
1068
- var M = S.attrs, _ = S.componentStyle, D = S.defaultProps, K = S.foldedComponentIds, U = S.styledComponentId, Tt = S.target, et = x.useContext(wa), O = go(), V = S.shouldForwardProp || O.shouldForwardProp;
1068
+ var M = S.attrs, z = S.componentStyle, D = S.defaultProps, K = S.foldedComponentIds, U = S.styledComponentId, Tt = S.target, et = x.useContext(wa), O = go(), V = S.shouldForwardProp || O.shouldForwardProp;
1069
1069
  process.env.NODE_ENV !== "production" && no(U);
1070
- var F = hu(C, et, D) || Ie, I = (function(Y, st, $t) {
1070
+ var F = hu(C, et, D) || Ie, R = (function(Y, st, $t) {
1071
1071
  for (var H, yt = bt(bt({}, st), { className: void 0, theme: $t }), qt = 0; qt < Y.length; qt += 1) {
1072
1072
  var _t = Ne(H = Y[qt]) ? H(yt) : H;
1073
1073
  for (var pt in _t) yt[pt] = pt === "className" ? le(yt[pt], _t[pt]) : pt === "style" ? bt(bt({}, yt[pt]), _t[pt]) : _t[pt];
1074
1074
  }
1075
1075
  return st.className && (yt.className = le(yt.className, st.className)), yt;
1076
- })(M, C, F), j = I.as || Tt, nt = {};
1077
- for (var rt in I) I[rt] === void 0 || rt[0] === "$" || rt === "as" || rt === "theme" && I.theme === F || (rt === "forwardedAs" ? nt.as = I.forwardedAs : V && !V(rt, j) || (nt[rt] = I[rt], V || process.env.NODE_ENV !== "development" || Uc(rt) || bo.has(rt) || !Er.has(j) || (bo.add(rt), console.warn('styled-components: it looks like an unknown prop "'.concat(rt, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1076
+ })(M, C, F), j = R.as || Tt, nt = {};
1077
+ for (var rt in R) R[rt] === void 0 || rt[0] === "$" || rt === "as" || rt === "theme" && R.theme === F || (rt === "forwardedAs" ? nt.as = R.forwardedAs : V && !V(rt, j) || (nt[rt] = R[rt], V || process.env.NODE_ENV !== "development" || Uc(rt) || bo.has(rt) || !Er.has(j) || (bo.add(rt), console.warn('styled-components: it looks like an unknown prop "'.concat(rt, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1078
1078
  var B = (function(Y, st) {
1079
1079
  var $t = go(), H = Y.generateAndInjectStyles(st, $t.styleSheet, $t.stylis);
1080
1080
  return process.env.NODE_ENV !== "production" && no(H), H;
1081
- })(_, I);
1081
+ })(z, R);
1082
1082
  process.env.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(B);
1083
1083
  var G = le(K, U);
1084
- return B && (G += " " + B), I.className && (G += " " + I.className), nt[lr(j) && !Er.has(j) ? "class" : "className"] = G, E && (nt.ref = E), Xs(j, nt);
1084
+ return B && (G += " " + B), R.className && (G += " " + R.className), nt[lr(j) && !Er.has(j) ? "class" : "className"] = G, E && (nt.ref = E), Xs(j, nt);
1085
1085
  })(v, A, T);
1086
1086
  }
1087
1087
  w.displayName = c;
@@ -1253,7 +1253,7 @@ const Ta = {
1253
1253
  font-weight: 400;
1254
1254
  line-height: 161.76%;
1255
1255
  `
1256
- }, z = {
1256
+ }, _ = {
1257
1257
  80: P`
1258
1258
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
1259
1259
  font-size: 5rem;
@@ -1333,7 +1333,7 @@ const Ta = {
1333
1333
  margin: 0;
1334
1334
  color: ${({ color: t }) => t || "var(--color-main-blue-primary)"};
1335
1335
  `, li = k.span`
1336
- ${({ size: t = 16 }) => z[t]}
1336
+ ${({ size: t = 16 }) => _[t]}
1337
1337
  margin: 0;
1338
1338
  color: ${({ color: t }) => t || "var(--color-main-blue-primary)"};
1339
1339
  `, Xu = k.span`
@@ -1949,8 +1949,8 @@ function Br({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 3
1949
1949
  const b = c + y, g = o === void 0 ? b : o(b);
1950
1950
  g !== b && (y = g - c);
1951
1951
  const w = (E) => -y * Math.exp(-E / r), v = (E) => g + w(E), A = (E) => {
1952
- const M = w(E), _ = v(E);
1953
- h.done = Math.abs(M) <= u, h.value = h.done ? g : _;
1952
+ const M = w(E), z = v(E);
1953
+ h.done = Math.abs(M) <= u, h.value = h.done ? g : z;
1954
1954
  };
1955
1955
  let T, S;
1956
1956
  const C = (E) => {
@@ -2116,8 +2116,8 @@ class Ai extends Pi {
2116
2116
  let v = this.currentTime, A = r;
2117
2117
  if (c) {
2118
2118
  const E = Math.min(this.currentTime, i) / a;
2119
- let M = Math.floor(E), _ = E % 1;
2120
- !_ && E >= 1 && (_ = 1), _ === 1 && M--, M = Math.min(M, c + 1), !!(M % 2) && (h === "reverse" ? (_ = 1 - _, f && (_ -= f / a)) : h === "mirror" && (A = o)), v = Kt(0, 1, _) * a;
2119
+ let M = Math.floor(E), z = E % 1;
2120
+ !z && E >= 1 && (z = 1), z === 1 && M--, M = Math.min(M, c + 1), !!(M % 2) && (h === "reverse" ? (z = 1 - z, f && (z -= f / a)) : h === "mirror" && (A = o)), v = Kt(0, 1, z) * a;
2121
2121
  }
2122
2122
  const T = w ? { done: !1, value: d[0] } : A.next(v);
2123
2123
  s && (T.value = s(T.value));
@@ -3353,10 +3353,10 @@ const Zn = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, presen
3353
3353
  y.set(C, !0);
3354
3354
  else
3355
3355
  return;
3356
- let _ = !0;
3356
+ let z = !0;
3357
3357
  y.forEach((D) => {
3358
- D || (_ = !1);
3359
- }), _ && (T?.(), v(m.current), o && d?.(), r && r());
3358
+ D || (z = !1);
3359
+ }), z && (T?.(), v(m.current), o && d?.(), r && r());
3360
3360
  };
3361
3361
  return p(qh, { isPresent: E, initial: !f.current || n ? void 0 : !1, custom: e, presenceAffectsLayout: i, mode: s, root: l, onExitComplete: E ? void 0 : M, anchorX: a, children: S }, C);
3362
3362
  }) });
@@ -3827,7 +3827,7 @@ function gr(t, { forwardMotionProps: e = !1 } = {}, n, r) {
3827
3827
  const m = Df(d);
3828
3828
  u = m.MeasureLayout, h.visualElement = kf(t, f, d, r, m.ProjectionNode);
3829
3829
  }
3830
- return R(Jn.Provider, { value: h, children: [u && h.visualElement ? p(u, { visualElement: h.visualElement, ...d }) : null, yf(t, a, Tf(f, h.visualElement, l), f, c, e)] });
3830
+ return I(Jn.Provider, { value: h, children: [u && h.visualElement ? p(u, { visualElement: h.visualElement, ...d }) : null, yf(t, a, Tf(f, h.visualElement, l), f, c, e)] });
3831
3831
  }
3832
3832
  s.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
3833
3833
  const o = zt(s);
@@ -4548,8 +4548,8 @@ function cm(t) {
4548
4548
  let E = C || // If we're making this variant active, we want to always make it active
4549
4549
  g === l && w.isActive && !S && A || // If we removed a higher-priority variant (i is in reverse order)
4550
4550
  b > m && A, M = !1;
4551
- const _ = Array.isArray(v) ? v : [v];
4552
- let D = _.reduce(i(g), {});
4551
+ const z = Array.isArray(v) ? v : [v];
4552
+ let D = z.reduce(i(g), {});
4553
4553
  T === !1 && (D = {});
4554
4554
  const { prevResolvedValues: K = {} } = w, U = {
4555
4555
  ...K,
@@ -4560,21 +4560,21 @@ function cm(t) {
4560
4560
  F && (F.liveStyle = !1);
4561
4561
  };
4562
4562
  for (const V in U) {
4563
- const F = D[V], I = K[V];
4563
+ const F = D[V], R = K[V];
4564
4564
  if (f.hasOwnProperty(V))
4565
4565
  continue;
4566
4566
  let j = !1;
4567
- qr(F) && qr(I) ? j = !Fl(F, I) : j = F !== I, j ? F != null ? Tt(V) : h.add(V) : F !== void 0 && h.has(V) ? Tt(V) : w.protectedKeys[V] = !0;
4567
+ qr(F) && qr(R) ? j = !Fl(F, R) : j = F !== R, j ? F != null ? Tt(V) : h.add(V) : F !== void 0 && h.has(V) ? Tt(V) : w.protectedKeys[V] = !0;
4568
4568
  }
4569
4569
  w.prevProp = v, w.prevResolvedValues = D, w.isActive && (f = { ...f, ...D }), r && t.blockInitialAnimation && (E = !1);
4570
4570
  const et = S && C;
4571
- E && (!et || M) && c.push(..._.map((V) => {
4571
+ E && (!et || M) && c.push(...z.map((V) => {
4572
4572
  const F = { type: g };
4573
4573
  if (typeof V == "string" && r && !et && t.manuallyAnimateOnMount && t.parent) {
4574
- const { parent: I } = t, j = De(I, V);
4575
- if (I.enteringChildren && j) {
4574
+ const { parent: R } = t, j = De(R, V);
4575
+ if (R.enteringChildren && j) {
4576
4576
  const { delayChildren: nt } = j.transition || {};
4577
- F.delay = jl(I.enteringChildren, t, nt);
4577
+ F.delay = jl(R.enteringChildren, t, nt);
4578
4578
  }
4579
4579
  }
4580
4580
  return {
@@ -6202,7 +6202,7 @@ const Ep = {
6202
6202
  min-height: 12.5rem;
6203
6203
  width: 100%;
6204
6204
  `, Np = k(ye.p)`
6205
- ${z[16]}
6205
+ ${_[16]}
6206
6206
  ${({ $color: t = "primary" }) => nc[t]}
6207
6207
  margin: 0;
6208
6208
  `, Hi = ({
@@ -6213,8 +6213,8 @@ const Ep = {
6213
6213
  title: i,
6214
6214
  variant: s = "rotate"
6215
6215
  }) => {
6216
- const o = /* @__PURE__ */ R(Rp, { children: [
6217
- /* @__PURE__ */ R(Vp, { $size: t, $color: e, $variant: s, children: [
6216
+ const o = /* @__PURE__ */ I(Rp, { children: [
6217
+ /* @__PURE__ */ I(Vp, { $size: t, $color: e, $variant: s, children: [
6218
6218
  /* @__PURE__ */ p(
6219
6219
  ye.svg,
6220
6220
  {
@@ -6293,7 +6293,7 @@ const Ep = {
6293
6293
  ${Ta[30]}
6294
6294
  color: var(--color-main-blue-primary);
6295
6295
  margin: 0;
6296
- `, Jy = ({ message: t = "Loading...", color: e = "primary", variant: n = "rotate" }) => /* @__PURE__ */ R(Lp, { role: "status", "aria-live": "polite", children: [
6296
+ `, Jy = ({ message: t = "Loading...", color: e = "primary", variant: n = "rotate" }) => /* @__PURE__ */ I(Lp, { role: "status", "aria-live": "polite", children: [
6297
6297
  /* @__PURE__ */ p(Bp, { children: /* @__PURE__ */ p(
6298
6298
  Hi,
6299
6299
  {
@@ -6376,17 +6376,17 @@ const Ep = {
6376
6376
  sm: P`
6377
6377
  padding: 0.375rem 0.75rem;
6378
6378
  min-height: 2.75rem;
6379
- ${z[12]}
6379
+ ${_[12]}
6380
6380
  `,
6381
6381
  md: P`
6382
6382
  padding: 0.625rem 1.25rem;
6383
6383
  min-height: 3.175rem;
6384
- ${z[16]}
6384
+ ${_[16]}
6385
6385
  `,
6386
6386
  lg: P`
6387
6387
  padding: 0.75rem 1.5rem;
6388
6388
  min-height: 3.5rem;
6389
- ${z[20]}
6389
+ ${_[20]}
6390
6390
  `
6391
6391
  }, Up = k.button`
6392
6392
  borden: none;
@@ -6420,7 +6420,7 @@ const Ep = {
6420
6420
  iconSize: a = "md",
6421
6421
  iconColor: l = "currentColor",
6422
6422
  ...u
6423
- }) => /* @__PURE__ */ R(
6423
+ }) => /* @__PURE__ */ I(
6424
6424
  Up,
6425
6425
  {
6426
6426
  $variant: e,
@@ -6723,7 +6723,7 @@ function mg(t) {
6723
6723
  }
6724
6724
  const pg = (t) => {
6725
6725
  var e, n, r, i, s, o, a, l, u;
6726
- const { invert: d, toast: c, unstyled: h, interacting: f, setHeights: m, visibleToasts: y, heights: b, index: g, toasts: w, expanded: v, removeToast: A, defaultRichColors: T, closeButton: S, style: C, cancelButtonStyle: E, actionButtonStyle: M, className: _ = "", descriptionClassName: D = "", duration: K, position: U, gap: Tt, expandByDefault: et, classNames: O, icons: V, closeButtonAriaLabel: F = "Close toast" } = t, [I, j] = x.useState(null), [nt, rt] = x.useState(null), [B, G] = x.useState(!1), [Y, st] = x.useState(!1), [$t, H] = x.useState(!1), [yt, qt] = x.useState(!1), [_t, pt] = x.useState(!1), [Tc, rr] = x.useState(0), [Cc, Yi] = x.useState(0), Ye = x.useRef(c.duration || K || js), Gi = x.useRef(null), Ht = x.useRef(null), kc = g === 0, Pc = g + 1 <= y, wt = c.type, be = c.dismissible !== !1, Ac = c.className || "", Ec = c.descriptionClassName || "", fn = x.useMemo(() => b.findIndex((N) => N.toastId === c.id) || 0, [
6726
+ const { invert: d, toast: c, unstyled: h, interacting: f, setHeights: m, visibleToasts: y, heights: b, index: g, toasts: w, expanded: v, removeToast: A, defaultRichColors: T, closeButton: S, style: C, cancelButtonStyle: E, actionButtonStyle: M, className: z = "", descriptionClassName: D = "", duration: K, position: U, gap: Tt, expandByDefault: et, classNames: O, icons: V, closeButtonAriaLabel: F = "Close toast" } = t, [R, j] = x.useState(null), [nt, rt] = x.useState(null), [B, G] = x.useState(!1), [Y, st] = x.useState(!1), [$t, H] = x.useState(!1), [yt, qt] = x.useState(!1), [_t, pt] = x.useState(!1), [Tc, rr] = x.useState(0), [Cc, Yi] = x.useState(0), Ye = x.useRef(c.duration || K || js), Gi = x.useRef(null), Ht = x.useRef(null), kc = g === 0, Pc = g + 1 <= y, wt = c.type, be = c.dismissible !== !1, Ac = c.className || "", Ec = c.descriptionClassName || "", fn = x.useMemo(() => b.findIndex((N) => N.toastId === c.id) || 0, [
6727
6727
  b,
6728
6728
  c.id
6729
6729
  ]), Dc = x.useMemo(() => {
@@ -6846,7 +6846,7 @@ const pg = (t) => {
6846
6846
  return /* @__PURE__ */ x.createElement("li", {
6847
6847
  tabIndex: 0,
6848
6848
  ref: Ht,
6849
- className: Lt(_, Ac, O?.toast, c == null || (e = c.classNames) == null ? void 0 : e.toast, O?.default, O?.[wt], c == null || (n = c.classNames) == null ? void 0 : n[wt]),
6849
+ className: Lt(z, Ac, O?.toast, c == null || (e = c.classNames) == null ? void 0 : e.toast, O?.default, O?.[wt], c == null || (n = c.classNames) == null ? void 0 : n[wt]),
6850
6850
  "data-sonner-toast": "",
6851
6851
  "data-rich-colors": (Qi = c.richColors) != null ? Qi : T,
6852
6852
  "data-styled": !(c.jsx || c.unstyled || h),
@@ -6889,9 +6889,9 @@ const pg = (t) => {
6889
6889
  var N, at, ht;
6890
6890
  if (yt || !be) return;
6891
6891
  we.current = null;
6892
- const St = Number(((N = Ht.current) == null ? void 0 : N.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), mn = Number(((at = Ht.current) == null ? void 0 : at.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ut = (/* @__PURE__ */ new Date()).getTime() - ((ht = Gi.current) == null ? void 0 : ht.getTime()), Ct = I === "x" ? St : mn, pn = Math.abs(Ct) / ut;
6892
+ const St = Number(((N = Ht.current) == null ? void 0 : N.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), mn = Number(((at = Ht.current) == null ? void 0 : at.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ut = (/* @__PURE__ */ new Date()).getTime() - ((ht = Gi.current) == null ? void 0 : ht.getTime()), Ct = R === "x" ? St : mn, pn = Math.abs(Ct) / ut;
6893
6893
  if (Math.abs(Ct) >= hg || pn > 0.11) {
6894
- rr(xe.current), c.onDismiss == null || c.onDismiss.call(c, c), rt(I === "x" ? St > 0 ? "right" : "left" : mn > 0 ? "down" : "up"), Zt(), qt(!0);
6894
+ rr(xe.current), c.onDismiss == null || c.onDismiss.call(c, c), rt(R === "x" ? St > 0 ? "right" : "left" : mn > 0 ? "down" : "up"), Zt(), qt(!0);
6895
6895
  return;
6896
6896
  } else {
6897
6897
  var Mt, Vt;
@@ -6905,13 +6905,13 @@ const pg = (t) => {
6905
6905
  const ut = N.clientY - we.current.y, Ct = N.clientX - we.current.x;
6906
6906
  var pn;
6907
6907
  const Mt = (pn = t.swipeDirections) != null ? pn : mg(U);
6908
- !I && (Math.abs(Ct) > 1 || Math.abs(ut) > 1) && j(Math.abs(Ct) > Math.abs(ut) ? "x" : "y");
6908
+ !R && (Math.abs(Ct) > 1 || Math.abs(ut) > 1) && j(Math.abs(Ct) > Math.abs(ut) ? "x" : "y");
6909
6909
  let Vt = {
6910
6910
  x: 0,
6911
6911
  y: 0
6912
6912
  };
6913
6913
  const eo = (re) => 1 / (1.5 + Math.abs(re) / 20);
6914
- if (I === "y") {
6914
+ if (R === "y") {
6915
6915
  if (Mt.includes("top") || Mt.includes("bottom"))
6916
6916
  if (Mt.includes("top") && ut < 0 || Mt.includes("bottom") && ut > 0)
6917
6917
  Vt.y = ut;
@@ -6919,7 +6919,7 @@ const pg = (t) => {
6919
6919
  const re = ut * eo(ut);
6920
6920
  Vt.y = Math.abs(re) < Math.abs(ut) ? re : ut;
6921
6921
  }
6922
- } else if (I === "x" && (Mt.includes("left") || Mt.includes("right")))
6922
+ } else if (R === "x" && (Mt.includes("left") || Mt.includes("right")))
6923
6923
  if (Mt.includes("left") && Ct < 0 || Mt.includes("right") && Ct > 0)
6924
6924
  Vt.x = Ct;
6925
6925
  else {
@@ -7011,7 +7011,7 @@ const yg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7011
7011
  ].concat(E.filter((B) => B.position).map((B) => B.position)))), [
7012
7012
  E,
7013
7013
  s
7014
- ]), [_, D] = x.useState([]), [K, U] = x.useState(!1), [Tt, et] = x.useState(!1), [O, V] = x.useState(h !== "system" ? h : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), F = x.useRef(null), I = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), j = x.useRef(null), nt = x.useRef(!1), rt = x.useCallback((B) => {
7014
+ ]), [z, D] = x.useState([]), [K, U] = x.useState(!1), [Tt, et] = x.useState(!1), [O, V] = x.useState(h !== "system" ? h : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), F = x.useRef(null), R = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), j = x.useRef(null), nt = x.useRef(!1), rt = x.useCallback((B) => {
7015
7015
  C((G) => {
7016
7016
  var Y;
7017
7017
  return (Y = G.find((st) => st.id === B.id)) != null && Y.delete || vt.dismiss(B.id), G.filter(({ id: st }) => st !== B.id);
@@ -7097,7 +7097,7 @@ const yg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7097
7097
  ]), // Remove item from normal navigation flow, only available via hotkey
7098
7098
  /* @__PURE__ */ x.createElement("section", {
7099
7099
  ref: n,
7100
- "aria-label": `${T} ${I}`,
7100
+ "aria-label": `${T} ${R}`,
7101
7101
  tabIndex: -1,
7102
7102
  "aria-live": "polite",
7103
7103
  "aria-relevant": "additions text",
@@ -7117,7 +7117,7 @@ const yg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7117
7117
  "data-y-position": st,
7118
7118
  "data-x-position": $t,
7119
7119
  style: {
7120
- "--front-toast-height": `${((Y = _[0]) == null ? void 0 : Y.height) || 0}px`,
7120
+ "--front-toast-height": `${((Y = z[0]) == null ? void 0 : Y.height) || 0}px`,
7121
7121
  "--width": `${ug}px`,
7122
7122
  "--gap": `${v}px`,
7123
7123
  ...y,
@@ -7165,7 +7165,7 @@ const yg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7165
7165
  closeButtonAriaLabel: g?.closeButtonAriaLabel,
7166
7166
  removeToast: rt,
7167
7167
  toasts: E.filter((pt) => pt.position == H.position),
7168
- heights: _.filter((pt) => pt.position == H.position),
7168
+ heights: z.filter((pt) => pt.position == H.position),
7169
7169
  setHeights: D,
7170
7170
  expandByDefault: a,
7171
7171
  gap: v,
@@ -7330,13 +7330,13 @@ const yg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7330
7330
  ...e
7331
7331
  }) => /* @__PURE__ */ p(kg, { ...e, children: t }), Pg = {
7332
7332
  sm: P`
7333
- ${z[12]}
7333
+ ${_[12]}
7334
7334
  `,
7335
7335
  md: P`
7336
- ${z[16]}
7336
+ ${_[16]}
7337
7337
  `,
7338
7338
  lg: P`
7339
- ${z[18]}
7339
+ ${_[18]}
7340
7340
  `
7341
7341
  }, Ag = k.div`
7342
7342
  color: var(--color-main-warning-state);
@@ -7353,13 +7353,13 @@ const yg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7353
7353
  ...r
7354
7354
  }) => /* @__PURE__ */ p(Ag, { className: e, $size: n, ...r, children: t }), Eg = {
7355
7355
  sm: P`
7356
- ${z[16]}
7356
+ ${_[16]}
7357
7357
  `,
7358
7358
  md: P`
7359
- ${z[24]}
7359
+ ${_[24]}
7360
7360
  `,
7361
7361
  lg: P`
7362
- ${z[30]}
7362
+ ${_[30]}
7363
7363
  `
7364
7364
  }, Dg = k.label`
7365
7365
  color: var(--color-main-blue-primary);
@@ -7377,7 +7377,7 @@ const yg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7377
7377
  disabled: i = !1,
7378
7378
  size: s = "md",
7379
7379
  ...o
7380
- }) => /* @__PURE__ */ R(
7380
+ }) => /* @__PURE__ */ I(
7381
7381
  Dg,
7382
7382
  {
7383
7383
  className: n,
@@ -7653,17 +7653,17 @@ const yg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7653
7653
  sm: P`
7654
7654
  padding: 0.5rem 1rem;
7655
7655
  height: 2.5rem;
7656
- ${z[18]}
7656
+ ${_[18]}
7657
7657
  `,
7658
7658
  md: P`
7659
7659
  padding: 0.5rem 1rem;
7660
7660
  height: 2.75rem;
7661
- ${z[20]}
7661
+ ${_[20]}
7662
7662
  `,
7663
7663
  lg: P`
7664
7664
  padding: 0.5rem 1rem;
7665
7665
  height: 3rem;
7666
- ${z[20]}
7666
+ ${_[20]}
7667
7667
  `
7668
7668
  }, nr = P`
7669
7669
  display: flex;
@@ -7692,7 +7692,7 @@ const yg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7692
7692
  iconColor: l = "currentColor",
7693
7693
  className: u,
7694
7694
  ...d
7695
- }, c) => /* @__PURE__ */ R(
7695
+ }, c) => /* @__PURE__ */ I(
7696
7696
  Ig,
7697
7697
  {
7698
7698
  $size: t,
@@ -7754,7 +7754,7 @@ const Lg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
7754
7754
  ...l
7755
7755
  }) => {
7756
7756
  const [u, d] = Wt(!1), c = () => d((h) => !h);
7757
- return /* @__PURE__ */ R(
7757
+ return /* @__PURE__ */ I(
7758
7758
  Wg,
7759
7759
  {
7760
7760
  $size: t,
@@ -7895,13 +7895,13 @@ const Lg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
7895
7895
  color: ${({ $disabled: t }) => t ? "var(--color-dark-200)" : "var(--color-main-blue-primary)"};
7896
7896
  `, s0 = {
7897
7897
  sm: P`
7898
- ${z[16]}
7898
+ ${_[16]}
7899
7899
  `,
7900
7900
  md: P`
7901
- ${z[18]}
7901
+ ${_[18]}
7902
7902
  `,
7903
7903
  lg: P`
7904
- ${z[18]}
7904
+ ${_[18]}
7905
7905
  `
7906
7906
  }, oc = zt(
7907
7907
  ({
@@ -7939,7 +7939,7 @@ const Lg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
7939
7939
  D.disabled || (s?.(D), o && o(Zg(D.value, l)), A(!1), S(-1));
7940
7940
  }, M = (D) => {
7941
7941
  n || (D.key === "ArrowDown" || D.key === "ArrowUp" ? (D.preventDefault(), A(!0)) : (D.key === "Enter" || D.key === " ") && (D.preventDefault(), A((K) => !K)));
7942
- }, _ = (D) => {
7942
+ }, z = (D) => {
7943
7943
  if (D.key === "Escape") {
7944
7944
  D.preventDefault(), A(!1), S(-1);
7945
7945
  return;
@@ -7954,7 +7954,7 @@ const Lg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
7954
7954
  K && !K.disabled && E(K);
7955
7955
  } else D.key === "Home" ? (D.preventDefault(), S(ic(r))) : D.key === "End" && (D.preventDefault(), S(Xg(r)));
7956
7956
  };
7957
- return /* @__PURE__ */ R(t0, { ref: m, className: u, children: [
7957
+ return /* @__PURE__ */ I(t0, { ref: m, className: u, children: [
7958
7958
  l && /* @__PURE__ */ p("input", { type: "hidden", name: l, value: C?.value ?? "" }),
7959
7959
  /* @__PURE__ */ p(
7960
7960
  n0,
@@ -8015,7 +8015,7 @@ const Lg = ({ color: t = "currentColor", size: e = 24, className: n, ...r }) =>
8015
8015
  duration: 0.25,
8016
8016
  ease: [0.4, 0, 0.2, 1]
8017
8017
  },
8018
- onKeyDown: _,
8018
+ onKeyDown: z,
8019
8019
  children: /* @__PURE__ */ p(i0, { ref: b, className: c, children: r.map((D, K) => {
8020
8020
  const U = K === T;
8021
8021
  return /* @__PURE__ */ p(
@@ -8048,7 +8048,7 @@ const a0 = k.textarea`
8048
8048
  ${({ $size: t }) => l0[t]}
8049
8049
  ${({ $hasError: t }) => t && Ke}
8050
8050
  ${({ $disabled: t }) => t && ve}
8051
- ${z[20]}
8051
+ ${_[20]}
8052
8052
 
8053
8053
  resize: ${({ $resize: t }) => t};
8054
8054
 
@@ -8063,19 +8063,19 @@ const a0 = k.textarea`
8063
8063
  }
8064
8064
  `, l0 = {
8065
8065
  sm: `
8066
- ${z[20]}
8066
+ ${_[20]}
8067
8067
  height: 6rem;
8068
8068
  max-height: 12rem;
8069
8069
  padding: 1rem 1.25rem;
8070
8070
  `,
8071
8071
  md: `
8072
- ${z[24]}
8072
+ ${_[24]}
8073
8073
  height: 8rem;
8074
8074
  max-height: 16rem;
8075
8075
  padding: 1rem 1.25rem;
8076
8076
  `,
8077
8077
  lg: `
8078
- ${z[24]}
8078
+ ${_[24]}
8079
8079
  height:12rem;
8080
8080
  max-height: 20rem;
8081
8081
  padding: 1rem 1.25rem;
@@ -8132,7 +8132,7 @@ const c0 = k.div`
8132
8132
  placeholder: s = "Buscar...",
8133
8133
  onSearch: o,
8134
8134
  className: a
8135
- }) => /* @__PURE__ */ R(c0, { $size: t, className: a, children: [
8135
+ }) => /* @__PURE__ */ I(c0, { $size: t, className: a, children: [
8136
8136
  e && /* @__PURE__ */ p(q, { component: e, size: r, color: i }),
8137
8137
  /* @__PURE__ */ p(u0, { placeholder: s, onChange: (u) => {
8138
8138
  o?.(u.target.value);
@@ -8220,7 +8220,7 @@ const c0 = k.div`
8220
8220
  );
8221
8221
  return Ot(() => {
8222
8222
  m.current && (m.current.indeterminate = !!e);
8223
- }, [e]), /* @__PURE__ */ R(h0, { className: s, children: [
8223
+ }, [e]), /* @__PURE__ */ I(h0, { className: s, children: [
8224
8224
  /* @__PURE__ */ p(
8225
8225
  f0,
8226
8226
  {
@@ -8237,7 +8237,7 @@ const c0 = k.div`
8237
8237
  ...f
8238
8238
  }
8239
8239
  ),
8240
- /* @__PURE__ */ R(
8240
+ /* @__PURE__ */ I(
8241
8241
  m0,
8242
8242
  {
8243
8243
  $checked: !!c || !!e,
@@ -8305,7 +8305,7 @@ const v0 = ({
8305
8305
  ...c
8306
8306
  }, h) => {
8307
8307
  const f = Xt(), m = c.id ?? f;
8308
- return /* @__PURE__ */ R(b0, { className: l, children: [
8308
+ return /* @__PURE__ */ I(b0, { className: l, children: [
8309
8309
  /* @__PURE__ */ p(
8310
8310
  ac,
8311
8311
  {
@@ -8388,19 +8388,19 @@ const x0 = k.div`
8388
8388
  padding: 0.375rem;
8389
8389
  width: 2.5rem;
8390
8390
  height: 2.5rem;
8391
- ${z[24]}
8391
+ ${_[24]}
8392
8392
  `,
8393
8393
  md: `
8394
8394
  padding: 0.625rem;
8395
8395
  width: 3rem;
8396
8396
  height: 3.5rem;
8397
- ${z[30]}
8397
+ ${_[30]}
8398
8398
  `,
8399
8399
  lg: `
8400
8400
  padding: 0.75rem;
8401
8401
  width: 3.5rem;
8402
8402
  height: 4rem;
8403
- ${z[40]}
8403
+ ${_[40]}
8404
8404
  `
8405
8405
  }, lc = zt(
8406
8406
  ({
@@ -8593,7 +8593,7 @@ const D0 = k.div`
8593
8593
  ...o
8594
8594
  }, a) => {
8595
8595
  const l = Xt(), u = o.id ?? l, d = !!e, { size: c, ...h } = o;
8596
- return /* @__PURE__ */ R(D0, { className: i, children: [
8596
+ return /* @__PURE__ */ I(D0, { className: i, children: [
8597
8597
  /* @__PURE__ */ p(
8598
8598
  $0,
8599
8599
  {
@@ -8651,7 +8651,7 @@ const I0 = k.section`
8651
8651
  ...u
8652
8652
  }, d) => {
8653
8653
  const c = Xt(), h = u.id ?? c;
8654
- return /* @__PURE__ */ R(I0, { className: o, children: [
8654
+ return /* @__PURE__ */ I(I0, { className: o, children: [
8655
8655
  /* @__PURE__ */ p(
8656
8656
  uc,
8657
8657
  {
@@ -8718,18 +8718,23 @@ const Us = k.div`
8718
8718
  onChange: E,
8719
8719
  ...M
8720
8720
  }) => {
8721
- const [_, D, K] = zc(e), U = !!(D.touched && D.error), Tt = U ? D.error : void 0, et = t?.toString?.() || e, O = {
8721
+ const [z, D, K] = zc(e), U = !!(D.touched && D.error), Tt = U ? D.error : void 0, et = t?.toString?.() || e, O = {
8722
8722
  required: a || void 0,
8723
8723
  "aria-required": a || void 0,
8724
8724
  "aria-invalid": U || void 0,
8725
8725
  "aria-describedby": U ? `${et}-error` : void 0
8726
- }, V = (I) => {
8727
- if (E) return E(I);
8728
- _.onChange(I);
8726
+ }, V = (R) => {
8727
+ if (E) return E(R);
8728
+ z.onChange(R);
8729
8729
  };
8730
8730
  let F;
8731
8731
  switch (r) {
8732
8732
  case "textarea": {
8733
+ const R = (j) => {
8734
+ E ? E(
8735
+ j
8736
+ ) : z.onChange(j);
8737
+ };
8733
8738
  F = /* @__PURE__ */ p(
8734
8739
  sc,
8735
8740
  {
@@ -8738,13 +8743,10 @@ const Us = k.div`
8738
8743
  className: m,
8739
8744
  hasError: U,
8740
8745
  disabled: o,
8746
+ value: z.value ?? "",
8741
8747
  size: i,
8742
8748
  placeholder: s,
8743
- onChange: (j) => {
8744
- E ? E(
8745
- j
8746
- ) : _.onChange(j);
8747
- },
8749
+ onChange: R,
8748
8750
  ...M,
8749
8751
  ...O
8750
8752
  }
@@ -8761,11 +8763,11 @@ const Us = k.div`
8761
8763
  hasError: U,
8762
8764
  disabled: o,
8763
8765
  size: i,
8764
- value: _.value ?? "",
8765
- onChange: (I) => {
8766
- _.onChange(I);
8766
+ value: z.value ?? "",
8767
+ onChange: (R) => {
8768
+ z.onChange(R);
8767
8769
  const j = l.find(
8768
- (nt) => String(nt.value) === I.target.value
8770
+ (nt) => String(nt.value) === R.target.value
8769
8771
  );
8770
8772
  j && T?.(j);
8771
8773
  },
@@ -8787,10 +8789,10 @@ const Us = k.div`
8787
8789
  hasError: U,
8788
8790
  disabled: o,
8789
8791
  size: i,
8790
- checked: !!_.value,
8792
+ checked: !!z.value,
8791
8793
  label: u,
8792
- onChange: (I) => {
8793
- K.setValue(I.target.checked);
8794
+ onChange: (R) => {
8795
+ K.setValue(R.target.checked);
8794
8796
  },
8795
8797
  ...M,
8796
8798
  ...O
@@ -8808,7 +8810,7 @@ const Us = k.div`
8808
8810
  size: i,
8809
8811
  hasError: U,
8810
8812
  disabled: o,
8811
- checked: _.value === j.value,
8813
+ checked: z.value === j.value,
8812
8814
  onChange: (nt) => {
8813
8815
  const rt = nt.target.value, B = typeof j.value == "number" ? Number(rt) : rt;
8814
8816
  K.setValue(B), S?.(nt);
@@ -8827,9 +8829,9 @@ const Us = k.div`
8827
8829
  type: h,
8828
8830
  size: i,
8829
8831
  hasError: U,
8830
- onChange: (I) => K.setValue(I),
8831
- onComplete: (I) => {
8832
- K.setValue(I), C?.(I);
8832
+ onChange: (R) => K.setValue(R),
8833
+ onComplete: (R) => {
8834
+ K.setValue(R), C?.(R);
8833
8835
  },
8834
8836
  ...M,
8835
8837
  ...O
@@ -8838,7 +8840,7 @@ const Us = k.div`
8838
8840
  break;
8839
8841
  }
8840
8842
  case "password": {
8841
- const { rightIcon: I, ...j } = M;
8843
+ const { rightIcon: R, ...j } = M;
8842
8844
  F = /* @__PURE__ */ p(
8843
8845
  Gg,
8844
8846
  {
@@ -8902,14 +8904,14 @@ const Us = k.div`
8902
8904
  rightIcon: w,
8903
8905
  iconSize: v,
8904
8906
  iconColor: A,
8905
- value: _.value ?? "",
8907
+ value: z.value ?? "",
8906
8908
  onChange: V,
8907
8909
  ...M,
8908
8910
  ...O
8909
8911
  }
8910
8912
  );
8911
8913
  }
8912
- return r === "checkbox" ? /* @__PURE__ */ R(Us, { className: f, children: [
8914
+ return r === "checkbox" ? /* @__PURE__ */ I(Us, { className: f, children: [
8913
8915
  F,
8914
8916
  U && /* @__PURE__ */ p(
8915
8917
  zs,
@@ -8920,7 +8922,7 @@ const Us = k.div`
8920
8922
  children: Tt
8921
8923
  }
8922
8924
  )
8923
- ] }) : /* @__PURE__ */ R(Us, { className: f, children: [
8925
+ ] }) : /* @__PURE__ */ I(Us, { className: f, children: [
8924
8926
  n && /* @__PURE__ */ p(
8925
8927
  Ui,
8926
8928
  {
@@ -9090,7 +9092,7 @@ const Us = k.div`
9090
9092
  window.clearTimeout(w), document.removeEventListener("keydown", A), f.current && f.current.focus();
9091
9093
  };
9092
9094
  }, [t]);
9093
- const y = /* @__PURE__ */ p(Zn, { children: t && /* @__PURE__ */ p(O0, { ...fc, onClick: m, children: /* @__PURE__ */ R(
9095
+ const y = /* @__PURE__ */ p(Zn, { children: t && /* @__PURE__ */ p(O0, { ...fc, onClick: m, children: /* @__PURE__ */ I(
9094
9096
  j0,
9095
9097
  {
9096
9098
  ...L0,
@@ -9261,7 +9263,7 @@ const Us = k.div`
9261
9263
  const S = (C) => {
9262
9264
  T(C), v?.(C);
9263
9265
  };
9264
- return /* @__PURE__ */ R(
9266
+ return /* @__PURE__ */ I(
9265
9267
  z0,
9266
9268
  {
9267
9269
  isOpen: t,
@@ -9275,12 +9277,12 @@ const Us = k.div`
9275
9277
  className: `${m} !h-fit !max-w-[60rem]`,
9276
9278
  children: [
9277
9279
  /* @__PURE__ */ p(H0, { showDivider: !0, className: y, children: /* @__PURE__ */ p(ai, { id: "tac-title", size: 20, children: r }) }),
9278
- /* @__PURE__ */ R(W0, { padded: !0, showBottomDivider: !0, className: b, children: [
9280
+ /* @__PURE__ */ I(W0, { padded: !0, showBottomDivider: !0, className: b, children: [
9279
9281
  i && /* @__PURE__ */ p(li, { id: "tac-subtitle", size: 16, children: i }),
9280
9282
  s,
9281
9283
  o
9282
9284
  ] }),
9283
- /* @__PURE__ */ R(Y0, { showDivider: !0, align: "space-between", className: g, children: [
9285
+ /* @__PURE__ */ I(Y0, { showDivider: !0, align: "space-between", className: g, children: [
9284
9286
  /* @__PURE__ */ p(
9285
9287
  Ki,
9286
9288
  {
@@ -9289,7 +9291,7 @@ const Us = k.div`
9289
9291
  onChange: (C) => S(C.target.checked)
9290
9292
  }
9291
9293
  ),
9292
- /* @__PURE__ */ R("div", { style: { display: "flex", gap: "0.5rem" }, children: [
9294
+ /* @__PURE__ */ I("div", { style: { display: "flex", gap: "0.5rem" }, children: [
9293
9295
  /* @__PURE__ */ p(Os, { variant: "secondary", onClick: n, children: u }),
9294
9296
  /* @__PURE__ */ p(Os, { variant: "primary", onClick: e, disabled: !A, children: l })
9295
9297
  ] })
@@ -9390,8 +9392,8 @@ const Us = k.div`
9390
9392
  [e, t.permissions]
9391
9393
  )) return null;
9392
9394
  const d = l.length > 0, c = !!(t.path && i && i.startsWith(t.path));
9393
- return /* @__PURE__ */ R(Q0, { $level: n, children: [
9394
- /* @__PURE__ */ R(
9395
+ return /* @__PURE__ */ I(Q0, { $level: n, children: [
9396
+ /* @__PURE__ */ I(
9395
9397
  X0,
9396
9398
  {
9397
9399
  onClick: () => {
@@ -9403,7 +9405,7 @@ const Us = k.div`
9403
9405
  $expanded: s && d,
9404
9406
  title: a ? t.label : "",
9405
9407
  children: [
9406
- /* @__PURE__ */ R(q0, { children: [
9408
+ /* @__PURE__ */ I(q0, { children: [
9407
9409
  n > 0 && !a && /* @__PURE__ */ p(ty, {}),
9408
9410
  t.icon && /* @__PURE__ */ p(
9409
9411
  q,
@@ -9543,10 +9545,10 @@ const Us = k.div`
9543
9545
  const { isCollapsed: o, setIsCollapsed: a, isMobileOpen: l, setIsMobileOpen: u } = pc(), d = (c) => {
9544
9546
  n(c), typeof window < "u" && window.innerWidth < 768 && u(!1);
9545
9547
  };
9546
- return /* @__PURE__ */ R(Js, { children: [
9548
+ return /* @__PURE__ */ I(Js, { children: [
9547
9549
  /* @__PURE__ */ p(Zn, { children: l && /* @__PURE__ */ p(ny, { ...fc, onClick: () => u(!1) }) }),
9548
- /* @__PURE__ */ R(ry, { $collapsed: l ? !1 : o, $open: l, children: [
9549
- /* @__PURE__ */ R(iy, { $collapsed: o, children: [
9550
+ /* @__PURE__ */ I(ry, { $collapsed: l ? !1 : o, $open: l, children: [
9551
+ /* @__PURE__ */ I(iy, { $collapsed: o, children: [
9550
9552
  /* @__PURE__ */ p(oy, { children: o ? s : i }),
9551
9553
  /* @__PURE__ */ p(
9552
9554
  ay,
@@ -9672,15 +9674,15 @@ const cy = {
9672
9674
  `, dy = {
9673
9675
  sm: P`
9674
9676
  gap: 0.25rem;
9675
- ${z[14]}
9677
+ ${_[14]}
9676
9678
  `,
9677
9679
  md: P`
9678
9680
  gap: 0.5rem;
9679
- ${z[16]}
9681
+ ${_[16]}
9680
9682
  `,
9681
9683
  lg: P`
9682
9684
  gap: 0.75rem;
9683
- ${z[20]}
9685
+ ${_[20]}
9684
9686
  `
9685
9687
  }, hy = k.a`
9686
9688
  display: inline-flex;
@@ -9748,7 +9750,7 @@ const cy = {
9748
9750
  tabIndex: l ? -1 : u ?? 0,
9749
9751
  ...w
9750
9752
  };
9751
- return /* @__PURE__ */ R(
9753
+ return /* @__PURE__ */ I(
9752
9754
  hy,
9753
9755
  {
9754
9756
  id: t,
@@ -9858,15 +9860,15 @@ const py = {
9858
9860
  `, vy = {
9859
9861
  sm: P`
9860
9862
  ${$e.sm}
9861
- ${z[16]}
9863
+ ${_[16]}
9862
9864
  `,
9863
9865
  md: P`
9864
9866
  ${$e.md}
9865
- ${z[20]}
9867
+ ${_[20]}
9866
9868
  `,
9867
9869
  lg: P`
9868
9870
  ${$e.lg}
9869
- ${z[24]}
9871
+ ${_[24]}
9870
9872
  `
9871
9873
  }, by = k.th`
9872
9874
  background-color: var(--color-main-blue-primary);
@@ -9953,17 +9955,17 @@ const py = {
9953
9955
  scope: "col",
9954
9956
  "aria-sort": h ? r === "none" ? "none" : r === "asc" ? "ascending" : "descending" : void 0,
9955
9957
  ...f,
9956
- children: h || d ? /* @__PURE__ */ R(wy, { onClick: () => h?.(m), "aria-label": `Sort ${m}`, children: [
9957
- /* @__PURE__ */ R(Ks, { children: [
9958
+ children: h || d ? /* @__PURE__ */ I(wy, { onClick: () => h?.(m), "aria-label": `Sort ${m}`, children: [
9959
+ /* @__PURE__ */ I(Ks, { children: [
9958
9960
  i && /* @__PURE__ */ p(q, { component: i, size: o, color: a }),
9959
9961
  /* @__PURE__ */ p(Ty, { size: e === "sm" ? 16 : e === "md" ? 20 : 24, children: t })
9960
9962
  ] }),
9961
- /* @__PURE__ */ R(Ys, { children: [
9963
+ /* @__PURE__ */ I(Ys, { children: [
9962
9964
  /* @__PURE__ */ p(Sy, { $dir: r, children: /* @__PURE__ */ p(q, { component: Lg, size: o, color: a }) }),
9963
9965
  s && /* @__PURE__ */ p(q, { component: s, size: o, color: a })
9964
9966
  ] })
9965
- ] }) : /* @__PURE__ */ R(xy, { $align: l, children: [
9966
- /* @__PURE__ */ R(Ks, { children: [
9967
+ ] }) : /* @__PURE__ */ I(xy, { $align: l, children: [
9968
+ /* @__PURE__ */ I(Ks, { children: [
9967
9969
  i && /* @__PURE__ */ p(q, { component: i, size: o, color: a }),
9968
9970
  /* @__PURE__ */ p(
9969
9971
  ai,
@@ -9989,15 +9991,15 @@ xc.displayName = "TableHeaderCell";
9989
9991
  const Cy = {
9990
9992
  sm: P`
9991
9993
  ${$e.sm}
9992
- ${z[14]}
9994
+ ${_[14]}
9993
9995
  `,
9994
9996
  md: P`
9995
9997
  ${$e.md}
9996
- ${z[14]}
9998
+ ${_[14]}
9997
9999
  `,
9998
10000
  lg: P`
9999
10001
  ${$e.lg}
10000
- ${z[16]}
10002
+ ${_[16]}
10001
10003
  `
10002
10004
  }, ky = k.td`
10003
10005
  vertical-align: middle;
@@ -10051,7 +10053,7 @@ const Cy = {
10051
10053
  $variant: s,
10052
10054
  className: o,
10053
10055
  ...c,
10054
- children: a || l ? /* @__PURE__ */ R(Py, { $align: n, children: [
10056
+ children: a || l ? /* @__PURE__ */ I(Py, { $align: n, children: [
10055
10057
  a && /* @__PURE__ */ p(Gs, { children: /* @__PURE__ */ p(q, { component: a, size: u, color: d }) }),
10056
10058
  /* @__PURE__ */ p(Ay, { children: t }),
10057
10059
  l && /* @__PURE__ */ p(Gs, { children: /* @__PURE__ */ p(q, { component: l, size: u, color: d }) })
@@ -10105,7 +10107,7 @@ const Ey = k.table`
10105
10107
  const l = (u, d) => (c) => {
10106
10108
  u.onSort?.(c), a?.({ columnId: u.id ?? String(d), direction: c });
10107
10109
  };
10108
- return /* @__PURE__ */ p($y, { className: i, children: /* @__PURE__ */ R(Ey, { $variant: r, className: s, children: [
10110
+ return /* @__PURE__ */ p($y, { className: i, children: /* @__PURE__ */ I(Ey, { $variant: r, className: s, children: [
10109
10111
  /* @__PURE__ */ p(Dy, { $sticky: o, children: /* @__PURE__ */ p("tr", { children: t.map((u, d) => /* @__PURE__ */ p(
10110
10112
  xc,
10111
10113
  {
@@ -10272,10 +10274,10 @@ const Vy = k.header`
10272
10274
  children: o
10273
10275
  }) => {
10274
10276
  const a = (h) => h.split(" ").map((f) => f[0]).join("").toUpperCase().slice(0, 2), l = (r ?? 0) > 0 || n, u = r && r > 0 ? r : void 0, d = u ? `${u} notification${u === 1 ? "" : "s"}` : l ? "New notifications" : "No notifications", c = `Notifications: ${d}`;
10275
- return /* @__PURE__ */ R(Vy, { $sidebarCollapsed: t, children: [
10277
+ return /* @__PURE__ */ I(Vy, { $sidebarCollapsed: t, children: [
10276
10278
  /* @__PURE__ */ p(Ry, { children: o }),
10277
- /* @__PURE__ */ R(Iy, { children: [
10278
- /* @__PURE__ */ R(
10279
+ /* @__PURE__ */ I(Iy, { children: [
10280
+ /* @__PURE__ */ I(
10279
10281
  Ny,
10280
10282
  {
10281
10283
  onClick: i,
@@ -10295,7 +10297,7 @@ const Vy = k.header`
10295
10297
  ]
10296
10298
  }
10297
10299
  ),
10298
- e && /* @__PURE__ */ R(
10300
+ e && /* @__PURE__ */ I(
10299
10301
  By,
10300
10302
  {
10301
10303
  onClick: s,
@@ -10313,7 +10315,7 @@ const Vy = k.header`
10313
10315
  style: { width: "100%", height: "100%", borderRadius: "50%" }
10314
10316
  }
10315
10317
  ) : a(e.name) }),
10316
- /* @__PURE__ */ R(jy, { children: [
10318
+ /* @__PURE__ */ I(jy, { children: [
10317
10319
  /* @__PURE__ */ p(Fy, { children: e.name }),
10318
10320
  /* @__PURE__ */ p(zy, { children: e.role })
10319
10321
  ] })
@@ -10358,7 +10360,7 @@ const _y = k.div`
10358
10360
  contentClassName: u,
10359
10361
  logoImgCollapsed: d,
10360
10362
  logoImgExpanded: c
10361
- }) => /* @__PURE__ */ R(_y, { children: [
10363
+ }) => /* @__PURE__ */ I(_y, { children: [
10362
10364
  /* @__PURE__ */ p(
10363
10365
  yc,
10364
10366
  {
@@ -10432,7 +10434,7 @@ export {
10432
10434
  We as baseFieldStyles,
10433
10435
  Wi as baseInputStyles,
10434
10436
  $e as baseTableCellsSizes,
10435
- z as bodyTextStyles,
10437
+ _ as bodyTextStyles,
10436
10438
  av as createFieldConfig,
10437
10439
  A0 as createInputRefs,
10438
10440
  ve as disabledStyles,
@@ -946,7 +946,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[kn]+=1);const yr={80:P`
946
946
  display: flex;
947
947
  flex-direction: column;
948
948
  gap: 0.75rem;
949
- `,k0=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:d,radioName:u,pinLength:c=6,pinType:h="number",className:p,inputClassName:g,labelClassName:v,messageErrorClassName:w,leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,onOptionSelect:T,onRadioChange:S,onPinComplete:C,onChange:D,...I})=>{const[_,M,K]=Vc.useField(t),W=!!(M.touched&&M.error),Pe=W?M.error:void 0,re=e?.toString?.()||t,F={required:a||void 0,"aria-required":a||void 0,"aria-invalid":W||void 0,"aria-describedby":W?`${re}-error`:void 0},N=V=>{if(D)return D(V);_.onChange(V)};let R;switch(r){case"textarea":{const V=j=>{D?D(j):_.onChange(j)};R=m.jsx(zo,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,placeholder:i,onChange:V,...I,...F});break}case"select":{R=m.jsx(Ro,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,value:_.value??"",onChange:V=>{_.onChange(V);const j=l.find(oe=>String(oe.value)===V.target.value);j&&T?.(j)},options:l,placeholder:i||"Selecciona una opción",...I,...F});break}case"checkbox":{R=m.jsx(qn,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,checked:!!_.value,label:d,onChange:V=>{K.setValue(V.target.checked)},...I,...F});break}case"radio":{const V=l;R=m.jsx(C0,{children:V.map(j=>m.jsx(Yo,{name:u||t,value:j.value,label:j.label,size:o,hasError:W,disabled:s,checked:_.value===j.value,onChange:oe=>{const se=oe.target.value,O=typeof j.value=="number"?Number(se):se;K.setValue(O),S?.(oe)},...F},j.value))});break}case"pin":{R=m.jsx(Uo,{length:c,type:h,size:o,hasError:W,onChange:V=>K.setValue(V),onComplete:V=>{K.setValue(V),C?.(V)},...I,...F});break}case"password":{const{rightIcon:V,...j}=I;R=m.jsx(Jl,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,placeholder:i,leftIcon:y,iconSize:b,iconColor:E,onChange:N,...j,...F});break}case"search":{R=m.jsx(ec,{className:g,size:o,placeholder:i,leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,onSearch:I.onSearch,...F});break}default:R=m.jsx(jo,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,placeholder:i,type:["text","email","number","tel","url","date","date","datetime-local","time"].includes(r)?r:"text",leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,value:_.value??"",onChange:N,...I,...F})}return r==="checkbox"?m.jsxs(ic,{className:p,children:[R,W&&m.jsx(Fo,{id:`${re}-error`,size:o,className:w,children:Pe})]}):m.jsxs(ic,{className:p,children:[n&&m.jsx(Gn,{htmlFor:re,size:o,required:a,disabled:s,className:v,children:n}),R,W&&m.jsx(Fo,{id:`${re}-error`,size:o,className:w,children:Pe})]})},P0={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},ac={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},E0={initial:{height:0,opacity:0,y:-6},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:-6},transition:{duration:.2,ease:"easeInOut"}},A0=k(ct.div)`
949
+ `,k0=({id:e,name:t,label:n,type:r="text",size:o="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:d,radioName:u,pinLength:c=6,pinType:h="number",className:p,inputClassName:g,labelClassName:v,messageErrorClassName:w,leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,onOptionSelect:T,onRadioChange:S,onPinComplete:C,onChange:D,...I})=>{const[_,M,K]=Vc.useField(t),W=!!(M.touched&&M.error),Pe=W?M.error:void 0,re=e?.toString?.()||t,F={required:a||void 0,"aria-required":a||void 0,"aria-invalid":W||void 0,"aria-describedby":W?`${re}-error`:void 0},N=V=>{if(D)return D(V);_.onChange(V)};let R;switch(r){case"textarea":{const V=j=>{D?D(j):_.onChange(j)};R=m.jsx(zo,{id:re,name:t,className:g,hasError:W,disabled:s,value:_.value??"",size:o,placeholder:i,onChange:V,...I,...F});break}case"select":{R=m.jsx(Ro,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,value:_.value??"",onChange:V=>{_.onChange(V);const j=l.find(oe=>String(oe.value)===V.target.value);j&&T?.(j)},options:l,placeholder:i||"Selecciona una opción",...I,...F});break}case"checkbox":{R=m.jsx(qn,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,checked:!!_.value,label:d,onChange:V=>{K.setValue(V.target.checked)},...I,...F});break}case"radio":{const V=l;R=m.jsx(C0,{children:V.map(j=>m.jsx(Yo,{name:u||t,value:j.value,label:j.label,size:o,hasError:W,disabled:s,checked:_.value===j.value,onChange:oe=>{const se=oe.target.value,O=typeof j.value=="number"?Number(se):se;K.setValue(O),S?.(oe)},...F},j.value))});break}case"pin":{R=m.jsx(Uo,{length:c,type:h,size:o,hasError:W,onChange:V=>K.setValue(V),onComplete:V=>{K.setValue(V),C?.(V)},...I,...F});break}case"password":{const{rightIcon:V,...j}=I;R=m.jsx(Jl,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,placeholder:i,leftIcon:y,iconSize:b,iconColor:E,onChange:N,...j,...F});break}case"search":{R=m.jsx(ec,{className:g,size:o,placeholder:i,leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,onSearch:I.onSearch,...F});break}default:R=m.jsx(jo,{id:re,name:t,className:g,hasError:W,disabled:s,size:o,placeholder:i,type:["text","email","number","tel","url","date","date","datetime-local","time"].includes(r)?r:"text",leftIcon:y,rightIcon:x,iconSize:b,iconColor:E,value:_.value??"",onChange:N,...I,...F})}return r==="checkbox"?m.jsxs(ic,{className:p,children:[R,W&&m.jsx(Fo,{id:`${re}-error`,size:o,className:w,children:Pe})]}):m.jsxs(ic,{className:p,children:[n&&m.jsx(Gn,{htmlFor:re,size:o,required:a,disabled:s,className:v,children:n}),R,W&&m.jsx(Fo,{id:`${re}-error`,size:o,className:w,children:Pe})]})},P0={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},ac={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},E0={initial:{height:0,opacity:0,y:-6},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:-6},transition:{duration:.2,ease:"easeInOut"}},A0=k(ct.div)`
950
950
  position: fixed;
951
951
  inset: 0;
952
952
  z-index: 50;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.5",
6
+ "version": "0.1.6",
7
7
  "description": "This package provides reusable UI components to ensure consistency across all CRM frontend applications",
8
8
  "author": "BizAppsTotal <bizapps@tcce.biz>",
9
9
  "type": "module",
Binary file
package/dist/assets.zip DELETED
Binary file