sag_components 1.0.652 → 1.0.654

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.
@@ -22,6 +22,7 @@ const Input = _ref => {
22
22
  selectedValue,
23
23
  placeHolder,
24
24
  onChange,
25
+ onBlur,
25
26
  required,
26
27
  disabled,
27
28
  width,
@@ -30,8 +31,7 @@ const Input = _ref => {
30
31
  labelColor,
31
32
  leftIcon,
32
33
  rightIcon,
33
- password,
34
- ...props
34
+ password
35
35
  } = _ref;
36
36
  const [isFocused, setIsFocused] = (0, _react.useState)(false);
37
37
  const [inputValue, setInputValue] = (0, _react.useState)('');
@@ -68,6 +68,7 @@ const Input = _ref => {
68
68
  }
69
69
  };
70
70
  const handleBlur = () => {
71
+ onBlur();
71
72
  setIsFocused(false);
72
73
  };
73
74
  const getLeftIcon = () => {
@@ -128,7 +129,7 @@ const Input = _ref => {
128
129
  color: disabled ? '#D0D0D0' : 'red',
129
130
  height: '16px'
130
131
  }
131
- }, "*")), /*#__PURE__*/_react.default.createElement(_Input.StyledInput, Object.assign({}, props, {
132
+ }, "*")), /*#__PURE__*/_react.default.createElement(_Input.StyledInput, {
132
133
  className: "StyledInput",
133
134
  ref: inputRef,
134
135
  type: password && !showPassword ? 'password' : 'text',
@@ -141,7 +142,7 @@ const Input = _ref => {
141
142
  placeholder: isFocused ? placeHolder : '',
142
143
  error: error,
143
144
  isFocused: isFocused
144
- }))), password ? getPasswordIcon() : getRightIcon()), error && (errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.length) > 0 && /*#__PURE__*/_react.default.createElement(_Input.ErrorMessage, {
145
+ })), password ? getPasswordIcon() : getRightIcon()), error && (errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.length) > 0 && /*#__PURE__*/_react.default.createElement(_Input.ErrorMessage, {
145
146
  className: "ErrorMessage",
146
147
  width: width
147
148
  }, errorMessage));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.652",
3
+ "version": "1.0.654",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {