@ltht-react/icon
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -6,2 +6,11 @@ # Change Log | ||
## [0.1.5](https://github.com/ltht-epr/ltht-react/compare/@ltht-react/icon@0.1.4...@ltht-react/icon@0.1.5) (2020-03-16) | ||
**Note:** Version bump only for package @ltht-react/icon | ||
## [0.1.4](https://ssh.github.com/ltht-epr/ltht-react/compare/@ltht-react/icon@0.1.3...@ltht-react/icon@0.1.4) (2020-03-12) | ||
@@ -8,0 +17,0 @@ |
@@ -11,3 +11,3 @@ "use strict"; | ||
var styles_1 = require("@ltht-react/styles"); | ||
var styles = core_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), styles_1.ICON_DEFAULT_COLOUR); | ||
var styles = core_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), styles_1.ICON_COLOURS.DEFAULT); | ||
var calculateIconType = function (direction) { | ||
@@ -14,0 +14,0 @@ switch (direction) { |
@@ -13,3 +13,3 @@ "use strict"; | ||
var status = _a.status, size = _a.size; | ||
var styles = core_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), status === 'green' && "color: " + styles_1.ICON_SUCCESS_COLOUR + ";", status === 'amber' && "color: " + styles_1.ICON_WARNING_COLOUR + ";", status === 'red' && "color: " + styles_1.ICON_DANGER_COLOUR + ";", status === 'default' && "color: " + styles_1.ICON_DEFAULT_COLOUR + ";"); | ||
var styles = core_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), status === 'green' && "color: " + styles_1.ICON_COLOURS.SUCCESS + ";", status === 'amber' && "color: " + styles_1.ICON_COLOURS.WARNING + ";", status === 'red' && "color: " + styles_1.ICON_COLOURS.DANGER + ";", status === 'default' && "color: " + styles_1.ICON_COLOURS.DEFAULT + ";"); | ||
return core_1.jsx(react_fontawesome_1.FontAwesomeIcon, { css: styles, icon: free_solid_svg_icons_1.faExclamationTriangle, size: styles_1.calculateIconSize(size) }); | ||
@@ -16,0 +16,0 @@ }; |
@@ -11,3 +11,3 @@ "use strict"; | ||
var styles_1 = require("@ltht-react/styles"); | ||
var styles = core_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), styles_1.ICON_PRIMARY_COLOUR); | ||
var styles = core_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), styles_1.ICON_COLOURS.PRIMARY); | ||
var SpinnerIcon = function (_a) { | ||
@@ -14,0 +14,0 @@ var size = _a.size; |
{ | ||
"name": "@ltht-react/icon", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "ltht-react styled Icon component.", | ||
@@ -33,3 +33,3 @@ "author": "LTHT", | ||
"@fortawesome/react-fontawesome": "^0.1.8", | ||
"@ltht-react/styles": "^0.1.1", | ||
"@ltht-react/styles": "^0.1.2", | ||
"@ltht-react/types": "^0.0.11", | ||
@@ -40,3 +40,3 @@ "@ltht-react/utils": "^0.1.4", | ||
}, | ||
"gitHead": "7ebcfe2e86ef8e5ee215db26dee3c7dac66b7686" | ||
"gitHead": "3c74589ef31401a6999d236ffdf430960acc7041" | ||
} |
@@ -0,0 +0,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
10513
1
Updated@ltht-react/styles@^0.1.2