@homebound/beam 3.13.0 → 3.14.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.d.cts CHANGED
@@ -4498,6 +4498,7 @@ declare const Icons: {
4498
4498
  unarchive: JSX.Element;
4499
4499
  duplicate: JSX.Element;
4500
4500
  filter: JSX.Element;
4501
+ impersonate: JSX.Element;
4501
4502
  errorCircle: JSX.Element;
4502
4503
  checkCircle: JSX.Element;
4503
4504
  infoCircle: JSX.Element;
@@ -8813,7 +8814,8 @@ declare const zIndices: {
8813
8814
  readonly pageStickyHeader: 70;
8814
8815
  readonly dragHandle: 80;
8815
8816
  readonly sideNav: 100;
8816
- readonly snackbar: 120;
8817
+ readonly pageOverlay: 1000;
8818
+ readonly snackbar: 1100;
8817
8819
  };
8818
8820
  type ZIndex = (typeof zIndices)[keyof typeof zIndices];
8819
8821
 
package/dist/index.d.ts CHANGED
@@ -4498,6 +4498,7 @@ declare const Icons: {
4498
4498
  unarchive: JSX.Element;
4499
4499
  duplicate: JSX.Element;
4500
4500
  filter: JSX.Element;
4501
+ impersonate: JSX.Element;
4501
4502
  errorCircle: JSX.Element;
4502
4503
  checkCircle: JSX.Element;
4503
4504
  infoCircle: JSX.Element;
@@ -8813,7 +8814,8 @@ declare const zIndices: {
8813
8814
  readonly pageStickyHeader: 70;
8814
8815
  readonly dragHandle: 80;
8815
8816
  readonly sideNav: 100;
8816
- readonly snackbar: 120;
8817
+ readonly pageOverlay: 1000;
8818
+ readonly snackbar: 1100;
8817
8819
  };
8818
8820
  type ZIndex = (typeof zIndices)[keyof typeof zIndices];
8819
8821
 
package/dist/index.js CHANGED
@@ -4482,6 +4482,11 @@ var Icons = {
4482
4482
  /* @__PURE__ */ jsx3("path", { d: "M20 2H8V4H20V16H22V4C22 2.897 21.103 2 20 2Z" })
4483
4483
  ] }),
4484
4484
  filter: /* @__PURE__ */ jsx3("path", { d: "M7.625 4C7.14175 4 6.75 4.39797 6.75 4.88889V5.92952C5.73046 6.29559 5 7.28336 5 8.44444C5 9.60553 5.73046 10.5933 6.75 10.9594V19.1111C6.75 19.602 7.14175 20 7.625 20C8.10825 20 8.5 19.602 8.5 19.1111V10.9594C9.51954 10.5933 10.25 9.60553 10.25 8.44444C10.25 7.28336 9.51954 6.29559 8.5 5.92952V4.88889C8.5 4.39797 8.10825 4 7.625 4ZM8.5 8.44444C8.5 8.93537 8.10825 9.33333 7.625 9.33333C7.14175 9.33333 6.75 8.93537 6.75 8.44444C6.75 7.95353 7.14175 7.55556 7.625 7.55556C8.10825 7.55556 8.5 7.95353 8.5 8.44444ZM16.375 4C15.8917 4 15.5 4.39797 15.5 4.88889V12.1517C14.4805 12.5178 13.75 13.5056 13.75 14.6667C13.75 15.8277 14.4805 16.8156 15.5 17.1816V19.1111C15.5 19.602 15.8917 20 16.375 20C16.8583 20 17.25 19.602 17.25 19.1111V17.1816C18.2695 16.8156 19 15.8277 19 14.6667C19 13.5056 18.2695 12.5178 17.25 12.1517V4.88889C17.25 4.39797 16.8583 4 16.375 4ZM17.25 14.6667C17.25 15.1576 16.8583 15.5556 16.375 15.5556C15.8917 15.5556 15.5 15.1576 15.5 14.6667C15.5 14.1757 15.8917 13.7778 16.375 13.7778C16.8583 13.7778 17.25 14.1757 17.25 14.6667Z" }),
4485
+ impersonate: /* @__PURE__ */ jsxs2(Fragment2, { children: [
4486
+ /* @__PURE__ */ jsx3("path", { d: "M17.882 7L18.5 7L18.5 4L22.5 8L18.5 12L18.5 9L17.882 9L15.5 9L15.5 7L17.882 7Z" }),
4487
+ /* @__PURE__ */ jsx3("path", { d: "M16.618 14.5L16 14.5L16 11.5L12 15.5L16 19.5L16 16.5L16.618 16.5L19 16.5L19 14.5L16.618 14.5Z" }),
4488
+ /* @__PURE__ */ jsx3("path", { d: "M9 13C9.88746 13 10.7211 13.2335 11.4443 13.6406L9.93457 15.1504C9.64021 15.0536 9.3263 15 9 15H7C5.346 15 4 16.346 4 18V19H2V18C2 15.243 4.243 13 7 13H9ZM12.0859 18H12C12 17.9703 11.9979 17.9407 11.9971 17.9111L12.0859 18ZM8 4C10.28 4 12 5.72 12 8C12 10.28 10.28 12 8 12C5.72 12 4 10.28 4 8C4 5.72 5.72 4 8 4ZM8 6C6.822 6 6 6.822 6 8C6 9.178 6.822 10 8 10C9.178 10 10 9.178 10 8C10 6.822 9.178 6 8 6Z" })
4489
+ ] }),
4485
4490
  // Alerts
4486
4491
  errorCircle: /* @__PURE__ */ jsxs2(Fragment2, { children: [
4487
4492
  /* @__PURE__ */ jsx3("path", { d: "M11.953 2C6.465 2 2 6.486 2 12C2 17.514 6.486 22 12 22C17.514 22 22 17.514 22 12C22 6.486 17.493 2 11.953 2ZM12 20C7.589 20 4 16.411 4 12C4 7.589 7.567 4 11.953 4C16.391 4 20 7.589 20 12C20 16.411 16.411 20 12 20Z" }),
@@ -5744,8 +5749,11 @@ var zIndices = {
5744
5749
  // Side-nav layer. Mobile rail overlays page content when expanded; sits below
5745
5750
  // snackbar so toasts still land on top.
5746
5751
  sideNav: 100,
5747
- // Top of the stack.
5748
- snackbar: 120
5752
+ // Full-page overlays high enough to clear consuming-app nav bars (~999).
5753
+ // Both layouts own their Toast internally so it renders inside the overlay header.
5754
+ pageOverlay: 1e3,
5755
+ // Top of stack
5756
+ snackbar: 1100
5749
5757
  };
5750
5758
 
5751
5759
  // src/components/Table/components/ExpandableHeader.tsx
@@ -18273,7 +18281,21 @@ function FormPageLayoutComponent(props) {
18273
18281
  // since this layout will be replacing most superdrawers/sidebars, we keep the listing mounted below to preserve the users's
18274
18282
  // scroll position & filters
18275
18283
  // 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({
18284
+ /* @__PURE__ */ jsx125("div", { ...trussProps65({
18285
+ position: "fixed",
18286
+ top: "top0",
18287
+ bottom: "bottom0",
18288
+ left: "left0",
18289
+ right: "right0",
18290
+ zIndex: ["z_var", {
18291
+ "--zIndex": maybeCssVar37(zIndices.pageOverlay)
18292
+ }],
18293
+ overflowY: "oya",
18294
+ backgroundColor: "bgWhite",
18295
+ display: "df",
18296
+ justifyContent: "jcc",
18297
+ alignItems: "aifs"
18298
+ }), ...tids, children: /* @__PURE__ */ jsxs64("div", { ...trussProps65({
18277
18299
  width: "w100",
18278
18300
  maxWidth: ["maxw_var", {
18279
18301
  "--maxWidth": `${maxContentWidthPx}px`
@@ -19917,7 +19939,7 @@ function SidePanel(props) {
19917
19939
  }
19918
19940
 
19919
19941
  // src/components/Layout/TableReviewLayout/TableReviewLayout.tsx
19920
- import { trussProps as trussProps73 } from "@homebound/truss/runtime";
19942
+ import { trussProps as trussProps73, maybeCssVar as maybeCssVar42 } from "@homebound/truss/runtime";
19921
19943
  import { jsx as jsx152, jsxs as jsxs78 } from "react/jsx-runtime";
19922
19944
  var defaultRightPaneWidth = 450;
19923
19945
  function TableReviewLayout(props) {
@@ -19959,8 +19981,21 @@ function TableReviewLayout(props) {
19959
19981
  bordered: true
19960
19982
  }, stickyHeader: true });
19961
19983
  }
19962
- return /* @__PURE__ */ jsxs78("div", { className: "fixed top0 bottom0 left0 right0 z_1000 bgWhite df fdc", ...tid, children: [
19984
+ return /* @__PURE__ */ jsxs78("div", { ...trussProps73({
19985
+ position: "fixed",
19986
+ top: "top0",
19987
+ bottom: "bottom0",
19988
+ left: "left0",
19989
+ right: "right0",
19990
+ zIndex: ["z_var", {
19991
+ "--zIndex": maybeCssVar42(zIndices.pageOverlay)
19992
+ }],
19993
+ backgroundColor: "bgWhite",
19994
+ display: "df",
19995
+ flexDirection: "fdc"
19996
+ }), ...tid, children: [
19963
19997
  /* @__PURE__ */ jsxs78("header", { className: "pl3 pr3 pt3 pb2 fs0", ...tid.header, children: [
19998
+ /* @__PURE__ */ jsx152(Toast, {}),
19964
19999
  /* @__PURE__ */ jsxs78("div", { className: "df jcsb aic", children: [
19965
20000
  /* @__PURE__ */ jsxs78("div", { children: [
19966
20001
  breadCrumb && /* @__PURE__ */ jsx152(PageHeaderBreadcrumbs, { breadcrumb: breadCrumb }),
@@ -20361,7 +20396,7 @@ function getStyles(type) {
20361
20396
  }
20362
20397
 
20363
20398
  // src/components/Card.tsx
20364
- import { trussProps as trussProps76, maybeCssVar as maybeCssVar42 } from "@homebound/truss/runtime";
20399
+ import { trussProps as trussProps76, maybeCssVar as maybeCssVar43 } from "@homebound/truss/runtime";
20365
20400
  import { jsx as jsx157, jsxs as jsxs82 } from "react/jsx-runtime";
20366
20401
  function Card(props) {
20367
20402
  const {
@@ -20414,7 +20449,7 @@ function Card(props) {
20414
20449
  width: "w100",
20415
20450
  height: "h100",
20416
20451
  objectFit: ["objectFit_var", {
20417
- "--objectFit": maybeCssVar42(imageFit)
20452
+ "--objectFit": maybeCssVar43(imageFit)
20418
20453
  }]
20419
20454
  }), src: imgSrc, alt: title, ...tid.img }) }),
20420
20455
  isHovered && buttonMenuItems && /* @__PURE__ */ jsx157("div", { ...trussProps76({
@@ -20855,7 +20890,7 @@ function ResponsiveGridItem(props) {
20855
20890
 
20856
20891
  // src/components/Grid/useResponsiveGrid.ts
20857
20892
  import { useMemo as useMemo44 } from "react";
20858
- import { maybeCssVar as maybeCssVar43 } from "@homebound/truss/runtime";
20893
+ import { maybeCssVar as maybeCssVar44 } from "@homebound/truss/runtime";
20859
20894
  var __maybeInc12 = (inc) => {
20860
20895
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
20861
20896
  };
@@ -20874,11 +20909,11 @@ function useResponsiveGrid(props) {
20874
20909
  return {
20875
20910
  display: "dg",
20876
20911
  gridTemplateColumns: ["gtc_var", {
20877
- "--gridTemplateColumns": maybeCssVar43(gridTemplateColumns)
20912
+ "--gridTemplateColumns": maybeCssVar44(gridTemplateColumns)
20878
20913
  }],
20879
20914
  containerType: "ctis",
20880
20915
  gap: ["gap_var", {
20881
- "--gap": maybeCssVar43(__maybeInc12(gridGap))
20916
+ "--gap": maybeCssVar44(__maybeInc12(gridGap))
20882
20917
  }]
20883
20918
  };
20884
20919
  }, [minColumnWidth, gap, columns]);
@@ -21003,7 +21038,7 @@ function HbSpinnerProvider({
21003
21038
  // src/components/MaxLines.tsx
21004
21039
  import { useLayoutEffect as useLayoutEffect2, useResizeObserver as useResizeObserver5 } from "@react-aria/utils";
21005
21040
  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";
21041
+ import { trussProps as trussProps81, maybeCssVar as maybeCssVar45 } from "@homebound/truss/runtime";
21007
21042
  import { jsx as jsx164, jsxs as jsxs84 } from "react/jsx-runtime";
21008
21043
  function MaxLines({
21009
21044
  maxLines,
@@ -21031,7 +21066,7 @@ function MaxLines({
21031
21066
  /* @__PURE__ */ jsx164("div", { ref: elRef, ...trussProps81({
21032
21067
  ...!expanded ? {
21033
21068
  WebkitLineClamp: ["lineClamp_var", {
21034
- "--WebkitLineClamp": maybeCssVar44(maxLines)
21069
+ "--WebkitLineClamp": maybeCssVar45(maxLines)
21035
21070
  }],
21036
21071
  overflow: "oh",
21037
21072
  display: "d_negwebkit_box",
@@ -21049,7 +21084,7 @@ import { useEffect as useEffect32, useMemo as useMemo47, useRef as useRef52, use
21049
21084
  import { mergeProps as mergeProps25, useFocusRing as useFocusRing14, useHover as useHover18 } from "react-aria";
21050
21085
  import { matchPath } from "react-router";
21051
21086
  import { Link as Link5, useLocation } from "react-router-dom";
21052
- import { trussProps as trussProps82, maybeCssVar as maybeCssVar45 } from "@homebound/truss/runtime";
21087
+ import { trussProps as trussProps82, maybeCssVar as maybeCssVar46 } from "@homebound/truss/runtime";
21053
21088
  import { Fragment as Fragment38, jsx as jsx165, jsxs as jsxs85 } from "react/jsx-runtime";
21054
21089
  function TabsWithContent(props) {
21055
21090
  const styles = hideTabs(props) ? {} : {
@@ -21225,7 +21260,7 @@ function getTabStyles() {
21225
21260
  const borderBottomStyles = {
21226
21261
  borderBottomStyle: "bbs_solid",
21227
21262
  borderBottomWidth: ["borderBottomWidth_var", {
21228
- "--borderBottomWidth": maybeCssVar45(`${borderBottomWidthPx}px`)
21263
+ "--borderBottomWidth": maybeCssVar46(`${borderBottomWidthPx}px`)
21229
21264
  }],
21230
21265
  paddingBottom: ["pb_var", {
21231
21266
  "--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
@@ -21345,7 +21380,7 @@ function PageHeader2(props) {
21345
21380
  // src/components/ScrollShadows.tsx
21346
21381
  import { useResizeObserver as useResizeObserver6 } from "@react-aria/utils";
21347
21382
  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";
21383
+ import { trussProps as trussProps84, maybeCssVar as maybeCssVar47 } from "@homebound/truss/runtime";
21349
21384
  import { jsx as jsx167, jsxs as jsxs87 } from "react/jsx-runtime";
21350
21385
  function ScrollShadows(props) {
21351
21386
  const {
@@ -21370,7 +21405,7 @@ function ScrollShadows(props) {
21370
21405
  const commonStyles = {
21371
21406
  position: "absolute",
21372
21407
  zIndex: ["z_var", {
21373
- "--zIndex": maybeCssVar46(zIndices.scrollShadow)
21408
+ "--zIndex": maybeCssVar47(zIndices.scrollShadow)
21374
21409
  }],
21375
21410
  pointerEvents: "pointerEvents_none"
21376
21411
  };
@@ -21403,7 +21438,7 @@ function ScrollShadows(props) {
21403
21438
  ...startShadowStyles2,
21404
21439
  ...{
21405
21440
  background: ["background_var", {
21406
- "--background": maybeCssVar46(startGradient)
21441
+ "--background": maybeCssVar47(startGradient)
21407
21442
  }]
21408
21443
  }
21409
21444
  }, {
@@ -21411,7 +21446,7 @@ function ScrollShadows(props) {
21411
21446
  ...endShadowStyles2,
21412
21447
  ...{
21413
21448
  background: ["background_var", {
21414
- "--background": maybeCssVar46(endGradient)
21449
+ "--background": maybeCssVar47(endGradient)
21415
21450
  }]
21416
21451
  }
21417
21452
  }];
@@ -21439,7 +21474,7 @@ function ScrollShadows(props) {
21439
21474
  return /* @__PURE__ */ jsxs87("div", { ...trussProps84({
21440
21475
  display: "df",
21441
21476
  flexDirection: ["fd_var", {
21442
- "--flexDirection": maybeCssVar46(!horizontal ? "column" : "row")
21477
+ "--flexDirection": maybeCssVar47(!horizontal ? "column" : "row")
21443
21478
  }],
21444
21479
  position: "relative",
21445
21480
  overflow: "oh",
@@ -21456,7 +21491,7 @@ function ScrollShadows(props) {
21456
21491
  ...startShadowStyles,
21457
21492
  ...{
21458
21493
  opacity: ["o_var", {
21459
- "--opacity": maybeCssVar46(showStartShadow ? 1 : 0)
21494
+ "--opacity": maybeCssVar47(showStartShadow ? 1 : 0)
21460
21495
  }]
21461
21496
  }
21462
21497
  }), "data-chromatic": "ignore" }),
@@ -21464,7 +21499,7 @@ function ScrollShadows(props) {
21464
21499
  ...endShadowStyles,
21465
21500
  ...{
21466
21501
  opacity: ["o_var", {
21467
- "--opacity": maybeCssVar46(showEndShadow ? 1 : 0)
21502
+ "--opacity": maybeCssVar47(showEndShadow ? 1 : 0)
21468
21503
  }]
21469
21504
  }
21470
21505
  }), "data-chromatic": "ignore" }),
@@ -21687,7 +21722,7 @@ function useAppNavGroupExpanded(linkGroup) {
21687
21722
  }
21688
21723
 
21689
21724
  // src/components/AppNav/AppNavGroup.tsx
21690
- import { trussProps as trussProps86, maybeCssVar as maybeCssVar47 } from "@homebound/truss/runtime";
21725
+ import { trussProps as trussProps86, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
21691
21726
  import { Fragment as Fragment39, jsx as jsx169, jsxs as jsxs89 } from "react/jsx-runtime";
21692
21727
  var __maybeInc13 = (inc) => {
21693
21728
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -21736,7 +21771,7 @@ function AppNavGroupDisclosure(props) {
21736
21771
  overflow: "oh",
21737
21772
  transition: "transitionHeight",
21738
21773
  height: ["h_var", {
21739
- "--height": maybeCssVar47(__maybeInc13(contentHeight))
21774
+ "--height": maybeCssVar48(__maybeInc13(contentHeight))
21740
21775
  }]
21741
21776
  }), ...tid.panel, children: /* @__PURE__ */ jsx169("div", { ref: setContentEl, className: "df fdc pl2", children: /* @__PURE__ */ jsx169(AppNavItems, { items: linkGroup.items, panelCollapsed: false, ...tid }) }) })
21742
21777
  ] });
@@ -22043,7 +22078,7 @@ var snackbarId = 1;
22043
22078
  // src/components/Stepper.tsx
22044
22079
  import { useRef as useRef56 } from "react";
22045
22080
  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";
22081
+ import { trussProps as trussProps89, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
22047
22082
  import { jsx as jsx175, jsxs as jsxs92 } from "react/jsx-runtime";
22048
22083
  import { createElement as createElement4 } from "react";
22049
22084
  var __maybeInc14 = (inc) => {
@@ -22102,7 +22137,7 @@ function Stepper(props) {
22102
22137
  transition: "transition_width_200ms",
22103
22138
  height: "h100",
22104
22139
  width: ["w_var", {
22105
- "--width": maybeCssVar48(__maybeInc14(`${(lastCompletedStep + 1) / steps.length * 100}%`))
22140
+ "--width": maybeCssVar49(__maybeInc14(`${(lastCompletedStep + 1) / steps.length * 100}%`))
22106
22141
  }]
22107
22142
  }) }) })
22108
22143
  ] });
@@ -22520,7 +22555,7 @@ function useToast() {
22520
22555
  }
22521
22556
 
22522
22557
  // src/layouts/SideNavLayout/SideNavLayout.tsx
22523
- import { trussProps as trussProps91, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
22558
+ import { trussProps as trussProps91, maybeCssVar as maybeCssVar50 } from "@homebound/truss/runtime";
22524
22559
  import { jsx as jsx180, jsxs as jsxs96 } from "react/jsx-runtime";
22525
22560
  function SideNavLayout(props) {
22526
22561
  const hasProvider = useHasSideNavLayoutProvider();
@@ -22569,7 +22604,7 @@ function SideNavLayoutContent(props) {
22569
22604
  overflow: "oh",
22570
22605
  transition: "transitionWidth",
22571
22606
  zIndex: ["zIndex_var", {
22572
- "--zIndex": maybeCssVar49(zIndices.sideNav)
22607
+ "--zIndex": maybeCssVar50(zIndices.sideNav)
22573
22608
  }]
22574
22609
  },
22575
22610
  ...collapsed ? {