Socket
Socket
Sign inDemoInstall

react-google-button

Package Overview
Dependencies
6
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.1 to 0.5.2

18

dist/react-google-button.js

@@ -1,2 +0,2 @@

/*! react-google-button.js v0.5.1 | (c) prescottprue */
/*! react-google-button.js v0.5.2 | (c) prescottprue */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -11,3 +11,3 @@ if(typeof exports === 'object' && typeof module === 'object')

root["ReactGoogleButton"] = factory(root["React"], root["PropTypes"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__) {
})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_1__) {
return /******/ (function(modules) { // webpackBootstrap

@@ -179,16 +179,10 @@ /******/ // The module cache

var _GoogleButton = __webpack_require__(4);
var _GoogleButton2 = __webpack_require__(4);
Object.defineProperty(exports, 'GoogleButton', {
enumerable: true,
get: function get() {
return _GoogleButton.GoogleButton;
}
});
var _GoogleButton3 = _interopRequireDefault(_GoogleButton2);
var _GoogleButton2 = _interopRequireDefault(_GoogleButton);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _GoogleButton2.default;
exports.GoogleButton = _GoogleButton3.default;
exports.default = _GoogleButton3.default;

@@ -195,0 +189,0 @@ /***/ }),

@@ -1,2 +0,2 @@

/*! react-google-button.js v0.5.1 | (c) prescottprue */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):"object"==typeof exports?exports.ReactGoogleButton=t(require("react"),require("prop-types")):e.ReactGoogleButton=t(e.React,e.PropTypes)}(this,function(e,t){return function(e){function t(r){if(l[r])return l[r].exports;var a=l[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var l={};return t.m=e,t.c=l,t.d=function(e,l,r){t.o(e,l)||Object.defineProperty(e,l,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var l=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(l,"a",l),l},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=3)}([function(t,l){t.exports=e},function(e,l){e.exports=t},function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},a={height:"50px",width:"240px",border:"none",textAlign:"center",verticalAlign:"center",boxShadow:"0 2px 4px 0 rgba(0,0,0,.25)",fontSize:"16px",lineHeight:"48px",display:"block",borderRadius:"1px",transition:"background-color .218s, border-color .218s, box-shadow .218s",fontFamily:"Roboto,arial,sans-serif",cursor:"pointer"};t.darkStyle=r({backgroundColor:"#4285f4",color:"#fff"},a),t.lightStyle=r({backgroundColor:"#fff",color:"rgba(0,0,0,.54)"},a),t.iconStyle={width:"48px",height:"48px",textAlign:"center",verticalAlign:"center",display:"block",marginTop:"1px",marginLeft:"1px",float:"left",backgroundColor:"#fff",borderRadius:"1px",whiteSpace:"nowrap"},t.svgStyle={width:"48px",height:"48px",display:"block"},t.hoverStyle={boxShadow:"0 0 3px 3px rgba(66,133,244,.3)",transition:"background-color .218s, border-color .218s, box-shadow .218s"},t.disabledStyle={backgroundColor:"rgba(37, 5, 5, .08)",color:"rgba(0, 0, 0, .40)",cursor:"not-allowed"},t.disabledIconStyle={backgroundColor:"transparent"}},function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GoogleButton=void 0;var r=l(4);Object.defineProperty(t,"GoogleButton",{enumerable:!0,get:function(){return r.GoogleButton}});var a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=a.default},function(e,t,l){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var l={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(l[r]=e[r]);return l}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},d=function(){function e(e,t){for(var l=0;l<t.length;l++){var r=t[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,l,r){return l&&e(t.prototype,l),r&&e(t,r),t}}(),f=l(0),s=r(f),c=l(1),p=r(c),h=l(5),g=l(2),m=function(e){function t(){var e,l,r,a;n(this,t);for(var u=arguments.length,d=Array(u),f=0;f<u;f++)d[f]=arguments[f];return l=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(d))),r.state={hovered:!1},r.getStyle=function(e){var t="dark"===r.props.type?g.darkStyle:g.lightStyle;return r.state.hovered?i({},t,g.hoverStyle,e):r.props.disabled?i({},t,g.disabledStyle,e):i({},t,e)},r.mouseOver=function(){r.props.disabled||r.setState({hovered:!0})},r.mouseOut=function(){r.props.disabled||r.setState({hovered:!1})},r.click=function(e){r.props.disabled||r.props.onClick(e)},a=l,o(r,a)}return u(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.label,l=e.style,r=a(e,["label","style"]);return s.default.createElement("div",i({},r,{onClick:this.click,style:this.getStyle(l),onMouseOver:this.mouseOver,onMouseOut:this.mouseOut}),s.default.createElement(h.GoogleIcon,this.props),s.default.createElement("span",null,t))}}]),t}(f.PureComponent);m.propTypes={label:p.default.string,disabled:p.default.bool,onClick:p.default.func,type:p.default.oneOf(["light","dark"]),style:p.default.object},m.defaultProps={label:"Sign in with Google",disabled:!1,type:"dark",onClick:function(){}},t.default=m},function(e,t,l){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleIcon=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},n=l(0),o=r(n),u=l(1),i=r(u),d=l(2),f=o.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"46px",height:"46px",viewBox:"0 0 46 46",style:d.svgStyle},o.default.createElement("defs",null,o.default.createElement("filter",{x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"objectBoundingBox",id:"filter-1"},o.default.createElement("feOffset",{dx:"0",dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),o.default.createElement("feGaussianBlur",{stdDeviation:"0.5",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),o.default.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.168 0",in:"shadowBlurOuter1",type:"matrix",result:"shadowMatrixOuter1"}),o.default.createElement("feOffset",{dx:"0",dy:"0",in:"SourceAlpha",result:"shadowOffsetOuter2"}),o.default.createElement("feGaussianBlur",{stdDeviation:"0.5",in:"shadowOffsetOuter2",result:"shadowBlurOuter2"}),o.default.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.084 0",in:"shadowBlurOuter2",type:"matrix",result:"shadowMatrixOuter2"}),o.default.createElement("feMerge",null,o.default.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),o.default.createElement("feMergeNode",{in:"shadowMatrixOuter2"}),o.default.createElement("feMergeNode",{in:"SourceGraphic"}))),o.default.createElement("rect",{id:"path-2",x:"0",y:"0",width:"40",height:"40",rx:"2"}),o.default.createElement("rect",{id:"path-3",x:"5",y:"5",width:"38",height:"38",rx:"1"})),o.default.createElement("g",{id:"Google-Button",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.default.createElement("g",{id:"9-PATCH",transform:"translate(-608.000000, -219.000000)"}),o.default.createElement("g",{id:"btn_google_dark_normal",transform:"translate(-1.000000, -1.000000)"},o.default.createElement("g",{id:"button",transform:"translate(4.000000, 4.000000)",filter:"url(#filter-1)"},o.default.createElement("g",{id:"button-bg"},o.default.createElement("use",{fill:"#4285F4",fillRule:"evenodd"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}))),o.default.createElement("g",{id:"button-bg-copy"},o.default.createElement("use",{fill:"#FFFFFF",fillRule:"evenodd"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"})),o.default.createElement("g",{id:"logo_googleg_48dp",transform:"translate(15.000000, 15.000000)"},o.default.createElement("path",{d:"M17.64,9.20454545 C17.64,8.56636364 17.5827273,7.95272727 17.4763636,7.36363636 L9,7.36363636 L9,10.845 L13.8436364,10.845 C13.635,11.97 13.0009091,12.9231818 12.0477273,13.5613636 L12.0477273,15.8195455 L14.9563636,15.8195455 C16.6581818,14.2527273 17.64,11.9454545 17.64,9.20454545 L17.64,9.20454545 Z",id:"Shape",fill:"#4285F4"}),o.default.createElement("path",{d:"M9,18 C11.43,18 13.4672727,17.1940909 14.9563636,15.8195455 L12.0477273,13.5613636 C11.2418182,14.1013636 10.2109091,14.4204545 9,14.4204545 C6.65590909,14.4204545 4.67181818,12.8372727 3.96409091,10.71 L0.957272727,10.71 L0.957272727,13.0418182 C2.43818182,15.9831818 5.48181818,18 9,18 L9,18 Z",id:"Shape",fill:"#34A853"}),o.default.createElement("path",{d:"M3.96409091,10.71 C3.78409091,10.17 3.68181818,9.59318182 3.68181818,9 C3.68181818,8.40681818 3.78409091,7.83 3.96409091,7.29 L3.96409091,4.95818182 L0.957272727,4.95818182 C0.347727273,6.17318182 0,7.54772727 0,9 C0,10.4522727 0.347727273,11.8268182 0.957272727,13.0418182 L3.96409091,10.71 L3.96409091,10.71 Z",id:"Shape",fill:"#FBBC05"}),o.default.createElement("path",{d:"M9,3.57954545 C10.3213636,3.57954545 11.5077273,4.03363636 12.4404545,4.92545455 L15.0218182,2.34409091 C13.4631818,0.891818182 11.4259091,0 9,0 C5.48181818,0 2.43818182,2.01681818 0.957272727,4.95818182 L3.96409091,7.29 C4.67181818,5.16272727 6.65590909,3.57954545 9,3.57954545 L9,3.57954545 Z",id:"Shape",fill:"#EA4335"}),o.default.createElement("path",{d:"M0,0 L18,0 L18,18 L0,18 L0,0 Z",id:"Shape"})),o.default.createElement("g",{id:"handles_square"})))),s=o.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"46px",height:"46px",viewBox:"0 0 46 46",style:d.svgStyle},o.default.createElement("defs",null,o.default.createElement("filter",{x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"objectBoundingBox",id:"filter-1"},o.default.createElement("feOffset",{dx:"0",dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),o.default.createElement("feGaussianBlur",{stdDeviation:"0.5",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),o.default.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.168 0",in:"shadowBlurOuter1",type:"matrix",result:"shadowMatrixOuter1"}),o.default.createElement("feOffset",{dx:"0",dy:"0",in:"SourceAlpha",result:"shadowOffsetOuter2"}),o.default.createElement("feGaussianBlur",{stdDeviation:"0.5",in:"shadowOffsetOuter2",result:"shadowBlurOuter2"}),o.default.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.084 0",in:"shadowBlurOuter2",type:"matrix",result:"shadowMatrixOuter2"}),o.default.createElement("feMerge",null,o.default.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),o.default.createElement("feMergeNode",{in:"shadowMatrixOuter2"}),o.default.createElement("feMergeNode",{in:"SourceGraphic"}))),o.default.createElement("rect",{id:"path-2",x:"0",y:"0",width:"40",height:"40",rx:"2"})),o.default.createElement("g",{id:"Google-Button",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.default.createElement("g",{id:"9-PATCH",transform:"translate(-608.000000, -160.000000)"}),o.default.createElement("g",{id:"btn_google_light_normal",transform:"translate(-1.000000, -1.000000)"},o.default.createElement("g",{id:"button",transform:"translate(4.000000, 4.000000)",filter:"url(#filter-1)"},o.default.createElement("g",{id:"button-bg"},o.default.createElement("use",{fill:"#FFFFFF",fillRule:"evenodd"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}))),o.default.createElement("g",{id:"logo_googleg_48dp",transform:"translate(15.000000, 15.000000)"},o.default.createElement("path",{d:"M17.64,9.20454545 C17.64,8.56636364 17.5827273,7.95272727 17.4763636,7.36363636 L9,7.36363636 L9,10.845 L13.8436364,10.845 C13.635,11.97 13.0009091,12.9231818 12.0477273,13.5613636 L12.0477273,15.8195455 L14.9563636,15.8195455 C16.6581818,14.2527273 17.64,11.9454545 17.64,9.20454545 L17.64,9.20454545 Z",id:"Shape",fill:"#4285F4"}),o.default.createElement("path",{d:"M9,18 C11.43,18 13.4672727,17.1940909 14.9563636,15.8195455 L12.0477273,13.5613636 C11.2418182,14.1013636 10.2109091,14.4204545 9,14.4204545 C6.65590909,14.4204545 4.67181818,12.8372727 3.96409091,10.71 L0.957272727,10.71 L0.957272727,13.0418182 C2.43818182,15.9831818 5.48181818,18 9,18 L9,18 Z",id:"Shape",fill:"#34A853"}),o.default.createElement("path",{d:"M3.96409091,10.71 C3.78409091,10.17 3.68181818,9.59318182 3.68181818,9 C3.68181818,8.40681818 3.78409091,7.83 3.96409091,7.29 L3.96409091,4.95818182 L0.957272727,4.95818182 C0.347727273,6.17318182 0,7.54772727 0,9 C0,10.4522727 0.347727273,11.8268182 0.957272727,13.0418182 L3.96409091,10.71 L3.96409091,10.71 Z",id:"Shape",fill:"#FBBC05"}),o.default.createElement("path",{d:"M9,3.57954545 C10.3213636,3.57954545 11.5077273,4.03363636 12.4404545,4.92545455 L15.0218182,2.34409091 C13.4631818,0.891818182 11.4259091,0 9,0 C5.48181818,0 2.43818182,2.01681818 0.957272727,4.95818182 L3.96409091,7.29 C4.67181818,5.16272727 6.65590909,3.57954545 9,3.57954545 L9,3.57954545 Z",id:"Shape",fill:"#EA4335"}),o.default.createElement("path",{d:"M0,0 L18,0 L18,18 L0,18 L0,0 Z",id:"Shape"})),o.default.createElement("g",{id:"handles_square"})))),c=o.default.createElement("svg",{width:"46px",height:"46px",viewBox:"0 0 46 46",version:"1.1",xmlns:"http://www.w3.org/2000/svg",style:d.svgStyle},o.default.createElement("defs",null,o.default.createElement("rect",{id:"path-1",x:"0",y:"0",width:"40",height:"40",rx:"2"})),o.default.createElement("g",{id:"Google-Button",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.default.createElement("g",{id:"9-PATCH",transform:"translate(-788.000000, -219.000000)"}),o.default.createElement("g",{id:"btn_google_dark_disabled",transform:"translate(-1.000000, -1.000000)"},o.default.createElement("g",{id:"button",transform:"translate(4.000000, 4.000000)"},o.default.createElement("g",{id:"button-bg"},o.default.createElement("use",{fillOpacity:"0.08",fill:"#000000",fillRule:"evenodd"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}))),o.default.createElement("path",{d:"M24.001,25.71 L24.001,22.362 L32.425,22.362 C32.551,22.929 32.65,23.46 32.65,24.207 C32.65,29.346 29.203,33 24.01,33 C19.042,33 15.01,28.968 15.01,24 C15.01,19.032 19.042,15 24.01,15 C26.44,15 28.474,15.891 30.031,17.349 L27.475,19.833 C26.827,19.221 25.693,18.501 24.01,18.501 C21.031,18.501 18.601,20.976 18.601,24.009 C18.601,27.042 21.031,29.517 24.01,29.517 C27.457,29.517 28.726,27.132 28.96,25.719 L24.001,25.719 L24.001,25.71 Z",id:"Shape-Copy",fillOpacity:"0.4",fill:"#000000"}),o.default.createElement("g",{id:"handles_square"})))),p=t.GoogleIcon=function(e){var t=e.disabled,l=e.type;return o.default.createElement("div",{style:t?a({},d.iconStyle,d.disabledIconStyle):d.iconStyle},t?c:"dark"===l?f:s)};p.propTypes={disabled:i.default.bool,type:i.default.oneOf(["light","dark"])},p.defaultProps={type:"dark"}}])});
/*! react-google-button.js v0.5.2 | (c) prescottprue */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):"object"==typeof exports?exports.ReactGoogleButton=t(require("react"),require("prop-types")):e.ReactGoogleButton=t(e.React,e.PropTypes)}("undefined"!=typeof self?self:this,function(e,t){return function(e){function t(r){if(l[r])return l[r].exports;var a=l[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var l={};return t.m=e,t.c=l,t.d=function(e,l,r){t.o(e,l)||Object.defineProperty(e,l,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var l=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(l,"a",l),l},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=3)}([function(t,l){t.exports=e},function(e,l){e.exports=t},function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},a={height:"50px",width:"240px",border:"none",textAlign:"center",verticalAlign:"center",boxShadow:"0 2px 4px 0 rgba(0,0,0,.25)",fontSize:"16px",lineHeight:"48px",display:"block",borderRadius:"1px",transition:"background-color .218s, border-color .218s, box-shadow .218s",fontFamily:"Roboto,arial,sans-serif",cursor:"pointer"};t.darkStyle=r({backgroundColor:"#4285f4",color:"#fff"},a),t.lightStyle=r({backgroundColor:"#fff",color:"rgba(0,0,0,.54)"},a),t.iconStyle={width:"48px",height:"48px",textAlign:"center",verticalAlign:"center",display:"block",marginTop:"1px",marginLeft:"1px",float:"left",backgroundColor:"#fff",borderRadius:"1px",whiteSpace:"nowrap"},t.svgStyle={width:"48px",height:"48px",display:"block"},t.hoverStyle={boxShadow:"0 0 3px 3px rgba(66,133,244,.3)",transition:"background-color .218s, border-color .218s, box-shadow .218s"},t.disabledStyle={backgroundColor:"rgba(37, 5, 5, .08)",color:"rgba(0, 0, 0, .40)",cursor:"not-allowed"},t.disabledIconStyle={backgroundColor:"transparent"}},function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GoogleButton=void 0;var r=l(4),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.GoogleButton=a.default,t.default=a.default},function(e,t,l){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var l={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(l[r]=e[r]);return l}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},d=function(){function e(e,t){for(var l=0;l<t.length;l++){var r=t[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,l,r){return l&&e(t.prototype,l),r&&e(t,r),t}}(),f=l(0),s=r(f),c=l(1),p=r(c),h=l(5),g=l(2),m=function(e){function t(){var e,l,r,a;n(this,t);for(var u=arguments.length,d=Array(u),f=0;f<u;f++)d[f]=arguments[f];return l=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(d))),r.state={hovered:!1},r.getStyle=function(e){var t="dark"===r.props.type?g.darkStyle:g.lightStyle;return r.state.hovered?i({},t,g.hoverStyle,e):r.props.disabled?i({},t,g.disabledStyle,e):i({},t,e)},r.mouseOver=function(){r.props.disabled||r.setState({hovered:!0})},r.mouseOut=function(){r.props.disabled||r.setState({hovered:!1})},r.click=function(e){r.props.disabled||r.props.onClick(e)},a=l,o(r,a)}return u(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.label,l=e.style,r=a(e,["label","style"]);return s.default.createElement("div",i({},r,{onClick:this.click,style:this.getStyle(l),onMouseOver:this.mouseOver,onMouseOut:this.mouseOut}),s.default.createElement(h.GoogleIcon,this.props),s.default.createElement("span",null,t))}}]),t}(f.PureComponent);m.propTypes={label:p.default.string,disabled:p.default.bool,onClick:p.default.func,type:p.default.oneOf(["light","dark"]),style:p.default.object},m.defaultProps={label:"Sign in with Google",disabled:!1,type:"dark",onClick:function(){}},t.default=m},function(e,t,l){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleIcon=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},n=l(0),o=r(n),u=l(1),i=r(u),d=l(2),f=o.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"46px",height:"46px",viewBox:"0 0 46 46",style:d.svgStyle},o.default.createElement("defs",null,o.default.createElement("filter",{x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"objectBoundingBox",id:"filter-1"},o.default.createElement("feOffset",{dx:"0",dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),o.default.createElement("feGaussianBlur",{stdDeviation:"0.5",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),o.default.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.168 0",in:"shadowBlurOuter1",type:"matrix",result:"shadowMatrixOuter1"}),o.default.createElement("feOffset",{dx:"0",dy:"0",in:"SourceAlpha",result:"shadowOffsetOuter2"}),o.default.createElement("feGaussianBlur",{stdDeviation:"0.5",in:"shadowOffsetOuter2",result:"shadowBlurOuter2"}),o.default.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.084 0",in:"shadowBlurOuter2",type:"matrix",result:"shadowMatrixOuter2"}),o.default.createElement("feMerge",null,o.default.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),o.default.createElement("feMergeNode",{in:"shadowMatrixOuter2"}),o.default.createElement("feMergeNode",{in:"SourceGraphic"}))),o.default.createElement("rect",{id:"path-2",x:"0",y:"0",width:"40",height:"40",rx:"2"}),o.default.createElement("rect",{id:"path-3",x:"5",y:"5",width:"38",height:"38",rx:"1"})),o.default.createElement("g",{id:"Google-Button",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.default.createElement("g",{id:"9-PATCH",transform:"translate(-608.000000, -219.000000)"}),o.default.createElement("g",{id:"btn_google_dark_normal",transform:"translate(-1.000000, -1.000000)"},o.default.createElement("g",{id:"button",transform:"translate(4.000000, 4.000000)",filter:"url(#filter-1)"},o.default.createElement("g",{id:"button-bg"},o.default.createElement("use",{fill:"#4285F4",fillRule:"evenodd"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}))),o.default.createElement("g",{id:"button-bg-copy"},o.default.createElement("use",{fill:"#FFFFFF",fillRule:"evenodd"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"})),o.default.createElement("g",{id:"logo_googleg_48dp",transform:"translate(15.000000, 15.000000)"},o.default.createElement("path",{d:"M17.64,9.20454545 C17.64,8.56636364 17.5827273,7.95272727 17.4763636,7.36363636 L9,7.36363636 L9,10.845 L13.8436364,10.845 C13.635,11.97 13.0009091,12.9231818 12.0477273,13.5613636 L12.0477273,15.8195455 L14.9563636,15.8195455 C16.6581818,14.2527273 17.64,11.9454545 17.64,9.20454545 L17.64,9.20454545 Z",id:"Shape",fill:"#4285F4"}),o.default.createElement("path",{d:"M9,18 C11.43,18 13.4672727,17.1940909 14.9563636,15.8195455 L12.0477273,13.5613636 C11.2418182,14.1013636 10.2109091,14.4204545 9,14.4204545 C6.65590909,14.4204545 4.67181818,12.8372727 3.96409091,10.71 L0.957272727,10.71 L0.957272727,13.0418182 C2.43818182,15.9831818 5.48181818,18 9,18 L9,18 Z",id:"Shape",fill:"#34A853"}),o.default.createElement("path",{d:"M3.96409091,10.71 C3.78409091,10.17 3.68181818,9.59318182 3.68181818,9 C3.68181818,8.40681818 3.78409091,7.83 3.96409091,7.29 L3.96409091,4.95818182 L0.957272727,4.95818182 C0.347727273,6.17318182 0,7.54772727 0,9 C0,10.4522727 0.347727273,11.8268182 0.957272727,13.0418182 L3.96409091,10.71 L3.96409091,10.71 Z",id:"Shape",fill:"#FBBC05"}),o.default.createElement("path",{d:"M9,3.57954545 C10.3213636,3.57954545 11.5077273,4.03363636 12.4404545,4.92545455 L15.0218182,2.34409091 C13.4631818,0.891818182 11.4259091,0 9,0 C5.48181818,0 2.43818182,2.01681818 0.957272727,4.95818182 L3.96409091,7.29 C4.67181818,5.16272727 6.65590909,3.57954545 9,3.57954545 L9,3.57954545 Z",id:"Shape",fill:"#EA4335"}),o.default.createElement("path",{d:"M0,0 L18,0 L18,18 L0,18 L0,0 Z",id:"Shape"})),o.default.createElement("g",{id:"handles_square"})))),s=o.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"46px",height:"46px",viewBox:"0 0 46 46",style:d.svgStyle},o.default.createElement("defs",null,o.default.createElement("filter",{x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"objectBoundingBox",id:"filter-1"},o.default.createElement("feOffset",{dx:"0",dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),o.default.createElement("feGaussianBlur",{stdDeviation:"0.5",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),o.default.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.168 0",in:"shadowBlurOuter1",type:"matrix",result:"shadowMatrixOuter1"}),o.default.createElement("feOffset",{dx:"0",dy:"0",in:"SourceAlpha",result:"shadowOffsetOuter2"}),o.default.createElement("feGaussianBlur",{stdDeviation:"0.5",in:"shadowOffsetOuter2",result:"shadowBlurOuter2"}),o.default.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.084 0",in:"shadowBlurOuter2",type:"matrix",result:"shadowMatrixOuter2"}),o.default.createElement("feMerge",null,o.default.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),o.default.createElement("feMergeNode",{in:"shadowMatrixOuter2"}),o.default.createElement("feMergeNode",{in:"SourceGraphic"}))),o.default.createElement("rect",{id:"path-2",x:"0",y:"0",width:"40",height:"40",rx:"2"})),o.default.createElement("g",{id:"Google-Button",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.default.createElement("g",{id:"9-PATCH",transform:"translate(-608.000000, -160.000000)"}),o.default.createElement("g",{id:"btn_google_light_normal",transform:"translate(-1.000000, -1.000000)"},o.default.createElement("g",{id:"button",transform:"translate(4.000000, 4.000000)",filter:"url(#filter-1)"},o.default.createElement("g",{id:"button-bg"},o.default.createElement("use",{fill:"#FFFFFF",fillRule:"evenodd"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}))),o.default.createElement("g",{id:"logo_googleg_48dp",transform:"translate(15.000000, 15.000000)"},o.default.createElement("path",{d:"M17.64,9.20454545 C17.64,8.56636364 17.5827273,7.95272727 17.4763636,7.36363636 L9,7.36363636 L9,10.845 L13.8436364,10.845 C13.635,11.97 13.0009091,12.9231818 12.0477273,13.5613636 L12.0477273,15.8195455 L14.9563636,15.8195455 C16.6581818,14.2527273 17.64,11.9454545 17.64,9.20454545 L17.64,9.20454545 Z",id:"Shape",fill:"#4285F4"}),o.default.createElement("path",{d:"M9,18 C11.43,18 13.4672727,17.1940909 14.9563636,15.8195455 L12.0477273,13.5613636 C11.2418182,14.1013636 10.2109091,14.4204545 9,14.4204545 C6.65590909,14.4204545 4.67181818,12.8372727 3.96409091,10.71 L0.957272727,10.71 L0.957272727,13.0418182 C2.43818182,15.9831818 5.48181818,18 9,18 L9,18 Z",id:"Shape",fill:"#34A853"}),o.default.createElement("path",{d:"M3.96409091,10.71 C3.78409091,10.17 3.68181818,9.59318182 3.68181818,9 C3.68181818,8.40681818 3.78409091,7.83 3.96409091,7.29 L3.96409091,4.95818182 L0.957272727,4.95818182 C0.347727273,6.17318182 0,7.54772727 0,9 C0,10.4522727 0.347727273,11.8268182 0.957272727,13.0418182 L3.96409091,10.71 L3.96409091,10.71 Z",id:"Shape",fill:"#FBBC05"}),o.default.createElement("path",{d:"M9,3.57954545 C10.3213636,3.57954545 11.5077273,4.03363636 12.4404545,4.92545455 L15.0218182,2.34409091 C13.4631818,0.891818182 11.4259091,0 9,0 C5.48181818,0 2.43818182,2.01681818 0.957272727,4.95818182 L3.96409091,7.29 C4.67181818,5.16272727 6.65590909,3.57954545 9,3.57954545 L9,3.57954545 Z",id:"Shape",fill:"#EA4335"}),o.default.createElement("path",{d:"M0,0 L18,0 L18,18 L0,18 L0,0 Z",id:"Shape"})),o.default.createElement("g",{id:"handles_square"})))),c=o.default.createElement("svg",{width:"46px",height:"46px",viewBox:"0 0 46 46",version:"1.1",xmlns:"http://www.w3.org/2000/svg",style:d.svgStyle},o.default.createElement("defs",null,o.default.createElement("rect",{id:"path-1",x:"0",y:"0",width:"40",height:"40",rx:"2"})),o.default.createElement("g",{id:"Google-Button",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.default.createElement("g",{id:"9-PATCH",transform:"translate(-788.000000, -219.000000)"}),o.default.createElement("g",{id:"btn_google_dark_disabled",transform:"translate(-1.000000, -1.000000)"},o.default.createElement("g",{id:"button",transform:"translate(4.000000, 4.000000)"},o.default.createElement("g",{id:"button-bg"},o.default.createElement("use",{fillOpacity:"0.08",fill:"#000000",fillRule:"evenodd"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}),o.default.createElement("use",{fill:"none"}))),o.default.createElement("path",{d:"M24.001,25.71 L24.001,22.362 L32.425,22.362 C32.551,22.929 32.65,23.46 32.65,24.207 C32.65,29.346 29.203,33 24.01,33 C19.042,33 15.01,28.968 15.01,24 C15.01,19.032 19.042,15 24.01,15 C26.44,15 28.474,15.891 30.031,17.349 L27.475,19.833 C26.827,19.221 25.693,18.501 24.01,18.501 C21.031,18.501 18.601,20.976 18.601,24.009 C18.601,27.042 21.031,29.517 24.01,29.517 C27.457,29.517 28.726,27.132 28.96,25.719 L24.001,25.719 L24.001,25.71 Z",id:"Shape-Copy",fillOpacity:"0.4",fill:"#000000"}),o.default.createElement("g",{id:"handles_square"})))),p=t.GoogleIcon=function(e){var t=e.disabled,l=e.type;return o.default.createElement("div",{style:t?a({},d.iconStyle,d.disabledIconStyle):d.iconStyle},t?c:"dark"===l?f:s)};p.propTypes={disabled:i.default.bool,type:i.default.oneOf(["light","dark"])},p.defaultProps={type:"dark"}}])});

@@ -1,3 +0,4 @@

export { GoogleButton } from './GoogleButton';
import _GoogleButton from './GoogleButton';
export { _GoogleButton as GoogleButton };
import _default from './GoogleButton';
export { _default as default };

@@ -8,15 +8,9 @@ 'use strict';

var _GoogleButton = require('./GoogleButton');
var _GoogleButton2 = require('./GoogleButton');
Object.defineProperty(exports, 'GoogleButton', {
enumerable: true,
get: function get() {
return _GoogleButton.GoogleButton;
}
});
var _GoogleButton3 = _interopRequireDefault(_GoogleButton2);
var _GoogleButton2 = _interopRequireDefault(_GoogleButton);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _GoogleButton2.default;
exports.GoogleButton = _GoogleButton3.default;
exports.default = _GoogleButton3.default;
{
"name": "react-google-button",
"version": "0.5.1",
"version": "0.5.2",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "module": "es/index.js",

@@ -1,2 +0,2 @@

export { GoogleButton } from './GoogleButton'
export GoogleButton from './GoogleButton'
export default from './GoogleButton'
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc