@true-engineering/true-react-common-ui-kit 3.0.0-alpha.5 → 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.
Files changed (23) hide show
  1. package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.d.ts +1 -5
  2. package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +1 -3
  3. package/dist/components/FlexibleTable/FlexibleTable.d.ts +3 -0
  4. package/dist/components/MultiSelectList/MultiSelectList.d.ts +1 -2
  5. package/dist/helpers/phone.d.ts +1 -1
  6. package/dist/true-react-common-ui-kit.js +464 -199
  7. package/dist/true-react-common-ui-kit.js.map +1 -1
  8. package/dist/true-react-common-ui-kit.umd.cjs +464 -199
  9. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  10. package/package.json +1 -1
  11. package/src/components/DatePicker/DatePicker.stories.tsx +1 -0
  12. package/src/components/FiltersPane/FiltersPane.stories.tsx +0 -8
  13. package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +2 -1
  14. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +3 -1
  15. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +1 -6
  16. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +2 -1
  17. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +1 -0
  18. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +1 -4
  19. package/src/components/FiltersPane/types.ts +1 -1
  20. package/src/components/FlexibleTable/FlexibleTable.tsx +6 -3
  21. package/src/components/MultiSelectList/MultiSelectList.styles.ts +1 -0
  22. package/src/components/MultiSelectList/MultiSelectList.tsx +1 -3
  23. package/src/helpers/phone.ts +1 -1
@@ -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;
@@ -11,6 +11,9 @@ export interface IFlexibleTableProps<Values extends Record<string, any>> extends
11
11
  isHorizontallyScrollable?: boolean;
12
12
  isFirstColumnSticky?: boolean;
13
13
  infinityScrollConfig?: IInfinityScrollConfig;
14
+ /**
15
+ * @default Индекс строки
16
+ */
14
17
  uniqueField?: keyof Values;
15
18
  onHeadClick?: (column: keyof Values) => void;
16
19
  onRowClick?: (id: string) => void;
@@ -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;