openproject-primer_view_components 0.95.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 +32 -0
- data/app/assets/javascripts/primer_view_components.js +11 -1
- 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_bar.css +1 -1
- data/app/components/primer/alpha/action_bar.css.map +1 -1
- data/app/components/primer/alpha/action_list/item.rb +7 -2
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +16 -27
- 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 +55 -81
- data/app/components/primer/alpha/action_list.rb +9 -7
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +6 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.js +239 -84
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +261 -81
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.d.ts +4 -1
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.js +38 -14
- data/app/components/primer/alpha/action_menu/action_menu_focus_zone_stack.ts +42 -13
- data/app/components/primer/alpha/action_menu/menu.html.erb +27 -19
- data/app/components/primer/alpha/action_menu/menu.rb +7 -0
- 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/app/components/primer/alpha/action_menu/primary_menu.rb +15 -0
- data/app/components/primer/alpha/action_menu.rb +55 -0
- data/app/components/primer/alpha/auto_complete.css +1 -1
- data/app/components/primer/alpha/auto_complete.css.map +1 -1
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/button_marketing.css +1 -1
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dropdown/menu.rb +1 -1
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.json +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/layout.css +1 -1
- data/app/components/primer/alpha/layout.css.json +3 -3
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/menu.css +1 -1
- data/app/components/primer/alpha/menu.css.json +3 -3
- data/app/components/primer/alpha/menu.css.map +1 -1
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.json +1 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/select_panel.css +1 -1
- data/app/components/primer/alpha/select_panel.css.map +1 -1
- data/app/components/primer/alpha/skeleton_box.css +1 -1
- data/app/components/primer/alpha/skeleton_box.css.map +1 -1
- data/app/components/primer/alpha/stack.css +1 -1
- data/app/components/primer/alpha/stack.css.map +1 -1
- data/app/components/primer/alpha/stack_item.css +1 -1
- data/app/components/primer/alpha/stack_item.css.map +1 -1
- data/app/components/primer/alpha/tab_nav.css +1 -1
- data/app/components/primer/alpha/tab_nav.css.map +1 -1
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/toggle_switch.css +1 -1
- data/app/components/primer/alpha/toggle_switch.css.map +1 -1
- data/app/components/primer/alpha/tree_view.css +1 -1
- data/app/components/primer/alpha/tree_view.css.json +3 -3
- data/app/components/primer/alpha/tree_view.css.map +1 -1
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/beta/border_box.css +1 -1
- data/app/components/primer/beta/border_box.css.json +5 -5
- data/app/components/primer/beta/border_box.css.map +1 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +97 -0
- data/app/components/primer/beta/button.rb +15 -3
- data/app/components/primer/beta/counter.css +1 -1
- data/app/components/primer/beta/counter.css.map +1 -1
- data/app/components/primer/beta/flash.css +1 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/beta/link.css +1 -1
- data/app/components/primer/beta/link.css.json +1 -1
- data/app/components/primer/beta/link.css.map +1 -1
- data/app/components/primer/beta/popover.css +1 -1
- data/app/components/primer/beta/popover.css.map +1 -1
- data/app/components/primer/beta/progress_bar.css +1 -1
- data/app/components/primer/beta/progress_bar.css.map +1 -1
- data/app/components/primer/beta/relative_time.rb +7 -1
- data/app/components/primer/beta/state.css +1 -1
- data/app/components/primer/beta/state.css.json +2 -2
- data/app/components/primer/beta/state.css.map +1 -1
- data/app/components/primer/beta/timeline_item.css +1 -1
- data/app/components/primer/beta/timeline_item.css.map +1 -1
- data/app/components/primer/open_project/border_grid.css +1 -1
- data/app/components/primer/open_project/border_grid.css.map +1 -1
- data/app/components/primer/open_project/color_field.css +1 -1
- data/app/components/primer/open_project/color_field.css.map +1 -1
- data/app/components/primer/open_project/inline_message.css +1 -1
- data/app/components/primer/open_project/inline_message.css.map +1 -1
- data/app/components/primer/open_project/input_group.css +1 -1
- data/app/components/primer/open_project/input_group.css.map +1 -1
- data/app/components/primer/open_project/keybinding_hint/chords.d.ts +5 -0
- data/app/components/primer/open_project/keybinding_hint/chords.js +29 -0
- data/app/components/primer/open_project/keybinding_hint/chords.ts +38 -0
- data/app/components/primer/open_project/keybinding_hint/key_names.d.ts +16 -0
- data/app/components/primer/open_project/keybinding_hint/key_names.js +107 -0
- data/app/components/primer/open_project/keybinding_hint/key_names.ts +116 -0
- data/app/components/primer/open_project/keybinding_hint/localized_names.d.ts +22 -0
- data/app/components/primer/open_project/keybinding_hint/localized_names.js +47 -0
- data/app/components/primer/open_project/keybinding_hint/localized_names.ts +71 -0
- data/app/components/primer/open_project/keybinding_hint/names.rb +92 -0
- data/app/components/primer/open_project/keybinding_hint/names_from_scope.d.ts +21 -0
- data/app/components/primer/open_project/keybinding_hint/names_from_scope.js +81 -0
- data/app/components/primer/open_project/keybinding_hint/names_from_scope.ts +96 -0
- data/app/components/primer/open_project/keybinding_hint/platform.d.ts +10 -0
- data/app/components/primer/open_project/keybinding_hint/platform.js +24 -0
- data/app/components/primer/open_project/keybinding_hint/platform.ts +34 -0
- data/app/components/primer/open_project/keybinding_hint/platform_override.d.ts +2 -0
- data/app/components/primer/open_project/keybinding_hint/platform_override.js +4 -0
- data/app/components/primer/open_project/keybinding_hint/platform_override.ts +7 -0
- data/app/components/primer/open_project/keybinding_hint.css +1 -0
- data/app/components/primer/open_project/keybinding_hint.css.json +10 -0
- data/app/components/primer/open_project/keybinding_hint.css.map +1 -0
- data/app/components/primer/open_project/keybinding_hint.html.erb +4 -0
- data/app/components/primer/open_project/keybinding_hint.pcss +65 -0
- data/app/components/primer/open_project/keybinding_hint.rb +112 -0
- data/app/components/primer/open_project/keybinding_hint_element.d.ts +31 -0
- data/app/components/primer/open_project/keybinding_hint_element.js +183 -0
- data/app/components/primer/open_project/keybinding_hint_element.ts +152 -0
- data/app/components/primer/open_project/page_header.css +1 -1
- data/app/components/primer/open_project/page_header.css.json +2 -2
- data/app/components/primer/open_project/page_header.css.map +1 -1
- data/app/components/primer/open_project/pagination.css +1 -1
- data/app/components/primer/open_project/pagination.css.json +1 -1
- data/app/components/primer/open_project/pagination.css.map +1 -1
- data/app/components/primer/open_project/sub_header.css +1 -1
- data/app/components/primer/open_project/sub_header.css.map +1 -1
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.pcss +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/components/primer/truncate.css +1 -1
- data/app/components/primer/truncate.css.json +3 -4
- data/app/components/primer/truncate.css.map +1 -1
- data/app/controllers/primer/view_components/action_menu_controller.rb +35 -0
- data/app/views/primer/view_components/action_menu/deferred.html.erb +25 -11
- data/app/views/primer/view_components/action_menu/deferred_form.html.erb +10 -0
- data/app/views/primer/view_components/action_menu/deferred_preload.html.erb +7 -1
- data/config/locales/en.yml +179 -0
- data/config/routes.rb +1 -0
- data/lib/primer/accessibility.rb +1 -2
- data/lib/primer/classify.rb +1 -2
- 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/deferred_refresh.html.erb +34 -0
- data/previews/primer/alpha/action_menu_preview/deferred_refresh_form.html.erb +9 -0
- data/previews/primer/alpha/action_menu_preview/sub_menus.html.erb +1 -1
- data/previews/primer/alpha/action_menu_preview.rb +19 -2
- data/previews/primer/open_project/keybinding_hint_preview/full_format.html.erb +3 -0
- data/previews/primer/open_project/keybinding_hint_preview/in_action_list.html.erb +12 -0
- data/previews/primer/open_project/keybinding_hint_preview/in_button.html.erb +24 -0
- data/previews/primer/open_project/keybinding_hint_preview/platforms.html.erb +8 -0
- data/previews/primer/open_project/keybinding_hint_preview/playground.html.erb +4 -0
- data/previews/primer/open_project/keybinding_hint_preview/prose.html.erb +3 -0
- data/previews/primer/open_project/keybinding_hint_preview/schemes.html.erb +6 -0
- data/previews/primer/open_project/keybinding_hint_preview/sequence.html.erb +1 -0
- data/previews/primer/open_project/keybinding_hint_preview/sizes.html.erb +4 -0
- data/previews/primer/open_project/keybinding_hint_preview.rb +71 -0
- data/static/arguments.json +55 -3
- data/static/audited_at.json +1 -0
- data/static/classes.json +15 -3
- data/static/classnames.cjs +5 -1
- data/static/classnames.js +5 -1
- data/static/constants.json +35 -0
- data/static/info_arch.json +255 -10
- data/static/previews.json +177 -0
- data/static/statuses.json +1 -0
- metadata +45 -5
- data/app/components/primer/alpha/text_field.css.json +0 -134
- data/app/components/primer/alpha/toggle_switch.css.json +0 -40
- data/app/components/primer/alpha/underline_nav.css.json +0 -26
- data/app/components/primer/beta/button.css.json +0 -86
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,37 @@
|
|
|
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
|
+
|
|
17
|
+
## 0.96.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#544](https://github.com/opf/primer_view_components/pull/544) [`f460952`](https://github.com/opf/primer_view_components/commit/f4609525248a9ef6f880d7410b2e5fe8d768f03e) Thanks [@myabc](https://github.com/myabc)! - Reload deferred `Primer::Alpha::ActionMenu` items when `src` changes on `<action-menu>` or `refresh()` is called. A primary menu rendered with `src:` now renders its loader in a `<template>` with an empty overlay body, and a lazy menu carries `data-ready` before it first opens. See "Refreshing deferred content" in the `Primer::Alpha::ActionMenu` docs for details.
|
|
22
|
+
|
|
23
|
+
- [#534](https://github.com/opf/primer_view_components/pull/534) [`d7d76e8`](https://github.com/opf/primer_view_components/commit/d7d76e8f2d42c6fe18ea353e8e1cb87d6af32ded) Thanks [@myabc](https://github.com/myabc)! - Add `Primer::OpenProject::KeybindingHint`, a port of Primer React's `KeybindingHint`, and a `keybinding_hint` trailing visual slot type on `Primer::Beta::Button` and `Primer::Alpha::ActionList::Item`. Adds `lit-html` as a runtime dependency. Raises the `@primer/primitives` peer dependency to `^11.5.1`, which introduces the `--buttonKeybindingHint-*` tokens. Key names follow the current locale through the new `keybinding_hint` locale scope.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [#547](https://github.com/opf/primer_view_components/pull/547) [`a159662`](https://github.com/opf/primer_view_components/commit/a159662428e0ee495adf9ac1fe79f22c8db104af) Thanks [@myabc](https://github.com/myabc)! - Remove an ActionMenu sub-menu's focus zone and focus trap when the sub-menu closes
|
|
28
|
+
|
|
29
|
+
- [#547](https://github.com/opf/primer_view_components/pull/547) [`ee02bff`](https://github.com/opf/primer_view_components/commit/ee02bffb35954517a7c14e8b14e1feeb526ee5d9) Thanks [@myabc](https://github.com/myabc)! - Keep the ActionMenu open when a sub-menu closes with ArrowLeft or Escape, returning focus to the sub-menu's item. ArrowLeft on a top-level item no longer closes the whole menu.
|
|
30
|
+
|
|
31
|
+
- [#4194](https://github.com/primer/view_components/pull/4194) [`64fe352`](https://github.com/opf/primer_view_components/commit/64fe35263e087f5903612245b4a495dd99fc565d) Thanks [@francinelucca](https://github.com/francinelucca)! - Update Lookbook to 2.3.15.
|
|
32
|
+
|
|
33
|
+
- [#4172](https://github.com/primer/view_components/pull/4172) [`672410d`](https://github.com/opf/primer_view_components/commit/672410d69efd71c911254d9f94c59d0b001db095) Thanks [@joelhawksley](https://github.com/joelhawksley)! - Fix ReusedInstanceError in Dropdown::Menu::Item divider rendering
|
|
34
|
+
|
|
3
35
|
## 0.95.0
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|