'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _templateObject = _taggedTemplateLiteral(['\n  display: flex;\n  flex-wrap: wrap;\n  list-style: none;\n  margin: 0;\n  \n  padding: 0;\n\n  ', '\n \n  ', '\n\n   ', '\n\n   ', '\n  \n  ', '\n  ', '\n  ', '\n\n  ', '\n\n  ', '\n  ', '\n  ', '\n\n\n  ', '\n  ', '\n  ', '\n\n  ', '\n  ', '\n\n  ', '\n  ', '\n  ', '\n\n  ', '\n  ', '\n\n\n    \n\n   \n  ', '\n\n  \n\n'], ['\n  display: flex;\n  flex-wrap: wrap;\n  list-style: none;\n  margin: 0;\n  \n  padding: 0;\n\n  ', '\n \n  ', '\n\n   ', '\n\n   ', '\n  \n  ', '\n  ', '\n  ', '\n\n  ', '\n\n  ', '\n  ', '\n  ', '\n\n\n  ', '\n  ', '\n  ', '\n\n  ', '\n  ', '\n\n  ', '\n  ', '\n  ', '\n\n  ', '\n  ', '\n\n\n    \n\n   \n  ', '\n\n  \n\n']),
    _templateObject2 = _taggedTemplateLiteral([' \n    margin-left: -0.33333rem;\n    > div{\n      padding-left: 0.33333rem;\n    }\n  '], [' \n    margin-left: -0.33333rem;\n    > div{\n      padding-left: 0.33333rem;\n    }\n  ']),
    _templateObject3 = _taggedTemplateLiteral([' \n    margin-left: -0.66667rem;\n    > div{\n      padding-left: 0.66667rem;\n    }\n  '], [' \n    margin-left: -0.66667rem;\n    > div{\n      padding-left: 0.66667rem;\n    }\n  ']),
    _templateObject4 = _taggedTemplateLiteral([' \n    margin-left: -1.33333rem;\n    > div{\n      padding-left: 1.33333rem;\n    }\n  '], [' \n    margin-left: -1.33333rem;\n    > div{\n      padding-left: 1.33333rem;\n    }\n  ']),
    _templateObject5 = _taggedTemplateLiteral([' \n    margin-left: -2rem;\n    > div{\n      padding-left: 2rem;\n    }\n  '], [' \n    margin-left: -2rem;\n    > div{\n      padding-left: 2rem;\n    }\n  ']),
    _templateObject6 = _taggedTemplateLiteral([' flex-direction: row-reverse; '], [' flex-direction: row-reverse; ']),
    _templateObject7 = _taggedTemplateLiteral([' flex-direction: column; '], [' flex-direction: column; ']),
    _templateObject8 = _taggedTemplateLiteral([' flex-direction: column-reverse; '], [' flex-direction: column-reverse; ']),
    _templateObject9 = _taggedTemplateLiteral(['display: inline-flex;'], ['display: inline-flex;']),
    _templateObject10 = _taggedTemplateLiteral(['flex-wrap: wrap;'], ['flex-wrap: wrap;']),
    _templateObject11 = _taggedTemplateLiteral(['flex-wrap: wrap-reverse;'], ['flex-wrap: wrap-reverse;']),
    _templateObject12 = _taggedTemplateLiteral(['flex-wrap: nowrap;'], ['flex-wrap: nowrap;']),
    _templateObject13 = _taggedTemplateLiteral(['justify-content: flex-start;'], ['justify-content: flex-start;']),
    _templateObject14 = _taggedTemplateLiteral(['justify-content: center;'], ['justify-content: center;']),
    _templateObject15 = _taggedTemplateLiteral(['justify-content: flex-end;'], ['justify-content: flex-end;']),
    _templateObject16 = _taggedTemplateLiteral(['justify-content: space-between;'], ['justify-content: space-between;']),
    _templateObject17 = _taggedTemplateLiteral(['justify-content: space-around;'], ['justify-content: space-around;']),
    _templateObject18 = _taggedTemplateLiteral(['align-items: flex-start;'], ['align-items: flex-start;']),
    _templateObject19 = _taggedTemplateLiteral(['align-items: center;'], ['align-items: center;']),
    _templateObject20 = _taggedTemplateLiteral(['align-items: flex-end;'], ['align-items: flex-end;']),
    _templateObject21 = _taggedTemplateLiteral(['align-items: stretch;'], ['align-items: stretch;']),
    _templateObject22 = _taggedTemplateLiteral(['align-items: baseline;'], ['align-items: baseline;']),
    _templateObject23 = _taggedTemplateLiteral(['\n    padding-left: 1rem;\n    flex: 1;\n    flex-basis: 13.33333rem;\n    &:nth-last-child(-n+3):first-child,\n    &:nth-last-child(-n+3):first-child~.layout__item {\n    flex-basis: 26.66667rem;\n  }\n    &:nth-last-child(-n+4):first-child,\n    &:nth-last-child(-n+4):first-child ~ .layout__item {\n      flex-basis: 20rem;\n    }\n    @media screen and (min-width: 64em) {\n      flex-basis: 0;\n    }\n    @media screen and (min-width: 64em) {\n      &:nth-last-child(-n+3):first-child,\n      &:nth-last-child(-n+3):first-child ~  .layout__item {\n        flex-basis: 0;\n      }\n    }\n\n  '], ['\n    padding-left: 1rem;\n    flex: 1;\n    flex-basis: 13.33333rem;\n    &:nth-last-child(-n+3):first-child,\n    &:nth-last-child(-n+3):first-child~.layout__item {\n    flex-basis: 26.66667rem;\n  }\n    &:nth-last-child(-n+4):first-child,\n    &:nth-last-child(-n+4):first-child ~ .layout__item {\n      flex-basis: 20rem;\n    }\n    @media screen and (min-width: 64em) {\n      flex-basis: 0;\n    }\n    @media screen and (min-width: 64em) {\n      &:nth-last-child(-n+3):first-child,\n      &:nth-last-child(-n+3):first-child ~  .layout__item {\n        flex-basis: 0;\n      }\n    }\n\n  ']);

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }

var Layout = _styledComponents2.default.div(_templateObject, function (props) {
  return props.tiny && (0, _styledComponents.css)(_templateObject2);
}, function (props) {
  return props.small && (0, _styledComponents.css)(_templateObject3);
}, function (props) {
  return props.large && (0, _styledComponents.css)(_templateObject4);
}, function (props) {
  return props.huge && (0, _styledComponents.css)(_templateObject5);
}, function (props) {
  return props.rev && (0, _styledComponents.css)(_templateObject6);
}, function (props) {
  return props.col && (0, _styledComponents.css)(_templateObject7);
}, function (props) {
  return props.colrev && (0, _styledComponents.css)(_templateObject8);
}, function (props) {
  return props.inline && (0, _styledComponents.css)(_templateObject9);
}, function (props) {
  return props.wrap && (0, _styledComponents.css)(_templateObject10);
}, function (props) {
  return props.wraprev && (0, _styledComponents.css)(_templateObject11);
}, function (props) {
  return props.nowrap && (0, _styledComponents.css)(_templateObject12);
}, function (props) {
  return props.left && (0, _styledComponents.css)(_templateObject13);
}, function (props) {
  return props.center && (0, _styledComponents.css)(_templateObject14);
}, function (props) {
  return props.right && (0, _styledComponents.css)(_templateObject15);
}, function (props) {
  return props.justify && (0, _styledComponents.css)(_templateObject16);
}, function (props) {
  return props.spaced && (0, _styledComponents.css)(_templateObject17);
}, function (props) {
  return props.top && (0, _styledComponents.css)(_templateObject18);
}, function (props) {
  return props.middle && (0, _styledComponents.css)(_templateObject19);
}, function (props) {
  return props.bottom && (0, _styledComponents.css)(_templateObject20);
}, function (props) {
  return props.stretch && (0, _styledComponents.css)(_templateObject21);
}, function (props) {
  return props.baseline && (0, _styledComponents.css)(_templateObject22);
}, function (props) {
  return props.item && (0, _styledComponents.css)(_templateObject23);
});

Layout.displayName = 'Layout';
Layout.defaultProps = {
  className: 'layout'
};
exports.default = Layout;