@homebound/beam 3.11.0 → 3.12.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
@@ -21142,11 +21142,41 @@ function MaxLines({
21142
21142
  ] });
21143
21143
  }
21144
21144
 
21145
+ // src/components/PageHeader.tsx
21146
+ import { trussProps as trussProps84 } from "@homebound/truss/runtime";
21147
+ import { jsx as jsx167, jsxs as jsxs87 } from "react/jsx-runtime";
21148
+ function PageHeader2(props) {
21149
+ const {
21150
+ title,
21151
+ rightSlot,
21152
+ ...otherProps
21153
+ } = props;
21154
+ const tid = useTestIds(otherProps, "pageHeader");
21155
+ return /* @__PURE__ */ jsx167("header", { ...tid, ...trussProps84({
21156
+ display: "df",
21157
+ flexDirection: "fdc",
21158
+ paddingTop: "pt3",
21159
+ paddingRight: "pr3",
21160
+ paddingLeft: "pl3",
21161
+ borderBottomStyle: "bbs_solid",
21162
+ borderBottomWidth: "bbw_1px",
21163
+ borderColor: ["bc_var", {
21164
+ "--borderColor": "var(--b-surface-separator)"
21165
+ }],
21166
+ backgroundColor: ["bgColor_var", {
21167
+ "--backgroundColor": "var(--b-surface)"
21168
+ }]
21169
+ }), children: /* @__PURE__ */ jsxs87("div", { className: "df jcsb mb2 w100 gap1", children: [
21170
+ /* @__PURE__ */ jsx167("div", { children: /* @__PURE__ */ jsx167("h1", { ...tid.title, className: "fw6 fz_20px lh_28px", children: title }) }),
21171
+ /* @__PURE__ */ jsx167("div", { children: rightSlot })
21172
+ ] }) });
21173
+ }
21174
+
21145
21175
  // src/components/ScrollShadows.tsx
21146
21176
  import { useResizeObserver as useResizeObserver7 } from "@react-aria/utils";
21147
21177
  import { useCallback as useCallback27, useMemo as useMemo49, useRef as useRef53, useState as useState48 } from "react";
21148
- import { trussProps as trussProps84, maybeCssVar as maybeCssVar46 } from "@homebound/truss/runtime";
21149
- import { jsx as jsx167, jsxs as jsxs87 } from "react/jsx-runtime";
21178
+ import { trussProps as trussProps85, maybeCssVar as maybeCssVar46 } from "@homebound/truss/runtime";
21179
+ import { jsx as jsx168, jsxs as jsxs88 } from "react/jsx-runtime";
21150
21180
  function ScrollShadows(props) {
21151
21181
  const {
21152
21182
  children,
@@ -21236,7 +21266,7 @@ function ScrollShadows(props) {
21236
21266
  ref: scrollRef,
21237
21267
  onResize
21238
21268
  });
21239
- return /* @__PURE__ */ jsxs87("div", { ...trussProps84({
21269
+ return /* @__PURE__ */ jsxs88("div", { ...trussProps85({
21240
21270
  display: "df",
21241
21271
  flexDirection: ["fd_var", {
21242
21272
  "--flexDirection": maybeCssVar46(!horizontal ? "column" : "row")
@@ -21252,7 +21282,7 @@ function ScrollShadows(props) {
21252
21282
  width: width2
21253
21283
  }
21254
21284
  }), ...tid, children: [
21255
- /* @__PURE__ */ jsx167("div", { ...trussProps84({
21285
+ /* @__PURE__ */ jsx168("div", { ...trussProps85({
21256
21286
  ...startShadowStyles,
21257
21287
  ...{
21258
21288
  opacity: ["o_var", {
@@ -21260,7 +21290,7 @@ function ScrollShadows(props) {
21260
21290
  }]
21261
21291
  }
21262
21292
  }), "data-chromatic": "ignore" }),
21263
- /* @__PURE__ */ jsx167("div", { ...trussProps84({
21293
+ /* @__PURE__ */ jsx168("div", { ...trussProps85({
21264
21294
  ...endShadowStyles,
21265
21295
  ...{
21266
21296
  opacity: ["o_var", {
@@ -21268,7 +21298,7 @@ function ScrollShadows(props) {
21268
21298
  }]
21269
21299
  }
21270
21300
  }), "data-chromatic": "ignore" }),
21271
- /* @__PURE__ */ jsx167("div", { ...trussProps84({
21301
+ /* @__PURE__ */ jsx168("div", { ...trussProps85({
21272
21302
  ...xss,
21273
21303
  ...{
21274
21304
  overflow: "oa",
@@ -21314,25 +21344,25 @@ function useSideNavLinkGroupExpanded(linkGroup) {
21314
21344
  }
21315
21345
 
21316
21346
  // src/components/SideNav/SideNavLinkGroup.tsx
21317
- import { Fragment as Fragment38, jsx as jsx168 } from "react/jsx-runtime";
21347
+ import { Fragment as Fragment38, jsx as jsx169 } from "react/jsx-runtime";
21318
21348
  function SideNavLinkGroupView(props) {
21319
21349
  const { linkGroup, panelCollapsed } = props;
21320
21350
  const tid = useTestIds(props, "linkGroup");
21321
21351
  if (panelCollapsed) {
21322
- return /* @__PURE__ */ jsx168(Fragment38, { children: linkGroup.links.map((link) => /* @__PURE__ */ jsx168(NavLink, { variant: "side", ...link, iconOnly: !!link.icon, ...tid.link }, link.label)) });
21352
+ return /* @__PURE__ */ jsx169(Fragment38, { children: linkGroup.links.map((link) => /* @__PURE__ */ jsx169(NavLink, { variant: "side", ...link, iconOnly: !!link.icon, ...tid.link }, link.label)) });
21323
21353
  }
21324
- return /* @__PURE__ */ jsx168(SideNavLinkGroupDisclosure, { ...props });
21354
+ return /* @__PURE__ */ jsx169(SideNavLinkGroupDisclosure, { ...props });
21325
21355
  }
21326
21356
  function SideNavLinkGroupDisclosure(props) {
21327
21357
  const { linkGroup } = props;
21328
21358
  const { expanded, onToggle } = useSideNavLinkGroupExpanded(linkGroup);
21329
21359
  const tid = useTestIds(props, "linkGroup");
21330
- return /* @__PURE__ */ jsx168(NavGroup, { label: linkGroup.label, links: linkGroup.links, expanded, onClick: onToggle, ...tid });
21360
+ return /* @__PURE__ */ jsx169(NavGroup, { label: linkGroup.label, links: linkGroup.links, expanded, onClick: onToggle, ...tid });
21331
21361
  }
21332
21362
 
21333
21363
  // src/components/SideNav/SideNavSectionView.tsx
21334
- import { trussProps as trussProps85 } from "@homebound/truss/runtime";
21335
- import { jsx as jsx169, jsxs as jsxs88 } from "react/jsx-runtime";
21364
+ import { trussProps as trussProps86 } from "@homebound/truss/runtime";
21365
+ import { jsx as jsx170, jsxs as jsxs89 } from "react/jsx-runtime";
21336
21366
  function SideNavSectionView(props) {
21337
21367
  const {
21338
21368
  section,
@@ -21341,7 +21371,7 @@ function SideNavSectionView(props) {
21341
21371
  ...scopeProps
21342
21372
  } = props;
21343
21373
  const tid = useTestIds(scopeProps);
21344
- return /* @__PURE__ */ jsxs88("div", { ...trussProps85({
21374
+ return /* @__PURE__ */ jsxs89("div", { ...trussProps86({
21345
21375
  display: "df",
21346
21376
  flexDirection: "fdc",
21347
21377
  paddingTop: "pt2",
@@ -21354,7 +21384,7 @@ function SideNavSectionView(props) {
21354
21384
  paddingBottom: "pb2"
21355
21385
  } : {}
21356
21386
  }), ...tid, children: [
21357
- section.label && !panelCollapsed && /* @__PURE__ */ jsx169("div", { ...trussProps85({
21387
+ section.label && !panelCollapsed && /* @__PURE__ */ jsx170("div", { ...trussProps86({
21358
21388
  fontWeight: "fw6",
21359
21389
  fontSize: "fz_10px",
21360
21390
  lineHeight: "lh_14px",
@@ -21366,7 +21396,7 @@ function SideNavSectionView(props) {
21366
21396
  paddingBottom: "pb1",
21367
21397
  textTransform: "ttu"
21368
21398
  }), ...tid.label, children: section.label }),
21369
- /* @__PURE__ */ jsx169(SideNavItems, { ...scopeProps, items: section.items, panelCollapsed })
21399
+ /* @__PURE__ */ jsx170(SideNavItems, { ...scopeProps, items: section.items, panelCollapsed })
21370
21400
  ] });
21371
21401
  }
21372
21402
 
@@ -21393,13 +21423,13 @@ function entryHasIcons(item) {
21393
21423
  }
21394
21424
 
21395
21425
  // src/components/SideNav/SideNavItems.tsx
21396
- import { Fragment as Fragment39, jsx as jsx170 } from "react/jsx-runtime";
21426
+ import { Fragment as Fragment39, jsx as jsx171 } from "react/jsx-runtime";
21397
21427
  function SideNavItems(props) {
21398
21428
  const { items, panelCollapsed } = props;
21399
21429
  const tid = useTestIds(props, "sideNav");
21400
- return /* @__PURE__ */ jsx170(Fragment39, { children: items.map((item, idx) => {
21430
+ return /* @__PURE__ */ jsx171(Fragment39, { children: items.map((item, idx) => {
21401
21431
  if (isSideNavLink(item)) {
21402
- return /* @__PURE__ */ jsx170(
21432
+ return /* @__PURE__ */ jsx171(
21403
21433
  NavLink,
21404
21434
  {
21405
21435
  variant: "side",
@@ -21411,7 +21441,7 @@ function SideNavItems(props) {
21411
21441
  );
21412
21442
  }
21413
21443
  if (isSideNavLinkGroup(item)) {
21414
- return /* @__PURE__ */ jsx170(
21444
+ return /* @__PURE__ */ jsx171(
21415
21445
  SideNavLinkGroupView,
21416
21446
  {
21417
21447
  linkGroup: item,
@@ -21421,7 +21451,7 @@ function SideNavItems(props) {
21421
21451
  sideNavItemKey(item)
21422
21452
  );
21423
21453
  }
21424
- return /* @__PURE__ */ jsx170(
21454
+ return /* @__PURE__ */ jsx171(
21425
21455
  SideNavSectionView,
21426
21456
  {
21427
21457
  section: item,
@@ -21443,7 +21473,7 @@ import {
21443
21473
  useRef as useRef54,
21444
21474
  useState as useState50
21445
21475
  } from "react";
21446
- import { jsx as jsx171 } from "react/jsx-runtime";
21476
+ import { jsx as jsx172 } from "react/jsx-runtime";
21447
21477
  var SIDE_NAV_LAYOUT_STATE_STORAGE_KEY = "beam.sideNavLayout.navState";
21448
21478
  function loadStoredNavState() {
21449
21479
  try {
@@ -21490,7 +21520,7 @@ function SideNavLayoutProvider(props) {
21490
21520
  return next;
21491
21521
  });
21492
21522
  }, []);
21493
- return /* @__PURE__ */ jsx171(SideNavLayoutContext.Provider, { value: { navState, setNavState }, children: props.children });
21523
+ return /* @__PURE__ */ jsx172(SideNavLayoutContext.Provider, { value: { navState, setNavState }, children: props.children });
21494
21524
  }
21495
21525
  function useSideNavLayoutContext() {
21496
21526
  return useContext22(SideNavLayoutContext) ?? { navState: "expanded", setNavState: () => {
@@ -21501,8 +21531,8 @@ function useHasSideNavLayoutProvider() {
21501
21531
  }
21502
21532
 
21503
21533
  // src/components/SideNav/SideNav.tsx
21504
- import { trussProps as trussProps86 } from "@homebound/truss/runtime";
21505
- import { jsx as jsx172, jsxs as jsxs89 } from "react/jsx-runtime";
21534
+ import { trussProps as trussProps87 } from "@homebound/truss/runtime";
21535
+ import { jsx as jsx173, jsxs as jsxs90 } from "react/jsx-runtime";
21506
21536
  function SideNav(props) {
21507
21537
  const {
21508
21538
  top,
@@ -21515,8 +21545,8 @@ function SideNav(props) {
21515
21545
  const tid = useTestIds(props, "sideNav");
21516
21546
  const panelCollapsed = navState === "collapse";
21517
21547
  const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
21518
- return /* @__PURE__ */ jsxs89("nav", { className: "df fdc h100 fs0", ...tid, children: [
21519
- top !== void 0 && /* @__PURE__ */ jsx172("div", { ...trussProps86({
21548
+ return /* @__PURE__ */ jsxs90("nav", { className: "df fdc h100 fs0", ...tid, children: [
21549
+ top !== void 0 && /* @__PURE__ */ jsx173("div", { ...trussProps87({
21520
21550
  flexShrink: "fs0",
21521
21551
  paddingLeft: "pl2",
21522
21552
  paddingRight: "pr2",
@@ -21527,7 +21557,7 @@ function SideNav(props) {
21527
21557
  paddingBottom: "pb4"
21528
21558
  } : {}
21529
21559
  }), ...tid.top, children: top }),
21530
- /* @__PURE__ */ jsx172("div", { ...trussProps86({
21560
+ /* @__PURE__ */ jsx173("div", { ...trussProps87({
21531
21561
  flexGrow: "fg1",
21532
21562
  overflowY: "oya",
21533
21563
  display: "df",
@@ -21539,8 +21569,8 @@ function SideNav(props) {
21539
21569
  ...top === void 0 ? {
21540
21570
  paddingTop: "pt5"
21541
21571
  } : {}
21542
- }), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ jsx172(SideNavItems, { items, panelCollapsed }) }),
21543
- footer !== void 0 && /* @__PURE__ */ jsx172("div", { ...trussProps86({
21572
+ }), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ jsx173(SideNavItems, { items, panelCollapsed }) }),
21573
+ footer !== void 0 && /* @__PURE__ */ jsx173("div", { ...trussProps87({
21544
21574
  flexShrink: "fs0",
21545
21575
  paddingLeft: "pl2",
21546
21576
  paddingRight: "pr2",
@@ -21617,8 +21647,8 @@ var snackbarId = 1;
21617
21647
  // src/components/Stepper.tsx
21618
21648
  import { useRef as useRef55 } from "react";
21619
21649
  import { useButton as useButton12, useFocusRing as useFocusRing15, useHover as useHover19 } from "react-aria";
21620
- import { trussProps as trussProps87, maybeCssVar as maybeCssVar47 } from "@homebound/truss/runtime";
21621
- import { jsx as jsx173, jsxs as jsxs90 } from "react/jsx-runtime";
21650
+ import { trussProps as trussProps88, maybeCssVar as maybeCssVar47 } from "@homebound/truss/runtime";
21651
+ import { jsx as jsx174, jsxs as jsxs91 } from "react/jsx-runtime";
21622
21652
  import { createElement as createElement4 } from "react";
21623
21653
  var __maybeInc14 = (inc) => {
21624
21654
  return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
@@ -21637,8 +21667,8 @@ function Stepper(props) {
21637
21667
  const maxStepWidth = 200;
21638
21668
  const minStepWidth = 100;
21639
21669
  const gap = 8;
21640
- return /* @__PURE__ */ jsxs90("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
21641
- /* @__PURE__ */ jsx173("ol", { ...trussProps87({
21670
+ return /* @__PURE__ */ jsxs91("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
21671
+ /* @__PURE__ */ jsx174("ol", { ...trussProps88({
21642
21672
  padding: "p_0",
21643
21673
  margin: "m_0",
21644
21674
  listStyle: "lis_none",
@@ -21648,7 +21678,7 @@ function Stepper(props) {
21648
21678
  }]
21649
21679
  }), children: steps.map((step) => {
21650
21680
  const isCurrent = currentStep === step.value;
21651
- return /* @__PURE__ */ createElement4("li", { ...trussProps87({
21681
+ return /* @__PURE__ */ createElement4("li", { ...trussProps88({
21652
21682
  display: "df",
21653
21683
  flexGrow: "fg1",
21654
21684
  flexDirection: "fdc",
@@ -21658,9 +21688,9 @@ function Stepper(props) {
21658
21688
  minWidth: ["mw_var", {
21659
21689
  "--minWidth": `${minStepWidth}px`
21660
21690
  }]
21661
- }), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx173(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
21691
+ }), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx174(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
21662
21692
  }) }),
21663
- /* @__PURE__ */ jsx173("div", { ...trussProps87({
21693
+ /* @__PURE__ */ jsx174("div", { ...trussProps88({
21664
21694
  marginTop: "mt1",
21665
21695
  backgroundColor: "bgGray300",
21666
21696
  height: "h_4px",
@@ -21671,7 +21701,7 @@ function Stepper(props) {
21671
21701
  "--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
21672
21702
  }],
21673
21703
  width: "w100"
21674
- }), children: /* @__PURE__ */ jsx173("div", { ...trussProps87({
21704
+ }), children: /* @__PURE__ */ jsx174("div", { ...trussProps88({
21675
21705
  backgroundColor: "bgBlue600",
21676
21706
  transition: "transition_width_200ms",
21677
21707
  height: "h100",
@@ -21712,7 +21742,7 @@ function StepButton(props) {
21712
21742
  boxShadow: "bshFocus"
21713
21743
  };
21714
21744
  const tid = useTestIds(props, "stepButton");
21715
- return /* @__PURE__ */ jsxs90("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...trussProps87({
21745
+ return /* @__PURE__ */ jsxs91("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...trussProps88({
21716
21746
  ...{
21717
21747
  fontWeight: "fw6",
21718
21748
  fontSize: "fz_14px",
@@ -21764,7 +21794,7 @@ function StepButton(props) {
21764
21794
  } : {},
21765
21795
  ...isFocusVisible ? focusRingStyles2 : {}
21766
21796
  }), ...tid[defaultTestId(label)], children: [
21767
- /* @__PURE__ */ jsx173("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ jsx173(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
21797
+ /* @__PURE__ */ jsx174("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ jsx174(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
21768
21798
  label
21769
21799
  ] });
21770
21800
  }
@@ -21775,12 +21805,12 @@ function StepIcon({
21775
21805
  isCurrent = false
21776
21806
  }) {
21777
21807
  if (state === "error") {
21778
- return /* @__PURE__ */ jsx173(Icon, { icon: "errorCircle" });
21808
+ return /* @__PURE__ */ jsx174(Icon, { icon: "errorCircle" });
21779
21809
  }
21780
21810
  if (state === "complete") {
21781
- return /* @__PURE__ */ jsx173(Icon, { icon: "check" });
21811
+ return /* @__PURE__ */ jsx174(Icon, { icon: "check" });
21782
21812
  }
21783
- return /* @__PURE__ */ jsx173("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ jsx173("div", { ...trussProps87({
21813
+ return /* @__PURE__ */ jsx174("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ jsx174("div", { ...trussProps88({
21784
21814
  width: "w_10px",
21785
21815
  height: "h_10px",
21786
21816
  borderStyle: "bss",
@@ -21795,8 +21825,8 @@ function StepIcon({
21795
21825
 
21796
21826
  // src/components/SuperDrawer/components/SuperDrawerHeader.tsx
21797
21827
  import { createPortal as createPortal6 } from "react-dom";
21798
- import { trussProps as trussProps88 } from "@homebound/truss/runtime";
21799
- import { jsx as jsx174, jsxs as jsxs91 } from "react/jsx-runtime";
21828
+ import { trussProps as trussProps89 } from "@homebound/truss/runtime";
21829
+ import { jsx as jsx175, jsxs as jsxs92 } from "react/jsx-runtime";
21800
21830
  function SuperDrawerHeader(props) {
21801
21831
  const {
21802
21832
  hideControls
@@ -21813,20 +21843,20 @@ function SuperDrawerHeader(props) {
21813
21843
  const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
21814
21844
  const isDetail = currentContent !== firstContent;
21815
21845
  const tid = useTestIds({}, "superDrawerHeader");
21816
- return createPortal6(/* @__PURE__ */ jsxs91("div", { className: "df aic jcsb gap3", ...tid, children: [
21817
- isStructuredProps(props) ? /* @__PURE__ */ jsxs91("div", { className: "df jcsb aic gap2 fg1", children: [
21818
- /* @__PURE__ */ jsxs91("div", { className: "fg1 df aic gap2", children: [
21819
- /* @__PURE__ */ jsx174("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
21846
+ return createPortal6(/* @__PURE__ */ jsxs92("div", { className: "df aic jcsb gap3", ...tid, children: [
21847
+ isStructuredProps(props) ? /* @__PURE__ */ jsxs92("div", { className: "df jcsb aic gap2 fg1", children: [
21848
+ /* @__PURE__ */ jsxs92("div", { className: "fg1 df aic gap2", children: [
21849
+ /* @__PURE__ */ jsx175("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
21820
21850
  props.left
21821
21851
  ] }),
21822
- props.right && /* @__PURE__ */ jsx174("div", { className: "fs0", children: props.right })
21823
- ] }) : /* @__PURE__ */ jsx174("div", { className: "fg1", children: props.children }),
21824
- !hideControls && /* @__PURE__ */ jsx174("div", { ...trussProps88({
21852
+ props.right && /* @__PURE__ */ jsx175("div", { className: "fs0", children: props.right })
21853
+ ] }) : /* @__PURE__ */ jsx175("div", { className: "fg1", children: props.children }),
21854
+ !hideControls && /* @__PURE__ */ jsx175("div", { ...trussProps89({
21825
21855
  flexShrink: "fs0",
21826
21856
  ...isDetail ? {
21827
21857
  visibility: "vh"
21828
21858
  } : {}
21829
- }), children: /* @__PURE__ */ jsx174(ButtonGroup, { buttons: [{
21859
+ }), children: /* @__PURE__ */ jsx175(ButtonGroup, { buttons: [{
21830
21860
  icon: "chevronLeft",
21831
21861
  onClick: () => onPrevClick && onPrevClick(),
21832
21862
  disabled: !onPrevClick
@@ -21842,18 +21872,18 @@ function isStructuredProps(props) {
21842
21872
  }
21843
21873
 
21844
21874
  // src/components/SuperDrawer/ConfirmCloseModal.tsx
21845
- import { Fragment as Fragment40, jsx as jsx175, jsxs as jsxs92 } from "react/jsx-runtime";
21875
+ import { Fragment as Fragment40, jsx as jsx176, jsxs as jsxs93 } from "react/jsx-runtime";
21846
21876
  function ConfirmCloseModal(props) {
21847
21877
  const { onClose, discardText = "Discard Changes", continueText = "Continue Editing" } = props;
21848
21878
  const { modalState } = useBeamContext();
21849
21879
  function closeModal() {
21850
21880
  modalState.current = void 0;
21851
21881
  }
21852
- return /* @__PURE__ */ jsxs92(Fragment40, { children: [
21853
- /* @__PURE__ */ jsx175(ModalHeader, { children: "Are you sure you want to cancel?" }),
21854
- /* @__PURE__ */ jsx175(ModalBody, { children: /* @__PURE__ */ jsx175("p", { children: "Any changes you've made so far will be lost." }) }),
21855
- /* @__PURE__ */ jsxs92(ModalFooter, { children: [
21856
- /* @__PURE__ */ jsx175(
21882
+ return /* @__PURE__ */ jsxs93(Fragment40, { children: [
21883
+ /* @__PURE__ */ jsx176(ModalHeader, { children: "Are you sure you want to cancel?" }),
21884
+ /* @__PURE__ */ jsx176(ModalBody, { children: /* @__PURE__ */ jsx176("p", { children: "Any changes you've made so far will be lost." }) }),
21885
+ /* @__PURE__ */ jsxs93(ModalFooter, { children: [
21886
+ /* @__PURE__ */ jsx176(
21857
21887
  Button,
21858
21888
  {
21859
21889
  variant: "quaternary",
@@ -21864,7 +21894,7 @@ function ConfirmCloseModal(props) {
21864
21894
  }
21865
21895
  }
21866
21896
  ),
21867
- /* @__PURE__ */ jsx175(Button, { label: continueText, onClick: closeModal })
21897
+ /* @__PURE__ */ jsx176(Button, { label: continueText, onClick: closeModal })
21868
21898
  ] })
21869
21899
  ] });
21870
21900
  }
@@ -21874,7 +21904,7 @@ import { motion as motion5 } from "framer-motion";
21874
21904
 
21875
21905
  // src/components/SuperDrawer/useSuperDrawer.tsx
21876
21906
  import { useMemo as useMemo50 } from "react";
21877
- import { jsx as jsx176 } from "react/jsx-runtime";
21907
+ import { jsx as jsx177 } from "react/jsx-runtime";
21878
21908
  function useSuperDrawer() {
21879
21909
  const {
21880
21910
  drawerContentStack: contentStack,
@@ -21886,7 +21916,7 @@ function useSuperDrawer() {
21886
21916
  function canCloseDrawerDetails(i, doChange) {
21887
21917
  for (const canCloseDrawerDetail of canCloseDetailsChecks.current[i] ?? []) {
21888
21918
  if (!canClose(canCloseDrawerDetail)) {
21889
- openModal({ content: /* @__PURE__ */ jsx176(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
21919
+ openModal({ content: /* @__PURE__ */ jsx177(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
21890
21920
  return false;
21891
21921
  }
21892
21922
  }
@@ -21906,7 +21936,7 @@ function useSuperDrawer() {
21906
21936
  for (const canCloseDrawer of canCloseChecks.current) {
21907
21937
  if (!canClose(canCloseDrawer)) {
21908
21938
  openModal({
21909
- content: /* @__PURE__ */ jsx176(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
21939
+ content: /* @__PURE__ */ jsx177(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
21910
21940
  });
21911
21941
  return;
21912
21942
  }
@@ -22002,7 +22032,7 @@ function canClose(canCloseCheck) {
22002
22032
 
22003
22033
  // src/components/SuperDrawer/SuperDrawerContent.tsx
22004
22034
  import { mergeProps as mergeProps26 } from "@homebound/truss/runtime";
22005
- import { Fragment as Fragment41, jsx as jsx177, jsxs as jsxs93 } from "react/jsx-runtime";
22035
+ import { Fragment as Fragment41, jsx as jsx178, jsxs as jsxs94 } from "react/jsx-runtime";
22006
22036
  var SuperDrawerContent = ({
22007
22037
  children,
22008
22038
  actions
@@ -22022,17 +22052,17 @@ var SuperDrawerContent = ({
22022
22052
  } = firstContent ?? {};
22023
22053
  function wrapWithMotionAndMaybeBack(children2) {
22024
22054
  if (kind === "open") {
22025
- return /* @__PURE__ */ jsx177(motion5.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
22055
+ return /* @__PURE__ */ jsx178(motion5.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
22026
22056
  } else if (kind === "detail") {
22027
- return /* @__PURE__ */ jsxs93(motion5.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
22057
+ return /* @__PURE__ */ jsxs94(motion5.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
22028
22058
  overflow: "auto"
22029
22059
  }, transition: {
22030
22060
  overflow: {
22031
22061
  delay: 0.3
22032
22062
  }
22033
22063
  }, children: [
22034
- /* @__PURE__ */ jsx177(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
22035
- /* @__PURE__ */ jsx177(motion5.div, { initial: {
22064
+ /* @__PURE__ */ jsx178(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
22065
+ /* @__PURE__ */ jsx178(motion5.div, { initial: {
22036
22066
  x: width2,
22037
22067
  opacity: 0
22038
22068
  }, animate: {
@@ -22050,7 +22080,7 @@ var SuperDrawerContent = ({
22050
22080
  }, className: "pt2", children: children2 })
22051
22081
  ] }, "content");
22052
22082
  } else {
22053
- return /* @__PURE__ */ jsx177(motion5.div, { ...mergeProps26(void 0, {
22083
+ return /* @__PURE__ */ jsx178(motion5.div, { ...mergeProps26(void 0, {
22054
22084
  overflow: "auto"
22055
22085
  }, {
22056
22086
  paddingTop: "pt3",
@@ -22061,9 +22091,9 @@ var SuperDrawerContent = ({
22061
22091
  }) }, "content");
22062
22092
  }
22063
22093
  }
22064
- return /* @__PURE__ */ jsxs93(Fragment41, { children: [
22094
+ return /* @__PURE__ */ jsxs94(Fragment41, { children: [
22065
22095
  wrapWithMotionAndMaybeBack(children),
22066
- actions && /* @__PURE__ */ jsx177("footer", { className: "bts_solid btw_1px bcGray200 pt3 pb3 pr3 pl3 df aic jcfe", children: /* @__PURE__ */ jsx177("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ jsx177(Button, { ...buttonProps }, i)) }) })
22096
+ actions && /* @__PURE__ */ jsx178("footer", { className: "bts_solid btw_1px bcGray200 pt3 pb3 pr3 pl3 df aic jcfe", children: /* @__PURE__ */ jsx178("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ jsx178(Button, { ...buttonProps }, i)) }) })
22067
22097
  ] });
22068
22098
  };
22069
22099
 
@@ -22091,15 +22121,15 @@ import { useEffect as useEffect35, useMemo as useMemo51, useRef as useRef56, use
22091
22121
  import { mergeProps as mergeProps27, useFocusRing as useFocusRing16, useHover as useHover20 } from "react-aria";
22092
22122
  import { matchPath } from "react-router";
22093
22123
  import { Link as Link5, useLocation } from "react-router-dom";
22094
- import { trussProps as trussProps89, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
22095
- import { Fragment as Fragment42, jsx as jsx178, jsxs as jsxs94 } from "react/jsx-runtime";
22124
+ import { trussProps as trussProps90, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
22125
+ import { Fragment as Fragment42, jsx as jsx179, jsxs as jsxs95 } from "react/jsx-runtime";
22096
22126
  function TabsWithContent(props) {
22097
22127
  const styles = hideTabs(props) ? {} : {
22098
22128
  paddingTop: "pt3"
22099
22129
  };
22100
- return /* @__PURE__ */ jsxs94(Fragment42, { children: [
22101
- /* @__PURE__ */ jsx178(Tabs, { ...props }),
22102
- /* @__PURE__ */ jsx178(TabContent, { ...props, contentXss: {
22130
+ return /* @__PURE__ */ jsxs95(Fragment42, { children: [
22131
+ /* @__PURE__ */ jsx179(Tabs, { ...props }),
22132
+ /* @__PURE__ */ jsx179(TabContent, { ...props, contentXss: {
22103
22133
  ...styles,
22104
22134
  ...props.contentXss
22105
22135
  } })
@@ -22124,7 +22154,7 @@ function TabContent(props) {
22124
22154
  return (
22125
22155
  // Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
22126
22156
  // Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
22127
- /* @__PURE__ */ jsx178(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ jsx178("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...trussProps89(contentXss), children: selectedTab.render() }) })
22157
+ /* @__PURE__ */ jsx179(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ jsx179("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...trussProps90(contentXss), children: selectedTab.render() }) })
22128
22158
  );
22129
22159
  }
22130
22160
  function Tabs(props) {
@@ -22166,7 +22196,7 @@ function Tabs(props) {
22166
22196
  setActive(selected);
22167
22197
  }
22168
22198
  }
22169
- return /* @__PURE__ */ jsxs94("div", { ...trussProps89({
22199
+ return /* @__PURE__ */ jsxs95("div", { ...trussProps90({
22170
22200
  ...{
22171
22201
  display: "df",
22172
22202
  alignItems: "aic",
@@ -22182,11 +22212,11 @@ function Tabs(props) {
22182
22212
  }
22183
22213
  } : {}
22184
22214
  }), children: [
22185
- !hideTabs(props) && /* @__PURE__ */ jsx178("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
22215
+ !hideTabs(props) && /* @__PURE__ */ jsx179("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
22186
22216
  const uniqueValue = uniqueTabValue(tab);
22187
- return /* @__PURE__ */ jsx178(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
22217
+ return /* @__PURE__ */ jsx179(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
22188
22218
  }) }),
22189
- right && /* @__PURE__ */ jsx178("div", { className: "mla df aic gap1 pb1", children: right })
22219
+ right && /* @__PURE__ */ jsx179("div", { className: "mla df aic gap1 pb1", children: right })
22190
22220
  ] });
22191
22221
  }
22192
22222
  function TabImpl(props) {
@@ -22230,7 +22260,7 @@ function TabImpl(props) {
22230
22260
  role: "tab",
22231
22261
  tabIndex: active ? 0 : -1,
22232
22262
  ...others,
22233
- ...trussProps89({
22263
+ ...trussProps90({
22234
22264
  ...baseStyles5,
22235
22265
  ...active && activeStyles3,
22236
22266
  ...isDisabled && disabledStyles4,
@@ -22246,17 +22276,17 @@ function TabImpl(props) {
22246
22276
  onClick: () => onClick(tab.value)
22247
22277
  }
22248
22278
  });
22249
- const tabLabel = /* @__PURE__ */ jsxs94(Fragment42, { children: [
22279
+ const tabLabel = /* @__PURE__ */ jsxs95(Fragment42, { children: [
22250
22280
  label,
22251
- (icon || endAdornment) && /* @__PURE__ */ jsx178("span", { className: "ml1", children: icon ? /* @__PURE__ */ jsx178(Icon, { icon }) : endAdornment })
22281
+ (icon || endAdornment) && /* @__PURE__ */ jsx179("span", { className: "ml1", children: icon ? /* @__PURE__ */ jsx179(Icon, { icon }) : endAdornment })
22252
22282
  ] });
22253
22283
  return isDisabled ? maybeTooltip({
22254
22284
  title: resolveTooltip(disabled),
22255
22285
  placement: "top",
22256
- children: /* @__PURE__ */ jsx178("div", { ...tabProps, children: tabLabel })
22257
- }) : isRouteTab(tab) ? /* @__PURE__ */ jsx178(Link5, { ...mergeProps27(tabProps, interactiveProps, {
22286
+ children: /* @__PURE__ */ jsx179("div", { ...tabProps, children: tabLabel })
22287
+ }) : isRouteTab(tab) ? /* @__PURE__ */ jsx179(Link5, { ...mergeProps27(tabProps, interactiveProps, {
22258
22288
  className: "navLink"
22259
- }), to: tab.href, children: tabLabel }) : /* @__PURE__ */ jsx178("button", { ...{
22289
+ }), to: tab.href, children: tabLabel }) : /* @__PURE__ */ jsx179("button", { ...{
22260
22290
  ...tabProps,
22261
22291
  ...interactiveProps
22262
22292
  }, children: tabLabel });
@@ -22359,12 +22389,12 @@ function useToast() {
22359
22389
  }
22360
22390
 
22361
22391
  // src/layouts/SideNavLayout/SideNavLayout.tsx
22362
- import { trussProps as trussProps90, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
22363
- import { jsx as jsx179, jsxs as jsxs95 } from "react/jsx-runtime";
22392
+ import { trussProps as trussProps91, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
22393
+ import { jsx as jsx180, jsxs as jsxs96 } from "react/jsx-runtime";
22364
22394
  function SideNavLayout(props) {
22365
22395
  const hasProvider = useHasSideNavLayoutProvider();
22366
- if (hasProvider) return /* @__PURE__ */ jsx179(SideNavLayoutContent, { ...props });
22367
- return /* @__PURE__ */ jsx179(SideNavLayoutProvider, { children: /* @__PURE__ */ jsx179(SideNavLayoutContent, { ...props }) });
22396
+ if (hasProvider) return /* @__PURE__ */ jsx180(SideNavLayoutContent, { ...props });
22397
+ return /* @__PURE__ */ jsx180(SideNavLayoutProvider, { children: /* @__PURE__ */ jsx180(SideNavLayoutContent, { ...props }) });
22368
22398
  }
22369
22399
  function SideNavLayoutContent(props) {
22370
22400
  const {
@@ -22384,7 +22414,7 @@ function SideNavLayoutContent(props) {
22384
22414
  const railCollapsedWidthPx = 56;
22385
22415
  const collapsed = navState === "collapse";
22386
22416
  const showRail = sideNav !== void 0 && navState !== "hidden";
22387
- const rail = showRail && /* @__PURE__ */ jsxs95("div", { ...trussProps90({
22417
+ const rail = showRail && /* @__PURE__ */ jsxs96("div", { ...trussProps91({
22388
22418
  ...{
22389
22419
  position: "absolute",
22390
22420
  top: "top0",
@@ -22430,12 +22460,12 @@ function SideNavLayoutContent(props) {
22430
22460
  }
22431
22461
  } : {}
22432
22462
  }), ...tid.sideNav, children: [
22433
- showCollapseToggle && /* @__PURE__ */ jsx179("div", { className: "absolute right2 top2", children: /* @__PURE__ */ jsx179(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
22434
- /* @__PURE__ */ jsx179("div", { className: "fg1 oya", ...tid.sideNavContent, children: sideNav })
22463
+ showCollapseToggle && /* @__PURE__ */ jsx180("div", { className: "absolute right2 top2", children: /* @__PURE__ */ jsx180(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
22464
+ /* @__PURE__ */ jsx180("div", { className: "fg1 oya", ...tid.sideNavContent, children: sideNav })
22435
22465
  ] });
22436
- return /* @__PURE__ */ jsxs95("div", { className: "relative df oh fg1", ...tid, children: [
22437
- contrastRail ? /* @__PURE__ */ jsx179(ContrastScope, { children: rail }) : rail,
22438
- /* @__PURE__ */ jsx179(ScrollableParent, { px: contentPx, xss: {
22466
+ return /* @__PURE__ */ jsxs96("div", { className: "relative df oh fg1", ...tid, children: [
22467
+ contrastRail ? /* @__PURE__ */ jsx180(ContrastScope, { children: rail }) : rail,
22468
+ /* @__PURE__ */ jsx180(ScrollableParent, { px: contentPx, xss: {
22439
22469
  marginLeft: ["ml_var", {
22440
22470
  "--marginLeft": `${railCollapsedWidthPx}px`
22441
22471
  }],
@@ -22545,6 +22575,7 @@ export {
22545
22575
  NavLink,
22546
22576
  NumberField,
22547
22577
  OpenModal,
22578
+ PageHeader2 as PageHeader,
22548
22579
  Pagination,
22549
22580
  Palette,
22550
22581
  PresentationProvider,