@apexcura/ui-components 0.0.11-Beta162 → 0.0.11-Beta163

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 CHANGED
@@ -650,11 +650,11 @@ var import_antd15 = require("antd");
650
650
  var import_icons4 = require("@ant-design/icons");
651
651
  var import_moment = __toESM(require("moment"));
652
652
  var DatePickerElement = (props) => {
653
- const [date, setDate] = (0, import_react20.useState)("");
653
+ const [date, setDate] = (0, import_react20.useState)();
654
654
  const handleChange = (value, datestring) => {
655
655
  if (value) {
656
656
  const formattedDate = (0, import_moment.default)(datestring).format("lll");
657
- setDate(formattedDate);
657
+ setDate(value);
658
658
  if (props.onChange) {
659
659
  props.onChange(formattedDate);
660
660
  }
package/dist/index.mjs CHANGED
@@ -599,11 +599,11 @@ import { DatePicker } from "antd";
599
599
  import { LeftOutlined, RightOutlined } from "@ant-design/icons";
600
600
  import moment from "moment";
601
601
  var DatePickerElement = (props) => {
602
- const [date, setDate] = useState5("");
602
+ const [date, setDate] = useState5();
603
603
  const handleChange = (value, datestring) => {
604
604
  if (value) {
605
605
  const formattedDate = moment(datestring).format("lll");
606
- setDate(formattedDate);
606
+ setDate(value);
607
607
  if (props.onChange) {
608
608
  props.onChange(formattedDate);
609
609
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta162",
3
+ "version": "0.0.11-Beta163",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",