You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.1 KiB
56 lines
2.1 KiB
import * as React from 'react';
|
|
import { ValidateMessages } from 'rc-field-form/lib/interface';
|
|
import { RenderEmptyHandler } from './renderEmpty';
|
|
import { Locale } from '../locale-provider';
|
|
import { ConfigConsumer, ConfigContext, CSPConfig, DirectionType, ConfigConsumerProps, Theme } from './context';
|
|
import SizeContext, { SizeType } from './SizeContext';
|
|
import { RequiredMark } from '../form/Form';
|
|
export { RenderEmptyHandler, ConfigContext, ConfigConsumer, CSPConfig, DirectionType, ConfigConsumerProps, };
|
|
export declare const configConsumerProps: string[];
|
|
export interface ConfigProviderProps {
|
|
getTargetContainer?: () => HTMLElement;
|
|
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
|
|
prefixCls?: string;
|
|
iconPrefixCls?: string;
|
|
children?: React.ReactNode;
|
|
renderEmpty?: RenderEmptyHandler;
|
|
csp?: CSPConfig;
|
|
autoInsertSpaceInButton?: boolean;
|
|
form?: {
|
|
validateMessages?: ValidateMessages;
|
|
requiredMark?: RequiredMark;
|
|
colon?: boolean;
|
|
};
|
|
input?: {
|
|
autoComplete?: string;
|
|
};
|
|
locale?: Locale;
|
|
pageHeader?: {
|
|
ghost: boolean;
|
|
};
|
|
componentSize?: SizeType;
|
|
direction?: DirectionType;
|
|
space?: {
|
|
size?: SizeType | number;
|
|
};
|
|
virtual?: boolean;
|
|
dropdownMatchSelectWidth?: boolean;
|
|
}
|
|
export declare const defaultPrefixCls = "ant";
|
|
export declare const defaultIconPrefixCls = "anticon";
|
|
declare function getGlobalIconPrefixCls(): string;
|
|
declare const setGlobalConfig: ({ prefixCls, iconPrefixCls, theme, }: Pick<ConfigProviderProps, "prefixCls" | "iconPrefixCls"> & {
|
|
theme?: Theme | undefined;
|
|
}) => void;
|
|
export declare const globalConfig: () => {
|
|
getPrefixCls: (suffixCls?: string | undefined, customizePrefixCls?: string | undefined) => string;
|
|
getIconPrefixCls: typeof getGlobalIconPrefixCls;
|
|
getRootPrefixCls: (rootPrefixCls?: string | undefined, customizePrefixCls?: string | undefined) => string;
|
|
};
|
|
declare const ConfigProvider: React.FC<ConfigProviderProps> & {
|
|
ConfigContext: typeof ConfigContext;
|
|
SizeContext: typeof SizeContext;
|
|
config: typeof setGlobalConfig;
|
|
};
|
|
export default ConfigProvider;
|