@true-engineering/true-react-common-ui-kit 3.54.0 → 3.55.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
@@ -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
@@ -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';
@@ -8425,10 +8425,14 @@ var List = function(param) {
8425
8425
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
8426
8426
  }
8427
8427
  };
8428
+ var filteredItems = items.filter(function(param2) {
8429
+ var isHidden = param2.isHidden;
8430
+ return !isHidden;
8431
+ });
8428
8432
  return /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$Y({
8429
8433
  className: classes.root
8430
8434
  }, addDataTestId(testId), addDataAttributes(data)), {
8431
- children: items.map(function(item, i) {
8435
+ children: filteredItems.map(function(item, i) {
8432
8436
  var itemProps = _object_spread_props$P(_object_spread$Y({
8433
8437
  testId: getTestId(testId, "item-".concat(i))
8434
8438
  }, item), {
@@ -32381,6 +32385,7 @@ export {
32381
32385
  ScrollIntoViewIfNeeded,
32382
32386
  SearchInput,
32383
32387
  Select,
32388
+ SelectList,
32384
32389
  Selector,
32385
32390
  Skeleton,
32386
32391
  SmartInput,