openproject-primer_view_components 0.24.0 → 0.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/README.md +1 -0
- data/app/assets/javascripts/app/components/primer/open_project/page_header_element.d.ts +9 -0
- data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/banner.pcss +4 -4
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.json +1 -2
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +8 -7
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.pcss +1 -0
- data/app/components/primer/alpha/tool_tip.js +46 -77
- data/app/components/primer/alpha/tool_tip.ts +46 -77
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +2 -0
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +8 -0
- data/app/components/primer/beta/button_group.rb +4 -2
- data/app/components/primer/beta/flash.css +1 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/beta/flash.pcss +4 -4
- data/app/components/primer/beta/icon_button.rb +2 -0
- data/app/components/primer/dialog_helper.js +16 -3
- data/app/components/primer/dialog_helper.ts +14 -1
- data/app/components/primer/open_project/page_header.css +1 -1
- data/app/components/primer/open_project/page_header.css.json +1 -0
- data/app/components/primer/open_project/page_header.css.map +1 -1
- data/app/components/primer/open_project/page_header.html.erb +6 -7
- data/app/components/primer/open_project/page_header.pcss +10 -0
- data/app/components/primer/open_project/page_header.rb +152 -34
- data/app/components/primer/open_project/page_header_element.d.ts +9 -0
- data/app/components/primer/open_project/page_header_element.js +23 -0
- data/app/components/primer/open_project/page_header_element.ts +25 -0
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/lib/primer/view_components/version.rb +2 -2
- data/previews/primer/alpha/action_menu_preview.rb +1 -1
- data/previews/primer/alpha/dialog_preview.rb +24 -0
- data/previews/primer/alpha/tooltip_preview/tooltip_e.html.erb +6 -0
- data/previews/primer/alpha/tooltip_preview/tooltip_n.html.erb +6 -0
- data/previews/primer/alpha/tooltip_preview/tooltip_ne.html.erb +6 -0
- data/previews/primer/alpha/tooltip_preview/tooltip_nw.html.erb +6 -0
- data/previews/primer/alpha/tooltip_preview/tooltip_s.html.erb +6 -0
- data/previews/primer/alpha/tooltip_preview/tooltip_se.html.erb +6 -0
- data/previews/primer/alpha/tooltip_preview/tooltip_sw.html.erb +6 -0
- data/previews/primer/alpha/tooltip_preview/tooltip_w.html.erb +6 -0
- data/previews/primer/alpha/tooltip_preview.rb +80 -0
- data/previews/primer/beta/button_group_preview/with_menu_button.html.erb +1 -1
- data/previews/primer/beta/button_group_preview.rb +7 -1
- data/previews/primer/beta/icon_button_preview.rb +25 -0
- data/previews/primer/open_project/border_grid_preview.rb +2 -2
- data/previews/primer/open_project/input_group_preview.rb +5 -5
- data/previews/primer/open_project/page_header_preview/actions.html.erb +16 -15
- data/previews/primer/open_project/page_header_preview/playground.html.erb +9 -24
- data/previews/primer/open_project/page_header_preview.rb +14 -36
- data/static/arguments.json +35 -2
- data/static/audited_at.json +1 -0
- data/static/classes.json +3 -0
- data/static/constants.json +13 -5
- data/static/info_arch.json +180 -49
- data/static/previews.json +130 -26
- data/static/statuses.json +1 -0
- metadata +16 -5
- data/previews/primer/open_project/page_header_preview/context_bar_actions.html.erb +0 -27
@@ -1,24 +1,25 @@
|
|
1
1
|
<%= render(Primer::OpenProject::PageHeader.new) do |component| %>
|
2
2
|
<% component.with_title do %>
|
3
|
-
|
3
|
+
Great news
|
4
4
|
<% end %>
|
5
5
|
<% component.with_description do %>
|
6
|
-
|
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.
|
9
|
-
|
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.
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<%
|
16
|
-
|
17
|
-
|
18
|
-
|
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)
|
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.
|
9
|
-
|
10
|
-
|
11
|
-
<%
|
12
|
-
|
13
|
-
|
14
|
-
|
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: :
|
27
|
+
variant: :medium,
|
28
28
|
title: "Hello",
|
29
29
|
description: "Last updated 5 minutes ago by XYZ.",
|
30
|
-
with_leading_action: :"
|
31
|
-
|
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
|
76
|
+
# @label With breadcrumbs
|
77
77
|
# **Breadcrumbs** are only shown on **wider than narrow screens** by default.
|
78
|
-
#
|
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
|
data/static/arguments.json
CHANGED
@@ -3760,7 +3760,7 @@
|
|
3760
3760
|
"name": "scheme",
|
3761
3761
|
"type": "Symbol",
|
3762
3762
|
"default": "`:default`",
|
3763
|
-
"description": "One of `:danger`, `:default`, or `:
|
3763
|
+
"description": "One of `:danger`, `:default`, `:invisible`, `:primary`, or `:secondary`."
|
3764
3764
|
},
|
3765
3765
|
{
|
3766
3766
|
"name": "size",
|
@@ -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
|
{
|
data/static/audited_at.json
CHANGED
@@ -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
data/static/constants.json
CHANGED
@@ -938,11 +938,15 @@
|
|
938
938
|
"DEFAULT_SCHEME": "default",
|
939
939
|
"SCHEME_MAPPINGS": {
|
940
940
|
"default": "Button--secondary",
|
941
|
+
"primary": "Button--primary",
|
942
|
+
"secondary": "Button--secondary",
|
941
943
|
"danger": "Button--danger",
|
942
944
|
"invisible": "Button--invisible"
|
943
945
|
},
|
944
946
|
"SCHEME_OPTIONS": [
|
945
947
|
"default",
|
948
|
+
"primary",
|
949
|
+
"secondary",
|
946
950
|
"danger",
|
947
951
|
"invisible"
|
948
952
|
]
|
@@ -1430,15 +1434,12 @@
|
|
1430
1434
|
"chevron-left",
|
1431
1435
|
"triangle-left"
|
1432
1436
|
],
|
1437
|
+
"DEFAULT_ACTION_SCHEME": "default",
|
1433
1438
|
"DEFAULT_BACK_BUTTON_ICON": "arrow-left",
|
1434
1439
|
"DEFAULT_BREADCRUMBS_DISPLAY": [
|
1435
1440
|
"none",
|
1436
1441
|
"flex"
|
1437
1442
|
],
|
1438
|
-
"DEFAULT_CONTEXT_BAR_ACTIONS_DISPLAY": [
|
1439
|
-
"flex",
|
1440
|
-
"none"
|
1441
|
-
],
|
1442
1443
|
"DEFAULT_HEADER_VARIANT": "medium",
|
1443
1444
|
"DEFAULT_LEADING_ACTION_DISPLAY": [
|
1444
1445
|
"none",
|
@@ -1460,7 +1461,14 @@
|
|
1460
1461
|
"h4",
|
1461
1462
|
"h5",
|
1462
1463
|
"h6"
|
1463
|
-
]
|
1464
|
+
],
|
1465
|
+
"MORE_MENU_DISPLAY": [
|
1466
|
+
"flex",
|
1467
|
+
"none"
|
1468
|
+
],
|
1469
|
+
"PageHeaderActionMenu": "Primer::OpenProject::PageHeader::PageHeaderActionMenu"
|
1470
|
+
},
|
1471
|
+
"Primer::OpenProject::PageHeader::PageHeaderActionMenu": {
|
1464
1472
|
},
|
1465
1473
|
"Primer::Tooltip": {
|
1466
1474
|
"ALIGN_DEFAULT": "default",
|
data/static/info_arch.json
CHANGED
@@ -3440,6 +3440,19 @@
|
|
3440
3440
|
"color-contrast"
|
3441
3441
|
]
|
3442
3442
|
}
|
3443
|
+
},
|
3444
|
+
{
|
3445
|
+
"preview_path": "primer/alpha/dialog/initally_open",
|
3446
|
+
"name": "initally_open",
|
3447
|
+
"snapshot": "interactive",
|
3448
|
+
"skip_rules": {
|
3449
|
+
"wont_fix": [
|
3450
|
+
"region"
|
3451
|
+
],
|
3452
|
+
"will_fix": [
|
3453
|
+
"color-contrast"
|
3454
|
+
]
|
3455
|
+
}
|
3443
3456
|
}
|
3444
3457
|
],
|
3445
3458
|
"subcomponents": [
|
@@ -8778,6 +8791,110 @@
|
|
8778
8791
|
"color-contrast"
|
8779
8792
|
]
|
8780
8793
|
}
|
8794
|
+
},
|
8795
|
+
{
|
8796
|
+
"preview_path": "primer/alpha/tooltip/tooltip_n",
|
8797
|
+
"name": "tooltip_n",
|
8798
|
+
"snapshot": "interactive",
|
8799
|
+
"skip_rules": {
|
8800
|
+
"wont_fix": [
|
8801
|
+
"region"
|
8802
|
+
],
|
8803
|
+
"will_fix": [
|
8804
|
+
"color-contrast"
|
8805
|
+
]
|
8806
|
+
}
|
8807
|
+
},
|
8808
|
+
{
|
8809
|
+
"preview_path": "primer/alpha/tooltip/tooltip_s",
|
8810
|
+
"name": "tooltip_s",
|
8811
|
+
"snapshot": "interactive",
|
8812
|
+
"skip_rules": {
|
8813
|
+
"wont_fix": [
|
8814
|
+
"region"
|
8815
|
+
],
|
8816
|
+
"will_fix": [
|
8817
|
+
"color-contrast"
|
8818
|
+
]
|
8819
|
+
}
|
8820
|
+
},
|
8821
|
+
{
|
8822
|
+
"preview_path": "primer/alpha/tooltip/tooltip_e",
|
8823
|
+
"name": "tooltip_e",
|
8824
|
+
"snapshot": "interactive",
|
8825
|
+
"skip_rules": {
|
8826
|
+
"wont_fix": [
|
8827
|
+
"region"
|
8828
|
+
],
|
8829
|
+
"will_fix": [
|
8830
|
+
"color-contrast"
|
8831
|
+
]
|
8832
|
+
}
|
8833
|
+
},
|
8834
|
+
{
|
8835
|
+
"preview_path": "primer/alpha/tooltip/tooltip_w",
|
8836
|
+
"name": "tooltip_w",
|
8837
|
+
"snapshot": "interactive",
|
8838
|
+
"skip_rules": {
|
8839
|
+
"wont_fix": [
|
8840
|
+
"region"
|
8841
|
+
],
|
8842
|
+
"will_fix": [
|
8843
|
+
"color-contrast"
|
8844
|
+
]
|
8845
|
+
}
|
8846
|
+
},
|
8847
|
+
{
|
8848
|
+
"preview_path": "primer/alpha/tooltip/tooltip_se",
|
8849
|
+
"name": "tooltip_se",
|
8850
|
+
"snapshot": "interactive",
|
8851
|
+
"skip_rules": {
|
8852
|
+
"wont_fix": [
|
8853
|
+
"region"
|
8854
|
+
],
|
8855
|
+
"will_fix": [
|
8856
|
+
"color-contrast"
|
8857
|
+
]
|
8858
|
+
}
|
8859
|
+
},
|
8860
|
+
{
|
8861
|
+
"preview_path": "primer/alpha/tooltip/tooltip_sw",
|
8862
|
+
"name": "tooltip_sw",
|
8863
|
+
"snapshot": "interactive",
|
8864
|
+
"skip_rules": {
|
8865
|
+
"wont_fix": [
|
8866
|
+
"region"
|
8867
|
+
],
|
8868
|
+
"will_fix": [
|
8869
|
+
"color-contrast"
|
8870
|
+
]
|
8871
|
+
}
|
8872
|
+
},
|
8873
|
+
{
|
8874
|
+
"preview_path": "primer/alpha/tooltip/tooltip_ne",
|
8875
|
+
"name": "tooltip_ne",
|
8876
|
+
"snapshot": "interactive",
|
8877
|
+
"skip_rules": {
|
8878
|
+
"wont_fix": [
|
8879
|
+
"region"
|
8880
|
+
],
|
8881
|
+
"will_fix": [
|
8882
|
+
"color-contrast"
|
8883
|
+
]
|
8884
|
+
}
|
8885
|
+
},
|
8886
|
+
{
|
8887
|
+
"preview_path": "primer/alpha/tooltip/tooltip_nw",
|
8888
|
+
"name": "tooltip_nw",
|
8889
|
+
"snapshot": "interactive",
|
8890
|
+
"skip_rules": {
|
8891
|
+
"wont_fix": [
|
8892
|
+
"region"
|
8893
|
+
],
|
8894
|
+
"will_fix": [
|
8895
|
+
"color-contrast"
|
8896
|
+
]
|
8897
|
+
}
|
8781
8898
|
}
|
8782
8899
|
],
|
8783
8900
|
"subcomponents": [
|
@@ -12329,7 +12446,7 @@
|
|
12329
12446
|
"name": "scheme",
|
12330
12447
|
"type": "Symbol",
|
12331
12448
|
"default": "`:default`",
|
12332
|
-
"description": "One of `:danger`, `:default`, or `:
|
12449
|
+
"description": "One of `:danger`, `:default`, `:invisible`, `:primary`, or `:secondary`."
|
12333
12450
|
},
|
12334
12451
|
{
|
12335
12452
|
"name": "size",
|
@@ -12426,6 +12543,19 @@
|
|
12426
12543
|
]
|
12427
12544
|
}
|
12428
12545
|
},
|
12546
|
+
{
|
12547
|
+
"preview_path": "primer/beta/icon_button/primary",
|
12548
|
+
"name": "primary",
|
12549
|
+
"snapshot": "true",
|
12550
|
+
"skip_rules": {
|
12551
|
+
"wont_fix": [
|
12552
|
+
"region"
|
12553
|
+
],
|
12554
|
+
"will_fix": [
|
12555
|
+
"color-contrast"
|
12556
|
+
]
|
12557
|
+
}
|
12558
|
+
},
|
12429
12559
|
{
|
12430
12560
|
"preview_path": "primer/beta/icon_button/danger",
|
12431
12561
|
"name": "danger",
|
@@ -16268,7 +16398,18 @@
|
|
16268
16398
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header.rb",
|
16269
16399
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/default/",
|
16270
16400
|
"parameters": [
|
16271
|
-
|
16401
|
+
{
|
16402
|
+
"name": "mobile_menu_label",
|
16403
|
+
"type": "String",
|
16404
|
+
"default": "`I18n.t(\"label_more\")`",
|
16405
|
+
"description": "The tooltip label of the mobile menu"
|
16406
|
+
},
|
16407
|
+
{
|
16408
|
+
"name": "system_arguments",
|
16409
|
+
"type": "Hash",
|
16410
|
+
"default": "N/A",
|
16411
|
+
"description": "{{link_to_system_arguments_docs}}"
|
16412
|
+
}
|
16272
16413
|
],
|
16273
16414
|
"slots": [
|
16274
16415
|
{
|
@@ -16308,18 +16449,6 @@
|
|
16308
16449
|
}
|
16309
16450
|
]
|
16310
16451
|
},
|
16311
|
-
{
|
16312
|
-
"name": "context_bar_actions",
|
16313
|
-
"description": "Context Bar Actions\nBy default shown on narrow screens. Can be overridden with system_argument: display",
|
16314
|
-
"parameters": [
|
16315
|
-
{
|
16316
|
-
"name": "system_arguments",
|
16317
|
-
"type": "Hash",
|
16318
|
-
"default": "N/A",
|
16319
|
-
"description": "{{link_to_system_arguments_docs}}"
|
16320
|
-
}
|
16321
|
-
]
|
16322
|
-
},
|
16323
16452
|
{
|
16324
16453
|
"name": "leading_action",
|
16325
16454
|
"description": "Optional leading action prepend the title\nBy default shown on wider screens. Can be overridden with system_argument: display",
|
@@ -16338,18 +16467,6 @@
|
|
16338
16467
|
}
|
16339
16468
|
]
|
16340
16469
|
},
|
16341
|
-
{
|
16342
|
-
"name": "parent_link",
|
16343
|
-
"description": "Optional parent link in the context area\nBy default shown on narrow screens. Can be overridden with system_argument: display",
|
16344
|
-
"parameters": [
|
16345
|
-
{
|
16346
|
-
"name": "system_arguments",
|
16347
|
-
"type": "Hash",
|
16348
|
-
"default": "N/A",
|
16349
|
-
"description": "{{link_to_system_arguments_docs}}"
|
16350
|
-
}
|
16351
|
-
]
|
16352
|
-
},
|
16353
16470
|
{
|
16354
16471
|
"name": "breadcrumbs",
|
16355
16472
|
"description": "Optional breadcrumbs above the title row\nBy default shown on wider screens. Can be overridden with system_argument: display",
|
@@ -16463,33 +16580,47 @@
|
|
16463
16580
|
"color-contrast"
|
16464
16581
|
]
|
16465
16582
|
}
|
16466
|
-
}
|
16583
|
+
}
|
16584
|
+
],
|
16585
|
+
"subcomponents": [
|
16586
|
+
|
16587
|
+
]
|
16588
|
+
},
|
16589
|
+
{
|
16590
|
+
"fully_qualified_name": "Primer::OpenProject::PageHeader::PageHeaderActionMenu",
|
16591
|
+
"description": "A Helper class to create ActionMenus inside the PageHeader action slot",
|
16592
|
+
"accessibility_docs": null,
|
16593
|
+
"is_form_component": false,
|
16594
|
+
"is_published": true,
|
16595
|
+
"requires_js": false,
|
16596
|
+
"component": "OpenProject::PageHeader::PageHeaderActionMenu",
|
16597
|
+
"status": "open_project",
|
16598
|
+
"a11y_reviewed": false,
|
16599
|
+
"short_name": "OpenProjectPageHeaderPageHeaderActionMenu",
|
16600
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header/page_header_action_menu.rb",
|
16601
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/page_header_action_menu/default/",
|
16602
|
+
"parameters": [
|
16467
16603
|
{
|
16468
|
-
"
|
16469
|
-
"
|
16470
|
-
"
|
16471
|
-
"
|
16472
|
-
"wont_fix": [
|
16473
|
-
"region"
|
16474
|
-
],
|
16475
|
-
"will_fix": [
|
16476
|
-
"color-contrast"
|
16477
|
-
]
|
16478
|
-
}
|
16604
|
+
"name": "menu_arguments",
|
16605
|
+
"type": "Hash",
|
16606
|
+
"default": "`{}`",
|
16607
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}}."
|
16479
16608
|
},
|
16480
16609
|
{
|
16481
|
-
"
|
16482
|
-
"
|
16483
|
-
"
|
16484
|
-
"
|
16485
|
-
"wont_fix": [
|
16486
|
-
"region"
|
16487
|
-
],
|
16488
|
-
"will_fix": [
|
16489
|
-
"color-contrast"
|
16490
|
-
]
|
16491
|
-
}
|
16610
|
+
"name": "button_arguments",
|
16611
|
+
"type": "Hash",
|
16612
|
+
"default": "`{}`",
|
16613
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}} or {{#link_to_component}}Primer::Beta::IconButton{{/link_to_component}}, depending on the value of the `icon:` argument."
|
16492
16614
|
}
|
16615
|
+
],
|
16616
|
+
"slots": [
|
16617
|
+
|
16618
|
+
],
|
16619
|
+
"methods": [
|
16620
|
+
|
16621
|
+
],
|
16622
|
+
"previews": [
|
16623
|
+
|
16493
16624
|
],
|
16494
16625
|
"subcomponents": [
|
16495
16626
|
|