UNPKG

1.55 kBTypeScriptView Raw
1import * as React from 'react';
2import { Theme } from '@material-ui/core';
3import { WithStyles } from '@material-ui/core/styles/withStyles';
4import { WithUtilsProps } from '../../_shared/WithUtils';
5import { MaterialUiPickersDate } from '../../typings/date';
6import { SlideDirection } from './SlideTransition';
7export interface CalendarHeaderProps extends WithUtilsProps, WithStyles<typeof styles, true> {
8 currentMonth: object;
9 onMonthChange: (date: MaterialUiPickersDate, direction: SlideDirection) => void;
10 leftArrowIcon?: React.ReactNode;
11 rightArrowIcon?: React.ReactNode;
12 disablePrevMonth?: boolean;
13 disableNextMonth?: boolean;
14 slideDirection: SlideDirection;
15}
16export declare const CalendarHeader: React.SFC<CalendarHeaderProps>;
17export declare const styles: (theme: Theme) => Record<"transitionContainer" | "switchHeader" | "iconButton" | "daysHeader" | "dayLabel", import("@material-ui/core/styles/withStyles").CSSProperties>;
18declare const _default: React.FunctionComponent<Pick<Pick<React.PropsWithChildren<CalendarHeaderProps>, "utils" | "children" | "slideDirection" | "currentMonth" | "onMonthChange" | "leftArrowIcon" | "rightArrowIcon" | "disablePrevMonth" | "disableNextMonth"> & import("@material-ui/core").StyledComponentProps<"transitionContainer" | "switchHeader" | "iconButton" | "daysHeader" | "dayLabel">, "children" | "classes" | "innerRef" | "slideDirection" | "currentMonth" | "onMonthChange" | "leftArrowIcon" | "rightArrowIcon" | "disablePrevMonth" | "disableNextMonth">>;
19export default _default;