kelt-ui-kit-react 0.4.2 → 0.4.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import le, { useState as q, useCallback as M, createContext as kn, useContext as Cr, useRef as ue, useDebugValue as or, createElement as Nn, useId as _n, useEffect as ee, useMemo as Oe, forwardRef as Rr, useImperativeHandle as kr } from "react";
1
+ import le, { useState as q, useCallback as D, createContext as kn, useContext as Cr, useRef as ue, useDebugValue as or, createElement as Nn, useId as _n, useEffect as ee, useMemo as Oe, forwardRef as Rr, useImperativeHandle as kr } from "react";
2
2
  import Mt, { createPortal as Pn } from "react-dom";
3
3
  var _t = { exports: {} }, Ye = {};
4
4
  /**
@@ -15,12 +15,12 @@ function On() {
15
15
  if (ar) return Ye;
16
16
  ar = 1;
17
17
  var e = le, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function c(u, d, v) {
19
- var g, p = {}, l = null, m = null;
20
- v !== void 0 && (l = "" + v), d.key !== void 0 && (l = "" + d.key), d.ref !== void 0 && (m = d.ref);
18
+ function c(l, d, v) {
19
+ var g, p = {}, u = null, m = null;
20
+ v !== void 0 && (u = "" + v), d.key !== void 0 && (u = "" + d.key), d.ref !== void 0 && (m = d.ref);
21
21
  for (g in d) n.call(d, g) && !i.hasOwnProperty(g) && (p[g] = d[g]);
22
- if (u && u.defaultProps) for (g in d = u.defaultProps, d) p[g] === void 0 && (p[g] = d[g]);
23
- return { $$typeof: t, type: u, key: l, ref: m, props: p, _owner: a.current };
22
+ if (l && l.defaultProps) for (g in d = l.defaultProps, d) p[g] === void 0 && (p[g] = d[g]);
23
+ return { $$typeof: t, type: l, key: u, ref: m, props: p, _owner: a.current };
24
24
  }
25
25
  return Ye.Fragment = r, Ye.jsx = c, Ye.jsxs = c, Ye;
26
26
  }
@@ -37,7 +37,7 @@ var Ue = {};
37
37
  var sr;
38
38
  function An() {
39
39
  return sr || (sr = 1, process.env.NODE_ENV !== "production" && function() {
40
- var e = le, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), l = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y = Symbol.iterator, w = "@@iterator";
40
+ var e = le, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), u = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y = Symbol.iterator, w = "@@iterator";
41
41
  function R(o) {
42
42
  if (o === null || typeof o != "object")
43
43
  return null;
@@ -65,7 +65,7 @@ function An() {
65
65
  var A = !1, I = !1, x = !1, b = !1, ne = !1, oe;
66
66
  oe = Symbol.for("react.module.reference");
67
67
  function vt(o) {
68
- return !!(typeof o == "string" || typeof o == "function" || o === n || o === i || ne || o === a || o === v || o === g || b || o === m || A || I || x || typeof o == "object" && o !== null && (o.$$typeof === l || o.$$typeof === p || o.$$typeof === c || o.$$typeof === u || o.$$typeof === d || // This needs to include all possible module reference object
68
+ return !!(typeof o == "string" || typeof o == "function" || o === n || o === i || ne || o === a || o === v || o === g || b || o === m || A || I || x || typeof o == "object" && o !== null && (o.$$typeof === u || o.$$typeof === p || o.$$typeof === c || o.$$typeof === l || o.$$typeof === d || // This needs to include all possible module reference object
69
69
  // types supported by any Flight configuration anywhere since
70
70
  // we don't know which Flight build this will end up being used
71
71
  // with.
@@ -104,7 +104,7 @@ function An() {
104
104
  }
105
105
  if (typeof o == "object")
106
106
  switch (o.$$typeof) {
107
- case u:
107
+ case l:
108
108
  var f = o;
109
109
  return He(f) + ".Consumer";
110
110
  case c:
@@ -115,7 +115,7 @@ function An() {
115
115
  case p:
116
116
  var S = o.displayName || null;
117
117
  return S !== null ? S : G(o.type) || "Memo";
118
- case l: {
118
+ case u: {
119
119
  var P = o, T = P._payload, N = P._init;
120
120
  try {
121
121
  return G(N(T));
@@ -257,18 +257,18 @@ function An() {
257
257
  if (Y && S && typeof Y.stack == "string") {
258
258
  for (var C = Y.stack.split(`
259
259
  `), B = S.stack.split(`
260
- `), D = C.length - 1, L = B.length - 1; D >= 1 && L >= 0 && C[D] !== B[L]; )
260
+ `), F = C.length - 1, L = B.length - 1; F >= 1 && L >= 0 && C[F] !== B[L]; )
261
261
  L--;
262
- for (; D >= 1 && L >= 0; D--, L--)
263
- if (C[D] !== B[L]) {
264
- if (D !== 1 || L !== 1)
262
+ for (; F >= 1 && L >= 0; F--, L--)
263
+ if (C[F] !== B[L]) {
264
+ if (F !== 1 || L !== 1)
265
265
  do
266
- if (D--, L--, L < 0 || C[D] !== B[L]) {
266
+ if (F--, L--, L < 0 || C[F] !== B[L]) {
267
267
  var X = `
268
- ` + C[D].replace(" at new ", " at ");
268
+ ` + C[F].replace(" at new ", " at ");
269
269
  return o.displayName && X.includes("<anonymous>") && (X = X.replace("<anonymous>", o.displayName)), typeof o == "function" && he.set(o, X), X;
270
270
  }
271
- while (D >= 1 && L >= 0);
271
+ while (F >= 1 && L >= 0);
272
272
  break;
273
273
  }
274
274
  }
@@ -304,7 +304,7 @@ function An() {
304
304
  return rn(o.render);
305
305
  case p:
306
306
  return Ke(o.type, f, h);
307
- case l: {
307
+ case u: {
308
308
  var S = o, P = S._payload, T = S._init;
309
309
  try {
310
310
  return Ke(T(P), f, h);
@@ -334,8 +334,8 @@ function An() {
334
334
  throw B.name = "Invariant Violation", B;
335
335
  }
336
336
  C = o[N](f, N, S, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
- } catch (D) {
338
- C = D;
337
+ } catch (F) {
338
+ C = F;
339
339
  }
340
340
  C && !(C instanceof Error) && (Je(P), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", h, N, typeof C), Je(null)), C instanceof Error && !(C.message in Ut) && (Ut[C.message] = !0, Je(P), j("Failed %s type: %s", h, C.message), Je(null));
341
341
  }
@@ -452,9 +452,9 @@ function An() {
452
452
  for (T in f)
453
453
  Ve.call(f, T) && !ln.hasOwnProperty(T) && (N[T] = f[T]);
454
454
  if (o && o.defaultProps) {
455
- var D = o.defaultProps;
456
- for (T in D)
457
- N[T] === void 0 && (N[T] = D[T]);
455
+ var F = o.defaultProps;
456
+ for (T in F)
457
+ N[T] === void 0 && (N[T] = F[T]);
458
458
  }
459
459
  if (C || B) {
460
460
  var L = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
@@ -582,8 +582,8 @@ Check the top-level render call using <` + h + ">.");
582
582
  (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
583
583
  var B = vn();
584
584
  B ? C += B : C += Zt();
585
- var D;
586
- o === null ? D = "null" : xt(o) ? D = "array" : o !== void 0 && o.$$typeof === t ? (D = "<" + (G(o.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : D = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, C);
585
+ var F;
586
+ o === null ? F = "null" : xt(o) ? F = "array" : o !== void 0 && o.$$typeof === t ? (F = "<" + (G(o.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : F = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, C);
587
587
  }
588
588
  var L = gn(o, f, h, P, T);
589
589
  if (L == null)
@@ -630,7 +630,7 @@ React keys must be passed directly to JSX without using spread:
630
630
  }
631
631
  process.env.NODE_ENV === "production" ? _t.exports = On() : _t.exports = An();
632
632
  var s = _t.exports;
633
- const F = ({ classIcon: e, size: t }) => /* @__PURE__ */ s.jsx("i", { className: `bi ${e} ${t ?? "sm"}` });
633
+ const M = ({ classIcon: e, size: t }) => /* @__PURE__ */ s.jsx("i", { className: `bi ${e} ${t ?? "sm"}` });
634
634
  var ce = /* @__PURE__ */ ((e) => (e.EXTRA_SMALL = "xs", e.SMALL = "sm", e.MEDIUM = "md", e.LARGE = "xl", e.EXTRA_LARGE = "xxl", e))(ce || {});
635
635
  const ta = ({
636
636
  className: e,
@@ -642,7 +642,7 @@ const ta = ({
642
642
  t && t(i);
643
643
  };
644
644
  return /* @__PURE__ */ s.jsxs("div", { className: `action ${e}`, onClick: a, children: [
645
- n && /* @__PURE__ */ s.jsx(F, { classIcon: n, size: ce.LARGE }),
645
+ n && /* @__PURE__ */ s.jsx(M, { classIcon: n, size: ce.LARGE }),
646
646
  /* @__PURE__ */ s.jsx("small", { children: r })
647
647
  ] });
648
648
  }, Nr = ({
@@ -654,7 +654,7 @@ const ta = ({
654
654
  positionicon: i = 1,
655
655
  disabled: c = !1
656
656
  }) => {
657
- const u = (d) => {
657
+ const l = (d) => {
658
658
  t && t(d);
659
659
  };
660
660
  return /* @__PURE__ */ s.jsxs(
@@ -662,12 +662,12 @@ const ta = ({
662
662
  {
663
663
  disabled: c,
664
664
  type: "submit",
665
- onClick: (d) => u(d),
665
+ onClick: (d) => l(d),
666
666
  className: e,
667
667
  children: [
668
- a && i == 1 && /* @__PURE__ */ s.jsx("span", { className: "mr-2", children: /* @__PURE__ */ s.jsx(F, { size: n, classIcon: a }) }),
668
+ a && i == 1 && /* @__PURE__ */ s.jsx("span", { className: "mr-2", children: /* @__PURE__ */ s.jsx(M, { size: n, classIcon: a }) }),
669
669
  /* @__PURE__ */ s.jsx("span", { children: r }),
670
- a && i == 2 && /* @__PURE__ */ s.jsx("span", { className: "ml-2", children: /* @__PURE__ */ s.jsx(F, { classIcon: a }) })
670
+ a && i == 2 && /* @__PURE__ */ s.jsx("span", { className: "ml-2", children: /* @__PURE__ */ s.jsx(M, { classIcon: a }) })
671
671
  ]
672
672
  }
673
673
  );
@@ -679,7 +679,7 @@ const ta = ({
679
679
  children: e.item.children
680
680
  }
681
681
  ), In = (e) => {
682
- const [t, r] = q(e.items[0]), n = M(
682
+ const [t, r] = q(e.items[0]), n = D(
683
683
  (a) => {
684
684
  r(a);
685
685
  },
@@ -769,8 +769,8 @@ function ir(e, t) {
769
769
  });
770
770
  }
771
771
  var ft = 1, Ie = 1, $r = 0, K = 0, z = 0, Me = "";
772
- function pt(e, t, r, n, a, i, c, u) {
773
- return { value: e, root: t, parent: r, type: n, props: a, children: i, line: ft, column: Ie, length: c, return: "", siblings: u };
772
+ function pt(e, t, r, n, a, i, c, l) {
773
+ return { value: e, root: t, parent: r, type: n, props: a, children: i, line: ft, column: Ie, length: c, return: "", siblings: l };
774
774
  }
775
775
  function ge(e, t) {
776
776
  return Pt(pt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
@@ -881,12 +881,12 @@ function Kn(e) {
881
881
  function Jn(e) {
882
882
  return qn(ot("", null, null, null, [""], e = Un(e), 0, [0], e));
883
883
  }
884
- function ot(e, t, r, n, a, i, c, u, d) {
885
- for (var v = 0, g = 0, p = c, l = 0, m = 0, y = 0, w = 1, R = 1, k = 1, j = 0, _ = "", A = a, I = i, x = n, b = _; R; )
884
+ function ot(e, t, r, n, a, i, c, l, d) {
885
+ for (var v = 0, g = 0, p = c, u = 0, m = 0, y = 0, w = 1, R = 1, k = 1, j = 0, _ = "", A = a, I = i, x = n, b = _; R; )
886
886
  switch (y = j, j = te()) {
887
887
  case 40:
888
888
  if (y != 108 && W(b, p - 1) == 58) {
889
- rt(b += E(Ct(j), "&", "&\f"), "&\f", Ar(v ? u[v - 1] : 0)) != -1 && (k = -1);
889
+ rt(b += E(Ct(j), "&", "&\f"), "&\f", Ar(v ? l[v - 1] : 0)) != -1 && (k = -1);
890
890
  break;
891
891
  }
892
892
  case 34:
@@ -914,7 +914,7 @@ function ot(e, t, r, n, a, i, c, u, d) {
914
914
  }
915
915
  break;
916
916
  case 123 * w:
917
- u[v++] = re(b) * k;
917
+ l[v++] = re(b) * k;
918
918
  case 125 * w:
919
919
  case 59:
920
920
  case 0:
@@ -928,19 +928,19 @@ function ot(e, t, r, n, a, i, c, u, d) {
928
928
  case 59:
929
929
  b += ";";
930
930
  default:
931
- if (qe(x = cr(b, t, r, v, g, a, u, _, A = [], I = [], p, i), i), j === 123)
931
+ if (qe(x = cr(b, t, r, v, g, a, l, _, A = [], I = [], p, i), i), j === 123)
932
932
  if (g === 0)
933
- ot(b, t, x, x, A, i, p, u, I);
933
+ ot(b, t, x, x, A, i, p, l, I);
934
934
  else
935
- switch (l === 99 && W(b, 3) === 110 ? 100 : l) {
935
+ switch (u === 99 && W(b, 3) === 110 ? 100 : u) {
936
936
  case 100:
937
937
  case 108:
938
938
  case 109:
939
939
  case 115:
940
- ot(e, x, x, n && qe(cr(e, x, x, 0, 0, a, u, _, a, A = [], p, I), I), a, I, p, u, n ? A : I);
940
+ ot(e, x, x, n && qe(cr(e, x, x, 0, 0, a, l, _, a, A = [], p, I), I), a, I, p, l, n ? A : I);
941
941
  break;
942
942
  default:
943
- ot(b, x, x, x, [""], I, 0, u, I);
943
+ ot(b, x, x, x, [""], I, 0, l, I);
944
944
  }
945
945
  }
946
946
  v = g = m = 0, w = k = 1, _ = b = "", p = c;
@@ -959,10 +959,10 @@ function ot(e, t, r, n, a, i, c, u, d) {
959
959
  k = g > 0 ? 1 : (b += "\f", -1);
960
960
  break;
961
961
  case 44:
962
- u[v++] = (re(b) - 1) * k, k = 1;
962
+ l[v++] = (re(b) - 1) * k, k = 1;
963
963
  break;
964
964
  case 64:
965
- we() === 45 && (b += Ct(te())), l = we(), g = p = re(_ = b += Kn(nt())), j++;
965
+ we() === 45 && (b += Ct(te())), u = we(), g = p = re(_ = b += Kn(nt())), j++;
966
966
  break;
967
967
  case 45:
968
968
  y === 45 && re(b) == 2 && (w = 0);
@@ -970,11 +970,11 @@ function ot(e, t, r, n, a, i, c, u, d) {
970
970
  }
971
971
  return i;
972
972
  }
973
- function cr(e, t, r, n, a, i, c, u, d, v, g, p) {
974
- for (var l = a - 1, m = a === 0 ? i : [""], y = Ir(m), w = 0, R = 0, k = 0; w < n; ++w)
975
- for (var j = 0, _ = Te(e, l + 1, l = Ar(R = c[w])), A = e; j < y; ++j)
973
+ function cr(e, t, r, n, a, i, c, l, d, v, g, p) {
974
+ for (var u = a - 1, m = a === 0 ? i : [""], y = Ir(m), w = 0, R = 0, k = 0; w < n; ++w)
975
+ for (var j = 0, _ = Te(e, u + 1, u = Ar(R = c[w])), A = e; j < y; ++j)
976
976
  (A = Tr(R > 0 ? m[j] + " " + _ : E(_, /&\f/g, m[j]))) && (d[k++] = A);
977
- return pt(e, t, r, a === 0 ? dt : u, d, v, g, p);
977
+ return pt(e, t, r, a === 0 ? dt : l, d, v, g, p);
978
978
  }
979
979
  function Zn(e, t, r, n) {
980
980
  return pt(e, t, r, Pr, zt(Bn()), Te(e, 2, -2), 0, n);
@@ -1102,8 +1102,8 @@ function Dr(e, t, r) {
1102
1102
  break;
1103
1103
  case 5152:
1104
1104
  case 5920:
1105
- return E(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, c, u, d, v) {
1106
- return $ + a + ":" + i + v + (c ? $ + a + "-span:" + (u ? d : +d - +i) + v : "") + e;
1105
+ return E(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, c, l, d, v) {
1106
+ return $ + a + ":" + i + v + (c ? $ + a + "-span:" + (l ? d : +d - +i) + v : "") + e;
1107
1107
  });
1108
1108
  case 4949:
1109
1109
  if (W(e, t + 6) === 121)
@@ -1150,8 +1150,8 @@ function Qn(e, t, r, n) {
1150
1150
  function eo(e) {
1151
1151
  var t = Ir(e);
1152
1152
  return function(r, n, a, i) {
1153
- for (var c = "", u = 0; u < t; u++)
1154
- c += e[u](r, n, a, i) || "";
1153
+ for (var c = "", l = 0; l < t; l++)
1154
+ c += e[l](r, n, a, i) || "";
1155
1155
  return c;
1156
1156
  };
1157
1157
  }
@@ -1241,8 +1241,8 @@ To resolve this only create new StyledComponents outside of any render method an
1241
1241
  try {
1242
1242
  var i = !0;
1243
1243
  console.error = function(c) {
1244
- for (var u = [], d = 1; d < arguments.length; d++) u[d - 1] = arguments[d];
1245
- ur.test(c) ? (i = !1, Ze.delete(n)) : a.apply(void 0, Ae([c], u, !1));
1244
+ for (var l = [], d = 1; d < arguments.length; d++) l[d - 1] = arguments[d];
1245
+ ur.test(c) ? (i = !1, Ze.delete(n)) : a.apply(void 0, Ae([c], l, !1));
1246
1246
  }, ue(), i && !Ze.has(n) && (console.warn(n), Ze.add(n));
1247
1247
  } catch (c) {
1248
1248
  ur.test(c.message) && Ze.delete(n);
@@ -1295,8 +1295,8 @@ function Ur(e, t, r) {
1295
1295
  }
1296
1296
  var a = vo(t);
1297
1297
  hr && (a = a.concat(hr(t)));
1298
- for (var i = pr(e), c = pr(t), u = 0; u < a.length; ++u) {
1299
- var d = a[u];
1298
+ for (var i = pr(e), c = pr(t), l = 0; l < a.length; ++l) {
1299
+ var d = a[l];
1300
1300
  if (!(d in ho || r && r[d] || c && d in c || i && d in i)) {
1301
1301
  var v = yo(t, d);
1302
1302
  try {
@@ -1400,7 +1400,7 @@ var So = function() {
1400
1400
  this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
1401
1401
  for (var c = a; c < i; c++) this.groupSizes[c] = 0;
1402
1402
  }
1403
- for (var u = this.indexOfGroup(t + 1), d = (c = 0, r.length); c < d; c++) this.tag.insertRule(u, r[c]) && (this.groupSizes[t]++, u++);
1403
+ for (var l = this.indexOfGroup(t + 1), d = (c = 0, r.length); c < d; c++) this.tag.insertRule(l, r[c]) && (this.groupSizes[t]++, l++);
1404
1404
  }, e.prototype.clearGroup = function(t) {
1405
1405
  if (t < this.length) {
1406
1406
  var r = this.groupSizes[t], n = this.indexOfGroup(t), a = n + r;
@@ -1425,13 +1425,13 @@ var So = function() {
1425
1425
  for (var n, a = r.split(","), i = 0, c = a.length; i < c; i++) (n = a[i]) && e.registerName(t, n);
1426
1426
  }, No = function(e, t) {
1427
1427
  for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Wt), a = [], i = 0, c = n.length; i < c; i++) {
1428
- var u = n[i].trim();
1429
- if (u) {
1430
- var d = u.match(Ro);
1428
+ var l = n[i].trim();
1429
+ if (l) {
1430
+ var d = l.match(Ro);
1431
1431
  if (d) {
1432
1432
  var v = 0 | parseInt(d[1], 10), g = d[2];
1433
1433
  v !== 0 && (Eo(g, v), ko(e, g, d[3]), e.getTag().insertRules(v, a)), a.length = 0;
1434
- } else a.push(u);
1434
+ } else a.push(l);
1435
1435
  }
1436
1436
  }
1437
1437
  }, vr = function(e) {
@@ -1444,8 +1444,8 @@ function _o() {
1444
1444
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1445
1445
  }
1446
1446
  var qr = function(e) {
1447
- var t = document.head, r = e || t, n = document.createElement("style"), a = function(u) {
1448
- var d = Array.from(u.querySelectorAll("style[".concat(je, "]")));
1447
+ var t = document.head, r = e || t, n = document.createElement("style"), a = function(l) {
1448
+ var d = Array.from(l.querySelectorAll("style[".concat(je, "]")));
1449
1449
  return d[d.length - 1];
1450
1450
  }(r), i = a !== void 0 ? a.nextSibling : null;
1451
1451
  n.setAttribute(je, Fr), n.setAttribute(Mr, mt);
@@ -1506,18 +1506,18 @@ var qr = function(e) {
1506
1506
  var a = this;
1507
1507
  this.options = U(U({}, To), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && lt && yr && (yr = !1, vr(this)), Bt(this, function() {
1508
1508
  return function(i) {
1509
- for (var c = i.getTag(), u = c.length, d = "", v = function(p) {
1510
- var l = function(k) {
1509
+ for (var c = i.getTag(), l = c.length, d = "", v = function(p) {
1510
+ var u = function(k) {
1511
1511
  return ut.get(k);
1512
1512
  }(p);
1513
- if (l === void 0) return "continue";
1514
- var m = i.names.get(l), y = c.getGroup(p);
1513
+ if (u === void 0) return "continue";
1514
+ var m = i.names.get(u), y = c.getGroup(p);
1515
1515
  if (m === void 0 || !m.size || y.length === 0) return "continue";
1516
- var w = "".concat(je, ".g").concat(p, '[id="').concat(l, '"]'), R = "";
1516
+ var w = "".concat(je, ".g").concat(p, '[id="').concat(u, '"]'), R = "";
1517
1517
  m !== void 0 && m.forEach(function(k) {
1518
1518
  k.length > 0 && (R += "".concat(k, ","));
1519
1519
  }), d += "".concat(y).concat(w, '{content:"').concat(R, '"}').concat(Wt);
1520
- }, g = 0; g < u; g++) v(g);
1520
+ }, g = 0; g < l; g++) v(g);
1521
1521
  return d;
1522
1522
  }(a);
1523
1523
  });
@@ -1562,23 +1562,23 @@ function Hr(e, t) {
1562
1562
  });
1563
1563
  }
1564
1564
  function Do(e) {
1565
- var t, r, n, a = $e, i = a.options, c = i === void 0 ? $e : i, u = a.plugins, d = u === void 0 ? gt : u, v = function(l, m, y) {
1566
- return y.startsWith(r) && y.endsWith(r) && y.replaceAll(r, "").length > 0 ? ".".concat(t) : l;
1565
+ var t, r, n, a = $e, i = a.options, c = i === void 0 ? $e : i, l = a.plugins, d = l === void 0 ? gt : l, v = function(u, m, y) {
1566
+ return y.startsWith(r) && y.endsWith(r) && y.replaceAll(r, "").length > 0 ? ".".concat(t) : u;
1567
1567
  }, g = d.slice();
1568
- g.push(function(l) {
1569
- l.type === dt && l.value.includes("&") && (l.props[0] = l.props[0].replace(Io, r).replace(n, v));
1568
+ g.push(function(u) {
1569
+ u.type === dt && u.value.includes("&") && (u.props[0] = u.props[0].replace(Io, r).replace(n, v));
1570
1570
  }), c.prefix && g.push(ro), g.push(Qn);
1571
- var p = function(l, m, y, w) {
1571
+ var p = function(u, m, y, w) {
1572
1572
  m === void 0 && (m = ""), y === void 0 && (y = ""), w === void 0 && (w = "&"), t = w, r = m, n = new RegExp("\\".concat(r, "\\b"), "g");
1573
- var R = l.replace($o, ""), k = Jn(y || m ? "".concat(y, " ").concat(m, " { ").concat(R, " }") : R);
1573
+ var R = u.replace($o, ""), k = Jn(y || m ? "".concat(y, " ").concat(m, " { ").concat(R, " }") : R);
1574
1574
  c.namespace && (k = Hr(k, c.namespace));
1575
1575
  var j = [];
1576
1576
  return ct(k, eo(g.concat(to(function(_) {
1577
1577
  return j.push(_);
1578
1578
  })))), j;
1579
1579
  };
1580
- return p.hash = d.length ? d.reduce(function(l, m) {
1581
- return m.name || Le(15), xe(l, m.name);
1580
+ return p.hash = d.length ? d.reduce(function(u, m) {
1581
+ return m.name || Le(15), xe(u, m.name);
1582
1582
  }, Lr).toString() : "", p;
1583
1583
  }
1584
1584
  var Fo = new Gr(), Dt = Do(), Xr = le.createContext({ shouldForwardProp: void 0, styleSheet: Fo, stylis: Dt });
@@ -1652,8 +1652,8 @@ var zo = zr(mt), Wo = function() {
1652
1652
  else {
1653
1653
  var i = gr(Se(this.rules, t, r, n)), c = It(xe(this.baseHash, i) >>> 0);
1654
1654
  if (!r.hasNameForId(this.componentId, c)) {
1655
- var u = n(i, ".".concat(c), void 0, this.componentId);
1656
- r.insertRules(this.componentId, c, u);
1655
+ var l = n(i, ".".concat(c), void 0, this.componentId);
1656
+ r.insertRules(this.componentId, c, l);
1657
1657
  }
1658
1658
  a = be(a, c), this.staticRulesId = c;
1659
1659
  }
@@ -1662,8 +1662,8 @@ var zo = zr(mt), Wo = function() {
1662
1662
  var p = this.rules[g];
1663
1663
  if (typeof p == "string") v += p, process.env.NODE_ENV !== "production" && (d = xe(d, p));
1664
1664
  else if (p) {
1665
- var l = gr(Se(p, t, r, n));
1666
- d = xe(d, l + g), v += l;
1665
+ var u = gr(Se(p, t, r, n));
1666
+ d = xe(d, u + g), v += u;
1667
1667
  }
1668
1668
  }
1669
1669
  if (v) {
@@ -1677,14 +1677,14 @@ var zo = zr(mt), Wo = function() {
1677
1677
  Zr.Consumer;
1678
1678
  var Nt = {}, Sr = /* @__PURE__ */ new Set();
1679
1679
  function Vo(e, t, r) {
1680
- var n = Vt(e), a = e, i = !kt(e), c = t.attrs, u = c === void 0 ? gt : c, d = t.componentId, v = d === void 0 ? function(A, I) {
1680
+ var n = Vt(e), a = e, i = !kt(e), c = t.attrs, l = c === void 0 ? gt : c, d = t.componentId, v = d === void 0 ? function(A, I) {
1681
1681
  var x = typeof A != "string" ? "sc" : dr(A);
1682
1682
  Nt[x] = (Nt[x] || 0) + 1;
1683
1683
  var b = "".concat(x, "-").concat(uo(mt + x + Nt[x]));
1684
1684
  return I ? "".concat(I, "-").concat(b) : b;
1685
1685
  }(t.displayName, t.parentComponentId) : d, g = t.displayName, p = g === void 0 ? function(A) {
1686
1686
  return kt(A) ? "styled.".concat(A) : "Styled(".concat(Wr(A), ")");
1687
- }(e) : g, l = t.displayName && t.componentId ? "".concat(dr(t.displayName), "-").concat(t.componentId) : t.componentId || v, m = n && a.attrs ? a.attrs.concat(u).filter(Boolean) : u, y = t.shouldForwardProp;
1687
+ }(e) : g, u = t.displayName && t.componentId ? "".concat(dr(t.displayName), "-").concat(t.componentId) : t.componentId || v, m = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, y = t.shouldForwardProp;
1688
1688
  if (n && a.shouldForwardProp) {
1689
1689
  var w = a.shouldForwardProp;
1690
1690
  if (t.shouldForwardProp) {
@@ -1694,7 +1694,7 @@ function Vo(e, t, r) {
1694
1694
  };
1695
1695
  } else y = w;
1696
1696
  }
1697
- var k = new Wo(r, l, n ? a.componentStyle : void 0);
1697
+ var k = new Wo(r, u, n ? a.componentStyle : void 0);
1698
1698
  function j(A, I) {
1699
1699
  return function(x, b, ne) {
1700
1700
  var oe = x.attrs, vt = x.componentStyle, yt = x.defaultProps, He = x.foldedComponentIds, G = x.styledComponentId, ae = x.target, ve = le.useContext(Zr), Xe = xr(), Ee = x.shouldForwardProp || Xe.shouldForwardProp;
@@ -1718,7 +1718,7 @@ function Vo(e, t, r) {
1718
1718
  }
1719
1719
  j.displayName = p;
1720
1720
  var _ = le.forwardRef(j);
1721
- return _.attrs = m, _.componentStyle = k, _.displayName = p, _.shouldForwardProp = y, _.foldedComponentIds = n ? be(a.foldedComponentIds, a.styledComponentId) : "", _.styledComponentId = l, _.target = n ? a.target : e, Object.defineProperty(_, "defaultProps", { get: function() {
1721
+ return _.attrs = m, _.componentStyle = k, _.displayName = p, _.shouldForwardProp = y, _.foldedComponentIds = n ? be(a.foldedComponentIds, a.styledComponentId) : "", _.styledComponentId = u, _.target = n ? a.target : e, Object.defineProperty(_, "defaultProps", { get: function() {
1722
1722
  return this._foldedDefaultProps;
1723
1723
  }, set: function(A) {
1724
1724
  this._foldedDefaultProps = n ? function(I) {
@@ -1726,7 +1726,7 @@ function Vo(e, t, r) {
1726
1726
  for (var ne = 0, oe = x; ne < oe.length; ne++) $t(I, oe[ne], !0);
1727
1727
  return I;
1728
1728
  }({}, a.defaultProps, A) : A;
1729
- } }), process.env.NODE_ENV !== "production" && (ao(p, l), _.warnTooManyClasses = /* @__PURE__ */ function(A, I) {
1729
+ } }), process.env.NODE_ENV !== "production" && (ao(p, u), _.warnTooManyClasses = /* @__PURE__ */ function(A, I) {
1730
1730
  var x = {}, b = !1;
1731
1731
  return function(ne) {
1732
1732
  if (!b && (x[ne] = !0, Object.keys(x).length >= 200)) {
@@ -1743,7 +1743,7 @@ Example:
1743
1743
  <Component />`), b = !0, x = {};
1744
1744
  }
1745
1745
  };
1746
- }(p, l)), Bt(_, function() {
1746
+ }(p, u)), Bt(_, function() {
1747
1747
  return ".".concat(_.styledComponentId);
1748
1748
  }), i && Ur(_, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), _;
1749
1749
  }
@@ -1801,10 +1801,10 @@ const Bo = Yt.div`
1801
1801
  show: n,
1802
1802
  closeOverlay: a
1803
1803
  }) => {
1804
- const { activeOverlayId: i, setActiveOverlay: c } = $n(), [u, d] = q(n || !1), [v, g] = q({ top: 0, left: 0 }), p = ue(null), l = _n();
1804
+ const { activeOverlayId: i, setActiveOverlay: c } = $n(), [l, d] = q(n || !1), [v, g] = q({ top: 0, left: 0 }), p = ue(null), u = _n();
1805
1805
  ee(() => {
1806
- i !== l && d(!1);
1807
- }, [i, l]), ee(() => {
1806
+ i !== u && d(!1);
1807
+ }, [i, u]), ee(() => {
1808
1808
  const w = () => {
1809
1809
  var j;
1810
1810
  const R = e.getBoundingClientRect(), k = (j = p.current) == null ? void 0 : j.getBoundingClientRect();
@@ -1838,55 +1838,61 @@ const Bo = Yt.div`
1838
1838
  return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
1839
1839
  }, [e, t]);
1840
1840
  const m = () => {
1841
- d(!0), c(l);
1842
- }, y = M(() => {
1843
- d(!1), c(null), a && a(!1);
1844
- }, [a, c]);
1841
+ d(!0), c(u);
1842
+ }, y = D(
1843
+ (w) => {
1844
+ w.stopPropagation(), d(!1), c(null), a && a(!1);
1845
+ },
1846
+ [a, c]
1847
+ );
1845
1848
  return ee(() => {
1846
1849
  n && m();
1847
- }, [n]), u ? Mt.createPortal(
1850
+ }, [n]), l ? Mt.createPortal(
1848
1851
  /* @__PURE__ */ s.jsx(Bo, { ref: p, $top: v.top, $left: v.left, children: /* @__PURE__ */ s.jsxs("div", { className: "overlayPanel", children: [
1849
- /* @__PURE__ */ s.jsx("button", { className: "toggle-btn", onClick: y, children: /* @__PURE__ */ s.jsx(F, { classIcon: "bi-x-lg" }) }),
1852
+ /* @__PURE__ */ s.jsx("button", { className: "toggle-btn", onClick: y, children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-x-lg" }) }),
1850
1853
  r
1851
1854
  ] }) }),
1852
1855
  document.body
1853
1856
  ) : null;
1854
1857
  }, Yo = ({ actions: e, item: t }) => {
1855
- const r = ue(null), [n, a] = q(!1), i = Oe(() => e == null ? void 0 : e.filter((c) => c.type === "menu").map((c, u) => ({
1856
- id: u,
1857
- icon: c.icon,
1858
- name: c.label,
1858
+ const r = ue(null), [n, a] = q(!1), i = Oe(() => e == null ? void 0 : e.filter((l) => l.type === "menu").map((l, d) => ({
1859
+ id: d,
1860
+ icon: l.icon,
1861
+ name: l.label,
1859
1862
  children: /* @__PURE__ */ s.jsx(
1860
1863
  Nr,
1861
1864
  {
1862
- classIcon: c.icon,
1865
+ classIcon: l.icon,
1863
1866
  sizeIcon: ce.LARGE,
1864
- onClick: (d) => {
1865
- d.stopPropagation(), d.preventDefault(), c.onClick && t && c.onClick(t);
1867
+ onClick: (v) => {
1868
+ v.stopPropagation(), l.onClick && t && l.onClick(t);
1866
1869
  },
1867
- title: c.label || ""
1870
+ title: l.label || ""
1868
1871
  }
1869
1872
  )
1870
- })), [e]);
1873
+ })), [e]), c = D(
1874
+ (l, d) => {
1875
+ l.stopPropagation(), a(d);
1876
+ },
1877
+ [a]
1878
+ );
1871
1879
  return /* @__PURE__ */ s.jsxs("div", { className: "card-actions", children: [
1872
- e.filter((c) => c.type === "menu").length ? /* @__PURE__ */ s.jsxs(
1880
+ e.filter((l) => l.type === "menu").length ? /* @__PURE__ */ s.jsxs(
1873
1881
  "div",
1874
1882
  {
1875
1883
  ref: r,
1876
1884
  className: "card-action",
1877
- onClick: (c) => {
1878
- c.stopPropagation(), a(!n);
1879
- },
1885
+ onClick: (l) => c(l, !n),
1880
1886
  children: [
1881
1887
  /* @__PURE__ */ s.jsx(
1882
- F,
1888
+ M,
1883
1889
  {
1884
1890
  size: ce.MEDIUM,
1885
1891
  classIcon: "bi-three-dots-vertical cursor-pointer"
1886
1892
  }
1887
1893
  ),
1888
1894
  /* @__PURE__ */ s.jsx(
1889
- F,
1895
+ M,
1890
1896
  {
1891
1897
  size: ce.MEDIUM,
1892
1898
  classIcon: "bi-three-dots cursor-pointer"
@@ -1902,7 +1908,7 @@ const Bo = Yt.div`
1902
1908
  show: n,
1903
1909
  closeOverlay: a,
1904
1910
  referenceElement: r.current,
1905
- children: /* @__PURE__ */ s.jsx("div", { onClickCapture: (c) => c.stopPropagation(), children: /* @__PURE__ */ s.jsx(In, { className: "card-action-menu", items: i }) })
1911
+ children: /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsx(In, { className: "card-action-menu", items: i }) })
1906
1912
  }
1907
1913
  )
1908
1914
  ] });
@@ -1915,19 +1921,19 @@ const Bo = Yt.div`
1915
1921
  customAction: i,
1916
1922
  children: c
1917
1923
  }) => {
1918
- const [u, d] = q(!1), v = (p, l) => {
1919
- p.stopPropagation(), a && a(l);
1920
- }, g = M(
1921
- (p, l) => {
1922
- p.target.closest(".card-action-menu button") || (p.stopPropagation(), d(!u), n && n(l));
1924
+ const [l, d] = q(!1), v = (p, u) => {
1925
+ p.stopPropagation(), a && a(u);
1926
+ }, g = D(
1927
+ (p, u) => {
1928
+ p.target.closest(".card-action-menu button") || (p.stopPropagation(), d(!l), n && n(u));
1923
1929
  },
1924
- [d, u]
1930
+ [d, l]
1925
1931
  );
1926
1932
  return /* @__PURE__ */ s.jsxs(
1927
1933
  "div",
1928
1934
  {
1929
1935
  ...n && { onClick: (p) => g(p, e) },
1930
- className: `card ${r ?? ""} ${u ? "card--active" : ""} `,
1936
+ className: `card ${r ?? ""} ${l ? "card--active" : ""} `,
1931
1937
  children: [
1932
1938
  c,
1933
1939
  !c && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
@@ -1945,7 +1951,7 @@ const Bo = Yt.div`
1945
1951
  {
1946
1952
  className: "ml-2 cursor-pointer",
1947
1953
  onClick: (p) => v(p, e),
1948
- children: /* @__PURE__ */ s.jsx(F, { classIcon: "bi-trash3" })
1954
+ children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-trash3" })
1949
1955
  }
1950
1956
  ),
1951
1957
  t && /* @__PURE__ */ s.jsx(Yo, { actions: t, item: e })
@@ -1964,7 +1970,7 @@ const Bo = Yt.div`
1964
1970
  xl: 5
1965
1971
  }
1966
1972
  }) => {
1967
- const [a, i] = q(0), c = e.length, [u, d] = q(1);
1973
+ const [a, i] = q(0), c = e.length, [l, d] = q(1);
1968
1974
  ee(() => {
1969
1975
  const y = () => {
1970
1976
  const w = window.innerWidth;
@@ -1979,26 +1985,26 @@ const Bo = Yt.div`
1979
1985
  };
1980
1986
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
1981
1987
  }, [n]);
1982
- const v = M(
1988
+ const v = D(
1983
1989
  (y) => {
1984
1990
  y.preventDefault(), i(
1985
- (w) => Math.min(w + r, c - u)
1991
+ (w) => Math.min(w + r, c - l)
1986
1992
  );
1987
1993
  },
1988
1994
  [i]
1989
- ), g = M(
1995
+ ), g = D(
1990
1996
  (y) => {
1991
1997
  y.preventDefault(), i((w) => Math.max(w - r, 0));
1992
1998
  },
1993
1999
  [i]
1994
- ), p = a + r >= c - u + 1, l = c <= u, m = a <= 0;
2000
+ ), p = a + r >= c - l + 1, u = c <= l, m = a <= 0;
1995
2001
  return /* @__PURE__ */ s.jsxs("div", { className: "carousel", children: [
1996
- t && !l && /* @__PURE__ */ s.jsx(
2002
+ t && !u && /* @__PURE__ */ s.jsx(
1997
2003
  "div",
1998
2004
  {
1999
2005
  className: `carousel-control prev ${m && "disabled"}`,
2000
2006
  onClick: g,
2001
- children: /* @__PURE__ */ s.jsx(F, { classIcon: "bi-chevron-left" })
2007
+ children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-chevron-left" })
2002
2008
  }
2003
2009
  ),
2004
2010
  /* @__PURE__ */ s.jsx("div", { className: "carousel-container", children: /* @__PURE__ */ s.jsx(
@@ -2007,7 +2013,7 @@ const Bo = Yt.div`
2007
2013
  className: "carousel-slides-wrapper",
2008
2014
  style: {
2009
2015
  display: "flex",
2010
- transform: `translateX(-${a * 100 / u}%)`,
2016
+ transform: `translateX(-${a * 100 / l}%)`,
2011
2017
  transition: "transform 0.5s ease-in-out"
2012
2018
  },
2013
2019
  children: le.Children.map(e, (y) => /* @__PURE__ */ s.jsx(
@@ -2015,7 +2021,7 @@ const Bo = Yt.div`
2015
2021
  {
2016
2022
  className: "carousel-slide",
2017
2023
  style: {
2018
- minWidth: `${100 / u}%`,
2024
+ minWidth: `${100 / l}%`,
2019
2025
  boxSizing: "border-box"
2020
2026
  },
2021
2027
  children: y
@@ -2023,12 +2029,12 @@ const Bo = Yt.div`
2023
2029
  ))
2024
2030
  }
2025
2031
  ) }),
2026
- t && !l && /* @__PURE__ */ s.jsx(
2032
+ t && !u && /* @__PURE__ */ s.jsx(
2027
2033
  "div",
2028
2034
  {
2029
2035
  className: `carousel-control next ${p && "disabled"}`,
2030
2036
  onClick: v,
2031
- children: /* @__PURE__ */ s.jsx(F, { classIcon: "bi-chevron-right" })
2037
+ children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-chevron-right" })
2032
2038
  }
2033
2039
  )
2034
2040
  ] });
@@ -2044,30 +2050,30 @@ const Bo = Yt.div`
2044
2050
  page: n = 1,
2045
2051
  onClick: a
2046
2052
  }) => {
2047
- const i = Oe(() => e ?? 9, [e]), c = Oe(() => t ?? 9, [t]), [u, d] = q(1);
2053
+ const i = Oe(() => e ?? 9, [e]), c = Oe(() => t ?? 9, [t]), [l, d] = q(1);
2048
2054
  ee(() => {
2049
2055
  d(n);
2050
2056
  }, [n]);
2051
2057
  const v = Oe(() => {
2052
2058
  const g = [];
2053
2059
  for (let p = 0; p < c; p++) {
2054
- const l = [];
2060
+ const u = [];
2055
2061
  for (let m = 0; m < i; m++) {
2056
2062
  const y = m + p * i, w = r == null ? void 0 : r.find(
2057
2063
  (R) => R.position === y + 1
2058
2064
  );
2059
- w ? l.push(
2065
+ w ? u.push(
2060
2066
  /* @__PURE__ */ s.jsx(Uo, { onClick: a, cell: w }, `${p}-${m}`)
2061
- ) : l.push(
2067
+ ) : u.push(
2062
2068
  /* @__PURE__ */ s.jsx("div", { className: "cell cell--empty" }, `${p}-${m}`)
2063
2069
  );
2064
2070
  }
2065
2071
  g.push(
2066
- /* @__PURE__ */ s.jsx("div", { className: "row", children: l }, p)
2072
+ /* @__PURE__ */ s.jsx("div", { className: "row", children: u }, p)
2067
2073
  );
2068
2074
  }
2069
2075
  return g;
2070
- }, [i, c, u]);
2076
+ }, [i, c, l]);
2071
2077
  return /* @__PURE__ */ s.jsx("div", { className: "damier", children: v });
2072
2078
  }, qo = (e) => {
2073
2079
  const t = Oe(() => e.active ? "expand--active" : "", [e.active]);
@@ -2090,7 +2096,7 @@ const Bo = Yt.div`
2090
2096
  }
2091
2097
  );
2092
2098
  }, sa = (e) => {
2093
- const t = M((r) => {
2099
+ const t = D((r) => {
2094
2100
  e.onChange && e.onChange(r);
2095
2101
  }, []);
2096
2102
  return /* @__PURE__ */ s.jsx("div", { className: `expands ${e.className || ""}`, children: e.items.map((r) => {
@@ -2111,7 +2117,7 @@ const Bo = Yt.div`
2111
2117
  currentFil: r,
2112
2118
  title: n
2113
2119
  }) => {
2114
- const a = M(
2120
+ const a = D(
2115
2121
  (i, c) => {
2116
2122
  c != null && c.url || i.preventDefault(), t && t(c);
2117
2123
  },
@@ -2132,7 +2138,7 @@ const Bo = Yt.div`
2132
2138
  "a",
2133
2139
  {
2134
2140
  href: i.url || "#",
2135
- onClick: (u) => a(u, i),
2141
+ onClick: (l) => a(l, i),
2136
2142
  children: i.title
2137
2143
  }
2138
2144
  ),
@@ -2144,15 +2150,15 @@ const Bo = Yt.div`
2144
2150
  ] });
2145
2151
  }, Go = Rr(
2146
2152
  ({ initialForm: e, title: t, onSubmit: r, onChange: n, hideSubmit: a }, i) => {
2147
- const [c, u] = q(() => {
2148
- const l = {};
2153
+ const [c, l] = q(() => {
2154
+ const u = {};
2149
2155
  return e.forEach((m) => {
2150
- l[m.name] = m.value ?? "";
2151
- }), l;
2152
- }), d = M(
2153
- (l) => {
2154
- const { name: m, value: y, type: w, checked: R } = l.target;
2155
- u((k) => {
2156
+ u[m.name] = m.value ?? "";
2157
+ }), u;
2158
+ }), d = D(
2159
+ (u) => {
2160
+ const { name: m, value: y, type: w, checked: R } = u.target;
2161
+ l((k) => {
2156
2162
  const _ = {
2157
2163
  ...k || {},
2158
2164
  [m]: w === "checkbox" ? R : y
@@ -2160,67 +2166,67 @@ const Bo = Yt.div`
2160
2166
  return n && n(_), _;
2161
2167
  });
2162
2168
  },
2163
- [u, n]
2164
- ), v = M(
2165
- (l) => {
2166
- l.preventDefault(), r && r(c);
2169
+ [l, n]
2170
+ ), v = D(
2171
+ (u) => {
2172
+ u.preventDefault(), r && r(c);
2167
2173
  },
2168
2174
  [r, c]
2169
2175
  ), g = () => {
2170
- u(() => {
2171
- const l = {};
2176
+ l(() => {
2177
+ const u = {};
2172
2178
  return e.forEach((m) => {
2173
- l[m.name] = m.value ?? "";
2174
- }), l;
2179
+ u[m.name] = m.value ?? "";
2180
+ }), u;
2175
2181
  });
2176
- }, p = M(
2177
- (l) => {
2178
- u((m) => ({
2182
+ }, p = D(
2183
+ (u) => {
2184
+ l((m) => ({
2179
2185
  ...m,
2180
- [l]: ""
2186
+ [u]: ""
2181
2187
  }));
2182
2188
  },
2183
- [u]
2189
+ [l]
2184
2190
  );
2185
2191
  return kr(i, () => ({
2186
2192
  resetForm: g,
2187
2193
  clearInput: p
2188
2194
  })), /* @__PURE__ */ s.jsxs("form", { onSubmit: v, children: [
2189
- e.map((l, m) => {
2195
+ e.map((u, m) => {
2190
2196
  const y = ue(null);
2191
2197
  return ee(() => {
2192
2198
  var w;
2193
- l.focus && ((w = y == null ? void 0 : y.current) == null || w.focus());
2194
- }, []), /* @__PURE__ */ s.jsx(le.Fragment, { children: l.type === "checkbox" ? /* @__PURE__ */ s.jsxs("div", { className: `d-flex flex-column ${l.className}`, children: [
2195
- l.label && /* @__PURE__ */ s.jsx("label", { children: l.label }),
2196
- l.icon && /* @__PURE__ */ s.jsx(F, { classIcon: l.icon }),
2199
+ u.focus && ((w = y == null ? void 0 : y.current) == null || w.focus());
2200
+ }, []), /* @__PURE__ */ s.jsx(le.Fragment, { children: u.type === "checkbox" ? /* @__PURE__ */ s.jsxs("div", { className: `d-flex flex-column ${u.className}`, children: [
2201
+ u.label && /* @__PURE__ */ s.jsx("label", { children: u.label }),
2202
+ u.icon && /* @__PURE__ */ s.jsx(M, { classIcon: u.icon }),
2197
2203
  /* @__PURE__ */ s.jsx(
2198
2204
  "input",
2199
2205
  {
2200
- name: l.name,
2201
- type: l.type,
2206
+ name: u.name,
2207
+ type: u.type,
2202
2208
  ref: y,
2203
- autoComplete: l.autoComplete ?? "on",
2204
- autoFocus: l.focus ?? !1,
2205
- checked: c && !!c[l.name],
2209
+ autoComplete: u.autoComplete ?? "on",
2210
+ autoFocus: u.focus ?? !1,
2211
+ checked: c && !!c[u.name],
2206
2212
  onChange: d,
2207
- required: l.required ?? !1
2213
+ required: u.required ?? !1
2208
2214
  }
2209
2215
  )
2210
- ] }, m) : /* @__PURE__ */ s.jsxs("div", { className: `d-flex flex-column ${l.className}`, children: [
2211
- l.label && /* @__PURE__ */ s.jsx("label", { children: l.label }),
2212
- l.icon && /* @__PURE__ */ s.jsx(F, { classIcon: l.icon }),
2216
+ ] }, m) : /* @__PURE__ */ s.jsxs("div", { className: `d-flex flex-column ${u.className}`, children: [
2217
+ u.label && /* @__PURE__ */ s.jsx("label", { children: u.label }),
2218
+ u.icon && /* @__PURE__ */ s.jsx(M, { classIcon: u.icon }),
2213
2219
  /* @__PURE__ */ s.jsx(
2214
2220
  "input",
2215
2221
  {
2216
- autoFocus: l.focus ?? !1,
2217
- placeholder: l.placeholder ?? "",
2218
- autoComplete: l.autoComplete ?? "on",
2219
- name: l.name,
2222
+ autoFocus: u.focus ?? !1,
2223
+ placeholder: u.placeholder ?? "",
2224
+ autoComplete: u.autoComplete ?? "on",
2225
+ name: u.name,
2220
2226
  ref: y,
2221
- type: l.type,
2222
- required: l.required ?? !1,
2223
- value: c && c[l.name],
2227
+ type: u.type,
2228
+ required: u.required ?? !1,
2229
+ value: c && c[u.name],
2224
2230
  onChange: d
2225
2231
  }
2226
2232
  )
@@ -2265,12 +2271,12 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2265
2271
  positionFixed: a,
2266
2272
  onClickLogo: i
2267
2273
  }) => {
2268
- const c = ue(null), [u, d] = q(!1), v = M(() => {
2269
- d(!u);
2270
- }, [u, d]);
2274
+ const c = ue(null), [l, d] = q(!1), v = D(() => {
2275
+ d(!l);
2276
+ }, [l, d]);
2271
2277
  return /* @__PURE__ */ s.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
2272
2278
  /* @__PURE__ */ s.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
2273
- /* @__PURE__ */ s.jsx("span", { onClick: r, children: /* @__PURE__ */ s.jsx(F, { size: ce.MEDIUM, classIcon: "bi-list" }) }),
2279
+ /* @__PURE__ */ s.jsx("span", { onClick: r, children: /* @__PURE__ */ s.jsx(M, { size: ce.MEDIUM, classIcon: "bi-list" }) }),
2274
2280
  /* @__PURE__ */ s.jsx(
2275
2281
  "span",
2276
2282
  {
@@ -2282,12 +2288,12 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2282
2288
  ] }),
2283
2289
  /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center", children: [
2284
2290
  e,
2285
- /* @__PURE__ */ s.jsx("div", { ref: c, onClick: v, children: /* @__PURE__ */ s.jsx(F, { size: ce.MEDIUM, classIcon: "bi-person-circle" }) }),
2286
- u && c.current && /* @__PURE__ */ s.jsx(
2291
+ /* @__PURE__ */ s.jsx("div", { ref: c, onClick: v, children: /* @__PURE__ */ s.jsx(M, { size: ce.MEDIUM, classIcon: "bi-person-circle" }) }),
2292
+ l && c.current && /* @__PURE__ */ s.jsx(
2287
2293
  en,
2288
2294
  {
2289
2295
  position: "bottomRight",
2290
- show: u,
2296
+ show: l,
2291
2297
  closeOverlay: d,
2292
2298
  referenceElement: c.current,
2293
2299
  children: n
@@ -2313,19 +2319,19 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2313
2319
  ] }) }),
2314
2320
  document.body
2315
2321
  ) : null, fa = ({ setQuantity: e, item: t }) => {
2316
- const [r, n] = q(t.quantity ?? 1), a = M(
2317
- (u) => {
2318
- n(u), e && e(t, u);
2322
+ const [r, n] = q(t.quantity ?? 1), a = D(
2323
+ (l) => {
2324
+ n(l), e && e(t, l);
2319
2325
  },
2320
2326
  [n, e]
2321
- ), i = M(
2322
- (u) => {
2323
- u.stopPropagation(), a(r + 1);
2327
+ ), i = D(
2328
+ (l) => {
2329
+ l.stopPropagation(), a(r + 1);
2324
2330
  },
2325
2331
  [r, a]
2326
- ), c = M(
2327
- (u) => {
2328
- if (u.stopPropagation(), r === 0)
2332
+ ), c = D(
2333
+ (l) => {
2334
+ if (l.stopPropagation(), r === 0)
2329
2335
  return r;
2330
2336
  a(r - 1);
2331
2337
  },
@@ -2335,18 +2341,18 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2335
2341
  /* @__PURE__ */ s.jsx(
2336
2342
  "div",
2337
2343
  {
2338
- onClick: (u) => c(u),
2344
+ onClick: (l) => c(l),
2339
2345
  className: "qte-action qte-action--minus ",
2340
- children: /* @__PURE__ */ s.jsx(F, { size: ce.LARGE, classIcon: "bi bi-dash-square" })
2346
+ children: /* @__PURE__ */ s.jsx(M, { size: ce.LARGE, classIcon: "bi bi-dash-square" })
2341
2347
  }
2342
2348
  ),
2343
2349
  /* @__PURE__ */ s.jsx("span", { className: "qte-label", children: r }),
2344
2350
  /* @__PURE__ */ s.jsx(
2345
2351
  "div",
2346
2352
  {
2347
- onClick: (u) => i(u),
2353
+ onClick: (l) => i(l),
2348
2354
  className: "qte-action qte-action--plus ",
2349
- children: /* @__PURE__ */ s.jsx(F, { size: ce.LARGE, classIcon: "bi bi-plus-square" })
2355
+ children: /* @__PURE__ */ s.jsx(M, { size: ce.LARGE, classIcon: "bi bi-plus-square" })
2350
2356
  }
2351
2357
  )
2352
2358
  ] });
@@ -2359,8 +2365,8 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2359
2365
  debounceTime: a,
2360
2366
  handleChange: i,
2361
2367
  setIsVisible: c
2362
- }, u) => {
2363
- const [d, v] = q(r ?? !1), g = ue(null), p = ue(null), l = Oe(
2368
+ }, l) => {
2369
+ const [d, v] = q(r ?? !1), g = ue(null), p = ue(null), u = Oe(
2364
2370
  () => [
2365
2371
  {
2366
2372
  value: "",
@@ -2378,12 +2384,12 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2378
2384
  ee(() => {
2379
2385
  r !== void 0 && v(r);
2380
2386
  }, [r]);
2381
- const m = M(
2387
+ const m = D(
2382
2388
  (R) => {
2383
2389
  c && c(R), v(R);
2384
2390
  },
2385
2391
  [c]
2386
- ), y = M(
2392
+ ), y = D(
2387
2393
  (R) => {
2388
2394
  if (!R || !R.recherche)
2389
2395
  return m(!1);
@@ -2392,13 +2398,13 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2392
2398
  }, a ?? 500);
2393
2399
  },
2394
2400
  [m, i, a]
2395
- ), w = M(
2401
+ ), w = D(
2396
2402
  (R) => {
2397
2403
  console.log("Form Submitted: ", R);
2398
2404
  },
2399
2405
  []
2400
2406
  );
2401
- return kr(u, () => ({
2407
+ return kr(l, () => ({
2402
2408
  clearInput: (R) => {
2403
2409
  var k;
2404
2410
  (k = p.current) == null || k.clearInput(R);
@@ -2415,7 +2421,7 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2415
2421
  onSubmit: w,
2416
2422
  onChange: y,
2417
2423
  hideSubmit: !0,
2418
- initialForm: l
2424
+ initialForm: u
2419
2425
  }
2420
2426
  ),
2421
2427
  d && /* @__PURE__ */ s.jsxs("div", { className: "search-result", children: [
@@ -2424,7 +2430,7 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2424
2430
  {
2425
2431
  className: "toggle-btn",
2426
2432
  onClick: () => m(!1),
2427
- children: /* @__PURE__ */ s.jsx(F, { classIcon: "bi-x-lg" })
2433
+ children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-x-lg" })
2428
2434
  }
2429
2435
  ) }),
2430
2436
  /* @__PURE__ */ s.jsx("div", { className: "search-result-content", children: e })
@@ -2439,26 +2445,26 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2439
2445
  className: a,
2440
2446
  id: i,
2441
2447
  width: c,
2442
- closeOnClickOutside: u = !0,
2448
+ closeOnClickOutside: l = !0,
2443
2449
  displayOverlay: d = !0
2444
2450
  }) => {
2445
- const [v, g] = q(e || !1), p = ue(null), l = ue(null);
2446
- ee(() => (l.current || (l.current = document.createElement("div"), l.current.id = `sidebar-root-${i || Math.random().toString(36).substr(2, 9)}`, document.body.appendChild(l.current)), () => {
2447
- l.current && l.current.parentNode && (document.body.removeChild(l.current), l.current = null);
2451
+ const [v, g] = q(e || !1), p = ue(null), u = ue(null);
2452
+ ee(() => (u.current || (u.current = document.createElement("div"), u.current.id = `sidebar-root-${i || Math.random().toString(36).substr(2, 9)}`, document.body.appendChild(u.current)), () => {
2453
+ u.current && u.current.parentNode && (document.body.removeChild(u.current), u.current = null);
2448
2454
  }), [i]), ee(() => {
2449
2455
  g(e || !1);
2450
2456
  }, [e]);
2451
- const m = M(() => {
2457
+ const m = D(() => {
2452
2458
  g(!1), n && n(!1);
2453
- }, [n]), y = M(
2459
+ }, [n]), y = D(
2454
2460
  (w) => {
2455
- u && p.current && !p.current.contains(w.target) && m();
2461
+ l && p.current && !p.current.contains(w.target) && m();
2456
2462
  },
2457
- [m, u]
2463
+ [m, l]
2458
2464
  );
2459
2465
  return ee(() => (v ? document.addEventListener("mousedown", y) : document.removeEventListener("mousedown", y), () => {
2460
2466
  document.removeEventListener("mousedown", y);
2461
- }), [v, y]), l.current ? Mt.createPortal(
2467
+ }), [v, y]), u.current ? Mt.createPortal(
2462
2468
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2463
2469
  v && d && /* @__PURE__ */ s.jsx("div", { className: "overlay" }),
2464
2470
  /* @__PURE__ */ s.jsxs(
@@ -2470,14 +2476,14 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2470
2476
  children: [
2471
2477
  /* @__PURE__ */ s.jsxs("div", { className: "sidebar-header", children: [
2472
2478
  r && /* @__PURE__ */ s.jsx("h2", { className: "flex-1", children: r }),
2473
- /* @__PURE__ */ s.jsx("button", { className: "toggle-btn", onClick: m, children: /* @__PURE__ */ s.jsx(F, { classIcon: "bi-x-lg" }) })
2479
+ /* @__PURE__ */ s.jsx("button", { className: "toggle-btn", onClick: m, children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-x-lg" }) })
2474
2480
  ] }),
2475
2481
  t && t
2476
2482
  ]
2477
2483
  }
2478
2484
  )
2479
2485
  ] }),
2480
- l.current
2486
+ u.current
2481
2487
  ) : /* @__PURE__ */ s.jsx(s.Fragment, {});
2482
2488
  }, ha = (e) => /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(Zo, { ...e, className: `full sidebar-data ${e.className}`, children: e.children && /* @__PURE__ */ s.jsx("div", { className: "sidebar-data-content", children: e.children }) }) }), ma = ({
2483
2489
  className: e,
@@ -2489,24 +2495,24 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2489
2495
  }) => {
2490
2496
  const c = document.createElement("div");
2491
2497
  c.id = "toaster-root";
2492
- const u = M(
2498
+ const l = D(
2493
2499
  () => document.body.removeChild(c),
2494
2500
  [c]
2495
- ), d = M(() => {
2496
- const v = setTimeout(u, r);
2501
+ ), d = D(() => {
2502
+ const v = setTimeout(l, r);
2497
2503
  return () => {
2498
2504
  clearTimeout(v);
2499
2505
  };
2500
- }, [r, u]);
2506
+ }, [r, l]);
2501
2507
  return ee(() => (document.body.appendChild(c), d(), () => {
2502
2508
  document.body.removeChild(c);
2503
2509
  }), [c, d]), Mt.createPortal(
2504
2510
  /* @__PURE__ */ s.jsxs("div", { className: `toaster toaster-${i} ${e || ""}`, children: [
2505
2511
  /* @__PURE__ */ s.jsxs("div", { children: [
2506
- i === "info" && /* @__PURE__ */ s.jsx(F, { classIcon: "bi-info-circle" }),
2507
- i === "success" && /* @__PURE__ */ s.jsx(F, { classIcon: "bi-check-circle" }),
2508
- i === "error" && /* @__PURE__ */ s.jsx(F, { classIcon: "bi-x-circle" }),
2509
- i === "warning" && /* @__PURE__ */ s.jsx(F, { classIcon: "bi-exclamation-triangle" })
2512
+ i === "info" && /* @__PURE__ */ s.jsx(M, { classIcon: "bi-info-circle" }),
2513
+ i === "success" && /* @__PURE__ */ s.jsx(M, { classIcon: "bi-check-circle" }),
2514
+ i === "error" && /* @__PURE__ */ s.jsx(M, { classIcon: "bi-x-circle" }),
2515
+ i === "warning" && /* @__PURE__ */ s.jsx(M, { classIcon: "bi-exclamation-triangle" })
2510
2516
  ] }),
2511
2517
  /* @__PURE__ */ s.jsxs("div", { children: [
2512
2518
  /* @__PURE__ */ s.jsx("div", { className: `title title-${i}`, children: t }),
@@ -2528,7 +2534,7 @@ export {
2528
2534
  ia as FilAriane,
2529
2535
  ca as Grid,
2530
2536
  la as Header,
2531
- F as Icon,
2537
+ M as Icon,
2532
2538
  ce as IconSizeEnum,
2533
2539
  ua as Loader,
2534
2540
  In as Menus,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kelt-ui-kit-react",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.4.4",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { useMemo, useRef, useState } from "react";
1
+ import { useCallback, useMemo, useRef, useState } from "react";
2
2
  import { Button } from "../../button/Button";
3
3
  import { Icon } from "../../icon/Icon";
4
4
  import { IconSizeEnum } from "../../icon/iconSize.enum";
@@ -29,7 +29,6 @@ export const CardAction = ({ actions, item }: CardActionProps) => {
29
29
  sizeIcon={IconSizeEnum.LARGE}
30
30
  onClick={(e) => {
31
31
  e.stopPropagation();
32
- e.preventDefault();
33
32
  a.onClick && item && a.onClick(item);
34
33
  }}
35
34
  title={a.label || ""}
@@ -38,17 +37,20 @@ export const CardAction = ({ actions, item }: CardActionProps) => {
38
37
  };
39
38
  }) as MenuInterface[];
40
39
  }, [actions]);
41
-
40
+ const handleChangeOverlay = useCallback(
41
+ (e: any, openOverlay: boolean) => {
42
+ e.stopPropagation();
43
+ setOpenOverlay(openOverlay);
44
+ },
45
+ [setOpenOverlay]
46
+ );
42
47
  return (
43
48
  <div className="card-actions">
44
49
  {actions.filter((a) => a.type === "menu").length ? (
45
50
  <div
46
51
  ref={refButton}
47
52
  className="card-action"
48
- onClick={(e) => {
49
- e.stopPropagation();
50
- setOpenOverlay(!openOverlay);
51
- }}
53
+ onClick={(e) => handleChangeOverlay(e, !openOverlay)}
52
54
  >
53
55
  <Icon
54
56
  size={IconSizeEnum.MEDIUM}
@@ -69,7 +71,7 @@ export const CardAction = ({ actions, item }: CardActionProps) => {
69
71
  closeOverlay={setOpenOverlay}
70
72
  referenceElement={refButton.current}
71
73
  children={
72
- <div onClickCapture={(e) => e.stopPropagation()}>
74
+ <div>
73
75
  <Menus className="card-action-menu" items={overlayMenu} />
74
76
  </div>
75
77
  }
@@ -83,13 +83,17 @@ export const OverlayPanel = ({
83
83
  setActiveOverlay(overlayId);
84
84
  };
85
85
 
86
- const closeOverlayHandler = useCallback(() => {
87
- setIsShow(false);
88
- setActiveOverlay(null);
89
- if (closeOverlay) {
90
- closeOverlay(false);
91
- }
92
- }, [closeOverlay, setActiveOverlay]);
86
+ const closeOverlayHandler = useCallback(
87
+ (e: any) => {
88
+ e.stopPropagation();
89
+ setIsShow(false);
90
+ setActiveOverlay(null);
91
+ if (closeOverlay) {
92
+ closeOverlay(false);
93
+ }
94
+ },
95
+ [closeOverlay, setActiveOverlay]
96
+ );
93
97
 
94
98
  useEffect(() => {
95
99
  if (show) {