@mailstep/design-system 0.7.8 → 0.7.9-beta.1
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/package.json
CHANGED
|
@@ -24,7 +24,7 @@ var TablePagination = function (_a) {
|
|
|
24
24
|
var gridActions = _a.gridActions, gridSelectors = _a.gridSelectors, getRowsPerPage = _a.getRowsPerPage, gridHeight = _a.gridHeight, customPaginationHandler = _a.customPaginationHandler;
|
|
25
25
|
var setRowsPerPage = gridActions.setRowsPerPage;
|
|
26
26
|
var page = gridSelectors.page;
|
|
27
|
-
var rowsPerPage = gridSelectors.rowsPerPage;
|
|
27
|
+
var rowsPerPage = gridSelectors.rowsPerPage || 10;
|
|
28
28
|
var rowsPerPageAuto = useMemo(function () { return getRowsPerPage && getRowsPerPage(gridHeight); }, [getRowsPerPage, gridHeight]);
|
|
29
29
|
var options = useMemo(function () {
|
|
30
30
|
return rowsPerPageAuto
|
|
@@ -189,7 +189,7 @@ export type UxState = {
|
|
|
189
189
|
export type ColumnLayout = 'normal' | 'no-scroll' | 'sticky';
|
|
190
190
|
export type GridState = {
|
|
191
191
|
page: number;
|
|
192
|
-
rowsPerPage
|
|
192
|
+
rowsPerPage?: number;
|
|
193
193
|
filter: Settings['filter'];
|
|
194
194
|
sorting: Settings['sorting'];
|
|
195
195
|
defaultSorting: Settings['sorting'];
|