cf-component-button
Advanced tools
Comparing version 7.3.3 to 7.3.4
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="7.3.4"></a> | ||
## [7.3.4](http://stash.cfops.it:7999/www/cf-ux/compare/cf-component-button@7.3.3...cf-component-button@7.3.4) (2018-02-07) | ||
**Note:** Version bump only for package cf-component-button | ||
<a name="7.3.3"></a> | ||
@@ -8,0 +16,0 @@ ## [7.3.3](http://stash.cfops.it:7999/www/cf-ux/compare/cf-component-button@7.3.2...cf-component-button@7.3.3) (2018-02-01) |
@@ -212,4 +212,6 @@ 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; }; }(); | ||
loading = _props.loading, | ||
testId = _props.testId, | ||
children = _props.children; | ||
return React.createElement( | ||
@@ -242,2 +244,3 @@ ConnectEventTracking, | ||
type: submit ? 'submit' : 'button', | ||
'data-test-id': testId, | ||
disabled: disabled || loading, | ||
@@ -265,2 +268,3 @@ className: className, | ||
type: PropTypes.oneOf(['default', 'primary', 'success', 'warning', 'danger']).isRequired, | ||
testId: PropTypes.string, | ||
disabled: PropTypes.bool, | ||
@@ -267,0 +271,0 @@ loading: PropTypes.bool, |
@@ -200,3 +200,11 @@ 'use strict'; | ||
render() { | ||
const { submit, className, disabled, loading, children } = this.props; | ||
const { | ||
submit, | ||
className, | ||
disabled, | ||
loading, | ||
testId, | ||
children | ||
} = this.props; | ||
return _react2.default.createElement( | ||
@@ -224,2 +232,3 @@ _cfUtilUserTracking.ConnectEventTracking, | ||
type: submit ? 'submit' : 'button', | ||
'data-test-id': testId, | ||
disabled: disabled || loading, | ||
@@ -244,2 +253,3 @@ className: className, | ||
type: _propTypes2.default.oneOf(['default', 'primary', 'success', 'warning', 'danger']).isRequired, | ||
testId: _propTypes2.default.string, | ||
disabled: _propTypes2.default.bool, | ||
@@ -246,0 +256,0 @@ loading: _propTypes2.default.bool, |
{ | ||
"name": "cf-component-button", | ||
"description": "Cloudflare Button Component", | ||
"version": "7.3.3", | ||
"version": "7.3.4", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "module": "es/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
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
51285
995
13