@homebound/beam 4.14.8 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +204 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +176 -142
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -107,6 +107,7 @@ __export(index_exports, {
|
|
|
107
107
|
DnDGridItemHandle: () => DnDGridItemHandle,
|
|
108
108
|
DocumentScrollOverlayRightPaneLayout: () => DocumentScrollOverlayRightPaneLayout,
|
|
109
109
|
DocumentTitleProvider: () => DocumentTitleProvider,
|
|
110
|
+
DocumentUploadIllustration: () => DocumentUploadIllustration,
|
|
110
111
|
EXPANDABLE_HEADER: () => EXPANDABLE_HEADER,
|
|
111
112
|
EditColumnsButton: () => EditColumnsButton,
|
|
112
113
|
EnvironmentBanner: () => EnvironmentBanner,
|
|
@@ -14085,12 +14086,14 @@ var import_runtime41 = require("@homebound/truss/runtime");
|
|
|
14085
14086
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
14086
14087
|
function GridTableEmptyState(props) {
|
|
14087
14088
|
const {
|
|
14089
|
+
illustration,
|
|
14088
14090
|
title = "No results found",
|
|
14089
14091
|
description,
|
|
14090
14092
|
actions
|
|
14091
14093
|
} = props;
|
|
14092
14094
|
const tid = useTestIds(props, "gridTableEmptyState");
|
|
14093
14095
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "df fdc aic pt_12 pb_12 g_2", ...tid, children: [
|
|
14096
|
+
illustration && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...tid.illustration, children: illustration }),
|
|
14094
14097
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
|
|
14095
14098
|
description && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...(0, import_runtime41.trussProps)({
|
|
14096
14099
|
fontWeight: "fw4",
|
|
@@ -25434,6 +25437,7 @@ function composeEmptyState(tableProps, layoutState, layoutEmptyFallback, clearFi
|
|
|
25434
25437
|
const filteringActive = layoutState?.filteringActive ?? false;
|
|
25435
25438
|
const filterEmptyDescription = "Try adjusting your search or filters.";
|
|
25436
25439
|
return {
|
|
25440
|
+
illustration: tableEmptyState?.illustration,
|
|
25437
25441
|
title: tableEmptyState?.title ?? tableEmptyFallback ?? layoutEmptyFallback,
|
|
25438
25442
|
description: tableEmptyState?.description ?? (filteringActive ? filterEmptyDescription : void 0),
|
|
25439
25443
|
actions: tableEmptyState?.actions ?? (filteringActive && layoutState ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(Button, { label: "Clear Filters", variant: "tertiary", onClick: clearFilters, "data-testid": "clearFilters" }) : void 0)
|
|
@@ -29249,16 +29253,46 @@ function useToast() {
|
|
|
29249
29253
|
return { showToast, clear };
|
|
29250
29254
|
}
|
|
29251
29255
|
|
|
29252
|
-
// src/
|
|
29256
|
+
// src/illustrations/DocumentUploadIllustration.tsx
|
|
29253
29257
|
var import_runtime146 = require("@homebound/truss/runtime");
|
|
29254
29258
|
var import_jsx_runtime225 = require("react/jsx-runtime");
|
|
29259
|
+
function DocumentUploadIllustration(props) {
|
|
29260
|
+
const {
|
|
29261
|
+
width: width2 = 338
|
|
29262
|
+
} = props;
|
|
29263
|
+
const blob = "rgba(247, 245, 245, 1)" /* Gray100 */;
|
|
29264
|
+
const line = "rgba(141, 141, 141, 1)" /* Gray600 */;
|
|
29265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)("svg", { viewBox: "0 0 338.25 270.6", xmlns: "http://www.w3.org/2000/svg", fill: "none", "aria-hidden": true, role: "presentation", ...(0, import_runtime146.trussProps)({
|
|
29266
|
+
width: ["w_var", {
|
|
29267
|
+
"--width": `${width2}px`
|
|
29268
|
+
}],
|
|
29269
|
+
maxWidth: "maxw100",
|
|
29270
|
+
height: "ha"
|
|
29271
|
+
}), children: [
|
|
29272
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M256.146 107.294C256.146 107.294 267.377 64.7481 227.738 51.0067C188.1 37.2653 159.572 58.7309 145.026 75.3184C129.963 92.4952 127.849 132.662 96.9308 140.326C66.0126 147.989 59.4329 170.861 62.313 186.571C65.2199 202.426 72.3548 210.618 107.501 210.618H231.174C231.174 210.618 270.548 216.961 278.476 197.406C286.404 177.85 276.362 168.337 259.978 154.596C243.594 140.854 243.594 131.077 249.143 122.356C254.693 113.636 256.146 107.294 256.146 107.294Z", fill: blob }),
|
|
29273
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M198.269 73.0502H132.422C125.722 73.0502 120.291 80.558 120.291 89.8194V194.831C120.291 204.092 125.722 211.6 132.422 211.6H211.249C217.949 211.6 223.38 204.092 223.38 194.831V100.978L198.269 73.0502Z", fill: "rgba(255, 255, 255, 1)" /* White */ }),
|
|
29274
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M201.273 78.2404C200.767 78.2404 200.262 78.0337 199.897 77.6275L197.444 74.8999H193.776C192.754 74.8999 191.926 74.0718 191.926 73.0501C191.926 72.0284 192.754 71.2003 193.776 71.2003H198.268C198.793 71.2003 199.293 71.4232 199.644 71.8132L202.648 75.1537C203.331 75.9135 203.269 77.083 202.509 77.7661C202.156 78.0839 201.714 78.2404 201.273 78.2404Z", fill: line }),
|
|
29275
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M211.249 213.45H211.111C210.09 213.45 209.261 212.622 209.261 211.6C209.261 210.578 210.09 209.75 211.111 209.75H211.249C214.146 209.75 216.274 208.026 217.55 206.579C218.225 205.813 219.394 205.739 220.161 206.415C220.927 207.091 221.001 208.26 220.325 209.026C217.809 211.879 214.586 213.45 211.249 213.45ZM203.446 213.45H194.459C193.437 213.45 192.609 212.622 192.609 211.6C192.609 210.578 193.437 209.75 194.459 209.75H203.446C204.467 209.75 205.296 210.578 205.296 211.6C205.296 212.622 204.467 213.45 203.446 213.45ZM186.793 213.45H177.806C176.784 213.45 175.956 212.622 175.956 211.6C175.956 210.578 176.784 209.75 177.806 209.75H186.793C187.815 209.75 188.643 210.578 188.643 211.6C188.643 212.622 187.815 213.45 186.793 213.45ZM170.14 213.45H161.153C160.131 213.45 159.303 212.622 159.303 211.6C159.303 210.578 160.131 209.75 161.153 209.75H170.14C171.162 209.75 171.99 210.578 171.99 211.6C171.99 212.622 171.162 213.45 170.14 213.45ZM153.488 213.45H144.5C143.479 213.45 142.651 212.622 142.651 211.6C142.651 210.578 143.479 209.75 144.5 209.75H153.488C154.509 209.75 155.337 210.578 155.337 211.6C155.337 212.622 154.509 213.45 153.488 213.45ZM136.835 213.45H132.422C130.603 213.45 128.835 212.997 127.167 212.104C126.267 211.621 125.928 210.5 126.41 209.599C126.893 208.699 128.014 208.359 128.914 208.842C130.039 209.445 131.219 209.75 132.422 209.75H136.835C137.857 209.75 138.685 210.578 138.685 211.6C138.685 212.622 137.857 213.45 136.835 213.45ZM122.794 206.881C122.144 206.881 121.513 206.538 121.175 205.929C119.662 203.203 118.738 199.971 118.502 196.584C118.431 195.565 119.2 194.681 120.219 194.61C121.236 194.544 122.122 195.308 122.193 196.328C122.391 199.178 123.158 201.877 124.41 204.133C124.905 205.027 124.583 206.153 123.69 206.648C123.406 206.806 123.098 206.881 122.794 206.881ZM222.508 202.938C222.337 202.938 222.163 202.914 221.99 202.864C221.009 202.578 220.445 201.552 220.731 200.571C221.261 198.75 221.53 196.819 221.53 194.831V192.183C221.53 191.161 222.358 190.333 223.38 190.333C224.402 190.333 225.23 191.161 225.23 192.183V194.831C225.229 197.169 224.911 199.448 224.283 201.605C224.048 202.413 223.309 202.938 222.508 202.938ZM120.291 190.641C119.27 190.641 118.441 189.813 118.441 188.792V179.804C118.441 178.783 119.27 177.955 120.291 177.955C121.313 177.955 122.141 178.783 122.141 179.804V188.792C122.141 189.813 121.313 190.641 120.291 190.641ZM223.38 186.367C222.358 186.367 221.53 185.539 221.53 184.517V175.53C221.53 174.508 222.358 173.68 223.38 173.68C224.402 173.68 225.23 174.508 225.23 175.53V184.517C225.23 185.539 224.402 186.367 223.38 186.367ZM120.291 173.989C119.27 173.989 118.441 173.161 118.441 172.139V163.152C118.441 162.13 119.27 161.302 120.291 161.302C121.313 161.302 122.141 162.13 122.141 163.152V172.139C122.141 173.161 121.313 173.989 120.291 173.989ZM223.38 169.714C222.358 169.714 221.53 168.886 221.53 167.864V158.877C221.53 157.855 222.358 157.027 223.38 157.027C224.402 157.027 225.23 157.855 225.23 158.877V167.864C225.23 168.886 224.402 169.714 223.38 169.714ZM120.291 157.336C119.27 157.336 118.441 156.508 118.441 155.486V146.499C118.441 145.477 119.27 144.649 120.291 144.649C121.313 144.649 122.141 145.477 122.141 146.499V155.486C122.141 156.508 121.313 157.336 120.291 157.336ZM223.38 153.061C222.358 153.061 221.53 152.233 221.53 151.211V142.224C221.53 141.203 222.358 140.375 223.38 140.375C224.402 140.375 225.23 141.203 225.23 142.224V151.211C225.23 152.233 224.402 153.061 223.38 153.061ZM120.291 140.683C119.27 140.683 118.441 139.855 118.441 138.833V129.846C118.441 128.825 119.27 127.997 120.291 127.997C121.313 127.997 122.141 128.825 122.141 129.846V138.833C122.141 139.855 121.313 140.683 120.291 140.683ZM223.38 136.409C222.358 136.409 221.53 135.581 221.53 134.559V125.572C221.53 124.55 222.358 123.722 223.38 123.722C224.402 123.722 225.23 124.55 225.23 125.572V134.559C225.23 135.581 224.402 136.409 223.38 136.409ZM120.291 124.031C119.27 124.031 118.441 123.202 118.441 122.181V113.194C118.441 112.172 119.27 111.344 120.291 111.344C121.313 111.344 122.141 112.172 122.141 113.194V122.181C122.141 123.202 121.313 124.031 120.291 124.031ZM223.38 119.756C222.358 119.756 221.53 118.928 221.53 117.906V108.919C221.53 107.897 222.358 107.069 223.38 107.069C224.402 107.069 225.23 107.897 225.23 108.919V117.906C225.23 118.928 224.402 119.756 223.38 119.756ZM120.291 107.378C119.27 107.378 118.441 106.55 118.441 105.528V96.5409C118.441 95.5193 119.27 94.6911 120.291 94.6911C121.313 94.6911 122.141 95.5193 122.141 96.5409V105.528C122.141 106.55 121.313 107.378 120.291 107.378ZM223.38 103.103C222.537 103.103 221.825 102.539 221.603 101.768L216.18 95.7367C215.497 94.9771 215.559 93.8075 216.318 93.1244C217.078 92.4415 218.248 92.5033 218.931 93.2631L224.755 99.7411C225.061 100.081 225.23 100.521 225.23 100.978V101.253C225.23 102.275 224.402 103.103 223.38 103.103ZM120.312 90.7253C120.287 90.7253 120.262 90.7248 120.236 90.7239C119.215 90.683 118.421 89.8222 118.462 88.8015C118.597 85.4287 119.413 82.1733 120.823 79.3874C121.284 78.4757 122.396 78.1104 123.308 78.5715C124.22 79.0327 124.585 80.1455 124.124 81.0571C122.952 83.3736 122.273 86.1027 122.159 88.9496C122.119 89.9452 121.299 90.7253 120.312 90.7253ZM212.43 90.6496C211.924 90.6496 211.42 90.4429 211.054 90.0366L205.045 83.3536C204.362 82.594 204.425 81.4244 205.184 80.7413C205.944 80.0585 207.113 80.12 207.796 80.88L213.805 87.563C214.489 88.3226 214.426 89.4923 213.667 90.1753C213.313 90.4931 212.871 90.6496 212.43 90.6496ZM127.452 76.3686C126.834 76.3686 126.23 76.0589 125.88 75.4953C125.34 74.6277 125.606 73.487 126.474 72.9477C128.338 71.7883 130.34 71.2004 132.422 71.2004H136.152C137.174 71.2004 138.002 72.0286 138.002 73.0502C138.002 74.0719 137.174 74.9 136.152 74.9H132.422C131.041 74.9 129.697 75.3002 128.427 76.0893C128.123 76.2784 127.786 76.3686 127.452 76.3686ZM186.111 74.9H177.123C176.102 74.9 175.274 74.0719 175.274 73.0502C175.274 72.0286 176.102 71.2004 177.123 71.2004H186.111C187.132 71.2004 187.96 72.0286 187.96 73.0502C187.96 74.0719 187.132 74.9 186.111 74.9ZM169.458 74.9H160.471C159.449 74.9 158.621 74.0719 158.621 73.0502C158.621 72.0286 159.449 71.2004 160.471 71.2004H169.458C170.48 71.2004 171.308 72.0286 171.308 73.0502C171.308 74.0719 170.48 74.9 169.458 74.9ZM152.805 74.9H143.818C142.796 74.9 141.968 74.0719 141.968 73.0502C141.968 72.0286 142.796 71.2004 143.818 71.2004H152.805C153.827 71.2004 154.655 72.0286 154.655 73.0502C154.655 74.0719 153.827 74.9 152.805 74.9Z", fill: line }),
|
|
29276
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M192.785 83.3351V99.2582C192.785 102.885 195.726 105.826 199.353 105.826H215.482", fill: "rgba(255, 255, 255, 1)" /* White */ }),
|
|
29277
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M215.39 107.676H206.406C205.384 107.676 204.556 106.848 204.556 105.826C204.556 104.804 205.384 103.976 206.406 103.976H215.39C216.412 103.976 217.24 104.804 217.24 105.826C217.24 106.848 216.412 107.676 215.39 107.676ZM198.745 107.648C198.689 107.648 198.632 107.645 198.574 107.64C194.611 107.275 191.419 104.139 190.986 100.183C190.874 99.1675 191.608 98.2541 192.623 98.1428C193.636 98.0331 194.552 98.7646 194.663 99.7801C194.906 101.996 196.693 103.752 198.913 103.956C199.93 104.049 200.679 104.95 200.585 105.967C200.497 106.927 199.691 107.648 198.745 107.648ZM192.785 94.1696C191.764 94.1696 190.936 93.3415 190.936 92.3198V83.335C190.936 82.3134 191.764 81.4852 192.785 81.4852C193.807 81.4852 194.635 82.3134 194.635 83.335V92.3198C194.635 93.3415 193.807 94.1696 192.785 94.1696Z", fill: line }),
|
|
29278
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M189.911 178.207H154.776C153.609 178.207 152.662 177.261 152.662 176.093C152.662 174.926 153.609 173.979 154.776 173.979H189.911C191.078 173.979 192.025 174.926 192.025 176.093C192.025 177.261 191.078 178.207 189.911 178.207Z", fill: line }),
|
|
29279
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M171.711 166.32C170.544 166.32 169.597 165.373 169.597 164.206V124.131C169.597 122.963 170.544 122.017 171.711 122.017C172.878 122.017 173.825 122.963 173.825 124.131V164.206C173.825 165.373 172.878 166.32 171.711 166.32Z", fill: line }),
|
|
29280
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M191.126 144.439C190.608 144.439 190.089 144.25 189.681 143.868L171.72 127.037L154 143.858C153.154 144.662 151.815 144.628 151.012 143.781C150.208 142.934 150.243 141.596 151.089 140.792L170.256 122.597C171.068 121.827 172.34 121.823 173.157 122.588L192.572 140.783C193.424 141.581 193.467 142.919 192.669 143.771C192.253 144.215 191.69 144.439 191.126 144.439Z", fill: line }),
|
|
29281
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M264.954 212.204H230.865C229.989 212.204 229.279 211.494 229.279 210.618C229.279 209.743 229.989 209.033 230.865 209.033H264.954C265.83 209.033 266.54 209.743 266.54 210.618C266.54 211.494 265.83 212.204 264.954 212.204Z", fill: line }),
|
|
29282
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)("path", { d: "M112.806 212.204H80.0384C79.1628 212.204 78.4529 211.494 78.4529 210.618C78.4529 209.743 79.1628 209.033 80.0384 209.033H112.806C113.682 209.033 114.392 209.743 114.392 210.618C114.392 211.494 113.682 212.204 112.806 212.204Z", fill: line })
|
|
29283
|
+
] });
|
|
29284
|
+
}
|
|
29285
|
+
|
|
29286
|
+
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
29287
|
+
var import_runtime147 = require("@homebound/truss/runtime");
|
|
29288
|
+
var import_jsx_runtime226 = require("react/jsx-runtime");
|
|
29255
29289
|
var __maybeInc29 = (inc) => {
|
|
29256
29290
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29257
29291
|
};
|
|
29258
29292
|
function SideNavLayout(props) {
|
|
29259
29293
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
29260
|
-
if (hasProvider) return /* @__PURE__ */ (0,
|
|
29261
|
-
return /* @__PURE__ */ (0,
|
|
29294
|
+
if (hasProvider) return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SideNavLayoutContent, { ...props });
|
|
29295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SideNavLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SideNavLayoutContent, { ...props }) });
|
|
29262
29296
|
}
|
|
29263
29297
|
function SideNavLayoutContent(props) {
|
|
29264
29298
|
const {
|
|
@@ -29281,7 +29315,7 @@ function SideNavLayoutContent(props) {
|
|
|
29281
29315
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
29282
29316
|
const navTop = bannerAndNavbarChromeTop();
|
|
29283
29317
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
29284
|
-
const rail = showRail && /* @__PURE__ */ (0,
|
|
29318
|
+
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { ...(0, import_runtime147.trussProps)({
|
|
29285
29319
|
...{
|
|
29286
29320
|
display: "df",
|
|
29287
29321
|
flexDirection: "fdc",
|
|
@@ -29305,14 +29339,14 @@ function SideNavLayoutContent(props) {
|
|
|
29305
29339
|
position: "sticky",
|
|
29306
29340
|
left: "l_0",
|
|
29307
29341
|
zIndex: ["z_var", {
|
|
29308
|
-
"--zIndex": (0,
|
|
29342
|
+
"--zIndex": (0, import_runtime147.maybeCssVar)(zIndices.sideNav)
|
|
29309
29343
|
}],
|
|
29310
29344
|
top: ["top_var", {
|
|
29311
|
-
"--top": (0,
|
|
29345
|
+
"--top": (0, import_runtime147.maybeCssVar)(__maybeInc29(navTop))
|
|
29312
29346
|
}],
|
|
29313
29347
|
alignSelf: "asfs",
|
|
29314
29348
|
height: ["h_var", {
|
|
29315
|
-
"--height": (0,
|
|
29349
|
+
"--height": (0, import_runtime147.maybeCssVar)(__maybeInc29(railViewportHeight))
|
|
29316
29350
|
}],
|
|
29317
29351
|
width: ["w_var", {
|
|
29318
29352
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -29322,11 +29356,11 @@ function SideNavLayoutContent(props) {
|
|
|
29322
29356
|
position: "fixed",
|
|
29323
29357
|
left: "l_0",
|
|
29324
29358
|
top: ["top_var", {
|
|
29325
|
-
"--top": (0,
|
|
29359
|
+
"--top": (0, import_runtime147.maybeCssVar)(__maybeInc29(navTop))
|
|
29326
29360
|
}],
|
|
29327
29361
|
bottom: "bot_0",
|
|
29328
29362
|
zIndex: ["z_var", {
|
|
29329
|
-
"--zIndex": (0,
|
|
29363
|
+
"--zIndex": (0, import_runtime147.maybeCssVar)(zIndices.sideNav)
|
|
29330
29364
|
}]
|
|
29331
29365
|
},
|
|
29332
29366
|
...collapsed ? {
|
|
@@ -29338,18 +29372,18 @@ function SideNavLayoutContent(props) {
|
|
|
29338
29372
|
}
|
|
29339
29373
|
}
|
|
29340
29374
|
}), ...tid.sideNav, children: [
|
|
29341
|
-
showCollapseToggle && /* @__PURE__ */ (0,
|
|
29342
|
-
/* @__PURE__ */ (0,
|
|
29375
|
+
showCollapseToggle && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { className: "absolute r_2 top2 z2", children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
|
|
29376
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SideNav, { ...sideNav }) })
|
|
29343
29377
|
] });
|
|
29344
|
-
return /* @__PURE__ */ (0,
|
|
29378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { ...(0, import_runtime147.mergeProps)(void 0, {
|
|
29345
29379
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
29346
29380
|
}, {
|
|
29347
29381
|
display: "df",
|
|
29348
29382
|
flexDirection: "fdr",
|
|
29349
29383
|
width: "w100"
|
|
29350
29384
|
}), ...tid, children: [
|
|
29351
|
-
contrastRail ? /* @__PURE__ */ (0,
|
|
29352
|
-
/* @__PURE__ */ (0,
|
|
29385
|
+
contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(ContrastScope, { children: rail }) : rail,
|
|
29386
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { ...(0, import_runtime147.trussProps)({
|
|
29353
29387
|
display: "df",
|
|
29354
29388
|
flexDirection: "fdc",
|
|
29355
29389
|
flexGrow: "fg1",
|
|
@@ -29365,8 +29399,8 @@ function SideNavLayoutContent(props) {
|
|
|
29365
29399
|
}
|
|
29366
29400
|
|
|
29367
29401
|
// src/layouts/CenteredLayout/CenteredLayout.tsx
|
|
29368
|
-
var
|
|
29369
|
-
var
|
|
29402
|
+
var import_runtime148 = require("@homebound/truss/runtime");
|
|
29403
|
+
var import_jsx_runtime227 = require("react/jsx-runtime");
|
|
29370
29404
|
function CenteredLayout(props) {
|
|
29371
29405
|
const {
|
|
29372
29406
|
size,
|
|
@@ -29378,7 +29412,7 @@ function CenteredLayout(props) {
|
|
|
29378
29412
|
mdAndUp
|
|
29379
29413
|
} = useBreakpoint();
|
|
29380
29414
|
const rightPane = resolveWithRightPaneOptions(withRightPane);
|
|
29381
|
-
const shell = /* @__PURE__ */ (0,
|
|
29415
|
+
const shell = /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(ContentInsetProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("div", { ...(0, import_runtime148.mergeProps)(void 0, {
|
|
29382
29416
|
// layoutContainer descendants (e.g. ContentHeader) read this to inset sticky horizontal chrome within the shell padding.
|
|
29383
29417
|
[beamLayoutContentPaddingXVar]: mdAndUp ? pageContentPaddingXValue : smPageContentPaddingXValue,
|
|
29384
29418
|
// Floor while an ancestor overlay pane is open (`0px` when closed). `md+` only — phones must not get a dummy scrollbar.
|
|
@@ -29397,7 +29431,7 @@ function CenteredLayout(props) {
|
|
|
29397
29431
|
...pageContentPaddingX
|
|
29398
29432
|
}), ...tid, children }) });
|
|
29399
29433
|
if (!rightPane) return shell;
|
|
29400
|
-
return /* @__PURE__ */ (0,
|
|
29434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: shell });
|
|
29401
29435
|
}
|
|
29402
29436
|
var centeredContentMaxPx = {
|
|
29403
29437
|
sm: 720,
|
|
@@ -29410,8 +29444,8 @@ var centeredShellMaxPx = {
|
|
|
29410
29444
|
};
|
|
29411
29445
|
|
|
29412
29446
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
29413
|
-
var
|
|
29414
|
-
var
|
|
29447
|
+
var import_runtime149 = require("@homebound/truss/runtime");
|
|
29448
|
+
var import_jsx_runtime228 = require("react/jsx-runtime");
|
|
29415
29449
|
var __maybeInc30 = (inc) => {
|
|
29416
29450
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29417
29451
|
};
|
|
@@ -29427,42 +29461,42 @@ function EnvironmentBannerLayout(props) {
|
|
|
29427
29461
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
29428
29462
|
};
|
|
29429
29463
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
29430
|
-
return /* @__PURE__ */ (0,
|
|
29464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)("div", { ...(0, import_runtime149.mergeProps)(void 0, style, {
|
|
29431
29465
|
display: "df",
|
|
29432
29466
|
flexDirection: "fdc",
|
|
29433
29467
|
width: "wfc",
|
|
29434
29468
|
minWidth: "mw100"
|
|
29435
29469
|
}), ...tid, children: [
|
|
29436
|
-
showBanner && environmentBanner && /* @__PURE__ */ (0,
|
|
29470
|
+
showBanner && environmentBanner && /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("div", { ...(0, import_runtime149.mergeProps)(void 0, {
|
|
29437
29471
|
height: environmentBannerSizePx
|
|
29438
29472
|
}, {
|
|
29439
29473
|
flexShrink: "fs0",
|
|
29440
29474
|
width: "w100"
|
|
29441
|
-
}), children: /* @__PURE__ */ (0,
|
|
29475
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("div", { ...(0, import_runtime149.trussProps)({
|
|
29442
29476
|
position: "fixed",
|
|
29443
29477
|
top: "top0",
|
|
29444
29478
|
left: "l_0",
|
|
29445
29479
|
zIndex: ["z_var", {
|
|
29446
|
-
"--zIndex": (0,
|
|
29480
|
+
"--zIndex": (0, import_runtime149.maybeCssVar)(zIndices.environmentBanner)
|
|
29447
29481
|
}],
|
|
29448
29482
|
width: ["w_var", {
|
|
29449
|
-
"--width": (0,
|
|
29483
|
+
"--width": (0, import_runtime149.maybeCssVar)(__maybeInc30(innerWidth))
|
|
29450
29484
|
}]
|
|
29451
|
-
}), ...tid.bannerSticky, children: /* @__PURE__ */ (0,
|
|
29485
|
+
}), ...tid.bannerSticky, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
29452
29486
|
children
|
|
29453
29487
|
] }) }) });
|
|
29454
29488
|
}
|
|
29455
29489
|
|
|
29456
29490
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
29457
|
-
var
|
|
29491
|
+
var import_runtime153 = require("@homebound/truss/runtime");
|
|
29458
29492
|
|
|
29459
29493
|
// src/forms/FormSection/FormSection.tsx
|
|
29460
|
-
var
|
|
29494
|
+
var import_runtime151 = require("@homebound/truss/runtime");
|
|
29461
29495
|
|
|
29462
29496
|
// src/forms/FormSection/FormSectionChild.tsx
|
|
29463
29497
|
var import_react160 = require("react");
|
|
29464
|
-
var
|
|
29465
|
-
var
|
|
29498
|
+
var import_runtime150 = require("@homebound/truss/runtime");
|
|
29499
|
+
var import_jsx_runtime229 = require("react/jsx-runtime");
|
|
29466
29500
|
function FormSectionChild(props) {
|
|
29467
29501
|
const {
|
|
29468
29502
|
title,
|
|
@@ -29481,10 +29515,10 @@ function FormSectionChild(props) {
|
|
|
29481
29515
|
id: props.id ?? title,
|
|
29482
29516
|
itemRef
|
|
29483
29517
|
});
|
|
29484
|
-
return /* @__PURE__ */ (0,
|
|
29518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)("div", { ...isDraggable ? {
|
|
29485
29519
|
...dragItemProps,
|
|
29486
29520
|
ref: itemRef
|
|
29487
|
-
} : {}, ...(0,
|
|
29521
|
+
} : {}, ...(0, import_runtime150.trussProps)({
|
|
29488
29522
|
display: "df",
|
|
29489
29523
|
flexDirection: "fdc",
|
|
29490
29524
|
gap: "g_2",
|
|
@@ -29500,13 +29534,13 @@ function FormSectionChild(props) {
|
|
|
29500
29534
|
borderStyle: "lot_bsn",
|
|
29501
29535
|
borderWidth: "lot_bw_0"
|
|
29502
29536
|
}), ...tid, children: [
|
|
29503
|
-
/* @__PURE__ */ (0,
|
|
29537
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(ContentHeader, { ...tid.header, title, description, actions, level: 4, startAdornment: isDraggable ? /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(DnDGridItemHandle, { dragHandleProps, icon: "drag", compact: true }) : void 0 }),
|
|
29504
29538
|
fields
|
|
29505
29539
|
] });
|
|
29506
29540
|
}
|
|
29507
29541
|
|
|
29508
29542
|
// src/forms/FormSection/FormSection.tsx
|
|
29509
|
-
var
|
|
29543
|
+
var import_jsx_runtime230 = require("react/jsx-runtime");
|
|
29510
29544
|
function FormSection(props) {
|
|
29511
29545
|
const {
|
|
29512
29546
|
title,
|
|
@@ -29516,17 +29550,17 @@ function FormSection(props) {
|
|
|
29516
29550
|
childSections
|
|
29517
29551
|
} = props;
|
|
29518
29552
|
const tid = useTestIds(props, "formSection");
|
|
29519
|
-
return /* @__PURE__ */ (0,
|
|
29553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)("div", { id: defaultTestId(title), ...(0, import_runtime151.trussProps)({
|
|
29520
29554
|
display: "df",
|
|
29521
29555
|
flexDirection: "fdc",
|
|
29522
29556
|
gap: "g_2",
|
|
29523
29557
|
scrollMarginTop: ["scrollMarginTop_var", {
|
|
29524
|
-
"--scrollMarginTop": (0,
|
|
29558
|
+
"--scrollMarginTop": (0, import_runtime151.maybeCssVar)(stickyNavAndHeaderOffset())
|
|
29525
29559
|
}]
|
|
29526
29560
|
}), ...tid.section, children: [
|
|
29527
|
-
/* @__PURE__ */ (0,
|
|
29561
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(ContentHeader, { ...tid, title, description, actions, level: 3 }),
|
|
29528
29562
|
fields,
|
|
29529
|
-
childSections && (isReorderable(childSections) ? /* @__PURE__ */ (0,
|
|
29563
|
+
childSections && (isReorderable(childSections) ? /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(DraggableChildren, { childSections, ...tid.childSection }) : /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("div", { className: "df fdc g_3", children: childSections.map((child) => /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(FormSectionChild, { ...child, ...tid.childSection }, child.id ?? child.title)) }))
|
|
29530
29564
|
] });
|
|
29531
29565
|
}
|
|
29532
29566
|
function isReorderable(childSections) {
|
|
@@ -29549,18 +29583,18 @@ function DraggableChildren(props) {
|
|
|
29549
29583
|
}
|
|
29550
29584
|
});
|
|
29551
29585
|
};
|
|
29552
|
-
return /* @__PURE__ */ (0,
|
|
29586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(DnDGrid, { onReorder: handleReorder, lockAxis: "y", gridStyles: {
|
|
29553
29587
|
gridTemplateColumns: "gtc_minmax_0_1fr",
|
|
29554
29588
|
gap: "g_3"
|
|
29555
|
-
}, children: sorted.map((child) => /* @__PURE__ */ (0,
|
|
29589
|
+
}, children: sorted.map((child) => /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(FormSectionChild, { ...child, ...tid }, child.id)) });
|
|
29556
29590
|
}
|
|
29557
29591
|
function sortByOrderField(childSections) {
|
|
29558
29592
|
return [...childSections].sort((a, b) => (a.orderField.value ?? 0) - (b.orderField.value ?? 0));
|
|
29559
29593
|
}
|
|
29560
29594
|
|
|
29561
29595
|
// src/layouts/FormSectionLayout/JumpLinksRail.tsx
|
|
29562
|
-
var
|
|
29563
|
-
var
|
|
29596
|
+
var import_runtime152 = require("@homebound/truss/runtime");
|
|
29597
|
+
var import_jsx_runtime231 = require("react/jsx-runtime");
|
|
29564
29598
|
var __maybeInc31 = (inc) => {
|
|
29565
29599
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29566
29600
|
};
|
|
@@ -29570,7 +29604,7 @@ function JumpLinksRail(props) {
|
|
|
29570
29604
|
activeId
|
|
29571
29605
|
} = props;
|
|
29572
29606
|
const tid = useTestIds(props, "jumpLinks");
|
|
29573
|
-
return /* @__PURE__ */ (0,
|
|
29607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)("nav", { ...(0, import_runtime152.trussProps)({
|
|
29574
29608
|
display: "df",
|
|
29575
29609
|
flexDirection: "fdc",
|
|
29576
29610
|
flexShrink: "fs0",
|
|
@@ -29580,9 +29614,9 @@ function JumpLinksRail(props) {
|
|
|
29580
29614
|
position: "sticky",
|
|
29581
29615
|
alignSelf: "asfs",
|
|
29582
29616
|
top: ["top_var", {
|
|
29583
|
-
"--top": (0,
|
|
29617
|
+
"--top": (0, import_runtime152.maybeCssVar)(__maybeInc31(stickyNavAndHeaderOffset()))
|
|
29584
29618
|
}]
|
|
29585
|
-
}), ...tid, children: links.map((link) => /* @__PURE__ */ (0,
|
|
29619
|
+
}), ...tid, children: links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(JumpLink, { label: link.label, href: `#${link.id}`, active: link.id === activeId, ...tid.link }, link.id)) });
|
|
29586
29620
|
}
|
|
29587
29621
|
var jumpLinksRailWidthPx = 192;
|
|
29588
29622
|
var railAndShellPx = centeredShellMaxPx.sm + jumpLinksRailWidthPx;
|
|
@@ -29618,7 +29652,7 @@ function useActiveJumpLink(sectionIds) {
|
|
|
29618
29652
|
}
|
|
29619
29653
|
|
|
29620
29654
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
29621
|
-
var
|
|
29655
|
+
var import_jsx_runtime232 = require("react/jsx-runtime");
|
|
29622
29656
|
var __maybeInc32 = (inc) => {
|
|
29623
29657
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29624
29658
|
};
|
|
@@ -29655,7 +29689,7 @@ function FormSectionLayout(props) {
|
|
|
29655
29689
|
}] : [], ...sectionLinks];
|
|
29656
29690
|
const showRail = withJumpLinks && jumpLinks.length >= 2 && !isMobile;
|
|
29657
29691
|
const activeId = useActiveJumpLink(showRail ? jumpLinks.map((link) => link.id) : []);
|
|
29658
|
-
const content2 = /* @__PURE__ */ (0,
|
|
29692
|
+
const content2 = /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { ...(0, import_runtime153.trussProps)({
|
|
29659
29693
|
display: "df",
|
|
29660
29694
|
flexDirection: "fdc",
|
|
29661
29695
|
gap: "g_8",
|
|
@@ -29666,38 +29700,38 @@ function FormSectionLayout(props) {
|
|
|
29666
29700
|
paddingLeft: "pl3"
|
|
29667
29701
|
} : {}
|
|
29668
29702
|
}), children: [
|
|
29669
|
-
/* @__PURE__ */ (0,
|
|
29703
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { id: titleAnchor ? formSectionLayoutTitleId : void 0, ...(0, import_runtime153.trussProps)({
|
|
29670
29704
|
display: "df",
|
|
29671
29705
|
flexDirection: "fdc",
|
|
29672
29706
|
gap: "g_3",
|
|
29673
29707
|
...titleAnchor ? {
|
|
29674
29708
|
scrollMarginTop: ["scrollMarginTop_var", {
|
|
29675
|
-
"--scrollMarginTop": (0,
|
|
29709
|
+
"--scrollMarginTop": (0, import_runtime153.maybeCssVar)(stickyNavAndHeaderOffset())
|
|
29676
29710
|
}]
|
|
29677
29711
|
} : {}
|
|
29678
29712
|
}), children: [
|
|
29679
|
-
/* @__PURE__ */ (0,
|
|
29713
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(ContentHeader, { ...tid, title, description, actions, withAutoSave, level: 2, aiMode }),
|
|
29680
29714
|
initialFields
|
|
29681
29715
|
] }),
|
|
29682
|
-
sections && /* @__PURE__ */ (0,
|
|
29716
|
+
sections && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { className: "df fdc g_8", children: sections.map((section, i) => /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(FormSection, { ...section }, defaultTestId(section.title) || i)) })
|
|
29683
29717
|
] });
|
|
29684
|
-
const form = /* @__PURE__ */ (0,
|
|
29685
|
-
const body = showRail ? /* @__PURE__ */ (0,
|
|
29686
|
-
/* @__PURE__ */ (0,
|
|
29687
|
-
/* @__PURE__ */ (0,
|
|
29718
|
+
const form = /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(CenteredLayout, { size: "sm", children: aiMode ? /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(AiCard, { size: "lg", ...tid, children: content2 }) : content2 });
|
|
29719
|
+
const body = showRail ? /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { className: "df w100 mb4", children: [
|
|
29720
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(JumpLinksRail, { links: jumpLinks, activeId, ...tid.jumpLinks }),
|
|
29721
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { ...(0, import_runtime153.trussProps)({
|
|
29688
29722
|
flexGrow: "fg1",
|
|
29689
29723
|
marginRight: ["mr_var", {
|
|
29690
|
-
"--marginRight": (0,
|
|
29724
|
+
"--marginRight": (0, import_runtime153.maybeCssVar)(__maybeInc32(jumpLinksRailReservation))
|
|
29691
29725
|
}]
|
|
29692
29726
|
}), ...tid.column, children: form })
|
|
29693
|
-
] }) : /* @__PURE__ */ (0,
|
|
29727
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { className: "mb4", children: form });
|
|
29694
29728
|
if (!rightPane) return body;
|
|
29695
|
-
return /* @__PURE__ */ (0,
|
|
29729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: body });
|
|
29696
29730
|
}
|
|
29697
29731
|
|
|
29698
29732
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
29699
29733
|
var import_react166 = require("react");
|
|
29700
|
-
var
|
|
29734
|
+
var import_runtime154 = require("@homebound/truss/runtime");
|
|
29701
29735
|
|
|
29702
29736
|
// src/layouts/useAutoHideOnScroll.ts
|
|
29703
29737
|
var import_react162 = require("react");
|
|
@@ -29812,17 +29846,17 @@ function useTransitionAfterPaint(ref, transition) {
|
|
|
29812
29846
|
|
|
29813
29847
|
// src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
|
|
29814
29848
|
var import_react165 = require("react");
|
|
29815
|
-
var
|
|
29849
|
+
var import_jsx_runtime233 = require("react/jsx-runtime");
|
|
29816
29850
|
var NavbarLayoutHeightContext = (0, import_react165.createContext)(0);
|
|
29817
29851
|
function NavbarLayoutHeightProvider({ value, children }) {
|
|
29818
|
-
return /* @__PURE__ */ (0,
|
|
29852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(NavbarLayoutHeightContext.Provider, { value, children });
|
|
29819
29853
|
}
|
|
29820
29854
|
function useNavbarLayoutHeight() {
|
|
29821
29855
|
return (0, import_react165.useContext)(NavbarLayoutHeightContext);
|
|
29822
29856
|
}
|
|
29823
29857
|
|
|
29824
29858
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
29825
|
-
var
|
|
29859
|
+
var import_jsx_runtime234 = require("react/jsx-runtime");
|
|
29826
29860
|
var __maybeInc33 = (inc) => {
|
|
29827
29861
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29828
29862
|
};
|
|
@@ -29848,10 +29882,10 @@ function NavbarLayout(props) {
|
|
|
29848
29882
|
position: "fixed",
|
|
29849
29883
|
left: "l_0",
|
|
29850
29884
|
zIndex: ["z_var", {
|
|
29851
|
-
"--zIndex": (0,
|
|
29885
|
+
"--zIndex": (0, import_runtime154.maybeCssVar)(zIndices.navbar)
|
|
29852
29886
|
}],
|
|
29853
29887
|
width: ["w_var", {
|
|
29854
|
-
"--width": (0,
|
|
29888
|
+
"--width": (0, import_runtime154.maybeCssVar)(__maybeInc33(innerWidth))
|
|
29855
29889
|
}]
|
|
29856
29890
|
};
|
|
29857
29891
|
useTransitionAfterPaint(navMetricsRef, "top 200ms cubic-bezier(0.4, 0, 0.2, 1)");
|
|
@@ -29859,20 +29893,20 @@ function NavbarLayout(props) {
|
|
|
29859
29893
|
const innerStyle = {
|
|
29860
29894
|
top: autoHideState === "hidden" ? `calc(${bannerTop} - ${navHeight}px)` : bannerTop
|
|
29861
29895
|
};
|
|
29862
|
-
const navbarEl = (0, import_react166.useMemo)(() => /* @__PURE__ */ (0,
|
|
29863
|
-
return /* @__PURE__ */ (0,
|
|
29896
|
+
const navbarEl = (0, import_react166.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Navbar, { ...navbar }), [navbar]);
|
|
29897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(MobileSubNavProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)("div", { ...(0, import_runtime154.mergeProps)(void 0, cssVars, {
|
|
29864
29898
|
display: "df",
|
|
29865
29899
|
flexDirection: "fdc",
|
|
29866
29900
|
width: "wfc",
|
|
29867
29901
|
minWidth: "mw100"
|
|
29868
29902
|
}), ...tid, children: [
|
|
29869
|
-
/* @__PURE__ */ (0,
|
|
29903
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { ref: spacerRef, ...(0, import_runtime154.mergeProps)(void 0, {
|
|
29870
29904
|
height: navHeight
|
|
29871
29905
|
}, {
|
|
29872
29906
|
flexShrink: "fs0",
|
|
29873
29907
|
width: "w100"
|
|
29874
|
-
}), children: /* @__PURE__ */ (0,
|
|
29875
|
-
/* @__PURE__ */ (0,
|
|
29908
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { ref: navMetricsRef, ...(0, import_runtime154.mergeProps)(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
29909
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
29876
29910
|
] }) }) }) });
|
|
29877
29911
|
}
|
|
29878
29912
|
|
|
@@ -29896,8 +29930,8 @@ function useDocumentTitle(...titleSegments) {
|
|
|
29896
29930
|
}
|
|
29897
29931
|
|
|
29898
29932
|
// src/components/Headers/BaseHeader.tsx
|
|
29899
|
-
var
|
|
29900
|
-
var
|
|
29933
|
+
var import_runtime155 = require("@homebound/truss/runtime");
|
|
29934
|
+
var import_jsx_runtime235 = require("react/jsx-runtime");
|
|
29901
29935
|
function BaseHeader(props) {
|
|
29902
29936
|
const {
|
|
29903
29937
|
title,
|
|
@@ -29909,7 +29943,7 @@ function BaseHeader(props) {
|
|
|
29909
29943
|
} = props;
|
|
29910
29944
|
const tid = useTestIds(otherProps, "header");
|
|
29911
29945
|
useDocumentTitle(title, documentTitleSuffix);
|
|
29912
|
-
return /* @__PURE__ */ (0,
|
|
29946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("header", { ...tid, ...(0, import_runtime155.trussProps)({
|
|
29913
29947
|
display: "df",
|
|
29914
29948
|
flexDirection: "fdc",
|
|
29915
29949
|
paddingTop: "pt3",
|
|
@@ -29923,7 +29957,7 @@ function BaseHeader(props) {
|
|
|
29923
29957
|
"--backgroundColor": "var(--b-surface)"
|
|
29924
29958
|
}]
|
|
29925
29959
|
}), children: [
|
|
29926
|
-
/* @__PURE__ */ (0,
|
|
29960
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { ...(0, import_runtime155.trussProps)({
|
|
29927
29961
|
...{
|
|
29928
29962
|
display: "df",
|
|
29929
29963
|
justifyContent: "jcsb",
|
|
@@ -29937,9 +29971,9 @@ function BaseHeader(props) {
|
|
|
29937
29971
|
} : {}
|
|
29938
29972
|
}
|
|
29939
29973
|
}), children: [
|
|
29940
|
-
/* @__PURE__ */ (0,
|
|
29941
|
-
breadcrumbs && /* @__PURE__ */ (0,
|
|
29942
|
-
/* @__PURE__ */ (0,
|
|
29974
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { className: "mw0", children: [
|
|
29975
|
+
breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Breadcrumbs, { ...breadcrumbs }),
|
|
29976
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)("h1", { ...tid.title, ...(0, import_runtime155.trussProps)({
|
|
29943
29977
|
fontWeight: "fw6",
|
|
29944
29978
|
fontSize: "fz_20px",
|
|
29945
29979
|
lineHeight: "lh_28px",
|
|
@@ -29948,15 +29982,15 @@ function BaseHeader(props) {
|
|
|
29948
29982
|
}]
|
|
29949
29983
|
}), children: title })
|
|
29950
29984
|
] }),
|
|
29951
|
-
/* @__PURE__ */ (0,
|
|
29985
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)("div", { className: "fs0", children: rightSlot })
|
|
29952
29986
|
] }),
|
|
29953
29987
|
bottomSlot
|
|
29954
29988
|
] });
|
|
29955
29989
|
}
|
|
29956
29990
|
|
|
29957
29991
|
// src/components/Headers/PageHeader.tsx
|
|
29958
|
-
var
|
|
29959
|
-
var
|
|
29992
|
+
var import_runtime156 = require("@homebound/truss/runtime");
|
|
29993
|
+
var import_jsx_runtime236 = require("react/jsx-runtime");
|
|
29960
29994
|
function PageHeader2(props) {
|
|
29961
29995
|
const {
|
|
29962
29996
|
tabs,
|
|
@@ -29972,20 +30006,20 @@ function PageHeader2(props) {
|
|
|
29972
30006
|
bottomSlotActions,
|
|
29973
30007
|
rightSlotActions
|
|
29974
30008
|
} = splitHeaderActionsOnSm(actions, sm);
|
|
29975
|
-
return /* @__PURE__ */ (0,
|
|
29976
|
-
/* @__PURE__ */ (0,
|
|
29977
|
-
rightSlotActions.length > 0 && /* @__PURE__ */ (0,
|
|
30009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(BaseHeader, { ...otherProps, rightSlot: /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)("div", { className: "df g_2 fs0", ...tid.actions, children: [
|
|
30010
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(AutoSaveIndicator, { hideOnIdle: true }),
|
|
30011
|
+
rightSlotActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(HeaderActions, { actions: rightSlotActions, collapseOnSm: true }),
|
|
29978
30012
|
rightSlot
|
|
29979
|
-
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */ (0,
|
|
29980
|
-
bottomSlotActions.length > 0 && /* @__PURE__ */ (0,
|
|
30013
|
+
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(import_jsx_runtime236.Fragment, { children: [
|
|
30014
|
+
bottomSlotActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("div", { ...(0, import_runtime156.trussProps)({
|
|
29981
30015
|
...pageContentPaddingX,
|
|
29982
30016
|
...{
|
|
29983
30017
|
...!tabs ? {
|
|
29984
30018
|
marginBottom: "mb2"
|
|
29985
30019
|
} : {}
|
|
29986
30020
|
}
|
|
29987
|
-
}), ...tid.bottomSlot, children: /* @__PURE__ */ (0,
|
|
29988
|
-
tabs && /* @__PURE__ */ (0,
|
|
30021
|
+
}), ...tid.bottomSlot, children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(HeaderActions, { actions: bottomSlotActions }) }),
|
|
30022
|
+
tabs && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("div", { ...(0, import_runtime156.trussProps)(pageContentPaddingX), children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Tabs, { ...tabs, ...tid.tabs }) })
|
|
29989
30023
|
] }) });
|
|
29990
30024
|
}
|
|
29991
30025
|
|
|
@@ -29995,8 +30029,8 @@ function useBannerAndNavbarHeight() {
|
|
|
29995
30029
|
}
|
|
29996
30030
|
|
|
29997
30031
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
29998
|
-
var
|
|
29999
|
-
var
|
|
30032
|
+
var import_runtime157 = require("@homebound/truss/runtime");
|
|
30033
|
+
var import_jsx_runtime237 = require("react/jsx-runtime");
|
|
30000
30034
|
var __maybeInc34 = (inc) => {
|
|
30001
30035
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
30002
30036
|
};
|
|
@@ -30026,32 +30060,32 @@ function PageHeaderLayout(props) {
|
|
|
30026
30060
|
const innerCss = {
|
|
30027
30061
|
position: "fixed",
|
|
30028
30062
|
left: ["left_var", {
|
|
30029
|
-
"--left": (0,
|
|
30063
|
+
"--left": (0, import_runtime157.maybeCssVar)(__maybeInc34(headerLeft))
|
|
30030
30064
|
}],
|
|
30031
30065
|
width: ["w_var", {
|
|
30032
|
-
"--width": (0,
|
|
30066
|
+
"--width": (0, import_runtime157.maybeCssVar)(__maybeInc34(headerWidth))
|
|
30033
30067
|
}],
|
|
30034
30068
|
zIndex: ["z_var", {
|
|
30035
|
-
"--zIndex": (0,
|
|
30069
|
+
"--zIndex": (0, import_runtime157.maybeCssVar)(zIndices.pageStickyHeader)
|
|
30036
30070
|
}]
|
|
30037
30071
|
};
|
|
30038
30072
|
useTransitionAfterPaint(headerMetricsRef, "all 200ms cubic-bezier(0.4, 0, 0.2, 1)");
|
|
30039
30073
|
const innerStyle = {
|
|
30040
30074
|
top: autoHideState === "hidden" ? `calc(${outerTop} - ${headerHeight}px)` : outerTop
|
|
30041
30075
|
};
|
|
30042
|
-
const pageHeaderEl = (0, import_react168.useMemo)(() => /* @__PURE__ */ (0,
|
|
30043
|
-
return /* @__PURE__ */ (0,
|
|
30076
|
+
const pageHeaderEl = (0, import_react168.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
30077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)("div", { ...(0, import_runtime157.mergeProps)(void 0, cssVars, {
|
|
30044
30078
|
display: "df",
|
|
30045
30079
|
flexDirection: "fdc",
|
|
30046
30080
|
width: "w100"
|
|
30047
30081
|
}), ...tid, children: [
|
|
30048
|
-
/* @__PURE__ */ (0,
|
|
30082
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)("div", { ref: spacerRef, ...(0, import_runtime157.mergeProps)(void 0, {
|
|
30049
30083
|
height: headerHeight
|
|
30050
30084
|
}, {
|
|
30051
30085
|
flexShrink: "fs0",
|
|
30052
30086
|
width: "w100"
|
|
30053
|
-
}), children: /* @__PURE__ */ (0,
|
|
30054
|
-
/* @__PURE__ */ (0,
|
|
30087
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime157.mergeProps)(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
30088
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)("div", { className: "df fdc fg1 mh0 w100 n_has_data_self_top_spaced_first_child_pt3", ...tid.body, children })
|
|
30055
30089
|
] }) });
|
|
30056
30090
|
}
|
|
30057
30091
|
|
|
@@ -30059,23 +30093,23 @@ function PageHeaderLayout(props) {
|
|
|
30059
30093
|
var import_react171 = require("react");
|
|
30060
30094
|
|
|
30061
30095
|
// src/components/Headers/WorkflowHeader.tsx
|
|
30062
|
-
var
|
|
30096
|
+
var import_jsx_runtime238 = require("react/jsx-runtime");
|
|
30063
30097
|
function WorkflowHeader(props) {
|
|
30064
30098
|
const { stepperTabs, ...otherProps } = props;
|
|
30065
30099
|
const tid = useTestIds(otherProps, "header");
|
|
30066
|
-
return /* @__PURE__ */ (0,
|
|
30100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
30067
30101
|
BaseHeader,
|
|
30068
30102
|
{
|
|
30069
30103
|
...otherProps,
|
|
30070
|
-
bottomSlot: stepperTabs ? /* @__PURE__ */ (0,
|
|
30104
|
+
bottomSlot: stepperTabs ? /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) : void 0
|
|
30071
30105
|
}
|
|
30072
30106
|
);
|
|
30073
30107
|
}
|
|
30074
30108
|
|
|
30075
30109
|
// src/layouts/Workflow/RightPaneTriggers.tsx
|
|
30076
30110
|
var import_react169 = require("react");
|
|
30077
|
-
var
|
|
30078
|
-
var
|
|
30111
|
+
var import_runtime158 = require("@homebound/truss/runtime");
|
|
30112
|
+
var import_jsx_runtime239 = require("react/jsx-runtime");
|
|
30079
30113
|
var __maybeInc35 = (inc) => {
|
|
30080
30114
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
30081
30115
|
};
|
|
@@ -30096,12 +30130,12 @@ function WorkflowPageRightPaneTriggers(props) {
|
|
|
30096
30130
|
const pageTriggerInsetPx = 24;
|
|
30097
30131
|
const onClick = (0, import_react169.useCallback)((trigger) => {
|
|
30098
30132
|
openRightPane({
|
|
30099
|
-
content: /* @__PURE__ */ (0,
|
|
30133
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(RightPanePanel, { title: trigger.label, children: trigger.content })
|
|
30100
30134
|
});
|
|
30101
30135
|
}, [openRightPane]);
|
|
30102
|
-
return /* @__PURE__ */ (0,
|
|
30136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("div", { ...tid, "aria-hidden": isRightPaneOpen, ...isRightPaneOpen ? {
|
|
30103
30137
|
inert: true
|
|
30104
|
-
} : {}, ...(0,
|
|
30138
|
+
} : {}, ...(0, import_runtime158.trussProps)({
|
|
30105
30139
|
...{
|
|
30106
30140
|
display: "df",
|
|
30107
30141
|
alignItems: "aic",
|
|
@@ -30115,31 +30149,31 @@ function WorkflowPageRightPaneTriggers(props) {
|
|
|
30115
30149
|
...!isMobile && {
|
|
30116
30150
|
position: "fixed",
|
|
30117
30151
|
top: ["top_var", {
|
|
30118
|
-
"--top": (0,
|
|
30152
|
+
"--top": (0, import_runtime158.maybeCssVar)(__maybeInc35(stickyNavAndHeaderOffset(pageTriggerInsetPx)))
|
|
30119
30153
|
}],
|
|
30120
30154
|
right: ["right_var", {
|
|
30121
30155
|
"--right": `${pageTriggerInsetPx}px`
|
|
30122
30156
|
}],
|
|
30123
30157
|
zIndex: ["z_var", {
|
|
30124
|
-
"--zIndex": (0,
|
|
30158
|
+
"--zIndex": (0, import_runtime158.maybeCssVar)(zIndices.rightPaneTriggers)
|
|
30125
30159
|
}]
|
|
30126
30160
|
},
|
|
30127
30161
|
// Desktop only — on `sm` the full-bleed pane covers the header slot.
|
|
30128
30162
|
...!isMobile && (isRightPaneOpen ? {
|
|
30129
30163
|
transform: ["transform_var", {
|
|
30130
|
-
"--transform": (0,
|
|
30164
|
+
"--transform": (0, import_runtime158.maybeCssVar)(`translateX(calc(100% + ${pageTriggerInsetPx}px))`)
|
|
30131
30165
|
}],
|
|
30132
30166
|
pointerEvents: "pen"
|
|
30133
30167
|
} : {
|
|
30134
30168
|
transform: "tf_translateX_0"
|
|
30135
30169
|
})
|
|
30136
|
-
}), children: triggers.map((trigger) => /* @__PURE__ */ (0,
|
|
30170
|
+
}), children: triggers.map((trigger) => /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(IconButton, { icon: trigger.icon, label: trigger.label, variant: "circle", compact: isMobile, onClick: () => onClick(trigger), ...tid[trigger.icon] }, trigger.label)) });
|
|
30137
30171
|
}
|
|
30138
30172
|
|
|
30139
30173
|
// src/layouts/Workflow/useUnsavedChangesGuard.tsx
|
|
30140
30174
|
var import_react170 = require("react");
|
|
30141
30175
|
var import_react_router_dom9 = require("react-router-dom");
|
|
30142
|
-
var
|
|
30176
|
+
var import_jsx_runtime240 = require("react/jsx-runtime");
|
|
30143
30177
|
function useUnsavedChangesGuard(options) {
|
|
30144
30178
|
const { isDirty, allowNavigation, onCancel } = options;
|
|
30145
30179
|
const { openModal } = useModal();
|
|
@@ -30175,7 +30209,7 @@ function useUnsavedChangesGuard(options) {
|
|
|
30175
30209
|
}
|
|
30176
30210
|
openModal({
|
|
30177
30211
|
allowClosing: false,
|
|
30178
|
-
content: /* @__PURE__ */ (0,
|
|
30212
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(ConfirmCloseModal, { onClose: () => confirmCancel(e) })
|
|
30179
30213
|
});
|
|
30180
30214
|
};
|
|
30181
30215
|
const navigationBlocker = blocker.state === "blocked" ? { proceed: () => blocker.proceed?.(), cancelNavigation: () => blocker.reset?.() } : void 0;
|
|
@@ -30187,7 +30221,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
30187
30221
|
(0, import_react170.useEffect)(() => {
|
|
30188
30222
|
openModal({
|
|
30189
30223
|
allowClosing: false,
|
|
30190
|
-
content: /* @__PURE__ */ (0,
|
|
30224
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(ConfirmCloseModal, { title: "Leave page?", onClose: proceed, onContinue: cancelNavigation })
|
|
30191
30225
|
});
|
|
30192
30226
|
return () => closeModal();
|
|
30193
30227
|
}, []);
|
|
@@ -30195,7 +30229,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
30195
30229
|
}
|
|
30196
30230
|
|
|
30197
30231
|
// src/layouts/Workflow/WorkflowActions.tsx
|
|
30198
|
-
var
|
|
30232
|
+
var import_jsx_runtime241 = require("react/jsx-runtime");
|
|
30199
30233
|
function WorkflowActions(props) {
|
|
30200
30234
|
const {
|
|
30201
30235
|
onCancel,
|
|
@@ -30213,12 +30247,12 @@ function WorkflowActions(props) {
|
|
|
30213
30247
|
sm: isMobile
|
|
30214
30248
|
} = useBreakpoint();
|
|
30215
30249
|
const primaryVariant = aiMode ? "ai" : "primary";
|
|
30216
|
-
return /* @__PURE__ */ (0,
|
|
30217
|
-
/* @__PURE__ */ (0,
|
|
30218
|
-
/* @__PURE__ */ (0,
|
|
30219
|
-
/* @__PURE__ */ (0,
|
|
30220
|
-
onSaveAndExit && /* @__PURE__ */ (0,
|
|
30221
|
-
isLastStep ? /* @__PURE__ */ (0,
|
|
30250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)("div", { className: "df aic jcsb sm_w100", children: [
|
|
30251
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)("div", { className: "df aic", children: !isFirstStep && isMobile && onBack && /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(IconButton, { icon: "arrowBack", label: "Back", onClick: onBack }) }),
|
|
30252
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)("div", { className: "df aic g_1", children: [
|
|
30253
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
|
|
30254
|
+
onSaveAndExit && /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
|
|
30255
|
+
isLastStep ? /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Button, { label: completeLabel, variant: primaryVariant, onClick: onComplete, disabled: primaryDisabled }) : /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Button, { label: "Continue", variant: primaryVariant, onClick: async () => {
|
|
30222
30256
|
await onContinue?.();
|
|
30223
30257
|
}, disabled: primaryDisabled })
|
|
30224
30258
|
] })
|
|
@@ -30226,8 +30260,8 @@ function WorkflowActions(props) {
|
|
|
30226
30260
|
}
|
|
30227
30261
|
|
|
30228
30262
|
// src/layouts/Workflow/WorkflowPageLayout.tsx
|
|
30229
|
-
var
|
|
30230
|
-
var
|
|
30263
|
+
var import_runtime159 = require("@homebound/truss/runtime");
|
|
30264
|
+
var import_jsx_runtime242 = require("react/jsx-runtime");
|
|
30231
30265
|
var __maybeInc36 = (inc) => {
|
|
30232
30266
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
30233
30267
|
};
|
|
@@ -30258,9 +30292,9 @@ function WorkflowPageLayout(props) {
|
|
|
30258
30292
|
allowNavigation,
|
|
30259
30293
|
onCancel
|
|
30260
30294
|
});
|
|
30261
|
-
const actions = /* @__PURE__ */ (0,
|
|
30295
|
+
const actions = /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(WorkflowActions, { ...actionProps, aiMode, onCancel: onCancelClick });
|
|
30262
30296
|
const triggers = rightPaneTriggers ?? [];
|
|
30263
|
-
const pageTriggers = triggers.length > 0 ? /* @__PURE__ */ (0,
|
|
30297
|
+
const pageTriggers = triggers.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(WorkflowPageRightPaneTriggers, { triggers }) : void 0;
|
|
30264
30298
|
const headerMetricsRef = (0, import_react171.useRef)(null);
|
|
30265
30299
|
const headerHeight = useMeasuredHeight(headerMetricsRef, true);
|
|
30266
30300
|
const headerWidth = documentScrollChromeWidth();
|
|
@@ -30281,32 +30315,32 @@ function WorkflowPageLayout(props) {
|
|
|
30281
30315
|
}
|
|
30282
30316
|
};
|
|
30283
30317
|
}, [showFooter]);
|
|
30284
|
-
return /* @__PURE__ */ (0,
|
|
30285
|
-
/* @__PURE__ */ (0,
|
|
30318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(DocumentScrollLayoutProvider, { children: [
|
|
30319
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)("div", { ...(0, import_runtime159.mergeProps)(void 0, cssVars, {
|
|
30286
30320
|
display: "df",
|
|
30287
30321
|
flexDirection: "fdc",
|
|
30288
30322
|
width: "w100"
|
|
30289
30323
|
}), ...tid, children: [
|
|
30290
|
-
/* @__PURE__ */ (0,
|
|
30324
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.mergeProps)(void 0, {
|
|
30291
30325
|
height: headerHeight
|
|
30292
30326
|
}, {
|
|
30293
30327
|
flexShrink: "fs0",
|
|
30294
30328
|
width: "w100"
|
|
30295
|
-
}), children: /* @__PURE__ */ (0,
|
|
30329
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime159.trussProps)({
|
|
30296
30330
|
position: "fixed",
|
|
30297
30331
|
left: "l_0",
|
|
30298
30332
|
width: ["w_var", {
|
|
30299
|
-
"--width": (0,
|
|
30333
|
+
"--width": (0, import_runtime159.maybeCssVar)(__maybeInc36(headerWidth))
|
|
30300
30334
|
}],
|
|
30301
30335
|
zIndex: ["z_var", {
|
|
30302
|
-
"--zIndex": (0,
|
|
30336
|
+
"--zIndex": (0, import_runtime159.maybeCssVar)(zIndices.pageStickyHeader)
|
|
30303
30337
|
}],
|
|
30304
30338
|
top: ["top_var", {
|
|
30305
|
-
"--top": (0,
|
|
30339
|
+
"--top": (0, import_runtime159.maybeCssVar)(__maybeInc36(outerTop))
|
|
30306
30340
|
}],
|
|
30307
30341
|
transition: "transitionAll"
|
|
30308
|
-
}), ...tid.header, children: /* @__PURE__ */ (0,
|
|
30309
|
-
/* @__PURE__ */ (0,
|
|
30342
|
+
}), ...tid.header, children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(WorkflowHeader, { title, documentTitleSuffix, breadcrumbs, rightSlot: isMobile ? pageTriggers : actions, stepperTabs }) }) }),
|
|
30343
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.trussProps)({
|
|
30310
30344
|
...{
|
|
30311
30345
|
display: "df",
|
|
30312
30346
|
flexDirection: "fdc",
|
|
@@ -30318,29 +30352,29 @@ function WorkflowPageLayout(props) {
|
|
|
30318
30352
|
...aiMode && {
|
|
30319
30353
|
backgroundImage: "aiBackground",
|
|
30320
30354
|
minHeight: ["mh_var", {
|
|
30321
|
-
"--minHeight": (0,
|
|
30355
|
+
"--minHeight": (0, import_runtime159.maybeCssVar)(documentScrollBodyMinHeight())
|
|
30322
30356
|
}]
|
|
30323
30357
|
}
|
|
30324
|
-
}), ...tid.body, children: triggers.length > 0 ? /* @__PURE__ */ (0,
|
|
30358
|
+
}), ...tid.body, children: triggers.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(DocumentScrollOverlayRightPaneLayout, { children }) : children }),
|
|
30325
30359
|
!isMobile && pageTriggers,
|
|
30326
|
-
showFooter && /* @__PURE__ */ (0,
|
|
30360
|
+
showFooter && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.trussProps)({
|
|
30327
30361
|
flexShrink: "fs0",
|
|
30328
30362
|
width: "w100",
|
|
30329
30363
|
height: ["h_var", {
|
|
30330
30364
|
"--height": `${mobileFooterHeightPx}px`
|
|
30331
30365
|
}]
|
|
30332
|
-
}), children: /* @__PURE__ */ (0,
|
|
30366
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.trussProps)({
|
|
30333
30367
|
...{
|
|
30334
30368
|
position: "fixed",
|
|
30335
30369
|
bottom: "bot_0",
|
|
30336
30370
|
width: ["w_var", {
|
|
30337
|
-
"--width": (0,
|
|
30371
|
+
"--width": (0, import_runtime159.maybeCssVar)(__maybeInc36(headerWidth))
|
|
30338
30372
|
}],
|
|
30339
30373
|
height: ["h_var", {
|
|
30340
30374
|
"--height": `${mobileFooterHeightPx}px`
|
|
30341
30375
|
}],
|
|
30342
30376
|
zIndex: ["z_var", {
|
|
30343
|
-
"--zIndex": (0,
|
|
30377
|
+
"--zIndex": (0, import_runtime159.maybeCssVar)(zIndices.pageStickyFooter)
|
|
30344
30378
|
}],
|
|
30345
30379
|
display: "df",
|
|
30346
30380
|
alignItems: "aic",
|
|
@@ -30358,12 +30392,12 @@ function WorkflowPageLayout(props) {
|
|
|
30358
30392
|
...pageContentPaddingX
|
|
30359
30393
|
}), ...tid.footer, children: actions }) })
|
|
30360
30394
|
] }),
|
|
30361
|
-
navigationBlocker && /* @__PURE__ */ (0,
|
|
30395
|
+
navigationBlocker && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(UnsavedChangesNavigationModal, { ...navigationBlocker })
|
|
30362
30396
|
] });
|
|
30363
30397
|
}
|
|
30364
30398
|
|
|
30365
30399
|
// src/layouts/Workflow/FocusedFormLayout.tsx
|
|
30366
|
-
var
|
|
30400
|
+
var import_jsx_runtime243 = require("react/jsx-runtime");
|
|
30367
30401
|
function FocusedFormLayout(props) {
|
|
30368
30402
|
const {
|
|
30369
30403
|
onCancel,
|
|
@@ -30379,7 +30413,7 @@ function FocusedFormLayout(props) {
|
|
|
30379
30413
|
...headerProps
|
|
30380
30414
|
} = props;
|
|
30381
30415
|
const tid = useTestIds(props, "focusedFormLayout");
|
|
30382
|
-
return /* @__PURE__ */ (0,
|
|
30416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
30383
30417
|
WorkflowPageLayout,
|
|
30384
30418
|
{
|
|
30385
30419
|
...tid,
|
|
@@ -30400,7 +30434,7 @@ function FocusedFormLayout(props) {
|
|
|
30400
30434
|
|
|
30401
30435
|
// src/layouts/Workflow/StepperLayout.tsx
|
|
30402
30436
|
var import_react172 = require("react");
|
|
30403
|
-
var
|
|
30437
|
+
var import_jsx_runtime244 = require("react/jsx-runtime");
|
|
30404
30438
|
function StepperLayout(props) {
|
|
30405
30439
|
const {
|
|
30406
30440
|
steps,
|
|
@@ -30427,7 +30461,7 @@ function StepperLayout(props) {
|
|
|
30427
30461
|
closeRightPane();
|
|
30428
30462
|
setCurrentStep(value);
|
|
30429
30463
|
}
|
|
30430
|
-
return /* @__PURE__ */ (0,
|
|
30464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
30431
30465
|
WorkflowPageLayout,
|
|
30432
30466
|
{
|
|
30433
30467
|
...tid,
|
|
@@ -30470,7 +30504,7 @@ function getInitialStep(steps, defaultStep) {
|
|
|
30470
30504
|
|
|
30471
30505
|
// src/forms/BoundChipSelectField.tsx
|
|
30472
30506
|
var import_mobx_react23 = require("mobx-react");
|
|
30473
|
-
var
|
|
30507
|
+
var import_jsx_runtime245 = require("react/jsx-runtime");
|
|
30474
30508
|
function BoundChipSelectField(props) {
|
|
30475
30509
|
const {
|
|
30476
30510
|
field,
|
|
@@ -30486,7 +30520,7 @@ function BoundChipSelectField(props) {
|
|
|
30486
30520
|
...others
|
|
30487
30521
|
} = props;
|
|
30488
30522
|
const testId = useTestIds(props, field.key);
|
|
30489
|
-
return /* @__PURE__ */ (0,
|
|
30523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_mobx_react23.Observer, { children: () => /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
30490
30524
|
ChipSelectField,
|
|
30491
30525
|
{
|
|
30492
30526
|
label,
|
|
@@ -30516,12 +30550,12 @@ function BoundChipSelectField(props) {
|
|
|
30516
30550
|
}
|
|
30517
30551
|
|
|
30518
30552
|
// src/forms/BoundSelectAndTextField.tsx
|
|
30519
|
-
var
|
|
30553
|
+
var import_jsx_runtime246 = require("react/jsx-runtime");
|
|
30520
30554
|
function BoundSelectAndTextField(props) {
|
|
30521
30555
|
const { selectFieldProps, textFieldProps, compact = true } = props;
|
|
30522
30556
|
const tid = useTestIds(props);
|
|
30523
|
-
return /* @__PURE__ */ (0,
|
|
30524
|
-
/* @__PURE__ */ (0,
|
|
30557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(CompoundField, { children: [
|
|
30558
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
30525
30559
|
BoundSelectField,
|
|
30526
30560
|
{
|
|
30527
30561
|
...tid[defaultTestId(selectFieldProps.label ?? selectFieldProps.field.key)],
|
|
@@ -30530,7 +30564,7 @@ function BoundSelectAndTextField(props) {
|
|
|
30530
30564
|
compact
|
|
30531
30565
|
}
|
|
30532
30566
|
),
|
|
30533
|
-
/* @__PURE__ */ (0,
|
|
30567
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
30534
30568
|
BoundTextField,
|
|
30535
30569
|
{
|
|
30536
30570
|
...tid[defaultTestId(textFieldProps.label ?? textFieldProps.field.key)],
|
|
@@ -30542,8 +30576,8 @@ function BoundSelectAndTextField(props) {
|
|
|
30542
30576
|
}
|
|
30543
30577
|
|
|
30544
30578
|
// src/forms/FormHeading.tsx
|
|
30545
|
-
var
|
|
30546
|
-
var
|
|
30579
|
+
var import_runtime160 = require("@homebound/truss/runtime");
|
|
30580
|
+
var import_jsx_runtime247 = (
|
|
30547
30581
|
// Add space before the heading, but only if it's not first.
|
|
30548
30582
|
require("react/jsx-runtime")
|
|
30549
30583
|
);
|
|
@@ -30554,7 +30588,7 @@ function FormHeading(props) {
|
|
|
30554
30588
|
isFirst = false,
|
|
30555
30589
|
...others
|
|
30556
30590
|
} = props;
|
|
30557
|
-
return /* @__PURE__ */ (0,
|
|
30591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("h3", { ...(0, import_runtime160.trussProps)({
|
|
30558
30592
|
...{
|
|
30559
30593
|
fontWeight: "fw4",
|
|
30560
30594
|
fontSize: "fz_16px",
|
|
@@ -30570,8 +30604,8 @@ FormHeading.isFormHeading = true;
|
|
|
30570
30604
|
|
|
30571
30605
|
// src/forms/StaticField.tsx
|
|
30572
30606
|
var import_utils49 = require("@react-aria/utils");
|
|
30573
|
-
var
|
|
30574
|
-
var
|
|
30607
|
+
var import_runtime161 = require("@homebound/truss/runtime");
|
|
30608
|
+
var import_jsx_runtime248 = require("react/jsx-runtime");
|
|
30575
30609
|
function StaticField(props) {
|
|
30576
30610
|
const {
|
|
30577
30611
|
fieldProps
|
|
@@ -30584,14 +30618,14 @@ function StaticField(props) {
|
|
|
30584
30618
|
} = props;
|
|
30585
30619
|
const tid = useTestIds(props, typeof label === "string" ? defaultTestId(label) : "staticField");
|
|
30586
30620
|
const id = (0, import_utils49.useId)();
|
|
30587
|
-
return /* @__PURE__ */ (0,
|
|
30621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)("div", { ...(0, import_runtime161.trussProps)({
|
|
30588
30622
|
...labelStyle === "left" ? {
|
|
30589
30623
|
display: "df",
|
|
30590
30624
|
justifyContent: "jcsb",
|
|
30591
30625
|
maxWidth: "maxw100"
|
|
30592
30626
|
} : {}
|
|
30593
30627
|
}), ...tid.container, children: [
|
|
30594
|
-
/* @__PURE__ */ (0,
|
|
30628
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)("label", { ...(0, import_runtime161.trussProps)({
|
|
30595
30629
|
display: "db",
|
|
30596
30630
|
fontWeight: "fw4",
|
|
30597
30631
|
fontSize: "fz_14px",
|
|
@@ -30601,7 +30635,7 @@ function StaticField(props) {
|
|
|
30601
30635
|
}],
|
|
30602
30636
|
marginBottom: "mb_4px"
|
|
30603
30637
|
}), htmlFor: id, ...tid.label, children: label }),
|
|
30604
|
-
/* @__PURE__ */ (0,
|
|
30638
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)("div", { id, ...(0, import_runtime161.trussProps)({
|
|
30605
30639
|
fontWeight: "fw4",
|
|
30606
30640
|
fontSize: "fz_14px",
|
|
30607
30641
|
lineHeight: "lh_20px",
|
|
@@ -30632,7 +30666,7 @@ function useFilter4({ filterDefs }) {
|
|
|
30632
30666
|
var import_react174 = require("react");
|
|
30633
30667
|
var import_react_aria66 = require("react-aria");
|
|
30634
30668
|
var import_react_stately18 = require("react-stately");
|
|
30635
|
-
var
|
|
30669
|
+
var import_jsx_runtime249 = require("react/jsx-runtime");
|
|
30636
30670
|
function Autocomplete(props) {
|
|
30637
30671
|
const {
|
|
30638
30672
|
onSelect,
|
|
@@ -30650,7 +30684,7 @@ function Autocomplete(props) {
|
|
|
30650
30684
|
const { effectiveValue, proposalProps } = useAiProposal(value, proposedValue);
|
|
30651
30685
|
const disabledOptionsWithReasons = Object.fromEntries(disabledOptions?.map(disabledOptionToKeyedTuple) ?? []);
|
|
30652
30686
|
const comboBoxChildren = (0, import_react174.useCallback)(
|
|
30653
|
-
(item) => /* @__PURE__ */ (0,
|
|
30687
|
+
(item) => /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(import_react_stately18.Item, { textValue: getOptionLabel(item), children: getOptionMenuLabel ? getOptionMenuLabel(item) : getOptionLabel(item) }, getOptionValue(item)),
|
|
30654
30688
|
[getOptionValue, getOptionLabel, getOptionMenuLabel]
|
|
30655
30689
|
);
|
|
30656
30690
|
const comboBoxProps = {
|
|
@@ -30703,8 +30737,8 @@ function Autocomplete(props) {
|
|
|
30703
30737
|
// Ensures the menu never gets too small.
|
|
30704
30738
|
minWidth: 200
|
|
30705
30739
|
};
|
|
30706
|
-
return /* @__PURE__ */ (0,
|
|
30707
|
-
/* @__PURE__ */ (0,
|
|
30740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(import_jsx_runtime249.Fragment, { children: [
|
|
30741
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
30708
30742
|
TextFieldBase,
|
|
30709
30743
|
{
|
|
30710
30744
|
inputRef,
|
|
@@ -30714,11 +30748,11 @@ function Autocomplete(props) {
|
|
|
30714
30748
|
onChange: onInputChange,
|
|
30715
30749
|
...proposalProps,
|
|
30716
30750
|
clearable: true,
|
|
30717
|
-
startAdornment: "startAdornment" in props ? props.startAdornment : /* @__PURE__ */ (0,
|
|
30751
|
+
startAdornment: "startAdornment" in props ? props.startAdornment : /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Icon, { icon: "search" }),
|
|
30718
30752
|
...others
|
|
30719
30753
|
}
|
|
30720
30754
|
),
|
|
30721
|
-
state.isOpen && /* @__PURE__ */ (0,
|
|
30755
|
+
state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
30722
30756
|
Popover,
|
|
30723
30757
|
{
|
|
30724
30758
|
triggerRef: inputRef,
|
|
@@ -30727,7 +30761,7 @@ function Autocomplete(props) {
|
|
|
30727
30761
|
onClose: () => state.close(),
|
|
30728
30762
|
isOpen: state.isOpen,
|
|
30729
30763
|
minWidth: 200,
|
|
30730
|
-
children: /* @__PURE__ */ (0,
|
|
30764
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
30731
30765
|
ListBox,
|
|
30732
30766
|
{
|
|
30733
30767
|
...listBoxProps,
|
|
@@ -30748,8 +30782,8 @@ function Autocomplete(props) {
|
|
|
30748
30782
|
var import_react175 = require("react");
|
|
30749
30783
|
var import_react_aria67 = require("react-aria");
|
|
30750
30784
|
var import_react_stately19 = require("react-stately");
|
|
30751
|
-
var
|
|
30752
|
-
var
|
|
30785
|
+
var import_runtime162 = require("@homebound/truss/runtime");
|
|
30786
|
+
var import_jsx_runtime250 = require("react/jsx-runtime");
|
|
30753
30787
|
function ToggleButton(props) {
|
|
30754
30788
|
const {
|
|
30755
30789
|
selected: isSelected = false,
|
|
@@ -30813,7 +30847,7 @@ function ToggleButton(props) {
|
|
|
30813
30847
|
...focusProps,
|
|
30814
30848
|
...hoverProps,
|
|
30815
30849
|
...pressProps,
|
|
30816
|
-
...(0,
|
|
30850
|
+
...(0, import_runtime162.trussProps)({
|
|
30817
30851
|
// Gray500 off-state has no semantic match — keep palette (OnSurfaceMuted is Gray700).
|
|
30818
30852
|
...{
|
|
30819
30853
|
borderRadius: "br4",
|
|
@@ -30853,10 +30887,10 @@ function ToggleButton(props) {
|
|
|
30853
30887
|
return maybeTooltip({
|
|
30854
30888
|
title: tooltip,
|
|
30855
30889
|
placement: "top",
|
|
30856
|
-
children: /* @__PURE__ */ (0,
|
|
30857
|
-
icon && /* @__PURE__ */ (0,
|
|
30890
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("label", { ...labelAttrs, children: [
|
|
30891
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon, { icon }),
|
|
30858
30892
|
label,
|
|
30859
|
-
/* @__PURE__ */ (0,
|
|
30893
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_react_aria67.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("input", { ref, ...inputProps, ...tid.value }) })
|
|
30860
30894
|
] })
|
|
30861
30895
|
});
|
|
30862
30896
|
}
|
|
@@ -30952,6 +30986,7 @@ var togglePressStyles = {
|
|
|
30952
30986
|
DnDGridItemHandle,
|
|
30953
30987
|
DocumentScrollOverlayRightPaneLayout,
|
|
30954
30988
|
DocumentTitleProvider,
|
|
30989
|
+
DocumentUploadIllustration,
|
|
30955
30990
|
EXPANDABLE_HEADER,
|
|
30956
30991
|
EditColumnsButton,
|
|
30957
30992
|
EnvironmentBanner,
|