groundfloor-react-ui 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Accordion/AccordionSB.js +6 -4
- package/components/Avatar/AvatarSB.js +2 -2
- package/components/Sidebar/Navbar.js +10 -61
- package/components/Sidebar/Sidebar.js +85 -64
- package/components/constants/defaultStyle.js +23 -32
- package/dist/index.es.js +19 -15
- package/dist/index.js +116 -112
- package/package.json +1 -1
|
@@ -20,6 +20,8 @@ export const AccordionSB = ({
|
|
|
20
20
|
handleClick,
|
|
21
21
|
isAccordionOpen,
|
|
22
22
|
id,
|
|
23
|
+
customSelectCardColor,
|
|
24
|
+
|
|
23
25
|
...props
|
|
24
26
|
}) => {
|
|
25
27
|
const [contentIsOpen, setContentIsOpen] = useState(false);
|
|
@@ -33,7 +35,7 @@ export const AccordionSB = ({
|
|
|
33
35
|
setCustomStylesContainer((prev) => {
|
|
34
36
|
return {
|
|
35
37
|
...prev,
|
|
36
|
-
backgroundColor: '#2444d8',
|
|
38
|
+
backgroundColor: customSelectCardColor || '#2444d8',
|
|
37
39
|
marginBottom: '15.5px',
|
|
38
40
|
marginTop: index !== 0 ? '15.5px' : '0px',
|
|
39
41
|
};
|
|
@@ -41,7 +43,7 @@ export const AccordionSB = ({
|
|
|
41
43
|
setCustomStylesTogggle((prev) => {
|
|
42
44
|
return {
|
|
43
45
|
...prev,
|
|
44
|
-
backgroundColor: '#2444d8',
|
|
46
|
+
backgroundColor: customSelectCardColor || '#2444d8',
|
|
45
47
|
paddingTop: '14px',
|
|
46
48
|
paddingBottom: '14px',
|
|
47
49
|
paddingLeft: '14px',
|
|
@@ -158,11 +160,11 @@ AccordionSB.propTypes = {
|
|
|
158
160
|
* String or element to be display in the header of the accordion
|
|
159
161
|
*/
|
|
160
162
|
contentToggle: PropTypes.any,
|
|
161
|
-
id: PropTypes.string
|
|
163
|
+
id: PropTypes.string,
|
|
162
164
|
};
|
|
163
165
|
|
|
164
166
|
AccordionSB.defaultProps = {
|
|
165
167
|
contentToggle: 'Toggle',
|
|
166
168
|
content: 'Content',
|
|
167
|
-
id: ''
|
|
169
|
+
id: '',
|
|
168
170
|
};
|
|
@@ -29,7 +29,7 @@ const StyledContainer = styled.span`
|
|
|
29
29
|
|
|
30
30
|
const StyledCircle = styled.div`
|
|
31
31
|
background-color: ${({ theme }) => theme.primary['primary-1']};
|
|
32
|
-
color: ${({ theme }) => theme.bgColor};
|
|
32
|
+
color: ${({ theme }) => theme.bgColor} !important;
|
|
33
33
|
${({ inBuiltCss, type, size, customStyles }) => {
|
|
34
34
|
if (inBuiltCss) {
|
|
35
35
|
let tempObj = {};
|
|
@@ -79,6 +79,7 @@ const StyledCircle = styled.div`
|
|
|
79
79
|
|
|
80
80
|
const StyledName = styled.span`
|
|
81
81
|
color: ${({ theme }) => theme.textColor};
|
|
82
|
+
background-color: transparent !important;
|
|
82
83
|
|
|
83
84
|
${({ inBuiltCss, type, size, customStyles }) => {
|
|
84
85
|
if (inBuiltCss) {
|
|
@@ -145,7 +146,6 @@ export const AvatarSB = ({
|
|
|
145
146
|
const handleImageStatus = (imageStatus) => {
|
|
146
147
|
setAvatarStatus(imageStatus);
|
|
147
148
|
};
|
|
148
|
-
// console.log('user', user)
|
|
149
149
|
return (
|
|
150
150
|
<StyledContainer
|
|
151
151
|
border={border}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import styled, { useTheme } from 'styled-components';
|
|
3
3
|
import { AccordionSB, AccordionSBfooter } from '../Accordion';
|
|
4
|
-
import { AvatarSB
|
|
4
|
+
import { AvatarSB } from '../Avatar';
|
|
5
5
|
import defaultThemeColor from '../constants/defaultThemeColor';
|
|
6
6
|
|
|
7
7
|
const StyledHeader = styled.div`
|
|
@@ -50,7 +50,7 @@ const ListElement = styled.div`
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
p {
|
|
53
|
-
margin: 8.25px
|
|
53
|
+
margin: 8.25px 0px;
|
|
54
54
|
}
|
|
55
55
|
`;
|
|
56
56
|
|
|
@@ -83,7 +83,7 @@ const ListElementFooter = styled.div`
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
p {
|
|
86
|
-
margin: 8.25px
|
|
86
|
+
margin: 8.25px 31px;
|
|
87
87
|
}
|
|
88
88
|
`;
|
|
89
89
|
|
|
@@ -99,6 +99,8 @@ export const Navbar = ({
|
|
|
99
99
|
notSelectedStyle,
|
|
100
100
|
customStylesNameHover,
|
|
101
101
|
listElementStyle,
|
|
102
|
+
customSelectCardColor,
|
|
103
|
+
user,
|
|
102
104
|
...props
|
|
103
105
|
}) => {
|
|
104
106
|
const activeTheme = useTheme() || defaultThemeColor;
|
|
@@ -125,9 +127,8 @@ export const Navbar = ({
|
|
|
125
127
|
style={{
|
|
126
128
|
display: 'flex',
|
|
127
129
|
flexDirection: 'column',
|
|
128
|
-
height: '
|
|
130
|
+
height: '98vh',
|
|
129
131
|
}}
|
|
130
|
-
className={'NavbarDiv'}
|
|
131
132
|
>
|
|
132
133
|
<StyledHeader theme={activeTheme} headerStyles={headerStyles}>
|
|
133
134
|
{headerContent}
|
|
@@ -143,6 +144,7 @@ export const Navbar = ({
|
|
|
143
144
|
}}
|
|
144
145
|
isAccordionOpen={i === accordionOpen}
|
|
145
146
|
isSelected={app.userName === selectedApp.lev1}
|
|
147
|
+
customSelectCardColor={customSelectCardColor}
|
|
146
148
|
customStylesAccordionContainer={{
|
|
147
149
|
padding: '0',
|
|
148
150
|
'box-shadow': 'none',
|
|
@@ -202,7 +204,6 @@ export const Navbar = ({
|
|
|
202
204
|
listElementStyle={listElementStyle}
|
|
203
205
|
key={app.id + sub}
|
|
204
206
|
onClick={() => {
|
|
205
|
-
console.log('Click: ', app.fullName, sub);
|
|
206
207
|
setApp({ lev1: `${app.userName}`, lev2: `${sub}` });
|
|
207
208
|
}}
|
|
208
209
|
>
|
|
@@ -269,9 +270,9 @@ export const Navbar = ({
|
|
|
269
270
|
customStylesNameHover={customStylesNameHover}
|
|
270
271
|
size={'LG'}
|
|
271
272
|
user={{
|
|
272
|
-
fullName: 'My Account',
|
|
273
|
-
userName: 'My Account',
|
|
274
|
-
url:
|
|
273
|
+
fullName: user.fullName || 'My Account',
|
|
274
|
+
userName: user.userName || 'My Account',
|
|
275
|
+
url: user.imgUrl,
|
|
275
276
|
}}
|
|
276
277
|
/>
|
|
277
278
|
}
|
|
@@ -296,58 +297,6 @@ export const Navbar = ({
|
|
|
296
297
|
</div>
|
|
297
298
|
}
|
|
298
299
|
/>
|
|
299
|
-
<AccordionSBfooter
|
|
300
|
-
handleClick={() => { }}
|
|
301
|
-
customStylesAccordionContainer={{
|
|
302
|
-
padding: '0',
|
|
303
|
-
'box-shadow': 'none',
|
|
304
|
-
'border-radius': '0px',
|
|
305
|
-
'background-color': 'transparent',
|
|
306
|
-
}}
|
|
307
|
-
customStylesAccordionTogggle={{
|
|
308
|
-
padding: '0',
|
|
309
|
-
'box-shadow': 'none',
|
|
310
|
-
'border-radius': '0px',
|
|
311
|
-
'background-color': 'transparent',
|
|
312
|
-
'padding-left': '16px',
|
|
313
|
-
'padding-top': '7.5px',
|
|
314
|
-
'padding-bottom': '7.5px',
|
|
315
|
-
cursor: 'pointer',
|
|
316
|
-
}}
|
|
317
|
-
customStylesAccordionContent={{
|
|
318
|
-
transition: 'height ease 0.2s', //transform ease 95ms',
|
|
319
|
-
overflow: 'hidden',
|
|
320
|
-
padding: '0',
|
|
321
|
-
'background-color': 'transparent',
|
|
322
|
-
color: 'white',
|
|
323
|
-
position: 'relative',
|
|
324
|
-
'box-shadow': 'none',
|
|
325
|
-
}}
|
|
326
|
-
contentToggle={
|
|
327
|
-
<AvatarSBfooter
|
|
328
|
-
selectedStyle={selectedStyle}
|
|
329
|
-
notSelectedStyle={notSelectedStyle}
|
|
330
|
-
toggleName={toggleSideBarOpen} //isOpen} //true}
|
|
331
|
-
customStylesName={{
|
|
332
|
-
'white-space': 'nowrap',
|
|
333
|
-
overflow: 'hidden',
|
|
334
|
-
'text-overflow': 'ellipsis',
|
|
335
|
-
color: 'white',
|
|
336
|
-
'font-weight': '400',
|
|
337
|
-
}}
|
|
338
|
-
customStylesNameHover={{
|
|
339
|
-
'text-decoration': 'underline',
|
|
340
|
-
}}
|
|
341
|
-
size={'LG'}
|
|
342
|
-
user={{
|
|
343
|
-
fullName: 'Users',
|
|
344
|
-
userName: 'Users',
|
|
345
|
-
}}
|
|
346
|
-
value={'+' + footerContent.length}
|
|
347
|
-
/>
|
|
348
|
-
}
|
|
349
|
-
disable={true}
|
|
350
|
-
/>
|
|
351
300
|
</StyledFooter>
|
|
352
301
|
</div>
|
|
353
302
|
);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import React from
|
|
3
|
-
import styled from 'styled-components';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import styled, { useTheme } from 'styled-components';
|
|
4
4
|
import defaultStyles from '../constants/defaultStyle';
|
|
5
|
+
import defaultThemeColor from '../constants/defaultThemeColor';
|
|
5
6
|
import getDefaultStyles from '../constants/utils';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -9,54 +10,89 @@ import getDefaultStyles from '../constants/utils';
|
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
const StyledContainer = styled.div`
|
|
12
|
-
${({ theme
|
|
13
|
-
|
|
13
|
+
background-color: ${({ theme }) => theme.variant['primary-1']} !important;
|
|
14
|
+
color: ${({ theme }) => theme.bgColor};
|
|
15
|
+
overflow-y: auto;
|
|
16
|
+
${({ inBuiltCss, type }) => {
|
|
17
|
+
return getDefaultStyles(inBuiltCss, 'sidebar-container');
|
|
14
18
|
}}
|
|
15
|
-
${({ customStylesContainer }) => customStylesContainer}
|
|
19
|
+
${({ customStylesContainer }) => customStylesContainer}
|
|
16
20
|
|
|
17
|
-
${({
|
|
21
|
+
${({
|
|
22
|
+
isOpen,
|
|
23
|
+
forceOpen,
|
|
24
|
+
inBuiltCss,
|
|
25
|
+
type,
|
|
26
|
+
customStylesContainerOpen,
|
|
27
|
+
customStylesContainerClose,
|
|
28
|
+
}) => {
|
|
18
29
|
if (isOpen || forceOpen) {
|
|
19
|
-
return {
|
|
30
|
+
return {
|
|
31
|
+
...getDefaultStyles(inBuiltCss, 'sidebar-container-open'),
|
|
32
|
+
...customStylesContainerOpen,
|
|
33
|
+
};
|
|
20
34
|
} else {
|
|
21
|
-
return {
|
|
35
|
+
return {
|
|
36
|
+
...getDefaultStyles(inBuiltCss, 'sidebar-container-close'),
|
|
37
|
+
...customStylesContainerClose,
|
|
38
|
+
};
|
|
22
39
|
}
|
|
23
40
|
}}
|
|
24
41
|
|
|
25
42
|
@media (max-width: 980px) {
|
|
26
|
-
${({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
43
|
+
${({
|
|
44
|
+
isOpen,
|
|
45
|
+
inBuiltCss,
|
|
46
|
+
type,
|
|
47
|
+
customStylesContainerMobileOpen,
|
|
48
|
+
customStylesContainerMobileClose,
|
|
49
|
+
}) => {
|
|
50
|
+
// if (isOpen) {
|
|
51
|
+
// return { ...getDefaultStyles(inBuiltCss, 'sidebar-container-mobile-open'), ...customStylesContainerMobileOpen };
|
|
52
|
+
// } else {
|
|
53
|
+
// return { ...getDefaultStyles(inBuiltCss, 'sidebar-container-mobile-close'), ...customStylesContainerMobileClose };
|
|
54
|
+
// }
|
|
32
55
|
}}
|
|
33
|
-
}
|
|
56
|
+
}
|
|
34
57
|
`;
|
|
35
58
|
|
|
36
59
|
const StyledPusher = styled.div`
|
|
37
|
-
${({
|
|
38
|
-
return getDefaultStyles(
|
|
60
|
+
${({ inBuiltCss, type }) => {
|
|
61
|
+
return getDefaultStyles(inBuiltCss, 'sidebar-pusher');
|
|
39
62
|
}}
|
|
40
63
|
${({ customStylesPusher }) => customStylesPusher}
|
|
41
64
|
|
|
42
|
-
${({
|
|
65
|
+
${({
|
|
66
|
+
forceOpen,
|
|
67
|
+
inBuiltCss,
|
|
68
|
+
type,
|
|
69
|
+
customStylesPusherOpen,
|
|
70
|
+
customStylesPusherClose,
|
|
71
|
+
}) => {
|
|
43
72
|
if (forceOpen) {
|
|
44
|
-
return {
|
|
73
|
+
return {
|
|
74
|
+
...getDefaultStyles(inBuiltCss, 'sidebar-pusher-open'),
|
|
75
|
+
...customStylesPusherOpen,
|
|
76
|
+
};
|
|
45
77
|
} else {
|
|
46
|
-
return {
|
|
78
|
+
return {
|
|
79
|
+
...getDefaultStyles(inBuiltCss, 'sidebar-pusher-close'),
|
|
80
|
+
...customStylesPusherClose,
|
|
81
|
+
};
|
|
47
82
|
}
|
|
48
83
|
}}
|
|
49
84
|
|
|
50
85
|
@media (max-width: 980px) {
|
|
51
|
-
${({
|
|
52
|
-
return {
|
|
53
|
-
|
|
54
|
-
|
|
86
|
+
${({ inBuiltCss, type, customStylesPusherMobile }) => {
|
|
87
|
+
return {
|
|
88
|
+
...getDefaultStyles(inBuiltCss, 'sidebar-pusher-mobile'),
|
|
89
|
+
...customStylesPusherMobile,
|
|
90
|
+
};
|
|
91
|
+
}}}
|
|
55
92
|
}
|
|
56
93
|
`;
|
|
57
94
|
|
|
58
95
|
export const Sidebar = ({
|
|
59
|
-
theme,
|
|
60
96
|
customStylesContainer,
|
|
61
97
|
customStylesContainerOpen,
|
|
62
98
|
customStylesContainerClose,
|
|
@@ -73,50 +109,39 @@ export const Sidebar = ({
|
|
|
73
109
|
pinner,
|
|
74
110
|
...props
|
|
75
111
|
}) => {
|
|
76
|
-
|
|
77
112
|
function handleMouse(flag) {
|
|
78
|
-
|
|
79
|
-
handleSidebar(flag)
|
|
113
|
+
handleSidebar(flag);
|
|
80
114
|
}
|
|
115
|
+
const activeTheme = useTheme() || defaultThemeColor;
|
|
81
116
|
|
|
82
117
|
return (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
handleMouse(true);
|
|
93
|
-
// console.log("onMouseEnter")
|
|
94
|
-
}
|
|
95
|
-
}
|
|
118
|
+
<StyledContainer
|
|
119
|
+
theme={activeTheme}
|
|
120
|
+
inBuiltCss={defaultStyles}
|
|
121
|
+
customStyles={customStylesContainer}
|
|
122
|
+
type={'sidebarContainer'}
|
|
123
|
+
onMouseEnter={() => {
|
|
124
|
+
if (forceOpen) {
|
|
125
|
+
} else {
|
|
126
|
+
handleMouse(true);
|
|
96
127
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
</StyledContainer>
|
|
111
|
-
</>
|
|
128
|
+
}}
|
|
129
|
+
onMouseLeave={() => {
|
|
130
|
+
handleMouse(false);
|
|
131
|
+
forceClose();
|
|
132
|
+
}}
|
|
133
|
+
forceOpen={forceOpen}
|
|
134
|
+
isOpen={toggleSideBarOpen} //true}
|
|
135
|
+
{...props}
|
|
136
|
+
>
|
|
137
|
+
<StyledPusher />
|
|
138
|
+
{props.children}
|
|
139
|
+
{pinner}
|
|
140
|
+
</StyledContainer>
|
|
112
141
|
);
|
|
113
142
|
};
|
|
114
143
|
|
|
115
144
|
Sidebar.propTypes = {
|
|
116
|
-
/**
|
|
117
|
-
* Theme object
|
|
118
|
-
*/
|
|
119
|
-
theme: PropTypes.object,
|
|
120
145
|
/**
|
|
121
146
|
* Custom style of container
|
|
122
147
|
*/
|
|
@@ -173,8 +198,4 @@ Sidebar.propTypes = {
|
|
|
173
198
|
* Component to pin the sidebar on large screen
|
|
174
199
|
*/
|
|
175
200
|
pinner: PropTypes.any,
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
Sidebar.defaultProps = {
|
|
179
|
-
theme: defaultStyles,
|
|
180
201
|
};
|
|
@@ -19,7 +19,7 @@ const defaultStyles = {
|
|
|
19
19
|
display: 'flex',
|
|
20
20
|
width: 'inherit',
|
|
21
21
|
'align-items': 'flex-start',
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
'margin-bottom': '0',
|
|
24
24
|
'padding-bottom': '0',
|
|
25
25
|
},
|
|
@@ -283,8 +283,6 @@ const defaultStyles = {
|
|
|
283
283
|
'min-height': '51px',
|
|
284
284
|
'padding-left': '39px',
|
|
285
285
|
'font-size': '16px',
|
|
286
|
-
'background-color': `${defaultThemeColor['bgColor']}`,
|
|
287
|
-
'border-bottom': `0.5px solid ${defaultThemeColor.variant['neutral-3']}`,
|
|
288
286
|
},
|
|
289
287
|
/**
|
|
290
288
|
* Default Style of the Content
|
|
@@ -336,8 +334,6 @@ const defaultStyles = {
|
|
|
336
334
|
*/
|
|
337
335
|
sidebarContainer: {
|
|
338
336
|
'min-height': '100%',
|
|
339
|
-
overflow: 'hidden',
|
|
340
|
-
'background-color': '#2e56f4',
|
|
341
337
|
position: 'fixed',
|
|
342
338
|
color: 'white',
|
|
343
339
|
width: '70px',
|
|
@@ -534,9 +530,9 @@ const defaultStyles = {
|
|
|
534
530
|
transition: 'transform ease 400ms',
|
|
535
531
|
display: 'flex',
|
|
536
532
|
'flex-direction': 'column',
|
|
537
|
-
|
|
533
|
+
|
|
538
534
|
'box-sizing': 'border-box',
|
|
539
|
-
|
|
535
|
+
|
|
540
536
|
top: '51px',
|
|
541
537
|
right: '0px',
|
|
542
538
|
'z-index': '1001',
|
|
@@ -552,11 +548,11 @@ const defaultStyles = {
|
|
|
552
548
|
* Default Style of the tooltip
|
|
553
549
|
*/
|
|
554
550
|
'tooltip-container': {
|
|
555
|
-
|
|
551
|
+
|
|
556
552
|
'border-radius': '3.6px',
|
|
557
|
-
|
|
553
|
+
|
|
558
554
|
'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
559
|
-
|
|
555
|
+
|
|
560
556
|
display: 'flex',
|
|
561
557
|
'flex-direction': 'column',
|
|
562
558
|
padding: '0',
|
|
@@ -587,46 +583,45 @@ const defaultStyles = {
|
|
|
587
583
|
width: '0',
|
|
588
584
|
},
|
|
589
585
|
'tp-cont-bottom-arrow-before': {
|
|
590
|
-
'border-
|
|
591
|
-
'border-width': '0 15px 19px 15px',
|
|
586
|
+
'border-width': '0 15px 0px 15px',
|
|
592
587
|
position: 'absolute',
|
|
593
588
|
top: '-1px',
|
|
594
589
|
},
|
|
595
590
|
'tp-cont-bottom-arrow-after': {
|
|
596
|
-
|
|
591
|
+
|
|
597
592
|
// 'border-width': '0 0.5rem 0.4rem 0.5rem',
|
|
598
593
|
'border-width': '0 15px 19px 15px',
|
|
599
594
|
},
|
|
600
595
|
'tp-cont-top-arrow-before': {
|
|
601
|
-
|
|
596
|
+
|
|
602
597
|
// 'border-width': '0.4rem 0.5rem 0 0.5rem',
|
|
603
|
-
'border-width': '
|
|
598
|
+
'border-width': '0px 15px 0 15px',
|
|
604
599
|
position: 'absolute',
|
|
605
600
|
top: '1px',
|
|
606
601
|
},
|
|
607
602
|
'tp-cont-top-arrow-after': {
|
|
608
|
-
|
|
603
|
+
|
|
609
604
|
// 'border-width': '0.4rem 0.5rem 0 0.5rem',
|
|
610
605
|
'border-width': '19px 15px 0 15px',
|
|
611
606
|
},
|
|
612
607
|
'tp-cont-right-arrow-before': {
|
|
613
|
-
|
|
614
|
-
'border-width': '15px
|
|
608
|
+
|
|
609
|
+
'border-width': '15px 0px 15px 0',
|
|
615
610
|
},
|
|
616
611
|
'tp-cont-right-arrow-after': {
|
|
617
|
-
|
|
612
|
+
|
|
618
613
|
// 'border-width': '0.5rem 0.4rem 0.5rem 0',
|
|
619
614
|
'border-width': '15px 19px 15px 0',
|
|
620
615
|
left: '6px',
|
|
621
616
|
top: '0',
|
|
622
617
|
},
|
|
623
618
|
'tp-cont-left-arrow-before': {
|
|
624
|
-
|
|
619
|
+
|
|
625
620
|
// 'border-width': '0.5rem 0 0.5rem 0.4em',
|
|
626
|
-
'border-width': '15px 0 15px
|
|
621
|
+
'border-width': '15px 0 15px 0px',
|
|
627
622
|
},
|
|
628
623
|
'tp-cont-left-arrow-after': {
|
|
629
|
-
|
|
624
|
+
|
|
630
625
|
// 'border-width': '0.5rem 0 0.5rem 0.4em',
|
|
631
626
|
'border-width': '15px 0 15px 19px',
|
|
632
627
|
left: '3px',
|
|
@@ -654,11 +649,7 @@ const defaultStyles = {
|
|
|
654
649
|
* Default Style of the overlay
|
|
655
650
|
*/
|
|
656
651
|
overlay: {
|
|
657
|
-
'background-color': `${defaultThemeColor.bgColor}`,
|
|
658
652
|
'border-radius': '3.6px',
|
|
659
|
-
border: `1px solid ${defaultThemeColor.bgColor}`,
|
|
660
|
-
'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
661
|
-
color: '#000',
|
|
662
653
|
display: 'flex',
|
|
663
654
|
'flex-direction': 'column',
|
|
664
655
|
padding: '0',
|
|
@@ -666,11 +657,11 @@ const defaultStyles = {
|
|
|
666
657
|
'z-index': '9999',
|
|
667
658
|
},
|
|
668
659
|
'simple-overlay': {
|
|
669
|
-
|
|
660
|
+
|
|
670
661
|
'border-radius': '6px',
|
|
671
|
-
|
|
662
|
+
|
|
672
663
|
// 'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
673
|
-
|
|
664
|
+
|
|
674
665
|
display: 'flex',
|
|
675
666
|
'flex-direction': 'column',
|
|
676
667
|
padding: '0',
|
|
@@ -682,10 +673,8 @@ const defaultStyles = {
|
|
|
682
673
|
*/
|
|
683
674
|
'sidebar-container': {
|
|
684
675
|
'min-height': '100%',
|
|
685
|
-
|
|
686
|
-
'background-color': '#2e56f4',
|
|
676
|
+
overflowX: 'hidden',
|
|
687
677
|
position: 'fixed',
|
|
688
|
-
color: 'white',
|
|
689
678
|
transition: 'width ease 400ms',
|
|
690
679
|
display: 'flex',
|
|
691
680
|
'flex-direction': 'column',
|
|
@@ -772,6 +761,7 @@ const defaultStyles = {
|
|
|
772
761
|
},
|
|
773
762
|
},
|
|
774
763
|
|
|
764
|
+
|
|
775
765
|
'popOver-Content': {
|
|
776
766
|
padding: '16px',
|
|
777
767
|
color: 'white',
|
|
@@ -803,6 +793,7 @@ const defaultStyles = {
|
|
|
803
793
|
width: '24px',
|
|
804
794
|
height: '24px',
|
|
805
795
|
}
|
|
796
|
+
|
|
806
797
|
};
|
|
807
798
|
|
|
808
799
|
export default defaultStyles;
|