willba-component-library 0.1.65 → 0.1.67
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.esm.js
CHANGED
|
@@ -11053,7 +11053,9 @@ var Calendar = forwardRef(function (_a, ref) {
|
|
|
11053
11053
|
setCalendarRange(undefined);
|
|
11054
11054
|
}, []);
|
|
11055
11055
|
var today = startOfDay(new Date());
|
|
11056
|
-
var daysToOffsetCalendar =
|
|
11056
|
+
var daysToOffsetCalendar = calendarOffset &&
|
|
11057
|
+
((_b = Object.entries(calendarOffset)) === null || _b === void 0 ? void 0 : _b.find(function (page) { return selectedPath.substring(1) === page[0]; }));
|
|
11058
|
+
console.log(daysToOffsetCalendar);
|
|
11057
11059
|
var disabledDays = [
|
|
11058
11060
|
{
|
|
11059
11061
|
from: addDays(today, !!(daysToOffsetCalendar === null || daysToOffsetCalendar === void 0 ? void 0 : daysToOffsetCalendar.length) ? daysToOffsetCalendar[1] : -2),
|