openproject-primer_view_components 0.15.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/app/assets/javascripts/primer_view_components.js +1 -1
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  5. data/app/assets/styles/primer_view_components.css +1 -1
  6. data/app/assets/styles/primer_view_components.css.map +1 -1
  7. data/app/components/primer/alpha/action_bar.css +1 -1
  8. data/app/components/primer/alpha/action_bar.css.json +1 -4
  9. data/app/components/primer/alpha/action_bar.css.map +1 -1
  10. data/app/components/primer/alpha/action_bar.pcss +1 -17
  11. data/app/components/primer/alpha/action_bar_element.js +21 -9
  12. data/app/components/primer/alpha/action_list/item.rb +0 -2
  13. data/app/components/primer/alpha/action_list.css +1 -1
  14. data/app/components/primer/alpha/action_list.css.map +1 -1
  15. data/app/components/primer/alpha/action_list.rb +0 -1
  16. data/app/components/primer/alpha/action_menu/action_menu_element.js +44 -20
  17. data/app/components/primer/alpha/action_menu/list.rb +0 -9
  18. data/app/components/primer/alpha/action_menu.html.erb +20 -18
  19. data/app/components/primer/alpha/auto_complete.css +1 -1
  20. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  21. data/app/components/primer/alpha/button_marketing.css +1 -1
  22. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  23. data/app/components/primer/alpha/dialog/header.rb +1 -1
  24. data/app/components/primer/alpha/dropdown.css +1 -1
  25. data/app/components/primer/alpha/dropdown.css.map +1 -1
  26. data/app/components/primer/alpha/layout.css +1 -1
  27. data/app/components/primer/alpha/layout.css.map +1 -1
  28. data/app/components/primer/alpha/menu.css +1 -1
  29. data/app/components/primer/alpha/menu.css.map +1 -1
  30. data/app/components/primer/alpha/nav_list/divider.rb +1 -0
  31. data/app/components/primer/alpha/nav_list/group.rb +1 -0
  32. data/app/components/primer/alpha/nav_list/heading.rb +1 -0
  33. data/app/components/primer/alpha/nav_list/item.rb +1 -0
  34. data/app/components/primer/alpha/nav_list.rb +1 -0
  35. data/app/components/primer/alpha/octicon_symbols.html.erb +1 -1
  36. data/app/components/primer/alpha/overlay.css +1 -1
  37. data/app/components/primer/alpha/overlay.css.json +0 -1
  38. data/app/components/primer/alpha/overlay.css.map +1 -1
  39. data/app/components/primer/alpha/segmented_control.css +1 -1
  40. data/app/components/primer/alpha/segmented_control.css.json +0 -1
  41. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  42. data/app/components/primer/alpha/segmented_control.js +2 -1
  43. data/app/components/primer/alpha/segmented_control.pcss +0 -4
  44. data/app/components/primer/alpha/tab_nav.css +1 -1
  45. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  46. data/app/components/primer/alpha/text_field.css +1 -1
  47. data/app/components/primer/alpha/text_field.css.json +11 -5
  48. data/app/components/primer/alpha/text_field.css.map +1 -1
  49. data/app/components/primer/alpha/text_field.pcss +10 -1
  50. data/app/components/primer/alpha/toggle_switch.css +1 -1
  51. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  52. data/app/components/primer/alpha/underline_nav.css +1 -1
  53. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  54. data/app/components/primer/alpha/x_banner.js +2 -1
  55. data/app/components/primer/anchored_position.js +2 -1
  56. data/app/components/primer/beta/auto_complete/item.rb +1 -1
  57. data/app/components/primer/beta/avatar.rb +1 -1
  58. data/app/components/primer/beta/base_button.rb +1 -1
  59. data/app/components/primer/beta/blankslate.css +1 -1
  60. data/app/components/primer/beta/blankslate.css.json +1 -0
  61. data/app/components/primer/beta/blankslate.css.map +1 -1
  62. data/app/components/primer/beta/blankslate.html.erb +16 -14
  63. data/app/components/primer/beta/blankslate.pcss +52 -2
  64. data/app/components/primer/beta/border_box.css +1 -1
  65. data/app/components/primer/beta/border_box.css.map +1 -1
  66. data/app/components/primer/beta/button.css +1 -1
  67. data/app/components/primer/beta/button.css.json +0 -1
  68. data/app/components/primer/beta/button.css.map +1 -1
  69. data/app/components/primer/beta/button.html.erb +18 -20
  70. data/app/components/primer/beta/button.pcss +0 -5
  71. data/app/components/primer/beta/button.rb +3 -0
  72. data/app/components/primer/beta/button_group.css +1 -1
  73. data/app/components/primer/beta/button_group.css.json +2 -4
  74. data/app/components/primer/beta/button_group.css.map +1 -1
  75. data/app/components/primer/beta/button_group.html.erb +3 -1
  76. data/app/components/primer/beta/button_group.pcss +2 -4
  77. data/app/components/primer/beta/button_group.rb +41 -12
  78. data/app/components/primer/beta/clipboard_copy.rb +4 -0
  79. data/app/components/primer/beta/clipboard_copy_button.rb +25 -0
  80. data/app/components/primer/beta/counter.rb +1 -1
  81. data/app/components/primer/beta/flash.html.erb +1 -1
  82. data/app/components/primer/beta/icon_button.html.erb +4 -6
  83. data/app/components/primer/beta/icon_button.rb +1 -3
  84. data/app/components/primer/beta/label.css +1 -1
  85. data/app/components/primer/beta/label.css.map +1 -1
  86. data/app/components/primer/beta/link.css +1 -1
  87. data/app/components/primer/beta/link.css.map +1 -1
  88. data/app/components/primer/beta/nav_list.js +14 -7
  89. data/app/components/primer/beta/subhead.css +1 -1
  90. data/app/components/primer/beta/subhead.css.json +2 -0
  91. data/app/components/primer/beta/subhead.css.map +1 -1
  92. data/app/components/primer/beta/subhead.pcss +8 -1
  93. data/app/components/primer/beta/subhead.rb +9 -1
  94. data/app/components/primer/focus_group.js +2 -1
  95. data/app/components/primer/open_project/page_header.css +1 -1
  96. data/app/components/primer/open_project/page_header.css.json +4 -1
  97. data/app/components/primer/open_project/page_header.css.map +1 -1
  98. data/app/components/primer/open_project/page_header.html.erb +9 -1
  99. data/app/components/primer/open_project/page_header.pcss +19 -1
  100. data/app/components/primer/open_project/page_header.rb +38 -0
  101. data/app/forms/action_menu_form.rb +20 -0
  102. data/app/forms/immediate_validation_form.rb +2 -2
  103. data/app/lib/primer/fetch_or_fallback_helper.rb +0 -1
  104. data/app/lib/primer/octicon/cache.rb +1 -1
  105. data/lib/primer/classify.rb +0 -2
  106. data/lib/primer/forms/action_menu.html.erb +6 -0
  107. data/lib/primer/forms/action_menu.rb +25 -0
  108. data/lib/primer/forms/acts_as_component.rb +0 -3
  109. data/lib/primer/forms/base.rb +0 -1
  110. data/lib/primer/forms/base_component.rb +0 -2
  111. data/lib/primer/forms/dsl/action_menu_input.rb +36 -0
  112. data/lib/primer/forms/dsl/input.rb +8 -1
  113. data/lib/primer/forms/dsl/input_methods.rb +9 -0
  114. data/lib/primer/forms/dsl/text_field_input.rb +8 -0
  115. data/lib/primer/forms/primer_base_component_wrapper.rb +0 -2
  116. data/lib/primer/forms/primer_text_field.js +40 -5
  117. data/lib/primer/forms/primer_text_field.ts +39 -7
  118. data/lib/primer/forms/validation_message.html.erb +2 -1
  119. data/lib/primer/static/generate_info_arch.rb +1 -2
  120. data/lib/primer/static/generate_previews.rb +0 -2
  121. data/lib/primer/view_components/engine.rb +5 -1
  122. data/lib/primer/view_components/linters/base_linter.rb +3 -2
  123. data/lib/primer/view_components/linters/deprecated_components_counter.rb +1 -1
  124. data/lib/primer/view_components/linters/disallow_action_list.rb +1 -0
  125. data/lib/primer/view_components/linters/severity_schema.rb +1 -0
  126. data/lib/primer/view_components/version.rb +1 -2
  127. data/lib/primer/yard/lookbook_pages_backend.rb +0 -2
  128. data/lib/rubocop/cop/primer/base_cop.rb +1 -1
  129. data/lib/rubocop/cop/primer/deprecated_arguments.rb +0 -2
  130. data/lib/rubocop/cop/primer/deprecated_components.rb +1 -1
  131. data/lib/rubocop/cop/primer/deprecated_label_schemes.rb +1 -1
  132. data/lib/rubocop/cop/primer/deprecated_label_variants.rb +1 -1
  133. data/previews/primer/alpha/octicon_symbols_preview/default.html.erb +6 -0
  134. data/previews/primer/alpha/octicon_symbols_preview/playground.html.erb +13 -0
  135. data/previews/primer/alpha/octicon_symbols_preview.rb +21 -0
  136. data/previews/primer/alpha/text_field_preview.rb +5 -0
  137. data/previews/primer/beta/avatar_preview.rb +6 -0
  138. data/previews/primer/beta/button_group_preview.rb +11 -0
  139. data/previews/primer/beta/clipboard_copy_button_preview.rb +29 -0
  140. data/previews/primer/beta/subhead_preview.rb +32 -4
  141. data/previews/primer/forms_preview/action_menu_form.html.erb +3 -0
  142. data/previews/primer/forms_preview.rb +4 -0
  143. data/previews/primer/open_project/page_header_preview/context_bar_actions.html.erb +25 -0
  144. data/previews/primer/open_project/page_header_preview/playground.html.erb +32 -0
  145. data/previews/primer/open_project/page_header_preview.rb +48 -9
  146. data/static/arguments.json +75 -13
  147. data/static/audited_at.json +2 -0
  148. data/static/classes.json +18 -3
  149. data/static/constants.json +32 -1
  150. data/static/info_arch.json +381 -28
  151. data/static/previews.json +172 -0
  152. data/static/statuses.json +2 -0
  153. metadata +16 -4
data/static/previews.json CHANGED
@@ -1176,6 +1176,19 @@
1176
1176
  ]
1177
1177
  }
1178
1178
  },
1179
+ {
1180
+ "preview_path": "primer/beta/avatar/size_64",
1181
+ "name": "size_64",
1182
+ "snapshot": "true",
1183
+ "skip_rules": {
1184
+ "wont_fix": [
1185
+ "region"
1186
+ ],
1187
+ "will_fix": [
1188
+ "color-contrast"
1189
+ ]
1190
+ }
1191
+ },
1179
1192
  {
1180
1193
  "preview_path": "primer/beta/avatar/size_80",
1181
1194
  "name": "size_80",
@@ -2243,6 +2256,19 @@
2243
2256
  "color-contrast"
2244
2257
  ]
2245
2258
  }
2259
+ },
2260
+ {
2261
+ "preview_path": "primer/beta/button_group/with_clipboard_copy_button",
2262
+ "name": "with_clipboard_copy_button",
2263
+ "snapshot": "true",
2264
+ "skip_rules": {
2265
+ "wont_fix": [
2266
+ "region"
2267
+ ],
2268
+ "will_fix": [
2269
+ "color-contrast"
2270
+ ]
2271
+ }
2246
2272
  }
2247
2273
  ]
2248
2274
  },
@@ -2603,6 +2629,53 @@
2603
2629
  }
2604
2630
  ]
2605
2631
  },
2632
+ {
2633
+ "name": "clipboard_copy_button",
2634
+ "component": "ClipboardCopyButton",
2635
+ "status": "beta",
2636
+ "lookup_path": "primer/beta/clipboard_copy_button",
2637
+ "examples": [
2638
+ {
2639
+ "preview_path": "primer/beta/clipboard_copy_button/playground",
2640
+ "name": "playground",
2641
+ "snapshot": "false",
2642
+ "skip_rules": {
2643
+ "wont_fix": [
2644
+ "region"
2645
+ ],
2646
+ "will_fix": [
2647
+ "color-contrast"
2648
+ ]
2649
+ }
2650
+ },
2651
+ {
2652
+ "preview_path": "primer/beta/clipboard_copy_button/default",
2653
+ "name": "default",
2654
+ "snapshot": "true",
2655
+ "skip_rules": {
2656
+ "wont_fix": [
2657
+ "region"
2658
+ ],
2659
+ "will_fix": [
2660
+ "color-contrast"
2661
+ ]
2662
+ }
2663
+ },
2664
+ {
2665
+ "preview_path": "primer/beta/clipboard_copy_button/with_tooltip",
2666
+ "name": "with_tooltip",
2667
+ "snapshot": "true",
2668
+ "skip_rules": {
2669
+ "wont_fix": [
2670
+ "region"
2671
+ ],
2672
+ "will_fix": [
2673
+ "color-contrast"
2674
+ ]
2675
+ }
2676
+ }
2677
+ ]
2678
+ },
2606
2679
  {
2607
2680
  "name": "close_button",
2608
2681
  "component": "CloseButton",
@@ -4599,6 +4672,40 @@
4599
4672
  }
4600
4673
  ]
4601
4674
  },
4675
+ {
4676
+ "name": "octicon_symbols",
4677
+ "component": "OcticonSymbols",
4678
+ "status": "alpha",
4679
+ "lookup_path": "primer/alpha/octicon_symbols",
4680
+ "examples": [
4681
+ {
4682
+ "preview_path": "primer/alpha/octicon_symbols/playground",
4683
+ "name": "playground",
4684
+ "snapshot": "false",
4685
+ "skip_rules": {
4686
+ "wont_fix": [
4687
+ "region"
4688
+ ],
4689
+ "will_fix": [
4690
+ "color-contrast"
4691
+ ]
4692
+ }
4693
+ },
4694
+ {
4695
+ "preview_path": "primer/alpha/octicon_symbols/default",
4696
+ "name": "default",
4697
+ "snapshot": "true",
4698
+ "skip_rules": {
4699
+ "wont_fix": [
4700
+ "region"
4701
+ ],
4702
+ "will_fix": [
4703
+ "color-contrast"
4704
+ ]
4705
+ }
4706
+ }
4707
+ ]
4708
+ },
4602
4709
  {
4603
4710
  "name": "overlay",
4604
4711
  "component": "Overlay",
@@ -4781,6 +4888,32 @@
4781
4888
  "color-contrast"
4782
4889
  ]
4783
4890
  }
4891
+ },
4892
+ {
4893
+ "preview_path": "primer/open_project/page_header/parent_link",
4894
+ "name": "parent_link",
4895
+ "snapshot": "false",
4896
+ "skip_rules": {
4897
+ "wont_fix": [
4898
+ "region"
4899
+ ],
4900
+ "will_fix": [
4901
+ "color-contrast"
4902
+ ]
4903
+ }
4904
+ },
4905
+ {
4906
+ "preview_path": "primer/open_project/page_header/context_bar_actions",
4907
+ "name": "context_bar_actions",
4908
+ "snapshot": "false",
4909
+ "skip_rules": {
4910
+ "wont_fix": [
4911
+ "region"
4912
+ ],
4913
+ "will_fix": [
4914
+ "color-contrast"
4915
+ ]
4916
+ }
4784
4917
  }
4785
4918
  ]
4786
4919
  },
@@ -5836,6 +5969,32 @@
5836
5969
  "color-contrast"
5837
5970
  ]
5838
5971
  }
5972
+ },
5973
+ {
5974
+ "preview_path": "primer/beta/subhead/large_header",
5975
+ "name": "large_header",
5976
+ "snapshot": "false",
5977
+ "skip_rules": {
5978
+ "wont_fix": [
5979
+ "region"
5980
+ ],
5981
+ "will_fix": [
5982
+ "color-contrast"
5983
+ ]
5984
+ }
5985
+ },
5986
+ {
5987
+ "preview_path": "primer/beta/subhead/medium_header",
5988
+ "name": "medium_header",
5989
+ "snapshot": "false",
5990
+ "skip_rules": {
5991
+ "wont_fix": [
5992
+ "region"
5993
+ ],
5994
+ "will_fix": [
5995
+ "color-contrast"
5996
+ ]
5997
+ }
5839
5998
  }
5840
5999
  ]
5841
6000
  },
@@ -6319,6 +6478,19 @@
6319
6478
  ]
6320
6479
  }
6321
6480
  },
6481
+ {
6482
+ "preview_path": "primer/alpha/text_field/with_auto_check_accepted",
6483
+ "name": "with_auto_check_accepted",
6484
+ "snapshot": "false",
6485
+ "skip_rules": {
6486
+ "wont_fix": [
6487
+ "region"
6488
+ ],
6489
+ "will_fix": [
6490
+ "color-contrast"
6491
+ ]
6492
+ }
6493
+ },
6322
6494
  {
6323
6495
  "preview_path": "primer/alpha/text_field/with_auto_check_error",
6324
6496
  "name": "with_auto_check_error",
data/static/statuses.json CHANGED
@@ -73,6 +73,8 @@
73
73
  "Primer::Beta::Button": "beta",
74
74
  "Primer::Beta::ButtonGroup": "beta",
75
75
  "Primer::Beta::ClipboardCopy": "beta",
76
+ "Primer::Beta::ClipboardCopyBaseButton": "beta",
77
+ "Primer::Beta::ClipboardCopyButton": "beta",
76
78
  "Primer::Beta::CloseButton": "beta",
77
79
  "Primer::Beta::Counter": "beta",
78
80
  "Primer::Beta::Details": "beta",
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.15.0
4
+ version: 0.17.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: 2023-11-16 00:00:00.000000000 Z
12
+ date: 2023-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 19.7.0
48
+ version: 19.8.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 19.7.0
55
+ version: 19.8.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: view_component
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -344,6 +344,7 @@ files:
344
344
  - app/components/primer/beta/clipboard_copy.js
345
345
  - app/components/primer/beta/clipboard_copy.rb
346
346
  - app/components/primer/beta/clipboard_copy.ts
347
+ - app/components/primer/beta/clipboard_copy_button.rb
347
348
  - app/components/primer/beta/close_button.rb
348
349
  - app/components/primer/beta/counter.css
349
350
  - app/components/primer/beta/counter.css.json
@@ -478,6 +479,7 @@ files:
478
479
  - app/components/primer/truncate.css.map
479
480
  - app/components/primer/truncate.pcss
480
481
  - app/components/primer/truncate.rb
482
+ - app/forms/action_menu_form.rb
481
483
  - app/forms/after_content_form.rb
482
484
  - app/forms/after_content_form/after_content.html.erb
483
485
  - app/forms/application_form.rb
@@ -545,6 +547,8 @@ files:
545
547
  - lib/primer/example_image.rb
546
548
  - lib/primer/form_components.rb
547
549
  - lib/primer/forms.rb
550
+ - lib/primer/forms/action_menu.html.erb
551
+ - lib/primer/forms/action_menu.rb
548
552
  - lib/primer/forms/acts_as_component.rb
549
553
  - lib/primer/forms/base.html.erb
550
554
  - lib/primer/forms/base.rb
@@ -559,6 +563,7 @@ files:
559
563
  - lib/primer/forms/check_box.rb
560
564
  - lib/primer/forms/check_box_group.html.erb
561
565
  - lib/primer/forms/check_box_group.rb
566
+ - lib/primer/forms/dsl/action_menu_input.rb
562
567
  - lib/primer/forms/dsl/button_input.rb
563
568
  - lib/primer/forms/dsl/check_box_group_input.rb
564
569
  - lib/primer/forms/dsl/check_box_input.rb
@@ -748,6 +753,9 @@ files:
748
753
  - previews/primer/alpha/menu_preview/playground.html.erb
749
754
  - previews/primer/alpha/multi_input_preview.rb
750
755
  - previews/primer/alpha/multi_input_preview/playground.html.erb
756
+ - previews/primer/alpha/octicon_symbols_preview.rb
757
+ - previews/primer/alpha/octicon_symbols_preview/default.html.erb
758
+ - previews/primer/alpha/octicon_symbols_preview/playground.html.erb
751
759
  - previews/primer/alpha/overlay_preview.rb
752
760
  - previews/primer/alpha/overlay_preview/in_an_action_menu.html.erb
753
761
  - previews/primer/alpha/overlay_preview/middle_of_page.html.erb
@@ -800,6 +808,7 @@ files:
800
808
  - previews/primer/beta/button_preview/trailing_counter.html.erb
801
809
  - previews/primer/beta/button_preview/trailing_visual.html.erb
802
810
  - previews/primer/beta/button_preview/with_tooltip.html.erb
811
+ - previews/primer/beta/clipboard_copy_button_preview.rb
803
812
  - previews/primer/beta/clipboard_copy_preview.rb
804
813
  - previews/primer/beta/clipboard_copy_preview/element.html.erb
805
814
  - previews/primer/beta/close_button_preview.rb
@@ -826,6 +835,7 @@ files:
826
835
  - previews/primer/beta/truncate_preview.rb
827
836
  - previews/primer/box_preview.rb
828
837
  - previews/primer/forms_preview.rb
838
+ - previews/primer/forms_preview/action_menu_form.html.erb
829
839
  - previews/primer/forms_preview/after_content_form.html.erb
830
840
  - previews/primer/forms_preview/array_check_box_group_form.html.erb
831
841
  - previews/primer/forms_preview/caption_template_form.html.erb
@@ -852,6 +862,8 @@ files:
852
862
  - previews/primer/open_project/grid_layout_preview.rb
853
863
  - previews/primer/open_project/page_header_preview.rb
854
864
  - previews/primer/open_project/page_header_preview/actions.html.erb
865
+ - previews/primer/open_project/page_header_preview/context_bar_actions.html.erb
866
+ - previews/primer/open_project/page_header_preview/playground.html.erb
855
867
  - previews/primer/url_helpers.rb
856
868
  - static/arguments.json
857
869
  - static/assets/view-components.svg