Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

terra-icon

Package Overview
Dependencies
Maintainers
8
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-icon - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

5

CHANGELOG.md

@@ -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 @@ ------------------

14

lib/IconBase.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc