primer_view_components 0.11.0 → 0.13.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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -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_element.js +8 -3
  9. data/app/components/primer/alpha/action_bar_element.ts +8 -1
  10. data/app/components/primer/alpha/action_list/form_wrapper.html.erb +4 -2
  11. data/app/components/primer/alpha/action_list/form_wrapper.rb +20 -9
  12. data/app/components/primer/alpha/action_menu/action_menu_element.js +1 -10
  13. data/app/components/primer/alpha/action_menu/action_menu_element.ts +0 -11
  14. data/app/components/primer/alpha/action_menu.rb +120 -3
  15. data/app/components/primer/alpha/modal_dialog.js +10 -13
  16. data/app/components/primer/alpha/modal_dialog.ts +10 -13
  17. data/app/components/primer/alpha/segmented_control/item.html.erb +1 -8
  18. data/app/components/primer/alpha/segmented_control/item.rb +38 -4
  19. data/app/components/primer/alpha/segmented_control.css +1 -1
  20. data/app/components/primer/alpha/segmented_control.css.json +14 -13
  21. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  22. data/app/components/primer/alpha/segmented_control.pcss +75 -66
  23. data/app/components/primer/alpha/segmented_control.rb +10 -0
  24. data/app/components/primer/alpha/text_field.css +1 -1
  25. data/app/components/primer/alpha/tool_tip.d.ts +1 -0
  26. data/app/components/primer/alpha/tool_tip.js +26 -93
  27. data/app/components/primer/alpha/tool_tip.ts +25 -91
  28. data/app/components/primer/beta/base_button.rb +4 -0
  29. data/app/components/primer/beta/button.css +1 -1
  30. data/app/components/primer/beta/button.css.map +1 -1
  31. data/app/components/primer/beta/button.pcss +6 -2
  32. data/lib/primer/accessibility.rb +3 -1
  33. data/lib/primer/static/generate_info_arch.rb +86 -5
  34. data/lib/primer/view_components/version.rb +1 -1
  35. data/previews/primer/alpha/action_menu_preview/single_select_form_items.html.erb +31 -0
  36. data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +1 -1
  37. data/previews/primer/alpha/action_menu_preview.rb +8 -2
  38. data/previews/primer/alpha/check_box_preview.rb +1 -0
  39. data/previews/primer/alpha/dialog_preview/autofocus_element.html.erb +8 -0
  40. data/previews/primer/alpha/dialog_preview.rb +5 -0
  41. data/previews/primer/alpha/radio_button_preview.rb +1 -0
  42. data/previews/primer/alpha/segmented_control_preview.rb +35 -0
  43. data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +23 -0
  44. data/previews/primer/alpha/tooltip_preview.rb +6 -1
  45. data/previews/primer/beta/button_group_preview.rb +6 -6
  46. data/previews/primer/beta/button_preview.rb +20 -2
  47. data/previews/primer/beta/icon_button_preview.rb +3 -0
  48. data/static/arguments.json +6 -0
  49. data/static/classes.json +12 -0
  50. data/static/constants.json +12 -1
  51. data/static/info_arch.json +125 -160
  52. data/static/previews.json +91 -172
  53. metadata +5 -310
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f48107c8d70bf5013cb17f594e7aacf039b6ee04511de34aba3a1dd536a09cd9
4
- data.tar.gz: 7b5774525d9a69246b0aad997cb03ac9c413c10071f8583341ead8ffe0b4188a
3
+ metadata.gz: 1e550febc90a9416549f08bf5f31423a1b096bc58dd83bd43d5488042dd71aad
4
+ data.tar.gz: 8e87b86b6eda26669c2f96d1b873bab0302989a10eb03d3076867827058ca27b
5
5
  SHA512:
6
- metadata.gz: 593249fcdf817fd9df568a8aa97ea00fec9e901fbfebdb6411de1d521a11b549e6f91bb0314512e644af86618276197326befaa6f2a227cb84c986c666e3ae8e
7
- data.tar.gz: 96c27005ca0e11bb53edc19ab6821b8d54e8137dd24efce0f7340ca88cee67ba1b5ab037d5708c4766390024b68b087890913856645b57dad4fd7b39562d736e
6
+ metadata.gz: dd66394a9dba0063e1ec0e71d155c5b50c10dfd4927ee73064a00a424995d91383517856da8444f0aa7b1c6b5da6a377489d64f1c0d3274bf45ec038526d7998
7
+ data.tar.gz: 3ac43c3d88604f722206cef8e23348a58fd7ea010543d7434e800e0d8252c8d3a39ad167e5c7a649dde4eb10577afdcbe78daab7a5b580115822d9eb1bf7932c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2284](https://github.com/primer/view_components/pull/2284) [`374d10fd`](https://github.com/primer/view_components/commit/374d10fd18e7371f49abf75dde135c3ed29fe33d) Thanks [@langermank](https://github.com/langermank)! - Update tooltip design
8
+
9
+ - Removes caret
10
+ - Decrease offset
11
+ - Remove animation delay
12
+ - Use v8 color tokens
13
+
14
+ <!-- Changed components: Tooltip -->
15
+
16
+ - [#2293](https://github.com/primer/view_components/pull/2293) [`d7eafca0`](https://github.com/primer/view_components/commit/d7eafca0b2bbcea41f28c7ab16e6f396c150be8f) Thanks [@camertron](https://github.com/camertron)! - Fix multi-select behavior when ActionMenus are embedded in dialogs
17
+
18
+ <!-- Changed components: Primer::Alpha::ActionMenu -->
19
+
20
+ - [#2291](https://github.com/primer/view_components/pull/2291) [`725bbd95`](https://github.com/primer/view_components/commit/725bbd954564995667398b1ea0b1388d4f6d8410) Thanks [@camertron](https://github.com/camertron)! - Allow ActionMenu items to submit multiple values on form submission; fix keyboard handling for submit items
21
+
22
+ <!-- Changed components: Primer::Alpha::ActionMenu -->
23
+
24
+ ### Patch Changes
25
+
26
+ - [#2286](https://github.com/primer/view_components/pull/2286) [`02e7f785`](https://github.com/primer/view_components/commit/02e7f785666bb85f522fe31c51a51c9a58806e33) Thanks [@langermank](https://github.com/langermank)! - fix SegmentedControl alignment issues
27
+
28
+ <!-- Changed components: SegmentedControl -->
29
+
30
+ - [#2288](https://github.com/primer/view_components/pull/2288) [`caf09967`](https://github.com/primer/view_components/commit/caf09967dd29668f380e509514ec98b9aa95baa7) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Fixes issue where sometimes a dialog cannot be closed if another is open
31
+
32
+ <!-- Changed components: Primer::Alpha::Dialog -->
33
+
34
+ - [#2292](https://github.com/primer/view_components/pull/2292) [`46e3ff02`](https://github.com/primer/view_components/commit/46e3ff02bd1e253e2bfb3bb2a586c589b3aa0c5b) Thanks [@jonrohan](https://github.com/jonrohan)! - Fix ActionBar issue where left and end key don't loop around to end of the action bar items.
35
+
36
+ - [#2290](https://github.com/primer/view_components/pull/2290) [`f33eed35`](https://github.com/primer/view_components/commit/f33eed35e619550bf2937d3f8f2ecaa219369d46) Thanks [@jonrohan](https://github.com/jonrohan)! - Bug fix: Respect autofocus attributes inside of a Dialog when opening a modal-dialog. When the dialog was opening before it was always focusing the first focusable element which was always the close button.
37
+
38
+ ## 0.12.0
39
+
40
+ ### Minor Changes
41
+
42
+ - [#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.
43
+
44
+ <!-- Changed components: Primer::Beta::Button, Primer::Beta::BaseButton, Primer::Beta::IconButton -->
45
+
46
+ - [#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.
47
+ <!-- Changed components: Primer::Alpha::SegmentedControl -->
48
+
49
+ ### Patch Changes
50
+
51
+ - [#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
52
+
3
53
  ## 0.11.0
4
54
 
5
55
  ### 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';