Skip to content

Commit 493e4b5

Browse files
committed
Generating static files
1 parent 201e2a1 commit 493e4b5

7 files changed

Lines changed: 667 additions & 10 deletions

File tree

static/arguments.json

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5717,6 +5717,104 @@
57175717
}
57185718
]
57195719
},
5720+
{
5721+
"component": "OpenProject::AvatarStack",
5722+
"status": "beta",
5723+
"a11y_reviewed": false,
5724+
"short_name": "OpenProjectAvatarStack",
5725+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/avatar_stack.rb",
5726+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/avatar_stack/default/",
5727+
"parameters": [
5728+
{
5729+
"name": "tag",
5730+
"type": "Symbol",
5731+
"default": "`:div`",
5732+
"description": "One of `:div` or `:span`."
5733+
},
5734+
{
5735+
"name": "align",
5736+
"type": "Symbol",
5737+
"default": "`:left`",
5738+
"description": "One of `:left` or `:right`."
5739+
},
5740+
{
5741+
"name": "tooltipped",
5742+
"type": "Boolean",
5743+
"default": "`false`",
5744+
"description": "Whether to add a tooltip to the stack or not."
5745+
},
5746+
{
5747+
"name": "disable_expand",
5748+
"type": "Boolean",
5749+
"default": "`false`",
5750+
"description": "Whether to disable the expand behavior on hover. If true, avatars will not expand."
5751+
},
5752+
{
5753+
"name": "body_arguments",
5754+
"type": "Hash",
5755+
"default": "`{}`",
5756+
"description": "Parameters to add to the Body. If `tooltipped` is set, has the same arguments as [Tooltip](/components/tooltip). The default tag is `:div` but can be changed using `tag:` to one of `:div` or `:span`."
5757+
},
5758+
{
5759+
"name": "system_arguments",
5760+
"type": "Hash",
5761+
"default": "N/A",
5762+
"description": "[System arguments](/system-arguments)"
5763+
}
5764+
]
5765+
},
5766+
{
5767+
"component": "OpenProject::AvatarWithFallback",
5768+
"status": "beta",
5769+
"a11y_reviewed": false,
5770+
"short_name": "OpenProjectAvatarWithFallback",
5771+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/avatar_with_fallback.rb",
5772+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/avatar_with_fallback/default/",
5773+
"parameters": [
5774+
{
5775+
"name": "src",
5776+
"type": "String",
5777+
"default": "`nil`",
5778+
"description": "The source url of the avatar image. When nil, renders a fallback with initials."
5779+
},
5780+
{
5781+
"name": "alt",
5782+
"type": "String",
5783+
"default": "`nil`",
5784+
"description": "Alt text for the avatar. Used for accessibility and to generate initials when src is nil."
5785+
},
5786+
{
5787+
"name": "size",
5788+
"type": "Integer",
5789+
"default": "`20`",
5790+
"description": "One of `16`, `20`, `24`, `32`, `40`, `48`, `64`, or `80`."
5791+
},
5792+
{
5793+
"name": "shape",
5794+
"type": "Symbol",
5795+
"default": "`:circle`",
5796+
"description": "Shape of the avatar. One of `:circle` or `:square`."
5797+
},
5798+
{
5799+
"name": "href",
5800+
"type": "String",
5801+
"default": "`nil`",
5802+
"description": "The URL to link to. If used, component will be wrapped by an `<a>` tag."
5803+
},
5804+
{
5805+
"name": "unique_id",
5806+
"type": "String, Integer",
5807+
"default": "`nil`",
5808+
"description": "Unique identifier for generating consistent avatar colors across renders."
5809+
},
5810+
{
5811+
"name": "system_arguments",
5812+
"type": "Hash",
5813+
"default": "N/A",
5814+
"description": "[System arguments](/system-arguments)"
5815+
}
5816+
]
5817+
},
57205818
{
57215819
"component": "OpenProject::BorderBox::CollapsibleHeader",
57225820
"status": "open_project",

static/audited_at.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@
139139
"Primer::IconButton": "",
140140
"Primer::LayoutComponent": "",
141141
"Primer::Navigation::TabComponent": "",
142+
"Primer::OpenProject::AvatarStack": "",
143+
"Primer::OpenProject::AvatarWithFallback": "",
142144
"Primer::OpenProject::BorderBox::CollapsibleHeader": "",
143145
"Primer::OpenProject::BorderGrid": "",
144146
"Primer::OpenProject::BorderGrid::Cell": "",

static/classes.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,7 @@
596596
"Primer::OpenProject::SidePanel::Section"
597597
],
598598
"SkeletonBox": [
599-
"Primer::Alpha::SkeletonBox",
600-
"Primer::OpenProject::SkeletonBox"
599+
"Primer::Alpha::SkeletonBox"
601600
],
602601
"Stack": [
603602
"Primer::Alpha::Stack"
@@ -738,20 +737,16 @@
738737
"Primer::Alpha::ToggleSwitch"
739738
],
740739
"TreeItemSkeletonTextStyles": [
741-
"Primer::Alpha::TreeView",
742-
"Primer::OpenProject::TreeView"
740+
"Primer::Alpha::TreeView"
743741
],
744742
"TreeViewFailureMessage": [
745-
"Primer::Alpha::TreeView",
746-
"Primer::OpenProject::TreeView"
743+
"Primer::Alpha::TreeView"
747744
],
748745
"TreeViewRootUlStyles": [
749-
"Primer::Alpha::TreeView",
750-
"Primer::OpenProject::TreeView"
746+
"Primer::Alpha::TreeView"
751747
],
752748
"TreeViewSkeletonItemContainerStyle": [
753-
"Primer::Alpha::TreeView",
754-
"Primer::OpenProject::TreeView"
749+
"Primer::Alpha::TreeView"
755750
],
756751
"Truncate": [
757752
"Primer::Beta::Truncate"

static/constants.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,6 +1695,13 @@
16951695
"Primer::Navigation::TabComponent": {
16961696
"GeneratedSlotMethods": "Primer::Navigation::TabComponent::GeneratedSlotMethods"
16971697
},
1698+
"Primer::OpenProject::AvatarStack": {
1699+
"GeneratedSlotMethods": "Primer::OpenProject::AvatarStack::GeneratedSlotMethods"
1700+
},
1701+
"Primer::OpenProject::AvatarWithFallback": {
1702+
"FONT_STACK": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
1703+
"GeneratedSlotMethods": "Primer::OpenProject::AvatarWithFallback::GeneratedSlotMethods"
1704+
},
16981705
"Primer::OpenProject::BorderBox::CollapsibleHeader": {
16991706
"GeneratedSlotMethods": "Primer::OpenProject::BorderBox::CollapsibleHeader::GeneratedSlotMethods"
17001707
},

0 commit comments

Comments
 (0)