@jsenv/navi 0.29.349 → 0.29.350

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.
@@ -60720,8 +60720,15 @@ const css$E = /* css */`
60720
60720
  --backdrop-filter: var(--navi-backdrop-capture-backdrop-filter);
60721
60721
  }
60722
60722
  /* backdropVariant, after the rules it overrides: same specificity, so
60723
- order is what decides. The wall is still there either way only the
60724
- paint goes away. */
60723
+ order is what decides. The wall is still there whichever one is asked
60724
+ for — only its paint changes. */
60725
+ /* "lift": the wall a lifted popup brings, asked for on its own. A popup
60726
+ whose content is what must be looked at wants the page gone behind it
60727
+ whether or not it got there by moving. */
60728
+ &[data-backdrop-variant="lift"] {
60729
+ --backdrop-background: var(--navi-backdrop-lift-background);
60730
+ --backdrop-filter: var(--navi-backdrop-lift-backdrop-filter);
60731
+ }
60725
60732
  &[data-backdrop-variant="discrete"] {
60726
60733
  --backdrop-background: var(--navi-backdrop-discrete-background);
60727
60734
  --backdrop-filter: var(--navi-backdrop-discrete-backdrop-filter);
@@ -60919,6 +60926,10 @@ const css$E = /* css */`
60919
60926
  --backdrop-background: var(--navi-backdrop-capture-background);
60920
60927
  --backdrop-filter: var(--navi-backdrop-capture-backdrop-filter);
60921
60928
  }
60929
+ &[data-backdrop-variant="lift"] {
60930
+ --backdrop-background: var(--navi-backdrop-lift-background);
60931
+ --backdrop-filter: var(--navi-backdrop-lift-backdrop-filter);
60932
+ }
60922
60933
  &[data-backdrop-variant="discrete"] {
60923
60934
  --backdrop-background: var(--navi-backdrop-discrete-background);
60924
60935
  --backdrop-filter: var(--navi-backdrop-discrete-backdrop-filter);
@@ -61181,15 +61192,18 @@ const css$E = /* css */`
61181
61192
  * "Outside" is the dialog's own border box; a see-through dialog whose box is
61182
61193
  * bigger than what it paints marks the difference with
61183
61194
  * `data-navi-popup-outside` (see docs/popup_backdrop.md).
61184
- * @param {"auto"|"discrete"|"invisible"} [props.backdropVariant="auto"] - How
61185
- * visible the backdrop is, independently of what it does. `"auto"`: the
61186
- * paint `pointerInteractionOutsideEffect` implies (dimmed for
61195
+ * @param {"auto"|"lift"|"discrete"|"invisible"} [props.backdropVariant="auto"]
61196
+ * - How visible the backdrop is, independently of what it does. `"auto"`:
61197
+ * the paint `pointerInteractionOutsideEffect` implies (dimmed for
61187
61198
  * `"close"`/`"cancel"`, blurred glass for `"capture"`), or the opaque wall
61188
- * `animation="lifting"` asks for. `"discrete"`: a
61189
- * barely-there dim. `"invisible"`: fully transparent a wall that is not
61190
- * seen, still catching every press. This only changes how much the dialog
61191
- * insists visually, never what an outside click does; whether there is a
61192
- * wall to paint at all is `backdrop` above.
61199
+ * `animation="lifting"` asks for. `"lift"`: that same opaque, blurred wall
61200
+ * (`--navi-backdrop-lift-*`) asked for on its own, for a dialog whose
61201
+ * content is the thing to look at a picture, a plan, a card opened full
61202
+ * without the morph. `"discrete"`: a barely-there dim. `"invisible"`:
61203
+ * fully transparent a wall that is not seen, still catching every press.
61204
+ * This only changes how much the dialog insists visually, never what an
61205
+ * outside click does; whether there is a wall to paint at all is `backdrop`
61206
+ * above.
61193
61207
  * @param {string} [props.backdropColor] - The wash painted over what is
61194
61208
  * behind, for this popup alone: any CSS color (`"rgb(6 10 20 / 88%)"`).
61195
61209
  * Wins over `backdropVariant` and over the theme tokens
@@ -61573,9 +61587,10 @@ const useDialogProps = props => {
61573
61587
  // the dialog goes to the same top layer through the Popover API instead.
61574
61588
  backdrop = true,
61575
61589
  // How loudly the backdrop says it is there — independent of what it
61576
- // *does* (that's pointerInteractionOutsideEffect above). "invisible" is a
61577
- // wall that is not seen, not the absence of one: it only stops the dim
61578
- // from being drawn.
61590
+ // *does* (that's pointerInteractionOutsideEffect above). "lift" is the
61591
+ // opaque wall at one end, "invisible" a wall that is not seen at the
61592
+ // other — not the absence of one, it only stops the dim from being
61593
+ // drawn.
61579
61594
  backdropVariant = "auto",
61580
61595
  // The paint itself, when the tokens behind backdropVariant are not what
61581
61596
  // this one dialog wants. Named/forwarded rather than left in ...rest:
@@ -62864,6 +62879,13 @@ const css$D = /* css */`
62864
62879
  them to win. Only the paint changes: the element is still rendered
62865
62880
  and still pointer-events: auto, so an outside click keeps doing
62866
62881
  exactly what pointerInteractionOutsideEffect says. */
62882
+ /* "lift": the wall a lifted popup brings (see navi_css_vars.js), asked
62883
+ for on its own — a popover whose own content is what must be looked at
62884
+ wants the page gone behind it, without moving out of anything. */
62885
+ &[data-backdrop-variant="lift"] {
62886
+ --backdrop-background: var(--navi-backdrop-lift-background);
62887
+ --backdrop-filter: var(--navi-backdrop-lift-backdrop-filter);
62888
+ }
62867
62889
  &[data-backdrop-variant="discrete"] {
62868
62890
  --backdrop-background: var(--navi-backdrop-discrete-background);
62869
62891
  --backdrop-filter: var(--navi-backdrop-discrete-backdrop-filter);
@@ -62955,12 +62977,15 @@ const css$D = /* css */`
62955
62977
  * own border box; a see-through popover whose box is bigger than what it
62956
62978
  * paints marks the difference with `data-navi-popup-outside` (see
62957
62979
  * docs/popup_backdrop.md).
62958
- * @param {"auto"|"discrete"|"invisible"} [props.backdropVariant="auto"] - How
62959
- * visible the backdrop is, independently of what it does. `"auto"`: the
62960
- * paint `pointerInteractionOutsideEffect` implies (dimmed for
62961
- * `"close"`/`"cancel"`, blurred glass for `"capture"`). `"discrete"`: a
62962
- * barely-there dim. `"invisible"`: fully transparent — a wall that is not
62963
- * seen, still rendered and still catching every outside click. This only
62980
+ * @param {"auto"|"lift"|"discrete"|"invisible"} [props.backdropVariant="auto"]
62981
+ * - How visible the backdrop is, independently of what it does. `"auto"`:
62982
+ * the paint `pointerInteractionOutsideEffect` implies (dimmed for
62983
+ * `"close"`/`"cancel"`, blurred glass for `"capture"`). `"lift"`: the
62984
+ * opaque, blurred wall (`--navi-backdrop-lift-*`) a lifted popup brings,
62985
+ * for content that is the thing to look at rather than a surface shown over
62986
+ * a page still being read. `"discrete"`: a barely-there dim. `"invisible"`:
62987
+ * fully transparent — a wall that is not seen, still rendered and still
62988
+ * catching every outside click. This only
62964
62989
  * changes how much the popover insists on being the thing you deal with;
62965
62990
  * whether there is a wall to paint at all is `backdrop` above. Ignored when
62966
62991
  * there is none (`pointerInteractionOutsideEffect="none"`, or
@@ -63297,9 +63322,10 @@ const usePopoverProps = props => {
63297
63322
  backdrop = true,
63298
63323
  // How loudly the backdrop says it is there — independent of what it
63299
63324
  // *does* (that's pointerInteractionOutsideEffect above). "auto" keeps
63300
- // the paint the effect implies; "discrete"/"invisible" tone it down or
63301
- // stop drawing it, without giving up the outside click a wall that is
63302
- // not seen is still a wall (that is `backdrop` above).
63325
+ // the paint the effect implies; "lift" asks for the opaque wall, and
63326
+ // "discrete"/"invisible" tone it down or stop drawing itnone of them
63327
+ // gives up the outside click, a wall that is not seen is still a wall
63328
+ // (that is `backdrop` above).
63303
63329
  backdropVariant = "auto",
63304
63330
  // The paint itself, when the tokens behind backdropVariant are not what
63305
63331
  // this one popover wants. Named/forwarded rather than left in ...rest:
@@ -64306,7 +64332,7 @@ const css$C = /* css */`@layer navi {
64306
64332
  * resolution picks says nothing about whether the page behind stays live.
64307
64333
  * It is also what makes a sheet docked to an edge of a phone's screen
64308
64334
  * (`dockedOnSmallTouchScreen`) non-modal.
64309
- * @param {"auto"|"discrete"|"invisible"} [props.backdropVariant] - Forwarded
64335
+ * @param {"auto"|"lift"|"discrete"|"invisible"} [props.backdropVariant] - Forwarded
64310
64336
  * as-is to whichever component renders (both understand it identically):
64311
64337
  * how visible the backdrop is, independently of what an outside click
64312
64338
  * does — a wall that is not seen is still a wall (that is `backdrop`
@@ -74799,7 +74825,7 @@ const PickerFirstResolver = props => {
74799
74825
  * escapeEffect?: "cancel" | "close",
74800
74826
  * pointerInteractionOutsideEffect?: "close" | "cancel" | "capture",
74801
74827
  * backdrop?: boolean,
74802
- * backdropVariant?: "auto" | "discrete" | "invisible",
74828
+ * backdropVariant?: "auto" | "lift" | "discrete" | "invisible",
74803
74829
  * backdropColor?: string,
74804
74830
  * backdropFilter?: string,
74805
74831
  * ref?: import("ignore:preact").RefObject<HTMLElement>,
@@ -75156,12 +75182,14 @@ const PickerFirstResolver = props => {
75156
75182
  * dialog with no wall is shown through the Popover API rather than
75157
75183
  * `showModal()`, so a picker docked as a bottom sheet on a phone still
75158
75184
  * leaves the plan behind it live.
75159
- * @param {"auto"|"discrete"|"invisible"} [backdropVariant="auto"] How visible the
75160
- * popup's backdrop is, independently of what a click outside does: `"auto"`
75161
- * is the paint `pointerInteractionOutsideEffect` implies, `"discrete"` a
75162
- * barely-there dim, `"invisible"` fully transparent a wall that is not seen
75163
- * is still a wall, which is what `backdrop` above answers. For a picker that
75164
- * closes on an outside click without wanting to dim the page for it.
75185
+ * @param {"auto"|"lift"|"discrete"|"invisible"} [backdropVariant="auto"] How
75186
+ * visible the popup's backdrop is, independently of what a click outside
75187
+ * does: `"auto"` is the paint `pointerInteractionOutsideEffect` implies,
75188
+ * `"lift"` the opaque blurred wall `animation="lifting"` brings, asked for
75189
+ * without the movement, `"discrete"` a barely-there dim, `"invisible"` fully
75190
+ * transparent a wall that is not seen is still a wall, which is what
75191
+ * `backdrop` above answers. For a picker that closes on an outside click
75192
+ * without wanting to dim the page for it.
75165
75193
  * @param {string} [backdropColor] The wash the popup paints over what is
75166
75194
  * behind, for this picker alone. See Dialog's own doc.
75167
75195
  * @param {string} [backdropFilter] What that wash does to the picture
@@ -77767,7 +77795,7 @@ const css$n = /* css */`.navi_split_button {
77767
77795
  * dockedOnSmallTouchScreen?: boolean | "top" | "bottom",
77768
77796
  * marginWithContainer?: number | string,
77769
77797
  * backdrop?: boolean,
77770
- * backdropVariant?: "auto" | "discrete" | "invisible",
77798
+ * backdropVariant?: "auto" | "lift" | "discrete" | "invisible",
77771
77799
  * backdropColor?: string,
77772
77800
  * backdropFilter?: string,
77773
77801
  * pointerInteractionOutsideEffect?: "close" | "cancel" | "capture",