openproject-primer_view_components 0.22.2 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +53 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/action_list.d.ts +16 -0
  4. data/app/assets/javascripts/app/components/primer/beta/nav_list.d.ts +3 -0
  5. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
  6. data/app/assets/javascripts/primer_view_components.js +1 -1
  7. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  8. data/app/assets/styles/primer_view_components.css +1 -1
  9. data/app/assets/styles/primer_view_components.css.map +1 -1
  10. data/app/components/primer/alpha/action_bar_element.js +4 -6
  11. data/app/components/primer/alpha/action_list/item.rb +19 -6
  12. data/app/components/primer/alpha/action_list.css +1 -1
  13. data/app/components/primer/alpha/action_list.css.json +2 -0
  14. data/app/components/primer/alpha/action_list.css.map +1 -1
  15. data/app/components/primer/alpha/action_list.d.ts +16 -0
  16. data/app/components/primer/alpha/action_list.html.erb +19 -17
  17. data/app/components/primer/alpha/action_list.js +69 -0
  18. data/app/components/primer/alpha/action_list.pcss +8 -0
  19. data/app/components/primer/alpha/action_list.ts +58 -0
  20. data/app/components/primer/alpha/action_menu/action_menu_element.js +12 -19
  21. data/app/components/primer/alpha/banner.css +1 -1
  22. data/app/components/primer/alpha/banner.css.map +1 -1
  23. data/app/components/primer/alpha/banner.pcss +4 -4
  24. data/app/components/primer/alpha/banner.rb +17 -3
  25. data/app/components/primer/alpha/dialog.css +1 -1
  26. data/app/components/primer/alpha/dialog.css.json +2 -0
  27. data/app/components/primer/alpha/dialog.css.map +1 -1
  28. data/app/components/primer/alpha/dialog.pcss +9 -0
  29. data/app/components/primer/alpha/dropdown.css +1 -1
  30. data/app/components/primer/alpha/dropdown.css.map +1 -1
  31. data/app/components/primer/alpha/dropdown.pcss +1 -1
  32. data/app/components/primer/alpha/modal_dialog.js +8 -10
  33. data/app/components/primer/alpha/segmented_control.js +2 -3
  34. data/app/components/primer/alpha/text_field.css +1 -1
  35. data/app/components/primer/alpha/text_field.css.json +2 -0
  36. data/app/components/primer/alpha/text_field.css.map +1 -1
  37. data/app/components/primer/alpha/text_field.pcss +10 -0
  38. data/app/components/primer/alpha/toggle_switch.rb +2 -2
  39. data/app/components/primer/alpha/tool_tip.js +5 -7
  40. data/app/components/primer/beta/auto_complete/auto_complete.html.erb +9 -9
  41. data/app/components/primer/beta/breadcrumbs.css +1 -1
  42. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  43. data/app/components/primer/beta/breadcrumbs.pcss +3 -1
  44. data/app/components/primer/beta/button.css +1 -1
  45. data/app/components/primer/beta/button.css.json +1 -1
  46. data/app/components/primer/beta/button.css.map +1 -1
  47. data/app/components/primer/beta/button.pcss +5 -5
  48. data/app/components/primer/beta/button_group.rb +53 -1
  49. data/app/components/primer/beta/flash.css +1 -1
  50. data/app/components/primer/beta/flash.css.map +1 -1
  51. data/app/components/primer/beta/flash.pcss +4 -4
  52. data/app/components/primer/beta/flash.rb +3 -1
  53. data/app/components/primer/beta/nav_list.d.ts +3 -0
  54. data/app/components/primer/beta/nav_list.html.erb +1 -1
  55. data/app/components/primer/beta/nav_list.js +31 -12
  56. data/app/components/primer/beta/nav_list.ts +18 -1
  57. data/app/components/primer/beta/nav_list_group_element.js +6 -4
  58. data/app/components/primer/beta/nav_list_group_element.ts +3 -0
  59. data/app/components/primer/beta/popover.css +1 -1
  60. data/app/components/primer/beta/popover.css.map +1 -1
  61. data/app/components/primer/beta/popover.pcss +3 -0
  62. data/app/components/primer/beta/popover.rb +0 -1
  63. data/app/components/primer/dialog_helper.js +5 -7
  64. data/app/components/primer/focus_group.js +9 -12
  65. data/app/components/primer/open_project/page_header.css +1 -1
  66. data/app/components/primer/open_project/page_header.css.json +2 -4
  67. data/app/components/primer/open_project/page_header.css.map +1 -1
  68. data/app/components/primer/open_project/page_header.html.erb +15 -3
  69. data/app/components/primer/open_project/page_header.pcss +4 -17
  70. data/app/components/primer/open_project/page_header.rb +17 -28
  71. data/app/components/primer/primer.d.ts +1 -0
  72. data/app/components/primer/primer.js +1 -0
  73. data/app/components/primer/primer.ts +1 -0
  74. data/app/forms/auto_complete_form.rb +18 -0
  75. data/app/forms/select_form.rb +10 -0
  76. data/lib/primer/deprecations.yml +5 -0
  77. data/lib/primer/forms/auto_complete.html.erb +6 -0
  78. data/lib/primer/forms/auto_complete.rb +56 -0
  79. data/lib/primer/forms/builder.rb +19 -0
  80. data/lib/primer/forms/check_box_group.html.erb +4 -4
  81. data/lib/primer/forms/check_box_group.rb +0 -3
  82. data/lib/primer/forms/dsl/auto_complete_input.rb +33 -0
  83. data/lib/primer/forms/dsl/check_box_group_input.rb +8 -0
  84. data/lib/primer/forms/dsl/input.rb +8 -2
  85. data/lib/primer/forms/dsl/input_methods.rb +9 -0
  86. data/lib/primer/forms/dsl/radio_button_group_input.rb +8 -0
  87. data/lib/primer/forms/dsl/select_input.rb +5 -1
  88. data/lib/primer/forms/form_control.rb +1 -2
  89. data/lib/primer/forms/primer_multi_input.js +2 -3
  90. data/lib/primer/forms/primer_text_field.js +4 -6
  91. data/lib/primer/forms/primer_text_field.ts +2 -2
  92. data/lib/primer/forms/radio_button_group.html.erb +4 -4
  93. data/lib/primer/forms/radio_button_group.rb +0 -3
  94. data/lib/primer/forms/select.html.erb +1 -0
  95. data/lib/primer/forms/select.rb +9 -5
  96. data/lib/primer/view_components/version.rb +2 -2
  97. data/previews/primer/alpha/action_list_preview.rb +42 -0
  98. data/previews/primer/alpha/select_preview.rb +12 -1
  99. data/previews/primer/alpha/text_area_preview.rb +7 -1
  100. data/previews/primer/alpha/text_field_preview.rb +7 -1
  101. data/previews/primer/beta/button_group_preview/with_menu_button.html.erb +7 -0
  102. data/previews/primer/beta/button_group_preview.rb +6 -0
  103. data/previews/primer/beta/nav_list_preview.rb +43 -0
  104. data/previews/primer/forms_preview/auto_complete_form.html.erb +3 -0
  105. data/previews/primer/forms_preview/select_form.html.erb +1 -1
  106. data/previews/primer/forms_preview.rb +2 -0
  107. data/previews/primer/open_project/page_header_preview/actions.html.erb +9 -7
  108. data/previews/primer/open_project/page_header_preview/context_bar_actions.html.erb +8 -6
  109. data/previews/primer/open_project/page_header_preview/playground.html.erb +4 -4
  110. data/previews/primer/open_project/page_header_preview.rb +11 -15
  111. data/static/arguments.json +30 -8
  112. data/static/audited_at.json +1 -0
  113. data/static/classes.json +2 -5
  114. data/static/constants.json +25 -13
  115. data/static/info_arch.json +226 -25
  116. data/static/previews.json +161 -5
  117. data/static/statuses.json +2 -1
  118. metadata +12 -3
  119. data/previews/primer/beta/button_group_preview/action_menus.html.erb +0 -8
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.22.2
4
+ version: 0.24.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-02-15 00:00:00.000000000 Z
12
+ date: 2024-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -83,6 +83,7 @@ files:
83
83
  - LICENSE.txt
84
84
  - README.md
85
85
  - app/assets/javascripts/app/components/primer/alpha/action_bar_element.d.ts
86
+ - app/assets/javascripts/app/components/primer/alpha/action_list.d.ts
86
87
  - app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
87
88
  - app/assets/javascripts/app/components/primer/alpha/dropdown.d.ts
88
89
  - app/assets/javascripts/app/components/primer/alpha/dropdown/menu.d.ts
@@ -124,9 +125,12 @@ files:
124
125
  - app/components/primer/alpha/action_list.css
125
126
  - app/components/primer/alpha/action_list.css.json
126
127
  - app/components/primer/alpha/action_list.css.map
128
+ - app/components/primer/alpha/action_list.d.ts
127
129
  - app/components/primer/alpha/action_list.html.erb
130
+ - app/components/primer/alpha/action_list.js
128
131
  - app/components/primer/alpha/action_list.pcss
129
132
  - app/components/primer/alpha/action_list.rb
133
+ - app/components/primer/alpha/action_list.ts
130
134
  - app/components/primer/alpha/action_list/divider.rb
131
135
  - app/components/primer/alpha/action_list/form_wrapper.html.erb
132
136
  - app/components/primer/alpha/action_list/form_wrapper.rb
@@ -507,6 +511,7 @@ files:
507
511
  - app/forms/application_form.rb
508
512
  - app/forms/array_check_box_group_form.rb
509
513
  - app/forms/array_check_box_group_form/places_lopez_caption.html.erb
514
+ - app/forms/auto_complete_form.rb
510
515
  - app/forms/both_types_of_caption_form.rb
511
516
  - app/forms/both_types_of_caption_form/first_name_caption.html.erb
512
517
  - app/forms/caption_template_form.rb
@@ -574,6 +579,8 @@ files:
574
579
  - lib/primer/forms/action_menu.html.erb
575
580
  - lib/primer/forms/action_menu.rb
576
581
  - lib/primer/forms/acts_as_component.rb
582
+ - lib/primer/forms/auto_complete.html.erb
583
+ - lib/primer/forms/auto_complete.rb
577
584
  - lib/primer/forms/base.html.erb
578
585
  - lib/primer/forms/base.rb
579
586
  - lib/primer/forms/base_component.rb
@@ -588,6 +595,7 @@ files:
588
595
  - lib/primer/forms/check_box_group.html.erb
589
596
  - lib/primer/forms/check_box_group.rb
590
597
  - lib/primer/forms/dsl/action_menu_input.rb
598
+ - lib/primer/forms/dsl/auto_complete_input.rb
591
599
  - lib/primer/forms/dsl/button_input.rb
592
600
  - lib/primer/forms/dsl/check_box_group_input.rb
593
601
  - lib/primer/forms/dsl/check_box_input.rb
@@ -827,7 +835,7 @@ files:
827
835
  - previews/primer/beta/border_box_preview.rb
828
836
  - previews/primer/beta/breadcrumbs_preview.rb
829
837
  - previews/primer/beta/button_group_preview.rb
830
- - previews/primer/beta/button_group_preview/action_menus.html.erb
838
+ - previews/primer/beta/button_group_preview/with_menu_button.html.erb
831
839
  - previews/primer/beta/button_preview.rb
832
840
  - previews/primer/beta/button_preview/all_schemes.html.erb
833
841
  - previews/primer/beta/button_preview/invisible_all_visuals.html.erb
@@ -867,6 +875,7 @@ files:
867
875
  - previews/primer/forms_preview/action_menu_form.html.erb
868
876
  - previews/primer/forms_preview/after_content_form.html.erb
869
877
  - previews/primer/forms_preview/array_check_box_group_form.html.erb
878
+ - previews/primer/forms_preview/auto_complete_form.html.erb
870
879
  - previews/primer/forms_preview/caption_template_form.html.erb
871
880
  - previews/primer/forms_preview/check_box_group_form.html.erb
872
881
  - previews/primer/forms_preview/check_box_with_nested_form.html.erb
@@ -1,8 +0,0 @@
1
- <%= render(Primer::Beta::ButtonGroup.new) do |component| %>
2
- <% component.with_button() { "Main menu" } %>
3
- <% component.with_button(icon: "triangle-down", "aria-label": "secondary menu", data: { "menu-id": "my-id" }) %>
4
- <% end %>
5
-
6
- <%= render(Primer::Alpha::ActionMenu.new(anchor_align: :end, menu_id: "my-id")) do |component| %>
7
- <% component.with_item(label: "Item", tag: :button, value: "") %>
8
- <% end %>