@xaypay/tui 0.1.4 → 0.1.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/dist/index.es.js +21 -13
- package/dist/index.js +21 -13
- package/package.json +1 -1
- package/tui.config.js +3 -3
package/dist/index.es.js
CHANGED
|
@@ -2768,10 +2768,10 @@ const Modal = ({
|
|
|
2768
2768
|
display: 'flex',
|
|
2769
2769
|
alignItems: 'center',
|
|
2770
2770
|
boxSizing: 'border-box',
|
|
2771
|
-
backgroundColor: '#FBFBFB',
|
|
2772
2771
|
padding: padding ?? merge.MODAL.padding,
|
|
2773
2772
|
height: headerHeight ?? merge.MODAL.header.height,
|
|
2774
|
-
justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end'
|
|
2773
|
+
justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end',
|
|
2774
|
+
backgroundColor: closeAreaBackgroundColor ?? merge.MODAL.closeAreaBackgroundColor
|
|
2775
2775
|
}
|
|
2776
2776
|
}, headerText && type === 'content' && /*#__PURE__*/React__default.createElement("p", {
|
|
2777
2777
|
style: {
|
|
@@ -3078,6 +3078,7 @@ const TextInput = ({
|
|
|
3078
3078
|
inputChange,
|
|
3079
3079
|
maxLength,
|
|
3080
3080
|
inpStyles,
|
|
3081
|
+
disabled,
|
|
3081
3082
|
inpAttributes
|
|
3082
3083
|
}) => {
|
|
3083
3084
|
const [innerValue, setInnerValue] = useState('');
|
|
@@ -3105,6 +3106,7 @@ const TextInput = ({
|
|
|
3105
3106
|
return /*#__PURE__*/React__default.createElement("input", {
|
|
3106
3107
|
type: "text",
|
|
3107
3108
|
value: innerValue,
|
|
3109
|
+
disabled: disabled,
|
|
3108
3110
|
onInput: handleChange,
|
|
3109
3111
|
name: inpAttributes?.iName,
|
|
3110
3112
|
placeholder: inpAttributes?.placeholder,
|
|
@@ -3125,6 +3127,7 @@ const PassInput = ({
|
|
|
3125
3127
|
inputChange,
|
|
3126
3128
|
maxLength,
|
|
3127
3129
|
inpAttributes,
|
|
3130
|
+
disabled,
|
|
3128
3131
|
inpStyles
|
|
3129
3132
|
}) => {
|
|
3130
3133
|
const [innerShow, setInnerShow] = useState('');
|
|
@@ -3156,6 +3159,7 @@ const PassInput = ({
|
|
|
3156
3159
|
return /*#__PURE__*/React__default.createElement("input", {
|
|
3157
3160
|
type: innerShow ? 'text' : 'password',
|
|
3158
3161
|
value: innerValue,
|
|
3162
|
+
disabled: disabled,
|
|
3159
3163
|
onInput: handleChange,
|
|
3160
3164
|
name: inpAttributes?.iName,
|
|
3161
3165
|
placeholder: inpAttributes?.placeholder,
|
|
@@ -3174,6 +3178,7 @@ const NumberInput = ({
|
|
|
3174
3178
|
value,
|
|
3175
3179
|
float,
|
|
3176
3180
|
radius,
|
|
3181
|
+
disabled,
|
|
3177
3182
|
maxLength,
|
|
3178
3183
|
inpStyles,
|
|
3179
3184
|
minNumSize,
|
|
@@ -3218,6 +3223,7 @@ const NumberInput = ({
|
|
|
3218
3223
|
return /*#__PURE__*/React__default.createElement("input", {
|
|
3219
3224
|
type: "text",
|
|
3220
3225
|
value: innerValue,
|
|
3226
|
+
disabled: disabled,
|
|
3221
3227
|
name: inpAttributes?.iName,
|
|
3222
3228
|
placeholder: inpAttributes?.placeholder,
|
|
3223
3229
|
autoComplete: inpAttributes?.autoComplete,
|
|
@@ -3419,9 +3425,10 @@ const Input = ({
|
|
|
3419
3425
|
telBorderRightColorHover: telBorderRightColorHover ?? merge.INPUT.tel.borderRight.colors.hover
|
|
3420
3426
|
}) : type === 'number' ? /*#__PURE__*/React__default.createElement(NumberInput, {
|
|
3421
3427
|
value: value,
|
|
3422
|
-
inputChange: change,
|
|
3423
3428
|
dots: withoutDot,
|
|
3424
3429
|
float: floatToFix,
|
|
3430
|
+
disabled: disabled,
|
|
3431
|
+
inputChange: change,
|
|
3425
3432
|
maxLength: maxLength,
|
|
3426
3433
|
inpStyles: inpStyles,
|
|
3427
3434
|
inpAttributes: inpAttributes,
|
|
@@ -3432,7 +3439,6 @@ const Input = ({
|
|
|
3432
3439
|
show: show,
|
|
3433
3440
|
type: type,
|
|
3434
3441
|
value: value,
|
|
3435
|
-
isHover: isHover,
|
|
3436
3442
|
disabled: disabled,
|
|
3437
3443
|
inputChange: change,
|
|
3438
3444
|
maxLength: maxLength,
|
|
@@ -3441,6 +3447,7 @@ const Input = ({
|
|
|
3441
3447
|
radius: radius ?? merge.INPUT.radius
|
|
3442
3448
|
}) : /*#__PURE__*/React__default.createElement(TextInput, {
|
|
3443
3449
|
value: value,
|
|
3450
|
+
disabled: disabled,
|
|
3444
3451
|
inputChange: change,
|
|
3445
3452
|
inpStyles: inpStyles,
|
|
3446
3453
|
maxLength: maxLength,
|
|
@@ -5019,7 +5026,7 @@ const Textarea = ({
|
|
|
5019
5026
|
alert('Please add value prop on Textarea component');
|
|
5020
5027
|
}
|
|
5021
5028
|
if (errorMessage) {
|
|
5022
|
-
|
|
5029
|
+
setError(errorMessage);
|
|
5023
5030
|
} else {
|
|
5024
5031
|
setError('');
|
|
5025
5032
|
}
|
|
@@ -5628,12 +5635,10 @@ const Autocomplete = ({
|
|
|
5628
5635
|
value.length > 0 ? setShow(true) : setShow(false);
|
|
5629
5636
|
setInnerError('');
|
|
5630
5637
|
setInnerValue(value);
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
});
|
|
5636
|
-
}
|
|
5638
|
+
change({
|
|
5639
|
+
name: value,
|
|
5640
|
+
id: currentId
|
|
5641
|
+
});
|
|
5637
5642
|
};
|
|
5638
5643
|
const handleClick = selectedValue => {
|
|
5639
5644
|
setShow(false);
|
|
@@ -5735,7 +5740,10 @@ const Autocomplete = ({
|
|
|
5735
5740
|
setInnerError(errorMessage);
|
|
5736
5741
|
}, [errorMessage]);
|
|
5737
5742
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5738
|
-
className: classProps
|
|
5743
|
+
className: classProps,
|
|
5744
|
+
style: {
|
|
5745
|
+
width: contentTopMaxWidth ?? merge.AUTOCOMPLETE.maxWidth
|
|
5746
|
+
}
|
|
5739
5747
|
}, label ? /*#__PURE__*/React__default.createElement("label", {
|
|
5740
5748
|
style: {
|
|
5741
5749
|
color: labelColor ?? merge.AUTOCOMPLETE.label.color,
|
|
@@ -5753,7 +5761,7 @@ const Autocomplete = ({
|
|
|
5753
5761
|
style: {
|
|
5754
5762
|
display: contentDisplay ?? merge.AUTOCOMPLETE.parent.display,
|
|
5755
5763
|
position: contentPosition ?? merge.AUTOCOMPLETE.parent.position,
|
|
5756
|
-
|
|
5764
|
+
width: '100%',
|
|
5757
5765
|
flexDirection: contentDirection ?? merge.AUTOCOMPLETE.parent.direction
|
|
5758
5766
|
}
|
|
5759
5767
|
}, /*#__PURE__*/React__default.createElement("input", _extends({
|
package/dist/index.js
CHANGED
|
@@ -2798,10 +2798,10 @@ const Modal = ({
|
|
|
2798
2798
|
display: 'flex',
|
|
2799
2799
|
alignItems: 'center',
|
|
2800
2800
|
boxSizing: 'border-box',
|
|
2801
|
-
backgroundColor: '#FBFBFB',
|
|
2802
2801
|
padding: padding ?? merge.MODAL.padding,
|
|
2803
2802
|
height: headerHeight ?? merge.MODAL.header.height,
|
|
2804
|
-
justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end'
|
|
2803
|
+
justifyContent: headerText && type === 'content' ? 'space-between' : 'flex-end',
|
|
2804
|
+
backgroundColor: closeAreaBackgroundColor ?? merge.MODAL.closeAreaBackgroundColor
|
|
2805
2805
|
}
|
|
2806
2806
|
}, headerText && type === 'content' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2807
2807
|
style: {
|
|
@@ -3108,6 +3108,7 @@ const TextInput = ({
|
|
|
3108
3108
|
inputChange,
|
|
3109
3109
|
maxLength,
|
|
3110
3110
|
inpStyles,
|
|
3111
|
+
disabled,
|
|
3111
3112
|
inpAttributes
|
|
3112
3113
|
}) => {
|
|
3113
3114
|
const [innerValue, setInnerValue] = React.useState('');
|
|
@@ -3135,6 +3136,7 @@ const TextInput = ({
|
|
|
3135
3136
|
return /*#__PURE__*/React__default["default"].createElement("input", {
|
|
3136
3137
|
type: "text",
|
|
3137
3138
|
value: innerValue,
|
|
3139
|
+
disabled: disabled,
|
|
3138
3140
|
onInput: handleChange,
|
|
3139
3141
|
name: inpAttributes?.iName,
|
|
3140
3142
|
placeholder: inpAttributes?.placeholder,
|
|
@@ -3155,6 +3157,7 @@ const PassInput = ({
|
|
|
3155
3157
|
inputChange,
|
|
3156
3158
|
maxLength,
|
|
3157
3159
|
inpAttributes,
|
|
3160
|
+
disabled,
|
|
3158
3161
|
inpStyles
|
|
3159
3162
|
}) => {
|
|
3160
3163
|
const [innerShow, setInnerShow] = React.useState('');
|
|
@@ -3186,6 +3189,7 @@ const PassInput = ({
|
|
|
3186
3189
|
return /*#__PURE__*/React__default["default"].createElement("input", {
|
|
3187
3190
|
type: innerShow ? 'text' : 'password',
|
|
3188
3191
|
value: innerValue,
|
|
3192
|
+
disabled: disabled,
|
|
3189
3193
|
onInput: handleChange,
|
|
3190
3194
|
name: inpAttributes?.iName,
|
|
3191
3195
|
placeholder: inpAttributes?.placeholder,
|
|
@@ -3204,6 +3208,7 @@ const NumberInput = ({
|
|
|
3204
3208
|
value,
|
|
3205
3209
|
float,
|
|
3206
3210
|
radius,
|
|
3211
|
+
disabled,
|
|
3207
3212
|
maxLength,
|
|
3208
3213
|
inpStyles,
|
|
3209
3214
|
minNumSize,
|
|
@@ -3248,6 +3253,7 @@ const NumberInput = ({
|
|
|
3248
3253
|
return /*#__PURE__*/React__default["default"].createElement("input", {
|
|
3249
3254
|
type: "text",
|
|
3250
3255
|
value: innerValue,
|
|
3256
|
+
disabled: disabled,
|
|
3251
3257
|
name: inpAttributes?.iName,
|
|
3252
3258
|
placeholder: inpAttributes?.placeholder,
|
|
3253
3259
|
autoComplete: inpAttributes?.autoComplete,
|
|
@@ -3449,9 +3455,10 @@ const Input = ({
|
|
|
3449
3455
|
telBorderRightColorHover: telBorderRightColorHover ?? merge.INPUT.tel.borderRight.colors.hover
|
|
3450
3456
|
}) : type === 'number' ? /*#__PURE__*/React__default["default"].createElement(NumberInput, {
|
|
3451
3457
|
value: value,
|
|
3452
|
-
inputChange: change,
|
|
3453
3458
|
dots: withoutDot,
|
|
3454
3459
|
float: floatToFix,
|
|
3460
|
+
disabled: disabled,
|
|
3461
|
+
inputChange: change,
|
|
3455
3462
|
maxLength: maxLength,
|
|
3456
3463
|
inpStyles: inpStyles,
|
|
3457
3464
|
inpAttributes: inpAttributes,
|
|
@@ -3462,7 +3469,6 @@ const Input = ({
|
|
|
3462
3469
|
show: show,
|
|
3463
3470
|
type: type,
|
|
3464
3471
|
value: value,
|
|
3465
|
-
isHover: isHover,
|
|
3466
3472
|
disabled: disabled,
|
|
3467
3473
|
inputChange: change,
|
|
3468
3474
|
maxLength: maxLength,
|
|
@@ -3471,6 +3477,7 @@ const Input = ({
|
|
|
3471
3477
|
radius: radius ?? merge.INPUT.radius
|
|
3472
3478
|
}) : /*#__PURE__*/React__default["default"].createElement(TextInput, {
|
|
3473
3479
|
value: value,
|
|
3480
|
+
disabled: disabled,
|
|
3474
3481
|
inputChange: change,
|
|
3475
3482
|
inpStyles: inpStyles,
|
|
3476
3483
|
maxLength: maxLength,
|
|
@@ -5049,7 +5056,7 @@ const Textarea = ({
|
|
|
5049
5056
|
alert('Please add value prop on Textarea component');
|
|
5050
5057
|
}
|
|
5051
5058
|
if (errorMessage) {
|
|
5052
|
-
|
|
5059
|
+
setError(errorMessage);
|
|
5053
5060
|
} else {
|
|
5054
5061
|
setError('');
|
|
5055
5062
|
}
|
|
@@ -5658,12 +5665,10 @@ const Autocomplete = ({
|
|
|
5658
5665
|
value.length > 0 ? setShow(true) : setShow(false);
|
|
5659
5666
|
setInnerError('');
|
|
5660
5667
|
setInnerValue(value);
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
});
|
|
5666
|
-
}
|
|
5668
|
+
change({
|
|
5669
|
+
name: value,
|
|
5670
|
+
id: currentId
|
|
5671
|
+
});
|
|
5667
5672
|
};
|
|
5668
5673
|
const handleClick = selectedValue => {
|
|
5669
5674
|
setShow(false);
|
|
@@ -5765,7 +5770,10 @@ const Autocomplete = ({
|
|
|
5765
5770
|
setInnerError(errorMessage);
|
|
5766
5771
|
}, [errorMessage]);
|
|
5767
5772
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5768
|
-
className: classProps
|
|
5773
|
+
className: classProps,
|
|
5774
|
+
style: {
|
|
5775
|
+
width: contentTopMaxWidth ?? merge.AUTOCOMPLETE.maxWidth
|
|
5776
|
+
}
|
|
5769
5777
|
}, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
5770
5778
|
style: {
|
|
5771
5779
|
color: labelColor ?? merge.AUTOCOMPLETE.label.color,
|
|
@@ -5783,7 +5791,7 @@ const Autocomplete = ({
|
|
|
5783
5791
|
style: {
|
|
5784
5792
|
display: contentDisplay ?? merge.AUTOCOMPLETE.parent.display,
|
|
5785
5793
|
position: contentPosition ?? merge.AUTOCOMPLETE.parent.position,
|
|
5786
|
-
|
|
5794
|
+
width: '100%',
|
|
5787
5795
|
flexDirection: contentDirection ?? merge.AUTOCOMPLETE.parent.direction
|
|
5788
5796
|
}
|
|
5789
5797
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
package/package.json
CHANGED
package/tui.config.js
CHANGED
|
@@ -91,7 +91,7 @@ export default {
|
|
|
91
91
|
|
|
92
92
|
colors: {
|
|
93
93
|
background: 'white',
|
|
94
|
-
backgroundDisable: presetColors.
|
|
94
|
+
backgroundDisable: presetColors.secondary,
|
|
95
95
|
},
|
|
96
96
|
|
|
97
97
|
font: {...fontObject},
|
|
@@ -309,7 +309,7 @@ export default {
|
|
|
309
309
|
colors: {
|
|
310
310
|
hover: '#373538',
|
|
311
311
|
background: presetColors.extraLight,
|
|
312
|
-
backgroundDisable: presetColors.
|
|
312
|
+
backgroundDisable: presetColors.secondary,
|
|
313
313
|
},
|
|
314
314
|
|
|
315
315
|
font: {...fontObject}
|
|
@@ -440,7 +440,7 @@ export default {
|
|
|
440
440
|
},
|
|
441
441
|
|
|
442
442
|
colors: {
|
|
443
|
-
backgroundDisable: presetColors.
|
|
443
|
+
backgroundDisable: presetColors.secondary,
|
|
444
444
|
},
|
|
445
445
|
|
|
446
446
|
label: {
|