Allow auto width/height, floatingNav is optional, onSelect takes a string

This commit is contained in:
Christian Chown
2018-03-21 00:19:09 +00:00
parent 55421afb90
commit 1ad2b822af

View File

@@ -8,8 +8,8 @@ import * as React from 'react';
export interface ReactInfiniteCalendarProps {
selected?: Date | boolean;
width?: number;
height?: number;
width?: number | 'auto';
height?: number | 'auto';
min?: Date;
max?: Date;
minDate?: Date;
@@ -40,7 +40,7 @@ export interface ReactInfiniteCalendarProps {
};
theme?: {
accentColor?: string;
floatingNav: {
floatingNav?: {
background?: string;
chevron?: string;
color?: string;
@@ -55,7 +55,7 @@ export interface ReactInfiniteCalendarProps {
weekdayColor?: string;
};
className?: string;
onSelect?: () => void;
onSelect?: (date: string) => void;
onScroll?: (scrollTop: number) => void;
onScrollEnd?: (scrollTop: number) => void;
rowHeight?: number;