openproject-primer_view_components 0.23.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +53 -0
- data/README.md +1 -0
- data/app/assets/javascripts/app/components/primer/alpha/action_list.d.ts +16 -0
- data/app/assets/javascripts/app/components/primer/beta/nav_list.d.ts +3 -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 +2 -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/action_list/item.rb +19 -6
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +2 -0
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.d.ts +16 -0
- data/app/components/primer/alpha/action_list.html.erb +19 -17
- data/app/components/primer/alpha/action_list.js +69 -0
- data/app/components/primer/alpha/action_list.pcss +8 -0
- data/app/components/primer/alpha/action_list.ts +58 -0
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.json +1 -0
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +10 -0
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/dropdown.pcss +1 -1
- 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/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.json +2 -0
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +10 -0
- data/app/components/primer/alpha/toggle_switch.rb +2 -2
- 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/auto_complete/auto_complete.html.erb +9 -9
- data/app/components/primer/beta/breadcrumbs.css +1 -1
- data/app/components/primer/beta/breadcrumbs.css.map +1 -1
- data/app/components/primer/beta/breadcrumbs.pcss +3 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +1 -0
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +4 -0
- data/app/components/primer/beta/nav_list.d.ts +3 -0
- data/app/components/primer/beta/nav_list.html.erb +1 -1
- data/app/components/primer/beta/nav_list.js +25 -2
- data/app/components/primer/beta/nav_list.ts +18 -1
- data/app/components/primer/beta/nav_list_group_element.js +4 -1
- data/app/components/primer/beta/nav_list_group_element.ts +3 -0
- data/app/components/primer/beta/popover.css +1 -1
- data/app/components/primer/beta/popover.css.map +1 -1
- data/app/components/primer/beta/popover.pcss +3 -0
- data/app/components/primer/beta/popover.rb +0 -1
- data/app/components/primer/open_project/page_header.css +1 -1
- data/app/components/primer/open_project/page_header.css.json +3 -4
- data/app/components/primer/open_project/page_header.css.map +1 -1
- data/app/components/primer/open_project/page_header.html.erb +16 -5
- data/app/components/primer/open_project/page_header.pcss +12 -15
- data/app/components/primer/open_project/page_header.rb +164 -57
- 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 +2 -0
- data/app/components/primer/primer.js +2 -0
- data/app/components/primer/primer.ts +2 -0
- data/app/forms/auto_complete_form.rb +18 -0
- data/app/forms/select_form.rb +10 -0
- data/lib/primer/forms/auto_complete.html.erb +6 -0
- data/lib/primer/forms/auto_complete.rb +56 -0
- data/lib/primer/forms/builder.rb +19 -0
- data/lib/primer/forms/check_box_group.html.erb +4 -4
- data/lib/primer/forms/check_box_group.rb +0 -3
- data/lib/primer/forms/dsl/auto_complete_input.rb +33 -0
- data/lib/primer/forms/dsl/check_box_group_input.rb +8 -0
- data/lib/primer/forms/dsl/input.rb +8 -2
- data/lib/primer/forms/dsl/input_methods.rb +9 -0
- data/lib/primer/forms/dsl/radio_button_group_input.rb +8 -0
- data/lib/primer/forms/dsl/select_input.rb +5 -1
- data/lib/primer/forms/form_control.rb +1 -2
- data/lib/primer/forms/primer_text_field.js +2 -2
- data/lib/primer/forms/primer_text_field.ts +2 -2
- data/lib/primer/forms/radio_button_group.html.erb +4 -4
- data/lib/primer/forms/radio_button_group.rb +0 -3
- data/lib/primer/forms/select.html.erb +1 -0
- data/lib/primer/forms/select.rb +9 -5
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/action_list_preview.rb +42 -0
- data/previews/primer/alpha/action_menu_preview.rb +1 -1
- data/previews/primer/alpha/select_preview.rb +12 -1
- data/previews/primer/alpha/text_area_preview.rb +7 -1
- data/previews/primer/alpha/text_field_preview.rb +7 -1
- 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/nav_list_preview.rb +43 -0
- data/previews/primer/forms_preview/auto_complete_form.html.erb +3 -0
- data/previews/primer/forms_preview/select_form.html.erb +1 -1
- data/previews/primer/forms_preview.rb +2 -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 +18 -15
- data/previews/primer/open_project/page_header_preview/playground.html.erb +9 -24
- data/previews/primer/open_project/page_header_preview.rb +24 -50
- data/static/arguments.json +41 -8
- data/static/audited_at.json +1 -0
- data/static/classes.json +4 -4
- data/static/constants.json +29 -16
- data/static/info_arch.json +311 -69
- data/static/previews.json +251 -30
- data/static/statuses.json +1 -0
- metadata +23 -3
- data/previews/primer/open_project/page_header_preview/context_bar_actions.html.erb +0 -25
data/static/constants.json
CHANGED
@@ -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": {
|
@@ -1415,26 +1430,17 @@
|
|
1415
1430
|
"chevron-left",
|
1416
1431
|
"triangle-left"
|
1417
1432
|
],
|
1418
|
-
"
|
1419
|
-
"small",
|
1420
|
-
"medium",
|
1421
|
-
"large"
|
1422
|
-
],
|
1423
|
-
"DEFAULT_BACK_BUTTON_DISPLAY": [
|
1424
|
-
"none",
|
1425
|
-
"flex"
|
1426
|
-
],
|
1433
|
+
"DEFAULT_ACTION_SCHEME": "default",
|
1427
1434
|
"DEFAULT_BACK_BUTTON_ICON": "arrow-left",
|
1428
|
-
"DEFAULT_BACK_BUTTON_SIZE": "medium",
|
1429
1435
|
"DEFAULT_BREADCRUMBS_DISPLAY": [
|
1430
1436
|
"none",
|
1431
1437
|
"flex"
|
1432
1438
|
],
|
1433
|
-
"
|
1434
|
-
|
1435
|
-
"none"
|
1439
|
+
"DEFAULT_HEADER_VARIANT": "medium",
|
1440
|
+
"DEFAULT_LEADING_ACTION_DISPLAY": [
|
1441
|
+
"none",
|
1442
|
+
"flex"
|
1436
1443
|
],
|
1437
|
-
"DEFAULT_HEADER_VARIANT": "large",
|
1438
1444
|
"DEFAULT_PARENT_LINK_DISPLAY": [
|
1439
1445
|
"block",
|
1440
1446
|
"none"
|
@@ -1443,7 +1449,7 @@
|
|
1443
1449
|
"medium",
|
1444
1450
|
"large"
|
1445
1451
|
],
|
1446
|
-
"HEADING_TAG_FALLBACK": "
|
1452
|
+
"HEADING_TAG_FALLBACK": "h1",
|
1447
1453
|
"HEADING_TAG_OPTIONS": [
|
1448
1454
|
"h1",
|
1449
1455
|
"h2",
|
@@ -1451,7 +1457,14 @@
|
|
1451
1457
|
"h4",
|
1452
1458
|
"h5",
|
1453
1459
|
"h6"
|
1454
|
-
]
|
1460
|
+
],
|
1461
|
+
"MORE_MENU_DISPLAY": [
|
1462
|
+
"flex",
|
1463
|
+
"none"
|
1464
|
+
],
|
1465
|
+
"PageHeaderActionMenu": "Primer::OpenProject::PageHeader::PageHeaderActionMenu"
|
1466
|
+
},
|
1467
|
+
"Primer::OpenProject::PageHeader::PageHeaderActionMenu": {
|
1455
1468
|
},
|
1456
1469
|
"Primer::Tooltip": {
|
1457
1470
|
"ALIGN_DEFAULT": "default",
|
data/static/info_arch.json
CHANGED
@@ -746,6 +746,58 @@
|
|
746
746
|
"color-contrast"
|
747
747
|
]
|
748
748
|
}
|
749
|
+
},
|
750
|
+
{
|
751
|
+
"preview_path": "primer/alpha/action_list/long_label_with_tooltip",
|
752
|
+
"name": "long_label_with_tooltip",
|
753
|
+
"snapshot": "true",
|
754
|
+
"skip_rules": {
|
755
|
+
"wont_fix": [
|
756
|
+
"region"
|
757
|
+
],
|
758
|
+
"will_fix": [
|
759
|
+
"color-contrast"
|
760
|
+
]
|
761
|
+
}
|
762
|
+
},
|
763
|
+
{
|
764
|
+
"preview_path": "primer/alpha/action_list/long_label_wrap",
|
765
|
+
"name": "long_label_wrap",
|
766
|
+
"snapshot": "false",
|
767
|
+
"skip_rules": {
|
768
|
+
"wont_fix": [
|
769
|
+
"region"
|
770
|
+
],
|
771
|
+
"will_fix": [
|
772
|
+
"color-contrast"
|
773
|
+
]
|
774
|
+
}
|
775
|
+
},
|
776
|
+
{
|
777
|
+
"preview_path": "primer/alpha/action_list/long_label_truncate_no_tooltip",
|
778
|
+
"name": "long_label_truncate_no_tooltip",
|
779
|
+
"snapshot": "false",
|
780
|
+
"skip_rules": {
|
781
|
+
"wont_fix": [
|
782
|
+
"region"
|
783
|
+
],
|
784
|
+
"will_fix": [
|
785
|
+
"color-contrast"
|
786
|
+
]
|
787
|
+
}
|
788
|
+
},
|
789
|
+
{
|
790
|
+
"preview_path": "primer/alpha/action_list/long_label_show_tooltip_with_truncate_label",
|
791
|
+
"name": "long_label_show_tooltip_with_truncate_label",
|
792
|
+
"snapshot": "false",
|
793
|
+
"skip_rules": {
|
794
|
+
"wont_fix": [
|
795
|
+
"region"
|
796
|
+
],
|
797
|
+
"will_fix": [
|
798
|
+
"color-contrast"
|
799
|
+
]
|
800
|
+
}
|
749
801
|
}
|
750
802
|
],
|
751
803
|
"subcomponents": [
|
@@ -813,9 +865,9 @@
|
|
813
865
|
},
|
814
866
|
{
|
815
867
|
"name": "truncate_label",
|
816
|
-
"type": "Boolean",
|
817
|
-
"default": "`
|
818
|
-
"description": "
|
868
|
+
"type": "Boolean | Symbol",
|
869
|
+
"default": "`:none`",
|
870
|
+
"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."
|
819
871
|
},
|
820
872
|
{
|
821
873
|
"name": "href",
|
@@ -7127,6 +7179,19 @@
|
|
7127
7179
|
]
|
7128
7180
|
}
|
7129
7181
|
},
|
7182
|
+
{
|
7183
|
+
"preview_path": "primer/alpha/select/not_full_width",
|
7184
|
+
"name": "not_full_width",
|
7185
|
+
"snapshot": "true",
|
7186
|
+
"skip_rules": {
|
7187
|
+
"wont_fix": [
|
7188
|
+
"region"
|
7189
|
+
],
|
7190
|
+
"will_fix": [
|
7191
|
+
"color-contrast"
|
7192
|
+
]
|
7193
|
+
}
|
7194
|
+
},
|
7130
7195
|
{
|
7131
7196
|
"preview_path": "primer/alpha/select/disabled",
|
7132
7197
|
"name": "disabled",
|
@@ -7562,7 +7627,7 @@
|
|
7562
7627
|
"name": "full_width",
|
7563
7628
|
"type": "Boolean",
|
7564
7629
|
"default": "N/A",
|
7565
|
-
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container."
|
7630
|
+
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
7566
7631
|
},
|
7567
7632
|
{
|
7568
7633
|
"name": "name",
|
@@ -7745,6 +7810,19 @@
|
|
7745
7810
|
]
|
7746
7811
|
}
|
7747
7812
|
},
|
7813
|
+
{
|
7814
|
+
"preview_path": "primer/alpha/text_area/not_full_width",
|
7815
|
+
"name": "not_full_width",
|
7816
|
+
"snapshot": "true",
|
7817
|
+
"skip_rules": {
|
7818
|
+
"wont_fix": [
|
7819
|
+
"region"
|
7820
|
+
],
|
7821
|
+
"will_fix": [
|
7822
|
+
"color-contrast"
|
7823
|
+
]
|
7824
|
+
}
|
7825
|
+
},
|
7748
7826
|
{
|
7749
7827
|
"preview_path": "primer/alpha/text_area/disabled",
|
7750
7828
|
"name": "disabled",
|
@@ -7813,7 +7891,7 @@
|
|
7813
7891
|
"name": "full_width",
|
7814
7892
|
"type": "Boolean",
|
7815
7893
|
"default": "N/A",
|
7816
|
-
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container."
|
7894
|
+
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
7817
7895
|
},
|
7818
7896
|
{
|
7819
7897
|
"name": "name",
|
@@ -8090,6 +8168,19 @@
|
|
8090
8168
|
]
|
8091
8169
|
}
|
8092
8170
|
},
|
8171
|
+
{
|
8172
|
+
"preview_path": "primer/alpha/text_field/not_full_width",
|
8173
|
+
"name": "not_full_width",
|
8174
|
+
"snapshot": "true",
|
8175
|
+
"skip_rules": {
|
8176
|
+
"wont_fix": [
|
8177
|
+
"region"
|
8178
|
+
],
|
8179
|
+
"will_fix": [
|
8180
|
+
"color-contrast"
|
8181
|
+
]
|
8182
|
+
}
|
8183
|
+
},
|
8093
8184
|
{
|
8094
8185
|
"preview_path": "primer/alpha/text_field/disabled",
|
8095
8186
|
"name": "disabled",
|
@@ -8319,13 +8410,13 @@
|
|
8319
8410
|
"name": "size",
|
8320
8411
|
"type": "Symbol",
|
8321
8412
|
"default": "`:medium`",
|
8322
|
-
"description": "What size toggle switch to render. One of `:
|
8413
|
+
"description": "What size toggle switch to render. One of `:medium` or `:small`."
|
8323
8414
|
},
|
8324
8415
|
{
|
8325
8416
|
"name": "status_label_position",
|
8326
8417
|
"type": "Symbol",
|
8327
8418
|
"default": "`:start`",
|
8328
|
-
"description": "Which side of the toggle switch to render the status label. One of `:
|
8419
|
+
"description": "Which side of the toggle switch to render the status label. One of `:end` or `:start`."
|
8329
8420
|
},
|
8330
8421
|
{
|
8331
8422
|
"name": "system_arguments",
|
@@ -8687,6 +8778,110 @@
|
|
8687
8778
|
"color-contrast"
|
8688
8779
|
]
|
8689
8780
|
}
|
8781
|
+
},
|
8782
|
+
{
|
8783
|
+
"preview_path": "primer/alpha/tooltip/tooltip_n",
|
8784
|
+
"name": "tooltip_n",
|
8785
|
+
"snapshot": "interactive",
|
8786
|
+
"skip_rules": {
|
8787
|
+
"wont_fix": [
|
8788
|
+
"region"
|
8789
|
+
],
|
8790
|
+
"will_fix": [
|
8791
|
+
"color-contrast"
|
8792
|
+
]
|
8793
|
+
}
|
8794
|
+
},
|
8795
|
+
{
|
8796
|
+
"preview_path": "primer/alpha/tooltip/tooltip_s",
|
8797
|
+
"name": "tooltip_s",
|
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_e",
|
8810
|
+
"name": "tooltip_e",
|
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_w",
|
8823
|
+
"name": "tooltip_w",
|
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_se",
|
8836
|
+
"name": "tooltip_se",
|
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_sw",
|
8849
|
+
"name": "tooltip_sw",
|
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_ne",
|
8862
|
+
"name": "tooltip_ne",
|
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_nw",
|
8875
|
+
"name": "tooltip_nw",
|
8876
|
+
"snapshot": "interactive",
|
8877
|
+
"skip_rules": {
|
8878
|
+
"wont_fix": [
|
8879
|
+
"region"
|
8880
|
+
],
|
8881
|
+
"will_fix": [
|
8882
|
+
"color-contrast"
|
8883
|
+
]
|
8884
|
+
}
|
8690
8885
|
}
|
8691
8886
|
],
|
8692
8887
|
"subcomponents": [
|
@@ -13115,6 +13310,58 @@
|
|
13115
13310
|
"color-contrast"
|
13116
13311
|
]
|
13117
13312
|
}
|
13313
|
+
},
|
13314
|
+
{
|
13315
|
+
"preview_path": "primer/beta/nav_list/long_label_with_tooltip",
|
13316
|
+
"name": "long_label_with_tooltip",
|
13317
|
+
"snapshot": "true",
|
13318
|
+
"skip_rules": {
|
13319
|
+
"wont_fix": [
|
13320
|
+
"region"
|
13321
|
+
],
|
13322
|
+
"will_fix": [
|
13323
|
+
"color-contrast"
|
13324
|
+
]
|
13325
|
+
}
|
13326
|
+
},
|
13327
|
+
{
|
13328
|
+
"preview_path": "primer/beta/nav_list/long_label_wrap",
|
13329
|
+
"name": "long_label_wrap",
|
13330
|
+
"snapshot": "false",
|
13331
|
+
"skip_rules": {
|
13332
|
+
"wont_fix": [
|
13333
|
+
"region"
|
13334
|
+
],
|
13335
|
+
"will_fix": [
|
13336
|
+
"color-contrast"
|
13337
|
+
]
|
13338
|
+
}
|
13339
|
+
},
|
13340
|
+
{
|
13341
|
+
"preview_path": "primer/beta/nav_list/long_label_truncate_no_tooltip",
|
13342
|
+
"name": "long_label_truncate_no_tooltip",
|
13343
|
+
"snapshot": "false",
|
13344
|
+
"skip_rules": {
|
13345
|
+
"wont_fix": [
|
13346
|
+
"region"
|
13347
|
+
],
|
13348
|
+
"will_fix": [
|
13349
|
+
"color-contrast"
|
13350
|
+
]
|
13351
|
+
}
|
13352
|
+
},
|
13353
|
+
{
|
13354
|
+
"preview_path": "primer/beta/nav_list/long_label_show_tooltip_no_truncate_label",
|
13355
|
+
"name": "long_label_show_tooltip_no_truncate_label",
|
13356
|
+
"snapshot": "false",
|
13357
|
+
"skip_rules": {
|
13358
|
+
"wont_fix": [
|
13359
|
+
"region"
|
13360
|
+
],
|
13361
|
+
"will_fix": [
|
13362
|
+
"color-contrast"
|
13363
|
+
]
|
13364
|
+
}
|
13118
13365
|
}
|
13119
13366
|
],
|
13120
13367
|
"subcomponents": [
|
@@ -16125,7 +16372,18 @@
|
|
16125
16372
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header.rb",
|
16126
16373
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/default/",
|
16127
16374
|
"parameters": [
|
16128
|
-
|
16375
|
+
{
|
16376
|
+
"name": "mobile_menu_label",
|
16377
|
+
"type": "String",
|
16378
|
+
"default": "`I18n.t(\"label_more\")`",
|
16379
|
+
"description": "The tooltip label of the mobile menu"
|
16380
|
+
},
|
16381
|
+
{
|
16382
|
+
"name": "system_arguments",
|
16383
|
+
"type": "Hash",
|
16384
|
+
"default": "N/A",
|
16385
|
+
"description": "{{link_to_system_arguments_docs}}"
|
16386
|
+
}
|
16129
16387
|
],
|
16130
16388
|
"slots": [
|
16131
16389
|
{
|
@@ -16166,32 +16424,14 @@
|
|
16166
16424
|
]
|
16167
16425
|
},
|
16168
16426
|
{
|
16169
|
-
"name": "
|
16170
|
-
"description": "
|
16427
|
+
"name": "leading_action",
|
16428
|
+
"description": "Optional leading action prepend the title\nBy default shown on wider screens. Can be overridden with system_argument: display",
|
16171
16429
|
"parameters": [
|
16172
|
-
{
|
16173
|
-
"name": "system_arguments",
|
16174
|
-
"type": "Hash",
|
16175
|
-
"default": "N/A",
|
16176
|
-
"description": "{{link_to_system_arguments_docs}}"
|
16177
|
-
}
|
16178
|
-
]
|
16179
|
-
},
|
16180
|
-
{
|
16181
|
-
"name": "back_button",
|
16182
|
-
"description": "Optional back button prepend the title\nBy default shown on wider screens. Can be overridden with system_argument: display",
|
16183
|
-
"parameters": [
|
16184
|
-
{
|
16185
|
-
"name": "size",
|
16186
|
-
"type": "Symbol",
|
16187
|
-
"default": "N/A",
|
16188
|
-
"description": "One of `:large`, `:medium`, or `:small`."
|
16189
|
-
},
|
16190
16430
|
{
|
16191
16431
|
"name": "icon",
|
16192
|
-
"type": "
|
16432
|
+
"type": "Symbol",
|
16193
16433
|
"default": "N/A",
|
16194
|
-
"description": "
|
16434
|
+
"description": "The name of an {{link_to_octicons}} icon to use."
|
16195
16435
|
},
|
16196
16436
|
{
|
16197
16437
|
"name": "system_arguments",
|
@@ -16201,18 +16441,6 @@
|
|
16201
16441
|
}
|
16202
16442
|
]
|
16203
16443
|
},
|
16204
|
-
{
|
16205
|
-
"name": "parent_link",
|
16206
|
-
"description": "Optional parent link in the context area\nBy default shown on narrow screens. Can be overridden with system_argument: display",
|
16207
|
-
"parameters": [
|
16208
|
-
{
|
16209
|
-
"name": "system_arguments",
|
16210
|
-
"type": "Hash",
|
16211
|
-
"default": "N/A",
|
16212
|
-
"description": "{{link_to_system_arguments_docs}}"
|
16213
|
-
}
|
16214
|
-
]
|
16215
|
-
},
|
16216
16444
|
{
|
16217
16445
|
"name": "breadcrumbs",
|
16218
16446
|
"description": "Optional breadcrumbs above the title row\nBy default shown on wider screens. Can be overridden with system_argument: display",
|
@@ -16276,8 +16504,8 @@
|
|
16276
16504
|
}
|
16277
16505
|
},
|
16278
16506
|
{
|
16279
|
-
"preview_path": "primer/open_project/page_header/
|
16280
|
-
"name": "
|
16507
|
+
"preview_path": "primer/open_project/page_header/large_title",
|
16508
|
+
"name": "large_title",
|
16281
16509
|
"snapshot": "false",
|
16282
16510
|
"skip_rules": {
|
16283
16511
|
"wont_fix": [
|
@@ -16302,8 +16530,8 @@
|
|
16302
16530
|
}
|
16303
16531
|
},
|
16304
16532
|
{
|
16305
|
-
"preview_path": "primer/open_project/page_header/
|
16306
|
-
"name": "
|
16533
|
+
"preview_path": "primer/open_project/page_header/leading_action",
|
16534
|
+
"name": "leading_action",
|
16307
16535
|
"snapshot": "false",
|
16308
16536
|
"skip_rules": {
|
16309
16537
|
"wont_fix": [
|
@@ -16326,33 +16554,47 @@
|
|
16326
16554
|
"color-contrast"
|
16327
16555
|
]
|
16328
16556
|
}
|
16329
|
-
}
|
16557
|
+
}
|
16558
|
+
],
|
16559
|
+
"subcomponents": [
|
16560
|
+
|
16561
|
+
]
|
16562
|
+
},
|
16563
|
+
{
|
16564
|
+
"fully_qualified_name": "Primer::OpenProject::PageHeader::PageHeaderActionMenu",
|
16565
|
+
"description": "A Helper class to create ActionMenus inside the PageHeader action slot",
|
16566
|
+
"accessibility_docs": null,
|
16567
|
+
"is_form_component": false,
|
16568
|
+
"is_published": true,
|
16569
|
+
"requires_js": false,
|
16570
|
+
"component": "OpenProject::PageHeader::PageHeaderActionMenu",
|
16571
|
+
"status": "open_project",
|
16572
|
+
"a11y_reviewed": false,
|
16573
|
+
"short_name": "OpenProjectPageHeaderPageHeaderActionMenu",
|
16574
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header/page_header_action_menu.rb",
|
16575
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/page_header_action_menu/default/",
|
16576
|
+
"parameters": [
|
16330
16577
|
{
|
16331
|
-
"
|
16332
|
-
"
|
16333
|
-
"
|
16334
|
-
"
|
16335
|
-
"wont_fix": [
|
16336
|
-
"region"
|
16337
|
-
],
|
16338
|
-
"will_fix": [
|
16339
|
-
"color-contrast"
|
16340
|
-
]
|
16341
|
-
}
|
16578
|
+
"name": "menu_arguments",
|
16579
|
+
"type": "Hash",
|
16580
|
+
"default": "`{}`",
|
16581
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}}."
|
16342
16582
|
},
|
16343
16583
|
{
|
16344
|
-
"
|
16345
|
-
"
|
16346
|
-
"
|
16347
|
-
"
|
16348
|
-
"wont_fix": [
|
16349
|
-
"region"
|
16350
|
-
],
|
16351
|
-
"will_fix": [
|
16352
|
-
"color-contrast"
|
16353
|
-
]
|
16354
|
-
}
|
16584
|
+
"name": "button_arguments",
|
16585
|
+
"type": "Hash",
|
16586
|
+
"default": "`{}`",
|
16587
|
+
"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."
|
16355
16588
|
}
|
16589
|
+
],
|
16590
|
+
"slots": [
|
16591
|
+
|
16592
|
+
],
|
16593
|
+
"methods": [
|
16594
|
+
|
16595
|
+
],
|
16596
|
+
"previews": [
|
16597
|
+
|
16356
16598
|
],
|
16357
16599
|
"subcomponents": [
|
16358
16600
|
|