@homebound/beam 3.20.0 → 3.20.1
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 +172 -151
- 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 +115 -94
- package/dist/index.js.map +1 -1
- package/dist/truss.css +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -20189,13 +20189,13 @@ function toPageNumberSize(page) {
|
|
|
20189
20189
|
var import_react100 = require("react");
|
|
20190
20190
|
var import_react_aria45 = require("react-aria");
|
|
20191
20191
|
var import_react_stately17 = require("react-stately");
|
|
20192
|
+
var import_runtime76 = require("@homebound/truss/runtime");
|
|
20192
20193
|
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
20193
20194
|
function EditColumnsButton(props) {
|
|
20194
20195
|
const {
|
|
20195
20196
|
defaultOpen,
|
|
20196
20197
|
disabled,
|
|
20197
20198
|
columns,
|
|
20198
|
-
trigger,
|
|
20199
20199
|
api
|
|
20200
20200
|
} = props;
|
|
20201
20201
|
const state = (0, import_react_stately17.useMenuTriggerState)({
|
|
@@ -20207,7 +20207,7 @@ function EditColumnsButton(props) {
|
|
|
20207
20207
|
} = (0, import_react_aria45.useMenuTrigger)({
|
|
20208
20208
|
isDisabled: !!disabled
|
|
20209
20209
|
}, state, buttonRef);
|
|
20210
|
-
const tid = useTestIds(props,
|
|
20210
|
+
const tid = useTestIds(props, "kanban");
|
|
20211
20211
|
const {
|
|
20212
20212
|
sm
|
|
20213
20213
|
} = useBreakpoint();
|
|
@@ -20226,12 +20226,38 @@ function EditColumnsButton(props) {
|
|
|
20226
20226
|
api.resetColumnWidths();
|
|
20227
20227
|
api.setVisibleColumns(columns.filter((column2) => column2.canHide ? ids.includes(column2.id) : true).map((c) => c.id));
|
|
20228
20228
|
}, [columns, api]);
|
|
20229
|
-
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(OverlayTrigger, { ...props,
|
|
20230
|
-
|
|
20229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(OverlayTrigger, { ...props, trigger: {
|
|
20230
|
+
icon: "kanban",
|
|
20231
|
+
size: "md",
|
|
20232
|
+
label: "",
|
|
20233
|
+
variant: "secondaryBlack"
|
|
20234
|
+
}, menuTriggerProps, state, buttonRef, hideEndAdornment: sm, ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", { ...(0, import_runtime76.trussProps)({
|
|
20235
|
+
display: "df",
|
|
20236
|
+
flexDirection: "fdc",
|
|
20237
|
+
backgroundColor: ["bgColor_var", {
|
|
20238
|
+
"--backgroundColor": "var(--b-surface)"
|
|
20239
|
+
}],
|
|
20240
|
+
maxWidth: "maxw_326px",
|
|
20241
|
+
maxHeight: "maxh_512px",
|
|
20242
|
+
boxShadow: "h_bshHover"
|
|
20243
|
+
}), children: [
|
|
20244
|
+
/* @__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
20245
|
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { className: "fw4 fz_14px lh_20px wsnw oh to_ellipsis pr1", children: option.label }),
|
|
20232
20246
|
/* @__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", {
|
|
20247
|
+
] }, option.value)) }),
|
|
20248
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)("div", { ...(0, import_runtime76.trussProps)({
|
|
20249
|
+
display: "df",
|
|
20250
|
+
justifyContent: "jcc",
|
|
20251
|
+
paddingTop: "pt2",
|
|
20252
|
+
paddingBottom: "pb2",
|
|
20253
|
+
paddingRight: "pr2",
|
|
20254
|
+
paddingLeft: "pl2",
|
|
20255
|
+
borderTopStyle: "bts_solid",
|
|
20256
|
+
borderTopWidth: "btw_1px",
|
|
20257
|
+
borderColor: ["bc_var", {
|
|
20258
|
+
"--borderColor": "var(--b-on-surface-muted)"
|
|
20259
|
+
}]
|
|
20260
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(Button, { variant: "tertiary", label: "Reset Column Widths", onClick: () => api.resetColumnWidths() }) })
|
|
20235
20261
|
] }) });
|
|
20236
20262
|
}
|
|
20237
20263
|
|
|
@@ -20257,7 +20283,7 @@ function ViewToggleButton({ view, onChange, defaultOpen }) {
|
|
|
20257
20283
|
}
|
|
20258
20284
|
|
|
20259
20285
|
// src/components/Table/TableActions.tsx
|
|
20260
|
-
var
|
|
20286
|
+
var import_runtime77 = require("@homebound/truss/runtime");
|
|
20261
20287
|
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
20262
20288
|
function TableActions(props) {
|
|
20263
20289
|
const {
|
|
@@ -20265,7 +20291,7 @@ function TableActions(props) {
|
|
|
20265
20291
|
children,
|
|
20266
20292
|
right
|
|
20267
20293
|
} = props;
|
|
20268
|
-
return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", { ...(0,
|
|
20294
|
+
return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", { ...(0, import_runtime77.trussProps)({
|
|
20269
20295
|
...{
|
|
20270
20296
|
display: "df",
|
|
20271
20297
|
gap: "gap1",
|
|
@@ -20289,7 +20315,7 @@ function isGridTableProps(props) {
|
|
|
20289
20315
|
var import_react101 = require("react");
|
|
20290
20316
|
|
|
20291
20317
|
// src/components/LoadingSkeleton.tsx
|
|
20292
|
-
var
|
|
20318
|
+
var import_runtime78 = require("@homebound/truss/runtime");
|
|
20293
20319
|
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
20294
20320
|
function LoadingSkeleton({
|
|
20295
20321
|
rows = 1,
|
|
@@ -20302,18 +20328,18 @@ function LoadingSkeleton({
|
|
|
20302
20328
|
const rowHeight = sizeToPixels2[size];
|
|
20303
20329
|
const rowCells = (rowNumber) => {
|
|
20304
20330
|
const flexGrowForCell = randomizeWidths ? getRandomizedFlexBasisByRowIndex(rowNumber) : 1;
|
|
20305
|
-
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { ...(0,
|
|
20331
|
+
return cellArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { ...(0, import_runtime78.trussProps)({
|
|
20306
20332
|
borderRadius: "br4",
|
|
20307
20333
|
animation: "animation_pulse_2s_cubic_bezier_0_4_0_0_6_1_infinite",
|
|
20308
20334
|
flexGrow: ["flexGrow_var", {
|
|
20309
|
-
"--flexGrow": (0,
|
|
20335
|
+
"--flexGrow": (0, import_runtime78.maybeCssVar)(flexGrowForCell)
|
|
20310
20336
|
}],
|
|
20311
20337
|
backgroundColor: ["bgColor_var", {
|
|
20312
20338
|
"--backgroundColor": "var(--b-loader-fill)"
|
|
20313
20339
|
}]
|
|
20314
20340
|
}) }, `row-${rowNumber}-cell-${i}`));
|
|
20315
20341
|
};
|
|
20316
|
-
return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { ...(0,
|
|
20342
|
+
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
20343
|
display: "df",
|
|
20318
20344
|
gap: "gap1",
|
|
20319
20345
|
marginBottom: "mb1",
|
|
@@ -20387,7 +20413,7 @@ function parseStoredTableView(raw) {
|
|
|
20387
20413
|
}
|
|
20388
20414
|
|
|
20389
20415
|
// src/components/Layout/GridTableLayout/GridTableLayout.tsx
|
|
20390
|
-
var
|
|
20416
|
+
var import_runtime79 = require("@homebound/truss/runtime");
|
|
20391
20417
|
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
20392
20418
|
var __maybeInc14 = (inc) => {
|
|
20393
20419
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -20431,12 +20457,7 @@ function GridTableLayoutComponent(props) {
|
|
|
20431
20457
|
}, [visibleColumnIds, layoutState]);
|
|
20432
20458
|
const visibleColumnsStorageKey = layoutState?.persistedColumnsStorageKey;
|
|
20433
20459
|
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 }),
|
|
20460
|
+
hasHideableColumns && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(EditColumnsButton, { columns, api, tooltip: "Display columns", ...tid.editColumnsButton }),
|
|
20440
20461
|
withCardView && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(ViewToggleButton, { view, onChange: setView })
|
|
20441
20462
|
] }), xss: {
|
|
20442
20463
|
paddingTop: "pt3",
|
|
@@ -20456,21 +20477,21 @@ function GridTableLayoutComponent(props) {
|
|
|
20456
20477
|
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
20478
|
] });
|
|
20458
20479
|
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,
|
|
20480
|
+
showTableActions && /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("div", { ref: tableActionsRef, ...(0, import_runtime79.trussProps)({
|
|
20460
20481
|
...inDocumentScrollLayout ? {
|
|
20461
20482
|
transition: "transitionTop",
|
|
20462
20483
|
position: "sticky",
|
|
20463
20484
|
top: ["top_var", {
|
|
20464
|
-
"--top": (0,
|
|
20485
|
+
"--top": (0, import_runtime79.maybeCssVar)(__maybeInc14(stickyNavAndHeaderOffset()))
|
|
20465
20486
|
}],
|
|
20466
20487
|
left: ["left_var", {
|
|
20467
|
-
"--left": (0,
|
|
20488
|
+
"--left": (0, import_runtime79.maybeCssVar)(__maybeInc14(documentScrollChromeLeft()))
|
|
20468
20489
|
}],
|
|
20469
20490
|
width: ["w_var", {
|
|
20470
|
-
"--width": (0,
|
|
20491
|
+
"--width": (0, import_runtime79.maybeCssVar)(__maybeInc14(documentScrollChromeWidth()))
|
|
20471
20492
|
}],
|
|
20472
20493
|
zIndex: ["z_var", {
|
|
20473
|
-
"--zIndex": (0,
|
|
20494
|
+
"--zIndex": (0, import_runtime79.maybeCssVar)(zIndices.tableActions)
|
|
20474
20495
|
}],
|
|
20475
20496
|
backgroundColor: ["bgColor_var", {
|
|
20476
20497
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -20588,7 +20609,7 @@ function Header2(props) {
|
|
|
20588
20609
|
actionMenu
|
|
20589
20610
|
} = props;
|
|
20590
20611
|
const tids = useTestIds(props);
|
|
20591
|
-
return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(FullBleed, { children: /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("header", { ...(0,
|
|
20612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(FullBleed, { children: /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("header", { ...(0, import_runtime79.trussProps)({
|
|
20592
20613
|
...{
|
|
20593
20614
|
paddingTop: "pt3",
|
|
20594
20615
|
paddingBottom: "pb3",
|
|
@@ -20667,7 +20688,7 @@ function useRightPaneContext() {
|
|
|
20667
20688
|
// src/components/Layout/RightPaneLayout/RightPaneLayout.tsx
|
|
20668
20689
|
var import_framer_motion3 = require("framer-motion");
|
|
20669
20690
|
var import_react105 = require("react");
|
|
20670
|
-
var
|
|
20691
|
+
var import_runtime80 = require("@homebound/truss/runtime");
|
|
20671
20692
|
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
20672
20693
|
var __maybeInc15 = (inc) => {
|
|
20673
20694
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -20687,10 +20708,10 @@ function RightPaneLayout(props) {
|
|
|
20687
20708
|
} = useRightPaneContext();
|
|
20688
20709
|
(0, import_react105.useEffect)(() => closePane, [closePane]);
|
|
20689
20710
|
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,
|
|
20711
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...(0, import_runtime80.trussProps)({
|
|
20691
20712
|
...{
|
|
20692
20713
|
width: ["w_var", {
|
|
20693
|
-
"--width": (0,
|
|
20714
|
+
"--width": (0, import_runtime80.maybeCssVar)(__maybeInc15(`calc(100% - ${paneWidth + 24}px)`))
|
|
20694
20715
|
}],
|
|
20695
20716
|
transition: "transition_width_2s_linear",
|
|
20696
20717
|
height: "h100",
|
|
@@ -20706,13 +20727,13 @@ function RightPaneLayout(props) {
|
|
|
20706
20727
|
...{
|
|
20707
20728
|
...!!defaultPaneContent ? {
|
|
20708
20729
|
width: ["w_var", {
|
|
20709
|
-
"--width": (0,
|
|
20730
|
+
"--width": (0, import_runtime80.maybeCssVar)(__maybeInc15(`calc(100% - ${paneWidth + 24}px)`))
|
|
20710
20731
|
}],
|
|
20711
20732
|
marginRight: "mr3"
|
|
20712
20733
|
} : {}
|
|
20713
20734
|
}
|
|
20714
20735
|
}), children }),
|
|
20715
|
-
/* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { ...(0,
|
|
20736
|
+
/* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { ...(0, import_runtime80.trussProps)({
|
|
20716
20737
|
position: "relative",
|
|
20717
20738
|
...!!defaultPaneContent ? {
|
|
20718
20739
|
width: ["w_var", {
|
|
@@ -20720,7 +20741,7 @@ function RightPaneLayout(props) {
|
|
|
20720
20741
|
}]
|
|
20721
20742
|
} : {}
|
|
20722
20743
|
}), children: [
|
|
20723
|
-
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...(0,
|
|
20744
|
+
defaultPaneContent && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { ...(0, import_runtime80.trussProps)({
|
|
20724
20745
|
height: "h100",
|
|
20725
20746
|
width: ["w_var", {
|
|
20726
20747
|
"--width": `${paneWidth}px`
|
|
@@ -20738,9 +20759,9 @@ function RightPaneLayout(props) {
|
|
|
20738
20759
|
{
|
|
20739
20760
|
layout: "position",
|
|
20740
20761
|
"data-testid": "rightPaneContent",
|
|
20741
|
-
...(0,
|
|
20762
|
+
...(0, import_runtime80.trussProps)({
|
|
20742
20763
|
backgroundColor: ["bgColor_var", {
|
|
20743
|
-
"--backgroundColor": (0,
|
|
20764
|
+
"--backgroundColor": (0, import_runtime80.maybeCssVar)(paneBgColor)
|
|
20744
20765
|
}],
|
|
20745
20766
|
height: "h100",
|
|
20746
20767
|
width: ["w_var", {
|
|
@@ -20821,7 +20842,7 @@ function SidePanel(props) {
|
|
|
20821
20842
|
}
|
|
20822
20843
|
|
|
20823
20844
|
// src/components/Layout/TableReviewLayout/TableReviewLayout.tsx
|
|
20824
|
-
var
|
|
20845
|
+
var import_runtime81 = require("@homebound/truss/runtime");
|
|
20825
20846
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
20826
20847
|
var defaultRightPaneWidth = 450;
|
|
20827
20848
|
function TableReviewLayout(props) {
|
|
@@ -20863,14 +20884,14 @@ function TableReviewLayout(props) {
|
|
|
20863
20884
|
bordered: true
|
|
20864
20885
|
}, stickyHeader: true });
|
|
20865
20886
|
}
|
|
20866
|
-
return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { ...(0,
|
|
20887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { ...(0, import_runtime81.trussProps)({
|
|
20867
20888
|
position: "fixed",
|
|
20868
20889
|
top: "top0",
|
|
20869
20890
|
bottom: "bottom0",
|
|
20870
20891
|
left: "left0",
|
|
20871
20892
|
right: "right0",
|
|
20872
20893
|
zIndex: ["z_var", {
|
|
20873
|
-
"--zIndex": (0,
|
|
20894
|
+
"--zIndex": (0, import_runtime81.maybeCssVar)(zIndices.pageOverlay)
|
|
20874
20895
|
}],
|
|
20875
20896
|
backgroundColor: "bgWhite",
|
|
20876
20897
|
display: "df",
|
|
@@ -20888,7 +20909,7 @@ function TableReviewLayout(props) {
|
|
|
20888
20909
|
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "fw4 fz_14px lh_20px gray700 mt2", ...tid.description, children: description })
|
|
20889
20910
|
] }),
|
|
20890
20911
|
/* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { className: "fg1 df mh0", ...tid.content, children: [
|
|
20891
|
-
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0,
|
|
20912
|
+
/* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { ...(0, import_runtime81.trussProps)({
|
|
20892
20913
|
...{
|
|
20893
20914
|
flexGrow: "fg1",
|
|
20894
20915
|
overflowY: "oya",
|
|
@@ -20911,7 +20932,7 @@ function TableReviewLayout(props) {
|
|
|
20911
20932
|
ease: "linear",
|
|
20912
20933
|
duration: 0.2
|
|
20913
20934
|
}, className: "df fdc fs0 relative", children: [
|
|
20914
|
-
/* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { ...(0,
|
|
20935
|
+
/* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { ...(0, import_runtime81.trussProps)({
|
|
20915
20936
|
position: "absolute",
|
|
20916
20937
|
top: ["top_var", {
|
|
20917
20938
|
"--top": `${-32}px`
|
|
@@ -21034,7 +21055,7 @@ function ButtonDatePicker(props) {
|
|
|
21034
21055
|
// src/components/ButtonGroup.tsx
|
|
21035
21056
|
var import_react109 = require("react");
|
|
21036
21057
|
var import_react_aria48 = require("react-aria");
|
|
21037
|
-
var
|
|
21058
|
+
var import_runtime82 = require("@homebound/truss/runtime");
|
|
21038
21059
|
var import_jsx_runtime157 = (
|
|
21039
21060
|
// Disable the button if the ButtonGroup is disabled or if the current button is disabled.
|
|
21040
21061
|
require("react/jsx-runtime")
|
|
@@ -21048,7 +21069,7 @@ function ButtonGroup(props) {
|
|
|
21048
21069
|
const tid = useTestIds(props, "buttonGroup");
|
|
21049
21070
|
return (
|
|
21050
21071
|
// 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,
|
|
21072
|
+
/* @__PURE__ */ (0, import_jsx_runtime157.jsx)("div", { ...tid, ...(0, import_runtime82.trussProps)({
|
|
21052
21073
|
...{
|
|
21053
21074
|
display: "df",
|
|
21054
21075
|
lineHeight: "lh_0"
|
|
@@ -21094,10 +21115,10 @@ function GroupButton(props) {
|
|
|
21094
21115
|
isHovered
|
|
21095
21116
|
} = (0, import_react_aria48.useHover)(ariaProps);
|
|
21096
21117
|
const tid = useTestIds(props);
|
|
21097
|
-
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("span", { ...(0,
|
|
21118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)("span", { ...(0, import_runtime82.trussProps)(getButtonStyles2(isFirst, isLast)), children: maybeTooltip({
|
|
21098
21119
|
title: resolveTooltip(disabled, tooltip),
|
|
21099
21120
|
placement: "top",
|
|
21100
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
21121
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime82.trussProps)({
|
|
21101
21122
|
...{
|
|
21102
21123
|
fontWeight: "fw6",
|
|
21103
21124
|
fontSize: "fz_14px",
|
|
@@ -21204,7 +21225,7 @@ var import_react_aria49 = require("react-aria");
|
|
|
21204
21225
|
// src/components/Tag.tsx
|
|
21205
21226
|
var import_utils124 = require("@react-aria/utils");
|
|
21206
21227
|
var import_react110 = require("react");
|
|
21207
|
-
var
|
|
21228
|
+
var import_runtime83 = require("@homebound/truss/runtime");
|
|
21208
21229
|
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
21209
21230
|
function Tag(props) {
|
|
21210
21231
|
const {
|
|
@@ -21228,7 +21249,7 @@ function Tag(props) {
|
|
|
21228
21249
|
});
|
|
21229
21250
|
return maybeTooltip({
|
|
21230
21251
|
title: !preventTooltip && showTooltip ? text : void 0,
|
|
21231
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("span", { ...tid, ...(0,
|
|
21252
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("span", { ...tid, ...(0, import_runtime83.trussProps)({
|
|
21232
21253
|
...{
|
|
21233
21254
|
display: "dif",
|
|
21234
21255
|
fontWeight: "fw6",
|
|
@@ -21278,7 +21299,7 @@ function getStyles(type) {
|
|
|
21278
21299
|
}
|
|
21279
21300
|
|
|
21280
21301
|
// src/components/Card.tsx
|
|
21281
|
-
var
|
|
21302
|
+
var import_runtime84 = require("@homebound/truss/runtime");
|
|
21282
21303
|
var import_jsx_runtime159 = require("react/jsx-runtime");
|
|
21283
21304
|
function Card(props) {
|
|
21284
21305
|
const {
|
|
@@ -21309,8 +21330,8 @@ function Card(props) {
|
|
|
21309
21330
|
...isHovered && cardHoverStyles,
|
|
21310
21331
|
...isDisabled && disabledStyles3
|
|
21311
21332
|
}), [isDisabled, isHovered, bordered, type, isList]);
|
|
21312
|
-
return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { ...(0,
|
|
21313
|
-
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0,
|
|
21333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { ...(0, import_runtime84.trussProps)(styles), ...hoverProps, ...tid, children: [
|
|
21334
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0, import_runtime84.trussProps)({
|
|
21314
21335
|
...{
|
|
21315
21336
|
height: ["h_var", {
|
|
21316
21337
|
"--height": `${imgHeight}px`
|
|
@@ -21327,14 +21348,14 @@ function Card(props) {
|
|
|
21327
21348
|
filter: "filter_brightness_1"
|
|
21328
21349
|
},
|
|
21329
21350
|
...isHovered && !isList && imageHoverStyles
|
|
21330
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("img", { ...(0,
|
|
21351
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("img", { ...(0, import_runtime84.trussProps)({
|
|
21331
21352
|
width: "w100",
|
|
21332
21353
|
height: "h100",
|
|
21333
21354
|
objectFit: ["objectFit_var", {
|
|
21334
|
-
"--objectFit": (0,
|
|
21355
|
+
"--objectFit": (0, import_runtime84.maybeCssVar)(imageFit)
|
|
21335
21356
|
}]
|
|
21336
21357
|
}), src: imgSrc, alt: title, ...tid.img }) }),
|
|
21337
|
-
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0,
|
|
21358
|
+
isHovered && buttonMenuItems && /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0, import_runtime84.trussProps)({
|
|
21338
21359
|
position: "absolute",
|
|
21339
21360
|
right: "right1",
|
|
21340
21361
|
top: "top1",
|
|
@@ -21350,7 +21371,7 @@ function Card(props) {
|
|
|
21350
21371
|
/* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { className: "df fdc aifs gap1", children: [
|
|
21351
21372
|
/* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { children: [
|
|
21352
21373
|
/* @__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,
|
|
21374
|
+
/* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { ...(0, import_runtime84.trussProps)({
|
|
21354
21375
|
fontWeight: "fw6",
|
|
21355
21376
|
fontSize: "fz_14px",
|
|
21356
21377
|
lineHeight: "lh_20px",
|
|
@@ -21408,10 +21429,10 @@ var imageHoverStyles = {
|
|
|
21408
21429
|
};
|
|
21409
21430
|
|
|
21410
21431
|
// src/components/Copy.tsx
|
|
21411
|
-
var
|
|
21432
|
+
var import_runtime85 = require("@homebound/truss/runtime");
|
|
21412
21433
|
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
21413
21434
|
function Copy(props) {
|
|
21414
|
-
return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ...(0,
|
|
21435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { ...(0, import_runtime85.mergeProps)("beam-copy", void 0, {
|
|
21415
21436
|
...{
|
|
21416
21437
|
fontWeight: "fw4",
|
|
21417
21438
|
fontSize: "fz_14px",
|
|
@@ -21440,7 +21461,7 @@ function useDnDGridContext() {
|
|
|
21440
21461
|
}
|
|
21441
21462
|
|
|
21442
21463
|
// src/components/DnDGrid/DnDGrid.tsx
|
|
21443
|
-
var
|
|
21464
|
+
var import_runtime86 = require("@homebound/truss/runtime");
|
|
21444
21465
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
21445
21466
|
function DnDGrid(props) {
|
|
21446
21467
|
const {
|
|
@@ -21623,7 +21644,7 @@ function DnDGrid(props) {
|
|
|
21623
21644
|
return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(DnDGridContext.Provider, { value: {
|
|
21624
21645
|
dragEl,
|
|
21625
21646
|
onDragHandleKeyDown
|
|
21626
|
-
}, children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ref: gridEl, ...(0,
|
|
21647
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)("div", { ref: gridEl, ...(0, import_runtime86.trussProps)({
|
|
21627
21648
|
...{
|
|
21628
21649
|
containerType: "ctis",
|
|
21629
21650
|
display: "dg"
|
|
@@ -21636,7 +21657,7 @@ var gridCloneKey = "dndgrid-clone";
|
|
|
21636
21657
|
|
|
21637
21658
|
// src/components/DnDGrid/DnDGridItemHandle.tsx
|
|
21638
21659
|
var import_react_aria50 = require("react-aria");
|
|
21639
|
-
var
|
|
21660
|
+
var import_runtime87 = require("@homebound/truss/runtime");
|
|
21640
21661
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
21641
21662
|
function DnDGridItemHandle(props) {
|
|
21642
21663
|
const {
|
|
@@ -21666,7 +21687,7 @@ function DnDGridItemHandle(props) {
|
|
|
21666
21687
|
borderRadius: "br4",
|
|
21667
21688
|
borderWidth: "bw1"
|
|
21668
21689
|
};
|
|
21669
|
-
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("button", { ...(0,
|
|
21690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("button", { ...(0, import_runtime87.trussProps)({
|
|
21670
21691
|
...compact ? iconButtonCompact2 : iconButtonNormal2,
|
|
21671
21692
|
...{
|
|
21672
21693
|
cursor: "cursor_grab",
|
|
@@ -21728,7 +21749,7 @@ var gridItemDataAttribute = "data-grid-item-span";
|
|
|
21728
21749
|
var ResponsiveGridContext = (0, import_react115.createContext)(void 0);
|
|
21729
21750
|
|
|
21730
21751
|
// src/components/Grid/ResponsiveGrid.tsx
|
|
21731
|
-
var
|
|
21752
|
+
var import_runtime88 = require("@homebound/truss/runtime");
|
|
21732
21753
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
21733
21754
|
function ResponsiveGrid(props) {
|
|
21734
21755
|
const {
|
|
@@ -21749,12 +21770,12 @@ function ResponsiveGrid(props) {
|
|
|
21749
21770
|
gap,
|
|
21750
21771
|
columns
|
|
21751
21772
|
}), [minColumnWidth, gap, columns]);
|
|
21752
|
-
return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { ...(0,
|
|
21773
|
+
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
21774
|
}
|
|
21754
21775
|
|
|
21755
21776
|
// src/components/Grid/ResponsiveGridItem.tsx
|
|
21756
21777
|
var import_react_aria51 = require("react-aria");
|
|
21757
|
-
var
|
|
21778
|
+
var import_runtime89 = require("@homebound/truss/runtime");
|
|
21758
21779
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
21759
21780
|
function ResponsiveGridItem(props) {
|
|
21760
21781
|
const {
|
|
@@ -21767,12 +21788,12 @@ function ResponsiveGridItem(props) {
|
|
|
21767
21788
|
} = useResponsiveGridItem({
|
|
21768
21789
|
colSpan
|
|
21769
21790
|
});
|
|
21770
|
-
return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0,
|
|
21791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0, import_runtime89.trussProps)(gridItemStyles)), children });
|
|
21771
21792
|
}
|
|
21772
21793
|
|
|
21773
21794
|
// src/components/Grid/useResponsiveGrid.ts
|
|
21774
21795
|
var import_react117 = require("react");
|
|
21775
|
-
var
|
|
21796
|
+
var import_runtime90 = require("@homebound/truss/runtime");
|
|
21776
21797
|
var __maybeInc16 = (inc) => {
|
|
21777
21798
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
21778
21799
|
};
|
|
@@ -21791,11 +21812,11 @@ function useResponsiveGrid(props) {
|
|
|
21791
21812
|
return {
|
|
21792
21813
|
display: "dg",
|
|
21793
21814
|
gridTemplateColumns: ["gtc_var", {
|
|
21794
|
-
"--gridTemplateColumns": (0,
|
|
21815
|
+
"--gridTemplateColumns": (0, import_runtime90.maybeCssVar)(gridTemplateColumns)
|
|
21795
21816
|
}],
|
|
21796
21817
|
containerType: "ctis",
|
|
21797
21818
|
gap: ["gap_var", {
|
|
21798
|
-
"--gap": (0,
|
|
21819
|
+
"--gap": (0, import_runtime90.maybeCssVar)(__maybeInc16(gridGap))
|
|
21799
21820
|
}]
|
|
21800
21821
|
};
|
|
21801
21822
|
}, [minColumnWidth, gap, columns]);
|
|
@@ -21918,7 +21939,7 @@ function HbSpinnerProvider({
|
|
|
21918
21939
|
}
|
|
21919
21940
|
|
|
21920
21941
|
// src/components/HomeboundLogo.tsx
|
|
21921
|
-
var
|
|
21942
|
+
var import_runtime91 = require("@homebound/truss/runtime");
|
|
21922
21943
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
21923
21944
|
var __maybeInc17 = (inc) => {
|
|
21924
21945
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -21929,15 +21950,15 @@ function HomeboundLogo(props) {
|
|
|
21929
21950
|
width: width2 = "auto",
|
|
21930
21951
|
height = "auto"
|
|
21931
21952
|
} = 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,
|
|
21953
|
+
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
21954
|
fill: ["fill_var", {
|
|
21934
|
-
"--fill": (0,
|
|
21955
|
+
"--fill": (0, import_runtime91.maybeCssVar)(fill)
|
|
21935
21956
|
}],
|
|
21936
21957
|
width: ["w_var", {
|
|
21937
|
-
"--width": (0,
|
|
21958
|
+
"--width": (0, import_runtime91.maybeCssVar)(__maybeInc17(width2))
|
|
21938
21959
|
}],
|
|
21939
21960
|
height: ["h_var", {
|
|
21940
|
-
"--height": (0,
|
|
21961
|
+
"--height": (0, import_runtime91.maybeCssVar)(__maybeInc17(height))
|
|
21941
21962
|
}]
|
|
21942
21963
|
}), 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
21964
|
}
|
|
@@ -21945,7 +21966,7 @@ function HomeboundLogo(props) {
|
|
|
21945
21966
|
// src/components/MaxLines.tsx
|
|
21946
21967
|
var import_utils132 = require("@react-aria/utils");
|
|
21947
21968
|
var import_react120 = require("react");
|
|
21948
|
-
var
|
|
21969
|
+
var import_runtime92 = require("@homebound/truss/runtime");
|
|
21949
21970
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
21950
21971
|
function MaxLines({
|
|
21951
21972
|
maxLines,
|
|
@@ -21970,10 +21991,10 @@ function MaxLines({
|
|
|
21970
21991
|
onResize
|
|
21971
21992
|
});
|
|
21972
21993
|
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { children: [
|
|
21973
|
-
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ref: elRef, ...(0,
|
|
21994
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { ref: elRef, ...(0, import_runtime92.trussProps)({
|
|
21974
21995
|
...!expanded ? {
|
|
21975
21996
|
WebkitLineClamp: ["lineClamp_var", {
|
|
21976
|
-
"--WebkitLineClamp": (0,
|
|
21997
|
+
"--WebkitLineClamp": (0, import_runtime92.maybeCssVar)(maxLines)
|
|
21977
21998
|
}],
|
|
21978
21999
|
overflow: "oh",
|
|
21979
22000
|
display: "d_negwebkit_box",
|
|
@@ -21996,7 +22017,7 @@ var import_react123 = require("react");
|
|
|
21996
22017
|
// src/components/AppNav/AppNavGroupTrigger.tsx
|
|
21997
22018
|
var import_react121 = require("react");
|
|
21998
22019
|
var import_react_aria52 = require("react-aria");
|
|
21999
|
-
var
|
|
22020
|
+
var import_runtime93 = require("@homebound/truss/runtime");
|
|
22000
22021
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
22001
22022
|
function AppNavGroupTrigger(props) {
|
|
22002
22023
|
const {
|
|
@@ -22032,7 +22053,7 @@ function AppNavGroupTrigger(props) {
|
|
|
22032
22053
|
ref,
|
|
22033
22054
|
"aria-expanded": expanded,
|
|
22034
22055
|
"aria-controls": navGroupId,
|
|
22035
|
-
...(0,
|
|
22056
|
+
...(0, import_runtime93.mergeProps)(navLink, void 0, {
|
|
22036
22057
|
...baseStyles5,
|
|
22037
22058
|
...isFocusVisible && focusRingStyles2,
|
|
22038
22059
|
...isHovered && hoverStyles4,
|
|
@@ -22040,7 +22061,7 @@ function AppNavGroupTrigger(props) {
|
|
|
22040
22061
|
})
|
|
22041
22062
|
}), children: [
|
|
22042
22063
|
label,
|
|
22043
|
-
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { ...(0,
|
|
22064
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { ...(0, import_runtime93.trussProps)({
|
|
22044
22065
|
...{
|
|
22045
22066
|
display: "df",
|
|
22046
22067
|
alignItems: "aic",
|
|
@@ -22193,7 +22214,7 @@ function useAppNavGroupExpanded(linkGroup) {
|
|
|
22193
22214
|
}
|
|
22194
22215
|
|
|
22195
22216
|
// src/components/AppNav/AppNavGroup.tsx
|
|
22196
|
-
var
|
|
22217
|
+
var import_runtime94 = require("@homebound/truss/runtime");
|
|
22197
22218
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
22198
22219
|
var __maybeInc18 = (inc) => {
|
|
22199
22220
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -22238,11 +22259,11 @@ function AppNavGroupDisclosure(props) {
|
|
|
22238
22259
|
});
|
|
22239
22260
|
return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "df fdc", ...tid, children: [
|
|
22240
22261
|
/* @__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,
|
|
22262
|
+
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...(0, import_runtime94.trussProps)({
|
|
22242
22263
|
overflow: "oh",
|
|
22243
22264
|
transition: "transitionHeight",
|
|
22244
22265
|
height: ["h_var", {
|
|
22245
|
-
"--height": (0,
|
|
22266
|
+
"--height": (0, import_runtime94.maybeCssVar)(__maybeInc18(contentHeight))
|
|
22246
22267
|
}]
|
|
22247
22268
|
}), ...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
22269
|
] });
|
|
@@ -22270,7 +22291,7 @@ function AppNavGroupMenu({
|
|
|
22270
22291
|
}
|
|
22271
22292
|
|
|
22272
22293
|
// src/components/AppNav/AppNavSectionView.tsx
|
|
22273
|
-
var
|
|
22294
|
+
var import_runtime95 = require("@homebound/truss/runtime");
|
|
22274
22295
|
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
22275
22296
|
function AppNavSectionView(props) {
|
|
22276
22297
|
const {
|
|
@@ -22296,7 +22317,7 @@ function AppNavSectionView(props) {
|
|
|
22296
22317
|
"--borderColor": "var(--b-surface-separator)"
|
|
22297
22318
|
}]
|
|
22298
22319
|
};
|
|
22299
|
-
return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { ...(0,
|
|
22320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { ...(0, import_runtime95.trussProps)({
|
|
22300
22321
|
...{
|
|
22301
22322
|
display: "df",
|
|
22302
22323
|
flexDirection: "fdc",
|
|
@@ -22304,7 +22325,7 @@ function AppNavSectionView(props) {
|
|
|
22304
22325
|
},
|
|
22305
22326
|
...showDivider ? dividerStyles : {}
|
|
22306
22327
|
}), ...tid, children: [
|
|
22307
|
-
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { ...(0,
|
|
22328
|
+
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { ...(0, import_runtime95.trussProps)({
|
|
22308
22329
|
fontWeight: "fw6",
|
|
22309
22330
|
fontSize: "fz_10px",
|
|
22310
22331
|
lineHeight: "lh_14px",
|
|
@@ -22372,7 +22393,7 @@ var import_react124 = require("react");
|
|
|
22372
22393
|
var import_react_aria53 = require("react-aria");
|
|
22373
22394
|
var import_react_dom6 = require("react-dom");
|
|
22374
22395
|
var import_react_router_dom5 = require("react-router-dom");
|
|
22375
|
-
var
|
|
22396
|
+
var import_runtime96 = require("@homebound/truss/runtime");
|
|
22376
22397
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
22377
22398
|
function NavbarMobileMenu(props) {
|
|
22378
22399
|
const {
|
|
@@ -22402,14 +22423,14 @@ function NavbarMobileDrawer({
|
|
|
22402
22423
|
tid
|
|
22403
22424
|
}) {
|
|
22404
22425
|
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,
|
|
22426
|
+
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_framer_motion5.motion.div, { ...(0, import_runtime96.trussProps)({
|
|
22406
22427
|
position: "fixed",
|
|
22407
22428
|
top: "top0",
|
|
22408
22429
|
right: "right0",
|
|
22409
22430
|
bottom: "bottom0",
|
|
22410
22431
|
left: "left0",
|
|
22411
22432
|
zIndex: ["z_var", {
|
|
22412
|
-
"--zIndex": (0,
|
|
22433
|
+
"--zIndex": (0, import_runtime96.maybeCssVar)(zIndices.modalUnderlay)
|
|
22413
22434
|
}],
|
|
22414
22435
|
backgroundColor: "backgroundColor_rgba_36_36_36_0_2"
|
|
22415
22436
|
}), initial: {
|
|
@@ -22422,7 +22443,7 @@ function NavbarMobileDrawer({
|
|
|
22422
22443
|
ease: "linear",
|
|
22423
22444
|
duration: 0.2
|
|
22424
22445
|
}, 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,
|
|
22446
|
+
/* @__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
22447
|
position: "fixed",
|
|
22427
22448
|
top: "top0",
|
|
22428
22449
|
bottom: "bottom0",
|
|
@@ -22433,7 +22454,7 @@ function NavbarMobileDrawer({
|
|
|
22433
22454
|
width: "w100",
|
|
22434
22455
|
overflow: "oh",
|
|
22435
22456
|
zIndex: ["z_var", {
|
|
22436
|
-
"--zIndex": (0,
|
|
22457
|
+
"--zIndex": (0, import_runtime96.maybeCssVar)(zIndices.sideNav)
|
|
22437
22458
|
}],
|
|
22438
22459
|
backgroundColor: ["bgColor_var", {
|
|
22439
22460
|
"--backgroundColor": "var(--b-surface)"
|
|
@@ -22467,7 +22488,7 @@ function NavbarMobileDrawer({
|
|
|
22467
22488
|
}
|
|
22468
22489
|
|
|
22469
22490
|
// src/components/Navbar/Navbar.tsx
|
|
22470
|
-
var
|
|
22491
|
+
var import_runtime97 = require("@homebound/truss/runtime");
|
|
22471
22492
|
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
22472
22493
|
function Navbar(props) {
|
|
22473
22494
|
const {
|
|
@@ -22487,7 +22508,7 @@ function Navbar(props) {
|
|
|
22487
22508
|
overflows
|
|
22488
22509
|
} = useContentOverflow(!sm);
|
|
22489
22510
|
const showMobile = sm || overflows;
|
|
22490
|
-
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(ContrastScope, { children: /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("nav", { ...(0,
|
|
22511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(ContrastScope, { children: /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("nav", { ...(0, import_runtime97.trussProps)({
|
|
22491
22512
|
backgroundColor: "bgGray800",
|
|
22492
22513
|
flexShrink: "fs0",
|
|
22493
22514
|
display: "df",
|
|
@@ -22507,7 +22528,7 @@ function Navbar(props) {
|
|
|
22507
22528
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "df aic gap3 fg1 mw0", children: [
|
|
22508
22529
|
/* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("div", { className: "df aic fs0 gap2", children: [
|
|
22509
22530
|
showMobile && /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(NavbarMobileMenu, { items, ...tid }),
|
|
22510
|
-
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0,
|
|
22531
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0, import_runtime97.trussProps)({
|
|
22511
22532
|
flexShrink: "fs0",
|
|
22512
22533
|
...hideBrandOnMobile && showMobile ? {
|
|
22513
22534
|
display: "dn"
|
|
@@ -22516,7 +22537,7 @@ function Navbar(props) {
|
|
|
22516
22537
|
] }),
|
|
22517
22538
|
!sm && // Stays mounted while overflowing (hidden) so the items remain measurable and the bar
|
|
22518
22539
|
// can expand again as space frees up.
|
|
22519
|
-
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ref: containerRef, ...(0,
|
|
22540
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ref: containerRef, ...(0, import_runtime97.trussProps)({
|
|
22520
22541
|
display: "df",
|
|
22521
22542
|
alignItems: "aic",
|
|
22522
22543
|
flexGrow: "fg1",
|
|
@@ -22551,7 +22572,7 @@ var import_react125 = require("react");
|
|
|
22551
22572
|
var import_react_aria54 = require("react-aria");
|
|
22552
22573
|
var import_react_router = require("react-router");
|
|
22553
22574
|
var import_react_router_dom6 = require("react-router-dom");
|
|
22554
|
-
var
|
|
22575
|
+
var import_runtime98 = require("@homebound/truss/runtime");
|
|
22555
22576
|
var import_jsx_runtime175 = require("react/jsx-runtime");
|
|
22556
22577
|
function TabsWithContent(props) {
|
|
22557
22578
|
const styles = hideTabs(props) ? {} : {
|
|
@@ -22584,7 +22605,7 @@ function TabContent(props) {
|
|
|
22584
22605
|
return (
|
|
22585
22606
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
22586
22607
|
// 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,
|
|
22608
|
+
/* @__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
22609
|
);
|
|
22589
22610
|
}
|
|
22590
22611
|
function Tabs(props) {
|
|
@@ -22626,7 +22647,7 @@ function Tabs(props) {
|
|
|
22626
22647
|
setActive(selected);
|
|
22627
22648
|
}
|
|
22628
22649
|
}
|
|
22629
|
-
return /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("div", { ...(0,
|
|
22650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("div", { ...(0, import_runtime98.trussProps)({
|
|
22630
22651
|
...{
|
|
22631
22652
|
display: "df",
|
|
22632
22653
|
alignItems: "aic",
|
|
@@ -22690,7 +22711,7 @@ function TabImpl(props) {
|
|
|
22690
22711
|
role: "tab",
|
|
22691
22712
|
tabIndex: active ? 0 : -1,
|
|
22692
22713
|
...others,
|
|
22693
|
-
...(0,
|
|
22714
|
+
...(0, import_runtime98.trussProps)({
|
|
22694
22715
|
...baseStyles5,
|
|
22695
22716
|
...active && activeStyles3,
|
|
22696
22717
|
...isDisabled && disabledStyles4,
|
|
@@ -22727,7 +22748,7 @@ function getTabStyles() {
|
|
|
22727
22748
|
const borderBottomStyles = {
|
|
22728
22749
|
borderBottomStyle: "bbs_solid",
|
|
22729
22750
|
borderBottomWidth: ["borderBottomWidth_var", {
|
|
22730
|
-
"--borderBottomWidth": (0,
|
|
22751
|
+
"--borderBottomWidth": (0, import_runtime98.maybeCssVar)(`${borderBottomWidthPx}px`)
|
|
22731
22752
|
}],
|
|
22732
22753
|
paddingBottom: ["pb_var", {
|
|
22733
22754
|
"--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
|
|
@@ -22811,7 +22832,7 @@ function hideTabs(props) {
|
|
|
22811
22832
|
}
|
|
22812
22833
|
|
|
22813
22834
|
// src/components/PageHeader.tsx
|
|
22814
|
-
var
|
|
22835
|
+
var import_runtime99 = require("@homebound/truss/runtime");
|
|
22815
22836
|
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
22816
22837
|
function PageHeader2(props) {
|
|
22817
22838
|
const {
|
|
@@ -22821,7 +22842,7 @@ function PageHeader2(props) {
|
|
|
22821
22842
|
...otherProps
|
|
22822
22843
|
} = props;
|
|
22823
22844
|
const tid = useTestIds(otherProps, "pageHeader");
|
|
22824
|
-
return /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)("header", { ...tid, ...(0,
|
|
22845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)("header", { ...tid, ...(0, import_runtime99.trussProps)({
|
|
22825
22846
|
display: "df",
|
|
22826
22847
|
flexDirection: "fdc",
|
|
22827
22848
|
paddingTop: "pt3",
|
|
@@ -22847,7 +22868,7 @@ function PageHeader2(props) {
|
|
|
22847
22868
|
// src/components/ScrollShadows.tsx
|
|
22848
22869
|
var import_utils142 = require("@react-aria/utils");
|
|
22849
22870
|
var import_react126 = require("react");
|
|
22850
|
-
var
|
|
22871
|
+
var import_runtime100 = require("@homebound/truss/runtime");
|
|
22851
22872
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
22852
22873
|
function ScrollShadows(props) {
|
|
22853
22874
|
const {
|
|
@@ -22872,7 +22893,7 @@ function ScrollShadows(props) {
|
|
|
22872
22893
|
const commonStyles = {
|
|
22873
22894
|
position: "absolute",
|
|
22874
22895
|
zIndex: ["z_var", {
|
|
22875
|
-
"--zIndex": (0,
|
|
22896
|
+
"--zIndex": (0, import_runtime100.maybeCssVar)(zIndices.scrollShadow)
|
|
22876
22897
|
}],
|
|
22877
22898
|
pointerEvents: "pointerEvents_none"
|
|
22878
22899
|
};
|
|
@@ -22905,7 +22926,7 @@ function ScrollShadows(props) {
|
|
|
22905
22926
|
...startShadowStyles2,
|
|
22906
22927
|
...{
|
|
22907
22928
|
background: ["background_var", {
|
|
22908
|
-
"--background": (0,
|
|
22929
|
+
"--background": (0, import_runtime100.maybeCssVar)(startGradient)
|
|
22909
22930
|
}]
|
|
22910
22931
|
}
|
|
22911
22932
|
}, {
|
|
@@ -22913,7 +22934,7 @@ function ScrollShadows(props) {
|
|
|
22913
22934
|
...endShadowStyles2,
|
|
22914
22935
|
...{
|
|
22915
22936
|
background: ["background_var", {
|
|
22916
|
-
"--background": (0,
|
|
22937
|
+
"--background": (0, import_runtime100.maybeCssVar)(endGradient)
|
|
22917
22938
|
}]
|
|
22918
22939
|
}
|
|
22919
22940
|
}];
|
|
@@ -22938,10 +22959,10 @@ function ScrollShadows(props) {
|
|
|
22938
22959
|
ref: scrollRef,
|
|
22939
22960
|
onResize
|
|
22940
22961
|
});
|
|
22941
|
-
return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { ...(0,
|
|
22962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { ...(0, import_runtime100.trussProps)({
|
|
22942
22963
|
display: "df",
|
|
22943
22964
|
flexDirection: ["fd_var", {
|
|
22944
|
-
"--flexDirection": (0,
|
|
22965
|
+
"--flexDirection": (0, import_runtime100.maybeCssVar)(!horizontal ? "column" : "row")
|
|
22945
22966
|
}],
|
|
22946
22967
|
position: "relative",
|
|
22947
22968
|
overflow: "oh",
|
|
@@ -22954,23 +22975,23 @@ function ScrollShadows(props) {
|
|
|
22954
22975
|
width: width2
|
|
22955
22976
|
}
|
|
22956
22977
|
}), ...tid, children: [
|
|
22957
|
-
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0,
|
|
22978
|
+
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0, import_runtime100.trussProps)({
|
|
22958
22979
|
...startShadowStyles,
|
|
22959
22980
|
...{
|
|
22960
22981
|
opacity: ["o_var", {
|
|
22961
|
-
"--opacity": (0,
|
|
22982
|
+
"--opacity": (0, import_runtime100.maybeCssVar)(showStartShadow ? 1 : 0)
|
|
22962
22983
|
}]
|
|
22963
22984
|
}
|
|
22964
22985
|
}), "data-chromatic": "ignore" }),
|
|
22965
|
-
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0,
|
|
22986
|
+
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0, import_runtime100.trussProps)({
|
|
22966
22987
|
...endShadowStyles,
|
|
22967
22988
|
...{
|
|
22968
22989
|
opacity: ["o_var", {
|
|
22969
|
-
"--opacity": (0,
|
|
22990
|
+
"--opacity": (0, import_runtime100.maybeCssVar)(showEndShadow ? 1 : 0)
|
|
22970
22991
|
}]
|
|
22971
22992
|
}
|
|
22972
22993
|
}), "data-chromatic": "ignore" }),
|
|
22973
|
-
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0,
|
|
22994
|
+
/* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { ...(0, import_runtime100.trussProps)({
|
|
22974
22995
|
...xss,
|
|
22975
22996
|
...{
|
|
22976
22997
|
overflow: "oa",
|
|
@@ -23042,7 +23063,7 @@ function useHasSideNavLayoutProvider() {
|
|
|
23042
23063
|
}
|
|
23043
23064
|
|
|
23044
23065
|
// src/components/SideNav/SideNav.tsx
|
|
23045
|
-
var
|
|
23066
|
+
var import_runtime101 = require("@homebound/truss/runtime");
|
|
23046
23067
|
var import_jsx_runtime179 = require("react/jsx-runtime");
|
|
23047
23068
|
function SideNav(props) {
|
|
23048
23069
|
const {
|
|
@@ -23057,7 +23078,7 @@ function SideNav(props) {
|
|
|
23057
23078
|
const panelCollapsed = navState === "collapse";
|
|
23058
23079
|
const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
|
|
23059
23080
|
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,
|
|
23081
|
+
top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0, import_runtime101.trussProps)({
|
|
23061
23082
|
flexShrink: "fs0",
|
|
23062
23083
|
paddingLeft: "pl2",
|
|
23063
23084
|
paddingRight: "pr2",
|
|
@@ -23068,7 +23089,7 @@ function SideNav(props) {
|
|
|
23068
23089
|
paddingBottom: "pb4"
|
|
23069
23090
|
} : {}
|
|
23070
23091
|
}), ...tid.top, children: top }),
|
|
23071
|
-
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0,
|
|
23092
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0, import_runtime101.trussProps)({
|
|
23072
23093
|
flexGrow: "fg1",
|
|
23073
23094
|
overflowY: "oya",
|
|
23074
23095
|
display: "df",
|
|
@@ -23081,7 +23102,7 @@ function SideNav(props) {
|
|
|
23081
23102
|
paddingTop: "pt5"
|
|
23082
23103
|
} : {}
|
|
23083
23104
|
}), ...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,
|
|
23105
|
+
footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...(0, import_runtime101.trussProps)({
|
|
23085
23106
|
flexShrink: "fs0",
|
|
23086
23107
|
paddingLeft: "pl2",
|
|
23087
23108
|
paddingRight: "pr2",
|
|
@@ -23158,7 +23179,7 @@ var snackbarId = 1;
|
|
|
23158
23179
|
// src/components/Stepper.tsx
|
|
23159
23180
|
var import_react129 = require("react");
|
|
23160
23181
|
var import_react_aria55 = require("react-aria");
|
|
23161
|
-
var
|
|
23182
|
+
var import_runtime102 = require("@homebound/truss/runtime");
|
|
23162
23183
|
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
23163
23184
|
var import_react130 = require("react");
|
|
23164
23185
|
var __maybeInc19 = (inc) => {
|
|
@@ -23179,7 +23200,7 @@ function Stepper(props) {
|
|
|
23179
23200
|
const minStepWidth = 100;
|
|
23180
23201
|
const gap = 8;
|
|
23181
23202
|
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,
|
|
23203
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("ol", { ...(0, import_runtime102.trussProps)({
|
|
23183
23204
|
padding: "p_0",
|
|
23184
23205
|
margin: "m_0",
|
|
23185
23206
|
listStyle: "lis_none",
|
|
@@ -23189,7 +23210,7 @@ function Stepper(props) {
|
|
|
23189
23210
|
}]
|
|
23190
23211
|
}), children: steps.map((step) => {
|
|
23191
23212
|
const isCurrent = currentStep === step.value;
|
|
23192
|
-
return /* @__PURE__ */ (0, import_react130.createElement)("li", { ...(0,
|
|
23213
|
+
return /* @__PURE__ */ (0, import_react130.createElement)("li", { ...(0, import_runtime102.trussProps)({
|
|
23193
23214
|
display: "df",
|
|
23194
23215
|
flexGrow: "fg1",
|
|
23195
23216
|
flexDirection: "fdc",
|
|
@@ -23201,7 +23222,7 @@ function Stepper(props) {
|
|
|
23201
23222
|
}]
|
|
23202
23223
|
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
23203
23224
|
}) }),
|
|
23204
|
-
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...(0,
|
|
23225
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...(0, import_runtime102.trussProps)({
|
|
23205
23226
|
marginTop: "mt1",
|
|
23206
23227
|
backgroundColor: "bgGray300",
|
|
23207
23228
|
height: "h_4px",
|
|
@@ -23212,12 +23233,12 @@ function Stepper(props) {
|
|
|
23212
23233
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
23213
23234
|
}],
|
|
23214
23235
|
width: "w100"
|
|
23215
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...(0,
|
|
23236
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...(0, import_runtime102.trussProps)({
|
|
23216
23237
|
backgroundColor: "bgBlue600",
|
|
23217
23238
|
transition: "transition_width_200ms",
|
|
23218
23239
|
height: "h100",
|
|
23219
23240
|
width: ["w_var", {
|
|
23220
|
-
"--width": (0,
|
|
23241
|
+
"--width": (0, import_runtime102.maybeCssVar)(__maybeInc19(`${(lastCompletedStep + 1) / steps.length * 100}%`))
|
|
23221
23242
|
}]
|
|
23222
23243
|
}) }) })
|
|
23223
23244
|
] });
|
|
@@ -23253,7 +23274,7 @@ function StepButton(props) {
|
|
|
23253
23274
|
boxShadow: "bshFocus"
|
|
23254
23275
|
};
|
|
23255
23276
|
const tid = useTestIds(props, "stepButton");
|
|
23256
|
-
return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0,
|
|
23277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime102.trussProps)({
|
|
23257
23278
|
...{
|
|
23258
23279
|
fontWeight: "fw6",
|
|
23259
23280
|
fontSize: "fz_14px",
|
|
@@ -23321,7 +23342,7 @@ function StepIcon({
|
|
|
23321
23342
|
if (state === "complete") {
|
|
23322
23343
|
return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(Icon, { icon: "check" });
|
|
23323
23344
|
}
|
|
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,
|
|
23345
|
+
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
23346
|
width: "w_10px",
|
|
23326
23347
|
height: "h_10px",
|
|
23327
23348
|
borderStyle: "bss",
|
|
@@ -23336,7 +23357,7 @@ function StepIcon({
|
|
|
23336
23357
|
|
|
23337
23358
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
23338
23359
|
var import_react_dom7 = require("react-dom");
|
|
23339
|
-
var
|
|
23360
|
+
var import_runtime103 = require("@homebound/truss/runtime");
|
|
23340
23361
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
23341
23362
|
function SuperDrawerHeader(props) {
|
|
23342
23363
|
const {
|
|
@@ -23362,7 +23383,7 @@ function SuperDrawerHeader(props) {
|
|
|
23362
23383
|
] }),
|
|
23363
23384
|
props.right && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: "fs0", children: props.right })
|
|
23364
23385
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: "fg1", children: props.children }),
|
|
23365
|
-
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { ...(0,
|
|
23386
|
+
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { ...(0, import_runtime103.trussProps)({
|
|
23366
23387
|
flexShrink: "fs0",
|
|
23367
23388
|
...isDetail ? {
|
|
23368
23389
|
visibility: "vh"
|
|
@@ -23542,7 +23563,7 @@ function canClose(canCloseCheck) {
|
|
|
23542
23563
|
}
|
|
23543
23564
|
|
|
23544
23565
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
23545
|
-
var
|
|
23566
|
+
var import_runtime104 = require("@homebound/truss/runtime");
|
|
23546
23567
|
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
23547
23568
|
var SuperDrawerContent = ({
|
|
23548
23569
|
children,
|
|
@@ -23591,7 +23612,7 @@ var SuperDrawerContent = ({
|
|
|
23591
23612
|
}, className: "pt2", children: children2 })
|
|
23592
23613
|
] }, "content");
|
|
23593
23614
|
} else {
|
|
23594
|
-
return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(import_framer_motion6.motion.div, { ...(0,
|
|
23615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(import_framer_motion6.motion.div, { ...(0, import_runtime104.mergeProps)(void 0, {
|
|
23595
23616
|
overflow: "auto"
|
|
23596
23617
|
}, {
|
|
23597
23618
|
paddingTop: "pt3",
|
|
@@ -23635,7 +23656,7 @@ function useToast() {
|
|
|
23635
23656
|
}
|
|
23636
23657
|
|
|
23637
23658
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
23638
|
-
var
|
|
23659
|
+
var import_runtime105 = require("@homebound/truss/runtime");
|
|
23639
23660
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
23640
23661
|
var __maybeInc20 = (inc) => {
|
|
23641
23662
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -23665,7 +23686,7 @@ function SideNavLayoutContent(props) {
|
|
|
23665
23686
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
23666
23687
|
const navTop = `var(${beamNavbarLayoutHeightVar}, 0px)`;
|
|
23667
23688
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
23668
|
-
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { ...(0,
|
|
23689
|
+
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { ...(0, import_runtime105.trussProps)({
|
|
23669
23690
|
...{
|
|
23670
23691
|
display: "df",
|
|
23671
23692
|
flexDirection: "fdc",
|
|
@@ -23689,14 +23710,14 @@ function SideNavLayoutContent(props) {
|
|
|
23689
23710
|
position: "sticky",
|
|
23690
23711
|
left: "left0",
|
|
23691
23712
|
zIndex: ["z_var", {
|
|
23692
|
-
"--zIndex": (0,
|
|
23713
|
+
"--zIndex": (0, import_runtime105.maybeCssVar)(zIndices.sideNav)
|
|
23693
23714
|
}],
|
|
23694
23715
|
top: ["top_var", {
|
|
23695
|
-
"--top": (0,
|
|
23716
|
+
"--top": (0, import_runtime105.maybeCssVar)(__maybeInc20(navTop))
|
|
23696
23717
|
}],
|
|
23697
23718
|
alignSelf: "asfs",
|
|
23698
23719
|
height: ["h_var", {
|
|
23699
|
-
"--height": (0,
|
|
23720
|
+
"--height": (0, import_runtime105.maybeCssVar)(__maybeInc20(railViewportHeight))
|
|
23700
23721
|
}],
|
|
23701
23722
|
width: ["w_var", {
|
|
23702
23723
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -23706,11 +23727,11 @@ function SideNavLayoutContent(props) {
|
|
|
23706
23727
|
position: "fixed",
|
|
23707
23728
|
left: "left0",
|
|
23708
23729
|
top: ["top_var", {
|
|
23709
|
-
"--top": (0,
|
|
23730
|
+
"--top": (0, import_runtime105.maybeCssVar)(__maybeInc20(navTop))
|
|
23710
23731
|
}],
|
|
23711
23732
|
bottom: "bottom0",
|
|
23712
23733
|
zIndex: ["z_var", {
|
|
23713
|
-
"--zIndex": (0,
|
|
23734
|
+
"--zIndex": (0, import_runtime105.maybeCssVar)(zIndices.sideNav)
|
|
23714
23735
|
}]
|
|
23715
23736
|
},
|
|
23716
23737
|
...collapsed ? {
|
|
@@ -23725,7 +23746,7 @@ function SideNavLayoutContent(props) {
|
|
|
23725
23746
|
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
23747
|
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(SideNav, { ...sideNav }) })
|
|
23727
23748
|
] });
|
|
23728
|
-
return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { ...(0,
|
|
23749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("div", { ...(0, import_runtime105.mergeProps)(void 0, {
|
|
23729
23750
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
23730
23751
|
}, {
|
|
23731
23752
|
display: "df",
|
|
@@ -23733,7 +23754,7 @@ function SideNavLayoutContent(props) {
|
|
|
23733
23754
|
width: "w100"
|
|
23734
23755
|
}), ...tid, children: [
|
|
23735
23756
|
contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(ContrastScope, { children: rail }) : rail,
|
|
23736
|
-
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { ...(0,
|
|
23757
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("div", { ...(0, import_runtime105.trussProps)({
|
|
23737
23758
|
display: "df",
|
|
23738
23759
|
flexDirection: "fdc",
|
|
23739
23760
|
flexGrow: "fg1",
|
|
@@ -23750,7 +23771,7 @@ function SideNavLayoutContent(props) {
|
|
|
23750
23771
|
|
|
23751
23772
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
23752
23773
|
var import_react136 = require("react");
|
|
23753
|
-
var
|
|
23774
|
+
var import_runtime106 = require("@homebound/truss/runtime");
|
|
23754
23775
|
|
|
23755
23776
|
// src/layouts/useAutoHideOnScroll.ts
|
|
23756
23777
|
var import_react133 = require("react");
|
|
@@ -23900,10 +23921,10 @@ function NavbarLayout(props) {
|
|
|
23900
23921
|
position: "sticky",
|
|
23901
23922
|
left: "left0",
|
|
23902
23923
|
zIndex: ["z_var", {
|
|
23903
|
-
"--zIndex": (0,
|
|
23924
|
+
"--zIndex": (0, import_runtime106.maybeCssVar)(zIndices.navbar)
|
|
23904
23925
|
}],
|
|
23905
23926
|
width: ["w_var", {
|
|
23906
|
-
"--width": (0,
|
|
23927
|
+
"--width": (0, import_runtime106.maybeCssVar)(__maybeInc21(innerWidth))
|
|
23907
23928
|
}]
|
|
23908
23929
|
}
|
|
23909
23930
|
) : (
|
|
@@ -23912,10 +23933,10 @@ function NavbarLayout(props) {
|
|
|
23912
23933
|
position: "fixed",
|
|
23913
23934
|
left: "left0",
|
|
23914
23935
|
zIndex: ["z_var", {
|
|
23915
|
-
"--zIndex": (0,
|
|
23936
|
+
"--zIndex": (0, import_runtime106.maybeCssVar)(zIndices.navbar)
|
|
23916
23937
|
}],
|
|
23917
23938
|
width: ["w_var", {
|
|
23918
|
-
"--width": (0,
|
|
23939
|
+
"--width": (0, import_runtime106.maybeCssVar)(__maybeInc21(innerWidth))
|
|
23919
23940
|
}],
|
|
23920
23941
|
transition: "transitionTop"
|
|
23921
23942
|
}
|
|
@@ -23924,25 +23945,25 @@ function NavbarLayout(props) {
|
|
|
23924
23945
|
top: autoHideState === "revealed" ? 0 : -navHeight
|
|
23925
23946
|
} : void 0;
|
|
23926
23947
|
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,
|
|
23948
|
+
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
23949
|
display: "df",
|
|
23929
23950
|
flexDirection: "fdc",
|
|
23930
23951
|
width: "wfc",
|
|
23931
23952
|
minWidth: "mw100"
|
|
23932
23953
|
}), ...tid, children: [
|
|
23933
|
-
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ref: spacerRef, ...(0,
|
|
23954
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ref: spacerRef, ...(0, import_runtime106.mergeProps)(void 0, {
|
|
23934
23955
|
height: navHeight
|
|
23935
23956
|
}, {
|
|
23936
23957
|
flexShrink: "fs0",
|
|
23937
23958
|
width: "w100"
|
|
23938
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ref: navMetricsRef, ...(0,
|
|
23959
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { ref: navMetricsRef, ...(0, import_runtime106.mergeProps)(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
23939
23960
|
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
23940
23961
|
] }) }) });
|
|
23941
23962
|
}
|
|
23942
23963
|
|
|
23943
23964
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
23944
23965
|
var import_react137 = require("react");
|
|
23945
|
-
var
|
|
23966
|
+
var import_runtime107 = require("@homebound/truss/runtime");
|
|
23946
23967
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
23947
23968
|
var __maybeInc22 = (inc) => {
|
|
23948
23969
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -23974,24 +23995,24 @@ function PageHeaderLayout(props) {
|
|
|
23974
23995
|
const innerCss = autoHideState === "static" ? {
|
|
23975
23996
|
position: "sticky",
|
|
23976
23997
|
left: ["left_var", {
|
|
23977
|
-
"--left": (0,
|
|
23998
|
+
"--left": (0, import_runtime107.maybeCssVar)(__maybeInc22(headerLeft))
|
|
23978
23999
|
}],
|
|
23979
24000
|
width: ["w_var", {
|
|
23980
|
-
"--width": (0,
|
|
24001
|
+
"--width": (0, import_runtime107.maybeCssVar)(__maybeInc22(headerWidth))
|
|
23981
24002
|
}],
|
|
23982
24003
|
zIndex: ["z_var", {
|
|
23983
|
-
"--zIndex": (0,
|
|
24004
|
+
"--zIndex": (0, import_runtime107.maybeCssVar)(zIndices.pageStickyHeader)
|
|
23984
24005
|
}]
|
|
23985
24006
|
} : {
|
|
23986
24007
|
position: "fixed",
|
|
23987
24008
|
left: ["left_var", {
|
|
23988
|
-
"--left": (0,
|
|
24009
|
+
"--left": (0, import_runtime107.maybeCssVar)(__maybeInc22(headerLeft))
|
|
23989
24010
|
}],
|
|
23990
24011
|
width: ["w_var", {
|
|
23991
|
-
"--width": (0,
|
|
24012
|
+
"--width": (0, import_runtime107.maybeCssVar)(__maybeInc22(headerWidth))
|
|
23992
24013
|
}],
|
|
23993
24014
|
zIndex: ["z_var", {
|
|
23994
|
-
"--zIndex": (0,
|
|
24015
|
+
"--zIndex": (0, import_runtime107.maybeCssVar)(zIndices.pageStickyHeader)
|
|
23995
24016
|
}],
|
|
23996
24017
|
transition: "transitionTop"
|
|
23997
24018
|
};
|
|
@@ -23999,17 +24020,17 @@ function PageHeaderLayout(props) {
|
|
|
23999
24020
|
top: autoHideState === "revealed" ? outerTop : `calc(${outerTop} - ${headerHeight}px)`
|
|
24000
24021
|
} : void 0;
|
|
24001
24022
|
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,
|
|
24023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)("div", { ...(0, import_runtime107.mergeProps)(void 0, cssVars, {
|
|
24003
24024
|
display: "df",
|
|
24004
24025
|
flexDirection: "fdc",
|
|
24005
24026
|
width: "w100"
|
|
24006
24027
|
}), ...tid, children: [
|
|
24007
|
-
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { ref: spacerRef, ...(0,
|
|
24028
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { ref: spacerRef, ...(0, import_runtime107.mergeProps)(void 0, {
|
|
24008
24029
|
height: headerHeight
|
|
24009
24030
|
}, {
|
|
24010
24031
|
flexShrink: "fs0",
|
|
24011
24032
|
width: "w100"
|
|
24012
|
-
}), children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { ref: headerMetricsRef, ...(0,
|
|
24033
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { ref: headerMetricsRef, ...(0, import_runtime107.mergeProps)(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
24013
24034
|
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
|
|
24014
24035
|
] }) });
|
|
24015
24036
|
}
|