1 | 'use strict';
|
2 |
|
3 | function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
4 |
|
5 | var PropTypes = require('prop-types');
|
6 | var __chunk_1 = require('./chunk-c300b528.js');
|
7 | var React = require('react');
|
8 | var React__default = _interopDefault(React);
|
9 | var styled$7 = require('./Pane/styled.js');
|
10 |
|
11 | var Pane = function Pane(_ref) {
|
12 | var border = _ref.border,
|
13 | children = _ref.children,
|
14 | props = __chunk_1._objectWithoutPropertiesLoose(_ref, ["border", "children"]);
|
15 |
|
16 | return React.createElement(styled$7.default, __chunk_1._extends({
|
17 | styledBorder: border
|
18 | }, props), children);
|
19 | };
|
20 | var panePropTypes = {
|
21 | border: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['shadow'])]),
|
22 | className: PropTypes.string,
|
23 | children: PropTypes.node,
|
24 | isFullWidth: PropTypes.bool,
|
25 | elevation: PropTypes.string
|
26 | };
|
27 | Pane.propTypes = panePropTypes;
|
28 | var paneDefaultProps = {
|
29 | border: false,
|
30 | className: undefined,
|
31 | children: undefined,
|
32 | isFullWidth: false,
|
33 | elevation: undefined
|
34 | };
|
35 | Pane.defaultProps = paneDefaultProps;
|
36 | var C = Pane;
|
37 |
|
38 | exports.Pane = C;
|
39 | exports.paneDefaultProps = paneDefaultProps;
|
40 | exports.panePropTypes = panePropTypes;
|