willba-component-library 0.1.68 → 0.1.70
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/lib/index.js
CHANGED
|
@@ -11065,21 +11065,22 @@ var css_248z$3 = ".will-calendar-filter-header {\n padding: 15px 0;\n border-b
|
|
|
11065
11065
|
styleInject(css_248z$3);
|
|
11066
11066
|
|
|
11067
11067
|
var Calendar = React__default.forwardRef(function (_a, ref) {
|
|
11068
|
-
var
|
|
11069
|
-
var calendarRange = _a.calendarRange, setCalendarRange = _a.setCalendarRange, calendarOffset = _a.calendarOffset, selectedPath = _a.selectedPath, locale = _a.locale;
|
|
11068
|
+
var calendarRange = _a.calendarRange, setCalendarRange = _a.setCalendarRange; _a.calendarOffset; _a.selectedPath; var locale = _a.locale;
|
|
11070
11069
|
var isTablet = reactResponsiveExports.useMediaQuery({ maxWidth: 960 });
|
|
11071
11070
|
React__default.useEffect(function () {
|
|
11072
11071
|
if (!calendarRange)
|
|
11073
11072
|
setCalendarRange(undefined);
|
|
11074
11073
|
}, []);
|
|
11075
11074
|
var today = startOfDay(new Date());
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11075
|
+
// const daysToOffsetCalendar =
|
|
11076
|
+
// calendarOffset && typeof calendarOffset === 'object'
|
|
11077
|
+
// ? Object.entries(calendarOffset).find(
|
|
11078
|
+
// (page) => selectedPath.substring(1) === page[0]
|
|
11079
|
+
// )
|
|
11080
|
+
// : null
|
|
11080
11081
|
var disabledDays = [
|
|
11081
11082
|
{
|
|
11082
|
-
from: addDays(today,
|
|
11083
|
+
from: addDays(today, -2),
|
|
11083
11084
|
to: addDays(today, -100),
|
|
11084
11085
|
},
|
|
11085
11086
|
];
|