@homebound/beam 4.14.0 → 4.14.1

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.
package/dist/index.cjs CHANGED
@@ -10699,7 +10699,8 @@ function RowImpl(props) {
10699
10699
  const rowStyle = rowStyles?.[row.kind];
10700
10700
  const RowTag = as === "table" ? "tr" : "div";
10701
10701
  const sortOn = tableState.sortConfig?.on;
10702
- const showRowHoverColor = !reservedRowKinds.includes(row.kind) && !omitRowHover && style.rowHoverColor !== "none";
10702
+ const hasRowAction = !!(rowStyle?.rowLink || rowStyle?.onClick);
10703
+ const showRowHoverColor = hasRowAction && !reservedRowKinds.includes(row.kind) && !omitRowHover && style.rowHoverColor !== "none";
10703
10704
  const rowStyleCellCss = maybeApplyFunction2(row, rowStyle?.cellCss);
10704
10705
  const levelStyle = style.levels && (typeof style.levels === "function" ? style.levels(level) : style.levels[level]);
10705
10706
  const levelIndent = levelStyle?.rowIndent;
@@ -10734,7 +10735,7 @@ function RowImpl(props) {
10734
10735
  },
10735
10736
  ...isLastBodyRow && style.lastRowCss,
10736
10737
  // Apply `cursorPointer` to the row if it has a link or `onClick` value.
10737
- ...(rowStyle?.rowLink || rowStyle?.onClick) && {
10738
+ ...hasRowAction && {
10738
10739
  cursor: "h_cur_pointer"
10739
10740
  },
10740
10741
  ...maybeApplyFunction2(row, rowStyle?.rowCss),
@@ -14317,7 +14318,9 @@ function GridTable(props) {
14317
14318
  const row = makeRow(rs, false, isFirstBodyRow && position !== "leading", isLastBodyRow && position !== "trailing", position === "trailing");
14318
14319
  const companionEl = resolved ? makeCompanionRow(rs, resolved, isFirstBodyRow && position === "leading", isLastBodyRow && position === "trailing") : void 0;
14319
14320
  const children = position === "leading" && companionEl ? [companionEl, row] : companionEl ? [row, companionEl] : row;
14320
- const showRowHover = !reservedRowKinds.includes(rs.kind) && !omitRowHover && style.rowHoverColor !== "none";
14321
+ const rowStyle = rowStyles?.[rs.row.kind];
14322
+ const hasRowAction = !!(rowStyle?.rowLink || rowStyle?.onClick);
14323
+ const showRowHover = hasRowAction && !reservedRowKinds.includes(rs.kind) && !omitRowHover && style.rowHoverColor !== "none";
14321
14324
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(RowGroup, { as, inHead, showRowHover, style, children }, rs.key);
14322
14325
  };
14323
14326
  const bodyRowStates = visibleRows.filter((rs) => !isHeadKind(rs.kind));