openproject-primer_view_components 0.12.1 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -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 +9 -4
  11. data/app/components/primer/alpha/action_bar_element.ts +9 -2
  12. data/app/components/primer/alpha/action_list/form_wrapper.html.erb +4 -2
  13. data/app/components/primer/alpha/action_list/form_wrapper.rb +20 -9
  14. data/app/components/primer/alpha/action_menu/action_menu_element.js +160 -85
  15. data/app/components/primer/alpha/action_menu/action_menu_element.ts +195 -81
  16. data/app/components/primer/alpha/action_menu/list.rb +0 -2
  17. data/app/components/primer/alpha/action_menu.rb +120 -3
  18. data/app/components/primer/alpha/modal_dialog.js +10 -13
  19. data/app/components/primer/alpha/modal_dialog.ts +10 -13
  20. data/app/components/primer/alpha/segmented_control/item.html.erb +1 -8
  21. data/app/components/primer/alpha/segmented_control/item.rb +38 -4
  22. data/app/components/primer/alpha/segmented_control.css +1 -1
  23. data/app/components/primer/alpha/segmented_control.css.json +14 -13
  24. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  25. data/app/components/primer/alpha/segmented_control.pcss +75 -66
  26. data/app/components/primer/alpha/segmented_control.rb +10 -0
  27. data/app/components/primer/alpha/text_field.css +1 -1
  28. data/app/components/primer/alpha/tool_tip.d.ts +1 -0
  29. data/app/components/primer/alpha/tool_tip.js +26 -93
  30. data/app/components/primer/alpha/tool_tip.ts +25 -91
  31. data/app/components/primer/beta/base_button.rb +4 -0
  32. data/app/components/primer/beta/button.css +1 -1
  33. data/app/components/primer/beta/button.css.map +1 -1
  34. data/app/components/primer/beta/button.pcss +6 -2
  35. data/app/components/primer/focus_group.js +28 -3
  36. data/app/components/primer/focus_group.ts +27 -1
  37. data/lib/primer/accessibility.rb +3 -1
  38. data/lib/primer/static/generate_info_arch.rb +86 -5
  39. data/lib/primer/view_components/version.rb +2 -2
  40. data/previews/primer/alpha/action_menu_preview/single_select_form_items.html.erb +31 -0
  41. data/previews/primer/alpha/action_menu_preview/with_actions.html.erb +6 -5
  42. data/previews/primer/alpha/action_menu_preview.rb +10 -1
  43. data/previews/primer/alpha/check_box_preview.rb +1 -0
  44. data/previews/primer/alpha/dialog_preview/autofocus_element.html.erb +8 -0
  45. data/previews/primer/alpha/dialog_preview.rb +5 -0
  46. data/previews/primer/alpha/radio_button_preview.rb +1 -0
  47. data/previews/primer/alpha/segmented_control_preview.rb +35 -0
  48. data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +23 -0
  49. data/previews/primer/alpha/tooltip_preview.rb +6 -1
  50. data/previews/primer/beta/button_group_preview.rb +6 -6
  51. data/previews/primer/beta/button_preview.rb +20 -2
  52. data/previews/primer/beta/icon_button_preview.rb +3 -0
  53. data/static/arguments.json +18 -1
  54. data/static/classes.json +12 -0
  55. data/static/constants.json +12 -1
  56. data/static/info_arch.json +137 -161
  57. data/static/previews.json +91 -172
  58. metadata +5 -310
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 454a14550b5bf7628631c0cecc2365cdc910843884bb111eba2ea249af688b6a
4
- data.tar.gz: 84336d1f818b4644f28a9e9455345159e9b116706daa46f1ec3cdede23a159b1
3
+ metadata.gz: 3c17581220cb9e77d3a09810a549aff8aa2cfa9e50913676dc99d29664e871f5
4
+ data.tar.gz: dfa539af0aaf4e4d8fc53bad65563a7b5aa9603ef2b4bc0f48bf0147e88621ae
5
5
  SHA512:
6
- metadata.gz: fc8ba43208e095e6187aa38e89a19f105aabdda611df41fc81e1a5e5423519a84cf93269bc5d1e669f2e06f1d67e290b7cd632f40fa22e53a88693544fc84e3e
7
- data.tar.gz: 6a1f8dffa64e11eb12959e156aa224092e6cd113da673831d380ab6a55bbe05021a93608d6b1f8b138e9f26788fae7bd8e19a11a42bcb70ff58ade1e91f2cca0
6
+ metadata.gz: bd3676b9395caf3dab08f8a6495390a6dc9f9a74fd0de37b1b7e3ec032005e130f168cf3dbc82c0c3f1559517fa062568ea11ae2e04b59407229b6d674cb802f
7
+ data.tar.gz: 8c35a2d098860e1f2a1c484019632c0f5b0b1489361524fd9f64275e3fc6916aa0d8b0438a0d3944221b9b83e5fad7fbe41ce313024b1c220d49ab95737d9938
data/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
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/opf/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/opf/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/opf/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/opf/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/opf/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/opf/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/opf/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
+
3
38
  ## 0.12.1
4
39
 
5
40
  ### Patch 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';