openproject-primer_view_components 0.20.0 → 0.21.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 +24 -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_menu/action_menu_element.js +8 -0
  10. data/app/components/primer/alpha/action_menu/action_menu_element.ts +8 -0
  11. data/app/components/primer/alpha/action_menu.rb +3 -1
  12. data/app/components/primer/alpha/banner.rb +7 -3
  13. data/app/components/primer/alpha/dialog.css +1 -1
  14. data/app/components/primer/alpha/dialog.css.json +12 -27
  15. data/app/components/primer/alpha/dialog.css.map +1 -1
  16. data/app/components/primer/alpha/dialog.html.erb +2 -2
  17. data/app/components/primer/alpha/dialog.pcss +78 -143
  18. data/app/components/primer/alpha/dialog.rb +10 -13
  19. data/app/components/primer/alpha/overlay.css +1 -1
  20. data/app/components/primer/alpha/overlay.css.json +1 -0
  21. data/app/components/primer/alpha/overlay.css.map +1 -1
  22. data/app/components/primer/alpha/overlay.pcss +1 -1
  23. data/app/components/primer/alpha/text_field.css +1 -1
  24. data/app/components/primer/alpha/text_field.css.map +1 -1
  25. data/app/components/primer/base_component.rb +1 -1
  26. data/app/components/primer/dialog_helper.d.ts +15 -0
  27. data/app/components/primer/dialog_helper.js +85 -0
  28. data/app/components/primer/dialog_helper.ts +88 -0
  29. data/app/components/primer/open_project/page_header.rb +3 -3
  30. data/app/components/primer/primer.d.ts +1 -0
  31. data/app/components/primer/primer.js +1 -0
  32. data/app/components/primer/primer.ts +1 -0
  33. data/lib/primer/classify/utilities.rb +1 -1
  34. data/lib/primer/deprecations.yml +3 -3
  35. data/lib/primer/forms/dsl/button_input.rb +4 -0
  36. data/lib/primer/forms/dsl/check_box_input.rb +6 -0
  37. data/lib/primer/forms/dsl/hidden_input.rb +4 -0
  38. data/lib/primer/forms/dsl/input.rb +7 -3
  39. data/lib/primer/forms/dsl/radio_button_input.rb +6 -0
  40. data/lib/primer/forms/dsl/select_input.rb +3 -1
  41. data/lib/primer/forms/dsl/submit_button_input.rb +4 -0
  42. data/lib/primer/forms/form_control.html.erb +3 -1
  43. data/lib/primer/view_components/linters/tooltipped_migration.rb +1 -1
  44. data/lib/primer/view_components/version.rb +1 -1
  45. data/lib/primer/yard/docs_helper.rb +1 -1
  46. data/previews/primer/alpha/dialog_preview/nested_dialog.html.erb +1 -1
  47. data/previews/primer/alpha/dialog_preview/scroll_container.html.erb +35 -0
  48. data/previews/primer/alpha/dialog_preview.rb +61 -1
  49. data/previews/primer/alpha/tooltip_preview/tooltip_with_dialog_moving_focus_to_input.html.erb +2 -3
  50. data/previews/primer/alpha/tooltip_preview.rb +1 -1
  51. data/previews/primer/beta/button_preview/trailing_visual.html.erb +2 -1
  52. data/previews/primer/beta/button_preview.rb +4 -2
  53. data/previews/primer/open_project/page_header_preview.rb +4 -4
  54. data/static/arguments.json +12 -0
  55. data/static/classes.json +5 -20
  56. data/static/constants.json +17 -11
  57. data/static/info_arch.json +67 -3
  58. data/static/previews.json +54 -2
  59. metadata +8 -3
data/static/previews.json CHANGED
@@ -658,6 +658,19 @@
658
658
  ]
659
659
  }
660
660
  },
661
+ {
662
+ "preview_path": "primer/alpha/action_menu/in_scroll_container",
663
+ "name": "in_scroll_container",
664
+ "snapshot": "false",
665
+ "skip_rules": {
666
+ "wont_fix": [
667
+ "region"
668
+ ],
669
+ "will_fix": [
670
+ "color-contrast"
671
+ ]
672
+ }
673
+ },
661
674
  {
662
675
  "preview_path": "primer/alpha/action_menu/align_end",
663
676
  "name": "align_end",
@@ -3134,6 +3147,45 @@
3134
3147
  "color-contrast"
3135
3148
  ]
3136
3149
  }
3150
+ },
3151
+ {
3152
+ "preview_path": "primer/alpha/dialog/left_side",
3153
+ "name": "left_side",
3154
+ "snapshot": "interactive",
3155
+ "skip_rules": {
3156
+ "wont_fix": [
3157
+ "region"
3158
+ ],
3159
+ "will_fix": [
3160
+ "color-contrast"
3161
+ ]
3162
+ }
3163
+ },
3164
+ {
3165
+ "preview_path": "primer/alpha/dialog/right_side",
3166
+ "name": "right_side",
3167
+ "snapshot": "interactive",
3168
+ "skip_rules": {
3169
+ "wont_fix": [
3170
+ "region"
3171
+ ],
3172
+ "will_fix": [
3173
+ "color-contrast"
3174
+ ]
3175
+ }
3176
+ },
3177
+ {
3178
+ "preview_path": "primer/alpha/dialog/scroll_container",
3179
+ "name": "scroll_container",
3180
+ "snapshot": "interactive",
3181
+ "skip_rules": {
3182
+ "wont_fix": [
3183
+ "region"
3184
+ ],
3185
+ "will_fix": [
3186
+ "color-contrast"
3187
+ ]
3188
+ }
3137
3189
  }
3138
3190
  ]
3139
3191
  },
@@ -4950,8 +5002,8 @@
4950
5002
  }
4951
5003
  },
4952
5004
  {
4953
- "preview_path": "primer/open_project/page_header/large_title",
4954
- "name": "large_title",
5005
+ "preview_path": "primer/open_project/page_header/medium_title",
5006
+ "name": "medium_title",
4955
5007
  "snapshot": "false",
4956
5008
  "skip_rules": {
4957
5009
  "wont_fix": [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-01-08 00:00:00.000000000 Z
12
+ date: 2024-01-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -99,6 +99,7 @@ files:
99
99
  - app/assets/javascripts/app/components/primer/beta/nav_list.d.ts
100
100
  - app/assets/javascripts/app/components/primer/beta/nav_list_group_element.d.ts
101
101
  - app/assets/javascripts/app/components/primer/beta/relative_time.d.ts
102
+ - app/assets/javascripts/app/components/primer/dialog_helper.d.ts
102
103
  - app/assets/javascripts/app/components/primer/focus_group.d.ts
103
104
  - app/assets/javascripts/app/components/primer/primer.d.ts
104
105
  - app/assets/javascripts/app/components/primer/scrollable_region.d.ts
@@ -445,6 +446,9 @@ files:
445
446
  - app/components/primer/component.rb
446
447
  - app/components/primer/conditional_wrapper.rb
447
448
  - app/components/primer/content.rb
449
+ - app/components/primer/dialog_helper.d.ts
450
+ - app/components/primer/dialog_helper.js
451
+ - app/components/primer/dialog_helper.ts
448
452
  - app/components/primer/focus_group.d.ts
449
453
  - app/components/primer/focus_group.js
450
454
  - app/components/primer/focus_group.ts
@@ -757,6 +761,7 @@ files:
757
761
  - previews/primer/alpha/dialog_preview/body_has_scrollbar_overflow.html.erb
758
762
  - previews/primer/alpha/dialog_preview/custom_header.html.erb
759
763
  - previews/primer/alpha/dialog_preview/nested_dialog.html.erb
764
+ - previews/primer/alpha/dialog_preview/scroll_container.html.erb
760
765
  - previews/primer/alpha/dialog_preview/test.html.erb
761
766
  - previews/primer/alpha/dialog_preview/with_auto_complete.html.erb
762
767
  - previews/primer/alpha/dialog_preview/with_footer.html.erb
@@ -917,7 +922,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
917
922
  - !ruby/object:Gem::Version
918
923
  version: '0'
919
924
  requirements: []
920
- rubygems_version: 3.4.10
925
+ rubygems_version: 3.4.19
921
926
  signing_key:
922
927
  specification_version: 4
923
928
  summary: ViewComponents of the Primer Design System for OpenProject