master-components-react 2.1.8 → 2.1.9

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.
@@ -2397,14 +2397,14 @@ const TF = ({
2397
2397
  }), { start: K ?? "", end: (q == null ? void 0 : q.start) ?? "" }) : (i({
2398
2398
  ...q,
2399
2399
  end: K ?? ""
2400
- }), { ...q, end: K ?? "" }) : q) : (c({ start: null, end: null }), o(K), M || (l(!1), i && typeof i == "function" && i(K.format(e ?? "DD-MM-YYYY"))));
2400
+ }), { ...q, end: K ?? "" }) : q) : (c({ start: null, end: null }), o(K), M || (l(!1), i && typeof i == "function" && i(K.format(e ?? e))));
2401
2401
  }, V = () => {
2402
2402
  r(n.add(1, "month"));
2403
2403
  }, U = () => {
2404
2404
  r(n.subtract(1, "month"));
2405
2405
  };
2406
2406
  return Ct(() => {
2407
- p.state && (Array.isArray(p.value) ? c({ start: et(p.value[0], "DD-MM-YYYY"), end: et(p.value[1], "DD-MM-YYYY") }) : $(et(p.value, "DD-MM-YYYY"), !1, !0), p.state = !1);
2407
+ p.state && (Array.isArray(p.value) ? c({ start: et(p.value[0], e), end: et(p.value[1], e) }) : $(et(p.value, e), !1, !0), p.state = !1);
2408
2408
  }, []), /* @__PURE__ */ k.jsxs(
2409
2409
  "div",
2410
2410
  {
@@ -2524,7 +2524,7 @@ const DF = ({
2524
2524
  end: null
2525
2525
  }), ne = ut(null), J = (S, B, N) => {
2526
2526
  let G = "", W = { start: "", end: "" };
2527
- !B && (m === "single" || typeof S == "string") && (G = S, $(G)), !B && (m !== "single" || typeof S != "string") && (G = `${et((S == null ? void 0 : S.start) ?? "").format(a ?? "DD-MM-YYYY")} / ${S != null && S.end ? et(S.end).format(a ?? "DD-MM-YYYY") : ""}`, W.start = et((S == null ? void 0 : S.start) ?? "").format(a ?? "DD-MM-YYYY"), W.end = S != null && S.end ? et(S.end).format(a ?? "DD-MM-YYYY") : "", $(G)), B && (G = et(S).format(a ?? "DD-MM-YYYY"), $(G)), S != null && S.end && A(!1), o && typeof o == "function" && !N && (o(W.start !== "" ? W : G), V.current.value = W.start !== "" ? W : G);
2527
+ !B && (m === "single" || typeof S == "string") && (G = S, $(G)), !B && (m !== "single" || typeof S != "string") && (G = `${et((S == null ? void 0 : S.start) ?? "").format(a)} / ${S != null && S.end ? et(S.end).format(a) : ""}`, W.start = et((S == null ? void 0 : S.start) ?? "").format(a), W.end = S != null && S.end ? et(S.end).format(a) : "", $(G)), B && (G = et(S).format(a), $(G)), S != null && S.end && A(!1), o && typeof o == "function" && !N && (o(W.start !== "" ? W : G), V.current.value = W.start !== "" ? W : G);
2528
2528
  }, pe = (S) => {
2529
2529
  S.stopPropagation(), q(""), V.current.value = "", $(""), j({
2530
2530
  start: null,
@@ -2546,8 +2546,8 @@ const DF = ({
2546
2546
  };
2547
2547
  return Ct(() => {
2548
2548
  if (n && V.current.value === "") {
2549
- let S = Array.isArray(n) ? { start: et(n[0], "DD-MM-YYYY"), end: n.length > 1 ? et(n[1], "DD-MM-YYYY") : "" } : et(n, "DD-MM-YYYY").format(a);
2550
- V.current.value = n, V.current.state = !0, S && J(S, !1, !0);
2549
+ let S = Array.isArray(n) ? { start: et(n[0], a), end: n.length > 1 ? et(n[1], a) : "" } : et(n, a).format(a);
2550
+ V.current.value = n, V.current.state = !0, console.log(n, a), S && J(S, !1, !0);
2551
2551
  }
2552
2552
  }, []), Ct(() => {
2553
2553
  R && I();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "master-components-react",
3
3
  "private": false,
4
- "version": "2.1.8",
4
+ "version": "2.1.9",
5
5
  "type": "module",
6
6
  "main": "dist/master-components-react.cjs.js",
7
7
  "module": "dist/master-components-react.es.js",