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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 562981d9062264e2aa0edcc29f32861219bb824aef926c55b65aa568e545298f
4
- data.tar.gz: b346df5da6b34540c15f3c734d29f858fd161e7ddd6d53d1a71a74777004ca9e
3
+ metadata.gz: f3bb3a611a9a7cd9e51255ba5919ca989951eb39c4224bff08fa2969f4444db9
4
+ data.tar.gz: 0bfe3b3dd742c4efc8bcb80e4b003c9fa1e96612acdebd9c337c66cf1a36c434
5
5
  SHA512:
6
- metadata.gz: 9a2089bd41e6af5146c01e9a98c78bf6fe77f1dc4e909ba0c36d5d505826c8e787c8d36925d97e7b8be84c8fda92e996dd6d9c45705d27ef9556517aa7378178
7
- data.tar.gz: b7e2e56a0ab000d88375d6e5670d85de5382185074737062e52add7e3a16fca3679ac79c6d4821f27bfb932b2225cfb4ad0e03ccb2e812c94b702922907ca8bd
6
+ metadata.gz: 3bd1609d6cf6a67c989a14bfdae28c99040b96b1b7f8f3027582888f94776af0a158002532deea1ec7e6cb8048abe1a0d21613b196584d645b4626ffeb0cf86b
7
+ data.tar.gz: 8d569293f87494cd71de6c8223823d48acee0d8216ec897e9a3673f1e77edeb656c816bbec92d87ebf64895fdb400314a164185f0093c01cf46027efba9465d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2367](https://github.com/primer/view_components/pull/2367) [`b2acc97d`](https://github.com/opf/primer_view_components/commit/b2acc97d69203094911d013eea07c8e0de6daa02) Thanks [@camertron](https://github.com/camertron)! - Add an ActionMenu form input
8
+
9
+ - [#2335](https://github.com/primer/view_components/pull/2335) [`684f9a51`](https://github.com/opf/primer_view_components/commit/684f9a51a1ccb006a9ce2fbadb296ca5c68bd560) Thanks [@camertron](https://github.com/camertron)! - Add a ClipboardCopyButton component
10
+
11
+ - [#2365](https://github.com/primer/view_components/pull/2365) [`314c0f1f`](https://github.com/opf/primer_view_components/commit/314c0f1f1ec8152c0a0862ee3468e88efcad0ec8) Thanks [@camertron](https://github.com/camertron)! - Remove touch target gaps between ActionBar items
12
+
13
+ - [#2296](https://github.com/primer/view_components/pull/2296) [`3374555e`](https://github.com/opf/primer_view_components/commit/3374555ee1d2c24e88ca4a53cc58221a0ec2bc51) Thanks [@jonrohan](https://github.com/jonrohan)! - Removing the button wrapper `Button--withTooltip` when using a tooltip with a button.
14
+
15
+ - [#2330](https://github.com/primer/view_components/pull/2330) [`6bf8da54`](https://github.com/opf/primer_view_components/commit/6bf8da54220c3301ad0bc2bbb44c2905ad6db89c) Thanks [@camertron](https://github.com/camertron)! - Allow several font sizes for Subhead headings
16
+
17
+ - [#2336](https://github.com/primer/view_components/pull/2336) [`94db2c4b`](https://github.com/opf/primer_view_components/commit/94db2c4bc590e6b41760f5a8867c6b1cae669a1d) Thanks [@camertron](https://github.com/camertron)! - Add Rails 7.1 support
18
+
19
+ - [#2366](https://github.com/primer/view_components/pull/2366) [`73d05613`](https://github.com/opf/primer_view_components/commit/73d05613ec2a5eb2731b170927c505e9c688f4e0) Thanks [@camertron](https://github.com/camertron)! - Add missing 64px Avatar size
20
+
21
+ - [#2377](https://github.com/primer/view_components/pull/2377) [`482152ae`](https://github.com/opf/primer_view_components/commit/482152aec156982cc309aaa830e46269a46ef355) Thanks [@gwwar](https://github.com/gwwar)! - Updates Primer::Alpha::TextField to support success inline validation messages and allows validation messages to contain html fragments.
22
+ <!-- Changed components: Primer::Alpha::TextField -->
23
+
24
+ ### Patch Changes
25
+
26
+ - [#2360](https://github.com/primer/view_components/pull/2360) [`94b7a445`](https://github.com/opf/primer_view_components/commit/94b7a4455fbe0c80472034c7268f4beaa654cd2f) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Removes redundant `aria-disabled` from list item within `ActionMenu`.
27
+
28
+ - [#2337](https://github.com/primer/view_components/pull/2337) [`0189b553`](https://github.com/opf/primer_view_components/commit/0189b553f9fb94858d5526a669d006dc0b2a6050) Thanks [@mperrotti](https://github.com/mperrotti)! - Adapts Blankslate to render proportionally in narrow areas
29
+
30
+ <!-- Changed components: Blankslate -->
31
+
32
+ - [#2383](https://github.com/primer/view_components/pull/2383) [`7c2e6f6c`](https://github.com/opf/primer_view_components/commit/7c2e6f6c6c3cc8cd69758b36760f4e18ec4e48ba) Thanks [@strackoverflow](https://github.com/strackoverflow)! - Fix an issue where ActionMenu wouldn't scroll its contents
33
+
34
+ - [#2384](https://github.com/primer/view_components/pull/2384) [`2c778661`](https://github.com/opf/primer_view_components/commit/2c7786615ceb6b0149b87fb9d01ad31f977a908d) Thanks [@camertron](https://github.com/camertron)! - Re-introduce require 'primer/form_helper' for setups that rely on Rails eager load paths
35
+
36
+ ## 0.16.0
37
+
38
+ ### Minor Changes
39
+
40
+ - [#49](https://github.com/opf/primer_view_components/pull/49) [`be7884dc`](https://github.com/opf/primer_view_components/commit/be7884dce8b62b1795dc9337be68e12355ec1119) Thanks [@dominic-braeunlein](https://github.com/dominic-braeunlein)! - Extend page header with parent link, context bar actions and responsiveness
41
+
3
42
  ## 0.15.0
4
43
 
5
44
  ### Minor Changes