@symply.io/basic-components 1.1.2-beta.15 → 1.1.2-beta.17
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/DataTable/index.js +1 -1
- package/TablePagination/index.js +2 -2
- package/package.json +1 -1
package/DataTable/index.js
CHANGED
@@ -32,7 +32,7 @@ function DataTable(props) {
|
|
32
32
|
var clientWidth = target.clientWidth;
|
33
33
|
var hasScrollBar = scrollWidth > clientWidth;
|
34
34
|
setLeftShadowVisible(hasScrollBar && scrollLeft > 0);
|
35
|
-
setRightShadowVisible(hasScrollBar && scrollWidth - scrollLeft > clientWidth);
|
35
|
+
setRightShadowVisible(hasScrollBar && scrollWidth - scrollLeft > clientWidth + 1);
|
36
36
|
}
|
37
37
|
}, []);
|
38
38
|
useEffect(function () {
|
package/TablePagination/index.js
CHANGED
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
9
9
|
};
|
10
10
|
return __assign.apply(this, arguments);
|
11
11
|
};
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
13
13
|
import TablePagination from "@mui/material/TablePagination";
|
14
14
|
import ThemeProvider from "@mui/material/styles/ThemeProvider";
|
15
15
|
import TablePaginationActions from "./Actions";
|
@@ -17,7 +17,7 @@ import useCustomTheme from "../useCustomTheme";
|
|
17
17
|
function Pagination(props) {
|
18
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;
|
19
19
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
20
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: count
|
20
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: count ? (_jsx(TablePagination, { component: "div", colSpan: colSpan, count: count, rowsPerPage: rowsPerPage, page: page, SelectProps: { native: true }, rowsPerPageOptions: rowsPerPageOptions, onPageChange: onPageChange, onRowsPerPageChange: onRowsPerPageChange, ActionsComponent: TablePaginationActions })) : (_jsx(_Fragment, {})) })));
|
21
21
|
}
|
22
22
|
export default Pagination;
|
23
23
|
export * from "./types";
|