'use strict';

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

var styled = require('styled-components');
var utils = require('./utils.js');
var index = require('../../utils/index.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);

const Card = styled__default['default'].div `
  display: flex;
  flex-direction: column;
  border-radius: ${(props) => props.theme.radius.roundedC};
  box-shadow: ${(props) => props.theme.elevation.e1};
  ${utils.getCardVariant};
  ${utils.getCardInteractiveStyles}
`;
Card.displayName = 'Card';
const CardContent = styled__default['default'].div `
  display: flex;
  flex-direction: column;
  padding: ${index.getSpacing('s04', 's05')};
  width: 100%;
`;
CardContent.displayName = 'CardContent';
const CardHeader = styled__default['default'].div `
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  padding: ${index.getSpacing('s05', 's05', 's04')};
  width: 100%;

  h1,
  h2,
  h3,
  h4 {
    margin: 0;
  }
`;
CardHeader.displayName = 'CardHeader';
const CardActions = styled__default['default'].div `
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  padding: ${index.getSpacing('s04', 's05', 's05')};
  width: 100%;
`;
CardActions.displayName = 'CardActions';

exports.Card = Card;
exports.CardActions = CardActions;
exports.CardContent = CardContent;
exports.CardHeader = CardHeader;
