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

rsuite

Package Overview
Dependencies
Maintainers
2
Versions
403
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsuite - npm Package Compare versions

Comparing version 2.0.0-alpha-3 to 2.0.0-alpha-4

6

lib/Button.js

@@ -19,2 +19,6 @@ 'use strict';

var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
var _classnames = require('classnames');

@@ -146,5 +150,5 @@

shape: {
oneOf: [].concat(_toConsumableArray(Object.values(_decorate.STATE)), _toConsumableArray(Object.values(_decorate.STYLES))),
oneOf: [].concat(_toConsumableArray(_lodash2.default.values(_decorate.STATE)), _toConsumableArray(_lodash2.default.values(_decorate.STYLES))),
default: _decorate.STATE.default
}
})(Button);

@@ -19,2 +19,6 @@ 'use strict';

var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
var _classnames = require('classnames');

@@ -70,3 +74,3 @@

Object.values(this.checkboxs).forEach(function (checkbox) {
_lodash2.default.values(this.checkboxs).forEach(function (checkbox) {
if (checkbox.state.checked) {

@@ -73,0 +77,0 @@ value.push(checkbox.props.value);

2

lib/Col.js

@@ -119,3 +119,3 @@ 'use strict';

Object.values(_decorate.SIZES).forEach(function (size) {
_lodash2.default.values(_decorate.SIZES).forEach(function (size) {
var col = getPropValue(size);

@@ -122,0 +122,0 @@ var hidden = getPropValue(size + 'Hidden');

@@ -288,5 +288,5 @@ 'use strict';

shape: {
oneOf: [].concat(_toConsumableArray(Object.values(_decorate.STATE)), _toConsumableArray(Object.values(_decorate.STYLES))),
oneOf: [].concat(_toConsumableArray(_lodash2.default.values(_decorate.STATE)), _toConsumableArray(_lodash2.default.values(_decorate.STYLES))),
default: _decorate.STATE.default
}
})(Dropdown);

@@ -15,2 +15,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _classnames = require('classnames');

@@ -34,2 +38,7 @@

var propTypes = {
active: _propTypes2.default.bool,
disabled: _propTypes2.default.bool
};
var NavDropdown = function (_React$Component) {

@@ -56,8 +65,16 @@ _inherits(NavDropdown, _React$Component);

className = _props.className,
props = _objectWithoutProperties(_props, ['className']);
active = _props.active,
disabled = _props.disabled,
props = _objectWithoutProperties(_props, ['className', 'active', 'disabled']);
var classes = (0, _classnames2.default)('nav-dropdown', {
active: active,
disabled: disabled
}, className);
return _react2.default.createElement(_Dropdown2.default, _extends({}, props, {
componentClass: 'li',
useAnchor: true,
className: (0, _classnames2.default)('nav-dropdown', className),
className: classes,
disabled: disabled,
ref: function ref(_ref) {

@@ -73,2 +90,4 @@ _this2.mountNode = _ref;

NavDropdown.propTypes = propTypes;
exports.default = NavDropdown;

@@ -19,2 +19,6 @@ 'use strict';

var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
var _classnames = require('classnames');

@@ -71,3 +75,3 @@

var radios = Object.values(this.radios);
var radios = _lodash2.default.values(this.radios);
var shouldChange = function shouldChange(should) {

@@ -74,0 +78,0 @@ if (should && onChange) {

@@ -19,2 +19,6 @@ 'use strict';

var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
var _classnames = require('classnames');

@@ -86,5 +90,5 @@

shape: {
oneOf: [].concat(_toConsumableArray(Object.values(_decorate.STATE)), _toConsumableArray(Object.values(_decorate.STYLES))),
oneOf: [].concat(_toConsumableArray(_lodash2.default.values(_decorate.STATE)), _toConsumableArray(_lodash2.default.values(_decorate.STYLES))),
default: _decorate.STATE.default
}
})(Text);

@@ -20,2 +20,6 @@ 'use strict';

var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -88,3 +92,3 @@

if (size === true) {
propTypes.size = _propTypes2.default.oneOf(Object.values(SIZES));
propTypes.size = _propTypes2.default.oneOf(_lodash2.default.values(SIZES));
defaultProps.size = null;

@@ -97,3 +101,3 @@ } else if ((typeof size === 'undefined' ? 'undefined' : _typeof(size)) === 'object') {

if (shape === true) {
propTypes.shape = _propTypes2.default.oneOf([].concat(_toConsumableArray(Object.values(STATE)), _toConsumableArray(Object.values(STYLES))));
propTypes.shape = _propTypes2.default.oneOf([].concat(_toConsumableArray(_lodash2.default.values(STATE)), _toConsumableArray(_lodash2.default.values(STYLES))));
defaultProps.shape = STYLES.DEFAULT;

@@ -100,0 +104,0 @@ } else if ((typeof shape === 'undefined' ? 'undefined' : _typeof(shape)) === 'object') {

{
"name": "rsuite",
"version": "2.0.0-alpha-3",
"version": "2.0.0-alpha-4",
"description": "A suite of react components",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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