@pepperi-addons/ngx-lib-react 0.5.4 → 0.5.5
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/package.json +2 -1
- package/pep-dialog.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pepperi-addons/ngx-lib-react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "Thin React wrappers for Pepperi Angular Elements (Web Components) to improve DX in React.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Pepperi",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"*.js",
|
|
27
27
|
"*.d.ts",
|
|
28
28
|
"README.md",
|
|
29
|
+
"SERVICES.md",
|
|
29
30
|
"elements/*"
|
|
30
31
|
]
|
|
31
32
|
,
|
package/pep-dialog.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef } from 'react';
|
|
3
|
-
export const PepDialog = ({ title, showClose, showHeader, showFooter, onClose, ...rest }) => {
|
|
3
|
+
export const PepDialog = ({ title, showClose, showHeader, showFooter, onClose, children, ...rest }) => {
|
|
4
4
|
const ref = useRef(null);
|
|
5
5
|
// Sync inputs as properties on the custom element
|
|
6
6
|
useEffect(() => {
|
|
@@ -29,6 +29,6 @@ export const PepDialog = ({ title, showClose, showHeader, showFooter, onClose, .
|
|
|
29
29
|
handlers.forEach(([n, h]) => el.addEventListener(n, h));
|
|
30
30
|
return () => handlers.forEach(([n, h]) => el.removeEventListener(n, h));
|
|
31
31
|
}, [onClose]);
|
|
32
|
-
return _jsx("pep-dialog-element", { ref: ref, ...rest });
|
|
32
|
+
return (_jsx("pep-dialog-element", { ref: ref, ...rest, children: children }));
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=pep-dialog.js.map
|