kelt-ui-kit-react 1.2.6 → 1.2.8

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.
@@ -24,6 +24,7 @@ export interface FormInterface {
24
24
  icon?: string;
25
25
  className?: string;
26
26
  autoComplete?: autoCompleteType;
27
+ step?: string;
27
28
  onChange?: (value: string | number | boolean | Date, name?: string) => void;
28
29
  onRequired?: (value: string | number | boolean | Date) => boolean;
29
30
  onDisabled?: (value: string | number | boolean | Date) => boolean;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import Te, { useState as L, useEffect as Q, useCallback as A, createContext as Eo, useContext as Oa, useDebugValue as Wn, createElement as Po, useRef as ye, forwardRef as br, useId as To, useImperativeHandle as wr, useMemo as Ye, Children as Ao, cloneElement as Ro } from "react";
1
+ import Te, { useState as F, useEffect as Q, useCallback as A, createContext as Eo, useContext as Oa, useDebugValue as Wn, createElement as Po, useRef as ye, forwardRef as br, useId as To, useImperativeHandle as wr, useMemo as Ye, Children as Ao, cloneElement as Ro } from "react";
2
2
  import xn, { createPortal as Da } from "react-dom";
3
3
  const Gc = (e = 768) => {
4
- const [t, r] = L(
4
+ const [t, r] = F(
5
5
  typeof window < "u" ? window.innerWidth <= e : !1
6
6
  );
7
7
  return Q(() => {
@@ -641,7 +641,7 @@ React keys must be passed directly to JSX without using spread:
641
641
  }
642
642
  process.env.NODE_ENV === "production" ? Kr.exports = $o() : Kr.exports = Mo();
643
643
  var i = Kr.exports;
644
- const F = ({ classIcon: e, size: t }) => /* @__PURE__ */ i.jsx("i", { className: `bi ${e} ${t ?? "sm"}` }), Na = ({
644
+ const L = ({ classIcon: e, size: t }) => /* @__PURE__ */ i.jsx("i", { className: `bi ${e} ${t ?? "sm"}` }), Na = ({
645
645
  className: e,
646
646
  onClick: t,
647
647
  title: r,
@@ -657,7 +657,7 @@ const F = ({ classIcon: e, size: t }) => /* @__PURE__ */ i.jsx("i", { className:
657
657
  onClick: o,
658
658
  className: `badge ${e || ""}`,
659
659
  children: [
660
- a && /* @__PURE__ */ i.jsx(F, { size: n, classIcon: a }),
660
+ a && /* @__PURE__ */ i.jsx(L, { size: n, classIcon: a }),
661
661
  /* @__PURE__ */ i.jsx("span", { children: r })
662
662
  ]
663
663
  }
@@ -676,7 +676,7 @@ const qc = ({
676
676
  };
677
677
  return /* @__PURE__ */ i.jsxs("div", { className: `action ${e}`, onClick: o, children: [
678
678
  a && /* @__PURE__ */ i.jsx(Na, { ...a }),
679
- n && /* @__PURE__ */ i.jsx(F, { classIcon: n, size: xe.LARGE }),
679
+ n && /* @__PURE__ */ i.jsx(L, { classIcon: n, size: xe.LARGE }),
680
680
  /* @__PURE__ */ i.jsx("small", { children: r })
681
681
  ] });
682
682
  }, Lt = ({
@@ -701,9 +701,9 @@ const qc = ({
701
701
  className: e,
702
702
  children: [
703
703
  r && /* @__PURE__ */ i.jsx(Na, { ...r }),
704
- o && s == 1 && /* @__PURE__ */ i.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ i.jsx(F, { size: a, classIcon: o }) }),
704
+ o && s == 1 && /* @__PURE__ */ i.jsx("span", { className: `${n ? "mr-2" : ""}`, children: /* @__PURE__ */ i.jsx(L, { size: a, classIcon: o }) }),
705
705
  /* @__PURE__ */ i.jsx("span", { children: n }),
706
- o && s == 2 && /* @__PURE__ */ i.jsx("span", { className: "ml-2", children: /* @__PURE__ */ i.jsx(F, { classIcon: o }) })
706
+ o && s == 2 && /* @__PURE__ */ i.jsx("span", { className: "ml-2", children: /* @__PURE__ */ i.jsx(L, { classIcon: o }) })
707
707
  ]
708
708
  }
709
709
  );
@@ -715,7 +715,7 @@ const qc = ({
715
715
  children: e.item.children
716
716
  }
717
717
  ), _a = (e) => {
718
- const [t, r] = L(null), n = A((o) => {
718
+ const [t, r] = F(null), n = A((o) => {
719
719
  r(o);
720
720
  }, []), a = (o) => /* @__PURE__ */ i.jsx("ul", { children: o.map((s) => /* @__PURE__ */ i.jsxs("li", { children: [
721
721
  /* @__PURE__ */ i.jsx(
@@ -732,7 +732,7 @@ const qc = ({
732
732
  }, Ca = Eo(void 0), Hc = ({
733
733
  children: e
734
734
  }) => {
735
- const [t, r] = L(null);
735
+ const [t, r] = F(null);
736
736
  return /* @__PURE__ */ i.jsx(Ca.Provider, { value: { activeOverlayId: t, setActiveOverlay: r }, children: e });
737
737
  }, Fo = () => {
738
738
  const e = Oa(Ca);
@@ -1842,7 +1842,7 @@ const Gi = _n.div`
1842
1842
  show: a,
1843
1843
  closeOverlay: o
1844
1844
  }, s) => {
1845
- const { activeOverlayId: l, setActiveOverlay: u } = Fo(), [d, h] = L(a || !1), [v, g] = L(
1845
+ const { activeOverlayId: l, setActiveOverlay: u } = Fo(), [d, h] = F(a || !1), [v, g] = F(
1846
1846
  r ?? { top: 0, left: 0 }
1847
1847
  ), m = ye(null), y = To();
1848
1848
  wr(s, () => ({
@@ -1913,7 +1913,7 @@ const Gi = _n.div`
1913
1913
  {
1914
1914
  className: `overlayPanel ${v.top > 0 || v.left > 0 ? "visible" : "hide"}`,
1915
1915
  children: [
1916
- /* @__PURE__ */ i.jsx("button", { className: "toggle-btn", onClick: x, children: /* @__PURE__ */ i.jsx(F, { classIcon: "bi-x-lg" }) }),
1916
+ /* @__PURE__ */ i.jsx("button", { className: "toggle-btn", onClick: x, children: /* @__PURE__ */ i.jsx(L, { classIcon: "bi-x-lg" }) }),
1917
1917
  n
1918
1918
  ]
1919
1919
  }
@@ -1931,7 +1931,7 @@ const Gi = _n.div`
1931
1931
  }) => {
1932
1932
  const s = (m) => {
1933
1933
  m.preventDefault(), t && t(m);
1934
- }, l = ye(null), [u, d] = L(!1), h = A(
1934
+ }, l = ye(null), [u, d] = F(!1), h = A(
1935
1935
  (m) => {
1936
1936
  m.stopPropagation(), n && d(!u);
1937
1937
  },
@@ -1971,7 +1971,7 @@ const Gi = _n.div`
1971
1971
  className: "ml-2",
1972
1972
  ref: l,
1973
1973
  onClick: (m) => h(m),
1974
- children: /* @__PURE__ */ i.jsx(F, { classIcon: "bi-chevron-up" })
1974
+ children: /* @__PURE__ */ i.jsx(L, { classIcon: "bi-chevron-up" })
1975
1975
  }
1976
1976
  )
1977
1977
  ]
@@ -1996,9 +1996,9 @@ const Gi = _n.div`
1996
1996
  positionOverlay: a,
1997
1997
  setOpenActions: o
1998
1998
  }) => {
1999
- const s = ye(null), [l, u] = L(
1999
+ const s = ye(null), [l, u] = F(
2000
2000
  a
2001
- ), d = ye(null), [h, v] = L(t ?? !1);
2001
+ ), d = ye(null), [h, v] = F(t ?? !1);
2002
2002
  Q(() => {
2003
2003
  t && v(t);
2004
2004
  }, [t]);
@@ -2039,14 +2039,14 @@ const Gi = _n.div`
2039
2039
  onClick: (p) => g(p, !h),
2040
2040
  children: [
2041
2041
  /* @__PURE__ */ i.jsx(
2042
- F,
2042
+ L,
2043
2043
  {
2044
2044
  size: xe.MEDIUM,
2045
2045
  classIcon: "bi-three-dots-vertical cursor-pointer"
2046
2046
  }
2047
2047
  ),
2048
2048
  /* @__PURE__ */ i.jsx(
2049
- F,
2049
+ L,
2050
2050
  {
2051
2051
  size: xe.MEDIUM,
2052
2052
  classIcon: "bi-three-dots cursor-pointer"
@@ -2078,7 +2078,7 @@ const Gi = _n.div`
2078
2078
  positionOverlay: s,
2079
2079
  children: l
2080
2080
  }) => {
2081
- const [u, d] = L(!1), [h, v] = L(!1), [g, m] = L(), y = (x, f) => {
2081
+ const [u, d] = F(!1), [h, v] = F(!1), [g, m] = F(), y = (x, f) => {
2082
2082
  x.stopPropagation(), a && a(f);
2083
2083
  }, p = A(
2084
2084
  (x, f) => {
@@ -2118,7 +2118,7 @@ const Gi = _n.div`
2118
2118
  {
2119
2119
  className: "ml-2 cursor-pointer",
2120
2120
  onClick: (x) => y(x, e),
2121
- children: /* @__PURE__ */ i.jsx(F, { classIcon: "bi-trash3" })
2121
+ children: /* @__PURE__ */ i.jsx(L, { classIcon: "bi-trash3" })
2122
2122
  }
2123
2123
  ),
2124
2124
  t && /* @__PURE__ */ i.jsx(
@@ -2147,7 +2147,7 @@ const Gi = _n.div`
2147
2147
  xl: 5
2148
2148
  }
2149
2149
  }) => {
2150
- const [a, o] = L(0), s = e.length, [l, u] = L(1);
2150
+ const [a, o] = F(0), s = e.length, [l, u] = F(1);
2151
2151
  Q(() => {
2152
2152
  const y = () => {
2153
2153
  const p = window.innerWidth;
@@ -2181,7 +2181,7 @@ const Gi = _n.div`
2181
2181
  {
2182
2182
  className: `carousel-control prev ${m && "disabled"}`,
2183
2183
  onClick: h,
2184
- children: /* @__PURE__ */ i.jsx(F, { classIcon: "bi-chevron-left" })
2184
+ children: /* @__PURE__ */ i.jsx(L, { classIcon: "bi-chevron-left" })
2185
2185
  }
2186
2186
  ),
2187
2187
  /* @__PURE__ */ i.jsx("div", { className: "carousel-container", children: /* @__PURE__ */ i.jsx(
@@ -2211,7 +2211,7 @@ const Gi = _n.div`
2211
2211
  {
2212
2212
  className: `carousel-control next ${v && "disabled"}`,
2213
2213
  onClick: d,
2214
- children: /* @__PURE__ */ i.jsx(F, { classIcon: "bi-chevron-right" })
2214
+ children: /* @__PURE__ */ i.jsx(L, { classIcon: "bi-chevron-right" })
2215
2215
  }
2216
2216
  )
2217
2217
  ] });
@@ -2227,7 +2227,7 @@ const Gi = _n.div`
2227
2227
  page: n = 1,
2228
2228
  onClick: a
2229
2229
  }) => {
2230
- const o = Ye(() => e ?? 9, [e]), s = Ye(() => t ?? 9, [t]), [l, u] = L(1);
2230
+ const o = Ye(() => e ?? 9, [e]), s = Ye(() => t ?? 9, [t]), [l, u] = F(1);
2231
2231
  Q(() => {
2232
2232
  u(n);
2233
2233
  }, [n]);
@@ -2423,7 +2423,7 @@ function Zc(e) {
2423
2423
  className: "mr-2 ",
2424
2424
  onClick: () => f.onClick(p),
2425
2425
  children: /* @__PURE__ */ i.jsx(
2426
- F,
2426
+ L,
2427
2427
  {
2428
2428
  classIcon: f.classIcon ?? ""
2429
2429
  },
@@ -3594,9 +3594,9 @@ function ir(e, t) {
3594
3594
  return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
3595
3595
  }
3596
3596
  var Pc = br(function(t, r) {
3597
- var n = t.activeStartDate, a = t.allowPartialRange, o = t.calendarType, s = t.className, l = t.defaultActiveStartDate, u = t.defaultValue, d = t.defaultView, h = t.formatDay, v = t.formatLongDate, g = t.formatMonth, m = t.formatMonthYear, y = t.formatShortWeekday, p = t.formatWeekday, x = t.formatYear, f = t.goToRangeStartOnSelect, b = f === void 0 ? !0 : f, S = t.inputRef, D = t.locale, P = t.maxDate, k = P === void 0 ? Nc : P, C = t.maxDetail, M = C === void 0 ? "month" : C, q = t.minDate, ue = q === void 0 ? Mn : q, Me = t.minDetail, pe = Me === void 0 ? "century" : Me, ie = t.navigationAriaLabel, se = t.navigationAriaLive, Se = t.navigationLabel, Z = t.next2AriaLabel, De = t.next2Label, Ae = t.nextAriaLabel, H = t.nextLabel, B = t.onActiveStartDateChange, re = t.onChange, G = t.onClickDay, be = t.onClickDecade, Ne = t.onClickMonth, _e = t.onClickWeekNumber, de = t.onClickYear, fe = t.onDrillDown, ne = t.onDrillUp, K = t.onViewChange, we = t.prev2AriaLabel, Ce = t.prev2Label, ce = t.prevAriaLabel, xt = t.prevLabel, X = t.returnValue, ke = X === void 0 ? "start" : X, ee = t.selectRange, ze = t.showDoubleView, jt = t.showFixedNumberOfWeeks, Ue = t.showNavigation, Rr = Ue === void 0 ? !0 : Ue, Ir = t.showNeighboringCentury, St = t.showNeighboringDecade, Bt = t.showNeighboringMonth, $r = Bt === void 0 ? !0 : Bt, zt = t.showWeekNumbers, Ut = t.tileClassName, Gt = t.tileContent, Mr = t.tileDisabled, nt = t.value, Ot = t.view, qt = L(l), Lr = qt[0], at = qt[1], Ht = L(null), Fr = Ht[0], Xt = Ht[1], Kt = L(Array.isArray(u) ? u.map(function(O) {
3597
+ var n = t.activeStartDate, a = t.allowPartialRange, o = t.calendarType, s = t.className, l = t.defaultActiveStartDate, u = t.defaultValue, d = t.defaultView, h = t.formatDay, v = t.formatLongDate, g = t.formatMonth, m = t.formatMonthYear, y = t.formatShortWeekday, p = t.formatWeekday, x = t.formatYear, f = t.goToRangeStartOnSelect, b = f === void 0 ? !0 : f, S = t.inputRef, D = t.locale, P = t.maxDate, k = P === void 0 ? Nc : P, C = t.maxDetail, M = C === void 0 ? "month" : C, q = t.minDate, ue = q === void 0 ? Mn : q, Me = t.minDetail, pe = Me === void 0 ? "century" : Me, ie = t.navigationAriaLabel, se = t.navigationAriaLive, Se = t.navigationLabel, Z = t.next2AriaLabel, De = t.next2Label, Ae = t.nextAriaLabel, H = t.nextLabel, B = t.onActiveStartDateChange, re = t.onChange, G = t.onClickDay, be = t.onClickDecade, Ne = t.onClickMonth, _e = t.onClickWeekNumber, de = t.onClickYear, fe = t.onDrillDown, ne = t.onDrillUp, K = t.onViewChange, we = t.prev2AriaLabel, Ce = t.prev2Label, ce = t.prevAriaLabel, xt = t.prevLabel, X = t.returnValue, ke = X === void 0 ? "start" : X, ee = t.selectRange, ze = t.showDoubleView, jt = t.showFixedNumberOfWeeks, Ue = t.showNavigation, Rr = Ue === void 0 ? !0 : Ue, Ir = t.showNeighboringCentury, St = t.showNeighboringDecade, Bt = t.showNeighboringMonth, $r = Bt === void 0 ? !0 : Bt, zt = t.showWeekNumbers, Ut = t.tileClassName, Gt = t.tileContent, Mr = t.tileDisabled, nt = t.value, Ot = t.view, qt = F(l), Lr = qt[0], at = qt[1], Ht = F(null), Fr = Ht[0], Xt = Ht[1], Kt = F(Array.isArray(u) ? u.map(function(O) {
3598
3598
  return O !== null ? Rt(O) : null;
3599
- }) : u != null ? Rt(u) : null), Ge = Kt[0], Jt = Kt[1], Re = L(d), Dt = Re[0], ot = Re[1], ae = n || Lr || Ec({
3599
+ }) : u != null ? Rt(u) : null), Ge = Kt[0], Jt = Kt[1], Re = F(d), Dt = Re[0], ot = Re[1], ae = n || Lr || Ec({
3600
3600
  activeStartDate: n,
3601
3601
  defaultActiveStartDate: l,
3602
3602
  defaultValue: u,
@@ -3829,7 +3829,7 @@ const el = ({
3829
3829
  maxDate: r,
3830
3830
  children: n
3831
3831
  }) => {
3832
- const [a, o] = L(e ?? /* @__PURE__ */ new Date()), [s, l] = L(!1), u = ye(null), d = A(
3832
+ const [a, o] = F(e ?? /* @__PURE__ */ new Date()), [s, l] = F(!1), u = ye(null), d = A(
3833
3833
  (p) => {
3834
3834
  o(p), t && t(p), l(!1);
3835
3835
  },
@@ -3840,7 +3840,7 @@ const el = ({
3840
3840
  Q(() => (s ? document.addEventListener("mousedown", v) : document.removeEventListener("mousedown", v), () => {
3841
3841
  document.removeEventListener("mousedown", v);
3842
3842
  }), [s, v]);
3843
- const [g, m] = L(), y = ({
3843
+ const [g, m] = F(), y = ({
3844
3844
  activeStartDate: p
3845
3845
  }) => {
3846
3846
  m(p);
@@ -3848,7 +3848,7 @@ const el = ({
3848
3848
  return /* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsxs("div", { className: "calendar", ref: u, children: [
3849
3849
  n && /* @__PURE__ */ i.jsx("div", { onClick: h, children: n }),
3850
3850
  !n && /* @__PURE__ */ i.jsx("button", { className: "calendar-button", onClick: h, children: /* @__PURE__ */ i.jsx(
3851
- F,
3851
+ L,
3852
3852
  {
3853
3853
  classIcon: " bi-calendar4-event",
3854
3854
  size: xe.EXTRA_LARGE
@@ -3861,7 +3861,7 @@ const el = ({
3861
3861
  onClick: () => l(!1),
3862
3862
  className: "calendar-popup-close",
3863
3863
  children: /* @__PURE__ */ i.jsx(
3864
- F,
3864
+ L,
3865
3865
  {
3866
3866
  classIcon: "bi-x-lg close-icon",
3867
3867
  size: xe.EXTRA_SMALL
@@ -3894,7 +3894,7 @@ const el = ({
3894
3894
  showArrow: n = !0,
3895
3895
  onChange: a
3896
3896
  }) => {
3897
- const [o, s] = L(!1);
3897
+ const [o, s] = F(!1);
3898
3898
  Q(() => {
3899
3899
  t && e && e.id === t.id ? o || s(!0) : s(!1);
3900
3900
  }, [e, s, t]);
@@ -3911,8 +3911,8 @@ const el = ({
3911
3911
  className: `expand ${o ? "expand--active" : ""} ${r ?? ""}`,
3912
3912
  children: [
3913
3913
  /* @__PURE__ */ i.jsx("div", { className: "expand-header", children: /* @__PURE__ */ i.jsx("div", { className: "expand-header-content", children: /* @__PURE__ */ i.jsxs("div", { className: "expand-header-content-default", children: [
3914
- o && n && /* @__PURE__ */ i.jsx(F, { classIcon: "bi bi-chevron-down mr-2" }),
3915
- !o && n && /* @__PURE__ */ i.jsx(F, { classIcon: "bi bi-chevron-right mr-2" }),
3914
+ o && n && /* @__PURE__ */ i.jsx(L, { classIcon: "bi bi-chevron-down mr-2" }),
3915
+ !o && n && /* @__PURE__ */ i.jsx(L, { classIcon: "bi bi-chevron-right mr-2" }),
3916
3916
  /* @__PURE__ */ i.jsx("span", { className: "flex-1 expand-header-title-left", children: t.title }),
3917
3917
  t.description && /* @__PURE__ */ i.jsx("span", { className: "expand-header-title-right", children: t.description })
3918
3918
  ] }) }) }),
@@ -3925,7 +3925,7 @@ const el = ({
3925
3925
  }
3926
3926
  );
3927
3927
  }, tl = (e) => {
3928
- const [t, r] = L(), n = A(
3928
+ const [t, r] = F(), n = A(
3929
3929
  (a) => {
3930
3930
  e.onChange && e.onChange(a), r(a);
3931
3931
  },
@@ -3989,7 +3989,7 @@ const el = ({
3989
3989
  hideSubmit: a,
3990
3990
  className: o
3991
3991
  }, s) => {
3992
- const [l, u] = L(() => {
3992
+ const [l, u] = F(() => {
3993
3993
  const f = {};
3994
3994
  return e.forEach((b) => {
3995
3995
  f[b.name] = b.value ?? "";
@@ -4050,7 +4050,7 @@ const el = ({
4050
4050
  className: `d-flex flex-column ${f.className} form-group-${f.type}`,
4051
4051
  children: [
4052
4052
  f.label && /* @__PURE__ */ i.jsx("label", { children: f.label }),
4053
- f.icon && /* @__PURE__ */ i.jsx(F, { classIcon: f.icon }),
4053
+ f.icon && /* @__PURE__ */ i.jsx(L, { classIcon: f.icon }),
4054
4054
  /* @__PURE__ */ i.jsx(
4055
4055
  "input",
4056
4056
  {
@@ -4063,6 +4063,7 @@ const el = ({
4063
4063
  disabled: D,
4064
4064
  autoFocus: f.focus ?? !1,
4065
4065
  required: S,
4066
+ step: f.step ?? "0.01",
4066
4067
  value: l && l[f.name],
4067
4068
  checked: f.type === "checkbox" ? !!l[f.name] : void 0,
4068
4069
  onChange: (P) => h(P, f),
@@ -4090,7 +4091,7 @@ const nl = ({
4090
4091
  cols: l,
4091
4092
  rows: u
4092
4093
  }) => {
4093
- const [d, h] = L(t);
4094
+ const [d, h] = F(t);
4094
4095
  Q(() => {
4095
4096
  h(t);
4096
4097
  }, [t]);
@@ -4149,12 +4150,12 @@ const nl = ({
4149
4150
  positionFixed: a,
4150
4151
  onClickLogo: o
4151
4152
  }) => {
4152
- const s = ye(null), [l, u] = L(!1), d = A(() => {
4153
+ const s = ye(null), [l, u] = F(!1), d = A(() => {
4153
4154
  u(!l);
4154
4155
  }, [l, u]);
4155
4156
  return /* @__PURE__ */ i.jsxs("div", { className: `header ${a ? "header--fixed" : ""}`, children: [
4156
4157
  /* @__PURE__ */ i.jsxs("div", { className: "flex-1 d-flex align-items-center", children: [
4157
- /* @__PURE__ */ i.jsx("span", { onClick: r, children: /* @__PURE__ */ i.jsx(F, { size: xe.MEDIUM, classIcon: "bi-list" }) }),
4158
+ /* @__PURE__ */ i.jsx("span", { onClick: r, children: /* @__PURE__ */ i.jsx(L, { size: xe.MEDIUM, classIcon: "bi-list" }) }),
4158
4159
  /* @__PURE__ */ i.jsx(
4159
4160
  "span",
4160
4161
  {
@@ -4166,7 +4167,7 @@ const nl = ({
4166
4167
  ] }),
4167
4168
  /* @__PURE__ */ i.jsxs("div", { className: "d-flex align-items-center", children: [
4168
4169
  e,
4169
- /* @__PURE__ */ i.jsx("div", { ref: s, onClick: d, children: /* @__PURE__ */ i.jsx(F, { size: xe.MEDIUM, classIcon: "bi-person-circle" }) }),
4170
+ /* @__PURE__ */ i.jsx("div", { ref: s, onClick: d, children: /* @__PURE__ */ i.jsx(L, { size: xe.MEDIUM, classIcon: "bi-person-circle" }) }),
4170
4171
  l && s.current && /* @__PURE__ */ i.jsx(
4171
4172
  Cn,
4172
4173
  {
@@ -4198,7 +4199,7 @@ const nl = ({
4198
4199
  children: [
4199
4200
  /* @__PURE__ */ i.jsxs("div", { className: "modal-header", children: [
4200
4201
  o && /* @__PURE__ */ i.jsx("h2", { className: "modal-title", children: o }),
4201
- /* @__PURE__ */ i.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ i.jsx(F, { classIcon: "bi-x-lg" }) })
4202
+ /* @__PURE__ */ i.jsx("div", { className: "modal-close-button", onClick: t, children: /* @__PURE__ */ i.jsx(L, { classIcon: "bi-x-lg" }) })
4202
4203
  ] }),
4203
4204
  /* @__PURE__ */ i.jsx("div", { className: "modal-content", children: r }),
4204
4205
  n && /* @__PURE__ */ i.jsx("div", { className: "d-flex justify-content-end", children: /* @__PURE__ */ i.jsx(Lt, { onClick: n, title: a ?? "" }) })
@@ -4215,7 +4216,7 @@ const nl = ({
4215
4216
  disabledMinus: o,
4216
4217
  pas: s
4217
4218
  }) => {
4218
- const [l, u] = L(s), d = A(
4219
+ const [l, u] = F(s), d = A(
4219
4220
  (m) => {
4220
4221
  n || (u(m), e && e(t, m));
4221
4222
  },
@@ -4254,7 +4255,7 @@ const nl = ({
4254
4255
  {
4255
4256
  onClick: (m) => v(m),
4256
4257
  className: `qte-action qte-action--minus ${n || o ? "disabled" : ""} `,
4257
- children: /* @__PURE__ */ i.jsx(F, { size: xe.LARGE, classIcon: "bi bi-dash-square" })
4258
+ children: /* @__PURE__ */ i.jsx(L, { size: xe.LARGE, classIcon: "bi bi-dash-square" })
4258
4259
  }
4259
4260
  ),
4260
4261
  /* @__PURE__ */ i.jsx("span", { onClick: (m) => g(m), className: "qte-label", children: l }),
@@ -4263,7 +4264,7 @@ const nl = ({
4263
4264
  {
4264
4265
  onClick: (m) => h(m),
4265
4266
  className: `qte-action qte-action--plus ${n || a ? "disabled" : ""}`,
4266
- children: /* @__PURE__ */ i.jsx(F, { size: xe.LARGE, classIcon: "bi bi-plus-square" })
4267
+ children: /* @__PURE__ */ i.jsx(L, { size: xe.LARGE, classIcon: "bi bi-plus-square" })
4267
4268
  }
4268
4269
  )
4269
4270
  ] });
@@ -4279,7 +4280,7 @@ const nl = ({
4279
4280
  setIsVisible: l,
4280
4281
  id: u
4281
4282
  }, d) => {
4282
- const [h, v] = L(n ?? !1), g = ye(null), m = ye(null), y = Ye(
4283
+ const [h, v] = F(n ?? !1), g = ye(null), m = ye(null), y = Ye(
4283
4284
  () => [
4284
4285
  {
4285
4286
  value: "",
@@ -4348,7 +4349,7 @@ const nl = ({
4348
4349
  {
4349
4350
  className: "toggle-btn",
4350
4351
  onClick: () => p(!1),
4351
- children: /* @__PURE__ */ i.jsx(F, { classIcon: "bi-x-lg" })
4352
+ children: /* @__PURE__ */ i.jsx(L, { classIcon: "bi-x-lg" })
4352
4353
  }
4353
4354
  ) }),
4354
4355
  /* @__PURE__ */ i.jsx("div", { className: "search-result-content", children: e })
@@ -4366,7 +4367,7 @@ const nl = ({
4366
4367
  closeOnClickOutside: l = !0,
4367
4368
  displayOverlay: u = !0
4368
4369
  }) => {
4369
- const [d, h] = L(e || !1), v = ye(null), g = ye(null);
4370
+ const [d, h] = F(e || !1), v = ye(null), g = ye(null);
4370
4371
  Q(() => (g.current || (g.current = document.createElement("div"), g.current.id = `sidebar-root-${o || crypto.randomUUID()}`, document.body.appendChild(g.current)), () => {
4371
4372
  g.current && g.current.parentNode && (document.body.removeChild(g.current), g.current = null);
4372
4373
  }), [o]), Q(() => {
@@ -4394,7 +4395,7 @@ const nl = ({
4394
4395
  children: [
4395
4396
  /* @__PURE__ */ i.jsxs("div", { className: "sidebar-header", children: [
4396
4397
  r && /* @__PURE__ */ i.jsx("h2", { className: "flex-1", children: r }),
4397
- /* @__PURE__ */ i.jsx("button", { className: "toggle-btn", onClick: m, children: /* @__PURE__ */ i.jsx(F, { classIcon: "bi-x-lg" }) })
4398
+ /* @__PURE__ */ i.jsx("button", { className: "toggle-btn", onClick: m, children: /* @__PURE__ */ i.jsx(L, { classIcon: "bi-x-lg" }) })
4398
4399
  ] }),
4399
4400
  t && t
4400
4401
  ]
@@ -4431,6 +4432,7 @@ const Sa = (e) => {
4431
4432
  severity: "info",
4432
4433
  visible: !1,
4433
4434
  duration: 2500,
4435
+ close: !0,
4434
4436
  children: null,
4435
4437
  showToast: (t, r = {}) => e(() => ({
4436
4438
  title: t,
@@ -4449,23 +4451,27 @@ const Sa = (e) => {
4449
4451
  visible: n,
4450
4452
  children: a,
4451
4453
  duration: o,
4452
- hideToast: s
4453
- } = Bc();
4454
+ hideToast: s,
4455
+ close: l
4456
+ } = Bc(), u = A(() => {
4457
+ s();
4458
+ }, [s]);
4454
4459
  if (Q(() => {
4455
4460
  if (!n) return;
4456
- const u = setTimeout(() => {
4461
+ const h = setTimeout(() => {
4457
4462
  s();
4458
4463
  }, o);
4459
- return () => clearTimeout(u);
4464
+ return () => clearTimeout(h);
4460
4465
  }, [n, o, s]), !n) return null;
4461
- const l = document.getElementById("toaster-root");
4462
- return l ? xn.createPortal(
4466
+ const d = document.getElementById("toaster-root");
4467
+ return d ? xn.createPortal(
4463
4468
  /* @__PURE__ */ i.jsxs("div", { className: `toaster toaster-${r}`, children: [
4469
+ l && /* @__PURE__ */ i.jsx("div", { className: "toaster--close", onClick: u, children: /* @__PURE__ */ i.jsx(L, { classIcon: "bi-x" }) }),
4464
4470
  /* @__PURE__ */ i.jsxs("div", { children: [
4465
- r === "info" && /* @__PURE__ */ i.jsx(F, { classIcon: "bi-info-circle" }),
4466
- r === "success" && /* @__PURE__ */ i.jsx(F, { classIcon: "bi-check-circle" }),
4467
- r === "error" && /* @__PURE__ */ i.jsx(F, { classIcon: "bi-x-circle" }),
4468
- r === "warning" && /* @__PURE__ */ i.jsx(F, { classIcon: "bi-exclamation-triangle" })
4471
+ r === "info" && /* @__PURE__ */ i.jsx(L, { classIcon: "bi-info-circle" }),
4472
+ r === "success" && /* @__PURE__ */ i.jsx(L, { classIcon: "bi-check-circle" }),
4473
+ r === "error" && /* @__PURE__ */ i.jsx(L, { classIcon: "bi-x-circle" }),
4474
+ r === "warning" && /* @__PURE__ */ i.jsx(L, { classIcon: "bi-exclamation-triangle" })
4469
4475
  ] }),
4470
4476
  /* @__PURE__ */ i.jsxs("div", { children: [
4471
4477
  /* @__PURE__ */ i.jsx("div", { className: `title title-${r}`, children: e }),
@@ -4473,7 +4479,7 @@ const Sa = (e) => {
4473
4479
  a
4474
4480
  ] })
4475
4481
  ] }),
4476
- l
4482
+ d
4477
4483
  ) : null;
4478
4484
  };
4479
4485
  export {
@@ -4491,7 +4497,7 @@ export {
4491
4497
  rl as FilAriane,
4492
4498
  al as Grid,
4493
4499
  ol as Header,
4494
- F as Icon,
4500
+ L as Icon,
4495
4501
  xe as IconSizeEnum,
4496
4502
  sa as Loader,
4497
4503
  _a as Menus,