@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 +7 -0
- 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
|
@@ -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';
|
|
@@ -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:
|
|
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,
|