primer_view_components 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/tool_tip.d.ts +1 -0
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/assets/styles/primer_view_components.css +1 -1
  7. data/app/assets/styles/primer_view_components.css.map +1 -1
  8. data/app/components/primer/alpha/action_bar/item.rb +7 -4
  9. data/app/components/primer/alpha/action_bar.rb +2 -2
  10. data/app/components/primer/alpha/action_bar_element.js +2 -2
  11. data/app/components/primer/alpha/action_bar_element.ts +2 -2
  12. data/app/components/primer/alpha/action_menu/action_menu_element.js +168 -84
  13. data/app/components/primer/alpha/action_menu/action_menu_element.ts +204 -79
  14. data/app/components/primer/alpha/action_menu/list.rb +0 -2
  15. data/app/components/primer/alpha/segmented_control/item.html.erb +1 -8
  16. data/app/components/primer/alpha/segmented_control/item.rb +38 -4
  17. data/app/components/primer/alpha/segmented_control.css +1 -1
  18. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  19. data/app/components/primer/alpha/segmented_control.pcss +3 -1
  20. data/app/components/primer/alpha/tool_tip.d.ts +1 -0
  21. data/app/components/primer/alpha/tool_tip.js +17 -2
  22. data/app/components/primer/alpha/tool_tip.ts +16 -0
  23. data/app/components/primer/beta/base_button.rb +4 -0
  24. data/app/components/primer/beta/button.css +1 -1
  25. data/app/components/primer/beta/button.css.map +1 -1
  26. data/app/components/primer/beta/button.pcss +6 -2
  27. data/app/components/primer/focus_group.js +28 -3
  28. data/app/components/primer/focus_group.ts +27 -1
  29. data/lib/primer/view_components/version.rb +1 -1
  30. data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +5 -4
  31. data/previews/primer/alpha/action_menu_preview.rb +4 -1
  32. data/previews/primer/alpha/segmented_control_preview.rb +35 -0
  33. data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +23 -0
  34. data/previews/primer/alpha/tooltip_preview.rb +5 -0
  35. data/previews/primer/beta/button_preview.rb +20 -2
  36. data/previews/primer/beta/icon_button_preview.rb +3 -0
  37. data/static/arguments.json +18 -1
  38. data/static/info_arch.json +107 -3
  39. data/static/previews.json +65 -0
  40. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2faa98da3917873979bfc38c8a2f665e75231f5d93f9e735216ac7ba5a1e99f0
4
- data.tar.gz: ba3170a6981c0a725cd6eaac177e4a81c4a27fcc3d366a62bee23b20c8753e2c
3
+ metadata.gz: b294b273d321d94b44273ea687ea758b1e1859d5755504e81bf4762c8cdb0a7b
4
+ data.tar.gz: 8513c0ad0d28cf4d6f1d4988e5a411edbe3465ec07e9784a4ab9401a9dfafada
5
5
  SHA512:
6
- metadata.gz: '028b27e577a15e0c967c5a0b1aa0056ecf9fe89209dc10597636b6697180ca4e5427cff1de6a61db0e6c1b9c0c68ca4788af99ff27c529ce91b63ef62b0936dd'
7
- data.tar.gz: ca0a75f7af4d0cc0174c1fb9c213a7151cac94d39ea6a7bd9da480a43f86f3c5a6c288f58ff042b68c626bf89e8608c8ed2facb520ec1988eb3773ad932d509e
6
+ metadata.gz: 61d049223096cb39f37b0859145009b5a3f921917655ca9b56b5f1a335c07faaeb4dc5b15bf332d0cbe5833db59cecf23bf879deae22efb19a8f48f7981de0bb
7
+ data.tar.gz: f135e11c4cbaec662a3b729fc15fe67361e9fddd033580955d849b750e054fe7a876975a5a37a3087a494f86b93d854eaf54e37151d3f3ec9fbc3a2dd5465073
data/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2283](https://github.com/primer/view_components/pull/2283) [`da3bdb26`](https://github.com/primer/view_components/commit/da3bdb267e5753942d24e578a8aa2c6d339e5c83) Thanks [@mperrotti](https://github.com/mperrotti)! - Adds an 'inactive' state to buttons. An inactive button looks disabled and has aria-disabled, but it can still be clicked and focused. This was added to support buttons that are broken due to availability issues, but can't be removed from the page.
8
+
9
+ <!-- Changed components: Primer::Beta::Button, Primer::Beta::BaseButton, Primer::Beta::IconButton -->
10
+
11
+ - [#2278](https://github.com/primer/view_components/pull/2278) [`83b70dd7`](https://github.com/primer/view_components/commit/83b70dd73ad970388a3fa6b107d4ca8e4c94a986) Thanks [@gwwar](https://github.com/gwwar)! - Add optional with_trailing_visual_label slot to Primer::Alpha::SegmentedControl::Item. Filling the slot will add a Primer::Beta::Label to the right of the item.
12
+ <!-- Changed components: Primer::Alpha::SegmentedControl -->
13
+
14
+ ### Patch Changes
15
+
16
+ - [#2281](https://github.com/primer/view_components/pull/2281) [`46d5d9cb`](https://github.com/primer/view_components/commit/46d5d9cb5b624eee147f67cabcfa8034c7e1668c) Thanks [@keithamus](https://github.com/keithamus)! - Fix tooltips opening when focus is removed while displaying
17
+
18
+ ## 0.11.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [#2276](https://github.com/primer/view_components/pull/2276) [`7184d76e`](https://github.com/primer/view_components/commit/7184d76edbe94b008158940d15909b1778c9ed8c) Thanks [@jonrohan](https://github.com/jonrohan)! - Adding option item_arguments hash argument to ActionBar::Item that will control the item system arguments
23
+
24
+ <!-- Changed components: Primer::Alpha::ActionBar -->
25
+
26
+ - [#2259](https://github.com/primer/view_components/pull/2259) [`a2fe6134`](https://github.com/primer/view_components/commit/a2fe61342b2f3527533902d845f5a9d500d6910c) Thanks [@TylerJDev](https://github.com/TylerJDev)! - \* Includes ActionMenu in ActionBar focus trap when present.
27
+
28
+ - Adjusts `focus_group.ts` to set `tabindex="0"` back to invoker if it is non-focusable.
29
+ - Prevents popover invokers from being triggered with 'left' and 'right' arrow keys.
30
+
31
+ <!-- Changed components: Primer::Alpha::ActionBar, Primer::Alpha::ActionMenu -->
32
+
33
+ ### Patch Changes
34
+
35
+ - [#2260](https://github.com/primer/view_components/pull/2260) [`b584a6b5`](https://github.com/primer/view_components/commit/b584a6b57e07b4def45bd30e90bf31203e7b7010) Thanks [@camertron](https://github.com/camertron)! - ActionMenu: hide the menu when focus leaves the component; focus the first list item when the menu is activated with the mouse; allow disabling list items while still permitting them to be focused with the keyboard
36
+
37
+ <!-- Changed components: Primer::Alpha::ActionMenu -->
38
+
3
39
  ## 0.10.0
4
40
 
5
41
  ### Minor Changes
@@ -3,6 +3,7 @@ type Direction = 'n' | 's' | 'e' | 'w' | 'ne' | 'se' | 'nw' | 'sw';
3
3
  declare class ToolTipElement extends HTMLElement {
4
4
  #private;
5
5
  styles(): string;
6
+ get showReason(): "focus" | "mouse";
6
7
  get htmlFor(): string;
7
8
  set htmlFor(value: string);
8
9
  get type(): 'description' | 'label';