primer_view_components 0.16.1 → 0.18.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 (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -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_list.css +1 -1
  10. data/app/components/primer/alpha/action_list.css.map +1 -1
  11. data/app/components/primer/alpha/action_list.pcss +11 -33
  12. data/app/components/primer/alpha/action_menu/action_menu_element.js +8 -0
  13. data/app/components/primer/alpha/action_menu/action_menu_element.ts +8 -0
  14. data/app/components/primer/alpha/action_menu.rb +3 -1
  15. data/app/components/primer/alpha/banner.rb +7 -3
  16. data/app/components/primer/alpha/dialog.css +1 -1
  17. data/app/components/primer/alpha/dialog.css.json +12 -27
  18. data/app/components/primer/alpha/dialog.css.map +1 -1
  19. data/app/components/primer/alpha/dialog.html.erb +2 -2
  20. data/app/components/primer/alpha/dialog.pcss +78 -143
  21. data/app/components/primer/alpha/dialog.rb +10 -13
  22. data/app/components/primer/alpha/overlay.css +1 -1
  23. data/app/components/primer/alpha/overlay.css.json +1 -0
  24. data/app/components/primer/alpha/overlay.css.map +1 -1
  25. data/app/components/primer/alpha/overlay.pcss +1 -1
  26. data/app/components/primer/alpha/segmented_control.css +1 -1
  27. data/app/components/primer/alpha/segmented_control.css.json +0 -4
  28. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  29. data/app/components/primer/alpha/segmented_control.pcss +1 -18
  30. data/app/components/primer/alpha/segmented_control.rb +0 -1
  31. data/app/components/primer/alpha/text_field.css +1 -1
  32. data/app/components/primer/alpha/text_field.css.map +1 -1
  33. data/app/components/primer/base_component.rb +1 -1
  34. data/app/components/primer/dialog_helper.d.ts +15 -0
  35. data/app/components/primer/dialog_helper.js +88 -0
  36. data/app/components/primer/dialog_helper.ts +92 -0
  37. data/app/components/primer/primer.d.ts +1 -0
  38. data/app/components/primer/primer.js +1 -0
  39. data/app/components/primer/primer.ts +1 -0
  40. data/lib/primer/classify/utilities.rb +1 -1
  41. data/lib/primer/deprecations.yml +3 -3
  42. data/lib/primer/forms/dsl/button_input.rb +4 -0
  43. data/lib/primer/forms/dsl/check_box_input.rb +6 -0
  44. data/lib/primer/forms/dsl/hidden_input.rb +4 -0
  45. data/lib/primer/forms/dsl/input.rb +7 -3
  46. data/lib/primer/forms/dsl/radio_button_input.rb +6 -0
  47. data/lib/primer/forms/dsl/select_input.rb +3 -1
  48. data/lib/primer/forms/dsl/submit_button_input.rb +4 -0
  49. data/lib/primer/forms/form_control.html.erb +3 -1
  50. data/lib/primer/view_components/linters/tooltipped_migration.rb +1 -1
  51. data/lib/primer/view_components/version.rb +2 -2
  52. data/lib/primer/yard/docs_helper.rb +1 -1
  53. data/previews/primer/alpha/dialog_preview/nested_dialog.html.erb +1 -1
  54. data/previews/primer/alpha/dialog_preview/scroll_container.html.erb +35 -0
  55. data/previews/primer/alpha/dialog_preview.rb +61 -1
  56. data/previews/primer/alpha/segmented_control_preview.rb +1 -52
  57. data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +2 -3
  58. data/previews/primer/alpha/tooltip_preview.rb +1 -1
  59. data/previews/primer/beta/button_preview/trailing_visual.html.erb +2 -1
  60. data/previews/primer/beta/button_preview.rb +4 -2
  61. data/static/arguments.json +12 -0
  62. data/static/classes.json +5 -23
  63. data/static/constants.json +16 -12
  64. data/static/info_arch.json +65 -66
  65. data/static/previews.json +52 -65
  66. metadata +8 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86910238999d5a874ee2f46d034900550d566fa09420ddecc5315135e1cd405d
4
- data.tar.gz: 146b16b08abaca9fa8fc46f9841295757f6a5dccf4aa985d31c44bdbc85a43c4
3
+ metadata.gz: 6e436dd7c45ee9ebfeefdb1eda651a3574787205773088d059a68a0e7957be9f
4
+ data.tar.gz: 8041711bf27a83803cea386b2217f69fe6bf29b13ef24bcbe1596ac00a82d38d
5
5
  SHA512:
6
- metadata.gz: da31b3edb785572ed31d5ba13efc8d0a548be3e6ef2b40dea1c282c19036e28bf29b6852eba5a7bfa3a1cf48398021481f6d1d7122eb6f02ed54f9bcd6fb6da5
7
- data.tar.gz: 955420e5f188ab8658fc55eb8eabd001cbd5c93809cfb62a4b66b04d6695759e98661a22606609e765c9ee66be3b2686b2bfb3e5e9586faf737c51bc660fecb0
6
+ metadata.gz: 6385caf4ac07b14708cfd9bb9f6cd04bd59a1133e5e29db3817b088b2537c6df9422d6e72ed56f1e429ab4a851781f79a1fd8e55e3b192a1c3e4b87192890a02
7
+ data.tar.gz: d68fcfaceb8a0fcb02885112e65a13134d3adb9fbe4be8329a0bf5871eb3be930d9a3cfd91ab34d34b923ff62fcfc5e1b4071b5e0a5ba986e5596057226590d6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2551](https://github.com/primer/view_components/pull/2551) [`5340243`](https://github.com/primer/view_components/commit/5340243c91a5a7d020cf216f421704fc5a76afca) Thanks [@jonrohan](https://github.com/jonrohan)! - Remove large size options from SegmentedControl
8
+
9
+ ### Patch Changes
10
+
11
+ - [#2527](https://github.com/primer/view_components/pull/2527) [`1d20198`](https://github.com/primer/view_components/commit/1d201989bfe0d1fb6cdb879f82264bdc55978d8d) Thanks [@keithamus](https://github.com/keithamus)! - Remove animations on actionlist checkmark
12
+
13
+ - [#2549](https://github.com/primer/view_components/pull/2549) [`1259249`](https://github.com/primer/view_components/commit/1259249eaddd4b8744a3dc212fb9f8800b45daac) Thanks [@keithamus](https://github.com/keithamus)! - Ensure dialogs do not close when a child menu item (or similar) is clicked
14
+
15
+ ## 0.17.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#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
20
+
21
+ - [#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
22
+
23
+ ### Patch Changes
24
+
25
+ - [#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
26
+
27
+ - [#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
28
+
29
+ - [#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
30
+
31
+ - [#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
32
+
33
+ - [#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`
34
+
35
+ - [#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
36
+
3
37
  ## 0.16.1
4
38
 
5
39
  ### Patch 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';