@apexcura/ui-components 0.0.14-Beta281 → 0.0.14-Beta282

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
@@ -922,8 +922,8 @@ var DateRangePickerElement = (props) => {
922
922
  if (end && end.isAfter(today2)) {
923
923
  end = today2;
924
924
  }
925
- if (start && start.isBefore(today2)) {
926
- end = today2;
925
+ if (start && start.isAfter(today2)) {
926
+ start = today2;
927
927
  }
928
928
  const adjustedDates = [start, end].map((date) => date ? date : null);
929
929
  props.onChange && props.onChange(adjustedDates);
package/dist/index.mjs CHANGED
@@ -855,8 +855,8 @@ var DateRangePickerElement = (props) => {
855
855
  if (end && end.isAfter(today2)) {
856
856
  end = today2;
857
857
  }
858
- if (start && start.isBefore(today2)) {
859
- end = today2;
858
+ if (start && start.isAfter(today2)) {
859
+ start = today2;
860
860
  }
861
861
  const adjustedDates = [start, end].map((date) => date ? date : null);
862
862
  props.onChange && props.onChange(adjustedDates);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta281",
3
+ "version": "0.0.14-Beta282",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",