@apexcura/ui-components 0.0.11-Beta148 → 0.0.11-Beta149

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
@@ -634,7 +634,7 @@ var DatePickerElement = (props) => {
634
634
  const handleChange = (value) => {
635
635
  setDate(value);
636
636
  if (props.onChange) {
637
- props.onChange(value);
637
+ props.onChange(date);
638
638
  }
639
639
  };
640
640
  console.log(date);
@@ -646,7 +646,7 @@ var DatePickerElement = (props) => {
646
646
  const onHandleIncrement = () => {
647
647
  setDate((prevDate) => prevDate ? (0, import_date_fns.addDays)(prevDate, 1) : void 0);
648
648
  };
649
- return /* @__PURE__ */ import_react20.default.createElement("div", null, /* @__PURE__ */ import_react20.default.createElement("button", { onClick: onHandleDecrement }, /* @__PURE__ */ import_react20.default.createElement(import_icons4.LeftOutlined, null)), /* @__PURE__ */ import_react20.default.createElement(import_antd15.DatePicker, { placeholder: props.placeholder, variant: "borderless", value: props.value, defaultValue: true, onChange: handleChange }), /* @__PURE__ */ import_react20.default.createElement("button", { onClick: onHandleIncrement }, /* @__PURE__ */ import_react20.default.createElement(import_icons4.RightOutlined, null)));
649
+ return /* @__PURE__ */ import_react20.default.createElement("div", null, /* @__PURE__ */ import_react20.default.createElement("button", { onClick: onHandleDecrement }, /* @__PURE__ */ import_react20.default.createElement(import_icons4.LeftOutlined, null)), /* @__PURE__ */ import_react20.default.createElement(import_antd15.DatePicker, { placeholder: props.placeholder, variant: "borderless", value: props.value, defaultValue: true, onChange: handleChange, prevIcon: true, nextIcon: true }), /* @__PURE__ */ import_react20.default.createElement("button", { onClick: onHandleIncrement }, /* @__PURE__ */ import_react20.default.createElement(import_icons4.RightOutlined, null)));
650
650
  };
651
651
  // Annotate the CommonJS export names for ESM import in node:
652
652
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -583,7 +583,7 @@ var DatePickerElement = (props) => {
583
583
  const handleChange = (value) => {
584
584
  setDate(value);
585
585
  if (props.onChange) {
586
- props.onChange(value);
586
+ props.onChange(date);
587
587
  }
588
588
  };
589
589
  console.log(date);
@@ -595,7 +595,7 @@ var DatePickerElement = (props) => {
595
595
  const onHandleIncrement = () => {
596
596
  setDate((prevDate) => prevDate ? addDays(prevDate, 1) : void 0);
597
597
  };
598
- return /* @__PURE__ */ React19.createElement("div", null, /* @__PURE__ */ React19.createElement("button", { onClick: onHandleDecrement }, /* @__PURE__ */ React19.createElement(LeftOutlined, null)), /* @__PURE__ */ React19.createElement(DatePicker, { placeholder: props.placeholder, variant: "borderless", value: props.value, defaultValue: true, onChange: handleChange }), /* @__PURE__ */ React19.createElement("button", { onClick: onHandleIncrement }, /* @__PURE__ */ React19.createElement(RightOutlined, null)));
598
+ return /* @__PURE__ */ React19.createElement("div", null, /* @__PURE__ */ React19.createElement("button", { onClick: onHandleDecrement }, /* @__PURE__ */ React19.createElement(LeftOutlined, null)), /* @__PURE__ */ React19.createElement(DatePicker, { placeholder: props.placeholder, variant: "borderless", value: props.value, defaultValue: true, onChange: handleChange, prevIcon: true, nextIcon: true }), /* @__PURE__ */ React19.createElement("button", { onClick: onHandleIncrement }, /* @__PURE__ */ React19.createElement(RightOutlined, null)));
599
599
  };
600
600
  export {
601
601
  AddMoreTable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta148",
3
+ "version": "0.0.11-Beta149",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",