index.d.ts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import type { GenerateConfig } from 'rc-picker/lib/generate/index';
  2. import type { AnyObject } from '../../_util/type';
  3. export type { PickerLocale, PickerProps } from './interface';
  4. declare const generatePicker: <DateType extends AnyObject = AnyObject>(generateConfig: GenerateConfig<DateType>) => (<ValueType = DateType>(props: import("./interface").PickerPropsWithMultiple<DateType, import("./interface").PickerProps<DateType>, ValueType>) => React.ReactElement) & {
  5. displayName?: string;
  6. } & {
  7. displayName?: string;
  8. WeekPicker: (<ValueType = DateType>(props: import("./interface").PickerPropsWithMultiple<DateType, Omit<import("./interface").PickerProps<DateType>, "picker">, ValueType>) => React.ReactElement) & {
  9. displayName?: string;
  10. };
  11. MonthPicker: (<ValueType = DateType>(props: import("./interface").PickerPropsWithMultiple<DateType, Omit<import("./interface").PickerProps<DateType>, "picker">, ValueType>) => React.ReactElement) & {
  12. displayName?: string;
  13. };
  14. YearPicker: (<ValueType = DateType>(props: import("./interface").PickerPropsWithMultiple<DateType, Omit<import("./interface").PickerProps<DateType>, "picker">, ValueType>) => React.ReactElement) & {
  15. displayName?: string;
  16. };
  17. RangePicker: React.ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<DateType>, "classNames" | "styles" | "locale" | "generateConfig" | "hideHeader"> & {
  18. locale?: import("./interface").PickerLocale;
  19. size?: import("../../button").ButtonSize;
  20. placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
  21. bordered?: boolean;
  22. status?: import("../../_util/statusUtils").InputStatus;
  23. variant?: import("../../config-provider").Variant;
  24. dropdownClassName?: string;
  25. popupClassName?: string;
  26. rootClassName?: string;
  27. popupStyle?: React.CSSProperties;
  28. styles?: import("./interface").PickerStyles;
  29. classNames?: import("./interface").PickerClassNames;
  30. } & React.RefAttributes<import("rc-picker").PickerRef>>;
  31. TimePicker: (<ValueType = DateType>(props: import("./interface").PickerPropsWithMultiple<DateType, Omit<import("./interface").GenericTimePickerProps<DateType>, "picker">, ValueType>) => React.ReactElement) & {
  32. displayName?: string;
  33. };
  34. QuarterPicker: (<ValueType = DateType>(props: import("./interface").PickerPropsWithMultiple<DateType, Omit<import("./interface").PickerProps<DateType>, "picker">, ValueType>) => React.ReactElement) & {
  35. displayName?: string;
  36. };
  37. };
  38. export default generatePicker;