groundfloor-react-ui 1.0.0
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/README.md +20 -0
- package/assets/fonts/Averta/Averta-Black.woff2 +0 -0
- package/assets/fonts/Averta/Averta-BlackItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-Bold.woff2 +0 -0
- package/assets/fonts/Averta/Averta-BoldItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-ExtraBold.woff2 +0 -0
- package/assets/fonts/Averta/Averta-ExtraBoldItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-ExtraThin.woff2 +0 -0
- package/assets/fonts/Averta/Averta-ExtraThinItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-Light.woff2 +0 -0
- package/assets/fonts/Averta/Averta-LightItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-Regular.woff2 +0 -0
- package/assets/fonts/Averta/Averta-RegularItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-SemiBold.woff2 +0 -0
- package/assets/fonts/Averta/Averta-SemiBoldItalic.woff2 +0 -0
- package/assets/fonts/Averta/Averta-Thin.woff2 +0 -0
- package/assets/fonts/Averta/Averta-ThinItalic.woff2 +0 -0
- package/assets/fonts/Beauty/BeautyDemo.woff +0 -0
- package/assets/icons/app-logo.svg +3 -0
- package/assets/icons/arrow-down.svg +3 -0
- package/assets/icons/arrow-rotate.svg +1 -0
- package/assets/icons/arrow-up.svg +3 -0
- package/assets/icons/bell.svg +3 -0
- package/assets/icons/check.svg +3 -0
- package/assets/icons/checkmark.svg +3 -0
- package/assets/icons/chevron-down.svg +3 -0
- package/assets/icons/chevron-left.svg +3 -0
- package/assets/icons/chevron-right.svg +3 -0
- package/assets/icons/cloud-icon.svg +3 -0
- package/assets/icons/connection.svg +3 -0
- package/assets/icons/cross-icon.svg +3 -0
- package/assets/icons/door-internal-active.svg +1 -0
- package/assets/icons/edit-icon.svg +3 -0
- package/assets/icons/ellipses-horizontal.svg +3 -0
- package/assets/icons/ellipses.svg +3 -0
- package/assets/icons/email.svg +3 -0
- package/assets/icons/eye-hide-view.svg +1 -0
- package/assets/icons/eye-hide.svg +1 -0
- package/assets/icons/file-attach-white.svg +3 -0
- package/assets/icons/file-attach.svg +3 -0
- package/assets/icons/functional-equation-regular.svg +147 -0
- package/assets/icons/hamburger-menu.svg +3 -0
- package/assets/icons/heart.svg +18 -0
- package/assets/icons/image.svg +3 -0
- package/assets/icons/info.svg +3 -0
- package/assets/icons/jpg-icon.svg +3 -0
- package/assets/icons/magnifier.svg +3 -0
- package/assets/icons/menu-ellipse-two.svg +1 -0
- package/assets/icons/menu-ellipse.svg +53 -0
- package/assets/icons/pause-all.svg +1 -0
- package/assets/icons/pdf-icon.svg +3 -0
- package/assets/icons/pen-icon.svg +3 -0
- package/assets/icons/plus-outlined.svg +3 -0
- package/assets/icons/resume.svg +1 -0
- package/assets/icons/sign-icon.svg +3 -0
- package/assets/icons/star.svg +3 -0
- package/assets/icons/trash-icon.svg +59 -0
- package/assets/icons/triangle-down.svg +3 -0
- package/assets/icons/users.svg +11 -0
- package/assets/icons/view.svg +3 -0
- package/assets/icons/watcher.svg +3 -0
- package/assets/icons/zoom-in-white.svg +1 -0
- package/assets/styles/global.css +0 -0
- package/assets/styles/global.scss +0 -0
- package/components/Accordion/Accordion.js +114 -0
- package/components/Accordion/AccordionSB.js +168 -0
- package/components/Accordion/AccordionSBfooter.js +171 -0
- package/components/Accordion/index.js +4 -0
- package/components/ArrowBar/ArrowBar.js +293 -0
- package/components/ArrowBar/index.js +2 -0
- package/components/Avatar/Avatar.js +167 -0
- package/components/Avatar/AvatarSB.js +226 -0
- package/components/Avatar/AvatarSBfooter.js +226 -0
- package/components/Avatar/index.js +4 -0
- package/components/Banner/Banner.js +65 -0
- package/components/Banner/index.js +2 -0
- package/components/Breadcrumb/Breadcrumb.js +192 -0
- package/components/Breadcrumb/index.js +2 -0
- package/components/Button/PrimaryButton.js +125 -0
- package/components/Button/SecondaryButton.js +114 -0
- package/components/Button/TinyButton.js +94 -0
- package/components/Button/index.js +6 -0
- package/components/Cards/Card.js +48 -0
- package/components/Cards/CardRef.js +64 -0
- package/components/Cards/DocumentCard.js +221 -0
- package/components/Cards/index.js +5 -0
- package/components/Content/Content.js +51 -0
- package/components/Content/index.js +1 -0
- package/components/Divider/Divider.js +63 -0
- package/components/Divider/index.js +2 -0
- package/components/Drawer/Drawer.js +93 -0
- package/components/Drawer/index.js +2 -0
- package/components/ErrorBoundary/ErrorBoundary.js +44 -0
- package/components/ErrorBoundary/index.js +1 -0
- package/components/FilterChip/FilterChip.js +68 -0
- package/components/FilterChip/index.js +1 -0
- package/components/Footer/Footer.js +58 -0
- package/components/Footer/FooterContentLev3.js +96 -0
- package/components/Footer/index.js +2 -0
- package/components/Form/FormComponent.js +273 -0
- package/components/Form/HeaderComponent.js +39 -0
- package/components/Form/StyledComponent.js +323 -0
- package/components/Form/SubmitComponent.js +63 -0
- package/components/Form/index.js +4 -0
- package/components/GroupAvatars/GroupAvatars.js +143 -0
- package/components/GroupAvatars/index.js +1 -0
- package/components/GroupButtons/ButtonPopup.js +192 -0
- package/components/GroupButtons/GroupButtons.js +150 -0
- package/components/GroupButtons/GroupButtonsPopup.js +169 -0
- package/components/GroupButtons/index.js +3 -0
- package/components/GroupStatusCircle/GroupStatusCircle.js +135 -0
- package/components/GroupStatusCircle/index.js +1 -0
- package/components/Header/Header.js +58 -0
- package/components/Header/index.js +1 -0
- package/components/HyperLink/HyperLink.js +114 -0
- package/components/HyperLink/index.js +1 -0
- package/components/Icon/Icon.js +161 -0
- package/components/Icon/index.js +1 -0
- package/components/Images/Image.js +112 -0
- package/components/Images/index.js +2 -0
- package/components/Inputs/CheckBoxEditableInput.js +352 -0
- package/components/Inputs/CheckBoxInput.js +195 -0
- package/components/Inputs/CheckBoxInputMS.js +160 -0
- package/components/Inputs/DateSelect.js +411 -0
- package/components/Inputs/DropdownSelect.js +466 -0
- package/components/Inputs/DropzoneInput.js +335 -0
- package/components/Inputs/NumericInput.js +155 -0
- package/components/Inputs/RadioInput.js +205 -0
- package/components/Inputs/SearchInput.js +18 -0
- package/components/Inputs/Signature.js +278 -0
- package/components/Inputs/TextArea.js +196 -0
- package/components/Inputs/TextInput.js +182 -0
- package/components/Inputs/TextInputClicable.js +198 -0
- package/components/Inputs/TextInputClicableMS.js +255 -0
- package/components/Inputs/TimeInput.js +181 -0
- package/components/Inputs/ToggleSwitch.js +123 -0
- package/components/Inputs/index.js +13 -0
- package/components/Label/Label.js +48 -0
- package/components/Label/index.js +1 -0
- package/components/Loaders/Loader.js +179 -0
- package/components/Loaders/index.js +2 -0
- package/components/Modal/Modal.js +116 -0
- package/components/Modal/ModalComp.js +158 -0
- package/components/Modal/index.js +2 -0
- package/components/Overlay/Overlay.js +159 -0
- package/components/Overlay/index.js +1 -0
- package/components/Pagination/Pagination.js +83 -0
- package/components/Pagination/index.js +1 -0
- package/components/ProgressBar/ProgressBar.js +84 -0
- package/components/ProgressBar/index.js +1 -0
- package/components/ProgressSteps/ProgressSteps.js +121 -0
- package/components/ProgressSteps/index.js +1 -0
- package/components/Rating/Rating.js +264 -0
- package/components/Rating/index.js +1 -0
- package/components/SecondaryLink/DarkSecondaryLink.js +97 -0
- package/components/SecondaryLink/LightSecondaryLink.js +93 -0
- package/components/SecondaryLink/index.js +3 -0
- package/components/Sidebar/Navbar.js +328 -0
- package/components/Sidebar/Sidebar.js +180 -0
- package/components/Sidebar/index.js +3 -0
- package/components/StatusChip/PrimaryStatusChip.js +78 -0
- package/components/StatusChip/SecondaryStatusChip.js +78 -0
- package/components/StatusChip/SlimPrimaryStatusChip.js +92 -0
- package/components/StatusChip/SlimSecondaryStatusChip.js +93 -0
- package/components/StatusChip/index.js +6 -0
- package/components/StatusCircle/StatusCircle.js +64 -0
- package/components/StatusCircle/index.js +1 -0
- package/components/Tables/Table.js +156 -0
- package/components/Tables/index.js +1 -0
- package/components/Tooltip/Tooltip.js +479 -0
- package/components/Tooltip/index.js +1 -0
- package/components/Typography/Typography.js +78 -0
- package/components/Typography/index.js +2 -0
- package/components/constants/colors.js +33 -0
- package/components/constants/defaultStyle.js +781 -0
- package/components/constants/defaultThemeColor.js +15 -0
- package/components/constants/index.js +7 -0
- package/components/constants/utils.js +31 -0
- package/components/global/FontStyle.js +131 -0
- package/components/global/index.js +1 -0
- package/dist/index.es.js +2302 -0
- package/dist/index.js +2302 -0
- package/index.js +40 -0
- package/package.json +67 -0
- package/rollup.config.js +53 -0
|
@@ -0,0 +1,781 @@
|
|
|
1
|
+
import defaultThemeColor from './defaultThemeColor';
|
|
2
|
+
const border = `#D4D7E3`;
|
|
3
|
+
|
|
4
|
+
const defaultStyles = {
|
|
5
|
+
/**
|
|
6
|
+
* Common Style poroperties of all the element of the library
|
|
7
|
+
*/
|
|
8
|
+
'common': {
|
|
9
|
+
'color': 'blue',
|
|
10
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
11
|
+
},
|
|
12
|
+
/**
|
|
13
|
+
* Default Style of the element label
|
|
14
|
+
*/
|
|
15
|
+
'label': {
|
|
16
|
+
'padding-left': '6px',
|
|
17
|
+
'font-style': 'normal',
|
|
18
|
+
'font-weight': 'normal',
|
|
19
|
+
'font-size': '20px',
|
|
20
|
+
'display': 'flex',
|
|
21
|
+
'width': 'inherit',
|
|
22
|
+
'align-items': 'flex-start',
|
|
23
|
+
'color': '#444444',
|
|
24
|
+
'margin-bottom': '0'
|
|
25
|
+
|
|
26
|
+
},
|
|
27
|
+
'button': {
|
|
28
|
+
'color': 'red',
|
|
29
|
+
'border-color': 'black',
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Default Style of the card
|
|
33
|
+
*/
|
|
34
|
+
'card': {
|
|
35
|
+
'color': `${defaultThemeColor.textColor}`,
|
|
36
|
+
'padding-top': '25px',
|
|
37
|
+
'padding-bottom': '25px',
|
|
38
|
+
'padding-left': '32px',
|
|
39
|
+
'padding-right': '32px',
|
|
40
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
41
|
+
'width': 'inherit',
|
|
42
|
+
'height': 'inherit',
|
|
43
|
+
'border-color': `${defaultThemeColor.neutral['neutral-4']}`,
|
|
44
|
+
'border-radius': '5px',
|
|
45
|
+
'box-shadow': '0px 5px 37px rgba(56, 66, 100, 0.0880136)',
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Default Style of the progressBar
|
|
50
|
+
*/
|
|
51
|
+
'progressWrapper': {
|
|
52
|
+
'height': '10px',
|
|
53
|
+
'border-radius': '10px',
|
|
54
|
+
'margin-top': '13px',
|
|
55
|
+
'margin-left': '13px',
|
|
56
|
+
'margin-right': '13px',
|
|
57
|
+
'width': 'inherit',
|
|
58
|
+
'background-color': `${defaultThemeColor.primary['primary-1']}`,
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Default Style of the progressBar Container
|
|
63
|
+
*/
|
|
64
|
+
'containerWrapper': {
|
|
65
|
+
'height': 'inherit',
|
|
66
|
+
'width': 'inherit',
|
|
67
|
+
'transition': 'width 1s ease-in-out',
|
|
68
|
+
'border-radius': 'inherit',
|
|
69
|
+
'text-align': 'right',
|
|
70
|
+
'background-color': `${defaultThemeColor.primary['primary-1']}`,
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Default Style of the progressBar Label
|
|
74
|
+
*/
|
|
75
|
+
'progressbarLabel': {
|
|
76
|
+
'display': 'block',
|
|
77
|
+
'margin-left': '13px',
|
|
78
|
+
'margin-bottom': '6px',
|
|
79
|
+
'font-style': 'normal',
|
|
80
|
+
'font-weight': 'normal',
|
|
81
|
+
'font-size': '12px',
|
|
82
|
+
'color': `${defaultThemeColor.textColor}`,
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Default Style of the Spinner
|
|
86
|
+
*/
|
|
87
|
+
spinner: {
|
|
88
|
+
'background-color': `${defaultThemeColor.variant['neutral-1']}`,
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Default Style of the Avatar
|
|
92
|
+
*/
|
|
93
|
+
avatarContainer: {
|
|
94
|
+
background: 'transparent',
|
|
95
|
+
display: 'flex',
|
|
96
|
+
'align-items': 'center',
|
|
97
|
+
width: '100%',
|
|
98
|
+
position: 'relative',
|
|
99
|
+
},
|
|
100
|
+
avatarCircle: {
|
|
101
|
+
'background-color': `${defaultThemeColor.variant["primary-1"]}`,
|
|
102
|
+
color: '#FFFFFF',
|
|
103
|
+
'border-radius': '50%',
|
|
104
|
+
display: 'flex',
|
|
105
|
+
'align-items': 'center',
|
|
106
|
+
'justify-content': 'center',
|
|
107
|
+
'box-sizing': 'border-box',
|
|
108
|
+
},
|
|
109
|
+
avatarCircleSM: {
|
|
110
|
+
'font-weight': '600',
|
|
111
|
+
'font-size': '13px',
|
|
112
|
+
'min-width': "30px",
|
|
113
|
+
'min-height': "30px",
|
|
114
|
+
},
|
|
115
|
+
avatarCircleMD: {
|
|
116
|
+
'font-weight': '400',
|
|
117
|
+
'font-size': '12px',
|
|
118
|
+
'min-width': "32px",
|
|
119
|
+
'min-height': "32px",
|
|
120
|
+
},
|
|
121
|
+
avatarCircleLG: {
|
|
122
|
+
'font-weight': '400',
|
|
123
|
+
'font-size': '16px',
|
|
124
|
+
'min-width': "38px",
|
|
125
|
+
'min-height': "38px",
|
|
126
|
+
},
|
|
127
|
+
avatarName: {
|
|
128
|
+
color: `${defaultThemeColor.variant["primary-1"]}`,
|
|
129
|
+
},
|
|
130
|
+
avatarNameSM: {
|
|
131
|
+
'margin-left': '8px',
|
|
132
|
+
'font-size': '14px',
|
|
133
|
+
},
|
|
134
|
+
avatarNameMD: {
|
|
135
|
+
'margin-left': '10px',
|
|
136
|
+
'font-size': '16px',
|
|
137
|
+
},
|
|
138
|
+
avatarNameLG: {
|
|
139
|
+
'margin-left': '12px',
|
|
140
|
+
'font-size': '16px',
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
* Default Style of the textbox wrapper
|
|
144
|
+
*/
|
|
145
|
+
'textbox-wrapper': {
|
|
146
|
+
'border': `1px solid ${border}`,
|
|
147
|
+
'border-radius': '4px',
|
|
148
|
+
'padding': '5.5px 7px',
|
|
149
|
+
'display': 'flex',
|
|
150
|
+
'align-items': 'center',
|
|
151
|
+
'line-height': '.5rem',
|
|
152
|
+
'background-color': `${defaultThemeColor['bgColor']}`
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* Default Style of the input wrapper
|
|
156
|
+
*/
|
|
157
|
+
'input-wrapper': {
|
|
158
|
+
'border': '0',
|
|
159
|
+
'outline': '0',
|
|
160
|
+
'color': `${defaultThemeColor.variant['primary-2']}`,
|
|
161
|
+
'margin': '0 5px',
|
|
162
|
+
'padding': '0px',
|
|
163
|
+
'font-size': '14px',
|
|
164
|
+
'flex-grow': '1',
|
|
165
|
+
'flex-shrink': '0',
|
|
166
|
+
},
|
|
167
|
+
'textarea-wrapper': {
|
|
168
|
+
'border': '0',
|
|
169
|
+
'outline': '0',
|
|
170
|
+
'color': `${defaultThemeColor.variant['primary-2']}`,
|
|
171
|
+
'margin': '0 5px',
|
|
172
|
+
'padding': '5px',
|
|
173
|
+
'font-size': '14px',
|
|
174
|
+
'flex-grow': '1',
|
|
175
|
+
'flex-shrink': '0',
|
|
176
|
+
'line-height': '12px'
|
|
177
|
+
},
|
|
178
|
+
/**
|
|
179
|
+
* Default Style of the input label
|
|
180
|
+
*/
|
|
181
|
+
'label-text': {
|
|
182
|
+
'font-family': 'Averta',
|
|
183
|
+
'font-style': 'normal',
|
|
184
|
+
'font-weight': 'normal',
|
|
185
|
+
'font-size': '14px',
|
|
186
|
+
'color': `${defaultThemeColor.variant['neutral-2']}`,
|
|
187
|
+
'display': 'flex',
|
|
188
|
+
'width': 'max-content',
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
* Default Style of the Image
|
|
192
|
+
*/
|
|
193
|
+
image: {
|
|
194
|
+
'border-radius': '0%',
|
|
195
|
+
width: '100%',
|
|
196
|
+
height: '100%'
|
|
197
|
+
},
|
|
198
|
+
imageAvatar: {
|
|
199
|
+
'border-radius': '50%',
|
|
200
|
+
'box-sizing': 'border-box',
|
|
201
|
+
position: 'absolute',
|
|
202
|
+
},
|
|
203
|
+
imageAvatarSM: {
|
|
204
|
+
width: '30px',
|
|
205
|
+
height: '30px',
|
|
206
|
+
},
|
|
207
|
+
imageAvatarMD: {
|
|
208
|
+
width: '32px',
|
|
209
|
+
height: '32px',
|
|
210
|
+
},
|
|
211
|
+
imageAvatarLG: {
|
|
212
|
+
width: '38px',
|
|
213
|
+
height: '38px',
|
|
214
|
+
},
|
|
215
|
+
table: {
|
|
216
|
+
table: {
|
|
217
|
+
style: {
|
|
218
|
+
borderRadius: '4px',
|
|
219
|
+
paddingRight: '17px', // For the vertical scroll bar
|
|
220
|
+
// borderBottom: `1px solid red`,
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
|
|
224
|
+
headRow: {
|
|
225
|
+
style: {
|
|
226
|
+
background: `${defaultThemeColor.variant['neutral-5']}`,
|
|
227
|
+
borderLeft: `1px solid ${defaultThemeColor.variant['neutral-5']}`,
|
|
228
|
+
borderRight: `1px headRowsolid ${defaultThemeColor.variant['neutral-5']}`,
|
|
229
|
+
borderTop: `1px solid ${defaultThemeColor.variant['neutral-5']}`,
|
|
230
|
+
borderTopLeftRadius: '4px',
|
|
231
|
+
borderTopRightRadius: '4px',
|
|
232
|
+
paddingLeft: '56px', // To align to the body cells on the left side
|
|
233
|
+
borderBottom: 'none',
|
|
234
|
+
minHeight: '44px',
|
|
235
|
+
maxHeight: '44px',
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
headCells: {
|
|
239
|
+
style: {
|
|
240
|
+
color: `${defaultThemeColor.variant['primary-2']}`,
|
|
241
|
+
fontSize: '14px',
|
|
242
|
+
fontWeight: '600',
|
|
243
|
+
'&:first-of-type': {
|
|
244
|
+
paddingLeft: '0px' //Remove default value since already apply the paddingLeft to the whole table to align the head to the body
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
rows: { //This apply to all row of data not to the head table
|
|
249
|
+
style: {
|
|
250
|
+
background: `${defaultThemeColor.variant['bgColor']}`,
|
|
251
|
+
'&:not(:last-of-type)': {
|
|
252
|
+
borderBottomColor: 'none'
|
|
253
|
+
},
|
|
254
|
+
'&:last-of-type': {
|
|
255
|
+
borderBottomLeftRadius: '4px',
|
|
256
|
+
borderBottomRightRadius: '4px',
|
|
257
|
+
},
|
|
258
|
+
borderLeft: `1px solid ${defaultThemeColor.variant['neutral-5']}`,
|
|
259
|
+
borderRight: `1px solid ${defaultThemeColor.variant['neutral-5']}`,
|
|
260
|
+
borderBottom: `1px solid ${defaultThemeColor.variant['neutral-5']}`,
|
|
261
|
+
},
|
|
262
|
+
highlightOnHoverStyle: {
|
|
263
|
+
backgroundColor: `${defaultThemeColor.variant['neutral-5']}`,
|
|
264
|
+
},
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
,
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Default Style of the Header
|
|
271
|
+
*/
|
|
272
|
+
header: {
|
|
273
|
+
display: 'flex',
|
|
274
|
+
'justify-content': 'space-between',
|
|
275
|
+
'align-items': 'center',
|
|
276
|
+
position: 'fixed',
|
|
277
|
+
'z-index': '1000',
|
|
278
|
+
top: '0',
|
|
279
|
+
right: '0',
|
|
280
|
+
left: '0',
|
|
281
|
+
'min-height': '51px',
|
|
282
|
+
'padding-left': '39px',
|
|
283
|
+
'font-size': '16px',
|
|
284
|
+
'background-color': `${defaultThemeColor['bgColor']}`,
|
|
285
|
+
'border-bottom': `0.5px solid ${defaultThemeColor.variant['neutral-3']}`,
|
|
286
|
+
},
|
|
287
|
+
/**
|
|
288
|
+
* Default Style of the Content
|
|
289
|
+
*/
|
|
290
|
+
content: {
|
|
291
|
+
'background-color': '#eef1f7',
|
|
292
|
+
width: '100%',
|
|
293
|
+
'min-height': '100%',
|
|
294
|
+
'padding-top': '53px',
|
|
295
|
+
'box-sizing': 'border-box',
|
|
296
|
+
display: 'flex',
|
|
297
|
+
'flex-direction': 'column',
|
|
298
|
+
'margin-left': '70px',
|
|
299
|
+
// 'transition': 'margin-left ease 400ms !important',
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* Default Style of the radio component
|
|
303
|
+
*/
|
|
304
|
+
'radio-outer-circle': {
|
|
305
|
+
'width': '20px',
|
|
306
|
+
'height': '20px',
|
|
307
|
+
'min-width': '20px',
|
|
308
|
+
'min-height': '20px',
|
|
309
|
+
'border-radius': '50%',
|
|
310
|
+
'display': 'flex',
|
|
311
|
+
'justify-content': 'center',
|
|
312
|
+
'align-items': 'center',
|
|
313
|
+
},
|
|
314
|
+
'radio-inner-circle': {
|
|
315
|
+
'display': 'flex',
|
|
316
|
+
'align-self': 'center',
|
|
317
|
+
'margin': '0',
|
|
318
|
+
// 'padding': '.5px',
|
|
319
|
+
'border-radius': '50%',
|
|
320
|
+
},
|
|
321
|
+
'radio-label': {
|
|
322
|
+
'display': 'block',
|
|
323
|
+
'margin-bottom': '24.2px',
|
|
324
|
+
'color': '#444444'
|
|
325
|
+
},
|
|
326
|
+
'option-text': {
|
|
327
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
328
|
+
'color': "#A9B1B8",
|
|
329
|
+
'font-size': '16px',
|
|
330
|
+
},
|
|
331
|
+
/**
|
|
332
|
+
* Default Style of the Sidebar
|
|
333
|
+
*/
|
|
334
|
+
sidebarContainer: {
|
|
335
|
+
'min-height': '100%',
|
|
336
|
+
overflow: 'hidden',
|
|
337
|
+
'background-color': '#2e56f4',
|
|
338
|
+
position: 'fixed',
|
|
339
|
+
color: 'white',
|
|
340
|
+
width: '70px',
|
|
341
|
+
transition: 'width ease 400ms',
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
* Default Style of the checkbox label
|
|
345
|
+
*/
|
|
346
|
+
'checkBox-outer': {
|
|
347
|
+
'border': `2px solid ${border}`,
|
|
348
|
+
'width': '20px',
|
|
349
|
+
'height': '20px',
|
|
350
|
+
'border-radius': '3px',
|
|
351
|
+
'cursor': 'pointer',
|
|
352
|
+
'background-color': `${defaultThemeColor.bgColor}`
|
|
353
|
+
},
|
|
354
|
+
'checkBox-inner': {
|
|
355
|
+
'background-repeat': 'no-repeat',
|
|
356
|
+
'background-position': 'center',
|
|
357
|
+
'width': '20px',
|
|
358
|
+
"height": '20px',
|
|
359
|
+
'color': `${defaultThemeColor.bgColor}`,
|
|
360
|
+
'cursor': 'pointer',
|
|
361
|
+
'text-align': 'center',
|
|
362
|
+
'border-radius': '3px',
|
|
363
|
+
},
|
|
364
|
+
'check-label': {
|
|
365
|
+
'display': 'block',
|
|
366
|
+
'margin-bottom': '26px',
|
|
367
|
+
},
|
|
368
|
+
'checkbox-option-text': {
|
|
369
|
+
'font-size': '16px',
|
|
370
|
+
'margin-left': '10px',
|
|
371
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
372
|
+
},
|
|
373
|
+
'toggle-switch-wrapper': {
|
|
374
|
+
'display': 'flex',
|
|
375
|
+
'align-items': 'flex-start',
|
|
376
|
+
'gap': '40px',
|
|
377
|
+
'width': 'fit-content',
|
|
378
|
+
},
|
|
379
|
+
'toggle-switch-checkbox-label': {
|
|
380
|
+
'position': 'absolute',
|
|
381
|
+
'width': '45px',
|
|
382
|
+
'height': '22px',
|
|
383
|
+
'border-radius': '31px',
|
|
384
|
+
'cursor': 'pointer',
|
|
385
|
+
},
|
|
386
|
+
'toggle-switch-option-text': {
|
|
387
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
388
|
+
'color': `${defaultThemeColor.neutral['neutral-1']}`,
|
|
389
|
+
'font-size': '16px',
|
|
390
|
+
'margin-right': '30px',
|
|
391
|
+
},
|
|
392
|
+
/**
|
|
393
|
+
* Default Style of the dropZone component
|
|
394
|
+
*/
|
|
395
|
+
'dropzone-parent': {
|
|
396
|
+
'width': 'inherit',
|
|
397
|
+
'max-width': '514px',
|
|
398
|
+
'height': '86px',
|
|
399
|
+
'padding-left': '8px',
|
|
400
|
+
'padding-right': '8px',
|
|
401
|
+
'display': 'flex',
|
|
402
|
+
'justify-content': 'center',
|
|
403
|
+
'align-items': 'center',
|
|
404
|
+
'font-size': '17px',
|
|
405
|
+
'border-radius': '5.5px',
|
|
406
|
+
'color': ` ${defaultThemeColor.textColor}`,
|
|
407
|
+
},
|
|
408
|
+
'dropzone-file-div': {
|
|
409
|
+
'width': 'inherit',
|
|
410
|
+
'max-width': '532px',
|
|
411
|
+
'height': '38px',
|
|
412
|
+
'display': 'flex',
|
|
413
|
+
'justify-content': 'center',
|
|
414
|
+
'align-items': 'center',
|
|
415
|
+
'font-size': '14px',
|
|
416
|
+
'color': `${defaultThemeColor.textColor}`,
|
|
417
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
418
|
+
'box-shadow': '0px 5px 15px rgba(33, 55, 71, 0.096946)',
|
|
419
|
+
'border-radius': '5.5px',
|
|
420
|
+
'margin-top': '5px',
|
|
421
|
+
},
|
|
422
|
+
'dropzone-text-div': {
|
|
423
|
+
'display': 'flex',
|
|
424
|
+
'justify-content': 'center',
|
|
425
|
+
'margin-left': '14px',
|
|
426
|
+
'color': `${defaultThemeColor.textColor}`,
|
|
427
|
+
'background-color': 'transparent'
|
|
428
|
+
},
|
|
429
|
+
'dropzone-file-name': {
|
|
430
|
+
'margin-left': '5px',
|
|
431
|
+
'overflow': 'hidden',
|
|
432
|
+
'text-overflow': 'ellipsis',
|
|
433
|
+
'white-space': 'nowrap',
|
|
434
|
+
'padding': '2px',
|
|
435
|
+
'font-size': '14px',
|
|
436
|
+
'color': '#494949'
|
|
437
|
+
},
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Default Style of the signature component
|
|
441
|
+
*/
|
|
442
|
+
'signature-parent-div': {
|
|
443
|
+
'border-radius': '5.5px',
|
|
444
|
+
'align-content': 'flex-start',
|
|
445
|
+
'justify-content': 'center',
|
|
446
|
+
'width': 'inherit',
|
|
447
|
+
'max-width': '532px',
|
|
448
|
+
'height': '86px',
|
|
449
|
+
'display': 'block',
|
|
450
|
+
'flex-flow': 'column wrap',
|
|
451
|
+
'font-size': '17px',
|
|
452
|
+
'color': `${defaultThemeColor.textColor}`,
|
|
453
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
454
|
+
// 'border': `1px solid ${defaultThemeColor.neutral['neutral-3']} `,
|
|
455
|
+
},
|
|
456
|
+
'signature-wrapper-div': {
|
|
457
|
+
// 'margin-left': '2px',
|
|
458
|
+
'display': 'flex',
|
|
459
|
+
'flex': 'auto',
|
|
460
|
+
'justify-content': 'center',
|
|
461
|
+
'align-items': 'center',
|
|
462
|
+
'font-size': '17px',
|
|
463
|
+
'height': 'inherit',
|
|
464
|
+
'color': `${defaultThemeColor.textColor}`,
|
|
465
|
+
'background-color': 'transparent',
|
|
466
|
+
},
|
|
467
|
+
'signature-input-text': {
|
|
468
|
+
'border': '0',
|
|
469
|
+
'text-align': 'center',
|
|
470
|
+
'display': 'block',
|
|
471
|
+
'height': '48px',
|
|
472
|
+
'width': `calc(100% - 50px)!important`,
|
|
473
|
+
// 'max-width': '394px',
|
|
474
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
475
|
+
'font-family': "Beauty",
|
|
476
|
+
'background-clip': 'padding-box',
|
|
477
|
+
'color': '#444444',
|
|
478
|
+
'font-style': 'normal',
|
|
479
|
+
'font-weight': 'normal',
|
|
480
|
+
'font-size': '47px',
|
|
481
|
+
'padding-left': '10px'
|
|
482
|
+
|
|
483
|
+
},
|
|
484
|
+
/**
|
|
485
|
+
* Default Style of the modal component
|
|
486
|
+
*/
|
|
487
|
+
'modal-background': {
|
|
488
|
+
'position': 'fixed',
|
|
489
|
+
'top': '0',
|
|
490
|
+
'left': '0',
|
|
491
|
+
'width': '100%',
|
|
492
|
+
'height': '100%',
|
|
493
|
+
'background': 'rgba(0, 0, 0, 0.6)',
|
|
494
|
+
'z-index': '2000',
|
|
495
|
+
},
|
|
496
|
+
'modal-wrapper': {
|
|
497
|
+
'position': 'fixed',
|
|
498
|
+
'display': 'flex',
|
|
499
|
+
'align-items': 'end',
|
|
500
|
+
'justify-content': 'center',
|
|
501
|
+
'flex-direction': 'column',
|
|
502
|
+
'background': 'white',
|
|
503
|
+
'width': 'fit-content',
|
|
504
|
+
'height': 'fit-content',
|
|
505
|
+
'top': '50%',
|
|
506
|
+
'left': '50%',
|
|
507
|
+
'transform': 'translate(-50%, -50%)',
|
|
508
|
+
'border-radius': '5px',
|
|
509
|
+
},
|
|
510
|
+
'modal-close-button': {
|
|
511
|
+
'cursor': 'pointer',
|
|
512
|
+
'width': 'fit-content',
|
|
513
|
+
'height': 'fit-content',
|
|
514
|
+
'padding': '0',
|
|
515
|
+
'padding-right': '5px',
|
|
516
|
+
'padding-top': '5px',
|
|
517
|
+
'color': `${defaultThemeColor.textColor}`
|
|
518
|
+
},
|
|
519
|
+
/*
|
|
520
|
+
* Default Style of the checkbox label
|
|
521
|
+
*/
|
|
522
|
+
'footer': {
|
|
523
|
+
display: 'flex',
|
|
524
|
+
'margin-top': 'auto',
|
|
525
|
+
width: '100%',
|
|
526
|
+
},
|
|
527
|
+
/**
|
|
528
|
+
* Default Style of drawer
|
|
529
|
+
*/
|
|
530
|
+
'drawer': {
|
|
531
|
+
'min-height': '100%',
|
|
532
|
+
'overflow': 'hidden',
|
|
533
|
+
'position': 'fixed',
|
|
534
|
+
'width': '360px',
|
|
535
|
+
'transition': 'transform ease 400ms',
|
|
536
|
+
'display': 'flex',
|
|
537
|
+
'flex-direction': 'column',
|
|
538
|
+
'background-color': '#FFFFFF',
|
|
539
|
+
'box-sizing': 'border-box',
|
|
540
|
+
'box-shadow': '-20px 5px 37px rgba(56, 66, 100, 0.0880136)',
|
|
541
|
+
'top': '51px',
|
|
542
|
+
'right': '0px',
|
|
543
|
+
'z-index': '1001',
|
|
544
|
+
// 'transform': 'translateX(${({ drawerOpen }) => drawerOpen ? "0px" : "360px"})',
|
|
545
|
+
},
|
|
546
|
+
'drawer-close': {
|
|
547
|
+
'transform': 'translateX(360px)',
|
|
548
|
+
},
|
|
549
|
+
'drawer-open': {
|
|
550
|
+
'transform': 'translateX(0px)',
|
|
551
|
+
},
|
|
552
|
+
/**
|
|
553
|
+
* Default Style of the tooltip
|
|
554
|
+
*/
|
|
555
|
+
'tooltip-container': {
|
|
556
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
557
|
+
'border-radius': '3.6px',
|
|
558
|
+
'border': `1px solid ${defaultThemeColor.bgColor}`,
|
|
559
|
+
'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
560
|
+
'color': '#000',
|
|
561
|
+
'display': 'flex',
|
|
562
|
+
'flex-direction': 'column',
|
|
563
|
+
'padding': '0',
|
|
564
|
+
'transition': 'opacity 0.3s',
|
|
565
|
+
'z-index': '9999',
|
|
566
|
+
},
|
|
567
|
+
'tooltip-arrow': {
|
|
568
|
+
height: '19px',//'1rem',
|
|
569
|
+
position: 'absolute',
|
|
570
|
+
width: '29px',//'1rem',
|
|
571
|
+
'pointer-events': 'none',
|
|
572
|
+
},
|
|
573
|
+
'tooltip-arrow-before': {
|
|
574
|
+
'border-style': 'solid',
|
|
575
|
+
content: '',
|
|
576
|
+
display: 'block',
|
|
577
|
+
height: '0',
|
|
578
|
+
margin: 'auto',
|
|
579
|
+
width: '0',
|
|
580
|
+
},
|
|
581
|
+
'tooltip-arrow-after': {
|
|
582
|
+
'border-style': 'solid',
|
|
583
|
+
content: '',
|
|
584
|
+
display: 'block',
|
|
585
|
+
height: '0',
|
|
586
|
+
margin: 'auto',
|
|
587
|
+
position: 'absolute',
|
|
588
|
+
width: '0',
|
|
589
|
+
},
|
|
590
|
+
'tp-cont-bottom-arrow-before': {
|
|
591
|
+
'border-color': `transparent transparent ${defaultThemeColor.bgColor} transparent`,
|
|
592
|
+
// 'border-width': '0 0.5rem 0.4rem 0.5rem',
|
|
593
|
+
'border-width': '0 15px 19px 15px',
|
|
594
|
+
'position': 'absolute',
|
|
595
|
+
'top': '-1px',
|
|
596
|
+
},
|
|
597
|
+
'tp-cont-bottom-arrow-after': {
|
|
598
|
+
'border-color': `transparent transparent ${defaultThemeColor.bgColor} transparent`,
|
|
599
|
+
// 'border-width': '0 0.5rem 0.4rem 0.5rem',
|
|
600
|
+
'border-width': '0 15px 19px 15px',
|
|
601
|
+
},
|
|
602
|
+
'tp-cont-top-arrow-before': {
|
|
603
|
+
'border-color': `${defaultThemeColor.bgColor} transparent transparent transparent`,
|
|
604
|
+
// 'border-width': '0.4rem 0.5rem 0 0.5rem',
|
|
605
|
+
'border-width': '19px 15px 0 15px',
|
|
606
|
+
position: 'absolute',
|
|
607
|
+
top: '1px',
|
|
608
|
+
},
|
|
609
|
+
'tp-cont-top-arrow-after': {
|
|
610
|
+
'border-color': `${defaultThemeColor.bgColor} transparent transparent transparent`,
|
|
611
|
+
// 'border-width': '0.4rem 0.5rem 0 0.5rem',
|
|
612
|
+
'border-width': '19px 15px 0 15px',
|
|
613
|
+
},
|
|
614
|
+
'tp-cont-right-arrow-before': {
|
|
615
|
+
'border-color': `transparent ${defaultThemeColor.bgColor} transparent transparent`,
|
|
616
|
+
'border-width': '15px 19px 15px 0',
|
|
617
|
+
},
|
|
618
|
+
'tp-cont-right-arrow-after': {
|
|
619
|
+
'border-color': `transparent ${defaultThemeColor.bgColor} transparent transparent`,
|
|
620
|
+
// 'border-width': '0.5rem 0.4rem 0.5rem 0',
|
|
621
|
+
'border-width': '15px 19px 15px 0',
|
|
622
|
+
left: '6px',
|
|
623
|
+
top: '0'
|
|
624
|
+
},
|
|
625
|
+
'tp-cont-left-arrow-before': {
|
|
626
|
+
'border-color': `transparent transparent transparent ${defaultThemeColor.bgColor}`,
|
|
627
|
+
// 'border-width': '0.5rem 0 0.5rem 0.4em',
|
|
628
|
+
'border-width': '15px 0 15px 19px',
|
|
629
|
+
},
|
|
630
|
+
'tp-cont-left-arrow-after': {
|
|
631
|
+
'border-color': `transparent transparent transparent ${defaultThemeColor.bgColor}`,
|
|
632
|
+
// 'border-width': '0.5rem 0 0.5rem 0.4em',
|
|
633
|
+
'border-width': '15px 0 15px 19px',
|
|
634
|
+
left: '3px',
|
|
635
|
+
top: '0',
|
|
636
|
+
},
|
|
637
|
+
'tp-cont-bottom-arrow': {
|
|
638
|
+
left: '0',
|
|
639
|
+
'margin-top': '-19px',//'-0.4rem',
|
|
640
|
+
top: '0',
|
|
641
|
+
},
|
|
642
|
+
'tp-cont-top-arrow': {
|
|
643
|
+
bottom: '0',
|
|
644
|
+
left: '0',
|
|
645
|
+
'margin-bottom': '-19px', //'-1rem',
|
|
646
|
+
},
|
|
647
|
+
'tp-cont-right-arrow': {
|
|
648
|
+
left: '0',
|
|
649
|
+
'margin-left': '-24px', //'-0.7rem',
|
|
650
|
+
},
|
|
651
|
+
'tp-cont-left-arrow': {
|
|
652
|
+
'margin-right': '-24px', //'-0.7rem',
|
|
653
|
+
right: '0',
|
|
654
|
+
},
|
|
655
|
+
/**
|
|
656
|
+
* Default Style of the overlay
|
|
657
|
+
*/
|
|
658
|
+
'overlay': {
|
|
659
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
660
|
+
'border-radius': '3.6px',
|
|
661
|
+
'border': `1px solid ${defaultThemeColor.bgColor}`,
|
|
662
|
+
'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
663
|
+
'color': '#000',
|
|
664
|
+
'display': 'flex',
|
|
665
|
+
'flex-direction': 'column',
|
|
666
|
+
'padding': '0',
|
|
667
|
+
'transition': 'opacity 0.3s',
|
|
668
|
+
'z-index': '9999',
|
|
669
|
+
},
|
|
670
|
+
'simple-overlay': {
|
|
671
|
+
'background-color': `${defaultThemeColor.variant['neutral-1']}`,
|
|
672
|
+
'border-radius': '6px',
|
|
673
|
+
'border': `1px solid ${defaultThemeColor.variant['neutral-1']}`,
|
|
674
|
+
// 'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
675
|
+
'color': `${defaultThemeColor.bgColor}`,
|
|
676
|
+
'display': 'flex',
|
|
677
|
+
'flex-direction': 'column',
|
|
678
|
+
'padding': '0',
|
|
679
|
+
'transition': 'opacity 0.3s',
|
|
680
|
+
'z-index': '9999',
|
|
681
|
+
},
|
|
682
|
+
/**
|
|
683
|
+
* Default Style of the Sidebar
|
|
684
|
+
*/
|
|
685
|
+
'sidebar-container': {
|
|
686
|
+
'min-height': '100%',
|
|
687
|
+
overflow: 'hidden',
|
|
688
|
+
'background-color': '#2e56f4',
|
|
689
|
+
position: 'fixed',
|
|
690
|
+
color: 'white',
|
|
691
|
+
transition: 'width ease 400ms',
|
|
692
|
+
display: 'flex',
|
|
693
|
+
'flex-direction': 'column',
|
|
694
|
+
'z-index': '1001',
|
|
695
|
+
},
|
|
696
|
+
'sidebar-container-open': {
|
|
697
|
+
width: '240px',
|
|
698
|
+
},
|
|
699
|
+
'sidebar-container-close': {
|
|
700
|
+
width: '70px',
|
|
701
|
+
},
|
|
702
|
+
'sidebar-container-mobile-open': {
|
|
703
|
+
width: '240px',
|
|
704
|
+
'z-index': '1001',
|
|
705
|
+
},
|
|
706
|
+
'sidebar-container-mobile-close': {
|
|
707
|
+
width: '0px',
|
|
708
|
+
'z-index': '1001',
|
|
709
|
+
},
|
|
710
|
+
'sidebar-pusher': {
|
|
711
|
+
'min-height': '100%',
|
|
712
|
+
overflow: 'hidden',
|
|
713
|
+
'background-color': 'transparent',
|
|
714
|
+
position: 'fixed',
|
|
715
|
+
transition: 'width ease 400ms',
|
|
716
|
+
},
|
|
717
|
+
'sidebar-pusher-open': {
|
|
718
|
+
width: '240px',
|
|
719
|
+
},
|
|
720
|
+
'sidebar-pusher-close': {
|
|
721
|
+
width: '70px',
|
|
722
|
+
},
|
|
723
|
+
'sidebar-pusher-mobile': {
|
|
724
|
+
width: '0px',
|
|
725
|
+
},
|
|
726
|
+
/**
|
|
727
|
+
* Default Style of the ModalComp
|
|
728
|
+
*/
|
|
729
|
+
'modalComp-custom-style': {
|
|
730
|
+
content: {
|
|
731
|
+
top: '50%',
|
|
732
|
+
left: '50%',
|
|
733
|
+
right: 'auto',
|
|
734
|
+
bottom: 'auto',
|
|
735
|
+
marginRight: '-50%',
|
|
736
|
+
padding: '3rem 3rem 0.8rem 3rem',
|
|
737
|
+
transform: 'translate(-50%, -50%)',
|
|
738
|
+
zIndex: "999",
|
|
739
|
+
},
|
|
740
|
+
},
|
|
741
|
+
'modalComp-modal-close': {
|
|
742
|
+
position: 'absolute',
|
|
743
|
+
top: '5px',
|
|
744
|
+
right: '5px',
|
|
745
|
+
outline: 'none',
|
|
746
|
+
border: 'none',
|
|
747
|
+
background: 'transparent',
|
|
748
|
+
cursor: 'pointer'
|
|
749
|
+
},
|
|
750
|
+
'modalComp-modal-body': {
|
|
751
|
+
'margin-top': '30px',
|
|
752
|
+
'margin-bottom': '15px',
|
|
753
|
+
},
|
|
754
|
+
'modalComp-modal-footer': {
|
|
755
|
+
display: 'flex',
|
|
756
|
+
'justify- content': 'end',
|
|
757
|
+
'margin-top': '30px',
|
|
758
|
+
'margin-bottom': '15px',
|
|
759
|
+
'&:before': {
|
|
760
|
+
content: '',
|
|
761
|
+
'border-top': '1px solid #E5E7F0',
|
|
762
|
+
position: 'fixed',
|
|
763
|
+
display: 'inline-block',
|
|
764
|
+
left: 0,
|
|
765
|
+
right: 0,
|
|
766
|
+
'margin-top': '-0.9rem',
|
|
767
|
+
'z-index': -1,
|
|
768
|
+
},
|
|
769
|
+
/**
|
|
770
|
+
* Default Style of the SelectComp
|
|
771
|
+
*/
|
|
772
|
+
'selectComp-label-wrapper': {
|
|
773
|
+
paddingBottom: '10px',
|
|
774
|
+
display: 'flex',
|
|
775
|
+
width: '25vw'
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
export default defaultStyles;
|