UNPKG

3.23 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _templateObject = _taggedTemplateLiteral(['\n textarea {\n resize: vertical;\n appearance: none;\n background-color: ', ';\n border: 2px solid ', ';\n border-radius: ', ';\n color: inherit;\n font-size: ', ';\n height: ', ';\n padding: ', ';\n vertical-align: middle;\n box-shadow: inset 0 2px 3px ', ';\n width: 100%;\n margin-bottom: ', ';\n\n &:disabled {\n background-color: ', ';\n }\n\n &:focus {\n box-shadow: inset 0 2px 3px ', ';\n border-color: ', ';\n outline: 0;\n }\n\n ', ' ', ';\n }\n'], ['\n textarea {\n resize: vertical;\n appearance: none;\n background-color: ', ';\n border: 2px solid ', ';\n border-radius: ', ';\n color: inherit;\n font-size: ', ';\n height: ', ';\n padding: ', ';\n vertical-align: middle;\n box-shadow: inset 0 2px 3px ', ';\n width: 100%;\n margin-bottom: ', ';\n\n &:disabled {\n background-color: ', ';\n }\n\n &:focus {\n box-shadow: inset 0 2px 3px ', ';\n border-color: ', ';\n outline: 0;\n }\n\n ', ' ', ';\n }\n']);
8
9var _styledComponents = require('styled-components');
10
11var _styledComponents2 = _interopRequireDefault(_styledComponents);
12
13function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
15function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
17var TextAreaStyled = _styledComponents2.default.div(_templateObject, function (props) {
18 return props.theme.bahFormInputBackgroundColor;
19}, function (props) {
20 return props.theme.bahFormInputBorderColor;
21}, function (props) {
22 return props.theme.bahFormFieldsDefaultBorder;
23}, function (props) {
24 return props.textSize;
25}, function (props) {
26 return props.theme.bahFormInputDefaultHeight;
27}, function (props) {
28 return props.theme.bahFormInputDefaultPadding;
29}, function (props) {
30 return props.theme.bahFormInputBoxShadowColor;
31}, function (props) {
32 return props.theme.bahFormFieldsDefaultMarginBottom;
33}, function (props) {
34 return props.theme.bahFormInputDisabledColor;
35}, function (props) {
36 return props.theme.bahFormInputFocusShadowColor;
37}, function (props) {
38 return props.theme.bahFormInputFocusBorderColor;
39}, function (props) {
40 return props.isValid && '\n box-shadow:inset 0 2px 3px ' + props.theme.bahColors.green100 + ';\n border-color: ' + props.theme.bahColors.green300 + ';\n outline: 0;\n &:focus {\n box-shadow:inset 0 2px 3px ' + props.theme.bahColors.green200 + ';\n border-color: ' + props.theme.bahColors.green400 + ';\n outline: 0;\n }\n ';
41}, function (props) {
42 return props.isInvalid && '\n box-shadow:inset 0 2px 3px ' + props.theme.bahColors.red100 + ';\n border-color: ' + props.theme.bahColors.red300 + ';\n outline: 0;\n &:focus {\n box-shadow:inset 0 2px 3px ' + props.theme.bahColors.red200 + ';\n border-color: ' + props.theme.bahColors.red400 + ';\n outline: 0;\n }\n ';
43});
44
45exports.default = TextAreaStyled;
\No newline at end of file