@homebound/beam 4.57.1 → 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}`;
@@ -15358,16 +15356,21 @@ function AiPanel(props) {
15358
15356
  ...others
15359
15357
  } = props;
15360
15358
  const tid = useTestIds(others, "aiPanel");
15361
- return /* @__PURE__ */ jsx61("div", { ...trussProps40({
15362
- ...{
15363
- width: "w100",
15364
- backgroundImage: "aiBackground",
15365
- ...rounded ? {
15366
- borderRadius: "br12"
15367
- } : {}
15368
- },
15369
- ...aiBackgroundPaddingCss[padding]
15370
- }), ...others, ...tid, children });
15359
+ return (
15360
+ // Capped to the visible column so a page widened by an open right pane doesn't stretch it
15361
+ /* @__PURE__ */ jsx61("div", { ...trussProps40({
15362
+ ...{
15363
+ backgroundImage: "aiBackground",
15364
+ width: "w_min_100_calc_calc_var_beam_layout_viewport_width_100vw_var_beam_side_nav_layout_width_0px_2_var_beam_layout_content_padding_x_0px",
15365
+ left: "l_calc_var_beam_side_nav_layout_width_0px_var_beam_layout_content_padding_x_0px",
15366
+ position: "sticky",
15367
+ ...rounded ? {
15368
+ borderRadius: "br12"
15369
+ } : {}
15370
+ },
15371
+ ...aiBackgroundPaddingCss[padding]
15372
+ }), ...others, ...tid, children })
15373
+ );
15371
15374
  }
15372
15375
  function AiCard(props) {
15373
15376
  const {
@@ -15381,34 +15384,39 @@ function AiCard(props) {
15381
15384
  gapCss
15382
15385
  } = aiCardChrome[size];
15383
15386
  const tid = useTestIds(others, "aiCard");
15384
- return /* @__PURE__ */ jsxs38("div", { ...trussProps40({
15385
- ...{
15386
- display: "df",
15387
- flexDirection: "fdc",
15388
- alignItems: "aifs",
15389
- width: "w100",
15390
- ...!fullWidth ? {
15391
- width: "wfc",
15392
- maxWidth: "maxw100",
15393
- marginLeft: "mla",
15394
- marginRight: "mra"
15395
- } : {}
15396
- },
15397
- ...gapCss
15398
- }), ...tid.column, children: [
15399
- /* @__PURE__ */ jsx61(BlueprintAiLogo, { height: logoHeight }),
15400
- /* @__PURE__ */ jsx61("div", { ...trussProps40({
15401
- display: "df",
15402
- flexDirection: "fdc",
15403
- width: "w100",
15404
- minWidth: "mw0",
15405
- borderRadius: "br12",
15406
- backgroundColor: ["bgColor_var", {
15407
- "--backgroundColor": "var(--b-surface)"
15408
- }],
15409
- boxShadow: "bshBasic"
15410
- }), ...others, ...tid.card, children })
15411
- ] });
15387
+ return (
15388
+ // Same cap as `AiPanel`, so a wide page does not stretch the card column
15389
+ /* @__PURE__ */ jsxs38("div", { ...trussProps40({
15390
+ ...{
15391
+ display: "df",
15392
+ flexDirection: "fdc",
15393
+ alignItems: "aifs",
15394
+ width: "w_min_100_calc_calc_var_beam_layout_viewport_width_100vw_var_beam_side_nav_layout_width_0px_2_var_beam_layout_content_padding_x_0px",
15395
+ left: "l_calc_var_beam_side_nav_layout_width_0px_var_beam_layout_content_padding_x_0px",
15396
+ position: "sticky",
15397
+ ...!fullWidth ? {
15398
+ width: "wfc",
15399
+ maxWidth: "maxw100",
15400
+ marginLeft: "mla",
15401
+ marginRight: "mra"
15402
+ } : {}
15403
+ },
15404
+ ...gapCss
15405
+ }), ...tid.column, children: [
15406
+ /* @__PURE__ */ jsx61(BlueprintAiLogo, { height: logoHeight }),
15407
+ /* @__PURE__ */ jsx61("div", { ...trussProps40({
15408
+ display: "df",
15409
+ flexDirection: "fdc",
15410
+ width: "w100",
15411
+ minWidth: "mw0",
15412
+ borderRadius: "br12",
15413
+ backgroundColor: ["bgColor_var", {
15414
+ "--backgroundColor": "var(--b-surface)"
15415
+ }],
15416
+ boxShadow: "bshBasic"
15417
+ }), ...others, ...tid.card, children })
15418
+ ] })
15419
+ );
15412
15420
  }
15413
15421
  var aiBackgroundPaddingCss = {
15414
15422
  lg: {