@swc-react/menu 0.34.1-rc.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/index.dev.js +3 -1
- package/index.dev.js.map +2 -2
- package/index.js +1 -1
- package/index.js.map +2 -2
- package/next.d.ts +176 -147
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const MenuGroup: import("@lit-labs/react").ReactWebComponent<SpMe
|
|
|
18
18
|
}>;
|
|
19
19
|
export declare const MenuItem: import("@lit-labs/react").ReactWebComponent<SpMenuItem, {
|
|
20
20
|
spMenuItemAdded: EventName<Event>;
|
|
21
|
+
spMenuItemRemoved: EventName<Event>;
|
|
21
22
|
}>;
|
|
22
23
|
export declare type MenuType = EventTarget & SpMenu;
|
|
23
24
|
export declare type MenuDividerType = EventTarget & SpMenuDivider;
|
package/index.dev.js
CHANGED
|
@@ -44,8 +44,10 @@ export const MenuItem = createComponent({
|
|
|
44
44
|
react: React,
|
|
45
45
|
tagName: "sp-menu-item",
|
|
46
46
|
events: {
|
|
47
|
-
spMenuItemAdded: "sp-menu-item-added"
|
|
47
|
+
spMenuItemAdded: "sp-menu-item-added",
|
|
48
48
|
// announces the item has been added so a parent menu can take ownerships
|
|
49
|
+
spMenuItemRemoved: "sp-menu-item-removed"
|
|
50
|
+
// announces when removed from the DOM so the parent menu can remove ownership and update selected state
|
|
49
51
|
}
|
|
50
52
|
});
|
|
51
53
|
//# sourceMappingURL=index.dev.js.map
|
package/index.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
-
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,cAAc;AAC/B,SAAS,eAAe,qBAAqB;AAC7C,SAAS,aAAa,mBAAmB;AACzC,SAAS,YAAY,kBAAkB;AAEvC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,iBAAiB;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n spMenuItemRemoved: 'sp-menu-item-removed' as EventName<Event>, // announces when removed from the DOM so the parent menu can remove ownership and update selected state\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
+
"mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,QAAQ,cAAc;AAC/B,SAAS,eAAe,qBAAqB;AAC7C,SAAS,aAAa,mBAAmB;AACzC,SAAS,YAAY,kBAAkB;AAEvC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AAEA,aAAM,OAAO,gBAAgB;AAAA,EAChC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,cAAc,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;AACM,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,IACR,OAAO;AAAA,EACX;AACJ,CAAC;AACM,aAAM,WAAW,gBAAgB;AAAA,EACpC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,iBAAiB;AAAA;AAAA,IACjB,mBAAmB;AAAA;AAAA,EACvB;AACJ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";import*as e from"react";import{createComponent as t}from"@lit-labs/react";import{Menu as n}from"@spectrum-web-components/menu";import{MenuDivider as
|
|
1
|
+
"use strict";import*as e from"react";import{createComponent as t}from"@lit-labs/react";import{Menu as n}from"@spectrum-web-components/menu";import{MenuDivider as m}from"@spectrum-web-components/menu";import{MenuGroup as p}from"@spectrum-web-components/menu";import{MenuItem as a}from"@spectrum-web-components/menu";import"@spectrum-web-components/menu/sp-menu-divider.js";import"@spectrum-web-components/menu/sp-menu-group.js";import"@spectrum-web-components/menu/sp-menu-item.js";import"@spectrum-web-components/menu/sp-menu.js";export const Menu=t({displayName:"Menu",elementClass:n,react:e,tagName:"sp-menu",events:{change:"change",close:"close"}}),MenuDivider=t({displayName:"MenuDivider",elementClass:m,react:e,tagName:"sp-menu-divider",events:{}}),MenuGroup=t({displayName:"MenuGroup",elementClass:p,react:e,tagName:"sp-menu-group",events:{change:"change",close:"close"}}),MenuItem=t({displayName:"MenuItem",elementClass:a,react:e,tagName:"sp-menu-item",events:{spMenuItemAdded:"sp-menu-item-added",spMenuItemRemoved:"sp-menu-item-removed"}});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
-
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,eAAeC,MAAqB,gCAC7C,OAAS,aAAaC,MAAmB,gCACzC,OAAS,YAAYC,MAAkB,gCAEvC,MAAO,mDACP,MAAO,iDACP,MAAO,gDACP,MAAO,2CAEA,aAAM,KAAOJ,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcG,EACd,MAAOJ,EACP,QAAS,gBACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcI,EACd,MAAOL,EACP,QAAS,eACT,OAAQ,CACJ,gBAAiB,
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Menu as SpMenu } from '@spectrum-web-components/menu';\nimport { MenuDivider as SpMenuDivider } from '@spectrum-web-components/menu';\nimport { MenuGroup as SpMenuGroup } from '@spectrum-web-components/menu';\nimport { MenuItem as SpMenuItem } from '@spectrum-web-components/menu';\n\nimport '@spectrum-web-components/menu/sp-menu-divider.js';\nimport '@spectrum-web-components/menu/sp-menu-group.js';\nimport '@spectrum-web-components/menu/sp-menu-item.js';\nimport '@spectrum-web-components/menu/sp-menu.js';\n\nexport const Menu = createComponent({\n displayName: 'Menu',\n elementClass: SpMenu,\n react: React,\n tagName: 'sp-menu',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuDivider = createComponent({\n displayName: 'MenuDivider',\n elementClass: SpMenuDivider,\n react: React,\n tagName: 'sp-menu-divider',\n events: {},\n});\nexport const MenuGroup = createComponent({\n displayName: 'MenuGroup',\n elementClass: SpMenuGroup,\n react: React,\n tagName: 'sp-menu-group',\n events: {\n change: 'change' as EventName<Event>, // Announces that the `value` of the element has changed\n close: 'close' as EventName<Event>,\n },\n});\nexport const MenuItem = createComponent({\n displayName: 'MenuItem',\n elementClass: SpMenuItem,\n react: React,\n tagName: 'sp-menu-item',\n events: {\n spMenuItemAdded: 'sp-menu-item-added' as EventName<Event>, // announces the item has been added so a parent menu can take ownerships\n spMenuItemRemoved: 'sp-menu-item-removed' as EventName<Event>, // announces when removed from the DOM so the parent menu can remove ownership and update selected state\n },\n});\n\nexport type MenuType = EventTarget & SpMenu;\nexport type MenuDividerType = EventTarget & SpMenuDivider;\nexport type MenuGroupType = EventTarget & SpMenuGroup;\nexport type MenuItemType = EventTarget & SpMenuItem;\n"],
|
|
5
|
+
"mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,QAAQC,MAAc,gCAC/B,OAAS,eAAeC,MAAqB,gCAC7C,OAAS,aAAaC,MAAmB,gCACzC,OAAS,YAAYC,MAAkB,gCAEvC,MAAO,mDACP,MAAO,iDACP,MAAO,gDACP,MAAO,2CAEA,aAAM,KAAOJ,EAAgB,CAChC,YAAa,OACb,aAAcC,EACd,MAAOF,EACP,QAAS,UACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,YAAcC,EAAgB,CACvC,YAAa,cACb,aAAcE,EACd,MAAOH,EACP,QAAS,kBACT,OAAQ,CAAC,CACb,CAAC,EACY,UAAYC,EAAgB,CACrC,YAAa,YACb,aAAcG,EACd,MAAOJ,EACP,QAAS,gBACT,OAAQ,CACJ,OAAQ,SACR,MAAO,OACX,CACJ,CAAC,EACY,SAAWC,EAAgB,CACpC,YAAa,WACb,aAAcI,EACd,MAAOL,EACP,QAAS,eACT,OAAQ,CACJ,gBAAiB,qBACjB,kBAAmB,sBACvB,CACJ,CAAC",
|
|
6
6
|
"names": ["React", "createComponent", "SpMenu", "SpMenuDivider", "SpMenuGroup", "SpMenuItem"]
|
|
7
7
|
}
|
package/next.d.ts
CHANGED
|
@@ -1,44 +1,55 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const Menu: import("react").ComponentType<Partial<{
|
|
3
4
|
dir?: string | undefined;
|
|
5
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
4
6
|
title?: string | undefined;
|
|
7
|
+
rel?: string | undefined;
|
|
5
8
|
id?: string | undefined;
|
|
6
9
|
className?: string | undefined;
|
|
7
10
|
slot?: string | undefined;
|
|
8
11
|
style?: import("react").CSSProperties | undefined;
|
|
9
12
|
tabIndex?: number | undefined;
|
|
10
13
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
11
|
-
accessKey?: string | undefined;
|
|
12
14
|
color?: string | undefined;
|
|
13
15
|
lang?: string | undefined;
|
|
14
|
-
'aria-
|
|
16
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
17
|
+
accessKey?: string | undefined;
|
|
15
18
|
role?: import("react").AriaRole | undefined;
|
|
16
|
-
'aria-
|
|
17
|
-
'aria-
|
|
19
|
+
'aria-label'?: string | undefined;
|
|
20
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
21
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
22
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
18
23
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
19
24
|
hidden?: boolean | undefined;
|
|
20
25
|
translate?: "yes" | "no" | undefined;
|
|
21
26
|
prefix?: string | undefined;
|
|
22
27
|
children?: import("react").ReactNode;
|
|
23
28
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
24
|
-
inputMode?: "
|
|
29
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
25
30
|
nonce?: string | undefined;
|
|
26
|
-
'aria-
|
|
31
|
+
'aria-describedby'?: string | undefined;
|
|
32
|
+
'aria-controls'?: string | undefined;
|
|
33
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
34
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
27
35
|
'aria-activedescendant'?: string | undefined;
|
|
28
36
|
'aria-labelledby'?: string | undefined;
|
|
29
37
|
defaultChecked?: boolean | undefined;
|
|
30
38
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
31
39
|
suppressContentEditableWarning?: boolean | undefined;
|
|
32
40
|
suppressHydrationWarning?: boolean | undefined;
|
|
41
|
+
autoFocus?: boolean | undefined;
|
|
33
42
|
contextMenu?: string | undefined;
|
|
34
43
|
placeholder?: string | undefined;
|
|
35
44
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
36
45
|
radioGroup?: string | undefined;
|
|
37
46
|
about?: string | undefined;
|
|
47
|
+
content?: string | undefined;
|
|
38
48
|
datatype?: string | undefined;
|
|
39
49
|
inlist?: any;
|
|
40
50
|
property?: string | undefined;
|
|
41
51
|
resource?: string | undefined;
|
|
52
|
+
rev?: string | undefined;
|
|
42
53
|
typeof?: string | undefined;
|
|
43
54
|
vocab?: string | undefined;
|
|
44
55
|
autoCapitalize?: string | undefined;
|
|
@@ -55,38 +66,37 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
55
66
|
is?: string | undefined;
|
|
56
67
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
57
68
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
69
|
+
'aria-braillelabel'?: string | undefined;
|
|
70
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
58
71
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
59
72
|
'aria-colcount'?: number | undefined;
|
|
60
73
|
'aria-colindex'?: number | undefined;
|
|
74
|
+
'aria-colindextext'?: string | undefined;
|
|
61
75
|
'aria-colspan'?: number | undefined;
|
|
62
|
-
'aria-
|
|
63
|
-
'aria-
|
|
76
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
77
|
+
'aria-description'?: string | undefined;
|
|
64
78
|
'aria-details'?: string | undefined;
|
|
65
|
-
'aria-dropeffect'?: "
|
|
79
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
66
80
|
'aria-errormessage'?: string | undefined;
|
|
67
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
68
81
|
'aria-flowto'?: string | undefined;
|
|
69
82
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
70
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
71
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
72
83
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
73
84
|
'aria-keyshortcuts'?: string | undefined;
|
|
74
85
|
'aria-level'?: number | undefined;
|
|
75
86
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
76
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
77
87
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
78
88
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
79
89
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
80
90
|
'aria-owns'?: string | undefined;
|
|
81
91
|
'aria-placeholder'?: string | undefined;
|
|
82
92
|
'aria-posinset'?: number | undefined;
|
|
83
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
84
93
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
85
94
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
86
95
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
87
96
|
'aria-roledescription'?: string | undefined;
|
|
88
97
|
'aria-rowcount'?: number | undefined;
|
|
89
98
|
'aria-rowindex'?: number | undefined;
|
|
99
|
+
'aria-rowindextext'?: string | undefined;
|
|
90
100
|
'aria-rowspan'?: number | undefined;
|
|
91
101
|
'aria-setsize'?: number | undefined;
|
|
92
102
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
@@ -95,7 +105,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
95
105
|
'aria-valuenow'?: number | undefined;
|
|
96
106
|
'aria-valuetext'?: string | undefined;
|
|
97
107
|
dangerouslySetInnerHTML?: {
|
|
98
|
-
__html: string;
|
|
108
|
+
__html: string | TrustedHTML;
|
|
99
109
|
} | undefined;
|
|
100
110
|
onCopy?: import("react").ClipboardEventHandler<import("menu/src").Menu> | undefined;
|
|
101
111
|
onCopyCapture?: import("react").ClipboardEventHandler<import("menu/src").Menu> | undefined;
|
|
@@ -263,6 +273,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
263
273
|
readonly attributes: NamedNodeMap;
|
|
264
274
|
readonly localName: string;
|
|
265
275
|
label: string;
|
|
276
|
+
normalize: () => void;
|
|
266
277
|
blur: () => void;
|
|
267
278
|
click: () => void;
|
|
268
279
|
focus: ({ preventScroll }?: FocusOptions) => void;
|
|
@@ -273,25 +284,14 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
273
284
|
ariaHidden: string | null;
|
|
274
285
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
275
286
|
autofocus: boolean;
|
|
276
|
-
normalize: () => void;
|
|
277
|
-
addEventListener: {
|
|
278
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
279
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
280
|
-
};
|
|
281
|
-
dispatchEvent: (event: Event) => boolean;
|
|
282
|
-
removeEventListener: {
|
|
283
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
284
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
285
|
-
};
|
|
286
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
287
287
|
shadowRoot: ShadowRoot;
|
|
288
|
-
readonly parentElement: HTMLElement | null;
|
|
289
288
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
289
|
+
remove: () => void;
|
|
290
290
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
291
291
|
selected: string[];
|
|
292
292
|
value: string;
|
|
293
|
-
connectedCallback: () => void;
|
|
294
293
|
disconnectedCallback: () => void;
|
|
294
|
+
connectedCallback: () => void;
|
|
295
295
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
296
296
|
isUpdatePending: boolean;
|
|
297
297
|
hasUpdated: boolean;
|
|
@@ -312,6 +312,14 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
312
312
|
outerText: string;
|
|
313
313
|
spellcheck: boolean;
|
|
314
314
|
attachInternals: () => ElementInternals;
|
|
315
|
+
addEventListener: {
|
|
316
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
317
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
318
|
+
};
|
|
319
|
+
removeEventListener: {
|
|
320
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
321
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
322
|
+
};
|
|
315
323
|
readonly classList: DOMTokenList;
|
|
316
324
|
readonly clientHeight: number;
|
|
317
325
|
readonly clientLeft: number;
|
|
@@ -390,6 +398,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
390
398
|
readonly nodeName: string;
|
|
391
399
|
readonly nodeType: number;
|
|
392
400
|
nodeValue: string | null;
|
|
401
|
+
readonly parentElement: HTMLElement | null;
|
|
393
402
|
readonly parentNode: ParentNode | null;
|
|
394
403
|
readonly previousSibling: ChildNode | null;
|
|
395
404
|
textContent: string | null;
|
|
@@ -425,6 +434,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
425
434
|
readonly NOTATION_NODE: number;
|
|
426
435
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
427
436
|
readonly TEXT_NODE: number;
|
|
437
|
+
dispatchEvent: (event: Event) => boolean;
|
|
428
438
|
ariaAtomic: string | null;
|
|
429
439
|
ariaAutoComplete: string | null;
|
|
430
440
|
ariaBusy: string | null;
|
|
@@ -463,7 +473,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
463
473
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
464
474
|
after: (...nodes: (string | Node)[]) => void;
|
|
465
475
|
before: (...nodes: (string | Node)[]) => void;
|
|
466
|
-
remove: () => void;
|
|
467
476
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
468
477
|
innerHTML: string;
|
|
469
478
|
readonly nextElementSibling: Element | null;
|
|
@@ -484,6 +493,7 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
484
493
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
485
494
|
};
|
|
486
495
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
496
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
487
497
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
488
498
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
489
499
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -581,12 +591,12 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
581
591
|
readonly dataset: DOMStringMap;
|
|
582
592
|
isLTR: boolean;
|
|
583
593
|
hasVisibleFocusInTree: () => boolean;
|
|
584
|
-
closeDescendentOverlays: () => void;
|
|
585
594
|
ignore: boolean;
|
|
586
|
-
selects: "inherit" | "
|
|
595
|
+
selects: "inherit" | "single" | "multiple" | undefined;
|
|
587
596
|
valueSeparator: string;
|
|
588
597
|
selectedItems: import("menu/src").MenuItem[];
|
|
589
598
|
menuSlot: HTMLSlotElement;
|
|
599
|
+
isSubmenu: boolean;
|
|
590
600
|
focusedItemIndex: number;
|
|
591
601
|
focusInItemIndex: number;
|
|
592
602
|
readonly childItems: import("menu/src").MenuItem[];
|
|
@@ -595,8 +605,6 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
595
605
|
startListeningToKeyboard: () => void;
|
|
596
606
|
handleFocusout: (event: FocusEvent) => void;
|
|
597
607
|
stopListeningToKeyboard: () => void;
|
|
598
|
-
handleSubmenuClosed: (event: Event) => void;
|
|
599
|
-
handleSubmenuOpened: (event: Event) => void;
|
|
600
608
|
selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
|
|
601
609
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
602
610
|
focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
|
|
@@ -608,44 +616,54 @@ export declare const Menu: import("react").ComponentType<Partial<{
|
|
|
608
616
|
}> & import("react").RefAttributes<import("menu/src").Menu>>;
|
|
609
617
|
export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
610
618
|
dir?: string | undefined;
|
|
619
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
611
620
|
title?: string | undefined;
|
|
621
|
+
rel?: string | undefined;
|
|
612
622
|
id?: string | undefined;
|
|
613
623
|
className?: string | undefined;
|
|
614
624
|
slot?: string | undefined;
|
|
615
625
|
style?: import("react").CSSProperties | undefined;
|
|
616
626
|
tabIndex?: number | undefined;
|
|
617
627
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
618
|
-
accessKey?: string | undefined;
|
|
619
628
|
color?: string | undefined;
|
|
620
629
|
lang?: string | undefined;
|
|
621
|
-
'aria-
|
|
630
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
631
|
+
accessKey?: string | undefined;
|
|
622
632
|
role?: import("react").AriaRole | undefined;
|
|
623
|
-
'aria-
|
|
624
|
-
'aria-
|
|
633
|
+
'aria-label'?: string | undefined;
|
|
634
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
635
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
636
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
625
637
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
626
638
|
hidden?: boolean | undefined;
|
|
627
639
|
translate?: "yes" | "no" | undefined;
|
|
628
640
|
prefix?: string | undefined;
|
|
629
641
|
children?: import("react").ReactNode;
|
|
630
642
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
631
|
-
inputMode?: "
|
|
643
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
632
644
|
nonce?: string | undefined;
|
|
633
|
-
'aria-
|
|
645
|
+
'aria-describedby'?: string | undefined;
|
|
646
|
+
'aria-controls'?: string | undefined;
|
|
647
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
648
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
634
649
|
'aria-activedescendant'?: string | undefined;
|
|
635
650
|
'aria-labelledby'?: string | undefined;
|
|
636
651
|
defaultChecked?: boolean | undefined;
|
|
637
652
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
638
653
|
suppressContentEditableWarning?: boolean | undefined;
|
|
639
654
|
suppressHydrationWarning?: boolean | undefined;
|
|
655
|
+
autoFocus?: boolean | undefined;
|
|
640
656
|
contextMenu?: string | undefined;
|
|
641
657
|
placeholder?: string | undefined;
|
|
642
658
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
643
659
|
radioGroup?: string | undefined;
|
|
644
660
|
about?: string | undefined;
|
|
661
|
+
content?: string | undefined;
|
|
645
662
|
datatype?: string | undefined;
|
|
646
663
|
inlist?: any;
|
|
647
664
|
property?: string | undefined;
|
|
648
665
|
resource?: string | undefined;
|
|
666
|
+
rev?: string | undefined;
|
|
649
667
|
typeof?: string | undefined;
|
|
650
668
|
vocab?: string | undefined;
|
|
651
669
|
autoCapitalize?: string | undefined;
|
|
@@ -662,38 +680,37 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
662
680
|
is?: string | undefined;
|
|
663
681
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
664
682
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
683
|
+
'aria-braillelabel'?: string | undefined;
|
|
684
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
665
685
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
666
686
|
'aria-colcount'?: number | undefined;
|
|
667
687
|
'aria-colindex'?: number | undefined;
|
|
688
|
+
'aria-colindextext'?: string | undefined;
|
|
668
689
|
'aria-colspan'?: number | undefined;
|
|
669
|
-
'aria-
|
|
670
|
-
'aria-
|
|
690
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
691
|
+
'aria-description'?: string | undefined;
|
|
671
692
|
'aria-details'?: string | undefined;
|
|
672
|
-
'aria-dropeffect'?: "
|
|
693
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
673
694
|
'aria-errormessage'?: string | undefined;
|
|
674
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
675
695
|
'aria-flowto'?: string | undefined;
|
|
676
696
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
677
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
678
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
679
697
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
680
698
|
'aria-keyshortcuts'?: string | undefined;
|
|
681
699
|
'aria-level'?: number | undefined;
|
|
682
700
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
683
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
684
701
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
685
702
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
686
703
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
687
704
|
'aria-owns'?: string | undefined;
|
|
688
705
|
'aria-placeholder'?: string | undefined;
|
|
689
706
|
'aria-posinset'?: number | undefined;
|
|
690
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
691
707
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
692
708
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
693
709
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
694
710
|
'aria-roledescription'?: string | undefined;
|
|
695
711
|
'aria-rowcount'?: number | undefined;
|
|
696
712
|
'aria-rowindex'?: number | undefined;
|
|
713
|
+
'aria-rowindextext'?: string | undefined;
|
|
697
714
|
'aria-rowspan'?: number | undefined;
|
|
698
715
|
'aria-setsize'?: number | undefined;
|
|
699
716
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
@@ -702,7 +719,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
702
719
|
'aria-valuenow'?: number | undefined;
|
|
703
720
|
'aria-valuetext'?: string | undefined;
|
|
704
721
|
dangerouslySetInnerHTML?: {
|
|
705
|
-
__html: string;
|
|
722
|
+
__html: string | TrustedHTML;
|
|
706
723
|
} | undefined;
|
|
707
724
|
onCopy?: import("react").ClipboardEventHandler<import("menu/src").MenuDivider> | undefined;
|
|
708
725
|
onCopyCapture?: import("react").ClipboardEventHandler<import("menu/src").MenuDivider> | undefined;
|
|
@@ -870,6 +887,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
870
887
|
readonly attributes: NamedNodeMap;
|
|
871
888
|
readonly localName: string;
|
|
872
889
|
size: import("@spectrum-web-components/base").ElementSize;
|
|
890
|
+
normalize: () => void;
|
|
873
891
|
blur: () => void;
|
|
874
892
|
click: () => void;
|
|
875
893
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -880,23 +898,12 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
880
898
|
ariaHidden: string | null;
|
|
881
899
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
882
900
|
autofocus: boolean;
|
|
883
|
-
normalize: () => void;
|
|
884
|
-
addEventListener: {
|
|
885
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
886
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
887
|
-
};
|
|
888
|
-
dispatchEvent: (event: Event) => boolean;
|
|
889
|
-
removeEventListener: {
|
|
890
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
891
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
892
|
-
};
|
|
893
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
894
901
|
shadowRoot: ShadowRoot;
|
|
895
|
-
readonly parentElement: HTMLElement | null;
|
|
896
902
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
903
|
+
remove: () => void;
|
|
897
904
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
898
|
-
connectedCallback: () => void;
|
|
899
905
|
disconnectedCallback: () => void;
|
|
906
|
+
connectedCallback: () => void;
|
|
900
907
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
901
908
|
isUpdatePending: boolean;
|
|
902
909
|
hasUpdated: boolean;
|
|
@@ -917,6 +924,14 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
917
924
|
outerText: string;
|
|
918
925
|
spellcheck: boolean;
|
|
919
926
|
attachInternals: () => ElementInternals;
|
|
927
|
+
addEventListener: {
|
|
928
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
929
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
930
|
+
};
|
|
931
|
+
removeEventListener: {
|
|
932
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
933
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
934
|
+
};
|
|
920
935
|
readonly classList: DOMTokenList;
|
|
921
936
|
readonly clientHeight: number;
|
|
922
937
|
readonly clientLeft: number;
|
|
@@ -995,6 +1010,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
995
1010
|
readonly nodeName: string;
|
|
996
1011
|
readonly nodeType: number;
|
|
997
1012
|
nodeValue: string | null;
|
|
1013
|
+
readonly parentElement: HTMLElement | null;
|
|
998
1014
|
readonly parentNode: ParentNode | null;
|
|
999
1015
|
readonly previousSibling: ChildNode | null;
|
|
1000
1016
|
textContent: string | null;
|
|
@@ -1030,6 +1046,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1030
1046
|
readonly NOTATION_NODE: number;
|
|
1031
1047
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
1032
1048
|
readonly TEXT_NODE: number;
|
|
1049
|
+
dispatchEvent: (event: Event) => boolean;
|
|
1033
1050
|
ariaAtomic: string | null;
|
|
1034
1051
|
ariaAutoComplete: string | null;
|
|
1035
1052
|
ariaBusy: string | null;
|
|
@@ -1068,7 +1085,6 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1068
1085
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1069
1086
|
after: (...nodes: (string | Node)[]) => void;
|
|
1070
1087
|
before: (...nodes: (string | Node)[]) => void;
|
|
1071
|
-
remove: () => void;
|
|
1072
1088
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
1073
1089
|
innerHTML: string;
|
|
1074
1090
|
readonly nextElementSibling: Element | null;
|
|
@@ -1089,6 +1105,7 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1089
1105
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1090
1106
|
};
|
|
1091
1107
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1108
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
1092
1109
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1093
1110
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1094
1111
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1189,44 +1206,54 @@ export declare const MenuDivider: import("react").ComponentType<Partial<{
|
|
|
1189
1206
|
} & {}> & import("react").RefAttributes<import("menu/src").MenuDivider>>;
|
|
1190
1207
|
export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
1191
1208
|
dir?: string | undefined;
|
|
1209
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1192
1210
|
title?: string | undefined;
|
|
1211
|
+
rel?: string | undefined;
|
|
1193
1212
|
id?: string | undefined;
|
|
1194
1213
|
className?: string | undefined;
|
|
1195
1214
|
slot?: string | undefined;
|
|
1196
1215
|
style?: import("react").CSSProperties | undefined;
|
|
1197
1216
|
tabIndex?: number | undefined;
|
|
1198
1217
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1199
|
-
accessKey?: string | undefined;
|
|
1200
1218
|
color?: string | undefined;
|
|
1201
1219
|
lang?: string | undefined;
|
|
1202
|
-
'aria-
|
|
1220
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1221
|
+
accessKey?: string | undefined;
|
|
1203
1222
|
role?: import("react").AriaRole | undefined;
|
|
1204
|
-
'aria-
|
|
1205
|
-
'aria-
|
|
1223
|
+
'aria-label'?: string | undefined;
|
|
1224
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
1225
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1226
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1206
1227
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1207
1228
|
hidden?: boolean | undefined;
|
|
1208
1229
|
translate?: "yes" | "no" | undefined;
|
|
1209
1230
|
prefix?: string | undefined;
|
|
1210
1231
|
children?: import("react").ReactNode;
|
|
1211
1232
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1212
|
-
inputMode?: "
|
|
1233
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1213
1234
|
nonce?: string | undefined;
|
|
1214
|
-
'aria-
|
|
1235
|
+
'aria-describedby'?: string | undefined;
|
|
1236
|
+
'aria-controls'?: string | undefined;
|
|
1237
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1238
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1215
1239
|
'aria-activedescendant'?: string | undefined;
|
|
1216
1240
|
'aria-labelledby'?: string | undefined;
|
|
1217
1241
|
defaultChecked?: boolean | undefined;
|
|
1218
1242
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
1219
1243
|
suppressContentEditableWarning?: boolean | undefined;
|
|
1220
1244
|
suppressHydrationWarning?: boolean | undefined;
|
|
1245
|
+
autoFocus?: boolean | undefined;
|
|
1221
1246
|
contextMenu?: string | undefined;
|
|
1222
1247
|
placeholder?: string | undefined;
|
|
1223
1248
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1224
1249
|
radioGroup?: string | undefined;
|
|
1225
1250
|
about?: string | undefined;
|
|
1251
|
+
content?: string | undefined;
|
|
1226
1252
|
datatype?: string | undefined;
|
|
1227
1253
|
inlist?: any;
|
|
1228
1254
|
property?: string | undefined;
|
|
1229
1255
|
resource?: string | undefined;
|
|
1256
|
+
rev?: string | undefined;
|
|
1230
1257
|
typeof?: string | undefined;
|
|
1231
1258
|
vocab?: string | undefined;
|
|
1232
1259
|
autoCapitalize?: string | undefined;
|
|
@@ -1243,38 +1270,37 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1243
1270
|
is?: string | undefined;
|
|
1244
1271
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
1245
1272
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
1273
|
+
'aria-braillelabel'?: string | undefined;
|
|
1274
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
1246
1275
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
1247
1276
|
'aria-colcount'?: number | undefined;
|
|
1248
1277
|
'aria-colindex'?: number | undefined;
|
|
1278
|
+
'aria-colindextext'?: string | undefined;
|
|
1249
1279
|
'aria-colspan'?: number | undefined;
|
|
1250
|
-
'aria-
|
|
1251
|
-
'aria-
|
|
1280
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
1281
|
+
'aria-description'?: string | undefined;
|
|
1252
1282
|
'aria-details'?: string | undefined;
|
|
1253
|
-
'aria-dropeffect'?: "
|
|
1283
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1254
1284
|
'aria-errormessage'?: string | undefined;
|
|
1255
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1256
1285
|
'aria-flowto'?: string | undefined;
|
|
1257
1286
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
1258
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
1259
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1260
1287
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
1261
1288
|
'aria-keyshortcuts'?: string | undefined;
|
|
1262
1289
|
'aria-level'?: number | undefined;
|
|
1263
1290
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
1264
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1265
1291
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
1266
1292
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
1267
1293
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
1268
1294
|
'aria-owns'?: string | undefined;
|
|
1269
1295
|
'aria-placeholder'?: string | undefined;
|
|
1270
1296
|
'aria-posinset'?: number | undefined;
|
|
1271
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1272
1297
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
1273
1298
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1274
1299
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
1275
1300
|
'aria-roledescription'?: string | undefined;
|
|
1276
1301
|
'aria-rowcount'?: number | undefined;
|
|
1277
1302
|
'aria-rowindex'?: number | undefined;
|
|
1303
|
+
'aria-rowindextext'?: string | undefined;
|
|
1278
1304
|
'aria-rowspan'?: number | undefined;
|
|
1279
1305
|
'aria-setsize'?: number | undefined;
|
|
1280
1306
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
@@ -1283,7 +1309,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1283
1309
|
'aria-valuenow'?: number | undefined;
|
|
1284
1310
|
'aria-valuetext'?: string | undefined;
|
|
1285
1311
|
dangerouslySetInnerHTML?: {
|
|
1286
|
-
__html: string;
|
|
1312
|
+
__html: string | TrustedHTML;
|
|
1287
1313
|
} | undefined;
|
|
1288
1314
|
onCopy?: import("react").ClipboardEventHandler<import("menu/src").MenuGroup> | undefined;
|
|
1289
1315
|
onCopyCapture?: import("react").ClipboardEventHandler<import("menu/src").MenuGroup> | undefined;
|
|
@@ -1451,6 +1477,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1451
1477
|
readonly attributes: NamedNodeMap;
|
|
1452
1478
|
readonly localName: string;
|
|
1453
1479
|
label: string;
|
|
1480
|
+
normalize: () => void;
|
|
1454
1481
|
blur: () => void;
|
|
1455
1482
|
click: () => void;
|
|
1456
1483
|
focus: ({ preventScroll }?: FocusOptions) => void;
|
|
@@ -1461,25 +1488,14 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1461
1488
|
ariaHidden: string | null;
|
|
1462
1489
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
1463
1490
|
autofocus: boolean;
|
|
1464
|
-
normalize: () => void;
|
|
1465
|
-
addEventListener: {
|
|
1466
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1467
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1468
|
-
};
|
|
1469
|
-
dispatchEvent: (event: Event) => boolean;
|
|
1470
|
-
removeEventListener: {
|
|
1471
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
1472
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
1473
|
-
};
|
|
1474
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
1475
1491
|
shadowRoot: ShadowRoot;
|
|
1476
|
-
readonly parentElement: HTMLElement | null;
|
|
1477
1492
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
1493
|
+
remove: () => void;
|
|
1478
1494
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
1479
1495
|
selected: string[];
|
|
1480
1496
|
value: string;
|
|
1481
|
-
connectedCallback: () => void;
|
|
1482
1497
|
disconnectedCallback: () => void;
|
|
1498
|
+
connectedCallback: () => void;
|
|
1483
1499
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
1484
1500
|
isUpdatePending: boolean;
|
|
1485
1501
|
hasUpdated: boolean;
|
|
@@ -1500,6 +1516,14 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1500
1516
|
outerText: string;
|
|
1501
1517
|
spellcheck: boolean;
|
|
1502
1518
|
attachInternals: () => ElementInternals;
|
|
1519
|
+
addEventListener: {
|
|
1520
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1521
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1522
|
+
};
|
|
1523
|
+
removeEventListener: {
|
|
1524
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
1525
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
1526
|
+
};
|
|
1503
1527
|
readonly classList: DOMTokenList;
|
|
1504
1528
|
readonly clientHeight: number;
|
|
1505
1529
|
readonly clientLeft: number;
|
|
@@ -1578,6 +1602,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1578
1602
|
readonly nodeName: string;
|
|
1579
1603
|
readonly nodeType: number;
|
|
1580
1604
|
nodeValue: string | null;
|
|
1605
|
+
readonly parentElement: HTMLElement | null;
|
|
1581
1606
|
readonly parentNode: ParentNode | null;
|
|
1582
1607
|
readonly previousSibling: ChildNode | null;
|
|
1583
1608
|
textContent: string | null;
|
|
@@ -1613,6 +1638,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1613
1638
|
readonly NOTATION_NODE: number;
|
|
1614
1639
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
1615
1640
|
readonly TEXT_NODE: number;
|
|
1641
|
+
dispatchEvent: (event: Event) => boolean;
|
|
1616
1642
|
ariaAtomic: string | null;
|
|
1617
1643
|
ariaAutoComplete: string | null;
|
|
1618
1644
|
ariaBusy: string | null;
|
|
@@ -1651,7 +1677,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1651
1677
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
1652
1678
|
after: (...nodes: (string | Node)[]) => void;
|
|
1653
1679
|
before: (...nodes: (string | Node)[]) => void;
|
|
1654
|
-
remove: () => void;
|
|
1655
1680
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
1656
1681
|
innerHTML: string;
|
|
1657
1682
|
readonly nextElementSibling: Element | null;
|
|
@@ -1672,6 +1697,7 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1672
1697
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
1673
1698
|
};
|
|
1674
1699
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
1700
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
1675
1701
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1676
1702
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1677
1703
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -1769,12 +1795,12 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1769
1795
|
readonly dataset: DOMStringMap;
|
|
1770
1796
|
isLTR: boolean;
|
|
1771
1797
|
hasVisibleFocusInTree: () => boolean;
|
|
1772
|
-
closeDescendentOverlays: () => void;
|
|
1773
1798
|
ignore: boolean;
|
|
1774
|
-
selects: "inherit" | "
|
|
1799
|
+
selects: "inherit" | "single" | "multiple" | undefined;
|
|
1775
1800
|
valueSeparator: string;
|
|
1776
1801
|
selectedItems: import("menu/src").MenuItem[];
|
|
1777
1802
|
menuSlot: HTMLSlotElement;
|
|
1803
|
+
isSubmenu: boolean;
|
|
1778
1804
|
focusedItemIndex: number;
|
|
1779
1805
|
focusInItemIndex: number;
|
|
1780
1806
|
readonly childItems: import("menu/src").MenuItem[];
|
|
@@ -1783,8 +1809,6 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1783
1809
|
startListeningToKeyboard: () => void;
|
|
1784
1810
|
handleFocusout: (event: FocusEvent) => void;
|
|
1785
1811
|
stopListeningToKeyboard: () => void;
|
|
1786
|
-
handleSubmenuClosed: (event: Event) => void;
|
|
1787
|
-
handleSubmenuOpened: (event: Event) => void;
|
|
1788
1812
|
selectOrToggleItem: (targetItem: import("menu/src").MenuItem) => Promise<void>;
|
|
1789
1813
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
1790
1814
|
focusMenuItemByOffset: (offset: number) => import("menu/src").MenuItem;
|
|
@@ -1796,44 +1820,54 @@ export declare const MenuGroup: import("react").ComponentType<Partial<{
|
|
|
1796
1820
|
}> & import("react").RefAttributes<import("menu/src").MenuGroup>>;
|
|
1797
1821
|
export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
1798
1822
|
dir?: string | undefined;
|
|
1823
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1799
1824
|
title?: string | undefined;
|
|
1825
|
+
rel?: string | undefined;
|
|
1800
1826
|
id?: string | undefined;
|
|
1801
1827
|
className?: string | undefined;
|
|
1802
1828
|
slot?: string | undefined;
|
|
1803
1829
|
style?: import("react").CSSProperties | undefined;
|
|
1804
1830
|
tabIndex?: number | undefined;
|
|
1805
1831
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
1806
|
-
accessKey?: string | undefined;
|
|
1807
1832
|
color?: string | undefined;
|
|
1808
1833
|
lang?: string | undefined;
|
|
1809
|
-
'aria-
|
|
1834
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1835
|
+
accessKey?: string | undefined;
|
|
1810
1836
|
role?: import("react").AriaRole | undefined;
|
|
1811
|
-
'aria-
|
|
1812
|
-
'aria-
|
|
1837
|
+
'aria-label'?: string | undefined;
|
|
1838
|
+
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
1839
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1840
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1813
1841
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1814
1842
|
hidden?: boolean | undefined;
|
|
1815
1843
|
translate?: "yes" | "no" | undefined;
|
|
1816
1844
|
prefix?: string | undefined;
|
|
1817
1845
|
children?: import("react").ReactNode;
|
|
1818
1846
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
1819
|
-
inputMode?: "
|
|
1847
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1820
1848
|
nonce?: string | undefined;
|
|
1821
|
-
'aria-
|
|
1849
|
+
'aria-describedby'?: string | undefined;
|
|
1850
|
+
'aria-controls'?: string | undefined;
|
|
1851
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
1852
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1822
1853
|
'aria-activedescendant'?: string | undefined;
|
|
1823
1854
|
'aria-labelledby'?: string | undefined;
|
|
1824
1855
|
defaultChecked?: boolean | undefined;
|
|
1825
1856
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
1826
1857
|
suppressContentEditableWarning?: boolean | undefined;
|
|
1827
1858
|
suppressHydrationWarning?: boolean | undefined;
|
|
1859
|
+
autoFocus?: boolean | undefined;
|
|
1828
1860
|
contextMenu?: string | undefined;
|
|
1829
1861
|
placeholder?: string | undefined;
|
|
1830
1862
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1831
1863
|
radioGroup?: string | undefined;
|
|
1832
1864
|
about?: string | undefined;
|
|
1865
|
+
content?: string | undefined;
|
|
1833
1866
|
datatype?: string | undefined;
|
|
1834
1867
|
inlist?: any;
|
|
1835
1868
|
property?: string | undefined;
|
|
1836
1869
|
resource?: string | undefined;
|
|
1870
|
+
rev?: string | undefined;
|
|
1837
1871
|
typeof?: string | undefined;
|
|
1838
1872
|
vocab?: string | undefined;
|
|
1839
1873
|
autoCapitalize?: string | undefined;
|
|
@@ -1850,38 +1884,37 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1850
1884
|
is?: string | undefined;
|
|
1851
1885
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
1852
1886
|
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
1887
|
+
'aria-braillelabel'?: string | undefined;
|
|
1888
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
1853
1889
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
1854
1890
|
'aria-colcount'?: number | undefined;
|
|
1855
1891
|
'aria-colindex'?: number | undefined;
|
|
1892
|
+
'aria-colindextext'?: string | undefined;
|
|
1856
1893
|
'aria-colspan'?: number | undefined;
|
|
1857
|
-
'aria-
|
|
1858
|
-
'aria-
|
|
1894
|
+
'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
1895
|
+
'aria-description'?: string | undefined;
|
|
1859
1896
|
'aria-details'?: string | undefined;
|
|
1860
|
-
'aria-dropeffect'?: "
|
|
1897
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
1861
1898
|
'aria-errormessage'?: string | undefined;
|
|
1862
|
-
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
1863
1899
|
'aria-flowto'?: string | undefined;
|
|
1864
1900
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
1865
|
-
'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "listbox" | "grid" | "tree" | undefined;
|
|
1866
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
1867
1901
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
1868
1902
|
'aria-keyshortcuts'?: string | undefined;
|
|
1869
1903
|
'aria-level'?: number | undefined;
|
|
1870
1904
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
1871
|
-
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
1872
1905
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
1873
1906
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
1874
1907
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
1875
1908
|
'aria-owns'?: string | undefined;
|
|
1876
1909
|
'aria-placeholder'?: string | undefined;
|
|
1877
1910
|
'aria-posinset'?: number | undefined;
|
|
1878
|
-
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
1879
1911
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
1880
1912
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
1881
1913
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
1882
1914
|
'aria-roledescription'?: string | undefined;
|
|
1883
1915
|
'aria-rowcount'?: number | undefined;
|
|
1884
1916
|
'aria-rowindex'?: number | undefined;
|
|
1917
|
+
'aria-rowindextext'?: string | undefined;
|
|
1885
1918
|
'aria-rowspan'?: number | undefined;
|
|
1886
1919
|
'aria-setsize'?: number | undefined;
|
|
1887
1920
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
@@ -1890,7 +1923,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
1890
1923
|
'aria-valuenow'?: number | undefined;
|
|
1891
1924
|
'aria-valuetext'?: string | undefined;
|
|
1892
1925
|
dangerouslySetInnerHTML?: {
|
|
1893
|
-
__html: string;
|
|
1926
|
+
__html: string | TrustedHTML;
|
|
1894
1927
|
} | undefined;
|
|
1895
1928
|
onCopy?: import("react").ClipboardEventHandler<import("menu/src").MenuItem> | undefined;
|
|
1896
1929
|
onCopyCapture?: import("react").ClipboardEventHandler<import("menu/src").MenuItem> | undefined;
|
|
@@ -2058,6 +2091,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2058
2091
|
readonly attributes: NamedNodeMap;
|
|
2059
2092
|
readonly localName: string;
|
|
2060
2093
|
label?: string | undefined;
|
|
2094
|
+
normalize: () => void;
|
|
2061
2095
|
blur: () => void;
|
|
2062
2096
|
click: () => void;
|
|
2063
2097
|
focus: (options?: FocusOptions | undefined) => void;
|
|
@@ -2068,52 +2102,20 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2068
2102
|
download?: string | undefined;
|
|
2069
2103
|
href?: string | undefined;
|
|
2070
2104
|
target?: "_blank" | "_parent" | "_self" | "_top" | undefined;
|
|
2071
|
-
rel?: string | undefined;
|
|
2072
2105
|
ariaHidden: string | null;
|
|
2073
2106
|
animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
|
|
2074
2107
|
disabled: boolean;
|
|
2075
2108
|
autofocus: boolean;
|
|
2076
|
-
normalize: () => void;
|
|
2077
|
-
addEventListener: {
|
|
2078
|
-
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2079
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2080
|
-
};
|
|
2081
|
-
dispatchEvent: (event: Event) => boolean;
|
|
2082
|
-
removeEventListener: {
|
|
2083
|
-
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
2084
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
2085
|
-
};
|
|
2086
|
-
open: boolean;
|
|
2087
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
2088
2109
|
shadowRoot: ShadowRoot;
|
|
2089
|
-
|
|
2110
|
+
open: boolean;
|
|
2090
2111
|
readonly renderOptions: import("lit-html").RenderOptions;
|
|
2091
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
2092
2112
|
active: boolean;
|
|
2093
|
-
|
|
2113
|
+
remove: () => void;
|
|
2114
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
2094
2115
|
selected: boolean;
|
|
2095
2116
|
value: string;
|
|
2096
|
-
hasSubmenu: boolean;
|
|
2097
|
-
noWrap: boolean;
|
|
2098
|
-
overlayElement: import("overlay/src/OverlayBase").OverlayBase;
|
|
2099
|
-
readonly itemText: string;
|
|
2100
|
-
readonly focusElement: HTMLElement;
|
|
2101
|
-
readonly itemChildren: import("menu/src").MenuItemChildren;
|
|
2102
|
-
closeOverlay?: (() => Promise<void>) | undefined;
|
|
2103
|
-
openOverlay: () => Promise<void>;
|
|
2104
|
-
updateAriaSelected: () => void;
|
|
2105
|
-
setRole: (role: string) => void;
|
|
2106
|
-
connectedCallback: () => void;
|
|
2107
|
-
_parentElement: HTMLElement;
|
|
2108
2117
|
disconnectedCallback: () => void;
|
|
2109
|
-
|
|
2110
|
-
dispatchUpdate: () => void;
|
|
2111
|
-
menuData: {
|
|
2112
|
-
focusRoot?: import("menu/src").Menu | undefined;
|
|
2113
|
-
parentMenu?: import("menu/src").Menu | undefined;
|
|
2114
|
-
selectionRoot?: import("menu/src").Menu | undefined;
|
|
2115
|
-
cleanupSteps: ((item: import("menu/src").MenuItem) => void)[];
|
|
2116
|
-
};
|
|
2118
|
+
connectedCallback: () => void;
|
|
2117
2119
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
2118
2120
|
isUpdatePending: boolean;
|
|
2119
2121
|
hasUpdated: boolean;
|
|
@@ -2134,6 +2136,14 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2134
2136
|
outerText: string;
|
|
2135
2137
|
spellcheck: boolean;
|
|
2136
2138
|
attachInternals: () => ElementInternals;
|
|
2139
|
+
addEventListener: {
|
|
2140
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2141
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2142
|
+
};
|
|
2143
|
+
removeEventListener: {
|
|
2144
|
+
<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
2145
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
2146
|
+
};
|
|
2137
2147
|
readonly classList: DOMTokenList;
|
|
2138
2148
|
readonly clientHeight: number;
|
|
2139
2149
|
readonly clientLeft: number;
|
|
@@ -2212,6 +2222,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2212
2222
|
readonly nodeName: string;
|
|
2213
2223
|
readonly nodeType: number;
|
|
2214
2224
|
nodeValue: string | null;
|
|
2225
|
+
readonly parentElement: HTMLElement | null;
|
|
2215
2226
|
readonly parentNode: ParentNode | null;
|
|
2216
2227
|
readonly previousSibling: ChildNode | null;
|
|
2217
2228
|
textContent: string | null;
|
|
@@ -2247,6 +2258,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2247
2258
|
readonly NOTATION_NODE: number;
|
|
2248
2259
|
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
2249
2260
|
readonly TEXT_NODE: number;
|
|
2261
|
+
dispatchEvent: (event: Event) => boolean;
|
|
2250
2262
|
ariaAtomic: string | null;
|
|
2251
2263
|
ariaAutoComplete: string | null;
|
|
2252
2264
|
ariaBusy: string | null;
|
|
@@ -2285,7 +2297,6 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2285
2297
|
getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
|
|
2286
2298
|
after: (...nodes: (string | Node)[]) => void;
|
|
2287
2299
|
before: (...nodes: (string | Node)[]) => void;
|
|
2288
|
-
remove: () => void;
|
|
2289
2300
|
replaceWith: (...nodes: (string | Node)[]) => void;
|
|
2290
2301
|
innerHTML: string;
|
|
2291
2302
|
readonly nextElementSibling: Element | null;
|
|
@@ -2306,6 +2317,7 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2306
2317
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
2307
2318
|
};
|
|
2308
2319
|
replaceChildren: (...nodes: (string | Node)[]) => void;
|
|
2320
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
2309
2321
|
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2310
2322
|
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
2311
2323
|
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
@@ -2403,6 +2415,22 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2403
2415
|
readonly dataset: DOMStringMap;
|
|
2404
2416
|
isLTR: boolean;
|
|
2405
2417
|
hasVisibleFocusInTree: () => boolean;
|
|
2418
|
+
focused: boolean;
|
|
2419
|
+
hasSubmenu: boolean;
|
|
2420
|
+
noWrap: boolean;
|
|
2421
|
+
readonly itemText: string;
|
|
2422
|
+
readonly focusElement: HTMLElement;
|
|
2423
|
+
readonly itemChildren: import("menu/src").MenuItemChildren;
|
|
2424
|
+
closeOverlay?: (() => Promise<void>) | undefined;
|
|
2425
|
+
openOverlay: () => Promise<void>;
|
|
2426
|
+
updateAriaSelected: () => void;
|
|
2427
|
+
setRole: (role: string) => void;
|
|
2428
|
+
_parentElement: HTMLElement;
|
|
2429
|
+
triggerUpdate: () => Promise<void>;
|
|
2430
|
+
menuData: {
|
|
2431
|
+
focusRoot?: import("menu/src").Menu | undefined;
|
|
2432
|
+
selectionRoot?: import("menu/src").Menu | undefined;
|
|
2433
|
+
};
|
|
2406
2434
|
renderAnchor: (options: {
|
|
2407
2435
|
id: string;
|
|
2408
2436
|
className?: string | undefined;
|
|
@@ -2413,4 +2441,5 @@ export declare const MenuItem: import("react").ComponentType<Partial<{
|
|
|
2413
2441
|
}) => import("lit-html").TemplateResult<2 | 1>;
|
|
2414
2442
|
} & {
|
|
2415
2443
|
spMenuItemAdded: (e: Event) => void;
|
|
2444
|
+
spMenuItemRemoved: (e: Event) => void;
|
|
2416
2445
|
}> & import("react").RefAttributes<import("menu/src").MenuItem>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@lit-labs/react": "^1.1.1",
|
|
33
|
-
"@spectrum-web-components/menu": "^0.
|
|
33
|
+
"@spectrum-web-components/menu": "^0.35.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"next": "~13.4"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"optional": true
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "1ee5a6c92838cdf48321276d97f61c20f8476ac1"
|
|
44
44
|
}
|