ywana-core8 0.0.896 → 0.0.897

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.
@@ -4522,7 +4522,12 @@ var FileGridItem = function FileGridItem(props) {
4522
4522
  var FilesTableView = function FilesTableView(props) {
4523
4523
  var columns = props.columns,
4524
4524
  _props$files4 = props.files,
4525
- files = _props$files4 === void 0 ? [] : _props$files4;
4525
+ files = _props$files4 === void 0 ? [] : _props$files4,
4526
+ onSelect = props.onSelect;
4527
+ function select(row) {
4528
+ console.log(id);
4529
+ if (onSelect) onSelect(row.id);
4530
+ }
4526
4531
  var table = {
4527
4532
  columns: columns ? columns : [{
4528
4533
  id: "icon",
@@ -4538,7 +4543,9 @@ var FilesTableView = function FilesTableView(props) {
4538
4543
  };
4539
4544
  return /*#__PURE__*/React.createElement("div", {
4540
4545
  className: "files-table"
4541
- }, /*#__PURE__*/React.createElement(DataTable, table));
4546
+ }, /*#__PURE__*/React.createElement(DataTable, _extends({}, table, {
4547
+ onRowSelection: select
4548
+ })));
4542
4549
  };
4543
4550
 
4544
4551
  /**