@homebound/beam 4.57.2 → 4.58.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 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
- position: "sticky",
11283
- zIndex: ["z_var", {
11284
- "--zIndex": (0, import_runtime24.maybeCssVar)(zIndices.tableStickyColumn)
11285
- }],
11286
- backgroundColor: ["bgColor_var", {
11287
- "--backgroundColor": "var(--b-surface)"
11288
- }]
11289
- },
11290
- ...maybeSticky === "left" ? {
11291
- left: ["left_var", {
11292
- "--left": (0, import_runtime24.maybeCssVar)(__maybeInc9(columnIndex === 0 ? `var(${beamSideNavLayoutWidthVar}, 0px)` : `calc(var(${beamSideNavLayoutWidthVar}, 0px) + (${columnSizes.slice(0, columnIndex).join(" + ")}))`))
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}`;