@homebound/beam 4.14.0 → 4.14.2
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 +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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";
|
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";
|
package/dist/index.js
CHANGED
|
@@ -6831,7 +6831,7 @@ function getTableRefWidthStyles(isVirtual, inDocumentScrollLayout = false) {
|
|
|
6831
6831
|
if (inDocumentScrollLayout) {
|
|
6832
6832
|
return {
|
|
6833
6833
|
width: ["w_var", {
|
|
6834
|
-
"--width": maybeCssVar9(__maybeInc4(`min(100%, ${
|
|
6834
|
+
"--width": maybeCssVar9(__maybeInc4(`min(100%, ${documentScrollContentWidth()})`))
|
|
6835
6835
|
}],
|
|
6836
6836
|
minWidth: "mw0"
|
|
6837
6837
|
};
|
|
@@ -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
|
|
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
|
-
...
|
|
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
|
|
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));
|