Socket
Socket
Sign inDemoInstall

react-split-pane

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-split-pane - npm Package Compare versions

Comparing version 0.1.51 to 0.1.52

.idea/codeStyleSettings.xml

5

lib/Pane.js

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

_this.state = {};
_this.state = { size: _this.props.size };
return _this;

@@ -90,3 +90,4 @@ }

prefixer: _react.PropTypes.instanceOf(_inlineStylePrefixer2.default).isRequired,
style: _reactStyleProptype2.default
style: _reactStyleProptype2.default,
size: _react.PropTypes.oneOfType([_react2.default.PropTypes.string, _react2.default.PropTypes.number])
};

@@ -93,0 +94,0 @@

7

lib/Resizer.js

@@ -48,4 +48,5 @@ 'use strict';

var className = _props.className;
var resizerClassName = _props.resizerClassName;
var classes = ['Resizer', split, className];
var classes = [resizerClassName, split, className];
return _react2.default.createElement('span', {

@@ -79,2 +80,3 @@ className: classes.join(' '),

className: _react.PropTypes.string.isRequired,
resizerClassName: _react.PropTypes.string.isRequired,
style: _reactStyleProptype2.default

@@ -84,3 +86,4 @@ };

Resizer.defaultProps = {
prefixer: new _inlineStylePrefixer2.default({ userAgent: USER_AGENT })
prefixer: new _inlineStylePrefixer2.default({ userAgent: USER_AGENT }),
resizerClassName: 'Resizer'
};

@@ -87,0 +90,0 @@

@@ -281,3 +281,4 @@ 'use strict';

style: pane1Style,
split: split
split: split,
size: this.props.primary === 'first' ? this.props.size || this.props.defaultSize || this.props.minSize : undefined
},

@@ -292,2 +293,3 @@ children[0]

className: disabledClass,
resizerClassName: this.props.resizerClassName,
onMouseDown: this.onMouseDown,

@@ -308,3 +310,4 @@ onTouchStart: this.onTouchStart,

style: pane2Style,
split: split
split: split,
size: this.props.primary === 'second' ? this.props.size || this.props.defaultSize || this.props.minSize : undefined
},

@@ -339,2 +342,3 @@ children[1]

className: _react.PropTypes.string,
resizerClassName: _react.PropTypes.string,
children: _react.PropTypes.arrayOf(_react.PropTypes.node).isRequired

@@ -341,0 +345,0 @@ };

@@ -5,3 +5,3 @@ {

"main": "index.js",
"version": "0.1.51",
"version": "0.1.52",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -171,3 +171,7 @@ import { render, findDOMNode } from 'react-dom';

},
assertResizerClasses(expectedClass) {
assertClass(findResizer()[0], expectedClass);
},
};
};

@@ -95,1 +95,18 @@ import React from 'react';

});
describe('Internal Resizer have class', () => {
const splitPane = (
<SplitPane resizerClassName="some-class">
<div>one</div>
<div>two</div>
</SplitPane>
);
it('should have the specified classname', () => {
asserter(splitPane).assertResizerClasses('some-class');
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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