cf-component-button
Advanced tools
Comparing version 5.7.1 to 5.7.2
@@ -11,2 +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; }; }(); | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
import React from 'react'; | ||
@@ -127,3 +129,3 @@ import PropTypes from 'prop-types'; | ||
position: theme.position | ||
}, radius(theme.borderRadius, props.group, props.spaced), { | ||
}, radius(theme.borderRadius, props.group, props.spaced), _defineProperty({ | ||
textAlign: theme.textAlign, | ||
@@ -134,3 +136,3 @@ transition: theme.transition, | ||
maxWidth: theme.maxWidth | ||
}); | ||
}, 'float', theme.float)); | ||
}; | ||
@@ -137,0 +139,0 @@ |
@@ -45,2 +45,3 @@ import { darken, lighten } from 'polished'; | ||
maxWidth: 'initial', | ||
float: 'none', | ||
@@ -47,0 +48,0 @@ // Disabled |
@@ -29,2 +29,4 @@ 'use strict'; | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var radius = function radius(borderRadius, group, spaced) { | ||
@@ -141,3 +143,3 @@ if (spaced) { | ||
position: theme.position | ||
}, radius(theme.borderRadius, props.group, props.spaced), { | ||
}, radius(theme.borderRadius, props.group, props.spaced), _defineProperty({ | ||
textAlign: theme.textAlign, | ||
@@ -148,3 +150,3 @@ transition: theme.transition, | ||
maxWidth: theme.maxWidth | ||
}); | ||
}, 'float', theme.float)); | ||
}; | ||
@@ -151,0 +153,0 @@ |
@@ -51,2 +51,3 @@ 'use strict'; | ||
maxWidth: 'initial', | ||
float: 'none', | ||
@@ -53,0 +54,0 @@ // Disabled |
{ | ||
"name": "cf-component-button", | ||
"description": "Cloudflare Button Component", | ||
"version": "5.7.1", | ||
"version": "5.7.2", | ||
"main": "lib/index.js", | ||
@@ -14,3 +14,3 @@ "module": "es/index.js", | ||
"dependencies": { | ||
"cf-style-container": "^1.2.0", | ||
"cf-style-container": "^1.2.1", | ||
"polished": "^1.0.2", | ||
@@ -17,0 +17,0 @@ "prop-types": "^15.5.8" |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
37301
825
13
751
Updatedcf-style-container@^1.2.1