@segmentify/ui 0.0.53 → 0.0.54
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the computed z-index of the nearest overlay layer (e.g. Dialog), or
|
|
3
|
+
* `undefined` when rendered outside one. Portaled popup components use this to
|
|
4
|
+
* set their own z-index one level higher so they appear above the overlay.
|
|
5
|
+
*
|
|
6
|
+
* @see {@link PopupLayerContext} for the full rationale.
|
|
7
|
+
*/
|
|
8
|
+
export declare const usePopupLayer: () => {
|
|
9
|
+
layer: HTMLDivElement | undefined;
|
|
10
|
+
};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Provides the nearest overlay layer (e.g. Dialog) to
|
|
3
|
+
* descendant portaled popups (Combobox, Select, etc.) so they can render above
|
|
4
|
+
* the overlay rather than behind it.
|
|
5
|
+
*
|
|
6
|
+
* DialogContent reads its own computed z-index and provides it through this
|
|
7
|
+
* context. Portaled popup components consume it and
|
|
8
|
+
* apply `zIndex: value + 1` as an inline style, guaranteeing they stack on top
|
|
9
|
+
* of whatever overlay contains them — regardless of the specific z-index value.
|
|
10
|
+
*
|
|
11
|
+
* When no overlay layer is present the context is `undefined` and consumers
|
|
12
|
+
* fall back to their default class-based z-index (`z-50`).
|
|
13
|
+
*/
|
|
14
|
+
export declare const PopupLayerContext: import("react").Context<HTMLDivElement | undefined>;
|