Socket
Socket
Sign inDemoInstall

react-split-panel

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

11

dist/SplitPanel.js

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

var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -81,4 +85,2 @@

var totalSize = this.refs.self[this.domSizeProperty];
console.log(totalSize);
console.log(this.dividerSize);
this.setState({

@@ -102,5 +104,8 @@ dividerPos: totalSize / 2,

var klass = (0, _classnames2.default)("splitPanel", this.props.direction, {
'splitPanelResizing': this.state.dragging
});
return _react2.default.createElement(
'div',
{ ref: 'self', className: 'splitPanel ' + this.props.direction },
{ ref: 'self', className: klass },
_react2.default.createElement(

@@ -107,0 +112,0 @@ 'div',

{
"name": "react-split-panel",
"version": "1.0.0",
"version": "1.0.1",
"description": "A split panel component for React.",

@@ -5,0 +5,0 @@ "main": "./dist/SplitPanel.js",

import React from 'react';
import classNames from 'classnames';

@@ -81,4 +82,2 @@ export default class SplitPanel extends React.Component {

const totalSize = this.refs.self[this.domSizeProperty];
console.log(totalSize);
console.log(this.dividerSize);
this.setState({

@@ -100,3 +99,6 @@ dividerPos: totalSize / 2,

return <div ref="self" className={`splitPanel ${this.props.direction}`}>
const klass = classNames("splitPanel", this.props.direction, {
'splitPanelResizing': this.state.dragging
});
return <div ref="self" className={klass}>
<div className="splitPanelItem" style={firstStyle}>

@@ -103,0 +105,0 @@ {this.props.children[0]}

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc