se-material-ui 0.20.3 → 0.20.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Dialog/Dialog.js CHANGED
@@ -340,7 +340,8 @@ var DialogInline = function (_Component2) {
340
340
  style = _props3.style,
341
341
  titleClassName = _props3.titleClassName,
342
342
  titleStyle = _props3.titleStyle,
343
- title = _props3.title;
343
+ title = _props3.title,
344
+ autoLockScrolling = _props3.autoLockScrolling;
344
345
  var prepareStyles = this.context.muiTheme.prepareStyles;
345
346
 
346
347
  var styles = getStyles(this.props, this.context);
@@ -417,7 +418,8 @@ var DialogInline = function (_Component2) {
417
418
  show: open,
418
419
  className: overlayClassName,
419
420
  style: styles.overlay,
420
- onClick: this.handleClickOverlay
421
+ onClick: this.handleClickOverlay,
422
+ autoLockScrolling: autoLockScrolling
421
423
  })
422
424
  );
423
425
  }
@@ -431,6 +433,7 @@ DialogInline.propTypes = {
431
433
  actionsContainerClassName: _propTypes2.default.string,
432
434
  actionsContainerStyle: _propTypes2.default.object,
433
435
  autoDetectWindowHeight: _propTypes2.default.bool,
436
+ autoLockScrolling: _propTypes2.default.bool,
434
437
  autoScrollBodyContent: _propTypes2.default.bool,
435
438
  bodyClassName: _propTypes2.default.string,
436
439
  bodyStyle: _propTypes2.default.object,
@@ -477,7 +480,11 @@ var Dialog = function (_Component3) {
477
480
  _createClass(Dialog, [{
478
481
  key: 'render',
479
482
  value: function render() {
480
- return _react2.default.createElement(_RenderToLayer2.default, { render: this.renderLayer, open: true, useLayerForClickAway: false });
483
+ return _react2.default.createElement(_RenderToLayer2.default, {
484
+ container: this.props.container,
485
+ render: this.renderLayer,
486
+ open: true, useLayerForClickAway: false
487
+ });
481
488
  }
482
489
  }]);
483
490
 
@@ -503,6 +510,9 @@ Dialog.propTypes = {
503
510
  * will be enforced so that the content does not extend beyond the viewport.
504
511
  */
505
512
  autoDetectWindowHeight: _propTypes2.default.bool,
513
+
514
+ autoLockScrolling: _propTypes2.default.bool,
515
+
506
516
  /**
507
517
  * If set to true, the body content of the `Dialog` will be scrollable.
508
518
  */
@@ -523,6 +533,9 @@ Dialog.propTypes = {
523
533
  * @ignore
524
534
  */
525
535
  className: _propTypes2.default.string,
536
+
537
+ container: _propTypes2.default.any,
538
+
526
539
  /**
527
540
  * The `className` to add to the content container.
528
541
  */
@@ -590,6 +603,7 @@ Dialog.defaultProps = {
590
603
  autoDetectWindowHeight: true,
591
604
  autoScrollBodyContent: false,
592
605
  modal: false,
593
- repositionOnUpdate: true
606
+ repositionOnUpdate: true,
607
+ container: document.body
594
608
  };
595
609
  exports.default = Dialog;
package/Drawer/Drawer.js CHANGED
@@ -345,7 +345,8 @@ var Drawer = function (_Component) {
345
345
  overlayClassName = _props.overlayClassName,
346
346
  overlayStyle = _props.overlayStyle,
347
347
  style = _props.style,
348
- zDepth = _props.zDepth;
348
+ zDepth = _props.zDepth,
349
+ autoLockScrolling = _props.autoLockScrolling;
349
350
 
350
351
 
351
352
  var styles = this.getStyles();
@@ -358,7 +359,8 @@ var Drawer = function (_Component) {
358
359
  className: overlayClassName,
359
360
  style: (0, _simpleAssign2.default)(styles.overlay, overlayStyle),
360
361
  transitionEnabled: !this.state.swiping,
361
- onClick: this.handleClickOverlay
362
+ onClick: this.handleClickOverlay,
363
+ autoLockScrolling: autoLockScrolling
362
364
  });
363
365
  }
364
366
 
@@ -390,6 +392,8 @@ var Drawer = function (_Component) {
390
392
  }(_react.Component);
391
393
 
392
394
  Drawer.propTypes = {
395
+ autoLockScrolling: _propTypes2.default.bool,
396
+
393
397
  /**
394
398
  * The contents of the `Drawer`
395
399
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "se-material-ui",
3
3
  "author": "Material-UI Team",
4
- "version": "0.20.3",
4
+ "version": "0.20.5",
5
5
  "description": "React Components that Implement Google's Material Design.",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",