UNPKG

1.14 kBJavaScriptView Raw
1import { oneOf, node, string, bool } from 'prop-types';
2import { breakpointPropType } from './types/props.js';
3import { c as _objectWithoutPropertiesLoose, g as _extends } from './chunk-1f79df9b.js';
4import { createElement } from 'react';
5import _Container from './Container/styled.js';
6
7var Container = function Container(_ref) {
8 var align = _ref.align,
9 children = _ref.children,
10 className = _ref.className,
11 props = _objectWithoutPropertiesLoose(_ref, ["align", "children", "className"]);
12
13 return createElement(_Container, _extends({
14 className: className,
15 align: align
16 }, props), children);
17};
18var containerPropTypes = {
19 align: oneOf(['left', 'right', 'center']),
20 breakpoint: breakpointPropType,
21 children: node.isRequired,
22 className: string,
23 isFluid: bool,
24 isLayout: bool
25};
26Container.propTypes = containerPropTypes;
27var containerDefaultProps = {
28 align: 'center',
29 breakpoint: undefined,
30 className: undefined,
31 isFluid: false,
32 isLayout: false
33};
34Container.defaultProps = containerDefaultProps;
35var C = Container;
36
37export { C as a, containerPropTypes as b, containerDefaultProps as c };