@siemens/ix-react 1.5.0-beta.1 → 1.5.0-beta.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/dist/index.esm.js CHANGED
@@ -319,7 +319,9 @@ const Modal = React.forwardRef((props, ref) => {
319
319
  modalElement: htmlElement,
320
320
  };
321
321
  });
322
- return React.createElement("div", { ref: wrapperRef }, props.children);
322
+ return (React.createElement(React.Fragment, null, React.Children.map(props.children, (child) => React.cloneElement(child, {
323
+ ref: (ref) => (wrapperRef.current = ref),
324
+ }))));
323
325
  });
324
326
 
325
327
  /*
@@ -336,6 +338,7 @@ async function showModal(config) {
336
338
  return modal(config);
337
339
  }
338
340
  const container = document.createElement('DIV');
341
+ container.style.display = 'contents';
339
342
  const root = ReactDOMClient.createRoot(container);
340
343
  root.render(config.content);
341
344
  const modalInstance = await modal(Object.assign(Object.assign({}, config), { content: container }));
package/dist/index.js CHANGED
@@ -328,7 +328,9 @@ const Modal = React__default["default"].forwardRef((props, ref) => {
328
328
  modalElement: htmlElement,
329
329
  };
330
330
  });
331
- return React__default["default"].createElement("div", { ref: wrapperRef }, props.children);
331
+ return (React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].Children.map(props.children, (child) => React__default["default"].cloneElement(child, {
332
+ ref: (ref) => (wrapperRef.current = ref),
333
+ }))));
332
334
  });
333
335
 
334
336
  /*
@@ -345,6 +347,7 @@ async function showModal(config) {
345
347
  return ix.modal(config);
346
348
  }
347
349
  const container = document.createElement('DIV');
350
+ container.style.display = 'contents';
348
351
  const root = ReactDOMClient__default["default"].createRoot(container);
349
352
  root.render(config.content);
350
353
  const modalInstance = await ix.modal(Object.assign(Object.assign({}, config), { content: container }));
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/siemens/ix",
8
8
  "directory": "packages/react"
9
9
  },
10
- "version": "1.5.0-beta.1",
10
+ "version": "1.5.0-beta.3",
11
11
  "description": "Siemens iX for React",
12
12
  "main": "dist/index.js",
13
13
  "module": "dist/index.esm.js",
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@rollup/plugin-typescript": "^8.4.0",
31
- "@siemens/ix": "~1.5.0-beta.1",
31
+ "@siemens/ix": "~1.5.0-beta.3",
32
32
  "@types/estree": "~0.0.51",
33
33
  "@types/react": "~18.0.15",
34
34
  "@types/react-dom": "~18.0.6",
@@ -51,7 +51,7 @@
51
51
  "react-dom": ">=17.0.2"
52
52
  },
53
53
  "dependencies": {
54
- "@siemens/ix": "~1.5.0-beta.1",
54
+ "@siemens/ix": "~1.5.0-beta.3",
55
55
  "@siemens/ix-icons": "~1.0.0"
56
56
  }
57
57
  }