UNPKG

2.01 kBTypeScriptView Raw
1import { AbstractNode, IconDefinition } from '@ant-design/icons-svg/lib/types';
2export declare function warn(valid: boolean, message: string): void;
3export declare function warning(valid: boolean, message: string): void;
4export declare function isIconDefinition(target: any): target is IconDefinition;
5export declare function normalizeAttrs(attrs?: Attrs): Attrs;
6export interface Attrs {
7 [key: string]: string;
8}
9export declare type StringKeyOf<T> = Extract<keyof T, string>;
10export declare type EventHandlers<E> = {
11 [K in StringKeyOf<E>]?: E[K] extends () => any ? E[K] : (payload: E[K]) => void;
12};
13export declare function generate(node: AbstractNode, key: string, rootProps?: {
14 [key: string]: any;
15} | false): any;
16export declare function getSecondaryColor(primaryColor: string): string;
17export declare function normalizeTwoToneColors(twoToneColor: string | [string, string] | undefined): string[];
18export declare const svgBaseProps: any;
19export declare const iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
20export declare const useInsertStyles: (styleStr?: string) => void;