@mailstep/design-system 0.7.4 → 0.7.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -26,7 +26,7 @@ var TablePagination = function (_a) {
26
26
  var rowsPerPageOptions = useMemo(function () {
27
27
  return rowsPerPageOptionValues.map(function (value) { return ({ value: value, label: value }); });
28
28
  }, []);
29
- return (_jsxs(Wrapper, { children: [_jsx(StyledSelect, { minWidth: "80px", children: _jsx(Select, { name: "rowsPerPage", menuPlacement: "auto", style: "gridFilter", placeholder: "".concat(gridSelectors.rowsPerPage), options: rowsPerPageOptions, value: gridSelectors.rowsPerPage, filterOption: filterRowsOption, isDarkPlaceholderText: true, onChange: onSetRowsPerPage }) }), _jsx(Paragraph4, { variant: "normal", mr: "20px", children: _jsx(Trans, { id: "dataGrid.resultsPerPage", message: "Results per page" }) })] }));
29
+ return (_jsxs(Wrapper, { children: [_jsx(StyledSelect, { minWidth: "80px", children: _jsx(Select, { name: "rowsPerPage", menuPlacement: "top", style: "gridFilter", placeholder: "".concat(gridSelectors.rowsPerPage), options: rowsPerPageOptions, value: gridSelectors.rowsPerPage, filterOption: filterRowsOption, isDarkPlaceholderText: true, onChange: onSetRowsPerPage }) }), _jsx(Paragraph4, { variant: "normal", mr: "20px", children: _jsx(Trans, { id: "dataGrid.resultsPerPage", message: "Results per page" }) })] }));
30
30
  };
31
31
  export default TablePagination;
32
32
  var templateObject_1, templateObject_2;
package/ui/index.es.js CHANGED
@@ -38172,7 +38172,7 @@ const d9e = ({
38172
38172
  label: s
38173
38173
  })), []);
38174
38174
  return /* @__PURE__ */ p.jsxs(g9e, { children: [
38175
- /* @__PURE__ */ p.jsx(v9e, { minWidth: "80px", children: /* @__PURE__ */ p.jsx(Sm, { name: "rowsPerPage", menuPlacement: "auto", style: "gridFilter", placeholder: `${t.rowsPerPage}`, options: o, value: t.rowsPerPage, filterOption: y9e, isDarkPlaceholderText: !0, onChange: a }) }),
38175
+ /* @__PURE__ */ p.jsx(v9e, { minWidth: "80px", children: /* @__PURE__ */ p.jsx(Sm, { name: "rowsPerPage", menuPlacement: "top", style: "gridFilter", placeholder: `${t.rowsPerPage}`, options: o, value: t.rowsPerPage, filterOption: y9e, isDarkPlaceholderText: !0, onChange: a }) }),
38176
38176
  /* @__PURE__ */ p.jsx(FO, { variant: "normal", mr: "20px", children: /* @__PURE__ */ p.jsx(wt, { id: "dataGrid.resultsPerPage", message: "Results per page" }) })
38177
38177
  ] });
38178
38178
  };
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
- `,K4e=[10,20,50,100],q4e="_label_",$4e=e=>e.value!==q4e,eve=({gridActions:e,gridSelectors:t,customPaginationHandler:r})=>{const{setRowsPerPage:n}=e,{page:i}=t,a=x.useCallback(s=>{s&&"value"in s&&(n==null||n(Number(s.value)),r==null||r(i??1,Number(s.value)))},[n,i,r]),o=x.useMemo(()=>K4e.map(s=>({value:s,label:s})),[]);return p.jsxs(X4e,{children:[p.jsx(Q4e,{minWidth:"80px",children:p.jsx(u2,{name:"rowsPerPage",menuPlacement:"auto",style:"gridFilter",placeholder:`${t.rowsPerPage}`,options:o,value:t.rowsPerPage,filterOption:$4e,isDarkPlaceholderText:!0,onChange:a})}),p.jsx(Kh,{variant:"normal",mr:"20px",children:p.jsx(vt,{id:"dataGrid.resultsPerPage",message:"Results per page"})})]})};var R2={exports:{}};/**
2684
+ `,K4e=[10,20,50,100],q4e="_label_",$4e=e=>e.value!==q4e,eve=({gridActions:e,gridSelectors:t,customPaginationHandler:r})=>{const{setRowsPerPage:n}=e,{page:i}=t,a=x.useCallback(s=>{s&&"value"in s&&(n==null||n(Number(s.value)),r==null||r(i??1,Number(s.value)))},[n,i,r]),o=x.useMemo(()=>K4e.map(s=>({value:s,label:s})),[]);return p.jsxs(X4e,{children:[p.jsx(Q4e,{minWidth:"80px",children:p.jsx(u2,{name:"rowsPerPage",menuPlacement:"top",style:"gridFilter",placeholder:`${t.rowsPerPage}`,options:o,value:t.rowsPerPage,filterOption:$4e,isDarkPlaceholderText:!0,onChange:a})}),p.jsx(Kh,{variant:"normal",mr:"20px",children:p.jsx(vt,{id:"dataGrid.resultsPerPage",message:"Results per page"})})]})};var R2={exports:{}};/**
2685
2685
  * @license
2686
2686
  * Lodash <https://lodash.com/>
2687
2687
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>