function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

import React from 'react';
import cx from 'classnames';

var Column = function Column(_ref) {
  var span = _ref.span,
      _ref$fixed = _ref.fixed,
      fixed = _ref$fixed === void 0 ? false : _ref$fixed,
      laptopSpan = _ref.laptopSpan,
      laptopTabletSpan = _ref.laptopTabletSpan,
      tabletLandscapeSpan = _ref.tabletLandscapeSpan,
      tabletPortraitSpan = _ref.tabletPortraitSpan,
      phoneSpan = _ref.phoneSpan,
      left = _ref.left,
      center = _ref.center,
      right = _ref.right,
      top = _ref.top,
      middle = _ref.middle,
      bottom = _ref.bottom,
      className = _ref.className,
      children = _ref.children,
      rest = _objectWithoutPropertiesLoose(_ref, ["span", "fixed", "laptopSpan", "laptopTabletSpan", "tabletLandscapeSpan", "tabletPortraitSpan", "phoneSpan", "left", "center", "right", "top", "middle", "bottom", "className", "children"]);

  var classes = cx('column', span && "span-" + span, fixed && span && "fixed-span-" + span, laptopSpan && "tablet-landscape-span-" + laptopSpan, laptopTabletSpan && "tablet-landscape-span-" + laptopTabletSpan, tabletLandscapeSpan && "tablet-landscape-span-" + tabletLandscapeSpan, tabletPortraitSpan && "tablet-portrait-span-" + tabletPortraitSpan, phoneSpan && "phone-span-" + phoneSpan, left && 'left', center && 'center', right && 'right', top && 'top', middle && 'middle', bottom && 'bottom', className && 'className');
  return /*#__PURE__*/React.createElement("div", _extends({
    className: classes
  }, rest), children);
};

Column.displayName = 'Column';
var ColumnDoc;

if (process.env.NODE_ENV !== 'production') {
  // eslint-disable-next-line global-require
  ColumnDoc = require('./doc').doc(Column);
}

var ColumnWrapper = ColumnDoc || Column;
export { ColumnWrapper as Column };