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

cf-component-button

Package Overview
Dependencies
Maintainers
15
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.3.0 to 5.3.1

3

es/Button.js

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