UNPKG

857 BTypeScriptView Raw
1import { IconDefinition } from '@ant-design/icons-svg/lib/types';
2import { CSSProperties, FunctionalComponent } from 'vue';
3export interface IconProps {
4 icon: IconDefinition;
5 class?: string;
6 onClick?: (e?: Event) => void;
7 style?: 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}
19interface Color {
20 getTwoToneColors: () => TwoToneColorPalette;
21 setTwoToneColors: (twoToneColors: TwoToneColorPaletteSetter) => void;
22}
23export interface IconBaseType extends Color, FunctionalComponent<IconProps> {
24 displayName: string;
25}
26declare const IconBase: IconBaseType;
27export default IconBase;