@homebound/beam 3.11.0 → 3.12.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 +140 -108
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +127 -96
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -129,6 +129,7 @@ __export(index_exports, {
|
|
|
129
129
|
NavLink: () => NavLink,
|
|
130
130
|
NumberField: () => NumberField,
|
|
131
131
|
OpenModal: () => OpenModal,
|
|
132
|
+
PageHeader: () => PageHeader2,
|
|
132
133
|
Pagination: () => Pagination,
|
|
133
134
|
Palette: () => Palette,
|
|
134
135
|
PresentationProvider: () => PresentationProvider,
|
|
@@ -21564,11 +21565,41 @@ function MaxLines({
|
|
|
21564
21565
|
] });
|
|
21565
21566
|
}
|
|
21566
21567
|
|
|
21567
|
-
// src/components/
|
|
21568
|
-
var import_utils133 = require("@react-aria/utils");
|
|
21569
|
-
var import_react120 = require("react");
|
|
21568
|
+
// src/components/PageHeader.tsx
|
|
21570
21569
|
var import_runtime91 = require("@homebound/truss/runtime");
|
|
21571
21570
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
21571
|
+
function PageHeader2(props) {
|
|
21572
|
+
const {
|
|
21573
|
+
title,
|
|
21574
|
+
rightSlot,
|
|
21575
|
+
...otherProps
|
|
21576
|
+
} = props;
|
|
21577
|
+
const tid = useTestIds(otherProps, "pageHeader");
|
|
21578
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("header", { ...tid, ...(0, import_runtime91.trussProps)({
|
|
21579
|
+
display: "df",
|
|
21580
|
+
flexDirection: "fdc",
|
|
21581
|
+
paddingTop: "pt3",
|
|
21582
|
+
paddingRight: "pr3",
|
|
21583
|
+
paddingLeft: "pl3",
|
|
21584
|
+
borderBottomStyle: "bbs_solid",
|
|
21585
|
+
borderBottomWidth: "bbw_1px",
|
|
21586
|
+
borderColor: ["bc_var", {
|
|
21587
|
+
"--borderColor": "var(--b-surface-separator)"
|
|
21588
|
+
}],
|
|
21589
|
+
backgroundColor: ["bgColor_var", {
|
|
21590
|
+
"--backgroundColor": "var(--b-surface)"
|
|
21591
|
+
}]
|
|
21592
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("div", { className: "df jcsb mb2 w100 gap1", children: [
|
|
21593
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("h1", { ...tid.title, className: "fw6 fz_20px lh_28px", children: title }) }),
|
|
21594
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { children: rightSlot })
|
|
21595
|
+
] }) });
|
|
21596
|
+
}
|
|
21597
|
+
|
|
21598
|
+
// src/components/ScrollShadows.tsx
|
|
21599
|
+
var import_utils134 = require("@react-aria/utils");
|
|
21600
|
+
var import_react120 = require("react");
|
|
21601
|
+
var import_runtime92 = require("@homebound/truss/runtime");
|
|
21602
|
+
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
21572
21603
|
function ScrollShadows(props) {
|
|
21573
21604
|
const {
|
|
21574
21605
|
children,
|
|
@@ -21592,7 +21623,7 @@ function ScrollShadows(props) {
|
|
|
21592
21623
|
const commonStyles = {
|
|
21593
21624
|
position: "absolute",
|
|
21594
21625
|
zIndex: ["z_var", {
|
|
21595
|
-
"--zIndex": (0,
|
|
21626
|
+
"--zIndex": (0, import_runtime92.maybeCssVar)(zIndices.scrollShadow)
|
|
21596
21627
|
}],
|
|
21597
21628
|
pointerEvents: "pointerEvents_none"
|
|
21598
21629
|
};
|
|
@@ -21625,7 +21656,7 @@ function ScrollShadows(props) {
|
|
|
21625
21656
|
...startShadowStyles2,
|
|
21626
21657
|
...{
|
|
21627
21658
|
background: ["background_var", {
|
|
21628
|
-
"--background": (0,
|
|
21659
|
+
"--background": (0, import_runtime92.maybeCssVar)(startGradient)
|
|
21629
21660
|
}]
|
|
21630
21661
|
}
|
|
21631
21662
|
}, {
|
|
@@ -21633,7 +21664,7 @@ function ScrollShadows(props) {
|
|
|
21633
21664
|
...endShadowStyles2,
|
|
21634
21665
|
...{
|
|
21635
21666
|
background: ["background_var", {
|
|
21636
|
-
"--background": (0,
|
|
21667
|
+
"--background": (0, import_runtime92.maybeCssVar)(endGradient)
|
|
21637
21668
|
}]
|
|
21638
21669
|
}
|
|
21639
21670
|
}];
|
|
@@ -21654,14 +21685,14 @@ function ScrollShadows(props) {
|
|
|
21654
21685
|
setShowEndShadow(start + boxSize < end);
|
|
21655
21686
|
}, [horizontal]);
|
|
21656
21687
|
const onResize = (0, import_react120.useCallback)(() => scrollRef.current && updateScrollProps(scrollRef.current), [updateScrollProps]);
|
|
21657
|
-
(0,
|
|
21688
|
+
(0, import_utils134.useResizeObserver)({
|
|
21658
21689
|
ref: scrollRef,
|
|
21659
21690
|
onResize
|
|
21660
21691
|
});
|
|
21661
|
-
return /* @__PURE__ */ (0,
|
|
21692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { ...(0, import_runtime92.trussProps)({
|
|
21662
21693
|
display: "df",
|
|
21663
21694
|
flexDirection: ["fd_var", {
|
|
21664
|
-
"--flexDirection": (0,
|
|
21695
|
+
"--flexDirection": (0, import_runtime92.maybeCssVar)(!horizontal ? "column" : "row")
|
|
21665
21696
|
}],
|
|
21666
21697
|
position: "relative",
|
|
21667
21698
|
overflow: "oh",
|
|
@@ -21674,23 +21705,23 @@ function ScrollShadows(props) {
|
|
|
21674
21705
|
width: width2
|
|
21675
21706
|
}
|
|
21676
21707
|
}), ...tid, children: [
|
|
21677
|
-
/* @__PURE__ */ (0,
|
|
21708
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { ...(0, import_runtime92.trussProps)({
|
|
21678
21709
|
...startShadowStyles,
|
|
21679
21710
|
...{
|
|
21680
21711
|
opacity: ["o_var", {
|
|
21681
|
-
"--opacity": (0,
|
|
21712
|
+
"--opacity": (0, import_runtime92.maybeCssVar)(showStartShadow ? 1 : 0)
|
|
21682
21713
|
}]
|
|
21683
21714
|
}
|
|
21684
21715
|
}), "data-chromatic": "ignore" }),
|
|
21685
|
-
/* @__PURE__ */ (0,
|
|
21716
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { ...(0, import_runtime92.trussProps)({
|
|
21686
21717
|
...endShadowStyles,
|
|
21687
21718
|
...{
|
|
21688
21719
|
opacity: ["o_var", {
|
|
21689
|
-
"--opacity": (0,
|
|
21720
|
+
"--opacity": (0, import_runtime92.maybeCssVar)(showEndShadow ? 1 : 0)
|
|
21690
21721
|
}]
|
|
21691
21722
|
}
|
|
21692
21723
|
}), "data-chromatic": "ignore" }),
|
|
21693
|
-
/* @__PURE__ */ (0,
|
|
21724
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { ...(0, import_runtime92.trussProps)({
|
|
21694
21725
|
...xss,
|
|
21695
21726
|
...{
|
|
21696
21727
|
overflow: "oa",
|
|
@@ -21736,25 +21767,25 @@ function useSideNavLinkGroupExpanded(linkGroup) {
|
|
|
21736
21767
|
}
|
|
21737
21768
|
|
|
21738
21769
|
// src/components/SideNav/SideNavLinkGroup.tsx
|
|
21739
|
-
var
|
|
21770
|
+
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
21740
21771
|
function SideNavLinkGroupView(props) {
|
|
21741
21772
|
const { linkGroup, panelCollapsed } = props;
|
|
21742
21773
|
const tid = useTestIds(props, "linkGroup");
|
|
21743
21774
|
if (panelCollapsed) {
|
|
21744
|
-
return /* @__PURE__ */ (0,
|
|
21775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(import_jsx_runtime169.Fragment, { children: linkGroup.links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(NavLink, { variant: "side", ...link, iconOnly: !!link.icon, ...tid.link }, link.label)) });
|
|
21745
21776
|
}
|
|
21746
|
-
return /* @__PURE__ */ (0,
|
|
21777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(SideNavLinkGroupDisclosure, { ...props });
|
|
21747
21778
|
}
|
|
21748
21779
|
function SideNavLinkGroupDisclosure(props) {
|
|
21749
21780
|
const { linkGroup } = props;
|
|
21750
21781
|
const { expanded, onToggle } = useSideNavLinkGroupExpanded(linkGroup);
|
|
21751
21782
|
const tid = useTestIds(props, "linkGroup");
|
|
21752
|
-
return /* @__PURE__ */ (0,
|
|
21783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(NavGroup, { label: linkGroup.label, links: linkGroup.links, expanded, onClick: onToggle, ...tid });
|
|
21753
21784
|
}
|
|
21754
21785
|
|
|
21755
21786
|
// src/components/SideNav/SideNavSectionView.tsx
|
|
21756
|
-
var
|
|
21757
|
-
var
|
|
21787
|
+
var import_runtime93 = require("@homebound/truss/runtime");
|
|
21788
|
+
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
21758
21789
|
function SideNavSectionView(props) {
|
|
21759
21790
|
const {
|
|
21760
21791
|
section,
|
|
@@ -21763,7 +21794,7 @@ function SideNavSectionView(props) {
|
|
|
21763
21794
|
...scopeProps
|
|
21764
21795
|
} = props;
|
|
21765
21796
|
const tid = useTestIds(scopeProps);
|
|
21766
|
-
return /* @__PURE__ */ (0,
|
|
21797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { ...(0, import_runtime93.trussProps)({
|
|
21767
21798
|
display: "df",
|
|
21768
21799
|
flexDirection: "fdc",
|
|
21769
21800
|
paddingTop: "pt2",
|
|
@@ -21776,7 +21807,7 @@ function SideNavSectionView(props) {
|
|
|
21776
21807
|
paddingBottom: "pb2"
|
|
21777
21808
|
} : {}
|
|
21778
21809
|
}), ...tid, children: [
|
|
21779
|
-
section.label && !panelCollapsed && /* @__PURE__ */ (0,
|
|
21810
|
+
section.label && !panelCollapsed && /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { ...(0, import_runtime93.trussProps)({
|
|
21780
21811
|
fontWeight: "fw6",
|
|
21781
21812
|
fontSize: "fz_10px",
|
|
21782
21813
|
lineHeight: "lh_14px",
|
|
@@ -21788,7 +21819,7 @@ function SideNavSectionView(props) {
|
|
|
21788
21819
|
paddingBottom: "pb1",
|
|
21789
21820
|
textTransform: "ttu"
|
|
21790
21821
|
}), ...tid.label, children: section.label }),
|
|
21791
|
-
/* @__PURE__ */ (0,
|
|
21822
|
+
/* @__PURE__ */ (0, import_jsx_runtime170.jsx)(SideNavItems, { ...scopeProps, items: section.items, panelCollapsed })
|
|
21792
21823
|
] });
|
|
21793
21824
|
}
|
|
21794
21825
|
|
|
@@ -21815,13 +21846,13 @@ function entryHasIcons(item) {
|
|
|
21815
21846
|
}
|
|
21816
21847
|
|
|
21817
21848
|
// src/components/SideNav/SideNavItems.tsx
|
|
21818
|
-
var
|
|
21849
|
+
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
21819
21850
|
function SideNavItems(props) {
|
|
21820
21851
|
const { items, panelCollapsed } = props;
|
|
21821
21852
|
const tid = useTestIds(props, "sideNav");
|
|
21822
|
-
return /* @__PURE__ */ (0,
|
|
21853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_jsx_runtime171.Fragment, { children: items.map((item, idx) => {
|
|
21823
21854
|
if (isSideNavLink(item)) {
|
|
21824
|
-
return /* @__PURE__ */ (0,
|
|
21855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
|
|
21825
21856
|
NavLink,
|
|
21826
21857
|
{
|
|
21827
21858
|
variant: "side",
|
|
@@ -21833,7 +21864,7 @@ function SideNavItems(props) {
|
|
|
21833
21864
|
);
|
|
21834
21865
|
}
|
|
21835
21866
|
if (isSideNavLinkGroup(item)) {
|
|
21836
|
-
return /* @__PURE__ */ (0,
|
|
21867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
|
|
21837
21868
|
SideNavLinkGroupView,
|
|
21838
21869
|
{
|
|
21839
21870
|
linkGroup: item,
|
|
@@ -21843,7 +21874,7 @@ function SideNavItems(props) {
|
|
|
21843
21874
|
sideNavItemKey(item)
|
|
21844
21875
|
);
|
|
21845
21876
|
}
|
|
21846
|
-
return /* @__PURE__ */ (0,
|
|
21877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
|
|
21847
21878
|
SideNavSectionView,
|
|
21848
21879
|
{
|
|
21849
21880
|
section: item,
|
|
@@ -21858,7 +21889,7 @@ function SideNavItems(props) {
|
|
|
21858
21889
|
|
|
21859
21890
|
// src/layouts/SideNavLayout/SideNavLayoutContext.tsx
|
|
21860
21891
|
var import_react122 = require("react");
|
|
21861
|
-
var
|
|
21892
|
+
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
21862
21893
|
var SIDE_NAV_LAYOUT_STATE_STORAGE_KEY = "beam.sideNavLayout.navState";
|
|
21863
21894
|
function loadStoredNavState() {
|
|
21864
21895
|
try {
|
|
@@ -21905,7 +21936,7 @@ function SideNavLayoutProvider(props) {
|
|
|
21905
21936
|
return next;
|
|
21906
21937
|
});
|
|
21907
21938
|
}, []);
|
|
21908
|
-
return /* @__PURE__ */ (0,
|
|
21939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(SideNavLayoutContext.Provider, { value: { navState, setNavState }, children: props.children });
|
|
21909
21940
|
}
|
|
21910
21941
|
function useSideNavLayoutContext() {
|
|
21911
21942
|
return (0, import_react122.useContext)(SideNavLayoutContext) ?? { navState: "expanded", setNavState: () => {
|
|
@@ -21916,8 +21947,8 @@ function useHasSideNavLayoutProvider() {
|
|
|
21916
21947
|
}
|
|
21917
21948
|
|
|
21918
21949
|
// src/components/SideNav/SideNav.tsx
|
|
21919
|
-
var
|
|
21920
|
-
var
|
|
21950
|
+
var import_runtime94 = require("@homebound/truss/runtime");
|
|
21951
|
+
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
21921
21952
|
function SideNav(props) {
|
|
21922
21953
|
const {
|
|
21923
21954
|
top,
|
|
@@ -21930,8 +21961,8 @@ function SideNav(props) {
|
|
|
21930
21961
|
const tid = useTestIds(props, "sideNav");
|
|
21931
21962
|
const panelCollapsed = navState === "collapse";
|
|
21932
21963
|
const hideOnCollapse = panelCollapsed && !allItemsHaveIcons(items);
|
|
21933
|
-
return /* @__PURE__ */ (0,
|
|
21934
|
-
top !== void 0 && /* @__PURE__ */ (0,
|
|
21964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("nav", { className: "df fdc h100 fs0", ...tid, children: [
|
|
21965
|
+
top !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime94.trussProps)({
|
|
21935
21966
|
flexShrink: "fs0",
|
|
21936
21967
|
paddingLeft: "pl2",
|
|
21937
21968
|
paddingRight: "pr2",
|
|
@@ -21942,7 +21973,7 @@ function SideNav(props) {
|
|
|
21942
21973
|
paddingBottom: "pb4"
|
|
21943
21974
|
} : {}
|
|
21944
21975
|
}), ...tid.top, children: top }),
|
|
21945
|
-
/* @__PURE__ */ (0,
|
|
21976
|
+
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime94.trussProps)({
|
|
21946
21977
|
flexGrow: "fg1",
|
|
21947
21978
|
overflowY: "oya",
|
|
21948
21979
|
display: "df",
|
|
@@ -21954,8 +21985,8 @@ function SideNav(props) {
|
|
|
21954
21985
|
...top === void 0 ? {
|
|
21955
21986
|
paddingTop: "pt5"
|
|
21956
21987
|
} : {}
|
|
21957
|
-
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0,
|
|
21958
|
-
footer !== void 0 && /* @__PURE__ */ (0,
|
|
21988
|
+
}), ...tid.items, children: !hideOnCollapse && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(SideNavItems, { items, panelCollapsed }) }),
|
|
21989
|
+
footer !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ...(0, import_runtime94.trussProps)({
|
|
21959
21990
|
flexShrink: "fs0",
|
|
21960
21991
|
paddingLeft: "pl2",
|
|
21961
21992
|
paddingRight: "pr2",
|
|
@@ -22032,8 +22063,8 @@ var snackbarId = 1;
|
|
|
22032
22063
|
// src/components/Stepper.tsx
|
|
22033
22064
|
var import_react124 = require("react");
|
|
22034
22065
|
var import_react_aria53 = require("react-aria");
|
|
22035
|
-
var
|
|
22036
|
-
var
|
|
22066
|
+
var import_runtime95 = require("@homebound/truss/runtime");
|
|
22067
|
+
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
22037
22068
|
var import_react125 = require("react");
|
|
22038
22069
|
var __maybeInc14 = (inc) => {
|
|
22039
22070
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
@@ -22052,8 +22083,8 @@ function Stepper(props) {
|
|
|
22052
22083
|
const maxStepWidth = 200;
|
|
22053
22084
|
const minStepWidth = 100;
|
|
22054
22085
|
const gap = 8;
|
|
22055
|
-
return /* @__PURE__ */ (0,
|
|
22056
|
-
/* @__PURE__ */ (0,
|
|
22086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("nav", { "aria-label": "steps", className: "df fdc w100", ...tid, children: [
|
|
22087
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("ol", { ...(0, import_runtime95.trussProps)({
|
|
22057
22088
|
padding: "p_0",
|
|
22058
22089
|
margin: "m_0",
|
|
22059
22090
|
listStyle: "lis_none",
|
|
@@ -22063,7 +22094,7 @@ function Stepper(props) {
|
|
|
22063
22094
|
}]
|
|
22064
22095
|
}), children: steps.map((step) => {
|
|
22065
22096
|
const isCurrent = currentStep === step.value;
|
|
22066
|
-
return /* @__PURE__ */ (0, import_react125.createElement)("li", { ...(0,
|
|
22097
|
+
return /* @__PURE__ */ (0, import_react125.createElement)("li", { ...(0, import_runtime95.trussProps)({
|
|
22067
22098
|
display: "df",
|
|
22068
22099
|
flexGrow: "fg1",
|
|
22069
22100
|
flexDirection: "fdc",
|
|
@@ -22073,9 +22104,9 @@ function Stepper(props) {
|
|
|
22073
22104
|
minWidth: ["mw_var", {
|
|
22074
22105
|
"--minWidth": `${minStepWidth}px`
|
|
22075
22106
|
}]
|
|
22076
|
-
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0,
|
|
22107
|
+
}), key: step.label, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(StepButton, { ...step, onClick: () => onChange(step.value), isCurrent, ...tid.stepButton }));
|
|
22077
22108
|
}) }),
|
|
22078
|
-
/* @__PURE__ */ (0,
|
|
22109
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0, import_runtime95.trussProps)({
|
|
22079
22110
|
marginTop: "mt1",
|
|
22080
22111
|
backgroundColor: "bgGray300",
|
|
22081
22112
|
height: "h_4px",
|
|
@@ -22086,12 +22117,12 @@ function Stepper(props) {
|
|
|
22086
22117
|
"--minWidth": `${steps.length * minStepWidth + (steps.length - 1) * gap}px`
|
|
22087
22118
|
}],
|
|
22088
22119
|
width: "w100"
|
|
22089
|
-
}), children: /* @__PURE__ */ (0,
|
|
22120
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0, import_runtime95.trussProps)({
|
|
22090
22121
|
backgroundColor: "bgBlue600",
|
|
22091
22122
|
transition: "transition_width_200ms",
|
|
22092
22123
|
height: "h100",
|
|
22093
22124
|
width: ["w_var", {
|
|
22094
|
-
"--width": (0,
|
|
22125
|
+
"--width": (0, import_runtime95.maybeCssVar)(__maybeInc14(`${(lastCompletedStep + 1) / steps.length * 100}%`))
|
|
22095
22126
|
}]
|
|
22096
22127
|
}) }) })
|
|
22097
22128
|
] });
|
|
@@ -22127,7 +22158,7 @@ function StepButton(props) {
|
|
|
22127
22158
|
boxShadow: "bshFocus"
|
|
22128
22159
|
};
|
|
22129
22160
|
const tid = useTestIds(props, "stepButton");
|
|
22130
|
-
return /* @__PURE__ */ (0,
|
|
22161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("button", { ref, ...buttonProps, ...focusProps, ...hoverProps, ...(0, import_runtime95.trussProps)({
|
|
22131
22162
|
...{
|
|
22132
22163
|
fontWeight: "fw6",
|
|
22133
22164
|
fontSize: "fz_14px",
|
|
@@ -22179,7 +22210,7 @@ function StepButton(props) {
|
|
|
22179
22210
|
} : {},
|
|
22180
22211
|
...isFocusVisible ? focusRingStyles2 : {}
|
|
22181
22212
|
}), ...tid[defaultTestId(label)], children: [
|
|
22182
|
-
/* @__PURE__ */ (0,
|
|
22213
|
+
/* @__PURE__ */ (0, import_jsx_runtime174.jsx)("span", { className: "fs0 mr_4px", children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(StepIcon, { state, isHovered, isPressed, isCurrent }) }),
|
|
22183
22214
|
label
|
|
22184
22215
|
] });
|
|
22185
22216
|
}
|
|
@@ -22190,12 +22221,12 @@ function StepIcon({
|
|
|
22190
22221
|
isCurrent = false
|
|
22191
22222
|
}) {
|
|
22192
22223
|
if (state === "error") {
|
|
22193
|
-
return /* @__PURE__ */ (0,
|
|
22224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(Icon, { icon: "errorCircle" });
|
|
22194
22225
|
}
|
|
22195
22226
|
if (state === "complete") {
|
|
22196
|
-
return /* @__PURE__ */ (0,
|
|
22227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(Icon, { icon: "check" });
|
|
22197
22228
|
}
|
|
22198
|
-
return /* @__PURE__ */ (0,
|
|
22229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { className: "w_24px h_24px df aic jcc", children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("div", { ...(0, import_runtime95.trussProps)({
|
|
22199
22230
|
width: "w_10px",
|
|
22200
22231
|
height: "h_10px",
|
|
22201
22232
|
borderStyle: "bss",
|
|
@@ -22210,8 +22241,8 @@ function StepIcon({
|
|
|
22210
22241
|
|
|
22211
22242
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
22212
22243
|
var import_react_dom6 = require("react-dom");
|
|
22213
|
-
var
|
|
22214
|
-
var
|
|
22244
|
+
var import_runtime96 = require("@homebound/truss/runtime");
|
|
22245
|
+
var import_jsx_runtime175 = require("react/jsx-runtime");
|
|
22215
22246
|
function SuperDrawerHeader(props) {
|
|
22216
22247
|
const {
|
|
22217
22248
|
hideControls
|
|
@@ -22228,20 +22259,20 @@ function SuperDrawerHeader(props) {
|
|
|
22228
22259
|
const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
|
|
22229
22260
|
const isDetail = currentContent !== firstContent;
|
|
22230
22261
|
const tid = useTestIds({}, "superDrawerHeader");
|
|
22231
|
-
return (0, import_react_dom6.createPortal)(/* @__PURE__ */ (0,
|
|
22232
|
-
isStructuredProps(props) ? /* @__PURE__ */ (0,
|
|
22233
|
-
/* @__PURE__ */ (0,
|
|
22234
|
-
/* @__PURE__ */ (0,
|
|
22262
|
+
return (0, import_react_dom6.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("div", { className: "df aic jcsb gap3", ...tid, children: [
|
|
22263
|
+
isStructuredProps(props) ? /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("div", { className: "df jcsb aic gap2 fg1", children: [
|
|
22264
|
+
/* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("div", { className: "fg1 df aic gap2", children: [
|
|
22265
|
+
/* @__PURE__ */ (0, import_jsx_runtime175.jsx)("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
|
|
22235
22266
|
props.left
|
|
22236
22267
|
] }),
|
|
22237
|
-
props.right && /* @__PURE__ */ (0,
|
|
22238
|
-
] }) : /* @__PURE__ */ (0,
|
|
22239
|
-
!hideControls && /* @__PURE__ */ (0,
|
|
22268
|
+
props.right && /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("div", { className: "fs0", children: props.right })
|
|
22269
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("div", { className: "fg1", children: props.children }),
|
|
22270
|
+
!hideControls && /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("div", { ...(0, import_runtime96.trussProps)({
|
|
22240
22271
|
flexShrink: "fs0",
|
|
22241
22272
|
...isDetail ? {
|
|
22242
22273
|
visibility: "vh"
|
|
22243
22274
|
} : {}
|
|
22244
|
-
}), children: /* @__PURE__ */ (0,
|
|
22275
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(ButtonGroup, { buttons: [{
|
|
22245
22276
|
icon: "chevronLeft",
|
|
22246
22277
|
onClick: () => onPrevClick && onPrevClick(),
|
|
22247
22278
|
disabled: !onPrevClick
|
|
@@ -22257,18 +22288,18 @@ function isStructuredProps(props) {
|
|
|
22257
22288
|
}
|
|
22258
22289
|
|
|
22259
22290
|
// src/components/SuperDrawer/ConfirmCloseModal.tsx
|
|
22260
|
-
var
|
|
22291
|
+
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
22261
22292
|
function ConfirmCloseModal(props) {
|
|
22262
22293
|
const { onClose, discardText = "Discard Changes", continueText = "Continue Editing" } = props;
|
|
22263
22294
|
const { modalState } = useBeamContext();
|
|
22264
22295
|
function closeModal() {
|
|
22265
22296
|
modalState.current = void 0;
|
|
22266
22297
|
}
|
|
22267
|
-
return /* @__PURE__ */ (0,
|
|
22268
|
-
/* @__PURE__ */ (0,
|
|
22269
|
-
/* @__PURE__ */ (0,
|
|
22270
|
-
/* @__PURE__ */ (0,
|
|
22271
|
-
/* @__PURE__ */ (0,
|
|
22298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)(import_jsx_runtime176.Fragment, { children: [
|
|
22299
|
+
/* @__PURE__ */ (0, import_jsx_runtime176.jsx)(ModalHeader, { children: "Are you sure you want to cancel?" }),
|
|
22300
|
+
/* @__PURE__ */ (0, import_jsx_runtime176.jsx)(ModalBody, { children: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("p", { children: "Any changes you've made so far will be lost." }) }),
|
|
22301
|
+
/* @__PURE__ */ (0, import_jsx_runtime176.jsxs)(ModalFooter, { children: [
|
|
22302
|
+
/* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
|
|
22272
22303
|
Button,
|
|
22273
22304
|
{
|
|
22274
22305
|
variant: "quaternary",
|
|
@@ -22279,7 +22310,7 @@ function ConfirmCloseModal(props) {
|
|
|
22279
22310
|
}
|
|
22280
22311
|
}
|
|
22281
22312
|
),
|
|
22282
|
-
/* @__PURE__ */ (0,
|
|
22313
|
+
/* @__PURE__ */ (0, import_jsx_runtime176.jsx)(Button, { label: continueText, onClick: closeModal })
|
|
22283
22314
|
] })
|
|
22284
22315
|
] });
|
|
22285
22316
|
}
|
|
@@ -22289,7 +22320,7 @@ var import_framer_motion5 = require("framer-motion");
|
|
|
22289
22320
|
|
|
22290
22321
|
// src/components/SuperDrawer/useSuperDrawer.tsx
|
|
22291
22322
|
var import_react126 = require("react");
|
|
22292
|
-
var
|
|
22323
|
+
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
22293
22324
|
function useSuperDrawer() {
|
|
22294
22325
|
const {
|
|
22295
22326
|
drawerContentStack: contentStack,
|
|
@@ -22301,7 +22332,7 @@ function useSuperDrawer() {
|
|
|
22301
22332
|
function canCloseDrawerDetails(i, doChange) {
|
|
22302
22333
|
for (const canCloseDrawerDetail of canCloseDetailsChecks.current[i] ?? []) {
|
|
22303
22334
|
if (!canClose(canCloseDrawerDetail)) {
|
|
22304
|
-
openModal({ content: /* @__PURE__ */ (0,
|
|
22335
|
+
openModal({ content: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
|
|
22305
22336
|
return false;
|
|
22306
22337
|
}
|
|
22307
22338
|
}
|
|
@@ -22321,7 +22352,7 @@ function useSuperDrawer() {
|
|
|
22321
22352
|
for (const canCloseDrawer of canCloseChecks.current) {
|
|
22322
22353
|
if (!canClose(canCloseDrawer)) {
|
|
22323
22354
|
openModal({
|
|
22324
|
-
content: /* @__PURE__ */ (0,
|
|
22355
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
|
|
22325
22356
|
});
|
|
22326
22357
|
return;
|
|
22327
22358
|
}
|
|
@@ -22416,8 +22447,8 @@ function canClose(canCloseCheck) {
|
|
|
22416
22447
|
}
|
|
22417
22448
|
|
|
22418
22449
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
22419
|
-
var
|
|
22420
|
-
var
|
|
22450
|
+
var import_runtime97 = require("@homebound/truss/runtime");
|
|
22451
|
+
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
22421
22452
|
var SuperDrawerContent = ({
|
|
22422
22453
|
children,
|
|
22423
22454
|
actions
|
|
@@ -22437,17 +22468,17 @@ var SuperDrawerContent = ({
|
|
|
22437
22468
|
} = firstContent ?? {};
|
|
22438
22469
|
function wrapWithMotionAndMaybeBack(children2) {
|
|
22439
22470
|
if (kind === "open") {
|
|
22440
|
-
return /* @__PURE__ */ (0,
|
|
22471
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_framer_motion5.motion.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
|
|
22441
22472
|
} else if (kind === "detail") {
|
|
22442
|
-
return /* @__PURE__ */ (0,
|
|
22473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(import_framer_motion5.motion.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
|
|
22443
22474
|
overflow: "auto"
|
|
22444
22475
|
}, transition: {
|
|
22445
22476
|
overflow: {
|
|
22446
22477
|
delay: 0.3
|
|
22447
22478
|
}
|
|
22448
22479
|
}, children: [
|
|
22449
|
-
/* @__PURE__ */ (0,
|
|
22450
|
-
/* @__PURE__ */ (0,
|
|
22480
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
|
|
22481
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_framer_motion5.motion.div, { initial: {
|
|
22451
22482
|
x: width2,
|
|
22452
22483
|
opacity: 0
|
|
22453
22484
|
}, animate: {
|
|
@@ -22465,7 +22496,7 @@ var SuperDrawerContent = ({
|
|
|
22465
22496
|
}, className: "pt2", children: children2 })
|
|
22466
22497
|
] }, "content");
|
|
22467
22498
|
} else {
|
|
22468
|
-
return /* @__PURE__ */ (0,
|
|
22499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_framer_motion5.motion.div, { ...(0, import_runtime97.mergeProps)(void 0, {
|
|
22469
22500
|
overflow: "auto"
|
|
22470
22501
|
}, {
|
|
22471
22502
|
paddingTop: "pt3",
|
|
@@ -22476,9 +22507,9 @@ var SuperDrawerContent = ({
|
|
|
22476
22507
|
}) }, "content");
|
|
22477
22508
|
}
|
|
22478
22509
|
}
|
|
22479
|
-
return /* @__PURE__ */ (0,
|
|
22510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(import_jsx_runtime178.Fragment, { children: [
|
|
22480
22511
|
wrapWithMotionAndMaybeBack(children),
|
|
22481
|
-
actions && /* @__PURE__ */ (0,
|
|
22512
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("footer", { className: "bts_solid btw_1px bcGray200 pt3 pb3 pr3 pl3 df aic jcfe", children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(Button, { ...buttonProps }, i)) }) })
|
|
22482
22513
|
] });
|
|
22483
22514
|
};
|
|
22484
22515
|
|
|
@@ -22506,15 +22537,15 @@ var import_react127 = require("react");
|
|
|
22506
22537
|
var import_react_aria54 = require("react-aria");
|
|
22507
22538
|
var import_react_router = require("react-router");
|
|
22508
22539
|
var import_react_router_dom5 = require("react-router-dom");
|
|
22509
|
-
var
|
|
22510
|
-
var
|
|
22540
|
+
var import_runtime98 = require("@homebound/truss/runtime");
|
|
22541
|
+
var import_jsx_runtime179 = require("react/jsx-runtime");
|
|
22511
22542
|
function TabsWithContent(props) {
|
|
22512
22543
|
const styles = hideTabs(props) ? {} : {
|
|
22513
22544
|
paddingTop: "pt3"
|
|
22514
22545
|
};
|
|
22515
|
-
return /* @__PURE__ */ (0,
|
|
22516
|
-
/* @__PURE__ */ (0,
|
|
22517
|
-
/* @__PURE__ */ (0,
|
|
22546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)(import_jsx_runtime179.Fragment, { children: [
|
|
22547
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(Tabs, { ...props }),
|
|
22548
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(TabContent, { ...props, contentXss: {
|
|
22518
22549
|
...styles,
|
|
22519
22550
|
...props.contentXss
|
|
22520
22551
|
} })
|
|
@@ -22539,7 +22570,7 @@ function TabContent(props) {
|
|
|
22539
22570
|
return (
|
|
22540
22571
|
// Using FullBleed to allow the tab's bgColor to extend to the edges of the <ScrollableContent /> element.
|
|
22541
22572
|
// Omit the padding from `FullBleed` if the caller passes in the `paddingLeft/Right` styles.
|
|
22542
|
-
/* @__PURE__ */ (0,
|
|
22573
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(FullBleed, { omitPadding: omitFullBleedPadding, children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { "aria-labelledby": `${uniqueValue}-tab`, id: `${uniqueValue}-tabPanel`, role: "tabpanel", tabIndex: 0, ...tid.panel, ...(0, import_runtime98.trussProps)(contentXss), children: selectedTab.render() }) })
|
|
22543
22574
|
);
|
|
22544
22575
|
}
|
|
22545
22576
|
function Tabs(props) {
|
|
@@ -22581,7 +22612,7 @@ function Tabs(props) {
|
|
|
22581
22612
|
setActive(selected);
|
|
22582
22613
|
}
|
|
22583
22614
|
}
|
|
22584
|
-
return /* @__PURE__ */ (0,
|
|
22615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("div", { ...(0, import_runtime98.trussProps)({
|
|
22585
22616
|
...{
|
|
22586
22617
|
display: "df",
|
|
22587
22618
|
alignItems: "aic",
|
|
@@ -22597,11 +22628,11 @@ function Tabs(props) {
|
|
|
22597
22628
|
}
|
|
22598
22629
|
} : {}
|
|
22599
22630
|
}), children: [
|
|
22600
|
-
!hideTabs(props) && /* @__PURE__ */ (0,
|
|
22631
|
+
!hideTabs(props) && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ref, className: "dif gap1 asfe", "aria-label": ariaLabel, role: "tablist", ...tid, children: tabs.map((tab) => {
|
|
22601
22632
|
const uniqueValue = uniqueTabValue(tab);
|
|
22602
|
-
return /* @__PURE__ */ (0,
|
|
22633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(TabImpl, { active: active === uniqueValue, focusProps, isFocusVisible, onClick, onKeyUp, onBlur, tab, ...tid[defaultTestId(uniqueValue)] }, uniqueValue);
|
|
22603
22634
|
}) }),
|
|
22604
|
-
right && /* @__PURE__ */ (0,
|
|
22635
|
+
right && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { className: "mla df aic gap1 pb1", children: right })
|
|
22605
22636
|
] });
|
|
22606
22637
|
}
|
|
22607
22638
|
function TabImpl(props) {
|
|
@@ -22645,7 +22676,7 @@ function TabImpl(props) {
|
|
|
22645
22676
|
role: "tab",
|
|
22646
22677
|
tabIndex: active ? 0 : -1,
|
|
22647
22678
|
...others,
|
|
22648
|
-
...(0,
|
|
22679
|
+
...(0, import_runtime98.trussProps)({
|
|
22649
22680
|
...baseStyles5,
|
|
22650
22681
|
...active && activeStyles3,
|
|
22651
22682
|
...isDisabled && disabledStyles4,
|
|
@@ -22661,17 +22692,17 @@ function TabImpl(props) {
|
|
|
22661
22692
|
onClick: () => onClick(tab.value)
|
|
22662
22693
|
}
|
|
22663
22694
|
});
|
|
22664
|
-
const tabLabel = /* @__PURE__ */ (0,
|
|
22695
|
+
const tabLabel = /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)(import_jsx_runtime179.Fragment, { children: [
|
|
22665
22696
|
label,
|
|
22666
|
-
(icon || endAdornment) && /* @__PURE__ */ (0,
|
|
22697
|
+
(icon || endAdornment) && /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("span", { className: "ml1", children: icon ? /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(Icon, { icon }) : endAdornment })
|
|
22667
22698
|
] });
|
|
22668
22699
|
return isDisabled ? maybeTooltip({
|
|
22669
22700
|
title: resolveTooltip(disabled),
|
|
22670
22701
|
placement: "top",
|
|
22671
|
-
children: /* @__PURE__ */ (0,
|
|
22672
|
-
}) : isRouteTab(tab) ? /* @__PURE__ */ (0,
|
|
22702
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { ...tabProps, children: tabLabel })
|
|
22703
|
+
}) : isRouteTab(tab) ? /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(import_react_router_dom5.Link, { ...(0, import_react_aria54.mergeProps)(tabProps, interactiveProps, {
|
|
22673
22704
|
className: "navLink"
|
|
22674
|
-
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */ (0,
|
|
22705
|
+
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("button", { ...{
|
|
22675
22706
|
...tabProps,
|
|
22676
22707
|
...interactiveProps
|
|
22677
22708
|
}, children: tabLabel });
|
|
@@ -22682,7 +22713,7 @@ function getTabStyles() {
|
|
|
22682
22713
|
const borderBottomStyles = {
|
|
22683
22714
|
borderBottomStyle: "bbs_solid",
|
|
22684
22715
|
borderBottomWidth: ["borderBottomWidth_var", {
|
|
22685
|
-
"--borderBottomWidth": (0,
|
|
22716
|
+
"--borderBottomWidth": (0, import_runtime98.maybeCssVar)(`${borderBottomWidthPx}px`)
|
|
22686
22717
|
}],
|
|
22687
22718
|
paddingBottom: ["pb_var", {
|
|
22688
22719
|
"--paddingBottom": `${verticalPaddingPx - borderBottomWidthPx}px`
|
|
@@ -22774,12 +22805,12 @@ function useToast() {
|
|
|
22774
22805
|
}
|
|
22775
22806
|
|
|
22776
22807
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
22777
|
-
var
|
|
22778
|
-
var
|
|
22808
|
+
var import_runtime99 = require("@homebound/truss/runtime");
|
|
22809
|
+
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
22779
22810
|
function SideNavLayout(props) {
|
|
22780
22811
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
22781
|
-
if (hasProvider) return /* @__PURE__ */ (0,
|
|
22782
|
-
return /* @__PURE__ */ (0,
|
|
22812
|
+
if (hasProvider) return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(SideNavLayoutContent, { ...props });
|
|
22813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(SideNavLayoutProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(SideNavLayoutContent, { ...props }) });
|
|
22783
22814
|
}
|
|
22784
22815
|
function SideNavLayoutContent(props) {
|
|
22785
22816
|
const {
|
|
@@ -22799,7 +22830,7 @@ function SideNavLayoutContent(props) {
|
|
|
22799
22830
|
const railCollapsedWidthPx = 56;
|
|
22800
22831
|
const collapsed = navState === "collapse";
|
|
22801
22832
|
const showRail = sideNav !== void 0 && navState !== "hidden";
|
|
22802
|
-
const rail = showRail && /* @__PURE__ */ (0,
|
|
22833
|
+
const rail = showRail && /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("div", { ...(0, import_runtime99.trussProps)({
|
|
22803
22834
|
...{
|
|
22804
22835
|
position: "absolute",
|
|
22805
22836
|
top: "top0",
|
|
@@ -22823,7 +22854,7 @@ function SideNavLayoutContent(props) {
|
|
|
22823
22854
|
overflow: "oh",
|
|
22824
22855
|
transition: "transitionWidth",
|
|
22825
22856
|
zIndex: ["zIndex_var", {
|
|
22826
|
-
"--zIndex": (0,
|
|
22857
|
+
"--zIndex": (0, import_runtime99.maybeCssVar)(zIndices.sideNav)
|
|
22827
22858
|
}]
|
|
22828
22859
|
},
|
|
22829
22860
|
...collapsed ? {
|
|
@@ -22845,12 +22876,12 @@ function SideNavLayoutContent(props) {
|
|
|
22845
22876
|
}
|
|
22846
22877
|
} : {}
|
|
22847
22878
|
}), ...tid.sideNav, children: [
|
|
22848
|
-
showCollapseToggle && /* @__PURE__ */ (0,
|
|
22849
|
-
/* @__PURE__ */ (0,
|
|
22879
|
+
showCollapseToggle && /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { className: "absolute right2 top2", children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
|
|
22880
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { className: "fg1 oya", ...tid.sideNavContent, children: sideNav })
|
|
22850
22881
|
] });
|
|
22851
|
-
return /* @__PURE__ */ (0,
|
|
22852
|
-
contrastRail ? /* @__PURE__ */ (0,
|
|
22853
|
-
/* @__PURE__ */ (0,
|
|
22882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("div", { className: "relative df oh fg1", ...tid, children: [
|
|
22883
|
+
contrastRail ? /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(ContrastScope, { children: rail }) : rail,
|
|
22884
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)(ScrollableParent, { px: contentPx, xss: {
|
|
22854
22885
|
marginLeft: ["ml_var", {
|
|
22855
22886
|
"--marginLeft": `${railCollapsedWidthPx}px`
|
|
22856
22887
|
}],
|
|
@@ -22961,6 +22992,7 @@ function SideNavLayoutContent(props) {
|
|
|
22961
22992
|
NavLink,
|
|
22962
22993
|
NumberField,
|
|
22963
22994
|
OpenModal,
|
|
22995
|
+
PageHeader,
|
|
22964
22996
|
Pagination,
|
|
22965
22997
|
Palette,
|
|
22966
22998
|
PresentationProvider,
|