@homebound/beam 3.67.0 → 3.68.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +352 -308
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -3
- package/dist/index.d.ts +36 -3
- package/dist/index.js +302 -259
- package/dist/index.js.map +1 -1
- package/dist/truss.css +8 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -81,6 +81,7 @@ __export(index_exports, {
|
|
|
81
81
|
CollapseToggle: () => CollapseToggle,
|
|
82
82
|
CollapsedContext: () => CollapsedContext,
|
|
83
83
|
ConfirmCloseModal: () => ConfirmCloseModal,
|
|
84
|
+
ContentHeader: () => ContentHeader,
|
|
84
85
|
ContrastScope: () => ContrastScope,
|
|
85
86
|
Copy: () => Copy,
|
|
86
87
|
CountBadge: () => CountBadge,
|
|
@@ -24106,9 +24107,62 @@ function HbSpinnerProvider({
|
|
|
24106
24107
|
return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(HbLoadingSpinnerContext.Provider, { value: state, children });
|
|
24107
24108
|
}
|
|
24108
24109
|
|
|
24109
|
-
// src/components/
|
|
24110
|
-
var import_runtime110 = require("@homebound/truss/runtime");
|
|
24110
|
+
// src/components/Headers/HeaderActions.tsx
|
|
24111
24111
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
24112
|
+
function HeaderActions(props) {
|
|
24113
|
+
const {
|
|
24114
|
+
actions,
|
|
24115
|
+
...otherProps
|
|
24116
|
+
} = props;
|
|
24117
|
+
const tid = useTestIds(otherProps, "headerActions");
|
|
24118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: "df gap1 fs0", ...tid, children: actions.map((action) => action.kind === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(IconButton, { ...action, variant: "outline" }, action.icon) : /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(Button, { ...action }, `${action.label}`)) });
|
|
24119
|
+
}
|
|
24120
|
+
|
|
24121
|
+
// src/components/Headers/ContentHeader.tsx
|
|
24122
|
+
var import_runtime110 = require("@homebound/truss/runtime");
|
|
24123
|
+
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
24124
|
+
function ContentHeader(props) {
|
|
24125
|
+
const {
|
|
24126
|
+
title,
|
|
24127
|
+
description,
|
|
24128
|
+
actions
|
|
24129
|
+
} = props;
|
|
24130
|
+
const tid = useTestIds(props, "contentHeader");
|
|
24131
|
+
if (!title && !description && !actions) {
|
|
24132
|
+
return null;
|
|
24133
|
+
}
|
|
24134
|
+
const descriptionEl = description && /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("div", { ...(0, import_runtime110.trussProps)({
|
|
24135
|
+
fontWeight: "fw4",
|
|
24136
|
+
fontSize: "fz_14px",
|
|
24137
|
+
lineHeight: "lh_20px",
|
|
24138
|
+
color: ["color_var", {
|
|
24139
|
+
"--color": "var(--b-on-surface)"
|
|
24140
|
+
}]
|
|
24141
|
+
}), ...tid.description, children: description });
|
|
24142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("div", { ...(0, import_runtime110.trussProps)({
|
|
24143
|
+
display: "df",
|
|
24144
|
+
flexDirection: "fdc",
|
|
24145
|
+
gap: "gap_12px",
|
|
24146
|
+
width: "w_calc_var_beam_layout_viewport_width_100vw_var_beam_side_nav_layout_width_0px",
|
|
24147
|
+
left: "l_var_beam_side_nav_layout_width_0px",
|
|
24148
|
+
position: "sticky",
|
|
24149
|
+
paddingLeft: "pl_24px",
|
|
24150
|
+
paddingRight: "pr_24px",
|
|
24151
|
+
backgroundColor: ["bgColor_var", {
|
|
24152
|
+
"--backgroundColor": "var(--b-surface)"
|
|
24153
|
+
}]
|
|
24154
|
+
}), ...tid, children: [
|
|
24155
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("div", { className: "df aic jcsb mw0", children: [
|
|
24156
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("h2", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }) : descriptionEl,
|
|
24157
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(HeaderActions, { actions, ...tid.actions })
|
|
24158
|
+
] }),
|
|
24159
|
+
title && descriptionEl
|
|
24160
|
+
] });
|
|
24161
|
+
}
|
|
24162
|
+
|
|
24163
|
+
// src/components/HomeboundLogo.tsx
|
|
24164
|
+
var import_runtime111 = require("@homebound/truss/runtime");
|
|
24165
|
+
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
24112
24166
|
var __maybeInc20 = (inc) => {
|
|
24113
24167
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24114
24168
|
};
|
|
@@ -24118,24 +24172,24 @@ function HomeboundLogo(props) {
|
|
|
24118
24172
|
width: width2 = "auto",
|
|
24119
24173
|
height = "auto"
|
|
24120
24174
|
} = props;
|
|
24121
|
-
return /* @__PURE__ */ (0,
|
|
24175
|
+
return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...(0, import_runtime111.trussProps)({
|
|
24122
24176
|
fill: ["fill_var", {
|
|
24123
|
-
"--fill": (0,
|
|
24177
|
+
"--fill": (0, import_runtime111.maybeCssVar)(fill)
|
|
24124
24178
|
}],
|
|
24125
24179
|
width: ["w_var", {
|
|
24126
|
-
"--width": (0,
|
|
24180
|
+
"--width": (0, import_runtime111.maybeCssVar)(__maybeInc20(width2))
|
|
24127
24181
|
}],
|
|
24128
24182
|
height: ["h_var", {
|
|
24129
|
-
"--height": (0,
|
|
24183
|
+
"--height": (0, import_runtime111.maybeCssVar)(__maybeInc20(height))
|
|
24130
24184
|
}]
|
|
24131
|
-
}), children: /* @__PURE__ */ (0,
|
|
24185
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("path", { d: "M158.1,97.6H0.2L0,39.7L76.8,0l68,38.7l-3.1,5.3l-65-37L6.2,43.4l0.2,48h151.7V97.6z" }) });
|
|
24132
24186
|
}
|
|
24133
24187
|
|
|
24134
24188
|
// src/components/JumpLink.tsx
|
|
24135
24189
|
var import_react132 = require("react");
|
|
24136
24190
|
var import_react_aria59 = require("react-aria");
|
|
24137
|
-
var
|
|
24138
|
-
var
|
|
24191
|
+
var import_runtime112 = require("@homebound/truss/runtime");
|
|
24192
|
+
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
24139
24193
|
function JumpLink(props) {
|
|
24140
24194
|
const {
|
|
24141
24195
|
label,
|
|
@@ -24177,14 +24231,14 @@ function JumpLink(props) {
|
|
|
24177
24231
|
});
|
|
24178
24232
|
}
|
|
24179
24233
|
}
|
|
24180
|
-
return /* @__PURE__ */ (0,
|
|
24234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("a", { ref, ...(0, import_react_aria59.mergeProps)(linkProps, focusProps, hoverProps), ...tid, ...(0, import_runtime112.trussProps)({
|
|
24181
24235
|
...jumpLinkStyles.baseStyles,
|
|
24182
24236
|
...active && jumpLinkStyles.activeStyles,
|
|
24183
24237
|
...isHovered && !disabled && jumpLinkStyles.hoverStyles,
|
|
24184
24238
|
...isFocusVisible && jumpLinkStyles.focusStyles,
|
|
24185
24239
|
...disabled && jumpLinkStyles.disabledStyles,
|
|
24186
24240
|
...disabled && active && jumpLinkStyles.disabledActiveStyles
|
|
24187
|
-
}), children: /* @__PURE__ */ (0,
|
|
24241
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_2", children: label }) });
|
|
24188
24242
|
}
|
|
24189
24243
|
var jumpLinkStyles = {
|
|
24190
24244
|
baseStyles: {
|
|
@@ -24232,10 +24286,10 @@ var jumpLinkStyles = {
|
|
|
24232
24286
|
};
|
|
24233
24287
|
|
|
24234
24288
|
// src/components/MaxLines.tsx
|
|
24235
|
-
var
|
|
24289
|
+
var import_utils152 = require("@react-aria/utils");
|
|
24236
24290
|
var import_react133 = require("react");
|
|
24237
|
-
var
|
|
24238
|
-
var
|
|
24291
|
+
var import_runtime113 = require("@homebound/truss/runtime");
|
|
24292
|
+
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
24239
24293
|
function MaxLines({
|
|
24240
24294
|
maxLines,
|
|
24241
24295
|
children
|
|
@@ -24243,7 +24297,7 @@ function MaxLines({
|
|
|
24243
24297
|
const elRef = (0, import_react133.useRef)(null);
|
|
24244
24298
|
const [hasMore, setHasMore] = (0, import_react133.useState)(false);
|
|
24245
24299
|
const [expanded, setExpanded] = (0, import_react133.useState)(false);
|
|
24246
|
-
(0,
|
|
24300
|
+
(0, import_utils152.useLayoutEffect)(() => {
|
|
24247
24301
|
if (!elRef.current) return;
|
|
24248
24302
|
setHasMore(elRef.current.scrollHeight > elRef.current.clientHeight);
|
|
24249
24303
|
}, []);
|
|
@@ -24254,15 +24308,15 @@ function MaxLines({
|
|
|
24254
24308
|
if (!elRef.current) return;
|
|
24255
24309
|
!expanded && setHasMore(elRef.current.scrollHeight > elRef.current.clientHeight);
|
|
24256
24310
|
}, [expanded]);
|
|
24257
|
-
(0,
|
|
24311
|
+
(0, import_utils152.useResizeObserver)({
|
|
24258
24312
|
ref: elRef,
|
|
24259
24313
|
onResize
|
|
24260
24314
|
});
|
|
24261
|
-
return /* @__PURE__ */ (0,
|
|
24262
|
-
/* @__PURE__ */ (0,
|
|
24315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { children: [
|
|
24316
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { ref: elRef, ...(0, import_runtime113.trussProps)({
|
|
24263
24317
|
...!expanded ? {
|
|
24264
24318
|
WebkitLineClamp: ["lineClamp_var", {
|
|
24265
|
-
"--WebkitLineClamp": (0,
|
|
24319
|
+
"--WebkitLineClamp": (0, import_runtime113.maybeCssVar)(maxLines)
|
|
24266
24320
|
}],
|
|
24267
24321
|
overflow: "oh",
|
|
24268
24322
|
display: "d_negwebkit_box",
|
|
@@ -24270,7 +24324,7 @@ function MaxLines({
|
|
|
24270
24324
|
textOverflow: "to_ellipsis"
|
|
24271
24325
|
} : {}
|
|
24272
24326
|
}), children }),
|
|
24273
|
-
hasMore && /* @__PURE__ */ (0,
|
|
24327
|
+
hasMore && /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("button", { className: "db fw4 fz_14px lh_20px", onClick: () => setExpanded((prev) => !prev), children: expanded ? "Show Less" : "Show More" })
|
|
24274
24328
|
] });
|
|
24275
24329
|
}
|
|
24276
24330
|
|
|
@@ -24278,15 +24332,15 @@ function MaxLines({
|
|
|
24278
24332
|
var import_change_case8 = require("change-case");
|
|
24279
24333
|
|
|
24280
24334
|
// src/components/AppNav/AppNavGroup.tsx
|
|
24281
|
-
var
|
|
24335
|
+
var import_utils154 = require("@react-aria/utils");
|
|
24282
24336
|
var import_change_case7 = require("change-case");
|
|
24283
24337
|
var import_react136 = require("react");
|
|
24284
24338
|
|
|
24285
24339
|
// src/components/AppNav/AppNavGroupTrigger.tsx
|
|
24286
24340
|
var import_react134 = require("react");
|
|
24287
24341
|
var import_react_aria60 = require("react-aria");
|
|
24288
|
-
var
|
|
24289
|
-
var
|
|
24342
|
+
var import_runtime114 = require("@homebound/truss/runtime");
|
|
24343
|
+
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
24290
24344
|
function AppNavGroupTrigger(props) {
|
|
24291
24345
|
const {
|
|
24292
24346
|
label,
|
|
@@ -24318,11 +24372,11 @@ function AppNavGroupTrigger(props) {
|
|
|
24318
24372
|
hoverStyles: hoverStyles4,
|
|
24319
24373
|
pressedStyles: pressedStyles2
|
|
24320
24374
|
} = (0, import_react134.useMemo)(() => getNavLinkStyles("side"), []);
|
|
24321
|
-
return /* @__PURE__ */ (0,
|
|
24375
|
+
return /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)("button", { type: "button", ...(0, import_react_aria60.mergeProps)(buttonProps, focusProps, hoverProps, tid.trigger, {
|
|
24322
24376
|
ref,
|
|
24323
24377
|
"aria-expanded": expanded,
|
|
24324
24378
|
"aria-controls": navGroupId,
|
|
24325
|
-
...(0,
|
|
24379
|
+
...(0, import_runtime114.mergeProps)(navLink, void 0, {
|
|
24326
24380
|
...baseStyles4,
|
|
24327
24381
|
...isFocusVisible && focusRingStyles2,
|
|
24328
24382
|
...isHovered && hoverStyles4,
|
|
@@ -24336,7 +24390,7 @@ function AppNavGroupTrigger(props) {
|
|
|
24336
24390
|
})
|
|
24337
24391
|
}), children: [
|
|
24338
24392
|
label,
|
|
24339
|
-
/* @__PURE__ */ (0,
|
|
24393
|
+
/* @__PURE__ */ (0, import_jsx_runtime186.jsx)("div", { ...(0, import_runtime114.trussProps)({
|
|
24340
24394
|
...{
|
|
24341
24395
|
display: "df",
|
|
24342
24396
|
alignItems: "aic",
|
|
@@ -24346,7 +24400,7 @@ function AppNavGroupTrigger(props) {
|
|
|
24346
24400
|
...props.expanded ? {
|
|
24347
24401
|
transform: "transform_rotate_180deg"
|
|
24348
24402
|
} : {}
|
|
24349
|
-
}), children: /* @__PURE__ */ (0,
|
|
24403
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(Icon, { icon: "chevronDown" }) })
|
|
24350
24404
|
] });
|
|
24351
24405
|
}
|
|
24352
24406
|
|
|
@@ -24489,8 +24543,8 @@ function useAppNavGroupExpanded(linkGroup) {
|
|
|
24489
24543
|
}
|
|
24490
24544
|
|
|
24491
24545
|
// src/components/AppNav/AppNavGroup.tsx
|
|
24492
|
-
var
|
|
24493
|
-
var
|
|
24546
|
+
var import_runtime115 = require("@homebound/truss/runtime");
|
|
24547
|
+
var import_jsx_runtime187 = require("react/jsx-runtime");
|
|
24494
24548
|
var __maybeInc21 = (inc) => {
|
|
24495
24549
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24496
24550
|
};
|
|
@@ -24501,9 +24555,9 @@ function AppNavGroupView(props) {
|
|
|
24501
24555
|
} = props;
|
|
24502
24556
|
const tid = useTestIds(props, "linkGroup");
|
|
24503
24557
|
if (panelCollapsed) {
|
|
24504
|
-
return /* @__PURE__ */ (0,
|
|
24558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(import_jsx_runtime187.Fragment, { children: appNavLinkGroupLinks(linkGroup).map((link) => /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(NavLink, { variant: "side", ...link, iconOnly: !!link.icon, ...tid[`link_${(0, import_change_case7.camelCase)(link.label)}`] }, link.label)) });
|
|
24505
24559
|
}
|
|
24506
|
-
return /* @__PURE__ */ (0,
|
|
24560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AppNavGroupDisclosure, { ...props });
|
|
24507
24561
|
}
|
|
24508
24562
|
function AppNavGroupDisclosure(props) {
|
|
24509
24563
|
const {
|
|
@@ -24528,31 +24582,31 @@ function AppNavGroupDisclosure(props) {
|
|
|
24528
24582
|
setContentHeight(`${contentEl.scrollHeight}px`);
|
|
24529
24583
|
}
|
|
24530
24584
|
}, [expanded, contentEl]);
|
|
24531
|
-
(0,
|
|
24585
|
+
(0, import_utils154.useResizeObserver)({
|
|
24532
24586
|
ref: contentRef,
|
|
24533
24587
|
onResize
|
|
24534
24588
|
});
|
|
24535
|
-
return /* @__PURE__ */ (0,
|
|
24536
|
-
/* @__PURE__ */ (0,
|
|
24537
|
-
/* @__PURE__ */ (0,
|
|
24589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)("div", { className: "df fdc", ...tid, children: [
|
|
24590
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AppNavGroupTrigger, { label: linkGroup.label, navGroupId, expanded, active: linkGroupHasActiveLink(linkGroup), onClick: onToggle, ...tid }),
|
|
24591
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...(0, import_runtime115.trussProps)({
|
|
24538
24592
|
overflow: "oh",
|
|
24539
24593
|
transition: "transitionHeight",
|
|
24540
24594
|
height: ["h_var", {
|
|
24541
|
-
"--height": (0,
|
|
24595
|
+
"--height": (0, import_runtime115.maybeCssVar)(__maybeInc21(contentHeight))
|
|
24542
24596
|
}]
|
|
24543
24597
|
}), ...tid.panel, ...!expanded ? {
|
|
24544
24598
|
inert: "true"
|
|
24545
|
-
} : {}, children: /* @__PURE__ */ (0,
|
|
24599
|
+
} : {}, children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ref: setContentEl, className: "df fdc", children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(AppNavItems, { items: linkGroup.items, panelCollapsed: false, nested: true, ...tid }) }) })
|
|
24546
24600
|
] });
|
|
24547
24601
|
}
|
|
24548
24602
|
|
|
24549
24603
|
// src/components/AppNav/AppNavGroupMenu.tsx
|
|
24550
|
-
var
|
|
24604
|
+
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
24551
24605
|
function AppNavGroupMenu({
|
|
24552
24606
|
linkGroup,
|
|
24553
24607
|
...tid
|
|
24554
24608
|
}) {
|
|
24555
|
-
return /* @__PURE__ */ (0,
|
|
24609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
|
|
24556
24610
|
ButtonMenu,
|
|
24557
24611
|
{
|
|
24558
24612
|
trigger: {
|
|
@@ -24568,8 +24622,8 @@ function AppNavGroupMenu({
|
|
|
24568
24622
|
}
|
|
24569
24623
|
|
|
24570
24624
|
// src/components/AppNav/AppNavSectionView.tsx
|
|
24571
|
-
var
|
|
24572
|
-
var
|
|
24625
|
+
var import_runtime116 = require("@homebound/truss/runtime");
|
|
24626
|
+
var import_jsx_runtime189 = require("react/jsx-runtime");
|
|
24573
24627
|
function AppNavSectionView(props) {
|
|
24574
24628
|
const {
|
|
24575
24629
|
section,
|
|
@@ -24595,7 +24649,7 @@ function AppNavSectionView(props) {
|
|
|
24595
24649
|
"--borderColor": "var(--b-surface-separator)"
|
|
24596
24650
|
}]
|
|
24597
24651
|
};
|
|
24598
|
-
return /* @__PURE__ */ (0,
|
|
24652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("div", { ...(0, import_runtime116.trussProps)({
|
|
24599
24653
|
...{
|
|
24600
24654
|
display: "df",
|
|
24601
24655
|
flexDirection: "fdc",
|
|
@@ -24603,7 +24657,7 @@ function AppNavSectionView(props) {
|
|
|
24603
24657
|
},
|
|
24604
24658
|
...showDivider ? dividerStyles : {}
|
|
24605
24659
|
}), ...tid, children: [
|
|
24606
|
-
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ (0,
|
|
24660
|
+
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ (0, import_jsx_runtime189.jsx)("div", { ...(0, import_runtime116.trussProps)({
|
|
24607
24661
|
fontWeight: "fw6",
|
|
24608
24662
|
fontSize: "fz_10px",
|
|
24609
24663
|
lineHeight: "lh_14px",
|
|
@@ -24616,18 +24670,18 @@ function AppNavSectionView(props) {
|
|
|
24616
24670
|
paddingBottom: "pb1",
|
|
24617
24671
|
textTransform: "ttu"
|
|
24618
24672
|
}), ...tid.label, children: section.label }),
|
|
24619
|
-
/* @__PURE__ */ (0,
|
|
24673
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(AppNavItems, { ...scopeProps, items: section.items, variant, panelCollapsed, nested })
|
|
24620
24674
|
] });
|
|
24621
24675
|
}
|
|
24622
24676
|
|
|
24623
24677
|
// src/components/AppNav/AppNavItems.tsx
|
|
24624
|
-
var
|
|
24678
|
+
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
24625
24679
|
function AppNavItems(props) {
|
|
24626
24680
|
const { items, variant = "side", panelCollapsed = false, nested = false } = props;
|
|
24627
24681
|
const tid = useTestIds(props, "appNav");
|
|
24628
|
-
return /* @__PURE__ */ (0,
|
|
24682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_jsx_runtime190.Fragment, { children: items.map((item, idx) => {
|
|
24629
24683
|
if (isAppNavLink(item)) {
|
|
24630
|
-
return /* @__PURE__ */ (0,
|
|
24684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
|
|
24631
24685
|
NavLink,
|
|
24632
24686
|
{
|
|
24633
24687
|
variant,
|
|
@@ -24640,7 +24694,7 @@ function AppNavItems(props) {
|
|
|
24640
24694
|
);
|
|
24641
24695
|
}
|
|
24642
24696
|
if (isAppNavGroup(item)) {
|
|
24643
|
-
return variant === "global" ? /* @__PURE__ */ (0,
|
|
24697
|
+
return variant === "global" ? /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(AppNavGroupMenu, { linkGroup: item, ...tid.linkGroup }, appNavItemKey(item)) : /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
|
|
24644
24698
|
AppNavGroupView,
|
|
24645
24699
|
{
|
|
24646
24700
|
linkGroup: item,
|
|
@@ -24651,7 +24705,7 @@ function AppNavItems(props) {
|
|
|
24651
24705
|
);
|
|
24652
24706
|
}
|
|
24653
24707
|
if (isAppNavSection(item)) {
|
|
24654
|
-
return /* @__PURE__ */ (0,
|
|
24708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
|
|
24655
24709
|
AppNavSectionView,
|
|
24656
24710
|
{
|
|
24657
24711
|
section: item,
|
|
@@ -24677,18 +24731,18 @@ var import_react_router_dom7 = require("react-router-dom");
|
|
|
24677
24731
|
|
|
24678
24732
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayoutHeightContext.tsx
|
|
24679
24733
|
var import_react137 = require("react");
|
|
24680
|
-
var
|
|
24734
|
+
var import_jsx_runtime191 = require("react/jsx-runtime");
|
|
24681
24735
|
var EnvironmentBannerLayoutHeightContext = (0, import_react137.createContext)(0);
|
|
24682
24736
|
function EnvironmentBannerLayoutHeightProvider({ value, children }) {
|
|
24683
|
-
return /* @__PURE__ */ (0,
|
|
24737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(EnvironmentBannerLayoutHeightContext.Provider, { value, children });
|
|
24684
24738
|
}
|
|
24685
24739
|
function useEnvironmentBannerLayoutHeight() {
|
|
24686
24740
|
return (0, import_react137.useContext)(EnvironmentBannerLayoutHeightContext);
|
|
24687
24741
|
}
|
|
24688
24742
|
|
|
24689
24743
|
// src/components/Navbar/NavbarMobileMenu.tsx
|
|
24690
|
-
var
|
|
24691
|
-
var
|
|
24744
|
+
var import_runtime117 = require("@homebound/truss/runtime");
|
|
24745
|
+
var import_jsx_runtime192 = require("react/jsx-runtime");
|
|
24692
24746
|
function NavbarMobileMenu(props) {
|
|
24693
24747
|
const {
|
|
24694
24748
|
items
|
|
@@ -24706,11 +24760,11 @@ function NavbarMobileMenu(props) {
|
|
|
24706
24760
|
setIsOpen(false);
|
|
24707
24761
|
}, [pathname, search]);
|
|
24708
24762
|
const close = () => setIsOpen(false);
|
|
24709
|
-
return /* @__PURE__ */ (0,
|
|
24710
|
-
/* @__PURE__ */ (0,
|
|
24763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(import_jsx_runtime192.Fragment, { children: [
|
|
24764
|
+
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)(IconButton, { icon: isOpen ? "menuClose" : "menu", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: isOpen ? "Close navigation" : "Open navigation", onClick: () => setIsOpen((open) => !open), ...tid.mobileMenu }),
|
|
24711
24765
|
(0, import_react_dom6.createPortal)(
|
|
24712
24766
|
/* AnimatePresence keeps the drawer mounted through its slide/fade-out before unmounting.*/
|
|
24713
|
-
/* @__PURE__ */ (0,
|
|
24767
|
+
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)(import_framer_motion5.AnimatePresence, { children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(NavbarMobileDrawer, { items, onClose: close, tid }) }),
|
|
24714
24768
|
document.body
|
|
24715
24769
|
)
|
|
24716
24770
|
] });
|
|
@@ -24724,14 +24778,14 @@ function NavbarMobileDrawer({
|
|
|
24724
24778
|
const overlayTopStyle = {
|
|
24725
24779
|
top: bannerHeightPx
|
|
24726
24780
|
};
|
|
24727
|
-
return /* @__PURE__ */ (0,
|
|
24728
|
-
/* @__PURE__ */ (0,
|
|
24781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(import_jsx_runtime192.Fragment, { children: [
|
|
24782
|
+
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)(import_framer_motion5.motion.div, { ...(0, import_runtime117.mergeProps)(void 0, overlayTopStyle, {
|
|
24729
24783
|
position: "fixed",
|
|
24730
24784
|
right: "right0",
|
|
24731
24785
|
bottom: "bottom0",
|
|
24732
24786
|
left: "left0",
|
|
24733
24787
|
zIndex: ["z_var", {
|
|
24734
|
-
"--zIndex": (0,
|
|
24788
|
+
"--zIndex": (0, import_runtime117.maybeCssVar)(zIndices.navbarMobileMenuScrim)
|
|
24735
24789
|
}],
|
|
24736
24790
|
backgroundColor: ["bgColor_var", {
|
|
24737
24791
|
"--backgroundColor": "var(--b-scrim)"
|
|
@@ -24746,7 +24800,7 @@ function NavbarMobileDrawer({
|
|
|
24746
24800
|
ease: "linear",
|
|
24747
24801
|
duration: 0.2
|
|
24748
24802
|
}, onClick: onClose, ...tid.mobileMenuScrim }, "navbarMobileMenuScrim"),
|
|
24749
|
-
/* @__PURE__ */ (0,
|
|
24803
|
+
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)(import_react_aria61.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)(import_framer_motion5.motion.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...(0, import_runtime117.mergeProps)(void 0, overlayTopStyle, {
|
|
24750
24804
|
position: "fixed",
|
|
24751
24805
|
bottom: "bottom0",
|
|
24752
24806
|
left: "left0",
|
|
@@ -24756,7 +24810,7 @@ function NavbarMobileDrawer({
|
|
|
24756
24810
|
width: "w_260px",
|
|
24757
24811
|
overflow: "oh",
|
|
24758
24812
|
zIndex: ["z_var", {
|
|
24759
|
-
"--zIndex": (0,
|
|
24813
|
+
"--zIndex": (0, import_runtime117.maybeCssVar)(zIndices.navbarMobileMenu)
|
|
24760
24814
|
}],
|
|
24761
24815
|
backgroundColor: ["bgColor_var", {
|
|
24762
24816
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -24771,7 +24825,7 @@ function NavbarMobileDrawer({
|
|
|
24771
24825
|
ease: "linear",
|
|
24772
24826
|
duration: 0.2
|
|
24773
24827
|
}, onClick: (e) => e.stopPropagation(), ...tid.mobileMenuDrawer, children: [
|
|
24774
|
-
/* @__PURE__ */ (0,
|
|
24828
|
+
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)("div", { ...(0, import_runtime117.trussProps)({
|
|
24775
24829
|
...{
|
|
24776
24830
|
display: "df",
|
|
24777
24831
|
alignItems: "aic",
|
|
@@ -24786,11 +24840,11 @@ function NavbarMobileDrawer({
|
|
|
24786
24840
|
}]
|
|
24787
24841
|
},
|
|
24788
24842
|
...pageContentPaddingX
|
|
24789
|
-
}), children: /* @__PURE__ */ (0,
|
|
24790
|
-
/* @__PURE__ */ (0,
|
|
24843
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(IconButton, { icon: "x", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: "Close navigation", onClick: onClose, ...tid.mobileMenuClose }) }),
|
|
24844
|
+
/* @__PURE__ */ (0, import_jsx_runtime192.jsx)(
|
|
24791
24845
|
"nav",
|
|
24792
24846
|
{
|
|
24793
|
-
...(0,
|
|
24847
|
+
...(0, import_runtime117.trussProps)({
|
|
24794
24848
|
...{
|
|
24795
24849
|
flexGrow: "fg1",
|
|
24796
24850
|
overflowY: "oya",
|
|
@@ -24808,7 +24862,7 @@ function NavbarMobileDrawer({
|
|
|
24808
24862
|
}
|
|
24809
24863
|
},
|
|
24810
24864
|
...tid.mobileMenuPanel,
|
|
24811
|
-
children: /* @__PURE__ */ (0,
|
|
24865
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime192.jsx)(AppNavItems, { items, panelCollapsed: false, ...tid })
|
|
24812
24866
|
}
|
|
24813
24867
|
)
|
|
24814
24868
|
] }, "navbarMobileMenuDrawer") })
|
|
@@ -24816,8 +24870,8 @@ function NavbarMobileDrawer({
|
|
|
24816
24870
|
}
|
|
24817
24871
|
|
|
24818
24872
|
// src/components/Navbar/Navbar.tsx
|
|
24819
|
-
var
|
|
24820
|
-
var
|
|
24873
|
+
var import_runtime118 = require("@homebound/truss/runtime");
|
|
24874
|
+
var import_jsx_runtime193 = require("react/jsx-runtime");
|
|
24821
24875
|
function Navbar(props) {
|
|
24822
24876
|
const {
|
|
24823
24877
|
brand,
|
|
@@ -24836,7 +24890,7 @@ function Navbar(props) {
|
|
|
24836
24890
|
overflows
|
|
24837
24891
|
} = useContentOverflow(!sm);
|
|
24838
24892
|
const showMobile = sm || overflows;
|
|
24839
|
-
return /* @__PURE__ */ (0,
|
|
24893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(ContrastScope, { children: /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("nav", { ...(0, import_runtime118.trussProps)({
|
|
24840
24894
|
...{
|
|
24841
24895
|
backgroundColor: ["bgColor_var", {
|
|
24842
24896
|
"--backgroundColor": "var(--b-surface-raised)"
|
|
@@ -24852,10 +24906,10 @@ function Navbar(props) {
|
|
|
24852
24906
|
},
|
|
24853
24907
|
...headerContentPaddingX(showMobile)
|
|
24854
24908
|
}), ...tid, children: [
|
|
24855
|
-
/* @__PURE__ */ (0,
|
|
24856
|
-
/* @__PURE__ */ (0,
|
|
24857
|
-
showMobile && /* @__PURE__ */ (0,
|
|
24858
|
-
/* @__PURE__ */ (0,
|
|
24909
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { className: "df aic gap3 fg1 mw0", children: [
|
|
24910
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { className: "df aic fs0 gap2", children: [
|
|
24911
|
+
showMobile && /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(NavbarMobileMenu, { items, ...tid }),
|
|
24912
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0, import_runtime118.trussProps)({
|
|
24859
24913
|
flexShrink: "fs0",
|
|
24860
24914
|
...hideBrandOnMobile && showMobile ? {
|
|
24861
24915
|
display: "dn"
|
|
@@ -24864,7 +24918,7 @@ function Navbar(props) {
|
|
|
24864
24918
|
] }),
|
|
24865
24919
|
!sm && // Stays mounted while overflowing (hidden) so the items remain measurable and the bar
|
|
24866
24920
|
// can expand again as space frees up.
|
|
24867
|
-
/* @__PURE__ */ (0,
|
|
24921
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ref: containerRef, ...(0, import_runtime118.trussProps)({
|
|
24868
24922
|
display: "df",
|
|
24869
24923
|
alignItems: "aic",
|
|
24870
24924
|
flexGrow: "fg1",
|
|
@@ -24873,11 +24927,11 @@ function Navbar(props) {
|
|
|
24873
24927
|
...overflows ? {
|
|
24874
24928
|
visibility: "visibility_hidden"
|
|
24875
24929
|
} : {}
|
|
24876
|
-
}), ...tid.items, children: /* @__PURE__ */ (0,
|
|
24930
|
+
}), ...tid.items, children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ref: contentRef, className: "df aic gap2 width_max_content", children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(AppNavItems, { variant: "global", items, ...tid }) }) })
|
|
24877
24931
|
] }),
|
|
24878
|
-
/* @__PURE__ */ (0,
|
|
24879
|
-
rightSlot && /* @__PURE__ */ (0,
|
|
24880
|
-
user && /* @__PURE__ */ (0,
|
|
24932
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { className: "df aic gap1", children: [
|
|
24933
|
+
rightSlot && /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { className: "df aic gap1", ...tid.rightSlot, children: rightSlot }),
|
|
24934
|
+
user && /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(NavbarUserMenu, { user, ...tid.userMenu })
|
|
24881
24935
|
] })
|
|
24882
24936
|
] }) });
|
|
24883
24937
|
}
|
|
@@ -24885,7 +24939,7 @@ function NavbarUserMenu({
|
|
|
24885
24939
|
user,
|
|
24886
24940
|
...tid
|
|
24887
24941
|
}) {
|
|
24888
|
-
return /* @__PURE__ */ (0,
|
|
24942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { className: "df aic fs0 ml1", children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(ButtonMenu, { items: user.menuItems, persistentItems: user.persistentItems, trigger: {
|
|
24889
24943
|
src: user.picture,
|
|
24890
24944
|
name: user.name,
|
|
24891
24945
|
size: "sm",
|
|
@@ -24894,8 +24948,8 @@ function NavbarUserMenu({
|
|
|
24894
24948
|
}
|
|
24895
24949
|
|
|
24896
24950
|
// src/components/Pagination.tsx
|
|
24897
|
-
var
|
|
24898
|
-
var
|
|
24951
|
+
var import_runtime119 = require("@homebound/truss/runtime");
|
|
24952
|
+
var import_jsx_runtime194 = require("react/jsx-runtime");
|
|
24899
24953
|
var defaultPage = {
|
|
24900
24954
|
offset: 0,
|
|
24901
24955
|
limit: 100
|
|
@@ -24927,7 +24981,7 @@ function Pagination(props) {
|
|
|
24927
24981
|
}
|
|
24928
24982
|
}
|
|
24929
24983
|
const tid = useTestIds(props, "pagination");
|
|
24930
|
-
return /* @__PURE__ */ (0,
|
|
24984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)("div", { ...(0, import_runtime119.trussProps)({
|
|
24931
24985
|
display: "df",
|
|
24932
24986
|
borderColor: ["bc_var", {
|
|
24933
24987
|
"--borderColor": "var(--b-surface-separator)"
|
|
@@ -24944,24 +24998,24 @@ function Pagination(props) {
|
|
|
24944
24998
|
paddingRight: "pr2",
|
|
24945
24999
|
paddingTop: "pt2"
|
|
24946
25000
|
}), ...tid, children: [
|
|
24947
|
-
/* @__PURE__ */ (0,
|
|
24948
|
-
/* @__PURE__ */ (0,
|
|
25001
|
+
/* @__PURE__ */ (0, import_jsx_runtime194.jsx)("div", { className: "df mta mba mr2", ...tid.pageSizeLabel, children: "Page size:" }),
|
|
25002
|
+
/* @__PURE__ */ (0, import_jsx_runtime194.jsx)("div", { className: "w_78px", children: /* @__PURE__ */ (0, import_jsx_runtime194.jsx)(SelectField, { compact: true, label: "Page Size", labelStyle: "hidden", options: pageOptions, value: pageSize, onSelect: (val) => set({
|
|
24949
25003
|
pageNumber: 1,
|
|
24950
25004
|
pageSize: val
|
|
24951
25005
|
}), autoSort: false, ...tid.pageSize }) }),
|
|
24952
|
-
/* @__PURE__ */ (0,
|
|
24953
|
-
/* @__PURE__ */ (0,
|
|
25006
|
+
/* @__PURE__ */ (0, import_jsx_runtime194.jsxs)("div", { className: "mla mta mba df", children: [
|
|
25007
|
+
/* @__PURE__ */ (0, import_jsx_runtime194.jsxs)("div", { className: "df mta mba mr2", ...tid.pageInfoLabel, children: [
|
|
24954
25008
|
first,
|
|
24955
25009
|
" ",
|
|
24956
25010
|
showLast ? `- ${last}` : "",
|
|
24957
25011
|
" of ",
|
|
24958
25012
|
totalCount
|
|
24959
25013
|
] }),
|
|
24960
|
-
/* @__PURE__ */ (0,
|
|
25014
|
+
/* @__PURE__ */ (0, import_jsx_runtime194.jsx)(IconButton, { icon: "chevronLeft", color: hasPrevPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
|
|
24961
25015
|
pageNumber: pageNumber - 1,
|
|
24962
25016
|
pageSize
|
|
24963
25017
|
}), disabled: !hasPrevPage, ...tid.previousIcon }),
|
|
24964
|
-
/* @__PURE__ */ (0,
|
|
25018
|
+
/* @__PURE__ */ (0, import_jsx_runtime194.jsx)(IconButton, { icon: "chevronRight", color: hasNextPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
|
|
24965
25019
|
pageNumber: pageNumber + 1,
|
|
24966
25020
|
pageSize
|
|
24967
25021
|
}), disabled: !hasNextPage, ...tid.nextIcon })
|
|
@@ -24983,10 +25037,10 @@ function toPageNumberSize(page) {
|
|
|
24983
25037
|
}
|
|
24984
25038
|
|
|
24985
25039
|
// src/components/ScrollShadows.tsx
|
|
24986
|
-
var
|
|
25040
|
+
var import_utils161 = require("@react-aria/utils");
|
|
24987
25041
|
var import_react139 = require("react");
|
|
24988
|
-
var
|
|
24989
|
-
var
|
|
25042
|
+
var import_runtime120 = require("@homebound/truss/runtime");
|
|
25043
|
+
var import_jsx_runtime195 = require("react/jsx-runtime");
|
|
24990
25044
|
function ScrollShadows(props) {
|
|
24991
25045
|
const {
|
|
24992
25046
|
children,
|
|
@@ -25010,7 +25064,7 @@ function ScrollShadows(props) {
|
|
|
25010
25064
|
const commonStyles = {
|
|
25011
25065
|
position: "absolute",
|
|
25012
25066
|
zIndex: ["z_var", {
|
|
25013
|
-
"--zIndex": (0,
|
|
25067
|
+
"--zIndex": (0, import_runtime120.maybeCssVar)(zIndices.scrollShadow)
|
|
25014
25068
|
}],
|
|
25015
25069
|
pointerEvents: "pointerEvents_none"
|
|
25016
25070
|
};
|
|
@@ -25043,7 +25097,7 @@ function ScrollShadows(props) {
|
|
|
25043
25097
|
...startShadowStyles2,
|
|
25044
25098
|
...{
|
|
25045
25099
|
background: ["background_var", {
|
|
25046
|
-
"--background": (0,
|
|
25100
|
+
"--background": (0, import_runtime120.maybeCssVar)(startGradient)
|
|
25047
25101
|
}]
|
|
25048
25102
|
}
|
|
25049
25103
|
}, {
|
|
@@ -25051,7 +25105,7 @@ function ScrollShadows(props) {
|
|
|
25051
25105
|
...endShadowStyles2,
|
|
25052
25106
|
...{
|
|
25053
25107
|
background: ["background_var", {
|
|
25054
|
-
"--background": (0,
|
|
25108
|
+
"--background": (0, import_runtime120.maybeCssVar)(endGradient)
|
|
25055
25109
|
}]
|
|
25056
25110
|
}
|
|
25057
25111
|
}];
|
|
@@ -25072,14 +25126,14 @@ function ScrollShadows(props) {
|
|
|
25072
25126
|
setShowEndShadow(start + boxSize < end);
|
|
25073
25127
|
}, [horizontal]);
|
|
25074
25128
|
const onResize = (0, import_react139.useCallback)(() => scrollRef.current && updateScrollProps(scrollRef.current), [updateScrollProps]);
|
|
25075
|
-
(0,
|
|
25129
|
+
(0, import_utils161.useResizeObserver)({
|
|
25076
25130
|
ref: scrollRef,
|
|
25077
25131
|
onResize
|
|
25078
25132
|
});
|
|
25079
|
-
return /* @__PURE__ */ (0,
|
|
25133
|
+
return /* @__PURE__ */ (0, import_jsx_runtime195.jsxs)("div", { ...(0, import_runtime120.trussProps)({
|
|
25080
25134
|
display: "df",
|
|
25081
25135
|
flexDirection: ["fd_var", {
|
|
25082
|
-
"--flexDirection": (0,
|
|
25136
|
+
"--flexDirection": (0, import_runtime120.maybeCssVar)(!horizontal ? "column" : "row")
|
|
25083
25137
|
}],
|
|
25084
25138
|
position: "relative",
|
|
25085
25139
|
overflow: "oh",
|
|
@@ -25092,23 +25146,23 @@ function ScrollShadows(props) {
|
|
|
25092
25146
|
width: width2
|
|
25093
25147
|
}
|
|
25094
25148
|
}), ...tid, children: [
|
|
25095
|
-
/* @__PURE__ */ (0,
|
|
25149
|
+
/* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
|
|
25096
25150
|
...startShadowStyles,
|
|
25097
25151
|
...{
|
|
25098
25152
|
opacity: ["o_var", {
|
|
25099
|
-
"--opacity": (0,
|
|
25153
|
+
"--opacity": (0, import_runtime120.maybeCssVar)(showStartShadow ? 1 : 0)
|
|
25100
25154
|
}]
|
|
25101
25155
|
}
|
|
25102
25156
|
}), "data-chromatic": "ignore" }),
|
|
25103
|
-
/* @__PURE__ */ (0,
|
|
25157
|
+
/* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
|
|
25104
25158
|
...endShadowStyles,
|
|
25105
25159
|
...{
|
|
25106
25160
|
opacity: ["o_var", {
|
|
25107
|
-
"--opacity": (0,
|
|
25161
|
+
"--opacity": (0, import_runtime120.maybeCssVar)(showEndShadow ? 1 : 0)
|
|
25108
25162
|
}]
|
|
25109
25163
|
}
|
|
25110
25164
|
}), "data-chromatic": "ignore" }),
|
|
25111
|
-
/* @__PURE__ */ (0,
|
|
25165
|
+
/* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
|
|
25112
25166
|
...xss,
|
|
25113
25167
|
...{
|
|
25114
25168
|
overflow: "oa",
|
|
@@ -25121,7 +25175,7 @@ function ScrollShadows(props) {
|
|
|
25121
25175
|
|
|
25122
25176
|
// src/layouts/SideNavLayout/SideNavLayoutContext.tsx
|
|
25123
25177
|
var import_react140 = require("react");
|
|
25124
|
-
var
|
|
25178
|
+
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
25125
25179
|
var SIDE_NAV_LAYOUT_STATE_STORAGE_KEY = "beam.sideNavLayout.navState";
|
|
25126
25180
|
function loadStoredNavState() {
|
|
25127
25181
|
try {
|
|
@@ -25169,7 +25223,7 @@ function SideNavLayoutProvider(props) {
|
|
|
25169
25223
|
});
|
|
25170
25224
|
}, []);
|
|
25171
25225
|
const value = (0, import_react140.useMemo)(() => ({ navState, setNavState }), [navState, setNavState]);
|
|
25172
|
-
return /* @__PURE__ */ (0,
|
|
25226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(SideNavLayoutContext.Provider, { value, children: props.children });
|
|
25173
25227
|
}
|
|
25174
25228
|
function useSideNavLayoutContext() {
|
|
25175
25229
|
return (0, import_react140.useContext)(SideNavLayoutContext) ?? { navState: "expanded", setNavState: () => {
|
|
@@ -25180,8 +25234,8 @@ function useHasSideNavLayoutProvider() {
|
|
|
25180
25234
|
}
|
|
25181
25235
|
|
|
25182
25236
|
// src/components/SideNav/SideNav.tsx
|
|
25183
|
-
var
|
|
25184
|
-
var
|
|
25237
|
+
var import_runtime121 = require("@homebound/truss/runtime");
|
|
25238
|
+
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
25185
25239
|
function SideNav(props) {
|
|
25186
25240
|
const {
|
|
25187
25241
|
top,
|
|
@@ -25194,8 +25248,8 @@ function SideNav(props) {
|
|
|
25194
25248
|
const tid = useTestIds(props, "sideNav");
|
|
25195
25249
|
const panelCollapsed = navState === "collapse";
|
|
25196
25250
|
const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
|
|
25197
|
-
return /* @__PURE__ */ (0,
|
|
25198
|
-
top !== void 0 && /* @__PURE__ */ (0,
|
|
25251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)("nav", { className: "df fdc h100 fs0", ...tid, children: [
|
|
25252
|
+
top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("div", { ...(0, import_runtime121.trussProps)({
|
|
25199
25253
|
flexShrink: "fs0",
|
|
25200
25254
|
paddingLeft: "pl2",
|
|
25201
25255
|
paddingRight: "pr2",
|
|
@@ -25206,7 +25260,7 @@ function SideNav(props) {
|
|
|
25206
25260
|
paddingBottom: "pb4"
|
|
25207
25261
|
} : {}
|
|
25208
25262
|
}), ...tid.top, children: top }),
|
|
25209
|
-
/* @__PURE__ */ (0,
|
|
25263
|
+
/* @__PURE__ */ (0, import_jsx_runtime197.jsx)("div", { ...(0, import_runtime121.trussProps)({
|
|
25210
25264
|
flexGrow: "fg1",
|
|
25211
25265
|
overflowY: "oya",
|
|
25212
25266
|
display: "df",
|
|
@@ -25218,8 +25272,8 @@ function SideNav(props) {
|
|
|
25218
25272
|
...top === void 0 ? {
|
|
25219
25273
|
paddingTop: "pt5"
|
|
25220
25274
|
} : {}
|
|
25221
|
-
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0,
|
|
25222
|
-
footer !== void 0 && /* @__PURE__ */ (0,
|
|
25275
|
+
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(AppNavItems, { items, panelCollapsed }) }),
|
|
25276
|
+
footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("div", { ...(0, import_runtime121.trussProps)({
|
|
25223
25277
|
flexShrink: "fs0",
|
|
25224
25278
|
paddingLeft: "pl2",
|
|
25225
25279
|
paddingRight: "pr2",
|
|
@@ -25296,8 +25350,8 @@ var snackbarId = 1;
|
|
|
25296
25350
|
// src/components/Stepper.tsx
|
|
25297
25351
|
var import_react142 = require("react");
|
|
25298
25352
|
var import_react_aria62 = require("react-aria");
|
|
25299
|
-
var
|
|
25300
|
-
var
|
|
25353
|
+
var import_runtime122 = require("@homebound/truss/runtime");
|
|
25354
|
+
var import_jsx_runtime198 = require("react/jsx-runtime");
|
|
25301
25355
|
var import_react143 = require("react");
|
|
25302
25356
|
var __maybeInc22 = (inc) => {
|
|
25303
25357
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -25316,8 +25370,8 @@ function Stepper(props) {
|
|
|
25316
25370
|
const maxStepWidth = 200;
|
|
25317
25371
|
const minStepWidth = 100;
|
|
25318
25372
|
const gap = 8;
|
|
25319
|
-
return /* @__PURE__ */ (0,
|
|
25320
|
-
/* @__PURE__ */ (0,
|
|
25373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
25374
|
+
/* @__PURE__ */ (0, import_jsx_runtime198.jsx)("ol", { ...(0, import_runtime122.trussProps)({
|
|
25321
25375
|
padding: "p_0",
|
|
25322
25376
|
margin: "m_0",
|
|
25323
25377
|
listStyle: "lis_none",
|
|
@@ -25327,7 +25381,7 @@ function Stepper(props) {
|
|
|
25327
25381
|
}]
|
|
25328
25382
|
}), children: steps.map((step) => {
|
|
25329
25383
|
const isCurrent = currentStep === step.value;
|
|
25330
|
-
return /* @__PURE__ */ (0, import_react143.createElement)("li", { ...(0,
|
|
25384
|
+
return /* @__PURE__ */ (0, import_react143.createElement)("li", { ...(0, import_runtime122.trussProps)({
|
|
25331
25385
|
display: "df",
|
|
25332
25386
|
flexGrow: "fg1",
|
|
25333
25387
|
flexDirection: "fdc",
|
|
@@ -25337,9 +25391,9 @@ function Stepper(props) {
|
|
|
25337
25391
|
minWidth: ["mw_var", {
|
|
25338
25392
|
"--minWidth": `${minStepWidth}px`
|
|
25339
25393
|
}]
|
|
25340
|
-
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0,
|
|
25394
|
+
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
25341
25395
|
}) }),
|
|
25342
|
-
/* @__PURE__ */ (0,
|
|
25396
|
+
/* @__PURE__ */ (0, import_jsx_runtime198.jsx)("div", { ...(0, import_runtime122.trussProps)({
|
|
25343
25397
|
marginTop: "mt1",
|
|
25344
25398
|
backgroundColor: ["bgColor_var", {
|
|
25345
25399
|
"--backgroundColor": "var(--b-field-border-default)"
|
|
@@ -25352,14 +25406,14 @@ function Stepper(props) {
|
|
|
25352
25406
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
25353
25407
|
}],
|
|
25354
25408
|
width: "w100"
|
|
25355
|
-
}), children: /* @__PURE__ */ (0,
|
|
25409
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("div", { ...(0, import_runtime122.trussProps)({
|
|
25356
25410
|
backgroundColor: ["bgColor_var", {
|
|
25357
25411
|
"--backgroundColor": "var(--b-primary)"
|
|
25358
25412
|
}],
|
|
25359
25413
|
transition: "transition_width_200ms",
|
|
25360
25414
|
height: "h100",
|
|
25361
25415
|
width: ["w_var", {
|
|
25362
|
-
"--width": (0,
|
|
25416
|
+
"--width": (0, import_runtime122.maybeCssVar)(__maybeInc22(`${(lastCompletedStep + 1) / steps.length * 100}%`))
|
|
25363
25417
|
}]
|
|
25364
25418
|
}) }) })
|
|
25365
25419
|
] });
|
|
@@ -25395,7 +25449,7 @@ function StepButton(props) {
|
|
|
25395
25449
|
boxShadow: "bshFocus"
|
|
25396
25450
|
};
|
|
25397
25451
|
const tid = useTestIds(props, "stepButton");
|
|
25398
|
-
return /* @__PURE__ */ (0,
|
|
25452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime122.trussProps)({
|
|
25399
25453
|
...{
|
|
25400
25454
|
fontWeight: "fw6",
|
|
25401
25455
|
fontSize: "fz_14px",
|
|
@@ -25456,7 +25510,7 @@ function StepButton(props) {
|
|
|
25456
25510
|
} : {},
|
|
25457
25511
|
...isFocusVisible ? focusRingStyles2 : {}
|
|
25458
25512
|
}), ...tid[defaultTestId(label)], children: [
|
|
25459
|
-
/* @__PURE__ */ (0,
|
|
25513
|
+
/* @__PURE__ */ (0, import_jsx_runtime198.jsx)("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
|
|
25460
25514
|
label
|
|
25461
25515
|
] });
|
|
25462
25516
|
}
|
|
@@ -25467,12 +25521,12 @@ function StepIcon({
|
|
|
25467
25521
|
isCurrent = false
|
|
25468
25522
|
}) {
|
|
25469
25523
|
if (state === "error") {
|
|
25470
|
-
return /* @__PURE__ */ (0,
|
|
25524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(Icon, { icon: "errorCircle" });
|
|
25471
25525
|
}
|
|
25472
25526
|
if (state === "complete") {
|
|
25473
|
-
return /* @__PURE__ */ (0,
|
|
25527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(Icon, { icon: "check" });
|
|
25474
25528
|
}
|
|
25475
|
-
return /* @__PURE__ */ (0,
|
|
25529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("div", { ...(0, import_runtime122.trussProps)({
|
|
25476
25530
|
width: "w_10px",
|
|
25477
25531
|
height: "h_10px",
|
|
25478
25532
|
borderStyle: "bss",
|
|
@@ -25488,8 +25542,8 @@ function StepIcon({
|
|
|
25488
25542
|
// src/components/StepperTabs/StepperTab.tsx
|
|
25489
25543
|
var import_react144 = require("react");
|
|
25490
25544
|
var import_react_aria63 = require("react-aria");
|
|
25491
|
-
var
|
|
25492
|
-
var
|
|
25545
|
+
var import_runtime123 = require("@homebound/truss/runtime");
|
|
25546
|
+
var import_jsx_runtime199 = require("react/jsx-runtime");
|
|
25493
25547
|
function StepperTab(props) {
|
|
25494
25548
|
const {
|
|
25495
25549
|
label,
|
|
@@ -25520,7 +25574,7 @@ function StepperTab(props) {
|
|
|
25520
25574
|
const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
|
|
25521
25575
|
const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
|
|
25522
25576
|
const tid = useTestIds(props, "stepperTab");
|
|
25523
|
-
return /* @__PURE__ */ (0,
|
|
25577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime199.jsxs)("button", { ref, ...(0, import_react_aria63.mergeProps)(buttonProps, focusProps, hoverProps), "aria-label": label, ...(0, import_runtime123.trussProps)({
|
|
25524
25578
|
...stepperTabStyles.baseStyles,
|
|
25525
25579
|
...getStateStyles(active, completed),
|
|
25526
25580
|
...isHovered && !disabled ? stepperTabStyles.hoverStyles : {},
|
|
@@ -25528,9 +25582,9 @@ function StepperTab(props) {
|
|
|
25528
25582
|
...disabled ? stepperTabStyles.disabledStyles : {},
|
|
25529
25583
|
...isFocusVisible ? stepperTabStyles.focusRingStyles : {}
|
|
25530
25584
|
}), ...tid[defaultTestId(value)], children: [
|
|
25531
|
-
/* @__PURE__ */ (0,
|
|
25532
|
-
completed && /* @__PURE__ */ (0,
|
|
25533
|
-
/* @__PURE__ */ (0,
|
|
25585
|
+
/* @__PURE__ */ (0, import_jsx_runtime199.jsx)("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_1", children: label }),
|
|
25586
|
+
completed && /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("span", { className: "fs0 ml1", children: /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(Icon, { icon: "check", inc: 2.5, ...tid.check }) }),
|
|
25587
|
+
/* @__PURE__ */ (0, import_jsx_runtime199.jsx)(import_react_aria63.VisuallyHidden, { children: completed ? "Complete" : "Not Complete" })
|
|
25534
25588
|
] });
|
|
25535
25589
|
}
|
|
25536
25590
|
function withBorderBottom(color) {
|
|
@@ -25538,7 +25592,7 @@ function withBorderBottom(color) {
|
|
|
25538
25592
|
...{
|
|
25539
25593
|
borderBottomStyle: "bbs_solid",
|
|
25540
25594
|
borderBottomWidth: ["borderBottomWidth_var", {
|
|
25541
|
-
"--borderBottomWidth": (0,
|
|
25595
|
+
"--borderBottomWidth": (0, import_runtime123.maybeCssVar)(`3px`)
|
|
25542
25596
|
}]
|
|
25543
25597
|
},
|
|
25544
25598
|
...color
|
|
@@ -25612,8 +25666,8 @@ var stepperTabStyles = {
|
|
|
25612
25666
|
};
|
|
25613
25667
|
|
|
25614
25668
|
// src/components/StepperTabs/StepperTabs.tsx
|
|
25615
|
-
var
|
|
25616
|
-
var
|
|
25669
|
+
var import_runtime124 = require("@homebound/truss/runtime");
|
|
25670
|
+
var import_jsx_runtime200 = require("react/jsx-runtime");
|
|
25617
25671
|
var import_react145 = require("react");
|
|
25618
25672
|
function StepperTabs(props) {
|
|
25619
25673
|
const {
|
|
@@ -25628,7 +25682,7 @@ function StepperTabs(props) {
|
|
|
25628
25682
|
} = useBreakpoint();
|
|
25629
25683
|
const collapsed = isMobile || !!forceCollapsed;
|
|
25630
25684
|
const capWidth = steps.length <= 3;
|
|
25631
|
-
return /* @__PURE__ */ (0,
|
|
25685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("nav", { "aria-label": "steps", className: "w100", ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime200.jsx)("ol", { ...(0, import_runtime124.trussProps)({
|
|
25632
25686
|
padding: "p_0",
|
|
25633
25687
|
margin: "m_0",
|
|
25634
25688
|
listStyle: "lis_none",
|
|
@@ -25642,7 +25696,7 @@ function StepperTabs(props) {
|
|
|
25642
25696
|
borderColor: "bcGray400"
|
|
25643
25697
|
}), children: steps.map((step) => {
|
|
25644
25698
|
const isCurrent = step.value === currentStep;
|
|
25645
|
-
return /* @__PURE__ */ (0, import_react145.createElement)("li", { ...(0,
|
|
25699
|
+
return /* @__PURE__ */ (0, import_react145.createElement)("li", { ...(0, import_runtime124.trussProps)({
|
|
25646
25700
|
display: "df",
|
|
25647
25701
|
flexGrow: "fg1",
|
|
25648
25702
|
flexBasis: "fb_0",
|
|
@@ -25654,7 +25708,7 @@ function StepperTabs(props) {
|
|
|
25654
25708
|
"--maxWidth": `${maxStepWidthPx}px`
|
|
25655
25709
|
}]
|
|
25656
25710
|
} : {}
|
|
25657
|
-
}), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0,
|
|
25711
|
+
}), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(StepperTab, { label: step.label, value: step.value, active: isCurrent, completed: step.completed, disabled: step.disabled, collapsed, onClick: onChange, ...tid.tab }));
|
|
25658
25712
|
}) }) });
|
|
25659
25713
|
}
|
|
25660
25714
|
var maxStepWidthPx = 280;
|
|
@@ -25662,8 +25716,8 @@ var gapPx = 6;
|
|
|
25662
25716
|
|
|
25663
25717
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
25664
25718
|
var import_react_dom7 = require("react-dom");
|
|
25665
|
-
var
|
|
25666
|
-
var
|
|
25719
|
+
var import_runtime125 = require("@homebound/truss/runtime");
|
|
25720
|
+
var import_jsx_runtime201 = require("react/jsx-runtime");
|
|
25667
25721
|
function SuperDrawerHeader(props) {
|
|
25668
25722
|
const {
|
|
25669
25723
|
hideControls
|
|
@@ -25680,20 +25734,20 @@ function SuperDrawerHeader(props) {
|
|
|
25680
25734
|
const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
|
|
25681
25735
|
const isDetail = currentContent !== firstContent;
|
|
25682
25736
|
const tid = useTestIds({}, "superDrawerHeader");
|
|
25683
|
-
return (0, import_react_dom7.createPortal)(/* @__PURE__ */ (0,
|
|
25684
|
-
isStructuredProps(props) ? /* @__PURE__ */ (0,
|
|
25685
|
-
/* @__PURE__ */ (0,
|
|
25686
|
-
/* @__PURE__ */ (0,
|
|
25737
|
+
return (0, import_react_dom7.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime201.jsxs)("div", { className: "df aic jcsb gap3", ...tid, children: [
|
|
25738
|
+
isStructuredProps(props) ? /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)("div", { className: "df jcsb aic gap2 fg1", children: [
|
|
25739
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsxs)("div", { className: "fg1 df aic gap2", children: [
|
|
25740
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
|
|
25687
25741
|
props.left
|
|
25688
25742
|
] }),
|
|
25689
|
-
props.right && /* @__PURE__ */ (0,
|
|
25690
|
-
] }) : /* @__PURE__ */ (0,
|
|
25691
|
-
!hideControls && /* @__PURE__ */ (0,
|
|
25743
|
+
props.right && /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("div", { className: "fs0", children: props.right })
|
|
25744
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("div", { className: "fg1", children: props.children }),
|
|
25745
|
+
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("div", { ...(0, import_runtime125.trussProps)({
|
|
25692
25746
|
flexShrink: "fs0",
|
|
25693
25747
|
...isDetail ? {
|
|
25694
25748
|
visibility: "vh"
|
|
25695
25749
|
} : {}
|
|
25696
|
-
}), children: /* @__PURE__ */ (0,
|
|
25750
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(ButtonGroup, { buttons: [{
|
|
25697
25751
|
icon: "chevronLeft",
|
|
25698
25752
|
onClick: () => onPrevClick && onPrevClick(),
|
|
25699
25753
|
disabled: !onPrevClick
|
|
@@ -25709,18 +25763,18 @@ function isStructuredProps(props) {
|
|
|
25709
25763
|
}
|
|
25710
25764
|
|
|
25711
25765
|
// src/components/SuperDrawer/ConfirmCloseModal.tsx
|
|
25712
|
-
var
|
|
25766
|
+
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
25713
25767
|
function ConfirmCloseModal(props) {
|
|
25714
25768
|
const { onClose, discardText = "Discard Changes", continueText = "Continue Editing" } = props;
|
|
25715
25769
|
const { modalState } = useBeamContext();
|
|
25716
25770
|
function closeModal() {
|
|
25717
25771
|
modalState.current = void 0;
|
|
25718
25772
|
}
|
|
25719
|
-
return /* @__PURE__ */ (0,
|
|
25720
|
-
/* @__PURE__ */ (0,
|
|
25721
|
-
/* @__PURE__ */ (0,
|
|
25722
|
-
/* @__PURE__ */ (0,
|
|
25723
|
-
/* @__PURE__ */ (0,
|
|
25773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(import_jsx_runtime202.Fragment, { children: [
|
|
25774
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(ModalHeader, { children: "Are you sure you want to cancel?" }),
|
|
25775
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(ModalBody, { children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("p", { children: "Any changes you've made so far will be lost." }) }),
|
|
25776
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(ModalFooter, { children: [
|
|
25777
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
25724
25778
|
Button,
|
|
25725
25779
|
{
|
|
25726
25780
|
variant: "quaternary",
|
|
@@ -25731,7 +25785,7 @@ function ConfirmCloseModal(props) {
|
|
|
25731
25785
|
}
|
|
25732
25786
|
}
|
|
25733
25787
|
),
|
|
25734
|
-
/* @__PURE__ */ (0,
|
|
25788
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Button, { label: continueText, onClick: closeModal })
|
|
25735
25789
|
] })
|
|
25736
25790
|
] });
|
|
25737
25791
|
}
|
|
@@ -25741,7 +25795,7 @@ var import_framer_motion6 = require("framer-motion");
|
|
|
25741
25795
|
|
|
25742
25796
|
// src/components/SuperDrawer/useSuperDrawer.tsx
|
|
25743
25797
|
var import_react146 = require("react");
|
|
25744
|
-
var
|
|
25798
|
+
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
25745
25799
|
function useSuperDrawer() {
|
|
25746
25800
|
const {
|
|
25747
25801
|
drawerContentStack: contentStack,
|
|
@@ -25753,7 +25807,7 @@ function useSuperDrawer() {
|
|
|
25753
25807
|
function canCloseDrawerDetails(i, doChange) {
|
|
25754
25808
|
for (const canCloseDrawerDetail of canCloseDetailsChecks.current[i] ?? []) {
|
|
25755
25809
|
if (!canClose(canCloseDrawerDetail)) {
|
|
25756
|
-
openModal({ content: /* @__PURE__ */ (0,
|
|
25810
|
+
openModal({ content: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
|
|
25757
25811
|
return false;
|
|
25758
25812
|
}
|
|
25759
25813
|
}
|
|
@@ -25773,7 +25827,7 @@ function useSuperDrawer() {
|
|
|
25773
25827
|
for (const canCloseDrawer of canCloseChecks.current) {
|
|
25774
25828
|
if (!canClose(canCloseDrawer)) {
|
|
25775
25829
|
openModal({
|
|
25776
|
-
content: /* @__PURE__ */ (0,
|
|
25830
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
|
|
25777
25831
|
});
|
|
25778
25832
|
return;
|
|
25779
25833
|
}
|
|
@@ -25868,8 +25922,8 @@ function canClose(canCloseCheck) {
|
|
|
25868
25922
|
}
|
|
25869
25923
|
|
|
25870
25924
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
25871
|
-
var
|
|
25872
|
-
var
|
|
25925
|
+
var import_runtime126 = require("@homebound/truss/runtime");
|
|
25926
|
+
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
25873
25927
|
var SuperDrawerContent = ({
|
|
25874
25928
|
children,
|
|
25875
25929
|
actions
|
|
@@ -25889,17 +25943,17 @@ var SuperDrawerContent = ({
|
|
|
25889
25943
|
} = firstContent ?? {};
|
|
25890
25944
|
function wrapWithMotionAndMaybeBack(children2) {
|
|
25891
25945
|
if (kind === "open") {
|
|
25892
|
-
return /* @__PURE__ */ (0,
|
|
25946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_framer_motion6.motion.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
|
|
25893
25947
|
} else if (kind === "detail") {
|
|
25894
|
-
return /* @__PURE__ */ (0,
|
|
25948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(import_framer_motion6.motion.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
|
|
25895
25949
|
overflow: "auto"
|
|
25896
25950
|
}, transition: {
|
|
25897
25951
|
overflow: {
|
|
25898
25952
|
delay: 0.3
|
|
25899
25953
|
}
|
|
25900
25954
|
}, children: [
|
|
25901
|
-
/* @__PURE__ */ (0,
|
|
25902
|
-
/* @__PURE__ */ (0,
|
|
25955
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
|
|
25956
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_framer_motion6.motion.div, { initial: {
|
|
25903
25957
|
x: width2,
|
|
25904
25958
|
opacity: 0
|
|
25905
25959
|
}, animate: {
|
|
@@ -25917,7 +25971,7 @@ var SuperDrawerContent = ({
|
|
|
25917
25971
|
}, className: "pt2", children: children2 })
|
|
25918
25972
|
] }, "content");
|
|
25919
25973
|
} else {
|
|
25920
|
-
return /* @__PURE__ */ (0,
|
|
25974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_framer_motion6.motion.div, { ...(0, import_runtime126.mergeProps)(void 0, {
|
|
25921
25975
|
overflow: "auto"
|
|
25922
25976
|
}, {
|
|
25923
25977
|
paddingTop: "pt3",
|
|
@@ -25928,9 +25982,9 @@ var SuperDrawerContent = ({
|
|
|
25928
25982
|
}) }, "content");
|
|
25929
25983
|
}
|
|
25930
25984
|
}
|
|
25931
|
-
return /* @__PURE__ */ (0,
|
|
25985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(import_jsx_runtime204.Fragment, { children: [
|
|
25932
25986
|
wrapWithMotionAndMaybeBack(children),
|
|
25933
|
-
actions && /* @__PURE__ */ (0,
|
|
25987
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime204.jsx)("footer", { ...(0, import_runtime126.trussProps)({
|
|
25934
25988
|
borderTopStyle: "bts_solid",
|
|
25935
25989
|
borderTopWidth: "btw_1px",
|
|
25936
25990
|
borderColor: ["bc_var", {
|
|
@@ -25943,7 +25997,7 @@ var SuperDrawerContent = ({
|
|
|
25943
25997
|
display: "df",
|
|
25944
25998
|
alignItems: "aic",
|
|
25945
25999
|
justifyContent: "jcfe"
|
|
25946
|
-
}), children: /* @__PURE__ */ (0,
|
|
26000
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Button, { ...buttonProps }, i)) }) })
|
|
25947
26001
|
] });
|
|
25948
26002
|
};
|
|
25949
26003
|
|
|
@@ -25991,15 +26045,15 @@ var import_react147 = require("react");
|
|
|
25991
26045
|
var import_react_aria64 = require("react-aria");
|
|
25992
26046
|
var import_react_router = require("react-router");
|
|
25993
26047
|
var import_react_router_dom8 = require("react-router-dom");
|
|
25994
|
-
var
|
|
25995
|
-
var
|
|
26048
|
+
var import_runtime127 = require("@homebound/truss/runtime");
|
|
26049
|
+
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
25996
26050
|
function TabsWithContent(props) {
|
|
25997
26051
|
const styles = hideTabs(props) ? {} : {
|
|
25998
26052
|
paddingTop: "pt3"
|
|
25999
26053
|
};
|
|
26000
|
-
return /* @__PURE__ */ (0,
|
|
26001
|
-
/* @__PURE__ */ (0,
|
|
26002
|
-
/* @__PURE__ */ (0,
|
|
26054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(import_jsx_runtime205.Fragment, { children: [
|
|
26055
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(Tabs, { ...props }),
|
|
26056
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(TabContent, { ...props, contentXss: {
|
|
26003
26057
|
...styles,
|
|
26004
26058
|
...props.contentXss
|
|
26005
26059
|
} })
|
|
@@ -26024,7 +26078,7 @@ function TabContent(props) {
|
|
|
26024
26078
|
return (
|
|
26025
26079
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
26026
26080
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
26027
|
-
/* @__PURE__ */ (0,
|
|
26081
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0, import_runtime127.trussProps)(contentXss), children: selectedTab.render() }) })
|
|
26028
26082
|
);
|
|
26029
26083
|
}
|
|
26030
26084
|
function Tabs(props) {
|
|
@@ -26066,7 +26120,7 @@ function Tabs(props) {
|
|
|
26066
26120
|
setActive(selected);
|
|
26067
26121
|
}
|
|
26068
26122
|
}
|
|
26069
|
-
return /* @__PURE__ */ (0,
|
|
26123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { ...(0, import_runtime127.trussProps)({
|
|
26070
26124
|
...{
|
|
26071
26125
|
display: "df",
|
|
26072
26126
|
alignItems: "aic",
|
|
@@ -26084,11 +26138,11 @@ function Tabs(props) {
|
|
|
26084
26138
|
}
|
|
26085
26139
|
} : {}
|
|
26086
26140
|
}), children: [
|
|
26087
|
-
!hideTabs(props) && /* @__PURE__ */ (0,
|
|
26141
|
+
!hideTabs(props) && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
|
|
26088
26142
|
const uniqueValue = uniqueTabValue(tab);
|
|
26089
|
-
return /* @__PURE__ */ (0,
|
|
26143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
|
|
26090
26144
|
}) }),
|
|
26091
|
-
right && /* @__PURE__ */ (0,
|
|
26145
|
+
right && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { className: "mla df aic gap1 pb1", children: right })
|
|
26092
26146
|
] });
|
|
26093
26147
|
}
|
|
26094
26148
|
function TabImpl(props) {
|
|
@@ -26132,7 +26186,7 @@ function TabImpl(props) {
|
|
|
26132
26186
|
role: "tab",
|
|
26133
26187
|
tabIndex: active ? 0 : -1,
|
|
26134
26188
|
...others,
|
|
26135
|
-
...(0,
|
|
26189
|
+
...(0, import_runtime127.trussProps)({
|
|
26136
26190
|
...baseStyles4,
|
|
26137
26191
|
...active && activeStyles3,
|
|
26138
26192
|
...isDisabled && disabledStyles3,
|
|
@@ -26148,17 +26202,17 @@ function TabImpl(props) {
|
|
|
26148
26202
|
onClick: () => onClick(tab.value)
|
|
26149
26203
|
}
|
|
26150
26204
|
});
|
|
26151
|
-
const tabLabel = /* @__PURE__ */ (0,
|
|
26205
|
+
const tabLabel = /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(import_jsx_runtime205.Fragment, { children: [
|
|
26152
26206
|
label,
|
|
26153
|
-
(icon || endAdornment) && /* @__PURE__ */ (0,
|
|
26207
|
+
(icon || endAdornment) && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("span", { className: "ml1", children: icon ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(Icon, { icon }) : endAdornment })
|
|
26154
26208
|
] });
|
|
26155
26209
|
return isDisabled ? maybeTooltip({
|
|
26156
26210
|
title: resolveTooltip(disabled),
|
|
26157
26211
|
placement: "top",
|
|
26158
|
-
children: /* @__PURE__ */ (0,
|
|
26159
|
-
}) : isRouteTab(tab) ? /* @__PURE__ */ (0,
|
|
26212
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { ...tabProps, children: tabLabel })
|
|
26213
|
+
}) : isRouteTab(tab) ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(import_react_router_dom8.Link, { ...(0, import_react_aria64.mergeProps)(tabProps, interactiveProps, {
|
|
26160
26214
|
className: "navLink"
|
|
26161
|
-
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */ (0,
|
|
26215
|
+
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("button", { ...{
|
|
26162
26216
|
...tabProps,
|
|
26163
26217
|
...interactiveProps
|
|
26164
26218
|
}, children: tabLabel });
|
|
@@ -26169,7 +26223,7 @@ function getTabStyles() {
|
|
|
26169
26223
|
const borderBottomStyles = {
|
|
26170
26224
|
borderBottomStyle: "bbs_solid",
|
|
26171
26225
|
borderBottomWidth: ["borderBottomWidth_var", {
|
|
26172
|
-
"--borderBottomWidth": (0,
|
|
26226
|
+
"--borderBottomWidth": (0, import_runtime127.maybeCssVar)(`${borderBottomWidthPx}px`)
|
|
26173
26227
|
}],
|
|
26174
26228
|
paddingBottom: ["pb_var", {
|
|
26175
26229
|
"--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
|
|
@@ -26266,7 +26320,7 @@ function hideTabs(props) {
|
|
|
26266
26320
|
}
|
|
26267
26321
|
|
|
26268
26322
|
// src/components/TagGroup.tsx
|
|
26269
|
-
var
|
|
26323
|
+
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
26270
26324
|
function TagGroup(props) {
|
|
26271
26325
|
const {
|
|
26272
26326
|
tags,
|
|
@@ -26274,9 +26328,9 @@ function TagGroup(props) {
|
|
|
26274
26328
|
...otherProps
|
|
26275
26329
|
} = props;
|
|
26276
26330
|
const tid = useTestIds(otherProps, "tagGroup");
|
|
26277
|
-
return /* @__PURE__ */ (0,
|
|
26278
|
-
tags.map((tag) => /* @__PURE__ */ (0,
|
|
26279
|
-
onEdit && /* @__PURE__ */ (0,
|
|
26331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { ...tid, className: "df aic fww gap1", children: [
|
|
26332
|
+
tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(Tag, { ...tag, variant: "secondary" }, tag.text)),
|
|
26333
|
+
onEdit && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("span", { className: "ml1 fw4 fz_14px lh_20px", children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(Button, { label: "Edit", variant: "text", onClick: onEdit, ...tid.edit }) })
|
|
26280
26334
|
] });
|
|
26281
26335
|
}
|
|
26282
26336
|
|
|
@@ -26289,15 +26343,15 @@ function useToast() {
|
|
|
26289
26343
|
}
|
|
26290
26344
|
|
|
26291
26345
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
26292
|
-
var
|
|
26293
|
-
var
|
|
26346
|
+
var import_runtime128 = require("@homebound/truss/runtime");
|
|
26347
|
+
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
26294
26348
|
var __maybeInc23 = (inc) => {
|
|
26295
26349
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26296
26350
|
};
|
|
26297
26351
|
function SideNavLayout(props) {
|
|
26298
26352
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
26299
|
-
if (hasProvider) return /* @__PURE__ */ (0,
|
|
26300
|
-
return /* @__PURE__ */ (0,
|
|
26353
|
+
if (hasProvider) return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(SideNavLayoutContent, { ...props });
|
|
26354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(SideNavLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(SideNavLayoutContent, { ...props }) });
|
|
26301
26355
|
}
|
|
26302
26356
|
function SideNavLayoutContent(props) {
|
|
26303
26357
|
const {
|
|
@@ -26319,7 +26373,7 @@ function SideNavLayoutContent(props) {
|
|
|
26319
26373
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
26320
26374
|
const navTop = bannerAndNavbarChromeTop();
|
|
26321
26375
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
26322
|
-
const rail = showRail && /* @__PURE__ */ (0,
|
|
26376
|
+
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)("div", { ...(0, import_runtime128.trussProps)({
|
|
26323
26377
|
...{
|
|
26324
26378
|
display: "df",
|
|
26325
26379
|
flexDirection: "fdc",
|
|
@@ -26343,14 +26397,14 @@ function SideNavLayoutContent(props) {
|
|
|
26343
26397
|
position: "sticky",
|
|
26344
26398
|
left: "left0",
|
|
26345
26399
|
zIndex: ["z_var", {
|
|
26346
|
-
"--zIndex": (0,
|
|
26400
|
+
"--zIndex": (0, import_runtime128.maybeCssVar)(zIndices.sideNav)
|
|
26347
26401
|
}],
|
|
26348
26402
|
top: ["top_var", {
|
|
26349
|
-
"--top": (0,
|
|
26403
|
+
"--top": (0, import_runtime128.maybeCssVar)(__maybeInc23(navTop))
|
|
26350
26404
|
}],
|
|
26351
26405
|
alignSelf: "asfs",
|
|
26352
26406
|
height: ["h_var", {
|
|
26353
|
-
"--height": (0,
|
|
26407
|
+
"--height": (0, import_runtime128.maybeCssVar)(__maybeInc23(railViewportHeight))
|
|
26354
26408
|
}],
|
|
26355
26409
|
width: ["w_var", {
|
|
26356
26410
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -26360,11 +26414,11 @@ function SideNavLayoutContent(props) {
|
|
|
26360
26414
|
position: "fixed",
|
|
26361
26415
|
left: "left0",
|
|
26362
26416
|
top: ["top_var", {
|
|
26363
|
-
"--top": (0,
|
|
26417
|
+
"--top": (0, import_runtime128.maybeCssVar)(__maybeInc23(navTop))
|
|
26364
26418
|
}],
|
|
26365
26419
|
bottom: "bottom0",
|
|
26366
26420
|
zIndex: ["z_var", {
|
|
26367
|
-
"--zIndex": (0,
|
|
26421
|
+
"--zIndex": (0, import_runtime128.maybeCssVar)(zIndices.sideNav)
|
|
26368
26422
|
}]
|
|
26369
26423
|
},
|
|
26370
26424
|
...collapsed ? {
|
|
@@ -26376,18 +26430,18 @@ function SideNavLayoutContent(props) {
|
|
|
26376
26430
|
}
|
|
26377
26431
|
}
|
|
26378
26432
|
}), ...tid.sideNav, children: [
|
|
26379
|
-
showCollapseToggle && /* @__PURE__ */ (0,
|
|
26380
|
-
/* @__PURE__ */ (0,
|
|
26433
|
+
showCollapseToggle && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { className: "absolute right2 top2 z2", children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
|
|
26434
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(SideNav, { ...sideNav }) })
|
|
26381
26435
|
] });
|
|
26382
|
-
return /* @__PURE__ */ (0,
|
|
26436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)("div", { ...(0, import_runtime128.mergeProps)(void 0, {
|
|
26383
26437
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
26384
26438
|
}, {
|
|
26385
26439
|
display: "df",
|
|
26386
26440
|
flexDirection: "fdr",
|
|
26387
26441
|
width: "w100"
|
|
26388
26442
|
}), ...tid, children: [
|
|
26389
|
-
contrastRail ? /* @__PURE__ */ (0,
|
|
26390
|
-
/* @__PURE__ */ (0,
|
|
26443
|
+
contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(ContrastScope, { children: rail }) : rail,
|
|
26444
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { ...(0, import_runtime128.trussProps)({
|
|
26391
26445
|
display: "df",
|
|
26392
26446
|
flexDirection: "fdc",
|
|
26393
26447
|
flexGrow: "fg1",
|
|
@@ -26403,8 +26457,8 @@ function SideNavLayoutContent(props) {
|
|
|
26403
26457
|
}
|
|
26404
26458
|
|
|
26405
26459
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
26406
|
-
var
|
|
26407
|
-
var
|
|
26460
|
+
var import_runtime129 = require("@homebound/truss/runtime");
|
|
26461
|
+
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
26408
26462
|
var __maybeInc24 = (inc) => {
|
|
26409
26463
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26410
26464
|
};
|
|
@@ -26420,35 +26474,35 @@ function EnvironmentBannerLayout(props) {
|
|
|
26420
26474
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
26421
26475
|
};
|
|
26422
26476
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
26423
|
-
return /* @__PURE__ */ (0,
|
|
26477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)("div", { ...(0, import_runtime129.mergeProps)(void 0, style, {
|
|
26424
26478
|
display: "df",
|
|
26425
26479
|
flexDirection: "fdc",
|
|
26426
26480
|
width: "wfc",
|
|
26427
26481
|
minWidth: "mw100"
|
|
26428
26482
|
}), ...tid, children: [
|
|
26429
|
-
showBanner && environmentBanner && /* @__PURE__ */ (0,
|
|
26483
|
+
showBanner && environmentBanner && /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { ...(0, import_runtime129.mergeProps)(void 0, {
|
|
26430
26484
|
height: environmentBannerSizePx
|
|
26431
26485
|
}, {
|
|
26432
26486
|
flexShrink: "fs0",
|
|
26433
26487
|
width: "w100"
|
|
26434
|
-
}), children: /* @__PURE__ */ (0,
|
|
26488
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { ...(0, import_runtime129.trussProps)({
|
|
26435
26489
|
position: "fixed",
|
|
26436
26490
|
top: "top0",
|
|
26437
26491
|
left: "left0",
|
|
26438
26492
|
zIndex: ["z_var", {
|
|
26439
|
-
"--zIndex": (0,
|
|
26493
|
+
"--zIndex": (0, import_runtime129.maybeCssVar)(zIndices.environmentBanner)
|
|
26440
26494
|
}],
|
|
26441
26495
|
width: ["w_var", {
|
|
26442
|
-
"--width": (0,
|
|
26496
|
+
"--width": (0, import_runtime129.maybeCssVar)(__maybeInc24(innerWidth))
|
|
26443
26497
|
}]
|
|
26444
|
-
}), ...tid.bannerSticky, children: /* @__PURE__ */ (0,
|
|
26498
|
+
}), ...tid.bannerSticky, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
26445
26499
|
children
|
|
26446
26500
|
] }) }) });
|
|
26447
26501
|
}
|
|
26448
26502
|
|
|
26449
26503
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
26450
|
-
var
|
|
26451
|
-
var
|
|
26504
|
+
var import_runtime130 = require("@homebound/truss/runtime");
|
|
26505
|
+
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
26452
26506
|
function FormSectionLayout(props) {
|
|
26453
26507
|
const {
|
|
26454
26508
|
title,
|
|
@@ -26458,29 +26512,31 @@ function FormSectionLayout(props) {
|
|
|
26458
26512
|
sections
|
|
26459
26513
|
} = props;
|
|
26460
26514
|
const tid = useTestIds(props, "formSectionLayout");
|
|
26461
|
-
return /* @__PURE__ */ (0,
|
|
26462
|
-
/* @__PURE__ */ (0,
|
|
26463
|
-
/* @__PURE__ */ (0,
|
|
26464
|
-
/* @__PURE__ */ (0,
|
|
26465
|
-
|
|
26515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { className: "df fdc gap8 w100 pt4 maxw_720px mla mra sm_pl2 sm_pr2", ...tid, children: [
|
|
26516
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { className: "df fdc gap3", children: [
|
|
26517
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { className: "df fdc jcsb gap_12px", children: [
|
|
26518
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { className: "df jcsb aic", children: [
|
|
26519
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("h1", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
|
|
26520
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: "df gap1 fs0", ...tid.actions, children: actions.map((action) => action.kind === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(IconButton, { ...action, variant: "outline" }, action.icon) : /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Button, { ...action }, `${action.label}`)) })
|
|
26521
|
+
] }),
|
|
26522
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { ...(0, import_runtime130.trussProps)({
|
|
26523
|
+
fontWeight: "fw4",
|
|
26524
|
+
fontSize: "fz_14px",
|
|
26525
|
+
lineHeight: "lh_20px",
|
|
26526
|
+
color: ["color_var", {
|
|
26527
|
+
"--color": "var(--b-on-surface)"
|
|
26528
|
+
}]
|
|
26529
|
+
}), ...tid.description, children: description })
|
|
26466
26530
|
] }),
|
|
26467
|
-
|
|
26468
|
-
fontWeight: "fw4",
|
|
26469
|
-
fontSize: "fz_14px",
|
|
26470
|
-
lineHeight: "lh_20px",
|
|
26471
|
-
color: ["color_var", {
|
|
26472
|
-
"--color": "var(--b-on-surface)"
|
|
26473
|
-
}]
|
|
26474
|
-
}), ...tid.description, children: description })
|
|
26531
|
+
initialFields
|
|
26475
26532
|
] }),
|
|
26476
|
-
|
|
26477
|
-
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { className: "df fdc gap6", children: sections.map((section, i) => /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(FormSection, { ...section }, defaultTestId(section.title) || i)) })
|
|
26533
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: "df fdc gap8", children: sections.map((section, i) => /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(FormSection, { ...section }, defaultTestId(section.title) || i)) })
|
|
26478
26534
|
] });
|
|
26479
26535
|
}
|
|
26480
26536
|
|
|
26481
26537
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
26482
26538
|
var import_react152 = require("react");
|
|
26483
|
-
var
|
|
26539
|
+
var import_runtime131 = require("@homebound/truss/runtime");
|
|
26484
26540
|
|
|
26485
26541
|
// src/layouts/useAutoHideOnScroll.ts
|
|
26486
26542
|
var import_react149 = require("react");
|
|
@@ -26573,7 +26629,7 @@ function useAutoHideOnScroll(spacerRef, enabled, getTopOffset) {
|
|
|
26573
26629
|
}
|
|
26574
26630
|
|
|
26575
26631
|
// src/layouts/useMeasuredHeight.ts
|
|
26576
|
-
var
|
|
26632
|
+
var import_utils174 = require("@react-aria/utils");
|
|
26577
26633
|
var import_react150 = require("react");
|
|
26578
26634
|
function useMeasuredHeight(ref, enabled) {
|
|
26579
26635
|
const [height, setHeight] = (0, import_react150.useState)(0);
|
|
@@ -26582,7 +26638,7 @@ function useMeasuredHeight(ref, enabled) {
|
|
|
26582
26638
|
const next = el ? Math.round(el.getBoundingClientRect().height) : 0;
|
|
26583
26639
|
setHeight((prev) => prev === next ? prev : next);
|
|
26584
26640
|
}, [ref]);
|
|
26585
|
-
(0,
|
|
26641
|
+
(0, import_utils174.useResizeObserver)({ ref, onResize: syncElementHeight });
|
|
26586
26642
|
(0, import_react150.useLayoutEffect)(() => {
|
|
26587
26643
|
syncElementHeight();
|
|
26588
26644
|
}, [enabled, syncElementHeight]);
|
|
@@ -26591,17 +26647,17 @@ function useMeasuredHeight(ref, enabled) {
|
|
|
26591
26647
|
|
|
26592
26648
|
// src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
|
|
26593
26649
|
var import_react151 = require("react");
|
|
26594
|
-
var
|
|
26650
|
+
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
26595
26651
|
var NavbarLayoutHeightContext = (0, import_react151.createContext)(0);
|
|
26596
26652
|
function NavbarLayoutHeightProvider({ value, children }) {
|
|
26597
|
-
return /* @__PURE__ */ (0,
|
|
26653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(NavbarLayoutHeightContext.Provider, { value, children });
|
|
26598
26654
|
}
|
|
26599
26655
|
function useNavbarLayoutHeight() {
|
|
26600
26656
|
return (0, import_react151.useContext)(NavbarLayoutHeightContext);
|
|
26601
26657
|
}
|
|
26602
26658
|
|
|
26603
26659
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
26604
|
-
var
|
|
26660
|
+
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
26605
26661
|
var __maybeInc25 = (inc) => {
|
|
26606
26662
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26607
26663
|
};
|
|
@@ -26630,10 +26686,10 @@ function NavbarLayout(props) {
|
|
|
26630
26686
|
position: "sticky",
|
|
26631
26687
|
left: "left0",
|
|
26632
26688
|
zIndex: ["z_var", {
|
|
26633
|
-
"--zIndex": (0,
|
|
26689
|
+
"--zIndex": (0, import_runtime131.maybeCssVar)(zIndices.navbar)
|
|
26634
26690
|
}],
|
|
26635
26691
|
width: ["w_var", {
|
|
26636
|
-
"--width": (0,
|
|
26692
|
+
"--width": (0, import_runtime131.maybeCssVar)(__maybeInc25(innerWidth))
|
|
26637
26693
|
}]
|
|
26638
26694
|
}
|
|
26639
26695
|
) : (
|
|
@@ -26642,10 +26698,10 @@ function NavbarLayout(props) {
|
|
|
26642
26698
|
position: "fixed",
|
|
26643
26699
|
left: "left0",
|
|
26644
26700
|
zIndex: ["z_var", {
|
|
26645
|
-
"--zIndex": (0,
|
|
26701
|
+
"--zIndex": (0, import_runtime131.maybeCssVar)(zIndices.navbar)
|
|
26646
26702
|
}],
|
|
26647
26703
|
width: ["w_var", {
|
|
26648
|
-
"--width": (0,
|
|
26704
|
+
"--width": (0, import_runtime131.maybeCssVar)(__maybeInc25(innerWidth))
|
|
26649
26705
|
}],
|
|
26650
26706
|
transition: "transitionTop"
|
|
26651
26707
|
}
|
|
@@ -26654,20 +26710,20 @@ function NavbarLayout(props) {
|
|
|
26654
26710
|
const innerStyle = autoHideState !== "static" ? {
|
|
26655
26711
|
top: autoHideState === "revealed" ? bannerTop : `calc(${bannerTop} - ${navHeight}px)`
|
|
26656
26712
|
} : void 0;
|
|
26657
|
-
const navbarEl = (0, import_react152.useMemo)(() => /* @__PURE__ */ (0,
|
|
26658
|
-
return /* @__PURE__ */ (0,
|
|
26713
|
+
const navbarEl = (0, import_react152.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Navbar, { ...navbar }), [navbar]);
|
|
26714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)("div", { ...(0, import_runtime131.mergeProps)(void 0, cssVars, {
|
|
26659
26715
|
display: "df",
|
|
26660
26716
|
flexDirection: "fdc",
|
|
26661
26717
|
width: "wfc",
|
|
26662
26718
|
minWidth: "mw100"
|
|
26663
26719
|
}), ...tid, children: [
|
|
26664
|
-
/* @__PURE__ */ (0,
|
|
26720
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { ref: spacerRef, ...(0, import_runtime131.mergeProps)(void 0, {
|
|
26665
26721
|
height: navHeight
|
|
26666
26722
|
}, {
|
|
26667
26723
|
flexShrink: "fs0",
|
|
26668
26724
|
width: "w100"
|
|
26669
|
-
}), children: /* @__PURE__ */ (0,
|
|
26670
|
-
/* @__PURE__ */ (0,
|
|
26725
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { ref: navMetricsRef, ...(0, import_runtime131.mergeProps)(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
26726
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
26671
26727
|
] }) }) });
|
|
26672
26728
|
}
|
|
26673
26729
|
|
|
@@ -26675,8 +26731,8 @@ function NavbarLayout(props) {
|
|
|
26675
26731
|
var import_react153 = require("react");
|
|
26676
26732
|
|
|
26677
26733
|
// src/components/Headers/BaseHeader.tsx
|
|
26678
|
-
var
|
|
26679
|
-
var
|
|
26734
|
+
var import_runtime132 = require("@homebound/truss/runtime");
|
|
26735
|
+
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
26680
26736
|
function BaseHeader(props) {
|
|
26681
26737
|
const {
|
|
26682
26738
|
title,
|
|
@@ -26688,7 +26744,7 @@ function BaseHeader(props) {
|
|
|
26688
26744
|
} = props;
|
|
26689
26745
|
const tid = useTestIds(otherProps, "header");
|
|
26690
26746
|
useDocumentTitle(title, documentTitleSuffix);
|
|
26691
|
-
return /* @__PURE__ */ (0,
|
|
26747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)("header", { ...tid, ...(0, import_runtime132.trussProps)({
|
|
26692
26748
|
display: "df",
|
|
26693
26749
|
flexDirection: "fdc",
|
|
26694
26750
|
paddingTop: "pt3",
|
|
@@ -26702,7 +26758,7 @@ function BaseHeader(props) {
|
|
|
26702
26758
|
"--backgroundColor": "var(--b-surface)"
|
|
26703
26759
|
}]
|
|
26704
26760
|
}), children: [
|
|
26705
|
-
/* @__PURE__ */ (0,
|
|
26761
|
+
/* @__PURE__ */ (0, import_jsx_runtime212.jsxs)("div", { ...(0, import_runtime132.trussProps)({
|
|
26706
26762
|
...{
|
|
26707
26763
|
display: "df",
|
|
26708
26764
|
justifyContent: "jcsb",
|
|
@@ -26716,9 +26772,9 @@ function BaseHeader(props) {
|
|
|
26716
26772
|
} : {}
|
|
26717
26773
|
}
|
|
26718
26774
|
}), children: [
|
|
26719
|
-
/* @__PURE__ */ (0,
|
|
26720
|
-
breadcrumbs && /* @__PURE__ */ (0,
|
|
26721
|
-
/* @__PURE__ */ (0,
|
|
26775
|
+
/* @__PURE__ */ (0, import_jsx_runtime212.jsxs)("div", { className: "mw0", children: [
|
|
26776
|
+
breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(Breadcrumbs, { ...breadcrumbs }),
|
|
26777
|
+
/* @__PURE__ */ (0, import_jsx_runtime212.jsx)("h1", { ...tid.title, ...(0, import_runtime132.trussProps)({
|
|
26722
26778
|
fontWeight: "fw6",
|
|
26723
26779
|
fontSize: "fz_20px",
|
|
26724
26780
|
lineHeight: "lh_28px",
|
|
@@ -26727,22 +26783,22 @@ function BaseHeader(props) {
|
|
|
26727
26783
|
}]
|
|
26728
26784
|
}), children: title })
|
|
26729
26785
|
] }),
|
|
26730
|
-
/* @__PURE__ */ (0,
|
|
26786
|
+
/* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { className: "fs0", children: rightSlot })
|
|
26731
26787
|
] }),
|
|
26732
26788
|
bottomSlot
|
|
26733
26789
|
] });
|
|
26734
26790
|
}
|
|
26735
26791
|
|
|
26736
26792
|
// src/components/Headers/PageHeader.tsx
|
|
26737
|
-
var
|
|
26738
|
-
var
|
|
26793
|
+
var import_runtime133 = require("@homebound/truss/runtime");
|
|
26794
|
+
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
26739
26795
|
function PageHeader2(props) {
|
|
26740
26796
|
const {
|
|
26741
26797
|
tabs,
|
|
26742
26798
|
...otherProps
|
|
26743
26799
|
} = props;
|
|
26744
26800
|
const tid = useTestIds(otherProps, "header");
|
|
26745
|
-
return /* @__PURE__ */ (0,
|
|
26801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(BaseHeader, { ...otherProps, bottomSlot: tabs && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)("div", { ...(0, import_runtime133.trussProps)(pageContentPaddingX), children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Tabs, { ...tabs, ...tid.tabs }) }) });
|
|
26746
26802
|
}
|
|
26747
26803
|
|
|
26748
26804
|
// src/layouts/useBannerAndNavbarHeight.ts
|
|
@@ -26751,8 +26807,8 @@ function useBannerAndNavbarHeight() {
|
|
|
26751
26807
|
}
|
|
26752
26808
|
|
|
26753
26809
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
26754
|
-
var
|
|
26755
|
-
var
|
|
26810
|
+
var import_runtime134 = require("@homebound/truss/runtime");
|
|
26811
|
+
var import_jsx_runtime214 = require("react/jsx-runtime");
|
|
26756
26812
|
var __maybeInc26 = (inc) => {
|
|
26757
26813
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26758
26814
|
};
|
|
@@ -26783,43 +26839,43 @@ function PageHeaderLayout(props) {
|
|
|
26783
26839
|
const innerCss = autoHideState === "static" ? {
|
|
26784
26840
|
position: "sticky",
|
|
26785
26841
|
left: ["left_var", {
|
|
26786
|
-
"--left": (0,
|
|
26842
|
+
"--left": (0, import_runtime134.maybeCssVar)(__maybeInc26(headerLeft))
|
|
26787
26843
|
}],
|
|
26788
26844
|
width: ["w_var", {
|
|
26789
|
-
"--width": (0,
|
|
26845
|
+
"--width": (0, import_runtime134.maybeCssVar)(__maybeInc26(headerWidth))
|
|
26790
26846
|
}],
|
|
26791
26847
|
zIndex: ["z_var", {
|
|
26792
|
-
"--zIndex": (0,
|
|
26848
|
+
"--zIndex": (0, import_runtime134.maybeCssVar)(zIndices.pageStickyHeader)
|
|
26793
26849
|
}]
|
|
26794
26850
|
} : {
|
|
26795
26851
|
position: "fixed",
|
|
26796
26852
|
left: ["left_var", {
|
|
26797
|
-
"--left": (0,
|
|
26853
|
+
"--left": (0, import_runtime134.maybeCssVar)(__maybeInc26(headerLeft))
|
|
26798
26854
|
}],
|
|
26799
26855
|
width: ["w_var", {
|
|
26800
|
-
"--width": (0,
|
|
26856
|
+
"--width": (0, import_runtime134.maybeCssVar)(__maybeInc26(headerWidth))
|
|
26801
26857
|
}],
|
|
26802
26858
|
zIndex: ["z_var", {
|
|
26803
|
-
"--zIndex": (0,
|
|
26859
|
+
"--zIndex": (0, import_runtime134.maybeCssVar)(zIndices.pageStickyHeader)
|
|
26804
26860
|
}],
|
|
26805
26861
|
transition: "transitionTop"
|
|
26806
26862
|
};
|
|
26807
26863
|
const innerStyle = autoHideState !== "static" ? {
|
|
26808
26864
|
top: autoHideState === "revealed" ? outerTop : `calc(${outerTop} - ${headerHeight}px)`
|
|
26809
26865
|
} : void 0;
|
|
26810
|
-
const pageHeaderEl = (0, import_react153.useMemo)(() => /* @__PURE__ */ (0,
|
|
26811
|
-
return /* @__PURE__ */ (0,
|
|
26866
|
+
const pageHeaderEl = (0, import_react153.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
26867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)("div", { ...(0, import_runtime134.mergeProps)(void 0, cssVars, {
|
|
26812
26868
|
display: "df",
|
|
26813
26869
|
flexDirection: "fdc",
|
|
26814
26870
|
width: "w100"
|
|
26815
26871
|
}), ...tid, children: [
|
|
26816
|
-
/* @__PURE__ */ (0,
|
|
26872
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)("div", { ref: spacerRef, ...(0, import_runtime134.mergeProps)(void 0, {
|
|
26817
26873
|
height: headerHeight
|
|
26818
26874
|
}, {
|
|
26819
26875
|
flexShrink: "fs0",
|
|
26820
26876
|
width: "w100"
|
|
26821
|
-
}), children: /* @__PURE__ */ (0,
|
|
26822
|
-
/* @__PURE__ */ (0,
|
|
26877
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime134.mergeProps)(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
26878
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
|
|
26823
26879
|
] }) });
|
|
26824
26880
|
}
|
|
26825
26881
|
|
|
@@ -26827,15 +26883,15 @@ function PageHeaderLayout(props) {
|
|
|
26827
26883
|
var import_react154 = require("react");
|
|
26828
26884
|
|
|
26829
26885
|
// src/components/Headers/WorkflowHeader.tsx
|
|
26830
|
-
var
|
|
26886
|
+
var import_jsx_runtime215 = require("react/jsx-runtime");
|
|
26831
26887
|
function WorkflowHeader(props) {
|
|
26832
26888
|
const { stepperTabs, ...otherProps } = props;
|
|
26833
26889
|
const tid = useTestIds(otherProps, "header");
|
|
26834
|
-
return /* @__PURE__ */ (0,
|
|
26890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(BaseHeader, { ...otherProps, bottomSlot: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) });
|
|
26835
26891
|
}
|
|
26836
26892
|
|
|
26837
26893
|
// src/layouts/WorkflowLayout/WorkflowActions.tsx
|
|
26838
|
-
var
|
|
26894
|
+
var import_jsx_runtime216 = require("react/jsx-runtime");
|
|
26839
26895
|
function WorkflowActions(props) {
|
|
26840
26896
|
const {
|
|
26841
26897
|
isFirstStep,
|
|
@@ -26849,19 +26905,19 @@ function WorkflowActions(props) {
|
|
|
26849
26905
|
onContinue,
|
|
26850
26906
|
primaryDisabled
|
|
26851
26907
|
} = props;
|
|
26852
|
-
return /* @__PURE__ */ (0,
|
|
26853
|
-
/* @__PURE__ */ (0,
|
|
26854
|
-
/* @__PURE__ */ (0,
|
|
26855
|
-
/* @__PURE__ */ (0,
|
|
26856
|
-
onSaveAndExit && /* @__PURE__ */ (0,
|
|
26857
|
-
isLastStep ? /* @__PURE__ */ (0,
|
|
26908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className: "df aic jcsb sm_w100", children: [
|
|
26909
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)("div", { className: "df aic", children: !isFirstStep && isMobile && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(IconButton, { icon: "arrowBack", label: "Back", onClick: onBack }) }),
|
|
26910
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className: "df aic gap1", children: [
|
|
26911
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
|
|
26912
|
+
onSaveAndExit && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
|
|
26913
|
+
isLastStep ? /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button, { label: completeLabel, variant: "primary", onClick: onComplete, disabled: primaryDisabled }) : /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button, { label: "Continue", variant: "primary", onClick: onContinue, disabled: primaryDisabled })
|
|
26858
26914
|
] })
|
|
26859
26915
|
] });
|
|
26860
26916
|
}
|
|
26861
26917
|
|
|
26862
26918
|
// src/layouts/WorkflowLayout/WorkflowLayout.tsx
|
|
26863
|
-
var
|
|
26864
|
-
var
|
|
26919
|
+
var import_runtime135 = require("@homebound/truss/runtime");
|
|
26920
|
+
var import_jsx_runtime217 = require("react/jsx-runtime");
|
|
26865
26921
|
var __maybeInc27 = (inc) => {
|
|
26866
26922
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26867
26923
|
};
|
|
@@ -26884,17 +26940,9 @@ function WorkflowLayout(props) {
|
|
|
26884
26940
|
const {
|
|
26885
26941
|
sm: isMobile
|
|
26886
26942
|
} = useBreakpoint();
|
|
26887
|
-
const bannerAndNavbarHeight = useBannerAndNavbarHeight();
|
|
26888
|
-
const bannerAndNavbarHeightRef = (0, import_react154.useRef)(bannerAndNavbarHeight);
|
|
26889
|
-
bannerAndNavbarHeightRef.current = bannerAndNavbarHeight;
|
|
26890
|
-
const getBannerAndNavbarHeight = (0, import_react154.useCallback)(() => bannerAndNavbarHeightRef.current, []);
|
|
26891
26943
|
const headerMetricsRef = (0, import_react154.useRef)(null);
|
|
26892
|
-
const spacerRef = (0, import_react154.useRef)(null);
|
|
26893
26944
|
const headerHeight = useMeasuredHeight(headerMetricsRef, true);
|
|
26894
|
-
const
|
|
26895
|
-
state: scrollState
|
|
26896
|
-
} = useAutoHideOnScroll(spacerRef, true, getBannerAndNavbarHeight);
|
|
26897
|
-
const collapsed = scrollState === "hidden";
|
|
26945
|
+
const collapsed = isMobile;
|
|
26898
26946
|
const headerWidth = documentScrollChromeWidth();
|
|
26899
26947
|
const outerTop = bannerAndNavbarChromeTop();
|
|
26900
26948
|
const cssVars = headerHeight > 0 ? {
|
|
@@ -26904,7 +26952,7 @@ function WorkflowLayout(props) {
|
|
|
26904
26952
|
const isFirstStep = currentIndex <= 0;
|
|
26905
26953
|
const isLastStep = currentIndex === tabSteps.length - 1;
|
|
26906
26954
|
const activeStep = tabSteps[currentIndex];
|
|
26907
|
-
const buttons = /* @__PURE__ */ (0,
|
|
26955
|
+
const buttons = /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(WorkflowActions, { isFirstStep, isLastStep, isMobile, onBack: () => setCurrentStep(tabSteps[currentIndex - 1].value), onCancel, onSaveAndExit, completeLabel, onComplete, primaryDisabled: !activeStep?.completed, onContinue: () => setCurrentStep(tabSteps[currentIndex + 1].value) });
|
|
26908
26956
|
const showFooter = isMobile;
|
|
26909
26957
|
(0, import_react154.useLayoutEffect)(() => {
|
|
26910
26958
|
const root = document.documentElement;
|
|
@@ -26918,54 +26966,49 @@ function WorkflowLayout(props) {
|
|
|
26918
26966
|
}
|
|
26919
26967
|
};
|
|
26920
26968
|
}, [showFooter]);
|
|
26921
|
-
const headerEl = /* @__PURE__ */ (0,
|
|
26969
|
+
const headerEl = /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(WorkflowHeader, { ...headerProps, rightSlot: isMobile ? void 0 : buttons, stepperTabs: {
|
|
26922
26970
|
steps: tabSteps,
|
|
26923
26971
|
currentStep,
|
|
26924
26972
|
onChange: setCurrentStep,
|
|
26925
26973
|
collapsed
|
|
26926
26974
|
} });
|
|
26927
|
-
return /* @__PURE__ */ (0,
|
|
26975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { ...(0, import_runtime135.mergeProps)(void 0, cssVars, {
|
|
26928
26976
|
display: "df",
|
|
26929
26977
|
flexDirection: "fdc",
|
|
26930
26978
|
width: "w100"
|
|
26931
26979
|
}), ...tid, children: [
|
|
26932
|
-
/* @__PURE__ */ (0,
|
|
26933
|
-
|
|
26934
|
-
|
|
26935
|
-
flexShrink: "fs0",
|
|
26936
|
-
width: "w100"
|
|
26937
|
-
}), ...tid.spacer, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime134.trussProps)({
|
|
26938
|
-
position: "fixed",
|
|
26980
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime135.trussProps)({
|
|
26981
|
+
position: "sticky",
|
|
26982
|
+
left: "left0",
|
|
26939
26983
|
width: ["w_var", {
|
|
26940
|
-
"--width": (0,
|
|
26984
|
+
"--width": (0, import_runtime135.maybeCssVar)(__maybeInc27(headerWidth))
|
|
26941
26985
|
}],
|
|
26942
26986
|
zIndex: ["z_var", {
|
|
26943
|
-
"--zIndex": (0,
|
|
26987
|
+
"--zIndex": (0, import_runtime135.maybeCssVar)(zIndices.pageStickyHeader)
|
|
26944
26988
|
}],
|
|
26945
26989
|
top: ["top_var", {
|
|
26946
|
-
"--top": (0,
|
|
26990
|
+
"--top": (0, import_runtime135.maybeCssVar)(__maybeInc27(outerTop))
|
|
26947
26991
|
}]
|
|
26948
|
-
}), ...tid.header, children: headerEl })
|
|
26949
|
-
/* @__PURE__ */ (0,
|
|
26950
|
-
showFooter && /* @__PURE__ */ (0,
|
|
26992
|
+
}), ...tid.header, children: headerEl }),
|
|
26993
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children: activeStep?.content }),
|
|
26994
|
+
showFooter && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...(0, import_runtime135.trussProps)({
|
|
26951
26995
|
flexShrink: "fs0",
|
|
26952
26996
|
width: "w100",
|
|
26953
26997
|
height: ["h_var", {
|
|
26954
26998
|
"--height": `${mobileFooterHeightPx}px`
|
|
26955
26999
|
}]
|
|
26956
|
-
})
|
|
26957
|
-
showFooter && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ...(0, import_runtime134.trussProps)({
|
|
27000
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...(0, import_runtime135.trussProps)({
|
|
26958
27001
|
...{
|
|
26959
27002
|
position: "fixed",
|
|
26960
27003
|
bottom: "bottom0",
|
|
26961
27004
|
width: ["w_var", {
|
|
26962
|
-
"--width": (0,
|
|
27005
|
+
"--width": (0, import_runtime135.maybeCssVar)(__maybeInc27(headerWidth))
|
|
26963
27006
|
}],
|
|
26964
27007
|
height: ["h_var", {
|
|
26965
27008
|
"--height": `${mobileFooterHeightPx}px`
|
|
26966
27009
|
}],
|
|
26967
27010
|
zIndex: ["z_var", {
|
|
26968
|
-
"--zIndex": (0,
|
|
27011
|
+
"--zIndex": (0, import_runtime135.maybeCssVar)(zIndices.pageStickyFooter)
|
|
26969
27012
|
}],
|
|
26970
27013
|
display: "df",
|
|
26971
27014
|
alignItems: "aic",
|
|
@@ -26981,7 +27024,7 @@ function WorkflowLayout(props) {
|
|
|
26981
27024
|
}]
|
|
26982
27025
|
},
|
|
26983
27026
|
...pageContentPaddingX
|
|
26984
|
-
}), ...tid.footer, children: buttons })
|
|
27027
|
+
}), ...tid.footer, children: buttons }) })
|
|
26985
27028
|
] }) });
|
|
26986
27029
|
}
|
|
26987
27030
|
var mobileFooterHeightPx = 80;
|
|
@@ -27044,6 +27087,7 @@ function getInitialStep(steps, defaultStep) {
|
|
|
27044
27087
|
CollapseToggle,
|
|
27045
27088
|
CollapsedContext,
|
|
27046
27089
|
ConfirmCloseModal,
|
|
27090
|
+
ContentHeader,
|
|
27047
27091
|
ContrastScope,
|
|
27048
27092
|
Copy,
|
|
27049
27093
|
CountBadge,
|