elbe-ui 2.0.4 → 2.0.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/dist/ui/util/root.d.ts +4 -4
- package/dist/ui/util/root.js +4 -4
- package/package.json +1 -1
package/dist/ui/util/root.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ElbeChild } from "./types";
|
|
2
2
|
export declare const elbeDomElements: {
|
|
3
3
|
readonly elbe_app: {
|
|
4
|
-
readonly
|
|
4
|
+
readonly zIndex: 0;
|
|
5
5
|
};
|
|
6
6
|
readonly elbe_dialog: {
|
|
7
|
-
readonly
|
|
7
|
+
readonly zIndex: 1000;
|
|
8
8
|
readonly position: "absolute";
|
|
9
9
|
};
|
|
10
10
|
readonly elbe_tooltip: {
|
|
11
|
-
readonly
|
|
11
|
+
readonly zIndex: 2000;
|
|
12
12
|
readonly position: "absolute";
|
|
13
13
|
};
|
|
14
14
|
readonly elbe_toast: {
|
|
15
|
-
readonly
|
|
15
|
+
readonly zIndex: 3000;
|
|
16
16
|
readonly position: "fixed";
|
|
17
17
|
};
|
|
18
18
|
};
|
package/dist/ui/util/root.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRoot } from "react-dom/client";
|
|
2
2
|
export const elbeDomElements = {
|
|
3
|
-
elbe_app: {
|
|
4
|
-
elbe_dialog: {
|
|
5
|
-
elbe_tooltip: {
|
|
6
|
-
elbe_toast: {
|
|
3
|
+
elbe_app: { zIndex: 0 },
|
|
4
|
+
elbe_dialog: { zIndex: 1000, position: "absolute" },
|
|
5
|
+
elbe_tooltip: { zIndex: 2000, position: "absolute" },
|
|
6
|
+
elbe_toast: { zIndex: 3000, position: "fixed" },
|
|
7
7
|
};
|
|
8
8
|
export function getRootElement(id) {
|
|
9
9
|
const existing = document.getElementById(id);
|