@homebound/beam 3.13.0 → 3.13.1

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.d.cts CHANGED
@@ -8813,7 +8813,8 @@ declare const zIndices: {
8813
8813
  readonly pageStickyHeader: 70;
8814
8814
  readonly dragHandle: 80;
8815
8815
  readonly sideNav: 100;
8816
- readonly snackbar: 120;
8816
+ readonly pageOverlay: 1000;
8817
+ readonly snackbar: 1100;
8817
8818
  };
8818
8819
  type ZIndex = (typeof zIndices)[keyof typeof zIndices];
8819
8820
 
package/dist/index.d.ts CHANGED
@@ -8813,7 +8813,8 @@ declare const zIndices: {
8813
8813
  readonly pageStickyHeader: 70;
8814
8814
  readonly dragHandle: 80;
8815
8815
  readonly sideNav: 100;
8816
- readonly snackbar: 120;
8816
+ readonly pageOverlay: 1000;
8817
+ readonly snackbar: 1100;
8817
8818
  };
8818
8819
  type ZIndex = (typeof zIndices)[keyof typeof zIndices];
8819
8820
 
package/dist/index.js CHANGED
@@ -5744,8 +5744,11 @@ var zIndices = {
5744
5744
  // Side-nav layer. Mobile rail overlays page content when expanded; sits below
5745
5745
  // snackbar so toasts still land on top.
5746
5746
  sideNav: 100,
5747
- // Top of the stack.
5748
- snackbar: 120
5747
+ // Full-page overlays high enough to clear consuming-app nav bars (~999).
5748
+ // Both layouts own their Toast internally so it renders inside the overlay header.
5749
+ pageOverlay: 1e3,
5750
+ // Top of stack
5751
+ snackbar: 1100
5749
5752
  };
5750
5753
 
5751
5754
  // src/components/Table/components/ExpandableHeader.tsx
@@ -18273,7 +18276,21 @@ function FormPageLayoutComponent(props) {
18273
18276
  // since this layout will be replacing most superdrawers/sidebars, we keep the listing mounted below to preserve the users's
18274
18277
  // scroll position & filters
18275
18278
  // Adding "align-items: start" allows "position: sticky" to work within a grid for the sidebars
18276
- /* @__PURE__ */ jsx125("div", { className: "fixed top0 bottom0 left0 right0 z_1000 oya bgWhite df jcc aifs", ...tids, children: /* @__PURE__ */ jsxs64("div", { ...trussProps65({
18279
+ /* @__PURE__ */ jsx125("div", { ...trussProps65({
18280
+ position: "fixed",
18281
+ top: "top0",
18282
+ bottom: "bottom0",
18283
+ left: "left0",
18284
+ right: "right0",
18285
+ zIndex: ["z_var", {
18286
+ "--zIndex": maybeCssVar37(zIndices.pageOverlay)
18287
+ }],
18288
+ overflowY: "oya",
18289
+ backgroundColor: "bgWhite",
18290
+ display: "df",
18291
+ justifyContent: "jcc",
18292
+ alignItems: "aifs"
18293
+ }), ...tids, children: /* @__PURE__ */ jsxs64("div", { ...trussProps65({
18277
18294
  width: "w100",
18278
18295
  maxWidth: ["maxw_var", {
18279
18296
  "--maxWidth": `${maxContentWidthPx}px`
@@ -19917,7 +19934,7 @@ function SidePanel(props) {
19917
19934
  }
19918
19935
 
19919
19936
  // src/components/Layout/TableReviewLayout/TableReviewLayout.tsx
19920
- import { trussProps as trussProps73 } from "@homebound/truss/runtime";
19937
+ import { trussProps as trussProps73, maybeCssVar as maybeCssVar42 } from "@homebound/truss/runtime";
19921
19938
  import { jsx as jsx152, jsxs as jsxs78 } from "react/jsx-runtime";
19922
19939
  var defaultRightPaneWidth = 450;
19923
19940
  function TableReviewLayout(props) {
@@ -19959,8 +19976,21 @@ function TableReviewLayout(props) {
19959
19976
  bordered: true
19960
19977
  }, stickyHeader: true });
19961
19978
  }
19962
- return /* @__PURE__ */ jsxs78("div", { className: "fixed top0 bottom0 left0 right0 z_1000 bgWhite df fdc", ...tid, children: [
19979
+ return /* @__PURE__ */ jsxs78("div", { ...trussProps73({
19980
+ position: "fixed",
19981
+ top: "top0",
19982
+ bottom: "bottom0",
19983
+ left: "left0",
19984
+ right: "right0",
19985
+ zIndex: ["z_var", {
19986
+ "--zIndex": maybeCssVar42(zIndices.pageOverlay)
19987
+ }],
19988
+ backgroundColor: "bgWhite",
19989
+ display: "df",
19990
+ flexDirection: "fdc"
19991
+ }), ...tid, children: [
19963
19992
  /* @__PURE__ */ jsxs78("header", { className: "pl3 pr3 pt3 pb2 fs0", ...tid.header, children: [
19993
+ /* @__PURE__ */ jsx152(Toast, {}),
19964
19994
  /* @__PURE__ */ jsxs78("div", { className: "df jcsb aic", children: [
19965
19995
  /* @__PURE__ */ jsxs78("div", { children: [
19966
19996
  breadCrumb && /* @__PURE__ */ jsx152(PageHeaderBreadcrumbs, { breadcrumb: breadCrumb }),
@@ -20361,7 +20391,7 @@ function getStyles(type) {
20361
20391
  }
20362
20392
 
20363
20393
  // src/components/Card.tsx
20364
- import { trussProps as trussProps76, maybeCssVar as maybeCssVar42 } from "@homebound/truss/runtime";
20394
+ import { trussProps as trussProps76, maybeCssVar as maybeCssVar43 } from "@homebound/truss/runtime";
20365
20395
  import { jsx as jsx157, jsxs as jsxs82 } from "react/jsx-runtime";
20366
20396
  function Card(props) {
20367
20397
  const {
@@ -20414,7 +20444,7 @@ function Card(props) {
20414
20444
  width: "w100",
20415
20445
  height: "h100",
20416
20446
  objectFit: ["objectFit_var", {
20417
- "--objectFit": maybeCssVar42(imageFit)
20447
+ "--objectFit": maybeCssVar43(imageFit)
20418
20448
  }]
20419
20449
  }), src: imgSrc, alt: title, ...tid.img }) }),
20420
20450
  isHovered && buttonMenuItems && /* @__PURE__ */ jsx157("div", { ...trussProps76({
@@ -20855,7 +20885,7 @@ function ResponsiveGridItem(props) {
20855
20885
 
20856
20886
  // src/components/Grid/useResponsiveGrid.ts
20857
20887
  import { useMemo as useMemo44 } from "react";
20858
- import { maybeCssVar as maybeCssVar43 } from "@homebound/truss/runtime";
20888
+ import { maybeCssVar as maybeCssVar44 } from "@homebound/truss/runtime";
20859
20889
  var __maybeInc12 = (inc) => {
20860
20890
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
20861
20891
  };
@@ -20874,11 +20904,11 @@ function useResponsiveGrid(props) {
20874
20904
  return {
20875
20905
  display: "dg",
20876
20906
  gridTemplateColumns: ["gtc_var", {
20877
- "--gridTemplateColumns": maybeCssVar43(gridTemplateColumns)
20907
+ "--gridTemplateColumns": maybeCssVar44(gridTemplateColumns)
20878
20908
  }],
20879
20909
  containerType: "ctis",
20880
20910
  gap: ["gap_var", {
20881
- "--gap": maybeCssVar43(__maybeInc12(gridGap))
20911
+ "--gap": maybeCssVar44(__maybeInc12(gridGap))
20882
20912
  }]
20883
20913
  };
20884
20914
  }, [minColumnWidth, gap, columns]);
@@ -21003,7 +21033,7 @@ function HbSpinnerProvider({
21003
21033
  // src/components/MaxLines.tsx
21004
21034
  import { useLayoutEffect as useLayoutEffect2, useResizeObserver as useResizeObserver5 } from "@react-aria/utils";
21005
21035
  import { useCallback as useCallback25, useEffect as useEffect31, useRef as useRef51, useState as useState46 } from "react";
21006
- import { trussProps as trussProps81, maybeCssVar as maybeCssVar44 } from "@homebound/truss/runtime";
21036
+ import { trussProps as trussProps81, maybeCssVar as maybeCssVar45 } from "@homebound/truss/runtime";
21007
21037
  import { jsx as jsx164, jsxs as jsxs84 } from "react/jsx-runtime";
21008
21038
  function MaxLines({
21009
21039
  maxLines,
@@ -21031,7 +21061,7 @@ function MaxLines({
21031
21061
  /* @__PURE__ */ jsx164("div", { ref: elRef, ...trussProps81({
21032
21062
  ...!expanded ? {
21033
21063
  WebkitLineClamp: ["lineClamp_var", {
21034
- "--WebkitLineClamp": maybeCssVar44(maxLines)
21064
+ "--WebkitLineClamp": maybeCssVar45(maxLines)
21035
21065
  }],
21036
21066
  overflow: "oh",
21037
21067
  display: "d_negwebkit_box",
@@ -21049,7 +21079,7 @@ import { useEffect as useEffect32, useMemo as useMemo47, useRef as useRef52, use
21049
21079
  import { mergeProps as mergeProps25, useFocusRing as useFocusRing14, useHover as useHover18 } from "react-aria";
21050
21080
  import { matchPath } from "react-router";
21051
21081
  import { Link as Link5, useLocation } from "react-router-dom";
21052
- import { trussProps as trussProps82, maybeCssVar as maybeCssVar45 } from "@homebound/truss/runtime";
21082
+ import { trussProps as trussProps82, maybeCssVar as maybeCssVar46 } from "@homebound/truss/runtime";
21053
21083
  import { Fragment as Fragment38, jsx as jsx165, jsxs as jsxs85 } from "react/jsx-runtime";
21054
21084
  function TabsWithContent(props) {
21055
21085
  const styles = hideTabs(props) ? {} : {
@@ -21225,7 +21255,7 @@ function getTabStyles() {
21225
21255
  const borderBottomStyles = {
21226
21256
  borderBottomStyle: "bbs_solid",
21227
21257
  borderBottomWidth: ["borderBottomWidth_var", {
21228
- "--borderBottomWidth": maybeCssVar45(`${borderBottomWidthPx}px`)
21258
+ "--borderBottomWidth": maybeCssVar46(`${borderBottomWidthPx}px`)
21229
21259
  }],
21230
21260
  paddingBottom: ["pb_var", {
21231
21261
  "--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
@@ -21345,7 +21375,7 @@ function PageHeader2(props) {
21345
21375
  // src/components/ScrollShadows.tsx
21346
21376
  import { useResizeObserver as useResizeObserver6 } from "@react-aria/utils";
21347
21377
  import { useCallback as useCallback26, useMemo as useMemo48, useRef as useRef53, useState as useState48 } from "react";
21348
- import { trussProps as trussProps84, maybeCssVar as maybeCssVar46 } from "@homebound/truss/runtime";
21378
+ import { trussProps as trussProps84, maybeCssVar as maybeCssVar47 } from "@homebound/truss/runtime";
21349
21379
  import { jsx as jsx167, jsxs as jsxs87 } from "react/jsx-runtime";
21350
21380
  function ScrollShadows(props) {
21351
21381
  const {
@@ -21370,7 +21400,7 @@ function ScrollShadows(props) {
21370
21400
  const commonStyles = {
21371
21401
  position: "absolute",
21372
21402
  zIndex: ["z_var", {
21373
- "--zIndex": maybeCssVar46(zIndices.scrollShadow)
21403
+ "--zIndex": maybeCssVar47(zIndices.scrollShadow)
21374
21404
  }],
21375
21405
  pointerEvents: "pointerEvents_none"
21376
21406
  };
@@ -21403,7 +21433,7 @@ function ScrollShadows(props) {
21403
21433
  ...startShadowStyles2,
21404
21434
  ...{
21405
21435
  background: ["background_var", {
21406
- "--background": maybeCssVar46(startGradient)
21436
+ "--background": maybeCssVar47(startGradient)
21407
21437
  }]
21408
21438
  }
21409
21439
  }, {
@@ -21411,7 +21441,7 @@ function ScrollShadows(props) {
21411
21441
  ...endShadowStyles2,
21412
21442
  ...{
21413
21443
  background: ["background_var", {
21414
- "--background": maybeCssVar46(endGradient)
21444
+ "--background": maybeCssVar47(endGradient)
21415
21445
  }]
21416
21446
  }
21417
21447
  }];
@@ -21439,7 +21469,7 @@ function ScrollShadows(props) {
21439
21469
  return /* @__PURE__ */ jsxs87("div", { ...trussProps84({
21440
21470
  display: "df",
21441
21471
  flexDirection: ["fd_var", {
21442
- "--flexDirection": maybeCssVar46(!horizontal ? "column" : "row")
21472
+ "--flexDirection": maybeCssVar47(!horizontal ? "column" : "row")
21443
21473
  }],
21444
21474
  position: "relative",
21445
21475
  overflow: "oh",
@@ -21456,7 +21486,7 @@ function ScrollShadows(props) {
21456
21486
  ...startShadowStyles,
21457
21487
  ...{
21458
21488
  opacity: ["o_var", {
21459
- "--opacity": maybeCssVar46(showStartShadow ? 1 : 0)
21489
+ "--opacity": maybeCssVar47(showStartShadow ? 1 : 0)
21460
21490
  }]
21461
21491
  }
21462
21492
  }), "data-chromatic": "ignore" }),
@@ -21464,7 +21494,7 @@ function ScrollShadows(props) {
21464
21494
  ...endShadowStyles,
21465
21495
  ...{
21466
21496
  opacity: ["o_var", {
21467
- "--opacity": maybeCssVar46(showEndShadow ? 1 : 0)
21497
+ "--opacity": maybeCssVar47(showEndShadow ? 1 : 0)
21468
21498
  }]
21469
21499
  }
21470
21500
  }), "data-chromatic": "ignore" }),
@@ -21687,7 +21717,7 @@ function useAppNavGroupExpanded(linkGroup) {
21687
21717
  }
21688
21718
 
21689
21719
  // src/components/AppNav/AppNavGroup.tsx
21690
- import { trussProps as trussProps86, maybeCssVar as maybeCssVar47 } from "@homebound/truss/runtime";
21720
+ import { trussProps as trussProps86, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
21691
21721
  import { Fragment as Fragment39, jsx as jsx169, jsxs as jsxs89 } from "react/jsx-runtime";
21692
21722
  var __maybeInc13 = (inc) => {
21693
21723
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -21736,7 +21766,7 @@ function AppNavGroupDisclosure(props) {
21736
21766
  overflow: "oh",
21737
21767
  transition: "transitionHeight",
21738
21768
  height: ["h_var", {
21739
- "--height": maybeCssVar47(__maybeInc13(contentHeight))
21769
+ "--height": maybeCssVar48(__maybeInc13(contentHeight))
21740
21770
  }]
21741
21771
  }), ...tid.panel, children: /* @__PURE__ */ jsx169("div", { ref: setContentEl, className: "df fdc pl2", children: /* @__PURE__ */ jsx169(AppNavItems, { items: linkGroup.items, panelCollapsed: false, ...tid }) }) })
21742
21772
  ] });
@@ -22043,7 +22073,7 @@ var snackbarId = 1;
22043
22073
  // src/components/Stepper.tsx
22044
22074
  import { useRef as useRef56 } from "react";
22045
22075
  import { useButton as useButton12, useFocusRing as useFocusRing16, useHover as useHover20 } from "react-aria";
22046
- import { trussProps as trussProps89, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
22076
+ import { trussProps as trussProps89, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
22047
22077
  import { jsx as jsx175, jsxs as jsxs92 } from "react/jsx-runtime";
22048
22078
  import { createElement as createElement4 } from "react";
22049
22079
  var __maybeInc14 = (inc) => {
@@ -22102,7 +22132,7 @@ function Stepper(props) {
22102
22132
  transition: "transition_width_200ms",
22103
22133
  height: "h100",
22104
22134
  width: ["w_var", {
22105
- "--width": maybeCssVar48(__maybeInc14(`${(lastCompletedStep + 1) / steps.length * 100}%`))
22135
+ "--width": maybeCssVar49(__maybeInc14(`${(lastCompletedStep + 1) / steps.length * 100}%`))
22106
22136
  }]
22107
22137
  }) }) })
22108
22138
  ] });
@@ -22520,7 +22550,7 @@ function useToast() {
22520
22550
  }
22521
22551
 
22522
22552
  // src/layouts/SideNavLayout/SideNavLayout.tsx
22523
- import { trussProps as trussProps91, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
22553
+ import { trussProps as trussProps91, maybeCssVar as maybeCssVar50 } from "@homebound/truss/runtime";
22524
22554
  import { jsx as jsx180, jsxs as jsxs96 } from "react/jsx-runtime";
22525
22555
  function SideNavLayout(props) {
22526
22556
  const hasProvider = useHasSideNavLayoutProvider();
@@ -22569,7 +22599,7 @@ function SideNavLayoutContent(props) {
22569
22599
  overflow: "oh",
22570
22600
  transition: "transitionWidth",
22571
22601
  zIndex: ["zIndex_var", {
22572
- "--zIndex": maybeCssVar49(zIndices.sideNav)
22602
+ "--zIndex": maybeCssVar50(zIndices.sideNav)
22573
22603
  }]
22574
22604
  },
22575
22605
  ...collapsed ? {