From 5afa0eef67e348be6c5d91a43d10a966844e6f16 Mon Sep 17 00:00:00 2001 From: Ivan Date: Wed, 18 Sep 2024 13:50:01 +0200 Subject: [PATCH] fix: Missing typescript definitions (#7207) --- components/doc/common/apidoc/index.json | 21 +++++++++++++++++++++ components/lib/menu/menu.d.ts | 14 ++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/components/doc/common/apidoc/index.json b/components/doc/common/apidoc/index.json index 042e48702e..d1885c085e 100644 --- a/components/doc/common/apidoc/index.json +++ b/components/doc/common/apidoc/index.json @@ -34681,6 +34681,13 @@ "type": "MenuPassThroughType>", "description": "Uses to pass attributes to the list's DOM element." }, + { + "name": "content", + "optional": true, + "readonly": false, + "type": "MenuPassThroughType>", + "description": "Uses to pass attributes to the content's DOM element." + }, { "name": "submenuHeader", "optional": true, @@ -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": [] diff --git a/components/lib/menu/menu.d.ts b/components/lib/menu/menu.d.ts index f64c5bd8a1..01c542d031 100644 --- a/components/lib/menu/menu.d.ts +++ b/components/lib/menu/menu.d.ts @@ -58,6 +58,10 @@ export interface MenuPassThroughOptions { * Uses to pass attributes to the list's DOM element. */ menu?: MenuPassThroughType>; + /** + * Uses to pass attributes to the content's DOM element. + */ + content?: MenuPassThroughType>; /** * Uses to pass attributes to the submenu header's DOM element. */ @@ -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; } /**