1 | import * as React from 'react';
|
2 | import { ValidateMessages } from 'rc-field-form/lib/interface';
|
3 | import { RenderEmptyHandler } from './renderEmpty';
|
4 | import { Locale } from '../locale-provider';
|
5 | import { ConfigConsumer, ConfigContext, CSPConfig, DirectionType, ConfigConsumerProps } from './context';
|
6 | import SizeContext, { SizeType } from './SizeContext';
|
7 | import { RequiredMark } from '../form/Form';
|
8 | export { RenderEmptyHandler, ConfigContext, ConfigConsumer, CSPConfig, DirectionType, ConfigConsumerProps, };
|
9 | export declare const configConsumerProps: string[];
|
10 | export interface ConfigProviderProps {
|
11 | getTargetContainer?: () => HTMLElement;
|
12 | getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
13 | prefixCls?: string;
|
14 | iconPrefixCls?: string;
|
15 | children?: React.ReactNode;
|
16 | renderEmpty?: RenderEmptyHandler;
|
17 | csp?: CSPConfig;
|
18 | autoInsertSpaceInButton?: boolean;
|
19 | form?: {
|
20 | validateMessages?: ValidateMessages;
|
21 | requiredMark?: RequiredMark;
|
22 | };
|
23 | input?: {
|
24 | autoComplete?: string;
|
25 | };
|
26 | locale?: Locale;
|
27 | pageHeader?: {
|
28 | ghost: boolean;
|
29 | };
|
30 | componentSize?: SizeType;
|
31 | direction?: DirectionType;
|
32 | space?: {
|
33 | size?: SizeType | number;
|
34 | };
|
35 | virtual?: boolean;
|
36 | dropdownMatchSelectWidth?: boolean;
|
37 | }
|
38 | export declare const defaultPrefixCls = "ant";
|
39 | declare const setGlobalConfig: (params: Pick<ConfigProviderProps, 'prefixCls'>) => void;
|
40 | export declare const globalConfig: () => {
|
41 | getPrefixCls: (suffixCls?: string | undefined, customizePrefixCls?: string | undefined) => string;
|
42 | getRootPrefixCls: (rootPrefixCls?: string | undefined, customizePrefixCls?: string | undefined) => string;
|
43 | };
|
44 | declare const ConfigProvider: React.FC<ConfigProviderProps> & {
|
45 | ConfigContext: typeof ConfigContext;
|
46 | SizeContext: typeof SizeContext;
|
47 | config: typeof setGlobalConfig;
|
48 | };
|
49 | export default ConfigProvider;
|