react-social-icons
Advanced tools
Comparing version 5.9.0 to 5.10.0
@@ -16,2 +16,6 @@ "use strict"; | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
@@ -21,10 +25,13 @@ | ||
// eslint-disable-next-line react/prop-types | ||
function Background(_ref) { | ||
var networkKey = _ref.networkKey, | ||
props = _objectWithoutProperties(_ref, ["networkKey"]); | ||
fgColor = _ref.fgColor, | ||
props = _objectWithoutProperties(_ref, ["networkKey", "fgColor"]); | ||
// eslint-disable-line react/prop-types | ||
return _react.default.createElement("g", _extends({}, props, { | ||
className: "social-svg-background", | ||
style: _styles.socialSvgContent | ||
style: _objectSpread({}, _styles.socialSvgContent, { | ||
fill: fgColor || _styles.socialSvgContent.fill | ||
}) | ||
}), _react.default.createElement("circle", { | ||
@@ -31,0 +38,0 @@ cx: "32", |
@@ -72,3 +72,5 @@ "use strict"; | ||
viewBox: "0 0 64 64" | ||
}, _react.default.createElement(_background.default, null), _react.default.createElement(_icon.default, { | ||
}, _react.default.createElement(_background.default, { | ||
fgColor: fgColor | ||
}), _react.default.createElement(_icon.default, { | ||
networkKey: networkKey, | ||
@@ -75,0 +77,0 @@ fgColor: fgColor |
{ | ||
"name": "react-social-icons", | ||
"version": "5.9.0", | ||
"version": "5.10.0", | ||
"description": "beautiful, easy svg social icons in react", | ||
@@ -5,0 +5,0 @@ "main": "./build/react-social-icons.js", |
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
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
115532
940