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
@@ -129,6 +129,49 @@ module Primer
129
129
  # @label Trailing action
130
130
  # @snapshot
131
131
  def trailing_action; end
132
+
133
+ # @label Long label truncate overflow
134
+ #
135
+ # @param truncate_label [Symbol] select [none, truncate, show_tooltip]
136
+ # @snapshot
137
+ def long_label_with_tooltip(truncate_label: :show_tooltip)
138
+ render(Primer::Beta::NavList.new(aria: { label: "List heading" })) do |component|
139
+ component.with_item(
140
+ label: "Really really long label that may wrap, truncate, or appear as a tooltip",
141
+ truncate_label: truncate_label
142
+ ) do |item|
143
+ item.with_trailing_visual_icon(icon: :plus)
144
+ end
145
+ end
146
+ end
147
+
148
+ def long_label_wrap(truncate_label: :none)
149
+ render(Primer::Beta::NavList.new(aria: { label: "List heading" })) do |component|
150
+ component.with_item(
151
+ label: "Really really long label that may wrap, truncate, or appear as a tooltip",
152
+ truncate_label: truncate_label
153
+ )
154
+ end
155
+ end
156
+
157
+ def long_label_truncate_no_tooltip(truncate_label: :truncate)
158
+ render(Primer::Beta::NavList.new(aria: { label: "List heading" })) do |component|
159
+ component.with_item(
160
+ label: "Really really long label that may wrap, truncate, or appear as a tooltip",
161
+ truncate_label: truncate_label
162
+ )
163
+ end
164
+ end
165
+
166
+ def long_label_show_tooltip_no_truncate_label
167
+ render(Primer::Beta::NavList.new(aria: { label: "List heading" })) do |component|
168
+ component.with_item(
169
+ label: "Really really long label that may wrap, truncate, or appear as a tooltip",
170
+ ) do |item|
171
+ item.with_tooltip(text: "this is a tooltip")
172
+ end
173
+ end
174
+ end
132
175
  end
133
176
  end
134
177
  end
@@ -0,0 +1,3 @@
1
+ <%= primer_form_with(url: generic_form_submission_path) do |f| %>
2
+ <%= render(AutoCompleteForm.new(f)) %>
3
+ <% end %>
@@ -1,3 +1,3 @@
1
- <%= primer_form_with(url: "/foo") do |f| %>
1
+ <%= primer_form_with(url: generic_form_submission_path) do |f| %>
2
2
  <%= render(SelectForm.new(f)) %>
3
3
  <% end %>
@@ -46,5 +46,7 @@ module Primer
46
46
  def immediate_validation_form; end
47
47
 
48
48
  def example_toggle_switch_form; end
49
+
50
+ def auto_complete_form; end
49
51
  end
50
52
  end
@@ -1,15 +1,18 @@
1
1
  <%= render(Primer::OpenProject::PageHeader.new) do |component| %>
2
- <% component.with_title(tag: :h1) do %>
2
+ <% component.with_title do %>
3
3
  A title
4
4
  <% end %>
5
5
  <% component.with_description do %>
6
6
  A description with actions
7
7
  <% end %>
8
- <% component.with_actions do %>
9
- <%= render(Primer::Alpha::ActionMenu.new) do |component| %>
10
- <% component.with_show_button { "Menu" } %>
11
- <% component.with_item(label: "Item", tag: :button, value: "") %>
12
- <% component.with_item(
8
+ <% component.with_action do %>
9
+ <%= render(Primer::Beta::IconButton.new(icon: 'pencil', 'aria-label': 'Edit')) %>
10
+ <% end %>
11
+ <% component.with_action do %>
12
+ <%= render(Primer::Alpha::ActionMenu.new) do |menu| %>
13
+ <% menu.with_show_button { "Menu" } %>
14
+ <% menu.with_item(label: "Item", tag: :button, value: "") %>
15
+ <% menu.with_item(
13
16
  label: "Show dialog",
14
17
  tag: :button,
15
18
  content_arguments: { "data-show-dialog-id": "my-dialog" },
@@ -19,4 +22,3 @@
19
22
  <% end %>
20
23
  <% end %>
21
24
  <% end %>
22
-
@@ -8,11 +8,14 @@
8
8
  <% component.with_parent_link(href: "#") do %>
9
9
  Parent link
10
10
  <% end %>
11
- <% component.with_context_bar_actions do %>
12
- <%= render(Primer::Alpha::ActionMenu.new) do |component| %>
13
- <% component.with_show_button { "Menu" } %>
14
- <% component.with_item(label: "Item", tag: :button, value: "") %>
15
- <% component.with_item(
11
+ <% component.with_context_bar_action do %>
12
+ <%= render(Primer::Beta::IconButton.new(icon: 'star', 'aria-label': 'Star')) %>
13
+ <% end %>
14
+ <% component.with_context_bar_action do %>
15
+ <%= render(Primer::Alpha::ActionMenu.new) do |menu| %>
16
+ <% menu.with_show_button { "Menu" } %>
17
+ <% menu.with_item(label: "Item", tag: :button, value: "") %>
18
+ <% menu.with_item(
16
19
  label: "Show dialog",
17
20
  tag: :button,
18
21
  content_arguments: { "data-show-dialog-id": "my-dialog" },
@@ -22,4 +25,3 @@
22
25
  <% end %>
23
26
  <% end %>
24
27
  <% end %>
25
-
@@ -1,11 +1,11 @@
1
1
  <%= render Primer::OpenProject::PageHeader.new do |header| %>
2
2
  <%= header.with_title(variant: variant) { title } %>
3
3
  <%= header.with_description { description } %>
4
- <%= header.with_back_button(href: "#", size: back_button_size, 'aria-label': "Back") if with_back_button %>
4
+ <%= header.with_leading_action(icon: with_leading_action, href: '#', 'aria-label': "A leading action") if with_leading_action %>
5
5
  <%= header.with_breadcrumbs(breadcrumb_items) if with_breadcrumbs %>
6
6
  <%= header.with_parent_link(href: "#") { "Parent link" } if with_parent_link %>
7
7
  <% if with_actions %>
8
- <% header.with_actions do %>
8
+ <% header.with_action do %>
9
9
  <%= render(Primer::Alpha::ActionMenu.new) do |component| %>
10
10
  <% component.with_show_button { "Menu" } %>
11
11
  <% component.with_item(label: "Item", tag: :button, value: "") %>
@@ -20,12 +20,12 @@
20
20
  <% end %>
21
21
  <% end %>
22
22
  <% if with_context_bar_actions %>
23
- <% header.with_context_bar_actions do %>
23
+ <% header.with_context_bar_action do %>
24
24
  <%= render(Primer::Beta::IconButton.new(
25
25
  scheme: :default,
26
26
  size: :small,
27
27
  icon: "pencil",
28
- "aria-label": "aria_label"
28
+ "aria-label": "A meaningful label"
29
29
  )) %>
30
30
  <% end %>
31
31
  <% end %>
@@ -18,8 +18,7 @@ module Primer
18
18
  # @param variant [Symbol] select [medium, large]
19
19
  # @param title [String] text
20
20
  # @param description [String] text
21
- # @param with_back_button [Boolean]
22
- # @param back_button_size [Symbol] select [small, medium, large]
21
+ # @param with_leading_action [Symbol] octicon
23
22
  # @param with_breadcrumbs [Boolean]
24
23
  # @param with_actions [Boolean]
25
24
  # @param with_context_bar_actions [Boolean]
@@ -28,8 +27,7 @@ module Primer
28
27
  variant: :large,
29
28
  title: "Hello",
30
29
  description: "Last updated 5 minutes ago by XYZ.",
31
- with_back_button: false,
32
- back_button_size: :medium,
30
+ with_leading_action: :"arrow-left",
33
31
  with_breadcrumbs: false,
34
32
  with_actions: false,
35
33
  with_context_bar_actions: false,
@@ -40,8 +38,7 @@ module Primer
40
38
  render_with_template(locals: { variant: variant,
41
39
  title: title,
42
40
  description: description,
43
- with_back_button: with_back_button,
44
- back_button_size: back_button_size,
41
+ with_leading_action: with_leading_action,
45
42
  with_breadcrumbs: with_breadcrumbs,
46
43
  with_parent_link: with_parent_link,
47
44
  with_actions: with_actions,
@@ -49,10 +46,10 @@ module Primer
49
46
  breadcrumb_items: breadcrumb_items })
50
47
  end
51
48
 
52
- # @label Medium title
53
- def medium_title
49
+ # @label Large title
50
+ def large_title
54
51
  render(Primer::OpenProject::PageHeader.new) do |header|
55
- header.with_title(variant: :medium) { "Hello" }
52
+ header.with_title(variant: :large) { "Hello" }
56
53
  header.with_description { "Last updated 5 minutes ago by XYZ." }
57
54
  end
58
55
  end
@@ -62,18 +59,17 @@ module Primer
62
59
  render_with_template(locals: {})
63
60
  end
64
61
 
65
- # @label With back button (on wide)
66
- # **Back button** is only shown on **wider than narrow screens** by default.
62
+ # @label With leading action (on wide)
63
+ # **Leading action** is only shown on **wide screens** by default.
67
64
  # If you want to override that behaviour please use the system_argument: **display**
68
65
  # e.g. **component.with\_breadcrumbs(display: [:block, :block])**
69
66
  #
70
67
  # @param href [String] text
71
- # @param size [Symbol] select [small, medium, large]
72
- # @param icon [String] select ["arrow-left", "chevron-left", "triangle-left"]
73
- def back_button(href: "#", size: :medium, icon: "arrow-left")
68
+ # @param icon [Symbol] octicon
69
+ def leading_action(href: "#", icon: :"arrow-left")
74
70
  render(Primer::OpenProject::PageHeader.new) do |header|
75
71
  header.with_title { "Hello" }
76
- header.with_back_button(href: href, size: size, icon: icon, 'aria-label': "Back")
72
+ header.with_leading_action(icon: icon, href: href, 'aria-label': "Back")
77
73
  end
78
74
  end
79
75
 
@@ -249,9 +249,9 @@
249
249
  },
250
250
  {
251
251
  "name": "truncate_label",
252
- "type": "Boolean",
253
- "default": "`false`",
254
- "description": "Truncate label with ellipsis."
252
+ "type": "Boolean | Symbol",
253
+ "default": "`:none`",
254
+ "description": "How the label should be truncated when the text does not fit inside the bounds of the list item. One of `false`, `:none`, `:show_tooltip`, `:truncate`, or `true`. Pass `false` or `:none` to wrap label text. Pass `true` or `:truncate` to truncate labels with ellipses. Pass `:show_tooltip` to show the entire label contents in a tooltip when the item is hovered."
255
255
  },
256
256
  {
257
257
  "name": "href",
@@ -2494,7 +2494,7 @@
2494
2494
  "name": "full_width",
2495
2495
  "type": "Boolean",
2496
2496
  "default": "N/A",
2497
- "description": "When set to `true`, the field will take up all the horizontal space allowed by its container."
2497
+ "description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
2498
2498
  },
2499
2499
  {
2500
2500
  "name": "name",
@@ -2624,7 +2624,7 @@
2624
2624
  "name": "full_width",
2625
2625
  "type": "Boolean",
2626
2626
  "default": "N/A",
2627
- "description": "When set to `true`, the field will take up all the horizontal space allowed by its container."
2627
+ "description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
2628
2628
  },
2629
2629
  {
2630
2630
  "name": "name",
@@ -2814,13 +2814,13 @@
2814
2814
  "name": "size",
2815
2815
  "type": "Symbol",
2816
2816
  "default": "`:medium`",
2817
- "description": "What size toggle switch to render. One of `:end` or `:start`."
2817
+ "description": "What size toggle switch to render. One of `:medium` or `:small`."
2818
2818
  },
2819
2819
  {
2820
2820
  "name": "status_label_position",
2821
2821
  "type": "Symbol",
2822
2822
  "default": "`:start`",
2823
- "description": "Which side of the toggle switch to render the status label. One of `:medium` or `:small`."
2823
+ "description": "Which side of the toggle switch to render the status label. One of `:end` or `:start`."
2824
2824
  },
2825
2825
  {
2826
2826
  "name": "system_arguments",
@@ -3436,6 +3436,28 @@
3436
3436
  }
3437
3437
  ]
3438
3438
  },
3439
+ {
3440
+ "component": "ButtonGroup::MenuButton",
3441
+ "status": "alpha",
3442
+ "a11y_reviewed": false,
3443
+ "short_name": "ButtonGroupMenuButton",
3444
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/button_group/menu_button.rb",
3445
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/button_group/menu_button/default/",
3446
+ "parameters": [
3447
+ {
3448
+ "name": "menu_arguments",
3449
+ "type": "Hash",
3450
+ "default": "`{}`",
3451
+ "description": "The arguments accepted by [ActionMenu](/components/alpha/actionmenu)."
3452
+ },
3453
+ {
3454
+ "name": "button_arguments",
3455
+ "type": "Hash",
3456
+ "default": "`{}`",
3457
+ "description": "The arguments accepted by [Button](/components/beta/button) or [IconButton](/components/beta/iconbutton), depending on the value of the `icon:` argument."
3458
+ }
3459
+ ]
3460
+ },
3439
3461
  {
3440
3462
  "component": "ClipboardCopy",
3441
3463
  "status": "beta",
@@ -3648,7 +3670,7 @@
3648
3670
  },
3649
3671
  {
3650
3672
  "component": "Flash",
3651
- "status": "beta",
3673
+ "status": "deprecated",
3652
3674
  "a11y_reviewed": false,
3653
3675
  "short_name": "Flash",
3654
3676
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/flash.rb",
@@ -75,6 +75,7 @@
75
75
  "Primer::Beta::Breadcrumbs::Item": "",
76
76
  "Primer::Beta::Button": "",
77
77
  "Primer::Beta::ButtonGroup": "",
78
+ "Primer::Beta::ButtonGroup::MenuButton": "",
78
79
  "Primer::Beta::ClipboardCopy": "",
79
80
  "Primer::Beta::ClipboardCopyBaseButton": "",
80
81
  "Primer::Beta::ClipboardCopyButton": "",
data/static/classes.json CHANGED
@@ -426,19 +426,16 @@
426
426
  "PageHeader-actions": [
427
427
  "Primer::OpenProject::PageHeader"
428
428
  ],
429
- "PageHeader-backButton": [
430
- "Primer::OpenProject::PageHeader"
431
- ],
432
429
  "PageHeader-breadcrumbs": [
433
430
  "Primer::OpenProject::PageHeader"
434
431
  ],
435
432
  "PageHeader-contextBar": [
436
433
  "Primer::OpenProject::PageHeader"
437
434
  ],
438
- "PageHeader-contextBarActions": [
435
+ "PageHeader-description": [
439
436
  "Primer::OpenProject::PageHeader"
440
437
  ],
441
- "PageHeader-description": [
438
+ "PageHeader-leadingAction": [
442
439
  "Primer::OpenProject::PageHeader"
443
440
  ],
444
441
  "PageHeader-parentLink": [
@@ -95,6 +95,7 @@
95
95
  "DEFAULT_DESCRIPTION_SCHEME": "block",
96
96
  "DEFAULT_SCHEME": "default",
97
97
  "DEFAULT_SIZE": "medium",
98
+ "DEFAULT_TRUNCATION_BEHAVIOR": "none",
98
99
  "DESCRIPTION_SCHEME_MAPPINGS": {
99
100
  "inline": "ActionListItem-descriptionWrap--inline",
100
101
  "block": "ActionListItem-descriptionWrap"
@@ -120,6 +121,20 @@
120
121
  "medium",
121
122
  "large",
122
123
  "xlarge"
124
+ ],
125
+ "TRUNCATION_BEHAVIOR_MAPPINGS": {
126
+ "none": null,
127
+ "false": null,
128
+ "show_tooltip": "ActionListItem-label--truncate",
129
+ "truncate": "ActionListItem-label--truncate",
130
+ "true": "ActionListItem-label--truncate"
131
+ },
132
+ "TRUNCATION_BEHAVIOR_OPTIONS": [
133
+ "none",
134
+ false,
135
+ "show_tooltip",
136
+ "truncate",
137
+ true
123
138
  ]
124
139
  },
125
140
  "Primer::Alpha::ActionMenu": {
@@ -848,6 +863,9 @@
848
863
  ]
849
864
  },
850
865
  "Primer::Beta::ButtonGroup": {
866
+ "MenuButton": "Primer::Beta::ButtonGroup::MenuButton"
867
+ },
868
+ "Primer::Beta::ButtonGroup::MenuButton": {
851
869
  },
852
870
  "Primer::Beta::ClipboardCopy": {
853
871
  },
@@ -1412,26 +1430,20 @@
1412
1430
  "chevron-left",
1413
1431
  "triangle-left"
1414
1432
  ],
1415
- "BACK_BUTTON_SIZE_OPTIONS": [
1416
- "small",
1417
- "medium",
1418
- "large"
1419
- ],
1420
- "DEFAULT_BACK_BUTTON_DISPLAY": [
1421
- "none",
1422
- "flex"
1423
- ],
1424
1433
  "DEFAULT_BACK_BUTTON_ICON": "arrow-left",
1425
- "DEFAULT_BACK_BUTTON_SIZE": "medium",
1426
1434
  "DEFAULT_BREADCRUMBS_DISPLAY": [
1427
1435
  "none",
1428
1436
  "flex"
1429
1437
  ],
1430
1438
  "DEFAULT_CONTEXT_BAR_ACTIONS_DISPLAY": [
1431
- "block",
1439
+ "flex",
1432
1440
  "none"
1433
1441
  ],
1434
- "DEFAULT_HEADER_VARIANT": "large",
1442
+ "DEFAULT_HEADER_VARIANT": "medium",
1443
+ "DEFAULT_LEADING_ACTION_DISPLAY": [
1444
+ "none",
1445
+ "flex"
1446
+ ],
1435
1447
  "DEFAULT_PARENT_LINK_DISPLAY": [
1436
1448
  "block",
1437
1449
  "none"
@@ -1440,7 +1452,7 @@
1440
1452
  "medium",
1441
1453
  "large"
1442
1454
  ],
1443
- "HEADING_TAG_FALLBACK": "h2",
1455
+ "HEADING_TAG_FALLBACK": "h1",
1444
1456
  "HEADING_TAG_OPTIONS": [
1445
1457
  "h1",
1446
1458
  "h2",