@agilant/toga-blox 1.0.178 → 1.0.179
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.
|
@@ -19,16 +19,16 @@ const TableCell = ({ cell, isLastCell, hasInfiniteScroll, expanded, onToggle, li
|
|
|
19
19
|
const stickyClass = isStickyColumn ? cell.column?.className || "" : "";
|
|
20
20
|
const baseTd = "relative overflow-hidden font-light text-sm text-left px-5";
|
|
21
21
|
const wrapper = "min-h-[40px] flex select-none" + (hasToggle ? " cursor-pointer" : "");
|
|
22
|
-
return (_jsx("td", { ...cell.getCellProps(
|
|
23
|
-
?
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
return (_jsx("td", { ...cell.getCellProps({
|
|
23
|
+
className: isLastCell ? "" : baseTd,
|
|
24
|
+
style: cell.column?.sticky === "left"
|
|
25
|
+
? {
|
|
26
26
|
position: "sticky",
|
|
27
|
-
left:
|
|
28
|
-
zIndex:
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
left: cell.column.style?.left || 0,
|
|
28
|
+
zIndex: 10,
|
|
29
|
+
}
|
|
30
|
+
: {},
|
|
31
|
+
}), className: isStickyColumn ? undefined : isLastCell ? "" : baseTd, children: _jsx("div", { ...(hasToggle ? { onClick: handleToggle } : {}), className: wrapper, children: hasToggle ? (!expanded ? (
|
|
32
32
|
/* collapsed view */
|
|
33
33
|
_jsx("div", { className: "flex items-center group", children: _jsxs("span", { children: [truncated, "\u2026", _jsx("span", { className: `hidden group-hover:inline ${linkText}`, children: "Show more" })] }) })) : (
|
|
34
34
|
/* expanded view */
|