UNPKG

1.37 kBJavaScriptView Raw
1'use strict';
2
3function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
5var PropTypes = require('prop-types');
6var props = require('./types/props.js');
7var __chunk_1 = require('./chunk-c300b528.js');
8var React = require('react');
9var React__default = _interopDefault(React);
10var styled = require('./Container/styled.js');
11
12var 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};
23var 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};
31Container.propTypes = containerPropTypes;
32var containerDefaultProps = {
33 align: 'center',
34 breakpoint: undefined,
35 className: undefined,
36 isFluid: false,
37 isLayout: false
38};
39Container.defaultProps = containerDefaultProps;
40var C = Container;
41
42exports.Container = C;
43exports.containerDefaultProps = containerDefaultProps;
44exports.containerPropTypes = containerPropTypes;