@festo-ui/react 9.0.1-dev.786 → 9.0.1-dev.792

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.
@@ -1,4 +1,5 @@
1
1
  .fwe-popover-container {
2
+ z-index: var(--fwe-z-index-popover);
2
3
  filter: drop-shadow(0 1px 4px #33333329);
3
4
  }
4
5
 
@@ -1,6 +1,6 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import "./Popover.css";
3
- import { FloatingArrow, arrow, autoUpdate, flip, offset, useClick, useDismiss, useFloating, useHover, useInteractions } from "@floating-ui/react";
3
+ import { FloatingArrow, FloatingPortal, arrow, autoUpdate, flip, offset, useClick, useDismiss, useFloating, useHover, useInteractions } from "@floating-ui/react";
4
4
  import classnames from "classnames";
5
5
  import { useRef } from "react";
6
6
  import { useControlled } from "../../../utils/useControlled.js";
@@ -56,25 +56,27 @@ function Popover({ children, className, 'data-testid': dataTestId, containerClas
56
56
  }),
57
57
  children: children
58
58
  }),
59
- showPopover && /*#__PURE__*/ jsxs("div", {
60
- className: "fwe-popover-container",
61
- ref: refs.setFloating,
62
- style: floatingStyles,
63
- ...getFloatingProps(),
64
- children: [
65
- showArrow && /*#__PURE__*/ jsx(FloatingArrow, {
66
- ref: arrowRef,
67
- context: context,
68
- fill: "white",
69
- width: 16,
70
- height: 8
71
- }),
72
- /*#__PURE__*/ jsx("div", {
73
- "data-testid": dataTestId,
74
- className: classnames('fwe-popover', containerClassName),
75
- children: content
76
- })
77
- ]
59
+ showPopover && /*#__PURE__*/ jsx(FloatingPortal, {
60
+ children: /*#__PURE__*/ jsxs("div", {
61
+ className: "fwe-popover-container",
62
+ ref: refs.setFloating,
63
+ style: floatingStyles,
64
+ ...getFloatingProps(),
65
+ children: [
66
+ showArrow && /*#__PURE__*/ jsx(FloatingArrow, {
67
+ ref: arrowRef,
68
+ context: context,
69
+ fill: "white",
70
+ width: 16,
71
+ height: 8
72
+ }),
73
+ /*#__PURE__*/ jsx("div", {
74
+ "data-testid": dataTestId,
75
+ className: classnames('fwe-popover', containerClassName),
76
+ children: content
77
+ })
78
+ ]
79
+ })
78
80
  })
79
81
  ]
80
82
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react",
3
- "version": "9.0.1-dev.786",
3
+ "version": "9.0.1-dev.792",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "copyright": "Copyright (c) 2025 Festo SE & Co. KG. All rights reserved.",
6
6
  "license": "apache-2.0",