@homebound/beam 4.14.7 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +206 -170
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +178 -143
- package/dist/index.js.map +1 -1
- package/dist/truss.css +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13609,12 +13609,14 @@ import { trussProps as trussProps32 } from "@homebound/truss/runtime";
|
|
|
13609
13609
|
import { jsx as jsx51, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
13610
13610
|
function GridTableEmptyState(props) {
|
|
13611
13611
|
const {
|
|
13612
|
+
illustration,
|
|
13612
13613
|
title = "No results found",
|
|
13613
13614
|
description,
|
|
13614
13615
|
actions
|
|
13615
13616
|
} = props;
|
|
13616
13617
|
const tid = useTestIds(props, "gridTableEmptyState");
|
|
13617
13618
|
return /* @__PURE__ */ jsxs32("div", { className: "df fdc aic pt_12 pb_12 g_2", ...tid, children: [
|
|
13619
|
+
illustration && /* @__PURE__ */ jsx51("div", { ...tid.illustration, children: illustration }),
|
|
13618
13620
|
/* @__PURE__ */ jsx51("div", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
|
|
13619
13621
|
description && /* @__PURE__ */ jsx51("div", { ...trussProps32({
|
|
13620
13622
|
fontWeight: "fw4",
|
|
@@ -24964,6 +24966,7 @@ function composeEmptyState(tableProps, layoutState, layoutEmptyFallback, clearFi
|
|
|
24964
24966
|
const filteringActive = layoutState?.filteringActive ?? false;
|
|
24965
24967
|
const filterEmptyDescription = "Try adjusting your search or filters.";
|
|
24966
24968
|
return {
|
|
24969
|
+
illustration: tableEmptyState?.illustration,
|
|
24967
24970
|
title: tableEmptyState?.title ?? tableEmptyFallback ?? layoutEmptyFallback,
|
|
24968
24971
|
description: tableEmptyState?.description ?? (filteringActive ? filterEmptyDescription : void 0),
|
|
24969
24972
|
actions: tableEmptyState?.actions ?? (filteringActive && layoutState ? /* @__PURE__ */ jsx178(Button, { label: "Clear Filters", variant: "tertiary", onClick: clearFilters, "data-testid": "clearFilters" }) : void 0)
|
|
@@ -28516,9 +28519,10 @@ function TabContent(props) {
|
|
|
28516
28519
|
...tid.panel,
|
|
28517
28520
|
...selfTopSpaced,
|
|
28518
28521
|
...trussProps128({
|
|
28522
|
+
// Top padding, unless the first child pads its own top (e.g. sticky table actions).
|
|
28519
28523
|
...{
|
|
28520
28524
|
...!omitTopSpacing ? {
|
|
28521
|
-
paddingTop: "
|
|
28525
|
+
paddingTop: "n_has_data_self_top_spaced_first_child_pt3"
|
|
28522
28526
|
} : {}
|
|
28523
28527
|
},
|
|
28524
28528
|
...contentXss
|
|
@@ -28786,16 +28790,46 @@ function useToast() {
|
|
|
28786
28790
|
return { showToast, clear };
|
|
28787
28791
|
}
|
|
28788
28792
|
|
|
28789
|
-
// src/
|
|
28790
|
-
import { trussProps as trussProps129
|
|
28793
|
+
// src/illustrations/DocumentUploadIllustration.tsx
|
|
28794
|
+
import { trussProps as trussProps129 } from "@homebound/truss/runtime";
|
|
28791
28795
|
import { jsx as jsx225, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
28796
|
+
function DocumentUploadIllustration(props) {
|
|
28797
|
+
const {
|
|
28798
|
+
width: width2 = 338
|
|
28799
|
+
} = props;
|
|
28800
|
+
const blob = "rgba(247, 245, 245, 1)" /* Gray100 */;
|
|
28801
|
+
const line = "rgba(141, 141, 141, 1)" /* Gray600 */;
|
|
28802
|
+
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({
|
|
28803
|
+
width: ["w_var", {
|
|
28804
|
+
"--width": `${width2}px`
|
|
28805
|
+
}],
|
|
28806
|
+
maxWidth: "maxw100",
|
|
28807
|
+
height: "ha"
|
|
28808
|
+
}), children: [
|
|
28809
|
+
/* @__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 }),
|
|
28810
|
+
/* @__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 */ }),
|
|
28811
|
+
/* @__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 }),
|
|
28812
|
+
/* @__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 }),
|
|
28813
|
+
/* @__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 */ }),
|
|
28814
|
+
/* @__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 }),
|
|
28815
|
+
/* @__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 }),
|
|
28816
|
+
/* @__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 }),
|
|
28817
|
+
/* @__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 }),
|
|
28818
|
+
/* @__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 }),
|
|
28819
|
+
/* @__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 })
|
|
28820
|
+
] });
|
|
28821
|
+
}
|
|
28822
|
+
|
|
28823
|
+
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
28824
|
+
import { trussProps as trussProps130, mergeProps as mergeProps38, maybeCssVar as maybeCssVar62 } from "@homebound/truss/runtime";
|
|
28825
|
+
import { jsx as jsx226, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
28792
28826
|
var __maybeInc29 = (inc) => {
|
|
28793
28827
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
28794
28828
|
};
|
|
28795
28829
|
function SideNavLayout(props) {
|
|
28796
28830
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
28797
|
-
if (hasProvider) return /* @__PURE__ */
|
|
28798
|
-
return /* @__PURE__ */
|
|
28831
|
+
if (hasProvider) return /* @__PURE__ */ jsx226(SideNavLayoutContent, { ...props });
|
|
28832
|
+
return /* @__PURE__ */ jsx226(SideNavLayoutProvider, { children: /* @__PURE__ */ jsx226(SideNavLayoutContent, { ...props }) });
|
|
28799
28833
|
}
|
|
28800
28834
|
function SideNavLayoutContent(props) {
|
|
28801
28835
|
const {
|
|
@@ -28818,7 +28852,7 @@ function SideNavLayoutContent(props) {
|
|
|
28818
28852
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
28819
28853
|
const navTop = bannerAndNavbarChromeTop();
|
|
28820
28854
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
28821
|
-
const rail = showRail && /* @__PURE__ */
|
|
28855
|
+
const rail = showRail && /* @__PURE__ */ jsxs120("div", { ...trussProps130({
|
|
28822
28856
|
...{
|
|
28823
28857
|
display: "df",
|
|
28824
28858
|
flexDirection: "fdc",
|
|
@@ -28875,18 +28909,18 @@ function SideNavLayoutContent(props) {
|
|
|
28875
28909
|
}
|
|
28876
28910
|
}
|
|
28877
28911
|
}), ...tid.sideNav, children: [
|
|
28878
|
-
showCollapseToggle && /* @__PURE__ */
|
|
28879
|
-
/* @__PURE__ */
|
|
28912
|
+
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 }) }),
|
|
28913
|
+
/* @__PURE__ */ jsx226("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ jsx226(SideNav, { ...sideNav }) })
|
|
28880
28914
|
] });
|
|
28881
|
-
return /* @__PURE__ */
|
|
28915
|
+
return /* @__PURE__ */ jsx226(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs120("div", { ...mergeProps38(void 0, {
|
|
28882
28916
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
28883
28917
|
}, {
|
|
28884
28918
|
display: "df",
|
|
28885
28919
|
flexDirection: "fdr",
|
|
28886
28920
|
width: "w100"
|
|
28887
28921
|
}), ...tid, children: [
|
|
28888
|
-
contrastRail ? /* @__PURE__ */
|
|
28889
|
-
/* @__PURE__ */
|
|
28922
|
+
contrastRail ? /* @__PURE__ */ jsx226(ContrastScope, { children: rail }) : rail,
|
|
28923
|
+
/* @__PURE__ */ jsx226("div", { ...trussProps130({
|
|
28890
28924
|
display: "df",
|
|
28891
28925
|
flexDirection: "fdc",
|
|
28892
28926
|
flexGrow: "fg1",
|
|
@@ -28903,7 +28937,7 @@ function SideNavLayoutContent(props) {
|
|
|
28903
28937
|
|
|
28904
28938
|
// src/layouts/CenteredLayout/CenteredLayout.tsx
|
|
28905
28939
|
import { mergeProps as mergeProps39 } from "@homebound/truss/runtime";
|
|
28906
|
-
import { jsx as
|
|
28940
|
+
import { jsx as jsx227 } from "react/jsx-runtime";
|
|
28907
28941
|
function CenteredLayout(props) {
|
|
28908
28942
|
const {
|
|
28909
28943
|
size,
|
|
@@ -28915,7 +28949,7 @@ function CenteredLayout(props) {
|
|
|
28915
28949
|
mdAndUp
|
|
28916
28950
|
} = useBreakpoint();
|
|
28917
28951
|
const rightPane = resolveWithRightPaneOptions(withRightPane);
|
|
28918
|
-
const shell = /* @__PURE__ */
|
|
28952
|
+
const shell = /* @__PURE__ */ jsx227(ContentInsetProvider, { children: /* @__PURE__ */ jsx227("div", { ...mergeProps39(void 0, {
|
|
28919
28953
|
// layoutContainer descendants (e.g. ContentHeader) read this to inset sticky horizontal chrome within the shell padding.
|
|
28920
28954
|
[beamLayoutContentPaddingXVar]: mdAndUp ? pageContentPaddingXValue : smPageContentPaddingXValue,
|
|
28921
28955
|
// Floor while an ancestor overlay pane is open (`0px` when closed). `md+` only — phones must not get a dummy scrollbar.
|
|
@@ -28934,7 +28968,7 @@ function CenteredLayout(props) {
|
|
|
28934
28968
|
...pageContentPaddingX
|
|
28935
28969
|
}), ...tid, children }) });
|
|
28936
28970
|
if (!rightPane) return shell;
|
|
28937
|
-
return /* @__PURE__ */
|
|
28971
|
+
return /* @__PURE__ */ jsx227(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: shell });
|
|
28938
28972
|
}
|
|
28939
28973
|
var centeredContentMaxPx = {
|
|
28940
28974
|
sm: 720,
|
|
@@ -28947,8 +28981,8 @@ var centeredShellMaxPx = {
|
|
|
28947
28981
|
};
|
|
28948
28982
|
|
|
28949
28983
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
28950
|
-
import { trussProps as
|
|
28951
|
-
import { jsx as
|
|
28984
|
+
import { trussProps as trussProps131, mergeProps as mergeProps40, maybeCssVar as maybeCssVar63 } from "@homebound/truss/runtime";
|
|
28985
|
+
import { jsx as jsx228, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
28952
28986
|
var __maybeInc30 = (inc) => {
|
|
28953
28987
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
28954
28988
|
};
|
|
@@ -28964,18 +28998,18 @@ function EnvironmentBannerLayout(props) {
|
|
|
28964
28998
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
28965
28999
|
};
|
|
28966
29000
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
28967
|
-
return /* @__PURE__ */
|
|
29001
|
+
return /* @__PURE__ */ jsx228(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx228(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ jsxs121("div", { ...mergeProps40(void 0, style, {
|
|
28968
29002
|
display: "df",
|
|
28969
29003
|
flexDirection: "fdc",
|
|
28970
29004
|
width: "wfc",
|
|
28971
29005
|
minWidth: "mw100"
|
|
28972
29006
|
}), ...tid, children: [
|
|
28973
|
-
showBanner && environmentBanner && /* @__PURE__ */
|
|
29007
|
+
showBanner && environmentBanner && /* @__PURE__ */ jsx228("div", { ...mergeProps40(void 0, {
|
|
28974
29008
|
height: environmentBannerSizePx
|
|
28975
29009
|
}, {
|
|
28976
29010
|
flexShrink: "fs0",
|
|
28977
29011
|
width: "w100"
|
|
28978
|
-
}), children: /* @__PURE__ */
|
|
29012
|
+
}), children: /* @__PURE__ */ jsx228("div", { ...trussProps131({
|
|
28979
29013
|
position: "fixed",
|
|
28980
29014
|
top: "top0",
|
|
28981
29015
|
left: "l_0",
|
|
@@ -28985,21 +29019,21 @@ function EnvironmentBannerLayout(props) {
|
|
|
28985
29019
|
width: ["w_var", {
|
|
28986
29020
|
"--width": maybeCssVar63(__maybeInc30(innerWidth))
|
|
28987
29021
|
}]
|
|
28988
|
-
}), ...tid.bannerSticky, children: /* @__PURE__ */
|
|
29022
|
+
}), ...tid.bannerSticky, children: /* @__PURE__ */ jsx228(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
28989
29023
|
children
|
|
28990
29024
|
] }) }) });
|
|
28991
29025
|
}
|
|
28992
29026
|
|
|
28993
29027
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
28994
|
-
import { trussProps as
|
|
29028
|
+
import { trussProps as trussProps135, maybeCssVar as maybeCssVar66 } from "@homebound/truss/runtime";
|
|
28995
29029
|
|
|
28996
29030
|
// src/forms/FormSection/FormSection.tsx
|
|
28997
|
-
import { trussProps as
|
|
29031
|
+
import { trussProps as trussProps133, maybeCssVar as maybeCssVar64 } from "@homebound/truss/runtime";
|
|
28998
29032
|
|
|
28999
29033
|
// src/forms/FormSection/FormSectionChild.tsx
|
|
29000
29034
|
import { useRef as useRef70 } from "react";
|
|
29001
|
-
import { trussProps as
|
|
29002
|
-
import { jsx as
|
|
29035
|
+
import { trussProps as trussProps132 } from "@homebound/truss/runtime";
|
|
29036
|
+
import { jsx as jsx229, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
29003
29037
|
function FormSectionChild(props) {
|
|
29004
29038
|
const {
|
|
29005
29039
|
title,
|
|
@@ -29018,10 +29052,10 @@ function FormSectionChild(props) {
|
|
|
29018
29052
|
id: props.id ?? title,
|
|
29019
29053
|
itemRef
|
|
29020
29054
|
});
|
|
29021
|
-
return /* @__PURE__ */
|
|
29055
|
+
return /* @__PURE__ */ jsxs122("div", { ...isDraggable ? {
|
|
29022
29056
|
...dragItemProps,
|
|
29023
29057
|
ref: itemRef
|
|
29024
|
-
} : {}, ...
|
|
29058
|
+
} : {}, ...trussProps132({
|
|
29025
29059
|
display: "df",
|
|
29026
29060
|
flexDirection: "fdc",
|
|
29027
29061
|
gap: "g_2",
|
|
@@ -29037,13 +29071,13 @@ function FormSectionChild(props) {
|
|
|
29037
29071
|
borderStyle: "lot_bsn",
|
|
29038
29072
|
borderWidth: "lot_bw_0"
|
|
29039
29073
|
}), ...tid, children: [
|
|
29040
|
-
/* @__PURE__ */
|
|
29074
|
+
/* @__PURE__ */ jsx229(ContentHeader, { ...tid.header, title, description, actions, level: 4, startAdornment: isDraggable ? /* @__PURE__ */ jsx229(DnDGridItemHandle, { dragHandleProps, icon: "drag", compact: true }) : void 0 }),
|
|
29041
29075
|
fields
|
|
29042
29076
|
] });
|
|
29043
29077
|
}
|
|
29044
29078
|
|
|
29045
29079
|
// src/forms/FormSection/FormSection.tsx
|
|
29046
|
-
import { jsx as
|
|
29080
|
+
import { jsx as jsx230, jsxs as jsxs123 } from "react/jsx-runtime";
|
|
29047
29081
|
function FormSection(props) {
|
|
29048
29082
|
const {
|
|
29049
29083
|
title,
|
|
@@ -29053,7 +29087,7 @@ function FormSection(props) {
|
|
|
29053
29087
|
childSections
|
|
29054
29088
|
} = props;
|
|
29055
29089
|
const tid = useTestIds(props, "formSection");
|
|
29056
|
-
return /* @__PURE__ */
|
|
29090
|
+
return /* @__PURE__ */ jsxs123("div", { id: defaultTestId(title), ...trussProps133({
|
|
29057
29091
|
display: "df",
|
|
29058
29092
|
flexDirection: "fdc",
|
|
29059
29093
|
gap: "g_2",
|
|
@@ -29061,9 +29095,9 @@ function FormSection(props) {
|
|
|
29061
29095
|
"--scrollMarginTop": maybeCssVar64(stickyNavAndHeaderOffset())
|
|
29062
29096
|
}]
|
|
29063
29097
|
}), ...tid.section, children: [
|
|
29064
|
-
/* @__PURE__ */
|
|
29098
|
+
/* @__PURE__ */ jsx230(ContentHeader, { ...tid, title, description, actions, level: 3 }),
|
|
29065
29099
|
fields,
|
|
29066
|
-
childSections && (isReorderable(childSections) ? /* @__PURE__ */
|
|
29100
|
+
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)) }))
|
|
29067
29101
|
] });
|
|
29068
29102
|
}
|
|
29069
29103
|
function isReorderable(childSections) {
|
|
@@ -29086,18 +29120,18 @@ function DraggableChildren(props) {
|
|
|
29086
29120
|
}
|
|
29087
29121
|
});
|
|
29088
29122
|
};
|
|
29089
|
-
return /* @__PURE__ */
|
|
29123
|
+
return /* @__PURE__ */ jsx230(DnDGrid, { onReorder: handleReorder, lockAxis: "y", gridStyles: {
|
|
29090
29124
|
gridTemplateColumns: "gtc_minmax_0_1fr",
|
|
29091
29125
|
gap: "g_3"
|
|
29092
|
-
}, children: sorted.map((child) => /* @__PURE__ */
|
|
29126
|
+
}, children: sorted.map((child) => /* @__PURE__ */ jsx230(FormSectionChild, { ...child, ...tid }, child.id)) });
|
|
29093
29127
|
}
|
|
29094
29128
|
function sortByOrderField(childSections) {
|
|
29095
29129
|
return [...childSections].sort((a, b) => (a.orderField.value ?? 0) - (b.orderField.value ?? 0));
|
|
29096
29130
|
}
|
|
29097
29131
|
|
|
29098
29132
|
// src/layouts/FormSectionLayout/JumpLinksRail.tsx
|
|
29099
|
-
import { trussProps as
|
|
29100
|
-
import { jsx as
|
|
29133
|
+
import { trussProps as trussProps134, maybeCssVar as maybeCssVar65 } from "@homebound/truss/runtime";
|
|
29134
|
+
import { jsx as jsx231 } from "react/jsx-runtime";
|
|
29101
29135
|
var __maybeInc31 = (inc) => {
|
|
29102
29136
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29103
29137
|
};
|
|
@@ -29107,7 +29141,7 @@ function JumpLinksRail(props) {
|
|
|
29107
29141
|
activeId
|
|
29108
29142
|
} = props;
|
|
29109
29143
|
const tid = useTestIds(props, "jumpLinks");
|
|
29110
|
-
return /* @__PURE__ */
|
|
29144
|
+
return /* @__PURE__ */ jsx231("nav", { ...trussProps134({
|
|
29111
29145
|
display: "df",
|
|
29112
29146
|
flexDirection: "fdc",
|
|
29113
29147
|
flexShrink: "fs0",
|
|
@@ -29119,7 +29153,7 @@ function JumpLinksRail(props) {
|
|
|
29119
29153
|
top: ["top_var", {
|
|
29120
29154
|
"--top": maybeCssVar65(__maybeInc31(stickyNavAndHeaderOffset()))
|
|
29121
29155
|
}]
|
|
29122
|
-
}), ...tid, children: links.map((link) => /* @__PURE__ */
|
|
29156
|
+
}), ...tid, children: links.map((link) => /* @__PURE__ */ jsx231(JumpLink, { label: link.label, href: `#${link.id}`, active: link.id === activeId, ...tid.link }, link.id)) });
|
|
29123
29157
|
}
|
|
29124
29158
|
var jumpLinksRailWidthPx = 192;
|
|
29125
29159
|
var railAndShellPx = centeredShellMaxPx.sm + jumpLinksRailWidthPx;
|
|
@@ -29155,7 +29189,7 @@ function useActiveJumpLink(sectionIds) {
|
|
|
29155
29189
|
}
|
|
29156
29190
|
|
|
29157
29191
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
29158
|
-
import { jsx as
|
|
29192
|
+
import { jsx as jsx232, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
29159
29193
|
var __maybeInc32 = (inc) => {
|
|
29160
29194
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29161
29195
|
};
|
|
@@ -29192,7 +29226,7 @@ function FormSectionLayout(props) {
|
|
|
29192
29226
|
}] : [], ...sectionLinks];
|
|
29193
29227
|
const showRail = withJumpLinks && jumpLinks.length >= 2 && !isMobile;
|
|
29194
29228
|
const activeId = useActiveJumpLink(showRail ? jumpLinks.map((link) => link.id) : []);
|
|
29195
|
-
const content2 = /* @__PURE__ */
|
|
29229
|
+
const content2 = /* @__PURE__ */ jsxs124("div", { ...trussProps135({
|
|
29196
29230
|
display: "df",
|
|
29197
29231
|
flexDirection: "fdc",
|
|
29198
29232
|
gap: "g_8",
|
|
@@ -29203,7 +29237,7 @@ function FormSectionLayout(props) {
|
|
|
29203
29237
|
paddingLeft: "pl3"
|
|
29204
29238
|
} : {}
|
|
29205
29239
|
}), children: [
|
|
29206
|
-
/* @__PURE__ */
|
|
29240
|
+
/* @__PURE__ */ jsxs124("div", { id: titleAnchor ? formSectionLayoutTitleId : void 0, ...trussProps135({
|
|
29207
29241
|
display: "df",
|
|
29208
29242
|
flexDirection: "fdc",
|
|
29209
29243
|
gap: "g_3",
|
|
@@ -29213,23 +29247,23 @@ function FormSectionLayout(props) {
|
|
|
29213
29247
|
}]
|
|
29214
29248
|
} : {}
|
|
29215
29249
|
}), children: [
|
|
29216
|
-
/* @__PURE__ */
|
|
29250
|
+
/* @__PURE__ */ jsx232(ContentHeader, { ...tid, title, description, actions, withAutoSave, level: 2, aiMode }),
|
|
29217
29251
|
initialFields
|
|
29218
29252
|
] }),
|
|
29219
|
-
sections && /* @__PURE__ */
|
|
29253
|
+
sections && /* @__PURE__ */ jsx232("div", { className: "df fdc g_8", children: sections.map((section, i) => /* @__PURE__ */ jsx232(FormSection, { ...section }, defaultTestId(section.title) || i)) })
|
|
29220
29254
|
] });
|
|
29221
|
-
const form = /* @__PURE__ */
|
|
29222
|
-
const body = showRail ? /* @__PURE__ */
|
|
29223
|
-
/* @__PURE__ */
|
|
29224
|
-
/* @__PURE__ */
|
|
29255
|
+
const form = /* @__PURE__ */ jsx232(CenteredLayout, { size: "sm", children: aiMode ? /* @__PURE__ */ jsx232(AiCard, { size: "lg", ...tid, children: content2 }) : content2 });
|
|
29256
|
+
const body = showRail ? /* @__PURE__ */ jsxs124("div", { className: "df w100 mb4", children: [
|
|
29257
|
+
/* @__PURE__ */ jsx232(JumpLinksRail, { links: jumpLinks, activeId, ...tid.jumpLinks }),
|
|
29258
|
+
/* @__PURE__ */ jsx232("div", { ...trussProps135({
|
|
29225
29259
|
flexGrow: "fg1",
|
|
29226
29260
|
marginRight: ["mr_var", {
|
|
29227
29261
|
"--marginRight": maybeCssVar66(__maybeInc32(jumpLinksRailReservation))
|
|
29228
29262
|
}]
|
|
29229
29263
|
}), ...tid.column, children: form })
|
|
29230
|
-
] }) : /* @__PURE__ */
|
|
29264
|
+
] }) : /* @__PURE__ */ jsx232("div", { className: "mb4", children: form });
|
|
29231
29265
|
if (!rightPane) return body;
|
|
29232
|
-
return /* @__PURE__ */
|
|
29266
|
+
return /* @__PURE__ */ jsx232(DocumentScrollOverlayRightPaneLayout, { paneWidth: rightPane.width, children: body });
|
|
29233
29267
|
}
|
|
29234
29268
|
|
|
29235
29269
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
@@ -29349,17 +29383,17 @@ function useTransitionAfterPaint(ref, transition) {
|
|
|
29349
29383
|
|
|
29350
29384
|
// src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
|
|
29351
29385
|
import { createContext as createContext18, useContext as useContext29 } from "react";
|
|
29352
|
-
import { jsx as
|
|
29386
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
29353
29387
|
var NavbarLayoutHeightContext = createContext18(0);
|
|
29354
29388
|
function NavbarLayoutHeightProvider({ value, children }) {
|
|
29355
|
-
return /* @__PURE__ */
|
|
29389
|
+
return /* @__PURE__ */ jsx233(NavbarLayoutHeightContext.Provider, { value, children });
|
|
29356
29390
|
}
|
|
29357
29391
|
function useNavbarLayoutHeight() {
|
|
29358
29392
|
return useContext29(NavbarLayoutHeightContext);
|
|
29359
29393
|
}
|
|
29360
29394
|
|
|
29361
29395
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
29362
|
-
import { jsx as
|
|
29396
|
+
import { jsx as jsx234, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
29363
29397
|
var __maybeInc33 = (inc) => {
|
|
29364
29398
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29365
29399
|
};
|
|
@@ -29396,20 +29430,20 @@ function NavbarLayout(props) {
|
|
|
29396
29430
|
const innerStyle = {
|
|
29397
29431
|
top: autoHideState === "hidden" ? `calc(${bannerTop} - ${navHeight}px)` : bannerTop
|
|
29398
29432
|
};
|
|
29399
|
-
const navbarEl = useMemo57(() => /* @__PURE__ */
|
|
29400
|
-
return /* @__PURE__ */
|
|
29433
|
+
const navbarEl = useMemo57(() => /* @__PURE__ */ jsx234(Navbar, { ...navbar }), [navbar]);
|
|
29434
|
+
return /* @__PURE__ */ jsx234(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx234(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ jsx234(MobileSubNavProvider, { children: /* @__PURE__ */ jsxs125("div", { ...mergeProps41(void 0, cssVars, {
|
|
29401
29435
|
display: "df",
|
|
29402
29436
|
flexDirection: "fdc",
|
|
29403
29437
|
width: "wfc",
|
|
29404
29438
|
minWidth: "mw100"
|
|
29405
29439
|
}), ...tid, children: [
|
|
29406
|
-
/* @__PURE__ */
|
|
29440
|
+
/* @__PURE__ */ jsx234("div", { ref: spacerRef, ...mergeProps41(void 0, {
|
|
29407
29441
|
height: navHeight
|
|
29408
29442
|
}, {
|
|
29409
29443
|
flexShrink: "fs0",
|
|
29410
29444
|
width: "w100"
|
|
29411
|
-
}), children: /* @__PURE__ */
|
|
29412
|
-
/* @__PURE__ */
|
|
29445
|
+
}), children: /* @__PURE__ */ jsx234("div", { ref: navMetricsRef, ...mergeProps41(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
29446
|
+
/* @__PURE__ */ jsx234("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
29413
29447
|
] }) }) }) });
|
|
29414
29448
|
}
|
|
29415
29449
|
|
|
@@ -29433,8 +29467,8 @@ function useDocumentTitle(...titleSegments) {
|
|
|
29433
29467
|
}
|
|
29434
29468
|
|
|
29435
29469
|
// src/components/Headers/BaseHeader.tsx
|
|
29436
|
-
import { trussProps as
|
|
29437
|
-
import { jsx as
|
|
29470
|
+
import { trussProps as trussProps136 } from "@homebound/truss/runtime";
|
|
29471
|
+
import { jsx as jsx235, jsxs as jsxs126 } from "react/jsx-runtime";
|
|
29438
29472
|
function BaseHeader(props) {
|
|
29439
29473
|
const {
|
|
29440
29474
|
title,
|
|
@@ -29446,7 +29480,7 @@ function BaseHeader(props) {
|
|
|
29446
29480
|
} = props;
|
|
29447
29481
|
const tid = useTestIds(otherProps, "header");
|
|
29448
29482
|
useDocumentTitle(title, documentTitleSuffix);
|
|
29449
|
-
return /* @__PURE__ */
|
|
29483
|
+
return /* @__PURE__ */ jsxs126("header", { ...tid, ...trussProps136({
|
|
29450
29484
|
display: "df",
|
|
29451
29485
|
flexDirection: "fdc",
|
|
29452
29486
|
paddingTop: "pt3",
|
|
@@ -29460,7 +29494,7 @@ function BaseHeader(props) {
|
|
|
29460
29494
|
"--backgroundColor": "var(--b-surface)"
|
|
29461
29495
|
}]
|
|
29462
29496
|
}), children: [
|
|
29463
|
-
/* @__PURE__ */
|
|
29497
|
+
/* @__PURE__ */ jsxs126("div", { ...trussProps136({
|
|
29464
29498
|
...{
|
|
29465
29499
|
display: "df",
|
|
29466
29500
|
justifyContent: "jcsb",
|
|
@@ -29474,9 +29508,9 @@ function BaseHeader(props) {
|
|
|
29474
29508
|
} : {}
|
|
29475
29509
|
}
|
|
29476
29510
|
}), children: [
|
|
29477
|
-
/* @__PURE__ */
|
|
29478
|
-
breadcrumbs && /* @__PURE__ */
|
|
29479
|
-
/* @__PURE__ */
|
|
29511
|
+
/* @__PURE__ */ jsxs126("div", { className: "mw0", children: [
|
|
29512
|
+
breadcrumbs && /* @__PURE__ */ jsx235(Breadcrumbs, { ...breadcrumbs }),
|
|
29513
|
+
/* @__PURE__ */ jsx235("h1", { ...tid.title, ...trussProps136({
|
|
29480
29514
|
fontWeight: "fw6",
|
|
29481
29515
|
fontSize: "fz_20px",
|
|
29482
29516
|
lineHeight: "lh_28px",
|
|
@@ -29485,15 +29519,15 @@ function BaseHeader(props) {
|
|
|
29485
29519
|
}]
|
|
29486
29520
|
}), children: title })
|
|
29487
29521
|
] }),
|
|
29488
|
-
/* @__PURE__ */
|
|
29522
|
+
/* @__PURE__ */ jsx235("div", { className: "fs0", children: rightSlot })
|
|
29489
29523
|
] }),
|
|
29490
29524
|
bottomSlot
|
|
29491
29525
|
] });
|
|
29492
29526
|
}
|
|
29493
29527
|
|
|
29494
29528
|
// src/components/Headers/PageHeader.tsx
|
|
29495
|
-
import { trussProps as
|
|
29496
|
-
import { Fragment as Fragment52, jsx as
|
|
29529
|
+
import { trussProps as trussProps137 } from "@homebound/truss/runtime";
|
|
29530
|
+
import { Fragment as Fragment52, jsx as jsx236, jsxs as jsxs127 } from "react/jsx-runtime";
|
|
29497
29531
|
function PageHeader2(props) {
|
|
29498
29532
|
const {
|
|
29499
29533
|
tabs,
|
|
@@ -29509,20 +29543,20 @@ function PageHeader2(props) {
|
|
|
29509
29543
|
bottomSlotActions,
|
|
29510
29544
|
rightSlotActions
|
|
29511
29545
|
} = splitHeaderActionsOnSm(actions, sm);
|
|
29512
|
-
return /* @__PURE__ */
|
|
29513
|
-
/* @__PURE__ */
|
|
29514
|
-
rightSlotActions.length > 0 && /* @__PURE__ */
|
|
29546
|
+
return /* @__PURE__ */ jsx236(BaseHeader, { ...otherProps, rightSlot: /* @__PURE__ */ jsxs127("div", { className: "df g_2 fs0", ...tid.actions, children: [
|
|
29547
|
+
/* @__PURE__ */ jsx236(AutoSaveIndicator, { hideOnIdle: true }),
|
|
29548
|
+
rightSlotActions.length > 0 && /* @__PURE__ */ jsx236(HeaderActions, { actions: rightSlotActions, collapseOnSm: true }),
|
|
29515
29549
|
rightSlot
|
|
29516
|
-
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */
|
|
29517
|
-
bottomSlotActions.length > 0 && /* @__PURE__ */
|
|
29550
|
+
] }), bottomSlot: (bottomSlotActions.length > 0 || tabs) && /* @__PURE__ */ jsxs127(Fragment52, { children: [
|
|
29551
|
+
bottomSlotActions.length > 0 && /* @__PURE__ */ jsx236("div", { ...trussProps137({
|
|
29518
29552
|
...pageContentPaddingX,
|
|
29519
29553
|
...{
|
|
29520
29554
|
...!tabs ? {
|
|
29521
29555
|
marginBottom: "mb2"
|
|
29522
29556
|
} : {}
|
|
29523
29557
|
}
|
|
29524
|
-
}), ...tid.bottomSlot, children: /* @__PURE__ */
|
|
29525
|
-
tabs && /* @__PURE__ */
|
|
29558
|
+
}), ...tid.bottomSlot, children: /* @__PURE__ */ jsx236(HeaderActions, { actions: bottomSlotActions }) }),
|
|
29559
|
+
tabs && /* @__PURE__ */ jsx236("div", { ...trussProps137(pageContentPaddingX), children: /* @__PURE__ */ jsx236(Tabs, { ...tabs, ...tid.tabs }) })
|
|
29526
29560
|
] }) });
|
|
29527
29561
|
}
|
|
29528
29562
|
|
|
@@ -29533,7 +29567,7 @@ function useBannerAndNavbarHeight() {
|
|
|
29533
29567
|
|
|
29534
29568
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
29535
29569
|
import { mergeProps as mergeProps42, maybeCssVar as maybeCssVar68 } from "@homebound/truss/runtime";
|
|
29536
|
-
import { jsx as
|
|
29570
|
+
import { jsx as jsx237, jsxs as jsxs128 } from "react/jsx-runtime";
|
|
29537
29571
|
var __maybeInc34 = (inc) => {
|
|
29538
29572
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29539
29573
|
};
|
|
@@ -29576,19 +29610,19 @@ function PageHeaderLayout(props) {
|
|
|
29576
29610
|
const innerStyle = {
|
|
29577
29611
|
top: autoHideState === "hidden" ? `calc(${outerTop} - ${headerHeight}px)` : outerTop
|
|
29578
29612
|
};
|
|
29579
|
-
const pageHeaderEl = useMemo58(() => /* @__PURE__ */
|
|
29580
|
-
return /* @__PURE__ */
|
|
29613
|
+
const pageHeaderEl = useMemo58(() => /* @__PURE__ */ jsx237(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
29614
|
+
return /* @__PURE__ */ jsx237(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs128("div", { ...mergeProps42(void 0, cssVars, {
|
|
29581
29615
|
display: "df",
|
|
29582
29616
|
flexDirection: "fdc",
|
|
29583
29617
|
width: "w100"
|
|
29584
29618
|
}), ...tid, children: [
|
|
29585
|
-
/* @__PURE__ */
|
|
29619
|
+
/* @__PURE__ */ jsx237("div", { ref: spacerRef, ...mergeProps42(void 0, {
|
|
29586
29620
|
height: headerHeight
|
|
29587
29621
|
}, {
|
|
29588
29622
|
flexShrink: "fs0",
|
|
29589
29623
|
width: "w100"
|
|
29590
|
-
}), children: /* @__PURE__ */
|
|
29591
|
-
/* @__PURE__ */
|
|
29624
|
+
}), children: /* @__PURE__ */ jsx237("div", { ref: headerMetricsRef, ...mergeProps42(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
29625
|
+
/* @__PURE__ */ jsx237("div", { className: "df fdc fg1 mh0 w100 n_has_data_self_top_spaced_first_child_pt3", ...tid.body, children })
|
|
29592
29626
|
] }) });
|
|
29593
29627
|
}
|
|
29594
29628
|
|
|
@@ -29596,23 +29630,23 @@ function PageHeaderLayout(props) {
|
|
|
29596
29630
|
import { useLayoutEffect as useLayoutEffect18, useRef as useRef75 } from "react";
|
|
29597
29631
|
|
|
29598
29632
|
// src/components/Headers/WorkflowHeader.tsx
|
|
29599
|
-
import { jsx as
|
|
29633
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
29600
29634
|
function WorkflowHeader(props) {
|
|
29601
29635
|
const { stepperTabs, ...otherProps } = props;
|
|
29602
29636
|
const tid = useTestIds(otherProps, "header");
|
|
29603
|
-
return /* @__PURE__ */
|
|
29637
|
+
return /* @__PURE__ */ jsx238(
|
|
29604
29638
|
BaseHeader,
|
|
29605
29639
|
{
|
|
29606
29640
|
...otherProps,
|
|
29607
|
-
bottomSlot: stepperTabs ? /* @__PURE__ */
|
|
29641
|
+
bottomSlot: stepperTabs ? /* @__PURE__ */ jsx238(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) : void 0
|
|
29608
29642
|
}
|
|
29609
29643
|
);
|
|
29610
29644
|
}
|
|
29611
29645
|
|
|
29612
29646
|
// src/layouts/Workflow/RightPaneTriggers.tsx
|
|
29613
29647
|
import { useCallback as useCallback44 } from "react";
|
|
29614
|
-
import { trussProps as
|
|
29615
|
-
import { jsx as
|
|
29648
|
+
import { trussProps as trussProps138, maybeCssVar as maybeCssVar69 } from "@homebound/truss/runtime";
|
|
29649
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
29616
29650
|
var __maybeInc35 = (inc) => {
|
|
29617
29651
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29618
29652
|
};
|
|
@@ -29633,12 +29667,12 @@ function WorkflowPageRightPaneTriggers(props) {
|
|
|
29633
29667
|
const pageTriggerInsetPx = 24;
|
|
29634
29668
|
const onClick = useCallback44((trigger) => {
|
|
29635
29669
|
openRightPane({
|
|
29636
|
-
content: /* @__PURE__ */
|
|
29670
|
+
content: /* @__PURE__ */ jsx239(RightPanePanel, { title: trigger.label, children: trigger.content })
|
|
29637
29671
|
});
|
|
29638
29672
|
}, [openRightPane]);
|
|
29639
|
-
return /* @__PURE__ */
|
|
29673
|
+
return /* @__PURE__ */ jsx239("div", { ...tid, "aria-hidden": isRightPaneOpen, ...isRightPaneOpen ? {
|
|
29640
29674
|
inert: true
|
|
29641
|
-
} : {}, ...
|
|
29675
|
+
} : {}, ...trussProps138({
|
|
29642
29676
|
...{
|
|
29643
29677
|
display: "df",
|
|
29644
29678
|
alignItems: "aic",
|
|
@@ -29670,13 +29704,13 @@ function WorkflowPageRightPaneTriggers(props) {
|
|
|
29670
29704
|
} : {
|
|
29671
29705
|
transform: "tf_translateX_0"
|
|
29672
29706
|
})
|
|
29673
|
-
}), children: triggers.map((trigger) => /* @__PURE__ */
|
|
29707
|
+
}), 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)) });
|
|
29674
29708
|
}
|
|
29675
29709
|
|
|
29676
29710
|
// src/layouts/Workflow/useUnsavedChangesGuard.tsx
|
|
29677
29711
|
import { useEffect as useEffect40, useRef as useRef74 } from "react";
|
|
29678
29712
|
import { useBlocker } from "react-router-dom";
|
|
29679
|
-
import { jsx as
|
|
29713
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
29680
29714
|
function useUnsavedChangesGuard(options) {
|
|
29681
29715
|
const { isDirty, allowNavigation, onCancel } = options;
|
|
29682
29716
|
const { openModal } = useModal();
|
|
@@ -29712,7 +29746,7 @@ function useUnsavedChangesGuard(options) {
|
|
|
29712
29746
|
}
|
|
29713
29747
|
openModal({
|
|
29714
29748
|
allowClosing: false,
|
|
29715
|
-
content: /* @__PURE__ */
|
|
29749
|
+
content: /* @__PURE__ */ jsx240(ConfirmCloseModal, { onClose: () => confirmCancel(e) })
|
|
29716
29750
|
});
|
|
29717
29751
|
};
|
|
29718
29752
|
const navigationBlocker = blocker.state === "blocked" ? { proceed: () => blocker.proceed?.(), cancelNavigation: () => blocker.reset?.() } : void 0;
|
|
@@ -29724,7 +29758,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
29724
29758
|
useEffect40(() => {
|
|
29725
29759
|
openModal({
|
|
29726
29760
|
allowClosing: false,
|
|
29727
|
-
content: /* @__PURE__ */
|
|
29761
|
+
content: /* @__PURE__ */ jsx240(ConfirmCloseModal, { title: "Leave page?", onClose: proceed, onContinue: cancelNavigation })
|
|
29728
29762
|
});
|
|
29729
29763
|
return () => closeModal();
|
|
29730
29764
|
}, []);
|
|
@@ -29732,7 +29766,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
29732
29766
|
}
|
|
29733
29767
|
|
|
29734
29768
|
// src/layouts/Workflow/WorkflowActions.tsx
|
|
29735
|
-
import { jsx as
|
|
29769
|
+
import { jsx as jsx241, jsxs as jsxs129 } from "react/jsx-runtime";
|
|
29736
29770
|
function WorkflowActions(props) {
|
|
29737
29771
|
const {
|
|
29738
29772
|
onCancel,
|
|
@@ -29750,12 +29784,12 @@ function WorkflowActions(props) {
|
|
|
29750
29784
|
sm: isMobile
|
|
29751
29785
|
} = useBreakpoint();
|
|
29752
29786
|
const primaryVariant = aiMode ? "ai" : "primary";
|
|
29753
|
-
return /* @__PURE__ */
|
|
29754
|
-
/* @__PURE__ */
|
|
29755
|
-
/* @__PURE__ */
|
|
29756
|
-
/* @__PURE__ */
|
|
29757
|
-
onSaveAndExit && /* @__PURE__ */
|
|
29758
|
-
isLastStep ? /* @__PURE__ */
|
|
29787
|
+
return /* @__PURE__ */ jsxs129("div", { className: "df aic jcsb sm_w100", children: [
|
|
29788
|
+
/* @__PURE__ */ jsx241("div", { className: "df aic", children: !isFirstStep && isMobile && onBack && /* @__PURE__ */ jsx241(IconButton, { icon: "arrowBack", label: "Back", onClick: onBack }) }),
|
|
29789
|
+
/* @__PURE__ */ jsxs129("div", { className: "df aic g_1", children: [
|
|
29790
|
+
/* @__PURE__ */ jsx241(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
|
|
29791
|
+
onSaveAndExit && /* @__PURE__ */ jsx241(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
|
|
29792
|
+
isLastStep ? /* @__PURE__ */ jsx241(Button, { label: completeLabel, variant: primaryVariant, onClick: onComplete, disabled: primaryDisabled }) : /* @__PURE__ */ jsx241(Button, { label: "Continue", variant: primaryVariant, onClick: async () => {
|
|
29759
29793
|
await onContinue?.();
|
|
29760
29794
|
}, disabled: primaryDisabled })
|
|
29761
29795
|
] })
|
|
@@ -29763,8 +29797,8 @@ function WorkflowActions(props) {
|
|
|
29763
29797
|
}
|
|
29764
29798
|
|
|
29765
29799
|
// src/layouts/Workflow/WorkflowPageLayout.tsx
|
|
29766
|
-
import { trussProps as
|
|
29767
|
-
import { jsx as
|
|
29800
|
+
import { trussProps as trussProps139, mergeProps as mergeProps43, maybeCssVar as maybeCssVar70 } from "@homebound/truss/runtime";
|
|
29801
|
+
import { jsx as jsx242, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
29768
29802
|
var __maybeInc36 = (inc) => {
|
|
29769
29803
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
29770
29804
|
};
|
|
@@ -29795,9 +29829,9 @@ function WorkflowPageLayout(props) {
|
|
|
29795
29829
|
allowNavigation,
|
|
29796
29830
|
onCancel
|
|
29797
29831
|
});
|
|
29798
|
-
const actions = /* @__PURE__ */
|
|
29832
|
+
const actions = /* @__PURE__ */ jsx242(WorkflowActions, { ...actionProps, aiMode, onCancel: onCancelClick });
|
|
29799
29833
|
const triggers = rightPaneTriggers ?? [];
|
|
29800
|
-
const pageTriggers = triggers.length > 0 ? /* @__PURE__ */
|
|
29834
|
+
const pageTriggers = triggers.length > 0 ? /* @__PURE__ */ jsx242(WorkflowPageRightPaneTriggers, { triggers }) : void 0;
|
|
29801
29835
|
const headerMetricsRef = useRef75(null);
|
|
29802
29836
|
const headerHeight = useMeasuredHeight(headerMetricsRef, true);
|
|
29803
29837
|
const headerWidth = documentScrollChromeWidth();
|
|
@@ -29818,18 +29852,18 @@ function WorkflowPageLayout(props) {
|
|
|
29818
29852
|
}
|
|
29819
29853
|
};
|
|
29820
29854
|
}, [showFooter]);
|
|
29821
|
-
return /* @__PURE__ */
|
|
29822
|
-
/* @__PURE__ */
|
|
29855
|
+
return /* @__PURE__ */ jsxs130(DocumentScrollLayoutProvider, { children: [
|
|
29856
|
+
/* @__PURE__ */ jsxs130("div", { ...mergeProps43(void 0, cssVars, {
|
|
29823
29857
|
display: "df",
|
|
29824
29858
|
flexDirection: "fdc",
|
|
29825
29859
|
width: "w100"
|
|
29826
29860
|
}), ...tid, children: [
|
|
29827
|
-
/* @__PURE__ */
|
|
29861
|
+
/* @__PURE__ */ jsx242("div", { ...mergeProps43(void 0, {
|
|
29828
29862
|
height: headerHeight
|
|
29829
29863
|
}, {
|
|
29830
29864
|
flexShrink: "fs0",
|
|
29831
29865
|
width: "w100"
|
|
29832
|
-
}), children: /* @__PURE__ */
|
|
29866
|
+
}), children: /* @__PURE__ */ jsx242("div", { ref: headerMetricsRef, ...trussProps139({
|
|
29833
29867
|
position: "fixed",
|
|
29834
29868
|
left: "l_0",
|
|
29835
29869
|
width: ["w_var", {
|
|
@@ -29842,8 +29876,8 @@ function WorkflowPageLayout(props) {
|
|
|
29842
29876
|
"--top": maybeCssVar70(__maybeInc36(outerTop))
|
|
29843
29877
|
}],
|
|
29844
29878
|
transition: "transitionAll"
|
|
29845
|
-
}), ...tid.header, children: /* @__PURE__ */
|
|
29846
|
-
/* @__PURE__ */
|
|
29879
|
+
}), ...tid.header, children: /* @__PURE__ */ jsx242(WorkflowHeader, { title, documentTitleSuffix, breadcrumbs, rightSlot: isMobile ? pageTriggers : actions, stepperTabs }) }) }),
|
|
29880
|
+
/* @__PURE__ */ jsx242("div", { ...trussProps139({
|
|
29847
29881
|
...{
|
|
29848
29882
|
display: "df",
|
|
29849
29883
|
flexDirection: "fdc",
|
|
@@ -29858,15 +29892,15 @@ function WorkflowPageLayout(props) {
|
|
|
29858
29892
|
"--minHeight": maybeCssVar70(documentScrollBodyMinHeight())
|
|
29859
29893
|
}]
|
|
29860
29894
|
}
|
|
29861
|
-
}), ...tid.body, children: triggers.length > 0 ? /* @__PURE__ */
|
|
29895
|
+
}), ...tid.body, children: triggers.length > 0 ? /* @__PURE__ */ jsx242(DocumentScrollOverlayRightPaneLayout, { children }) : children }),
|
|
29862
29896
|
!isMobile && pageTriggers,
|
|
29863
|
-
showFooter && /* @__PURE__ */
|
|
29897
|
+
showFooter && /* @__PURE__ */ jsx242("div", { ...trussProps139({
|
|
29864
29898
|
flexShrink: "fs0",
|
|
29865
29899
|
width: "w100",
|
|
29866
29900
|
height: ["h_var", {
|
|
29867
29901
|
"--height": `${mobileFooterHeightPx}px`
|
|
29868
29902
|
}]
|
|
29869
|
-
}), children: /* @__PURE__ */
|
|
29903
|
+
}), children: /* @__PURE__ */ jsx242("div", { ...trussProps139({
|
|
29870
29904
|
...{
|
|
29871
29905
|
position: "fixed",
|
|
29872
29906
|
bottom: "bot_0",
|
|
@@ -29895,12 +29929,12 @@ function WorkflowPageLayout(props) {
|
|
|
29895
29929
|
...pageContentPaddingX
|
|
29896
29930
|
}), ...tid.footer, children: actions }) })
|
|
29897
29931
|
] }),
|
|
29898
|
-
navigationBlocker && /* @__PURE__ */
|
|
29932
|
+
navigationBlocker && /* @__PURE__ */ jsx242(UnsavedChangesNavigationModal, { ...navigationBlocker })
|
|
29899
29933
|
] });
|
|
29900
29934
|
}
|
|
29901
29935
|
|
|
29902
29936
|
// src/layouts/Workflow/FocusedFormLayout.tsx
|
|
29903
|
-
import { jsx as
|
|
29937
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
29904
29938
|
function FocusedFormLayout(props) {
|
|
29905
29939
|
const {
|
|
29906
29940
|
onCancel,
|
|
@@ -29916,7 +29950,7 @@ function FocusedFormLayout(props) {
|
|
|
29916
29950
|
...headerProps
|
|
29917
29951
|
} = props;
|
|
29918
29952
|
const tid = useTestIds(props, "focusedFormLayout");
|
|
29919
|
-
return /* @__PURE__ */
|
|
29953
|
+
return /* @__PURE__ */ jsx243(
|
|
29920
29954
|
WorkflowPageLayout,
|
|
29921
29955
|
{
|
|
29922
29956
|
...tid,
|
|
@@ -29937,7 +29971,7 @@ function FocusedFormLayout(props) {
|
|
|
29937
29971
|
|
|
29938
29972
|
// src/layouts/Workflow/StepperLayout.tsx
|
|
29939
29973
|
import { useState as useState64 } from "react";
|
|
29940
|
-
import { jsx as
|
|
29974
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
29941
29975
|
function StepperLayout(props) {
|
|
29942
29976
|
const {
|
|
29943
29977
|
steps,
|
|
@@ -29964,7 +29998,7 @@ function StepperLayout(props) {
|
|
|
29964
29998
|
closeRightPane();
|
|
29965
29999
|
setCurrentStep(value);
|
|
29966
30000
|
}
|
|
29967
|
-
return /* @__PURE__ */
|
|
30001
|
+
return /* @__PURE__ */ jsx244(
|
|
29968
30002
|
WorkflowPageLayout,
|
|
29969
30003
|
{
|
|
29970
30004
|
...tid,
|
|
@@ -30007,7 +30041,7 @@ function getInitialStep(steps, defaultStep) {
|
|
|
30007
30041
|
|
|
30008
30042
|
// src/forms/BoundChipSelectField.tsx
|
|
30009
30043
|
import { Observer as Observer19 } from "mobx-react";
|
|
30010
|
-
import { jsx as
|
|
30044
|
+
import { jsx as jsx245 } from "react/jsx-runtime";
|
|
30011
30045
|
function BoundChipSelectField(props) {
|
|
30012
30046
|
const {
|
|
30013
30047
|
field,
|
|
@@ -30023,7 +30057,7 @@ function BoundChipSelectField(props) {
|
|
|
30023
30057
|
...others
|
|
30024
30058
|
} = props;
|
|
30025
30059
|
const testId = useTestIds(props, field.key);
|
|
30026
|
-
return /* @__PURE__ */
|
|
30060
|
+
return /* @__PURE__ */ jsx245(Observer19, { children: () => /* @__PURE__ */ jsx245(
|
|
30027
30061
|
ChipSelectField,
|
|
30028
30062
|
{
|
|
30029
30063
|
label,
|
|
@@ -30053,12 +30087,12 @@ function BoundChipSelectField(props) {
|
|
|
30053
30087
|
}
|
|
30054
30088
|
|
|
30055
30089
|
// src/forms/BoundSelectAndTextField.tsx
|
|
30056
|
-
import { jsx as
|
|
30090
|
+
import { jsx as jsx246, jsxs as jsxs131 } from "react/jsx-runtime";
|
|
30057
30091
|
function BoundSelectAndTextField(props) {
|
|
30058
30092
|
const { selectFieldProps, textFieldProps, compact = true } = props;
|
|
30059
30093
|
const tid = useTestIds(props);
|
|
30060
|
-
return /* @__PURE__ */
|
|
30061
|
-
/* @__PURE__ */
|
|
30094
|
+
return /* @__PURE__ */ jsxs131(CompoundField, { children: [
|
|
30095
|
+
/* @__PURE__ */ jsx246(
|
|
30062
30096
|
BoundSelectField,
|
|
30063
30097
|
{
|
|
30064
30098
|
...tid[defaultTestId(selectFieldProps.label ?? selectFieldProps.field.key)],
|
|
@@ -30067,7 +30101,7 @@ function BoundSelectAndTextField(props) {
|
|
|
30067
30101
|
compact
|
|
30068
30102
|
}
|
|
30069
30103
|
),
|
|
30070
|
-
/* @__PURE__ */
|
|
30104
|
+
/* @__PURE__ */ jsx246(
|
|
30071
30105
|
BoundTextField,
|
|
30072
30106
|
{
|
|
30073
30107
|
...tid[defaultTestId(textFieldProps.label ?? textFieldProps.field.key)],
|
|
@@ -30079,8 +30113,8 @@ function BoundSelectAndTextField(props) {
|
|
|
30079
30113
|
}
|
|
30080
30114
|
|
|
30081
30115
|
// src/forms/FormHeading.tsx
|
|
30082
|
-
import { trussProps as
|
|
30083
|
-
import { jsx as
|
|
30116
|
+
import { trussProps as trussProps140 } from "@homebound/truss/runtime";
|
|
30117
|
+
import { jsx as jsx247 } from "react/jsx-runtime";
|
|
30084
30118
|
function FormHeading(props) {
|
|
30085
30119
|
const {
|
|
30086
30120
|
title,
|
|
@@ -30090,7 +30124,7 @@ function FormHeading(props) {
|
|
|
30090
30124
|
} = props;
|
|
30091
30125
|
return (
|
|
30092
30126
|
// Add space before the heading, but only if it's not first.
|
|
30093
|
-
/* @__PURE__ */
|
|
30127
|
+
/* @__PURE__ */ jsx247("h3", { ...trussProps140({
|
|
30094
30128
|
...{
|
|
30095
30129
|
fontWeight: "fw4",
|
|
30096
30130
|
fontSize: "fz_16px",
|
|
@@ -30107,8 +30141,8 @@ FormHeading.isFormHeading = true;
|
|
|
30107
30141
|
|
|
30108
30142
|
// src/forms/StaticField.tsx
|
|
30109
30143
|
import { useId as useId3 } from "@react-aria/utils";
|
|
30110
|
-
import { trussProps as
|
|
30111
|
-
import { jsx as
|
|
30144
|
+
import { trussProps as trussProps141 } from "@homebound/truss/runtime";
|
|
30145
|
+
import { jsx as jsx248, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
30112
30146
|
function StaticField(props) {
|
|
30113
30147
|
const {
|
|
30114
30148
|
fieldProps
|
|
@@ -30121,14 +30155,14 @@ function StaticField(props) {
|
|
|
30121
30155
|
} = props;
|
|
30122
30156
|
const tid = useTestIds(props, typeof label === "string" ? defaultTestId(label) : "staticField");
|
|
30123
30157
|
const id = useId3();
|
|
30124
|
-
return /* @__PURE__ */
|
|
30158
|
+
return /* @__PURE__ */ jsxs132("div", { ...trussProps141({
|
|
30125
30159
|
...labelStyle === "left" ? {
|
|
30126
30160
|
display: "df",
|
|
30127
30161
|
justifyContent: "jcsb",
|
|
30128
30162
|
maxWidth: "maxw100"
|
|
30129
30163
|
} : {}
|
|
30130
30164
|
}), ...tid.container, children: [
|
|
30131
|
-
/* @__PURE__ */
|
|
30165
|
+
/* @__PURE__ */ jsx248("label", { ...trussProps141({
|
|
30132
30166
|
display: "db",
|
|
30133
30167
|
fontWeight: "fw4",
|
|
30134
30168
|
fontSize: "fz_14px",
|
|
@@ -30138,7 +30172,7 @@ function StaticField(props) {
|
|
|
30138
30172
|
}],
|
|
30139
30173
|
marginBottom: "mb_4px"
|
|
30140
30174
|
}), htmlFor: id, ...tid.label, children: label }),
|
|
30141
|
-
/* @__PURE__ */
|
|
30175
|
+
/* @__PURE__ */ jsx248("div", { id, ...trussProps141({
|
|
30142
30176
|
fontWeight: "fw4",
|
|
30143
30177
|
fontSize: "fz_14px",
|
|
30144
30178
|
lineHeight: "lh_20px",
|
|
@@ -30169,7 +30203,7 @@ function useFilter4({ filterDefs }) {
|
|
|
30169
30203
|
import { useCallback as useCallback45, useRef as useRef76 } from "react";
|
|
30170
30204
|
import { useComboBox as useComboBox3, useOverlayPosition as useOverlayPosition6 } from "react-aria";
|
|
30171
30205
|
import { Item as Item5, useComboBoxState as useComboBoxState3 } from "react-stately";
|
|
30172
|
-
import { Fragment as Fragment53, jsx as
|
|
30206
|
+
import { Fragment as Fragment53, jsx as jsx249, jsxs as jsxs133 } from "react/jsx-runtime";
|
|
30173
30207
|
function Autocomplete(props) {
|
|
30174
30208
|
const {
|
|
30175
30209
|
onSelect,
|
|
@@ -30187,7 +30221,7 @@ function Autocomplete(props) {
|
|
|
30187
30221
|
const { effectiveValue, proposalProps } = useAiProposal(value, proposedValue);
|
|
30188
30222
|
const disabledOptionsWithReasons = Object.fromEntries(disabledOptions?.map(disabledOptionToKeyedTuple) ?? []);
|
|
30189
30223
|
const comboBoxChildren = useCallback45(
|
|
30190
|
-
(item) => /* @__PURE__ */
|
|
30224
|
+
(item) => /* @__PURE__ */ jsx249(Item5, { textValue: getOptionLabel(item), children: getOptionMenuLabel ? getOptionMenuLabel(item) : getOptionLabel(item) }, getOptionValue(item)),
|
|
30191
30225
|
[getOptionValue, getOptionLabel, getOptionMenuLabel]
|
|
30192
30226
|
);
|
|
30193
30227
|
const comboBoxProps = {
|
|
@@ -30240,8 +30274,8 @@ function Autocomplete(props) {
|
|
|
30240
30274
|
// Ensures the menu never gets too small.
|
|
30241
30275
|
minWidth: 200
|
|
30242
30276
|
};
|
|
30243
|
-
return /* @__PURE__ */
|
|
30244
|
-
/* @__PURE__ */
|
|
30277
|
+
return /* @__PURE__ */ jsxs133(Fragment53, { children: [
|
|
30278
|
+
/* @__PURE__ */ jsx249(
|
|
30245
30279
|
TextFieldBase,
|
|
30246
30280
|
{
|
|
30247
30281
|
inputRef,
|
|
@@ -30251,11 +30285,11 @@ function Autocomplete(props) {
|
|
|
30251
30285
|
onChange: onInputChange,
|
|
30252
30286
|
...proposalProps,
|
|
30253
30287
|
clearable: true,
|
|
30254
|
-
startAdornment: "startAdornment" in props ? props.startAdornment : /* @__PURE__ */
|
|
30288
|
+
startAdornment: "startAdornment" in props ? props.startAdornment : /* @__PURE__ */ jsx249(Icon, { icon: "search" }),
|
|
30255
30289
|
...others
|
|
30256
30290
|
}
|
|
30257
30291
|
),
|
|
30258
|
-
state.isOpen && /* @__PURE__ */
|
|
30292
|
+
state.isOpen && /* @__PURE__ */ jsx249(
|
|
30259
30293
|
Popover,
|
|
30260
30294
|
{
|
|
30261
30295
|
triggerRef: inputRef,
|
|
@@ -30264,7 +30298,7 @@ function Autocomplete(props) {
|
|
|
30264
30298
|
onClose: () => state.close(),
|
|
30265
30299
|
isOpen: state.isOpen,
|
|
30266
30300
|
minWidth: 200,
|
|
30267
|
-
children: /* @__PURE__ */
|
|
30301
|
+
children: /* @__PURE__ */ jsx249(
|
|
30268
30302
|
ListBox,
|
|
30269
30303
|
{
|
|
30270
30304
|
...listBoxProps,
|
|
@@ -30285,8 +30319,8 @@ function Autocomplete(props) {
|
|
|
30285
30319
|
import { useRef as useRef77, useState as useState66 } from "react";
|
|
30286
30320
|
import { useFocusRing as useFocusRing21, useHover as useHover24, usePress as usePress2, useSwitch as useSwitch2, VisuallyHidden as VisuallyHidden10 } from "react-aria";
|
|
30287
30321
|
import { useToggleState as useToggleState2 } from "react-stately";
|
|
30288
|
-
import { trussProps as
|
|
30289
|
-
import { jsx as
|
|
30322
|
+
import { trussProps as trussProps142 } from "@homebound/truss/runtime";
|
|
30323
|
+
import { jsx as jsx250, jsxs as jsxs134 } from "react/jsx-runtime";
|
|
30290
30324
|
function ToggleButton(props) {
|
|
30291
30325
|
const {
|
|
30292
30326
|
selected: isSelected = false,
|
|
@@ -30350,7 +30384,7 @@ function ToggleButton(props) {
|
|
|
30350
30384
|
...focusProps,
|
|
30351
30385
|
...hoverProps,
|
|
30352
30386
|
...pressProps,
|
|
30353
|
-
...
|
|
30387
|
+
...trussProps142({
|
|
30354
30388
|
// Gray500 off-state has no semantic match — keep palette (OnSurfaceMuted is Gray700).
|
|
30355
30389
|
...{
|
|
30356
30390
|
borderRadius: "br4",
|
|
@@ -30390,10 +30424,10 @@ function ToggleButton(props) {
|
|
|
30390
30424
|
return maybeTooltip({
|
|
30391
30425
|
title: tooltip,
|
|
30392
30426
|
placement: "top",
|
|
30393
|
-
children: /* @__PURE__ */
|
|
30394
|
-
icon && /* @__PURE__ */
|
|
30427
|
+
children: /* @__PURE__ */ jsxs134("label", { ...labelAttrs, children: [
|
|
30428
|
+
icon && /* @__PURE__ */ jsx250(Icon, { icon }),
|
|
30395
30429
|
label,
|
|
30396
|
-
/* @__PURE__ */
|
|
30430
|
+
/* @__PURE__ */ jsx250(VisuallyHidden10, { children: /* @__PURE__ */ jsx250("input", { ref, ...inputProps, ...tid.value }) })
|
|
30397
30431
|
] })
|
|
30398
30432
|
});
|
|
30399
30433
|
}
|
|
@@ -30488,6 +30522,7 @@ export {
|
|
|
30488
30522
|
DnDGridItemHandle,
|
|
30489
30523
|
DocumentScrollOverlayRightPaneLayout,
|
|
30490
30524
|
DocumentTitleProvider,
|
|
30525
|
+
DocumentUploadIllustration,
|
|
30491
30526
|
EXPANDABLE_HEADER,
|
|
30492
30527
|
EditColumnsButton,
|
|
30493
30528
|
EnvironmentBanner,
|