@trackunit/react-table 0.0.577 → 0.0.579
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/index.cjs.js +0 -2
- package/index.esm.js +0 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -325,8 +325,6 @@ const Table = ({ rowHeight = 75, ...props }) => {
|
|
|
325
325
|
onClick: header.column.getToggleSortingHandler(), children: [jsxRuntime.jsxs("span", { className: "overflow-hidden text-ellipsis whitespace-nowrap", children: [reactTable.flexRender(header.column.columnDef.header, header.getContext()), ((_e = header.column.columnDef.meta) === null || _e === void 0 ? void 0 : _e.subHeader) ? (jsxRuntime.jsx(reactComponents.Text, { size: "small", subtle: true, children: header.column.columnDef.meta.subHeader })) : null] }), header.column.getCanSort() ? (jsxRuntime.jsx(reactTableBaseComponents.SortIndicator, { sortingState: header.column.getIsSorted() })) : null] })), !((_f = header.column.columnDef.meta) === null || _f === void 0 ? void 0 : _f.shouldGrow) && header.column.getCanResize() ? (jsxRuntime.jsx(reactTableBaseComponents.ResizeHandle, { isResizing: header.column.getIsResizing(), onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler() })) : null] }, header.id));
|
|
326
326
|
}) }, headerGroup.id))) }), hasResults ? (jsxRuntime.jsx(reactTableBaseComponents.Tbody, { className: "text-sm font-normal", style: {
|
|
327
327
|
height: `${getTotalSize()}px`,
|
|
328
|
-
maxHeight: "0px",
|
|
329
|
-
minHeight: "40dvh",
|
|
330
328
|
flexGrow: 1,
|
|
331
329
|
}, children: getVirtualItems().map((virtualRow, index) => {
|
|
332
330
|
const row = props.getRowModel().rows[virtualRow.index];
|
package/index.esm.js
CHANGED
|
@@ -306,8 +306,6 @@ const Table = ({ rowHeight = 75, ...props }) => {
|
|
|
306
306
|
onClick: header.column.getToggleSortingHandler(), children: [jsxs("span", { className: "overflow-hidden text-ellipsis whitespace-nowrap", children: [flexRender(header.column.columnDef.header, header.getContext()), ((_e = header.column.columnDef.meta) === null || _e === void 0 ? void 0 : _e.subHeader) ? (jsx(Text, { size: "small", subtle: true, children: header.column.columnDef.meta.subHeader })) : null] }), header.column.getCanSort() ? (jsx(SortIndicator, { sortingState: header.column.getIsSorted() })) : null] })), !((_f = header.column.columnDef.meta) === null || _f === void 0 ? void 0 : _f.shouldGrow) && header.column.getCanResize() ? (jsx(ResizeHandle, { isResizing: header.column.getIsResizing(), onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler() })) : null] }, header.id));
|
|
307
307
|
}) }, headerGroup.id))) }), hasResults ? (jsx(Tbody, { className: "text-sm font-normal", style: {
|
|
308
308
|
height: `${getTotalSize()}px`,
|
|
309
|
-
maxHeight: "0px",
|
|
310
|
-
minHeight: "40dvh",
|
|
311
309
|
flexGrow: 1,
|
|
312
310
|
}, children: getVirtualItems().map((virtualRow, index) => {
|
|
313
311
|
const row = props.getRowModel().rows[virtualRow.index];
|