@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.js
CHANGED
|
@@ -19748,13 +19748,13 @@ function toPageNumberSize(page) {
|
|
|
19748
19748
|
import { Fragment as Fragment34, useCallback as useCallback24, useMemo as useMemo36, useRef as useRef47 } from "react";
|
|
19749
19749
|
import { useMenuTrigger as useMenuTrigger3 } from "react-aria";
|
|
19750
19750
|
import { useMenuTriggerState as useMenuTriggerState3 } from "react-stately";
|
|
19751
|
+
import { trussProps as trussProps70 } from "@homebound/truss/runtime";
|
|
19751
19752
|
import { jsx as jsx143, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
19752
19753
|
function EditColumnsButton(props) {
|
|
19753
19754
|
const {
|
|
19754
19755
|
defaultOpen,
|
|
19755
19756
|
disabled,
|
|
19756
19757
|
columns,
|
|
19757
|
-
trigger,
|
|
19758
19758
|
api
|
|
19759
19759
|
} = props;
|
|
19760
19760
|
const state = useMenuTriggerState3({
|
|
@@ -19766,7 +19766,7 @@ function EditColumnsButton(props) {
|
|
|
19766
19766
|
} = useMenuTrigger3({
|
|
19767
19767
|
isDisabled: !!disabled
|
|
19768
19768
|
}, state, buttonRef);
|
|
19769
|
-
const tid = useTestIds(props,
|
|
19769
|
+
const tid = useTestIds(props, "kanban");
|
|
19770
19770
|
const {
|
|
19771
19771
|
sm
|
|
19772
19772
|
} = useBreakpoint();
|
|
@@ -19785,12 +19785,38 @@ function EditColumnsButton(props) {
|
|
|
19785
19785
|
api.resetColumnWidths();
|
|
19786
19786
|
api.setVisibleColumns(columns.filter((column2) => column2.canHide ? ids.includes(column2.id) : true).map((c) => c.id));
|
|
19787
19787
|
}, [columns, api]);
|
|
19788
|
-
return /* @__PURE__ */ jsx143(OverlayTrigger, { ...props,
|
|
19789
|
-
|
|
19788
|
+
return /* @__PURE__ */ jsx143(OverlayTrigger, { ...props, trigger: {
|
|
19789
|
+
icon: "kanban",
|
|
19790
|
+
size: "md",
|
|
19791
|
+
label: "",
|
|
19792
|
+
variant: "secondaryBlack"
|
|
19793
|
+
}, menuTriggerProps, state, buttonRef, hideEndAdornment: sm, ...tid, children: /* @__PURE__ */ jsxs72("div", { ...trussProps70({
|
|
19794
|
+
display: "df",
|
|
19795
|
+
flexDirection: "fdc",
|
|
19796
|
+
backgroundColor: ["bgColor_var", {
|
|
19797
|
+
"--backgroundColor": "var(--b-surface)"
|
|
19798
|
+
}],
|
|
19799
|
+
maxWidth: "maxw_326px",
|
|
19800
|
+
maxHeight: "maxh_512px",
|
|
19801
|
+
boxShadow: "h_bshHover"
|
|
19802
|
+
}), children: [
|
|
19803
|
+
/* @__PURE__ */ jsx143("div", { className: "dg gtc_1fr_auto gap2 pt2 pb2 pr2 pl2 fg1 mh0 oya", children: options.map((option) => /* @__PURE__ */ jsxs72(Fragment34, { children: [
|
|
19790
19804
|
/* @__PURE__ */ jsx143("div", { className: "fw4 fz_14px lh_20px wsnw oh to_ellipsis pr1", children: option.label }),
|
|
19791
19805
|
/* @__PURE__ */ jsx143(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}`] })
|
|
19792
|
-
] }, option.value)),
|
|
19793
|
-
/* @__PURE__ */ jsx143("div", {
|
|
19806
|
+
] }, option.value)) }),
|
|
19807
|
+
/* @__PURE__ */ jsx143("div", { ...trussProps70({
|
|
19808
|
+
display: "df",
|
|
19809
|
+
justifyContent: "jcc",
|
|
19810
|
+
paddingTop: "pt2",
|
|
19811
|
+
paddingBottom: "pb2",
|
|
19812
|
+
paddingRight: "pr2",
|
|
19813
|
+
paddingLeft: "pl2",
|
|
19814
|
+
borderTopStyle: "bts_solid",
|
|
19815
|
+
borderTopWidth: "btw_1px",
|
|
19816
|
+
borderColor: ["bc_var", {
|
|
19817
|
+
"--borderColor": "var(--b-on-surface-muted)"
|
|
19818
|
+
}]
|
|
19819
|
+
}), children: /* @__PURE__ */ jsx143(Button, { variant: "tertiary", label: "Reset Column Widths", onClick: () => api.resetColumnWidths() }) })
|
|
19794
19820
|
] }) });
|
|
19795
19821
|
}
|
|
19796
19822
|
|
|
@@ -19816,7 +19842,7 @@ function ViewToggleButton({ view, onChange, defaultOpen }) {
|
|
|
19816
19842
|
}
|
|
19817
19843
|
|
|
19818
19844
|
// src/components/Table/TableActions.tsx
|
|
19819
|
-
import { trussProps as
|
|
19845
|
+
import { trussProps as trussProps71 } from "@homebound/truss/runtime";
|
|
19820
19846
|
import { jsx as jsx145, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
19821
19847
|
function TableActions(props) {
|
|
19822
19848
|
const {
|
|
@@ -19824,7 +19850,7 @@ function TableActions(props) {
|
|
|
19824
19850
|
children,
|
|
19825
19851
|
right
|
|
19826
19852
|
} = props;
|
|
19827
|
-
return /* @__PURE__ */ jsxs73("div", { ...
|
|
19853
|
+
return /* @__PURE__ */ jsxs73("div", { ...trussProps71({
|
|
19828
19854
|
...{
|
|
19829
19855
|
display: "df",
|
|
19830
19856
|
gap: "gap1",
|
|
@@ -19848,7 +19874,7 @@ function isGridTableProps(props) {
|
|
|
19848
19874
|
import { useMemo as useMemo37 } from "react";
|
|
19849
19875
|
|
|
19850
19876
|
// src/components/LoadingSkeleton.tsx
|
|
19851
|
-
import { trussProps as
|
|
19877
|
+
import { trussProps as trussProps72, maybeCssVar as maybeCssVar40 } from "@homebound/truss/runtime";
|
|
19852
19878
|
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
19853
19879
|
function LoadingSkeleton({
|
|
19854
19880
|
rows = 1,
|
|
@@ -19861,7 +19887,7 @@ function LoadingSkeleton({
|
|
|
19861
19887
|
const rowHeight = sizeToPixels2[size];
|
|
19862
19888
|
const rowCells = (rowNumber) => {
|
|
19863
19889
|
const flexGrowForCell = randomizeWidths ? getRandomizedFlexBasisByRowIndex(rowNumber) : 1;
|
|
19864
|
-
return cellArray.map((_, i) => /* @__PURE__ */ jsx146("div", { ...
|
|
19890
|
+
return cellArray.map((_, i) => /* @__PURE__ */ jsx146("div", { ...trussProps72({
|
|
19865
19891
|
borderRadius: "br4",
|
|
19866
19892
|
animation: "animation_pulse_2s_cubic_bezier_0_4_0_0_6_1_infinite",
|
|
19867
19893
|
flexGrow: ["flexGrow_var", {
|
|
@@ -19872,7 +19898,7 @@ function LoadingSkeleton({
|
|
|
19872
19898
|
}]
|
|
19873
19899
|
}) }, `row-${rowNumber}-cell-${i}`));
|
|
19874
19900
|
};
|
|
19875
|
-
return /* @__PURE__ */ jsx146("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ jsx146("div", { ...
|
|
19901
|
+
return /* @__PURE__ */ jsx146("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ jsx146("div", { ...trussProps72({
|
|
19876
19902
|
display: "df",
|
|
19877
19903
|
gap: "gap1",
|
|
19878
19904
|
marginBottom: "mb1",
|
|
@@ -19946,7 +19972,7 @@ function parseStoredTableView(raw) {
|
|
|
19946
19972
|
}
|
|
19947
19973
|
|
|
19948
19974
|
// src/components/Layout/GridTableLayout/GridTableLayout.tsx
|
|
19949
|
-
import { trussProps as
|
|
19975
|
+
import { trussProps as trussProps73, maybeCssVar as maybeCssVar41 } from "@homebound/truss/runtime";
|
|
19950
19976
|
import { Fragment as Fragment36, jsx as jsx148, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
19951
19977
|
var __maybeInc14 = (inc) => {
|
|
19952
19978
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -19990,12 +20016,7 @@ function GridTableLayoutComponent(props) {
|
|
|
19990
20016
|
}, [visibleColumnIds, layoutState]);
|
|
19991
20017
|
const visibleColumnsStorageKey = layoutState?.persistedColumnsStorageKey;
|
|
19992
20018
|
const tableActionsEl = /* @__PURE__ */ jsx148(TableActions, { right: (hasHideableColumns || withCardView) && /* @__PURE__ */ jsxs75("div", { className: "df gap1", children: [
|
|
19993
|
-
hasHideableColumns && /* @__PURE__ */ jsx148(EditColumnsButton, { columns, api, tooltip: "Display columns",
|
|
19994
|
-
icon: "kanban",
|
|
19995
|
-
size: "md",
|
|
19996
|
-
label: "",
|
|
19997
|
-
variant: "secondaryBlack"
|
|
19998
|
-
}, ...tid.editColumnsButton }),
|
|
20019
|
+
hasHideableColumns && /* @__PURE__ */ jsx148(EditColumnsButton, { columns, api, tooltip: "Display columns", ...tid.editColumnsButton }),
|
|
19999
20020
|
withCardView && /* @__PURE__ */ jsx148(ViewToggleButton, { view, onChange: setView })
|
|
20000
20021
|
] }), xss: {
|
|
20001
20022
|
paddingTop: "pt3",
|
|
@@ -20015,7 +20036,7 @@ function GridTableLayoutComponent(props) {
|
|
|
20015
20036
|
layoutState && totalCount !== void 0 && /* @__PURE__ */ jsx148(Pagination, { page: [layoutState.page, layoutState._pagination.setPage], totalCount, pageSizes: layoutState._pagination.pageSizes, ...tid.pagination })
|
|
20016
20037
|
] });
|
|
20017
20038
|
const tableScrollContent = /* @__PURE__ */ jsxs75(Fragment36, { children: [
|
|
20018
|
-
showTableActions && /* @__PURE__ */ jsx148("div", { ref: tableActionsRef, ...
|
|
20039
|
+
showTableActions && /* @__PURE__ */ jsx148("div", { ref: tableActionsRef, ...trussProps73({
|
|
20019
20040
|
...inDocumentScrollLayout ? {
|
|
20020
20041
|
transition: "transitionTop",
|
|
20021
20042
|
position: "sticky",
|
|
@@ -20147,7 +20168,7 @@ function Header2(props) {
|
|
|
20147
20168
|
actionMenu
|
|
20148
20169
|
} = props;
|
|
20149
20170
|
const tids = useTestIds(props);
|
|
20150
|
-
return /* @__PURE__ */ jsx148(FullBleed, { children: /* @__PURE__ */ jsxs75("header", { ...
|
|
20171
|
+
return /* @__PURE__ */ jsx148(FullBleed, { children: /* @__PURE__ */ jsxs75("header", { ...trussProps73({
|
|
20151
20172
|
...{
|
|
20152
20173
|
paddingTop: "pt3",
|
|
20153
20174
|
paddingBottom: "pb3",
|
|
@@ -20226,7 +20247,7 @@ function useRightPaneContext() {
|
|
|
20226
20247
|
// src/components/Layout/RightPaneLayout/RightPaneLayout.tsx
|
|
20227
20248
|
import { AnimatePresence as AnimatePresence3, motion as motion3 } from "framer-motion";
|
|
20228
20249
|
import { useEffect as useEffect29 } from "react";
|
|
20229
|
-
import { trussProps as
|
|
20250
|
+
import { trussProps as trussProps74, maybeCssVar as maybeCssVar42 } from "@homebound/truss/runtime";
|
|
20230
20251
|
import { Fragment as Fragment37, jsx as jsx151, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
20231
20252
|
var __maybeInc15 = (inc) => {
|
|
20232
20253
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -20246,7 +20267,7 @@ function RightPaneLayout(props) {
|
|
|
20246
20267
|
} = useRightPaneContext();
|
|
20247
20268
|
useEffect29(() => closePane, [closePane]);
|
|
20248
20269
|
return /* @__PURE__ */ jsx151("div", { className: "h100 df oxh", children: /* @__PURE__ */ jsxs76(Fragment37, { children: [
|
|
20249
|
-
/* @__PURE__ */ jsx151("div", { ...
|
|
20270
|
+
/* @__PURE__ */ jsx151("div", { ...trussProps74({
|
|
20250
20271
|
...{
|
|
20251
20272
|
width: ["w_var", {
|
|
20252
20273
|
"--width": maybeCssVar42(__maybeInc15(`calc(100% - ${paneWidth + 24}px)`))
|
|
@@ -20271,7 +20292,7 @@ function RightPaneLayout(props) {
|
|
|
20271
20292
|
} : {}
|
|
20272
20293
|
}
|
|
20273
20294
|
}), children }),
|
|
20274
|
-
/* @__PURE__ */ jsxs76("div", { ...
|
|
20295
|
+
/* @__PURE__ */ jsxs76("div", { ...trussProps74({
|
|
20275
20296
|
position: "relative",
|
|
20276
20297
|
...!!defaultPaneContent ? {
|
|
20277
20298
|
width: ["w_var", {
|
|
@@ -20279,7 +20300,7 @@ function RightPaneLayout(props) {
|
|
|
20279
20300
|
}]
|
|
20280
20301
|
} : {}
|
|
20281
20302
|
}), children: [
|
|
20282
|
-
defaultPaneContent && /* @__PURE__ */ jsx151("div", { ...
|
|
20303
|
+
defaultPaneContent && /* @__PURE__ */ jsx151("div", { ...trussProps74({
|
|
20283
20304
|
height: "h100",
|
|
20284
20305
|
width: ["w_var", {
|
|
20285
20306
|
"--width": `${paneWidth}px`
|
|
@@ -20297,7 +20318,7 @@ function RightPaneLayout(props) {
|
|
|
20297
20318
|
{
|
|
20298
20319
|
layout: "position",
|
|
20299
20320
|
"data-testid": "rightPaneContent",
|
|
20300
|
-
...
|
|
20321
|
+
...trussProps74({
|
|
20301
20322
|
backgroundColor: ["bgColor_var", {
|
|
20302
20323
|
"--backgroundColor": maybeCssVar42(paneBgColor)
|
|
20303
20324
|
}],
|
|
@@ -20380,7 +20401,7 @@ function SidePanel(props) {
|
|
|
20380
20401
|
}
|
|
20381
20402
|
|
|
20382
20403
|
// src/components/Layout/TableReviewLayout/TableReviewLayout.tsx
|
|
20383
|
-
import { trussProps as
|
|
20404
|
+
import { trussProps as trussProps75, maybeCssVar as maybeCssVar43 } from "@homebound/truss/runtime";
|
|
20384
20405
|
import { jsx as jsx154, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
20385
20406
|
var defaultRightPaneWidth = 450;
|
|
20386
20407
|
function TableReviewLayout(props) {
|
|
@@ -20422,7 +20443,7 @@ function TableReviewLayout(props) {
|
|
|
20422
20443
|
bordered: true
|
|
20423
20444
|
}, stickyHeader: true });
|
|
20424
20445
|
}
|
|
20425
|
-
return /* @__PURE__ */ jsxs78("div", { ...
|
|
20446
|
+
return /* @__PURE__ */ jsxs78("div", { ...trussProps75({
|
|
20426
20447
|
position: "fixed",
|
|
20427
20448
|
top: "top0",
|
|
20428
20449
|
bottom: "bottom0",
|
|
@@ -20447,7 +20468,7 @@ function TableReviewLayout(props) {
|
|
|
20447
20468
|
/* @__PURE__ */ jsx154("div", { className: "fw4 fz_14px lh_20px gray700 mt2", ...tid.description, children: description })
|
|
20448
20469
|
] }),
|
|
20449
20470
|
/* @__PURE__ */ jsxs78("div", { className: "fg1 df mh0", ...tid.content, children: [
|
|
20450
|
-
/* @__PURE__ */ jsx154("div", { ...
|
|
20471
|
+
/* @__PURE__ */ jsx154("div", { ...trussProps75({
|
|
20451
20472
|
...{
|
|
20452
20473
|
flexGrow: "fg1",
|
|
20453
20474
|
overflowY: "oya",
|
|
@@ -20470,7 +20491,7 @@ function TableReviewLayout(props) {
|
|
|
20470
20491
|
ease: "linear",
|
|
20471
20492
|
duration: 0.2
|
|
20472
20493
|
}, className: "df fdc fs0 relative", children: [
|
|
20473
|
-
/* @__PURE__ */ jsxs78("div", { ...
|
|
20494
|
+
/* @__PURE__ */ jsxs78("div", { ...trussProps75({
|
|
20474
20495
|
position: "absolute",
|
|
20475
20496
|
top: ["top_var", {
|
|
20476
20497
|
"--top": `${-32}px`
|
|
@@ -20593,7 +20614,7 @@ function ButtonDatePicker(props) {
|
|
|
20593
20614
|
// src/components/ButtonGroup.tsx
|
|
20594
20615
|
import { useRef as useRef51 } from "react";
|
|
20595
20616
|
import { useButton as useButton10, useFocusRing as useFocusRing12, useHover as useHover15 } from "react-aria";
|
|
20596
|
-
import { trussProps as
|
|
20617
|
+
import { trussProps as trussProps76 } from "@homebound/truss/runtime";
|
|
20597
20618
|
import { jsx as jsx157, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
20598
20619
|
function ButtonGroup(props) {
|
|
20599
20620
|
const {
|
|
@@ -20604,7 +20625,7 @@ function ButtonGroup(props) {
|
|
|
20604
20625
|
const tid = useTestIds(props, "buttonGroup");
|
|
20605
20626
|
return (
|
|
20606
20627
|
// Adding `line-height: 0` prevent inheriting line-heights that might throw off sizing within the button group.
|
|
20607
|
-
/* @__PURE__ */ jsx157("div", { ...tid, ...
|
|
20628
|
+
/* @__PURE__ */ jsx157("div", { ...tid, ...trussProps76({
|
|
20608
20629
|
...{
|
|
20609
20630
|
display: "df",
|
|
20610
20631
|
lineHeight: "lh_0"
|
|
@@ -20653,10 +20674,10 @@ function GroupButton(props) {
|
|
|
20653
20674
|
isHovered
|
|
20654
20675
|
} = useHover15(ariaProps);
|
|
20655
20676
|
const tid = useTestIds(props);
|
|
20656
|
-
return /* @__PURE__ */ jsx157("span", { ...
|
|
20677
|
+
return /* @__PURE__ */ jsx157("span", { ...trussProps76(getButtonStyles2(isFirst, isLast)), children: maybeTooltip({
|
|
20657
20678
|
title: resolveTooltip(disabled, tooltip),
|
|
20658
20679
|
placement: "top",
|
|
20659
|
-
children: /* @__PURE__ */ jsxs80("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...
|
|
20680
|
+
children: /* @__PURE__ */ jsxs80("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...trussProps76({
|
|
20660
20681
|
...{
|
|
20661
20682
|
fontWeight: "fw6",
|
|
20662
20683
|
fontSize: "fz_14px",
|
|
@@ -20763,7 +20784,7 @@ import { useHover as useHover16 } from "react-aria";
|
|
|
20763
20784
|
// src/components/Tag.tsx
|
|
20764
20785
|
import { useResizeObserver as useResizeObserver6 } from "@react-aria/utils";
|
|
20765
20786
|
import { useRef as useRef52, useState as useState48 } from "react";
|
|
20766
|
-
import { trussProps as
|
|
20787
|
+
import { trussProps as trussProps77 } from "@homebound/truss/runtime";
|
|
20767
20788
|
import { jsx as jsx158, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
20768
20789
|
function Tag(props) {
|
|
20769
20790
|
const {
|
|
@@ -20787,7 +20808,7 @@ function Tag(props) {
|
|
|
20787
20808
|
});
|
|
20788
20809
|
return maybeTooltip({
|
|
20789
20810
|
title: !preventTooltip && showTooltip ? text : void 0,
|
|
20790
|
-
children: /* @__PURE__ */ jsxs81("span", { ...tid, ...
|
|
20811
|
+
children: /* @__PURE__ */ jsxs81("span", { ...tid, ...trussProps77({
|
|
20791
20812
|
...{
|
|
20792
20813
|
display: "dif",
|
|
20793
20814
|
fontWeight: "fw6",
|
|
@@ -20837,7 +20858,7 @@ function getStyles(type) {
|
|
|
20837
20858
|
}
|
|
20838
20859
|
|
|
20839
20860
|
// src/components/Card.tsx
|
|
20840
|
-
import { trussProps as
|
|
20861
|
+
import { trussProps as trussProps78, maybeCssVar as maybeCssVar44 } from "@homebound/truss/runtime";
|
|
20841
20862
|
import { jsx as jsx159, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
20842
20863
|
function Card(props) {
|
|
20843
20864
|
const {
|
|
@@ -20868,8 +20889,8 @@ function Card(props) {
|
|
|
20868
20889
|
...isHovered && cardHoverStyles,
|
|
20869
20890
|
...isDisabled && disabledStyles3
|
|
20870
20891
|
}), [isDisabled, isHovered, bordered, type, isList]);
|
|
20871
|
-
return /* @__PURE__ */ jsxs82("div", { ...
|
|
20872
|
-
/* @__PURE__ */ jsx159("div", { ...
|
|
20892
|
+
return /* @__PURE__ */ jsxs82("div", { ...trussProps78(styles), ...hoverProps, ...tid, children: [
|
|
20893
|
+
/* @__PURE__ */ jsx159("div", { ...trussProps78({
|
|
20873
20894
|
...{
|
|
20874
20895
|
height: ["h_var", {
|
|
20875
20896
|
"--height": `${imgHeight}px`
|
|
@@ -20886,14 +20907,14 @@ function Card(props) {
|
|
|
20886
20907
|
filter: "filter_brightness_1"
|
|
20887
20908
|
},
|
|
20888
20909
|
...isHovered && !isList && imageHoverStyles
|
|
20889
|
-
}), children: /* @__PURE__ */ jsx159("img", { ...
|
|
20910
|
+
}), children: /* @__PURE__ */ jsx159("img", { ...trussProps78({
|
|
20890
20911
|
width: "w100",
|
|
20891
20912
|
height: "h100",
|
|
20892
20913
|
objectFit: ["objectFit_var", {
|
|
20893
20914
|
"--objectFit": maybeCssVar44(imageFit)
|
|
20894
20915
|
}]
|
|
20895
20916
|
}), src: imgSrc, alt: title, ...tid.img }) }),
|
|
20896
|
-
isHovered && buttonMenuItems && /* @__PURE__ */ jsx159("div", { ...
|
|
20917
|
+
isHovered && buttonMenuItems && /* @__PURE__ */ jsx159("div", { ...trussProps78({
|
|
20897
20918
|
position: "absolute",
|
|
20898
20919
|
right: "right1",
|
|
20899
20920
|
top: "top1",
|
|
@@ -20909,7 +20930,7 @@ function Card(props) {
|
|
|
20909
20930
|
/* @__PURE__ */ jsxs82("div", { className: "df fdc aifs gap1", children: [
|
|
20910
20931
|
/* @__PURE__ */ jsxs82("div", { children: [
|
|
20911
20932
|
/* @__PURE__ */ jsx159("div", { className: "fw6 fz_12px lh_16px gray700", ...tid.subtitle, children: subtitle }),
|
|
20912
|
-
/* @__PURE__ */ jsx159("div", { ...
|
|
20933
|
+
/* @__PURE__ */ jsx159("div", { ...trussProps78({
|
|
20913
20934
|
fontWeight: "fw6",
|
|
20914
20935
|
fontSize: "fz_14px",
|
|
20915
20936
|
lineHeight: "lh_20px",
|
|
@@ -20999,7 +21020,7 @@ function useDnDGridContext() {
|
|
|
20999
21020
|
}
|
|
21000
21021
|
|
|
21001
21022
|
// src/components/DnDGrid/DnDGrid.tsx
|
|
21002
|
-
import { trussProps as
|
|
21023
|
+
import { trussProps as trussProps79 } from "@homebound/truss/runtime";
|
|
21003
21024
|
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
21004
21025
|
function DnDGrid(props) {
|
|
21005
21026
|
const {
|
|
@@ -21182,7 +21203,7 @@ function DnDGrid(props) {
|
|
|
21182
21203
|
return /* @__PURE__ */ jsx161(DnDGridContext.Provider, { value: {
|
|
21183
21204
|
dragEl,
|
|
21184
21205
|
onDragHandleKeyDown
|
|
21185
|
-
}, children: /* @__PURE__ */ jsx161("div", { ref: gridEl, ...
|
|
21206
|
+
}, children: /* @__PURE__ */ jsx161("div", { ref: gridEl, ...trussProps79({
|
|
21186
21207
|
...{
|
|
21187
21208
|
containerType: "ctis",
|
|
21188
21209
|
display: "dg"
|
|
@@ -21195,7 +21216,7 @@ var gridCloneKey = "dndgrid-clone";
|
|
|
21195
21216
|
|
|
21196
21217
|
// src/components/DnDGrid/DnDGridItemHandle.tsx
|
|
21197
21218
|
import { mergeProps as mergeProps24, useFocusRing as useFocusRing13, useHover as useHover17 } from "react-aria";
|
|
21198
|
-
import { trussProps as
|
|
21219
|
+
import { trussProps as trussProps80 } from "@homebound/truss/runtime";
|
|
21199
21220
|
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
21200
21221
|
function DnDGridItemHandle(props) {
|
|
21201
21222
|
const {
|
|
@@ -21225,7 +21246,7 @@ function DnDGridItemHandle(props) {
|
|
|
21225
21246
|
borderRadius: "br4",
|
|
21226
21247
|
borderWidth: "bw1"
|
|
21227
21248
|
};
|
|
21228
|
-
return /* @__PURE__ */ jsx162("button", { ...
|
|
21249
|
+
return /* @__PURE__ */ jsx162("button", { ...trussProps80({
|
|
21229
21250
|
...compact ? iconButtonCompact2 : iconButtonNormal2,
|
|
21230
21251
|
...{
|
|
21231
21252
|
cursor: "cursor_grab",
|
|
@@ -21287,7 +21308,7 @@ var gridItemDataAttribute = "data-grid-item-span";
|
|
|
21287
21308
|
var ResponsiveGridContext = createContext11(void 0);
|
|
21288
21309
|
|
|
21289
21310
|
// src/components/Grid/ResponsiveGrid.tsx
|
|
21290
|
-
import { trussProps as
|
|
21311
|
+
import { trussProps as trussProps81 } from "@homebound/truss/runtime";
|
|
21291
21312
|
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
21292
21313
|
function ResponsiveGrid(props) {
|
|
21293
21314
|
const {
|
|
@@ -21308,12 +21329,12 @@ function ResponsiveGrid(props) {
|
|
|
21308
21329
|
gap,
|
|
21309
21330
|
columns
|
|
21310
21331
|
}), [minColumnWidth, gap, columns]);
|
|
21311
|
-
return /* @__PURE__ */ jsx163(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ jsx163("div", { ...
|
|
21332
|
+
return /* @__PURE__ */ jsx163(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ jsx163("div", { ...trussProps81(gridStyles), children }) });
|
|
21312
21333
|
}
|
|
21313
21334
|
|
|
21314
21335
|
// src/components/Grid/ResponsiveGridItem.tsx
|
|
21315
21336
|
import { mergeProps as mergeProps25 } from "react-aria";
|
|
21316
|
-
import { trussProps as
|
|
21337
|
+
import { trussProps as trussProps82 } from "@homebound/truss/runtime";
|
|
21317
21338
|
import { jsx as jsx164 } from "react/jsx-runtime";
|
|
21318
21339
|
function ResponsiveGridItem(props) {
|
|
21319
21340
|
const {
|
|
@@ -21326,7 +21347,7 @@ function ResponsiveGridItem(props) {
|
|
|
21326
21347
|
} = useResponsiveGridItem({
|
|
21327
21348
|
colSpan
|
|
21328
21349
|
});
|
|
21329
|
-
return /* @__PURE__ */ jsx164("div", { ...mergeProps25(gridItemProps,
|
|
21350
|
+
return /* @__PURE__ */ jsx164("div", { ...mergeProps25(gridItemProps, trussProps82(gridItemStyles)), children });
|
|
21330
21351
|
}
|
|
21331
21352
|
|
|
21332
21353
|
// src/components/Grid/useResponsiveGrid.ts
|
|
@@ -21477,7 +21498,7 @@ function HbSpinnerProvider({
|
|
|
21477
21498
|
}
|
|
21478
21499
|
|
|
21479
21500
|
// src/components/HomeboundLogo.tsx
|
|
21480
|
-
import { trussProps as
|
|
21501
|
+
import { trussProps as trussProps83, maybeCssVar as maybeCssVar46 } from "@homebound/truss/runtime";
|
|
21481
21502
|
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
21482
21503
|
var __maybeInc17 = (inc) => {
|
|
21483
21504
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -21488,7 +21509,7 @@ function HomeboundLogo(props) {
|
|
|
21488
21509
|
width: width2 = "auto",
|
|
21489
21510
|
height = "auto"
|
|
21490
21511
|
} = props;
|
|
21491
|
-
return /* @__PURE__ */ jsx166("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...
|
|
21512
|
+
return /* @__PURE__ */ jsx166("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...trussProps83({
|
|
21492
21513
|
fill: ["fill_var", {
|
|
21493
21514
|
"--fill": maybeCssVar46(fill)
|
|
21494
21515
|
}],
|
|
@@ -21504,7 +21525,7 @@ function HomeboundLogo(props) {
|
|
|
21504
21525
|
// src/components/MaxLines.tsx
|
|
21505
21526
|
import { useLayoutEffect as useLayoutEffect5, useResizeObserver as useResizeObserver7 } from "@react-aria/utils";
|
|
21506
21527
|
import { useCallback as useCallback29, useEffect as useEffect32, useRef as useRef54, useState as useState49 } from "react";
|
|
21507
|
-
import { trussProps as
|
|
21528
|
+
import { trussProps as trussProps84, maybeCssVar as maybeCssVar47 } from "@homebound/truss/runtime";
|
|
21508
21529
|
import { jsx as jsx167, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
21509
21530
|
function MaxLines({
|
|
21510
21531
|
maxLines,
|
|
@@ -21529,7 +21550,7 @@ function MaxLines({
|
|
|
21529
21550
|
onResize
|
|
21530
21551
|
});
|
|
21531
21552
|
return /* @__PURE__ */ jsxs84("div", { children: [
|
|
21532
|
-
/* @__PURE__ */ jsx167("div", { ref: elRef, ...
|
|
21553
|
+
/* @__PURE__ */ jsx167("div", { ref: elRef, ...trussProps84({
|
|
21533
21554
|
...!expanded ? {
|
|
21534
21555
|
WebkitLineClamp: ["lineClamp_var", {
|
|
21535
21556
|
"--WebkitLineClamp": maybeCssVar47(maxLines)
|
|
@@ -21555,7 +21576,7 @@ import { useCallback as useCallback31, useEffect as useEffect33, useMemo as useM
|
|
|
21555
21576
|
// src/components/AppNav/AppNavGroupTrigger.tsx
|
|
21556
21577
|
import { useMemo as useMemo47, useRef as useRef55 } from "react";
|
|
21557
21578
|
import { mergeProps as mergeProps26, useButton as useButton11, useFocusRing as useFocusRing14, useHover as useHover18 } from "react-aria";
|
|
21558
|
-
import { trussProps as
|
|
21579
|
+
import { trussProps as trussProps85, mergeProps as mergeProps_14 } from "@homebound/truss/runtime";
|
|
21559
21580
|
import { jsx as jsx168, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
21560
21581
|
function AppNavGroupTrigger(props) {
|
|
21561
21582
|
const {
|
|
@@ -21599,7 +21620,7 @@ function AppNavGroupTrigger(props) {
|
|
|
21599
21620
|
})
|
|
21600
21621
|
}), children: [
|
|
21601
21622
|
label,
|
|
21602
|
-
/* @__PURE__ */ jsx168("span", { ...
|
|
21623
|
+
/* @__PURE__ */ jsx168("span", { ...trussProps85({
|
|
21603
21624
|
...{
|
|
21604
21625
|
display: "df",
|
|
21605
21626
|
alignItems: "aic",
|
|
@@ -21752,7 +21773,7 @@ function useAppNavGroupExpanded(linkGroup) {
|
|
|
21752
21773
|
}
|
|
21753
21774
|
|
|
21754
21775
|
// src/components/AppNav/AppNavGroup.tsx
|
|
21755
|
-
import { trussProps as
|
|
21776
|
+
import { trussProps as trussProps86, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
|
|
21756
21777
|
import { Fragment as Fragment39, jsx as jsx169, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
21757
21778
|
var __maybeInc18 = (inc) => {
|
|
21758
21779
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -21797,7 +21818,7 @@ function AppNavGroupDisclosure(props) {
|
|
|
21797
21818
|
});
|
|
21798
21819
|
return /* @__PURE__ */ jsxs86("div", { className: "df fdc", ...tid, children: [
|
|
21799
21820
|
/* @__PURE__ */ jsx169(AppNavGroupTrigger, { label: linkGroup.label, navGroupId, expanded, onClick: onToggle, ...tid }),
|
|
21800
|
-
/* @__PURE__ */ jsx169("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...
|
|
21821
|
+
/* @__PURE__ */ jsx169("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...trussProps86({
|
|
21801
21822
|
overflow: "oh",
|
|
21802
21823
|
transition: "transitionHeight",
|
|
21803
21824
|
height: ["h_var", {
|
|
@@ -21829,7 +21850,7 @@ function AppNavGroupMenu({
|
|
|
21829
21850
|
}
|
|
21830
21851
|
|
|
21831
21852
|
// src/components/AppNav/AppNavSectionView.tsx
|
|
21832
|
-
import { trussProps as
|
|
21853
|
+
import { trussProps as trussProps87 } from "@homebound/truss/runtime";
|
|
21833
21854
|
import { jsx as jsx171, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
21834
21855
|
function AppNavSectionView(props) {
|
|
21835
21856
|
const {
|
|
@@ -21855,7 +21876,7 @@ function AppNavSectionView(props) {
|
|
|
21855
21876
|
"--borderColor": "var(--b-surface-separator)"
|
|
21856
21877
|
}]
|
|
21857
21878
|
};
|
|
21858
|
-
return /* @__PURE__ */ jsxs87("div", { ...
|
|
21879
|
+
return /* @__PURE__ */ jsxs87("div", { ...trussProps87({
|
|
21859
21880
|
...{
|
|
21860
21881
|
display: "df",
|
|
21861
21882
|
flexDirection: "fdc",
|
|
@@ -21863,7 +21884,7 @@ function AppNavSectionView(props) {
|
|
|
21863
21884
|
},
|
|
21864
21885
|
...showDivider ? dividerStyles : {}
|
|
21865
21886
|
}), ...tid, children: [
|
|
21866
|
-
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ jsx171("div", { ...
|
|
21887
|
+
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ jsx171("div", { ...trussProps87({
|
|
21867
21888
|
fontWeight: "fw6",
|
|
21868
21889
|
fontSize: "fz_10px",
|
|
21869
21890
|
lineHeight: "lh_14px",
|
|
@@ -21931,7 +21952,7 @@ import { useEffect as useEffect34, useState as useState52 } from "react";
|
|
|
21931
21952
|
import { FocusScope as FocusScope5, usePreventScroll as usePreventScroll2 } from "react-aria";
|
|
21932
21953
|
import { createPortal as createPortal6 } from "react-dom";
|
|
21933
21954
|
import { useLocation } from "react-router-dom";
|
|
21934
|
-
import { trussProps as
|
|
21955
|
+
import { trussProps as trussProps88, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
|
|
21935
21956
|
import { Fragment as Fragment41, jsx as jsx173, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
21936
21957
|
function NavbarMobileMenu(props) {
|
|
21937
21958
|
const {
|
|
@@ -21961,7 +21982,7 @@ function NavbarMobileDrawer({
|
|
|
21961
21982
|
tid
|
|
21962
21983
|
}) {
|
|
21963
21984
|
return /* @__PURE__ */ jsxs88(Fragment41, { children: [
|
|
21964
|
-
/* @__PURE__ */ jsx173(motion5.div, { ...
|
|
21985
|
+
/* @__PURE__ */ jsx173(motion5.div, { ...trussProps88({
|
|
21965
21986
|
position: "fixed",
|
|
21966
21987
|
top: "top0",
|
|
21967
21988
|
right: "right0",
|
|
@@ -21981,7 +22002,7 @@ function NavbarMobileDrawer({
|
|
|
21981
22002
|
ease: "linear",
|
|
21982
22003
|
duration: 0.2
|
|
21983
22004
|
}, onClick: onClose, ...tid.mobileMenuScrim }, "navbarMobileMenuScrim"),
|
|
21984
|
-
/* @__PURE__ */ jsx173(FocusScope5, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ jsxs88(motion5.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...
|
|
22005
|
+
/* @__PURE__ */ jsx173(FocusScope5, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ jsxs88(motion5.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...trussProps88({
|
|
21985
22006
|
position: "fixed",
|
|
21986
22007
|
top: "top0",
|
|
21987
22008
|
bottom: "bottom0",
|
|
@@ -22026,7 +22047,7 @@ function NavbarMobileDrawer({
|
|
|
22026
22047
|
}
|
|
22027
22048
|
|
|
22028
22049
|
// src/components/Navbar/Navbar.tsx
|
|
22029
|
-
import { trussProps as
|
|
22050
|
+
import { trussProps as trussProps89 } from "@homebound/truss/runtime";
|
|
22030
22051
|
import { jsx as jsx174, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
22031
22052
|
function Navbar(props) {
|
|
22032
22053
|
const {
|
|
@@ -22046,7 +22067,7 @@ function Navbar(props) {
|
|
|
22046
22067
|
overflows
|
|
22047
22068
|
} = useContentOverflow(!sm);
|
|
22048
22069
|
const showMobile = sm || overflows;
|
|
22049
|
-
return /* @__PURE__ */ jsx174(ContrastScope, { children: /* @__PURE__ */ jsxs89("nav", { ...
|
|
22070
|
+
return /* @__PURE__ */ jsx174(ContrastScope, { children: /* @__PURE__ */ jsxs89("nav", { ...trussProps89({
|
|
22050
22071
|
backgroundColor: "bgGray800",
|
|
22051
22072
|
flexShrink: "fs0",
|
|
22052
22073
|
display: "df",
|
|
@@ -22066,7 +22087,7 @@ function Navbar(props) {
|
|
|
22066
22087
|
/* @__PURE__ */ jsxs89("div", { className: "df aic gap3 fg1 mw0", children: [
|
|
22067
22088
|
/* @__PURE__ */ jsxs89("div", { className: "df aic fs0 gap2", children: [
|
|
22068
22089
|
showMobile && /* @__PURE__ */ jsx174(NavbarMobileMenu, { items, ...tid }),
|
|
22069
|
-
/* @__PURE__ */ jsx174("div", { ...
|
|
22090
|
+
/* @__PURE__ */ jsx174("div", { ...trussProps89({
|
|
22070
22091
|
flexShrink: "fs0",
|
|
22071
22092
|
...hideBrandOnMobile && showMobile ? {
|
|
22072
22093
|
display: "dn"
|
|
@@ -22075,7 +22096,7 @@ function Navbar(props) {
|
|
|
22075
22096
|
] }),
|
|
22076
22097
|
!sm && // Stays mounted while overflowing (hidden) so the items remain measurable and the bar
|
|
22077
22098
|
// can expand again as space frees up.
|
|
22078
|
-
/* @__PURE__ */ jsx174("div", { ref: containerRef, ...
|
|
22099
|
+
/* @__PURE__ */ jsx174("div", { ref: containerRef, ...trussProps89({
|
|
22079
22100
|
display: "df",
|
|
22080
22101
|
alignItems: "aic",
|
|
22081
22102
|
flexGrow: "fg1",
|
|
@@ -22110,7 +22131,7 @@ import { useEffect as useEffect35, useMemo as useMemo49, useRef as useRef56, use
|
|
|
22110
22131
|
import { mergeProps as mergeProps27, useFocusRing as useFocusRing15, useHover as useHover19 } from "react-aria";
|
|
22111
22132
|
import { matchPath } from "react-router";
|
|
22112
22133
|
import { Link as Link5, useLocation as useLocation2 } from "react-router-dom";
|
|
22113
|
-
import { trussProps as
|
|
22134
|
+
import { trussProps as trussProps90, maybeCssVar as maybeCssVar50 } from "@homebound/truss/runtime";
|
|
22114
22135
|
import { Fragment as Fragment42, jsx as jsx175, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
22115
22136
|
function TabsWithContent(props) {
|
|
22116
22137
|
const styles = hideTabs(props) ? {} : {
|
|
@@ -22143,7 +22164,7 @@ function TabContent(props) {
|
|
|
22143
22164
|
return (
|
|
22144
22165
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
22145
22166
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
22146
|
-
/* @__PURE__ */ jsx175(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ jsx175("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...
|
|
22167
|
+
/* @__PURE__ */ jsx175(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ jsx175("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...trussProps90(contentXss), children: selectedTab.render() }) })
|
|
22147
22168
|
);
|
|
22148
22169
|
}
|
|
22149
22170
|
function Tabs(props) {
|
|
@@ -22185,7 +22206,7 @@ function Tabs(props) {
|
|
|
22185
22206
|
setActive(selected);
|
|
22186
22207
|
}
|
|
22187
22208
|
}
|
|
22188
|
-
return /* @__PURE__ */ jsxs90("div", { ...
|
|
22209
|
+
return /* @__PURE__ */ jsxs90("div", { ...trussProps90({
|
|
22189
22210
|
...{
|
|
22190
22211
|
display: "df",
|
|
22191
22212
|
alignItems: "aic",
|
|
@@ -22249,7 +22270,7 @@ function TabImpl(props) {
|
|
|
22249
22270
|
role: "tab",
|
|
22250
22271
|
tabIndex: active ? 0 : -1,
|
|
22251
22272
|
...others,
|
|
22252
|
-
...
|
|
22273
|
+
...trussProps90({
|
|
22253
22274
|
...baseStyles5,
|
|
22254
22275
|
...active && activeStyles3,
|
|
22255
22276
|
...isDisabled && disabledStyles4,
|
|
@@ -22370,7 +22391,7 @@ function hideTabs(props) {
|
|
|
22370
22391
|
}
|
|
22371
22392
|
|
|
22372
22393
|
// src/components/PageHeader.tsx
|
|
22373
|
-
import { trussProps as
|
|
22394
|
+
import { trussProps as trussProps91 } from "@homebound/truss/runtime";
|
|
22374
22395
|
import { jsx as jsx176, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
22375
22396
|
function PageHeader2(props) {
|
|
22376
22397
|
const {
|
|
@@ -22380,7 +22401,7 @@ function PageHeader2(props) {
|
|
|
22380
22401
|
...otherProps
|
|
22381
22402
|
} = props;
|
|
22382
22403
|
const tid = useTestIds(otherProps, "pageHeader");
|
|
22383
|
-
return /* @__PURE__ */ jsxs91("header", { ...tid, ...
|
|
22404
|
+
return /* @__PURE__ */ jsxs91("header", { ...tid, ...trussProps91({
|
|
22384
22405
|
display: "df",
|
|
22385
22406
|
flexDirection: "fdc",
|
|
22386
22407
|
paddingTop: "pt3",
|
|
@@ -22406,7 +22427,7 @@ function PageHeader2(props) {
|
|
|
22406
22427
|
// src/components/ScrollShadows.tsx
|
|
22407
22428
|
import { useResizeObserver as useResizeObserver9 } from "@react-aria/utils";
|
|
22408
22429
|
import { useCallback as useCallback32, useMemo as useMemo50, useRef as useRef57, useState as useState54 } from "react";
|
|
22409
|
-
import { trussProps as
|
|
22430
|
+
import { trussProps as trussProps92, maybeCssVar as maybeCssVar51 } from "@homebound/truss/runtime";
|
|
22410
22431
|
import { jsx as jsx177, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
22411
22432
|
function ScrollShadows(props) {
|
|
22412
22433
|
const {
|
|
@@ -22497,7 +22518,7 @@ function ScrollShadows(props) {
|
|
|
22497
22518
|
ref: scrollRef,
|
|
22498
22519
|
onResize
|
|
22499
22520
|
});
|
|
22500
|
-
return /* @__PURE__ */ jsxs92("div", { ...
|
|
22521
|
+
return /* @__PURE__ */ jsxs92("div", { ...trussProps92({
|
|
22501
22522
|
display: "df",
|
|
22502
22523
|
flexDirection: ["fd_var", {
|
|
22503
22524
|
"--flexDirection": maybeCssVar51(!horizontal ? "column" : "row")
|
|
@@ -22513,7 +22534,7 @@ function ScrollShadows(props) {
|
|
|
22513
22534
|
width: width2
|
|
22514
22535
|
}
|
|
22515
22536
|
}), ...tid, children: [
|
|
22516
|
-
/* @__PURE__ */ jsx177("div", { ...
|
|
22537
|
+
/* @__PURE__ */ jsx177("div", { ...trussProps92({
|
|
22517
22538
|
...startShadowStyles,
|
|
22518
22539
|
...{
|
|
22519
22540
|
opacity: ["o_var", {
|
|
@@ -22521,7 +22542,7 @@ function ScrollShadows(props) {
|
|
|
22521
22542
|
}]
|
|
22522
22543
|
}
|
|
22523
22544
|
}), "data-chromatic": "ignore" }),
|
|
22524
|
-
/* @__PURE__ */ jsx177("div", { ...
|
|
22545
|
+
/* @__PURE__ */ jsx177("div", { ...trussProps92({
|
|
22525
22546
|
...endShadowStyles,
|
|
22526
22547
|
...{
|
|
22527
22548
|
opacity: ["o_var", {
|
|
@@ -22529,7 +22550,7 @@ function ScrollShadows(props) {
|
|
|
22529
22550
|
}]
|
|
22530
22551
|
}
|
|
22531
22552
|
}), "data-chromatic": "ignore" }),
|
|
22532
|
-
/* @__PURE__ */ jsx177("div", { ...
|
|
22553
|
+
/* @__PURE__ */ jsx177("div", { ...trussProps92({
|
|
22533
22554
|
...xss,
|
|
22534
22555
|
...{
|
|
22535
22556
|
overflow: "oa",
|
|
@@ -22609,7 +22630,7 @@ function useHasSideNavLayoutProvider() {
|
|
|
22609
22630
|
}
|
|
22610
22631
|
|
|
22611
22632
|
// src/components/SideNav/SideNav.tsx
|
|
22612
|
-
import { trussProps as
|
|
22633
|
+
import { trussProps as trussProps93 } from "@homebound/truss/runtime";
|
|
22613
22634
|
import { jsx as jsx179, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
22614
22635
|
function SideNav(props) {
|
|
22615
22636
|
const {
|
|
@@ -22624,7 +22645,7 @@ function SideNav(props) {
|
|
|
22624
22645
|
const panelCollapsed = navState === "collapse";
|
|
22625
22646
|
const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
|
|
22626
22647
|
return /* @__PURE__ */ jsxs93("nav", { className: "df fdc h100 fs0", ...tid, children: [
|
|
22627
|
-
top !== void 0 && /* @__PURE__ */ jsx179("div", { ...
|
|
22648
|
+
top !== void 0 && /* @__PURE__ */ jsx179("div", { ...trussProps93({
|
|
22628
22649
|
flexShrink: "fs0",
|
|
22629
22650
|
paddingLeft: "pl2",
|
|
22630
22651
|
paddingRight: "pr2",
|
|
@@ -22635,7 +22656,7 @@ function SideNav(props) {
|
|
|
22635
22656
|
paddingBottom: "pb4"
|
|
22636
22657
|
} : {}
|
|
22637
22658
|
}), ...tid.top, children: top }),
|
|
22638
|
-
/* @__PURE__ */ jsx179("div", { ...
|
|
22659
|
+
/* @__PURE__ */ jsx179("div", { ...trussProps93({
|
|
22639
22660
|
flexGrow: "fg1",
|
|
22640
22661
|
overflowY: "oya",
|
|
22641
22662
|
display: "df",
|
|
@@ -22648,7 +22669,7 @@ function SideNav(props) {
|
|
|
22648
22669
|
paddingTop: "pt5"
|
|
22649
22670
|
} : {}
|
|
22650
22671
|
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ jsx179(AppNavItems, { items, panelCollapsed }) }),
|
|
22651
|
-
footer !== void 0 && /* @__PURE__ */ jsx179("div", { ...
|
|
22672
|
+
footer !== void 0 && /* @__PURE__ */ jsx179("div", { ...trussProps93({
|
|
22652
22673
|
flexShrink: "fs0",
|
|
22653
22674
|
paddingLeft: "pl2",
|
|
22654
22675
|
paddingRight: "pr2",
|
|
@@ -22725,7 +22746,7 @@ var snackbarId = 1;
|
|
|
22725
22746
|
// src/components/Stepper.tsx
|
|
22726
22747
|
import { useRef as useRef59 } from "react";
|
|
22727
22748
|
import { useButton as useButton12, useFocusRing as useFocusRing16, useHover as useHover20 } from "react-aria";
|
|
22728
|
-
import { trussProps as
|
|
22749
|
+
import { trussProps as trussProps94, maybeCssVar as maybeCssVar52 } from "@homebound/truss/runtime";
|
|
22729
22750
|
import { jsx as jsx180, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
22730
22751
|
import { createElement as createElement4 } from "react";
|
|
22731
22752
|
var __maybeInc19 = (inc) => {
|
|
@@ -22746,7 +22767,7 @@ function Stepper(props) {
|
|
|
22746
22767
|
const minStepWidth = 100;
|
|
22747
22768
|
const gap = 8;
|
|
22748
22769
|
return /* @__PURE__ */ jsxs94("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
22749
|
-
/* @__PURE__ */ jsx180("ol", { ...
|
|
22770
|
+
/* @__PURE__ */ jsx180("ol", { ...trussProps94({
|
|
22750
22771
|
padding: "p_0",
|
|
22751
22772
|
margin: "m_0",
|
|
22752
22773
|
listStyle: "lis_none",
|
|
@@ -22756,7 +22777,7 @@ function Stepper(props) {
|
|
|
22756
22777
|
}]
|
|
22757
22778
|
}), children: steps.map((step) => {
|
|
22758
22779
|
const isCurrent = currentStep === step.value;
|
|
22759
|
-
return /* @__PURE__ */ createElement4("li", { ...
|
|
22780
|
+
return /* @__PURE__ */ createElement4("li", { ...trussProps94({
|
|
22760
22781
|
display: "df",
|
|
22761
22782
|
flexGrow: "fg1",
|
|
22762
22783
|
flexDirection: "fdc",
|
|
@@ -22768,7 +22789,7 @@ function Stepper(props) {
|
|
|
22768
22789
|
}]
|
|
22769
22790
|
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx180(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
22770
22791
|
}) }),
|
|
22771
|
-
/* @__PURE__ */ jsx180("div", { ...
|
|
22792
|
+
/* @__PURE__ */ jsx180("div", { ...trussProps94({
|
|
22772
22793
|
marginTop: "mt1",
|
|
22773
22794
|
backgroundColor: "bgGray300",
|
|
22774
22795
|
height: "h_4px",
|
|
@@ -22779,7 +22800,7 @@ function Stepper(props) {
|
|
|
22779
22800
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
22780
22801
|
}],
|
|
22781
22802
|
width: "w100"
|
|
22782
|
-
}), children: /* @__PURE__ */ jsx180("div", { ...
|
|
22803
|
+
}), children: /* @__PURE__ */ jsx180("div", { ...trussProps94({
|
|
22783
22804
|
backgroundColor: "bgBlue600",
|
|
22784
22805
|
transition: "transition_width_200ms",
|
|
22785
22806
|
height: "h100",
|
|
@@ -22820,7 +22841,7 @@ function StepButton(props) {
|
|
|
22820
22841
|
boxShadow: "bshFocus"
|
|
22821
22842
|
};
|
|
22822
22843
|
const tid = useTestIds(props, "stepButton");
|
|
22823
|
-
return /* @__PURE__ */ jsxs94("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...
|
|
22844
|
+
return /* @__PURE__ */ jsxs94("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...trussProps94({
|
|
22824
22845
|
...{
|
|
22825
22846
|
fontWeight: "fw6",
|
|
22826
22847
|
fontSize: "fz_14px",
|
|
@@ -22888,7 +22909,7 @@ function StepIcon({
|
|
|
22888
22909
|
if (state === "complete") {
|
|
22889
22910
|
return /* @__PURE__ */ jsx180(Icon, { icon: "check" });
|
|
22890
22911
|
}
|
|
22891
|
-
return /* @__PURE__ */ jsx180("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ jsx180("div", { ...
|
|
22912
|
+
return /* @__PURE__ */ jsx180("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ jsx180("div", { ...trussProps94({
|
|
22892
22913
|
width: "w_10px",
|
|
22893
22914
|
height: "h_10px",
|
|
22894
22915
|
borderStyle: "bss",
|
|
@@ -22903,7 +22924,7 @@ function StepIcon({
|
|
|
22903
22924
|
|
|
22904
22925
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
22905
22926
|
import { createPortal as createPortal7 } from "react-dom";
|
|
22906
|
-
import { trussProps as
|
|
22927
|
+
import { trussProps as trussProps95 } from "@homebound/truss/runtime";
|
|
22907
22928
|
import { jsx as jsx181, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
22908
22929
|
function SuperDrawerHeader(props) {
|
|
22909
22930
|
const {
|
|
@@ -22929,7 +22950,7 @@ function SuperDrawerHeader(props) {
|
|
|
22929
22950
|
] }),
|
|
22930
22951
|
props.right && /* @__PURE__ */ jsx181("div", { className: "fs0", children: props.right })
|
|
22931
22952
|
] }) : /* @__PURE__ */ jsx181("div", { className: "fg1", children: props.children }),
|
|
22932
|
-
!hideControls && /* @__PURE__ */ jsx181("div", { ...
|
|
22953
|
+
!hideControls && /* @__PURE__ */ jsx181("div", { ...trussProps95({
|
|
22933
22954
|
flexShrink: "fs0",
|
|
22934
22955
|
...isDetail ? {
|
|
22935
22956
|
visibility: "vh"
|
|
@@ -23202,7 +23223,7 @@ function useToast() {
|
|
|
23202
23223
|
}
|
|
23203
23224
|
|
|
23204
23225
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
23205
|
-
import { trussProps as
|
|
23226
|
+
import { trussProps as trussProps96, mergeProps as mergeProps29, maybeCssVar as maybeCssVar53 } from "@homebound/truss/runtime";
|
|
23206
23227
|
import { jsx as jsx185, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
23207
23228
|
var __maybeInc20 = (inc) => {
|
|
23208
23229
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -23232,7 +23253,7 @@ function SideNavLayoutContent(props) {
|
|
|
23232
23253
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
23233
23254
|
const navTop = `var(${beamNavbarLayoutHeightVar}, 0px)`;
|
|
23234
23255
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
23235
|
-
const rail = showRail && /* @__PURE__ */ jsxs98("div", { ...
|
|
23256
|
+
const rail = showRail && /* @__PURE__ */ jsxs98("div", { ...trussProps96({
|
|
23236
23257
|
...{
|
|
23237
23258
|
display: "df",
|
|
23238
23259
|
flexDirection: "fdc",
|
|
@@ -23300,7 +23321,7 @@ function SideNavLayoutContent(props) {
|
|
|
23300
23321
|
width: "w100"
|
|
23301
23322
|
}), ...tid, children: [
|
|
23302
23323
|
contrastRail ? /* @__PURE__ */ jsx185(ContrastScope, { children: rail }) : rail,
|
|
23303
|
-
/* @__PURE__ */ jsx185("div", { ...
|
|
23324
|
+
/* @__PURE__ */ jsx185("div", { ...trussProps96({
|
|
23304
23325
|
display: "df",
|
|
23305
23326
|
flexDirection: "fdc",
|
|
23306
23327
|
flexGrow: "fg1",
|