@homebound/beam 4.13.1 → 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));
@@ -19971,6 +19974,7 @@ function ContentHeader(props) {
19971
19974
  level = 2,
19972
19975
  aiMode = false,
19973
19976
  startAdornment,
19977
+ tooltip,
19974
19978
  xss
19975
19979
  } = props;
19976
19980
  const tid = useTestIds(props, "contentHeader");
@@ -20025,7 +20029,8 @@ function ContentHeader(props) {
20025
20029
  /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "df aic jcsb mw0", children: [
20026
20030
  title ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "df aic g_1 mw0", children: [
20027
20031
  startAdornment,
20028
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Heading, { ...(0, import_runtime83.trussProps)(titleCss), ...tid.title, children: title })
20032
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Heading, { ...(0, import_runtime83.trussProps)(titleCss), ...tid.title, children: title }),
20033
+ tooltip && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Icon, { icon: "infoCircle", tooltip, inc: 2 })
20029
20034
  ] }) : descriptionEl,
20030
20035
  showActionsSlot && /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "df g_2 fs0", ...tid.actions, children: [
20031
20036
  withAutoSave && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(AutoSaveIndicator, {}),