@apexcura/ui-components 0.0.14-Beta205 → 0.0.14-Beta206

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
@@ -916,7 +916,7 @@ var DateRangePickerElement = (props) => {
916
916
  { label: "Last 90 Days", value: [(0, import_dayjs2.default)().add(-90, "d"), (0, import_dayjs2.default)()] }
917
917
  ];
918
918
  const disabledDate = (current) => {
919
- return current && current > (0, import_moment3.default)();
919
+ return current && current > (0, import_dayjs2.default)();
920
920
  };
921
921
  return /* @__PURE__ */ import_react22.default.createElement(import_antd16.Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ import_react22.default.createElement(
922
922
  RangePicker,
@@ -924,7 +924,10 @@ var DateRangePickerElement = (props) => {
924
924
  disabledDate,
925
925
  presets: rangePresets,
926
926
  onChange: handleChange,
927
- value: value && [(0, import_dayjs2.default)(value[0]), (0, import_dayjs2.default)(value[1])]
927
+ value: value && value.length === 2 && [
928
+ (0, import_dayjs2.default)(value[0], "DD-MM-YYYY"),
929
+ (0, import_dayjs2.default)(value[1], "DD-MM-YYYY")
930
+ ]
928
931
  }
929
932
  ));
930
933
  };
package/dist/index.mjs CHANGED
@@ -850,7 +850,7 @@ var DateRangePickerElement = (props) => {
850
850
  { label: "Last 90 Days", value: [dayjs2().add(-90, "d"), dayjs2()] }
851
851
  ];
852
852
  const disabledDate = (current) => {
853
- return current && current > moment3();
853
+ return current && current > dayjs2();
854
854
  };
855
855
  return /* @__PURE__ */ React22.createElement(Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ React22.createElement(
856
856
  RangePicker,
@@ -858,7 +858,10 @@ var DateRangePickerElement = (props) => {
858
858
  disabledDate,
859
859
  presets: rangePresets,
860
860
  onChange: handleChange,
861
- value: value && [dayjs2(value[0]), dayjs2(value[1])]
861
+ value: value && value.length === 2 && [
862
+ dayjs2(value[0], "DD-MM-YYYY"),
863
+ dayjs2(value[1], "DD-MM-YYYY")
864
+ ]
862
865
  }
863
866
  ));
864
867
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta205",
3
+ "version": "0.0.14-Beta206",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",