terra-icon
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -7,2 +7,7 @@ Changelog | ||
1.2.0 - (July 26, 2017) | ||
------------------ | ||
### Changed | ||
* Converted component to use CSS modules | ||
1.1.0 - (July 18, 2017) | ||
@@ -9,0 +14,0 @@ ------------------ |
@@ -17,10 +17,12 @@ 'use strict'; | ||
var _classnames = require('classnames'); | ||
var _bind = require('classnames/bind'); | ||
var _classnames2 = _interopRequireDefault(_classnames); | ||
var _bind2 = _interopRequireDefault(_bind); | ||
require('terra-base/lib/baseStyles'); | ||
require('./Icon.scss'); | ||
var _Icon = require('./Icon.scss'); | ||
var _Icon2 = _interopRequireDefault(_Icon); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -33,2 +35,4 @@ | ||
var cx = _bind2.default.bind(_Icon2.default); | ||
var propTypes = { | ||
@@ -89,3 +93,3 @@ /** | ||
// append to existing classNames | ||
attributes.className = (0, _classnames2.default)('terra-Icon', { 'is-bidi': isBidi }, { 'is-spin': isSpin }, attributes.className); | ||
var classes = cx('icon', { 'is-bidi': isBidi }, { 'is-spin': isSpin }, attributes.className); | ||
@@ -107,3 +111,3 @@ // aria-label is present, remove aria-hidden, set role to img | ||
'svg', | ||
attributes, | ||
_extends({}, attributes, { className: classes }), | ||
children | ||
@@ -110,0 +114,0 @@ ); |
{ | ||
"name": "terra-icon", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "terra-icon", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
303183
3968
1