@jsenv/navi 0.29.302 → 0.29.304
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/dev/jsenv_navi.js +20 -3
- package/dist/dev/jsenv_navi.js.map +2 -2
- package/dist/jsenv_navi.js +20 -3
- package/dist/jsenv_navi.js.map +2 -2
- package/package.json +2 -2
package/dist/dev/jsenv_navi.js
CHANGED
|
@@ -59533,6 +59533,16 @@ const css$E = /* css */`
|
|
|
59533
59533
|
--backdrop-background: transparent;
|
|
59534
59534
|
--backdrop-filter: none;
|
|
59535
59535
|
}
|
|
59536
|
+
/* A wall-less top-layer dialog reaches the top layer through the Popover
|
|
59537
|
+
API, and the browser generates a ::backdrop for a popover exactly as it
|
|
59538
|
+
does for a modal. Nothing is meant to be between this dialog and the
|
|
59539
|
+
page, so that pseudo-element paints nothing — last, after the variant
|
|
59540
|
+
rules it must win over: they answer how a wall is painted, this one
|
|
59541
|
+
says there is no wall to paint. */
|
|
59542
|
+
&[data-backdrop="none"] {
|
|
59543
|
+
--backdrop-background: transparent;
|
|
59544
|
+
--backdrop-filter: none;
|
|
59545
|
+
}
|
|
59536
59546
|
&::backdrop {
|
|
59537
59547
|
background: var(--backdrop-background);
|
|
59538
59548
|
backdrop-filter: var(--backdrop-filter);
|
|
@@ -60913,11 +60923,18 @@ const useDialogProps = props => {
|
|
|
60913
60923
|
// (and harmless for a local dialog, whose real backdrop element gets it
|
|
60914
60924
|
// via backdropProps).
|
|
60915
60925
|
"data-backdrop-variant": backdropVariant,
|
|
60926
|
+
// That this dialog has no wall, said in the DOM: the browser generates a
|
|
60927
|
+
// ::backdrop for the popover a wall-less top-layer dialog is shown as,
|
|
60928
|
+
// and the CSS above keys off this to leave it unpainted. Also the only
|
|
60929
|
+
// way anything outside can read the absence — a test measuring pixels is
|
|
60930
|
+
// the alternative.
|
|
60931
|
+
"data-backdrop": backdrop ? undefined : "none",
|
|
60916
60932
|
// Read by the native ::backdrop, which inherits them from here (see this
|
|
60917
60933
|
// file's CSS) — a local dialog's own backdrop element gets them via
|
|
60918
|
-
// backdropProps above.
|
|
60919
|
-
|
|
60920
|
-
|
|
60934
|
+
// backdropProps above. Dropped without a wall: they say how one is
|
|
60935
|
+
// painted, and inline they would beat the rule that says there is none.
|
|
60936
|
+
"backdropColor": backdrop ? backdropColor : undefined,
|
|
60937
|
+
"backdropFilter": backdrop ? backdropFilter : undefined,
|
|
60921
60938
|
"styleCSSVars": DIALOG_STYLE_CSS_VARS,
|
|
60922
60939
|
...rest,
|
|
60923
60940
|
...autoFocusProps,
|