openproject-primer_view_components 0.24.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +1 -0
  4. data/app/assets/javascripts/app/components/primer/open_project/page_header_element.d.ts +9 -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/banner.css +1 -1
  11. data/app/components/primer/alpha/banner.css.map +1 -1
  12. data/app/components/primer/alpha/banner.pcss +4 -4
  13. data/app/components/primer/alpha/dialog.css +1 -1
  14. data/app/components/primer/alpha/dialog.css.json +1 -2
  15. data/app/components/primer/alpha/dialog.css.map +1 -1
  16. data/app/components/primer/alpha/dialog.pcss +8 -7
  17. data/app/components/primer/alpha/segmented_control.css +1 -1
  18. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  19. data/app/components/primer/alpha/segmented_control.pcss +1 -0
  20. data/app/components/primer/alpha/tool_tip.js +46 -77
  21. data/app/components/primer/alpha/tool_tip.ts +46 -77
  22. data/app/components/primer/beta/flash.css +1 -1
  23. data/app/components/primer/beta/flash.css.map +1 -1
  24. data/app/components/primer/beta/flash.pcss +4 -4
  25. data/app/components/primer/open_project/page_header.css +1 -1
  26. data/app/components/primer/open_project/page_header.css.json +1 -0
  27. data/app/components/primer/open_project/page_header.css.map +1 -1
  28. data/app/components/primer/open_project/page_header.html.erb +6 -7
  29. data/app/components/primer/open_project/page_header.pcss +10 -0
  30. data/app/components/primer/open_project/page_header.rb +152 -34
  31. data/app/components/primer/open_project/page_header_element.d.ts +9 -0
  32. data/app/components/primer/open_project/page_header_element.js +23 -0
  33. data/app/components/primer/open_project/page_header_element.ts +25 -0
  34. data/app/components/primer/primer.d.ts +1 -0
  35. data/app/components/primer/primer.js +1 -0
  36. data/app/components/primer/primer.ts +1 -0
  37. data/lib/primer/view_components/version.rb +1 -1
  38. data/previews/primer/alpha/action_menu_preview.rb +1 -1
  39. data/previews/primer/alpha/tooltip_preview/tooltip_e.html.erb +6 -0
  40. data/previews/primer/alpha/tooltip_preview/tooltip_n.html.erb +6 -0
  41. data/previews/primer/alpha/tooltip_preview/tooltip_ne.html.erb +6 -0
  42. data/previews/primer/alpha/tooltip_preview/tooltip_nw.html.erb +6 -0
  43. data/previews/primer/alpha/tooltip_preview/tooltip_s.html.erb +6 -0
  44. data/previews/primer/alpha/tooltip_preview/tooltip_se.html.erb +6 -0
  45. data/previews/primer/alpha/tooltip_preview/tooltip_sw.html.erb +6 -0
  46. data/previews/primer/alpha/tooltip_preview/tooltip_w.html.erb +6 -0
  47. data/previews/primer/alpha/tooltip_preview.rb +80 -0
  48. data/previews/primer/open_project/border_grid_preview.rb +2 -2
  49. data/previews/primer/open_project/input_group_preview.rb +5 -5
  50. data/previews/primer/open_project/page_header_preview/actions.html.erb +16 -15
  51. data/previews/primer/open_project/page_header_preview/playground.html.erb +9 -24
  52. data/previews/primer/open_project/page_header_preview.rb +14 -36
  53. data/static/arguments.json +34 -1
  54. data/static/audited_at.json +1 -0
  55. data/static/classes.json +3 -0
  56. data/static/constants.json +9 -5
  57. data/static/info_arch.json +153 -48
  58. data/static/previews.json +104 -26
  59. data/static/statuses.json +1 -0
  60. metadata +14 -3
  61. data/previews/primer/open_project/page_header_preview/context_bar_actions.html.erb +0 -27
@@ -22,3 +22,4 @@ import '../../../lib/primer/forms/primer_multi_input'
22
22
  import '../../../lib/primer/forms/primer_text_field'
23
23
  import '../../../lib/primer/forms/toggle_switch_input'
24
24
  import './alpha/action_menu/action_menu_element'
25
+ import './open_project/page_header_element'
@@ -5,7 +5,7 @@ module Primer
5
5
  module ViewComponents
6
6
  module VERSION
7
7
  MAJOR = 0
8
- MINOR = 24
8
+ MINOR = 25
9
9
  PATCH = 0
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].join(".")
@@ -326,7 +326,7 @@ module Primer
326
326
  # @label In Scoll container
327
327
  #
328
328
  def in_scroll_container
329
- render_with_template()
329
+ render_with_template
330
330
  end
331
331
 
332
332
 
@@ -0,0 +1,6 @@
1
+ <div style="display: grid; place-content: center; margin-top: 4rem;">
2
+ <%= render(Primer::Beta::Button.new(id: "tooltip-e")) do |b| %>
3
+ <% b.with_tooltip(text: "This is a tooltip", direction: :e) %>
4
+ Tooltip east
5
+ <% end %>
6
+ </div>
@@ -0,0 +1,6 @@
1
+ <div style="display: grid; place-content: center; margin-top: 4rem;">
2
+ <%= render(Primer::Beta::Button.new(id: "tooltip-n")) do |b| %>
3
+ <% b.with_tooltip(text: "This is a tooltip", direction: :n) %>
4
+ Tooltip north
5
+ <% end %>
6
+ </div>
@@ -0,0 +1,6 @@
1
+ <div style="display: grid; place-content: center; margin-top: 4rem;">
2
+ <%= render(Primer::Beta::Button.new(id: "tooltip-ne")) do |b| %>
3
+ <% b.with_tooltip(text: "This is a tooltip", direction: :ne) %>
4
+ Tooltip northeast
5
+ <% end %>
6
+ </div>
@@ -0,0 +1,6 @@
1
+ <div style="display: grid; place-content: center; margin-top: 4rem;">
2
+ <%= render(Primer::Beta::Button.new(id: "tooltip-nw")) do |b| %>
3
+ <% b.with_tooltip(text: "This is a tooltip", direction: :nw) %>
4
+ Tooltip northwest
5
+ <% end %>
6
+ </div>
@@ -0,0 +1,6 @@
1
+ <div style="display: grid; place-content: center; margin-top: 4rem;">
2
+ <%= render(Primer::Beta::Button.new(id: "tooltip-s")) do |b| %>
3
+ <% b.with_tooltip(text: "This is a tooltip", direction: :s) %>
4
+ Tooltip south
5
+ <% end %>
6
+ </div>
@@ -0,0 +1,6 @@
1
+ <div style="display: grid; place-content: center; margin-top: 4rem;">
2
+ <%= render(Primer::Beta::Button.new(id: "tooltip-se")) do |b| %>
3
+ <% b.with_tooltip(text: "This is a tooltip", direction: :se) %>
4
+ Tooltip southeast
5
+ <% end %>
6
+ </div>
@@ -0,0 +1,6 @@
1
+ <div style="display: grid; place-content: center; margin-top: 4rem;">
2
+ <%= render(Primer::Beta::Button.new(id: "tooltip-sw")) do |b| %>
3
+ <% b.with_tooltip(text: "This is a tooltip", direction: :sw) %>
4
+ Tooltip southwest
5
+ <% end %>
6
+ </div>
@@ -0,0 +1,6 @@
1
+ <div style="display: grid; place-content: center; margin-top: 4rem;">
2
+ <%= render(Primer::Beta::Button.new(id: "tooltip-w")) do |b| %>
3
+ <% b.with_tooltip(text: "This is a tooltip", direction: :w) %>
4
+ Tooltip west
5
+ <% end %>
6
+ </div>
@@ -88,6 +88,86 @@ module Primer
88
88
  def tooltip_with_dialog_moving_focus_to_input
89
89
  render_with_template(locals: {})
90
90
  end
91
+
92
+ # @label Direction: North
93
+ # @snapshot interactive
94
+ def tooltip_n(type: :description)
95
+ render_with_template(
96
+ locals: {
97
+ type: type,
98
+ }
99
+ )
100
+ end
101
+
102
+ # @label Direction: South
103
+ # @snapshot interactive
104
+ def tooltip_s(type: :description)
105
+ render_with_template(
106
+ locals: {
107
+ type: type,
108
+ }
109
+ )
110
+ end
111
+
112
+ # @label Direction: East
113
+ # @snapshot interactive
114
+ def tooltip_e(type: :description)
115
+ render_with_template(
116
+ locals: {
117
+ type: type,
118
+ }
119
+ )
120
+ end
121
+
122
+ # @label Direction: West
123
+ # @snapshot interactive
124
+ def tooltip_w(type: :description)
125
+ render_with_template(
126
+ locals: {
127
+ type: type,
128
+ }
129
+ )
130
+ end
131
+
132
+ # @label Direction: Southeast
133
+ # @snapshot interactive
134
+ def tooltip_se(type: :description)
135
+ render_with_template(
136
+ locals: {
137
+ type: type,
138
+ }
139
+ )
140
+ end
141
+
142
+ # @label Direction: Southwest
143
+ # @snapshot interactive
144
+ def tooltip_sw(type: :description)
145
+ render_with_template(
146
+ locals: {
147
+ type: type,
148
+ }
149
+ )
150
+ end
151
+
152
+ # @label Direction: Northeast
153
+ # @snapshot interactive
154
+ def tooltip_ne(type: :description)
155
+ render_with_template(
156
+ locals: {
157
+ type: type,
158
+ }
159
+ )
160
+ end
161
+
162
+ # @label Direction: Northwest
163
+ # @snapshot interactive
164
+ def tooltip_nw(type: :description)
165
+ render_with_template(
166
+ locals: {
167
+ type: type,
168
+ }
169
+ )
170
+ end
91
171
  end
92
172
  end
93
173
  end
@@ -21,7 +21,7 @@ module Primer
21
21
  # @label Default Options
22
22
  #
23
23
  # @snapshot
24
- def default()
24
+ def default
25
25
  render(Primer::OpenProject::BorderGrid.new) do |grid|
26
26
  grid.with_row { "Block 1" }
27
27
  grid.with_row { "Block 2" }
@@ -30,7 +30,7 @@ module Primer
30
30
  end
31
31
 
32
32
  # @label Spacious
33
- def spacious()
33
+ def spacious
34
34
  render(Primer::OpenProject::BorderGrid.new(spacious: true)) do |grid|
35
35
  grid.with_row { "Block 1" }
36
36
  grid.with_row { "Block 2" }
@@ -11,7 +11,7 @@ module Primer
11
11
  # @snapshot
12
12
  def default
13
13
  render(Primer::OpenProject::InputGroup.new) do |menu|
14
- menu.with_text_input(name: 'a name', label: 'My input group', value: "Copyable value")
14
+ menu.with_text_input(name: "a name", label: "My input group", value: "Copyable value")
15
15
  menu.with_trailing_action_clipboard_copy_button(id: "button", value: "Copyable value", aria: { label: "Copy some text" })
16
16
  end
17
17
  end
@@ -24,13 +24,13 @@ module Primer
24
24
  # @param input_width [Symbol] select [auto, small, medium, large, xlarge, xxlarge]
25
25
  def playground(
26
26
  trailing_action: :clipboardCopy,
27
- value: 'Copyable value',
27
+ value: "Copyable value",
28
28
  visually_hide_label: false,
29
29
  readonly: true,
30
30
  input_width: :medium
31
31
  )
32
32
  render(Primer::OpenProject::InputGroup.new(input_width: input_width)) do |menu|
33
- menu.with_text_input(name: 'Test', label: 'My input group', visually_hide_label: visually_hide_label, value: value, readonly: readonly)
33
+ menu.with_text_input(name: "Test", label: "My input group", visually_hide_label: visually_hide_label, value: value, readonly: readonly)
34
34
 
35
35
  case trailing_action
36
36
  when :icon
@@ -46,7 +46,7 @@ module Primer
46
46
  # @label With icon button
47
47
  def icon_button
48
48
  render(Primer::OpenProject::InputGroup.new) do |menu|
49
- menu.with_text_input(name: 'a name', label: 'My input group', value: "Some value")
49
+ menu.with_text_input(name: "a name", label: "My input group", value: "Some value")
50
50
  menu.with_trailing_action_icon(icon: :check, aria: { label: "Successful" })
51
51
  end
52
52
  end
@@ -54,7 +54,7 @@ module Primer
54
54
  # @label With a small input
55
55
  def small_input_width
56
56
  render(Primer::OpenProject::InputGroup.new(input_width: :small)) do |menu|
57
- menu.with_text_input(name: 'a name', label: 'My input group', value: "Some value")
57
+ menu.with_text_input(name: "a name", label: "My input group", value: "Some value")
58
58
  menu.with_trailing_action_clipboard_copy_button(id: "button-4", value: "Some value", aria: { label: "Copy some text" })
59
59
  end
60
60
  end
@@ -1,24 +1,25 @@
1
1
  <%= render(Primer::OpenProject::PageHeader.new) do |component| %>
2
2
  <% component.with_title do %>
3
- A title
3
+ Great news
4
4
  <% end %>
5
5
  <% component.with_description do %>
6
- A description with actions
6
+ This example lists all possible actions of a PageHeader. Of course, you will most likely never need all of them on the same page as it is shown here.
7
7
  <% end %>
8
- <% component.with_action do %>
9
- <%= render(Primer::Beta::IconButton.new(icon: 'pencil', 'aria-label': 'Edit')) %>
8
+ <% component.with_breadcrumbs([{ href: "/foo", text: "Foo" }, { href: "/bar", text: "Bar" }, "Baz"]) %>
9
+ <% component.with_action_text { "An additional hint" } %>
10
+ <% component.with_action_link(mobile_icon: "link", mobile_label: "Community", href: "https://community.openproject.com", target: "_blank") { "Go to community" } %>
11
+ <% component.with_action_button(mobile_icon: "star", mobile_label: "Star") do |button|%>
12
+ <% button.with_leading_visual_icon(icon: "star") %>
13
+ Star
10
14
  <% 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(
16
- label: "Show dialog",
17
- tag: :button,
18
- content_arguments: { "data-show-dialog-id": "my-dialog" },
19
- value: "",
20
- scheme: :danger
21
- ) %>
15
+ <% component.with_action_button(mobile_icon: nil, mobile_label: nil) { "Hide on mobile" } %>
16
+ <% component.with_action_icon_button(icon: "trash", mobile_icon: "trash", label: "Delete", scheme: :danger) %>
17
+ <% component.with_action_menu(menu_arguments: { anchor_align: :end }, button_arguments: { icon: "op-kebab-vertical", "aria-label": "Some actions" }) do |menu, button| %>
18
+ <% menu.with_item(label: "Subitem 1") do |item| %>
19
+ <% item.with_leading_visual_icon(icon: :paste) %>
20
+ <% end %>
21
+ <% menu.with_item(label: "Subitem 2") do |item| %>
22
+ <% item.with_leading_visual_icon(icon: :log) %>
22
23
  <% end %>
23
24
  <% end %>
24
25
  <% end %>
@@ -1,32 +1,17 @@
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_leading_action(icon: with_leading_action, href: '#', 'aria-label': "A leading action") if with_leading_action %>
5
- <%= header.with_breadcrumbs(breadcrumb_items) if with_breadcrumbs %>
6
- <%= header.with_parent_link(href: "#") { "Parent link" } if with_parent_link %>
4
+ <%= header.with_leading_action(icon: with_leading_action, href: '#', 'aria-label': "A leading action") if with_leading_action && with_leading_action != :none %>
5
+ <%= header.with_breadcrumbs(breadcrumb_items) %>
7
6
  <% if with_actions %>
8
- <% header.with_action 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(
13
- label: "Show dialog",
14
- tag: :button,
15
- content_arguments: { "data-show-dialog-id": "my-dialog" },
16
- value: "",
17
- scheme: :danger
18
- ) %>
7
+ <% header.with_action_icon_button(icon: 'pencil', mobile_icon: 'pencil', label: 'Edit') %>
8
+ <% header.with_action_menu(menu_arguments: { anchor_align: :end }, button_arguments: { icon: "op-kebab-vertical", "aria-label": "Menu" }) do |menu, button| %>
9
+ <% menu.with_item(label: "Subitem 1") do |item| %>
10
+ <% item.with_leading_visual_icon(icon: :unlock) %>
11
+ <% end %>
12
+ <% menu.with_item(label: "Subitem 2", scheme: :danger) do |item| %>
13
+ <% item.with_leading_visual_icon(icon: :trash) %>
19
14
  <% end %>
20
- <% end %>
21
- <% end %>
22
- <% if with_context_bar_actions %>
23
- <% header.with_context_bar_action do %>
24
- <%= render(Primer::Beta::IconButton.new(
25
- scheme: :default,
26
- size: :small,
27
- icon: "pencil",
28
- "aria-label": "A meaningful label"
29
- )) %>
30
15
  <% end %>
31
16
  <% end %>
32
17
  <% end %>
@@ -8,9 +8,12 @@ module Primer
8
8
  # @label Default
9
9
  # @snapshot
10
10
  def default
11
+ breadcrumb_items = [{ href: "/foo", text: "Grandparent" }, { href: "/bar", text: "Parent" }, "Hello"]
12
+
11
13
  render(Primer::OpenProject::PageHeader.new) do |header|
12
14
  header.with_title { "Hello" }
13
15
  header.with_description { "Last updated 5 minutes ago by XYZ." }
16
+ header.with_breadcrumbs(breadcrumb_items)
14
17
  end
15
18
  end
16
19
 
@@ -19,19 +22,13 @@ module Primer
19
22
  # @param title [String] text
20
23
  # @param description [String] text
21
24
  # @param with_leading_action [Symbol] octicon
22
- # @param with_breadcrumbs [Boolean]
23
25
  # @param with_actions [Boolean]
24
- # @param with_context_bar_actions [Boolean]
25
- # @param with_parent_link [Boolean]
26
26
  def playground(
27
- variant: :large,
27
+ variant: :medium,
28
28
  title: "Hello",
29
29
  description: "Last updated 5 minutes ago by XYZ.",
30
- with_leading_action: :"arrow-left",
31
- with_breadcrumbs: false,
32
- with_actions: false,
33
- with_context_bar_actions: false,
34
- with_parent_link: false
30
+ with_leading_action: :"none",
31
+ with_actions: true
35
32
  )
36
33
  breadcrumb_items = [{ href: "/foo", text: "Foo" }, { href: "/bar", text: "Bar" }, "Baz"]
37
34
 
@@ -39,18 +36,18 @@ module Primer
39
36
  title: title,
40
37
  description: description,
41
38
  with_leading_action: with_leading_action,
42
- with_breadcrumbs: with_breadcrumbs,
43
- with_parent_link: with_parent_link,
44
39
  with_actions: with_actions,
45
- with_context_bar_actions: with_context_bar_actions,
46
40
  breadcrumb_items: breadcrumb_items })
47
41
  end
48
42
 
49
43
  # @label Large title
50
44
  def large_title
45
+ breadcrumb_items = [{ href: "/foo", text: "Foo" }, { href: "/bar", text: "Bar" }, "Baz"]
46
+
51
47
  render(Primer::OpenProject::PageHeader.new) do |header|
52
48
  header.with_title(variant: :large) { "Hello" }
53
49
  header.with_description { "Last updated 5 minutes ago by XYZ." }
50
+ header.with_breadcrumbs(breadcrumb_items)
54
51
  end
55
52
  end
56
53
 
@@ -67,16 +64,18 @@ module Primer
67
64
  # @param href [String] text
68
65
  # @param icon [Symbol] octicon
69
66
  def leading_action(href: "#", icon: :"arrow-left")
67
+ breadcrumb_items = [{ href: "/foo", text: "Foo" }, { href: "/bar", text: "Bar" }, "Baz"]
68
+
70
69
  render(Primer::OpenProject::PageHeader.new) do |header|
71
70
  header.with_title { "Hello" }
72
71
  header.with_leading_action(icon: icon, href: href, 'aria-label': "Back")
72
+ header.with_breadcrumbs(breadcrumb_items)
73
73
  end
74
74
  end
75
75
 
76
- # @label With breadcrumbs (on wide)
76
+ # @label With breadcrumbs
77
77
  # **Breadcrumbs** are only shown on **wider than narrow screens** by default.
78
- # If you want to override that behaviour please use the system_argument: **display**
79
- # e.g. **component.with\_breadcrumbs(display: [:block, :block])**
78
+ # A parent link is shown instead in narrow screens
80
79
  #
81
80
  def breadcrumbs
82
81
  breadcrumb_items = [
@@ -89,27 +88,6 @@ module Primer
89
88
  header.with_breadcrumbs(breadcrumb_items)
90
89
  end
91
90
  end
92
-
93
- # @label With parent link (on narrow)
94
- # **Parent link** is only shown on **narrow screens** by default.
95
- # If you want to override that behaviour please use the system_argument: **display**
96
- # e.g. **component.with\_parent\_link(display: [:block, :block])**
97
- #
98
- def parent_link
99
- render(Primer::OpenProject::PageHeader.new) do |header|
100
- header.with_title { "A title" }
101
- header.with_parent_link(href: "test") { "Parent link" }
102
- end
103
- end
104
-
105
- # @label With context bar actions (on narrow)
106
- # **Context bar actions** are only shown on **narrow screens** by default.
107
- # If you want to override that behaviour please use the system_argument: **display**
108
- # e.g. **component.with\_context\_bar\_actions(display: [:block, :block])**
109
- #
110
- def context_bar_actions
111
- render_with_template(locals: {})
112
- end
113
91
  end
114
92
  end
115
93
  end
@@ -4959,7 +4959,40 @@
4959
4959
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header.rb",
4960
4960
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/default/",
4961
4961
  "parameters": [
4962
-
4962
+ {
4963
+ "name": "mobile_menu_label",
4964
+ "type": "String",
4965
+ "default": "`I18n.t(\"label_more\")`",
4966
+ "description": "The tooltip label of the mobile menu"
4967
+ },
4968
+ {
4969
+ "name": "system_arguments",
4970
+ "type": "Hash",
4971
+ "default": "N/A",
4972
+ "description": "[System arguments](/system-arguments)"
4973
+ }
4974
+ ]
4975
+ },
4976
+ {
4977
+ "component": "OpenProject::PageHeader::PageHeaderActionMenu",
4978
+ "status": "open_project",
4979
+ "a11y_reviewed": false,
4980
+ "short_name": "OpenProjectPageHeaderPageHeaderActionMenu",
4981
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header/page_header_action_menu.rb",
4982
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/page_header_action_menu/default/",
4983
+ "parameters": [
4984
+ {
4985
+ "name": "menu_arguments",
4986
+ "type": "Hash",
4987
+ "default": "`{}`",
4988
+ "description": "The arguments accepted by [ActionMenu](/components/alpha/actionmenu)."
4989
+ },
4990
+ {
4991
+ "name": "button_arguments",
4992
+ "type": "Hash",
4993
+ "default": "`{}`",
4994
+ "description": "The arguments accepted by [Button](/components/beta/button) or [IconButton](/components/beta/iconbutton), depending on the value of the `icon:` argument."
4995
+ }
4963
4996
  ]
4964
4997
  },
4965
4998
  {
@@ -121,6 +121,7 @@
121
121
  "Primer::OpenProject::GridLayout::Area": "",
122
122
  "Primer::OpenProject::InputGroup": "",
123
123
  "Primer::OpenProject::PageHeader": "",
124
+ "Primer::OpenProject::PageHeader::PageHeaderActionMenu": "",
124
125
  "Primer::Tooltip": "",
125
126
  "Primer::Truncate": ""
126
127
  }
data/static/classes.json CHANGED
@@ -423,6 +423,9 @@
423
423
  "PageHeader": [
424
424
  "Primer::OpenProject::PageHeader"
425
425
  ],
426
+ "PageHeader--singleAction": [
427
+ "Primer::OpenProject::PageHeader"
428
+ ],
426
429
  "PageHeader-actions": [
427
430
  "Primer::OpenProject::PageHeader"
428
431
  ],
@@ -1430,15 +1430,12 @@
1430
1430
  "chevron-left",
1431
1431
  "triangle-left"
1432
1432
  ],
1433
+ "DEFAULT_ACTION_SCHEME": "default",
1433
1434
  "DEFAULT_BACK_BUTTON_ICON": "arrow-left",
1434
1435
  "DEFAULT_BREADCRUMBS_DISPLAY": [
1435
1436
  "none",
1436
1437
  "flex"
1437
1438
  ],
1438
- "DEFAULT_CONTEXT_BAR_ACTIONS_DISPLAY": [
1439
- "flex",
1440
- "none"
1441
- ],
1442
1439
  "DEFAULT_HEADER_VARIANT": "medium",
1443
1440
  "DEFAULT_LEADING_ACTION_DISPLAY": [
1444
1441
  "none",
@@ -1460,7 +1457,14 @@
1460
1457
  "h4",
1461
1458
  "h5",
1462
1459
  "h6"
1463
- ]
1460
+ ],
1461
+ "MORE_MENU_DISPLAY": [
1462
+ "flex",
1463
+ "none"
1464
+ ],
1465
+ "PageHeaderActionMenu": "Primer::OpenProject::PageHeader::PageHeaderActionMenu"
1466
+ },
1467
+ "Primer::OpenProject::PageHeader::PageHeaderActionMenu": {
1464
1468
  },
1465
1469
  "Primer::Tooltip": {
1466
1470
  "ALIGN_DEFAULT": "default",