@jsenv/navi 0.29.124 → 0.29.126

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.
@@ -54501,6 +54501,27 @@ const sizeOf = (element, axis) => {
54501
54501
  const translateOf = (axis, distance) =>
54502
54502
  axis === "x" ? `${distance}px 0px` : `0px ${distance}px`;
54503
54503
 
54504
+ const PopupClose = ({
54505
+ label,
54506
+ ...rest
54507
+ }) => {
54508
+ return jsx(Button, {
54509
+ command: "--navi-close",
54510
+ icon: true,
54511
+ variant: "discrete"
54512
+ // The cross is drawn at the control size, which is a few millimetres
54513
+ // wide; the padding is what makes it a target a thumb can hit.
54514
+ ,
54515
+ paddingX: "s",
54516
+ paddingY: "s",
54517
+ "aria-label": label === undefined ? naviI18n("button.close") : label,
54518
+ ...rest,
54519
+ children: jsx(Icon, {
54520
+ children: jsx(CloseSvg, {})
54521
+ })
54522
+ });
54523
+ };
54524
+
54504
54525
  installImportMetaCssBuild(import.meta);/**
54505
54526
  * A dialog is a surface, not a control: it holds no value, has no action and
54506
54527
  * aggregates nothing. Fields and a submit go in a `<Form>` inside it, exactly
@@ -54735,6 +54756,12 @@ const css$E = /* css */`
54735
54756
  var(--container-position-remaining-width, var(--dialog-maxmax-width)),
54736
54757
  var(--dialog-maxmax-width)
54737
54758
  );
54759
+ /* The sheet rests on the screen's bottom edge, which on a phone is the
54760
+ home indicator and, since iOS 26, Safari's own floating bar — a band
54761
+ the browser does not paint fixed content into. The surface still
54762
+ reaches the edge (the sheet comes out from behind the bar); what it
54763
+ holds stops above it. */
54764
+ padding-bottom: env(safe-area-inset-bottom, 0px);
54738
54765
  }
54739
54766
  /* The clamped max, not --dialog-maxmax-*: that one is the viewport minus
54740
54767
  the spacing, which is only the real ceiling for layer="top". A local
@@ -56096,6 +56123,7 @@ const DIALOG_STYLE_CSS_VARS = {
56096
56123
  minHeight: "--dialog-min-height",
56097
56124
  maxHeight: "--dialog-max-height"
56098
56125
  };
56126
+ Dialog.Close = PopupClose;
56099
56127
 
56100
56128
  installImportMetaCssBuild(import.meta);/**
56101
56129
  * A popover is a surface, not a control: it holds no value, has no action and
@@ -57622,6 +57650,8 @@ const resolvePositionAreaAndAnimationKind = ({
57622
57650
  // popup_shared.js — same helpers Dialog's own custom renderer needs, no
57623
57651
  // Popover-specific knowledge in either.
57624
57652
 
57653
+ Popover.Close = PopupClose;
57654
+
57625
57655
  installImportMetaCssBuild(import.meta);/**
57626
57656
  * A lightweight version of picker_custom.jsx's own Popover/Dialog switch —
57627
57657
  * no picker concepts (value/action tracking, keyboard letter/arrow-to-open
@@ -57830,6 +57860,7 @@ const Popup = props => {
57830
57860
  children: childrenWithMode
57831
57861
  });
57832
57862
  };
57863
+ Popup.Close = PopupClose;
57833
57864
 
57834
57865
  installImportMetaCssBuild(import.meta);const css$B = /* css */`
57835
57866
  .navi_picker {