react-antd-icons
Advanced tools
Comparing version 0.0.1-alpha.2 to 0.0.1-alpha.3
@@ -1,1 +0,1 @@ | ||
export * from './components/AntdIcon'; | ||
export { default as AntdIcon, IAntdIconProps } from './components/AntdIcon'; |
@@ -55,3 +55,3 @@ import { library, prefix } from 'antd-icons'; | ||
var _a = this.props, type = _a.type, rest = __rest(_a, ["type"]); | ||
return (createElement("svg", __assign({ width: '1em', height: '1em', fill: 'currentColor' }, rest), | ||
return (createElement("svg", __assign({ "data-icon": type, width: '1em', height: '1em', fill: 'currentColor' }, rest), | ||
createElement("use", { xlinkHref: "#" + prefix + type }))); | ||
@@ -71,1 +71,3 @@ }; | ||
}(Component)); | ||
export { AntdIcon }; |
@@ -1,1 +0,1 @@ | ||
export * from './components/AntdIcon'; | ||
export { default as AntdIcon, IAntdIconProps } from './components/AntdIcon'; |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var antdIcons = require('antd-icons'); | ||
@@ -57,3 +59,3 @@ var React = require('react'); | ||
var _a = this.props, type = _a.type, rest = __rest(_a, ["type"]); | ||
return (React.createElement("svg", __assign({ width: '1em', height: '1em', fill: 'currentColor' }, rest), | ||
return (React.createElement("svg", __assign({ "data-icon": type, width: '1em', height: '1em', fill: 'currentColor' }, rest), | ||
React.createElement("use", { xlinkHref: "#" + antdIcons.prefix + type }))); | ||
@@ -73,1 +75,3 @@ }; | ||
}(React.Component)); | ||
exports.AntdIcon = AntdIcon; |
{ | ||
"name": "react-antd-icons", | ||
"version": "0.0.1-alpha.2", | ||
"version": "0.0.1-alpha.3", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./esm/index.js", |
@@ -9,3 +9,6 @@ { | ||
"declaration": true | ||
} | ||
}, | ||
"include": [ | ||
"src/" | ||
] | ||
} |
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
18847
70
250