@homebound/beam 4.45.0 → 4.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -12
- package/dist/index.js.map +1 -1
- package/dist/truss.css +0 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26829,10 +26829,7 @@ function useScrollPinnedViewportBounds(anchorRef, enabled, getPinTopPx) {
|
|
|
26829
26829
|
const pinTopPx = getPinTopPxRef.current(el);
|
|
26830
26830
|
const isPinned = rect.top <= pinTopPx + 1;
|
|
26831
26831
|
const topPx = isPinned ? pinTopPx : Math.round(rect.top);
|
|
26832
|
-
|
|
26833
|
-
setBounds(
|
|
26834
|
-
(prev) => prev?.topPx === topPx && prev?.heightPx === heightPx && prev?.isPinned === isPinned ? prev : { topPx, heightPx, isPinned }
|
|
26835
|
-
);
|
|
26832
|
+
setBounds((prev) => prev?.topPx === topPx && prev?.isPinned === isPinned ? prev : { topPx, isPinned });
|
|
26836
26833
|
}, [anchorRef]);
|
|
26837
26834
|
useLayoutEffect10(() => {
|
|
26838
26835
|
getPinTopPxRef.current = getPinTopPx;
|
|
@@ -27007,13 +27004,9 @@ function DocumentScrollRightPane({
|
|
|
27007
27004
|
current: null
|
|
27008
27005
|
};
|
|
27009
27006
|
const paneBounds = useScrollPinnedViewportBounds(isFixedOverlay ? anchor : paneRef, paneLayoutActive && isFixedOverlay, stickyTableHeaderOffsetPx);
|
|
27010
|
-
const paneStyle =
|
|
27011
|
-
top: bannerHeightPx
|
|
27012
|
-
}
|
|
27013
|
-
top: paneBounds.topPx,
|
|
27014
|
-
height: paneBounds.heightPx,
|
|
27015
|
-
maxHeight: paneBounds.heightPx
|
|
27016
|
-
} : void 0;
|
|
27007
|
+
const paneStyle = {
|
|
27008
|
+
top: mobile ? bannerHeightPx : paneBounds?.topPx
|
|
27009
|
+
};
|
|
27017
27010
|
const pane = /* @__PURE__ */ jsx199(AnimatePresence3, { children: isRightPaneOpen && /* @__PURE__ */ jsx199(
|
|
27018
27011
|
motion3.div,
|
|
27019
27012
|
{
|
|
@@ -27037,6 +27030,7 @@ function DocumentScrollRightPane({
|
|
|
27037
27030
|
} : {
|
|
27038
27031
|
position: "fixed",
|
|
27039
27032
|
right: "r_0",
|
|
27033
|
+
bottom: "bot_0",
|
|
27040
27034
|
overflowY: "oya",
|
|
27041
27035
|
width: ["w_var", {
|
|
27042
27036
|
"--width": maybeCssVar51(__maybeInc20(paneWidthCss))
|
|
@@ -27053,7 +27047,7 @@ function DocumentScrollRightPane({
|
|
|
27053
27047
|
"--borderColor": "var(--b-surface-separator)"
|
|
27054
27048
|
}],
|
|
27055
27049
|
...!!paneBounds?.isPinned ? {
|
|
27056
|
-
transition: "
|
|
27050
|
+
transition: "transitionTop"
|
|
27057
27051
|
} : {}
|
|
27058
27052
|
}),
|
|
27059
27053
|
initial: {
|