react-custom-share
Advanced tools
Comparing version 0.0.18 to 0.1.0
@@ -26,3 +26,4 @@ 'use strict'; | ||
className = props.className, | ||
blockRest = _objectWithoutProperties(props, ['url', 'button', 'buttons', 'className']); | ||
buttonCustomClassName = props.buttonCustomClassName, | ||
blockRest = _objectWithoutProperties(props, ['url', 'button', 'buttons', 'className', 'buttonCustomClassName']); | ||
@@ -41,3 +42,8 @@ return _react2.default.createElement( | ||
Button, | ||
_extends({ key: network, network: network, url: url }, rest), | ||
_extends({ | ||
key: network, | ||
network: network, | ||
url: url, | ||
customClassName: buttonCustomClassName | ||
}, rest), | ||
_react2.default.createElement(Icon, null) | ||
@@ -56,5 +62,6 @@ ); | ||
header: _propTypes2.default.string, | ||
className: _propTypes2.default.string | ||
className: _propTypes2.default.string, | ||
buttonCustomClassName: _propTypes2.default.string | ||
}; | ||
exports.default = ShareBlock; |
@@ -13,6 +13,2 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _react = require('react'); | ||
@@ -36,9 +32,4 @@ | ||
ShareBlockStandard.propTypes = { | ||
url: _propTypes2.default.string.isRequired, | ||
button: _propTypes2.default.func.isRequired, | ||
buttons: _propTypes2.default.array.isRequired, | ||
text: _propTypes2.default.string | ||
}; | ||
ShareBlockStandard.propTypes = {}; | ||
exports.default = ShareBlockStandard; |
@@ -41,3 +41,3 @@ 'use strict'; | ||
var ShareButtonCircle = function ShareButtonCircle(props) { | ||
var className = props.className; | ||
var customClassName = props.customClassName; | ||
@@ -47,3 +47,3 @@ var dynamicStylesStr = dynamicStyles(props); | ||
return _react2.default.createElement(_ShareButton2.default, _extends({ | ||
className: (0, _emotion.cx)(styles, dynamicStylesStr, className) | ||
className: (0, _emotion.cx)(styles, dynamicStylesStr, customClassName) | ||
}, props)); | ||
@@ -53,5 +53,5 @@ }; | ||
ShareButtonCircle.propTypes = { | ||
className: _propTypes2.default.any | ||
customClassName: _propTypes2.default.any | ||
}; | ||
exports.default = ShareButtonCircle; |
@@ -41,3 +41,3 @@ 'use strict'; | ||
var ShareButtonIconOnly = function ShareButtonIconOnly(props) { | ||
var className = props.className; | ||
var customClassName = props.customClassName; | ||
@@ -47,3 +47,3 @@ var dynamicStylesStr = dynamicStyles(props); | ||
return _react2.default.createElement(_ShareButton2.default, _extends({ | ||
className: (0, _emotion.cx)(styles, dynamicStylesStr, className) | ||
className: (0, _emotion.cx)(styles, dynamicStylesStr, customClassName) | ||
}, props)); | ||
@@ -53,5 +53,5 @@ }; | ||
ShareButtonIconOnly.propTypes = { | ||
className: _propTypes2.default.any | ||
customClassName: _propTypes2.default.any | ||
}; | ||
exports.default = ShareButtonIconOnly; |
@@ -41,3 +41,3 @@ 'use strict'; | ||
var ShareButtonOutline = function ShareButtonOutline(props) { | ||
var className = props.className; | ||
var customClassName = props.customClassName; | ||
@@ -47,3 +47,3 @@ var dynamicStylesStr = dynamicStyles(props); | ||
return _react2.default.createElement(_ShareButton2.default, _extends({ | ||
className: (0, _emotion.cx)(styles, dynamicStylesStr, className) | ||
className: (0, _emotion.cx)(styles, dynamicStylesStr, customClassName) | ||
}, props)); | ||
@@ -53,5 +53,5 @@ }; | ||
ShareButtonOutline.propTypes = { | ||
className: _propTypes2.default.any | ||
customClassName: _propTypes2.default.string | ||
}; | ||
exports.default = ShareButtonOutline; |
@@ -41,8 +41,8 @@ 'use strict'; | ||
var ShareButtonRectangle = function ShareButtonRectangle(props) { | ||
var className = props.className; | ||
var customClassName = props.customClassName; | ||
var dynamicStylesStr = dynamicStyles(props); | ||
var dynamicClassName = dynamicStyles(props); | ||
return _react2.default.createElement(_ShareButton2.default, _extends({ | ||
className: (0, _emotion.cx)(styles, dynamicStylesStr, className) | ||
className: (0, _emotion.cx)(styles, dynamicClassName, customClassName) | ||
}, props)); | ||
@@ -52,5 +52,5 @@ }; | ||
ShareButtonRectangle.propTypes = { | ||
className: _propTypes2.default.any | ||
customClassName: _propTypes2.default.string | ||
}; | ||
exports.default = ShareButtonRectangle; |
@@ -41,3 +41,3 @@ 'use strict'; | ||
var ShareButtonRoundSquare = function ShareButtonRoundSquare(props) { | ||
var className = props.className; | ||
var customClassName = props.customClassName; | ||
@@ -47,3 +47,3 @@ var dynamicStylesStr = dynamicStyles(props); | ||
return _react2.default.createElement(_ShareButton2.default, _extends({ | ||
className: (0, _emotion.cx)(styles, dynamicStylesStr, className) | ||
className: (0, _emotion.cx)(styles, dynamicStylesStr, customClassName) | ||
}, props)); | ||
@@ -53,5 +53,5 @@ }; | ||
ShareButtonRoundSquare.propTypes = { | ||
className: _propTypes2.default.any | ||
customClassName: _propTypes2.default.string | ||
}; | ||
exports.default = ShareButtonRoundSquare; |
{ | ||
"name": "react-custom-share", | ||
"version": "0.0.18", | ||
"version": "0.1.0", | ||
"description": "Social sharing buttons for React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.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
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
react-share |
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
46381
0