@homebound/beam 4.57.2 → 4.58.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 +30 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +241 -240
- package/dist/index.js.map +1 -1
- package/dist/truss.css +10 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7709,9 +7709,12 @@ function ExpandableHeader(props) {
|
|
|
7709
7709
|
pointerEvents: "pen",
|
|
7710
7710
|
...applyStickyStyles ? {
|
|
7711
7711
|
position: "sticky",
|
|
7712
|
-
left: ["left_var", {
|
|
7713
|
-
"--left": (0, import_runtime11.maybeCssVar)(__maybeInc3(`calc(var(${beamSideNavLayoutWidthVar}, 0px) + ${minStickyLeftOffset + 12}px)`))
|
|
7714
|
-
|
|
7712
|
+
left: ["left_var sm_left_var", {
|
|
7713
|
+
"--left": (0, import_runtime11.maybeCssVar)(__maybeInc3(`calc(var(${beamSideNavLayoutWidthVar}, 0px) + ${minStickyLeftOffset + 12}px)`)),
|
|
7714
|
+
"--sm_left": (0, import_runtime11.maybeCssVar)(__maybeInc3(`calc(var(${beamSideNavLayoutWidthVar}, 0px) + 12px)`))
|
|
7715
|
+
}]
|
|
7716
|
+
} : {},
|
|
7717
|
+
...applyStickyStyles ? {
|
|
7715
7718
|
paddingRight: "pr2",
|
|
7716
7719
|
backgroundColor: ["bgColor_var", {
|
|
7717
7720
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -11277,27 +11280,22 @@ function RowImpl(props) {
|
|
|
11277
11280
|
const renderedContent = withRowControls(content2, controlNodes, alignment, contentRowLink);
|
|
11278
11281
|
ensureClientSideSortValueIsSortable(sortOn, isHeader || isTotals || isExpandableHeader || isGroupHeader, column2, columnIndex, maybeContent);
|
|
11279
11282
|
const maybeSticky = (isGridCellContent(maybeContent) && maybeContent.sticky || column2.sticky) ?? void 0;
|
|
11283
|
+
const stickyLeft = maybeSticky === "left" ? columnIndex === 0 ? `var(${beamSideNavLayoutWidthVar}, 0px)` : `calc(var(${beamSideNavLayoutWidthVar}, 0px) + (${columnSizes.slice(0, columnIndex).join(" + ")}))` : "auto";
|
|
11284
|
+
const stickyRight = maybeSticky === "right" ? columnIndex + 1 === columnSizes.length ? `var(${beamRightPaneWidthVar}, 0px)` : `calc(var(${beamRightPaneWidthVar}, 0px) + (${columnSizes.slice(columnIndex + 1 - columnSizes.length).join(" + ")}))` : "auto";
|
|
11280
11285
|
const maybeStickyColumnStyles = maybeSticky && columnSizes ? {
|
|
11281
|
-
|
|
11282
|
-
|
|
11283
|
-
zIndex:
|
|
11284
|
-
|
|
11285
|
-
|
|
11286
|
-
backgroundColor:
|
|
11287
|
-
|
|
11288
|
-
|
|
11289
|
-
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
} : {},
|
|
11295
|
-
// Offset by the open right pane so sticky-right cells pin to the clear edge, not under it (0 when closed).
|
|
11296
|
-
...maybeSticky === "right" ? {
|
|
11297
|
-
right: ["right_var", {
|
|
11298
|
-
"--right": (0, import_runtime24.maybeCssVar)(__maybeInc9(columnIndex + 1 === columnSizes.length ? `var(${beamRightPaneWidthVar}, 0px)` : `calc(var(${beamRightPaneWidthVar}, 0px) + (${columnSizes.slice(columnIndex + 1 - columnSizes.length).join(" + ")}))`))
|
|
11299
|
-
}]
|
|
11300
|
-
} : {}
|
|
11286
|
+
position: "sticky sm_relative",
|
|
11287
|
+
zIndex: ["z_var", {
|
|
11288
|
+
"--zIndex": (0, import_runtime24.maybeCssVar)(zIndices.tableStickyColumn)
|
|
11289
|
+
}],
|
|
11290
|
+
backgroundColor: ["bgColor_var", {
|
|
11291
|
+
"--backgroundColor": "var(--b-surface)"
|
|
11292
|
+
}],
|
|
11293
|
+
left: ["left_var sm_l_auto", {
|
|
11294
|
+
"--left": (0, import_runtime24.maybeCssVar)(__maybeInc9(stickyLeft))
|
|
11295
|
+
}],
|
|
11296
|
+
right: ["right_var sm_r_auto", {
|
|
11297
|
+
"--right": (0, import_runtime24.maybeCssVar)(__maybeInc9(stickyRight))
|
|
11298
|
+
}]
|
|
11301
11299
|
} : {};
|
|
11302
11300
|
minStickyLeftOffset += maybeSticky === "left" ? parseInt(columnSizes[columnIndex].replace("px", ""), 10) : 0;
|
|
11303
11301
|
const cellId = `${row.kind}_${row.id}_${column2.id}`;
|
|
@@ -12019,15 +12017,18 @@ function InlineLabel({
|
|
|
12019
12017
|
labelProps,
|
|
12020
12018
|
label,
|
|
12021
12019
|
multiline = false,
|
|
12020
|
+
disabled = false,
|
|
12022
12021
|
...others
|
|
12023
12022
|
}) {
|
|
12024
12023
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("label", { ...labelProps, ...others, ...(0, import_runtime29.trussProps)({
|
|
12025
|
-
fontWeight: "
|
|
12024
|
+
fontWeight: "fw6",
|
|
12026
12025
|
fontSize: "fz_14px",
|
|
12027
12026
|
lineHeight: "lh_20px",
|
|
12028
12027
|
whiteSpace: "wsnw",
|
|
12029
12028
|
paddingRight: "pr_4px",
|
|
12030
|
-
color: "
|
|
12029
|
+
color: ["color_var", {
|
|
12030
|
+
"--color": (0, import_runtime29.maybeCssVar)(disabled ? "currentColor" : "--b-on-surface" /* OnSurface */)
|
|
12031
|
+
}],
|
|
12031
12032
|
alignSelf: "asc",
|
|
12032
12033
|
...multiline ? {
|
|
12033
12034
|
alignSelf: "asfs",
|
|
@@ -12601,7 +12602,7 @@ function TextFieldBase(props) {
|
|
|
12601
12602
|
},
|
|
12602
12603
|
...xss
|
|
12603
12604
|
}), "data-readonly": "true", "data-ai-mode": showProposal ? "true" : void 0, ...tid, children: [
|
|
12604
|
-
labelStyle === "inline" && label && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InlineLabel, { multiline, labelProps, label, ...tid.label }),
|
|
12605
|
+
labelStyle === "inline" && label && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InlineLabel, { multiline, labelProps, label, disabled: !!inputProps.disabled, ...tid.label }),
|
|
12605
12606
|
showProposal ? (
|
|
12606
12607
|
// Read-only renders no input at all, so both halves are drawn as text here. Checked
|
|
12607
12608
|
// before `multiline` so a read-only TextAreaField still shows the struck-through original.
|
|
@@ -12634,7 +12635,7 @@ function TextFieldBase(props) {
|
|
|
12634
12635
|
ref: inputWrapRef,
|
|
12635
12636
|
onClick: unfocusedPlaceholder ? handleUnfocusedPlaceholderClick : void 0,
|
|
12636
12637
|
children: [
|
|
12637
|
-
labelStyle === "inline" && label && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InlineLabel, { multiline, labelProps, label, ...tid.label }),
|
|
12638
|
+
labelStyle === "inline" && label && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InlineLabel, { multiline, labelProps, label, disabled: !!inputProps.disabled, ...tid.label }),
|
|
12638
12639
|
startAdornment && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "df aic asc fs0 br4 pr1", children: startAdornment }),
|
|
12639
12640
|
unfocusedPlaceholder && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
12640
12641
|
"div",
|
|
@@ -19791,13 +19792,13 @@ function MenuSelectTrigger(props) {
|
|
|
19791
19792
|
const hasSupporting = !!(originalBelow || showErrorAndHelper && (errorMsg || helperText));
|
|
19792
19793
|
const valueNode = /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
|
|
19793
19794
|
labelStyle === "inline" && /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("span", { id: trigger.labelId, ...(0, import_runtime82.trussProps)({
|
|
19794
|
-
fontWeight: "
|
|
19795
|
+
fontWeight: "fw6",
|
|
19795
19796
|
fontSize: "fz_14px",
|
|
19796
19797
|
lineHeight: "lh_20px",
|
|
19797
19798
|
whiteSpace: "wsnw",
|
|
19798
19799
|
paddingRight: "pr_4px",
|
|
19799
19800
|
color: ["color_var", {
|
|
19800
|
-
"--color": (0, import_runtime82.maybeCssVar)(trigger.isDisabled && visuallyDisabled ? "currentColor" : "--b-
|
|
19801
|
+
"--color": (0, import_runtime82.maybeCssVar)(trigger.isDisabled && visuallyDisabled ? "currentColor" : "--b-on-surface" /* OnSurface */)
|
|
19801
19802
|
}]
|
|
19802
19803
|
}), children: [
|
|
19803
19804
|
label,
|