@edux-design/popovers 1.0.3 → 1.0.4
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/CHANGELOG.md +6 -0
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
- package/src/elements/Popover.jsx +3 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -54,6 +54,8 @@ var PopoverContent = (0, import_react.forwardRef)(
|
|
|
54
54
|
children,
|
|
55
55
|
className,
|
|
56
56
|
style,
|
|
57
|
+
container,
|
|
58
|
+
portalProps = {},
|
|
57
59
|
side = "bottom",
|
|
58
60
|
sideOffset = 8,
|
|
59
61
|
align = "center",
|
|
@@ -71,7 +73,7 @@ var PopoverContent = (0, import_react.forwardRef)(
|
|
|
71
73
|
bottom: "translate-y-[4px]",
|
|
72
74
|
left: "translate-x-[-4px]"
|
|
73
75
|
}[side];
|
|
74
|
-
return /* @__PURE__ */ import_react.default.createElement(PopoverPortal,
|
|
76
|
+
return /* @__PURE__ */ import_react.default.createElement(PopoverPortal, { container, ...portalProps }, /* @__PURE__ */ import_react.default.createElement(
|
|
75
77
|
PopoverPrimitive.Content,
|
|
76
78
|
{
|
|
77
79
|
ref,
|
package/dist/index.mjs
CHANGED
|
@@ -13,6 +13,8 @@ var PopoverContent = forwardRef(
|
|
|
13
13
|
children,
|
|
14
14
|
className,
|
|
15
15
|
style,
|
|
16
|
+
container,
|
|
17
|
+
portalProps = {},
|
|
16
18
|
side = "bottom",
|
|
17
19
|
sideOffset = 8,
|
|
18
20
|
align = "center",
|
|
@@ -30,7 +32,7 @@ var PopoverContent = forwardRef(
|
|
|
30
32
|
bottom: "translate-y-[4px]",
|
|
31
33
|
left: "translate-x-[-4px]"
|
|
32
34
|
}[side];
|
|
33
|
-
return /* @__PURE__ */ React.createElement(PopoverPortal,
|
|
35
|
+
return /* @__PURE__ */ React.createElement(PopoverPortal, { container, ...portalProps }, /* @__PURE__ */ React.createElement(
|
|
34
36
|
PopoverPrimitive.Content,
|
|
35
37
|
{
|
|
36
38
|
ref,
|
package/package.json
CHANGED
package/src/elements/Popover.jsx
CHANGED
|
@@ -105,6 +105,8 @@ export const PopoverContent = forwardRef(
|
|
|
105
105
|
children,
|
|
106
106
|
className,
|
|
107
107
|
style,
|
|
108
|
+
container,
|
|
109
|
+
portalProps = {},
|
|
108
110
|
side = "bottom",
|
|
109
111
|
sideOffset = 8,
|
|
110
112
|
align = "center",
|
|
@@ -129,7 +131,7 @@ export const PopoverContent = forwardRef(
|
|
|
129
131
|
}[side];
|
|
130
132
|
|
|
131
133
|
return (
|
|
132
|
-
<PopoverPortal>
|
|
134
|
+
<PopoverPortal container={container} {...portalProps}>
|
|
133
135
|
<PopoverPrimitive.Content
|
|
134
136
|
ref={ref}
|
|
135
137
|
side={side}
|