@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 +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/date.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6390,8 +6390,14 @@ function createWeekRange(date, weekStart) {
|
|
|
6390
6390
|
end: getEndOfWeek(date, weekStart)
|
|
6391
6391
|
};
|
|
6392
6392
|
}
|
|
6393
|
-
var
|
|
6394
|
-
var
|
|
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", {
|
|
@@ -9185,6 +9193,8 @@ var DateRangeCalendar = function DateRangeCalendar(_ref) {
|
|
|
9185
9193
|
fromMonth: start
|
|
9186
9194
|
};
|
|
9187
9195
|
var datePickerProps = mode === 'start-date' ? startDateProps : endDateProps;
|
|
9196
|
+
var DAYS = getDays();
|
|
9197
|
+
var MONTH_NAMES = getMonths();
|
|
9188
9198
|
return React__default.createElement(Portal, null, React__default.createElement("div", {
|
|
9189
9199
|
className: styles$G['calendar']
|
|
9190
9200
|
}, React__default.createElement("div", {
|