Skip to content

Commit a75b20e

Browse files
committed
Generating static files
1 parent 195a277 commit a75b20e

6 files changed

Lines changed: 94 additions & 80 deletions

File tree

static/arguments.json

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4959,7 +4959,40 @@
49594959
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header.rb",
49604960
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/default/",
49614961
"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": "alpha",
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+
}
49634996
]
49644997
},
49654998
{

static/audited_at.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
"Primer::OpenProject::GridLayout::Area": "",
122122
"Primer::OpenProject::InputGroup": "",
123123
"Primer::OpenProject::PageHeader": "",
124+
"Primer::OpenProject::PageHeader::PageHeaderActionMenu": "",
124125
"Primer::Tooltip": "",
125126
"Primer::Truncate": ""
126127
}

static/constants.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,15 +1430,12 @@
14301430
"chevron-left",
14311431
"triangle-left"
14321432
],
1433+
"DEFAULT_ACTION_SCHEME": "default",
14331434
"DEFAULT_BACK_BUTTON_ICON": "arrow-left",
14341435
"DEFAULT_BREADCRUMBS_DISPLAY": [
14351436
"none",
14361437
"flex"
14371438
],
1438-
"DEFAULT_CONTEXT_BAR_ACTIONS_DISPLAY": [
1439-
"flex",
1440-
"none"
1441-
],
14421439
"DEFAULT_HEADER_VARIANT": "medium",
14431440
"DEFAULT_LEADING_ACTION_DISPLAY": [
14441441
"none",
@@ -1460,7 +1457,14 @@
14601457
"h4",
14611458
"h5",
14621459
"h6"
1463-
]
1460+
],
1461+
"MORE_MENU_DISPLAY": [
1462+
"flex",
1463+
"none"
1464+
],
1465+
"PageHeaderActionMenu": "Primer::OpenProject::PageHeader::PageHeaderActionMenu"
1466+
},
1467+
"Primer::OpenProject::PageHeader::PageHeaderActionMenu": {
14641468
},
14651469
"Primer::Tooltip": {
14661470
"ALIGN_DEFAULT": "default",

static/info_arch.json

Lines changed: 49 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -16372,7 +16372,18 @@
1637216372
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header.rb",
1637316373
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/default/",
1637416374
"parameters": [
16375-
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+
}
1637616387
],
1637716388
"slots": [
1637816389
{
@@ -16412,18 +16423,6 @@
1641216423
}
1641316424
]
1641416425
},
16415-
{
16416-
"name": "context_bar_actions",
16417-
"description": "Context Bar Actions\nBy default shown on narrow screens. Can be overridden with system_argument: display",
16418-
"parameters": [
16419-
{
16420-
"name": "system_arguments",
16421-
"type": "Hash",
16422-
"default": "N/A",
16423-
"description": "{{link_to_system_arguments_docs}}"
16424-
}
16425-
]
16426-
},
1642716426
{
1642816427
"name": "leading_action",
1642916428
"description": "Optional leading action prepend the title\nBy default shown on wider screens. Can be overridden with system_argument: display",
@@ -16442,18 +16441,6 @@
1644216441
}
1644316442
]
1644416443
},
16445-
{
16446-
"name": "parent_link",
16447-
"description": "Optional parent link in the context area\nBy default shown on narrow screens. Can be overridden with system_argument: display",
16448-
"parameters": [
16449-
{
16450-
"name": "system_arguments",
16451-
"type": "Hash",
16452-
"default": "N/A",
16453-
"description": "{{link_to_system_arguments_docs}}"
16454-
}
16455-
]
16456-
},
1645716444
{
1645816445
"name": "breadcrumbs",
1645916446
"description": "Optional breadcrumbs above the title row\nBy default shown on wider screens. Can be overridden with system_argument: display",
@@ -16567,33 +16554,47 @@
1656716554
"color-contrast"
1656816555
]
1656916556
}
16570-
},
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": "alpha",
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": [
1657116577
{
16572-
"preview_path": "primer/open_project/page_header/parent_link",
16573-
"name": "parent_link",
16574-
"snapshot": "false",
16575-
"skip_rules": {
16576-
"wont_fix": [
16577-
"region"
16578-
],
16579-
"will_fix": [
16580-
"color-contrast"
16581-
]
16582-
}
16578+
"name": "menu_arguments",
16579+
"type": "Hash",
16580+
"default": "`{}`",
16581+
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}}."
1658316582
},
1658416583
{
16585-
"preview_path": "primer/open_project/page_header/context_bar_actions",
16586-
"name": "context_bar_actions",
16587-
"snapshot": "false",
16588-
"skip_rules": {
16589-
"wont_fix": [
16590-
"region"
16591-
],
16592-
"will_fix": [
16593-
"color-contrast"
16594-
]
16595-
}
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."
1659616588
}
16589+
],
16590+
"slots": [
16591+
16592+
],
16593+
"methods": [
16594+
16595+
],
16596+
"previews": [
16597+
1659716598
],
1659816599
"subcomponents": [
1659916600

static/previews.json

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5182,32 +5182,6 @@
51825182
"color-contrast"
51835183
]
51845184
}
5185-
},
5186-
{
5187-
"preview_path": "primer/open_project/page_header/parent_link",
5188-
"name": "parent_link",
5189-
"snapshot": "false",
5190-
"skip_rules": {
5191-
"wont_fix": [
5192-
"region"
5193-
],
5194-
"will_fix": [
5195-
"color-contrast"
5196-
]
5197-
}
5198-
},
5199-
{
5200-
"preview_path": "primer/open_project/page_header/context_bar_actions",
5201-
"name": "context_bar_actions",
5202-
"snapshot": "false",
5203-
"skip_rules": {
5204-
"wont_fix": [
5205-
"region"
5206-
],
5207-
"will_fix": [
5208-
"color-contrast"
5209-
]
5210-
}
52115185
}
52125186
]
52135187
},

static/statuses.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
"Primer::OpenProject::GridLayout::Area": "open_project",
122122
"Primer::OpenProject::InputGroup": "open_project",
123123
"Primer::OpenProject::PageHeader": "open_project",
124+
"Primer::OpenProject::PageHeader::PageHeaderActionMenu": "alpha",
124125
"Primer::Tooltip": "deprecated",
125126
"Primer::Truncate": "deprecated"
126127
}

0 commit comments

Comments
 (0)