@shoplflow/base 0.24.33 → 0.24.35
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -563,7 +563,7 @@ var StyledText = styled5__default.default.span`
|
|
|
563
563
|
`};
|
|
564
564
|
${({ opacity }) => opacity && react$1.css`
|
|
565
565
|
opacity: ${opacity};
|
|
566
|
-
`}
|
|
566
|
+
`};
|
|
567
567
|
${({ wordBreak }) => wordBreak && react$1.css`
|
|
568
568
|
word-break: ${wordBreak};
|
|
569
569
|
`};
|
|
@@ -1692,7 +1692,7 @@ var Popper = ({
|
|
|
1692
1692
|
children
|
|
1693
1693
|
}) => {
|
|
1694
1694
|
const [isOpen, setIsOpen] = React2.useState(false);
|
|
1695
|
-
const
|
|
1695
|
+
const _a = reactDom.useFloating({
|
|
1696
1696
|
strategy,
|
|
1697
1697
|
placement,
|
|
1698
1698
|
whileElementsMounted: react.autoUpdate,
|
|
@@ -1703,11 +1703,11 @@ var Popper = ({
|
|
|
1703
1703
|
}, initialAutoPlacement)),
|
|
1704
1704
|
...middlewares != null ? middlewares : []
|
|
1705
1705
|
]
|
|
1706
|
-
});
|
|
1706
|
+
}), { refs, floatingStyles } = _a, floating = __objRest(_a, ["refs", "floatingStyles"]);
|
|
1707
1707
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1708
1708
|
PopperContext.Provider,
|
|
1709
1709
|
{
|
|
1710
|
-
value: __spreadProps(__spreadValues({}, refs), { floatingStyles: __spreadProps(__spreadValues({}, floatingStyles), { zIndex: 20002 })
|
|
1710
|
+
value: __spreadProps(__spreadValues(__spreadValues({ isOpen, setIsOpen }, floating), refs), { floatingStyles: __spreadProps(__spreadValues({}, floatingStyles), { zIndex: 20002 }) }),
|
|
1711
1711
|
children
|
|
1712
1712
|
}
|
|
1713
1713
|
);
|