1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.SidebarItem = undefined;
|
7 |
|
8 | var _templateObject = _taggedTemplateLiteral(['\n background-color: ', ';\n overflow: hidden;\n height: auto;\n font-family: ', ';\n font-size: ', ';\n'], ['\n background-color: ', ';\n overflow: hidden;\n height: auto;\n font-family: ', ';\n font-size: ', ';\n']),
|
9 | _templateObject2 = _taggedTemplateLiteral(['\n input {\n display: none;\n }\n label {\n display: block;\n padding: 10px;\n background: ', ';\n font-size: ', ';\n cursor: pointer;\n color: ', ';\n border-bottom: ', ' solid\n ', ';\n }\n label:hover {\n background-color: ', ';\n }\n ul {\n width: 100%;\n list-style: none;\n overflow: hidden;\n max-height: 0;\n transition: all .2s linear;\n }\n ul li a {\n width: 100%;\n height: 20px;\n padding: 10px;\n display: block;\n text-decoration: none;\n background-color: ', ';\n color: ', ';\n border-bottom: solid ', '\n ', ';\n }\n ul li a:hover {\n background-color: ', ';\n }\n input:checked ~ ul {\n height: auto;\n max-height: 200px;\n transform: all;\n }\n'], ['\n input {\n display: none;\n }\n label {\n display: block;\n padding: 10px;\n background: ', ';\n font-size: ', ';\n cursor: pointer;\n color: ', ';\n border-bottom: ', ' solid\n ', ';\n }\n label:hover {\n background-color: ', ';\n }\n ul {\n width: 100%;\n list-style: none;\n overflow: hidden;\n max-height: 0;\n transition: all .2s linear;\n }\n ul li a {\n width: 100%;\n height: 20px;\n padding: 10px;\n display: block;\n text-decoration: none;\n background-color: ', ';\n color: ', ';\n border-bottom: solid ', '\n ', ';\n }\n ul li a:hover {\n background-color: ', ';\n }\n input:checked ~ ul {\n height: auto;\n max-height: 200px;\n transform: all;\n }\n']);
|
10 |
|
11 | var _styledComponents = require('styled-components');
|
12 |
|
13 | var _styledComponents2 = _interopRequireDefault(_styledComponents);
|
14 |
|
15 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
16 |
|
17 | function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
18 |
|
19 | var Sidebar = _styledComponents2.default.div(_templateObject, function (props) {
|
20 | return props.theme.bahSidebarBgColor;
|
21 | }, function (props) {
|
22 | return props.theme.bahFontFamily;
|
23 | }, function (props) {
|
24 | return props.theme.bahSidebarFonteSize;
|
25 | });
|
26 |
|
27 | var SidebarItem = exports.SidebarItem = _styledComponents2.default.div(_templateObject2, function (props) {
|
28 | return props.theme.bahSidebarItemLabelBgColor;
|
29 | }, function (props) {
|
30 | return props.theme.bahSidebarItemLabelFonteSize;
|
31 | }, function (props) {
|
32 | return props.theme.bahSidebarItemLabelTextColor;
|
33 | }, function (props) {
|
34 | return props.theme.bahSidebarItemLabelBorderSize;
|
35 | }, function (props) {
|
36 | return props.theme.bahSidebarItemLabelBorderColor;
|
37 | }, function (props) {
|
38 | return props.theme.bahSidebarItemLabelHoverBgColor;
|
39 | }, function (props) {
|
40 | return props.theme.bahSidebarItemUlBgColor;
|
41 | }, function (props) {
|
42 | return props.theme.bahSidebarItemUlTextColor;
|
43 | }, function (props) {
|
44 | return props.theme.bahSidebarItemUlBorderSize;
|
45 | }, function (props) {
|
46 | return props.theme.bahSidebarItemUlBorderColor;
|
47 | }, function (props) {
|
48 | return props.theme.bahSidebarItemUlHoverBgColor;
|
49 | });
|
50 |
|
51 | exports.default = Sidebar; |
\ | No newline at end of file |