master-components-react 2.0.4 → 2.0.6

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,7 +2397,7 @@ const TF = ({
2397
2397
  r(n.subtract(1, "month"));
2398
2398
  };
2399
2399
  return bt(() => {
2400
- p.state && (Array.isArray(p.value) ? c({ start: p.value[0], end: p.value[1] }) : G(et(p.value), !1, !0), p.state = !1);
2400
+ p.state && (Array.isArray(p.value) ? c({ start: et(p.value[0], "DD-MM-YYYY"), end: et(p.value[1], "DD-MM-YYYY") }) : G(et(p.value, "DD-MM-YYYY"), !1, !0), p.state = !1);
2401
2401
  }, []), /* @__PURE__ */ k.jsxs(
2402
2402
  "div",
2403
2403
  {
@@ -2491,7 +2491,7 @@ const DF = ({
2491
2491
  msg: i,
2492
2492
  defaultValue: n,
2493
2493
  size: r = "md",
2494
- valueFormat: a,
2494
+ valueFormat: a = "DD-MM-YYYY",
2495
2495
  onChange: o,
2496
2496
  onBlur: s,
2497
2497
  onFocus: l,
@@ -2508,7 +2508,7 @@ const DF = ({
2508
2508
  type: C = "single",
2509
2509
  // single / dual
2510
2510
  theme: x = "light",
2511
- disabled: T = !0
2511
+ disabled: T
2512
2512
  }) => {
2513
2513
  const [R, A] = Qe(!1), [z, G] = Qe(""), H = ut({ state: !1, value: "" });
2514
2514
  Qe(!1);
@@ -2539,8 +2539,8 @@ const DF = ({
2539
2539
  };
2540
2540
  return bt(() => {
2541
2541
  if (n && H.current.value === "") {
2542
- let w = Array.isArray(n) ? { start: et(n[0]), end: n.length > 1 ? et(n[1]) : "" } : et(n).format(a ?? "DD-MM-YYYY");
2543
- H.current.value = n, w && J(w, !1, !0);
2542
+ let w = 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);
2543
+ H.current.value = n, H.current.state = !0, w && J(w, !1, !0);
2544
2544
  }
2545
2545
  }, []), bt(() => {
2546
2546
  R && E();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "master-components-react",
3
3
  "private": false,
4
- "version": "2.0.4",
4
+ "version": "2.0.6",
5
5
  "type": "module",
6
6
  "main": "dist/master-components-react.cjs.js",
7
7
  "module": "dist/master-components-react.es.js",