@homebound/beam 3.94.0 → 3.95.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
@@ -19281,7 +19281,7 @@ var variantStyles3 = {
19281
19281
  };
19282
19282
 
19283
19283
  // src/components/BeamContext.tsx
19284
- import { createContext as createContext12, useContext as useContext23, useMemo as useMemo44, useReducer, useRef as useRef55 } from "react";
19284
+ import { createContext as createContext12, useContext as useContext23, useMemo as useMemo44, useReducer, useRef as useRef56 } from "react";
19285
19285
  import { OverlayProvider } from "react-aria";
19286
19286
 
19287
19287
  // src/components/Modal/Modal.tsx
@@ -19614,10 +19614,12 @@ function getSize(size) {
19614
19614
  }
19615
19615
 
19616
19616
  // src/components/Snackbar/SnackbarContext.tsx
19617
- import { createContext as createContext8, useContext as useContext18, useMemo as useMemo32, useState as useState38 } from "react";
19617
+ import { createContext as createContext8, useContext as useContext18, useMemo as useMemo32, useState as useState39 } from "react";
19618
19618
 
19619
19619
  // src/components/Snackbar/SnackbarNotice.tsx
19620
- import { trussProps as trussProps80 } from "@homebound/truss/runtime";
19620
+ import { useLayoutEffect as useLayoutEffect7, useResizeObserver as useResizeObserver6 } from "@react-aria/utils";
19621
+ import { useCallback as useCallback25, useRef as useRef48, useState as useState38 } from "react";
19622
+ import { trussProps as trussProps80, maybeCssVar as maybeCssVar39 } from "@homebound/truss/runtime";
19621
19623
  import { jsx as jsx117, jsxs as jsxs65 } from "react/jsx-runtime";
19622
19624
  function SnackbarNotice(props) {
19623
19625
  const {
@@ -19630,45 +19632,79 @@ function SnackbarNotice(props) {
19630
19632
  } = props;
19631
19633
  const tid = useTestIds(props, "snackbar");
19632
19634
  const reallyHideClose = hideCloseButton && !persistent;
19635
+ const messageRef = useRef48(null);
19636
+ const [expanded, setExpanded] = useState38(false);
19637
+ const [hasOverflow, setHasOverflow] = useState38(false);
19638
+ const measureOverflow = useCallback25(() => {
19639
+ if (!messageRef.current || expanded) return;
19640
+ setHasOverflow(messageRef.current.scrollHeight > messageRef.current.clientHeight);
19641
+ }, [expanded]);
19642
+ useLayoutEffect7(measureOverflow, [measureOverflow, message]);
19643
+ useResizeObserver6({
19644
+ ref: messageRef,
19645
+ onResize: measureOverflow
19646
+ });
19633
19647
  return /* @__PURE__ */ jsxs65("div", { ...trussProps80({
19634
- color: ["color_var", {
19635
- "--color": "var(--b-on-surface)"
19636
- }],
19637
- backgroundColor: ["bgColor_var", {
19638
- "--backgroundColor": "var(--b-surface-raised)"
19639
- }],
19640
- borderRadius: "br4",
19641
- fontWeight: "fw4",
19642
- fontSize: "fz_16px",
19643
- lineHeight: "lh_24px",
19644
- display: "df",
19645
- alignItems: "aic",
19646
- maxWidth: "maxw_420px"
19648
+ ...{
19649
+ color: ["color_var", {
19650
+ "--color": "var(--b-on-surface)"
19651
+ }],
19652
+ backgroundColor: ["bgColor_var", {
19653
+ "--backgroundColor": "var(--b-surface-raised)"
19654
+ }],
19655
+ borderRadius: "br4",
19656
+ fontWeight: "fw4",
19657
+ fontSize: "fz_16px",
19658
+ lineHeight: "lh_24px",
19659
+ display: "df",
19660
+ paddingTop: "pt_12px",
19661
+ paddingBottom: "pb_12px",
19662
+ maxWidth: ["maxw_var", {
19663
+ "--maxWidth": `${noticeMaxWidthPx}px`
19664
+ }],
19665
+ alignItems: "aifs"
19666
+ },
19667
+ ...expanded ? {
19668
+ maxWidth: ["maxw_var", {
19669
+ "--maxWidth": maybeCssVar39(expandedNoticeMaxWidth)
19670
+ }]
19671
+ } : void 0
19647
19672
  }), "data-theme": contrastDataTheme, ...tid, role: "alert", children: [
19648
19673
  icon && /* @__PURE__ */ jsx117("span", { className: "fs0 pl_12px", children: /* @__PURE__ */ jsx117(Icon, { ...typeToIcon2[icon], ...tid.icon }) }),
19649
- /* @__PURE__ */ jsx117(
19650
- "span",
19651
- {
19652
- ...trussProps80({
19653
- overflow: "oh",
19654
- display: "d_negwebkit_box",
19655
- WebkitBoxOrient: "wbo_vertical",
19656
- textOverflow: "to_ellipsis",
19657
- WebkitLineClamp: "wlc_3",
19658
- paddingRight: "pr2",
19659
- marginTop: "mt_12px",
19660
- marginBottom: "mb_12px",
19661
- paddingLeft: ["pl_var", {
19662
- "--paddingLeft": `${icon ? 8 : 16}px`
19663
- }]
19664
- }),
19665
- ...typeof message === "string" ? {
19666
- title: message
19667
- } : void 0,
19668
- ...tid.message,
19669
- children: message
19670
- }
19671
- ),
19674
+ /* @__PURE__ */ jsxs65("div", { ...trussProps80({
19675
+ flexGrow: "fg1",
19676
+ minWidth: "mw0",
19677
+ display: "df",
19678
+ flexDirection: "fdc",
19679
+ alignItems: "aifs",
19680
+ gap: "gap1",
19681
+ paddingRight: "pr2",
19682
+ paddingLeft: ["pl_var", {
19683
+ "--paddingLeft": `${icon ? 8 : 16}px`
19684
+ }]
19685
+ }), children: [
19686
+ /* @__PURE__ */ jsx117(
19687
+ "span",
19688
+ {
19689
+ ref: messageRef,
19690
+ ...trussProps80({
19691
+ ...!expanded ? {
19692
+ overflow: "oh",
19693
+ display: "d_negwebkit_box",
19694
+ WebkitBoxOrient: "wbo_vertical",
19695
+ textOverflow: "to_ellipsis",
19696
+ WebkitLineClamp: "wlc_3"
19697
+ } : {}
19698
+ }),
19699
+ ...typeof message === "string" && !expanded ? {
19700
+ title: message
19701
+ } : void 0,
19702
+ ...tid.message,
19703
+ children: message
19704
+ }
19705
+ ),
19706
+ hasOverflow && /* @__PURE__ */ jsx117(Button, { variant: "text", size: "sm", label: expanded ? "Collapse" : "Expand", "aria-expanded": expanded, onClick: () => setExpanded((prev) => !prev), ...tid.expand })
19707
+ ] }),
19672
19708
  (action || !reallyHideClose) && /* @__PURE__ */ jsxs65("span", { className: "fs0 df aic", children: [
19673
19709
  action && /* @__PURE__ */ jsx117("span", { ...trussProps80({
19674
19710
  textTransform: "ttu",
@@ -19683,6 +19719,8 @@ function SnackbarNotice(props) {
19683
19719
  ] })
19684
19720
  ] });
19685
19721
  }
19722
+ var noticeMaxWidthPx = 420;
19723
+ var expandedNoticeMaxWidth = `min(${noticeMaxWidthPx * 2}px, calc(100vw - (2 * var(--t-spacing) * 3)))`;
19686
19724
  var typeToIcon2 = {
19687
19725
  // Can change to a Tupple with IconKey and color?
19688
19726
  error: {
@@ -19708,7 +19746,7 @@ var typeToIcon2 = {
19708
19746
  };
19709
19747
 
19710
19748
  // src/components/Snackbar/Snackbar.tsx
19711
- import { trussProps as trussProps81, maybeCssVar as maybeCssVar39 } from "@homebound/truss/runtime";
19749
+ import { trussProps as trussProps81, maybeCssVar as maybeCssVar40 } from "@homebound/truss/runtime";
19712
19750
  import { jsx as jsx118 } from "react/jsx-runtime";
19713
19751
  function Snackbar({
19714
19752
  notices,
@@ -19718,7 +19756,7 @@ function Snackbar({
19718
19756
  return /* @__PURE__ */ jsx118("div", { ...tid.snackbarWrapper, ...trussProps81({
19719
19757
  position: "fixed",
19720
19758
  zIndex: ["z_var", {
19721
- "--zIndex": maybeCssVar39(zIndices.snackbar)
19759
+ "--zIndex": maybeCssVar40(zIndices.snackbar)
19722
19760
  }],
19723
19761
  bottom: ["bottom_var", {
19724
19762
  "--bottom": `${offset.bottom ?? defaultOffset.bottom}px`
@@ -19740,8 +19778,8 @@ var SnackbarContext = createContext8({ setNotices: () => {
19740
19778
  }, setOffset: () => {
19741
19779
  } });
19742
19780
  function SnackbarProvider(props) {
19743
- const [notices, setNotices] = useState38([]);
19744
- const [offset, setOffset] = useState38({});
19781
+ const [notices, setNotices] = useState39([]);
19782
+ const [offset, setOffset] = useState39({});
19745
19783
  const contextValue = useMemo32(() => ({ setNotices, setOffset }), []);
19746
19784
  return /* @__PURE__ */ jsxs66(SnackbarContext.Provider, { value: contextValue, children: [
19747
19785
  props.children,
@@ -19754,7 +19792,7 @@ function useSnackbarContext() {
19754
19792
 
19755
19793
  // src/components/SuperDrawer/SuperDrawer.tsx
19756
19794
  import { AnimatePresence, motion } from "framer-motion";
19757
- import { useEffect as useEffect25, useRef as useRef48 } from "react";
19795
+ import { useEffect as useEffect25, useRef as useRef49 } from "react";
19758
19796
  import { createPortal as createPortal4 } from "react-dom";
19759
19797
 
19760
19798
  // src/components/SuperDrawer/utils.ts
@@ -19765,7 +19803,7 @@ var SuperDrawerWidth = /* @__PURE__ */ ((SuperDrawerWidth2) => {
19765
19803
  })(SuperDrawerWidth || {});
19766
19804
 
19767
19805
  // src/components/SuperDrawer/SuperDrawer.tsx
19768
- import { trussProps as trussProps82, maybeCssVar as maybeCssVar40 } from "@homebound/truss/runtime";
19806
+ import { trussProps as trussProps82, maybeCssVar as maybeCssVar41 } from "@homebound/truss/runtime";
19769
19807
  import { Fragment as Fragment27, jsx as jsx120, jsxs as jsxs67 } from "react/jsx-runtime";
19770
19808
  import { createElement as createElement4 } from "react";
19771
19809
  function SuperDrawer() {
@@ -19776,7 +19814,7 @@ function SuperDrawer() {
19776
19814
  const {
19777
19815
  closeDrawer
19778
19816
  } = useSuperDrawer();
19779
- const headerRef = useRef48(null);
19817
+ const headerRef = useRef49(null);
19780
19818
  const testId = useTestIds({}, "superDrawer");
19781
19819
  const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
19782
19820
  const {
@@ -19821,7 +19859,7 @@ function SuperDrawer() {
19821
19859
  bottom: "bottom0",
19822
19860
  left: "left0",
19823
19861
  zIndex: ["z_var", {
19824
- "--zIndex": maybeCssVar40(zIndices.superDrawerScrim)
19862
+ "--zIndex": maybeCssVar41(zIndices.superDrawerScrim)
19825
19863
  }]
19826
19864
  }),
19827
19865
  initial: {
@@ -19847,7 +19885,7 @@ function SuperDrawer() {
19847
19885
  }],
19848
19886
  height: "h100",
19849
19887
  maxWidth: ["maxw_var", {
19850
- "--maxWidth": maybeCssVar40(px(width2))
19888
+ "--maxWidth": maybeCssVar41(px(width2))
19851
19889
  }],
19852
19890
  width: "w100",
19853
19891
  display: "df",
@@ -19906,7 +19944,7 @@ function SuperDrawer() {
19906
19944
  }
19907
19945
 
19908
19946
  // src/components/Layout/FormPageLayout.tsx
19909
- import React19, { createRef, useCallback as useCallback28, useEffect as useEffect26, useMemo as useMemo37, useRef as useRef51, useState as useState43 } from "react";
19947
+ import React19, { createRef, useCallback as useCallback29, useEffect as useEffect26, useMemo as useMemo37, useRef as useRef52, useState as useState44 } from "react";
19910
19948
  import { useButton as useButton9, useFocusRing as useFocusRing14 } from "react-aria";
19911
19949
 
19912
19950
  // src/forms/BoundCheckboxField.tsx
@@ -20132,7 +20170,7 @@ function BoundDateRangeField(props) {
20132
20170
  }
20133
20171
 
20134
20172
  // src/forms/BoundForm.tsx
20135
- import { useCallback as useCallback25, useMemo as useMemo33 } from "react";
20173
+ import { useCallback as useCallback26, useMemo as useMemo33 } from "react";
20136
20174
 
20137
20175
  // src/forms/BoundListField.tsx
20138
20176
  import { Observer as Observer6 } from "mobx-react";
@@ -20685,7 +20723,7 @@ function BoundTreeSelectField(props) {
20685
20723
 
20686
20724
  // src/forms/FormLines.tsx
20687
20725
  import { Children as Children2, cloneElement } from "react";
20688
- import { trussProps as trussProps83, maybeCssVar as maybeCssVar41 } from "@homebound/truss/runtime";
20726
+ import { trussProps as trussProps83, maybeCssVar as maybeCssVar42 } from "@homebound/truss/runtime";
20689
20727
  import { jsx as jsx140 } from "react/jsx-runtime";
20690
20728
  var __maybeInc19 = (inc) => {
20691
20729
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -20725,13 +20763,13 @@ function FormLines(props) {
20725
20763
  display: "df",
20726
20764
  flexDirection: "fdc",
20727
20765
  gap: ["gap_var", {
20728
- "--gap": maybeCssVar41(__maybeInc19(gap))
20766
+ "--gap": maybeCssVar42(__maybeInc19(gap))
20729
20767
  }],
20730
20768
  paddingBottom: ["pb_var", {
20731
- "--paddingBottom": maybeCssVar41(__maybeInc19(gap))
20769
+ "--paddingBottom": maybeCssVar42(__maybeInc19(gap))
20732
20770
  }],
20733
20771
  width: ["w_var", {
20734
- "--width": maybeCssVar41(__maybeInc19(sizes[width2]))
20772
+ "--width": maybeCssVar42(__maybeInc19(sizes[width2]))
20735
20773
  }]
20736
20774
  }), children: Children2.map(children, (child) => {
20737
20775
  if (child && typeof child === "object" && "type" in child && child.type.isFormHeading) {
@@ -20766,7 +20804,7 @@ function FieldGroup(props) {
20766
20804
  display: "dg",
20767
20805
  gap: "gap2",
20768
20806
  gridTemplateColumns: ["gtc_var", {
20769
- "--gridTemplateColumns": maybeCssVar41(gtc)
20807
+ "--gridTemplateColumns": maybeCssVar42(gtc)
20770
20808
  }]
20771
20809
  }), children });
20772
20810
  }
@@ -20778,7 +20816,7 @@ var sizes = {
20778
20816
  };
20779
20817
 
20780
20818
  // src/forms/BoundForm.tsx
20781
- import { trussProps as trussProps84, maybeCssVar as maybeCssVar42 } from "@homebound/truss/runtime";
20819
+ import { trussProps as trussProps84, maybeCssVar as maybeCssVar43 } from "@homebound/truss/runtime";
20782
20820
  import { jsx as jsx141 } from "react/jsx-runtime";
20783
20821
  import { createElement as createElement5 } from "react";
20784
20822
  var reactNodePrefix = "reactNode";
@@ -20789,7 +20827,7 @@ function BoundForm(props) {
20789
20827
  formState
20790
20828
  } = props;
20791
20829
  const tid = useTestIds({}, "boundForm");
20792
- const getRowKey = useCallback25((row, rowType) => {
20830
+ const getRowKey = useCallback26((row, rowType) => {
20793
20831
  return `${rowType}-${Object.keys(row).join("-")}`;
20794
20832
  }, []);
20795
20833
  return /* @__PURE__ */ jsx141("div", { ...tid, children: /* @__PURE__ */ jsx141(FormLines, { width: "full", gap: 3.5, children: rows.map((row) => isListFieldRow(row) ? /* @__PURE__ */ jsx141(ListField, { row, formState }, getRowKey(row, "listField")) : /* @__PURE__ */ jsx141(FormRow, { row, formState }, getRowKey(row, "fieldGroup"))) }) });
@@ -20835,10 +20873,10 @@ function FormRow({
20835
20873
  minWidth
20836
20874
  }) => /* @__PURE__ */ createElement5("div", { ...trussProps84({
20837
20875
  minWidth: ["mw_var", {
20838
- "--minWidth": maybeCssVar42(minWidth)
20876
+ "--minWidth": maybeCssVar43(minWidth)
20839
20877
  }],
20840
20878
  flexBasis: ["fb_var", {
20841
- "--flexBasis": maybeCssVar42(`${itemFlexBasis}%`)
20879
+ "--flexBasis": maybeCssVar43(`${itemFlexBasis}%`)
20842
20880
  }],
20843
20881
  flexGrow: "fg1"
20844
20882
  }), key: key.toString() }, isLoading ? /* @__PURE__ */ jsx141(LoadingSkeleton, { size: "lg" }) : component)) });
@@ -20950,7 +20988,7 @@ function boundTreeSelectField(props) {
20950
20988
  }
20951
20989
 
20952
20990
  // src/components/internal/CompoundField.tsx
20953
- import { cloneElement as cloneElement2, useState as useState39 } from "react";
20991
+ import { cloneElement as cloneElement2, useState as useState40 } from "react";
20954
20992
  import { trussProps as trussProps85 } from "@homebound/truss/runtime";
20955
20993
  import { jsx as jsx142, jsxs as jsxs69 } from "react/jsx-runtime";
20956
20994
  function CompoundField({
@@ -20975,7 +21013,7 @@ function CompoundField({
20975
21013
  const internalProps = {
20976
21014
  compound: true
20977
21015
  };
20978
- const [hasFocusWithin, setHasFocusWithin] = useState39(false);
21016
+ const [hasFocusWithin, setHasFocusWithin] = useState40(false);
20979
21017
  function onFocusCapture() {
20980
21018
  setHasFocusWithin(true);
20981
21019
  }
@@ -21090,7 +21128,7 @@ FormHeading.isFormHeading = true;
21090
21128
 
21091
21129
  // src/components/DnDGrid/DnDGrid.tsx
21092
21130
  import equal2 from "fast-deep-equal";
21093
- import { useCallback as useCallback26, useRef as useRef49 } from "react";
21131
+ import { useCallback as useCallback27, useRef as useRef50 } from "react";
21094
21132
 
21095
21133
  // src/components/DnDGrid/DnDGridContext.tsx
21096
21134
  import { createContext as createContext9, useContext as useContext19 } from "react";
@@ -21113,13 +21151,13 @@ function DnDGrid(props) {
21113
21151
  onReorder,
21114
21152
  activeItemStyles
21115
21153
  } = props;
21116
- const gridEl = useRef49(null);
21117
- const dragEl = useRef49();
21118
- const cloneEl = useRef49();
21119
- const initialOrder = useRef49();
21120
- const styleSnapshot = useRef49();
21121
- const reorderViaKeyboard = useRef49(false);
21122
- const transformFrom = useRef49({
21154
+ const gridEl = useRef50(null);
21155
+ const dragEl = useRef50();
21156
+ const cloneEl = useRef50();
21157
+ const initialOrder = useRef50();
21158
+ const styleSnapshot = useRef50();
21159
+ const reorderViaKeyboard = useRef50(false);
21160
+ const transformFrom = useRef50({
21123
21161
  x: 0,
21124
21162
  y: 0
21125
21163
  });
@@ -21127,20 +21165,20 @@ function DnDGrid(props) {
21127
21165
  const activeStyles3 = activeItemStyles ?? {
21128
21166
  boxShadow: "bshModal"
21129
21167
  };
21130
- const getGridItems = useCallback26(() => {
21168
+ const getGridItems = useCallback27(() => {
21131
21169
  return gridEl.current ? Array.from(gridEl.current.querySelectorAll(`[${gridItemIdKey}]`)) : [];
21132
21170
  }, []);
21133
- const getGridItemIdOrder = useCallback26(() => {
21171
+ const getGridItemIdOrder = useCallback27(() => {
21134
21172
  return getGridItems().map((child) => child.getAttribute(gridItemIdKey)).filter(isDefined);
21135
21173
  }, [getGridItems]);
21136
- const initReorder = useCallback26(() => {
21174
+ const initReorder = useCallback27(() => {
21137
21175
  if (gridEl.current && dragEl.current) {
21138
21176
  initialOrder.current = getGridItemIdOrder();
21139
21177
  styleSnapshot.current = snapshotElementStyle(dragEl.current);
21140
21178
  applyActiveStyles(dragEl.current, activeStyles3);
21141
21179
  }
21142
21180
  }, [getGridItemIdOrder, activeStyles3]);
21143
- const commitReorder = useCallback26(() => {
21181
+ const commitReorder = useCallback27(() => {
21144
21182
  if (gridEl.current && dragEl.current) {
21145
21183
  const currentOrder = getGridItemIdOrder();
21146
21184
  if (!equal2(currentOrder, initialOrder.current)) onReorder(currentOrder);
@@ -21150,7 +21188,7 @@ function DnDGrid(props) {
21150
21188
  initialOrder.current = currentOrder;
21151
21189
  }
21152
21190
  }, [onReorder, getGridItemIdOrder]);
21153
- const cancelReorder = useCallback26(() => {
21191
+ const cancelReorder = useCallback27(() => {
21154
21192
  if (gridEl.current && dragEl.current && initialOrder.current) {
21155
21193
  const currentOrder = getGridItemIdOrder();
21156
21194
  if (!equal2(currentOrder, initialOrder.current)) {
@@ -21172,7 +21210,7 @@ function DnDGrid(props) {
21172
21210
  reorderViaKeyboard.current = false;
21173
21211
  }
21174
21212
  }, [getGridItemIdOrder, getGridItems]);
21175
- const onMove = useCallback26((e) => {
21213
+ const onMove = useCallback27((e) => {
21176
21214
  if (!reorderViaKeyboard.current && dragEl.current && cloneEl.current && gridEl.current) {
21177
21215
  const clientX = "clientX" in e ? e.clientX : e.touches[0].clientX;
21178
21216
  const clientY = "clientY" in e ? e.clientY : e.touches[0].clientY;
@@ -21195,7 +21233,7 @@ function DnDGrid(props) {
21195
21233
  }
21196
21234
  }
21197
21235
  }, []);
21198
- const onDragStart = useCallback26((e) => {
21236
+ const onDragStart = useCallback27((e) => {
21199
21237
  if (!reorderViaKeyboard.current && dragEl.current && gridEl.current) {
21200
21238
  const rect = dragEl.current.getBoundingClientRect();
21201
21239
  const clientX = "clientX" in e ? e.clientX : e.touches[0].clientX;
@@ -21224,7 +21262,7 @@ function DnDGrid(props) {
21224
21262
  gridEl.current.addEventListener("touchmove", onMove);
21225
21263
  }
21226
21264
  }, [initReorder, onMove]);
21227
- const onDragEnd = useCallback26((e) => {
21265
+ const onDragEnd = useCallback27((e) => {
21228
21266
  if (!reorderViaKeyboard.current && dragEl.current && cloneEl.current && gridEl.current) {
21229
21267
  e.preventDefault();
21230
21268
  cloneEl.current.replaceWith(dragEl.current);
@@ -21236,7 +21274,7 @@ function DnDGrid(props) {
21236
21274
  gridEl.current.removeEventListener("touchmove", onMove);
21237
21275
  }
21238
21276
  }, [commitReorder, onMove]);
21239
- const onDragHandleKeyDown = useCallback26((e) => {
21277
+ const onDragHandleKeyDown = useCallback27((e) => {
21240
21278
  const moveHandle = e.target;
21241
21279
  if (dragEl.current instanceof HTMLElement && moveHandle instanceof HTMLElement && gridEl.current) {
21242
21280
  const isSpaceKey = e.key === " ";
@@ -21413,10 +21451,10 @@ var headingByLevel = {
21413
21451
  };
21414
21452
 
21415
21453
  // src/forms/FormSection/FormSection.tsx
21416
- import { trussProps as trussProps91, maybeCssVar as maybeCssVar43 } from "@homebound/truss/runtime";
21454
+ import { trussProps as trussProps91, maybeCssVar as maybeCssVar44 } from "@homebound/truss/runtime";
21417
21455
 
21418
21456
  // src/forms/FormSection/FormSectionChild.tsx
21419
- import { useRef as useRef50 } from "react";
21457
+ import { useRef as useRef51 } from "react";
21420
21458
 
21421
21459
  // src/components/DnDGrid/DnDGridItemHandle.tsx
21422
21460
  import { mergeProps as mergeProps23, useFocusRing as useFocusRing13, useHover as useHover16 } from "react-aria";
@@ -21510,7 +21548,7 @@ function FormSectionChild(props) {
21510
21548
  orderField
21511
21549
  } = props;
21512
21550
  const tid = useTestIds(props, "formSectionChild");
21513
- const itemRef = useRef50(null);
21551
+ const itemRef = useRef51(null);
21514
21552
  const isDraggable = !!orderField;
21515
21553
  const {
21516
21554
  dragItemProps,
@@ -21559,7 +21597,7 @@ function FormSection(props) {
21559
21597
  flexDirection: "fdc",
21560
21598
  gap: "gap2",
21561
21599
  scrollMarginTop: ["scrollMarginTop_var", {
21562
- "--scrollMarginTop": maybeCssVar43(stickyNavAndHeaderOffset())
21600
+ "--scrollMarginTop": maybeCssVar44(stickyNavAndHeaderOffset())
21563
21601
  }]
21564
21602
  }), ...tid.section, children: [
21565
21603
  /* @__PURE__ */ jsx150(ContentHeader, { ...tid, title, description, actions, level: 3 }),
@@ -21678,8 +21716,8 @@ import { useDebouncedCallback as useDebouncedCallback5 } from "use-debounce";
21678
21716
 
21679
21717
  // src/components/RightSidebar.tsx
21680
21718
  import { AnimatePresence as AnimatePresence2, motion as motion2 } from "framer-motion";
21681
- import { useState as useState40 } from "react";
21682
- import { trussProps as trussProps93, maybeCssVar as maybeCssVar44 } from "@homebound/truss/runtime";
21719
+ import { useState as useState41 } from "react";
21720
+ import { trussProps as trussProps93, maybeCssVar as maybeCssVar45 } from "@homebound/truss/runtime";
21683
21721
  import { Fragment as Fragment29, jsx as jsx153, jsxs as jsxs75 } from "react/jsx-runtime";
21684
21722
  var __maybeInc20 = (inc) => {
21685
21723
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -21689,7 +21727,7 @@ function RightSidebar({
21689
21727
  content,
21690
21728
  headerHeightPx: headerHeightPx2
21691
21729
  }) {
21692
- const [selectedIcon, setSelectedIcon] = useState40(void 0);
21730
+ const [selectedIcon, setSelectedIcon] = useState41(void 0);
21693
21731
  const tid = useTestIds({}, "rightSidebar");
21694
21732
  return /* @__PURE__ */ jsxs75(Fragment29, { children: [
21695
21733
  /* @__PURE__ */ jsx153("div", { className: "df jcfe absolute right0 pr3", children: /* @__PURE__ */ jsx153(AnimatePresence2, { children: !selectedIcon && /* @__PURE__ */ jsx153(motion2.div, { className: "df fdc gap2 z1", initial: {
@@ -21725,11 +21763,11 @@ function RightSidebar({
21725
21763
  }, ...trussProps93({
21726
21764
  width: "w100",
21727
21765
  minWidth: ["mw_var", {
21728
- "--minWidth": maybeCssVar44(RIGHT_SIDEBAR_MIN_WIDTH)
21766
+ "--minWidth": maybeCssVar45(RIGHT_SIDEBAR_MIN_WIDTH)
21729
21767
  }],
21730
21768
  zIndex: "z0",
21731
21769
  height: ["h_var", {
21732
- "--height": maybeCssVar44(__maybeInc20(`calc(100vh - ${headerHeightPx2}px)`))
21770
+ "--height": maybeCssVar45(__maybeInc20(`calc(100vh - ${headerHeightPx2}px)`))
21733
21771
  }],
21734
21772
  overflowY: "oya",
21735
21773
  paddingLeft: "pl4",
@@ -21790,7 +21828,7 @@ function IconButtonList({
21790
21828
  }
21791
21829
 
21792
21830
  // src/components/Toast/ToastContext.tsx
21793
- import { createContext as createContext10, useCallback as useCallback27, useContext as useContext20, useMemo as useMemo35, useState as useState41 } from "react";
21831
+ import { createContext as createContext10, useCallback as useCallback28, useContext as useContext20, useMemo as useMemo35, useState as useState42 } from "react";
21794
21832
  import { jsx as jsx154 } from "react/jsx-runtime";
21795
21833
  var ToastContext = createContext10({
21796
21834
  setNotice: () => {
@@ -21801,8 +21839,8 @@ var ToastContext = createContext10({
21801
21839
  notice: void 0
21802
21840
  });
21803
21841
  function ToastProvider(props) {
21804
- const [notice, setNotice] = useState41();
21805
- const clear = useCallback27(() => setNotice(void 0), [setNotice]);
21842
+ const [notice, setNotice] = useState42();
21843
+ const clear = useCallback28(() => setNotice(void 0), [setNotice]);
21806
21844
  const contextValue = useMemo35(() => ({ setNotice, notice, clear }), [notice, clear]);
21807
21845
  return /* @__PURE__ */ jsx154(ToastContext.Provider, { value: contextValue, children: props.children });
21808
21846
  }
@@ -21819,7 +21857,7 @@ function Toast() {
21819
21857
  }
21820
21858
 
21821
21859
  // src/components/Layout/PageHeaderBreadcrumbs.tsx
21822
- import { Fragment as Fragment31, useMemo as useMemo36, useState as useState42 } from "react";
21860
+ import { Fragment as Fragment31, useMemo as useMemo36, useState as useState43 } from "react";
21823
21861
  import { Link as Link5 } from "react-router-dom";
21824
21862
  import { trussProps as trussProps94, mergeProps as mergeProps24 } from "@homebound/truss/runtime";
21825
21863
  import { Fragment as Fragment32, jsx as jsx156, jsxs as jsxs76 } from "react/jsx-runtime";
@@ -21828,7 +21866,7 @@ function PageHeaderBreadcrumbs({
21828
21866
  }) {
21829
21867
  const tids = useTestIds({}, "pageHeaderBreadcrumbs");
21830
21868
  const breadcrumbs = useMemo36(() => Array.isArray(breadcrumb) ? breadcrumb : [breadcrumb], [breadcrumb]);
21831
- const [collapsed, setCollapsed] = useState42(true);
21869
+ const [collapsed, setCollapsed] = useState43(true);
21832
21870
  function renderBreadcrumb(bc, index, hideDivisor) {
21833
21871
  return (
21834
21872
  // Adding index to key to prevent rendering issues when multiple items have the same label
@@ -21873,7 +21911,7 @@ function PageHeaderBreadcrumbs({
21873
21911
  }
21874
21912
 
21875
21913
  // src/components/Layout/FormPageLayout.tsx
21876
- import { trussProps as trussProps95, maybeCssVar as maybeCssVar45 } from "@homebound/truss/runtime";
21914
+ import { trussProps as trussProps95, maybeCssVar as maybeCssVar46 } from "@homebound/truss/runtime";
21877
21915
  import { jsx as jsx157, jsxs as jsxs77 } from "react/jsx-runtime";
21878
21916
  var headerHeightPx = 120;
21879
21917
  var maxContentWidthPx = 1600;
@@ -21903,7 +21941,7 @@ function FormPageLayoutComponent(props) {
21903
21941
  left: "left0",
21904
21942
  right: "right0",
21905
21943
  zIndex: ["z_var", {
21906
- "--zIndex": maybeCssVar45(zIndices.pageOverlay)
21944
+ "--zIndex": maybeCssVar46(zIndices.pageOverlay)
21907
21945
  }],
21908
21946
  overflowY: "oya",
21909
21947
  backgroundColor: ["bgColor_var", {
@@ -21919,7 +21957,7 @@ function FormPageLayoutComponent(props) {
21919
21957
  }],
21920
21958
  display: "dg",
21921
21959
  gridTemplateColumns: ["gtc_var", {
21922
- "--gridTemplateColumns": maybeCssVar45(gridColumns)
21960
+ "--gridTemplateColumns": maybeCssVar46(gridColumns)
21923
21961
  }],
21924
21962
  gridTemplateRows: "gtr_auto_1fr",
21925
21963
  columnGap: "cg3",
@@ -21962,7 +22000,7 @@ function PageHeader(props) {
21962
22000
  "--backgroundColor": "var(--b-surface)"
21963
22001
  }],
21964
22002
  zIndex: ["z_var", {
21965
- "--zIndex": maybeCssVar45(zIndices.pageStickyHeader)
22003
+ "--zIndex": maybeCssVar46(zIndices.pageStickyHeader)
21966
22004
  }],
21967
22005
  ...!notice ? {
21968
22006
  height: ["h_var", {
@@ -22015,7 +22053,7 @@ function FormSections(props) {
22015
22053
  gridTemplateRows: "gtr_auto",
22016
22054
  marginBottom: "mb_72px",
22017
22055
  scrollMarginTop: ["scrollMarginTop_var", {
22018
- "--scrollMarginTop": maybeCssVar45(`${headerHeightPx}px`)
22056
+ "--scrollMarginTop": maybeCssVar46(`${headerHeightPx}px`)
22019
22057
  }]
22020
22058
  }),
22021
22059
  ...tids.formSection,
@@ -22059,7 +22097,7 @@ var activeStyles = {
22059
22097
  fontSize: "fz_14px",
22060
22098
  lineHeight: "lh_20px",
22061
22099
  boxShadow: ["boxShadow_var", {
22062
- "--boxShadow": maybeCssVar45(`inset 3px 0px 0 0px var(${"--b-primary" /* Primary */})`)
22100
+ "--boxShadow": maybeCssVar46(`inset 3px 0px 0 0px var(${"--b-primary" /* Primary */})`)
22063
22101
  }]
22064
22102
  };
22065
22103
  var hoverStyles2 = {
@@ -22069,7 +22107,7 @@ var hoverStyles2 = {
22069
22107
  lineHeight: "lh_20px",
22070
22108
  color: "blue900",
22071
22109
  boxShadow: ["boxShadow_var", {
22072
- "--boxShadow": maybeCssVar45(`inset 3px 0px 0 0px var(${"--b-primary" /* Primary */})`)
22110
+ "--boxShadow": maybeCssVar46(`inset 3px 0px 0 0px var(${"--b-primary" /* Primary */})`)
22073
22111
  }]
22074
22112
  };
22075
22113
  var defaultFocusRingStyles = {
@@ -22087,14 +22125,14 @@ function SectionNavLink(props) {
22087
22125
  ref: sectionRef
22088
22126
  } = sectionWithRef;
22089
22127
  const active = activeSection === sectionWithRef.sectionKey;
22090
- const handleNavClick = useCallback28(() => {
22128
+ const handleNavClick = useCallback29(() => {
22091
22129
  sectionRef.current?.scrollIntoView({
22092
22130
  behavior: "smooth",
22093
22131
  block: "start"
22094
22132
  });
22095
22133
  }, [sectionRef]);
22096
22134
  const tids = useTestIds(props);
22097
- const buttonRef = useRef51(null);
22135
+ const buttonRef = useRef52(null);
22098
22136
  const {
22099
22137
  buttonProps,
22100
22138
  isPressed
@@ -22136,7 +22174,7 @@ function SectionNavLink(props) {
22136
22174
  }), ...tids.sectionNavLink, children: section.title });
22137
22175
  }
22138
22176
  function useActiveSection(sectionsWithRefs) {
22139
- const [activeSection, setActiveSection] = useState43(null);
22177
+ const [activeSection, setActiveSection] = useState44(null);
22140
22178
  const debouncedIntersectionCallback = useDebouncedCallback5((entries) => {
22141
22179
  const sectionsInView = entries.filter((entry) => entry.isIntersecting && entry.intersectionRatio > 0.2).sort((a, b) => {
22142
22180
  const ratioDiff = b.intersectionRatio - a.intersectionRatio;
@@ -22186,7 +22224,7 @@ function useActiveSection(sectionsWithRefs) {
22186
22224
  }
22187
22225
 
22188
22226
  // src/components/Layout/FullBleed.tsx
22189
- import { mergeProps as mergeProps25, maybeCssVar as maybeCssVar46 } from "@homebound/truss/runtime";
22227
+ import { mergeProps as mergeProps25, maybeCssVar as maybeCssVar47 } from "@homebound/truss/runtime";
22190
22228
  import { cloneElement as cloneElement3 } from "react";
22191
22229
  var __maybeInc21 = (inc) => {
22192
22230
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -22219,17 +22257,17 @@ function FullBleed({
22219
22257
  // inverts that padding with negative margins before re-applying it to the child.
22220
22258
  {
22221
22259
  marginLeft: ["ml_var", {
22222
- "--marginLeft": maybeCssVar46(__maybeInc21(invertSpacing(paddingLeft)))
22260
+ "--marginLeft": maybeCssVar47(__maybeInc21(invertSpacing(paddingLeft)))
22223
22261
  }],
22224
22262
  marginRight: ["mr_var", {
22225
- "--marginRight": maybeCssVar46(__maybeInc21(invertSpacing(paddingRight)))
22263
+ "--marginRight": maybeCssVar47(__maybeInc21(invertSpacing(paddingRight)))
22226
22264
  }],
22227
22265
  ...!omitPadding ? {
22228
22266
  paddingLeft: ["pl_var", {
22229
- "--paddingLeft": maybeCssVar46(__maybeInc21(paddingLeft))
22267
+ "--paddingLeft": maybeCssVar47(__maybeInc21(paddingLeft))
22230
22268
  }],
22231
22269
  paddingRight: ["pr_var", {
22232
- "--paddingRight": maybeCssVar46(__maybeInc21(paddingRight))
22270
+ "--paddingRight": maybeCssVar47(__maybeInc21(paddingRight))
22233
22271
  }]
22234
22272
  } : {}
22235
22273
  }
@@ -22243,8 +22281,8 @@ function invertSpacing(value) {
22243
22281
  }
22244
22282
 
22245
22283
  // src/components/Layout/GridTableLayout/GridTableLayout.tsx
22246
- import { useResizeObserver as useResizeObserver6 } from "@react-aria/utils";
22247
- import React21, { useCallback as useCallback32, useEffect as useEffect29, useLayoutEffect as useLayoutEffect8, useMemo as useMemo43, useRef as useRef54, useState as useState48 } from "react";
22284
+ import { useResizeObserver as useResizeObserver7 } from "@react-aria/utils";
22285
+ import React21, { useCallback as useCallback33, useEffect as useEffect29, useLayoutEffect as useLayoutEffect9, useMemo as useMemo43, useRef as useRef55, useState as useState49 } from "react";
22248
22286
 
22249
22287
  // src/components/Filters/utils.tsx
22250
22288
  function getActiveFilterCount(filter) {
@@ -22265,7 +22303,7 @@ function isGridTableProps(props) {
22265
22303
  }
22266
22304
 
22267
22305
  // src/components/Layout/RightPaneLayout/DocumentScrollRightPaneLayout.tsx
22268
- import { useLayoutEffect as useLayoutEffect7 } from "react";
22306
+ import { useLayoutEffect as useLayoutEffect8 } from "react";
22269
22307
  import { mergeProps as mergeProps27 } from "@homebound/truss/runtime";
22270
22308
 
22271
22309
  // src/components/Layout/RightPaneLayout/DocumentScrollRightPane.tsx
@@ -22286,7 +22324,7 @@ function useEnvironmentBannerLayoutHeight() {
22286
22324
  }
22287
22325
 
22288
22326
  // src/components/Layout/RightPaneLayout/RightPaneContext.tsx
22289
- import React20, { useCallback as useCallback29, useContext as useContext22, useMemo as useMemo38, useState as useState44 } from "react";
22327
+ import React20, { useCallback as useCallback30, useContext as useContext22, useMemo as useMemo38, useState as useState45 } from "react";
22290
22328
  import { jsx as jsx159 } from "react/jsx-runtime";
22291
22329
  var RightPaneContext = React20.createContext({
22292
22330
  openInPane: () => {
@@ -22299,17 +22337,17 @@ var RightPaneContext = React20.createContext({
22299
22337
  rightPaneContent: null
22300
22338
  });
22301
22339
  function RightPaneProvider({ children }) {
22302
- const [rightPaneContent, setRightPaneContent] = useState44(void 0);
22303
- const [isRightPaneOpen, setIsRightPaneOpen] = useState44(false);
22304
- const openInPane = useCallback29(
22340
+ const [rightPaneContent, setRightPaneContent] = useState45(void 0);
22341
+ const [isRightPaneOpen, setIsRightPaneOpen] = useState45(false);
22342
+ const openInPane = useCallback30(
22305
22343
  (opts) => {
22306
22344
  setRightPaneContent(opts?.content);
22307
22345
  setIsRightPaneOpen(true);
22308
22346
  },
22309
22347
  [setRightPaneContent]
22310
22348
  );
22311
- const closePane = useCallback29(() => setIsRightPaneOpen(false), []);
22312
- const clearPane = useCallback29(() => setRightPaneContent(void 0), [setRightPaneContent]);
22349
+ const closePane = useCallback30(() => setIsRightPaneOpen(false), []);
22350
+ const clearPane = useCallback30(() => setRightPaneContent(void 0), [setRightPaneContent]);
22313
22351
  const context = useMemo38(
22314
22352
  () => ({ openInPane, closePane, clearPane, rightPaneContent, isRightPaneOpen }),
22315
22353
  [openInPane, closePane, rightPaneContent, clearPane, isRightPaneOpen]
@@ -22321,7 +22359,7 @@ function useRightPaneContext() {
22321
22359
  }
22322
22360
 
22323
22361
  // src/components/Layout/RightPaneLayout/DocumentScrollRightPane.tsx
22324
- import { mergeProps as mergeProps26, maybeCssVar as maybeCssVar47 } from "@homebound/truss/runtime";
22362
+ import { mergeProps as mergeProps26, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
22325
22363
  import { jsx as jsx160 } from "react/jsx-runtime";
22326
22364
  var __maybeInc22 = (inc) => {
22327
22365
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -22358,27 +22396,27 @@ function DocumentScrollRightPane({
22358
22396
  "--backgroundColor": "var(--b-surface)"
22359
22397
  }],
22360
22398
  zIndex: ["z_var", {
22361
- "--zIndex": maybeCssVar47(zIndices.rightPaneMobile)
22399
+ "--zIndex": maybeCssVar48(zIndices.rightPaneMobile)
22362
22400
  }]
22363
22401
  } : {
22364
22402
  position: "fixed",
22365
22403
  transition: "transitionTop",
22366
22404
  top: ["top_var", {
22367
- "--top": maybeCssVar47(__maybeInc22(stickyTableHeaderOffset()))
22405
+ "--top": maybeCssVar48(__maybeInc22(stickyTableHeaderOffset()))
22368
22406
  }],
22369
22407
  right: "right_0",
22370
22408
  height: ["h_var", {
22371
- "--height": maybeCssVar47(__maybeInc22(documentScrollRightPaneHeight()))
22409
+ "--height": maybeCssVar48(__maybeInc22(documentScrollRightPaneHeight()))
22372
22410
  }],
22373
22411
  width: ["w_var", {
22374
- "--width": maybeCssVar47(__maybeInc22(documentScrollRightPaneWidth(paneWidth)))
22412
+ "--width": maybeCssVar48(__maybeInc22(documentScrollRightPaneWidth(paneWidth)))
22375
22413
  }],
22376
22414
  overflowY: "oya",
22377
22415
  backgroundColor: ["bgColor_var", {
22378
22416
  "--backgroundColor": "var(--b-surface)"
22379
22417
  }],
22380
22418
  zIndex: ["z_var", {
22381
- "--zIndex": maybeCssVar47(zIndices.rightPane)
22419
+ "--zIndex": maybeCssVar48(zIndices.rightPane)
22382
22420
  }],
22383
22421
  borderLeftStyle: "bls_solid",
22384
22422
  borderLeftWidth: "blw_1px",
@@ -22415,7 +22453,7 @@ function DocumentScrollRightPaneLayout(props) {
22415
22453
  } = useBreakpoint();
22416
22454
  const isSplitPaneOpen = isRightPaneOpen && !sm;
22417
22455
  const effectivePaneWidth = isSplitPaneOpen ? documentScrollRightPaneWidth(paneWidth) : "0px";
22418
- useLayoutEffect7(() => {
22456
+ useLayoutEffect8(() => {
22419
22457
  const root = document.documentElement;
22420
22458
  const previous = root.style.getPropertyValue(beamFloatingRightOffsetVar);
22421
22459
  root.style.setProperty(beamFloatingRightOffsetVar, effectivePaneWidth);
@@ -22465,10 +22503,10 @@ function DocumentScrollRightPaneSpacer({
22465
22503
  }
22466
22504
 
22467
22505
  // src/components/Layout/GridTableLayout/GridTableLayoutActions.tsx
22468
- import { memo as memo2, useMemo as useMemo41, useState as useState46 } from "react";
22506
+ import { memo as memo2, useMemo as useMemo41, useState as useState47 } from "react";
22469
22507
 
22470
22508
  // src/components/ButtonMenu.tsx
22471
- import { useRef as useRef52 } from "react";
22509
+ import { useRef as useRef53 } from "react";
22472
22510
  import { useMenuTrigger as useMenuTrigger2 } from "react-aria";
22473
22511
  import { useMenuTriggerState as useMenuTriggerState2 } from "react-stately";
22474
22512
  import { jsx as jsx162 } from "react/jsx-runtime";
@@ -22480,7 +22518,7 @@ function ButtonMenu(props) {
22480
22518
  onChange = props.onChange;
22481
22519
  }
22482
22520
  const state = useMenuTriggerState2({ isOpen: defaultOpen });
22483
- const buttonRef = useRef52(null);
22521
+ const buttonRef = useRef53(null);
22484
22522
  const { menuTriggerProps, menuProps } = useMenuTrigger2({ isDisabled: !!disabled }, state, buttonRef);
22485
22523
  const tid = useTestIds(
22486
22524
  props,
@@ -22505,7 +22543,7 @@ function isSelectionButtonMenuProps(props) {
22505
22543
  }
22506
22544
 
22507
22545
  // src/components/CountBadge.tsx
22508
- import { trussProps as trussProps96, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
22546
+ import { trussProps as trussProps96, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
22509
22547
  import { jsx as jsx163 } from "react/jsx-runtime";
22510
22548
  function CountBadge(props) {
22511
22549
  const {
@@ -22537,12 +22575,12 @@ function CountBadge(props) {
22537
22575
  alignItems: "aic",
22538
22576
  justifyContent: "jcc",
22539
22577
  backgroundColor: ["bgColor_var", {
22540
- "--backgroundColor": maybeCssVar48(bgColor)
22578
+ "--backgroundColor": maybeCssVar49(bgColor)
22541
22579
  }]
22542
22580
  },
22543
22581
  ...{
22544
22582
  color: ["color_var", {
22545
- "--color": maybeCssVar48(color)
22583
+ "--color": maybeCssVar49(color)
22546
22584
  }]
22547
22585
  }
22548
22586
  }), children: count });
@@ -22996,7 +23034,7 @@ var CheckboxFilter = class extends BaseFilter {
22996
23034
  };
22997
23035
 
22998
23036
  // src/components/Filters/FilterModal.tsx
22999
- import { useState as useState45 } from "react";
23037
+ import { useState as useState46 } from "react";
23000
23038
 
23001
23039
  // src/components/Modal/ConfirmCloseModal.tsx
23002
23040
  import { Fragment as Fragment36, jsx as jsx172, jsxs as jsxs82 } from "react/jsx-runtime";
@@ -23073,7 +23111,7 @@ function FilterModal(props) {
23073
23111
  const {
23074
23112
  closeModal
23075
23113
  } = useModal();
23076
- const [modalFilter, setModalFilter] = useState45(filter);
23114
+ const [modalFilter, setModalFilter] = useState46(filter);
23077
23115
  return /* @__PURE__ */ jsxs83(Fragment37, { children: [
23078
23116
  /* @__PURE__ */ jsx174(ModalHeader, { children: "More Filters" }),
23079
23117
  /* @__PURE__ */ jsx174(ModalBody, { children: /* @__PURE__ */ jsx174("div", { className: "df fdc", children: safeEntries(filters).map(([key, f]) => /* @__PURE__ */ jsx174(ModalFilterItem, { label: f.hideLabelInModal ? void 0 : f.label, children: f.render(modalFilter[key], (value) => setModalFilter(updateFilter(modalFilter, key, value)), testId, true, false) }, key)) }) }),
@@ -23199,7 +23237,7 @@ var ToggleFilter = class extends BaseFilter {
23199
23237
  };
23200
23238
 
23201
23239
  // src/components/Table/components/EditColumnsButton.tsx
23202
- import { Fragment as Fragment38, useCallback as useCallback30, useMemo as useMemo40, useRef as useRef53 } from "react";
23240
+ import { Fragment as Fragment38, useCallback as useCallback31, useMemo as useMemo40, useRef as useRef54 } from "react";
23203
23241
  import { useMenuTrigger as useMenuTrigger3 } from "react-aria";
23204
23242
  import { useMenuTriggerState as useMenuTriggerState3 } from "react-stately";
23205
23243
  import { trussProps as trussProps99 } from "@homebound/truss/runtime";
@@ -23214,7 +23252,7 @@ function EditColumnsButton(props) {
23214
23252
  const state = useMenuTriggerState3({
23215
23253
  isOpen: defaultOpen
23216
23254
  });
23217
- const buttonRef = useRef53(null);
23255
+ const buttonRef = useRef54(null);
23218
23256
  const {
23219
23257
  menuTriggerProps
23220
23258
  } = useMenuTrigger3({
@@ -23235,7 +23273,7 @@ function EditColumnsButton(props) {
23235
23273
  value: column2.id
23236
23274
  })), [columns]);
23237
23275
  const selectedValues = useComputed(() => api.getVisibleColumnIds(), [api]);
23238
- const setSelectedValues = useCallback30((ids) => {
23276
+ const setSelectedValues = useCallback31((ids) => {
23239
23277
  api.resetColumnWidths();
23240
23278
  api.setVisibleColumns(columns.filter((column2) => column2.canHide ? ids.includes(column2.id) : true).map((c) => c.id));
23241
23279
  }, [columns, api]);
@@ -23444,14 +23482,14 @@ function GridTableLayoutActionsComponent(props) {
23444
23482
  sm
23445
23483
  } = useBreakpoint();
23446
23484
  const inDocumentScrollLayout = useDocumentScrollLayout();
23447
- const [showSearch, setShowSearch] = useState46(false);
23448
- const [showFilters, setShowFilters] = useState46(false);
23485
+ const [showSearch, setShowSearch] = useState47(false);
23486
+ const [showFilters, setShowFilters] = useState47(false);
23449
23487
  const [{
23450
23488
  search: initialValue
23451
23489
  }, setQueryParams] = useQueryParams3({
23452
23490
  search: StringParam2
23453
23491
  });
23454
- const [searchValue, setSearchValue] = useState46(initialValue || "");
23492
+ const [searchValue, setSearchValue] = useState47(initialValue || "");
23455
23493
  const handleSearchDebounced = useDebouncedCallback6((value) => {
23456
23494
  if (searchProps) {
23457
23495
  searchProps.onSearch(value);
@@ -23529,7 +23567,7 @@ var _GridTableLayoutActions = memo2(GridTableLayoutActionsComponent);
23529
23567
  import { useMemo as useMemo42 } from "react";
23530
23568
 
23531
23569
  // src/components/LoadingSkeleton.tsx
23532
- import { trussProps as trussProps102, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
23570
+ import { trussProps as trussProps102, maybeCssVar as maybeCssVar50 } from "@homebound/truss/runtime";
23533
23571
  import { jsx as jsx182 } from "react/jsx-runtime";
23534
23572
  function LoadingSkeleton({
23535
23573
  rows = 1,
@@ -23546,7 +23584,7 @@ function LoadingSkeleton({
23546
23584
  borderRadius: "br4",
23547
23585
  animation: "animation_pulse_2s_cubic_bezier_0_4_0_0_6_1_infinite",
23548
23586
  flexGrow: ["flexGrow_var", {
23549
- "--flexGrow": maybeCssVar49(flexGrowForCell)
23587
+ "--flexGrow": maybeCssVar50(flexGrowForCell)
23550
23588
  }],
23551
23589
  backgroundColor: ["bgColor_var", {
23552
23590
  "--backgroundColor": "var(--b-loader-fill)"
@@ -23605,10 +23643,10 @@ function LoadingTable(props) {
23605
23643
  }
23606
23644
 
23607
23645
  // src/components/Layout/GridTableLayout/usePersistedTableView.ts
23608
- import { useCallback as useCallback31, useState as useState47 } from "react";
23646
+ import { useCallback as useCallback32, useState as useState48 } from "react";
23609
23647
  function usePersistedTableView(defaultView, persist) {
23610
23648
  const storageKey = persist ? getGridTableViewStorageKey(window.location.pathname) : void 0;
23611
- const [view, setView] = useState47(() => {
23649
+ const [view, setView] = useState48(() => {
23612
23650
  if (!storageKey) return defaultView;
23613
23651
  try {
23614
23652
  return parseStoredTableView(localStorage.getItem(storageKey)) ?? defaultView;
@@ -23616,7 +23654,7 @@ function usePersistedTableView(defaultView, persist) {
23616
23654
  return defaultView;
23617
23655
  }
23618
23656
  });
23619
- const setViewAndPersist = useCallback31(
23657
+ const setViewAndPersist = useCallback32(
23620
23658
  (next) => {
23621
23659
  setView(next);
23622
23660
  if (storageKey) {
@@ -23638,7 +23676,7 @@ function parseStoredTableView(raw) {
23638
23676
  }
23639
23677
 
23640
23678
  // src/components/Layout/GridTableLayout/GridTableLayout.tsx
23641
- import { trussProps as trussProps103, maybeCssVar as maybeCssVar50 } from "@homebound/truss/runtime";
23679
+ import { trussProps as trussProps103, maybeCssVar as maybeCssVar51 } from "@homebound/truss/runtime";
23642
23680
  import { Fragment as Fragment40, jsx as jsx184, jsxs as jsxs89 } from "react/jsx-runtime";
23643
23681
  var __maybeInc23 = (inc) => {
23644
23682
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -23668,8 +23706,8 @@ function GridTableLayoutComponent(props) {
23668
23706
  const showTableActions = !!(layoutState?.filterDefs || layoutState?.search || hasHideableColumns || withCardView || actionMenu);
23669
23707
  const isVirtualized = tableProps.as === "virtual" || view === "card";
23670
23708
  const inDocumentScrollLayout = useDocumentScrollLayout();
23671
- const tableActionsRef = useRef54(null);
23672
- const tableWrapperRef = useRef54(null);
23709
+ const tableActionsRef = useRef55(null);
23710
+ const tableWrapperRef = useRef55(null);
23673
23711
  useSetTableActionsHeight(tableWrapperRef, tableActionsRef, inDocumentScrollLayout && showTableActions);
23674
23712
  const visibleColumnIds = useComputed(() => api.getVisibleColumnIds(), [api]);
23675
23713
  useEffect29(() => {
@@ -23681,8 +23719,8 @@ function GridTableLayoutComponent(props) {
23681
23719
  const filterSearchProps = useMemo43(() => layoutState?.search ? {
23682
23720
  onSearch: layoutState.setSearchString
23683
23721
  } : void 0, [layoutState?.search, layoutState?.setSearchString]);
23684
- const searchApiRef = useRef54();
23685
- const clearFilters = useCallback32(() => {
23722
+ const searchApiRef = useRef55();
23723
+ const clearFilters = useCallback33(() => {
23686
23724
  layoutState?.clearFilters();
23687
23725
  searchApiRef.current?.clear();
23688
23726
  }, [layoutState]);
@@ -23701,16 +23739,16 @@ function GridTableLayoutComponent(props) {
23701
23739
  transition: "transitionTop",
23702
23740
  position: "sticky",
23703
23741
  top: ["top_var", {
23704
- "--top": maybeCssVar50(__maybeInc23(stickyNavAndHeaderOffset()))
23742
+ "--top": maybeCssVar51(__maybeInc23(stickyNavAndHeaderOffset()))
23705
23743
  }],
23706
23744
  left: ["left_var", {
23707
- "--left": maybeCssVar50(__maybeInc23(documentScrollChromeLeft()))
23745
+ "--left": maybeCssVar51(__maybeInc23(documentScrollChromeLeft()))
23708
23746
  }],
23709
23747
  width: ["w_var", {
23710
- "--width": maybeCssVar50(__maybeInc23(`min(100%, ${documentScrollChromeWidth()})`))
23748
+ "--width": maybeCssVar51(__maybeInc23(`min(100%, ${documentScrollChromeWidth()})`))
23711
23749
  }],
23712
23750
  zIndex: ["z_var", {
23713
- "--zIndex": maybeCssVar50(zIndices.tableActions)
23751
+ "--zIndex": maybeCssVar51(zIndices.tableActions)
23714
23752
  }],
23715
23753
  backgroundColor: ["bgColor_var", {
23716
23754
  "--backgroundColor": "var(--b-surface)"
@@ -23752,11 +23790,11 @@ function useGridTableLayoutState({
23752
23790
  const groupBy = useGroupBy(maybeGroupBy ?? {
23753
23791
  none: "none"
23754
23792
  });
23755
- const [searchString, setSearchString] = useState48("");
23793
+ const [searchString, setSearchString] = useState49("");
23756
23794
  const columnsFallback = "unset-columns";
23757
23795
  const [visibleColumnIds, setVisibleColumnIds] = useSessionStorage(persistedColumns?.storageKey ?? columnsFallback, void 0);
23758
23796
  const filteringActive = getActiveFilterCount(filter) > 0 || !!searchString;
23759
- const clearFilters = useCallback32(() => {
23797
+ const clearFilters = useCallback33(() => {
23760
23798
  setFilter({});
23761
23799
  setSearchString("");
23762
23800
  }, [setFilter]);
@@ -23787,7 +23825,7 @@ function composeEmptyState(tableProps, layoutState, layoutEmptyFallback, clearFi
23787
23825
  };
23788
23826
  }
23789
23827
  function useSetTableActionsHeight(tableWrapperRef, tableActionsRef, enabled) {
23790
- const syncHeightVar = useCallback32(() => {
23828
+ const syncHeightVar = useCallback33(() => {
23791
23829
  const tableWrapper = tableWrapperRef.current;
23792
23830
  if (!tableWrapper) return;
23793
23831
  if (!enabled) {
@@ -23801,11 +23839,11 @@ function useSetTableActionsHeight(tableWrapperRef, tableActionsRef, enabled) {
23801
23839
  tableWrapper.style.removeProperty(beamTableActionsHeightVar);
23802
23840
  }
23803
23841
  }, [enabled, tableActionsRef, tableWrapperRef]);
23804
- useResizeObserver6({
23842
+ useResizeObserver7({
23805
23843
  ref: tableActionsRef,
23806
23844
  onResize: enabled ? syncHeightVar : noop
23807
23845
  });
23808
- useLayoutEffect8(() => {
23846
+ useLayoutEffect9(() => {
23809
23847
  syncHeightVar();
23810
23848
  const tableWrapper = tableWrapperRef.current;
23811
23849
  return () => {
@@ -23846,7 +23884,7 @@ function PreventBrowserScroll({
23846
23884
  // src/components/Layout/RightPaneLayout/RightPaneLayout.tsx
23847
23885
  import { AnimatePresence as AnimatePresence4, motion as motion4 } from "framer-motion";
23848
23886
  import { useEffect as useEffect30 } from "react";
23849
- import { trussProps as trussProps104, maybeCssVar as maybeCssVar51 } from "@homebound/truss/runtime";
23887
+ import { trussProps as trussProps104, maybeCssVar as maybeCssVar52 } from "@homebound/truss/runtime";
23850
23888
  import { Fragment as Fragment41, jsx as jsx186, jsxs as jsxs90 } from "react/jsx-runtime";
23851
23889
  var __maybeInc24 = (inc) => {
23852
23890
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -23869,7 +23907,7 @@ function RightPaneLayout(props) {
23869
23907
  /* @__PURE__ */ jsx186("div", { ...trussProps104({
23870
23908
  ...{
23871
23909
  width: ["w_var", {
23872
- "--width": maybeCssVar51(__maybeInc24(`calc(100% - ${paneWidth + 24}px)`))
23910
+ "--width": maybeCssVar52(__maybeInc24(`calc(100% - ${paneWidth + 24}px)`))
23873
23911
  }],
23874
23912
  transition: "transition_width_2s_linear",
23875
23913
  height: "h100",
@@ -23885,7 +23923,7 @@ function RightPaneLayout(props) {
23885
23923
  ...{
23886
23924
  ...!!defaultPaneContent ? {
23887
23925
  width: ["w_var", {
23888
- "--width": maybeCssVar51(__maybeInc24(`calc(100% - ${paneWidth + 24}px)`))
23926
+ "--width": maybeCssVar52(__maybeInc24(`calc(100% - ${paneWidth + 24}px)`))
23889
23927
  }],
23890
23928
  marginRight: "mr3"
23891
23929
  } : {}
@@ -23919,7 +23957,7 @@ function RightPaneLayout(props) {
23919
23957
  "data-testid": "rightPaneContent",
23920
23958
  ...trussProps104({
23921
23959
  backgroundColor: ["bgColor_var", {
23922
- "--backgroundColor": maybeCssVar51(paneBgColor)
23960
+ "--backgroundColor": maybeCssVar52(paneBgColor)
23923
23961
  }],
23924
23962
  height: "h100",
23925
23963
  width: ["w_var", {
@@ -23976,7 +24014,7 @@ function ScrollableFooter(props) {
23976
24014
 
23977
24015
  // src/components/Layout/TableReviewLayout/TableReviewLayout.tsx
23978
24016
  import { AnimatePresence as AnimatePresence5, motion as motion5 } from "framer-motion";
23979
- import { useEffect as useEffect31, useState as useState49 } from "react";
24017
+ import { useEffect as useEffect31, useState as useState50 } from "react";
23980
24018
 
23981
24019
  // src/components/Layout/TableReviewLayout/SidePanel.tsx
23982
24020
  import { jsx as jsx188, jsxs as jsxs91 } from "react/jsx-runtime";
@@ -24000,7 +24038,7 @@ function SidePanel(props) {
24000
24038
  }
24001
24039
 
24002
24040
  // src/components/Layout/TableReviewLayout/TableReviewLayout.tsx
24003
- import { trussProps as trussProps105, maybeCssVar as maybeCssVar52 } from "@homebound/truss/runtime";
24041
+ import { trussProps as trussProps105, maybeCssVar as maybeCssVar53 } from "@homebound/truss/runtime";
24004
24042
  import { jsx as jsx189, jsxs as jsxs92 } from "react/jsx-runtime";
24005
24043
  var defaultRightPaneWidth = 450;
24006
24044
  function TableReviewLayout(props) {
@@ -24016,7 +24054,7 @@ function TableReviewLayout(props) {
24016
24054
  rightPaneWidth = defaultRightPaneWidth
24017
24055
  } = props;
24018
24056
  const tid = useTestIds(props, "tableReviewLayout");
24019
- const [isPanelVisible, setIsPanelVisible] = useState49(!!panelContent);
24057
+ const [isPanelVisible, setIsPanelVisible] = useState50(!!panelContent);
24020
24058
  useEffect31(() => {
24021
24059
  setIsPanelVisible(!!panelContent);
24022
24060
  }, [panelContent]);
@@ -24049,7 +24087,7 @@ function TableReviewLayout(props) {
24049
24087
  left: "left0",
24050
24088
  right: "right0",
24051
24089
  zIndex: ["z_var", {
24052
- "--zIndex": maybeCssVar52(zIndices.pageOverlay)
24090
+ "--zIndex": maybeCssVar53(zIndices.pageOverlay)
24053
24091
  }],
24054
24092
  backgroundColor: ["bgColor_var", {
24055
24093
  "--backgroundColor": "var(--b-surface)"
@@ -24144,7 +24182,7 @@ var BeamContext = createContext12({
24144
24182
  });
24145
24183
  function BeamProvider({ children, documentTitleConfig, ...presentationProps }) {
24146
24184
  const [, tick] = useReducer((prev) => prev + 1, 0);
24147
- const modalRef = useRef55();
24185
+ const modalRef = useRef56();
24148
24186
  const modalHeaderDiv = useMemo44(() => document.createElement("div"), []);
24149
24187
  const modalBannerDiv = useMemo44(() => document.createElement("div"), []);
24150
24188
  const modalBodyDiv = useMemo44(() => {
@@ -24152,11 +24190,11 @@ function BeamProvider({ children, documentTitleConfig, ...presentationProps }) {
24152
24190
  el.style.height = "100%";
24153
24191
  return el;
24154
24192
  }, []);
24155
- const modalCanCloseChecksRef = useRef55([]);
24193
+ const modalCanCloseChecksRef = useRef56([]);
24156
24194
  const modalFooterDiv = useMemo44(() => document.createElement("div"), []);
24157
- const drawerContentStackRef = useRef55([]);
24158
- const drawerCanCloseChecks = useRef55([]);
24159
- const drawerCanCloseDetailsChecks = useRef55([]);
24195
+ const drawerContentStackRef = useRef56([]);
24196
+ const drawerCanCloseChecks = useRef56([]);
24197
+ const drawerCanCloseDetailsChecks = useRef56([]);
24160
24198
  const sdHeaderDiv = useMemo44(() => document.createElement("div"), []);
24161
24199
  const context = useMemo44(() => {
24162
24200
  return {
@@ -24201,7 +24239,7 @@ function useBeamContext() {
24201
24239
  }
24202
24240
 
24203
24241
  // src/components/Breadcrumbs.tsx
24204
- import { Fragment as Fragment43, useState as useState50 } from "react";
24242
+ import { Fragment as Fragment43, useState as useState51 } from "react";
24205
24243
  import { Link as Link6 } from "react-router-dom";
24206
24244
  import { trussProps as trussProps106 } from "@homebound/truss/runtime";
24207
24245
  import { Fragment as Fragment44, jsx as jsx191, jsxs as jsxs94 } from "react/jsx-runtime";
@@ -24210,7 +24248,7 @@ function Breadcrumbs({
24210
24248
  }) {
24211
24249
  const tid = useTestIds({}, "breadcrumb");
24212
24250
  const items = Array.isArray(breadcrumbs) ? breadcrumbs : [breadcrumbs];
24213
- const [collapsed, setCollapsed] = useState50(true);
24251
+ const [collapsed, setCollapsed] = useState51(true);
24214
24252
  const {
24215
24253
  sm
24216
24254
  } = useBreakpoint();
@@ -24249,14 +24287,14 @@ function Breadcrumbs({
24249
24287
  }
24250
24288
 
24251
24289
  // src/components/ButtonDatePicker.tsx
24252
- import { useRef as useRef56 } from "react";
24290
+ import { useRef as useRef57 } from "react";
24253
24291
  import { useMenuTrigger as useMenuTrigger4 } from "react-aria";
24254
24292
  import { useMenuTriggerState as useMenuTriggerState4 } from "react-stately";
24255
24293
  import { jsx as jsx192 } from "react/jsx-runtime";
24256
24294
  function ButtonDatePicker(props) {
24257
24295
  const { defaultOpen, disabled, trigger, onSelect, ...datePickerProps } = props;
24258
24296
  const state = useMenuTriggerState4({ isOpen: defaultOpen });
24259
- const buttonRef = useRef56(null);
24297
+ const buttonRef = useRef57(null);
24260
24298
  const {
24261
24299
  menuTriggerProps,
24262
24300
  menuProps: { autoFocus: _af, ...menuProps }
@@ -24279,7 +24317,7 @@ function ButtonDatePicker(props) {
24279
24317
  }
24280
24318
 
24281
24319
  // src/components/ButtonGroup.tsx
24282
- import { useRef as useRef57 } from "react";
24320
+ import { useRef as useRef58 } from "react";
24283
24321
  import { useButton as useButton10, useFocusRing as useFocusRing15, useHover as useHover17 } from "react-aria";
24284
24322
  import { trussProps as trussProps107 } from "@homebound/truss/runtime";
24285
24323
  import { jsx as jsx193, jsxs as jsxs95 } from "react/jsx-runtime";
@@ -24327,7 +24365,7 @@ function GroupButton(props) {
24327
24365
  isDisabled: !!disabled,
24328
24366
  ...otherProps
24329
24367
  };
24330
- const ref = useRef57(null);
24368
+ const ref = useRef58(null);
24331
24369
  const {
24332
24370
  buttonProps,
24333
24371
  isPressed
@@ -24465,8 +24503,8 @@ import { useMemo as useMemo45 } from "react";
24465
24503
  import { useHover as useHover18 } from "react-aria";
24466
24504
 
24467
24505
  // src/components/Tag.tsx
24468
- import { useResizeObserver as useResizeObserver7 } from "@react-aria/utils";
24469
- import { useRef as useRef58, useState as useState51 } from "react";
24506
+ import { useResizeObserver as useResizeObserver8 } from "@react-aria/utils";
24507
+ import { useRef as useRef59, useState as useState52 } from "react";
24470
24508
  import { trussProps as trussProps108 } from "@homebound/truss/runtime";
24471
24509
  import { jsx as jsx194, jsxs as jsxs96 } from "react/jsx-runtime";
24472
24510
  function Tag(props) {
@@ -24488,9 +24526,9 @@ function Tag(props) {
24488
24526
  padding
24489
24527
  } = getVariantStyles(variant, type);
24490
24528
  const tid = useTestIds(otherProps);
24491
- const [showTooltip, setShowTooltip] = useState51(false);
24492
- const ref = useRef58(null);
24493
- useResizeObserver7({
24529
+ const [showTooltip, setShowTooltip] = useState52(false);
24530
+ const ref = useRef59(null);
24531
+ useResizeObserver8({
24494
24532
  ref,
24495
24533
  onResize: () => {
24496
24534
  if (!isIconOnly && ref.current) {
@@ -24608,7 +24646,7 @@ function getPrimaryStyles(type) {
24608
24646
  }
24609
24647
 
24610
24648
  // src/components/Card.tsx
24611
- import { trussProps as trussProps109, maybeCssVar as maybeCssVar53 } from "@homebound/truss/runtime";
24649
+ import { trussProps as trussProps109, maybeCssVar as maybeCssVar54 } from "@homebound/truss/runtime";
24612
24650
  import { jsx as jsx195, jsxs as jsxs97 } from "react/jsx-runtime";
24613
24651
  function Card(props) {
24614
24652
  const {
@@ -24669,7 +24707,7 @@ function Card(props) {
24669
24707
  width: "w100",
24670
24708
  height: "h100",
24671
24709
  objectFit: ["objectFit_var", {
24672
- "--objectFit": maybeCssVar53(imageFit)
24710
+ "--objectFit": maybeCssVar54(imageFit)
24673
24711
  }]
24674
24712
  }), src: imgSrc, alt: title, ...tid.img }) }),
24675
24713
  isHovered && buttonMenuItems && /* @__PURE__ */ jsx195("div", { ...trussProps109({
@@ -25035,7 +25073,7 @@ function ResponsiveGridItem(props) {
25035
25073
 
25036
25074
  // src/components/Grid/useResponsiveGrid.ts
25037
25075
  import { useMemo as useMemo47 } from "react";
25038
- import { maybeCssVar as maybeCssVar54 } from "@homebound/truss/runtime";
25076
+ import { maybeCssVar as maybeCssVar55 } from "@homebound/truss/runtime";
25039
25077
  var __maybeInc25 = (inc) => {
25040
25078
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
25041
25079
  };
@@ -25054,11 +25092,11 @@ function useResponsiveGrid(props) {
25054
25092
  return {
25055
25093
  display: "dg",
25056
25094
  gridTemplateColumns: ["gtc_var", {
25057
- "--gridTemplateColumns": maybeCssVar54(gridTemplateColumns)
25095
+ "--gridTemplateColumns": maybeCssVar55(gridTemplateColumns)
25058
25096
  }],
25059
25097
  containerType: "ctis",
25060
25098
  gap: ["gap_var", {
25061
- "--gap": maybeCssVar54(__maybeInc25(gridGap))
25099
+ "--gap": maybeCssVar55(__maybeInc25(gridGap))
25062
25100
  }]
25063
25101
  };
25064
25102
  }, [minColumnWidth, gap, columns]);
@@ -25181,7 +25219,7 @@ function HbSpinnerProvider({
25181
25219
  }
25182
25220
 
25183
25221
  // src/components/InlineFeedbackBanner.tsx
25184
- import { trussProps as trussProps113, maybeCssVar as maybeCssVar55 } from "@homebound/truss/runtime";
25222
+ import { trussProps as trussProps113, maybeCssVar as maybeCssVar56 } from "@homebound/truss/runtime";
25185
25223
  import { jsx as jsx201, jsxs as jsxs100 } from "react/jsx-runtime";
25186
25224
  function InlineFeedbackBanner(props) {
25187
25225
  const {
@@ -25226,7 +25264,7 @@ function InlineFeedbackBanner(props) {
25226
25264
  borderStyle: "bss",
25227
25265
  borderWidth: "bw1",
25228
25266
  borderColor: ["bc_var", {
25229
- "--borderColor": maybeCssVar55(borderColor)
25267
+ "--borderColor": maybeCssVar56(borderColor)
25230
25268
  }],
25231
25269
  boxShadow: "bshBasic"
25232
25270
  }), ...tid, children: [
@@ -25258,7 +25296,7 @@ var typeStyles2 = {
25258
25296
  };
25259
25297
 
25260
25298
  // src/components/JumpLink.tsx
25261
- import { useRef as useRef59 } from "react";
25299
+ import { useRef as useRef60 } from "react";
25262
25300
  import { mergeProps as mergeProps30, useFocusRing as useFocusRing16, useHover as useHover19, useLink } from "react-aria";
25263
25301
  import { trussProps as trussProps114 } from "@homebound/truss/runtime";
25264
25302
  import { jsx as jsx202 } from "react/jsx-runtime";
@@ -25271,7 +25309,7 @@ function JumpLink(props) {
25271
25309
  __storyState,
25272
25310
  ...otherProps
25273
25311
  } = props;
25274
- const ref = useRef59(null);
25312
+ const ref = useRef60(null);
25275
25313
  const {
25276
25314
  linkProps
25277
25315
  } = useLink({
@@ -25358,29 +25396,29 @@ var jumpLinkStyles = {
25358
25396
  };
25359
25397
 
25360
25398
  // src/components/MaxLines.tsx
25361
- import { useLayoutEffect as useLayoutEffect9, useResizeObserver as useResizeObserver8 } from "@react-aria/utils";
25362
- import { useCallback as useCallback33, useEffect as useEffect33, useRef as useRef60, useState as useState52 } from "react";
25363
- import { trussProps as trussProps115, maybeCssVar as maybeCssVar56 } from "@homebound/truss/runtime";
25399
+ import { useLayoutEffect as useLayoutEffect10, useResizeObserver as useResizeObserver9 } from "@react-aria/utils";
25400
+ import { useCallback as useCallback34, useEffect as useEffect33, useRef as useRef61, useState as useState53 } from "react";
25401
+ import { trussProps as trussProps115, maybeCssVar as maybeCssVar57 } from "@homebound/truss/runtime";
25364
25402
  import { jsx as jsx203, jsxs as jsxs101 } from "react/jsx-runtime";
25365
25403
  function MaxLines({
25366
25404
  maxLines,
25367
25405
  children
25368
25406
  }) {
25369
- const elRef = useRef60(null);
25370
- const [hasMore, setHasMore] = useState52(false);
25371
- const [expanded, setExpanded] = useState52(false);
25372
- useLayoutEffect9(() => {
25407
+ const elRef = useRef61(null);
25408
+ const [hasMore, setHasMore] = useState53(false);
25409
+ const [expanded, setExpanded] = useState53(false);
25410
+ useLayoutEffect10(() => {
25373
25411
  if (!elRef.current) return;
25374
25412
  setHasMore(elRef.current.scrollHeight > elRef.current.clientHeight);
25375
25413
  }, []);
25376
25414
  useEffect33(() => {
25377
25415
  setExpanded(false);
25378
25416
  }, [children]);
25379
- const onResize = useCallback33(() => {
25417
+ const onResize = useCallback34(() => {
25380
25418
  if (!elRef.current) return;
25381
25419
  !expanded && setHasMore(elRef.current.scrollHeight > elRef.current.clientHeight);
25382
25420
  }, [expanded]);
25383
- useResizeObserver8({
25421
+ useResizeObserver9({
25384
25422
  ref: elRef,
25385
25423
  onResize
25386
25424
  });
@@ -25388,7 +25426,7 @@ function MaxLines({
25388
25426
  /* @__PURE__ */ jsx203("div", { ref: elRef, ...trussProps115({
25389
25427
  ...!expanded ? {
25390
25428
  WebkitLineClamp: ["lineClamp_var", {
25391
- "--WebkitLineClamp": maybeCssVar56(maxLines)
25429
+ "--WebkitLineClamp": maybeCssVar57(maxLines)
25392
25430
  }],
25393
25431
  overflow: "oh",
25394
25432
  display: "d_negwebkit_box",
@@ -25404,12 +25442,12 @@ function MaxLines({
25404
25442
  import { camelCase as camelCase6 } from "change-case";
25405
25443
 
25406
25444
  // src/components/AppNav/AppNavGroup.tsx
25407
- import { useResizeObserver as useResizeObserver9 } from "@react-aria/utils";
25445
+ import { useResizeObserver as useResizeObserver10 } from "@react-aria/utils";
25408
25446
  import { camelCase as camelCase5, kebabCase } from "change-case";
25409
- import { useCallback as useCallback35, useEffect as useEffect34, useMemo as useMemo51, useState as useState54 } from "react";
25447
+ import { useCallback as useCallback36, useEffect as useEffect34, useMemo as useMemo51, useState as useState55 } from "react";
25410
25448
 
25411
25449
  // src/components/AppNav/AppNavGroupTrigger.tsx
25412
- import { useMemo as useMemo50, useRef as useRef61 } from "react";
25450
+ import { useMemo as useMemo50, useRef as useRef62 } from "react";
25413
25451
  import { mergeProps as mergeProps31, useButton as useButton11, useFocusRing as useFocusRing17, useHover as useHover20 } from "react-aria";
25414
25452
  import { trussProps as trussProps116, mergeProps as mergeProps_14 } from "@homebound/truss/runtime";
25415
25453
  import { jsx as jsx204, jsxs as jsxs102 } from "react/jsx-runtime";
@@ -25422,7 +25460,7 @@ function AppNavGroupTrigger(props) {
25422
25460
  active = false
25423
25461
  } = props;
25424
25462
  const tid = useTestIds(props, "trigger");
25425
- const ref = useRef61(null);
25463
+ const ref = useRef62(null);
25426
25464
  const {
25427
25465
  buttonProps,
25428
25466
  isPressed
@@ -25581,7 +25619,7 @@ function entryHasIcons(item) {
25581
25619
  }
25582
25620
 
25583
25621
  // src/components/AppNav/useAppNavGroupExpanded.ts
25584
- import { useCallback as useCallback34, useState as useState53 } from "react";
25622
+ import { useCallback as useCallback35, useState as useState54 } from "react";
25585
25623
  var APP_NAV_EXPANDED_LINK_GROUPS_STORAGE_KEY = "beam.appNav.expandedLinkGroups";
25586
25624
  function loadStored() {
25587
25625
  try {
@@ -25600,13 +25638,13 @@ function persistLabel(label, expanded) {
25600
25638
  }
25601
25639
  function useAppNavGroupExpanded(linkGroup) {
25602
25640
  const { label } = linkGroup;
25603
- const [userExpanded, setUserExpanded] = useState53(() => {
25641
+ const [userExpanded, setUserExpanded] = useState54(() => {
25604
25642
  const stored = loadStored();
25605
25643
  return label in stored ? stored[label] : null;
25606
25644
  });
25607
25645
  const hasActiveLink = appNavLinkGroupLinks(linkGroup).some((l) => l.active);
25608
25646
  const expanded = userExpanded !== null ? userExpanded : hasActiveLink ? true : linkGroup.defaultExpanded ?? false;
25609
- const onToggle = useCallback34(() => {
25647
+ const onToggle = useCallback35(() => {
25610
25648
  const next = !expanded;
25611
25649
  setUserExpanded(next);
25612
25650
  persistLabel(label, next);
@@ -25615,7 +25653,7 @@ function useAppNavGroupExpanded(linkGroup) {
25615
25653
  }
25616
25654
 
25617
25655
  // src/components/AppNav/AppNavGroup.tsx
25618
- import { trussProps as trussProps117, maybeCssVar as maybeCssVar57 } from "@homebound/truss/runtime";
25656
+ import { trussProps as trussProps117, maybeCssVar as maybeCssVar58 } from "@homebound/truss/runtime";
25619
25657
  import { Fragment as Fragment45, jsx as jsx205, jsxs as jsxs103 } from "react/jsx-runtime";
25620
25658
  var __maybeInc26 = (inc) => {
25621
25659
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -25641,20 +25679,20 @@ function AppNavGroupDisclosure(props) {
25641
25679
  } = useAppNavGroupExpanded(linkGroup);
25642
25680
  const tid = useTestIds(props, "linkGroup");
25643
25681
  const navGroupId = `nav-group-${kebabCase(linkGroup.label)}`;
25644
- const [contentEl, setContentEl] = useState54(null);
25682
+ const [contentEl, setContentEl] = useState55(null);
25645
25683
  const contentRef = useMemo51(() => ({
25646
25684
  current: contentEl
25647
25685
  }), [contentEl]);
25648
- const [contentHeight, setContentHeight] = useState54(expanded ? "auto" : "0");
25686
+ const [contentHeight, setContentHeight] = useState55(expanded ? "auto" : "0");
25649
25687
  useEffect34(() => {
25650
25688
  setContentHeight(expanded && contentEl ? `${contentEl.scrollHeight}px` : "0");
25651
25689
  }, [expanded, contentEl]);
25652
- const onResize = useCallback35(() => {
25690
+ const onResize = useCallback36(() => {
25653
25691
  if (contentEl && expanded) {
25654
25692
  setContentHeight(`${contentEl.scrollHeight}px`);
25655
25693
  }
25656
25694
  }, [expanded, contentEl]);
25657
- useResizeObserver9({
25695
+ useResizeObserver10({
25658
25696
  ref: contentRef,
25659
25697
  onResize
25660
25698
  });
@@ -25664,7 +25702,7 @@ function AppNavGroupDisclosure(props) {
25664
25702
  overflow: "oh",
25665
25703
  transition: "transitionHeight",
25666
25704
  height: ["h_var", {
25667
- "--height": maybeCssVar57(__maybeInc26(contentHeight))
25705
+ "--height": maybeCssVar58(__maybeInc26(contentHeight))
25668
25706
  }]
25669
25707
  }), ...tid.panel, ...!expanded ? {
25670
25708
  inert: "true"
@@ -25796,17 +25834,17 @@ function AppNavItems(props) {
25796
25834
 
25797
25835
  // src/components/Navbar/NavbarMobileMenu.tsx
25798
25836
  import { AnimatePresence as AnimatePresence6, motion as motion6 } from "framer-motion";
25799
- import { useEffect as useEffect35, useState as useState56 } from "react";
25837
+ import { useEffect as useEffect35, useState as useState57 } from "react";
25800
25838
  import { FocusScope as FocusScope5, usePreventScroll as usePreventScroll3 } from "react-aria";
25801
25839
  import { createPortal as createPortal7 } from "react-dom";
25802
25840
  import { useLocation } from "react-router-dom";
25803
25841
 
25804
25842
  // src/layouts/NavbarLayout/MobileSubNavContext.tsx
25805
- import { createContext as createContext14, useContext as useContext26, useLayoutEffect as useLayoutEffect10, useMemo as useMemo52, useState as useState55 } from "react";
25843
+ import { createContext as createContext14, useContext as useContext26, useLayoutEffect as useLayoutEffect11, useMemo as useMemo52, useState as useState56 } from "react";
25806
25844
  import { jsx as jsx209 } from "react/jsx-runtime";
25807
25845
  var MobileSubNavContext = createContext14(void 0);
25808
25846
  function MobileSubNavProvider(props) {
25809
- const [mobileSubNav, setMobileSubNav] = useState55(null);
25847
+ const [mobileSubNav, setMobileSubNav] = useState56(null);
25810
25848
  const value = useMemo52(() => ({ mobileSubNav, setMobileSubNav }), [mobileSubNav]);
25811
25849
  return /* @__PURE__ */ jsx209(MobileSubNavContext.Provider, { value, children: props.children });
25812
25850
  }
@@ -25818,11 +25856,11 @@ function useRegisterMobileSubNav(content) {
25818
25856
  const setMobileSubNav = ctx?.setMobileSubNav;
25819
25857
  const enabled = !useBreakpoint().mdAndUp;
25820
25858
  const { top, items, footer } = content;
25821
- useLayoutEffect10(() => {
25859
+ useLayoutEffect11(() => {
25822
25860
  if (!setMobileSubNav || !enabled) return;
25823
25861
  setMobileSubNav({ top, items, footer });
25824
25862
  }, [setMobileSubNav, enabled, top, items, footer]);
25825
- useLayoutEffect10(() => {
25863
+ useLayoutEffect11(() => {
25826
25864
  if (!setMobileSubNav || !enabled) return;
25827
25865
  return () => setMobileSubNav(null);
25828
25866
  }, [setMobileSubNav, enabled]);
@@ -25830,15 +25868,15 @@ function useRegisterMobileSubNav(content) {
25830
25868
  }
25831
25869
 
25832
25870
  // src/components/Navbar/NavbarMobileMenu.tsx
25833
- import { trussProps as trussProps119, mergeProps as mergeProps32, maybeCssVar as maybeCssVar58 } from "@homebound/truss/runtime";
25871
+ import { trussProps as trussProps119, mergeProps as mergeProps32, maybeCssVar as maybeCssVar59 } from "@homebound/truss/runtime";
25834
25872
  import { Fragment as Fragment47, jsx as jsx210, jsxs as jsxs105 } from "react/jsx-runtime";
25835
25873
  function NavbarMobileMenu(props) {
25836
25874
  const {
25837
25875
  items
25838
25876
  } = props;
25839
25877
  const tid = useTestIds(props, "navbar");
25840
- const [isOpen, setIsOpen] = useState56(false);
25841
- const [level, setLevel] = useState56("sub");
25878
+ const [isOpen, setIsOpen] = useState57(false);
25879
+ const [level, setLevel] = useState57("sub");
25842
25880
  const {
25843
25881
  pathname,
25844
25882
  search
@@ -25887,7 +25925,7 @@ function NavbarMobileDrawer({
25887
25925
  bottom: "bottom0",
25888
25926
  left: "left0",
25889
25927
  zIndex: ["z_var", {
25890
- "--zIndex": maybeCssVar58(zIndices.navbarMobileMenuScrim)
25928
+ "--zIndex": maybeCssVar59(zIndices.navbarMobileMenuScrim)
25891
25929
  }],
25892
25930
  backgroundColor: ["bgColor_var", {
25893
25931
  "--backgroundColor": "var(--b-scrim)"
@@ -25912,7 +25950,7 @@ function NavbarMobileDrawer({
25912
25950
  width: "w_260px",
25913
25951
  overflow: "oh",
25914
25952
  zIndex: ["z_var", {
25915
- "--zIndex": maybeCssVar58(zIndices.navbarMobileMenu)
25953
+ "--zIndex": maybeCssVar59(zIndices.navbarMobileMenu)
25916
25954
  }],
25917
25955
  backgroundColor: ["bgColor_var", {
25918
25956
  "--backgroundColor": "var(--b-surface)"
@@ -26164,9 +26202,9 @@ function toPageNumberSize(page) {
26164
26202
  }
26165
26203
 
26166
26204
  // src/components/ScrollShadows.tsx
26167
- import { useResizeObserver as useResizeObserver10 } from "@react-aria/utils";
26168
- import { useCallback as useCallback36, useMemo as useMemo53, useRef as useRef62, useState as useState57 } from "react";
26169
- import { trussProps as trussProps122, maybeCssVar as maybeCssVar59 } from "@homebound/truss/runtime";
26205
+ import { useResizeObserver as useResizeObserver11 } from "@react-aria/utils";
26206
+ import { useCallback as useCallback37, useMemo as useMemo53, useRef as useRef63, useState as useState58 } from "react";
26207
+ import { trussProps as trussProps122, maybeCssVar as maybeCssVar60 } from "@homebound/truss/runtime";
26170
26208
  import { jsx as jsx213, jsxs as jsxs108 } from "react/jsx-runtime";
26171
26209
  function ScrollShadows(props) {
26172
26210
  const {
@@ -26183,15 +26221,15 @@ function ScrollShadows(props) {
26183
26221
  if (!bgColor.includes("rgba")) {
26184
26222
  throw new Error("ScrollShadows: bgColor prop must be in the format 'rgba(255, 255, 255, 1)'");
26185
26223
  }
26186
- const [showStartShadow, setShowStartShadow] = useState57(false);
26187
- const [showEndShadow, setShowEndShadow] = useState57(false);
26188
- const scrollRef = useRef62(null);
26224
+ const [showStartShadow, setShowStartShadow] = useState58(false);
26225
+ const [showEndShadow, setShowEndShadow] = useState58(false);
26226
+ const scrollRef = useRef63(null);
26189
26227
  const [startShadowStyles, endShadowStyles] = useMemo53(() => {
26190
26228
  const transparentBgColor = bgColor.replace(/,1\)$/, ",0)");
26191
26229
  const commonStyles = {
26192
26230
  position: "absolute",
26193
26231
  zIndex: ["z_var", {
26194
- "--zIndex": maybeCssVar59(zIndices.scrollShadow)
26232
+ "--zIndex": maybeCssVar60(zIndices.scrollShadow)
26195
26233
  }],
26196
26234
  pointerEvents: "pointerEvents_none"
26197
26235
  };
@@ -26224,7 +26262,7 @@ function ScrollShadows(props) {
26224
26262
  ...startShadowStyles2,
26225
26263
  ...{
26226
26264
  background: ["background_var", {
26227
- "--background": maybeCssVar59(startGradient)
26265
+ "--background": maybeCssVar60(startGradient)
26228
26266
  }]
26229
26267
  }
26230
26268
  }, {
@@ -26232,12 +26270,12 @@ function ScrollShadows(props) {
26232
26270
  ...endShadowStyles2,
26233
26271
  ...{
26234
26272
  background: ["background_var", {
26235
- "--background": maybeCssVar59(endGradient)
26273
+ "--background": maybeCssVar60(endGradient)
26236
26274
  }]
26237
26275
  }
26238
26276
  }];
26239
26277
  }, [horizontal, bgColor]);
26240
- const updateScrollProps = useCallback36((el) => {
26278
+ const updateScrollProps = useCallback37((el) => {
26241
26279
  const {
26242
26280
  scrollTop,
26243
26281
  scrollHeight,
@@ -26252,15 +26290,15 @@ function ScrollShadows(props) {
26252
26290
  setShowStartShadow(start > 0);
26253
26291
  setShowEndShadow(start + boxSize < end);
26254
26292
  }, [horizontal]);
26255
- const onResize = useCallback36(() => scrollRef.current && updateScrollProps(scrollRef.current), [updateScrollProps]);
26256
- useResizeObserver10({
26293
+ const onResize = useCallback37(() => scrollRef.current && updateScrollProps(scrollRef.current), [updateScrollProps]);
26294
+ useResizeObserver11({
26257
26295
  ref: scrollRef,
26258
26296
  onResize
26259
26297
  });
26260
26298
  return /* @__PURE__ */ jsxs108("div", { ...trussProps122({
26261
26299
  display: "df",
26262
26300
  flexDirection: ["fd_var", {
26263
- "--flexDirection": maybeCssVar59(!horizontal ? "column" : "row")
26301
+ "--flexDirection": maybeCssVar60(!horizontal ? "column" : "row")
26264
26302
  }],
26265
26303
  position: "relative",
26266
26304
  overflow: "oh",
@@ -26277,7 +26315,7 @@ function ScrollShadows(props) {
26277
26315
  ...startShadowStyles,
26278
26316
  ...{
26279
26317
  opacity: ["o_var", {
26280
- "--opacity": maybeCssVar59(showStartShadow ? 1 : 0)
26318
+ "--opacity": maybeCssVar60(showStartShadow ? 1 : 0)
26281
26319
  }]
26282
26320
  }
26283
26321
  }), "data-chromatic": "ignore" }),
@@ -26285,7 +26323,7 @@ function ScrollShadows(props) {
26285
26323
  ...endShadowStyles,
26286
26324
  ...{
26287
26325
  opacity: ["o_var", {
26288
- "--opacity": maybeCssVar59(showEndShadow ? 1 : 0)
26326
+ "--opacity": maybeCssVar60(showEndShadow ? 1 : 0)
26289
26327
  }]
26290
26328
  }
26291
26329
  }), "data-chromatic": "ignore" }),
@@ -26303,12 +26341,12 @@ function ScrollShadows(props) {
26303
26341
  // src/layouts/SideNavLayout/SideNavLayoutContext.tsx
26304
26342
  import {
26305
26343
  createContext as createContext15,
26306
- useCallback as useCallback37,
26344
+ useCallback as useCallback38,
26307
26345
  useContext as useContext27,
26308
26346
  useEffect as useEffect36,
26309
26347
  useMemo as useMemo54,
26310
- useRef as useRef63,
26311
- useState as useState58
26348
+ useRef as useRef64,
26349
+ useState as useState59
26312
26350
  } from "react";
26313
26351
  import { jsx as jsx214 } from "react/jsx-runtime";
26314
26352
  var SIDE_NAV_LAYOUT_STATE_STORAGE_KEY = "beam.sideNavLayout.navState";
@@ -26334,18 +26372,18 @@ function resolveInitialNavState(defaultNavState) {
26334
26372
  }
26335
26373
  var SideNavLayoutContext = createContext15(void 0);
26336
26374
  function SideNavLayoutProvider(props) {
26337
- const [navState, setNavStateInternal] = useState58(
26375
+ const [navState, setNavStateInternal] = useState59(
26338
26376
  () => resolveInitialNavState(props.defaultNavState)
26339
26377
  );
26340
26378
  const bp = useBreakpoint();
26341
- const prevMdAndUp = useRef63(bp.mdAndUp);
26379
+ const prevMdAndUp = useRef64(bp.mdAndUp);
26342
26380
  useEffect36(() => {
26343
26381
  if (prevMdAndUp.current && !bp.mdAndUp) {
26344
26382
  setNavStateInternal((prev) => prev === "expanded" ? "collapse" : prev);
26345
26383
  }
26346
26384
  prevMdAndUp.current = bp.mdAndUp;
26347
26385
  }, [bp.mdAndUp]);
26348
- const setNavState = useCallback37((value2) => {
26386
+ const setNavState = useCallback38((value2) => {
26349
26387
  setNavStateInternal((prev) => {
26350
26388
  const next = typeof value2 === "function" ? value2(prev) : value2;
26351
26389
  if (next === "expanded" || next === "collapse") {
@@ -26424,10 +26462,10 @@ function SideNav(props) {
26424
26462
  }
26425
26463
 
26426
26464
  // src/components/Snackbar/useSnackbar.tsx
26427
- import { useCallback as useCallback38, useEffect as useEffect37 } from "react";
26465
+ import { useCallback as useCallback39, useEffect as useEffect37 } from "react";
26428
26466
  function useSnackbar() {
26429
26467
  const { setNotices, setOffset } = useSnackbarContext();
26430
- const onClose = useCallback38(
26468
+ const onClose = useCallback39(
26431
26469
  (noticeId) => {
26432
26470
  setNotices((prev) => {
26433
26471
  let returnValue = prev;
@@ -26444,7 +26482,7 @@ function useSnackbar() {
26444
26482
  // eslint-disable-next-line react-hooks/exhaustive-deps
26445
26483
  []
26446
26484
  );
26447
- const triggerNotice = useCallback38(
26485
+ const triggerNotice = useCallback39(
26448
26486
  (props) => {
26449
26487
  const noticeId = props.id ?? `beamSnackbar:${snackbarId++}`;
26450
26488
  let maybeTimeout;
@@ -26473,7 +26511,7 @@ function useSnackbar() {
26473
26511
  },
26474
26512
  [onClose, setNotices]
26475
26513
  );
26476
- const closeNotice = useCallback38((id) => onClose(id), [onClose]);
26514
+ const closeNotice = useCallback39((id) => onClose(id), [onClose]);
26477
26515
  const useSnackbarOffset = ({ bottom }) => useEffect37(() => {
26478
26516
  setOffset({ bottom });
26479
26517
  return () => setOffset({});
@@ -26483,9 +26521,9 @@ function useSnackbar() {
26483
26521
  var snackbarId = 1;
26484
26522
 
26485
26523
  // src/components/Stepper.tsx
26486
- import { useRef as useRef64 } from "react";
26524
+ import { useRef as useRef65 } from "react";
26487
26525
  import { useButton as useButton12, useFocusRing as useFocusRing18, useHover as useHover21 } from "react-aria";
26488
- import { trussProps as trussProps124, maybeCssVar as maybeCssVar60 } from "@homebound/truss/runtime";
26526
+ import { trussProps as trussProps124, maybeCssVar as maybeCssVar61 } from "@homebound/truss/runtime";
26489
26527
  import { jsx as jsx216, jsxs as jsxs110 } from "react/jsx-runtime";
26490
26528
  import { createElement as createElement6 } from "react";
26491
26529
  var __maybeInc27 = (inc) => {
@@ -26548,7 +26586,7 @@ function Stepper(props) {
26548
26586
  transition: "transition_width_200ms",
26549
26587
  height: "h100",
26550
26588
  width: ["w_var", {
26551
- "--width": maybeCssVar60(__maybeInc27(`${(lastCompletedStep + 1) / steps.length * 100}%`))
26589
+ "--width": maybeCssVar61(__maybeInc27(`${(lastCompletedStep + 1) / steps.length * 100}%`))
26552
26590
  }]
26553
26591
  }) }) })
26554
26592
  ] });
@@ -26565,7 +26603,7 @@ function StepButton(props) {
26565
26603
  onPress: onClick,
26566
26604
  isDisabled: disabled
26567
26605
  };
26568
- const ref = useRef64(null);
26606
+ const ref = useRef65(null);
26569
26607
  const {
26570
26608
  buttonProps,
26571
26609
  isPressed
@@ -26675,7 +26713,7 @@ function StepIcon({
26675
26713
  }
26676
26714
 
26677
26715
  // src/components/StepperTabs/StepperTab.tsx
26678
- import { useRef as useRef65 } from "react";
26716
+ import { useRef as useRef66 } from "react";
26679
26717
  import { mergeProps as mergeProps33, useButton as useButton13, useFocusRing as useFocusRing19, useHover as useHover22, VisuallyHidden as VisuallyHidden10 } from "react-aria";
26680
26718
  import { trussProps as trussProps125 } from "@homebound/truss/runtime";
26681
26719
  import { Fragment as Fragment48, jsx as jsx217, jsxs as jsxs111 } from "react/jsx-runtime";
@@ -26694,7 +26732,7 @@ function StepperTab(props) {
26694
26732
  onPress: () => onClick(value),
26695
26733
  isDisabled: disabled || collapsed
26696
26734
  };
26697
- const ref = useRef65(null);
26735
+ const ref = useRef66(null);
26698
26736
  const {
26699
26737
  buttonProps
26700
26738
  } = useButton13(ariaProps, ref);
@@ -27194,11 +27232,11 @@ function visit(rows, fn) {
27194
27232
 
27195
27233
  // src/components/Tabs.tsx
27196
27234
  import { camelCase as camelCase7 } from "change-case";
27197
- import { useEffect as useEffect38, useMemo as useMemo56, useRef as useRef66, useState as useState59 } from "react";
27235
+ import { useEffect as useEffect38, useMemo as useMemo56, useRef as useRef67, useState as useState60 } from "react";
27198
27236
  import { mergeProps as mergeProps35, useFocusRing as useFocusRing20, useHover as useHover23 } from "react-aria";
27199
27237
  import { matchPath } from "react-router";
27200
27238
  import { Link as Link7, useLocation as useLocation2 } from "react-router-dom";
27201
- import { trussProps as trussProps129, maybeCssVar as maybeCssVar61 } from "@homebound/truss/runtime";
27239
+ import { trussProps as trussProps129, maybeCssVar as maybeCssVar62 } from "@homebound/truss/runtime";
27202
27240
  import { Fragment as Fragment50, jsx as jsx222, jsxs as jsxs114 } from "react/jsx-runtime";
27203
27241
  function TabsWithContent(props) {
27204
27242
  const styles = hideTabs(props) ? {} : {
@@ -27255,8 +27293,8 @@ function Tabs(props) {
27255
27293
  focusProps
27256
27294
  } = useFocusRing20();
27257
27295
  const tid = useTestIds(others, "tabs");
27258
- const [active, setActive] = useState59(selected);
27259
- const ref = useRef66(null);
27296
+ const [active, setActive] = useState60(selected);
27297
+ const ref = useRef67(null);
27260
27298
  useEffect38(() => setActive(selected), [selected]);
27261
27299
  function onKeyUp(e) {
27262
27300
  if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
@@ -27381,7 +27419,7 @@ function getTabStyles() {
27381
27419
  const borderBottomStyles = {
27382
27420
  borderBottomStyle: "bbs_solid",
27383
27421
  borderBottomWidth: ["borderBottomWidth_var", {
27384
- "--borderBottomWidth": maybeCssVar61(`${borderBottomWidthPx}px`)
27422
+ "--borderBottomWidth": maybeCssVar62(`${borderBottomWidthPx}px`)
27385
27423
  }],
27386
27424
  paddingBottom: ["pb_var", {
27387
27425
  "--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
@@ -27434,7 +27472,7 @@ function getTabStyles() {
27434
27472
  // The AI label tint is part of the brand ramp rather than a semantic token, same as the sparkle's gradient.
27435
27473
  aiStyles: {
27436
27474
  color: ["color_var", {
27437
- "--color": maybeCssVar61("rgba(109, 40, 217, 1)" /* Purple700 */)
27475
+ "--color": maybeCssVar62("rgba(109, 40, 217, 1)" /* Purple700 */)
27438
27476
  }]
27439
27477
  },
27440
27478
  focusRingStyles: {
@@ -27499,15 +27537,15 @@ function TagGroup(props) {
27499
27537
  }
27500
27538
 
27501
27539
  // src/components/Toast/useToast.tsx
27502
- import { useCallback as useCallback39 } from "react";
27540
+ import { useCallback as useCallback40 } from "react";
27503
27541
  function useToast() {
27504
27542
  const { setNotice, clear } = useToastContext();
27505
- const showToast = useCallback39((props) => setNotice(props), [setNotice]);
27543
+ const showToast = useCallback40((props) => setNotice(props), [setNotice]);
27506
27544
  return { showToast, clear };
27507
27545
  }
27508
27546
 
27509
27547
  // src/layouts/SideNavLayout/SideNavLayout.tsx
27510
- import { trussProps as trussProps130, mergeProps as mergeProps36, maybeCssVar as maybeCssVar62 } from "@homebound/truss/runtime";
27548
+ import { trussProps as trussProps130, mergeProps as mergeProps36, maybeCssVar as maybeCssVar63 } from "@homebound/truss/runtime";
27511
27549
  import { jsx as jsx224, jsxs as jsxs116 } from "react/jsx-runtime";
27512
27550
  var __maybeInc28 = (inc) => {
27513
27551
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -27562,14 +27600,14 @@ function SideNavLayoutContent(props) {
27562
27600
  position: "sticky",
27563
27601
  left: "left0",
27564
27602
  zIndex: ["z_var", {
27565
- "--zIndex": maybeCssVar62(zIndices.sideNav)
27603
+ "--zIndex": maybeCssVar63(zIndices.sideNav)
27566
27604
  }],
27567
27605
  top: ["top_var", {
27568
- "--top": maybeCssVar62(__maybeInc28(navTop))
27606
+ "--top": maybeCssVar63(__maybeInc28(navTop))
27569
27607
  }],
27570
27608
  alignSelf: "asfs",
27571
27609
  height: ["h_var", {
27572
- "--height": maybeCssVar62(__maybeInc28(railViewportHeight))
27610
+ "--height": maybeCssVar63(__maybeInc28(railViewportHeight))
27573
27611
  }],
27574
27612
  width: ["w_var", {
27575
27613
  "--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
@@ -27579,11 +27617,11 @@ function SideNavLayoutContent(props) {
27579
27617
  position: "fixed",
27580
27618
  left: "left0",
27581
27619
  top: ["top_var", {
27582
- "--top": maybeCssVar62(__maybeInc28(navTop))
27620
+ "--top": maybeCssVar63(__maybeInc28(navTop))
27583
27621
  }],
27584
27622
  bottom: "bottom0",
27585
27623
  zIndex: ["z_var", {
27586
- "--zIndex": maybeCssVar62(zIndices.sideNav)
27624
+ "--zIndex": maybeCssVar63(zIndices.sideNav)
27587
27625
  }]
27588
27626
  },
27589
27627
  ...collapsed ? {
@@ -27622,7 +27660,7 @@ function SideNavLayoutContent(props) {
27622
27660
  }
27623
27661
 
27624
27662
  // src/layouts/CenteredLayout/CenteredLayout.tsx
27625
- import { mergeProps as mergeProps37, maybeCssVar as maybeCssVar63 } from "@homebound/truss/runtime";
27663
+ import { mergeProps as mergeProps37, maybeCssVar as maybeCssVar64 } from "@homebound/truss/runtime";
27626
27664
  import { jsx as jsx225 } from "react/jsx-runtime";
27627
27665
  var __maybeInc29 = (inc) => {
27628
27666
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -27664,15 +27702,15 @@ var smContentPaddingX = "12px";
27664
27702
  var mdAndUpContentPaddingX = pageContentPaddingXValue;
27665
27703
  var centeredPaddingX = {
27666
27704
  paddingLeft: ["px_var mdandup_pl3", {
27667
- "--paddingLeft": maybeCssVar63(__maybeInc29(smContentPaddingX))
27705
+ "--paddingLeft": maybeCssVar64(__maybeInc29(smContentPaddingX))
27668
27706
  }],
27669
27707
  paddingRight: ["px_var mdandup_pr3", {
27670
- "--paddingRight": maybeCssVar63(__maybeInc29(smContentPaddingX))
27708
+ "--paddingRight": maybeCssVar64(__maybeInc29(smContentPaddingX))
27671
27709
  }]
27672
27710
  };
27673
27711
 
27674
27712
  // src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
27675
- import { trussProps as trussProps131, mergeProps as mergeProps38, maybeCssVar as maybeCssVar64 } from "@homebound/truss/runtime";
27713
+ import { trussProps as trussProps131, mergeProps as mergeProps38, maybeCssVar as maybeCssVar65 } from "@homebound/truss/runtime";
27676
27714
  import { jsx as jsx226, jsxs as jsxs117 } from "react/jsx-runtime";
27677
27715
  var __maybeInc30 = (inc) => {
27678
27716
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -27705,10 +27743,10 @@ function EnvironmentBannerLayout(props) {
27705
27743
  top: "top0",
27706
27744
  left: "left0",
27707
27745
  zIndex: ["z_var", {
27708
- "--zIndex": maybeCssVar64(zIndices.environmentBanner)
27746
+ "--zIndex": maybeCssVar65(zIndices.environmentBanner)
27709
27747
  }],
27710
27748
  width: ["w_var", {
27711
- "--width": maybeCssVar64(__maybeInc30(innerWidth))
27749
+ "--width": maybeCssVar65(__maybeInc30(innerWidth))
27712
27750
  }]
27713
27751
  }), ...tid.bannerSticky, children: /* @__PURE__ */ jsx226(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
27714
27752
  children
@@ -27750,11 +27788,11 @@ function FormSectionLayout(props) {
27750
27788
  }
27751
27789
 
27752
27790
  // src/layouts/NavbarLayout/NavbarLayout.tsx
27753
- import { useMemo as useMemo57, useRef as useRef68 } from "react";
27754
- import { mergeProps as mergeProps39, maybeCssVar as maybeCssVar65 } from "@homebound/truss/runtime";
27791
+ import { useMemo as useMemo57, useRef as useRef69 } from "react";
27792
+ import { mergeProps as mergeProps39, maybeCssVar as maybeCssVar66 } from "@homebound/truss/runtime";
27755
27793
 
27756
27794
  // src/layouts/useAutoHideOnScroll.ts
27757
- import { useLayoutEffect as useLayoutEffect11, useRef as useRef67, useState as useState60 } from "react";
27795
+ import { useLayoutEffect as useLayoutEffect12, useRef as useRef68, useState as useState61 } from "react";
27758
27796
  var THRESHOLD = 80;
27759
27797
  function getInitialAutoHideState() {
27760
27798
  if (typeof window === "undefined" || window.scrollY <= 0) {
@@ -27764,15 +27802,15 @@ function getInitialAutoHideState() {
27764
27802
  }
27765
27803
  function useAutoHideOnScroll(spacerRef, enabled, getTopOffset) {
27766
27804
  const initial = getInitialAutoHideState();
27767
- const [state, setState] = useState60(initial.state);
27768
- const stateRef = useRef67(initial.state);
27769
- const [atTop, setAtTop] = useState60(initial.atTop);
27770
- const atTopRef = useRef67(initial.atTop);
27771
- const getTopOffsetRef = useRef67(getTopOffset);
27805
+ const [state, setState] = useState61(initial.state);
27806
+ const stateRef = useRef68(initial.state);
27807
+ const [atTop, setAtTop] = useState61(initial.atTop);
27808
+ const atTopRef = useRef68(initial.atTop);
27809
+ const getTopOffsetRef = useRef68(getTopOffset);
27772
27810
  getTopOffsetRef.current = getTopOffset;
27773
- const lastScrollY = useRef67(Number.POSITIVE_INFINITY);
27774
- const lastScrollHeight = useRef67(0);
27775
- useLayoutEffect11(() => {
27811
+ const lastScrollY = useRef68(Number.POSITIVE_INFINITY);
27812
+ const lastScrollHeight = useRef68(0);
27813
+ useLayoutEffect12(() => {
27776
27814
  if (!enabled) {
27777
27815
  stateRef.current = "static";
27778
27816
  atTopRef.current = true;
@@ -27844,17 +27882,17 @@ function useAutoHideOnScroll(spacerRef, enabled, getTopOffset) {
27844
27882
  }
27845
27883
 
27846
27884
  // src/layouts/useMeasuredHeight.ts
27847
- import { useResizeObserver as useResizeObserver11 } from "@react-aria/utils";
27848
- import { useCallback as useCallback40, useLayoutEffect as useLayoutEffect12, useState as useState61 } from "react";
27885
+ import { useResizeObserver as useResizeObserver12 } from "@react-aria/utils";
27886
+ import { useCallback as useCallback41, useLayoutEffect as useLayoutEffect13, useState as useState62 } from "react";
27849
27887
  function useMeasuredHeight(ref, enabled) {
27850
- const [height, setHeight] = useState61(0);
27851
- const syncElementHeight = useCallback40(() => {
27888
+ const [height, setHeight] = useState62(0);
27889
+ const syncElementHeight = useCallback41(() => {
27852
27890
  const el = ref.current;
27853
27891
  const next = el ? Math.round(el.getBoundingClientRect().height) : 0;
27854
27892
  setHeight((prev) => prev === next ? prev : next);
27855
27893
  }, [ref]);
27856
- useResizeObserver11({ ref, onResize: syncElementHeight });
27857
- useLayoutEffect12(() => {
27894
+ useResizeObserver12({ ref, onResize: syncElementHeight });
27895
+ useLayoutEffect13(() => {
27858
27896
  syncElementHeight();
27859
27897
  }, [enabled, syncElementHeight]);
27860
27898
  return height;
@@ -27882,8 +27920,8 @@ function NavbarLayout(props) {
27882
27920
  children
27883
27921
  } = props;
27884
27922
  const tid = useTestIds(props, "navbarLayout");
27885
- const navMetricsRef = useRef68(null);
27886
- const spacerRef = useRef68(null);
27923
+ const navMetricsRef = useRef69(null);
27924
+ const spacerRef = useRef69(null);
27887
27925
  const navHeight = useMeasuredHeight(navMetricsRef, true);
27888
27926
  const {
27889
27927
  state: autoHideState,
@@ -27901,10 +27939,10 @@ function NavbarLayout(props) {
27901
27939
  position: "sticky",
27902
27940
  left: "left0",
27903
27941
  zIndex: ["z_var", {
27904
- "--zIndex": maybeCssVar65(zIndices.navbar)
27942
+ "--zIndex": maybeCssVar66(zIndices.navbar)
27905
27943
  }],
27906
27944
  width: ["w_var", {
27907
- "--width": maybeCssVar65(__maybeInc31(innerWidth))
27945
+ "--width": maybeCssVar66(__maybeInc31(innerWidth))
27908
27946
  }]
27909
27947
  }
27910
27948
  ) : (
@@ -27913,10 +27951,10 @@ function NavbarLayout(props) {
27913
27951
  position: "fixed",
27914
27952
  left: "left0",
27915
27953
  zIndex: ["z_var", {
27916
- "--zIndex": maybeCssVar65(zIndices.navbar)
27954
+ "--zIndex": maybeCssVar66(zIndices.navbar)
27917
27955
  }],
27918
27956
  width: ["w_var", {
27919
- "--width": maybeCssVar65(__maybeInc31(innerWidth))
27957
+ "--width": maybeCssVar66(__maybeInc31(innerWidth))
27920
27958
  }],
27921
27959
  transition: "transitionTop"
27922
27960
  }
@@ -27943,7 +27981,7 @@ function NavbarLayout(props) {
27943
27981
  }
27944
27982
 
27945
27983
  // src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
27946
- import { useCallback as useCallback41, useMemo as useMemo58, useRef as useRef69 } from "react";
27984
+ import { useCallback as useCallback42, useMemo as useMemo58, useRef as useRef70 } from "react";
27947
27985
 
27948
27986
  // src/components/Headers/BaseHeader.tsx
27949
27987
  import { trussProps as trussProps133 } from "@homebound/truss/runtime";
@@ -28022,7 +28060,7 @@ function useBannerAndNavbarHeight() {
28022
28060
  }
28023
28061
 
28024
28062
  // src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
28025
- import { mergeProps as mergeProps40, maybeCssVar as maybeCssVar66 } from "@homebound/truss/runtime";
28063
+ import { mergeProps as mergeProps40, maybeCssVar as maybeCssVar67 } from "@homebound/truss/runtime";
28026
28064
  import { jsx as jsx232, jsxs as jsxs121 } from "react/jsx-runtime";
28027
28065
  var __maybeInc32 = (inc) => {
28028
28066
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -28034,11 +28072,11 @@ function PageHeaderLayout(props) {
28034
28072
  } = props;
28035
28073
  const tid = useTestIds(props, "pageHeaderLayout");
28036
28074
  const bannerAndNavbarHeight = useBannerAndNavbarHeight();
28037
- const bannerAndNavbarHeightRef = useRef69(bannerAndNavbarHeight);
28075
+ const bannerAndNavbarHeightRef = useRef70(bannerAndNavbarHeight);
28038
28076
  bannerAndNavbarHeightRef.current = bannerAndNavbarHeight;
28039
- const getBannerAndNavbarHeight = useCallback41(() => bannerAndNavbarHeightRef.current, []);
28040
- const headerMetricsRef = useRef69(null);
28041
- const spacerRef = useRef69(null);
28077
+ const getBannerAndNavbarHeight = useCallback42(() => bannerAndNavbarHeightRef.current, []);
28078
+ const headerMetricsRef = useRef70(null);
28079
+ const spacerRef = useRef70(null);
28042
28080
  const headerHeight = useMeasuredHeight(headerMetricsRef, true);
28043
28081
  const {
28044
28082
  state: autoHideState,
@@ -28054,24 +28092,24 @@ function PageHeaderLayout(props) {
28054
28092
  const innerCss = autoHideState === "static" ? {
28055
28093
  position: "sticky",
28056
28094
  left: ["left_var", {
28057
- "--left": maybeCssVar66(__maybeInc32(headerLeft))
28095
+ "--left": maybeCssVar67(__maybeInc32(headerLeft))
28058
28096
  }],
28059
28097
  width: ["w_var", {
28060
- "--width": maybeCssVar66(__maybeInc32(headerWidth))
28098
+ "--width": maybeCssVar67(__maybeInc32(headerWidth))
28061
28099
  }],
28062
28100
  zIndex: ["z_var", {
28063
- "--zIndex": maybeCssVar66(zIndices.pageStickyHeader)
28101
+ "--zIndex": maybeCssVar67(zIndices.pageStickyHeader)
28064
28102
  }]
28065
28103
  } : {
28066
28104
  position: "fixed",
28067
28105
  left: ["left_var", {
28068
- "--left": maybeCssVar66(__maybeInc32(headerLeft))
28106
+ "--left": maybeCssVar67(__maybeInc32(headerLeft))
28069
28107
  }],
28070
28108
  width: ["w_var", {
28071
- "--width": maybeCssVar66(__maybeInc32(headerWidth))
28109
+ "--width": maybeCssVar67(__maybeInc32(headerWidth))
28072
28110
  }],
28073
28111
  zIndex: ["z_var", {
28074
- "--zIndex": maybeCssVar66(zIndices.pageStickyHeader)
28112
+ "--zIndex": maybeCssVar67(zIndices.pageStickyHeader)
28075
28113
  }],
28076
28114
  transition: "transitionTop"
28077
28115
  };
@@ -28095,7 +28133,7 @@ function PageHeaderLayout(props) {
28095
28133
  }
28096
28134
 
28097
28135
  // src/layouts/Workflow/JumpLinksRail.tsx
28098
- import { trussProps as trussProps135, maybeCssVar as maybeCssVar67 } from "@homebound/truss/runtime";
28136
+ import { trussProps as trussProps135, maybeCssVar as maybeCssVar68 } from "@homebound/truss/runtime";
28099
28137
  import { jsx as jsx233 } from "react/jsx-runtime";
28100
28138
  var __maybeInc33 = (inc) => {
28101
28139
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -28117,18 +28155,18 @@ function JumpLinksRail(props) {
28117
28155
  position: "sticky",
28118
28156
  alignSelf: "asfs",
28119
28157
  top: ["top_var", {
28120
- "--top": maybeCssVar67(__maybeInc33(stickyNavAndHeaderOffset()))
28158
+ "--top": maybeCssVar68(__maybeInc33(stickyNavAndHeaderOffset()))
28121
28159
  }]
28122
28160
  }), ...tid, children: links.map((link) => /* @__PURE__ */ jsx233(JumpLink, { label: link.label, href: `#${link.id}`, active: link.id === activeId, ...tid.link }, link.id)) });
28123
28161
  }
28124
28162
 
28125
28163
  // src/layouts/Workflow/useActiveJumpLink.ts
28126
- import { useLayoutEffect as useLayoutEffect13, useState as useState62 } from "react";
28164
+ import { useLayoutEffect as useLayoutEffect14, useState as useState63 } from "react";
28127
28165
  var activationLeadPx = 120;
28128
28166
  function useActiveJumpLink(sectionIds) {
28129
28167
  const idsKey = sectionIds.join("\0");
28130
- const [activeId, setActiveId] = useState62(sectionIds[0]);
28131
- useLayoutEffect13(() => {
28168
+ const [activeId, setActiveId] = useState63(sectionIds[0]);
28169
+ useLayoutEffect14(() => {
28132
28170
  const ids = idsKey.length === 0 ? [] : idsKey.split("\0");
28133
28171
  if (ids.length === 0) return;
28134
28172
  const update = () => {
@@ -28152,7 +28190,7 @@ function useActiveJumpLink(sectionIds) {
28152
28190
  }
28153
28191
 
28154
28192
  // src/layouts/Workflow/WorkflowPageLayout.tsx
28155
- import { useLayoutEffect as useLayoutEffect14, useRef as useRef71 } from "react";
28193
+ import { useLayoutEffect as useLayoutEffect15, useRef as useRef72 } from "react";
28156
28194
 
28157
28195
  // src/components/Headers/WorkflowHeader.tsx
28158
28196
  import { jsx as jsx234 } from "react/jsx-runtime";
@@ -28169,13 +28207,13 @@ function WorkflowHeader(props) {
28169
28207
  }
28170
28208
 
28171
28209
  // src/layouts/Workflow/useUnsavedChangesGuard.tsx
28172
- import { useEffect as useEffect39, useRef as useRef70 } from "react";
28210
+ import { useEffect as useEffect39, useRef as useRef71 } from "react";
28173
28211
  import { useBlocker } from "react-router-dom";
28174
28212
  import { jsx as jsx235 } from "react/jsx-runtime";
28175
28213
  function useUnsavedChangesGuard(options) {
28176
28214
  const { isDirty, onCancel } = options;
28177
28215
  const { openModal } = useModal();
28178
- const isDirtyRef = useRef70(isDirty);
28216
+ const isDirtyRef = useRef71(isDirty);
28179
28217
  isDirtyRef.current = isDirty;
28180
28218
  useEffect39(() => {
28181
28219
  const onBeforeUnload = (e) => {
@@ -28245,7 +28283,7 @@ function WorkflowActions(props) {
28245
28283
  }
28246
28284
 
28247
28285
  // src/layouts/Workflow/WorkflowPageLayout.tsx
28248
- import { trussProps as trussProps136, mergeProps as mergeProps41, maybeCssVar as maybeCssVar68 } from "@homebound/truss/runtime";
28286
+ import { trussProps as trussProps136, mergeProps as mergeProps41, maybeCssVar as maybeCssVar69 } from "@homebound/truss/runtime";
28249
28287
  import { jsx as jsx237, jsxs as jsxs123 } from "react/jsx-runtime";
28250
28288
  var __maybeInc34 = (inc) => {
28251
28289
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -28275,7 +28313,7 @@ function WorkflowPageLayout(props) {
28275
28313
  onCancel
28276
28314
  });
28277
28315
  const actions = /* @__PURE__ */ jsx237(WorkflowActions, { ...actionProps, aiMode, onCancel: onCancelClick });
28278
- const headerMetricsRef = useRef71(null);
28316
+ const headerMetricsRef = useRef72(null);
28279
28317
  const headerHeight = useMeasuredHeight(headerMetricsRef, true);
28280
28318
  const headerWidth = documentScrollChromeWidth();
28281
28319
  const outerTop = bannerAndNavbarChromeTop();
@@ -28283,7 +28321,7 @@ function WorkflowPageLayout(props) {
28283
28321
  [beamPageHeaderLayoutHeightVar]: `${headerHeight}px`
28284
28322
  } : void 0;
28285
28323
  const showFooter = isMobile;
28286
- useLayoutEffect14(() => {
28324
+ useLayoutEffect15(() => {
28287
28325
  const root = document.documentElement;
28288
28326
  const previous = root.style.getPropertyValue(beamWorkflowLayoutFooterHeightVar);
28289
28327
  root.style.setProperty(beamWorkflowLayoutFooterHeightVar, showFooter ? `${mobileFooterHeightPx}px` : "0px");
@@ -28305,13 +28343,13 @@ function WorkflowPageLayout(props) {
28305
28343
  position: "sticky",
28306
28344
  left: "left0",
28307
28345
  width: ["w_var", {
28308
- "--width": maybeCssVar68(__maybeInc34(headerWidth))
28346
+ "--width": maybeCssVar69(__maybeInc34(headerWidth))
28309
28347
  }],
28310
28348
  zIndex: ["z_var", {
28311
- "--zIndex": maybeCssVar68(zIndices.pageStickyHeader)
28349
+ "--zIndex": maybeCssVar69(zIndices.pageStickyHeader)
28312
28350
  }],
28313
28351
  top: ["top_var", {
28314
- "--top": maybeCssVar68(__maybeInc34(outerTop))
28352
+ "--top": maybeCssVar69(__maybeInc34(outerTop))
28315
28353
  }]
28316
28354
  }), ...tid.header, children: /* @__PURE__ */ jsx237(WorkflowHeader, { title, documentTitleSuffix, breadcrumbs, rightSlot: isMobile ? void 0 : actions, stepperTabs }) }),
28317
28355
  /* @__PURE__ */ jsx237("div", { ...trussProps136({
@@ -28326,7 +28364,7 @@ function WorkflowPageLayout(props) {
28326
28364
  ...aiMode && {
28327
28365
  backgroundImage: "aiBackground",
28328
28366
  minHeight: ["mh_var", {
28329
- "--minHeight": maybeCssVar68(documentScrollBodyMinHeight())
28367
+ "--minHeight": maybeCssVar69(documentScrollBodyMinHeight())
28330
28368
  }]
28331
28369
  }
28332
28370
  }), ...tid.body, children }),
@@ -28341,13 +28379,13 @@ function WorkflowPageLayout(props) {
28341
28379
  position: "fixed",
28342
28380
  bottom: "bottom0",
28343
28381
  width: ["w_var", {
28344
- "--width": maybeCssVar68(__maybeInc34(headerWidth))
28382
+ "--width": maybeCssVar69(__maybeInc34(headerWidth))
28345
28383
  }],
28346
28384
  height: ["h_var", {
28347
28385
  "--height": `${mobileFooterHeightPx}px`
28348
28386
  }],
28349
28387
  zIndex: ["z_var", {
28350
- "--zIndex": maybeCssVar68(zIndices.pageStickyFooter)
28388
+ "--zIndex": maybeCssVar69(zIndices.pageStickyFooter)
28351
28389
  }],
28352
28390
  display: "df",
28353
28391
  alignItems: "aic",
@@ -28404,12 +28442,12 @@ function FocusedFormLayout(props) {
28404
28442
  }
28405
28443
 
28406
28444
  // src/layouts/Workflow/StepperLayout.tsx
28407
- import { useState as useState63 } from "react";
28445
+ import { useState as useState64 } from "react";
28408
28446
  import { jsx as jsx239 } from "react/jsx-runtime";
28409
28447
  function StepperLayout(props) {
28410
28448
  const { steps, defaultStep, onCancel, completeLabel, onComplete, onSaveAndExit, isDirty, aiMode, ...headerProps } = props;
28411
28449
  const stepTabs = steps.map((step) => ({ ...step, value: defaultTestId(step.label) }));
28412
- const [currentStep, setCurrentStep] = useState63(() => getInitialStep(stepTabs, defaultStep));
28450
+ const [currentStep, setCurrentStep] = useState64(() => getInitialStep(stepTabs, defaultStep));
28413
28451
  const tid = useTestIds(props, "stepperLayout");
28414
28452
  const currentIndex = hasStep(stepTabs, currentStep) ? stepTabs.findIndex((step) => step.value === currentStep) : 0;
28415
28453
  const isFirstStep = currentIndex <= 0;