willba-component-library 0.1.69 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.1.69",
3
+ "version": "0.1.70",
4
4
  "description": "A stroybook 6 with TypeScript demo",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -36,19 +36,16 @@ export const Calendar = forwardRef<HTMLDivElement, Props>(
36
36
 
37
37
  const today = startOfDay(new Date())
38
38
 
39
- const daysToOffsetCalendar =
40
- calendarOffset && typeof calendarOffset === 'object'
41
- ? Object.entries(calendarOffset).find(
42
- (page) => selectedPath.substring(1) === page[0]
43
- )
44
- : null
39
+ // const daysToOffsetCalendar =
40
+ // calendarOffset && typeof calendarOffset === 'object'
41
+ // ? Object.entries(calendarOffset).find(
42
+ // (page) => selectedPath.substring(1) === page[0]
43
+ // )
44
+ // : null
45
45
 
46
46
  const disabledDays = [
47
47
  {
48
- from: addDays(
49
- today,
50
- !!daysToOffsetCalendar?.length ? daysToOffsetCalendar[1] : -2
51
- ),
48
+ from: addDays(today, -2),
52
49
  to: addDays(today, -100),
53
50
  },
54
51
  ]