Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-custom-share

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-custom-share - npm Package Compare versions

Comparing version 0.0.18 to 0.1.0

13

dist/ShareBlock.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc