@homebound/beam 4.14.8 → 4.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Css.json +1 -1
- package/dist/index.cjs +235 -174
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +6 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +207 -147
- 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,
|
|
@@ -499,6 +500,7 @@ var Tokens = /* @__PURE__ */ ((Tokens63) => {
|
|
|
499
500
|
Tokens63["NeutralSurfacePressed"] = "--b-neutral-surface-pressed";
|
|
500
501
|
Tokens63["OnPrimary"] = "--b-on-primary";
|
|
501
502
|
Tokens63["OnSurface"] = "--b-on-surface";
|
|
503
|
+
Tokens63["OnSurfaceActive"] = "--b-on-surface-active";
|
|
502
504
|
Tokens63["OnSurfaceDisabled"] = "--b-on-surface-disabled";
|
|
503
505
|
Tokens63["OnSurfaceMuted"] = "--b-on-surface-muted";
|
|
504
506
|
Tokens63["OnSurfaceRaisedHover"] = "--b-on-surface-raised-hover";
|
|
@@ -510,6 +512,8 @@ var Tokens = /* @__PURE__ */ ((Tokens63) => {
|
|
|
510
512
|
Tokens63["SelectionFill"] = "--b-selection-fill";
|
|
511
513
|
Tokens63["SelectionIndicator"] = "--b-selection-indicator";
|
|
512
514
|
Tokens63["Surface"] = "--b-surface";
|
|
515
|
+
Tokens63["SurfaceActive"] = "--b-surface-active";
|
|
516
|
+
Tokens63["SurfaceActiveHover"] = "--b-surface-active-hover";
|
|
513
517
|
Tokens63["SurfaceDisabled"] = "--b-surface-disabled";
|
|
514
518
|
Tokens63["SurfaceHover"] = "--b-surface-hover";
|
|
515
519
|
Tokens63["SurfaceRaised"] = "--b-surface-raised";
|
|
@@ -8756,6 +8760,22 @@ var filledBoxStyles = {
|
|
|
8756
8760
|
var filledBoxHoverStyles = {
|
|
8757
8761
|
backgroundColor: "bgBlue900"
|
|
8758
8762
|
};
|
|
8763
|
+
var indeterminateBoxStyles = {
|
|
8764
|
+
borderColor: ["bc_var", {
|
|
8765
|
+
"--borderColor": "var(--b-surface-active)"
|
|
8766
|
+
}],
|
|
8767
|
+
backgroundColor: ["bgColor_var", {
|
|
8768
|
+
"--backgroundColor": "var(--b-surface-active)"
|
|
8769
|
+
}]
|
|
8770
|
+
};
|
|
8771
|
+
var indeterminateHoverStyles = {
|
|
8772
|
+
borderColor: ["bc_var", {
|
|
8773
|
+
"--borderColor": "var(--b-surface-active-hover)"
|
|
8774
|
+
}],
|
|
8775
|
+
backgroundColor: ["bgColor_var", {
|
|
8776
|
+
"--backgroundColor": "var(--b-surface-active-hover)"
|
|
8777
|
+
}]
|
|
8778
|
+
};
|
|
8759
8779
|
var disabledBoxStyles = {
|
|
8760
8780
|
backgroundColor: ["bgColor_var", {
|
|
8761
8781
|
"--backgroundColor": "var(--b-field-bg-disabled)"
|
|
@@ -8814,20 +8834,27 @@ function StyledCheckbox(props) {
|
|
|
8814
8834
|
} = (0, import_react_aria5.useHover)({
|
|
8815
8835
|
isDisabled
|
|
8816
8836
|
});
|
|
8817
|
-
const
|
|
8837
|
+
const showSelected = Boolean(isSelected) && !isDisabled;
|
|
8838
|
+
const showIndeterminate = isIndeterminate && !isDisabled;
|
|
8839
|
+
const markIcon = isIndeterminate ? dashMark(isDisabled ? "--b-on-primary" /* OnPrimary */ : "--b-on-surface-active" /* OnSurfaceActive */) : isSelected ? checkmarkSmall : "";
|
|
8818
8840
|
const tid = useTestIds(props);
|
|
8819
8841
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { ...hoverProps, ...(0, import_runtime19.trussProps)({
|
|
8820
8842
|
...baseStyles,
|
|
8821
|
-
...
|
|
8822
|
-
...
|
|
8843
|
+
...showSelected && filledBoxStyles,
|
|
8844
|
+
...showIndeterminate && indeterminateBoxStyles,
|
|
8845
|
+
...showSelected && isHovered && filledBoxHoverStyles,
|
|
8846
|
+
...showIndeterminate && isHovered && indeterminateHoverStyles,
|
|
8823
8847
|
...isDisabled && disabledBoxStyles,
|
|
8824
8848
|
...isDisabled && isSelected && disabledSelectedBoxStyles,
|
|
8825
8849
|
...isFocusVisible && focusRingStyles,
|
|
8826
|
-
|
|
8850
|
+
// Selected and empty boxes still use the palette hover border. Indeterminate hover sets its own.
|
|
8851
|
+
...isHovered && !showIndeterminate && hoverBorderStyles
|
|
8827
8852
|
}), "aria-hidden": "true", "data-checked": isSelected ? true : isIndeterminate ? "mixed" : false, ...tid.checkbox, children: markIcon });
|
|
8828
8853
|
}
|
|
8829
8854
|
var checkmarkSmall = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { width: "16", height: "16", ...(0, import_runtime19.trussProps)(markSvgStyles), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M6.66669 10.3907L4.47135 8.19533L3.52869 9.138L6.66669 12.276L13.138 5.80467L12.1954 4.862L6.66669 10.3907Z", fill: `var(${"--b-on-primary" /* OnPrimary */})` }) });
|
|
8830
|
-
|
|
8855
|
+
function dashMark(fillToken) {
|
|
8856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { width: "16", height: "16", ...(0, import_runtime19.trussProps)(markSvgStyles), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "4", y: "7.5", width: "8", height: "1.35", fill: `var(${fillToken})` }) });
|
|
8857
|
+
}
|
|
8831
8858
|
|
|
8832
8859
|
// src/inputs/Checkbox.tsx
|
|
8833
8860
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
@@ -14085,12 +14112,14 @@ var import_runtime41 = require("@homebound/truss/runtime");
|
|
|
14085
14112
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
14086
14113
|
function GridTableEmptyState(props) {
|
|
14087
14114
|
const {
|
|
14115
|
+
illustration,
|
|
14088
14116
|
title = "No results found",
|
|
14089
14117
|
description,
|
|
14090
14118
|
actions
|
|
14091
14119
|
} = props;
|
|
14092
14120
|
const tid = useTestIds(props, "gridTableEmptyState");
|
|
14093
14121
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "df fdc aic pt_12 pb_12 g_2", ...tid, children: [
|
|
14122
|
+
illustration && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...tid.illustration, children: illustration }),
|
|
14094
14123
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
|
|
14095
14124
|
description && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { ...(0, import_runtime41.trussProps)({
|
|
14096
14125
|
fontWeight: "fw4",
|
|
@@ -25434,6 +25463,7 @@ function composeEmptyState(tableProps, layoutState, layoutEmptyFallback, clearFi
|
|
|
25434
25463
|
const filteringActive = layoutState?.filteringActive ?? false;
|
|
25435
25464
|
const filterEmptyDescription = "Try adjusting your search or filters.";
|
|
25436
25465
|
return {
|
|
25466
|
+
illustration: tableEmptyState?.illustration,
|
|
25437
25467
|
title: tableEmptyState?.title ?? tableEmptyFallback ?? layoutEmptyFallback,
|
|
25438
25468
|
description: tableEmptyState?.description ?? (filteringActive ? filterEmptyDescription : void 0),
|
|
25439
25469
|
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 +29279,46 @@ function useToast() {
|
|
|
29249
29279
|
return { showToast, clear };
|
|
29250
29280
|
}
|
|
29251
29281
|
|
|
29252
|
-
// src/
|
|
29282
|
+
// src/illustrations/DocumentUploadIllustration.tsx
|
|
29253
29283
|
var import_runtime146 = require("@homebound/truss/runtime");
|
|
29254
29284
|
var import_jsx_runtime225 = require("react/jsx-runtime");
|
|
29285
|
+
function DocumentUploadIllustration(props) {
|
|
29286
|
+
const {
|
|
29287
|
+
width: width2 = 338
|
|
29288
|
+
} = props;
|
|
29289
|
+
const blob = "rgba(247, 245, 245, 1)" /* Gray100 */;
|
|
29290
|
+
const line = "rgba(141, 141, 141, 1)" /* Gray600 */;
|
|
29291
|
+
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)({
|
|
29292
|
+
width: ["w_var", {
|
|
29293
|
+
"--width": `${width2}px`
|
|
29294
|
+
}],
|
|
29295
|
+
maxWidth: "maxw100",
|
|
29296
|
+
height: "ha"
|
|
29297
|
+
}), children: [
|
|
29298
|
+
/* @__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 }),
|
|
29299
|
+
/* @__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 */ }),
|
|
29300
|
+
/* @__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 }),
|
|
29301
|
+
/* @__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 }),
|
|
29302
|
+
/* @__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 */ }),
|
|
29303
|
+
/* @__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 }),
|
|
29304
|
+
/* @__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 }),
|
|
29305
|
+
/* @__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 }),
|
|
29306
|
+
/* @__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 }),
|
|
29307
|
+
/* @__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 }),
|
|
29308
|
+
/* @__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 })
|
|
29309
|
+
] });
|
|
29310
|
+
}
|
|
29311
|
+
|
|
29312
|
+
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
29313
|
+
var import_runtime147 = require("@homebound/truss/runtime");
|
|
29314
|
+
var import_jsx_runtime226 = require("react/jsx-runtime");
|
|
29255
29315
|
var __maybeInc29 = (inc) => {
|
|
29256
29316
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29257
29317
|
};
|
|
29258
29318
|
function SideNavLayout(props) {
|
|
29259
29319
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
29260
|
-
if (hasProvider) return /* @__PURE__ */ (0,
|
|
29261
|
-
return /* @__PURE__ */ (0,
|
|
29320
|
+
if (hasProvider) return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SideNavLayoutContent, { ...props });
|
|
29321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SideNavLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SideNavLayoutContent, { ...props }) });
|
|
29262
29322
|
}
|
|
29263
29323
|
function SideNavLayoutContent(props) {
|
|
29264
29324
|
const {
|
|
@@ -29281,7 +29341,7 @@ function SideNavLayoutContent(props) {
|
|
|
29281
29341
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
29282
29342
|
const navTop = bannerAndNavbarChromeTop();
|
|
29283
29343
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
29284
|
-
const rail = showRail && /* @__PURE__ */ (0,
|
|
29344
|
+
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { ...(0, import_runtime147.trussProps)({
|
|
29285
29345
|
...{
|
|
29286
29346
|
display: "df",
|
|
29287
29347
|
flexDirection: "fdc",
|
|
@@ -29305,14 +29365,14 @@ function SideNavLayoutContent(props) {
|
|
|
29305
29365
|
position: "sticky",
|
|
29306
29366
|
left: "l_0",
|
|
29307
29367
|
zIndex: ["z_var", {
|
|
29308
|
-
"--zIndex": (0,
|
|
29368
|
+
"--zIndex": (0, import_runtime147.maybeCssVar)(zIndices.sideNav)
|
|
29309
29369
|
}],
|
|
29310
29370
|
top: ["top_var", {
|
|
29311
|
-
"--top": (0,
|
|
29371
|
+
"--top": (0, import_runtime147.maybeCssVar)(__maybeInc29(navTop))
|
|
29312
29372
|
}],
|
|
29313
29373
|
alignSelf: "asfs",
|
|
29314
29374
|
height: ["h_var", {
|
|
29315
|
-
"--height": (0,
|
|
29375
|
+
"--height": (0, import_runtime147.maybeCssVar)(__maybeInc29(railViewportHeight))
|
|
29316
29376
|
}],
|
|
29317
29377
|
width: ["w_var", {
|
|
29318
29378
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -29322,11 +29382,11 @@ function SideNavLayoutContent(props) {
|
|
|
29322
29382
|
position: "fixed",
|
|
29323
29383
|
left: "l_0",
|
|
29324
29384
|
top: ["top_var", {
|
|
29325
|
-
"--top": (0,
|
|
29385
|
+
"--top": (0, import_runtime147.maybeCssVar)(__maybeInc29(navTop))
|
|
29326
29386
|
}],
|
|
29327
29387
|
bottom: "bot_0",
|
|
29328
29388
|
zIndex: ["z_var", {
|
|
29329
|
-
"--zIndex": (0,
|
|
29389
|
+
"--zIndex": (0, import_runtime147.maybeCssVar)(zIndices.sideNav)
|
|
29330
29390
|
}]
|
|
29331
29391
|
},
|
|
29332
29392
|
...collapsed ? {
|
|
@@ -29338,18 +29398,18 @@ function SideNavLayoutContent(props) {
|
|
|
29338
29398
|
}
|
|
29339
29399
|
}
|
|
29340
29400
|
}), ...tid.sideNav, children: [
|
|
29341
|
-
showCollapseToggle && /* @__PURE__ */ (0,
|
|
29342
|
-
/* @__PURE__ */ (0,
|
|
29401
|
+
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 }) }),
|
|
29402
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(SideNav, { ...sideNav }) })
|
|
29343
29403
|
] });
|
|
29344
|
-
return /* @__PURE__ */ (0,
|
|
29404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { ...(0, import_runtime147.mergeProps)(void 0, {
|
|
29345
29405
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
29346
29406
|
}, {
|
|
29347
29407
|
display: "df",
|
|
29348
29408
|
flexDirection: "fdr",
|
|
29349
29409
|
width: "w100"
|
|
29350
29410
|
}), ...tid, children: [
|
|
29351
|
-
contrastRail ? /* @__PURE__ */ (0,
|
|
29352
|
-
/* @__PURE__ */ (0,
|
|
29411
|
+
contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(ContrastScope, { children: rail }) : rail,
|
|
29412
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { ...(0, import_runtime147.trussProps)({
|
|
29353
29413
|
display: "df",
|
|
29354
29414
|
flexDirection: "fdc",
|
|
29355
29415
|
flexGrow: "fg1",
|
|
@@ -29365,8 +29425,8 @@ function SideNavLayoutContent(props) {
|
|
|
29365
29425
|
}
|
|
29366
29426
|
|
|
29367
29427
|
// src/layouts/CenteredLayout/CenteredLayout.tsx
|
|
29368
|
-
var
|
|
29369
|
-
var
|
|
29428
|
+
var import_runtime148 = require("@homebound/truss/runtime");
|
|
29429
|
+
var import_jsx_runtime227 = require("react/jsx-runtime");
|
|
29370
29430
|
function CenteredLayout(props) {
|
|
29371
29431
|
const {
|
|
29372
29432
|
size,
|
|
@@ -29378,7 +29438,7 @@ function CenteredLayout(props) {
|
|
|
29378
29438
|
mdAndUp
|
|
29379
29439
|
} = useBreakpoint();
|
|
29380
29440
|
const rightPane = resolveWithRightPaneOptions(withRightPane);
|
|
29381
|
-
const shell = /* @__PURE__ */ (0,
|
|
29441
|
+
const shell = /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(ContentInsetProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("div", { ...(0, import_runtime148.mergeProps)(void 0, {
|
|
29382
29442
|
// layoutContainer descendants (e.g. ContentHeader) read this to inset sticky horizontal chrome within the shell padding.
|
|
29383
29443
|
[beamLayoutContentPaddingXVar]: mdAndUp ? pageContentPaddingXValue : smPageContentPaddingXValue,
|
|
29384
29444
|
// Floor while an ancestor overlay pane is open (`0px` when closed). `md+` only — phones must not get a dummy scrollbar.
|
|
@@ -29397,7 +29457,7 @@ function CenteredLayout(props) {
|
|
|
29397
29457
|
...pageContentPaddingX
|
|
29398
29458
|
}), ...tid, children }) });
|
|
29399
29459
|
if (!rightPane) return shell;
|
|
29400
|
-
return /* @__PURE__ */ (0,
|
|
29460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: shell });
|
|
29401
29461
|
}
|
|
29402
29462
|
var centeredContentMaxPx = {
|
|
29403
29463
|
sm: 720,
|
|
@@ -29410,8 +29470,8 @@ var centeredShellMaxPx = {
|
|
|
29410
29470
|
};
|
|
29411
29471
|
|
|
29412
29472
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
29413
|
-
var
|
|
29414
|
-
var
|
|
29473
|
+
var import_runtime149 = require("@homebound/truss/runtime");
|
|
29474
|
+
var import_jsx_runtime228 = require("react/jsx-runtime");
|
|
29415
29475
|
var __maybeInc30 = (inc) => {
|
|
29416
29476
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29417
29477
|
};
|
|
@@ -29427,42 +29487,42 @@ function EnvironmentBannerLayout(props) {
|
|
|
29427
29487
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
29428
29488
|
};
|
|
29429
29489
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
29430
|
-
return /* @__PURE__ */ (0,
|
|
29490
|
+
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
29491
|
display: "df",
|
|
29432
29492
|
flexDirection: "fdc",
|
|
29433
29493
|
width: "wfc",
|
|
29434
29494
|
minWidth: "mw100"
|
|
29435
29495
|
}), ...tid, children: [
|
|
29436
|
-
showBanner && environmentBanner && /* @__PURE__ */ (0,
|
|
29496
|
+
showBanner && environmentBanner && /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("div", { ...(0, import_runtime149.mergeProps)(void 0, {
|
|
29437
29497
|
height: environmentBannerSizePx
|
|
29438
29498
|
}, {
|
|
29439
29499
|
flexShrink: "fs0",
|
|
29440
29500
|
width: "w100"
|
|
29441
|
-
}), children: /* @__PURE__ */ (0,
|
|
29501
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("div", { ...(0, import_runtime149.trussProps)({
|
|
29442
29502
|
position: "fixed",
|
|
29443
29503
|
top: "top0",
|
|
29444
29504
|
left: "l_0",
|
|
29445
29505
|
zIndex: ["z_var", {
|
|
29446
|
-
"--zIndex": (0,
|
|
29506
|
+
"--zIndex": (0, import_runtime149.maybeCssVar)(zIndices.environmentBanner)
|
|
29447
29507
|
}],
|
|
29448
29508
|
width: ["w_var", {
|
|
29449
|
-
"--width": (0,
|
|
29509
|
+
"--width": (0, import_runtime149.maybeCssVar)(__maybeInc30(innerWidth))
|
|
29450
29510
|
}]
|
|
29451
|
-
}), ...tid.bannerSticky, children: /* @__PURE__ */ (0,
|
|
29511
|
+
}), ...tid.bannerSticky, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
29452
29512
|
children
|
|
29453
29513
|
] }) }) });
|
|
29454
29514
|
}
|
|
29455
29515
|
|
|
29456
29516
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
29457
|
-
var
|
|
29517
|
+
var import_runtime153 = require("@homebound/truss/runtime");
|
|
29458
29518
|
|
|
29459
29519
|
// src/forms/FormSection/FormSection.tsx
|
|
29460
|
-
var
|
|
29520
|
+
var import_runtime151 = require("@homebound/truss/runtime");
|
|
29461
29521
|
|
|
29462
29522
|
// src/forms/FormSection/FormSectionChild.tsx
|
|
29463
29523
|
var import_react160 = require("react");
|
|
29464
|
-
var
|
|
29465
|
-
var
|
|
29524
|
+
var import_runtime150 = require("@homebound/truss/runtime");
|
|
29525
|
+
var import_jsx_runtime229 = require("react/jsx-runtime");
|
|
29466
29526
|
function FormSectionChild(props) {
|
|
29467
29527
|
const {
|
|
29468
29528
|
title,
|
|
@@ -29481,10 +29541,10 @@ function FormSectionChild(props) {
|
|
|
29481
29541
|
id: props.id ?? title,
|
|
29482
29542
|
itemRef
|
|
29483
29543
|
});
|
|
29484
|
-
return /* @__PURE__ */ (0,
|
|
29544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)("div", { ...isDraggable ? {
|
|
29485
29545
|
...dragItemProps,
|
|
29486
29546
|
ref: itemRef
|
|
29487
|
-
} : {}, ...(0,
|
|
29547
|
+
} : {}, ...(0, import_runtime150.trussProps)({
|
|
29488
29548
|
display: "df",
|
|
29489
29549
|
flexDirection: "fdc",
|
|
29490
29550
|
gap: "g_2",
|
|
@@ -29500,13 +29560,13 @@ function FormSectionChild(props) {
|
|
|
29500
29560
|
borderStyle: "lot_bsn",
|
|
29501
29561
|
borderWidth: "lot_bw_0"
|
|
29502
29562
|
}), ...tid, children: [
|
|
29503
|
-
/* @__PURE__ */ (0,
|
|
29563
|
+
/* @__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
29564
|
fields
|
|
29505
29565
|
] });
|
|
29506
29566
|
}
|
|
29507
29567
|
|
|
29508
29568
|
// src/forms/FormSection/FormSection.tsx
|
|
29509
|
-
var
|
|
29569
|
+
var import_jsx_runtime230 = require("react/jsx-runtime");
|
|
29510
29570
|
function FormSection(props) {
|
|
29511
29571
|
const {
|
|
29512
29572
|
title,
|
|
@@ -29516,17 +29576,17 @@ function FormSection(props) {
|
|
|
29516
29576
|
childSections
|
|
29517
29577
|
} = props;
|
|
29518
29578
|
const tid = useTestIds(props, "formSection");
|
|
29519
|
-
return /* @__PURE__ */ (0,
|
|
29579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)("div", { id: defaultTestId(title), ...(0, import_runtime151.trussProps)({
|
|
29520
29580
|
display: "df",
|
|
29521
29581
|
flexDirection: "fdc",
|
|
29522
29582
|
gap: "g_2",
|
|
29523
29583
|
scrollMarginTop: ["scrollMarginTop_var", {
|
|
29524
|
-
"--scrollMarginTop": (0,
|
|
29584
|
+
"--scrollMarginTop": (0, import_runtime151.maybeCssVar)(stickyNavAndHeaderOffset())
|
|
29525
29585
|
}]
|
|
29526
29586
|
}), ...tid.section, children: [
|
|
29527
|
-
/* @__PURE__ */ (0,
|
|
29587
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(ContentHeader, { ...tid, title, description, actions, level: 3 }),
|
|
29528
29588
|
fields,
|
|
29529
|
-
childSections && (isReorderable(childSections) ? /* @__PURE__ */ (0,
|
|
29589
|
+
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
29590
|
] });
|
|
29531
29591
|
}
|
|
29532
29592
|
function isReorderable(childSections) {
|
|
@@ -29549,18 +29609,18 @@ function DraggableChildren(props) {
|
|
|
29549
29609
|
}
|
|
29550
29610
|
});
|
|
29551
29611
|
};
|
|
29552
|
-
return /* @__PURE__ */ (0,
|
|
29612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(DnDGrid, { onReorder: handleReorder, lockAxis: "y", gridStyles: {
|
|
29553
29613
|
gridTemplateColumns: "gtc_minmax_0_1fr",
|
|
29554
29614
|
gap: "g_3"
|
|
29555
|
-
}, children: sorted.map((child) => /* @__PURE__ */ (0,
|
|
29615
|
+
}, children: sorted.map((child) => /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(FormSectionChild, { ...child, ...tid }, child.id)) });
|
|
29556
29616
|
}
|
|
29557
29617
|
function sortByOrderField(childSections) {
|
|
29558
29618
|
return [...childSections].sort((a, b) => (a.orderField.value ?? 0) - (b.orderField.value ?? 0));
|
|
29559
29619
|
}
|
|
29560
29620
|
|
|
29561
29621
|
// src/layouts/FormSectionLayout/JumpLinksRail.tsx
|
|
29562
|
-
var
|
|
29563
|
-
var
|
|
29622
|
+
var import_runtime152 = require("@homebound/truss/runtime");
|
|
29623
|
+
var import_jsx_runtime231 = require("react/jsx-runtime");
|
|
29564
29624
|
var __maybeInc31 = (inc) => {
|
|
29565
29625
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29566
29626
|
};
|
|
@@ -29570,7 +29630,7 @@ function JumpLinksRail(props) {
|
|
|
29570
29630
|
activeId
|
|
29571
29631
|
} = props;
|
|
29572
29632
|
const tid = useTestIds(props, "jumpLinks");
|
|
29573
|
-
return /* @__PURE__ */ (0,
|
|
29633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)("nav", { ...(0, import_runtime152.trussProps)({
|
|
29574
29634
|
display: "df",
|
|
29575
29635
|
flexDirection: "fdc",
|
|
29576
29636
|
flexShrink: "fs0",
|
|
@@ -29580,9 +29640,9 @@ function JumpLinksRail(props) {
|
|
|
29580
29640
|
position: "sticky",
|
|
29581
29641
|
alignSelf: "asfs",
|
|
29582
29642
|
top: ["top_var", {
|
|
29583
|
-
"--top": (0,
|
|
29643
|
+
"--top": (0, import_runtime152.maybeCssVar)(__maybeInc31(stickyNavAndHeaderOffset()))
|
|
29584
29644
|
}]
|
|
29585
|
-
}), ...tid, children: links.map((link) => /* @__PURE__ */ (0,
|
|
29645
|
+
}), ...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
29646
|
}
|
|
29587
29647
|
var jumpLinksRailWidthPx = 192;
|
|
29588
29648
|
var railAndShellPx = centeredShellMaxPx.sm + jumpLinksRailWidthPx;
|
|
@@ -29618,7 +29678,7 @@ function useActiveJumpLink(sectionIds) {
|
|
|
29618
29678
|
}
|
|
29619
29679
|
|
|
29620
29680
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
29621
|
-
var
|
|
29681
|
+
var import_jsx_runtime232 = require("react/jsx-runtime");
|
|
29622
29682
|
var __maybeInc32 = (inc) => {
|
|
29623
29683
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29624
29684
|
};
|
|
@@ -29655,7 +29715,7 @@ function FormSectionLayout(props) {
|
|
|
29655
29715
|
}] : [], ...sectionLinks];
|
|
29656
29716
|
const showRail = withJumpLinks && jumpLinks.length >= 2 && !isMobile;
|
|
29657
29717
|
const activeId = useActiveJumpLink(showRail ? jumpLinks.map((link) => link.id) : []);
|
|
29658
|
-
const content2 = /* @__PURE__ */ (0,
|
|
29718
|
+
const content2 = /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { ...(0, import_runtime153.trussProps)({
|
|
29659
29719
|
display: "df",
|
|
29660
29720
|
flexDirection: "fdc",
|
|
29661
29721
|
gap: "g_8",
|
|
@@ -29666,38 +29726,38 @@ function FormSectionLayout(props) {
|
|
|
29666
29726
|
paddingLeft: "pl3"
|
|
29667
29727
|
} : {}
|
|
29668
29728
|
}), children: [
|
|
29669
|
-
/* @__PURE__ */ (0,
|
|
29729
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { id: titleAnchor ? formSectionLayoutTitleId : void 0, ...(0, import_runtime153.trussProps)({
|
|
29670
29730
|
display: "df",
|
|
29671
29731
|
flexDirection: "fdc",
|
|
29672
29732
|
gap: "g_3",
|
|
29673
29733
|
...titleAnchor ? {
|
|
29674
29734
|
scrollMarginTop: ["scrollMarginTop_var", {
|
|
29675
|
-
"--scrollMarginTop": (0,
|
|
29735
|
+
"--scrollMarginTop": (0, import_runtime153.maybeCssVar)(stickyNavAndHeaderOffset())
|
|
29676
29736
|
}]
|
|
29677
29737
|
} : {}
|
|
29678
29738
|
}), children: [
|
|
29679
|
-
/* @__PURE__ */ (0,
|
|
29739
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(ContentHeader, { ...tid, title, description, actions, withAutoSave, level: 2, aiMode }),
|
|
29680
29740
|
initialFields
|
|
29681
29741
|
] }),
|
|
29682
|
-
sections && /* @__PURE__ */ (0,
|
|
29742
|
+
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
29743
|
] });
|
|
29684
|
-
const form = /* @__PURE__ */ (0,
|
|
29685
|
-
const body = showRail ? /* @__PURE__ */ (0,
|
|
29686
|
-
/* @__PURE__ */ (0,
|
|
29687
|
-
/* @__PURE__ */ (0,
|
|
29744
|
+
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 });
|
|
29745
|
+
const body = showRail ? /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { className: "df w100 mb4", children: [
|
|
29746
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(JumpLinksRail, { links: jumpLinks, activeId, ...tid.jumpLinks }),
|
|
29747
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { ...(0, import_runtime153.trussProps)({
|
|
29688
29748
|
flexGrow: "fg1",
|
|
29689
29749
|
marginRight: ["mr_var", {
|
|
29690
|
-
"--marginRight": (0,
|
|
29750
|
+
"--marginRight": (0, import_runtime153.maybeCssVar)(__maybeInc32(jumpLinksRailReservation))
|
|
29691
29751
|
}]
|
|
29692
29752
|
}), ...tid.column, children: form })
|
|
29693
|
-
] }) : /* @__PURE__ */ (0,
|
|
29753
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { className: "mb4", children: form });
|
|
29694
29754
|
if (!rightPane) return body;
|
|
29695
|
-
return /* @__PURE__ */ (0,
|
|
29755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: body });
|
|
29696
29756
|
}
|
|
29697
29757
|
|
|
29698
29758
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
29699
29759
|
var import_react166 = require("react");
|
|
29700
|
-
var
|
|
29760
|
+
var import_runtime154 = require("@homebound/truss/runtime");
|
|
29701
29761
|
|
|
29702
29762
|
// src/layouts/useAutoHideOnScroll.ts
|
|
29703
29763
|
var import_react162 = require("react");
|
|
@@ -29812,17 +29872,17 @@ function useTransitionAfterPaint(ref, transition) {
|
|
|
29812
29872
|
|
|
29813
29873
|
// src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
|
|
29814
29874
|
var import_react165 = require("react");
|
|
29815
|
-
var
|
|
29875
|
+
var import_jsx_runtime233 = require("react/jsx-runtime");
|
|
29816
29876
|
var NavbarLayoutHeightContext = (0, import_react165.createContext)(0);
|
|
29817
29877
|
function NavbarLayoutHeightProvider({ value, children }) {
|
|
29818
|
-
return /* @__PURE__ */ (0,
|
|
29878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(NavbarLayoutHeightContext.Provider, { value, children });
|
|
29819
29879
|
}
|
|
29820
29880
|
function useNavbarLayoutHeight() {
|
|
29821
29881
|
return (0, import_react165.useContext)(NavbarLayoutHeightContext);
|
|
29822
29882
|
}
|
|
29823
29883
|
|
|
29824
29884
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
29825
|
-
var
|
|
29885
|
+
var import_jsx_runtime234 = require("react/jsx-runtime");
|
|
29826
29886
|
var __maybeInc33 = (inc) => {
|
|
29827
29887
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29828
29888
|
};
|
|
@@ -29848,10 +29908,10 @@ function NavbarLayout(props) {
|
|
|
29848
29908
|
position: "fixed",
|
|
29849
29909
|
left: "l_0",
|
|
29850
29910
|
zIndex: ["z_var", {
|
|
29851
|
-
"--zIndex": (0,
|
|
29911
|
+
"--zIndex": (0, import_runtime154.maybeCssVar)(zIndices.navbar)
|
|
29852
29912
|
}],
|
|
29853
29913
|
width: ["w_var", {
|
|
29854
|
-
"--width": (0,
|
|
29914
|
+
"--width": (0, import_runtime154.maybeCssVar)(__maybeInc33(innerWidth))
|
|
29855
29915
|
}]
|
|
29856
29916
|
};
|
|
29857
29917
|
useTransitionAfterPaint(navMetricsRef, "top 200ms cubic-bezier(0.4, 0, 0.2, 1)");
|
|
@@ -29859,20 +29919,20 @@ function NavbarLayout(props) {
|
|
|
29859
29919
|
const innerStyle = {
|
|
29860
29920
|
top: autoHideState === "hidden" ? `calc(${bannerTop} - ${navHeight}px)` : bannerTop
|
|
29861
29921
|
};
|
|
29862
|
-
const navbarEl = (0, import_react166.useMemo)(() => /* @__PURE__ */ (0,
|
|
29863
|
-
return /* @__PURE__ */ (0,
|
|
29922
|
+
const navbarEl = (0, import_react166.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Navbar, { ...navbar }), [navbar]);
|
|
29923
|
+
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
29924
|
display: "df",
|
|
29865
29925
|
flexDirection: "fdc",
|
|
29866
29926
|
width: "wfc",
|
|
29867
29927
|
minWidth: "mw100"
|
|
29868
29928
|
}), ...tid, children: [
|
|
29869
|
-
/* @__PURE__ */ (0,
|
|
29929
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { ref: spacerRef, ...(0, import_runtime154.mergeProps)(void 0, {
|
|
29870
29930
|
height: navHeight
|
|
29871
29931
|
}, {
|
|
29872
29932
|
flexShrink: "fs0",
|
|
29873
29933
|
width: "w100"
|
|
29874
|
-
}), children: /* @__PURE__ */ (0,
|
|
29875
|
-
/* @__PURE__ */ (0,
|
|
29934
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { ref: navMetricsRef, ...(0, import_runtime154.mergeProps)(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
29935
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
29876
29936
|
] }) }) }) });
|
|
29877
29937
|
}
|
|
29878
29938
|
|
|
@@ -29896,8 +29956,8 @@ function useDocumentTitle(...titleSegments) {
|
|
|
29896
29956
|
}
|
|
29897
29957
|
|
|
29898
29958
|
// src/components/Headers/BaseHeader.tsx
|
|
29899
|
-
var
|
|
29900
|
-
var
|
|
29959
|
+
var import_runtime155 = require("@homebound/truss/runtime");
|
|
29960
|
+
var import_jsx_runtime235 = require("react/jsx-runtime");
|
|
29901
29961
|
function BaseHeader(props) {
|
|
29902
29962
|
const {
|
|
29903
29963
|
title,
|
|
@@ -29909,7 +29969,7 @@ function BaseHeader(props) {
|
|
|
29909
29969
|
} = props;
|
|
29910
29970
|
const tid = useTestIds(otherProps, "header");
|
|
29911
29971
|
useDocumentTitle(title, documentTitleSuffix);
|
|
29912
|
-
return /* @__PURE__ */ (0,
|
|
29972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("header", { ...tid, ...(0, import_runtime155.trussProps)({
|
|
29913
29973
|
display: "df",
|
|
29914
29974
|
flexDirection: "fdc",
|
|
29915
29975
|
paddingTop: "pt3",
|
|
@@ -29923,7 +29983,7 @@ function BaseHeader(props) {
|
|
|
29923
29983
|
"--backgroundColor": "var(--b-surface)"
|
|
29924
29984
|
}]
|
|
29925
29985
|
}), children: [
|
|
29926
|
-
/* @__PURE__ */ (0,
|
|
29986
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { ...(0, import_runtime155.trussProps)({
|
|
29927
29987
|
...{
|
|
29928
29988
|
display: "df",
|
|
29929
29989
|
justifyContent: "jcsb",
|
|
@@ -29937,9 +29997,9 @@ function BaseHeader(props) {
|
|
|
29937
29997
|
} : {}
|
|
29938
29998
|
}
|
|
29939
29999
|
}), children: [
|
|
29940
|
-
/* @__PURE__ */ (0,
|
|
29941
|
-
breadcrumbs && /* @__PURE__ */ (0,
|
|
29942
|
-
/* @__PURE__ */ (0,
|
|
30000
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { className: "mw0", children: [
|
|
30001
|
+
breadcrumbs && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Breadcrumbs, { ...breadcrumbs }),
|
|
30002
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)("h1", { ...tid.title, ...(0, import_runtime155.trussProps)({
|
|
29943
30003
|
fontWeight: "fw6",
|
|
29944
30004
|
fontSize: "fz_20px",
|
|
29945
30005
|
lineHeight: "lh_28px",
|
|
@@ -29948,15 +30008,15 @@ function BaseHeader(props) {
|
|
|
29948
30008
|
}]
|
|
29949
30009
|
}), children: title })
|
|
29950
30010
|
] }),
|
|
29951
|
-
/* @__PURE__ */ (0,
|
|
30011
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)("div", { className: "fs0", children: rightSlot })
|
|
29952
30012
|
] }),
|
|
29953
30013
|
bottomSlot
|
|
29954
30014
|
] });
|
|
29955
30015
|
}
|
|
29956
30016
|
|
|
29957
30017
|
// src/components/Headers/PageHeader.tsx
|
|
29958
|
-
var
|
|
29959
|
-
var
|
|
30018
|
+
var import_runtime156 = require("@homebound/truss/runtime");
|
|
30019
|
+
var import_jsx_runtime236 = require("react/jsx-runtime");
|
|
29960
30020
|
function PageHeader2(props) {
|
|
29961
30021
|
const {
|
|
29962
30022
|
tabs,
|
|
@@ -29972,20 +30032,20 @@ function PageHeader2(props) {
|
|
|
29972
30032
|
bottomSlotActions,
|
|
29973
30033
|
rightSlotActions
|
|
29974
30034
|
} = splitHeaderActionsOnSm(actions, sm);
|
|
29975
|
-
return /* @__PURE__ */ (0,
|
|
29976
|
-
/* @__PURE__ */ (0,
|
|
29977
|
-
rightSlotActions.length > 0 && /* @__PURE__ */ (0,
|
|
30035
|
+
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: [
|
|
30036
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(AutoSaveIndicator, { hideOnIdle: true }),
|
|
30037
|
+
rightSlotActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(HeaderActions, { actions: rightSlotActions, collapseOnSm: true }),
|
|
29978
30038
|
rightSlot
|
|
29979
|
-
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */ (0,
|
|
29980
|
-
bottomSlotActions.length > 0 && /* @__PURE__ */ (0,
|
|
30039
|
+
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(import_jsx_runtime236.Fragment, { children: [
|
|
30040
|
+
bottomSlotActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("div", { ...(0, import_runtime156.trussProps)({
|
|
29981
30041
|
...pageContentPaddingX,
|
|
29982
30042
|
...{
|
|
29983
30043
|
...!tabs ? {
|
|
29984
30044
|
marginBottom: "mb2"
|
|
29985
30045
|
} : {}
|
|
29986
30046
|
}
|
|
29987
|
-
}), ...tid.bottomSlot, children: /* @__PURE__ */ (0,
|
|
29988
|
-
tabs && /* @__PURE__ */ (0,
|
|
30047
|
+
}), ...tid.bottomSlot, children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(HeaderActions, { actions: bottomSlotActions }) }),
|
|
30048
|
+
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
30049
|
] }) });
|
|
29990
30050
|
}
|
|
29991
30051
|
|
|
@@ -29995,8 +30055,8 @@ function useBannerAndNavbarHeight() {
|
|
|
29995
30055
|
}
|
|
29996
30056
|
|
|
29997
30057
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
29998
|
-
var
|
|
29999
|
-
var
|
|
30058
|
+
var import_runtime157 = require("@homebound/truss/runtime");
|
|
30059
|
+
var import_jsx_runtime237 = require("react/jsx-runtime");
|
|
30000
30060
|
var __maybeInc34 = (inc) => {
|
|
30001
30061
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
30002
30062
|
};
|
|
@@ -30026,32 +30086,32 @@ function PageHeaderLayout(props) {
|
|
|
30026
30086
|
const innerCss = {
|
|
30027
30087
|
position: "fixed",
|
|
30028
30088
|
left: ["left_var", {
|
|
30029
|
-
"--left": (0,
|
|
30089
|
+
"--left": (0, import_runtime157.maybeCssVar)(__maybeInc34(headerLeft))
|
|
30030
30090
|
}],
|
|
30031
30091
|
width: ["w_var", {
|
|
30032
|
-
"--width": (0,
|
|
30092
|
+
"--width": (0, import_runtime157.maybeCssVar)(__maybeInc34(headerWidth))
|
|
30033
30093
|
}],
|
|
30034
30094
|
zIndex: ["z_var", {
|
|
30035
|
-
"--zIndex": (0,
|
|
30095
|
+
"--zIndex": (0, import_runtime157.maybeCssVar)(zIndices.pageStickyHeader)
|
|
30036
30096
|
}]
|
|
30037
30097
|
};
|
|
30038
30098
|
useTransitionAfterPaint(headerMetricsRef, "all 200ms cubic-bezier(0.4, 0, 0.2, 1)");
|
|
30039
30099
|
const innerStyle = {
|
|
30040
30100
|
top: autoHideState === "hidden" ? `calc(${outerTop} - ${headerHeight}px)` : outerTop
|
|
30041
30101
|
};
|
|
30042
|
-
const pageHeaderEl = (0, import_react168.useMemo)(() => /* @__PURE__ */ (0,
|
|
30043
|
-
return /* @__PURE__ */ (0,
|
|
30102
|
+
const pageHeaderEl = (0, import_react168.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
30103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)("div", { ...(0, import_runtime157.mergeProps)(void 0, cssVars, {
|
|
30044
30104
|
display: "df",
|
|
30045
30105
|
flexDirection: "fdc",
|
|
30046
30106
|
width: "w100"
|
|
30047
30107
|
}), ...tid, children: [
|
|
30048
|
-
/* @__PURE__ */ (0,
|
|
30108
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)("div", { ref: spacerRef, ...(0, import_runtime157.mergeProps)(void 0, {
|
|
30049
30109
|
height: headerHeight
|
|
30050
30110
|
}, {
|
|
30051
30111
|
flexShrink: "fs0",
|
|
30052
30112
|
width: "w100"
|
|
30053
|
-
}), children: /* @__PURE__ */ (0,
|
|
30054
|
-
/* @__PURE__ */ (0,
|
|
30113
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime237.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime157.mergeProps)(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
30114
|
+
/* @__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
30115
|
] }) });
|
|
30056
30116
|
}
|
|
30057
30117
|
|
|
@@ -30059,23 +30119,23 @@ function PageHeaderLayout(props) {
|
|
|
30059
30119
|
var import_react171 = require("react");
|
|
30060
30120
|
|
|
30061
30121
|
// src/components/Headers/WorkflowHeader.tsx
|
|
30062
|
-
var
|
|
30122
|
+
var import_jsx_runtime238 = require("react/jsx-runtime");
|
|
30063
30123
|
function WorkflowHeader(props) {
|
|
30064
30124
|
const { stepperTabs, ...otherProps } = props;
|
|
30065
30125
|
const tid = useTestIds(otherProps, "header");
|
|
30066
|
-
return /* @__PURE__ */ (0,
|
|
30126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
30067
30127
|
BaseHeader,
|
|
30068
30128
|
{
|
|
30069
30129
|
...otherProps,
|
|
30070
|
-
bottomSlot: stepperTabs ? /* @__PURE__ */ (0,
|
|
30130
|
+
bottomSlot: stepperTabs ? /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) : void 0
|
|
30071
30131
|
}
|
|
30072
30132
|
);
|
|
30073
30133
|
}
|
|
30074
30134
|
|
|
30075
30135
|
// src/layouts/Workflow/RightPaneTriggers.tsx
|
|
30076
30136
|
var import_react169 = require("react");
|
|
30077
|
-
var
|
|
30078
|
-
var
|
|
30137
|
+
var import_runtime158 = require("@homebound/truss/runtime");
|
|
30138
|
+
var import_jsx_runtime239 = require("react/jsx-runtime");
|
|
30079
30139
|
var __maybeInc35 = (inc) => {
|
|
30080
30140
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
30081
30141
|
};
|
|
@@ -30096,12 +30156,12 @@ function WorkflowPageRightPaneTriggers(props) {
|
|
|
30096
30156
|
const pageTriggerInsetPx = 24;
|
|
30097
30157
|
const onClick = (0, import_react169.useCallback)((trigger) => {
|
|
30098
30158
|
openRightPane({
|
|
30099
|
-
content: /* @__PURE__ */ (0,
|
|
30159
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(RightPanePanel, { title: trigger.label, children: trigger.content })
|
|
30100
30160
|
});
|
|
30101
30161
|
}, [openRightPane]);
|
|
30102
|
-
return /* @__PURE__ */ (0,
|
|
30162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)("div", { ...tid, "aria-hidden": isRightPaneOpen, ...isRightPaneOpen ? {
|
|
30103
30163
|
inert: true
|
|
30104
|
-
} : {}, ...(0,
|
|
30164
|
+
} : {}, ...(0, import_runtime158.trussProps)({
|
|
30105
30165
|
...{
|
|
30106
30166
|
display: "df",
|
|
30107
30167
|
alignItems: "aic",
|
|
@@ -30115,31 +30175,31 @@ function WorkflowPageRightPaneTriggers(props) {
|
|
|
30115
30175
|
...!isMobile && {
|
|
30116
30176
|
position: "fixed",
|
|
30117
30177
|
top: ["top_var", {
|
|
30118
|
-
"--top": (0,
|
|
30178
|
+
"--top": (0, import_runtime158.maybeCssVar)(__maybeInc35(stickyNavAndHeaderOffset(pageTriggerInsetPx)))
|
|
30119
30179
|
}],
|
|
30120
30180
|
right: ["right_var", {
|
|
30121
30181
|
"--right": `${pageTriggerInsetPx}px`
|
|
30122
30182
|
}],
|
|
30123
30183
|
zIndex: ["z_var", {
|
|
30124
|
-
"--zIndex": (0,
|
|
30184
|
+
"--zIndex": (0, import_runtime158.maybeCssVar)(zIndices.rightPaneTriggers)
|
|
30125
30185
|
}]
|
|
30126
30186
|
},
|
|
30127
30187
|
// Desktop only — on `sm` the full-bleed pane covers the header slot.
|
|
30128
30188
|
...!isMobile && (isRightPaneOpen ? {
|
|
30129
30189
|
transform: ["transform_var", {
|
|
30130
|
-
"--transform": (0,
|
|
30190
|
+
"--transform": (0, import_runtime158.maybeCssVar)(`translateX(calc(100% + ${pageTriggerInsetPx}px))`)
|
|
30131
30191
|
}],
|
|
30132
30192
|
pointerEvents: "pen"
|
|
30133
30193
|
} : {
|
|
30134
30194
|
transform: "tf_translateX_0"
|
|
30135
30195
|
})
|
|
30136
|
-
}), children: triggers.map((trigger) => /* @__PURE__ */ (0,
|
|
30196
|
+
}), 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
30197
|
}
|
|
30138
30198
|
|
|
30139
30199
|
// src/layouts/Workflow/useUnsavedChangesGuard.tsx
|
|
30140
30200
|
var import_react170 = require("react");
|
|
30141
30201
|
var import_react_router_dom9 = require("react-router-dom");
|
|
30142
|
-
var
|
|
30202
|
+
var import_jsx_runtime240 = require("react/jsx-runtime");
|
|
30143
30203
|
function useUnsavedChangesGuard(options) {
|
|
30144
30204
|
const { isDirty, allowNavigation, onCancel } = options;
|
|
30145
30205
|
const { openModal } = useModal();
|
|
@@ -30175,7 +30235,7 @@ function useUnsavedChangesGuard(options) {
|
|
|
30175
30235
|
}
|
|
30176
30236
|
openModal({
|
|
30177
30237
|
allowClosing: false,
|
|
30178
|
-
content: /* @__PURE__ */ (0,
|
|
30238
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(ConfirmCloseModal, { onClose: () => confirmCancel(e) })
|
|
30179
30239
|
});
|
|
30180
30240
|
};
|
|
30181
30241
|
const navigationBlocker = blocker.state === "blocked" ? { proceed: () => blocker.proceed?.(), cancelNavigation: () => blocker.reset?.() } : void 0;
|
|
@@ -30187,7 +30247,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
30187
30247
|
(0, import_react170.useEffect)(() => {
|
|
30188
30248
|
openModal({
|
|
30189
30249
|
allowClosing: false,
|
|
30190
|
-
content: /* @__PURE__ */ (0,
|
|
30250
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(ConfirmCloseModal, { title: "Leave page?", onClose: proceed, onContinue: cancelNavigation })
|
|
30191
30251
|
});
|
|
30192
30252
|
return () => closeModal();
|
|
30193
30253
|
}, []);
|
|
@@ -30195,7 +30255,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
30195
30255
|
}
|
|
30196
30256
|
|
|
30197
30257
|
// src/layouts/Workflow/WorkflowActions.tsx
|
|
30198
|
-
var
|
|
30258
|
+
var import_jsx_runtime241 = require("react/jsx-runtime");
|
|
30199
30259
|
function WorkflowActions(props) {
|
|
30200
30260
|
const {
|
|
30201
30261
|
onCancel,
|
|
@@ -30213,12 +30273,12 @@ function WorkflowActions(props) {
|
|
|
30213
30273
|
sm: isMobile
|
|
30214
30274
|
} = useBreakpoint();
|
|
30215
30275
|
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,
|
|
30276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)("div", { className: "df aic jcsb sm_w100", children: [
|
|
30277
|
+
/* @__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 }) }),
|
|
30278
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)("div", { className: "df aic g_1", children: [
|
|
30279
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
|
|
30280
|
+
onSaveAndExit && /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
|
|
30281
|
+
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
30282
|
await onContinue?.();
|
|
30223
30283
|
}, disabled: primaryDisabled })
|
|
30224
30284
|
] })
|
|
@@ -30226,8 +30286,8 @@ function WorkflowActions(props) {
|
|
|
30226
30286
|
}
|
|
30227
30287
|
|
|
30228
30288
|
// src/layouts/Workflow/WorkflowPageLayout.tsx
|
|
30229
|
-
var
|
|
30230
|
-
var
|
|
30289
|
+
var import_runtime159 = require("@homebound/truss/runtime");
|
|
30290
|
+
var import_jsx_runtime242 = require("react/jsx-runtime");
|
|
30231
30291
|
var __maybeInc36 = (inc) => {
|
|
30232
30292
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
30233
30293
|
};
|
|
@@ -30258,9 +30318,9 @@ function WorkflowPageLayout(props) {
|
|
|
30258
30318
|
allowNavigation,
|
|
30259
30319
|
onCancel
|
|
30260
30320
|
});
|
|
30261
|
-
const actions = /* @__PURE__ */ (0,
|
|
30321
|
+
const actions = /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(WorkflowActions, { ...actionProps, aiMode, onCancel: onCancelClick });
|
|
30262
30322
|
const triggers = rightPaneTriggers ?? [];
|
|
30263
|
-
const pageTriggers = triggers.length > 0 ? /* @__PURE__ */ (0,
|
|
30323
|
+
const pageTriggers = triggers.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(WorkflowPageRightPaneTriggers, { triggers }) : void 0;
|
|
30264
30324
|
const headerMetricsRef = (0, import_react171.useRef)(null);
|
|
30265
30325
|
const headerHeight = useMeasuredHeight(headerMetricsRef, true);
|
|
30266
30326
|
const headerWidth = documentScrollChromeWidth();
|
|
@@ -30281,32 +30341,32 @@ function WorkflowPageLayout(props) {
|
|
|
30281
30341
|
}
|
|
30282
30342
|
};
|
|
30283
30343
|
}, [showFooter]);
|
|
30284
|
-
return /* @__PURE__ */ (0,
|
|
30285
|
-
/* @__PURE__ */ (0,
|
|
30344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(DocumentScrollLayoutProvider, { children: [
|
|
30345
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)("div", { ...(0, import_runtime159.mergeProps)(void 0, cssVars, {
|
|
30286
30346
|
display: "df",
|
|
30287
30347
|
flexDirection: "fdc",
|
|
30288
30348
|
width: "w100"
|
|
30289
30349
|
}), ...tid, children: [
|
|
30290
|
-
/* @__PURE__ */ (0,
|
|
30350
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.mergeProps)(void 0, {
|
|
30291
30351
|
height: headerHeight
|
|
30292
30352
|
}, {
|
|
30293
30353
|
flexShrink: "fs0",
|
|
30294
30354
|
width: "w100"
|
|
30295
|
-
}), children: /* @__PURE__ */ (0,
|
|
30355
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime159.trussProps)({
|
|
30296
30356
|
position: "fixed",
|
|
30297
30357
|
left: "l_0",
|
|
30298
30358
|
width: ["w_var", {
|
|
30299
|
-
"--width": (0,
|
|
30359
|
+
"--width": (0, import_runtime159.maybeCssVar)(__maybeInc36(headerWidth))
|
|
30300
30360
|
}],
|
|
30301
30361
|
zIndex: ["z_var", {
|
|
30302
|
-
"--zIndex": (0,
|
|
30362
|
+
"--zIndex": (0, import_runtime159.maybeCssVar)(zIndices.pageStickyHeader)
|
|
30303
30363
|
}],
|
|
30304
30364
|
top: ["top_var", {
|
|
30305
|
-
"--top": (0,
|
|
30365
|
+
"--top": (0, import_runtime159.maybeCssVar)(__maybeInc36(outerTop))
|
|
30306
30366
|
}],
|
|
30307
30367
|
transition: "transitionAll"
|
|
30308
|
-
}), ...tid.header, children: /* @__PURE__ */ (0,
|
|
30309
|
-
/* @__PURE__ */ (0,
|
|
30368
|
+
}), ...tid.header, children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(WorkflowHeader, { title, documentTitleSuffix, breadcrumbs, rightSlot: isMobile ? pageTriggers : actions, stepperTabs }) }) }),
|
|
30369
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.trussProps)({
|
|
30310
30370
|
...{
|
|
30311
30371
|
display: "df",
|
|
30312
30372
|
flexDirection: "fdc",
|
|
@@ -30318,29 +30378,29 @@ function WorkflowPageLayout(props) {
|
|
|
30318
30378
|
...aiMode && {
|
|
30319
30379
|
backgroundImage: "aiBackground",
|
|
30320
30380
|
minHeight: ["mh_var", {
|
|
30321
|
-
"--minHeight": (0,
|
|
30381
|
+
"--minHeight": (0, import_runtime159.maybeCssVar)(documentScrollBodyMinHeight())
|
|
30322
30382
|
}]
|
|
30323
30383
|
}
|
|
30324
|
-
}), ...tid.body, children: triggers.length > 0 ? /* @__PURE__ */ (0,
|
|
30384
|
+
}), ...tid.body, children: triggers.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(DocumentScrollOverlayRightPaneLayout, { children }) : children }),
|
|
30325
30385
|
!isMobile && pageTriggers,
|
|
30326
|
-
showFooter && /* @__PURE__ */ (0,
|
|
30386
|
+
showFooter && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.trussProps)({
|
|
30327
30387
|
flexShrink: "fs0",
|
|
30328
30388
|
width: "w100",
|
|
30329
30389
|
height: ["h_var", {
|
|
30330
30390
|
"--height": `${mobileFooterHeightPx}px`
|
|
30331
30391
|
}]
|
|
30332
|
-
}), children: /* @__PURE__ */ (0,
|
|
30392
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("div", { ...(0, import_runtime159.trussProps)({
|
|
30333
30393
|
...{
|
|
30334
30394
|
position: "fixed",
|
|
30335
30395
|
bottom: "bot_0",
|
|
30336
30396
|
width: ["w_var", {
|
|
30337
|
-
"--width": (0,
|
|
30397
|
+
"--width": (0, import_runtime159.maybeCssVar)(__maybeInc36(headerWidth))
|
|
30338
30398
|
}],
|
|
30339
30399
|
height: ["h_var", {
|
|
30340
30400
|
"--height": `${mobileFooterHeightPx}px`
|
|
30341
30401
|
}],
|
|
30342
30402
|
zIndex: ["z_var", {
|
|
30343
|
-
"--zIndex": (0,
|
|
30403
|
+
"--zIndex": (0, import_runtime159.maybeCssVar)(zIndices.pageStickyFooter)
|
|
30344
30404
|
}],
|
|
30345
30405
|
display: "df",
|
|
30346
30406
|
alignItems: "aic",
|
|
@@ -30358,12 +30418,12 @@ function WorkflowPageLayout(props) {
|
|
|
30358
30418
|
...pageContentPaddingX
|
|
30359
30419
|
}), ...tid.footer, children: actions }) })
|
|
30360
30420
|
] }),
|
|
30361
|
-
navigationBlocker && /* @__PURE__ */ (0,
|
|
30421
|
+
navigationBlocker && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(UnsavedChangesNavigationModal, { ...navigationBlocker })
|
|
30362
30422
|
] });
|
|
30363
30423
|
}
|
|
30364
30424
|
|
|
30365
30425
|
// src/layouts/Workflow/FocusedFormLayout.tsx
|
|
30366
|
-
var
|
|
30426
|
+
var import_jsx_runtime243 = require("react/jsx-runtime");
|
|
30367
30427
|
function FocusedFormLayout(props) {
|
|
30368
30428
|
const {
|
|
30369
30429
|
onCancel,
|
|
@@ -30379,7 +30439,7 @@ function FocusedFormLayout(props) {
|
|
|
30379
30439
|
...headerProps
|
|
30380
30440
|
} = props;
|
|
30381
30441
|
const tid = useTestIds(props, "focusedFormLayout");
|
|
30382
|
-
return /* @__PURE__ */ (0,
|
|
30442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
30383
30443
|
WorkflowPageLayout,
|
|
30384
30444
|
{
|
|
30385
30445
|
...tid,
|
|
@@ -30400,7 +30460,7 @@ function FocusedFormLayout(props) {
|
|
|
30400
30460
|
|
|
30401
30461
|
// src/layouts/Workflow/StepperLayout.tsx
|
|
30402
30462
|
var import_react172 = require("react");
|
|
30403
|
-
var
|
|
30463
|
+
var import_jsx_runtime244 = require("react/jsx-runtime");
|
|
30404
30464
|
function StepperLayout(props) {
|
|
30405
30465
|
const {
|
|
30406
30466
|
steps,
|
|
@@ -30427,7 +30487,7 @@ function StepperLayout(props) {
|
|
|
30427
30487
|
closeRightPane();
|
|
30428
30488
|
setCurrentStep(value);
|
|
30429
30489
|
}
|
|
30430
|
-
return /* @__PURE__ */ (0,
|
|
30490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
30431
30491
|
WorkflowPageLayout,
|
|
30432
30492
|
{
|
|
30433
30493
|
...tid,
|
|
@@ -30470,7 +30530,7 @@ function getInitialStep(steps, defaultStep) {
|
|
|
30470
30530
|
|
|
30471
30531
|
// src/forms/BoundChipSelectField.tsx
|
|
30472
30532
|
var import_mobx_react23 = require("mobx-react");
|
|
30473
|
-
var
|
|
30533
|
+
var import_jsx_runtime245 = require("react/jsx-runtime");
|
|
30474
30534
|
function BoundChipSelectField(props) {
|
|
30475
30535
|
const {
|
|
30476
30536
|
field,
|
|
@@ -30486,7 +30546,7 @@ function BoundChipSelectField(props) {
|
|
|
30486
30546
|
...others
|
|
30487
30547
|
} = props;
|
|
30488
30548
|
const testId = useTestIds(props, field.key);
|
|
30489
|
-
return /* @__PURE__ */ (0,
|
|
30549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_mobx_react23.Observer, { children: () => /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
30490
30550
|
ChipSelectField,
|
|
30491
30551
|
{
|
|
30492
30552
|
label,
|
|
@@ -30516,12 +30576,12 @@ function BoundChipSelectField(props) {
|
|
|
30516
30576
|
}
|
|
30517
30577
|
|
|
30518
30578
|
// src/forms/BoundSelectAndTextField.tsx
|
|
30519
|
-
var
|
|
30579
|
+
var import_jsx_runtime246 = require("react/jsx-runtime");
|
|
30520
30580
|
function BoundSelectAndTextField(props) {
|
|
30521
30581
|
const { selectFieldProps, textFieldProps, compact = true } = props;
|
|
30522
30582
|
const tid = useTestIds(props);
|
|
30523
|
-
return /* @__PURE__ */ (0,
|
|
30524
|
-
/* @__PURE__ */ (0,
|
|
30583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(CompoundField, { children: [
|
|
30584
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
30525
30585
|
BoundSelectField,
|
|
30526
30586
|
{
|
|
30527
30587
|
...tid[defaultTestId(selectFieldProps.label ?? selectFieldProps.field.key)],
|
|
@@ -30530,7 +30590,7 @@ function BoundSelectAndTextField(props) {
|
|
|
30530
30590
|
compact
|
|
30531
30591
|
}
|
|
30532
30592
|
),
|
|
30533
|
-
/* @__PURE__ */ (0,
|
|
30593
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
30534
30594
|
BoundTextField,
|
|
30535
30595
|
{
|
|
30536
30596
|
...tid[defaultTestId(textFieldProps.label ?? textFieldProps.field.key)],
|
|
@@ -30542,8 +30602,8 @@ function BoundSelectAndTextField(props) {
|
|
|
30542
30602
|
}
|
|
30543
30603
|
|
|
30544
30604
|
// src/forms/FormHeading.tsx
|
|
30545
|
-
var
|
|
30546
|
-
var
|
|
30605
|
+
var import_runtime160 = require("@homebound/truss/runtime");
|
|
30606
|
+
var import_jsx_runtime247 = (
|
|
30547
30607
|
// Add space before the heading, but only if it's not first.
|
|
30548
30608
|
require("react/jsx-runtime")
|
|
30549
30609
|
);
|
|
@@ -30554,7 +30614,7 @@ function FormHeading(props) {
|
|
|
30554
30614
|
isFirst = false,
|
|
30555
30615
|
...others
|
|
30556
30616
|
} = props;
|
|
30557
|
-
return /* @__PURE__ */ (0,
|
|
30617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("h3", { ...(0, import_runtime160.trussProps)({
|
|
30558
30618
|
...{
|
|
30559
30619
|
fontWeight: "fw4",
|
|
30560
30620
|
fontSize: "fz_16px",
|
|
@@ -30570,8 +30630,8 @@ FormHeading.isFormHeading = true;
|
|
|
30570
30630
|
|
|
30571
30631
|
// src/forms/StaticField.tsx
|
|
30572
30632
|
var import_utils49 = require("@react-aria/utils");
|
|
30573
|
-
var
|
|
30574
|
-
var
|
|
30633
|
+
var import_runtime161 = require("@homebound/truss/runtime");
|
|
30634
|
+
var import_jsx_runtime248 = require("react/jsx-runtime");
|
|
30575
30635
|
function StaticField(props) {
|
|
30576
30636
|
const {
|
|
30577
30637
|
fieldProps
|
|
@@ -30584,14 +30644,14 @@ function StaticField(props) {
|
|
|
30584
30644
|
} = props;
|
|
30585
30645
|
const tid = useTestIds(props, typeof label === "string" ? defaultTestId(label) : "staticField");
|
|
30586
30646
|
const id = (0, import_utils49.useId)();
|
|
30587
|
-
return /* @__PURE__ */ (0,
|
|
30647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)("div", { ...(0, import_runtime161.trussProps)({
|
|
30588
30648
|
...labelStyle === "left" ? {
|
|
30589
30649
|
display: "df",
|
|
30590
30650
|
justifyContent: "jcsb",
|
|
30591
30651
|
maxWidth: "maxw100"
|
|
30592
30652
|
} : {}
|
|
30593
30653
|
}), ...tid.container, children: [
|
|
30594
|
-
/* @__PURE__ */ (0,
|
|
30654
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)("label", { ...(0, import_runtime161.trussProps)({
|
|
30595
30655
|
display: "db",
|
|
30596
30656
|
fontWeight: "fw4",
|
|
30597
30657
|
fontSize: "fz_14px",
|
|
@@ -30601,7 +30661,7 @@ function StaticField(props) {
|
|
|
30601
30661
|
}],
|
|
30602
30662
|
marginBottom: "mb_4px"
|
|
30603
30663
|
}), htmlFor: id, ...tid.label, children: label }),
|
|
30604
|
-
/* @__PURE__ */ (0,
|
|
30664
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)("div", { id, ...(0, import_runtime161.trussProps)({
|
|
30605
30665
|
fontWeight: "fw4",
|
|
30606
30666
|
fontSize: "fz_14px",
|
|
30607
30667
|
lineHeight: "lh_20px",
|
|
@@ -30632,7 +30692,7 @@ function useFilter4({ filterDefs }) {
|
|
|
30632
30692
|
var import_react174 = require("react");
|
|
30633
30693
|
var import_react_aria66 = require("react-aria");
|
|
30634
30694
|
var import_react_stately18 = require("react-stately");
|
|
30635
|
-
var
|
|
30695
|
+
var import_jsx_runtime249 = require("react/jsx-runtime");
|
|
30636
30696
|
function Autocomplete(props) {
|
|
30637
30697
|
const {
|
|
30638
30698
|
onSelect,
|
|
@@ -30650,7 +30710,7 @@ function Autocomplete(props) {
|
|
|
30650
30710
|
const { effectiveValue, proposalProps } = useAiProposal(value, proposedValue);
|
|
30651
30711
|
const disabledOptionsWithReasons = Object.fromEntries(disabledOptions?.map(disabledOptionToKeyedTuple) ?? []);
|
|
30652
30712
|
const comboBoxChildren = (0, import_react174.useCallback)(
|
|
30653
|
-
(item) => /* @__PURE__ */ (0,
|
|
30713
|
+
(item) => /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(import_react_stately18.Item, { textValue: getOptionLabel(item), children: getOptionMenuLabel ? getOptionMenuLabel(item) : getOptionLabel(item) }, getOptionValue(item)),
|
|
30654
30714
|
[getOptionValue, getOptionLabel, getOptionMenuLabel]
|
|
30655
30715
|
);
|
|
30656
30716
|
const comboBoxProps = {
|
|
@@ -30703,8 +30763,8 @@ function Autocomplete(props) {
|
|
|
30703
30763
|
// Ensures the menu never gets too small.
|
|
30704
30764
|
minWidth: 200
|
|
30705
30765
|
};
|
|
30706
|
-
return /* @__PURE__ */ (0,
|
|
30707
|
-
/* @__PURE__ */ (0,
|
|
30766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(import_jsx_runtime249.Fragment, { children: [
|
|
30767
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
30708
30768
|
TextFieldBase,
|
|
30709
30769
|
{
|
|
30710
30770
|
inputRef,
|
|
@@ -30714,11 +30774,11 @@ function Autocomplete(props) {
|
|
|
30714
30774
|
onChange: onInputChange,
|
|
30715
30775
|
...proposalProps,
|
|
30716
30776
|
clearable: true,
|
|
30717
|
-
startAdornment: "startAdornment" in props ? props.startAdornment : /* @__PURE__ */ (0,
|
|
30777
|
+
startAdornment: "startAdornment" in props ? props.startAdornment : /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Icon, { icon: "search" }),
|
|
30718
30778
|
...others
|
|
30719
30779
|
}
|
|
30720
30780
|
),
|
|
30721
|
-
state.isOpen && /* @__PURE__ */ (0,
|
|
30781
|
+
state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
30722
30782
|
Popover,
|
|
30723
30783
|
{
|
|
30724
30784
|
triggerRef: inputRef,
|
|
@@ -30727,7 +30787,7 @@ function Autocomplete(props) {
|
|
|
30727
30787
|
onClose: () => state.close(),
|
|
30728
30788
|
isOpen: state.isOpen,
|
|
30729
30789
|
minWidth: 200,
|
|
30730
|
-
children: /* @__PURE__ */ (0,
|
|
30790
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
30731
30791
|
ListBox,
|
|
30732
30792
|
{
|
|
30733
30793
|
...listBoxProps,
|
|
@@ -30748,8 +30808,8 @@ function Autocomplete(props) {
|
|
|
30748
30808
|
var import_react175 = require("react");
|
|
30749
30809
|
var import_react_aria67 = require("react-aria");
|
|
30750
30810
|
var import_react_stately19 = require("react-stately");
|
|
30751
|
-
var
|
|
30752
|
-
var
|
|
30811
|
+
var import_runtime162 = require("@homebound/truss/runtime");
|
|
30812
|
+
var import_jsx_runtime250 = require("react/jsx-runtime");
|
|
30753
30813
|
function ToggleButton(props) {
|
|
30754
30814
|
const {
|
|
30755
30815
|
selected: isSelected = false,
|
|
@@ -30813,7 +30873,7 @@ function ToggleButton(props) {
|
|
|
30813
30873
|
...focusProps,
|
|
30814
30874
|
...hoverProps,
|
|
30815
30875
|
...pressProps,
|
|
30816
|
-
...(0,
|
|
30876
|
+
...(0, import_runtime162.trussProps)({
|
|
30817
30877
|
// Gray500 off-state has no semantic match — keep palette (OnSurfaceMuted is Gray700).
|
|
30818
30878
|
...{
|
|
30819
30879
|
borderRadius: "br4",
|
|
@@ -30853,10 +30913,10 @@ function ToggleButton(props) {
|
|
|
30853
30913
|
return maybeTooltip({
|
|
30854
30914
|
title: tooltip,
|
|
30855
30915
|
placement: "top",
|
|
30856
|
-
children: /* @__PURE__ */ (0,
|
|
30857
|
-
icon && /* @__PURE__ */ (0,
|
|
30916
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("label", { ...labelAttrs, children: [
|
|
30917
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon, { icon }),
|
|
30858
30918
|
label,
|
|
30859
|
-
/* @__PURE__ */ (0,
|
|
30919
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(import_react_aria67.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)("input", { ref, ...inputProps, ...tid.value }) })
|
|
30860
30920
|
] })
|
|
30861
30921
|
});
|
|
30862
30922
|
}
|
|
@@ -30952,6 +31012,7 @@ var togglePressStyles = {
|
|
|
30952
31012
|
DnDGridItemHandle,
|
|
30953
31013
|
DocumentScrollOverlayRightPaneLayout,
|
|
30954
31014
|
DocumentTitleProvider,
|
|
31015
|
+
DocumentUploadIllustration,
|
|
30955
31016
|
EXPANDABLE_HEADER,
|
|
30956
31017
|
EditColumnsButton,
|
|
30957
31018
|
EnvironmentBanner,
|