"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

// Style

/* istanbul ignore next */
if (typeof window !== 'undefined') {}

var Flex = function Flex(props) {
  return /*#__PURE__*/_react["default"].createElement(props.tag, (0, _extends2["default"])({}, props, {
    className: "Flex Flex_".concat(props.layout, " ").concat(props.className || '')
  }), props.children);
};

Flex.propTypes = {
  align: _propTypes["default"].oneOf(['center', 'start', 'end', 'baseline', 'stretch']),
  className: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].array, _propTypes["default"].object]),
  inline: _propTypes["default"].oneOfType([_propTypes["default"].bool, _propTypes["default"].string]),
  justify: _propTypes["default"].oneOf(['center', 'start', 'end', 'between', 'around']),
  layout: _propTypes["default"].oneOf(['row', 'col']),
  tag: _propTypes["default"].string,
  text: _propTypes["default"].oneOf(['left', 'center', 'right'])
};
Flex.defaultProps = {
  align: 'start',
  justify: 'between',
  layout: 'row',
  tag: 'div'
};
var _default = Flex;
exports["default"] = _default;