@e-group/material-lab
Version:
EGroup Team Lab - Incubator for EGroup Team experimental React components.
21 lines (20 loc) • 1.2 kB
TypeScript
import React from 'react';
import { WithStyles, Theme } from '@material-ui/core';
import { Focused, DateRange } from './types';
declare const styles: (theme: Theme) => Record<"root" | "close" | "paper", import("@material-ui/styles").CSSProperties | import("@material-ui/styles").CreateCSSProperties<{}> | import("@material-ui/styles").PropsFunc<{}, import("@material-ui/styles").CreateCSSProperties<{}>>>;
/**
* DateRange picker behavior is inspire by ant design.
* https://ant.design/components/date-picker/
*/
export interface DateRangePickerProps extends WithStyles<typeof styles> {
initialStartDate?: Date;
initialEndDate?: Date;
minDate?: Date | string;
maxDate?: Date | string;
onChange?: (dateRange: DateRange, type?: Focused) => void;
onDayClick?: (date: Date) => void;
onCloseClick?: () => void;
showTime?: boolean;
}
declare const _default: React.ComponentType<Pick<React.PropsWithChildren<DateRangePickerProps>, "children" | "onChange" | "onCloseClick" | "minDate" | "maxDate" | "onDayClick" | "initialStartDate" | "initialEndDate" | "showTime"> & import("@material-ui/core").StyledComponentProps<"root" | "close" | "paper">>;
export default _default;