UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

99 lines (98 loc) 5.4 kB
import type { GenerateConfig } from '@rc-component/picker/generate/index'; import type { AnyObject } from '../../_util/type'; export type { DatePickerSemanticType, PickerLocale, PickerProps } from './interface'; declare const generatePicker: <DateType extends AnyObject = AnyObject>(generateConfig: GenerateConfig<DateType>) => (<ValueType = DateType, IsMultiple extends boolean = false>(props: import("./interface").PickerPropsWithMultiple<DateType, import("./interface").PickerProps<DateType>, ValueType, IsMultiple>) => React.ReactElement) & { displayName?: string; } & { displayName?: string; WeekPicker: (<ValueType = DateType, IsMultiple extends boolean = false>(props: import("./interface").PickerPropsWithMultiple<DateType, Omit<import("./interface").PickerProps<DateType>, "picker">, ValueType, IsMultiple>) => React.ReactElement) & { displayName?: string; }; MonthPicker: (<ValueType = DateType, IsMultiple extends boolean = false>(props: import("./interface").PickerPropsWithMultiple<DateType, Omit<import("./interface").PickerProps<DateType>, "picker">, ValueType, IsMultiple>) => React.ReactElement) & { displayName?: string; }; YearPicker: (<ValueType = DateType, IsMultiple extends boolean = false>(props: import("./interface").PickerPropsWithMultiple<DateType, Omit<import("./interface").PickerProps<DateType>, "picker">, ValueType, IsMultiple>) => React.ReactElement) & { displayName?: string; }; RangePicker: import("react").ForwardRefExoticComponent<Omit<import("@rc-component/picker").RangePickerProps<DateType>, "classNames" | "styles" | "locale" | "generateConfig" | "hideHeader"> & { locale?: import("./interface").PickerLocale; size?: import("../../button").ButtonSize; placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight"; bordered?: boolean; status?: import("../../_util/statusUtils").InputStatus; variant?: import("../../config-provider").Variant; dropdownClassName?: string; popupClassName?: string; rootClassName?: string; popupStyle?: React.CSSProperties; classNames?: import("../../_util/hooks/useMergeSemantic/semanticType").DeepClassNameType<{ root?: string; prefix?: string; input?: string; suffix?: string; popup?: string | { root?: string; header?: string; body?: string; content?: string; item?: string; footer?: string; container?: string; }; } | undefined> | ((info: { props: import("./interface").InjectDefaultProps<import("@rc-component/picker").RangePickerProps<DateType>>; }) => import("../../_util/hooks/useMergeSemantic/semanticType").DeepClassNameType<{ root?: string; prefix?: string; input?: string; suffix?: string; popup?: string | { root?: string; header?: string; body?: string; content?: string; item?: string; footer?: string; container?: string; }; } | undefined>); styles?: import("../../_util/hooks/useMergeSemantic/semanticType").DeepStylesType<{ root?: React.CSSProperties; prefix?: React.CSSProperties; input?: React.CSSProperties; suffix?: React.CSSProperties; popup?: { root?: React.CSSProperties; header?: React.CSSProperties; body?: React.CSSProperties; content?: React.CSSProperties; item?: React.CSSProperties; footer?: React.CSSProperties; container?: React.CSSProperties; }; } | undefined> | ((info: { props: import("./interface").InjectDefaultProps<import("@rc-component/picker").RangePickerProps<DateType>>; }) => import("../../_util/hooks/useMergeSemantic/semanticType").DeepStylesType<{ root?: React.CSSProperties; prefix?: React.CSSProperties; input?: React.CSSProperties; suffix?: React.CSSProperties; popup?: { root?: React.CSSProperties; header?: React.CSSProperties; body?: React.CSSProperties; content?: React.CSSProperties; item?: React.CSSProperties; footer?: React.CSSProperties; container?: React.CSSProperties; }; } | undefined>); } & import("react").RefAttributes<import("@rc-component/picker").PickerRef>>; TimePicker: (<ValueType = DateType, IsMultiple extends boolean = false>(props: import("./interface").PickerPropsWithMultiple<DateType, Omit<import("./interface").GenericTimePickerProps<DateType>, "picker">, ValueType, IsMultiple>) => React.ReactElement) & { displayName?: string; }; QuarterPicker: (<ValueType = DateType, IsMultiple extends boolean = false>(props: import("./interface").PickerPropsWithMultiple<DateType, Omit<import("./interface").PickerProps<DateType>, "picker">, ValueType, IsMultiple>) => React.ReactElement) & { displayName?: string; }; }; export default generatePicker;