ehscan-react-table 0.0.4 → 0.0.6

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.
@@ -43,8 +43,8 @@ export const Pagination = ({ totalItems, currentEntries, limit, skip, currentPag
43
43
  return null;
44
44
  return _jsxs("div", { className: styles.paginationend, children: [from, " - ", to, " / ", totalItems] });
45
45
  };
46
- return (_jsxs(_Fragment, { children: [_jsx("div", { className: styles.paginationwrapper, children: totalPages > 1 && (_jsxs(_Fragment, { children: [_jsx(PaginationButton, { index: 'prev', action: handlePrevious, display: totalPages > 2 && currentPage > 1 }), visiblePages.map((p, i) => {
47
- const isEllipsis = p === "...";
48
- return (_jsx(PaginationButton, { txt: p, isActive: p === currentPage, disabled: isEllipsis, action: isEllipsis ? undefined : () => handlePageClick(p) }, i));
49
- }), _jsx(PaginationButton, { index: 'next', action: handleNext, display: totalPages > 2 && currentPage !== totalPages })] })) }), _jsx(PaginationOutput, {})] }));
46
+ return (_jsx(_Fragment, { children: _jsxs("div", { className: styles.tablefooter, children: [_jsx("div", { className: styles.paginationwrapper, children: totalPages > 1 && (_jsxs(_Fragment, { children: [_jsx(PaginationButton, { index: 'prev', action: handlePrevious, display: totalPages > 2 && currentPage > 1 }), visiblePages.map((p, i) => {
47
+ const isEllipsis = p === "...";
48
+ return (_jsx(PaginationButton, { txt: p, isActive: p === currentPage, disabled: isEllipsis, action: isEllipsis ? undefined : () => handlePageClick(p) }, i));
49
+ }), _jsx(PaginationButton, { index: 'next', action: handleNext, display: totalPages > 2 && currentPage !== totalPages })] })) }), _jsx(PaginationOutput, {})] }) }));
50
50
  };
@@ -123,7 +123,7 @@ export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents,
123
123
  var _a;
124
124
  const type = (_a = col.type) !== null && _a !== void 0 ? _a : "def";
125
125
  const CellComponent = cellComponents[type];
126
- return (_jsx("td", { children: _jsx(CellComponent, { row: row, col: col.tag }) }, ci));
126
+ return (_jsx("td", { children: _jsx("div", { className: styles.exttablediv, children: _jsx(CellComponent, { row: row, col: col.tag }) }) }, ci));
127
127
  }), _jsx(EndCol, {})] }, `row-${rowIndex}`))) }, 'ext-tbody'));
128
128
  };
129
129
  return (_jsx(_Fragment, { children: _jsxs("div", { className: `${styles.tablewrapper} ${styles['_tbl']}`, style: { height: `calc(100vh - ${wrapperBottom}px)` }, children: [_jsxs("table", { className: styles.exttable, children: [_jsx("thead", { children: _jsx("tr", { className: styles.trstickyhead, children: _jsx(HeadCols, {}) }) }), rows && rows.length > 0 && _jsx(TableBody, {})] }), rows && rows.length === 0 && fallback()] }) }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ehscan-react-table",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "components",
5
5
  "main": "dist/Components.js",
6
6
  "types": "dist/Components.d.ts",