@homebound/beam 4.13.0 → 4.14.0
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 +26 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +26 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -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
|
@@ -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
|
@@ -13916,23 +13916,32 @@ function GridTable(props) {
|
|
|
13916
13916
|
}
|
|
13917
13917
|
return /* @__PURE__ */ jsx51(TableStateContext.Provider, { value: rowStateContext, children: /* @__PURE__ */ jsxs33(PresentationProvider, { fieldProps, wrap: style?.presentationSettings?.wrap, children: [
|
|
13918
13918
|
/* @__PURE__ */ jsx51("div", { ref: resizeRef, ...trussProps33(getTableRefWidthStyles(as === "virtual", inDocumentScrollLayout)), ...tid.probe }),
|
|
13919
|
-
loading && /* @__PURE__ */ jsx51("div", { ...trussProps33({
|
|
13920
|
-
position: "fixed",
|
|
13921
|
-
top: "top0",
|
|
13922
|
-
right: "r_0",
|
|
13923
|
-
bottom: "bot_0",
|
|
13924
|
-
left: "l_0",
|
|
13925
|
-
display: "df",
|
|
13926
|
-
alignItems: "aic",
|
|
13927
|
-
justifyContent: "jcc",
|
|
13928
|
-
pointerEvents: "pen",
|
|
13929
|
-
zIndex: ["z_var", {
|
|
13930
|
-
"--zIndex": maybeCssVar22(zIndices.tableLoadingOverlay)
|
|
13931
|
-
}]
|
|
13932
|
-
}), ...tid.loadingOverlay, children: /* @__PURE__ */ jsx51(Loader, { ...tid.loadingSpinner }) }),
|
|
13919
|
+
loading && /* @__PURE__ */ jsx51("div", { ...trussProps33(loadingOverlayCss), ...tid.loadingOverlay, children: /* @__PURE__ */ jsx51(Loader, { ...tid.loadingSpinner }) }),
|
|
13933
13920
|
as === "card" ? /* @__PURE__ */ jsx51(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition, loading }) : _as === "virtual" ? /* @__PURE__ */ jsx51(VirtualGridTableView, { style: tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, persistScrollPosition, loading }) : renders[_as](tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, loading, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
13934
13921
|
] }) });
|
|
13935
13922
|
}
|
|
13923
|
+
var loadingOverlayCss = {
|
|
13924
|
+
position: "fixed",
|
|
13925
|
+
top: ["top_var", {
|
|
13926
|
+
"--top": maybeCssVar22(__maybeInc12(stickyTableHeaderOffset()))
|
|
13927
|
+
}],
|
|
13928
|
+
bottom: ["bottom_var", {
|
|
13929
|
+
"--bottom": maybeCssVar22(__maybeInc12(getFloatingBottomOffset()))
|
|
13930
|
+
}],
|
|
13931
|
+
left: ["left_var", {
|
|
13932
|
+
"--left": maybeCssVar22(__maybeInc12(documentScrollChromeLeft()))
|
|
13933
|
+
}],
|
|
13934
|
+
width: ["w_var", {
|
|
13935
|
+
"--width": maybeCssVar22(__maybeInc12(`calc(${documentScrollChromeWidth()} - var(${beamRightPaneWidthVar}, 0px))`))
|
|
13936
|
+
}],
|
|
13937
|
+
display: "df",
|
|
13938
|
+
alignItems: "aic",
|
|
13939
|
+
justifyContent: "jcc",
|
|
13940
|
+
pointerEvents: "pen",
|
|
13941
|
+
zIndex: ["z_var", {
|
|
13942
|
+
"--zIndex": maybeCssVar22(zIndices.tableLoadingOverlay)
|
|
13943
|
+
}]
|
|
13944
|
+
};
|
|
13936
13945
|
var renders = {
|
|
13937
13946
|
table: renderTable,
|
|
13938
13947
|
div: renderDiv
|
|
@@ -19491,6 +19500,7 @@ function ContentHeader(props) {
|
|
|
19491
19500
|
level = 2,
|
|
19492
19501
|
aiMode = false,
|
|
19493
19502
|
startAdornment,
|
|
19503
|
+
tooltip,
|
|
19494
19504
|
xss
|
|
19495
19505
|
} = props;
|
|
19496
19506
|
const tid = useTestIds(props, "contentHeader");
|
|
@@ -19545,7 +19555,8 @@ function ContentHeader(props) {
|
|
|
19545
19555
|
/* @__PURE__ */ jsxs69("div", { className: "df aic jcsb mw0", children: [
|
|
19546
19556
|
title ? /* @__PURE__ */ jsxs69("div", { className: "df aic g_1 mw0", children: [
|
|
19547
19557
|
startAdornment,
|
|
19548
|
-
/* @__PURE__ */ jsx110(Heading, { ...trussProps73(titleCss), ...tid.title, children: title })
|
|
19558
|
+
/* @__PURE__ */ jsx110(Heading, { ...trussProps73(titleCss), ...tid.title, children: title }),
|
|
19559
|
+
tooltip && /* @__PURE__ */ jsx110(Icon, { icon: "infoCircle", tooltip, inc: 2 })
|
|
19549
19560
|
] }) : descriptionEl,
|
|
19550
19561
|
showActionsSlot && /* @__PURE__ */ jsxs69("div", { className: "df g_2 fs0", ...tid.actions, children: [
|
|
19551
19562
|
withAutoSave && /* @__PURE__ */ jsx110(AutoSaveIndicator, {}),
|