@reykjavik/hanna-react 0.10.110 → 0.10.111
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 +1 -1
- package/Modal.js +1 -1
- package/esm/Modal.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/Modal.js
CHANGED
|
@@ -7,7 +7,7 @@ const _AbstractModal_js_1 = require("./_abstract/_AbstractModal.js");
|
|
|
7
7
|
exports.defaultModalTexts = _AbstractModal_js_1.defaultAbstractModalTexts;
|
|
8
8
|
const Modal = (props) => {
|
|
9
9
|
const { bling, render, children } = props;
|
|
10
|
-
return (react_1.default.createElement(_AbstractModal_js_1.AbstractModal, Object.assign({}, props, { bem: "
|
|
10
|
+
return (react_1.default.createElement(_AbstractModal_js_1.AbstractModal, Object.assign({}, props, { bem: "Modal", render: (renderProps) => {
|
|
11
11
|
const _children = render ? render(renderProps) : children;
|
|
12
12
|
return bling ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
13
13
|
_children,
|
package/esm/Modal.js
CHANGED
|
@@ -3,7 +3,7 @@ import { AbstractModal, defaultAbstractModalTexts, } from './_abstract/_Abstract
|
|
|
3
3
|
export const defaultModalTexts = defaultAbstractModalTexts;
|
|
4
4
|
export const Modal = (props) => {
|
|
5
5
|
const { bling, render, children } = props;
|
|
6
|
-
return (React.createElement(AbstractModal, Object.assign({}, props, { bem: "
|
|
6
|
+
return (React.createElement(AbstractModal, Object.assign({}, props, { bem: "Modal", render: (renderProps) => {
|
|
7
7
|
const _children = render ? render(renderProps) : children;
|
|
8
8
|
return bling ? (React.createElement(React.Fragment, null,
|
|
9
9
|
_children,
|