@homebound/beam 3.93.0 → 3.94.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.cjs +376 -297
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +365 -287
- package/dist/index.js.map +1 -1
- package/dist/truss.css +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25180,11 +25180,88 @@ function HbSpinnerProvider({
|
|
|
25180
25180
|
return /* @__PURE__ */ jsx200(HbLoadingSpinnerContext.Provider, { value: state, children });
|
|
25181
25181
|
}
|
|
25182
25182
|
|
|
25183
|
+
// src/components/InlineFeedbackBanner.tsx
|
|
25184
|
+
import { trussProps as trussProps113, maybeCssVar as maybeCssVar55 } from "@homebound/truss/runtime";
|
|
25185
|
+
import { jsx as jsx201, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
25186
|
+
function InlineFeedbackBanner(props) {
|
|
25187
|
+
const {
|
|
25188
|
+
type,
|
|
25189
|
+
tagText,
|
|
25190
|
+
description,
|
|
25191
|
+
actions = []
|
|
25192
|
+
} = props;
|
|
25193
|
+
const {
|
|
25194
|
+
icon,
|
|
25195
|
+
tagType,
|
|
25196
|
+
borderColor,
|
|
25197
|
+
fallbackTagText
|
|
25198
|
+
} = typeStyles2[type];
|
|
25199
|
+
const tid = useTestIds(props, "inlineFeedbackBanner");
|
|
25200
|
+
const tagProps = tagText ? {
|
|
25201
|
+
type: tagType,
|
|
25202
|
+
icon,
|
|
25203
|
+
text: tagText
|
|
25204
|
+
} : {
|
|
25205
|
+
type: tagType,
|
|
25206
|
+
icon,
|
|
25207
|
+
text: fallbackTagText,
|
|
25208
|
+
iconOnly: true
|
|
25209
|
+
};
|
|
25210
|
+
return /* @__PURE__ */ jsxs100("div", { ...trussProps113({
|
|
25211
|
+
display: "df",
|
|
25212
|
+
alignItems: "ais",
|
|
25213
|
+
gap: "gap1",
|
|
25214
|
+
width: "w100",
|
|
25215
|
+
paddingTop: "pt1",
|
|
25216
|
+
paddingBottom: "pb1",
|
|
25217
|
+
paddingRight: "pr1",
|
|
25218
|
+
paddingLeft: "pl1",
|
|
25219
|
+
borderRadius: "br4",
|
|
25220
|
+
fontWeight: "fw4",
|
|
25221
|
+
fontSize: "fz_12px",
|
|
25222
|
+
lineHeight: "lh_16px",
|
|
25223
|
+
backgroundColor: ["bgColor_var", {
|
|
25224
|
+
"--backgroundColor": "var(--b-surface)"
|
|
25225
|
+
}],
|
|
25226
|
+
borderStyle: "bss",
|
|
25227
|
+
borderWidth: "bw1",
|
|
25228
|
+
borderColor: ["bc_var", {
|
|
25229
|
+
"--borderColor": maybeCssVar55(borderColor)
|
|
25230
|
+
}],
|
|
25231
|
+
boxShadow: "bshBasic"
|
|
25232
|
+
}), ...tid, children: [
|
|
25233
|
+
/* @__PURE__ */ jsx201("span", { className: "df fs0", children: /* @__PURE__ */ jsx201(Tag, { ...tagProps, ...tid.tag }) }),
|
|
25234
|
+
/* @__PURE__ */ jsx201("span", { ...trussProps113({
|
|
25235
|
+
flexGrow: "fg1",
|
|
25236
|
+
minWidth: "mw0",
|
|
25237
|
+
color: ["color_var", {
|
|
25238
|
+
"--color": "var(--b-on-surface)"
|
|
25239
|
+
}]
|
|
25240
|
+
}), ...tid.description, children: description }),
|
|
25241
|
+
actions.length > 0 && /* @__PURE__ */ jsx201("div", { className: "df aic gap_1_5 fs0", children: actions.map((action) => /* @__PURE__ */ jsx201(Button, { ...action, variant: "text" }, `${action.label}`)) })
|
|
25242
|
+
] });
|
|
25243
|
+
}
|
|
25244
|
+
var typeStyles2 = {
|
|
25245
|
+
error: {
|
|
25246
|
+
icon: "xCircle",
|
|
25247
|
+
tagType: "error",
|
|
25248
|
+
borderColor: "--b-danger" /* Danger */,
|
|
25249
|
+
fallbackTagText: "Error"
|
|
25250
|
+
},
|
|
25251
|
+
// Warning has no semantic border token
|
|
25252
|
+
warning: {
|
|
25253
|
+
icon: "error",
|
|
25254
|
+
tagType: "warning",
|
|
25255
|
+
borderColor: "rgba(194, 65, 12, 1)" /* Orange700 */,
|
|
25256
|
+
fallbackTagText: "Warning"
|
|
25257
|
+
}
|
|
25258
|
+
};
|
|
25259
|
+
|
|
25183
25260
|
// src/components/JumpLink.tsx
|
|
25184
25261
|
import { useRef as useRef59 } from "react";
|
|
25185
25262
|
import { mergeProps as mergeProps30, useFocusRing as useFocusRing16, useHover as useHover19, useLink } from "react-aria";
|
|
25186
|
-
import { trussProps as
|
|
25187
|
-
import { jsx as
|
|
25263
|
+
import { trussProps as trussProps114 } from "@homebound/truss/runtime";
|
|
25264
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
25188
25265
|
function JumpLink(props) {
|
|
25189
25266
|
const {
|
|
25190
25267
|
label,
|
|
@@ -25226,14 +25303,14 @@ function JumpLink(props) {
|
|
|
25226
25303
|
});
|
|
25227
25304
|
}
|
|
25228
25305
|
}
|
|
25229
|
-
return /* @__PURE__ */
|
|
25306
|
+
return /* @__PURE__ */ jsx202("a", { ref, ...mergeProps30(linkProps, focusProps, hoverProps), ...tid, ...trussProps114({
|
|
25230
25307
|
...jumpLinkStyles.baseStyles,
|
|
25231
25308
|
...active && jumpLinkStyles.activeStyles,
|
|
25232
25309
|
...isHovered && !disabled && jumpLinkStyles.hoverStyles,
|
|
25233
25310
|
...isFocusVisible && jumpLinkStyles.focusStyles,
|
|
25234
25311
|
...disabled && jumpLinkStyles.disabledStyles,
|
|
25235
25312
|
...disabled && active && jumpLinkStyles.disabledActiveStyles
|
|
25236
|
-
}), children: /* @__PURE__ */
|
|
25313
|
+
}), children: /* @__PURE__ */ jsx202("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_2", children: label }) });
|
|
25237
25314
|
}
|
|
25238
25315
|
var jumpLinkStyles = {
|
|
25239
25316
|
baseStyles: {
|
|
@@ -25283,8 +25360,8 @@ var jumpLinkStyles = {
|
|
|
25283
25360
|
// src/components/MaxLines.tsx
|
|
25284
25361
|
import { useLayoutEffect as useLayoutEffect9, useResizeObserver as useResizeObserver8 } from "@react-aria/utils";
|
|
25285
25362
|
import { useCallback as useCallback33, useEffect as useEffect33, useRef as useRef60, useState as useState52 } from "react";
|
|
25286
|
-
import { trussProps as
|
|
25287
|
-
import { jsx as
|
|
25363
|
+
import { trussProps as trussProps115, maybeCssVar as maybeCssVar56 } from "@homebound/truss/runtime";
|
|
25364
|
+
import { jsx as jsx203, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
25288
25365
|
function MaxLines({
|
|
25289
25366
|
maxLines,
|
|
25290
25367
|
children
|
|
@@ -25307,11 +25384,11 @@ function MaxLines({
|
|
|
25307
25384
|
ref: elRef,
|
|
25308
25385
|
onResize
|
|
25309
25386
|
});
|
|
25310
|
-
return /* @__PURE__ */
|
|
25311
|
-
/* @__PURE__ */
|
|
25387
|
+
return /* @__PURE__ */ jsxs101("div", { children: [
|
|
25388
|
+
/* @__PURE__ */ jsx203("div", { ref: elRef, ...trussProps115({
|
|
25312
25389
|
...!expanded ? {
|
|
25313
25390
|
WebkitLineClamp: ["lineClamp_var", {
|
|
25314
|
-
"--WebkitLineClamp":
|
|
25391
|
+
"--WebkitLineClamp": maybeCssVar56(maxLines)
|
|
25315
25392
|
}],
|
|
25316
25393
|
overflow: "oh",
|
|
25317
25394
|
display: "d_negwebkit_box",
|
|
@@ -25319,7 +25396,7 @@ function MaxLines({
|
|
|
25319
25396
|
textOverflow: "to_ellipsis"
|
|
25320
25397
|
} : {}
|
|
25321
25398
|
}), children }),
|
|
25322
|
-
hasMore && /* @__PURE__ */
|
|
25399
|
+
hasMore && /* @__PURE__ */ jsx203("button", { className: "db fw4 fz_14px lh_20px", onClick: () => setExpanded((prev) => !prev), children: expanded ? "Show Less" : "Show More" })
|
|
25323
25400
|
] });
|
|
25324
25401
|
}
|
|
25325
25402
|
|
|
@@ -25334,8 +25411,8 @@ import { useCallback as useCallback35, useEffect as useEffect34, useMemo as useM
|
|
|
25334
25411
|
// src/components/AppNav/AppNavGroupTrigger.tsx
|
|
25335
25412
|
import { useMemo as useMemo50, useRef as useRef61 } from "react";
|
|
25336
25413
|
import { mergeProps as mergeProps31, useButton as useButton11, useFocusRing as useFocusRing17, useHover as useHover20 } from "react-aria";
|
|
25337
|
-
import { trussProps as
|
|
25338
|
-
import { jsx as
|
|
25414
|
+
import { trussProps as trussProps116, mergeProps as mergeProps_14 } from "@homebound/truss/runtime";
|
|
25415
|
+
import { jsx as jsx204, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
25339
25416
|
function AppNavGroupTrigger(props) {
|
|
25340
25417
|
const {
|
|
25341
25418
|
label,
|
|
@@ -25367,7 +25444,7 @@ function AppNavGroupTrigger(props) {
|
|
|
25367
25444
|
hoverStyles: hoverStyles4,
|
|
25368
25445
|
pressedStyles: pressedStyles2
|
|
25369
25446
|
} = useMemo50(() => getNavLinkStyles("side"), []);
|
|
25370
|
-
return /* @__PURE__ */
|
|
25447
|
+
return /* @__PURE__ */ jsxs102("button", { type: "button", ...mergeProps31(buttonProps, focusProps, hoverProps, tid.trigger, {
|
|
25371
25448
|
ref,
|
|
25372
25449
|
"aria-expanded": expanded,
|
|
25373
25450
|
"aria-controls": navGroupId,
|
|
@@ -25385,7 +25462,7 @@ function AppNavGroupTrigger(props) {
|
|
|
25385
25462
|
})
|
|
25386
25463
|
}), children: [
|
|
25387
25464
|
label,
|
|
25388
|
-
/* @__PURE__ */
|
|
25465
|
+
/* @__PURE__ */ jsx204("div", { ...trussProps116({
|
|
25389
25466
|
...{
|
|
25390
25467
|
display: "df",
|
|
25391
25468
|
alignItems: "aic",
|
|
@@ -25395,7 +25472,7 @@ function AppNavGroupTrigger(props) {
|
|
|
25395
25472
|
...props.expanded ? {
|
|
25396
25473
|
transform: "transform_rotate_180deg"
|
|
25397
25474
|
} : {}
|
|
25398
|
-
}), children: /* @__PURE__ */
|
|
25475
|
+
}), children: /* @__PURE__ */ jsx204(Icon, { icon: "chevronDown" }) })
|
|
25399
25476
|
] });
|
|
25400
25477
|
}
|
|
25401
25478
|
|
|
@@ -25538,8 +25615,8 @@ function useAppNavGroupExpanded(linkGroup) {
|
|
|
25538
25615
|
}
|
|
25539
25616
|
|
|
25540
25617
|
// src/components/AppNav/AppNavGroup.tsx
|
|
25541
|
-
import { trussProps as
|
|
25542
|
-
import { Fragment as Fragment45, jsx as
|
|
25618
|
+
import { trussProps as trussProps117, maybeCssVar as maybeCssVar57 } from "@homebound/truss/runtime";
|
|
25619
|
+
import { Fragment as Fragment45, jsx as jsx205, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
25543
25620
|
var __maybeInc26 = (inc) => {
|
|
25544
25621
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
25545
25622
|
};
|
|
@@ -25550,9 +25627,9 @@ function AppNavGroupView(props) {
|
|
|
25550
25627
|
} = props;
|
|
25551
25628
|
const tid = useTestIds(props, "linkGroup");
|
|
25552
25629
|
if (panelCollapsed) {
|
|
25553
|
-
return /* @__PURE__ */
|
|
25630
|
+
return /* @__PURE__ */ jsx205(Fragment45, { children: appNavLinkGroupLinks(linkGroup).map((link) => /* @__PURE__ */ jsx205(NavLink, { variant: "side", ...link, iconOnly: !!link.icon, ...tid[`link_${camelCase5(link.label)}`] }, link.label)) });
|
|
25554
25631
|
}
|
|
25555
|
-
return /* @__PURE__ */
|
|
25632
|
+
return /* @__PURE__ */ jsx205(AppNavGroupDisclosure, { ...props });
|
|
25556
25633
|
}
|
|
25557
25634
|
function AppNavGroupDisclosure(props) {
|
|
25558
25635
|
const {
|
|
@@ -25581,27 +25658,27 @@ function AppNavGroupDisclosure(props) {
|
|
|
25581
25658
|
ref: contentRef,
|
|
25582
25659
|
onResize
|
|
25583
25660
|
});
|
|
25584
|
-
return /* @__PURE__ */
|
|
25585
|
-
/* @__PURE__ */
|
|
25586
|
-
/* @__PURE__ */
|
|
25661
|
+
return /* @__PURE__ */ jsxs103("div", { className: "df fdc", ...tid, children: [
|
|
25662
|
+
/* @__PURE__ */ jsx205(AppNavGroupTrigger, { label: linkGroup.label, navGroupId, expanded, active: linkGroupHasActiveLink(linkGroup), onClick: onToggle, ...tid }),
|
|
25663
|
+
/* @__PURE__ */ jsx205("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...trussProps117({
|
|
25587
25664
|
overflow: "oh",
|
|
25588
25665
|
transition: "transitionHeight",
|
|
25589
25666
|
height: ["h_var", {
|
|
25590
|
-
"--height":
|
|
25667
|
+
"--height": maybeCssVar57(__maybeInc26(contentHeight))
|
|
25591
25668
|
}]
|
|
25592
25669
|
}), ...tid.panel, ...!expanded ? {
|
|
25593
25670
|
inert: "true"
|
|
25594
|
-
} : {}, children: /* @__PURE__ */
|
|
25671
|
+
} : {}, children: /* @__PURE__ */ jsx205("div", { ref: setContentEl, className: "df fdc", children: /* @__PURE__ */ jsx205(AppNavItems, { items: linkGroup.items, panelCollapsed: false, nested: true, ...tid }) }) })
|
|
25595
25672
|
] });
|
|
25596
25673
|
}
|
|
25597
25674
|
|
|
25598
25675
|
// src/components/AppNav/AppNavGroupMenu.tsx
|
|
25599
|
-
import { jsx as
|
|
25676
|
+
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
25600
25677
|
function AppNavGroupMenu({
|
|
25601
25678
|
linkGroup,
|
|
25602
25679
|
...tid
|
|
25603
25680
|
}) {
|
|
25604
|
-
return /* @__PURE__ */
|
|
25681
|
+
return /* @__PURE__ */ jsx206(
|
|
25605
25682
|
ButtonMenu,
|
|
25606
25683
|
{
|
|
25607
25684
|
trigger: {
|
|
@@ -25617,8 +25694,8 @@ function AppNavGroupMenu({
|
|
|
25617
25694
|
}
|
|
25618
25695
|
|
|
25619
25696
|
// src/components/AppNav/AppNavSectionView.tsx
|
|
25620
|
-
import { trussProps as
|
|
25621
|
-
import { jsx as
|
|
25697
|
+
import { trussProps as trussProps118 } from "@homebound/truss/runtime";
|
|
25698
|
+
import { jsx as jsx207, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
25622
25699
|
function AppNavSectionView(props) {
|
|
25623
25700
|
const {
|
|
25624
25701
|
section,
|
|
@@ -25644,7 +25721,7 @@ function AppNavSectionView(props) {
|
|
|
25644
25721
|
"--borderColor": "var(--b-surface-separator)"
|
|
25645
25722
|
}]
|
|
25646
25723
|
};
|
|
25647
|
-
return /* @__PURE__ */
|
|
25724
|
+
return /* @__PURE__ */ jsxs104("div", { ...trussProps118({
|
|
25648
25725
|
...{
|
|
25649
25726
|
display: "df",
|
|
25650
25727
|
flexDirection: "fdc",
|
|
@@ -25652,7 +25729,7 @@ function AppNavSectionView(props) {
|
|
|
25652
25729
|
},
|
|
25653
25730
|
...showDivider ? dividerStyles : {}
|
|
25654
25731
|
}), ...tid, children: [
|
|
25655
|
-
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */
|
|
25732
|
+
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ jsx207("div", { ...trussProps118({
|
|
25656
25733
|
fontWeight: "fw6",
|
|
25657
25734
|
fontSize: "fz_10px",
|
|
25658
25735
|
lineHeight: "lh_14px",
|
|
@@ -25665,18 +25742,18 @@ function AppNavSectionView(props) {
|
|
|
25665
25742
|
paddingBottom: "pb1",
|
|
25666
25743
|
textTransform: "ttu"
|
|
25667
25744
|
}), ...tid.label, children: section.label }),
|
|
25668
|
-
/* @__PURE__ */
|
|
25745
|
+
/* @__PURE__ */ jsx207(AppNavItems, { ...scopeProps, items: section.items, variant, panelCollapsed, nested })
|
|
25669
25746
|
] });
|
|
25670
25747
|
}
|
|
25671
25748
|
|
|
25672
25749
|
// src/components/AppNav/AppNavItems.tsx
|
|
25673
|
-
import { Fragment as Fragment46, jsx as
|
|
25750
|
+
import { Fragment as Fragment46, jsx as jsx208 } from "react/jsx-runtime";
|
|
25674
25751
|
function AppNavItems(props) {
|
|
25675
25752
|
const { items, variant = "side", panelCollapsed = false, nested = false } = props;
|
|
25676
25753
|
const tid = useTestIds(props, "appNav");
|
|
25677
|
-
return /* @__PURE__ */
|
|
25754
|
+
return /* @__PURE__ */ jsx208(Fragment46, { children: items.map((item, idx) => {
|
|
25678
25755
|
if (isAppNavLink(item)) {
|
|
25679
|
-
return /* @__PURE__ */
|
|
25756
|
+
return /* @__PURE__ */ jsx208(
|
|
25680
25757
|
NavLink,
|
|
25681
25758
|
{
|
|
25682
25759
|
variant,
|
|
@@ -25689,7 +25766,7 @@ function AppNavItems(props) {
|
|
|
25689
25766
|
);
|
|
25690
25767
|
}
|
|
25691
25768
|
if (isAppNavGroup(item)) {
|
|
25692
|
-
return variant === "global" ? /* @__PURE__ */
|
|
25769
|
+
return variant === "global" ? /* @__PURE__ */ jsx208(AppNavGroupMenu, { linkGroup: item, ...tid.linkGroup }, appNavItemKey(item)) : /* @__PURE__ */ jsx208(
|
|
25693
25770
|
AppNavGroupView,
|
|
25694
25771
|
{
|
|
25695
25772
|
linkGroup: item,
|
|
@@ -25700,7 +25777,7 @@ function AppNavItems(props) {
|
|
|
25700
25777
|
);
|
|
25701
25778
|
}
|
|
25702
25779
|
if (isAppNavSection(item)) {
|
|
25703
|
-
return /* @__PURE__ */
|
|
25780
|
+
return /* @__PURE__ */ jsx208(
|
|
25704
25781
|
AppNavSectionView,
|
|
25705
25782
|
{
|
|
25706
25783
|
section: item,
|
|
@@ -25726,12 +25803,12 @@ import { useLocation } from "react-router-dom";
|
|
|
25726
25803
|
|
|
25727
25804
|
// src/layouts/NavbarLayout/MobileSubNavContext.tsx
|
|
25728
25805
|
import { createContext as createContext14, useContext as useContext26, useLayoutEffect as useLayoutEffect10, useMemo as useMemo52, useState as useState55 } from "react";
|
|
25729
|
-
import { jsx as
|
|
25806
|
+
import { jsx as jsx209 } from "react/jsx-runtime";
|
|
25730
25807
|
var MobileSubNavContext = createContext14(void 0);
|
|
25731
25808
|
function MobileSubNavProvider(props) {
|
|
25732
25809
|
const [mobileSubNav, setMobileSubNav] = useState55(null);
|
|
25733
25810
|
const value = useMemo52(() => ({ mobileSubNav, setMobileSubNav }), [mobileSubNav]);
|
|
25734
|
-
return /* @__PURE__ */
|
|
25811
|
+
return /* @__PURE__ */ jsx209(MobileSubNavContext.Provider, { value, children: props.children });
|
|
25735
25812
|
}
|
|
25736
25813
|
function useMobileSubNav() {
|
|
25737
25814
|
return useContext26(MobileSubNavContext)?.mobileSubNav ?? null;
|
|
@@ -25753,8 +25830,8 @@ function useRegisterMobileSubNav(content) {
|
|
|
25753
25830
|
}
|
|
25754
25831
|
|
|
25755
25832
|
// src/components/Navbar/NavbarMobileMenu.tsx
|
|
25756
|
-
import { trussProps as
|
|
25757
|
-
import { Fragment as Fragment47, jsx as
|
|
25833
|
+
import { trussProps as trussProps119, mergeProps as mergeProps32, maybeCssVar as maybeCssVar58 } from "@homebound/truss/runtime";
|
|
25834
|
+
import { Fragment as Fragment47, jsx as jsx210, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
25758
25835
|
function NavbarMobileMenu(props) {
|
|
25759
25836
|
const {
|
|
25760
25837
|
items
|
|
@@ -25774,8 +25851,8 @@ function NavbarMobileMenu(props) {
|
|
|
25774
25851
|
useEffect35(() => {
|
|
25775
25852
|
close();
|
|
25776
25853
|
}, [pathname, search]);
|
|
25777
|
-
return /* @__PURE__ */
|
|
25778
|
-
/* @__PURE__ */
|
|
25854
|
+
return /* @__PURE__ */ jsxs105(Fragment47, { children: [
|
|
25855
|
+
/* @__PURE__ */ jsx210(IconButton, { icon: isOpen ? "menuClose" : "menu", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: isOpen ? "Close navigation" : "Open navigation", onClick: () => {
|
|
25779
25856
|
if (isOpen) {
|
|
25780
25857
|
close();
|
|
25781
25858
|
return;
|
|
@@ -25785,7 +25862,7 @@ function NavbarMobileMenu(props) {
|
|
|
25785
25862
|
}, ...tid.mobileMenu }),
|
|
25786
25863
|
createPortal7(
|
|
25787
25864
|
/* AnimatePresence keeps the drawer mounted through its slide/fade-out before unmounting.*/
|
|
25788
|
-
/* @__PURE__ */
|
|
25865
|
+
/* @__PURE__ */ jsx210(AnimatePresence6, { children: isOpen && /* @__PURE__ */ jsx210(NavbarMobileDrawer, { items, mobileSubNav, level, onLevelChange: setLevel, onClose: close, tid }) }),
|
|
25789
25866
|
document.body
|
|
25790
25867
|
)
|
|
25791
25868
|
] });
|
|
@@ -25803,14 +25880,14 @@ function NavbarMobileDrawer({
|
|
|
25803
25880
|
top: bannerHeightPx
|
|
25804
25881
|
};
|
|
25805
25882
|
const showSubLevel = mobileSubNav != null && level === "sub";
|
|
25806
|
-
return /* @__PURE__ */
|
|
25807
|
-
/* @__PURE__ */
|
|
25883
|
+
return /* @__PURE__ */ jsxs105(Fragment47, { children: [
|
|
25884
|
+
/* @__PURE__ */ jsx210(motion6.div, { ...mergeProps32(void 0, overlayTopStyle, {
|
|
25808
25885
|
position: "fixed",
|
|
25809
25886
|
right: "right0",
|
|
25810
25887
|
bottom: "bottom0",
|
|
25811
25888
|
left: "left0",
|
|
25812
25889
|
zIndex: ["z_var", {
|
|
25813
|
-
"--zIndex":
|
|
25890
|
+
"--zIndex": maybeCssVar58(zIndices.navbarMobileMenuScrim)
|
|
25814
25891
|
}],
|
|
25815
25892
|
backgroundColor: ["bgColor_var", {
|
|
25816
25893
|
"--backgroundColor": "var(--b-scrim)"
|
|
@@ -25825,7 +25902,7 @@ function NavbarMobileDrawer({
|
|
|
25825
25902
|
ease: "linear",
|
|
25826
25903
|
duration: 0.2
|
|
25827
25904
|
}, onClick: onClose, ...tid.mobileMenuScrim }, "navbarMobileMenuScrim"),
|
|
25828
|
-
/* @__PURE__ */
|
|
25905
|
+
/* @__PURE__ */ jsx210(FocusScope5, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ jsxs105(motion6.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...mergeProps32(void 0, overlayTopStyle, {
|
|
25829
25906
|
position: "fixed",
|
|
25830
25907
|
bottom: "bottom0",
|
|
25831
25908
|
left: "left0",
|
|
@@ -25835,7 +25912,7 @@ function NavbarMobileDrawer({
|
|
|
25835
25912
|
width: "w_260px",
|
|
25836
25913
|
overflow: "oh",
|
|
25837
25914
|
zIndex: ["z_var", {
|
|
25838
|
-
"--zIndex":
|
|
25915
|
+
"--zIndex": maybeCssVar58(zIndices.navbarMobileMenu)
|
|
25839
25916
|
}],
|
|
25840
25917
|
backgroundColor: ["bgColor_var", {
|
|
25841
25918
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -25850,7 +25927,7 @@ function NavbarMobileDrawer({
|
|
|
25850
25927
|
ease: "linear",
|
|
25851
25928
|
duration: 0.2
|
|
25852
25929
|
}, onClick: (e) => e.stopPropagation(), ...tid.mobileMenuDrawer, children: [
|
|
25853
|
-
/* @__PURE__ */
|
|
25930
|
+
/* @__PURE__ */ jsxs105("div", { ...trussProps119({
|
|
25854
25931
|
...{
|
|
25855
25932
|
display: "df",
|
|
25856
25933
|
alignItems: "aic",
|
|
@@ -25866,13 +25943,13 @@ function NavbarMobileDrawer({
|
|
|
25866
25943
|
},
|
|
25867
25944
|
...pageContentPaddingX
|
|
25868
25945
|
}), children: [
|
|
25869
|
-
/* @__PURE__ */
|
|
25870
|
-
/* @__PURE__ */
|
|
25946
|
+
/* @__PURE__ */ jsx210("div", { className: "mw0", children: showSubLevel && /* @__PURE__ */ jsx210(Button, { label: "Main Menu", icon: "chevronLeft", variant: "quaternary", size: "sm", onClick: () => onLevelChange("global"), ...tid.mobileMenuMainMenu }) }),
|
|
25947
|
+
/* @__PURE__ */ jsx210(IconButton, { icon: "x", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: "Close navigation", onClick: onClose, ...tid.mobileMenuClose })
|
|
25871
25948
|
] }),
|
|
25872
|
-
/* @__PURE__ */
|
|
25949
|
+
/* @__PURE__ */ jsx210("div", { className: "fg1 mh0 oh relative", children: /* @__PURE__ */ jsx210(AnimatePresence6, { initial: false, children: /* @__PURE__ */ jsxs105(
|
|
25873
25950
|
motion6.nav,
|
|
25874
25951
|
{
|
|
25875
|
-
...
|
|
25952
|
+
...trussProps119({
|
|
25876
25953
|
...{
|
|
25877
25954
|
position: "absolute",
|
|
25878
25955
|
top: "top0",
|
|
@@ -25909,7 +25986,7 @@ function NavbarMobileDrawer({
|
|
|
25909
25986
|
...tid.mobileMenuPanel,
|
|
25910
25987
|
children: [
|
|
25911
25988
|
showSubLevel && mobileSubNav?.top,
|
|
25912
|
-
/* @__PURE__ */
|
|
25989
|
+
/* @__PURE__ */ jsx210(AppNavItems, { items: showSubLevel && mobileSubNav ? mobileSubNav.items : items, panelCollapsed: false, ...tid }),
|
|
25913
25990
|
showSubLevel && mobileSubNav?.footer
|
|
25914
25991
|
]
|
|
25915
25992
|
},
|
|
@@ -25920,8 +25997,8 @@ function NavbarMobileDrawer({
|
|
|
25920
25997
|
}
|
|
25921
25998
|
|
|
25922
25999
|
// src/components/Navbar/Navbar.tsx
|
|
25923
|
-
import { trussProps as
|
|
25924
|
-
import { jsx as
|
|
26000
|
+
import { trussProps as trussProps120 } from "@homebound/truss/runtime";
|
|
26001
|
+
import { jsx as jsx211, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
25925
26002
|
function Navbar(props) {
|
|
25926
26003
|
const {
|
|
25927
26004
|
brand,
|
|
@@ -25940,7 +26017,7 @@ function Navbar(props) {
|
|
|
25940
26017
|
overflows
|
|
25941
26018
|
} = useContentOverflow(!sm);
|
|
25942
26019
|
const showMobile = sm || overflows;
|
|
25943
|
-
return /* @__PURE__ */
|
|
26020
|
+
return /* @__PURE__ */ jsx211(ContrastScope, { children: /* @__PURE__ */ jsxs106("nav", { ...trussProps120({
|
|
25944
26021
|
...{
|
|
25945
26022
|
backgroundColor: ["bgColor_var", {
|
|
25946
26023
|
"--backgroundColor": "var(--b-surface-raised)"
|
|
@@ -25956,10 +26033,10 @@ function Navbar(props) {
|
|
|
25956
26033
|
},
|
|
25957
26034
|
...headerContentPaddingX(showMobile)
|
|
25958
26035
|
}), ...tid, children: [
|
|
25959
|
-
/* @__PURE__ */
|
|
25960
|
-
/* @__PURE__ */
|
|
25961
|
-
showMobile && /* @__PURE__ */
|
|
25962
|
-
/* @__PURE__ */
|
|
26036
|
+
/* @__PURE__ */ jsxs106("div", { className: "df aic gap3 fg1 mw0", children: [
|
|
26037
|
+
/* @__PURE__ */ jsxs106("div", { className: "df aic fs0 gap2", children: [
|
|
26038
|
+
showMobile && /* @__PURE__ */ jsx211(NavbarMobileMenu, { items, ...tid }),
|
|
26039
|
+
/* @__PURE__ */ jsx211("div", { ...trussProps120({
|
|
25963
26040
|
flexShrink: "fs0",
|
|
25964
26041
|
...hideBrandOnMobile && showMobile ? {
|
|
25965
26042
|
display: "dn"
|
|
@@ -25968,7 +26045,7 @@ function Navbar(props) {
|
|
|
25968
26045
|
] }),
|
|
25969
26046
|
!sm && // Stays mounted while overflowing (hidden) so the items remain measurable and the bar
|
|
25970
26047
|
// can expand again as space frees up.
|
|
25971
|
-
/* @__PURE__ */
|
|
26048
|
+
/* @__PURE__ */ jsx211("div", { ref: containerRef, ...trussProps120({
|
|
25972
26049
|
display: "df",
|
|
25973
26050
|
alignItems: "aic",
|
|
25974
26051
|
flexGrow: "fg1",
|
|
@@ -25977,11 +26054,11 @@ function Navbar(props) {
|
|
|
25977
26054
|
...overflows ? {
|
|
25978
26055
|
visibility: "visibility_hidden"
|
|
25979
26056
|
} : {}
|
|
25980
|
-
}), ...tid.items, children: /* @__PURE__ */
|
|
26057
|
+
}), ...tid.items, children: /* @__PURE__ */ jsx211("div", { ref: contentRef, className: "df aic gap2 width_max_content", children: /* @__PURE__ */ jsx211(AppNavItems, { variant: "global", items, ...tid }) }) })
|
|
25981
26058
|
] }),
|
|
25982
|
-
/* @__PURE__ */
|
|
25983
|
-
rightSlot && /* @__PURE__ */
|
|
25984
|
-
user && /* @__PURE__ */
|
|
26059
|
+
/* @__PURE__ */ jsxs106("div", { className: "df aic gap1", children: [
|
|
26060
|
+
rightSlot && /* @__PURE__ */ jsx211("div", { className: "df aic gap1", ...tid.rightSlot, children: rightSlot }),
|
|
26061
|
+
user && /* @__PURE__ */ jsx211(NavbarUserMenu, { user, ...tid.userMenu })
|
|
25985
26062
|
] })
|
|
25986
26063
|
] }) });
|
|
25987
26064
|
}
|
|
@@ -25989,7 +26066,7 @@ function NavbarUserMenu({
|
|
|
25989
26066
|
user,
|
|
25990
26067
|
...tid
|
|
25991
26068
|
}) {
|
|
25992
|
-
return /* @__PURE__ */
|
|
26069
|
+
return /* @__PURE__ */ jsx211("div", { className: "df aic fs0 ml1", children: /* @__PURE__ */ jsx211(ButtonMenu, { items: user.menuItems, persistentItems: user.persistentItems, trigger: {
|
|
25993
26070
|
src: user.picture,
|
|
25994
26071
|
name: user.name,
|
|
25995
26072
|
size: "sm",
|
|
@@ -25998,8 +26075,8 @@ function NavbarUserMenu({
|
|
|
25998
26075
|
}
|
|
25999
26076
|
|
|
26000
26077
|
// src/components/Pagination.tsx
|
|
26001
|
-
import { trussProps as
|
|
26002
|
-
import { jsx as
|
|
26078
|
+
import { trussProps as trussProps121 } from "@homebound/truss/runtime";
|
|
26079
|
+
import { jsx as jsx212, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
26003
26080
|
var defaultPage = {
|
|
26004
26081
|
offset: 0,
|
|
26005
26082
|
limit: 100
|
|
@@ -26031,7 +26108,7 @@ function Pagination(props) {
|
|
|
26031
26108
|
}
|
|
26032
26109
|
}
|
|
26033
26110
|
const tid = useTestIds(props, "pagination");
|
|
26034
|
-
return /* @__PURE__ */
|
|
26111
|
+
return /* @__PURE__ */ jsxs107("div", { ...trussProps121({
|
|
26035
26112
|
display: "df",
|
|
26036
26113
|
borderColor: ["bc_var", {
|
|
26037
26114
|
"--borderColor": "var(--b-surface-separator)"
|
|
@@ -26048,24 +26125,24 @@ function Pagination(props) {
|
|
|
26048
26125
|
paddingRight: "pr2",
|
|
26049
26126
|
paddingTop: "pt2"
|
|
26050
26127
|
}), ...tid, children: [
|
|
26051
|
-
/* @__PURE__ */
|
|
26052
|
-
/* @__PURE__ */
|
|
26128
|
+
/* @__PURE__ */ jsx212("div", { className: "df mta mba mr2", ...tid.pageSizeLabel, children: "Page size:" }),
|
|
26129
|
+
/* @__PURE__ */ jsx212("div", { className: "w_78px", children: /* @__PURE__ */ jsx212(SelectField, { compact: true, label: "Page Size", labelStyle: "hidden", options: pageOptions, value: pageSize, onSelect: (val) => set({
|
|
26053
26130
|
pageNumber: 1,
|
|
26054
26131
|
pageSize: val
|
|
26055
26132
|
}), autoSort: false, ...tid.pageSize }) }),
|
|
26056
|
-
/* @__PURE__ */
|
|
26057
|
-
/* @__PURE__ */
|
|
26133
|
+
/* @__PURE__ */ jsxs107("div", { className: "mla mta mba df", children: [
|
|
26134
|
+
/* @__PURE__ */ jsxs107("div", { className: "df mta mba mr2", ...tid.pageInfoLabel, children: [
|
|
26058
26135
|
first,
|
|
26059
26136
|
" ",
|
|
26060
26137
|
showLast ? `- ${last}` : "",
|
|
26061
26138
|
" of ",
|
|
26062
26139
|
totalCount
|
|
26063
26140
|
] }),
|
|
26064
|
-
/* @__PURE__ */
|
|
26141
|
+
/* @__PURE__ */ jsx212(IconButton, { icon: "chevronLeft", color: hasPrevPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
|
|
26065
26142
|
pageNumber: pageNumber - 1,
|
|
26066
26143
|
pageSize
|
|
26067
26144
|
}), disabled: !hasPrevPage, ...tid.previousIcon }),
|
|
26068
|
-
/* @__PURE__ */
|
|
26145
|
+
/* @__PURE__ */ jsx212(IconButton, { icon: "chevronRight", color: hasNextPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
|
|
26069
26146
|
pageNumber: pageNumber + 1,
|
|
26070
26147
|
pageSize
|
|
26071
26148
|
}), disabled: !hasNextPage, ...tid.nextIcon })
|
|
@@ -26089,8 +26166,8 @@ function toPageNumberSize(page) {
|
|
|
26089
26166
|
// src/components/ScrollShadows.tsx
|
|
26090
26167
|
import { useResizeObserver as useResizeObserver10 } from "@react-aria/utils";
|
|
26091
26168
|
import { useCallback as useCallback36, useMemo as useMemo53, useRef as useRef62, useState as useState57 } from "react";
|
|
26092
|
-
import { trussProps as
|
|
26093
|
-
import { jsx as
|
|
26169
|
+
import { trussProps as trussProps122, maybeCssVar as maybeCssVar59 } from "@homebound/truss/runtime";
|
|
26170
|
+
import { jsx as jsx213, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
26094
26171
|
function ScrollShadows(props) {
|
|
26095
26172
|
const {
|
|
26096
26173
|
children,
|
|
@@ -26114,7 +26191,7 @@ function ScrollShadows(props) {
|
|
|
26114
26191
|
const commonStyles = {
|
|
26115
26192
|
position: "absolute",
|
|
26116
26193
|
zIndex: ["z_var", {
|
|
26117
|
-
"--zIndex":
|
|
26194
|
+
"--zIndex": maybeCssVar59(zIndices.scrollShadow)
|
|
26118
26195
|
}],
|
|
26119
26196
|
pointerEvents: "pointerEvents_none"
|
|
26120
26197
|
};
|
|
@@ -26147,7 +26224,7 @@ function ScrollShadows(props) {
|
|
|
26147
26224
|
...startShadowStyles2,
|
|
26148
26225
|
...{
|
|
26149
26226
|
background: ["background_var", {
|
|
26150
|
-
"--background":
|
|
26227
|
+
"--background": maybeCssVar59(startGradient)
|
|
26151
26228
|
}]
|
|
26152
26229
|
}
|
|
26153
26230
|
}, {
|
|
@@ -26155,7 +26232,7 @@ function ScrollShadows(props) {
|
|
|
26155
26232
|
...endShadowStyles2,
|
|
26156
26233
|
...{
|
|
26157
26234
|
background: ["background_var", {
|
|
26158
|
-
"--background":
|
|
26235
|
+
"--background": maybeCssVar59(endGradient)
|
|
26159
26236
|
}]
|
|
26160
26237
|
}
|
|
26161
26238
|
}];
|
|
@@ -26180,10 +26257,10 @@ function ScrollShadows(props) {
|
|
|
26180
26257
|
ref: scrollRef,
|
|
26181
26258
|
onResize
|
|
26182
26259
|
});
|
|
26183
|
-
return /* @__PURE__ */
|
|
26260
|
+
return /* @__PURE__ */ jsxs108("div", { ...trussProps122({
|
|
26184
26261
|
display: "df",
|
|
26185
26262
|
flexDirection: ["fd_var", {
|
|
26186
|
-
"--flexDirection":
|
|
26263
|
+
"--flexDirection": maybeCssVar59(!horizontal ? "column" : "row")
|
|
26187
26264
|
}],
|
|
26188
26265
|
position: "relative",
|
|
26189
26266
|
overflow: "oh",
|
|
@@ -26196,23 +26273,23 @@ function ScrollShadows(props) {
|
|
|
26196
26273
|
width: width2
|
|
26197
26274
|
}
|
|
26198
26275
|
}), ...tid, children: [
|
|
26199
|
-
/* @__PURE__ */
|
|
26276
|
+
/* @__PURE__ */ jsx213("div", { ...trussProps122({
|
|
26200
26277
|
...startShadowStyles,
|
|
26201
26278
|
...{
|
|
26202
26279
|
opacity: ["o_var", {
|
|
26203
|
-
"--opacity":
|
|
26280
|
+
"--opacity": maybeCssVar59(showStartShadow ? 1 : 0)
|
|
26204
26281
|
}]
|
|
26205
26282
|
}
|
|
26206
26283
|
}), "data-chromatic": "ignore" }),
|
|
26207
|
-
/* @__PURE__ */
|
|
26284
|
+
/* @__PURE__ */ jsx213("div", { ...trussProps122({
|
|
26208
26285
|
...endShadowStyles,
|
|
26209
26286
|
...{
|
|
26210
26287
|
opacity: ["o_var", {
|
|
26211
|
-
"--opacity":
|
|
26288
|
+
"--opacity": maybeCssVar59(showEndShadow ? 1 : 0)
|
|
26212
26289
|
}]
|
|
26213
26290
|
}
|
|
26214
26291
|
}), "data-chromatic": "ignore" }),
|
|
26215
|
-
/* @__PURE__ */
|
|
26292
|
+
/* @__PURE__ */ jsx213("div", { ...trussProps122({
|
|
26216
26293
|
...xss,
|
|
26217
26294
|
...{
|
|
26218
26295
|
overflow: "oa",
|
|
@@ -26233,7 +26310,7 @@ import {
|
|
|
26233
26310
|
useRef as useRef63,
|
|
26234
26311
|
useState as useState58
|
|
26235
26312
|
} from "react";
|
|
26236
|
-
import { jsx as
|
|
26313
|
+
import { jsx as jsx214 } from "react/jsx-runtime";
|
|
26237
26314
|
var SIDE_NAV_LAYOUT_STATE_STORAGE_KEY = "beam.sideNavLayout.navState";
|
|
26238
26315
|
function loadStoredNavState() {
|
|
26239
26316
|
try {
|
|
@@ -26281,7 +26358,7 @@ function SideNavLayoutProvider(props) {
|
|
|
26281
26358
|
});
|
|
26282
26359
|
}, []);
|
|
26283
26360
|
const value = useMemo54(() => ({ navState, setNavState }), [navState, setNavState]);
|
|
26284
|
-
return /* @__PURE__ */
|
|
26361
|
+
return /* @__PURE__ */ jsx214(SideNavLayoutContext.Provider, { value, children: props.children });
|
|
26285
26362
|
}
|
|
26286
26363
|
function useSideNavLayoutContext() {
|
|
26287
26364
|
return useContext27(SideNavLayoutContext) ?? { navState: "expanded", setNavState: () => {
|
|
@@ -26292,8 +26369,8 @@ function useHasSideNavLayoutProvider() {
|
|
|
26292
26369
|
}
|
|
26293
26370
|
|
|
26294
26371
|
// src/components/SideNav/SideNav.tsx
|
|
26295
|
-
import { trussProps as
|
|
26296
|
-
import { jsx as
|
|
26372
|
+
import { trussProps as trussProps123 } from "@homebound/truss/runtime";
|
|
26373
|
+
import { jsx as jsx215, jsxs as jsxs109 } from "react/jsx-runtime";
|
|
26297
26374
|
function SideNav(props) {
|
|
26298
26375
|
const {
|
|
26299
26376
|
top,
|
|
@@ -26306,8 +26383,8 @@ function SideNav(props) {
|
|
|
26306
26383
|
const tid = useTestIds(props, "sideNav");
|
|
26307
26384
|
const panelCollapsed = navState === "collapse";
|
|
26308
26385
|
const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
|
|
26309
|
-
return /* @__PURE__ */
|
|
26310
|
-
top !== void 0 && /* @__PURE__ */
|
|
26386
|
+
return /* @__PURE__ */ jsxs109("nav", { className: "df fdc h100 fs0", ...tid, children: [
|
|
26387
|
+
top !== void 0 && /* @__PURE__ */ jsx215("div", { ...trussProps123({
|
|
26311
26388
|
flexShrink: "fs0",
|
|
26312
26389
|
paddingLeft: "pl2",
|
|
26313
26390
|
paddingRight: "pr2",
|
|
@@ -26318,7 +26395,7 @@ function SideNav(props) {
|
|
|
26318
26395
|
paddingBottom: "pb4"
|
|
26319
26396
|
} : {}
|
|
26320
26397
|
}), ...tid.top, children: top }),
|
|
26321
|
-
/* @__PURE__ */
|
|
26398
|
+
/* @__PURE__ */ jsx215("div", { ...trussProps123({
|
|
26322
26399
|
flexGrow: "fg1",
|
|
26323
26400
|
overflowY: "oya",
|
|
26324
26401
|
display: "df",
|
|
@@ -26330,8 +26407,8 @@ function SideNav(props) {
|
|
|
26330
26407
|
...top === void 0 ? {
|
|
26331
26408
|
paddingTop: "pt5"
|
|
26332
26409
|
} : {}
|
|
26333
|
-
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */
|
|
26334
|
-
footer !== void 0 && /* @__PURE__ */
|
|
26410
|
+
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ jsx215(AppNavItems, { items, panelCollapsed }) }),
|
|
26411
|
+
footer !== void 0 && /* @__PURE__ */ jsx215("div", { ...trussProps123({
|
|
26335
26412
|
flexShrink: "fs0",
|
|
26336
26413
|
paddingLeft: "pl2",
|
|
26337
26414
|
paddingRight: "pr2",
|
|
@@ -26408,8 +26485,8 @@ var snackbarId = 1;
|
|
|
26408
26485
|
// src/components/Stepper.tsx
|
|
26409
26486
|
import { useRef as useRef64 } from "react";
|
|
26410
26487
|
import { useButton as useButton12, useFocusRing as useFocusRing18, useHover as useHover21 } from "react-aria";
|
|
26411
|
-
import { trussProps as
|
|
26412
|
-
import { jsx as
|
|
26488
|
+
import { trussProps as trussProps124, maybeCssVar as maybeCssVar60 } from "@homebound/truss/runtime";
|
|
26489
|
+
import { jsx as jsx216, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
26413
26490
|
import { createElement as createElement6 } from "react";
|
|
26414
26491
|
var __maybeInc27 = (inc) => {
|
|
26415
26492
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -26428,8 +26505,8 @@ function Stepper(props) {
|
|
|
26428
26505
|
const maxStepWidth = 200;
|
|
26429
26506
|
const minStepWidth = 100;
|
|
26430
26507
|
const gap = 8;
|
|
26431
|
-
return /* @__PURE__ */
|
|
26432
|
-
/* @__PURE__ */
|
|
26508
|
+
return /* @__PURE__ */ jsxs110("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
26509
|
+
/* @__PURE__ */ jsx216("ol", { ...trussProps124({
|
|
26433
26510
|
padding: "p_0",
|
|
26434
26511
|
margin: "m_0",
|
|
26435
26512
|
listStyle: "lis_none",
|
|
@@ -26439,7 +26516,7 @@ function Stepper(props) {
|
|
|
26439
26516
|
}]
|
|
26440
26517
|
}), children: steps.map((step) => {
|
|
26441
26518
|
const isCurrent = currentStep === step.value;
|
|
26442
|
-
return /* @__PURE__ */ createElement6("li", { ...
|
|
26519
|
+
return /* @__PURE__ */ createElement6("li", { ...trussProps124({
|
|
26443
26520
|
display: "df",
|
|
26444
26521
|
flexGrow: "fg1",
|
|
26445
26522
|
flexDirection: "fdc",
|
|
@@ -26449,9 +26526,9 @@ function Stepper(props) {
|
|
|
26449
26526
|
minWidth: ["mw_var", {
|
|
26450
26527
|
"--minWidth": `${minStepWidth}px`
|
|
26451
26528
|
}]
|
|
26452
|
-
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */
|
|
26529
|
+
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx216(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
26453
26530
|
}) }),
|
|
26454
|
-
/* @__PURE__ */
|
|
26531
|
+
/* @__PURE__ */ jsx216("div", { ...trussProps124({
|
|
26455
26532
|
marginTop: "mt1",
|
|
26456
26533
|
backgroundColor: ["bgColor_var", {
|
|
26457
26534
|
"--backgroundColor": "var(--b-field-border-default)"
|
|
@@ -26464,14 +26541,14 @@ function Stepper(props) {
|
|
|
26464
26541
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
26465
26542
|
}],
|
|
26466
26543
|
width: "w100"
|
|
26467
|
-
}), children: /* @__PURE__ */
|
|
26544
|
+
}), children: /* @__PURE__ */ jsx216("div", { ...trussProps124({
|
|
26468
26545
|
backgroundColor: ["bgColor_var", {
|
|
26469
26546
|
"--backgroundColor": "var(--b-primary)"
|
|
26470
26547
|
}],
|
|
26471
26548
|
transition: "transition_width_200ms",
|
|
26472
26549
|
height: "h100",
|
|
26473
26550
|
width: ["w_var", {
|
|
26474
|
-
"--width":
|
|
26551
|
+
"--width": maybeCssVar60(__maybeInc27(`${(lastCompletedStep + 1) / steps.length * 100}%`))
|
|
26475
26552
|
}]
|
|
26476
26553
|
}) }) })
|
|
26477
26554
|
] });
|
|
@@ -26507,7 +26584,7 @@ function StepButton(props) {
|
|
|
26507
26584
|
boxShadow: "bshFocus"
|
|
26508
26585
|
};
|
|
26509
26586
|
const tid = useTestIds(props, "stepButton");
|
|
26510
|
-
return /* @__PURE__ */
|
|
26587
|
+
return /* @__PURE__ */ jsxs110("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...trussProps124({
|
|
26511
26588
|
...{
|
|
26512
26589
|
fontWeight: "fw6",
|
|
26513
26590
|
fontSize: "fz_14px",
|
|
@@ -26568,7 +26645,7 @@ function StepButton(props) {
|
|
|
26568
26645
|
} : {},
|
|
26569
26646
|
...isFocusVisible ? focusRingStyles2 : {}
|
|
26570
26647
|
}), ...tid[defaultTestId(label)], children: [
|
|
26571
|
-
/* @__PURE__ */
|
|
26648
|
+
/* @__PURE__ */ jsx216("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ jsx216(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
|
|
26572
26649
|
label
|
|
26573
26650
|
] });
|
|
26574
26651
|
}
|
|
@@ -26579,12 +26656,12 @@ function StepIcon({
|
|
|
26579
26656
|
isCurrent = false
|
|
26580
26657
|
}) {
|
|
26581
26658
|
if (state === "error") {
|
|
26582
|
-
return /* @__PURE__ */
|
|
26659
|
+
return /* @__PURE__ */ jsx216(Icon, { icon: "errorCircle" });
|
|
26583
26660
|
}
|
|
26584
26661
|
if (state === "complete") {
|
|
26585
|
-
return /* @__PURE__ */
|
|
26662
|
+
return /* @__PURE__ */ jsx216(Icon, { icon: "check" });
|
|
26586
26663
|
}
|
|
26587
|
-
return /* @__PURE__ */
|
|
26664
|
+
return /* @__PURE__ */ jsx216("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ jsx216("div", { ...trussProps124({
|
|
26588
26665
|
width: "w_10px",
|
|
26589
26666
|
height: "h_10px",
|
|
26590
26667
|
borderStyle: "bss",
|
|
@@ -26600,8 +26677,8 @@ function StepIcon({
|
|
|
26600
26677
|
// src/components/StepperTabs/StepperTab.tsx
|
|
26601
26678
|
import { useRef as useRef65 } from "react";
|
|
26602
26679
|
import { mergeProps as mergeProps33, useButton as useButton13, useFocusRing as useFocusRing19, useHover as useHover22, VisuallyHidden as VisuallyHidden10 } from "react-aria";
|
|
26603
|
-
import { trussProps as
|
|
26604
|
-
import { Fragment as Fragment48, jsx as
|
|
26680
|
+
import { trussProps as trussProps125 } from "@homebound/truss/runtime";
|
|
26681
|
+
import { Fragment as Fragment48, jsx as jsx217, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
26605
26682
|
function StepperTab(props) {
|
|
26606
26683
|
const {
|
|
26607
26684
|
label,
|
|
@@ -26632,7 +26709,7 @@ function StepperTab(props) {
|
|
|
26632
26709
|
const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
|
|
26633
26710
|
const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
|
|
26634
26711
|
const tid = useTestIds(props, "stepperTab");
|
|
26635
|
-
return /* @__PURE__ */
|
|
26712
|
+
return /* @__PURE__ */ jsxs111("button", { ref, ...mergeProps33(buttonProps, focusProps, hoverProps), "aria-label": label, ...trussProps125({
|
|
26636
26713
|
...stepperTabStyles.baseStyles,
|
|
26637
26714
|
...getStateStyles(active, completed),
|
|
26638
26715
|
...isHovered && !disabled ? stepperTabStyles.hoverStyles : {},
|
|
@@ -26640,10 +26717,10 @@ function StepperTab(props) {
|
|
|
26640
26717
|
...disabled ? stepperTabStyles.disabledStyles : {},
|
|
26641
26718
|
...isFocusVisible ? stepperTabStyles.focusRingStyles : {}
|
|
26642
26719
|
}), ...tid[defaultTestId(value)], children: [
|
|
26643
|
-
!collapsed && /* @__PURE__ */
|
|
26644
|
-
/* @__PURE__ */
|
|
26645
|
-
/* @__PURE__ */
|
|
26646
|
-
/* @__PURE__ */
|
|
26720
|
+
!collapsed && /* @__PURE__ */ jsxs111(Fragment48, { children: [
|
|
26721
|
+
/* @__PURE__ */ jsxs111("span", { className: "dg jic mw0", children: [
|
|
26722
|
+
/* @__PURE__ */ jsx217("span", { className: "fw6 fz_14px lh_20px visibility_hidden gridArea_1_1 oh d_negwebkit_box wbo_vertical to_ellipsis wlc_1 wordBreak_break_all", "aria-hidden": true, children: label }),
|
|
26723
|
+
/* @__PURE__ */ jsx217("span", { ...trussProps125({
|
|
26647
26724
|
gridArea: "gridArea_1_1",
|
|
26648
26725
|
overflow: "oh",
|
|
26649
26726
|
display: "d_negwebkit_box",
|
|
@@ -26658,7 +26735,7 @@ function StepperTab(props) {
|
|
|
26658
26735
|
} : {}
|
|
26659
26736
|
}), children: label })
|
|
26660
26737
|
] }),
|
|
26661
|
-
/* @__PURE__ */
|
|
26738
|
+
/* @__PURE__ */ jsx217("span", { ...trussProps125({
|
|
26662
26739
|
flexShrink: "fs0",
|
|
26663
26740
|
marginLeft: "ml1",
|
|
26664
26741
|
transition: "transitionAll",
|
|
@@ -26668,10 +26745,10 @@ function StepperTab(props) {
|
|
|
26668
26745
|
opacity: "o100",
|
|
26669
26746
|
transform: "transform_scale_1_translateY_0"
|
|
26670
26747
|
} : {}
|
|
26671
|
-
}), children: /* @__PURE__ */
|
|
26748
|
+
}), children: /* @__PURE__ */ jsx217(Icon, { icon: "check", inc: 2.5, ...tid.check }) })
|
|
26672
26749
|
] }),
|
|
26673
|
-
/* @__PURE__ */
|
|
26674
|
-
/* @__PURE__ */
|
|
26750
|
+
/* @__PURE__ */ jsx217("span", { "aria-hidden": true, ...trussProps125(getIndicatorStyles(active, completed, disabled)), ...tid.indicator }),
|
|
26751
|
+
/* @__PURE__ */ jsx217(VisuallyHidden10, { children: completed ? "Complete" : "Not Complete" })
|
|
26675
26752
|
] });
|
|
26676
26753
|
}
|
|
26677
26754
|
function getStateStyles(active, completed) {
|
|
@@ -26752,8 +26829,8 @@ var stepperTabStyles = {
|
|
|
26752
26829
|
};
|
|
26753
26830
|
|
|
26754
26831
|
// src/components/StepperTabs/StepperTabs.tsx
|
|
26755
|
-
import { trussProps as
|
|
26756
|
-
import { jsx as
|
|
26832
|
+
import { trussProps as trussProps126 } from "@homebound/truss/runtime";
|
|
26833
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
26757
26834
|
import { createElement as createElement7 } from "react";
|
|
26758
26835
|
function StepperTabs(props) {
|
|
26759
26836
|
const {
|
|
@@ -26769,7 +26846,7 @@ function StepperTabs(props) {
|
|
|
26769
26846
|
const collapsed = isMobile || !!forceCollapsed;
|
|
26770
26847
|
const capWidth = steps.length <= 3;
|
|
26771
26848
|
const currentStepIndex = Math.max(0, steps.findIndex((step) => step.value === currentStep));
|
|
26772
|
-
return /* @__PURE__ */
|
|
26849
|
+
return /* @__PURE__ */ jsx218("nav", { "aria-label": "steps", className: "w100", ...tid, children: /* @__PURE__ */ jsx218("ol", { ...trussProps126({
|
|
26773
26850
|
padding: "p_0",
|
|
26774
26851
|
margin: "m_0",
|
|
26775
26852
|
listStyle: "lis_none",
|
|
@@ -26784,7 +26861,7 @@ function StepperTabs(props) {
|
|
|
26784
26861
|
}), children: steps.map((step, idx) => {
|
|
26785
26862
|
const isCurrent = idx === currentStepIndex;
|
|
26786
26863
|
const isCompleted = idx < currentStepIndex;
|
|
26787
|
-
return /* @__PURE__ */ createElement7("li", { ...
|
|
26864
|
+
return /* @__PURE__ */ createElement7("li", { ...trussProps126({
|
|
26788
26865
|
display: "df",
|
|
26789
26866
|
flexGrow: "fg1",
|
|
26790
26867
|
flexBasis: "fb_0",
|
|
@@ -26796,7 +26873,7 @@ function StepperTabs(props) {
|
|
|
26796
26873
|
"--maxWidth": `${maxStepWidthPx}px`
|
|
26797
26874
|
}]
|
|
26798
26875
|
} : {}
|
|
26799
|
-
}), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */
|
|
26876
|
+
}), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx218(StepperTab, { label: step.label, value: step.value, active: isCurrent, completed: isCompleted, disabled: step.disabled, collapsed, onClick: onChange, ...tid.tab }));
|
|
26800
26877
|
}) }) });
|
|
26801
26878
|
}
|
|
26802
26879
|
var maxStepWidthPx = 280;
|
|
@@ -26804,8 +26881,8 @@ var gapPx = 6;
|
|
|
26804
26881
|
|
|
26805
26882
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
26806
26883
|
import { createPortal as createPortal8 } from "react-dom";
|
|
26807
|
-
import { trussProps as
|
|
26808
|
-
import { jsx as
|
|
26884
|
+
import { trussProps as trussProps127 } from "@homebound/truss/runtime";
|
|
26885
|
+
import { jsx as jsx219, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
26809
26886
|
function SuperDrawerHeader(props) {
|
|
26810
26887
|
const {
|
|
26811
26888
|
hideControls
|
|
@@ -26822,20 +26899,20 @@ function SuperDrawerHeader(props) {
|
|
|
26822
26899
|
const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
|
|
26823
26900
|
const isDetail = currentContent !== firstContent;
|
|
26824
26901
|
const tid = useTestIds({}, "superDrawerHeader");
|
|
26825
|
-
return createPortal8(/* @__PURE__ */
|
|
26826
|
-
isStructuredProps(props) ? /* @__PURE__ */
|
|
26827
|
-
/* @__PURE__ */
|
|
26828
|
-
/* @__PURE__ */
|
|
26902
|
+
return createPortal8(/* @__PURE__ */ jsxs112("div", { className: "df aic jcsb gap3", ...tid, children: [
|
|
26903
|
+
isStructuredProps(props) ? /* @__PURE__ */ jsxs112("div", { className: "df jcsb aic gap2 fg1", children: [
|
|
26904
|
+
/* @__PURE__ */ jsxs112("div", { className: "fg1 df aic gap2", children: [
|
|
26905
|
+
/* @__PURE__ */ jsx219("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
|
|
26829
26906
|
props.left
|
|
26830
26907
|
] }),
|
|
26831
|
-
props.right && /* @__PURE__ */
|
|
26832
|
-
] }) : /* @__PURE__ */
|
|
26833
|
-
!hideControls && /* @__PURE__ */
|
|
26908
|
+
props.right && /* @__PURE__ */ jsx219("div", { className: "fs0", children: props.right })
|
|
26909
|
+
] }) : /* @__PURE__ */ jsx219("div", { className: "fg1", children: props.children }),
|
|
26910
|
+
!hideControls && /* @__PURE__ */ jsx219("div", { ...trussProps127({
|
|
26834
26911
|
flexShrink: "fs0",
|
|
26835
26912
|
...isDetail ? {
|
|
26836
26913
|
visibility: "vh"
|
|
26837
26914
|
} : {}
|
|
26838
|
-
}), children: /* @__PURE__ */
|
|
26915
|
+
}), children: /* @__PURE__ */ jsx219(ButtonGroup, { buttons: [{
|
|
26839
26916
|
icon: "chevronLeft",
|
|
26840
26917
|
onClick: () => onPrevClick && onPrevClick(),
|
|
26841
26918
|
disabled: !onPrevClick
|
|
@@ -26855,7 +26932,7 @@ import { motion as motion7 } from "framer-motion";
|
|
|
26855
26932
|
|
|
26856
26933
|
// src/components/SuperDrawer/useSuperDrawer.tsx
|
|
26857
26934
|
import { useMemo as useMemo55 } from "react";
|
|
26858
|
-
import { jsx as
|
|
26935
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
26859
26936
|
function useSuperDrawer() {
|
|
26860
26937
|
const {
|
|
26861
26938
|
drawerContentStack: contentStack,
|
|
@@ -26867,7 +26944,7 @@ function useSuperDrawer() {
|
|
|
26867
26944
|
function canCloseDrawerDetails(i, doChange) {
|
|
26868
26945
|
for (const canCloseDrawerDetail of canCloseDetailsChecks.current[i] ?? []) {
|
|
26869
26946
|
if (!canClose(canCloseDrawerDetail)) {
|
|
26870
|
-
openModal({ content: /* @__PURE__ */
|
|
26947
|
+
openModal({ content: /* @__PURE__ */ jsx220(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
|
|
26871
26948
|
return false;
|
|
26872
26949
|
}
|
|
26873
26950
|
}
|
|
@@ -26887,7 +26964,7 @@ function useSuperDrawer() {
|
|
|
26887
26964
|
for (const canCloseDrawer of canCloseChecks.current) {
|
|
26888
26965
|
if (!canClose(canCloseDrawer)) {
|
|
26889
26966
|
openModal({
|
|
26890
|
-
content: /* @__PURE__ */
|
|
26967
|
+
content: /* @__PURE__ */ jsx220(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
|
|
26891
26968
|
});
|
|
26892
26969
|
return;
|
|
26893
26970
|
}
|
|
@@ -26982,8 +27059,8 @@ function canClose(canCloseCheck) {
|
|
|
26982
27059
|
}
|
|
26983
27060
|
|
|
26984
27061
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
26985
|
-
import { trussProps as
|
|
26986
|
-
import { Fragment as Fragment49, jsx as
|
|
27062
|
+
import { trussProps as trussProps128, mergeProps as mergeProps34 } from "@homebound/truss/runtime";
|
|
27063
|
+
import { Fragment as Fragment49, jsx as jsx221, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
26987
27064
|
var SuperDrawerContent = ({
|
|
26988
27065
|
children,
|
|
26989
27066
|
banner,
|
|
@@ -27004,20 +27081,20 @@ var SuperDrawerContent = ({
|
|
|
27004
27081
|
} = firstContent ?? {};
|
|
27005
27082
|
function wrapWithMotionAndMaybeBack(children2) {
|
|
27006
27083
|
if (kind === "open") {
|
|
27007
|
-
return /* @__PURE__ */
|
|
27008
|
-
banner && /* @__PURE__ */
|
|
27084
|
+
return /* @__PURE__ */ jsxs113(motion7.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: [
|
|
27085
|
+
banner && /* @__PURE__ */ jsx221("div", { className: "ml_neg3 mr_neg3 mt_neg3 mb3", children: banner }),
|
|
27009
27086
|
children2
|
|
27010
27087
|
] }, "content");
|
|
27011
27088
|
} else if (kind === "detail") {
|
|
27012
|
-
return /* @__PURE__ */
|
|
27089
|
+
return /* @__PURE__ */ jsxs113(motion7.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
|
|
27013
27090
|
overflow: "auto"
|
|
27014
27091
|
}, transition: {
|
|
27015
27092
|
overflow: {
|
|
27016
27093
|
delay: 0.3
|
|
27017
27094
|
}
|
|
27018
27095
|
}, children: [
|
|
27019
|
-
/* @__PURE__ */
|
|
27020
|
-
/* @__PURE__ */
|
|
27096
|
+
/* @__PURE__ */ jsx221(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
|
|
27097
|
+
/* @__PURE__ */ jsx221(motion7.div, { initial: {
|
|
27021
27098
|
x: width2,
|
|
27022
27099
|
opacity: 0
|
|
27023
27100
|
}, animate: {
|
|
@@ -27035,7 +27112,7 @@ var SuperDrawerContent = ({
|
|
|
27035
27112
|
}, className: "pt2", children: children2 })
|
|
27036
27113
|
] }, "content");
|
|
27037
27114
|
} else {
|
|
27038
|
-
return /* @__PURE__ */
|
|
27115
|
+
return /* @__PURE__ */ jsx221(motion7.div, { ...mergeProps34(void 0, {
|
|
27039
27116
|
overflow: "auto"
|
|
27040
27117
|
}, {
|
|
27041
27118
|
paddingTop: "pt3",
|
|
@@ -27046,9 +27123,9 @@ var SuperDrawerContent = ({
|
|
|
27046
27123
|
}) }, "content");
|
|
27047
27124
|
}
|
|
27048
27125
|
}
|
|
27049
|
-
return /* @__PURE__ */
|
|
27126
|
+
return /* @__PURE__ */ jsxs113(Fragment49, { children: [
|
|
27050
27127
|
wrapWithMotionAndMaybeBack(children),
|
|
27051
|
-
actions && /* @__PURE__ */
|
|
27128
|
+
actions && /* @__PURE__ */ jsx221("footer", { ...trussProps128({
|
|
27052
27129
|
borderTopStyle: "bts_solid",
|
|
27053
27130
|
borderTopWidth: "btw_1px",
|
|
27054
27131
|
borderColor: ["bc_var", {
|
|
@@ -27061,7 +27138,7 @@ var SuperDrawerContent = ({
|
|
|
27061
27138
|
display: "df",
|
|
27062
27139
|
alignItems: "aic",
|
|
27063
27140
|
justifyContent: "jcfe"
|
|
27064
|
-
}), children: /* @__PURE__ */
|
|
27141
|
+
}), children: /* @__PURE__ */ jsx221("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ jsx221(Button, { ...buttonProps }, i)) }) })
|
|
27065
27142
|
] });
|
|
27066
27143
|
};
|
|
27067
27144
|
|
|
@@ -27121,15 +27198,15 @@ import { useEffect as useEffect38, useMemo as useMemo56, useRef as useRef66, use
|
|
|
27121
27198
|
import { mergeProps as mergeProps35, useFocusRing as useFocusRing20, useHover as useHover23 } from "react-aria";
|
|
27122
27199
|
import { matchPath } from "react-router";
|
|
27123
27200
|
import { Link as Link7, useLocation as useLocation2 } from "react-router-dom";
|
|
27124
|
-
import { trussProps as
|
|
27125
|
-
import { Fragment as Fragment50, jsx as
|
|
27201
|
+
import { trussProps as trussProps129, maybeCssVar as maybeCssVar61 } from "@homebound/truss/runtime";
|
|
27202
|
+
import { Fragment as Fragment50, jsx as jsx222, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
27126
27203
|
function TabsWithContent(props) {
|
|
27127
27204
|
const styles = hideTabs(props) ? {} : {
|
|
27128
27205
|
paddingTop: "pt3"
|
|
27129
27206
|
};
|
|
27130
|
-
return /* @__PURE__ */
|
|
27131
|
-
/* @__PURE__ */
|
|
27132
|
-
/* @__PURE__ */
|
|
27207
|
+
return /* @__PURE__ */ jsxs114(Fragment50, { children: [
|
|
27208
|
+
/* @__PURE__ */ jsx222(Tabs, { ...props }),
|
|
27209
|
+
/* @__PURE__ */ jsx222(TabContent, { ...props, contentXss: {
|
|
27133
27210
|
...styles,
|
|
27134
27211
|
...props.contentXss
|
|
27135
27212
|
} })
|
|
@@ -27154,7 +27231,7 @@ function TabContent(props) {
|
|
|
27154
27231
|
return (
|
|
27155
27232
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
27156
27233
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
27157
|
-
/* @__PURE__ */
|
|
27234
|
+
/* @__PURE__ */ jsx222(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ jsx222("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...trussProps129(contentXss), children: selectedTab.render() }) })
|
|
27158
27235
|
);
|
|
27159
27236
|
}
|
|
27160
27237
|
function Tabs(props) {
|
|
@@ -27196,7 +27273,7 @@ function Tabs(props) {
|
|
|
27196
27273
|
setActive(selected);
|
|
27197
27274
|
}
|
|
27198
27275
|
}
|
|
27199
|
-
return /* @__PURE__ */
|
|
27276
|
+
return /* @__PURE__ */ jsxs114("div", { ...trussProps129({
|
|
27200
27277
|
...{
|
|
27201
27278
|
display: "df",
|
|
27202
27279
|
alignItems: "aic",
|
|
@@ -27214,11 +27291,11 @@ function Tabs(props) {
|
|
|
27214
27291
|
}
|
|
27215
27292
|
} : {}
|
|
27216
27293
|
}), children: [
|
|
27217
|
-
!hideTabs(props) && /* @__PURE__ */
|
|
27294
|
+
!hideTabs(props) && /* @__PURE__ */ jsx222("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
|
|
27218
27295
|
const uniqueValue = uniqueTabValue(tab);
|
|
27219
|
-
return /* @__PURE__ */
|
|
27296
|
+
return /* @__PURE__ */ jsx222(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
|
|
27220
27297
|
}) }),
|
|
27221
|
-
right && /* @__PURE__ */
|
|
27298
|
+
right && /* @__PURE__ */ jsx222("div", { className: "mla df aic gap1 pb1", children: right })
|
|
27222
27299
|
] });
|
|
27223
27300
|
}
|
|
27224
27301
|
function TabImpl(props) {
|
|
@@ -27264,7 +27341,7 @@ function TabImpl(props) {
|
|
|
27264
27341
|
role: "tab",
|
|
27265
27342
|
tabIndex: active ? 0 : -1,
|
|
27266
27343
|
...others,
|
|
27267
|
-
...
|
|
27344
|
+
...trussProps129({
|
|
27268
27345
|
...baseStyles4,
|
|
27269
27346
|
// Only tints the label while the tab is unselected; selected keeps its own darker treatment.
|
|
27270
27347
|
...aiMode && aiStyles,
|
|
@@ -27282,18 +27359,18 @@ function TabImpl(props) {
|
|
|
27282
27359
|
onClick: () => onClick(tab.value)
|
|
27283
27360
|
}
|
|
27284
27361
|
});
|
|
27285
|
-
const decoration = aiMode ? /* @__PURE__ */
|
|
27286
|
-
const tabLabel = /* @__PURE__ */
|
|
27362
|
+
const decoration = aiMode ? /* @__PURE__ */ jsx222(AiBadge, {}) : icon ? /* @__PURE__ */ jsx222(Icon, { icon }) : endAdornment;
|
|
27363
|
+
const tabLabel = /* @__PURE__ */ jsxs114(Fragment50, { children: [
|
|
27287
27364
|
label,
|
|
27288
|
-
decoration && /* @__PURE__ */
|
|
27365
|
+
decoration && /* @__PURE__ */ jsx222("span", { className: "ml1 df aic", children: decoration })
|
|
27289
27366
|
] });
|
|
27290
27367
|
return isDisabled ? maybeTooltip({
|
|
27291
27368
|
title: resolveTooltip(disabled),
|
|
27292
27369
|
placement: "top",
|
|
27293
|
-
children: /* @__PURE__ */
|
|
27294
|
-
}) : isRouteTab(tab) ? /* @__PURE__ */
|
|
27370
|
+
children: /* @__PURE__ */ jsx222("div", { ...tabProps, children: tabLabel })
|
|
27371
|
+
}) : isRouteTab(tab) ? /* @__PURE__ */ jsx222(Link7, { ...mergeProps35(tabProps, interactiveProps, {
|
|
27295
27372
|
className: "navLink"
|
|
27296
|
-
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */
|
|
27373
|
+
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */ jsx222("button", { ...{
|
|
27297
27374
|
...tabProps,
|
|
27298
27375
|
...interactiveProps
|
|
27299
27376
|
}, children: tabLabel });
|
|
@@ -27304,7 +27381,7 @@ function getTabStyles() {
|
|
|
27304
27381
|
const borderBottomStyles = {
|
|
27305
27382
|
borderBottomStyle: "bbs_solid",
|
|
27306
27383
|
borderBottomWidth: ["borderBottomWidth_var", {
|
|
27307
|
-
"--borderBottomWidth":
|
|
27384
|
+
"--borderBottomWidth": maybeCssVar61(`${borderBottomWidthPx}px`)
|
|
27308
27385
|
}],
|
|
27309
27386
|
paddingBottom: ["pb_var", {
|
|
27310
27387
|
"--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
|
|
@@ -27357,7 +27434,7 @@ function getTabStyles() {
|
|
|
27357
27434
|
// The AI label tint is part of the brand ramp rather than a semantic token, same as the sparkle's gradient.
|
|
27358
27435
|
aiStyles: {
|
|
27359
27436
|
color: ["color_var", {
|
|
27360
|
-
"--color":
|
|
27437
|
+
"--color": maybeCssVar61("rgba(109, 40, 217, 1)" /* Purple700 */)
|
|
27361
27438
|
}]
|
|
27362
27439
|
},
|
|
27363
27440
|
focusRingStyles: {
|
|
@@ -27407,7 +27484,7 @@ function hideTabs(props) {
|
|
|
27407
27484
|
}
|
|
27408
27485
|
|
|
27409
27486
|
// src/components/TagGroup.tsx
|
|
27410
|
-
import { jsx as
|
|
27487
|
+
import { jsx as jsx223, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
27411
27488
|
function TagGroup(props) {
|
|
27412
27489
|
const {
|
|
27413
27490
|
tags,
|
|
@@ -27415,9 +27492,9 @@ function TagGroup(props) {
|
|
|
27415
27492
|
...otherProps
|
|
27416
27493
|
} = props;
|
|
27417
27494
|
const tid = useTestIds(otherProps, "tagGroup");
|
|
27418
|
-
return /* @__PURE__ */
|
|
27419
|
-
tags.map((tag) => /* @__PURE__ */
|
|
27420
|
-
onEdit && /* @__PURE__ */
|
|
27495
|
+
return /* @__PURE__ */ jsxs115("div", { ...tid, className: "df aic fww gap1", children: [
|
|
27496
|
+
tags.map((tag) => /* @__PURE__ */ jsx223(Tag, { ...tag, variant: "secondary" }, tag.text)),
|
|
27497
|
+
onEdit && /* @__PURE__ */ jsx223("span", { className: "ml1 fw4 fz_14px lh_20px", children: /* @__PURE__ */ jsx223(Button, { label: "Edit", variant: "text", onClick: onEdit, ...tid.edit }) })
|
|
27421
27498
|
] });
|
|
27422
27499
|
}
|
|
27423
27500
|
|
|
@@ -27430,15 +27507,15 @@ function useToast() {
|
|
|
27430
27507
|
}
|
|
27431
27508
|
|
|
27432
27509
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
27433
|
-
import { trussProps as
|
|
27434
|
-
import { jsx as
|
|
27510
|
+
import { trussProps as trussProps130, mergeProps as mergeProps36, maybeCssVar as maybeCssVar62 } from "@homebound/truss/runtime";
|
|
27511
|
+
import { jsx as jsx224, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
27435
27512
|
var __maybeInc28 = (inc) => {
|
|
27436
27513
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
27437
27514
|
};
|
|
27438
27515
|
function SideNavLayout(props) {
|
|
27439
27516
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
27440
|
-
if (hasProvider) return /* @__PURE__ */
|
|
27441
|
-
return /* @__PURE__ */
|
|
27517
|
+
if (hasProvider) return /* @__PURE__ */ jsx224(SideNavLayoutContent, { ...props });
|
|
27518
|
+
return /* @__PURE__ */ jsx224(SideNavLayoutProvider, { children: /* @__PURE__ */ jsx224(SideNavLayoutContent, { ...props }) });
|
|
27442
27519
|
}
|
|
27443
27520
|
function SideNavLayoutContent(props) {
|
|
27444
27521
|
const {
|
|
@@ -27461,7 +27538,7 @@ function SideNavLayoutContent(props) {
|
|
|
27461
27538
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
27462
27539
|
const navTop = bannerAndNavbarChromeTop();
|
|
27463
27540
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
27464
|
-
const rail = showRail && /* @__PURE__ */
|
|
27541
|
+
const rail = showRail && /* @__PURE__ */ jsxs116("div", { ...trussProps130({
|
|
27465
27542
|
...{
|
|
27466
27543
|
display: "df",
|
|
27467
27544
|
flexDirection: "fdc",
|
|
@@ -27485,14 +27562,14 @@ function SideNavLayoutContent(props) {
|
|
|
27485
27562
|
position: "sticky",
|
|
27486
27563
|
left: "left0",
|
|
27487
27564
|
zIndex: ["z_var", {
|
|
27488
|
-
"--zIndex":
|
|
27565
|
+
"--zIndex": maybeCssVar62(zIndices.sideNav)
|
|
27489
27566
|
}],
|
|
27490
27567
|
top: ["top_var", {
|
|
27491
|
-
"--top":
|
|
27568
|
+
"--top": maybeCssVar62(__maybeInc28(navTop))
|
|
27492
27569
|
}],
|
|
27493
27570
|
alignSelf: "asfs",
|
|
27494
27571
|
height: ["h_var", {
|
|
27495
|
-
"--height":
|
|
27572
|
+
"--height": maybeCssVar62(__maybeInc28(railViewportHeight))
|
|
27496
27573
|
}],
|
|
27497
27574
|
width: ["w_var", {
|
|
27498
27575
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -27502,11 +27579,11 @@ function SideNavLayoutContent(props) {
|
|
|
27502
27579
|
position: "fixed",
|
|
27503
27580
|
left: "left0",
|
|
27504
27581
|
top: ["top_var", {
|
|
27505
|
-
"--top":
|
|
27582
|
+
"--top": maybeCssVar62(__maybeInc28(navTop))
|
|
27506
27583
|
}],
|
|
27507
27584
|
bottom: "bottom0",
|
|
27508
27585
|
zIndex: ["z_var", {
|
|
27509
|
-
"--zIndex":
|
|
27586
|
+
"--zIndex": maybeCssVar62(zIndices.sideNav)
|
|
27510
27587
|
}]
|
|
27511
27588
|
},
|
|
27512
27589
|
...collapsed ? {
|
|
@@ -27518,18 +27595,18 @@ function SideNavLayoutContent(props) {
|
|
|
27518
27595
|
}
|
|
27519
27596
|
}
|
|
27520
27597
|
}), ...tid.sideNav, children: [
|
|
27521
|
-
showCollapseToggle && /* @__PURE__ */
|
|
27522
|
-
/* @__PURE__ */
|
|
27598
|
+
showCollapseToggle && /* @__PURE__ */ jsx224("div", { className: "absolute right2 top2 z2", children: /* @__PURE__ */ jsx224(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
|
|
27599
|
+
/* @__PURE__ */ jsx224("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ jsx224(SideNav, { ...sideNav }) })
|
|
27523
27600
|
] });
|
|
27524
|
-
return /* @__PURE__ */
|
|
27601
|
+
return /* @__PURE__ */ jsx224(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs116("div", { ...mergeProps36(void 0, {
|
|
27525
27602
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
27526
27603
|
}, {
|
|
27527
27604
|
display: "df",
|
|
27528
27605
|
flexDirection: "fdr",
|
|
27529
27606
|
width: "w100"
|
|
27530
27607
|
}), ...tid, children: [
|
|
27531
|
-
contrastRail ? /* @__PURE__ */
|
|
27532
|
-
/* @__PURE__ */
|
|
27608
|
+
contrastRail ? /* @__PURE__ */ jsx224(ContrastScope, { children: rail }) : rail,
|
|
27609
|
+
/* @__PURE__ */ jsx224("div", { ...trussProps130({
|
|
27533
27610
|
display: "df",
|
|
27534
27611
|
flexDirection: "fdc",
|
|
27535
27612
|
flexGrow: "fg1",
|
|
@@ -27545,8 +27622,8 @@ function SideNavLayoutContent(props) {
|
|
|
27545
27622
|
}
|
|
27546
27623
|
|
|
27547
27624
|
// src/layouts/CenteredLayout/CenteredLayout.tsx
|
|
27548
|
-
import { mergeProps as mergeProps37, maybeCssVar as
|
|
27549
|
-
import { jsx as
|
|
27625
|
+
import { mergeProps as mergeProps37, maybeCssVar as maybeCssVar63 } from "@homebound/truss/runtime";
|
|
27626
|
+
import { jsx as jsx225 } from "react/jsx-runtime";
|
|
27550
27627
|
var __maybeInc29 = (inc) => {
|
|
27551
27628
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
27552
27629
|
};
|
|
@@ -27559,7 +27636,7 @@ function CenteredLayout(props) {
|
|
|
27559
27636
|
const {
|
|
27560
27637
|
mdAndUp
|
|
27561
27638
|
} = useBreakpoint();
|
|
27562
|
-
return /* @__PURE__ */
|
|
27639
|
+
return /* @__PURE__ */ jsx225("div", { ...mergeProps37(void 0, {
|
|
27563
27640
|
// layoutContainer descendants (e.g. ContentHeader) read this to inset sticky horizontal chrome within the shell padding.
|
|
27564
27641
|
[beamLayoutContentPaddingXVar]: mdAndUp ? mdAndUpContentPaddingX : smContentPaddingX
|
|
27565
27642
|
}, {
|
|
@@ -27587,16 +27664,16 @@ var smContentPaddingX = "12px";
|
|
|
27587
27664
|
var mdAndUpContentPaddingX = pageContentPaddingXValue;
|
|
27588
27665
|
var centeredPaddingX = {
|
|
27589
27666
|
paddingLeft: ["px_var mdandup_pl3", {
|
|
27590
|
-
"--paddingLeft":
|
|
27667
|
+
"--paddingLeft": maybeCssVar63(__maybeInc29(smContentPaddingX))
|
|
27591
27668
|
}],
|
|
27592
27669
|
paddingRight: ["px_var mdandup_pr3", {
|
|
27593
|
-
"--paddingRight":
|
|
27670
|
+
"--paddingRight": maybeCssVar63(__maybeInc29(smContentPaddingX))
|
|
27594
27671
|
}]
|
|
27595
27672
|
};
|
|
27596
27673
|
|
|
27597
27674
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
27598
|
-
import { trussProps as
|
|
27599
|
-
import { jsx as
|
|
27675
|
+
import { trussProps as trussProps131, mergeProps as mergeProps38, maybeCssVar as maybeCssVar64 } from "@homebound/truss/runtime";
|
|
27676
|
+
import { jsx as jsx226, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
27600
27677
|
var __maybeInc30 = (inc) => {
|
|
27601
27678
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
27602
27679
|
};
|
|
@@ -27612,35 +27689,35 @@ function EnvironmentBannerLayout(props) {
|
|
|
27612
27689
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
27613
27690
|
};
|
|
27614
27691
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
27615
|
-
return /* @__PURE__ */
|
|
27692
|
+
return /* @__PURE__ */ jsx226(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx226(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ jsxs117("div", { ...mergeProps38(void 0, style, {
|
|
27616
27693
|
display: "df",
|
|
27617
27694
|
flexDirection: "fdc",
|
|
27618
27695
|
width: "wfc",
|
|
27619
27696
|
minWidth: "mw100"
|
|
27620
27697
|
}), ...tid, children: [
|
|
27621
|
-
showBanner && environmentBanner && /* @__PURE__ */
|
|
27698
|
+
showBanner && environmentBanner && /* @__PURE__ */ jsx226("div", { ...mergeProps38(void 0, {
|
|
27622
27699
|
height: environmentBannerSizePx
|
|
27623
27700
|
}, {
|
|
27624
27701
|
flexShrink: "fs0",
|
|
27625
27702
|
width: "w100"
|
|
27626
|
-
}), children: /* @__PURE__ */
|
|
27703
|
+
}), children: /* @__PURE__ */ jsx226("div", { ...trussProps131({
|
|
27627
27704
|
position: "fixed",
|
|
27628
27705
|
top: "top0",
|
|
27629
27706
|
left: "left0",
|
|
27630
27707
|
zIndex: ["z_var", {
|
|
27631
|
-
"--zIndex":
|
|
27708
|
+
"--zIndex": maybeCssVar64(zIndices.environmentBanner)
|
|
27632
27709
|
}],
|
|
27633
27710
|
width: ["w_var", {
|
|
27634
|
-
"--width":
|
|
27711
|
+
"--width": maybeCssVar64(__maybeInc30(innerWidth))
|
|
27635
27712
|
}]
|
|
27636
|
-
}), ...tid.bannerSticky, children: /* @__PURE__ */
|
|
27713
|
+
}), ...tid.bannerSticky, children: /* @__PURE__ */ jsx226(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
27637
27714
|
children
|
|
27638
27715
|
] }) }) });
|
|
27639
27716
|
}
|
|
27640
27717
|
|
|
27641
27718
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
27642
|
-
import { trussProps as
|
|
27643
|
-
import { jsx as
|
|
27719
|
+
import { trussProps as trussProps132 } from "@homebound/truss/runtime";
|
|
27720
|
+
import { jsx as jsx227, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
27644
27721
|
function FormSectionLayout(props) {
|
|
27645
27722
|
const {
|
|
27646
27723
|
title,
|
|
@@ -27652,7 +27729,7 @@ function FormSectionLayout(props) {
|
|
|
27652
27729
|
aiMode = false
|
|
27653
27730
|
} = props;
|
|
27654
27731
|
const tid = useTestIds(props, "formSectionLayout");
|
|
27655
|
-
const content = /* @__PURE__ */
|
|
27732
|
+
const content = /* @__PURE__ */ jsxs118("div", { ...trussProps132({
|
|
27656
27733
|
display: "df",
|
|
27657
27734
|
flexDirection: "fdc",
|
|
27658
27735
|
gap: "gap8",
|
|
@@ -27663,18 +27740,18 @@ function FormSectionLayout(props) {
|
|
|
27663
27740
|
paddingLeft: "pl3"
|
|
27664
27741
|
} : {}
|
|
27665
27742
|
}), children: [
|
|
27666
|
-
/* @__PURE__ */
|
|
27667
|
-
/* @__PURE__ */
|
|
27743
|
+
/* @__PURE__ */ jsxs118("div", { className: "df fdc gap3", children: [
|
|
27744
|
+
/* @__PURE__ */ jsx227(ContentHeader, { ...tid, title, description, actions, withAutoSave, level: 2, aiMode }),
|
|
27668
27745
|
initialFields
|
|
27669
27746
|
] }),
|
|
27670
|
-
sections && /* @__PURE__ */
|
|
27747
|
+
sections && /* @__PURE__ */ jsx227("div", { className: "df fdc gap8", children: sections.map((section, i) => /* @__PURE__ */ jsx227(FormSection, { ...section }, defaultTestId(section.title) || i)) })
|
|
27671
27748
|
] });
|
|
27672
|
-
return /* @__PURE__ */
|
|
27749
|
+
return /* @__PURE__ */ jsx227(CenteredLayout, { size: "sm", children: aiMode ? /* @__PURE__ */ jsx227(AiCard, { size: "lg", ...tid, children: content }) : content });
|
|
27673
27750
|
}
|
|
27674
27751
|
|
|
27675
27752
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
27676
27753
|
import { useMemo as useMemo57, useRef as useRef68 } from "react";
|
|
27677
|
-
import { mergeProps as mergeProps39, maybeCssVar as
|
|
27754
|
+
import { mergeProps as mergeProps39, maybeCssVar as maybeCssVar65 } from "@homebound/truss/runtime";
|
|
27678
27755
|
|
|
27679
27756
|
// src/layouts/useAutoHideOnScroll.ts
|
|
27680
27757
|
import { useLayoutEffect as useLayoutEffect11, useRef as useRef67, useState as useState60 } from "react";
|
|
@@ -27785,17 +27862,17 @@ function useMeasuredHeight(ref, enabled) {
|
|
|
27785
27862
|
|
|
27786
27863
|
// src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
|
|
27787
27864
|
import { createContext as createContext16, useContext as useContext28 } from "react";
|
|
27788
|
-
import { jsx as
|
|
27865
|
+
import { jsx as jsx228 } from "react/jsx-runtime";
|
|
27789
27866
|
var NavbarLayoutHeightContext = createContext16(0);
|
|
27790
27867
|
function NavbarLayoutHeightProvider({ value, children }) {
|
|
27791
|
-
return /* @__PURE__ */
|
|
27868
|
+
return /* @__PURE__ */ jsx228(NavbarLayoutHeightContext.Provider, { value, children });
|
|
27792
27869
|
}
|
|
27793
27870
|
function useNavbarLayoutHeight() {
|
|
27794
27871
|
return useContext28(NavbarLayoutHeightContext);
|
|
27795
27872
|
}
|
|
27796
27873
|
|
|
27797
27874
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
27798
|
-
import { jsx as
|
|
27875
|
+
import { jsx as jsx229, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
27799
27876
|
var __maybeInc31 = (inc) => {
|
|
27800
27877
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
27801
27878
|
};
|
|
@@ -27824,10 +27901,10 @@ function NavbarLayout(props) {
|
|
|
27824
27901
|
position: "sticky",
|
|
27825
27902
|
left: "left0",
|
|
27826
27903
|
zIndex: ["z_var", {
|
|
27827
|
-
"--zIndex":
|
|
27904
|
+
"--zIndex": maybeCssVar65(zIndices.navbar)
|
|
27828
27905
|
}],
|
|
27829
27906
|
width: ["w_var", {
|
|
27830
|
-
"--width":
|
|
27907
|
+
"--width": maybeCssVar65(__maybeInc31(innerWidth))
|
|
27831
27908
|
}]
|
|
27832
27909
|
}
|
|
27833
27910
|
) : (
|
|
@@ -27836,10 +27913,10 @@ function NavbarLayout(props) {
|
|
|
27836
27913
|
position: "fixed",
|
|
27837
27914
|
left: "left0",
|
|
27838
27915
|
zIndex: ["z_var", {
|
|
27839
|
-
"--zIndex":
|
|
27916
|
+
"--zIndex": maybeCssVar65(zIndices.navbar)
|
|
27840
27917
|
}],
|
|
27841
27918
|
width: ["w_var", {
|
|
27842
|
-
"--width":
|
|
27919
|
+
"--width": maybeCssVar65(__maybeInc31(innerWidth))
|
|
27843
27920
|
}],
|
|
27844
27921
|
transition: "transitionTop"
|
|
27845
27922
|
}
|
|
@@ -27848,20 +27925,20 @@ function NavbarLayout(props) {
|
|
|
27848
27925
|
const innerStyle = autoHideState !== "static" ? {
|
|
27849
27926
|
top: autoHideState === "revealed" ? bannerTop : `calc(${bannerTop} - ${navHeight}px)`
|
|
27850
27927
|
} : void 0;
|
|
27851
|
-
const navbarEl = useMemo57(() => /* @__PURE__ */
|
|
27852
|
-
return /* @__PURE__ */
|
|
27928
|
+
const navbarEl = useMemo57(() => /* @__PURE__ */ jsx229(Navbar, { ...navbar }), [navbar]);
|
|
27929
|
+
return /* @__PURE__ */ jsx229(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx229(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ jsx229(MobileSubNavProvider, { children: /* @__PURE__ */ jsxs119("div", { ...mergeProps39(void 0, cssVars, {
|
|
27853
27930
|
display: "df",
|
|
27854
27931
|
flexDirection: "fdc",
|
|
27855
27932
|
width: "wfc",
|
|
27856
27933
|
minWidth: "mw100"
|
|
27857
27934
|
}), ...tid, children: [
|
|
27858
|
-
/* @__PURE__ */
|
|
27935
|
+
/* @__PURE__ */ jsx229("div", { ref: spacerRef, ...mergeProps39(void 0, {
|
|
27859
27936
|
height: navHeight
|
|
27860
27937
|
}, {
|
|
27861
27938
|
flexShrink: "fs0",
|
|
27862
27939
|
width: "w100"
|
|
27863
|
-
}), children: /* @__PURE__ */
|
|
27864
|
-
/* @__PURE__ */
|
|
27940
|
+
}), children: /* @__PURE__ */ jsx229("div", { ref: navMetricsRef, ...mergeProps39(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
27941
|
+
/* @__PURE__ */ jsx229("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
27865
27942
|
] }) }) }) });
|
|
27866
27943
|
}
|
|
27867
27944
|
|
|
@@ -27869,8 +27946,8 @@ function NavbarLayout(props) {
|
|
|
27869
27946
|
import { useCallback as useCallback41, useMemo as useMemo58, useRef as useRef69 } from "react";
|
|
27870
27947
|
|
|
27871
27948
|
// src/components/Headers/BaseHeader.tsx
|
|
27872
|
-
import { trussProps as
|
|
27873
|
-
import { jsx as
|
|
27949
|
+
import { trussProps as trussProps133 } from "@homebound/truss/runtime";
|
|
27950
|
+
import { jsx as jsx230, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
27874
27951
|
function BaseHeader(props) {
|
|
27875
27952
|
const {
|
|
27876
27953
|
title,
|
|
@@ -27882,7 +27959,7 @@ function BaseHeader(props) {
|
|
|
27882
27959
|
} = props;
|
|
27883
27960
|
const tid = useTestIds(otherProps, "header");
|
|
27884
27961
|
useDocumentTitle(title, documentTitleSuffix);
|
|
27885
|
-
return /* @__PURE__ */
|
|
27962
|
+
return /* @__PURE__ */ jsxs120("header", { ...tid, ...trussProps133({
|
|
27886
27963
|
display: "df",
|
|
27887
27964
|
flexDirection: "fdc",
|
|
27888
27965
|
paddingTop: "pt3",
|
|
@@ -27896,7 +27973,7 @@ function BaseHeader(props) {
|
|
|
27896
27973
|
"--backgroundColor": "var(--b-surface)"
|
|
27897
27974
|
}]
|
|
27898
27975
|
}), children: [
|
|
27899
|
-
/* @__PURE__ */
|
|
27976
|
+
/* @__PURE__ */ jsxs120("div", { ...trussProps133({
|
|
27900
27977
|
...{
|
|
27901
27978
|
display: "df",
|
|
27902
27979
|
justifyContent: "jcsb",
|
|
@@ -27910,9 +27987,9 @@ function BaseHeader(props) {
|
|
|
27910
27987
|
} : {}
|
|
27911
27988
|
}
|
|
27912
27989
|
}), children: [
|
|
27913
|
-
/* @__PURE__ */
|
|
27914
|
-
breadcrumbs && /* @__PURE__ */
|
|
27915
|
-
/* @__PURE__ */
|
|
27990
|
+
/* @__PURE__ */ jsxs120("div", { className: "mw0", children: [
|
|
27991
|
+
breadcrumbs && /* @__PURE__ */ jsx230(Breadcrumbs, { ...breadcrumbs }),
|
|
27992
|
+
/* @__PURE__ */ jsx230("h1", { ...tid.title, ...trussProps133({
|
|
27916
27993
|
fontWeight: "fw6",
|
|
27917
27994
|
fontSize: "fz_20px",
|
|
27918
27995
|
lineHeight: "lh_28px",
|
|
@@ -27921,22 +27998,22 @@ function BaseHeader(props) {
|
|
|
27921
27998
|
}]
|
|
27922
27999
|
}), children: title })
|
|
27923
28000
|
] }),
|
|
27924
|
-
/* @__PURE__ */
|
|
28001
|
+
/* @__PURE__ */ jsx230("div", { className: "fs0", children: rightSlot })
|
|
27925
28002
|
] }),
|
|
27926
28003
|
bottomSlot
|
|
27927
28004
|
] });
|
|
27928
28005
|
}
|
|
27929
28006
|
|
|
27930
28007
|
// src/components/Headers/PageHeader.tsx
|
|
27931
|
-
import { trussProps as
|
|
27932
|
-
import { jsx as
|
|
28008
|
+
import { trussProps as trussProps134 } from "@homebound/truss/runtime";
|
|
28009
|
+
import { jsx as jsx231 } from "react/jsx-runtime";
|
|
27933
28010
|
function PageHeader2(props) {
|
|
27934
28011
|
const {
|
|
27935
28012
|
tabs,
|
|
27936
28013
|
...otherProps
|
|
27937
28014
|
} = props;
|
|
27938
28015
|
const tid = useTestIds(otherProps, "header");
|
|
27939
|
-
return /* @__PURE__ */
|
|
28016
|
+
return /* @__PURE__ */ jsx231(BaseHeader, { ...otherProps, bottomSlot: tabs && /* @__PURE__ */ jsx231("div", { ...trussProps134(pageContentPaddingX), children: /* @__PURE__ */ jsx231(Tabs, { ...tabs, ...tid.tabs }) }) });
|
|
27940
28017
|
}
|
|
27941
28018
|
|
|
27942
28019
|
// src/layouts/useBannerAndNavbarHeight.ts
|
|
@@ -27945,8 +28022,8 @@ function useBannerAndNavbarHeight() {
|
|
|
27945
28022
|
}
|
|
27946
28023
|
|
|
27947
28024
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
27948
|
-
import { mergeProps as mergeProps40, maybeCssVar as
|
|
27949
|
-
import { jsx as
|
|
28025
|
+
import { mergeProps as mergeProps40, maybeCssVar as maybeCssVar66 } from "@homebound/truss/runtime";
|
|
28026
|
+
import { jsx as jsx232, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
27950
28027
|
var __maybeInc32 = (inc) => {
|
|
27951
28028
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
27952
28029
|
};
|
|
@@ -27977,49 +28054,49 @@ function PageHeaderLayout(props) {
|
|
|
27977
28054
|
const innerCss = autoHideState === "static" ? {
|
|
27978
28055
|
position: "sticky",
|
|
27979
28056
|
left: ["left_var", {
|
|
27980
|
-
"--left":
|
|
28057
|
+
"--left": maybeCssVar66(__maybeInc32(headerLeft))
|
|
27981
28058
|
}],
|
|
27982
28059
|
width: ["w_var", {
|
|
27983
|
-
"--width":
|
|
28060
|
+
"--width": maybeCssVar66(__maybeInc32(headerWidth))
|
|
27984
28061
|
}],
|
|
27985
28062
|
zIndex: ["z_var", {
|
|
27986
|
-
"--zIndex":
|
|
28063
|
+
"--zIndex": maybeCssVar66(zIndices.pageStickyHeader)
|
|
27987
28064
|
}]
|
|
27988
28065
|
} : {
|
|
27989
28066
|
position: "fixed",
|
|
27990
28067
|
left: ["left_var", {
|
|
27991
|
-
"--left":
|
|
28068
|
+
"--left": maybeCssVar66(__maybeInc32(headerLeft))
|
|
27992
28069
|
}],
|
|
27993
28070
|
width: ["w_var", {
|
|
27994
|
-
"--width":
|
|
28071
|
+
"--width": maybeCssVar66(__maybeInc32(headerWidth))
|
|
27995
28072
|
}],
|
|
27996
28073
|
zIndex: ["z_var", {
|
|
27997
|
-
"--zIndex":
|
|
28074
|
+
"--zIndex": maybeCssVar66(zIndices.pageStickyHeader)
|
|
27998
28075
|
}],
|
|
27999
28076
|
transition: "transitionTop"
|
|
28000
28077
|
};
|
|
28001
28078
|
const innerStyle = autoHideState !== "static" ? {
|
|
28002
28079
|
top: autoHideState === "revealed" ? outerTop : `calc(${outerTop} - ${headerHeight}px)`
|
|
28003
28080
|
} : void 0;
|
|
28004
|
-
const pageHeaderEl = useMemo58(() => /* @__PURE__ */
|
|
28005
|
-
return /* @__PURE__ */
|
|
28081
|
+
const pageHeaderEl = useMemo58(() => /* @__PURE__ */ jsx232(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
28082
|
+
return /* @__PURE__ */ jsx232(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs121("div", { ...mergeProps40(void 0, cssVars, {
|
|
28006
28083
|
display: "df",
|
|
28007
28084
|
flexDirection: "fdc",
|
|
28008
28085
|
width: "w100"
|
|
28009
28086
|
}), ...tid, children: [
|
|
28010
|
-
/* @__PURE__ */
|
|
28087
|
+
/* @__PURE__ */ jsx232("div", { ref: spacerRef, ...mergeProps40(void 0, {
|
|
28011
28088
|
height: headerHeight
|
|
28012
28089
|
}, {
|
|
28013
28090
|
flexShrink: "fs0",
|
|
28014
28091
|
width: "w100"
|
|
28015
|
-
}), children: /* @__PURE__ */
|
|
28016
|
-
/* @__PURE__ */
|
|
28092
|
+
}), children: /* @__PURE__ */ jsx232("div", { ref: headerMetricsRef, ...mergeProps40(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
28093
|
+
/* @__PURE__ */ jsx232("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
|
|
28017
28094
|
] }) });
|
|
28018
28095
|
}
|
|
28019
28096
|
|
|
28020
28097
|
// src/layouts/Workflow/JumpLinksRail.tsx
|
|
28021
|
-
import { trussProps as
|
|
28022
|
-
import { jsx as
|
|
28098
|
+
import { trussProps as trussProps135, maybeCssVar as maybeCssVar67 } from "@homebound/truss/runtime";
|
|
28099
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
28023
28100
|
var __maybeInc33 = (inc) => {
|
|
28024
28101
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
28025
28102
|
};
|
|
@@ -28030,7 +28107,7 @@ function JumpLinksRail(props) {
|
|
|
28030
28107
|
activeId
|
|
28031
28108
|
} = props;
|
|
28032
28109
|
const tid = useTestIds(props, "jumpLinks");
|
|
28033
|
-
return /* @__PURE__ */
|
|
28110
|
+
return /* @__PURE__ */ jsx233("nav", { ...trussProps135({
|
|
28034
28111
|
display: "df",
|
|
28035
28112
|
flexDirection: "fdc",
|
|
28036
28113
|
flexShrink: "fs0",
|
|
@@ -28040,9 +28117,9 @@ function JumpLinksRail(props) {
|
|
|
28040
28117
|
position: "sticky",
|
|
28041
28118
|
alignSelf: "asfs",
|
|
28042
28119
|
top: ["top_var", {
|
|
28043
|
-
"--top":
|
|
28120
|
+
"--top": maybeCssVar67(__maybeInc33(stickyNavAndHeaderOffset()))
|
|
28044
28121
|
}]
|
|
28045
|
-
}), ...tid, children: links.map((link) => /* @__PURE__ */
|
|
28122
|
+
}), ...tid, children: links.map((link) => /* @__PURE__ */ jsx233(JumpLink, { label: link.label, href: `#${link.id}`, active: link.id === activeId, ...tid.link }, link.id)) });
|
|
28046
28123
|
}
|
|
28047
28124
|
|
|
28048
28125
|
// src/layouts/Workflow/useActiveJumpLink.ts
|
|
@@ -28078,15 +28155,15 @@ function useActiveJumpLink(sectionIds) {
|
|
|
28078
28155
|
import { useLayoutEffect as useLayoutEffect14, useRef as useRef71 } from "react";
|
|
28079
28156
|
|
|
28080
28157
|
// src/components/Headers/WorkflowHeader.tsx
|
|
28081
|
-
import { jsx as
|
|
28158
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
28082
28159
|
function WorkflowHeader(props) {
|
|
28083
28160
|
const { stepperTabs, ...otherProps } = props;
|
|
28084
28161
|
const tid = useTestIds(otherProps, "header");
|
|
28085
|
-
return /* @__PURE__ */
|
|
28162
|
+
return /* @__PURE__ */ jsx234(
|
|
28086
28163
|
BaseHeader,
|
|
28087
28164
|
{
|
|
28088
28165
|
...otherProps,
|
|
28089
|
-
bottomSlot: stepperTabs ? /* @__PURE__ */
|
|
28166
|
+
bottomSlot: stepperTabs ? /* @__PURE__ */ jsx234(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) : void 0
|
|
28090
28167
|
}
|
|
28091
28168
|
);
|
|
28092
28169
|
}
|
|
@@ -28094,7 +28171,7 @@ function WorkflowHeader(props) {
|
|
|
28094
28171
|
// src/layouts/Workflow/useUnsavedChangesGuard.tsx
|
|
28095
28172
|
import { useEffect as useEffect39, useRef as useRef70 } from "react";
|
|
28096
28173
|
import { useBlocker } from "react-router-dom";
|
|
28097
|
-
import { jsx as
|
|
28174
|
+
import { jsx as jsx235 } from "react/jsx-runtime";
|
|
28098
28175
|
function useUnsavedChangesGuard(options) {
|
|
28099
28176
|
const { isDirty, onCancel } = options;
|
|
28100
28177
|
const { openModal } = useModal();
|
|
@@ -28117,7 +28194,7 @@ function useUnsavedChangesGuard(options) {
|
|
|
28117
28194
|
}
|
|
28118
28195
|
openModal({
|
|
28119
28196
|
allowClosing: false,
|
|
28120
|
-
content: /* @__PURE__ */
|
|
28197
|
+
content: /* @__PURE__ */ jsx235(ConfirmCloseModal, { onClose: () => onCancel(e) })
|
|
28121
28198
|
});
|
|
28122
28199
|
};
|
|
28123
28200
|
const navigationBlocker = blocker.state === "blocked" ? { proceed: () => blocker.proceed?.(), cancelNavigation: () => blocker.reset?.() } : void 0;
|
|
@@ -28129,7 +28206,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
28129
28206
|
useEffect39(() => {
|
|
28130
28207
|
openModal({
|
|
28131
28208
|
allowClosing: false,
|
|
28132
|
-
content: /* @__PURE__ */
|
|
28209
|
+
content: /* @__PURE__ */ jsx235(ConfirmCloseModal, { title: "Leave page?", onClose: proceed, onContinue: cancelNavigation })
|
|
28133
28210
|
});
|
|
28134
28211
|
return () => closeModal();
|
|
28135
28212
|
}, []);
|
|
@@ -28137,7 +28214,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
28137
28214
|
}
|
|
28138
28215
|
|
|
28139
28216
|
// src/layouts/Workflow/WorkflowActions.tsx
|
|
28140
|
-
import { jsx as
|
|
28217
|
+
import { jsx as jsx236, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
28141
28218
|
function WorkflowActions(props) {
|
|
28142
28219
|
const {
|
|
28143
28220
|
onCancel,
|
|
@@ -28155,12 +28232,12 @@ function WorkflowActions(props) {
|
|
|
28155
28232
|
sm: isMobile
|
|
28156
28233
|
} = useBreakpoint();
|
|
28157
28234
|
const primaryVariant = aiMode ? "ai" : "primary";
|
|
28158
|
-
return /* @__PURE__ */
|
|
28159
|
-
/* @__PURE__ */
|
|
28160
|
-
/* @__PURE__ */
|
|
28161
|
-
/* @__PURE__ */
|
|
28162
|
-
onSaveAndExit && /* @__PURE__ */
|
|
28163
|
-
isLastStep ? /* @__PURE__ */
|
|
28235
|
+
return /* @__PURE__ */ jsxs122("div", { className: "df aic jcsb sm_w100", children: [
|
|
28236
|
+
/* @__PURE__ */ jsx236("div", { className: "df aic", children: !isFirstStep && isMobile && onBack && /* @__PURE__ */ jsx236(IconButton, { icon: "arrowBack", label: "Back", onClick: onBack }) }),
|
|
28237
|
+
/* @__PURE__ */ jsxs122("div", { className: "df aic gap1", children: [
|
|
28238
|
+
/* @__PURE__ */ jsx236(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
|
|
28239
|
+
onSaveAndExit && /* @__PURE__ */ jsx236(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
|
|
28240
|
+
isLastStep ? /* @__PURE__ */ jsx236(Button, { label: completeLabel, variant: primaryVariant, onClick: onComplete, disabled: primaryDisabled }) : /* @__PURE__ */ jsx236(Button, { label: "Continue", variant: primaryVariant, onClick: async () => {
|
|
28164
28241
|
await onContinue?.();
|
|
28165
28242
|
}, disabled: primaryDisabled })
|
|
28166
28243
|
] })
|
|
@@ -28168,8 +28245,8 @@ function WorkflowActions(props) {
|
|
|
28168
28245
|
}
|
|
28169
28246
|
|
|
28170
28247
|
// src/layouts/Workflow/WorkflowPageLayout.tsx
|
|
28171
|
-
import { trussProps as
|
|
28172
|
-
import { jsx as
|
|
28248
|
+
import { trussProps as trussProps136, mergeProps as mergeProps41, maybeCssVar as maybeCssVar68 } from "@homebound/truss/runtime";
|
|
28249
|
+
import { jsx as jsx237, jsxs as jsxs123 } from "react/jsx-runtime";
|
|
28173
28250
|
var __maybeInc34 = (inc) => {
|
|
28174
28251
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
28175
28252
|
};
|
|
@@ -28197,7 +28274,7 @@ function WorkflowPageLayout(props) {
|
|
|
28197
28274
|
isDirty,
|
|
28198
28275
|
onCancel
|
|
28199
28276
|
});
|
|
28200
|
-
const actions = /* @__PURE__ */
|
|
28277
|
+
const actions = /* @__PURE__ */ jsx237(WorkflowActions, { ...actionProps, aiMode, onCancel: onCancelClick });
|
|
28201
28278
|
const headerMetricsRef = useRef71(null);
|
|
28202
28279
|
const headerHeight = useMeasuredHeight(headerMetricsRef, true);
|
|
28203
28280
|
const headerWidth = documentScrollChromeWidth();
|
|
@@ -28218,26 +28295,26 @@ function WorkflowPageLayout(props) {
|
|
|
28218
28295
|
}
|
|
28219
28296
|
};
|
|
28220
28297
|
}, [showFooter]);
|
|
28221
|
-
return /* @__PURE__ */
|
|
28222
|
-
/* @__PURE__ */
|
|
28298
|
+
return /* @__PURE__ */ jsxs123(DocumentScrollLayoutProvider, { children: [
|
|
28299
|
+
/* @__PURE__ */ jsxs123("div", { ...mergeProps41(void 0, cssVars, {
|
|
28223
28300
|
display: "df",
|
|
28224
28301
|
flexDirection: "fdc",
|
|
28225
28302
|
width: "w100"
|
|
28226
28303
|
}), ...tid, children: [
|
|
28227
|
-
/* @__PURE__ */
|
|
28304
|
+
/* @__PURE__ */ jsx237("div", { ref: headerMetricsRef, ...trussProps136({
|
|
28228
28305
|
position: "sticky",
|
|
28229
28306
|
left: "left0",
|
|
28230
28307
|
width: ["w_var", {
|
|
28231
|
-
"--width":
|
|
28308
|
+
"--width": maybeCssVar68(__maybeInc34(headerWidth))
|
|
28232
28309
|
}],
|
|
28233
28310
|
zIndex: ["z_var", {
|
|
28234
|
-
"--zIndex":
|
|
28311
|
+
"--zIndex": maybeCssVar68(zIndices.pageStickyHeader)
|
|
28235
28312
|
}],
|
|
28236
28313
|
top: ["top_var", {
|
|
28237
|
-
"--top":
|
|
28314
|
+
"--top": maybeCssVar68(__maybeInc34(outerTop))
|
|
28238
28315
|
}]
|
|
28239
|
-
}), ...tid.header, children: /* @__PURE__ */
|
|
28240
|
-
/* @__PURE__ */
|
|
28316
|
+
}), ...tid.header, children: /* @__PURE__ */ jsx237(WorkflowHeader, { title, documentTitleSuffix, breadcrumbs, rightSlot: isMobile ? void 0 : actions, stepperTabs }) }),
|
|
28317
|
+
/* @__PURE__ */ jsx237("div", { ...trussProps136({
|
|
28241
28318
|
...{
|
|
28242
28319
|
display: "df",
|
|
28243
28320
|
flexDirection: "fdc",
|
|
@@ -28249,28 +28326,28 @@ function WorkflowPageLayout(props) {
|
|
|
28249
28326
|
...aiMode && {
|
|
28250
28327
|
backgroundImage: "aiBackground",
|
|
28251
28328
|
minHeight: ["mh_var", {
|
|
28252
|
-
"--minHeight":
|
|
28329
|
+
"--minHeight": maybeCssVar68(documentScrollBodyMinHeight())
|
|
28253
28330
|
}]
|
|
28254
28331
|
}
|
|
28255
28332
|
}), ...tid.body, children }),
|
|
28256
|
-
showFooter && /* @__PURE__ */
|
|
28333
|
+
showFooter && /* @__PURE__ */ jsx237("div", { ...trussProps136({
|
|
28257
28334
|
flexShrink: "fs0",
|
|
28258
28335
|
width: "w100",
|
|
28259
28336
|
height: ["h_var", {
|
|
28260
28337
|
"--height": `${mobileFooterHeightPx}px`
|
|
28261
28338
|
}]
|
|
28262
|
-
}), children: /* @__PURE__ */
|
|
28339
|
+
}), children: /* @__PURE__ */ jsx237("div", { ...trussProps136({
|
|
28263
28340
|
...{
|
|
28264
28341
|
position: "fixed",
|
|
28265
28342
|
bottom: "bottom0",
|
|
28266
28343
|
width: ["w_var", {
|
|
28267
|
-
"--width":
|
|
28344
|
+
"--width": maybeCssVar68(__maybeInc34(headerWidth))
|
|
28268
28345
|
}],
|
|
28269
28346
|
height: ["h_var", {
|
|
28270
28347
|
"--height": `${mobileFooterHeightPx}px`
|
|
28271
28348
|
}],
|
|
28272
28349
|
zIndex: ["z_var", {
|
|
28273
|
-
"--zIndex":
|
|
28350
|
+
"--zIndex": maybeCssVar68(zIndices.pageStickyFooter)
|
|
28274
28351
|
}],
|
|
28275
28352
|
display: "df",
|
|
28276
28353
|
alignItems: "aic",
|
|
@@ -28288,12 +28365,12 @@ function WorkflowPageLayout(props) {
|
|
|
28288
28365
|
...pageContentPaddingX
|
|
28289
28366
|
}), ...tid.footer, children: actions }) })
|
|
28290
28367
|
] }),
|
|
28291
|
-
navigationBlocker && /* @__PURE__ */
|
|
28368
|
+
navigationBlocker && /* @__PURE__ */ jsx237(UnsavedChangesNavigationModal, { ...navigationBlocker })
|
|
28292
28369
|
] });
|
|
28293
28370
|
}
|
|
28294
28371
|
|
|
28295
28372
|
// src/layouts/Workflow/FocusedFormLayout.tsx
|
|
28296
|
-
import { jsx as
|
|
28373
|
+
import { jsx as jsx238, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
28297
28374
|
function FocusedFormLayout(props) {
|
|
28298
28375
|
const {
|
|
28299
28376
|
onCancel,
|
|
@@ -28320,15 +28397,15 @@ function FocusedFormLayout(props) {
|
|
|
28320
28397
|
});
|
|
28321
28398
|
const activeId = useActiveJumpLink(jumpLinks.map((link) => link.id));
|
|
28322
28399
|
const showRail = withJumpLinks && jumpLinks.length >= 2 && !isMobile;
|
|
28323
|
-
return /* @__PURE__ */
|
|
28324
|
-
showRail && /* @__PURE__ */
|
|
28325
|
-
/* @__PURE__ */
|
|
28400
|
+
return /* @__PURE__ */ jsx238(WorkflowPageLayout, { ...tid, ...headerProps, aiMode, isDirty, onCancel, onSaveAndExit, completeLabel, onComplete, primaryDisabled: !isValid, children: /* @__PURE__ */ jsxs124("div", { className: "df w100", children: [
|
|
28401
|
+
showRail && /* @__PURE__ */ jsx238(JumpLinksRail, { links: jumpLinks, activeId, ...tid.jumpLinks }),
|
|
28402
|
+
/* @__PURE__ */ jsx238("div", { className: "fg1 mw0 mb4", children: /* @__PURE__ */ jsx238(FormSectionLayout, { ...form, aiMode }) })
|
|
28326
28403
|
] }) });
|
|
28327
28404
|
}
|
|
28328
28405
|
|
|
28329
28406
|
// src/layouts/Workflow/StepperLayout.tsx
|
|
28330
28407
|
import { useState as useState63 } from "react";
|
|
28331
|
-
import { jsx as
|
|
28408
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
28332
28409
|
function StepperLayout(props) {
|
|
28333
28410
|
const { steps, defaultStep, onCancel, completeLabel, onComplete, onSaveAndExit, isDirty, aiMode, ...headerProps } = props;
|
|
28334
28411
|
const stepTabs = steps.map((step) => ({ ...step, value: defaultTestId(step.label) }));
|
|
@@ -28338,7 +28415,7 @@ function StepperLayout(props) {
|
|
|
28338
28415
|
const isFirstStep = currentIndex <= 0;
|
|
28339
28416
|
const isLastStep = currentIndex >= stepTabs.length - 1;
|
|
28340
28417
|
const activeStep = stepTabs[currentIndex];
|
|
28341
|
-
return /* @__PURE__ */
|
|
28418
|
+
return /* @__PURE__ */ jsx239(
|
|
28342
28419
|
WorkflowPageLayout,
|
|
28343
28420
|
{
|
|
28344
28421
|
...tid,
|
|
@@ -28482,6 +28559,7 @@ export {
|
|
|
28482
28559
|
Icon,
|
|
28483
28560
|
IconButton,
|
|
28484
28561
|
Icons,
|
|
28562
|
+
InlineFeedbackBanner,
|
|
28485
28563
|
JumpLink,
|
|
28486
28564
|
KEPT_GROUP,
|
|
28487
28565
|
Loader,
|