react-demo
Advanced tools
+4
-0
@@ -0,1 +1,5 @@ | ||
| ## 1.4.0 (Apr 18, 2016) | ||
| - The `panelBelow` option removed, that's now the default | ||
| ## 1.3.0 (Apr 16, 2016) | ||
@@ -2,0 +6,0 @@ |
+1
-3
@@ -44,3 +44,2 @@ 'use strict'; | ||
| fullWidth: _react.PropTypes.bool, | ||
| panelBelow: _react.PropTypes.bool, | ||
| target: _react.PropTypes.oneOfType([_react.PropTypes.func, _react.PropTypes.string]), | ||
@@ -129,3 +128,2 @@ children: _react.PropTypes.func, | ||
| var background = _props.background; | ||
| var panelBelow = _props.panelBelow; | ||
@@ -146,3 +144,3 @@ var targetProps = _extends({}, values, this.getCallbacks()); | ||
| var layoutProps = { fullWidth: fullWidth, targetEl: targetEl, controlsEl: controlsEl, background: background, panelBelow: panelBelow }; | ||
| var layoutProps = { fullWidth: fullWidth, targetEl: targetEl, controlsEl: controlsEl, background: background }; | ||
| return _react2['default'].createElement(_Layout2['default'], layoutProps); | ||
@@ -149,0 +147,0 @@ } |
+5
-7
@@ -40,6 +40,4 @@ 'use strict'; | ||
| }; | ||
| var styleControlsTop = function styleControlsTop(panelBelow) { | ||
| var _ref; | ||
| return _ref = {}, _ref['border' + (panelBelow ? 'Top' : 'Bottom')] = 'solid 1px #ddd', _ref; | ||
| var styleControlsBottom = { | ||
| borderTop: 'solid 1px #ddd' | ||
| }; | ||
@@ -81,3 +79,3 @@ var styleComponentTop = {}; | ||
| getControlsStyle: function getControlsStyle() { | ||
| return this.props.fullWidth ? styleControlsTop(this.props.panelBelow) : styleControlsSide; | ||
| return this.props.fullWidth ? styleControlsBottom : styleControlsSide; | ||
| }, | ||
@@ -89,3 +87,3 @@ | ||
| var targetEl = _props2.targetEl; | ||
| var panelBelow = _props2.panelBelow; | ||
| var fullWidth = _props2.fullWidth; | ||
@@ -105,3 +103,3 @@ var demo = _react2['default'].createElement( | ||
| { style: this.getWrapStyle(), className: 'react-demo' }, | ||
| panelBelow ? [demo, panel] : [panel, demo] | ||
| fullWidth ? [demo, panel] : [panel, demo] | ||
| ); | ||
@@ -108,0 +106,0 @@ } |
+1
-1
| { | ||
| "name": "react-demo", | ||
| "version": "1.3.0", | ||
| "version": "1.4.0", | ||
| "description": "A React-component for creating demos of other components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+0
-5
@@ -72,7 +72,2 @@ # React-demo [](https://travis-ci.org/rpominov/react-demo) | ||
| #### `panelBelow` | ||
| If set to `true` the comtrols panel will be shown below the demo. | ||
| Should be used in combination with `fullWidth`. | ||
| #### `background` | ||
@@ -79,0 +74,0 @@ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
48188
-0.59%1119
-0.27%294
-1.67%