@lumx/react 3.1.4-alpha-popover.2 → 3.1.4-alpha-popover.3
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/index.js +3 -3
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/popover/usePopoverStyle.tsx +3 -3
- package/src/components/popover-dialog/PopoverDialog.stories.tsx +3 -3
- package/src/components/select/WithSelectContext.tsx +2 -2
- package/src/components/tooltip/Tooltip.tsx +1 -2
package/index.js
CHANGED
|
@@ -5989,18 +5989,18 @@ function usePopoverStyle(_ref5) {
|
|
|
5989
5989
|
style,
|
|
5990
5990
|
zIndex
|
|
5991
5991
|
} = _ref5;
|
|
5992
|
+
const [popperElement, setPopperElement] = useState(null);
|
|
5992
5993
|
if (navigator.userAgent.includes('jsdom')) {
|
|
5993
5994
|
// Skip all logic; we don't need popover positioning in jsdom.
|
|
5994
5995
|
return {
|
|
5995
5996
|
styles: {},
|
|
5996
5997
|
attributes: {},
|
|
5997
5998
|
isPositioned: true,
|
|
5998
|
-
popperElement
|
|
5999
|
+
popperElement,
|
|
6000
|
+
setPopperElement
|
|
5999
6001
|
};
|
|
6000
6002
|
}
|
|
6001
6003
|
|
|
6002
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
6003
|
-
const [popperElement, setPopperElement] = useState(null);
|
|
6004
6004
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
6005
6005
|
const [arrowElement, setArrowElement] = useState(null);
|
|
6006
6006
|
const actualOffset = [(_offset$along = offset === null || offset === void 0 ? void 0 : offset.along) !== null && _offset$along !== void 0 ? _offset$along : 0, ((_offset$away = offset === null || offset === void 0 ? void 0 : offset.away) !== null && _offset$away !== void 0 ? _offset$away : 0) + (hasArrow ? ARROW_SIZE : 0)];
|