groundfloor-react-ui 1.0.0 → 1.0.1
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 +2 -2
- package/assets/icons/file-upload.svg +3 -0
- package/components/Accordion/Accordion.js +2 -2
- package/components/Form/FormComponent.js +1 -1
- package/components/Form/HeaderComponent.js +1 -6
- package/components/Icon/Icon.js +6 -6
- package/components/Inputs/DateSelect.js +2 -2
- package/components/Inputs/DropdownSelect.js +307 -301
- package/components/Inputs/DropzoneInput.js +226 -136
- package/components/Inputs/NumericInput.js +1 -2
- package/components/Inputs/Signature.js +142 -109
- package/components/Inputs/TextArea.js +1 -2
- package/components/Inputs/TextInput.js +3 -6
- package/components/Inputs/TimeInput.js +3 -4
- package/components/Modal/ModalComp.js +68 -46
- package/components/Modal/index.js +0 -1
- package/components/constants/defaultStyle.js +16 -20
- package/components/constants/defaultThemeColor.js +2 -1
- package/dist/index.es.js +421 -436
- package/dist/index.js +284 -299
- package/package.json +1 -1
- package/components/Inputs/CheckBoxEditableInput.js +0 -352
- package/components/Inputs/CheckBoxInputMS.js +0 -160
- package/components/Inputs/TextInputClicable.js +0 -198
- package/components/Inputs/TextInputClicableMS.js +0 -255
- package/components/Modal/Modal.js +0 -116
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import defaultThemeColor from './defaultThemeColor';
|
|
2
|
-
const border = `#D4D7E3`;
|
|
3
2
|
|
|
4
3
|
const defaultStyles = {
|
|
5
4
|
/**
|
|
@@ -143,7 +142,7 @@ const defaultStyles = {
|
|
|
143
142
|
* Default Style of the textbox wrapper
|
|
144
143
|
*/
|
|
145
144
|
'textbox-wrapper': {
|
|
146
|
-
'border': `1px solid ${border}`,
|
|
145
|
+
'border': `1px solid ${defaultThemeColor.border}`,
|
|
147
146
|
'border-radius': '4px',
|
|
148
147
|
'padding': '5.5px 7px',
|
|
149
148
|
'display': 'flex',
|
|
@@ -186,6 +185,9 @@ const defaultStyles = {
|
|
|
186
185
|
'color': `${defaultThemeColor.variant['neutral-2']}`,
|
|
187
186
|
'display': 'flex',
|
|
188
187
|
'width': 'max-content',
|
|
188
|
+
'background-color': 'transparent',
|
|
189
|
+
'margin-bottom': '0px',
|
|
190
|
+
'padding-bottom': '0px'
|
|
189
191
|
},
|
|
190
192
|
/**
|
|
191
193
|
* Default Style of the Image
|
|
@@ -324,7 +326,7 @@ const defaultStyles = {
|
|
|
324
326
|
'color': '#444444'
|
|
325
327
|
},
|
|
326
328
|
'option-text': {
|
|
327
|
-
'background-color': `${defaultThemeColor.bgColor}`,
|
|
329
|
+
// 'background-color': `${defaultThemeColor.bgColor}`,
|
|
328
330
|
'color': "#A9B1B8",
|
|
329
331
|
'font-size': '16px',
|
|
330
332
|
},
|
|
@@ -344,7 +346,7 @@ const defaultStyles = {
|
|
|
344
346
|
* Default Style of the checkbox label
|
|
345
347
|
*/
|
|
346
348
|
'checkBox-outer': {
|
|
347
|
-
'border': `2px solid ${border}`,
|
|
349
|
+
'border': `2px solid ${defaultThemeColor.border}`,
|
|
348
350
|
'width': '20px',
|
|
349
351
|
'height': '20px',
|
|
350
352
|
'border-radius': '3px',
|
|
@@ -372,8 +374,8 @@ const defaultStyles = {
|
|
|
372
374
|
},
|
|
373
375
|
'toggle-switch-wrapper': {
|
|
374
376
|
'display': 'flex',
|
|
375
|
-
'align-items': '
|
|
376
|
-
'gap': '
|
|
377
|
+
'align-items': 'center',
|
|
378
|
+
'gap': '10px',
|
|
377
379
|
'width': 'fit-content',
|
|
378
380
|
},
|
|
379
381
|
'toggle-switch-checkbox-label': {
|
|
@@ -384,7 +386,7 @@ const defaultStyles = {
|
|
|
384
386
|
'cursor': 'pointer',
|
|
385
387
|
},
|
|
386
388
|
'toggle-switch-option-text': {
|
|
387
|
-
'background-color': `${defaultThemeColor.bgColor}`,
|
|
389
|
+
// 'background-color': `${defaultThemeColor.bgColor}`,
|
|
388
390
|
'color': `${defaultThemeColor.neutral['neutral-1']}`,
|
|
389
391
|
'font-size': '16px',
|
|
390
392
|
'margin-right': '30px',
|
|
@@ -401,7 +403,7 @@ const defaultStyles = {
|
|
|
401
403
|
'display': 'flex',
|
|
402
404
|
'justify-content': 'center',
|
|
403
405
|
'align-items': 'center',
|
|
404
|
-
'font-size': '
|
|
406
|
+
'font-size': '16px',
|
|
405
407
|
'border-radius': '5.5px',
|
|
406
408
|
'color': ` ${defaultThemeColor.textColor}`,
|
|
407
409
|
},
|
|
@@ -451,10 +453,8 @@ const defaultStyles = {
|
|
|
451
453
|
'font-size': '17px',
|
|
452
454
|
'color': `${defaultThemeColor.textColor}`,
|
|
453
455
|
'background-color': `${defaultThemeColor.bgColor}`,
|
|
454
|
-
// 'border': `1px solid ${defaultThemeColor.neutral['neutral-3']} `,
|
|
455
456
|
},
|
|
456
457
|
'signature-wrapper-div': {
|
|
457
|
-
// 'margin-left': '2px',
|
|
458
458
|
'display': 'flex',
|
|
459
459
|
'flex': 'auto',
|
|
460
460
|
'justify-content': 'center',
|
|
@@ -469,8 +469,7 @@ const defaultStyles = {
|
|
|
469
469
|
'text-align': 'center',
|
|
470
470
|
'display': 'block',
|
|
471
471
|
'height': '48px',
|
|
472
|
-
'width': `calc(100% -
|
|
473
|
-
// 'max-width': '394px',
|
|
472
|
+
'width': `calc(100% - 54px)!important`,
|
|
474
473
|
'background-color': `${defaultThemeColor.bgColor}`,
|
|
475
474
|
'font-family': "Beauty",
|
|
476
475
|
'background-clip': 'padding-box',
|
|
@@ -478,8 +477,7 @@ const defaultStyles = {
|
|
|
478
477
|
'font-style': 'normal',
|
|
479
478
|
'font-weight': 'normal',
|
|
480
479
|
'font-size': '47px',
|
|
481
|
-
'padding-left': '10px'
|
|
482
|
-
|
|
480
|
+
'padding-left': '10px',
|
|
483
481
|
},
|
|
484
482
|
/**
|
|
485
483
|
* Default Style of the modal component
|
|
@@ -589,7 +587,6 @@ const defaultStyles = {
|
|
|
589
587
|
},
|
|
590
588
|
'tp-cont-bottom-arrow-before': {
|
|
591
589
|
'border-color': `transparent transparent ${defaultThemeColor.bgColor} transparent`,
|
|
592
|
-
// 'border-width': '0 0.5rem 0.4rem 0.5rem',
|
|
593
590
|
'border-width': '0 15px 19px 15px',
|
|
594
591
|
'position': 'absolute',
|
|
595
592
|
'top': '-1px',
|
|
@@ -733,14 +730,13 @@ const defaultStyles = {
|
|
|
733
730
|
right: 'auto',
|
|
734
731
|
bottom: 'auto',
|
|
735
732
|
marginRight: '-50%',
|
|
736
|
-
padding: '3rem 3rem 0.8rem 3rem',
|
|
737
733
|
transform: 'translate(-50%, -50%)',
|
|
738
734
|
zIndex: "999",
|
|
739
735
|
},
|
|
740
736
|
},
|
|
741
737
|
'modalComp-modal-close': {
|
|
742
738
|
position: 'absolute',
|
|
743
|
-
top: '
|
|
739
|
+
top: '10px',
|
|
744
740
|
right: '5px',
|
|
745
741
|
outline: 'none',
|
|
746
742
|
border: 'none',
|
|
@@ -752,13 +748,13 @@ const defaultStyles = {
|
|
|
752
748
|
'margin-bottom': '15px',
|
|
753
749
|
},
|
|
754
750
|
'modalComp-modal-footer': {
|
|
755
|
-
|
|
756
|
-
'justify- content': 'end',
|
|
751
|
+
|
|
757
752
|
'margin-top': '30px',
|
|
758
753
|
'margin-bottom': '15px',
|
|
754
|
+
'border-top': `1px solid ${defaultThemeColor.border}`,
|
|
755
|
+
'padding': '1rem 3rem 0rem 3rem',
|
|
759
756
|
'&:before': {
|
|
760
757
|
content: '',
|
|
761
|
-
'border-top': '1px solid #E5E7F0',
|
|
762
758
|
position: 'fixed',
|
|
763
759
|
display: 'inline-block',
|
|
764
760
|
left: 0,
|
|
@@ -9,7 +9,8 @@ const defaultThemeColor = {
|
|
|
9
9
|
variant: { ...primaryColor, ...uiColor, ...neutralColor, ...shadeColor, ...graphColor },
|
|
10
10
|
textColor: primaryColor['primary-2'],
|
|
11
11
|
bgColor: '#FFFFFF', /**background color */
|
|
12
|
-
black: '#000000'
|
|
12
|
+
black: '#000000',
|
|
13
|
+
border: '#D4D7E3'
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export default defaultThemeColor;
|