@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 +10 -3
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/List/index.d.ts +2 -1
- package/dist/components/List/types.d.ts +4 -0
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/true-react-common-ui-kit.js +6 -1
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +6 -1
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/List/List.tsx +5 -2
- package/src/components/List/index.ts +2 -1
- package/src/components/List/types.ts +5 -0
- package/src/components/Select/index.ts +1 -1
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
|
-
##
|
|
30
|
+
## 3.53.1
|
|
24
31
|
|
|
25
32
|
### Changes
|
|
26
33
|
|
|
@@ -46,13 +53,13 @@
|
|
|
46
53
|
|
|
47
54
|
- **FlexibleTable**: Исправлена мемоизация строк при смещении
|
|
48
55
|
|
|
49
|
-
##
|
|
56
|
+
## 3.50.1
|
|
50
57
|
|
|
51
58
|
### Changes
|
|
52
59
|
|
|
53
60
|
- **Select**: Исправлено обрезание лейбла многоточием
|
|
54
61
|
|
|
55
|
-
##
|
|
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 {
|
|
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
|
|
3
|
+
export type { IListItem } from './types';
|
|
4
|
+
export { type IListItemStyles, type IListItemProps, ListItem } 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:
|
|
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,
|