@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 +7 -1
- package/build/index.es.js.map +1 -1
- package/build/index.js +7 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -8046,7 +8046,13 @@ var SearchInput = function (props) {
|
|
|
8046
8046
|
if (props.onSearch)
|
|
8047
8047
|
props.onSearch(value);
|
|
8048
8048
|
};
|
|
8049
|
-
|
|
8049
|
+
var onBlur = function () {
|
|
8050
|
+
if (props.onBlur)
|
|
8051
|
+
props.onBlur();
|
|
8052
|
+
if (value.length <= 0)
|
|
8053
|
+
onSearch();
|
|
8054
|
+
};
|
|
8055
|
+
return (jsxRuntime.jsx(Container$q, { children: jsxRuntime.jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled, size: props.size }, { children: [jsxRuntime.jsx(Icon, { type: "search", color: "gray", size: "small", onClick: onSearch }), jsxRuntime.jsx(StyledInput, __assign$2({ type: "text" }, props, { onChange: onChange, onKeyPress: onKeyPress, onBlur: onBlur }))] })) }));
|
|
8050
8056
|
};
|
|
8051
8057
|
|
|
8052
8058
|
var Input = function (props) {
|