ywana-core8 0.0.734 → 0.0.736

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.
@@ -664,6 +664,7 @@ var List = function List(props) {
664
664
  var _props$items = props.items,
665
665
  items = _props$items === void 0 ? [] : _props$items,
666
666
  children = props.children,
667
+ selected = props.selected,
667
668
  onSelect = props.onSelect,
668
669
  groupBy = props.groupBy;
669
670
 
@@ -679,6 +680,7 @@ var List = function List(props) {
679
680
  return /*#__PURE__*/React.createElement(ListItem, {
680
681
  key: item.id,
681
682
  item: item,
683
+ selected: selected,
682
684
  onSelect: select
683
685
  });
684
686
  })), children);
@@ -6148,15 +6150,19 @@ var CollectionList$1 = function CollectionList(props) {
6148
6150
  return {
6149
6151
  id: content.id,
6150
6152
  line1: content.name || content.centre || content.tag,
6151
- // centre: Signflow legacy
6153
+ // TODO: centres page Signflow legacy
6152
6154
  line2: content.description,
6155
+ grouper: content[groupBy],
6153
6156
  content: content
6154
6157
  };
6155
6158
  });
6156
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(List, {
6159
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("main", null, groupBy ? /*#__PURE__*/React.createElement(List, {
6157
6160
  items: items2,
6158
6161
  onSelect: select,
6159
- groupBy: groupBy
6162
+ groupBy: "grouper"
6163
+ }) : /*#__PURE__*/React.createElement(List, {
6164
+ items: items2,
6165
+ onSelect: select
6160
6166
  })), /*#__PURE__*/React.createElement("footer", null, /*#__PURE__*/React.createElement("div", {
6161
6167
  className: "search-box"
6162
6168
  }, /*#__PURE__*/React.createElement(TextField, {