kelt-ui-kit-react 0.4.3 → 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
@@ -15,11 +15,11 @@ 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(l, d, g) {
19
- var v, p = {}, u = null, m = null;
20
- g !== void 0 && (u = "" + g), d.key !== void 0 && (u = "" + d.key), d.ref !== void 0 && (m = d.ref);
21
- for (v in d) n.call(d, v) && !i.hasOwnProperty(v) && (p[v] = d[v]);
22
- if (l && l.defaultProps) for (v in d = l.defaultProps, d) p[v] === void 0 && (p[v] = d[v]);
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
+ for (g in d) n.call(d, g) && !i.hasOwnProperty(g) && (p[g] = d[g]);
22
+ if (l && l.defaultProps) for (g in d = l.defaultProps, d) p[g] === void 0 && (p[g] = d[g]);
23
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;
@@ -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"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), v = 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";
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 === g || o === v || 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
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.
@@ -97,9 +97,9 @@ function An() {
97
97
  return "Profiler";
98
98
  case a:
99
99
  return "StrictMode";
100
- case g:
101
- return "Suspense";
102
100
  case v:
101
+ return "Suspense";
102
+ case g:
103
103
  return "SuspenseList";
104
104
  }
105
105
  if (typeof o == "object")
@@ -293,9 +293,9 @@ function An() {
293
293
  if (typeof o == "string")
294
294
  return J(o);
295
295
  switch (o) {
296
- case g:
297
- return J("Suspense");
298
296
  case v:
297
+ return J("Suspense");
298
+ case g:
299
299
  return J("SuspenseList");
300
300
  }
301
301
  if (typeof o == "object")
@@ -882,11 +882,11 @@ function Jn(e) {
882
882
  return qn(ot("", null, null, null, [""], e = Un(e), 0, [0], e));
883
883
  }
884
884
  function ot(e, t, r, n, a, i, c, l, d) {
885
- for (var g = 0, v = 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; )
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(g ? l[g - 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, l, d) {
914
914
  }
915
915
  break;
916
916
  case 123 * w:
917
- l[g++] = re(b) * k;
917
+ l[v++] = re(b) * k;
918
918
  case 125 * w:
919
919
  case 59:
920
920
  case 0:
@@ -922,14 +922,14 @@ function ot(e, t, r, n, a, i, c, l, d) {
922
922
  case 0:
923
923
  case 125:
924
924
  R = 0;
925
- case 59 + v:
925
+ case 59 + g:
926
926
  k == -1 && (b = E(b, /\f/g, "")), m > 0 && re(b) - p && qe(m > 32 ? lr(b + ";", n, r, p - 1, d) : lr(E(b, " ", "") + ";", n, r, p - 2, d), d);
927
927
  break;
928
928
  case 59:
929
929
  b += ";";
930
930
  default:
931
- if (qe(x = cr(b, t, r, g, v, a, l, _, A = [], I = [], p, i), i), j === 123)
932
- if (v === 0)
931
+ if (qe(x = cr(b, t, r, v, g, a, l, _, A = [], I = [], p, i), i), j === 123)
932
+ if (g === 0)
933
933
  ot(b, t, x, x, A, i, p, l, I);
934
934
  else
935
935
  switch (u === 99 && W(b, 3) === 110 ? 100 : u) {
@@ -943,7 +943,7 @@ function ot(e, t, r, n, a, i, c, l, d) {
943
943
  ot(b, x, x, x, [""], I, 0, l, I);
944
944
  }
945
945
  }
946
- g = v = m = 0, w = k = 1, _ = b = "", p = c;
946
+ v = g = m = 0, w = k = 1, _ = b = "", p = c;
947
947
  break;
948
948
  case 58:
949
949
  p = 1 + re(b), m = y;
@@ -956,13 +956,13 @@ function ot(e, t, r, n, a, i, c, l, d) {
956
956
  }
957
957
  switch (b += zt(j), j * w) {
958
958
  case 38:
959
- k = v > 0 ? 1 : (b += "\f", -1);
959
+ k = g > 0 ? 1 : (b += "\f", -1);
960
960
  break;
961
961
  case 44:
962
- l[g++] = (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())), u = we(), v = 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, l, d) {
970
970
  }
971
971
  return i;
972
972
  }
973
- function cr(e, t, r, n, a, i, c, l, d, g, v, p) {
973
+ function cr(e, t, r, n, a, i, c, l, d, v, g, p) {
974
974
  for (var u = a - 1, m = a === 0 ? i : [""], y = Ir(m), w = 0, R = 0, k = 0; w < n; ++w)
975
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 : l, d, g, v, 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, l, d, g) {
1106
- return $ + a + ":" + i + g + (c ? $ + a + "-span:" + (l ? d : +d - +i) + g : "") + 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)
@@ -1298,9 +1298,9 @@ function Ur(e, t, r) {
1298
1298
  for (var i = pr(e), c = pr(t), l = 0; l < a.length; ++l) {
1299
1299
  var d = a[l];
1300
1300
  if (!(d in ho || r && r[d] || c && d in c || i && d in i)) {
1301
- var g = yo(t, d);
1301
+ var v = yo(t, d);
1302
1302
  try {
1303
- go(e, d, g);
1303
+ go(e, d, v);
1304
1304
  } catch {
1305
1305
  }
1306
1306
  }
@@ -1429,8 +1429,8 @@ var So = function() {
1429
1429
  if (l) {
1430
1430
  var d = l.match(Ro);
1431
1431
  if (d) {
1432
- var g = 0 | parseInt(d[1], 10), v = d[2];
1433
- g !== 0 && (Eo(v, g), ko(e, v, d[3]), e.getTag().insertRules(g, a)), a.length = 0;
1432
+ var v = 0 | parseInt(d[1], 10), g = d[2];
1433
+ v !== 0 && (Eo(g, v), ko(e, g, d[3]), e.getTag().insertRules(v, a)), a.length = 0;
1434
1434
  } else a.push(l);
1435
1435
  }
1436
1436
  }
@@ -1506,7 +1506,7 @@ 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(), l = c.length, d = "", g = function(p) {
1509
+ for (var c = i.getTag(), l = c.length, d = "", v = function(p) {
1510
1510
  var u = function(k) {
1511
1511
  return ut.get(k);
1512
1512
  }(p);
@@ -1517,7 +1517,7 @@ var qr = function(e) {
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
- }, v = 0; v < l; v++) g(v);
1520
+ }, g = 0; g < l; g++) v(g);
1521
1521
  return d;
1522
1522
  }(a);
1523
1523
  });
@@ -1562,18 +1562,18 @@ 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, l = a.plugins, d = l === void 0 ? gt : l, g = function(u, m, y) {
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
1566
  return y.startsWith(r) && y.endsWith(r) && y.replaceAll(r, "").length > 0 ? ".".concat(t) : u;
1567
- }, v = d.slice();
1568
- v.push(function(u) {
1569
- u.type === dt && u.value.includes("&") && (u.props[0] = u.props[0].replace(Io, r).replace(n, g));
1570
- }), c.prefix && v.push(ro), v.push(Qn);
1567
+ }, g = d.slice();
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
+ }), c.prefix && g.push(ro), g.push(Qn);
1571
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
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
- return ct(k, eo(v.concat(to(function(_) {
1576
+ return ct(k, eo(g.concat(to(function(_) {
1577
1577
  return j.push(_);
1578
1578
  })))), j;
1579
1579
  };
@@ -1658,17 +1658,17 @@ var zo = zr(mt), Wo = function() {
1658
1658
  a = be(a, c), this.staticRulesId = c;
1659
1659
  }
1660
1660
  else {
1661
- for (var d = xe(this.baseHash, n.hash), g = "", v = 0; v < this.rules.length; v++) {
1662
- var p = this.rules[v];
1663
- if (typeof p == "string") g += p, process.env.NODE_ENV !== "production" && (d = xe(d, p));
1661
+ for (var d = xe(this.baseHash, n.hash), v = "", g = 0; g < this.rules.length; g++) {
1662
+ var p = this.rules[g];
1663
+ if (typeof p == "string") v += p, process.env.NODE_ENV !== "production" && (d = xe(d, p));
1664
1664
  else if (p) {
1665
1665
  var u = gr(Se(p, t, r, n));
1666
- d = xe(d, u + v), g += u;
1666
+ d = xe(d, u + g), v += u;
1667
1667
  }
1668
1668
  }
1669
- if (g) {
1669
+ if (v) {
1670
1670
  var m = It(d >>> 0);
1671
- r.hasNameForId(this.componentId, m) || r.insertRules(this.componentId, m, n(g, ".".concat(m), void 0, this.componentId)), a = be(a, m);
1671
+ r.hasNameForId(this.componentId, m) || r.insertRules(this.componentId, m, n(v, ".".concat(m), void 0, this.componentId)), a = be(a, m);
1672
1672
  }
1673
1673
  }
1674
1674
  return a;
@@ -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, l = c === void 0 ? gt : c, d = t.componentId, g = 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
- }(t.displayName, t.parentComponentId) : d, v = t.displayName, p = v === void 0 ? function(A) {
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) : v, u = t.displayName && t.componentId ? "".concat(dr(t.displayName), "-").concat(t.componentId) : t.componentId || g, m = n && a.attrs ? a.attrs.concat(l).filter(Boolean) : l, 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) {
@@ -1801,7 +1801,7 @@ const Bo = Yt.div`
1801
1801
  show: n,
1802
1802
  closeOverlay: a
1803
1803
  }) => {
1804
- const { activeOverlayId: i, setActiveOverlay: c } = $n(), [l, d] = q(n || !1), [g, v] = q({ top: 0, left: 0 }), p = ue(null), u = _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
1806
  i !== u && d(!1);
1807
1807
  }, [i, u]), ee(() => {
@@ -1832,7 +1832,7 @@ const Bo = Yt.div`
1832
1832
  left: x.right
1833
1833
  })
1834
1834
  }, { top: A, left: I } = _[t ?? "topLeft"](R, k);
1835
- v({ top: A, left: I });
1835
+ g({ top: A, left: I });
1836
1836
  }
1837
1837
  };
1838
1838
  return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
@@ -1848,7 +1848,7 @@ const Bo = Yt.div`
1848
1848
  return ee(() => {
1849
1849
  n && m();
1850
1850
  }, [n]), l ? Mt.createPortal(
1851
- /* @__PURE__ */ s.jsx(Bo, { ref: p, $top: g.top, $left: g.left, children: /* @__PURE__ */ s.jsxs("div", { className: "overlayPanel", children: [
1851
+ /* @__PURE__ */ s.jsx(Bo, { ref: p, $top: v.top, $left: v.left, children: /* @__PURE__ */ s.jsxs("div", { className: "overlayPanel", children: [
1852
1852
  /* @__PURE__ */ s.jsx("button", { className: "toggle-btn", onClick: y, children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-x-lg" }) }),
1853
1853
  r
1854
1854
  ] }) }),
@@ -1864,8 +1864,8 @@ const Bo = Yt.div`
1864
1864
  {
1865
1865
  classIcon: l.icon,
1866
1866
  sizeIcon: ce.LARGE,
1867
- onClick: (g) => {
1868
- g.stopPropagation(), g.preventDefault(), l.onClick && t && l.onClick(t);
1867
+ onClick: (v) => {
1868
+ v.stopPropagation(), l.onClick && t && l.onClick(t);
1869
1869
  },
1870
1870
  title: l.label || ""
1871
1871
  }
@@ -1908,7 +1908,7 @@ const Bo = Yt.div`
1908
1908
  show: n,
1909
1909
  closeOverlay: a,
1910
1910
  referenceElement: r.current,
1911
- children: /* @__PURE__ */ s.jsx("div", { onClickCapture: (l) => l.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 }) })
1912
1912
  }
1913
1913
  )
1914
1914
  ] });
@@ -1921,9 +1921,9 @@ const Bo = Yt.div`
1921
1921
  customAction: i,
1922
1922
  children: c
1923
1923
  }) => {
1924
- const [l, d] = q(!1), g = (p, u) => {
1924
+ const [l, d] = q(!1), v = (p, u) => {
1925
1925
  p.stopPropagation(), a && a(u);
1926
- }, v = D(
1926
+ }, g = D(
1927
1927
  (p, u) => {
1928
1928
  p.target.closest(".card-action-menu button") || (p.stopPropagation(), d(!l), n && n(u));
1929
1929
  },
@@ -1932,7 +1932,7 @@ const Bo = Yt.div`
1932
1932
  return /* @__PURE__ */ s.jsxs(
1933
1933
  "div",
1934
1934
  {
1935
- ...n && { onClick: (p) => v(p, e) },
1935
+ ...n && { onClick: (p) => g(p, e) },
1936
1936
  className: `card ${r ?? ""} ${l ? "card--active" : ""} `,
1937
1937
  children: [
1938
1938
  c,
@@ -1950,7 +1950,7 @@ const Bo = Yt.div`
1950
1950
  "div",
1951
1951
  {
1952
1952
  className: "ml-2 cursor-pointer",
1953
- onClick: (p) => g(p, e),
1953
+ onClick: (p) => v(p, e),
1954
1954
  children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-trash3" })
1955
1955
  }
1956
1956
  ),
@@ -1985,14 +1985,14 @@ const Bo = Yt.div`
1985
1985
  };
1986
1986
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
1987
1987
  }, [n]);
1988
- const g = D(
1988
+ const v = D(
1989
1989
  (y) => {
1990
1990
  y.preventDefault(), i(
1991
1991
  (w) => Math.min(w + r, c - l)
1992
1992
  );
1993
1993
  },
1994
1994
  [i]
1995
- ), v = D(
1995
+ ), g = D(
1996
1996
  (y) => {
1997
1997
  y.preventDefault(), i((w) => Math.max(w - r, 0));
1998
1998
  },
@@ -2003,7 +2003,7 @@ const Bo = Yt.div`
2003
2003
  "div",
2004
2004
  {
2005
2005
  className: `carousel-control prev ${m && "disabled"}`,
2006
- onClick: v,
2006
+ onClick: g,
2007
2007
  children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-chevron-left" })
2008
2008
  }
2009
2009
  ),
@@ -2033,7 +2033,7 @@ const Bo = Yt.div`
2033
2033
  "div",
2034
2034
  {
2035
2035
  className: `carousel-control next ${p && "disabled"}`,
2036
- onClick: g,
2036
+ onClick: v,
2037
2037
  children: /* @__PURE__ */ s.jsx(M, { classIcon: "bi-chevron-right" })
2038
2038
  }
2039
2039
  )
@@ -2054,8 +2054,8 @@ const Bo = Yt.div`
2054
2054
  ee(() => {
2055
2055
  d(n);
2056
2056
  }, [n]);
2057
- const g = Oe(() => {
2058
- const v = [];
2057
+ const v = Oe(() => {
2058
+ const g = [];
2059
2059
  for (let p = 0; p < c; p++) {
2060
2060
  const u = [];
2061
2061
  for (let m = 0; m < i; m++) {
@@ -2068,13 +2068,13 @@ const Bo = Yt.div`
2068
2068
  /* @__PURE__ */ s.jsx("div", { className: "cell cell--empty" }, `${p}-${m}`)
2069
2069
  );
2070
2070
  }
2071
- v.push(
2071
+ g.push(
2072
2072
  /* @__PURE__ */ s.jsx("div", { className: "row", children: u }, p)
2073
2073
  );
2074
2074
  }
2075
- return v;
2075
+ return g;
2076
2076
  }, [i, c, l]);
2077
- return /* @__PURE__ */ s.jsx("div", { className: "damier", children: g });
2077
+ return /* @__PURE__ */ s.jsx("div", { className: "damier", children: v });
2078
2078
  }, qo = (e) => {
2079
2079
  const t = Oe(() => e.active ? "expand--active" : "", [e.active]);
2080
2080
  return /* @__PURE__ */ s.jsxs(
@@ -2167,12 +2167,12 @@ const Bo = Yt.div`
2167
2167
  });
2168
2168
  },
2169
2169
  [l, n]
2170
- ), g = D(
2170
+ ), v = D(
2171
2171
  (u) => {
2172
2172
  u.preventDefault(), r && r(c);
2173
2173
  },
2174
2174
  [r, c]
2175
- ), v = () => {
2175
+ ), g = () => {
2176
2176
  l(() => {
2177
2177
  const u = {};
2178
2178
  return e.forEach((m) => {
@@ -2189,9 +2189,9 @@ const Bo = Yt.div`
2189
2189
  [l]
2190
2190
  );
2191
2191
  return kr(i, () => ({
2192
- resetForm: v,
2192
+ resetForm: g,
2193
2193
  clearInput: p
2194
- })), /* @__PURE__ */ s.jsxs("form", { onSubmit: g, children: [
2194
+ })), /* @__PURE__ */ s.jsxs("form", { onSubmit: v, children: [
2195
2195
  e.map((u, m) => {
2196
2196
  const y = ue(null);
2197
2197
  return ee(() => {
@@ -2271,7 +2271,7 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2271
2271
  positionFixed: a,
2272
2272
  onClickLogo: i
2273
2273
  }) => {
2274
- const c = ue(null), [l, d] = q(!1), g = D(() => {
2274
+ const c = ue(null), [l, d] = q(!1), v = D(() => {
2275
2275
  d(!l);
2276
2276
  }, [l, d]);
2277
2277
  return /* @__PURE__ */ s.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
@@ -2288,7 +2288,7 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2288
2288
  ] }),
2289
2289
  /* @__PURE__ */ s.jsxs("div", { className: "d-flex align-items-center", children: [
2290
2290
  e,
2291
- /* @__PURE__ */ s.jsx("div", { ref: c, onClick: g, children: /* @__PURE__ */ s.jsx(M, { size: ce.MEDIUM, classIcon: "bi-person-circle" }) }),
2291
+ /* @__PURE__ */ s.jsx("div", { ref: c, onClick: v, children: /* @__PURE__ */ s.jsx(M, { size: ce.MEDIUM, classIcon: "bi-person-circle" }) }),
2292
2292
  l && c.current && /* @__PURE__ */ s.jsx(
2293
2293
  en,
2294
2294
  {
@@ -2366,7 +2366,7 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2366
2366
  handleChange: i,
2367
2367
  setIsVisible: c
2368
2368
  }, l) => {
2369
- const [d, g] = q(r ?? !1), v = ue(null), p = ue(null), u = Oe(
2369
+ const [d, v] = q(r ?? !1), g = ue(null), p = ue(null), u = Oe(
2370
2370
  () => [
2371
2371
  {
2372
2372
  value: "",
@@ -2382,18 +2382,18 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2382
2382
  [t, n]
2383
2383
  );
2384
2384
  ee(() => {
2385
- r !== void 0 && g(r);
2385
+ r !== void 0 && v(r);
2386
2386
  }, [r]);
2387
2387
  const m = D(
2388
2388
  (R) => {
2389
- c && c(R), g(R);
2389
+ c && c(R), v(R);
2390
2390
  },
2391
2391
  [c]
2392
2392
  ), y = D(
2393
2393
  (R) => {
2394
2394
  if (!R || !R.recherche)
2395
2395
  return m(!1);
2396
- m(!0), v.current && clearTimeout(v.current), v.current = setTimeout(() => {
2396
+ m(!0), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
2397
2397
  i && i(R);
2398
2398
  }, a ?? 500);
2399
2399
  },
@@ -2448,31 +2448,31 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2448
2448
  closeOnClickOutside: l = !0,
2449
2449
  displayOverlay: d = !0
2450
2450
  }) => {
2451
- const [g, v] = q(e || !1), p = ue(null), u = ue(null);
2451
+ const [v, g] = q(e || !1), p = ue(null), u = ue(null);
2452
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
2453
  u.current && u.current.parentNode && (document.body.removeChild(u.current), u.current = null);
2454
2454
  }), [i]), ee(() => {
2455
- v(e || !1);
2455
+ g(e || !1);
2456
2456
  }, [e]);
2457
2457
  const m = D(() => {
2458
- v(!1), n && n(!1);
2458
+ g(!1), n && n(!1);
2459
2459
  }, [n]), y = D(
2460
2460
  (w) => {
2461
2461
  l && p.current && !p.current.contains(w.target) && m();
2462
2462
  },
2463
2463
  [m, l]
2464
2464
  );
2465
- return ee(() => (g ? document.addEventListener("mousedown", y) : document.removeEventListener("mousedown", y), () => {
2465
+ return ee(() => (v ? document.addEventListener("mousedown", y) : document.removeEventListener("mousedown", y), () => {
2466
2466
  document.removeEventListener("mousedown", y);
2467
- }), [g, y]), u.current ? Mt.createPortal(
2467
+ }), [v, y]), u.current ? Mt.createPortal(
2468
2468
  /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2469
- g && d && /* @__PURE__ */ s.jsx("div", { className: "overlay" }),
2469
+ v && d && /* @__PURE__ */ s.jsx("div", { className: "overlay" }),
2470
2470
  /* @__PURE__ */ s.jsxs(
2471
2471
  "div",
2472
2472
  {
2473
2473
  ref: p,
2474
2474
  style: c ? { width: c } : {},
2475
- className: `sidebar ${g ? "open" : "closed"} ${a ?? ""}`,
2475
+ className: `sidebar ${v ? "open" : "closed"} ${a ?? ""}`,
2476
2476
  children: [
2477
2477
  /* @__PURE__ */ s.jsxs("div", { className: "sidebar-header", children: [
2478
2478
  r && /* @__PURE__ */ s.jsx("h2", { className: "flex-1", children: r }),
@@ -2499,9 +2499,9 @@ const me = (e = 12) => `${e / 12 * 100}%`, Ho = Yt.div`
2499
2499
  () => document.body.removeChild(c),
2500
2500
  [c]
2501
2501
  ), d = D(() => {
2502
- const g = setTimeout(l, r);
2502
+ const v = setTimeout(l, r);
2503
2503
  return () => {
2504
- clearTimeout(g);
2504
+ clearTimeout(v);
2505
2505
  };
2506
2506
  }, [r, l]);
2507
2507
  return ee(() => (document.body.appendChild(c), d(), () => {
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.3",
4
+ "version": "0.4.4",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -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 || ""}
@@ -72,7 +71,7 @@ export const CardAction = ({ actions, item }: CardActionProps) => {
72
71
  closeOverlay={setOpenOverlay}
73
72
  referenceElement={refButton.current}
74
73
  children={
75
- <div onClickCapture={(e) => e.stopPropagation()}>
74
+ <div>
76
75
  <Menus className="card-action-menu" items={overlayMenu} />
77
76
  </div>
78
77
  }