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.umd.js
CHANGED
|
@@ -11067,21 +11067,22 @@
|
|
|
11067
11067
|
styleInject(css_248z$3);
|
|
11068
11068
|
|
|
11069
11069
|
var Calendar = React__default.forwardRef(function (_a, ref) {
|
|
11070
|
-
var
|
|
11071
|
-
var calendarRange = _a.calendarRange, setCalendarRange = _a.setCalendarRange, calendarOffset = _a.calendarOffset, selectedPath = _a.selectedPath, locale = _a.locale;
|
|
11070
|
+
var calendarRange = _a.calendarRange, setCalendarRange = _a.setCalendarRange; _a.calendarOffset; _a.selectedPath; var locale = _a.locale;
|
|
11072
11071
|
var isTablet = reactResponsiveExports.useMediaQuery({ maxWidth: 960 });
|
|
11073
11072
|
React__default.useEffect(function () {
|
|
11074
11073
|
if (!calendarRange)
|
|
11075
11074
|
setCalendarRange(undefined);
|
|
11076
11075
|
}, []);
|
|
11077
11076
|
var today = startOfDay(new Date());
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11077
|
+
// const daysToOffsetCalendar =
|
|
11078
|
+
// calendarOffset && typeof calendarOffset === 'object'
|
|
11079
|
+
// ? Object.entries(calendarOffset).find(
|
|
11080
|
+
// (page) => selectedPath.substring(1) === page[0]
|
|
11081
|
+
// )
|
|
11082
|
+
// : null
|
|
11082
11083
|
var disabledDays = [
|
|
11083
11084
|
{
|
|
11084
|
-
from: addDays(today,
|
|
11085
|
+
from: addDays(today, -2),
|
|
11085
11086
|
to: addDays(today, -100),
|
|
11086
11087
|
},
|
|
11087
11088
|
];
|