@homebound/beam 3.50.0 → 3.52.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 +326 -138
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +305 -120
- package/dist/index.js.map +1 -1
- package/dist/truss.css +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8600,23 +8600,26 @@ var cardStyle = {
|
|
|
8600
8600
|
rowIndent: level > 0 ? 24 * level : void 0
|
|
8601
8601
|
})
|
|
8602
8602
|
};
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8603
|
+
var gridStyleDefKeysRecord = {
|
|
8604
|
+
inlineEditing: true,
|
|
8605
|
+
grouped: true,
|
|
8606
|
+
rowHeight: true,
|
|
8607
|
+
cellHighlight: true,
|
|
8608
|
+
allWhite: true,
|
|
8609
|
+
bordered: true,
|
|
8610
|
+
rowHover: true,
|
|
8611
|
+
vAlign: true,
|
|
8612
|
+
cellTypography: true,
|
|
8613
|
+
highlightOnHover: true,
|
|
8614
|
+
roundedHeader: true
|
|
8615
|
+
};
|
|
8616
|
+
function isGridStyleDef(style) {
|
|
8617
8617
|
const keys = safeKeys(style);
|
|
8618
|
-
const defKeys = safeKeys(
|
|
8619
|
-
|
|
8618
|
+
const defKeys = safeKeys(gridStyleDefKeysRecord);
|
|
8619
|
+
return keys.length === 0 || keys.some((k) => defKeys.includes(k));
|
|
8620
|
+
}
|
|
8621
|
+
function resolveStyles(style) {
|
|
8622
|
+
if (isGridStyleDef(style)) {
|
|
8620
8623
|
return getTableStyles(style);
|
|
8621
8624
|
}
|
|
8622
8625
|
return style;
|
|
@@ -16575,7 +16578,7 @@ function GridTableEmptyState(props) {
|
|
|
16575
16578
|
actions
|
|
16576
16579
|
} = props;
|
|
16577
16580
|
const tid = useTestIds(props, "gridTableEmptyState");
|
|
16578
|
-
return /* @__PURE__ */ jsxs51("div", { className: "df fdc aic
|
|
16581
|
+
return /* @__PURE__ */ jsxs51("div", { className: "df fdc aic pt_12 pb_12 gap2", ...tid, children: [
|
|
16579
16582
|
/* @__PURE__ */ jsx94("div", { className: "fw6 fz_20px lh_28px", ...tid.title, children: title }),
|
|
16580
16583
|
description && /* @__PURE__ */ jsx94("div", { className: "fw4 fz_14px lh_20px gray700", ...tid.description, children: description }),
|
|
16581
16584
|
actions && /* @__PURE__ */ jsx94("div", { ...tid.actions, children: actions })
|
|
@@ -21120,17 +21123,12 @@ function GridTableLayoutComponent(props) {
|
|
|
21120
21123
|
const emptyState = useMemo41(() => composeEmptyState(tableProps, layoutState, layoutEmptyFallback, clearFilters), [layoutEmptyFallback, layoutState, tableProps, clearFilters]);
|
|
21121
21124
|
const tableActionsEl = /* @__PURE__ */ jsx159(_GridTableLayoutActions, { filterDefs: layoutState?.filterDefs, filter: layoutState?.filter, setFilter: layoutState?.setFilter, groupBy: layoutState?.groupBy, searchProps: filterSearchProps, hasHideableColumns, columns, api, withCardView, view, setView, clearFilters, searchApi: searchApiRef });
|
|
21122
21125
|
const cardAs = withCardView && view === "card" ? "card" : void 0;
|
|
21126
|
+
const tableStyle = resolveGridTableLayoutStyle(tableProps.style, inDocumentScrollLayout);
|
|
21123
21127
|
const tableBody = /* @__PURE__ */ jsx159(Fragment36, { children: isGridTableProps(tableProps) ? /* @__PURE__ */ jsx159(GridTable, { ...tableProps, ...cardAs ? {
|
|
21124
21128
|
as: cardAs
|
|
21125
|
-
} : {}, api, emptyState, filter: clientSearch, style: {
|
|
21126
|
-
allWhite: true,
|
|
21127
|
-
roundedHeader: !inDocumentScrollLayout
|
|
21128
|
-
}, stickyHeader: true, disableColumnResizing: false, visibleColumnsStorageKey, columnGutter: inDocumentScrollLayout }) : /* @__PURE__ */ jsx159(QueryTable, { ...tableProps, ...cardAs ? {
|
|
21129
|
+
} : {}, api, emptyState, filter: clientSearch, style: tableStyle, stickyHeader: true, disableColumnResizing: false, visibleColumnsStorageKey, columnGutter: inDocumentScrollLayout }) : /* @__PURE__ */ jsx159(QueryTable, { ...tableProps, ...cardAs ? {
|
|
21129
21130
|
as: cardAs
|
|
21130
|
-
} : {}, api, emptyState, filter: clientSearch, style:
|
|
21131
|
-
allWhite: true,
|
|
21132
|
-
roundedHeader: !inDocumentScrollLayout
|
|
21133
|
-
}, stickyHeader: true, disableColumnResizing: false, visibleColumnsStorageKey, columnGutter: inDocumentScrollLayout }) });
|
|
21131
|
+
} : {}, api, emptyState, filter: clientSearch, style: tableStyle, stickyHeader: true, disableColumnResizing: false, visibleColumnsStorageKey, columnGutter: inDocumentScrollLayout }) });
|
|
21134
21132
|
const tableScrollContent = /* @__PURE__ */ jsxs77(Fragment36, { children: [
|
|
21135
21133
|
showTableActions && /* @__PURE__ */ jsx159("div", { ref: tableActionsRef, ...trussProps80({
|
|
21136
21134
|
...inDocumentScrollLayout ? {
|
|
@@ -21283,6 +21281,22 @@ function Header2(props) {
|
|
|
21283
21281
|
] })
|
|
21284
21282
|
] }) });
|
|
21285
21283
|
}
|
|
21284
|
+
function resolveGridTableLayoutStyle(userStyle, inDocumentScrollLayout) {
|
|
21285
|
+
const layoutDefaults = {
|
|
21286
|
+
allWhite: true,
|
|
21287
|
+
roundedHeader: !inDocumentScrollLayout
|
|
21288
|
+
};
|
|
21289
|
+
if (userStyle === void 0) {
|
|
21290
|
+
return layoutDefaults;
|
|
21291
|
+
}
|
|
21292
|
+
if (isGridStyleDef(userStyle)) {
|
|
21293
|
+
return {
|
|
21294
|
+
...layoutDefaults,
|
|
21295
|
+
...userStyle
|
|
21296
|
+
};
|
|
21297
|
+
}
|
|
21298
|
+
return userStyle;
|
|
21299
|
+
}
|
|
21286
21300
|
|
|
21287
21301
|
// src/components/Layout/PreventBrowserScroll.tsx
|
|
21288
21302
|
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
@@ -24537,10 +24551,178 @@ function StepIcon({
|
|
|
24537
24551
|
}) }) });
|
|
24538
24552
|
}
|
|
24539
24553
|
|
|
24554
|
+
// src/components/StepperTabs/StepperTab.tsx
|
|
24555
|
+
import { useRef as useRef63 } from "react";
|
|
24556
|
+
import { mergeProps as mergeProps31, useButton as useButton13, useFocusRing as useFocusRing19, useHover as useHover23, VisuallyHidden as VisuallyHidden10 } from "react-aria";
|
|
24557
|
+
import { trussProps as trussProps105, maybeCssVar as maybeCssVar56 } from "@homebound/truss/runtime";
|
|
24558
|
+
import { jsx as jsx197, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
24559
|
+
function StepperTab(props) {
|
|
24560
|
+
const {
|
|
24561
|
+
label,
|
|
24562
|
+
value,
|
|
24563
|
+
active,
|
|
24564
|
+
completed,
|
|
24565
|
+
onClick,
|
|
24566
|
+
disabled = false,
|
|
24567
|
+
collapsed = false
|
|
24568
|
+
} = props;
|
|
24569
|
+
const ariaProps = {
|
|
24570
|
+
onPress: () => onClick(value),
|
|
24571
|
+
isDisabled: disabled || collapsed
|
|
24572
|
+
};
|
|
24573
|
+
const ref = useRef63(null);
|
|
24574
|
+
const {
|
|
24575
|
+
buttonProps
|
|
24576
|
+
} = useButton13(ariaProps, ref);
|
|
24577
|
+
const {
|
|
24578
|
+
isFocusVisible,
|
|
24579
|
+
focusProps
|
|
24580
|
+
} = useFocusRing19();
|
|
24581
|
+
const {
|
|
24582
|
+
hoverProps,
|
|
24583
|
+
isHovered
|
|
24584
|
+
} = useHover23(ariaProps);
|
|
24585
|
+
const tid = useTestIds(props, "stepperTab");
|
|
24586
|
+
return /* @__PURE__ */ jsxs100("button", { ref, ...mergeProps31(buttonProps, focusProps, hoverProps), "aria-label": label, ...trussProps105({
|
|
24587
|
+
...stepperTabStyles.baseStyles,
|
|
24588
|
+
...getStateStyles(active, completed),
|
|
24589
|
+
...isHovered && !disabled ? stepperTabStyles.hoverStyles : {},
|
|
24590
|
+
...collapsed ? getCollapsedStyles(active, completed) : {},
|
|
24591
|
+
...disabled ? stepperTabStyles.disabledStyles : {},
|
|
24592
|
+
...isFocusVisible ? stepperTabStyles.focusRingStyles : {}
|
|
24593
|
+
}), ...tid[defaultTestId(value)], children: [
|
|
24594
|
+
/* @__PURE__ */ jsx197("span", { className: "oh d_negwebkit_box wbo_vertical to_ellipsis wlc_1", children: label }),
|
|
24595
|
+
completed && /* @__PURE__ */ jsx197("span", { className: "fs0 ml1", children: /* @__PURE__ */ jsx197(Icon, { icon: "check", inc: 2.5, ...tid.check }) }),
|
|
24596
|
+
/* @__PURE__ */ jsx197(VisuallyHidden10, { children: completed ? "Complete" : "Not Complete" })
|
|
24597
|
+
] });
|
|
24598
|
+
}
|
|
24599
|
+
function withBorderBottom(color) {
|
|
24600
|
+
return {
|
|
24601
|
+
...{
|
|
24602
|
+
borderBottomStyle: "bbs_solid",
|
|
24603
|
+
borderBottomWidth: ["borderBottomWidth_var", {
|
|
24604
|
+
"--borderBottomWidth": maybeCssVar56(`3px`)
|
|
24605
|
+
}]
|
|
24606
|
+
},
|
|
24607
|
+
...color
|
|
24608
|
+
};
|
|
24609
|
+
}
|
|
24610
|
+
function getStateStyles(active, completed) {
|
|
24611
|
+
return {
|
|
24612
|
+
...{
|
|
24613
|
+
color: "gray400",
|
|
24614
|
+
...active || completed ? {
|
|
24615
|
+
color: "blue700"
|
|
24616
|
+
} : {},
|
|
24617
|
+
...active ? {
|
|
24618
|
+
fontWeight: "fw6",
|
|
24619
|
+
fontSize: "fz_14px",
|
|
24620
|
+
lineHeight: "lh_20px"
|
|
24621
|
+
} : {}
|
|
24622
|
+
},
|
|
24623
|
+
...withBorderBottom(active || completed ? {
|
|
24624
|
+
borderColor: "bcBlue600"
|
|
24625
|
+
} : {
|
|
24626
|
+
borderColor: "bcGray300"
|
|
24627
|
+
})
|
|
24628
|
+
};
|
|
24629
|
+
}
|
|
24630
|
+
function getCollapsedStyles(active, completed) {
|
|
24631
|
+
return {
|
|
24632
|
+
...{
|
|
24633
|
+
cursor: "cursor_default",
|
|
24634
|
+
height: "h_0px",
|
|
24635
|
+
paddingTop: "pt0",
|
|
24636
|
+
paddingBottom: "pb0"
|
|
24637
|
+
},
|
|
24638
|
+
...completed && !active ? {
|
|
24639
|
+
borderColor: "bcBlue600"
|
|
24640
|
+
} : {
|
|
24641
|
+
borderColor: "bcGray300"
|
|
24642
|
+
}
|
|
24643
|
+
};
|
|
24644
|
+
}
|
|
24645
|
+
var stepperTabStyles = {
|
|
24646
|
+
baseStyles: {
|
|
24647
|
+
display: "df",
|
|
24648
|
+
alignItems: "aic",
|
|
24649
|
+
flexGrow: "fg1",
|
|
24650
|
+
paddingTop: "pt1",
|
|
24651
|
+
paddingBottom: "pb1",
|
|
24652
|
+
paddingRight: "pr_12px",
|
|
24653
|
+
paddingLeft: "pl_24px",
|
|
24654
|
+
fontWeight: "fw4",
|
|
24655
|
+
fontSize: "fz_14px",
|
|
24656
|
+
lineHeight: "lh_20px",
|
|
24657
|
+
overflow: "oh",
|
|
24658
|
+
textAlign: "tal"
|
|
24659
|
+
},
|
|
24660
|
+
hoverStyles: {
|
|
24661
|
+
backgroundColor: "bgGray100"
|
|
24662
|
+
},
|
|
24663
|
+
focusRingStyles: {
|
|
24664
|
+
boxShadow: "bshFocus",
|
|
24665
|
+
outline: "outline0"
|
|
24666
|
+
},
|
|
24667
|
+
// Disabled always wins over both the state's and the collapsed border color.
|
|
24668
|
+
disabledStyles: {
|
|
24669
|
+
color: "gray400",
|
|
24670
|
+
cursor: "cursorNotAllowed",
|
|
24671
|
+
borderColor: "bcGray300"
|
|
24672
|
+
}
|
|
24673
|
+
};
|
|
24674
|
+
|
|
24675
|
+
// src/components/StepperTabs/StepperTabs.tsx
|
|
24676
|
+
import { trussProps as trussProps106 } from "@homebound/truss/runtime";
|
|
24677
|
+
import { jsx as jsx198 } from "react/jsx-runtime";
|
|
24678
|
+
import { createElement as createElement6 } from "react";
|
|
24679
|
+
function StepperTabs(props) {
|
|
24680
|
+
const {
|
|
24681
|
+
steps,
|
|
24682
|
+
currentStep,
|
|
24683
|
+
onChange
|
|
24684
|
+
} = props;
|
|
24685
|
+
const tid = useTestIds(props, "stepperTabs");
|
|
24686
|
+
const {
|
|
24687
|
+
sm: collapsed
|
|
24688
|
+
} = useBreakpoint();
|
|
24689
|
+
const capWidth = steps.length <= 3;
|
|
24690
|
+
return /* @__PURE__ */ jsx198("nav", { "aria-label": "steps", className: "w100", ...tid, children: /* @__PURE__ */ jsx198("ol", { ...trussProps106({
|
|
24691
|
+
padding: "p_0",
|
|
24692
|
+
margin: "m_0",
|
|
24693
|
+
listStyle: "lis_none",
|
|
24694
|
+
display: "df",
|
|
24695
|
+
gap: ["gap_var", {
|
|
24696
|
+
"--gap": `${gapPx}px`
|
|
24697
|
+
}],
|
|
24698
|
+
width: "w100",
|
|
24699
|
+
borderBottomStyle: "bbs_solid",
|
|
24700
|
+
borderBottomWidth: "bbw_1px",
|
|
24701
|
+
borderColor: "bcGray400"
|
|
24702
|
+
}), children: steps.map((step) => {
|
|
24703
|
+
const isCurrent = step.value === currentStep;
|
|
24704
|
+
return /* @__PURE__ */ createElement6("li", { ...trussProps106({
|
|
24705
|
+
display: "df",
|
|
24706
|
+
flexGrow: "fg1",
|
|
24707
|
+
flexBasis: "fb_0",
|
|
24708
|
+
...collapsed ? {
|
|
24709
|
+
minWidth: "mw0"
|
|
24710
|
+
} : {},
|
|
24711
|
+
...capWidth ? {
|
|
24712
|
+
maxWidth: ["maxw_var", {
|
|
24713
|
+
"--maxWidth": `${maxStepWidthPx}px`
|
|
24714
|
+
}]
|
|
24715
|
+
} : {}
|
|
24716
|
+
}), key: step.value, "aria-current": isCurrent, ...tid.step }, /* @__PURE__ */ jsx198(StepperTab, { label: step.label, value: step.value, active: isCurrent, completed: step.completed, disabled: step.disabled, collapsed, onClick: onChange, ...tid.tab }));
|
|
24717
|
+
}) }) });
|
|
24718
|
+
}
|
|
24719
|
+
var maxStepWidthPx = 280;
|
|
24720
|
+
var gapPx = 6;
|
|
24721
|
+
|
|
24540
24722
|
// src/components/SuperDrawer/components/SuperDrawerHeader.tsx
|
|
24541
24723
|
import { createPortal as createPortal7 } from "react-dom";
|
|
24542
|
-
import { trussProps as
|
|
24543
|
-
import { jsx as
|
|
24724
|
+
import { trussProps as trussProps107 } from "@homebound/truss/runtime";
|
|
24725
|
+
import { jsx as jsx199, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
24544
24726
|
function SuperDrawerHeader(props) {
|
|
24545
24727
|
const {
|
|
24546
24728
|
hideControls
|
|
@@ -24557,20 +24739,20 @@ function SuperDrawerHeader(props) {
|
|
|
24557
24739
|
const currentContent = contentStack.current[contentStack.current.length - 1]?.opts;
|
|
24558
24740
|
const isDetail = currentContent !== firstContent;
|
|
24559
24741
|
const tid = useTestIds({}, "superDrawerHeader");
|
|
24560
|
-
return createPortal7(/* @__PURE__ */
|
|
24561
|
-
isStructuredProps(props) ? /* @__PURE__ */
|
|
24562
|
-
/* @__PURE__ */
|
|
24563
|
-
/* @__PURE__ */
|
|
24742
|
+
return createPortal7(/* @__PURE__ */ jsxs101("div", { className: "df aic jcsb gap3", ...tid, children: [
|
|
24743
|
+
isStructuredProps(props) ? /* @__PURE__ */ jsxs101("div", { className: "df jcsb aic gap2 fg1", children: [
|
|
24744
|
+
/* @__PURE__ */ jsxs101("div", { className: "fg1 df aic gap2", children: [
|
|
24745
|
+
/* @__PURE__ */ jsx199("h1", { className: "fw6 fz_30px lh_36px", children: props.title }),
|
|
24564
24746
|
props.left
|
|
24565
24747
|
] }),
|
|
24566
|
-
props.right && /* @__PURE__ */
|
|
24567
|
-
] }) : /* @__PURE__ */
|
|
24568
|
-
!hideControls && /* @__PURE__ */
|
|
24748
|
+
props.right && /* @__PURE__ */ jsx199("div", { className: "fs0", children: props.right })
|
|
24749
|
+
] }) : /* @__PURE__ */ jsx199("div", { className: "fg1", children: props.children }),
|
|
24750
|
+
!hideControls && /* @__PURE__ */ jsx199("div", { ...trussProps107({
|
|
24569
24751
|
flexShrink: "fs0",
|
|
24570
24752
|
...isDetail ? {
|
|
24571
24753
|
visibility: "vh"
|
|
24572
24754
|
} : {}
|
|
24573
|
-
}), children: /* @__PURE__ */
|
|
24755
|
+
}), children: /* @__PURE__ */ jsx199(ButtonGroup, { buttons: [{
|
|
24574
24756
|
icon: "chevronLeft",
|
|
24575
24757
|
onClick: () => onPrevClick && onPrevClick(),
|
|
24576
24758
|
disabled: !onPrevClick
|
|
@@ -24586,18 +24768,18 @@ function isStructuredProps(props) {
|
|
|
24586
24768
|
}
|
|
24587
24769
|
|
|
24588
24770
|
// src/components/SuperDrawer/ConfirmCloseModal.tsx
|
|
24589
|
-
import { Fragment as Fragment45, jsx as
|
|
24771
|
+
import { Fragment as Fragment45, jsx as jsx200, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
24590
24772
|
function ConfirmCloseModal(props) {
|
|
24591
24773
|
const { onClose, discardText = "Discard Changes", continueText = "Continue Editing" } = props;
|
|
24592
24774
|
const { modalState } = useBeamContext();
|
|
24593
24775
|
function closeModal() {
|
|
24594
24776
|
modalState.current = void 0;
|
|
24595
24777
|
}
|
|
24596
|
-
return /* @__PURE__ */
|
|
24597
|
-
/* @__PURE__ */
|
|
24598
|
-
/* @__PURE__ */
|
|
24599
|
-
/* @__PURE__ */
|
|
24600
|
-
/* @__PURE__ */
|
|
24778
|
+
return /* @__PURE__ */ jsxs102(Fragment45, { children: [
|
|
24779
|
+
/* @__PURE__ */ jsx200(ModalHeader, { children: "Are you sure you want to cancel?" }),
|
|
24780
|
+
/* @__PURE__ */ jsx200(ModalBody, { children: /* @__PURE__ */ jsx200("p", { children: "Any changes you've made so far will be lost." }) }),
|
|
24781
|
+
/* @__PURE__ */ jsxs102(ModalFooter, { children: [
|
|
24782
|
+
/* @__PURE__ */ jsx200(
|
|
24601
24783
|
Button,
|
|
24602
24784
|
{
|
|
24603
24785
|
variant: "quaternary",
|
|
@@ -24608,7 +24790,7 @@ function ConfirmCloseModal(props) {
|
|
|
24608
24790
|
}
|
|
24609
24791
|
}
|
|
24610
24792
|
),
|
|
24611
|
-
/* @__PURE__ */
|
|
24793
|
+
/* @__PURE__ */ jsx200(Button, { label: continueText, onClick: closeModal })
|
|
24612
24794
|
] })
|
|
24613
24795
|
] });
|
|
24614
24796
|
}
|
|
@@ -24618,7 +24800,7 @@ import { motion as motion6 } from "framer-motion";
|
|
|
24618
24800
|
|
|
24619
24801
|
// src/components/SuperDrawer/useSuperDrawer.tsx
|
|
24620
24802
|
import { useMemo as useMemo55 } from "react";
|
|
24621
|
-
import { jsx as
|
|
24803
|
+
import { jsx as jsx201 } from "react/jsx-runtime";
|
|
24622
24804
|
function useSuperDrawer() {
|
|
24623
24805
|
const {
|
|
24624
24806
|
drawerContentStack: contentStack,
|
|
@@ -24630,7 +24812,7 @@ function useSuperDrawer() {
|
|
|
24630
24812
|
function canCloseDrawerDetails(i, doChange) {
|
|
24631
24813
|
for (const canCloseDrawerDetail of canCloseDetailsChecks.current[i] ?? []) {
|
|
24632
24814
|
if (!canClose(canCloseDrawerDetail)) {
|
|
24633
|
-
openModal({ content: /* @__PURE__ */
|
|
24815
|
+
openModal({ content: /* @__PURE__ */ jsx201(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawerDetail }) });
|
|
24634
24816
|
return false;
|
|
24635
24817
|
}
|
|
24636
24818
|
}
|
|
@@ -24650,7 +24832,7 @@ function useSuperDrawer() {
|
|
|
24650
24832
|
for (const canCloseDrawer of canCloseChecks.current) {
|
|
24651
24833
|
if (!canClose(canCloseDrawer)) {
|
|
24652
24834
|
openModal({
|
|
24653
|
-
content: /* @__PURE__ */
|
|
24835
|
+
content: /* @__PURE__ */ jsx201(ConfirmCloseModal, { onClose: doChange, ...canCloseDrawer })
|
|
24654
24836
|
});
|
|
24655
24837
|
return;
|
|
24656
24838
|
}
|
|
@@ -24745,8 +24927,8 @@ function canClose(canCloseCheck) {
|
|
|
24745
24927
|
}
|
|
24746
24928
|
|
|
24747
24929
|
// src/components/SuperDrawer/SuperDrawerContent.tsx
|
|
24748
|
-
import { mergeProps as
|
|
24749
|
-
import { Fragment as Fragment46, jsx as
|
|
24930
|
+
import { mergeProps as mergeProps32 } from "@homebound/truss/runtime";
|
|
24931
|
+
import { Fragment as Fragment46, jsx as jsx202, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
24750
24932
|
var SuperDrawerContent = ({
|
|
24751
24933
|
children,
|
|
24752
24934
|
actions
|
|
@@ -24766,17 +24948,17 @@ var SuperDrawerContent = ({
|
|
|
24766
24948
|
} = firstContent ?? {};
|
|
24767
24949
|
function wrapWithMotionAndMaybeBack(children2) {
|
|
24768
24950
|
if (kind === "open") {
|
|
24769
|
-
return /* @__PURE__ */
|
|
24951
|
+
return /* @__PURE__ */ jsx202(motion6.div, { className: "pt3 pb3 pr3 pl3 fg1 oa", children: children2 }, "content");
|
|
24770
24952
|
} else if (kind === "detail") {
|
|
24771
|
-
return /* @__PURE__ */
|
|
24953
|
+
return /* @__PURE__ */ jsxs103(motion6.div, { className: "pl3 pr3 pt2 pb3 fg1", animate: {
|
|
24772
24954
|
overflow: "auto"
|
|
24773
24955
|
}, transition: {
|
|
24774
24956
|
overflow: {
|
|
24775
24957
|
delay: 0.3
|
|
24776
24958
|
}
|
|
24777
24959
|
}, children: [
|
|
24778
|
-
/* @__PURE__ */
|
|
24779
|
-
/* @__PURE__ */
|
|
24960
|
+
/* @__PURE__ */ jsx202(Button, { label: "Back", icon: "chevronLeft", variant: "tertiary", onClick: closeDrawerDetail }),
|
|
24961
|
+
/* @__PURE__ */ jsx202(motion6.div, { initial: {
|
|
24780
24962
|
x: width2,
|
|
24781
24963
|
opacity: 0
|
|
24782
24964
|
}, animate: {
|
|
@@ -24794,7 +24976,7 @@ var SuperDrawerContent = ({
|
|
|
24794
24976
|
}, className: "pt2", children: children2 })
|
|
24795
24977
|
] }, "content");
|
|
24796
24978
|
} else {
|
|
24797
|
-
return /* @__PURE__ */
|
|
24979
|
+
return /* @__PURE__ */ jsx202(motion6.div, { ...mergeProps32(void 0, {
|
|
24798
24980
|
overflow: "auto"
|
|
24799
24981
|
}, {
|
|
24800
24982
|
paddingTop: "pt3",
|
|
@@ -24805,9 +24987,9 @@ var SuperDrawerContent = ({
|
|
|
24805
24987
|
}) }, "content");
|
|
24806
24988
|
}
|
|
24807
24989
|
}
|
|
24808
|
-
return /* @__PURE__ */
|
|
24990
|
+
return /* @__PURE__ */ jsxs103(Fragment46, { children: [
|
|
24809
24991
|
wrapWithMotionAndMaybeBack(children),
|
|
24810
|
-
actions && /* @__PURE__ */
|
|
24992
|
+
actions && /* @__PURE__ */ jsx202("footer", { className: "bts_solid btw_1px bcGray200 pt3 pb3 pr3 pl3 df aic jcfe", children: /* @__PURE__ */ jsx202("div", { className: "df gap1", children: actions.map((buttonProps, i) => /* @__PURE__ */ jsx202(Button, { ...buttonProps }, i)) }) })
|
|
24811
24993
|
] });
|
|
24812
24994
|
};
|
|
24813
24995
|
|
|
@@ -24850,7 +25032,7 @@ function visit(rows, fn) {
|
|
|
24850
25032
|
}
|
|
24851
25033
|
|
|
24852
25034
|
// src/components/TagGroup.tsx
|
|
24853
|
-
import { jsx as
|
|
25035
|
+
import { jsx as jsx203, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
24854
25036
|
function TagGroup(props) {
|
|
24855
25037
|
const {
|
|
24856
25038
|
tags,
|
|
@@ -24858,9 +25040,9 @@ function TagGroup(props) {
|
|
|
24858
25040
|
...otherProps
|
|
24859
25041
|
} = props;
|
|
24860
25042
|
const tid = useTestIds(otherProps, "tagGroup");
|
|
24861
|
-
return /* @__PURE__ */
|
|
24862
|
-
tags.map((tag) => /* @__PURE__ */
|
|
24863
|
-
onEdit && /* @__PURE__ */
|
|
25043
|
+
return /* @__PURE__ */ jsxs104("div", { ...tid, className: "df aic fww gap1", children: [
|
|
25044
|
+
tags.map((tag) => /* @__PURE__ */ jsx203(Tag, { ...tag, variant: "secondary" }, tag.text)),
|
|
25045
|
+
onEdit && /* @__PURE__ */ jsx203("span", { className: "ml1 fw4 fz_14px lh_20px", children: /* @__PURE__ */ jsx203(Button, { label: "Edit", variant: "text", onClick: onEdit, ...tid.edit }) })
|
|
24864
25046
|
] });
|
|
24865
25047
|
}
|
|
24866
25048
|
|
|
@@ -24873,15 +25055,15 @@ function useToast() {
|
|
|
24873
25055
|
}
|
|
24874
25056
|
|
|
24875
25057
|
// src/layouts/SideNavLayout/SideNavLayout.tsx
|
|
24876
|
-
import { trussProps as
|
|
24877
|
-
import { jsx as
|
|
25058
|
+
import { trussProps as trussProps108, mergeProps as mergeProps33, maybeCssVar as maybeCssVar57 } from "@homebound/truss/runtime";
|
|
25059
|
+
import { jsx as jsx204, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
24878
25060
|
var __maybeInc21 = (inc) => {
|
|
24879
25061
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24880
25062
|
};
|
|
24881
25063
|
function SideNavLayout(props) {
|
|
24882
25064
|
const hasProvider = useHasSideNavLayoutProvider();
|
|
24883
|
-
if (hasProvider) return /* @__PURE__ */
|
|
24884
|
-
return /* @__PURE__ */
|
|
25065
|
+
if (hasProvider) return /* @__PURE__ */ jsx204(SideNavLayoutContent, { ...props });
|
|
25066
|
+
return /* @__PURE__ */ jsx204(SideNavLayoutProvider, { children: /* @__PURE__ */ jsx204(SideNavLayoutContent, { ...props }) });
|
|
24885
25067
|
}
|
|
24886
25068
|
function SideNavLayoutContent(props) {
|
|
24887
25069
|
const {
|
|
@@ -24903,7 +25085,7 @@ function SideNavLayoutContent(props) {
|
|
|
24903
25085
|
const railOffsetPx = !showRail ? 0 : !bp.mdAndUp || collapsed ? railCollapsedWidthPx : railWidthPx;
|
|
24904
25086
|
const navTop = bannerAndNavbarChromeTop();
|
|
24905
25087
|
const railViewportHeight = `calc(var(${beamLayoutViewportHeightVar}, 100vh) - var(${beamEnvironmentBannerLayoutHeightVar}, 0px) - var(${beamNavbarLayoutHeightVar}, 0px))`;
|
|
24906
|
-
const rail = showRail && /* @__PURE__ */
|
|
25088
|
+
const rail = showRail && /* @__PURE__ */ jsxs105("div", { ...trussProps108({
|
|
24907
25089
|
...{
|
|
24908
25090
|
display: "df",
|
|
24909
25091
|
flexDirection: "fdc",
|
|
@@ -24927,14 +25109,14 @@ function SideNavLayoutContent(props) {
|
|
|
24927
25109
|
position: "sticky",
|
|
24928
25110
|
left: "left0",
|
|
24929
25111
|
zIndex: ["z_var", {
|
|
24930
|
-
"--zIndex":
|
|
25112
|
+
"--zIndex": maybeCssVar57(zIndices.sideNav)
|
|
24931
25113
|
}],
|
|
24932
25114
|
top: ["top_var", {
|
|
24933
|
-
"--top":
|
|
25115
|
+
"--top": maybeCssVar57(__maybeInc21(navTop))
|
|
24934
25116
|
}],
|
|
24935
25117
|
alignSelf: "asfs",
|
|
24936
25118
|
height: ["h_var", {
|
|
24937
|
-
"--height":
|
|
25119
|
+
"--height": maybeCssVar57(__maybeInc21(railViewportHeight))
|
|
24938
25120
|
}],
|
|
24939
25121
|
width: ["w_var", {
|
|
24940
25122
|
"--width": `${collapsed ? railCollapsedWidthPx : railWidthPx}px`
|
|
@@ -24944,11 +25126,11 @@ function SideNavLayoutContent(props) {
|
|
|
24944
25126
|
position: "fixed",
|
|
24945
25127
|
left: "left0",
|
|
24946
25128
|
top: ["top_var", {
|
|
24947
|
-
"--top":
|
|
25129
|
+
"--top": maybeCssVar57(__maybeInc21(navTop))
|
|
24948
25130
|
}],
|
|
24949
25131
|
bottom: "bottom0",
|
|
24950
25132
|
zIndex: ["z_var", {
|
|
24951
|
-
"--zIndex":
|
|
25133
|
+
"--zIndex": maybeCssVar57(zIndices.sideNav)
|
|
24952
25134
|
}]
|
|
24953
25135
|
},
|
|
24954
25136
|
...collapsed ? {
|
|
@@ -24960,18 +25142,18 @@ function SideNavLayoutContent(props) {
|
|
|
24960
25142
|
}
|
|
24961
25143
|
}
|
|
24962
25144
|
}), ...tid.sideNav, children: [
|
|
24963
|
-
showCollapseToggle && /* @__PURE__ */
|
|
24964
|
-
/* @__PURE__ */
|
|
25145
|
+
showCollapseToggle && /* @__PURE__ */ jsx204("div", { className: "absolute right2 top2 z2", children: /* @__PURE__ */ jsx204(IconButton, { icon: collapsed ? "menuOpen" : "menuClose", label: collapsed ? "Expand navigation" : "Collapse navigation", onClick: () => setNavState(collapsed ? "expanded" : "collapse"), ...tid.toggle }) }),
|
|
25146
|
+
/* @__PURE__ */ jsx204("div", { className: "fg1 mh0 df fdc", ...tid.sideNavContent, children: /* @__PURE__ */ jsx204(SideNav, { ...sideNav }) })
|
|
24965
25147
|
] });
|
|
24966
|
-
return /* @__PURE__ */
|
|
25148
|
+
return /* @__PURE__ */ jsx204(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs105("div", { ...mergeProps33(void 0, {
|
|
24967
25149
|
[beamSideNavLayoutWidthVar]: `${railOffsetPx}px`
|
|
24968
25150
|
}, {
|
|
24969
25151
|
display: "df",
|
|
24970
25152
|
flexDirection: "fdr",
|
|
24971
25153
|
width: "w100"
|
|
24972
25154
|
}), ...tid, children: [
|
|
24973
|
-
contrastRail ? /* @__PURE__ */
|
|
24974
|
-
/* @__PURE__ */
|
|
25155
|
+
contrastRail ? /* @__PURE__ */ jsx204(ContrastScope, { children: rail }) : rail,
|
|
25156
|
+
/* @__PURE__ */ jsx204("div", { ...trussProps108({
|
|
24975
25157
|
display: "df",
|
|
24976
25158
|
flexDirection: "fdc",
|
|
24977
25159
|
flexGrow: "fg1",
|
|
@@ -24987,8 +25169,8 @@ function SideNavLayoutContent(props) {
|
|
|
24987
25169
|
}
|
|
24988
25170
|
|
|
24989
25171
|
// src/layouts/EnvironmentBannerLayout/EnvironmentBannerLayout.tsx
|
|
24990
|
-
import { trussProps as
|
|
24991
|
-
import { jsx as
|
|
25172
|
+
import { trussProps as trussProps109, mergeProps as mergeProps34, maybeCssVar as maybeCssVar58 } from "@homebound/truss/runtime";
|
|
25173
|
+
import { jsx as jsx205, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
24992
25174
|
var __maybeInc22 = (inc) => {
|
|
24993
25175
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
24994
25176
|
};
|
|
@@ -25004,38 +25186,38 @@ function EnvironmentBannerLayout(props) {
|
|
|
25004
25186
|
[beamEnvironmentBannerLayoutHeightVar]: `${bannerHeightPx}px`
|
|
25005
25187
|
};
|
|
25006
25188
|
const innerWidth = `var(${beamLayoutViewportWidthVar}, 100vw)`;
|
|
25007
|
-
return /* @__PURE__ */
|
|
25189
|
+
return /* @__PURE__ */ jsx205(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx205(EnvironmentBannerLayoutHeightProvider, { value: bannerHeightPx, children: /* @__PURE__ */ jsxs106("div", { ...mergeProps34(void 0, style, {
|
|
25008
25190
|
display: "df",
|
|
25009
25191
|
flexDirection: "fdc",
|
|
25010
25192
|
width: "wfc",
|
|
25011
25193
|
minWidth: "mw100"
|
|
25012
25194
|
}), ...tid, children: [
|
|
25013
|
-
showBanner && environmentBanner && /* @__PURE__ */
|
|
25195
|
+
showBanner && environmentBanner && /* @__PURE__ */ jsx205("div", { ...mergeProps34(void 0, {
|
|
25014
25196
|
height: environmentBannerSizePx
|
|
25015
25197
|
}, {
|
|
25016
25198
|
flexShrink: "fs0",
|
|
25017
25199
|
width: "w100"
|
|
25018
|
-
}), children: /* @__PURE__ */
|
|
25200
|
+
}), children: /* @__PURE__ */ jsx205("div", { ...trussProps109({
|
|
25019
25201
|
position: "fixed",
|
|
25020
25202
|
top: "top0",
|
|
25021
25203
|
left: "left0",
|
|
25022
25204
|
zIndex: ["z_var", {
|
|
25023
|
-
"--zIndex":
|
|
25205
|
+
"--zIndex": maybeCssVar58(zIndices.environmentBanner)
|
|
25024
25206
|
}],
|
|
25025
25207
|
width: ["w_var", {
|
|
25026
|
-
"--width":
|
|
25208
|
+
"--width": maybeCssVar58(__maybeInc22(innerWidth))
|
|
25027
25209
|
}]
|
|
25028
|
-
}), ...tid.bannerSticky, children: /* @__PURE__ */
|
|
25210
|
+
}), ...tid.bannerSticky, children: /* @__PURE__ */ jsx205(EnvironmentBanner, { ...environmentBanner, ...tid.environmentBanner }) }) }),
|
|
25029
25211
|
children
|
|
25030
25212
|
] }) }) });
|
|
25031
25213
|
}
|
|
25032
25214
|
|
|
25033
25215
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
25034
|
-
import { useMemo as useMemo56, useRef as
|
|
25035
|
-
import { mergeProps as
|
|
25216
|
+
import { useMemo as useMemo56, useRef as useRef65 } from "react";
|
|
25217
|
+
import { mergeProps as mergeProps35, maybeCssVar as maybeCssVar59 } from "@homebound/truss/runtime";
|
|
25036
25218
|
|
|
25037
25219
|
// src/layouts/useAutoHideOnScroll.ts
|
|
25038
|
-
import { useLayoutEffect as useLayoutEffect8, useRef as
|
|
25220
|
+
import { useLayoutEffect as useLayoutEffect8, useRef as useRef64, useState as useState57 } from "react";
|
|
25039
25221
|
var THRESHOLD = 80;
|
|
25040
25222
|
function getInitialAutoHideState() {
|
|
25041
25223
|
if (typeof window === "undefined" || window.scrollY <= 0) {
|
|
@@ -25046,13 +25228,13 @@ function getInitialAutoHideState() {
|
|
|
25046
25228
|
function useAutoHideOnScroll(spacerRef, enabled, getTopOffset) {
|
|
25047
25229
|
const initial = getInitialAutoHideState();
|
|
25048
25230
|
const [state, setState] = useState57(initial.state);
|
|
25049
|
-
const stateRef =
|
|
25231
|
+
const stateRef = useRef64(initial.state);
|
|
25050
25232
|
const [atTop, setAtTop] = useState57(initial.atTop);
|
|
25051
|
-
const atTopRef =
|
|
25052
|
-
const getTopOffsetRef =
|
|
25233
|
+
const atTopRef = useRef64(initial.atTop);
|
|
25234
|
+
const getTopOffsetRef = useRef64(getTopOffset);
|
|
25053
25235
|
getTopOffsetRef.current = getTopOffset;
|
|
25054
|
-
const lastScrollY =
|
|
25055
|
-
const lastScrollHeight =
|
|
25236
|
+
const lastScrollY = useRef64(Number.POSITIVE_INFINITY);
|
|
25237
|
+
const lastScrollHeight = useRef64(0);
|
|
25056
25238
|
useLayoutEffect8(() => {
|
|
25057
25239
|
if (!enabled) {
|
|
25058
25240
|
stateRef.current = "static";
|
|
@@ -25143,17 +25325,17 @@ function useMeasuredHeight(ref, enabled) {
|
|
|
25143
25325
|
|
|
25144
25326
|
// src/layouts/NavbarLayout/NavbarLayoutHeightContext.tsx
|
|
25145
25327
|
import { createContext as createContext15, useContext as useContext27 } from "react";
|
|
25146
|
-
import { jsx as
|
|
25328
|
+
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
25147
25329
|
var NavbarLayoutHeightContext = createContext15(0);
|
|
25148
25330
|
function NavbarLayoutHeightProvider({ value, children }) {
|
|
25149
|
-
return /* @__PURE__ */
|
|
25331
|
+
return /* @__PURE__ */ jsx206(NavbarLayoutHeightContext.Provider, { value, children });
|
|
25150
25332
|
}
|
|
25151
25333
|
function useNavbarLayoutHeight() {
|
|
25152
25334
|
return useContext27(NavbarLayoutHeightContext);
|
|
25153
25335
|
}
|
|
25154
25336
|
|
|
25155
25337
|
// src/layouts/NavbarLayout/NavbarLayout.tsx
|
|
25156
|
-
import { jsx as
|
|
25338
|
+
import { jsx as jsx207, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
25157
25339
|
var __maybeInc23 = (inc) => {
|
|
25158
25340
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
25159
25341
|
};
|
|
@@ -25163,8 +25345,8 @@ function NavbarLayout(props) {
|
|
|
25163
25345
|
children
|
|
25164
25346
|
} = props;
|
|
25165
25347
|
const tid = useTestIds(props, "navbarLayout");
|
|
25166
|
-
const navMetricsRef =
|
|
25167
|
-
const spacerRef =
|
|
25348
|
+
const navMetricsRef = useRef65(null);
|
|
25349
|
+
const spacerRef = useRef65(null);
|
|
25168
25350
|
const navHeight = useMeasuredHeight(navMetricsRef, true);
|
|
25169
25351
|
const {
|
|
25170
25352
|
state: autoHideState,
|
|
@@ -25182,10 +25364,10 @@ function NavbarLayout(props) {
|
|
|
25182
25364
|
position: "sticky",
|
|
25183
25365
|
left: "left0",
|
|
25184
25366
|
zIndex: ["z_var", {
|
|
25185
|
-
"--zIndex":
|
|
25367
|
+
"--zIndex": maybeCssVar59(zIndices.navbar)
|
|
25186
25368
|
}],
|
|
25187
25369
|
width: ["w_var", {
|
|
25188
|
-
"--width":
|
|
25370
|
+
"--width": maybeCssVar59(__maybeInc23(innerWidth))
|
|
25189
25371
|
}]
|
|
25190
25372
|
}
|
|
25191
25373
|
) : (
|
|
@@ -25194,10 +25376,10 @@ function NavbarLayout(props) {
|
|
|
25194
25376
|
position: "fixed",
|
|
25195
25377
|
left: "left0",
|
|
25196
25378
|
zIndex: ["z_var", {
|
|
25197
|
-
"--zIndex":
|
|
25379
|
+
"--zIndex": maybeCssVar59(zIndices.navbar)
|
|
25198
25380
|
}],
|
|
25199
25381
|
width: ["w_var", {
|
|
25200
|
-
"--width":
|
|
25382
|
+
"--width": maybeCssVar59(__maybeInc23(innerWidth))
|
|
25201
25383
|
}],
|
|
25202
25384
|
transition: "transitionTop"
|
|
25203
25385
|
}
|
|
@@ -25206,25 +25388,25 @@ function NavbarLayout(props) {
|
|
|
25206
25388
|
const innerStyle = autoHideState !== "static" ? {
|
|
25207
25389
|
top: autoHideState === "revealed" ? bannerTop : `calc(${bannerTop} - ${navHeight}px)`
|
|
25208
25390
|
} : void 0;
|
|
25209
|
-
const navbarEl = useMemo56(() => /* @__PURE__ */
|
|
25210
|
-
return /* @__PURE__ */
|
|
25391
|
+
const navbarEl = useMemo56(() => /* @__PURE__ */ jsx207(Navbar, { ...navbar }), [navbar]);
|
|
25392
|
+
return /* @__PURE__ */ jsx207(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsx207(NavbarLayoutHeightProvider, { value: navbarOffsetPx, children: /* @__PURE__ */ jsxs107("div", { ...mergeProps35(void 0, cssVars, {
|
|
25211
25393
|
display: "df",
|
|
25212
25394
|
flexDirection: "fdc",
|
|
25213
25395
|
width: "wfc",
|
|
25214
25396
|
minWidth: "mw100"
|
|
25215
25397
|
}), ...tid, children: [
|
|
25216
|
-
/* @__PURE__ */
|
|
25398
|
+
/* @__PURE__ */ jsx207("div", { ref: spacerRef, ...mergeProps35(void 0, {
|
|
25217
25399
|
height: navHeight
|
|
25218
25400
|
}, {
|
|
25219
25401
|
flexShrink: "fs0",
|
|
25220
25402
|
width: "w100"
|
|
25221
|
-
}), children: /* @__PURE__ */
|
|
25222
|
-
/* @__PURE__ */
|
|
25403
|
+
}), children: /* @__PURE__ */ jsx207("div", { ref: navMetricsRef, ...mergeProps35(void 0, innerStyle, innerCss), ...tid.navbar, children: navbarEl }) }),
|
|
25404
|
+
/* @__PURE__ */ jsx207("div", { className: "df fdc mh0 mw100 w100", ...tid.body, children })
|
|
25223
25405
|
] }) }) });
|
|
25224
25406
|
}
|
|
25225
25407
|
|
|
25226
25408
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
25227
|
-
import { useCallback as useCallback39, useMemo as useMemo57, useRef as
|
|
25409
|
+
import { useCallback as useCallback39, useMemo as useMemo57, useRef as useRef66 } from "react";
|
|
25228
25410
|
|
|
25229
25411
|
// src/layouts/useBannerAndNavbarHeight.ts
|
|
25230
25412
|
function useBannerAndNavbarHeight() {
|
|
@@ -25232,8 +25414,8 @@ function useBannerAndNavbarHeight() {
|
|
|
25232
25414
|
}
|
|
25233
25415
|
|
|
25234
25416
|
// src/layouts/PageHeaderLayout/PageHeaderLayout.tsx
|
|
25235
|
-
import { mergeProps as
|
|
25236
|
-
import { jsx as
|
|
25417
|
+
import { mergeProps as mergeProps36, maybeCssVar as maybeCssVar60 } from "@homebound/truss/runtime";
|
|
25418
|
+
import { jsx as jsx208, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
25237
25419
|
var __maybeInc24 = (inc) => {
|
|
25238
25420
|
return typeof inc === "string" ? inc : `calc(var(--t-spacing) * ${inc})`;
|
|
25239
25421
|
};
|
|
@@ -25244,11 +25426,11 @@ function PageHeaderLayout(props) {
|
|
|
25244
25426
|
} = props;
|
|
25245
25427
|
const tid = useTestIds(props, "pageHeaderLayout");
|
|
25246
25428
|
const bannerAndNavbarHeight = useBannerAndNavbarHeight();
|
|
25247
|
-
const bannerAndNavbarHeightRef =
|
|
25429
|
+
const bannerAndNavbarHeightRef = useRef66(bannerAndNavbarHeight);
|
|
25248
25430
|
bannerAndNavbarHeightRef.current = bannerAndNavbarHeight;
|
|
25249
25431
|
const getBannerAndNavbarHeight = useCallback39(() => bannerAndNavbarHeightRef.current, []);
|
|
25250
|
-
const headerMetricsRef =
|
|
25251
|
-
const spacerRef =
|
|
25432
|
+
const headerMetricsRef = useRef66(null);
|
|
25433
|
+
const spacerRef = useRef66(null);
|
|
25252
25434
|
const headerHeight = useMeasuredHeight(headerMetricsRef, true);
|
|
25253
25435
|
const {
|
|
25254
25436
|
state: autoHideState,
|
|
@@ -25264,43 +25446,43 @@ function PageHeaderLayout(props) {
|
|
|
25264
25446
|
const innerCss = autoHideState === "static" ? {
|
|
25265
25447
|
position: "sticky",
|
|
25266
25448
|
left: ["left_var", {
|
|
25267
|
-
"--left":
|
|
25449
|
+
"--left": maybeCssVar60(__maybeInc24(headerLeft))
|
|
25268
25450
|
}],
|
|
25269
25451
|
width: ["w_var", {
|
|
25270
|
-
"--width":
|
|
25452
|
+
"--width": maybeCssVar60(__maybeInc24(headerWidth))
|
|
25271
25453
|
}],
|
|
25272
25454
|
zIndex: ["z_var", {
|
|
25273
|
-
"--zIndex":
|
|
25455
|
+
"--zIndex": maybeCssVar60(zIndices.pageStickyHeader)
|
|
25274
25456
|
}]
|
|
25275
25457
|
} : {
|
|
25276
25458
|
position: "fixed",
|
|
25277
25459
|
left: ["left_var", {
|
|
25278
|
-
"--left":
|
|
25460
|
+
"--left": maybeCssVar60(__maybeInc24(headerLeft))
|
|
25279
25461
|
}],
|
|
25280
25462
|
width: ["w_var", {
|
|
25281
|
-
"--width":
|
|
25463
|
+
"--width": maybeCssVar60(__maybeInc24(headerWidth))
|
|
25282
25464
|
}],
|
|
25283
25465
|
zIndex: ["z_var", {
|
|
25284
|
-
"--zIndex":
|
|
25466
|
+
"--zIndex": maybeCssVar60(zIndices.pageStickyHeader)
|
|
25285
25467
|
}],
|
|
25286
25468
|
transition: "transitionTop"
|
|
25287
25469
|
};
|
|
25288
25470
|
const innerStyle = autoHideState !== "static" ? {
|
|
25289
25471
|
top: autoHideState === "revealed" ? outerTop : `calc(${outerTop} - ${headerHeight}px)`
|
|
25290
25472
|
} : void 0;
|
|
25291
|
-
const pageHeaderEl = useMemo57(() => /* @__PURE__ */
|
|
25292
|
-
return /* @__PURE__ */
|
|
25473
|
+
const pageHeaderEl = useMemo57(() => /* @__PURE__ */ jsx208(PageHeader2, { ...pageHeader }), [pageHeader]);
|
|
25474
|
+
return /* @__PURE__ */ jsx208(DocumentScrollLayoutProvider, { children: /* @__PURE__ */ jsxs108("div", { ...mergeProps36(void 0, cssVars, {
|
|
25293
25475
|
display: "df",
|
|
25294
25476
|
flexDirection: "fdc",
|
|
25295
25477
|
width: "w100"
|
|
25296
25478
|
}), ...tid, children: [
|
|
25297
|
-
/* @__PURE__ */
|
|
25479
|
+
/* @__PURE__ */ jsx208("div", { ref: spacerRef, ...mergeProps36(void 0, {
|
|
25298
25480
|
height: headerHeight
|
|
25299
25481
|
}, {
|
|
25300
25482
|
flexShrink: "fs0",
|
|
25301
25483
|
width: "w100"
|
|
25302
|
-
}), children: /* @__PURE__ */
|
|
25303
|
-
/* @__PURE__ */
|
|
25484
|
+
}), children: /* @__PURE__ */ jsx208("div", { ref: headerMetricsRef, ...mergeProps36(void 0, innerStyle, innerCss), ...tid.pageHeader, children: pageHeaderEl }) }),
|
|
25485
|
+
/* @__PURE__ */ jsx208("div", { className: "df fdc fg1 mh0 w100", ...tid.body, children })
|
|
25304
25486
|
] }) });
|
|
25305
25487
|
}
|
|
25306
25488
|
export {
|
|
@@ -25444,6 +25626,8 @@ export {
|
|
|
25444
25626
|
SortHeader,
|
|
25445
25627
|
StaticField,
|
|
25446
25628
|
Stepper,
|
|
25629
|
+
StepperTab,
|
|
25630
|
+
StepperTabs,
|
|
25447
25631
|
SubmitButton,
|
|
25448
25632
|
SuperDrawerContent,
|
|
25449
25633
|
SuperDrawerHeader,
|
|
@@ -25584,6 +25768,7 @@ export {
|
|
|
25584
25768
|
px,
|
|
25585
25769
|
recursivelyGetContainingRow,
|
|
25586
25770
|
reservedRowKinds,
|
|
25771
|
+
resolveGridTableLayoutStyle,
|
|
25587
25772
|
resolveTableContentWidth,
|
|
25588
25773
|
resolveTooltip,
|
|
25589
25774
|
rowClickRenderFn,
|