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.esm.js
CHANGED
|
@@ -11045,21 +11045,22 @@ var css_248z$3 = ".will-calendar-filter-header {\n padding: 15px 0;\n border-b
|
|
|
11045
11045
|
styleInject(css_248z$3);
|
|
11046
11046
|
|
|
11047
11047
|
var Calendar = forwardRef(function (_a, ref) {
|
|
11048
|
-
var
|
|
11049
|
-
var calendarRange = _a.calendarRange, setCalendarRange = _a.setCalendarRange, calendarOffset = _a.calendarOffset, selectedPath = _a.selectedPath, locale = _a.locale;
|
|
11048
|
+
var calendarRange = _a.calendarRange, setCalendarRange = _a.setCalendarRange; _a.calendarOffset; _a.selectedPath; var locale = _a.locale;
|
|
11050
11049
|
var isTablet = reactResponsiveExports.useMediaQuery({ maxWidth: 960 });
|
|
11051
11050
|
useEffect(function () {
|
|
11052
11051
|
if (!calendarRange)
|
|
11053
11052
|
setCalendarRange(undefined);
|
|
11054
11053
|
}, []);
|
|
11055
11054
|
var today = startOfDay(new Date());
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11055
|
+
// const daysToOffsetCalendar =
|
|
11056
|
+
// calendarOffset && typeof calendarOffset === 'object'
|
|
11057
|
+
// ? Object.entries(calendarOffset).find(
|
|
11058
|
+
// (page) => selectedPath.substring(1) === page[0]
|
|
11059
|
+
// )
|
|
11060
|
+
// : null
|
|
11060
11061
|
var disabledDays = [
|
|
11061
11062
|
{
|
|
11062
|
-
from: addDays(today,
|
|
11063
|
+
from: addDays(today, -2),
|
|
11063
11064
|
to: addDays(today, -100),
|
|
11064
11065
|
},
|
|
11065
11066
|
];
|