ab-ui-library 1.37.8 → 1.38.0

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.
@@ -1,5 +1,5 @@
1
1
  import { _ as _toConsumableArray } from '../../../toConsumableArray-9b03ca05.js';
2
- import React, { useRef, useMemo, useEffect } from 'react';
2
+ import React, { useMemo } from 'react';
3
3
  import { Text } from '../../Text/Text.js';
4
4
  import { Input } from '../../Input/Input.js';
5
5
  import '../../Input/InputPassword.js';
@@ -85,7 +85,6 @@ var ContentTop = /*#__PURE__*/React.memo(function (props) {
85
85
  _props$menuOptions = props.menuOptions,
86
86
  menuOptions = _props$menuOptions === void 0 ? [] : _props$menuOptions,
87
87
  dataIdPrefix = props.dataIdPrefix;
88
- var inputRef = useRef(null);
89
88
  var _ref = translations || {},
90
89
  searchInputPlaceHolder = _ref.searchInputPlaceHolder,
91
90
  innerLabel = _ref.innerLabel,
@@ -125,11 +124,6 @@ var ContentTop = /*#__PURE__*/React.memo(function (props) {
125
124
  var removeFilter = function removeFilter() {
126
125
  return setSearchValue && setSearchValue('');
127
126
  };
128
- useEffect(function () {
129
- if (inputRef && inputRef.current) {
130
- inputRef.current.focus();
131
- }
132
- }, [inputRef]);
133
127
  return /*#__PURE__*/React.createElement("div", {
134
128
  className: "content-top"
135
129
  }, helperText ? /*#__PURE__*/React.createElement(Text, {
@@ -137,7 +131,6 @@ var ContentTop = /*#__PURE__*/React.memo(function (props) {
137
131
  type: "secondary",
138
132
  className: "content-top__label"
139
133
  }, helperText) : null, isSearchAvailable && /*#__PURE__*/React.createElement(Input, {
140
- ref: inputRef,
141
134
  className: "content-top__search",
142
135
  size: "small",
143
136
  placeholder: searchInputPlaceHolder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ab-ui-library",
3
- "version": "1.37.8",
3
+ "version": "1.38.0",
4
4
  "description": "UI library for AM",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",