1 | import { IconDefinition } from '@ant-design/icons/lib/types';
|
2 | import * as React from 'react';
|
3 | import { MiniMap } from '../utils';
|
4 | export interface IconProps {
|
5 | type: string | IconDefinition;
|
6 | className?: string;
|
7 | onClick?: React.MouseEventHandler<SVGSVGElement>;
|
8 | style?: React.CSSProperties;
|
9 | primaryColor?: string;
|
10 | secondaryColor?: string;
|
11 | focusable?: string;
|
12 | }
|
13 | export interface TwoToneColorPaletteSetter {
|
14 | primaryColor: string;
|
15 | secondaryColor?: string;
|
16 | }
|
17 | export interface TwoToneColorPalette extends TwoToneColorPaletteSetter {
|
18 | secondaryColor: string;
|
19 | }
|
20 | declare class Icon extends React.Component<IconProps> {
|
21 | static displayName: string;
|
22 | static definitions: MiniMap<IconDefinition>;
|
23 | static add(...icons: IconDefinition[]): void;
|
24 | static clear(): void;
|
25 | static get(key?: string, colors?: TwoToneColorPalette): IconDefinition | undefined;
|
26 | static setTwoToneColors({ primaryColor, secondaryColor }: TwoToneColorPaletteSetter): void;
|
27 | static getTwoToneColors(): TwoToneColorPalette;
|
28 | render(): any;
|
29 | }
|
30 | export default Icon;
|