colibri-ui 0.8.23 → 0.8.24

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/Calendar/index.js CHANGED
@@ -165,6 +165,12 @@ var Calendar = function Calendar(_a) {
165
165
  React.useEffect(function () {
166
166
  setSelectedPeriod(initialSelectedPeriod);
167
167
  }, [initialSelectedPeriod]);
168
+ React.useEffect(function () {
169
+ if (initialSelectedDate) {
170
+ var newOffset = getNumberOfMonthsBetweenDates.getNumberOfMonthsBetweenDates(startMonth, initialSelectedDate);
171
+ setCurrentMonthOffset(newOffset);
172
+ }
173
+ }, [initialSelectedDate, startMonth]);
168
174
  return /*#__PURE__*/React__default.default.createElement("div", {
169
175
  className: clx(styles__default.default.root, className),
170
176
  style: {
@@ -155,6 +155,12 @@ var Calendar = function Calendar(_a) {
155
155
  useEffect(function () {
156
156
  setSelectedPeriod(initialSelectedPeriod);
157
157
  }, [initialSelectedPeriod]);
158
+ useEffect(function () {
159
+ if (initialSelectedDate) {
160
+ var newOffset = getNumberOfMonthsBetweenDates(startMonth, initialSelectedDate);
161
+ setCurrentMonthOffset(newOffset);
162
+ }
163
+ }, [initialSelectedDate, startMonth]);
158
164
  return /*#__PURE__*/React__default.createElement("div", {
159
165
  className: clx(styles.root, className),
160
166
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colibri-ui",
3
- "version": "0.8.23",
3
+ "version": "0.8.24",
4
4
  "description": "React UI components library",
5
5
  "main": "index.js",
6
6
  "scripts": {},