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

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,6 +53,11 @@ 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
+ marginLeft: 'auto'
60
+ }
56
61
  }, /*#__PURE__*/_react.default.createElement(_core.TablePagination, {
57
62
  rowsPerPageOptions: rowsPerPageOptions,
58
63
  component: "div",
@@ -69,7 +74,7 @@ const CustomPagination = _ref => {
69
74
  }
70
75
  }), /*#__PURE__*/_react.default.createElement(_core.Tooltip, {
71
76
  title: "Download filtered results as a CSV"
72
- }, /*#__PURE__*/_react.default.createElement(_core.IconButton, null, /*#__PURE__*/_react.default.createElement(_icons.CloudDownload, null))));
77
+ }, /*#__PURE__*/_react.default.createElement(_core.IconButton, null, /*#__PURE__*/_react.default.createElement(_icons.CloudDownload, null)))));
73
78
  };
74
79
  CustomPagination.propTypes = {
75
80
  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.13",
3
+ "version": "1.0.1-ccdihub.14",
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",
@@ -45,24 +45,26 @@ const CustomPagination = ({
45
45
  customTheme = {},
46
46
  }) => (
47
47
  <ThemeProvider theme={createTheme({ overrides: { ...defaultTheme, ...customTheme } })}>
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">
62
- <IconButton>
63
- <CloudDownload />
64
- </IconButton>
65
- </Tooltip>
48
+ <div style={{ display: 'flex', marginLeft: 'auto' }}>
49
+ <TablePagination
50
+ rowsPerPageOptions={rowsPerPageOptions}
51
+ component="div"
52
+ count={count}
53
+ rowsPerPage={rowsPerPage}
54
+ page={page}
55
+ onPageChange={onPageChange}
56
+ onRowsPerPageChange={onRowsPerPageChange}
57
+ SelectProps={{
58
+ inputProps: { 'aria-label': 'Selection dropdown for displaying the number of results per page' },
59
+ native: true,
60
+ }}
61
+ />
62
+ <Tooltip title="Download filtered results as a CSV">
63
+ <IconButton>
64
+ <CloudDownload />
65
+ </IconButton>
66
+ </Tooltip>
67
+ </div>
66
68
  </ThemeProvider>
67
69
  );
68
70