diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 86afe699..ecc232b5 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -50,7 +50,9 @@ var parse__default = /*#__PURE__*/_interopDefaultLegacy(parse); const Table = ({ columns, - data + data, + height, + width }) => { let rows = [...data]; rows = rows.map((row, i) => { @@ -58,6 +60,10 @@ const Table = ({ return row; }); return /*#__PURE__*/jsxRuntime.jsx("div", { + style: { + height, + width + }, "data-testid": "tableGrid", children: /*#__PURE__*/jsxRuntime.jsx(dataGrid.DataGrid, { rows: rows, diff --git a/dist/index.esm.js b/dist/index.esm.js index 444f6e0f..7dc189f5 100644 --- a/dist/index.esm.js +++ b/dist/index.esm.js @@ -14,7 +14,9 @@ import parse from 'html-react-parser'; const Table = ({ columns, - data + data, + height, + width }) => { let rows = [...data]; rows = rows.map((row, i) => { @@ -22,6 +24,10 @@ const Table = ({ return row; }); return /*#__PURE__*/jsx("div", { + style: { + height, + width + }, "data-testid": "tableGrid", children: /*#__PURE__*/jsx(DataGrid, { rows: rows,