Skip to content

Commit 772fa27

Browse files
committed
Generating static files
1 parent 541b780 commit 772fa27

File tree

6 files changed

+155
-5
lines changed

6 files changed

+155
-5
lines changed

static/arguments.json

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,34 @@
13571357
}
13581358
]
13591359
},
1360+
{
1361+
"component": "IncludeFragment",
1362+
"status": "alpha",
1363+
"a11y_reviewed": false,
1364+
"short_name": "IncludeFragment",
1365+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/include_fragment.rb",
1366+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/include_fragment/default/",
1367+
"parameters": [
1368+
{
1369+
"name": "src",
1370+
"type": "String",
1371+
"default": "`nil`",
1372+
"description": "The URL from which to retrieve an HTML element fragment."
1373+
},
1374+
{
1375+
"name": "loading",
1376+
"type": "Symbol",
1377+
"default": "`:eager`",
1378+
"description": "One of `:eager` or `:lazy`."
1379+
},
1380+
{
1381+
"name": "system_arguments",
1382+
"type": "Hash",
1383+
"default": "N/A",
1384+
"description": "[System arguments](/system-arguments)"
1385+
}
1386+
]
1387+
},
13601388
{
13611389
"component": "Layout",
13621390
"status": "alpha",
@@ -4949,13 +4977,19 @@
49494977
"name": "condition",
49504978
"type": "Boolean",
49514979
"default": "N/A",
4952-
"description": "Whether or not to wrap the content in a `Primer::BaseComponent`."
4980+
"description": "Whether or not to wrap the content in a component."
4981+
},
4982+
{
4983+
"name": "component",
4984+
"type": "Class",
4985+
"default": "`Primer::BaseComponent`",
4986+
"description": "The component class to use as a wrapper, defaults to `Primer::BaseComponent`"
49534987
},
49544988
{
49554989
"name": "base_component_arguments",
49564990
"type": "Hash",
49574991
"default": "N/A",
4958-
"description": "The arguments to pass to `Primer::BaseComponent`."
4992+
"description": "The arguments to pass to the component."
49594993
}
49604994
]
49614995
},

static/audited_at.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"Primer::Alpha::HellipButton": "",
3131
"Primer::Alpha::HiddenTextExpander": "",
3232
"Primer::Alpha::Image": "",
33+
"Primer::Alpha::IncludeFragment": "",
3334
"Primer::Alpha::Layout": "",
3435
"Primer::Alpha::Layout::Main": "",
3536
"Primer::Alpha::Layout::Sidebar": "",

static/constants.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@
391391
"Primer::Alpha::Image": {
392392
"GeneratedSlotMethods": "Primer::Alpha::Image::GeneratedSlotMethods"
393393
},
394+
"Primer::Alpha::IncludeFragment": {
395+
"GeneratedSlotMethods": "Primer::Alpha::IncludeFragment::GeneratedSlotMethods"
396+
},
394397
"Primer::Alpha::Layout": {
395398
"FIRST_IN_SOURCE_DEFAULT": "sidebar",
396399
"FIRST_IN_SOURCE_OPTIONS": [

static/info_arch.json

Lines changed: 80 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4679,6 +4679,77 @@
46794679

46804680
]
46814681
},
4682+
{
4683+
"fully_qualified_name": "Primer::Alpha::IncludeFragment",
4684+
"description": "Use `IncludeFragment` to load HTML elements from the server.\nAdd additional usage considerations or best practices that may aid the user to use the component correctly.",
4685+
"accessibility_docs": "Add any accessibility considerations",
4686+
"is_form_component": false,
4687+
"is_published": true,
4688+
"requires_js": false,
4689+
"component": "IncludeFragment",
4690+
"status": "alpha",
4691+
"a11y_reviewed": false,
4692+
"short_name": "IncludeFragment",
4693+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/include_fragment.rb",
4694+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/include_fragment/default/",
4695+
"parameters": [
4696+
{
4697+
"name": "src",
4698+
"type": "String",
4699+
"default": "`nil`",
4700+
"description": "The URL from which to retrieve an HTML element fragment."
4701+
},
4702+
{
4703+
"name": "loading",
4704+
"type": "Symbol",
4705+
"default": "`:eager`",
4706+
"description": "One of `:eager` or `:lazy`."
4707+
},
4708+
{
4709+
"name": "system_arguments",
4710+
"type": "Hash",
4711+
"default": "N/A",
4712+
"description": "{{link_to_system_arguments_docs}}"
4713+
}
4714+
],
4715+
"slots": [
4716+
4717+
],
4718+
"methods": [
4719+
4720+
],
4721+
"previews": [
4722+
{
4723+
"preview_path": "primer/alpha/include_fragment/playground",
4724+
"name": "playground",
4725+
"snapshot": "false",
4726+
"skip_rules": {
4727+
"wont_fix": [
4728+
"region"
4729+
],
4730+
"will_fix": [
4731+
"color-contrast"
4732+
]
4733+
}
4734+
},
4735+
{
4736+
"preview_path": "primer/alpha/include_fragment/default",
4737+
"name": "default",
4738+
"snapshot": "false",
4739+
"skip_rules": {
4740+
"wont_fix": [
4741+
"region"
4742+
],
4743+
"will_fix": [
4744+
"color-contrast"
4745+
]
4746+
}
4747+
}
4748+
],
4749+
"subcomponents": [
4750+
4751+
]
4752+
},
46824753
{
46834754
"fully_qualified_name": "Primer::Alpha::Layout",
46844755
"description": "`Layout` provides foundational patterns for responsive pages.\n`Layout` can be used for simple two-column pages, or it can be nested to provide flexible 3-column experiences.\n On smaller screens, `Layout` uses vertically stacked rows to display content.\n\n`Layout` flows as both column, when there's enough horizontal space to render both `Main` and `Sidebar`side-by-side (on a desktop of tablet device, per instance);\nor it flows as a row, when `Main` and `Sidebar` are stacked vertically (e.g. on a mobile device).\n`Layout` should always work in any screen size.",
@@ -17220,7 +17291,7 @@
1722017291
},
1722117292
{
1722217293
"fully_qualified_name": "Primer::ConditionalWrapper",
17223-
"description": "Conditionally renders a `Primer::BaseComponent` around the given content. If the given condition\nis true, a `Primer::BaseComponent` will render around the content. If the condition is false, only\nthe content is rendered.",
17294+
"description": "Conditionally renders a component around the given content. If the given condition\nis true, the component will render around the content. If the condition is false, only\nthe content is rendered.",
1722417295
"accessibility_docs": null,
1722517296
"is_form_component": false,
1722617297
"is_published": true,
@@ -17236,13 +17307,19 @@
1723617307
"name": "condition",
1723717308
"type": "Boolean",
1723817309
"default": "N/A",
17239-
"description": "Whether or not to wrap the content in a `Primer::BaseComponent`."
17310+
"description": "Whether or not to wrap the content in a component."
17311+
},
17312+
{
17313+
"name": "component",
17314+
"type": "Class",
17315+
"default": "`Primer::BaseComponent`",
17316+
"description": "The component class to use as a wrapper, defaults to `Primer::BaseComponent`"
1724017317
},
1724117318
{
1724217319
"name": "base_component_arguments",
1724317320
"type": "Hash",
1724417321
"default": "N/A",
17245-
"description": "The arguments to pass to `Primer::BaseComponent`."
17322+
"description": "The arguments to pass to the component."
1724617323
}
1724717324
],
1724817325
"slots": [

static/previews.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4682,6 +4682,40 @@
46824682
}
46834683
]
46844684
},
4685+
{
4686+
"name": "include_fragment",
4687+
"component": "IncludeFragment",
4688+
"status": "alpha",
4689+
"lookup_path": "primer/alpha/include_fragment",
4690+
"examples": [
4691+
{
4692+
"preview_path": "primer/alpha/include_fragment/playground",
4693+
"name": "playground",
4694+
"snapshot": "false",
4695+
"skip_rules": {
4696+
"wont_fix": [
4697+
"region"
4698+
],
4699+
"will_fix": [
4700+
"color-contrast"
4701+
]
4702+
}
4703+
},
4704+
{
4705+
"preview_path": "primer/alpha/include_fragment/default",
4706+
"name": "default",
4707+
"snapshot": "false",
4708+
"skip_rules": {
4709+
"wont_fix": [
4710+
"region"
4711+
],
4712+
"will_fix": [
4713+
"color-contrast"
4714+
]
4715+
}
4716+
}
4717+
]
4718+
},
46854719
{
46864720
"name": "input_group",
46874721
"component": "OpenProject::InputGroup",

static/statuses.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"Primer::Alpha::HellipButton": "alpha",
3131
"Primer::Alpha::HiddenTextExpander": "alpha",
3232
"Primer::Alpha::Image": "alpha",
33+
"Primer::Alpha::IncludeFragment": "alpha",
3334
"Primer::Alpha::Layout": "alpha",
3435
"Primer::Alpha::Layout::Main": "alpha",
3536
"Primer::Alpha::Layout::Sidebar": "alpha",

0 commit comments

Comments
 (0)