'use strict';

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

var _templateObject = _taggedTemplateLiteral(['\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  ', '\n  ', '\n  ', '\n  \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  ', '\n  ', '\n  ', '\n  \n\n']),
    _templateObject2 = _taggedTemplateLiteral(['\n    align-self: stretch;\n  '], ['\n    align-self: stretch;\n  ']),
    _templateObject3 = _taggedTemplateLiteral(['\n    align-self: center;\n  '], ['\n    align-self: center;\n  ']),
    _templateObject4 = _taggedTemplateLiteral(['\n    align-self: flex-end;\n  '], ['\n    align-self: flex-end;\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 LayoutItem = _styledComponents2.default.div(_templateObject, function (props) {
  return props.full && (0, _styledComponents.css)(_templateObject2);
}, function (props) {
  return props.center && (0, _styledComponents.css)(_templateObject3);
}, function (props) {
  return props.bottom && (0, _styledComponents.css)(_templateObject4);
});

LayoutItem.displayName = 'LayoutItem';
LayoutItem.defaultProps = {
  className: 'layout__item'
};
exports.default = LayoutItem;