/** * @file DatePicker * @description 时间选择器组件 * @author fex */ /// import React from 'react'; import moment from 'moment'; import 'moment/dist/locale/zh-cn'; import type { DatePickerProps, ShortCuts } from '../types'; interface DatePickerState { isOpened: boolean; isFocused: boolean; value: moment.Moment | undefined; inputValue: string | undefined; } export declare class DatePicker extends React.Component { static defaultProps: { viewMode: "time" | "years" | "months" | "days"; shortcuts: string; closeOnSelect: boolean; overlayPlacement: string; scheduleClassNames: string[]; }; state: DatePickerState; constructor(props: DatePickerProps); dom: HTMLDivElement; inputRef: React.RefObject; inputValueCache: string; componentDidMount(): void; componentDidUpdate(prevProps: DatePickerProps): void; focus(): void; handleFocus(e: React.SyntheticEvent): void; handleBlur(e: React.SyntheticEvent): void; handleKeyPress(e: React.KeyboardEvent): void; handleClick(): void; handlePopOverClick(e: React.MouseEvent): void; open(fn?: () => void): void; close(): void; clearValue(e: React.MouseEvent): void; clear(): void; reset(resetValue?: any): void; handleChange(value: moment.Moment): void; inputChange(e: React.ChangeEvent): void; onInputBlur(): void; selectRannge(item: any): void; checkIsValidDate(currentDate: moment.Moment): boolean; getTarget(): HTMLDivElement; getParent(): HTMLDivElement; domRef: (ref: HTMLDivElement) => void; getAvailableShortcuts(key: string): any; renderShortCuts(shortcuts: string | Array): JSX.Element | null; render(): JSX.Element; } declare const _default: { new (props: Omit, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps): { context: string; ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType<{ new (props: Pick, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }): { context: string; ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof DatePicker; }>; } & import("hoist-non-react-statics").NonReactStatics<{ new (props: Pick, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }): { context: string; ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof DatePicker; }, {}> & { ComposedComponent: { new (props: Pick, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }): { context: string; ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "embed" | "label" | "disabled" | "value" | "defaultValue" | "placeholder" | "onFocus" | "onBlur" | "onChange" | "popOverContainer" | "clearable" | "borderMode" | "onRef" | "minDate" | "maxDate" | "useMobileUI" | "timeFormat" | "schedules" | "largeMode" | "todayActiveStyle" | "onScheduleClick" | "timeConstraints" | "inputFormat" | "dateFormat" | "utc" | "popoverClassName" | "format" | "mobileCalendarMode"> & { viewMode?: "time" | "years" | "months" | "days" | "quarters" | undefined; closeOnSelect?: boolean | undefined; shortcuts?: string | ShortCuts[] | undefined; overlayPlacement?: string | undefined; scheduleClassNames?: string[] | undefined; } & {} & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof DatePicker; }; }; export default _default;