@true-engineering/true-react-common-ui-kit 4.0.0-alpha8 → 4.0.0-alpha9

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
@@ -12,6 +12,13 @@
12
12
 
13
13
  # Release Notes
14
14
 
15
+ ## 3.55.0
16
+
17
+ ### Changes
18
+
19
+ - **Select**: Добавлен экспорт компонента `SelectList`
20
+ - **List**: Для `ListItem` добавлена опция `isHidden`
21
+
15
22
  ## 3.54.0
16
23
 
17
24
  ### Changes
@@ -20,7 +27,7 @@
20
27
  - **createThemedStyles**: Добавлен режим `tweakStylesArch="react-jss"`, оптимизирующий работу с tweakStyles
21
28
  - **createThemedStyles**: Добавлен режим `tweakStylesArch="true-jss"` (бета)
22
29
 
23
- ## ~~3.53.1~~
30
+ ## 3.53.1
24
31
 
25
32
  ### Changes
26
33
 
@@ -46,13 +53,13 @@
46
53
 
47
54
  - **FlexibleTable**: Исправлена мемоизация строк при смещении
48
55
 
49
- ## ~~3.50.1~~
56
+ ## 3.50.1
50
57
 
51
58
  ### Changes
52
59
 
53
60
  - **Select**: Исправлено обрезание лейбла многоточием
54
61
 
55
- ## ~~3.50.0~~
62
+ ## 3.50.0
56
63
 
57
64
  ### Changes
58
65
 
@@ -1,6 +1,6 @@
1
1
  import { FC, KeyboardEvent, MouseEvent } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
- import { IListItemProps as IListItem } from './components';
3
+ import { IListItem } from './types';
4
4
  import { IListStyles } from './List.styles';
5
5
  export interface IListProps extends ICommonProps<IListStyles> {
6
6
  items: IListItem[];
@@ -1,3 +1,4 @@
1
1
  export * from './List';
2
2
  export type { IListStyles } from './List.styles';
3
- export { type IListItemStyles, type IListItemProps as IListItem, ListItem } from './components';
3
+ export type { IListItem } from './types';
4
+ export { type IListItemStyles, type IListItemProps, ListItem } from './components';
@@ -0,0 +1,4 @@
1
+ import { IListItemProps } from './components';
2
+ export interface IListItem extends IListItemProps {
3
+ isHidden?: boolean;
4
+ }
@@ -1,4 +1,4 @@
1
1
  export * from './Select';
2
2
  export * from './types';
3
3
  export type { ISelectStyles } from './Select.styles';
4
- export type { ISelectListStyles } from './components';
4
+ export { type ISelectListStyles, SelectList } from './components';
@@ -8435,10 +8435,14 @@ var List = function(param) {
8435
8435
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
8436
8436
  }
8437
8437
  };
8438
+ var filteredItems = items.filter(function(param2) {
8439
+ var isHidden = param2.isHidden;
8440
+ return !isHidden;
8441
+ });
8438
8442
  return /* @__PURE__ */ jsx("div", _object_spread_props$R(_object_spread$$({
8439
8443
  className: classes.root
8440
8444
  }, addDataTestId(testId), addDataAttributes(data)), {
8441
- children: items.map(function(item, i) {
8445
+ children: filteredItems.map(function(item, i) {
8442
8446
  var itemProps = _object_spread_props$R(_object_spread$$({
8443
8447
  testId: getTestId(testId, "item-".concat(i))
8444
8448
  }, item), {
@@ -32450,6 +32454,7 @@ export {
32450
32454
  ScrollIntoViewIfNeeded,
32451
32455
  SearchInput,
32452
32456
  Select,
32457
+ SelectList,
32453
32458
  Selector,
32454
32459
  Skeleton,
32455
32460
  SmartInput,