@homebound/beam 3.75.2 → 3.76.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 +387 -307
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -8
- package/dist/index.d.ts +35 -8
- package/dist/index.js +376 -298
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24034,36 +24034,11 @@ function ContentHeader(props) {
|
|
|
24034
24034
|
] });
|
|
24035
24035
|
}
|
|
24036
24036
|
|
|
24037
|
-
// src/components/HomeboundLogo.tsx
|
|
24038
|
-
import { trussProps as trussProps102, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
|
|
24039
|
-
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
24040
|
-
var __maybeInc21 = (inc) => {
|
|
24041
|
-
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24042
|
-
};
|
|
24043
|
-
function HomeboundLogo(props) {
|
|
24044
|
-
const {
|
|
24045
|
-
fill = "currentColor",
|
|
24046
|
-
width: width2 = "auto",
|
|
24047
|
-
height = "auto"
|
|
24048
|
-
} = props;
|
|
24049
|
-
return /* @__PURE__ */ jsx188("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...trussProps102({
|
|
24050
|
-
fill: ["fill_var", {
|
|
24051
|
-
"--fill": maybeCssVar48(fill)
|
|
24052
|
-
}],
|
|
24053
|
-
width: ["w_var", {
|
|
24054
|
-
"--width": maybeCssVar48(__maybeInc21(width2))
|
|
24055
|
-
}],
|
|
24056
|
-
height: ["h_var", {
|
|
24057
|
-
"--height": maybeCssVar48(__maybeInc21(height))
|
|
24058
|
-
}]
|
|
24059
|
-
}), children: /* @__PURE__ */ jsx188("path", { d: "M158.1,97.6H0.2L0,39.7L76.8,0l68,38.7l-3.1,5.3l-65-37L6.2,43.4l0.2,48h151.7V97.6z" }) });
|
|
24060
|
-
}
|
|
24061
|
-
|
|
24062
24037
|
// src/components/JumpLink.tsx
|
|
24063
24038
|
import { useRef as useRef57 } from "react";
|
|
24064
24039
|
import { mergeProps as mergeProps29, useFocusRing as useFocusRing15, useHover as useHover19, useLink } from "react-aria";
|
|
24065
|
-
import { trussProps as
|
|
24066
|
-
import { jsx as
|
|
24040
|
+
import { trussProps as trussProps102 } from "@homebound/truss/runtime";
|
|
24041
|
+
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
24067
24042
|
function JumpLink(props) {
|
|
24068
24043
|
const {
|
|
24069
24044
|
label,
|
|
@@ -24105,14 +24080,14 @@ function JumpLink(props) {
|
|
|
24105
24080
|
});
|
|
24106
24081
|
}
|
|
24107
24082
|
}
|
|
24108
|
-
return /* @__PURE__ */
|
|
24083
|
+
return /* @__PURE__ */ jsx188("a", { ref, ...mergeProps29(linkProps, focusProps, hoverProps), ...tid, ...trussProps102({
|
|
24109
24084
|
...jumpLinkStyles.baseStyles,
|
|
24110
24085
|
...active && jumpLinkStyles.activeStyles,
|
|
24111
24086
|
...isHovered && !disabled && jumpLinkStyles.hoverStyles,
|
|
24112
24087
|
...isFocusVisible && jumpLinkStyles.focusStyles,
|
|
24113
24088
|
...disabled && jumpLinkStyles.disabledStyles,
|
|
24114
24089
|
...disabled && active && jumpLinkStyles.disabledActiveStyles
|
|
24115
|
-
}), children: /* @__PURE__ */
|
|
24090
|
+
}), children: /* @__PURE__ */ jsx188("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_2", children: label }) });
|
|
24116
24091
|
}
|
|
24117
24092
|
var jumpLinkStyles = {
|
|
24118
24093
|
baseStyles: {
|
|
@@ -24159,11 +24134,112 @@ var jumpLinkStyles = {
|
|
|
24159
24134
|
}
|
|
24160
24135
|
};
|
|
24161
24136
|
|
|
24137
|
+
// src/components/Logos/BeamLogo.tsx
|
|
24138
|
+
import { trussProps as trussProps103, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
|
|
24139
|
+
import { jsx as jsx189, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
24140
|
+
var __maybeInc21 = (inc) => {
|
|
24141
|
+
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24142
|
+
};
|
|
24143
|
+
function BeamLogo(props) {
|
|
24144
|
+
const {
|
|
24145
|
+
fill = "currentColor",
|
|
24146
|
+
width: width2 = "auto",
|
|
24147
|
+
height = "auto"
|
|
24148
|
+
} = props;
|
|
24149
|
+
return /* @__PURE__ */ jsxs92("svg", { viewBox: "0 0 500 500", xmlns: "http://www.w3.org/2000/svg", ...trussProps103({
|
|
24150
|
+
fill: ["fill_var", {
|
|
24151
|
+
"--fill": maybeCssVar48(fill)
|
|
24152
|
+
}],
|
|
24153
|
+
width: ["w_var", {
|
|
24154
|
+
"--width": maybeCssVar48(__maybeInc21(width2))
|
|
24155
|
+
}],
|
|
24156
|
+
height: ["h_var", {
|
|
24157
|
+
"--height": maybeCssVar48(__maybeInc21(height))
|
|
24158
|
+
}]
|
|
24159
|
+
}), children: [
|
|
24160
|
+
/* @__PURE__ */ jsx189("rect", { x: "10", y: "90", width: "32", height: "320" }),
|
|
24161
|
+
/* @__PURE__ */ jsx189("rect", { x: "122", y: "172", width: "32", height: "158" }),
|
|
24162
|
+
/* @__PURE__ */ jsx189("rect", { x: "346", y: "172", width: "32", height: "158" }),
|
|
24163
|
+
/* @__PURE__ */ jsx189("rect", { x: "458", y: "90", width: "32", height: "320" }),
|
|
24164
|
+
/* @__PURE__ */ jsx189("rect", { x: "10", y: "90", width: "480", height: "32" }),
|
|
24165
|
+
/* @__PURE__ */ jsx189("rect", { x: "10", y: "378", width: "480", height: "32" }),
|
|
24166
|
+
/* @__PURE__ */ jsx189("rect", { x: "10", y: "172", width: "480", height: "32" }),
|
|
24167
|
+
/* @__PURE__ */ jsx189("rect", { x: "10", y: "298", width: "480", height: "32" })
|
|
24168
|
+
] });
|
|
24169
|
+
}
|
|
24170
|
+
|
|
24171
|
+
// src/components/Logos/BlueprintAiLogo.tsx
|
|
24172
|
+
import { useId as useId3 } from "@react-aria/utils";
|
|
24173
|
+
import { trussProps as trussProps104, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
|
|
24174
|
+
import { jsx as jsx190, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
24175
|
+
var __maybeInc22 = (inc) => {
|
|
24176
|
+
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24177
|
+
};
|
|
24178
|
+
function BlueprintAiLogo(props) {
|
|
24179
|
+
const {
|
|
24180
|
+
width: width2 = "auto",
|
|
24181
|
+
height = "auto"
|
|
24182
|
+
} = props;
|
|
24183
|
+
const gradientId = useId3();
|
|
24184
|
+
return /* @__PURE__ */ jsxs93("svg", { viewBox: "0 0 207 40", xmlns: "http://www.w3.org/2000/svg", ...trussProps104({
|
|
24185
|
+
width: ["w_var", {
|
|
24186
|
+
"--width": maybeCssVar49(__maybeInc22(width2))
|
|
24187
|
+
}],
|
|
24188
|
+
height: ["h_var", {
|
|
24189
|
+
"--height": maybeCssVar49(__maybeInc22(height))
|
|
24190
|
+
}]
|
|
24191
|
+
}), children: [
|
|
24192
|
+
/* @__PURE__ */ jsxs93("g", { transform: "translate(0.32171630859375, 3)", fill: `url(#${gradientId})`, children: [
|
|
24193
|
+
/* @__PURE__ */ jsx190("path", { d: "M17.2834 12.4731L25.9591 3.79741C26.4761 3.2804 27.3148 3.28029 27.8319 3.79741L27.9224 3.89763C28.3464 4.41754 28.3169 5.18521 27.8319 5.67026L18.7856 14.7166H30.6756C31.4069 14.7166 32 15.3096 32 16.0409C31.9998 16.7719 31.407 17.3653 30.6756 17.3653H19.3545L27.5075 25.5183L27.5991 25.6196C27.9937 26.1046 27.9936 26.8039 27.5991 27.2888L27.5075 27.3901C26.9904 27.9072 26.1518 27.9072 25.6347 27.3901L17.2834 19.0388V30.6756C17.2834 31.4069 16.6904 32 15.9591 32C15.2281 31.9998 14.6347 31.407 14.6347 30.6756V18.8664L6.15733 27.3437C5.67242 27.8287 4.90483 27.8588 4.3847 27.4343L4.28448 27.3437C3.76784 26.8267 3.76779 25.989 4.28448 25.472L12.3912 17.3653H1.32435C0.638773 17.3653 0.0745504 16.8441 0.00646552 16.1767L0 16.0409C0 15.3096 0.593052 14.7166 1.32435 14.7166H12.9601L3.96013 5.71659C3.44299 5.19946 3.44322 4.3608 3.96013 3.84375L4.06034 3.75323C4.58047 3.32871 5.34806 3.35884 5.83297 3.84375L14.6347 12.6455V1.32435C14.6347 0.592974 15.2281 0.000199548 15.9591 0C16.6904 3.28853e-08 17.2834 0.593052 17.2834 1.32435V12.4731Z" }),
|
|
24194
|
+
/* @__PURE__ */ jsx190("path", { d: "M202.994 28.2798V3.31983H206.322V28.2798H202.994Z" }),
|
|
24195
|
+
/* @__PURE__ */ jsx190("path", { d: "M174.792 28.2798L185.928 3.31983H190.024L201.16 28.2798H197.48L194.664 21.9118H181.32L178.472 28.2798H174.792ZM182.696 18.7438H193.288L187.976 6.80783L182.696 18.7438Z" }),
|
|
24196
|
+
/* @__PURE__ */ jsx190("path", { d: "M165.349 28.2478C160.581 28.6958 158.053 28.5038 158.149 23.7998V14.5198H154.597V11.6398H158.149V7.15983H161.413V11.6398H166.181V14.5198H161.413V22.5838C161.413 25.3358 161.541 25.6878 165.349 25.3998V28.2478Z" }),
|
|
24197
|
+
/* @__PURE__ */ jsx190("path", { d: "M138.102 28.2798V11.6398H141.366V14.4878C142.55 12.4718 144.47 11.1278 147.222 11.1278C151.254 11.1278 153.334 13.5918 153.334 18.3598V28.2798H150.038V18.4558C150.038 15.6718 148.694 13.9118 146.262 13.9118C143.318 13.9118 141.366 16.5038 141.366 20.0558V28.2798H138.102Z" }),
|
|
24198
|
+
/* @__PURE__ */ jsx190("path", { d: "M133.364 9.11183C132.052 9.11183 131.028 8.11983 131.028 6.80783C131.028 5.52783 132.052 4.50383 133.364 4.50383C134.676 4.50383 135.668 5.52783 135.668 6.80783C135.668 8.11983 134.612 9.11183 133.364 9.11183ZM131.764 28.2798V11.6398H134.996V28.2798H131.764Z" }),
|
|
24199
|
+
/* @__PURE__ */ jsx190("path", { d: "M120.958 28.2798V11.6398H124.062V14.8078C125.15 12.5678 127.422 11.4478 130.718 11.4478V14.4878C126.782 14.4878 124.062 15.8958 124.062 18.9038V28.2798H120.958Z" }),
|
|
24200
|
+
/* @__PURE__ */ jsx190("path", { d: "M102.558 34.6798V11.6398H105.822V14.2318C106.974 12.2798 108.894 11.0958 111.326 11.1278C115.678 11.1278 118.75 14.8078 118.75 20.0238C118.75 25.1438 115.678 28.7918 111.326 28.7918C108.894 28.7918 106.974 27.6078 105.822 25.6878V34.6798H102.558ZM110.622 26.0078C113.502 26.0078 115.518 23.5118 115.518 19.9918C115.518 16.4398 113.502 13.9118 110.622 13.9118C107.742 13.9118 105.694 16.4398 105.694 19.9918C105.694 23.5118 107.742 26.0078 110.622 26.0078Z" }),
|
|
24201
|
+
/* @__PURE__ */ jsx190("path", { d: "M92.5547 28.7918C87.5947 28.7918 84.3307 25.1118 84.3307 19.9278C84.3307 14.7758 87.5947 11.1278 92.5547 11.1278C96.6187 11.1278 100.043 14.1678 100.043 19.7038V20.9838H87.6907C87.9147 24.0238 89.4827 26.1038 92.5547 26.1038C94.7947 26.1038 96.2987 24.7918 96.6187 23.4478H99.8507C99.3387 26.3918 96.4907 28.7918 92.5547 28.7918ZM87.6907 18.5518H96.7787C96.6507 15.8318 94.9227 13.9118 92.4587 13.9118C89.6107 13.9118 88.1067 15.7678 87.6907 18.5518Z" }),
|
|
24202
|
+
/* @__PURE__ */ jsx190("path", { d: "M81.796 11.6398V28.2798H78.564V25.4318C77.38 27.4478 75.428 28.7918 72.676 28.7918C68.644 28.7918 66.596 26.3278 66.596 21.5598V11.6398H69.86V21.4638C69.86 24.2478 71.236 26.0078 73.636 26.0078C76.58 26.0078 78.564 23.4158 78.564 19.8638V11.6398H81.796Z" }),
|
|
24203
|
+
/* @__PURE__ */ jsx190("path", { d: "M60.452 28.2798V2.99983H63.716V28.2798H60.452Z" }),
|
|
24204
|
+
/* @__PURE__ */ jsx190("path", { d: "M53.104 15.2238C56.048 15.8638 57.68 18.2638 57.68 21.4318C57.68 25.4638 54.384 28.2798 49.68 28.2798H38V3.31983H48.848C53.68 3.31983 56.624 5.62383 56.624 9.65583C56.624 12.4078 55.248 14.4558 53.104 15.2238ZM41.328 6.48783V14.0398H47.952C51.312 14.0398 53.168 12.7278 53.168 10.1358C53.168 7.60783 51.28 6.48783 47.792 6.48783H41.328ZM48.72 25.1118C52.24 25.1118 54.16 23.5438 54.16 20.7598C54.16 18.2638 52.272 16.9838 48.848 16.9838H41.328V25.1118H48.72Z" })
|
|
24205
|
+
] }),
|
|
24206
|
+
/* @__PURE__ */ jsx190("defs", { children: /* @__PURE__ */ jsxs93("linearGradient", { id: gradientId, x1: "47.4999", y1: "35", x2: "51.8397", y2: "-28.0595", gradientUnits: "userSpaceOnUse", children: [
|
|
24207
|
+
/* @__PURE__ */ jsx190("stop", { offset: "0.135528", stopColor: "rgba(91, 33, 182, 1)" /* Purple800 */ }),
|
|
24208
|
+
/* @__PURE__ */ jsx190("stop", { offset: "0.705975", stopColor: "rgba(37, 99, 235, 1)" /* Blue600 */ })
|
|
24209
|
+
] }) })
|
|
24210
|
+
] });
|
|
24211
|
+
}
|
|
24212
|
+
|
|
24213
|
+
// src/components/Logos/HomeboundLogo.tsx
|
|
24214
|
+
import { trussProps as trussProps105, maybeCssVar as maybeCssVar50 } from "@homebound/truss/runtime";
|
|
24215
|
+
import { jsx as jsx191 } from "react/jsx-runtime";
|
|
24216
|
+
var __maybeInc23 = (inc) => {
|
|
24217
|
+
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24218
|
+
};
|
|
24219
|
+
function HomeboundLogo(props) {
|
|
24220
|
+
const {
|
|
24221
|
+
fill = "currentColor",
|
|
24222
|
+
width: width2 = "auto",
|
|
24223
|
+
height = "auto"
|
|
24224
|
+
} = props;
|
|
24225
|
+
return /* @__PURE__ */ jsx191("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...trussProps105({
|
|
24226
|
+
fill: ["fill_var", {
|
|
24227
|
+
"--fill": maybeCssVar50(fill)
|
|
24228
|
+
}],
|
|
24229
|
+
width: ["w_var", {
|
|
24230
|
+
"--width": maybeCssVar50(__maybeInc23(width2))
|
|
24231
|
+
}],
|
|
24232
|
+
height: ["h_var", {
|
|
24233
|
+
"--height": maybeCssVar50(__maybeInc23(height))
|
|
24234
|
+
}]
|
|
24235
|
+
}), children: /* @__PURE__ */ jsx191("path", { d: "M158.1,97.6H0.2L0,39.7L76.8,0l68,38.7l-3.1,5.3l-65-37L6.2,43.4l0.2,48h151.7V97.6z" }) });
|
|
24236
|
+
}
|
|
24237
|
+
|
|
24162
24238
|
// src/components/MaxLines.tsx
|
|
24163
24239
|
import { useLayoutEffect as useLayoutEffect8, useResizeObserver as useResizeObserver7 } from "@react-aria/utils";
|
|
24164
24240
|
import { useCallback as useCallback31, useEffect as useEffect33, useRef as useRef58, useState as useState50 } from "react";
|
|
24165
|
-
import { trussProps as
|
|
24166
|
-
import { jsx as
|
|
24241
|
+
import { trussProps as trussProps106, maybeCssVar as maybeCssVar51 } from "@homebound/truss/runtime";
|
|
24242
|
+
import { jsx as jsx192, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
24167
24243
|
function MaxLines({
|
|
24168
24244
|
maxLines,
|
|
24169
24245
|
children
|
|
@@ -24186,11 +24262,11 @@ function MaxLines({
|
|
|
24186
24262
|
ref: elRef,
|
|
24187
24263
|
onResize
|
|
24188
24264
|
});
|
|
24189
|
-
return /* @__PURE__ */
|
|
24190
|
-
/* @__PURE__ */
|
|
24265
|
+
return /* @__PURE__ */ jsxs94("div", { children: [
|
|
24266
|
+
/* @__PURE__ */ jsx192("div", { ref: elRef, ...trussProps106({
|
|
24191
24267
|
...!expanded ? {
|
|
24192
24268
|
WebkitLineClamp: ["lineClamp_var", {
|
|
24193
|
-
"--WebkitLineClamp":
|
|
24269
|
+
"--WebkitLineClamp": maybeCssVar51(maxLines)
|
|
24194
24270
|
}],
|
|
24195
24271
|
overflow: "oh",
|
|
24196
24272
|
display: "d_negwebkit_box",
|
|
@@ -24198,7 +24274,7 @@ function MaxLines({
|
|
|
24198
24274
|
textOverflow: "to_ellipsis"
|
|
24199
24275
|
} : {}
|
|
24200
24276
|
}), children }),
|
|
24201
|
-
hasMore && /* @__PURE__ */
|
|
24277
|
+
hasMore && /* @__PURE__ */ jsx192("button", { className: "db fw4 fz_14px lh_20px", onClick: () => setExpanded((prev) => !prev), children: expanded ? "Show Less" : "Show More" })
|
|
24202
24278
|
] });
|
|
24203
24279
|
}
|
|
24204
24280
|
|
|
@@ -24213,8 +24289,8 @@ import { useCallback as useCallback33, useEffect as useEffect34, useMemo as useM
|
|
|
24213
24289
|
// src/components/AppNav/AppNavGroupTrigger.tsx
|
|
24214
24290
|
import { useMemo as useMemo50, useRef as useRef59 } from "react";
|
|
24215
24291
|
import { mergeProps as mergeProps30, useButton as useButton11, useFocusRing as useFocusRing16, useHover as useHover20 } from "react-aria";
|
|
24216
|
-
import { trussProps as
|
|
24217
|
-
import { jsx as
|
|
24292
|
+
import { trussProps as trussProps107, mergeProps as mergeProps_14 } from "@homebound/truss/runtime";
|
|
24293
|
+
import { jsx as jsx193, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
24218
24294
|
function AppNavGroupTrigger(props) {
|
|
24219
24295
|
const {
|
|
24220
24296
|
label,
|
|
@@ -24246,7 +24322,7 @@ function AppNavGroupTrigger(props) {
|
|
|
24246
24322
|
hoverStyles: hoverStyles4,
|
|
24247
24323
|
pressedStyles: pressedStyles2
|
|
24248
24324
|
} = useMemo50(() => getNavLinkStyles("side"), []);
|
|
24249
|
-
return /* @__PURE__ */
|
|
24325
|
+
return /* @__PURE__ */ jsxs95("button", { type: "button", ...mergeProps30(buttonProps, focusProps, hoverProps, tid.trigger, {
|
|
24250
24326
|
ref,
|
|
24251
24327
|
"aria-expanded": expanded,
|
|
24252
24328
|
"aria-controls": navGroupId,
|
|
@@ -24264,7 +24340,7 @@ function AppNavGroupTrigger(props) {
|
|
|
24264
24340
|
})
|
|
24265
24341
|
}), children: [
|
|
24266
24342
|
label,
|
|
24267
|
-
/* @__PURE__ */
|
|
24343
|
+
/* @__PURE__ */ jsx193("div", { ...trussProps107({
|
|
24268
24344
|
...{
|
|
24269
24345
|
display: "df",
|
|
24270
24346
|
alignItems: "aic",
|
|
@@ -24274,7 +24350,7 @@ function AppNavGroupTrigger(props) {
|
|
|
24274
24350
|
...props.expanded ? {
|
|
24275
24351
|
transform: "transform_rotate_180deg"
|
|
24276
24352
|
} : {}
|
|
24277
|
-
}), children: /* @__PURE__ */
|
|
24353
|
+
}), children: /* @__PURE__ */ jsx193(Icon, { icon: "chevronDown" }) })
|
|
24278
24354
|
] });
|
|
24279
24355
|
}
|
|
24280
24356
|
|
|
@@ -24417,9 +24493,9 @@ function useAppNavGroupExpanded(linkGroup) {
|
|
|
24417
24493
|
}
|
|
24418
24494
|
|
|
24419
24495
|
// src/components/AppNav/AppNavGroup.tsx
|
|
24420
|
-
import { trussProps as
|
|
24421
|
-
import { Fragment as Fragment42, jsx as
|
|
24422
|
-
var
|
|
24496
|
+
import { trussProps as trussProps108, maybeCssVar as maybeCssVar52 } from "@homebound/truss/runtime";
|
|
24497
|
+
import { Fragment as Fragment42, jsx as jsx194, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
24498
|
+
var __maybeInc24 = (inc) => {
|
|
24423
24499
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24424
24500
|
};
|
|
24425
24501
|
function AppNavGroupView(props) {
|
|
@@ -24429,9 +24505,9 @@ function AppNavGroupView(props) {
|
|
|
24429
24505
|
} = props;
|
|
24430
24506
|
const tid = useTestIds(props, "linkGroup");
|
|
24431
24507
|
if (panelCollapsed) {
|
|
24432
|
-
return /* @__PURE__ */
|
|
24508
|
+
return /* @__PURE__ */ jsx194(Fragment42, { children: appNavLinkGroupLinks(linkGroup).map((link) => /* @__PURE__ */ jsx194(NavLink, { variant: "side", ...link, iconOnly: !!link.icon, ...tid[`link_${camelCase5(link.label)}`] }, link.label)) });
|
|
24433
24509
|
}
|
|
24434
|
-
return /* @__PURE__ */
|
|
24510
|
+
return /* @__PURE__ */ jsx194(AppNavGroupDisclosure, { ...props });
|
|
24435
24511
|
}
|
|
24436
24512
|
function AppNavGroupDisclosure(props) {
|
|
24437
24513
|
const {
|
|
@@ -24460,27 +24536,27 @@ function AppNavGroupDisclosure(props) {
|
|
|
24460
24536
|
ref: contentRef,
|
|
24461
24537
|
onResize
|
|
24462
24538
|
});
|
|
24463
|
-
return /* @__PURE__ */
|
|
24464
|
-
/* @__PURE__ */
|
|
24465
|
-
/* @__PURE__ */
|
|
24539
|
+
return /* @__PURE__ */ jsxs96("div", { className: "df fdc", ...tid, children: [
|
|
24540
|
+
/* @__PURE__ */ jsx194(AppNavGroupTrigger, { label: linkGroup.label, navGroupId, expanded, active: linkGroupHasActiveLink(linkGroup), onClick: onToggle, ...tid }),
|
|
24541
|
+
/* @__PURE__ */ jsx194("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...trussProps108({
|
|
24466
24542
|
overflow: "oh",
|
|
24467
24543
|
transition: "transitionHeight",
|
|
24468
24544
|
height: ["h_var", {
|
|
24469
|
-
"--height":
|
|
24545
|
+
"--height": maybeCssVar52(__maybeInc24(contentHeight))
|
|
24470
24546
|
}]
|
|
24471
24547
|
}), ...tid.panel, ...!expanded ? {
|
|
24472
24548
|
inert: "true"
|
|
24473
|
-
} : {}, children: /* @__PURE__ */
|
|
24549
|
+
} : {}, children: /* @__PURE__ */ jsx194("div", { ref: setContentEl, className: "df fdc", children: /* @__PURE__ */ jsx194(AppNavItems, { items: linkGroup.items, panelCollapsed: false, nested: true, ...tid }) }) })
|
|
24474
24550
|
] });
|
|
24475
24551
|
}
|
|
24476
24552
|
|
|
24477
24553
|
// src/components/AppNav/AppNavGroupMenu.tsx
|
|
24478
|
-
import { jsx as
|
|
24554
|
+
import { jsx as jsx195 } from "react/jsx-runtime";
|
|
24479
24555
|
function AppNavGroupMenu({
|
|
24480
24556
|
linkGroup,
|
|
24481
24557
|
...tid
|
|
24482
24558
|
}) {
|
|
24483
|
-
return /* @__PURE__ */
|
|
24559
|
+
return /* @__PURE__ */ jsx195(
|
|
24484
24560
|
ButtonMenu,
|
|
24485
24561
|
{
|
|
24486
24562
|
trigger: {
|
|
@@ -24496,8 +24572,8 @@ function AppNavGroupMenu({
|
|
|
24496
24572
|
}
|
|
24497
24573
|
|
|
24498
24574
|
// src/components/AppNav/AppNavSectionView.tsx
|
|
24499
|
-
import { trussProps as
|
|
24500
|
-
import { jsx as
|
|
24575
|
+
import { trussProps as trussProps109 } from "@homebound/truss/runtime";
|
|
24576
|
+
import { jsx as jsx196, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
24501
24577
|
function AppNavSectionView(props) {
|
|
24502
24578
|
const {
|
|
24503
24579
|
section,
|
|
@@ -24523,7 +24599,7 @@ function AppNavSectionView(props) {
|
|
|
24523
24599
|
"--borderColor": "var(--b-surface-separator)"
|
|
24524
24600
|
}]
|
|
24525
24601
|
};
|
|
24526
|
-
return /* @__PURE__ */
|
|
24602
|
+
return /* @__PURE__ */ jsxs97("div", { ...trussProps109({
|
|
24527
24603
|
...{
|
|
24528
24604
|
display: "df",
|
|
24529
24605
|
flexDirection: "fdc",
|
|
@@ -24531,7 +24607,7 @@ function AppNavSectionView(props) {
|
|
|
24531
24607
|
},
|
|
24532
24608
|
...showDivider ? dividerStyles : {}
|
|
24533
24609
|
}), ...tid, children: [
|
|
24534
|
-
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */
|
|
24610
|
+
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ jsx196("div", { ...trussProps109({
|
|
24535
24611
|
fontWeight: "fw6",
|
|
24536
24612
|
fontSize: "fz_10px",
|
|
24537
24613
|
lineHeight: "lh_14px",
|
|
@@ -24544,18 +24620,18 @@ function AppNavSectionView(props) {
|
|
|
24544
24620
|
paddingBottom: "pb1",
|
|
24545
24621
|
textTransform: "ttu"
|
|
24546
24622
|
}), ...tid.label, children: section.label }),
|
|
24547
|
-
/* @__PURE__ */
|
|
24623
|
+
/* @__PURE__ */ jsx196(AppNavItems, { ...scopeProps, items: section.items, variant, panelCollapsed, nested })
|
|
24548
24624
|
] });
|
|
24549
24625
|
}
|
|
24550
24626
|
|
|
24551
24627
|
// src/components/AppNav/AppNavItems.tsx
|
|
24552
|
-
import { Fragment as Fragment43, jsx as
|
|
24628
|
+
import { Fragment as Fragment43, jsx as jsx197 } from "react/jsx-runtime";
|
|
24553
24629
|
function AppNavItems(props) {
|
|
24554
24630
|
const { items, variant = "side", panelCollapsed = false, nested = false } = props;
|
|
24555
24631
|
const tid = useTestIds(props, "appNav");
|
|
24556
|
-
return /* @__PURE__ */
|
|
24632
|
+
return /* @__PURE__ */ jsx197(Fragment43, { children: items.map((item, idx) => {
|
|
24557
24633
|
if (isAppNavLink(item)) {
|
|
24558
|
-
return /* @__PURE__ */
|
|
24634
|
+
return /* @__PURE__ */ jsx197(
|
|
24559
24635
|
NavLink,
|
|
24560
24636
|
{
|
|
24561
24637
|
variant,
|
|
@@ -24568,7 +24644,7 @@ function AppNavItems(props) {
|
|
|
24568
24644
|
);
|
|
24569
24645
|
}
|
|
24570
24646
|
if (isAppNavGroup(item)) {
|
|
24571
|
-
return variant === "global" ? /* @__PURE__ */
|
|
24647
|
+
return variant === "global" ? /* @__PURE__ */ jsx197(AppNavGroupMenu, { linkGroup: item, ...tid.linkGroup }, appNavItemKey(item)) : /* @__PURE__ */ jsx197(
|
|
24572
24648
|
AppNavGroupView,
|
|
24573
24649
|
{
|
|
24574
24650
|
linkGroup: item,
|
|
@@ -24579,7 +24655,7 @@ function AppNavItems(props) {
|
|
|
24579
24655
|
);
|
|
24580
24656
|
}
|
|
24581
24657
|
if (isAppNavSection(item)) {
|
|
24582
|
-
return /* @__PURE__ */
|
|
24658
|
+
return /* @__PURE__ */ jsx197(
|
|
24583
24659
|
AppNavSectionView,
|
|
24584
24660
|
{
|
|
24585
24661
|
section: item,
|
|
@@ -24602,8 +24678,8 @@ import { useEffect as useEffect35, useState as useState53 } from "react";
|
|
|
24602
24678
|
import { FocusScope as FocusScope5, usePreventScroll as usePreventScroll3 } from "react-aria";
|
|
24603
24679
|
import { createPortal as createPortal7 } from "react-dom";
|
|
24604
24680
|
import { useLocation } from "react-router-dom";
|
|
24605
|
-
import { trussProps as
|
|
24606
|
-
import { Fragment as Fragment44, jsx as
|
|
24681
|
+
import { trussProps as trussProps110, mergeProps as mergeProps31, maybeCssVar as maybeCssVar53 } from "@homebound/truss/runtime";
|
|
24682
|
+
import { Fragment as Fragment44, jsx as jsx198, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
24607
24683
|
function NavbarMobileMenu(props) {
|
|
24608
24684
|
const {
|
|
24609
24685
|
items
|
|
@@ -24621,11 +24697,11 @@ function NavbarMobileMenu(props) {
|
|
|
24621
24697
|
setIsOpen(false);
|
|
24622
24698
|
}, [pathname, search]);
|
|
24623
24699
|
const close = () => setIsOpen(false);
|
|
24624
|
-
return /* @__PURE__ */
|
|
24625
|
-
/* @__PURE__ */
|
|
24700
|
+
return /* @__PURE__ */ jsxs98(Fragment44, { children: [
|
|
24701
|
+
/* @__PURE__ */ jsx198(IconButton, { icon: isOpen ? "menuClose" : "menu", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: isOpen ? "Close navigation" : "Open navigation", onClick: () => setIsOpen((open) => !open), ...tid.mobileMenu }),
|
|
24626
24702
|
createPortal7(
|
|
24627
24703
|
/* AnimatePresence keeps the drawer mounted through its slide/fade-out before unmounting.*/
|
|
24628
|
-
/* @__PURE__ */
|
|
24704
|
+
/* @__PURE__ */ jsx198(AnimatePresence6, { children: isOpen && /* @__PURE__ */ jsx198(NavbarMobileDrawer, { items, onClose: close, tid }) }),
|
|
24629
24705
|
document.body
|
|
24630
24706
|
)
|
|
24631
24707
|
] });
|
|
@@ -24639,14 +24715,14 @@ function NavbarMobileDrawer({
|
|
|
24639
24715
|
const overlayTopStyle = {
|
|
24640
24716
|
top: bannerHeightPx
|
|
24641
24717
|
};
|
|
24642
|
-
return /* @__PURE__ */
|
|
24643
|
-
/* @__PURE__ */
|
|
24718
|
+
return /* @__PURE__ */ jsxs98(Fragment44, { children: [
|
|
24719
|
+
/* @__PURE__ */ jsx198(motion6.div, { ...mergeProps31(void 0, overlayTopStyle, {
|
|
24644
24720
|
position: "fixed",
|
|
24645
24721
|
right: "right0",
|
|
24646
24722
|
bottom: "bottom0",
|
|
24647
24723
|
left: "left0",
|
|
24648
24724
|
zIndex: ["z_var", {
|
|
24649
|
-
"--zIndex":
|
|
24725
|
+
"--zIndex": maybeCssVar53(zIndices.navbarMobileMenuScrim)
|
|
24650
24726
|
}],
|
|
24651
24727
|
backgroundColor: ["bgColor_var", {
|
|
24652
24728
|
"--backgroundColor": "var(--b-scrim)"
|
|
@@ -24661,7 +24737,7 @@ function NavbarMobileDrawer({
|
|
|
24661
24737
|
ease: "linear",
|
|
24662
24738
|
duration: 0.2
|
|
24663
24739
|
}, onClick: onClose, ...tid.mobileMenuScrim }, "navbarMobileMenuScrim"),
|
|
24664
|
-
/* @__PURE__ */
|
|
24740
|
+
/* @__PURE__ */ jsx198(FocusScope5, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ jsxs98(motion6.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...mergeProps31(void 0, overlayTopStyle, {
|
|
24665
24741
|
position: "fixed",
|
|
24666
24742
|
bottom: "bottom0",
|
|
24667
24743
|
left: "left0",
|
|
@@ -24671,7 +24747,7 @@ function NavbarMobileDrawer({
|
|
|
24671
24747
|
width: "w_260px",
|
|
24672
24748
|
overflow: "oh",
|
|
24673
24749
|
zIndex: ["z_var", {
|
|
24674
|
-
"--zIndex":
|
|
24750
|
+
"--zIndex": maybeCssVar53(zIndices.navbarMobileMenu)
|
|
24675
24751
|
}],
|
|
24676
24752
|
backgroundColor: ["bgColor_var", {
|
|
24677
24753
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -24686,7 +24762,7 @@ function NavbarMobileDrawer({
|
|
|
24686
24762
|
ease: "linear",
|
|
24687
24763
|
duration: 0.2
|
|
24688
24764
|
}, onClick: (e) => e.stopPropagation(), ...tid.mobileMenuDrawer, children: [
|
|
24689
|
-
/* @__PURE__ */
|
|
24765
|
+
/* @__PURE__ */ jsx198("div", { ...trussProps110({
|
|
24690
24766
|
...{
|
|
24691
24767
|
display: "df",
|
|
24692
24768
|
alignItems: "aic",
|
|
@@ -24701,11 +24777,11 @@ function NavbarMobileDrawer({
|
|
|
24701
24777
|
}]
|
|
24702
24778
|
},
|
|
24703
24779
|
...pageContentPaddingX
|
|
24704
|
-
}), children: /* @__PURE__ */
|
|
24705
|
-
/* @__PURE__ */
|
|
24780
|
+
}), children: /* @__PURE__ */ jsx198(IconButton, { icon: "x", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: "Close navigation", onClick: onClose, ...tid.mobileMenuClose }) }),
|
|
24781
|
+
/* @__PURE__ */ jsx198(
|
|
24706
24782
|
"nav",
|
|
24707
24783
|
{
|
|
24708
|
-
...
|
|
24784
|
+
...trussProps110({
|
|
24709
24785
|
...{
|
|
24710
24786
|
flexGrow: "fg1",
|
|
24711
24787
|
overflowY: "oya",
|
|
@@ -24723,7 +24799,7 @@ function NavbarMobileDrawer({
|
|
|
24723
24799
|
}
|
|
24724
24800
|
},
|
|
24725
24801
|
...tid.mobileMenuPanel,
|
|
24726
|
-
children: /* @__PURE__ */
|
|
24802
|
+
children: /* @__PURE__ */ jsx198(AppNavItems, { items, panelCollapsed: false, ...tid })
|
|
24727
24803
|
}
|
|
24728
24804
|
)
|
|
24729
24805
|
] }, "navbarMobileMenuDrawer") })
|
|
@@ -24731,8 +24807,8 @@ function NavbarMobileDrawer({
|
|
|
24731
24807
|
}
|
|
24732
24808
|
|
|
24733
24809
|
// src/components/Navbar/Navbar.tsx
|
|
24734
|
-
import { trussProps as
|
|
24735
|
-
import { jsx as
|
|
24810
|
+
import { trussProps as trussProps111 } from "@homebound/truss/runtime";
|
|
24811
|
+
import { jsx as jsx199, jsxs as jsxs99 } from "react/jsx-runtime";
|
|
24736
24812
|
function Navbar(props) {
|
|
24737
24813
|
const {
|
|
24738
24814
|
brand,
|
|
@@ -24751,7 +24827,7 @@ function Navbar(props) {
|
|
|
24751
24827
|
overflows
|
|
24752
24828
|
} = useContentOverflow(!sm);
|
|
24753
24829
|
const showMobile = sm || overflows;
|
|
24754
|
-
return /* @__PURE__ */
|
|
24830
|
+
return /* @__PURE__ */ jsx199(ContrastScope, { children: /* @__PURE__ */ jsxs99("nav", { ...trussProps111({
|
|
24755
24831
|
...{
|
|
24756
24832
|
backgroundColor: ["bgColor_var", {
|
|
24757
24833
|
"--backgroundColor": "var(--b-surface-raised)"
|
|
@@ -24767,10 +24843,10 @@ function Navbar(props) {
|
|
|
24767
24843
|
},
|
|
24768
24844
|
...headerContentPaddingX(showMobile)
|
|
24769
24845
|
}), ...tid, children: [
|
|
24770
|
-
/* @__PURE__ */
|
|
24771
|
-
/* @__PURE__ */
|
|
24772
|
-
showMobile && /* @__PURE__ */
|
|
24773
|
-
/* @__PURE__ */
|
|
24846
|
+
/* @__PURE__ */ jsxs99("div", { className: "df aic gap3 fg1 mw0", children: [
|
|
24847
|
+
/* @__PURE__ */ jsxs99("div", { className: "df aic fs0 gap2", children: [
|
|
24848
|
+
showMobile && /* @__PURE__ */ jsx199(NavbarMobileMenu, { items, ...tid }),
|
|
24849
|
+
/* @__PURE__ */ jsx199("div", { ...trussProps111({
|
|
24774
24850
|
flexShrink: "fs0",
|
|
24775
24851
|
...hideBrandOnMobile && showMobile ? {
|
|
24776
24852
|
display: "dn"
|
|
@@ -24779,7 +24855,7 @@ function Navbar(props) {
|
|
|
24779
24855
|
] }),
|
|
24780
24856
|
!sm && // Stays mounted while overflowing (hidden) so the items remain measurable and the bar
|
|
24781
24857
|
// can expand again as space frees up.
|
|
24782
|
-
/* @__PURE__ */
|
|
24858
|
+
/* @__PURE__ */ jsx199("div", { ref: containerRef, ...trussProps111({
|
|
24783
24859
|
display: "df",
|
|
24784
24860
|
alignItems: "aic",
|
|
24785
24861
|
flexGrow: "fg1",
|
|
@@ -24788,11 +24864,11 @@ function Navbar(props) {
|
|
|
24788
24864
|
...overflows ? {
|
|
24789
24865
|
visibility: "visibility_hidden"
|
|
24790
24866
|
} : {}
|
|
24791
|
-
}), ...tid.items, children: /* @__PURE__ */
|
|
24867
|
+
}), ...tid.items, children: /* @__PURE__ */ jsx199("div", { ref: contentRef, className: "df aic gap2 width_max_content", children: /* @__PURE__ */ jsx199(AppNavItems, { variant: "global", items, ...tid }) }) })
|
|
24792
24868
|
] }),
|
|
24793
|
-
/* @__PURE__ */
|
|
24794
|
-
rightSlot && /* @__PURE__ */
|
|
24795
|
-
user && /* @__PURE__ */
|
|
24869
|
+
/* @__PURE__ */ jsxs99("div", { className: "df aic gap1", children: [
|
|
24870
|
+
rightSlot && /* @__PURE__ */ jsx199("div", { className: "df aic gap1", ...tid.rightSlot, children: rightSlot }),
|
|
24871
|
+
user && /* @__PURE__ */ jsx199(NavbarUserMenu, { user, ...tid.userMenu })
|
|
24796
24872
|
] })
|
|
24797
24873
|
] }) });
|
|
24798
24874
|
}
|
|
@@ -24800,7 +24876,7 @@ function NavbarUserMenu({
|
|
|
24800
24876
|
user,
|
|
24801
24877
|
...tid
|
|
24802
24878
|
}) {
|
|
24803
|
-
return /* @__PURE__ */
|
|
24879
|
+
return /* @__PURE__ */ jsx199("div", { className: "df aic fs0 ml1", children: /* @__PURE__ */ jsx199(ButtonMenu, { items: user.menuItems, persistentItems: user.persistentItems, trigger: {
|
|
24804
24880
|
src: user.picture,
|
|
24805
24881
|
name: user.name,
|
|
24806
24882
|
size: "sm",
|
|
@@ -24809,8 +24885,8 @@ function NavbarUserMenu({
|
|
|
24809
24885
|
}
|
|
24810
24886
|
|
|
24811
24887
|
// src/components/Pagination.tsx
|
|
24812
|
-
import { trussProps as
|
|
24813
|
-
import { jsx as
|
|
24888
|
+
import { trussProps as trussProps112 } from "@homebound/truss/runtime";
|
|
24889
|
+
import { jsx as jsx200, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
24814
24890
|
var defaultPage = {
|
|
24815
24891
|
offset: 0,
|
|
24816
24892
|
limit: 100
|
|
@@ -24842,7 +24918,7 @@ function Pagination(props) {
|
|
|
24842
24918
|
}
|
|
24843
24919
|
}
|
|
24844
24920
|
const tid = useTestIds(props, "pagination");
|
|
24845
|
-
return /* @__PURE__ */
|
|
24921
|
+
return /* @__PURE__ */ jsxs100("div", { ...trussProps112({
|
|
24846
24922
|
display: "df",
|
|
24847
24923
|
borderColor: ["bc_var", {
|
|
24848
24924
|
"--borderColor": "var(--b-surface-separator)"
|
|
@@ -24859,24 +24935,24 @@ function Pagination(props) {
|
|
|
24859
24935
|
paddingRight: "pr2",
|
|
24860
24936
|
paddingTop: "pt2"
|
|
24861
24937
|
}), ...tid, children: [
|
|
24862
|
-
/* @__PURE__ */
|
|
24863
|
-
/* @__PURE__ */
|
|
24938
|
+
/* @__PURE__ */ jsx200("div", { className: "df mta mba mr2", ...tid.pageSizeLabel, children: "Page size:" }),
|
|
24939
|
+
/* @__PURE__ */ jsx200("div", { className: "w_78px", children: /* @__PURE__ */ jsx200(SelectField, { compact: true, label: "Page Size", labelStyle: "hidden", options: pageOptions, value: pageSize, onSelect: (val) => set({
|
|
24864
24940
|
pageNumber: 1,
|
|
24865
24941
|
pageSize: val
|
|
24866
24942
|
}), autoSort: false, ...tid.pageSize }) }),
|
|
24867
|
-
/* @__PURE__ */
|
|
24868
|
-
/* @__PURE__ */
|
|
24943
|
+
/* @__PURE__ */ jsxs100("div", { className: "mla mta mba df", children: [
|
|
24944
|
+
/* @__PURE__ */ jsxs100("div", { className: "df mta mba mr2", ...tid.pageInfoLabel, children: [
|
|
24869
24945
|
first,
|
|
24870
24946
|
" ",
|
|
24871
24947
|
showLast ? `- ${last}` : "",
|
|
24872
24948
|
" of ",
|
|
24873
24949
|
totalCount
|
|
24874
24950
|
] }),
|
|
24875
|
-
/* @__PURE__ */
|
|
24951
|
+
/* @__PURE__ */ jsx200(IconButton, { icon: "chevronLeft", color: hasPrevPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
|
|
24876
24952
|
pageNumber: pageNumber - 1,
|
|
24877
24953
|
pageSize
|
|
24878
24954
|
}), disabled: !hasPrevPage, ...tid.previousIcon }),
|
|
24879
|
-
/* @__PURE__ */
|
|
24955
|
+
/* @__PURE__ */ jsx200(IconButton, { icon: "chevronRight", color: hasNextPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
|
|
24880
24956
|
pageNumber: pageNumber + 1,
|
|
24881
24957
|
pageSize
|
|
24882
24958
|
}), disabled: !hasNextPage, ...tid.nextIcon })
|
|
@@ -24900,8 +24976,8 @@ function toPageNumberSize(page) {
|
|
|
24900
24976
|
// src/components/ScrollShadows.tsx
|
|
24901
24977
|
import { useResizeObserver as useResizeObserver9 } from "@react-aria/utils";
|
|
24902
24978
|
import { useCallback as useCallback34, useMemo as useMemo52, useRef as useRef60, useState as useState54 } from "react";
|
|
24903
|
-
import { trussProps as
|
|
24904
|
-
import { jsx as
|
|
24979
|
+
import { trussProps as trussProps113, maybeCssVar as maybeCssVar54 } from "@homebound/truss/runtime";
|
|
24980
|
+
import { jsx as jsx201, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
24905
24981
|
function ScrollShadows(props) {
|
|
24906
24982
|
const {
|
|
24907
24983
|
children,
|
|
@@ -24925,7 +25001,7 @@ function ScrollShadows(props) {
|
|
|
24925
25001
|
const commonStyles = {
|
|
24926
25002
|
position: "absolute",
|
|
24927
25003
|
zIndex: ["z_var", {
|
|
24928
|
-
"--zIndex":
|
|
25004
|
+
"--zIndex": maybeCssVar54(zIndices.scrollShadow)
|
|
24929
25005
|
}],
|
|
24930
25006
|
pointerEvents: "pointerEvents_none"
|
|
24931
25007
|
};
|
|
@@ -24958,7 +25034,7 @@ function ScrollShadows(props) {
|
|
|
24958
25034
|
...startShadowStyles2,
|
|
24959
25035
|
...{
|
|
24960
25036
|
background: ["background_var", {
|
|
24961
|
-
"--background":
|
|
25037
|
+
"--background": maybeCssVar54(startGradient)
|
|
24962
25038
|
}]
|
|
24963
25039
|
}
|
|
24964
25040
|
}, {
|
|
@@ -24966,7 +25042,7 @@ function ScrollShadows(props) {
|
|
|
24966
25042
|
...endShadowStyles2,
|
|
24967
25043
|
...{
|
|
24968
25044
|
background: ["background_var", {
|
|
24969
|
-
"--background":
|
|
25045
|
+
"--background": maybeCssVar54(endGradient)
|
|
24970
25046
|
}]
|
|
24971
25047
|
}
|
|
24972
25048
|
}];
|
|
@@ -24991,10 +25067,10 @@ function ScrollShadows(props) {
|
|
|
24991
25067
|
ref: scrollRef,
|
|
24992
25068
|
onResize
|
|
24993
25069
|
});
|
|
24994
|
-
return /* @__PURE__ */
|
|
25070
|
+
return /* @__PURE__ */ jsxs101("div", { ...trussProps113({
|
|
24995
25071
|
display: "df",
|
|
24996
25072
|
flexDirection: ["fd_var", {
|
|
24997
|
-
"--flexDirection":
|
|
25073
|
+
"--flexDirection": maybeCssVar54(!horizontal ? "column" : "row")
|
|
24998
25074
|
}],
|
|
24999
25075
|
position: "relative",
|
|
25000
25076
|
overflow: "oh",
|
|
@@ -25007,23 +25083,23 @@ function ScrollShadows(props) {
|
|
|
25007
25083
|
width: width2
|
|
25008
25084
|
}
|
|
25009
25085
|
}), ...tid, children: [
|
|
25010
|
-
/* @__PURE__ */
|
|
25086
|
+
/* @__PURE__ */ jsx201("div", { ...trussProps113({
|
|
25011
25087
|
...startShadowStyles,
|
|
25012
25088
|
...{
|
|
25013
25089
|
opacity: ["o_var", {
|
|
25014
|
-
"--opacity":
|
|
25090
|
+
"--opacity": maybeCssVar54(showStartShadow ? 1 : 0)
|
|
25015
25091
|
}]
|
|
25016
25092
|
}
|
|
25017
25093
|
}), "data-chromatic": "ignore" }),
|
|
25018
|
-
/* @__PURE__ */
|
|
25094
|
+
/* @__PURE__ */ jsx201("div", { ...trussProps113({
|
|
25019
25095
|
...endShadowStyles,
|
|
25020
25096
|
...{
|
|
25021
25097
|
opacity: ["o_var", {
|
|
25022
|
-
"--opacity":
|
|
25098
|
+
"--opacity": maybeCssVar54(showEndShadow ? 1 : 0)
|
|
25023
25099
|
}]
|
|
25024
25100
|
}
|
|
25025
25101
|
}), "data-chromatic": "ignore" }),
|
|
25026
|
-
/* @__PURE__ */
|
|
25102
|
+
/* @__PURE__ */ jsx201("div", { ...trussProps113({
|
|
25027
25103
|
...xss,
|
|
25028
25104
|
...{
|
|
25029
25105
|
overflow: "oa",
|
|
@@ -25044,7 +25120,7 @@ import {
|
|
|
25044
25120
|
useRef as useRef61,
|
|
25045
25121
|
useState as useState55
|
|
25046
25122
|
} from "react";
|
|
25047
|
-
import { jsx as
|
|
25123
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
25048
25124
|
var SIDE_NAV_LAYOUT_STATE_STORAGE_KEY = "beam.sideNavLayout.navState";
|
|
25049
25125
|
function loadStoredNavState() {
|
|
25050
25126
|
try {
|
|
@@ -25092,7 +25168,7 @@ function SideNavLayoutProvider(props) {
|
|
|
25092
25168
|
});
|
|
25093
25169
|
}, []);
|
|
25094
25170
|
const value = useMemo53(() => ({ navState, setNavState }), [navState, setNavState]);
|
|
25095
|
-
return /* @__PURE__ */
|
|
25171
|
+
return /* @__PURE__ */ jsx202(SideNavLayoutContext.Provider, { value, children: props.children });
|
|
25096
25172
|
}
|
|
25097
25173
|
function useSideNavLayoutContext() {
|
|
25098
25174
|
return useContext26(SideNavLayoutContext) ?? { navState: "expanded", setNavState: () => {
|
|
@@ -25103,8 +25179,8 @@ function useHasSideNavLayoutProvider() {
|
|
|
25103
25179
|
}
|
|
25104
25180
|
|
|
25105
25181
|
// src/components/SideNav/SideNav.tsx
|
|
25106
|
-
import { trussProps as
|
|
25107
|
-
import { jsx as
|
|
25182
|
+
import { trussProps as trussProps114 } from "@homebound/truss/runtime";
|
|
25183
|
+
import { jsx as jsx203, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
25108
25184
|
function SideNav(props) {
|
|
25109
25185
|
const {
|
|
25110
25186
|
top,
|
|
@@ -25117,8 +25193,8 @@ function SideNav(props) {
|
|
|
25117
25193
|
const tid = useTestIds(props, "sideNav");
|
|
25118
25194
|
const panelCollapsed = navState === "collapse";
|
|
25119
25195
|
const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
|
|
25120
|
-
return /* @__PURE__ */
|
|
25121
|
-
top !== void 0 && /* @__PURE__ */
|
|
25196
|
+
return /* @__PURE__ */ jsxs102("nav", { className: "df fdc h100 fs0", ...tid, children: [
|
|
25197
|
+
top !== void 0 && /* @__PURE__ */ jsx203("div", { ...trussProps114({
|
|
25122
25198
|
flexShrink: "fs0",
|
|
25123
25199
|
paddingLeft: "pl2",
|
|
25124
25200
|
paddingRight: "pr2",
|
|
@@ -25129,7 +25205,7 @@ function SideNav(props) {
|
|
|
25129
25205
|
paddingBottom: "pb4"
|
|
25130
25206
|
} : {}
|
|
25131
25207
|
}), ...tid.top, children: top }),
|
|
25132
|
-
/* @__PURE__ */
|
|
25208
|
+
/* @__PURE__ */ jsx203("div", { ...trussProps114({
|
|
25133
25209
|
flexGrow: "fg1",
|
|
25134
25210
|
overflowY: "oya",
|
|
25135
25211
|
display: "df",
|
|
@@ -25141,8 +25217,8 @@ function SideNav(props) {
|
|
|
25141
25217
|
...top === void 0 ? {
|
|
25142
25218
|
paddingTop: "pt5"
|
|
25143
25219
|
} : {}
|
|
25144
|
-
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */
|
|
25145
|
-
footer !== void 0 && /* @__PURE__ */
|
|
25220
|
+
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ jsx203(AppNavItems, { items, panelCollapsed }) }),
|
|
25221
|
+
footer !== void 0 && /* @__PURE__ */ jsx203("div", { ...trussProps114({
|
|
25146
25222
|
flexShrink: "fs0",
|
|
25147
25223
|
paddingLeft: "pl2",
|
|
25148
25224
|
paddingRight: "pr2",
|
|
@@ -25219,10 +25295,10 @@ var snackbarId = 1;
|
|
|
25219
25295
|
// src/components/Stepper.tsx
|
|
25220
25296
|
import { useRef as useRef62 } from "react";
|
|
25221
25297
|
import { useButton as useButton12, useFocusRing as useFocusRing17, useHover as useHover21 } from "react-aria";
|
|
25222
|
-
import { trussProps as
|
|
25223
|
-
import { jsx as
|
|
25298
|
+
import { trussProps as trussProps115, maybeCssVar as maybeCssVar55 } from "@homebound/truss/runtime";
|
|
25299
|
+
import { jsx as jsx204, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
25224
25300
|
import { createElement as createElement6 } from "react";
|
|
25225
|
-
var
|
|
25301
|
+
var __maybeInc25 = (inc) => {
|
|
25226
25302
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
25227
25303
|
};
|
|
25228
25304
|
function Stepper(props) {
|
|
@@ -25239,8 +25315,8 @@ function Stepper(props) {
|
|
|
25239
25315
|
const maxStepWidth = 200;
|
|
25240
25316
|
const minStepWidth = 100;
|
|
25241
25317
|
const gap = 8;
|
|
25242
|
-
return /* @__PURE__ */
|
|
25243
|
-
/* @__PURE__ */
|
|
25318
|
+
return /* @__PURE__ */ jsxs103("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
25319
|
+
/* @__PURE__ */ jsx204("ol", { ...trussProps115({
|
|
25244
25320
|
padding: "p_0",
|
|
25245
25321
|
margin: "m_0",
|
|
25246
25322
|
listStyle: "lis_none",
|
|
@@ -25250,7 +25326,7 @@ function Stepper(props) {
|
|
|
25250
25326
|
}]
|
|
25251
25327
|
}), children: steps.map((step) => {
|
|
25252
25328
|
const isCurrent = currentStep === step.value;
|
|
25253
|
-
return /* @__PURE__ */ createElement6("li", { ...
|
|
25329
|
+
return /* @__PURE__ */ createElement6("li", { ...trussProps115({
|
|
25254
25330
|
display: "df",
|
|
25255
25331
|
flexGrow: "fg1",
|
|
25256
25332
|
flexDirection: "fdc",
|
|
@@ -25260,9 +25336,9 @@ function Stepper(props) {
|
|
|
25260
25336
|
minWidth: ["mw_var", {
|
|
25261
25337
|
"--minWidth": `${minStepWidth}px`
|
|
25262
25338
|
}]
|
|
25263
|
-
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */
|
|
25339
|
+
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx204(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
25264
25340
|
}) }),
|
|
25265
|
-
/* @__PURE__ */
|
|
25341
|
+
/* @__PURE__ */ jsx204("div", { ...trussProps115({
|
|
25266
25342
|
marginTop: "mt1",
|
|
25267
25343
|
backgroundColor: ["bgColor_var", {
|
|
25268
25344
|
"--backgroundColor": "var(--b-field-border-default)"
|
|
@@ -25275,14 +25351,14 @@ function Stepper(props) {
|
|
|
25275
25351
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
25276
25352
|
}],
|
|
25277
25353
|
width: "w100"
|
|
25278
|
-
}), children: /* @__PURE__ */
|
|
25354
|
+
}), children: /* @__PURE__ */ jsx204("div", { ...trussProps115({
|
|
25279
25355
|
backgroundColor: ["bgColor_var", {
|
|
25280
25356
|
"--backgroundColor": "var(--b-primary)"
|
|
25281
25357
|
}],
|
|
25282
25358
|
transition: "transition_width_200ms",
|
|
25283
25359
|
height: "h100",
|
|
25284
25360
|
width: ["w_var", {
|
|
25285
|
-
"--width":
|
|
25361
|
+
"--width": maybeCssVar55(__maybeInc25(`${(lastCompletedStep + 1) / steps.length * 100}%`))
|
|
25286
25362
|
}]
|
|
25287
25363
|
}) }) })
|
|
25288
25364
|
] });
|
|
@@ -25318,7 +25394,7 @@ function StepButton(props) {
|
|
|
25318
25394
|
boxShadow: "bshFocus"
|
|
25319
25395
|
};
|
|
25320
25396
|
const tid = useTestIds(props, "stepButton");
|
|
25321
|
-
return /* @__PURE__ */
|
|
25397
|
+
return /* @__PURE__ */ jsxs103("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...trussProps115({
|
|
25322
25398
|
...{
|
|
25323
25399
|
fontWeight: "fw6",
|
|
25324
25400
|
fontSize: "fz_14px",
|
|
@@ -25379,7 +25455,7 @@ function StepButton(props) {
|
|
|
25379
25455
|
} : {},
|
|
25380
25456
|
...isFocusVisible ? focusRingStyles2 : {}
|
|
25381
25457
|
}), ...tid[defaultTestId(label)], children: [
|
|
25382
|
-
/* @__PURE__ */
|
|
25458
|
+
/* @__PURE__ */ jsx204("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ jsx204(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
|
|
25383
25459
|
label
|
|
25384
25460
|
] });
|
|
25385
25461
|
}
|
|
@@ -25390,12 +25466,12 @@ function StepIcon({
|
|
|
25390
25466
|
isCurrent = false
|
|
25391
25467
|
}) {
|
|
25392
25468
|
if (state === "error") {
|
|
25393
|
-
return /* @__PURE__ */
|
|
25469
|
+
return /* @__PURE__ */ jsx204(Icon, { icon: "errorCircle" });
|
|
25394
25470
|
}
|
|
25395
25471
|
if (state === "complete") {
|
|
25396
|
-
return /* @__PURE__ */
|
|
25472
|
+
return /* @__PURE__ */ jsx204(Icon, { icon: "check" });
|
|
25397
25473
|
}
|
|
25398
|
-
return /* @__PURE__ */
|
|
25474
|
+
return /* @__PURE__ */ jsx204("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ jsx204("div", { ...trussProps115({
|
|
25399
25475
|
width: "w_10px",
|
|
25400
25476
|
height: "h_10px",
|
|
25401
25477
|
borderStyle: "bss",
|
|
@@ -25411,8 +25487,8 @@ function StepIcon({
|
|
|
25411
25487
|
// src/components/StepperTabs/StepperTab.tsx
|
|
25412
25488
|
import { useRef as useRef63 } from "react";
|
|
25413
25489
|
import { mergeProps as mergeProps32, useButton as useButton13, useFocusRing as useFocusRing18, useHover as useHover22, VisuallyHidden as VisuallyHidden10 } from "react-aria";
|
|
25414
|
-
import { trussProps as
|
|
25415
|
-
import { Fragment as Fragment45, jsx as
|
|
25490
|
+
import { trussProps as trussProps116 } from "@homebound/truss/runtime";
|
|
25491
|
+
import { Fragment as Fragment45, jsx as jsx205, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
25416
25492
|
function StepperTab(props) {
|
|
25417
25493
|
const {
|
|
25418
25494
|
label,
|
|
@@ -25443,7 +25519,7 @@ function StepperTab(props) {
|
|
|
25443
25519
|
const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
|
|
25444
25520
|
const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
|
|
25445
25521
|
const tid = useTestIds(props, "stepperTab");
|
|
25446
|
-
return /* @__PURE__ */
|
|
25522
|
+
return /* @__PURE__ */ jsxs104("button", { ref, ...mergeProps32(buttonProps, focusProps, hoverProps), "aria-label": label, ...trussProps116({
|
|
25447
25523
|
...stepperTabStyles.baseStyles,
|
|
25448
25524
|
...getStateStyles(active, completed),
|
|
25449
25525
|
...isHovered && !disabled ? stepperTabStyles.hoverStyles : {},
|
|
@@ -25451,10 +25527,10 @@ function StepperTab(props) {
|
|
|
25451
25527
|
...disabled ? stepperTabStyles.disabledStyles : {},
|
|
25452
25528
|
...isFocusVisible ? stepperTabStyles.focusRingStyles : {}
|
|
25453
25529
|
}), ...tid[defaultTestId(value)], children: [
|
|
25454
|
-
!collapsed && /* @__PURE__ */
|
|
25455
|
-
/* @__PURE__ */
|
|
25456
|
-
/* @__PURE__ */
|
|
25457
|
-
/* @__PURE__ */
|
|
25530
|
+
!collapsed && /* @__PURE__ */ jsxs104(Fragment45, { children: [
|
|
25531
|
+
/* @__PURE__ */ jsxs104("span", { className: "dg jic mw0", children: [
|
|
25532
|
+
/* @__PURE__ */ jsx205("span", { className: "fw6 fz_14px lh_20px visibility_hidden gridArea_1_1 oh d_negwebkit_box wbo_vertical to_ellipsis wlc_1 wordBreak_break_all", "aria-hidden": true, children: label }),
|
|
25533
|
+
/* @__PURE__ */ jsx205("span", { ...trussProps116({
|
|
25458
25534
|
gridArea: "gridArea_1_1",
|
|
25459
25535
|
overflow: "oh",
|
|
25460
25536
|
display: "d_negwebkit_box",
|
|
@@ -25469,7 +25545,7 @@ function StepperTab(props) {
|
|
|
25469
25545
|
} : {}
|
|
25470
25546
|
}), children: label })
|
|
25471
25547
|
] }),
|
|
25472
|
-
/* @__PURE__ */
|
|
25548
|
+
/* @__PURE__ */ jsx205("span", { ...trussProps116({
|
|
25473
25549
|
flexShrink: "fs0",
|
|
25474
25550
|
marginLeft: "ml1",
|
|
25475
25551
|
transition: "transitionAll",
|
|
@@ -25479,10 +25555,10 @@ function StepperTab(props) {
|
|
|
25479
25555
|
opacity: "o100",
|
|
25480
25556
|
transform: "transform_scale_1_translateY_0"
|
|
25481
25557
|
} : {}
|
|
25482
|
-
}), children: /* @__PURE__ */
|
|
25558
|
+
}), children: /* @__PURE__ */ jsx205(Icon, { icon: "check", inc: 2.5, ...tid.check }) })
|
|
25483
25559
|
] }),
|
|
25484
|
-
/* @__PURE__ */
|
|
25485
|
-
/* @__PURE__ */
|
|
25560
|
+
/* @__PURE__ */ jsx205("span", { "aria-hidden": true, ...trussProps116(getIndicatorStyles(active, completed, disabled)), ...tid.indicator }),
|
|
25561
|
+
/* @__PURE__ */ jsx205(VisuallyHidden10, { children: completed ? "Complete" : "Not Complete" })
|
|
25486
25562
|
] });
|
|
25487
25563
|
}
|
|
25488
25564
|
function getStateStyles(active, completed) {
|
|
@@ -25563,8 +25639,8 @@ var stepperTabStyles = {
|
|
|
25563
25639
|
};
|
|
25564
25640
|
|
|
25565
25641
|
// src/components/StepperTabs/StepperTabs.tsx
|
|
25566
|
-
import { trussProps as
|
|
25567
|
-
import { jsx as
|
|
25642
|
+
import { trussProps as trussProps117 } from "@homebound/truss/runtime";
|
|
25643
|
+
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
25568
25644
|
import { createElement as createElement7 } from "react";
|
|
25569
25645
|
function StepperTabs(props) {
|
|
25570
25646
|
const {
|
|
@@ -25580,7 +25656,7 @@ function StepperTabs(props) {
|
|
|
25580
25656
|
const collapsed = isMobile || !!forceCollapsed;
|
|
25581
25657
|
const capWidth = steps.length <= 3;
|
|
25582
25658
|
const currentStepIndex = Math.max(0, steps.findIndex((step) => step.value === currentStep));
|
|
25583
|
-
return /* @__PURE__ */
|
|
25659
|
+
return /* @__PURE__ */ jsx206("nav", { "aria-label": "steps", className: "w100", ...tid, children: /* @__PURE__ */ jsx206("ol", { ...trussProps117({
|
|
25584
25660
|
padding: "p_0",
|
|
25585
25661
|
margin: "m_0",
|
|
25586
25662
|
listStyle: "lis_none",
|
|
@@ -25595,7 +25671,7 @@ function StepperTabs(props) {
|
|
|
25595
25671
|
}), children: steps.map((step, idx) => {
|
|
25596
25672
|
const isCurrent = idx === currentStepIndex;
|
|
25597
25673
|
const isCompleted = idx < currentStepIndex;
|
|
25598
|
-
return /* @__PURE__ */ createElement7("li", { ...
|
|
25674
|
+
return /* @__PURE__ */ createElement7("li", { ...trussProps117({
|
|
25599
25675
|
display: "df",
|
|
25600
25676
|
flexGrow: "fg1",
|
|
25601
25677
|
flexBasis: "fb_0",
|
|
@@ -25607,7 +25683,7 @@ function StepperTabs(props) {
|
|
|
25607
25683
|
"--maxWidth": `${maxStepWidthPx}px`
|
|
25608
25684
|
}]
|
|
25609
25685
|
} : {}
|
|
25610
|
-
}), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */
|
|
25686
|
+
}), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx206(StepperTab, { label: step.label, value: step.value, active: isCurrent, completed: isCompleted, disabled: step.disabled, collapsed, onClick: onChange, ...tid.tab }));
|
|
25611
25687
|
}) }) });
|
|
25612
25688
|
}
|
|
25613
25689
|
var maxStepWidthPx = 280;
|
|
@@ -25615,8 +25691,8 @@ var gapPx = 6;
|
|
|
25615
25691
|
|
|
25616
25692
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
25617
25693
|
import { createPortal as createPortal8 } from "react-dom";
|
|
25618
|
-
import { trussProps as
|
|
25619
|
-
import { jsx as
|
|
25694
|
+
import { trussProps as trussProps118 } from "@homebound/truss/runtime";
|
|
25695
|
+
import { jsx as jsx207, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
25620
25696
|
function SuperDrawerHeader(props) {
|
|
25621
25697
|
const {
|
|
25622
25698
|
hideControls
|
|
@@ -25633,20 +25709,20 @@ function SuperDrawerHeader(props) {
|
|
|
25633
25709
|
const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
|
|
25634
25710
|
const isDetail = currentContent !== firstContent;
|
|
25635
25711
|
const tid = useTestIds({}, "superDrawerHeader");
|
|
25636
|
-
return createPortal8(/* @__PURE__ */
|
|
25637
|
-
isStructuredProps(props) ? /* @__PURE__ */
|
|
25638
|
-
/* @__PURE__ */
|
|
25639
|
-
/* @__PURE__ */
|
|
25712
|
+
return createPortal8(/* @__PURE__ */ jsxs105("div", { className: "df aic jcsb gap3", ...tid, children: [
|
|
25713
|
+
isStructuredProps(props) ? /* @__PURE__ */ jsxs105("div", { className: "df jcsb aic gap2 fg1", children: [
|
|
25714
|
+
/* @__PURE__ */ jsxs105("div", { className: "fg1 df aic gap2", children: [
|
|
25715
|
+
/* @__PURE__ */ jsx207("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
|
|
25640
25716
|
props.left
|
|
25641
25717
|
] }),
|
|
25642
|
-
props.right && /* @__PURE__ */
|
|
25643
|
-
] }) : /* @__PURE__ */
|
|
25644
|
-
!hideControls && /* @__PURE__ */
|
|
25718
|
+
props.right && /* @__PURE__ */ jsx207("div", { className: "fs0", children: props.right })
|
|
25719
|
+
] }) : /* @__PURE__ */ jsx207("div", { className: "fg1", children: props.children }),
|
|
25720
|
+
!hideControls && /* @__PURE__ */ jsx207("div", { ...trussProps118({
|
|
25645
25721
|
flexShrink: "fs0",
|
|
25646
25722
|
...isDetail ? {
|
|
25647
25723
|
visibility: "vh"
|
|
25648
25724
|
} : {}
|
|
25649
|
-
}), children: /* @__PURE__ */
|
|
25725
|
+
}), children: /* @__PURE__ */ jsx207(ButtonGroup, { buttons: [{
|
|
25650
25726
|
icon: "chevronLeft",
|
|
25651
25727
|
onClick: () => onPrevClick && onPrevClick(),
|
|
25652
25728
|
disabled: !onPrevClick
|
|
@@ -25666,7 +25742,7 @@ import { motion as motion7 } from "framer-motion";
|
|
|
25666
25742
|
|
|
25667
25743
|
// src/components/SuperDrawer/useSuperDrawer.tsx
|
|
25668
25744
|
import { useMemo as useMemo54 } from "react";
|
|
25669
|
-
import { jsx as
|
|
25745
|
+
import { jsx as jsx208 } from "react/jsx-runtime";
|
|
25670
25746
|
function useSuperDrawer() {
|
|
25671
25747
|
const {
|
|
25672
25748
|
drawerContentStack: contentStack,
|
|
@@ -25678,7 +25754,7 @@ function useSuperDrawer() {
|
|
|
25678
25754
|
function canCloseDrawerDetails(i, doChange) {
|
|
25679
25755
|
for (const canCloseDrawerDetail of canCloseDetailsChecks.current[i] ?? []) {
|
|
25680
25756
|
if (!canClose(canCloseDrawerDetail)) {
|
|
25681
|
-
openModal({ content: /* @__PURE__ */
|
|
25757
|
+
openModal({ content: /* @__PURE__ */ jsx208(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
|
|
25682
25758
|
return false;
|
|
25683
25759
|
}
|
|
25684
25760
|
}
|
|
@@ -25698,7 +25774,7 @@ function useSuperDrawer() {
|
|
|
25698
25774
|
for (const canCloseDrawer of canCloseChecks.current) {
|
|
25699
25775
|
if (!canClose(canCloseDrawer)) {
|
|
25700
25776
|
openModal({
|
|
25701
|
-
content: /* @__PURE__ */
|
|
25777
|
+
content: /* @__PURE__ */ jsx208(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
|
|
25702
25778
|
});
|
|
25703
25779
|
return;
|
|
25704
25780
|
}
|
|
@@ -25793,8 +25869,8 @@ function canClose(canCloseCheck) {
|
|
|
25793
25869
|
}
|
|
25794
25870
|
|
|
25795
25871
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
25796
|
-
import { trussProps as
|
|
25797
|
-
import { Fragment as Fragment46, jsx as
|
|
25872
|
+
import { trussProps as trussProps119, mergeProps as mergeProps33 } from "@homebound/truss/runtime";
|
|
25873
|
+
import { Fragment as Fragment46, jsx as jsx209, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
25798
25874
|
var SuperDrawerContent = ({
|
|
25799
25875
|
children,
|
|
25800
25876
|
actions
|
|
@@ -25814,17 +25890,17 @@ var SuperDrawerContent = ({
|
|
|
25814
25890
|
} = firstContent ?? {};
|
|
25815
25891
|
function wrapWithMotionAndMaybeBack(children2) {
|
|
25816
25892
|
if (kind === "open") {
|
|
25817
|
-
return /* @__PURE__ */
|
|
25893
|
+
return /* @__PURE__ */ jsx209(motion7.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
|
|
25818
25894
|
} else if (kind === "detail") {
|
|
25819
|
-
return /* @__PURE__ */
|
|
25895
|
+
return /* @__PURE__ */ jsxs106(motion7.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
|
|
25820
25896
|
overflow: "auto"
|
|
25821
25897
|
}, transition: {
|
|
25822
25898
|
overflow: {
|
|
25823
25899
|
delay: 0.3
|
|
25824
25900
|
}
|
|
25825
25901
|
}, children: [
|
|
25826
|
-
/* @__PURE__ */
|
|
25827
|
-
/* @__PURE__ */
|
|
25902
|
+
/* @__PURE__ */ jsx209(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
|
|
25903
|
+
/* @__PURE__ */ jsx209(motion7.div, { initial: {
|
|
25828
25904
|
x: width2,
|
|
25829
25905
|
opacity: 0
|
|
25830
25906
|
}, animate: {
|
|
@@ -25842,7 +25918,7 @@ var SuperDrawerContent = ({
|
|
|
25842
25918
|
}, className: "pt2", children: children2 })
|
|
25843
25919
|
] }, "content");
|
|
25844
25920
|
} else {
|
|
25845
|
-
return /* @__PURE__ */
|
|
25921
|
+
return /* @__PURE__ */ jsx209(motion7.div, { ...mergeProps33(void 0, {
|
|
25846
25922
|
overflow: "auto"
|
|
25847
25923
|
}, {
|
|
25848
25924
|
paddingTop: "pt3",
|
|
@@ -25853,9 +25929,9 @@ var SuperDrawerContent = ({
|
|
|
25853
25929
|
}) }, "content");
|
|
25854
25930
|
}
|
|
25855
25931
|
}
|
|
25856
|
-
return /* @__PURE__ */
|
|
25932
|
+
return /* @__PURE__ */ jsxs106(Fragment46, { children: [
|
|
25857
25933
|
wrapWithMotionAndMaybeBack(children),
|
|
25858
|
-
actions && /* @__PURE__ */
|
|
25934
|
+
actions && /* @__PURE__ */ jsx209("footer", { ...trussProps119({
|
|
25859
25935
|
borderTopStyle: "bts_solid",
|
|
25860
25936
|
borderTopWidth: "btw_1px",
|
|
25861
25937
|
borderColor: ["bc_var", {
|
|
@@ -25868,7 +25944,7 @@ var SuperDrawerContent = ({
|
|
|
25868
25944
|
display: "df",
|
|
25869
25945
|
alignItems: "aic",
|
|
25870
25946
|
justifyContent: "jcfe"
|
|
25871
|
-
}), children: /* @__PURE__ */
|
|
25947
|
+
}), children: /* @__PURE__ */ jsx209("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ jsx209(Button, { ...buttonProps }, i)) }) })
|
|
25872
25948
|
] });
|
|
25873
25949
|
};
|
|
25874
25950
|
|
|
@@ -25916,15 +25992,15 @@ import { useEffect as useEffect38, useMemo as useMemo55, useRef as useRef64, use
|
|
|
25916
25992
|
import { mergeProps as mergeProps34, useFocusRing as useFocusRing19, useHover as useHover23 } from "react-aria";
|
|
25917
25993
|
import { matchPath } from "react-router";
|
|
25918
25994
|
import { Link as Link7, useLocation as useLocation2 } from "react-router-dom";
|
|
25919
|
-
import { trussProps as
|
|
25920
|
-
import { Fragment as Fragment47, jsx as
|
|
25995
|
+
import { trussProps as trussProps120, maybeCssVar as maybeCssVar56 } from "@homebound/truss/runtime";
|
|
25996
|
+
import { Fragment as Fragment47, jsx as jsx210, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
25921
25997
|
function TabsWithContent(props) {
|
|
25922
25998
|
const styles = hideTabs(props) ? {} : {
|
|
25923
25999
|
paddingTop: "pt3"
|
|
25924
26000
|
};
|
|
25925
|
-
return /* @__PURE__ */
|
|
25926
|
-
/* @__PURE__ */
|
|
25927
|
-
/* @__PURE__ */
|
|
26001
|
+
return /* @__PURE__ */ jsxs107(Fragment47, { children: [
|
|
26002
|
+
/* @__PURE__ */ jsx210(Tabs, { ...props }),
|
|
26003
|
+
/* @__PURE__ */ jsx210(TabContent, { ...props, contentXss: {
|
|
25928
26004
|
...styles,
|
|
25929
26005
|
...props.contentXss
|
|
25930
26006
|
} })
|
|
@@ -25949,7 +26025,7 @@ function TabContent(props) {
|
|
|
25949
26025
|
return (
|
|
25950
26026
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
25951
26027
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
25952
|
-
/* @__PURE__ */
|
|
26028
|
+
/* @__PURE__ */ jsx210(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ jsx210("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...trussProps120(contentXss), children: selectedTab.render() }) })
|
|
25953
26029
|
);
|
|
25954
26030
|
}
|
|
25955
26031
|
function Tabs(props) {
|
|
@@ -25991,7 +26067,7 @@ function Tabs(props) {
|
|
|
25991
26067
|
setActive(selected);
|
|
25992
26068
|
}
|
|
25993
26069
|
}
|
|
25994
|
-
return /* @__PURE__ */
|
|
26070
|
+
return /* @__PURE__ */ jsxs107("div", { ...trussProps120({
|
|
25995
26071
|
...{
|
|
25996
26072
|
display: "df",
|
|
25997
26073
|
alignItems: "aic",
|
|
@@ -26009,11 +26085,11 @@ function Tabs(props) {
|
|
|
26009
26085
|
}
|
|
26010
26086
|
} : {}
|
|
26011
26087
|
}), children: [
|
|
26012
|
-
!hideTabs(props) && /* @__PURE__ */
|
|
26088
|
+
!hideTabs(props) && /* @__PURE__ */ jsx210("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
|
|
26013
26089
|
const uniqueValue = uniqueTabValue(tab);
|
|
26014
|
-
return /* @__PURE__ */
|
|
26090
|
+
return /* @__PURE__ */ jsx210(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
|
|
26015
26091
|
}) }),
|
|
26016
|
-
right && /* @__PURE__ */
|
|
26092
|
+
right && /* @__PURE__ */ jsx210("div", { className: "mla df aic gap1 pb1", children: right })
|
|
26017
26093
|
] });
|
|
26018
26094
|
}
|
|
26019
26095
|
function TabImpl(props) {
|
|
@@ -26057,7 +26133,7 @@ function TabImpl(props) {
|
|
|
26057
26133
|
role: "tab",
|
|
26058
26134
|
tabIndex: active ? 0 : -1,
|
|
26059
26135
|
...others,
|
|
26060
|
-
...
|
|
26136
|
+
...trussProps120({
|
|
26061
26137
|
...baseStyles4,
|
|
26062
26138
|
...active && activeStyles3,
|
|
26063
26139
|
...isDisabled && disabledStyles3,
|
|
@@ -26073,17 +26149,17 @@ function TabImpl(props) {
|
|
|
26073
26149
|
onClick: () => onClick(tab.value)
|
|
26074
26150
|
}
|
|
26075
26151
|
});
|
|
26076
|
-
const tabLabel = /* @__PURE__ */
|
|
26152
|
+
const tabLabel = /* @__PURE__ */ jsxs107(Fragment47, { children: [
|
|
26077
26153
|
label,
|
|
26078
|
-
(icon || endAdornment) && /* @__PURE__ */
|
|
26154
|
+
(icon || endAdornment) && /* @__PURE__ */ jsx210("span", { className: "ml1", children: icon ? /* @__PURE__ */ jsx210(Icon, { icon }) : endAdornment })
|
|
26079
26155
|
] });
|
|
26080
26156
|
return isDisabled ? maybeTooltip({
|
|
26081
26157
|
title: resolveTooltip(disabled),
|
|
26082
26158
|
placement: "top",
|
|
26083
|
-
children: /* @__PURE__ */
|
|
26084
|
-
}) : isRouteTab(tab) ? /* @__PURE__ */
|
|
26159
|
+
children: /* @__PURE__ */ jsx210("div", { ...tabProps, children: tabLabel })
|
|
26160
|
+
}) : isRouteTab(tab) ? /* @__PURE__ */ jsx210(Link7, { ...mergeProps34(tabProps, interactiveProps, {
|
|
26085
26161
|
className: "navLink"
|
|
26086
|
-
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */
|
|
26162
|
+
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */ jsx210("button", { ...{
|
|
26087
26163
|
...tabProps,
|
|
26088
26164
|
...interactiveProps
|
|
26089
26165
|
}, children: tabLabel });
|
|
@@ -26094,7 +26170,7 @@ function getTabStyles() {
|
|
|
26094
26170
|
const borderBottomStyles = {
|
|
26095
26171
|
borderBottomStyle: "bbs_solid",
|
|
26096
26172
|
borderBottomWidth: ["borderBottomWidth_var", {
|
|
26097
|
-
"--borderBottomWidth":
|
|
26173
|
+
"--borderBottomWidth": maybeCssVar56(`${borderBottomWidthPx}px`)
|
|
26098
26174
|
}],
|
|
26099
26175
|
paddingBottom: ["pb_var", {
|
|
26100
26176
|
"--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
|
|
@@ -26191,7 +26267,7 @@ function hideTabs(props) {
|
|
|
26191
26267
|
}
|
|
26192
26268
|
|
|
26193
26269
|
// src/components/TagGroup.tsx
|
|
26194
|
-
import { jsx as
|
|
26270
|
+
import { jsx as jsx211, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
26195
26271
|
function TagGroup(props) {
|
|
26196
26272
|
const {
|
|
26197
26273
|
tags,
|
|
@@ -26199,9 +26275,9 @@ function TagGroup(props) {
|
|
|
26199
26275
|
...otherProps
|
|
26200
26276
|
} = props;
|
|
26201
26277
|
const tid = useTestIds(otherProps, "tagGroup");
|
|
26202
|
-
return /* @__PURE__ */
|
|
26203
|
-
tags.map((tag) => /* @__PURE__ */
|
|
26204
|
-
onEdit && /* @__PURE__ */
|
|
26278
|
+
return /* @__PURE__ */ jsxs108("div", { ...tid, className: "df aic fww gap1", children: [
|
|
26279
|
+
tags.map((tag) => /* @__PURE__ */ jsx211(Tag, { ...tag, variant: "secondary" }, tag.text)),
|
|
26280
|
+
onEdit && /* @__PURE__ */ jsx211("span", { className: "ml1 fw4 fz_14px lh_20px", children: /* @__PURE__ */ jsx211(Button, { label: "Edit", variant: "text", onClick: onEdit, ...tid.edit }) })
|
|
26205
26281
|
] });
|
|
26206
26282
|
}
|
|
26207
26283
|
|
|
@@ -26214,15 +26290,15 @@ function useToast() {
|
|
|
26214
26290
|
}
|
|
26215
26291
|
|
|
26216
26292
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
26217
|
-
import { trussProps as
|
|
26218
|
-
import { jsx as
|
|
26219
|
-
var
|
|
26293
|
+
import { trussProps as trussProps121, mergeProps as mergeProps35, maybeCssVar as maybeCssVar57 } from "@homebound/truss/runtime";
|
|
26294
|
+
import { jsx as jsx212, jsxs as jsxs109 } from "react/jsx-runtime";
|
|
26295
|
+
var __maybeInc26 = (inc) => {
|
|
26220
26296
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26221
26297
|
};
|
|
26222
26298
|
function SideNavLayout(props) {
|
|
26223
26299
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
26224
|
-
if (hasProvider) return /* @__PURE__ */
|
|
26225
|
-
return /* @__PURE__ */
|
|
26300
|
+
if (hasProvider) return /* @__PURE__ */ jsx212(SideNavLayoutContent, { ...props });
|
|
26301
|
+
return /* @__PURE__ */ jsx212(SideNavLayoutProvider, { children: /* @__PURE__ */ jsx212(SideNavLayoutContent, { ...props }) });
|
|
26226
26302
|
}
|
|
26227
26303
|
function SideNavLayoutContent(props) {
|
|
26228
26304
|
const {
|
|
@@ -26244,7 +26320,7 @@ function SideNavLayoutContent(props) {
|
|
|
26244
26320
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
26245
26321
|
const navTop = bannerAndNavbarChromeTop();
|
|
26246
26322
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
26247
|
-
const rail = showRail && /* @__PURE__ */
|
|
26323
|
+
const rail = showRail && /* @__PURE__ */ jsxs109("div", { ...trussProps121({
|
|
26248
26324
|
...{
|
|
26249
26325
|
display: "df",
|
|
26250
26326
|
flexDirection: "fdc",
|
|
@@ -26268,14 +26344,14 @@ function SideNavLayoutContent(props) {
|
|
|
26268
26344
|
position: "sticky",
|
|
26269
26345
|
left: "left0",
|
|
26270
26346
|
zIndex: ["z_var", {
|
|
26271
|
-
"--zIndex":
|
|
26347
|
+
"--zIndex": maybeCssVar57(zIndices.sideNav)
|
|
26272
26348
|
}],
|
|
26273
26349
|
top: ["top_var", {
|
|
26274
|
-
"--top":
|
|
26350
|
+
"--top": maybeCssVar57(__maybeInc26(navTop))
|
|
26275
26351
|
}],
|
|
26276
26352
|
alignSelf: "asfs",
|
|
26277
26353
|
height: ["h_var", {
|
|
26278
|
-
"--height":
|
|
26354
|
+
"--height": maybeCssVar57(__maybeInc26(railViewportHeight))
|
|
26279
26355
|
}],
|
|
26280
26356
|
width: ["w_var", {
|
|
26281
26357
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -26285,11 +26361,11 @@ function SideNavLayoutContent(props) {
|
|
|
26285
26361
|
position: "fixed",
|
|
26286
26362
|
left: "left0",
|
|
26287
26363
|
top: ["top_var", {
|
|
26288
|
-
"--top":
|
|
26364
|
+
"--top": maybeCssVar57(__maybeInc26(navTop))
|
|
26289
26365
|
}],
|
|
26290
26366
|
bottom: "bottom0",
|
|
26291
26367
|
zIndex: ["z_var", {
|
|
26292
|
-
"--zIndex":
|
|
26368
|
+
"--zIndex": maybeCssVar57(zIndices.sideNav)
|
|
26293
26369
|
}]
|
|
26294
26370
|
},
|
|
26295
26371
|
...collapsed ? {
|
|
@@ -26301,18 +26377,18 @@ function SideNavLayoutContent(props) {
|
|
|
26301
26377
|
}
|
|
26302
26378
|
}
|
|
26303
26379
|
}), ...tid.sideNav, children: [
|
|
26304
|
-
showCollapseToggle && /* @__PURE__ */
|
|
26305
|
-
/* @__PURE__ */
|
|
26380
|
+
showCollapseToggle && /* @__PURE__ */ jsx212("div", { className: "absolute right2 top2 z2", children: /* @__PURE__ */ jsx212(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
|
|
26381
|
+
/* @__PURE__ */ jsx212("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ jsx212(SideNav, { ...sideNav }) })
|
|
26306
26382
|
] });
|
|
26307
|
-
return /* @__PURE__ */
|
|
26383
|
+
return /* @__PURE__ */ jsx212(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs109("div", { ...mergeProps35(void 0, {
|
|
26308
26384
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
26309
26385
|
}, {
|
|
26310
26386
|
display: "df",
|
|
26311
26387
|
flexDirection: "fdr",
|
|
26312
26388
|
width: "w100"
|
|
26313
26389
|
}), ...tid, children: [
|
|
26314
|
-
contrastRail ? /* @__PURE__ */
|
|
26315
|
-
/* @__PURE__ */
|
|
26390
|
+
contrastRail ? /* @__PURE__ */ jsx212(ContrastScope, { children: rail }) : rail,
|
|
26391
|
+
/* @__PURE__ */ jsx212("div", { ...trussProps121({
|
|
26316
26392
|
display: "df",
|
|
26317
26393
|
flexDirection: "fdc",
|
|
26318
26394
|
flexGrow: "fg1",
|
|
@@ -26328,9 +26404,9 @@ function SideNavLayoutContent(props) {
|
|
|
26328
26404
|
}
|
|
26329
26405
|
|
|
26330
26406
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
26331
|
-
import { trussProps as
|
|
26332
|
-
import { jsx as
|
|
26333
|
-
var
|
|
26407
|
+
import { trussProps as trussProps122, mergeProps as mergeProps36, maybeCssVar as maybeCssVar58 } from "@homebound/truss/runtime";
|
|
26408
|
+
import { jsx as jsx213, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
26409
|
+
var __maybeInc27 = (inc) => {
|
|
26334
26410
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26335
26411
|
};
|
|
26336
26412
|
function EnvironmentBannerLayout(props) {
|
|
@@ -26345,35 +26421,35 @@ function EnvironmentBannerLayout(props) {
|
|
|
26345
26421
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
26346
26422
|
};
|
|
26347
26423
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
26348
|
-
return /* @__PURE__ */
|
|
26424
|
+
return /* @__PURE__ */ jsx213(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx213(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ jsxs110("div", { ...mergeProps36(void 0, style, {
|
|
26349
26425
|
display: "df",
|
|
26350
26426
|
flexDirection: "fdc",
|
|
26351
26427
|
width: "wfc",
|
|
26352
26428
|
minWidth: "mw100"
|
|
26353
26429
|
}), ...tid, children: [
|
|
26354
|
-
showBanner && environmentBanner && /* @__PURE__ */
|
|
26430
|
+
showBanner && environmentBanner && /* @__PURE__ */ jsx213("div", { ...mergeProps36(void 0, {
|
|
26355
26431
|
height: environmentBannerSizePx
|
|
26356
26432
|
}, {
|
|
26357
26433
|
flexShrink: "fs0",
|
|
26358
26434
|
width: "w100"
|
|
26359
|
-
}), children: /* @__PURE__ */
|
|
26435
|
+
}), children: /* @__PURE__ */ jsx213("div", { ...trussProps122({
|
|
26360
26436
|
position: "fixed",
|
|
26361
26437
|
top: "top0",
|
|
26362
26438
|
left: "left0",
|
|
26363
26439
|
zIndex: ["z_var", {
|
|
26364
|
-
"--zIndex":
|
|
26440
|
+
"--zIndex": maybeCssVar58(zIndices.environmentBanner)
|
|
26365
26441
|
}],
|
|
26366
26442
|
width: ["w_var", {
|
|
26367
|
-
"--width":
|
|
26443
|
+
"--width": maybeCssVar58(__maybeInc27(innerWidth))
|
|
26368
26444
|
}]
|
|
26369
|
-
}), ...tid.bannerSticky, children: /* @__PURE__ */
|
|
26445
|
+
}), ...tid.bannerSticky, children: /* @__PURE__ */ jsx213(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
26370
26446
|
children
|
|
26371
26447
|
] }) }) });
|
|
26372
26448
|
}
|
|
26373
26449
|
|
|
26374
26450
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
26375
|
-
import { trussProps as
|
|
26376
|
-
import { jsx as
|
|
26451
|
+
import { trussProps as trussProps123 } from "@homebound/truss/runtime";
|
|
26452
|
+
import { jsx as jsx214, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
26377
26453
|
function FormSectionLayout(props) {
|
|
26378
26454
|
const {
|
|
26379
26455
|
title,
|
|
@@ -26383,14 +26459,14 @@ function FormSectionLayout(props) {
|
|
|
26383
26459
|
sections
|
|
26384
26460
|
} = props;
|
|
26385
26461
|
const tid = useTestIds(props, "formSectionLayout");
|
|
26386
|
-
return /* @__PURE__ */
|
|
26387
|
-
/* @__PURE__ */
|
|
26388
|
-
/* @__PURE__ */
|
|
26389
|
-
/* @__PURE__ */
|
|
26390
|
-
/* @__PURE__ */
|
|
26391
|
-
actions && /* @__PURE__ */
|
|
26462
|
+
return /* @__PURE__ */ jsxs111("div", { className: "df fdc gap8 w100 pt4 maxw_720px mla mra sm_pl2 sm_pr2", ...tid, children: [
|
|
26463
|
+
/* @__PURE__ */ jsxs111("div", { className: "df fdc gap3", children: [
|
|
26464
|
+
/* @__PURE__ */ jsxs111("div", { className: "df fdc jcsb gap_12px", children: [
|
|
26465
|
+
/* @__PURE__ */ jsxs111("div", { className: "df jcsb aic", children: [
|
|
26466
|
+
/* @__PURE__ */ jsx214("h1", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
|
|
26467
|
+
actions && /* @__PURE__ */ jsx214("div", { className: "df gap1 fs0", ...tid.actions, children: actions.map((action) => action.kind === "icon" ? /* @__PURE__ */ jsx214(IconButton, { ...action, variant: "outline" }, action.icon) : /* @__PURE__ */ jsx214(Button, { ...action }, `${action.label}`)) })
|
|
26392
26468
|
] }),
|
|
26393
|
-
description && /* @__PURE__ */
|
|
26469
|
+
description && /* @__PURE__ */ jsx214("div", { ...trussProps123({
|
|
26394
26470
|
fontWeight: "fw4",
|
|
26395
26471
|
fontSize: "fz_14px",
|
|
26396
26472
|
lineHeight: "lh_20px",
|
|
@@ -26401,13 +26477,13 @@ function FormSectionLayout(props) {
|
|
|
26401
26477
|
] }),
|
|
26402
26478
|
initialFields
|
|
26403
26479
|
] }),
|
|
26404
|
-
sections && /* @__PURE__ */
|
|
26480
|
+
sections && /* @__PURE__ */ jsx214("div", { className: "df fdc gap8", children: sections.map((section, i) => /* @__PURE__ */ jsx214(FormSection, { ...section }, defaultTestId(section.title) || i)) })
|
|
26405
26481
|
] });
|
|
26406
26482
|
}
|
|
26407
26483
|
|
|
26408
26484
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
26409
26485
|
import { useMemo as useMemo56, useRef as useRef66 } from "react";
|
|
26410
|
-
import { mergeProps as mergeProps37, maybeCssVar as
|
|
26486
|
+
import { mergeProps as mergeProps37, maybeCssVar as maybeCssVar59 } from "@homebound/truss/runtime";
|
|
26411
26487
|
|
|
26412
26488
|
// src/layouts/useAutoHideOnScroll.ts
|
|
26413
26489
|
import { useLayoutEffect as useLayoutEffect9, useRef as useRef65, useState as useState57 } from "react";
|
|
@@ -26518,18 +26594,18 @@ function useMeasuredHeight(ref, enabled) {
|
|
|
26518
26594
|
|
|
26519
26595
|
// src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
|
|
26520
26596
|
import { createContext as createContext15, useContext as useContext27 } from "react";
|
|
26521
|
-
import { jsx as
|
|
26597
|
+
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
26522
26598
|
var NavbarLayoutHeightContext = createContext15(0);
|
|
26523
26599
|
function NavbarLayoutHeightProvider({ value, children }) {
|
|
26524
|
-
return /* @__PURE__ */
|
|
26600
|
+
return /* @__PURE__ */ jsx215(NavbarLayoutHeightContext.Provider, { value, children });
|
|
26525
26601
|
}
|
|
26526
26602
|
function useNavbarLayoutHeight() {
|
|
26527
26603
|
return useContext27(NavbarLayoutHeightContext);
|
|
26528
26604
|
}
|
|
26529
26605
|
|
|
26530
26606
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
26531
|
-
import { jsx as
|
|
26532
|
-
var
|
|
26607
|
+
import { jsx as jsx216, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
26608
|
+
var __maybeInc28 = (inc) => {
|
|
26533
26609
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26534
26610
|
};
|
|
26535
26611
|
function NavbarLayout(props) {
|
|
@@ -26557,10 +26633,10 @@ function NavbarLayout(props) {
|
|
|
26557
26633
|
position: "sticky",
|
|
26558
26634
|
left: "left0",
|
|
26559
26635
|
zIndex: ["z_var", {
|
|
26560
|
-
"--zIndex":
|
|
26636
|
+
"--zIndex": maybeCssVar59(zIndices.navbar)
|
|
26561
26637
|
}],
|
|
26562
26638
|
width: ["w_var", {
|
|
26563
|
-
"--width":
|
|
26639
|
+
"--width": maybeCssVar59(__maybeInc28(innerWidth))
|
|
26564
26640
|
}]
|
|
26565
26641
|
}
|
|
26566
26642
|
) : (
|
|
@@ -26569,10 +26645,10 @@ function NavbarLayout(props) {
|
|
|
26569
26645
|
position: "fixed",
|
|
26570
26646
|
left: "left0",
|
|
26571
26647
|
zIndex: ["z_var", {
|
|
26572
|
-
"--zIndex":
|
|
26648
|
+
"--zIndex": maybeCssVar59(zIndices.navbar)
|
|
26573
26649
|
}],
|
|
26574
26650
|
width: ["w_var", {
|
|
26575
|
-
"--width":
|
|
26651
|
+
"--width": maybeCssVar59(__maybeInc28(innerWidth))
|
|
26576
26652
|
}],
|
|
26577
26653
|
transition: "transitionTop"
|
|
26578
26654
|
}
|
|
@@ -26581,20 +26657,20 @@ function NavbarLayout(props) {
|
|
|
26581
26657
|
const innerStyle = autoHideState !== "static" ? {
|
|
26582
26658
|
top: autoHideState === "revealed" ? bannerTop : `calc(${bannerTop} - ${navHeight}px)`
|
|
26583
26659
|
} : void 0;
|
|
26584
|
-
const navbarEl = useMemo56(() => /* @__PURE__ */
|
|
26585
|
-
return /* @__PURE__ */
|
|
26660
|
+
const navbarEl = useMemo56(() => /* @__PURE__ */ jsx216(Navbar, { ...navbar }), [navbar]);
|
|
26661
|
+
return /* @__PURE__ */ jsx216(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx216(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ jsxs112("div", { ...mergeProps37(void 0, cssVars, {
|
|
26586
26662
|
display: "df",
|
|
26587
26663
|
flexDirection: "fdc",
|
|
26588
26664
|
width: "wfc",
|
|
26589
26665
|
minWidth: "mw100"
|
|
26590
26666
|
}), ...tid, children: [
|
|
26591
|
-
/* @__PURE__ */
|
|
26667
|
+
/* @__PURE__ */ jsx216("div", { ref: spacerRef, ...mergeProps37(void 0, {
|
|
26592
26668
|
height: navHeight
|
|
26593
26669
|
}, {
|
|
26594
26670
|
flexShrink: "fs0",
|
|
26595
26671
|
width: "w100"
|
|
26596
|
-
}), children: /* @__PURE__ */
|
|
26597
|
-
/* @__PURE__ */
|
|
26672
|
+
}), children: /* @__PURE__ */ jsx216("div", { ref: navMetricsRef, ...mergeProps37(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
26673
|
+
/* @__PURE__ */ jsx216("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
26598
26674
|
] }) }) });
|
|
26599
26675
|
}
|
|
26600
26676
|
|
|
@@ -26602,8 +26678,8 @@ function NavbarLayout(props) {
|
|
|
26602
26678
|
import { useCallback as useCallback39, useMemo as useMemo57, useRef as useRef67 } from "react";
|
|
26603
26679
|
|
|
26604
26680
|
// src/components/Headers/BaseHeader.tsx
|
|
26605
|
-
import { trussProps as
|
|
26606
|
-
import { jsx as
|
|
26681
|
+
import { trussProps as trussProps124 } from "@homebound/truss/runtime";
|
|
26682
|
+
import { jsx as jsx217, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
26607
26683
|
function BaseHeader(props) {
|
|
26608
26684
|
const {
|
|
26609
26685
|
title,
|
|
@@ -26615,7 +26691,7 @@ function BaseHeader(props) {
|
|
|
26615
26691
|
} = props;
|
|
26616
26692
|
const tid = useTestIds(otherProps, "header");
|
|
26617
26693
|
useDocumentTitle(title, documentTitleSuffix);
|
|
26618
|
-
return /* @__PURE__ */
|
|
26694
|
+
return /* @__PURE__ */ jsxs113("header", { ...tid, ...trussProps124({
|
|
26619
26695
|
display: "df",
|
|
26620
26696
|
flexDirection: "fdc",
|
|
26621
26697
|
paddingTop: "pt3",
|
|
@@ -26629,7 +26705,7 @@ function BaseHeader(props) {
|
|
|
26629
26705
|
"--backgroundColor": "var(--b-surface)"
|
|
26630
26706
|
}]
|
|
26631
26707
|
}), children: [
|
|
26632
|
-
/* @__PURE__ */
|
|
26708
|
+
/* @__PURE__ */ jsxs113("div", { ...trussProps124({
|
|
26633
26709
|
...{
|
|
26634
26710
|
display: "df",
|
|
26635
26711
|
justifyContent: "jcsb",
|
|
@@ -26643,9 +26719,9 @@ function BaseHeader(props) {
|
|
|
26643
26719
|
} : {}
|
|
26644
26720
|
}
|
|
26645
26721
|
}), children: [
|
|
26646
|
-
/* @__PURE__ */
|
|
26647
|
-
breadcrumbs && /* @__PURE__ */
|
|
26648
|
-
/* @__PURE__ */
|
|
26722
|
+
/* @__PURE__ */ jsxs113("div", { className: "mw0", children: [
|
|
26723
|
+
breadcrumbs && /* @__PURE__ */ jsx217(Breadcrumbs, { ...breadcrumbs }),
|
|
26724
|
+
/* @__PURE__ */ jsx217("h1", { ...tid.title, ...trussProps124({
|
|
26649
26725
|
fontWeight: "fw6",
|
|
26650
26726
|
fontSize: "fz_20px",
|
|
26651
26727
|
lineHeight: "lh_28px",
|
|
@@ -26654,22 +26730,22 @@ function BaseHeader(props) {
|
|
|
26654
26730
|
}]
|
|
26655
26731
|
}), children: title })
|
|
26656
26732
|
] }),
|
|
26657
|
-
/* @__PURE__ */
|
|
26733
|
+
/* @__PURE__ */ jsx217("div", { className: "fs0", children: rightSlot })
|
|
26658
26734
|
] }),
|
|
26659
26735
|
bottomSlot
|
|
26660
26736
|
] });
|
|
26661
26737
|
}
|
|
26662
26738
|
|
|
26663
26739
|
// src/components/Headers/PageHeader.tsx
|
|
26664
|
-
import { trussProps as
|
|
26665
|
-
import { jsx as
|
|
26740
|
+
import { trussProps as trussProps125 } from "@homebound/truss/runtime";
|
|
26741
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
26666
26742
|
function PageHeader2(props) {
|
|
26667
26743
|
const {
|
|
26668
26744
|
tabs,
|
|
26669
26745
|
...otherProps
|
|
26670
26746
|
} = props;
|
|
26671
26747
|
const tid = useTestIds(otherProps, "header");
|
|
26672
|
-
return /* @__PURE__ */
|
|
26748
|
+
return /* @__PURE__ */ jsx218(BaseHeader, { ...otherProps, bottomSlot: tabs && /* @__PURE__ */ jsx218("div", { ...trussProps125(pageContentPaddingX), children: /* @__PURE__ */ jsx218(Tabs, { ...tabs, ...tid.tabs }) }) });
|
|
26673
26749
|
}
|
|
26674
26750
|
|
|
26675
26751
|
// src/layouts/useBannerAndNavbarHeight.ts
|
|
@@ -26678,9 +26754,9 @@ function useBannerAndNavbarHeight() {
|
|
|
26678
26754
|
}
|
|
26679
26755
|
|
|
26680
26756
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
26681
|
-
import { mergeProps as mergeProps38, maybeCssVar as
|
|
26682
|
-
import { jsx as
|
|
26683
|
-
var
|
|
26757
|
+
import { mergeProps as mergeProps38, maybeCssVar as maybeCssVar60 } from "@homebound/truss/runtime";
|
|
26758
|
+
import { jsx as jsx219, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
26759
|
+
var __maybeInc29 = (inc) => {
|
|
26684
26760
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26685
26761
|
};
|
|
26686
26762
|
function PageHeaderLayout(props) {
|
|
@@ -26710,43 +26786,43 @@ function PageHeaderLayout(props) {
|
|
|
26710
26786
|
const innerCss = autoHideState === "static" ? {
|
|
26711
26787
|
position: "sticky",
|
|
26712
26788
|
left: ["left_var", {
|
|
26713
|
-
"--left":
|
|
26789
|
+
"--left": maybeCssVar60(__maybeInc29(headerLeft))
|
|
26714
26790
|
}],
|
|
26715
26791
|
width: ["w_var", {
|
|
26716
|
-
"--width":
|
|
26792
|
+
"--width": maybeCssVar60(__maybeInc29(headerWidth))
|
|
26717
26793
|
}],
|
|
26718
26794
|
zIndex: ["z_var", {
|
|
26719
|
-
"--zIndex":
|
|
26795
|
+
"--zIndex": maybeCssVar60(zIndices.pageStickyHeader)
|
|
26720
26796
|
}]
|
|
26721
26797
|
} : {
|
|
26722
26798
|
position: "fixed",
|
|
26723
26799
|
left: ["left_var", {
|
|
26724
|
-
"--left":
|
|
26800
|
+
"--left": maybeCssVar60(__maybeInc29(headerLeft))
|
|
26725
26801
|
}],
|
|
26726
26802
|
width: ["w_var", {
|
|
26727
|
-
"--width":
|
|
26803
|
+
"--width": maybeCssVar60(__maybeInc29(headerWidth))
|
|
26728
26804
|
}],
|
|
26729
26805
|
zIndex: ["z_var", {
|
|
26730
|
-
"--zIndex":
|
|
26806
|
+
"--zIndex": maybeCssVar60(zIndices.pageStickyHeader)
|
|
26731
26807
|
}],
|
|
26732
26808
|
transition: "transitionTop"
|
|
26733
26809
|
};
|
|
26734
26810
|
const innerStyle = autoHideState !== "static" ? {
|
|
26735
26811
|
top: autoHideState === "revealed" ? outerTop : `calc(${outerTop} - ${headerHeight}px)`
|
|
26736
26812
|
} : void 0;
|
|
26737
|
-
const pageHeaderEl = useMemo57(() => /* @__PURE__ */
|
|
26738
|
-
return /* @__PURE__ */
|
|
26813
|
+
const pageHeaderEl = useMemo57(() => /* @__PURE__ */ jsx219(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
26814
|
+
return /* @__PURE__ */ jsx219(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs114("div", { ...mergeProps38(void 0, cssVars, {
|
|
26739
26815
|
display: "df",
|
|
26740
26816
|
flexDirection: "fdc",
|
|
26741
26817
|
width: "w100"
|
|
26742
26818
|
}), ...tid, children: [
|
|
26743
|
-
/* @__PURE__ */
|
|
26819
|
+
/* @__PURE__ */ jsx219("div", { ref: spacerRef, ...mergeProps38(void 0, {
|
|
26744
26820
|
height: headerHeight
|
|
26745
26821
|
}, {
|
|
26746
26822
|
flexShrink: "fs0",
|
|
26747
26823
|
width: "w100"
|
|
26748
|
-
}), children: /* @__PURE__ */
|
|
26749
|
-
/* @__PURE__ */
|
|
26824
|
+
}), children: /* @__PURE__ */ jsx219("div", { ref: headerMetricsRef, ...mergeProps38(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
26825
|
+
/* @__PURE__ */ jsx219("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
|
|
26750
26826
|
] }) });
|
|
26751
26827
|
}
|
|
26752
26828
|
|
|
@@ -26754,17 +26830,17 @@ function PageHeaderLayout(props) {
|
|
|
26754
26830
|
import { useLayoutEffect as useLayoutEffect11, useRef as useRef69, useState as useState59 } from "react";
|
|
26755
26831
|
|
|
26756
26832
|
// src/components/Headers/WorkflowHeader.tsx
|
|
26757
|
-
import { jsx as
|
|
26833
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
26758
26834
|
function WorkflowHeader(props) {
|
|
26759
26835
|
const { stepperTabs, ...otherProps } = props;
|
|
26760
26836
|
const tid = useTestIds(otherProps, "header");
|
|
26761
|
-
return /* @__PURE__ */
|
|
26837
|
+
return /* @__PURE__ */ jsx220(BaseHeader, { ...otherProps, bottomSlot: /* @__PURE__ */ jsx220(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) });
|
|
26762
26838
|
}
|
|
26763
26839
|
|
|
26764
26840
|
// src/layouts/WorkflowLayout/useUnsavedChangesGuard.tsx
|
|
26765
26841
|
import { useEffect as useEffect39, useRef as useRef68 } from "react";
|
|
26766
26842
|
import { useBlocker } from "react-router-dom";
|
|
26767
|
-
import { jsx as
|
|
26843
|
+
import { jsx as jsx221 } from "react/jsx-runtime";
|
|
26768
26844
|
function useUnsavedChangesGuard(options) {
|
|
26769
26845
|
const { isDirty, onCancel } = options;
|
|
26770
26846
|
const { openModal } = useModal();
|
|
@@ -26787,7 +26863,7 @@ function useUnsavedChangesGuard(options) {
|
|
|
26787
26863
|
}
|
|
26788
26864
|
openModal({
|
|
26789
26865
|
allowClosing: false,
|
|
26790
|
-
content: /* @__PURE__ */
|
|
26866
|
+
content: /* @__PURE__ */ jsx221(ConfirmCloseModal, { onClose: () => onCancel(e) })
|
|
26791
26867
|
});
|
|
26792
26868
|
};
|
|
26793
26869
|
const navigationBlocker = blocker.state === "blocked" ? { proceed: () => blocker.proceed?.(), cancelNavigation: () => blocker.reset?.() } : void 0;
|
|
@@ -26799,7 +26875,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
26799
26875
|
useEffect39(() => {
|
|
26800
26876
|
openModal({
|
|
26801
26877
|
allowClosing: false,
|
|
26802
|
-
content: /* @__PURE__ */
|
|
26878
|
+
content: /* @__PURE__ */ jsx221(ConfirmCloseModal, { title: "Leave page?", onClose: proceed, onContinue: cancelNavigation })
|
|
26803
26879
|
});
|
|
26804
26880
|
return () => closeModal();
|
|
26805
26881
|
}, []);
|
|
@@ -26807,7 +26883,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
26807
26883
|
}
|
|
26808
26884
|
|
|
26809
26885
|
// src/layouts/WorkflowLayout/WorkflowActions.tsx
|
|
26810
|
-
import { jsx as
|
|
26886
|
+
import { jsx as jsx222, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
26811
26887
|
function WorkflowActions(props) {
|
|
26812
26888
|
const {
|
|
26813
26889
|
isFirstStep,
|
|
@@ -26821,20 +26897,20 @@ function WorkflowActions(props) {
|
|
|
26821
26897
|
onContinue,
|
|
26822
26898
|
primaryDisabled
|
|
26823
26899
|
} = props;
|
|
26824
|
-
return /* @__PURE__ */
|
|
26825
|
-
/* @__PURE__ */
|
|
26826
|
-
/* @__PURE__ */
|
|
26827
|
-
/* @__PURE__ */
|
|
26828
|
-
onSaveAndExit && /* @__PURE__ */
|
|
26829
|
-
isLastStep ? /* @__PURE__ */
|
|
26900
|
+
return /* @__PURE__ */ jsxs115("div", { className: "df aic jcsb sm_w100", children: [
|
|
26901
|
+
/* @__PURE__ */ jsx222("div", { className: "df aic", children: !isFirstStep && isMobile && /* @__PURE__ */ jsx222(IconButton, { icon: "arrowBack", label: "Back", onClick: onBack }) }),
|
|
26902
|
+
/* @__PURE__ */ jsxs115("div", { className: "df aic gap1", children: [
|
|
26903
|
+
/* @__PURE__ */ jsx222(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
|
|
26904
|
+
onSaveAndExit && /* @__PURE__ */ jsx222(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
|
|
26905
|
+
isLastStep ? /* @__PURE__ */ jsx222(Button, { label: completeLabel, variant: "primary", onClick: onComplete, disabled: primaryDisabled }) : /* @__PURE__ */ jsx222(Button, { label: "Continue", variant: "primary", onClick: onContinue, disabled: primaryDisabled })
|
|
26830
26906
|
] })
|
|
26831
26907
|
] });
|
|
26832
26908
|
}
|
|
26833
26909
|
|
|
26834
26910
|
// src/layouts/WorkflowLayout/WorkflowLayout.tsx
|
|
26835
|
-
import { trussProps as
|
|
26836
|
-
import { jsx as
|
|
26837
|
-
var
|
|
26911
|
+
import { trussProps as trussProps126, mergeProps as mergeProps39, maybeCssVar as maybeCssVar61 } from "@homebound/truss/runtime";
|
|
26912
|
+
import { jsx as jsx223, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
26913
|
+
var __maybeInc30 = (inc) => {
|
|
26838
26914
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26839
26915
|
};
|
|
26840
26916
|
function WorkflowLayout(props) {
|
|
@@ -26875,7 +26951,7 @@ function WorkflowLayout(props) {
|
|
|
26875
26951
|
const isFirstStep = currentIndex <= 0;
|
|
26876
26952
|
const isLastStep = currentIndex === stepTabs.length - 1;
|
|
26877
26953
|
const activeStep = stepTabs[currentIndex];
|
|
26878
|
-
const buttons = /* @__PURE__ */
|
|
26954
|
+
const buttons = /* @__PURE__ */ jsx223(WorkflowActions, { isFirstStep, isLastStep, isMobile, onBack: () => setCurrentStep(stepTabs[currentIndex - 1].value), onCancel: onCancelClick, onSaveAndExit, completeLabel, onComplete, primaryDisabled: !activeStep?.isValid, onContinue: async () => {
|
|
26879
26955
|
const onContinue = activeStep?.onContinue;
|
|
26880
26956
|
if (onContinue) {
|
|
26881
26957
|
const allowed = await onContinue();
|
|
@@ -26896,7 +26972,7 @@ function WorkflowLayout(props) {
|
|
|
26896
26972
|
}
|
|
26897
26973
|
};
|
|
26898
26974
|
}, [showFooter]);
|
|
26899
|
-
const headerEl = /* @__PURE__ */
|
|
26975
|
+
const headerEl = /* @__PURE__ */ jsx223(
|
|
26900
26976
|
WorkflowHeader,
|
|
26901
26977
|
{
|
|
26902
26978
|
...headerProps,
|
|
@@ -26909,44 +26985,44 @@ function WorkflowLayout(props) {
|
|
|
26909
26985
|
}
|
|
26910
26986
|
}
|
|
26911
26987
|
);
|
|
26912
|
-
return /* @__PURE__ */
|
|
26913
|
-
/* @__PURE__ */
|
|
26988
|
+
return /* @__PURE__ */ jsxs116(DocumentScrollLayoutProvider, { children: [
|
|
26989
|
+
/* @__PURE__ */ jsxs116("div", { ...mergeProps39(void 0, cssVars, {
|
|
26914
26990
|
display: "df",
|
|
26915
26991
|
flexDirection: "fdc",
|
|
26916
26992
|
width: "w100"
|
|
26917
26993
|
}), ...tid, children: [
|
|
26918
|
-
/* @__PURE__ */
|
|
26994
|
+
/* @__PURE__ */ jsx223("div", { ref: headerMetricsRef, ...trussProps126({
|
|
26919
26995
|
position: "sticky",
|
|
26920
26996
|
left: "left0",
|
|
26921
26997
|
width: ["w_var", {
|
|
26922
|
-
"--width":
|
|
26998
|
+
"--width": maybeCssVar61(__maybeInc30(headerWidth))
|
|
26923
26999
|
}],
|
|
26924
27000
|
zIndex: ["z_var", {
|
|
26925
|
-
"--zIndex":
|
|
27001
|
+
"--zIndex": maybeCssVar61(zIndices.pageStickyHeader)
|
|
26926
27002
|
}],
|
|
26927
27003
|
top: ["top_var", {
|
|
26928
|
-
"--top":
|
|
27004
|
+
"--top": maybeCssVar61(__maybeInc30(outerTop))
|
|
26929
27005
|
}]
|
|
26930
27006
|
}), ...tid.header, children: headerEl }),
|
|
26931
|
-
/* @__PURE__ */
|
|
26932
|
-
showFooter && /* @__PURE__ */
|
|
27007
|
+
/* @__PURE__ */ jsx223("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children: activeStep?.content }),
|
|
27008
|
+
showFooter && /* @__PURE__ */ jsx223("div", { ...trussProps126({
|
|
26933
27009
|
flexShrink: "fs0",
|
|
26934
27010
|
width: "w100",
|
|
26935
27011
|
height: ["h_var", {
|
|
26936
27012
|
"--height": `${mobileFooterHeightPx}px`
|
|
26937
27013
|
}]
|
|
26938
|
-
}), children: /* @__PURE__ */
|
|
27014
|
+
}), children: /* @__PURE__ */ jsx223("div", { ...trussProps126({
|
|
26939
27015
|
...{
|
|
26940
27016
|
position: "fixed",
|
|
26941
27017
|
bottom: "bottom0",
|
|
26942
27018
|
width: ["w_var", {
|
|
26943
|
-
"--width":
|
|
27019
|
+
"--width": maybeCssVar61(__maybeInc30(headerWidth))
|
|
26944
27020
|
}],
|
|
26945
27021
|
height: ["h_var", {
|
|
26946
27022
|
"--height": `${mobileFooterHeightPx}px`
|
|
26947
27023
|
}],
|
|
26948
27024
|
zIndex: ["z_var", {
|
|
26949
|
-
"--zIndex":
|
|
27025
|
+
"--zIndex": maybeCssVar61(zIndices.pageStickyFooter)
|
|
26950
27026
|
}],
|
|
26951
27027
|
display: "df",
|
|
26952
27028
|
alignItems: "aic",
|
|
@@ -26964,7 +27040,7 @@ function WorkflowLayout(props) {
|
|
|
26964
27040
|
...pageContentPaddingX
|
|
26965
27041
|
}), ...tid.footer, children: buttons }) })
|
|
26966
27042
|
] }),
|
|
26967
|
-
navigationBlocker && /* @__PURE__ */
|
|
27043
|
+
navigationBlocker && /* @__PURE__ */ jsx223(UnsavedChangesNavigationModal, { ...navigationBlocker })
|
|
26968
27044
|
] });
|
|
26969
27045
|
}
|
|
26970
27046
|
var mobileFooterHeightPx = 80;
|
|
@@ -26988,7 +27064,9 @@ export {
|
|
|
26988
27064
|
AvatarGroup,
|
|
26989
27065
|
Banner,
|
|
26990
27066
|
BaseFilter,
|
|
27067
|
+
BeamLogo,
|
|
26991
27068
|
BeamProvider,
|
|
27069
|
+
BlueprintAiLogo,
|
|
26992
27070
|
BoundCheckboxField,
|
|
26993
27071
|
BoundCheckboxGroupField,
|
|
26994
27072
|
BoundChipSelectField,
|