cf-component-button
Advanced tools
Comparing version 5.3.0 to 5.3.1
@@ -11,3 +11,4 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
import React, { PropTypes } from 'react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { createComponent } from 'cf-style-container'; | ||
@@ -14,0 +15,0 @@ |
@@ -9,3 +9,4 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
import React, { PropTypes } from 'react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { createComponent } from 'cf-style-container'; | ||
@@ -12,0 +13,0 @@ |
@@ -15,2 +15,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _cfStyleContainer = require('cf-style-container'); | ||
@@ -172,11 +176,11 @@ | ||
Button.propTypes = { | ||
onClick: _react.PropTypes.func.isRequired, | ||
submit: _react.PropTypes.bool, | ||
spaced: _react.PropTypes.bool, | ||
className: _react.PropTypes.string.isRequired, | ||
group: _react.PropTypes.oneOf(['first', 'inbetween', 'last']), | ||
type: _react.PropTypes.oneOf(['default', 'primary', 'success', 'warning', 'danger']).isRequired, | ||
disabled: _react.PropTypes.bool, | ||
loading: _react.PropTypes.bool, | ||
children: _react.PropTypes.node | ||
onClick: _propTypes2.default.func.isRequired, | ||
submit: _propTypes2.default.bool, | ||
spaced: _propTypes2.default.bool, | ||
className: _propTypes2.default.string.isRequired, | ||
group: _propTypes2.default.oneOf(['first', 'inbetween', 'last']), | ||
type: _propTypes2.default.oneOf(['default', 'primary', 'success', 'warning', 'danger']).isRequired, | ||
disabled: _propTypes2.default.bool, | ||
loading: _propTypes2.default.bool, | ||
children: _propTypes2.default.node | ||
}; | ||
@@ -183,0 +187,0 @@ |
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _cfStyleContainer = require('cf-style-container'); | ||
@@ -85,7 +89,7 @@ | ||
ButtonGroup.propTypes = { | ||
children: _react.PropTypes.node, | ||
spaced: _react.PropTypes.bool, | ||
className: _react.PropTypes.string.isRequired | ||
children: _propTypes2.default.node, | ||
spaced: _propTypes2.default.bool, | ||
className: _propTypes2.default.string.isRequired | ||
}; | ||
exports.default = (0, _cfStyleContainer.createComponent)(styles, ButtonGroup); |
{ | ||
"name": "cf-component-button", | ||
"description": "Cloudflare Button Component", | ||
"version": "5.3.0", | ||
"version": "5.3.1", | ||
"main": "lib/index.js", | ||
@@ -14,8 +14,9 @@ "module": "es/index.js", | ||
"dependencies": { | ||
"cf-style-container": "^1.1.0", | ||
"polished": "^1.0.2" | ||
"cf-style-container": "^1.1.1", | ||
"polished": "^1.0.2", | ||
"prop-types": "^15.5.8" | ||
}, | ||
"peerDependencies": { | ||
"react": "^0.14.0 || ^15.0.0-0 || ^16.0.0-0" | ||
"react": "^0.14.9 || ^15.0.0-0 || ^16.0.0-0" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
59708
1153
0
4
+ Addedprop-types@^15.5.8
Updatedcf-style-container@^1.1.1