@homebound/beam 3.49.0 → 3.51.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.js CHANGED
@@ -24537,10 +24537,178 @@ function StepIcon({
24537
24537
  }) }) });
24538
24538
  }
24539
24539
 
24540
+ // src/components/StepperTabs/StepperTab.tsx
24541
+ import { useRef as useRef63 } from "react";
24542
+ import { mergeProps as mergeProps31, useButton as useButton13, useFocusRing as useFocusRing19, useHover as useHover23, VisuallyHidden as VisuallyHidden10 } from "react-aria";
24543
+ import { trussProps as trussProps105, maybeCssVar as maybeCssVar56 } from "@homebound/truss/runtime";
24544
+ import { jsx as jsx197, jsxs as jsxs100 } from "react/jsx-runtime";
24545
+ function StepperTab(props) {
24546
+ const {
24547
+ label,
24548
+ value,
24549
+ active,
24550
+ completed,
24551
+ onClick,
24552
+ disabled = false,
24553
+ collapsed = false
24554
+ } = props;
24555
+ const ariaProps = {
24556
+ onPress: () => onClick(value),
24557
+ isDisabled: disabled || collapsed
24558
+ };
24559
+ const ref = useRef63(null);
24560
+ const {
24561
+ buttonProps
24562
+ } = useButton13(ariaProps, ref);
24563
+ const {
24564
+ isFocusVisible,
24565
+ focusProps
24566
+ } = useFocusRing19();
24567
+ const {
24568
+ hoverProps,
24569
+ isHovered
24570
+ } = useHover23(ariaProps);
24571
+ const tid = useTestIds(props, "stepperTab");
24572
+ return /* @__PURE__ */ jsxs100("button", { ref, ...mergeProps31(buttonProps, focusProps, hoverProps), "aria-label": label, ...trussProps105({
24573
+ ...stepperTabStyles.baseStyles,
24574
+ ...getStateStyles(active, completed),
24575
+ ...isHovered && !disabled ? stepperTabStyles.hoverStyles : {},
24576
+ ...collapsed ? getCollapsedStyles(active, completed) : {},
24577
+ ...disabled ? stepperTabStyles.disabledStyles : {},
24578
+ ...isFocusVisible ? stepperTabStyles.focusRingStyles : {}
24579
+ }), ...tid[defaultTestId(value)], children: [
24580
+ /* @__PURE__ */ jsx197("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_1", children: label }),
24581
+ completed && /* @__PURE__ */ jsx197("span", { className: "fs0 ml1", children: /* @__PURE__ */ jsx197(Icon, { icon: "check", inc: 2.5, ...tid.check }) }),
24582
+ /* @__PURE__ */ jsx197(VisuallyHidden10, { children: completed ? "Complete" : "Not Complete" })
24583
+ ] });
24584
+ }
24585
+ function withBorderBottom(color) {
24586
+ return {
24587
+ ...{
24588
+ borderBottomStyle: "bbs_solid",
24589
+ borderBottomWidth: ["borderBottomWidth_var", {
24590
+ "--borderBottomWidth": maybeCssVar56(`3px`)
24591
+ }]
24592
+ },
24593
+ ...color
24594
+ };
24595
+ }
24596
+ function getStateStyles(active, completed) {
24597
+ return {
24598
+ ...{
24599
+ color: "gray400",
24600
+ ...active || completed ? {
24601
+ color: "blue700"
24602
+ } : {},
24603
+ ...active ? {
24604
+ fontWeight: "fw6",
24605
+ fontSize: "fz_14px",
24606
+ lineHeight: "lh_20px"
24607
+ } : {}
24608
+ },
24609
+ ...withBorderBottom(active || completed ? {
24610
+ borderColor: "bcBlue600"
24611
+ } : {
24612
+ borderColor: "bcGray300"
24613
+ })
24614
+ };
24615
+ }
24616
+ function getCollapsedStyles(active, completed) {
24617
+ return {
24618
+ ...{
24619
+ cursor: "cursor_default",
24620
+ height: "h_0px",
24621
+ paddingTop: "pt0",
24622
+ paddingBottom: "pb0"
24623
+ },
24624
+ ...completed && !active ? {
24625
+ borderColor: "bcBlue600"
24626
+ } : {
24627
+ borderColor: "bcGray300"
24628
+ }
24629
+ };
24630
+ }
24631
+ var stepperTabStyles = {
24632
+ baseStyles: {
24633
+ display: "df",
24634
+ alignItems: "aic",
24635
+ flexGrow: "fg1",
24636
+ paddingTop: "pt1",
24637
+ paddingBottom: "pb1",
24638
+ paddingRight: "pr_12px",
24639
+ paddingLeft: "pl_24px",
24640
+ fontWeight: "fw4",
24641
+ fontSize: "fz_14px",
24642
+ lineHeight: "lh_20px",
24643
+ overflow: "oh",
24644
+ textAlign: "tal"
24645
+ },
24646
+ hoverStyles: {
24647
+ backgroundColor: "bgGray100"
24648
+ },
24649
+ focusRingStyles: {
24650
+ boxShadow: "bshFocus",
24651
+ outline: "outline0"
24652
+ },
24653
+ // Disabled always wins over both the state's and the collapsed border color.
24654
+ disabledStyles: {
24655
+ color: "gray400",
24656
+ cursor: "cursorNotAllowed",
24657
+ borderColor: "bcGray300"
24658
+ }
24659
+ };
24660
+
24661
+ // src/components/StepperTabs/StepperTabs.tsx
24662
+ import { trussProps as trussProps106 } from "@homebound/truss/runtime";
24663
+ import { jsx as jsx198 } from "react/jsx-runtime";
24664
+ import { createElement as createElement6 } from "react";
24665
+ function StepperTabs(props) {
24666
+ const {
24667
+ steps,
24668
+ currentStep,
24669
+ onChange
24670
+ } = props;
24671
+ const tid = useTestIds(props, "stepperTabs");
24672
+ const {
24673
+ sm: collapsed
24674
+ } = useBreakpoint();
24675
+ const capWidth = steps.length <= 3;
24676
+ return /* @__PURE__ */ jsx198("nav", { "aria-label": "steps", className: "w100", ...tid, children: /* @__PURE__ */ jsx198("ol", { ...trussProps106({
24677
+ padding: "p_0",
24678
+ margin: "m_0",
24679
+ listStyle: "lis_none",
24680
+ display: "df",
24681
+ gap: ["gap_var", {
24682
+ "--gap": `${gapPx}px`
24683
+ }],
24684
+ width: "w100",
24685
+ borderBottomStyle: "bbs_solid",
24686
+ borderBottomWidth: "bbw_1px",
24687
+ borderColor: "bcGray400"
24688
+ }), children: steps.map((step) => {
24689
+ const isCurrent = step.value === currentStep;
24690
+ return /* @__PURE__ */ createElement6("li", { ...trussProps106({
24691
+ display: "df",
24692
+ flexGrow: "fg1",
24693
+ flexBasis: "fb_0",
24694
+ ...collapsed ? {
24695
+ minWidth: "mw0"
24696
+ } : {},
24697
+ ...capWidth ? {
24698
+ maxWidth: ["maxw_var", {
24699
+ "--maxWidth": `${maxStepWidthPx}px`
24700
+ }]
24701
+ } : {}
24702
+ }), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx198(StepperTab, { label: step.label, value: step.value, active: isCurrent, completed: step.completed, disabled: step.disabled, collapsed, onClick: onChange, ...tid.tab }));
24703
+ }) }) });
24704
+ }
24705
+ var maxStepWidthPx = 280;
24706
+ var gapPx = 6;
24707
+
24540
24708
  // src/components/SuperDrawer/components/SuperDrawerHeader.tsx
24541
24709
  import { createPortal as createPortal7 } from "react-dom";
24542
- import { trussProps as trussProps105 } from "@homebound/truss/runtime";
24543
- import { jsx as jsx197, jsxs as jsxs100 } from "react/jsx-runtime";
24710
+ import { trussProps as trussProps107 } from "@homebound/truss/runtime";
24711
+ import { jsx as jsx199, jsxs as jsxs101 } from "react/jsx-runtime";
24544
24712
  function SuperDrawerHeader(props) {
24545
24713
  const {
24546
24714
  hideControls
@@ -24557,20 +24725,20 @@ function SuperDrawerHeader(props) {
24557
24725
  const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
24558
24726
  const isDetail = currentContent !== firstContent;
24559
24727
  const tid = useTestIds({}, "superDrawerHeader");
24560
- return createPortal7(/* @__PURE__ */ jsxs100("div", { className: "df aic jcsb gap3", ...tid, children: [
24561
- isStructuredProps(props) ? /* @__PURE__ */ jsxs100("div", { className: "df jcsb aic gap2 fg1", children: [
24562
- /* @__PURE__ */ jsxs100("div", { className: "fg1 df aic gap2", children: [
24563
- /* @__PURE__ */ jsx197("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
24728
+ return createPortal7(/* @__PURE__ */ jsxs101("div", { className: "df aic jcsb gap3", ...tid, children: [
24729
+ isStructuredProps(props) ? /* @__PURE__ */ jsxs101("div", { className: "df jcsb aic gap2 fg1", children: [
24730
+ /* @__PURE__ */ jsxs101("div", { className: "fg1 df aic gap2", children: [
24731
+ /* @__PURE__ */ jsx199("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
24564
24732
  props.left
24565
24733
  ] }),
24566
- props.right && /* @__PURE__ */ jsx197("div", { className: "fs0", children: props.right })
24567
- ] }) : /* @__PURE__ */ jsx197("div", { className: "fg1", children: props.children }),
24568
- !hideControls && /* @__PURE__ */ jsx197("div", { ...trussProps105({
24734
+ props.right && /* @__PURE__ */ jsx199("div", { className: "fs0", children: props.right })
24735
+ ] }) : /* @__PURE__ */ jsx199("div", { className: "fg1", children: props.children }),
24736
+ !hideControls && /* @__PURE__ */ jsx199("div", { ...trussProps107({
24569
24737
  flexShrink: "fs0",
24570
24738
  ...isDetail ? {
24571
24739
  visibility: "vh"
24572
24740
  } : {}
24573
- }), children: /* @__PURE__ */ jsx197(ButtonGroup, { buttons: [{
24741
+ }), children: /* @__PURE__ */ jsx199(ButtonGroup, { buttons: [{
24574
24742
  icon: "chevronLeft",
24575
24743
  onClick: () => onPrevClick && onPrevClick(),
24576
24744
  disabled: !onPrevClick
@@ -24586,18 +24754,18 @@ function isStructuredProps(props) {
24586
24754
  }
24587
24755
 
24588
24756
  // src/components/SuperDrawer/ConfirmCloseModal.tsx
24589
- import { Fragment as Fragment45, jsx as jsx198, jsxs as jsxs101 } from "react/jsx-runtime";
24757
+ import { Fragment as Fragment45, jsx as jsx200, jsxs as jsxs102 } from "react/jsx-runtime";
24590
24758
  function ConfirmCloseModal(props) {
24591
24759
  const { onClose, discardText = "Discard Changes", continueText = "Continue Editing" } = props;
24592
24760
  const { modalState } = useBeamContext();
24593
24761
  function closeModal() {
24594
24762
  modalState.current = void 0;
24595
24763
  }
24596
- return /* @__PURE__ */ jsxs101(Fragment45, { children: [
24597
- /* @__PURE__ */ jsx198(ModalHeader, { children: "Are you sure you want to cancel?" }),
24598
- /* @__PURE__ */ jsx198(ModalBody, { children: /* @__PURE__ */ jsx198("p", { children: "Any changes you've made so far will be lost." }) }),
24599
- /* @__PURE__ */ jsxs101(ModalFooter, { children: [
24600
- /* @__PURE__ */ jsx198(
24764
+ return /* @__PURE__ */ jsxs102(Fragment45, { children: [
24765
+ /* @__PURE__ */ jsx200(ModalHeader, { children: "Are you sure you want to cancel?" }),
24766
+ /* @__PURE__ */ jsx200(ModalBody, { children: /* @__PURE__ */ jsx200("p", { children: "Any changes you've made so far will be lost." }) }),
24767
+ /* @__PURE__ */ jsxs102(ModalFooter, { children: [
24768
+ /* @__PURE__ */ jsx200(
24601
24769
  Button,
24602
24770
  {
24603
24771
  variant: "quaternary",
@@ -24608,7 +24776,7 @@ function ConfirmCloseModal(props) {
24608
24776
  }
24609
24777
  }
24610
24778
  ),
24611
- /* @__PURE__ */ jsx198(Button, { label: continueText, onClick: closeModal })
24779
+ /* @__PURE__ */ jsx200(Button, { label: continueText, onClick: closeModal })
24612
24780
  ] })
24613
24781
  ] });
24614
24782
  }
@@ -24618,7 +24786,7 @@ import { motion as motion6 } from "framer-motion";
24618
24786
 
24619
24787
  // src/components/SuperDrawer/useSuperDrawer.tsx
24620
24788
  import { useMemo as useMemo55 } from "react";
24621
- import { jsx as jsx199 } from "react/jsx-runtime";
24789
+ import { jsx as jsx201 } from "react/jsx-runtime";
24622
24790
  function useSuperDrawer() {
24623
24791
  const {
24624
24792
  drawerContentStack: contentStack,
@@ -24630,7 +24798,7 @@ function useSuperDrawer() {
24630
24798
  function canCloseDrawerDetails(i, doChange) {
24631
24799
  for (const canCloseDrawerDetail of canCloseDetailsChecks.current[i] ?? []) {
24632
24800
  if (!canClose(canCloseDrawerDetail)) {
24633
- openModal({ content: /* @__PURE__ */ jsx199(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
24801
+ openModal({ content: /* @__PURE__ */ jsx201(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
24634
24802
  return false;
24635
24803
  }
24636
24804
  }
@@ -24650,7 +24818,7 @@ function useSuperDrawer() {
24650
24818
  for (const canCloseDrawer of canCloseChecks.current) {
24651
24819
  if (!canClose(canCloseDrawer)) {
24652
24820
  openModal({
24653
- content: /* @__PURE__ */ jsx199(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
24821
+ content: /* @__PURE__ */ jsx201(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
24654
24822
  });
24655
24823
  return;
24656
24824
  }
@@ -24745,8 +24913,8 @@ function canClose(canCloseCheck) {
24745
24913
  }
24746
24914
 
24747
24915
  // src/components/SuperDrawer/SuperDrawerContent.tsx
24748
- import { mergeProps as mergeProps31 } from "@homebound/truss/runtime";
24749
- import { Fragment as Fragment46, jsx as jsx200, jsxs as jsxs102 } from "react/jsx-runtime";
24916
+ import { mergeProps as mergeProps32 } from "@homebound/truss/runtime";
24917
+ import { Fragment as Fragment46, jsx as jsx202, jsxs as jsxs103 } from "react/jsx-runtime";
24750
24918
  var SuperDrawerContent = ({
24751
24919
  children,
24752
24920
  actions
@@ -24766,17 +24934,17 @@ var SuperDrawerContent = ({
24766
24934
  } = firstContent ?? {};
24767
24935
  function wrapWithMotionAndMaybeBack(children2) {
24768
24936
  if (kind === "open") {
24769
- return /* @__PURE__ */ jsx200(motion6.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
24937
+ return /* @__PURE__ */ jsx202(motion6.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
24770
24938
  } else if (kind === "detail") {
24771
- return /* @__PURE__ */ jsxs102(motion6.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
24939
+ return /* @__PURE__ */ jsxs103(motion6.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
24772
24940
  overflow: "auto"
24773
24941
  }, transition: {
24774
24942
  overflow: {
24775
24943
  delay: 0.3
24776
24944
  }
24777
24945
  }, children: [
24778
- /* @__PURE__ */ jsx200(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
24779
- /* @__PURE__ */ jsx200(motion6.div, { initial: {
24946
+ /* @__PURE__ */ jsx202(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
24947
+ /* @__PURE__ */ jsx202(motion6.div, { initial: {
24780
24948
  x: width2,
24781
24949
  opacity: 0
24782
24950
  }, animate: {
@@ -24794,7 +24962,7 @@ var SuperDrawerContent = ({
24794
24962
  }, className: "pt2", children: children2 })
24795
24963
  ] }, "content");
24796
24964
  } else {
24797
- return /* @__PURE__ */ jsx200(motion6.div, { ...mergeProps31(void 0, {
24965
+ return /* @__PURE__ */ jsx202(motion6.div, { ...mergeProps32(void 0, {
24798
24966
  overflow: "auto"
24799
24967
  }, {
24800
24968
  paddingTop: "pt3",
@@ -24805,9 +24973,9 @@ var SuperDrawerContent = ({
24805
24973
  }) }, "content");
24806
24974
  }
24807
24975
  }
24808
- return /* @__PURE__ */ jsxs102(Fragment46, { children: [
24976
+ return /* @__PURE__ */ jsxs103(Fragment46, { children: [
24809
24977
  wrapWithMotionAndMaybeBack(children),
24810
- actions && /* @__PURE__ */ jsx200("footer", { className: "bts_solid btw_1px bcGray200 pt3 pb3 pr3 pl3 df aic jcfe", children: /* @__PURE__ */ jsx200("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ jsx200(Button, { ...buttonProps }, i)) }) })
24978
+ actions && /* @__PURE__ */ jsx202("footer", { className: "bts_solid btw_1px bcGray200 pt3 pb3 pr3 pl3 df aic jcfe", children: /* @__PURE__ */ jsx202("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ jsx202(Button, { ...buttonProps }, i)) }) })
24811
24979
  ] });
24812
24980
  };
24813
24981
 
@@ -24850,7 +25018,7 @@ function visit(rows, fn) {
24850
25018
  }
24851
25019
 
24852
25020
  // src/components/TagGroup.tsx
24853
- import { jsx as jsx201, jsxs as jsxs103 } from "react/jsx-runtime";
25021
+ import { jsx as jsx203, jsxs as jsxs104 } from "react/jsx-runtime";
24854
25022
  function TagGroup(props) {
24855
25023
  const {
24856
25024
  tags,
@@ -24858,9 +25026,9 @@ function TagGroup(props) {
24858
25026
  ...otherProps
24859
25027
  } = props;
24860
25028
  const tid = useTestIds(otherProps, "tagGroup");
24861
- return /* @__PURE__ */ jsxs103("div", { ...tid, className: "df aic fww gap1", children: [
24862
- tags.map((tag) => /* @__PURE__ */ jsx201(Tag, { ...tag, variant: "secondary" }, tag.text)),
24863
- onEdit && /* @__PURE__ */ jsx201("span", { className: "ml1 fw4 fz_14px lh_20px", children: /* @__PURE__ */ jsx201(Button, { label: "Edit", variant: "text", onClick: onEdit, ...tid.edit }) })
25029
+ return /* @__PURE__ */ jsxs104("div", { ...tid, className: "df aic fww gap1", children: [
25030
+ tags.map((tag) => /* @__PURE__ */ jsx203(Tag, { ...tag, variant: "secondary" }, tag.text)),
25031
+ onEdit && /* @__PURE__ */ jsx203("span", { className: "ml1 fw4 fz_14px lh_20px", children: /* @__PURE__ */ jsx203(Button, { label: "Edit", variant: "text", onClick: onEdit, ...tid.edit }) })
24864
25032
  ] });
24865
25033
  }
24866
25034
 
@@ -24873,15 +25041,15 @@ function useToast() {
24873
25041
  }
24874
25042
 
24875
25043
  // src/layouts/SideNavLayout/SideNavLayout.tsx
24876
- import { trussProps as trussProps106, mergeProps as mergeProps32, maybeCssVar as maybeCssVar56 } from "@homebound/truss/runtime";
24877
- import { jsx as jsx202, jsxs as jsxs104 } from "react/jsx-runtime";
25044
+ import { trussProps as trussProps108, mergeProps as mergeProps33, maybeCssVar as maybeCssVar57 } from "@homebound/truss/runtime";
25045
+ import { jsx as jsx204, jsxs as jsxs105 } from "react/jsx-runtime";
24878
25046
  var __maybeInc21 = (inc) => {
24879
25047
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
24880
25048
  };
24881
25049
  function SideNavLayout(props) {
24882
25050
  const hasProvider = useHasSideNavLayoutProvider();
24883
- if (hasProvider) return /* @__PURE__ */ jsx202(SideNavLayoutContent, { ...props });
24884
- return /* @__PURE__ */ jsx202(SideNavLayoutProvider, { children: /* @__PURE__ */ jsx202(SideNavLayoutContent, { ...props }) });
25051
+ if (hasProvider) return /* @__PURE__ */ jsx204(SideNavLayoutContent, { ...props });
25052
+ return /* @__PURE__ */ jsx204(SideNavLayoutProvider, { children: /* @__PURE__ */ jsx204(SideNavLayoutContent, { ...props }) });
24885
25053
  }
24886
25054
  function SideNavLayoutContent(props) {
24887
25055
  const {
@@ -24903,7 +25071,7 @@ function SideNavLayoutContent(props) {
24903
25071
  const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
24904
25072
  const navTop = bannerAndNavbarChromeTop();
24905
25073
  const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
24906
- const rail = showRail && /* @__PURE__ */ jsxs104("div", { ...trussProps106({
25074
+ const rail = showRail && /* @__PURE__ */ jsxs105("div", { ...trussProps108({
24907
25075
  ...{
24908
25076
  display: "df",
24909
25077
  flexDirection: "fdc",
@@ -24927,14 +25095,14 @@ function SideNavLayoutContent(props) {
24927
25095
  position: "sticky",
24928
25096
  left: "left0",
24929
25097
  zIndex: ["z_var", {
24930
- "--zIndex": maybeCssVar56(zIndices.sideNav)
25098
+ "--zIndex": maybeCssVar57(zIndices.sideNav)
24931
25099
  }],
24932
25100
  top: ["top_var", {
24933
- "--top": maybeCssVar56(__maybeInc21(navTop))
25101
+ "--top": maybeCssVar57(__maybeInc21(navTop))
24934
25102
  }],
24935
25103
  alignSelf: "asfs",
24936
25104
  height: ["h_var", {
24937
- "--height": maybeCssVar56(__maybeInc21(railViewportHeight))
25105
+ "--height": maybeCssVar57(__maybeInc21(railViewportHeight))
24938
25106
  }],
24939
25107
  width: ["w_var", {
24940
25108
  "--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
@@ -24944,11 +25112,11 @@ function SideNavLayoutContent(props) {
24944
25112
  position: "fixed",
24945
25113
  left: "left0",
24946
25114
  top: ["top_var", {
24947
- "--top": maybeCssVar56(__maybeInc21(navTop))
25115
+ "--top": maybeCssVar57(__maybeInc21(navTop))
24948
25116
  }],
24949
25117
  bottom: "bottom0",
24950
25118
  zIndex: ["z_var", {
24951
- "--zIndex": maybeCssVar56(zIndices.sideNav)
25119
+ "--zIndex": maybeCssVar57(zIndices.sideNav)
24952
25120
  }]
24953
25121
  },
24954
25122
  ...collapsed ? {
@@ -24960,18 +25128,18 @@ function SideNavLayoutContent(props) {
24960
25128
  }
24961
25129
  }
24962
25130
  }), ...tid.sideNav, children: [
24963
- showCollapseToggle && /* @__PURE__ */ jsx202("div", { className: "absolute right2 top2 z2", children: /* @__PURE__ */ jsx202(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
24964
- /* @__PURE__ */ jsx202("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ jsx202(SideNav, { ...sideNav }) })
25131
+ showCollapseToggle && /* @__PURE__ */ jsx204("div", { className: "absolute right2 top2 z2", children: /* @__PURE__ */ jsx204(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
25132
+ /* @__PURE__ */ jsx204("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ jsx204(SideNav, { ...sideNav }) })
24965
25133
  ] });
24966
- return /* @__PURE__ */ jsx202(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs104("div", { ...mergeProps32(void 0, {
25134
+ return /* @__PURE__ */ jsx204(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs105("div", { ...mergeProps33(void 0, {
24967
25135
  [beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
24968
25136
  }, {
24969
25137
  display: "df",
24970
25138
  flexDirection: "fdr",
24971
25139
  width: "w100"
24972
25140
  }), ...tid, children: [
24973
- contrastRail ? /* @__PURE__ */ jsx202(ContrastScope, { children: rail }) : rail,
24974
- /* @__PURE__ */ jsx202("div", { ...trussProps106({
25141
+ contrastRail ? /* @__PURE__ */ jsx204(ContrastScope, { children: rail }) : rail,
25142
+ /* @__PURE__ */ jsx204("div", { ...trussProps108({
24975
25143
  display: "df",
24976
25144
  flexDirection: "fdc",
24977
25145
  flexGrow: "fg1",
@@ -24987,8 +25155,8 @@ function SideNavLayoutContent(props) {
24987
25155
  }
24988
25156
 
24989
25157
  // src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
24990
- import { trussProps as trussProps107, mergeProps as mergeProps33, maybeCssVar as maybeCssVar57 } from "@homebound/truss/runtime";
24991
- import { jsx as jsx203, jsxs as jsxs105 } from "react/jsx-runtime";
25158
+ import { trussProps as trussProps109, mergeProps as mergeProps34, maybeCssVar as maybeCssVar58 } from "@homebound/truss/runtime";
25159
+ import { jsx as jsx205, jsxs as jsxs106 } from "react/jsx-runtime";
24992
25160
  var __maybeInc22 = (inc) => {
24993
25161
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
24994
25162
  };
@@ -25004,38 +25172,38 @@ function EnvironmentBannerLayout(props) {
25004
25172
  [beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
25005
25173
  };
25006
25174
  const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
25007
- return /* @__PURE__ */ jsx203(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx203(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ jsxs105("div", { ...mergeProps33(void 0, style, {
25175
+ return /* @__PURE__ */ jsx205(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx205(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ jsxs106("div", { ...mergeProps34(void 0, style, {
25008
25176
  display: "df",
25009
25177
  flexDirection: "fdc",
25010
25178
  width: "wfc",
25011
25179
  minWidth: "mw100"
25012
25180
  }), ...tid, children: [
25013
- showBanner && environmentBanner && /* @__PURE__ */ jsx203("div", { ...mergeProps33(void 0, {
25181
+ showBanner && environmentBanner && /* @__PURE__ */ jsx205("div", { ...mergeProps34(void 0, {
25014
25182
  height: environmentBannerSizePx
25015
25183
  }, {
25016
25184
  flexShrink: "fs0",
25017
25185
  width: "w100"
25018
- }), children: /* @__PURE__ */ jsx203("div", { ...trussProps107({
25186
+ }), children: /* @__PURE__ */ jsx205("div", { ...trussProps109({
25019
25187
  position: "fixed",
25020
25188
  top: "top0",
25021
25189
  left: "left0",
25022
25190
  zIndex: ["z_var", {
25023
- "--zIndex": maybeCssVar57(zIndices.environmentBanner)
25191
+ "--zIndex": maybeCssVar58(zIndices.environmentBanner)
25024
25192
  }],
25025
25193
  width: ["w_var", {
25026
- "--width": maybeCssVar57(__maybeInc22(innerWidth))
25194
+ "--width": maybeCssVar58(__maybeInc22(innerWidth))
25027
25195
  }]
25028
- }), ...tid.bannerSticky, children: /* @__PURE__ */ jsx203(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
25196
+ }), ...tid.bannerSticky, children: /* @__PURE__ */ jsx205(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
25029
25197
  children
25030
25198
  ] }) }) });
25031
25199
  }
25032
25200
 
25033
25201
  // src/layouts/NavbarLayout/NavbarLayout.tsx
25034
- import { useMemo as useMemo56, useRef as useRef64 } from "react";
25035
- import { mergeProps as mergeProps34, maybeCssVar as maybeCssVar58 } from "@homebound/truss/runtime";
25202
+ import { useMemo as useMemo56, useRef as useRef65 } from "react";
25203
+ import { mergeProps as mergeProps35, maybeCssVar as maybeCssVar59 } from "@homebound/truss/runtime";
25036
25204
 
25037
25205
  // src/layouts/useAutoHideOnScroll.ts
25038
- import { useLayoutEffect as useLayoutEffect8, useRef as useRef63, useState as useState57 } from "react";
25206
+ import { useLayoutEffect as useLayoutEffect8, useRef as useRef64, useState as useState57 } from "react";
25039
25207
  var THRESHOLD = 80;
25040
25208
  function getInitialAutoHideState() {
25041
25209
  if (typeof window === "undefined" || window.scrollY <= 0) {
@@ -25046,13 +25214,13 @@ function getInitialAutoHideState() {
25046
25214
  function useAutoHideOnScroll(spacerRef, enabled, getTopOffset) {
25047
25215
  const initial = getInitialAutoHideState();
25048
25216
  const [state, setState] = useState57(initial.state);
25049
- const stateRef = useRef63(initial.state);
25217
+ const stateRef = useRef64(initial.state);
25050
25218
  const [atTop, setAtTop] = useState57(initial.atTop);
25051
- const atTopRef = useRef63(initial.atTop);
25052
- const getTopOffsetRef = useRef63(getTopOffset);
25219
+ const atTopRef = useRef64(initial.atTop);
25220
+ const getTopOffsetRef = useRef64(getTopOffset);
25053
25221
  getTopOffsetRef.current = getTopOffset;
25054
- const lastScrollY = useRef63(Number.POSITIVE_INFINITY);
25055
- const lastScrollHeight = useRef63(0);
25222
+ const lastScrollY = useRef64(Number.POSITIVE_INFINITY);
25223
+ const lastScrollHeight = useRef64(0);
25056
25224
  useLayoutEffect8(() => {
25057
25225
  if (!enabled) {
25058
25226
  stateRef.current = "static";
@@ -25143,17 +25311,17 @@ function useMeasuredHeight(ref, enabled) {
25143
25311
 
25144
25312
  // src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
25145
25313
  import { createContext as createContext15, useContext as useContext27 } from "react";
25146
- import { jsx as jsx204 } from "react/jsx-runtime";
25314
+ import { jsx as jsx206 } from "react/jsx-runtime";
25147
25315
  var NavbarLayoutHeightContext = createContext15(0);
25148
25316
  function NavbarLayoutHeightProvider({ value, children }) {
25149
- return /* @__PURE__ */ jsx204(NavbarLayoutHeightContext.Provider, { value, children });
25317
+ return /* @__PURE__ */ jsx206(NavbarLayoutHeightContext.Provider, { value, children });
25150
25318
  }
25151
25319
  function useNavbarLayoutHeight() {
25152
25320
  return useContext27(NavbarLayoutHeightContext);
25153
25321
  }
25154
25322
 
25155
25323
  // src/layouts/NavbarLayout/NavbarLayout.tsx
25156
- import { jsx as jsx205, jsxs as jsxs106 } from "react/jsx-runtime";
25324
+ import { jsx as jsx207, jsxs as jsxs107 } from "react/jsx-runtime";
25157
25325
  var __maybeInc23 = (inc) => {
25158
25326
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
25159
25327
  };
@@ -25163,8 +25331,8 @@ function NavbarLayout(props) {
25163
25331
  children
25164
25332
  } = props;
25165
25333
  const tid = useTestIds(props, "navbarLayout");
25166
- const navMetricsRef = useRef64(null);
25167
- const spacerRef = useRef64(null);
25334
+ const navMetricsRef = useRef65(null);
25335
+ const spacerRef = useRef65(null);
25168
25336
  const navHeight = useMeasuredHeight(navMetricsRef, true);
25169
25337
  const {
25170
25338
  state: autoHideState,
@@ -25182,10 +25350,10 @@ function NavbarLayout(props) {
25182
25350
  position: "sticky",
25183
25351
  left: "left0",
25184
25352
  zIndex: ["z_var", {
25185
- "--zIndex": maybeCssVar58(zIndices.navbar)
25353
+ "--zIndex": maybeCssVar59(zIndices.navbar)
25186
25354
  }],
25187
25355
  width: ["w_var", {
25188
- "--width": maybeCssVar58(__maybeInc23(innerWidth))
25356
+ "--width": maybeCssVar59(__maybeInc23(innerWidth))
25189
25357
  }]
25190
25358
  }
25191
25359
  ) : (
@@ -25194,10 +25362,10 @@ function NavbarLayout(props) {
25194
25362
  position: "fixed",
25195
25363
  left: "left0",
25196
25364
  zIndex: ["z_var", {
25197
- "--zIndex": maybeCssVar58(zIndices.navbar)
25365
+ "--zIndex": maybeCssVar59(zIndices.navbar)
25198
25366
  }],
25199
25367
  width: ["w_var", {
25200
- "--width": maybeCssVar58(__maybeInc23(innerWidth))
25368
+ "--width": maybeCssVar59(__maybeInc23(innerWidth))
25201
25369
  }],
25202
25370
  transition: "transitionTop"
25203
25371
  }
@@ -25206,25 +25374,25 @@ function NavbarLayout(props) {
25206
25374
  const innerStyle = autoHideState !== "static" ? {
25207
25375
  top: autoHideState === "revealed" ? bannerTop : `calc(${bannerTop} - ${navHeight}px)`
25208
25376
  } : void 0;
25209
- const navbarEl = useMemo56(() => /* @__PURE__ */ jsx205(Navbar, { ...navbar }), [navbar]);
25210
- return /* @__PURE__ */ jsx205(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx205(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ jsxs106("div", { ...mergeProps34(void 0, cssVars, {
25377
+ const navbarEl = useMemo56(() => /* @__PURE__ */ jsx207(Navbar, { ...navbar }), [navbar]);
25378
+ return /* @__PURE__ */ jsx207(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx207(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ jsxs107("div", { ...mergeProps35(void 0, cssVars, {
25211
25379
  display: "df",
25212
25380
  flexDirection: "fdc",
25213
25381
  width: "wfc",
25214
25382
  minWidth: "mw100"
25215
25383
  }), ...tid, children: [
25216
- /* @__PURE__ */ jsx205("div", { ref: spacerRef, ...mergeProps34(void 0, {
25384
+ /* @__PURE__ */ jsx207("div", { ref: spacerRef, ...mergeProps35(void 0, {
25217
25385
  height: navHeight
25218
25386
  }, {
25219
25387
  flexShrink: "fs0",
25220
25388
  width: "w100"
25221
- }), children: /* @__PURE__ */ jsx205("div", { ref: navMetricsRef, ...mergeProps34(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
25222
- /* @__PURE__ */ jsx205("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
25389
+ }), children: /* @__PURE__ */ jsx207("div", { ref: navMetricsRef, ...mergeProps35(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
25390
+ /* @__PURE__ */ jsx207("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
25223
25391
  ] }) }) });
25224
25392
  }
25225
25393
 
25226
25394
  // src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
25227
- import { useCallback as useCallback39, useMemo as useMemo57, useRef as useRef65 } from "react";
25395
+ import { useCallback as useCallback39, useMemo as useMemo57, useRef as useRef66 } from "react";
25228
25396
 
25229
25397
  // src/layouts/useBannerAndNavbarHeight.ts
25230
25398
  function useBannerAndNavbarHeight() {
@@ -25232,8 +25400,8 @@ function useBannerAndNavbarHeight() {
25232
25400
  }
25233
25401
 
25234
25402
  // src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
25235
- import { mergeProps as mergeProps35, maybeCssVar as maybeCssVar59 } from "@homebound/truss/runtime";
25236
- import { jsx as jsx206, jsxs as jsxs107 } from "react/jsx-runtime";
25403
+ import { mergeProps as mergeProps36, maybeCssVar as maybeCssVar60 } from "@homebound/truss/runtime";
25404
+ import { jsx as jsx208, jsxs as jsxs108 } from "react/jsx-runtime";
25237
25405
  var __maybeInc24 = (inc) => {
25238
25406
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
25239
25407
  };
@@ -25244,11 +25412,11 @@ function PageHeaderLayout(props) {
25244
25412
  } = props;
25245
25413
  const tid = useTestIds(props, "pageHeaderLayout");
25246
25414
  const bannerAndNavbarHeight = useBannerAndNavbarHeight();
25247
- const bannerAndNavbarHeightRef = useRef65(bannerAndNavbarHeight);
25415
+ const bannerAndNavbarHeightRef = useRef66(bannerAndNavbarHeight);
25248
25416
  bannerAndNavbarHeightRef.current = bannerAndNavbarHeight;
25249
25417
  const getBannerAndNavbarHeight = useCallback39(() => bannerAndNavbarHeightRef.current, []);
25250
- const headerMetricsRef = useRef65(null);
25251
- const spacerRef = useRef65(null);
25418
+ const headerMetricsRef = useRef66(null);
25419
+ const spacerRef = useRef66(null);
25252
25420
  const headerHeight = useMeasuredHeight(headerMetricsRef, true);
25253
25421
  const {
25254
25422
  state: autoHideState,
@@ -25264,43 +25432,43 @@ function PageHeaderLayout(props) {
25264
25432
  const innerCss = autoHideState === "static" ? {
25265
25433
  position: "sticky",
25266
25434
  left: ["left_var", {
25267
- "--left": maybeCssVar59(__maybeInc24(headerLeft))
25435
+ "--left": maybeCssVar60(__maybeInc24(headerLeft))
25268
25436
  }],
25269
25437
  width: ["w_var", {
25270
- "--width": maybeCssVar59(__maybeInc24(headerWidth))
25438
+ "--width": maybeCssVar60(__maybeInc24(headerWidth))
25271
25439
  }],
25272
25440
  zIndex: ["z_var", {
25273
- "--zIndex": maybeCssVar59(zIndices.pageStickyHeader)
25441
+ "--zIndex": maybeCssVar60(zIndices.pageStickyHeader)
25274
25442
  }]
25275
25443
  } : {
25276
25444
  position: "fixed",
25277
25445
  left: ["left_var", {
25278
- "--left": maybeCssVar59(__maybeInc24(headerLeft))
25446
+ "--left": maybeCssVar60(__maybeInc24(headerLeft))
25279
25447
  }],
25280
25448
  width: ["w_var", {
25281
- "--width": maybeCssVar59(__maybeInc24(headerWidth))
25449
+ "--width": maybeCssVar60(__maybeInc24(headerWidth))
25282
25450
  }],
25283
25451
  zIndex: ["z_var", {
25284
- "--zIndex": maybeCssVar59(zIndices.pageStickyHeader)
25452
+ "--zIndex": maybeCssVar60(zIndices.pageStickyHeader)
25285
25453
  }],
25286
25454
  transition: "transitionTop"
25287
25455
  };
25288
25456
  const innerStyle = autoHideState !== "static" ? {
25289
25457
  top: autoHideState === "revealed" ? outerTop : `calc(${outerTop} - ${headerHeight}px)`
25290
25458
  } : void 0;
25291
- const pageHeaderEl = useMemo57(() => /* @__PURE__ */ jsx206(PageHeader2, { ...pageHeader }), [pageHeader]);
25292
- return /* @__PURE__ */ jsx206(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs107("div", { ...mergeProps35(void 0, cssVars, {
25459
+ const pageHeaderEl = useMemo57(() => /* @__PURE__ */ jsx208(PageHeader2, { ...pageHeader }), [pageHeader]);
25460
+ return /* @__PURE__ */ jsx208(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs108("div", { ...mergeProps36(void 0, cssVars, {
25293
25461
  display: "df",
25294
25462
  flexDirection: "fdc",
25295
25463
  width: "w100"
25296
25464
  }), ...tid, children: [
25297
- /* @__PURE__ */ jsx206("div", { ref: spacerRef, ...mergeProps35(void 0, {
25465
+ /* @__PURE__ */ jsx208("div", { ref: spacerRef, ...mergeProps36(void 0, {
25298
25466
  height: headerHeight
25299
25467
  }, {
25300
25468
  flexShrink: "fs0",
25301
25469
  width: "w100"
25302
- }), children: /* @__PURE__ */ jsx206("div", { ref: headerMetricsRef, ...mergeProps35(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
25303
- /* @__PURE__ */ jsx206("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
25470
+ }), children: /* @__PURE__ */ jsx208("div", { ref: headerMetricsRef, ...mergeProps36(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
25471
+ /* @__PURE__ */ jsx208("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
25304
25472
  ] }) });
25305
25473
  }
25306
25474
  export {
@@ -25444,6 +25612,8 @@ export {
25444
25612
  SortHeader,
25445
25613
  StaticField,
25446
25614
  Stepper,
25615
+ StepperTab,
25616
+ StepperTabs,
25447
25617
  SubmitButton,
25448
25618
  SuperDrawerContent,
25449
25619
  SuperDrawerHeader,