@apexcura/ui-components 0.0.11-Beta149 → 0.0.11-Beta150
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 -13
- package/dist/index.mjs +2 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -614,8 +614,6 @@ var import_react19 = __toESM(require("react"));
|
|
|
614
614
|
var import_antd14 = require("antd");
|
|
615
615
|
var TableElement = (props) => {
|
|
616
616
|
const { thead, tbody } = props;
|
|
617
|
-
console.log("thead-----", thead);
|
|
618
|
-
console.log("tbody------", tbody);
|
|
619
617
|
const columns = thead && thead.map((col) => ({
|
|
620
618
|
title: col.label,
|
|
621
619
|
dataIndex: col.name,
|
|
@@ -628,7 +626,6 @@ var TableElement = (props) => {
|
|
|
628
626
|
var import_react20 = __toESM(require("react"));
|
|
629
627
|
var import_antd15 = require("antd");
|
|
630
628
|
var import_icons4 = require("@ant-design/icons");
|
|
631
|
-
var import_date_fns = require("date-fns");
|
|
632
629
|
var DatePickerElement = (props) => {
|
|
633
630
|
const [date, setDate] = (0, import_react20.useState)(void 0);
|
|
634
631
|
const handleChange = (value) => {
|
|
@@ -637,16 +634,8 @@ var DatePickerElement = (props) => {
|
|
|
637
634
|
props.onChange(date);
|
|
638
635
|
}
|
|
639
636
|
};
|
|
640
|
-
console.log(date);
|
|
641
|
-
|
|
642
|
-
setDate(
|
|
643
|
-
(prev) => console.log("prev", prev)
|
|
644
|
-
);
|
|
645
|
-
};
|
|
646
|
-
const onHandleIncrement = () => {
|
|
647
|
-
setDate((prevDate) => prevDate ? (0, import_date_fns.addDays)(prevDate, 1) : void 0);
|
|
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, prevIcon: true, nextIcon: true }), /* @__PURE__ */ import_react20.default.createElement("button", { onClick: onHandleIncrement }, /* @__PURE__ */ import_react20.default.createElement(import_icons4.RightOutlined, null)));
|
|
637
|
+
console.log("date--------------", date);
|
|
638
|
+
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)));
|
|
650
639
|
};
|
|
651
640
|
// Annotate the CommonJS export names for ESM import in node:
|
|
652
641
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -563,8 +563,6 @@ import React18 from "react";
|
|
|
563
563
|
import { Table as Table2 } from "antd";
|
|
564
564
|
var TableElement = (props) => {
|
|
565
565
|
const { thead, tbody } = props;
|
|
566
|
-
console.log("thead-----", thead);
|
|
567
|
-
console.log("tbody------", tbody);
|
|
568
566
|
const columns = thead && thead.map((col) => ({
|
|
569
567
|
title: col.label,
|
|
570
568
|
dataIndex: col.name,
|
|
@@ -577,7 +575,6 @@ var TableElement = (props) => {
|
|
|
577
575
|
import React19, { useState as useState5 } from "react";
|
|
578
576
|
import { DatePicker } from "antd";
|
|
579
577
|
import { LeftOutlined, RightOutlined } from "@ant-design/icons";
|
|
580
|
-
import { addDays } from "date-fns";
|
|
581
578
|
var DatePickerElement = (props) => {
|
|
582
579
|
const [date, setDate] = useState5(void 0);
|
|
583
580
|
const handleChange = (value) => {
|
|
@@ -586,16 +583,8 @@ var DatePickerElement = (props) => {
|
|
|
586
583
|
props.onChange(date);
|
|
587
584
|
}
|
|
588
585
|
};
|
|
589
|
-
console.log(date);
|
|
590
|
-
|
|
591
|
-
setDate(
|
|
592
|
-
(prev) => console.log("prev", prev)
|
|
593
|
-
);
|
|
594
|
-
};
|
|
595
|
-
const onHandleIncrement = () => {
|
|
596
|
-
setDate((prevDate) => prevDate ? addDays(prevDate, 1) : void 0);
|
|
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, prevIcon: true, nextIcon: true }), /* @__PURE__ */ React19.createElement("button", { onClick: onHandleIncrement }, /* @__PURE__ */ React19.createElement(RightOutlined, null)));
|
|
586
|
+
console.log("date--------------", date);
|
|
587
|
+
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)));
|
|
599
588
|
};
|
|
600
589
|
export {
|
|
601
590
|
AddMoreTable,
|