'use strict';

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

var _templateObject = _taggedTemplateLiteral(['\n  padding: 0.5em 1em;\n  font-size: 0.8em;\n'], ['\n  padding: 0.5em 1em;\n  font-size: 0.8em;\n']);

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

var _styledComponents2 = _interopRequireDefault(_styledComponents);

var _themeGet = require('../../../extensions/themeGet');

var _themeGet2 = _interopRequireDefault(_themeGet);

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 AlertBorder = _styledComponents2.default.div.withConfig({
  displayName: 'AlertBorder'
})(['padding:', ' ', ';font-weight:500;border-width:', ';border-style:solid;width:auto;font-size:1em;line-height:1em;position:relative;display:flex;flex-direction:row;background:', ';color:', ';'], (0, _themeGet2.default)('spacing.small'), (0, _themeGet2.default)('spacing.medium'), (0, _themeGet2.default)('thicknesses.normal'), function (_ref) {
  var theme = _ref.theme,
      type = _ref.type;

  switch (type) {
    case 'success':
      return (0, _themeGet2.default)('colors.positive.light');
    case 'error':
      return (0, _themeGet2.default)('colors.negative.light');
    default:
      return (0, _themeGet2.default)('colors.primary.light');
  }
}, function (_ref2) {
  var theme = _ref2.theme,
      type = _ref2.type;

  switch (type) {
    case 'success':
      return (0, _themeGet2.default)('colors.positive.default');
    case 'error':
      return (0, _themeGet2.default)('colors.negative.default');
    default:
      return (0, _themeGet2.default)('colors.primary.default');
  }
});

AlertBorder.Small = AlertBorder.extend(_templateObject);

exports.default = AlertBorder;