openproject-primer_view_components 0.30.1 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/app/assets/javascripts/app/components/primer/open_project/sub_header_element.d.ts +13 -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/open_project/page_header.css +1 -1
- data/app/components/primer/open_project/page_header.css.json +3 -1
- data/app/components/primer/open_project/page_header.css.map +1 -1
- data/app/components/primer/open_project/page_header.html.erb +1 -0
- data/app/components/primer/open_project/page_header.pcss +10 -0
- data/app/components/primer/open_project/page_header.rb +14 -1
- data/app/components/primer/open_project/sub_header.css +1 -0
- data/app/components/primer/open_project/sub_header.css.json +11 -0
- data/app/components/primer/open_project/sub_header.css.map +1 -0
- data/app/components/primer/open_project/sub_header.html.erb +25 -0
- data/app/components/primer/open_project/sub_header.pcss +43 -0
- data/app/components/primer/open_project/sub_header.rb +141 -0
- data/app/components/primer/open_project/sub_header_element.d.ts +13 -0
- data/app/components/primer/open_project/sub_header_element.js +44 -0
- data/app/components/primer/open_project/sub_header_element.ts +45 -0
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.pcss +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/lib/primer/view_components/version.rb +2 -2
- data/previews/primer/open_project/page_header_preview/playground.html.erb +7 -0
- data/previews/primer/open_project/page_header_preview.rb +22 -2
- data/previews/primer/open_project/sub_header_preview/action_menu_buttons.html.erb +15 -0
- data/previews/primer/open_project/sub_header_preview/bottom_pane.html.erb +12 -0
- data/previews/primer/open_project/sub_header_preview/button_group.html.erb +11 -0
- data/previews/primer/open_project/sub_header_preview/custom_filter_button.html.erb +8 -0
- data/previews/primer/open_project/sub_header_preview/dialog_buttons.html.erb +12 -0
- data/previews/primer/open_project/sub_header_preview.rb +88 -0
- data/static/arguments.json +16 -0
- data/static/audited_at.json +1 -0
- data/static/classes.json +24 -0
- data/static/constants.json +4 -0
- data/static/info_arch.json +196 -0
- data/static/previews.json +125 -0
- data/static/statuses.json +1 -0
- metadata +18 -2
@@ -0,0 +1,88 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Setup Playground to use all available component props
|
4
|
+
# Setup Features to use individual component props and combinations
|
5
|
+
|
6
|
+
module Primer
|
7
|
+
module OpenProject
|
8
|
+
# @label SubHeader
|
9
|
+
class SubHeaderPreview < ViewComponent::Preview
|
10
|
+
# @label Playground
|
11
|
+
# @param show_filter_input toggle
|
12
|
+
# @param show_filter_button toggle
|
13
|
+
# @param show_action_button toggle
|
14
|
+
# @param text text
|
15
|
+
def playground(show_filter_input: true, show_filter_button: true, show_action_button: true, text: nil)
|
16
|
+
render(Primer::OpenProject::SubHeader.new) do |component|
|
17
|
+
component.with_filter_input(name: "filter", label: "Filter") if show_filter_input
|
18
|
+
component.with_filter_button do |button|
|
19
|
+
button.with_trailing_visual_counter(count: "15")
|
20
|
+
"Filter"
|
21
|
+
end if show_filter_button
|
22
|
+
|
23
|
+
component.with_text { text } unless text.nil?
|
24
|
+
|
25
|
+
component.with_action_button(scheme: :primary) do |button|
|
26
|
+
button.with_leading_visual_icon(icon: :plus)
|
27
|
+
"Create"
|
28
|
+
end if show_action_button
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# @label Default
|
33
|
+
def default
|
34
|
+
render(Primer::OpenProject::SubHeader.new) do |component|
|
35
|
+
component.with_filter_input(name: "filter", label: "Filter")
|
36
|
+
component.with_filter_button do |button|
|
37
|
+
button.with_trailing_visual_counter(count: "15")
|
38
|
+
"Filter"
|
39
|
+
end
|
40
|
+
|
41
|
+
component.with_action_button(scheme: :primary) do |button|
|
42
|
+
button.with_leading_visual_icon(icon: :plus)
|
43
|
+
"Create"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# @label With ActionMenu
|
49
|
+
def action_menu_buttons
|
50
|
+
render_with_template(locals: {})
|
51
|
+
end
|
52
|
+
|
53
|
+
# @label With Dialog
|
54
|
+
def dialog_buttons
|
55
|
+
render_with_template(locals: {})
|
56
|
+
end
|
57
|
+
|
58
|
+
# @label With ButtonGroup
|
59
|
+
def button_group
|
60
|
+
render_with_template(locals: {})
|
61
|
+
end
|
62
|
+
|
63
|
+
# @label With custom filter button
|
64
|
+
def custom_filter_button
|
65
|
+
render_with_template(locals: {})
|
66
|
+
end
|
67
|
+
|
68
|
+
# @label With a custom area below
|
69
|
+
def bottom_pane
|
70
|
+
render_with_template(locals: {})
|
71
|
+
end
|
72
|
+
|
73
|
+
# @label With Text in the middle
|
74
|
+
def text
|
75
|
+
render(Primer::OpenProject::SubHeader.new) do |component|
|
76
|
+
component.with_filter_input(name: "filter", label: "Filter")
|
77
|
+
|
78
|
+
component.with_text { "Hello world!" }
|
79
|
+
|
80
|
+
component.with_action_button(scheme: :primary) do |button|
|
81
|
+
button.with_leading_visual_icon(icon: :plus)
|
82
|
+
"Create"
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
data/static/arguments.json
CHANGED
@@ -5023,6 +5023,22 @@
|
|
5023
5023
|
}
|
5024
5024
|
]
|
5025
5025
|
},
|
5026
|
+
{
|
5027
|
+
"component": "OpenProject::SubHeader",
|
5028
|
+
"status": "open_project",
|
5029
|
+
"a11y_reviewed": false,
|
5030
|
+
"short_name": "OpenProjectSubHeader",
|
5031
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header.rb",
|
5032
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/default/",
|
5033
|
+
"parameters": [
|
5034
|
+
{
|
5035
|
+
"name": "system_arguments",
|
5036
|
+
"type": "Hash",
|
5037
|
+
"default": "N/A",
|
5038
|
+
"description": "[System arguments](/system-arguments)"
|
5039
|
+
}
|
5040
|
+
]
|
5041
|
+
},
|
5026
5042
|
{
|
5027
5043
|
"component": "OpenProject::ZenModeButton",
|
5028
5044
|
"status": "open_project",
|
data/static/audited_at.json
CHANGED
@@ -123,6 +123,7 @@
|
|
123
123
|
"Primer::OpenProject::PageHeader": "",
|
124
124
|
"Primer::OpenProject::PageHeader::Dialog": "",
|
125
125
|
"Primer::OpenProject::PageHeader::Menu": "",
|
126
|
+
"Primer::OpenProject::SubHeader": "",
|
126
127
|
"Primer::OpenProject::ZenModeButton": "",
|
127
128
|
"Primer::Tooltip": "",
|
128
129
|
"Primer::Truncate": ""
|
data/static/classes.json
CHANGED
@@ -429,6 +429,9 @@
|
|
429
429
|
"PageHeader": [
|
430
430
|
"Primer::OpenProject::PageHeader"
|
431
431
|
],
|
432
|
+
"PageHeader--noBorder": [
|
433
|
+
"Primer::OpenProject::PageHeader"
|
434
|
+
],
|
432
435
|
"PageHeader-actions": [
|
433
436
|
"Primer::OpenProject::PageHeader"
|
434
437
|
],
|
@@ -447,6 +450,9 @@
|
|
447
450
|
"PageHeader-parentLink": [
|
448
451
|
"Primer::OpenProject::PageHeader"
|
449
452
|
],
|
453
|
+
"PageHeader-tabNav": [
|
454
|
+
"Primer::OpenProject::PageHeader"
|
455
|
+
],
|
450
456
|
"PageHeader-title": [
|
451
457
|
"Primer::OpenProject::PageHeader"
|
452
458
|
],
|
@@ -549,6 +555,24 @@
|
|
549
555
|
"State--small": [
|
550
556
|
"Primer::Beta::State"
|
551
557
|
],
|
558
|
+
"SubHeader": [
|
559
|
+
"Primer::OpenProject::SubHeader"
|
560
|
+
],
|
561
|
+
"SubHeader-bottomPane": [
|
562
|
+
"Primer::OpenProject::SubHeader"
|
563
|
+
],
|
564
|
+
"SubHeader-filterContainer": [
|
565
|
+
"Primer::OpenProject::SubHeader"
|
566
|
+
],
|
567
|
+
"SubHeader-leftPane": [
|
568
|
+
"Primer::OpenProject::SubHeader"
|
569
|
+
],
|
570
|
+
"SubHeader-middlePane": [
|
571
|
+
"Primer::OpenProject::SubHeader"
|
572
|
+
],
|
573
|
+
"SubHeader-rightPane": [
|
574
|
+
"Primer::OpenProject::SubHeader"
|
575
|
+
],
|
552
576
|
"Subhead": [
|
553
577
|
"Primer::Beta::Subhead"
|
554
578
|
],
|
data/static/constants.json
CHANGED
@@ -1473,6 +1473,10 @@
|
|
1473
1473
|
},
|
1474
1474
|
"Primer::OpenProject::PageHeader::Menu": {
|
1475
1475
|
},
|
1476
|
+
"Primer::OpenProject::SubHeader": {
|
1477
|
+
"HIDDEN_FILTER_TARGET_SELECTOR": "sub-header.hiddenItemsOnExpandedFilter",
|
1478
|
+
"SHOWN_FILTER_TARGET_SELECTOR": "sub-header.shownItemsOnExpandedFilter"
|
1479
|
+
},
|
1476
1480
|
"Primer::OpenProject::ZenModeButton": {
|
1477
1481
|
"ZEN_MODE_BUTTON_ICON": "screen-full",
|
1478
1482
|
"ZEN_MODE_BUTTON_LABEL": "Translation missing: en.label_zen_mode"
|
data/static/info_arch.json
CHANGED
@@ -16692,6 +16692,18 @@
|
|
16692
16692
|
"description": "{{link_to_system_arguments_docs}}"
|
16693
16693
|
}
|
16694
16694
|
]
|
16695
|
+
},
|
16696
|
+
{
|
16697
|
+
"name": "tab_nav",
|
16698
|
+
"description": "Optional tabs nav at the bottom of the page header",
|
16699
|
+
"parameters": [
|
16700
|
+
{
|
16701
|
+
"name": "system_arguments",
|
16702
|
+
"type": "Hash",
|
16703
|
+
"default": "N/A",
|
16704
|
+
"description": "{{link_to_system_arguments_docs}}"
|
16705
|
+
}
|
16706
|
+
]
|
16695
16707
|
}
|
16696
16708
|
],
|
16697
16709
|
"methods": [
|
@@ -16840,6 +16852,19 @@
|
|
16840
16852
|
"color-contrast"
|
16841
16853
|
]
|
16842
16854
|
}
|
16855
|
+
},
|
16856
|
+
{
|
16857
|
+
"preview_path": "primer/open_project/page_header/tab_nav",
|
16858
|
+
"name": "tab_nav",
|
16859
|
+
"snapshot": "false",
|
16860
|
+
"skip_rules": {
|
16861
|
+
"wont_fix": [
|
16862
|
+
"region"
|
16863
|
+
],
|
16864
|
+
"will_fix": [
|
16865
|
+
"color-contrast"
|
16866
|
+
]
|
16867
|
+
}
|
16843
16868
|
}
|
16844
16869
|
],
|
16845
16870
|
"subcomponents": [
|
@@ -16926,6 +16951,177 @@
|
|
16926
16951
|
|
16927
16952
|
]
|
16928
16953
|
},
|
16954
|
+
{
|
16955
|
+
"fully_qualified_name": "Primer::OpenProject::SubHeader",
|
16956
|
+
"description": "The SubHeader contains specific actions to modify the page content below, e.g a filter button or a create button\nIt should not be used stand alone, but in combination with a PageHeader, either as a direct sibling or as part of a tab content",
|
16957
|
+
"accessibility_docs": null,
|
16958
|
+
"is_form_component": false,
|
16959
|
+
"is_published": true,
|
16960
|
+
"requires_js": false,
|
16961
|
+
"component": "OpenProject::SubHeader",
|
16962
|
+
"status": "open_project",
|
16963
|
+
"a11y_reviewed": false,
|
16964
|
+
"short_name": "OpenProjectSubHeader",
|
16965
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header.rb",
|
16966
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/default/",
|
16967
|
+
"parameters": [
|
16968
|
+
{
|
16969
|
+
"name": "system_arguments",
|
16970
|
+
"type": "Hash",
|
16971
|
+
"default": "N/A",
|
16972
|
+
"description": "{{link_to_system_arguments_docs}}"
|
16973
|
+
}
|
16974
|
+
],
|
16975
|
+
"slots": [
|
16976
|
+
{
|
16977
|
+
"name": "actions",
|
16978
|
+
"description": "A button or custom content that will render on the right-hand side of the component.\n\nTo render a button, call the `with_button` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}}.\n\nTo render custom content, call the `with_button_component` method and pass a block that returns HTML.",
|
16979
|
+
"parameters": [
|
16980
|
+
|
16981
|
+
]
|
16982
|
+
},
|
16983
|
+
{
|
16984
|
+
"name": "filter_input",
|
16985
|
+
"description": null,
|
16986
|
+
"parameters": [
|
16987
|
+
|
16988
|
+
]
|
16989
|
+
},
|
16990
|
+
{
|
16991
|
+
"name": "filter_button",
|
16992
|
+
"description": "A button or custom content that will render on the left-hand side of the component, next to the filter input.\n\nTo render a button, call the `with_filter_button` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}}.\n\nTo render custom content, call the `with_filter_component` method and pass a block that returns HTML.",
|
16993
|
+
"parameters": [
|
16994
|
+
|
16995
|
+
]
|
16996
|
+
},
|
16997
|
+
{
|
16998
|
+
"name": "text",
|
16999
|
+
"description": null,
|
17000
|
+
"parameters": [
|
17001
|
+
|
17002
|
+
]
|
17003
|
+
},
|
17004
|
+
{
|
17005
|
+
"name": "bottom_pane_component",
|
17006
|
+
"description": "A slot for a generic component which will be shown in a second row below the rest, spanning the whole width",
|
17007
|
+
"parameters": [
|
17008
|
+
|
17009
|
+
]
|
17010
|
+
}
|
17011
|
+
],
|
17012
|
+
"methods": [
|
17013
|
+
|
17014
|
+
],
|
17015
|
+
"previews": [
|
17016
|
+
{
|
17017
|
+
"preview_path": "primer/open_project/sub_header/playground",
|
17018
|
+
"name": "playground",
|
17019
|
+
"snapshot": "false",
|
17020
|
+
"skip_rules": {
|
17021
|
+
"wont_fix": [
|
17022
|
+
"region"
|
17023
|
+
],
|
17024
|
+
"will_fix": [
|
17025
|
+
"color-contrast"
|
17026
|
+
]
|
17027
|
+
}
|
17028
|
+
},
|
17029
|
+
{
|
17030
|
+
"preview_path": "primer/open_project/sub_header/default",
|
17031
|
+
"name": "default",
|
17032
|
+
"snapshot": "false",
|
17033
|
+
"skip_rules": {
|
17034
|
+
"wont_fix": [
|
17035
|
+
"region"
|
17036
|
+
],
|
17037
|
+
"will_fix": [
|
17038
|
+
"color-contrast"
|
17039
|
+
]
|
17040
|
+
}
|
17041
|
+
},
|
17042
|
+
{
|
17043
|
+
"preview_path": "primer/open_project/sub_header/action_menu_buttons",
|
17044
|
+
"name": "action_menu_buttons",
|
17045
|
+
"snapshot": "false",
|
17046
|
+
"skip_rules": {
|
17047
|
+
"wont_fix": [
|
17048
|
+
"region"
|
17049
|
+
],
|
17050
|
+
"will_fix": [
|
17051
|
+
"color-contrast"
|
17052
|
+
]
|
17053
|
+
}
|
17054
|
+
},
|
17055
|
+
{
|
17056
|
+
"preview_path": "primer/open_project/sub_header/dialog_buttons",
|
17057
|
+
"name": "dialog_buttons",
|
17058
|
+
"snapshot": "false",
|
17059
|
+
"skip_rules": {
|
17060
|
+
"wont_fix": [
|
17061
|
+
"region"
|
17062
|
+
],
|
17063
|
+
"will_fix": [
|
17064
|
+
"color-contrast"
|
17065
|
+
]
|
17066
|
+
}
|
17067
|
+
},
|
17068
|
+
{
|
17069
|
+
"preview_path": "primer/open_project/sub_header/button_group",
|
17070
|
+
"name": "button_group",
|
17071
|
+
"snapshot": "false",
|
17072
|
+
"skip_rules": {
|
17073
|
+
"wont_fix": [
|
17074
|
+
"region"
|
17075
|
+
],
|
17076
|
+
"will_fix": [
|
17077
|
+
"color-contrast"
|
17078
|
+
]
|
17079
|
+
}
|
17080
|
+
},
|
17081
|
+
{
|
17082
|
+
"preview_path": "primer/open_project/sub_header/custom_filter_button",
|
17083
|
+
"name": "custom_filter_button",
|
17084
|
+
"snapshot": "false",
|
17085
|
+
"skip_rules": {
|
17086
|
+
"wont_fix": [
|
17087
|
+
"region"
|
17088
|
+
],
|
17089
|
+
"will_fix": [
|
17090
|
+
"color-contrast"
|
17091
|
+
]
|
17092
|
+
}
|
17093
|
+
},
|
17094
|
+
{
|
17095
|
+
"preview_path": "primer/open_project/sub_header/bottom_pane",
|
17096
|
+
"name": "bottom_pane",
|
17097
|
+
"snapshot": "false",
|
17098
|
+
"skip_rules": {
|
17099
|
+
"wont_fix": [
|
17100
|
+
"region"
|
17101
|
+
],
|
17102
|
+
"will_fix": [
|
17103
|
+
"color-contrast"
|
17104
|
+
]
|
17105
|
+
}
|
17106
|
+
},
|
17107
|
+
{
|
17108
|
+
"preview_path": "primer/open_project/sub_header/text",
|
17109
|
+
"name": "text",
|
17110
|
+
"snapshot": "false",
|
17111
|
+
"skip_rules": {
|
17112
|
+
"wont_fix": [
|
17113
|
+
"region"
|
17114
|
+
],
|
17115
|
+
"will_fix": [
|
17116
|
+
"color-contrast"
|
17117
|
+
]
|
17118
|
+
}
|
17119
|
+
}
|
17120
|
+
],
|
17121
|
+
"subcomponents": [
|
17122
|
+
|
17123
|
+
]
|
17124
|
+
},
|
16929
17125
|
{
|
16930
17126
|
"fully_qualified_name": "Primer::OpenProject::ZenModeButton",
|
16931
17127
|
"description": "Add a general description of component here\nAdd additional usage considerations or best practices that may aid the user to use the component correctly.",
|
data/static/previews.json
CHANGED
@@ -5390,6 +5390,19 @@
|
|
5390
5390
|
"color-contrast"
|
5391
5391
|
]
|
5392
5392
|
}
|
5393
|
+
},
|
5394
|
+
{
|
5395
|
+
"preview_path": "primer/open_project/page_header/tab_nav",
|
5396
|
+
"name": "tab_nav",
|
5397
|
+
"snapshot": "false",
|
5398
|
+
"skip_rules": {
|
5399
|
+
"wont_fix": [
|
5400
|
+
"region"
|
5401
|
+
],
|
5402
|
+
"will_fix": [
|
5403
|
+
"color-contrast"
|
5404
|
+
]
|
5405
|
+
}
|
5393
5406
|
}
|
5394
5407
|
]
|
5395
5408
|
},
|
@@ -6297,6 +6310,118 @@
|
|
6297
6310
|
}
|
6298
6311
|
]
|
6299
6312
|
},
|
6313
|
+
{
|
6314
|
+
"name": "sub_header",
|
6315
|
+
"component": "OpenProject::SubHeader",
|
6316
|
+
"status": "open_project",
|
6317
|
+
"lookup_path": "primer/open_project/sub_header",
|
6318
|
+
"examples": [
|
6319
|
+
{
|
6320
|
+
"preview_path": "primer/open_project/sub_header/playground",
|
6321
|
+
"name": "playground",
|
6322
|
+
"snapshot": "false",
|
6323
|
+
"skip_rules": {
|
6324
|
+
"wont_fix": [
|
6325
|
+
"region"
|
6326
|
+
],
|
6327
|
+
"will_fix": [
|
6328
|
+
"color-contrast"
|
6329
|
+
]
|
6330
|
+
}
|
6331
|
+
},
|
6332
|
+
{
|
6333
|
+
"preview_path": "primer/open_project/sub_header/default",
|
6334
|
+
"name": "default",
|
6335
|
+
"snapshot": "false",
|
6336
|
+
"skip_rules": {
|
6337
|
+
"wont_fix": [
|
6338
|
+
"region"
|
6339
|
+
],
|
6340
|
+
"will_fix": [
|
6341
|
+
"color-contrast"
|
6342
|
+
]
|
6343
|
+
}
|
6344
|
+
},
|
6345
|
+
{
|
6346
|
+
"preview_path": "primer/open_project/sub_header/action_menu_buttons",
|
6347
|
+
"name": "action_menu_buttons",
|
6348
|
+
"snapshot": "false",
|
6349
|
+
"skip_rules": {
|
6350
|
+
"wont_fix": [
|
6351
|
+
"region"
|
6352
|
+
],
|
6353
|
+
"will_fix": [
|
6354
|
+
"color-contrast"
|
6355
|
+
]
|
6356
|
+
}
|
6357
|
+
},
|
6358
|
+
{
|
6359
|
+
"preview_path": "primer/open_project/sub_header/dialog_buttons",
|
6360
|
+
"name": "dialog_buttons",
|
6361
|
+
"snapshot": "false",
|
6362
|
+
"skip_rules": {
|
6363
|
+
"wont_fix": [
|
6364
|
+
"region"
|
6365
|
+
],
|
6366
|
+
"will_fix": [
|
6367
|
+
"color-contrast"
|
6368
|
+
]
|
6369
|
+
}
|
6370
|
+
},
|
6371
|
+
{
|
6372
|
+
"preview_path": "primer/open_project/sub_header/button_group",
|
6373
|
+
"name": "button_group",
|
6374
|
+
"snapshot": "false",
|
6375
|
+
"skip_rules": {
|
6376
|
+
"wont_fix": [
|
6377
|
+
"region"
|
6378
|
+
],
|
6379
|
+
"will_fix": [
|
6380
|
+
"color-contrast"
|
6381
|
+
]
|
6382
|
+
}
|
6383
|
+
},
|
6384
|
+
{
|
6385
|
+
"preview_path": "primer/open_project/sub_header/custom_filter_button",
|
6386
|
+
"name": "custom_filter_button",
|
6387
|
+
"snapshot": "false",
|
6388
|
+
"skip_rules": {
|
6389
|
+
"wont_fix": [
|
6390
|
+
"region"
|
6391
|
+
],
|
6392
|
+
"will_fix": [
|
6393
|
+
"color-contrast"
|
6394
|
+
]
|
6395
|
+
}
|
6396
|
+
},
|
6397
|
+
{
|
6398
|
+
"preview_path": "primer/open_project/sub_header/bottom_pane",
|
6399
|
+
"name": "bottom_pane",
|
6400
|
+
"snapshot": "false",
|
6401
|
+
"skip_rules": {
|
6402
|
+
"wont_fix": [
|
6403
|
+
"region"
|
6404
|
+
],
|
6405
|
+
"will_fix": [
|
6406
|
+
"color-contrast"
|
6407
|
+
]
|
6408
|
+
}
|
6409
|
+
},
|
6410
|
+
{
|
6411
|
+
"preview_path": "primer/open_project/sub_header/text",
|
6412
|
+
"name": "text",
|
6413
|
+
"snapshot": "false",
|
6414
|
+
"skip_rules": {
|
6415
|
+
"wont_fix": [
|
6416
|
+
"region"
|
6417
|
+
],
|
6418
|
+
"will_fix": [
|
6419
|
+
"color-contrast"
|
6420
|
+
]
|
6421
|
+
}
|
6422
|
+
}
|
6423
|
+
]
|
6424
|
+
},
|
6300
6425
|
{
|
6301
6426
|
"name": "subhead",
|
6302
6427
|
"component": "Subhead",
|
data/static/statuses.json
CHANGED
@@ -123,6 +123,7 @@
|
|
123
123
|
"Primer::OpenProject::PageHeader": "open_project",
|
124
124
|
"Primer::OpenProject::PageHeader::Dialog": "open_project",
|
125
125
|
"Primer::OpenProject::PageHeader::Menu": "open_project",
|
126
|
+
"Primer::OpenProject::SubHeader": "open_project",
|
126
127
|
"Primer::OpenProject::ZenModeButton": "open_project",
|
127
128
|
"Primer::Tooltip": "deprecated",
|
128
129
|
"Primer::Truncate": "deprecated"
|
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.
|
4
|
+
version: 0.32.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-05-
|
12
|
+
date: 2024-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionview
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- app/assets/javascripts/app/components/primer/dialog_helper.d.ts
|
104
104
|
- app/assets/javascripts/app/components/primer/focus_group.d.ts
|
105
105
|
- app/assets/javascripts/app/components/primer/open_project/page_header_element.d.ts
|
106
|
+
- app/assets/javascripts/app/components/primer/open_project/sub_header_element.d.ts
|
106
107
|
- app/assets/javascripts/app/components/primer/open_project/zen_mode_button.d.ts
|
107
108
|
- app/assets/javascripts/app/components/primer/primer.d.ts
|
108
109
|
- app/assets/javascripts/app/components/primer/scrollable_region.d.ts
|
@@ -499,6 +500,15 @@ files:
|
|
499
500
|
- app/components/primer/open_project/page_header_element.d.ts
|
500
501
|
- app/components/primer/open_project/page_header_element.js
|
501
502
|
- app/components/primer/open_project/page_header_element.ts
|
503
|
+
- app/components/primer/open_project/sub_header.css
|
504
|
+
- app/components/primer/open_project/sub_header.css.json
|
505
|
+
- app/components/primer/open_project/sub_header.css.map
|
506
|
+
- app/components/primer/open_project/sub_header.html.erb
|
507
|
+
- app/components/primer/open_project/sub_header.pcss
|
508
|
+
- app/components/primer/open_project/sub_header.rb
|
509
|
+
- app/components/primer/open_project/sub_header_element.d.ts
|
510
|
+
- app/components/primer/open_project/sub_header_element.js
|
511
|
+
- app/components/primer/open_project/sub_header_element.ts
|
502
512
|
- app/components/primer/open_project/zen_mode_button.d.ts
|
503
513
|
- app/components/primer/open_project/zen_mode_button.html.erb
|
504
514
|
- app/components/primer/open_project/zen_mode_button.js
|
@@ -929,6 +939,12 @@ files:
|
|
929
939
|
- previews/primer/open_project/page_header_preview.rb
|
930
940
|
- previews/primer/open_project/page_header_preview/actions.html.erb
|
931
941
|
- previews/primer/open_project/page_header_preview/playground.html.erb
|
942
|
+
- previews/primer/open_project/sub_header_preview.rb
|
943
|
+
- previews/primer/open_project/sub_header_preview/action_menu_buttons.html.erb
|
944
|
+
- previews/primer/open_project/sub_header_preview/bottom_pane.html.erb
|
945
|
+
- previews/primer/open_project/sub_header_preview/button_group.html.erb
|
946
|
+
- previews/primer/open_project/sub_header_preview/custom_filter_button.html.erb
|
947
|
+
- previews/primer/open_project/sub_header_preview/dialog_buttons.html.erb
|
932
948
|
- previews/primer/open_project/zen_mode_button_preview.rb
|
933
949
|
- previews/primer/url_helpers.rb
|
934
950
|
- static/arguments.json
|