@apexcura/ui-components 0.0.15-Beta30 → 0.0.15-Beta31

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
@@ -903,21 +903,6 @@ var DateRangePickerElement = (props) => {
903
903
  }
904
904
  return current && current > today;
905
905
  };
906
- const handleCalendarChange = (dates) => {
907
- if (dates) {
908
- let [start, end] = dates;
909
- if (start && start.isBefore(today) && end && end.isAfter(today)) {
910
- end = today;
911
- }
912
- const adjustedDates = [start, end].map(
913
- (date) => date ? date.format("DD-MM-YYYY") : null
914
- );
915
- console.log("2", adjustedDates);
916
- props.onChange && props.onChange(adjustedDates);
917
- } else {
918
- props.onChange && props.onChange("");
919
- }
920
- };
921
906
  return /* @__PURE__ */ import_react21.default.createElement(import_antd15.Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ import_react21.default.createElement(
922
907
  RangePicker,
923
908
  {
@@ -925,7 +910,6 @@ var DateRangePickerElement = (props) => {
925
910
  ...!props.weekrange && { presets: rangePresets },
926
911
  format: "DD-MM-YYYY",
927
912
  onChange: handleChange,
928
- onCalendarChange: handleCalendarChange,
929
913
  value: dateValues
930
914
  }
931
915
  ));
package/dist/index.mjs CHANGED
@@ -834,21 +834,6 @@ var DateRangePickerElement = (props) => {
834
834
  }
835
835
  return current && current > today;
836
836
  };
837
- const handleCalendarChange = (dates) => {
838
- if (dates) {
839
- let [start, end] = dates;
840
- if (start && start.isBefore(today) && end && end.isAfter(today)) {
841
- end = today;
842
- }
843
- const adjustedDates = [start, end].map(
844
- (date) => date ? date.format("DD-MM-YYYY") : null
845
- );
846
- console.log("2", adjustedDates);
847
- props.onChange && props.onChange(adjustedDates);
848
- } else {
849
- props.onChange && props.onChange("");
850
- }
851
- };
852
837
  return /* @__PURE__ */ React21.createElement(Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ React21.createElement(
853
838
  RangePicker,
854
839
  {
@@ -856,7 +841,6 @@ var DateRangePickerElement = (props) => {
856
841
  ...!props.weekrange && { presets: rangePresets },
857
842
  format: "DD-MM-YYYY",
858
843
  onChange: handleChange,
859
- onCalendarChange: handleCalendarChange,
860
844
  value: dateValues
861
845
  }
862
846
  ));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.15-Beta30",
3
+ "version": "0.0.15-Beta31",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",