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 props = require('./types/props.js');
|
7 | var __chunk_1 = require('./chunk-c300b528.js');
|
8 | var React = require('react');
|
9 | var React__default = _interopDefault(React);
|
10 | var styled = require('./Container/styled.js');
|
11 |
|
12 | var Container = function Container(_ref) {
|
13 | var align = _ref.align,
|
14 | children = _ref.children,
|
15 | className = _ref.className,
|
16 | props = __chunk_1._objectWithoutPropertiesLoose(_ref, ["align", "children", "className"]);
|
17 |
|
18 | return React.createElement(styled.default, __chunk_1._extends({
|
19 | className: className,
|
20 | align: align
|
21 | }, props), children);
|
22 | };
|
23 | var containerPropTypes = {
|
24 | align: PropTypes.oneOf(['left', 'right', 'center']),
|
25 | breakpoint: props.breakpointPropType,
|
26 | children: PropTypes.node.isRequired,
|
27 | className: PropTypes.string,
|
28 | isFluid: PropTypes.bool,
|
29 | isLayout: PropTypes.bool
|
30 | };
|
31 | Container.propTypes = containerPropTypes;
|
32 | var containerDefaultProps = {
|
33 | align: 'center',
|
34 | breakpoint: undefined,
|
35 | className: undefined,
|
36 | isFluid: false,
|
37 | isLayout: false
|
38 | };
|
39 | Container.defaultProps = containerDefaultProps;
|
40 | var C = Container;
|
41 |
|
42 | exports.Container = C;
|
43 | exports.containerDefaultProps = containerDefaultProps;
|
44 | exports.containerPropTypes = containerPropTypes;
|