text: 'use strict';
  
  exports.__esModule = true;
  
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  
  var _react = require('react');
  
  var _react2 = _interopRequireDefault(_react);
  
  var _propTypes = require('prop-types');
  
  var _propTypes2 = _interopRequireDefault(_propTypes);
  
  var _classnames = require('classnames');
  
  var _classnames2 = _interopRequireDefault(_classnames);
  
  var _between = require('../utils/PropTypes/between');
  
  var _between2 = _interopRequireDefault(_between);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
  
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  
  function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  
  /**
   * The `Paper` component is a simple wrapper that adds box-shadow.
   *
   * You can also use the SCSS mixin instead of paper.
   *
   * ```scss
   * @include md-box-shadow(5);
   * ```
   */
  var Paper = function (_PureComponent) {
    _inherits(Paper, _PureComponent);
  
    function Paper() {
      _classCallCheck(this, Paper);
  
      return _possibleConstructorReturn(this, _PureComponent.apply(this, arguments));
    }
  
    Paper.prototype.render = function render() {
      var _props = this.props,
          Component = _props.component,
          componentRef = _props.componentRef,
          zDepth = _props.zDepth,
          className = _props.className,
          raiseOnHover = _props.raiseOnHover,
          props = _objectWithoutProperties(_props, ['component', 'componentRef', 'zDepth', 'className', 'raiseOnHover']);
  
      return _react2.default.createElement(Component, _extends({}, props, {
        ref: componentRef,
        className: (0, _classnames2.default)('md-paper md-paper--' + zDepth, {
          'md-paper--0-hover': zDepth === 0 && raiseOnHover
        }, className)
      }));
    };
  
    return Paper;
  }(_react.PureComponent);
  
  Paper.propTypes = {
    /**
     * The component to render the paper as.
     */
    component: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.string, _propTypes2.default.object]).isRequired,
  
    /**
     * An optional ref callback to get reference to the top-most element of the rendered component.
     * Just like other refs, this will provide null when it unmounts.
     *
     * This is helpful if you'd like access the DOM node for a parent Component without needing to use
     * `ReactDOM.findDOMNode`.
     */
    componentRef: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.object]),
  
    /**
     * An optional className to apply.
     */
    className: _propTypes2.default.string,
  
    /**
     * The depth of the paper. This should be a number between 0 - 5. If
     * the depth is 0, it will raise to a depth of 3 on hover.
     */
    zDepth: (0, _between2.default)(_propTypes2.default.number.isRequired, 0, 5),
  
    /**
     * Any children to display in the paper.
     */
    children: _propTypes2.default.node,
  
    /**
     * Boolean if the paper should raise to the `zDepth` of `3` on hover when the initial
     * `zDepth` is `0`.
     */
    raiseOnHover: _propTypes2.default.bool
  };
  Paper.defaultProps = {
    zDepth: 1,
    component: 'div'
  };
  exports.default = Paper;