Skip to content

Commit e31466a

Browse files
committed
Generating static files
1 parent cc1846c commit e31466a

6 files changed

Lines changed: 267 additions & 0 deletions

File tree

static/arguments.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5180,6 +5180,28 @@
51805180
}
51815181
]
51825182
},
5183+
{
5184+
"component": "OpenProject::CollapsibleSection",
5185+
"status": "open_project",
5186+
"a11y_reviewed": false,
5187+
"short_name": "OpenProjectCollapsibleSection",
5188+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/collapsible_section.rb",
5189+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/collapsible_section/default/",
5190+
"parameters": [
5191+
{
5192+
"name": "collapsed",
5193+
"type": "Boolean",
5194+
"default": "`false`",
5195+
"description": "Whether the section is collapsed on initial render."
5196+
},
5197+
{
5198+
"name": "system_arguments",
5199+
"type": "Hash",
5200+
"default": "N/A",
5201+
"description": "[System arguments](/system-arguments)"
5202+
}
5203+
]
5204+
},
51835205
{
51845206
"component": "OpenProject::DangerDialog",
51855207
"status": "open_project",

static/audited_at.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
"Primer::OpenProject::BorderBox::CollapsibleHeader": "",
121121
"Primer::OpenProject::BorderGrid": "",
122122
"Primer::OpenProject::BorderGrid::Cell": "",
123+
"Primer::OpenProject::CollapsibleSection": "",
123124
"Primer::OpenProject::DangerDialog": "",
124125
"Primer::OpenProject::DangerDialog::ConfirmationCheckBox": "",
125126
"Primer::OpenProject::DangerDialog::FormWrapper": "",

static/constants.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,19 @@
15741574
"Primer::OpenProject::BorderGrid::Cell": {
15751575
"GeneratedSlotMethods": "Primer::OpenProject::BorderGrid::Cell::GeneratedSlotMethods"
15761576
},
1577+
"Primer::OpenProject::CollapsibleSection": {
1578+
"GeneratedSlotMethods": "Primer::OpenProject::CollapsibleSection::GeneratedSlotMethods",
1579+
"TITLE_TAG_FALLBACK": "h2",
1580+
"TITLE_TAG_OPTIONS": [
1581+
"h1",
1582+
"h2",
1583+
"h3",
1584+
"h4",
1585+
"h5",
1586+
"h6",
1587+
"span"
1588+
]
1589+
},
15771590
"Primer::OpenProject::DangerDialog": {
15781591
"ConfirmationCheckBox": "Primer::OpenProject::DangerDialog::ConfirmationCheckBox",
15791592
"FormWrapper": "Primer::OpenProject::DangerDialog::FormWrapper",

static/info_arch.json

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17823,6 +17823,163 @@
1782317823

1782417824
]
1782517825
},
17826+
{
17827+
"fully_qualified_name": "Primer::OpenProject::CollapsibleSection",
17828+
"description": "A component consisting of a title and collapsible content.\nClicking the title will hide the collapsible content",
17829+
"accessibility_docs": null,
17830+
"is_form_component": false,
17831+
"is_published": true,
17832+
"requires_js": false,
17833+
"component": "OpenProject::CollapsibleSection",
17834+
"status": "open_project",
17835+
"a11y_reviewed": false,
17836+
"short_name": "OpenProjectCollapsibleSection",
17837+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/collapsible_section.rb",
17838+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/collapsible_section/default/",
17839+
"parameters": [
17840+
{
17841+
"name": "collapsed",
17842+
"type": "Boolean",
17843+
"default": "`false`",
17844+
"description": "Whether the section is collapsed on initial render."
17845+
},
17846+
{
17847+
"name": "system_arguments",
17848+
"type": "Hash",
17849+
"default": "N/A",
17850+
"description": "{{link_to_system_arguments_docs}}"
17851+
}
17852+
],
17853+
"slots": [
17854+
{
17855+
"name": "title",
17856+
"description": "Required Title",
17857+
"parameters": [
17858+
{
17859+
"name": "tag",
17860+
"type": "Symbol",
17861+
"default": "N/A",
17862+
"description": "Customize the element type of the rendered title container."
17863+
},
17864+
{
17865+
"name": "system_arguments",
17866+
"type": "Hash",
17867+
"default": "N/A",
17868+
"description": "{{link_to_system_arguments_docs}}"
17869+
}
17870+
]
17871+
},
17872+
{
17873+
"name": "caption",
17874+
"description": "Optional caption",
17875+
"parameters": [
17876+
{
17877+
"name": "system_arguments",
17878+
"type": "Hash",
17879+
"default": "N/A",
17880+
"description": "{{link_to_system_arguments_docs}}"
17881+
}
17882+
]
17883+
},
17884+
{
17885+
"name": "additional_information",
17886+
"description": "Optional right-side content",
17887+
"parameters": [
17888+
{
17889+
"name": "system_arguments",
17890+
"type": "Hash",
17891+
"default": "N/A",
17892+
"description": "{{link_to_system_arguments_docs}}"
17893+
}
17894+
]
17895+
},
17896+
{
17897+
"name": "collapsible_content",
17898+
"description": "Required collapsible content",
17899+
"parameters": [
17900+
{
17901+
"name": "system_arguments",
17902+
"type": "Hash",
17903+
"default": "N/A",
17904+
"description": "{{link_to_system_arguments_docs}}"
17905+
}
17906+
]
17907+
}
17908+
],
17909+
"methods": [
17910+
17911+
],
17912+
"previews": [
17913+
{
17914+
"preview_path": "primer/open_project/collapsible_section/playground",
17915+
"name": "playground",
17916+
"snapshot": "false",
17917+
"skip_rules": {
17918+
"wont_fix": [
17919+
"region"
17920+
],
17921+
"will_fix": [
17922+
"color-contrast"
17923+
]
17924+
}
17925+
},
17926+
{
17927+
"preview_path": "primer/open_project/collapsible_section/default",
17928+
"name": "default",
17929+
"snapshot": "true",
17930+
"skip_rules": {
17931+
"wont_fix": [
17932+
"region"
17933+
],
17934+
"will_fix": [
17935+
"color-contrast"
17936+
]
17937+
}
17938+
},
17939+
{
17940+
"preview_path": "primer/open_project/collapsible_section/with_additional_information",
17941+
"name": "with_additional_information",
17942+
"snapshot": "true",
17943+
"skip_rules": {
17944+
"wont_fix": [
17945+
"region"
17946+
],
17947+
"will_fix": [
17948+
"color-contrast"
17949+
]
17950+
}
17951+
},
17952+
{
17953+
"preview_path": "primer/open_project/collapsible_section/with_caption",
17954+
"name": "with_caption",
17955+
"snapshot": "true",
17956+
"skip_rules": {
17957+
"wont_fix": [
17958+
"region"
17959+
],
17960+
"will_fix": [
17961+
"color-contrast"
17962+
]
17963+
}
17964+
},
17965+
{
17966+
"preview_path": "primer/open_project/collapsible_section/collapsed",
17967+
"name": "collapsed",
17968+
"snapshot": "true",
17969+
"skip_rules": {
17970+
"wont_fix": [
17971+
"region"
17972+
],
17973+
"will_fix": [
17974+
"color-contrast"
17975+
]
17976+
}
17977+
}
17978+
],
17979+
"subcomponents": [
17980+
17981+
]
17982+
},
1782617983
{
1782717984
"fully_qualified_name": "Primer::OpenProject::DangerDialog",
1782817985
"description": "A pre-configured dialog for destructive/\"potentially dangerous\" actions",

static/previews.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,6 +3043,79 @@
30433043
}
30443044
]
30453045
},
3046+
{
3047+
"name": "collapsible_section",
3048+
"component": "OpenProject::CollapsibleSection",
3049+
"status": "open_project",
3050+
"lookup_path": "primer/open_project/collapsible_section",
3051+
"examples": [
3052+
{
3053+
"preview_path": "primer/open_project/collapsible_section/playground",
3054+
"name": "playground",
3055+
"snapshot": "false",
3056+
"skip_rules": {
3057+
"wont_fix": [
3058+
"region"
3059+
],
3060+
"will_fix": [
3061+
"color-contrast"
3062+
]
3063+
}
3064+
},
3065+
{
3066+
"preview_path": "primer/open_project/collapsible_section/default",
3067+
"name": "default",
3068+
"snapshot": "true",
3069+
"skip_rules": {
3070+
"wont_fix": [
3071+
"region"
3072+
],
3073+
"will_fix": [
3074+
"color-contrast"
3075+
]
3076+
}
3077+
},
3078+
{
3079+
"preview_path": "primer/open_project/collapsible_section/with_additional_information",
3080+
"name": "with_additional_information",
3081+
"snapshot": "true",
3082+
"skip_rules": {
3083+
"wont_fix": [
3084+
"region"
3085+
],
3086+
"will_fix": [
3087+
"color-contrast"
3088+
]
3089+
}
3090+
},
3091+
{
3092+
"preview_path": "primer/open_project/collapsible_section/with_caption",
3093+
"name": "with_caption",
3094+
"snapshot": "true",
3095+
"skip_rules": {
3096+
"wont_fix": [
3097+
"region"
3098+
],
3099+
"will_fix": [
3100+
"color-contrast"
3101+
]
3102+
}
3103+
},
3104+
{
3105+
"preview_path": "primer/open_project/collapsible_section/collapsed",
3106+
"name": "collapsed",
3107+
"snapshot": "true",
3108+
"skip_rules": {
3109+
"wont_fix": [
3110+
"region"
3111+
],
3112+
"will_fix": [
3113+
"color-contrast"
3114+
]
3115+
}
3116+
}
3117+
]
3118+
},
30463119
{
30473120
"name": "counter",
30483121
"component": "Counter",

static/statuses.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
"Primer::OpenProject::BorderBox::CollapsibleHeader": "open_project",
121121
"Primer::OpenProject::BorderGrid": "open_project",
122122
"Primer::OpenProject::BorderGrid::Cell": "open_project",
123+
"Primer::OpenProject::CollapsibleSection": "open_project",
123124
"Primer::OpenProject::DangerDialog": "open_project",
124125
"Primer::OpenProject::DangerDialog::ConfirmationCheckBox": "open_project",
125126
"Primer::OpenProject::DangerDialog::FormWrapper": "open_project",

0 commit comments

Comments
 (0)