@leavepulse/ui 0.37.0 → 0.37.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.
@@ -1,5 +1,5 @@
1
1
  import { ref, computed } from "vue";
2
- const STEP = 10;
2
+ const STEP = 20;
3
3
  const stack = ref([]);
4
4
  let nextId = 0;
5
5
  function useModalLayer() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavepulse/ui",
3
- "version": "0.37.0",
3
+ "version": "0.37.1",
4
4
  "type": "module",
5
5
  "description": "LeavePulse token-driven Vue component kit.",
6
6
  "repository": {
@@ -26,8 +26,15 @@ import { computed, ref, type ComputedRef } from "vue"
26
26
  * is 100 and --z-modal 110, so a gap of 2 left the upper scrim under the lower
27
27
  * PANEL — it darkened that panel and could not blur it, a backdrop-filter
28
28
  * having nothing of it underneath to work on.
29
+ *
30
+ * Clearing it means strictly more than the 10 between the two rungs. A step of
31
+ * exactly 10 put the lower panel at 100, level with the upper scrim, and a tie
32
+ * in z-index is settled by DOM order. Siblings in one component happened to
33
+ * come out right, but a dialog mounted once at the app root — opened from a
34
+ * page dialog that teleported in later — lost the tie, and its scrim darkened
35
+ * the page behind the first dialog instead of the first dialog itself.
29
36
  */
30
- const STEP = 10
37
+ const STEP = 20
31
38
 
32
39
  /** Levels currently claimed, oldest first. */
33
40
  const stack = ref<number[]>([])