UNPKG

1.49 kBTypeScriptView Raw
1import * as React from 'react';
2import type { Dayjs } from 'dayjs';
3import type { InputStatus } from '../_util/statusUtils';
4import type { AnyObject } from '../_util/type';
5import type { GenericTimePickerProps, PickerPropsWithMultiple, RangePickerProps } from '../date-picker/generatePicker/interface';
6export type PickerTimeProps<DateType extends AnyObject> = PickerPropsWithMultiple<DateType, GenericTimePickerProps<DateType>>;
7export type RangePickerTimeProps<DateType extends AnyObject> = Omit<RangePickerProps<DateType>, 'showTime' | 'picker'>;
8export interface TimePickerLocale {
9 placeholder?: string;
10 rangePlaceholder?: [string, string];
11}
12export interface TimeRangePickerProps extends Omit<RangePickerTimeProps<Dayjs>, 'picker'> {
13 popupClassName?: string;
14}
15declare const RangePicker: React.ForwardRefExoticComponent<TimeRangePickerProps & React.RefAttributes<any>>;
16export interface TimePickerProps extends Omit<PickerTimeProps<Dayjs>, 'picker'> {
17 addon?: () => React.ReactNode;
18 status?: InputStatus;
19 popupClassName?: string;
20 rootClassName?: string;
21}
22declare const TimePicker: React.ForwardRefExoticComponent<Omit<TimePickerProps, "ref"> & React.RefAttributes<any>>;
23declare const PurePanel: (props: AnyObject) => React.JSX.Element;
24type MergedTimePicker = typeof TimePicker & {
25 RangePicker: typeof RangePicker;
26 _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
27};
28declare const _default: MergedTimePicker;
29export default _default;