@7shifts/sous-chef 3.32.0 → 3.32.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.
package/dist/index.js CHANGED
@@ -6394,8 +6394,14 @@ function createWeekRange(date, weekStart) {
6394
6394
  end: getEndOfWeek(date, weekStart)
6395
6395
  };
6396
6396
  }
6397
- var DAYS = [getLocalizedString('time.sunday'), getLocalizedString('time.monday'), getLocalizedString('time.tuesday'), getLocalizedString('time.wednesday'), getLocalizedString('time.thursday'), getLocalizedString('time.friday'), getLocalizedString('time.saturday')];
6398
- var MONTH_NAMES = [getLocalizedString('time.january'), getLocalizedString('time.february'), getLocalizedString('time.march'), getLocalizedString('time.april'), getLocalizedString('time.may'), getLocalizedString('time.june'), getLocalizedString('time.july'), getLocalizedString('time.august'), getLocalizedString('time.september'), getLocalizedString('time.october'), getLocalizedString('time.november'), getLocalizedString('time.december')];
6397
+ var getDays = function getDays() {
6398
+ var DAYS = [getLocalizedString('time.sunday'), getLocalizedString('time.monday'), getLocalizedString('time.tuesday'), getLocalizedString('time.wednesday'), getLocalizedString('time.thursday'), getLocalizedString('time.friday'), getLocalizedString('time.saturday')];
6399
+ return DAYS;
6400
+ };
6401
+ var getMonths = function getMonths() {
6402
+ var MONTH_NAMES = [getLocalizedString('time.january'), getLocalizedString('time.february'), getLocalizedString('time.march'), getLocalizedString('time.april'), getLocalizedString('time.may'), getLocalizedString('time.june'), getLocalizedString('time.july'), getLocalizedString('time.august'), getLocalizedString('time.september'), getLocalizedString('time.october'), getLocalizedString('time.november'), getLocalizedString('time.december')];
6403
+ return MONTH_NAMES;
6404
+ };
6399
6405
 
6400
6406
  var CALENDAR_MODE = {
6401
6407
  DAY: 'day',
@@ -6503,6 +6509,7 @@ var Calendar = function Calendar(_ref) {
6503
6509
  var anchorPosition = anchorNode.getBoundingClientRect();
6504
6510
  var calendarPosition = calculateCalendarPosition(position, anchorPosition, calendarRef === null || calendarRef === void 0 ? void 0 : calendarRef.getBoundingClientRect());
6505
6511
  var styleOverrides = mode === CALENDAR_MODE.WEEK ? weekOverridesStyles : dayOverridesStyles;
6512
+ var MONTH_NAMES = getMonths();
6506
6513
  var defaultProps = {
6507
6514
  classNames: _extends({}, originalStylers, styleOverrides),
6508
6515
  onDayClick: function onDayClick(day, activeModifiers) {
@@ -6529,6 +6536,7 @@ var Calendar = function Calendar(_ref) {
6529
6536
  }
6530
6537
  }
6531
6538
  };
6539
+ var DAYS = getDays();
6532
6540
  return React__default.createElement(Portal, null, React__default.createElement("div", {
6533
6541
  className: styles$G['calendar']
6534
6542
  }, React__default.createElement("div", {
@@ -9189,6 +9197,8 @@ var DateRangeCalendar = function DateRangeCalendar(_ref) {
9189
9197
  fromMonth: start
9190
9198
  };
9191
9199
  var datePickerProps = mode === 'start-date' ? startDateProps : endDateProps;
9200
+ var DAYS = getDays();
9201
+ var MONTH_NAMES = getMonths();
9192
9202
  return React__default.createElement(Portal, null, React__default.createElement("div", {
9193
9203
  className: styles$G['calendar']
9194
9204
  }, React__default.createElement("div", {