@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.
- package/dist/dev/jsenv_navi.js +13 -13
- package/dist/dev/jsenv_navi.js.map +4 -4
- package/dist/jsenv_navi.js +13 -13
- package/dist/jsenv_navi.js.map +4 -4
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -78993,12 +78993,14 @@ const PickerCustomResolver = props => {
|
|
|
78993
78993
|
return renderResolver(PickerNative, props);
|
|
78994
78994
|
}
|
|
78995
78995
|
if (props.mode === "callout") {
|
|
78996
|
-
// A tooltip is an icon one presses, unless told otherwise
|
|
78997
|
-
//
|
|
78998
|
-
//
|
|
78999
|
-
//
|
|
79000
|
-
if (
|
|
78996
|
+
// A tooltip is an icon one presses, unless told otherwise; "picker" asks
|
|
78997
|
+
// for the field-like drawing back. "circle" is the icon variant with the
|
|
78998
|
+
// status icon drawn round — a word about the trigger, not a drawing of its
|
|
78999
|
+
// own.
|
|
79000
|
+
if (props.variant === undefined) {
|
|
79001
79001
|
props.variant = "icon";
|
|
79002
|
+
} else if (props.variant === "picker") {
|
|
79003
|
+
props.variant = undefined;
|
|
79002
79004
|
}
|
|
79003
79005
|
const circle = props.variant === "circle";
|
|
79004
79006
|
if (circle) {
|
|
@@ -80489,11 +80491,10 @@ const PickerConfirmResolver = props => {
|
|
|
80489
80491
|
openWhileReadOnly = false
|
|
80490
80492
|
} = props;
|
|
80491
80493
|
// A button, unless told otherwise: nothing is picked here, the popup is a
|
|
80492
|
-
// question, and a question is asked by pressing something. "picker"
|
|
80493
|
-
//
|
|
80494
|
-
//
|
|
80495
|
-
|
|
80496
|
-
const variant = Object.hasOwn(props, "variant") ? props.variant === "picker" ? undefined : props.variant : "button";
|
|
80494
|
+
// question, and a question is asked by pressing something. "picker" is how a
|
|
80495
|
+
// caller asks for the field-like drawing back — a word, not an undefined, so
|
|
80496
|
+
// a wrapper forwarding `variant={variant}` keeps the button.
|
|
80497
|
+
const variant = props.variant === undefined ? "button" : props.variant === "picker" ? undefined : props.variant;
|
|
80497
80498
|
|
|
80498
80499
|
// From the picker's own input, as its press would have been: the input is
|
|
80499
80500
|
// what carries `command`/`commandFor` in the DOM, and what a form sending
|
|
@@ -92884,9 +92885,8 @@ const PickerUI = /*#__PURE__*/Object.assign(PickerDefaultUI, {
|
|
|
92884
92885
|
* not sit in — an object on a map saying
|
|
92885
92886
|
* `triggerNaviCommand(pickerEl, "--navi-open", event, { anchor, value })` —
|
|
92886
92887
|
* therefore wants an element of its own to stretch into rather than the
|
|
92887
|
-
* nearest positioned ancestor it happens to find. `"picker"`
|
|
92888
|
-
*
|
|
92889
|
-
* drawing every other picker has.
|
|
92888
|
+
* nearest positioned ancestor it happens to find. `"picker"` asks a confirm
|
|
92889
|
+
* or callout picker for the field-like drawing every other picker has.
|
|
92890
92890
|
* @param {boolean} [cta] A call to action: filled with the accent, its border
|
|
92891
92891
|
* matching, as `cta` draws a Button — for a confirm picker that is a row's
|
|
92892
92892
|
* main action.
|