@rcarls/rc-adaptive-menu 0.5.0 → 0.6.0
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/CHANGELOG.md +37 -0
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @rcarls/rc-adaptive-menu
|
|
2
|
+
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7382c71: Add a priority-aware action toolbar that moves original controls into an
|
|
8
|
+
overflow menu. Which actions are promoted is a purely declarative computation
|
|
9
|
+
from `max-shown` and each action's `data-priority`/authored `slot`, with no
|
|
10
|
+
runtime measurement of the toolbar's or its children's rendered size: a
|
|
11
|
+
consumer whose promoted count needs to react to available space owns that
|
|
12
|
+
decision and writes the resulting `max-shown` value down. Include controlled
|
|
13
|
+
and uncontrolled open state, keyboard navigation, light dismissal, and a
|
|
14
|
+
non-Popover fallback.
|
|
15
|
+
|
|
16
|
+
Fix `--rc-adaptive-menu-touch-target-overlap-inline-start`/`-end`: the host's
|
|
17
|
+
own `max-inline-size: 100%` self-referenced a shrink-to-fit ancestor's
|
|
18
|
+
already-margin-reduced auto size (an app bar's own trailing group, for
|
|
19
|
+
example), quietly clamping the host back down and canceling the overlap out
|
|
20
|
+
from under it. The cap now grows by the overlap amount so it only ever bounds
|
|
21
|
+
the host's real content.
|
|
22
|
+
|
|
23
|
+
- 7382c71: Add `--rc-adaptive-menu-touch-target-overlap-inline-start` and
|
|
24
|
+
`-inline-end`, zero by default. A theme or consumer sets one to let the
|
|
25
|
+
overflow trigger's accessible touch-target inflation on that side overlap
|
|
26
|
+
into whatever sits just outside the host, such as a toolbar's own edge
|
|
27
|
+
padding, instead of also reserving layout space there (the overflow
|
|
28
|
+
trigger is conventionally the trailing-most control in a toolbar, so
|
|
29
|
+
`-inline-end` is the one commonly set). Mirrors `@rcarls/rc-button`'s and
|
|
30
|
+
`@rcarls/rc-menu-button`'s own touch-target overlap tokens.
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [6683eb9]
|
|
35
|
+
- Updated dependencies [ee7ba6c]
|
|
36
|
+
- Updated dependencies [30eb232]
|
|
37
|
+
- @rcarls/rc-common@0.6.0
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.6.0",
|
|
7
7
|
"description": "Priority-aware action toolbar that preserves authored controls while moving lower-priority actions into an overflow menu.",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test:browser:firefox": "vitest --run --project=firefox"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@rcarls/rc-common": "0.
|
|
48
|
+
"@rcarls/rc-common": "0.6.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@custom-elements-manifest/analyzer": "0.11.0",
|