diff --git a/CHANGELOG.md b/CHANGELOG.md index bbb8e73c..ff705b2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p --- +## [0.1.5](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.5) - 2019-09-29 + +### Added + +- Full support for Duotone icons + +--- + ## [0.1.4](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.4) - 2019-01-15 ### Changed diff --git a/index.es.js b/index.es.js index 9012885f..3f9597ad 100644 --- a/index.es.js +++ b/index.es.js @@ -130,7 +130,7 @@ function classList(props) { 'fa-li': listItem, 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both', 'fa-flip-vertical': flip === 'vertical' || flip === 'both' - }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined'), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined'), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined'), _classes); // map over all the keys in the classes object + }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined'), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined'), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined'), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object // return an array of the keys where the value for the key is not null return Object.keys(classes).map(function (key) { @@ -327,7 +327,8 @@ FontAwesomeIcon.propTypes = { spin: PropTypes.bool, symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]), title: PropTypes.string, - transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]) + transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), + swapOpacity: PropTypes.bool }; FontAwesomeIcon.defaultProps = { border: false, @@ -345,7 +346,8 @@ FontAwesomeIcon.defaultProps = { spin: false, symbol: false, title: '', - transform: null + transform: null, + swapOpacity: false }; var convertCurry = convert.bind(null, React.createElement); diff --git a/index.js b/index.js index 735f7bda..ce6e5228 100644 --- a/index.js +++ b/index.js @@ -135,7 +135,7 @@ 'fa-li': listItem, 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both', 'fa-flip-vertical': flip === 'vertical' || flip === 'both' - }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined'), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined'), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined'), _classes); // map over all the keys in the classes object + }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined'), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined'), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined'), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object // return an array of the keys where the value for the key is not null return Object.keys(classes).map(function (key) { @@ -332,7 +332,8 @@ spin: PropTypes.bool, symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]), title: PropTypes.string, - transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]) + transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), + swapOpacity: PropTypes.bool }; FontAwesomeIcon.defaultProps = { border: false, @@ -350,7 +351,8 @@ spin: false, symbol: false, title: '', - transform: null + transform: null, + swapOpacity: false }; var convertCurry = convert.bind(null, React.createElement); diff --git a/package.json b/package.json index 3ca592ca..dc762bd5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@fortawesome/react-fontawesome", "description": "Official React component for Font Awesome 5", - "version": "0.1.4", + "version": "0.1.5", "main": "index.js", "module": "index.es.js", "jsnext:main": "index.es.js",