@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.js
CHANGED
|
@@ -72,6 +72,7 @@ var Tokens = /* @__PURE__ */ ((Tokens63) => {
|
|
|
72
72
|
Tokens63["NeutralSurfacePressed"] = "--b-neutral-surface-pressed";
|
|
73
73
|
Tokens63["OnPrimary"] = "--b-on-primary";
|
|
74
74
|
Tokens63["OnSurface"] = "--b-on-surface";
|
|
75
|
+
Tokens63["OnSurfaceActive"] = "--b-on-surface-active";
|
|
75
76
|
Tokens63["OnSurfaceDisabled"] = "--b-on-surface-disabled";
|
|
76
77
|
Tokens63["OnSurfaceMuted"] = "--b-on-surface-muted";
|
|
77
78
|
Tokens63["OnSurfaceRaisedHover"] = "--b-on-surface-raised-hover";
|
|
@@ -83,6 +84,8 @@ var Tokens = /* @__PURE__ */ ((Tokens63) => {
|
|
|
83
84
|
Tokens63["SelectionFill"] = "--b-selection-fill";
|
|
84
85
|
Tokens63["SelectionIndicator"] = "--b-selection-indicator";
|
|
85
86
|
Tokens63["Surface"] = "--b-surface";
|
|
87
|
+
Tokens63["SurfaceActive"] = "--b-surface-active";
|
|
88
|
+
Tokens63["SurfaceActiveHover"] = "--b-surface-active-hover";
|
|
86
89
|
Tokens63["SurfaceDisabled"] = "--b-surface-disabled";
|
|
87
90
|
Tokens63["SurfaceHover"] = "--b-surface-hover";
|
|
88
91
|
Tokens63["SurfaceRaised"] = "--b-surface-raised";
|
|
@@ -8280,6 +8283,22 @@ var filledBoxStyles = {
|
|
|
8280
8283
|
var filledBoxHoverStyles = {
|
|
8281
8284
|
backgroundColor: "bgBlue900"
|
|
8282
8285
|
};
|
|
8286
|
+
var indeterminateBoxStyles = {
|
|
8287
|
+
borderColor: ["bc_var", {
|
|
8288
|
+
"--borderColor": "var(--b-surface-active)"
|
|
8289
|
+
}],
|
|
8290
|
+
backgroundColor: ["bgColor_var", {
|
|
8291
|
+
"--backgroundColor": "var(--b-surface-active)"
|
|
8292
|
+
}]
|
|
8293
|
+
};
|
|
8294
|
+
var indeterminateHoverStyles = {
|
|
8295
|
+
borderColor: ["bc_var", {
|
|
8296
|
+
"--borderColor": "var(--b-surface-active-hover)"
|
|
8297
|
+
}],
|
|
8298
|
+
backgroundColor: ["bgColor_var", {
|
|
8299
|
+
"--backgroundColor": "var(--b-surface-active-hover)"
|
|
8300
|
+
}]
|
|
8301
|
+
};
|
|
8283
8302
|
var disabledBoxStyles = {
|
|
8284
8303
|
backgroundColor: ["bgColor_var", {
|
|
8285
8304
|
"--backgroundColor": "var(--b-field-bg-disabled)"
|
|
@@ -8338,20 +8357,27 @@ function StyledCheckbox(props) {
|
|
|
8338
8357
|
} = useHover3({
|
|
8339
8358
|
isDisabled
|
|
8340
8359
|
});
|
|
8341
|
-
const
|
|
8360
|
+
const showSelected = Boolean(isSelected) && !isDisabled;
|
|
8361
|
+
const showIndeterminate = isIndeterminate && !isDisabled;
|
|
8362
|
+
const markIcon = isIndeterminate ? dashMark(isDisabled ? "--b-on-primary" /* OnPrimary */ : "--b-on-surface-active" /* OnSurfaceActive */) : isSelected ? checkmarkSmall : "";
|
|
8342
8363
|
const tid = useTestIds(props);
|
|
8343
8364
|
return /* @__PURE__ */ jsx22("span", { ...hoverProps, ...trussProps15({
|
|
8344
8365
|
...baseStyles,
|
|
8345
|
-
...
|
|
8346
|
-
...
|
|
8366
|
+
...showSelected && filledBoxStyles,
|
|
8367
|
+
...showIndeterminate && indeterminateBoxStyles,
|
|
8368
|
+
...showSelected && isHovered && filledBoxHoverStyles,
|
|
8369
|
+
...showIndeterminate && isHovered && indeterminateHoverStyles,
|
|
8347
8370
|
...isDisabled && disabledBoxStyles,
|
|
8348
8371
|
...isDisabled && isSelected && disabledSelectedBoxStyles,
|
|
8349
8372
|
...isFocusVisible && focusRingStyles,
|
|
8350
|
-
|
|
8373
|
+
// Selected and empty boxes still use the palette hover border. Indeterminate hover sets its own.
|
|
8374
|
+
...isHovered && !showIndeterminate && hoverBorderStyles
|
|
8351
8375
|
}), "aria-hidden": "true", "data-checked": isSelected ? true : isIndeterminate ? "mixed" : false, ...tid.checkbox, children: markIcon });
|
|
8352
8376
|
}
|
|
8353
8377
|
var checkmarkSmall = /* @__PURE__ */ jsx22("svg", { width: "16", height: "16", ...trussProps15(markSvgStyles), children: /* @__PURE__ */ jsx22("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 */})` }) });
|
|
8354
|
-
|
|
8378
|
+
function dashMark(fillToken) {
|
|
8379
|
+
return /* @__PURE__ */ jsx22("svg", { width: "16", height: "16", ...trussProps15(markSvgStyles), children: /* @__PURE__ */ jsx22("rect", { x: "4", y: "7.5", width: "8", height: "1.35", fill: `var(${fillToken})` }) });
|
|
8380
|
+
}
|
|
8355
8381
|
|
|
8356
8382
|
// src/inputs/Checkbox.tsx
|
|
8357
8383
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
@@ -13609,12 +13635,14 @@ import { trussProps as trussProps32 } from "@homebound/truss/runtime";
|
|
|
13609
13635
|
import { jsx as jsx51, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
13610
13636
|
function GridTableEmptyState(props) {
|
|
13611
13637
|
const {
|
|
13638
|
+
illustration,
|
|
13612
13639
|
title = "No results found",
|
|
13613
13640
|
description,
|
|
13614
13641
|
actions
|
|
13615
13642
|
} = props;
|
|
13616
13643
|
const tid = useTestIds(props, "gridTableEmptyState");
|
|
13617
13644
|
return /* @__PURE__ */ jsxs32("div", { className: "df fdc aic pt_12 pb_12 g_2", ...tid, children: [
|
|
13645
|
+
illustration && /* @__PURE__ */ jsx51("div", { ...tid.illustration, children: illustration }),
|
|
13618
13646
|
/* @__PURE__ */ jsx51("div", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
|
|
13619
13647
|
description && /* @__PURE__ */ jsx51("div", { ...trussProps32({
|
|
13620
13648
|
fontWeight: "fw4",
|
|
@@ -24964,6 +24992,7 @@ function composeEmptyState(tableProps, layoutState, layoutEmptyFallback, clearFi
|
|
|
24964
24992
|
const filteringActive = layoutState?.filteringActive ?? false;
|
|
24965
24993
|
const filterEmptyDescription = "Try adjusting your search or filters.";
|
|
24966
24994
|
return {
|
|
24995
|
+
illustration: tableEmptyState?.illustration,
|
|
24967
24996
|
title: tableEmptyState?.title ?? tableEmptyFallback ?? layoutEmptyFallback,
|
|
24968
24997
|
description: tableEmptyState?.description ?? (filteringActive ? filterEmptyDescription : void 0),
|
|
24969
24998
|
actions: tableEmptyState?.actions ?? (filteringActive && layoutState ? /* @__PURE__ */ jsx178(Button, { label: "Clear Filters", variant: "tertiary", onClick: clearFilters, "data-testid": "clearFilters" }) : void 0)
|
|
@@ -28787,16 +28816,46 @@ function useToast() {
|
|
|
28787
28816
|
return { showToast, clear };
|
|
28788
28817
|
}
|
|
28789
28818
|
|
|
28790
|
-
// src/
|
|
28791
|
-
import { trussProps as trussProps129
|
|
28819
|
+
// src/illustrations/DocumentUploadIllustration.tsx
|
|
28820
|
+
import { trussProps as trussProps129 } from "@homebound/truss/runtime";
|
|
28792
28821
|
import { jsx as jsx225, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
28822
|
+
function DocumentUploadIllustration(props) {
|
|
28823
|
+
const {
|
|
28824
|
+
width: width2 = 338
|
|
28825
|
+
} = props;
|
|
28826
|
+
const blob = "rgba(247, 245, 245, 1)" /* Gray100 */;
|
|
28827
|
+
const line = "rgba(141, 141, 141, 1)" /* Gray600 */;
|
|
28828
|
+
return /* @__PURE__ */ jsxs119("svg", { viewBox: "0 0 338.25 270.6", xmlns: "http://www.w3.org/2000/svg", fill: "none", "aria-hidden": true, role: "presentation", ...trussProps129({
|
|
28829
|
+
width: ["w_var", {
|
|
28830
|
+
"--width": `${width2}px`
|
|
28831
|
+
}],
|
|
28832
|
+
maxWidth: "maxw100",
|
|
28833
|
+
height: "ha"
|
|
28834
|
+
}), children: [
|
|
28835
|
+
/* @__PURE__ */ jsx225("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 }),
|
|
28836
|
+
/* @__PURE__ */ jsx225("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 */ }),
|
|
28837
|
+
/* @__PURE__ */ jsx225("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 }),
|
|
28838
|
+
/* @__PURE__ */ jsx225("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 }),
|
|
28839
|
+
/* @__PURE__ */ jsx225("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 */ }),
|
|
28840
|
+
/* @__PURE__ */ jsx225("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 }),
|
|
28841
|
+
/* @__PURE__ */ jsx225("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 }),
|
|
28842
|
+
/* @__PURE__ */ jsx225("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 }),
|
|
28843
|
+
/* @__PURE__ */ jsx225("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 }),
|
|
28844
|
+
/* @__PURE__ */ jsx225("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 }),
|
|
28845
|
+
/* @__PURE__ */ jsx225("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 })
|
|
28846
|
+
] });
|
|
28847
|
+
}
|
|
28848
|
+
|
|
28849
|
+
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
28850
|
+
import { trussProps as trussProps130, mergeProps as mergeProps38, maybeCssVar as maybeCssVar62 } from "@homebound/truss/runtime";
|
|
28851
|
+
import { jsx as jsx226, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
28793
28852
|
var __maybeInc29 = (inc) => {
|
|
28794
28853
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
28795
28854
|
};
|
|
28796
28855
|
function SideNavLayout(props) {
|
|
28797
28856
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
28798
|
-
if (hasProvider) return /* @__PURE__ */
|
|
28799
|
-
return /* @__PURE__ */
|
|
28857
|
+
if (hasProvider) return /* @__PURE__ */ jsx226(SideNavLayoutContent, { ...props });
|
|
28858
|
+
return /* @__PURE__ */ jsx226(SideNavLayoutProvider, { children: /* @__PURE__ */ jsx226(SideNavLayoutContent, { ...props }) });
|
|
28800
28859
|
}
|
|
28801
28860
|
function SideNavLayoutContent(props) {
|
|
28802
28861
|
const {
|
|
@@ -28819,7 +28878,7 @@ function SideNavLayoutContent(props) {
|
|
|
28819
28878
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
28820
28879
|
const navTop = bannerAndNavbarChromeTop();
|
|
28821
28880
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
28822
|
-
const rail = showRail && /* @__PURE__ */
|
|
28881
|
+
const rail = showRail && /* @__PURE__ */ jsxs120("div", { ...trussProps130({
|
|
28823
28882
|
...{
|
|
28824
28883
|
display: "df",
|
|
28825
28884
|
flexDirection: "fdc",
|
|
@@ -28876,18 +28935,18 @@ function SideNavLayoutContent(props) {
|
|
|
28876
28935
|
}
|
|
28877
28936
|
}
|
|
28878
28937
|
}), ...tid.sideNav, children: [
|
|
28879
|
-
showCollapseToggle && /* @__PURE__ */
|
|
28880
|
-
/* @__PURE__ */
|
|
28938
|
+
showCollapseToggle && /* @__PURE__ */ jsx226("div", { className: "absolute r_2 top2 z2", children: /* @__PURE__ */ jsx226(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
|
|
28939
|
+
/* @__PURE__ */ jsx226("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ jsx226(SideNav, { ...sideNav }) })
|
|
28881
28940
|
] });
|
|
28882
|
-
return /* @__PURE__ */
|
|
28941
|
+
return /* @__PURE__ */ jsx226(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs120("div", { ...mergeProps38(void 0, {
|
|
28883
28942
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
28884
28943
|
}, {
|
|
28885
28944
|
display: "df",
|
|
28886
28945
|
flexDirection: "fdr",
|
|
28887
28946
|
width: "w100"
|
|
28888
28947
|
}), ...tid, children: [
|
|
28889
|
-
contrastRail ? /* @__PURE__ */
|
|
28890
|
-
/* @__PURE__ */
|
|
28948
|
+
contrastRail ? /* @__PURE__ */ jsx226(ContrastScope, { children: rail }) : rail,
|
|
28949
|
+
/* @__PURE__ */ jsx226("div", { ...trussProps130({
|
|
28891
28950
|
display: "df",
|
|
28892
28951
|
flexDirection: "fdc",
|
|
28893
28952
|
flexGrow: "fg1",
|
|
@@ -28904,7 +28963,7 @@ function SideNavLayoutContent(props) {
|
|
|
28904
28963
|
|
|
28905
28964
|
// src/layouts/CenteredLayout/CenteredLayout.tsx
|
|
28906
28965
|
import { mergeProps as mergeProps39 } from "@homebound/truss/runtime";
|
|
28907
|
-
import { jsx as
|
|
28966
|
+
import { jsx as jsx227 } from "react/jsx-runtime";
|
|
28908
28967
|
function CenteredLayout(props) {
|
|
28909
28968
|
const {
|
|
28910
28969
|
size,
|
|
@@ -28916,7 +28975,7 @@ function CenteredLayout(props) {
|
|
|
28916
28975
|
mdAndUp
|
|
28917
28976
|
} = useBreakpoint();
|
|
28918
28977
|
const rightPane = resolveWithRightPaneOptions(withRightPane);
|
|
28919
|
-
const shell = /* @__PURE__ */
|
|
28978
|
+
const shell = /* @__PURE__ */ jsx227(ContentInsetProvider, { children: /* @__PURE__ */ jsx227("div", { ...mergeProps39(void 0, {
|
|
28920
28979
|
// layoutContainer descendants (e.g. ContentHeader) read this to inset sticky horizontal chrome within the shell padding.
|
|
28921
28980
|
[beamLayoutContentPaddingXVar]: mdAndUp ? pageContentPaddingXValue : smPageContentPaddingXValue,
|
|
28922
28981
|
// Floor while an ancestor overlay pane is open (`0px` when closed). `md+` only — phones must not get a dummy scrollbar.
|
|
@@ -28935,7 +28994,7 @@ function CenteredLayout(props) {
|
|
|
28935
28994
|
...pageContentPaddingX
|
|
28936
28995
|
}), ...tid, children }) });
|
|
28937
28996
|
if (!rightPane) return shell;
|
|
28938
|
-
return /* @__PURE__ */
|
|
28997
|
+
return /* @__PURE__ */ jsx227(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: shell });
|
|
28939
28998
|
}
|
|
28940
28999
|
var centeredContentMaxPx = {
|
|
28941
29000
|
sm: 720,
|
|
@@ -28948,8 +29007,8 @@ var centeredShellMaxPx = {
|
|
|
28948
29007
|
};
|
|
28949
29008
|
|
|
28950
29009
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
28951
|
-
import { trussProps as
|
|
28952
|
-
import { jsx as
|
|
29010
|
+
import { trussProps as trussProps131, mergeProps as mergeProps40, maybeCssVar as maybeCssVar63 } from "@homebound/truss/runtime";
|
|
29011
|
+
import { jsx as jsx228, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
28953
29012
|
var __maybeInc30 = (inc) => {
|
|
28954
29013
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
28955
29014
|
};
|
|
@@ -28965,18 +29024,18 @@ function EnvironmentBannerLayout(props) {
|
|
|
28965
29024
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
28966
29025
|
};
|
|
28967
29026
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
28968
|
-
return /* @__PURE__ */
|
|
29027
|
+
return /* @__PURE__ */ jsx228(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx228(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ jsxs121("div", { ...mergeProps40(void 0, style, {
|
|
28969
29028
|
display: "df",
|
|
28970
29029
|
flexDirection: "fdc",
|
|
28971
29030
|
width: "wfc",
|
|
28972
29031
|
minWidth: "mw100"
|
|
28973
29032
|
}), ...tid, children: [
|
|
28974
|
-
showBanner && environmentBanner && /* @__PURE__ */
|
|
29033
|
+
showBanner && environmentBanner && /* @__PURE__ */ jsx228("div", { ...mergeProps40(void 0, {
|
|
28975
29034
|
height: environmentBannerSizePx
|
|
28976
29035
|
}, {
|
|
28977
29036
|
flexShrink: "fs0",
|
|
28978
29037
|
width: "w100"
|
|
28979
|
-
}), children: /* @__PURE__ */
|
|
29038
|
+
}), children: /* @__PURE__ */ jsx228("div", { ...trussProps131({
|
|
28980
29039
|
position: "fixed",
|
|
28981
29040
|
top: "top0",
|
|
28982
29041
|
left: "l_0",
|
|
@@ -28986,21 +29045,21 @@ function EnvironmentBannerLayout(props) {
|
|
|
28986
29045
|
width: ["w_var", {
|
|
28987
29046
|
"--width": maybeCssVar63(__maybeInc30(innerWidth))
|
|
28988
29047
|
}]
|
|
28989
|
-
}), ...tid.bannerSticky, children: /* @__PURE__ */
|
|
29048
|
+
}), ...tid.bannerSticky, children: /* @__PURE__ */ jsx228(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
28990
29049
|
children
|
|
28991
29050
|
] }) }) });
|
|
28992
29051
|
}
|
|
28993
29052
|
|
|
28994
29053
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
28995
|
-
import { trussProps as
|
|
29054
|
+
import { trussProps as trussProps135, maybeCssVar as maybeCssVar66 } from "@homebound/truss/runtime";
|
|
28996
29055
|
|
|
28997
29056
|
// src/forms/FormSection/FormSection.tsx
|
|
28998
|
-
import { trussProps as
|
|
29057
|
+
import { trussProps as trussProps133, maybeCssVar as maybeCssVar64 } from "@homebound/truss/runtime";
|
|
28999
29058
|
|
|
29000
29059
|
// src/forms/FormSection/FormSectionChild.tsx
|
|
29001
29060
|
import { useRef as useRef70 } from "react";
|
|
29002
|
-
import { trussProps as
|
|
29003
|
-
import { jsx as
|
|
29061
|
+
import { trussProps as trussProps132 } from "@homebound/truss/runtime";
|
|
29062
|
+
import { jsx as jsx229, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
29004
29063
|
function FormSectionChild(props) {
|
|
29005
29064
|
const {
|
|
29006
29065
|
title,
|
|
@@ -29019,10 +29078,10 @@ function FormSectionChild(props) {
|
|
|
29019
29078
|
id: props.id ?? title,
|
|
29020
29079
|
itemRef
|
|
29021
29080
|
});
|
|
29022
|
-
return /* @__PURE__ */
|
|
29081
|
+
return /* @__PURE__ */ jsxs122("div", { ...isDraggable ? {
|
|
29023
29082
|
...dragItemProps,
|
|
29024
29083
|
ref: itemRef
|
|
29025
|
-
} : {}, ...
|
|
29084
|
+
} : {}, ...trussProps132({
|
|
29026
29085
|
display: "df",
|
|
29027
29086
|
flexDirection: "fdc",
|
|
29028
29087
|
gap: "g_2",
|
|
@@ -29038,13 +29097,13 @@ function FormSectionChild(props) {
|
|
|
29038
29097
|
borderStyle: "lot_bsn",
|
|
29039
29098
|
borderWidth: "lot_bw_0"
|
|
29040
29099
|
}), ...tid, children: [
|
|
29041
|
-
/* @__PURE__ */
|
|
29100
|
+
/* @__PURE__ */ jsx229(ContentHeader, { ...tid.header, title, description, actions, level: 4, startAdornment: isDraggable ? /* @__PURE__ */ jsx229(DnDGridItemHandle, { dragHandleProps, icon: "drag", compact: true }) : void 0 }),
|
|
29042
29101
|
fields
|
|
29043
29102
|
] });
|
|
29044
29103
|
}
|
|
29045
29104
|
|
|
29046
29105
|
// src/forms/FormSection/FormSection.tsx
|
|
29047
|
-
import { jsx as
|
|
29106
|
+
import { jsx as jsx230, jsxs as jsxs123 } from "react/jsx-runtime";
|
|
29048
29107
|
function FormSection(props) {
|
|
29049
29108
|
const {
|
|
29050
29109
|
title,
|
|
@@ -29054,7 +29113,7 @@ function FormSection(props) {
|
|
|
29054
29113
|
childSections
|
|
29055
29114
|
} = props;
|
|
29056
29115
|
const tid = useTestIds(props, "formSection");
|
|
29057
|
-
return /* @__PURE__ */
|
|
29116
|
+
return /* @__PURE__ */ jsxs123("div", { id: defaultTestId(title), ...trussProps133({
|
|
29058
29117
|
display: "df",
|
|
29059
29118
|
flexDirection: "fdc",
|
|
29060
29119
|
gap: "g_2",
|
|
@@ -29062,9 +29121,9 @@ function FormSection(props) {
|
|
|
29062
29121
|
"--scrollMarginTop": maybeCssVar64(stickyNavAndHeaderOffset())
|
|
29063
29122
|
}]
|
|
29064
29123
|
}), ...tid.section, children: [
|
|
29065
|
-
/* @__PURE__ */
|
|
29124
|
+
/* @__PURE__ */ jsx230(ContentHeader, { ...tid, title, description, actions, level: 3 }),
|
|
29066
29125
|
fields,
|
|
29067
|
-
childSections && (isReorderable(childSections) ? /* @__PURE__ */
|
|
29126
|
+
childSections && (isReorderable(childSections) ? /* @__PURE__ */ jsx230(DraggableChildren, { childSections, ...tid.childSection }) : /* @__PURE__ */ jsx230("div", { className: "df fdc g_3", children: childSections.map((child) => /* @__PURE__ */ jsx230(FormSectionChild, { ...child, ...tid.childSection }, child.id ?? child.title)) }))
|
|
29068
29127
|
] });
|
|
29069
29128
|
}
|
|
29070
29129
|
function isReorderable(childSections) {
|
|
@@ -29087,18 +29146,18 @@ function DraggableChildren(props) {
|
|
|
29087
29146
|
}
|
|
29088
29147
|
});
|
|
29089
29148
|
};
|
|
29090
|
-
return /* @__PURE__ */
|
|
29149
|
+
return /* @__PURE__ */ jsx230(DnDGrid, { onReorder: handleReorder, lockAxis: "y", gridStyles: {
|
|
29091
29150
|
gridTemplateColumns: "gtc_minmax_0_1fr",
|
|
29092
29151
|
gap: "g_3"
|
|
29093
|
-
}, children: sorted.map((child) => /* @__PURE__ */
|
|
29152
|
+
}, children: sorted.map((child) => /* @__PURE__ */ jsx230(FormSectionChild, { ...child, ...tid }, child.id)) });
|
|
29094
29153
|
}
|
|
29095
29154
|
function sortByOrderField(childSections) {
|
|
29096
29155
|
return [...childSections].sort((a, b) => (a.orderField.value ?? 0) - (b.orderField.value ?? 0));
|
|
29097
29156
|
}
|
|
29098
29157
|
|
|
29099
29158
|
// src/layouts/FormSectionLayout/JumpLinksRail.tsx
|
|
29100
|
-
import { trussProps as
|
|
29101
|
-
import { jsx as
|
|
29159
|
+
import { trussProps as trussProps134, maybeCssVar as maybeCssVar65 } from "@homebound/truss/runtime";
|
|
29160
|
+
import { jsx as jsx231 } from "react/jsx-runtime";
|
|
29102
29161
|
var __maybeInc31 = (inc) => {
|
|
29103
29162
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29104
29163
|
};
|
|
@@ -29108,7 +29167,7 @@ function JumpLinksRail(props) {
|
|
|
29108
29167
|
activeId
|
|
29109
29168
|
} = props;
|
|
29110
29169
|
const tid = useTestIds(props, "jumpLinks");
|
|
29111
|
-
return /* @__PURE__ */
|
|
29170
|
+
return /* @__PURE__ */ jsx231("nav", { ...trussProps134({
|
|
29112
29171
|
display: "df",
|
|
29113
29172
|
flexDirection: "fdc",
|
|
29114
29173
|
flexShrink: "fs0",
|
|
@@ -29120,7 +29179,7 @@ function JumpLinksRail(props) {
|
|
|
29120
29179
|
top: ["top_var", {
|
|
29121
29180
|
"--top": maybeCssVar65(__maybeInc31(stickyNavAndHeaderOffset()))
|
|
29122
29181
|
}]
|
|
29123
|
-
}), ...tid, children: links.map((link) => /* @__PURE__ */
|
|
29182
|
+
}), ...tid, children: links.map((link) => /* @__PURE__ */ jsx231(JumpLink, { label: link.label, href: `#${link.id}`, active: link.id === activeId, ...tid.link }, link.id)) });
|
|
29124
29183
|
}
|
|
29125
29184
|
var jumpLinksRailWidthPx = 192;
|
|
29126
29185
|
var railAndShellPx = centeredShellMaxPx.sm + jumpLinksRailWidthPx;
|
|
@@ -29156,7 +29215,7 @@ function useActiveJumpLink(sectionIds) {
|
|
|
29156
29215
|
}
|
|
29157
29216
|
|
|
29158
29217
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
29159
|
-
import { jsx as
|
|
29218
|
+
import { jsx as jsx232, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
29160
29219
|
var __maybeInc32 = (inc) => {
|
|
29161
29220
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29162
29221
|
};
|
|
@@ -29193,7 +29252,7 @@ function FormSectionLayout(props) {
|
|
|
29193
29252
|
}] : [], ...sectionLinks];
|
|
29194
29253
|
const showRail = withJumpLinks && jumpLinks.length >= 2 && !isMobile;
|
|
29195
29254
|
const activeId = useActiveJumpLink(showRail ? jumpLinks.map((link) => link.id) : []);
|
|
29196
|
-
const content2 = /* @__PURE__ */
|
|
29255
|
+
const content2 = /* @__PURE__ */ jsxs124("div", { ...trussProps135({
|
|
29197
29256
|
display: "df",
|
|
29198
29257
|
flexDirection: "fdc",
|
|
29199
29258
|
gap: "g_8",
|
|
@@ -29204,7 +29263,7 @@ function FormSectionLayout(props) {
|
|
|
29204
29263
|
paddingLeft: "pl3"
|
|
29205
29264
|
} : {}
|
|
29206
29265
|
}), children: [
|
|
29207
|
-
/* @__PURE__ */
|
|
29266
|
+
/* @__PURE__ */ jsxs124("div", { id: titleAnchor ? formSectionLayoutTitleId : void 0, ...trussProps135({
|
|
29208
29267
|
display: "df",
|
|
29209
29268
|
flexDirection: "fdc",
|
|
29210
29269
|
gap: "g_3",
|
|
@@ -29214,23 +29273,23 @@ function FormSectionLayout(props) {
|
|
|
29214
29273
|
}]
|
|
29215
29274
|
} : {}
|
|
29216
29275
|
}), children: [
|
|
29217
|
-
/* @__PURE__ */
|
|
29276
|
+
/* @__PURE__ */ jsx232(ContentHeader, { ...tid, title, description, actions, withAutoSave, level: 2, aiMode }),
|
|
29218
29277
|
initialFields
|
|
29219
29278
|
] }),
|
|
29220
|
-
sections && /* @__PURE__ */
|
|
29279
|
+
sections && /* @__PURE__ */ jsx232("div", { className: "df fdc g_8", children: sections.map((section, i) => /* @__PURE__ */ jsx232(FormSection, { ...section }, defaultTestId(section.title) || i)) })
|
|
29221
29280
|
] });
|
|
29222
|
-
const form = /* @__PURE__ */
|
|
29223
|
-
const body = showRail ? /* @__PURE__ */
|
|
29224
|
-
/* @__PURE__ */
|
|
29225
|
-
/* @__PURE__ */
|
|
29281
|
+
const form = /* @__PURE__ */ jsx232(CenteredLayout, { size: "sm", children: aiMode ? /* @__PURE__ */ jsx232(AiCard, { size: "lg", ...tid, children: content2 }) : content2 });
|
|
29282
|
+
const body = showRail ? /* @__PURE__ */ jsxs124("div", { className: "df w100 mb4", children: [
|
|
29283
|
+
/* @__PURE__ */ jsx232(JumpLinksRail, { links: jumpLinks, activeId, ...tid.jumpLinks }),
|
|
29284
|
+
/* @__PURE__ */ jsx232("div", { ...trussProps135({
|
|
29226
29285
|
flexGrow: "fg1",
|
|
29227
29286
|
marginRight: ["mr_var", {
|
|
29228
29287
|
"--marginRight": maybeCssVar66(__maybeInc32(jumpLinksRailReservation))
|
|
29229
29288
|
}]
|
|
29230
29289
|
}), ...tid.column, children: form })
|
|
29231
|
-
] }) : /* @__PURE__ */
|
|
29290
|
+
] }) : /* @__PURE__ */ jsx232("div", { className: "mb4", children: form });
|
|
29232
29291
|
if (!rightPane) return body;
|
|
29233
|
-
return /* @__PURE__ */
|
|
29292
|
+
return /* @__PURE__ */ jsx232(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: body });
|
|
29234
29293
|
}
|
|
29235
29294
|
|
|
29236
29295
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
@@ -29350,17 +29409,17 @@ function useTransitionAfterPaint(ref, transition) {
|
|
|
29350
29409
|
|
|
29351
29410
|
// src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
|
|
29352
29411
|
import { createContext as createContext18, useContext as useContext29 } from "react";
|
|
29353
|
-
import { jsx as
|
|
29412
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
29354
29413
|
var NavbarLayoutHeightContext = createContext18(0);
|
|
29355
29414
|
function NavbarLayoutHeightProvider({ value, children }) {
|
|
29356
|
-
return /* @__PURE__ */
|
|
29415
|
+
return /* @__PURE__ */ jsx233(NavbarLayoutHeightContext.Provider, { value, children });
|
|
29357
29416
|
}
|
|
29358
29417
|
function useNavbarLayoutHeight() {
|
|
29359
29418
|
return useContext29(NavbarLayoutHeightContext);
|
|
29360
29419
|
}
|
|
29361
29420
|
|
|
29362
29421
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
29363
|
-
import { jsx as
|
|
29422
|
+
import { jsx as jsx234, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
29364
29423
|
var __maybeInc33 = (inc) => {
|
|
29365
29424
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29366
29425
|
};
|
|
@@ -29397,20 +29456,20 @@ function NavbarLayout(props) {
|
|
|
29397
29456
|
const innerStyle = {
|
|
29398
29457
|
top: autoHideState === "hidden" ? `calc(${bannerTop} - ${navHeight}px)` : bannerTop
|
|
29399
29458
|
};
|
|
29400
|
-
const navbarEl = useMemo57(() => /* @__PURE__ */
|
|
29401
|
-
return /* @__PURE__ */
|
|
29459
|
+
const navbarEl = useMemo57(() => /* @__PURE__ */ jsx234(Navbar, { ...navbar }), [navbar]);
|
|
29460
|
+
return /* @__PURE__ */ jsx234(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx234(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ jsx234(MobileSubNavProvider, { children: /* @__PURE__ */ jsxs125("div", { ...mergeProps41(void 0, cssVars, {
|
|
29402
29461
|
display: "df",
|
|
29403
29462
|
flexDirection: "fdc",
|
|
29404
29463
|
width: "wfc",
|
|
29405
29464
|
minWidth: "mw100"
|
|
29406
29465
|
}), ...tid, children: [
|
|
29407
|
-
/* @__PURE__ */
|
|
29466
|
+
/* @__PURE__ */ jsx234("div", { ref: spacerRef, ...mergeProps41(void 0, {
|
|
29408
29467
|
height: navHeight
|
|
29409
29468
|
}, {
|
|
29410
29469
|
flexShrink: "fs0",
|
|
29411
29470
|
width: "w100"
|
|
29412
|
-
}), children: /* @__PURE__ */
|
|
29413
|
-
/* @__PURE__ */
|
|
29471
|
+
}), children: /* @__PURE__ */ jsx234("div", { ref: navMetricsRef, ...mergeProps41(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
29472
|
+
/* @__PURE__ */ jsx234("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
29414
29473
|
] }) }) }) });
|
|
29415
29474
|
}
|
|
29416
29475
|
|
|
@@ -29434,8 +29493,8 @@ function useDocumentTitle(...titleSegments) {
|
|
|
29434
29493
|
}
|
|
29435
29494
|
|
|
29436
29495
|
// src/components/Headers/BaseHeader.tsx
|
|
29437
|
-
import { trussProps as
|
|
29438
|
-
import { jsx as
|
|
29496
|
+
import { trussProps as trussProps136 } from "@homebound/truss/runtime";
|
|
29497
|
+
import { jsx as jsx235, jsxs as jsxs126 } from "react/jsx-runtime";
|
|
29439
29498
|
function BaseHeader(props) {
|
|
29440
29499
|
const {
|
|
29441
29500
|
title,
|
|
@@ -29447,7 +29506,7 @@ function BaseHeader(props) {
|
|
|
29447
29506
|
} = props;
|
|
29448
29507
|
const tid = useTestIds(otherProps, "header");
|
|
29449
29508
|
useDocumentTitle(title, documentTitleSuffix);
|
|
29450
|
-
return /* @__PURE__ */
|
|
29509
|
+
return /* @__PURE__ */ jsxs126("header", { ...tid, ...trussProps136({
|
|
29451
29510
|
display: "df",
|
|
29452
29511
|
flexDirection: "fdc",
|
|
29453
29512
|
paddingTop: "pt3",
|
|
@@ -29461,7 +29520,7 @@ function BaseHeader(props) {
|
|
|
29461
29520
|
"--backgroundColor": "var(--b-surface)"
|
|
29462
29521
|
}]
|
|
29463
29522
|
}), children: [
|
|
29464
|
-
/* @__PURE__ */
|
|
29523
|
+
/* @__PURE__ */ jsxs126("div", { ...trussProps136({
|
|
29465
29524
|
...{
|
|
29466
29525
|
display: "df",
|
|
29467
29526
|
justifyContent: "jcsb",
|
|
@@ -29475,9 +29534,9 @@ function BaseHeader(props) {
|
|
|
29475
29534
|
} : {}
|
|
29476
29535
|
}
|
|
29477
29536
|
}), children: [
|
|
29478
|
-
/* @__PURE__ */
|
|
29479
|
-
breadcrumbs && /* @__PURE__ */
|
|
29480
|
-
/* @__PURE__ */
|
|
29537
|
+
/* @__PURE__ */ jsxs126("div", { className: "mw0", children: [
|
|
29538
|
+
breadcrumbs && /* @__PURE__ */ jsx235(Breadcrumbs, { ...breadcrumbs }),
|
|
29539
|
+
/* @__PURE__ */ jsx235("h1", { ...tid.title, ...trussProps136({
|
|
29481
29540
|
fontWeight: "fw6",
|
|
29482
29541
|
fontSize: "fz_20px",
|
|
29483
29542
|
lineHeight: "lh_28px",
|
|
@@ -29486,15 +29545,15 @@ function BaseHeader(props) {
|
|
|
29486
29545
|
}]
|
|
29487
29546
|
}), children: title })
|
|
29488
29547
|
] }),
|
|
29489
|
-
/* @__PURE__ */
|
|
29548
|
+
/* @__PURE__ */ jsx235("div", { className: "fs0", children: rightSlot })
|
|
29490
29549
|
] }),
|
|
29491
29550
|
bottomSlot
|
|
29492
29551
|
] });
|
|
29493
29552
|
}
|
|
29494
29553
|
|
|
29495
29554
|
// src/components/Headers/PageHeader.tsx
|
|
29496
|
-
import { trussProps as
|
|
29497
|
-
import { Fragment as Fragment52, jsx as
|
|
29555
|
+
import { trussProps as trussProps137 } from "@homebound/truss/runtime";
|
|
29556
|
+
import { Fragment as Fragment52, jsx as jsx236, jsxs as jsxs127 } from "react/jsx-runtime";
|
|
29498
29557
|
function PageHeader2(props) {
|
|
29499
29558
|
const {
|
|
29500
29559
|
tabs,
|
|
@@ -29510,20 +29569,20 @@ function PageHeader2(props) {
|
|
|
29510
29569
|
bottomSlotActions,
|
|
29511
29570
|
rightSlotActions
|
|
29512
29571
|
} = splitHeaderActionsOnSm(actions, sm);
|
|
29513
|
-
return /* @__PURE__ */
|
|
29514
|
-
/* @__PURE__ */
|
|
29515
|
-
rightSlotActions.length > 0 && /* @__PURE__ */
|
|
29572
|
+
return /* @__PURE__ */ jsx236(BaseHeader, { ...otherProps, rightSlot: /* @__PURE__ */ jsxs127("div", { className: "df g_2 fs0", ...tid.actions, children: [
|
|
29573
|
+
/* @__PURE__ */ jsx236(AutoSaveIndicator, { hideOnIdle: true }),
|
|
29574
|
+
rightSlotActions.length > 0 && /* @__PURE__ */ jsx236(HeaderActions, { actions: rightSlotActions, collapseOnSm: true }),
|
|
29516
29575
|
rightSlot
|
|
29517
|
-
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */
|
|
29518
|
-
bottomSlotActions.length > 0 && /* @__PURE__ */
|
|
29576
|
+
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */ jsxs127(Fragment52, { children: [
|
|
29577
|
+
bottomSlotActions.length > 0 && /* @__PURE__ */ jsx236("div", { ...trussProps137({
|
|
29519
29578
|
...pageContentPaddingX,
|
|
29520
29579
|
...{
|
|
29521
29580
|
...!tabs ? {
|
|
29522
29581
|
marginBottom: "mb2"
|
|
29523
29582
|
} : {}
|
|
29524
29583
|
}
|
|
29525
|
-
}), ...tid.bottomSlot, children: /* @__PURE__ */
|
|
29526
|
-
tabs && /* @__PURE__ */
|
|
29584
|
+
}), ...tid.bottomSlot, children: /* @__PURE__ */ jsx236(HeaderActions, { actions: bottomSlotActions }) }),
|
|
29585
|
+
tabs && /* @__PURE__ */ jsx236("div", { ...trussProps137(pageContentPaddingX), children: /* @__PURE__ */ jsx236(Tabs, { ...tabs, ...tid.tabs }) })
|
|
29527
29586
|
] }) });
|
|
29528
29587
|
}
|
|
29529
29588
|
|
|
@@ -29534,7 +29593,7 @@ function useBannerAndNavbarHeight() {
|
|
|
29534
29593
|
|
|
29535
29594
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
29536
29595
|
import { mergeProps as mergeProps42, maybeCssVar as maybeCssVar68 } from "@homebound/truss/runtime";
|
|
29537
|
-
import { jsx as
|
|
29596
|
+
import { jsx as jsx237, jsxs as jsxs128 } from "react/jsx-runtime";
|
|
29538
29597
|
var __maybeInc34 = (inc) => {
|
|
29539
29598
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29540
29599
|
};
|
|
@@ -29577,19 +29636,19 @@ function PageHeaderLayout(props) {
|
|
|
29577
29636
|
const innerStyle = {
|
|
29578
29637
|
top: autoHideState === "hidden" ? `calc(${outerTop} - ${headerHeight}px)` : outerTop
|
|
29579
29638
|
};
|
|
29580
|
-
const pageHeaderEl = useMemo58(() => /* @__PURE__ */
|
|
29581
|
-
return /* @__PURE__ */
|
|
29639
|
+
const pageHeaderEl = useMemo58(() => /* @__PURE__ */ jsx237(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
29640
|
+
return /* @__PURE__ */ jsx237(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs128("div", { ...mergeProps42(void 0, cssVars, {
|
|
29582
29641
|
display: "df",
|
|
29583
29642
|
flexDirection: "fdc",
|
|
29584
29643
|
width: "w100"
|
|
29585
29644
|
}), ...tid, children: [
|
|
29586
|
-
/* @__PURE__ */
|
|
29645
|
+
/* @__PURE__ */ jsx237("div", { ref: spacerRef, ...mergeProps42(void 0, {
|
|
29587
29646
|
height: headerHeight
|
|
29588
29647
|
}, {
|
|
29589
29648
|
flexShrink: "fs0",
|
|
29590
29649
|
width: "w100"
|
|
29591
|
-
}), children: /* @__PURE__ */
|
|
29592
|
-
/* @__PURE__ */
|
|
29650
|
+
}), children: /* @__PURE__ */ jsx237("div", { ref: headerMetricsRef, ...mergeProps42(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
29651
|
+
/* @__PURE__ */ jsx237("div", { className: "df fdc fg1 mh0 w100 n_has_data_self_top_spaced_first_child_pt3", ...tid.body, children })
|
|
29593
29652
|
] }) });
|
|
29594
29653
|
}
|
|
29595
29654
|
|
|
@@ -29597,23 +29656,23 @@ function PageHeaderLayout(props) {
|
|
|
29597
29656
|
import { useLayoutEffect as useLayoutEffect18, useRef as useRef75 } from "react";
|
|
29598
29657
|
|
|
29599
29658
|
// src/components/Headers/WorkflowHeader.tsx
|
|
29600
|
-
import { jsx as
|
|
29659
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
29601
29660
|
function WorkflowHeader(props) {
|
|
29602
29661
|
const { stepperTabs, ...otherProps } = props;
|
|
29603
29662
|
const tid = useTestIds(otherProps, "header");
|
|
29604
|
-
return /* @__PURE__ */
|
|
29663
|
+
return /* @__PURE__ */ jsx238(
|
|
29605
29664
|
BaseHeader,
|
|
29606
29665
|
{
|
|
29607
29666
|
...otherProps,
|
|
29608
|
-
bottomSlot: stepperTabs ? /* @__PURE__ */
|
|
29667
|
+
bottomSlot: stepperTabs ? /* @__PURE__ */ jsx238(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) : void 0
|
|
29609
29668
|
}
|
|
29610
29669
|
);
|
|
29611
29670
|
}
|
|
29612
29671
|
|
|
29613
29672
|
// src/layouts/Workflow/RightPaneTriggers.tsx
|
|
29614
29673
|
import { useCallback as useCallback44 } from "react";
|
|
29615
|
-
import { trussProps as
|
|
29616
|
-
import { jsx as
|
|
29674
|
+
import { trussProps as trussProps138, maybeCssVar as maybeCssVar69 } from "@homebound/truss/runtime";
|
|
29675
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
29617
29676
|
var __maybeInc35 = (inc) => {
|
|
29618
29677
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29619
29678
|
};
|
|
@@ -29634,12 +29693,12 @@ function WorkflowPageRightPaneTriggers(props) {
|
|
|
29634
29693
|
const pageTriggerInsetPx = 24;
|
|
29635
29694
|
const onClick = useCallback44((trigger) => {
|
|
29636
29695
|
openRightPane({
|
|
29637
|
-
content: /* @__PURE__ */
|
|
29696
|
+
content: /* @__PURE__ */ jsx239(RightPanePanel, { title: trigger.label, children: trigger.content })
|
|
29638
29697
|
});
|
|
29639
29698
|
}, [openRightPane]);
|
|
29640
|
-
return /* @__PURE__ */
|
|
29699
|
+
return /* @__PURE__ */ jsx239("div", { ...tid, "aria-hidden": isRightPaneOpen, ...isRightPaneOpen ? {
|
|
29641
29700
|
inert: true
|
|
29642
|
-
} : {}, ...
|
|
29701
|
+
} : {}, ...trussProps138({
|
|
29643
29702
|
...{
|
|
29644
29703
|
display: "df",
|
|
29645
29704
|
alignItems: "aic",
|
|
@@ -29671,13 +29730,13 @@ function WorkflowPageRightPaneTriggers(props) {
|
|
|
29671
29730
|
} : {
|
|
29672
29731
|
transform: "tf_translateX_0"
|
|
29673
29732
|
})
|
|
29674
|
-
}), children: triggers.map((trigger) => /* @__PURE__ */
|
|
29733
|
+
}), children: triggers.map((trigger) => /* @__PURE__ */ jsx239(IconButton, { icon: trigger.icon, label: trigger.label, variant: "circle", compact: isMobile, onClick: () => onClick(trigger), ...tid[trigger.icon] }, trigger.label)) });
|
|
29675
29734
|
}
|
|
29676
29735
|
|
|
29677
29736
|
// src/layouts/Workflow/useUnsavedChangesGuard.tsx
|
|
29678
29737
|
import { useEffect as useEffect40, useRef as useRef74 } from "react";
|
|
29679
29738
|
import { useBlocker } from "react-router-dom";
|
|
29680
|
-
import { jsx as
|
|
29739
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
29681
29740
|
function useUnsavedChangesGuard(options) {
|
|
29682
29741
|
const { isDirty, allowNavigation, onCancel } = options;
|
|
29683
29742
|
const { openModal } = useModal();
|
|
@@ -29713,7 +29772,7 @@ function useUnsavedChangesGuard(options) {
|
|
|
29713
29772
|
}
|
|
29714
29773
|
openModal({
|
|
29715
29774
|
allowClosing: false,
|
|
29716
|
-
content: /* @__PURE__ */
|
|
29775
|
+
content: /* @__PURE__ */ jsx240(ConfirmCloseModal, { onClose: () => confirmCancel(e) })
|
|
29717
29776
|
});
|
|
29718
29777
|
};
|
|
29719
29778
|
const navigationBlocker = blocker.state === "blocked" ? { proceed: () => blocker.proceed?.(), cancelNavigation: () => blocker.reset?.() } : void 0;
|
|
@@ -29725,7 +29784,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
29725
29784
|
useEffect40(() => {
|
|
29726
29785
|
openModal({
|
|
29727
29786
|
allowClosing: false,
|
|
29728
|
-
content: /* @__PURE__ */
|
|
29787
|
+
content: /* @__PURE__ */ jsx240(ConfirmCloseModal, { title: "Leave page?", onClose: proceed, onContinue: cancelNavigation })
|
|
29729
29788
|
});
|
|
29730
29789
|
return () => closeModal();
|
|
29731
29790
|
}, []);
|
|
@@ -29733,7 +29792,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
29733
29792
|
}
|
|
29734
29793
|
|
|
29735
29794
|
// src/layouts/Workflow/WorkflowActions.tsx
|
|
29736
|
-
import { jsx as
|
|
29795
|
+
import { jsx as jsx241, jsxs as jsxs129 } from "react/jsx-runtime";
|
|
29737
29796
|
function WorkflowActions(props) {
|
|
29738
29797
|
const {
|
|
29739
29798
|
onCancel,
|
|
@@ -29751,12 +29810,12 @@ function WorkflowActions(props) {
|
|
|
29751
29810
|
sm: isMobile
|
|
29752
29811
|
} = useBreakpoint();
|
|
29753
29812
|
const primaryVariant = aiMode ? "ai" : "primary";
|
|
29754
|
-
return /* @__PURE__ */
|
|
29755
|
-
/* @__PURE__ */
|
|
29756
|
-
/* @__PURE__ */
|
|
29757
|
-
/* @__PURE__ */
|
|
29758
|
-
onSaveAndExit && /* @__PURE__ */
|
|
29759
|
-
isLastStep ? /* @__PURE__ */
|
|
29813
|
+
return /* @__PURE__ */ jsxs129("div", { className: "df aic jcsb sm_w100", children: [
|
|
29814
|
+
/* @__PURE__ */ jsx241("div", { className: "df aic", children: !isFirstStep && isMobile && onBack && /* @__PURE__ */ jsx241(IconButton, { icon: "arrowBack", label: "Back", onClick: onBack }) }),
|
|
29815
|
+
/* @__PURE__ */ jsxs129("div", { className: "df aic g_1", children: [
|
|
29816
|
+
/* @__PURE__ */ jsx241(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
|
|
29817
|
+
onSaveAndExit && /* @__PURE__ */ jsx241(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
|
|
29818
|
+
isLastStep ? /* @__PURE__ */ jsx241(Button, { label: completeLabel, variant: primaryVariant, onClick: onComplete, disabled: primaryDisabled }) : /* @__PURE__ */ jsx241(Button, { label: "Continue", variant: primaryVariant, onClick: async () => {
|
|
29760
29819
|
await onContinue?.();
|
|
29761
29820
|
}, disabled: primaryDisabled })
|
|
29762
29821
|
] })
|
|
@@ -29764,8 +29823,8 @@ function WorkflowActions(props) {
|
|
|
29764
29823
|
}
|
|
29765
29824
|
|
|
29766
29825
|
// src/layouts/Workflow/WorkflowPageLayout.tsx
|
|
29767
|
-
import { trussProps as
|
|
29768
|
-
import { jsx as
|
|
29826
|
+
import { trussProps as trussProps139, mergeProps as mergeProps43, maybeCssVar as maybeCssVar70 } from "@homebound/truss/runtime";
|
|
29827
|
+
import { jsx as jsx242, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
29769
29828
|
var __maybeInc36 = (inc) => {
|
|
29770
29829
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29771
29830
|
};
|
|
@@ -29796,9 +29855,9 @@ function WorkflowPageLayout(props) {
|
|
|
29796
29855
|
allowNavigation,
|
|
29797
29856
|
onCancel
|
|
29798
29857
|
});
|
|
29799
|
-
const actions = /* @__PURE__ */
|
|
29858
|
+
const actions = /* @__PURE__ */ jsx242(WorkflowActions, { ...actionProps, aiMode, onCancel: onCancelClick });
|
|
29800
29859
|
const triggers = rightPaneTriggers ?? [];
|
|
29801
|
-
const pageTriggers = triggers.length > 0 ? /* @__PURE__ */
|
|
29860
|
+
const pageTriggers = triggers.length > 0 ? /* @__PURE__ */ jsx242(WorkflowPageRightPaneTriggers, { triggers }) : void 0;
|
|
29802
29861
|
const headerMetricsRef = useRef75(null);
|
|
29803
29862
|
const headerHeight = useMeasuredHeight(headerMetricsRef, true);
|
|
29804
29863
|
const headerWidth = documentScrollChromeWidth();
|
|
@@ -29819,18 +29878,18 @@ function WorkflowPageLayout(props) {
|
|
|
29819
29878
|
}
|
|
29820
29879
|
};
|
|
29821
29880
|
}, [showFooter]);
|
|
29822
|
-
return /* @__PURE__ */
|
|
29823
|
-
/* @__PURE__ */
|
|
29881
|
+
return /* @__PURE__ */ jsxs130(DocumentScrollLayoutProvider, { children: [
|
|
29882
|
+
/* @__PURE__ */ jsxs130("div", { ...mergeProps43(void 0, cssVars, {
|
|
29824
29883
|
display: "df",
|
|
29825
29884
|
flexDirection: "fdc",
|
|
29826
29885
|
width: "w100"
|
|
29827
29886
|
}), ...tid, children: [
|
|
29828
|
-
/* @__PURE__ */
|
|
29887
|
+
/* @__PURE__ */ jsx242("div", { ...mergeProps43(void 0, {
|
|
29829
29888
|
height: headerHeight
|
|
29830
29889
|
}, {
|
|
29831
29890
|
flexShrink: "fs0",
|
|
29832
29891
|
width: "w100"
|
|
29833
|
-
}), children: /* @__PURE__ */
|
|
29892
|
+
}), children: /* @__PURE__ */ jsx242("div", { ref: headerMetricsRef, ...trussProps139({
|
|
29834
29893
|
position: "fixed",
|
|
29835
29894
|
left: "l_0",
|
|
29836
29895
|
width: ["w_var", {
|
|
@@ -29843,8 +29902,8 @@ function WorkflowPageLayout(props) {
|
|
|
29843
29902
|
"--top": maybeCssVar70(__maybeInc36(outerTop))
|
|
29844
29903
|
}],
|
|
29845
29904
|
transition: "transitionAll"
|
|
29846
|
-
}), ...tid.header, children: /* @__PURE__ */
|
|
29847
|
-
/* @__PURE__ */
|
|
29905
|
+
}), ...tid.header, children: /* @__PURE__ */ jsx242(WorkflowHeader, { title, documentTitleSuffix, breadcrumbs, rightSlot: isMobile ? pageTriggers : actions, stepperTabs }) }) }),
|
|
29906
|
+
/* @__PURE__ */ jsx242("div", { ...trussProps139({
|
|
29848
29907
|
...{
|
|
29849
29908
|
display: "df",
|
|
29850
29909
|
flexDirection: "fdc",
|
|
@@ -29859,15 +29918,15 @@ function WorkflowPageLayout(props) {
|
|
|
29859
29918
|
"--minHeight": maybeCssVar70(documentScrollBodyMinHeight())
|
|
29860
29919
|
}]
|
|
29861
29920
|
}
|
|
29862
|
-
}), ...tid.body, children: triggers.length > 0 ? /* @__PURE__ */
|
|
29921
|
+
}), ...tid.body, children: triggers.length > 0 ? /* @__PURE__ */ jsx242(DocumentScrollOverlayRightPaneLayout, { children }) : children }),
|
|
29863
29922
|
!isMobile && pageTriggers,
|
|
29864
|
-
showFooter && /* @__PURE__ */
|
|
29923
|
+
showFooter && /* @__PURE__ */ jsx242("div", { ...trussProps139({
|
|
29865
29924
|
flexShrink: "fs0",
|
|
29866
29925
|
width: "w100",
|
|
29867
29926
|
height: ["h_var", {
|
|
29868
29927
|
"--height": `${mobileFooterHeightPx}px`
|
|
29869
29928
|
}]
|
|
29870
|
-
}), children: /* @__PURE__ */
|
|
29929
|
+
}), children: /* @__PURE__ */ jsx242("div", { ...trussProps139({
|
|
29871
29930
|
...{
|
|
29872
29931
|
position: "fixed",
|
|
29873
29932
|
bottom: "bot_0",
|
|
@@ -29896,12 +29955,12 @@ function WorkflowPageLayout(props) {
|
|
|
29896
29955
|
...pageContentPaddingX
|
|
29897
29956
|
}), ...tid.footer, children: actions }) })
|
|
29898
29957
|
] }),
|
|
29899
|
-
navigationBlocker && /* @__PURE__ */
|
|
29958
|
+
navigationBlocker && /* @__PURE__ */ jsx242(UnsavedChangesNavigationModal, { ...navigationBlocker })
|
|
29900
29959
|
] });
|
|
29901
29960
|
}
|
|
29902
29961
|
|
|
29903
29962
|
// src/layouts/Workflow/FocusedFormLayout.tsx
|
|
29904
|
-
import { jsx as
|
|
29963
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
29905
29964
|
function FocusedFormLayout(props) {
|
|
29906
29965
|
const {
|
|
29907
29966
|
onCancel,
|
|
@@ -29917,7 +29976,7 @@ function FocusedFormLayout(props) {
|
|
|
29917
29976
|
...headerProps
|
|
29918
29977
|
} = props;
|
|
29919
29978
|
const tid = useTestIds(props, "focusedFormLayout");
|
|
29920
|
-
return /* @__PURE__ */
|
|
29979
|
+
return /* @__PURE__ */ jsx243(
|
|
29921
29980
|
WorkflowPageLayout,
|
|
29922
29981
|
{
|
|
29923
29982
|
...tid,
|
|
@@ -29938,7 +29997,7 @@ function FocusedFormLayout(props) {
|
|
|
29938
29997
|
|
|
29939
29998
|
// src/layouts/Workflow/StepperLayout.tsx
|
|
29940
29999
|
import { useState as useState64 } from "react";
|
|
29941
|
-
import { jsx as
|
|
30000
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
29942
30001
|
function StepperLayout(props) {
|
|
29943
30002
|
const {
|
|
29944
30003
|
steps,
|
|
@@ -29965,7 +30024,7 @@ function StepperLayout(props) {
|
|
|
29965
30024
|
closeRightPane();
|
|
29966
30025
|
setCurrentStep(value);
|
|
29967
30026
|
}
|
|
29968
|
-
return /* @__PURE__ */
|
|
30027
|
+
return /* @__PURE__ */ jsx244(
|
|
29969
30028
|
WorkflowPageLayout,
|
|
29970
30029
|
{
|
|
29971
30030
|
...tid,
|
|
@@ -30008,7 +30067,7 @@ function getInitialStep(steps, defaultStep) {
|
|
|
30008
30067
|
|
|
30009
30068
|
// src/forms/BoundChipSelectField.tsx
|
|
30010
30069
|
import { Observer as Observer19 } from "mobx-react";
|
|
30011
|
-
import { jsx as
|
|
30070
|
+
import { jsx as jsx245 } from "react/jsx-runtime";
|
|
30012
30071
|
function BoundChipSelectField(props) {
|
|
30013
30072
|
const {
|
|
30014
30073
|
field,
|
|
@@ -30024,7 +30083,7 @@ function BoundChipSelectField(props) {
|
|
|
30024
30083
|
...others
|
|
30025
30084
|
} = props;
|
|
30026
30085
|
const testId = useTestIds(props, field.key);
|
|
30027
|
-
return /* @__PURE__ */
|
|
30086
|
+
return /* @__PURE__ */ jsx245(Observer19, { children: () => /* @__PURE__ */ jsx245(
|
|
30028
30087
|
ChipSelectField,
|
|
30029
30088
|
{
|
|
30030
30089
|
label,
|
|
@@ -30054,12 +30113,12 @@ function BoundChipSelectField(props) {
|
|
|
30054
30113
|
}
|
|
30055
30114
|
|
|
30056
30115
|
// src/forms/BoundSelectAndTextField.tsx
|
|
30057
|
-
import { jsx as
|
|
30116
|
+
import { jsx as jsx246, jsxs as jsxs131 } from "react/jsx-runtime";
|
|
30058
30117
|
function BoundSelectAndTextField(props) {
|
|
30059
30118
|
const { selectFieldProps, textFieldProps, compact = true } = props;
|
|
30060
30119
|
const tid = useTestIds(props);
|
|
30061
|
-
return /* @__PURE__ */
|
|
30062
|
-
/* @__PURE__ */
|
|
30120
|
+
return /* @__PURE__ */ jsxs131(CompoundField, { children: [
|
|
30121
|
+
/* @__PURE__ */ jsx246(
|
|
30063
30122
|
BoundSelectField,
|
|
30064
30123
|
{
|
|
30065
30124
|
...tid[defaultTestId(selectFieldProps.label ?? selectFieldProps.field.key)],
|
|
@@ -30068,7 +30127,7 @@ function BoundSelectAndTextField(props) {
|
|
|
30068
30127
|
compact
|
|
30069
30128
|
}
|
|
30070
30129
|
),
|
|
30071
|
-
/* @__PURE__ */
|
|
30130
|
+
/* @__PURE__ */ jsx246(
|
|
30072
30131
|
BoundTextField,
|
|
30073
30132
|
{
|
|
30074
30133
|
...tid[defaultTestId(textFieldProps.label ?? textFieldProps.field.key)],
|
|
@@ -30080,8 +30139,8 @@ function BoundSelectAndTextField(props) {
|
|
|
30080
30139
|
}
|
|
30081
30140
|
|
|
30082
30141
|
// src/forms/FormHeading.tsx
|
|
30083
|
-
import { trussProps as
|
|
30084
|
-
import { jsx as
|
|
30142
|
+
import { trussProps as trussProps140 } from "@homebound/truss/runtime";
|
|
30143
|
+
import { jsx as jsx247 } from "react/jsx-runtime";
|
|
30085
30144
|
function FormHeading(props) {
|
|
30086
30145
|
const {
|
|
30087
30146
|
title,
|
|
@@ -30091,7 +30150,7 @@ function FormHeading(props) {
|
|
|
30091
30150
|
} = props;
|
|
30092
30151
|
return (
|
|
30093
30152
|
// Add space before the heading, but only if it's not first.
|
|
30094
|
-
/* @__PURE__ */
|
|
30153
|
+
/* @__PURE__ */ jsx247("h3", { ...trussProps140({
|
|
30095
30154
|
...{
|
|
30096
30155
|
fontWeight: "fw4",
|
|
30097
30156
|
fontSize: "fz_16px",
|
|
@@ -30108,8 +30167,8 @@ FormHeading.isFormHeading = true;
|
|
|
30108
30167
|
|
|
30109
30168
|
// src/forms/StaticField.tsx
|
|
30110
30169
|
import { useId as useId3 } from "@react-aria/utils";
|
|
30111
|
-
import { trussProps as
|
|
30112
|
-
import { jsx as
|
|
30170
|
+
import { trussProps as trussProps141 } from "@homebound/truss/runtime";
|
|
30171
|
+
import { jsx as jsx248, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
30113
30172
|
function StaticField(props) {
|
|
30114
30173
|
const {
|
|
30115
30174
|
fieldProps
|
|
@@ -30122,14 +30181,14 @@ function StaticField(props) {
|
|
|
30122
30181
|
} = props;
|
|
30123
30182
|
const tid = useTestIds(props, typeof label === "string" ? defaultTestId(label) : "staticField");
|
|
30124
30183
|
const id = useId3();
|
|
30125
|
-
return /* @__PURE__ */
|
|
30184
|
+
return /* @__PURE__ */ jsxs132("div", { ...trussProps141({
|
|
30126
30185
|
...labelStyle === "left" ? {
|
|
30127
30186
|
display: "df",
|
|
30128
30187
|
justifyContent: "jcsb",
|
|
30129
30188
|
maxWidth: "maxw100"
|
|
30130
30189
|
} : {}
|
|
30131
30190
|
}), ...tid.container, children: [
|
|
30132
|
-
/* @__PURE__ */
|
|
30191
|
+
/* @__PURE__ */ jsx248("label", { ...trussProps141({
|
|
30133
30192
|
display: "db",
|
|
30134
30193
|
fontWeight: "fw4",
|
|
30135
30194
|
fontSize: "fz_14px",
|
|
@@ -30139,7 +30198,7 @@ function StaticField(props) {
|
|
|
30139
30198
|
}],
|
|
30140
30199
|
marginBottom: "mb_4px"
|
|
30141
30200
|
}), htmlFor: id, ...tid.label, children: label }),
|
|
30142
|
-
/* @__PURE__ */
|
|
30201
|
+
/* @__PURE__ */ jsx248("div", { id, ...trussProps141({
|
|
30143
30202
|
fontWeight: "fw4",
|
|
30144
30203
|
fontSize: "fz_14px",
|
|
30145
30204
|
lineHeight: "lh_20px",
|
|
@@ -30170,7 +30229,7 @@ function useFilter4({ filterDefs }) {
|
|
|
30170
30229
|
import { useCallback as useCallback45, useRef as useRef76 } from "react";
|
|
30171
30230
|
import { useComboBox as useComboBox3, useOverlayPosition as useOverlayPosition6 } from "react-aria";
|
|
30172
30231
|
import { Item as Item5, useComboBoxState as useComboBoxState3 } from "react-stately";
|
|
30173
|
-
import { Fragment as Fragment53, jsx as
|
|
30232
|
+
import { Fragment as Fragment53, jsx as jsx249, jsxs as jsxs133 } from "react/jsx-runtime";
|
|
30174
30233
|
function Autocomplete(props) {
|
|
30175
30234
|
const {
|
|
30176
30235
|
onSelect,
|
|
@@ -30188,7 +30247,7 @@ function Autocomplete(props) {
|
|
|
30188
30247
|
const { effectiveValue, proposalProps } = useAiProposal(value, proposedValue);
|
|
30189
30248
|
const disabledOptionsWithReasons = Object.fromEntries(disabledOptions?.map(disabledOptionToKeyedTuple) ?? []);
|
|
30190
30249
|
const comboBoxChildren = useCallback45(
|
|
30191
|
-
(item) => /* @__PURE__ */
|
|
30250
|
+
(item) => /* @__PURE__ */ jsx249(Item5, { textValue: getOptionLabel(item), children: getOptionMenuLabel ? getOptionMenuLabel(item) : getOptionLabel(item) }, getOptionValue(item)),
|
|
30192
30251
|
[getOptionValue, getOptionLabel, getOptionMenuLabel]
|
|
30193
30252
|
);
|
|
30194
30253
|
const comboBoxProps = {
|
|
@@ -30241,8 +30300,8 @@ function Autocomplete(props) {
|
|
|
30241
30300
|
// Ensures the menu never gets too small.
|
|
30242
30301
|
minWidth: 200
|
|
30243
30302
|
};
|
|
30244
|
-
return /* @__PURE__ */
|
|
30245
|
-
/* @__PURE__ */
|
|
30303
|
+
return /* @__PURE__ */ jsxs133(Fragment53, { children: [
|
|
30304
|
+
/* @__PURE__ */ jsx249(
|
|
30246
30305
|
TextFieldBase,
|
|
30247
30306
|
{
|
|
30248
30307
|
inputRef,
|
|
@@ -30252,11 +30311,11 @@ function Autocomplete(props) {
|
|
|
30252
30311
|
onChange: onInputChange,
|
|
30253
30312
|
...proposalProps,
|
|
30254
30313
|
clearable: true,
|
|
30255
|
-
startAdornment: "startAdornment" in props ? props.startAdornment : /* @__PURE__ */
|
|
30314
|
+
startAdornment: "startAdornment" in props ? props.startAdornment : /* @__PURE__ */ jsx249(Icon, { icon: "search" }),
|
|
30256
30315
|
...others
|
|
30257
30316
|
}
|
|
30258
30317
|
),
|
|
30259
|
-
state.isOpen && /* @__PURE__ */
|
|
30318
|
+
state.isOpen && /* @__PURE__ */ jsx249(
|
|
30260
30319
|
Popover,
|
|
30261
30320
|
{
|
|
30262
30321
|
triggerRef: inputRef,
|
|
@@ -30265,7 +30324,7 @@ function Autocomplete(props) {
|
|
|
30265
30324
|
onClose: () => state.close(),
|
|
30266
30325
|
isOpen: state.isOpen,
|
|
30267
30326
|
minWidth: 200,
|
|
30268
|
-
children: /* @__PURE__ */
|
|
30327
|
+
children: /* @__PURE__ */ jsx249(
|
|
30269
30328
|
ListBox,
|
|
30270
30329
|
{
|
|
30271
30330
|
...listBoxProps,
|
|
@@ -30286,8 +30345,8 @@ function Autocomplete(props) {
|
|
|
30286
30345
|
import { useRef as useRef77, useState as useState66 } from "react";
|
|
30287
30346
|
import { useFocusRing as useFocusRing21, useHover as useHover24, usePress as usePress2, useSwitch as useSwitch2, VisuallyHidden as VisuallyHidden10 } from "react-aria";
|
|
30288
30347
|
import { useToggleState as useToggleState2 } from "react-stately";
|
|
30289
|
-
import { trussProps as
|
|
30290
|
-
import { jsx as
|
|
30348
|
+
import { trussProps as trussProps142 } from "@homebound/truss/runtime";
|
|
30349
|
+
import { jsx as jsx250, jsxs as jsxs134 } from "react/jsx-runtime";
|
|
30291
30350
|
function ToggleButton(props) {
|
|
30292
30351
|
const {
|
|
30293
30352
|
selected: isSelected = false,
|
|
@@ -30351,7 +30410,7 @@ function ToggleButton(props) {
|
|
|
30351
30410
|
...focusProps,
|
|
30352
30411
|
...hoverProps,
|
|
30353
30412
|
...pressProps,
|
|
30354
|
-
...
|
|
30413
|
+
...trussProps142({
|
|
30355
30414
|
// Gray500 off-state has no semantic match — keep palette (OnSurfaceMuted is Gray700).
|
|
30356
30415
|
...{
|
|
30357
30416
|
borderRadius: "br4",
|
|
@@ -30391,10 +30450,10 @@ function ToggleButton(props) {
|
|
|
30391
30450
|
return maybeTooltip({
|
|
30392
30451
|
title: tooltip,
|
|
30393
30452
|
placement: "top",
|
|
30394
|
-
children: /* @__PURE__ */
|
|
30395
|
-
icon && /* @__PURE__ */
|
|
30453
|
+
children: /* @__PURE__ */ jsxs134("label", { ...labelAttrs, children: [
|
|
30454
|
+
icon && /* @__PURE__ */ jsx250(Icon, { icon }),
|
|
30396
30455
|
label,
|
|
30397
|
-
/* @__PURE__ */
|
|
30456
|
+
/* @__PURE__ */ jsx250(VisuallyHidden10, { children: /* @__PURE__ */ jsx250("input", { ref, ...inputProps, ...tid.value }) })
|
|
30398
30457
|
] })
|
|
30399
30458
|
});
|
|
30400
30459
|
}
|
|
@@ -30489,6 +30548,7 @@ export {
|
|
|
30489
30548
|
DnDGridItemHandle,
|
|
30490
30549
|
DocumentScrollOverlayRightPaneLayout,
|
|
30491
30550
|
DocumentTitleProvider,
|
|
30551
|
+
DocumentUploadIllustration,
|
|
30492
30552
|
EXPANDABLE_HEADER,
|
|
30493
30553
|
EditColumnsButton,
|
|
30494
30554
|
EnvironmentBanner,
|