Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cf-component-button

Package Overview
Dependencies
Maintainers
18
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-component-button - npm Package Compare versions

Comparing version 5.7.1 to 5.7.2

6

es/Button.js

@@ -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"

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc