@xaypay/tui 0.0.81 → 0.0.82
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/dist/index.es.js +210 -135
- package/dist/index.js +210 -135
- package/package.json +1 -1
- package/src/components/icon/Arrow.js +2 -2
- package/src/components/icon/CaptchaArrowDown.js +2 -2
- package/src/components/icon/CaptchaArrowUp.js +2 -2
- package/src/components/icon/CheckboxChecked.js +2 -2
- package/src/components/icon/CheckboxUnchecked.js +2 -2
- package/src/components/icon/Close.js +2 -2
- package/src/components/icon/CloseIcon.js +2 -2
- package/src/components/icon/CloseSlide.js +2 -2
- package/src/components/icon/DeleteComponent.js +2 -2
- package/src/components/icon/Dots.js +2 -2
- package/src/components/icon/HeartFilled.js +2 -2
- package/src/components/icon/HeartOutline.js +2 -2
- package/src/components/icon/ListItemDelete.js +2 -2
- package/src/components/icon/ListItemJpeg.js +2 -2
- package/src/components/icon/ListItemJpg.js +2 -2
- package/src/components/icon/ListItemPdf.js +2 -2
- package/src/components/icon/ListItemPng.js +2 -2
- package/src/components/icon/Next.js +2 -2
- package/src/components/icon/Nextarrow.js +2 -2
- package/src/components/icon/PDF.js +2 -2
- package/src/components/icon/Prev.js +2 -2
- package/src/components/icon/RangeArrowDefault.js +2 -2
- package/src/components/icon/RangeArrowError.js +2 -2
- package/src/components/icon/RangeArrowSuccess.js +2 -2
- package/src/components/icon/RemoveFile.js +2 -2
- package/src/components/icon/ToasterClose.js +2 -2
- package/src/components/icon/ToasterError.js +2 -2
- package/src/components/icon/ToasterInfo.js +2 -2
- package/src/components/icon/ToasterSuccess.js +2 -2
- package/src/components/icon/ToasterWarning.js +2 -2
- package/src/components/icon/Tooltip.js +2 -2
- package/src/components/icon/Upload.js +2 -2
- package/src/components/input/index.js +11 -21
- package/src/components/modal/index.js +26 -15
- package/src/components/modal/modal.stories.js +1 -1
- package/src/components/newAutocomplete/index.js +9 -5
- package/src/components/select/index.js +9 -2
- package/src/components/singleCheckbox/index.js +27 -5
- package/src/components/table/index.js +28 -11
- package/src/components/table/table.stories.js +382 -256
- package/src/components/table/td.js +26 -8
- package/src/components/table/th.js +28 -5
- package/src/components/textarea/index.js +21 -15
- package/src/components/textarea/textarea.stories.js +4 -0
- package/src/stories/configuration.stories.mdx +17 -5
- package/tui.config.js +17 -6
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
|
|
3
|
+
import { SingleCheckbox } from './../singleCheckbox';
|
|
4
|
+
|
|
3
5
|
import styles from './table.module.css';
|
|
4
6
|
|
|
5
7
|
const TD = ({
|
|
8
|
+
id,
|
|
6
9
|
item,
|
|
7
10
|
tBodyColor,
|
|
8
11
|
borderRight,
|
|
@@ -10,7 +13,9 @@ const TD = ({
|
|
|
10
13
|
tBodyFontSize,
|
|
11
14
|
tBodyTextAlign,
|
|
12
15
|
tBodyFontFamily,
|
|
13
|
-
tBodyFontWeight
|
|
16
|
+
tBodyFontWeight,
|
|
17
|
+
handleCheckedBody,
|
|
18
|
+
handleBodyActionClick
|
|
14
19
|
}) => {
|
|
15
20
|
const [opend, setOpend] = useState(false);
|
|
16
21
|
|
|
@@ -45,9 +50,9 @@ const TD = ({
|
|
|
45
50
|
}}
|
|
46
51
|
id={newItem.id}
|
|
47
52
|
type={newItem.type}
|
|
48
|
-
onClick={newItem.onClick}
|
|
49
53
|
className={styles['td-span']}
|
|
50
54
|
key={`${newItem}_${newIndex}`}
|
|
55
|
+
onClick={handleBodyActionClick}
|
|
51
56
|
>
|
|
52
57
|
{ newItem.content }
|
|
53
58
|
</span>
|
|
@@ -66,10 +71,10 @@ const TD = ({
|
|
|
66
71
|
style={{
|
|
67
72
|
display: 'flex',
|
|
68
73
|
alignItems: 'flex-start',
|
|
69
|
-
justifyContent: 'space-between'
|
|
74
|
+
justifyContent: item.contentList || item.checkBox ? 'space-between' : 'center'
|
|
70
75
|
}}
|
|
71
76
|
>
|
|
72
|
-
<div
|
|
77
|
+
{item.contentList && <div
|
|
73
78
|
id={item.id}
|
|
74
79
|
style={{
|
|
75
80
|
width: '21px',
|
|
@@ -80,13 +85,26 @@ const TD = ({
|
|
|
80
85
|
>
|
|
81
86
|
{ opend === false ? item.closeArrow : item.openArrow }
|
|
82
87
|
</div>
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
{
|
|
91
|
+
item.checkBox && <SingleCheckbox
|
|
92
|
+
id={item.id}
|
|
93
|
+
content={item.content}
|
|
94
|
+
onClick={handleCheckedBody}
|
|
95
|
+
checked={item.checkBox.checked}
|
|
96
|
+
checkedColor={item.checkBox.checkedColor}
|
|
97
|
+
unCheckedColor={item.checkBox.unCheckedColor}
|
|
98
|
+
/>
|
|
99
|
+
}
|
|
100
|
+
|
|
83
101
|
<div>
|
|
84
102
|
<p
|
|
85
103
|
style={{
|
|
86
104
|
margin: '0px'
|
|
87
105
|
}}
|
|
88
|
-
>{ item.
|
|
89
|
-
<div
|
|
106
|
+
>{ item.content }</p>
|
|
107
|
+
{item.contentList && <div
|
|
90
108
|
style={{
|
|
91
109
|
overflow: 'hidden',
|
|
92
110
|
marginTop: '10px',
|
|
@@ -103,10 +121,10 @@ const TD = ({
|
|
|
103
121
|
}}
|
|
104
122
|
>{innerItem}</p>
|
|
105
123
|
})}
|
|
106
|
-
</div>
|
|
124
|
+
</div>}
|
|
107
125
|
</div>
|
|
108
126
|
</div>
|
|
109
|
-
:
|
|
127
|
+
: ''
|
|
110
128
|
}
|
|
111
129
|
</td>
|
|
112
130
|
)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import { SingleCheckbox } from './../singleCheckbox';
|
|
4
|
+
|
|
3
5
|
import styles from './table.module.css';
|
|
4
6
|
|
|
5
7
|
const TH = ({
|
|
@@ -7,24 +9,45 @@ const TH = ({
|
|
|
7
9
|
tHeadFamily,
|
|
8
10
|
tHeadPadding,
|
|
9
11
|
tHeadFontWeight,
|
|
12
|
+
handleCheckedHeader,
|
|
10
13
|
borderTopLeftRadius,
|
|
11
|
-
borderTopRightRadius
|
|
14
|
+
borderTopRightRadius,
|
|
15
|
+
handleHeaderItemClick
|
|
12
16
|
}) => {
|
|
13
17
|
return (
|
|
14
18
|
<th
|
|
15
19
|
style={{
|
|
16
|
-
cursor: 'pointer',
|
|
17
20
|
position: 'relative',
|
|
18
21
|
padding: tHeadPadding,
|
|
19
22
|
fontFamily: tHeadFamily,
|
|
20
23
|
fontWeight: tHeadFontWeight,
|
|
21
24
|
borderTopLeftRadius: borderTopLeftRadius,
|
|
22
|
-
borderTopRightRadius: borderTopRightRadius
|
|
25
|
+
borderTopRightRadius: borderTopRightRadius,
|
|
26
|
+
cursor: handleHeaderItemClick ? 'pointer' : 'normal'
|
|
23
27
|
}}
|
|
24
|
-
onClick={
|
|
28
|
+
onClick={handleHeaderItemClick ? handleHeaderItemClick : _ => _}
|
|
25
29
|
className={`${item.sortingArrows && styles['sorting-arrows']}`}
|
|
26
30
|
>
|
|
27
|
-
|
|
31
|
+
<div
|
|
32
|
+
style={{
|
|
33
|
+
display: 'flex',
|
|
34
|
+
alignItems: 'flex-start',
|
|
35
|
+
justifyContent: item.hasOwnProperty('checkBox') ? 'space-between' : 'center'
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
{item.hasOwnProperty('checkBox')
|
|
39
|
+
? <SingleCheckbox
|
|
40
|
+
float='left'
|
|
41
|
+
checked={item.checkBox.checked}
|
|
42
|
+
content={item.content ? item.content : ''}
|
|
43
|
+
onClick={handleCheckedHeader ? handleCheckedHeader : _ => _}
|
|
44
|
+
checkedColor={item.checkBox.checkedColor ? item.checkBox.checkedColor : ''}
|
|
45
|
+
unCheckedColor={item.checkBox.unCheckedColor ? item.checkBox.unCheckedColor : ''}
|
|
46
|
+
/>
|
|
47
|
+
: ''
|
|
48
|
+
}
|
|
49
|
+
{item.type === 'show' ? item.content : ''}
|
|
50
|
+
</div>
|
|
28
51
|
</th>
|
|
29
52
|
)
|
|
30
53
|
};
|
|
@@ -12,29 +12,30 @@ export const Textarea = ({
|
|
|
12
12
|
value,
|
|
13
13
|
height,
|
|
14
14
|
resize,
|
|
15
|
-
border,
|
|
16
15
|
radius,
|
|
17
16
|
padding,
|
|
18
17
|
required,
|
|
19
18
|
onChange,
|
|
20
19
|
minWidth,
|
|
21
20
|
maxWidth,
|
|
21
|
+
boxShadow,
|
|
22
22
|
minHeight,
|
|
23
23
|
maxHeight,
|
|
24
24
|
boxSizing,
|
|
25
25
|
maxLength,
|
|
26
26
|
labelSize,
|
|
27
27
|
errorSize,
|
|
28
|
+
marginTop,
|
|
28
29
|
labelColor,
|
|
29
30
|
errorColor,
|
|
30
|
-
borderColor,
|
|
31
31
|
labelWeight,
|
|
32
32
|
placeholder,
|
|
33
33
|
labelDisplay,
|
|
34
|
-
|
|
34
|
+
errorMessage,
|
|
35
35
|
backgroundColor,
|
|
36
36
|
borderFocusColor,
|
|
37
37
|
borderHoverColor,
|
|
38
|
+
labelMarginBottom,
|
|
38
39
|
showCharacterCount,
|
|
39
40
|
labelRequiredColor
|
|
40
41
|
}) => {
|
|
@@ -94,12 +95,12 @@ export const Textarea = ({
|
|
|
94
95
|
}, [value, onChange]);
|
|
95
96
|
|
|
96
97
|
useEffect(() => {
|
|
97
|
-
if (
|
|
98
|
-
setError(
|
|
98
|
+
if (errorMessage) {
|
|
99
|
+
setError(errorMessage);
|
|
99
100
|
} else {
|
|
100
101
|
setError('');
|
|
101
102
|
}
|
|
102
|
-
}, [
|
|
103
|
+
}, [errorMessage]);
|
|
103
104
|
|
|
104
105
|
return (
|
|
105
106
|
<div
|
|
@@ -111,7 +112,8 @@ export const Textarea = ({
|
|
|
111
112
|
style={{
|
|
112
113
|
display: 'flex',
|
|
113
114
|
alignItems: 'center',
|
|
114
|
-
justifyContent: label ? 'space-between' : 'flex-end'
|
|
115
|
+
justifyContent: label ? 'space-between' : 'flex-end',
|
|
116
|
+
marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.TEXTAREA.labelMarginBottom
|
|
115
117
|
}}
|
|
116
118
|
>
|
|
117
119
|
{
|
|
@@ -145,11 +147,11 @@ export const Textarea = ({
|
|
|
145
147
|
<textarea
|
|
146
148
|
style={{
|
|
147
149
|
width: '100%',
|
|
150
|
+
border: 'none',
|
|
148
151
|
outline: 'none',
|
|
149
152
|
overflow: 'auto',
|
|
150
153
|
fontSize: size ? size : configStyles.TEXTAREA.size,
|
|
151
154
|
height: height ? height : configStyles.TEXTAREA.height,
|
|
152
|
-
border: border ? border : configStyles.TEXTAREA.border,
|
|
153
155
|
padding: padding ? padding : configStyles.TEXTAREA.padding,
|
|
154
156
|
borderRadius: radius ? radius : configStyles.TEXTAREA.radius,
|
|
155
157
|
minWidth: minWidth ? minWidth : configStyles.TEXTAREA.minWidth,
|
|
@@ -158,10 +160,10 @@ export const Textarea = ({
|
|
|
158
160
|
maxHeight: maxHeight ? maxHeight : configStyles.TEXTAREA.maxHeight,
|
|
159
161
|
boxSizing: boxSizing ? boxSizing : configStyles.TEXTAREA.boxSizing,
|
|
160
162
|
backgroundColor: backgroundColor ? backgroundColor : configStyles.TEXTAREA.backgroundColor,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
boxShadow: error ? errorColor ? `0 0 0 2px ${errorColor}` : `0 0 0 2px ${configStyles.TEXTAREA.errorColor}` :
|
|
164
|
+
isFocus ? borderFocusColor ? `0 0 0 2px ${borderFocusColor}` : `0 0 0 2px ${configStyles.TEXTAREA.borderFocusColor}` :
|
|
165
|
+
isHover ? borderHoverColor ? `0 0 0 2px ${borderHoverColor}` : `0 0 0 2px ${configStyles.TEXTAREA.borderHoverColor}` :
|
|
166
|
+
boxShadow ? boxShadow : configStyles.INPUT.boxShadow,
|
|
165
167
|
resize: resize ? resize : configStyles.TEXTAREA.resize,
|
|
166
168
|
}}
|
|
167
169
|
value={innerValue}
|
|
@@ -175,10 +177,10 @@ export const Textarea = ({
|
|
|
175
177
|
{
|
|
176
178
|
error ? <span
|
|
177
179
|
style={{
|
|
178
|
-
marginTop: '6px',
|
|
179
180
|
display: 'inline-block',
|
|
180
181
|
fontSize: errorSize ? errorSize : configStyles.TEXTAREA.errorSize,
|
|
181
182
|
color: errorColor ? errorColor : configStyles.TEXTAREA.errorColor,
|
|
183
|
+
marginTop: marginTop ? marginTop : configStyles.TEXTAREA.marginTop
|
|
182
184
|
}}
|
|
183
185
|
>{ error }</span> : ''
|
|
184
186
|
}
|
|
@@ -192,27 +194,31 @@ Textarea.propTypes = {
|
|
|
192
194
|
width: PropTypes.string,
|
|
193
195
|
height: PropTypes.string,
|
|
194
196
|
resize: PropTypes.string,
|
|
195
|
-
border: PropTypes.string,
|
|
196
197
|
radius: PropTypes.string,
|
|
197
198
|
required: PropTypes.bool,
|
|
198
199
|
padding: PropTypes.string,
|
|
199
200
|
minWidth: PropTypes.string,
|
|
200
201
|
maxWidth: PropTypes.string,
|
|
202
|
+
boxShadow: PropTypes.string,
|
|
203
|
+
marginTop: PropTypes.string,
|
|
201
204
|
boxSizing: PropTypes.string,
|
|
202
205
|
minHeight: PropTypes.string,
|
|
203
206
|
maxHeight: PropTypes.string,
|
|
204
207
|
maxLength: PropTypes.number,
|
|
205
208
|
labelSize: PropTypes.string,
|
|
209
|
+
errorSize: PropTypes.string,
|
|
206
210
|
labelColor: PropTypes.string,
|
|
211
|
+
errorColor: PropTypes.string,
|
|
207
212
|
labelWeight: PropTypes.string,
|
|
208
|
-
borderColor: PropTypes.string,
|
|
209
213
|
placeholder: PropTypes.string,
|
|
214
|
+
errorMessage: PropTypes.string,
|
|
210
215
|
labelDisplay: PropTypes.string,
|
|
211
216
|
backgroundColor: PropTypes.string,
|
|
212
217
|
showCharacterCount: PropTypes.bool,
|
|
213
218
|
value: PropTypes.string.isRequired,
|
|
214
219
|
borderFocusColor: PropTypes.string,
|
|
215
220
|
borderHoverColor: PropTypes.string,
|
|
221
|
+
labelMarginBottom: PropTypes.string,
|
|
216
222
|
onChange: PropTypes.func.isRequired,
|
|
217
223
|
labelRequiredColor: PropTypes.string
|
|
218
224
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Textarea } from '.';
|
|
3
|
+
import { Input } from '../input';
|
|
3
4
|
|
|
4
5
|
export default {
|
|
5
6
|
Comment: Textarea,
|
|
@@ -24,9 +25,12 @@ Default.args = {
|
|
|
24
25
|
required: true,
|
|
25
26
|
size: '16px',
|
|
26
27
|
radius: '6px',
|
|
28
|
+
errorSize: '',
|
|
27
29
|
width: '400px',
|
|
30
|
+
errorColor: '',
|
|
28
31
|
height: '134px',
|
|
29
32
|
maxLength: 1500,
|
|
33
|
+
errorMessage: '',
|
|
30
34
|
color: '#3C393E',
|
|
31
35
|
minWidth: '200px',
|
|
32
36
|
maxWidth: '500px',
|
|
@@ -159,8 +159,9 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
159
159
|
height: '46px', // for height
|
|
160
160
|
required: false, // for showing required mark on label (it meens input is required)
|
|
161
161
|
disabled: false, // for disabled
|
|
162
|
-
errorLeft: '0px', // for error message position from left
|
|
163
|
-
errorZindex: '1', // for error message z-index
|
|
162
|
+
errorLeft: '0px', // for error message position from left
|
|
163
|
+
errorZindex: '1', // for error message z-index
|
|
164
|
+
marginTop: '10px', // for error message position from top
|
|
164
165
|
iconWidth: '64px', // for left or right icon block width (you can add your custom icon and you can set icon block size)
|
|
165
166
|
errorSize: '14px', // for error font size
|
|
166
167
|
labelSize: '16px', // for label font size
|
|
@@ -169,7 +170,6 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
169
170
|
errorClassName: '', // for error message classname (you can set custom class for your custom css)
|
|
170
171
|
phoneDisplay: 'flex', // for phone extention display, work when input type is tel
|
|
171
172
|
autoComplete: 'off', // for autocomplete fill mode (browser specific, may not work)
|
|
172
|
-
errorBottom: '-20px', // for error message position from bottom (work when errorPosition prop is 'absolute')
|
|
173
173
|
padding: '12px 15px', // for padding
|
|
174
174
|
labelColor: '#3c393e', // for label color
|
|
175
175
|
errorAnimation: false, // for error showing animation
|
|
@@ -322,6 +322,7 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
322
322
|
|
|
323
323
|
```
|
|
324
324
|
{
|
|
325
|
+
marginTop: '10px', // for error message postion from top
|
|
325
326
|
labelWeight: '500', // for label font weight
|
|
326
327
|
labelColor: '#3C393E', // for label color
|
|
327
328
|
labelDisplay: 'block', // for label display
|
|
@@ -415,23 +416,24 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
415
416
|
height: '134px', // for height
|
|
416
417
|
maxLength: 1500, // for characters maximum count
|
|
417
418
|
color: '#3C393E', // for color
|
|
419
|
+
marginTop: '10px', // for error message position from top
|
|
418
420
|
minWidth: '200px', // for minimum width
|
|
419
421
|
maxWidth: '500px', // for maximum width
|
|
420
422
|
labelSize: '16px', // for label font size
|
|
421
423
|
minHeight: '100px', // for minimum height
|
|
422
424
|
maxHeight: '300px', // for maximum height
|
|
423
|
-
border: '2px solid', // for border
|
|
424
425
|
padding: '12px 15px', // for padding
|
|
425
426
|
labelColor: '#3C393E', // for label color
|
|
426
427
|
labelWeight: 'normal', // for label font weight
|
|
427
428
|
labelDisplay: 'block', // for label display
|
|
428
|
-
borderColor: '#D1D1D1', // for border color
|
|
429
429
|
boxSizing: 'border-box', // for box sizing
|
|
430
430
|
backgroundColor: 'white', // for background color
|
|
431
|
+
labelMarginBottom: '10px', // for label margin bottom
|
|
431
432
|
borderHoverColor: '#3C393E', // for border color when hover action is happaning
|
|
432
433
|
borderFocusColor: '#00236A', // for boredr color when focus action is happaning
|
|
433
434
|
labelRequiredColor: '#ee0000', // for label required mark color
|
|
434
435
|
showCharacterCount: true, // for showing textarea character count ( set itself without configuration file)
|
|
436
|
+
boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
|
|
435
437
|
}
|
|
436
438
|
```
|
|
437
439
|
|
|
@@ -440,6 +442,7 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
440
442
|
```
|
|
441
443
|
{
|
|
442
444
|
labelWeight: 500, // for label font weight
|
|
445
|
+
marginTop: '10px', // for error message position from top
|
|
443
446
|
labelSize: '16px', // for label font size
|
|
444
447
|
labelColor: '#3c393e', // for label color
|
|
445
448
|
labelDisplay: 'block', // for label display
|
|
@@ -569,12 +572,21 @@ import StackAlt from './assets/stackalt.svg';
|
|
|
569
572
|
### Modal
|
|
570
573
|
```
|
|
571
574
|
{
|
|
575
|
+
alignItems: 'center', // for modal ( flex-start, center, flex-end ) --> align-items
|
|
576
|
+
justifyContent: 'center', // for modal ( flex-start, center, flex-end ) --> justify-content
|
|
577
|
+
mMaxWidth: '95%', // for modal max width
|
|
578
|
+
mMaxHeight: '95vh', // for modal max height
|
|
579
|
+
outsideClose: true, // for modal close when happened outside click
|
|
572
580
|
radius: '14px', // for modal border radius
|
|
581
|
+
minWidth: '320px', // for modal min width
|
|
573
582
|
headerSize: '20px', // for modal header font size
|
|
583
|
+
minHeight: '200px', // for modal min height
|
|
574
584
|
imageWidth: '600px', // for modal image width on images mode
|
|
575
585
|
headerWeight: '600', // for modal header font weight
|
|
576
586
|
imageHeight: '300px', // for modal image height on images mode
|
|
577
587
|
headerHeight: '27px', // for modal header height
|
|
588
|
+
width: 'fit-content', // for modal width
|
|
589
|
+
height: 'fit-content', // for modal width
|
|
578
590
|
headerColor: '#00236a', // for modal header color
|
|
579
591
|
backgroundColor: 'white', // for modal background color
|
|
580
592
|
padding: '10px 20px 20px', // for modal padding
|
package/tui.config.js
CHANGED
|
@@ -32,8 +32,9 @@ module.exports = {
|
|
|
32
32
|
height: '46px', // for height
|
|
33
33
|
required: false, // for showing required mark on label (it meens input is required)
|
|
34
34
|
disabled: false, // for disabled
|
|
35
|
-
errorLeft: '0px', // for error message position from left
|
|
36
|
-
errorZindex: '1', // for error message z-index
|
|
35
|
+
errorLeft: '0px', // for error message position from left
|
|
36
|
+
errorZindex: '1', // for error message z-index
|
|
37
|
+
marginTop: '10px', // for error message position from top
|
|
37
38
|
iconWidth: '64px', // for left or right icon block width (you can add your custom icon and you can set icon block size)
|
|
38
39
|
errorSize: '14px', // for error font size
|
|
39
40
|
labelSize: '16px', // for label font size
|
|
@@ -43,7 +44,6 @@ module.exports = {
|
|
|
43
44
|
telErrorMessage: '', // for error message when type is tel
|
|
44
45
|
phoneDisplay: 'flex', // for phone extention display, work when input type is tel
|
|
45
46
|
autoComplete: 'off', // for autocomplete fill mode (browser specific, may not work)
|
|
46
|
-
errorBottom: '-20px', // for error message position from bottom (work when errorPosition prop is 'absolute')
|
|
47
47
|
padding: '12px 15px', // for padding
|
|
48
48
|
labelColor: '#3c393e', // for label color
|
|
49
49
|
errorAnimation: false, // for error showing animation
|
|
@@ -56,7 +56,6 @@ module.exports = {
|
|
|
56
56
|
color: 'rgb(60, 57, 62)', // for input color
|
|
57
57
|
labelMarginBottom: '6px', // for label margin bottom
|
|
58
58
|
phoneAlignItems: 'center', // for phone extention inside item, work when input type is tel
|
|
59
|
-
errorPosition: 'absolute', // for error message position (maybe you want to show error message in custom place)
|
|
60
59
|
transform: 'scale3d(0,0,0)', // for transform (when have error message and errorAnimation prop is true)
|
|
61
60
|
borderRightColor: '#d1d1d1', // for type tel right border
|
|
62
61
|
borderRightColorHover: '#3c393e', // for type tel right border color when hover is active
|
|
@@ -179,6 +178,7 @@ module.exports = {
|
|
|
179
178
|
},
|
|
180
179
|
// default properties for <Select /> component
|
|
181
180
|
SELECT: {
|
|
181
|
+
marginTop: '10px', // for error message postion from top
|
|
182
182
|
labelWeight: '500', // for label font weight
|
|
183
183
|
labelColor: '#3C393E', // for label color
|
|
184
184
|
labelDisplay: 'block', // for label display
|
|
@@ -231,28 +231,30 @@ module.exports = {
|
|
|
231
231
|
height: '134px', // for height
|
|
232
232
|
maxLength: 1500, // for characters maximum count
|
|
233
233
|
color: '#3C393E', // for color
|
|
234
|
+
marginTop: '10px', // for error message position from top
|
|
234
235
|
minWidth: '200px', // for minimum width
|
|
235
236
|
maxWidth: '500px', // for maximum width
|
|
236
237
|
labelSize: '16px', // for label font size
|
|
237
238
|
errorSize: '12px', // for error font size
|
|
238
239
|
minHeight: '100px', // for minimum height
|
|
239
240
|
maxHeight: '300px', // for maximum height
|
|
240
|
-
border: '2px solid', // for border
|
|
241
241
|
padding: '12px 15px', // for padding
|
|
242
242
|
errorColor: '#E40E00', // for error color
|
|
243
243
|
labelColor: '#3C393E', // for label color
|
|
244
244
|
labelWeight: 'normal', // for label font weight
|
|
245
245
|
labelDisplay: 'block', // for label display
|
|
246
|
-
borderColor: '#D1D1D1', // for border color
|
|
247
246
|
boxSizing: 'border-box', // for box sizing
|
|
248
247
|
backgroundColor: 'white', // for background color
|
|
248
|
+
labelMarginBottom: '10px', // for label margin bottom
|
|
249
249
|
borderHoverColor: '#3C393E', // for border color when hover action is happaning
|
|
250
250
|
borderFocusColor: '#00236A', // for boredr color when focus action is happaning
|
|
251
251
|
labelRequiredColor: '#ee0000', // for label required mark color
|
|
252
|
+
boxShadow: '0 0 0 2px #d1d1d1', // for border size and color
|
|
252
253
|
},
|
|
253
254
|
// default properties for <NewAutocomplete /> component
|
|
254
255
|
NEWAUTOCOMPLETE: {
|
|
255
256
|
labelWeight: 500, // for label font weight
|
|
257
|
+
marginTop: '10px', // for error message position from top
|
|
256
258
|
labelSize: '16px', // for label font size
|
|
257
259
|
labelColor: '#3c393e', // for label color
|
|
258
260
|
labelDisplay: 'block', // for label display
|
|
@@ -368,12 +370,21 @@ module.exports = {
|
|
|
368
370
|
},
|
|
369
371
|
// default properties for <Modal /> component
|
|
370
372
|
MODAL: {
|
|
373
|
+
alignItems: 'center', // for modal ( flex-start, center, flex-end ) --> align-items
|
|
374
|
+
justifyContent: 'center', // for modal ( flex-start, center, flex-end ) --> justify-content
|
|
375
|
+
mMaxWidth: '95%', // for modal max width
|
|
376
|
+
mMaxHeight: '95vh', // for modal max height
|
|
377
|
+
outsideClose: true, // for modal close when happened outside click
|
|
371
378
|
radius: '14px', // for modal border radius
|
|
379
|
+
minWidth: '320px', // for modal min width
|
|
372
380
|
headerSize: '20px', // for modal header font size
|
|
381
|
+
minHeight: '200px', // for modal min height
|
|
373
382
|
imageWidth: '600px', // for modal image width on images mode
|
|
374
383
|
headerWeight: '600', // for modal header font weight
|
|
375
384
|
imageHeight: '300px', // for modal image height on images mode
|
|
376
385
|
headerHeight: '27px', // for modal header height
|
|
386
|
+
width: 'fit-content', // for modal width
|
|
387
|
+
height: 'fit-content', // for modal width
|
|
377
388
|
headerColor: '#00236a', // for modal header color
|
|
378
389
|
backgroundColor: 'white', // for modal background color
|
|
379
390
|
padding: '10px 20px 20px', // for modal padding
|