@lightspeed/cirrus-icon
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="3.5.0"></a> | ||
# [3.5.0](https://github.com/lightspeedretail/cirrus/compare/@lightspeed/cirrus-icon@3.4.0...@lightspeed/cirrus-icon@3.5.0) (2017-12-12) | ||
### Features | ||
* **button:** Add positioning support for childrens ([#284](https://github.com/lightspeedretail/cirrus/issues/284)) ([20f40ed](https://github.com/lightspeedretail/cirrus/commit/20f40ed)) | ||
<a name="3.4.0"></a> | ||
@@ -8,0 +19,0 @@ # [3.4.0](https://github.com/lightspeedretail/cirrus/compare/@lightspeed/cirrus-icon@3.3.1...@lightspeed/cirrus-icon@3.4.0) (2017-12-11) |
@@ -5,2 +5,3 @@ import React from 'react'; | ||
import { colors } from '@lightspeed/cirrus-tokens/src/colors'; | ||
import { fontSizeAliases } from '@lightspeed/cirrus-tokens/src/typography'; | ||
import * as icons from './icons/'; | ||
@@ -11,2 +12,3 @@ import { pascalCaseString } from './Icon.utils'; | ||
const iconClasses = cn('cr-icon', `cr-icon-${name}`); | ||
const iconSize = fontSizeAliases[size] || size; | ||
@@ -19,4 +21,4 @@ const Component = icons[pascalCaseString(name)]; | ||
style: { | ||
width: size, | ||
height: size, | ||
width: iconSize, | ||
height: iconSize, | ||
}, | ||
@@ -41,2 +43,4 @@ color: colors[color] || color, | ||
Icon.cirrusName = 'Icon'; | ||
export default Icon; |
{ | ||
"name": "@lightspeed/cirrus-icon", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "Cirrus Icon Component", | ||
@@ -5,0 +5,0 @@ "author": "Lightspeed", |
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
253351
204
2778
1