@apliteni/apliteni-ui 0.41.3 → 0.41.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/react/README.md +5 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.41.3",
3
+ "version": "0.41.4",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
package/react/README.md CHANGED
@@ -37,20 +37,16 @@ Its glyph is 13px and its icon-only target is 24×24px; labelled xs buttons use
37
37
 
38
38
  `CommandPalette` renders the kit's `commandPalette()` markup, class for class, and imports the
39
39
  kit's ranking rather than repeating it — so a palette a server rendered and the same palette
40
- after a keystroke put the same row first. Three differences from the vanilla one. Two are
41
- because a React host already owns the state the wiring would: it has no Cmd+K binding, since
40
+ after a keystroke put the same row first. Two differences from the vanilla one follow from
41
+ the React host owning state: it has no Cmd+K binding, since
42
42
  `open` is the host's prop to set from whatever key it wants; and a destructive row names an
43
43
  `onConfirm` callback rather than the id of a confirm dialog, which is refused the same way — a
44
44
  `danger` row with neither renders disabled. `rank={false}` hands the query back through
45
45
  `onQueryChange` for a palette a server feeds.
46
46
 
47
- The third is not a design decision and is going: **one Escape closes a `Modal` and the palette
48
- under it.** The React palette and the React `Modal` each register their own listener on the
49
- document, and `inert` does not stop a document listener, so the question and the surface it was
50
- asked about close together. The vanilla pair does not do this — every kit overlay is on one
51
- stack there, and Escape closes the top one only. The React half joins that shared dialog stack
52
- when this branch is rebased onto the drawer branch, which is where `dialog.ts` lands; until then,
53
- open a `Modal` from a palette row knowing both will close.
47
+ The React palette, Modal and Drawer share one dialog stack. Escape closes only the top
48
+ one, so dismissing a confirmation leaves the palette open. Vanilla overlays use a separate
49
+ stack; do not open a React dialog and a vanilla overlay over each other on the same page.
54
50
 
55
51
  `Pagination` renders the kit's `pagination()` markup, class for class, so its styles come from
56
52
  `@apliteni/apliteni-ui/css` rather than from this bundle. One deliberate difference: it takes no