@homebound/beam 3.64.0 → 3.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Css.json +1 -0
- package/dist/index.cjs +382 -365
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -5
- package/dist/index.d.ts +31 -5
- package/dist/index.js +157 -140
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4219,6 +4219,14 @@ var CssBuilder = class _CssBuilder {
|
|
|
4219
4219
|
fontFamily(value) {
|
|
4220
4220
|
return this.add("fontFamily", value);
|
|
4221
4221
|
}
|
|
4222
|
+
// layoutContainer
|
|
4223
|
+
/** Sets `width: "calc(var(--beam-layout-viewport-width, 100vw) - var(--beam-side-nav-layout-width, 0px))"; left: "var(--beam-side-nav-layout-width, 0px)"; position: "sticky"; paddingLeft: "24px"; paddingRight: "24px"`. */
|
|
4224
|
+
get layoutContainer() {
|
|
4225
|
+
return this.add("width", "calc(var(--beam-layout-viewport-width, 100vw) - var(--beam-side-nav-layout-width, 0px))").add("left", "var(--beam-side-nav-layout-width, 0px)").add("position", "sticky").add("paddingLeft", "24px").add(
|
|
4226
|
+
"paddingRight",
|
|
4227
|
+
"24px"
|
|
4228
|
+
);
|
|
4229
|
+
}
|
|
4222
4230
|
// animation
|
|
4223
4231
|
/** Sets `transition: "background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1), left 200ms cubic-bezier(0.4, 0, 0.2, 1), right 200ms cubic-bezier(0.4, 0, 0.2, 1), margin 200ms cubic-bezier(0.4, 0, 0.2, 1), width 200ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms cubic-bezier(0.4, 0, 0.2, 1)"`. */
|
|
4224
4232
|
get transition() {
|
|
@@ -6513,6 +6521,7 @@ function stickyTableHeaderOffset(basePx = 0) {
|
|
|
6513
6521
|
function getFloatingBottomOffset(basePx = 0) {
|
|
6514
6522
|
return `calc(${basePx}px + var(${beamWorkflowLayoutFooterHeightVar}, 0px))`;
|
|
6515
6523
|
}
|
|
6524
|
+
var pageContentPaddingXValue = "24px";
|
|
6516
6525
|
|
|
6517
6526
|
// src/utils/zIndices.ts
|
|
6518
6527
|
var zIndices = {
|
|
@@ -16316,10 +16325,18 @@ function SelectToggle({ id, disabled }) {
|
|
|
16316
16325
|
}
|
|
16317
16326
|
|
|
16318
16327
|
// src/layouts/layoutSpacing.ts
|
|
16328
|
+
var import_runtime64 = require("@homebound/truss/runtime");
|
|
16329
|
+
var __maybeInc10 = (inc) => {
|
|
16330
|
+
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
16331
|
+
};
|
|
16319
16332
|
var pageContentGutterPx = 12;
|
|
16320
16333
|
var pageContentPaddingX = {
|
|
16321
|
-
paddingLeft: "
|
|
16322
|
-
|
|
16334
|
+
paddingLeft: ["px_var", {
|
|
16335
|
+
"--paddingLeft": (0, import_runtime64.maybeCssVar)(__maybeInc10(pageContentPaddingXValue))
|
|
16336
|
+
}],
|
|
16337
|
+
paddingRight: ["px_var", {
|
|
16338
|
+
"--paddingRight": (0, import_runtime64.maybeCssVar)(__maybeInc10(pageContentPaddingXValue))
|
|
16339
|
+
}]
|
|
16323
16340
|
};
|
|
16324
16341
|
function headerContentPaddingX(compact = false) {
|
|
16325
16342
|
return compact ? {
|
|
@@ -17224,9 +17241,9 @@ var import_react84 = require("react");
|
|
|
17224
17241
|
|
|
17225
17242
|
// src/layouts/DocumentScrollToTopButton.tsx
|
|
17226
17243
|
var import_react83 = require("react");
|
|
17227
|
-
var
|
|
17244
|
+
var import_runtime65 = require("@homebound/truss/runtime");
|
|
17228
17245
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
17229
|
-
var
|
|
17246
|
+
var __maybeInc11 = (inc) => {
|
|
17230
17247
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
17231
17248
|
};
|
|
17232
17249
|
function DocumentScrollToTopButton({
|
|
@@ -17253,17 +17270,17 @@ function DocumentScrollToTopButton({
|
|
|
17253
17270
|
}, []);
|
|
17254
17271
|
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { ...tid.wrapper, "aria-hidden": !visible, ...!visible ? {
|
|
17255
17272
|
inert: ""
|
|
17256
|
-
} : {}, ...(0,
|
|
17273
|
+
} : {}, ...(0, import_runtime65.trussProps)({
|
|
17257
17274
|
...{
|
|
17258
17275
|
position: "fixed",
|
|
17259
17276
|
bottom: ["bottom_var", {
|
|
17260
|
-
"--bottom": (0,
|
|
17277
|
+
"--bottom": (0, import_runtime65.maybeCssVar)(__maybeInc11(getFloatingBottomOffset(scrollToTopOffsetPx)))
|
|
17261
17278
|
}],
|
|
17262
17279
|
right: ["right_var", {
|
|
17263
17280
|
"--right": `${scrollToTopOffsetPx}px`
|
|
17264
17281
|
}],
|
|
17265
17282
|
zIndex: ["z_var", {
|
|
17266
|
-
"--zIndex": (0,
|
|
17283
|
+
"--zIndex": (0, import_runtime65.maybeCssVar)(zIndices.scrollToTop)
|
|
17267
17284
|
}],
|
|
17268
17285
|
display: "df",
|
|
17269
17286
|
justifyContent: "jcfe",
|
|
@@ -17273,7 +17290,7 @@ function DocumentScrollToTopButton({
|
|
|
17273
17290
|
transform: "transform_translateY_0"
|
|
17274
17291
|
} : {
|
|
17275
17292
|
transform: ["transform_var", {
|
|
17276
|
-
"--transform": (0,
|
|
17293
|
+
"--transform": (0, import_runtime65.maybeCssVar)(`translateY(calc(100% + ${scrollToTopOffsetPx}px))`)
|
|
17277
17294
|
}],
|
|
17278
17295
|
pointerEvents: "pointerEvents_none"
|
|
17279
17296
|
}
|
|
@@ -17281,7 +17298,7 @@ function DocumentScrollToTopButton({
|
|
|
17281
17298
|
}
|
|
17282
17299
|
|
|
17283
17300
|
// src/layouts/DocumentScrollLayoutContext.tsx
|
|
17284
|
-
var
|
|
17301
|
+
var import_runtime66 = require("@homebound/truss/runtime");
|
|
17285
17302
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
17286
17303
|
var DocumentScrollLayoutContext = (0, import_react84.createContext)(false);
|
|
17287
17304
|
function DocumentScrollLayoutProvider({
|
|
@@ -17332,7 +17349,7 @@ function DocumentScrollLayoutViewportRoot({
|
|
|
17332
17349
|
return (
|
|
17333
17350
|
// Grow with wide document-scroll content (`wfc`) while staying at least viewport-wide (`mw100`),
|
|
17334
17351
|
// so sticky chrome ancestors are wide enough for `left` pinning on horizontal scroll.
|
|
17335
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { ...(0,
|
|
17352
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { ...(0, import_runtime66.mergeProps)(void 0, Object.keys(style).length > 0 ? style : void 0, {
|
|
17336
17353
|
display: "df",
|
|
17337
17354
|
flexDirection: "fdc",
|
|
17338
17355
|
width: "wfc",
|
|
@@ -17347,9 +17364,9 @@ function DocumentScrollLayoutViewportRoot({
|
|
|
17347
17364
|
// src/components/Table/components/TableCard.tsx
|
|
17348
17365
|
var import_react85 = require("react");
|
|
17349
17366
|
var import_react_router_dom4 = require("react-router-dom");
|
|
17350
|
-
var
|
|
17367
|
+
var import_runtime67 = require("@homebound/truss/runtime");
|
|
17351
17368
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
17352
|
-
var
|
|
17369
|
+
var __maybeInc12 = (inc) => {
|
|
17353
17370
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
17354
17371
|
};
|
|
17355
17372
|
function TableCard(props) {
|
|
@@ -17401,7 +17418,7 @@ function TableCard(props) {
|
|
|
17401
17418
|
const card = /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(TableCardView, { ...tid, imgSrc: rs.row.imgSrc ?? "", title, eyebrow, badge, badgeTags, status, data: dataBlocks, progress });
|
|
17402
17419
|
const to = rowStyle?.rowLink?.(rs.row);
|
|
17403
17420
|
if (to) {
|
|
17404
|
-
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_router_dom4.Link, { to, ...(0,
|
|
17421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_react_router_dom4.Link, { to, ...(0, import_runtime67.mergeProps)(navLink, void 0, {
|
|
17405
17422
|
textDecoration: "tdn",
|
|
17406
17423
|
color: "color_unset"
|
|
17407
17424
|
}), children: card });
|
|
@@ -17426,7 +17443,7 @@ function TableCardView(props) {
|
|
|
17426
17443
|
const progressValue = (0, import_react85.useMemo)(() => progress !== void 0 ? clampProgress(progress) : 0, [progress]);
|
|
17427
17444
|
const col1 = data.slice(0, Math.ceil(data.length / 2));
|
|
17428
17445
|
const col2 = data.slice(Math.ceil(data.length / 2));
|
|
17429
|
-
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { ...(0,
|
|
17446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { ...(0, import_runtime67.trussProps)({
|
|
17430
17447
|
paddingTop: "pt3",
|
|
17431
17448
|
paddingBottom: "pb3",
|
|
17432
17449
|
paddingRight: "pr3",
|
|
@@ -17475,19 +17492,19 @@ function TableCardView(props) {
|
|
|
17475
17492
|
] }, d.label)) })
|
|
17476
17493
|
] }),
|
|
17477
17494
|
progress !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "df fdc gap1", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "df aic gap1 fs_10px lh_14px", children: [
|
|
17478
|
-
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { ...(0,
|
|
17495
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { ...(0, import_runtime67.trussProps)({
|
|
17479
17496
|
width: "w25",
|
|
17480
17497
|
height: "h_8px",
|
|
17481
17498
|
borderRadius: "br4",
|
|
17482
17499
|
backgroundColor: ["bgColor_var", {
|
|
17483
17500
|
"--backgroundColor": "var(--b-surface-subtle)"
|
|
17484
17501
|
}]
|
|
17485
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { ...(0,
|
|
17502
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { ...(0, import_runtime67.trussProps)({
|
|
17486
17503
|
height: "h100",
|
|
17487
17504
|
borderRadius: "br4",
|
|
17488
17505
|
backgroundColor: "bgBlue500",
|
|
17489
17506
|
width: ["w_var", {
|
|
17490
|
-
"--width": (0,
|
|
17507
|
+
"--width": (0, import_runtime67.maybeCssVar)(__maybeInc12(`${progressValue}%`))
|
|
17491
17508
|
}]
|
|
17492
17509
|
}) }) }),
|
|
17493
17510
|
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { ...tid.progressValue, children: [
|
|
@@ -17507,7 +17524,7 @@ function clampProgress(value) {
|
|
|
17507
17524
|
}
|
|
17508
17525
|
|
|
17509
17526
|
// src/components/Table/GridTableEmptyState.tsx
|
|
17510
|
-
var
|
|
17527
|
+
var import_runtime68 = require("@homebound/truss/runtime");
|
|
17511
17528
|
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
17512
17529
|
function GridTableEmptyState(props) {
|
|
17513
17530
|
const {
|
|
@@ -17518,7 +17535,7 @@ function GridTableEmptyState(props) {
|
|
|
17518
17535
|
const tid = useTestIds(props, "gridTableEmptyState");
|
|
17519
17536
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "df fdc aic pt_12 pb_12 gap2", ...tid, children: [
|
|
17520
17537
|
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
|
|
17521
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { ...(0,
|
|
17538
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { ...(0, import_runtime68.trussProps)({
|
|
17522
17539
|
fontWeight: "fw4",
|
|
17523
17540
|
fontSize: "fz_14px",
|
|
17524
17541
|
lineHeight: "lh_20px",
|
|
@@ -17531,10 +17548,10 @@ function GridTableEmptyState(props) {
|
|
|
17531
17548
|
}
|
|
17532
17549
|
|
|
17533
17550
|
// src/components/Table/GridTable.tsx
|
|
17534
|
-
var
|
|
17551
|
+
var import_runtime69 = require("@homebound/truss/runtime");
|
|
17535
17552
|
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
17536
17553
|
var import_react87 = require("react");
|
|
17537
|
-
var
|
|
17554
|
+
var __maybeInc13 = (inc) => {
|
|
17538
17555
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
17539
17556
|
};
|
|
17540
17557
|
var runningInJest = false;
|
|
@@ -17834,7 +17851,7 @@ function GridTable(props) {
|
|
|
17834
17851
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(GridTableEmptyState, { ...emptyState });
|
|
17835
17852
|
}
|
|
17836
17853
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(TableStateContext.Provider, { value: rowStateContext, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(PresentationProvider, { fieldProps, wrap: style?.presentationSettings?.wrap, children: [
|
|
17837
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ref: resizeRef, ...(0,
|
|
17854
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ref: resizeRef, ...(0, import_runtime69.trussProps)(getTableRefWidthStyles(as === "virtual", inDocumentScrollLayout)) }),
|
|
17838
17855
|
as === "card" ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CardView, { cardRows: visibleDataRows, id, virtuosoRangeRef, infiniteScroll, persistScrollPosition }) : _as === "virtual" ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(VirtualGridTableView, { style: tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, persistScrollPosition }) : renders[_as](tableStyle, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, virtuosoRef, virtuosoRangeRef, tableHeadRows, stickyOffset, infiniteScroll, tableContainerRef, persistScrollPosition)
|
|
17839
17856
|
] }) });
|
|
17840
17857
|
}
|
|
@@ -17843,7 +17860,7 @@ var renders = {
|
|
|
17843
17860
|
div: renderDiv
|
|
17844
17861
|
};
|
|
17845
17862
|
function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, _virtuosoRef, _virtuosoRangeRef, tableHeadRows, stickyOffset, _infiniteScroll, tableContainerRef, _persistScrollPosition) {
|
|
17846
|
-
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { ref: tableContainerRef, ...(0,
|
|
17863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { ref: tableContainerRef, ...(0, import_runtime69.trussProps)({
|
|
17847
17864
|
// Use `fit-content` to ensure the width of the table takes up the full width of its content.
|
|
17848
17865
|
// Otherwise, the table's width would be that of its container, which may not be as wide as the table itself.
|
|
17849
17866
|
// In cases where we have sticky columns on a very wide table, then the container which the columns "stick" to (which is the table),
|
|
@@ -17859,15 +17876,15 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, pinned
|
|
|
17859
17876
|
} : {},
|
|
17860
17877
|
...xss
|
|
17861
17878
|
}), "data-testid": id, children: [
|
|
17862
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { ...(0,
|
|
17879
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { ...(0, import_runtime69.trussProps)({
|
|
17863
17880
|
...stickyHeader || pinnedRows.length > 0 ? {
|
|
17864
17881
|
position: "sticky",
|
|
17865
17882
|
transition: "transitionTop",
|
|
17866
17883
|
top: ["top_var", {
|
|
17867
|
-
"--top": (0,
|
|
17884
|
+
"--top": (0, import_runtime69.maybeCssVar)(__maybeInc13(stickyTableHeaderOffset(stickyOffset)))
|
|
17868
17885
|
}],
|
|
17869
17886
|
zIndex: ["z_var", {
|
|
17870
|
-
"--zIndex": (0,
|
|
17887
|
+
"--zIndex": (0, import_runtime69.maybeCssVar)(zIndices.tableStickyHeader)
|
|
17871
17888
|
}]
|
|
17872
17889
|
} : {}
|
|
17873
17890
|
}), children: [
|
|
@@ -17876,7 +17893,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, pinned
|
|
|
17876
17893
|
] }),
|
|
17877
17894
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { children: [
|
|
17878
17895
|
keptSelectedRows,
|
|
17879
|
-
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...(0,
|
|
17896
|
+
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...(0, import_runtime69.trussProps)({
|
|
17880
17897
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
17881
17898
|
...style.firstRowMessageCss,
|
|
17882
17899
|
...visibleDataRows.length === 0 && style.lastRowCss,
|
|
@@ -17889,7 +17906,7 @@ function renderDiv(style, id, columns, visibleDataRows, keptSelectedRows, pinned
|
|
|
17889
17906
|
] });
|
|
17890
17907
|
}
|
|
17891
17908
|
function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, pinnedRows, firstRowMessage, stickyHeader, xss, _virtuosoRef, _virtuosoRangeRef, tableHeadRows, stickyOffset, _infiniteScroll, tableContainerRef, _persistScrollPosition) {
|
|
17892
|
-
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("table", { ref: tableContainerRef, ...(0,
|
|
17909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("table", { ref: tableContainerRef, ...(0, import_runtime69.trussProps)({
|
|
17893
17910
|
...{
|
|
17894
17911
|
width: "w100",
|
|
17895
17912
|
borderCollapse: "borderCollapse_separate",
|
|
@@ -17903,15 +17920,15 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, pinn
|
|
|
17903
17920
|
} : {},
|
|
17904
17921
|
...xss
|
|
17905
17922
|
}), "data-testid": id, children: [
|
|
17906
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("thead", { ...(0,
|
|
17923
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("thead", { ...(0, import_runtime69.trussProps)({
|
|
17907
17924
|
...stickyHeader || pinnedRows.length > 0 ? {
|
|
17908
17925
|
position: "sticky",
|
|
17909
17926
|
transition: "transitionTop",
|
|
17910
17927
|
top: ["top_var", {
|
|
17911
|
-
"--top": (0,
|
|
17928
|
+
"--top": (0, import_runtime69.maybeCssVar)(__maybeInc13(stickyTableHeaderOffset(stickyOffset)))
|
|
17912
17929
|
}],
|
|
17913
17930
|
zIndex: ["z_var", {
|
|
17914
|
-
"--zIndex": (0,
|
|
17931
|
+
"--zIndex": (0, import_runtime69.maybeCssVar)(zIndices.tableStickyHeader)
|
|
17915
17932
|
}]
|
|
17916
17933
|
} : {}
|
|
17917
17934
|
}), children: [
|
|
@@ -17920,11 +17937,11 @@ function renderTable(style, id, columns, visibleDataRows, keptSelectedRows, pinn
|
|
|
17920
17937
|
] }),
|
|
17921
17938
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("tbody", { children: [
|
|
17922
17939
|
keptSelectedRows,
|
|
17923
|
-
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("tr", { ...(0,
|
|
17940
|
+
firstRowMessage && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("tr", { ...(0, import_runtime69.trussProps)({
|
|
17924
17941
|
...tableRowPrintBreakCss,
|
|
17925
17942
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
17926
17943
|
...visibleDataRows.length === 0 && style.lastRowCss
|
|
17927
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("td", { colSpan: columns.length, ...(0,
|
|
17944
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("td", { colSpan: columns.length, ...(0, import_runtime69.trussProps)({
|
|
17928
17945
|
...style.betweenRowsCss,
|
|
17929
17946
|
...style.firstRowMessageCss,
|
|
17930
17947
|
...visibleDataRows.length === 0 && style.lastRowCellCss,
|
|
@@ -17978,7 +17995,7 @@ function VirtualGridTableView({
|
|
|
17978
17995
|
components: {
|
|
17979
17996
|
// zIndex keeps the pinned head above sticky columns; `top` matches the offsets used by
|
|
17980
17997
|
// the div/table render paths so virtualized tables pin below the global nav + page header.
|
|
17981
|
-
TopItemList: import_react86.default.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...props, ref, ...(0,
|
|
17998
|
+
TopItemList: import_react86.default.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...props, ref, ...(0, import_runtime69.mergeProps)(void 0, {
|
|
17982
17999
|
...props.style,
|
|
17983
18000
|
...style.minWidthPx !== void 0 ? {
|
|
17984
18001
|
minWidth: style.minWidthPx
|
|
@@ -17990,7 +18007,7 @@ function VirtualGridTableView({
|
|
|
17990
18007
|
}) })),
|
|
17991
18008
|
List: VirtualRoot(style, columns, id, xss),
|
|
17992
18009
|
Footer: () => {
|
|
17993
|
-
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...(0,
|
|
18010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...(0, import_runtime69.trussProps)({
|
|
17994
18011
|
...style.virtualFooterPaddingBottomPx !== void 0 ? {
|
|
17995
18012
|
paddingBottom: ["pb_var", {
|
|
17996
18013
|
"--paddingBottom": `${style.virtualFooterPaddingBottomPx ?? 0}px`
|
|
@@ -18017,11 +18034,11 @@ function VirtualGridTableView({
|
|
|
18017
18034
|
if (index === 0) {
|
|
18018
18035
|
return (
|
|
18019
18036
|
// Ensure the fallback message is the same width as the table
|
|
18020
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...(0,
|
|
18037
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...(0, import_runtime69.trussProps)({
|
|
18021
18038
|
...getTableRefWidthStyles(true, inDocumentScrollLayout),
|
|
18022
18039
|
...keptSelectedRows.length === 0 && style.firstBodyRowCss,
|
|
18023
18040
|
...visibleDataRows.length === 0 && style.lastRowCss
|
|
18024
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...(0,
|
|
18041
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...(0, import_runtime69.trussProps)({
|
|
18025
18042
|
...style.firstRowMessageCss,
|
|
18026
18043
|
...visibleDataRows.length === 0 && style.lastRowCellCss,
|
|
18027
18044
|
...visibleDataRows.length === 0 && style.lastRowFirstCellCss,
|
|
@@ -18079,10 +18096,10 @@ function CardView({
|
|
|
18079
18096
|
const validatedScrollIndex = savedScrollIndex !== void 0 && savedScrollIndex > 0 && savedScrollIndex < cardRows.length ? savedScrollIndex : void 0;
|
|
18080
18097
|
const virtuosoKey = !!validatedScrollIndex && cardRows.length > 0 ? "with-data" : "virtuoso";
|
|
18081
18098
|
if (runningInJest) {
|
|
18082
|
-
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "pt2 pb2", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...(0,
|
|
18099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "pt2 pb2", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ...(0, import_runtime69.trussProps)({
|
|
18083
18100
|
display: "dg",
|
|
18084
18101
|
gridTemplateColumns: ["gtc_var", {
|
|
18085
|
-
"--gridTemplateColumns": (0,
|
|
18102
|
+
"--gridTemplateColumns": (0, import_runtime69.maybeCssVar)(`repeat(auto-fill, minmax(${CARD_MIN_WIDTH_PX}px, 1fr))`)
|
|
18086
18103
|
}],
|
|
18087
18104
|
justifyContent: "jcc",
|
|
18088
18105
|
gap: "gap3",
|
|
@@ -18101,10 +18118,10 @@ function CardView({
|
|
|
18101
18118
|
style,
|
|
18102
18119
|
children
|
|
18103
18120
|
}, ref) {
|
|
18104
|
-
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ref, ...(0,
|
|
18121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ref, ...(0, import_runtime69.mergeProps)(void 0, style, {
|
|
18105
18122
|
display: "dg",
|
|
18106
18123
|
gridTemplateColumns: ["gtc_var", {
|
|
18107
|
-
"--gridTemplateColumns": (0,
|
|
18124
|
+
"--gridTemplateColumns": (0, import_runtime69.maybeCssVar)(`repeat(auto-fill, minmax(${CARD_MIN_WIDTH_PX}px, 1fr))`)
|
|
18108
18125
|
}],
|
|
18109
18126
|
justifyContent: "jcc",
|
|
18110
18127
|
gap: "gap3",
|
|
@@ -18140,7 +18157,7 @@ var VirtualRoot = (0, import_memoize_one.default)((gs, _columns, id, xss) => {
|
|
|
18140
18157
|
style,
|
|
18141
18158
|
children
|
|
18142
18159
|
}, ref) {
|
|
18143
|
-
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ref, ...(0,
|
|
18160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { ref, ...(0, import_runtime69.mergeProps)(void 0, style, {
|
|
18144
18161
|
...gs.rootCss,
|
|
18145
18162
|
...gs.minWidthPx ? {
|
|
18146
18163
|
minWidth: ["mw_var", {
|
|
@@ -18157,7 +18174,7 @@ var VirtualRoot = (0, import_memoize_one.default)((gs, _columns, id, xss) => {
|
|
|
18157
18174
|
var CARD_MIN_WIDTH_PX = 330;
|
|
18158
18175
|
|
|
18159
18176
|
// src/components/ToggleChip.tsx
|
|
18160
|
-
var
|
|
18177
|
+
var import_runtime70 = require("@homebound/truss/runtime");
|
|
18161
18178
|
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
18162
18179
|
function ToggleChip(props) {
|
|
18163
18180
|
const {
|
|
@@ -18176,7 +18193,7 @@ function ToggleChip(props) {
|
|
|
18176
18193
|
} = useHover2({});
|
|
18177
18194
|
const compact = fieldProps?.compact;
|
|
18178
18195
|
const tid = useTestIds(props, "chip");
|
|
18179
|
-
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("button", { type: "button", ...(0,
|
|
18196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("button", { type: "button", ...(0, import_runtime70.trussProps)({
|
|
18180
18197
|
...chipBaseStyles(compact),
|
|
18181
18198
|
...isHovered && !disabled && chipHoverStyles,
|
|
18182
18199
|
// Use a lower right-padding to get closer to the `X` circle when clearable, i.e. not disabled
|
|
@@ -18192,7 +18209,7 @@ function ToggleChip(props) {
|
|
|
18192
18209
|
...xss
|
|
18193
18210
|
}), disabled, onClick, ...hoverProps, ...tid, children: [
|
|
18194
18211
|
icon && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "fs0", ...tid.icon, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Icon, { icon, color: "rgba(36, 36, 36, 1)" /* Gray900 */, inc: 2 }) }),
|
|
18195
|
-
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { ...(0,
|
|
18212
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { ...(0, import_runtime70.trussProps)({
|
|
18196
18213
|
textAlign: "tal",
|
|
18197
18214
|
overflow: "oh",
|
|
18198
18215
|
display: "d_negwebkit_box",
|
|
@@ -18204,7 +18221,7 @@ function ToggleChip(props) {
|
|
|
18204
18221
|
paddingRight: "pr0"
|
|
18205
18222
|
} : {}
|
|
18206
18223
|
}), title: text, children: text }),
|
|
18207
|
-
!disabled && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { ...(0,
|
|
18224
|
+
!disabled && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { ...(0, import_runtime70.trussProps)({
|
|
18208
18225
|
...{
|
|
18209
18226
|
flexShrink: "fs0",
|
|
18210
18227
|
borderRadius: "br16",
|
|
@@ -18226,7 +18243,7 @@ var chipDisabledStyles = {
|
|
|
18226
18243
|
};
|
|
18227
18244
|
|
|
18228
18245
|
// src/components/ToggleChips.tsx
|
|
18229
|
-
var
|
|
18246
|
+
var import_runtime71 = require("@homebound/truss/runtime");
|
|
18230
18247
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
18231
18248
|
function ToggleChips(props) {
|
|
18232
18249
|
const {
|
|
@@ -18236,7 +18253,7 @@ function ToggleChips(props) {
|
|
|
18236
18253
|
xss
|
|
18237
18254
|
} = props;
|
|
18238
18255
|
const tid = useTestIds(props, "toggleChips");
|
|
18239
|
-
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { ...(0,
|
|
18256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { ...(0, import_runtime71.trussProps)({
|
|
18240
18257
|
...{
|
|
18241
18258
|
display: "df",
|
|
18242
18259
|
flexWrap: "flexWrap_wrap",
|
|
@@ -18250,9 +18267,9 @@ function ToggleChips(props) {
|
|
|
18250
18267
|
var import_utils82 = require("@react-aria/utils");
|
|
18251
18268
|
var import_react88 = require("react");
|
|
18252
18269
|
var import_react_aria48 = require("react-aria");
|
|
18253
|
-
var
|
|
18270
|
+
var import_runtime72 = require("@homebound/truss/runtime");
|
|
18254
18271
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
18255
|
-
var
|
|
18272
|
+
var __maybeInc14 = (inc) => {
|
|
18256
18273
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
18257
18274
|
};
|
|
18258
18275
|
function Accordion(props) {
|
|
@@ -18352,12 +18369,12 @@ function Accordion(props) {
|
|
|
18352
18369
|
},
|
|
18353
18370
|
...isFocusVisible && {
|
|
18354
18371
|
boxShadow: ["boxShadow_var", {
|
|
18355
|
-
"--boxShadow": (0,
|
|
18372
|
+
"--boxShadow": (0, import_runtime72.maybeCssVar)(`inset 0 0 0 2px var(${"--b-focus-ring-inset" /* FocusRingInset */})`)
|
|
18356
18373
|
}]
|
|
18357
18374
|
},
|
|
18358
18375
|
...xss
|
|
18359
18376
|
}), [compact, disabled, isFocusVisible, titleOnClick, xss]);
|
|
18360
|
-
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { ...tid.container, ...(0,
|
|
18377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { ...tid.container, ...(0, import_runtime72.trussProps)({
|
|
18361
18378
|
...{
|
|
18362
18379
|
borderColor: ["bc_var", {
|
|
18363
18380
|
"--borderColor": "var(--b-field-border-default)"
|
|
@@ -18378,13 +18395,13 @@ function Accordion(props) {
|
|
|
18378
18395
|
} : {}
|
|
18379
18396
|
}), children: [
|
|
18380
18397
|
titleOnClick ? /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { ...focusProps, "aria-controls": id, "aria-expanded": expanded, className: "df", children: [
|
|
18381
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("button", { ...tid.title, disabled, ...(0,
|
|
18398
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("button", { ...tid.title, disabled, ...(0, import_runtime72.trussProps)({
|
|
18382
18399
|
...touchableStyle,
|
|
18383
18400
|
...{
|
|
18384
18401
|
flexGrow: "fg1"
|
|
18385
18402
|
}
|
|
18386
18403
|
}), onClick: titleOnClick, children: title }),
|
|
18387
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("button", { ...tid.toggle, disabled, ...(0,
|
|
18404
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("button", { ...tid.toggle, disabled, ...(0, import_runtime72.trussProps)({
|
|
18388
18405
|
...touchableStyle,
|
|
18389
18406
|
...{
|
|
18390
18407
|
paddingLeft: "pl2",
|
|
@@ -18396,7 +18413,7 @@ function Accordion(props) {
|
|
|
18396
18413
|
} : {}
|
|
18397
18414
|
}
|
|
18398
18415
|
}), onClick: toggle, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(RotatingChevronIcon, { expanded }) })
|
|
18399
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("button", { ...tid.title, ...focusProps, "aria-controls": id, "aria-expanded": expanded, disabled, ...(0,
|
|
18416
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("button", { ...tid.title, ...focusProps, "aria-controls": id, "aria-expanded": expanded, disabled, ...(0, import_runtime72.trussProps)({
|
|
18400
18417
|
...{
|
|
18401
18418
|
width: "w100"
|
|
18402
18419
|
},
|
|
@@ -18405,13 +18422,13 @@ function Accordion(props) {
|
|
|
18405
18422
|
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { className: "fg1 tal", children: title }),
|
|
18406
18423
|
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(RotatingChevronIcon, { expanded })
|
|
18407
18424
|
] }),
|
|
18408
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ...tid.details, id, "aria-hidden": !expanded, ...(0,
|
|
18425
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ...tid.details, id, "aria-hidden": !expanded, ...(0, import_runtime72.trussProps)({
|
|
18409
18426
|
overflow: "oh",
|
|
18410
18427
|
height: ["h_var", {
|
|
18411
|
-
"--height": (0,
|
|
18428
|
+
"--height": (0, import_runtime72.maybeCssVar)(__maybeInc14(contentHeight))
|
|
18412
18429
|
}],
|
|
18413
18430
|
transition: "transition_height_250ms_ease_in_out"
|
|
18414
|
-
}), children: expanded && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ...(0,
|
|
18431
|
+
}), children: expanded && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ...(0, import_runtime72.trussProps)({
|
|
18415
18432
|
paddingLeft: "pl2",
|
|
18416
18433
|
paddingRight: "pr2",
|
|
18417
18434
|
paddingBottom: "pb2",
|
|
@@ -18426,11 +18443,11 @@ function Accordion(props) {
|
|
|
18426
18443
|
] });
|
|
18427
18444
|
}
|
|
18428
18445
|
function RotatingChevronIcon(props) {
|
|
18429
|
-
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { ...(0,
|
|
18446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { ...(0, import_runtime72.trussProps)({
|
|
18430
18447
|
flexShrink: "fs0",
|
|
18431
18448
|
transition: "transition_transform_250ms_linear",
|
|
18432
18449
|
transform: ["transform_var", {
|
|
18433
|
-
"--transform": (0,
|
|
18450
|
+
"--transform": (0, import_runtime72.maybeCssVar)(props.expanded ? "rotate(180deg)" : "rotate(0deg)")
|
|
18434
18451
|
}]
|
|
18435
18452
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Icon, { icon: "chevronDown" }) });
|
|
18436
18453
|
}
|
|
@@ -18475,7 +18492,7 @@ function assertNever(x) {
|
|
|
18475
18492
|
}
|
|
18476
18493
|
|
|
18477
18494
|
// src/components/AutoSaveIndicator.tsx
|
|
18478
|
-
var
|
|
18495
|
+
var import_runtime73 = require("@homebound/truss/runtime");
|
|
18479
18496
|
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
18480
18497
|
function AutoSaveIndicator({
|
|
18481
18498
|
hideOnIdle,
|
|
@@ -18520,7 +18537,7 @@ function Indicator({
|
|
|
18520
18537
|
icon,
|
|
18521
18538
|
color
|
|
18522
18539
|
}) {
|
|
18523
|
-
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { "data-testid": "autoSave", ...(0,
|
|
18540
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { "data-testid": "autoSave", ...(0, import_runtime73.trussProps)({
|
|
18524
18541
|
display: "df",
|
|
18525
18542
|
gap: "gap1",
|
|
18526
18543
|
alignItems: "aic",
|
|
@@ -18537,7 +18554,7 @@ function Indicator({
|
|
|
18537
18554
|
}
|
|
18538
18555
|
|
|
18539
18556
|
// src/components/Banner.tsx
|
|
18540
|
-
var
|
|
18557
|
+
var import_runtime74 = require("@homebound/truss/runtime");
|
|
18541
18558
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
18542
18559
|
function Banner(props) {
|
|
18543
18560
|
const {
|
|
@@ -18548,7 +18565,7 @@ function Banner(props) {
|
|
|
18548
18565
|
...others
|
|
18549
18566
|
} = props;
|
|
18550
18567
|
const tid = useTestIds(others, "banner");
|
|
18551
|
-
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { ...(0,
|
|
18568
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { ...(0, import_runtime74.trussProps)({
|
|
18552
18569
|
...variantStyles3[type],
|
|
18553
18570
|
...{
|
|
18554
18571
|
display: "df",
|
|
@@ -18672,7 +18689,7 @@ function useModal() {
|
|
|
18672
18689
|
}
|
|
18673
18690
|
|
|
18674
18691
|
// src/components/Modal/Modal.tsx
|
|
18675
|
-
var
|
|
18692
|
+
var import_runtime75 = require("@homebound/truss/runtime");
|
|
18676
18693
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
18677
18694
|
function Modal(props) {
|
|
18678
18695
|
const {
|
|
@@ -18753,7 +18770,7 @@ function Modal(props) {
|
|
|
18753
18770
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
18754
18771
|
[modalBodyRef, modalFooterRef, modalHeaderRef]
|
|
18755
18772
|
);
|
|
18756
|
-
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_aria49.OverlayContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { ...(0,
|
|
18773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_aria49.OverlayContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { ...(0, import_runtime75.trussProps)({
|
|
18757
18774
|
position: "fixed",
|
|
18758
18775
|
top: "tp_0",
|
|
18759
18776
|
bottom: "bot_0",
|
|
@@ -18764,9 +18781,9 @@ function Modal(props) {
|
|
|
18764
18781
|
justifyContent: "jcc",
|
|
18765
18782
|
backgroundColor: "bgc_rgba_36_36_36_0_6",
|
|
18766
18783
|
zIndex: ["z_var", {
|
|
18767
|
-
"--zIndex": (0,
|
|
18784
|
+
"--zIndex": (0, import_runtime75.maybeCssVar)(zIndices.modalUnderlay)
|
|
18768
18785
|
}]
|
|
18769
|
-
}), ...underlayProps, ...testId.underlay, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_aria49.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { ...(0,
|
|
18786
|
+
}), ...underlayProps, ...testId.underlay, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_aria49.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { ...(0, import_runtime75.trussProps)({
|
|
18770
18787
|
borderRadius: "br24",
|
|
18771
18788
|
backgroundColor: ["bgColor_var", {
|
|
18772
18789
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -18794,7 +18811,7 @@ function Modal(props) {
|
|
|
18794
18811
|
borderRadius: "br0"
|
|
18795
18812
|
} : {}
|
|
18796
18813
|
}), ref, ...overlayProps, ...dialogProps, ...modalProps, ...testId, children: [
|
|
18797
|
-
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("header", { ...(0,
|
|
18814
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("header", { ...(0, import_runtime75.trussProps)({
|
|
18798
18815
|
display: "df",
|
|
18799
18816
|
flexDirection: "fdrr",
|
|
18800
18817
|
paddingTop: "pt3",
|
|
@@ -18811,7 +18828,7 @@ function Modal(props) {
|
|
|
18811
18828
|
} : {}
|
|
18812
18829
|
}), children: [
|
|
18813
18830
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: "fs0 pl1", children: allowClosing && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(IconButton, { icon: "x", onClick: closeModal, ...testId.titleClose }) }),
|
|
18814
|
-
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("h1", { ...(0,
|
|
18831
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("h1", { ...(0, import_runtime75.trussProps)({
|
|
18815
18832
|
flexGrow: "fg1",
|
|
18816
18833
|
fontWeight: "fw6",
|
|
18817
18834
|
fontSize: "fz_30px",
|
|
@@ -18821,7 +18838,7 @@ function Modal(props) {
|
|
|
18821
18838
|
}]
|
|
18822
18839
|
}), ref: modalHeaderRef, ...titleProps, ...testId.title })
|
|
18823
18840
|
] }),
|
|
18824
|
-
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("main", { ref: modalBodyRef, ...(0,
|
|
18841
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("main", { ref: modalBodyRef, ...(0, import_runtime75.trussProps)({
|
|
18825
18842
|
flexGrow: "fg1",
|
|
18826
18843
|
overflowY: "oya",
|
|
18827
18844
|
...hasScroll ? {
|
|
@@ -18856,7 +18873,7 @@ function ModalBody({
|
|
|
18856
18873
|
const testId = useTestIds({}, testIdPrefix);
|
|
18857
18874
|
return (0, import_react_dom3.createPortal)(
|
|
18858
18875
|
// If `virtualized`, then we are expecting the `children` will handle their own scrollbar, so have the overflow hidden and adjust padding
|
|
18859
|
-
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { ...(0,
|
|
18876
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { ...(0, import_runtime75.trussProps)({
|
|
18860
18877
|
height: "h100",
|
|
18861
18878
|
...virtualized ? {
|
|
18862
18879
|
overflow: "oh",
|
|
@@ -18877,7 +18894,7 @@ function ModalFooter({
|
|
|
18877
18894
|
modalFooterDiv
|
|
18878
18895
|
} = useBeamContext();
|
|
18879
18896
|
const testId = useTestIds({}, testIdPrefix);
|
|
18880
|
-
return (0, import_react_dom3.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { ...(0,
|
|
18897
|
+
return (0, import_react_dom3.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { ...(0, import_runtime75.trussProps)({
|
|
18881
18898
|
...{
|
|
18882
18899
|
paddingTop: "pt3",
|
|
18883
18900
|
paddingBottom: "pb3",
|
|
@@ -18912,7 +18929,7 @@ function getSize(size) {
|
|
|
18912
18929
|
var import_react94 = require("react");
|
|
18913
18930
|
|
|
18914
18931
|
// src/components/Snackbar/SnackbarNotice.tsx
|
|
18915
|
-
var
|
|
18932
|
+
var import_runtime76 = require("@homebound/truss/runtime");
|
|
18916
18933
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
18917
18934
|
function SnackbarNotice(props) {
|
|
18918
18935
|
const {
|
|
@@ -18925,7 +18942,7 @@ function SnackbarNotice(props) {
|
|
|
18925
18942
|
} = props;
|
|
18926
18943
|
const tid = useTestIds(props, "snackbar");
|
|
18927
18944
|
const reallyHideClose = hideCloseButton && !persistent;
|
|
18928
|
-
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { ...(0,
|
|
18945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { ...(0, import_runtime76.trussProps)({
|
|
18929
18946
|
color: ["color_var", {
|
|
18930
18947
|
"--color": "var(--b-on-surface)"
|
|
18931
18948
|
}],
|
|
@@ -18944,7 +18961,7 @@ function SnackbarNotice(props) {
|
|
|
18944
18961
|
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
18945
18962
|
"span",
|
|
18946
18963
|
{
|
|
18947
|
-
...(0,
|
|
18964
|
+
...(0, import_runtime76.trussProps)({
|
|
18948
18965
|
overflow: "oh",
|
|
18949
18966
|
display: "d_negwebkit_box",
|
|
18950
18967
|
WebkitBoxOrient: "wbo_vertical",
|
|
@@ -18965,7 +18982,7 @@ function SnackbarNotice(props) {
|
|
|
18965
18982
|
}
|
|
18966
18983
|
),
|
|
18967
18984
|
(action || !reallyHideClose) && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("span", { className: "fs0 df aic", children: [
|
|
18968
|
-
action && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { ...(0,
|
|
18985
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { ...(0, import_runtime76.trussProps)({
|
|
18969
18986
|
textTransform: "ttu",
|
|
18970
18987
|
fontWeight: "fw4",
|
|
18971
18988
|
fontSize: "fz_14px",
|
|
@@ -19003,17 +19020,17 @@ var typeToIcon2 = {
|
|
|
19003
19020
|
};
|
|
19004
19021
|
|
|
19005
19022
|
// src/components/Snackbar/Snackbar.tsx
|
|
19006
|
-
var
|
|
19023
|
+
var import_runtime77 = require("@homebound/truss/runtime");
|
|
19007
19024
|
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
19008
19025
|
function Snackbar({
|
|
19009
19026
|
notices,
|
|
19010
19027
|
offset
|
|
19011
19028
|
}) {
|
|
19012
19029
|
const tid = useTestIds({});
|
|
19013
|
-
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { ...tid.snackbarWrapper, ...(0,
|
|
19030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { ...tid.snackbarWrapper, ...(0, import_runtime77.trussProps)({
|
|
19014
19031
|
position: "fixed",
|
|
19015
19032
|
zIndex: ["z_var", {
|
|
19016
|
-
"--zIndex": (0,
|
|
19033
|
+
"--zIndex": (0, import_runtime77.maybeCssVar)(zIndices.snackbar)
|
|
19017
19034
|
}],
|
|
19018
19035
|
bottom: ["bottom_var", {
|
|
19019
19036
|
"--bottom": `${offset.bottom ?? defaultOffset.bottom}px`
|
|
@@ -19060,7 +19077,7 @@ var SuperDrawerWidth = /* @__PURE__ */ ((SuperDrawerWidth2) => {
|
|
|
19060
19077
|
})(SuperDrawerWidth || {});
|
|
19061
19078
|
|
|
19062
19079
|
// src/components/SuperDrawer/SuperDrawer.tsx
|
|
19063
|
-
var
|
|
19080
|
+
var import_runtime78 = require("@homebound/truss/runtime");
|
|
19064
19081
|
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
19065
19082
|
var import_react96 = require("react");
|
|
19066
19083
|
function SuperDrawer() {
|
|
@@ -19104,7 +19121,7 @@ function SuperDrawer() {
|
|
|
19104
19121
|
{
|
|
19105
19122
|
...testId,
|
|
19106
19123
|
key: "superDrawer",
|
|
19107
|
-
...(0,
|
|
19124
|
+
...(0, import_runtime78.trussProps)({
|
|
19108
19125
|
position: "fixed",
|
|
19109
19126
|
display: "df",
|
|
19110
19127
|
justifyContent: "jcfe",
|
|
@@ -19116,7 +19133,7 @@ function SuperDrawer() {
|
|
|
19116
19133
|
bottom: "bottom0",
|
|
19117
19134
|
left: "left0",
|
|
19118
19135
|
zIndex: ["z_var", {
|
|
19119
|
-
"--zIndex": (0,
|
|
19136
|
+
"--zIndex": (0, import_runtime78.maybeCssVar)(zIndices.superDrawerScrim)
|
|
19120
19137
|
}]
|
|
19121
19138
|
}),
|
|
19122
19139
|
initial: {
|
|
@@ -19136,13 +19153,13 @@ function SuperDrawer() {
|
|
|
19136
19153
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
19137
19154
|
import_framer_motion.motion.aside,
|
|
19138
19155
|
{
|
|
19139
|
-
...(0,
|
|
19156
|
+
...(0, import_runtime78.trussProps)({
|
|
19140
19157
|
backgroundColor: ["bgColor_var", {
|
|
19141
19158
|
"--backgroundColor": "var(--b-surface)"
|
|
19142
19159
|
}],
|
|
19143
19160
|
height: "h100",
|
|
19144
19161
|
maxWidth: ["maxw_var", {
|
|
19145
|
-
"--maxWidth": (0,
|
|
19162
|
+
"--maxWidth": (0, import_runtime78.maybeCssVar)(px(width2))
|
|
19146
19163
|
}],
|
|
19147
19164
|
width: "w100",
|
|
19148
19165
|
display: "df",
|
|
@@ -19169,7 +19186,7 @@ function SuperDrawer() {
|
|
|
19169
19186
|
},
|
|
19170
19187
|
onClick: (e) => e.stopPropagation(),
|
|
19171
19188
|
children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(AutoSaveStatusProvider, { children: [
|
|
19172
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("header", { ...(0,
|
|
19189
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("header", { ...(0, import_runtime78.trussProps)({
|
|
19173
19190
|
paddingTop: "pt3",
|
|
19174
19191
|
paddingBottom: "pb3",
|
|
19175
19192
|
paddingRight: "pr3",
|
|
@@ -19184,7 +19201,7 @@ function SuperDrawer() {
|
|
|
19184
19201
|
justifyContent: "jcsb",
|
|
19185
19202
|
gap: "gap3"
|
|
19186
19203
|
}), children: [
|
|
19187
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { ref: headerRef, ...(0,
|
|
19204
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { ref: headerRef, ...(0, import_runtime78.trussProps)({
|
|
19188
19205
|
color: ["color_var", {
|
|
19189
19206
|
"--color": "var(--b-on-surface)"
|
|
19190
19207
|
}],
|
|
@@ -19980,9 +19997,9 @@ function BoundTreeSelectField(props) {
|
|
|
19980
19997
|
|
|
19981
19998
|
// src/forms/FormLines.tsx
|
|
19982
19999
|
var import_react97 = require("react");
|
|
19983
|
-
var
|
|
20000
|
+
var import_runtime79 = require("@homebound/truss/runtime");
|
|
19984
20001
|
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
19985
|
-
var
|
|
20002
|
+
var __maybeInc15 = (inc) => {
|
|
19986
20003
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
19987
20004
|
};
|
|
19988
20005
|
function FormLines(props) {
|
|
@@ -20016,17 +20033,17 @@ function FormLines(props) {
|
|
|
20016
20033
|
fullWidth: true
|
|
20017
20034
|
} : {}
|
|
20018
20035
|
};
|
|
20019
|
-
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(PresentationProvider, { fieldProps: newFieldProps, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { ...(0,
|
|
20036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(PresentationProvider, { fieldProps: newFieldProps, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { ...(0, import_runtime79.trussProps)({
|
|
20020
20037
|
display: "df",
|
|
20021
20038
|
flexDirection: "fdc",
|
|
20022
20039
|
gap: ["gap_var", {
|
|
20023
|
-
"--gap": (0,
|
|
20040
|
+
"--gap": (0, import_runtime79.maybeCssVar)(__maybeInc15(gap))
|
|
20024
20041
|
}],
|
|
20025
20042
|
paddingBottom: ["pb_var", {
|
|
20026
|
-
"--paddingBottom": (0,
|
|
20043
|
+
"--paddingBottom": (0, import_runtime79.maybeCssVar)(__maybeInc15(gap))
|
|
20027
20044
|
}],
|
|
20028
20045
|
width: ["w_var", {
|
|
20029
|
-
"--width": (0,
|
|
20046
|
+
"--width": (0, import_runtime79.maybeCssVar)(__maybeInc15(sizes[width2]))
|
|
20030
20047
|
}]
|
|
20031
20048
|
}), children: import_react97.Children.map(children, (child) => {
|
|
20032
20049
|
if (child && typeof child === "object" && "type" in child && child.type.isFormHeading) {
|
|
@@ -20040,7 +20057,7 @@ function FormLines(props) {
|
|
|
20040
20057
|
}) }) });
|
|
20041
20058
|
}
|
|
20042
20059
|
function FormDivider() {
|
|
20043
|
-
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { ...(0,
|
|
20060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { ...(0, import_runtime79.trussProps)({
|
|
20044
20061
|
height: "h_1px",
|
|
20045
20062
|
backgroundColor: ["bgColor_var", {
|
|
20046
20063
|
"--backgroundColor": "var(--b-surface-separator)"
|
|
@@ -20057,11 +20074,11 @@ function FieldGroup(props) {
|
|
|
20057
20074
|
const width2 = widths2[i] || 1;
|
|
20058
20075
|
return typeof width2 === `number` ? `${width2}fr` : width2;
|
|
20059
20076
|
}).join(" ");
|
|
20060
|
-
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { ...(0,
|
|
20077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { ...(0, import_runtime79.trussProps)({
|
|
20061
20078
|
display: "dg",
|
|
20062
20079
|
gap: "gap2",
|
|
20063
20080
|
gridTemplateColumns: ["gtc_var", {
|
|
20064
|
-
"--gridTemplateColumns": (0,
|
|
20081
|
+
"--gridTemplateColumns": (0, import_runtime79.maybeCssVar)(gtc)
|
|
20065
20082
|
}]
|
|
20066
20083
|
}), children });
|
|
20067
20084
|
}
|
|
@@ -20073,7 +20090,7 @@ var sizes = {
|
|
|
20073
20090
|
};
|
|
20074
20091
|
|
|
20075
20092
|
// src/forms/BoundForm.tsx
|
|
20076
|
-
var
|
|
20093
|
+
var import_runtime80 = require("@homebound/truss/runtime");
|
|
20077
20094
|
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
20078
20095
|
var import_react99 = require("react");
|
|
20079
20096
|
var reactNodePrefix = "reactNode";
|
|
@@ -20128,12 +20145,12 @@ function FormRow({
|
|
|
20128
20145
|
component,
|
|
20129
20146
|
key,
|
|
20130
20147
|
minWidth
|
|
20131
|
-
}) => /* @__PURE__ */ (0, import_react99.createElement)("div", { ...(0,
|
|
20148
|
+
}) => /* @__PURE__ */ (0, import_react99.createElement)("div", { ...(0, import_runtime80.trussProps)({
|
|
20132
20149
|
minWidth: ["mw_var", {
|
|
20133
|
-
"--minWidth": (0,
|
|
20150
|
+
"--minWidth": (0, import_runtime80.maybeCssVar)(minWidth)
|
|
20134
20151
|
}],
|
|
20135
20152
|
flexBasis: ["fb_var", {
|
|
20136
|
-
"--flexBasis": (0,
|
|
20153
|
+
"--flexBasis": (0, import_runtime80.maybeCssVar)(`${itemFlexBasis}%`)
|
|
20137
20154
|
}],
|
|
20138
20155
|
flexGrow: "fg1"
|
|
20139
20156
|
}), key: key.toString() }, isLoading ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(LoadingSkeleton, { size: "lg" }) : component)) });
|
|
@@ -20246,7 +20263,7 @@ function boundTreeSelectField(props) {
|
|
|
20246
20263
|
|
|
20247
20264
|
// src/components/internal/CompoundField.tsx
|
|
20248
20265
|
var import_react100 = require("react");
|
|
20249
|
-
var
|
|
20266
|
+
var import_runtime81 = require("@homebound/truss/runtime");
|
|
20250
20267
|
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
20251
20268
|
function CompoundField({
|
|
20252
20269
|
children
|
|
@@ -20282,7 +20299,7 @@ function CompoundField({
|
|
|
20282
20299
|
setHasFocusWithin(false);
|
|
20283
20300
|
}
|
|
20284
20301
|
return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("div", { className: "df", onFocusCapture, onBlurCapture, children: [
|
|
20285
|
-
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { ...(0,
|
|
20302
|
+
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { ...(0, import_runtime81.trussProps)({
|
|
20286
20303
|
...commonStyles,
|
|
20287
20304
|
...{
|
|
20288
20305
|
borderLeftStyle: "bls_solid",
|
|
@@ -20297,7 +20314,7 @@ function CompoundField({
|
|
|
20297
20314
|
}), children: (0, import_react100.cloneElement)(children[0], {
|
|
20298
20315
|
internalProps
|
|
20299
20316
|
}) }),
|
|
20300
|
-
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { ...(0,
|
|
20317
|
+
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { ...(0, import_runtime81.trussProps)({
|
|
20301
20318
|
...{
|
|
20302
20319
|
width: "w_1px",
|
|
20303
20320
|
flex: "fn",
|
|
@@ -20311,7 +20328,7 @@ function CompoundField({
|
|
|
20311
20328
|
}]
|
|
20312
20329
|
}
|
|
20313
20330
|
}) }),
|
|
20314
|
-
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { ...(0,
|
|
20331
|
+
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)("div", { ...(0, import_runtime81.trussProps)({
|
|
20315
20332
|
...commonStyles,
|
|
20316
20333
|
...{
|
|
20317
20334
|
flexGrow: "fg1",
|
|
@@ -20357,7 +20374,7 @@ function BoundSelectAndTextField(props) {
|
|
|
20357
20374
|
}
|
|
20358
20375
|
|
|
20359
20376
|
// src/forms/FormHeading.tsx
|
|
20360
|
-
var
|
|
20377
|
+
var import_runtime82 = require("@homebound/truss/runtime");
|
|
20361
20378
|
var import_jsx_runtime131 = (
|
|
20362
20379
|
// Add space before the heading, but only if it's not first.
|
|
20363
20380
|
require("react/jsx-runtime")
|
|
@@ -20369,7 +20386,7 @@ function FormHeading(props) {
|
|
|
20369
20386
|
isFirst = false,
|
|
20370
20387
|
...others
|
|
20371
20388
|
} = props;
|
|
20372
|
-
return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("h3", { ...(0,
|
|
20389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)("h3", { ...(0, import_runtime82.trussProps)({
|
|
20373
20390
|
...{
|
|
20374
20391
|
fontWeight: "fw4",
|
|
20375
20392
|
fontSize: "fz_16px",
|
|
@@ -20384,7 +20401,7 @@ function FormHeading(props) {
|
|
|
20384
20401
|
FormHeading.isFormHeading = true;
|
|
20385
20402
|
|
|
20386
20403
|
// src/forms/FormSection.tsx
|
|
20387
|
-
var
|
|
20404
|
+
var import_runtime83 = require("@homebound/truss/runtime");
|
|
20388
20405
|
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
20389
20406
|
function FormSection(props) {
|
|
20390
20407
|
const {
|
|
@@ -20400,7 +20417,7 @@ function FormSection(props) {
|
|
|
20400
20417
|
/* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "df jcsb", children: [
|
|
20401
20418
|
/* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "df fdc gap_12px", children: [
|
|
20402
20419
|
getTitle(title, isChild, tid),
|
|
20403
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { ...(0,
|
|
20420
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { ...(0, import_runtime83.trussProps)({
|
|
20404
20421
|
fontWeight: "fw4",
|
|
20405
20422
|
fontSize: "fz_14px",
|
|
20406
20423
|
lineHeight: "lh_20px",
|
|
@@ -20409,10 +20426,10 @@ function FormSection(props) {
|
|
|
20409
20426
|
}]
|
|
20410
20427
|
}), ...tid.description, children: description })
|
|
20411
20428
|
] }),
|
|
20412
|
-
actions && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "df gap1 fs0", ...tid.actions, children: actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Button, { ...action }, `${action.label}`)) })
|
|
20429
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "df gap1 fs0", ...tid.actions, children: actions.map((action) => action.kind === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(IconButton, { ...action, variant: "outline" }, action.icon) : /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Button, { ...action }, `${action.label}`)) })
|
|
20413
20430
|
] }),
|
|
20414
20431
|
fields,
|
|
20415
|
-
childSections && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "df fdc gap3", children: childSections.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { ...(0,
|
|
20432
|
+
childSections && /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "df fdc gap3", children: childSections.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { ...(0, import_runtime83.trussProps)({
|
|
20416
20433
|
borderBottomStyle: "bbs_solid",
|
|
20417
20434
|
borderBottomWidth: "bbw_1px",
|
|
20418
20435
|
borderColor: ["bc_var", {
|
|
@@ -20433,7 +20450,7 @@ function getTitle(title, isChild, tid) {
|
|
|
20433
20450
|
|
|
20434
20451
|
// src/forms/StaticField.tsx
|
|
20435
20452
|
var import_utils114 = require("@react-aria/utils");
|
|
20436
|
-
var
|
|
20453
|
+
var import_runtime84 = require("@homebound/truss/runtime");
|
|
20437
20454
|
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
20438
20455
|
function StaticField(props) {
|
|
20439
20456
|
const {
|
|
@@ -20447,14 +20464,14 @@ function StaticField(props) {
|
|
|
20447
20464
|
} = props;
|
|
20448
20465
|
const tid = useTestIds(props, typeof label === "string" ? defaultTestId(label) : "staticField");
|
|
20449
20466
|
const id = (0, import_utils114.useId)();
|
|
20450
|
-
return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("div", { ...(0,
|
|
20467
|
+
return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)("div", { ...(0, import_runtime84.trussProps)({
|
|
20451
20468
|
...labelStyle === "left" ? {
|
|
20452
20469
|
display: "df",
|
|
20453
20470
|
justifyContent: "jcsb",
|
|
20454
20471
|
maxWidth: "maxw100"
|
|
20455
20472
|
} : {}
|
|
20456
20473
|
}), ...tid.container, children: [
|
|
20457
|
-
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)("label", { ...(0,
|
|
20474
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)("label", { ...(0, import_runtime84.trussProps)({
|
|
20458
20475
|
display: "db",
|
|
20459
20476
|
fontWeight: "fw4",
|
|
20460
20477
|
fontSize: "fz_14px",
|
|
@@ -20464,7 +20481,7 @@ function StaticField(props) {
|
|
|
20464
20481
|
}],
|
|
20465
20482
|
marginBottom: "mb_4px"
|
|
20466
20483
|
}), htmlFor: id, ...tid.label, children: label }),
|
|
20467
|
-
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { id, ...(0,
|
|
20484
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)("div", { id, ...(0, import_runtime84.trussProps)({
|
|
20468
20485
|
fontWeight: "fw4",
|
|
20469
20486
|
fontSize: "fz_14px",
|
|
20470
20487
|
lineHeight: "lh_20px",
|
|
@@ -20514,7 +20531,7 @@ var import_use_debounce6 = require("use-debounce");
|
|
|
20514
20531
|
// src/components/RightSidebar.tsx
|
|
20515
20532
|
var import_framer_motion2 = require("framer-motion");
|
|
20516
20533
|
var import_react101 = require("react");
|
|
20517
|
-
var
|
|
20534
|
+
var import_runtime85 = require("@homebound/truss/runtime");
|
|
20518
20535
|
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
20519
20536
|
var RIGHT_SIDEBAR_MIN_WIDTH = "250px";
|
|
20520
20537
|
function RightSidebar({
|
|
@@ -20554,27 +20571,27 @@ function RightSidebar({
|
|
|
20554
20571
|
duration: 0.2
|
|
20555
20572
|
},
|
|
20556
20573
|
x: "100%"
|
|
20557
|
-
}, ...(0,
|
|
20574
|
+
}, ...(0, import_runtime85.trussProps)({
|
|
20558
20575
|
width: "w100",
|
|
20559
20576
|
minWidth: ["mw_var", {
|
|
20560
|
-
"--minWidth": (0,
|
|
20577
|
+
"--minWidth": (0, import_runtime85.maybeCssVar)(RIGHT_SIDEBAR_MIN_WIDTH)
|
|
20561
20578
|
}],
|
|
20562
20579
|
zIndex: "z0",
|
|
20563
20580
|
maxHeight: ["maxh_var", {
|
|
20564
|
-
"--maxHeight": (0,
|
|
20581
|
+
"--maxHeight": (0, import_runtime85.maybeCssVar)(`calc(100vh - ${headerHeightPx2}px)`)
|
|
20565
20582
|
}],
|
|
20566
20583
|
overflowY: "oya",
|
|
20567
20584
|
paddingLeft: "pl4",
|
|
20568
20585
|
paddingRight: "pr3"
|
|
20569
20586
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
|
|
20570
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { ...(0,
|
|
20587
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { ...(0, import_runtime85.trussProps)({
|
|
20571
20588
|
position: "sticky",
|
|
20572
20589
|
top: "top0",
|
|
20573
20590
|
backgroundColor: ["bgColor_var", {
|
|
20574
20591
|
"--backgroundColor": "var(--b-surface)"
|
|
20575
20592
|
}]
|
|
20576
20593
|
}), children: [
|
|
20577
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { ...(0,
|
|
20594
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { ...(0, import_runtime85.trussProps)({
|
|
20578
20595
|
position: "absolute",
|
|
20579
20596
|
left: ["left_var", {
|
|
20580
20597
|
"--left": `${-24}px`
|
|
@@ -20585,7 +20602,7 @@ function RightSidebar({
|
|
|
20585
20602
|
alignItems: "aic"
|
|
20586
20603
|
}), children: [
|
|
20587
20604
|
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(IconButton, { bgColor: "--b-surface" /* Surface */, variant: "circle", onClick: () => setSelectedIcon(void 0), icon: "x", inc: 3.5 }),
|
|
20588
|
-
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { ...(0,
|
|
20605
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { ...(0, import_runtime85.trussProps)({
|
|
20589
20606
|
position: "absolute",
|
|
20590
20607
|
top: "top_48px",
|
|
20591
20608
|
height: "h_calc_100vh_168px",
|
|
@@ -20653,7 +20670,7 @@ function Toast() {
|
|
|
20653
20670
|
// src/components/Layout/PageHeaderBreadcrumbs.tsx
|
|
20654
20671
|
var import_react103 = require("react");
|
|
20655
20672
|
var import_react_router_dom5 = require("react-router-dom");
|
|
20656
|
-
var
|
|
20673
|
+
var import_runtime86 = require("@homebound/truss/runtime");
|
|
20657
20674
|
var import_jsx_runtime138 = (
|
|
20658
20675
|
// Adding index to key to prevent rendering issues when multiple items have the same label
|
|
20659
20676
|
require("react/jsx-runtime")
|
|
@@ -20666,7 +20683,7 @@ function PageHeaderBreadcrumbs({
|
|
|
20666
20683
|
const [collapsed, setCollapsed] = (0, import_react103.useState)(true);
|
|
20667
20684
|
function renderBreadcrumb(bc, index, hideDivisor) {
|
|
20668
20685
|
return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_react103.Fragment, { children: [
|
|
20669
|
-
index > 0 && !hideDivisor && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { ...(0,
|
|
20686
|
+
index > 0 && !hideDivisor && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { ...(0, import_runtime86.trussProps)({
|
|
20670
20687
|
fontWeight: "fw6",
|
|
20671
20688
|
fontSize: "fz_14px",
|
|
20672
20689
|
lineHeight: "lh_20px",
|
|
@@ -20678,7 +20695,7 @@ function PageHeaderBreadcrumbs({
|
|
|
20678
20695
|
marginTop: "mt_2px",
|
|
20679
20696
|
marginBottom: "mb_2px"
|
|
20680
20697
|
}), children: "/" }),
|
|
20681
|
-
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_react_router_dom5.Link, { to: bc.href, ...(0,
|
|
20698
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_react_router_dom5.Link, { to: bc.href, ...(0, import_runtime86.mergeProps)("navLink", void 0, {
|
|
20682
20699
|
fontWeight: "fw6",
|
|
20683
20700
|
fontSize: "fz_14px",
|
|
20684
20701
|
lineHeight: "lh_20px",
|
|
@@ -20692,7 +20709,7 @@ function PageHeaderBreadcrumbs({
|
|
|
20692
20709
|
}
|
|
20693
20710
|
return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { className: "df aic mb_4px", children: breadcrumbs.length > 3 && collapsed ? /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_jsx_runtime138.Fragment, { children: [
|
|
20694
20711
|
renderBreadcrumb(breadcrumbs[0], 0),
|
|
20695
|
-
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("button", { ...tids.expand, ...(0,
|
|
20712
|
+
/* @__PURE__ */ (0, import_jsx_runtime138.jsx)("button", { ...tids.expand, ...(0, import_runtime86.trussProps)({
|
|
20696
20713
|
color: ["color_var", {
|
|
20697
20714
|
"--color": "var(--b-on-surface-muted)"
|
|
20698
20715
|
}],
|
|
@@ -20705,7 +20722,7 @@ function PageHeaderBreadcrumbs({
|
|
|
20705
20722
|
}
|
|
20706
20723
|
|
|
20707
20724
|
// src/components/Layout/FormPageLayout.tsx
|
|
20708
|
-
var
|
|
20725
|
+
var import_runtime87 = require("@homebound/truss/runtime");
|
|
20709
20726
|
var import_jsx_runtime139 = require("react/jsx-runtime");
|
|
20710
20727
|
var headerHeightPx = 120;
|
|
20711
20728
|
var maxContentWidthPx = 1600;
|
|
@@ -20728,14 +20745,14 @@ function FormPageLayoutComponent(props) {
|
|
|
20728
20745
|
// since this layout will be replacing most superdrawers/sidebars, we keep the listing mounted below to preserve the users's
|
|
20729
20746
|
// scroll position & filters
|
|
20730
20747
|
// Adding "align-items: start" allows "position: sticky" to work within a grid for the sidebars
|
|
20731
|
-
/* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { ...(0,
|
|
20748
|
+
/* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { ...(0, import_runtime87.trussProps)({
|
|
20732
20749
|
position: "fixed",
|
|
20733
20750
|
top: "top0",
|
|
20734
20751
|
bottom: "bottom0",
|
|
20735
20752
|
left: "left0",
|
|
20736
20753
|
right: "right0",
|
|
20737
20754
|
zIndex: ["z_var", {
|
|
20738
|
-
"--zIndex": (0,
|
|
20755
|
+
"--zIndex": (0, import_runtime87.maybeCssVar)(zIndices.pageOverlay)
|
|
20739
20756
|
}],
|
|
20740
20757
|
overflowY: "oya",
|
|
20741
20758
|
backgroundColor: ["bgColor_var", {
|
|
@@ -20744,14 +20761,14 @@ function FormPageLayoutComponent(props) {
|
|
|
20744
20761
|
display: "df",
|
|
20745
20762
|
justifyContent: "jcc",
|
|
20746
20763
|
alignItems: "aifs"
|
|
20747
|
-
}), ...tids, children: /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", { ...(0,
|
|
20764
|
+
}), ...tids, children: /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("div", { ...(0, import_runtime87.trussProps)({
|
|
20748
20765
|
width: "w100",
|
|
20749
20766
|
maxWidth: ["maxw_var", {
|
|
20750
20767
|
"--maxWidth": `${maxContentWidthPx}px`
|
|
20751
20768
|
}],
|
|
20752
20769
|
display: "dg",
|
|
20753
20770
|
gridTemplateColumns: ["gtc_var", {
|
|
20754
|
-
"--gridTemplateColumns": (0,
|
|
20771
|
+
"--gridTemplateColumns": (0, import_runtime87.maybeCssVar)(gridColumns)
|
|
20755
20772
|
}],
|
|
20756
20773
|
gridTemplateRows: "gtr_auto_1fr",
|
|
20757
20774
|
columnGap: "cg3",
|
|
@@ -20760,7 +20777,7 @@ function FormPageLayoutComponent(props) {
|
|
|
20760
20777
|
/* @__PURE__ */ (0, import_jsx_runtime139.jsx)(PageHeader, { ...props, ...tids.pageHeader }),
|
|
20761
20778
|
/* @__PURE__ */ (0, import_jsx_runtime139.jsx)(LeftNav, { sectionsWithRefs, ...tids }),
|
|
20762
20779
|
/* @__PURE__ */ (0, import_jsx_runtime139.jsx)(FormSections, { sectionsWithRefs, formState, ...tids }),
|
|
20763
|
-
rightSideBar && /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("aside", { ...(0,
|
|
20780
|
+
rightSideBar && /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("aside", { ...(0, import_runtime87.trussProps)({
|
|
20764
20781
|
gridRow: "gr_2",
|
|
20765
20782
|
gridColumn: "gc_3_4",
|
|
20766
20783
|
position: "sticky",
|
|
@@ -20785,7 +20802,7 @@ function PageHeader(props) {
|
|
|
20785
20802
|
notice
|
|
20786
20803
|
} = useToastContext();
|
|
20787
20804
|
const tids = useTestIds(props);
|
|
20788
|
-
return /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("header", { ...(0,
|
|
20805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime139.jsxs)("header", { ...(0, import_runtime87.trussProps)({
|
|
20789
20806
|
gridRow: "gr_1",
|
|
20790
20807
|
gridColumn: "gc_1_4",
|
|
20791
20808
|
position: "sticky",
|
|
@@ -20794,7 +20811,7 @@ function PageHeader(props) {
|
|
|
20794
20811
|
"--backgroundColor": "var(--b-surface)"
|
|
20795
20812
|
}],
|
|
20796
20813
|
zIndex: ["z_var", {
|
|
20797
|
-
"--zIndex": (0,
|
|
20814
|
+
"--zIndex": (0, import_runtime87.maybeCssVar)(zIndices.pageStickyHeader)
|
|
20798
20815
|
}],
|
|
20799
20816
|
...!notice ? {
|
|
20800
20817
|
height: ["h_var", {
|
|
@@ -20823,7 +20840,7 @@ function FormSections(props) {
|
|
|
20823
20840
|
} = props;
|
|
20824
20841
|
const tids = useTestIds(props);
|
|
20825
20842
|
const bottomPaddingPx = sectionsWithRefs.length > 1 ? 200 : 0;
|
|
20826
|
-
return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("article", { ...(0,
|
|
20843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("article", { ...(0, import_runtime87.trussProps)({
|
|
20827
20844
|
gridRow: "gr_2",
|
|
20828
20845
|
gridColumn: "gc_2_3",
|
|
20829
20846
|
paddingBottom: ["pb_var", {
|
|
@@ -20841,13 +20858,13 @@ function FormSections(props) {
|
|
|
20841
20858
|
{
|
|
20842
20859
|
id: sectionKey,
|
|
20843
20860
|
ref,
|
|
20844
|
-
...(0,
|
|
20861
|
+
...(0, import_runtime87.trussProps)({
|
|
20845
20862
|
display: "dg",
|
|
20846
20863
|
gridTemplateColumns: "gtc_50px_1fr",
|
|
20847
20864
|
gridTemplateRows: "gtr_auto",
|
|
20848
20865
|
marginBottom: "mb_72px",
|
|
20849
20866
|
scrollMarginTop: ["scrollMarginTop_var", {
|
|
20850
|
-
"--scrollMarginTop": (0,
|
|
20867
|
+
"--scrollMarginTop": (0, import_runtime87.maybeCssVar)(`${headerHeightPx}px`)
|
|
20851
20868
|
}]
|
|
20852
20869
|
}),
|
|
20853
20870
|
...tids.formSection,
|
|
@@ -20872,7 +20889,7 @@ function LeftNav(props) {
|
|
|
20872
20889
|
section
|
|
20873
20890
|
}) => !!section.title), [sectionsWithRefs]);
|
|
20874
20891
|
const activeSection = useActiveSection(sectionWithTitles);
|
|
20875
|
-
return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("aside", { ...(0,
|
|
20892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("aside", { ...(0, import_runtime87.trussProps)({
|
|
20876
20893
|
gridRow: "gr_2",
|
|
20877
20894
|
gridColumn: "gc_1_2",
|
|
20878
20895
|
position: "sticky",
|
|
@@ -20891,7 +20908,7 @@ var activeStyles = {
|
|
|
20891
20908
|
fontSize: "fz_14px",
|
|
20892
20909
|
lineHeight: "lh_20px",
|
|
20893
20910
|
boxShadow: ["boxShadow_var", {
|
|
20894
|
-
"--boxShadow": (0,
|
|
20911
|
+
"--boxShadow": (0, import_runtime87.maybeCssVar)(`inset 3px 0px 0 0px var(${"--b-primary" /* Primary */})`)
|
|
20895
20912
|
}]
|
|
20896
20913
|
};
|
|
20897
20914
|
var hoverStyles2 = {
|
|
@@ -20901,7 +20918,7 @@ var hoverStyles2 = {
|
|
|
20901
20918
|
lineHeight: "lh_20px",
|
|
20902
20919
|
color: "blue900",
|
|
20903
20920
|
boxShadow: ["boxShadow_var", {
|
|
20904
|
-
"--boxShadow": (0,
|
|
20921
|
+
"--boxShadow": (0, import_runtime87.maybeCssVar)(`inset 3px 0px 0 0px var(${"--b-primary" /* Primary */})`)
|
|
20905
20922
|
}]
|
|
20906
20923
|
};
|
|
20907
20924
|
var defaultFocusRingStyles = {
|
|
@@ -20941,7 +20958,7 @@ function SectionNavLink(props) {
|
|
|
20941
20958
|
hoverProps,
|
|
20942
20959
|
isHovered
|
|
20943
20960
|
} = useHover2({});
|
|
20944
|
-
return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("button", { ref: buttonRef, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
20961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("button", { ref: buttonRef, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime87.trussProps)({
|
|
20945
20962
|
...{
|
|
20946
20963
|
fontWeight: "fw6",
|
|
20947
20964
|
fontSize: "fz_14px",
|
|
@@ -21018,9 +21035,9 @@ function useActiveSection(sectionsWithRefs) {
|
|
|
21018
21035
|
}
|
|
21019
21036
|
|
|
21020
21037
|
// src/components/Layout/FullBleed.tsx
|
|
21021
|
-
var
|
|
21038
|
+
var import_runtime88 = require("@homebound/truss/runtime");
|
|
21022
21039
|
var import_react105 = require("react");
|
|
21023
|
-
var
|
|
21040
|
+
var __maybeInc16 = (inc) => {
|
|
21024
21041
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
21025
21042
|
};
|
|
21026
21043
|
function FullBleed({
|
|
@@ -21044,24 +21061,24 @@ function FullBleed({
|
|
|
21044
21061
|
// ...for some reason this keeps the Layout top padding better than using
|
|
21045
21062
|
// react-aria's more generic mergeProps.
|
|
21046
21063
|
{
|
|
21047
|
-
...(0,
|
|
21064
|
+
...(0, import_runtime88.mergeProps)(
|
|
21048
21065
|
className,
|
|
21049
21066
|
style,
|
|
21050
21067
|
// ScrollableParent applies horizontal padding to its content column, so FullBleed
|
|
21051
21068
|
// inverts that padding with negative margins before re-applying it to the child.
|
|
21052
21069
|
{
|
|
21053
21070
|
marginLeft: ["ml_var", {
|
|
21054
|
-
"--marginLeft": (0,
|
|
21071
|
+
"--marginLeft": (0, import_runtime88.maybeCssVar)(__maybeInc16(invertSpacing(paddingLeft)))
|
|
21055
21072
|
}],
|
|
21056
21073
|
marginRight: ["mr_var", {
|
|
21057
|
-
"--marginRight": (0,
|
|
21074
|
+
"--marginRight": (0, import_runtime88.maybeCssVar)(__maybeInc16(invertSpacing(paddingRight)))
|
|
21058
21075
|
}],
|
|
21059
21076
|
...!omitPadding ? {
|
|
21060
21077
|
paddingLeft: ["pl_var", {
|
|
21061
|
-
"--paddingLeft": (0,
|
|
21078
|
+
"--paddingLeft": (0, import_runtime88.maybeCssVar)(__maybeInc16(paddingLeft))
|
|
21062
21079
|
}],
|
|
21063
21080
|
paddingRight: ["pr_var", {
|
|
21064
|
-
"--paddingRight": (0,
|
|
21081
|
+
"--paddingRight": (0, import_runtime88.maybeCssVar)(__maybeInc16(paddingRight))
|
|
21065
21082
|
}]
|
|
21066
21083
|
} : {}
|
|
21067
21084
|
}
|
|
@@ -21137,7 +21154,7 @@ function isSelectionButtonMenuProps(props) {
|
|
|
21137
21154
|
}
|
|
21138
21155
|
|
|
21139
21156
|
// src/components/CountBadge.tsx
|
|
21140
|
-
var
|
|
21157
|
+
var import_runtime89 = require("@homebound/truss/runtime");
|
|
21141
21158
|
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
21142
21159
|
function CountBadge(props) {
|
|
21143
21160
|
const {
|
|
@@ -21149,7 +21166,7 @@ function CountBadge(props) {
|
|
|
21149
21166
|
} = props;
|
|
21150
21167
|
const tid = useTestIds(otherProps, "countBadge");
|
|
21151
21168
|
if (hideIfZero && count === 0) return null;
|
|
21152
|
-
return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("span", { ...tid, ...(0,
|
|
21169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("span", { ...tid, ...(0, import_runtime89.trussProps)({
|
|
21153
21170
|
...{
|
|
21154
21171
|
height: ["sq_var", {
|
|
21155
21172
|
"--height": `${count > 100 ? 18 : 16}px`
|
|
@@ -21169,12 +21186,12 @@ function CountBadge(props) {
|
|
|
21169
21186
|
alignItems: "aic",
|
|
21170
21187
|
justifyContent: "jcc",
|
|
21171
21188
|
backgroundColor: ["bgColor_var", {
|
|
21172
|
-
"--backgroundColor": (0,
|
|
21189
|
+
"--backgroundColor": (0, import_runtime89.maybeCssVar)(bgColor)
|
|
21173
21190
|
}]
|
|
21174
21191
|
},
|
|
21175
21192
|
...{
|
|
21176
21193
|
color: ["color_var", {
|
|
21177
|
-
"--color": (0,
|
|
21194
|
+
"--color": (0, import_runtime89.maybeCssVar)(color)
|
|
21178
21195
|
}]
|
|
21179
21196
|
}
|
|
21180
21197
|
}), children: count });
|
|
@@ -21649,7 +21666,7 @@ function OpenModal(props) {
|
|
|
21649
21666
|
}
|
|
21650
21667
|
|
|
21651
21668
|
// src/components/Filters/FilterModal.tsx
|
|
21652
|
-
var
|
|
21669
|
+
var import_runtime90 = require("@homebound/truss/runtime");
|
|
21653
21670
|
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
21654
21671
|
function FilterModal(props) {
|
|
21655
21672
|
const {
|
|
@@ -21686,7 +21703,7 @@ function ModalFilterItem({
|
|
|
21686
21703
|
label,
|
|
21687
21704
|
children
|
|
21688
21705
|
}) {
|
|
21689
|
-
return /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { ...(0,
|
|
21706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { ...(0, import_runtime90.trussProps)({
|
|
21690
21707
|
marginBottom: "mb4",
|
|
21691
21708
|
...!label ? {
|
|
21692
21709
|
borderTopStyle: "bts_solid",
|
|
@@ -21695,7 +21712,7 @@ function ModalFilterItem({
|
|
|
21695
21712
|
} : {}
|
|
21696
21713
|
}), children: [
|
|
21697
21714
|
label && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("h2", { className: "fw4 fz_16px lh_24px mb2", children: label }),
|
|
21698
|
-
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...(0,
|
|
21715
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...(0, import_runtime90.trussProps)({
|
|
21699
21716
|
...!label ? {
|
|
21700
21717
|
paddingTop: "pt3"
|
|
21701
21718
|
} : {}
|
|
@@ -21705,7 +21722,7 @@ function ModalFilterItem({
|
|
|
21705
21722
|
|
|
21706
21723
|
// src/components/Filters/Filters.tsx
|
|
21707
21724
|
var import_react109 = require("react");
|
|
21708
|
-
var
|
|
21725
|
+
var import_runtime91 = require("@homebound/truss/runtime");
|
|
21709
21726
|
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
21710
21727
|
function Filters(props) {
|
|
21711
21728
|
const {
|
|
@@ -21729,7 +21746,7 @@ function Filters(props) {
|
|
|
21729
21746
|
}, [numberOfInlineFilters, vertical, filterDefs]);
|
|
21730
21747
|
const numModalFilters = safeKeys(modalFilters).filter((fk) => filter[fk] !== void 0).length;
|
|
21731
21748
|
const maybeGroupByField = groupBy ? /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(SelectField, { label: "Group by", labelStyle: !vertical ? "inline" : "above", sizeToContent: !vertical, options: groupBy.options, getOptionValue: (o) => o.id, getOptionLabel: (o) => o.name, value: groupBy.value, onSelect: (g) => g && groupBy.setValue(g) }) }) : null;
|
|
21732
|
-
return /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { ...(0,
|
|
21749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { ...(0, import_runtime91.trussProps)({
|
|
21733
21750
|
...vertical ? {
|
|
21734
21751
|
display: "df",
|
|
21735
21752
|
flexDirection: "fdc",
|
|
@@ -21790,7 +21807,7 @@ var ToggleFilter = class extends BaseFilter {
|
|
|
21790
21807
|
var import_react110 = require("react");
|
|
21791
21808
|
var import_react_aria52 = require("react-aria");
|
|
21792
21809
|
var import_react_stately18 = require("react-stately");
|
|
21793
|
-
var
|
|
21810
|
+
var import_runtime92 = require("@homebound/truss/runtime");
|
|
21794
21811
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
21795
21812
|
function EditColumnsButton(props) {
|
|
21796
21813
|
const {
|
|
@@ -21839,7 +21856,7 @@ function EditColumnsButton(props) {
|
|
|
21839
21856
|
label: "",
|
|
21840
21857
|
size: "md",
|
|
21841
21858
|
variant: "secondaryBlack"
|
|
21842
|
-
}, menuTriggerProps, state, buttonRef, ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { ...(0,
|
|
21859
|
+
}, menuTriggerProps, state, buttonRef, ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { ...(0, import_runtime92.trussProps)({
|
|
21843
21860
|
display: "df",
|
|
21844
21861
|
flexDirection: "fdc",
|
|
21845
21862
|
backgroundColor: ["bgColor_var", {
|
|
@@ -21856,7 +21873,7 @@ function EditColumnsButton(props) {
|
|
|
21856
21873
|
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "fw4 fz_14px lh_20px wsnw oh to_ellipsis pr1", children: option.label }),
|
|
21857
21874
|
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)(Switch, { compact: true, selected: selectedValues.includes(option.value), onChange: (value) => setSelectedValues(value ? [...selectedValues, option.value] : selectedValues.filter((v) => v !== option.value)), labelStyle: "hidden", label: option.label, ...tid[`option${option.value}`] })
|
|
21858
21875
|
] }, option.value)) }),
|
|
21859
|
-
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0,
|
|
21876
|
+
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0, import_runtime92.trussProps)({
|
|
21860
21877
|
display: "df",
|
|
21861
21878
|
justifyContent: "jcc",
|
|
21862
21879
|
paddingTop: "pt2",
|
|
@@ -21898,7 +21915,7 @@ var import_use_debounce7 = require("use-debounce");
|
|
|
21898
21915
|
var import_use_query_params3 = require("use-query-params");
|
|
21899
21916
|
|
|
21900
21917
|
// src/components/Layout/GridTableLayout/FilterPanel.tsx
|
|
21901
|
-
var
|
|
21918
|
+
var import_runtime93 = require("@homebound/truss/runtime");
|
|
21902
21919
|
|
|
21903
21920
|
// src/components/Layout/GridTableLayout/GroupByField.tsx
|
|
21904
21921
|
var import_jsx_runtime156 = require("react/jsx-runtime");
|
|
@@ -21934,7 +21951,7 @@ function FilterPanelOpen({
|
|
|
21934
21951
|
const inDocumentScrollLayout = useDocumentScrollLayout();
|
|
21935
21952
|
const activeFilterCount = getActiveFilterCount(filter ?? {});
|
|
21936
21953
|
const filterControls = filter && setFilter ? buildFilterControls(filterImpls, filter, setFilter, tid) : null;
|
|
21937
|
-
return /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("div", { ...(0,
|
|
21954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("div", { ...(0, import_runtime93.trussProps)({
|
|
21938
21955
|
...{
|
|
21939
21956
|
display: "df",
|
|
21940
21957
|
alignItems: "aic",
|
|
@@ -21966,7 +21983,7 @@ function FilterPanelClosed({
|
|
|
21966
21983
|
if (!filter || !setFilter) return null;
|
|
21967
21984
|
const chips = safeEntries(filterImpls).flatMap(([key, f]) => chipsForFilterKey(key, f, filter, setFilter, tid));
|
|
21968
21985
|
if (chips.length === 0) return null;
|
|
21969
|
-
return /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("div", { ...(0,
|
|
21986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("div", { ...(0, import_runtime93.trussProps)({
|
|
21970
21987
|
display: "df",
|
|
21971
21988
|
gap: "gap1",
|
|
21972
21989
|
alignItems: "aic",
|
|
@@ -22007,7 +22024,7 @@ function chipsForFilterKey(key, f, filter, onChange, testId) {
|
|
|
22007
22024
|
}
|
|
22008
22025
|
|
|
22009
22026
|
// src/components/Layout/GridTableLayout/GridTableLayoutActions.tsx
|
|
22010
|
-
var
|
|
22027
|
+
var import_runtime94 = require("@homebound/truss/runtime");
|
|
22011
22028
|
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
22012
22029
|
function GridTableLayoutActionsComponent(props) {
|
|
22013
22030
|
const {
|
|
@@ -22071,7 +22088,7 @@ function GridTableLayoutActionsComponent(props) {
|
|
|
22071
22088
|
}
|
|
22072
22089
|
};
|
|
22073
22090
|
}
|
|
22074
|
-
return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { ...(0,
|
|
22091
|
+
return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { ...(0, import_runtime94.trussProps)({
|
|
22075
22092
|
display: "df",
|
|
22076
22093
|
flexDirection: "fdc",
|
|
22077
22094
|
gap: "gap1",
|
|
@@ -22080,7 +22097,7 @@ function GridTableLayoutActionsComponent(props) {
|
|
|
22080
22097
|
paddingBottom: "pb3"
|
|
22081
22098
|
} : {}
|
|
22082
22099
|
}), children: [
|
|
22083
|
-
/* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { ...(0,
|
|
22100
|
+
/* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { ...(0, import_runtime94.trussProps)({
|
|
22084
22101
|
...{
|
|
22085
22102
|
display: "df",
|
|
22086
22103
|
gap: "gap1",
|
|
@@ -22107,7 +22124,7 @@ function GridTableLayoutActionsComponent(props) {
|
|
|
22107
22124
|
} })
|
|
22108
22125
|
] })
|
|
22109
22126
|
] }),
|
|
22110
|
-
sm && showSearch && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { ...(0,
|
|
22127
|
+
sm && showSearch && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { ...(0, import_runtime94.trussProps)(pageContentPaddingX), children: searchTextField }),
|
|
22111
22128
|
hasFilterControls && !showInlineControl && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(FilterPanel, { isOpen: showFilters, groupBy, filterImpls, filter, setFilter, onClear: clearFilters })
|
|
22112
22129
|
] });
|
|
22113
22130
|
}
|
|
@@ -22117,7 +22134,7 @@ var _GridTableLayoutActions = (0, import_react111.memo)(GridTableLayoutActionsCo
|
|
|
22117
22134
|
var import_react112 = require("react");
|
|
22118
22135
|
|
|
22119
22136
|
// src/components/LoadingSkeleton.tsx
|
|
22120
|
-
var
|
|
22137
|
+
var import_runtime95 = require("@homebound/truss/runtime");
|
|
22121
22138
|
var import_jsx_runtime159 = require("react/jsx-runtime");
|
|
22122
22139
|
function LoadingSkeleton({
|
|
22123
22140
|
rows = 1,
|
|
@@ -22130,18 +22147,18 @@ function LoadingSkeleton({
|
|
|
22130
22147
|
const rowHeight = sizeToPixels2[size];
|
|
22131
22148
|
const rowCells = (rowNumber) => {
|
|
22132
22149
|
const flexGrowForCell = randomizeWidths ? getRandomizedFlexBasisByRowIndex(rowNumber) : 1;
|
|
22133
|
-
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0,
|
|
22150
|
+
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0, import_runtime95.trussProps)({
|
|
22134
22151
|
borderRadius: "br4",
|
|
22135
22152
|
animation: "animation_pulse_2s_cubic_bezier_0_4_0_0_6_1_infinite",
|
|
22136
22153
|
flexGrow: ["flexGrow_var", {
|
|
22137
|
-
"--flexGrow": (0,
|
|
22154
|
+
"--flexGrow": (0, import_runtime95.maybeCssVar)(flexGrowForCell)
|
|
22138
22155
|
}],
|
|
22139
22156
|
backgroundColor: ["bgColor_var", {
|
|
22140
22157
|
"--backgroundColor": "var(--b-loader-fill)"
|
|
22141
22158
|
}]
|
|
22142
22159
|
}) }, `row-${rowNumber}-cell-${i}`));
|
|
22143
22160
|
};
|
|
22144
|
-
return /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0,
|
|
22161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0, import_runtime95.trussProps)({
|
|
22145
22162
|
display: "df",
|
|
22146
22163
|
gap: "gap1",
|
|
22147
22164
|
marginBottom: "mb1",
|
|
@@ -22226,9 +22243,9 @@ function parseStoredTableView(raw) {
|
|
|
22226
22243
|
}
|
|
22227
22244
|
|
|
22228
22245
|
// src/components/Layout/GridTableLayout/GridTableLayout.tsx
|
|
22229
|
-
var
|
|
22246
|
+
var import_runtime96 = require("@homebound/truss/runtime");
|
|
22230
22247
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
22231
|
-
var
|
|
22248
|
+
var __maybeInc17 = (inc) => {
|
|
22232
22249
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
22233
22250
|
};
|
|
22234
22251
|
function GridTableLayoutComponent(props) {
|
|
@@ -22282,21 +22299,21 @@ function GridTableLayoutComponent(props) {
|
|
|
22282
22299
|
as: cardAs
|
|
22283
22300
|
} : {}, api, emptyState, filter: clientSearch, style: tableStyle, stickyHeader: true, disableColumnResizing: false, visibleColumnsStorageKey, columnGutter: inDocumentScrollLayout }) });
|
|
22284
22301
|
const tableScrollContent = /* @__PURE__ */ (0, import_jsx_runtime161.jsxs)(import_jsx_runtime161.Fragment, { children: [
|
|
22285
|
-
showTableActions && /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ref: tableActionsRef, ...(0,
|
|
22302
|
+
showTableActions && /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ref: tableActionsRef, ...(0, import_runtime96.trussProps)({
|
|
22286
22303
|
...inDocumentScrollLayout ? {
|
|
22287
22304
|
transition: "transitionTop",
|
|
22288
22305
|
position: "sticky",
|
|
22289
22306
|
top: ["top_var", {
|
|
22290
|
-
"--top": (0,
|
|
22307
|
+
"--top": (0, import_runtime96.maybeCssVar)(__maybeInc17(stickyNavAndHeaderOffset()))
|
|
22291
22308
|
}],
|
|
22292
22309
|
left: ["left_var", {
|
|
22293
|
-
"--left": (0,
|
|
22310
|
+
"--left": (0, import_runtime96.maybeCssVar)(__maybeInc17(documentScrollChromeLeft()))
|
|
22294
22311
|
}],
|
|
22295
22312
|
width: ["w_var", {
|
|
22296
|
-
"--width": (0,
|
|
22313
|
+
"--width": (0, import_runtime96.maybeCssVar)(__maybeInc17(`min(100%, ${documentScrollChromeWidth()})`))
|
|
22297
22314
|
}],
|
|
22298
22315
|
zIndex: ["z_var", {
|
|
22299
|
-
"--zIndex": (0,
|
|
22316
|
+
"--zIndex": (0, import_runtime96.maybeCssVar)(zIndices.tableActions)
|
|
22300
22317
|
}],
|
|
22301
22318
|
backgroundColor: ["bgColor_var", {
|
|
22302
22319
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -22464,9 +22481,9 @@ function useRightPaneContext() {
|
|
|
22464
22481
|
// src/components/Layout/RightPaneLayout/RightPaneLayout.tsx
|
|
22465
22482
|
var import_framer_motion3 = require("framer-motion");
|
|
22466
22483
|
var import_react116 = require("react");
|
|
22467
|
-
var
|
|
22484
|
+
var import_runtime97 = require("@homebound/truss/runtime");
|
|
22468
22485
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
22469
|
-
var
|
|
22486
|
+
var __maybeInc18 = (inc) => {
|
|
22470
22487
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
22471
22488
|
};
|
|
22472
22489
|
function RightPaneLayout(props) {
|
|
@@ -22484,10 +22501,10 @@ function RightPaneLayout(props) {
|
|
|
22484
22501
|
} = useRightPaneContext();
|
|
22485
22502
|
(0, import_react116.useEffect)(() => closePane, [closePane]);
|
|
22486
22503
|
return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "h100 df oxh", children: /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)(import_jsx_runtime164.Fragment, { children: [
|
|
22487
|
-
/* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { ...(0,
|
|
22504
|
+
/* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { ...(0, import_runtime97.trussProps)({
|
|
22488
22505
|
...{
|
|
22489
22506
|
width: ["w_var", {
|
|
22490
|
-
"--width": (0,
|
|
22507
|
+
"--width": (0, import_runtime97.maybeCssVar)(__maybeInc18(`calc(100% - ${paneWidth + 24}px)`))
|
|
22491
22508
|
}],
|
|
22492
22509
|
transition: "transition_width_2s_linear",
|
|
22493
22510
|
height: "h100",
|
|
@@ -22503,13 +22520,13 @@ function RightPaneLayout(props) {
|
|
|
22503
22520
|
...{
|
|
22504
22521
|
...!!defaultPaneContent ? {
|
|
22505
22522
|
width: ["w_var", {
|
|
22506
|
-
"--width": (0,
|
|
22523
|
+
"--width": (0, import_runtime97.maybeCssVar)(__maybeInc18(`calc(100% - ${paneWidth + 24}px)`))
|
|
22507
22524
|
}],
|
|
22508
22525
|
marginRight: "mr3"
|
|
22509
22526
|
} : {}
|
|
22510
22527
|
}
|
|
22511
22528
|
}), children }),
|
|
22512
|
-
/* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { ...(0,
|
|
22529
|
+
/* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { ...(0, import_runtime97.trussProps)({
|
|
22513
22530
|
position: "relative",
|
|
22514
22531
|
...!!defaultPaneContent ? {
|
|
22515
22532
|
width: ["w_var", {
|
|
@@ -22517,7 +22534,7 @@ function RightPaneLayout(props) {
|
|
|
22517
22534
|
}]
|
|
22518
22535
|
} : {}
|
|
22519
22536
|
}), children: [
|
|
22520
|
-
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { ...(0,
|
|
22537
|
+
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { ...(0, import_runtime97.trussProps)({
|
|
22521
22538
|
height: "h100",
|
|
22522
22539
|
width: ["w_var", {
|
|
22523
22540
|
"--width": `${paneWidth}px`
|
|
@@ -22535,9 +22552,9 @@ function RightPaneLayout(props) {
|
|
|
22535
22552
|
{
|
|
22536
22553
|
layout: "position",
|
|
22537
22554
|
"data-testid": "rightPaneContent",
|
|
22538
|
-
...(0,
|
|
22555
|
+
...(0, import_runtime97.trussProps)({
|
|
22539
22556
|
backgroundColor: ["bgColor_var", {
|
|
22540
|
-
"--backgroundColor": (0,
|
|
22557
|
+
"--backgroundColor": (0, import_runtime97.maybeCssVar)(paneBgColor)
|
|
22541
22558
|
}],
|
|
22542
22559
|
height: "h100",
|
|
22543
22560
|
width: ["w_var", {
|
|
@@ -22618,7 +22635,7 @@ function SidePanel(props) {
|
|
|
22618
22635
|
}
|
|
22619
22636
|
|
|
22620
22637
|
// src/components/Layout/TableReviewLayout/TableReviewLayout.tsx
|
|
22621
|
-
var
|
|
22638
|
+
var import_runtime98 = require("@homebound/truss/runtime");
|
|
22622
22639
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
22623
22640
|
var defaultRightPaneWidth = 450;
|
|
22624
22641
|
function TableReviewLayout(props) {
|
|
@@ -22660,14 +22677,14 @@ function TableReviewLayout(props) {
|
|
|
22660
22677
|
bordered: true
|
|
22661
22678
|
}, stickyHeader: true });
|
|
22662
22679
|
}
|
|
22663
|
-
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0,
|
|
22680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0, import_runtime98.trussProps)({
|
|
22664
22681
|
position: "fixed",
|
|
22665
22682
|
top: "top0",
|
|
22666
22683
|
bottom: "bottom0",
|
|
22667
22684
|
left: "left0",
|
|
22668
22685
|
right: "right0",
|
|
22669
22686
|
zIndex: ["z_var", {
|
|
22670
|
-
"--zIndex": (0,
|
|
22687
|
+
"--zIndex": (0, import_runtime98.maybeCssVar)(zIndices.pageOverlay)
|
|
22671
22688
|
}],
|
|
22672
22689
|
backgroundColor: ["bgColor_var", {
|
|
22673
22690
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -22684,7 +22701,7 @@ function TableReviewLayout(props) {
|
|
|
22684
22701
|
] }),
|
|
22685
22702
|
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Button, { label: "Close", onClick: closeAction, ...tid.closeButton })
|
|
22686
22703
|
] }),
|
|
22687
|
-
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ...(0,
|
|
22704
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ...(0, import_runtime98.trussProps)({
|
|
22688
22705
|
fontWeight: "fw4",
|
|
22689
22706
|
fontSize: "fz_14px",
|
|
22690
22707
|
lineHeight: "lh_20px",
|
|
@@ -22695,7 +22712,7 @@ function TableReviewLayout(props) {
|
|
|
22695
22712
|
}), ...tid.description, children: description })
|
|
22696
22713
|
] }),
|
|
22697
22714
|
/* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { className: "fg1 df mh0", ...tid.content, children: [
|
|
22698
|
-
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ...(0,
|
|
22715
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ...(0, import_runtime98.trussProps)({
|
|
22699
22716
|
...{
|
|
22700
22717
|
flexGrow: "fg1",
|
|
22701
22718
|
overflowY: "oya",
|
|
@@ -22718,7 +22735,7 @@ function TableReviewLayout(props) {
|
|
|
22718
22735
|
ease: "linear",
|
|
22719
22736
|
duration: 0.2
|
|
22720
22737
|
}, className: "df fdc fs0 relative", children: [
|
|
22721
|
-
/* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0,
|
|
22738
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { ...(0, import_runtime98.trussProps)({
|
|
22722
22739
|
position: "absolute",
|
|
22723
22740
|
top: ["top_var", {
|
|
22724
22741
|
"--top": `${-32}px`
|
|
@@ -22732,7 +22749,7 @@ function TableReviewLayout(props) {
|
|
|
22732
22749
|
zIndex: "z1"
|
|
22733
22750
|
}), children: [
|
|
22734
22751
|
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)(IconButton, { bgColor: "--b-surface" /* Surface */, variant: "circle", icon: "x", inc: 3.5, onClick: handleClosePanel, ...tid.closePanelButton }),
|
|
22735
|
-
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ...(0,
|
|
22752
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ...(0, import_runtime98.trussProps)({
|
|
22736
22753
|
width: "w_1px",
|
|
22737
22754
|
backgroundColor: ["bgColor_var", {
|
|
22738
22755
|
"--backgroundColor": "var(--b-field-border-default)"
|
|
@@ -22818,7 +22835,7 @@ function useBeamContext() {
|
|
|
22818
22835
|
// src/components/Breadcrumbs.tsx
|
|
22819
22836
|
var import_react119 = require("react");
|
|
22820
22837
|
var import_react_router_dom6 = require("react-router-dom");
|
|
22821
|
-
var
|
|
22838
|
+
var import_runtime99 = require("@homebound/truss/runtime");
|
|
22822
22839
|
var import_jsx_runtime169 = (
|
|
22823
22840
|
// Index is added to the key to prevent rendering issues when multiple items have the same label
|
|
22824
22841
|
require("react/jsx-runtime")
|
|
@@ -22837,7 +22854,7 @@ function Breadcrumbs({
|
|
|
22837
22854
|
function renderBreadcrumb(bc, index, isLast) {
|
|
22838
22855
|
return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(import_react119.Fragment, { children: [
|
|
22839
22856
|
index > 0 && /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "fs0 fw4 fz_12px lh_16px", children: "/" }),
|
|
22840
|
-
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)(import_react_router_dom6.Link, { ...tid.link, to: bc.href, title: bc.label, ...(0,
|
|
22857
|
+
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)(import_react_router_dom6.Link, { ...tid.link, to: bc.href, title: bc.label, ...(0, import_runtime99.trussProps)({
|
|
22841
22858
|
...{
|
|
22842
22859
|
fontWeight: "fw4",
|
|
22843
22860
|
fontSize: "fz_12px",
|
|
@@ -22896,7 +22913,7 @@ function ButtonDatePicker(props) {
|
|
|
22896
22913
|
// src/components/ButtonGroup.tsx
|
|
22897
22914
|
var import_react121 = require("react");
|
|
22898
22915
|
var import_react_aria55 = require("react-aria");
|
|
22899
|
-
var
|
|
22916
|
+
var import_runtime100 = require("@homebound/truss/runtime");
|
|
22900
22917
|
var import_jsx_runtime171 = (
|
|
22901
22918
|
// Disable the button if the ButtonGroup is disabled or if the current button is disabled.
|
|
22902
22919
|
require("react/jsx-runtime")
|
|
@@ -22910,7 +22927,7 @@ function ButtonGroup(props) {
|
|
|
22910
22927
|
const tid = useTestIds(props, "buttonGroup");
|
|
22911
22928
|
return (
|
|
22912
22929
|
// Adding `line-height: 0` prevent inheriting line-heights that might throw off sizing within the button group.
|
|
22913
|
-
/* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { ...tid, ...(0,
|
|
22930
|
+
/* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { ...tid, ...(0, import_runtime100.trussProps)({
|
|
22914
22931
|
...{
|
|
22915
22932
|
display: "df",
|
|
22916
22933
|
lineHeight: "lh_0"
|
|
@@ -22956,10 +22973,10 @@ function GroupButton(props) {
|
|
|
22956
22973
|
isHovered
|
|
22957
22974
|
} = (0, import_react_aria55.useHover)(ariaProps);
|
|
22958
22975
|
const tid = useTestIds(props);
|
|
22959
|
-
return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { ...(0,
|
|
22976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { ...(0, import_runtime100.trussProps)(getButtonStyles2(isFirst, isLast)), children: maybeTooltip({
|
|
22960
22977
|
title: resolveTooltip(disabled, tooltip),
|
|
22961
22978
|
placement: "top",
|
|
22962
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
22979
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime100.trussProps)({
|
|
22963
22980
|
...{
|
|
22964
22981
|
fontWeight: "fw6",
|
|
22965
22982
|
fontSize: "fz_14px",
|
|
@@ -23082,7 +23099,7 @@ var import_react_aria56 = require("react-aria");
|
|
|
23082
23099
|
// src/components/Tag.tsx
|
|
23083
23100
|
var import_utils141 = require("@react-aria/utils");
|
|
23084
23101
|
var import_react122 = require("react");
|
|
23085
|
-
var
|
|
23102
|
+
var import_runtime101 = require("@homebound/truss/runtime");
|
|
23086
23103
|
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
23087
23104
|
function Tag(props) {
|
|
23088
23105
|
const {
|
|
@@ -23116,7 +23133,7 @@ function Tag(props) {
|
|
|
23116
23133
|
const tooltipTitle = !preventTooltip ? isIconOnly ? text : showTooltip ? text : void 0 : void 0;
|
|
23117
23134
|
return maybeTooltip({
|
|
23118
23135
|
title: tooltipTitle,
|
|
23119
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("span", { ...tid, ...(0,
|
|
23136
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("span", { ...tid, ...(0, import_runtime101.trussProps)({
|
|
23120
23137
|
...{
|
|
23121
23138
|
position: "relative",
|
|
23122
23139
|
display: "dif",
|
|
@@ -23223,7 +23240,7 @@ function getPrimaryStyles(type) {
|
|
|
23223
23240
|
}
|
|
23224
23241
|
|
|
23225
23242
|
// src/components/Card.tsx
|
|
23226
|
-
var
|
|
23243
|
+
var import_runtime102 = require("@homebound/truss/runtime");
|
|
23227
23244
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
23228
23245
|
function Card(props) {
|
|
23229
23246
|
const {
|
|
@@ -23256,8 +23273,8 @@ function Card(props) {
|
|
|
23256
23273
|
...isHovered && cardHoverStyles,
|
|
23257
23274
|
...isDisabled && disabledStyles2
|
|
23258
23275
|
}), [isDisabled, isHovered, bordered, type, isList, fullWidth]);
|
|
23259
|
-
return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { ...(0,
|
|
23260
|
-
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0,
|
|
23276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { ...(0, import_runtime102.trussProps)(styles), ...hoverProps, ...tid, children: [
|
|
23277
|
+
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime102.trussProps)({
|
|
23261
23278
|
...{
|
|
23262
23279
|
height: ["h_var", {
|
|
23263
23280
|
"--height": `${imgHeight}px`
|
|
@@ -23280,14 +23297,14 @@ function Card(props) {
|
|
|
23280
23297
|
flexShrink: "fs0"
|
|
23281
23298
|
},
|
|
23282
23299
|
...isHovered && !isList && imageHoverStyles
|
|
23283
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("img", { ...(0,
|
|
23300
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("img", { ...(0, import_runtime102.trussProps)({
|
|
23284
23301
|
width: "w100",
|
|
23285
23302
|
height: "h100",
|
|
23286
23303
|
objectFit: ["objectFit_var", {
|
|
23287
|
-
"--objectFit": (0,
|
|
23304
|
+
"--objectFit": (0, import_runtime102.maybeCssVar)(imageFit)
|
|
23288
23305
|
}]
|
|
23289
23306
|
}), src: imgSrc, alt: title, ...tid.img }) }),
|
|
23290
|
-
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0,
|
|
23307
|
+
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime102.trussProps)({
|
|
23291
23308
|
position: "absolute",
|
|
23292
23309
|
right: "right1",
|
|
23293
23310
|
top: "top1",
|
|
@@ -23302,7 +23319,7 @@ function Card(props) {
|
|
|
23302
23319
|
tag && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { className: "absolute left1 top_4px", children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Tag, { type: tag?.type, text: tag?.text, ...tid.tag }) }),
|
|
23303
23320
|
/* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "df fdc aifs gap1", children: [
|
|
23304
23321
|
/* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { children: [
|
|
23305
|
-
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0,
|
|
23322
|
+
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime102.trussProps)({
|
|
23306
23323
|
fontWeight: "fw6",
|
|
23307
23324
|
fontSize: "fz_12px",
|
|
23308
23325
|
lineHeight: "lh_16px",
|
|
@@ -23310,7 +23327,7 @@ function Card(props) {
|
|
|
23310
23327
|
"--color": "var(--b-on-surface-muted)"
|
|
23311
23328
|
}]
|
|
23312
23329
|
}), ...tid.subtitle, children: subtitle }),
|
|
23313
|
-
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0,
|
|
23330
|
+
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime102.trussProps)({
|
|
23314
23331
|
fontWeight: "fw6",
|
|
23315
23332
|
fontSize: "fz_14px",
|
|
23316
23333
|
lineHeight: "lh_20px",
|
|
@@ -23383,10 +23400,10 @@ var imageHoverStyles = {
|
|
|
23383
23400
|
};
|
|
23384
23401
|
|
|
23385
23402
|
// src/components/Copy.tsx
|
|
23386
|
-
var
|
|
23403
|
+
var import_runtime103 = require("@homebound/truss/runtime");
|
|
23387
23404
|
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
23388
23405
|
function Copy(props) {
|
|
23389
|
-
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0,
|
|
23406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0, import_runtime103.mergeProps)("beam-copy", void 0, {
|
|
23390
23407
|
...{
|
|
23391
23408
|
fontWeight: "fw4",
|
|
23392
23409
|
fontSize: "fz_14px",
|
|
@@ -23417,7 +23434,7 @@ function useDnDGridContext() {
|
|
|
23417
23434
|
}
|
|
23418
23435
|
|
|
23419
23436
|
// src/components/DnDGrid/DnDGrid.tsx
|
|
23420
|
-
var
|
|
23437
|
+
var import_runtime104 = require("@homebound/truss/runtime");
|
|
23421
23438
|
var import_jsx_runtime175 = require("react/jsx-runtime");
|
|
23422
23439
|
function DnDGrid(props) {
|
|
23423
23440
|
const {
|
|
@@ -23600,7 +23617,7 @@ function DnDGrid(props) {
|
|
|
23600
23617
|
return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(DnDGridContext.Provider, { value: {
|
|
23601
23618
|
dragEl,
|
|
23602
23619
|
onDragHandleKeyDown
|
|
23603
|
-
}, children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("div", { ref: gridEl, ...(0,
|
|
23620
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("div", { ref: gridEl, ...(0, import_runtime104.trussProps)({
|
|
23604
23621
|
...{
|
|
23605
23622
|
containerType: "ctis",
|
|
23606
23623
|
display: "dg"
|
|
@@ -23613,7 +23630,7 @@ var gridCloneKey = "dndgrid-clone";
|
|
|
23613
23630
|
|
|
23614
23631
|
// src/components/DnDGrid/DnDGridItemHandle.tsx
|
|
23615
23632
|
var import_react_aria57 = require("react-aria");
|
|
23616
|
-
var
|
|
23633
|
+
var import_runtime105 = require("@homebound/truss/runtime");
|
|
23617
23634
|
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
23618
23635
|
function DnDGridItemHandle(props) {
|
|
23619
23636
|
const {
|
|
@@ -23643,7 +23660,7 @@ function DnDGridItemHandle(props) {
|
|
|
23643
23660
|
borderRadius: "br4",
|
|
23644
23661
|
borderWidth: "bw1"
|
|
23645
23662
|
};
|
|
23646
|
-
return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("button", { ...(0,
|
|
23663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("button", { ...(0, import_runtime105.trussProps)({
|
|
23647
23664
|
...compact ? iconButtonCompact : iconButtonNormal,
|
|
23648
23665
|
...{
|
|
23649
23666
|
cursor: "cursor_grab",
|
|
@@ -23697,7 +23714,7 @@ function useDnDGridItem(props) {
|
|
|
23697
23714
|
}
|
|
23698
23715
|
|
|
23699
23716
|
// src/components/EnvironmentBanner/EnvironmentBanner.tsx
|
|
23700
|
-
var
|
|
23717
|
+
var import_runtime106 = require("@homebound/truss/runtime");
|
|
23701
23718
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
23702
23719
|
function EnvironmentBanner(props) {
|
|
23703
23720
|
const {
|
|
@@ -23717,14 +23734,14 @@ function EnvironmentBanner(props) {
|
|
|
23717
23734
|
tooltip
|
|
23718
23735
|
} = getEnvironmentBannerConfig(env, impersonating, showProdWarning);
|
|
23719
23736
|
const bgColorVar = maybeCssVar(bgColor);
|
|
23720
|
-
return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { ...(0,
|
|
23737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { ...(0, import_runtime106.trussProps)({
|
|
23721
23738
|
flexShrink: "fs0",
|
|
23722
23739
|
position: "relative",
|
|
23723
23740
|
zIndex: ["z_var", {
|
|
23724
|
-
"--zIndex": (0,
|
|
23741
|
+
"--zIndex": (0, import_runtime106.maybeCssVar)(zIndices.environmentBanner)
|
|
23725
23742
|
}],
|
|
23726
23743
|
backgroundColor: ["bgColor_var", {
|
|
23727
|
-
"--backgroundColor": (0,
|
|
23744
|
+
"--backgroundColor": (0, import_runtime106.maybeCssVar)(bgColorVar)
|
|
23728
23745
|
}],
|
|
23729
23746
|
height: ["h_var", {
|
|
23730
23747
|
"--height": `${environmentBannerSizePx}px`
|
|
@@ -23733,7 +23750,7 @@ function EnvironmentBanner(props) {
|
|
|
23733
23750
|
}), role: "banner", ...tid, children: [
|
|
23734
23751
|
getInvertedCorner("left", bgColorVar),
|
|
23735
23752
|
getInvertedCorner("right", bgColorVar),
|
|
23736
|
-
/* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { ...(0,
|
|
23753
|
+
/* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { ...(0, import_runtime106.trussProps)({
|
|
23737
23754
|
...{
|
|
23738
23755
|
position: "relative",
|
|
23739
23756
|
zIndex: "z2",
|
|
@@ -23748,7 +23765,7 @@ function EnvironmentBanner(props) {
|
|
|
23748
23765
|
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)(Tag, { text: badgeLabel, xss: {
|
|
23749
23766
|
backgroundColor: "bgColor_FFFFFF90"
|
|
23750
23767
|
}, ...tid.badge }),
|
|
23751
|
-
/* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("span", { ...(0,
|
|
23768
|
+
/* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("span", { ...(0, import_runtime106.trussProps)({
|
|
23752
23769
|
...{
|
|
23753
23770
|
alignItems: "aic",
|
|
23754
23771
|
gap: "gap1",
|
|
@@ -23769,7 +23786,7 @@ function EnvironmentBanner(props) {
|
|
|
23769
23786
|
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("span", { className: "fs0", ...tid.info, children: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(Icon, { icon: "infoCircle", tooltip, inc: 2, color: "--b-on-primary" /* OnPrimary */ }) })
|
|
23770
23787
|
] })
|
|
23771
23788
|
] }),
|
|
23772
|
-
impersonating != null && /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("span", { ...(0,
|
|
23789
|
+
impersonating != null && /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("span", { ...(0, import_runtime106.trussProps)({
|
|
23773
23790
|
display: "df",
|
|
23774
23791
|
alignItems: "aic",
|
|
23775
23792
|
gap: "gap2",
|
|
@@ -23858,16 +23875,16 @@ function getInvertedCorner(side, bgColorVar) {
|
|
|
23858
23875
|
right: "right0"
|
|
23859
23876
|
};
|
|
23860
23877
|
const shadowXOffset = side === "left" ? -invertedCornerRadiusPx : invertedCornerRadiusPx;
|
|
23861
|
-
return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { "aria-hidden": true, ...(0,
|
|
23878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { "aria-hidden": true, ...(0, import_runtime106.trussProps)({
|
|
23862
23879
|
...shell,
|
|
23863
23880
|
...outerPosition
|
|
23864
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0,
|
|
23881
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0, import_runtime106.trussProps)({
|
|
23865
23882
|
height: "h_200",
|
|
23866
23883
|
width: "w_200",
|
|
23867
23884
|
position: "absolute",
|
|
23868
23885
|
borderRadius: "borderRadius_50",
|
|
23869
23886
|
boxShadow: ["boxShadow_var", {
|
|
23870
|
-
"--boxShadow": (0,
|
|
23887
|
+
"--boxShadow": (0, import_runtime106.maybeCssVar)(`${shadowXOffset}px -${invertedCornerRadiusPx}px 0 0 ${bgColorVar}`)
|
|
23871
23888
|
}],
|
|
23872
23889
|
...side === "right" ? {
|
|
23873
23890
|
right: "right0"
|
|
@@ -23900,7 +23917,7 @@ var gridItemDataAttribute = "data-grid-item-span";
|
|
|
23900
23917
|
var ResponsiveGridContext = (0, import_react127.createContext)(void 0);
|
|
23901
23918
|
|
|
23902
23919
|
// src/components/Grid/ResponsiveGrid.tsx
|
|
23903
|
-
var
|
|
23920
|
+
var import_runtime107 = require("@homebound/truss/runtime");
|
|
23904
23921
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
23905
23922
|
function ResponsiveGrid(props) {
|
|
23906
23923
|
const {
|
|
@@ -23921,12 +23938,12 @@ function ResponsiveGrid(props) {
|
|
|
23921
23938
|
gap,
|
|
23922
23939
|
columns
|
|
23923
23940
|
}), [minColumnWidth, gap, columns]);
|
|
23924
|
-
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { ...(0,
|
|
23941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { ...(0, import_runtime107.trussProps)(gridStyles), children }) });
|
|
23925
23942
|
}
|
|
23926
23943
|
|
|
23927
23944
|
// src/components/Grid/ResponsiveGridItem.tsx
|
|
23928
23945
|
var import_react_aria58 = require("react-aria");
|
|
23929
|
-
var
|
|
23946
|
+
var import_runtime108 = require("@homebound/truss/runtime");
|
|
23930
23947
|
var import_jsx_runtime179 = require("react/jsx-runtime");
|
|
23931
23948
|
function ResponsiveGridItem(props) {
|
|
23932
23949
|
const {
|
|
@@ -23939,13 +23956,13 @@ function ResponsiveGridItem(props) {
|
|
|
23939
23956
|
} = useResponsiveGridItem({
|
|
23940
23957
|
colSpan
|
|
23941
23958
|
});
|
|
23942
|
-
return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0, import_react_aria58.mergeProps)(gridItemProps, (0,
|
|
23959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0, import_react_aria58.mergeProps)(gridItemProps, (0, import_runtime108.trussProps)(gridItemStyles)), children });
|
|
23943
23960
|
}
|
|
23944
23961
|
|
|
23945
23962
|
// src/components/Grid/useResponsiveGrid.ts
|
|
23946
23963
|
var import_react129 = require("react");
|
|
23947
|
-
var
|
|
23948
|
-
var
|
|
23964
|
+
var import_runtime109 = require("@homebound/truss/runtime");
|
|
23965
|
+
var __maybeInc19 = (inc) => {
|
|
23949
23966
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
23950
23967
|
};
|
|
23951
23968
|
function useResponsiveGrid(props) {
|
|
@@ -23963,11 +23980,11 @@ function useResponsiveGrid(props) {
|
|
|
23963
23980
|
return {
|
|
23964
23981
|
display: "dg",
|
|
23965
23982
|
gridTemplateColumns: ["gtc_var", {
|
|
23966
|
-
"--gridTemplateColumns": (0,
|
|
23983
|
+
"--gridTemplateColumns": (0, import_runtime109.maybeCssVar)(gridTemplateColumns)
|
|
23967
23984
|
}],
|
|
23968
23985
|
containerType: "ctis",
|
|
23969
23986
|
gap: ["gap_var", {
|
|
23970
|
-
"--gap": (0,
|
|
23987
|
+
"--gap": (0, import_runtime109.maybeCssVar)(__maybeInc19(gridGap))
|
|
23971
23988
|
}]
|
|
23972
23989
|
};
|
|
23973
23990
|
}, [minColumnWidth, gap, columns]);
|
|
@@ -24090,9 +24107,9 @@ function HbSpinnerProvider({
|
|
|
24090
24107
|
}
|
|
24091
24108
|
|
|
24092
24109
|
// src/components/HomeboundLogo.tsx
|
|
24093
|
-
var
|
|
24110
|
+
var import_runtime110 = require("@homebound/truss/runtime");
|
|
24094
24111
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
24095
|
-
var
|
|
24112
|
+
var __maybeInc20 = (inc) => {
|
|
24096
24113
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24097
24114
|
};
|
|
24098
24115
|
function HomeboundLogo(props) {
|
|
@@ -24101,15 +24118,15 @@ function HomeboundLogo(props) {
|
|
|
24101
24118
|
width: width2 = "auto",
|
|
24102
24119
|
height = "auto"
|
|
24103
24120
|
} = props;
|
|
24104
|
-
return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...(0,
|
|
24121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...(0, import_runtime110.trussProps)({
|
|
24105
24122
|
fill: ["fill_var", {
|
|
24106
|
-
"--fill": (0,
|
|
24123
|
+
"--fill": (0, import_runtime110.maybeCssVar)(fill)
|
|
24107
24124
|
}],
|
|
24108
24125
|
width: ["w_var", {
|
|
24109
|
-
"--width": (0,
|
|
24126
|
+
"--width": (0, import_runtime110.maybeCssVar)(__maybeInc20(width2))
|
|
24110
24127
|
}],
|
|
24111
24128
|
height: ["h_var", {
|
|
24112
|
-
"--height": (0,
|
|
24129
|
+
"--height": (0, import_runtime110.maybeCssVar)(__maybeInc20(height))
|
|
24113
24130
|
}]
|
|
24114
24131
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime181.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" }) });
|
|
24115
24132
|
}
|
|
@@ -24117,7 +24134,7 @@ function HomeboundLogo(props) {
|
|
|
24117
24134
|
// src/components/JumpLink.tsx
|
|
24118
24135
|
var import_react132 = require("react");
|
|
24119
24136
|
var import_react_aria59 = require("react-aria");
|
|
24120
|
-
var
|
|
24137
|
+
var import_runtime111 = require("@homebound/truss/runtime");
|
|
24121
24138
|
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
24122
24139
|
function JumpLink(props) {
|
|
24123
24140
|
const {
|
|
@@ -24160,7 +24177,7 @@ function JumpLink(props) {
|
|
|
24160
24177
|
});
|
|
24161
24178
|
}
|
|
24162
24179
|
}
|
|
24163
|
-
return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("a", { ref, ...(0, import_react_aria59.mergeProps)(linkProps, focusProps, hoverProps), ...tid, ...(0,
|
|
24180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("a", { ref, ...(0, import_react_aria59.mergeProps)(linkProps, focusProps, hoverProps), ...tid, ...(0, import_runtime111.trussProps)({
|
|
24164
24181
|
...jumpLinkStyles.baseStyles,
|
|
24165
24182
|
...active && jumpLinkStyles.activeStyles,
|
|
24166
24183
|
...isHovered && !disabled && jumpLinkStyles.hoverStyles,
|
|
@@ -24217,7 +24234,7 @@ var jumpLinkStyles = {
|
|
|
24217
24234
|
// src/components/MaxLines.tsx
|
|
24218
24235
|
var import_utils150 = require("@react-aria/utils");
|
|
24219
24236
|
var import_react133 = require("react");
|
|
24220
|
-
var
|
|
24237
|
+
var import_runtime112 = require("@homebound/truss/runtime");
|
|
24221
24238
|
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
24222
24239
|
function MaxLines({
|
|
24223
24240
|
maxLines,
|
|
@@ -24242,10 +24259,10 @@ function MaxLines({
|
|
|
24242
24259
|
onResize
|
|
24243
24260
|
});
|
|
24244
24261
|
return /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("div", { children: [
|
|
24245
|
-
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)("div", { ref: elRef, ...(0,
|
|
24262
|
+
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)("div", { ref: elRef, ...(0, import_runtime112.trussProps)({
|
|
24246
24263
|
...!expanded ? {
|
|
24247
24264
|
WebkitLineClamp: ["lineClamp_var", {
|
|
24248
|
-
"--WebkitLineClamp": (0,
|
|
24265
|
+
"--WebkitLineClamp": (0, import_runtime112.maybeCssVar)(maxLines)
|
|
24249
24266
|
}],
|
|
24250
24267
|
overflow: "oh",
|
|
24251
24268
|
display: "d_negwebkit_box",
|
|
@@ -24268,7 +24285,7 @@ var import_react136 = require("react");
|
|
|
24268
24285
|
// src/components/AppNav/AppNavGroupTrigger.tsx
|
|
24269
24286
|
var import_react134 = require("react");
|
|
24270
24287
|
var import_react_aria60 = require("react-aria");
|
|
24271
|
-
var
|
|
24288
|
+
var import_runtime113 = require("@homebound/truss/runtime");
|
|
24272
24289
|
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
24273
24290
|
function AppNavGroupTrigger(props) {
|
|
24274
24291
|
const {
|
|
@@ -24305,7 +24322,7 @@ function AppNavGroupTrigger(props) {
|
|
|
24305
24322
|
ref,
|
|
24306
24323
|
"aria-expanded": expanded,
|
|
24307
24324
|
"aria-controls": navGroupId,
|
|
24308
|
-
...(0,
|
|
24325
|
+
...(0, import_runtime113.mergeProps)(navLink, void 0, {
|
|
24309
24326
|
...baseStyles4,
|
|
24310
24327
|
...isFocusVisible && focusRingStyles2,
|
|
24311
24328
|
...isHovered && hoverStyles4,
|
|
@@ -24319,7 +24336,7 @@ function AppNavGroupTrigger(props) {
|
|
|
24319
24336
|
})
|
|
24320
24337
|
}), children: [
|
|
24321
24338
|
label,
|
|
24322
|
-
/* @__PURE__ */ (0, import_jsx_runtime184.jsx)("div", { ...(0,
|
|
24339
|
+
/* @__PURE__ */ (0, import_jsx_runtime184.jsx)("div", { ...(0, import_runtime113.trussProps)({
|
|
24323
24340
|
...{
|
|
24324
24341
|
display: "df",
|
|
24325
24342
|
alignItems: "aic",
|
|
@@ -24472,9 +24489,9 @@ function useAppNavGroupExpanded(linkGroup) {
|
|
|
24472
24489
|
}
|
|
24473
24490
|
|
|
24474
24491
|
// src/components/AppNav/AppNavGroup.tsx
|
|
24475
|
-
var
|
|
24492
|
+
var import_runtime114 = require("@homebound/truss/runtime");
|
|
24476
24493
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
24477
|
-
var
|
|
24494
|
+
var __maybeInc21 = (inc) => {
|
|
24478
24495
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24479
24496
|
};
|
|
24480
24497
|
function AppNavGroupView(props) {
|
|
@@ -24517,11 +24534,11 @@ function AppNavGroupDisclosure(props) {
|
|
|
24517
24534
|
});
|
|
24518
24535
|
return /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { className: "df fdc", ...tid, children: [
|
|
24519
24536
|
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(AppNavGroupTrigger, { label: linkGroup.label, navGroupId, expanded, active: linkGroupHasActiveLink(linkGroup), onClick: onToggle, ...tid }),
|
|
24520
|
-
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...(0,
|
|
24537
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...(0, import_runtime114.trussProps)({
|
|
24521
24538
|
overflow: "oh",
|
|
24522
24539
|
transition: "transitionHeight",
|
|
24523
24540
|
height: ["h_var", {
|
|
24524
|
-
"--height": (0,
|
|
24541
|
+
"--height": (0, import_runtime114.maybeCssVar)(__maybeInc21(contentHeight))
|
|
24525
24542
|
}]
|
|
24526
24543
|
}), ...tid.panel, ...!expanded ? {
|
|
24527
24544
|
inert: "true"
|
|
@@ -24551,7 +24568,7 @@ function AppNavGroupMenu({
|
|
|
24551
24568
|
}
|
|
24552
24569
|
|
|
24553
24570
|
// src/components/AppNav/AppNavSectionView.tsx
|
|
24554
|
-
var
|
|
24571
|
+
var import_runtime115 = require("@homebound/truss/runtime");
|
|
24555
24572
|
var import_jsx_runtime187 = require("react/jsx-runtime");
|
|
24556
24573
|
function AppNavSectionView(props) {
|
|
24557
24574
|
const {
|
|
@@ -24578,7 +24595,7 @@ function AppNavSectionView(props) {
|
|
|
24578
24595
|
"--borderColor": "var(--b-surface-separator)"
|
|
24579
24596
|
}]
|
|
24580
24597
|
};
|
|
24581
|
-
return /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)("div", { ...(0,
|
|
24598
|
+
return /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)("div", { ...(0, import_runtime115.trussProps)({
|
|
24582
24599
|
...{
|
|
24583
24600
|
display: "df",
|
|
24584
24601
|
flexDirection: "fdc",
|
|
@@ -24586,7 +24603,7 @@ function AppNavSectionView(props) {
|
|
|
24586
24603
|
},
|
|
24587
24604
|
...showDivider ? dividerStyles : {}
|
|
24588
24605
|
}), ...tid, children: [
|
|
24589
|
-
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ...(0,
|
|
24606
|
+
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ...(0, import_runtime115.trussProps)({
|
|
24590
24607
|
fontWeight: "fw6",
|
|
24591
24608
|
fontSize: "fz_10px",
|
|
24592
24609
|
lineHeight: "lh_14px",
|
|
@@ -24670,7 +24687,7 @@ function useEnvironmentBannerLayoutHeight() {
|
|
|
24670
24687
|
}
|
|
24671
24688
|
|
|
24672
24689
|
// src/components/Navbar/NavbarMobileMenu.tsx
|
|
24673
|
-
var
|
|
24690
|
+
var import_runtime116 = require("@homebound/truss/runtime");
|
|
24674
24691
|
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
24675
24692
|
function NavbarMobileMenu(props) {
|
|
24676
24693
|
const {
|
|
@@ -24708,13 +24725,13 @@ function NavbarMobileDrawer({
|
|
|
24708
24725
|
top: bannerHeightPx
|
|
24709
24726
|
};
|
|
24710
24727
|
return /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(import_jsx_runtime190.Fragment, { children: [
|
|
24711
|
-
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_framer_motion5.motion.div, { ...(0,
|
|
24728
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_framer_motion5.motion.div, { ...(0, import_runtime116.mergeProps)(void 0, overlayTopStyle, {
|
|
24712
24729
|
position: "fixed",
|
|
24713
24730
|
right: "right0",
|
|
24714
24731
|
bottom: "bottom0",
|
|
24715
24732
|
left: "left0",
|
|
24716
24733
|
zIndex: ["z_var", {
|
|
24717
|
-
"--zIndex": (0,
|
|
24734
|
+
"--zIndex": (0, import_runtime116.maybeCssVar)(zIndices.navbarMobileMenuScrim)
|
|
24718
24735
|
}],
|
|
24719
24736
|
backgroundColor: ["bgColor_var", {
|
|
24720
24737
|
"--backgroundColor": "var(--b-scrim)"
|
|
@@ -24729,7 +24746,7 @@ function NavbarMobileDrawer({
|
|
|
24729
24746
|
ease: "linear",
|
|
24730
24747
|
duration: 0.2
|
|
24731
24748
|
}, onClick: onClose, ...tid.mobileMenuScrim }, "navbarMobileMenuScrim"),
|
|
24732
|
-
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_react_aria61.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(import_framer_motion5.motion.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...(0,
|
|
24749
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_react_aria61.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(import_framer_motion5.motion.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...(0, import_runtime116.mergeProps)(void 0, overlayTopStyle, {
|
|
24733
24750
|
position: "fixed",
|
|
24734
24751
|
bottom: "bottom0",
|
|
24735
24752
|
left: "left0",
|
|
@@ -24739,7 +24756,7 @@ function NavbarMobileDrawer({
|
|
|
24739
24756
|
width: "w_260px",
|
|
24740
24757
|
overflow: "oh",
|
|
24741
24758
|
zIndex: ["z_var", {
|
|
24742
|
-
"--zIndex": (0,
|
|
24759
|
+
"--zIndex": (0, import_runtime116.maybeCssVar)(zIndices.navbarMobileMenu)
|
|
24743
24760
|
}],
|
|
24744
24761
|
backgroundColor: ["bgColor_var", {
|
|
24745
24762
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -24754,7 +24771,7 @@ function NavbarMobileDrawer({
|
|
|
24754
24771
|
ease: "linear",
|
|
24755
24772
|
duration: 0.2
|
|
24756
24773
|
}, onClick: (e) => e.stopPropagation(), ...tid.mobileMenuDrawer, children: [
|
|
24757
|
-
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)("div", { ...(0,
|
|
24774
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)("div", { ...(0, import_runtime116.trussProps)({
|
|
24758
24775
|
...{
|
|
24759
24776
|
display: "df",
|
|
24760
24777
|
alignItems: "aic",
|
|
@@ -24773,7 +24790,7 @@ function NavbarMobileDrawer({
|
|
|
24773
24790
|
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
|
|
24774
24791
|
"nav",
|
|
24775
24792
|
{
|
|
24776
|
-
...(0,
|
|
24793
|
+
...(0, import_runtime116.trussProps)({
|
|
24777
24794
|
...{
|
|
24778
24795
|
flexGrow: "fg1",
|
|
24779
24796
|
overflowY: "oya",
|
|
@@ -24799,7 +24816,7 @@ function NavbarMobileDrawer({
|
|
|
24799
24816
|
}
|
|
24800
24817
|
|
|
24801
24818
|
// src/components/Navbar/Navbar.tsx
|
|
24802
|
-
var
|
|
24819
|
+
var import_runtime117 = require("@homebound/truss/runtime");
|
|
24803
24820
|
var import_jsx_runtime191 = require("react/jsx-runtime");
|
|
24804
24821
|
function Navbar(props) {
|
|
24805
24822
|
const {
|
|
@@ -24819,7 +24836,7 @@ function Navbar(props) {
|
|
|
24819
24836
|
overflows
|
|
24820
24837
|
} = useContentOverflow(!sm);
|
|
24821
24838
|
const showMobile = sm || overflows;
|
|
24822
|
-
return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(ContrastScope, { children: /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("nav", { ...(0,
|
|
24839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(ContrastScope, { children: /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("nav", { ...(0, import_runtime117.trussProps)({
|
|
24823
24840
|
...{
|
|
24824
24841
|
backgroundColor: ["bgColor_var", {
|
|
24825
24842
|
"--backgroundColor": "var(--b-surface-raised)"
|
|
@@ -24838,7 +24855,7 @@ function Navbar(props) {
|
|
|
24838
24855
|
/* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("div", { className: "df aic gap3 fg1 mw0", children: [
|
|
24839
24856
|
/* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("div", { className: "df aic fs0 gap2", children: [
|
|
24840
24857
|
showMobile && /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(NavbarMobileMenu, { items, ...tid }),
|
|
24841
|
-
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", { ...(0,
|
|
24858
|
+
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", { ...(0, import_runtime117.trussProps)({
|
|
24842
24859
|
flexShrink: "fs0",
|
|
24843
24860
|
...hideBrandOnMobile && showMobile ? {
|
|
24844
24861
|
display: "dn"
|
|
@@ -24847,7 +24864,7 @@ function Navbar(props) {
|
|
|
24847
24864
|
] }),
|
|
24848
24865
|
!sm && // Stays mounted while overflowing (hidden) so the items remain measurable and the bar
|
|
24849
24866
|
// can expand again as space frees up.
|
|
24850
|
-
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", { ref: containerRef, ...(0,
|
|
24867
|
+
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", { ref: containerRef, ...(0, import_runtime117.trussProps)({
|
|
24851
24868
|
display: "df",
|
|
24852
24869
|
alignItems: "aic",
|
|
24853
24870
|
flexGrow: "fg1",
|
|
@@ -24877,7 +24894,7 @@ function NavbarUserMenu({
|
|
|
24877
24894
|
}
|
|
24878
24895
|
|
|
24879
24896
|
// src/components/Pagination.tsx
|
|
24880
|
-
var
|
|
24897
|
+
var import_runtime118 = require("@homebound/truss/runtime");
|
|
24881
24898
|
var import_jsx_runtime192 = require("react/jsx-runtime");
|
|
24882
24899
|
var defaultPage = {
|
|
24883
24900
|
offset: 0,
|
|
@@ -24910,7 +24927,7 @@ function Pagination(props) {
|
|
|
24910
24927
|
}
|
|
24911
24928
|
}
|
|
24912
24929
|
const tid = useTestIds(props, "pagination");
|
|
24913
|
-
return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("div", { ...(0,
|
|
24930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime192.jsxs)("div", { ...(0, import_runtime118.trussProps)({
|
|
24914
24931
|
display: "df",
|
|
24915
24932
|
borderColor: ["bc_var", {
|
|
24916
24933
|
"--borderColor": "var(--b-surface-separator)"
|
|
@@ -24968,7 +24985,7 @@ function toPageNumberSize(page) {
|
|
|
24968
24985
|
// src/components/ScrollShadows.tsx
|
|
24969
24986
|
var import_utils159 = require("@react-aria/utils");
|
|
24970
24987
|
var import_react139 = require("react");
|
|
24971
|
-
var
|
|
24988
|
+
var import_runtime119 = require("@homebound/truss/runtime");
|
|
24972
24989
|
var import_jsx_runtime193 = require("react/jsx-runtime");
|
|
24973
24990
|
function ScrollShadows(props) {
|
|
24974
24991
|
const {
|
|
@@ -24993,7 +25010,7 @@ function ScrollShadows(props) {
|
|
|
24993
25010
|
const commonStyles = {
|
|
24994
25011
|
position: "absolute",
|
|
24995
25012
|
zIndex: ["z_var", {
|
|
24996
|
-
"--zIndex": (0,
|
|
25013
|
+
"--zIndex": (0, import_runtime119.maybeCssVar)(zIndices.scrollShadow)
|
|
24997
25014
|
}],
|
|
24998
25015
|
pointerEvents: "pointerEvents_none"
|
|
24999
25016
|
};
|
|
@@ -25026,7 +25043,7 @@ function ScrollShadows(props) {
|
|
|
25026
25043
|
...startShadowStyles2,
|
|
25027
25044
|
...{
|
|
25028
25045
|
background: ["background_var", {
|
|
25029
|
-
"--background": (0,
|
|
25046
|
+
"--background": (0, import_runtime119.maybeCssVar)(startGradient)
|
|
25030
25047
|
}]
|
|
25031
25048
|
}
|
|
25032
25049
|
}, {
|
|
@@ -25034,7 +25051,7 @@ function ScrollShadows(props) {
|
|
|
25034
25051
|
...endShadowStyles2,
|
|
25035
25052
|
...{
|
|
25036
25053
|
background: ["background_var", {
|
|
25037
|
-
"--background": (0,
|
|
25054
|
+
"--background": (0, import_runtime119.maybeCssVar)(endGradient)
|
|
25038
25055
|
}]
|
|
25039
25056
|
}
|
|
25040
25057
|
}];
|
|
@@ -25059,10 +25076,10 @@ function ScrollShadows(props) {
|
|
|
25059
25076
|
ref: scrollRef,
|
|
25060
25077
|
onResize
|
|
25061
25078
|
});
|
|
25062
|
-
return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { ...(0,
|
|
25079
|
+
return /* @__PURE__ */ (0, import_jsx_runtime193.jsxs)("div", { ...(0, import_runtime119.trussProps)({
|
|
25063
25080
|
display: "df",
|
|
25064
25081
|
flexDirection: ["fd_var", {
|
|
25065
|
-
"--flexDirection": (0,
|
|
25082
|
+
"--flexDirection": (0, import_runtime119.maybeCssVar)(!horizontal ? "column" : "row")
|
|
25066
25083
|
}],
|
|
25067
25084
|
position: "relative",
|
|
25068
25085
|
overflow: "oh",
|
|
@@ -25075,23 +25092,23 @@ function ScrollShadows(props) {
|
|
|
25075
25092
|
width: width2
|
|
25076
25093
|
}
|
|
25077
25094
|
}), ...tid, children: [
|
|
25078
|
-
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0,
|
|
25095
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0, import_runtime119.trussProps)({
|
|
25079
25096
|
...startShadowStyles,
|
|
25080
25097
|
...{
|
|
25081
25098
|
opacity: ["o_var", {
|
|
25082
|
-
"--opacity": (0,
|
|
25099
|
+
"--opacity": (0, import_runtime119.maybeCssVar)(showStartShadow ? 1 : 0)
|
|
25083
25100
|
}]
|
|
25084
25101
|
}
|
|
25085
25102
|
}), "data-chromatic": "ignore" }),
|
|
25086
|
-
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0,
|
|
25103
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0, import_runtime119.trussProps)({
|
|
25087
25104
|
...endShadowStyles,
|
|
25088
25105
|
...{
|
|
25089
25106
|
opacity: ["o_var", {
|
|
25090
|
-
"--opacity": (0,
|
|
25107
|
+
"--opacity": (0, import_runtime119.maybeCssVar)(showEndShadow ? 1 : 0)
|
|
25091
25108
|
}]
|
|
25092
25109
|
}
|
|
25093
25110
|
}), "data-chromatic": "ignore" }),
|
|
25094
|
-
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0,
|
|
25111
|
+
/* @__PURE__ */ (0, import_jsx_runtime193.jsx)("div", { ...(0, import_runtime119.trussProps)({
|
|
25095
25112
|
...xss,
|
|
25096
25113
|
...{
|
|
25097
25114
|
overflow: "oa",
|
|
@@ -25163,7 +25180,7 @@ function useHasSideNavLayoutProvider() {
|
|
|
25163
25180
|
}
|
|
25164
25181
|
|
|
25165
25182
|
// src/components/SideNav/SideNav.tsx
|
|
25166
|
-
var
|
|
25183
|
+
var import_runtime120 = require("@homebound/truss/runtime");
|
|
25167
25184
|
var import_jsx_runtime195 = require("react/jsx-runtime");
|
|
25168
25185
|
function SideNav(props) {
|
|
25169
25186
|
const {
|
|
@@ -25178,7 +25195,7 @@ function SideNav(props) {
|
|
|
25178
25195
|
const panelCollapsed = navState === "collapse";
|
|
25179
25196
|
const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
|
|
25180
25197
|
return /* @__PURE__ */ (0, import_jsx_runtime195.jsxs)("nav", { className: "df fdc h100 fs0", ...tid, children: [
|
|
25181
|
-
top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0,
|
|
25198
|
+
top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
|
|
25182
25199
|
flexShrink: "fs0",
|
|
25183
25200
|
paddingLeft: "pl2",
|
|
25184
25201
|
paddingRight: "pr2",
|
|
@@ -25189,7 +25206,7 @@ function SideNav(props) {
|
|
|
25189
25206
|
paddingBottom: "pb4"
|
|
25190
25207
|
} : {}
|
|
25191
25208
|
}), ...tid.top, children: top }),
|
|
25192
|
-
/* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0,
|
|
25209
|
+
/* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
|
|
25193
25210
|
flexGrow: "fg1",
|
|
25194
25211
|
overflowY: "oya",
|
|
25195
25212
|
display: "df",
|
|
@@ -25202,7 +25219,7 @@ function SideNav(props) {
|
|
|
25202
25219
|
paddingTop: "pt5"
|
|
25203
25220
|
} : {}
|
|
25204
25221
|
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(AppNavItems, { items, panelCollapsed }) }),
|
|
25205
|
-
footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0,
|
|
25222
|
+
footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime195.jsx)("div", { ...(0, import_runtime120.trussProps)({
|
|
25206
25223
|
flexShrink: "fs0",
|
|
25207
25224
|
paddingLeft: "pl2",
|
|
25208
25225
|
paddingRight: "pr2",
|
|
@@ -25279,10 +25296,10 @@ var snackbarId = 1;
|
|
|
25279
25296
|
// src/components/Stepper.tsx
|
|
25280
25297
|
var import_react142 = require("react");
|
|
25281
25298
|
var import_react_aria62 = require("react-aria");
|
|
25282
|
-
var
|
|
25299
|
+
var import_runtime121 = require("@homebound/truss/runtime");
|
|
25283
25300
|
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
25284
25301
|
var import_react143 = require("react");
|
|
25285
|
-
var
|
|
25302
|
+
var __maybeInc22 = (inc) => {
|
|
25286
25303
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
25287
25304
|
};
|
|
25288
25305
|
function Stepper(props) {
|
|
@@ -25300,7 +25317,7 @@ function Stepper(props) {
|
|
|
25300
25317
|
const minStepWidth = 100;
|
|
25301
25318
|
const gap = 8;
|
|
25302
25319
|
return /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
25303
|
-
/* @__PURE__ */ (0, import_jsx_runtime196.jsx)("ol", { ...(0,
|
|
25320
|
+
/* @__PURE__ */ (0, import_jsx_runtime196.jsx)("ol", { ...(0, import_runtime121.trussProps)({
|
|
25304
25321
|
padding: "p_0",
|
|
25305
25322
|
margin: "m_0",
|
|
25306
25323
|
listStyle: "lis_none",
|
|
@@ -25310,7 +25327,7 @@ function Stepper(props) {
|
|
|
25310
25327
|
}]
|
|
25311
25328
|
}), children: steps.map((step) => {
|
|
25312
25329
|
const isCurrent = currentStep === step.value;
|
|
25313
|
-
return /* @__PURE__ */ (0, import_react143.createElement)("li", { ...(0,
|
|
25330
|
+
return /* @__PURE__ */ (0, import_react143.createElement)("li", { ...(0, import_runtime121.trussProps)({
|
|
25314
25331
|
display: "df",
|
|
25315
25332
|
flexGrow: "fg1",
|
|
25316
25333
|
flexDirection: "fdc",
|
|
@@ -25322,7 +25339,7 @@ function Stepper(props) {
|
|
|
25322
25339
|
}]
|
|
25323
25340
|
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
25324
25341
|
}) }),
|
|
25325
|
-
/* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { ...(0,
|
|
25342
|
+
/* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { ...(0, import_runtime121.trussProps)({
|
|
25326
25343
|
marginTop: "mt1",
|
|
25327
25344
|
backgroundColor: ["bgColor_var", {
|
|
25328
25345
|
"--backgroundColor": "var(--b-field-border-default)"
|
|
@@ -25335,14 +25352,14 @@ function Stepper(props) {
|
|
|
25335
25352
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
25336
25353
|
}],
|
|
25337
25354
|
width: "w100"
|
|
25338
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { ...(0,
|
|
25355
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { ...(0, import_runtime121.trussProps)({
|
|
25339
25356
|
backgroundColor: ["bgColor_var", {
|
|
25340
25357
|
"--backgroundColor": "var(--b-primary)"
|
|
25341
25358
|
}],
|
|
25342
25359
|
transition: "transition_width_200ms",
|
|
25343
25360
|
height: "h100",
|
|
25344
25361
|
width: ["w_var", {
|
|
25345
|
-
"--width": (0,
|
|
25362
|
+
"--width": (0, import_runtime121.maybeCssVar)(__maybeInc22(`${(lastCompletedStep + 1) / steps.length * 100}%`))
|
|
25346
25363
|
}]
|
|
25347
25364
|
}) }) })
|
|
25348
25365
|
] });
|
|
@@ -25378,7 +25395,7 @@ function StepButton(props) {
|
|
|
25378
25395
|
boxShadow: "bshFocus"
|
|
25379
25396
|
};
|
|
25380
25397
|
const tid = useTestIds(props, "stepButton");
|
|
25381
|
-
return /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
25398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime121.trussProps)({
|
|
25382
25399
|
...{
|
|
25383
25400
|
fontWeight: "fw6",
|
|
25384
25401
|
fontSize: "fz_14px",
|
|
@@ -25455,7 +25472,7 @@ function StepIcon({
|
|
|
25455
25472
|
if (state === "complete") {
|
|
25456
25473
|
return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(Icon, { icon: "check" });
|
|
25457
25474
|
}
|
|
25458
|
-
return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { ...(0,
|
|
25475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("div", { ...(0, import_runtime121.trussProps)({
|
|
25459
25476
|
width: "w_10px",
|
|
25460
25477
|
height: "h_10px",
|
|
25461
25478
|
borderStyle: "bss",
|
|
@@ -25471,7 +25488,7 @@ function StepIcon({
|
|
|
25471
25488
|
// src/components/StepperTabs/StepperTab.tsx
|
|
25472
25489
|
var import_react144 = require("react");
|
|
25473
25490
|
var import_react_aria63 = require("react-aria");
|
|
25474
|
-
var
|
|
25491
|
+
var import_runtime122 = require("@homebound/truss/runtime");
|
|
25475
25492
|
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
25476
25493
|
function StepperTab(props) {
|
|
25477
25494
|
const {
|
|
@@ -25503,7 +25520,7 @@ function StepperTab(props) {
|
|
|
25503
25520
|
const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
|
|
25504
25521
|
const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
|
|
25505
25522
|
const tid = useTestIds(props, "stepperTab");
|
|
25506
|
-
return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)("button", { ref, ...(0, import_react_aria63.mergeProps)(buttonProps, focusProps, hoverProps), "aria-label": label, ...(0,
|
|
25523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)("button", { ref, ...(0, import_react_aria63.mergeProps)(buttonProps, focusProps, hoverProps), "aria-label": label, ...(0, import_runtime122.trussProps)({
|
|
25507
25524
|
...stepperTabStyles.baseStyles,
|
|
25508
25525
|
...getStateStyles(active, completed),
|
|
25509
25526
|
...isHovered && !disabled ? stepperTabStyles.hoverStyles : {},
|
|
@@ -25521,7 +25538,7 @@ function withBorderBottom(color) {
|
|
|
25521
25538
|
...{
|
|
25522
25539
|
borderBottomStyle: "bbs_solid",
|
|
25523
25540
|
borderBottomWidth: ["borderBottomWidth_var", {
|
|
25524
|
-
"--borderBottomWidth": (0,
|
|
25541
|
+
"--borderBottomWidth": (0, import_runtime122.maybeCssVar)(`3px`)
|
|
25525
25542
|
}]
|
|
25526
25543
|
},
|
|
25527
25544
|
...color
|
|
@@ -25595,7 +25612,7 @@ var stepperTabStyles = {
|
|
|
25595
25612
|
};
|
|
25596
25613
|
|
|
25597
25614
|
// src/components/StepperTabs/StepperTabs.tsx
|
|
25598
|
-
var
|
|
25615
|
+
var import_runtime123 = require("@homebound/truss/runtime");
|
|
25599
25616
|
var import_jsx_runtime198 = require("react/jsx-runtime");
|
|
25600
25617
|
var import_react145 = require("react");
|
|
25601
25618
|
function StepperTabs(props) {
|
|
@@ -25611,7 +25628,7 @@ function StepperTabs(props) {
|
|
|
25611
25628
|
} = useBreakpoint();
|
|
25612
25629
|
const collapsed = isMobile || !!forceCollapsed;
|
|
25613
25630
|
const capWidth = steps.length <= 3;
|
|
25614
|
-
return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("nav", { "aria-label": "steps", className: "w100", ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("ol", { ...(0,
|
|
25631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("nav", { "aria-label": "steps", className: "w100", ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime198.jsx)("ol", { ...(0, import_runtime123.trussProps)({
|
|
25615
25632
|
padding: "p_0",
|
|
25616
25633
|
margin: "m_0",
|
|
25617
25634
|
listStyle: "lis_none",
|
|
@@ -25625,7 +25642,7 @@ function StepperTabs(props) {
|
|
|
25625
25642
|
borderColor: "bcGray400"
|
|
25626
25643
|
}), children: steps.map((step) => {
|
|
25627
25644
|
const isCurrent = step.value === currentStep;
|
|
25628
|
-
return /* @__PURE__ */ (0, import_react145.createElement)("li", { ...(0,
|
|
25645
|
+
return /* @__PURE__ */ (0, import_react145.createElement)("li", { ...(0, import_runtime123.trussProps)({
|
|
25629
25646
|
display: "df",
|
|
25630
25647
|
flexGrow: "fg1",
|
|
25631
25648
|
flexBasis: "fb_0",
|
|
@@ -25645,7 +25662,7 @@ var gapPx = 6;
|
|
|
25645
25662
|
|
|
25646
25663
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
25647
25664
|
var import_react_dom7 = require("react-dom");
|
|
25648
|
-
var
|
|
25665
|
+
var import_runtime124 = require("@homebound/truss/runtime");
|
|
25649
25666
|
var import_jsx_runtime199 = require("react/jsx-runtime");
|
|
25650
25667
|
function SuperDrawerHeader(props) {
|
|
25651
25668
|
const {
|
|
@@ -25671,7 +25688,7 @@ function SuperDrawerHeader(props) {
|
|
|
25671
25688
|
] }),
|
|
25672
25689
|
props.right && /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("div", { className: "fs0", children: props.right })
|
|
25673
25690
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("div", { className: "fg1", children: props.children }),
|
|
25674
|
-
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("div", { ...(0,
|
|
25691
|
+
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime199.jsx)("div", { ...(0, import_runtime124.trussProps)({
|
|
25675
25692
|
flexShrink: "fs0",
|
|
25676
25693
|
...isDetail ? {
|
|
25677
25694
|
visibility: "vh"
|
|
@@ -25851,7 +25868,7 @@ function canClose(canCloseCheck) {
|
|
|
25851
25868
|
}
|
|
25852
25869
|
|
|
25853
25870
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
25854
|
-
var
|
|
25871
|
+
var import_runtime125 = require("@homebound/truss/runtime");
|
|
25855
25872
|
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
25856
25873
|
var SuperDrawerContent = ({
|
|
25857
25874
|
children,
|
|
@@ -25900,7 +25917,7 @@ var SuperDrawerContent = ({
|
|
|
25900
25917
|
}, className: "pt2", children: children2 })
|
|
25901
25918
|
] }, "content");
|
|
25902
25919
|
} else {
|
|
25903
|
-
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(import_framer_motion6.motion.div, { ...(0,
|
|
25920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(import_framer_motion6.motion.div, { ...(0, import_runtime125.mergeProps)(void 0, {
|
|
25904
25921
|
overflow: "auto"
|
|
25905
25922
|
}, {
|
|
25906
25923
|
paddingTop: "pt3",
|
|
@@ -25913,7 +25930,7 @@ var SuperDrawerContent = ({
|
|
|
25913
25930
|
}
|
|
25914
25931
|
return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(import_jsx_runtime202.Fragment, { children: [
|
|
25915
25932
|
wrapWithMotionAndMaybeBack(children),
|
|
25916
|
-
actions && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("footer", { ...(0,
|
|
25933
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("footer", { ...(0, import_runtime125.trussProps)({
|
|
25917
25934
|
borderTopStyle: "bts_solid",
|
|
25918
25935
|
borderTopWidth: "btw_1px",
|
|
25919
25936
|
borderColor: ["bc_var", {
|
|
@@ -25974,7 +25991,7 @@ var import_react147 = require("react");
|
|
|
25974
25991
|
var import_react_aria64 = require("react-aria");
|
|
25975
25992
|
var import_react_router = require("react-router");
|
|
25976
25993
|
var import_react_router_dom8 = require("react-router-dom");
|
|
25977
|
-
var
|
|
25994
|
+
var import_runtime126 = require("@homebound/truss/runtime");
|
|
25978
25995
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
25979
25996
|
function TabsWithContent(props) {
|
|
25980
25997
|
const styles = hideTabs(props) ? {} : {
|
|
@@ -26007,7 +26024,7 @@ function TabContent(props) {
|
|
|
26007
26024
|
return (
|
|
26008
26025
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
26009
26026
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
26010
|
-
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0,
|
|
26027
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0, import_runtime126.trussProps)(contentXss), children: selectedTab.render() }) })
|
|
26011
26028
|
);
|
|
26012
26029
|
}
|
|
26013
26030
|
function Tabs(props) {
|
|
@@ -26049,7 +26066,7 @@ function Tabs(props) {
|
|
|
26049
26066
|
setActive(selected);
|
|
26050
26067
|
}
|
|
26051
26068
|
}
|
|
26052
|
-
return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)("div", { ...(0,
|
|
26069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)("div", { ...(0, import_runtime126.trussProps)({
|
|
26053
26070
|
...{
|
|
26054
26071
|
display: "df",
|
|
26055
26072
|
alignItems: "aic",
|
|
@@ -26115,7 +26132,7 @@ function TabImpl(props) {
|
|
|
26115
26132
|
role: "tab",
|
|
26116
26133
|
tabIndex: active ? 0 : -1,
|
|
26117
26134
|
...others,
|
|
26118
|
-
...(0,
|
|
26135
|
+
...(0, import_runtime126.trussProps)({
|
|
26119
26136
|
...baseStyles4,
|
|
26120
26137
|
...active && activeStyles3,
|
|
26121
26138
|
...isDisabled && disabledStyles3,
|
|
@@ -26152,7 +26169,7 @@ function getTabStyles() {
|
|
|
26152
26169
|
const borderBottomStyles = {
|
|
26153
26170
|
borderBottomStyle: "bbs_solid",
|
|
26154
26171
|
borderBottomWidth: ["borderBottomWidth_var", {
|
|
26155
|
-
"--borderBottomWidth": (0,
|
|
26172
|
+
"--borderBottomWidth": (0, import_runtime126.maybeCssVar)(`${borderBottomWidthPx}px`)
|
|
26156
26173
|
}],
|
|
26157
26174
|
paddingBottom: ["pb_var", {
|
|
26158
26175
|
"--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
|
|
@@ -26272,9 +26289,9 @@ function useToast() {
|
|
|
26272
26289
|
}
|
|
26273
26290
|
|
|
26274
26291
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
26275
|
-
var
|
|
26292
|
+
var import_runtime127 = require("@homebound/truss/runtime");
|
|
26276
26293
|
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
26277
|
-
var
|
|
26294
|
+
var __maybeInc23 = (inc) => {
|
|
26278
26295
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26279
26296
|
};
|
|
26280
26297
|
function SideNavLayout(props) {
|
|
@@ -26302,7 +26319,7 @@ function SideNavLayoutContent(props) {
|
|
|
26302
26319
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
26303
26320
|
const navTop = bannerAndNavbarChromeTop();
|
|
26304
26321
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
26305
|
-
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { ...(0,
|
|
26322
|
+
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { ...(0, import_runtime127.trussProps)({
|
|
26306
26323
|
...{
|
|
26307
26324
|
display: "df",
|
|
26308
26325
|
flexDirection: "fdc",
|
|
@@ -26326,14 +26343,14 @@ function SideNavLayoutContent(props) {
|
|
|
26326
26343
|
position: "sticky",
|
|
26327
26344
|
left: "left0",
|
|
26328
26345
|
zIndex: ["z_var", {
|
|
26329
|
-
"--zIndex": (0,
|
|
26346
|
+
"--zIndex": (0, import_runtime127.maybeCssVar)(zIndices.sideNav)
|
|
26330
26347
|
}],
|
|
26331
26348
|
top: ["top_var", {
|
|
26332
|
-
"--top": (0,
|
|
26349
|
+
"--top": (0, import_runtime127.maybeCssVar)(__maybeInc23(navTop))
|
|
26333
26350
|
}],
|
|
26334
26351
|
alignSelf: "asfs",
|
|
26335
26352
|
height: ["h_var", {
|
|
26336
|
-
"--height": (0,
|
|
26353
|
+
"--height": (0, import_runtime127.maybeCssVar)(__maybeInc23(railViewportHeight))
|
|
26337
26354
|
}],
|
|
26338
26355
|
width: ["w_var", {
|
|
26339
26356
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -26343,11 +26360,11 @@ function SideNavLayoutContent(props) {
|
|
|
26343
26360
|
position: "fixed",
|
|
26344
26361
|
left: "left0",
|
|
26345
26362
|
top: ["top_var", {
|
|
26346
|
-
"--top": (0,
|
|
26363
|
+
"--top": (0, import_runtime127.maybeCssVar)(__maybeInc23(navTop))
|
|
26347
26364
|
}],
|
|
26348
26365
|
bottom: "bottom0",
|
|
26349
26366
|
zIndex: ["z_var", {
|
|
26350
|
-
"--zIndex": (0,
|
|
26367
|
+
"--zIndex": (0, import_runtime127.maybeCssVar)(zIndices.sideNav)
|
|
26351
26368
|
}]
|
|
26352
26369
|
},
|
|
26353
26370
|
...collapsed ? {
|
|
@@ -26362,7 +26379,7 @@ function SideNavLayoutContent(props) {
|
|
|
26362
26379
|
showCollapseToggle && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { className: "absolute right2 top2 z2", children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
|
|
26363
26380
|
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(SideNav, { ...sideNav }) })
|
|
26364
26381
|
] });
|
|
26365
|
-
return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { ...(0,
|
|
26382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { ...(0, import_runtime127.mergeProps)(void 0, {
|
|
26366
26383
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
26367
26384
|
}, {
|
|
26368
26385
|
display: "df",
|
|
@@ -26370,7 +26387,7 @@ function SideNavLayoutContent(props) {
|
|
|
26370
26387
|
width: "w100"
|
|
26371
26388
|
}), ...tid, children: [
|
|
26372
26389
|
contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(ContrastScope, { children: rail }) : rail,
|
|
26373
|
-
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { ...(0,
|
|
26390
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { ...(0, import_runtime127.trussProps)({
|
|
26374
26391
|
display: "df",
|
|
26375
26392
|
flexDirection: "fdc",
|
|
26376
26393
|
flexGrow: "fg1",
|
|
@@ -26386,9 +26403,9 @@ function SideNavLayoutContent(props) {
|
|
|
26386
26403
|
}
|
|
26387
26404
|
|
|
26388
26405
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
26389
|
-
var
|
|
26406
|
+
var import_runtime128 = require("@homebound/truss/runtime");
|
|
26390
26407
|
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
26391
|
-
var
|
|
26408
|
+
var __maybeInc24 = (inc) => {
|
|
26392
26409
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26393
26410
|
};
|
|
26394
26411
|
function EnvironmentBannerLayout(props) {
|
|
@@ -26403,26 +26420,26 @@ function EnvironmentBannerLayout(props) {
|
|
|
26403
26420
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
26404
26421
|
};
|
|
26405
26422
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
26406
|
-
return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { ...(0,
|
|
26423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { ...(0, import_runtime128.mergeProps)(void 0, style, {
|
|
26407
26424
|
display: "df",
|
|
26408
26425
|
flexDirection: "fdc",
|
|
26409
26426
|
width: "wfc",
|
|
26410
26427
|
minWidth: "mw100"
|
|
26411
26428
|
}), ...tid, children: [
|
|
26412
|
-
showBanner && environmentBanner && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { ...(0,
|
|
26429
|
+
showBanner && environmentBanner && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { ...(0, import_runtime128.mergeProps)(void 0, {
|
|
26413
26430
|
height: environmentBannerSizePx
|
|
26414
26431
|
}, {
|
|
26415
26432
|
flexShrink: "fs0",
|
|
26416
26433
|
width: "w100"
|
|
26417
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { ...(0,
|
|
26434
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { ...(0, import_runtime128.trussProps)({
|
|
26418
26435
|
position: "fixed",
|
|
26419
26436
|
top: "top0",
|
|
26420
26437
|
left: "left0",
|
|
26421
26438
|
zIndex: ["z_var", {
|
|
26422
|
-
"--zIndex": (0,
|
|
26439
|
+
"--zIndex": (0, import_runtime128.maybeCssVar)(zIndices.environmentBanner)
|
|
26423
26440
|
}],
|
|
26424
26441
|
width: ["w_var", {
|
|
26425
|
-
"--width": (0,
|
|
26442
|
+
"--width": (0, import_runtime128.maybeCssVar)(__maybeInc24(innerWidth))
|
|
26426
26443
|
}]
|
|
26427
26444
|
}), ...tid.bannerSticky, children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
26428
26445
|
children
|
|
@@ -26430,7 +26447,7 @@ function EnvironmentBannerLayout(props) {
|
|
|
26430
26447
|
}
|
|
26431
26448
|
|
|
26432
26449
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
26433
|
-
var
|
|
26450
|
+
var import_runtime129 = require("@homebound/truss/runtime");
|
|
26434
26451
|
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
26435
26452
|
function FormSectionLayout(props) {
|
|
26436
26453
|
const {
|
|
@@ -26445,7 +26462,7 @@ function FormSectionLayout(props) {
|
|
|
26445
26462
|
/* @__PURE__ */ (0, import_jsx_runtime207.jsxs)("div", { className: "df jcsb", children: [
|
|
26446
26463
|
/* @__PURE__ */ (0, import_jsx_runtime207.jsxs)("div", { className: "df fdc gap_12px", children: [
|
|
26447
26464
|
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)("h1", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
|
|
26448
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { ...(0,
|
|
26465
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { ...(0, import_runtime129.trussProps)({
|
|
26449
26466
|
fontWeight: "fw4",
|
|
26450
26467
|
fontSize: "fz_14px",
|
|
26451
26468
|
lineHeight: "lh_20px",
|
|
@@ -26454,7 +26471,7 @@ function FormSectionLayout(props) {
|
|
|
26454
26471
|
}]
|
|
26455
26472
|
}), ...tid.description, children: description })
|
|
26456
26473
|
] }),
|
|
26457
|
-
actions && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { className: "df gap1 fs0", ...tid.actions, children: actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(Button, { ...action }, `${action.label}`)) })
|
|
26474
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { className: "df gap1 fs0", ...tid.actions, children: actions.map((action) => action.kind === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(IconButton, { ...action, variant: "outline" }, action.icon) : /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(Button, { ...action }, `${action.label}`)) })
|
|
26458
26475
|
] }),
|
|
26459
26476
|
initialFields,
|
|
26460
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)) })
|
|
@@ -26463,7 +26480,7 @@ function FormSectionLayout(props) {
|
|
|
26463
26480
|
|
|
26464
26481
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
26465
26482
|
var import_react152 = require("react");
|
|
26466
|
-
var
|
|
26483
|
+
var import_runtime130 = require("@homebound/truss/runtime");
|
|
26467
26484
|
|
|
26468
26485
|
// src/layouts/useAutoHideOnScroll.ts
|
|
26469
26486
|
var import_react149 = require("react");
|
|
@@ -26585,7 +26602,7 @@ function useNavbarLayoutHeight() {
|
|
|
26585
26602
|
|
|
26586
26603
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
26587
26604
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
26588
|
-
var
|
|
26605
|
+
var __maybeInc25 = (inc) => {
|
|
26589
26606
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26590
26607
|
};
|
|
26591
26608
|
function NavbarLayout(props) {
|
|
@@ -26613,10 +26630,10 @@ function NavbarLayout(props) {
|
|
|
26613
26630
|
position: "sticky",
|
|
26614
26631
|
left: "left0",
|
|
26615
26632
|
zIndex: ["z_var", {
|
|
26616
|
-
"--zIndex": (0,
|
|
26633
|
+
"--zIndex": (0, import_runtime130.maybeCssVar)(zIndices.navbar)
|
|
26617
26634
|
}],
|
|
26618
26635
|
width: ["w_var", {
|
|
26619
|
-
"--width": (0,
|
|
26636
|
+
"--width": (0, import_runtime130.maybeCssVar)(__maybeInc25(innerWidth))
|
|
26620
26637
|
}]
|
|
26621
26638
|
}
|
|
26622
26639
|
) : (
|
|
@@ -26625,10 +26642,10 @@ function NavbarLayout(props) {
|
|
|
26625
26642
|
position: "fixed",
|
|
26626
26643
|
left: "left0",
|
|
26627
26644
|
zIndex: ["z_var", {
|
|
26628
|
-
"--zIndex": (0,
|
|
26645
|
+
"--zIndex": (0, import_runtime130.maybeCssVar)(zIndices.navbar)
|
|
26629
26646
|
}],
|
|
26630
26647
|
width: ["w_var", {
|
|
26631
|
-
"--width": (0,
|
|
26648
|
+
"--width": (0, import_runtime130.maybeCssVar)(__maybeInc25(innerWidth))
|
|
26632
26649
|
}],
|
|
26633
26650
|
transition: "transitionTop"
|
|
26634
26651
|
}
|
|
@@ -26638,18 +26655,18 @@ function NavbarLayout(props) {
|
|
|
26638
26655
|
top: autoHideState === "revealed" ? bannerTop : `calc(${bannerTop} - ${navHeight}px)`
|
|
26639
26656
|
} : void 0;
|
|
26640
26657
|
const navbarEl = (0, import_react152.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Navbar, { ...navbar }), [navbar]);
|
|
26641
|
-
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { ...(0,
|
|
26658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { ...(0, import_runtime130.mergeProps)(void 0, cssVars, {
|
|
26642
26659
|
display: "df",
|
|
26643
26660
|
flexDirection: "fdc",
|
|
26644
26661
|
width: "wfc",
|
|
26645
26662
|
minWidth: "mw100"
|
|
26646
26663
|
}), ...tid, children: [
|
|
26647
|
-
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { ref: spacerRef, ...(0,
|
|
26664
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { ref: spacerRef, ...(0, import_runtime130.mergeProps)(void 0, {
|
|
26648
26665
|
height: navHeight
|
|
26649
26666
|
}, {
|
|
26650
26667
|
flexShrink: "fs0",
|
|
26651
26668
|
width: "w100"
|
|
26652
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { ref: navMetricsRef, ...(0,
|
|
26669
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { ref: navMetricsRef, ...(0, import_runtime130.mergeProps)(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
26653
26670
|
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
26654
26671
|
] }) }) });
|
|
26655
26672
|
}
|
|
@@ -26658,7 +26675,7 @@ function NavbarLayout(props) {
|
|
|
26658
26675
|
var import_react153 = require("react");
|
|
26659
26676
|
|
|
26660
26677
|
// src/components/Headers/BaseHeader.tsx
|
|
26661
|
-
var
|
|
26678
|
+
var import_runtime131 = require("@homebound/truss/runtime");
|
|
26662
26679
|
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
26663
26680
|
function BaseHeader(props) {
|
|
26664
26681
|
const {
|
|
@@ -26671,7 +26688,7 @@ function BaseHeader(props) {
|
|
|
26671
26688
|
} = props;
|
|
26672
26689
|
const tid = useTestIds(otherProps, "header");
|
|
26673
26690
|
useDocumentTitle(title, documentTitleSuffix);
|
|
26674
|
-
return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("header", { ...tid, ...(0,
|
|
26691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("header", { ...tid, ...(0, import_runtime131.trussProps)({
|
|
26675
26692
|
display: "df",
|
|
26676
26693
|
flexDirection: "fdc",
|
|
26677
26694
|
paddingTop: "pt3",
|
|
@@ -26685,7 +26702,7 @@ function BaseHeader(props) {
|
|
|
26685
26702
|
"--backgroundColor": "var(--b-surface)"
|
|
26686
26703
|
}]
|
|
26687
26704
|
}), children: [
|
|
26688
|
-
/* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { ...(0,
|
|
26705
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { ...(0, import_runtime131.trussProps)({
|
|
26689
26706
|
...{
|
|
26690
26707
|
display: "df",
|
|
26691
26708
|
justifyContent: "jcsb",
|
|
@@ -26701,7 +26718,7 @@ function BaseHeader(props) {
|
|
|
26701
26718
|
}), children: [
|
|
26702
26719
|
/* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { className: "mw0", children: [
|
|
26703
26720
|
breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Breadcrumbs, { ...breadcrumbs }),
|
|
26704
|
-
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)("h1", { ...tid.title, ...(0,
|
|
26721
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)("h1", { ...tid.title, ...(0, import_runtime131.trussProps)({
|
|
26705
26722
|
fontWeight: "fw6",
|
|
26706
26723
|
fontSize: "fz_20px",
|
|
26707
26724
|
lineHeight: "lh_28px",
|
|
@@ -26717,7 +26734,7 @@ function BaseHeader(props) {
|
|
|
26717
26734
|
}
|
|
26718
26735
|
|
|
26719
26736
|
// src/components/Headers/PageHeader.tsx
|
|
26720
|
-
var
|
|
26737
|
+
var import_runtime132 = require("@homebound/truss/runtime");
|
|
26721
26738
|
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
26722
26739
|
function PageHeader2(props) {
|
|
26723
26740
|
const {
|
|
@@ -26725,7 +26742,7 @@ function PageHeader2(props) {
|
|
|
26725
26742
|
...otherProps
|
|
26726
26743
|
} = props;
|
|
26727
26744
|
const tid = useTestIds(otherProps, "header");
|
|
26728
|
-
return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(BaseHeader, { ...otherProps, bottomSlot: tabs && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { ...(0,
|
|
26745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(BaseHeader, { ...otherProps, bottomSlot: tabs && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { ...(0, import_runtime132.trussProps)(pageContentPaddingX), children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Tabs, { ...tabs, ...tid.tabs }) }) });
|
|
26729
26746
|
}
|
|
26730
26747
|
|
|
26731
26748
|
// src/layouts/useBannerAndNavbarHeight.ts
|
|
@@ -26734,9 +26751,9 @@ function useBannerAndNavbarHeight() {
|
|
|
26734
26751
|
}
|
|
26735
26752
|
|
|
26736
26753
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
26737
|
-
var
|
|
26754
|
+
var import_runtime133 = require("@homebound/truss/runtime");
|
|
26738
26755
|
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
26739
|
-
var
|
|
26756
|
+
var __maybeInc26 = (inc) => {
|
|
26740
26757
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26741
26758
|
};
|
|
26742
26759
|
function PageHeaderLayout(props) {
|
|
@@ -26766,24 +26783,24 @@ function PageHeaderLayout(props) {
|
|
|
26766
26783
|
const innerCss = autoHideState === "static" ? {
|
|
26767
26784
|
position: "sticky",
|
|
26768
26785
|
left: ["left_var", {
|
|
26769
|
-
"--left": (0,
|
|
26786
|
+
"--left": (0, import_runtime133.maybeCssVar)(__maybeInc26(headerLeft))
|
|
26770
26787
|
}],
|
|
26771
26788
|
width: ["w_var", {
|
|
26772
|
-
"--width": (0,
|
|
26789
|
+
"--width": (0, import_runtime133.maybeCssVar)(__maybeInc26(headerWidth))
|
|
26773
26790
|
}],
|
|
26774
26791
|
zIndex: ["z_var", {
|
|
26775
|
-
"--zIndex": (0,
|
|
26792
|
+
"--zIndex": (0, import_runtime133.maybeCssVar)(zIndices.pageStickyHeader)
|
|
26776
26793
|
}]
|
|
26777
26794
|
} : {
|
|
26778
26795
|
position: "fixed",
|
|
26779
26796
|
left: ["left_var", {
|
|
26780
|
-
"--left": (0,
|
|
26797
|
+
"--left": (0, import_runtime133.maybeCssVar)(__maybeInc26(headerLeft))
|
|
26781
26798
|
}],
|
|
26782
26799
|
width: ["w_var", {
|
|
26783
|
-
"--width": (0,
|
|
26800
|
+
"--width": (0, import_runtime133.maybeCssVar)(__maybeInc26(headerWidth))
|
|
26784
26801
|
}],
|
|
26785
26802
|
zIndex: ["z_var", {
|
|
26786
|
-
"--zIndex": (0,
|
|
26803
|
+
"--zIndex": (0, import_runtime133.maybeCssVar)(zIndices.pageStickyHeader)
|
|
26787
26804
|
}],
|
|
26788
26805
|
transition: "transitionTop"
|
|
26789
26806
|
};
|
|
@@ -26791,17 +26808,17 @@ function PageHeaderLayout(props) {
|
|
|
26791
26808
|
top: autoHideState === "revealed" ? outerTop : `calc(${outerTop} - ${headerHeight}px)`
|
|
26792
26809
|
} : void 0;
|
|
26793
26810
|
const pageHeaderEl = (0, import_react153.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
26794
|
-
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)("div", { ...(0,
|
|
26811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)("div", { ...(0, import_runtime133.mergeProps)(void 0, cssVars, {
|
|
26795
26812
|
display: "df",
|
|
26796
26813
|
flexDirection: "fdc",
|
|
26797
26814
|
width: "w100"
|
|
26798
26815
|
}), ...tid, children: [
|
|
26799
|
-
/* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { ref: spacerRef, ...(0,
|
|
26816
|
+
/* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { ref: spacerRef, ...(0, import_runtime133.mergeProps)(void 0, {
|
|
26800
26817
|
height: headerHeight
|
|
26801
26818
|
}, {
|
|
26802
26819
|
flexShrink: "fs0",
|
|
26803
26820
|
width: "w100"
|
|
26804
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { ref: headerMetricsRef, ...(0,
|
|
26821
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime133.mergeProps)(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
26805
26822
|
/* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
|
|
26806
26823
|
] }) });
|
|
26807
26824
|
}
|
|
@@ -26843,9 +26860,9 @@ function WorkflowActions(props) {
|
|
|
26843
26860
|
}
|
|
26844
26861
|
|
|
26845
26862
|
// src/layouts/WorkflowLayout/WorkflowLayout.tsx
|
|
26846
|
-
var
|
|
26863
|
+
var import_runtime134 = require("@homebound/truss/runtime");
|
|
26847
26864
|
var import_jsx_runtime215 = require("react/jsx-runtime");
|
|
26848
|
-
var
|
|
26865
|
+
var __maybeInc27 = (inc) => {
|
|
26849
26866
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26850
26867
|
};
|
|
26851
26868
|
function WorkflowLayout(props) {
|
|
@@ -26907,48 +26924,48 @@ function WorkflowLayout(props) {
|
|
|
26907
26924
|
onChange: setCurrentStep,
|
|
26908
26925
|
collapsed
|
|
26909
26926
|
} });
|
|
26910
|
-
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)("div", { ...(0,
|
|
26927
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)("div", { ...(0, import_runtime134.mergeProps)(void 0, cssVars, {
|
|
26911
26928
|
display: "df",
|
|
26912
26929
|
flexDirection: "fdc",
|
|
26913
26930
|
width: "w100"
|
|
26914
26931
|
}), ...tid, children: [
|
|
26915
|
-
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ref: spacerRef, ...(0,
|
|
26932
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ref: spacerRef, ...(0, import_runtime134.mergeProps)(void 0, {
|
|
26916
26933
|
height: headerHeight
|
|
26917
26934
|
}, {
|
|
26918
26935
|
flexShrink: "fs0",
|
|
26919
26936
|
width: "w100"
|
|
26920
|
-
}), ...tid.spacer, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ref: headerMetricsRef, ...(0,
|
|
26937
|
+
}), ...tid.spacer, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime134.trussProps)({
|
|
26921
26938
|
position: "fixed",
|
|
26922
26939
|
width: ["w_var", {
|
|
26923
|
-
"--width": (0,
|
|
26940
|
+
"--width": (0, import_runtime134.maybeCssVar)(__maybeInc27(headerWidth))
|
|
26924
26941
|
}],
|
|
26925
26942
|
zIndex: ["z_var", {
|
|
26926
|
-
"--zIndex": (0,
|
|
26943
|
+
"--zIndex": (0, import_runtime134.maybeCssVar)(zIndices.pageStickyHeader)
|
|
26927
26944
|
}],
|
|
26928
26945
|
top: ["top_var", {
|
|
26929
|
-
"--top": (0,
|
|
26946
|
+
"--top": (0, import_runtime134.maybeCssVar)(__maybeInc27(outerTop))
|
|
26930
26947
|
}]
|
|
26931
26948
|
}), ...tid.header, children: headerEl }) }),
|
|
26932
26949
|
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children: activeStep?.content }),
|
|
26933
|
-
showFooter && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ...(0,
|
|
26950
|
+
showFooter && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ...(0, import_runtime134.trussProps)({
|
|
26934
26951
|
flexShrink: "fs0",
|
|
26935
26952
|
width: "w100",
|
|
26936
26953
|
height: ["h_var", {
|
|
26937
26954
|
"--height": `${mobileFooterHeightPx}px`
|
|
26938
26955
|
}]
|
|
26939
26956
|
}) }),
|
|
26940
|
-
showFooter && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ...(0,
|
|
26957
|
+
showFooter && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { ...(0, import_runtime134.trussProps)({
|
|
26941
26958
|
...{
|
|
26942
26959
|
position: "fixed",
|
|
26943
26960
|
bottom: "bottom0",
|
|
26944
26961
|
width: ["w_var", {
|
|
26945
|
-
"--width": (0,
|
|
26962
|
+
"--width": (0, import_runtime134.maybeCssVar)(__maybeInc27(headerWidth))
|
|
26946
26963
|
}],
|
|
26947
26964
|
height: ["h_var", {
|
|
26948
26965
|
"--height": `${mobileFooterHeightPx}px`
|
|
26949
26966
|
}],
|
|
26950
26967
|
zIndex: ["z_var", {
|
|
26951
|
-
"--zIndex": (0,
|
|
26968
|
+
"--zIndex": (0, import_runtime134.maybeCssVar)(zIndices.pageStickyFooter)
|
|
26952
26969
|
}],
|
|
26953
26970
|
display: "df",
|
|
26954
26971
|
alignItems: "aic",
|