@homebound/beam 3.20.0 → 3.21.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 +182 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +125 -112
- package/dist/index.js.map +1 -1
- package/dist/truss.css +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5888,7 +5888,12 @@ var iconButtonOutline = {
|
|
|
5888
5888
|
borderRadius: "br8",
|
|
5889
5889
|
width: "w_48px",
|
|
5890
5890
|
height: "h_40px",
|
|
5891
|
-
|
|
5891
|
+
backgroundColor: ["bgColor_var", {
|
|
5892
|
+
"--backgroundColor": "var(--b-surface)"
|
|
5893
|
+
}],
|
|
5894
|
+
borderColor: ["bc_var", {
|
|
5895
|
+
"--borderColor": "var(--b-surface-separator)"
|
|
5896
|
+
}],
|
|
5892
5897
|
borderStyle: "bss",
|
|
5893
5898
|
borderWidth: "bw1",
|
|
5894
5899
|
display: "df",
|
|
@@ -20034,24 +20039,11 @@ function FilterDropdownMenu(props) {
|
|
|
20034
20039
|
opacity: "o0"
|
|
20035
20040
|
} : {}
|
|
20036
20041
|
}), children: searchTextField }),
|
|
20037
|
-
sm && hasSearch && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
20038
|
-
hasFilters && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
20042
|
+
sm && hasSearch && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, { variant: "outline", icon: "search", label: "Search", onClick: () => setSearchIsOpen(!searchIsOpen), active: searchIsOpen, ...testId.searchButton }),
|
|
20043
|
+
sm && hasFilters && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(IconButton, { variant: "outline", icon: "filter", label: "Filter", active: isOpen, onClick: () => setIsOpen(!isOpen), ...testId.button }),
|
|
20044
|
+
!sm && hasFilters && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(Button, { label: "Filter", icon: "filter", size: "md", endAdornment: /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)("div", { className: "df aic gap1", children: [
|
|
20039
20045
|
activeFilterCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(CountBadge, { count: activeFilterCount }),
|
|
20040
|
-
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(Icon, {
|
|
20041
|
-
...sm ? {
|
|
20042
|
-
position: "absolute",
|
|
20043
|
-
overflow: "oh",
|
|
20044
|
-
clip: "cli_inset_50",
|
|
20045
|
-
clipPath: "clp_none",
|
|
20046
|
-
border: "bd_0",
|
|
20047
|
-
height: "h_1px",
|
|
20048
|
-
margin: "m_neg1px",
|
|
20049
|
-
width: "w_1px",
|
|
20050
|
-
padding: "p_0",
|
|
20051
|
-
whiteSpace: "wsnw",
|
|
20052
|
-
opacity: "o0"
|
|
20053
|
-
} : {}
|
|
20054
|
-
}, icon: isOpen ? "chevronUp" : "chevronDown" })
|
|
20046
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(Icon, { icon: isOpen ? "chevronUp" : "chevronDown" })
|
|
20055
20047
|
] }), variant: "secondaryBlack", onClick: () => setIsOpen(!isOpen), active: isOpen, ...testId.button }),
|
|
20056
20048
|
searchIsOpen && /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", { ...(0, import_runtime75.trussProps)({
|
|
20057
20049
|
width: "w100",
|
|
@@ -20189,13 +20181,13 @@ function toPageNumberSize(page) {
|
|
|
20189
20181
|
var import_react100 = require("react");
|
|
20190
20182
|
var import_react_aria45 = require("react-aria");
|
|
20191
20183
|
var import_react_stately17 = require("react-stately");
|
|
20184
|
+
var import_runtime76 = require("@homebound/truss/runtime");
|
|
20192
20185
|
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
20193
20186
|
function EditColumnsButton(props) {
|
|
20194
20187
|
const {
|
|
20195
20188
|
defaultOpen,
|
|
20196
20189
|
disabled,
|
|
20197
20190
|
columns,
|
|
20198
|
-
trigger,
|
|
20199
20191
|
api
|
|
20200
20192
|
} = props;
|
|
20201
20193
|
const state = (0, import_react_stately17.useMenuTriggerState)({
|
|
@@ -20207,7 +20199,7 @@ function EditColumnsButton(props) {
|
|
|
20207
20199
|
} = (0, import_react_aria45.useMenuTrigger)({
|
|
20208
20200
|
isDisabled: !!disabled
|
|
20209
20201
|
}, state, buttonRef);
|
|
20210
|
-
const tid = useTestIds(props,
|
|
20202
|
+
const tid = useTestIds(props, "kanban");
|
|
20211
20203
|
const {
|
|
20212
20204
|
sm
|
|
20213
20205
|
} = useBreakpoint();
|
|
@@ -20226,12 +20218,38 @@ function EditColumnsButton(props) {
|
|
|
20226
20218
|
api.resetColumnWidths();
|
|
20227
20219
|
api.setVisibleColumns(columns.filter((column2) => column2.canHide ? ids.includes(column2.id) : true).map((c) => c.id));
|
|
20228
20220
|
}, [columns, api]);
|
|
20229
|
-
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(OverlayTrigger, { ...props,
|
|
20230
|
-
|
|
20221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(OverlayTrigger, { ...props, trigger: {
|
|
20222
|
+
icon: "kanban",
|
|
20223
|
+
size: "md",
|
|
20224
|
+
label: "",
|
|
20225
|
+
variant: "secondaryBlack"
|
|
20226
|
+
}, menuTriggerProps, state, buttonRef, hideEndAdornment: sm, ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", { ...(0, import_runtime76.trussProps)({
|
|
20227
|
+
display: "df",
|
|
20228
|
+
flexDirection: "fdc",
|
|
20229
|
+
backgroundColor: ["bgColor_var", {
|
|
20230
|
+
"--backgroundColor": "var(--b-surface)"
|
|
20231
|
+
}],
|
|
20232
|
+
maxWidth: "maxw_326px",
|
|
20233
|
+
maxHeight: "maxh_512px",
|
|
20234
|
+
boxShadow: "h_bshHover"
|
|
20235
|
+
}), children: [
|
|
20236
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { className: "dg gtc_1fr_auto gap2 pt2 pb2 pr2 pl2 fg1 mh0 oya", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_react100.Fragment, { children: [
|
|
20231
20237
|
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { className: "fw4 fz_14px lh_20px wsnw oh to_ellipsis pr1", children: option.label }),
|
|
20232
20238
|
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Switch, { compact: true, selected: selectedValues.includes(option.value), onChange: (value) => setSelectedValues(value ? [...selectedValues, option.value] : selectedValues.filter((v) => v !== option.value)), labelStyle: "hidden", label: option.label, ...tid[`option${option.value}`] })
|
|
20233
|
-
] }, option.value)),
|
|
20234
|
-
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", {
|
|
20239
|
+
] }, option.value)) }),
|
|
20240
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0, import_runtime76.trussProps)({
|
|
20241
|
+
display: "df",
|
|
20242
|
+
justifyContent: "jcc",
|
|
20243
|
+
paddingTop: "pt2",
|
|
20244
|
+
paddingBottom: "pb2",
|
|
20245
|
+
paddingRight: "pr2",
|
|
20246
|
+
paddingLeft: "pl2",
|
|
20247
|
+
borderTopStyle: "bts_solid",
|
|
20248
|
+
borderTopWidth: "btw_1px",
|
|
20249
|
+
borderColor: ["bc_var", {
|
|
20250
|
+
"--borderColor": "var(--b-on-surface-muted)"
|
|
20251
|
+
}]
|
|
20252
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Button, { variant: "tertiary", label: "Reset Column Widths", onClick: () => api.resetColumnWidths() }) })
|
|
20235
20253
|
] }) });
|
|
20236
20254
|
}
|
|
20237
20255
|
|
|
@@ -20257,7 +20275,7 @@ function ViewToggleButton({ view, onChange, defaultOpen }) {
|
|
|
20257
20275
|
}
|
|
20258
20276
|
|
|
20259
20277
|
// src/components/Table/TableActions.tsx
|
|
20260
|
-
var
|
|
20278
|
+
var import_runtime77 = require("@homebound/truss/runtime");
|
|
20261
20279
|
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
20262
20280
|
function TableActions(props) {
|
|
20263
20281
|
const {
|
|
@@ -20265,7 +20283,7 @@ function TableActions(props) {
|
|
|
20265
20283
|
children,
|
|
20266
20284
|
right
|
|
20267
20285
|
} = props;
|
|
20268
|
-
return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", { ...(0,
|
|
20286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", { ...(0, import_runtime77.trussProps)({
|
|
20269
20287
|
...{
|
|
20270
20288
|
display: "df",
|
|
20271
20289
|
gap: "gap1",
|
|
@@ -20289,7 +20307,7 @@ function isGridTableProps(props) {
|
|
|
20289
20307
|
var import_react101 = require("react");
|
|
20290
20308
|
|
|
20291
20309
|
// src/components/LoadingSkeleton.tsx
|
|
20292
|
-
var
|
|
20310
|
+
var import_runtime78 = require("@homebound/truss/runtime");
|
|
20293
20311
|
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
20294
20312
|
function LoadingSkeleton({
|
|
20295
20313
|
rows = 1,
|
|
@@ -20302,18 +20320,18 @@ function LoadingSkeleton({
|
|
|
20302
20320
|
const rowHeight = sizeToPixels2[size];
|
|
20303
20321
|
const rowCells = (rowNumber) => {
|
|
20304
20322
|
const flexGrowForCell = randomizeWidths ? getRandomizedFlexBasisByRowIndex(rowNumber) : 1;
|
|
20305
|
-
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { ...(0,
|
|
20323
|
+
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { ...(0, import_runtime78.trussProps)({
|
|
20306
20324
|
borderRadius: "br4",
|
|
20307
20325
|
animation: "animation_pulse_2s_cubic_bezier_0_4_0_0_6_1_infinite",
|
|
20308
20326
|
flexGrow: ["flexGrow_var", {
|
|
20309
|
-
"--flexGrow": (0,
|
|
20327
|
+
"--flexGrow": (0, import_runtime78.maybeCssVar)(flexGrowForCell)
|
|
20310
20328
|
}],
|
|
20311
20329
|
backgroundColor: ["bgColor_var", {
|
|
20312
20330
|
"--backgroundColor": "var(--b-loader-fill)"
|
|
20313
20331
|
}]
|
|
20314
20332
|
}) }, `row-${rowNumber}-cell-${i}`));
|
|
20315
20333
|
};
|
|
20316
|
-
return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { ...(0,
|
|
20334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { ...(0, import_runtime78.trussProps)({
|
|
20317
20335
|
display: "df",
|
|
20318
20336
|
gap: "gap1",
|
|
20319
20337
|
marginBottom: "mb1",
|
|
@@ -20387,7 +20405,7 @@ function parseStoredTableView(raw) {
|
|
|
20387
20405
|
}
|
|
20388
20406
|
|
|
20389
20407
|
// src/components/Layout/GridTableLayout/GridTableLayout.tsx
|
|
20390
|
-
var
|
|
20408
|
+
var import_runtime79 = require("@homebound/truss/runtime");
|
|
20391
20409
|
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
20392
20410
|
var __maybeInc14 = (inc) => {
|
|
20393
20411
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -20431,12 +20449,7 @@ function GridTableLayoutComponent(props) {
|
|
|
20431
20449
|
}, [visibleColumnIds, layoutState]);
|
|
20432
20450
|
const visibleColumnsStorageKey = layoutState?.persistedColumnsStorageKey;
|
|
20433
20451
|
const tableActionsEl = /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(TableActions, { right: (hasHideableColumns || withCardView) && /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("div", { className: "df gap1", children: [
|
|
20434
|
-
hasHideableColumns && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(EditColumnsButton, { columns, api, tooltip: "Display columns",
|
|
20435
|
-
icon: "kanban",
|
|
20436
|
-
size: "md",
|
|
20437
|
-
label: "",
|
|
20438
|
-
variant: "secondaryBlack"
|
|
20439
|
-
}, ...tid.editColumnsButton }),
|
|
20452
|
+
hasHideableColumns && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(EditColumnsButton, { columns, api, tooltip: "Display columns", ...tid.editColumnsButton }),
|
|
20440
20453
|
withCardView && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(ViewToggleButton, { view, onChange: setView })
|
|
20441
20454
|
] }), xss: {
|
|
20442
20455
|
paddingTop: "pt3",
|
|
@@ -20456,21 +20469,21 @@ function GridTableLayoutComponent(props) {
|
|
|
20456
20469
|
layoutState && totalCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(Pagination, { page: [layoutState.page, layoutState._pagination.setPage], totalCount, pageSizes: layoutState._pagination.pageSizes, ...tid.pagination })
|
|
20457
20470
|
] });
|
|
20458
20471
|
const tableScrollContent = /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)(import_jsx_runtime148.Fragment, { children: [
|
|
20459
|
-
showTableActions && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ref: tableActionsRef, ...(0,
|
|
20472
|
+
showTableActions && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ref: tableActionsRef, ...(0, import_runtime79.trussProps)({
|
|
20460
20473
|
...inDocumentScrollLayout ? {
|
|
20461
20474
|
transition: "transitionTop",
|
|
20462
20475
|
position: "sticky",
|
|
20463
20476
|
top: ["top_var", {
|
|
20464
|
-
"--top": (0,
|
|
20477
|
+
"--top": (0, import_runtime79.maybeCssVar)(__maybeInc14(stickyNavAndHeaderOffset()))
|
|
20465
20478
|
}],
|
|
20466
20479
|
left: ["left_var", {
|
|
20467
|
-
"--left": (0,
|
|
20480
|
+
"--left": (0, import_runtime79.maybeCssVar)(__maybeInc14(documentScrollChromeLeft()))
|
|
20468
20481
|
}],
|
|
20469
20482
|
width: ["w_var", {
|
|
20470
|
-
"--width": (0,
|
|
20483
|
+
"--width": (0, import_runtime79.maybeCssVar)(__maybeInc14(documentScrollChromeWidth()))
|
|
20471
20484
|
}],
|
|
20472
20485
|
zIndex: ["z_var", {
|
|
20473
|
-
"--zIndex": (0,
|
|
20486
|
+
"--zIndex": (0, import_runtime79.maybeCssVar)(zIndices.tableActions)
|
|
20474
20487
|
}],
|
|
20475
20488
|
backgroundColor: ["bgColor_var", {
|
|
20476
20489
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -20588,7 +20601,7 @@ function Header2(props) {
|
|
|
20588
20601
|
actionMenu
|
|
20589
20602
|
} = props;
|
|
20590
20603
|
const tids = useTestIds(props);
|
|
20591
|
-
return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(FullBleed, { children: /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("header", { ...(0,
|
|
20604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(FullBleed, { children: /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("header", { ...(0, import_runtime79.trussProps)({
|
|
20592
20605
|
...{
|
|
20593
20606
|
paddingTop: "pt3",
|
|
20594
20607
|
paddingBottom: "pb3",
|
|
@@ -20667,7 +20680,7 @@ function useRightPaneContext() {
|
|
|
20667
20680
|
// src/components/Layout/RightPaneLayout/RightPaneLayout.tsx
|
|
20668
20681
|
var import_framer_motion3 = require("framer-motion");
|
|
20669
20682
|
var import_react105 = require("react");
|
|
20670
|
-
var
|
|
20683
|
+
var import_runtime80 = require("@homebound/truss/runtime");
|
|
20671
20684
|
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
20672
20685
|
var __maybeInc15 = (inc) => {
|
|
20673
20686
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -20687,10 +20700,10 @@ function RightPaneLayout(props) {
|
|
|
20687
20700
|
} = useRightPaneContext();
|
|
20688
20701
|
(0, import_react105.useEffect)(() => closePane, [closePane]);
|
|
20689
20702
|
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { className: "h100 df oxh", children: /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(import_jsx_runtime151.Fragment, { children: [
|
|
20690
|
-
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...(0,
|
|
20703
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...(0, import_runtime80.trussProps)({
|
|
20691
20704
|
...{
|
|
20692
20705
|
width: ["w_var", {
|
|
20693
|
-
"--width": (0,
|
|
20706
|
+
"--width": (0, import_runtime80.maybeCssVar)(__maybeInc15(`calc(100% - ${paneWidth + 24}px)`))
|
|
20694
20707
|
}],
|
|
20695
20708
|
transition: "transition_width_2s_linear",
|
|
20696
20709
|
height: "h100",
|
|
@@ -20706,13 +20719,13 @@ function RightPaneLayout(props) {
|
|
|
20706
20719
|
...{
|
|
20707
20720
|
...!!defaultPaneContent ? {
|
|
20708
20721
|
width: ["w_var", {
|
|
20709
|
-
"--width": (0,
|
|
20722
|
+
"--width": (0, import_runtime80.maybeCssVar)(__maybeInc15(`calc(100% - ${paneWidth + 24}px)`))
|
|
20710
20723
|
}],
|
|
20711
20724
|
marginRight: "mr3"
|
|
20712
20725
|
} : {}
|
|
20713
20726
|
}
|
|
20714
20727
|
}), children }),
|
|
20715
|
-
/* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { ...(0,
|
|
20728
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { ...(0, import_runtime80.trussProps)({
|
|
20716
20729
|
position: "relative",
|
|
20717
20730
|
...!!defaultPaneContent ? {
|
|
20718
20731
|
width: ["w_var", {
|
|
@@ -20720,7 +20733,7 @@ function RightPaneLayout(props) {
|
|
|
20720
20733
|
}]
|
|
20721
20734
|
} : {}
|
|
20722
20735
|
}), children: [
|
|
20723
|
-
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...(0,
|
|
20736
|
+
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...(0, import_runtime80.trussProps)({
|
|
20724
20737
|
height: "h100",
|
|
20725
20738
|
width: ["w_var", {
|
|
20726
20739
|
"--width": `${paneWidth}px`
|
|
@@ -20738,9 +20751,9 @@ function RightPaneLayout(props) {
|
|
|
20738
20751
|
{
|
|
20739
20752
|
layout: "position",
|
|
20740
20753
|
"data-testid": "rightPaneContent",
|
|
20741
|
-
...(0,
|
|
20754
|
+
...(0, import_runtime80.trussProps)({
|
|
20742
20755
|
backgroundColor: ["bgColor_var", {
|
|
20743
|
-
"--backgroundColor": (0,
|
|
20756
|
+
"--backgroundColor": (0, import_runtime80.maybeCssVar)(paneBgColor)
|
|
20744
20757
|
}],
|
|
20745
20758
|
height: "h100",
|
|
20746
20759
|
width: ["w_var", {
|
|
@@ -20821,7 +20834,7 @@ function SidePanel(props) {
|
|
|
20821
20834
|
}
|
|
20822
20835
|
|
|
20823
20836
|
// src/components/Layout/TableReviewLayout/TableReviewLayout.tsx
|
|
20824
|
-
var
|
|
20837
|
+
var import_runtime81 = require("@homebound/truss/runtime");
|
|
20825
20838
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
20826
20839
|
var defaultRightPaneWidth = 450;
|
|
20827
20840
|
function TableReviewLayout(props) {
|
|
@@ -20863,14 +20876,14 @@ function TableReviewLayout(props) {
|
|
|
20863
20876
|
bordered: true
|
|
20864
20877
|
}, stickyHeader: true });
|
|
20865
20878
|
}
|
|
20866
|
-
return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { ...(0,
|
|
20879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { ...(0, import_runtime81.trussProps)({
|
|
20867
20880
|
position: "fixed",
|
|
20868
20881
|
top: "top0",
|
|
20869
20882
|
bottom: "bottom0",
|
|
20870
20883
|
left: "left0",
|
|
20871
20884
|
right: "right0",
|
|
20872
20885
|
zIndex: ["z_var", {
|
|
20873
|
-
"--zIndex": (0,
|
|
20886
|
+
"--zIndex": (0, import_runtime81.maybeCssVar)(zIndices.pageOverlay)
|
|
20874
20887
|
}],
|
|
20875
20888
|
backgroundColor: "bgWhite",
|
|
20876
20889
|
display: "df",
|
|
@@ -20888,7 +20901,7 @@ function TableReviewLayout(props) {
|
|
|
20888
20901
|
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "fw4 fz_14px lh_20px gray700 mt2", ...tid.description, children: description })
|
|
20889
20902
|
] }),
|
|
20890
20903
|
/* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { className: "fg1 df mh0", ...tid.content, children: [
|
|
20891
|
-
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0,
|
|
20904
|
+
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0, import_runtime81.trussProps)({
|
|
20892
20905
|
...{
|
|
20893
20906
|
flexGrow: "fg1",
|
|
20894
20907
|
overflowY: "oya",
|
|
@@ -20911,7 +20924,7 @@ function TableReviewLayout(props) {
|
|
|
20911
20924
|
ease: "linear",
|
|
20912
20925
|
duration: 0.2
|
|
20913
20926
|
}, className: "df fdc fs0 relative", children: [
|
|
20914
|
-
/* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { ...(0,
|
|
20927
|
+
/* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { ...(0, import_runtime81.trussProps)({
|
|
20915
20928
|
position: "absolute",
|
|
20916
20929
|
top: ["top_var", {
|
|
20917
20930
|
"--top": `${-32}px`
|
|
@@ -21034,7 +21047,7 @@ function ButtonDatePicker(props) {
|
|
|
21034
21047
|
// src/components/ButtonGroup.tsx
|
|
21035
21048
|
var import_react109 = require("react");
|
|
21036
21049
|
var import_react_aria48 = require("react-aria");
|
|
21037
|
-
var
|
|
21050
|
+
var import_runtime82 = require("@homebound/truss/runtime");
|
|
21038
21051
|
var import_jsx_runtime157 = (
|
|
21039
21052
|
// Disable the button if the ButtonGroup is disabled or if the current button is disabled.
|
|
21040
21053
|
require("react/jsx-runtime")
|
|
@@ -21048,7 +21061,7 @@ function ButtonGroup(props) {
|
|
|
21048
21061
|
const tid = useTestIds(props, "buttonGroup");
|
|
21049
21062
|
return (
|
|
21050
21063
|
// Adding `line-height: 0` prevent inheriting line-heights that might throw off sizing within the button group.
|
|
21051
|
-
/* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { ...tid, ...(0,
|
|
21064
|
+
/* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { ...tid, ...(0, import_runtime82.trussProps)({
|
|
21052
21065
|
...{
|
|
21053
21066
|
display: "df",
|
|
21054
21067
|
lineHeight: "lh_0"
|
|
@@ -21094,10 +21107,10 @@ function GroupButton(props) {
|
|
|
21094
21107
|
isHovered
|
|
21095
21108
|
} = (0, import_react_aria48.useHover)(ariaProps);
|
|
21096
21109
|
const tid = useTestIds(props);
|
|
21097
|
-
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("span", { ...(0,
|
|
21110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("span", { ...(0, import_runtime82.trussProps)(getButtonStyles2(isFirst, isLast)), children: maybeTooltip({
|
|
21098
21111
|
title: resolveTooltip(disabled, tooltip),
|
|
21099
21112
|
placement: "top",
|
|
21100
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
21113
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime82.trussProps)({
|
|
21101
21114
|
...{
|
|
21102
21115
|
fontWeight: "fw6",
|
|
21103
21116
|
fontSize: "fz_14px",
|
|
@@ -21204,7 +21217,7 @@ var import_react_aria49 = require("react-aria");
|
|
|
21204
21217
|
// src/components/Tag.tsx
|
|
21205
21218
|
var import_utils124 = require("@react-aria/utils");
|
|
21206
21219
|
var import_react110 = require("react");
|
|
21207
|
-
var
|
|
21220
|
+
var import_runtime83 = require("@homebound/truss/runtime");
|
|
21208
21221
|
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
21209
21222
|
function Tag(props) {
|
|
21210
21223
|
const {
|
|
@@ -21228,7 +21241,7 @@ function Tag(props) {
|
|
|
21228
21241
|
});
|
|
21229
21242
|
return maybeTooltip({
|
|
21230
21243
|
title: !preventTooltip && showTooltip ? text : void 0,
|
|
21231
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("span", { ...tid, ...(0,
|
|
21244
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("span", { ...tid, ...(0, import_runtime83.trussProps)({
|
|
21232
21245
|
...{
|
|
21233
21246
|
display: "dif",
|
|
21234
21247
|
fontWeight: "fw6",
|
|
@@ -21278,7 +21291,7 @@ function getStyles(type) {
|
|
|
21278
21291
|
}
|
|
21279
21292
|
|
|
21280
21293
|
// src/components/Card.tsx
|
|
21281
|
-
var
|
|
21294
|
+
var import_runtime84 = require("@homebound/truss/runtime");
|
|
21282
21295
|
var import_jsx_runtime159 = require("react/jsx-runtime");
|
|
21283
21296
|
function Card(props) {
|
|
21284
21297
|
const {
|
|
@@ -21309,8 +21322,8 @@ function Card(props) {
|
|
|
21309
21322
|
...isHovered && cardHoverStyles,
|
|
21310
21323
|
...isDisabled && disabledStyles3
|
|
21311
21324
|
}), [isDisabled, isHovered, bordered, type, isList]);
|
|
21312
|
-
return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { ...(0,
|
|
21313
|
-
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0,
|
|
21325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { ...(0, import_runtime84.trussProps)(styles), ...hoverProps, ...tid, children: [
|
|
21326
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0, import_runtime84.trussProps)({
|
|
21314
21327
|
...{
|
|
21315
21328
|
height: ["h_var", {
|
|
21316
21329
|
"--height": `${imgHeight}px`
|
|
@@ -21327,14 +21340,14 @@ function Card(props) {
|
|
|
21327
21340
|
filter: "filter_brightness_1"
|
|
21328
21341
|
},
|
|
21329
21342
|
...isHovered && !isList && imageHoverStyles
|
|
21330
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("img", { ...(0,
|
|
21343
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("img", { ...(0, import_runtime84.trussProps)({
|
|
21331
21344
|
width: "w100",
|
|
21332
21345
|
height: "h100",
|
|
21333
21346
|
objectFit: ["objectFit_var", {
|
|
21334
|
-
"--objectFit": (0,
|
|
21347
|
+
"--objectFit": (0, import_runtime84.maybeCssVar)(imageFit)
|
|
21335
21348
|
}]
|
|
21336
21349
|
}), src: imgSrc, alt: title, ...tid.img }) }),
|
|
21337
|
-
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0,
|
|
21350
|
+
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0, import_runtime84.trussProps)({
|
|
21338
21351
|
position: "absolute",
|
|
21339
21352
|
right: "right1",
|
|
21340
21353
|
top: "top1",
|
|
@@ -21350,7 +21363,7 @@ function Card(props) {
|
|
|
21350
21363
|
/* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { className: "df fdc aifs gap1", children: [
|
|
21351
21364
|
/* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { children: [
|
|
21352
21365
|
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { className: "fw6 fz_12px lh_16px gray700", ...tid.subtitle, children: subtitle }),
|
|
21353
|
-
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0,
|
|
21366
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0, import_runtime84.trussProps)({
|
|
21354
21367
|
fontWeight: "fw6",
|
|
21355
21368
|
fontSize: "fz_14px",
|
|
21356
21369
|
lineHeight: "lh_20px",
|
|
@@ -21408,10 +21421,10 @@ var imageHoverStyles = {
|
|
|
21408
21421
|
};
|
|
21409
21422
|
|
|
21410
21423
|
// src/components/Copy.tsx
|
|
21411
|
-
var
|
|
21424
|
+
var import_runtime85 = require("@homebound/truss/runtime");
|
|
21412
21425
|
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
21413
21426
|
function Copy(props) {
|
|
21414
|
-
return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ...(0,
|
|
21427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ...(0, import_runtime85.mergeProps)("beam-copy", void 0, {
|
|
21415
21428
|
...{
|
|
21416
21429
|
fontWeight: "fw4",
|
|
21417
21430
|
fontSize: "fz_14px",
|
|
@@ -21440,7 +21453,7 @@ function useDnDGridContext() {
|
|
|
21440
21453
|
}
|
|
21441
21454
|
|
|
21442
21455
|
// src/components/DnDGrid/DnDGrid.tsx
|
|
21443
|
-
var
|
|
21456
|
+
var import_runtime86 = require("@homebound/truss/runtime");
|
|
21444
21457
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
21445
21458
|
function DnDGrid(props) {
|
|
21446
21459
|
const {
|
|
@@ -21623,7 +21636,7 @@ function DnDGrid(props) {
|
|
|
21623
21636
|
return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(DnDGridContext.Provider, { value: {
|
|
21624
21637
|
dragEl,
|
|
21625
21638
|
onDragHandleKeyDown
|
|
21626
|
-
}, children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ref: gridEl, ...(0,
|
|
21639
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ref: gridEl, ...(0, import_runtime86.trussProps)({
|
|
21627
21640
|
...{
|
|
21628
21641
|
containerType: "ctis",
|
|
21629
21642
|
display: "dg"
|
|
@@ -21636,7 +21649,7 @@ var gridCloneKey = "dndgrid-clone";
|
|
|
21636
21649
|
|
|
21637
21650
|
// src/components/DnDGrid/DnDGridItemHandle.tsx
|
|
21638
21651
|
var import_react_aria50 = require("react-aria");
|
|
21639
|
-
var
|
|
21652
|
+
var import_runtime87 = require("@homebound/truss/runtime");
|
|
21640
21653
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
21641
21654
|
function DnDGridItemHandle(props) {
|
|
21642
21655
|
const {
|
|
@@ -21666,7 +21679,7 @@ function DnDGridItemHandle(props) {
|
|
|
21666
21679
|
borderRadius: "br4",
|
|
21667
21680
|
borderWidth: "bw1"
|
|
21668
21681
|
};
|
|
21669
|
-
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("button", { ...(0,
|
|
21682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("button", { ...(0, import_runtime87.trussProps)({
|
|
21670
21683
|
...compact ? iconButtonCompact2 : iconButtonNormal2,
|
|
21671
21684
|
...{
|
|
21672
21685
|
cursor: "cursor_grab",
|
|
@@ -21728,7 +21741,7 @@ var gridItemDataAttribute = "data-grid-item-span";
|
|
|
21728
21741
|
var ResponsiveGridContext = (0, import_react115.createContext)(void 0);
|
|
21729
21742
|
|
|
21730
21743
|
// src/components/Grid/ResponsiveGrid.tsx
|
|
21731
|
-
var
|
|
21744
|
+
var import_runtime88 = require("@homebound/truss/runtime");
|
|
21732
21745
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
21733
21746
|
function ResponsiveGrid(props) {
|
|
21734
21747
|
const {
|
|
@@ -21749,12 +21762,12 @@ function ResponsiveGrid(props) {
|
|
|
21749
21762
|
gap,
|
|
21750
21763
|
columns
|
|
21751
21764
|
}), [minColumnWidth, gap, columns]);
|
|
21752
|
-
return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0,
|
|
21765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0, import_runtime88.trussProps)(gridStyles), children }) });
|
|
21753
21766
|
}
|
|
21754
21767
|
|
|
21755
21768
|
// src/components/Grid/ResponsiveGridItem.tsx
|
|
21756
21769
|
var import_react_aria51 = require("react-aria");
|
|
21757
|
-
var
|
|
21770
|
+
var import_runtime89 = require("@homebound/truss/runtime");
|
|
21758
21771
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
21759
21772
|
function ResponsiveGridItem(props) {
|
|
21760
21773
|
const {
|
|
@@ -21767,12 +21780,12 @@ function ResponsiveGridItem(props) {
|
|
|
21767
21780
|
} = useResponsiveGridItem({
|
|
21768
21781
|
colSpan
|
|
21769
21782
|
});
|
|
21770
|
-
return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0,
|
|
21783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0, import_runtime89.trussProps)(gridItemStyles)), children });
|
|
21771
21784
|
}
|
|
21772
21785
|
|
|
21773
21786
|
// src/components/Grid/useResponsiveGrid.ts
|
|
21774
21787
|
var import_react117 = require("react");
|
|
21775
|
-
var
|
|
21788
|
+
var import_runtime90 = require("@homebound/truss/runtime");
|
|
21776
21789
|
var __maybeInc16 = (inc) => {
|
|
21777
21790
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
21778
21791
|
};
|
|
@@ -21791,11 +21804,11 @@ function useResponsiveGrid(props) {
|
|
|
21791
21804
|
return {
|
|
21792
21805
|
display: "dg",
|
|
21793
21806
|
gridTemplateColumns: ["gtc_var", {
|
|
21794
|
-
"--gridTemplateColumns": (0,
|
|
21807
|
+
"--gridTemplateColumns": (0, import_runtime90.maybeCssVar)(gridTemplateColumns)
|
|
21795
21808
|
}],
|
|
21796
21809
|
containerType: "ctis",
|
|
21797
21810
|
gap: ["gap_var", {
|
|
21798
|
-
"--gap": (0,
|
|
21811
|
+
"--gap": (0, import_runtime90.maybeCssVar)(__maybeInc16(gridGap))
|
|
21799
21812
|
}]
|
|
21800
21813
|
};
|
|
21801
21814
|
}, [minColumnWidth, gap, columns]);
|
|
@@ -21918,7 +21931,7 @@ function HbSpinnerProvider({
|
|
|
21918
21931
|
}
|
|
21919
21932
|
|
|
21920
21933
|
// src/components/HomeboundLogo.tsx
|
|
21921
|
-
var
|
|
21934
|
+
var import_runtime91 = require("@homebound/truss/runtime");
|
|
21922
21935
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
21923
21936
|
var __maybeInc17 = (inc) => {
|
|
21924
21937
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -21929,15 +21942,15 @@ function HomeboundLogo(props) {
|
|
|
21929
21942
|
width: width2 = "auto",
|
|
21930
21943
|
height = "auto"
|
|
21931
21944
|
} = props;
|
|
21932
|
-
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...(0,
|
|
21945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...(0, import_runtime91.trussProps)({
|
|
21933
21946
|
fill: ["fill_var", {
|
|
21934
|
-
"--fill": (0,
|
|
21947
|
+
"--fill": (0, import_runtime91.maybeCssVar)(fill)
|
|
21935
21948
|
}],
|
|
21936
21949
|
width: ["w_var", {
|
|
21937
|
-
"--width": (0,
|
|
21950
|
+
"--width": (0, import_runtime91.maybeCssVar)(__maybeInc17(width2))
|
|
21938
21951
|
}],
|
|
21939
21952
|
height: ["h_var", {
|
|
21940
|
-
"--height": (0,
|
|
21953
|
+
"--height": (0, import_runtime91.maybeCssVar)(__maybeInc17(height))
|
|
21941
21954
|
}]
|
|
21942
21955
|
}), children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("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" }) });
|
|
21943
21956
|
}
|
|
@@ -21945,7 +21958,7 @@ function HomeboundLogo(props) {
|
|
|
21945
21958
|
// src/components/MaxLines.tsx
|
|
21946
21959
|
var import_utils132 = require("@react-aria/utils");
|
|
21947
21960
|
var import_react120 = require("react");
|
|
21948
|
-
var
|
|
21961
|
+
var import_runtime92 = require("@homebound/truss/runtime");
|
|
21949
21962
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
21950
21963
|
function MaxLines({
|
|
21951
21964
|
maxLines,
|
|
@@ -21970,10 +21983,10 @@ function MaxLines({
|
|
|
21970
21983
|
onResize
|
|
21971
21984
|
});
|
|
21972
21985
|
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { children: [
|
|
21973
|
-
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ref: elRef, ...(0,
|
|
21986
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ref: elRef, ...(0, import_runtime92.trussProps)({
|
|
21974
21987
|
...!expanded ? {
|
|
21975
21988
|
WebkitLineClamp: ["lineClamp_var", {
|
|
21976
|
-
"--WebkitLineClamp": (0,
|
|
21989
|
+
"--WebkitLineClamp": (0, import_runtime92.maybeCssVar)(maxLines)
|
|
21977
21990
|
}],
|
|
21978
21991
|
overflow: "oh",
|
|
21979
21992
|
display: "d_negwebkit_box",
|
|
@@ -21996,7 +22009,7 @@ var import_react123 = require("react");
|
|
|
21996
22009
|
// src/components/AppNav/AppNavGroupTrigger.tsx
|
|
21997
22010
|
var import_react121 = require("react");
|
|
21998
22011
|
var import_react_aria52 = require("react-aria");
|
|
21999
|
-
var
|
|
22012
|
+
var import_runtime93 = require("@homebound/truss/runtime");
|
|
22000
22013
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
22001
22014
|
function AppNavGroupTrigger(props) {
|
|
22002
22015
|
const {
|
|
@@ -22032,7 +22045,7 @@ function AppNavGroupTrigger(props) {
|
|
|
22032
22045
|
ref,
|
|
22033
22046
|
"aria-expanded": expanded,
|
|
22034
22047
|
"aria-controls": navGroupId,
|
|
22035
|
-
...(0,
|
|
22048
|
+
...(0, import_runtime93.mergeProps)(navLink, void 0, {
|
|
22036
22049
|
...baseStyles5,
|
|
22037
22050
|
...isFocusVisible && focusRingStyles2,
|
|
22038
22051
|
...isHovered && hoverStyles4,
|
|
@@ -22040,7 +22053,7 @@ function AppNavGroupTrigger(props) {
|
|
|
22040
22053
|
})
|
|
22041
22054
|
}), children: [
|
|
22042
22055
|
label,
|
|
22043
|
-
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { ...(0,
|
|
22056
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { ...(0, import_runtime93.trussProps)({
|
|
22044
22057
|
...{
|
|
22045
22058
|
display: "df",
|
|
22046
22059
|
alignItems: "aic",
|
|
@@ -22193,7 +22206,7 @@ function useAppNavGroupExpanded(linkGroup) {
|
|
|
22193
22206
|
}
|
|
22194
22207
|
|
|
22195
22208
|
// src/components/AppNav/AppNavGroup.tsx
|
|
22196
|
-
var
|
|
22209
|
+
var import_runtime94 = require("@homebound/truss/runtime");
|
|
22197
22210
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
22198
22211
|
var __maybeInc18 = (inc) => {
|
|
22199
22212
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -22238,11 +22251,11 @@ function AppNavGroupDisclosure(props) {
|
|
|
22238
22251
|
});
|
|
22239
22252
|
return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "df fdc", ...tid, children: [
|
|
22240
22253
|
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)(AppNavGroupTrigger, { label: linkGroup.label, navGroupId, expanded, onClick: onToggle, ...tid }),
|
|
22241
|
-
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...(0,
|
|
22254
|
+
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...(0, import_runtime94.trussProps)({
|
|
22242
22255
|
overflow: "oh",
|
|
22243
22256
|
transition: "transitionHeight",
|
|
22244
22257
|
height: ["h_var", {
|
|
22245
|
-
"--height": (0,
|
|
22258
|
+
"--height": (0, import_runtime94.maybeCssVar)(__maybeInc18(contentHeight))
|
|
22246
22259
|
}]
|
|
22247
22260
|
}), ...tid.panel, children: /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { ref: setContentEl, className: "df fdc pl2", children: /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(AppNavItems, { items: linkGroup.items, panelCollapsed: false, ...tid }) }) })
|
|
22248
22261
|
] });
|
|
@@ -22270,7 +22283,7 @@ function AppNavGroupMenu({
|
|
|
22270
22283
|
}
|
|
22271
22284
|
|
|
22272
22285
|
// src/components/AppNav/AppNavSectionView.tsx
|
|
22273
|
-
var
|
|
22286
|
+
var import_runtime95 = require("@homebound/truss/runtime");
|
|
22274
22287
|
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
22275
22288
|
function AppNavSectionView(props) {
|
|
22276
22289
|
const {
|
|
@@ -22296,7 +22309,7 @@ function AppNavSectionView(props) {
|
|
|
22296
22309
|
"--borderColor": "var(--b-surface-separator)"
|
|
22297
22310
|
}]
|
|
22298
22311
|
};
|
|
22299
|
-
return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { ...(0,
|
|
22312
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { ...(0, import_runtime95.trussProps)({
|
|
22300
22313
|
...{
|
|
22301
22314
|
display: "df",
|
|
22302
22315
|
flexDirection: "fdc",
|
|
@@ -22304,7 +22317,7 @@ function AppNavSectionView(props) {
|
|
|
22304
22317
|
},
|
|
22305
22318
|
...showDivider ? dividerStyles : {}
|
|
22306
22319
|
}), ...tid, children: [
|
|
22307
|
-
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { ...(0,
|
|
22320
|
+
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { ...(0, import_runtime95.trussProps)({
|
|
22308
22321
|
fontWeight: "fw6",
|
|
22309
22322
|
fontSize: "fz_10px",
|
|
22310
22323
|
lineHeight: "lh_14px",
|
|
@@ -22372,7 +22385,7 @@ var import_react124 = require("react");
|
|
|
22372
22385
|
var import_react_aria53 = require("react-aria");
|
|
22373
22386
|
var import_react_dom6 = require("react-dom");
|
|
22374
22387
|
var import_react_router_dom5 = require("react-router-dom");
|
|
22375
|
-
var
|
|
22388
|
+
var import_runtime96 = require("@homebound/truss/runtime");
|
|
22376
22389
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
22377
22390
|
function NavbarMobileMenu(props) {
|
|
22378
22391
|
const {
|
|
@@ -22402,14 +22415,14 @@ function NavbarMobileDrawer({
|
|
|
22402
22415
|
tid
|
|
22403
22416
|
}) {
|
|
22404
22417
|
return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(import_jsx_runtime173.Fragment, { children: [
|
|
22405
|
-
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_framer_motion5.motion.div, { ...(0,
|
|
22418
|
+
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_framer_motion5.motion.div, { ...(0, import_runtime96.trussProps)({
|
|
22406
22419
|
position: "fixed",
|
|
22407
22420
|
top: "top0",
|
|
22408
22421
|
right: "right0",
|
|
22409
22422
|
bottom: "bottom0",
|
|
22410
22423
|
left: "left0",
|
|
22411
22424
|
zIndex: ["z_var", {
|
|
22412
|
-
"--zIndex": (0,
|
|
22425
|
+
"--zIndex": (0, import_runtime96.maybeCssVar)(zIndices.modalUnderlay)
|
|
22413
22426
|
}],
|
|
22414
22427
|
backgroundColor: "backgroundColor_rgba_36_36_36_0_2"
|
|
22415
22428
|
}), initial: {
|
|
@@ -22422,7 +22435,7 @@ function NavbarMobileDrawer({
|
|
|
22422
22435
|
ease: "linear",
|
|
22423
22436
|
duration: 0.2
|
|
22424
22437
|
}, onClick: onClose, ...tid.mobileMenuScrim }, "navbarMobileMenuScrim"),
|
|
22425
|
-
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_react_aria53.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(import_framer_motion5.motion.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...(0,
|
|
22438
|
+
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_react_aria53.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(import_framer_motion5.motion.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...(0, import_runtime96.trussProps)({
|
|
22426
22439
|
position: "fixed",
|
|
22427
22440
|
top: "top0",
|
|
22428
22441
|
bottom: "bottom0",
|
|
@@ -22433,7 +22446,7 @@ function NavbarMobileDrawer({
|
|
|
22433
22446
|
width: "w100",
|
|
22434
22447
|
overflow: "oh",
|
|
22435
22448
|
zIndex: ["z_var", {
|
|
22436
|
-
"--zIndex": (0,
|
|
22449
|
+
"--zIndex": (0, import_runtime96.maybeCssVar)(zIndices.sideNav)
|
|
22437
22450
|
}],
|
|
22438
22451
|
backgroundColor: ["bgColor_var", {
|
|
22439
22452
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -22467,7 +22480,7 @@ function NavbarMobileDrawer({
|
|
|
22467
22480
|
}
|
|
22468
22481
|
|
|
22469
22482
|
// src/components/Navbar/Navbar.tsx
|
|
22470
|
-
var
|
|
22483
|
+
var import_runtime97 = require("@homebound/truss/runtime");
|
|
22471
22484
|
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
22472
22485
|
function Navbar(props) {
|
|
22473
22486
|
const {
|
|
@@ -22487,7 +22500,7 @@ function Navbar(props) {
|
|
|
22487
22500
|
overflows
|
|
22488
22501
|
} = useContentOverflow(!sm);
|
|
22489
22502
|
const showMobile = sm || overflows;
|
|
22490
|
-
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(ContrastScope, { children: /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("nav", { ...(0,
|
|
22503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(ContrastScope, { children: /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("nav", { ...(0, import_runtime97.trussProps)({
|
|
22491
22504
|
backgroundColor: "bgGray800",
|
|
22492
22505
|
flexShrink: "fs0",
|
|
22493
22506
|
display: "df",
|
|
@@ -22507,7 +22520,7 @@ function Navbar(props) {
|
|
|
22507
22520
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "df aic gap3 fg1 mw0", children: [
|
|
22508
22521
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "df aic fs0 gap2", children: [
|
|
22509
22522
|
showMobile && /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(NavbarMobileMenu, { items, ...tid }),
|
|
22510
|
-
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0,
|
|
22523
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0, import_runtime97.trussProps)({
|
|
22511
22524
|
flexShrink: "fs0",
|
|
22512
22525
|
...hideBrandOnMobile && showMobile ? {
|
|
22513
22526
|
display: "dn"
|
|
@@ -22516,7 +22529,7 @@ function Navbar(props) {
|
|
|
22516
22529
|
] }),
|
|
22517
22530
|
!sm && // Stays mounted while overflowing (hidden) so the items remain measurable and the bar
|
|
22518
22531
|
// can expand again as space frees up.
|
|
22519
|
-
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ref: containerRef, ...(0,
|
|
22532
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ref: containerRef, ...(0, import_runtime97.trussProps)({
|
|
22520
22533
|
display: "df",
|
|
22521
22534
|
alignItems: "aic",
|
|
22522
22535
|
flexGrow: "fg1",
|
|
@@ -22551,7 +22564,7 @@ var import_react125 = require("react");
|
|
|
22551
22564
|
var import_react_aria54 = require("react-aria");
|
|
22552
22565
|
var import_react_router = require("react-router");
|
|
22553
22566
|
var import_react_router_dom6 = require("react-router-dom");
|
|
22554
|
-
var
|
|
22567
|
+
var import_runtime98 = require("@homebound/truss/runtime");
|
|
22555
22568
|
var import_jsx_runtime175 = require("react/jsx-runtime");
|
|
22556
22569
|
function TabsWithContent(props) {
|
|
22557
22570
|
const styles = hideTabs(props) ? {} : {
|
|
@@ -22584,7 +22597,7 @@ function TabContent(props) {
|
|
|
22584
22597
|
return (
|
|
22585
22598
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
22586
22599
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
22587
|
-
/* @__PURE__ */ (0, import_jsx_runtime175.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0,
|
|
22600
|
+
/* @__PURE__ */ (0, import_jsx_runtime175.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0, import_runtime98.trussProps)(contentXss), children: selectedTab.render() }) })
|
|
22588
22601
|
);
|
|
22589
22602
|
}
|
|
22590
22603
|
function Tabs(props) {
|
|
@@ -22626,7 +22639,7 @@ function Tabs(props) {
|
|
|
22626
22639
|
setActive(selected);
|
|
22627
22640
|
}
|
|
22628
22641
|
}
|
|
22629
|
-
return /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("div", { ...(0,
|
|
22642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("div", { ...(0, import_runtime98.trussProps)({
|
|
22630
22643
|
...{
|
|
22631
22644
|
display: "df",
|
|
22632
22645
|
alignItems: "aic",
|
|
@@ -22690,7 +22703,7 @@ function TabImpl(props) {
|
|
|
22690
22703
|
role: "tab",
|
|
22691
22704
|
tabIndex: active ? 0 : -1,
|
|
22692
22705
|
...others,
|
|
22693
|
-
...(0,
|
|
22706
|
+
...(0, import_runtime98.trussProps)({
|
|
22694
22707
|
...baseStyles5,
|
|
22695
22708
|
...active && activeStyles3,
|
|
22696
22709
|
...isDisabled && disabledStyles4,
|
|
@@ -22727,7 +22740,7 @@ function getTabStyles() {
|
|
|
22727
22740
|
const borderBottomStyles = {
|
|
22728
22741
|
borderBottomStyle: "bbs_solid",
|
|
22729
22742
|
borderBottomWidth: ["borderBottomWidth_var", {
|
|
22730
|
-
"--borderBottomWidth": (0,
|
|
22743
|
+
"--borderBottomWidth": (0, import_runtime98.maybeCssVar)(`${borderBottomWidthPx}px`)
|
|
22731
22744
|
}],
|
|
22732
22745
|
paddingBottom: ["pb_var", {
|
|
22733
22746
|
"--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
|
|
@@ -22811,7 +22824,7 @@ function hideTabs(props) {
|
|
|
22811
22824
|
}
|
|
22812
22825
|
|
|
22813
22826
|
// src/components/PageHeader.tsx
|
|
22814
|
-
var
|
|
22827
|
+
var import_runtime99 = require("@homebound/truss/runtime");
|
|
22815
22828
|
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
22816
22829
|
function PageHeader2(props) {
|
|
22817
22830
|
const {
|
|
@@ -22821,7 +22834,7 @@ function PageHeader2(props) {
|
|
|
22821
22834
|
...otherProps
|
|
22822
22835
|
} = props;
|
|
22823
22836
|
const tid = useTestIds(otherProps, "pageHeader");
|
|
22824
|
-
return /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)("header", { ...tid, ...(0,
|
|
22837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)("header", { ...tid, ...(0, import_runtime99.trussProps)({
|
|
22825
22838
|
display: "df",
|
|
22826
22839
|
flexDirection: "fdc",
|
|
22827
22840
|
paddingTop: "pt3",
|
|
@@ -22847,7 +22860,7 @@ function PageHeader2(props) {
|
|
|
22847
22860
|
// src/components/ScrollShadows.tsx
|
|
22848
22861
|
var import_utils142 = require("@react-aria/utils");
|
|
22849
22862
|
var import_react126 = require("react");
|
|
22850
|
-
var
|
|
22863
|
+
var import_runtime100 = require("@homebound/truss/runtime");
|
|
22851
22864
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
22852
22865
|
function ScrollShadows(props) {
|
|
22853
22866
|
const {
|
|
@@ -22872,7 +22885,7 @@ function ScrollShadows(props) {
|
|
|
22872
22885
|
const commonStyles = {
|
|
22873
22886
|
position: "absolute",
|
|
22874
22887
|
zIndex: ["z_var", {
|
|
22875
|
-
"--zIndex": (0,
|
|
22888
|
+
"--zIndex": (0, import_runtime100.maybeCssVar)(zIndices.scrollShadow)
|
|
22876
22889
|
}],
|
|
22877
22890
|
pointerEvents: "pointerEvents_none"
|
|
22878
22891
|
};
|
|
@@ -22905,7 +22918,7 @@ function ScrollShadows(props) {
|
|
|
22905
22918
|
...startShadowStyles2,
|
|
22906
22919
|
...{
|
|
22907
22920
|
background: ["background_var", {
|
|
22908
|
-
"--background": (0,
|
|
22921
|
+
"--background": (0, import_runtime100.maybeCssVar)(startGradient)
|
|
22909
22922
|
}]
|
|
22910
22923
|
}
|
|
22911
22924
|
}, {
|
|
@@ -22913,7 +22926,7 @@ function ScrollShadows(props) {
|
|
|
22913
22926
|
...endShadowStyles2,
|
|
22914
22927
|
...{
|
|
22915
22928
|
background: ["background_var", {
|
|
22916
|
-
"--background": (0,
|
|
22929
|
+
"--background": (0, import_runtime100.maybeCssVar)(endGradient)
|
|
22917
22930
|
}]
|
|
22918
22931
|
}
|
|
22919
22932
|
}];
|
|
@@ -22938,10 +22951,10 @@ function ScrollShadows(props) {
|
|
|
22938
22951
|
ref: scrollRef,
|
|
22939
22952
|
onResize
|
|
22940
22953
|
});
|
|
22941
|
-
return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { ...(0,
|
|
22954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { ...(0, import_runtime100.trussProps)({
|
|
22942
22955
|
display: "df",
|
|
22943
22956
|
flexDirection: ["fd_var", {
|
|
22944
|
-
"--flexDirection": (0,
|
|
22957
|
+
"--flexDirection": (0, import_runtime100.maybeCssVar)(!horizontal ? "column" : "row")
|
|
22945
22958
|
}],
|
|
22946
22959
|
position: "relative",
|
|
22947
22960
|
overflow: "oh",
|
|
@@ -22954,23 +22967,23 @@ function ScrollShadows(props) {
|
|
|
22954
22967
|
width: width2
|
|
22955
22968
|
}
|
|
22956
22969
|
}), ...tid, children: [
|
|
22957
|
-
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0,
|
|
22970
|
+
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0, import_runtime100.trussProps)({
|
|
22958
22971
|
...startShadowStyles,
|
|
22959
22972
|
...{
|
|
22960
22973
|
opacity: ["o_var", {
|
|
22961
|
-
"--opacity": (0,
|
|
22974
|
+
"--opacity": (0, import_runtime100.maybeCssVar)(showStartShadow ? 1 : 0)
|
|
22962
22975
|
}]
|
|
22963
22976
|
}
|
|
22964
22977
|
}), "data-chromatic": "ignore" }),
|
|
22965
|
-
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0,
|
|
22978
|
+
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0, import_runtime100.trussProps)({
|
|
22966
22979
|
...endShadowStyles,
|
|
22967
22980
|
...{
|
|
22968
22981
|
opacity: ["o_var", {
|
|
22969
|
-
"--opacity": (0,
|
|
22982
|
+
"--opacity": (0, import_runtime100.maybeCssVar)(showEndShadow ? 1 : 0)
|
|
22970
22983
|
}]
|
|
22971
22984
|
}
|
|
22972
22985
|
}), "data-chromatic": "ignore" }),
|
|
22973
|
-
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0,
|
|
22986
|
+
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0, import_runtime100.trussProps)({
|
|
22974
22987
|
...xss,
|
|
22975
22988
|
...{
|
|
22976
22989
|
overflow: "oa",
|
|
@@ -23042,7 +23055,7 @@ function useHasSideNavLayoutProvider() {
|
|
|
23042
23055
|
}
|
|
23043
23056
|
|
|
23044
23057
|
// src/components/SideNav/SideNav.tsx
|
|
23045
|
-
var
|
|
23058
|
+
var import_runtime101 = require("@homebound/truss/runtime");
|
|
23046
23059
|
var import_jsx_runtime179 = require("react/jsx-runtime");
|
|
23047
23060
|
function SideNav(props) {
|
|
23048
23061
|
const {
|
|
@@ -23057,7 +23070,7 @@ function SideNav(props) {
|
|
|
23057
23070
|
const panelCollapsed = navState === "collapse";
|
|
23058
23071
|
const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
|
|
23059
23072
|
return /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("nav", { className: "df fdc h100 fs0", ...tid, children: [
|
|
23060
|
-
top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0,
|
|
23073
|
+
top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0, import_runtime101.trussProps)({
|
|
23061
23074
|
flexShrink: "fs0",
|
|
23062
23075
|
paddingLeft: "pl2",
|
|
23063
23076
|
paddingRight: "pr2",
|
|
@@ -23068,7 +23081,7 @@ function SideNav(props) {
|
|
|
23068
23081
|
paddingBottom: "pb4"
|
|
23069
23082
|
} : {}
|
|
23070
23083
|
}), ...tid.top, children: top }),
|
|
23071
|
-
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0,
|
|
23084
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0, import_runtime101.trussProps)({
|
|
23072
23085
|
flexGrow: "fg1",
|
|
23073
23086
|
overflowY: "oya",
|
|
23074
23087
|
display: "df",
|
|
@@ -23081,7 +23094,7 @@ function SideNav(props) {
|
|
|
23081
23094
|
paddingTop: "pt5"
|
|
23082
23095
|
} : {}
|
|
23083
23096
|
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(AppNavItems, { items, panelCollapsed }) }),
|
|
23084
|
-
footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0,
|
|
23097
|
+
footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0, import_runtime101.trussProps)({
|
|
23085
23098
|
flexShrink: "fs0",
|
|
23086
23099
|
paddingLeft: "pl2",
|
|
23087
23100
|
paddingRight: "pr2",
|
|
@@ -23158,7 +23171,7 @@ var snackbarId = 1;
|
|
|
23158
23171
|
// src/components/Stepper.tsx
|
|
23159
23172
|
var import_react129 = require("react");
|
|
23160
23173
|
var import_react_aria55 = require("react-aria");
|
|
23161
|
-
var
|
|
23174
|
+
var import_runtime102 = require("@homebound/truss/runtime");
|
|
23162
23175
|
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
23163
23176
|
var import_react130 = require("react");
|
|
23164
23177
|
var __maybeInc19 = (inc) => {
|
|
@@ -23179,7 +23192,7 @@ function Stepper(props) {
|
|
|
23179
23192
|
const minStepWidth = 100;
|
|
23180
23193
|
const gap = 8;
|
|
23181
23194
|
return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
23182
|
-
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("ol", { ...(0,
|
|
23195
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("ol", { ...(0, import_runtime102.trussProps)({
|
|
23183
23196
|
padding: "p_0",
|
|
23184
23197
|
margin: "m_0",
|
|
23185
23198
|
listStyle: "lis_none",
|
|
@@ -23189,7 +23202,7 @@ function Stepper(props) {
|
|
|
23189
23202
|
}]
|
|
23190
23203
|
}), children: steps.map((step) => {
|
|
23191
23204
|
const isCurrent = currentStep === step.value;
|
|
23192
|
-
return /* @__PURE__ */ (0, import_react130.createElement)("li", { ...(0,
|
|
23205
|
+
return /* @__PURE__ */ (0, import_react130.createElement)("li", { ...(0, import_runtime102.trussProps)({
|
|
23193
23206
|
display: "df",
|
|
23194
23207
|
flexGrow: "fg1",
|
|
23195
23208
|
flexDirection: "fdc",
|
|
@@ -23201,7 +23214,7 @@ function Stepper(props) {
|
|
|
23201
23214
|
}]
|
|
23202
23215
|
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
23203
23216
|
}) }),
|
|
23204
|
-
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...(0,
|
|
23217
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...(0, import_runtime102.trussProps)({
|
|
23205
23218
|
marginTop: "mt1",
|
|
23206
23219
|
backgroundColor: "bgGray300",
|
|
23207
23220
|
height: "h_4px",
|
|
@@ -23212,12 +23225,12 @@ function Stepper(props) {
|
|
|
23212
23225
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
23213
23226
|
}],
|
|
23214
23227
|
width: "w100"
|
|
23215
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...(0,
|
|
23228
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...(0, import_runtime102.trussProps)({
|
|
23216
23229
|
backgroundColor: "bgBlue600",
|
|
23217
23230
|
transition: "transition_width_200ms",
|
|
23218
23231
|
height: "h100",
|
|
23219
23232
|
width: ["w_var", {
|
|
23220
|
-
"--width": (0,
|
|
23233
|
+
"--width": (0, import_runtime102.maybeCssVar)(__maybeInc19(`${(lastCompletedStep + 1) / steps.length * 100}%`))
|
|
23221
23234
|
}]
|
|
23222
23235
|
}) }) })
|
|
23223
23236
|
] });
|
|
@@ -23253,7 +23266,7 @@ function StepButton(props) {
|
|
|
23253
23266
|
boxShadow: "bshFocus"
|
|
23254
23267
|
};
|
|
23255
23268
|
const tid = useTestIds(props, "stepButton");
|
|
23256
|
-
return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
23269
|
+
return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime102.trussProps)({
|
|
23257
23270
|
...{
|
|
23258
23271
|
fontWeight: "fw6",
|
|
23259
23272
|
fontSize: "fz_14px",
|
|
@@ -23321,7 +23334,7 @@ function StepIcon({
|
|
|
23321
23334
|
if (state === "complete") {
|
|
23322
23335
|
return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(Icon, { icon: "check" });
|
|
23323
23336
|
}
|
|
23324
|
-
return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...(0,
|
|
23337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...(0, import_runtime102.trussProps)({
|
|
23325
23338
|
width: "w_10px",
|
|
23326
23339
|
height: "h_10px",
|
|
23327
23340
|
borderStyle: "bss",
|
|
@@ -23336,7 +23349,7 @@ function StepIcon({
|
|
|
23336
23349
|
|
|
23337
23350
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
23338
23351
|
var import_react_dom7 = require("react-dom");
|
|
23339
|
-
var
|
|
23352
|
+
var import_runtime103 = require("@homebound/truss/runtime");
|
|
23340
23353
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
23341
23354
|
function SuperDrawerHeader(props) {
|
|
23342
23355
|
const {
|
|
@@ -23362,7 +23375,7 @@ function SuperDrawerHeader(props) {
|
|
|
23362
23375
|
] }),
|
|
23363
23376
|
props.right && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: "fs0", children: props.right })
|
|
23364
23377
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: "fg1", children: props.children }),
|
|
23365
|
-
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { ...(0,
|
|
23378
|
+
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { ...(0, import_runtime103.trussProps)({
|
|
23366
23379
|
flexShrink: "fs0",
|
|
23367
23380
|
...isDetail ? {
|
|
23368
23381
|
visibility: "vh"
|
|
@@ -23542,7 +23555,7 @@ function canClose(canCloseCheck) {
|
|
|
23542
23555
|
}
|
|
23543
23556
|
|
|
23544
23557
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
23545
|
-
var
|
|
23558
|
+
var import_runtime104 = require("@homebound/truss/runtime");
|
|
23546
23559
|
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
23547
23560
|
var SuperDrawerContent = ({
|
|
23548
23561
|
children,
|
|
@@ -23591,7 +23604,7 @@ var SuperDrawerContent = ({
|
|
|
23591
23604
|
}, className: "pt2", children: children2 })
|
|
23592
23605
|
] }, "content");
|
|
23593
23606
|
} else {
|
|
23594
|
-
return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(import_framer_motion6.motion.div, { ...(0,
|
|
23607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(import_framer_motion6.motion.div, { ...(0, import_runtime104.mergeProps)(void 0, {
|
|
23595
23608
|
overflow: "auto"
|
|
23596
23609
|
}, {
|
|
23597
23610
|
paddingTop: "pt3",
|
|
@@ -23635,7 +23648,7 @@ function useToast() {
|
|
|
23635
23648
|
}
|
|
23636
23649
|
|
|
23637
23650
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
23638
|
-
var
|
|
23651
|
+
var import_runtime105 = require("@homebound/truss/runtime");
|
|
23639
23652
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
23640
23653
|
var __maybeInc20 = (inc) => {
|
|
23641
23654
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -23665,7 +23678,7 @@ function SideNavLayoutContent(props) {
|
|
|
23665
23678
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
23666
23679
|
const navTop = `var(${beamNavbarLayoutHeightVar}, 0px)`;
|
|
23667
23680
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
23668
|
-
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { ...(0,
|
|
23681
|
+
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { ...(0, import_runtime105.trussProps)({
|
|
23669
23682
|
...{
|
|
23670
23683
|
display: "df",
|
|
23671
23684
|
flexDirection: "fdc",
|
|
@@ -23689,14 +23702,14 @@ function SideNavLayoutContent(props) {
|
|
|
23689
23702
|
position: "sticky",
|
|
23690
23703
|
left: "left0",
|
|
23691
23704
|
zIndex: ["z_var", {
|
|
23692
|
-
"--zIndex": (0,
|
|
23705
|
+
"--zIndex": (0, import_runtime105.maybeCssVar)(zIndices.sideNav)
|
|
23693
23706
|
}],
|
|
23694
23707
|
top: ["top_var", {
|
|
23695
|
-
"--top": (0,
|
|
23708
|
+
"--top": (0, import_runtime105.maybeCssVar)(__maybeInc20(navTop))
|
|
23696
23709
|
}],
|
|
23697
23710
|
alignSelf: "asfs",
|
|
23698
23711
|
height: ["h_var", {
|
|
23699
|
-
"--height": (0,
|
|
23712
|
+
"--height": (0, import_runtime105.maybeCssVar)(__maybeInc20(railViewportHeight))
|
|
23700
23713
|
}],
|
|
23701
23714
|
width: ["w_var", {
|
|
23702
23715
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -23706,11 +23719,11 @@ function SideNavLayoutContent(props) {
|
|
|
23706
23719
|
position: "fixed",
|
|
23707
23720
|
left: "left0",
|
|
23708
23721
|
top: ["top_var", {
|
|
23709
|
-
"--top": (0,
|
|
23722
|
+
"--top": (0, import_runtime105.maybeCssVar)(__maybeInc20(navTop))
|
|
23710
23723
|
}],
|
|
23711
23724
|
bottom: "bottom0",
|
|
23712
23725
|
zIndex: ["z_var", {
|
|
23713
|
-
"--zIndex": (0,
|
|
23726
|
+
"--zIndex": (0, import_runtime105.maybeCssVar)(zIndices.sideNav)
|
|
23714
23727
|
}]
|
|
23715
23728
|
},
|
|
23716
23729
|
...collapsed ? {
|
|
@@ -23725,7 +23738,7 @@ function SideNavLayoutContent(props) {
|
|
|
23725
23738
|
showCollapseToggle && /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { className: "absolute right2 top2 z2", children: /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
|
|
23726
23739
|
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(SideNav, { ...sideNav }) })
|
|
23727
23740
|
] });
|
|
23728
|
-
return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { ...(0,
|
|
23741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { ...(0, import_runtime105.mergeProps)(void 0, {
|
|
23729
23742
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
23730
23743
|
}, {
|
|
23731
23744
|
display: "df",
|
|
@@ -23733,7 +23746,7 @@ function SideNavLayoutContent(props) {
|
|
|
23733
23746
|
width: "w100"
|
|
23734
23747
|
}), ...tid, children: [
|
|
23735
23748
|
contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(ContrastScope, { children: rail }) : rail,
|
|
23736
|
-
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { ...(0,
|
|
23749
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { ...(0, import_runtime105.trussProps)({
|
|
23737
23750
|
display: "df",
|
|
23738
23751
|
flexDirection: "fdc",
|
|
23739
23752
|
flexGrow: "fg1",
|
|
@@ -23750,7 +23763,7 @@ function SideNavLayoutContent(props) {
|
|
|
23750
23763
|
|
|
23751
23764
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
23752
23765
|
var import_react136 = require("react");
|
|
23753
|
-
var
|
|
23766
|
+
var import_runtime106 = require("@homebound/truss/runtime");
|
|
23754
23767
|
|
|
23755
23768
|
// src/layouts/useAutoHideOnScroll.ts
|
|
23756
23769
|
var import_react133 = require("react");
|
|
@@ -23900,10 +23913,10 @@ function NavbarLayout(props) {
|
|
|
23900
23913
|
position: "sticky",
|
|
23901
23914
|
left: "left0",
|
|
23902
23915
|
zIndex: ["z_var", {
|
|
23903
|
-
"--zIndex": (0,
|
|
23916
|
+
"--zIndex": (0, import_runtime106.maybeCssVar)(zIndices.navbar)
|
|
23904
23917
|
}],
|
|
23905
23918
|
width: ["w_var", {
|
|
23906
|
-
"--width": (0,
|
|
23919
|
+
"--width": (0, import_runtime106.maybeCssVar)(__maybeInc21(innerWidth))
|
|
23907
23920
|
}]
|
|
23908
23921
|
}
|
|
23909
23922
|
) : (
|
|
@@ -23912,10 +23925,10 @@ function NavbarLayout(props) {
|
|
|
23912
23925
|
position: "fixed",
|
|
23913
23926
|
left: "left0",
|
|
23914
23927
|
zIndex: ["z_var", {
|
|
23915
|
-
"--zIndex": (0,
|
|
23928
|
+
"--zIndex": (0, import_runtime106.maybeCssVar)(zIndices.navbar)
|
|
23916
23929
|
}],
|
|
23917
23930
|
width: ["w_var", {
|
|
23918
|
-
"--width": (0,
|
|
23931
|
+
"--width": (0, import_runtime106.maybeCssVar)(__maybeInc21(innerWidth))
|
|
23919
23932
|
}],
|
|
23920
23933
|
transition: "transitionTop"
|
|
23921
23934
|
}
|
|
@@ -23924,25 +23937,25 @@ function NavbarLayout(props) {
|
|
|
23924
23937
|
top: autoHideState === "revealed" ? 0 : -navHeight
|
|
23925
23938
|
} : void 0;
|
|
23926
23939
|
const navbarEl = (0, import_react136.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(Navbar, { ...navbar }), [navbar]);
|
|
23927
|
-
return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)("div", { ...(0,
|
|
23940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)("div", { ...(0, import_runtime106.mergeProps)(void 0, cssVars, {
|
|
23928
23941
|
display: "df",
|
|
23929
23942
|
flexDirection: "fdc",
|
|
23930
23943
|
width: "wfc",
|
|
23931
23944
|
minWidth: "mw100"
|
|
23932
23945
|
}), ...tid, children: [
|
|
23933
|
-
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ref: spacerRef, ...(0,
|
|
23946
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ref: spacerRef, ...(0, import_runtime106.mergeProps)(void 0, {
|
|
23934
23947
|
height: navHeight
|
|
23935
23948
|
}, {
|
|
23936
23949
|
flexShrink: "fs0",
|
|
23937
23950
|
width: "w100"
|
|
23938
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ref: navMetricsRef, ...(0,
|
|
23951
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ref: navMetricsRef, ...(0, import_runtime106.mergeProps)(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
23939
23952
|
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
23940
23953
|
] }) }) });
|
|
23941
23954
|
}
|
|
23942
23955
|
|
|
23943
23956
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
23944
23957
|
var import_react137 = require("react");
|
|
23945
|
-
var
|
|
23958
|
+
var import_runtime107 = require("@homebound/truss/runtime");
|
|
23946
23959
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
23947
23960
|
var __maybeInc22 = (inc) => {
|
|
23948
23961
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -23974,24 +23987,24 @@ function PageHeaderLayout(props) {
|
|
|
23974
23987
|
const innerCss = autoHideState === "static" ? {
|
|
23975
23988
|
position: "sticky",
|
|
23976
23989
|
left: ["left_var", {
|
|
23977
|
-
"--left": (0,
|
|
23990
|
+
"--left": (0, import_runtime107.maybeCssVar)(__maybeInc22(headerLeft))
|
|
23978
23991
|
}],
|
|
23979
23992
|
width: ["w_var", {
|
|
23980
|
-
"--width": (0,
|
|
23993
|
+
"--width": (0, import_runtime107.maybeCssVar)(__maybeInc22(headerWidth))
|
|
23981
23994
|
}],
|
|
23982
23995
|
zIndex: ["z_var", {
|
|
23983
|
-
"--zIndex": (0,
|
|
23996
|
+
"--zIndex": (0, import_runtime107.maybeCssVar)(zIndices.pageStickyHeader)
|
|
23984
23997
|
}]
|
|
23985
23998
|
} : {
|
|
23986
23999
|
position: "fixed",
|
|
23987
24000
|
left: ["left_var", {
|
|
23988
|
-
"--left": (0,
|
|
24001
|
+
"--left": (0, import_runtime107.maybeCssVar)(__maybeInc22(headerLeft))
|
|
23989
24002
|
}],
|
|
23990
24003
|
width: ["w_var", {
|
|
23991
|
-
"--width": (0,
|
|
24004
|
+
"--width": (0, import_runtime107.maybeCssVar)(__maybeInc22(headerWidth))
|
|
23992
24005
|
}],
|
|
23993
24006
|
zIndex: ["z_var", {
|
|
23994
|
-
"--zIndex": (0,
|
|
24007
|
+
"--zIndex": (0, import_runtime107.maybeCssVar)(zIndices.pageStickyHeader)
|
|
23995
24008
|
}],
|
|
23996
24009
|
transition: "transitionTop"
|
|
23997
24010
|
};
|
|
@@ -23999,17 +24012,17 @@ function PageHeaderLayout(props) {
|
|
|
23999
24012
|
top: autoHideState === "revealed" ? outerTop : `calc(${outerTop} - ${headerHeight}px)`
|
|
24000
24013
|
} : void 0;
|
|
24001
24014
|
const pageHeaderEl = (0, import_react137.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
24002
|
-
return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)("div", { ...(0,
|
|
24015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)("div", { ...(0, import_runtime107.mergeProps)(void 0, cssVars, {
|
|
24003
24016
|
display: "df",
|
|
24004
24017
|
flexDirection: "fdc",
|
|
24005
24018
|
width: "w100"
|
|
24006
24019
|
}), ...tid, children: [
|
|
24007
|
-
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { ref: spacerRef, ...(0,
|
|
24020
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { ref: spacerRef, ...(0, import_runtime107.mergeProps)(void 0, {
|
|
24008
24021
|
height: headerHeight
|
|
24009
24022
|
}, {
|
|
24010
24023
|
flexShrink: "fs0",
|
|
24011
24024
|
width: "w100"
|
|
24012
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { ref: headerMetricsRef, ...(0,
|
|
24025
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime107.mergeProps)(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
24013
24026
|
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
|
|
24014
24027
|
] }) });
|
|
24015
24028
|
}
|