openproject-primer_view_components 0.96.0 → 0.97.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/app/assets/javascripts/primer_view_components.js +5 -5
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list/item.rb +2 -1
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +9 -22
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.html.erb +1 -5
- data/app/components/primer/alpha/action_list.pcss +43 -81
- data/app/components/primer/alpha/action_list.rb +9 -7
- data/app/components/primer/alpha/action_menu/action_menu_element.js +84 -234
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +92 -273
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js +1 -1
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.ts +1 -1
- data/app/components/primer/alpha/action_menu/menu_loader.d.ts +21 -0
- data/app/components/primer/alpha/action_menu/menu_loader.js +221 -0
- data/app/components/primer/alpha/action_menu/menu_loader.ts +269 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/action_list_preview.rb +46 -1
- data/previews/primer/alpha/action_menu_preview/sub_menus.html.erb +1 -1
- data/previews/primer/alpha/action_menu_preview.rb +5 -2
- data/static/arguments.json +2 -2
- data/static/classes.json +3 -3
- data/static/classnames.cjs +1 -1
- data/static/classnames.js +1 -1
- data/static/info_arch.json +21 -2
- data/static/previews.json +13 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a19bc3aa3320f81668f9e1b78e8579d121dd157acd152f68dedcf3001b0c09be
|
|
4
|
+
data.tar.gz: 2396469d6f992958a5e6b341f9c788a2c2e7b64f245850a79be849bf0a54757f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fa8831fabb2d3464ed2de0defbfa7936bc677944f16f75658f3355d2f9f20fcecec1da115d8a0a3b90bdda7ef8fbe73e468bb188496af022b7cd22870d98f6d
|
|
7
|
+
data.tar.gz: d3b4782ce0dce328d84fadda6c4a55812d19c8ad6a4b8a62e43ce17095100c8d833001fda8e8d4a3049962a43efc8704db2dfeff14ade4481c5f5a097c927809
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 0.97.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#556](https://github.com/opf/primer_view_components/pull/556) [`764f4ec`](https://github.com/opf/primer_view_components/commit/764f4eccb7cdb168f300c1f367549f50022c752a) Thanks [@lwassermann](https://github.com/lwassermann)! - `Primer::Alpha::ActionList` with `show_dividers` draws item dividers between items instead of inserting section dividers – just like Primer React. The line starts at the label, so it does not divide leading visuals. Items of such a list carry an `ActionListItem--divided` class; hand-written ActionList markup has to set it per item to get the lines. Subclasses of `ActionList`, such as the lists of `ActionMenu`, `NavList` and `SelectPanel`, ignore `show_dividers`. Hidden items are not supported: remove items from the DOM instead of hiding them.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#558](https://github.com/opf/primer_view_components/pull/558) [`35e5dbd`](https://github.com/opf/primer_view_components/commit/35e5dbdbff34906035032099af0685e1df69a89c) Thanks [@myabc](https://github.com/myabc)! - `Primer::Alpha::ActionMenu` follows the published keyboard table: ArrowLeft and ArrowRight only close and open sub-menus instead of also moving between items, and PageUp and PageDown move focus to the first and last item.
|
|
12
|
+
|
|
13
|
+
- [#558](https://github.com/opf/primer_view_components/pull/558) [`6efc98f`](https://github.com/opf/primer_view_components/commit/6efc98f51625cec134ea8a62ede7385b2dca321b) Thanks [@myabc](https://github.com/myabc)! - Keep a disabled `Primer::Alpha::ActionMenu::SubMenuItem` closed on ArrowRight. Focus stays on the item, as it does for click, Enter and Space.
|
|
14
|
+
|
|
15
|
+
- [#551](https://github.com/opf/primer_view_components/pull/551) [`1168f8d`](https://github.com/opf/primer_view_components/commit/1168f8dfb2ea5d289e6461158cc804fe4299b841) Thanks [@myabc](https://github.com/myabc)! - Keep the tab stop on the first loaded item of a deferred `Primer::Alpha::ActionMenu` when it receives focus. Closing any `Primer::Alpha::ActionMenu` by clicking outside it no longer always returns focus to its button: focus that the click or other code moved elsewhere stays there, and returns to the button only when it would otherwise be lost.
|
|
16
|
+
|
|
3
17
|
## 0.96.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|