@true-engineering/true-react-common-ui-kit 3.46.0 → 3.47.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.
package/README.md CHANGED
@@ -11,6 +11,13 @@
11
11
 
12
12
  # Release Notes
13
13
 
14
+ ## 3.47.0
15
+
16
+ ### Changes
17
+
18
+ - **Select**: Добавлен ref в пропсу `searchInput` Select-а
19
+ - **Select**: Добавлен shouldFocusOnMount в пропсу `searchInput` Select-а
20
+
14
21
  ## 3.46.0
15
22
 
16
23
  ### Changes
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, FormEvent, KeyboardEvent, MouseEvent, ReactNode, SyntheticEvent } from 'react';
1
+ import { ChangeEvent, FormEvent, KeyboardEvent, MouseEvent, ReactNode, SyntheticEvent, Ref } from 'react';
2
2
  import { IDropdownWithPopperOptions, ICommonProps } from '../../types';
3
3
  import { IIcon } from '../Icon';
4
4
  import { IInputProps } from '../Input';
@@ -27,8 +27,10 @@ export interface ISelectProps<Value> extends Omit<IInputProps, 'value' | 'onChan
27
27
  shouldScrollToList?: boolean;
28
28
  isMultiSelect?: false;
29
29
  searchInput?: {
30
- shouldRenderInList: true;
31
- } & Pick<ISearchInputProps, 'placeholder'>;
30
+ /** @default false */
31
+ shouldRenderInList?: boolean;
32
+ ref?: Ref<HTMLInputElement>;
33
+ } & Pick<ISearchInputProps, 'placeholder' | 'shouldFocusOnMount'>;
32
34
  isOptionDisabled?: (option: Value) => boolean;
33
35
  onChange: (value: Value | undefined, event: MouseEvent<HTMLElement> | KeyboardEvent | ChangeEvent<HTMLElement> | FormEvent<HTMLElement>) => void;
34
36
  onBlur?: (event: Event | SyntheticEvent) => void;