Skip to content

Commit

Permalink
Generating static files
Browse files Browse the repository at this point in the history
  • Loading branch information
primer-css committed Oct 4, 2024
1 parent 89052ca commit 6d8696a
Show file tree
Hide file tree
Showing 7 changed files with 360 additions and 0 deletions.
86 changes: 86 additions & 0 deletions static/arguments.json
Original file line number Diff line number Diff line change
Expand Up @@ -2510,6 +2510,92 @@
}
]
},
{
"component": "Stack",
"status": "alpha",
"a11y_reviewed": false,
"short_name": "Stack",
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack.rb",
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack/default/",
"parameters": [
{
"name": "tag",
"type": "Symbol",
"default": "`:div`",
"description": "Customize the element type of the rendered container."
},
{
"name": "gap",
"type": "Symbol",
"default": "`GapArg::DEFAULT`",
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:normal`, or `:spacious`."
},
{
"name": "direction",
"type": "Symbol",
"default": "`:vertical`",
"description": "Specify the direction for the stack container. One of `nil`, `:horizontal`, or `:vertical`."
},
{
"name": "align",
"type": "Symbol",
"default": "`:stretch`",
"description": "Specify the alignment between items in the cross-axis of the direction. One of `nil`, `:baseline`, `:center`, `:end`, `:start`, or `:stretch`."
},
{
"name": "wrap",
"type": "Symbol",
"default": "`:nowrap`",
"description": "Specify whether items are forced onto one line or can wrap onto multiple lines. One of `nil`, `:nowrap`, or `:wrap`."
},
{
"name": "justify",
"type": "Symbol",
"default": "`:start`",
"description": "Specify how items will be distributed in the stacking direction. One of `nil`, `:center`, `:end`, `:space_between`, `:space_evenly`, or `:start`."
},
{
"name": "padding",
"type": "Symbol",
"default": "`:none`",
"description": "Specify the padding of the stack container. One of `nil`, `:condensed`, `:none`, `:normal`, or `:spacious`."
},
{
"name": "system_arguments",
"type": "Hash",
"default": "N/A",
"description": "[System arguments](/system-arguments)"
}
]
},
{
"component": "StackItem",
"status": "alpha",
"a11y_reviewed": false,
"short_name": "StackItem",
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack_item.rb",
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack_item/default/",
"parameters": [
{
"name": "tag",
"type": "Symbol",
"default": "`:div`",
"description": "Customize the element type of the rendered container."
},
{
"name": "grow",
"type": "Boolean",
"default": "`false`",
"description": "Allow item to keep size or expand to fill the available space."
},
{
"name": "system_arguments",
"type": "Hash",
"default": "N/A",
"description": "[System arguments](/system-arguments)"
}
]
},
{
"component": "SubmitButton",
"status": "alpha",
Expand Down
2 changes: 2 additions & 0 deletions static/audited_at.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
"Primer::Alpha::Select": "",
"Primer::Alpha::SelectPanel": "",
"Primer::Alpha::SelectPanel::ItemList": "2023-07-10",
"Primer::Alpha::Stack": "",
"Primer::Alpha::StackItem": "",
"Primer::Alpha::SubmitButton": "",
"Primer::Alpha::TabContainer": "",
"Primer::Alpha::TabNav": "",
Expand Down
6 changes: 6 additions & 0 deletions static/classes.json
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,12 @@
"SelectPanel-loadingPanel": [
"Primer::Alpha::SelectPanel"
],
"Stack": [
"Primer::Alpha::Stack"
],
"StackItem": [
"Primer::Alpha::StackItem"
],
"State": [
"Primer::Beta::State"
],
Expand Down
24 changes: 24 additions & 0 deletions static/constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,30 @@
},
"Primer::Alpha::SelectPanel::ItemList": {
},
"Primer::Alpha::Stack": {
"ARG_CLASSES": [
"Primer::Alpha::Stack::JustifyArg",
"Primer::Alpha::Stack::DirectionArg",
"Primer::Alpha::Stack::AlignArg",
"Primer::Alpha::Stack::WrapArg",
"Primer::Alpha::Stack::PaddingArg",
"Primer::Alpha::Stack::GapArg"
],
"AlignArg": "Primer::Alpha::Stack::AlignArg",
"DEFAULT_TAG": "div",
"DirectionArg": "Primer::Alpha::Stack::DirectionArg",
"GapArg": "Primer::Alpha::Stack::GapArg",
"JustifyArg": "Primer::Alpha::Stack::JustifyArg",
"PaddingArg": "Primer::Alpha::Stack::PaddingArg",
"WrapArg": "Primer::Alpha::Stack::WrapArg"
},
"Primer::Alpha::StackItem": {
"ARG_CLASSES": [
"Primer::Alpha::StackItem::GrowArg"
],
"DEFAULT_TAG": "div",
"GrowArg": "Primer::Alpha::StackItem::GrowArg"
},
"Primer::Alpha::SubmitButton": {
},
"Primer::Alpha::TabContainer": {
Expand Down
172 changes: 172 additions & 0 deletions static/info_arch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8248,6 +8248,178 @@
}
]
},
{
"fully_qualified_name": "Primer::Alpha::Stack",
"description": "Stack is a layout component that creates responsive horizontal and vertical flows.",
"accessibility_docs": null,
"is_form_component": false,
"is_published": true,
"requires_js": false,
"component": "Stack",
"status": "alpha",
"a11y_reviewed": false,
"short_name": "Stack",
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack.rb",
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack/default/",
"parameters": [
{
"name": "tag",
"type": "Symbol",
"default": "`:div`",
"description": "Customize the element type of the rendered container."
},
{
"name": "gap",
"type": "Symbol",
"default": "`GapArg::DEFAULT`",
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:normal`, or `:spacious`."
},
{
"name": "direction",
"type": "Symbol",
"default": "`:vertical`",
"description": "Specify the direction for the stack container. One of `nil`, `:horizontal`, or `:vertical`."
},
{
"name": "align",
"type": "Symbol",
"default": "`:stretch`",
"description": "Specify the alignment between items in the cross-axis of the direction. One of `nil`, `:baseline`, `:center`, `:end`, `:start`, or `:stretch`."
},
{
"name": "wrap",
"type": "Symbol",
"default": "`:nowrap`",
"description": "Specify whether items are forced onto one line or can wrap onto multiple lines. One of `nil`, `:nowrap`, or `:wrap`."
},
{
"name": "justify",
"type": "Symbol",
"default": "`:start`",
"description": "Specify how items will be distributed in the stacking direction. One of `nil`, `:center`, `:end`, `:space_between`, `:space_evenly`, or `:start`."
},
{
"name": "padding",
"type": "Symbol",
"default": "`:none`",
"description": "Specify the padding of the stack container. One of `nil`, `:condensed`, `:none`, `:normal`, or `:spacious`."
},
{
"name": "system_arguments",
"type": "Hash",
"default": "N/A",
"description": "{{link_to_system_arguments_docs}}"
}
],
"slots": [

],
"methods": [

],
"previews": [
{
"preview_path": "primer/alpha/stack/default",
"name": "default",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
},
{
"preview_path": "primer/alpha/stack/playground",
"name": "playground",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
}
],
"subcomponents": [

]
},
{
"fully_qualified_name": "Primer::Alpha::StackItem",
"description": "StackItem is a layout component designed to be used as the child of a Stack.",
"accessibility_docs": null,
"is_form_component": false,
"is_published": true,
"requires_js": false,
"component": "StackItem",
"status": "alpha",
"a11y_reviewed": false,
"short_name": "StackItem",
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack_item.rb",
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack_item/default/",
"parameters": [
{
"name": "tag",
"type": "Symbol",
"default": "`:div`",
"description": "Customize the element type of the rendered container."
},
{
"name": "grow",
"type": "Boolean",
"default": "`false`",
"description": "Allow item to keep size or expand to fill the available space."
},
{
"name": "system_arguments",
"type": "Hash",
"default": "N/A",
"description": "{{link_to_system_arguments_docs}}"
}
],
"slots": [

],
"methods": [

],
"previews": [
{
"preview_path": "primer/alpha/stack_item/default",
"name": "default",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
},
{
"preview_path": "primer/alpha/stack_item/playground",
"name": "playground",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
}
],
"subcomponents": [

]
},
{
"fully_qualified_name": "Primer::Alpha::SubmitButton",
"description": "A submit button input rendered using the HTML `<button type=\"submit\">` tag.\n\nThis component wraps the Primer button component and supports the same slots and arguments.",
Expand Down
68 changes: 68 additions & 0 deletions static/previews.json
Original file line number Diff line number Diff line change
Expand Up @@ -6249,6 +6249,74 @@
}
]
},
{
"name": "stack",
"component": "Stack",
"status": "alpha",
"lookup_path": "primer/alpha/stack",
"examples": [
{
"preview_path": "primer/alpha/stack/default",
"name": "default",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
},
{
"preview_path": "primer/alpha/stack/playground",
"name": "playground",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
}
]
},
{
"name": "stack_item",
"component": "StackItem",
"status": "alpha",
"lookup_path": "primer/alpha/stack_item",
"examples": [
{
"preview_path": "primer/alpha/stack_item/default",
"name": "default",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
},
{
"preview_path": "primer/alpha/stack_item/playground",
"name": "playground",
"snapshot": "false",
"skip_rules": {
"wont_fix": [
"region"
],
"will_fix": [
"color-contrast"
]
}
}
]
},
{
"name": "state",
"component": "State",
Expand Down
Loading

0 comments on commit 6d8696a

Please sign in to comment.