Skip to content

Commit

Permalink
fix: Missing typescript definitions (#7207)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpajon authored Sep 18, 2024
1 parent 30fffbd commit 5afa0ee
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
21 changes: 21 additions & 0 deletions components/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -34681,6 +34681,13 @@
"type": "MenuPassThroughType<HTMLAttributes<HTMLUListElement>>",
"description": "Uses to pass attributes to the list's DOM element."
},
{
"name": "content",
"optional": true,
"readonly": false,
"type": "MenuPassThroughType<HTMLAttributes<HTMLDivElement>>",
"description": "Uses to pass attributes to the content's DOM element."
},
{
"name": "submenuHeader",
"optional": true,
Expand Down Expand Up @@ -34744,12 +34751,26 @@
"description": "Defines current inline state in Menu component.",
"relatedProp": "",
"props": [
{
"name": "id",
"optional": false,
"readonly": false,
"type": "string",
"description": "Current element id."
},
{
"name": "visible",
"optional": false,
"readonly": false,
"type": "boolean",
"description": "Current visible state as a boolean."
},
{
"name": "focused",
"optional": false,
"readonly": false,
"type": "boolean",
"description": "Current focused state as a boolean."
}
],
"callbacks": []
Expand Down
14 changes: 14 additions & 0 deletions components/lib/menu/menu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export interface MenuPassThroughOptions {
* Uses to pass attributes to the list's DOM element.
*/
menu?: MenuPassThroughType<React.HTMLAttributes<HTMLUListElement>>;
/**
* Uses to pass attributes to the content's DOM element.
*/
content?: MenuPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
/**
* Uses to pass attributes to the submenu header's DOM element.
*/
Expand Down Expand Up @@ -97,11 +101,21 @@ export interface MenuPassThroughOptions {
* Defines current inline state in Menu component.
*/
export interface MenuState {
/**
* Current element id.
* @defaultValue false
*/
id: string;
/**
* Current visible state as a boolean.
* @defaultValue true
*/
visible: boolean;
/**
* Current focused state as a boolean.
* @defaultValue false
*/
focused: boolean;
}

/**
Expand Down

0 comments on commit 5afa0ee

Please sign in to comment.