sag_components 1.0.651 → 1.0.652
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.
|
@@ -30,7 +30,8 @@ const Input = _ref => {
|
|
|
30
30
|
labelColor,
|
|
31
31
|
leftIcon,
|
|
32
32
|
rightIcon,
|
|
33
|
-
password
|
|
33
|
+
password,
|
|
34
|
+
...props
|
|
34
35
|
} = _ref;
|
|
35
36
|
const [isFocused, setIsFocused] = (0, _react.useState)(false);
|
|
36
37
|
const [inputValue, setInputValue] = (0, _react.useState)('');
|
|
@@ -127,7 +128,7 @@ const Input = _ref => {
|
|
|
127
128
|
color: disabled ? '#D0D0D0' : 'red',
|
|
128
129
|
height: '16px'
|
|
129
130
|
}
|
|
130
|
-
}, "*")), /*#__PURE__*/_react.default.createElement(_Input.StyledInput, {
|
|
131
|
+
}, "*")), /*#__PURE__*/_react.default.createElement(_Input.StyledInput, Object.assign({}, props, {
|
|
131
132
|
className: "StyledInput",
|
|
132
133
|
ref: inputRef,
|
|
133
134
|
type: password && !showPassword ? 'password' : 'text',
|
|
@@ -140,7 +141,7 @@ const Input = _ref => {
|
|
|
140
141
|
placeholder: isFocused ? placeHolder : '',
|
|
141
142
|
error: error,
|
|
142
143
|
isFocused: isFocused
|
|
143
|
-
})), password ? getPasswordIcon() : getRightIcon()), error && (errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.length) > 0 && /*#__PURE__*/_react.default.createElement(_Input.ErrorMessage, {
|
|
144
|
+
}))), password ? getPasswordIcon() : getRightIcon()), error && (errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.length) > 0 && /*#__PURE__*/_react.default.createElement(_Input.ErrorMessage, {
|
|
144
145
|
className: "ErrorMessage",
|
|
145
146
|
width: width
|
|
146
147
|
}, errorMessage));
|