Skip to content

Commit 2142e3b

Browse files
committed
Generating static files
1 parent ac9f727 commit 2142e3b

4 files changed

Lines changed: 128 additions & 0 deletions

File tree

static/classes.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,12 @@
435435
"PageHeader-actions": [
436436
"Primer::OpenProject::PageHeader"
437437
],
438+
"PageHeader-backButton": [
439+
"Primer::OpenProject::PageHeader"
440+
],
441+
"PageHeader-breadcrumbs": [
442+
"Primer::OpenProject::PageHeader"
443+
],
438444
"PageHeader-description": [
439445
"Primer::OpenProject::PageHeader"
440446
],
@@ -444,6 +450,9 @@
444450
"PageHeader-title--large": [
445451
"Primer::OpenProject::PageHeader"
446452
],
453+
"PageHeader-titleBar": [
454+
"Primer::OpenProject::PageHeader"
455+
],
447456
"Popover": [
448457
"Primer::Beta::Popover"
449458
],

static/constants.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,18 @@
13601360
]
13611361
},
13621362
"Primer::OpenProject::PageHeader": {
1363+
"BACK_BUTTON_ICON_OPTIONS": [
1364+
"arrow-left",
1365+
"chevron-left",
1366+
"triangle-left"
1367+
],
1368+
"BACK_BUTTON_SIZE_OPTIONS": [
1369+
"small",
1370+
"medium",
1371+
"large"
1372+
],
1373+
"DEFAULT_BACK_BUTTON_ICON": "arrow-left",
1374+
"DEFAULT_BACK_BUTTON_SIZE": "medium",
13631375
"DEFAULT_HEADER_VARIANT": "medium",
13641376
"HEADER_VARIANT_OPTIONS": [
13651377
"large",

static/info_arch.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15472,10 +15472,65 @@
1547215472
"description": "{{link_to_system_arguments_docs}}"
1547315473
}
1547415474
]
15475+
},
15476+
{
15477+
"name": "back_button",
15478+
"description": "Optional back button prepend the title",
15479+
"parameters": [
15480+
{
15481+
"name": "size",
15482+
"type": "Symbol",
15483+
"default": "N/A",
15484+
"description": "One of `:large`, `:medium`, or `:small`."
15485+
},
15486+
{
15487+
"name": "icon",
15488+
"type": "String",
15489+
"default": "N/A",
15490+
"description": "One of `arrow-left`, `chevron-left`, or `triangle-left`."
15491+
},
15492+
{
15493+
"name": "system_arguments",
15494+
"type": "Hash",
15495+
"default": "N/A",
15496+
"description": "{{link_to_system_arguments_docs}}"
15497+
}
15498+
]
15499+
},
15500+
{
15501+
"name": "breadcrumbs",
15502+
"description": "Optional breadcrumbs above the title row",
15503+
"parameters": [
15504+
{
15505+
"name": "items",
15506+
"type": "Array<String, Hash>",
15507+
"default": "N/A",
15508+
"description": "Items is an array of strings, hash {href, text} or an anchor tag string"
15509+
},
15510+
{
15511+
"name": "system_arguments",
15512+
"type": "Hash",
15513+
"default": "N/A",
15514+
"description": "{{link_to_system_arguments_docs}}"
15515+
}
15516+
]
1547515517
}
1547615518
],
1547715519
"methods": [
15520+
{
15521+
"name": "anchor_string_to_object",
15522+
"description": "transform anchor tag strings to {href, text} objects\ne.g \"\\u003ca href=\\\"/admin\\\"\\u003eAdministration\\u003c/a\\u003e\"",
15523+
"parameters": [
15524+
15525+
]
15526+
},
15527+
{
15528+
"name": "anchor_tag_string?",
15529+
"description": "Check if the item is an anchor tag string e.g \"\\u003ca href=\\\"/admin\\\"\\u003eAdministration\\u003c/a\\u003e\"",
15530+
"parameters": [
1547815531

15532+
]
15533+
}
1547915534
],
1548015535
"previews": [
1548115536
{
@@ -15529,6 +15584,32 @@
1552915584
"color-contrast"
1553015585
]
1553115586
}
15587+
},
15588+
{
15589+
"preview_path": "primer/open_project/page_header/back_button",
15590+
"name": "back_button",
15591+
"snapshot": "false",
15592+
"skip_rules": {
15593+
"wont_fix": [
15594+
"region"
15595+
],
15596+
"will_fix": [
15597+
"color-contrast"
15598+
]
15599+
}
15600+
},
15601+
{
15602+
"preview_path": "primer/open_project/page_header/breadcrumbs",
15603+
"name": "breadcrumbs",
15604+
"snapshot": "false",
15605+
"skip_rules": {
15606+
"wont_fix": [
15607+
"region"
15608+
],
15609+
"will_fix": [
15610+
"color-contrast"
15611+
]
15612+
}
1553215613
}
1553315614
],
1553415615
"subcomponents": [

static/previews.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4755,6 +4755,32 @@
47554755
"color-contrast"
47564756
]
47574757
}
4758+
},
4759+
{
4760+
"preview_path": "primer/open_project/page_header/back_button",
4761+
"name": "back_button",
4762+
"snapshot": "false",
4763+
"skip_rules": {
4764+
"wont_fix": [
4765+
"region"
4766+
],
4767+
"will_fix": [
4768+
"color-contrast"
4769+
]
4770+
}
4771+
},
4772+
{
4773+
"preview_path": "primer/open_project/page_header/breadcrumbs",
4774+
"name": "breadcrumbs",
4775+
"snapshot": "false",
4776+
"skip_rules": {
4777+
"wont_fix": [
4778+
"region"
4779+
],
4780+
"will_fix": [
4781+
"color-contrast"
4782+
]
4783+
}
47584784
}
47594785
]
47604786
},

0 commit comments

Comments
 (0)