UNPKG

942 BTypeScriptView Raw
1import * as React from 'react';
2import type { IconDefinition } from '@ant-design/icons-svg/lib/types';
3export interface IconProps {
4 icon: IconDefinition;
5 className?: string;
6 onClick?: React.MouseEventHandler<SVGSVGElement>;
7 style?: React.CSSProperties;
8 primaryColor?: string;
9 secondaryColor?: string;
10 focusable?: string;
11}
12export interface TwoToneColorPaletteSetter {
13 primaryColor: string;
14 secondaryColor?: string;
15}
16export interface TwoToneColorPalette extends TwoToneColorPaletteSetter {
17 calculated?: boolean;
18}
19declare function setTwoToneColors({ primaryColor, secondaryColor }: TwoToneColorPaletteSetter): void;
20declare function getTwoToneColors(): TwoToneColorPalette;
21interface IconBaseComponent<P> extends React.FC<P> {
22 getTwoToneColors: typeof getTwoToneColors;
23 setTwoToneColors: typeof setTwoToneColors;
24}
25declare const IconBase: IconBaseComponent<IconProps>;
26export default IconBase;