@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.
- package/package.json +1 -1
- package/react/README.md +5 -9
package/package.json
CHANGED
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.
|
|
41
|
-
|
|
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
|
|
48
|
-
|
|
49
|
-
|
|
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
|