@synerise/ds-date-range-picker 0.20.4 → 0.20.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.20.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.20.4...@synerise/ds-date-range-picker@0.20.5) (2023-03-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **date-range-picker:** order range picker sides chronologically ([ce24063](https://github.com/Synerise/synerise-design/commit/ce24063b6492150aac332244256fcbdac7eadcae))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.20.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.20.3...@synerise/ds-date-range-picker@0.20.4) (2023-03-28)
7
18
 
8
19
 
@@ -104,7 +104,7 @@ export var getDisabledTimeOptions = function getDisabledTimeOptions(initialDay,
104
104
  };
105
105
  export var getSidesState = function getSidesState(value, forceAdjacentMonths) {
106
106
  var from = fnsStartOfMonth(fnsIsValid(value.from) ? legacyParse(value.from) : new Date());
107
- var to = fnsStartOfMonth(fnsIsValid(value.to) ? legacyParse(value.to) : new Date());
107
+ var to = fnsIsValid(value.to) ? fnsStartOfMonth(legacyParse(value.to)) : from;
108
108
 
109
109
  if (fnsIsSameMonth(from, to)) {
110
110
  to = ADD.MONTHS(to, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-date-range-picker",
3
- "version": "0.20.4",
3
+ "version": "0.20.5",
4
4
  "description": "Date-Range-Picker UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -54,5 +54,5 @@
54
54
  "devDependencies": {
55
55
  "@types/ramda": "^0.27.14"
56
56
  },
57
- "gitHead": "68778b33000a395c36159c186b5e2a6392a1b375"
57
+ "gitHead": "0df1c9c765f7871c488f0700d2e476ecb83c6ded"
58
58
  }