@symply.io/basic-components 1.1.2-beta.14 → 1.1.2-beta.16
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 +1 -6
- 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
@@ -17,12 +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 && (_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 })) })));
|
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 })) })));
|
26
21
|
}
|
27
22
|
export default Pagination;
|
28
23
|
export * from "./types";
|