@agilant/toga-blox 1.0.188 → 1.0.190

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.
@@ -39,10 +39,6 @@ const TableRow = ({ row, prepareRow, activeIndex, activeRowColor = "bg-pink-100"
39
39
  const { key: _ignoredKey, ...safeRowProps } = row.getRowProps
40
40
  ? row.getRowProps()
41
41
  : {};
42
- console.log("🚀 row.getRowProps():", safeRowProps);
43
- console.log("🔑 Extracted key:", _ignoredKey);
44
- console.log("✅ safeRowProps:", safeRowProps);
45
- console.log("🔍 safeRowProps keys:", Object.keys(safeRowProps));
46
42
  return (_jsxs(Fragment, { children: [_jsx("tr", { "data-testid": "table-row", className: `border-b border-b-navy-200 ${rowHoverClasses} ${rowClasses} ${rowClassNames}`, onClick: handleRowClick, ...safeRowProps, children: row.cells.map((cell, idx) => {
47
43
  const cellKey = `${rowUuid ?? "no-uuid"}-${cell.column.id}`;
48
44
  return (_jsx(TableCell, { cell: cell, isLastCell: idx === row.cells.length - 1, hasInfiniteScroll: hasInfiniteScroll, rowUuid: rowUuid, expanded: expandedCells[cellKey] ?? false, onToggle: () => toggleCell(cellKey), linkText: linkText }, cellKey));
@@ -73,7 +73,7 @@ export function baseFormatTableData(columnTitles, accessors, columnConfigs, rend
73
73
  * Helper to wrap content in a <div> or <a> if `linkClasses` exist
74
74
  */
75
75
  function wrapContent(config, value, content, position) {
76
- return (_jsx("div", { style: { display: "flex", alignItems: "center" }, className: "flex w-full", children: config.linkClasses ? (_jsxs("a", { href: "#", className: `flex ${config.linkClasses}`, onClick: (e) => e.stopPropagation(), children: [position === "left" && content, typeof value === "string" ? _jsx("p", { children: value }) : value, position === "right" && content] })) : (_jsxs(_Fragment, { children: [position === "left" && content, typeof value === "string" ? _jsx("p", { children: value }) : value, position === "right" && content] })) }));
76
+ return (_jsx("div", { style: { display: "flex", alignItems: "center" }, className: "flex w-full", children: config.linkClasses ? (_jsxs("a", { href: "#", className: `flex ${config.linkClasses}`, onClick: (e) => e.stopPropagation(), children: [position === "left" && content, typeof value === "string" ? (_jsx("span", { children: value })) : (value), position === "right" && content] })) : (_jsxs(_Fragment, { children: [position === "left" && content, typeof value === "string" ? (_jsx("span", { children: value })) : (value), position === "right" && content] })) }));
77
77
  }
78
78
  // ----------------------------------------------------------------------
79
79
  // Build final columns from columnTitles + configs
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agilant/toga-blox",
3
3
  "private": false,
4
- "version": "1.0.188",
4
+ "version": "1.0.190",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",