@apexcura/ui-components 0.0.14-Beta31 → 0.0.14-Beta32
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.js +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -746,10 +746,9 @@ var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.j
|
|
|
746
746
|
import_dayjs.default.extend(import_customParseFormat.default);
|
|
747
747
|
var DatePickerElement = (props) => {
|
|
748
748
|
const [dateState, setDateState] = (0, import_react21.useState)("");
|
|
749
|
-
const dateFormat = "DD/MM/YYYY";
|
|
750
749
|
const handleChange = (date, dateString) => {
|
|
751
750
|
if (date) {
|
|
752
|
-
const formattedDate = date
|
|
751
|
+
const formattedDate = date;
|
|
753
752
|
setDateState(date);
|
|
754
753
|
if (props.onChange) {
|
|
755
754
|
props.onChange(formattedDate);
|
|
@@ -766,7 +765,7 @@ var DatePickerElement = (props) => {
|
|
|
766
765
|
{
|
|
767
766
|
placeholder: props.placeholder,
|
|
768
767
|
value: dateState,
|
|
769
|
-
|
|
768
|
+
format: { format: "DD-MM-YYYY" },
|
|
770
769
|
onChange: handleChange
|
|
771
770
|
}
|
|
772
771
|
));
|
package/dist/index.mjs
CHANGED
|
@@ -687,10 +687,9 @@ import customParseFormat from "dayjs/plugin/customParseFormat.js";
|
|
|
687
687
|
dayjs.extend(customParseFormat);
|
|
688
688
|
var DatePickerElement = (props) => {
|
|
689
689
|
const [dateState, setDateState] = useState6("");
|
|
690
|
-
const dateFormat = "DD/MM/YYYY";
|
|
691
690
|
const handleChange = (date, dateString) => {
|
|
692
691
|
if (date) {
|
|
693
|
-
const formattedDate = date
|
|
692
|
+
const formattedDate = date;
|
|
694
693
|
setDateState(date);
|
|
695
694
|
if (props.onChange) {
|
|
696
695
|
props.onChange(formattedDate);
|
|
@@ -707,7 +706,7 @@ var DatePickerElement = (props) => {
|
|
|
707
706
|
{
|
|
708
707
|
placeholder: props.placeholder,
|
|
709
708
|
value: dateState,
|
|
710
|
-
|
|
709
|
+
format: { format: "DD-MM-YYYY" },
|
|
711
710
|
onChange: handleChange
|
|
712
711
|
}
|
|
713
712
|
));
|