@homebound/beam 3.11.0 → 3.12.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.cjs CHANGED
@@ -129,6 +129,7 @@ __export(index_exports, {
129
129
  NavLink: () => NavLink,
130
130
  NumberField: () => NumberField,
131
131
  OpenModal: () => OpenModal,
132
+ PageHeader: () => PageHeader2,
132
133
  Pagination: () => Pagination,
133
134
  Palette: () => Palette,
134
135
  PresentationProvider: () => PresentationProvider,
@@ -4720,17 +4721,33 @@ function Popper(props) {
4720
4721
  styles,
4721
4722
  attributes
4722
4723
  } = (0, import_react_popper.usePopper)(targetElement, popperRef.current, {
4723
- modifiers: [{
4724
- name: "arrow",
4725
- options: {
4726
- element: arrowRef
4727
- }
4728
- }, {
4729
- name: "offset",
4730
- options: {
4731
- offset: [0, 5]
4724
+ // Use `fixed` positioning so the portaled tooltip is positioned relative to the viewport.
4725
+ // With the default `absolute` strategy the tooltip is appended to `document.body` and counts
4726
+ // toward the document's scroll size, so a trigger near an edge pushes the tooltip past the
4727
+ // document bounds and introduces scrollbars / renders off-screen. `fixed` elements don't
4728
+ // contribute to document scroll size, so they can be kept within the viewport instead.
4729
+ strategy: "fixed",
4730
+ modifiers: [
4731
+ {
4732
+ name: "arrow",
4733
+ options: {
4734
+ element: arrowRef
4735
+ }
4736
+ },
4737
+ {
4738
+ name: "offset",
4739
+ options: {
4740
+ offset: [0, 5]
4741
+ }
4742
+ },
4743
+ // Keep the tooltip inside the viewport (with a small gutter) rather than overflowing it.
4744
+ {
4745
+ name: "preventOverflow",
4746
+ options: {
4747
+ padding: 8
4748
+ }
4732
4749
  }
4733
- }],
4750
+ ],
4734
4751
  placement
4735
4752
  });
4736
4753
  return (0, import_react_dom.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { ref: popperRef, ...attributes.popper, ...ariaProps, onMouseEnter, onMouseLeave, ...(0, import_runtime2.mergeProps)(void 0, styles.popper, {
@@ -21564,11 +21581,41 @@ function MaxLines({
21564
21581
  ] });
21565
21582
  }
21566
21583
 
21567
- // src/components/ScrollShadows.tsx
21568
- var import_utils133 = require("@react-aria/utils");
21569
- var import_react120 = require("react");
21584
+ // src/components/PageHeader.tsx
21570
21585
  var import_runtime91 = require("@homebound/truss/runtime");
21571
21586
  var import_jsx_runtime167 = require("react/jsx-runtime");
21587
+ function PageHeader2(props) {
21588
+ const {
21589
+ title,
21590
+ rightSlot,
21591
+ ...otherProps
21592
+ } = props;
21593
+ const tid = useTestIds(otherProps, "pageHeader");
21594
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("header", { ...tid, ...(0, import_runtime91.trussProps)({
21595
+ display: "df",
21596
+ flexDirection: "fdc",
21597
+ paddingTop: "pt3",
21598
+ paddingRight: "pr3",
21599
+ paddingLeft: "pl3",
21600
+ borderBottomStyle: "bbs_solid",
21601
+ borderBottomWidth: "bbw_1px",
21602
+ borderColor: ["bc_var", {
21603
+ "--borderColor": "var(--b-surface-separator)"
21604
+ }],
21605
+ backgroundColor: ["bgColor_var", {
21606
+ "--backgroundColor": "var(--b-surface)"
21607
+ }]
21608
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { className: "df jcsb mb2 w100 gap1", children: [
21609
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("h1", { ...tid.title, className: "fw6 fz_20px lh_28px", children: title }) }),
21610
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { children: rightSlot })
21611
+ ] }) });
21612
+ }
21613
+
21614
+ // src/components/ScrollShadows.tsx
21615
+ var import_utils134 = require("@react-aria/utils");
21616
+ var import_react120 = require("react");
21617
+ var import_runtime92 = require("@homebound/truss/runtime");
21618
+ var import_jsx_runtime168 = require("react/jsx-runtime");
21572
21619
  function ScrollShadows(props) {
21573
21620
  const {
21574
21621
  children,
@@ -21592,7 +21639,7 @@ function ScrollShadows(props) {
21592
21639
  const commonStyles = {
21593
21640
  position: "absolute",
21594
21641
  zIndex: ["z_var", {
21595
- "--zIndex": (0, import_runtime91.maybeCssVar)(zIndices.scrollShadow)
21642
+ "--zIndex": (0, import_runtime92.maybeCssVar)(zIndices.scrollShadow)
21596
21643
  }],
21597
21644
  pointerEvents: "pointerEvents_none"
21598
21645
  };
@@ -21625,7 +21672,7 @@ function ScrollShadows(props) {
21625
21672
  ...startShadowStyles2,
21626
21673
  ...{
21627
21674
  background: ["background_var", {
21628
- "--background": (0, import_runtime91.maybeCssVar)(startGradient)
21675
+ "--background": (0, import_runtime92.maybeCssVar)(startGradient)
21629
21676
  }]
21630
21677
  }
21631
21678
  }, {
@@ -21633,7 +21680,7 @@ function ScrollShadows(props) {
21633
21680
  ...endShadowStyles2,
21634
21681
  ...{
21635
21682
  background: ["background_var", {
21636
- "--background": (0, import_runtime91.maybeCssVar)(endGradient)
21683
+ "--background": (0, import_runtime92.maybeCssVar)(endGradient)
21637
21684
  }]
21638
21685
  }
21639
21686
  }];
@@ -21654,14 +21701,14 @@ function ScrollShadows(props) {
21654
21701
  setShowEndShadow(start + boxSize < end);
21655
21702
  }, [horizontal]);
21656
21703
  const onResize = (0, import_react120.useCallback)(() => scrollRef.current && updateScrollProps(scrollRef.current), [updateScrollProps]);
21657
- (0, import_utils133.useResizeObserver)({
21704
+ (0, import_utils134.useResizeObserver)({
21658
21705
  ref: scrollRef,
21659
21706
  onResize
21660
21707
  });
21661
- return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0, import_runtime91.trussProps)({
21708
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { ...(0, import_runtime92.trussProps)({
21662
21709
  display: "df",
21663
21710
  flexDirection: ["fd_var", {
21664
- "--flexDirection": (0, import_runtime91.maybeCssVar)(!horizontal ? "column" : "row")
21711
+ "--flexDirection": (0, import_runtime92.maybeCssVar)(!horizontal ? "column" : "row")
21665
21712
  }],
21666
21713
  position: "relative",
21667
21714
  overflow: "oh",
@@ -21674,23 +21721,23 @@ function ScrollShadows(props) {
21674
21721
  width: width2
21675
21722
  }
21676
21723
  }), ...tid, children: [
21677
- /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ...(0, import_runtime91.trussProps)({
21724
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { ...(0, import_runtime92.trussProps)({
21678
21725
  ...startShadowStyles,
21679
21726
  ...{
21680
21727
  opacity: ["o_var", {
21681
- "--opacity": (0, import_runtime91.maybeCssVar)(showStartShadow ? 1 : 0)
21728
+ "--opacity": (0, import_runtime92.maybeCssVar)(showStartShadow ? 1 : 0)
21682
21729
  }]
21683
21730
  }
21684
21731
  }), "data-chromatic": "ignore" }),
21685
- /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ...(0, import_runtime91.trussProps)({
21732
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { ...(0, import_runtime92.trussProps)({
21686
21733
  ...endShadowStyles,
21687
21734
  ...{
21688
21735
  opacity: ["o_var", {
21689
- "--opacity": (0, import_runtime91.maybeCssVar)(showEndShadow ? 1 : 0)
21736
+ "--opacity": (0, import_runtime92.maybeCssVar)(showEndShadow ? 1 : 0)
21690
21737
  }]
21691
21738
  }
21692
21739
  }), "data-chromatic": "ignore" }),
21693
- /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ...(0, import_runtime91.trussProps)({
21740
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { ...(0, import_runtime92.trussProps)({
21694
21741
  ...xss,
21695
21742
  ...{
21696
21743
  overflow: "oa",
@@ -21736,25 +21783,25 @@ function useSideNavLinkGroupExpanded(linkGroup) {
21736
21783
  }
21737
21784
 
21738
21785
  // src/components/SideNav/SideNavLinkGroup.tsx
21739
- var import_jsx_runtime168 = require("react/jsx-runtime");
21786
+ var import_jsx_runtime169 = require("react/jsx-runtime");
21740
21787
  function SideNavLinkGroupView(props) {
21741
21788
  const { linkGroup, panelCollapsed } = props;
21742
21789
  const tid = useTestIds(props, "linkGroup");
21743
21790
  if (panelCollapsed) {
21744
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(import_jsx_runtime168.Fragment, { children: linkGroup.links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(NavLink, { variant: "side", ...link, iconOnly: !!link.icon, ...tid.link }, link.label)) });
21791
+ return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(import_jsx_runtime169.Fragment, { children: linkGroup.links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(NavLink, { variant: "side", ...link, iconOnly: !!link.icon, ...tid.link }, link.label)) });
21745
21792
  }
21746
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(SideNavLinkGroupDisclosure, { ...props });
21793
+ return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(SideNavLinkGroupDisclosure, { ...props });
21747
21794
  }
21748
21795
  function SideNavLinkGroupDisclosure(props) {
21749
21796
  const { linkGroup } = props;
21750
21797
  const { expanded, onToggle } = useSideNavLinkGroupExpanded(linkGroup);
21751
21798
  const tid = useTestIds(props, "linkGroup");
21752
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(NavGroup, { label: linkGroup.label, links: linkGroup.links, expanded, onClick: onToggle, ...tid });
21799
+ return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(NavGroup, { label: linkGroup.label, links: linkGroup.links, expanded, onClick: onToggle, ...tid });
21753
21800
  }
21754
21801
 
21755
21802
  // src/components/SideNav/SideNavSectionView.tsx
21756
- var import_runtime92 = require("@homebound/truss/runtime");
21757
- var import_jsx_runtime169 = require("react/jsx-runtime");
21803
+ var import_runtime93 = require("@homebound/truss/runtime");
21804
+ var import_jsx_runtime170 = require("react/jsx-runtime");
21758
21805
  function SideNavSectionView(props) {
21759
21806
  const {
21760
21807
  section,
@@ -21763,7 +21810,7 @@ function SideNavSectionView(props) {
21763
21810
  ...scopeProps
21764
21811
  } = props;
21765
21812
  const tid = useTestIds(scopeProps);
21766
- return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { ...(0, import_runtime92.trussProps)({
21813
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { ...(0, import_runtime93.trussProps)({
21767
21814
  display: "df",
21768
21815
  flexDirection: "fdc",
21769
21816
  paddingTop: "pt2",
@@ -21776,7 +21823,7 @@ function SideNavSectionView(props) {
21776
21823
  paddingBottom: "pb2"
21777
21824
  } : {}
21778
21825
  }), ...tid, children: [
21779
- section.label && !panelCollapsed && /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { ...(0, import_runtime92.trussProps)({
21826
+ section.label && !panelCollapsed && /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { ...(0, import_runtime93.trussProps)({
21780
21827
  fontWeight: "fw6",
21781
21828
  fontSize: "fz_10px",
21782
21829
  lineHeight: "lh_14px",
@@ -21788,7 +21835,7 @@ function SideNavSectionView(props) {
21788
21835
  paddingBottom: "pb1",
21789
21836
  textTransform: "ttu"
21790
21837
  }), ...tid.label, children: section.label }),
21791
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(SideNavItems, { ...scopeProps, items: section.items, panelCollapsed })
21838
+ /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(SideNavItems, { ...scopeProps, items: section.items, panelCollapsed })
21792
21839
  ] });
21793
21840
  }
21794
21841
 
@@ -21815,13 +21862,13 @@ function entryHasIcons(item) {
21815
21862
  }
21816
21863
 
21817
21864
  // src/components/SideNav/SideNavItems.tsx
21818
- var import_jsx_runtime170 = require("react/jsx-runtime");
21865
+ var import_jsx_runtime171 = require("react/jsx-runtime");
21819
21866
  function SideNavItems(props) {
21820
21867
  const { items, panelCollapsed } = props;
21821
21868
  const tid = useTestIds(props, "sideNav");
21822
- return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(import_jsx_runtime170.Fragment, { children: items.map((item, idx) => {
21869
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_jsx_runtime171.Fragment, { children: items.map((item, idx) => {
21823
21870
  if (isSideNavLink(item)) {
21824
- return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
21871
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
21825
21872
  NavLink,
21826
21873
  {
21827
21874
  variant: "side",
@@ -21833,7 +21880,7 @@ function SideNavItems(props) {
21833
21880
  );
21834
21881
  }
21835
21882
  if (isSideNavLinkGroup(item)) {
21836
- return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
21883
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
21837
21884
  SideNavLinkGroupView,
21838
21885
  {
21839
21886
  linkGroup: item,
@@ -21843,7 +21890,7 @@ function SideNavItems(props) {
21843
21890
  sideNavItemKey(item)
21844
21891
  );
21845
21892
  }
21846
- return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
21893
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
21847
21894
  SideNavSectionView,
21848
21895
  {
21849
21896
  section: item,
@@ -21858,7 +21905,7 @@ function SideNavItems(props) {
21858
21905
 
21859
21906
  // src/layouts/SideNavLayout/SideNavLayoutContext.tsx
21860
21907
  var import_react122 = require("react");
21861
- var import_jsx_runtime171 = require("react/jsx-runtime");
21908
+ var import_jsx_runtime172 = require("react/jsx-runtime");
21862
21909
  var SIDE_NAV_LAYOUT_STATE_STORAGE_KEY = "beam.sideNavLayout.navState";
21863
21910
  function loadStoredNavState() {
21864
21911
  try {
@@ -21905,7 +21952,7 @@ function SideNavLayoutProvider(props) {
21905
21952
  return next;
21906
21953
  });
21907
21954
  }, []);
21908
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(SideNavLayoutContext.Provider, { value: { navState, setNavState }, children: props.children });
21955
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(SideNavLayoutContext.Provider, { value: { navState, setNavState }, children: props.children });
21909
21956
  }
21910
21957
  function useSideNavLayoutContext() {
21911
21958
  return (0, import_react122.useContext)(SideNavLayoutContext) ?? { navState: "expanded", setNavState: () => {
@@ -21916,8 +21963,8 @@ function useHasSideNavLayoutProvider() {
21916
21963
  }
21917
21964
 
21918
21965
  // src/components/SideNav/SideNav.tsx
21919
- var import_runtime93 = require("@homebound/truss/runtime");
21920
- var import_jsx_runtime172 = require("react/jsx-runtime");
21966
+ var import_runtime94 = require("@homebound/truss/runtime");
21967
+ var import_jsx_runtime173 = require("react/jsx-runtime");
21921
21968
  function SideNav(props) {
21922
21969
  const {
21923
21970
  top,
@@ -21930,8 +21977,8 @@ function SideNav(props) {
21930
21977
  const tid = useTestIds(props, "sideNav");
21931
21978
  const panelCollapsed = navState === "collapse";
21932
21979
  const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
21933
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("nav", { className: "df fdc h100 fs0", ...tid, children: [
21934
- top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { ...(0, import_runtime93.trussProps)({
21980
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("nav", { className: "df fdc h100 fs0", ...tid, children: [
21981
+ top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime94.trussProps)({
21935
21982
  flexShrink: "fs0",
21936
21983
  paddingLeft: "pl2",
21937
21984
  paddingRight: "pr2",
@@ -21942,7 +21989,7 @@ function SideNav(props) {
21942
21989
  paddingBottom: "pb4"
21943
21990
  } : {}
21944
21991
  }), ...tid.top, children: top }),
21945
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { ...(0, import_runtime93.trussProps)({
21992
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime94.trussProps)({
21946
21993
  flexGrow: "fg1",
21947
21994
  overflowY: "oya",
21948
21995
  display: "df",
@@ -21954,8 +22001,8 @@ function SideNav(props) {
21954
22001
  ...top === void 0 ? {
21955
22002
  paddingTop: "pt5"
21956
22003
  } : {}
21957
- }), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(SideNavItems, { items, panelCollapsed }) }),
21958
- footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { ...(0, import_runtime93.trussProps)({
22004
+ }), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(SideNavItems, { items, panelCollapsed }) }),
22005
+ footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime94.trussProps)({
21959
22006
  flexShrink: "fs0",
21960
22007
  paddingLeft: "pl2",
21961
22008
  paddingRight: "pr2",
@@ -22032,8 +22079,8 @@ var snackbarId = 1;
22032
22079
  // src/components/Stepper.tsx
22033
22080
  var import_react124 = require("react");
22034
22081
  var import_react_aria53 = require("react-aria");
22035
- var import_runtime94 = require("@homebound/truss/runtime");
22036
- var import_jsx_runtime173 = require("react/jsx-runtime");
22082
+ var import_runtime95 = require("@homebound/truss/runtime");
22083
+ var import_jsx_runtime174 = require("react/jsx-runtime");
22037
22084
  var import_react125 = require("react");
22038
22085
  var __maybeInc14 = (inc) => {
22039
22086
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -22052,8 +22099,8 @@ function Stepper(props) {
22052
22099
  const maxStepWidth = 200;
22053
22100
  const minStepWidth = 100;
22054
22101
  const gap = 8;
22055
- return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
22056
- /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("ol", { ...(0, import_runtime94.trussProps)({
22102
+ return /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
22103
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("ol", { ...(0, import_runtime95.trussProps)({
22057
22104
  padding: "p_0",
22058
22105
  margin: "m_0",
22059
22106
  listStyle: "lis_none",
@@ -22063,7 +22110,7 @@ function Stepper(props) {
22063
22110
  }]
22064
22111
  }), children: steps.map((step) => {
22065
22112
  const isCurrent = currentStep === step.value;
22066
- return /* @__PURE__ */ (0, import_react125.createElement)("li", { ...(0, import_runtime94.trussProps)({
22113
+ return /* @__PURE__ */ (0, import_react125.createElement)("li", { ...(0, import_runtime95.trussProps)({
22067
22114
  display: "df",
22068
22115
  flexGrow: "fg1",
22069
22116
  flexDirection: "fdc",
@@ -22073,9 +22120,9 @@ function Stepper(props) {
22073
22120
  minWidth: ["mw_var", {
22074
22121
  "--minWidth": `${minStepWidth}px`
22075
22122
  }]
22076
- }), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
22123
+ }), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
22077
22124
  }) }),
22078
- /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime94.trussProps)({
22125
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0, import_runtime95.trussProps)({
22079
22126
  marginTop: "mt1",
22080
22127
  backgroundColor: "bgGray300",
22081
22128
  height: "h_4px",
@@ -22086,12 +22133,12 @@ function Stepper(props) {
22086
22133
  "--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
22087
22134
  }],
22088
22135
  width: "w100"
22089
- }), children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime94.trussProps)({
22136
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0, import_runtime95.trussProps)({
22090
22137
  backgroundColor: "bgBlue600",
22091
22138
  transition: "transition_width_200ms",
22092
22139
  height: "h100",
22093
22140
  width: ["w_var", {
22094
- "--width": (0, import_runtime94.maybeCssVar)(__maybeInc14(`${(lastCompletedStep + 1) / steps.length * 100}%`))
22141
+ "--width": (0, import_runtime95.maybeCssVar)(__maybeInc14(`${(lastCompletedStep + 1) / steps.length * 100}%`))
22095
22142
  }]
22096
22143
  }) }) })
22097
22144
  ] });
@@ -22127,7 +22174,7 @@ function StepButton(props) {
22127
22174
  boxShadow: "bshFocus"
22128
22175
  };
22129
22176
  const tid = useTestIds(props, "stepButton");
22130
- return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime94.trussProps)({
22177
+ return /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime95.trussProps)({
22131
22178
  ...{
22132
22179
  fontWeight: "fw6",
22133
22180
  fontSize: "fz_14px",
@@ -22179,7 +22226,7 @@ function StepButton(props) {
22179
22226
  } : {},
22180
22227
  ...isFocusVisible ? focusRingStyles2 : {}
22181
22228
  }), ...tid[defaultTestId(label)], children: [
22182
- /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
22229
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
22183
22230
  label
22184
22231
  ] });
22185
22232
  }
@@ -22190,12 +22237,12 @@ function StepIcon({
22190
22237
  isCurrent = false
22191
22238
  }) {
22192
22239
  if (state === "error") {
22193
- return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Icon, { icon: "errorCircle" });
22240
+ return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(Icon, { icon: "errorCircle" });
22194
22241
  }
22195
22242
  if (state === "complete") {
22196
- return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Icon, { icon: "check" });
22243
+ return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(Icon, { icon: "check" });
22197
22244
  }
22198
- return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime94.trussProps)({
22245
+ return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0, import_runtime95.trussProps)({
22199
22246
  width: "w_10px",
22200
22247
  height: "h_10px",
22201
22248
  borderStyle: "bss",
@@ -22210,8 +22257,8 @@ function StepIcon({
22210
22257
 
22211
22258
  // src/components/SuperDrawer/components/SuperDrawerHeader.tsx
22212
22259
  var import_react_dom6 = require("react-dom");
22213
- var import_runtime95 = require("@homebound/truss/runtime");
22214
- var import_jsx_runtime174 = require("react/jsx-runtime");
22260
+ var import_runtime96 = require("@homebound/truss/runtime");
22261
+ var import_jsx_runtime175 = require("react/jsx-runtime");
22215
22262
  function SuperDrawerHeader(props) {
22216
22263
  const {
22217
22264
  hideControls
@@ -22228,20 +22275,20 @@ function SuperDrawerHeader(props) {
22228
22275
  const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
22229
22276
  const isDetail = currentContent !== firstContent;
22230
22277
  const tid = useTestIds({}, "superDrawerHeader");
22231
- return (0, import_react_dom6.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "df aic jcsb gap3", ...tid, children: [
22232
- isStructuredProps(props) ? /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "df jcsb aic gap2 fg1", children: [
22233
- /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "fg1 df aic gap2", children: [
22234
- /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
22278
+ return (0, import_react_dom6.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("div", { className: "df aic jcsb gap3", ...tid, children: [
22279
+ isStructuredProps(props) ? /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("div", { className: "df jcsb aic gap2 fg1", children: [
22280
+ /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("div", { className: "fg1 df aic gap2", children: [
22281
+ /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
22235
22282
  props.left
22236
22283
  ] }),
22237
- props.right && /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { className: "fs0", children: props.right })
22238
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { className: "fg1", children: props.children }),
22239
- !hideControls && /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0, import_runtime95.trussProps)({
22284
+ props.right && /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("div", { className: "fs0", children: props.right })
22285
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("div", { className: "fg1", children: props.children }),
22286
+ !hideControls && /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("div", { ...(0, import_runtime96.trussProps)({
22240
22287
  flexShrink: "fs0",
22241
22288
  ...isDetail ? {
22242
22289
  visibility: "vh"
22243
22290
  } : {}
22244
- }), children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(ButtonGroup, { buttons: [{
22291
+ }), children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(ButtonGroup, { buttons: [{
22245
22292
  icon: "chevronLeft",
22246
22293
  onClick: () => onPrevClick && onPrevClick(),
22247
22294
  disabled: !onPrevClick
@@ -22257,18 +22304,18 @@ function isStructuredProps(props) {
22257
22304
  }
22258
22305
 
22259
22306
  // src/components/SuperDrawer/ConfirmCloseModal.tsx
22260
- var import_jsx_runtime175 = require("react/jsx-runtime");
22307
+ var import_jsx_runtime176 = require("react/jsx-runtime");
22261
22308
  function ConfirmCloseModal(props) {
22262
22309
  const { onClose, discardText = "Discard Changes", continueText = "Continue Editing" } = props;
22263
22310
  const { modalState } = useBeamContext();
22264
22311
  function closeModal() {
22265
22312
  modalState.current = void 0;
22266
22313
  }
22267
- return /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)(import_jsx_runtime175.Fragment, { children: [
22268
- /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(ModalHeader, { children: "Are you sure you want to cancel?" }),
22269
- /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(ModalBody, { children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("p", { children: "Any changes you've made so far will be lost." }) }),
22270
- /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)(ModalFooter, { children: [
22271
- /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
22314
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)(import_jsx_runtime176.Fragment, { children: [
22315
+ /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(ModalHeader, { children: "Are you sure you want to cancel?" }),
22316
+ /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(ModalBody, { children: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("p", { children: "Any changes you've made so far will be lost." }) }),
22317
+ /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)(ModalFooter, { children: [
22318
+ /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
22272
22319
  Button,
22273
22320
  {
22274
22321
  variant: "quaternary",
@@ -22279,7 +22326,7 @@ function ConfirmCloseModal(props) {
22279
22326
  }
22280
22327
  }
22281
22328
  ),
22282
- /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(Button, { label: continueText, onClick: closeModal })
22329
+ /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(Button, { label: continueText, onClick: closeModal })
22283
22330
  ] })
22284
22331
  ] });
22285
22332
  }
@@ -22289,7 +22336,7 @@ var import_framer_motion5 = require("framer-motion");
22289
22336
 
22290
22337
  // src/components/SuperDrawer/useSuperDrawer.tsx
22291
22338
  var import_react126 = require("react");
22292
- var import_jsx_runtime176 = require("react/jsx-runtime");
22339
+ var import_jsx_runtime177 = require("react/jsx-runtime");
22293
22340
  function useSuperDrawer() {
22294
22341
  const {
22295
22342
  drawerContentStack: contentStack,
@@ -22301,7 +22348,7 @@ function useSuperDrawer() {
22301
22348
  function canCloseDrawerDetails(i, doChange) {
22302
22349
  for (const canCloseDrawerDetail of canCloseDetailsChecks.current[i] ?? []) {
22303
22350
  if (!canClose(canCloseDrawerDetail)) {
22304
- openModal({ content: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
22351
+ openModal({ content: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
22305
22352
  return false;
22306
22353
  }
22307
22354
  }
@@ -22321,7 +22368,7 @@ function useSuperDrawer() {
22321
22368
  for (const canCloseDrawer of canCloseChecks.current) {
22322
22369
  if (!canClose(canCloseDrawer)) {
22323
22370
  openModal({
22324
- content: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
22371
+ content: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
22325
22372
  });
22326
22373
  return;
22327
22374
  }
@@ -22416,8 +22463,8 @@ function canClose(canCloseCheck) {
22416
22463
  }
22417
22464
 
22418
22465
  // src/components/SuperDrawer/SuperDrawerContent.tsx
22419
- var import_runtime96 = require("@homebound/truss/runtime");
22420
- var import_jsx_runtime177 = require("react/jsx-runtime");
22466
+ var import_runtime97 = require("@homebound/truss/runtime");
22467
+ var import_jsx_runtime178 = require("react/jsx-runtime");
22421
22468
  var SuperDrawerContent = ({
22422
22469
  children,
22423
22470
  actions
@@ -22437,17 +22484,17 @@ var SuperDrawerContent = ({
22437
22484
  } = firstContent ?? {};
22438
22485
  function wrapWithMotionAndMaybeBack(children2) {
22439
22486
  if (kind === "open") {
22440
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(import_framer_motion5.motion.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
22487
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_framer_motion5.motion.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
22441
22488
  } else if (kind === "detail") {
22442
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)(import_framer_motion5.motion.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
22489
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(import_framer_motion5.motion.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
22443
22490
  overflow: "auto"
22444
22491
  }, transition: {
22445
22492
  overflow: {
22446
22493
  delay: 0.3
22447
22494
  }
22448
22495
  }, children: [
22449
- /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
22450
- /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(import_framer_motion5.motion.div, { initial: {
22496
+ /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
22497
+ /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_framer_motion5.motion.div, { initial: {
22451
22498
  x: width2,
22452
22499
  opacity: 0
22453
22500
  }, animate: {
@@ -22465,7 +22512,7 @@ var SuperDrawerContent = ({
22465
22512
  }, className: "pt2", children: children2 })
22466
22513
  ] }, "content");
22467
22514
  } else {
22468
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(import_framer_motion5.motion.div, { ...(0, import_runtime96.mergeProps)(void 0, {
22515
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_framer_motion5.motion.div, { ...(0, import_runtime97.mergeProps)(void 0, {
22469
22516
  overflow: "auto"
22470
22517
  }, {
22471
22518
  paddingTop: "pt3",
@@ -22476,9 +22523,9 @@ var SuperDrawerContent = ({
22476
22523
  }) }, "content");
22477
22524
  }
22478
22525
  }
22479
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)(import_jsx_runtime177.Fragment, { children: [
22526
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(import_jsx_runtime178.Fragment, { children: [
22480
22527
  wrapWithMotionAndMaybeBack(children),
22481
- actions && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("footer", { className: "bts_solid btw_1px bcGray200 pt3 pb3 pr3 pl3 df aic jcfe", children: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(Button, { ...buttonProps }, i)) }) })
22528
+ actions && /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("footer", { className: "bts_solid btw_1px bcGray200 pt3 pb3 pr3 pl3 df aic jcfe", children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(Button, { ...buttonProps }, i)) }) })
22482
22529
  ] });
22483
22530
  };
22484
22531
 
@@ -22506,15 +22553,15 @@ var import_react127 = require("react");
22506
22553
  var import_react_aria54 = require("react-aria");
22507
22554
  var import_react_router = require("react-router");
22508
22555
  var import_react_router_dom5 = require("react-router-dom");
22509
- var import_runtime97 = require("@homebound/truss/runtime");
22510
- var import_jsx_runtime178 = require("react/jsx-runtime");
22556
+ var import_runtime98 = require("@homebound/truss/runtime");
22557
+ var import_jsx_runtime179 = require("react/jsx-runtime");
22511
22558
  function TabsWithContent(props) {
22512
22559
  const styles = hideTabs(props) ? {} : {
22513
22560
  paddingTop: "pt3"
22514
22561
  };
22515
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(import_jsx_runtime178.Fragment, { children: [
22516
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(Tabs, { ...props }),
22517
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(TabContent, { ...props, contentXss: {
22562
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)(import_jsx_runtime179.Fragment, { children: [
22563
+ /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(Tabs, { ...props }),
22564
+ /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(TabContent, { ...props, contentXss: {
22518
22565
  ...styles,
22519
22566
  ...props.contentXss
22520
22567
  } })
@@ -22539,7 +22586,7 @@ function TabContent(props) {
22539
22586
  return (
22540
22587
  // Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
22541
22588
  // Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
22542
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0, import_runtime97.trussProps)(contentXss), children: selectedTab.render() }) })
22589
+ /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0, import_runtime98.trussProps)(contentXss), children: selectedTab.render() }) })
22543
22590
  );
22544
22591
  }
22545
22592
  function Tabs(props) {
@@ -22581,7 +22628,7 @@ function Tabs(props) {
22581
22628
  setActive(selected);
22582
22629
  }
22583
22630
  }
22584
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)("div", { ...(0, import_runtime97.trussProps)({
22631
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("div", { ...(0, import_runtime98.trussProps)({
22585
22632
  ...{
22586
22633
  display: "df",
22587
22634
  alignItems: "aic",
@@ -22597,11 +22644,11 @@ function Tabs(props) {
22597
22644
  }
22598
22645
  } : {}
22599
22646
  }), children: [
22600
- !hideTabs(props) && /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
22647
+ !hideTabs(props) && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
22601
22648
  const uniqueValue = uniqueTabValue(tab);
22602
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
22649
+ return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
22603
22650
  }) }),
22604
- right && /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { className: "mla df aic gap1 pb1", children: right })
22651
+ right && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { className: "mla df aic gap1 pb1", children: right })
22605
22652
  ] });
22606
22653
  }
22607
22654
  function TabImpl(props) {
@@ -22645,7 +22692,7 @@ function TabImpl(props) {
22645
22692
  role: "tab",
22646
22693
  tabIndex: active ? 0 : -1,
22647
22694
  ...others,
22648
- ...(0, import_runtime97.trussProps)({
22695
+ ...(0, import_runtime98.trussProps)({
22649
22696
  ...baseStyles5,
22650
22697
  ...active && activeStyles3,
22651
22698
  ...isDisabled && disabledStyles4,
@@ -22661,17 +22708,17 @@ function TabImpl(props) {
22661
22708
  onClick: () => onClick(tab.value)
22662
22709
  }
22663
22710
  });
22664
- const tabLabel = /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(import_jsx_runtime178.Fragment, { children: [
22711
+ const tabLabel = /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)(import_jsx_runtime179.Fragment, { children: [
22665
22712
  label,
22666
- (icon || endAdornment) && /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: "ml1", children: icon ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(Icon, { icon }) : endAdornment })
22713
+ (icon || endAdornment) && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("span", { className: "ml1", children: icon ? /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(Icon, { icon }) : endAdornment })
22667
22714
  ] });
22668
22715
  return isDisabled ? maybeTooltip({
22669
22716
  title: resolveTooltip(disabled),
22670
22717
  placement: "top",
22671
- children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { ...tabProps, children: tabLabel })
22672
- }) : isRouteTab(tab) ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_router_dom5.Link, { ...(0, import_react_aria54.mergeProps)(tabProps, interactiveProps, {
22718
+ children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...tabProps, children: tabLabel })
22719
+ }) : isRouteTab(tab) ? /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(import_react_router_dom5.Link, { ...(0, import_react_aria54.mergeProps)(tabProps, interactiveProps, {
22673
22720
  className: "navLink"
22674
- }), to: tab.href, children: tabLabel }) : /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("button", { ...{
22721
+ }), to: tab.href, children: tabLabel }) : /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("button", { ...{
22675
22722
  ...tabProps,
22676
22723
  ...interactiveProps
22677
22724
  }, children: tabLabel });
@@ -22682,7 +22729,7 @@ function getTabStyles() {
22682
22729
  const borderBottomStyles = {
22683
22730
  borderBottomStyle: "bbs_solid",
22684
22731
  borderBottomWidth: ["borderBottomWidth_var", {
22685
- "--borderBottomWidth": (0, import_runtime97.maybeCssVar)(`${borderBottomWidthPx}px`)
22732
+ "--borderBottomWidth": (0, import_runtime98.maybeCssVar)(`${borderBottomWidthPx}px`)
22686
22733
  }],
22687
22734
  paddingBottom: ["pb_var", {
22688
22735
  "--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
@@ -22774,12 +22821,12 @@ function useToast() {
22774
22821
  }
22775
22822
 
22776
22823
  // src/layouts/SideNavLayout/SideNavLayout.tsx
22777
- var import_runtime98 = require("@homebound/truss/runtime");
22778
- var import_jsx_runtime179 = require("react/jsx-runtime");
22824
+ var import_runtime99 = require("@homebound/truss/runtime");
22825
+ var import_jsx_runtime180 = require("react/jsx-runtime");
22779
22826
  function SideNavLayout(props) {
22780
22827
  const hasProvider = useHasSideNavLayoutProvider();
22781
- if (hasProvider) return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(SideNavLayoutContent, { ...props });
22782
- return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(SideNavLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(SideNavLayoutContent, { ...props }) });
22828
+ if (hasProvider) return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(SideNavLayoutContent, { ...props });
22829
+ return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(SideNavLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(SideNavLayoutContent, { ...props }) });
22783
22830
  }
22784
22831
  function SideNavLayoutContent(props) {
22785
22832
  const {
@@ -22799,7 +22846,7 @@ function SideNavLayoutContent(props) {
22799
22846
  const railCollapsedWidthPx = 56;
22800
22847
  const collapsed = navState === "collapse";
22801
22848
  const showRail = sideNav !== void 0 && navState !== "hidden";
22802
- const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("div", { ...(0, import_runtime98.trussProps)({
22849
+ const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("div", { ...(0, import_runtime99.trussProps)({
22803
22850
  ...{
22804
22851
  position: "absolute",
22805
22852
  top: "top0",
@@ -22823,7 +22870,7 @@ function SideNavLayoutContent(props) {
22823
22870
  overflow: "oh",
22824
22871
  transition: "transitionWidth",
22825
22872
  zIndex: ["zIndex_var", {
22826
- "--zIndex": (0, import_runtime98.maybeCssVar)(zIndices.sideNav)
22873
+ "--zIndex": (0, import_runtime99.maybeCssVar)(zIndices.sideNav)
22827
22874
  }]
22828
22875
  },
22829
22876
  ...collapsed ? {
@@ -22845,12 +22892,12 @@ function SideNavLayoutContent(props) {
22845
22892
  }
22846
22893
  } : {}
22847
22894
  }), ...tid.sideNav, children: [
22848
- showCollapseToggle && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { className: "absolute right2 top2", children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
22849
- /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { className: "fg1 oya", ...tid.sideNavContent, children: sideNav })
22895
+ showCollapseToggle && /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { className: "absolute right2 top2", children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
22896
+ /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { className: "fg1 oya", ...tid.sideNavContent, children: sideNav })
22850
22897
  ] });
22851
- return /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("div", { className: "relative df oh fg1", ...tid, children: [
22852
- contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(ContrastScope, { children: rail }) : rail,
22853
- /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(ScrollableParent, { px: contentPx, xss: {
22898
+ return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("div", { className: "relative df oh fg1", ...tid, children: [
22899
+ contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(ContrastScope, { children: rail }) : rail,
22900
+ /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(ScrollableParent, { px: contentPx, xss: {
22854
22901
  marginLeft: ["ml_var", {
22855
22902
  "--marginLeft": `${railCollapsedWidthPx}px`
22856
22903
  }],
@@ -22961,6 +23008,7 @@ function SideNavLayoutContent(props) {
22961
23008
  NavLink,
22962
23009
  NumberField,
22963
23010
  OpenModal,
23011
+ PageHeader,
22964
23012
  Pagination,
22965
23013
  Palette,
22966
23014
  PresentationProvider,