groundfloor-react-ui 1.2.6 → 1.2.8
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/Inputs/CheckBoxInput.js +14 -2
- package/components/Sidebar/Navbar.js +16 -64
- package/components/Sidebar/Sidebar.js +88 -61
- package/components/constants/defaultStyle.js +25 -32
- package/dist/index.es.js +57 -53
- package/dist/index.js +139 -135
- 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}
|
|
@@ -83,7 +83,7 @@ const OptionText = styled.span`
|
|
|
83
83
|
else if (!checked && !defaultTextColor) return theme.neutral['neutral-2'];
|
|
84
84
|
}};
|
|
85
85
|
|
|
86
|
-
margin-right: ${({ inline }) => (inline ? '30px' : '
|
|
86
|
+
margin-right: ${({ inline }) => (inline ? '30px' : '10px')};
|
|
87
87
|
|
|
88
88
|
// custom styles
|
|
89
89
|
${({ optionTextStyle }) => optionTextStyle}
|
|
@@ -96,9 +96,9 @@ const WrapperDiv = styled.label`
|
|
|
96
96
|
width: fit-content;
|
|
97
97
|
margin-bottom: ${({ inline }) => (!inline ? '18px !important' : '')};
|
|
98
98
|
cursor: pointer;
|
|
99
|
-
align-items: center;
|
|
100
99
|
display: flex;
|
|
101
100
|
gap: 10px;
|
|
101
|
+
align-items: start;
|
|
102
102
|
|
|
103
103
|
// custom styles
|
|
104
104
|
${({ wrapperStyles }) => wrapperStyles}
|
|
@@ -293,6 +293,16 @@ CheckBoxInput.propTypes = {
|
|
|
293
293
|
inline: PropTypes.bool,
|
|
294
294
|
/**
|
|
295
295
|
* Array that will be rendered for checkbox options
|
|
296
|
+
ex: [
|
|
297
|
+
{
|
|
298
|
+
label: 'Lorem ipsum dolor sit amet',
|
|
299
|
+
value: 'Option One',
|
|
300
|
+
disabled: false,
|
|
301
|
+
id: '1'
|
|
302
|
+
// disabledColor: '#B25068',
|
|
303
|
+
},
|
|
304
|
+
{ label: 'Option Two', value: 'Option Two', checked: true, id: '2' },
|
|
305
|
+
]
|
|
296
306
|
*/
|
|
297
307
|
options: PropTypes.array,
|
|
298
308
|
/**
|
|
@@ -311,6 +321,8 @@ CheckBoxInput.propTypes = {
|
|
|
311
321
|
* Wrapper styles
|
|
312
322
|
*/
|
|
313
323
|
wrapperStyles: PropTypes.object,
|
|
324
|
+
|
|
325
|
+
|
|
314
326
|
};
|
|
315
327
|
|
|
316
328
|
CheckBoxInput.defaultProps = {
|
|
@@ -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,10 @@ export const Navbar = ({
|
|
|
99
99
|
notSelectedStyle,
|
|
100
100
|
customStylesNameHover,
|
|
101
101
|
listElementStyle,
|
|
102
|
+
customSelectCardColor,
|
|
103
|
+
user,
|
|
104
|
+
firstBottomContent,
|
|
105
|
+
secondBottomContent,
|
|
102
106
|
...props
|
|
103
107
|
}) => {
|
|
104
108
|
const activeTheme = useTheme() || defaultThemeColor;
|
|
@@ -125,9 +129,8 @@ export const Navbar = ({
|
|
|
125
129
|
style={{
|
|
126
130
|
display: 'flex',
|
|
127
131
|
flexDirection: 'column',
|
|
128
|
-
height: '
|
|
132
|
+
height: '98vh',
|
|
129
133
|
}}
|
|
130
|
-
className={'NavbarDiv'}
|
|
131
134
|
>
|
|
132
135
|
<StyledHeader theme={activeTheme} headerStyles={headerStyles}>
|
|
133
136
|
{headerContent}
|
|
@@ -143,6 +146,7 @@ export const Navbar = ({
|
|
|
143
146
|
}}
|
|
144
147
|
isAccordionOpen={i === accordionOpen}
|
|
145
148
|
isSelected={app.userName === selectedApp.lev1}
|
|
149
|
+
customSelectCardColor={customSelectCardColor}
|
|
146
150
|
customStylesAccordionContainer={{
|
|
147
151
|
padding: '0',
|
|
148
152
|
'box-shadow': 'none',
|
|
@@ -202,7 +206,6 @@ export const Navbar = ({
|
|
|
202
206
|
listElementStyle={listElementStyle}
|
|
203
207
|
key={app.id + sub}
|
|
204
208
|
onClick={() => {
|
|
205
|
-
console.log('Click: ', app.fullName, sub);
|
|
206
209
|
setApp({ lev1: `${app.userName}`, lev2: `${sub}` });
|
|
207
210
|
}}
|
|
208
211
|
>
|
|
@@ -269,9 +272,9 @@ export const Navbar = ({
|
|
|
269
272
|
customStylesNameHover={customStylesNameHover}
|
|
270
273
|
size={'LG'}
|
|
271
274
|
user={{
|
|
272
|
-
fullName: 'My Account',
|
|
273
|
-
userName: 'My Account',
|
|
274
|
-
url:
|
|
275
|
+
fullName: user.fullName || 'My Account',
|
|
276
|
+
userName: user.userName || 'My Account',
|
|
277
|
+
url: user.imgUrl,
|
|
275
278
|
}}
|
|
276
279
|
/>
|
|
277
280
|
}
|
|
@@ -286,68 +289,17 @@ export const Navbar = ({
|
|
|
286
289
|
>
|
|
287
290
|
<ListElementFooter
|
|
288
291
|
listElementStyle={listElementStyle}
|
|
289
|
-
onClick={() => { }}
|
|
290
292
|
>
|
|
291
|
-
|
|
293
|
+
{firstBottomContent}
|
|
294
|
+
|
|
292
295
|
</ListElementFooter>
|
|
293
296
|
<ListElementFooter onClick={() => { }}>
|
|
294
|
-
|
|
297
|
+
|
|
298
|
+
{secondBottomContent}
|
|
295
299
|
</ListElementFooter>
|
|
296
300
|
</div>
|
|
297
301
|
}
|
|
298
302
|
/>
|
|
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
303
|
</StyledFooter>
|
|
352
304
|
</div>
|
|
353
305
|
);
|
|
@@ -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
|
-
}
|
|
96
|
-
}
|
|
97
|
-
onMouseLeave={
|
|
98
|
-
() => {
|
|
99
|
-
handleMouse(false);
|
|
100
|
-
// console.log("onMouseLeave")
|
|
101
|
-
forceClose();
|
|
102
|
-
}
|
|
118
|
+
<StyledContainer
|
|
119
|
+
theme={activeTheme}
|
|
120
|
+
inBuiltCss={defaultStyles}
|
|
121
|
+
customStyles={customStylesContainer}
|
|
122
|
+
type={'sidebarContainer'}
|
|
123
|
+
onMouseEnter={() => {
|
|
124
|
+
if (forceOpen) {
|
|
125
|
+
} else {
|
|
126
|
+
handleMouse(true);
|
|
103
127
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
*/
|
|
@@ -175,6 +200,8 @@ Sidebar.propTypes = {
|
|
|
175
200
|
pinner: PropTypes.any,
|
|
176
201
|
};
|
|
177
202
|
|
|
203
|
+
|
|
178
204
|
Sidebar.defaultProps = {
|
|
179
|
-
|
|
205
|
+
forceClose: () => { },
|
|
206
|
+
forceOpen: false,
|
|
180
207
|
};
|
|
@@ -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',
|
|
@@ -348,6 +344,7 @@ const defaultStyles = {
|
|
|
348
344
|
*/
|
|
349
345
|
'checkBox-outer': {
|
|
350
346
|
border: `2px solid ${defaultThemeColor.border}`,
|
|
347
|
+
minWidth: '20px',
|
|
351
348
|
width: '20px',
|
|
352
349
|
height: '20px',
|
|
353
350
|
'border-radius': '3px',
|
|
@@ -357,6 +354,7 @@ const defaultStyles = {
|
|
|
357
354
|
'checkBox-inner': {
|
|
358
355
|
'background-repeat': 'no-repeat',
|
|
359
356
|
'background-position': 'center',
|
|
357
|
+
minWidth: '20px',
|
|
360
358
|
width: '20px',
|
|
361
359
|
height: '20px',
|
|
362
360
|
color: `${defaultThemeColor.bgColor}`,
|
|
@@ -534,9 +532,9 @@ const defaultStyles = {
|
|
|
534
532
|
transition: 'transform ease 400ms',
|
|
535
533
|
display: 'flex',
|
|
536
534
|
'flex-direction': 'column',
|
|
537
|
-
|
|
535
|
+
|
|
538
536
|
'box-sizing': 'border-box',
|
|
539
|
-
|
|
537
|
+
|
|
540
538
|
top: '51px',
|
|
541
539
|
right: '0px',
|
|
542
540
|
'z-index': '1001',
|
|
@@ -552,11 +550,11 @@ const defaultStyles = {
|
|
|
552
550
|
* Default Style of the tooltip
|
|
553
551
|
*/
|
|
554
552
|
'tooltip-container': {
|
|
555
|
-
|
|
553
|
+
|
|
556
554
|
'border-radius': '3.6px',
|
|
557
|
-
|
|
555
|
+
|
|
558
556
|
'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
559
|
-
|
|
557
|
+
|
|
560
558
|
display: 'flex',
|
|
561
559
|
'flex-direction': 'column',
|
|
562
560
|
padding: '0',
|
|
@@ -587,46 +585,45 @@ const defaultStyles = {
|
|
|
587
585
|
width: '0',
|
|
588
586
|
},
|
|
589
587
|
'tp-cont-bottom-arrow-before': {
|
|
590
|
-
'border-
|
|
591
|
-
'border-width': '0 15px 19px 15px',
|
|
588
|
+
'border-width': '0 15px 0px 15px',
|
|
592
589
|
position: 'absolute',
|
|
593
590
|
top: '-1px',
|
|
594
591
|
},
|
|
595
592
|
'tp-cont-bottom-arrow-after': {
|
|
596
|
-
|
|
593
|
+
|
|
597
594
|
// 'border-width': '0 0.5rem 0.4rem 0.5rem',
|
|
598
595
|
'border-width': '0 15px 19px 15px',
|
|
599
596
|
},
|
|
600
597
|
'tp-cont-top-arrow-before': {
|
|
601
|
-
|
|
598
|
+
|
|
602
599
|
// 'border-width': '0.4rem 0.5rem 0 0.5rem',
|
|
603
|
-
'border-width': '
|
|
600
|
+
'border-width': '0px 15px 0 15px',
|
|
604
601
|
position: 'absolute',
|
|
605
602
|
top: '1px',
|
|
606
603
|
},
|
|
607
604
|
'tp-cont-top-arrow-after': {
|
|
608
|
-
|
|
605
|
+
|
|
609
606
|
// 'border-width': '0.4rem 0.5rem 0 0.5rem',
|
|
610
607
|
'border-width': '19px 15px 0 15px',
|
|
611
608
|
},
|
|
612
609
|
'tp-cont-right-arrow-before': {
|
|
613
|
-
|
|
614
|
-
'border-width': '15px
|
|
610
|
+
|
|
611
|
+
'border-width': '15px 0px 15px 0',
|
|
615
612
|
},
|
|
616
613
|
'tp-cont-right-arrow-after': {
|
|
617
|
-
|
|
614
|
+
|
|
618
615
|
// 'border-width': '0.5rem 0.4rem 0.5rem 0',
|
|
619
616
|
'border-width': '15px 19px 15px 0',
|
|
620
617
|
left: '6px',
|
|
621
618
|
top: '0',
|
|
622
619
|
},
|
|
623
620
|
'tp-cont-left-arrow-before': {
|
|
624
|
-
|
|
621
|
+
|
|
625
622
|
// 'border-width': '0.5rem 0 0.5rem 0.4em',
|
|
626
|
-
'border-width': '15px 0 15px
|
|
623
|
+
'border-width': '15px 0 15px 0px',
|
|
627
624
|
},
|
|
628
625
|
'tp-cont-left-arrow-after': {
|
|
629
|
-
|
|
626
|
+
|
|
630
627
|
// 'border-width': '0.5rem 0 0.5rem 0.4em',
|
|
631
628
|
'border-width': '15px 0 15px 19px',
|
|
632
629
|
left: '3px',
|
|
@@ -654,11 +651,7 @@ const defaultStyles = {
|
|
|
654
651
|
* Default Style of the overlay
|
|
655
652
|
*/
|
|
656
653
|
overlay: {
|
|
657
|
-
'background-color': `${defaultThemeColor.bgColor}`,
|
|
658
654
|
'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
655
|
display: 'flex',
|
|
663
656
|
'flex-direction': 'column',
|
|
664
657
|
padding: '0',
|
|
@@ -666,11 +659,11 @@ const defaultStyles = {
|
|
|
666
659
|
'z-index': '9999',
|
|
667
660
|
},
|
|
668
661
|
'simple-overlay': {
|
|
669
|
-
|
|
662
|
+
|
|
670
663
|
'border-radius': '6px',
|
|
671
|
-
|
|
664
|
+
|
|
672
665
|
// 'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
673
|
-
|
|
666
|
+
|
|
674
667
|
display: 'flex',
|
|
675
668
|
'flex-direction': 'column',
|
|
676
669
|
padding: '0',
|
|
@@ -682,10 +675,8 @@ const defaultStyles = {
|
|
|
682
675
|
*/
|
|
683
676
|
'sidebar-container': {
|
|
684
677
|
'min-height': '100%',
|
|
685
|
-
|
|
686
|
-
'background-color': '#2e56f4',
|
|
678
|
+
overflowX: 'hidden',
|
|
687
679
|
position: 'fixed',
|
|
688
|
-
color: 'white',
|
|
689
680
|
transition: 'width ease 400ms',
|
|
690
681
|
display: 'flex',
|
|
691
682
|
'flex-direction': 'column',
|
|
@@ -772,6 +763,7 @@ const defaultStyles = {
|
|
|
772
763
|
},
|
|
773
764
|
},
|
|
774
765
|
|
|
766
|
+
|
|
775
767
|
'popOver-Content': {
|
|
776
768
|
padding: '16px',
|
|
777
769
|
color: 'white',
|
|
@@ -803,6 +795,7 @@ const defaultStyles = {
|
|
|
803
795
|
width: '24px',
|
|
804
796
|
height: '24px',
|
|
805
797
|
}
|
|
798
|
+
|
|
806
799
|
};
|
|
807
800
|
|
|
808
801
|
export default defaultStyles;
|