master-components-react 2.0.5 → 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,
|
|
@@ -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
|
|
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();
|