@apexcura/ui-components 0.0.11-Beta150 → 0.0.11-Beta151
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 +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -628,13 +628,14 @@ var import_antd15 = require("antd");
|
|
|
628
628
|
var import_icons4 = require("@ant-design/icons");
|
|
629
629
|
var DatePickerElement = (props) => {
|
|
630
630
|
const [date, setDate] = (0, import_react20.useState)(void 0);
|
|
631
|
-
const handleChange = (value) => {
|
|
631
|
+
const handleChange = (value, datestring) => {
|
|
632
632
|
setDate(value);
|
|
633
633
|
if (props.onChange) {
|
|
634
634
|
props.onChange(date);
|
|
635
635
|
}
|
|
636
|
+
console.log("value", value);
|
|
637
|
+
console.log("datestring", datestring);
|
|
636
638
|
};
|
|
637
|
-
console.log("date--------------", date);
|
|
638
639
|
return /* @__PURE__ */ import_react20.default.createElement("div", null, /* @__PURE__ */ import_react20.default.createElement("button", null, /* @__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", null, /* @__PURE__ */ import_react20.default.createElement(import_icons4.RightOutlined, null)));
|
|
639
640
|
};
|
|
640
641
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -577,13 +577,14 @@ import { DatePicker } from "antd";
|
|
|
577
577
|
import { LeftOutlined, RightOutlined } from "@ant-design/icons";
|
|
578
578
|
var DatePickerElement = (props) => {
|
|
579
579
|
const [date, setDate] = useState5(void 0);
|
|
580
|
-
const handleChange = (value) => {
|
|
580
|
+
const handleChange = (value, datestring) => {
|
|
581
581
|
setDate(value);
|
|
582
582
|
if (props.onChange) {
|
|
583
583
|
props.onChange(date);
|
|
584
584
|
}
|
|
585
|
+
console.log("value", value);
|
|
586
|
+
console.log("datestring", datestring);
|
|
585
587
|
};
|
|
586
|
-
console.log("date--------------", date);
|
|
587
588
|
return /* @__PURE__ */ React19.createElement("div", null, /* @__PURE__ */ React19.createElement("button", null, /* @__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", null, /* @__PURE__ */ React19.createElement(RightOutlined, null)));
|
|
588
589
|
};
|
|
589
590
|
export {
|