@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(isStickyColumn
23
- ? {
24
- className: stickyClass,
25
- style: {
22
+ return (_jsx("td", { ...cell.getCellProps({
23
+ className: isLastCell ? "" : baseTd,
24
+ style: cell.column?.sticky === "left"
25
+ ? {
26
26
  position: "sticky",
27
- left: stickyLeft,
28
- zIndex: 50,
29
- },
30
- }
31
- : {}), className: isStickyColumn ? undefined : isLastCell ? "" : baseTd, children: _jsx("div", { ...(hasToggle ? { onClick: handleToggle } : {}), className: wrapper, children: hasToggle ? (!expanded ? (
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 */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agilant/toga-blox",
3
3
  "private": false,
4
- "version": "1.0.178",
4
+ "version": "1.0.179",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",