@orfium/ictinus 4.25.0 → 4.25.1
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/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.d.ts +4 -3
- package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.js +2 -3
- package/dist/components/List/ListItemGroup/ListItemGroup.js +0 -1
- package/dist/components/List/NormalList/NormalList.js +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TestProps } from 'utils/types';
|
|
3
3
|
import { ListItemType, ListRowSize } from 'components/List/types';
|
|
4
|
-
declare
|
|
4
|
+
declare type Props = {
|
|
5
5
|
/** Size of the ListGroupTitle (translates to height) */
|
|
6
6
|
size: ListRowSize;
|
|
7
7
|
/** Content of the ListItem */
|
|
@@ -9,6 +9,7 @@ declare const ListGroupTitle: React.ForwardRefExoticComponent<{
|
|
|
9
9
|
/** Index, for test-id calculation */
|
|
10
10
|
index: number;
|
|
11
11
|
/** Search Term to be highlighted in list items */
|
|
12
|
-
searchTerm?: string
|
|
13
|
-
} & TestProps
|
|
12
|
+
searchTerm?: string;
|
|
13
|
+
} & TestProps;
|
|
14
|
+
declare const ListGroupTitle: React.FC<Props>;
|
|
14
15
|
export default ListGroupTitle;
|
|
@@ -13,7 +13,7 @@ var _react2 = require("@emotion/react");
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
15
|
|
|
16
|
-
var ListGroupTitle =
|
|
16
|
+
var ListGroupTitle = function ListGroupTitle(_ref) {
|
|
17
17
|
var size = _ref.size,
|
|
18
18
|
content = _ref.content,
|
|
19
19
|
index = _ref.index,
|
|
@@ -24,12 +24,11 @@ var ListGroupTitle = /*#__PURE__*/_react["default"].forwardRef(function (_ref, r
|
|
|
24
24
|
size: size,
|
|
25
25
|
disabled: content.isDisabled
|
|
26
26
|
}),
|
|
27
|
-
ref: ref,
|
|
28
27
|
"data-testid": dataTestId != null ? dataTestId : 'ictinus_list' + ('_group_title_' + index)
|
|
29
28
|
}, (0, _react2.jsx)("div", {
|
|
30
29
|
css: (0, _ListGroupTitle.contentStyle)()
|
|
31
30
|
}, (0, _utils.renderContent)(content, searchTerm)));
|
|
32
|
-
}
|
|
31
|
+
};
|
|
33
32
|
|
|
34
33
|
ListGroupTitle.displayName = 'ListGroupTitle';
|
|
35
34
|
var _default = ListGroupTitle;
|
|
@@ -43,6 +43,7 @@ var NormalList = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref)
|
|
|
43
43
|
})
|
|
44
44
|
}, newItems.map(function (item, index) {
|
|
45
45
|
return item != null && item.options ? (0, _react2.jsx)(_ListItemGroup["default"], {
|
|
46
|
+
key: (0, _helpers.generateUniqueID)('list_item_group_' + index),
|
|
46
47
|
content: item,
|
|
47
48
|
size: rowSize,
|
|
48
49
|
groupIndex: index,
|