@true-engineering/true-react-common-ui-kit 3.0.0-alpha.6 → 3.0.0-alpha.7

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.
@@ -13,10 +13,6 @@ export interface IFilterSelectProps<Value> extends ICommonProps<IFilterSelectSty
13
13
  * @default false
14
14
  */
15
15
  isGroupingEnabled?: boolean;
16
- /**
17
- * @default `220px`
18
- */
19
- width?: string | number;
20
16
  localeKey?: IFilterLocaleKey;
21
17
  locale?: Partial<ISelectLocale>;
22
18
  options?: Value[];
@@ -30,4 +26,4 @@ export interface IFilterSelectProps<Value> extends ICommonProps<IFilterSelectSty
30
26
  */
31
27
  hasClearButton?: boolean;
32
28
  }
33
- export declare function FilterSelect<Value>({ data, tweakStyles, value, isSearchEnabled, isGroupingEnabled, width, localeKey, locale, onChange, options, fetchOptions, footer, getValueView, getValueId, getValueString, hasClearButton, testId, }: IFilterSelectProps<Value>): JSX.Element;
29
+ export declare function FilterSelect<Value>({ data, tweakStyles, value, isSearchEnabled, isGroupingEnabled, localeKey, locale, onChange, options, fetchOptions, footer, getValueView, getValueId, getValueString, hasClearButton, testId, }: IFilterSelectProps<Value>): JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ICommonProps } from '../../../../types';
3
3
  import { IFilterLocaleKey, IFiltersPaneSearchPayload, IPartialFilterLocale } from '../../types';
4
- import { IFilterSelectProps } from '../FilterSelect';
5
4
  import { IFiltersPaneSearchStyles } from './FiltersPaneSearch.styles';
6
5
  export interface IFiltersPaneSearchProps<Value> extends ICommonProps<IFiltersPaneSearchStyles> {
7
6
  field?: Value;
@@ -14,10 +13,9 @@ export interface IFiltersPaneSearchProps<Value> extends ICommonProps<IFiltersPan
14
13
  getValueView?: (value: Value) => ReactNode;
15
14
  getValueId?: (value: Value) => string;
16
15
  getValueString?: (value: Value) => string;
17
- selectWidth?: IFilterSelectProps<Value>['width'];
18
16
  hasClearSelectButton?: boolean;
19
17
  isDisabled?: boolean;
20
18
  isSelectSearchEnabled?: boolean;
21
19
  isAutoSizeable?: boolean;
22
20
  }
23
- export declare function FiltersPaneSearch<Value>({ value, fields, field, onChange, localeKey, locale, getValueId, getValueView, getValueString, selectWidth, hasClearSelectButton, isDisabled, isSelectSearchEnabled, isAutoSizeable, maxLength, data, tweakStyles, testId, }: IFiltersPaneSearchProps<Value>): JSX.Element;
21
+ export declare function FiltersPaneSearch<Value>({ value, fields, field, onChange, localeKey, locale, getValueId, getValueView, getValueString, hasClearSelectButton, isDisabled, isSelectSearchEnabled, isAutoSizeable, maxLength, data, tweakStyles, testId, }: IFiltersPaneSearchProps<Value>): JSX.Element;
@@ -5,7 +5,6 @@ import { IMultiSelectListStyles } from './MultiSelectList.styles';
5
5
  export interface IMultiSelectListProps<Value, Option> extends ICommonProps<IMultiSelectListStyles> {
6
6
  value?: Value;
7
7
  isSearchEnabled?: boolean;
8
- width?: number | string;
9
8
  localeKey?: IMultiSelectLocaleKey;
10
9
  locale?: Partial<IMultiSelectLocale>;
11
10
  onClose?: () => void;
@@ -20,4 +19,4 @@ export interface IMultiSelectListProps<Value, Option> extends ICommonProps<IMult
20
19
  pageSize?: number;
21
20
  searchMaxLength?: number;
22
21
  }
23
- export declare function MultiSelectList<Value extends IMultiSelectListValues<Option>, Option = string>({ value, tweakStyles, data, isSearchEnabled, width, localeKey, locale, onChange, onClose, options, fetchOptions, isGroupingEnabled, getValueView, getValueId, getValueString, checkboxPosition, pageSize, searchMaxLength, testId, }: IMultiSelectListProps<Value, Option>): JSX.Element;
22
+ export declare function MultiSelectList<Value extends IMultiSelectListValues<Option>, Option = string>({ value, tweakStyles, data, isSearchEnabled, localeKey, locale, onChange, onClose, options, fetchOptions, isGroupingEnabled, getValueView, getValueId, getValueString, checkboxPosition, pageSize, searchMaxLength, testId, }: IMultiSelectListProps<Value, Option>): JSX.Element;
@@ -3,7 +3,7 @@ export declare const findCountryByCode: (countryCode?: string, countriesList?: I
3
3
  export declare const findCountryIndexByCode: (countryCode?: string, countriesList?: IPhoneInfo[]) => number;
4
4
  export declare const getCountryTextByLocale: (country: IPhoneInfo, locale: string) => string;
5
5
  /**
6
- * Мутирует!
6
+ * Мутирует countriesList!
7
7
  */
8
8
  export declare const sortCountriesByLocale: (countriesList: IPhoneInfo[], locale: string) => IPhoneInfo[];
9
9
  export declare const checkSearchStringInCountry: (country: IPhoneInfo, searchString: string) => boolean;