@homebound/beam 3.55.1 → 3.55.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 +15 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -10
- package/dist/index.js.map +1 -1
- package/dist/truss.css +4 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8966,7 +8966,7 @@ function memoizedTableStyles() {
|
|
|
8966
8966
|
borderOnHover: highlightOnHover
|
|
8967
8967
|
},
|
|
8968
8968
|
levels: grouped ? groupedLevels : defaultLevels,
|
|
8969
|
-
rowHoverColor: "rgba(
|
|
8969
|
+
rowHoverColor: "rgba(247, 245, 245, 1)" /* Gray100 */,
|
|
8970
8970
|
keptGroupRowCss: {
|
|
8971
8971
|
backgroundColor: "bgYellow100",
|
|
8972
8972
|
color: "gray900",
|
|
@@ -9224,17 +9224,12 @@ function RowImpl(props) {
|
|
|
9224
9224
|
paddingBottom: "pb_25px"
|
|
9225
9225
|
}
|
|
9226
9226
|
};
|
|
9227
|
+
const rowHoverBg = style.rowHoverColor !== void 0 && style.rowHoverColor !== "none" ? style.rowHoverColor : "rgba(247, 245, 245, 1)" /* Gray100 */;
|
|
9227
9228
|
const rowCss = {
|
|
9228
9229
|
...!reservedRowKinds.includes(row.kind) && style.nonHeaderRowCss,
|
|
9229
9230
|
...isFirstBodyRow && style.firstBodyRowCss,
|
|
9230
9231
|
...isFirstHeadRow && style.firstRowCss,
|
|
9231
9232
|
...as === "table" && tableRowPrintBreakCss,
|
|
9232
|
-
// Optionally include the row hover styles, by default they should be turned on.
|
|
9233
|
-
...showRowHoverColor && {
|
|
9234
|
-
backgroundColor: ["h_bgColor_var", {
|
|
9235
|
-
"--h_backgroundColor": (0, import_runtime21.maybeCssVar)(style.rowHoverColor ?? "rgba(219, 234, 254, 1)" /* Blue100 */)
|
|
9236
|
-
}]
|
|
9237
|
-
},
|
|
9238
9233
|
...levelIndent && {
|
|
9239
9234
|
marginLeft: ["ml_var", {
|
|
9240
9235
|
"--marginLeft": `${levelIndent}px`
|
|
@@ -9252,7 +9247,14 @@ function RowImpl(props) {
|
|
|
9252
9247
|
...(rowStyle?.rowLink || rowStyle?.onClick) && {
|
|
9253
9248
|
cursor: "h_cursorPointer"
|
|
9254
9249
|
},
|
|
9255
|
-
...maybeApplyFunction(row, rowStyle?.rowCss)
|
|
9250
|
+
...maybeApplyFunction(row, rowStyle?.rowCss),
|
|
9251
|
+
// Row hover paints cells via Row.css.ts (`.beam-row-hover:hover > *`); set the var via Css.style
|
|
9252
|
+
// (React CSSProperties rejects custom props without a cast).
|
|
9253
|
+
...showRowHoverColor && {
|
|
9254
|
+
style_rowHoverBgVar_rowHoverBg: {
|
|
9255
|
+
[rowHoverBgVar]: rowHoverBg
|
|
9256
|
+
}
|
|
9257
|
+
}
|
|
9256
9258
|
// keptLastRowCss is now applied per-cell in cellCss below
|
|
9257
9259
|
};
|
|
9258
9260
|
let currentColspan = 1;
|
|
@@ -9263,7 +9265,7 @@ function RowImpl(props) {
|
|
|
9263
9265
|
const ref = (0, import_react31.useRef)(null);
|
|
9264
9266
|
const dragOverCallback = (0, import_react31.useCallback)((row2, evt) => onDragOver?.(row2, evt), [onDragOver]);
|
|
9265
9267
|
const onDragOverDebounced = (0, import_use_debounce2.useDebouncedCallback)(dragOverCallback, 100);
|
|
9266
|
-
const RowContent = () => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RowTag, { ...(0, import_runtime21.mergeProps)(BorderHoverParent
|
|
9268
|
+
const RowContent = () => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RowTag, { ...(0, import_runtime21.mergeProps)(`${BorderHoverParent} ${RowHoverClass}`, void 0, rowCss), ...others, "data-gridrow": true, ...getCount(row.id), ref, children: isKeptGroupRow ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(KeptGroupRow, { as, style, columnSizes, row, colSpan: columns.length, isLastBodyRow }) : columns.map((column2, columnIndex) => {
|
|
9267
9269
|
const maybeExpandedColumn = expandColumnHidden ? columns[columnIndex - 1] : column2;
|
|
9268
9270
|
const isExpanded = tableState.isExpandedColumn(maybeExpandedColumn.id);
|
|
9269
9271
|
if (column2.hideOnExpand && isExpanded) {
|
|
@@ -9466,10 +9468,13 @@ function RowImpl(props) {
|
|
|
9466
9468
|
var Row = (0, import_mobx_react.observer)(RowImpl);
|
|
9467
9469
|
var BorderHoverParent = "beam-bhp";
|
|
9468
9470
|
var BorderHoverChild = "beam-bhc";
|
|
9471
|
+
var RowHoverClass = "beam-row-hover";
|
|
9472
|
+
var rowHoverBgVar = "--beam-row-hover-bg";
|
|
9469
9473
|
|
|
9470
9474
|
// src/components/Table/components/Row.css.ts
|
|
9471
9475
|
var css = {
|
|
9472
|
-
".beam-bhp:hover:not(:has(.beam-bhc:hover)) .beam-bhc": Css.ba.bcBlue300
|
|
9476
|
+
".beam-bhp:hover:not(:has(.beam-bhc:hover)) .beam-bhc": Css.ba.bcBlue300.$,
|
|
9477
|
+
".beam-row-hover:hover > *": Css.bgColor("var(--beam-row-hover-bg)").$
|
|
9473
9478
|
};
|
|
9474
9479
|
|
|
9475
9480
|
// src/forms/labelUtils.ts
|