@homebound/beam 4.14.7 → 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 +206 -170
- 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 +178 -143
- package/dist/index.js.map +1 -1
- package/dist/truss.css +2 -2
- 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)
|
|
@@ -28978,9 +28982,10 @@ function TabContent(props) {
|
|
|
28978
28982
|
...tid.panel,
|
|
28979
28983
|
...selfTopSpaced,
|
|
28980
28984
|
...(0, import_runtime145.trussProps)({
|
|
28985
|
+
// Top padding, unless the first child pads its own top (e.g. sticky table actions).
|
|
28981
28986
|
...{
|
|
28982
28987
|
...!omitTopSpacing ? {
|
|
28983
|
-
paddingTop: "
|
|
28988
|
+
paddingTop: "n_has_data_self_top_spaced_first_child_pt3"
|
|
28984
28989
|
} : {}
|
|
28985
28990
|
},
|
|
28986
28991
|
...contentXss
|
|
@@ -29248,16 +29253,46 @@ function useToast() {
|
|
|
29248
29253
|
return { showToast, clear };
|
|
29249
29254
|
}
|
|
29250
29255
|
|
|
29251
|
-
// src/
|
|
29256
|
+
// src/illustrations/DocumentUploadIllustration.tsx
|
|
29252
29257
|
var import_runtime146 = require("@homebound/truss/runtime");
|
|
29253
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");
|
|
29254
29289
|
var __maybeInc29 = (inc) => {
|
|
29255
29290
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29256
29291
|
};
|
|
29257
29292
|
function SideNavLayout(props) {
|
|
29258
29293
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
29259
|
-
if (hasProvider) return /* @__PURE__ */ (0,
|
|
29260
|
-
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 }) });
|
|
29261
29296
|
}
|
|
29262
29297
|
function SideNavLayoutContent(props) {
|
|
29263
29298
|
const {
|
|
@@ -29280,7 +29315,7 @@ function SideNavLayoutContent(props) {
|
|
|
29280
29315
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
29281
29316
|
const navTop = bannerAndNavbarChromeTop();
|
|
29282
29317
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
29283
|
-
const rail = showRail && /* @__PURE__ */ (0,
|
|
29318
|
+
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { ...(0, import_runtime147.trussProps)({
|
|
29284
29319
|
...{
|
|
29285
29320
|
display: "df",
|
|
29286
29321
|
flexDirection: "fdc",
|
|
@@ -29304,14 +29339,14 @@ function SideNavLayoutContent(props) {
|
|
|
29304
29339
|
position: "sticky",
|
|
29305
29340
|
left: "l_0",
|
|
29306
29341
|
zIndex: ["z_var", {
|
|
29307
|
-
"--zIndex": (0,
|
|
29342
|
+
"--zIndex": (0, import_runtime147.maybeCssVar)(zIndices.sideNav)
|
|
29308
29343
|
}],
|
|
29309
29344
|
top: ["top_var", {
|
|
29310
|
-
"--top": (0,
|
|
29345
|
+
"--top": (0, import_runtime147.maybeCssVar)(__maybeInc29(navTop))
|
|
29311
29346
|
}],
|
|
29312
29347
|
alignSelf: "asfs",
|
|
29313
29348
|
height: ["h_var", {
|
|
29314
|
-
"--height": (0,
|
|
29349
|
+
"--height": (0, import_runtime147.maybeCssVar)(__maybeInc29(railViewportHeight))
|
|
29315
29350
|
}],
|
|
29316
29351
|
width: ["w_var", {
|
|
29317
29352
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -29321,11 +29356,11 @@ function SideNavLayoutContent(props) {
|
|
|
29321
29356
|
position: "fixed",
|
|
29322
29357
|
left: "l_0",
|
|
29323
29358
|
top: ["top_var", {
|
|
29324
|
-
"--top": (0,
|
|
29359
|
+
"--top": (0, import_runtime147.maybeCssVar)(__maybeInc29(navTop))
|
|
29325
29360
|
}],
|
|
29326
29361
|
bottom: "bot_0",
|
|
29327
29362
|
zIndex: ["z_var", {
|
|
29328
|
-
"--zIndex": (0,
|
|
29363
|
+
"--zIndex": (0, import_runtime147.maybeCssVar)(zIndices.sideNav)
|
|
29329
29364
|
}]
|
|
29330
29365
|
},
|
|
29331
29366
|
...collapsed ? {
|
|
@@ -29337,18 +29372,18 @@ function SideNavLayoutContent(props) {
|
|
|
29337
29372
|
}
|
|
29338
29373
|
}
|
|
29339
29374
|
}), ...tid.sideNav, children: [
|
|
29340
|
-
showCollapseToggle && /* @__PURE__ */ (0,
|
|
29341
|
-
/* @__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 }) })
|
|
29342
29377
|
] });
|
|
29343
|
-
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, {
|
|
29344
29379
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
29345
29380
|
}, {
|
|
29346
29381
|
display: "df",
|
|
29347
29382
|
flexDirection: "fdr",
|
|
29348
29383
|
width: "w100"
|
|
29349
29384
|
}), ...tid, children: [
|
|
29350
|
-
contrastRail ? /* @__PURE__ */ (0,
|
|
29351
|
-
/* @__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)({
|
|
29352
29387
|
display: "df",
|
|
29353
29388
|
flexDirection: "fdc",
|
|
29354
29389
|
flexGrow: "fg1",
|
|
@@ -29364,8 +29399,8 @@ function SideNavLayoutContent(props) {
|
|
|
29364
29399
|
}
|
|
29365
29400
|
|
|
29366
29401
|
// src/layouts/CenteredLayout/CenteredLayout.tsx
|
|
29367
|
-
var
|
|
29368
|
-
var
|
|
29402
|
+
var import_runtime148 = require("@homebound/truss/runtime");
|
|
29403
|
+
var import_jsx_runtime227 = require("react/jsx-runtime");
|
|
29369
29404
|
function CenteredLayout(props) {
|
|
29370
29405
|
const {
|
|
29371
29406
|
size,
|
|
@@ -29377,7 +29412,7 @@ function CenteredLayout(props) {
|
|
|
29377
29412
|
mdAndUp
|
|
29378
29413
|
} = useBreakpoint();
|
|
29379
29414
|
const rightPane = resolveWithRightPaneOptions(withRightPane);
|
|
29380
|
-
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, {
|
|
29381
29416
|
// layoutContainer descendants (e.g. ContentHeader) read this to inset sticky horizontal chrome within the shell padding.
|
|
29382
29417
|
[beamLayoutContentPaddingXVar]: mdAndUp ? pageContentPaddingXValue : smPageContentPaddingXValue,
|
|
29383
29418
|
// Floor while an ancestor overlay pane is open (`0px` when closed). `md+` only — phones must not get a dummy scrollbar.
|
|
@@ -29396,7 +29431,7 @@ function CenteredLayout(props) {
|
|
|
29396
29431
|
...pageContentPaddingX
|
|
29397
29432
|
}), ...tid, children }) });
|
|
29398
29433
|
if (!rightPane) return shell;
|
|
29399
|
-
return /* @__PURE__ */ (0,
|
|
29434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: shell });
|
|
29400
29435
|
}
|
|
29401
29436
|
var centeredContentMaxPx = {
|
|
29402
29437
|
sm: 720,
|
|
@@ -29409,8 +29444,8 @@ var centeredShellMaxPx = {
|
|
|
29409
29444
|
};
|
|
29410
29445
|
|
|
29411
29446
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
29412
|
-
var
|
|
29413
|
-
var
|
|
29447
|
+
var import_runtime149 = require("@homebound/truss/runtime");
|
|
29448
|
+
var import_jsx_runtime228 = require("react/jsx-runtime");
|
|
29414
29449
|
var __maybeInc30 = (inc) => {
|
|
29415
29450
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29416
29451
|
};
|
|
@@ -29426,42 +29461,42 @@ function EnvironmentBannerLayout(props) {
|
|
|
29426
29461
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
29427
29462
|
};
|
|
29428
29463
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
29429
|
-
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, {
|
|
29430
29465
|
display: "df",
|
|
29431
29466
|
flexDirection: "fdc",
|
|
29432
29467
|
width: "wfc",
|
|
29433
29468
|
minWidth: "mw100"
|
|
29434
29469
|
}), ...tid, children: [
|
|
29435
|
-
showBanner && environmentBanner && /* @__PURE__ */ (0,
|
|
29470
|
+
showBanner && environmentBanner && /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("div", { ...(0, import_runtime149.mergeProps)(void 0, {
|
|
29436
29471
|
height: environmentBannerSizePx
|
|
29437
29472
|
}, {
|
|
29438
29473
|
flexShrink: "fs0",
|
|
29439
29474
|
width: "w100"
|
|
29440
|
-
}), children: /* @__PURE__ */ (0,
|
|
29475
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("div", { ...(0, import_runtime149.trussProps)({
|
|
29441
29476
|
position: "fixed",
|
|
29442
29477
|
top: "top0",
|
|
29443
29478
|
left: "l_0",
|
|
29444
29479
|
zIndex: ["z_var", {
|
|
29445
|
-
"--zIndex": (0,
|
|
29480
|
+
"--zIndex": (0, import_runtime149.maybeCssVar)(zIndices.environmentBanner)
|
|
29446
29481
|
}],
|
|
29447
29482
|
width: ["w_var", {
|
|
29448
|
-
"--width": (0,
|
|
29483
|
+
"--width": (0, import_runtime149.maybeCssVar)(__maybeInc30(innerWidth))
|
|
29449
29484
|
}]
|
|
29450
|
-
}), ...tid.bannerSticky, children: /* @__PURE__ */ (0,
|
|
29485
|
+
}), ...tid.bannerSticky, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
29451
29486
|
children
|
|
29452
29487
|
] }) }) });
|
|
29453
29488
|
}
|
|
29454
29489
|
|
|
29455
29490
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
29456
|
-
var
|
|
29491
|
+
var import_runtime153 = require("@homebound/truss/runtime");
|
|
29457
29492
|
|
|
29458
29493
|
// src/forms/FormSection/FormSection.tsx
|
|
29459
|
-
var
|
|
29494
|
+
var import_runtime151 = require("@homebound/truss/runtime");
|
|
29460
29495
|
|
|
29461
29496
|
// src/forms/FormSection/FormSectionChild.tsx
|
|
29462
29497
|
var import_react160 = require("react");
|
|
29463
|
-
var
|
|
29464
|
-
var
|
|
29498
|
+
var import_runtime150 = require("@homebound/truss/runtime");
|
|
29499
|
+
var import_jsx_runtime229 = require("react/jsx-runtime");
|
|
29465
29500
|
function FormSectionChild(props) {
|
|
29466
29501
|
const {
|
|
29467
29502
|
title,
|
|
@@ -29480,10 +29515,10 @@ function FormSectionChild(props) {
|
|
|
29480
29515
|
id: props.id ?? title,
|
|
29481
29516
|
itemRef
|
|
29482
29517
|
});
|
|
29483
|
-
return /* @__PURE__ */ (0,
|
|
29518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)("div", { ...isDraggable ? {
|
|
29484
29519
|
...dragItemProps,
|
|
29485
29520
|
ref: itemRef
|
|
29486
|
-
} : {}, ...(0,
|
|
29521
|
+
} : {}, ...(0, import_runtime150.trussProps)({
|
|
29487
29522
|
display: "df",
|
|
29488
29523
|
flexDirection: "fdc",
|
|
29489
29524
|
gap: "g_2",
|
|
@@ -29499,13 +29534,13 @@ function FormSectionChild(props) {
|
|
|
29499
29534
|
borderStyle: "lot_bsn",
|
|
29500
29535
|
borderWidth: "lot_bw_0"
|
|
29501
29536
|
}), ...tid, children: [
|
|
29502
|
-
/* @__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 }),
|
|
29503
29538
|
fields
|
|
29504
29539
|
] });
|
|
29505
29540
|
}
|
|
29506
29541
|
|
|
29507
29542
|
// src/forms/FormSection/FormSection.tsx
|
|
29508
|
-
var
|
|
29543
|
+
var import_jsx_runtime230 = require("react/jsx-runtime");
|
|
29509
29544
|
function FormSection(props) {
|
|
29510
29545
|
const {
|
|
29511
29546
|
title,
|
|
@@ -29515,17 +29550,17 @@ function FormSection(props) {
|
|
|
29515
29550
|
childSections
|
|
29516
29551
|
} = props;
|
|
29517
29552
|
const tid = useTestIds(props, "formSection");
|
|
29518
|
-
return /* @__PURE__ */ (0,
|
|
29553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)("div", { id: defaultTestId(title), ...(0, import_runtime151.trussProps)({
|
|
29519
29554
|
display: "df",
|
|
29520
29555
|
flexDirection: "fdc",
|
|
29521
29556
|
gap: "g_2",
|
|
29522
29557
|
scrollMarginTop: ["scrollMarginTop_var", {
|
|
29523
|
-
"--scrollMarginTop": (0,
|
|
29558
|
+
"--scrollMarginTop": (0, import_runtime151.maybeCssVar)(stickyNavAndHeaderOffset())
|
|
29524
29559
|
}]
|
|
29525
29560
|
}), ...tid.section, children: [
|
|
29526
|
-
/* @__PURE__ */ (0,
|
|
29561
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(ContentHeader, { ...tid, title, description, actions, level: 3 }),
|
|
29527
29562
|
fields,
|
|
29528
|
-
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)) }))
|
|
29529
29564
|
] });
|
|
29530
29565
|
}
|
|
29531
29566
|
function isReorderable(childSections) {
|
|
@@ -29548,18 +29583,18 @@ function DraggableChildren(props) {
|
|
|
29548
29583
|
}
|
|
29549
29584
|
});
|
|
29550
29585
|
};
|
|
29551
|
-
return /* @__PURE__ */ (0,
|
|
29586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(DnDGrid, { onReorder: handleReorder, lockAxis: "y", gridStyles: {
|
|
29552
29587
|
gridTemplateColumns: "gtc_minmax_0_1fr",
|
|
29553
29588
|
gap: "g_3"
|
|
29554
|
-
}, children: sorted.map((child) => /* @__PURE__ */ (0,
|
|
29589
|
+
}, children: sorted.map((child) => /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(FormSectionChild, { ...child, ...tid }, child.id)) });
|
|
29555
29590
|
}
|
|
29556
29591
|
function sortByOrderField(childSections) {
|
|
29557
29592
|
return [...childSections].sort((a, b) => (a.orderField.value ?? 0) - (b.orderField.value ?? 0));
|
|
29558
29593
|
}
|
|
29559
29594
|
|
|
29560
29595
|
// src/layouts/FormSectionLayout/JumpLinksRail.tsx
|
|
29561
|
-
var
|
|
29562
|
-
var
|
|
29596
|
+
var import_runtime152 = require("@homebound/truss/runtime");
|
|
29597
|
+
var import_jsx_runtime231 = require("react/jsx-runtime");
|
|
29563
29598
|
var __maybeInc31 = (inc) => {
|
|
29564
29599
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29565
29600
|
};
|
|
@@ -29569,7 +29604,7 @@ function JumpLinksRail(props) {
|
|
|
29569
29604
|
activeId
|
|
29570
29605
|
} = props;
|
|
29571
29606
|
const tid = useTestIds(props, "jumpLinks");
|
|
29572
|
-
return /* @__PURE__ */ (0,
|
|
29607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)("nav", { ...(0, import_runtime152.trussProps)({
|
|
29573
29608
|
display: "df",
|
|
29574
29609
|
flexDirection: "fdc",
|
|
29575
29610
|
flexShrink: "fs0",
|
|
@@ -29579,9 +29614,9 @@ function JumpLinksRail(props) {
|
|
|
29579
29614
|
position: "sticky",
|
|
29580
29615
|
alignSelf: "asfs",
|
|
29581
29616
|
top: ["top_var", {
|
|
29582
|
-
"--top": (0,
|
|
29617
|
+
"--top": (0, import_runtime152.maybeCssVar)(__maybeInc31(stickyNavAndHeaderOffset()))
|
|
29583
29618
|
}]
|
|
29584
|
-
}), ...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)) });
|
|
29585
29620
|
}
|
|
29586
29621
|
var jumpLinksRailWidthPx = 192;
|
|
29587
29622
|
var railAndShellPx = centeredShellMaxPx.sm + jumpLinksRailWidthPx;
|
|
@@ -29617,7 +29652,7 @@ function useActiveJumpLink(sectionIds) {
|
|
|
29617
29652
|
}
|
|
29618
29653
|
|
|
29619
29654
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
29620
|
-
var
|
|
29655
|
+
var import_jsx_runtime232 = require("react/jsx-runtime");
|
|
29621
29656
|
var __maybeInc32 = (inc) => {
|
|
29622
29657
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29623
29658
|
};
|
|
@@ -29654,7 +29689,7 @@ function FormSectionLayout(props) {
|
|
|
29654
29689
|
}] : [], ...sectionLinks];
|
|
29655
29690
|
const showRail = withJumpLinks && jumpLinks.length >= 2 && !isMobile;
|
|
29656
29691
|
const activeId = useActiveJumpLink(showRail ? jumpLinks.map((link) => link.id) : []);
|
|
29657
|
-
const content2 = /* @__PURE__ */ (0,
|
|
29692
|
+
const content2 = /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { ...(0, import_runtime153.trussProps)({
|
|
29658
29693
|
display: "df",
|
|
29659
29694
|
flexDirection: "fdc",
|
|
29660
29695
|
gap: "g_8",
|
|
@@ -29665,38 +29700,38 @@ function FormSectionLayout(props) {
|
|
|
29665
29700
|
paddingLeft: "pl3"
|
|
29666
29701
|
} : {}
|
|
29667
29702
|
}), children: [
|
|
29668
|
-
/* @__PURE__ */ (0,
|
|
29703
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { id: titleAnchor ? formSectionLayoutTitleId : void 0, ...(0, import_runtime153.trussProps)({
|
|
29669
29704
|
display: "df",
|
|
29670
29705
|
flexDirection: "fdc",
|
|
29671
29706
|
gap: "g_3",
|
|
29672
29707
|
...titleAnchor ? {
|
|
29673
29708
|
scrollMarginTop: ["scrollMarginTop_var", {
|
|
29674
|
-
"--scrollMarginTop": (0,
|
|
29709
|
+
"--scrollMarginTop": (0, import_runtime153.maybeCssVar)(stickyNavAndHeaderOffset())
|
|
29675
29710
|
}]
|
|
29676
29711
|
} : {}
|
|
29677
29712
|
}), children: [
|
|
29678
|
-
/* @__PURE__ */ (0,
|
|
29713
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(ContentHeader, { ...tid, title, description, actions, withAutoSave, level: 2, aiMode }),
|
|
29679
29714
|
initialFields
|
|
29680
29715
|
] }),
|
|
29681
|
-
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)) })
|
|
29682
29717
|
] });
|
|
29683
|
-
const form = /* @__PURE__ */ (0,
|
|
29684
|
-
const body = showRail ? /* @__PURE__ */ (0,
|
|
29685
|
-
/* @__PURE__ */ (0,
|
|
29686
|
-
/* @__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)({
|
|
29687
29722
|
flexGrow: "fg1",
|
|
29688
29723
|
marginRight: ["mr_var", {
|
|
29689
|
-
"--marginRight": (0,
|
|
29724
|
+
"--marginRight": (0, import_runtime153.maybeCssVar)(__maybeInc32(jumpLinksRailReservation))
|
|
29690
29725
|
}]
|
|
29691
29726
|
}), ...tid.column, children: form })
|
|
29692
|
-
] }) : /* @__PURE__ */ (0,
|
|
29727
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { className: "mb4", children: form });
|
|
29693
29728
|
if (!rightPane) return body;
|
|
29694
|
-
return /* @__PURE__ */ (0,
|
|
29729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: body });
|
|
29695
29730
|
}
|
|
29696
29731
|
|
|
29697
29732
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
29698
29733
|
var import_react166 = require("react");
|
|
29699
|
-
var
|
|
29734
|
+
var import_runtime154 = require("@homebound/truss/runtime");
|
|
29700
29735
|
|
|
29701
29736
|
// src/layouts/useAutoHideOnScroll.ts
|
|
29702
29737
|
var import_react162 = require("react");
|
|
@@ -29811,17 +29846,17 @@ function useTransitionAfterPaint(ref, transition) {
|
|
|
29811
29846
|
|
|
29812
29847
|
// src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
|
|
29813
29848
|
var import_react165 = require("react");
|
|
29814
|
-
var
|
|
29849
|
+
var import_jsx_runtime233 = require("react/jsx-runtime");
|
|
29815
29850
|
var NavbarLayoutHeightContext = (0, import_react165.createContext)(0);
|
|
29816
29851
|
function NavbarLayoutHeightProvider({ value, children }) {
|
|
29817
|
-
return /* @__PURE__ */ (0,
|
|
29852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(NavbarLayoutHeightContext.Provider, { value, children });
|
|
29818
29853
|
}
|
|
29819
29854
|
function useNavbarLayoutHeight() {
|
|
29820
29855
|
return (0, import_react165.useContext)(NavbarLayoutHeightContext);
|
|
29821
29856
|
}
|
|
29822
29857
|
|
|
29823
29858
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
29824
|
-
var
|
|
29859
|
+
var import_jsx_runtime234 = require("react/jsx-runtime");
|
|
29825
29860
|
var __maybeInc33 = (inc) => {
|
|
29826
29861
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29827
29862
|
};
|
|
@@ -29847,10 +29882,10 @@ function NavbarLayout(props) {
|
|
|
29847
29882
|
position: "fixed",
|
|
29848
29883
|
left: "l_0",
|
|
29849
29884
|
zIndex: ["z_var", {
|
|
29850
|
-
"--zIndex": (0,
|
|
29885
|
+
"--zIndex": (0, import_runtime154.maybeCssVar)(zIndices.navbar)
|
|
29851
29886
|
}],
|
|
29852
29887
|
width: ["w_var", {
|
|
29853
|
-
"--width": (0,
|
|
29888
|
+
"--width": (0, import_runtime154.maybeCssVar)(__maybeInc33(innerWidth))
|
|
29854
29889
|
}]
|
|
29855
29890
|
};
|
|
29856
29891
|
useTransitionAfterPaint(navMetricsRef, "top 200ms cubic-bezier(0.4, 0, 0.2, 1)");
|
|
@@ -29858,20 +29893,20 @@ function NavbarLayout(props) {
|
|
|
29858
29893
|
const innerStyle = {
|
|
29859
29894
|
top: autoHideState === "hidden" ? `calc(${bannerTop} - ${navHeight}px)` : bannerTop
|
|
29860
29895
|
};
|
|
29861
|
-
const navbarEl = (0, import_react166.useMemo)(() => /* @__PURE__ */ (0,
|
|
29862
|
-
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, {
|
|
29863
29898
|
display: "df",
|
|
29864
29899
|
flexDirection: "fdc",
|
|
29865
29900
|
width: "wfc",
|
|
29866
29901
|
minWidth: "mw100"
|
|
29867
29902
|
}), ...tid, children: [
|
|
29868
|
-
/* @__PURE__ */ (0,
|
|
29903
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { ref: spacerRef, ...(0, import_runtime154.mergeProps)(void 0, {
|
|
29869
29904
|
height: navHeight
|
|
29870
29905
|
}, {
|
|
29871
29906
|
flexShrink: "fs0",
|
|
29872
29907
|
width: "w100"
|
|
29873
|
-
}), children: /* @__PURE__ */ (0,
|
|
29874
|
-
/* @__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 })
|
|
29875
29910
|
] }) }) }) });
|
|
29876
29911
|
}
|
|
29877
29912
|
|
|
@@ -29895,8 +29930,8 @@ function useDocumentTitle(...titleSegments) {
|
|
|
29895
29930
|
}
|
|
29896
29931
|
|
|
29897
29932
|
// src/components/Headers/BaseHeader.tsx
|
|
29898
|
-
var
|
|
29899
|
-
var
|
|
29933
|
+
var import_runtime155 = require("@homebound/truss/runtime");
|
|
29934
|
+
var import_jsx_runtime235 = require("react/jsx-runtime");
|
|
29900
29935
|
function BaseHeader(props) {
|
|
29901
29936
|
const {
|
|
29902
29937
|
title,
|
|
@@ -29908,7 +29943,7 @@ function BaseHeader(props) {
|
|
|
29908
29943
|
} = props;
|
|
29909
29944
|
const tid = useTestIds(otherProps, "header");
|
|
29910
29945
|
useDocumentTitle(title, documentTitleSuffix);
|
|
29911
|
-
return /* @__PURE__ */ (0,
|
|
29946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("header", { ...tid, ...(0, import_runtime155.trussProps)({
|
|
29912
29947
|
display: "df",
|
|
29913
29948
|
flexDirection: "fdc",
|
|
29914
29949
|
paddingTop: "pt3",
|
|
@@ -29922,7 +29957,7 @@ function BaseHeader(props) {
|
|
|
29922
29957
|
"--backgroundColor": "var(--b-surface)"
|
|
29923
29958
|
}]
|
|
29924
29959
|
}), children: [
|
|
29925
|
-
/* @__PURE__ */ (0,
|
|
29960
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { ...(0, import_runtime155.trussProps)({
|
|
29926
29961
|
...{
|
|
29927
29962
|
display: "df",
|
|
29928
29963
|
justifyContent: "jcsb",
|
|
@@ -29936,9 +29971,9 @@ function BaseHeader(props) {
|
|
|
29936
29971
|
} : {}
|
|
29937
29972
|
}
|
|
29938
29973
|
}), children: [
|
|
29939
|
-
/* @__PURE__ */ (0,
|
|
29940
|
-
breadcrumbs && /* @__PURE__ */ (0,
|
|
29941
|
-
/* @__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)({
|
|
29942
29977
|
fontWeight: "fw6",
|
|
29943
29978
|
fontSize: "fz_20px",
|
|
29944
29979
|
lineHeight: "lh_28px",
|
|
@@ -29947,15 +29982,15 @@ function BaseHeader(props) {
|
|
|
29947
29982
|
}]
|
|
29948
29983
|
}), children: title })
|
|
29949
29984
|
] }),
|
|
29950
|
-
/* @__PURE__ */ (0,
|
|
29985
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)("div", { className: "fs0", children: rightSlot })
|
|
29951
29986
|
] }),
|
|
29952
29987
|
bottomSlot
|
|
29953
29988
|
] });
|
|
29954
29989
|
}
|
|
29955
29990
|
|
|
29956
29991
|
// src/components/Headers/PageHeader.tsx
|
|
29957
|
-
var
|
|
29958
|
-
var
|
|
29992
|
+
var import_runtime156 = require("@homebound/truss/runtime");
|
|
29993
|
+
var import_jsx_runtime236 = require("react/jsx-runtime");
|
|
29959
29994
|
function PageHeader2(props) {
|
|
29960
29995
|
const {
|
|
29961
29996
|
tabs,
|
|
@@ -29971,20 +30006,20 @@ function PageHeader2(props) {
|
|
|
29971
30006
|
bottomSlotActions,
|
|
29972
30007
|
rightSlotActions
|
|
29973
30008
|
} = splitHeaderActionsOnSm(actions, sm);
|
|
29974
|
-
return /* @__PURE__ */ (0,
|
|
29975
|
-
/* @__PURE__ */ (0,
|
|
29976
|
-
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 }),
|
|
29977
30012
|
rightSlot
|
|
29978
|
-
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */ (0,
|
|
29979
|
-
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)({
|
|
29980
30015
|
...pageContentPaddingX,
|
|
29981
30016
|
...{
|
|
29982
30017
|
...!tabs ? {
|
|
29983
30018
|
marginBottom: "mb2"
|
|
29984
30019
|
} : {}
|
|
29985
30020
|
}
|
|
29986
|
-
}), ...tid.bottomSlot, children: /* @__PURE__ */ (0,
|
|
29987
|
-
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 }) })
|
|
29988
30023
|
] }) });
|
|
29989
30024
|
}
|
|
29990
30025
|
|
|
@@ -29994,8 +30029,8 @@ function useBannerAndNavbarHeight() {
|
|
|
29994
30029
|
}
|
|
29995
30030
|
|
|
29996
30031
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
29997
|
-
var
|
|
29998
|
-
var
|
|
30032
|
+
var import_runtime157 = require("@homebound/truss/runtime");
|
|
30033
|
+
var import_jsx_runtime237 = require("react/jsx-runtime");
|
|
29999
30034
|
var __maybeInc34 = (inc) => {
|
|
30000
30035
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
30001
30036
|
};
|
|
@@ -30025,32 +30060,32 @@ function PageHeaderLayout(props) {
|
|
|
30025
30060
|
const innerCss = {
|
|
30026
30061
|
position: "fixed",
|
|
30027
30062
|
left: ["left_var", {
|
|
30028
|
-
"--left": (0,
|
|
30063
|
+
"--left": (0, import_runtime157.maybeCssVar)(__maybeInc34(headerLeft))
|
|
30029
30064
|
}],
|
|
30030
30065
|
width: ["w_var", {
|
|
30031
|
-
"--width": (0,
|
|
30066
|
+
"--width": (0, import_runtime157.maybeCssVar)(__maybeInc34(headerWidth))
|
|
30032
30067
|
}],
|
|
30033
30068
|
zIndex: ["z_var", {
|
|
30034
|
-
"--zIndex": (0,
|
|
30069
|
+
"--zIndex": (0, import_runtime157.maybeCssVar)(zIndices.pageStickyHeader)
|
|
30035
30070
|
}]
|
|
30036
30071
|
};
|
|
30037
30072
|
useTransitionAfterPaint(headerMetricsRef, "all 200ms cubic-bezier(0.4, 0, 0.2, 1)");
|
|
30038
30073
|
const innerStyle = {
|
|
30039
30074
|
top: autoHideState === "hidden" ? `calc(${outerTop} - ${headerHeight}px)` : outerTop
|
|
30040
30075
|
};
|
|
30041
|
-
const pageHeaderEl = (0, import_react168.useMemo)(() => /* @__PURE__ */ (0,
|
|
30042
|
-
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, {
|
|
30043
30078
|
display: "df",
|
|
30044
30079
|
flexDirection: "fdc",
|
|
30045
30080
|
width: "w100"
|
|
30046
30081
|
}), ...tid, children: [
|
|
30047
|
-
/* @__PURE__ */ (0,
|
|
30082
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)("div", { ref: spacerRef, ...(0, import_runtime157.mergeProps)(void 0, {
|
|
30048
30083
|
height: headerHeight
|
|
30049
30084
|
}, {
|
|
30050
30085
|
flexShrink: "fs0",
|
|
30051
30086
|
width: "w100"
|
|
30052
|
-
}), children: /* @__PURE__ */ (0,
|
|
30053
|
-
/* @__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 })
|
|
30054
30089
|
] }) });
|
|
30055
30090
|
}
|
|
30056
30091
|
|
|
@@ -30058,23 +30093,23 @@ function PageHeaderLayout(props) {
|
|
|
30058
30093
|
var import_react171 = require("react");
|
|
30059
30094
|
|
|
30060
30095
|
// src/components/Headers/WorkflowHeader.tsx
|
|
30061
|
-
var
|
|
30096
|
+
var import_jsx_runtime238 = require("react/jsx-runtime");
|
|
30062
30097
|
function WorkflowHeader(props) {
|
|
30063
30098
|
const { stepperTabs, ...otherProps } = props;
|
|
30064
30099
|
const tid = useTestIds(otherProps, "header");
|
|
30065
|
-
return /* @__PURE__ */ (0,
|
|
30100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
30066
30101
|
BaseHeader,
|
|
30067
30102
|
{
|
|
30068
30103
|
...otherProps,
|
|
30069
|
-
bottomSlot: stepperTabs ? /* @__PURE__ */ (0,
|
|
30104
|
+
bottomSlot: stepperTabs ? /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) : void 0
|
|
30070
30105
|
}
|
|
30071
30106
|
);
|
|
30072
30107
|
}
|
|
30073
30108
|
|
|
30074
30109
|
// src/layouts/Workflow/RightPaneTriggers.tsx
|
|
30075
30110
|
var import_react169 = require("react");
|
|
30076
|
-
var
|
|
30077
|
-
var
|
|
30111
|
+
var import_runtime158 = require("@homebound/truss/runtime");
|
|
30112
|
+
var import_jsx_runtime239 = require("react/jsx-runtime");
|
|
30078
30113
|
var __maybeInc35 = (inc) => {
|
|
30079
30114
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
30080
30115
|
};
|
|
@@ -30095,12 +30130,12 @@ function WorkflowPageRightPaneTriggers(props) {
|
|
|
30095
30130
|
const pageTriggerInsetPx = 24;
|
|
30096
30131
|
const onClick = (0, import_react169.useCallback)((trigger) => {
|
|
30097
30132
|
openRightPane({
|
|
30098
|
-
content: /* @__PURE__ */ (0,
|
|
30133
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(RightPanePanel, { title: trigger.label, children: trigger.content })
|
|
30099
30134
|
});
|
|
30100
30135
|
}, [openRightPane]);
|
|
30101
|
-
return /* @__PURE__ */ (0,
|
|
30136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("div", { ...tid, "aria-hidden": isRightPaneOpen, ...isRightPaneOpen ? {
|
|
30102
30137
|
inert: true
|
|
30103
|
-
} : {}, ...(0,
|
|
30138
|
+
} : {}, ...(0, import_runtime158.trussProps)({
|
|
30104
30139
|
...{
|
|
30105
30140
|
display: "df",
|
|
30106
30141
|
alignItems: "aic",
|
|
@@ -30114,31 +30149,31 @@ function WorkflowPageRightPaneTriggers(props) {
|
|
|
30114
30149
|
...!isMobile && {
|
|
30115
30150
|
position: "fixed",
|
|
30116
30151
|
top: ["top_var", {
|
|
30117
|
-
"--top": (0,
|
|
30152
|
+
"--top": (0, import_runtime158.maybeCssVar)(__maybeInc35(stickyNavAndHeaderOffset(pageTriggerInsetPx)))
|
|
30118
30153
|
}],
|
|
30119
30154
|
right: ["right_var", {
|
|
30120
30155
|
"--right": `${pageTriggerInsetPx}px`
|
|
30121
30156
|
}],
|
|
30122
30157
|
zIndex: ["z_var", {
|
|
30123
|
-
"--zIndex": (0,
|
|
30158
|
+
"--zIndex": (0, import_runtime158.maybeCssVar)(zIndices.rightPaneTriggers)
|
|
30124
30159
|
}]
|
|
30125
30160
|
},
|
|
30126
30161
|
// Desktop only — on `sm` the full-bleed pane covers the header slot.
|
|
30127
30162
|
...!isMobile && (isRightPaneOpen ? {
|
|
30128
30163
|
transform: ["transform_var", {
|
|
30129
|
-
"--transform": (0,
|
|
30164
|
+
"--transform": (0, import_runtime158.maybeCssVar)(`translateX(calc(100% + ${pageTriggerInsetPx}px))`)
|
|
30130
30165
|
}],
|
|
30131
30166
|
pointerEvents: "pen"
|
|
30132
30167
|
} : {
|
|
30133
30168
|
transform: "tf_translateX_0"
|
|
30134
30169
|
})
|
|
30135
|
-
}), 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)) });
|
|
30136
30171
|
}
|
|
30137
30172
|
|
|
30138
30173
|
// src/layouts/Workflow/useUnsavedChangesGuard.tsx
|
|
30139
30174
|
var import_react170 = require("react");
|
|
30140
30175
|
var import_react_router_dom9 = require("react-router-dom");
|
|
30141
|
-
var
|
|
30176
|
+
var import_jsx_runtime240 = require("react/jsx-runtime");
|
|
30142
30177
|
function useUnsavedChangesGuard(options) {
|
|
30143
30178
|
const { isDirty, allowNavigation, onCancel } = options;
|
|
30144
30179
|
const { openModal } = useModal();
|
|
@@ -30174,7 +30209,7 @@ function useUnsavedChangesGuard(options) {
|
|
|
30174
30209
|
}
|
|
30175
30210
|
openModal({
|
|
30176
30211
|
allowClosing: false,
|
|
30177
|
-
content: /* @__PURE__ */ (0,
|
|
30212
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(ConfirmCloseModal, { onClose: () => confirmCancel(e) })
|
|
30178
30213
|
});
|
|
30179
30214
|
};
|
|
30180
30215
|
const navigationBlocker = blocker.state === "blocked" ? { proceed: () => blocker.proceed?.(), cancelNavigation: () => blocker.reset?.() } : void 0;
|
|
@@ -30186,7 +30221,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
30186
30221
|
(0, import_react170.useEffect)(() => {
|
|
30187
30222
|
openModal({
|
|
30188
30223
|
allowClosing: false,
|
|
30189
|
-
content: /* @__PURE__ */ (0,
|
|
30224
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(ConfirmCloseModal, { title: "Leave page?", onClose: proceed, onContinue: cancelNavigation })
|
|
30190
30225
|
});
|
|
30191
30226
|
return () => closeModal();
|
|
30192
30227
|
}, []);
|
|
@@ -30194,7 +30229,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
30194
30229
|
}
|
|
30195
30230
|
|
|
30196
30231
|
// src/layouts/Workflow/WorkflowActions.tsx
|
|
30197
|
-
var
|
|
30232
|
+
var import_jsx_runtime241 = require("react/jsx-runtime");
|
|
30198
30233
|
function WorkflowActions(props) {
|
|
30199
30234
|
const {
|
|
30200
30235
|
onCancel,
|
|
@@ -30212,12 +30247,12 @@ function WorkflowActions(props) {
|
|
|
30212
30247
|
sm: isMobile
|
|
30213
30248
|
} = useBreakpoint();
|
|
30214
30249
|
const primaryVariant = aiMode ? "ai" : "primary";
|
|
30215
|
-
return /* @__PURE__ */ (0,
|
|
30216
|
-
/* @__PURE__ */ (0,
|
|
30217
|
-
/* @__PURE__ */ (0,
|
|
30218
|
-
/* @__PURE__ */ (0,
|
|
30219
|
-
onSaveAndExit && /* @__PURE__ */ (0,
|
|
30220
|
-
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 () => {
|
|
30221
30256
|
await onContinue?.();
|
|
30222
30257
|
}, disabled: primaryDisabled })
|
|
30223
30258
|
] })
|
|
@@ -30225,8 +30260,8 @@ function WorkflowActions(props) {
|
|
|
30225
30260
|
}
|
|
30226
30261
|
|
|
30227
30262
|
// src/layouts/Workflow/WorkflowPageLayout.tsx
|
|
30228
|
-
var
|
|
30229
|
-
var
|
|
30263
|
+
var import_runtime159 = require("@homebound/truss/runtime");
|
|
30264
|
+
var import_jsx_runtime242 = require("react/jsx-runtime");
|
|
30230
30265
|
var __maybeInc36 = (inc) => {
|
|
30231
30266
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
30232
30267
|
};
|
|
@@ -30257,9 +30292,9 @@ function WorkflowPageLayout(props) {
|
|
|
30257
30292
|
allowNavigation,
|
|
30258
30293
|
onCancel
|
|
30259
30294
|
});
|
|
30260
|
-
const actions = /* @__PURE__ */ (0,
|
|
30295
|
+
const actions = /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(WorkflowActions, { ...actionProps, aiMode, onCancel: onCancelClick });
|
|
30261
30296
|
const triggers = rightPaneTriggers ?? [];
|
|
30262
|
-
const pageTriggers = triggers.length > 0 ? /* @__PURE__ */ (0,
|
|
30297
|
+
const pageTriggers = triggers.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(WorkflowPageRightPaneTriggers, { triggers }) : void 0;
|
|
30263
30298
|
const headerMetricsRef = (0, import_react171.useRef)(null);
|
|
30264
30299
|
const headerHeight = useMeasuredHeight(headerMetricsRef, true);
|
|
30265
30300
|
const headerWidth = documentScrollChromeWidth();
|
|
@@ -30280,32 +30315,32 @@ function WorkflowPageLayout(props) {
|
|
|
30280
30315
|
}
|
|
30281
30316
|
};
|
|
30282
30317
|
}, [showFooter]);
|
|
30283
|
-
return /* @__PURE__ */ (0,
|
|
30284
|
-
/* @__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, {
|
|
30285
30320
|
display: "df",
|
|
30286
30321
|
flexDirection: "fdc",
|
|
30287
30322
|
width: "w100"
|
|
30288
30323
|
}), ...tid, children: [
|
|
30289
|
-
/* @__PURE__ */ (0,
|
|
30324
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.mergeProps)(void 0, {
|
|
30290
30325
|
height: headerHeight
|
|
30291
30326
|
}, {
|
|
30292
30327
|
flexShrink: "fs0",
|
|
30293
30328
|
width: "w100"
|
|
30294
|
-
}), children: /* @__PURE__ */ (0,
|
|
30329
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime159.trussProps)({
|
|
30295
30330
|
position: "fixed",
|
|
30296
30331
|
left: "l_0",
|
|
30297
30332
|
width: ["w_var", {
|
|
30298
|
-
"--width": (0,
|
|
30333
|
+
"--width": (0, import_runtime159.maybeCssVar)(__maybeInc36(headerWidth))
|
|
30299
30334
|
}],
|
|
30300
30335
|
zIndex: ["z_var", {
|
|
30301
|
-
"--zIndex": (0,
|
|
30336
|
+
"--zIndex": (0, import_runtime159.maybeCssVar)(zIndices.pageStickyHeader)
|
|
30302
30337
|
}],
|
|
30303
30338
|
top: ["top_var", {
|
|
30304
|
-
"--top": (0,
|
|
30339
|
+
"--top": (0, import_runtime159.maybeCssVar)(__maybeInc36(outerTop))
|
|
30305
30340
|
}],
|
|
30306
30341
|
transition: "transitionAll"
|
|
30307
|
-
}), ...tid.header, children: /* @__PURE__ */ (0,
|
|
30308
|
-
/* @__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)({
|
|
30309
30344
|
...{
|
|
30310
30345
|
display: "df",
|
|
30311
30346
|
flexDirection: "fdc",
|
|
@@ -30317,29 +30352,29 @@ function WorkflowPageLayout(props) {
|
|
|
30317
30352
|
...aiMode && {
|
|
30318
30353
|
backgroundImage: "aiBackground",
|
|
30319
30354
|
minHeight: ["mh_var", {
|
|
30320
|
-
"--minHeight": (0,
|
|
30355
|
+
"--minHeight": (0, import_runtime159.maybeCssVar)(documentScrollBodyMinHeight())
|
|
30321
30356
|
}]
|
|
30322
30357
|
}
|
|
30323
|
-
}), ...tid.body, children: triggers.length > 0 ? /* @__PURE__ */ (0,
|
|
30358
|
+
}), ...tid.body, children: triggers.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(DocumentScrollOverlayRightPaneLayout, { children }) : children }),
|
|
30324
30359
|
!isMobile && pageTriggers,
|
|
30325
|
-
showFooter && /* @__PURE__ */ (0,
|
|
30360
|
+
showFooter && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.trussProps)({
|
|
30326
30361
|
flexShrink: "fs0",
|
|
30327
30362
|
width: "w100",
|
|
30328
30363
|
height: ["h_var", {
|
|
30329
30364
|
"--height": `${mobileFooterHeightPx}px`
|
|
30330
30365
|
}]
|
|
30331
|
-
}), children: /* @__PURE__ */ (0,
|
|
30366
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.trussProps)({
|
|
30332
30367
|
...{
|
|
30333
30368
|
position: "fixed",
|
|
30334
30369
|
bottom: "bot_0",
|
|
30335
30370
|
width: ["w_var", {
|
|
30336
|
-
"--width": (0,
|
|
30371
|
+
"--width": (0, import_runtime159.maybeCssVar)(__maybeInc36(headerWidth))
|
|
30337
30372
|
}],
|
|
30338
30373
|
height: ["h_var", {
|
|
30339
30374
|
"--height": `${mobileFooterHeightPx}px`
|
|
30340
30375
|
}],
|
|
30341
30376
|
zIndex: ["z_var", {
|
|
30342
|
-
"--zIndex": (0,
|
|
30377
|
+
"--zIndex": (0, import_runtime159.maybeCssVar)(zIndices.pageStickyFooter)
|
|
30343
30378
|
}],
|
|
30344
30379
|
display: "df",
|
|
30345
30380
|
alignItems: "aic",
|
|
@@ -30357,12 +30392,12 @@ function WorkflowPageLayout(props) {
|
|
|
30357
30392
|
...pageContentPaddingX
|
|
30358
30393
|
}), ...tid.footer, children: actions }) })
|
|
30359
30394
|
] }),
|
|
30360
|
-
navigationBlocker && /* @__PURE__ */ (0,
|
|
30395
|
+
navigationBlocker && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(UnsavedChangesNavigationModal, { ...navigationBlocker })
|
|
30361
30396
|
] });
|
|
30362
30397
|
}
|
|
30363
30398
|
|
|
30364
30399
|
// src/layouts/Workflow/FocusedFormLayout.tsx
|
|
30365
|
-
var
|
|
30400
|
+
var import_jsx_runtime243 = require("react/jsx-runtime");
|
|
30366
30401
|
function FocusedFormLayout(props) {
|
|
30367
30402
|
const {
|
|
30368
30403
|
onCancel,
|
|
@@ -30378,7 +30413,7 @@ function FocusedFormLayout(props) {
|
|
|
30378
30413
|
...headerProps
|
|
30379
30414
|
} = props;
|
|
30380
30415
|
const tid = useTestIds(props, "focusedFormLayout");
|
|
30381
|
-
return /* @__PURE__ */ (0,
|
|
30416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
30382
30417
|
WorkflowPageLayout,
|
|
30383
30418
|
{
|
|
30384
30419
|
...tid,
|
|
@@ -30399,7 +30434,7 @@ function FocusedFormLayout(props) {
|
|
|
30399
30434
|
|
|
30400
30435
|
// src/layouts/Workflow/StepperLayout.tsx
|
|
30401
30436
|
var import_react172 = require("react");
|
|
30402
|
-
var
|
|
30437
|
+
var import_jsx_runtime244 = require("react/jsx-runtime");
|
|
30403
30438
|
function StepperLayout(props) {
|
|
30404
30439
|
const {
|
|
30405
30440
|
steps,
|
|
@@ -30426,7 +30461,7 @@ function StepperLayout(props) {
|
|
|
30426
30461
|
closeRightPane();
|
|
30427
30462
|
setCurrentStep(value);
|
|
30428
30463
|
}
|
|
30429
|
-
return /* @__PURE__ */ (0,
|
|
30464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
30430
30465
|
WorkflowPageLayout,
|
|
30431
30466
|
{
|
|
30432
30467
|
...tid,
|
|
@@ -30469,7 +30504,7 @@ function getInitialStep(steps, defaultStep) {
|
|
|
30469
30504
|
|
|
30470
30505
|
// src/forms/BoundChipSelectField.tsx
|
|
30471
30506
|
var import_mobx_react23 = require("mobx-react");
|
|
30472
|
-
var
|
|
30507
|
+
var import_jsx_runtime245 = require("react/jsx-runtime");
|
|
30473
30508
|
function BoundChipSelectField(props) {
|
|
30474
30509
|
const {
|
|
30475
30510
|
field,
|
|
@@ -30485,7 +30520,7 @@ function BoundChipSelectField(props) {
|
|
|
30485
30520
|
...others
|
|
30486
30521
|
} = props;
|
|
30487
30522
|
const testId = useTestIds(props, field.key);
|
|
30488
|
-
return /* @__PURE__ */ (0,
|
|
30523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_mobx_react23.Observer, { children: () => /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
30489
30524
|
ChipSelectField,
|
|
30490
30525
|
{
|
|
30491
30526
|
label,
|
|
@@ -30515,12 +30550,12 @@ function BoundChipSelectField(props) {
|
|
|
30515
30550
|
}
|
|
30516
30551
|
|
|
30517
30552
|
// src/forms/BoundSelectAndTextField.tsx
|
|
30518
|
-
var
|
|
30553
|
+
var import_jsx_runtime246 = require("react/jsx-runtime");
|
|
30519
30554
|
function BoundSelectAndTextField(props) {
|
|
30520
30555
|
const { selectFieldProps, textFieldProps, compact = true } = props;
|
|
30521
30556
|
const tid = useTestIds(props);
|
|
30522
|
-
return /* @__PURE__ */ (0,
|
|
30523
|
-
/* @__PURE__ */ (0,
|
|
30557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(CompoundField, { children: [
|
|
30558
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
30524
30559
|
BoundSelectField,
|
|
30525
30560
|
{
|
|
30526
30561
|
...tid[defaultTestId(selectFieldProps.label ?? selectFieldProps.field.key)],
|
|
@@ -30529,7 +30564,7 @@ function BoundSelectAndTextField(props) {
|
|
|
30529
30564
|
compact
|
|
30530
30565
|
}
|
|
30531
30566
|
),
|
|
30532
|
-
/* @__PURE__ */ (0,
|
|
30567
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
30533
30568
|
BoundTextField,
|
|
30534
30569
|
{
|
|
30535
30570
|
...tid[defaultTestId(textFieldProps.label ?? textFieldProps.field.key)],
|
|
@@ -30541,8 +30576,8 @@ function BoundSelectAndTextField(props) {
|
|
|
30541
30576
|
}
|
|
30542
30577
|
|
|
30543
30578
|
// src/forms/FormHeading.tsx
|
|
30544
|
-
var
|
|
30545
|
-
var
|
|
30579
|
+
var import_runtime160 = require("@homebound/truss/runtime");
|
|
30580
|
+
var import_jsx_runtime247 = (
|
|
30546
30581
|
// Add space before the heading, but only if it's not first.
|
|
30547
30582
|
require("react/jsx-runtime")
|
|
30548
30583
|
);
|
|
@@ -30553,7 +30588,7 @@ function FormHeading(props) {
|
|
|
30553
30588
|
isFirst = false,
|
|
30554
30589
|
...others
|
|
30555
30590
|
} = props;
|
|
30556
|
-
return /* @__PURE__ */ (0,
|
|
30591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("h3", { ...(0, import_runtime160.trussProps)({
|
|
30557
30592
|
...{
|
|
30558
30593
|
fontWeight: "fw4",
|
|
30559
30594
|
fontSize: "fz_16px",
|
|
@@ -30569,8 +30604,8 @@ FormHeading.isFormHeading = true;
|
|
|
30569
30604
|
|
|
30570
30605
|
// src/forms/StaticField.tsx
|
|
30571
30606
|
var import_utils49 = require("@react-aria/utils");
|
|
30572
|
-
var
|
|
30573
|
-
var
|
|
30607
|
+
var import_runtime161 = require("@homebound/truss/runtime");
|
|
30608
|
+
var import_jsx_runtime248 = require("react/jsx-runtime");
|
|
30574
30609
|
function StaticField(props) {
|
|
30575
30610
|
const {
|
|
30576
30611
|
fieldProps
|
|
@@ -30583,14 +30618,14 @@ function StaticField(props) {
|
|
|
30583
30618
|
} = props;
|
|
30584
30619
|
const tid = useTestIds(props, typeof label === "string" ? defaultTestId(label) : "staticField");
|
|
30585
30620
|
const id = (0, import_utils49.useId)();
|
|
30586
|
-
return /* @__PURE__ */ (0,
|
|
30621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)("div", { ...(0, import_runtime161.trussProps)({
|
|
30587
30622
|
...labelStyle === "left" ? {
|
|
30588
30623
|
display: "df",
|
|
30589
30624
|
justifyContent: "jcsb",
|
|
30590
30625
|
maxWidth: "maxw100"
|
|
30591
30626
|
} : {}
|
|
30592
30627
|
}), ...tid.container, children: [
|
|
30593
|
-
/* @__PURE__ */ (0,
|
|
30628
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)("label", { ...(0, import_runtime161.trussProps)({
|
|
30594
30629
|
display: "db",
|
|
30595
30630
|
fontWeight: "fw4",
|
|
30596
30631
|
fontSize: "fz_14px",
|
|
@@ -30600,7 +30635,7 @@ function StaticField(props) {
|
|
|
30600
30635
|
}],
|
|
30601
30636
|
marginBottom: "mb_4px"
|
|
30602
30637
|
}), htmlFor: id, ...tid.label, children: label }),
|
|
30603
|
-
/* @__PURE__ */ (0,
|
|
30638
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)("div", { id, ...(0, import_runtime161.trussProps)({
|
|
30604
30639
|
fontWeight: "fw4",
|
|
30605
30640
|
fontSize: "fz_14px",
|
|
30606
30641
|
lineHeight: "lh_20px",
|
|
@@ -30631,7 +30666,7 @@ function useFilter4({ filterDefs }) {
|
|
|
30631
30666
|
var import_react174 = require("react");
|
|
30632
30667
|
var import_react_aria66 = require("react-aria");
|
|
30633
30668
|
var import_react_stately18 = require("react-stately");
|
|
30634
|
-
var
|
|
30669
|
+
var import_jsx_runtime249 = require("react/jsx-runtime");
|
|
30635
30670
|
function Autocomplete(props) {
|
|
30636
30671
|
const {
|
|
30637
30672
|
onSelect,
|
|
@@ -30649,7 +30684,7 @@ function Autocomplete(props) {
|
|
|
30649
30684
|
const { effectiveValue, proposalProps } = useAiProposal(value, proposedValue);
|
|
30650
30685
|
const disabledOptionsWithReasons = Object.fromEntries(disabledOptions?.map(disabledOptionToKeyedTuple) ?? []);
|
|
30651
30686
|
const comboBoxChildren = (0, import_react174.useCallback)(
|
|
30652
|
-
(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)),
|
|
30653
30688
|
[getOptionValue, getOptionLabel, getOptionMenuLabel]
|
|
30654
30689
|
);
|
|
30655
30690
|
const comboBoxProps = {
|
|
@@ -30702,8 +30737,8 @@ function Autocomplete(props) {
|
|
|
30702
30737
|
// Ensures the menu never gets too small.
|
|
30703
30738
|
minWidth: 200
|
|
30704
30739
|
};
|
|
30705
|
-
return /* @__PURE__ */ (0,
|
|
30706
|
-
/* @__PURE__ */ (0,
|
|
30740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(import_jsx_runtime249.Fragment, { children: [
|
|
30741
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
30707
30742
|
TextFieldBase,
|
|
30708
30743
|
{
|
|
30709
30744
|
inputRef,
|
|
@@ -30713,11 +30748,11 @@ function Autocomplete(props) {
|
|
|
30713
30748
|
onChange: onInputChange,
|
|
30714
30749
|
...proposalProps,
|
|
30715
30750
|
clearable: true,
|
|
30716
|
-
startAdornment: "startAdornment" in props ? props.startAdornment : /* @__PURE__ */ (0,
|
|
30751
|
+
startAdornment: "startAdornment" in props ? props.startAdornment : /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Icon, { icon: "search" }),
|
|
30717
30752
|
...others
|
|
30718
30753
|
}
|
|
30719
30754
|
),
|
|
30720
|
-
state.isOpen && /* @__PURE__ */ (0,
|
|
30755
|
+
state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
30721
30756
|
Popover,
|
|
30722
30757
|
{
|
|
30723
30758
|
triggerRef: inputRef,
|
|
@@ -30726,7 +30761,7 @@ function Autocomplete(props) {
|
|
|
30726
30761
|
onClose: () => state.close(),
|
|
30727
30762
|
isOpen: state.isOpen,
|
|
30728
30763
|
minWidth: 200,
|
|
30729
|
-
children: /* @__PURE__ */ (0,
|
|
30764
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
30730
30765
|
ListBox,
|
|
30731
30766
|
{
|
|
30732
30767
|
...listBoxProps,
|
|
@@ -30747,8 +30782,8 @@ function Autocomplete(props) {
|
|
|
30747
30782
|
var import_react175 = require("react");
|
|
30748
30783
|
var import_react_aria67 = require("react-aria");
|
|
30749
30784
|
var import_react_stately19 = require("react-stately");
|
|
30750
|
-
var
|
|
30751
|
-
var
|
|
30785
|
+
var import_runtime162 = require("@homebound/truss/runtime");
|
|
30786
|
+
var import_jsx_runtime250 = require("react/jsx-runtime");
|
|
30752
30787
|
function ToggleButton(props) {
|
|
30753
30788
|
const {
|
|
30754
30789
|
selected: isSelected = false,
|
|
@@ -30812,7 +30847,7 @@ function ToggleButton(props) {
|
|
|
30812
30847
|
...focusProps,
|
|
30813
30848
|
...hoverProps,
|
|
30814
30849
|
...pressProps,
|
|
30815
|
-
...(0,
|
|
30850
|
+
...(0, import_runtime162.trussProps)({
|
|
30816
30851
|
// Gray500 off-state has no semantic match — keep palette (OnSurfaceMuted is Gray700).
|
|
30817
30852
|
...{
|
|
30818
30853
|
borderRadius: "br4",
|
|
@@ -30852,10 +30887,10 @@ function ToggleButton(props) {
|
|
|
30852
30887
|
return maybeTooltip({
|
|
30853
30888
|
title: tooltip,
|
|
30854
30889
|
placement: "top",
|
|
30855
|
-
children: /* @__PURE__ */ (0,
|
|
30856
|
-
icon && /* @__PURE__ */ (0,
|
|
30890
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("label", { ...labelAttrs, children: [
|
|
30891
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon, { icon }),
|
|
30857
30892
|
label,
|
|
30858
|
-
/* @__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 }) })
|
|
30859
30894
|
] })
|
|
30860
30895
|
});
|
|
30861
30896
|
}
|
|
@@ -30951,6 +30986,7 @@ var togglePressStyles = {
|
|
|
30951
30986
|
DnDGridItemHandle,
|
|
30952
30987
|
DocumentScrollOverlayRightPaneLayout,
|
|
30953
30988
|
DocumentTitleProvider,
|
|
30989
|
+
DocumentUploadIllustration,
|
|
30954
30990
|
EXPANDABLE_HEADER,
|
|
30955
30991
|
EditColumnsButton,
|
|
30956
30992
|
EnvironmentBanner,
|