@milktop/react-ui 0.3.27 → 0.3.28

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.
@@ -4,11 +4,13 @@
4
4
  /* The positioner carries the z-index itself. Zag sets it inline as
5
5
  var(--z-index) but doesn't always fill in the variable, so set both. */
6
6
  [data-scope=menu][data-part=positioner] { z-index: 50; --z-index: 50; }
7
- /* Opened from a dialog or sheet (100): above it, below tooltips (110). Zag copies the content's
8
- z-index inline when it opens, so the content carries it too. */
9
- [data-scope=menu]:is([data-part=positioner], [data-part=content])[data-layered] { z-index: 105; --z-index: 105; }
7
+ /* Opened from a dialog or sheet (100): above it, below tooltips (110). */
8
+ [data-scope=menu][data-part=positioner][data-layered] { z-index: 105; --z-index: 105; }
9
+ /* Zag copies the content's z-index onto the positioner when it opens. It numbers each open layer
10
+ (--layer-index), so one opened from another sits above it, whichever portal came first in the page. */
11
+ [data-scope=menu][data-part=content][data-layered] { z-index: calc(105 + var(--layer-index, 0)); }
10
12
  [data-scope=menu][data-part=content] {
11
- z-index: 50; font-weight: 400; min-width: 12rem; padding: 0.5rem 0.25rem; box-sizing: border-box; text-align: left; outline: none;
13
+ z-index: calc(50 + var(--layer-index, 0)); font-weight: 400; min-width: 12rem; padding: 0.5rem 0.25rem; box-sizing: border-box; text-align: left; outline: none;
12
14
  background: var(--ui-surface); color: var(--ui-text); font-family: var(--ui-font); font-size: 14px;
13
15
  border: 1px solid var(--ui-border); border-radius: calc(var(--ui-radius) + 2px); box-shadow: var(--ui-shadow);
14
16
  transform-origin: var(--transform-origin);
@@ -2,10 +2,12 @@
2
2
  /* The positioner carries the z-index itself. Zag sets it inline as
3
3
  var(--z-index) but doesn't always fill in the variable, so set both. */
4
4
  [data-scope=popover][data-part=positioner] { z-index: 50; --z-index: 50; }
5
- /* Opened from a dialog or sheet (100): above it, below tooltips (110). Zag copies the content's
6
- z-index inline when it opens, so the content carries it too. */
7
- [data-scope=popover]:is([data-part=positioner], [data-part=content])[data-layered] { z-index: 105; --z-index: 105; }
8
- [data-scope=popover][data-part=content] { z-index: 50; position: relative; width: 18rem; max-width: calc(100vw - 32px);
5
+ /* Opened from a dialog or sheet (100): above it, below tooltips (110). */
6
+ [data-scope=popover][data-part=positioner][data-layered] { z-index: 105; --z-index: 105; }
7
+ /* Zag copies the content's z-index onto the positioner when it opens. It numbers each open layer
8
+ (--layer-index), so one opened from another sits above it, whichever portal came first in the page. */
9
+ [data-scope=popover][data-part=content][data-layered] { z-index: calc(105 + var(--layer-index, 0)); }
10
+ [data-scope=popover][data-part=content] { z-index: calc(50 + var(--layer-index, 0)); position: relative; width: 18rem; max-width: calc(100vw - 32px);
9
11
  padding: 1rem; box-sizing: border-box; outline: none; font-weight: 400;
10
12
  background: var(--ui-surface); color: var(--ui-text); font-family: var(--ui-font); font-size: 14px;
11
13
  border: 1px solid var(--ui-border); border-radius: calc(var(--ui-radius) + 2px); box-shadow: var(--ui-shadow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milktop/react-ui",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "description": "React components on Ark UI (Zag state machines), with imba-ui's API and design",
5
5
  "license": "MIT",
6
6
  "author": "André Goldstein",