react-awesome-button
Advanced tools
Comparing version 0.1.2 to 0.1.5
{ | ||
"name": "react-awesome-button", | ||
"version": "0.1.2", | ||
"description": "Production ready generic 3D react button component with progress loading bar.", | ||
"version": "0.1.5", | ||
"description": "Performant, extendable, highly customisable, production ready React Component that renders an animated basic set of UI buttons", | ||
"main": "dist/index.js", | ||
"author": "Rafael Caferati", | ||
"license": "MIT", | ||
"homepage": "https://github.com/rcaferati/react-awesome-button", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/rcaferati/react-awesome-button" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/rcaferati/react-awesome-button/issues" | ||
}, | ||
"scripts": { | ||
@@ -13,10 +23,7 @@ "start": "webpack-dev-server -d --config webpack.demo.config.js", | ||
}, | ||
"dependencies": { | ||
"prop-types": "^15.5.8", | ||
"react": "^15.5.4" | ||
}, | ||
"devDependencies": { | ||
"extract-text-webpack-plugin": "^2.1.0", | ||
"prismjs": "^1.6.0", | ||
"prop-types": "^15.5.8", | ||
"react": "^15.5.4", | ||
"react-dom": "^15.5.4", | ||
"react-router": "^4.1.1", | ||
"react-router-dom": "^4.1.1", | ||
"autoprefixer": "^7.0.1", | ||
@@ -27,2 +34,3 @@ "babel": "^6.23.0", | ||
"babel-eslint": "^7.2.3", | ||
"babel-jest": "^20.0.0", | ||
"babel-loader": "^7.0.0", | ||
@@ -39,4 +47,11 @@ "babel-preset-es2015": "^6.24.1", | ||
"eslint-plugin-react": "^6.10.3", | ||
"extract-text-webpack-plugin": "^2.1.0", | ||
"jest": "^20.0.0", | ||
"node-sass": "^4.5.2", | ||
"postcss-loader": "^2.0.3", | ||
"prismjs": "^1.6.0", | ||
"react-dom": "^15.5.4", | ||
"react-router": "^4.1.1", | ||
"react-router-dom": "^4.1.1", | ||
"react-test-renderer": "^15.5.4", | ||
"sass-loader": "^6.0.3", | ||
@@ -47,6 +62,2 @@ "style-loader": "^0.17.0", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/rcaferati/react-awesome-button" | ||
}, | ||
"keywords": [ | ||
@@ -61,9 +72,3 @@ "react", | ||
"react-awesome-button" | ||
], | ||
"author": "Rafael Caferati", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/rcaferati/react-awesome-button/issues" | ||
}, | ||
"homepage": "https://github.com/rcaferati/react-awesome-button" | ||
] | ||
} |
@@ -13,11 +13,14 @@ import React from 'react'; | ||
function setCssEndEvent(element, type, callback) { | ||
const setCssEndEvent = (element, type, callback) => { | ||
if (!element) { | ||
return false; | ||
} | ||
const capitalized = type.charAt(0).toUpperCase() + type.slice(1); | ||
if (element.style[`Webkit${capitalized}`] !== undefined) { | ||
element.addEventListener(`webkit${capitalized}End`, callback); | ||
return element.addEventListener(`webkit${capitalized}End`, callback); | ||
} else if (element.style.OTransition !== undefined) { | ||
element.addEventListener(`o${type}End`, callback); | ||
return element.addEventListener(`o${type}End`, callback); | ||
} | ||
element.addEventListener(`${type}End`, callback); | ||
} | ||
return element.addEventListener(`${type}End`, callback); | ||
}; | ||
@@ -24,0 +27,0 @@ const Anchor = props => (<a {... props} />); |
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
52231
18
660
2
30
+ Addedprop-types@^15.5.8
+ Addedreact@^15.5.4
+ Addedasap@2.0.6(transitive)
+ Addedcore-js@1.2.7(transitive)
+ Addedcreate-react-class@15.7.0(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedfbjs@0.8.18(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedpromise@7.3.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact@15.7.0(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedua-parser-js@0.7.39(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)