@mailstep/design-system 0.7.9-beta.0 → 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
|
package/ui/index.es.js
CHANGED
|
@@ -37699,7 +37699,7 @@ const Zye = ({
|
|
|
37699
37699
|
setRowsPerPage: a
|
|
37700
37700
|
} = e, {
|
|
37701
37701
|
page: o
|
|
37702
|
-
} = t, s = t.rowsPerPage, l = Ve(() => r && r(n), [r, n]), u = Ve(() => l ? [...x3, {
|
|
37702
|
+
} = t, s = t.rowsPerPage || 10, l = Ve(() => r && r(n), [r, n]), u = Ve(() => l ? [...x3, {
|
|
37703
37703
|
value: l,
|
|
37704
37704
|
label: `auto (${l})`
|
|
37705
37705
|
}] : x3, [l]), f = pe((A) => {
|
package/ui/index.umd.js
CHANGED
|
@@ -2681,7 +2681,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2681
2681
|
@media (min-width: 1024px) {
|
|
2682
2682
|
margin-right: 8px;
|
|
2683
2683
|
}
|
|
2684
|
-
`,M5e=({gridActions:e,gridSelectors:t,getRowsPerPage:r,gridHeight:n,customPaginationHandler:i})=>{const{setRowsPerPage:a}=e,{page:o}=t,s=t.rowsPerPage,l=x.useMemo(()=>r&&r(n),[r,n]),u=x.useMemo(()=>l?[...rg,{value:l,label:`auto (${l})`}]:rg,[l]),f=x.useCallback(A=>{if(A&&"value"in A){let h=Number(A.value);a==null||a(h),i==null||i(o??1,h)}},[a,o,i]);return p.jsxs(P5e,{children:[p.jsx(T5e,{minWidth:"110px",children:p.jsx(g2,{name:"rowsPerPage",menuPlacement:"top",style:"gridFilter",placeholder:`${s}`,options:u,value:s,isDarkPlaceholderText:!0,onChange:f})}),p.jsx(Vp,{variant:"normal",mr:"20px",children:p.jsx(pt,{id:"dataGrid.resultsPerPage",message:"Results per page"})})]})};var z2={exports:{}};/**
|
|
2684
|
+
`,M5e=({gridActions:e,gridSelectors:t,getRowsPerPage:r,gridHeight:n,customPaginationHandler:i})=>{const{setRowsPerPage:a}=e,{page:o}=t,s=t.rowsPerPage||10,l=x.useMemo(()=>r&&r(n),[r,n]),u=x.useMemo(()=>l?[...rg,{value:l,label:`auto (${l})`}]:rg,[l]),f=x.useCallback(A=>{if(A&&"value"in A){let h=Number(A.value);a==null||a(h),i==null||i(o??1,h)}},[a,o,i]);return p.jsxs(P5e,{children:[p.jsx(T5e,{minWidth:"110px",children:p.jsx(g2,{name:"rowsPerPage",menuPlacement:"top",style:"gridFilter",placeholder:`${s}`,options:u,value:s,isDarkPlaceholderText:!0,onChange:f})}),p.jsx(Vp,{variant:"normal",mr:"20px",children:p.jsx(pt,{id:"dataGrid.resultsPerPage",message:"Results per page"})})]})};var z2={exports:{}};/**
|
|
2685
2685
|
* @license
|
|
2686
2686
|
* Lodash <https://lodash.com/>
|
|
2687
2687
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|