@homebound/beam 4.57.1 → 4.57.2

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