/**
* @file ColorPicker
* @description 颜色选择器组件
* @author fex
*/
///
import React from 'react';
import type { ColorResult } from 'react-color';
import type { ColorPickerProps } from '../types';
interface ColorControlState {
isOpened: boolean;
isFocused: boolean;
inputValue: string;
}
export declare class ColorControl extends React.PureComponent {
static defaultProps: {
format: string;
clearable: boolean;
placeholder: string;
allowCustomColor: boolean;
};
state: {
isOpened: boolean;
isFocused: boolean;
inputValue: any;
};
popover: any;
closeTimer: number;
preview: React.RefObject;
input: React.RefObject;
constructor(props: ColorPickerProps);
componentDidUpdate(prevProps: ColorPickerProps): void;
handleFocus(): void;
handleBlur(): void;
focus(): void;
blur(): void;
open(fn?: () => void): void;
close(): void;
clearValue(): void;
handleClick(): void;
handleInputChange(e: React.ChangeEvent): void;
validateColor(value: string): boolean;
handleChange(color: ColorResult): void;
render(): JSX.Element;
}
declare const _default: {
new (props: Omit, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps): {
context: string;
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): JSX.Element;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<{
new (props: Pick, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
context: string;
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): JSX.Element;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof ColorControl;
}>;
} & import("hoist-non-react-statics").NonReactStatics<{
new (props: Pick, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
context: string;
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): JSX.Element;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof ColorControl;
}, {}> & {
ComposedComponent: {
new (props: Pick, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
context: string;
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): JSX.Element;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classPrefix" | "classnames" | "className" | "theme" | "disabled" | "value" | "onChange" | "placement" | "popOverContainer" | "useMobileUI" | "popoverClassName" | "resetValue" | "presetColors"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
format?: string | undefined;
allowCustomColor?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof ColorControl;
};
};
export default _default;