groundfloor-react-ui 1.0.3 → 1.0.6
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/assets/icons/file-icon.svg +1 -0
- package/components/{Form → DesignComponent/StyledComponent}/StyledComponent.js +12 -17
- package/components/DesignComponent/StyledComponent/index.js +1 -0
- package/components/DesignComponent/index.js +1 -0
- package/components/Form/FormComponent.js +119 -187
- package/components/Form/SubmitComponent.js +1 -1
- package/components/Form/index.js +0 -1
- package/components/Icon/Icon.js +4 -1
- package/components/Inputs/CheckBoxInput.js +17 -8
- package/components/Inputs/DropdownSelect.js +160 -154
- package/components/Inputs/DropzoneInput.js +27 -22
- package/components/Inputs/NumericInput.js +76 -71
- package/components/Inputs/PasswordInput.js +1 -0
- package/components/Inputs/RadioInput.js +124 -83
- package/components/Inputs/TextArea.js +122 -94
- package/components/Inputs/TextInput.js +87 -67
- package/components/Inputs/TimeInput.js +87 -72
- package/components/constants/defaultStyle.js +184 -184
- package/dist/index.es.js +709 -703
- package/dist/index.js +725 -719
- package/index.js +1 -0
- package/package.json +1 -1
|
@@ -4,41 +4,41 @@ const defaultStyles = {
|
|
|
4
4
|
/**
|
|
5
5
|
* Common Style poroperties of all the element of the library
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
common: {
|
|
8
|
+
color: 'blue',
|
|
9
9
|
'background-color': `${defaultThemeColor.bgColor}`,
|
|
10
10
|
},
|
|
11
11
|
/**
|
|
12
12
|
* Default Style of the element label
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
label: {
|
|
15
15
|
'padding-left': '6px',
|
|
16
16
|
'font-style': 'normal',
|
|
17
17
|
'font-weight': 'normal',
|
|
18
18
|
'font-size': '14px',
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
display: 'flex',
|
|
20
|
+
width: 'inherit',
|
|
21
21
|
'align-items': 'flex-start',
|
|
22
|
-
|
|
22
|
+
color: `${defaultThemeColor.variant['neutral-2']}`,
|
|
23
23
|
'margin-bottom': '0',
|
|
24
|
-
'padding-bottom': '0'
|
|
24
|
+
'padding-bottom': '0',
|
|
25
25
|
},
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
button: {
|
|
27
|
+
color: 'red',
|
|
28
28
|
'border-color': 'black',
|
|
29
29
|
},
|
|
30
30
|
/**
|
|
31
31
|
* Default Style of the card
|
|
32
32
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
card: {
|
|
34
|
+
color: `${defaultThemeColor.textColor}`,
|
|
35
35
|
'padding-top': '25px',
|
|
36
36
|
'padding-bottom': '25px',
|
|
37
37
|
'padding-left': '32px',
|
|
38
38
|
'padding-right': '32px',
|
|
39
39
|
'background-color': `${defaultThemeColor.bgColor}`,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
width: 'inherit',
|
|
41
|
+
height: 'inherit',
|
|
42
42
|
'border-color': `${defaultThemeColor.neutral['neutral-4']}`,
|
|
43
43
|
'border-radius': '5px',
|
|
44
44
|
'box-shadow': '0px 5px 37px rgba(56, 66, 100, 0.0880136)',
|
|
@@ -47,23 +47,23 @@ const defaultStyles = {
|
|
|
47
47
|
/**
|
|
48
48
|
* Default Style of the progressBar
|
|
49
49
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
progressWrapper: {
|
|
51
|
+
height: '10px',
|
|
52
52
|
'border-radius': '10px',
|
|
53
53
|
'margin-top': '13px',
|
|
54
54
|
'margin-left': '13px',
|
|
55
55
|
'margin-right': '13px',
|
|
56
|
-
|
|
56
|
+
width: 'inherit',
|
|
57
57
|
'background-color': `${defaultThemeColor.primary['primary-1']}`,
|
|
58
58
|
},
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Default Style of the progressBar Container
|
|
62
62
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
containerWrapper: {
|
|
64
|
+
height: 'inherit',
|
|
65
|
+
width: 'inherit',
|
|
66
|
+
transition: 'width 1s ease-in-out',
|
|
67
67
|
'border-radius': 'inherit',
|
|
68
68
|
'text-align': 'right',
|
|
69
69
|
'background-color': `${defaultThemeColor.primary['primary-1']}`,
|
|
@@ -71,14 +71,15 @@ const defaultStyles = {
|
|
|
71
71
|
/**
|
|
72
72
|
* Default Style of the progressBar Label
|
|
73
73
|
*/
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
progressbarLabel: {
|
|
75
|
+
display: 'block',
|
|
76
76
|
'margin-left': '13px',
|
|
77
|
-
'margin-bottom': '
|
|
77
|
+
'margin-bottom': '7px',
|
|
78
|
+
'padding-bottom': '0',
|
|
78
79
|
'font-style': 'normal',
|
|
79
80
|
'font-weight': 'normal',
|
|
80
|
-
'font-size': '
|
|
81
|
-
|
|
81
|
+
'font-size': '14px',
|
|
82
|
+
color: `${defaultThemeColor.neutral['neutral-2']}`,
|
|
82
83
|
},
|
|
83
84
|
/**
|
|
84
85
|
* Default Style of the Spinner
|
|
@@ -97,7 +98,7 @@ const defaultStyles = {
|
|
|
97
98
|
position: 'relative',
|
|
98
99
|
},
|
|
99
100
|
avatarCircle: {
|
|
100
|
-
'background-color': `${defaultThemeColor.variant[
|
|
101
|
+
'background-color': `${defaultThemeColor.variant['primary-1']}`,
|
|
101
102
|
color: '#FFFFFF',
|
|
102
103
|
'border-radius': '50%',
|
|
103
104
|
display: 'flex',
|
|
@@ -108,23 +109,23 @@ const defaultStyles = {
|
|
|
108
109
|
avatarCircleSM: {
|
|
109
110
|
'font-weight': '600',
|
|
110
111
|
'font-size': '13px',
|
|
111
|
-
'min-width':
|
|
112
|
-
'min-height':
|
|
112
|
+
'min-width': '30px',
|
|
113
|
+
'min-height': '30px',
|
|
113
114
|
},
|
|
114
115
|
avatarCircleMD: {
|
|
115
116
|
'font-weight': '400',
|
|
116
117
|
'font-size': '12px',
|
|
117
|
-
'min-width':
|
|
118
|
-
'min-height':
|
|
118
|
+
'min-width': '32px',
|
|
119
|
+
'min-height': '32px',
|
|
119
120
|
},
|
|
120
121
|
avatarCircleLG: {
|
|
121
122
|
'font-weight': '400',
|
|
122
123
|
'font-size': '16px',
|
|
123
|
-
'min-width':
|
|
124
|
-
'min-height':
|
|
124
|
+
'min-width': '38px',
|
|
125
|
+
'min-height': '38px',
|
|
125
126
|
},
|
|
126
127
|
avatarName: {
|
|
127
|
-
color: `${defaultThemeColor.variant[
|
|
128
|
+
color: `${defaultThemeColor.variant['primary-1']}`,
|
|
128
129
|
},
|
|
129
130
|
avatarNameSM: {
|
|
130
131
|
'margin-left': '8px',
|
|
@@ -139,40 +140,40 @@ const defaultStyles = {
|
|
|
139
140
|
'font-size': '16px',
|
|
140
141
|
},
|
|
141
142
|
/**
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
* Default Style of the textbox wrapper
|
|
144
|
+
*/
|
|
144
145
|
'textbox-wrapper': {
|
|
145
|
-
|
|
146
|
+
border: `1px solid ${defaultThemeColor.border}`,
|
|
146
147
|
'border-radius': '4px',
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
padding: '6.5px 7px',
|
|
149
|
+
display: 'flex',
|
|
149
150
|
'align-items': 'center',
|
|
150
151
|
'line-height': '.5rem',
|
|
151
|
-
'background-color': `${defaultThemeColor['bgColor']}
|
|
152
|
+
'background-color': `${defaultThemeColor['bgColor']}`,
|
|
152
153
|
},
|
|
153
154
|
/**
|
|
154
155
|
* Default Style of the input wrapper
|
|
155
156
|
*/
|
|
156
157
|
'input-wrapper': {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
border: '0',
|
|
159
|
+
outline: '0',
|
|
160
|
+
color: `${defaultThemeColor.variant['primary-2']}`,
|
|
161
|
+
margin: '0 5px',
|
|
162
|
+
padding: '0px',
|
|
162
163
|
'font-size': '14px',
|
|
163
164
|
'flex-grow': '1',
|
|
164
165
|
'flex-shrink': '0',
|
|
165
166
|
},
|
|
166
167
|
'textarea-wrapper': {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
border: '0',
|
|
169
|
+
outline: '0',
|
|
170
|
+
color: `${defaultThemeColor.variant['primary-2']}`,
|
|
171
|
+
margin: '0 5px',
|
|
172
|
+
padding: '5px',
|
|
172
173
|
'font-size': '14px',
|
|
173
174
|
'flex-grow': '1',
|
|
174
175
|
'flex-shrink': '0',
|
|
175
|
-
'line-height': '12px'
|
|
176
|
+
'line-height': '12px',
|
|
176
177
|
},
|
|
177
178
|
/**
|
|
178
179
|
* Default Style of the input label
|
|
@@ -182,12 +183,12 @@ const defaultStyles = {
|
|
|
182
183
|
'font-style': 'normal',
|
|
183
184
|
'font-weight': 'normal',
|
|
184
185
|
'font-size': '14px',
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
color: `${defaultThemeColor.variant['neutral-2']}`,
|
|
187
|
+
display: 'flex',
|
|
188
|
+
width: 'max-content',
|
|
188
189
|
'background-color': 'transparent',
|
|
189
190
|
'margin-bottom': '0px',
|
|
190
|
-
'padding-bottom': '0px'
|
|
191
|
+
'padding-bottom': '0px',
|
|
191
192
|
},
|
|
192
193
|
/**
|
|
193
194
|
* Default Style of the Image
|
|
@@ -195,7 +196,7 @@ const defaultStyles = {
|
|
|
195
196
|
image: {
|
|
196
197
|
'border-radius': '0%',
|
|
197
198
|
width: '100%',
|
|
198
|
-
height: '100%'
|
|
199
|
+
height: '100%',
|
|
199
200
|
},
|
|
200
201
|
imageAvatar: {
|
|
201
202
|
'border-radius': '50%',
|
|
@@ -220,7 +221,7 @@ const defaultStyles = {
|
|
|
220
221
|
borderRadius: '4px',
|
|
221
222
|
paddingRight: '17px', // For the vertical scroll bar
|
|
222
223
|
// borderBottom: `1px solid red`,
|
|
223
|
-
}
|
|
224
|
+
},
|
|
224
225
|
},
|
|
225
226
|
|
|
226
227
|
headRow: {
|
|
@@ -235,7 +236,7 @@ const defaultStyles = {
|
|
|
235
236
|
borderBottom: 'none',
|
|
236
237
|
minHeight: '44px',
|
|
237
238
|
maxHeight: '44px',
|
|
238
|
-
}
|
|
239
|
+
},
|
|
239
240
|
},
|
|
240
241
|
headCells: {
|
|
241
242
|
style: {
|
|
@@ -243,15 +244,16 @@ const defaultStyles = {
|
|
|
243
244
|
fontSize: '14px',
|
|
244
245
|
fontWeight: '600',
|
|
245
246
|
'&:first-of-type': {
|
|
246
|
-
paddingLeft: '0px !important' //Remove default value since already apply the paddingLeft to the whole table to align the head to the body
|
|
247
|
+
paddingLeft: '0px !important', //Remove default value since already apply the paddingLeft to the whole table to align the head to the body
|
|
247
248
|
},
|
|
248
249
|
},
|
|
249
250
|
},
|
|
250
|
-
rows: {
|
|
251
|
+
rows: {
|
|
252
|
+
//This apply to all row of data not to the head table
|
|
251
253
|
style: {
|
|
252
254
|
background: `${defaultThemeColor.variant['bgColor']}`,
|
|
253
255
|
'&:not(:last-of-type)': {
|
|
254
|
-
borderBottomColor: 'none'
|
|
256
|
+
borderBottomColor: 'none',
|
|
255
257
|
},
|
|
256
258
|
'&:last-of-type': {
|
|
257
259
|
borderBottomLeftRadius: '4px',
|
|
@@ -264,10 +266,8 @@ const defaultStyles = {
|
|
|
264
266
|
highlightOnHoverStyle: {
|
|
265
267
|
backgroundColor: `${defaultThemeColor.variant['neutral-5']}`,
|
|
266
268
|
},
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
,
|
|
270
|
-
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
271
|
/**
|
|
272
272
|
* Default Style of the Header
|
|
273
273
|
*/
|
|
@@ -304,30 +304,31 @@ const defaultStyles = {
|
|
|
304
304
|
* Default Style of the radio component
|
|
305
305
|
*/
|
|
306
306
|
'radio-outer-circle': {
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
width: '20px',
|
|
308
|
+
height: '20px',
|
|
309
309
|
'min-width': '20px',
|
|
310
310
|
'min-height': '20px',
|
|
311
311
|
'border-radius': '50%',
|
|
312
|
-
|
|
312
|
+
display: 'flex',
|
|
313
313
|
'justify-content': 'center',
|
|
314
314
|
'align-items': 'center',
|
|
315
315
|
},
|
|
316
316
|
'radio-inner-circle': {
|
|
317
|
-
|
|
317
|
+
display: 'flex',
|
|
318
318
|
'align-self': 'center',
|
|
319
|
-
|
|
319
|
+
margin: '0',
|
|
320
320
|
// 'padding': '.5px',
|
|
321
321
|
'border-radius': '50%',
|
|
322
322
|
},
|
|
323
323
|
'radio-label': {
|
|
324
|
-
|
|
324
|
+
display: 'block',
|
|
325
325
|
'margin-bottom': '7px',
|
|
326
|
-
'
|
|
326
|
+
'padding-bottom': '0',
|
|
327
|
+
color: `${defaultThemeColor.variant['neutral-2']}`,
|
|
327
328
|
},
|
|
328
329
|
'option-text': {
|
|
329
330
|
// 'background-color': `${defaultThemeColor.bgColor}`,
|
|
330
|
-
|
|
331
|
+
color: '#A9B1B8',
|
|
331
332
|
'font-size': '16px',
|
|
332
333
|
},
|
|
333
334
|
/**
|
|
@@ -346,27 +347,28 @@ const defaultStyles = {
|
|
|
346
347
|
* Default Style of the checkbox label
|
|
347
348
|
*/
|
|
348
349
|
'checkBox-outer': {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
border: `2px solid ${defaultThemeColor.border}`,
|
|
351
|
+
width: '20px',
|
|
352
|
+
height: '20px',
|
|
352
353
|
'border-radius': '3px',
|
|
353
|
-
|
|
354
|
-
'background-color': `${defaultThemeColor.bgColor}
|
|
354
|
+
cursor: 'pointer',
|
|
355
|
+
'background-color': `${defaultThemeColor.bgColor}`,
|
|
355
356
|
},
|
|
356
357
|
'checkBox-inner': {
|
|
357
358
|
'background-repeat': 'no-repeat',
|
|
358
359
|
'background-position': 'center',
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
360
|
+
width: '20px',
|
|
361
|
+
height: '20px',
|
|
362
|
+
color: `${defaultThemeColor.bgColor}`,
|
|
363
|
+
cursor: 'pointer',
|
|
363
364
|
'text-align': 'center',
|
|
364
365
|
'border-radius': '3px',
|
|
365
366
|
},
|
|
366
367
|
'check-label': {
|
|
367
|
-
|
|
368
|
+
display: 'block',
|
|
368
369
|
'margin-bottom': '7px',
|
|
369
|
-
'
|
|
370
|
+
'padding-bottom': '0px',
|
|
371
|
+
color: `${defaultThemeColor.variant['neutral-2']}`,
|
|
370
372
|
},
|
|
371
373
|
'checkbox-option-text': {
|
|
372
374
|
'font-size': '16px',
|
|
@@ -374,21 +376,21 @@ const defaultStyles = {
|
|
|
374
376
|
'background-color': `${defaultThemeColor.bgColor}`,
|
|
375
377
|
},
|
|
376
378
|
'toggle-switch-wrapper': {
|
|
377
|
-
|
|
379
|
+
display: 'flex',
|
|
378
380
|
'align-items': 'center',
|
|
379
|
-
|
|
380
|
-
|
|
381
|
+
gap: '7px',
|
|
382
|
+
width: 'fit-content',
|
|
381
383
|
},
|
|
382
384
|
'toggle-switch-checkbox-label': {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
385
|
+
position: 'absolute',
|
|
386
|
+
width: '45px',
|
|
387
|
+
height: '22px',
|
|
386
388
|
'border-radius': '31px',
|
|
387
|
-
|
|
389
|
+
cursor: 'pointer',
|
|
388
390
|
},
|
|
389
391
|
'toggle-switch-option-text': {
|
|
390
392
|
// 'background-color': `${defaultThemeColor.bgColor}`,
|
|
391
|
-
|
|
393
|
+
color: `${defaultThemeColor.neutral['neutral-1']}`,
|
|
392
394
|
'font-size': '16px',
|
|
393
395
|
'margin-right': '30px',
|
|
394
396
|
},
|
|
@@ -396,45 +398,45 @@ const defaultStyles = {
|
|
|
396
398
|
* Default Style of the dropZone component
|
|
397
399
|
*/
|
|
398
400
|
'dropzone-parent': {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
+
width: '100%',
|
|
402
|
+
height: '86px',
|
|
401
403
|
'padding-left': '8px',
|
|
402
404
|
'padding-right': '8px',
|
|
403
|
-
|
|
405
|
+
display: 'flex',
|
|
404
406
|
'justify-content': 'center',
|
|
405
407
|
'align-items': 'center',
|
|
406
408
|
'font-size': '16px',
|
|
407
409
|
'border-radius': '5.5px',
|
|
408
|
-
|
|
410
|
+
color: ` ${defaultThemeColor.textColor}`,
|
|
409
411
|
},
|
|
410
412
|
'dropzone-file-div': {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
413
|
+
width: 'inherit',
|
|
414
|
+
height: '38px',
|
|
415
|
+
display: 'flex',
|
|
414
416
|
'justify-content': 'center',
|
|
415
417
|
'align-items': 'center',
|
|
416
418
|
'font-size': '14px',
|
|
417
|
-
|
|
419
|
+
color: `${defaultThemeColor.textColor}`,
|
|
418
420
|
'background-color': `${defaultThemeColor.bgColor}`,
|
|
419
421
|
'box-shadow': '0px 5px 15px rgba(33, 55, 71, 0.096946)',
|
|
420
422
|
'border-radius': '5.5px',
|
|
421
423
|
'margin-top': '5px',
|
|
422
424
|
},
|
|
423
425
|
'dropzone-text-div': {
|
|
424
|
-
|
|
426
|
+
display: 'flex',
|
|
425
427
|
'justify-content': 'center',
|
|
426
428
|
'margin-left': '14px',
|
|
427
|
-
|
|
428
|
-
'background-color': 'transparent'
|
|
429
|
+
color: `${defaultThemeColor.textColor}`,
|
|
430
|
+
'background-color': 'transparent',
|
|
429
431
|
},
|
|
430
432
|
'dropzone-file-name': {
|
|
431
433
|
'margin-left': '5px',
|
|
432
|
-
|
|
434
|
+
overflow: 'hidden',
|
|
433
435
|
'text-overflow': 'ellipsis',
|
|
434
436
|
'white-space': 'nowrap',
|
|
435
|
-
|
|
437
|
+
padding: '2px',
|
|
436
438
|
'font-size': '14px',
|
|
437
|
-
|
|
439
|
+
color: '#494949',
|
|
438
440
|
},
|
|
439
441
|
|
|
440
442
|
/**
|
|
@@ -444,35 +446,35 @@ const defaultStyles = {
|
|
|
444
446
|
'border-radius': '5.5px',
|
|
445
447
|
'align-content': 'flex-start',
|
|
446
448
|
'justify-content': 'center',
|
|
447
|
-
|
|
449
|
+
width: 'inherit',
|
|
448
450
|
'max-width': '532px',
|
|
449
|
-
|
|
450
|
-
|
|
451
|
+
height: '86px',
|
|
452
|
+
display: 'block',
|
|
451
453
|
'flex-flow': 'column wrap',
|
|
452
454
|
'font-size': '17px',
|
|
453
|
-
|
|
455
|
+
color: `${defaultThemeColor.textColor}`,
|
|
454
456
|
'background-color': `${defaultThemeColor.bgColor}`,
|
|
455
457
|
},
|
|
456
458
|
'signature-wrapper-div': {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
+
display: 'flex',
|
|
460
|
+
flex: 'auto',
|
|
459
461
|
'justify-content': 'center',
|
|
460
462
|
'align-items': 'center',
|
|
461
463
|
'font-size': '17px',
|
|
462
|
-
|
|
463
|
-
|
|
464
|
+
height: 'inherit',
|
|
465
|
+
color: `${defaultThemeColor.textColor}`,
|
|
464
466
|
'background-color': 'transparent',
|
|
465
467
|
},
|
|
466
468
|
'signature-input-text': {
|
|
467
|
-
|
|
469
|
+
border: '0',
|
|
468
470
|
'text-align': 'center',
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
471
|
+
display: 'block',
|
|
472
|
+
height: '48px',
|
|
473
|
+
width: `calc(100% - 54px)!important`,
|
|
472
474
|
'background-color': `${defaultThemeColor.bgColor}`,
|
|
473
|
-
'font-family':
|
|
475
|
+
'font-family': 'Beauty',
|
|
474
476
|
'background-clip': 'padding-box',
|
|
475
|
-
|
|
477
|
+
color: '#444444',
|
|
476
478
|
'font-style': 'normal',
|
|
477
479
|
'font-weight': 'normal',
|
|
478
480
|
'font-size': '47px',
|
|
@@ -482,41 +484,41 @@ const defaultStyles = {
|
|
|
482
484
|
* Default Style of the modal component
|
|
483
485
|
*/
|
|
484
486
|
'modal-background': {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
487
|
+
position: 'fixed',
|
|
488
|
+
top: '0',
|
|
489
|
+
left: '0',
|
|
490
|
+
width: '100%',
|
|
491
|
+
height: '100%',
|
|
492
|
+
background: 'rgba(0, 0, 0, 0.6)',
|
|
491
493
|
'z-index': '2000',
|
|
492
494
|
},
|
|
493
495
|
'modal-wrapper': {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
+
position: 'fixed',
|
|
497
|
+
display: 'flex',
|
|
496
498
|
'align-items': 'end',
|
|
497
499
|
'justify-content': 'center',
|
|
498
500
|
'flex-direction': 'column',
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
501
|
+
background: 'white',
|
|
502
|
+
width: 'fit-content',
|
|
503
|
+
height: 'fit-content',
|
|
504
|
+
top: '50%',
|
|
505
|
+
left: '50%',
|
|
506
|
+
transform: 'translate(-50%, -50%)',
|
|
505
507
|
'border-radius': '5px',
|
|
506
508
|
},
|
|
507
509
|
'modal-close-button': {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
510
|
+
cursor: 'pointer',
|
|
511
|
+
width: 'fit-content',
|
|
512
|
+
height: 'fit-content',
|
|
513
|
+
padding: '0',
|
|
512
514
|
'padding-right': '5px',
|
|
513
515
|
'padding-top': '5px',
|
|
514
|
-
|
|
516
|
+
color: `${defaultThemeColor.textColor}`,
|
|
515
517
|
},
|
|
516
|
-
/*
|
|
518
|
+
/*
|
|
517
519
|
* Default Style of the checkbox label
|
|
518
520
|
*/
|
|
519
|
-
|
|
521
|
+
footer: {
|
|
520
522
|
display: 'flex',
|
|
521
523
|
'margin-top': 'auto',
|
|
522
524
|
width: '100%',
|
|
@@ -524,47 +526,47 @@ const defaultStyles = {
|
|
|
524
526
|
/**
|
|
525
527
|
* Default Style of drawer
|
|
526
528
|
*/
|
|
527
|
-
|
|
529
|
+
drawer: {
|
|
528
530
|
'min-height': '100%',
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
531
|
+
overflow: 'hidden',
|
|
532
|
+
position: 'fixed',
|
|
533
|
+
width: '360px',
|
|
534
|
+
transition: 'transform ease 400ms',
|
|
535
|
+
display: 'flex',
|
|
534
536
|
'flex-direction': 'column',
|
|
535
537
|
'background-color': '#FFFFFF',
|
|
536
538
|
'box-sizing': 'border-box',
|
|
537
539
|
'box-shadow': '-20px 5px 37px rgba(56, 66, 100, 0.0880136)',
|
|
538
|
-
|
|
539
|
-
|
|
540
|
+
top: '51px',
|
|
541
|
+
right: '0px',
|
|
540
542
|
'z-index': '1001',
|
|
541
543
|
// 'transform': 'translateX(${({ drawerOpen }) => drawerOpen ? "0px" : "360px"})',
|
|
542
544
|
},
|
|
543
545
|
'drawer-close': {
|
|
544
|
-
|
|
546
|
+
transform: 'translateX(360px)',
|
|
545
547
|
},
|
|
546
548
|
'drawer-open': {
|
|
547
|
-
|
|
549
|
+
transform: 'translateX(0px)',
|
|
548
550
|
},
|
|
549
551
|
/**
|
|
550
|
-
|
|
551
|
-
|
|
552
|
+
* Default Style of the tooltip
|
|
553
|
+
*/
|
|
552
554
|
'tooltip-container': {
|
|
553
555
|
'background-color': `${defaultThemeColor.bgColor}`,
|
|
554
556
|
'border-radius': '3.6px',
|
|
555
|
-
|
|
557
|
+
border: `1px solid ${defaultThemeColor.bgColor}`,
|
|
556
558
|
'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
557
|
-
|
|
558
|
-
|
|
559
|
+
color: '#000',
|
|
560
|
+
display: 'flex',
|
|
559
561
|
'flex-direction': 'column',
|
|
560
|
-
|
|
561
|
-
|
|
562
|
+
padding: '0',
|
|
563
|
+
transition: 'opacity 0.3s',
|
|
562
564
|
'z-index': '9999',
|
|
563
565
|
},
|
|
564
566
|
'tooltip-arrow': {
|
|
565
|
-
height: '19px'
|
|
567
|
+
height: '19px', //'1rem',
|
|
566
568
|
position: 'absolute',
|
|
567
|
-
width: '29px'
|
|
569
|
+
width: '29px', //'1rem',
|
|
568
570
|
'pointer-events': 'none',
|
|
569
571
|
},
|
|
570
572
|
'tooltip-arrow-before': {
|
|
@@ -587,8 +589,8 @@ const defaultStyles = {
|
|
|
587
589
|
'tp-cont-bottom-arrow-before': {
|
|
588
590
|
'border-color': `transparent transparent ${defaultThemeColor.bgColor} transparent`,
|
|
589
591
|
'border-width': '0 15px 19px 15px',
|
|
590
|
-
|
|
591
|
-
|
|
592
|
+
position: 'absolute',
|
|
593
|
+
top: '-1px',
|
|
592
594
|
},
|
|
593
595
|
'tp-cont-bottom-arrow-after': {
|
|
594
596
|
'border-color': `transparent transparent ${defaultThemeColor.bgColor} transparent`,
|
|
@@ -616,7 +618,7 @@ const defaultStyles = {
|
|
|
616
618
|
// 'border-width': '0.5rem 0.4rem 0.5rem 0',
|
|
617
619
|
'border-width': '15px 19px 15px 0',
|
|
618
620
|
left: '6px',
|
|
619
|
-
top: '0'
|
|
621
|
+
top: '0',
|
|
620
622
|
},
|
|
621
623
|
'tp-cont-left-arrow-before': {
|
|
622
624
|
'border-color': `transparent transparent transparent ${defaultThemeColor.bgColor}`,
|
|
@@ -632,7 +634,7 @@ const defaultStyles = {
|
|
|
632
634
|
},
|
|
633
635
|
'tp-cont-bottom-arrow': {
|
|
634
636
|
left: '0',
|
|
635
|
-
'margin-top': '-19px'
|
|
637
|
+
'margin-top': '-19px', //'-0.4rem',
|
|
636
638
|
top: '0',
|
|
637
639
|
},
|
|
638
640
|
'tp-cont-top-arrow': {
|
|
@@ -651,28 +653,28 @@ const defaultStyles = {
|
|
|
651
653
|
/**
|
|
652
654
|
* Default Style of the overlay
|
|
653
655
|
*/
|
|
654
|
-
|
|
656
|
+
overlay: {
|
|
655
657
|
'background-color': `${defaultThemeColor.bgColor}`,
|
|
656
658
|
'border-radius': '3.6px',
|
|
657
|
-
|
|
659
|
+
border: `1px solid ${defaultThemeColor.bgColor}`,
|
|
658
660
|
'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
659
|
-
|
|
660
|
-
|
|
661
|
+
color: '#000',
|
|
662
|
+
display: 'flex',
|
|
661
663
|
'flex-direction': 'column',
|
|
662
|
-
|
|
663
|
-
|
|
664
|
+
padding: '0',
|
|
665
|
+
transition: 'opacity 0.3s',
|
|
664
666
|
'z-index': '9999',
|
|
665
667
|
},
|
|
666
668
|
'simple-overlay': {
|
|
667
669
|
'background-color': `${defaultThemeColor.variant['neutral-1']}`,
|
|
668
670
|
'border-radius': '6px',
|
|
669
|
-
|
|
671
|
+
border: `1px solid ${defaultThemeColor.variant['neutral-1']}`,
|
|
670
672
|
// 'box-shadow': '0px 5px 33px rgba(56, 66, 100, 0.482627)',
|
|
671
|
-
|
|
672
|
-
|
|
673
|
+
color: `${defaultThemeColor.bgColor}`,
|
|
674
|
+
display: 'flex',
|
|
673
675
|
'flex-direction': 'column',
|
|
674
|
-
|
|
675
|
-
|
|
676
|
+
padding: '0',
|
|
677
|
+
transition: 'opacity 0.3s',
|
|
676
678
|
'z-index': '9999',
|
|
677
679
|
},
|
|
678
680
|
/**
|
|
@@ -730,7 +732,7 @@ const defaultStyles = {
|
|
|
730
732
|
bottom: 'auto',
|
|
731
733
|
marginRight: '-50%',
|
|
732
734
|
transform: 'translate(-50%, -50%)',
|
|
733
|
-
zIndex:
|
|
735
|
+
zIndex: '999',
|
|
734
736
|
},
|
|
735
737
|
},
|
|
736
738
|
'modalComp-modal-close': {
|
|
@@ -740,18 +742,17 @@ const defaultStyles = {
|
|
|
740
742
|
outline: 'none',
|
|
741
743
|
border: 'none',
|
|
742
744
|
background: 'transparent',
|
|
743
|
-
cursor: 'pointer'
|
|
745
|
+
cursor: 'pointer',
|
|
744
746
|
},
|
|
745
747
|
'modalComp-modal-body': {
|
|
746
748
|
'margin-top': '20px',
|
|
747
749
|
'margin-bottom': '15px',
|
|
748
750
|
},
|
|
749
751
|
'modalComp-modal-footer': {
|
|
750
|
-
|
|
751
752
|
'margin-top': '30px',
|
|
752
753
|
'margin-bottom': '15px',
|
|
753
754
|
'border-top': `1px solid ${defaultThemeColor.border}`,
|
|
754
|
-
|
|
755
|
+
padding: '1rem 3rem 0rem 3rem',
|
|
755
756
|
'&:before': {
|
|
756
757
|
content: '',
|
|
757
758
|
position: 'fixed',
|
|
@@ -767,10 +768,9 @@ const defaultStyles = {
|
|
|
767
768
|
'selectComp-label-wrapper': {
|
|
768
769
|
paddingBottom: '10px',
|
|
769
770
|
display: 'flex',
|
|
770
|
-
width: '25vw'
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
}
|
|
771
|
+
width: '25vw',
|
|
772
|
+
},
|
|
773
|
+
},
|
|
774
|
+
};
|
|
775
775
|
|
|
776
|
-
export default defaultStyles;
|
|
776
|
+
export default defaultStyles;
|