@7shifts/sous-chef 3.32.0 → 3.33.0

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.
@@ -6390,8 +6390,14 @@ function createWeekRange(date, weekStart) {
6390
6390
  end: getEndOfWeek(date, weekStart)
6391
6391
  };
6392
6392
  }
6393
- var DAYS = [getLocalizedString('time.sunday'), getLocalizedString('time.monday'), getLocalizedString('time.tuesday'), getLocalizedString('time.wednesday'), getLocalizedString('time.thursday'), getLocalizedString('time.friday'), getLocalizedString('time.saturday')];
6394
- 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')];
6393
+ var getDays = function getDays() {
6394
+ var DAYS = [getLocalizedString('time.sunday'), getLocalizedString('time.monday'), getLocalizedString('time.tuesday'), getLocalizedString('time.wednesday'), getLocalizedString('time.thursday'), getLocalizedString('time.friday'), getLocalizedString('time.saturday')];
6395
+ return DAYS;
6396
+ };
6397
+ var getMonths = function getMonths() {
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')];
6399
+ return MONTH_NAMES;
6400
+ };
6395
6401
 
6396
6402
  var CALENDAR_MODE = {
6397
6403
  DAY: 'day',
@@ -6499,6 +6505,7 @@ var Calendar = function Calendar(_ref) {
6499
6505
  var anchorPosition = anchorNode.getBoundingClientRect();
6500
6506
  var calendarPosition = calculateCalendarPosition(position, anchorPosition, calendarRef === null || calendarRef === void 0 ? void 0 : calendarRef.getBoundingClientRect());
6501
6507
  var styleOverrides = mode === CALENDAR_MODE.WEEK ? weekOverridesStyles : dayOverridesStyles;
6508
+ var MONTH_NAMES = getMonths();
6502
6509
  var defaultProps = {
6503
6510
  classNames: _extends({}, originalStylers, styleOverrides),
6504
6511
  onDayClick: function onDayClick(day, activeModifiers) {
@@ -6525,6 +6532,7 @@ var Calendar = function Calendar(_ref) {
6525
6532
  }
6526
6533
  }
6527
6534
  };
6535
+ var DAYS = getDays();
6528
6536
  return React__default.createElement(Portal, null, React__default.createElement("div", {
6529
6537
  className: styles$G['calendar']
6530
6538
  }, React__default.createElement("div", {
@@ -7644,7 +7652,8 @@ var useSelectField = function useSelectField(_ref) {
7644
7652
  creatableButton = _ref.creatableButton,
7645
7653
  onCreate = _ref.onCreate,
7646
7654
  _ref$isSearchable = _ref.isSearchable,
7647
- isSearchable = _ref$isSearchable === void 0 ? true : _ref$isSearchable;
7655
+ isSearchable = _ref$isSearchable === void 0 ? true : _ref$isSearchable,
7656
+ autoFocus = _ref.autoFocus;
7648
7657
  var menuShouldScrollIntoView = useShouldScrollMenuIntoView(menuShouldScrollIntoViewProp);
7649
7658
  var _useState = useState(false),
7650
7659
  isMenuInputFocus = _useState[0],
@@ -7705,7 +7714,8 @@ var useSelectField = function useSelectField(_ref) {
7705
7714
  value: controllers.value,
7706
7715
  defaultValue: defaultValue,
7707
7716
  menuIsOpen: isMenuInputFocus || undefined,
7708
- isSearchable: isSearchable
7717
+ isSearchable: isSearchable,
7718
+ autoFocus: autoFocus
7709
7719
  };
7710
7720
  var fieldProps = {
7711
7721
  caption: caption,
@@ -9185,6 +9195,8 @@ var DateRangeCalendar = function DateRangeCalendar(_ref) {
9185
9195
  fromMonth: start
9186
9196
  };
9187
9197
  var datePickerProps = mode === 'start-date' ? startDateProps : endDateProps;
9198
+ var DAYS = getDays();
9199
+ var MONTH_NAMES = getMonths();
9188
9200
  return React__default.createElement(Portal, null, React__default.createElement("div", {
9189
9201
  className: styles$G['calendar']
9190
9202
  }, React__default.createElement("div", {