@tutti-os/ui-system 0.0.232 → 0.0.234
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.
|
@@ -4473,7 +4473,7 @@ function rectToBoundary(rect) {
|
|
|
4473
4473
|
function resolveMenuBoundaryFromPoint(point) {
|
|
4474
4474
|
if (typeof document === "undefined" || !document.elementsFromPoint) {
|
|
4475
4475
|
return {
|
|
4476
|
-
|
|
4476
|
+
portalTarget: null,
|
|
4477
4477
|
rect: viewportBoundary()
|
|
4478
4478
|
};
|
|
4479
4479
|
}
|
|
@@ -4482,13 +4482,13 @@ function resolveMenuBoundaryFromPoint(point) {
|
|
|
4482
4482
|
const boundaryElement = element.closest(selector);
|
|
4483
4483
|
if (boundaryElement) {
|
|
4484
4484
|
return {
|
|
4485
|
-
|
|
4485
|
+
portalTarget: boundaryElement.getAttribute("data-viewport-menu-portal-target") === "body" ? null : boundaryElement,
|
|
4486
4486
|
rect: rectToBoundary(boundaryElement.getBoundingClientRect())
|
|
4487
4487
|
};
|
|
4488
4488
|
}
|
|
4489
4489
|
}
|
|
4490
4490
|
return {
|
|
4491
|
-
|
|
4491
|
+
portalTarget: null,
|
|
4492
4492
|
rect: viewportBoundary()
|
|
4493
4493
|
};
|
|
4494
4494
|
}
|
|
@@ -4637,7 +4637,7 @@ var ViewportMenuSurface = React14.forwardRef(function ViewportMenuSurface2({
|
|
|
4637
4637
|
);
|
|
4638
4638
|
const menuSize2 = measuredSize ?? { width: 0, height: 0 };
|
|
4639
4639
|
return {
|
|
4640
|
-
portalTarget: boundary2.
|
|
4640
|
+
portalTarget: boundary2.portalTarget,
|
|
4641
4641
|
position: placement.constrainToBoundary === false ? {
|
|
4642
4642
|
left: placement.left,
|
|
4643
4643
|
top: placement.top
|
|
@@ -4667,7 +4667,7 @@ var ViewportMenuSurface = React14.forwardRef(function ViewportMenuSurface2({
|
|
|
4667
4667
|
alignY: placement.alignY
|
|
4668
4668
|
});
|
|
4669
4669
|
return {
|
|
4670
|
-
portalTarget: boundary.
|
|
4670
|
+
portalTarget: boundary.portalTarget,
|
|
4671
4671
|
position: {
|
|
4672
4672
|
left: boundary.rect.left + relativePosition.left,
|
|
4673
4673
|
top: boundary.rect.top + relativePosition.top
|
|
@@ -4841,4 +4841,4 @@ export {
|
|
|
4841
4841
|
UnderlineTabs,
|
|
4842
4842
|
ViewportMenuSurface
|
|
4843
4843
|
};
|
|
4844
|
-
//# sourceMappingURL=chunk-
|
|
4844
|
+
//# sourceMappingURL=chunk-76LGKQX7.js.map
|