ywana-core8 0.0.544 → 0.0.545

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.
@@ -2153,14 +2153,17 @@ var TreeItem = function TreeItem(_ref3) {
2153
2153
  icon = _ref3$icon === void 0 ? 'description' : _ref3$icon,
2154
2154
  label = _ref3.label,
2155
2155
  actions = _ref3.actions,
2156
- onSelect = _ref3.onSelect;
2156
+ onSelect = _ref3.onSelect,
2157
+ _ref3$selected = _ref3.selected,
2158
+ selected = _ref3$selected === void 0 ? false : _ref3$selected;
2157
2159
 
2158
2160
  function select() {
2159
2161
  if (onSelect) onSelect(id);
2160
2162
  }
2161
2163
 
2164
+ var style = selected ? "selected" : "";
2162
2165
  return /*#__PURE__*/React.createElement("div", {
2163
- className: "tree-item final",
2166
+ className: "tree-item final " + style,
2164
2167
  onClick: select
2165
2168
  }, /*#__PURE__*/React.createElement(Icon, {
2166
2169
  icon: icon,
@@ -5432,7 +5435,8 @@ var CollectionTree = function CollectionTree(props) {
5432
5435
  key: item.id,
5433
5436
  id: item.id,
5434
5437
  label: item.name,
5435
- onSelect: select
5438
+ onSelect: select,
5439
+ selected: item.id === pageContext.selected
5436
5440
  }, "item");
5437
5441
  }));
5438
5442
  });