@apexcura/ui-components 0.0.14-Beta210 → 0.0.14-Beta211

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
@@ -394,7 +394,7 @@ var ButtonElement = (props) => {
394
394
  cursor: props.loading ? "no-drop" : "pointer"
395
395
  }
396
396
  },
397
- /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("span", { className: props.iconsClassName }, /* @__PURE__ */ import_react11.default.createElement("img", { src: props.icon, className: "icon-active" })), props.label)
397
+ /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("span", { className: props.iconsClassName }, props.loading ? /* @__PURE__ */ import_react11.default.createElement("img", { src: props.icon, className: "icon-active" }) : /* @__PURE__ */ import_react11.default.createElement("span", { dangerouslySetInnerHTML: { __html: props.icon || "" } })), props.label)
398
398
  );
399
399
  };
400
400
 
@@ -899,18 +899,12 @@ var DatePickerElement = (props) => {
899
899
  var import_react22 = __toESM(require("react"));
900
900
  var import_antd16 = require("antd");
901
901
  var import_dayjs2 = __toESM(require("dayjs"));
902
- var import_moment3 = __toESM(require("moment"));
903
902
  var DateRangePickerElement = (props) => {
904
903
  const { value } = props;
905
904
  const { RangePicker } = import_antd16.DatePicker;
906
905
  const handleChange = (dates, dateStrings) => {
907
- console.log(dateStrings);
908
906
  if (dates) {
909
- const formattedDate = [];
910
- formattedDate.push((0, import_moment3.default)(dateStrings[0]).format("DD-MM-YYYY"));
911
- formattedDate.push((0, import_moment3.default)(dateStrings[1]).format("DD-MM-YYYY"));
912
- console.log("formattedDate", formattedDate);
913
- props.onChange && props.onChange(formattedDate);
907
+ props.onChange && props.onChange(dateStrings);
914
908
  } else {
915
909
  props.onChange && props.onChange(["", ""]);
916
910
  }
@@ -932,8 +926,8 @@ var DateRangePickerElement = (props) => {
932
926
  format: { format: "DD-MM-YYYY" },
933
927
  onChange: handleChange,
934
928
  value: value && value.length === 2 && [
935
- (0, import_dayjs2.default)(value[0], "DD-MM-YYYY"),
936
- (0, import_dayjs2.default)(value[1], "DD-MM-YYYY")
929
+ (0, import_dayjs2.default)(value[0]),
930
+ (0, import_dayjs2.default)(value[1])
937
931
  ]
938
932
  }
939
933
  ));
package/dist/index.mjs CHANGED
@@ -328,7 +328,7 @@ var ButtonElement = (props) => {
328
328
  cursor: props.loading ? "no-drop" : "pointer"
329
329
  }
330
330
  },
331
- /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("span", { className: props.iconsClassName }, /* @__PURE__ */ React11.createElement("img", { src: props.icon, className: "icon-active" })), props.label)
331
+ /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("span", { className: props.iconsClassName }, props.loading ? /* @__PURE__ */ React11.createElement("img", { src: props.icon, className: "icon-active" }) : /* @__PURE__ */ React11.createElement("span", { dangerouslySetInnerHTML: { __html: props.icon || "" } })), props.label)
332
332
  );
333
333
  };
334
334
 
@@ -833,18 +833,12 @@ var DatePickerElement = (props) => {
833
833
  import React22 from "react";
834
834
  import { DatePicker as DatePicker2, Space } from "antd";
835
835
  import dayjs2 from "dayjs";
836
- import moment3 from "moment";
837
836
  var DateRangePickerElement = (props) => {
838
837
  const { value } = props;
839
838
  const { RangePicker } = DatePicker2;
840
839
  const handleChange = (dates, dateStrings) => {
841
- console.log(dateStrings);
842
840
  if (dates) {
843
- const formattedDate = [];
844
- formattedDate.push(moment3(dateStrings[0]).format("DD-MM-YYYY"));
845
- formattedDate.push(moment3(dateStrings[1]).format("DD-MM-YYYY"));
846
- console.log("formattedDate", formattedDate);
847
- props.onChange && props.onChange(formattedDate);
841
+ props.onChange && props.onChange(dateStrings);
848
842
  } else {
849
843
  props.onChange && props.onChange(["", ""]);
850
844
  }
@@ -866,8 +860,8 @@ var DateRangePickerElement = (props) => {
866
860
  format: { format: "DD-MM-YYYY" },
867
861
  onChange: handleChange,
868
862
  value: value && value.length === 2 && [
869
- dayjs2(value[0], "DD-MM-YYYY"),
870
- dayjs2(value[1], "DD-MM-YYYY")
863
+ dayjs2(value[0]),
864
+ dayjs2(value[1])
871
865
  ]
872
866
  }
873
867
  ));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta210",
3
+ "version": "0.0.14-Beta211",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",