@apexcura/ui-components 0.0.12-Beta100 → 0.0.12-Beta101

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.d.mts CHANGED
@@ -11,7 +11,7 @@ type ElementType = {
11
11
  disabled?: boolean;
12
12
  prefix?: React.ReactNode;
13
13
  type?: string;
14
- value?: string | number | boolean | any[] | null;
14
+ value?: string | number | boolean | any[] | null | undefined;
15
15
  status?: "error" | "warning";
16
16
  styles?: React.CSSProperties;
17
17
  variant?: "outlined" | "borderless" | "filled";
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ type ElementType = {
11
11
  disabled?: boolean;
12
12
  prefix?: React.ReactNode;
13
13
  type?: string;
14
- value?: string | number | boolean | any[] | null;
14
+ value?: string | number | boolean | any[] | null | undefined;
15
15
  status?: "error" | "warning";
16
16
  styles?: React.CSSProperties;
17
17
  variant?: "outlined" | "borderless" | "filled";
package/dist/index.js CHANGED
@@ -629,12 +629,17 @@ var import_react20 = __toESM(require("react"));
629
629
  var import_antd15 = require("antd");
630
630
  var import_icons4 = require("@ant-design/icons");
631
631
  var DatePickerElement = (props) => {
632
+ const [date, setDate] = (0, import_react20.useState)(void 0);
632
633
  const handleChange = (value) => {
634
+ setDate(value);
633
635
  if (props.onChange) {
634
- props.onChange(value);
636
+ props.onChange(date);
635
637
  }
636
638
  };
637
- return /* @__PURE__ */ import_react20.default.createElement("div", 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, nextIcon: /* @__PURE__ */ import_react20.default.createElement(import_icons4.LeftOutlined, null), prevIcon: true, superPrevIcon: true, onChange: handleChange }), /* @__PURE__ */ import_react20.default.createElement(import_icons4.RightOutlined, null));
639
+ const onHandleAdd = () => {
640
+ setDate((prev) => prev - 1);
641
+ };
642
+ return /* @__PURE__ */ import_react20.default.createElement("div", null, /* @__PURE__ */ import_react20.default.createElement(import_icons4.LeftOutlined, { onClick: onHandleAdd }), /* @__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(import_icons4.RightOutlined, null));
638
643
  };
639
644
  // Annotate the CommonJS export names for ESM import in node:
640
645
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -574,16 +574,21 @@ var TableElement = (props) => {
574
574
  };
575
575
 
576
576
  // src/Components/DatePicker.tsx
577
- import React19 from "react";
577
+ import React19, { useState as useState5 } from "react";
578
578
  import { DatePicker } from "antd";
579
579
  import { LeftOutlined, RightOutlined } from "@ant-design/icons";
580
580
  var DatePickerElement = (props) => {
581
+ const [date, setDate] = useState5(void 0);
581
582
  const handleChange = (value) => {
583
+ setDate(value);
582
584
  if (props.onChange) {
583
- props.onChange(value);
585
+ props.onChange(date);
584
586
  }
585
587
  };
586
- return /* @__PURE__ */ React19.createElement("div", null, /* @__PURE__ */ React19.createElement(LeftOutlined, null), /* @__PURE__ */ React19.createElement(DatePicker, { placeholder: props.placeholder, variant: "borderless", value: props.value, nextIcon: /* @__PURE__ */ React19.createElement(LeftOutlined, null), prevIcon: true, superPrevIcon: true, onChange: handleChange }), /* @__PURE__ */ React19.createElement(RightOutlined, null));
588
+ const onHandleAdd = () => {
589
+ setDate((prev) => prev - 1);
590
+ };
591
+ return /* @__PURE__ */ React19.createElement("div", null, /* @__PURE__ */ React19.createElement(LeftOutlined, { onClick: onHandleAdd }), /* @__PURE__ */ React19.createElement(DatePicker, { placeholder: props.placeholder, variant: "borderless", value: props.value, defaultValue: true, onChange: handleChange }), /* @__PURE__ */ React19.createElement(RightOutlined, null));
587
592
  };
588
593
  export {
589
594
  AddMoreTable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta100",
3
+ "version": "0.0.12-Beta101",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",
@@ -51,6 +51,7 @@
51
51
  "@tinymce/tinymce-react": "^5.0.1",
52
52
  "autoprefixer": "^10.4.19",
53
53
  "esbuild": "^0.21.4",
54
+ "moment": "^2.30.1",
54
55
  "postcss": "^8.4.38",
55
56
  "postcss-import": "^16.1.0",
56
57
  "react-icons": "^5.2.1",