@homebound/beam 3.20.0 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +182 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +125 -112
- package/dist/index.js.map +1 -1
- package/dist/truss.css +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5447,7 +5447,12 @@ var iconButtonOutline = {
|
|
|
5447
5447
|
borderRadius: "br8",
|
|
5448
5448
|
width: "w_48px",
|
|
5449
5449
|
height: "h_40px",
|
|
5450
|
-
|
|
5450
|
+
backgroundColor: ["bgColor_var", {
|
|
5451
|
+
"--backgroundColor": "var(--b-surface)"
|
|
5452
|
+
}],
|
|
5453
|
+
borderColor: ["bc_var", {
|
|
5454
|
+
"--borderColor": "var(--b-surface-separator)"
|
|
5455
|
+
}],
|
|
5451
5456
|
borderStyle: "bss",
|
|
5452
5457
|
borderWidth: "bw1",
|
|
5453
5458
|
display: "df",
|
|
@@ -19593,24 +19598,11 @@ function FilterDropdownMenu(props) {
|
|
|
19593
19598
|
opacity: "o0"
|
|
19594
19599
|
} : {}
|
|
19595
19600
|
}), children: searchTextField }),
|
|
19596
|
-
sm && hasSearch && /* @__PURE__ */ jsx141(
|
|
19597
|
-
hasFilters && /* @__PURE__ */ jsx141(
|
|
19601
|
+
sm && hasSearch && /* @__PURE__ */ jsx141(IconButton, { variant: "outline", icon: "search", label: "Search", onClick: () => setSearchIsOpen(!searchIsOpen), active: searchIsOpen, ...testId.searchButton }),
|
|
19602
|
+
sm && hasFilters && /* @__PURE__ */ jsx141(IconButton, { variant: "outline", icon: "filter", label: "Filter", active: isOpen, onClick: () => setIsOpen(!isOpen), ...testId.button }),
|
|
19603
|
+
!sm && hasFilters && /* @__PURE__ */ jsx141(Button, { label: "Filter", icon: "filter", size: "md", endAdornment: /* @__PURE__ */ jsxs70("div", { className: "df aic gap1", children: [
|
|
19598
19604
|
activeFilterCount > 0 && /* @__PURE__ */ jsx141(CountBadge, { count: activeFilterCount }),
|
|
19599
|
-
/* @__PURE__ */ jsx141(Icon, {
|
|
19600
|
-
...sm ? {
|
|
19601
|
-
position: "absolute",
|
|
19602
|
-
overflow: "oh",
|
|
19603
|
-
clip: "cli_inset_50",
|
|
19604
|
-
clipPath: "clp_none",
|
|
19605
|
-
border: "bd_0",
|
|
19606
|
-
height: "h_1px",
|
|
19607
|
-
margin: "m_neg1px",
|
|
19608
|
-
width: "w_1px",
|
|
19609
|
-
padding: "p_0",
|
|
19610
|
-
whiteSpace: "wsnw",
|
|
19611
|
-
opacity: "o0"
|
|
19612
|
-
} : {}
|
|
19613
|
-
}, icon: isOpen ? "chevronUp" : "chevronDown" })
|
|
19605
|
+
/* @__PURE__ */ jsx141(Icon, { icon: isOpen ? "chevronUp" : "chevronDown" })
|
|
19614
19606
|
] }), variant: "secondaryBlack", onClick: () => setIsOpen(!isOpen), active: isOpen, ...testId.button }),
|
|
19615
19607
|
searchIsOpen && /* @__PURE__ */ jsx141("div", { ...trussProps69({
|
|
19616
19608
|
width: "w100",
|
|
@@ -19748,13 +19740,13 @@ function toPageNumberSize(page) {
|
|
|
19748
19740
|
import { Fragment as Fragment34, useCallback as useCallback24, useMemo as useMemo36, useRef as useRef47 } from "react";
|
|
19749
19741
|
import { useMenuTrigger as useMenuTrigger3 } from "react-aria";
|
|
19750
19742
|
import { useMenuTriggerState as useMenuTriggerState3 } from "react-stately";
|
|
19743
|
+
import { trussProps as trussProps70 } from "@homebound/truss/runtime";
|
|
19751
19744
|
import { jsx as jsx143, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
19752
19745
|
function EditColumnsButton(props) {
|
|
19753
19746
|
const {
|
|
19754
19747
|
defaultOpen,
|
|
19755
19748
|
disabled,
|
|
19756
19749
|
columns,
|
|
19757
|
-
trigger,
|
|
19758
19750
|
api
|
|
19759
19751
|
} = props;
|
|
19760
19752
|
const state = useMenuTriggerState3({
|
|
@@ -19766,7 +19758,7 @@ function EditColumnsButton(props) {
|
|
|
19766
19758
|
} = useMenuTrigger3({
|
|
19767
19759
|
isDisabled: !!disabled
|
|
19768
19760
|
}, state, buttonRef);
|
|
19769
|
-
const tid = useTestIds(props,
|
|
19761
|
+
const tid = useTestIds(props, "kanban");
|
|
19770
19762
|
const {
|
|
19771
19763
|
sm
|
|
19772
19764
|
} = useBreakpoint();
|
|
@@ -19785,12 +19777,38 @@ function EditColumnsButton(props) {
|
|
|
19785
19777
|
api.resetColumnWidths();
|
|
19786
19778
|
api.setVisibleColumns(columns.filter((column2) => column2.canHide ? ids.includes(column2.id) : true).map((c) => c.id));
|
|
19787
19779
|
}, [columns, api]);
|
|
19788
|
-
return /* @__PURE__ */ jsx143(OverlayTrigger, { ...props,
|
|
19789
|
-
|
|
19780
|
+
return /* @__PURE__ */ jsx143(OverlayTrigger, { ...props, trigger: {
|
|
19781
|
+
icon: "kanban",
|
|
19782
|
+
size: "md",
|
|
19783
|
+
label: "",
|
|
19784
|
+
variant: "secondaryBlack"
|
|
19785
|
+
}, menuTriggerProps, state, buttonRef, hideEndAdornment: sm, ...tid, children: /* @__PURE__ */ jsxs72("div", { ...trussProps70({
|
|
19786
|
+
display: "df",
|
|
19787
|
+
flexDirection: "fdc",
|
|
19788
|
+
backgroundColor: ["bgColor_var", {
|
|
19789
|
+
"--backgroundColor": "var(--b-surface)"
|
|
19790
|
+
}],
|
|
19791
|
+
maxWidth: "maxw_326px",
|
|
19792
|
+
maxHeight: "maxh_512px",
|
|
19793
|
+
boxShadow: "h_bshHover"
|
|
19794
|
+
}), children: [
|
|
19795
|
+
/* @__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
19796
|
/* @__PURE__ */ jsx143("div", { className: "fw4 fz_14px lh_20px wsnw oh to_ellipsis pr1", children: option.label }),
|
|
19791
19797
|
/* @__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", {
|
|
19798
|
+
] }, option.value)) }),
|
|
19799
|
+
/* @__PURE__ */ jsx143("div", { ...trussProps70({
|
|
19800
|
+
display: "df",
|
|
19801
|
+
justifyContent: "jcc",
|
|
19802
|
+
paddingTop: "pt2",
|
|
19803
|
+
paddingBottom: "pb2",
|
|
19804
|
+
paddingRight: "pr2",
|
|
19805
|
+
paddingLeft: "pl2",
|
|
19806
|
+
borderTopStyle: "bts_solid",
|
|
19807
|
+
borderTopWidth: "btw_1px",
|
|
19808
|
+
borderColor: ["bc_var", {
|
|
19809
|
+
"--borderColor": "var(--b-on-surface-muted)"
|
|
19810
|
+
}]
|
|
19811
|
+
}), children: /* @__PURE__ */ jsx143(Button, { variant: "tertiary", label: "Reset Column Widths", onClick: () => api.resetColumnWidths() }) })
|
|
19794
19812
|
] }) });
|
|
19795
19813
|
}
|
|
19796
19814
|
|
|
@@ -19816,7 +19834,7 @@ function ViewToggleButton({ view, onChange, defaultOpen }) {
|
|
|
19816
19834
|
}
|
|
19817
19835
|
|
|
19818
19836
|
// src/components/Table/TableActions.tsx
|
|
19819
|
-
import { trussProps as
|
|
19837
|
+
import { trussProps as trussProps71 } from "@homebound/truss/runtime";
|
|
19820
19838
|
import { jsx as jsx145, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
19821
19839
|
function TableActions(props) {
|
|
19822
19840
|
const {
|
|
@@ -19824,7 +19842,7 @@ function TableActions(props) {
|
|
|
19824
19842
|
children,
|
|
19825
19843
|
right
|
|
19826
19844
|
} = props;
|
|
19827
|
-
return /* @__PURE__ */ jsxs73("div", { ...
|
|
19845
|
+
return /* @__PURE__ */ jsxs73("div", { ...trussProps71({
|
|
19828
19846
|
...{
|
|
19829
19847
|
display: "df",
|
|
19830
19848
|
gap: "gap1",
|
|
@@ -19848,7 +19866,7 @@ function isGridTableProps(props) {
|
|
|
19848
19866
|
import { useMemo as useMemo37 } from "react";
|
|
19849
19867
|
|
|
19850
19868
|
// src/components/LoadingSkeleton.tsx
|
|
19851
|
-
import { trussProps as
|
|
19869
|
+
import { trussProps as trussProps72, maybeCssVar as maybeCssVar40 } from "@homebound/truss/runtime";
|
|
19852
19870
|
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
19853
19871
|
function LoadingSkeleton({
|
|
19854
19872
|
rows = 1,
|
|
@@ -19861,7 +19879,7 @@ function LoadingSkeleton({
|
|
|
19861
19879
|
const rowHeight = sizeToPixels2[size];
|
|
19862
19880
|
const rowCells = (rowNumber) => {
|
|
19863
19881
|
const flexGrowForCell = randomizeWidths ? getRandomizedFlexBasisByRowIndex(rowNumber) : 1;
|
|
19864
|
-
return cellArray.map((_, i) => /* @__PURE__ */ jsx146("div", { ...
|
|
19882
|
+
return cellArray.map((_, i) => /* @__PURE__ */ jsx146("div", { ...trussProps72({
|
|
19865
19883
|
borderRadius: "br4",
|
|
19866
19884
|
animation: "animation_pulse_2s_cubic_bezier_0_4_0_0_6_1_infinite",
|
|
19867
19885
|
flexGrow: ["flexGrow_var", {
|
|
@@ -19872,7 +19890,7 @@ function LoadingSkeleton({
|
|
|
19872
19890
|
}]
|
|
19873
19891
|
}) }, `row-${rowNumber}-cell-${i}`));
|
|
19874
19892
|
};
|
|
19875
|
-
return /* @__PURE__ */ jsx146("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ jsx146("div", { ...
|
|
19893
|
+
return /* @__PURE__ */ jsx146("div", { "aria-label": "Loading", children: rowArray.map((_, i) => /* @__PURE__ */ jsx146("div", { ...trussProps72({
|
|
19876
19894
|
display: "df",
|
|
19877
19895
|
gap: "gap1",
|
|
19878
19896
|
marginBottom: "mb1",
|
|
@@ -19946,7 +19964,7 @@ function parseStoredTableView(raw) {
|
|
|
19946
19964
|
}
|
|
19947
19965
|
|
|
19948
19966
|
// src/components/Layout/GridTableLayout/GridTableLayout.tsx
|
|
19949
|
-
import { trussProps as
|
|
19967
|
+
import { trussProps as trussProps73, maybeCssVar as maybeCssVar41 } from "@homebound/truss/runtime";
|
|
19950
19968
|
import { Fragment as Fragment36, jsx as jsx148, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
19951
19969
|
var __maybeInc14 = (inc) => {
|
|
19952
19970
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -19990,12 +20008,7 @@ function GridTableLayoutComponent(props) {
|
|
|
19990
20008
|
}, [visibleColumnIds, layoutState]);
|
|
19991
20009
|
const visibleColumnsStorageKey = layoutState?.persistedColumnsStorageKey;
|
|
19992
20010
|
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 }),
|
|
20011
|
+
hasHideableColumns && /* @__PURE__ */ jsx148(EditColumnsButton, { columns, api, tooltip: "Display columns", ...tid.editColumnsButton }),
|
|
19999
20012
|
withCardView && /* @__PURE__ */ jsx148(ViewToggleButton, { view, onChange: setView })
|
|
20000
20013
|
] }), xss: {
|
|
20001
20014
|
paddingTop: "pt3",
|
|
@@ -20015,7 +20028,7 @@ function GridTableLayoutComponent(props) {
|
|
|
20015
20028
|
layoutState && totalCount !== void 0 && /* @__PURE__ */ jsx148(Pagination, { page: [layoutState.page, layoutState._pagination.setPage], totalCount, pageSizes: layoutState._pagination.pageSizes, ...tid.pagination })
|
|
20016
20029
|
] });
|
|
20017
20030
|
const tableScrollContent = /* @__PURE__ */ jsxs75(Fragment36, { children: [
|
|
20018
|
-
showTableActions && /* @__PURE__ */ jsx148("div", { ref: tableActionsRef, ...
|
|
20031
|
+
showTableActions && /* @__PURE__ */ jsx148("div", { ref: tableActionsRef, ...trussProps73({
|
|
20019
20032
|
...inDocumentScrollLayout ? {
|
|
20020
20033
|
transition: "transitionTop",
|
|
20021
20034
|
position: "sticky",
|
|
@@ -20147,7 +20160,7 @@ function Header2(props) {
|
|
|
20147
20160
|
actionMenu
|
|
20148
20161
|
} = props;
|
|
20149
20162
|
const tids = useTestIds(props);
|
|
20150
|
-
return /* @__PURE__ */ jsx148(FullBleed, { children: /* @__PURE__ */ jsxs75("header", { ...
|
|
20163
|
+
return /* @__PURE__ */ jsx148(FullBleed, { children: /* @__PURE__ */ jsxs75("header", { ...trussProps73({
|
|
20151
20164
|
...{
|
|
20152
20165
|
paddingTop: "pt3",
|
|
20153
20166
|
paddingBottom: "pb3",
|
|
@@ -20226,7 +20239,7 @@ function useRightPaneContext() {
|
|
|
20226
20239
|
// src/components/Layout/RightPaneLayout/RightPaneLayout.tsx
|
|
20227
20240
|
import { AnimatePresence as AnimatePresence3, motion as motion3 } from "framer-motion";
|
|
20228
20241
|
import { useEffect as useEffect29 } from "react";
|
|
20229
|
-
import { trussProps as
|
|
20242
|
+
import { trussProps as trussProps74, maybeCssVar as maybeCssVar42 } from "@homebound/truss/runtime";
|
|
20230
20243
|
import { Fragment as Fragment37, jsx as jsx151, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
20231
20244
|
var __maybeInc15 = (inc) => {
|
|
20232
20245
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -20246,7 +20259,7 @@ function RightPaneLayout(props) {
|
|
|
20246
20259
|
} = useRightPaneContext();
|
|
20247
20260
|
useEffect29(() => closePane, [closePane]);
|
|
20248
20261
|
return /* @__PURE__ */ jsx151("div", { className: "h100 df oxh", children: /* @__PURE__ */ jsxs76(Fragment37, { children: [
|
|
20249
|
-
/* @__PURE__ */ jsx151("div", { ...
|
|
20262
|
+
/* @__PURE__ */ jsx151("div", { ...trussProps74({
|
|
20250
20263
|
...{
|
|
20251
20264
|
width: ["w_var", {
|
|
20252
20265
|
"--width": maybeCssVar42(__maybeInc15(`calc(100% - ${paneWidth + 24}px)`))
|
|
@@ -20271,7 +20284,7 @@ function RightPaneLayout(props) {
|
|
|
20271
20284
|
} : {}
|
|
20272
20285
|
}
|
|
20273
20286
|
}), children }),
|
|
20274
|
-
/* @__PURE__ */ jsxs76("div", { ...
|
|
20287
|
+
/* @__PURE__ */ jsxs76("div", { ...trussProps74({
|
|
20275
20288
|
position: "relative",
|
|
20276
20289
|
...!!defaultPaneContent ? {
|
|
20277
20290
|
width: ["w_var", {
|
|
@@ -20279,7 +20292,7 @@ function RightPaneLayout(props) {
|
|
|
20279
20292
|
}]
|
|
20280
20293
|
} : {}
|
|
20281
20294
|
}), children: [
|
|
20282
|
-
defaultPaneContent && /* @__PURE__ */ jsx151("div", { ...
|
|
20295
|
+
defaultPaneContent && /* @__PURE__ */ jsx151("div", { ...trussProps74({
|
|
20283
20296
|
height: "h100",
|
|
20284
20297
|
width: ["w_var", {
|
|
20285
20298
|
"--width": `${paneWidth}px`
|
|
@@ -20297,7 +20310,7 @@ function RightPaneLayout(props) {
|
|
|
20297
20310
|
{
|
|
20298
20311
|
layout: "position",
|
|
20299
20312
|
"data-testid": "rightPaneContent",
|
|
20300
|
-
...
|
|
20313
|
+
...trussProps74({
|
|
20301
20314
|
backgroundColor: ["bgColor_var", {
|
|
20302
20315
|
"--backgroundColor": maybeCssVar42(paneBgColor)
|
|
20303
20316
|
}],
|
|
@@ -20380,7 +20393,7 @@ function SidePanel(props) {
|
|
|
20380
20393
|
}
|
|
20381
20394
|
|
|
20382
20395
|
// src/components/Layout/TableReviewLayout/TableReviewLayout.tsx
|
|
20383
|
-
import { trussProps as
|
|
20396
|
+
import { trussProps as trussProps75, maybeCssVar as maybeCssVar43 } from "@homebound/truss/runtime";
|
|
20384
20397
|
import { jsx as jsx154, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
20385
20398
|
var defaultRightPaneWidth = 450;
|
|
20386
20399
|
function TableReviewLayout(props) {
|
|
@@ -20422,7 +20435,7 @@ function TableReviewLayout(props) {
|
|
|
20422
20435
|
bordered: true
|
|
20423
20436
|
}, stickyHeader: true });
|
|
20424
20437
|
}
|
|
20425
|
-
return /* @__PURE__ */ jsxs78("div", { ...
|
|
20438
|
+
return /* @__PURE__ */ jsxs78("div", { ...trussProps75({
|
|
20426
20439
|
position: "fixed",
|
|
20427
20440
|
top: "top0",
|
|
20428
20441
|
bottom: "bottom0",
|
|
@@ -20447,7 +20460,7 @@ function TableReviewLayout(props) {
|
|
|
20447
20460
|
/* @__PURE__ */ jsx154("div", { className: "fw4 fz_14px lh_20px gray700 mt2", ...tid.description, children: description })
|
|
20448
20461
|
] }),
|
|
20449
20462
|
/* @__PURE__ */ jsxs78("div", { className: "fg1 df mh0", ...tid.content, children: [
|
|
20450
|
-
/* @__PURE__ */ jsx154("div", { ...
|
|
20463
|
+
/* @__PURE__ */ jsx154("div", { ...trussProps75({
|
|
20451
20464
|
...{
|
|
20452
20465
|
flexGrow: "fg1",
|
|
20453
20466
|
overflowY: "oya",
|
|
@@ -20470,7 +20483,7 @@ function TableReviewLayout(props) {
|
|
|
20470
20483
|
ease: "linear",
|
|
20471
20484
|
duration: 0.2
|
|
20472
20485
|
}, className: "df fdc fs0 relative", children: [
|
|
20473
|
-
/* @__PURE__ */ jsxs78("div", { ...
|
|
20486
|
+
/* @__PURE__ */ jsxs78("div", { ...trussProps75({
|
|
20474
20487
|
position: "absolute",
|
|
20475
20488
|
top: ["top_var", {
|
|
20476
20489
|
"--top": `${-32}px`
|
|
@@ -20593,7 +20606,7 @@ function ButtonDatePicker(props) {
|
|
|
20593
20606
|
// src/components/ButtonGroup.tsx
|
|
20594
20607
|
import { useRef as useRef51 } from "react";
|
|
20595
20608
|
import { useButton as useButton10, useFocusRing as useFocusRing12, useHover as useHover15 } from "react-aria";
|
|
20596
|
-
import { trussProps as
|
|
20609
|
+
import { trussProps as trussProps76 } from "@homebound/truss/runtime";
|
|
20597
20610
|
import { jsx as jsx157, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
20598
20611
|
function ButtonGroup(props) {
|
|
20599
20612
|
const {
|
|
@@ -20604,7 +20617,7 @@ function ButtonGroup(props) {
|
|
|
20604
20617
|
const tid = useTestIds(props, "buttonGroup");
|
|
20605
20618
|
return (
|
|
20606
20619
|
// Adding `line-height: 0` prevent inheriting line-heights that might throw off sizing within the button group.
|
|
20607
|
-
/* @__PURE__ */ jsx157("div", { ...tid, ...
|
|
20620
|
+
/* @__PURE__ */ jsx157("div", { ...tid, ...trussProps76({
|
|
20608
20621
|
...{
|
|
20609
20622
|
display: "df",
|
|
20610
20623
|
lineHeight: "lh_0"
|
|
@@ -20653,10 +20666,10 @@ function GroupButton(props) {
|
|
|
20653
20666
|
isHovered
|
|
20654
20667
|
} = useHover15(ariaProps);
|
|
20655
20668
|
const tid = useTestIds(props);
|
|
20656
|
-
return /* @__PURE__ */ jsx157("span", { ...
|
|
20669
|
+
return /* @__PURE__ */ jsx157("span", { ...trussProps76(getButtonStyles2(isFirst, isLast)), children: maybeTooltip({
|
|
20657
20670
|
title: resolveTooltip(disabled, tooltip),
|
|
20658
20671
|
placement: "top",
|
|
20659
|
-
children: /* @__PURE__ */ jsxs80("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...
|
|
20672
|
+
children: /* @__PURE__ */ jsxs80("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...trussProps76({
|
|
20660
20673
|
...{
|
|
20661
20674
|
fontWeight: "fw6",
|
|
20662
20675
|
fontSize: "fz_14px",
|
|
@@ -20763,7 +20776,7 @@ import { useHover as useHover16 } from "react-aria";
|
|
|
20763
20776
|
// src/components/Tag.tsx
|
|
20764
20777
|
import { useResizeObserver as useResizeObserver6 } from "@react-aria/utils";
|
|
20765
20778
|
import { useRef as useRef52, useState as useState48 } from "react";
|
|
20766
|
-
import { trussProps as
|
|
20779
|
+
import { trussProps as trussProps77 } from "@homebound/truss/runtime";
|
|
20767
20780
|
import { jsx as jsx158, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
20768
20781
|
function Tag(props) {
|
|
20769
20782
|
const {
|
|
@@ -20787,7 +20800,7 @@ function Tag(props) {
|
|
|
20787
20800
|
});
|
|
20788
20801
|
return maybeTooltip({
|
|
20789
20802
|
title: !preventTooltip && showTooltip ? text : void 0,
|
|
20790
|
-
children: /* @__PURE__ */ jsxs81("span", { ...tid, ...
|
|
20803
|
+
children: /* @__PURE__ */ jsxs81("span", { ...tid, ...trussProps77({
|
|
20791
20804
|
...{
|
|
20792
20805
|
display: "dif",
|
|
20793
20806
|
fontWeight: "fw6",
|
|
@@ -20837,7 +20850,7 @@ function getStyles(type) {
|
|
|
20837
20850
|
}
|
|
20838
20851
|
|
|
20839
20852
|
// src/components/Card.tsx
|
|
20840
|
-
import { trussProps as
|
|
20853
|
+
import { trussProps as trussProps78, maybeCssVar as maybeCssVar44 } from "@homebound/truss/runtime";
|
|
20841
20854
|
import { jsx as jsx159, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
20842
20855
|
function Card(props) {
|
|
20843
20856
|
const {
|
|
@@ -20868,8 +20881,8 @@ function Card(props) {
|
|
|
20868
20881
|
...isHovered && cardHoverStyles,
|
|
20869
20882
|
...isDisabled && disabledStyles3
|
|
20870
20883
|
}), [isDisabled, isHovered, bordered, type, isList]);
|
|
20871
|
-
return /* @__PURE__ */ jsxs82("div", { ...
|
|
20872
|
-
/* @__PURE__ */ jsx159("div", { ...
|
|
20884
|
+
return /* @__PURE__ */ jsxs82("div", { ...trussProps78(styles), ...hoverProps, ...tid, children: [
|
|
20885
|
+
/* @__PURE__ */ jsx159("div", { ...trussProps78({
|
|
20873
20886
|
...{
|
|
20874
20887
|
height: ["h_var", {
|
|
20875
20888
|
"--height": `${imgHeight}px`
|
|
@@ -20886,14 +20899,14 @@ function Card(props) {
|
|
|
20886
20899
|
filter: "filter_brightness_1"
|
|
20887
20900
|
},
|
|
20888
20901
|
...isHovered && !isList && imageHoverStyles
|
|
20889
|
-
}), children: /* @__PURE__ */ jsx159("img", { ...
|
|
20902
|
+
}), children: /* @__PURE__ */ jsx159("img", { ...trussProps78({
|
|
20890
20903
|
width: "w100",
|
|
20891
20904
|
height: "h100",
|
|
20892
20905
|
objectFit: ["objectFit_var", {
|
|
20893
20906
|
"--objectFit": maybeCssVar44(imageFit)
|
|
20894
20907
|
}]
|
|
20895
20908
|
}), src: imgSrc, alt: title, ...tid.img }) }),
|
|
20896
|
-
isHovered && buttonMenuItems && /* @__PURE__ */ jsx159("div", { ...
|
|
20909
|
+
isHovered && buttonMenuItems && /* @__PURE__ */ jsx159("div", { ...trussProps78({
|
|
20897
20910
|
position: "absolute",
|
|
20898
20911
|
right: "right1",
|
|
20899
20912
|
top: "top1",
|
|
@@ -20909,7 +20922,7 @@ function Card(props) {
|
|
|
20909
20922
|
/* @__PURE__ */ jsxs82("div", { className: "df fdc aifs gap1", children: [
|
|
20910
20923
|
/* @__PURE__ */ jsxs82("div", { children: [
|
|
20911
20924
|
/* @__PURE__ */ jsx159("div", { className: "fw6 fz_12px lh_16px gray700", ...tid.subtitle, children: subtitle }),
|
|
20912
|
-
/* @__PURE__ */ jsx159("div", { ...
|
|
20925
|
+
/* @__PURE__ */ jsx159("div", { ...trussProps78({
|
|
20913
20926
|
fontWeight: "fw6",
|
|
20914
20927
|
fontSize: "fz_14px",
|
|
20915
20928
|
lineHeight: "lh_20px",
|
|
@@ -20999,7 +21012,7 @@ function useDnDGridContext() {
|
|
|
20999
21012
|
}
|
|
21000
21013
|
|
|
21001
21014
|
// src/components/DnDGrid/DnDGrid.tsx
|
|
21002
|
-
import { trussProps as
|
|
21015
|
+
import { trussProps as trussProps79 } from "@homebound/truss/runtime";
|
|
21003
21016
|
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
21004
21017
|
function DnDGrid(props) {
|
|
21005
21018
|
const {
|
|
@@ -21182,7 +21195,7 @@ function DnDGrid(props) {
|
|
|
21182
21195
|
return /* @__PURE__ */ jsx161(DnDGridContext.Provider, { value: {
|
|
21183
21196
|
dragEl,
|
|
21184
21197
|
onDragHandleKeyDown
|
|
21185
|
-
}, children: /* @__PURE__ */ jsx161("div", { ref: gridEl, ...
|
|
21198
|
+
}, children: /* @__PURE__ */ jsx161("div", { ref: gridEl, ...trussProps79({
|
|
21186
21199
|
...{
|
|
21187
21200
|
containerType: "ctis",
|
|
21188
21201
|
display: "dg"
|
|
@@ -21195,7 +21208,7 @@ var gridCloneKey = "dndgrid-clone";
|
|
|
21195
21208
|
|
|
21196
21209
|
// src/components/DnDGrid/DnDGridItemHandle.tsx
|
|
21197
21210
|
import { mergeProps as mergeProps24, useFocusRing as useFocusRing13, useHover as useHover17 } from "react-aria";
|
|
21198
|
-
import { trussProps as
|
|
21211
|
+
import { trussProps as trussProps80 } from "@homebound/truss/runtime";
|
|
21199
21212
|
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
21200
21213
|
function DnDGridItemHandle(props) {
|
|
21201
21214
|
const {
|
|
@@ -21225,7 +21238,7 @@ function DnDGridItemHandle(props) {
|
|
|
21225
21238
|
borderRadius: "br4",
|
|
21226
21239
|
borderWidth: "bw1"
|
|
21227
21240
|
};
|
|
21228
|
-
return /* @__PURE__ */ jsx162("button", { ...
|
|
21241
|
+
return /* @__PURE__ */ jsx162("button", { ...trussProps80({
|
|
21229
21242
|
...compact ? iconButtonCompact2 : iconButtonNormal2,
|
|
21230
21243
|
...{
|
|
21231
21244
|
cursor: "cursor_grab",
|
|
@@ -21287,7 +21300,7 @@ var gridItemDataAttribute = "data-grid-item-span";
|
|
|
21287
21300
|
var ResponsiveGridContext = createContext11(void 0);
|
|
21288
21301
|
|
|
21289
21302
|
// src/components/Grid/ResponsiveGrid.tsx
|
|
21290
|
-
import { trussProps as
|
|
21303
|
+
import { trussProps as trussProps81 } from "@homebound/truss/runtime";
|
|
21291
21304
|
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
21292
21305
|
function ResponsiveGrid(props) {
|
|
21293
21306
|
const {
|
|
@@ -21308,12 +21321,12 @@ function ResponsiveGrid(props) {
|
|
|
21308
21321
|
gap,
|
|
21309
21322
|
columns
|
|
21310
21323
|
}), [minColumnWidth, gap, columns]);
|
|
21311
|
-
return /* @__PURE__ */ jsx163(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ jsx163("div", { ...
|
|
21324
|
+
return /* @__PURE__ */ jsx163(ResponsiveGridContext.Provider, { value: config, children: /* @__PURE__ */ jsx163("div", { ...trussProps81(gridStyles), children }) });
|
|
21312
21325
|
}
|
|
21313
21326
|
|
|
21314
21327
|
// src/components/Grid/ResponsiveGridItem.tsx
|
|
21315
21328
|
import { mergeProps as mergeProps25 } from "react-aria";
|
|
21316
|
-
import { trussProps as
|
|
21329
|
+
import { trussProps as trussProps82 } from "@homebound/truss/runtime";
|
|
21317
21330
|
import { jsx as jsx164 } from "react/jsx-runtime";
|
|
21318
21331
|
function ResponsiveGridItem(props) {
|
|
21319
21332
|
const {
|
|
@@ -21326,7 +21339,7 @@ function ResponsiveGridItem(props) {
|
|
|
21326
21339
|
} = useResponsiveGridItem({
|
|
21327
21340
|
colSpan
|
|
21328
21341
|
});
|
|
21329
|
-
return /* @__PURE__ */ jsx164("div", { ...mergeProps25(gridItemProps,
|
|
21342
|
+
return /* @__PURE__ */ jsx164("div", { ...mergeProps25(gridItemProps, trussProps82(gridItemStyles)), children });
|
|
21330
21343
|
}
|
|
21331
21344
|
|
|
21332
21345
|
// src/components/Grid/useResponsiveGrid.ts
|
|
@@ -21477,7 +21490,7 @@ function HbSpinnerProvider({
|
|
|
21477
21490
|
}
|
|
21478
21491
|
|
|
21479
21492
|
// src/components/HomeboundLogo.tsx
|
|
21480
|
-
import { trussProps as
|
|
21493
|
+
import { trussProps as trussProps83, maybeCssVar as maybeCssVar46 } from "@homebound/truss/runtime";
|
|
21481
21494
|
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
21482
21495
|
var __maybeInc17 = (inc) => {
|
|
21483
21496
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -21488,7 +21501,7 @@ function HomeboundLogo(props) {
|
|
|
21488
21501
|
width: width2 = "auto",
|
|
21489
21502
|
height = "auto"
|
|
21490
21503
|
} = props;
|
|
21491
|
-
return /* @__PURE__ */ jsx166("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...
|
|
21504
|
+
return /* @__PURE__ */ jsx166("svg", { viewBox: "0 0 158.1 97.6", xmlns: "http://www.w3.org/2000/svg", ...trussProps83({
|
|
21492
21505
|
fill: ["fill_var", {
|
|
21493
21506
|
"--fill": maybeCssVar46(fill)
|
|
21494
21507
|
}],
|
|
@@ -21504,7 +21517,7 @@ function HomeboundLogo(props) {
|
|
|
21504
21517
|
// src/components/MaxLines.tsx
|
|
21505
21518
|
import { useLayoutEffect as useLayoutEffect5, useResizeObserver as useResizeObserver7 } from "@react-aria/utils";
|
|
21506
21519
|
import { useCallback as useCallback29, useEffect as useEffect32, useRef as useRef54, useState as useState49 } from "react";
|
|
21507
|
-
import { trussProps as
|
|
21520
|
+
import { trussProps as trussProps84, maybeCssVar as maybeCssVar47 } from "@homebound/truss/runtime";
|
|
21508
21521
|
import { jsx as jsx167, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
21509
21522
|
function MaxLines({
|
|
21510
21523
|
maxLines,
|
|
@@ -21529,7 +21542,7 @@ function MaxLines({
|
|
|
21529
21542
|
onResize
|
|
21530
21543
|
});
|
|
21531
21544
|
return /* @__PURE__ */ jsxs84("div", { children: [
|
|
21532
|
-
/* @__PURE__ */ jsx167("div", { ref: elRef, ...
|
|
21545
|
+
/* @__PURE__ */ jsx167("div", { ref: elRef, ...trussProps84({
|
|
21533
21546
|
...!expanded ? {
|
|
21534
21547
|
WebkitLineClamp: ["lineClamp_var", {
|
|
21535
21548
|
"--WebkitLineClamp": maybeCssVar47(maxLines)
|
|
@@ -21555,7 +21568,7 @@ import { useCallback as useCallback31, useEffect as useEffect33, useMemo as useM
|
|
|
21555
21568
|
// src/components/AppNav/AppNavGroupTrigger.tsx
|
|
21556
21569
|
import { useMemo as useMemo47, useRef as useRef55 } from "react";
|
|
21557
21570
|
import { mergeProps as mergeProps26, useButton as useButton11, useFocusRing as useFocusRing14, useHover as useHover18 } from "react-aria";
|
|
21558
|
-
import { trussProps as
|
|
21571
|
+
import { trussProps as trussProps85, mergeProps as mergeProps_14 } from "@homebound/truss/runtime";
|
|
21559
21572
|
import { jsx as jsx168, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
21560
21573
|
function AppNavGroupTrigger(props) {
|
|
21561
21574
|
const {
|
|
@@ -21599,7 +21612,7 @@ function AppNavGroupTrigger(props) {
|
|
|
21599
21612
|
})
|
|
21600
21613
|
}), children: [
|
|
21601
21614
|
label,
|
|
21602
|
-
/* @__PURE__ */ jsx168("span", { ...
|
|
21615
|
+
/* @__PURE__ */ jsx168("span", { ...trussProps85({
|
|
21603
21616
|
...{
|
|
21604
21617
|
display: "df",
|
|
21605
21618
|
alignItems: "aic",
|
|
@@ -21752,7 +21765,7 @@ function useAppNavGroupExpanded(linkGroup) {
|
|
|
21752
21765
|
}
|
|
21753
21766
|
|
|
21754
21767
|
// src/components/AppNav/AppNavGroup.tsx
|
|
21755
|
-
import { trussProps as
|
|
21768
|
+
import { trussProps as trussProps86, maybeCssVar as maybeCssVar48 } from "@homebound/truss/runtime";
|
|
21756
21769
|
import { Fragment as Fragment39, jsx as jsx169, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
21757
21770
|
var __maybeInc18 = (inc) => {
|
|
21758
21771
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -21797,7 +21810,7 @@ function AppNavGroupDisclosure(props) {
|
|
|
21797
21810
|
});
|
|
21798
21811
|
return /* @__PURE__ */ jsxs86("div", { className: "df fdc", ...tid, children: [
|
|
21799
21812
|
/* @__PURE__ */ jsx169(AppNavGroupTrigger, { label: linkGroup.label, navGroupId, expanded, onClick: onToggle, ...tid }),
|
|
21800
|
-
/* @__PURE__ */ jsx169("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...
|
|
21813
|
+
/* @__PURE__ */ jsx169("div", { id: navGroupId, role: "region", "aria-hidden": !expanded, ...trussProps86({
|
|
21801
21814
|
overflow: "oh",
|
|
21802
21815
|
transition: "transitionHeight",
|
|
21803
21816
|
height: ["h_var", {
|
|
@@ -21829,7 +21842,7 @@ function AppNavGroupMenu({
|
|
|
21829
21842
|
}
|
|
21830
21843
|
|
|
21831
21844
|
// src/components/AppNav/AppNavSectionView.tsx
|
|
21832
|
-
import { trussProps as
|
|
21845
|
+
import { trussProps as trussProps87 } from "@homebound/truss/runtime";
|
|
21833
21846
|
import { jsx as jsx171, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
21834
21847
|
function AppNavSectionView(props) {
|
|
21835
21848
|
const {
|
|
@@ -21855,7 +21868,7 @@ function AppNavSectionView(props) {
|
|
|
21855
21868
|
"--borderColor": "var(--b-surface-separator)"
|
|
21856
21869
|
}]
|
|
21857
21870
|
};
|
|
21858
|
-
return /* @__PURE__ */ jsxs87("div", { ...
|
|
21871
|
+
return /* @__PURE__ */ jsxs87("div", { ...trussProps87({
|
|
21859
21872
|
...{
|
|
21860
21873
|
display: "df",
|
|
21861
21874
|
flexDirection: "fdc",
|
|
@@ -21863,7 +21876,7 @@ function AppNavSectionView(props) {
|
|
|
21863
21876
|
},
|
|
21864
21877
|
...showDivider ? dividerStyles : {}
|
|
21865
21878
|
}), ...tid, children: [
|
|
21866
|
-
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ jsx171("div", { ...
|
|
21879
|
+
section.label && !panelCollapsed && variant !== "global" && /* @__PURE__ */ jsx171("div", { ...trussProps87({
|
|
21867
21880
|
fontWeight: "fw6",
|
|
21868
21881
|
fontSize: "fz_10px",
|
|
21869
21882
|
lineHeight: "lh_14px",
|
|
@@ -21931,7 +21944,7 @@ import { useEffect as useEffect34, useState as useState52 } from "react";
|
|
|
21931
21944
|
import { FocusScope as FocusScope5, usePreventScroll as usePreventScroll2 } from "react-aria";
|
|
21932
21945
|
import { createPortal as createPortal6 } from "react-dom";
|
|
21933
21946
|
import { useLocation } from "react-router-dom";
|
|
21934
|
-
import { trussProps as
|
|
21947
|
+
import { trussProps as trussProps88, maybeCssVar as maybeCssVar49 } from "@homebound/truss/runtime";
|
|
21935
21948
|
import { Fragment as Fragment41, jsx as jsx173, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
21936
21949
|
function NavbarMobileMenu(props) {
|
|
21937
21950
|
const {
|
|
@@ -21961,7 +21974,7 @@ function NavbarMobileDrawer({
|
|
|
21961
21974
|
tid
|
|
21962
21975
|
}) {
|
|
21963
21976
|
return /* @__PURE__ */ jsxs88(Fragment41, { children: [
|
|
21964
|
-
/* @__PURE__ */ jsx173(motion5.div, { ...
|
|
21977
|
+
/* @__PURE__ */ jsx173(motion5.div, { ...trussProps88({
|
|
21965
21978
|
position: "fixed",
|
|
21966
21979
|
top: "top0",
|
|
21967
21980
|
right: "right0",
|
|
@@ -21981,7 +21994,7 @@ function NavbarMobileDrawer({
|
|
|
21981
21994
|
ease: "linear",
|
|
21982
21995
|
duration: 0.2
|
|
21983
21996
|
}, 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", ...
|
|
21997
|
+
/* @__PURE__ */ jsx173(FocusScope5, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ jsxs88(motion5.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...trussProps88({
|
|
21985
21998
|
position: "fixed",
|
|
21986
21999
|
top: "top0",
|
|
21987
22000
|
bottom: "bottom0",
|
|
@@ -22026,7 +22039,7 @@ function NavbarMobileDrawer({
|
|
|
22026
22039
|
}
|
|
22027
22040
|
|
|
22028
22041
|
// src/components/Navbar/Navbar.tsx
|
|
22029
|
-
import { trussProps as
|
|
22042
|
+
import { trussProps as trussProps89 } from "@homebound/truss/runtime";
|
|
22030
22043
|
import { jsx as jsx174, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
22031
22044
|
function Navbar(props) {
|
|
22032
22045
|
const {
|
|
@@ -22046,7 +22059,7 @@ function Navbar(props) {
|
|
|
22046
22059
|
overflows
|
|
22047
22060
|
} = useContentOverflow(!sm);
|
|
22048
22061
|
const showMobile = sm || overflows;
|
|
22049
|
-
return /* @__PURE__ */ jsx174(ContrastScope, { children: /* @__PURE__ */ jsxs89("nav", { ...
|
|
22062
|
+
return /* @__PURE__ */ jsx174(ContrastScope, { children: /* @__PURE__ */ jsxs89("nav", { ...trussProps89({
|
|
22050
22063
|
backgroundColor: "bgGray800",
|
|
22051
22064
|
flexShrink: "fs0",
|
|
22052
22065
|
display: "df",
|
|
@@ -22066,7 +22079,7 @@ function Navbar(props) {
|
|
|
22066
22079
|
/* @__PURE__ */ jsxs89("div", { className: "df aic gap3 fg1 mw0", children: [
|
|
22067
22080
|
/* @__PURE__ */ jsxs89("div", { className: "df aic fs0 gap2", children: [
|
|
22068
22081
|
showMobile && /* @__PURE__ */ jsx174(NavbarMobileMenu, { items, ...tid }),
|
|
22069
|
-
/* @__PURE__ */ jsx174("div", { ...
|
|
22082
|
+
/* @__PURE__ */ jsx174("div", { ...trussProps89({
|
|
22070
22083
|
flexShrink: "fs0",
|
|
22071
22084
|
...hideBrandOnMobile && showMobile ? {
|
|
22072
22085
|
display: "dn"
|
|
@@ -22075,7 +22088,7 @@ function Navbar(props) {
|
|
|
22075
22088
|
] }),
|
|
22076
22089
|
!sm && // Stays mounted while overflowing (hidden) so the items remain measurable and the bar
|
|
22077
22090
|
// can expand again as space frees up.
|
|
22078
|
-
/* @__PURE__ */ jsx174("div", { ref: containerRef, ...
|
|
22091
|
+
/* @__PURE__ */ jsx174("div", { ref: containerRef, ...trussProps89({
|
|
22079
22092
|
display: "df",
|
|
22080
22093
|
alignItems: "aic",
|
|
22081
22094
|
flexGrow: "fg1",
|
|
@@ -22110,7 +22123,7 @@ import { useEffect as useEffect35, useMemo as useMemo49, useRef as useRef56, use
|
|
|
22110
22123
|
import { mergeProps as mergeProps27, useFocusRing as useFocusRing15, useHover as useHover19 } from "react-aria";
|
|
22111
22124
|
import { matchPath } from "react-router";
|
|
22112
22125
|
import { Link as Link5, useLocation as useLocation2 } from "react-router-dom";
|
|
22113
|
-
import { trussProps as
|
|
22126
|
+
import { trussProps as trussProps90, maybeCssVar as maybeCssVar50 } from "@homebound/truss/runtime";
|
|
22114
22127
|
import { Fragment as Fragment42, jsx as jsx175, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
22115
22128
|
function TabsWithContent(props) {
|
|
22116
22129
|
const styles = hideTabs(props) ? {} : {
|
|
@@ -22143,7 +22156,7 @@ function TabContent(props) {
|
|
|
22143
22156
|
return (
|
|
22144
22157
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
22145
22158
|
// 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, ...
|
|
22159
|
+
/* @__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
22160
|
);
|
|
22148
22161
|
}
|
|
22149
22162
|
function Tabs(props) {
|
|
@@ -22185,7 +22198,7 @@ function Tabs(props) {
|
|
|
22185
22198
|
setActive(selected);
|
|
22186
22199
|
}
|
|
22187
22200
|
}
|
|
22188
|
-
return /* @__PURE__ */ jsxs90("div", { ...
|
|
22201
|
+
return /* @__PURE__ */ jsxs90("div", { ...trussProps90({
|
|
22189
22202
|
...{
|
|
22190
22203
|
display: "df",
|
|
22191
22204
|
alignItems: "aic",
|
|
@@ -22249,7 +22262,7 @@ function TabImpl(props) {
|
|
|
22249
22262
|
role: "tab",
|
|
22250
22263
|
tabIndex: active ? 0 : -1,
|
|
22251
22264
|
...others,
|
|
22252
|
-
...
|
|
22265
|
+
...trussProps90({
|
|
22253
22266
|
...baseStyles5,
|
|
22254
22267
|
...active && activeStyles3,
|
|
22255
22268
|
...isDisabled && disabledStyles4,
|
|
@@ -22370,7 +22383,7 @@ function hideTabs(props) {
|
|
|
22370
22383
|
}
|
|
22371
22384
|
|
|
22372
22385
|
// src/components/PageHeader.tsx
|
|
22373
|
-
import { trussProps as
|
|
22386
|
+
import { trussProps as trussProps91 } from "@homebound/truss/runtime";
|
|
22374
22387
|
import { jsx as jsx176, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
22375
22388
|
function PageHeader2(props) {
|
|
22376
22389
|
const {
|
|
@@ -22380,7 +22393,7 @@ function PageHeader2(props) {
|
|
|
22380
22393
|
...otherProps
|
|
22381
22394
|
} = props;
|
|
22382
22395
|
const tid = useTestIds(otherProps, "pageHeader");
|
|
22383
|
-
return /* @__PURE__ */ jsxs91("header", { ...tid, ...
|
|
22396
|
+
return /* @__PURE__ */ jsxs91("header", { ...tid, ...trussProps91({
|
|
22384
22397
|
display: "df",
|
|
22385
22398
|
flexDirection: "fdc",
|
|
22386
22399
|
paddingTop: "pt3",
|
|
@@ -22406,7 +22419,7 @@ function PageHeader2(props) {
|
|
|
22406
22419
|
// src/components/ScrollShadows.tsx
|
|
22407
22420
|
import { useResizeObserver as useResizeObserver9 } from "@react-aria/utils";
|
|
22408
22421
|
import { useCallback as useCallback32, useMemo as useMemo50, useRef as useRef57, useState as useState54 } from "react";
|
|
22409
|
-
import { trussProps as
|
|
22422
|
+
import { trussProps as trussProps92, maybeCssVar as maybeCssVar51 } from "@homebound/truss/runtime";
|
|
22410
22423
|
import { jsx as jsx177, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
22411
22424
|
function ScrollShadows(props) {
|
|
22412
22425
|
const {
|
|
@@ -22497,7 +22510,7 @@ function ScrollShadows(props) {
|
|
|
22497
22510
|
ref: scrollRef,
|
|
22498
22511
|
onResize
|
|
22499
22512
|
});
|
|
22500
|
-
return /* @__PURE__ */ jsxs92("div", { ...
|
|
22513
|
+
return /* @__PURE__ */ jsxs92("div", { ...trussProps92({
|
|
22501
22514
|
display: "df",
|
|
22502
22515
|
flexDirection: ["fd_var", {
|
|
22503
22516
|
"--flexDirection": maybeCssVar51(!horizontal ? "column" : "row")
|
|
@@ -22513,7 +22526,7 @@ function ScrollShadows(props) {
|
|
|
22513
22526
|
width: width2
|
|
22514
22527
|
}
|
|
22515
22528
|
}), ...tid, children: [
|
|
22516
|
-
/* @__PURE__ */ jsx177("div", { ...
|
|
22529
|
+
/* @__PURE__ */ jsx177("div", { ...trussProps92({
|
|
22517
22530
|
...startShadowStyles,
|
|
22518
22531
|
...{
|
|
22519
22532
|
opacity: ["o_var", {
|
|
@@ -22521,7 +22534,7 @@ function ScrollShadows(props) {
|
|
|
22521
22534
|
}]
|
|
22522
22535
|
}
|
|
22523
22536
|
}), "data-chromatic": "ignore" }),
|
|
22524
|
-
/* @__PURE__ */ jsx177("div", { ...
|
|
22537
|
+
/* @__PURE__ */ jsx177("div", { ...trussProps92({
|
|
22525
22538
|
...endShadowStyles,
|
|
22526
22539
|
...{
|
|
22527
22540
|
opacity: ["o_var", {
|
|
@@ -22529,7 +22542,7 @@ function ScrollShadows(props) {
|
|
|
22529
22542
|
}]
|
|
22530
22543
|
}
|
|
22531
22544
|
}), "data-chromatic": "ignore" }),
|
|
22532
|
-
/* @__PURE__ */ jsx177("div", { ...
|
|
22545
|
+
/* @__PURE__ */ jsx177("div", { ...trussProps92({
|
|
22533
22546
|
...xss,
|
|
22534
22547
|
...{
|
|
22535
22548
|
overflow: "oa",
|
|
@@ -22609,7 +22622,7 @@ function useHasSideNavLayoutProvider() {
|
|
|
22609
22622
|
}
|
|
22610
22623
|
|
|
22611
22624
|
// src/components/SideNav/SideNav.tsx
|
|
22612
|
-
import { trussProps as
|
|
22625
|
+
import { trussProps as trussProps93 } from "@homebound/truss/runtime";
|
|
22613
22626
|
import { jsx as jsx179, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
22614
22627
|
function SideNav(props) {
|
|
22615
22628
|
const {
|
|
@@ -22624,7 +22637,7 @@ function SideNav(props) {
|
|
|
22624
22637
|
const panelCollapsed = navState === "collapse";
|
|
22625
22638
|
const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
|
|
22626
22639
|
return /* @__PURE__ */ jsxs93("nav", { className: "df fdc h100 fs0", ...tid, children: [
|
|
22627
|
-
top !== void 0 && /* @__PURE__ */ jsx179("div", { ...
|
|
22640
|
+
top !== void 0 && /* @__PURE__ */ jsx179("div", { ...trussProps93({
|
|
22628
22641
|
flexShrink: "fs0",
|
|
22629
22642
|
paddingLeft: "pl2",
|
|
22630
22643
|
paddingRight: "pr2",
|
|
@@ -22635,7 +22648,7 @@ function SideNav(props) {
|
|
|
22635
22648
|
paddingBottom: "pb4"
|
|
22636
22649
|
} : {}
|
|
22637
22650
|
}), ...tid.top, children: top }),
|
|
22638
|
-
/* @__PURE__ */ jsx179("div", { ...
|
|
22651
|
+
/* @__PURE__ */ jsx179("div", { ...trussProps93({
|
|
22639
22652
|
flexGrow: "fg1",
|
|
22640
22653
|
overflowY: "oya",
|
|
22641
22654
|
display: "df",
|
|
@@ -22648,7 +22661,7 @@ function SideNav(props) {
|
|
|
22648
22661
|
paddingTop: "pt5"
|
|
22649
22662
|
} : {}
|
|
22650
22663
|
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ jsx179(AppNavItems, { items, panelCollapsed }) }),
|
|
22651
|
-
footer !== void 0 && /* @__PURE__ */ jsx179("div", { ...
|
|
22664
|
+
footer !== void 0 && /* @__PURE__ */ jsx179("div", { ...trussProps93({
|
|
22652
22665
|
flexShrink: "fs0",
|
|
22653
22666
|
paddingLeft: "pl2",
|
|
22654
22667
|
paddingRight: "pr2",
|
|
@@ -22725,7 +22738,7 @@ var snackbarId = 1;
|
|
|
22725
22738
|
// src/components/Stepper.tsx
|
|
22726
22739
|
import { useRef as useRef59 } from "react";
|
|
22727
22740
|
import { useButton as useButton12, useFocusRing as useFocusRing16, useHover as useHover20 } from "react-aria";
|
|
22728
|
-
import { trussProps as
|
|
22741
|
+
import { trussProps as trussProps94, maybeCssVar as maybeCssVar52 } from "@homebound/truss/runtime";
|
|
22729
22742
|
import { jsx as jsx180, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
22730
22743
|
import { createElement as createElement4 } from "react";
|
|
22731
22744
|
var __maybeInc19 = (inc) => {
|
|
@@ -22746,7 +22759,7 @@ function Stepper(props) {
|
|
|
22746
22759
|
const minStepWidth = 100;
|
|
22747
22760
|
const gap = 8;
|
|
22748
22761
|
return /* @__PURE__ */ jsxs94("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
22749
|
-
/* @__PURE__ */ jsx180("ol", { ...
|
|
22762
|
+
/* @__PURE__ */ jsx180("ol", { ...trussProps94({
|
|
22750
22763
|
padding: "p_0",
|
|
22751
22764
|
margin: "m_0",
|
|
22752
22765
|
listStyle: "lis_none",
|
|
@@ -22756,7 +22769,7 @@ function Stepper(props) {
|
|
|
22756
22769
|
}]
|
|
22757
22770
|
}), children: steps.map((step) => {
|
|
22758
22771
|
const isCurrent = currentStep === step.value;
|
|
22759
|
-
return /* @__PURE__ */ createElement4("li", { ...
|
|
22772
|
+
return /* @__PURE__ */ createElement4("li", { ...trussProps94({
|
|
22760
22773
|
display: "df",
|
|
22761
22774
|
flexGrow: "fg1",
|
|
22762
22775
|
flexDirection: "fdc",
|
|
@@ -22768,7 +22781,7 @@ function Stepper(props) {
|
|
|
22768
22781
|
}]
|
|
22769
22782
|
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx180(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
22770
22783
|
}) }),
|
|
22771
|
-
/* @__PURE__ */ jsx180("div", { ...
|
|
22784
|
+
/* @__PURE__ */ jsx180("div", { ...trussProps94({
|
|
22772
22785
|
marginTop: "mt1",
|
|
22773
22786
|
backgroundColor: "bgGray300",
|
|
22774
22787
|
height: "h_4px",
|
|
@@ -22779,7 +22792,7 @@ function Stepper(props) {
|
|
|
22779
22792
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
22780
22793
|
}],
|
|
22781
22794
|
width: "w100"
|
|
22782
|
-
}), children: /* @__PURE__ */ jsx180("div", { ...
|
|
22795
|
+
}), children: /* @__PURE__ */ jsx180("div", { ...trussProps94({
|
|
22783
22796
|
backgroundColor: "bgBlue600",
|
|
22784
22797
|
transition: "transition_width_200ms",
|
|
22785
22798
|
height: "h100",
|
|
@@ -22820,7 +22833,7 @@ function StepButton(props) {
|
|
|
22820
22833
|
boxShadow: "bshFocus"
|
|
22821
22834
|
};
|
|
22822
22835
|
const tid = useTestIds(props, "stepButton");
|
|
22823
|
-
return /* @__PURE__ */ jsxs94("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...
|
|
22836
|
+
return /* @__PURE__ */ jsxs94("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...trussProps94({
|
|
22824
22837
|
...{
|
|
22825
22838
|
fontWeight: "fw6",
|
|
22826
22839
|
fontSize: "fz_14px",
|
|
@@ -22888,7 +22901,7 @@ function StepIcon({
|
|
|
22888
22901
|
if (state === "complete") {
|
|
22889
22902
|
return /* @__PURE__ */ jsx180(Icon, { icon: "check" });
|
|
22890
22903
|
}
|
|
22891
|
-
return /* @__PURE__ */ jsx180("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ jsx180("div", { ...
|
|
22904
|
+
return /* @__PURE__ */ jsx180("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ jsx180("div", { ...trussProps94({
|
|
22892
22905
|
width: "w_10px",
|
|
22893
22906
|
height: "h_10px",
|
|
22894
22907
|
borderStyle: "bss",
|
|
@@ -22903,7 +22916,7 @@ function StepIcon({
|
|
|
22903
22916
|
|
|
22904
22917
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
22905
22918
|
import { createPortal as createPortal7 } from "react-dom";
|
|
22906
|
-
import { trussProps as
|
|
22919
|
+
import { trussProps as trussProps95 } from "@homebound/truss/runtime";
|
|
22907
22920
|
import { jsx as jsx181, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
22908
22921
|
function SuperDrawerHeader(props) {
|
|
22909
22922
|
const {
|
|
@@ -22929,7 +22942,7 @@ function SuperDrawerHeader(props) {
|
|
|
22929
22942
|
] }),
|
|
22930
22943
|
props.right && /* @__PURE__ */ jsx181("div", { className: "fs0", children: props.right })
|
|
22931
22944
|
] }) : /* @__PURE__ */ jsx181("div", { className: "fg1", children: props.children }),
|
|
22932
|
-
!hideControls && /* @__PURE__ */ jsx181("div", { ...
|
|
22945
|
+
!hideControls && /* @__PURE__ */ jsx181("div", { ...trussProps95({
|
|
22933
22946
|
flexShrink: "fs0",
|
|
22934
22947
|
...isDetail ? {
|
|
22935
22948
|
visibility: "vh"
|
|
@@ -23202,7 +23215,7 @@ function useToast() {
|
|
|
23202
23215
|
}
|
|
23203
23216
|
|
|
23204
23217
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
23205
|
-
import { trussProps as
|
|
23218
|
+
import { trussProps as trussProps96, mergeProps as mergeProps29, maybeCssVar as maybeCssVar53 } from "@homebound/truss/runtime";
|
|
23206
23219
|
import { jsx as jsx185, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
23207
23220
|
var __maybeInc20 = (inc) => {
|
|
23208
23221
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -23232,7 +23245,7 @@ function SideNavLayoutContent(props) {
|
|
|
23232
23245
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
23233
23246
|
const navTop = `var(${beamNavbarLayoutHeightVar}, 0px)`;
|
|
23234
23247
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
23235
|
-
const rail = showRail && /* @__PURE__ */ jsxs98("div", { ...
|
|
23248
|
+
const rail = showRail && /* @__PURE__ */ jsxs98("div", { ...trussProps96({
|
|
23236
23249
|
...{
|
|
23237
23250
|
display: "df",
|
|
23238
23251
|
flexDirection: "fdc",
|
|
@@ -23300,7 +23313,7 @@ function SideNavLayoutContent(props) {
|
|
|
23300
23313
|
width: "w100"
|
|
23301
23314
|
}), ...tid, children: [
|
|
23302
23315
|
contrastRail ? /* @__PURE__ */ jsx185(ContrastScope, { children: rail }) : rail,
|
|
23303
|
-
/* @__PURE__ */ jsx185("div", { ...
|
|
23316
|
+
/* @__PURE__ */ jsx185("div", { ...trussProps96({
|
|
23304
23317
|
display: "df",
|
|
23305
23318
|
flexDirection: "fdc",
|
|
23306
23319
|
flexGrow: "fg1",
|