primer_view_components 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/app/assets/javascripts/app/components/primer/dialog_helper.d.ts +15 -0
  4. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
  5. data/app/assets/javascripts/primer_view_components.js +1 -1
  6. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  7. data/app/assets/styles/primer_view_components.css +1 -1
  8. data/app/assets/styles/primer_view_components.css.map +1 -1
  9. data/app/components/primer/alpha/action_bar_element.js +7 -1
  10. data/app/components/primer/alpha/action_bar_element.ts +7 -1
  11. data/app/components/primer/alpha/action_menu/action_menu_element.js +8 -0
  12. data/app/components/primer/alpha/action_menu/action_menu_element.ts +8 -0
  13. data/app/components/primer/alpha/action_menu.rb +3 -1
  14. data/app/components/primer/alpha/banner.rb +7 -3
  15. data/app/components/primer/alpha/dialog.css +1 -1
  16. data/app/components/primer/alpha/dialog.css.json +12 -27
  17. data/app/components/primer/alpha/dialog.css.map +1 -1
  18. data/app/components/primer/alpha/dialog.html.erb +2 -2
  19. data/app/components/primer/alpha/dialog.pcss +78 -143
  20. data/app/components/primer/alpha/dialog.rb +10 -13
  21. data/app/components/primer/alpha/overlay.css +1 -1
  22. data/app/components/primer/alpha/overlay.css.json +1 -0
  23. data/app/components/primer/alpha/overlay.css.map +1 -1
  24. data/app/components/primer/alpha/overlay.pcss +1 -1
  25. data/app/components/primer/alpha/text_field.css +1 -1
  26. data/app/components/primer/alpha/text_field.css.map +1 -1
  27. data/app/components/primer/base_component.rb +1 -1
  28. data/app/components/primer/dialog_helper.d.ts +15 -0
  29. data/app/components/primer/dialog_helper.js +85 -0
  30. data/app/components/primer/dialog_helper.ts +88 -0
  31. data/app/components/primer/primer.d.ts +1 -0
  32. data/app/components/primer/primer.js +1 -0
  33. data/app/components/primer/primer.ts +1 -0
  34. data/lib/primer/classify/utilities.rb +1 -1
  35. data/lib/primer/deprecations.yml +3 -3
  36. data/lib/primer/forms/dsl/button_input.rb +4 -0
  37. data/lib/primer/forms/dsl/check_box_input.rb +6 -0
  38. data/lib/primer/forms/dsl/hidden_input.rb +4 -0
  39. data/lib/primer/forms/dsl/input.rb +7 -3
  40. data/lib/primer/forms/dsl/radio_button_input.rb +6 -0
  41. data/lib/primer/forms/dsl/select_input.rb +3 -1
  42. data/lib/primer/forms/dsl/submit_button_input.rb +4 -0
  43. data/lib/primer/forms/form_control.html.erb +3 -1
  44. data/lib/primer/view_components/linters/tooltipped_migration.rb +1 -1
  45. data/lib/primer/view_components/version.rb +1 -1
  46. data/lib/primer/yard/docs_helper.rb +1 -1
  47. data/previews/primer/alpha/dialog_preview/nested_dialog.html.erb +1 -1
  48. data/previews/primer/alpha/dialog_preview/scroll_container.html.erb +35 -0
  49. data/previews/primer/alpha/dialog_preview.rb +61 -1
  50. data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +2 -3
  51. data/previews/primer/alpha/tooltip_preview.rb +1 -1
  52. data/previews/primer/beta/button_preview/trailing_visual.html.erb +2 -1
  53. data/previews/primer/beta/button_preview.rb +4 -2
  54. data/static/arguments.json +12 -0
  55. data/static/classes.json +5 -20
  56. data/static/constants.json +14 -8
  57. data/static/info_arch.json +65 -1
  58. data/static/previews.json +52 -0
  59. metadata +8 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 149173d363a760193f2728ab550efabe6037eba0ec8e530d5576435dfa49e0d0
4
- data.tar.gz: 9c04878c888993b6168be6def933029b0bf1c304e11f1eb335c7bad48d0de7de
3
+ metadata.gz: 1836ea81589bd71190798d627059a545dd9092c020dc7e3a3507a0520dd9b97a
4
+ data.tar.gz: 5dbd76ed3a2e0ec6ff1eb3609093831f6f2cd168e807dd0b60e2637e8f28f8f1
5
5
  SHA512:
6
- metadata.gz: 05f846d4ad9b730ae7b46d5820e3ea9ca4236abb4fbfe728cc6772e3b1fb45d4cba6092dd3307f34fac4a5f6b2f154b6e26f0a72979d1b5319c6c4ae8c4476c3
7
- data.tar.gz: 522257e894688e540f3bc50442afe52ca54f600d3279f92889afd9f1c9db6afffdf2257579144a866e6998e2678ee8132934c773dd5c4ec9e1960a3f000b439e
6
+ metadata.gz: c508169b5b7d6c6a31feb706591ba23a3fa5e45fdf7c87a44cb2bef10ec2b5d4a74924362316662c94153adb43cb33897cd8b9bf3cf77b1d9e51002e3b1d8bc3
7
+ data.tar.gz: 947acc3cceebf75d80ae30f928c833cf3f0bab0b881201007a19f170481be616f925a0135495febfde54f7d254280b2685d6b95675866214b0046154fd9ace8f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2539](https://github.com/primer/view_components/pull/2539) [`9985fc0`](https://github.com/primer/view_components/commit/9985fc01ef4a343a7c455ec114a68a249a01ed3e) Thanks [@camertron](https://github.com/camertron)! - Use latest version of @primer/primitives
8
+
9
+ - [#2496](https://github.com/primer/view_components/pull/2496) [`983e3a5`](https://github.com/primer/view_components/commit/983e3a5fbf885c46d5bde0c749b0f9298ab2b53f) Thanks [@keithamus](https://github.com/keithamus)! - Primer::Alpha::Dialog uses <dialog> internally
10
+
11
+ ### Patch Changes
12
+
13
+ - [#2495](https://github.com/primer/view_components/pull/2495) [`fbaea76`](https://github.com/primer/view_components/commit/fbaea76c3209a7c4e92d18b3b80bb347f971c448) Thanks [@antn](https://github.com/antn)! - Allow setting `test_selector` on select list options
14
+
15
+ - [#2538](https://github.com/primer/view_components/pull/2538) [`35e5d06`](https://github.com/primer/view_components/commit/35e5d0696f503bf2bac14329dc455cc6245f6ba9) Thanks [@camertron](https://github.com/camertron)! - Prevent ActionMenu's show_button slot from rendering its content more than once
16
+
17
+ - [#2541](https://github.com/primer/view_components/pull/2541) [`116a343`](https://github.com/primer/view_components/commit/116a3438d0f9404483b638ef3f13a656609415cb) Thanks [@khiga8](https://github.com/khiga8)! - Allow `Banner` to be rendered as a section
18
+
19
+ - [#2530](https://github.com/primer/view_components/pull/2530) [`1d14d5c`](https://github.com/primer/view_components/commit/1d14d5c03a528930ac59bb8ec30fbec2ea92883e) Thanks [@camertron](https://github.com/camertron)! - Update @oddbird/popover-polyfill to v0.3.8
20
+
21
+ - [#2491](https://github.com/primer/view_components/pull/2491) [`11b1eec`](https://github.com/primer/view_components/commit/11b1eecc817c7013ed56c84f7050e642b098db41) Thanks [@jonrohan](https://github.com/jonrohan)! - Fixing the utilities build not matching properly for `font_size`
22
+
23
+ - [#2511](https://github.com/primer/view_components/pull/2511) [`15a090a`](https://github.com/primer/view_components/commit/15a090a999e69056d78ba099671ff1f68d61c610) Thanks [@camertron](https://github.com/camertron)! - Only attach validation IDs to form elements that support validation
24
+
25
+ ## 0.16.1
26
+
27
+ ### Patch Changes
28
+
29
+ - [#2478](https://github.com/primer/view_components/pull/2478) [`6e7b7c2`](https://github.com/primer/view_components/commit/6e7b7c2340339a15b21857ee1fbc734a5760135d) Thanks [@jonrohan](https://github.com/jonrohan)! - Bug fix in ActionBar: When collapsed the menu and tooltips aren't visible in Firefox
30
+
3
31
  ## 0.16.0
4
32
 
5
33
  ### Minor Changes
@@ -0,0 +1,15 @@
1
+ export declare class DialogHelperElement extends HTMLElement {
2
+ #private;
3
+ get dialog(): HTMLDialogElement | null;
4
+ connectedCallback(): void;
5
+ disconnectedCallback(): void;
6
+ handleEvent(event: MouseEvent): void;
7
+ }
8
+ declare global {
9
+ interface Window {
10
+ DialogHelperElement: typeof DialogHelperElement;
11
+ }
12
+ interface HTMLElementTagNameMap {
13
+ 'dialog-helper': DialogHelperElement;
14
+ }
15
+ }
@@ -2,6 +2,7 @@ import '@github/include-fragment-element';
2
2
  import './alpha/action_bar_element';
3
3
  import './alpha/dropdown';
4
4
  import './anchored_position';
5
+ import './dialog_helper';
5
6
  import './focus_group';
6
7
  import './scrollable_region';
7
8
  import './alpha/image_crop';