'use strict';

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

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 }; }

var AlertBorder = _styledComponents2.default.div.withConfig({
  displayName: 'AlertBorder'
})(['padding:', ' ', ';font-weight:200;border-width:', ';border-style:solid;width:auto;font-size:14px;line-height:1.5em;position:relative;display:flex;flex-direction:row;min-height:53px;letter-spacing:0.02em;background:', ';border-color:', ';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.border');
    case 'error':
      return (0, _themeGet2.default)('colors.negative.border');
    default:
      return (0, _themeGet2.default)('colors.primary.border');
  }
}, function (_ref3) {
  var theme = _ref3.theme,
      type = _ref3.type;

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

AlertBorder.Small = (0, _styledComponents2.default)(AlertBorder).withConfig({
  displayName: 'AlertBorder__Small'
})(['padding:5px;font-size:0.8em;min-height:30px;font-weight:300;']);

exports.default = AlertBorder;