@ant-design/icons
Advanced tools
Comparing version 0.2.1-beta.8 to 0.3.0-beta.1
@@ -147,4 +147,4 @@ export var manifest = { | ||
'google-plus': 'GooglePlus', | ||
'hdd': 'Hdd', | ||
'google': 'Google', | ||
'hdd': 'Hdd', | ||
'heart-o': 'HeartO', | ||
@@ -156,4 +156,4 @@ 'heart': 'Heart', | ||
'idcard': 'Idcard', | ||
'inbox': 'Inbox', | ||
'ie': 'Ie', | ||
'inbox': 'Inbox', | ||
'indent-left': 'IndentLeft', | ||
@@ -307,3 +307,3 @@ 'indent-right': 'IndentRight', | ||
'yuque': 'Yuque', | ||
'zhihu': 'Zhihu' | ||
'zhihu': 'Zhihu', | ||
}; |
@@ -146,4 +146,4 @@ export declare const CodeSandbox: IconDefinition; | ||
export declare const GooglePlus: IconDefinition; | ||
export declare const Hdd: IconDefinition; | ||
export declare const Google: IconDefinition; | ||
export declare const Hdd: IconDefinition; | ||
export declare const HeartO: IconDefinition; | ||
@@ -155,4 +155,4 @@ export declare const Heart: IconDefinition; | ||
export declare const Idcard: IconDefinition; | ||
export declare const Inbox: IconDefinition; | ||
export declare const Ie: IconDefinition; | ||
export declare const Inbox: IconDefinition; | ||
export declare const IndentLeft: IconDefinition; | ||
@@ -308,16 +308,11 @@ export declare const IndentRight: IconDefinition; | ||
export declare const antDesignIcons: IconDefinition[]; | ||
export interface AbstractTree { | ||
width: number; | ||
height: number; | ||
viewBox: string; | ||
style?: string; | ||
children: Array<{ | ||
tag: string; | ||
attrs: { | ||
[key: string]: string; | ||
}; | ||
}>; | ||
export interface AbstractNode { | ||
tag: string; | ||
attrs: { | ||
[key: string]: string; | ||
}; | ||
children: AbstractNode[]; | ||
} | ||
export interface IconDefinition extends AbstractTree { | ||
export interface IconDefinition extends AbstractNode { | ||
name: string; | ||
} |
@@ -149,4 +149,4 @@ "use strict"; | ||
'google-plus': 'GooglePlus', | ||
'hdd': 'Hdd', | ||
'google': 'Google', | ||
'hdd': 'Hdd', | ||
'heart-o': 'HeartO', | ||
@@ -158,4 +158,4 @@ 'heart': 'Heart', | ||
'idcard': 'Idcard', | ||
'inbox': 'Inbox', | ||
'ie': 'Ie', | ||
'inbox': 'Inbox', | ||
'indent-left': 'IndentLeft', | ||
@@ -309,3 +309,3 @@ 'indent-right': 'IndentRight', | ||
'yuque': 'Yuque', | ||
'zhihu': 'Zhihu' | ||
'zhihu': 'Zhihu', | ||
}; |
@@ -146,4 +146,4 @@ export declare const CodeSandbox: IconDefinition; | ||
export declare const GooglePlus: IconDefinition; | ||
export declare const Hdd: IconDefinition; | ||
export declare const Google: IconDefinition; | ||
export declare const Hdd: IconDefinition; | ||
export declare const HeartO: IconDefinition; | ||
@@ -155,4 +155,4 @@ export declare const Heart: IconDefinition; | ||
export declare const Idcard: IconDefinition; | ||
export declare const Inbox: IconDefinition; | ||
export declare const Ie: IconDefinition; | ||
export declare const Inbox: IconDefinition; | ||
export declare const IndentLeft: IconDefinition; | ||
@@ -308,16 +308,11 @@ export declare const IndentRight: IconDefinition; | ||
export declare const antDesignIcons: IconDefinition[]; | ||
export interface AbstractTree { | ||
width: number; | ||
height: number; | ||
viewBox: string; | ||
style?: string; | ||
children: Array<{ | ||
tag: string; | ||
attrs: { | ||
[key: string]: string; | ||
}; | ||
}>; | ||
export interface AbstractNode { | ||
tag: string; | ||
attrs: { | ||
[key: string]: string; | ||
}; | ||
children: AbstractNode[]; | ||
} | ||
export interface IconDefinition extends AbstractTree { | ||
export interface IconDefinition extends AbstractNode { | ||
name: string; | ||
} |
{ | ||
"name": "@ant-design/icons", | ||
"version": "0.2.1-beta.8", | ||
"version": "0.3.0-beta.1", | ||
"description": "Ant Design Icons", | ||
@@ -65,6 +65,7 @@ "module": "es/index.js", | ||
"mobx-react": "^5.2.5", | ||
"parse5": "^5.0.0", | ||
"parse5": "^5.1.0", | ||
"react": "^16.4.2", | ||
"react-dom": "^16.4.2", | ||
"rimraf": "^2.6.2", | ||
"rxjs": "^6.2.2", | ||
"styled-components": "^3.4.4", | ||
@@ -94,3 +95,4 @@ "svgo": "^1.0.5", | ||
"ts-jest": { | ||
"tsConfigFile": "./test/tsconfig.json" | ||
"tsConfigFile": "./test/tsconfig.json", | ||
"skipBabel": true | ||
} | ||
@@ -101,5 +103,6 @@ }, | ||
"<rootDir>/packages/", | ||
"<rootDir>/node_modules/" | ||
"<rootDir>/node_modules/", | ||
"<rootDir>/.cache/" | ||
] | ||
} | ||
} |
@@ -17,5 +17,5 @@ <h1 align="center"> | ||
## Status: **Beta** | ||
## ⚠️ Status: **Beta** | ||
The APIs and icons may change in the future, please **do NOT** use in any production environment. | ||
⚠️ The APIs and icons may change in the future, please **do NOT** use in any production environment. | ||
@@ -37,12 +37,11 @@ ## Install | ||
console.log(AntDesign); | ||
// Output: | ||
// { width: 1024, | ||
// height: 1024, | ||
// viewBox: '0 0 1024 1024', | ||
// style: '', | ||
// { name: 'ant-design', | ||
// tag: 'svg', | ||
// attrs: | ||
// { xmlns: 'http://www.w3.org/2000/svg', | ||
// viewBox: '0 0 1024 1024' }, | ||
// children: | ||
// [ { tag: 'path', attrs: [Object] }, | ||
// { tag: 'path', attrs: [Object] } ], | ||
// name: 'ant-design' } | ||
// [ { tag: 'path', attrs: [Object], children: [] }, | ||
// { tag: 'path', attrs: [Object], children: [] } ] } | ||
``` | ||
@@ -55,12 +54,12 @@ | ||
```ts | ||
interface IconDefinition extends AbstractTree { | ||
name: string; // kebab-case-style | ||
interface AbstractNode { | ||
tag: string; | ||
attrs: { | ||
[key: string]: string; | ||
}; | ||
children: AbstractNode[]; | ||
} | ||
interface AbstractTree { | ||
width: number; | ||
height: number; | ||
viewBox: string; | ||
style?: string; | ||
children: Array<{ tag: string, attrs: { [key: string]: string } }>; | ||
interface IconDefinition extends AbstractNode { | ||
name: string; // kebab-case-style | ||
} | ||
@@ -67,0 +66,0 @@ ``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
954187
4214
46
71