@symply.io/basic-components 1.1.2-beta.13 → 1.1.2-beta.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.
- package/TablePagination/index.js +6 -8
- package/package.json +1 -1
package/TablePagination/index.js
CHANGED
@@ -10,8 +10,6 @@ var __assign = (this && this.__assign) || function () {
|
|
10
10
|
return __assign.apply(this, arguments);
|
11
11
|
};
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
-
import TableRow from "@mui/material/TableRow";
|
14
|
-
import TableFooter from "@mui/material/TableFooter";
|
15
13
|
import TablePagination from "@mui/material/TablePagination";
|
16
14
|
import ThemeProvider from "@mui/material/styles/ThemeProvider";
|
17
15
|
import TablePaginationActions from "./Actions";
|
@@ -19,12 +17,12 @@ import useCustomTheme from "../useCustomTheme";
|
|
19
17
|
function Pagination(props) {
|
20
18
|
var colSpan = props.colSpan, count = props.count, page = props.page, rowsPerPage = props.rowsPerPage, _a = props.rowsPerPageOptions, rowsPerPageOptions = _a === void 0 ? [5, 10, 20, 30] : _a, onPageChange = props.onPageChange, onRowsPerPageChange = props.onRowsPerPageChange, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor;
|
21
19
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
22
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: count && (_jsx(
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
20
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: count && (_jsx(TablePagination, { colSpan: colSpan, count: count, rowsPerPage: rowsPerPage, page: page, SelectProps: {
|
21
|
+
inputProps: {
|
22
|
+
"aria-label": "rows per page"
|
23
|
+
},
|
24
|
+
native: true
|
25
|
+
}, rowsPerPageOptions: rowsPerPageOptions, onPageChange: onPageChange, onRowsPerPageChange: onRowsPerPageChange, ActionsComponent: TablePaginationActions })) })));
|
28
26
|
}
|
29
27
|
export default Pagination;
|
30
28
|
export * from "./types";
|