Skip to content

Commit ef221ba

Browse files
committed
Generating static files
1 parent 50165db commit ef221ba

File tree

4 files changed

+176
-5
lines changed

4 files changed

+176
-5
lines changed

static/arguments.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5419,6 +5419,12 @@
54195419
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/file_tree_view.rb",
54205420
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/file_tree_view/default/",
54215421
"parameters": [
5422+
{
5423+
"name": "node_variant",
5424+
"type": "Symbol",
5425+
"default": "`:div`",
5426+
"description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`."
5427+
},
54225428
{
54235429
"name": "system_arguments",
54245430
"type": "Hash",
@@ -5844,6 +5850,12 @@
58445850
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/tree_view.rb",
58455851
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/tree_view/default/",
58465852
"parameters": [
5853+
{
5854+
"name": "node_variant",
5855+
"type": "Symbol",
5856+
"default": "`:div`",
5857+
"description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`."
5858+
},
58475859
{
58485860
"name": "system_arguments",
58495861
"type": "Hash",
@@ -5970,6 +5982,18 @@
59705982
"default": "N/A",
59715983
"description": "The node's \"path,\" i.e. this node's label and the labels of all its ancestors. This node should be reachable by traversing the tree following this path."
59725984
},
5985+
{
5986+
"name": "node_variant",
5987+
"type": "Symbol",
5988+
"default": "N/A",
5989+
"description": "The node variant to use for the node's content, i.e. the `:button` or `:div`. One of `:anchor`, `:button`, or `:div`."
5990+
},
5991+
{
5992+
"name": "href",
5993+
"type": "String",
5994+
"default": "`nil`",
5995+
"description": "The URL to use as the `href` attribute for this node. If set to a truthy value, the `tag:` parameter is ignored and assumed to be `:a`."
5996+
},
59735997
{
59745998
"name": "current",
59755999
"type": "Boolean",
@@ -5989,10 +6013,10 @@
59896013
"description": "The checked state of the node's checkbox. One of `false`, `mixed`, or `true`."
59906014
},
59916015
{
5992-
"name": "system_arguments",
6016+
"name": "content_arguments",
59936017
"type": "Hash",
59946018
"default": "N/A",
5995-
"description": "The arguments accepted by [ActionList](/components/alpha/actionlist)."
6019+
"description": "Arguments attached to the node's content, i.e the `<button>` or `<a>` element. [System arguments](/system-arguments)"
59966020
}
59976021
]
59986022
},
@@ -6054,6 +6078,12 @@
60546078
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/tree_view/sub_tree.rb",
60556079
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/tree_view/sub_tree/default/",
60566080
"parameters": [
6081+
{
6082+
"name": "node_variant",
6083+
"type": "Symbol",
6084+
"default": "N/A",
6085+
"description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`."
6086+
},
60576087
{
60586088
"name": "system_arguments",
60596089
"type": "Hash",
@@ -6110,6 +6140,12 @@
61106140
"default": "N/A",
61116141
"description": "The node's \"path,\" i.e. this node's label and the labels of all its ancestors. This node should be reachable by traversing the tree following this path."
61126142
},
6143+
{
6144+
"name": "node_variant",
6145+
"type": "Symbol",
6146+
"default": "N/A",
6147+
"description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`."
6148+
},
61136149
{
61146150
"name": "expanded",
61156151
"type": "Boolean",

static/constants.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,12 +1786,18 @@
17861786
"GeneratedSlotMethods": "Primer::OpenProject::SubHeader::SegmentedControl::GeneratedSlotMethods"
17871787
},
17881788
"Primer::OpenProject::TreeView": {
1789+
"DEFAULT_NODE_VARIANT": "div",
17891790
"GeneratedSlotMethods": "Primer::OpenProject::TreeView::GeneratedSlotMethods",
17901791
"Icon": "Primer::OpenProject::TreeView::Icon",
17911792
"IconPair": "Primer::OpenProject::TreeView::IconPair",
17921793
"LeadingAction": "Primer::OpenProject::TreeView::LeadingAction",
17931794
"LeafNode": "Primer::OpenProject::TreeView::LeafNode",
17941795
"LoadingFailureMessage": "Primer::OpenProject::TreeView::LoadingFailureMessage",
1796+
"NODE_VARIANT_OPTIONS": [
1797+
"div",
1798+
"anchor",
1799+
"button"
1800+
],
17951801
"Node": "Primer::OpenProject::TreeView::Node",
17961802
"SkeletonLoader": "Primer::OpenProject::TreeView::SkeletonLoader",
17971803
"SpinnerLoader": "Primer::OpenProject::TreeView::SpinnerLoader",
@@ -1824,8 +1830,19 @@
18241830
"mixed"
18251831
],
18261832
"DEFAULT_CHECKED_STATE": false,
1833+
"DEFAULT_NODE_VARIANT": "div",
18271834
"DEFAULT_SELECT_VARIANT": "none",
18281835
"GeneratedSlotMethods": "Primer::OpenProject::TreeView::Node::GeneratedSlotMethods",
1836+
"NODE_VARIANT_TAG_MAP": {
1837+
"div": "div",
1838+
"button": "button",
1839+
"anchor": "a"
1840+
},
1841+
"NODE_VARIANT_TAG_OPTIONS": [
1842+
"div",
1843+
"button",
1844+
"anchor"
1845+
],
18291846
"SELECT_VARIANT_OPTIONS": [
18301847
"multiple",
18311848
"none"

0 commit comments

Comments
 (0)