backstage-modal
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -66,2 +66,2 @@ 'use strict'; | ||
} | ||
}; | ||
}; |
@@ -86,6 +86,9 @@ 'use strict'; | ||
value: function render() { | ||
var modalStyle = _modal2.default.container; | ||
var modalStyle = _modal2.default.modal; | ||
if (this.props.width) { | ||
modalStyle = _extends({}, modalStyle, { width: this.props.width }); | ||
} | ||
if (this.props.height) { | ||
modalStyle = _extends({}, modalStyle, { height: this.props.height }); | ||
} | ||
@@ -99,3 +102,3 @@ var classNames = 'bs-modal ' + (this.props.className || ''); | ||
'div', | ||
{ onKeyDown: this.handleKeyDown, className: classNames, style: modalStyle }, | ||
{ onKeyDown: this.handleKeyDown, className: classNames, style: _modal2.default.container }, | ||
_react2.default.createElement( | ||
@@ -110,3 +113,3 @@ 'div', | ||
'div', | ||
{ style: _modal2.default.modal }, | ||
{ style: modalStyle }, | ||
_react2.default.createElement( | ||
@@ -140,2 +143,3 @@ 'div', | ||
width: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.string, _react2.default.PropTypes.number]), | ||
height: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.string, _react2.default.PropTypes.number]), | ||
title: _react2.default.PropTypes.string, | ||
@@ -142,0 +146,0 @@ children: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.arrayOf(_react2.default.PropTypes.node), _react2.default.PropTypes.node]), |
{ | ||
"name": "backstage-modal", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "backstage modal", | ||
@@ -5,0 +5,0 @@ "main": "dist/modal.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19742
314