UNPKG

3.64 kBTypeScriptView Raw
1/// <reference types="react" />
2import type { Dayjs } from 'dayjs';
3import generatePicker from './generatePicker';
4import type { RangePickerProps as BaseRangePickerProps, PickerProps, PickerPropsWithMultiple } from './generatePicker/interface';
5export type DatePickerProps<ValueType = Dayjs | Dayjs> = PickerPropsWithMultiple<Dayjs, PickerProps<Dayjs>, ValueType>;
6export type MonthPickerProps<ValueType = Dayjs | Dayjs> = Omit<DatePickerProps<ValueType>, 'picker'>;
7export type WeekPickerProps<ValueType = Dayjs | Dayjs> = Omit<DatePickerProps<ValueType>, 'picker'>;
8export type RangePickerProps = BaseRangePickerProps<Dayjs>;
9declare const DatePicker: (<ValueType = Dayjs>(props: PickerPropsWithMultiple<Dayjs, PickerProps<Dayjs>, ValueType>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
10 displayName?: string | undefined;
11} & {
12 displayName?: string | undefined;
13 WeekPicker: (<ValueType_1 = Dayjs>(props: PickerPropsWithMultiple<Dayjs, Omit<PickerProps<Dayjs>, "picker">, ValueType_1>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
14 displayName?: string | undefined;
15 };
16 MonthPicker: (<ValueType_1 = Dayjs>(props: PickerPropsWithMultiple<Dayjs, Omit<PickerProps<Dayjs>, "picker">, ValueType_1>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
17 displayName?: string | undefined;
18 };
19 YearPicker: (<ValueType_1 = Dayjs>(props: PickerPropsWithMultiple<Dayjs, Omit<PickerProps<Dayjs>, "picker">, ValueType_1>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
20 displayName?: string | undefined;
21 };
22 RangePicker: import("react").ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<Dayjs>, "locale" | "generateConfig" | "hideHeader"> & {
23 locale?: import("./generatePicker").PickerLocale | undefined;
24 size?: import("antd/es/button").ButtonSize;
25 placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | undefined;
26 bordered?: boolean | undefined;
27 status?: "" | "warning" | "error" | undefined;
28 variant?: "filled" | "outlined" | "borderless" | undefined;
29 dropdownClassName?: string | undefined;
30 popupClassName?: string | undefined;
31 rootClassName?: string | undefined;
32 popupStyle?: import("react").CSSProperties | undefined;
33 } & import("react").RefAttributes<import("rc-picker").PickerRef>>;
34 TimePicker: (<ValueType_2 = Dayjs>(props: PickerPropsWithMultiple<Dayjs, Omit<import("./generatePicker/interface").GenericTimePickerProps<Dayjs>, "picker">, ValueType_2>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
35 displayName?: string | undefined;
36 };
37 QuarterPicker: (<ValueType_1 = Dayjs>(props: PickerPropsWithMultiple<Dayjs, Omit<PickerProps<Dayjs>, "picker">, ValueType_1>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
38 displayName?: string | undefined;
39 };
40};
41export type DatePickerType = typeof DatePicker & {
42 _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
43 _InternalRangePanelDoNotUseOrYouWillBeFired: typeof PureRangePanel;
44 generatePicker: typeof generatePicker;
45};
46declare const PurePanel: (props: import("antd/es/_util/type").AnyObject) => import("react").JSX.Element;
47declare const PureRangePanel: (props: import("antd/es/_util/type").AnyObject) => import("react").JSX.Element;
48declare const _default: DatePickerType;
49export default _default;