@bento-core/table 1.0.1-ccdihub.12 → 1.0.1-ccdihub.13

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.
@@ -53,10 +53,6 @@ const CustomPagination = _ref => {
53
53
  theme: (0, _core.createTheme)({
54
54
  overrides: _objectSpread(_objectSpread({}, defaultTheme), customTheme)
55
55
  })
56
- }, /*#__PURE__*/_react.default.createElement("div", {
57
- style: {
58
- display: 'flex'
59
- }
60
56
  }, /*#__PURE__*/_react.default.createElement(_core.TablePagination, {
61
57
  rowsPerPageOptions: rowsPerPageOptions,
62
58
  component: "div",
@@ -71,7 +67,9 @@ const CustomPagination = _ref => {
71
67
  },
72
68
  native: true
73
69
  }
74
- }), /*#__PURE__*/_react.default.createElement(_core.IconButton, null, /*#__PURE__*/_react.default.createElement(_icons.CloudDownload, null))));
70
+ }), /*#__PURE__*/_react.default.createElement(_core.Tooltip, {
71
+ title: "Download filtered results as a CSV"
72
+ }, /*#__PURE__*/_react.default.createElement(_core.IconButton, null, /*#__PURE__*/_react.default.createElement(_icons.CloudDownload, null))));
75
73
  };
76
74
  CustomPagination.propTypes = {
77
75
  rowsPerPageOptions: _propTypes.default.arrayOf(_propTypes.default.number).isRequired,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/table",
3
- "version": "1.0.1-ccdihub.12",
3
+ "version": "1.0.1-ccdihub.13",
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",
@@ -5,6 +5,7 @@ import {
5
5
  TablePagination,
6
6
  ThemeProvider,
7
7
  IconButton,
8
+ Tooltip,
8
9
  } from '@material-ui/core';
9
10
  import { CloudDownload } from '@material-ui/icons';
10
11
 
@@ -44,24 +45,24 @@ const CustomPagination = ({
44
45
  customTheme = {},
45
46
  }) => (
46
47
  <ThemeProvider theme={createTheme({ overrides: { ...defaultTheme, ...customTheme } })}>
47
- <div style={{ display: 'flex' }}>
48
- <TablePagination
49
- rowsPerPageOptions={rowsPerPageOptions}
50
- component="div"
51
- count={count}
52
- rowsPerPage={rowsPerPage}
53
- page={page}
54
- onPageChange={onPageChange}
55
- onRowsPerPageChange={onRowsPerPageChange}
56
- SelectProps={{
57
- inputProps: { 'aria-label': 'Selection dropdown for displaying the number of results per page' },
58
- native: true,
59
- }}
60
- />
48
+ <TablePagination
49
+ rowsPerPageOptions={rowsPerPageOptions}
50
+ component="div"
51
+ count={count}
52
+ rowsPerPage={rowsPerPage}
53
+ page={page}
54
+ onPageChange={onPageChange}
55
+ onRowsPerPageChange={onRowsPerPageChange}
56
+ SelectProps={{
57
+ inputProps: { 'aria-label': 'Selection dropdown for displaying the number of results per page' },
58
+ native: true,
59
+ }}
60
+ />
61
+ <Tooltip title="Download filtered results as a CSV">
61
62
  <IconButton>
62
63
  <CloudDownload />
63
64
  </IconButton>
64
- </div>
65
+ </Tooltip>
65
66
  </ThemeProvider>
66
67
  );
67
68