@homebound/beam 4.54.0 → 4.55.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
@@ -315,7 +315,6 @@ __export(index_exports, {
315
315
  dateFilter: () => dateFilter,
316
316
  dateFormats: () => dateFormats,
317
317
  dateRangeFilter: () => dateRangeFilter,
318
- defaultDocumentScrollRightPaneWidth: () => defaultDocumentScrollRightPaneWidth,
319
318
  defaultPage: () => defaultPage,
320
319
  defaultRenderFn: () => defaultRenderFn,
321
320
  defaultStyle: () => defaultStyle,
@@ -327,6 +326,7 @@ __export(index_exports, {
327
326
  documentScrollContentWidth: () => documentScrollContentWidth,
328
327
  documentScrollRightPaneContentMinCss: () => documentScrollRightPaneContentMinCss,
329
328
  documentScrollRightPaneHeight: () => documentScrollRightPaneHeight,
329
+ documentScrollRightPaneWidth: () => documentScrollRightPaneWidth,
330
330
  documentScrollRightPaneWidthCss: () => documentScrollRightPaneWidthCss,
331
331
  dragHandleColumn: () => dragHandleColumn,
332
332
  emptyCell: () => emptyCell,
@@ -400,7 +400,6 @@ __export(index_exports, {
400
400
  resetRightPaneStore: () => resetRightPaneStore,
401
401
  resolveTableContentWidth: () => resolveTableContentWidth,
402
402
  resolveTooltip: () => resolveTooltip,
403
- resolveWithRightPaneOptions: () => resolveWithRightPaneOptions,
404
403
  rightPaneContentStore: () => rightPaneContentStore,
405
404
  rightPaneOpenActions: () => rightPaneOpenActions,
406
405
  rightPaneOpenStore: () => rightPaneOpenStore,
@@ -11250,7 +11249,7 @@ function RowImpl(props) {
11250
11249
  const groupSpan = isGroupHeader && column2.groupId ? consecutiveGroupSpan(columns, columnIndex) : 1;
11251
11250
  currentColspan = isGroupHeader && column2.groupId ? groupSpan : isGridCellContent(maybeContent) && typeof maybeContent.colspan === "number" ? maybeContent.colspan : isExpandableHeader ? numExpandedColumns + 1 : 1;
11252
11251
  const canSortColumn = sortOn === "client" && column2.clientSideSort !== false || sortOn === "server" && !!column2.serverSideSortKey;
11253
- const alignment = isGroupHeader ? "left" : getAlignment(column2, maybeContent);
11252
+ const alignment = isGroupHeader ? "center" : getAlignment(column2, maybeContent);
11254
11253
  const justificationCss = getJustification(column2, maybeContent, as, alignment);
11255
11254
  const isExpandable = isFunction(column2.expandColumns) || column2.expandColumns && column2.expandColumns.length > 0 || column2.expandedWidth !== void 0;
11256
11255
  const content2 = toContent(maybeContent, isHeader, canSortColumn, sortOn === "client", style, as, alignment, column2, isExpandableHeader, isGroupHeader, isExpandable, minStickyLeftOffset);
@@ -28603,24 +28602,13 @@ function useDocumentScrollRightPaneAnchorRef() {
28603
28602
  }
28604
28603
 
28605
28604
  // src/components/Layout/RightPaneLayout/withRightPane.ts
28606
- var defaultDocumentScrollRightPaneWidth = 450;
28605
+ var documentScrollRightPaneWidth = 448;
28607
28606
  var minDocumentScrollContentWidthPx = 480;
28608
- function resolveWithRightPaneOptions(withRightPane) {
28609
- if (withRightPane === void 0 || withRightPane === false) return void 0;
28610
- if (withRightPane === true) {
28611
- return { width: defaultDocumentScrollRightPaneWidth };
28612
- }
28613
- if (typeof withRightPane === "number") {
28614
- return { width: withRightPane };
28615
- }
28616
- return { width: withRightPane.width ?? defaultDocumentScrollRightPaneWidth };
28617
- }
28618
28607
 
28619
28608
  // src/components/Layout/RightPaneLayout/DocumentScrollOverlayRightPaneLayout.tsx
28620
28609
  var import_jsx_runtime204 = require("react/jsx-runtime");
28621
28610
  function DocumentScrollOverlayRightPaneLayout({
28622
- children,
28623
- paneWidth = defaultDocumentScrollRightPaneWidth
28611
+ children
28624
28612
  }) {
28625
28613
  const nestedInLayout = (0, import_react135.useContext)(NestedRightPaneLayoutContext);
28626
28614
  const {
@@ -28637,7 +28625,7 @@ function DocumentScrollOverlayRightPaneLayout({
28637
28625
  if (nestedInLayout) return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_jsx_runtime204.Fragment, { children });
28638
28626
  return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(DocumentScrollRightPaneLayoutRoot, { anchorRef, tid, children: sm ? /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(import_jsx_runtime204.Fragment, { children: [
28639
28627
  children,
28640
- /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(DocumentScrollRightPane, { paneWidth, mobile: true })
28628
+ /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(DocumentScrollRightPane, { paneWidth: documentScrollRightPaneWidth, mobile: true })
28641
28629
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(import_jsx_runtime204.Fragment, { children: [
28642
28630
  /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)("div", { className: "df aifs wfc mw100", children: [
28643
28631
  /* @__PURE__ */ (0, import_jsx_runtime204.jsx)("div", { className: "w100 mwfc", ...tid.main, children }),
@@ -28650,19 +28638,18 @@ function DocumentScrollOverlayRightPaneLayout({
28650
28638
  transition: "transitionWidth"
28651
28639
  }), ...tid.spacer })
28652
28640
  ] }),
28653
- /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(DocumentScrollOverlayRightPaneHost, { anchorRef: anchorRef.ref, spacerRef, paneWidth })
28641
+ /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(DocumentScrollOverlayRightPaneHost, { anchorRef: anchorRef.ref, spacerRef })
28654
28642
  ] }) });
28655
28643
  }
28656
28644
  function DocumentScrollOverlayRightPaneHost(props) {
28657
28645
  const {
28658
28646
  anchorRef,
28659
- spacerRef,
28660
- paneWidth
28647
+ spacerRef
28661
28648
  } = props;
28662
28649
  const {
28663
28650
  isRightPaneOpen
28664
28651
  } = useRightPaneOpenState();
28665
- const paneWidthCss = documentScrollRightPaneWidthCss(paneWidth);
28652
+ const paneWidthCss = documentScrollRightPaneWidthCss(documentScrollRightPaneWidth);
28666
28653
  const [keepOverlayChrome, setKeepOverlayChrome] = (0, import_react135.useState)(isRightPaneOpen);
28667
28654
  (0, import_react135.useLayoutEffect)(() => {
28668
28655
  if (isRightPaneOpen) {
@@ -28690,7 +28677,7 @@ function DocumentScrollOverlayRightPaneHost(props) {
28690
28677
  document.documentElement.style.setProperty(beamFloatingRightOffsetVar, "0px");
28691
28678
  };
28692
28679
  }, [anchorRef, keepOverlayChrome, paneWidthCss]);
28693
- return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(DocumentScrollRightPane, { paneWidth, mobile: false, anchorRef });
28680
+ return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(DocumentScrollRightPane, { paneWidth: documentScrollRightPaneWidth, mobile: false, anchorRef });
28694
28681
  }
28695
28682
 
28696
28683
  // src/components/Modal/ModalFullBleed.tsx
@@ -28784,7 +28771,7 @@ function DocumentScrollHost(props) {
28784
28771
  testIds,
28785
28772
  children
28786
28773
  } = props;
28787
- const tableBody = rightPane ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { ...(0, import_runtime134.trussProps)({
28774
+ const tableBody = rightPane ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(DocumentScrollOverlayRightPaneLayout, { children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { ...(0, import_runtime134.trussProps)({
28788
28775
  minWidth: ["mw_var", {
28789
28776
  "--minWidth": (0, import_runtime134.maybeCssVar)(documentScrollRightPaneContentMinCss())
28790
28777
  }]
@@ -29131,7 +29118,6 @@ function GridTableLayoutComponent(props) {
29131
29118
  emptyFallback: layoutEmptyFallback,
29132
29119
  withRightPane
29133
29120
  } = props;
29134
- const rightPane = resolveWithRightPaneOptions(withRightPane);
29135
29121
  const tid = useTestIds(props);
29136
29122
  const host = useGridTableLayoutHost();
29137
29123
  const insetHandled = useContentInsetHandled();
@@ -29229,7 +29215,7 @@ function GridTableLayoutComponent(props) {
29229
29215
  {
29230
29216
  host,
29231
29217
  actions: showTableActions ? tableActionsEl : void 0,
29232
- rightPane,
29218
+ rightPane: withRightPane,
29233
29219
  isVirtualized,
29234
29220
  testIds: tid,
29235
29221
  children: tableBody
@@ -33327,7 +33313,6 @@ function CenteredLayout(props) {
33327
33313
  const {
33328
33314
  mdAndUp
33329
33315
  } = useBreakpoint();
33330
- const rightPane = resolveWithRightPaneOptions(withRightPane);
33331
33316
  const shell = /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(ContentInsetProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)("div", { ...(0, import_runtime166.mergeProps)(void 0, {
33332
33317
  // layoutContainer descendants (e.g. ContentHeader) read this to inset sticky horizontal chrome within the shell padding.
33333
33318
  [beamLayoutContentPaddingXVar]: mdAndUp ? pageContentPaddingXValue : smPageContentPaddingXValue,
@@ -33346,8 +33331,8 @@ function CenteredLayout(props) {
33346
33331
  },
33347
33332
  ...pageContentPaddingX
33348
33333
  }), ...tid, children }) });
33349
- if (!rightPane) return shell;
33350
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: shell });
33334
+ if (!withRightPane) return shell;
33335
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(DocumentScrollOverlayRightPaneLayout, { children: shell });
33351
33336
  }
33352
33337
  var centeredContentMaxPx = {
33353
33338
  sm: 720,
@@ -33740,7 +33725,6 @@ function FormSectionLayout(props) {
33740
33725
  const {
33741
33726
  sm: isMobile
33742
33727
  } = useBreakpoint();
33743
- const rightPane = resolveWithRightPaneOptions(withRightPane);
33744
33728
  const formSectionLayoutTitleId = "formSectionLayoutTitle";
33745
33729
  const sectionLinks = (sections ?? []).filter((section) => !section.excludeJumpLink).map((section) => {
33746
33730
  const id = defaultTestId(section.title);
@@ -33792,8 +33776,8 @@ function FormSectionLayout(props) {
33792
33776
  }]
33793
33777
  }), ...tid.column, children: form })
33794
33778
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("div", { className: "mb4", children: form });
33795
- if (!rightPane) return body;
33796
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: body });
33779
+ if (!withRightPane) return body;
33780
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(DocumentScrollOverlayRightPaneLayout, { children: body });
33797
33781
  }
33798
33782
 
33799
33783
  // src/layouts/PageBanner/usePageBanner.tsx
@@ -35449,7 +35433,6 @@ var togglePressStyles = {
35449
35433
  dateFilter,
35450
35434
  dateFormats,
35451
35435
  dateRangeFilter,
35452
- defaultDocumentScrollRightPaneWidth,
35453
35436
  defaultPage,
35454
35437
  defaultRenderFn,
35455
35438
  defaultStyle,
@@ -35461,6 +35444,7 @@ var togglePressStyles = {
35461
35444
  documentScrollContentWidth,
35462
35445
  documentScrollRightPaneContentMinCss,
35463
35446
  documentScrollRightPaneHeight,
35447
+ documentScrollRightPaneWidth,
35464
35448
  documentScrollRightPaneWidthCss,
35465
35449
  dragHandleColumn,
35466
35450
  emptyCell,
@@ -35534,7 +35518,6 @@ var togglePressStyles = {
35534
35518
  resetRightPaneStore,
35535
35519
  resolveTableContentWidth,
35536
35520
  resolveTooltip,
35537
- resolveWithRightPaneOptions,
35538
35521
  rightPaneContentStore,
35539
35522
  rightPaneOpenActions,
35540
35523
  rightPaneOpenStore,