@agilant/toga-blox 1.0.221 → 1.0.222
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.
|
@@ -40,10 +40,9 @@ const TableCell = ({ cell, isLastCell, expanded, onToggle, maxCharacters = DEFAU
|
|
|
40
40
|
}, [needsToggle, onCellOverflow]);
|
|
41
41
|
return (_jsx("td", { ...safeCellProps, className: isStickyColumn ? undefined : isLastCell ? "" : baseTd, children: _jsx("div", { className: `${wrapper} group`, style: { maxWidth: `${cellMaxWidthWhenExpanded}ch` }, children: needsToggle ? (!expanded ? (_jsx(ToggleComponent, { expanded: expanded, onToggle: onToggle, truncated: truncated, fullText: fullText, className: additionalCellClassNames, linkTextClassNames: linkTextClassNames })) : (_jsxs("div", { className: "flex flex-col min-w-full", style: {
|
|
42
42
|
maxWidth: `${cellMaxWidthWhenExpanded}ch`,
|
|
43
|
-
}, children: [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
: expandedCellActionButton })] }), _jsx("span", { onClick: (e) => {
|
|
43
|
+
}, children: [_jsx("span", { className: `text-left pr-5 ${cellTextClassNames}`, children: fullText }), _jsx("div", { className: "opacity-0 group-hover:opacity-100 transition-opacity mt-1", children: typeof expandedCellActionButton === "function"
|
|
44
|
+
? expandedCellActionButton(fullText)
|
|
45
|
+
: expandedCellActionButton }), _jsx("span", { onClick: (e) => {
|
|
47
46
|
e.stopPropagation();
|
|
48
47
|
onToggle();
|
|
49
48
|
}, className: linkTextClassNames, children: "Show less" })] }))) : (cell.render("Cell")) }) }, cellKey));
|