@homebound/beam 3.75.2 → 3.77.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 +401 -317
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -10
- package/dist/index.d.ts +40 -10
- package/dist/index.js +390 -308
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24001,7 +24001,8 @@ function ContentHeader(props) {
|
|
|
24001
24001
|
const {
|
|
24002
24002
|
title,
|
|
24003
24003
|
description,
|
|
24004
|
-
actions
|
|
24004
|
+
actions,
|
|
24005
|
+
xss
|
|
24005
24006
|
} = props;
|
|
24006
24007
|
const tid = useTestIds(props, "contentHeader");
|
|
24007
24008
|
if (!title && !description && !actions) {
|
|
@@ -24016,15 +24017,18 @@ function ContentHeader(props) {
|
|
|
24016
24017
|
}]
|
|
24017
24018
|
}), ...tid.description, children: description });
|
|
24018
24019
|
return /* @__PURE__ */ jsxs91("div", { ...trussProps101({
|
|
24019
|
-
|
|
24020
|
-
|
|
24021
|
-
|
|
24022
|
-
|
|
24023
|
-
|
|
24024
|
-
|
|
24025
|
-
|
|
24026
|
-
|
|
24027
|
-
|
|
24020
|
+
...{
|
|
24021
|
+
display: "df",
|
|
24022
|
+
flexDirection: "fdc",
|
|
24023
|
+
gap: "gap_12px",
|
|
24024
|
+
width: "w_min_100_calc_var_beam_layout_viewport_width_100vw_var_beam_side_nav_layout_width_0px",
|
|
24025
|
+
left: "l_var_beam_side_nav_layout_width_0px",
|
|
24026
|
+
position: "sticky",
|
|
24027
|
+
backgroundColor: ["bgColor_var", {
|
|
24028
|
+
"--backgroundColor": "var(--b-surface)"
|
|
24029
|
+
}]
|
|
24030
|
+
},
|
|
24031
|
+
...xss
|
|
24028
24032
|
}), ...tid, children: [
|
|
24029
24033
|
/* @__PURE__ */ jsxs91("div", { className: "df aic jcsb mw0", children: [
|
|
24030
24034
|
title ? /* @__PURE__ */ jsx187("h2", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }) : descriptionEl,
|
|
@@ -24034,36 +24038,11 @@ function ContentHeader(props) {
|
|
|
24034
24038
|
] });
|
|
24035
24039
|
}
|
|
24036
24040
|
|
|
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
24041
|
// src/components/JumpLink.tsx
|
|
24063
24042
|
import { useRef as useRef57 } from "react";
|
|
24064
24043
|
import { mergeProps as mergeProps29, useFocusRing as useFocusRing15, useHover as useHover19, useLink } from "react-aria";
|
|
24065
|
-
import { trussProps as
|
|
24066
|
-
import { jsx as
|
|
24044
|
+
import { trussProps as trussProps102 } from "@homebound/truss/runtime";
|
|
24045
|
+
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
24067
24046
|
function JumpLink(props) {
|
|
24068
24047
|
const {
|
|
24069
24048
|
label,
|
|
@@ -24105,14 +24084,14 @@ function JumpLink(props) {
|
|
|
24105
24084
|
});
|
|
24106
24085
|
}
|
|
24107
24086
|
}
|
|
24108
|
-
return /* @__PURE__ */
|
|
24087
|
+
return /* @__PURE__ */ jsx188("a", { ref, ...mergeProps29(linkProps, focusProps, hoverProps), ...tid, ...trussProps102({
|
|
24109
24088
|
...jumpLinkStyles.baseStyles,
|
|
24110
24089
|
...active && jumpLinkStyles.activeStyles,
|
|
24111
24090
|
...isHovered && !disabled && jumpLinkStyles.hoverStyles,
|
|
24112
24091
|
...isFocusVisible && jumpLinkStyles.focusStyles,
|
|
24113
24092
|
...disabled && jumpLinkStyles.disabledStyles,
|
|
24114
24093
|
...disabled && active && jumpLinkStyles.disabledActiveStyles
|
|
24115
|
-
}), children: /* @__PURE__ */
|
|
24094
|
+
}), children: /* @__PURE__ */ jsx188("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_2", children: label }) });
|
|
24116
24095
|
}
|
|
24117
24096
|
var jumpLinkStyles = {
|
|
24118
24097
|
baseStyles: {
|
|
@@ -24159,11 +24138,112 @@ var jumpLinkStyles = {
|
|
|
24159
24138
|
}
|
|
24160
24139
|
};
|
|
24161
24140
|
|
|
24141
|
+
// src/components/Logos/BeamLogo.tsx
|
|
24142
|
+
import { trussProps as trussProps103, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
|
|
24143
|
+
import { jsx as jsx189, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
24144
|
+
var __maybeInc21 = (inc) => {
|
|
24145
|
+
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24146
|
+
};
|
|
24147
|
+
function BeamLogo(props) {
|
|
24148
|
+
const {
|
|
24149
|
+
fill = "currentColor",
|
|
24150
|
+
width: width2 = "auto",
|
|
24151
|
+
height = "auto"
|
|
24152
|
+
} = props;
|
|
24153
|
+
return /* @__PURE__ */ jsxs92("svg", { viewBox: "0 0 500 500", xmlns: "http://www.w3.org/2000/svg", ...trussProps103({
|
|
24154
|
+
fill: ["fill_var", {
|
|
24155
|
+
"--fill": maybeCssVar48(fill)
|
|
24156
|
+
}],
|
|
24157
|
+
width: ["w_var", {
|
|
24158
|
+
"--width": maybeCssVar48(__maybeInc21(width2))
|
|
24159
|
+
}],
|
|
24160
|
+
height: ["h_var", {
|
|
24161
|
+
"--height": maybeCssVar48(__maybeInc21(height))
|
|
24162
|
+
}]
|
|
24163
|
+
}), children: [
|
|
24164
|
+
/* @__PURE__ */ jsx189("rect", { x: "10", y: "90", width: "32", height: "320" }),
|
|
24165
|
+
/* @__PURE__ */ jsx189("rect", { x: "122", y: "172", width: "32", height: "158" }),
|
|
24166
|
+
/* @__PURE__ */ jsx189("rect", { x: "346", y: "172", width: "32", height: "158" }),
|
|
24167
|
+
/* @__PURE__ */ jsx189("rect", { x: "458", y: "90", width: "32", height: "320" }),
|
|
24168
|
+
/* @__PURE__ */ jsx189("rect", { x: "10", y: "90", width: "480", height: "32" }),
|
|
24169
|
+
/* @__PURE__ */ jsx189("rect", { x: "10", y: "378", width: "480", height: "32" }),
|
|
24170
|
+
/* @__PURE__ */ jsx189("rect", { x: "10", y: "172", width: "480", height: "32" }),
|
|
24171
|
+
/* @__PURE__ */ jsx189("rect", { x: "10", y: "298", width: "480", height: "32" })
|
|
24172
|
+
] });
|
|
24173
|
+
}
|
|
24174
|
+
|
|
24175
|
+
// src/components/Logos/BlueprintAiLogo.tsx
|
|
24176
|
+
import { useId as useId3 } from "@react-aria/utils";
|
|
24177
|
+
import { trussProps as trussProps104, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
|
|
24178
|
+
import { jsx as jsx190, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
24179
|
+
var __maybeInc22 = (inc) => {
|
|
24180
|
+
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24181
|
+
};
|
|
24182
|
+
function BlueprintAiLogo(props) {
|
|
24183
|
+
const {
|
|
24184
|
+
width: width2 = "auto",
|
|
24185
|
+
height = "auto"
|
|
24186
|
+
} = props;
|
|
24187
|
+
const gradientId = useId3();
|
|
24188
|
+
return /* @__PURE__ */ jsxs93("svg", { viewBox: "0 0 207 40", xmlns: "http://www.w3.org/2000/svg", ...trussProps104({
|
|
24189
|
+
width: ["w_var", {
|
|
24190
|
+
"--width": maybeCssVar49(__maybeInc22(width2))
|
|
24191
|
+
}],
|
|
24192
|
+
height: ["h_var", {
|
|
24193
|
+
"--height": maybeCssVar49(__maybeInc22(height))
|
|
24194
|
+
}]
|
|
24195
|
+
}), children: [
|
|
24196
|
+
/* @__PURE__ */ jsxs93("g", { transform: "translate(0.32171630859375, 3)", fill: `url(#${gradientId})`, children: [
|
|
24197
|
+
/* @__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" }),
|
|
24198
|
+
/* @__PURE__ */ jsx190("path", { d: "M202.994 28.2798V3.31983H206.322V28.2798H202.994Z" }),
|
|
24199
|
+
/* @__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" }),
|
|
24200
|
+
/* @__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" }),
|
|
24201
|
+
/* @__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" }),
|
|
24202
|
+
/* @__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" }),
|
|
24203
|
+
/* @__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" }),
|
|
24204
|
+
/* @__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" }),
|
|
24205
|
+
/* @__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" }),
|
|
24206
|
+
/* @__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" }),
|
|
24207
|
+
/* @__PURE__ */ jsx190("path", { d: "M60.452 28.2798V2.99983H63.716V28.2798H60.452Z" }),
|
|
24208
|
+
/* @__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" })
|
|
24209
|
+
] }),
|
|
24210
|
+
/* @__PURE__ */ jsx190("defs", { children: /* @__PURE__ */ jsxs93("linearGradient", { id: gradientId, x1: "47.4999", y1: "35", x2: "51.8397", y2: "-28.0595", gradientUnits: "userSpaceOnUse", children: [
|
|
24211
|
+
/* @__PURE__ */ jsx190("stop", { offset: "0.135528", stopColor: "rgba(91, 33, 182, 1)" /* Purple800 */ }),
|
|
24212
|
+
/* @__PURE__ */ jsx190("stop", { offset: "0.705975", stopColor: "rgba(37, 99, 235, 1)" /* Blue600 */ })
|
|
24213
|
+
] }) })
|
|
24214
|
+
] });
|
|
24215
|
+
}
|
|
24216
|
+
|
|
24217
|
+
// src/components/Logos/HomeboundLogo.tsx
|
|
24218
|
+
import { trussProps as trussProps105, maybeCssVar as maybeCssVar50 } from "@homebound/truss/runtime";
|
|
24219
|
+
import { jsx as jsx191 } from "react/jsx-runtime";
|
|
24220
|
+
var __maybeInc23 = (inc) => {
|
|
24221
|
+
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24222
|
+
};
|
|
24223
|
+
function HomeboundLogo(props) {
|
|
24224
|
+
const {
|
|
24225
|
+
fill = "currentColor",
|
|
24226
|
+
width: width2 = "auto",
|
|
24227
|
+
height = "auto"
|
|
24228
|
+
} = props;
|
|
24229
|
+
return /* @__PURE__ */ jsx191("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...trussProps105({
|
|
24230
|
+
fill: ["fill_var", {
|
|
24231
|
+
"--fill": maybeCssVar50(fill)
|
|
24232
|
+
}],
|
|
24233
|
+
width: ["w_var", {
|
|
24234
|
+
"--width": maybeCssVar50(__maybeInc23(width2))
|
|
24235
|
+
}],
|
|
24236
|
+
height: ["h_var", {
|
|
24237
|
+
"--height": maybeCssVar50(__maybeInc23(height))
|
|
24238
|
+
}]
|
|
24239
|
+
}), 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" }) });
|
|
24240
|
+
}
|
|
24241
|
+
|
|
24162
24242
|
// src/components/MaxLines.tsx
|
|
24163
24243
|
import { useLayoutEffect as useLayoutEffect8, useResizeObserver as useResizeObserver7 } from "@react-aria/utils";
|
|
24164
24244
|
import { useCallback as useCallback31, useEffect as useEffect33, useRef as useRef58, useState as useState50 } from "react";
|
|
24165
|
-
import { trussProps as
|
|
24166
|
-
import { jsx as
|
|
24245
|
+
import { trussProps as trussProps106, maybeCssVar as maybeCssVar51 } from "@homebound/truss/runtime";
|
|
24246
|
+
import { jsx as jsx192, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
24167
24247
|
function MaxLines({
|
|
24168
24248
|
maxLines,
|
|
24169
24249
|
children
|
|
@@ -24186,11 +24266,11 @@ function MaxLines({
|
|
|
24186
24266
|
ref: elRef,
|
|
24187
24267
|
onResize
|
|
24188
24268
|
});
|
|
24189
|
-
return /* @__PURE__ */
|
|
24190
|
-
/* @__PURE__ */
|
|
24269
|
+
return /* @__PURE__ */ jsxs94("div", { children: [
|
|
24270
|
+
/* @__PURE__ */ jsx192("div", { ref: elRef, ...trussProps106({
|
|
24191
24271
|
...!expanded ? {
|
|
24192
24272
|
WebkitLineClamp: ["lineClamp_var", {
|
|
24193
|
-
"--WebkitLineClamp":
|
|
24273
|
+
"--WebkitLineClamp": maybeCssVar51(maxLines)
|
|
24194
24274
|
}],
|
|
24195
24275
|
overflow: "oh",
|
|
24196
24276
|
display: "d_negwebkit_box",
|
|
@@ -24198,7 +24278,7 @@ function MaxLines({
|
|
|
24198
24278
|
textOverflow: "to_ellipsis"
|
|
24199
24279
|
} : {}
|
|
24200
24280
|
}), children }),
|
|
24201
|
-
hasMore && /* @__PURE__ */
|
|
24281
|
+
hasMore && /* @__PURE__ */ jsx192("button", { className: "db fw4 fz_14px lh_20px", onClick: () => setExpanded((prev) => !prev), children: expanded ? "Show Less" : "Show More" })
|
|
24202
24282
|
] });
|
|
24203
24283
|
}
|
|
24204
24284
|
|
|
@@ -24213,8 +24293,8 @@ import { useCallback as useCallback33, useEffect as useEffect34, useMemo as useM
|
|
|
24213
24293
|
// src/components/AppNav/AppNavGroupTrigger.tsx
|
|
24214
24294
|
import { useMemo as useMemo50, useRef as useRef59 } from "react";
|
|
24215
24295
|
import { mergeProps as mergeProps30, useButton as useButton11, useFocusRing as useFocusRing16, useHover as useHover20 } from "react-aria";
|
|
24216
|
-
import { trussProps as
|
|
24217
|
-
import { jsx as
|
|
24296
|
+
import { trussProps as trussProps107, mergeProps as mergeProps_14 } from "@homebound/truss/runtime";
|
|
24297
|
+
import { jsx as jsx193, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
24218
24298
|
function AppNavGroupTrigger(props) {
|
|
24219
24299
|
const {
|
|
24220
24300
|
label,
|
|
@@ -24246,7 +24326,7 @@ function AppNavGroupTrigger(props) {
|
|
|
24246
24326
|
hoverStyles: hoverStyles4,
|
|
24247
24327
|
pressedStyles: pressedStyles2
|
|
24248
24328
|
} = useMemo50(() => getNavLinkStyles("side"), []);
|
|
24249
|
-
return /* @__PURE__ */
|
|
24329
|
+
return /* @__PURE__ */ jsxs95("button", { type: "button", ...mergeProps30(buttonProps, focusProps, hoverProps, tid.trigger, {
|
|
24250
24330
|
ref,
|
|
24251
24331
|
"aria-expanded": expanded,
|
|
24252
24332
|
"aria-controls": navGroupId,
|
|
@@ -24264,7 +24344,7 @@ function AppNavGroupTrigger(props) {
|
|
|
24264
24344
|
})
|
|
24265
24345
|
}), children: [
|
|
24266
24346
|
label,
|
|
24267
|
-
/* @__PURE__ */
|
|
24347
|
+
/* @__PURE__ */ jsx193("div", { ...trussProps107({
|
|
24268
24348
|
...{
|
|
24269
24349
|
display: "df",
|
|
24270
24350
|
alignItems: "aic",
|
|
@@ -24274,7 +24354,7 @@ function AppNavGroupTrigger(props) {
|
|
|
24274
24354
|
...props.expanded ? {
|
|
24275
24355
|
transform: "transform_rotate_180deg"
|
|
24276
24356
|
} : {}
|
|
24277
|
-
}), children: /* @__PURE__ */
|
|
24357
|
+
}), children: /* @__PURE__ */ jsx193(Icon, { icon: "chevronDown" }) })
|
|
24278
24358
|
] });
|
|
24279
24359
|
}
|
|
24280
24360
|
|
|
@@ -24417,9 +24497,9 @@ function useAppNavGroupExpanded(linkGroup) {
|
|
|
24417
24497
|
}
|
|
24418
24498
|
|
|
24419
24499
|
// src/components/AppNav/AppNavGroup.tsx
|
|
24420
|
-
import { trussProps as
|
|
24421
|
-
import { Fragment as Fragment42, jsx as
|
|
24422
|
-
var
|
|
24500
|
+
import { trussProps as trussProps108, maybeCssVar as maybeCssVar52 } from "@homebound/truss/runtime";
|
|
24501
|
+
import { Fragment as Fragment42, jsx as jsx194, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
24502
|
+
var __maybeInc24 = (inc) => {
|
|
24423
24503
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24424
24504
|
};
|
|
24425
24505
|
function AppNavGroupView(props) {
|
|
@@ -24429,9 +24509,9 @@ function AppNavGroupView(props) {
|
|
|
24429
24509
|
} = props;
|
|
24430
24510
|
const tid = useTestIds(props, "linkGroup");
|
|
24431
24511
|
if (panelCollapsed) {
|
|
24432
|
-
return /* @__PURE__ */
|
|
24512
|
+
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
24513
|
}
|
|
24434
|
-
return /* @__PURE__ */
|
|
24514
|
+
return /* @__PURE__ */ jsx194(AppNavGroupDisclosure, { ...props });
|
|
24435
24515
|
}
|
|
24436
24516
|
function AppNavGroupDisclosure(props) {
|
|
24437
24517
|
const {
|
|
@@ -24460,27 +24540,27 @@ function AppNavGroupDisclosure(props) {
|
|
|
24460
24540
|
ref: contentRef,
|
|
24461
24541
|
onResize
|
|
24462
24542
|
});
|
|
24463
|
-
return /* @__PURE__ */
|
|
24464
|
-
/* @__PURE__ */
|
|
24465
|
-
/* @__PURE__ */
|
|
24543
|
+
return /* @__PURE__ */ jsxs96("div", { className: "df fdc", ...tid, children: [
|
|
24544
|
+
/* @__PURE__ */ jsx194(AppNavGroupTrigger, { label: linkGroup.label, navGroupId, expanded, active: linkGroupHasActiveLink(linkGroup), onClick: onToggle, ...tid }),
|
|
24545
|
+
/* @__PURE__ */ jsx194("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...trussProps108({
|
|
24466
24546
|
overflow: "oh",
|
|
24467
24547
|
transition: "transitionHeight",
|
|
24468
24548
|
height: ["h_var", {
|
|
24469
|
-
"--height":
|
|
24549
|
+
"--height": maybeCssVar52(__maybeInc24(contentHeight))
|
|
24470
24550
|
}]
|
|
24471
24551
|
}), ...tid.panel, ...!expanded ? {
|
|
24472
24552
|
inert: "true"
|
|
24473
|
-
} : {}, children: /* @__PURE__ */
|
|
24553
|
+
} : {}, children: /* @__PURE__ */ jsx194("div", { ref: setContentEl, className: "df fdc", children: /* @__PURE__ */ jsx194(AppNavItems, { items: linkGroup.items, panelCollapsed: false, nested: true, ...tid }) }) })
|
|
24474
24554
|
] });
|
|
24475
24555
|
}
|
|
24476
24556
|
|
|
24477
24557
|
// src/components/AppNav/AppNavGroupMenu.tsx
|
|
24478
|
-
import { jsx as
|
|
24558
|
+
import { jsx as jsx195 } from "react/jsx-runtime";
|
|
24479
24559
|
function AppNavGroupMenu({
|
|
24480
24560
|
linkGroup,
|
|
24481
24561
|
...tid
|
|
24482
24562
|
}) {
|
|
24483
|
-
return /* @__PURE__ */
|
|
24563
|
+
return /* @__PURE__ */ jsx195(
|
|
24484
24564
|
ButtonMenu,
|
|
24485
24565
|
{
|
|
24486
24566
|
trigger: {
|
|
@@ -24496,8 +24576,8 @@ function AppNavGroupMenu({
|
|
|
24496
24576
|
}
|
|
24497
24577
|
|
|
24498
24578
|
// src/components/AppNav/AppNavSectionView.tsx
|
|
24499
|
-
import { trussProps as
|
|
24500
|
-
import { jsx as
|
|
24579
|
+
import { trussProps as trussProps109 } from "@homebound/truss/runtime";
|
|
24580
|
+
import { jsx as jsx196, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
24501
24581
|
function AppNavSectionView(props) {
|
|
24502
24582
|
const {
|
|
24503
24583
|
section,
|
|
@@ -24523,7 +24603,7 @@ function AppNavSectionView(props) {
|
|
|
24523
24603
|
"--borderColor": "var(--b-surface-separator)"
|
|
24524
24604
|
}]
|
|
24525
24605
|
};
|
|
24526
|
-
return /* @__PURE__ */
|
|
24606
|
+
return /* @__PURE__ */ jsxs97("div", { ...trussProps109({
|
|
24527
24607
|
...{
|
|
24528
24608
|
display: "df",
|
|
24529
24609
|
flexDirection: "fdc",
|
|
@@ -24531,7 +24611,7 @@ function AppNavSectionView(props) {
|
|
|
24531
24611
|
},
|
|
24532
24612
|
...showDivider ? dividerStyles : {}
|
|
24533
24613
|
}), ...tid, children: [
|
|
24534
|
-
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */
|
|
24614
|
+
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ jsx196("div", { ...trussProps109({
|
|
24535
24615
|
fontWeight: "fw6",
|
|
24536
24616
|
fontSize: "fz_10px",
|
|
24537
24617
|
lineHeight: "lh_14px",
|
|
@@ -24544,18 +24624,18 @@ function AppNavSectionView(props) {
|
|
|
24544
24624
|
paddingBottom: "pb1",
|
|
24545
24625
|
textTransform: "ttu"
|
|
24546
24626
|
}), ...tid.label, children: section.label }),
|
|
24547
|
-
/* @__PURE__ */
|
|
24627
|
+
/* @__PURE__ */ jsx196(AppNavItems, { ...scopeProps, items: section.items, variant, panelCollapsed, nested })
|
|
24548
24628
|
] });
|
|
24549
24629
|
}
|
|
24550
24630
|
|
|
24551
24631
|
// src/components/AppNav/AppNavItems.tsx
|
|
24552
|
-
import { Fragment as Fragment43, jsx as
|
|
24632
|
+
import { Fragment as Fragment43, jsx as jsx197 } from "react/jsx-runtime";
|
|
24553
24633
|
function AppNavItems(props) {
|
|
24554
24634
|
const { items, variant = "side", panelCollapsed = false, nested = false } = props;
|
|
24555
24635
|
const tid = useTestIds(props, "appNav");
|
|
24556
|
-
return /* @__PURE__ */
|
|
24636
|
+
return /* @__PURE__ */ jsx197(Fragment43, { children: items.map((item, idx) => {
|
|
24557
24637
|
if (isAppNavLink(item)) {
|
|
24558
|
-
return /* @__PURE__ */
|
|
24638
|
+
return /* @__PURE__ */ jsx197(
|
|
24559
24639
|
NavLink,
|
|
24560
24640
|
{
|
|
24561
24641
|
variant,
|
|
@@ -24568,7 +24648,7 @@ function AppNavItems(props) {
|
|
|
24568
24648
|
);
|
|
24569
24649
|
}
|
|
24570
24650
|
if (isAppNavGroup(item)) {
|
|
24571
|
-
return variant === "global" ? /* @__PURE__ */
|
|
24651
|
+
return variant === "global" ? /* @__PURE__ */ jsx197(AppNavGroupMenu, { linkGroup: item, ...tid.linkGroup }, appNavItemKey(item)) : /* @__PURE__ */ jsx197(
|
|
24572
24652
|
AppNavGroupView,
|
|
24573
24653
|
{
|
|
24574
24654
|
linkGroup: item,
|
|
@@ -24579,7 +24659,7 @@ function AppNavItems(props) {
|
|
|
24579
24659
|
);
|
|
24580
24660
|
}
|
|
24581
24661
|
if (isAppNavSection(item)) {
|
|
24582
|
-
return /* @__PURE__ */
|
|
24662
|
+
return /* @__PURE__ */ jsx197(
|
|
24583
24663
|
AppNavSectionView,
|
|
24584
24664
|
{
|
|
24585
24665
|
section: item,
|
|
@@ -24602,8 +24682,8 @@ import { useEffect as useEffect35, useState as useState53 } from "react";
|
|
|
24602
24682
|
import { FocusScope as FocusScope5, usePreventScroll as usePreventScroll3 } from "react-aria";
|
|
24603
24683
|
import { createPortal as createPortal7 } from "react-dom";
|
|
24604
24684
|
import { useLocation } from "react-router-dom";
|
|
24605
|
-
import { trussProps as
|
|
24606
|
-
import { Fragment as Fragment44, jsx as
|
|
24685
|
+
import { trussProps as trussProps110, mergeProps as mergeProps31, maybeCssVar as maybeCssVar53 } from "@homebound/truss/runtime";
|
|
24686
|
+
import { Fragment as Fragment44, jsx as jsx198, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
24607
24687
|
function NavbarMobileMenu(props) {
|
|
24608
24688
|
const {
|
|
24609
24689
|
items
|
|
@@ -24621,11 +24701,11 @@ function NavbarMobileMenu(props) {
|
|
|
24621
24701
|
setIsOpen(false);
|
|
24622
24702
|
}, [pathname, search]);
|
|
24623
24703
|
const close = () => setIsOpen(false);
|
|
24624
|
-
return /* @__PURE__ */
|
|
24625
|
-
/* @__PURE__ */
|
|
24704
|
+
return /* @__PURE__ */ jsxs98(Fragment44, { children: [
|
|
24705
|
+
/* @__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
24706
|
createPortal7(
|
|
24627
24707
|
/* AnimatePresence keeps the drawer mounted through its slide/fade-out before unmounting.*/
|
|
24628
|
-
/* @__PURE__ */
|
|
24708
|
+
/* @__PURE__ */ jsx198(AnimatePresence6, { children: isOpen && /* @__PURE__ */ jsx198(NavbarMobileDrawer, { items, onClose: close, tid }) }),
|
|
24629
24709
|
document.body
|
|
24630
24710
|
)
|
|
24631
24711
|
] });
|
|
@@ -24639,14 +24719,14 @@ function NavbarMobileDrawer({
|
|
|
24639
24719
|
const overlayTopStyle = {
|
|
24640
24720
|
top: bannerHeightPx
|
|
24641
24721
|
};
|
|
24642
|
-
return /* @__PURE__ */
|
|
24643
|
-
/* @__PURE__ */
|
|
24722
|
+
return /* @__PURE__ */ jsxs98(Fragment44, { children: [
|
|
24723
|
+
/* @__PURE__ */ jsx198(motion6.div, { ...mergeProps31(void 0, overlayTopStyle, {
|
|
24644
24724
|
position: "fixed",
|
|
24645
24725
|
right: "right0",
|
|
24646
24726
|
bottom: "bottom0",
|
|
24647
24727
|
left: "left0",
|
|
24648
24728
|
zIndex: ["z_var", {
|
|
24649
|
-
"--zIndex":
|
|
24729
|
+
"--zIndex": maybeCssVar53(zIndices.navbarMobileMenuScrim)
|
|
24650
24730
|
}],
|
|
24651
24731
|
backgroundColor: ["bgColor_var", {
|
|
24652
24732
|
"--backgroundColor": "var(--b-scrim)"
|
|
@@ -24661,7 +24741,7 @@ function NavbarMobileDrawer({
|
|
|
24661
24741
|
ease: "linear",
|
|
24662
24742
|
duration: 0.2
|
|
24663
24743
|
}, onClick: onClose, ...tid.mobileMenuScrim }, "navbarMobileMenuScrim"),
|
|
24664
|
-
/* @__PURE__ */
|
|
24744
|
+
/* @__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
24745
|
position: "fixed",
|
|
24666
24746
|
bottom: "bottom0",
|
|
24667
24747
|
left: "left0",
|
|
@@ -24671,7 +24751,7 @@ function NavbarMobileDrawer({
|
|
|
24671
24751
|
width: "w_260px",
|
|
24672
24752
|
overflow: "oh",
|
|
24673
24753
|
zIndex: ["z_var", {
|
|
24674
|
-
"--zIndex":
|
|
24754
|
+
"--zIndex": maybeCssVar53(zIndices.navbarMobileMenu)
|
|
24675
24755
|
}],
|
|
24676
24756
|
backgroundColor: ["bgColor_var", {
|
|
24677
24757
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -24686,7 +24766,7 @@ function NavbarMobileDrawer({
|
|
|
24686
24766
|
ease: "linear",
|
|
24687
24767
|
duration: 0.2
|
|
24688
24768
|
}, onClick: (e) => e.stopPropagation(), ...tid.mobileMenuDrawer, children: [
|
|
24689
|
-
/* @__PURE__ */
|
|
24769
|
+
/* @__PURE__ */ jsx198("div", { ...trussProps110({
|
|
24690
24770
|
...{
|
|
24691
24771
|
display: "df",
|
|
24692
24772
|
alignItems: "aic",
|
|
@@ -24701,11 +24781,11 @@ function NavbarMobileDrawer({
|
|
|
24701
24781
|
}]
|
|
24702
24782
|
},
|
|
24703
24783
|
...pageContentPaddingX
|
|
24704
|
-
}), children: /* @__PURE__ */
|
|
24705
|
-
/* @__PURE__ */
|
|
24784
|
+
}), children: /* @__PURE__ */ jsx198(IconButton, { icon: "x", color: "--b-on-surface-muted" /* OnSurfaceMuted */, label: "Close navigation", onClick: onClose, ...tid.mobileMenuClose }) }),
|
|
24785
|
+
/* @__PURE__ */ jsx198(
|
|
24706
24786
|
"nav",
|
|
24707
24787
|
{
|
|
24708
|
-
...
|
|
24788
|
+
...trussProps110({
|
|
24709
24789
|
...{
|
|
24710
24790
|
flexGrow: "fg1",
|
|
24711
24791
|
overflowY: "oya",
|
|
@@ -24723,7 +24803,7 @@ function NavbarMobileDrawer({
|
|
|
24723
24803
|
}
|
|
24724
24804
|
},
|
|
24725
24805
|
...tid.mobileMenuPanel,
|
|
24726
|
-
children: /* @__PURE__ */
|
|
24806
|
+
children: /* @__PURE__ */ jsx198(AppNavItems, { items, panelCollapsed: false, ...tid })
|
|
24727
24807
|
}
|
|
24728
24808
|
)
|
|
24729
24809
|
] }, "navbarMobileMenuDrawer") })
|
|
@@ -24731,8 +24811,8 @@ function NavbarMobileDrawer({
|
|
|
24731
24811
|
}
|
|
24732
24812
|
|
|
24733
24813
|
// src/components/Navbar/Navbar.tsx
|
|
24734
|
-
import { trussProps as
|
|
24735
|
-
import { jsx as
|
|
24814
|
+
import { trussProps as trussProps111 } from "@homebound/truss/runtime";
|
|
24815
|
+
import { jsx as jsx199, jsxs as jsxs99 } from "react/jsx-runtime";
|
|
24736
24816
|
function Navbar(props) {
|
|
24737
24817
|
const {
|
|
24738
24818
|
brand,
|
|
@@ -24751,7 +24831,7 @@ function Navbar(props) {
|
|
|
24751
24831
|
overflows
|
|
24752
24832
|
} = useContentOverflow(!sm);
|
|
24753
24833
|
const showMobile = sm || overflows;
|
|
24754
|
-
return /* @__PURE__ */
|
|
24834
|
+
return /* @__PURE__ */ jsx199(ContrastScope, { children: /* @__PURE__ */ jsxs99("nav", { ...trussProps111({
|
|
24755
24835
|
...{
|
|
24756
24836
|
backgroundColor: ["bgColor_var", {
|
|
24757
24837
|
"--backgroundColor": "var(--b-surface-raised)"
|
|
@@ -24767,10 +24847,10 @@ function Navbar(props) {
|
|
|
24767
24847
|
},
|
|
24768
24848
|
...headerContentPaddingX(showMobile)
|
|
24769
24849
|
}), ...tid, children: [
|
|
24770
|
-
/* @__PURE__ */
|
|
24771
|
-
/* @__PURE__ */
|
|
24772
|
-
showMobile && /* @__PURE__ */
|
|
24773
|
-
/* @__PURE__ */
|
|
24850
|
+
/* @__PURE__ */ jsxs99("div", { className: "df aic gap3 fg1 mw0", children: [
|
|
24851
|
+
/* @__PURE__ */ jsxs99("div", { className: "df aic fs0 gap2", children: [
|
|
24852
|
+
showMobile && /* @__PURE__ */ jsx199(NavbarMobileMenu, { items, ...tid }),
|
|
24853
|
+
/* @__PURE__ */ jsx199("div", { ...trussProps111({
|
|
24774
24854
|
flexShrink: "fs0",
|
|
24775
24855
|
...hideBrandOnMobile && showMobile ? {
|
|
24776
24856
|
display: "dn"
|
|
@@ -24779,7 +24859,7 @@ function Navbar(props) {
|
|
|
24779
24859
|
] }),
|
|
24780
24860
|
!sm && // Stays mounted while overflowing (hidden) so the items remain measurable and the bar
|
|
24781
24861
|
// can expand again as space frees up.
|
|
24782
|
-
/* @__PURE__ */
|
|
24862
|
+
/* @__PURE__ */ jsx199("div", { ref: containerRef, ...trussProps111({
|
|
24783
24863
|
display: "df",
|
|
24784
24864
|
alignItems: "aic",
|
|
24785
24865
|
flexGrow: "fg1",
|
|
@@ -24788,11 +24868,11 @@ function Navbar(props) {
|
|
|
24788
24868
|
...overflows ? {
|
|
24789
24869
|
visibility: "visibility_hidden"
|
|
24790
24870
|
} : {}
|
|
24791
|
-
}), ...tid.items, children: /* @__PURE__ */
|
|
24871
|
+
}), ...tid.items, children: /* @__PURE__ */ jsx199("div", { ref: contentRef, className: "df aic gap2 width_max_content", children: /* @__PURE__ */ jsx199(AppNavItems, { variant: "global", items, ...tid }) }) })
|
|
24792
24872
|
] }),
|
|
24793
|
-
/* @__PURE__ */
|
|
24794
|
-
rightSlot && /* @__PURE__ */
|
|
24795
|
-
user && /* @__PURE__ */
|
|
24873
|
+
/* @__PURE__ */ jsxs99("div", { className: "df aic gap1", children: [
|
|
24874
|
+
rightSlot && /* @__PURE__ */ jsx199("div", { className: "df aic gap1", ...tid.rightSlot, children: rightSlot }),
|
|
24875
|
+
user && /* @__PURE__ */ jsx199(NavbarUserMenu, { user, ...tid.userMenu })
|
|
24796
24876
|
] })
|
|
24797
24877
|
] }) });
|
|
24798
24878
|
}
|
|
@@ -24800,7 +24880,7 @@ function NavbarUserMenu({
|
|
|
24800
24880
|
user,
|
|
24801
24881
|
...tid
|
|
24802
24882
|
}) {
|
|
24803
|
-
return /* @__PURE__ */
|
|
24883
|
+
return /* @__PURE__ */ jsx199("div", { className: "df aic fs0 ml1", children: /* @__PURE__ */ jsx199(ButtonMenu, { items: user.menuItems, persistentItems: user.persistentItems, trigger: {
|
|
24804
24884
|
src: user.picture,
|
|
24805
24885
|
name: user.name,
|
|
24806
24886
|
size: "sm",
|
|
@@ -24809,8 +24889,8 @@ function NavbarUserMenu({
|
|
|
24809
24889
|
}
|
|
24810
24890
|
|
|
24811
24891
|
// src/components/Pagination.tsx
|
|
24812
|
-
import { trussProps as
|
|
24813
|
-
import { jsx as
|
|
24892
|
+
import { trussProps as trussProps112 } from "@homebound/truss/runtime";
|
|
24893
|
+
import { jsx as jsx200, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
24814
24894
|
var defaultPage = {
|
|
24815
24895
|
offset: 0,
|
|
24816
24896
|
limit: 100
|
|
@@ -24842,7 +24922,7 @@ function Pagination(props) {
|
|
|
24842
24922
|
}
|
|
24843
24923
|
}
|
|
24844
24924
|
const tid = useTestIds(props, "pagination");
|
|
24845
|
-
return /* @__PURE__ */
|
|
24925
|
+
return /* @__PURE__ */ jsxs100("div", { ...trussProps112({
|
|
24846
24926
|
display: "df",
|
|
24847
24927
|
borderColor: ["bc_var", {
|
|
24848
24928
|
"--borderColor": "var(--b-surface-separator)"
|
|
@@ -24859,24 +24939,24 @@ function Pagination(props) {
|
|
|
24859
24939
|
paddingRight: "pr2",
|
|
24860
24940
|
paddingTop: "pt2"
|
|
24861
24941
|
}), ...tid, children: [
|
|
24862
|
-
/* @__PURE__ */
|
|
24863
|
-
/* @__PURE__ */
|
|
24942
|
+
/* @__PURE__ */ jsx200("div", { className: "df mta mba mr2", ...tid.pageSizeLabel, children: "Page size:" }),
|
|
24943
|
+
/* @__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
24944
|
pageNumber: 1,
|
|
24865
24945
|
pageSize: val
|
|
24866
24946
|
}), autoSort: false, ...tid.pageSize }) }),
|
|
24867
|
-
/* @__PURE__ */
|
|
24868
|
-
/* @__PURE__ */
|
|
24947
|
+
/* @__PURE__ */ jsxs100("div", { className: "mla mta mba df", children: [
|
|
24948
|
+
/* @__PURE__ */ jsxs100("div", { className: "df mta mba mr2", ...tid.pageInfoLabel, children: [
|
|
24869
24949
|
first,
|
|
24870
24950
|
" ",
|
|
24871
24951
|
showLast ? `- ${last}` : "",
|
|
24872
24952
|
" of ",
|
|
24873
24953
|
totalCount
|
|
24874
24954
|
] }),
|
|
24875
|
-
/* @__PURE__ */
|
|
24955
|
+
/* @__PURE__ */ jsx200(IconButton, { icon: "chevronLeft", color: hasPrevPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
|
|
24876
24956
|
pageNumber: pageNumber - 1,
|
|
24877
24957
|
pageSize
|
|
24878
24958
|
}), disabled: !hasPrevPage, ...tid.previousIcon }),
|
|
24879
|
-
/* @__PURE__ */
|
|
24959
|
+
/* @__PURE__ */ jsx200(IconButton, { icon: "chevronRight", color: hasNextPage ? "--b-text-link-default" /* TextLinkDefault */ : "--b-surface-separator" /* SurfaceSeparator */, onClick: () => set({
|
|
24880
24960
|
pageNumber: pageNumber + 1,
|
|
24881
24961
|
pageSize
|
|
24882
24962
|
}), disabled: !hasNextPage, ...tid.nextIcon })
|
|
@@ -24900,8 +24980,8 @@ function toPageNumberSize(page) {
|
|
|
24900
24980
|
// src/components/ScrollShadows.tsx
|
|
24901
24981
|
import { useResizeObserver as useResizeObserver9 } from "@react-aria/utils";
|
|
24902
24982
|
import { useCallback as useCallback34, useMemo as useMemo52, useRef as useRef60, useState as useState54 } from "react";
|
|
24903
|
-
import { trussProps as
|
|
24904
|
-
import { jsx as
|
|
24983
|
+
import { trussProps as trussProps113, maybeCssVar as maybeCssVar54 } from "@homebound/truss/runtime";
|
|
24984
|
+
import { jsx as jsx201, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
24905
24985
|
function ScrollShadows(props) {
|
|
24906
24986
|
const {
|
|
24907
24987
|
children,
|
|
@@ -24925,7 +25005,7 @@ function ScrollShadows(props) {
|
|
|
24925
25005
|
const commonStyles = {
|
|
24926
25006
|
position: "absolute",
|
|
24927
25007
|
zIndex: ["z_var", {
|
|
24928
|
-
"--zIndex":
|
|
25008
|
+
"--zIndex": maybeCssVar54(zIndices.scrollShadow)
|
|
24929
25009
|
}],
|
|
24930
25010
|
pointerEvents: "pointerEvents_none"
|
|
24931
25011
|
};
|
|
@@ -24958,7 +25038,7 @@ function ScrollShadows(props) {
|
|
|
24958
25038
|
...startShadowStyles2,
|
|
24959
25039
|
...{
|
|
24960
25040
|
background: ["background_var", {
|
|
24961
|
-
"--background":
|
|
25041
|
+
"--background": maybeCssVar54(startGradient)
|
|
24962
25042
|
}]
|
|
24963
25043
|
}
|
|
24964
25044
|
}, {
|
|
@@ -24966,7 +25046,7 @@ function ScrollShadows(props) {
|
|
|
24966
25046
|
...endShadowStyles2,
|
|
24967
25047
|
...{
|
|
24968
25048
|
background: ["background_var", {
|
|
24969
|
-
"--background":
|
|
25049
|
+
"--background": maybeCssVar54(endGradient)
|
|
24970
25050
|
}]
|
|
24971
25051
|
}
|
|
24972
25052
|
}];
|
|
@@ -24991,10 +25071,10 @@ function ScrollShadows(props) {
|
|
|
24991
25071
|
ref: scrollRef,
|
|
24992
25072
|
onResize
|
|
24993
25073
|
});
|
|
24994
|
-
return /* @__PURE__ */
|
|
25074
|
+
return /* @__PURE__ */ jsxs101("div", { ...trussProps113({
|
|
24995
25075
|
display: "df",
|
|
24996
25076
|
flexDirection: ["fd_var", {
|
|
24997
|
-
"--flexDirection":
|
|
25077
|
+
"--flexDirection": maybeCssVar54(!horizontal ? "column" : "row")
|
|
24998
25078
|
}],
|
|
24999
25079
|
position: "relative",
|
|
25000
25080
|
overflow: "oh",
|
|
@@ -25007,23 +25087,23 @@ function ScrollShadows(props) {
|
|
|
25007
25087
|
width: width2
|
|
25008
25088
|
}
|
|
25009
25089
|
}), ...tid, children: [
|
|
25010
|
-
/* @__PURE__ */
|
|
25090
|
+
/* @__PURE__ */ jsx201("div", { ...trussProps113({
|
|
25011
25091
|
...startShadowStyles,
|
|
25012
25092
|
...{
|
|
25013
25093
|
opacity: ["o_var", {
|
|
25014
|
-
"--opacity":
|
|
25094
|
+
"--opacity": maybeCssVar54(showStartShadow ? 1 : 0)
|
|
25015
25095
|
}]
|
|
25016
25096
|
}
|
|
25017
25097
|
}), "data-chromatic": "ignore" }),
|
|
25018
|
-
/* @__PURE__ */
|
|
25098
|
+
/* @__PURE__ */ jsx201("div", { ...trussProps113({
|
|
25019
25099
|
...endShadowStyles,
|
|
25020
25100
|
...{
|
|
25021
25101
|
opacity: ["o_var", {
|
|
25022
|
-
"--opacity":
|
|
25102
|
+
"--opacity": maybeCssVar54(showEndShadow ? 1 : 0)
|
|
25023
25103
|
}]
|
|
25024
25104
|
}
|
|
25025
25105
|
}), "data-chromatic": "ignore" }),
|
|
25026
|
-
/* @__PURE__ */
|
|
25106
|
+
/* @__PURE__ */ jsx201("div", { ...trussProps113({
|
|
25027
25107
|
...xss,
|
|
25028
25108
|
...{
|
|
25029
25109
|
overflow: "oa",
|
|
@@ -25044,7 +25124,7 @@ import {
|
|
|
25044
25124
|
useRef as useRef61,
|
|
25045
25125
|
useState as useState55
|
|
25046
25126
|
} from "react";
|
|
25047
|
-
import { jsx as
|
|
25127
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
25048
25128
|
var SIDE_NAV_LAYOUT_STATE_STORAGE_KEY = "beam.sideNavLayout.navState";
|
|
25049
25129
|
function loadStoredNavState() {
|
|
25050
25130
|
try {
|
|
@@ -25092,7 +25172,7 @@ function SideNavLayoutProvider(props) {
|
|
|
25092
25172
|
});
|
|
25093
25173
|
}, []);
|
|
25094
25174
|
const value = useMemo53(() => ({ navState, setNavState }), [navState, setNavState]);
|
|
25095
|
-
return /* @__PURE__ */
|
|
25175
|
+
return /* @__PURE__ */ jsx202(SideNavLayoutContext.Provider, { value, children: props.children });
|
|
25096
25176
|
}
|
|
25097
25177
|
function useSideNavLayoutContext() {
|
|
25098
25178
|
return useContext26(SideNavLayoutContext) ?? { navState: "expanded", setNavState: () => {
|
|
@@ -25103,8 +25183,8 @@ function useHasSideNavLayoutProvider() {
|
|
|
25103
25183
|
}
|
|
25104
25184
|
|
|
25105
25185
|
// src/components/SideNav/SideNav.tsx
|
|
25106
|
-
import { trussProps as
|
|
25107
|
-
import { jsx as
|
|
25186
|
+
import { trussProps as trussProps114 } from "@homebound/truss/runtime";
|
|
25187
|
+
import { jsx as jsx203, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
25108
25188
|
function SideNav(props) {
|
|
25109
25189
|
const {
|
|
25110
25190
|
top,
|
|
@@ -25117,8 +25197,8 @@ function SideNav(props) {
|
|
|
25117
25197
|
const tid = useTestIds(props, "sideNav");
|
|
25118
25198
|
const panelCollapsed = navState === "collapse";
|
|
25119
25199
|
const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
|
|
25120
|
-
return /* @__PURE__ */
|
|
25121
|
-
top !== void 0 && /* @__PURE__ */
|
|
25200
|
+
return /* @__PURE__ */ jsxs102("nav", { className: "df fdc h100 fs0", ...tid, children: [
|
|
25201
|
+
top !== void 0 && /* @__PURE__ */ jsx203("div", { ...trussProps114({
|
|
25122
25202
|
flexShrink: "fs0",
|
|
25123
25203
|
paddingLeft: "pl2",
|
|
25124
25204
|
paddingRight: "pr2",
|
|
@@ -25129,7 +25209,7 @@ function SideNav(props) {
|
|
|
25129
25209
|
paddingBottom: "pb4"
|
|
25130
25210
|
} : {}
|
|
25131
25211
|
}), ...tid.top, children: top }),
|
|
25132
|
-
/* @__PURE__ */
|
|
25212
|
+
/* @__PURE__ */ jsx203("div", { ...trussProps114({
|
|
25133
25213
|
flexGrow: "fg1",
|
|
25134
25214
|
overflowY: "oya",
|
|
25135
25215
|
display: "df",
|
|
@@ -25141,8 +25221,8 @@ function SideNav(props) {
|
|
|
25141
25221
|
...top === void 0 ? {
|
|
25142
25222
|
paddingTop: "pt5"
|
|
25143
25223
|
} : {}
|
|
25144
|
-
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */
|
|
25145
|
-
footer !== void 0 && /* @__PURE__ */
|
|
25224
|
+
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ jsx203(AppNavItems, { items, panelCollapsed }) }),
|
|
25225
|
+
footer !== void 0 && /* @__PURE__ */ jsx203("div", { ...trussProps114({
|
|
25146
25226
|
flexShrink: "fs0",
|
|
25147
25227
|
paddingLeft: "pl2",
|
|
25148
25228
|
paddingRight: "pr2",
|
|
@@ -25219,10 +25299,10 @@ var snackbarId = 1;
|
|
|
25219
25299
|
// src/components/Stepper.tsx
|
|
25220
25300
|
import { useRef as useRef62 } from "react";
|
|
25221
25301
|
import { useButton as useButton12, useFocusRing as useFocusRing17, useHover as useHover21 } from "react-aria";
|
|
25222
|
-
import { trussProps as
|
|
25223
|
-
import { jsx as
|
|
25302
|
+
import { trussProps as trussProps115, maybeCssVar as maybeCssVar55 } from "@homebound/truss/runtime";
|
|
25303
|
+
import { jsx as jsx204, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
25224
25304
|
import { createElement as createElement6 } from "react";
|
|
25225
|
-
var
|
|
25305
|
+
var __maybeInc25 = (inc) => {
|
|
25226
25306
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
25227
25307
|
};
|
|
25228
25308
|
function Stepper(props) {
|
|
@@ -25239,8 +25319,8 @@ function Stepper(props) {
|
|
|
25239
25319
|
const maxStepWidth = 200;
|
|
25240
25320
|
const minStepWidth = 100;
|
|
25241
25321
|
const gap = 8;
|
|
25242
|
-
return /* @__PURE__ */
|
|
25243
|
-
/* @__PURE__ */
|
|
25322
|
+
return /* @__PURE__ */ jsxs103("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
25323
|
+
/* @__PURE__ */ jsx204("ol", { ...trussProps115({
|
|
25244
25324
|
padding: "p_0",
|
|
25245
25325
|
margin: "m_0",
|
|
25246
25326
|
listStyle: "lis_none",
|
|
@@ -25250,7 +25330,7 @@ function Stepper(props) {
|
|
|
25250
25330
|
}]
|
|
25251
25331
|
}), children: steps.map((step) => {
|
|
25252
25332
|
const isCurrent = currentStep === step.value;
|
|
25253
|
-
return /* @__PURE__ */ createElement6("li", { ...
|
|
25333
|
+
return /* @__PURE__ */ createElement6("li", { ...trussProps115({
|
|
25254
25334
|
display: "df",
|
|
25255
25335
|
flexGrow: "fg1",
|
|
25256
25336
|
flexDirection: "fdc",
|
|
@@ -25260,9 +25340,9 @@ function Stepper(props) {
|
|
|
25260
25340
|
minWidth: ["mw_var", {
|
|
25261
25341
|
"--minWidth": `${minStepWidth}px`
|
|
25262
25342
|
}]
|
|
25263
|
-
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */
|
|
25343
|
+
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx204(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
25264
25344
|
}) }),
|
|
25265
|
-
/* @__PURE__ */
|
|
25345
|
+
/* @__PURE__ */ jsx204("div", { ...trussProps115({
|
|
25266
25346
|
marginTop: "mt1",
|
|
25267
25347
|
backgroundColor: ["bgColor_var", {
|
|
25268
25348
|
"--backgroundColor": "var(--b-field-border-default)"
|
|
@@ -25275,14 +25355,14 @@ function Stepper(props) {
|
|
|
25275
25355
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
25276
25356
|
}],
|
|
25277
25357
|
width: "w100"
|
|
25278
|
-
}), children: /* @__PURE__ */
|
|
25358
|
+
}), children: /* @__PURE__ */ jsx204("div", { ...trussProps115({
|
|
25279
25359
|
backgroundColor: ["bgColor_var", {
|
|
25280
25360
|
"--backgroundColor": "var(--b-primary)"
|
|
25281
25361
|
}],
|
|
25282
25362
|
transition: "transition_width_200ms",
|
|
25283
25363
|
height: "h100",
|
|
25284
25364
|
width: ["w_var", {
|
|
25285
|
-
"--width":
|
|
25365
|
+
"--width": maybeCssVar55(__maybeInc25(`${(lastCompletedStep + 1) / steps.length * 100}%`))
|
|
25286
25366
|
}]
|
|
25287
25367
|
}) }) })
|
|
25288
25368
|
] });
|
|
@@ -25318,7 +25398,7 @@ function StepButton(props) {
|
|
|
25318
25398
|
boxShadow: "bshFocus"
|
|
25319
25399
|
};
|
|
25320
25400
|
const tid = useTestIds(props, "stepButton");
|
|
25321
|
-
return /* @__PURE__ */
|
|
25401
|
+
return /* @__PURE__ */ jsxs103("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...trussProps115({
|
|
25322
25402
|
...{
|
|
25323
25403
|
fontWeight: "fw6",
|
|
25324
25404
|
fontSize: "fz_14px",
|
|
@@ -25379,7 +25459,7 @@ function StepButton(props) {
|
|
|
25379
25459
|
} : {},
|
|
25380
25460
|
...isFocusVisible ? focusRingStyles2 : {}
|
|
25381
25461
|
}), ...tid[defaultTestId(label)], children: [
|
|
25382
|
-
/* @__PURE__ */
|
|
25462
|
+
/* @__PURE__ */ jsx204("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ jsx204(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
|
|
25383
25463
|
label
|
|
25384
25464
|
] });
|
|
25385
25465
|
}
|
|
@@ -25390,12 +25470,12 @@ function StepIcon({
|
|
|
25390
25470
|
isCurrent = false
|
|
25391
25471
|
}) {
|
|
25392
25472
|
if (state === "error") {
|
|
25393
|
-
return /* @__PURE__ */
|
|
25473
|
+
return /* @__PURE__ */ jsx204(Icon, { icon: "errorCircle" });
|
|
25394
25474
|
}
|
|
25395
25475
|
if (state === "complete") {
|
|
25396
|
-
return /* @__PURE__ */
|
|
25476
|
+
return /* @__PURE__ */ jsx204(Icon, { icon: "check" });
|
|
25397
25477
|
}
|
|
25398
|
-
return /* @__PURE__ */
|
|
25478
|
+
return /* @__PURE__ */ jsx204("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ jsx204("div", { ...trussProps115({
|
|
25399
25479
|
width: "w_10px",
|
|
25400
25480
|
height: "h_10px",
|
|
25401
25481
|
borderStyle: "bss",
|
|
@@ -25411,8 +25491,8 @@ function StepIcon({
|
|
|
25411
25491
|
// src/components/StepperTabs/StepperTab.tsx
|
|
25412
25492
|
import { useRef as useRef63 } from "react";
|
|
25413
25493
|
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
|
|
25494
|
+
import { trussProps as trussProps116 } from "@homebound/truss/runtime";
|
|
25495
|
+
import { Fragment as Fragment45, jsx as jsx205, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
25416
25496
|
function StepperTab(props) {
|
|
25417
25497
|
const {
|
|
25418
25498
|
label,
|
|
@@ -25443,7 +25523,7 @@ function StepperTab(props) {
|
|
|
25443
25523
|
const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
|
|
25444
25524
|
const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
|
|
25445
25525
|
const tid = useTestIds(props, "stepperTab");
|
|
25446
|
-
return /* @__PURE__ */
|
|
25526
|
+
return /* @__PURE__ */ jsxs104("button", { ref, ...mergeProps32(buttonProps, focusProps, hoverProps), "aria-label": label, ...trussProps116({
|
|
25447
25527
|
...stepperTabStyles.baseStyles,
|
|
25448
25528
|
...getStateStyles(active, completed),
|
|
25449
25529
|
...isHovered && !disabled ? stepperTabStyles.hoverStyles : {},
|
|
@@ -25451,10 +25531,10 @@ function StepperTab(props) {
|
|
|
25451
25531
|
...disabled ? stepperTabStyles.disabledStyles : {},
|
|
25452
25532
|
...isFocusVisible ? stepperTabStyles.focusRingStyles : {}
|
|
25453
25533
|
}), ...tid[defaultTestId(value)], children: [
|
|
25454
|
-
!collapsed && /* @__PURE__ */
|
|
25455
|
-
/* @__PURE__ */
|
|
25456
|
-
/* @__PURE__ */
|
|
25457
|
-
/* @__PURE__ */
|
|
25534
|
+
!collapsed && /* @__PURE__ */ jsxs104(Fragment45, { children: [
|
|
25535
|
+
/* @__PURE__ */ jsxs104("span", { className: "dg jic mw0", children: [
|
|
25536
|
+
/* @__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 }),
|
|
25537
|
+
/* @__PURE__ */ jsx205("span", { ...trussProps116({
|
|
25458
25538
|
gridArea: "gridArea_1_1",
|
|
25459
25539
|
overflow: "oh",
|
|
25460
25540
|
display: "d_negwebkit_box",
|
|
@@ -25469,7 +25549,7 @@ function StepperTab(props) {
|
|
|
25469
25549
|
} : {}
|
|
25470
25550
|
}), children: label })
|
|
25471
25551
|
] }),
|
|
25472
|
-
/* @__PURE__ */
|
|
25552
|
+
/* @__PURE__ */ jsx205("span", { ...trussProps116({
|
|
25473
25553
|
flexShrink: "fs0",
|
|
25474
25554
|
marginLeft: "ml1",
|
|
25475
25555
|
transition: "transitionAll",
|
|
@@ -25479,10 +25559,10 @@ function StepperTab(props) {
|
|
|
25479
25559
|
opacity: "o100",
|
|
25480
25560
|
transform: "transform_scale_1_translateY_0"
|
|
25481
25561
|
} : {}
|
|
25482
|
-
}), children: /* @__PURE__ */
|
|
25562
|
+
}), children: /* @__PURE__ */ jsx205(Icon, { icon: "check", inc: 2.5, ...tid.check }) })
|
|
25483
25563
|
] }),
|
|
25484
|
-
/* @__PURE__ */
|
|
25485
|
-
/* @__PURE__ */
|
|
25564
|
+
/* @__PURE__ */ jsx205("span", { "aria-hidden": true, ...trussProps116(getIndicatorStyles(active, completed, disabled)), ...tid.indicator }),
|
|
25565
|
+
/* @__PURE__ */ jsx205(VisuallyHidden10, { children: completed ? "Complete" : "Not Complete" })
|
|
25486
25566
|
] });
|
|
25487
25567
|
}
|
|
25488
25568
|
function getStateStyles(active, completed) {
|
|
@@ -25563,8 +25643,8 @@ var stepperTabStyles = {
|
|
|
25563
25643
|
};
|
|
25564
25644
|
|
|
25565
25645
|
// src/components/StepperTabs/StepperTabs.tsx
|
|
25566
|
-
import { trussProps as
|
|
25567
|
-
import { jsx as
|
|
25646
|
+
import { trussProps as trussProps117 } from "@homebound/truss/runtime";
|
|
25647
|
+
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
25568
25648
|
import { createElement as createElement7 } from "react";
|
|
25569
25649
|
function StepperTabs(props) {
|
|
25570
25650
|
const {
|
|
@@ -25580,7 +25660,7 @@ function StepperTabs(props) {
|
|
|
25580
25660
|
const collapsed = isMobile || !!forceCollapsed;
|
|
25581
25661
|
const capWidth = steps.length <= 3;
|
|
25582
25662
|
const currentStepIndex = Math.max(0, steps.findIndex((step) => step.value === currentStep));
|
|
25583
|
-
return /* @__PURE__ */
|
|
25663
|
+
return /* @__PURE__ */ jsx206("nav", { "aria-label": "steps", className: "w100", ...tid, children: /* @__PURE__ */ jsx206("ol", { ...trussProps117({
|
|
25584
25664
|
padding: "p_0",
|
|
25585
25665
|
margin: "m_0",
|
|
25586
25666
|
listStyle: "lis_none",
|
|
@@ -25595,7 +25675,7 @@ function StepperTabs(props) {
|
|
|
25595
25675
|
}), children: steps.map((step, idx) => {
|
|
25596
25676
|
const isCurrent = idx === currentStepIndex;
|
|
25597
25677
|
const isCompleted = idx < currentStepIndex;
|
|
25598
|
-
return /* @__PURE__ */ createElement7("li", { ...
|
|
25678
|
+
return /* @__PURE__ */ createElement7("li", { ...trussProps117({
|
|
25599
25679
|
display: "df",
|
|
25600
25680
|
flexGrow: "fg1",
|
|
25601
25681
|
flexBasis: "fb_0",
|
|
@@ -25607,7 +25687,7 @@ function StepperTabs(props) {
|
|
|
25607
25687
|
"--maxWidth": `${maxStepWidthPx}px`
|
|
25608
25688
|
}]
|
|
25609
25689
|
} : {}
|
|
25610
|
-
}), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */
|
|
25690
|
+
}), 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
25691
|
}) }) });
|
|
25612
25692
|
}
|
|
25613
25693
|
var maxStepWidthPx = 280;
|
|
@@ -25615,8 +25695,8 @@ var gapPx = 6;
|
|
|
25615
25695
|
|
|
25616
25696
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
25617
25697
|
import { createPortal as createPortal8 } from "react-dom";
|
|
25618
|
-
import { trussProps as
|
|
25619
|
-
import { jsx as
|
|
25698
|
+
import { trussProps as trussProps118 } from "@homebound/truss/runtime";
|
|
25699
|
+
import { jsx as jsx207, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
25620
25700
|
function SuperDrawerHeader(props) {
|
|
25621
25701
|
const {
|
|
25622
25702
|
hideControls
|
|
@@ -25633,20 +25713,20 @@ function SuperDrawerHeader(props) {
|
|
|
25633
25713
|
const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
|
|
25634
25714
|
const isDetail = currentContent !== firstContent;
|
|
25635
25715
|
const tid = useTestIds({}, "superDrawerHeader");
|
|
25636
|
-
return createPortal8(/* @__PURE__ */
|
|
25637
|
-
isStructuredProps(props) ? /* @__PURE__ */
|
|
25638
|
-
/* @__PURE__ */
|
|
25639
|
-
/* @__PURE__ */
|
|
25716
|
+
return createPortal8(/* @__PURE__ */ jsxs105("div", { className: "df aic jcsb gap3", ...tid, children: [
|
|
25717
|
+
isStructuredProps(props) ? /* @__PURE__ */ jsxs105("div", { className: "df jcsb aic gap2 fg1", children: [
|
|
25718
|
+
/* @__PURE__ */ jsxs105("div", { className: "fg1 df aic gap2", children: [
|
|
25719
|
+
/* @__PURE__ */ jsx207("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
|
|
25640
25720
|
props.left
|
|
25641
25721
|
] }),
|
|
25642
|
-
props.right && /* @__PURE__ */
|
|
25643
|
-
] }) : /* @__PURE__ */
|
|
25644
|
-
!hideControls && /* @__PURE__ */
|
|
25722
|
+
props.right && /* @__PURE__ */ jsx207("div", { className: "fs0", children: props.right })
|
|
25723
|
+
] }) : /* @__PURE__ */ jsx207("div", { className: "fg1", children: props.children }),
|
|
25724
|
+
!hideControls && /* @__PURE__ */ jsx207("div", { ...trussProps118({
|
|
25645
25725
|
flexShrink: "fs0",
|
|
25646
25726
|
...isDetail ? {
|
|
25647
25727
|
visibility: "vh"
|
|
25648
25728
|
} : {}
|
|
25649
|
-
}), children: /* @__PURE__ */
|
|
25729
|
+
}), children: /* @__PURE__ */ jsx207(ButtonGroup, { buttons: [{
|
|
25650
25730
|
icon: "chevronLeft",
|
|
25651
25731
|
onClick: () => onPrevClick && onPrevClick(),
|
|
25652
25732
|
disabled: !onPrevClick
|
|
@@ -25666,7 +25746,7 @@ import { motion as motion7 } from "framer-motion";
|
|
|
25666
25746
|
|
|
25667
25747
|
// src/components/SuperDrawer/useSuperDrawer.tsx
|
|
25668
25748
|
import { useMemo as useMemo54 } from "react";
|
|
25669
|
-
import { jsx as
|
|
25749
|
+
import { jsx as jsx208 } from "react/jsx-runtime";
|
|
25670
25750
|
function useSuperDrawer() {
|
|
25671
25751
|
const {
|
|
25672
25752
|
drawerContentStack: contentStack,
|
|
@@ -25678,7 +25758,7 @@ function useSuperDrawer() {
|
|
|
25678
25758
|
function canCloseDrawerDetails(i, doChange) {
|
|
25679
25759
|
for (const canCloseDrawerDetail of canCloseDetailsChecks.current[i] ?? []) {
|
|
25680
25760
|
if (!canClose(canCloseDrawerDetail)) {
|
|
25681
|
-
openModal({ content: /* @__PURE__ */
|
|
25761
|
+
openModal({ content: /* @__PURE__ */ jsx208(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
|
|
25682
25762
|
return false;
|
|
25683
25763
|
}
|
|
25684
25764
|
}
|
|
@@ -25698,7 +25778,7 @@ function useSuperDrawer() {
|
|
|
25698
25778
|
for (const canCloseDrawer of canCloseChecks.current) {
|
|
25699
25779
|
if (!canClose(canCloseDrawer)) {
|
|
25700
25780
|
openModal({
|
|
25701
|
-
content: /* @__PURE__ */
|
|
25781
|
+
content: /* @__PURE__ */ jsx208(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
|
|
25702
25782
|
});
|
|
25703
25783
|
return;
|
|
25704
25784
|
}
|
|
@@ -25793,8 +25873,8 @@ function canClose(canCloseCheck) {
|
|
|
25793
25873
|
}
|
|
25794
25874
|
|
|
25795
25875
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
25796
|
-
import { trussProps as
|
|
25797
|
-
import { Fragment as Fragment46, jsx as
|
|
25876
|
+
import { trussProps as trussProps119, mergeProps as mergeProps33 } from "@homebound/truss/runtime";
|
|
25877
|
+
import { Fragment as Fragment46, jsx as jsx209, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
25798
25878
|
var SuperDrawerContent = ({
|
|
25799
25879
|
children,
|
|
25800
25880
|
actions
|
|
@@ -25814,17 +25894,17 @@ var SuperDrawerContent = ({
|
|
|
25814
25894
|
} = firstContent ?? {};
|
|
25815
25895
|
function wrapWithMotionAndMaybeBack(children2) {
|
|
25816
25896
|
if (kind === "open") {
|
|
25817
|
-
return /* @__PURE__ */
|
|
25897
|
+
return /* @__PURE__ */ jsx209(motion7.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
|
|
25818
25898
|
} else if (kind === "detail") {
|
|
25819
|
-
return /* @__PURE__ */
|
|
25899
|
+
return /* @__PURE__ */ jsxs106(motion7.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
|
|
25820
25900
|
overflow: "auto"
|
|
25821
25901
|
}, transition: {
|
|
25822
25902
|
overflow: {
|
|
25823
25903
|
delay: 0.3
|
|
25824
25904
|
}
|
|
25825
25905
|
}, children: [
|
|
25826
|
-
/* @__PURE__ */
|
|
25827
|
-
/* @__PURE__ */
|
|
25906
|
+
/* @__PURE__ */ jsx209(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
|
|
25907
|
+
/* @__PURE__ */ jsx209(motion7.div, { initial: {
|
|
25828
25908
|
x: width2,
|
|
25829
25909
|
opacity: 0
|
|
25830
25910
|
}, animate: {
|
|
@@ -25842,7 +25922,7 @@ var SuperDrawerContent = ({
|
|
|
25842
25922
|
}, className: "pt2", children: children2 })
|
|
25843
25923
|
] }, "content");
|
|
25844
25924
|
} else {
|
|
25845
|
-
return /* @__PURE__ */
|
|
25925
|
+
return /* @__PURE__ */ jsx209(motion7.div, { ...mergeProps33(void 0, {
|
|
25846
25926
|
overflow: "auto"
|
|
25847
25927
|
}, {
|
|
25848
25928
|
paddingTop: "pt3",
|
|
@@ -25853,9 +25933,9 @@ var SuperDrawerContent = ({
|
|
|
25853
25933
|
}) }, "content");
|
|
25854
25934
|
}
|
|
25855
25935
|
}
|
|
25856
|
-
return /* @__PURE__ */
|
|
25936
|
+
return /* @__PURE__ */ jsxs106(Fragment46, { children: [
|
|
25857
25937
|
wrapWithMotionAndMaybeBack(children),
|
|
25858
|
-
actions && /* @__PURE__ */
|
|
25938
|
+
actions && /* @__PURE__ */ jsx209("footer", { ...trussProps119({
|
|
25859
25939
|
borderTopStyle: "bts_solid",
|
|
25860
25940
|
borderTopWidth: "btw_1px",
|
|
25861
25941
|
borderColor: ["bc_var", {
|
|
@@ -25868,7 +25948,7 @@ var SuperDrawerContent = ({
|
|
|
25868
25948
|
display: "df",
|
|
25869
25949
|
alignItems: "aic",
|
|
25870
25950
|
justifyContent: "jcfe"
|
|
25871
|
-
}), children: /* @__PURE__ */
|
|
25951
|
+
}), children: /* @__PURE__ */ jsx209("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ jsx209(Button, { ...buttonProps }, i)) }) })
|
|
25872
25952
|
] });
|
|
25873
25953
|
};
|
|
25874
25954
|
|
|
@@ -25916,15 +25996,15 @@ import { useEffect as useEffect38, useMemo as useMemo55, useRef as useRef64, use
|
|
|
25916
25996
|
import { mergeProps as mergeProps34, useFocusRing as useFocusRing19, useHover as useHover23 } from "react-aria";
|
|
25917
25997
|
import { matchPath } from "react-router";
|
|
25918
25998
|
import { Link as Link7, useLocation as useLocation2 } from "react-router-dom";
|
|
25919
|
-
import { trussProps as
|
|
25920
|
-
import { Fragment as Fragment47, jsx as
|
|
25999
|
+
import { trussProps as trussProps120, maybeCssVar as maybeCssVar56 } from "@homebound/truss/runtime";
|
|
26000
|
+
import { Fragment as Fragment47, jsx as jsx210, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
25921
26001
|
function TabsWithContent(props) {
|
|
25922
26002
|
const styles = hideTabs(props) ? {} : {
|
|
25923
26003
|
paddingTop: "pt3"
|
|
25924
26004
|
};
|
|
25925
|
-
return /* @__PURE__ */
|
|
25926
|
-
/* @__PURE__ */
|
|
25927
|
-
/* @__PURE__ */
|
|
26005
|
+
return /* @__PURE__ */ jsxs107(Fragment47, { children: [
|
|
26006
|
+
/* @__PURE__ */ jsx210(Tabs, { ...props }),
|
|
26007
|
+
/* @__PURE__ */ jsx210(TabContent, { ...props, contentXss: {
|
|
25928
26008
|
...styles,
|
|
25929
26009
|
...props.contentXss
|
|
25930
26010
|
} })
|
|
@@ -25949,7 +26029,7 @@ function TabContent(props) {
|
|
|
25949
26029
|
return (
|
|
25950
26030
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
25951
26031
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
25952
|
-
/* @__PURE__ */
|
|
26032
|
+
/* @__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
26033
|
);
|
|
25954
26034
|
}
|
|
25955
26035
|
function Tabs(props) {
|
|
@@ -25991,7 +26071,7 @@ function Tabs(props) {
|
|
|
25991
26071
|
setActive(selected);
|
|
25992
26072
|
}
|
|
25993
26073
|
}
|
|
25994
|
-
return /* @__PURE__ */
|
|
26074
|
+
return /* @__PURE__ */ jsxs107("div", { ...trussProps120({
|
|
25995
26075
|
...{
|
|
25996
26076
|
display: "df",
|
|
25997
26077
|
alignItems: "aic",
|
|
@@ -26009,11 +26089,11 @@ function Tabs(props) {
|
|
|
26009
26089
|
}
|
|
26010
26090
|
} : {}
|
|
26011
26091
|
}), children: [
|
|
26012
|
-
!hideTabs(props) && /* @__PURE__ */
|
|
26092
|
+
!hideTabs(props) && /* @__PURE__ */ jsx210("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
|
|
26013
26093
|
const uniqueValue = uniqueTabValue(tab);
|
|
26014
|
-
return /* @__PURE__ */
|
|
26094
|
+
return /* @__PURE__ */ jsx210(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
|
|
26015
26095
|
}) }),
|
|
26016
|
-
right && /* @__PURE__ */
|
|
26096
|
+
right && /* @__PURE__ */ jsx210("div", { className: "mla df aic gap1 pb1", children: right })
|
|
26017
26097
|
] });
|
|
26018
26098
|
}
|
|
26019
26099
|
function TabImpl(props) {
|
|
@@ -26057,7 +26137,7 @@ function TabImpl(props) {
|
|
|
26057
26137
|
role: "tab",
|
|
26058
26138
|
tabIndex: active ? 0 : -1,
|
|
26059
26139
|
...others,
|
|
26060
|
-
...
|
|
26140
|
+
...trussProps120({
|
|
26061
26141
|
...baseStyles4,
|
|
26062
26142
|
...active && activeStyles3,
|
|
26063
26143
|
...isDisabled && disabledStyles3,
|
|
@@ -26073,17 +26153,17 @@ function TabImpl(props) {
|
|
|
26073
26153
|
onClick: () => onClick(tab.value)
|
|
26074
26154
|
}
|
|
26075
26155
|
});
|
|
26076
|
-
const tabLabel = /* @__PURE__ */
|
|
26156
|
+
const tabLabel = /* @__PURE__ */ jsxs107(Fragment47, { children: [
|
|
26077
26157
|
label,
|
|
26078
|
-
(icon || endAdornment) && /* @__PURE__ */
|
|
26158
|
+
(icon || endAdornment) && /* @__PURE__ */ jsx210("span", { className: "ml1", children: icon ? /* @__PURE__ */ jsx210(Icon, { icon }) : endAdornment })
|
|
26079
26159
|
] });
|
|
26080
26160
|
return isDisabled ? maybeTooltip({
|
|
26081
26161
|
title: resolveTooltip(disabled),
|
|
26082
26162
|
placement: "top",
|
|
26083
|
-
children: /* @__PURE__ */
|
|
26084
|
-
}) : isRouteTab(tab) ? /* @__PURE__ */
|
|
26163
|
+
children: /* @__PURE__ */ jsx210("div", { ...tabProps, children: tabLabel })
|
|
26164
|
+
}) : isRouteTab(tab) ? /* @__PURE__ */ jsx210(Link7, { ...mergeProps34(tabProps, interactiveProps, {
|
|
26085
26165
|
className: "navLink"
|
|
26086
|
-
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */
|
|
26166
|
+
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */ jsx210("button", { ...{
|
|
26087
26167
|
...tabProps,
|
|
26088
26168
|
...interactiveProps
|
|
26089
26169
|
}, children: tabLabel });
|
|
@@ -26094,7 +26174,7 @@ function getTabStyles() {
|
|
|
26094
26174
|
const borderBottomStyles = {
|
|
26095
26175
|
borderBottomStyle: "bbs_solid",
|
|
26096
26176
|
borderBottomWidth: ["borderBottomWidth_var", {
|
|
26097
|
-
"--borderBottomWidth":
|
|
26177
|
+
"--borderBottomWidth": maybeCssVar56(`${borderBottomWidthPx}px`)
|
|
26098
26178
|
}],
|
|
26099
26179
|
paddingBottom: ["pb_var", {
|
|
26100
26180
|
"--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
|
|
@@ -26191,7 +26271,7 @@ function hideTabs(props) {
|
|
|
26191
26271
|
}
|
|
26192
26272
|
|
|
26193
26273
|
// src/components/TagGroup.tsx
|
|
26194
|
-
import { jsx as
|
|
26274
|
+
import { jsx as jsx211, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
26195
26275
|
function TagGroup(props) {
|
|
26196
26276
|
const {
|
|
26197
26277
|
tags,
|
|
@@ -26199,9 +26279,9 @@ function TagGroup(props) {
|
|
|
26199
26279
|
...otherProps
|
|
26200
26280
|
} = props;
|
|
26201
26281
|
const tid = useTestIds(otherProps, "tagGroup");
|
|
26202
|
-
return /* @__PURE__ */
|
|
26203
|
-
tags.map((tag) => /* @__PURE__ */
|
|
26204
|
-
onEdit && /* @__PURE__ */
|
|
26282
|
+
return /* @__PURE__ */ jsxs108("div", { ...tid, className: "df aic fww gap1", children: [
|
|
26283
|
+
tags.map((tag) => /* @__PURE__ */ jsx211(Tag, { ...tag, variant: "secondary" }, tag.text)),
|
|
26284
|
+
onEdit && /* @__PURE__ */ jsx211("span", { className: "ml1 fw4 fz_14px lh_20px", children: /* @__PURE__ */ jsx211(Button, { label: "Edit", variant: "text", onClick: onEdit, ...tid.edit }) })
|
|
26205
26285
|
] });
|
|
26206
26286
|
}
|
|
26207
26287
|
|
|
@@ -26214,15 +26294,15 @@ function useToast() {
|
|
|
26214
26294
|
}
|
|
26215
26295
|
|
|
26216
26296
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
26217
|
-
import { trussProps as
|
|
26218
|
-
import { jsx as
|
|
26219
|
-
var
|
|
26297
|
+
import { trussProps as trussProps121, mergeProps as mergeProps35, maybeCssVar as maybeCssVar57 } from "@homebound/truss/runtime";
|
|
26298
|
+
import { jsx as jsx212, jsxs as jsxs109 } from "react/jsx-runtime";
|
|
26299
|
+
var __maybeInc26 = (inc) => {
|
|
26220
26300
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26221
26301
|
};
|
|
26222
26302
|
function SideNavLayout(props) {
|
|
26223
26303
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
26224
|
-
if (hasProvider) return /* @__PURE__ */
|
|
26225
|
-
return /* @__PURE__ */
|
|
26304
|
+
if (hasProvider) return /* @__PURE__ */ jsx212(SideNavLayoutContent, { ...props });
|
|
26305
|
+
return /* @__PURE__ */ jsx212(SideNavLayoutProvider, { children: /* @__PURE__ */ jsx212(SideNavLayoutContent, { ...props }) });
|
|
26226
26306
|
}
|
|
26227
26307
|
function SideNavLayoutContent(props) {
|
|
26228
26308
|
const {
|
|
@@ -26244,7 +26324,7 @@ function SideNavLayoutContent(props) {
|
|
|
26244
26324
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
26245
26325
|
const navTop = bannerAndNavbarChromeTop();
|
|
26246
26326
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
26247
|
-
const rail = showRail && /* @__PURE__ */
|
|
26327
|
+
const rail = showRail && /* @__PURE__ */ jsxs109("div", { ...trussProps121({
|
|
26248
26328
|
...{
|
|
26249
26329
|
display: "df",
|
|
26250
26330
|
flexDirection: "fdc",
|
|
@@ -26268,14 +26348,14 @@ function SideNavLayoutContent(props) {
|
|
|
26268
26348
|
position: "sticky",
|
|
26269
26349
|
left: "left0",
|
|
26270
26350
|
zIndex: ["z_var", {
|
|
26271
|
-
"--zIndex":
|
|
26351
|
+
"--zIndex": maybeCssVar57(zIndices.sideNav)
|
|
26272
26352
|
}],
|
|
26273
26353
|
top: ["top_var", {
|
|
26274
|
-
"--top":
|
|
26354
|
+
"--top": maybeCssVar57(__maybeInc26(navTop))
|
|
26275
26355
|
}],
|
|
26276
26356
|
alignSelf: "asfs",
|
|
26277
26357
|
height: ["h_var", {
|
|
26278
|
-
"--height":
|
|
26358
|
+
"--height": maybeCssVar57(__maybeInc26(railViewportHeight))
|
|
26279
26359
|
}],
|
|
26280
26360
|
width: ["w_var", {
|
|
26281
26361
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -26285,11 +26365,11 @@ function SideNavLayoutContent(props) {
|
|
|
26285
26365
|
position: "fixed",
|
|
26286
26366
|
left: "left0",
|
|
26287
26367
|
top: ["top_var", {
|
|
26288
|
-
"--top":
|
|
26368
|
+
"--top": maybeCssVar57(__maybeInc26(navTop))
|
|
26289
26369
|
}],
|
|
26290
26370
|
bottom: "bottom0",
|
|
26291
26371
|
zIndex: ["z_var", {
|
|
26292
|
-
"--zIndex":
|
|
26372
|
+
"--zIndex": maybeCssVar57(zIndices.sideNav)
|
|
26293
26373
|
}]
|
|
26294
26374
|
},
|
|
26295
26375
|
...collapsed ? {
|
|
@@ -26301,18 +26381,18 @@ function SideNavLayoutContent(props) {
|
|
|
26301
26381
|
}
|
|
26302
26382
|
}
|
|
26303
26383
|
}), ...tid.sideNav, children: [
|
|
26304
|
-
showCollapseToggle && /* @__PURE__ */
|
|
26305
|
-
/* @__PURE__ */
|
|
26384
|
+
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 }) }),
|
|
26385
|
+
/* @__PURE__ */ jsx212("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ jsx212(SideNav, { ...sideNav }) })
|
|
26306
26386
|
] });
|
|
26307
|
-
return /* @__PURE__ */
|
|
26387
|
+
return /* @__PURE__ */ jsx212(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs109("div", { ...mergeProps35(void 0, {
|
|
26308
26388
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
26309
26389
|
}, {
|
|
26310
26390
|
display: "df",
|
|
26311
26391
|
flexDirection: "fdr",
|
|
26312
26392
|
width: "w100"
|
|
26313
26393
|
}), ...tid, children: [
|
|
26314
|
-
contrastRail ? /* @__PURE__ */
|
|
26315
|
-
/* @__PURE__ */
|
|
26394
|
+
contrastRail ? /* @__PURE__ */ jsx212(ContrastScope, { children: rail }) : rail,
|
|
26395
|
+
/* @__PURE__ */ jsx212("div", { ...trussProps121({
|
|
26316
26396
|
display: "df",
|
|
26317
26397
|
flexDirection: "fdc",
|
|
26318
26398
|
flexGrow: "fg1",
|
|
@@ -26328,9 +26408,9 @@ function SideNavLayoutContent(props) {
|
|
|
26328
26408
|
}
|
|
26329
26409
|
|
|
26330
26410
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
26331
|
-
import { trussProps as
|
|
26332
|
-
import { jsx as
|
|
26333
|
-
var
|
|
26411
|
+
import { trussProps as trussProps122, mergeProps as mergeProps36, maybeCssVar as maybeCssVar58 } from "@homebound/truss/runtime";
|
|
26412
|
+
import { jsx as jsx213, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
26413
|
+
var __maybeInc27 = (inc) => {
|
|
26334
26414
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26335
26415
|
};
|
|
26336
26416
|
function EnvironmentBannerLayout(props) {
|
|
@@ -26345,35 +26425,35 @@ function EnvironmentBannerLayout(props) {
|
|
|
26345
26425
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
26346
26426
|
};
|
|
26347
26427
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
26348
|
-
return /* @__PURE__ */
|
|
26428
|
+
return /* @__PURE__ */ jsx213(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx213(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ jsxs110("div", { ...mergeProps36(void 0, style, {
|
|
26349
26429
|
display: "df",
|
|
26350
26430
|
flexDirection: "fdc",
|
|
26351
26431
|
width: "wfc",
|
|
26352
26432
|
minWidth: "mw100"
|
|
26353
26433
|
}), ...tid, children: [
|
|
26354
|
-
showBanner && environmentBanner && /* @__PURE__ */
|
|
26434
|
+
showBanner && environmentBanner && /* @__PURE__ */ jsx213("div", { ...mergeProps36(void 0, {
|
|
26355
26435
|
height: environmentBannerSizePx
|
|
26356
26436
|
}, {
|
|
26357
26437
|
flexShrink: "fs0",
|
|
26358
26438
|
width: "w100"
|
|
26359
|
-
}), children: /* @__PURE__ */
|
|
26439
|
+
}), children: /* @__PURE__ */ jsx213("div", { ...trussProps122({
|
|
26360
26440
|
position: "fixed",
|
|
26361
26441
|
top: "top0",
|
|
26362
26442
|
left: "left0",
|
|
26363
26443
|
zIndex: ["z_var", {
|
|
26364
|
-
"--zIndex":
|
|
26444
|
+
"--zIndex": maybeCssVar58(zIndices.environmentBanner)
|
|
26365
26445
|
}],
|
|
26366
26446
|
width: ["w_var", {
|
|
26367
|
-
"--width":
|
|
26447
|
+
"--width": maybeCssVar58(__maybeInc27(innerWidth))
|
|
26368
26448
|
}]
|
|
26369
|
-
}), ...tid.bannerSticky, children: /* @__PURE__ */
|
|
26449
|
+
}), ...tid.bannerSticky, children: /* @__PURE__ */ jsx213(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
26370
26450
|
children
|
|
26371
26451
|
] }) }) });
|
|
26372
26452
|
}
|
|
26373
26453
|
|
|
26374
26454
|
// src/layouts/FormSectionLayout/FormSectionLayout.tsx
|
|
26375
|
-
import { trussProps as
|
|
26376
|
-
import { jsx as
|
|
26455
|
+
import { trussProps as trussProps123 } from "@homebound/truss/runtime";
|
|
26456
|
+
import { jsx as jsx214, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
26377
26457
|
function FormSectionLayout(props) {
|
|
26378
26458
|
const {
|
|
26379
26459
|
title,
|
|
@@ -26383,14 +26463,14 @@ function FormSectionLayout(props) {
|
|
|
26383
26463
|
sections
|
|
26384
26464
|
} = props;
|
|
26385
26465
|
const tid = useTestIds(props, "formSectionLayout");
|
|
26386
|
-
return /* @__PURE__ */
|
|
26387
|
-
/* @__PURE__ */
|
|
26388
|
-
/* @__PURE__ */
|
|
26389
|
-
/* @__PURE__ */
|
|
26390
|
-
/* @__PURE__ */
|
|
26391
|
-
actions && /* @__PURE__ */
|
|
26466
|
+
return /* @__PURE__ */ jsxs111("div", { className: "df fdc gap8 w100 pt4 maxw_720px mla mra sm_pl2 sm_pr2", ...tid, children: [
|
|
26467
|
+
/* @__PURE__ */ jsxs111("div", { className: "df fdc gap3", children: [
|
|
26468
|
+
/* @__PURE__ */ jsxs111("div", { className: "df fdc jcsb gap_12px", children: [
|
|
26469
|
+
/* @__PURE__ */ jsxs111("div", { className: "df jcsb aic", children: [
|
|
26470
|
+
/* @__PURE__ */ jsx214("h1", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
|
|
26471
|
+
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
26472
|
] }),
|
|
26393
|
-
description && /* @__PURE__ */
|
|
26473
|
+
description && /* @__PURE__ */ jsx214("div", { ...trussProps123({
|
|
26394
26474
|
fontWeight: "fw4",
|
|
26395
26475
|
fontSize: "fz_14px",
|
|
26396
26476
|
lineHeight: "lh_20px",
|
|
@@ -26401,13 +26481,13 @@ function FormSectionLayout(props) {
|
|
|
26401
26481
|
] }),
|
|
26402
26482
|
initialFields
|
|
26403
26483
|
] }),
|
|
26404
|
-
sections && /* @__PURE__ */
|
|
26484
|
+
sections && /* @__PURE__ */ jsx214("div", { className: "df fdc gap8", children: sections.map((section, i) => /* @__PURE__ */ jsx214(FormSection, { ...section }, defaultTestId(section.title) || i)) })
|
|
26405
26485
|
] });
|
|
26406
26486
|
}
|
|
26407
26487
|
|
|
26408
26488
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
26409
26489
|
import { useMemo as useMemo56, useRef as useRef66 } from "react";
|
|
26410
|
-
import { mergeProps as mergeProps37, maybeCssVar as
|
|
26490
|
+
import { mergeProps as mergeProps37, maybeCssVar as maybeCssVar59 } from "@homebound/truss/runtime";
|
|
26411
26491
|
|
|
26412
26492
|
// src/layouts/useAutoHideOnScroll.ts
|
|
26413
26493
|
import { useLayoutEffect as useLayoutEffect9, useRef as useRef65, useState as useState57 } from "react";
|
|
@@ -26518,18 +26598,18 @@ function useMeasuredHeight(ref, enabled) {
|
|
|
26518
26598
|
|
|
26519
26599
|
// src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
|
|
26520
26600
|
import { createContext as createContext15, useContext as useContext27 } from "react";
|
|
26521
|
-
import { jsx as
|
|
26601
|
+
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
26522
26602
|
var NavbarLayoutHeightContext = createContext15(0);
|
|
26523
26603
|
function NavbarLayoutHeightProvider({ value, children }) {
|
|
26524
|
-
return /* @__PURE__ */
|
|
26604
|
+
return /* @__PURE__ */ jsx215(NavbarLayoutHeightContext.Provider, { value, children });
|
|
26525
26605
|
}
|
|
26526
26606
|
function useNavbarLayoutHeight() {
|
|
26527
26607
|
return useContext27(NavbarLayoutHeightContext);
|
|
26528
26608
|
}
|
|
26529
26609
|
|
|
26530
26610
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
26531
|
-
import { jsx as
|
|
26532
|
-
var
|
|
26611
|
+
import { jsx as jsx216, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
26612
|
+
var __maybeInc28 = (inc) => {
|
|
26533
26613
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26534
26614
|
};
|
|
26535
26615
|
function NavbarLayout(props) {
|
|
@@ -26557,10 +26637,10 @@ function NavbarLayout(props) {
|
|
|
26557
26637
|
position: "sticky",
|
|
26558
26638
|
left: "left0",
|
|
26559
26639
|
zIndex: ["z_var", {
|
|
26560
|
-
"--zIndex":
|
|
26640
|
+
"--zIndex": maybeCssVar59(zIndices.navbar)
|
|
26561
26641
|
}],
|
|
26562
26642
|
width: ["w_var", {
|
|
26563
|
-
"--width":
|
|
26643
|
+
"--width": maybeCssVar59(__maybeInc28(innerWidth))
|
|
26564
26644
|
}]
|
|
26565
26645
|
}
|
|
26566
26646
|
) : (
|
|
@@ -26569,10 +26649,10 @@ function NavbarLayout(props) {
|
|
|
26569
26649
|
position: "fixed",
|
|
26570
26650
|
left: "left0",
|
|
26571
26651
|
zIndex: ["z_var", {
|
|
26572
|
-
"--zIndex":
|
|
26652
|
+
"--zIndex": maybeCssVar59(zIndices.navbar)
|
|
26573
26653
|
}],
|
|
26574
26654
|
width: ["w_var", {
|
|
26575
|
-
"--width":
|
|
26655
|
+
"--width": maybeCssVar59(__maybeInc28(innerWidth))
|
|
26576
26656
|
}],
|
|
26577
26657
|
transition: "transitionTop"
|
|
26578
26658
|
}
|
|
@@ -26581,20 +26661,20 @@ function NavbarLayout(props) {
|
|
|
26581
26661
|
const innerStyle = autoHideState !== "static" ? {
|
|
26582
26662
|
top: autoHideState === "revealed" ? bannerTop : `calc(${bannerTop} - ${navHeight}px)`
|
|
26583
26663
|
} : void 0;
|
|
26584
|
-
const navbarEl = useMemo56(() => /* @__PURE__ */
|
|
26585
|
-
return /* @__PURE__ */
|
|
26664
|
+
const navbarEl = useMemo56(() => /* @__PURE__ */ jsx216(Navbar, { ...navbar }), [navbar]);
|
|
26665
|
+
return /* @__PURE__ */ jsx216(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx216(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ jsxs112("div", { ...mergeProps37(void 0, cssVars, {
|
|
26586
26666
|
display: "df",
|
|
26587
26667
|
flexDirection: "fdc",
|
|
26588
26668
|
width: "wfc",
|
|
26589
26669
|
minWidth: "mw100"
|
|
26590
26670
|
}), ...tid, children: [
|
|
26591
|
-
/* @__PURE__ */
|
|
26671
|
+
/* @__PURE__ */ jsx216("div", { ref: spacerRef, ...mergeProps37(void 0, {
|
|
26592
26672
|
height: navHeight
|
|
26593
26673
|
}, {
|
|
26594
26674
|
flexShrink: "fs0",
|
|
26595
26675
|
width: "w100"
|
|
26596
|
-
}), children: /* @__PURE__ */
|
|
26597
|
-
/* @__PURE__ */
|
|
26676
|
+
}), children: /* @__PURE__ */ jsx216("div", { ref: navMetricsRef, ...mergeProps37(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
26677
|
+
/* @__PURE__ */ jsx216("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
26598
26678
|
] }) }) });
|
|
26599
26679
|
}
|
|
26600
26680
|
|
|
@@ -26602,8 +26682,8 @@ function NavbarLayout(props) {
|
|
|
26602
26682
|
import { useCallback as useCallback39, useMemo as useMemo57, useRef as useRef67 } from "react";
|
|
26603
26683
|
|
|
26604
26684
|
// src/components/Headers/BaseHeader.tsx
|
|
26605
|
-
import { trussProps as
|
|
26606
|
-
import { jsx as
|
|
26685
|
+
import { trussProps as trussProps124 } from "@homebound/truss/runtime";
|
|
26686
|
+
import { jsx as jsx217, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
26607
26687
|
function BaseHeader(props) {
|
|
26608
26688
|
const {
|
|
26609
26689
|
title,
|
|
@@ -26615,7 +26695,7 @@ function BaseHeader(props) {
|
|
|
26615
26695
|
} = props;
|
|
26616
26696
|
const tid = useTestIds(otherProps, "header");
|
|
26617
26697
|
useDocumentTitle(title, documentTitleSuffix);
|
|
26618
|
-
return /* @__PURE__ */
|
|
26698
|
+
return /* @__PURE__ */ jsxs113("header", { ...tid, ...trussProps124({
|
|
26619
26699
|
display: "df",
|
|
26620
26700
|
flexDirection: "fdc",
|
|
26621
26701
|
paddingTop: "pt3",
|
|
@@ -26629,7 +26709,7 @@ function BaseHeader(props) {
|
|
|
26629
26709
|
"--backgroundColor": "var(--b-surface)"
|
|
26630
26710
|
}]
|
|
26631
26711
|
}), children: [
|
|
26632
|
-
/* @__PURE__ */
|
|
26712
|
+
/* @__PURE__ */ jsxs113("div", { ...trussProps124({
|
|
26633
26713
|
...{
|
|
26634
26714
|
display: "df",
|
|
26635
26715
|
justifyContent: "jcsb",
|
|
@@ -26643,9 +26723,9 @@ function BaseHeader(props) {
|
|
|
26643
26723
|
} : {}
|
|
26644
26724
|
}
|
|
26645
26725
|
}), children: [
|
|
26646
|
-
/* @__PURE__ */
|
|
26647
|
-
breadcrumbs && /* @__PURE__ */
|
|
26648
|
-
/* @__PURE__ */
|
|
26726
|
+
/* @__PURE__ */ jsxs113("div", { className: "mw0", children: [
|
|
26727
|
+
breadcrumbs && /* @__PURE__ */ jsx217(Breadcrumbs, { ...breadcrumbs }),
|
|
26728
|
+
/* @__PURE__ */ jsx217("h1", { ...tid.title, ...trussProps124({
|
|
26649
26729
|
fontWeight: "fw6",
|
|
26650
26730
|
fontSize: "fz_20px",
|
|
26651
26731
|
lineHeight: "lh_28px",
|
|
@@ -26654,22 +26734,22 @@ function BaseHeader(props) {
|
|
|
26654
26734
|
}]
|
|
26655
26735
|
}), children: title })
|
|
26656
26736
|
] }),
|
|
26657
|
-
/* @__PURE__ */
|
|
26737
|
+
/* @__PURE__ */ jsx217("div", { className: "fs0", children: rightSlot })
|
|
26658
26738
|
] }),
|
|
26659
26739
|
bottomSlot
|
|
26660
26740
|
] });
|
|
26661
26741
|
}
|
|
26662
26742
|
|
|
26663
26743
|
// src/components/Headers/PageHeader.tsx
|
|
26664
|
-
import { trussProps as
|
|
26665
|
-
import { jsx as
|
|
26744
|
+
import { trussProps as trussProps125 } from "@homebound/truss/runtime";
|
|
26745
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
26666
26746
|
function PageHeader2(props) {
|
|
26667
26747
|
const {
|
|
26668
26748
|
tabs,
|
|
26669
26749
|
...otherProps
|
|
26670
26750
|
} = props;
|
|
26671
26751
|
const tid = useTestIds(otherProps, "header");
|
|
26672
|
-
return /* @__PURE__ */
|
|
26752
|
+
return /* @__PURE__ */ jsx218(BaseHeader, { ...otherProps, bottomSlot: tabs && /* @__PURE__ */ jsx218("div", { ...trussProps125(pageContentPaddingX), children: /* @__PURE__ */ jsx218(Tabs, { ...tabs, ...tid.tabs }) }) });
|
|
26673
26753
|
}
|
|
26674
26754
|
|
|
26675
26755
|
// src/layouts/useBannerAndNavbarHeight.ts
|
|
@@ -26678,9 +26758,9 @@ function useBannerAndNavbarHeight() {
|
|
|
26678
26758
|
}
|
|
26679
26759
|
|
|
26680
26760
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
26681
|
-
import { mergeProps as mergeProps38, maybeCssVar as
|
|
26682
|
-
import { jsx as
|
|
26683
|
-
var
|
|
26761
|
+
import { mergeProps as mergeProps38, maybeCssVar as maybeCssVar60 } from "@homebound/truss/runtime";
|
|
26762
|
+
import { jsx as jsx219, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
26763
|
+
var __maybeInc29 = (inc) => {
|
|
26684
26764
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26685
26765
|
};
|
|
26686
26766
|
function PageHeaderLayout(props) {
|
|
@@ -26710,43 +26790,43 @@ function PageHeaderLayout(props) {
|
|
|
26710
26790
|
const innerCss = autoHideState === "static" ? {
|
|
26711
26791
|
position: "sticky",
|
|
26712
26792
|
left: ["left_var", {
|
|
26713
|
-
"--left":
|
|
26793
|
+
"--left": maybeCssVar60(__maybeInc29(headerLeft))
|
|
26714
26794
|
}],
|
|
26715
26795
|
width: ["w_var", {
|
|
26716
|
-
"--width":
|
|
26796
|
+
"--width": maybeCssVar60(__maybeInc29(headerWidth))
|
|
26717
26797
|
}],
|
|
26718
26798
|
zIndex: ["z_var", {
|
|
26719
|
-
"--zIndex":
|
|
26799
|
+
"--zIndex": maybeCssVar60(zIndices.pageStickyHeader)
|
|
26720
26800
|
}]
|
|
26721
26801
|
} : {
|
|
26722
26802
|
position: "fixed",
|
|
26723
26803
|
left: ["left_var", {
|
|
26724
|
-
"--left":
|
|
26804
|
+
"--left": maybeCssVar60(__maybeInc29(headerLeft))
|
|
26725
26805
|
}],
|
|
26726
26806
|
width: ["w_var", {
|
|
26727
|
-
"--width":
|
|
26807
|
+
"--width": maybeCssVar60(__maybeInc29(headerWidth))
|
|
26728
26808
|
}],
|
|
26729
26809
|
zIndex: ["z_var", {
|
|
26730
|
-
"--zIndex":
|
|
26810
|
+
"--zIndex": maybeCssVar60(zIndices.pageStickyHeader)
|
|
26731
26811
|
}],
|
|
26732
26812
|
transition: "transitionTop"
|
|
26733
26813
|
};
|
|
26734
26814
|
const innerStyle = autoHideState !== "static" ? {
|
|
26735
26815
|
top: autoHideState === "revealed" ? outerTop : `calc(${outerTop} - ${headerHeight}px)`
|
|
26736
26816
|
} : void 0;
|
|
26737
|
-
const pageHeaderEl = useMemo57(() => /* @__PURE__ */
|
|
26738
|
-
return /* @__PURE__ */
|
|
26817
|
+
const pageHeaderEl = useMemo57(() => /* @__PURE__ */ jsx219(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
26818
|
+
return /* @__PURE__ */ jsx219(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs114("div", { ...mergeProps38(void 0, cssVars, {
|
|
26739
26819
|
display: "df",
|
|
26740
26820
|
flexDirection: "fdc",
|
|
26741
26821
|
width: "w100"
|
|
26742
26822
|
}), ...tid, children: [
|
|
26743
|
-
/* @__PURE__ */
|
|
26823
|
+
/* @__PURE__ */ jsx219("div", { ref: spacerRef, ...mergeProps38(void 0, {
|
|
26744
26824
|
height: headerHeight
|
|
26745
26825
|
}, {
|
|
26746
26826
|
flexShrink: "fs0",
|
|
26747
26827
|
width: "w100"
|
|
26748
|
-
}), children: /* @__PURE__ */
|
|
26749
|
-
/* @__PURE__ */
|
|
26828
|
+
}), children: /* @__PURE__ */ jsx219("div", { ref: headerMetricsRef, ...mergeProps38(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
26829
|
+
/* @__PURE__ */ jsx219("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
|
|
26750
26830
|
] }) });
|
|
26751
26831
|
}
|
|
26752
26832
|
|
|
@@ -26754,17 +26834,17 @@ function PageHeaderLayout(props) {
|
|
|
26754
26834
|
import { useLayoutEffect as useLayoutEffect11, useRef as useRef69, useState as useState59 } from "react";
|
|
26755
26835
|
|
|
26756
26836
|
// src/components/Headers/WorkflowHeader.tsx
|
|
26757
|
-
import { jsx as
|
|
26837
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
26758
26838
|
function WorkflowHeader(props) {
|
|
26759
26839
|
const { stepperTabs, ...otherProps } = props;
|
|
26760
26840
|
const tid = useTestIds(otherProps, "header");
|
|
26761
|
-
return /* @__PURE__ */
|
|
26841
|
+
return /* @__PURE__ */ jsx220(BaseHeader, { ...otherProps, bottomSlot: /* @__PURE__ */ jsx220(StepperTabs, { ...stepperTabs, ...tid.stepperTabs }) });
|
|
26762
26842
|
}
|
|
26763
26843
|
|
|
26764
26844
|
// src/layouts/WorkflowLayout/useUnsavedChangesGuard.tsx
|
|
26765
26845
|
import { useEffect as useEffect39, useRef as useRef68 } from "react";
|
|
26766
26846
|
import { useBlocker } from "react-router-dom";
|
|
26767
|
-
import { jsx as
|
|
26847
|
+
import { jsx as jsx221 } from "react/jsx-runtime";
|
|
26768
26848
|
function useUnsavedChangesGuard(options) {
|
|
26769
26849
|
const { isDirty, onCancel } = options;
|
|
26770
26850
|
const { openModal } = useModal();
|
|
@@ -26787,7 +26867,7 @@ function useUnsavedChangesGuard(options) {
|
|
|
26787
26867
|
}
|
|
26788
26868
|
openModal({
|
|
26789
26869
|
allowClosing: false,
|
|
26790
|
-
content: /* @__PURE__ */
|
|
26870
|
+
content: /* @__PURE__ */ jsx221(ConfirmCloseModal, { onClose: () => onCancel(e) })
|
|
26791
26871
|
});
|
|
26792
26872
|
};
|
|
26793
26873
|
const navigationBlocker = blocker.state === "blocked" ? { proceed: () => blocker.proceed?.(), cancelNavigation: () => blocker.reset?.() } : void 0;
|
|
@@ -26799,7 +26879,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
26799
26879
|
useEffect39(() => {
|
|
26800
26880
|
openModal({
|
|
26801
26881
|
allowClosing: false,
|
|
26802
|
-
content: /* @__PURE__ */
|
|
26882
|
+
content: /* @__PURE__ */ jsx221(ConfirmCloseModal, { title: "Leave page?", onClose: proceed, onContinue: cancelNavigation })
|
|
26803
26883
|
});
|
|
26804
26884
|
return () => closeModal();
|
|
26805
26885
|
}, []);
|
|
@@ -26807,7 +26887,7 @@ function UnsavedChangesNavigationModal(props) {
|
|
|
26807
26887
|
}
|
|
26808
26888
|
|
|
26809
26889
|
// src/layouts/WorkflowLayout/WorkflowActions.tsx
|
|
26810
|
-
import { jsx as
|
|
26890
|
+
import { jsx as jsx222, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
26811
26891
|
function WorkflowActions(props) {
|
|
26812
26892
|
const {
|
|
26813
26893
|
isFirstStep,
|
|
@@ -26821,20 +26901,20 @@ function WorkflowActions(props) {
|
|
|
26821
26901
|
onContinue,
|
|
26822
26902
|
primaryDisabled
|
|
26823
26903
|
} = props;
|
|
26824
|
-
return /* @__PURE__ */
|
|
26825
|
-
/* @__PURE__ */
|
|
26826
|
-
/* @__PURE__ */
|
|
26827
|
-
/* @__PURE__ */
|
|
26828
|
-
onSaveAndExit && /* @__PURE__ */
|
|
26829
|
-
isLastStep ? /* @__PURE__ */
|
|
26904
|
+
return /* @__PURE__ */ jsxs115("div", { className: "df aic jcsb sm_w100", children: [
|
|
26905
|
+
/* @__PURE__ */ jsx222("div", { className: "df aic", children: !isFirstStep && isMobile && /* @__PURE__ */ jsx222(IconButton, { icon: "arrowBack", label: "Back", onClick: onBack }) }),
|
|
26906
|
+
/* @__PURE__ */ jsxs115("div", { className: "df aic gap1", children: [
|
|
26907
|
+
/* @__PURE__ */ jsx222(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
|
|
26908
|
+
onSaveAndExit && /* @__PURE__ */ jsx222(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
|
|
26909
|
+
isLastStep ? /* @__PURE__ */ jsx222(Button, { label: completeLabel, variant: "primary", onClick: onComplete, disabled: primaryDisabled }) : /* @__PURE__ */ jsx222(Button, { label: "Continue", variant: "primary", onClick: onContinue, disabled: primaryDisabled })
|
|
26830
26910
|
] })
|
|
26831
26911
|
] });
|
|
26832
26912
|
}
|
|
26833
26913
|
|
|
26834
26914
|
// src/layouts/WorkflowLayout/WorkflowLayout.tsx
|
|
26835
|
-
import { trussProps as
|
|
26836
|
-
import { jsx as
|
|
26837
|
-
var
|
|
26915
|
+
import { trussProps as trussProps126, mergeProps as mergeProps39, maybeCssVar as maybeCssVar61 } from "@homebound/truss/runtime";
|
|
26916
|
+
import { jsx as jsx223, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
26917
|
+
var __maybeInc30 = (inc) => {
|
|
26838
26918
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
26839
26919
|
};
|
|
26840
26920
|
function WorkflowLayout(props) {
|
|
@@ -26875,7 +26955,7 @@ function WorkflowLayout(props) {
|
|
|
26875
26955
|
const isFirstStep = currentIndex <= 0;
|
|
26876
26956
|
const isLastStep = currentIndex === stepTabs.length - 1;
|
|
26877
26957
|
const activeStep = stepTabs[currentIndex];
|
|
26878
|
-
const buttons = /* @__PURE__ */
|
|
26958
|
+
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
26959
|
const onContinue = activeStep?.onContinue;
|
|
26880
26960
|
if (onContinue) {
|
|
26881
26961
|
const allowed = await onContinue();
|
|
@@ -26896,7 +26976,7 @@ function WorkflowLayout(props) {
|
|
|
26896
26976
|
}
|
|
26897
26977
|
};
|
|
26898
26978
|
}, [showFooter]);
|
|
26899
|
-
const headerEl = /* @__PURE__ */
|
|
26979
|
+
const headerEl = /* @__PURE__ */ jsx223(
|
|
26900
26980
|
WorkflowHeader,
|
|
26901
26981
|
{
|
|
26902
26982
|
...headerProps,
|
|
@@ -26909,44 +26989,44 @@ function WorkflowLayout(props) {
|
|
|
26909
26989
|
}
|
|
26910
26990
|
}
|
|
26911
26991
|
);
|
|
26912
|
-
return /* @__PURE__ */
|
|
26913
|
-
/* @__PURE__ */
|
|
26992
|
+
return /* @__PURE__ */ jsxs116(DocumentScrollLayoutProvider, { children: [
|
|
26993
|
+
/* @__PURE__ */ jsxs116("div", { ...mergeProps39(void 0, cssVars, {
|
|
26914
26994
|
display: "df",
|
|
26915
26995
|
flexDirection: "fdc",
|
|
26916
26996
|
width: "w100"
|
|
26917
26997
|
}), ...tid, children: [
|
|
26918
|
-
/* @__PURE__ */
|
|
26998
|
+
/* @__PURE__ */ jsx223("div", { ref: headerMetricsRef, ...trussProps126({
|
|
26919
26999
|
position: "sticky",
|
|
26920
27000
|
left: "left0",
|
|
26921
27001
|
width: ["w_var", {
|
|
26922
|
-
"--width":
|
|
27002
|
+
"--width": maybeCssVar61(__maybeInc30(headerWidth))
|
|
26923
27003
|
}],
|
|
26924
27004
|
zIndex: ["z_var", {
|
|
26925
|
-
"--zIndex":
|
|
27005
|
+
"--zIndex": maybeCssVar61(zIndices.pageStickyHeader)
|
|
26926
27006
|
}],
|
|
26927
27007
|
top: ["top_var", {
|
|
26928
|
-
"--top":
|
|
27008
|
+
"--top": maybeCssVar61(__maybeInc30(outerTop))
|
|
26929
27009
|
}]
|
|
26930
27010
|
}), ...tid.header, children: headerEl }),
|
|
26931
|
-
/* @__PURE__ */
|
|
26932
|
-
showFooter && /* @__PURE__ */
|
|
27011
|
+
/* @__PURE__ */ jsx223("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children: activeStep?.content }),
|
|
27012
|
+
showFooter && /* @__PURE__ */ jsx223("div", { ...trussProps126({
|
|
26933
27013
|
flexShrink: "fs0",
|
|
26934
27014
|
width: "w100",
|
|
26935
27015
|
height: ["h_var", {
|
|
26936
27016
|
"--height": `${mobileFooterHeightPx}px`
|
|
26937
27017
|
}]
|
|
26938
|
-
}), children: /* @__PURE__ */
|
|
27018
|
+
}), children: /* @__PURE__ */ jsx223("div", { ...trussProps126({
|
|
26939
27019
|
...{
|
|
26940
27020
|
position: "fixed",
|
|
26941
27021
|
bottom: "bottom0",
|
|
26942
27022
|
width: ["w_var", {
|
|
26943
|
-
"--width":
|
|
27023
|
+
"--width": maybeCssVar61(__maybeInc30(headerWidth))
|
|
26944
27024
|
}],
|
|
26945
27025
|
height: ["h_var", {
|
|
26946
27026
|
"--height": `${mobileFooterHeightPx}px`
|
|
26947
27027
|
}],
|
|
26948
27028
|
zIndex: ["z_var", {
|
|
26949
|
-
"--zIndex":
|
|
27029
|
+
"--zIndex": maybeCssVar61(zIndices.pageStickyFooter)
|
|
26950
27030
|
}],
|
|
26951
27031
|
display: "df",
|
|
26952
27032
|
alignItems: "aic",
|
|
@@ -26964,7 +27044,7 @@ function WorkflowLayout(props) {
|
|
|
26964
27044
|
...pageContentPaddingX
|
|
26965
27045
|
}), ...tid.footer, children: buttons }) })
|
|
26966
27046
|
] }),
|
|
26967
|
-
navigationBlocker && /* @__PURE__ */
|
|
27047
|
+
navigationBlocker && /* @__PURE__ */ jsx223(UnsavedChangesNavigationModal, { ...navigationBlocker })
|
|
26968
27048
|
] });
|
|
26969
27049
|
}
|
|
26970
27050
|
var mobileFooterHeightPx = 80;
|
|
@@ -26988,7 +27068,9 @@ export {
|
|
|
26988
27068
|
AvatarGroup,
|
|
26989
27069
|
Banner,
|
|
26990
27070
|
BaseFilter,
|
|
27071
|
+
BeamLogo,
|
|
26991
27072
|
BeamProvider,
|
|
27073
|
+
BlueprintAiLogo,
|
|
26992
27074
|
BoundCheckboxField,
|
|
26993
27075
|
BoundCheckboxGroupField,
|
|
26994
27076
|
BoundChipSelectField,
|