@jsenv/navi 0.29.48 → 0.29.49

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.
@@ -302,6 +302,32 @@ value the app passes it. Escape on that first pass goes back to empty, not to
302
302
  what was on screen when the popup opened. From the second open onwards it puts
303
303
  back what was really there.
304
304
 
305
+ ### A picker that holds nothing and shows nothing
306
+
307
+ The gestures that KEEP (a click outside, a close cross) let a picker send what
308
+ it is showing: a picker sitting on a `defaultValue` holds nothing, so closing on
309
+ it untouched IS the answer ("yes, 1h30"), and the action runs.
310
+
311
+ A picker used as a **menu of gestures** — no `value`, no `defaultValue`, no
312
+ signal, each row a command — shows nothing, so there is nothing to confirm.
313
+ Closing it without choosing runs no action; only an explicit choice sends.
314
+
315
+ ```jsx
316
+ // Clicking outside closes this and sends nothing.
317
+ <Picker id="pause" mode="popover" variant="icon" action={pauseAction}>
318
+ <List selectable command="--navi-send">
319
+ <List.Item selectable id="24h" value="24h">
320
+
321
+ </List.Item>
322
+ </List>
323
+ </Picker>
324
+ ```
325
+
326
+ Note this is about a picker holding NOTHING. Passing `value={undefined}` is not
327
+ that: a `value` prop is held whatever is in it, and navi puts it back after each
328
+ click — the rows then appear to do nothing. Drop the prop instead of passing it
329
+ empty.
330
+
305
331
  ### `escapeEffect="close"`, and why it is a last resort
306
332
 
307
333
  `escapeEffect="close"` makes Escape say what a click outside says. It exists,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/navi",
3
- "version": "0.29.48",
3
+ "version": "0.29.49",
4
4
  "type": "module",
5
5
  "description": "Library of components including navigation to create frontend applications",
6
6
  "repository": {