@e-group/material-lab
Version:
EGroup Team Lab - Incubator for EGroup Team experimental React components.
25 lines (24 loc) • 1.36 kB
TypeScript
import React, { MouseEventHandler } from 'react';
import { Theme, WithStyles } from '@material-ui/core';
import { Marker, Touched, Focused } from './types';
export declare const MARKERS: {
[key: string]: Marker;
};
declare const styles: (theme: Theme) => Record<"root" | "container" | "item" | "monthContainer", import("@material-ui/styles").CSSProperties | import("@material-ui/styles").CreateCSSProperties<{}> | import("@material-ui/styles").PropsFunc<{}, import("@material-ui/styles").CreateCSSProperties<{}>>>;
export interface MenuProps extends WithStyles<typeof styles> {
startDate?: Date;
endDate?: Date;
minDate: Date;
maxDate: Date;
hoverDay?: Date;
touched: Touched;
focused?: Focused;
startTime?: string;
endTime?: string;
onDayClick?: (date: Date) => void;
onDayHover?: (date: Date) => void;
onTimeClick?: (time: string) => void;
onConfirmClick?: MouseEventHandler<HTMLButtonElement>;
}
declare const _default: React.ComponentType<Pick<React.PropsWithChildren<MenuProps>, "children" | "focused" | "touched" | "minDate" | "maxDate" | "startDate" | "endDate" | "hoverDay" | "onDayClick" | "onDayHover" | "onTimeClick" | "startTime" | "endTime" | "onConfirmClick"> & import("@material-ui/core").StyledComponentProps<"root" | "container" | "item" | "monthContainer">>;
export default _default;