@jsenv/navi 0.29.495 → 0.29.496

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.
@@ -80767,12 +80767,14 @@ const PickerCustomResolver = props => {
80767
80767
  return renderResolver(PickerNative, props);
80768
80768
  }
80769
80769
  if (props.mode === "callout") {
80770
- // A tooltip is an icon one presses, unless told otherwise. Own-property
80771
- // rather than undefined: an explicit variant={undefined} asks for the
80772
- // field-like drawing back. "circle" is the icon variant with the status
80773
- // icon drawn round — a word about the trigger, not a drawing of its own.
80774
- if (!Object.hasOwn(props, "variant")) {
80770
+ // A tooltip is an icon one presses, unless told otherwise; "picker" asks
80771
+ // for the field-like drawing back. "circle" is the icon variant with the
80772
+ // status icon drawn round — a word about the trigger, not a drawing of its
80773
+ // own.
80774
+ if (props.variant === undefined) {
80775
80775
  props.variant = "icon";
80776
+ } else if (props.variant === "picker") {
80777
+ props.variant = undefined;
80776
80778
  }
80777
80779
  const circle = props.variant === "circle";
80778
80780
  if (circle) {
@@ -82277,11 +82279,10 @@ const PickerConfirmResolver = props => {
82277
82279
  openWhileReadOnly = false
82278
82280
  } = props;
82279
82281
  // A button, unless told otherwise: nothing is picked here, the popup is a
82280
- // question, and a question is asked by pressing something. "picker" — or an
82281
- // explicit `variant={undefined}` — is how a caller asks for the field-like
82282
- // drawing back; a destructuring default could not tell that from nothing
82283
- // being said.
82284
- const variant = Object.hasOwn(props, "variant") ? props.variant === "picker" ? undefined : props.variant : "button";
82282
+ // question, and a question is asked by pressing something. "picker" is how a
82283
+ // caller asks for the field-like drawing back — a word, not an undefined, so
82284
+ // a wrapper forwarding `variant={variant}` keeps the button.
82285
+ const variant = props.variant === undefined ? "button" : props.variant === "picker" ? undefined : props.variant;
82285
82286
 
82286
82287
  // From the picker's own input, as its press would have been: the input is
82287
82288
  // what carries `command`/`commandFor` in the DOM, and what a form sending
@@ -95001,9 +95002,8 @@ const PickerUI = /*#__PURE__*/Object.assign(PickerDefaultUI, {
95001
95002
  * not sit in — an object on a map saying
95002
95003
  * `triggerNaviCommand(pickerEl, "--navi-open", event, { anchor, value })` —
95003
95004
  * therefore wants an element of its own to stretch into rather than the
95004
- * nearest positioned ancestor it happens to find. `"picker"` (or an explicit
95005
- * `variant={undefined}`) asks a confirm or callout picker for the field-like
95006
- * drawing every other picker has.
95005
+ * nearest positioned ancestor it happens to find. `"picker"` asks a confirm
95006
+ * or callout picker for the field-like drawing every other picker has.
95007
95007
  * @param {boolean} [cta] A call to action: filled with the accent, its border
95008
95008
  * matching, as `cta` draws a Button — for a confirm picker that is a row's
95009
95009
  * main action.