master-components-react-ts 2.5.16 → 2.5.18

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.d.ts CHANGED
@@ -20,7 +20,7 @@ export { default as InlineLoading } from './components/InlineLoading/InlineLoadi
20
20
  export type { Loading, Success, Error } from './components/InlineLoading/InlineLoading.types';
21
21
  export { default as Slider } from './components/Slider/Slider';
22
22
  export { default as TreeNode } from './components/TreeNode/TreeNode';
23
- export type { TreeNodeDataType } from './components/TreeNode/TreeNode.types';
23
+ export type { TreeNodeDataType, TreeNodeProps } from './components/TreeNode/TreeNode.types';
24
24
  export { default as FilterWithTags } from './components/FilterWithTags/FilterWithTags';
25
25
  export type { FilterOptionsTypes } from './components/FilterWithTags/FilterWithTags.types';
26
26
  export { default as Table } from './components/Table/Table';
package/dist/index.js CHANGED
@@ -261,10 +261,10 @@ const ze = 50 / 2, Wt = ({ size: t = 24, strokeWidth: o = 5, linecap: l = "round
261
261
  spaceBetween: P = !1,
262
262
  customLoader: D,
263
263
  buttonStyle: g,
264
- mainButtonContentStyle: d,
264
+ mainButtonContentStyle: u,
265
265
  mainButtonLabelStyle: C,
266
266
  leftSlotStyle: L,
267
- rightSlotStyle: u,
267
+ rightSlotStyle: p,
268
268
  onClick: Z
269
269
  }) => {
270
270
  const [q, K] = V(b || !1), E = ae(null), ne = (Y) => {
@@ -289,10 +289,10 @@ const ze = 50 / 2, Wt = ({ size: t = 24, strokeWidth: o = 5, linecap: l = "round
289
289
  disabled: A,
290
290
  className: `${Le.mainButton} ${Le[o]} ${w ? Le.loading : ""} ${q ? Le.focused : ""} ${Le[n]} ${Le[a]} ${A ? Le.disabled : ""}`,
291
291
  onClick: ne,
292
- children: w ? D || /* @__PURE__ */ e(Wt, { size: 20, stroke: j() }) : s || /* @__PURE__ */ i("div", { className: Le.mainButtonContent, style: { ...d, justifyContent: P ? "space-between" : "center" }, children: [
292
+ children: w ? D || /* @__PURE__ */ e(Wt, { size: 20, stroke: j() }) : s || /* @__PURE__ */ i("div", { className: Le.mainButtonContent, style: { ...u, justifyContent: P ? "space-between" : "center" }, children: [
293
293
  l && /* @__PURE__ */ e("div", { className: Le.leftSlot, style: L, children: l }),
294
294
  /* @__PURE__ */ e("p", { className: Le.mainButtonLabel, style: C, children: t }),
295
- r && /* @__PURE__ */ e("div", { className: Le.rightSlot, style: u, children: r })
295
+ r && /* @__PURE__ */ e("div", { className: Le.rightSlot, style: p, children: r })
296
296
  ] })
297
297
  }
298
298
  );
@@ -359,10 +359,10 @@ const Co = "mc__FormInput-module__inputWrapper", go = "mc__FormInput-module__sm"
359
359
  helperSlot: P,
360
360
  type: D = "text",
361
361
  value: g,
362
- maxLength: d,
362
+ maxLength: u,
363
363
  forDropdown: C = !1,
364
364
  customFocus: L = null,
365
- inputState: u = { error: !1, success: !1, loading: !1 },
365
+ inputState: p = { error: !1, success: !1, loading: !1 },
366
366
  inputSlot: Z,
367
367
  onChange: q,
368
368
  onFocus: K,
@@ -404,7 +404,7 @@ const Co = "mc__FormInput-module__inputWrapper", go = "mc__FormInput-module__sm"
404
404
  /* @__PURE__ */ i(
405
405
  "div",
406
406
  {
407
- className: `${me.formInputWrapper} ${u.error ? me.errorState : ""} ${a && m ? u.error ? me.errorFocused : me.focused : ""} ${n && Q ? u.error ? me.errorActive : me.active : ""} ${u.error ? me.error : ""} ${u.success ? me.success : ""}`,
407
+ className: `${me.formInputWrapper} ${p.error ? me.errorState : ""} ${a && m ? p.error ? me.errorFocused : me.focused : ""} ${n && Q ? p.error ? me.errorActive : me.active : ""} ${p.error ? me.error : ""} ${p.success ? me.success : ""}`,
408
408
  style: Y ?? {},
409
409
  onClick: () => b && W((J) => !J),
410
410
  children: [
@@ -431,7 +431,7 @@ const Co = "mc__FormInput-module__inputWrapper", go = "mc__FormInput-module__sm"
431
431
  spellCheck: !1,
432
432
  placeholder: o ?? "",
433
433
  autoComplete: "off",
434
- maxLength: d
434
+ maxLength: u
435
435
  }
436
436
  ),
437
437
  A && /* @__PURE__ */ e("div", { style: v ? { cursor: "pointer" } : {}, className: me.formInputSlot, children: se(A) }),
@@ -443,7 +443,7 @@ const Co = "mc__FormInput-module__inputWrapper", go = "mc__FormInput-module__sm"
443
443
  "p",
444
444
  {
445
445
  style: z ?? {},
446
- className: `${me.formInputHelperText} ${u.error ? me.errorHelperText : u.success ? me.successHelperText : ""}`,
446
+ className: `${me.formInputHelperText} ${p.error ? me.errorHelperText : p.success ? me.successHelperText : ""}`,
447
447
  children: l
448
448
  }
449
449
  )
@@ -516,10 +516,10 @@ const Ro = "mc__Textarea-module__textareaContainer", Wo = "mc__Textarea-module__
516
516
  onFocus: P,
517
517
  onBlur: D,
518
518
  disabled: g,
519
- required: d,
519
+ required: u,
520
520
  textareaContainerStyle: C,
521
521
  textareaLabelStyle: L,
522
- requiredStyle: u,
522
+ requiredStyle: p,
523
523
  labelSlot: Z,
524
524
  textareaFooterStyle: q
525
525
  }) => {
@@ -572,7 +572,7 @@ const Ro = "mc__Textarea-module__textareaContainer", Wo = "mc__Textarea-module__
572
572
  children: [
573
573
  o && /* @__PURE__ */ i("div", { style: L, className: ye.textAreaLabel, children: [
574
574
  /* @__PURE__ */ e("p", { children: o }),
575
- /* @__PURE__ */ e("span", { style: u ?? {}, className: ye.required, children: d && "*" }),
575
+ /* @__PURE__ */ e("span", { style: p ?? {}, className: ye.required, children: u && "*" }),
576
576
  Z && O(Z)
577
577
  ] }),
578
578
  /* @__PURE__ */ i("div", { className: `${ye.wrap} ${b ? ye.resize : ""}`, ref: K, children: [
@@ -757,11 +757,11 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
757
757
  treeFooterStyle: P,
758
758
  treeFooterTextStyle: D,
759
759
  treeNodeStyle: g,
760
- labelRowStyle: d,
760
+ labelRowStyle: u,
761
761
  collapseToggleStyle: C,
762
762
  checkIndividualItems: L = !1
763
763
  }) => {
764
- const [u, Z] = V(t || []), q = (O, z, U = u) => U.map((k) => {
764
+ const [p, Z] = V(t || []), q = (O, z, U = p) => U.map((k) => {
765
765
  if (k.id === O) {
766
766
  if (L)
767
767
  return {
@@ -807,10 +807,10 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
807
807
  U.selected && z.push(U), U.children?.length && (z = [...z, ...j(U.children)]);
808
808
  }), z;
809
809
  }, Y = () => {
810
- const O = K(u, !1);
810
+ const O = K(p, !1);
811
811
  Z(O), s?.([]);
812
812
  }, te = () => {
813
- const O = K(u, !0);
813
+ const O = K(p, !0);
814
814
  Z(O);
815
815
  const z = j(O);
816
816
  s?.(z);
@@ -818,7 +818,7 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
818
818
  return ee(() => {
819
819
  Z(t || []);
820
820
  }, [t]), /* @__PURE__ */ i("div", { className: `${ke.treeNodeContainer}`, style: A, children: [
821
- /* @__PURE__ */ e("div", { className: `${ke.treeNodeItem} ${f ? ke.inDropDown : ""}`, style: w, children: u.map((O) => /* @__PURE__ */ e(
821
+ /* @__PURE__ */ e("div", { className: `${ke.treeNodeItem} ${f ? ke.inDropDown : ""}`, style: w, children: p.map((O) => /* @__PURE__ */ e(
822
822
  Dt,
823
823
  {
824
824
  node: O,
@@ -835,7 +835,7 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
835
835
  treeFooterStyle: P,
836
836
  treeFooterTextStyle: D,
837
837
  treeNodeStyle: g,
838
- labelRowStyle: d,
838
+ labelRowStyle: u,
839
839
  collapseToggleStyle: C,
840
840
  checkIndividualItems: L
841
841
  },
@@ -863,12 +863,12 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
863
863
  treeNodeStyle: P,
864
864
  labelRowStyle: D,
865
865
  collapseToggleStyle: g,
866
- checkIndividualItems: d
866
+ checkIndividualItems: u
867
867
  }) => {
868
868
  const C = a?.find((E) => E.id === t.id);
869
869
  v?.find((E) => E.id === t.id);
870
- const [L, u] = V(C ? !1 : l || !0), Z = () => {
871
- u((E) => !E), s?.(L, t);
870
+ const [L, p] = V(C ? !1 : l || !0), Z = () => {
871
+ p((E) => !E), s?.(L, t);
872
872
  }, q = () => {
873
873
  o?.(t.id, !t.selected);
874
874
  }, K = (E) => {
@@ -879,7 +879,7 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
879
879
  return !E || E.trim() === "" ? !0 : (Y(E, t), ne);
880
880
  };
881
881
  return ee(() => {
882
- n && u(!1);
882
+ n && p(!1);
883
883
  }, [n]), /* @__PURE__ */ i("div", { className: `${ke.treeNode} ${K(n) ? ke.visible : ke.hidden}`, style: P, children: [
884
884
  /* @__PURE__ */ i("div", { className: ke.labelRow, onClick: Z, style: D, children: [
885
885
  /* @__PURE__ */ e("div", { style: { display: "grid", placeItems: "center", marginLeft: `${f}rem` }, onClick: (E) => E.stopPropagation(), children: /* @__PURE__ */ e(Re, { checked: t?.selected ?? !1, change: q, ...r, withActive: !1 }) }),
@@ -916,7 +916,7 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
916
916
  treeNodeStyle: P,
917
917
  labelRowStyle: D,
918
918
  collapseToggleStyle: g,
919
- checkIndividualItems: d
919
+ checkIndividualItems: u
920
920
  },
921
921
  E.id
922
922
  )) })
@@ -938,10 +938,10 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
938
938
  onFocus: P,
939
939
  onBlur: D,
940
940
  onValueChange: g,
941
- onApply: d,
941
+ onApply: u,
942
942
  customInputSlot: C,
943
943
  dropdownWrapperStyle: L,
944
- dropdownInputWrapperStyle: u,
944
+ dropdownInputWrapperStyle: p,
945
945
  dropdownInputSlotStyle: Z,
946
946
  dropdownInputSlotItemStyle: q,
947
947
  dropdownInputSlotItemLabelStyle: K,
@@ -957,35 +957,35 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
957
957
  applyButtonProps: y = { label: "Apply" },
958
958
  ...h
959
959
  }) => {
960
- const [H, m] = V(!1), [W, Q] = V(""), [ce, le] = V(!1), [he, ie] = V(!1), [F, se] = V(!1), de = ae(null), J = ae(null), fe = ae(null), R = ae(null), [_, S] = V([]), N = ae([]), re = ae(0), [G, we] = V(""), [_e, ge] = V(null), Me = (p) => `https://flagsapi.com/${p}/flat/64.png`, Se = (p, x) => {
961
- p.forEach((oe) => {
962
- oe.selected = x.some((c) => c.id === oe.id), oe.children && Array.isArray(oe.children) && Se(oe.children, x);
960
+ const [H, m] = V(!1), [W, Q] = V(""), [ce, le] = V(!1), [he, ie] = V(!1), [F, se] = V(!1), de = ae(null), J = ae(null), fe = ae(null), R = ae(null), [_, S] = V([]), N = ae([]), re = ae(0), [G, we] = V(""), [_e, ge] = V(null), Me = (c) => `https://flagsapi.com/${c}/flat/64.png`, Se = (c, x) => {
961
+ c.forEach((oe) => {
962
+ oe.selected = x.some((d) => d.id === oe.id), oe.children && Array.isArray(oe.children) && Se(oe.children, x);
963
963
  });
964
- }, De = (p) => {
965
- let x = p.flatMap((oe) => [
964
+ }, De = (c) => {
965
+ let x;
966
+ U?.checkIndividualItems ? x = c : x = c.flatMap((oe) => [
966
967
  oe,
967
968
  // Include the parent item
968
969
  ...oe.children || []
969
970
  // Spread the children
970
- ]);
971
- x = at(x, "id"), Se(_, x), N.current = x, w?.(p), m((oe) => !oe);
972
- }, Pe = (p) => {
973
- if (p.selected = !p.selected, !s && !n) {
974
- w?.(p);
971
+ ]), x = at(x, "id"), Se(_, x), N.current = x, w?.(c), m((oe) => !oe);
972
+ }, Pe = (c) => {
973
+ if (c.selected = !c.selected, !s && !n) {
974
+ w?.(c);
975
975
  return;
976
976
  }
977
- N.current = [...N.current, ..._.filter((x) => x.selected == !0), ..._.filter((x) => x.id === p.id)], N.current = at(N.current, "id").filter((x) => x.selected).filter((x) => x.id !== "SELECT_ALL"), p.id === "SELECT_ALL" ? (le(p.selected), ie(!0)) : (le(!1), w?.(N.current), ie(!1)), m((x) => !x);
978
- }, Te = (p) => {
979
- ge(p), w?.(p), se(!1);
977
+ N.current = [...N.current, ..._.filter((x) => x.selected == !0), ..._.filter((x) => x.id === c.id)], N.current = at(N.current, "id").filter((x) => x.selected).filter((x) => x.id !== "SELECT_ALL"), c.id === "SELECT_ALL" ? (le(c.selected), ie(!0)) : (le(!1), w?.(N.current), ie(!1)), m((x) => !x);
978
+ }, Te = (c) => {
979
+ ge(c), w?.(c), se(!1);
980
980
  }, We = () => {
981
- d?.(), se(!1);
981
+ u?.(), se(!1);
982
982
  }, Be = () => {
983
983
  if (!J.current || !de.current) return;
984
- const p = J.current, x = de.current;
985
- if (!x || !p) return;
986
- const oe = p.getBoundingClientRect(), c = window.innerHeight, T = 16;
984
+ const c = J.current, x = de.current;
985
+ if (!x || !c) return;
986
+ const oe = c.getBoundingClientRect(), d = window.innerHeight, T = 16;
987
987
  x.style.width = oe.width + "px", x.style.position = "fixed", x.style.left = `${oe.left}px`, x.style.overflowY = "visible", x.style.maxHeight = "none";
988
- const I = c - oe.bottom - T, ue = oe.top - T;
988
+ const I = d - oe.bottom - T, ue = oe.top - T;
989
989
  I >= x.offsetHeight ? (x.style.top = `${oe.bottom + 8}px`, x.style.bottom = "unset") : ue >= x.offsetHeight ? (x.style.top = `${oe.top - x.offsetHeight - 8}px`, x.style.bottom = "unset") : I >= ue ? (x.style.top = `${oe.bottom + 8}px`, x.style.bottom = "unset", x.style.maxHeight = `${I - 8}px`, x.style.overflowY = "auto") : (x.style.top = `${T}px`, x.style.bottom = "unset", x.style.maxHeight = `${ue - 8}px`, x.style.overflowY = "auto");
990
990
  }, He = () => {
991
991
  requestAnimationFrame(() => {
@@ -999,43 +999,43 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
999
999
  S(t);
1000
1000
  return;
1001
1001
  }
1002
- const p = t?.some((oe) => "selected" in oe), x = v && s ? [{ id: "SELECT_ALL", label: "Select All", selected: ce }] : [];
1003
- p ? S([...x, ...t]) : (t?.forEach((oe) => {
1002
+ const c = t?.some((oe) => "selected" in oe), x = v && s ? [{ id: "SELECT_ALL", label: "Select All", selected: ce }] : [];
1003
+ c ? S([...x, ...t]) : (t?.forEach((oe) => {
1004
1004
  oe.selected = !1;
1005
1005
  }), S([...x, ...t])), He();
1006
1006
  }, [JSON.stringify(t)]), ee(() => {
1007
- !s && !n || t?.every((p) => p.selected) || le(!1);
1007
+ !s && !n || t?.every((c) => c.selected) || le(!1);
1008
1008
  }, [N.current.length]), ee(() => {
1009
- !s && !n && f && ge(t?.find((p) => p.id === f));
1009
+ !s && !n && f && ge(t?.find((c) => c.id === f));
1010
1010
  }, [f]), ee(() => {
1011
1011
  if (!(!s && !n) && _.length > 0 && he) {
1012
- const p = _.map((x) => x.id === "SELECT_ALL" ? { ...x, selected: ce } : x.disabled ? x : { ...x, selected: ce });
1013
- S(p), t?.forEach((x) => {
1012
+ const c = _.map((x) => x.id === "SELECT_ALL" ? { ...x, selected: ce } : x.disabled ? x : { ...x, selected: ce });
1013
+ S(c), t?.forEach((x) => {
1014
1014
  x.id === "SELECT_ALL" ? x.selected = ce : x.disabled || (x.selected = ce);
1015
- }), N.current = p.filter((x) => x.selected && x.id !== "SELECT_ALL"), w?.(N.current);
1015
+ }), N.current = c.filter((x) => x.selected && x.id !== "SELECT_ALL"), w?.(N.current);
1016
1016
  }
1017
1017
  }, [H]);
1018
- const qe = (p) => {
1019
- J.current && (p.composedPath().includes(J.current) || se(!1));
1020
- }, et = (p) => {
1021
- b && (!J.current || !de.current || p.composedPath().includes(J.current) || p.composedPath().includes(de.current) || se(!1));
1018
+ const qe = (c) => {
1019
+ J.current && (c.composedPath().includes(J.current) || se(!1));
1020
+ }, et = (c) => {
1021
+ b && (!J.current || !de.current || c.composedPath().includes(J.current) || c.composedPath().includes(de.current) || se(!1));
1022
1022
  };
1023
1023
  ee(() => {
1024
- const p = () => {
1024
+ const c = () => {
1025
1025
  F && He();
1026
1026
  };
1027
- return document.addEventListener("click", qe), document.addEventListener("wheel", et), window.addEventListener("scroll", p), () => {
1028
- document.removeEventListener("click", qe), document.removeEventListener("wheel", et), window.removeEventListener("scroll", p);
1027
+ return document.addEventListener("click", qe), document.addEventListener("wheel", et), window.addEventListener("scroll", c), () => {
1028
+ document.removeEventListener("click", qe), document.removeEventListener("wheel", et), window.removeEventListener("scroll", c);
1029
1029
  };
1030
1030
  }, [F]), ee(() => {
1031
1031
  if (!s && !n) return;
1032
- const p = () => {
1032
+ const c = () => {
1033
1033
  const x = J.current?.getBoundingClientRect();
1034
1034
  if (!x) return;
1035
1035
  const oe = x.width;
1036
1036
  oe <= 150 ? re.current = 0 : oe <= 250 ? re.current = 1 : oe <= 350 ? re.current = 2 : oe <= 450 ? re.current = 3 : re.current = 4;
1037
1037
  };
1038
- return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
1038
+ return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
1039
1039
  }, []);
1040
1040
  const tt = ae(!0);
1041
1041
  return ee(() => {
@@ -1050,18 +1050,18 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
1050
1050
  {
1051
1051
  ref: J,
1052
1052
  className: pe.dropdownInputWrapper,
1053
- style: u ?? {},
1054
- onClick: () => (se((p) => !p), He()),
1053
+ style: p ?? {},
1054
+ onClick: () => (se((c) => !c), He()),
1055
1055
  children: /* @__PURE__ */ e(
1056
1056
  Ze,
1057
1057
  {
1058
1058
  ...h,
1059
- onFocusChange: (p) => se(p),
1059
+ onFocusChange: (c) => se(c),
1060
1060
  customFocus: F,
1061
1061
  withActive: !1,
1062
1062
  value: a ? W : _e?.label ?? "",
1063
- onChange: (p) => {
1064
- Q(p), g?.(p);
1063
+ onChange: (c) => {
1064
+ Q(c), g?.(c);
1065
1065
  },
1066
1066
  toggleFocus: !0,
1067
1067
  formInputStyle: { cursor: a ? "text" : "pointer" },
@@ -1073,8 +1073,8 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
1073
1073
  l && (a ? W : !s && !n && _e) && /* @__PURE__ */ e(
1074
1074
  "div",
1075
1075
  {
1076
- onClick: (p) => {
1077
- p.stopPropagation(), a ? (Q(""), se(!1), g?.("")) : (ge(null), w?.(null));
1076
+ onClick: (c) => {
1077
+ c.stopPropagation(), a ? (Q(""), se(!1), g?.("")) : (ge(null), w?.(null));
1078
1078
  },
1079
1079
  className: pe.dropdownRightIconClose,
1080
1080
  children: /* @__PURE__ */ e(nt, {})
@@ -1086,7 +1086,7 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
1086
1086
  forDropdown: !0,
1087
1087
  inputSlotStyle: { width: "100%", placeItems: A ? "initial" : "center" },
1088
1088
  inputSlot: A || ((n || s) && N.current.length > 0 ? C || /* @__PURE__ */ i("ul", { className: pe.dropdownInputSlot, style: Z ?? {}, children: [
1089
- N.current.slice(0, re.current).map((p, x) => /* @__PURE__ */ i(
1089
+ N.current.slice(0, re.current).map((c, x) => /* @__PURE__ */ i(
1090
1090
  "li",
1091
1091
  {
1092
1092
  ref: R,
@@ -1094,14 +1094,14 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
1094
1094
  style: q ?? {},
1095
1095
  onClick: n ? void 0 : (oe) => oe.stopPropagation(),
1096
1096
  children: [
1097
- /* @__PURE__ */ e("div", { title: p.label, className: pe.dropdownInputSlotItemLabel, style: K ?? {}, children: typeof p.customLabel == "function" ? p.customLabel(p) : p.label }),
1097
+ /* @__PURE__ */ e("div", { title: c.label, className: pe.dropdownInputSlotItemLabel, style: K ?? {}, children: typeof c.customLabel == "function" ? c.customLabel(c) : c.label }),
1098
1098
  !n && /* @__PURE__ */ e(
1099
1099
  "div",
1100
1100
  {
1101
1101
  style: E ?? {},
1102
1102
  className: pe.dropdownInputSlotItemClose,
1103
1103
  onClick: (oe) => {
1104
- oe.stopPropagation(), Pe(p);
1104
+ oe.stopPropagation(), Pe(c);
1105
1105
  },
1106
1106
  children: /* @__PURE__ */ e(Et, { width: "16", height: "16", viewBox: "0 0 16 16", stroke: "#95969C" })
1107
1107
  }
@@ -1116,7 +1116,7 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
1116
1116
  )
1117
1117
  }
1118
1118
  ),
1119
- t && t.length > 0 && F && /* @__PURE__ */ i("div", { ref: de, onClick: (p) => p.stopPropagation(), className: pe.dropdownListContainer, children: [
1119
+ t && t.length > 0 && F && /* @__PURE__ */ i("div", { ref: de, onClick: (c) => c.stopPropagation(), className: pe.dropdownListContainer, children: [
1120
1120
  o && /* @__PURE__ */ e(
1121
1121
  Ze,
1122
1122
  {
@@ -1125,7 +1125,7 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
1125
1125
  withFocus: !1,
1126
1126
  withActive: !1,
1127
1127
  value: G,
1128
- onChange: (p) => we(p)
1128
+ onChange: (c) => we(c)
1129
1129
  }
1130
1130
  ),
1131
1131
  n ? /* @__PURE__ */ e(
@@ -1133,45 +1133,45 @@ const un = "mc__Dropdown-module__dropdownWrapper", pn = "mc__Dropdown-module__dr
1133
1133
  {
1134
1134
  SearchValue: G,
1135
1135
  data: t,
1136
- onSelect: (p) => De(p),
1137
- onCollapse: (p, x) => {
1138
- He(), U?.onCollapse?.(p, x);
1136
+ onSelect: (c) => De(c),
1137
+ onCollapse: (c, x) => {
1138
+ He(), U?.onCollapse?.(c, x);
1139
1139
  },
1140
1140
  ...U
1141
1141
  }
1142
- ) : /* @__PURE__ */ e("ul", { onClick: (p) => p.stopPropagation(), className: pe.dropdownList, ref: fe, style: z ?? {}, children: _.filter((p) => p?.label?.toLowerCase().includes(G.toLowerCase())).map((p, x) => /* @__PURE__ */ i(
1142
+ ) : /* @__PURE__ */ e("ul", { onClick: (c) => c.stopPropagation(), className: pe.dropdownList, ref: fe, style: z ?? {}, children: _.filter((c) => c?.label?.toLowerCase().includes(G.toLowerCase())).map((c, x) => /* @__PURE__ */ i(
1143
1143
  "li",
1144
1144
  {
1145
- style: { ...j, cursor: !s && !n && p?.disabled ? "not-allowed" : "pointer" },
1146
- className: `${pe.dropdownItem} ${!s && !n && _e?.id === p.id ? pe.selected : ""} ${!p?.label || p.label === void 0 || r || p?.disabled ? pe.disabled : ""} ${!s && !n && !p?.disabled ? pe.hovered : ""}`,
1145
+ style: { ...j, cursor: !s && !n && c?.disabled ? "not-allowed" : "pointer" },
1146
+ className: `${pe.dropdownItem} ${!s && !n && _e?.id === c.id ? pe.selected : ""} ${!c?.label || c.label === void 0 || r || c?.disabled ? pe.disabled : ""} ${!s && !n && !c?.disabled ? pe.hovered : ""}`,
1147
1147
  onClick: (oe) => {
1148
- oe.stopPropagation(), !s && !n && !p?.disabled && Te(p);
1148
+ oe.stopPropagation(), !s && !n && !c?.disabled && Te(c);
1149
1149
  },
1150
1150
  children: [
1151
- (s || n) && !p.noCheckbox && /* @__PURE__ */ e("div", { className: pe.itemCheckbox, style: te ?? {}, children: /* @__PURE__ */ e(
1151
+ (s || n) && !c.noCheckbox && /* @__PURE__ */ e("div", { className: pe.itemCheckbox, style: te ?? {}, children: /* @__PURE__ */ e(
1152
1152
  Re,
1153
1153
  {
1154
- multipleChecked: p.id === "SELECT_ALL",
1155
- disabled: r || p?.disabled,
1156
- checked: p?.selected,
1157
- change: () => Pe(p)
1154
+ multipleChecked: c.id === "SELECT_ALL",
1155
+ disabled: r || c?.disabled,
1156
+ checked: c?.selected,
1157
+ change: () => Pe(c)
1158
1158
  }
1159
1159
  ) }),
1160
1160
  /* @__PURE__ */ i("div", { className: pe.dropdownItemLabel, style: Y ?? {}, children: [
1161
1161
  a ? /* @__PURE__ */ i("div", { className: pe.dropdownItemLabelInput, children: [
1162
- /* @__PURE__ */ e("img", { src: Me(p.code), style: { width: "1.375rem", height: "1.375rem", objectFit: "contain" }, alt: p.name }),
1163
- /* @__PURE__ */ e("span", { title: p.name, className: pe.countryName, children: p.name || p.label }),
1164
- /* @__PURE__ */ e("span", { className: pe.countryDialCode, children: B === "country" ? p.dialCode : p?.label })
1162
+ /* @__PURE__ */ e("img", { src: Me(c.code), style: { width: "1.375rem", height: "1.375rem", objectFit: "contain" }, alt: c.name }),
1163
+ /* @__PURE__ */ e("span", { title: c.name, className: pe.countryName, children: c.name || c.label }),
1164
+ /* @__PURE__ */ e("span", { className: pe.countryDialCode, children: B === "country" ? c.dialCode : c?.label })
1165
1165
  ] }) : /* @__PURE__ */ e(
1166
1166
  "p",
1167
1167
  {
1168
- title: typeof p.label == "string" ? p.label : "",
1169
- className: `${p.id === "SELECT_ALL" ? pe.selectAll : ""}`,
1168
+ title: typeof c.label == "string" ? c.label : "",
1169
+ className: `${c.id === "SELECT_ALL" ? pe.selectAll : ""}`,
1170
1170
  style: O ?? {},
1171
- children: typeof p.customLabel == "function" ? p.customLabel(p) : p.label
1171
+ children: typeof c.customLabel == "function" ? c.customLabel(c) : c.label
1172
1172
  }
1173
1173
  ),
1174
- (s || n) && /* @__PURE__ */ e("p", { children: p.id === "SELECT_ALL" ? `${_.filter((oe) => oe.id !== "SELECT_ALL" && oe.selected).length}/${t.length}` : "" })
1174
+ (s || n) && /* @__PURE__ */ e("p", { children: c.id === "SELECT_ALL" ? `${_.filter((oe) => oe.id !== "SELECT_ALL" && oe.selected).length}/${t.length}` : "" })
1175
1175
  ] })
1176
1176
  ]
1177
1177
  },
@@ -1258,10 +1258,10 @@ const Kn = "mc__Tooltip-module__tooltipContainer", qn = "mc__Tooltip-module__too
1258
1258
  pointerPosition: P = "10%",
1259
1259
  withPointer: D = !1,
1260
1260
  theme: g,
1261
- topCustomOffset: d = 0,
1261
+ topCustomOffset: u = 0,
1262
1262
  bottomCustomOffset: C = 0,
1263
1263
  leftCustomOffset: L = 0,
1264
- rightCustomOffset: u = 0,
1264
+ rightCustomOffset: p = 0,
1265
1265
  forceClose: Z = !1,
1266
1266
  onClick: q
1267
1267
  }) => {
@@ -1293,24 +1293,24 @@ const Kn = "mc__Tooltip-module__tooltipContainer", qn = "mc__Tooltip-module__too
1293
1293
  let ie, F;
1294
1294
  switch (r) {
1295
1295
  case "top":
1296
- ie = m.top - W.height - 8 + d - C, F = m.left + L - u;
1296
+ ie = m.top - W.height - 8 + u - C, F = m.left + L - p;
1297
1297
  const se = le(ie, F);
1298
- se.fitsTop || (ie = m.bottom + 8 + C - d), se.fitsLeft ? se.fitsRight || (F = Q - W.width) : F = 0, he(ie, F);
1298
+ se.fitsTop || (ie = m.bottom + 8 + C - u), se.fitsLeft ? se.fitsRight || (F = Q - W.width) : F = 0, he(ie, F);
1299
1299
  break;
1300
1300
  case "bottom":
1301
- ie = m.bottom + 8 + C - d, F = m.left + L - u;
1301
+ ie = m.bottom + 8 + C - u, F = m.left + L - p;
1302
1302
  const de = le(ie, F);
1303
- de.fitsBottom || (ie = m.top - W.height - 8 + d - C), de.fitsLeft ? de.fitsRight || (F = Q - W.width) : F = 0, he(ie, F);
1303
+ de.fitsBottom || (ie = m.top - W.height - 8 + u - C), de.fitsLeft ? de.fitsRight || (F = Q - W.width) : F = 0, he(ie, F);
1304
1304
  break;
1305
1305
  case "left":
1306
- ie = m.top + d - C, F = m.left - W.width - 8 + L - u;
1306
+ ie = m.top + u - C, F = m.left - W.width - 8 + L - p;
1307
1307
  const J = le(ie, F);
1308
- J.fitsLeft || (F = m.right + 8 + u - L), J.fitsTop ? J.fitsBottom || (ie = ce - W.height) : ie = 0, he(ie, F);
1308
+ J.fitsLeft || (F = m.right + 8 + p - L), J.fitsTop ? J.fitsBottom || (ie = ce - W.height) : ie = 0, he(ie, F);
1309
1309
  break;
1310
1310
  case "right":
1311
- ie = m.top + d - C, F = m.right + 8 + u - L;
1311
+ ie = m.top + u - C, F = m.right + 8 + p - L;
1312
1312
  const fe = le(ie, F);
1313
- fe.fitsRight || (F = m.left - W.width - 8 + L - u), fe.fitsTop ? fe.fitsBottom || (ie = ce - W.height) : ie = 0, he(ie, F);
1313
+ fe.fitsRight || (F = m.left - W.width - 8 + L - p), fe.fitsTop ? fe.fitsBottom || (ie = ce - W.height) : ie = 0, he(ie, F);
1314
1314
  break;
1315
1315
  }
1316
1316
  };
@@ -1522,10 +1522,10 @@ const dl = "mc__NotificationToast-module__toastContainer", ul = "mc__Notificatio
1522
1522
  }) => {
1523
1523
  const [w, P] = V("fadeIn");
1524
1524
  ee(() => {
1525
- const g = v, d = 300, C = setTimeout(() => {
1525
+ const g = v, u = 300, C = setTimeout(() => {
1526
1526
  P("fadeOut"), setTimeout(() => {
1527
1527
  A?.();
1528
- }, d);
1528
+ }, u);
1529
1529
  }, g);
1530
1530
  return () => {
1531
1531
  clearTimeout(C);
@@ -1649,73 +1649,73 @@ var Pt = { exports: {} };
1649
1649
  (function(l, r) {
1650
1650
  t.exports = r();
1651
1651
  })(Yl, function() {
1652
- var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, s = /\d/, f = /\d\d/, a = /\d\d?/, n = /\d*[^-_:/,()\s\d]+/, v = {}, B = function(d) {
1653
- return (d = +d) + (d > 68 ? 1900 : 2e3);
1654
- }, b = function(d) {
1652
+ var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, s = /\d/, f = /\d\d/, a = /\d\d?/, n = /\d*[^-_:/,()\s\d]+/, v = {}, B = function(u) {
1653
+ return (u = +u) + (u > 68 ? 1900 : 2e3);
1654
+ }, b = function(u) {
1655
1655
  return function(C) {
1656
- this[d] = +C;
1656
+ this[u] = +C;
1657
1657
  };
1658
- }, A = [/[+-]\d\d:?(\d\d)?|Z/, function(d) {
1658
+ }, A = [/[+-]\d\d:?(\d\d)?|Z/, function(u) {
1659
1659
  (this.zone || (this.zone = {})).offset = function(C) {
1660
1660
  if (!C || C === "Z") return 0;
1661
- var L = C.match(/([+-]|\d\d)/g), u = 60 * L[1] + (+L[2] || 0);
1662
- return u === 0 ? 0 : L[0] === "+" ? -u : u;
1663
- }(d);
1664
- }], w = function(d) {
1665
- var C = v[d];
1661
+ var L = C.match(/([+-]|\d\d)/g), p = 60 * L[1] + (+L[2] || 0);
1662
+ return p === 0 ? 0 : L[0] === "+" ? -p : p;
1663
+ }(u);
1664
+ }], w = function(u) {
1665
+ var C = v[u];
1666
1666
  return C && (C.indexOf ? C : C.s.concat(C.f));
1667
- }, P = function(d, C) {
1668
- var L, u = v.meridiem;
1669
- if (u) {
1670
- for (var Z = 1; Z <= 24; Z += 1) if (d.indexOf(u(Z, 0, C)) > -1) {
1667
+ }, P = function(u, C) {
1668
+ var L, p = v.meridiem;
1669
+ if (p) {
1670
+ for (var Z = 1; Z <= 24; Z += 1) if (u.indexOf(p(Z, 0, C)) > -1) {
1671
1671
  L = Z > 12;
1672
1672
  break;
1673
1673
  }
1674
- } else L = d === (C ? "pm" : "PM");
1674
+ } else L = u === (C ? "pm" : "PM");
1675
1675
  return L;
1676
- }, D = { A: [n, function(d) {
1677
- this.afternoon = P(d, !1);
1678
- }], a: [n, function(d) {
1679
- this.afternoon = P(d, !0);
1680
- }], Q: [s, function(d) {
1681
- this.month = 3 * (d - 1) + 1;
1682
- }], S: [s, function(d) {
1683
- this.milliseconds = 100 * +d;
1684
- }], SS: [f, function(d) {
1685
- this.milliseconds = 10 * +d;
1686
- }], SSS: [/\d{3}/, function(d) {
1687
- this.milliseconds = +d;
1688
- }], s: [a, b("seconds")], ss: [a, b("seconds")], m: [a, b("minutes")], mm: [a, b("minutes")], H: [a, b("hours")], h: [a, b("hours")], HH: [a, b("hours")], hh: [a, b("hours")], D: [a, b("day")], DD: [f, b("day")], Do: [n, function(d) {
1689
- var C = v.ordinal, L = d.match(/\d+/);
1690
- if (this.day = L[0], C) for (var u = 1; u <= 31; u += 1) C(u).replace(/\[|\]/g, "") === d && (this.day = u);
1691
- }], w: [a, b("week")], ww: [f, b("week")], M: [a, b("month")], MM: [f, b("month")], MMM: [n, function(d) {
1692
- var C = w("months"), L = (w("monthsShort") || C.map(function(u) {
1693
- return u.slice(0, 3);
1694
- })).indexOf(d) + 1;
1676
+ }, D = { A: [n, function(u) {
1677
+ this.afternoon = P(u, !1);
1678
+ }], a: [n, function(u) {
1679
+ this.afternoon = P(u, !0);
1680
+ }], Q: [s, function(u) {
1681
+ this.month = 3 * (u - 1) + 1;
1682
+ }], S: [s, function(u) {
1683
+ this.milliseconds = 100 * +u;
1684
+ }], SS: [f, function(u) {
1685
+ this.milliseconds = 10 * +u;
1686
+ }], SSS: [/\d{3}/, function(u) {
1687
+ this.milliseconds = +u;
1688
+ }], s: [a, b("seconds")], ss: [a, b("seconds")], m: [a, b("minutes")], mm: [a, b("minutes")], H: [a, b("hours")], h: [a, b("hours")], HH: [a, b("hours")], hh: [a, b("hours")], D: [a, b("day")], DD: [f, b("day")], Do: [n, function(u) {
1689
+ var C = v.ordinal, L = u.match(/\d+/);
1690
+ if (this.day = L[0], C) for (var p = 1; p <= 31; p += 1) C(p).replace(/\[|\]/g, "") === u && (this.day = p);
1691
+ }], w: [a, b("week")], ww: [f, b("week")], M: [a, b("month")], MM: [f, b("month")], MMM: [n, function(u) {
1692
+ var C = w("months"), L = (w("monthsShort") || C.map(function(p) {
1693
+ return p.slice(0, 3);
1694
+ })).indexOf(u) + 1;
1695
1695
  if (L < 1) throw new Error();
1696
1696
  this.month = L % 12 || L;
1697
- }], MMMM: [n, function(d) {
1698
- var C = w("months").indexOf(d) + 1;
1697
+ }], MMMM: [n, function(u) {
1698
+ var C = w("months").indexOf(u) + 1;
1699
1699
  if (C < 1) throw new Error();
1700
1700
  this.month = C % 12 || C;
1701
- }], Y: [/[+-]?\d+/, b("year")], YY: [f, function(d) {
1702
- this.year = B(d);
1701
+ }], Y: [/[+-]?\d+/, b("year")], YY: [f, function(u) {
1702
+ this.year = B(u);
1703
1703
  }], YYYY: [/\d{4}/, b("year")], Z: A, ZZ: A };
1704
- function g(d) {
1704
+ function g(u) {
1705
1705
  var C, L;
1706
- C = d, L = v && v.formats;
1707
- for (var u = (d = C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(Y, te, O) {
1706
+ C = u, L = v && v.formats;
1707
+ for (var p = (u = C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(Y, te, O) {
1708
1708
  var z = O && O.toUpperCase();
1709
1709
  return te || L[O] || l[O] || L[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(U, k, y) {
1710
1710
  return k || y.slice(1);
1711
1711
  });
1712
- })).match(r), Z = u.length, q = 0; q < Z; q += 1) {
1713
- var K = u[q], E = D[K], ne = E && E[0], j = E && E[1];
1714
- u[q] = j ? { regex: ne, parser: j } : K.replace(/^\[|\]$/g, "");
1712
+ })).match(r), Z = p.length, q = 0; q < Z; q += 1) {
1713
+ var K = p[q], E = D[K], ne = E && E[0], j = E && E[1];
1714
+ p[q] = j ? { regex: ne, parser: j } : K.replace(/^\[|\]$/g, "");
1715
1715
  }
1716
1716
  return function(Y) {
1717
1717
  for (var te = {}, O = 0, z = 0; O < Z; O += 1) {
1718
- var U = u[O];
1718
+ var U = p[O];
1719
1719
  if (typeof U == "string") z += U.length;
1720
1720
  else {
1721
1721
  var k = U.regex, y = U.parser, h = Y.slice(z), H = k.exec(h)[0];
@@ -1731,10 +1731,10 @@ var Pt = { exports: {} };
1731
1731
  }(te), te;
1732
1732
  };
1733
1733
  }
1734
- return function(d, C, L) {
1735
- L.p.customParseFormat = !0, d && d.parseTwoDigitYear && (B = d.parseTwoDigitYear);
1736
- var u = C.prototype, Z = u.parse;
1737
- u.parse = function(q) {
1734
+ return function(u, C, L) {
1735
+ L.p.customParseFormat = !0, u && u.parseTwoDigitYear && (B = u.parseTwoDigitYear);
1736
+ var p = C.prototype, Z = p.parse;
1737
+ p.parse = function(q) {
1738
1738
  var K = q.date, E = q.utc, ne = q.args;
1739
1739
  this.$u = E;
1740
1740
  var j = ne[1];
@@ -1780,7 +1780,7 @@ const _t = ({
1780
1780
  onBlur: v,
1781
1781
  ...B
1782
1782
  }) => {
1783
- const b = ae(null), A = ae(null), [w, P] = V(!1), [D, g] = V(o), d = Array.from({ length: 12 }, (y, h) => h < 10 ? `0${h}` : `${h}`), C = Array.from({ length: 24 }, (y, h) => h < 10 ? `0${h}` : `${h}`), L = Array.from({ length: 60 }, (y, h) => h < 10 ? `0${h}` : `${h}`), [u, Z] = V(""), [q, K] = V(null), [E, ne] = V(null), [j, Y] = V(l), te = () => {
1783
+ const b = ae(null), A = ae(null), [w, P] = V(!1), [D, g] = V(o), u = Array.from({ length: 12 }, (y, h) => h < 10 ? `0${h}` : `${h}`), C = Array.from({ length: 24 }, (y, h) => h < 10 ? `0${h}` : `${h}`), L = Array.from({ length: 60 }, (y, h) => h < 10 ? `0${h}` : `${h}`), [p, Z] = V(""), [q, K] = V(null), [E, ne] = V(null), [j, Y] = V(l), te = () => {
1784
1784
  if (!b.current || !A.current) return;
1785
1785
  const y = b.current, h = A.current;
1786
1786
  if (!h || !y) return;
@@ -1830,11 +1830,11 @@ const _t = ({
1830
1830
  onFocusChange: (y) => P(y),
1831
1831
  customFocus: w,
1832
1832
  withActive: !1,
1833
- value: u,
1833
+ value: p,
1834
1834
  toggleFocus: !0,
1835
1835
  formInputStyle: { cursor: "pointer" },
1836
1836
  rightSlot: /* @__PURE__ */ i("div", { className: `${Ce.dropdownRightIcon} ${w ? Ce.focused : ""}`, children: [
1837
- u && /* @__PURE__ */ e(
1837
+ p && /* @__PURE__ */ e(
1838
1838
  "div",
1839
1839
  {
1840
1840
  onClick: (y) => {
@@ -1874,14 +1874,14 @@ const _t = ({
1874
1874
  )
1875
1875
  ] }) }),
1876
1876
  /* @__PURE__ */ i("div", { className: Ce.timepickerDropdownBody, children: [
1877
- /* @__PURE__ */ e("div", { className: Ce.timepickerDropdownBodyHours, children: (D === "12" ? d : C).map((y) => /* @__PURE__ */ e("p", { className: E === y || u?.split(":")[0] === y ? Ce.active : "", onClick: () => ne(y), children: y }, y)) }),
1878
- /* @__PURE__ */ e("div", { className: Ce.timepickerDropdownBodyMinutes, children: L.map((y) => /* @__PURE__ */ e("p", { className: q === y || u?.split(":")[1] === y ? Ce.active : "", onClick: () => K(y), children: y }, y)) }),
1877
+ /* @__PURE__ */ e("div", { className: Ce.timepickerDropdownBodyHours, children: (D === "12" ? u : C).map((y) => /* @__PURE__ */ e("p", { className: E === y || p?.split(":")[0] === y ? Ce.active : "", onClick: () => ne(y), children: y }, y)) }),
1878
+ /* @__PURE__ */ e("div", { className: Ce.timepickerDropdownBodyMinutes, children: L.map((y) => /* @__PURE__ */ e("p", { className: q === y || p?.split(":")[1] === y ? Ce.active : "", onClick: () => K(y), children: y }, y)) }),
1879
1879
  D === "12" && /* @__PURE__ */ i("div", { className: Ce.timepickerDropdownBodyAmPm, children: [
1880
1880
  /* @__PURE__ */ e("p", { className: j === "AM" ? Ce.active : "", onClick: () => Y("AM"), children: "AM" }, "AM"),
1881
1881
  /* @__PURE__ */ e("p", { className: j === "PM" ? Ce.active : "", onClick: () => Y("PM"), children: "PM" }, "PM")
1882
1882
  ] })
1883
1883
  ] }),
1884
- r && /* @__PURE__ */ e("div", { className: Ce.timepickerDropdownFooter, children: /* @__PURE__ */ e($e, { label: "Confirm time", onClick: () => a?.(u) }) })
1884
+ r && /* @__PURE__ */ e("div", { className: Ce.timepickerDropdownFooter, children: /* @__PURE__ */ e($e, { label: "Confirm time", onClick: () => a?.(p) }) })
1885
1885
  ] })
1886
1886
  ] });
1887
1887
  };
@@ -1939,10 +1939,10 @@ const xr = ({
1939
1939
  setRangeSelection: P,
1940
1940
  pickerType: D,
1941
1941
  disabledDatesRange: g,
1942
- disabledDatesTill: d,
1942
+ disabledDatesTill: u,
1943
1943
  disabledDatesFrom: C,
1944
1944
  CalendarRef: L,
1945
- defaultValue: u,
1945
+ defaultValue: p,
1946
1946
  selectedStyle: Z,
1947
1947
  endDateStyle: q,
1948
1948
  startDateStyle: K,
@@ -2105,7 +2105,7 @@ const xr = ({
2105
2105
  s(r.subtract(1, "year"));
2106
2106
  };
2107
2107
  return ee(() => {
2108
- u?.state && (Array.isArray(u?.value) ? P({ start: $(u?.value[0], t), end: $(u?.value[1], t) }) : F($(u.value), !1, !0), u.state = !1);
2108
+ p?.state && (Array.isArray(p?.value) ? P({ start: $(p?.value[0], t), end: $(p?.value[1], t) }) : F($(p.value), !1, !0), p.state = !1);
2109
2109
  }, []), /* @__PURE__ */ e(
2110
2110
  "div",
2111
2111
  {
@@ -2161,7 +2161,7 @@ const xr = ({
2161
2161
  /* @__PURE__ */ i("tbody", { children: [
2162
2162
  /* @__PURE__ */ e("tr", { className: X.spacerRow, children: /* @__PURE__ */ e("td", {}) }),
2163
2163
  Q.map((R, _) => /* @__PURE__ */ e("tr", { children: R.map(({ date: S, currentMonth: N }, re) => {
2164
- const G = w.start && w.end && S.isAfter(w.start, "day") && S.isBefore(w.end, "day"), we = w.start && S.isSame(w.start, "day"), _e = w.end && S.isSame(w.end, "day"), ge = A === "single" && f && S.isSame(f, "day"), Me = d && S.isBefore($(d), "day"), Se = C && S.isAfter($(C), "day");
2164
+ const G = w.start && w.end && S.isAfter(w.start, "day") && S.isBefore(w.end, "day"), we = w.start && S.isSame(w.start, "day"), _e = w.end && S.isSame(w.end, "day"), ge = A === "single" && f && S.isSame(f, "day"), Me = u && S.isBefore($(u), "day"), Se = C && S.isAfter($(C), "day");
2165
2165
  let De = !1;
2166
2166
  if (g?.length === 2) {
2167
2167
  const [Te, We] = g.map((Be) => $(Be));
@@ -2200,7 +2200,7 @@ const xr = ({
2200
2200
  D === "dual" && /* @__PURE__ */ i("table", { children: [
2201
2201
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: z.map((R) => /* @__PURE__ */ e("th", { style: Y ?? {}, children: R }, R)) }) }),
2202
2202
  /* @__PURE__ */ e("tbody", { children: ce?.map((R, _) => /* @__PURE__ */ e("tr", { children: R.map(({ date: S, currentMonth: N }, re) => {
2203
- const G = w.start && w.end && S.isAfter(w.start, "day") && S.isBefore(w.end, "day"), we = w.start && S.isSame(w.start, "day"), _e = w.end && S.isSame(w.end, "day"), ge = A === "single" && f && S.isSame(f, "day"), Me = d && S.isBefore($(d), "day"), Se = C && S.isAfter($(C), "day");
2203
+ const G = w.start && w.end && S.isAfter(w.start, "day") && S.isBefore(w.end, "day"), we = w.start && S.isSame(w.start, "day"), _e = w.end && S.isSame(w.end, "day"), ge = A === "single" && f && S.isSame(f, "day"), Me = u && S.isBefore($(u), "day"), Se = C && S.isAfter($(C), "day");
2204
2204
  let De = !1;
2205
2205
  if (g?.length === 2) {
2206
2206
  const [Te, We] = g.map((Be) => $(Be));
@@ -2256,10 +2256,10 @@ const Ct = ({
2256
2256
  requiredStyle: P,
2257
2257
  datepickerHelperTextStyle: D,
2258
2258
  selectedStyle: g,
2259
- endDateStyle: d,
2259
+ endDateStyle: u,
2260
2260
  startDateStyle: C,
2261
2261
  inRangeStyle: L,
2262
- otherMonthStyle: u,
2262
+ otherMonthStyle: p,
2263
2263
  todayStyle: Z,
2264
2264
  weekDayStyle: q,
2265
2265
  quickPickStyle: K,
@@ -2356,10 +2356,10 @@ const Ct = ({
2356
2356
  setRangeSelection: ie,
2357
2357
  pickerType: Y,
2358
2358
  selectedStyle: g,
2359
- endDateStyle: d,
2359
+ endDateStyle: u,
2360
2360
  startDateStyle: C,
2361
2361
  inRangeStyle: L,
2362
- otherMonthStyle: u,
2362
+ otherMonthStyle: p,
2363
2363
  todayStyle: Z,
2364
2364
  weekDayStyle: q,
2365
2365
  quickPickStyle: K,
@@ -2424,10 +2424,10 @@ const Dr = "mc__ActionDropdown-module__actionDropdownContainer", Sr = "mc__Actio
2424
2424
  B(g), r?.(g), f(!1);
2425
2425
  }, A = () => {
2426
2426
  if (!a.current || !n.current) return;
2427
- const g = a.current, d = n.current;
2428
- if (!d || !g) return;
2427
+ const g = a.current, u = n.current;
2428
+ if (!u || !g) return;
2429
2429
  const C = g.getBoundingClientRect(), L = window.innerHeight;
2430
- d.style.width = C.width + "px", d.style.position = "fixed", C.bottom + d.offsetHeight > L ? (d.style.top = `${C.top - d.offsetHeight - 8}px`, d.style.bottom = "unset") : (d.style.top = `${C.bottom + 8}px`, d.style.bottom = "unset");
2430
+ u.style.width = C.width + "px", u.style.position = "fixed", C.bottom + u.offsetHeight > L ? (u.style.top = `${C.top - u.offsetHeight - 8}px`, u.style.bottom = "unset") : (u.style.top = `${C.bottom + 8}px`, u.style.bottom = "unset");
2431
2431
  }, w = () => {
2432
2432
  requestAnimationFrame(() => {
2433
2433
  A();
@@ -2456,8 +2456,8 @@ const Dr = "mc__ActionDropdown-module__actionDropdownContainer", Sr = "mc__Actio
2456
2456
  s && /* @__PURE__ */ e("ul", { ref: n, onClick: (g) => g.stopPropagation(), className: Ae.actionDropdownList, children: o.map((g) => /* @__PURE__ */ e(
2457
2457
  "li",
2458
2458
  {
2459
- onClick: (d) => {
2460
- d.stopPropagation(), b(g);
2459
+ onClick: (u) => {
2460
+ u.stopPropagation(), b(g);
2461
2461
  },
2462
2462
  className: `${Ae.actionDropdownItem} ${v?.id === g.id ? Ae.selected : ""}`,
2463
2463
  children: g.label
@@ -2555,7 +2555,7 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
2555
2555
  thumbStyle: A,
2556
2556
  unit: w
2557
2557
  }) => {
2558
- const P = ae(!0), D = f || o !== void 0 && l !== void 0, [g, d] = V({
2558
+ const P = ae(!0), D = f || o !== void 0 && l !== void 0, [g, u] = V({
2559
2559
  minValue: o ?? r,
2560
2560
  maxValue: l ?? s,
2561
2561
  singleValue: t ?? r
@@ -2563,7 +2563,7 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
2563
2563
  min: !1,
2564
2564
  max: !1,
2565
2565
  single: !1
2566
- }), [u, Z] = V({
2566
+ }), [p, Z] = V({
2567
2567
  min: !1,
2568
2568
  max: !1,
2569
2569
  single: !1
@@ -2574,7 +2574,7 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
2574
2574
  y.preventDefault(), Z((m) => ({ ...m, [k]: !0 })), L((m) => ({ ...m, [k]: !0 }));
2575
2575
  const h = (m) => {
2576
2576
  const W = Y(m.clientX);
2577
- d((Q) => k === "single" ? { ...Q, singleValue: W } : k === "min" ? { ...Q, minValue: Math.min(W, Q.maxValue - 1) } : { ...Q, maxValue: Math.max(W, Q.minValue + 1) });
2577
+ u((Q) => k === "single" ? { ...Q, singleValue: W } : k === "min" ? { ...Q, minValue: Math.min(W, Q.maxValue - 1) } : { ...Q, maxValue: Math.max(W, Q.minValue + 1) });
2578
2578
  }, H = () => {
2579
2579
  Z((m) => ({ ...m, [k]: !1 })), L((m) => ({ ...m, [k]: !1 })), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", H);
2580
2580
  };
@@ -2583,9 +2583,9 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
2583
2583
  const y = Y(k.clientX);
2584
2584
  if (D) {
2585
2585
  const h = Math.abs(y - g.minValue), H = Math.abs(y - g.maxValue), m = h < H ? "min" : "max";
2586
- d((W) => m === "min" ? { ...W, minValue: Math.min(y, W.maxValue - 1) } : { ...W, maxValue: Math.max(y, W.minValue + 1) }), te(m)(k);
2586
+ u((W) => m === "min" ? { ...W, minValue: Math.min(y, W.maxValue - 1) } : { ...W, maxValue: Math.max(y, W.minValue + 1) }), te(m)(k);
2587
2587
  } else
2588
- d((h) => ({ ...h, singleValue: y })), te("single")(k);
2588
+ u((h) => ({ ...h, singleValue: y })), te("single")(k);
2589
2589
  }, z = D ? {
2590
2590
  left: `${(g.minValue - r) / (s - r) * 100}%`,
2591
2591
  width: `${(g.maxValue - g.minValue) / (s - r) * 100}%`
@@ -2611,8 +2611,8 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
2611
2611
  y.style.setProperty("--arrow-position", W);
2612
2612
  };
2613
2613
  return ee(() => {
2614
- (C.min || u.min) && U(E), (C.max || u.max) && U(ne), (C.single || u.single) && U(j);
2615
- }, [g, C, u]), ee(() => {
2614
+ (C.min || p.min) && U(E), (C.max || p.max) && U(ne), (C.single || p.single) && U(j);
2615
+ }, [g, C, p]), ee(() => {
2616
2616
  if (P.current) {
2617
2617
  P.current = !1;
2618
2618
  return;
@@ -2629,10 +2629,10 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
2629
2629
  left: `${(g.minValue - r) / (s - r) * 100}%`,
2630
2630
  ...A ?? {}
2631
2631
  },
2632
- onMouseEnter: () => !u.min && L((k) => ({ ...k, min: !0 })),
2633
- onMouseLeave: () => !u.min && L((k) => ({ ...k, min: !1 })),
2632
+ onMouseEnter: () => !p.min && L((k) => ({ ...k, min: !0 })),
2633
+ onMouseLeave: () => !p.min && L((k) => ({ ...k, min: !1 })),
2634
2634
  onMouseDown: te("min"),
2635
- children: (C.min || u.min) && /* @__PURE__ */ i("div", { ref: E, className: be.tooltip, children: [
2635
+ children: (C.min || p.min) && /* @__PURE__ */ i("div", { ref: E, className: be.tooltip, children: [
2636
2636
  g.minValue,
2637
2637
  "%"
2638
2638
  ] })
@@ -2646,10 +2646,10 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
2646
2646
  left: `${(g.maxValue - r) / (s - r) * 100}%`,
2647
2647
  ...A ?? {}
2648
2648
  },
2649
- onMouseEnter: () => !u.max && L((k) => ({ ...k, max: !0 })),
2650
- onMouseLeave: () => !u.max && L((k) => ({ ...k, max: !1 })),
2649
+ onMouseEnter: () => !p.max && L((k) => ({ ...k, max: !0 })),
2650
+ onMouseLeave: () => !p.max && L((k) => ({ ...k, max: !1 })),
2651
2651
  onMouseDown: te("max"),
2652
- children: (C.max || u.max) && /* @__PURE__ */ i("div", { ref: ne, className: be.tooltip, children: [
2652
+ children: (C.max || p.max) && /* @__PURE__ */ i("div", { ref: ne, className: be.tooltip, children: [
2653
2653
  g.maxValue,
2654
2654
  "%"
2655
2655
  ] })
@@ -2663,10 +2663,10 @@ const zr = "mc__Slider-module__sliderContainer", Ur = "mc__Slider-module__slider
2663
2663
  left: `${(g.singleValue - r) / (s - r) * 100}%`,
2664
2664
  ...A ?? {}
2665
2665
  },
2666
- onMouseEnter: () => !u.single && L((k) => ({ ...k, single: !0 })),
2667
- onMouseLeave: () => !u.single && L((k) => ({ ...k, single: !1 })),
2666
+ onMouseEnter: () => !p.single && L((k) => ({ ...k, single: !0 })),
2667
+ onMouseLeave: () => !p.single && L((k) => ({ ...k, single: !1 })),
2668
2668
  onMouseDown: te("single"),
2669
- children: (C.single || u.single) && /* @__PURE__ */ i("div", { ref: j, className: be.tooltip, children: [
2669
+ children: (C.single || p.single) && /* @__PURE__ */ i("div", { ref: j, className: be.tooltip, children: [
2670
2670
  g.singleValue,
2671
2671
  " ",
2672
2672
  w
@@ -2808,24 +2808,24 @@ function Ve() {
2808
2808
  }
2809
2809
  const os = (t, o, l = {}) => {
2810
2810
  const [r, s] = V(() => {
2811
- const d = {};
2811
+ const u = {};
2812
2812
  return o.forEach((C) => {
2813
- C.key && C.customWidth && (d[C.key] = typeof C.customWidth == "number" ? C.customWidth : parseInt(C.customWidth.toString(), 10));
2814
- }), d;
2813
+ C.key && C.customWidth && (u[C.key] = typeof C.customWidth == "number" ? C.customWidth : parseInt(C.customWidth.toString(), 10));
2814
+ }), u;
2815
2815
  }), [f, a] = V(!1), [n, v] = V(null), [B, b] = V(0), [A, w] = V(0), P = ot(
2816
- (d, C) => {
2817
- console.log("Resize start for column:", C), d.preventDefault(), d.stopPropagation();
2818
- const L = d.target.closest("th"), u = L ? L.offsetWidth : r[C];
2819
- a(!0), v(C), b(d.clientX), w(u || 0);
2816
+ (u, C) => {
2817
+ console.log("Resize start for column:", C), u.preventDefault(), u.stopPropagation();
2818
+ const L = u.target.closest("th"), p = L ? L.offsetWidth : r[C];
2819
+ a(!0), v(C), b(u.clientX), w(p || 0);
2820
2820
  },
2821
2821
  [r]
2822
2822
  ), D = ot(
2823
- (d) => {
2823
+ (u) => {
2824
2824
  if (!f || !n) return;
2825
- d.preventDefault();
2826
- const C = d.clientX - B, L = Math.max(50, A + C);
2827
- console.log("Resizing column:", n, "new width:", L), s((u) => ({
2828
- ...u,
2825
+ u.preventDefault();
2826
+ const C = u.clientX - B, L = Math.max(50, A + C);
2827
+ console.log("Resizing column:", n, "new width:", L), s((p) => ({
2828
+ ...p,
2829
2829
  [n]: L
2830
2830
  }));
2831
2831
  },
@@ -2918,11 +2918,11 @@ const kt = ({
2918
2918
  actionButtons: P,
2919
2919
  withColumnConfiguration: D = !1,
2920
2920
  headerSlot: g,
2921
- onColumnOrderChange: d,
2921
+ onColumnOrderChange: u,
2922
2922
  onColumnVisibilityChange: C,
2923
2923
  withActions: L = !1,
2924
2924
  // Pagination props
2925
- currentPage: u = 0,
2925
+ currentPage: p = 0,
2926
2926
  totalPages: Z = 1,
2927
2927
  onPageChange: q,
2928
2928
  showPagination: K = !1,
@@ -2942,62 +2942,62 @@ const kt = ({
2942
2942
  }) => {
2943
2943
  const { columnWidths: H, isResizing: m, resizeColumn: W, handleResizeStart: Q } = os(
2944
2944
  l,
2945
- o.map((c) => ({ ...c, customWidth: c.customWidth }))
2945
+ o.map((d) => ({ ...d, customWidth: d.customWidth }))
2946
2946
  ), ce = ae(null), [le, he] = V(null), [ie, F] = V(null), se = ae({}), de = ae(null), J = ae(null), [fe, R] = V(!1), [_, S] = V(null), [N, re] = V(null), [G, we] = V(o);
2947
2947
  ee(() => {
2948
- const c = o.map((T) => ({
2948
+ const d = o.map((T) => ({
2949
2949
  ...T,
2950
2950
  visible: T.visible !== void 0 ? T.visible : !0,
2951
2951
  sortable: T.sortable !== void 0 ? T.sortable : !0,
2952
2952
  customWidth: T?.customWidth || 500
2953
2953
  }));
2954
- we(c);
2954
+ we(d);
2955
2955
  }, [o]);
2956
- const _e = (c, T) => {
2957
- S(T), c.dataTransfer.effectAllowed = "move", c.dataTransfer.setData("text/html", c.currentTarget.outerHTML);
2958
- }, ge = (c, T) => {
2959
- c.preventDefault(), c.dataTransfer.dropEffect = "move", T !== _ && re(T);
2956
+ const _e = (d, T) => {
2957
+ S(T), d.dataTransfer.effectAllowed = "move", d.dataTransfer.setData("text/html", d.currentTarget.outerHTML);
2958
+ }, ge = (d, T) => {
2959
+ d.preventDefault(), d.dataTransfer.dropEffect = "move", T !== _ && re(T);
2960
2960
  }, Me = () => {
2961
2961
  re(null);
2962
- }, Se = (c, T) => {
2963
- if (c.preventDefault(), _ === null || _ === T) {
2962
+ }, Se = (d, T) => {
2963
+ if (d.preventDefault(), _ === null || _ === T) {
2964
2964
  S(null), re(null);
2965
2965
  return;
2966
2966
  }
2967
2967
  const I = [...G], ue = I[_];
2968
2968
  I.splice(_, 1);
2969
2969
  const Ie = _ < T ? T - 1 : T;
2970
- I.splice(Ie, 0, ue), we(I), S(null), re(null), d?.(I);
2970
+ I.splice(Ie, 0, ue), we(I), S(null), re(null), u?.(I);
2971
2971
  }, De = () => {
2972
2972
  S(null), re(null);
2973
- }, Pe = (c) => {
2974
- const T = G.map((I) => I.key === c.key ? { ...I, visible: !I.visible } : I);
2973
+ }, Pe = (d) => {
2974
+ const T = G.map((I) => I.key === d.key ? { ...I, visible: !I.visible } : I);
2975
2975
  we(T), C?.(T);
2976
- }, Te = G.filter((c) => c.visible), We = (c) => {
2976
+ }, Te = G.filter((d) => d.visible), We = (d) => {
2977
2977
  const T = l.map((I) => I[t]);
2978
- if (c) {
2978
+ if (d) {
2979
2979
  const I = [.../* @__PURE__ */ new Set([...n, ...T])];
2980
2980
  v?.(I);
2981
2981
  } else {
2982
2982
  const I = n.filter((ue) => !T.includes(ue));
2983
2983
  v?.(I);
2984
2984
  }
2985
- }, Be = (c, T, I = null) => {
2986
- v?.(T ? [...n, c] : n.filter((ue) => ue !== c), I);
2987
- }, He = l.map((c) => c[t]), qe = l.length > 0 && He.every((c) => n.includes(c)), et = He.some((c) => n.includes(c)) && !qe, tt = (c, T) => {
2988
- k?.(c, T);
2989
- }, p = (c, T) => {
2990
- y?.(c, T);
2991
- }, x = (c) => {
2992
- const T = se.current[c];
2985
+ }, Be = (d, T, I = null) => {
2986
+ v?.(T ? [...n, d] : n.filter((ue) => ue !== d), I);
2987
+ }, He = l.map((d) => d[t]), qe = l.length > 0 && He.every((d) => n.includes(d)), et = He.some((d) => n.includes(d)) && !qe, tt = (d, T) => {
2988
+ k?.(d, T);
2989
+ }, c = (d, T) => {
2990
+ y?.(d, T);
2991
+ }, x = (d) => {
2992
+ const T = se.current[d];
2993
2993
  if (!T) return null;
2994
2994
  const I = T.getBoundingClientRect(), ue = window.innerHeight, Ie = window.innerWidth, Ne = 120, it = 120;
2995
2995
  let Xe = I.right - it - 50;
2996
2996
  Xe < 0 && (Xe = I.left), Xe + it > Ie && (Xe = Ie - it - 10);
2997
2997
  const At = ue - I.bottom, Rt = I.top, xt = At < Ne && Rt >= Ne;
2998
2998
  return { top: xt ? I.top - Ne + 8 : I.bottom + 4, left: Xe, shouldOpenUpward: xt };
2999
- }, oe = (c, T) => {
3000
- if (c.stopPropagation(), le === T)
2999
+ }, oe = (d, T) => {
3000
+ if (d.stopPropagation(), le === T)
3001
3001
  he(null), F(null);
3002
3002
  else {
3003
3003
  he(T);
@@ -3006,7 +3006,7 @@ const kt = ({
3006
3006
  }
3007
3007
  };
3008
3008
  return ee(() => {
3009
- const c = (ue) => {
3009
+ const d = (ue) => {
3010
3010
  (!ue.target || !ue.target.closest(`.${M.actionsCell}`)) && (he(null), F(null));
3011
3011
  }, T = () => {
3012
3012
  if (le !== null) {
@@ -3019,22 +3019,22 @@ const kt = ({
3019
3019
  F(ue);
3020
3020
  }
3021
3021
  };
3022
- return document.addEventListener("click", c), window.addEventListener("scroll", T, !0), window.addEventListener("resize", I), () => {
3023
- document.removeEventListener("click", c), window.removeEventListener("scroll", T, !0), window.removeEventListener("resize", I);
3022
+ return document.addEventListener("click", d), window.addEventListener("scroll", T, !0), window.addEventListener("resize", I), () => {
3023
+ document.removeEventListener("click", d), window.removeEventListener("scroll", T, !0), window.removeEventListener("resize", I);
3024
3024
  };
3025
3025
  }, [le]), ee(() => {
3026
- const c = (T) => {
3026
+ const d = (T) => {
3027
3027
  fe && de.current && J.current && !de.current.contains(T.target) && !J.current.contains(T.target) && R(!1);
3028
3028
  };
3029
- return document.addEventListener("click", c), () => {
3030
- document.removeEventListener("click", c);
3029
+ return document.addEventListener("click", d), () => {
3030
+ document.removeEventListener("click", d);
3031
3031
  };
3032
3032
  }, [fe]), /* @__PURE__ */ i("div", { className: M.tableContainer, children: [
3033
3033
  (g || D) && /* @__PURE__ */ i("div", { className: M.gridHeader, children: [
3034
3034
  /* @__PURE__ */ e("div", { children: g }),
3035
3035
  D && /* @__PURE__ */ i("div", { className: M.columnConfiguration, children: [
3036
- /* @__PURE__ */ e("div", { className: M.columnConfigurationIcon, ref: de, onClick: () => R((c) => !c), children: /* @__PURE__ */ e(Xt, {}) }),
3037
- fe && /* @__PURE__ */ e("ul", { className: M.columnConfigurationDropdown, ref: J, children: G.map((c, T) => /* @__PURE__ */ i(
3036
+ /* @__PURE__ */ e("div", { className: M.columnConfigurationIcon, ref: de, onClick: () => R((d) => !d), children: /* @__PURE__ */ e(Xt, {}) }),
3037
+ fe && /* @__PURE__ */ e("ul", { className: M.columnConfigurationDropdown, ref: J, children: G.map((d, T) => /* @__PURE__ */ i(
3038
3038
  "li",
3039
3039
  {
3040
3040
  className: `${M.columnConfigurationItem} ${_ === T ? M.dragging : ""} ${N === T ? M.dragOver : ""}`,
@@ -3046,11 +3046,11 @@ const kt = ({
3046
3046
  onDragEnd: De,
3047
3047
  children: [
3048
3048
  /* @__PURE__ */ e("div", { className: M.columnConfigurationItemIcon, children: /* @__PURE__ */ e(Jt, {}) }),
3049
- /* @__PURE__ */ e("div", { className: M.columnConfigurationItemCheckbox, onClick: (I) => I.stopPropagation(), children: /* @__PURE__ */ e(Re, { checked: c.visible, change: () => Pe(c) }) }),
3050
- /* @__PURE__ */ e("p", { children: c.label })
3049
+ /* @__PURE__ */ e("div", { className: M.columnConfigurationItemCheckbox, onClick: (I) => I.stopPropagation(), children: /* @__PURE__ */ e(Re, { checked: d.visible, change: () => Pe(d) }) }),
3050
+ /* @__PURE__ */ e("p", { children: d.label })
3051
3051
  ]
3052
3052
  },
3053
- c.key || c.id || T
3053
+ d.key || d.id || T
3054
3054
  )) })
3055
3055
  ] })
3056
3056
  ] }),
@@ -3066,10 +3066,10 @@ const kt = ({
3066
3066
  " rows selected"
3067
3067
  ] }),
3068
3068
  /* @__PURE__ */ e("div", { className: M.tableHeaderSeparator }),
3069
- Array.isArray(P) && P.length > 0 ? P.map((c, T) => /* @__PURE__ */ i("div", { className: M.actionButton, onClick: () => c.onClick?.(n), children: [
3070
- c.text,
3071
- c.icon
3072
- ] }, c.text || T)) : /* @__PURE__ */ i("div", { className: M.actionButton, onClick: () => w?.(n), children: [
3069
+ Array.isArray(P) && P.length > 0 ? P.map((d, T) => /* @__PURE__ */ i("div", { className: M.actionButton, onClick: () => d.onClick?.(n), children: [
3070
+ d.text,
3071
+ d.icon
3072
+ ] }, d.text || T)) : /* @__PURE__ */ i("div", { className: M.actionButton, onClick: () => w?.(n), children: [
3073
3073
  b || "Delete",
3074
3074
  A && A
3075
3075
  ] })
@@ -3088,17 +3088,17 @@ const kt = ({
3088
3088
  B && /* @__PURE__ */ e("th", { className: M.checkboxHeader, children: /* @__PURE__ */ e(
3089
3089
  Re,
3090
3090
  {
3091
- ref: (c) => {
3092
- c && (c.indeterminate = et);
3091
+ ref: (d) => {
3092
+ d && (d.indeterminate = et);
3093
3093
  },
3094
3094
  checked: qe,
3095
- change: (c) => We(c)
3095
+ change: (d) => We(d)
3096
3096
  }
3097
3097
  ) }),
3098
- Te.map((c) => /* @__PURE__ */ i("th", { style: { width: H[c.key], position: "relative" }, children: [
3099
- /* @__PURE__ */ i("div", { className: M.headerContent, onClick: c.sortable ? () => s?.(c.key) : void 0, children: [
3100
- c.label,
3101
- f && c.sortable && a?.[0]?.selector !== c.key && a?.[1]?.selector !== c.key && /* @__PURE__ */ i("svg", { width: "13", height: "13", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3098
+ Te.map((d) => /* @__PURE__ */ i("th", { style: { width: H[d.key], position: "relative" }, children: [
3099
+ /* @__PURE__ */ i("div", { className: M.headerContent, onClick: d.sortable ? () => s?.(d.key) : void 0, children: [
3100
+ d.label,
3101
+ f && d.sortable && a?.[0]?.selector !== d.key && a?.[1]?.selector !== d.key && /* @__PURE__ */ i("svg", { width: "13", height: "13", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3102
3102
  /* @__PURE__ */ e(
3103
3103
  "path",
3104
3104
  {
@@ -3136,7 +3136,7 @@ const kt = ({
3136
3136
  }
3137
3137
  )
3138
3138
  ] }),
3139
- a?.[0]?.selector === c.key && (a[0].desc ? /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3139
+ a?.[0]?.selector === d.key && (a[0].desc ? /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3140
3140
  /* @__PURE__ */ e(
3141
3141
  "path",
3142
3142
  {
@@ -3180,12 +3180,12 @@ const kt = ({
3180
3180
  "div",
3181
3181
  {
3182
3182
  className: Ve(M.resizeHandle, {
3183
- [M.resizing]: m && W === c.key
3183
+ [M.resizing]: m && W === d.key
3184
3184
  }),
3185
- onMouseDown: (T) => Q(T, c.key)
3185
+ onMouseDown: (T) => Q(T, d.key)
3186
3186
  }
3187
3187
  )
3188
- ] }, c.key)),
3188
+ ] }, d.key)),
3189
3189
  L && /* @__PURE__ */ e("th", { className: M.actionsHeader, children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
3190
3190
  "path",
3191
3191
  {
@@ -3194,18 +3194,18 @@ const kt = ({
3194
3194
  }
3195
3195
  ) }) })
3196
3196
  ] }) }),
3197
- /* @__PURE__ */ e("tbody", { children: l.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: B ? Te.length + 2 : Te.length + 1, className: M.empty, children: "No data available" }) }) : l.map((c, T) => /* @__PURE__ */ i(
3197
+ /* @__PURE__ */ e("tbody", { children: l.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: B ? Te.length + 2 : Te.length + 1, className: M.empty, children: "No data available" }) }) : l.map((d, T) => /* @__PURE__ */ i(
3198
3198
  "tr",
3199
3199
  {
3200
3200
  className: Ve({ [M.clickable]: !!r }),
3201
3201
  onClick: (I) => {
3202
- I.target.type !== "checkbox" && !I.target.closest(`.${M.actionsCell}`) && r?.(c, T);
3202
+ I.target.type !== "checkbox" && !I.target.closest(`.${M.actionsCell}`) && r?.(d, T);
3203
3203
  },
3204
3204
  children: [
3205
- B && /* @__PURE__ */ e("td", { className: M.checkboxCell, onClick: (I) => I.stopPropagation(), children: /* @__PURE__ */ e(Re, { checked: n.includes(c[t]), change: (I) => Be(c[t], I, c) }) }),
3205
+ B && /* @__PURE__ */ e("td", { className: M.checkboxCell, onClick: (I) => I.stopPropagation(), children: /* @__PURE__ */ e(Re, { checked: n.includes(d[t]), change: (I) => Be(d[t], I, d) }) }),
3206
3206
  Te.map((I) => {
3207
- const ue = typeof I.rowTooltipProps == "function" ? I.rowTooltipProps(c) : I.rowTooltipProps;
3208
- return /* @__PURE__ */ e("td", { style: { width: H[I.key] }, children: /* @__PURE__ */ e(lt, { ...ue, tooltipContainerStyle: { width: H[I.key] }, text: ue?.text || "", children: /* @__PURE__ */ e("div", { style: { width: "100%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: I.render ? I.render(c) : c[I.key] }) }) }, I.key);
3207
+ const ue = typeof I.rowTooltipProps == "function" ? I.rowTooltipProps(d) : I.rowTooltipProps;
3208
+ return /* @__PURE__ */ e("td", { style: { width: H[I.key] }, children: /* @__PURE__ */ e(lt, { ...ue, tooltipContainerStyle: { width: H[I.key] }, text: ue?.text || "", children: /* @__PURE__ */ e("div", { style: { width: "100%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: I.render ? I.render(d) : d[I.key] }) }) }, I.key);
3209
3209
  }),
3210
3210
  L && /* @__PURE__ */ e("td", { className: M.actionsCell, children: /* @__PURE__ */ e(
3211
3211
  "div",
@@ -3261,8 +3261,8 @@ const kt = ({
3261
3261
  "div",
3262
3262
  {
3263
3263
  className: M.actionItem,
3264
- onClick: (c) => {
3265
- c.stopPropagation(), tt(l[le], le), he(null), F(null);
3264
+ onClick: (d) => {
3265
+ d.stopPropagation(), tt(l[le], le), he(null), F(null);
3266
3266
  },
3267
3267
  children: [
3268
3268
  /* @__PURE__ */ e("svg", { width: "23", height: "23", viewBox: "0 0 23 23", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { transform: "scale(0.7)" }, children: /* @__PURE__ */ e(
@@ -3284,8 +3284,8 @@ const kt = ({
3284
3284
  {
3285
3285
  className: M.actionItem,
3286
3286
  style: { color: "#E3292F" },
3287
- onClick: (c) => {
3288
- c.stopPropagation(), p(l[le], le), he(null), F(null);
3287
+ onClick: (d) => {
3288
+ d.stopPropagation(), c(l[le], le), he(null), F(null);
3289
3289
  },
3290
3290
  children: [
3291
3291
  /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
@@ -3326,16 +3326,16 @@ const kt = ({
3326
3326
  ]
3327
3327
  }
3328
3328
  ),
3329
- h.map((c, T) => /* @__PURE__ */ i(
3329
+ h.map((d, T) => /* @__PURE__ */ i(
3330
3330
  "div",
3331
3331
  {
3332
3332
  className: M.actionItem,
3333
3333
  onClick: (I) => {
3334
- I.stopPropagation(), c.onClick?.(l[le], le), he(null), F(null);
3334
+ I.stopPropagation(), d.onClick?.(l[le], le), he(null), F(null);
3335
3335
  },
3336
3336
  children: [
3337
- c.icon && /* @__PURE__ */ e("div", { children: c.icon }),
3338
- c.text
3337
+ d.icon && /* @__PURE__ */ e("div", { children: d.icon }),
3338
+ d.text
3339
3339
  ]
3340
3340
  },
3341
3341
  T
@@ -3345,7 +3345,7 @@ const kt = ({
3345
3345
  ),
3346
3346
  K && /* @__PURE__ */ i("div", { className: M.paginationFooter, children: [
3347
3347
  /* @__PURE__ */ e("div", { className: M.pagination, style: E === "numbered" ? { maxWidth: "400px", gap: "6px" } : {}, children: E === "numbered" ? /* @__PURE__ */ i(st, { children: [
3348
- /* @__PURE__ */ e("button", { className: M.paginationButton, onClick: () => q?.(Math.max(u - 1, 0)), disabled: u === 0, children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { transform: "rotate(180deg)" }, children: /* @__PURE__ */ e(
3348
+ /* @__PURE__ */ e("button", { className: M.paginationButton, onClick: () => q?.(Math.max(p - 1, 0)), disabled: p === 0, children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { transform: "rotate(180deg)" }, children: /* @__PURE__ */ e(
3349
3349
  "path",
3350
3350
  {
3351
3351
  d: "M12.6008 12.0047L8.70078 8.10469C8.51745 7.92135 8.42578 7.68802 8.42578 7.40469C8.42578 7.12135 8.51745 6.88802 8.70078 6.70469C8.88411 6.52135 9.11745 6.42969 9.40078 6.42969C9.68411 6.42969 9.91745 6.52135 10.1008 6.70469L14.7008 11.3047C14.8008 11.4047 14.8716 11.513 14.9133 11.6297C14.9549 11.7464 14.9758 11.8714 14.9758 12.0047C14.9758 12.138 14.9549 12.263 14.9133 12.3797C14.8716 12.4964 14.8008 12.6047 14.7008 12.7047L10.1008 17.3047C9.91745 17.488 9.68411 17.5797 9.40078 17.5797C9.11745 17.5797 8.88411 17.488 8.70078 17.3047C8.51745 17.1214 8.42578 16.888 8.42578 16.6047C8.42578 16.3214 8.51745 16.088 8.70078 15.9047L12.6008 12.0047Z",
@@ -3353,20 +3353,20 @@ const kt = ({
3353
3353
  }
3354
3354
  ) }) }),
3355
3355
  (() => {
3356
- const c = [], T = ne || 5, I = Math.floor(T / 2);
3357
- let ue = Math.max(0, u - I), Ie = Math.min(Z - 1, ue + T - 1);
3358
- Ie - ue < T - 1 && (ue = Math.max(0, Ie - T + 1)), ue > 0 && (c.push(
3356
+ const d = [], T = ne || 5, I = Math.floor(T / 2);
3357
+ let ue = Math.max(0, p - I), Ie = Math.min(Z - 1, ue + T - 1);
3358
+ Ie - ue < T - 1 && (ue = Math.max(0, Ie - T + 1)), ue > 0 && (d.push(
3359
3359
  /* @__PURE__ */ e("button", { className: Ve(M.paginationButton, M.pageNumber), onClick: () => q?.(0), children: "1" }, 0)
3360
- ), ue > 1 && c.push(
3360
+ ), ue > 1 && d.push(
3361
3361
  /* @__PURE__ */ e("span", { className: M.ellipsis, children: "..." }, "ellipsis1")
3362
3362
  ));
3363
3363
  for (let Ne = ue; Ne <= Ie; Ne++)
3364
- c.push(
3364
+ d.push(
3365
3365
  /* @__PURE__ */ e(
3366
3366
  "button",
3367
3367
  {
3368
3368
  className: Ve(M.paginationButton, M.pageNumber, {
3369
- [M.active]: Ne === u
3369
+ [M.active]: Ne === p
3370
3370
  }),
3371
3371
  onClick: () => q?.(Ne),
3372
3372
  children: Ne + 1
@@ -3374,18 +3374,18 @@ const kt = ({
3374
3374
  Ne
3375
3375
  )
3376
3376
  );
3377
- return Ie < Z - 1 && (Ie < Z - 2 && c.push(
3377
+ return Ie < Z - 1 && (Ie < Z - 2 && d.push(
3378
3378
  /* @__PURE__ */ e("span", { className: M.ellipsis, children: "..." }, "ellipsis2")
3379
- ), c.push(
3379
+ ), d.push(
3380
3380
  /* @__PURE__ */ e("button", { className: Ve(M.paginationButton, M.pageNumber), onClick: () => q?.(Z - 1), children: Z }, Z - 1)
3381
- )), c;
3381
+ )), d;
3382
3382
  })(),
3383
3383
  /* @__PURE__ */ e(
3384
3384
  "button",
3385
3385
  {
3386
3386
  className: M.paginationButton,
3387
- onClick: () => q?.(u + 1 < Z ? u + 1 : u),
3388
- disabled: u + 1 >= Z,
3387
+ onClick: () => q?.(p + 1 < Z ? p + 1 : p),
3388
+ disabled: p + 1 >= Z,
3389
3389
  children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
3390
3390
  "path",
3391
3391
  {
@@ -3396,7 +3396,7 @@ const kt = ({
3396
3396
  }
3397
3397
  )
3398
3398
  ] }) : /* @__PURE__ */ i(st, { children: [
3399
- /* @__PURE__ */ e("button", { className: M.paginationButton, onClick: () => q?.(Math.max(u - 1, 0)), disabled: u === 0, children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { transform: "rotate(180deg)" }, children: /* @__PURE__ */ e(
3399
+ /* @__PURE__ */ e("button", { className: M.paginationButton, onClick: () => q?.(Math.max(p - 1, 0)), disabled: p === 0, children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { transform: "rotate(180deg)" }, children: /* @__PURE__ */ e(
3400
3400
  "path",
3401
3401
  {
3402
3402
  d: "M12.6008 12.0047L8.70078 8.10469C8.51745 7.92135 8.42578 7.68802 8.42578 7.40469C8.42578 7.12135 8.51745 6.88802 8.70078 6.70469C8.88411 6.52135 9.11745 6.42969 9.40078 6.42969C9.68411 6.42969 9.91745 6.52135 10.1008 6.70469L14.7008 11.3047C14.8008 11.4047 14.8716 11.513 14.9133 11.6297C14.9549 11.7464 14.9758 11.8714 14.9758 12.0047C14.9758 12.138 14.9549 12.263 14.9133 12.3797C14.8716 12.4964 14.8008 12.6047 14.7008 12.7047L10.1008 17.3047C9.91745 17.488 9.68411 17.5797 9.40078 17.5797C9.11745 17.5797 8.88411 17.488 8.70078 17.3047C8.51745 17.1214 8.42578 16.888 8.42578 16.6047C8.42578 16.3214 8.51745 16.088 8.70078 15.9047L12.6008 12.0047Z",
@@ -3405,7 +3405,7 @@ const kt = ({
3405
3405
  ) }) }),
3406
3406
  /* @__PURE__ */ i("span", { className: M.paginationInfo, children: [
3407
3407
  "Page ",
3408
- u + 1,
3408
+ p + 1,
3409
3409
  " of ",
3410
3410
  Z
3411
3411
  ] }),
@@ -3413,8 +3413,8 @@ const kt = ({
3413
3413
  "button",
3414
3414
  {
3415
3415
  className: M.paginationButton,
3416
- onClick: () => q?.(u + 1 < Z ? u + 1 : u),
3417
- disabled: u + 1 >= Z,
3416
+ onClick: () => q?.(p + 1 < Z ? p + 1 : p),
3417
+ disabled: p + 1 >= Z,
3418
3418
  children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
3419
3419
  "path",
3420
3420
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "master-components-react-ts",
3
3
  "private": false,
4
- "version": "2.5.16",
4
+ "version": "2.5.18",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",