mautourco-components 0.2.67 → 0.2.68
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.
|
@@ -86,7 +86,9 @@ export function Table(props) {
|
|
|
86
86
|
'table__row-clickable': onClickRow,
|
|
87
87
|
'table__row-highlighted': row.isHighlighted,
|
|
88
88
|
}), onClick: function (e) { return onClickRow === null || onClickRow === void 0 ? void 0 : onClickRow(e, row, { parentIndex: rowIndex }); }, children: row.isHighlighted ? (_jsx("td", { colSpan: columns.length, className: "table__cell-highlighted", children: _jsx("div", { className: "table__row-div-highlighted", children: _jsx("table", { className: "table", children: _jsx("tbody", { children: _jsx("tr", { children: _jsx(TableCell, { columns: columns, row: row, rowIndex: rowIndex }) }) }) }) }) })) : (_jsx(TableCell, { columns: columns, row: row, rowIndex: rowIndex })) }));
|
|
89
|
-
return (_jsx(Fragment, { children: isGrouped ? (row.children && row.children.length > 0 ? (_jsx("tr", { className:
|
|
89
|
+
return (_jsx(Fragment, { children: isGrouped ? (row.children && row.children.length > 0 ? (_jsx("tr", { className: cn('table__row-grouped', row.className, {
|
|
90
|
+
'table__row-div-highlighted': row.isHighlighted,
|
|
91
|
+
}), children: _jsx("td", { colSpan: columns.length, children: _jsx(NestedContent, { isGrouped: isGrouped, rowIndex: rowIndex, columns: columns, children: row.children || [], onClickRow: onClickRow, parentIndex: rowIndex }) }) })) : (defaultTable)) : !row.children ? (defaultTable) : (_jsx("tr", { className: "table__row-with-children", children: _jsx("td", { colSpan: columns.length, className: cn({
|
|
90
92
|
'table__children--visible': hasVisibleChildren,
|
|
91
93
|
}), children: _jsx("div", { className: "table__children-wrapper", children: _jsx("table", { className: "table", children: _jsxs("tbody", { children: [defaultTable, _jsx(AnimatePresence, { initial: false, children: hasVisibleChildren && (_jsx("tr", { className: cn('table__no-hover', {
|
|
92
94
|
'table__row-nested': row.children && row.children.length > 0,
|
package/package.json
CHANGED
|
@@ -239,7 +239,10 @@ export function Table<T extends TableRowData<T>>(props: TableProps<T>) {
|
|
|
239
239
|
<Fragment key={`rw-${rowIndex}`}>
|
|
240
240
|
{isGrouped ? (
|
|
241
241
|
row.children && row.children.length > 0 ? (
|
|
242
|
-
<tr
|
|
242
|
+
<tr
|
|
243
|
+
className={cn('table__row-grouped', row.className, {
|
|
244
|
+
'table__row-div-highlighted': row.isHighlighted,
|
|
245
|
+
})}>
|
|
243
246
|
<td colSpan={columns.length}>
|
|
244
247
|
<NestedContent<T>
|
|
245
248
|
isGrouped={isGrouped}
|