Skip to content

Commit

Permalink
Refactor #4391 - for TieredMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
habubey committed May 17, 2023
1 parent d3cb36e commit f78ae0b
Show file tree
Hide file tree
Showing 8 changed files with 817 additions and 24 deletions.
144 changes: 144 additions & 0 deletions components/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -32919,6 +32919,14 @@
"type": "ReactNode",
"default": "",
"description": "Used to get the child elements of the component."
},
{
"name": "pt",
"optional": true,
"readonly": false,
"type": "TieredMenuPassThroughOptions",
"default": "",
"description": "Uses to pass attributes to DOM elements inside the component."
}
]
},
Expand Down Expand Up @@ -32954,6 +32962,142 @@
]
}
}
},
"interfaces": {
"description": "Defines the custom interfaces used by the module.",
"values": {
"TieredMenuPassThroughMethodOptions": {
"description": "Custom passthrough(pt) option method.",
"relatedProp": "",
"props": [
{
"name": "props",
"optional": false,
"readonly": false,
"type": "TieredMenuProps"
},
{
"name": "state",
"optional": false,
"readonly": false,
"type": "TieredMenuState"
},
{
"name": "context",
"optional": false,
"readonly": false,
"type": "TieredMenuContext"
}
],
"callbacks": []
},
"TieredMenuPassThroughOptions": {
"description": "Custom passthrough(pt) options.",
"relatedProp": "pt",
"props": [
{
"name": "root",
"optional": true,
"readonly": false,
"type": "TieredMenuPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the root's DOM element."
},
{
"name": "menu",
"optional": true,
"readonly": false,
"type": "TieredMenuPassThroughType<HTMLAttributes<HTMLUListElement>>",
"description": "Uses to pass attributes to the list's DOM element."
},
{
"name": "menuitem",
"optional": true,
"readonly": false,
"type": "TieredMenuPassThroughType<HTMLAttributes<HTMLLIElement>>",
"description": "Uses to pass attributes to the list item's DOM element."
},
{
"name": "action",
"optional": true,
"readonly": false,
"type": "TieredMenuPassThroughType<HTMLAttributes<HTMLAnchorElement>>",
"description": "Uses to pass attributes to the action's DOM element."
},
{
"name": "icon",
"optional": true,
"readonly": false,
"type": "TieredMenuPassThroughType<HTMLAttributes<HTMLSpanElement> | SVGProps<SVGSVGElement>>",
"description": "Uses to pass attributes to the icon's DOM element."
},
{
"name": "label",
"optional": true,
"readonly": false,
"type": "TieredMenuPassThroughType<HTMLAttributes<HTMLSpanElement>>",
"description": "Uses to pass attributes to the label's DOM element."
},
{
"name": "submenuIcon",
"optional": true,
"readonly": false,
"type": "TieredMenuPassThroughType<HTMLAttributes<HTMLSpanElement> | SVGProps<SVGSVGElement>>",
"description": "Uses to pass attributes to the submenu icon's DOM element."
},
{
"name": "separator",
"optional": true,
"readonly": false,
"type": "TieredMenuPassThroughType<HTMLAttributes<HTMLLIElement>>",
"description": "Uses to pass attributes to the separator's DOM element."
}
],
"callbacks": []
},
"TieredMenuState": {
"description": "Defines current inline state in TieredMenu component.",
"relatedProp": "",
"props": [
{
"name": "attributeSelector",
"optional": false,
"readonly": false,
"type": "string",
"description": "Current attributeSelector visible state as a string."
},
{
"name": "visible",
"optional": false,
"readonly": false,
"type": "boolean",
"description": "Current visible state as a boolean."
}
],
"callbacks": []
},
"TieredMenuContext": {
"description": "Defines current options in TieredMenu component.",
"relatedProp": "",
"props": [
{
"name": "active",
"optional": false,
"readonly": false,
"type": "boolean",
"description": "Current active state of menuitem as a boolean."
}
],
"callbacks": []
}
}
},
"types": {
"description": "Defines the custom types used by the module.",
"values": {
"TieredMenuPassThroughType": {
"values": "PassThroughType<T, TieredMenuPassThroughMethodOptions>"
}
}
}
},
"timeline": {
Expand Down
Loading

0 comments on commit f78ae0b

Please sign in to comment.