@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.js CHANGED
@@ -7194,9 +7194,12 @@ function ExpandableHeader(props) {
7194
7194
  pointerEvents: "pen",
7195
7195
  ...applyStickyStyles ? {
7196
7196
  position: "sticky",
7197
- left: ["left_var", {
7198
- "--left": maybeCssVar8(__maybeInc3(`calc(var(${beamSideNavLayoutWidthVar}, 0px) + ${minStickyLeftOffset + 12}px)`))
7199
- }],
7197
+ left: ["left_var sm_left_var", {
7198
+ "--left": maybeCssVar8(__maybeInc3(`calc(var(${beamSideNavLayoutWidthVar}, 0px) + ${minStickyLeftOffset + 12}px)`)),
7199
+ "--sm_left": maybeCssVar8(__maybeInc3(`calc(var(${beamSideNavLayoutWidthVar}, 0px) + 12px)`))
7200
+ }]
7201
+ } : {},
7202
+ ...applyStickyStyles ? {
7200
7203
  paddingRight: "pr2",
7201
7204
  backgroundColor: ["bgColor_var", {
7202
7205
  "--backgroundColor": "var(--b-surface)"
@@ -10762,27 +10765,22 @@ function RowImpl(props) {
10762
10765
  const renderedContent = withRowControls(content2, controlNodes, alignment, contentRowLink);
10763
10766
  ensureClientSideSortValueIsSortable(sortOn, isHeader || isTotals || isExpandableHeader || isGroupHeader, column2, columnIndex, maybeContent);
10764
10767
  const maybeSticky = (isGridCellContent(maybeContent) && maybeContent.sticky || column2.sticky) ?? void 0;
10768
+ const stickyLeft = maybeSticky === "left" ? columnIndex === 0 ? `var(${beamSideNavLayoutWidthVar}, 0px)` : `calc(var(${beamSideNavLayoutWidthVar}, 0px) + (${columnSizes.slice(0, columnIndex).join(" + ")}))` : "auto";
10769
+ const stickyRight = maybeSticky === "right" ? columnIndex + 1 === columnSizes.length ? `var(${beamRightPaneWidthVar}, 0px)` : `calc(var(${beamRightPaneWidthVar}, 0px) + (${columnSizes.slice(columnIndex + 1 - columnSizes.length).join(" + ")}))` : "auto";
10765
10770
  const maybeStickyColumnStyles = maybeSticky && columnSizes ? {
10766
- ...{
10767
- position: "sticky",
10768
- zIndex: ["z_var", {
10769
- "--zIndex": maybeCssVar_12(zIndices.tableStickyColumn)
10770
- }],
10771
- backgroundColor: ["bgColor_var", {
10772
- "--backgroundColor": "var(--b-surface)"
10773
- }]
10774
- },
10775
- ...maybeSticky === "left" ? {
10776
- left: ["left_var", {
10777
- "--left": maybeCssVar_12(__maybeInc9(columnIndex === 0 ? `var(${beamSideNavLayoutWidthVar}, 0px)` : `calc(var(${beamSideNavLayoutWidthVar}, 0px) + (${columnSizes.slice(0, columnIndex).join(" + ")}))`))
10778
- }]
10779
- } : {},
10780
- // Offset by the open right pane so sticky-right cells pin to the clear edge, not under it (0 when closed).
10781
- ...maybeSticky === "right" ? {
10782
- right: ["right_var", {
10783
- "--right": maybeCssVar_12(__maybeInc9(columnIndex + 1 === columnSizes.length ? `var(${beamRightPaneWidthVar}, 0px)` : `calc(var(${beamRightPaneWidthVar}, 0px) + (${columnSizes.slice(columnIndex + 1 - columnSizes.length).join(" + ")}))`))
10784
- }]
10785
- } : {}
10771
+ position: "sticky sm_relative",
10772
+ zIndex: ["z_var", {
10773
+ "--zIndex": maybeCssVar_12(zIndices.tableStickyColumn)
10774
+ }],
10775
+ backgroundColor: ["bgColor_var", {
10776
+ "--backgroundColor": "var(--b-surface)"
10777
+ }],
10778
+ left: ["left_var sm_l_auto", {
10779
+ "--left": maybeCssVar_12(__maybeInc9(stickyLeft))
10780
+ }],
10781
+ right: ["right_var sm_r_auto", {
10782
+ "--right": maybeCssVar_12(__maybeInc9(stickyRight))
10783
+ }]
10786
10784
  } : {};
10787
10785
  minStickyLeftOffset += maybeSticky === "left" ? parseInt(columnSizes[columnIndex].replace("px", ""), 10) : 0;
10788
10786
  const cellId = `${row.kind}_${row.id}_${column2.id}`;