@muraldevkit/ui-toolkit 2.58.0 → 2.59.0-dev.1

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.
@@ -6,10 +6,6 @@ $mrl-tooltip-arrow-vertical-center: calc(var(--mrl-tooltip-arrow-size) * -1 / 2
6
6
  $mrl-tooltip-arrow-size: math.hypot(8px, 5px);
7
7
  @use '../tooltip.mixins.scss' as *;
8
8
  @use './MrlTooltipContent.variables.scss';
9
- .mrl-tooltip-portal {
10
- position: absolute;
11
- z-index: 10000;
12
- }
13
9
  .mrl-tooltip-content {
14
10
  background: var(--mrl-tooltip-background-color);
15
11
  border-radius: var(--mrl-tooltip-border-radius);
@@ -0,0 +1,40 @@
1
+ /**
2
+ * References to the different portal layers
3
+ */
4
+ export declare const PORTAL_LAYERS: {
5
+ readonly ROOT: {
6
+ readonly name: "mrl-root-portal";
7
+ readonly zIndex: 50000;
8
+ };
9
+ readonly MENU: {
10
+ readonly name: "mrl-menu-portal";
11
+ readonly zIndex: 50001;
12
+ };
13
+ readonly POPOVER: {
14
+ readonly name: "mrl-popover-portal";
15
+ readonly zIndex: 50002;
16
+ };
17
+ readonly CALLOUT: {
18
+ readonly name: "mrl-callout-portal";
19
+ readonly zIndex: 50003;
20
+ };
21
+ readonly MODAL: {
22
+ readonly name: "mrl-modal";
23
+ readonly zIndex: 50004;
24
+ };
25
+ readonly SELECT: {
26
+ readonly name: "mrl-select-portal";
27
+ readonly zIndex: 50005;
28
+ };
29
+ readonly TOOLTIP: {
30
+ readonly name: "mrl-tooltip-portal";
31
+ readonly zIndex: 50006;
32
+ };
33
+ };
34
+ /**
35
+ * Get the current portal layer based on the provided element
36
+ *
37
+ * @param element - the element to check for the closest portal layer
38
+ * @returns the portal layer id
39
+ */
40
+ export declare const getCurrentPortalLayer: (element: HTMLElement) => string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muraldevkit/ui-toolkit",
3
- "version": "2.58.0",
3
+ "version": "2.59.0-dev.1",
4
4
  "description": "Mural's UI Toolkit",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,11 +0,0 @@
1
- /**
2
- * References to the different portal layers
3
- */
4
- export declare const PORTAL_LAYERS: {
5
- readonly ROOT: "mrl-root-portal";
6
- readonly MENU: "mrl-menu-portal";
7
- readonly POPOVER: "mrl-popover-portal";
8
- readonly CALLOUT: "mrl-callout-portal";
9
- readonly MODAL: "mrl-modal";
10
- readonly TOOLTIP: "mrl-tooltip-portal";
11
- };