@nadicodeai/ui 12.1.104 → 12.1.105

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.
@@ -292,8 +292,10 @@ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPla
292
292
  }));
293
293
  // An entity row keeps its record on one 72 px row on a narrow card: the facts that leave the
294
294
  // row join the line under the name, which `RecordIdentity` draws, instead of a row of their own.
295
- const compactLine = entities && compactLayout && detailCells.length > 0 && shownLayout !== "columns"
296
- ? { layout: compactLayout, facts: detailFacts() }
295
+ // The line's provider stays in the tree when the card is wide enough for the columns and only
296
+ // its facts go, so a layout read after hydration never remounts the name a click is landing on.
297
+ const compactLine = entities && compactLayout && detailCells.length > 0
298
+ ? { layout: compactLayout, facts: shownLayout === "columns" ? [] : detailFacts() }
297
299
  : undefined;
298
300
  const detailRowShown = !entities && detailCells.length > 0 && shownLayout !== "columns";
299
301
  const menu = rowMenu?.(row.original);
@@ -320,7 +322,7 @@ function RecordsTable({ kind, columns, data, getRowId, filterColumnId, filterPla
320
322
  return _jsx(TableCell, { className: className }, cell.id);
321
323
  }
322
324
  const content = holdsCompactLine ? (_jsx(TableCompactLine, { ...compactLine, children: renderCell(cell) })) : (renderCell(cell));
323
- const titledWhenCut = cutByEllipsis || holdsCompactLine;
325
+ const titledWhenCut = cutByEllipsis || (holdsCompactLine && compactLine.facts.length > 0);
324
326
  return (_jsx(TableCell, { className: className, onFocus: titledWhenCut ? titleWhenCut : undefined, onPointerEnter: titledWhenCut ? titleWhenCut : undefined, children: isPrimaryLink
325
327
  ? renderRowLink(primaryRowLinkProps({ href, label, wraps, content }))
326
328
  : content }, cell.id));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.104",
3
+ "version": "12.1.105",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -80,7 +80,7 @@
80
80
  "@base-ui/react": "^1.9.0",
81
81
  "@iconify-icons/logos": "^2.0.2",
82
82
  "@iconify/react": "^6.0.2",
83
- "@nadicodeai/design-system": "12.1.104",
83
+ "@nadicodeai/design-system": "12.1.105",
84
84
  "@tanstack/react-table": "^9.2.8",
85
85
  "class-variance-authority": "^0.7.1",
86
86
  "clsx": "^2.1.1",