1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.TableCol = exports.TableRow = exports.TableHeader = undefined;
|
7 |
|
8 | var _templateObject = _taggedTemplateLiteral(['\n display: flex;\n flex-direction: column;\n margin: auto;\n font-size: .9rem;\n'], ['\n display: flex;\n flex-direction: column;\n margin: auto;\n font-size: .9rem;\n']),
|
9 | _templateObject2 = _taggedTemplateLiteral(['\n display: flex;\n background-color: ', ';\n font-weight: 700;\n border-bottom: 1px solid ', ';\n'], ['\n display: flex;\n background-color: ', ';\n font-weight: 700;\n border-bottom: 1px solid ', ';\n']),
|
10 | _templateObject3 = _taggedTemplateLiteral(['\n display: flex;\n background-color: ', ';\n'], ['\n display: flex;\n background-color: ', ';\n']),
|
11 | _templateObject4 = _taggedTemplateLiteral(['\n flex-grow: ', ';\n flex-basis: 0;\n margin: 2px 8px 2px 4px;\n'], ['\n flex-grow: ', ';\n flex-basis: 0;\n margin: 2px 8px 2px 4px;\n']);
|
12 |
|
13 | var _styledComponents = require('styled-components');
|
14 |
|
15 | var _styledComponents2 = _interopRequireDefault(_styledComponents);
|
16 |
|
17 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
18 |
|
19 | function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
20 |
|
21 | var Table = _styledComponents2.default.div(_templateObject);
|
22 |
|
23 | var TableHeader = exports.TableHeader = _styledComponents2.default.div(_templateObject2, function (props) {
|
24 | return props.theme.bahTableHeaderColor;
|
25 | }, function (props) {
|
26 | return props.theme.bahTableHeaderBorderColor;
|
27 | });
|
28 |
|
29 | var TableRow = exports.TableRow = _styledComponents2.default.div(_templateObject3, function (props) {
|
30 | return props.theme.bahTableRowColor;
|
31 | });
|
32 |
|
33 | var TableCol = exports.TableCol = _styledComponents2.default.div(_templateObject4, function (props) {
|
34 | return props.flexGrow || 1;
|
35 | });
|
36 |
|
37 | exports.default = Table; |
\ | No newline at end of file |