@bento-core/table 1.0.0-c3dc.10 → 1.0.0-c3dc.11

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.
@@ -25,7 +25,8 @@ const ActionHeaderCell = _ref => {
25
25
  return /*#__PURE__*/_react.default.createElement(_CheckBoxView.default, {
26
26
  includeSelectedIds: includeSelectedIds,
27
27
  toggleSelectAll: toggleSelectAll,
28
- Ids: Ids
28
+ Ids: Ids,
29
+ rows: rows
29
30
  });
30
31
  }
31
32
  if (_Types.cellTypes.DELETE === cellType) {
@@ -17,7 +17,8 @@ const CheckboxView = _ref => {
17
17
  let {
18
18
  includeSelectedIds,
19
19
  toggleSelectAll,
20
- Ids
20
+ Ids,
21
+ rows
21
22
  } = _ref;
22
23
  return /*#__PURE__*/_react.default.createElement(_core.TableCell, {
23
24
  padding: "checkbox"
@@ -29,7 +30,7 @@ const CheckboxView = _ref => {
29
30
  color: "primary",
30
31
  indeterminate: includeSelectedIds,
31
32
  checked: includeSelectedIds,
32
- onChange: event => toggleSelectAll(event, Ids, includeSelectedIds)
33
+ onChange: event => toggleSelectAll(event, Ids, includeSelectedIds, rows)
33
34
  })));
34
35
  };
35
36
  var _default = CheckboxView;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/table",
3
- "version": "1.0.0-c3dc.10",
3
+ "version": "1.0.0-c3dc.11",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
@@ -19,6 +19,7 @@ const ActionHeaderCell = ({
19
19
  includeSelectedIds={includeSelectedIds}
20
20
  toggleSelectAll={toggleSelectAll}
21
21
  Ids={Ids}
22
+ rows={rows}
22
23
  />
23
24
  );
24
25
  }
@@ -10,6 +10,7 @@ const CheckboxView = ({
10
10
  includeSelectedIds,
11
11
  toggleSelectAll,
12
12
  Ids,
13
+ rows,
13
14
  }) => (
14
15
  <TableCell padding="checkbox">
15
16
  <span style={{ display: 'none' }}>Select all</span>
@@ -18,7 +19,7 @@ const CheckboxView = ({
18
19
  color="primary"
19
20
  indeterminate={includeSelectedIds}
20
21
  checked={includeSelectedIds}
21
- onChange={(event) => toggleSelectAll(event, Ids, includeSelectedIds)}
22
+ onChange={(event) => toggleSelectAll(event, Ids, includeSelectedIds, rows)}
22
23
  />
23
24
  </TableCell>
24
25
  );