[Portaljs][s]: Build latest component dist
This commit is contained in:
8
dist/index.cjs.js
vendored
8
dist/index.cjs.js
vendored
@@ -50,7 +50,9 @@ var parse__default = /*#__PURE__*/_interopDefaultLegacy(parse);
|
|||||||
|
|
||||||
const Table = ({
|
const Table = ({
|
||||||
columns,
|
columns,
|
||||||
data
|
data,
|
||||||
|
height,
|
||||||
|
width
|
||||||
}) => {
|
}) => {
|
||||||
let rows = [...data];
|
let rows = [...data];
|
||||||
rows = rows.map((row, i) => {
|
rows = rows.map((row, i) => {
|
||||||
@@ -58,6 +60,10 @@ const Table = ({
|
|||||||
return row;
|
return row;
|
||||||
});
|
});
|
||||||
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
||||||
|
style: {
|
||||||
|
height,
|
||||||
|
width
|
||||||
|
},
|
||||||
"data-testid": "tableGrid",
|
"data-testid": "tableGrid",
|
||||||
children: /*#__PURE__*/jsxRuntime.jsx(dataGrid.DataGrid, {
|
children: /*#__PURE__*/jsxRuntime.jsx(dataGrid.DataGrid, {
|
||||||
rows: rows,
|
rows: rows,
|
||||||
|
|||||||
8
dist/index.esm.js
vendored
8
dist/index.esm.js
vendored
@@ -14,7 +14,9 @@ import parse from 'html-react-parser';
|
|||||||
|
|
||||||
const Table = ({
|
const Table = ({
|
||||||
columns,
|
columns,
|
||||||
data
|
data,
|
||||||
|
height,
|
||||||
|
width
|
||||||
}) => {
|
}) => {
|
||||||
let rows = [...data];
|
let rows = [...data];
|
||||||
rows = rows.map((row, i) => {
|
rows = rows.map((row, i) => {
|
||||||
@@ -22,6 +24,10 @@ const Table = ({
|
|||||||
return row;
|
return row;
|
||||||
});
|
});
|
||||||
return /*#__PURE__*/jsx("div", {
|
return /*#__PURE__*/jsx("div", {
|
||||||
|
style: {
|
||||||
|
height,
|
||||||
|
width
|
||||||
|
},
|
||||||
"data-testid": "tableGrid",
|
"data-testid": "tableGrid",
|
||||||
children: /*#__PURE__*/jsx(DataGrid, {
|
children: /*#__PURE__*/jsx(DataGrid, {
|
||||||
rows: rows,
|
rows: rows,
|
||||||
|
|||||||
Reference in New Issue
Block a user