groundfloor-react-ui 1.0.8 → 1.0.11
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/Form/FormComponent.js +28 -2
- package/components/Inputs/CheckBoxInput.js +27 -7
- package/components/Inputs/DropdownSelect.js +85 -43
- package/components/Inputs/PasswordInput.js +41 -20
- package/components/constants/defaultStyle.js +2 -0
- package/dist/index.es.js +262 -272
- package/dist/index.js +286 -296
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
DropdownSelect,
|
|
9
9
|
DropzoneInput,
|
|
10
10
|
NumericInput,
|
|
11
|
+
PasswordInput,
|
|
11
12
|
RadioInput,
|
|
12
13
|
SearchInput,
|
|
13
14
|
SignatureInput,
|
|
@@ -23,6 +24,7 @@ import {
|
|
|
23
24
|
MultiColumnWrapper,
|
|
24
25
|
MultiColumnDiv,
|
|
25
26
|
} from '../DesignComponent';
|
|
27
|
+
import { Table } from '../Tables';
|
|
26
28
|
|
|
27
29
|
export const FormComponent = ({ formData, ...props }) => {
|
|
28
30
|
const header = (item) => {
|
|
@@ -94,7 +96,15 @@ export const FormComponent = ({ formData, ...props }) => {
|
|
|
94
96
|
};
|
|
95
97
|
|
|
96
98
|
const MultiDropdownInput = (item) => {
|
|
97
|
-
return <DropdownSelect {...item} {...props} />;
|
|
99
|
+
return <DropdownSelect dropdownType={'multiSelect'} {...item} {...props} />;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const AsyncMultiDropdownInput = (item) => {
|
|
103
|
+
return <DropdownSelect dropdownType={'asyncMultiSelect'} {...item} {...props} />;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const AsyncSingleDropdownInput = (item) => {
|
|
107
|
+
return <DropdownSelect dropdownType={'asyncSingleSelect'} {...item} {...props} />;
|
|
98
108
|
};
|
|
99
109
|
|
|
100
110
|
const signatureInput = (item) => {
|
|
@@ -133,6 +143,14 @@ export const FormComponent = ({ formData, ...props }) => {
|
|
|
133
143
|
return <SearchInput {...item} {...props} />;
|
|
134
144
|
};
|
|
135
145
|
|
|
146
|
+
const tableInput = (item) => {
|
|
147
|
+
return <Table {...item} {...props} />;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const passwordInput = (item) => {
|
|
151
|
+
return <PasswordInput {...item} {...props} />;
|
|
152
|
+
};
|
|
153
|
+
|
|
136
154
|
const handleSubmit = () => {
|
|
137
155
|
console.log('form submit');
|
|
138
156
|
};
|
|
@@ -157,6 +175,10 @@ export const FormComponent = ({ formData, ...props }) => {
|
|
|
157
175
|
return SingleDropdownInput(item);
|
|
158
176
|
case 'multiSelect':
|
|
159
177
|
return MultiDropdownInput(item);
|
|
178
|
+
case 'asyncSingleSelect':
|
|
179
|
+
return AsyncSingleDropdownInput(item);
|
|
180
|
+
case 'asyncMultiSelect':
|
|
181
|
+
return AsyncMultiDropdownInput(item);
|
|
160
182
|
case 'signature':
|
|
161
183
|
return signatureInput(item);
|
|
162
184
|
case 'fileUpload':
|
|
@@ -175,6 +197,10 @@ export const FormComponent = ({ formData, ...props }) => {
|
|
|
175
197
|
return tinyButton(item);
|
|
176
198
|
case 'search':
|
|
177
199
|
return searchInput(item);
|
|
200
|
+
case 'table':
|
|
201
|
+
return tableInput(item);
|
|
202
|
+
case 'passwordInput':
|
|
203
|
+
return passwordInput(item);
|
|
178
204
|
default:
|
|
179
205
|
break;
|
|
180
206
|
}
|
|
@@ -205,4 +231,4 @@ export const FormComponent = ({ formData, ...props }) => {
|
|
|
205
231
|
</FormContainer>
|
|
206
232
|
</Fragment>
|
|
207
233
|
);
|
|
208
|
-
};
|
|
234
|
+
};
|
|
@@ -92,6 +92,7 @@ export const CheckBoxInput = ({
|
|
|
92
92
|
setOptions,
|
|
93
93
|
inline,
|
|
94
94
|
wrapperStyle,
|
|
95
|
+
isRequired,
|
|
95
96
|
...props
|
|
96
97
|
}) => {
|
|
97
98
|
useEffect(() => {
|
|
@@ -121,13 +122,27 @@ export const CheckBoxInput = ({
|
|
|
121
122
|
|
|
122
123
|
return (
|
|
123
124
|
<div style={returnedTarget} {...props}>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
|
|
126
|
+
<div style={{ display: 'flex' }}>
|
|
127
|
+
<Label
|
|
128
|
+
themeColor={defaultThemeColor}
|
|
129
|
+
customStyles={labelStyle}
|
|
130
|
+
type={'check-label'}
|
|
131
|
+
text={label}
|
|
132
|
+
{...props}
|
|
133
|
+
/>
|
|
134
|
+
|
|
135
|
+
{isRequired && (
|
|
136
|
+
<div
|
|
137
|
+
style={{
|
|
138
|
+
marginLeft: '4px',
|
|
139
|
+
color: `${defaultThemeColor.variant['error']}`,
|
|
140
|
+
}}
|
|
141
|
+
>
|
|
142
|
+
*
|
|
143
|
+
</div>
|
|
144
|
+
)}
|
|
145
|
+
</div>
|
|
131
146
|
<ParentDiv
|
|
132
147
|
style={{ display: 'flex', flexWrap: 'wrap' }}
|
|
133
148
|
inline={inline}
|
|
@@ -250,6 +265,10 @@ CheckBoxInput.propTypes = {
|
|
|
250
265
|
* CheckBox checked value changeHandler
|
|
251
266
|
*/
|
|
252
267
|
getCheckedArr: PropTypes.func,
|
|
268
|
+
/**
|
|
269
|
+
* mandatory field or not
|
|
270
|
+
*/
|
|
271
|
+
isRequired: PropTypes.bool,
|
|
253
272
|
};
|
|
254
273
|
|
|
255
274
|
CheckBoxInput.defaultProps = {
|
|
@@ -265,4 +284,5 @@ CheckBoxInput.defaultProps = {
|
|
|
265
284
|
checkedTextColor: `${defaultThemeColor.neutral['neutral-1']}`,
|
|
266
285
|
defaultBorderColor: '#D4D7E3',
|
|
267
286
|
checkedCheckBoxColor: `${defaultThemeColor.primary['primary-1']}`,
|
|
287
|
+
isRequired: true
|
|
268
288
|
};
|
|
@@ -7,6 +7,7 @@ import defaultStyles from '../constants/defaultStyle';
|
|
|
7
7
|
import getDefaultStyles from '../constants/utils';
|
|
8
8
|
import { Label } from '../Label';
|
|
9
9
|
import { Icon } from '../Icon';
|
|
10
|
+
import AsyncSelect from 'react-select/async';
|
|
10
11
|
|
|
11
12
|
const Wrapper = styled.div`
|
|
12
13
|
|
|
@@ -23,7 +24,6 @@ const Wrapper = styled.div`
|
|
|
23
24
|
border-top-left-radius: 0;
|
|
24
25
|
border-top-right-radius: 0;
|
|
25
26
|
width: 100%;
|
|
26
|
-
border: 0.5px solid ${defaultThemeColor.neutral['neutral-4']};
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.new-select__dropdown-indicator{
|
|
@@ -53,13 +53,7 @@ const Wrapper = styled.div`
|
|
|
53
53
|
max-height: 110px;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
.new-select__control {
|
|
58
|
-
border:${({ isValid }) =>
|
|
59
|
-
!isValid
|
|
60
|
-
? '0.5px solid ' + defaultThemeColor.ui['error']
|
|
61
|
-
: '0.5px solid ' + defaultThemeColor.neutral['neutral-4']};
|
|
62
|
-
}
|
|
56
|
+
|
|
63
57
|
|
|
64
58
|
.master-dropdown__option,
|
|
65
59
|
.new-select__option {
|
|
@@ -83,10 +77,7 @@ const Wrapper = styled.div`
|
|
|
83
77
|
|
|
84
78
|
.new-select__control:hover,
|
|
85
79
|
.new-select__control--is-focused {
|
|
86
|
-
|
|
87
|
-
!isValid
|
|
88
|
-
? '0.5px solid ' + defaultThemeColor.ui['error']
|
|
89
|
-
: '0.5px solid ' + defaultThemeColor.primary['primary-1']};
|
|
80
|
+
|
|
90
81
|
box-shadow: none;
|
|
91
82
|
}
|
|
92
83
|
|
|
@@ -117,21 +108,15 @@ const Wrapper = styled.div`
|
|
|
117
108
|
}
|
|
118
109
|
|
|
119
110
|
.default-select__control--is-focused {
|
|
120
|
-
border-width: 1px;
|
|
121
111
|
outline: none;
|
|
122
112
|
}
|
|
123
113
|
}
|
|
124
114
|
|
|
125
|
-
|
|
126
|
-
width:100%;
|
|
127
|
-
display:flex;
|
|
128
|
-
justify-content: space-between;
|
|
129
|
-
align-items: center;
|
|
130
|
-
}
|
|
115
|
+
|
|
131
116
|
|
|
132
117
|
.text-main-alt {
|
|
133
118
|
color: ${defaultThemeColor.textColor} !important;
|
|
134
|
-
|
|
119
|
+
margin-right: 2px;
|
|
135
120
|
}
|
|
136
121
|
.text-more-alt{
|
|
137
122
|
font-size:12px;
|
|
@@ -192,19 +177,22 @@ export const DropdownSelect = ({
|
|
|
192
177
|
isDisabled,
|
|
193
178
|
isValid,
|
|
194
179
|
clearSelected,
|
|
195
|
-
|
|
180
|
+
isClearable,
|
|
196
181
|
isLoading,
|
|
197
182
|
height,
|
|
198
183
|
fontSize,
|
|
184
|
+
loadOptions,
|
|
185
|
+
onInputChange,
|
|
199
186
|
...props
|
|
200
187
|
}) => {
|
|
201
188
|
const DropdownIndicator = (p) => {
|
|
202
189
|
return (
|
|
203
190
|
<components.DropdownIndicator {...p}>
|
|
204
|
-
{
|
|
191
|
+
{true ? (
|
|
205
192
|
<IconDiv
|
|
206
193
|
onClick={() => {
|
|
207
194
|
clearSelected();
|
|
195
|
+
p.clearValue();
|
|
208
196
|
}}
|
|
209
197
|
>
|
|
210
198
|
<Icon icon='cross-icon' color={'black'} size={8} />
|
|
@@ -258,28 +246,30 @@ export const DropdownSelect = ({
|
|
|
258
246
|
);
|
|
259
247
|
};
|
|
260
248
|
|
|
261
|
-
const MultiValue = ({
|
|
249
|
+
const MultiValue = ({ index, ...p }) => {
|
|
262
250
|
const firstSelected = p?.data?.label || 'Select';
|
|
251
|
+
return !index && <div className='text-main-alt'>{firstSelected}</div>;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
const ValueContainer = ({ getValue, children, ...props }) => {
|
|
263
255
|
const len = getValue().length;
|
|
264
256
|
return (
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
<div className={`text-more-alt`}>& {len - 1} more</div>
|
|
270
|
-
)}
|
|
271
|
-
</div>
|
|
272
|
-
)
|
|
257
|
+
<components.ValueContainer {...props}>
|
|
258
|
+
{children}
|
|
259
|
+
{len > 1 && <div className={`text-more-alt`}>& {len - 1} more</div>}
|
|
260
|
+
</components.ValueContainer>
|
|
273
261
|
);
|
|
274
262
|
};
|
|
275
263
|
|
|
276
264
|
const stylesComp = {
|
|
277
|
-
control: (base) => ({
|
|
265
|
+
control: (base, state) => ({
|
|
278
266
|
...base,
|
|
279
|
-
border:
|
|
267
|
+
border: !isValid
|
|
268
|
+
? '1px solid ' + defaultThemeColor.ui['error']
|
|
269
|
+
: '1px solid ' + defaultThemeColor.border,
|
|
280
270
|
height: `${height}px`,
|
|
281
271
|
minHeight: `${height}px`,
|
|
282
|
-
|
|
272
|
+
boxShadow: (state.isSelected || state.isFocused) && 'none',
|
|
283
273
|
}),
|
|
284
274
|
placeholder: (base) => ({
|
|
285
275
|
...base,
|
|
@@ -295,8 +285,6 @@ export const DropdownSelect = ({
|
|
|
295
285
|
}),
|
|
296
286
|
valueContainer: (base) => ({
|
|
297
287
|
...base,
|
|
298
|
-
// height: `${height}px`,
|
|
299
|
-
// padding: '7px 8px',
|
|
300
288
|
fontSize: fontSize + 'px',
|
|
301
289
|
}),
|
|
302
290
|
indicatorsContainer: (base) => ({
|
|
@@ -371,7 +359,7 @@ export const DropdownSelect = ({
|
|
|
371
359
|
DropdownIndicator,
|
|
372
360
|
MultiValue,
|
|
373
361
|
Option,
|
|
374
|
-
|
|
362
|
+
ValueContainer,
|
|
375
363
|
IndicatorSeparator: () => null,
|
|
376
364
|
ClearIndicator: () => null,
|
|
377
365
|
}}
|
|
@@ -385,24 +373,67 @@ export const DropdownSelect = ({
|
|
|
385
373
|
styles={stylesComp}
|
|
386
374
|
isMulti={true}
|
|
387
375
|
isDisabled={isDisabled}
|
|
388
|
-
isClearable={props.isClearable}
|
|
389
376
|
hideSelectedOptions={false}
|
|
390
377
|
closeMenuOnSelect={false}
|
|
391
|
-
|
|
392
|
-
|
|
378
|
+
isSearchable={true}
|
|
379
|
+
isLoading={isLoading}
|
|
380
|
+
{...props}
|
|
381
|
+
/>
|
|
382
|
+
) : dropdownType === 'asyncSingleSelect' ? (
|
|
383
|
+
<AsyncSelect
|
|
384
|
+
loadOptions={loadOptions}
|
|
385
|
+
defaultOptions
|
|
386
|
+
onInputChange={onInputChange}
|
|
387
|
+
styles={stylesComp}
|
|
388
|
+
components={{
|
|
389
|
+
DropdownIndicator,
|
|
390
|
+
IndicatorSeparator: () => null,
|
|
391
|
+
ClearIndicator: () => null,
|
|
392
|
+
}}
|
|
393
|
+
className='select-manage-page'
|
|
394
|
+
classNamePrefix='new-select'
|
|
395
|
+
name={'select-dropdown'}
|
|
396
|
+
placeholder={placeHolder}
|
|
397
|
+
onChange={setSelectedValue}
|
|
393
398
|
isLoading={isLoading}
|
|
399
|
+
isDisabled={isDisabled}
|
|
400
|
+
{...props}
|
|
401
|
+
/>
|
|
402
|
+
) : dropdownType === 'asyncMultiSelect' ? (
|
|
403
|
+
<AsyncSelect
|
|
404
|
+
components={{
|
|
405
|
+
DropdownIndicator,
|
|
406
|
+
MultiValue,
|
|
407
|
+
ValueContainer,
|
|
408
|
+
Option,
|
|
409
|
+
IndicatorSeparator: () => null,
|
|
410
|
+
ClearIndicator: () => null,
|
|
411
|
+
}}
|
|
412
|
+
className='select-manage-page'
|
|
413
|
+
classNamePrefix='new-select'
|
|
414
|
+
name={'select-dropdown'}
|
|
415
|
+
onChange={setSelectedValue}
|
|
416
|
+
placeholder={placeHolder}
|
|
417
|
+
styles={stylesComp}
|
|
418
|
+
isMulti={true}
|
|
419
|
+
isDisabled={isDisabled}
|
|
420
|
+
hideSelectedOptions={false}
|
|
421
|
+
closeMenuOnSelect={false}
|
|
422
|
+
isSearchable={true}
|
|
423
|
+
isLoading={isLoading}
|
|
424
|
+
loadOptions={loadOptions}
|
|
425
|
+
defaultOptions
|
|
426
|
+
onInputChange={onInputChange}
|
|
394
427
|
{...props}
|
|
395
428
|
/>
|
|
396
429
|
) : (
|
|
397
430
|
<Select
|
|
398
431
|
components={{
|
|
399
432
|
DropdownIndicator,
|
|
400
|
-
// LoadingIndicator,
|
|
401
433
|
IndicatorSeparator: () => null,
|
|
402
434
|
ClearIndicator: () => null,
|
|
403
435
|
}}
|
|
404
436
|
className='select-manage-page'
|
|
405
|
-
// className="new-select"
|
|
406
437
|
classNamePrefix='new-select'
|
|
407
438
|
name={'select-dropdown'}
|
|
408
439
|
options={optionArr}
|
|
@@ -459,6 +490,14 @@ DropdownSelect.propTypes = {
|
|
|
459
490
|
* This Function will be called if cross button pressed
|
|
460
491
|
*/
|
|
461
492
|
clearSelected: PropTypes.func,
|
|
493
|
+
/**
|
|
494
|
+
* callback function to get value
|
|
495
|
+
*/
|
|
496
|
+
loadOptions: PropTypes.func,
|
|
497
|
+
/**
|
|
498
|
+
* onchange function
|
|
499
|
+
*/
|
|
500
|
+
onInputChange: PropTypes.func,
|
|
462
501
|
};
|
|
463
502
|
|
|
464
503
|
DropdownSelect.defaultProps = {
|
|
@@ -469,7 +508,10 @@ DropdownSelect.defaultProps = {
|
|
|
469
508
|
setSelectedValue: undefined,
|
|
470
509
|
placeHolder: 'Select an option',
|
|
471
510
|
isValid: true,
|
|
472
|
-
|
|
511
|
+
isClearable: false,
|
|
473
512
|
height: 31,
|
|
474
513
|
fontSize: 14,
|
|
514
|
+
loadOptions: () => { },
|
|
515
|
+
onInputChange: () => { },
|
|
516
|
+
clearSelected: () => { },
|
|
475
517
|
};
|
|
@@ -58,7 +58,7 @@ const Input = styled.input`
|
|
|
58
58
|
const inline = css`
|
|
59
59
|
display: flex;
|
|
60
60
|
gap: 7px;
|
|
61
|
-
align-items:
|
|
61
|
+
align-items: start;
|
|
62
62
|
`;
|
|
63
63
|
|
|
64
64
|
const Form = styled.div`
|
|
@@ -76,6 +76,7 @@ Form.defaultProps = {
|
|
|
76
76
|
|
|
77
77
|
export const PasswordInput = ({
|
|
78
78
|
themeColor,
|
|
79
|
+
passwordRules,
|
|
79
80
|
textBoxStyle,
|
|
80
81
|
labelStyle,
|
|
81
82
|
inputStyle,
|
|
@@ -84,6 +85,7 @@ export const PasswordInput = ({
|
|
|
84
85
|
label,
|
|
85
86
|
labelInline,
|
|
86
87
|
isValid,
|
|
88
|
+
rulesStyle,
|
|
87
89
|
...props
|
|
88
90
|
}) => {
|
|
89
91
|
const [showEye, setShowEye] = useState(false);
|
|
@@ -94,12 +96,11 @@ export const PasswordInput = ({
|
|
|
94
96
|
<Label
|
|
95
97
|
customStyles={labelStyle}
|
|
96
98
|
type={'label-text'}
|
|
97
|
-
labelInline={labelInline}
|
|
98
99
|
text={label}
|
|
99
100
|
errMsg={errMsg}
|
|
100
101
|
style={{
|
|
101
102
|
display: 'flex',
|
|
102
|
-
marginBottom: `${!labelInline ? '7px' : ''}`,
|
|
103
|
+
marginBottom: `${!labelInline ? '7px' : '0px'}`,
|
|
103
104
|
paddingBottom: '0px',
|
|
104
105
|
}}
|
|
105
106
|
{...props}
|
|
@@ -108,6 +109,7 @@ export const PasswordInput = ({
|
|
|
108
109
|
<div
|
|
109
110
|
style={{
|
|
110
111
|
marginLeft: '4px',
|
|
112
|
+
marginRight: '5px',
|
|
111
113
|
color: `${themeColor.variant['error']}`,
|
|
112
114
|
}}
|
|
113
115
|
>
|
|
@@ -115,25 +117,34 @@ export const PasswordInput = ({
|
|
|
115
117
|
</div>
|
|
116
118
|
)}
|
|
117
119
|
</div>
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
defaultWrapperStyle={'textbox-wrapper'}
|
|
125
|
-
{...props}
|
|
120
|
+
<div
|
|
121
|
+
style={{
|
|
122
|
+
display: 'flex',
|
|
123
|
+
justifyContent: 'center',
|
|
124
|
+
alignItems: 'start',
|
|
125
|
+
}}
|
|
126
126
|
>
|
|
127
|
-
<
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
<TextWrapper
|
|
128
|
+
required={required}
|
|
129
|
+
themeColor={defaultThemeColor}
|
|
130
|
+
textBoxStyle={textBoxStyle}
|
|
131
|
+
isValid={isValid}
|
|
132
|
+
theme={defaultStyles}
|
|
133
|
+
defaultWrapperStyle={'textbox-wrapper'}
|
|
131
134
|
{...props}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
>
|
|
136
|
+
<Input
|
|
137
|
+
inputStyle={inputStyle}
|
|
138
|
+
type={showEye ? 'text' : 'password'}
|
|
139
|
+
defaultInputStyle={'input-wrapper'}
|
|
140
|
+
{...props}
|
|
141
|
+
/>
|
|
142
|
+
<div className='input-icon' onClick={() => setShowEye(!showEye)}>
|
|
143
|
+
{showEye ? <Icon icon='eye-show' /> : <Icon icon='eye-hide' />}
|
|
144
|
+
</div>
|
|
145
|
+
</TextWrapper>
|
|
146
|
+
<div style={{ ...rulesStyle, marginLeft: '5px' }}>{passwordRules}</div>
|
|
147
|
+
</div>
|
|
137
148
|
{errMsg.length > 0 && <div className='err-text'>{errMsg}</div>}
|
|
138
149
|
</Form>
|
|
139
150
|
);
|
|
@@ -177,6 +188,14 @@ PasswordInput.propTypes = {
|
|
|
177
188
|
* custom style of textbox label
|
|
178
189
|
*/
|
|
179
190
|
inputStyle: PropTypes.object,
|
|
191
|
+
/**
|
|
192
|
+
* rules of password
|
|
193
|
+
*/
|
|
194
|
+
passwordRules: PropTypes.string,
|
|
195
|
+
/**
|
|
196
|
+
* styles of password rules
|
|
197
|
+
*/
|
|
198
|
+
rulesStyle: PropTypes.object,
|
|
180
199
|
};
|
|
181
200
|
|
|
182
201
|
PasswordInput.defaultProps = {
|
|
@@ -190,4 +209,6 @@ PasswordInput.defaultProps = {
|
|
|
190
209
|
textBoxStyle: {},
|
|
191
210
|
labelStyle: {},
|
|
192
211
|
inputStyle: {},
|
|
212
|
+
passwordRules: '',
|
|
213
|
+
rulesStyle: {},
|
|
193
214
|
};
|
|
@@ -185,6 +185,8 @@ const defaultStyles = {
|
|
|
185
185
|
'font-size': '14px',
|
|
186
186
|
color: `${defaultThemeColor.variant['neutral-2']}`,
|
|
187
187
|
display: 'flex',
|
|
188
|
+
'align-items': 'center',
|
|
189
|
+
'justify-content': 'center',
|
|
188
190
|
width: 'max-content',
|
|
189
191
|
'background-color': 'transparent',
|
|
190
192
|
'margin-bottom': '0px',
|