'use strict';

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

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

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 TextArea = _styledComponents2.default.textarea.withConfig({
  displayName: 'TextArea'
})(['background:', ';color:', ';font-size:14px;font-weight:400;font-family:', ';letter-spacing:0.02em;border-color:', ';border-width:', ';border-style:solid;line-height:1.5;min-height:100px;box-shadow:none;transition:all 0.2s ease;outline:none;width:100%;height:', ';'], (0, _themeGet2.default)('colors.background.default'), (0, _themeGet2.default)('colors.text.default'), (0, _themeGet2.default)('fonts.brand'), (0, _themeGet2.default)('colors.border.light'), (0, _themeGet2.default)('thicknesses.wide'), function (props) {
  return props.height;
});

TextArea.propTypes = {
  /**
   * Adds a class name to the element.
   */
  className: _propTypes2.default.string,
  /**
   * Adds an id to the element.
   */
  id: _propTypes2.default.string,
  /**
   * Specifies the height of the element.
   */
  height: _propTypes2.default.string
};

TextArea.defaultProps = {
  className: null,
  id: null,
  height: '100px'
};

/**
 * @component
 */
exports.default = TextArea;