@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.d.cts CHANGED
@@ -6307,7 +6307,7 @@ type GridStyleDef = {
6307
6307
  allWhite?: boolean;
6308
6308
  /** Whether to apply a border around the whole table */
6309
6309
  bordered?: boolean;
6310
- /** Whether to show a hover effect on rows. Defaults to true */
6310
+ /** Whether to show a hover effect on clickable rows (those with rowLink/onClick). Defaults to true */
6311
6311
  rowHover?: boolean;
6312
6312
  /** Vertical alignment of body cell content (not headers). Defaults to `top` for flexible rows and `center` for fixed rows. */
6313
6313
  vAlign?: "top" | "center" | "bottom";
@@ -8308,6 +8308,8 @@ type ContentHeaderProps<X = ContentHeaderXss> = {
8308
8308
  aiMode?: boolean;
8309
8309
  /** Rendered before the title, e.g. a drag handle on `FormSectionChild`. */
8310
8310
  startAdornment?: ReactNode;
8311
+ /** Shows an info icon after the title with this tooltip content. */
8312
+ tooltip?: ReactNode;
8311
8313
  /** Style overrides for padding. */
8312
8314
  xss?: X;
8313
8315
  };
package/dist/index.d.ts CHANGED
@@ -6307,7 +6307,7 @@ type GridStyleDef = {
6307
6307
  allWhite?: boolean;
6308
6308
  /** Whether to apply a border around the whole table */
6309
6309
  bordered?: boolean;
6310
- /** Whether to show a hover effect on rows. Defaults to true */
6310
+ /** Whether to show a hover effect on clickable rows (those with rowLink/onClick). Defaults to true */
6311
6311
  rowHover?: boolean;
6312
6312
  /** Vertical alignment of body cell content (not headers). Defaults to `top` for flexible rows and `center` for fixed rows. */
6313
6313
  vAlign?: "top" | "center" | "bottom";
@@ -8308,6 +8308,8 @@ type ContentHeaderProps<X = ContentHeaderXss> = {
8308
8308
  aiMode?: boolean;
8309
8309
  /** Rendered before the title, e.g. a drag handle on `FormSectionChild`. */
8310
8310
  startAdornment?: ReactNode;
8311
+ /** Shows an info icon after the title with this tooltip content. */
8312
+ tooltip?: ReactNode;
8311
8313
  /** Style overrides for padding. */
8312
8314
  xss?: X;
8313
8315
  };
package/dist/index.js CHANGED
@@ -10222,7 +10222,8 @@ function RowImpl(props) {
10222
10222
  const rowStyle = rowStyles?.[row.kind];
10223
10223
  const RowTag = as === "table" ? "tr" : "div";
10224
10224
  const sortOn = tableState.sortConfig?.on;
10225
- const showRowHoverColor = !reservedRowKinds.includes(row.kind) && !omitRowHover && style.rowHoverColor !== "none";
10225
+ const hasRowAction = !!(rowStyle?.rowLink || rowStyle?.onClick);
10226
+ const showRowHoverColor = hasRowAction && !reservedRowKinds.includes(row.kind) && !omitRowHover && style.rowHoverColor !== "none";
10226
10227
  const rowStyleCellCss = maybeApplyFunction2(row, rowStyle?.cellCss);
10227
10228
  const levelStyle = style.levels && (typeof style.levels === "function" ? style.levels(level) : style.levels[level]);
10228
10229
  const levelIndent = levelStyle?.rowIndent;
@@ -10257,7 +10258,7 @@ function RowImpl(props) {
10257
10258
  },
10258
10259
  ...isLastBodyRow && style.lastRowCss,
10259
10260
  // Apply `cursorPointer` to the row if it has a link or `onClick` value.
10260
- ...(rowStyle?.rowLink || rowStyle?.onClick) && {
10261
+ ...hasRowAction && {
10261
10262
  cursor: "h_cur_pointer"
10262
10263
  },
10263
10264
  ...maybeApplyFunction2(row, rowStyle?.rowCss),
@@ -13840,7 +13841,9 @@ function GridTable(props) {
13840
13841
  const row = makeRow(rs, false, isFirstBodyRow && position !== "leading", isLastBodyRow && position !== "trailing", position === "trailing");
13841
13842
  const companionEl = resolved ? makeCompanionRow(rs, resolved, isFirstBodyRow && position === "leading", isLastBodyRow && position === "trailing") : void 0;
13842
13843
  const children = position === "leading" && companionEl ? [companionEl, row] : companionEl ? [row, companionEl] : row;
13843
- const showRowHover = !reservedRowKinds.includes(rs.kind) && !omitRowHover && style.rowHoverColor !== "none";
13844
+ const rowStyle = rowStyles?.[rs.row.kind];
13845
+ const hasRowAction = !!(rowStyle?.rowLink || rowStyle?.onClick);
13846
+ const showRowHover = hasRowAction && !reservedRowKinds.includes(rs.kind) && !omitRowHover && style.rowHoverColor !== "none";
13844
13847
  return /* @__PURE__ */ jsx51(RowGroup, { as, inHead, showRowHover, style, children }, rs.key);
13845
13848
  };
13846
13849
  const bodyRowStates = visibleRows.filter((rs) => !isHeadKind(rs.kind));
@@ -19500,6 +19503,7 @@ function ContentHeader(props) {
19500
19503
  level = 2,
19501
19504
  aiMode = false,
19502
19505
  startAdornment,
19506
+ tooltip,
19503
19507
  xss
19504
19508
  } = props;
19505
19509
  const tid = useTestIds(props, "contentHeader");
@@ -19554,7 +19558,8 @@ function ContentHeader(props) {
19554
19558
  /* @__PURE__ */ jsxs69("div", { className: "df aic jcsb mw0", children: [
19555
19559
  title ? /* @__PURE__ */ jsxs69("div", { className: "df aic g_1 mw0", children: [
19556
19560
  startAdornment,
19557
- /* @__PURE__ */ jsx110(Heading, { ...trussProps73(titleCss), ...tid.title, children: title })
19561
+ /* @__PURE__ */ jsx110(Heading, { ...trussProps73(titleCss), ...tid.title, children: title }),
19562
+ tooltip && /* @__PURE__ */ jsx110(Icon, { icon: "infoCircle", tooltip, inc: 2 })
19558
19563
  ] }) : descriptionEl,
19559
19564
  showActionsSlot && /* @__PURE__ */ jsxs69("div", { className: "df g_2 fs0", ...tid.actions, children: [
19560
19565
  withAutoSave && /* @__PURE__ */ jsx110(AutoSaveIndicator, {}),