rsuite 5.5.0 → 5.5.1

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.
@@ -99,22 +99,8 @@ var Calendar = /*#__PURE__*/React.forwardRef(function (props, ref) {
99
99
  return !after;
100
100
  }, [calendarDate, index, showOneCalendar]);
101
101
  var disabledMonth = useCallback(function (date) {
102
- var after;
103
-
104
- if (disabledDate !== null && disabledDate !== void 0 && disabledDate(date, value, DATERANGE_DISABLED_TARGET.CALENDAR)) {
105
- return true;
106
- }
107
-
108
- if (showOneCalendar) return false;
109
-
110
- if (index === 1) {
111
- after = isAfter(date, calendarDate[0]);
112
- return !after;
113
- }
114
-
115
- after = isAfter(calendarDate[1], date);
116
- return !after;
117
- }, [calendarDate, disabledDate, index, showOneCalendar, value]);
102
+ return disabledDate === null || disabledDate === void 0 ? void 0 : disabledDate(date, value, DATERANGE_DISABLED_TARGET.CALENDAR);
103
+ }, [disabledDate, value]);
118
104
  return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
119
105
  format: format,
120
106
  calendarState: calendarState,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsuite",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "A suite of react components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",