@typeolymp/ui-components 1.19.20 → 1.19.21

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/build/index.es.js CHANGED
@@ -8019,7 +8019,13 @@ var SearchInput = function (props) {
8019
8019
  if (props.onSearch)
8020
8020
  props.onSearch(value);
8021
8021
  };
8022
- return (jsx$1(Container$q, { children: jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled, size: props.size }, { children: [jsx$1(Icon, { type: "search", color: "gray", size: "small", onClick: onSearch }), jsx$1(StyledInput, __assign$2({ type: "text" }, props, { onChange: onChange, onKeyPress: onKeyPress }))] })) }));
8022
+ var onBlur = function () {
8023
+ if (props.onBlur)
8024
+ props.onBlur();
8025
+ if (value.length <= 0)
8026
+ onSearch();
8027
+ };
8028
+ return (jsx$1(Container$q, { children: jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled, size: props.size }, { children: [jsx$1(Icon, { type: "search", color: "gray", size: "small", onClick: onSearch }), jsx$1(StyledInput, __assign$2({ type: "text" }, props, { onChange: onChange, onKeyPress: onKeyPress, onBlur: onBlur }))] })) }));
8023
8029
  };
8024
8030
 
8025
8031
  var Input = function (props) {