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.
package/dist/index.cjs CHANGED
@@ -4531,7 +4531,12 @@ var FileGridItem = function FileGridItem(props) {
4531
4531
  var FilesTableView = function FilesTableView(props) {
4532
4532
  var columns = props.columns,
4533
4533
  _props$files4 = props.files,
4534
- files = _props$files4 === void 0 ? [] : _props$files4;
4534
+ files = _props$files4 === void 0 ? [] : _props$files4,
4535
+ onSelect = props.onSelect;
4536
+ function select(row) {
4537
+ console.log(id);
4538
+ if (onSelect) onSelect(row.id);
4539
+ }
4535
4540
  var table = {
4536
4541
  columns: columns ? columns : [{
4537
4542
  id: "icon",
@@ -4547,7 +4552,9 @@ var FilesTableView = function FilesTableView(props) {
4547
4552
  };
4548
4553
  return /*#__PURE__*/React__default["default"].createElement("div", {
4549
4554
  className: "files-table"
4550
- }, /*#__PURE__*/React__default["default"].createElement(DataTable, table));
4555
+ }, /*#__PURE__*/React__default["default"].createElement(DataTable, _extends({}, table, {
4556
+ onRowSelection: select
4557
+ })));
4551
4558
  };
4552
4559
 
4553
4560
  /**